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
@@ -1,4 +1,4 @@
1
- import { cn as k } from "../../../helpers/cn.js";
1
+ import { cn as A } from "../../../helpers/cn.js";
2
2
  import { ChevronDownIcon as Oe } from "../../icons/chevron-down-icon/ChevronDownIcon.js";
3
3
  import { CloseIcon as Be } from "../../icons/close-icon/CloseIcon.js";
4
4
  import { CheckIcon as qe } from "../../icons/check-icon/CheckIcon.js";
@@ -9,26 +9,26 @@ import { TOP_LAYER_PROPS as Qe, TOP_LAYER_RESET_STYLE as Xe, getOpenModalDialogA
9
9
  import { LoadingIcon as tt } from "../../../table/shared-components/LoadingIcon.js";
10
10
  import _ from "./StyledSelectAutocomplete.module.js";
11
11
  import { useEffect as lt, useMemo as E, useRef as X, useState as w } from "react";
12
- import { jsx as s, jsxs as y } from "react/jsx-runtime";
13
- import { FloatingPortal as rt, autoUpdate as st, flip as ot, offset as at, shift as nt, size as ct, useDismiss as it, useFloating as dt, useInteractions as ut, useMergeRefs as Z, useRole as pt } from "@floating-ui/react";
12
+ import { jsx as o, jsxs as y } from "react/jsx-runtime";
13
+ import { FloatingPortal as rt, autoUpdate as ot, flip as st, offset as at, shift as nt, size as ct, useDismiss as it, useFloating as dt, useInteractions as ut, useMergeRefs as Z, useRole as pt } from "@floating-ui/react";
14
14
  var mt = (r) => typeof r == "object" && r !== null && "label" in r ? String(r.label) : String(r), K = (r) => typeof r == "object" && r !== null && "disabled" in r && !!r.disabled;
15
- function Pt({ dataTest: r, options: p, renderInput: ee, value: v, onChange: N, getOptionLabel: te, getOptionKey: R, isOptionEqualToValue: j, renderOption: z, renderValue: F, filterOptions: L, loading: W, loadingText: le = "Loading…", noOptionsText: re = "No options", disabled: D, readOnly: m, error: se, helperText: oe, size: ae = "small", disableClearable: ne, disableCloseOnSelect: ce, popupIcon: ie, autoHeight: de, multiple: ue, allowSelectAll: pe, selectAllLabel: U = "Select all", fullWidth: me, classes: fe, inputValue: S, onInputChange: he, open: T, onOpen: ge, onClose: be, className: xe, wrapperClassName: we, getOptionDisabled: ye, slotProps: V }) {
16
- const o = ue === !0, n = te ?? mt, C = (e, t) => j ? j(e, t) : e === t, [ve, Ne] = w(!1), a = T ?? ve, f = (e) => {
15
+ function Pt({ dataTest: r, options: p, renderInput: ee, value: v, onChange: N, getOptionLabel: te, getOptionKey: C, isOptionEqualToValue: j, renderOption: z, renderValue: F, filterOptions: L, loading: W, loadingText: le = "Loading…", noOptionsText: re = "No options", disabled: D, readOnly: m, error: oe, helperText: se, size: ae = "small", disableClearable: ne, disableCloseOnSelect: ce, popupIcon: ie, autoHeight: de, multiple: ue, allowSelectAll: pe, selectAllLabel: U = "Select all", fullWidth: me, classes: fe, inputValue: R, onInputChange: he, open: T, onOpen: ge, onClose: be, className: xe, wrapperClassName: we, getOptionDisabled: ye, slotProps: V }) {
16
+ const s = ue === !0, n = te ?? mt, S = (e, t) => j ? j(e, t) : e === t, [ve, Ne] = w(!1), a = T ?? ve, f = (e) => {
17
17
  e && (m || D) || (T === void 0 && Ne(e), e ? ge?.() : be?.());
18
- }, [Re, H] = w(""), h = S ?? Re, P = (e, t, l) => {
19
- S === void 0 && H(t), he?.(e, t, l);
20
- }, [b, $] = w(null), De = X([]), Y = X(null), [Se, Ce] = w(null), [Pe, Ae] = w(null), c = o ? Array.isArray(v) ? v : [] : [], g = o ? null : v ?? null, O = !o && g !== null ? n(g) : "";
18
+ }, [Ce, H] = w(""), h = R ?? Ce, P = (e, t, l) => {
19
+ R === void 0 && H(t), he?.(e, t, l);
20
+ }, [b, $] = w(null), De = X([]), Y = X(null), [Re, Se] = w(null), [Pe, ke] = w(null), c = s ? Array.isArray(v) ? v : [] : [], g = s ? null : v ?? null, O = !s && g !== null ? n(g) : "";
21
21
  lt(() => {
22
- S !== void 0 || o || H(O);
22
+ R !== void 0 || s || H(O);
23
23
  }, [
24
- S,
25
- o,
24
+ R,
25
+ s,
26
26
  O
27
27
  ]);
28
- const B = (e) => o ? c.some((t) => C(e, t)) : g !== null && C(e, g), q = E(() => {
28
+ const B = (e) => s ? c.some((t) => S(e, t)) : g !== null && S(e, g), q = E(() => {
29
29
  const e = [...p];
30
30
  if (L) return L(e, { inputValue: h });
31
- const t = !o && g !== null ? n(g).toLowerCase() : null;
31
+ const t = !s && g !== null ? n(g).toLowerCase() : null;
32
32
  if (!h || h.toLowerCase() === t) return e;
33
33
  const l = h.toLowerCase();
34
34
  return e.filter((d) => n(d).toLowerCase().includes(l));
@@ -37,28 +37,28 @@ function Pt({ dataTest: r, options: p, renderInput: ee, value: v, onChange: N, g
37
37
  h,
38
38
  L,
39
39
  v
40
- ]), i = E(() => q.slice(0, 100), [q]), { refs: A, floatingStyles: ke, context: G } = dt({
40
+ ]), i = E(() => q.slice(0, 100), [q]), { refs: k, floatingStyles: Ae, context: G } = dt({
41
41
  open: a,
42
42
  onOpenChange: f,
43
43
  placement: "bottom-start",
44
44
  strategy: "fixed",
45
- whileElementsMounted: st,
45
+ whileElementsMounted: ot,
46
46
  middleware: [
47
47
  at(0),
48
- ot({ padding: 8 }),
48
+ st({ padding: 8 }),
49
49
  nt({ padding: 8 }),
50
50
  ct({ apply({ rects: e, availableHeight: t }) {
51
- Ce(e.reference.width), Ae(de ? t - 8 : Math.min(t - 8, 320));
51
+ Se(e.reference.width), ke(de ? t - 8 : Math.min(t - 8, 320));
52
52
  } })
53
53
  ]
54
- }), { getReferenceProps: Le, getFloatingProps: $e, getItemProps: Ie } = ut([it(G), pt(G, { role: "listbox" })]), Me = Z([A.setReference]), J = E(() => a ? Ze(A.reference.current) : void 0, [a, A]), I = Ke(J), _e = Z([et(A.setFloating, I)]), M = (e, t) => {
55
- if (o) {
56
- const l = c.some((u) => C(t, u)), d = l ? c.filter((u) => !C(t, u)) : [...c, t];
54
+ }), { getReferenceProps: Le, getFloatingProps: $e, getItemProps: Ie } = ut([it(G), pt(G, { role: "listbox" })]), Me = Z([k.setReference]), J = E(() => a ? Ze(k.reference.current) : void 0, [a, k]), I = Ke(J), _e = Z([et(k.setFloating, I)]), M = (e, t) => {
55
+ if (s) {
56
+ const l = c.some((u) => S(t, u)), d = l ? c.filter((u) => !S(t, u)) : [...c, t];
57
57
  N?.(e, d, l ? "removeOption" : "selectOption", { option: t }), P(e, "", "reset"), ce || f(!1);
58
58
  } else
59
59
  N?.(e, t, "selectOption", { option: t }), P(e, n(t), "reset"), f(!1);
60
60
  }, Ee = (e) => {
61
- N?.(e, o ? [] : null, "clear", void 0), P(e, "", "clear");
61
+ N?.(e, s ? [] : null, "clear", void 0), P(e, "", "clear");
62
62
  }, je = (e) => {
63
63
  if (e.key === "Enter" && a && b != null && i[b] != null) {
64
64
  e.preventDefault();
@@ -73,50 +73,50 @@ function Pt({ dataTest: r, options: p, renderInput: ee, value: v, onChange: N, g
73
73
  const t = e.key === "ArrowDown" ? 1 : -1;
74
74
  $((l) => l == null ? t > 0 ? 0 : i.length - 1 : (l + t + i.length) % i.length);
75
75
  }
76
- }, ze = !ne && !m && !D && (o ? c.length > 0 : g !== null), Fe = (e) => {
76
+ }, ze = !ne && !m && !D && (s ? c.length > 0 : g !== null), Fe = (e) => {
77
77
  e.preventDefault(), !(D || m) && (Y.current?.focus(), f(!a));
78
- }, We = o ? F ? F(c, ({ index: e }) => ({ "data-index": e })) : c.map((e, t) => /* @__PURE__ */ s(Je, {
78
+ }, We = s ? F ? F(c, ({ index: e }) => ({ "data-index": e })) : c.map((e, t) => /* @__PURE__ */ o(Je, {
79
79
  dataTest: `selected-chip-${n(e)}`,
80
80
  label: n(e),
81
81
  readOnly: m,
82
82
  onDelete: m ? void 0 : (l) => M(l, e)
83
- }, R ? R(e) : `${n(e)}-${t}`)) : void 0, Ue = /* @__PURE__ */ y("span", {
83
+ }, C ? C(e) : `${n(e)}-${t}`)) : void 0, Ue = /* @__PURE__ */ y("span", {
84
84
  className: "flex items-center gap-1",
85
85
  children: [
86
- W && /* @__PURE__ */ s(tt, {
86
+ W && /* @__PURE__ */ o(tt, {
87
87
  width: 20,
88
88
  height: 20,
89
89
  className: "animate-spin"
90
90
  }),
91
- ze && /* @__PURE__ */ s("button", {
91
+ ze && /* @__PURE__ */ o("button", {
92
92
  type: "button",
93
93
  "aria-label": "Clear",
94
94
  "data-testid": `${r}-clear`,
95
95
  className: "flex min-h-6 min-w-6 cursor-pointer items-center justify-center rounded-full border-0 bg-delta-50",
96
- onMouseDown: (e) => {
97
- e.preventDefault(), Ee(e);
98
- },
99
- children: /* @__PURE__ */ s(Be, {
96
+ onMouseDown: (e) => e.preventDefault(),
97
+ onClick: Ee,
98
+ children: /* @__PURE__ */ o(Be, {
100
99
  width: 20,
101
100
  height: 20,
102
101
  className: "text-delta-700"
103
102
  })
104
103
  }),
105
- m ? null : /* @__PURE__ */ s("button", {
104
+ m ? null : /* @__PURE__ */ o("button", {
106
105
  type: "button",
107
106
  "aria-label": "Toggle options",
108
107
  "aria-expanded": a,
109
108
  "data-testid": `${r}-popup-indicator`,
110
109
  className: "flex cursor-pointer items-center border-0 bg-transparent",
111
- onMouseDown: Fe,
112
- children: ie ?? (o ? /* @__PURE__ */ s(Ge, {
110
+ onMouseDown: (e) => e.preventDefault(),
111
+ onClick: Fe,
112
+ children: ie ?? (s ? /* @__PURE__ */ o(Ge, {
113
113
  width: 24,
114
114
  height: 24,
115
115
  className: "text-delta-700"
116
- }) : /* @__PURE__ */ s(Oe, {
116
+ }) : /* @__PURE__ */ o(Oe, {
117
117
  width: 24,
118
118
  height: 24,
119
- className: k(_["select-custom-icon"], a && _["select-custom-icon-open"], "text-delta-700")
119
+ className: A(_["select-custom-icon"], a && _["select-custom-icon-open"], "text-delta-700")
120
120
  }))
121
121
  })
122
122
  ]
@@ -124,8 +124,8 @@ function Pt({ dataTest: r, options: p, renderInput: ee, value: v, onChange: N, g
124
124
  disabled: D,
125
125
  size: ae,
126
126
  fullWidth: !0,
127
- error: se,
128
- helperText: oe,
127
+ error: oe,
128
+ helperText: se,
129
129
  value: h,
130
130
  onChange: (e) => {
131
131
  P(e, e.target.value, "input"), a || f(!0);
@@ -149,24 +149,24 @@ function Pt({ dataTest: r, options: p, renderInput: ee, value: v, onChange: N, g
149
149
  endAdornment: Ue
150
150
  }
151
151
  }
152
- }, Ve = k("box-border flex min-h-10 cursor-pointer items-center gap-x-3 px-3 py-1.5 text-base text-delta-800", "aria-selected:bg-gama-50 data-[active]:bg-gama-50 data-[active]:text-delta-800", "aria-disabled:cursor-default aria-disabled:!bg-transparent aria-disabled:text-delta-300"), He = (e, t, l) => {
152
+ }, Ve = A("box-border flex min-h-10 cursor-pointer items-center gap-x-3 px-3 py-1.5 text-base text-delta-800", "aria-selected:bg-gama-50 data-[active]:bg-gama-50 data-[active]:text-delta-800", "aria-disabled:cursor-default aria-disabled:!bg-transparent aria-disabled:text-delta-300"), He = (e, t, l) => {
153
153
  const { key: d, ...u } = e;
154
154
  return /* @__PURE__ */ y("li", {
155
155
  ...u,
156
- children: [o ? /* @__PURE__ */ s(Q, {
156
+ children: [s ? /* @__PURE__ */ o(Q, {
157
157
  dataTest: `${r}-${n(t)}-checkbox`,
158
158
  checked: l.selected,
159
159
  size: "small",
160
160
  hideWrapper: !0,
161
161
  decorative: !0
162
- }) : /* @__PURE__ */ s("span", {
162
+ }) : /* @__PURE__ */ o("span", {
163
163
  className: "w-5",
164
- children: l.selected && /* @__PURE__ */ s(qe, {
164
+ children: l.selected && /* @__PURE__ */ o(qe, {
165
165
  width: 20,
166
166
  height: 20,
167
167
  className: "text-gama-500"
168
168
  })
169
- }), /* @__PURE__ */ s("span", {
169
+ }), /* @__PURE__ */ o("span", {
170
170
  className: "line-clamp-2 min-w-0 flex-1 break-words",
171
171
  children: n(t)
172
172
  })]
@@ -180,7 +180,7 @@ function Pt({ dataTest: r, options: p, renderInput: ee, value: v, onChange: N, g
180
180
  },
181
181
  onMouseMove: () => $(l ? null : t)
182
182
  }),
183
- key: R ? String(R(e)) : `${n(e)}-${t}`,
183
+ key: C ? String(C(e)) : `${n(e)}-${t}`,
184
184
  ref: (x) => {
185
185
  De.current[t] = x;
186
186
  },
@@ -198,26 +198,26 @@ function Pt({ dataTest: r, options: p, renderInput: ee, value: v, onChange: N, g
198
198
  return z ? z(d, e, u) : He(d, e, u);
199
199
  };
200
200
  return /* @__PURE__ */ y("div", {
201
- className: k(_.styledSelectAutocompleteWrapper, !me && "w-auto", we, xe),
202
- children: [ee(Te), a && /* @__PURE__ */ s(rt, {
201
+ className: A(_.styledSelectAutocompleteWrapper, !me && "w-auto", we, xe),
202
+ children: [ee(Te), a && /* @__PURE__ */ o(rt, {
203
203
  root: J,
204
204
  children: /* @__PURE__ */ y("ul", {
205
205
  ref: _e,
206
206
  ...I ? Qe : {},
207
207
  style: {
208
208
  ...I ? Xe : {},
209
- ...ke,
210
- width: Se ?? void 0,
209
+ ...Ae,
210
+ width: Re ?? void 0,
211
211
  maxHeight: Pe ?? void 0,
212
212
  fontFamily: "Roboto, Helvetica, Arial, sans-serif",
213
213
  ...V?.popper?.style
214
214
  },
215
215
  ...$e(),
216
- className: k("z-[1300] m-0 list-none overflow-auto rounded-lg border border-solid border-delta-300 bg-white px-0 py-2 shadow-[0px_2px_4px_0px_rgba(34,33,51,0.15)]", "[&>li:not(:last-child)]:border-0 [&>li:not(:last-child)]:border-b", "[&>li:not(:last-child)]:border-solid [&>li:not(:last-child)]:border-delta-200", fe?.listbox, V?.popper?.className),
217
- children: [pe && o && /* @__PURE__ */ y("div", {
216
+ className: A("z-[1300] m-0 list-none overflow-auto rounded-lg border border-solid border-delta-300 bg-white px-0 py-2 shadow-[0px_2px_4px_0px_rgba(34,33,51,0.15)]", "[&>li:not(:last-child)]:border-0 [&>li:not(:last-child)]:border-b", "[&>li:not(:last-child)]:border-solid [&>li:not(:last-child)]:border-delta-200", fe?.listbox, V?.popper?.className),
217
+ children: [pe && s && /* @__PURE__ */ y("div", {
218
218
  role: "group",
219
219
  className: "flex min-h-12 items-center gap-x-1 border-0 border-b border-solid border-delta-200 px-4 text-sm text-delta-700",
220
- children: [/* @__PURE__ */ s(Q, {
220
+ children: [/* @__PURE__ */ o(Q, {
221
221
  dataTest: `${r}-select-all`,
222
222
  "aria-label": U,
223
223
  checked: p.length > 0 && c.length === p.length,
@@ -228,15 +228,15 @@ function Pt({ dataTest: r, options: p, renderInput: ee, value: v, onChange: N, g
228
228
  const t = p.length > 0 && c.length === p.length;
229
229
  N?.(e, t ? [] : p, t ? "clear" : "selectOption", void 0);
230
230
  }
231
- }), /* @__PURE__ */ s("span", {
231
+ }), /* @__PURE__ */ o("span", {
232
232
  className: "flex-1 truncate py-2",
233
233
  children: U
234
234
  })]
235
- }), W ? /* @__PURE__ */ s("li", {
235
+ }), W ? /* @__PURE__ */ o("li", {
236
236
  role: "presentation",
237
237
  className: "px-3 py-2 text-sm text-delta-600",
238
238
  children: le
239
- }) : i.length === 0 ? /* @__PURE__ */ s("li", {
239
+ }) : i.length === 0 ? /* @__PURE__ */ o("li", {
240
240
  role: "presentation",
241
241
  className: "px-3 py-2 text-sm text-delta-600",
242
242
  children: re
@@ -3,21 +3,21 @@ import { HelperRow as et } from "../../../helpers/HelperRow.js";
3
3
  import { useHelperSlot as lt } from "../../../helpers/useHelperSlot.js";
4
4
  import g from "./StyledSlider.module.js";
5
5
  import { useId as at, useState as rt } from "react";
6
- import { jsx as p, jsxs as H } from "react/jsx-runtime";
7
- var T = (c, e, o) => o === e ? 0 : Math.min(100, Math.max(0, (c - e) / (o - e) * 100)), ot = (c) => Array.isArray(c) ? [c[0] ?? 0, c[1] ?? 0] : null, ft = ({ dataTest: c, min: e = 0, max: o = 100, step: b = 1, value: z, defaultValue: E, disabled: v, size: D = "medium", orientation: L = "horizontal", marks: w, name: G, className: J, classes: u, slotProps: M, error: y, errorText: O, helperText: U, reserveHelperText: Q, ariaLabel: S, ariaLabelledBy: W, onChange: _, onChangeCommitted: j }) => {
8
- const V = at(), a = L === "vertical", d = D === "small" ? 6 : 8, [Z, k] = rt(E ?? e), A = z ?? Z, n = ot(A), f = n !== null, B = y ? O ?? U : U, { show: F, role: C } = lt("StyledSlider", y, B, Q), $ = (w === !0 && Number.isFinite(b) && b > 0 && o > e ? Array.from({ length: Math.floor((o - e) / b) + 1 }, (t, l) => ({ value: e + b * l })) : Array.isArray(w) ? w : []).filter((t) => t.value >= e && t.value <= o), K = f ? Math.min(n[0], n[1]) : e, x = f ? Math.max(n[0], n[1]) : A, X = (t) => f ? t >= K && t <= x : t <= x, P = f ? T(K, e, o) : 0, Y = T(x, e, o) - P, I = a ? {
6
+ import { jsx as p, jsxs as U } from "react/jsx-runtime";
7
+ var H = (c, e, o) => o === e ? 0 : Math.min(100, Math.max(0, (c - e) / (o - e) * 100)), ot = (c) => Array.isArray(c) ? [c[0] ?? 0, c[1] ?? 0] : null, ft = ({ dataTest: c, min: e = 0, max: o = 100, step: b = 1, value: T, defaultValue: E, disabled: v, size: z = "medium", orientation: L = "horizontal", marks: M, name: G, className: J, classes: u, slotProps: S, error: y, errorText: O, helperText: _, reserveHelperText: Q, ariaLabel: w, ariaLabelledBy: W, onChange: j, onChangeCommitted: V }) => {
8
+ const B = at(), a = L === "vertical", d = z === "small" ? 6 : 8, [Z, k] = rt(E ?? e), A = T ?? Z, n = ot(A), f = n !== null, D = y ? O ?? _ : _, { show: F, role: C } = lt("StyledSlider", y, D, Q), $ = (M === !0 && Number.isFinite(b) && b > 0 && o > e ? Array.from({ length: Math.floor((o - e) / b) + 1 }, (t, l) => ({ value: e + b * l })) : Array.isArray(M) ? M : []).filter((t) => t.value >= e && t.value <= o), K = f ? Math.min(n[0], n[1]) : e, x = f ? Math.max(n[0], n[1]) : A, X = (t) => f ? t >= K && t <= x : t <= x, P = f ? H(K, e, o) : 0, Y = H(x, e, o) - P, I = a ? {
9
9
  bottom: `${P}%`,
10
10
  height: `${Y}%`
11
11
  } : {
12
12
  left: `${P}%`,
13
13
  width: `${Y}%`
14
14
  }, q = (t) => {
15
- const l = T(t, e, o);
15
+ const l = H(t, e, o);
16
16
  return a ? { bottom: `${l}%` } : { left: `${l}%` };
17
17
  }, tt = (t) => {
18
18
  if (v) return;
19
19
  const l = t.currentTarget.getBoundingClientRect(), r = a ? 1 - (t.clientY - l.top) / l.height : (t.clientX - l.left) / l.width, m = e + Math.round(Math.min(1, Math.max(0, r)) * ((o - e) / b)) * b, h = Math.min(o, Math.max(e, m));
20
- N(_, t, h, f && Math.abs((n?.[1] ?? e) - h) < Math.abs((n?.[0] ?? e) - h) ? 1 : 0);
20
+ N(j, t, h, f && Math.abs((n?.[1] ?? e) - h) < Math.abs((n?.[0] ?? e) - h) ? 1 : 0);
21
21
  }, N = (t, l, r, m) => {
22
22
  let h = r;
23
23
  if (!f) h = r;
@@ -25,7 +25,7 @@ var T = (c, e, o) => o === e ? 0 : Math.min(100, Math.max(0, (c - e) / (o - e) *
25
25
  const s = [n?.[0] ?? 0, n?.[1] ?? 0];
26
26
  s[m] = r, m === 0 && s[0] > s[1] && (s[0] = s[1]), m === 1 && s[1] < s[0] && (s[1] = s[0]), h = s;
27
27
  }
28
- z === void 0 && k(h), t && t(l, h, m);
28
+ T === void 0 && k(h), t && t(l, h, m);
29
29
  }, R = (t, l) => /* @__PURE__ */ p("input", {
30
30
  type: "range",
31
31
  "data-testid": f ? `${c}-thumb-${t}` : c,
@@ -36,22 +36,22 @@ var T = (c, e, o) => o === e ? 0 : Math.min(100, Math.max(0, (c - e) / (o - e) *
36
36
  value: l,
37
37
  disabled: v,
38
38
  "aria-orientation": L,
39
- "aria-label": typeof S == "function" ? S(t) : S,
39
+ "aria-label": typeof w == "function" ? w(t) : w,
40
40
  "aria-labelledby": W,
41
41
  "aria-invalid": y ? !0 : void 0,
42
- "aria-describedby": F ? V : void 0,
43
- className: i(g.SliderInput, a ? g.Vertical : g.Horizontal, !a && "z-0", D === "small" && g.Small, v && g.Disabled, u?.thumb, M?.thumb?.className),
44
- onChange: (r) => N(_, r, Number(r.currentTarget.value), t),
45
- onPointerUp: (r) => N(j, r, Number(r.currentTarget.value), t),
46
- onKeyUp: (r) => N(j, r, Number(r.currentTarget.value), t)
42
+ "aria-describedby": F ? B : void 0,
43
+ className: i(g.SliderInput, a ? g.Vertical : g.Horizontal, !a && "z-0", z === "small" && g.Small, v && g.Disabled, u?.thumb, S?.thumb?.className),
44
+ onChange: (r) => N(j, r, Number(r.currentTarget.value), t),
45
+ onPointerUp: (r) => N(V, r, Number(r.currentTarget.value), t),
46
+ onKeyUp: (r) => N(V, r, Number(r.currentTarget.value), t)
47
47
  }, t);
48
- return /* @__PURE__ */ H("div", {
48
+ return /* @__PURE__ */ U("div", {
49
49
  className: i("relative flex", a ? "h-full w-8 flex-col items-center" : "mt-px w-full flex-col", u?.root, J),
50
50
  children: [
51
- /* @__PURE__ */ H("div", {
51
+ /* @__PURE__ */ U("div", {
52
52
  className: i("relative", a ? "h-full w-8" : "h-4 w-full"),
53
- children: [/* @__PURE__ */ H("div", {
54
- onPointerDown: tt,
53
+ children: [/* @__PURE__ */ U("div", {
54
+ onPointerUp: tt,
55
55
  className: i("absolute", a ? "left-1/2 w-1 -translate-x-1/2" : "top-[calc(50%+6px)] h-1 -translate-y-1/2"),
56
56
  style: a ? {
57
57
  top: d,
@@ -61,7 +61,7 @@ var T = (c, e, o) => o === e ? 0 : Math.min(100, Math.max(0, (c - e) / (o - e) *
61
61
  right: d
62
62
  },
63
63
  children: [
64
- /* @__PURE__ */ p("div", { className: i("absolute inset-0 rounded-full bg-delta-100", u?.rail, M?.rail?.className) }),
64
+ /* @__PURE__ */ p("div", { className: i("absolute inset-0 rounded-full bg-delta-100", u?.rail, S?.rail?.className) }),
65
65
  /* @__PURE__ */ p("div", {
66
66
  className: i("absolute rounded-full", a ? "left-0 w-full" : "top-0 h-full", v ? "bg-delta-200" : "bg-gama-500", u?.track),
67
67
  style: I
@@ -86,16 +86,16 @@ var T = (c, e, o) => o === e ? 0 : Math.min(100, Math.max(0, (c - e) / (o - e) *
86
86
  marginRight: d
87
87
  },
88
88
  children: $.map((t) => t.label == null ? null : /* @__PURE__ */ p("span", {
89
- className: i("absolute text-base font-semibold text-delta-700", a ? "left-[37px] translate-y-1/2" : "-translate-x-1/2", X(t.value) && u?.markLabelActive, u?.markLabel, M?.markLabel?.className),
89
+ className: i("absolute text-base font-semibold text-delta-700", a ? "left-[37px] translate-y-1/2" : "-translate-x-1/2", X(t.value) && u?.markLabelActive, u?.markLabel, S?.markLabel?.className),
90
90
  style: q(t.value),
91
91
  children: t.label
92
92
  }, t.value))
93
93
  }),
94
94
  F && /* @__PURE__ */ p(et, {
95
- id: V,
95
+ id: B,
96
96
  role: C,
97
97
  error: y,
98
- message: B,
98
+ message: D,
99
99
  className: "m-0 items-center"
100
100
  })
101
101
  ]
@@ -1,24 +1,24 @@
1
1
  import { useHelperSlot as R } from "../../../helpers/useHelperSlot.js";
2
2
  import e from "./StyledTextarea.module.js";
3
- import { useEffect as U, useId as m, useRef as V } from "react";
3
+ import { useEffect as U, useId as x, useRef as V } from "react";
4
4
  import { Fragment as W, jsx as n, jsxs as c } from "react/jsx-runtime";
5
- var tt = ({ id: H, variant: x = "active", label: d = "", labelClassName: A = "", description: l = "", reserveHelperText: M, value: t = "", minRows: r = 3, maxRows: i = 1 / 0, disabled: g, error: a, errorMessage: j, containerClassName: _ = "", className: w = "", maxLength: B = 1 / 0, counter: E, refLink: k, dataTest: C, counterLimit: p, ...y }) => {
6
- const q = V(null), h = k ?? q, s = !!(E && p), b = m(), u = m(), z = m(), $ = H ?? z, v = a ? j : l, { show: N, role: D } = R("StyledTextarea", a, v, M);
5
+ var tt = ({ id: H, variant: g = "active", label: d = "", labelClassName: A = "", description: l = "", reserveHelperText: M, value: t = "", minRows: r = 3, maxRows: i = 1 / 0, disabled: y, error: a, errorMessage: j, containerClassName: _ = "", className: w = "", maxLength: B = 1 / 0, counter: E, refLink: k, dataTest: C, counterLimit: p, ...h }) => {
6
+ const q = V(null), f = k ?? q, s = !!(E && p), b = x(), u = x(), z = x(), $ = H ?? z, v = a ? j : l, { show: N, role: D } = R("StyledTextarea", a, v, M);
7
7
  U(() => {
8
- const o = h.current;
8
+ const o = f.current;
9
9
  if (!o) return;
10
- const f = window.getComputedStyle(o), S = parseFloat(f.lineHeight) || 24, T = parseFloat(f.paddingTop), F = parseFloat(f.paddingBottom);
10
+ const m = window.getComputedStyle(o), S = parseFloat(m.lineHeight) || 24, T = parseFloat(m.paddingTop), F = parseFloat(m.paddingBottom);
11
11
  o.style.height = "auto";
12
12
  const K = o.scrollHeight - T - F, O = Math.max(1, Math.ceil(K / S)), Q = Math.min(Math.max(O, r), i);
13
13
  o.style.height = `${Q * S + T + F}px`;
14
14
  }, [
15
- h,
15
+ f,
16
16
  t,
17
17
  r,
18
18
  i,
19
19
  s
20
20
  ]), i < r && (r = i);
21
- const G = a ? "error" : "active", I = a ? "error" : g ? "disabled" : "active", J = typeof d != "string" || d.trim() !== "" ? void 0 : typeof l == "string" && l.trim() !== "" ? l : y.placeholder;
21
+ const G = a ? "error" : "active", I = a ? "error" : y ? "disabled" : "active", J = typeof d != "string" || d.trim() !== "" ? void 0 : typeof l == "string" && l.trim() !== "" ? l : h.placeholder;
22
22
  return /* @__PURE__ */ c("div", {
23
23
  className: `relative flex flex-col gap-1 ${_}`,
24
24
  "data-testid": C,
@@ -34,23 +34,23 @@ var tt = ({ id: H, variant: x = "active", label: d = "", labelClassName: A = "",
34
34
  className: `${e.description} ${e[I]} min-h-[24px]`,
35
35
  children: v
36
36
  }),
37
- x === "view_only" ? /* @__PURE__ */ n("div", {
37
+ g === "view_only" ? /* @__PURE__ */ n("div", {
38
38
  className: "pt-3 font-roboto text-base font-normal text-delta-700",
39
39
  children: t
40
- }) : x === "not_editable" ? /* @__PURE__ */ n("div", {
40
+ }) : g === "not_editable" ? /* @__PURE__ */ n("div", {
41
41
  className: "rounded bg-delta-50 p-3 font-roboto text-base font-normal text-delta-700",
42
42
  children: t
43
43
  }) : /* @__PURE__ */ n("textarea", {
44
- ...y,
44
+ ...h,
45
45
  "aria-describedby": [N ? b : null, s ? u : null].filter(Boolean).join(" ") || void 0,
46
46
  "aria-invalid": a,
47
- "aria-label": J,
47
+ "aria-label": h["aria-label"] ?? J,
48
48
  id: $,
49
- ref: h,
49
+ ref: f,
50
50
  className: `${e.textarea} ${e[G]} ${w} ${s ? "pb-[32px]" : ""}`,
51
51
  wrap: "soft",
52
52
  value: t,
53
- disabled: g,
53
+ disabled: y,
54
54
  maxLength: B
55
55
  }),
56
56
  s && /* @__PURE__ */ c(W, { children: [/* @__PURE__ */ c("div", {
@@ -1,5 +1,5 @@
1
- import { StyledButton as s } from "../../../shared-components/button/StyledButton.js";
2
- import { CloseIcon as l } from "../../../shared-components/CloseIcon.js";
1
+ import { CloseIcon as s } from "../../../../components/icons/close-icon/CloseIcon.js";
2
+ import { StyledButton as l } from "../../../shared-components/button/StyledButton.js";
3
3
  import { jsx as e, jsxs as r } from "react/jsx-runtime";
4
4
  function y(o) {
5
5
  const { onClose: n, children: a, calendarMonth: c, displayIndex: d, ...t } = o;
@@ -13,12 +13,12 @@ function y(o) {
13
13
  alignItems: "center",
14
14
  marginLeft: "10px"
15
15
  },
16
- children: [a, /* @__PURE__ */ e(s, {
16
+ children: [a, /* @__PURE__ */ e(l, {
17
17
  dataTest: "close-button",
18
18
  "aria-label": "Close",
19
19
  variant: "textGray",
20
20
  onClick: (i) => n?.(i, "backdropClick"),
21
- startIcon: /* @__PURE__ */ e(l, {
21
+ startIcon: /* @__PURE__ */ e(s, {
22
22
  height: 20,
23
23
  width: 20
24
24
  })
@@ -1,5 +1,5 @@
1
- import { ChevronLeftIcon as f } from "../../../shared-components/ChevronLeftIcon.js";
2
- import { ChevronRightIcon as u } from "../../../shared-components/ChevronRightIcon.js";
1
+ import { ChevronRightIcon as f } from "../../../../components/icons/chevron-right-icon/ChevronRightIcon.js";
2
+ import { ChevronLeftIcon as u } from "../../../../components/icons/chevron-left-icon/ChevronLeftIcon.js";
3
3
  import { StyledButton as e } from "../../../shared-components/button/StyledButton.js";
4
4
  import { jsx as t, jsxs as s } from "react/jsx-runtime";
5
5
  import { useNavigation as y } from "react-day-picker";
@@ -39,7 +39,7 @@ var j = ({ onClose: m, isNb: n, selected: i, removeSelection: h, setMonth: a, on
39
39
  r && a(r);
40
40
  },
41
41
  style: { minWidth: "25px" },
42
- children: /* @__PURE__ */ t(f, {
42
+ children: /* @__PURE__ */ t(u, {
43
43
  width: 20,
44
44
  height: 20
45
45
  })
@@ -62,7 +62,7 @@ var j = ({ onClose: m, isNb: n, selected: i, removeSelection: h, setMonth: a, on
62
62
  l && a(l);
63
63
  },
64
64
  style: { minWidth: "25px" },
65
- children: /* @__PURE__ */ t(u, {
65
+ children: /* @__PURE__ */ t(f, {
66
66
  width: 20,
67
67
  height: 20
68
68
  })
@@ -1,18 +1,18 @@
1
1
  import { ClockOutlineIcon as E } from "../../../components/icons/clock-outline-icon/ClockOutlineIcon.js";
2
2
  import { StyledInputField as I } from "../../../components/inputs/input-field/StyledInputField.js";
3
3
  import { useInputMask as N } from "../../../helpers/inputMask.js";
4
- import { HelperText as w, defaultTimePickerHelperMessages as y } from "./components/HelperText.js";
5
- import { useEffect as M, useRef as P } from "react";
6
- import { jsx as r, jsxs as R } from "react/jsx-runtime";
7
- var O = (x) => {
8
- const { placeholder: c, disabled: e, inputClassName: f, dataTest: n, width: l, error: u, helperText: h, label: g, locale: T = "en", popupState: a, handleChange: k, isValidTime: p, isValidEndTime: m, localValue: C, title: d, readOnly: t } = x, b = N({
4
+ import { HelperText as y, defaultTimePickerHelperMessages as P } from "./components/HelperText.js";
5
+ import { useEffect as R, useRef as v } from "react";
6
+ import { jsx as r, jsxs as w } from "react/jsx-runtime";
7
+ var O = (c) => {
8
+ const { placeholder: x, disabled: e, inputClassName: f, dataTest: n, width: l, error: h, helperText: u, label: g, locale: k = "en", popupState: a, handleChange: T, isValidTime: p, isValidEndTime: m, localValue: C, title: d, readOnly: t } = c, b = N({
9
9
  mask: "xx:xx",
10
10
  maskChar: "x",
11
11
  showMask: !1
12
- }), i = !p || !m || !!u, s = P(null);
13
- return M(() => {
12
+ }), i = !p || !m || !!h, s = v(null);
13
+ return R(() => {
14
14
  s.current && a.setAnchorEl(s.current);
15
- }, []), /* @__PURE__ */ R("div", {
15
+ }, []), /* @__PURE__ */ w("div", {
16
16
  style: { height: t ? "40px" : "75px" },
17
17
  children: [d && /* @__PURE__ */ r("div", {
18
18
  className: "pb-1 font-roboto font-semibold text-delta-800",
@@ -23,22 +23,22 @@ var O = (x) => {
23
23
  type: "text",
24
24
  dataTest: n,
25
25
  "data-testid": n,
26
- placeholder: c,
26
+ placeholder: x,
27
27
  size: "small",
28
28
  error: i,
29
- helperText: /* @__PURE__ */ r(w, {
29
+ helperText: /* @__PURE__ */ r(y, {
30
30
  isValidTime: p,
31
31
  isValidEndTime: m,
32
32
  error: i,
33
- localization: T,
34
- helperText: h,
35
- messages: y
33
+ localization: k,
34
+ helperText: u,
35
+ messages: P
36
36
  }),
37
- onChange: k,
37
+ onChange: T,
38
38
  slotProps: {
39
39
  input: {
40
40
  ref: s,
41
- onMouseDown: (o) => {
41
+ onClick: (o) => {
42
42
  !e && !t && a.open(o);
43
43
  },
44
44
  endAdornment: /* @__PURE__ */ r(E, {
@@ -0,0 +1 @@
1
+ export {};
@@ -1,2 +1 @@
1
- import { SVGProps } from 'react';
2
- export declare function ChevronLeftIcon(props: SVGProps<SVGSVGElement>): JSX.Element;
1
+ export { ChevronLeftIcon } from '../../components/icons/chevron-left-icon';
@@ -1,2 +1 @@
1
- import { SVGProps } from 'react';
2
- export declare function ChevronRightIcon(props: SVGProps<SVGSVGElement>): JSX.Element;
1
+ export { ChevronRightIcon } from '../../components/icons/chevron-right-icon';
@@ -1,2 +1 @@
1
- import { SVGProps } from 'react';
2
- export declare function CloseIcon(props: SVGProps<SVGSVGElement>): JSX.Element;
1
+ export { CloseIcon } from '../../components/icons/close-icon';
@@ -1,2 +1 @@
1
- import { SVGProps } from 'react';
2
- export declare function ChevronLeftIcon(props: SVGProps<SVGSVGElement>): JSX.Element;
1
+ export { ChevronLeftIcon } from '../../components/icons/chevron-left-icon';
@@ -1,2 +1 @@
1
- import { SVGProps } from 'react';
2
- export declare function ChevronRightIcon(props: SVGProps<SVGSVGElement>): JSX.Element;
1
+ export { ChevronRightIcon } from '../../components/icons/chevron-right-icon';
@@ -1,2 +1 @@
1
- import { SVGProps } from 'react';
2
- export declare function DotsVerticalIcon(props: SVGProps<SVGSVGElement>): JSX.Element;
1
+ export { DotsVerticalIcon } from '../../components/icons/dots-vertical-icon';