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,19 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { jsx as
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
children: e
|
|
15
|
-
});
|
|
16
|
-
};
|
|
1
|
+
import n from "./StyledDialogContent.module.js";
|
|
2
|
+
import { DialogContent as r } from "@mui/material";
|
|
3
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
4
|
+
var s = ({ children: t, classes: o, className: e, ...l }) => /* @__PURE__ */ a(r, {
|
|
5
|
+
...l,
|
|
6
|
+
"data-test": "styled-dialog-content",
|
|
7
|
+
classes: {
|
|
8
|
+
...o,
|
|
9
|
+
root: n["styled-dialog-content"]
|
|
10
|
+
},
|
|
11
|
+
className: e,
|
|
12
|
+
children: t
|
|
13
|
+
});
|
|
17
14
|
export {
|
|
18
|
-
|
|
15
|
+
s as StyledDialogContent
|
|
19
16
|
};
|
|
@@ -1,20 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { jsx as
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
...
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
style: r,
|
|
14
|
-
...o,
|
|
15
|
-
children: t
|
|
16
|
-
});
|
|
17
|
-
};
|
|
1
|
+
import o from "./StyledDialogTitle.module.js";
|
|
2
|
+
import { DialogTitle as e } from "@mui/material";
|
|
3
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
4
|
+
var s = ({ children: t, ...l }) => t ? /* @__PURE__ */ i(e, {
|
|
5
|
+
...l,
|
|
6
|
+
"data-testid": "styled-dialog-title",
|
|
7
|
+
classes: {
|
|
8
|
+
...l.classes,
|
|
9
|
+
root: o["styled-dialog-title-root"]
|
|
10
|
+
},
|
|
11
|
+
children: t
|
|
12
|
+
}) : null;
|
|
18
13
|
export {
|
|
19
|
-
|
|
14
|
+
s as StyledDialogTitle
|
|
20
15
|
};
|
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import { cn as c } from "../../../helpers/cn.js";
|
|
2
|
-
import { DotsVerticalIcon as
|
|
2
|
+
import { DotsVerticalIcon as de } from "../../icons/dots-vertical-icon/DotsVerticalIcon.js";
|
|
3
3
|
import { LoadingIcon as S } from "../../icons/loading-icon/LoadingIcon.js";
|
|
4
4
|
import { CloseIcon as O } from "../../icons/close-icon/CloseIcon.js";
|
|
5
|
-
import { MinimizeIcon as
|
|
6
|
-
import { KeyboardCapslockIcon as
|
|
5
|
+
import { MinimizeIcon as re } from "../../icons/minimize-icon/MinimizeIcon.js";
|
|
6
|
+
import { KeyboardCapslockIcon as ne } from "../../icons/keyboard-capslock-icon/KeyboardCapslockIcon.js";
|
|
7
7
|
import { StyledTooltip as h } from "../../data-display/tooltip/StyledTooltip.js";
|
|
8
8
|
import { StyledButton as i } from "../../inputs/button/StyledButton.js";
|
|
9
|
-
import { StyledMenu as
|
|
10
|
-
import { StyledMenuItem as
|
|
9
|
+
import { StyledMenu as ae } from "../../navigation/menu/StyledMenu.js";
|
|
10
|
+
import { StyledMenuItem as oe } from "../../navigation/menu/StyledMenuItem.js";
|
|
11
11
|
import T from "./MinimizableDialog.module.js";
|
|
12
|
-
import { useToggleMenuVisibility as
|
|
13
|
-
import { ArrowExpand as
|
|
14
|
-
import { ArrowShrink as
|
|
12
|
+
import { useToggleMenuVisibility as se } from "../../../hooks/useToggleMenuVisibility.hook.js";
|
|
13
|
+
import { ArrowExpand as ce } from "../../icons/arrow-expand/ArrowExpand.js";
|
|
14
|
+
import { ArrowShrink as he } from "../../icons/arrow-shrink/ArrowShrink.js";
|
|
15
15
|
import V from "clsx";
|
|
16
16
|
import { useState as $ } from "react";
|
|
17
|
-
import { Fragment as
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
import { Fragment as z, jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
18
|
+
import { isArray as K, isFunction as L } from "lodash-es";
|
|
19
|
+
var Ge = ({ onCloseText: N = "", onMinimizeText: R = "", onExpandText: U = "", onFullScreenText: q = "", showCloseIcon: k = !0, showMinimizeIcon: H = !0, showExpandIcon: J = !0, showFullScreenIcon: Q = !0, title: u, label: p, children: v, open: W, onClose: I, className: y = "", primaryButtonText: g, primaryButtonLoading: x = !1, secondaryButtonText: o, onPrimaryButtonClick: m, onSecondaryButtonClick: f, dataTest: M, actionNode: X, extraActions: l, extraActionsText: s, btnContainerClassName: j, footerClassName: Y, footerInfo: C, locale: n = "en", enableFullscreen: Z = !0, fullScreenState: F, handleFullScreenState: _ }) => {
|
|
20
|
+
const [d, P] = $(!1), [G, A] = $(!1), { open: B, anchorEl: ee, handleOpen: te, handleClose: ie } = se();
|
|
21
|
+
if (!W) return null;
|
|
22
|
+
const a = F ?? G, b = a && !d, le = b ? {
|
|
22
23
|
right: "auto",
|
|
23
24
|
bottom: "auto",
|
|
24
25
|
left: "50%",
|
|
@@ -27,56 +28,56 @@ var Ce = ({ onCloseText: z = "", onMinimizeText: K = "", onExpandText: L = "", o
|
|
|
27
28
|
width: "min(1000px, calc(100vw - 32px))",
|
|
28
29
|
height: "95dvh"
|
|
29
30
|
} : void 0, w = g ?? x, D = w || o, E = () => {
|
|
30
|
-
|
|
31
|
+
P(!d);
|
|
31
32
|
};
|
|
32
|
-
return /* @__PURE__ */ t(
|
|
33
|
+
return /* @__PURE__ */ t(z, { children: [
|
|
33
34
|
b && /* @__PURE__ */ e("div", { className: "fixed inset-0 z-[51] bg-[rgb(98,110,126)] bg-opacity-70" }),
|
|
34
35
|
/* @__PURE__ */ e("div", {
|
|
35
36
|
style: { zIndex: 51 },
|
|
36
|
-
className: c(T.dialog, !
|
|
37
|
+
className: c(T.dialog, !d && T.hidden),
|
|
37
38
|
children: /* @__PURE__ */ t("div", {
|
|
38
|
-
className: V("flex items-center justify-between", !
|
|
39
|
+
className: V("flex items-center justify-between", !d && "hidden"),
|
|
39
40
|
"data-testid": M,
|
|
40
41
|
children: [/* @__PURE__ */ e("div", {
|
|
41
42
|
className: "truncate text-lg font-semibold text-delta-800",
|
|
42
43
|
children: u
|
|
43
44
|
}), /* @__PURE__ */ t("div", {
|
|
44
45
|
className: "flex items-center gap-x-1",
|
|
45
|
-
children: [
|
|
46
|
+
children: [J && /* @__PURE__ */ e(h, {
|
|
46
47
|
title: n === "en" ? "Expand" : "Utvid",
|
|
47
48
|
children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(i, {
|
|
48
49
|
dataTest: "minimize-button",
|
|
49
50
|
variant: "text",
|
|
50
51
|
size: "small",
|
|
51
52
|
onClick: E,
|
|
52
|
-
endIcon: /* @__PURE__ */ e(
|
|
53
|
+
endIcon: /* @__PURE__ */ e(ne, {
|
|
53
54
|
height: 20,
|
|
54
55
|
width: 20,
|
|
55
56
|
color: "text-gama-500"
|
|
56
57
|
}),
|
|
57
|
-
children:
|
|
58
|
+
children: U
|
|
58
59
|
}) })
|
|
59
|
-
}),
|
|
60
|
+
}), k && /* @__PURE__ */ e(h, {
|
|
60
61
|
title: n === "en" ? "Close" : "Lukk",
|
|
61
62
|
children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(i, {
|
|
62
63
|
dataTest: "close-button",
|
|
63
64
|
variant: "textGray",
|
|
64
65
|
size: "small",
|
|
65
|
-
onClick:
|
|
66
|
+
onClick: I,
|
|
66
67
|
endIcon: /* @__PURE__ */ e(O, {
|
|
67
68
|
height: 20,
|
|
68
69
|
width: 20,
|
|
69
70
|
color: "text-delta-700"
|
|
70
71
|
}),
|
|
71
|
-
children:
|
|
72
|
+
children: N
|
|
72
73
|
}) })
|
|
73
74
|
})]
|
|
74
75
|
})]
|
|
75
76
|
})
|
|
76
77
|
}),
|
|
77
78
|
/* @__PURE__ */ t("div", {
|
|
78
|
-
style:
|
|
79
|
-
className: c("fixed bottom-4 right-4 z-[51] rounded-lg bg-white shadow-[0_4px_40px_0px_rgba(34,33,51,0.4)] transition-all duration-300",
|
|
79
|
+
style: le,
|
|
80
|
+
className: c("fixed bottom-4 right-4 z-[51] rounded-lg bg-white shadow-[0_4px_40px_0px_rgba(34,33,51,0.4)] transition-all duration-300", y && !d && !a ? y : "", d && "!h-0 !w-0 opacity-0 duration-0", b && "fixed duration-0"),
|
|
80
81
|
"data-testid": M,
|
|
81
82
|
children: [/* @__PURE__ */ t("div", {
|
|
82
83
|
className: "flex flex-col gap-y-2 border-b-[1px] border-delta-200 p-4",
|
|
@@ -91,56 +92,56 @@ var Ce = ({ onCloseText: z = "", onMinimizeText: K = "", onExpandText: L = "", o
|
|
|
91
92
|
}), /* @__PURE__ */ t("div", {
|
|
92
93
|
className: "flex items-center gap-x-1",
|
|
93
94
|
children: [
|
|
94
|
-
|
|
95
|
-
|
|
95
|
+
X,
|
|
96
|
+
H && /* @__PURE__ */ e(h, {
|
|
96
97
|
title: n === "en" ? "Minimize" : "Minimer",
|
|
97
98
|
children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(i, {
|
|
98
99
|
dataTest: "minimize-button",
|
|
99
100
|
variant: "textGray",
|
|
100
101
|
size: "small",
|
|
101
102
|
onClick: E,
|
|
102
|
-
endIcon: /* @__PURE__ */ e(
|
|
103
|
+
endIcon: /* @__PURE__ */ e(re, {
|
|
103
104
|
height: 20,
|
|
104
105
|
width: 20,
|
|
105
106
|
color: "text-delta-700"
|
|
106
107
|
}),
|
|
107
|
-
children:
|
|
108
|
+
children: R
|
|
108
109
|
}) })
|
|
109
110
|
}),
|
|
110
|
-
|
|
111
|
+
Z && Q && /* @__PURE__ */ e(h, {
|
|
111
112
|
title: a ? n === "en" ? "Exit full screen" : "Avslutt fullskjerm" : n === "en" ? "Full screen" : "Fullskjerm",
|
|
112
113
|
children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(i, {
|
|
113
114
|
dataTest: "fullscreen-button",
|
|
114
115
|
variant: "textGray",
|
|
115
116
|
size: "small",
|
|
116
|
-
onClick: (
|
|
117
|
-
|
|
117
|
+
onClick: (r) => {
|
|
118
|
+
F !== void 0 && _ ? _() : A(!G), r.detail !== 0 && r.currentTarget.blur();
|
|
118
119
|
},
|
|
119
|
-
endIcon: a ? /* @__PURE__ */ e(
|
|
120
|
+
endIcon: a ? /* @__PURE__ */ e(he, {
|
|
120
121
|
width: 20,
|
|
121
122
|
height: 20,
|
|
122
123
|
color: "text-delta-700"
|
|
123
|
-
}) : /* @__PURE__ */ e(
|
|
124
|
+
}) : /* @__PURE__ */ e(ce, {
|
|
124
125
|
width: 20,
|
|
125
126
|
height: 20,
|
|
126
127
|
color: "text-delta-700"
|
|
127
128
|
}),
|
|
128
|
-
children:
|
|
129
|
+
children: q
|
|
129
130
|
}) })
|
|
130
131
|
}),
|
|
131
|
-
|
|
132
|
+
k && /* @__PURE__ */ e(h, {
|
|
132
133
|
title: n === "en" ? "Close" : "Lukk",
|
|
133
134
|
children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(i, {
|
|
134
135
|
dataTest: "close-button",
|
|
135
136
|
variant: "textGray",
|
|
136
137
|
size: "small",
|
|
137
|
-
onClick:
|
|
138
|
+
onClick: I,
|
|
138
139
|
endIcon: /* @__PURE__ */ e(O, {
|
|
139
140
|
height: 20,
|
|
140
141
|
width: 20,
|
|
141
142
|
color: "text-delta-700"
|
|
142
143
|
}),
|
|
143
|
-
children:
|
|
144
|
+
children: N
|
|
144
145
|
}) })
|
|
145
146
|
})
|
|
146
147
|
]
|
|
@@ -150,32 +151,32 @@ var Ce = ({ onCloseText: z = "", onMinimizeText: K = "", onExpandText: L = "", o
|
|
|
150
151
|
children: u
|
|
151
152
|
})]
|
|
152
153
|
}), /* @__PURE__ */ t("div", {
|
|
153
|
-
className: V("flex flex-col", a && !
|
|
154
|
+
className: V("flex flex-col", a && !d && "h-[87dvh]"),
|
|
154
155
|
children: [/* @__PURE__ */ e("div", {
|
|
155
156
|
className: "flex-grow overflow-y-auto",
|
|
156
157
|
children: typeof v == "function" ? v({ fullScreen: a }) : v
|
|
157
|
-
}), (
|
|
158
|
-
className: c("flex items-center justify-between border-0 border-t-[1px] border-solid border-delta-200 bg-white p-4",
|
|
158
|
+
}), (K(l) && l.length || L(l)) && s || C ? /* @__PURE__ */ t("div", {
|
|
159
|
+
className: c("flex items-center justify-between border-0 border-t-[1px] border-solid border-delta-200 bg-white p-4", Y),
|
|
159
160
|
children: [
|
|
160
|
-
|
|
161
|
+
K(l) && l.length && s ? /* @__PURE__ */ t(z, { children: [/* @__PURE__ */ e(i, {
|
|
161
162
|
dataTest: "extra-actions-button",
|
|
162
163
|
variant: "textGray",
|
|
163
|
-
startIcon: /* @__PURE__ */ e(
|
|
164
|
+
startIcon: /* @__PURE__ */ e(de, {
|
|
164
165
|
width: 24,
|
|
165
166
|
height: 24
|
|
166
167
|
}),
|
|
167
|
-
onClick:
|
|
168
|
+
onClick: te,
|
|
168
169
|
children: s
|
|
169
|
-
}), /* @__PURE__ */ e(
|
|
170
|
-
open:
|
|
171
|
-
anchorEl:
|
|
172
|
-
onClose:
|
|
173
|
-
children: l.map((
|
|
174
|
-
className:
|
|
175
|
-
onClick:
|
|
176
|
-
children:
|
|
177
|
-
},
|
|
178
|
-
})] }) : s &&
|
|
170
|
+
}), /* @__PURE__ */ e(ae, {
|
|
171
|
+
open: B,
|
|
172
|
+
anchorEl: ee,
|
|
173
|
+
onClose: ie,
|
|
174
|
+
children: l.map((r) => /* @__PURE__ */ e(oe, {
|
|
175
|
+
className: r.className,
|
|
176
|
+
onClick: r.onClick,
|
|
177
|
+
children: r.label
|
|
178
|
+
}, r.label))
|
|
179
|
+
})] }) : s && L(l) && /* @__PURE__ */ e(i, {
|
|
179
180
|
dataTest: "extra-action-button",
|
|
180
181
|
variant: "text",
|
|
181
182
|
onClick: l,
|
|
@@ -201,7 +202,7 @@ var Ce = ({ onCloseText: z = "", onMinimizeText: K = "", onExpandText: L = "", o
|
|
|
201
202
|
})]
|
|
202
203
|
}) : null
|
|
203
204
|
]
|
|
204
|
-
}) : /* @__PURE__ */ e(
|
|
205
|
+
}) : /* @__PURE__ */ e(z, { children: D ? /* @__PURE__ */ t("div", {
|
|
205
206
|
className: c("flex justify-end gap-x-2 border-t-[1px] border-delta-200 p-4", j),
|
|
206
207
|
children: [o && f && /* @__PURE__ */ e(i, {
|
|
207
208
|
dataTest: "cancel-button",
|
|
@@ -223,5 +224,5 @@ var Ce = ({ onCloseText: z = "", onMinimizeText: K = "", onExpandText: L = "", o
|
|
|
223
224
|
] });
|
|
224
225
|
};
|
|
225
226
|
export {
|
|
226
|
-
|
|
227
|
+
Ge as MinimizableDialog
|
|
227
228
|
};
|
|
@@ -1,75 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
info: "bg-info-50 text-info-700",
|
|
13
|
-
warning: "bg-warning-50 text-warning-700",
|
|
14
|
-
error: "bg-error-50 text-error-700"
|
|
1
|
+
import { CheckOutlineIcon as r } from "./components/CheckOutlineIcon.js";
|
|
2
|
+
import { Alert as e } from "@mui/material";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
var m = (i) => /* @__PURE__ */ t(e, {
|
|
5
|
+
iconMapping: {
|
|
6
|
+
success: /* @__PURE__ */ t(r, {
|
|
7
|
+
height: 24,
|
|
8
|
+
width: 24,
|
|
9
|
+
fontSize: "inherit"
|
|
10
|
+
}),
|
|
11
|
+
...i.iconMapping
|
|
15
12
|
},
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
info: "bg-info-500 text-white",
|
|
19
|
-
warning: "bg-warning-500 text-white",
|
|
20
|
-
error: "bg-error-500 text-white"
|
|
21
|
-
},
|
|
22
|
-
outlined: {
|
|
23
|
-
success: "border border-success-500 text-success-700",
|
|
24
|
-
info: "border border-info-500 text-info-700",
|
|
25
|
-
warning: "border border-warning-500 text-warning-700",
|
|
26
|
-
error: "border border-error-500 text-error-700"
|
|
27
|
-
}
|
|
28
|
-
}, A = {
|
|
29
|
-
success: /* @__PURE__ */ r(u, {
|
|
30
|
-
width: 24,
|
|
31
|
-
height: 24
|
|
32
|
-
}),
|
|
33
|
-
info: /* @__PURE__ */ r(x, {
|
|
34
|
-
width: 24,
|
|
35
|
-
height: 24
|
|
36
|
-
}),
|
|
37
|
-
warning: /* @__PURE__ */ r(w, {
|
|
38
|
-
width: 24,
|
|
39
|
-
height: 24
|
|
40
|
-
}),
|
|
41
|
-
error: /* @__PURE__ */ r(b, {
|
|
42
|
-
width: 24,
|
|
43
|
-
height: 24
|
|
44
|
-
})
|
|
45
|
-
}, E = ({ severity: e = "success", variant: i = "standard", icon: t, iconMapping: s, action: c, onClose: n, children: a, className: l, sx: d, role: h = "alert" }) => {
|
|
46
|
-
const o = t === !1 ? null : t ?? s?.[e] ?? A[e];
|
|
47
|
-
return /* @__PURE__ */ p("div", {
|
|
48
|
-
role: h,
|
|
49
|
-
className: f("flex items-center gap-2 rounded-lg px-4 py-2 text-sm", I[i][e], l),
|
|
50
|
-
style: g(d),
|
|
51
|
-
children: [
|
|
52
|
-
o && /* @__PURE__ */ r("span", {
|
|
53
|
-
className: "flex shrink-0 items-center",
|
|
54
|
-
children: o
|
|
55
|
-
}),
|
|
56
|
-
/* @__PURE__ */ r("span", {
|
|
57
|
-
className: "min-w-0 flex-1",
|
|
58
|
-
children: a
|
|
59
|
-
}),
|
|
60
|
-
c ?? (n && /* @__PURE__ */ r("button", {
|
|
61
|
-
type: "button",
|
|
62
|
-
"aria-label": "Close",
|
|
63
|
-
onClick: n,
|
|
64
|
-
className: "flex shrink-0 items-center justify-center rounded-full p-1 hover:bg-black/10",
|
|
65
|
-
children: /* @__PURE__ */ r(m, {
|
|
66
|
-
width: 18,
|
|
67
|
-
height: 18
|
|
68
|
-
})
|
|
69
|
-
}))
|
|
70
|
-
]
|
|
71
|
-
});
|
|
72
|
-
};
|
|
13
|
+
...i
|
|
14
|
+
});
|
|
73
15
|
export {
|
|
74
|
-
|
|
16
|
+
m as StyledAlert
|
|
75
17
|
};
|
|
@@ -1,36 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
"top-right": "top-6 right-6",
|
|
9
|
-
"bottom-left": "bottom-6 left-6",
|
|
10
|
-
"bottom-center": "bottom-6 left-1/2 -translate-x-1/2",
|
|
11
|
-
"bottom-right": "bottom-6 right-6"
|
|
12
|
-
}, S = ({ open: t = !1, autoHideDuration: e = 3e3, onClose: r, anchorOrigin: o = {
|
|
13
|
-
vertical: "bottom",
|
|
14
|
-
horizontal: "left"
|
|
15
|
-
}, message: i, action: m, children: a, className: f }) => {
|
|
16
|
-
if (p(() => {
|
|
17
|
-
if (!t || e == null) return;
|
|
18
|
-
const s = setTimeout(() => r?.(null, "timeout"), e);
|
|
19
|
-
return () => clearTimeout(s);
|
|
20
|
-
}, [
|
|
21
|
-
t,
|
|
22
|
-
e,
|
|
23
|
-
r
|
|
24
|
-
]), !t) return null;
|
|
25
|
-
const n = b[`${o.vertical}-${o.horizontal}`];
|
|
26
|
-
return /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l("div", {
|
|
27
|
-
className: c("fixed z-[1400] flex items-center gap-2", n, f),
|
|
28
|
-
children: a ?? /* @__PURE__ */ x("div", {
|
|
29
|
-
className: "flex items-center gap-2 rounded-lg bg-delta-800 px-4 py-3 text-sm text-white shadow-lg",
|
|
30
|
-
children: [i, m]
|
|
31
|
-
})
|
|
32
|
-
}) });
|
|
33
|
-
};
|
|
1
|
+
import { Snackbar as t } from "@mui/material";
|
|
2
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
3
|
+
var d = ({ children: a, ...r }) => /* @__PURE__ */ o(t, {
|
|
4
|
+
autoHideDuration: r.autoHideDuration ?? 3e3,
|
|
5
|
+
...r,
|
|
6
|
+
children: a && /* @__PURE__ */ o("div", { children: a })
|
|
7
|
+
});
|
|
34
8
|
export {
|
|
35
|
-
|
|
9
|
+
d as StyledSnackbar
|
|
36
10
|
};
|
|
@@ -1,72 +1,73 @@
|
|
|
1
1
|
import { omit as f } from "../../../../helpers/omit.js";
|
|
2
|
-
import { CloseIcon as
|
|
3
|
-
import { CheckOutlineIcon as
|
|
2
|
+
import { CloseIcon as p } from "../../../icons/close-icon/CloseIcon.js";
|
|
3
|
+
import { CheckOutlineIcon as u } from "./CheckOutlineIcon.js";
|
|
4
4
|
import { ErrorOutlineIcon as g } from "./ErrorOutlineIcon.js";
|
|
5
|
-
import { InfoOutlineIcon as
|
|
6
|
-
import { WarningAmberOutlineIcon as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { forwardRef as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
|
|
5
|
+
import { InfoOutlineIcon as I } from "./InfoOutlineIcon.js";
|
|
6
|
+
import { WarningAmberOutlineIcon as S } from "./WarningAmberOutlineIcon.js";
|
|
7
|
+
import i from "./StyledDefaultSnackbar.module.js";
|
|
8
|
+
import t from "clsx";
|
|
9
|
+
import { forwardRef as v } from "react";
|
|
10
|
+
import { IconButton as b } from "@mui/material";
|
|
11
|
+
import { jsx as r, jsxs as n } from "react/jsx-runtime";
|
|
12
|
+
import { SnackbarContent as k, useSnackbar as w } from "notistack";
|
|
13
|
+
var x = {
|
|
14
|
+
info: /* @__PURE__ */ r(I, {
|
|
14
15
|
height: 24,
|
|
15
16
|
width: 24
|
|
16
17
|
}),
|
|
17
|
-
error: /* @__PURE__ */
|
|
18
|
+
error: /* @__PURE__ */ r(g, {
|
|
18
19
|
height: 24,
|
|
19
20
|
width: 24
|
|
20
21
|
}),
|
|
21
|
-
success: /* @__PURE__ */
|
|
22
|
+
success: /* @__PURE__ */ r(u, {
|
|
22
23
|
height: 24,
|
|
23
24
|
width: 24
|
|
24
25
|
}),
|
|
25
|
-
warning: /* @__PURE__ */
|
|
26
|
+
warning: /* @__PURE__ */ r(S, {
|
|
26
27
|
height: 24,
|
|
27
28
|
width: 24
|
|
28
29
|
})
|
|
29
|
-
},
|
|
30
|
-
const { id: a, message:
|
|
30
|
+
}, B = v((c, l) => {
|
|
31
|
+
const { id: a, message: m, severity: e, action: o, title: s, ...h } = f(c, [
|
|
31
32
|
"anchorOrigin",
|
|
32
33
|
"autoHideDuration",
|
|
33
34
|
"hideIconVariant",
|
|
34
35
|
"iconVariant",
|
|
35
36
|
"persist"
|
|
36
|
-
]), { closeSnackbar:
|
|
37
|
-
return /* @__PURE__ */
|
|
37
|
+
]), { closeSnackbar: d } = w();
|
|
38
|
+
return /* @__PURE__ */ r(k, {
|
|
38
39
|
ref: l,
|
|
39
40
|
role: "alert",
|
|
40
|
-
...
|
|
41
|
+
...h,
|
|
41
42
|
children: /* @__PURE__ */ n("div", {
|
|
42
|
-
className:
|
|
43
|
+
className: t(i.container, i[e]),
|
|
43
44
|
children: [
|
|
44
45
|
/* @__PURE__ */ n("div", {
|
|
45
|
-
className:
|
|
46
|
+
className: i.header,
|
|
46
47
|
children: [/* @__PURE__ */ n("div", {
|
|
47
|
-
className:
|
|
48
|
-
children: [
|
|
49
|
-
}), /* @__PURE__ */
|
|
50
|
-
type: "button",
|
|
48
|
+
className: t(i.title, i[`title_${e}`]),
|
|
49
|
+
children: [x[e], /* @__PURE__ */ r("span", { children: s ?? e })]
|
|
50
|
+
}), /* @__PURE__ */ r(b, {
|
|
51
51
|
"aria-label": "close",
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
color: "inherit",
|
|
53
|
+
sx: { p: "2px" },
|
|
54
|
+
onClick: () => d(a),
|
|
55
|
+
children: /* @__PURE__ */ r(p, {
|
|
55
56
|
width: 20,
|
|
56
57
|
height: 20,
|
|
57
58
|
color: "#49525F"
|
|
58
59
|
})
|
|
59
60
|
})]
|
|
60
61
|
}),
|
|
61
|
-
/* @__PURE__ */
|
|
62
|
-
className:
|
|
63
|
-
children:
|
|
62
|
+
/* @__PURE__ */ r("div", {
|
|
63
|
+
className: t(i.message, i[`message_${e}`]),
|
|
64
|
+
children: m
|
|
64
65
|
}),
|
|
65
|
-
|
|
66
|
+
o ? /* @__PURE__ */ r("div", { children: typeof o == "function" ? o(a) : o }) : null
|
|
66
67
|
]
|
|
67
68
|
})
|
|
68
69
|
});
|
|
69
70
|
});
|
|
70
71
|
export {
|
|
71
|
-
|
|
72
|
+
B as StyledDefaultSnackbar
|
|
72
73
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
var
|
|
2
|
-
container:
|
|
3
|
-
header:
|
|
1
|
+
var e = "_container_1e4wt_1", _ = "_header_1e4wt_13", r = "_title_1e4wt_19", a = "_message_1e4wt_28", t = "_info_1e4wt_36", s = "_error_1e4wt_41", i = "_success_1e4wt_46", n = "_warning_1e4wt_51", w = "_title_info_1e4wt_57", v = "_title_error_1e4wt_61", g = "_title_success_1e4wt_65", o = "_title_warning_1e4wt_69", c = "_message_info_1e4wt_74", l = "_message_error_1e4wt_78", m = "_message_success_1e4wt_82", u = "_message_warning_1e4wt_86", f = {
|
|
2
|
+
container: e,
|
|
3
|
+
header: _,
|
|
4
4
|
title: r,
|
|
5
5
|
message: a,
|
|
6
|
-
info:
|
|
6
|
+
info: t,
|
|
7
7
|
error: s,
|
|
8
|
-
success:
|
|
9
|
-
warning:
|
|
10
|
-
title_info:
|
|
11
|
-
title_error:
|
|
8
|
+
success: i,
|
|
9
|
+
warning: n,
|
|
10
|
+
title_info: w,
|
|
11
|
+
title_error: v,
|
|
12
12
|
title_success: g,
|
|
13
13
|
title_warning: o,
|
|
14
14
|
message_info: c,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
var _ = "
|
|
2
|
-
"asma-ui-core-button": "_asma-ui-core-
|
|
1
|
+
var _ = "_contained_654yh_6", t = "_common_654yh_6", a = "_medium_654yh_45", e = "_small_654yh_50", r = "_large_654yh_55", o = "_error_654yh_65", y = "_outlined_654yh_124", h = "_text_654yh_242", m = "_textGray_654yh_358", l = "_textWhite_654yh_416", u = {
|
|
2
|
+
"asma-ui-core-button": "_asma-ui-core-button_654yh_1",
|
|
3
3
|
contained: _,
|
|
4
4
|
common: t,
|
|
5
5
|
medium: a,
|
|
6
6
|
small: e,
|
|
7
|
-
large:
|
|
8
|
-
error:
|
|
9
|
-
outlined:
|
|
10
|
-
text:
|
|
11
|
-
textGray:
|
|
7
|
+
large: r,
|
|
8
|
+
error: o,
|
|
9
|
+
outlined: y,
|
|
10
|
+
text: h,
|
|
11
|
+
textGray: m,
|
|
12
12
|
textWhite: l
|
|
13
13
|
};
|
|
14
14
|
export {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Checkbox as r } from "@mui/material";
|
|
2
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
3
|
+
var c = ({ dataTest: t, ...o }) => /* @__PURE__ */ i(r, {
|
|
4
|
+
...o,
|
|
5
|
+
"data-testid": t,
|
|
6
|
+
sx: {
|
|
7
|
+
...o.sx,
|
|
8
|
+
"&.MuiCheckbox-root": { color: "var(--colors-delta-500) !important" },
|
|
9
|
+
"&.MuiCheckbox-root.Mui-checked": { color: "var(--colors-gama-500) !important" },
|
|
10
|
+
"&.MuiCheckbox-root.MuiCheckbox-indeterminate": { color: "var(--colors-gama-500) !important" },
|
|
11
|
+
"&.MuiCheckbox-root.Mui-disabled": { color: "var(--colors-delta-200) !important" },
|
|
12
|
+
"&.MuiCheckbox-root .PrivateSwitchBase-input": {
|
|
13
|
+
height: "100% !important",
|
|
14
|
+
width: "100% !important"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
export {
|
|
19
|
+
c as StyledCheckbox
|
|
20
|
+
};
|