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.
- package/dist/components/data-display/interactive-chip/StyledInteractiveChip.js +9 -9
- package/dist/components/data-display/tooltip/StyledTooltip.js +27 -28
- package/dist/components/inputs/checkbox/base-ui/StyledCheckbox.js +1 -1
- package/dist/components/inputs/dynamic-select/components/DynamicSelectAutocomplete.js +89 -89
- package/dist/components/inputs/input-field/StyledInputField.js +80 -74
- package/dist/components/inputs/search-field/StyledSearchField.js +33 -31
- package/dist/components/inputs/select-autocomplete/StyledSelectAutocomplete.js +114 -106
- package/dist/components/navigation/tabs/StyledTabs.js +15 -9
- package/dist/components/utils/accordion/base-ui/StyledAccordion.js +1 -1
- package/dist/datetime/components/date-picker/components/BaseDatePickerInput.js +20 -18
- package/dist/datetime/components/time-picker/TimePickerInput.js +7 -7
- package/dist/datetime/shared-components/StyledTooltip.js +27 -31
- package/dist/src/components/inputs/checkbox/base-ui/StyledCheckbox.d.ts +1 -1
- package/dist/src/components/inputs/select-autocomplete/StyledSelectAutocomplete.d.ts +1 -1
- package/dist/src/components/utils/accordion/base-ui/StyledAccordion.d.ts +1 -1
- package/dist/src/table/shared-components/StyledCheckbox.d.ts +1 -1
- package/dist/table/components/columns/action-column/components/RowActionMenu.js +40 -37
- package/dist/table/components/table-footer/TablePagination.js +18 -18
- package/dist/table/components/table-footer/TableRowCountSelect.js +17 -17
- package/dist/table/shared-components/StyledCheckbox.js +1 -1
- package/dist/table/shared-components/tooltip/index.js +21 -19
- package/package.json +5 -11
|
@@ -1,146 +1,154 @@
|
|
|
1
1
|
import { cn as v } from "../../../helpers/cn.js";
|
|
2
|
-
import { ChevronDownIcon as
|
|
3
|
-
import { CloseIcon as
|
|
4
|
-
import { CheckIcon as
|
|
5
|
-
import { PlusIconCircle as
|
|
6
|
-
import { StyledChip as
|
|
7
|
-
import { StyledCheckbox as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { createElement as
|
|
11
|
-
import { Autocomplete as
|
|
12
|
-
import { jsx as
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
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
|
-
},
|
|
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
|
-
},
|
|
30
|
-
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
},
|
|
34
|
-
const
|
|
35
|
-
return /* @__PURE__ */
|
|
36
|
-
...
|
|
37
|
-
key: `selected-chip-${
|
|
38
|
-
dataTest: `selected-chip-${
|
|
39
|
-
label:
|
|
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
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
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:
|
|
50
|
-
getOptionLabel:
|
|
53
|
+
defaultValue: l ? void 0 : M,
|
|
54
|
+
getOptionLabel: u,
|
|
51
55
|
isOptionEqualToValue: p,
|
|
52
|
-
|
|
53
|
-
|
|
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
|
-
|
|
60
|
-
popupIcon: f ? null :
|
|
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__ */
|
|
63
|
+
}) : /* @__PURE__ */ o(le, {
|
|
64
64
|
width: 24,
|
|
65
65
|
height: 24,
|
|
66
|
-
className:
|
|
66
|
+
className: B(H["select-custom-icon"])
|
|
67
67
|
}),
|
|
68
68
|
readOnly: f,
|
|
69
|
-
"data-testid":
|
|
70
|
-
value:
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
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:
|
|
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__ */
|
|
108
|
-
dataTest: `${
|
|
110
|
+
}, /* @__PURE__ */ o(R, {
|
|
111
|
+
dataTest: `${s}-${i(t)}-checkbox`,
|
|
109
112
|
checked: r,
|
|
110
113
|
size: "small",
|
|
111
114
|
hideWrapper: !0
|
|
112
|
-
}), /* @__PURE__ */
|
|
115
|
+
}), /* @__PURE__ */ o("span", {
|
|
113
116
|
className: "flex-1 truncate py-2 text-sm text-delta-700",
|
|
114
|
-
children:
|
|
115
|
-
})) : /* @__PURE__ */
|
|
117
|
+
children: u?.(t) ?? i(t)
|
|
118
|
+
})) : /* @__PURE__ */ A("li", {
|
|
116
119
|
...a,
|
|
117
|
-
key:
|
|
120
|
+
key: m,
|
|
118
121
|
className: v(e.className, "flex items-center gap-x-1")
|
|
119
|
-
}, /* @__PURE__ */
|
|
122
|
+
}, /* @__PURE__ */ o("span", {
|
|
120
123
|
className: "w-5",
|
|
121
|
-
children: r && /* @__PURE__ */
|
|
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__ */
|
|
129
|
+
}), /* @__PURE__ */ o("span", {
|
|
127
130
|
className: "flex-1 truncate py-2 text-sm text-delta-700",
|
|
128
|
-
children:
|
|
131
|
+
children: u?.(t) ?? i(t)
|
|
129
132
|
}));
|
|
130
133
|
}),
|
|
131
134
|
sx: {
|
|
132
|
-
...
|
|
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: {
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
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__ */
|
|
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
|
-
|
|
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:
|
|
50
|
-
const
|
|
51
|
-
return
|
|
52
|
-
...
|
|
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
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
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:
|
|
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,
|
|
15
|
-
}, [t,
|
|
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,
|
|
21
|
+
value: x(t, r),
|
|
22
22
|
disabledDays: i,
|
|
23
|
-
localeCode:
|
|
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
|
-
|
|
31
|
+
r,
|
|
32
32
|
i,
|
|
33
|
-
|
|
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:
|
|
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
|
-
|
|
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:
|
|
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:
|
|
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:
|
|
106
|
+
className: V,
|
|
107
107
|
style: { width: h },
|
|
108
108
|
error: m,
|
|
109
109
|
onBlur: e ? void 0 : A,
|
|
110
110
|
helperText: null,
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
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
|
-
}), !
|
|
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
|
|
5
|
-
import { jsx as r, jsxs as
|
|
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 =
|
|
14
|
-
return
|
|
13
|
+
}), d = !s || !p || !!u, a = v(null);
|
|
14
|
+
return R(() => {
|
|
15
15
|
a.current && e.setAnchorEl(a.current);
|
|
16
|
-
}, [e]), /* @__PURE__ */
|
|
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
|
-
|
|
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
|
|
2
|
-
import { jsx as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
31
|
+
d as StyledTooltip
|
|
36
32
|
};
|
|
@@ -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,
|
|
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;
|