asma-ui-core 3.78.9 → 3.78.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/dist/components/feedback/snack-bar/SnackbarProvider.js +13 -13
  2. package/dist/components/feedback/snack-bar/StyledSnackbar.js +33 -24
  3. package/dist/components/feedback/snack-bar/components/processMessageError.js +0 -1
  4. package/dist/components/feedback/snack-bar/components/processMessageInfo.js +0 -1
  5. package/dist/components/inputs/input-field/StyledInputField.js +99 -98
  6. package/dist/components/inputs/select-autocomplete/StyledSelectAutocomplete.js +53 -53
  7. package/dist/components/inputs/slider/StyledSlider.js +20 -20
  8. package/dist/components/inputs/textarea/StyledTextarea.js +13 -13
  9. package/dist/datetime/components/date-picker/components/StyledCalendarPickerCaption.js +4 -4
  10. package/dist/datetime/components/date-picker/components/StyledCalendarPickerFooter.js +4 -4
  11. package/dist/datetime/components/time-picker/TimePickerInput.js +15 -15
  12. package/dist/src/character-shortcuts.test.d.ts +1 -0
  13. package/dist/src/datetime/shared-components/ChevronLeftIcon.d.ts +1 -2
  14. package/dist/src/datetime/shared-components/ChevronRightIcon.d.ts +1 -2
  15. package/dist/src/datetime/shared-components/CloseIcon.d.ts +1 -2
  16. package/dist/src/table/shared-components/ChevronLeftIcon.d.ts +1 -2
  17. package/dist/src/table/shared-components/ChevronRightIcon.d.ts +1 -2
  18. package/dist/src/table/shared-components/DotsVerticalIcon.d.ts +1 -2
  19. package/dist/table/components/columns/action-column/components/RowActionMenu.js +14 -14
  20. package/dist/table/components/table-footer/TablePagination.js +12 -12
  21. package/package.json +1 -1
  22. package/dist/datetime/shared-components/ChevronLeftIcon.js +0 -18
  23. package/dist/datetime/shared-components/ChevronRightIcon.js +0 -18
  24. package/dist/datetime/shared-components/CloseIcon.js +0 -18
  25. package/dist/table/shared-components/ChevronLeftIcon.js +0 -18
  26. package/dist/table/shared-components/ChevronRightIcon.js +0 -18
  27. package/dist/table/shared-components/DotsVerticalIcon.js +0 -18
@@ -2,33 +2,33 @@ import { useTopmostOpenModalDialog as a } from "../../../hooks/useTopLayer.hook.
2
2
  import { StyledAlertSnackbar as n } from "./StyledAlertSnackbar.js";
3
3
  import { StyledDefaultSnackbar as i } from "./components/StyledDefaultSnackbar.js";
4
4
  import { StyledInfoSnackbar as m } from "./components/StyledInfoSnackbar.js";
5
- import { useLayoutEffect as e, useState as s } from "react";
6
- import { jsx as c } from "react/jsx-runtime";
5
+ import { useLayoutEffect as r, useState as c } from "react";
6
+ import { jsx as s } from "react/jsx-runtime";
7
7
  import { SnackbarProvider as l } from "notistack";
