Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v3.1.4 #1094

Merged
merged 1 commit into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 37 additions & 32 deletions dist/esm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27637,7 +27637,10 @@ const AN = sT({
"& .overlayAction": { "& button": { height: 26 } },
"& .startOverlayIcon": { top: 6 },
}),
XN = sT({ "& .accessoryIcon": { right: 37 } }),
XN = sT({
"& input": { paddingRight: 37 },
"& .accessoryIcon": { right: 37 },
}),
QN = t.forwardRef(
(
{
Expand All @@ -27661,31 +27664,33 @@ const AN = sT({
onFocus: w,
disableErrorUntilFocus: L = !1,
children: b,
value: M,
...H
passwordRevealEnabled: M = !0,
value: H,
...E
},
E,
y,
) => {
const y = gt(),
V = i(() => (f ? sT({ ...R(f, y) }) : {}), [f, y]),
S = jN(y),
T = YN(y),
[N, x] = a(!1);
let _ = o,
A = r;
"password" !== r ||
o ||
((_ = Vt(N ? cd : sd, {})), (A = N ? "text" : "password"));
const [Z, I] = a(!1);
L || "error" !== h || Z || !m || ((m = ""), (h = "normal"));
const k = "normal" !== h;
const V = gt(),
S = i(() => (f ? sT({ ...R(f, V) }) : {}), [f, V]),
T = jN(V),
N = YN(V),
[x, _] = a(!1);
let A = o,
Z = r;
"password" === r &&
M &&
!o &&
((A = Vt(x ? cd : sd, {})), (Z = x ? "text" : "password"));
const [I, k] = a(!1);
L || "error" !== h || I || !m || ((m = ""), (h = "normal"));
const O = "normal" !== h;
return St("div", {
css: [
T,
N,
"small" === g ? KN : {},
o || "password" === r ? XN : {},
o || ("password" === r && M) ? XN : {},
sT({ flexDirection: "vertical" === v ? "column" : "row" }),
V,
S,
],
className: `inputItem inputdiv Base_Normal ${p}`,
children: [
Expand Down Expand Up @@ -27725,40 +27730,40 @@ const AN = sT({
Vt("input", {
id: e,
css: [
S,
T,
"small" === g ? qN : {},
u ? { paddingLeft: 35 } : {},
k ? { paddingRight: 30 } : {},
k && (s || _) ? { paddingRight: 60 } : {},
O ? { paddingRight: 30 } : {},
O && (s || A) ? { paddingRight: 60 } : {},
],
type: A,
className: `Base_Normal inputRebase ${h}State ${M && "" !== M ? "filled" : ""}`,
value: M,
type: Z,
className: `Base_Normal inputRebase ${h}State ${H && "" !== H ? "filled" : ""}`,
value: H,
"data-index": n,
onFocus: (e) => {
I(!0), w && w(e);
k(!0), w && w(e);
},
ref: E,
...H,
ref: y,
...E,
}),
"error" === h &&
Vt(wa, { className: "accessoryIcon errorState" }),
"warning" === h &&
Vt(vV, { className: "accessoryIcon warningState" }),
"success" === h &&
Vt(Ta, { className: "accessoryIcon successState" }),
_ &&
A &&
Vt("div", {
className: "overlayAction",
children: Vt(ON, {
onClick: C
? (e) => {
C(e);
}
: () => x(!N),
: () => _(!x),
id: `${e}-button`,
type: "button",
icon: _,
icon: A,
}),
}),
s && Vt("div", { className: "overlayAction", children: s }),
Expand Down
2 changes: 1 addition & 1 deletion dist/esm/index.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/esm/src/components/InputBox/InputBox.types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ export interface InputBoxProps
sizeMode?: InputBoxSize;
orientation?: InputBoxOrientation;
disableErrorUntilFocus?: boolean;
passwordRevealEnabled?: boolean;
}
1 change: 1 addition & 0 deletions dist/mds.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6932,6 +6932,7 @@ interface InputBoxProps
sizeMode?: InputBoxSize;
orientation?: InputBoxOrientation;
disableErrorUntilFocus?: boolean;
passwordRevealEnabled?: boolean;
}

interface FileSelectorProps {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mds",
"version": "3.1.3",
"version": "3.1.4",
"description": "A MinIO Components Library",
"homepage": ".",
"license": "AGPL-3.0-or-later",
Expand Down
Loading