Skip to content

Commit

Permalink
Release v3.1.4 (#1094)
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Perez <[email protected]>
  • Loading branch information
bexsoft authored Nov 8, 2024
1 parent 8746008 commit d036a3e
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 34 deletions.
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

0 comments on commit d036a3e

Please sign in to comment.