8
8
  var d = () => {
9
- const [t] = s(() => {
9
+ const [t] = c(() => {
10
10
  const o = document.createElement("div");
11
11
  return o.style.display = "contents", o.setAttribute("data-asma-snackbar-host", ""), o;
12
- }), r = a();
13
- return e(() => {
14
- const o = r ?? document.body;
12
+ }), e = a();
13
+ return r(() => {
14
+ const o = e ?? document.body;
15
15
  t.parentElement !== o && o.appendChild(t);
16
- }, [t, r]), e(() => () => t.remove(), [t]), t;
17
- }, v = (t) => {
18
- const r = d();
19
- return /* @__PURE__ */ c(l, {
16
+ }, [t, e]), r(() => () => t.remove(), [t]), t;
17
+ }, h = (t) => {
18
+ const e = d();
19
+ return /* @__PURE__ */ s(l, {
20
20
  ...t,
21
21
  Components: {
22
22
  alert: n,
23
23
  info: m,
24
24
  default: i
25
25
  },
26
- autoHideDuration: 6e3,
26
+ autoHideDuration: t.autoHideDuration === void 0 ? 6e3 : t.autoHideDuration,
27
27
  anchorOrigin: {
28
28
  vertical: "top",
29
29
  horizontal: "right"
30
30
  },
31
- domRoot: r,
31
+ domRoot: e,
32
32
  maxSnack: 3,
33
33
  classes: { root: "min-w-fit flex justify-center" },
34
34
  className: "w-fit min-w-fit max-w-fit",
@@ -36,5 +36,5 @@ var d = () => {
36
36
  });
37
37
  };
38
38
  export {
39
- v as SnackbarProvider
39
+ h as SnackbarProvider
40
40
  };
@@ -1,41 +1,50 @@
1
- import { cn as c } from "../../../helpers/cn.js";
2
- import { useTopmostOpenModalDialog as x } from "../../../hooks/useTopLayer.hook.js";
3
- import { useEffect as d } from "react";
4
- import { jsx as l, jsxs as h } from "react/jsx-runtime";
5
- import { FloatingPortal as b } from "@floating-ui/react";
6
- var g = {
1
+ import { cn as x } from "../../../helpers/cn.js";
2
+ import { useTopmostOpenModalDialog as b } from "../../../hooks/useTopLayer.hook.js";
3
+ import { useEffect as v, useState as n } from "react";
4
+ import { jsx as m, jsxs as S } from "react/jsx-runtime";
5
+ import { FloatingPortal as T } from "@floating-ui/react";
6
+ var z = {
7
7
  "top-left": "top-6 left-6",
8
8
  "top-center": "top-6 left-1/2 -translate-x-1/2",
9
9
  "top-right": "top-6 right-6",
10
10
  "bottom-left": "bottom-6 left-6",
11
11
  "bottom-center": "bottom-6 left-1/2 -translate-x-1/2",
12
12
  "bottom-right": "bottom-6 right-6"
13
- }, N = ({ open: t = !1, autoHideDuration: e = 3e3, onClose: o, anchorOrigin: r = {
13
+ }, y = ({ open: e = !1, autoHideDuration: o = 3e3, onClose: f, anchorOrigin: i = {
14
14
  vertical: "bottom",
15
15
  horizontal: "left"
16
- }, message: m, action: i, children: a, className: s }) => {
17
- const f = x();
18
- if (d(() => {
19
- if (!t || e == null) return;
20
- const p = setTimeout(() => o?.(null, "timeout"), e);
21
- return () => clearTimeout(p);
16
+ }, message: c, action: u, children: p, className: d }) => {
17
+ const g = b(), [r, l] = n(!1), [s, a] = n(!1);
18
+ if (v(() => {
19
+ if (!e || o == null || r || s) return;
20
+ const t = setTimeout(() => f?.(null, "timeout"), o);
21
+ return () => clearTimeout(t);
22
22
  }, [
23
- t,
24
23
  e,
25
- o
26
- ]), !t) return null;
27
- const n = g[`${r.vertical}-${r.horizontal}`];
28
- return /* @__PURE__ */ l(b, {
29
- root: f,
30
- children: /* @__PURE__ */ l("div", {
31
- className: c("fixed z-[1400] flex items-center gap-2", n, s),
32
- children: a ?? /* @__PURE__ */ h("div", {
24
+ o,
25
+ f,
26
+ r,
27
+ s
28
+ ]), !e)
29
+ return r && l(!1), s && a(!1), null;
30
+ const h = z[`${i.vertical}-${i.horizontal}`];
31
+ return /* @__PURE__ */ m(T, {
32
+ root: g,
33
+ children: /* @__PURE__ */ m("div", {
34
+ className: x("fixed z-[1400] flex items-center gap-2", h, d),
35
+ onMouseEnter: () => l(!0),
36
+ onMouseLeave: () => l(!1),
37
+ onFocusCapture: () => a(!0),
38
+ onBlurCapture: (t) => {
39
+ t.currentTarget.contains(t.relatedTarget) || a(!1);
40
+ },
41
+ children: p ?? /* @__PURE__ */ S("div", {
33
42
  className: "flex items-center gap-2 rounded bg-delta-800 px-4 py-3 text-sm text-white shadow-lg",
34
- children: [m, i]
43
+ children: [c, u]
35
44
  })
36
45
  })
37
46
  });
38
47
  };
39
48
  export {
40
- N as StyledSnackbar
49
+ y as StyledSnackbar
41
50
  };
@@ -3,7 +3,6 @@ function o(r, e) {
3
3
  return a({
4
4
  variant: "info",
5
5
  message: r,
6
- autoHideDuration: 6e3,
7
6
  className: "flex h-10 items-center gap-1 rounded-lg bg-red-700 pl-2 pr-1 text-sm text-white !min-w-[100px] !max-w-[400px]",
8
7
  anchorOrigin: {
9
8
  vertical: "bottom",
@@ -3,7 +3,6 @@ function o(a, e) {
3
3
  return t({
4
4
  variant: "info",
5
5
  message: a,
6
- autoHideDuration: 6e3,
7
6
  className: "flex h-10 items-center gap-1 rounded-lg bg-gama-700 pl-2 pr-1 text-sm text-white !min-w-[100px] !max-w-[400px]",
8
7
  anchorOrigin: {
9
8
  vertical: "bottom",
@@ -1,130 +1,131 @@
1
1
  import { cn as a } from "../../../helpers/cn.js";
2
- import { resolveSx as D } from "../../../helpers/sx.js";
3
- import { CloseIcon as Qe } from "../../icons/close-icon/CloseIcon.js";
4
- import { HelperRow as Xe } from "../../../helpers/HelperRow.js";
5
- import { useHelperRowBudget as Ze } from "../../../helpers/useHelperRowBudget.js";
6
- import { useHelperSlot as qe } from "../../../helpers/useHelperSlot.js";
7
- import { floatingLabelClass as Oe, floatingLabelLayoutStyle as et, notchedLegendClass as tt, notchedOutlineClass as Q, singleLineInputLayoutStyle as nt, singleLineShellLayoutStyle as ot } from "../field-styles.js";
8
- import y from "./StyledInputField.module.js";
9
- import { Children as it, useCallback as lt, useId as at, useLayoutEffect as X, useRef as Z, useState as E } from "react";
10
- import { jsx as o, jsxs as S } from "react/jsx-runtime";
11
- import { useMergeRefs as q } from "@floating-ui/react";
12
- var Bt = ({ dataTest: h, label: l, value: m, defaultValue: b, onChange: O, onBlur: ee, onFocus: te, error: c, helperText: P, reserveHelperText: ne, expandHelperText: oe = !0, disabled: s, readOnly: t, required: v, allowClear: ie, onClear: le, type: ae = "text", placeholder: se, name: re, id: de, autoComplete: ce, autoFocus: pe, multiline: r, rows: N, minRows: H, maxRows: R, size: he = "medium", fullWidth: me, className: ue, style: ge, sx: fe, inputRef: xe, slotProps: n, InputProps: T, onKeyDown: k, onClick: ye, variant: st }) => {
13
- const Se = at(), A = de ?? Se, $ = `${A}-helper-text`, j = Z(null), z = Z(null), [be, He] = E(void 0), [L, K] = E(!1), [Le, U] = E(b != null && b !== ""), C = m !== void 0, V = C ? m !== "" && m != null : Le, Ie = !!s || !!t, w = n?.input?.startAdornment ?? T?.startAdornment, u = it.count(w) > 0, d = u && Array.isArray(w), g = n?.input?.endAdornment ?? T?.endAdornment, _ = !!(ie && V && !Ie), { ref: ve, ...i } = n?.htmlInput ?? {}, Ne = xe ?? ve, { className: Re, style: B, ref: Ae } = n?.input ?? {}, Ce = q([Ae]), we = n?.input?.onMouseDown, _e = ce ?? i.autoComplete, Be = re ?? i.name, I = L || V || u, Fe = (e) => {
14
- t || (C || U(e.target.value !== ""), O?.(e));
15
- }, Me = (e) => {
16
- !s && !t && K(!0), te?.(e);
2
+ import { resolveSx as k } from "../../../helpers/sx.js";
3
+ import { CloseIcon as Ze } from "../../icons/close-icon/CloseIcon.js";
4
+ import { HelperRow as qe } from "../../../helpers/HelperRow.js";
5
+ import { useHelperRowBudget as Oe } from "../../../helpers/useHelperRowBudget.js";
6
+ import { useHelperSlot as et } from "../../../helpers/useHelperSlot.js";
7
+ import { floatingLabelClass as tt, floatingLabelLayoutStyle as nt, notchedLegendClass as ot, notchedOutlineClass as X, singleLineInputLayoutStyle as it, singleLineShellLayoutStyle as lt } from "../field-styles.js";
8
+ import S from "./StyledInputField.module.js";
9
+ import { Children as at, useCallback as st, useId as rt, useLayoutEffect as Z, useRef as q, useState as D } from "react";
10
+ import { jsx as o, jsxs as y } from "react/jsx-runtime";
11
+ import { useMergeRefs as O } from "@floating-ui/react";
12
+ var Mt = ({ dataTest: u, label: l, value: h, defaultValue: b, onChange: ee, onBlur: te, onFocus: ne, error: c, helperText: E, reserveHelperText: oe, expandHelperText: ie = !0, disabled: s, readOnly: n, required: v, allowClear: le, onClear: ae, type: se = "text", placeholder: re, name: de, id: ce, autoComplete: pe, autoFocus: ue, multiline: r, rows: N, minRows: H, maxRows: C, size: he = "medium", fullWidth: me, className: ge, style: fe, sx: xe, inputRef: Se, slotProps: t, InputProps: P, onKeyDown: T, onClick: ye, variant: dt }) => {
13
+ const be = rt(), R = ce ?? be, $ = `${R}-helper-text`, j = q(null), z = q(null), [He, Le] = D(void 0), [L, K] = D(!1), [Ie, U] = D(b != null && b !== ""), A = h !== void 0, V = A ? h !== "" && h != null : Ie, ve = !!s || !!n, w = t?.input?.startAdornment ?? P?.startAdornment, m = at.count(w) > 0, d = m && Array.isArray(w), g = t?.input?.endAdornment ?? P?.endAdornment, _ = !!(le && V && !ve), { ref: Ne, ...i } = t?.htmlInput ?? {}, Ce = Se ?? Ne, { className: Re, style: B, ref: Ae } = t?.input ?? {}, we = O([Ae]), _e = t?.input?.onMouseDown, W = t?.input?.onClick, Be = W ? { onClick: W } : {}, Fe = pe ?? i.autoComplete, Me = de ?? i.name, I = L || V || m, ke = (e) => {
14
+ n || (A || U(e.target.value !== ""), ee?.(e));
17
15
  }, De = (e) => {
18
- !s && !t && K(!1), ee?.(e);
16
+ !s && !n && K(!0), ne?.(e);
17
+ }, Ee = (e) => {
18
+ !s && !n && K(!1), te?.(e);
19
19
  };
20
- X(() => {
20
+ Z(() => {
21
21
  const e = j.current;
22
22
  if (!r || N != null || !e) return;
23
23
  e.style.height = "auto";
24
- const p = getComputedStyle(e), x = Number.parseFloat(p.lineHeight) || 24, J = Number.parseFloat(p.paddingTop) + Number.parseFloat(p.paddingBottom), Ge = H ? H * x + J : 0, Je = R ? R * x + J : Number.POSITIVE_INFINITY;
25
- e.style.height = `${Math.min(Je, Math.max(Ge, e.scrollHeight))}px`;
24
+ const p = getComputedStyle(e), x = Number.parseFloat(p.lineHeight) || 24, Q = Number.parseFloat(p.paddingTop) + Number.parseFloat(p.paddingBottom), Qe = H ? H * x + Q : 0, Xe = C ? C * x + Q : Number.POSITIVE_INFINITY;
25
+ e.style.height = `${Math.min(Xe, Math.max(Qe, e.scrollHeight))}px`;
26
26
  }, [
27
27
  b,
28
- R,
28
+ C,
29
29
  H,
30
30
  r,
31
31
  N,
32
- m
32
+ h
33
33
  ]);
34
- const W = q([Ne, lt((e) => {
34
+ const Y = O([Ce, st((e) => {
35
35
  j.current = e instanceof HTMLTextAreaElement ? e : null;
36
- }, [])]), { style: F, ...Ee } = i, f = !r && !d, { height: rt, minHeight: dt, maxHeight: ct, paddingTop: pt, paddingBottom: ht, ...Pe } = B ?? {}, Te = f ? {
37
- ...Pe,
38
- ...ot()
36
+ }, [])]), { style: F, ...Pe } = i, f = !r && !d, { height: ct, minHeight: pt, maxHeight: ut, paddingTop: ht, paddingBottom: mt, ...Te } = B ?? {}, $e = f ? {
37
+ ...Te,
38
+ ...lt()
39
39
  } : d ? {
40
40
  boxSizing: "border-box",
41
41
  minHeight: 40,
42
42
  ...B
43
- } : B, { height: mt, minHeight: ut, maxHeight: gt, paddingTop: ft, paddingBottom: xt, paddingLeft: yt, paddingRight: ke, ...$e } = F ?? {}, je = f ? {
44
- ...$e,
45
- ...nt({
46
- paddingLeft: u ? 40 : 14,
47
- paddingRight: ke ?? be ?? (_ || g ? 40 : 14)
43
+ } : B, { height: gt, minHeight: ft, maxHeight: xt, paddingTop: St, paddingBottom: yt, paddingLeft: bt, paddingRight: je, ...ze } = F ?? {}, Ke = f ? {
44
+ ...ze,
45
+ ...it({
46
+ paddingLeft: m ? 40 : 14,
47
+ paddingRight: je ?? He ?? (_ || g ? 40 : 14)
48
48
  })
49
49
  } : F;
50
- X(() => {
50
+ Z(() => {
51
51
  if (!f) return;
52
52
  const e = z.current, p = e ? Math.ceil(e.getBoundingClientRect().width) + 20 : void 0;
53
- He((x) => x === p ? x : p);
53
+ Le((x) => x === p ? x : p);
54
54
  });
55
- const ze = I || !l, { show: M, role: Ke } = qe("StyledInputField", c, P, ne, t), { fieldRef: Ue, rowRef: Ve, rowStyle: We } = Ze(oe && M), Y = {
56
- ...Ee,
57
- style: f ? je : F,
58
- id: i.id ?? A,
59
- name: Be,
60
- placeholder: ze ? se : void 0,
55
+ const Ue = I || !l, { show: M, role: Ve } = et("StyledInputField", c, E, oe, n), { fieldRef: We, rowRef: Ye, rowStyle: Ge } = Oe(ie && M), G = {
56
+ ...Pe,
57
+ style: f ? Ke : F,
58
+ id: i.id ?? R,
59
+ name: Me,
60
+ placeholder: Ue ? re : void 0,
61
61
  disabled: s,
62
- readOnly: t,
62
+ readOnly: n,
63
63
  required: v,
64
- autoComplete: _e,
65
- autoFocus: pe,
66
- value: m,
64
+ autoComplete: Fe,
65
+ autoFocus: ue,
66
+ value: h,
67
67
  defaultValue: b,
68
68
  "aria-invalid": c ? !0 : void 0,
69
69
  "aria-label": i["aria-label"] ?? (i["aria-labelledby"] ? void 0 : typeof l == "string" && l !== "" ? l : void 0),
70
70
  "aria-describedby": M ? $ : i["aria-describedby"],
71
- onChange: Fe,
72
- onFocus: Me,
73
- onBlur: De,
74
- onKeyDown: i.onKeyDown || k ? (e) => {
75
- k?.(e), e.defaultPrevented || i.onKeyDown?.(e);
71
+ onChange: ke,
72
+ onFocus: De,
73
+ onBlur: Ee,
74
+ onKeyDown: i.onKeyDown || T ? (e) => {
75
+ T?.(e), e.defaultPrevented || i.onKeyDown?.(e);
76
76
  } : void 0
77
- }, G = a(y.Input, "peer border-0 bg-transparent text-base tracking-[0.00938em] text-delta-800 outline-none placeholder:text-delta-500", d ? "box-border h-8 min-w-[60px] flex-1 py-0 pl-0 pr-0 leading-[23px]" : r ? "w-full resize-none overflow-hidden p-0 pl-0 pr-0 leading-[23px]" : a("w-full", y["Input--singleLine"]), "disabled:text-delta-300", t && "text-delta-800", Re), Ye = !r && !d ? {
78
- "data-start-adornment": u ? "true" : void 0,
77
+ }, J = a(S.Input, "peer border-0 bg-transparent text-base tracking-[0.00938em] text-delta-800 outline-none placeholder:text-delta-500", d ? "box-border h-8 min-w-[60px] flex-1 py-0 pl-0 pr-0 leading-[23px]" : r ? "w-full resize-none overflow-hidden p-0 pl-0 pr-0 leading-[23px]" : a("w-full", S["Input--singleLine"]), "disabled:text-delta-300", n && "text-delta-800", Re), Je = !r && !d ? {
78
+ "data-start-adornment": m ? "true" : void 0,
79
79
  "data-end-adornment": _ || g ? "true" : void 0
80
80
  } : {};
81
- return /* @__PURE__ */ S("div", {
82
- ref: Ue,
83
- className: a("group relative inline-flex flex-col", ue),
81
+ return /* @__PURE__ */ y("div", {
82
+ ref: We,
83
+ className: a("group relative inline-flex flex-col", ge),
84
84
  onClick: ye,
85
85
  style: {
86
86
  width: me ? "100%" : 235,
87
87
  fontFamily: "Roboto, Helvetica, Arial, sans-serif",
88
88
  letterSpacing: "0.00938em",
89
- ...D(fe),
90
- ...ge
89
+ ...k(xe),
90
+ ...fe
91
91
  },
92
- children: [/* @__PURE__ */ S("div", {
92
+ children: [/* @__PURE__ */ y("div", {
93
93
  className: "relative overflow-visible",
94
- children: [/* @__PURE__ */ S("div", {
95
- className: a("relative flex", f && y.InputShell, r && "box-border items-center px-[14px] py-[16.5px]", d && a(y.AdornmentList, g && y["AdornmentList--endAdornment"]), t && "rounded bg-delta-50"),
96
- ref: Ce,
97
- onMouseDown: we,
98
- style: Te,
99
- "data-testid": d ? `${h}-adornment-list` : `${h}-shell`,
94
+ children: [/* @__PURE__ */ y("div", {
95
+ className: a("relative flex", f && S.InputShell, r && "box-border items-center px-[14px] py-[16.5px]", d && a(S.AdornmentList, g && S["AdornmentList--endAdornment"]), n && "rounded bg-delta-50"),
96
+ ref: we,
97
+ onMouseDown: _e,
98
+ ...Be,
99
+ style: $e,
100
+ "data-testid": d ? `${u}-adornment-list` : `${u}-shell`,
100
101
  children: [
101
- u && /* @__PURE__ */ o("span", {
102
+ m && /* @__PURE__ */ o("span", {
102
103
  className: a("items-center text-delta-500", d ? "contents" : "absolute left-3 flex"),
103
104
  children: w
104
105
  }),
105
106
  r ? /* @__PURE__ */ o("textarea", {
106
- ...Y,
107
- ref: W,
108
- "data-testid": h,
107
+ ...G,
108
+ ref: Y,
109
+ "data-testid": u,
109
110
  rows: N ?? H ?? 2,
110
- className: G
111
+ className: J
111
112
  }) : /* @__PURE__ */ o("input", {
112
- ...Y,
113
- ...Ye,
114
- ref: W,
115
- "data-testid": h,
116
- type: ae,
117
- className: G
113
+ ...G,
114
+ ...Je,
115
+ ref: Y,
116
+ "data-testid": u,
117
+ type: se,
118
+ className: J
118
119
  }),
119
120
  _ ? /* @__PURE__ */ o("button", {
120
121
  type: "button",
121
122
  "aria-label": "Clear",
122
- "data-testid": `${h}-clear`,
123
+ "data-testid": `${u}-clear`,
123
124
  className: "absolute right-4 z-40 flex items-center justify-center rounded-full border-0 bg-transparent p-[2px] duration-300 hover:bg-gama-100",
124
125
  onClick: (e) => {
125
- e.stopPropagation(), e.preventDefault(), C || U(!1), le?.();
126
+ e.stopPropagation(), e.preventDefault(), A || U(!1), ae?.();
126
127
  },
127
- children: /* @__PURE__ */ o(Qe, {
128
+ children: /* @__PURE__ */ o(Ze, {
128
129
  width: 18,
129
130
  height: 18
130
131
  })
@@ -135,63 +136,63 @@ var Bt = ({ dataTest: h, label: l, value: m, defaultValue: b, onChange: O, onBlu
135
136
  }),
136
137
  l ? /* @__PURE__ */ o("fieldset", {
137
138
  "aria-hidden": !0,
138
- className: Q({
139
+ className: X({
139
140
  focused: L,
140
141
  error: c,
141
142
  disabled: s,
142
- readOnly: t,
143
+ readOnly: n,
143
144
  notched: !0
144
145
  }),
145
146
  children: /* @__PURE__ */ o("legend", {
146
- className: tt(I),
147
- children: /* @__PURE__ */ S("span", {
147
+ className: ot(I),
148
+ children: /* @__PURE__ */ y("span", {
148
149
  className: "inline-block px-[5px]",
149
150
  children: [l, v && " *"]
150
151
  })
151
152
  })
152
153
  }) : /* @__PURE__ */ o("div", {
153
154
  "aria-hidden": !0,
154
- className: Q({
155
+ className: X({
155
156
  focused: L,
156
157
  error: c,
157
158
  disabled: s,
158
- readOnly: t,
159
+ readOnly: n,
159
160
  notched: !1
160
161
  })
161
162
  })
162
163
  ]
163
- }), l && /* @__PURE__ */ S("label", {
164
- htmlFor: A,
165
- className: a(Oe({
164
+ }), l && /* @__PURE__ */ y("label", {
165
+ htmlFor: R,
166
+ className: a(tt({
166
167
  shrink: I,
167
168
  focused: L,
168
169
  error: c,
169
170
  disabled: s,
170
- readOnly: t,
171
+ readOnly: n,
171
172
  size: he
172
- }), n?.inputLabel?.className),
173
+ }), t?.inputLabel?.className),
173
174
  style: {
174
- ...D(n?.inputLabel?.sx),
175
- ...n?.inputLabel?.style,
176
- ...et(I)
175
+ ...k(t?.inputLabel?.sx),
176
+ ...t?.inputLabel?.style,
177
+ ...nt(I)
177
178
  },
178
179
  children: [l, v && " *"]
179
180
  })]
180
- }), M && /* @__PURE__ */ o(Xe, {
181
- ref: Ve,
181
+ }), M && /* @__PURE__ */ o(qe, {
182
+ ref: Ye,
182
183
  id: $,
183
- role: Ke,
184
+ role: Ve,
184
185
  error: c,
185
- message: P,
186
- hideErrorIcon: n?.formHelperText?.hideErrorIcon,
187
- className: a("mr-[14px] box-border items-start", n?.formHelperText?.className),
186
+ message: E,
187
+ hideErrorIcon: t?.formHelperText?.hideErrorIcon,
188
+ className: a("mr-[14px] box-border items-start", t?.formHelperText?.className),
188
189
  style: {
189
- ...We,
190
- ...D(n?.formHelperText?.sx)
190
+ ...Ge,
191
+ ...k(t?.formHelperText?.sx)
191
192
  }
192
193
  })]
193
194
  });
194
195
  };
195
196
  export {
196
- Bt as StyledInputField
197
+ Mt as StyledInputField
197
198
  };