asma-ui-core 3.24.0 → 3.25.0

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 (22) hide show
  1. package/dist/components/data-display/interactive-chip/StyledInteractiveChip.js +9 -9
  2. package/dist/components/data-display/tooltip/StyledTooltip.js +27 -28
  3. package/dist/components/inputs/checkbox/base-ui/StyledCheckbox.js +1 -1
  4. package/dist/components/inputs/dynamic-select/components/DynamicSelectAutocomplete.js +89 -89
  5. package/dist/components/inputs/input-field/StyledInputField.js +80 -74
  6. package/dist/components/inputs/search-field/StyledSearchField.js +33 -31
  7. package/dist/components/inputs/select-autocomplete/StyledSelectAutocomplete.js +114 -106
  8. package/dist/components/navigation/tabs/StyledTabs.js +15 -9
  9. package/dist/components/utils/accordion/base-ui/StyledAccordion.js +1 -1
  10. package/dist/datetime/components/date-picker/components/BaseDatePickerInput.js +20 -18
  11. package/dist/datetime/components/time-picker/TimePickerInput.js +7 -7
  12. package/dist/datetime/shared-components/StyledTooltip.js +27 -31
  13. package/dist/src/components/inputs/checkbox/base-ui/StyledCheckbox.d.ts +1 -1
  14. package/dist/src/components/inputs/select-autocomplete/StyledSelectAutocomplete.d.ts +1 -1
  15. package/dist/src/components/utils/accordion/base-ui/StyledAccordion.d.ts +1 -1
  16. package/dist/src/table/shared-components/StyledCheckbox.d.ts +1 -1
  17. package/dist/table/components/columns/action-column/components/RowActionMenu.js +40 -37
  18. package/dist/table/components/table-footer/TablePagination.js +18 -18
  19. package/dist/table/components/table-footer/TableRowCountSelect.js +17 -17
  20. package/dist/table/shared-components/StyledCheckbox.js +1 -1
  21. package/dist/table/shared-components/tooltip/index.js +21 -19
  22. package/package.json +5 -11
@@ -1,146 +1,154 @@
1
1
  import { cn as v } from "../../../helpers/cn.js";
