asma-ui-core 3.41.0 → 3.42.1
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/asma-ui-core.css +1 -1
- package/dist/components/data-display/badge/StyledBadge.js +24 -29
- package/dist/components/data-display/chip/StyledChip.js +60 -45
- package/dist/components/data-display/interactive-chip/StyledInteractiveChip.js +38 -32
- package/dist/components/data-display/tooltip/StyledTooltip.js +33 -50
- package/dist/components/data-display/typography/StyledTypography.js +4 -62
- package/dist/components/feedback/dialog/StyledDialog.js +50 -70
- package/dist/components/feedback/dialog/StyledDialog.module.js +9 -2
- package/dist/components/feedback/dialog/StyledDialogActions.js +16 -16
- package/dist/components/feedback/dialog/StyledDialogActions.module.js +8 -0
- package/dist/components/feedback/dialog/StyledDialogContent.js +14 -17
- package/dist/components/feedback/dialog/StyledDialogContent.module.js +4 -0
- package/dist/components/feedback/dialog/StyledDialogTitle.js +13 -18
- package/dist/components/feedback/dialog/StyledDialogTitle.module.js +4 -0
- package/dist/components/feedback/minimizable-dialog/MinimizableDialog.js +57 -56
- package/dist/components/feedback/snack-bar/StyledAlert.js +14 -72
- package/dist/components/feedback/snack-bar/StyledSnackbar.js +8 -34
- package/dist/components/feedback/snack-bar/components/StyledDefaultSnackbar.js +34 -33
- package/dist/components/inputs/checkbox/StyledCheckbox.js +20 -0
- package/dist/components/inputs/checkbox/base-ui/StyledCheckbox.js +58 -55
- package/dist/components/inputs/checkbox/base-ui/StyledCheckbox.module.js +12 -12
- package/dist/components/inputs/dynamic-select/components/DynamicInteractiveChipGroup.js +1 -1
- package/dist/components/inputs/dynamic-select/components/DynamicSelectAutocomplete.js +1 -1
- package/dist/components/inputs/input-field/StyledInputField.js +81 -104
- package/dist/components/inputs/radio-button/StyledRadio.js +17 -0
- package/dist/components/inputs/radio-button/base-ui/StyledRadio.js +29 -40
- package/dist/components/inputs/radio-button/base-ui/StyledRadio.module.js +10 -10
- package/dist/components/inputs/radio-button/base-ui/StyledRadioGroup.js +23 -35
- package/dist/components/inputs/select/StyledSelect.js +45 -124
- package/dist/components/inputs/select/StyledSelectItem.js +23 -19
- package/dist/components/inputs/select-autocomplete/StyledSelectAutocomplete.js +151 -181
- package/dist/components/inputs/slider/StyledSlider.js +52 -78
- package/dist/components/inputs/switch/base-ui/StyledSwitch.js +39 -44
- package/dist/components/miscellaneous/StyledFormControl.js +21 -39
- package/dist/components/miscellaneous/StyledFormControlLabel.js +16 -27
- package/dist/components/miscellaneous/StyledFormGroup.js +4 -16
- package/dist/components/miscellaneous/StyledFormHelperText.js +4 -12
- package/dist/components/miscellaneous/StyledInputLabel.js +4 -20
- package/dist/components/navigation/drawer/StyledDrawer.js +4 -42
- package/dist/components/navigation/listbox/Listbox.js +7 -7
- package/dist/components/navigation/menu/StyledMenu.js +11 -28
- package/dist/components/navigation/menu/StyledMenuItem.js +18 -16
- package/dist/components/navigation/menu/StyledMenuList.js +4 -32
- package/dist/components/navigation/tabs/StyledTab.js +13 -25
- package/dist/components/navigation/tabs/StyledTabs.js +64 -112
- package/dist/components/utils/accordion/base-ui/StyledAccordion.js +21 -28
- package/dist/components/utils/accordion/base-ui/StyledAccordion.module.js +7 -7
- package/dist/components/utils/accordion/base-ui/StyledAccordionDetails.js +14 -28
- package/dist/components/utils/accordion/base-ui/StyledAccordionSummary.js +27 -31
- package/dist/components/utils/popover/StyledPopover.js +15 -44
- package/dist/datetime/components/date-picker/StyledDatePicker.js +6 -6
- package/dist/datetime/components/date-picker/components/BaseDatePickerInput.js +1 -1
- package/dist/datetime/components/date-picker/components/HelperTextWithTooltip.js +6 -6
- package/dist/datetime/components/date-picker/components/StyledCalendarPicker.js +11 -11
- package/dist/datetime/components/date-picker/components/StyledCalendarPickerFooter.js +14 -13
- package/dist/datetime/components/date-picker/components/StyledCalendarPickerSelectMonth.js +14 -14
- package/dist/datetime/components/date-picker/components/StyledCalendarPickerSelectYear.js +6 -6
- package/dist/datetime/components/date-picker/components/StyledDayPicker.js +5 -4
- package/dist/datetime/components/date-picker/hooks/useDatePickerMask.js +4 -4
- package/dist/datetime/components/time-picker/StyledTimePicker.js +25 -25
- package/dist/datetime/components/time-picker/TimePickerInput.js +16 -15
- package/dist/datetime/components/time-picker/TimePickerPopper.js +19 -21
- package/dist/datetime/helpers/cn.js +5 -4
- package/dist/datetime/shared-components/ExpandIcon.js +18 -0
- package/dist/datetime/shared-components/StyledFormControl.js +23 -0
- package/dist/datetime/shared-components/StyledInputField.js +47 -0
- package/dist/datetime/shared-components/StyledSelect.js +47 -0
- package/dist/datetime/shared-components/StyledSelectItem.js +13 -0
- package/dist/datetime/shared-components/StyledTooltip.js +32 -0
- package/dist/helpers/cn.js +5 -4
- package/dist/index.js +175 -185
- package/dist/src/components/data-display/badge/StyledBadge.d.ts +2 -26
- package/dist/src/components/data-display/chip/StyledChip.d.ts +5 -39
- package/dist/src/components/data-display/interactive-chip/StyledInteractiveChip.d.ts +4 -11
- package/dist/src/components/data-display/tooltip/StyledTooltip.d.ts +2 -36
- package/dist/src/components/data-display/typography/StyledTypography.d.ts +1 -19
- package/dist/src/components/feedback/dialog/StyledDialog.d.ts +4 -50
- package/dist/src/components/feedback/dialog/StyledDialogActions.d.ts +2 -12
- package/dist/src/components/feedback/dialog/StyledDialogContent.d.ts +2 -12
- package/dist/src/components/feedback/dialog/StyledDialogTitle.d.ts +2 -10
- package/dist/src/components/feedback/snack-bar/SnackbarProvider.d.ts +1 -1
- package/dist/src/components/feedback/snack-bar/StyledAlert.d.ts +2 -24
- package/dist/src/components/feedback/snack-bar/StyledAlertSnackbar.d.ts +1 -1
- package/dist/src/components/feedback/snack-bar/StyledSnackbar.d.ts +2 -21
- package/dist/src/components/feedback/snack-bar/components/StyledDefaultSnackbar.d.ts +1 -1
- package/dist/src/components/feedback/snack-bar/components/StyledInfoSnackbar.d.ts +1 -1
- package/dist/src/components/feedback/snack-bar/components/types.d.ts +1 -1
- package/dist/src/components/inputs/checkbox/StyledCheckbox.d.ts +4 -0
- package/dist/src/components/inputs/checkbox/base-ui/StyledCheckbox.d.ts +4 -9
- package/dist/src/components/inputs/dynamic-select/types.d.ts +2 -2
- package/dist/src/components/inputs/input-field/StyledInputField.d.ts +11 -67
- package/dist/src/components/inputs/input-field/index.d.ts +1 -1
- package/dist/src/components/inputs/radio-button/StyledRadio.d.ts +4 -0
- package/dist/src/components/inputs/radio-button/StyledRadioGroup.d.ts +4 -0
- package/dist/src/components/inputs/radio-button/base-ui/StyledRadio.d.ts +5 -20
- package/dist/src/components/inputs/radio-button/base-ui/StyledRadioGroup.d.ts +7 -24
- package/dist/src/components/inputs/select/StyledSelect.d.ts +16 -39
- package/dist/src/components/inputs/select/StyledSelectItem.d.ts +2 -14
- package/dist/src/components/inputs/select/index.d.ts +1 -0
- package/dist/src/components/inputs/select-autocomplete/StyledSelectAutocomplete.d.ts +17 -88
- package/dist/src/components/inputs/slider/StyledSlider.d.ts +3 -55
- package/dist/src/components/inputs/switch/StyledSwitch.d.ts +5 -0
- package/dist/src/components/inputs/switch/base-ui/StyledSwitch.d.ts +4 -20
- package/dist/src/components/miscellaneous/StyledFormControl.d.ts +2 -22
- package/dist/src/components/miscellaneous/StyledFormControlLabel.d.ts +2 -21
- package/dist/src/components/miscellaneous/StyledFormGroup.d.ts +2 -11
- package/dist/src/components/miscellaneous/StyledFormHelperText.d.ts +2 -12
- package/dist/src/components/miscellaneous/StyledInputLabel.d.ts +2 -20
- package/dist/src/components/navigation/drawer/StyledDrawer.d.ts +2 -28
- package/dist/src/components/navigation/menu/StyledMenu.d.ts +2 -33
- package/dist/src/components/navigation/menu/StyledMenuItem.d.ts +2 -23
- package/dist/src/components/navigation/menu/StyledMenuList.d.ts +2 -16
- package/dist/src/components/navigation/menu/index.d.ts +1 -0
- package/dist/src/components/navigation/tabs/StyledTab.d.ts +3 -17
- package/dist/src/components/navigation/tabs/StyledTabs.d.ts +7 -16
- package/dist/src/components/utils/accordion/StyledAccordion.d.ts +2 -0
- package/dist/src/components/utils/accordion/StyledAccordionDetails.d.ts +2 -0
- package/dist/src/components/utils/accordion/StyledAccordionSummary.d.ts +8 -0
- package/dist/src/components/utils/accordion/base-ui/StyledAccordion.d.ts +3 -9
- package/dist/src/components/utils/accordion/base-ui/StyledAccordionDetails.d.ts +0 -5
- package/dist/src/components/utils/accordion/base-ui/StyledAccordionSummary.d.ts +4 -8
- package/dist/src/components/utils/copy-wrapper/CopyWrapper.d.ts +1 -1
- package/dist/src/components/utils/filter-menu/StyledFilterMenu.d.ts +2 -2
- package/dist/src/components/utils/popover/StyledPopover.d.ts +2 -32
- package/dist/src/datetime/components/date-picker/components/StyledCalendarPicker.d.ts +1 -1
- package/dist/src/datetime/components/date-picker/components/StyledDayPicker.d.ts +1 -1
- package/dist/src/datetime/components/date-picker/hooks/useDatePickerMask.d.ts +2 -1
- package/dist/src/datetime/components/time-picker/TimePickerInput.d.ts +1 -1
- package/dist/src/datetime/components/time-picker/TimePickerPopper.d.ts +1 -1
- package/dist/src/datetime/components/time-picker/types.d.ts +2 -1
- package/dist/src/datetime/shared-components/StyledFormControl.d.ts +2 -1
- package/dist/src/datetime/shared-components/StyledInputField.d.ts +12 -1
- package/dist/src/datetime/shared-components/StyledSelect.d.ts +16 -1
- package/dist/src/datetime/shared-components/StyledSelectItem.d.ts +2 -1
- package/dist/src/datetime/shared-components/StyledTooltip.d.ts +2 -1
- package/dist/src/index.d.ts +1 -2
- package/dist/src/table/shared-components/StyledCheckbox.d.ts +4 -7
- package/dist/src/table/shared-components/StyledMenuItem.d.ts +2 -18
- package/dist/src/table/shared-components/menu-item/index.d.ts +2 -13
- package/dist/src/table/shared-components/tooltip/index.d.ts +1 -5
- package/dist/src/table/types.d.ts +1 -1
- package/dist/table/components/Fetching.js +4 -4
- package/dist/table/components/TableRow.js +7 -7
- package/dist/table/components/TableSkeleton.js +6 -6
- package/dist/table/components/columns/action-column/components/HeaderActionMenu.js +24 -24
- package/dist/table/components/columns/action-column/components/RowActionMenu.js +25 -26
- package/dist/table/components/table-footer/TablePagination.js +24 -27
- package/dist/table/components/table-footer/TableRowCountSelect.js +27 -30
- package/dist/table/helpers/cn.js +5 -4
- package/dist/table/shared-components/StyledCheckbox.js +55 -54
- package/dist/table/shared-components/StyledCheckbox.module.js +10 -10
- package/dist/table/shared-components/StyledMenuItem.js +18 -12
- package/dist/table/shared-components/menu-item/index.js +17 -13
- package/dist/table/shared-components/tooltip/index.js +23 -4
- package/package.json +16 -9
- package/dist/components/inputs/field-styles.js +0 -6
- package/dist/components/inputs/input-field/StyledInputField.module.js +0 -4
- package/dist/components/inputs/radio-button/base-ui/RadioGroupContext.js +0 -6
- package/dist/components/inputs/slider/StyledSlider.module.js +0 -10
- package/dist/components/miscellaneous/FormControlContext.js +0 -6
- package/dist/components/mui-compat/Avatar.js +0 -29
- package/dist/components/mui-compat/ClickAwayListener.js +0 -29
- package/dist/components/mui-compat/Container.js +0 -24
- package/dist/components/mui-compat/Fade.js +0 -29
- package/dist/components/mui-compat/Fade.module.js +0 -9
- package/dist/components/mui-compat/FormLabel.js +0 -22
- package/dist/components/mui-compat/Paper.js +0 -44
- package/dist/components/mui-compat/Popper.js +0 -35
- package/dist/components/mui-compat/Skeleton.js +0 -26
- package/dist/components/mui-compat/Stack.js +0 -24
- package/dist/components/navigation/tabs/TabsContext.js +0 -6
- package/dist/components/utils/accordion/base-ui/AccordionContext.js +0 -10
- package/dist/components/utils/virtual-list/VirtualList.js +0 -45
- package/dist/helpers/arrays.js +0 -4
- package/dist/helpers/inputMask.js +0 -45
- package/dist/helpers/sx.js +0 -46
- package/dist/src/api-surface.test.d.ts +0 -1
- package/dist/src/components/inputs/field-styles.d.ts +0 -22
- package/dist/src/components/inputs/radio-button/base-ui/RadioGroupContext.d.ts +0 -10
- package/dist/src/components/miscellaneous/FormControlContext.d.ts +0 -14
- package/dist/src/components/mui-compat/Avatar.d.ts +0 -6
- package/dist/src/components/mui-compat/ClickAwayListener.d.ts +0 -19
- package/dist/src/components/mui-compat/Container.d.ts +0 -6
- package/dist/src/components/mui-compat/Fade.d.ts +0 -21
- package/dist/src/components/mui-compat/FormLabel.d.ts +0 -6
- package/dist/src/components/mui-compat/Paper.d.ts +0 -6
- package/dist/src/components/mui-compat/Popper.d.ts +0 -29
- package/dist/src/components/mui-compat/Skeleton.d.ts +0 -7
- package/dist/src/components/mui-compat/Stack.d.ts +0 -7
- package/dist/src/components/mui-compat/index.d.ts +0 -9
- package/dist/src/components/mui-compat/types.d.ts +0 -46
- package/dist/src/components/navigation/tabs/TabsContext.d.ts +0 -11
- package/dist/src/components/utils/accordion/base-ui/AccordionContext.d.ts +0 -10
- package/dist/src/components/utils/virtual-list/VirtualList.d.ts +0 -28
- package/dist/src/components/utils/virtual-list/index.d.ts +0 -1
- package/dist/src/helpers/arrays.d.ts +0 -2
- package/dist/src/helpers/arrays.test.d.ts +0 -1
- package/dist/src/helpers/inputMask.d.ts +0 -29
- package/dist/src/helpers/inputMask.test.d.ts +0 -1
- package/dist/src/helpers/sx.d.ts +0 -2
- package/dist/src/helpers/sx.test.d.ts +0 -1
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { useCallback as x, useMemo as d } from "react";
|
|
1
|
+
import { ChevronDownIcon as w } from "../../shared-components/ChevronDownIcon.js";
|
|
2
|
+
import { useToggleMenuVisibility as O } from "../../hooks/useToggleMenuVisibility.hook.js";
|
|
3
|
+
import { StyledButton as v } from "../../shared-components/button/StyledButton.js";
|
|
4
|
+
import { StyledMenuItem as C } from "../../shared-components/menu-item/index.js";
|
|
5
|
+
import { useCallback as S, useMemo as p } from "react";
|
|
6
|
+
import { MenuList as b, Popover as x } from "@mui/material";
|
|
8
7
|
import { Fragment as y, jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
9
8
|
var M = [
|
|
10
9
|
5,
|
|
@@ -13,8 +12,8 @@ var M = [
|
|
|
13
12
|
50,
|
|
14
13
|
100
|
|
15
14
|
];
|
|
16
|
-
function
|
|
17
|
-
const { anchorEl: i, open: l, handleClose: a, handleOpen: h } =
|
|
15
|
+
function j({ table: n, locale: d }) {
|
|
16
|
+
const { anchorEl: i, open: l, handleClose: a, handleOpen: h } = O(), r = n.getState().pagination.pageSize, c = d === "no", m = p(() => ({
|
|
18
17
|
anchorOrigin: {
|
|
19
18
|
vertical: -5,
|
|
20
19
|
horizontal: "center"
|
|
@@ -23,46 +22,44 @@ function D({ table: n, locale: p }) {
|
|
|
23
22
|
vertical: "bottom",
|
|
24
23
|
horizontal: "center"
|
|
25
24
|
}
|
|
26
|
-
}), []), g =
|
|
27
|
-
const o = /* @__PURE__ */ new Set([...M,
|
|
28
|
-
return Array.from(o).sort((
|
|
29
|
-
}, [
|
|
25
|
+
}), []), g = p(() => {
|
|
26
|
+
const o = /* @__PURE__ */ new Set([...M, r]);
|
|
27
|
+
return Array.from(o).sort((t, f) => t - f);
|
|
28
|
+
}, [r]), u = S((o) => {
|
|
30
29
|
n.setPageSize(o), a();
|
|
31
30
|
}, [a, n]);
|
|
32
|
-
return /* @__PURE__ */ s(y, { children: [/* @__PURE__ */ s(
|
|
31
|
+
return /* @__PURE__ */ s(y, { children: [/* @__PURE__ */ s(v, {
|
|
33
32
|
dataTest: "table-rows-count-button",
|
|
34
33
|
variant: "outlined",
|
|
35
34
|
size: "large",
|
|
36
35
|
onClick: h,
|
|
37
|
-
endIcon: /* @__PURE__ */ e(
|
|
36
|
+
endIcon: /* @__PURE__ */ e(w, {
|
|
38
37
|
className: `${l ? "rotate-180" : "rotate-0"} transition-transform duration-300`,
|
|
39
38
|
height: 24,
|
|
40
39
|
width: 24
|
|
41
40
|
}),
|
|
42
41
|
children: [
|
|
43
|
-
|
|
42
|
+
r,
|
|
44
43
|
" ",
|
|
45
44
|
c ? "rader" : "rows"
|
|
46
45
|
]
|
|
47
|
-
}), /* @__PURE__ */ e(
|
|
46
|
+
}), /* @__PURE__ */ e(x, {
|
|
48
47
|
open: l,
|
|
49
48
|
anchorEl: i,
|
|
50
|
-
slotProps: { paper: {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
overflowY: "auto"
|
|
56
|
-
}
|
|
57
|
-
} },
|
|
49
|
+
slotProps: { paper: { sx: {
|
|
50
|
+
width: i ? i.clientWidth : void 0,
|
|
51
|
+
maxHeight: 288,
|
|
52
|
+
overflowY: "auto"
|
|
53
|
+
} } },
|
|
58
54
|
onClose: a,
|
|
59
55
|
anchorOrigin: m.anchorOrigin,
|
|
60
56
|
transformOrigin: m.transformOrigin,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
57
|
+
classes: { paper: "border border-solid border-delta-200" },
|
|
58
|
+
children: /* @__PURE__ */ e(b, { children: g.map((o) => /* @__PURE__ */ e(C, {
|
|
59
|
+
onClick: (t) => {
|
|
60
|
+
t.stopPropagation(), t.preventDefault(), u(o);
|
|
64
61
|
},
|
|
65
|
-
selected:
|
|
62
|
+
selected: r === o,
|
|
66
63
|
children: /* @__PURE__ */ s("span", {
|
|
67
64
|
className: "text-sm font-normal text-delta-700",
|
|
68
65
|
children: [
|
|
@@ -75,5 +72,5 @@ function D({ table: n, locale: p }) {
|
|
|
75
72
|
})] });
|
|
76
73
|
}
|
|
77
74
|
export {
|
|
78
|
-
|
|
75
|
+
j as TableRowCountSelect
|
|
79
76
|
};
|
package/dist/table/helpers/cn.js
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { cn as
|
|
1
|
+
import { cn as C } from "../helpers/cn.js";
|
|
2
2
|
import e from "./StyledCheckbox.module.js";
|
|
3
|
-
import
|
|
4
|
-
import { jsx as
|
|
5
|
-
|
|
3
|
+
import p, { useEffect as E } from "react";
|
|
4
|
+
import { jsx as t, jsxs as k } from "react/jsx-runtime";
|
|
5
|
+
import { Checkbox as f } from "@base-ui/react/checkbox";
|
|
6
|
+
var L = (n) => /* @__PURE__ */ k("svg", {
|
|
6
7
|
viewBox: "0 0 24 24",
|
|
7
8
|
width: "100%",
|
|
8
9
|
height: "100%",
|
|
9
10
|
fill: "none",
|
|
10
|
-
...
|
|
11
|
-
children: [/* @__PURE__ */
|
|
11
|
+
...n,
|
|
12
|
+
children: [/* @__PURE__ */ t("title", { children: "Indeterminate icon" }), /* @__PURE__ */ t("path", {
|
|
12
13
|
d: "M6 12H18",
|
|
13
14
|
stroke: "currentColor",
|
|
14
|
-
strokeWidth:
|
|
15
|
+
strokeWidth: n.strokeWidth ?? 3,
|
|
15
16
|
strokeLinecap: "round"
|
|
16
17
|
})]
|
|
17
|
-
}), H = (
|
|
18
|
+
}), H = (n) => /* @__PURE__ */ k("svg", {
|
|
18
19
|
viewBox: "0 0 24 24",
|
|
19
20
|
width: "100%",
|
|
20
21
|
height: "100%",
|
|
@@ -23,56 +24,56 @@ var E = (t) => /* @__PURE__ */ k("svg", {
|
|
|
23
24
|
strokeWidth: 2,
|
|
24
25
|
strokeLinecap: "round",
|
|
25
26
|
strokeLinejoin: "round",
|
|
26
|
-
...
|
|
27
|
-
children: [/* @__PURE__ */
|
|
28
|
-
}),
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
27
|
+
...n,
|
|
28
|
+
children: [/* @__PURE__ */ t("title", { children: "Check icon" }), /* @__PURE__ */ t("path", { d: "M4 12l5 5L20 6" })]
|
|
29
|
+
}), S = ({ dataTest: n, size: h = "medium", disabled: m, readOnly: c, indeterminate: i = !1, checked: x, disableRipple: v, hideWrapper: b, className: I, onChange: u, ...a }) => {
|
|
30
|
+
const s = !!b, l = !v && !s && !m && !c, R = C(e.CheckboxWrapper, !s && e[`size-${h}`], s && e.HideWrapper, i && e.Indeterminate, c && e.ReadOnly, l && e.CheckboxHover, I), g = C(e.Checkbox, e[`size-${h}`], i && e.Indeterminate), w = i ? L : H, d = p.useRef(null), W = p.useCallback((o) => {
|
|
31
|
+
if (o.stopPropagation(), !l) return;
|
|
32
|
+
const r = document.createElement("span");
|
|
33
|
+
r.className = e.CheckboxRipple ?? "", r.addEventListener("animationend", () => r.remove(), { once: !0 }), d.current?.appendChild(r);
|
|
34
|
+
}, [l]);
|
|
35
|
+
E(() => {
|
|
36
|
+
const o = d.current;
|
|
37
|
+
return () => {
|
|
38
|
+
o?.replaceChildren();
|
|
39
|
+
};
|
|
40
|
+
}, []);
|
|
41
|
+
const N = p.useCallback((o) => {
|
|
42
|
+
if (c) return;
|
|
43
|
+
const r = { target: {
|
|
44
|
+
name: a.name,
|
|
45
|
+
value: a.value,
|
|
46
|
+
checked: o
|
|
47
|
+
} };
|
|
48
|
+
u?.(r, o);
|
|
49
|
+
}, [
|
|
50
|
+
u,
|
|
51
|
+
a.name,
|
|
52
|
+
a.value,
|
|
53
|
+
c
|
|
54
|
+
]);
|
|
55
|
+
return /* @__PURE__ */ k(f.Root, {
|
|
42
56
|
className: R,
|
|
43
|
-
"data-test":
|
|
57
|
+
"data-test": n,
|
|
58
|
+
checked: x,
|
|
59
|
+
disabled: m,
|
|
60
|
+
readOnly: c,
|
|
61
|
+
indeterminate: i,
|
|
44
62
|
onPointerDown: W,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
className:
|
|
54
|
-
|
|
55
|
-
disabled: d,
|
|
56
|
-
readOnly: c,
|
|
57
|
-
onChange: (r) => {
|
|
58
|
-
c || g?.(r, r.target.checked);
|
|
59
|
-
},
|
|
60
|
-
...I
|
|
61
|
-
}),
|
|
62
|
-
!a && s && /* @__PURE__ */ o("span", {
|
|
63
|
-
ref: u,
|
|
64
|
-
className: e.CheckboxRippleContainer
|
|
65
|
-
}),
|
|
66
|
-
/* @__PURE__ */ o("span", {
|
|
67
|
-
className: w,
|
|
68
|
-
children: /* @__PURE__ */ o("span", {
|
|
69
|
-
className: e.Indicator,
|
|
70
|
-
children: /* @__PURE__ */ o(N, { strokeWidth: l === "small" ? 3 : 2 })
|
|
71
|
-
})
|
|
63
|
+
onCheckedChange: N,
|
|
64
|
+
...a,
|
|
65
|
+
children: [!s && l && /* @__PURE__ */ t("span", {
|
|
66
|
+
ref: d,
|
|
67
|
+
className: e.CheckboxRippleContainer
|
|
68
|
+
}), /* @__PURE__ */ t("span", {
|
|
69
|
+
className: g,
|
|
70
|
+
children: /* @__PURE__ */ t(f.Indicator, {
|
|
71
|
+
className: e.Indicator,
|
|
72
|
+
children: /* @__PURE__ */ t(w, { strokeWidth: h === "small" ? 3 : 2 })
|
|
72
73
|
})
|
|
73
|
-
]
|
|
74
|
+
})]
|
|
74
75
|
});
|
|
75
76
|
};
|
|
76
77
|
export {
|
|
77
|
-
|
|
78
|
+
S as StyledCheckbox
|
|
78
79
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var e = "
|
|
1
|
+
var e = "_CheckboxWrapper_1b4zf_1", _ = "_Checkbox_1b4zf_1", r = "_Indeterminate_1b4zf_28", a = "_ReadOnly_1b4zf_55", b = "_Indicator_1b4zf_64", p = "_HideWrapper_1b4zf_68", i = "_CheckboxHover_1b4zf_75", o = "_CheckboxRippleContainer_1b4zf_75", l = "_CheckboxRipple_1b4zf_75", z = "_ripple_1b4zf_1", d = {
|
|
2
2
|
CheckboxWrapper: e,
|
|
3
|
-
"size-small": "_size-
|
|
4
|
-
"size-medium": "_size-
|
|
3
|
+
"size-small": "_size-small_1b4zf_11",
|
|
4
|
+
"size-medium": "_size-medium_1b4zf_15",
|
|
5
5
|
Checkbox: _,
|
|
6
6
|
Indeterminate: r,
|
|
7
7
|
ReadOnly: a,
|
|
8
|
-
Indicator:
|
|
9
|
-
HideWrapper:
|
|
10
|
-
CheckboxHover:
|
|
11
|
-
CheckboxRippleContainer:
|
|
12
|
-
CheckboxRipple:
|
|
13
|
-
ripple:
|
|
8
|
+
Indicator: b,
|
|
9
|
+
HideWrapper: p,
|
|
10
|
+
CheckboxHover: i,
|
|
11
|
+
CheckboxRippleContainer: o,
|
|
12
|
+
CheckboxRipple: l,
|
|
13
|
+
ripple: z
|
|
14
14
|
};
|
|
15
15
|
export {
|
|
16
|
-
|
|
16
|
+
d as default
|
|
17
17
|
};
|
|
@@ -1,15 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import t from "clsx";
|
|
2
|
+
import { MenuItem as r } from "@mui/material";
|
|
3
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
4
|
+
var m = (o) => /* @__PURE__ */ e(r, {
|
|
5
|
+
...o,
|
|
6
|
+
classes: {
|
|
7
|
+
root: t("px-3 py-2.5", o.classes?.root),
|
|
8
|
+
...o.classes
|
|
9
|
+
},
|
|
10
|
+
sx: {
|
|
11
|
+
"&.Mui-disabled": {
|
|
12
|
+
pointerEvents: "auto",
|
|
13
|
+
cursor: "not-allowed",
|
|
14
|
+
"&:hover": { backgroundColor: "transparent !important" }
|
|
15
|
+
},
|
|
16
|
+
...o.sx
|
|
17
|
+
}
|
|
12
18
|
});
|
|
13
19
|
export {
|
|
14
|
-
|
|
20
|
+
m as StyledMenuItem
|
|
15
21
|
};
|
|
@@ -1,19 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { jsx as
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { CheckIcon as r } from "../CheckIcon.js";
|
|
2
|
+
import { MenuItem as e } from "@mui/material";
|
|
3
|
+
import { jsx as a, jsxs as t } from "react/jsx-runtime";
|
|
4
|
+
var n = (o) => /* @__PURE__ */ t(e, {
|
|
5
|
+
classes: { root: "flex gap-x-1" },
|
|
6
|
+
sx: {
|
|
7
|
+
padding: "8px",
|
|
8
|
+
"&.Mui-selected": {
|
|
9
|
+
backgroundColor: "var(--colors-gama-50)",
|
|
10
|
+
"&:hover": { backgroundColor: "var(--colors-gama-50)" }
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
...o,
|
|
14
|
+
children: [/* @__PURE__ */ a(r, {
|
|
11
15
|
width: 24,
|
|
12
16
|
height: 24,
|
|
13
|
-
color:
|
|
17
|
+
color: o.selected ? "var(--colors-gama-500)" : "transparent",
|
|
14
18
|
style: { transition: "color 0.2s ease" }
|
|
15
|
-
}),
|
|
19
|
+
}), o.children]
|
|
16
20
|
});
|
|
17
21
|
export {
|
|
18
|
-
|
|
22
|
+
n as StyledMenuItem
|
|
19
23
|
};
|
|
@@ -1,10 +1,29 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Tooltip as o } from "@mui/material";
|
|
2
2
|
import { jsx as r } from "react/jsx-runtime";
|
|
3
|
-
|
|
3
|
+
import p from "@mui/material/Fade";
|
|
4
|
+
var m = (t) => /* @__PURE__ */ r(o, {
|
|
5
|
+
slots: { transition: p },
|
|
6
|
+
slotProps: {
|
|
7
|
+
transition: { timeout: 300 },
|
|
8
|
+
tooltip: { sx: {
|
|
9
|
+
borderRadius: "3px !important",
|
|
10
|
+
"& .MuiTooltip-arrow": { color: "#363E4A !important" },
|
|
11
|
+
color: "white !important",
|
|
12
|
+
boxShadow: "0px 1px 4px 0px rgba(0, 0, 0, 0.25) !important",
|
|
13
|
+
display: "flex !important",
|
|
14
|
+
padding: "4px 8px !important",
|
|
15
|
+
alignItems: "center !important",
|
|
16
|
+
fontSize: "12px !important",
|
|
17
|
+
lineHeight: "16px !important",
|
|
18
|
+
letterSpacing: " 0.24px !important",
|
|
19
|
+
bgcolor: "#363E4A !important",
|
|
20
|
+
wordBreak: "break-word !important"
|
|
21
|
+
} }
|
|
22
|
+
},
|
|
4
23
|
arrow: !0,
|
|
5
24
|
placement: "top",
|
|
6
|
-
...
|
|
25
|
+
...t
|
|
7
26
|
});
|
|
8
27
|
export {
|
|
9
|
-
|
|
28
|
+
m as StyledTooltip
|
|
10
29
|
};
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "3.
|
|
6
|
+
"version": "3.42.1",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"sideEffects": [
|
|
9
9
|
"**/*.css",
|
|
@@ -60,9 +60,6 @@
|
|
|
60
60
|
"storybook": "storybook dev -p 6006",
|
|
61
61
|
"storybook:no-browser": "storybook dev -p 6006 --no-open",
|
|
62
62
|
"build-storybook": "export NODE_OPTIONS=--max_old_space_size=6240 && storybook build",
|
|
63
|
-
"vrt": "bash scripts/vrt.sh check",
|
|
64
|
-
"vrt:accept": "bash scripts/vrt.sh accept",
|
|
65
|
-
"vrt:report": "playwright show-report",
|
|
66
63
|
"test-storybook": "npx vitest --project=storybook",
|
|
67
64
|
"changeset:pre-beta": "changeset pre enter beta",
|
|
68
65
|
"changeset:pre-exit": "changeset pre exit",
|
|
@@ -75,24 +72,31 @@
|
|
|
75
72
|
"node": ">=24 <25"
|
|
76
73
|
},
|
|
77
74
|
"dependencies": {
|
|
75
|
+
"@base-ui/react": "^1.5.0",
|
|
78
76
|
"@dnd-kit/core": "^6.1.0",
|
|
79
77
|
"@dnd-kit/modifiers": "^7.0.0",
|
|
80
78
|
"@dnd-kit/sortable": "^8.0.0",
|
|
81
79
|
"@dnd-kit/utilities": "^3.2.2",
|
|
82
|
-
"@
|
|
80
|
+
"@react-input/mask": "^1.2.5",
|
|
83
81
|
"@tanstack/react-table": "^8.21.3",
|
|
84
82
|
"@tanstack/react-virtual": "^3.13.21",
|
|
85
83
|
"clsx": "^1.2.1",
|
|
86
84
|
"date-fns": "^3.6.0",
|
|
85
|
+
"lodash-es": "^4.18.1",
|
|
86
|
+
"material-ui-popup-state": "^5.3.6",
|
|
87
87
|
"notistack": "^3.0.2",
|
|
88
|
-
"react-day-picker": "^9.14.0"
|
|
88
|
+
"react-day-picker": "^9.14.0",
|
|
89
|
+
"tailwind-merge": "^2.5.2"
|
|
89
90
|
},
|
|
90
91
|
"devDependencies": {
|
|
91
92
|
"@changesets/cli": "^2.26.2",
|
|
92
93
|
"@chromatic-com/storybook": "^5.1.1",
|
|
93
|
-
"@
|
|
94
|
+
"@emotion/react": "^11.11.1",
|
|
95
|
+
"@emotion/styled": "^11.11.0",
|
|
96
|
+
"@mui/material": "^9.0.1",
|
|
94
97
|
"@faker-js/faker": "^8.0.2",
|
|
95
|
-
"@
|
|
98
|
+
"@tippyjs/react": "^4.2.6",
|
|
99
|
+
"@eslint/js": "^9.39.2",
|
|
96
100
|
"@storybook/addon-a11y": "10.3.3",
|
|
97
101
|
"@storybook/addon-docs": "10.3.3",
|
|
98
102
|
"@storybook/addon-links": "10.3.3",
|
|
@@ -100,7 +104,7 @@
|
|
|
100
104
|
"@storybook/addon-vitest": "10.3.3",
|
|
101
105
|
"@storybook/react-vite": "10.3.3",
|
|
102
106
|
"@storybook/test-runner": "^0.24.3",
|
|
103
|
-
"@
|
|
107
|
+
"@types/lodash-es": "^4.17.7",
|
|
104
108
|
"@types/node": "^24.12.4",
|
|
105
109
|
"@types/react": "^18.3.23",
|
|
106
110
|
"@types/react-copy-to-clipboard": "^5.0.7",
|
|
@@ -139,6 +143,9 @@
|
|
|
139
143
|
"vitest": "^4.0.16"
|
|
140
144
|
},
|
|
141
145
|
"peerDependencies": {
|
|
146
|
+
"@emotion/react": "^11.*",
|
|
147
|
+
"@emotion/styled": "^11.*",
|
|
148
|
+
"@mui/material": "^9.0.0",
|
|
142
149
|
"react": "^18.0.0 || ^19.0.0",
|
|
143
150
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
144
151
|
},
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { cn as a } from "../../helpers/cn.js";
|
|
2
|
-
var d = ({ focused: e, error: t, disabled: r, readOnly: o }) => a("pointer-events-none absolute inset-0 rounded-lg border transition-colors", r ? "border-delta-300" : o ? "border-delta-200" : t ? "border-2 border-error-500" : e ? "border-2 border-gama-400" : "border-delta-500 group-hover:border-2"), s = ({ shrink: e, focused: t, error: r, disabled: o, size: l = "medium" }) => a("pointer-events-none absolute left-3 z-10 max-w-[calc(100%-1.5rem)] truncate transition-all duration-150", o ? "text-gray-300" : r ? "text-error-500" : t ? "text-gama-500" : e ? "text-delta-800" : "text-delta-500", e ? "top-0 -translate-y-1/2 bg-white px-1 text-xs" : a("top-1/2 -translate-y-1/2", l === "small" ? "text-sm" : "text-base"));
|
|
3
|
-
export {
|
|
4
|
-
s as floatingLabelClass,
|
|
5
|
-
d as outlineClass
|
|
6
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { resolveSx as p } from "../../helpers/sx.js";
|
|
2
|
-
import x from "clsx";
|
|
3
|
-
import "react";
|
|
4
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
5
|
-
var o = {
|
|
6
|
-
circular: "rounded-full",
|
|
7
|
-
rounded: "rounded-[4px]",
|
|
8
|
-
square: "rounded-none"
|
|
9
|
-
}, g = ({ src: e, srcSet: r, alt: l, variant: n = "circular", sizes: s, className: a, sx: c, style: d, children: i, classes: f, component: v, ...m }) => {
|
|
10
|
-
const u = {
|
|
11
|
-
...p(c),
|
|
12
|
-
...d
|
|
13
|
-
};
|
|
14
|
-
return /* @__PURE__ */ t("div", {
|
|
15
|
-
className: x("relative flex h-[40px] w-[40px] shrink-0 items-center justify-center overflow-hidden bg-[#bdbdbd] font-roboto text-[1.25rem] text-white", o[n] ?? o.circular, a),
|
|
16
|
-
style: u,
|
|
17
|
-
...m,
|
|
18
|
-
children: e || r ? /* @__PURE__ */ t("img", {
|
|
19
|
-
className: "h-full w-full object-cover text-transparent",
|
|
20
|
-
src: e,
|
|
21
|
-
srcSet: r,
|
|
22
|
-
alt: l,
|
|
23
|
-
sizes: s
|
|
24
|
-
}) : i
|
|
25
|
-
});
|
|
26
|
-
};
|
|
27
|
-
export {
|
|
28
|
-
g as Avatar
|
|
29
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { cloneElement as m, useCallback as d, useEffect as l, useRef as i } from "react";
|
|
2
|
-
var p = {
|
|
3
|
-
onClick: "click",
|
|
4
|
-
onMouseDown: "mousedown",
|
|
5
|
-
onMouseUp: "mouseup",
|
|
6
|
-
onTouchStart: "touchstart",
|
|
7
|
-
onTouchEnd: "touchend"
|
|
8
|
-
}, h = ({ children: t, onClickAway: r, mouseEvent: c = "onClick", touchEvent: s = "onTouchEnd" }) => {
|
|
9
|
-
const f = i(null), u = i(r);
|
|
10
|
-
return l(() => {
|
|
11
|
-
u.current = r;
|
|
12
|
-
}, [r]), l(() => {
|
|
13
|
-
const o = (e) => {
|
|
14
|
-
const a = f.current;
|
|
15
|
-
a && e.target instanceof Node && !a.contains(e.target) && u.current(e);
|
|
16
|
-
}, n = [c, s].filter((e) => e !== !1).map((e) => p[e]).filter((e) => !!e);
|
|
17
|
-
for (const e of n) document.addEventListener(e, o);
|
|
18
|
-
return () => {
|
|
19
|
-
for (const e of n) document.removeEventListener(e, o);
|
|
20
|
-
};
|
|
21
|
-
}, [c, s]), m(t, { ref: d((o) => {
|
|
22
|
-
f.current = o;
|
|
23
|
-
const n = t.ref;
|
|
24
|
-
typeof n == "function" && n(o);
|
|
25
|
-
}, [t]) });
|
|
26
|
-
};
|
|
27
|
-
export {
|
|
28
|
-
h as ClickAwayListener
|
|
29
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { resolveSx as f } from "../../helpers/sx.js";
|
|
2
|
-
import n from "clsx";
|
|
3
|
-
import { createElement as c } from "react";
|
|
4
|
-
var r = {
|
|
5
|
-
xs: 444,
|
|
6
|
-
sm: 600,
|
|
7
|
-
md: 900,
|
|
8
|
-
lg: 1200,
|
|
9
|
-
xl: 1536
|
|
10
|
-
}, g = ({ maxWidth: e = "lg", disableGutters: o, className: l, sx: m, style: t, component: x = "div", children: s, fixed: d, ...i }) => {
|
|
11
|
-
const a = {
|
|
12
|
-
...e && e in r ? { maxWidth: r[e] } : {},
|
|
13
|
-
...f(m),
|
|
14
|
-
...t
|
|
15
|
-
};
|
|
16
|
-
return c(x, {
|
|
17
|
-
className: n("mx-auto box-border block w-full", !o && "px-4", l),
|
|
18
|
-
style: a,
|
|
19
|
-
...i
|
|
20
|
-
}, s);
|
|
21
|
-
};
|
|
22
|
-
export {
|
|
23
|
-
g as Container
|
|
24
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { cn as o } from "../../helpers/cn.js";
|
|
2
|
-
import u from "./Fade.module.js";
|
|
3
|
-
import { cloneElement as c, useEffect as i, useState as p } from "react";
|
|
4
|
-
var n = (e, r) => typeof e == "number" ? e : e[r] ?? 225, F = ({ in: e = !0, timeout: r = 225, children: t, onExited: s, style: d }) => {
|
|
5
|
-
const [a, f] = p(e);
|
|
6
|
-
if (e && !a && f(!0), i(() => {
|
|
7
|
-
if (e) return;
|
|
8
|
-
const m = setTimeout(() => {
|
|
9
|
-
f(!1), s?.();
|
|
10
|
-
}, n(r, "exit"));
|
|
11
|
-
return () => clearTimeout(m);
|
|
12
|
-
}, [
|
|
13
|
-
e,
|
|
14
|
-
r,
|
|
15
|
-
s
|
|
16
|
-
]), !a) return null;
|
|
17
|
-
const l = t.props;
|
|
18
|
-
return c(t, {
|
|
19
|
-
className: o(l.className, e ? u.fadeIn : u.fadeOut),
|
|
20
|
-
style: {
|
|
21
|
-
...l.style,
|
|
22
|
-
...d,
|
|
23
|
-
"--fade-duration": `${n(r, e ? "enter" : "exit")}ms`
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
};
|
|
27
|
-
export {
|
|
28
|
-
F as Fade
|
|
29
|
-
};
|