asma-ui-core 3.42.0 → 3.43.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/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/feedback/snack-bar/components/StyledDefaultSnackbar.module.js +8 -8
- package/dist/components/inputs/button/StyledButton.module.js +7 -7
- 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 +19 -19
- 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/search-field/StyledSearchField.js +19 -18
- 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 +19 -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 +66 -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/StyledTable.module.js +51 -51
- 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/button/StyledButton.module.js +8 -8
- 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/src/styles/index.css +1 -0
- package/src/styles/typographyTokens.css +12 -0
- 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,41 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
o,
|
|
22
|
-
l,
|
|
23
|
-
t,
|
|
24
|
-
r,
|
|
25
|
-
s
|
|
26
|
-
]);
|
|
27
|
-
return /* @__PURE__ */ a(S.Provider, {
|
|
28
|
-
value: F,
|
|
29
|
-
children: /* @__PURE__ */ a("div", {
|
|
30
|
-
className: C("relative inline-flex flex-col", i && "w-full", d),
|
|
31
|
-
style: {
|
|
32
|
-
...I(x),
|
|
33
|
-
...u
|
|
34
|
-
},
|
|
35
|
-
children: c
|
|
36
|
-
})
|
|
37
|
-
});
|
|
38
|
-
};
|
|
1
|
+
import { FormControl as r } from "@mui/material";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
var l = (o) => /* @__PURE__ */ t(r, {
|
|
4
|
+
...o,
|
|
5
|
+
sx: {
|
|
6
|
+
...o.sx,
|
|
7
|
+
"& label.MuiInputLabel-shrink": {
|
|
8
|
+
background: "white !important",
|
|
9
|
+
color: "var(--colors-delta-800) !important"
|
|
10
|
+
},
|
|
11
|
+
"& label.MuiInputLabel-shrink.Mui-focused": {
|
|
12
|
+
background: "white !important",
|
|
13
|
+
color: "var(--colors-gama-500) !important"
|
|
14
|
+
},
|
|
15
|
+
"& label.MuiInputLabel-shrink.Mui-error.Mui-focused": {
|
|
16
|
+
background: "white !important",
|
|
17
|
+
color: "var(--colors-red-500) !important"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
});
|
|
39
21
|
export {
|
|
40
|
-
|
|
22
|
+
l as StyledFormControl
|
|
41
23
|
};
|
|
@@ -1,29 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
value: l.value ?? i
|
|
17
|
-
}) : e;
|
|
18
|
-
return /* @__PURE__ */ b("label", {
|
|
19
|
-
className: s("m-0 inline-flex items-center gap-2 align-middle text-delta-800", r ? "cursor-default" : "cursor-pointer", g[m], c),
|
|
20
|
-
style: u(p),
|
|
21
|
-
children: [f, t != null && /* @__PURE__ */ h("span", {
|
|
22
|
-
className: s("text-sm leading-5", r && "text-delta-300"),
|
|
23
|
-
children: t
|
|
24
|
-
})]
|
|
25
|
-
});
|
|
26
|
-
};
|
|
1
|
+
import { FormControlLabel as l } from "@mui/material";
|
|
2
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
3
|
+
var i = ({ sx: o, ...r }) => /* @__PURE__ */ e(l, {
|
|
4
|
+
...r,
|
|
5
|
+
sx: {
|
|
6
|
+
color: "var(--colors-delta-800)",
|
|
7
|
+
margin: 0,
|
|
8
|
+
"& .MuiFormControlLabel-label": {
|
|
9
|
+
fontSize: "var(--font-size-body-base)",
|
|
10
|
+
lineHeight: "var(--line-height-body-base)"
|
|
11
|
+
},
|
|
12
|
+
"&.Mui-disabled .MuiFormControlLabel-label": { color: "var(--colors-delta-300)" },
|
|
13
|
+
...o
|
|
14
|
+
}
|
|
15
|
+
});
|
|
27
16
|
export {
|
|
28
|
-
|
|
17
|
+
i as StyledFormControlLabel
|
|
29
18
|
};
|
|
@@ -1,18 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
var v = ({ row: e, className: r, sx: l, style: o, children: s, classes: c, ...m }) => {
|
|
5
|
-
const t = {
|
|
6
|
-
...x(l),
|
|
7
|
-
...o
|
|
8
|
-
};
|
|
9
|
-
return /* @__PURE__ */ a("div", {
|
|
10
|
-
className: f("flex flex-wrap", e ? "flex-row" : "flex-col", r),
|
|
11
|
-
style: t,
|
|
12
|
-
...m,
|
|
13
|
-
children: s
|
|
14
|
-
});
|
|
15
|
-
};
|
|
1
|
+
import { FormGroup as o } from "@mui/material";
|
|
2
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
3
|
+
var e = (r) => /* @__PURE__ */ m(o, { ...r });
|
|
16
4
|
export {
|
|
17
|
-
|
|
5
|
+
e as StyledFormGroup
|
|
18
6
|
};
|
|
@@ -1,14 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
var f = ({ children: t, error: e, disabled: o, className: s, ...m }) => {
|
|
5
|
-
const r = n(), a = e ?? r?.error ?? !1, l = o ?? r?.disabled ?? !1;
|
|
6
|
-
return /* @__PURE__ */ x("p", {
|
|
7
|
-
className: i("m-0 min-h-6 text-sm leading-6", a ? "text-error-500" : l ? "text-gray-300" : "text-delta-600", s),
|
|
8
|
-
...m,
|
|
9
|
-
children: t
|
|
10
|
-
});
|
|
11
|
-
};
|
|
1
|
+
import { FormHelperText as e } from "@mui/material";
|
|
2
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
3
|
+
var p = (r) => /* @__PURE__ */ o(e, { ...r });
|
|
12
4
|
export {
|
|
13
|
-
|
|
5
|
+
p as StyledFormHelperText
|
|
14
6
|
};
|
|
@@ -1,22 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import { jsxs as p } from "react/jsx-runtime";
|
|
5
|
-
var q = ({ children: r, htmlFor: o, id: s, required: l, disabled: i, error: t, size: d, shrink: a, className: n }) => {
|
|
6
|
-
const e = b(), f = a ?? (e ? e.focused || e.filled : !1), c = l ?? e?.required ?? !1;
|
|
7
|
-
return /* @__PURE__ */ p("label", {
|
|
8
|
-
htmlFor: o,
|
|
9
|
-
id: s ?? e?.labelId,
|
|
10
|
-
className: m(u({
|
|
11
|
-
shrink: f,
|
|
12
|
-
focused: e?.focused,
|
|
13
|
-
error: t ?? e?.error,
|
|
14
|
-
disabled: i ?? e?.disabled,
|
|
15
|
-
size: d ?? e?.size
|
|
16
|
-
}), n),
|
|
17
|
-
children: [r, c && " *"]
|
|
18
|
-
});
|
|
19
|
-
};
|
|
1
|
+
import { InputLabel as t } from "@mui/material";
|
|
2
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
3
|
+
var m = (r) => /* @__PURE__ */ o(t, { ...r });
|
|
20
4
|
export {
|
|
21
|
-
|
|
5
|
+
m as StyledInputLabel
|
|
22
6
|
};
|
|
@@ -1,44 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import { jsx as f, jsxs as x } from "react/jsx-runtime";
|
|
5
|
-
import { FloatingPortal as p } from "@floating-ui/react";
|
|
6
|
-
var w = {
|
|
7
|
-
left: "inset-y-0 left-0 h-full",
|
|
8
|
-
right: "inset-y-0 right-0 h-full",
|
|
9
|
-
top: "inset-x-0 top-0 w-full",
|
|
10
|
-
bottom: "inset-x-0 bottom-0 w-full"
|
|
11
|
-
}, g = {
|
|
12
|
-
left: "-translate-x-full",
|
|
13
|
-
right: "translate-x-full",
|
|
14
|
-
top: "-translate-y-full",
|
|
15
|
-
bottom: "translate-y-full"
|
|
16
|
-
}, D = ({ open: t = !1, onClose: l, anchor: o = "left", variant: m = "temporary", hideBackdrop: d, className: u, sx: c, PaperProps: a, children: y }) => {
|
|
17
|
-
const e = m === "temporary";
|
|
18
|
-
return v(() => {
|
|
19
|
-
if (!t || !e) return;
|
|
20
|
-
const r = (i) => {
|
|
21
|
-
i.key === "Escape" && l?.(i, "escapeKeyDown");
|
|
22
|
-
};
|
|
23
|
-
return document.addEventListener("keydown", r), () => document.removeEventListener("keydown", r);
|
|
24
|
-
}, [
|
|
25
|
-
t,
|
|
26
|
-
e,
|
|
27
|
-
l
|
|
28
|
-
]), /* @__PURE__ */ x(p, { children: [e && !d && t && /* @__PURE__ */ f("div", {
|
|
29
|
-
className: "fixed inset-0 z-[1200] bg-black/50",
|
|
30
|
-
onClick: (r) => l?.(r, "backdropClick")
|
|
31
|
-
}), /* @__PURE__ */ f("div", {
|
|
32
|
-
role: e ? "dialog" : void 0,
|
|
33
|
-
"aria-hidden": !t,
|
|
34
|
-
className: s("fixed z-[1200] overflow-auto bg-white shadow-lg transition-transform duration-300", w[o], !t && s(g[o], "pointer-events-none"), u, a?.className),
|
|
35
|
-
style: {
|
|
36
|
-
...n(c),
|
|
37
|
-
...n(a?.sx)
|
|
38
|
-
},
|
|
39
|
-
children: y
|
|
40
|
-
})] });
|
|
41
|
-
};
|
|
1
|
+
import { Drawer as o } from "@mui/material";
|
|
2
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
3
|
+
var a = (r) => /* @__PURE__ */ e(o, { ...r });
|
|
42
4
|
export {
|
|
43
|
-
|
|
5
|
+
a as StyledDrawer
|
|
44
6
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { createContext as p, useContext as x, useEffect as d, useMemo as b, useState as v } from "react";
|
|
2
|
+
import { ClickAwayListener as m } from "@mui/material";
|
|
3
3
|
import { jsx as s } from "react/jsx-runtime";
|
|
4
|
-
var a =
|
|
5
|
-
const t =
|
|
4
|
+
var a = p(null), l = () => {
|
|
5
|
+
const t = x(a);
|
|
6
6
|
if (!t) throw new Error("Listbox.Button/Options/Option must be rendered inside <Listbox>");
|
|
7
7
|
return t;
|
|
8
8
|
}, f = (t, e) => typeof t == "function" ? t(e) : t;
|
|
9
9
|
function L({ value: t, onChange: e, children: r }) {
|
|
10
|
-
const [o, n] =
|
|
10
|
+
const [o, n] = v(!1), u = b(() => ({
|
|
11
11
|
open: o,
|
|
12
12
|
select: (i) => {
|
|
13
13
|
e(i), n(!1);
|
|
@@ -19,7 +19,7 @@ function L({ value: t, onChange: e, children: r }) {
|
|
|
19
19
|
t,
|
|
20
20
|
e
|
|
21
21
|
]);
|
|
22
|
-
return
|
|
22
|
+
return d(() => {
|
|
23
23
|
if (!o) return;
|
|
24
24
|
const i = (c) => {
|
|
25
25
|
c.key === "Escape" && n(!1);
|
|
@@ -27,7 +27,7 @@ function L({ value: t, onChange: e, children: r }) {
|
|
|
27
27
|
return document.addEventListener("keydown", i), () => document.removeEventListener("keydown", i);
|
|
28
28
|
}, [o]), /* @__PURE__ */ s(a.Provider, {
|
|
29
29
|
value: u,
|
|
30
|
-
children: /* @__PURE__ */ s(
|
|
30
|
+
children: /* @__PURE__ */ s(m, {
|
|
31
31
|
onClickAway: () => n(!1),
|
|
32
32
|
children: /* @__PURE__ */ s("div", {
|
|
33
33
|
className: "relative w-full",
|
|
@@ -1,31 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
onClose: t,
|
|
12
|
-
anchorOrigin: l,
|
|
13
|
-
transformOrigin: m,
|
|
14
|
-
id: d,
|
|
15
|
-
className: s,
|
|
16
|
-
sx: x,
|
|
17
|
-
slotProps: { paper: {
|
|
18
|
-
className: y("rounded", e?.paper, r?.paper?.className),
|
|
19
|
-
sx: [u, r?.paper?.sx],
|
|
20
|
-
style: r?.paper?.style
|
|
21
|
-
} },
|
|
22
|
-
children: /* @__PURE__ */ p(f, {
|
|
23
|
-
autoFocus: i,
|
|
24
|
-
className: e?.list,
|
|
25
|
-
onClick: c,
|
|
26
|
-
children: n
|
|
27
|
-
})
|
|
1
|
+
import e from "clsx";
|
|
2
|
+
import { Menu as r } from "@mui/material";
|
|
3
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
4
|
+
var d = (s) => /* @__PURE__ */ a(r, {
|
|
5
|
+
...s,
|
|
6
|
+
classes: {
|
|
7
|
+
paper: e("border border-solid border-delta-300 shadow-[0px_2px_4px_0px_rgba(34,_33,_51,_0.15)]", s.classes?.paper),
|
|
8
|
+
list: e("py-1", s.classes?.list),
|
|
9
|
+
...s.classes
|
|
10
|
+
}
|
|
28
11
|
});
|
|
29
12
|
export {
|
|
30
|
-
|
|
13
|
+
d as StyledMenu
|
|
31
14
|
};
|
|
@@ -1,20 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { jsx as
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
onClick: e ? void 0 : o,
|
|
11
|
-
onKeyDown: (t) => {
|
|
12
|
-
e || (t.key === "Enter" || t.key === " ") && (t.preventDefault(), o?.(t));
|
|
1
|
+
import o from "clsx";
|
|
2
|
+
import { MenuItem as t } from "@mui/material";
|
|
3
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
4
|
+
var n = (e) => /* @__PURE__ */ r(t, {
|
|
5
|
+
...e,
|
|
6
|
+
classes: {
|
|
7
|
+
selected: "bg-gama-50",
|
|
8
|
+
root: o("h-10 pl-4 pr-2 hover:bg-delta-50", e.classes?.root),
|
|
9
|
+
...e.classes
|
|
13
10
|
},
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
sx: {
|
|
12
|
+
fontSize: "var(--font-size-body-base)",
|
|
13
|
+
"&.Mui-disabled": {
|
|
14
|
+
pointerEvents: "auto",
|
|
15
|
+
cursor: "not-allowed",
|
|
16
|
+
"&:hover": { backgroundColor: "transparent !important" }
|
|
17
|
+
},
|
|
18
|
+
...e.sx
|
|
19
|
+
}
|
|
17
20
|
});
|
|
18
21
|
export {
|
|
19
|
-
|
|
22
|
+
n as StyledMenuItem
|
|
20
23
|
};
|
|
@@ -1,34 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
var i = (o) => o ? Array.from(o.querySelectorAll('[role="menuitem"]:not([aria-disabled="true"])')) : [], k = ({ children: o, className: s, autoFocus: f, disablePadding: u, onClick: m, onKeyDown: c }) => {
|
|
5
|
-
const t = w(null);
|
|
6
|
-
p(() => {
|
|
7
|
-
f && i(t.current)[0]?.focus();
|
|
8
|
-
}, [f]);
|
|
9
|
-
const a = (e) => {
|
|
10
|
-
if (c?.(e), ![
|
|
11
|
-
"ArrowDown",
|
|
12
|
-
"ArrowUp",
|
|
13
|
-
"Home",
|
|
14
|
-
"End"
|
|
15
|
-
].includes(e.key)) return;
|
|
16
|
-
e.preventDefault();
|
|
17
|
-
const r = i(t.current);
|
|
18
|
-
if (r.length === 0) return;
|
|
19
|
-
const l = r.findIndex((d) => d === document.activeElement);
|
|
20
|
-
let n = l;
|
|
21
|
-
e.key === "ArrowDown" ? n = (l + 1) % r.length : e.key === "ArrowUp" ? n = (l - 1 + r.length) % r.length : e.key === "Home" ? n = 0 : e.key === "End" && (n = r.length - 1), r[n]?.focus();
|
|
22
|
-
};
|
|
23
|
-
return /* @__PURE__ */ h("ul", {
|
|
24
|
-
ref: t,
|
|
25
|
-
role: "menu",
|
|
26
|
-
className: y("m-0 list-none outline-none", u ? "py-0" : "py-1", s),
|
|
27
|
-
onClick: m,
|
|
28
|
-
onKeyDown: a,
|
|
29
|
-
children: o
|
|
30
|
-
});
|
|
31
|
-
};
|
|
1
|
+
import { MenuList as t } from "@mui/material";
|
|
2
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
3
|
+
var m = (r) => /* @__PURE__ */ o(t, { ...r });
|
|
32
4
|
export {
|
|
33
|
-
|
|
5
|
+
m as StyledMenuList
|
|
34
6
|
};
|
|
@@ -1,27 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
role: "tab",
|
|
14
|
-
"aria-selected": o,
|
|
15
|
-
"aria-disabled": r ? !0 : void 0,
|
|
16
|
-
disabled: r,
|
|
17
|
-
tabIndex: o ? 0 : -1,
|
|
18
|
-
"data-tab-value": typeof t == "string" || typeof t == "number" ? String(t) : void 0,
|
|
19
|
-
onClick: (a) => !r && e?.onSelect(a, t),
|
|
20
|
-
className: l("inline-flex min-h-12 shrink-0 items-center justify-center whitespace-nowrap px-4 py-3 text-sm font-medium normal-case tracking-normal transition-colors", e?.size === "small" && "min-h-9 px-3 py-2", o ? "text-gama-500" : "text-gray-600", r && "text-gray-300", !r && "cursor-pointer hover:text-gama-500", s),
|
|
21
|
-
style: p(m),
|
|
22
|
-
children: i
|
|
23
|
-
});
|
|
24
|
-
};
|
|
1
|
+
import { Tab as o } from "@mui/material";
|
|
2
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
3
|
+
var e = (r) => /* @__PURE__ */ a(o, {
|
|
4
|
+
...r,
|
|
5
|
+
sx: {
|
|
6
|
+
textTransform: "none",
|
|
7
|
+
letterSpacing: "normal",
|
|
8
|
+
"&.MuiTab-textColorPrimary.Mui-selected": { color: "var(--colors-gama-500)" },
|
|
9
|
+
"&.MuiTab-textColorPrimary": { color: "var(--colors-gray-600)" },
|
|
10
|
+
"&.MuiTab-textColorPrimary.Mui-disabled": { color: "var(--colors-gray-300)" }
|
|
11
|
+
}
|
|
12
|
+
});
|
|
25
13
|
export {
|
|
26
|
-
|
|
14
|
+
e as StyledTab
|
|
27
15
|
};
|
|
@@ -1,116 +1,70 @@
|
|
|
1
|
-
import { cn as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
return /* @__PURE__ */ o(M.Provider, {
|
|
67
|
-
value: O,
|
|
68
|
-
children: /* @__PURE__ */ E("div", {
|
|
69
|
-
className: d("relative flex items-center rounded-t-lg bg-white px-4", N),
|
|
70
|
-
style: T(j),
|
|
71
|
-
children: [
|
|
72
|
-
C && /* @__PURE__ */ o("button", {
|
|
73
|
-
type: "button",
|
|
74
|
-
"aria-label": "scroll tabs left",
|
|
75
|
-
className: d(L, "mr-2"),
|
|
76
|
-
disabled: !c.left,
|
|
77
|
-
onClick: () => k(-I),
|
|
78
|
-
children: /* @__PURE__ */ o(K, {
|
|
79
|
-
width: 24,
|
|
80
|
-
height: 24
|
|
81
|
-
})
|
|
82
|
-
}),
|
|
83
|
-
/* @__PURE__ */ E("div", {
|
|
84
|
-
ref: i,
|
|
85
|
-
role: "tablist",
|
|
86
|
-
"aria-orientation": "horizontal",
|
|
87
|
-
onKeyDown: D,
|
|
88
|
-
onScroll: f,
|
|
89
|
-
className: d("relative flex border-b border-delta-200 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", y ? "flex-1 overflow-x-auto" : "w-full", b === "fullWidth" && "[&>*]:flex-1", A && "justify-center", h === "small" && "min-h-9"),
|
|
90
|
-
children: [P.map(g, (e, t) => _(e) ? V(e, { index: t }) : e), /* @__PURE__ */ o("span", {
|
|
91
|
-
"aria-hidden": !0,
|
|
92
|
-
className: "absolute bottom-0 h-0.5 bg-gama-500 transition-all duration-300",
|
|
93
|
-
style: {
|
|
94
|
-
left: x.left,
|
|
95
|
-
width: x.width
|
|
96
|
-
}
|
|
97
|
-
})]
|
|
98
|
-
}),
|
|
99
|
-
C && /* @__PURE__ */ o("button", {
|
|
100
|
-
type: "button",
|
|
101
|
-
"aria-label": "scroll tabs right",
|
|
102
|
-
className: d(L, "ml-2"),
|
|
103
|
-
disabled: !c.right,
|
|
104
|
-
onClick: () => k(I),
|
|
105
|
-
children: /* @__PURE__ */ o(H, {
|
|
106
|
-
width: 24,
|
|
107
|
-
height: 24
|
|
108
|
-
})
|
|
109
|
-
})
|
|
110
|
-
]
|
|
111
|
-
})
|
|
1
|
+
import { cn as s } from "../../../helpers/cn.js";
|
|
2
|
+
import { Tabs as e } from "@mui/material";
|
|
3
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
4
|
+
function n(o) {
|
|
5
|
+
return Array.isArray(o);
|
|
6
|
+
}
|
|
7
|
+
function d(o) {
|
|
8
|
+
return o != null && !Array.isArray(o);
|
|
9
|
+
}
|
|
10
|
+
var c = {
|
|
11
|
+
"& .MuiTab-root": { fontSize: "var(--font-size-body-lg)" },
|
|
12
|
+
"& .MuiTabs-scroller": { borderBottom: "1px solid var(--colors-delta-200)" },
|
|
13
|
+
"& .MuiTabs-scrollButtons": {
|
|
14
|
+
border: "1px solid var(--colors-delta-500)",
|
|
15
|
+
width: 40,
|
|
16
|
+
height: 40,
|
|
17
|
+
borderRadius: "10%",
|
|
18
|
+
display: "none",
|
|
19
|
+
justifyContent: "center",
|
|
20
|
+
alignItems: "center",
|
|
21
|
+
alignSelf: "center",
|
|
22
|
+
"& svg": {
|
|
23
|
+
fontSize: 24,
|
|
24
|
+
color: "var(--colors-delta-700)"
|
|
25
|
+
},
|
|
26
|
+
"&:hover": { backgroundColor: "var(--colors-gama-50)" },
|
|
27
|
+
"&:first-of-type": { marginRight: "8px" },
|
|
28
|
+
"&:last-of-type": { marginLeft: "8px" },
|
|
29
|
+
transition: "opacity 0.3s ease, transform 0.3s ease",
|
|
30
|
+
opacity: 0,
|
|
31
|
+
transform: "scale(0)"
|
|
32
|
+
},
|
|
33
|
+
"& .MuiTabs-scrollButtons.Mui-disabled": { display: "none" },
|
|
34
|
+
"& .MuiTabs-scrollButtons:not(.Mui-disabled)": {
|
|
35
|
+
display: "flex",
|
|
36
|
+
opacity: 1,
|
|
37
|
+
transform: "scale(1)"
|
|
38
|
+
}
|
|
39
|
+
}, p = {
|
|
40
|
+
minHeight: 36,
|
|
41
|
+
"& .MuiTab-root": {
|
|
42
|
+
fontSize: "var(--font-size-body-base)",
|
|
43
|
+
height: 36,
|
|
44
|
+
minHeight: 36,
|
|
45
|
+
paddingLeft: "12px",
|
|
46
|
+
paddingRight: "12px",
|
|
47
|
+
paddingTop: "8px",
|
|
48
|
+
paddingBottom: "8px"
|
|
49
|
+
}
|
|
50
|
+
}, m = ({ className: o, size: i = "default", sx: r, ...a }) => {
|
|
51
|
+
const t = [c];
|
|
52
|
+
return i === "small" && t.push(p), n(r) ? t.push(...r) : d(r) && t.push(r), /* @__PURE__ */ l(e, {
|
|
53
|
+
...a,
|
|
54
|
+
className: s("relative rounded-t-lg bg-white px-4", o),
|
|
55
|
+
slotProps: {
|
|
56
|
+
...a.slotProps,
|
|
57
|
+
indicator: {
|
|
58
|
+
style: {
|
|
59
|
+
background: "var(--colors-gama-500)",
|
|
60
|
+
color: "var(--colors-gama-500)"
|
|
61
|
+
},
|
|
62
|
+
...a.slotProps?.indicator ?? {}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
sx: t
|
|
112
66
|
});
|
|
113
67
|
};
|
|
114
68
|
export {
|
|
115
|
-
|
|
69
|
+
m as StyledTabs
|
|
116
70
|
};
|