2
- import { ChevronDownIcon as re } from "../../icons/chevron-down-icon/ChevronDownIcon.js";
3
- import { CloseIcon as le } from "../../icons/close-icon/CloseIcon.js";
4
- import { CheckIcon as oe } from "../../icons/check-icon/CheckIcon.js";
5
- import { PlusIconCircle as ae } from "../../icons/plus-icon-circle/PlusIconCircle.js";
6
- import { StyledChip as ne } from "../../data-display/chip/StyledChip.js";
7
- import { StyledCheckbox as H } from "../checkbox/base-ui/StyledCheckbox.js";
8
- import B from "./StyledSelectAutocomplete.module.js";
9
- import D from "clsx";
10
- import { createElement as C, useLayoutEffect as se, useRef as ce, useState as z } from "react";
11
- import { Autocomplete as ie, Paper as de } from "@mui/material";
12
- import { jsx as l, jsxs as T } from "react/jsx-runtime";
13
- function Me({ dataTest: i, autoHeight: m, getOptionLabel: d, wrapperClassName: W, multiple: n, allowSelectAll: _, selectAllLabel: M, className: F, defaultValue: N, isOptionEqualToValue: p, ListboxProps: k, onChange: G, options: h, popupIcon: K, readOnly: f, renderOption: L, renderTags: O, sx: U, value: x, ...V }) {
14
- const [A, E] = z("auto"), g = ce(null), o = n === !0 && _ === !0 && !f, w = x !== void 0, b = (e) => Array.isArray(e) ? e : [], [J, Q] = z(() => b(N));
15
- se(() => {
16
- if (!m) return;
17
- const e = g.current?.getBoundingClientRect().height ?? 0, t = g.current?.getBoundingClientRect().top ?? 0, r = window.innerHeight - t - e - 40;
18
- E(r > 0 ? r : "auto");
19
- }, [m]);
20
- const y = m ? {
21
- style: { maxHeight: A === "auto" ? "auto" : `${A}px` },
22
- ...k
23
- } : k, s = (e) => typeof e == "object" && e !== null && "label" in e ? e.label : String(e), X = (e) => typeof e == "object" && e !== null && "disabled" in e && !!e.disabled, I = {
2
+ import { ChevronDownIcon as le } from "../../icons/chevron-down-icon/ChevronDownIcon.js";
3
+ import { CloseIcon as ae } from "../../icons/close-icon/CloseIcon.js";
4
+ import { CheckIcon as se } from "../../icons/check-icon/CheckIcon.js";
5
+ import { PlusIconCircle as ne } from "../../icons/plus-icon-circle/PlusIconCircle.js";
6
+ import { StyledChip as ce } from "../../data-display/chip/StyledChip.js";
7
+ import { StyledCheckbox as R } from "../checkbox/base-ui/StyledCheckbox.js";
8
+ import H from "./StyledSelectAutocomplete.module.js";
9
+ import B from "clsx";
10
+ import { createElement as A, useLayoutEffect as ie, useRef as de, useState as D } from "react";
11
+ import { Autocomplete as ue, Paper as me } from "@mui/material";
12
+ import { jsx as o, jsxs as L } from "react/jsx-runtime";
13
+ import { mergeSlotProps as pe } from "@mui/material/utils";
14
+ function he(s, c) {
15
+ return pe(s, c);
16
+ }
17
+ function Ie({ dataTest: s, autoHeight: c, getOptionLabel: u, wrapperClassName: z, multiple: n, allowSelectAll: W, selectAllLabel: C, className: V, defaultValue: M, isOptionEqualToValue: p, onChange: _, options: h, popupIcon: F, readOnly: f, renderOption: G, renderValue: K, sx: O, value: x, ...T }) {
18
+ const { slots: U, slotProps: g, ...E } = T, [N, J] = D("auto"), b = de(null), l = n === !0 && W === !0 && !f, k = x !== void 0, S = (e) => Array.isArray(e) ? e : [], [Q, X] = D(() => S(M));
19
+ ie(() => {
20
+ if (!c) return;
21
+ const e = b.current?.getBoundingClientRect().height ?? 0, t = b.current?.getBoundingClientRect().top ?? 0, r = window.innerHeight - t - e - 40;
22
+ J(r > 0 ? r : "auto");
23
+ }, [c]);
24
+ const i = (e) => typeof e == "object" && e !== null && "label" in e ? e.label : String(e), Y = (e) => typeof e == "object" && e !== null && "disabled" in e && !!e.disabled, Z = {
24
25
  padding: 0,
25
26
  "& .MuiAutocomplete-option": { paddingLeft: n ? "12px !important" : "6px !important" }
26
- }, Y = y?.sx ? [I, y.sx] : I, $ = o ? b(w ? x : J) : [], c = o ? h.filter((e) => !X(e)) : h, Z = (e, t) => {
27
+ }, w = c ? { maxHeight: N === "auto" ? "auto" : `${N}px` } : void 0, I = l ? S(k ? x : Q) : [], d = l ? h.filter((e) => !Y(e)) : h, q = (e, t) => {
27
28
  const r = typeof e == "object" && e !== null;
28
29
  return r !== (typeof t == "object" && t !== null) || !r && typeof e != typeof t ? !1 : p ? p(e, t) : e === t;
29
- }, j = o ? c.filter((e) => $.some((t) => Z(e, t))).length : 0, R = o && c.length > 0 && j === c.length, q = o && j > 0 && !R, P = (e, t, r, a) => {
30
- o && !w && Q(b(t)), G?.(e, t, r, a);
31
- }, ee = (e, t) => {
32
- P(e, t ? [...c] : [], t ? "selectOption" : "clear", void 0);
33
- }, te = (e, t) => e.map((r, a) => {
34
- const u = t({ index: a }), S = d?.(r) ?? s(r);
35
- return /* @__PURE__ */ C(ne, {
36
- ...u,
37
- key: `selected-chip-${S}-${a}`,
38
- dataTest: `selected-chip-${S}`,
39
- label: S,
30
+ }, P = l ? d.filter((e) => I.some((t) => q(e, t))).length : 0, $ = l && d.length > 0 && P === d.length, ee = l && P > 0 && !$, j = (e, t, r, a) => {
31
+ l && !k && X(S(t)), _?.(e, t, r, a);
32
+ }, te = (e, t) => {
33
+ j(e, t ? [...d] : [], t ? "selectOption" : "clear", void 0);
34
+ }, re = (e, t) => Array.isArray(e) ? e.map((r, a) => {
35
+ const m = t({ index: a }), y = u?.(r) ?? i(r);
36
+ return /* @__PURE__ */ A(ce, {
37
+ ...m,
38
+ key: `selected-chip-${y}-${a}`,
39
+ dataTest: `selected-chip-${y}`,
40
+ label: y,
40
41
  variant: "outlined"
41
42
  });
42
- });
43
- return /* @__PURE__ */ l("div", {
44
- className: v(B.styledSelectAutocompleteWrapper, W),
45
- ref: g,
46
- children: /* @__PURE__ */ l(ie, {
47
- ...V,
43
+ }) : null, oe = {
44
+ sx: Z,
45
+ ...w ? { style: w } : {}
46
+ };
47
+ return /* @__PURE__ */ o("div", {
48
+ className: v(H.styledSelectAutocompleteWrapper, z),
49
+ ref: b,
50
+ children: /* @__PURE__ */ o(ue, {
51
+ ...E,
48
52
  multiple: n,
49
- defaultValue: o ? void 0 : N,
50
- getOptionLabel: d,
53
+ defaultValue: l ? void 0 : M,
54
+ getOptionLabel: u,
51
55
  isOptionEqualToValue: p,
52
- ListboxProps: {
53
- ...y,
54
- sx: Y
55
- },
56
- className: D("!text-sm", F),
57
- onChange: P,
56
+ className: B("!text-sm", V),
57
+ onChange: j,
58
58
  options: h,
59
- renderTags: O ?? (n ? te : void 0),
60
- popupIcon: f ? null : K ?? n ? /* @__PURE__ */ l(ae, {
59
+ renderValue: K ?? (n ? re : void 0),
60
+ popupIcon: f ? null : F ?? n ? /* @__PURE__ */ o(ne, {
61
61
  width: 24,
62
62
  height: 24
63
- }) : /* @__PURE__ */ l(re, {
63
+ }) : /* @__PURE__ */ o(le, {
64
64
  width: 24,
65
65
  height: 24,
66
- className: D(B["select-custom-icon"])
66
+ className: B(H["select-custom-icon"])
67
67
  }),
68
68
  readOnly: f,
69
- "data-testid": i,
70
- value: o ? $ : x,
71
- PaperComponent: ({ children: e }) => /* @__PURE__ */ T(de, {
72
- "data-testid": `paper-${i}`,
73
- sx: {
74
- padding: "0 !important",
75
- marginTop: "0px !important",
76
- "& .MuiAutocomplete-option.Mui-focused": { background: "var(--colors-delta-50) !important" },
77
- "& li[aria-selected=true]": { background: "var(--colors-gama-50) !important" },
78
- "& li[aria-selected=true].MuiAutocomplete-option.Mui-focused": { background: "var(--colors-gama-50) !important" },
79
- "&:has([data-select-all-header]:hover) .MuiAutocomplete-option.Mui-focused": { background: "transparent !important" },
80
- "&:has([data-select-all-header]:hover) li[aria-selected=true].MuiAutocomplete-option.Mui-focused": { background: "var(--colors-gama-50) !important" }
81
- },
82
- children: [o && c.length > 0 && /* @__PURE__ */ T("div", {
83
- "data-select-all-header": !0,
84
- className: "flex items-center gap-x-[10px] border-[1px] border-b border-solid border-delta-200 bg-delta-50 py-2 pl-3 text-xs",
85
- onMouseDown: (t) => t.preventDefault(),
86
- role: "presentation",
87
- children: [/* @__PURE__ */ l(H, {
88
- size: "small",
89
- dataTest: `${i}-select-all`,
90
- checked: R,
91
- indeterminate: q,
92
- hideWrapper: !0,
93
- onChange: ee,
94
- "aria-label": M ?? "Select all"
95
- }), /* @__PURE__ */ l("span", {
96
- className: "truncate text-[10px] font-semibold uppercase text-delta-600",
97
- children: M ?? "Select all"
98
- })]
99
- }), e]
100
- }),
101
- renderOption: L ?? ((e, t, { selected: r }) => {
102
- const a = e, u = e.id ?? s(t);
103
- return n ? /* @__PURE__ */ C("li", {
69
+ "data-testid": s,
70
+ value: l ? I : x,
71
+ slots: {
72
+ ...U,
73
+ paper: ({ children: e }) => /* @__PURE__ */ L(me, {
74
+ "data-testid": `paper-${s}`,
75
+ sx: {
76
+ padding: "0 !important",
77
+ marginTop: "0px !important",
78
+ "& .MuiAutocomplete-option.Mui-focused": { background: "var(--colors-delta-50) !important" },
79
+ "& li[aria-selected=true]": { background: "var(--colors-gama-50) !important" },
80
+ "& li[aria-selected=true].MuiAutocomplete-option.Mui-focused": { background: "var(--colors-gama-50) !important" },
81
+ "&:has([data-select-all-header]:hover) .MuiAutocomplete-option.Mui-focused": { background: "transparent !important" },
82
+ "&:has([data-select-all-header]:hover) li[aria-selected=true].MuiAutocomplete-option.Mui-focused": { background: "var(--colors-gama-50) !important" }
83
+ },
84
+ children: [l && d.length > 0 && /* @__PURE__ */ L("div", {
85
+ "data-select-all-header": !0,
86
+ className: "flex items-center gap-x-[10px] border-[1px] border-b border-solid border-delta-200 bg-delta-50 py-2 pl-3 text-xs",
87
+ onMouseDown: (t) => t.preventDefault(),
88
+ role: "presentation",
89
+ children: [/* @__PURE__ */ o(R, {
90
+ size: "small",
91
+ dataTest: `${s}-select-all`,
92
+ checked: $,
93
+ indeterminate: ee,
94
+ hideWrapper: !0,
95
+ onChange: te,
96
+ "aria-label": C ?? "Select all"
97
+ }), /* @__PURE__ */ o("span", {
98
+ className: "truncate text-[10px] font-semibold uppercase text-delta-600",
99
+ children: C ?? "Select all"
100
+ })]
101
+ }), e]
102
+ })
103
+ },
104
+ renderOption: G ?? ((e, t, { selected: r }) => {
105
+ const a = e, m = e.id ?? i(t);
106
+ return n ? /* @__PURE__ */ A("li", {
104
107
  ...a,
105
- key: u,
108
+ key: m,
106
109
  className: v(e.className, "flex items-center gap-x-[10px] border-0 border-b border-solid border-delta-200")
107
- }, /* @__PURE__ */ l(H, {
108
- dataTest: `${i}-${s(t)}-checkbox`,
110
+ }, /* @__PURE__ */ o(R, {
111
+ dataTest: `${s}-${i(t)}-checkbox`,
109
112
  checked: r,
110
113
  size: "small",
111
114
  hideWrapper: !0
112
- }), /* @__PURE__ */ l("span", {
115
+ }), /* @__PURE__ */ o("span", {
113
116
  className: "flex-1 truncate py-2 text-sm text-delta-700",
114
- children: d?.(t) ?? s(t)
115
- })) : /* @__PURE__ */ C("li", {
117
+ children: u?.(t) ?? i(t)
118
+ })) : /* @__PURE__ */ A("li", {
116
119
  ...a,
117
- key: u,
120
+ key: m,
118
121
  className: v(e.className, "flex items-center gap-x-1")
119
- }, /* @__PURE__ */ l("span", {
122
+ }, /* @__PURE__ */ o("span", {
120
123
  className: "w-5",
121
- children: r && /* @__PURE__ */ l(oe, {
124
+ children: r && /* @__PURE__ */ o(se, {
122
125
  width: 20,
123
126
  height: 20,
124
127
  style: { color: "var(--colors-gama-500)" }
125
128
  })
126
- }), /* @__PURE__ */ l("span", {
129
+ }), /* @__PURE__ */ o("span", {
127
130
  className: "flex-1 truncate py-2 text-sm text-delta-700",
128
- children: d?.(t) ?? s(t)
131
+ children: u?.(t) ?? i(t)
129
132
  }));
130
133
  }),
131
134
  sx: {
132
- ...U,
135
+ ...O,
133
136
  "& .MuiOutlinedInput-notchedOutline": { borderColor: "var(--colors-gama-500) !important" },
134
137
  "& .select-custom-icon": { marginTop: "-0.5px !important" },
135
138
  "& .MuiInputBase-inputSizeSmall": { minHeight: "23px !important" }
136
139
  },
137
- slotProps: { clearIndicator: {
138
- disableRipple: !0,
139
- disableFocusRipple: !0
140
- } },
141
- clearIcon: /* @__PURE__ */ l("span", {
140
+ slotProps: {
141
+ ...g,
142
+ clearIndicator: {
143
+ disableRipple: !0,
144
+ disableFocusRipple: !0,
145
+ ...g?.clearIndicator ?? {}
146
+ },
147
+ listbox: he(g?.listbox, oe)
148
+ },
149
+ clearIcon: /* @__PURE__ */ o("span", {
142
150
  className: "flex min-h-6 min-w-6 cursor-pointer items-center justify-center rounded-full bg-delta-50",
143
- children: /* @__PURE__ */ l(le, {
151
+ children: /* @__PURE__ */ o(ae, {
144
152
  width: 20,
145
153
  height: 20,
146
154
  className: "text-delta-700"
@@ -150,5 +158,5 @@ function Me({ dataTest: i, autoHeight: m, getOptionLabel: d, wrapperClassName: W
150
158
  });
151
159
  }
152
160
  export {
153
- Me as StyledSelectAutocomplete
161
+ Ie as StyledSelectAutocomplete
154
162
  };
@@ -46,16 +46,22 @@ var p = {
46
46
  paddingTop: "8px",
47
47
  paddingBottom: "8px"
48
48
  }
49
- }, f = ({ className: r, size: t = "default", sx: o, ...i }) => {
50
- const a = [p];
51
- return t === "small" && a.push(c), n(o) ? a.push(...o) : d(o) && a.push(o), /* @__PURE__ */ l(e, {
52
- ...i,
49
+ }, f = ({ className: r, size: i = "default", sx: o, ...a }) => {
50
+ const t = [p];
51
+ return i === "small" && t.push(c), n(o) ? t.push(...o) : d(o) && t.push(o), /* @__PURE__ */ l(e, {
52
+ ...a,
53
53
  className: s("relative rounded-t-lg bg-white px-4", r),
54
- TabIndicatorProps: { style: {
55
- background: "var(--colors-gama-500)",
56
- color: "var(--colors-gama-500)"
57
- } },
58
- sx: a
54
+ slotProps: {
55
+ ...a.slotProps,
56
+ indicator: {
57
+ style: {
58
+ background: "var(--colors-gama-500)",
59
+ color: "var(--colors-gama-500)"
60
+ },
61
+ ...a.slotProps?.indicator ?? {}
62
+ }
63
+ },
64
+ sx: t
59
65
  });
60
66
  };
61
67
  export {
@@ -2,7 +2,7 @@ import { cn as u } from "../../../../helpers/cn.js";
2
2
  import s from "./StyledAccordion.module.js";
3
3
  import "react";
4
4
  import { jsx as t } from "react/jsx-runtime";
5
- import { Accordion as e } from "@base-ui/react";
5
+ import { Accordion as e } from "@base-ui/react/accordion";
6
6
  var g = ({ className: c, children: i, expanded: r, defaultExpanded: l, onChange: m, ...n }) => {
7
7
  const o = "item", d = {
8
8
  ...n,
@@ -9,18 +9,18 @@ import { useEffect as v, useState as X } from "react";
9
9
  import { jsx as o, jsxs as D } from "react/jsx-runtime";
10
10
  import { isValid as Z, parse as _ } from "date-fns";
11
11
  var ce = (k) => {
12
- const { onClick: N, inputClassName: P, dateFormat: l, selected: t, error: V, helperText: w, errorText: F, onInputChange: g, hideCalendar: B, locale: r, disabledDays: i, label: S, title: y, readOnly: e, disallowPast: s, disallowFuture: d, validateOnCalendarClose: C, onValidatedOnce: b, hideDefaultHelperText: Y, required: n, minDate: c, ...f } = k, { validationError: E, handleValidation: p, errHelperText: I, clearValidation: T } = Q(), { maskRef: O } = L(), [a, H] = X(t ? x(t, l) : ""), W = r?.code?.startsWith("nb") ? "DD/MM/ÅÅÅÅ" : "DD/MM/YYYY", j = Y ? void 0 : W, m = !!(E || V), R = m ? F ?? I : w ?? j;
12
+ const { onClick: N, inputClassName: V, dateFormat: r, selected: t, error: w, helperText: P, errorText: B, onInputChange: g, hideCalendar: F, locale: l, disabledDays: i, label: I, title: y, readOnly: e, disallowPast: s, disallowFuture: d, validateOnCalendarClose: C, onValidatedOnce: b, hideDefaultHelperText: S, required: n, minDate: c, ...f } = k, { validationError: Y, handleValidation: p, errHelperText: E, clearValidation: T } = Q(), { maskRef: O } = L(), [a, H] = X(t ? x(t, r) : ""), W = l?.code?.startsWith("nb") ? "DD/MM/ÅÅÅÅ" : "DD/MM/YYYY", j = S ? void 0 : W, m = !!(Y || w), R = m ? B ?? E : P ?? j;
13
13
  v(() => {
14
- H(t ? x(t, l) : "");
15
- }, [t, l]), v(() => {
14
+ H(t ? x(t, r) : "");
15
+ }, [t, r]), v(() => {
16
16
  if (!t) {
17
17
  T();
18
18
  return;
19
19
  }
20
20
  p({
21
- value: x(t, l),
21
+ value: x(t, r),
22
22
  disabledDays: i,
23
- localeCode: r?.code,
23
+ localeCode: l?.code,
24
24
  disallowPast: s,
25
25
  disallowFuture: d,
26
26
  required: n,
@@ -28,9 +28,9 @@ var ce = (k) => {
28
28
  });
29
29
  }, [
30
30
  t,
31
- l,
31
+ r,
32
32
  i,
33
- r?.code,
33
+ l?.code,
34
34
  s,
35
35
  d,
36
36
  n,
@@ -46,7 +46,7 @@ var ce = (k) => {
46
46
  C && (p({
47
47
  value: a,
48
48
  disabledDays: i,
49
- localeCode: r?.code,
49
+ localeCode: l?.code,
50
50
  disallowPast: s,
51
51
  disallowFuture: d,
52
52
  required: n,
@@ -56,7 +56,7 @@ var ce = (k) => {
56
56
  C,
57
57
  a,
58
58
  i,
59
- r?.code,
59
+ l?.code,
60
60
  s,
61
61
  d,
62
62
  n,
@@ -68,7 +68,7 @@ var ce = (k) => {
68
68
  if (p({
69
69
  value: a,
70
70
  disabledDays: i,
71
- localeCode: r?.code,
71
+ localeCode: l?.code,
72
72
  disallowPast: s,
73
73
  disallowFuture: d,
74
74
  required: n,
@@ -95,7 +95,7 @@ var ce = (k) => {
95
95
  className: "relative",
96
96
  children: /* @__PURE__ */ o(G, {
97
97
  ...f,
98
- label: S,
98
+ label: I,
99
99
  readOnly: e,
100
100
  "data-testid": f.dataTest,
101
101
  autoComplete: "off",
@@ -103,16 +103,18 @@ var ce = (k) => {
103
103
  placeholder: !e && !q ? " / / " : void 0,
104
104
  size: "small",
105
105
  value: e ? a.replaceAll("/", ".") : a,
106
- className: P,
106
+ className: V,
107
107
  style: { width: h },
108
108
  error: m,
109
109
  onBlur: e ? void 0 : A,
110
110
  helperText: null,
111
- FormHelperTextProps: { sx: { m: 0 } },
112
- inputProps: { ...e ? {} : {
113
- inputMode: "numeric",
114
- style: { fontFamily: "monospace" }
115
- } },
111
+ slotProps: {
112
+ formHelperText: { sx: { m: 0 } },
113
+ htmlInput: { ...e ? {} : {
114
+ inputMode: "numeric",
115
+ style: { fontFamily: "monospace" }
116
+ } }
117
+ },
116
118
  onChange: z
117
119
  })
118
120
  }), !e && /* @__PURE__ */ o("div", {
@@ -127,7 +129,7 @@ var ce = (k) => {
127
129
  hasError: m
128
130
  })
129
131
  })]
130
- }), !B && !e && /* @__PURE__ */ o(K, {
132
+ }), !F && !e && /* @__PURE__ */ o(K, {
131
133
  onClick: N,
132
134
  disabled: !!f.disabled
133
135
  })]
@@ -1,8 +1,8 @@
1
1
  import { StyledInputField as w } from "../../shared-components/StyledInputField.js";
2
2
  import { HelperText as y } from "./components/HelperText.js";
3
3
  import { ClockOutlineIcon as E } from "../../shared-components/ClockOutlineIcon.js";
4
- import { useEffect as I, useRef as R } from "react";
5
- import { jsx as r, jsxs as v } from "react/jsx-runtime";
4
+ import { useEffect as R, useRef as v } from "react";
5
+ import { jsx as r, jsxs as I } from "react/jsx-runtime";
6
6
  import { useMask as M } from "@react-input/mask";
7
7
  import "material-ui-popup-state/hooks";
8
8
  var S = (c) => {
@@ -10,10 +10,10 @@ var S = (c) => {
10
10
  mask: "xx:xx",
11
11
  replacement: { x: /\d/ },
12
12
  showMask: !1
13
- }), d = !s || !p || !!u, a = R(null);
14
- return I(() => {
13
+ }), d = !s || !p || !!u, a = v(null);
14
+ return R(() => {
15
15
  a.current && e.setAnchorEl(a.current);
16
- }, [e]), /* @__PURE__ */ v("div", {
16
+ }, [e]), /* @__PURE__ */ I("div", {
17
17
  style: { height: t ? "40px" : "75px" },
18
18
  children: [m && /* @__PURE__ */ r("div", {
19
19
  className: "pb-1 font-roboto font-semibold text-delta-800",
@@ -35,7 +35,7 @@ var S = (c) => {
35
35
  helperText: x
36
36
  }),
37
37
  onChange: C,
38
- InputProps: {
38
+ slotProps: { input: {
39
39
  ref: a,
40
40
  onMouseDown: (o) => {
41
41
  !i && !t && e.open(o);
@@ -47,7 +47,7 @@ var S = (c) => {
47
47
  o.stopPropagation(), !i && !t && e.open(o);
48
48
  }
49
49
  })
50
- },
50
+ } },
51
51
  value: b,
52
52
  sx: {
53
53
  maxWidth: l ?? 130,
@@ -1,36 +1,32 @@
1
- import { Fade as e, Tooltip as i } from "@mui/material";
2
- import { jsx as n } from "react/jsx-runtime";
3
- var x = (p) => {
4
- const { componentsProps: t, ...r } = p, o = t?.tooltip;
5
- return /* @__PURE__ */ n(i, {
6
- TransitionComponent: e,
7
- TransitionProps: { timeout: 300 },
1
+ import { Fade as i, Tooltip as e } from "@mui/material";
2
+ import { jsx as l } from "react/jsx-runtime";
3
+ import { mergeSlotProps as t } from "@mui/material/utils";
4
+ var a = {
5
+ borderRadius: "3px",
6
+ "& .MuiTooltip-arrow": { color: "#363E4A" },
7
+ color: "white",
8
+ boxShadow: "0px 1px 4px 0px rgba(0, 0, 0, 0.25)",
9
+ display: "flex",
10
+ padding: "4px 8px",
11
+ alignItems: "center",
12
+ fontSize: "12px",
13
+ lineHeight: "16px",
14
+ letterSpacing: "0.24px",
15
+ bgcolor: "#363E4A",
16
+ wordBreak: "break-word"
17
+ }, d = (r) => {
18
+ const { slotProps: o, ...p } = r;
19
+ return /* @__PURE__ */ l(e, {
8
20
  placement: "top",
9
- componentsProps: {
10
- ...t,
11
- tooltip: {
12
- ...o ?? {},
13
- style: { ...o?.style ?? {} },
14
- sx: {
15
- borderRadius: "3px",
16
- "& .MuiTooltip-arrow": { color: "#363E4A" },
17
- color: "white",
18
- boxShadow: "0px 1px 4px 0px rgba(0, 0, 0, 0.25)",
19
- display: "flex",
20
- padding: "4px 8px",
21
- alignItems: "center",
22
- fontSize: "12px",
23
- lineHeight: "16px",
24
- letterSpacing: "0.24px",
25
- bgcolor: "#363E4A",
26
- wordBreak: "break-word",
27
- ...o?.sx
28
- }
29
- }
30
- },
31
- ...r
21
+ ...p,
22
+ slots: { transition: i },
23
+ slotProps: {
24
+ ...o,
25
+ transition: t(o?.transition, { timeout: 300 }),
26
+ tooltip: t(o?.tooltip, { sx: a })
27
+ }
32
28
  });
33
29
  };
34
30
  export {
35
- x as StyledTooltip
31
+ d as StyledTooltip
36
32
  };
@@ -1,5 +1,5 @@
1
1
  import { default as React, SVGProps } from 'react';
2
- import { Checkbox } from '@base-ui/react';
2
+ import { Checkbox } from '@base-ui/react/checkbox';
3
3
  type StyledCheckboxProps = {
4
4
  dataTest: string;
5
5
  size?: 'small' | 'medium';
@@ -21,5 +21,5 @@ export type StyledSelectAutocompleteProps<T, Multiple extends boolean | undefine
21
21
  * inputRef to get Node of Input Element inside
22
22
  *
23
23
  */
24
- export declare function StyledSelectAutocomplete<T, Multiple extends boolean | undefined = false, DisableClearable extends boolean | undefined = false, FreeSolo extends boolean | undefined = false, ChipComponent extends React.ElementType = ChipTypeMap['defaultComponent']>({ dataTest, autoHeight, getOptionLabel, wrapperClassName, multiple, allowSelectAll, selectAllLabel, className, defaultValue, isOptionEqualToValue, ListboxProps, onChange, options, popupIcon, readOnly, renderOption, renderTags, sx, value, ...props }: StyledSelectAutocompleteProps<T, Multiple, DisableClearable, FreeSolo, ChipComponent>): JSX.Element;
24
+ export declare function StyledSelectAutocomplete<T, Multiple extends boolean | undefined = false, DisableClearable extends boolean | undefined = false, FreeSolo extends boolean | undefined = false, ChipComponent extends React.ElementType = ChipTypeMap['defaultComponent']>({ dataTest, autoHeight, getOptionLabel, wrapperClassName, multiple, allowSelectAll, selectAllLabel, className, defaultValue, isOptionEqualToValue, onChange, options, popupIcon, readOnly, renderOption, renderValue, sx, value, ...props }: StyledSelectAutocompleteProps<T, Multiple, DisableClearable, FreeSolo, ChipComponent>): JSX.Element;
25
25
  export {};
@@ -1,4 +1,4 @@
1
- import { Accordion } from '@base-ui/react';
1
+ import { Accordion } from '@base-ui/react/accordion';
2
2
  import * as React from 'react';
3
3
  interface StyledAccordionProps extends Omit<React.ComponentProps<typeof Accordion.Root>, 'value' | 'onValueChange' | 'defaultValue' | 'onChange'> {
4
4
  className?: string;
@@ -1,5 +1,5 @@
1
1
  import { default as React, SVGProps } from 'react';
2
- import { Checkbox } from '@base-ui-components/react/checkbox';
2
+ import { Checkbox } from '@base-ui/react/checkbox';
3
3
  type StyledCheckboxProps = {
4
4
  dataTest: string;
5
5
  size?: 'small' | 'medium';