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,33 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
children: [b, !w && /* @__PURE__ */ O("span", {
|
|
25
|
-
className: A("absolute z-[1] box-border flex flex-row flex-wrap content-center items-center justify-center whitespace-nowrap font-roboto font-medium leading-none", L[`${v}-${S}`], r ? "h-[6px] w-[6px] min-w-[6px] rounded-[3px] p-0" : d === "small" ? "h-[16px] w-max min-w-[16px] rounded-[10px] px-[4px] text-[0.75rem]" : "h-[20px] min-w-[20px] rounded-[10px] px-[6px] text-[0.75rem]", i[p] ?? i.default, h),
|
|
26
|
-
style: y,
|
|
27
|
-
children: _
|
|
28
|
-
})]
|
|
1
|
+
import { Badge as t } from "@mui/material";
|
|
2
|
+
import { jsx as g } from "react/jsx-runtime";
|
|
3
|
+
var x = ({ color: r = "primary", dataTest: a, size: e = "medium", sx: d, ...o }) => {
|
|
4
|
+
const i = d?.["& .MuiBadge-badge"];
|
|
5
|
+
return /* @__PURE__ */ g(t, {
|
|
6
|
+
color: r,
|
|
7
|
+
"data-testid": a,
|
|
8
|
+
...o,
|
|
9
|
+
sx: {
|
|
10
|
+
"& .MuiBadge-colorPrimary": {
|
|
11
|
+
backgroundColor: "#D9F256",
|
|
12
|
+
color: "#0A3D3D",
|
|
13
|
+
border: "1px solid #C1E600"
|
|
14
|
+
},
|
|
15
|
+
...d,
|
|
16
|
+
...e === "small" ? { "& .MuiBadge-badge": {
|
|
17
|
+
minWidth: "16px",
|
|
18
|
+
height: "16px",
|
|
19
|
+
width: "max-content",
|
|
20
|
+
padding: "0 4px",
|
|
21
|
+
...i
|
|
22
|
+
} } : {}
|
|
23
|
+
}
|
|
29
24
|
});
|
|
30
25
|
};
|
|
31
26
|
export {
|
|
32
|
-
|
|
27
|
+
x as StyledBadge
|
|
33
28
|
};
|
|
@@ -1,47 +1,62 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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
|
-
|
|
1
|
+
import { CloseIcon as t } from "../../icons/close-icon/CloseIcon.js";
|
|
2
|
+
import { forwardRef as c } from "react";
|
|
3
|
+
import { Chip as s } from "@mui/material";
|
|
4
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
5
|
+
var m = c(({ dataTest: r, readOnly: o, onDelete: l, ...a }, d) => /* @__PURE__ */ e(s, {
|
|
6
|
+
...a,
|
|
7
|
+
ref: d,
|
|
8
|
+
"data-testid": r,
|
|
9
|
+
deleteIcon: o ? void 0 : /* @__PURE__ */ e(t, {
|
|
10
|
+
"data-testid": `${r}-delete`,
|
|
11
|
+
height: 18,
|
|
12
|
+
width: 18,
|
|
13
|
+
className: "min-w-[18px]"
|
|
14
|
+
}),
|
|
15
|
+
onDelete: o ? void 0 : l,
|
|
16
|
+
sx: {
|
|
17
|
+
border: "1px solid",
|
|
18
|
+
backgroundColor: "white",
|
|
19
|
+
borderColor: "var(--colors-delta-300)",
|
|
20
|
+
color: "var(--colors-delta-800)",
|
|
21
|
+
fontSize: "var(--font-size-body-base)",
|
|
22
|
+
...o ? {
|
|
23
|
+
pointerEvents: "none",
|
|
24
|
+
"&:hover": {
|
|
25
|
+
borderColor: "var(--colors-delta-300)",
|
|
26
|
+
backgroundColor: "white"
|
|
27
|
+
}
|
|
28
|
+
} : {
|
|
29
|
+
"&:hover, &[data-hovered]": {
|
|
30
|
+
borderColor: "var(--colors-gama-200)",
|
|
31
|
+
backgroundColor: "var(--colors-gama-50)"
|
|
32
|
+
},
|
|
33
|
+
"&:focus, &[data-focus]": {
|
|
34
|
+
outline: "none",
|
|
35
|
+
borderColor: "var(--colors-gama-400)",
|
|
36
|
+
backgroundColor: "var(--colors-gama-50)",
|
|
37
|
+
boxShadow: "0 0 0 1px inset var(--colors-gama-400)"
|
|
38
|
+
},
|
|
39
|
+
"&:active": {
|
|
40
|
+
borderColor: "var(--colors-gama-400)",
|
|
41
|
+
backgroundColor: "var(--colors-gama-50)",
|
|
42
|
+
boxShadow: "0 0 0 2px inset var(--colors-gama-400)"
|
|
43
|
+
},
|
|
44
|
+
"& .MuiChip-deleteIcon": {
|
|
45
|
+
border: "1px solid",
|
|
46
|
+
borderColor: "var(--colors-delta-100)",
|
|
47
|
+
color: "var(--colors-delta-700)",
|
|
48
|
+
backgroundColor: "var(--colors-delta-50)",
|
|
49
|
+
borderRadius: "50%",
|
|
50
|
+
"&:hover": {
|
|
51
|
+
borderColor: "var(--colors-delta-100)",
|
|
52
|
+
backgroundColor: "var(--colors-delta-50)",
|
|
53
|
+
color: "var(--colors-delta-700)"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
...a.sx
|
|
58
|
+
}
|
|
59
|
+
}));
|
|
45
60
|
export {
|
|
46
|
-
|
|
61
|
+
m as StyledChip
|
|
47
62
|
};
|
|
@@ -1,41 +1,47 @@
|
|
|
1
|
-
import { StyledChip as
|
|
2
|
-
import { StyledCheckbox as
|
|
3
|
-
import { StyledRadio as
|
|
4
|
-
import { forwardRef as
|
|
5
|
-
import { jsx as
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
return /* @__PURE__ */
|
|
13
|
-
ref:
|
|
1
|
+
import { StyledChip as v } from "../chip/StyledChip.js";
|
|
2
|
+
import { StyledCheckbox as b } from "../../inputs/checkbox/StyledCheckbox.js";
|
|
3
|
+
import { StyledRadio as m } from "../../inputs/radio-button/StyledRadio.js";
|
|
4
|
+
import { forwardRef as u } from "react";
|
|
5
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
6
|
+
var S = u(({ type: i = "checkbox", checked: a, size: c = "small", ...o }, n) => {
|
|
7
|
+
const r = i === "checkbox", s = r ? b : m, d = !o.readOnly && !r && a, l = {
|
|
8
|
+
borderColor: "var(--colors-gama-300)",
|
|
9
|
+
backgroundColor: "var(--colors-gama-25)",
|
|
10
|
+
boxShadow: "0 0 0 1px inset var(--colors-gama-300)"
|
|
11
|
+
}, t = o.ariaLabel ?? (typeof o.label == "string" ? o.label : void 0);
|
|
12
|
+
return /* @__PURE__ */ e(v, {
|
|
13
|
+
ref: n,
|
|
14
14
|
"aria-label": t,
|
|
15
|
-
avatar:
|
|
16
|
-
dataTest:
|
|
15
|
+
avatar: /* @__PURE__ */ e(s, {
|
|
16
|
+
dataTest: o.dataTest,
|
|
17
17
|
disableRipple: !0,
|
|
18
|
-
checked:
|
|
19
|
-
size:
|
|
20
|
-
|
|
21
|
-
"aria-label": t
|
|
22
|
-
className: "pointer-events-none"
|
|
23
|
-
}) : /* @__PURE__ */ o(b, {
|
|
24
|
-
dataTest: a.dataTest,
|
|
25
|
-
checked: e,
|
|
26
|
-
size: l,
|
|
27
|
-
"aria-label": t,
|
|
28
|
-
className: "pointer-events-none"
|
|
18
|
+
checked: a,
|
|
19
|
+
size: c,
|
|
20
|
+
sx: { pointerEvents: "none" },
|
|
21
|
+
slotProps: { input: { "aria-label": t } }
|
|
29
22
|
}),
|
|
30
23
|
clickable: !0,
|
|
31
24
|
tabIndex: 0,
|
|
32
|
-
...
|
|
33
|
-
sx:
|
|
34
|
-
...
|
|
35
|
-
|
|
36
|
-
|
|
25
|
+
...o,
|
|
26
|
+
sx: {
|
|
27
|
+
...d && {
|
|
28
|
+
outline: "none",
|
|
29
|
+
borderColor: "var(--colors-gama-400)",
|
|
30
|
+
boxShadow: "0 0 0 1px inset var(--colors-gama-400)",
|
|
31
|
+
backgroundColor: "var(--colors-gama-50)",
|
|
32
|
+
"&:hover": l
|
|
33
|
+
},
|
|
34
|
+
...a && { "& .MuiChip-avatar": { "& .MuiSvgIcon-root": { color: "var(--colors-gama-500)" } } },
|
|
35
|
+
...o.readOnly && { "& .MuiChip-avatar": {
|
|
36
|
+
"& .MuiSvgIcon-root": { color: "var(--colors-delta-500)" },
|
|
37
|
+
"& .MuiCheckbox-root, & .MuiRadio-root": { color: "var(--colors-delta-500)" },
|
|
38
|
+
"& .Mui-checked": { color: "var(--colors-delta-500)" }
|
|
39
|
+
} },
|
|
40
|
+
"&:focus:hover": l,
|
|
41
|
+
...o.sx
|
|
42
|
+
}
|
|
37
43
|
});
|
|
38
44
|
});
|
|
39
45
|
export {
|
|
40
|
-
|
|
46
|
+
S as StyledInteractiveChip
|
|
41
47
|
};
|
|
@@ -1,54 +1,37 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
move: !1
|
|
28
|
-
}),
|
|
29
|
-
L(e, { enabled: !r && !h }),
|
|
30
|
-
G(e),
|
|
31
|
-
Q(e, { role: "tooltip" })
|
|
32
|
-
]), f = j(t, E({
|
|
33
|
-
ref: K([p.setReference, t.ref]),
|
|
34
|
-
...t.props
|
|
35
|
-
}));
|
|
36
|
-
return o == null || o === "" ? f : /* @__PURE__ */ m(I, { children: [f, a && /* @__PURE__ */ d(N, { children: /* @__PURE__ */ m("div", {
|
|
37
|
-
ref: p.setFloating,
|
|
38
|
-
style: {
|
|
39
|
-
..._,
|
|
40
|
-
...n?.tooltip?.style,
|
|
41
|
-
...T(n?.tooltip?.sx)
|
|
1
|
+
import { Tooltip as i } from "@mui/material";
|
|
2
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
3
|
+
import { mergeSlotProps as r } from "@mui/material/utils";
|
|
4
|
+
import l from "@mui/material/Fade";
|
|
5
|
+
var s = {
|
|
6
|
+
borderRadius: "3px",
|
|
7
|
+
"& .MuiTooltip-arrow": { color: "#363E4A" },
|
|
8
|
+
color: "white",
|
|
9
|
+
boxShadow: "0px 1px 4px 0px rgba(0, 0, 0, 0.25)",
|
|
10
|
+
display: "flex",
|
|
11
|
+
padding: "4px 8px",
|
|
12
|
+
alignItems: "center",
|
|
13
|
+
fontSize: "var(--font-size-body-sm)",
|
|
14
|
+
lineHeight: "var(--line-height-body-sm)",
|
|
15
|
+
letterSpacing: "0.24px",
|
|
16
|
+
bgcolor: "#363E4A",
|
|
17
|
+
wordBreak: "break-word"
|
|
18
|
+
}, d = (e) => {
|
|
19
|
+
const { slotProps: o, ...t } = e;
|
|
20
|
+
return /* @__PURE__ */ p(i, {
|
|
21
|
+
enterDelay: 500,
|
|
22
|
+
placement: "top",
|
|
23
|
+
...t,
|
|
24
|
+
slots: {
|
|
25
|
+
transition: l,
|
|
26
|
+
...t.slots
|
|
42
27
|
},
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
})]
|
|
50
|
-
}) })] });
|
|
28
|
+
slotProps: {
|
|
29
|
+
...o,
|
|
30
|
+
transition: r(o?.transition, { timeout: 300 }),
|
|
31
|
+
tooltip: r(o?.tooltip, { sx: s })
|
|
32
|
+
}
|
|
33
|
+
});
|
|
51
34
|
};
|
|
52
35
|
export {
|
|
53
|
-
|
|
36
|
+
d as StyledTooltip
|
|
54
37
|
};
|
|
@@ -1,64 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
var k = {
|
|
5
|
-
h1: "h1",
|
|
6
|
-
h2: "h2",
|
|
7
|
-
h3: "h3",
|
|
8
|
-
h4: "h4",
|
|
9
|
-
h5: "h5",
|
|
10
|
-
h6: "h6",
|
|
11
|
-
subtitle1: "h6",
|
|
12
|
-
subtitle2: "h6",
|
|
13
|
-
body1: "p",
|
|
14
|
-
body2: "p",
|
|
15
|
-
inherit: "p"
|
|
16
|
-
}, u = {
|
|
17
|
-
h1: "text-[6rem] font-light leading-[1.167] tracking-[-0.01562em]",
|
|
18
|
-
h2: "text-[3.75rem] font-light leading-[1.2] tracking-[-0.00833em]",
|
|
19
|
-
h3: "text-[3rem] font-normal leading-[1.167] tracking-normal",
|
|
20
|
-
h4: "text-[2.125rem] font-normal leading-[1.235] tracking-[0.00735em]",
|
|
21
|
-
h5: "text-[1.5rem] font-normal leading-[1.334] tracking-normal",
|
|
22
|
-
h6: "text-[1.25rem] font-medium leading-[1.6] tracking-[0.0075em]",
|
|
23
|
-
subtitle1: "text-[1rem] font-normal leading-[1.75] tracking-[0.00938em]",
|
|
24
|
-
subtitle2: "text-[0.875rem] font-medium leading-[1.57] tracking-[0.00714em]",
|
|
25
|
-
body1: "text-[1rem] font-normal leading-[1.5] tracking-[0.00938em]",
|
|
26
|
-
body2: "text-[0.875rem] font-normal leading-[1.43] tracking-[0.01071em]",
|
|
27
|
-
button: "text-[0.875rem] font-medium leading-[1.75] tracking-[0.02857em] uppercase",
|
|
28
|
-
caption: "text-[0.75rem] font-normal leading-[1.66] tracking-[0.03333em]",
|
|
29
|
-
overline: "text-[0.75rem] font-normal leading-[2.66] tracking-[0.08333em] uppercase",
|
|
30
|
-
inherit: "text-inherit font-[inherit] leading-[inherit] tracking-[inherit]"
|
|
31
|
-
}, v = {
|
|
32
|
-
inherit: "inherit",
|
|
33
|
-
initial: "initial",
|
|
34
|
-
"text.primary": "rgba(0, 0, 0, 0.87)",
|
|
35
|
-
"text.secondary": "rgba(0, 0, 0, 0.6)",
|
|
36
|
-
"text.disabled": "rgba(0, 0, 0, 0.38)",
|
|
37
|
-
primary: "#1976d2",
|
|
38
|
-
"primary.main": "#1976d2",
|
|
39
|
-
secondary: "#9c27b0",
|
|
40
|
-
"secondary.main": "#9c27b0",
|
|
41
|
-
error: "#d32f2f",
|
|
42
|
-
"error.main": "#d32f2f",
|
|
43
|
-
warning: "#ed6c02",
|
|
44
|
-
"warning.main": "#ed6c02",
|
|
45
|
-
info: "#0288d1",
|
|
46
|
-
"info.main": "#0288d1",
|
|
47
|
-
success: "#2e7d32",
|
|
48
|
-
"success.main": "#2e7d32"
|
|
49
|
-
}, C = (i) => {
|
|
50
|
-
const { variant: e = "body1", variantMapping: a, align: n, noWrap: o, gutterBottom: m, color: t, component: l, className: d, sx: c, style: g, classes: A, children: s, ...h } = i, f = l ?? a?.[e] ?? k[e] ?? "span", r = t ? v[t] ?? t : void 0, p = {
|
|
51
|
-
...n ? { textAlign: n } : {},
|
|
52
|
-
...r ? { color: r } : {},
|
|
53
|
-
...x(c),
|
|
54
|
-
...g
|
|
55
|
-
};
|
|
56
|
-
return y(f, {
|
|
57
|
-
className: b("m-0 font-roboto", u[e], o && "overflow-hidden text-ellipsis whitespace-nowrap", m && "mb-[0.35em]", d),
|
|
58
|
-
style: p,
|
|
59
|
-
...h
|
|
60
|
-
}, s);
|
|
61
|
-
};
|
|
1
|
+
import { Typography as o } from "@mui/material";
|
|
2
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
3
|
+
var t = (r) => /* @__PURE__ */ p(o, { ...r });
|
|
62
4
|
export {
|
|
63
|
-
|
|
5
|
+
t as StyledTypography
|
|
64
6
|
};
|
|
@@ -1,78 +1,58 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
md: 900,
|
|
13
|
-
lg: 1200,
|
|
14
|
-
xl: 1536
|
|
15
|
-
}, O = ({ open: o, onClose: r, children: h, dataTest: a, maxWidth: i = "sm", fullWidth: y, fullScreen: g, scroll: w = "paper", disableEscapeKeyDown: v, className: b, style: D, sx: N, classes: k, PaperProps: C, slotProps: S, onCloseText: j, showCloseIcon: d = !0, dialogLabel: n, dialogTitle: s, dialogHeaderNode: M }) => {
|
|
16
|
-
const _ = z(), c = W(null), f = _ ? !0 : g;
|
|
17
|
-
P(() => {
|
|
18
|
-
const e = c.current;
|
|
19
|
-
e && (o && !e.open ? e.showModal() : !o && e.open && e.close());
|
|
20
|
-
}, [o]);
|
|
21
|
-
const m = {
|
|
22
|
-
...C,
|
|
23
|
-
...S?.paper
|
|
24
|
-
}, x = i === !1 ? void 0 : X[i];
|
|
25
|
-
return /* @__PURE__ */ t("dialog", {
|
|
26
|
-
ref: c,
|
|
27
|
-
"data-testid": a,
|
|
28
|
-
"aria-label": a,
|
|
29
|
-
onCancel: (e) => {
|
|
30
|
-
e.preventDefault(), v || r?.(e, "escapeKeyDown");
|
|
31
|
-
},
|
|
32
|
-
onClick: (e) => {
|
|
33
|
-
e.target === c.current && r?.(e, "backdropClick");
|
|
34
|
-
},
|
|
35
|
-
className: p(K.StyledDialog, "m-auto max-h-[calc(100%-64px)] overflow-hidden rounded-2xl border-0 bg-white p-0 text-delta-800 shadow-xl", f ? "h-full max-h-full w-full max-w-full rounded-none" : p("w-[calc(100%-64px)]", y ? "w-[calc(100%-64px)]" : "w-auto"), w === "body" ? "overflow-y-auto" : "open:flex open:flex-col", b, m.className, k?.paper),
|
|
1
|
+
import { CloseIcon as p } from "../../icons/close-icon/CloseIcon.js";
|
|
2
|
+
import { StyledButton as f } from "../../inputs/button/StyledButton.js";
|
|
3
|
+
import e from "./StyledDialog.module.js";
|
|
4
|
+
import { useMobileMediaQuery as h } from "../../../hooks/useMediaQuery.hook.js";
|
|
5
|
+
import { Dialog as u } from "@mui/material";
|
|
6
|
+
import { jsx as i, jsxs as o } from "react/jsx-runtime";
|
|
7
|
+
var b = ({ onCloseText: s, children: n, dataTest: d, showCloseIcon: a = !0, dialogLabel: r, dialogTitle: t, dialogHeaderNode: c, ...l }) => {
|
|
8
|
+
const m = h();
|
|
9
|
+
return /* @__PURE__ */ o(u, {
|
|
10
|
+
"data-testid": d,
|
|
11
|
+
"aria-label": d,
|
|
36
12
|
style: {
|
|
37
13
|
zIndex: 999,
|
|
38
|
-
...
|
|
39
|
-
...u(N),
|
|
40
|
-
...u(m.sx),
|
|
41
|
-
...D
|
|
14
|
+
...l.style
|
|
42
15
|
},
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
16
|
+
fullScreen: m ? !0 : l.fullScreen,
|
|
17
|
+
...l,
|
|
18
|
+
children: [/* @__PURE__ */ i("div", {
|
|
19
|
+
className: e["styled-dialog-root"],
|
|
20
|
+
children: r || t || a ? /* @__PURE__ */ o("div", {
|
|
21
|
+
className: e["styled-top-header"],
|
|
22
|
+
children: [/* @__PURE__ */ o("div", {
|
|
23
|
+
className: e["styled-dialog-info"],
|
|
24
|
+
children: [r && /* @__PURE__ */ i("div", {
|
|
25
|
+
className: e["styled-dialog-label"],
|
|
26
|
+
children: r
|
|
27
|
+
}), t && /* @__PURE__ */ i("div", {
|
|
28
|
+
className: e["styled-dialog-title"],
|
|
29
|
+
children: t
|
|
30
|
+
})]
|
|
31
|
+
}), a && /* @__PURE__ */ o("div", {
|
|
32
|
+
className: e["styled-dialog-close"],
|
|
33
|
+
children: [c, /* @__PURE__ */ i(f, {
|
|
34
|
+
dataTest: `close-button-${d}`,
|
|
35
|
+
variant: "textGray",
|
|
36
|
+
size: "small",
|
|
37
|
+
endIcon: /* @__PURE__ */ i(p, {
|
|
38
|
+
width: 20,
|
|
39
|
+
height: 20
|
|
40
|
+
}),
|
|
41
|
+
onClick: (y) => {
|
|
42
|
+
l.onClose && l.onClose(y, "escapeKeyDown");
|
|
43
|
+
},
|
|
44
|
+
style: {
|
|
45
|
+
color: "var(--colors-grey-800)",
|
|
46
|
+
paddingRight: "6px",
|
|
47
|
+
paddingLeft: "6px"
|
|
48
|
+
},
|
|
49
|
+
children: s
|
|
50
|
+
})]
|
|
71
51
|
})]
|
|
72
|
-
})
|
|
73
|
-
}),
|
|
52
|
+
}) : null
|
|
53
|
+
}), n]
|
|
74
54
|
});
|
|
75
55
|
};
|
|
76
56
|
export {
|
|
77
|
-
|
|
57
|
+
b as StyledDialog
|
|
78
58
|
};
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
var l =
|
|
1
|
+
var l = {
|
|
2
|
+
"styled-dialog-root": "_styled-dialog-root_1st3i_1",
|
|
3
|
+
"styled-top-header": "_styled-top-header_1st3i_6",
|
|
4
|
+
"styled-dialog-close": "_styled-dialog-close_1st3i_13",
|
|
5
|
+
"styled-dialog-info": "_styled-dialog-info_1st3i_20",
|
|
6
|
+
"styled-dialog-label": "_styled-dialog-label_1st3i_27",
|
|
7
|
+
"styled-dialog-title": "_styled-dialog-title_1st3i_37"
|
|
8
|
+
};
|
|
2
9
|
export {
|
|
3
|
-
|
|
10
|
+
l as default
|
|
4
11
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import { cn as l } from "../../../helpers/cn.js";
|
|
2
|
+
import o from "./StyledDialogActions.module.js";
|
|
3
|
+
import e from "react";
|
|
4
|
+
import { DialogActions as r } from "@mui/material";
|
|
5
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
6
|
+
var f = (t) => /* @__PURE__ */ i(r, {
|
|
7
|
+
...t,
|
|
6
8
|
"data-testid": "styled-dialog-actions",
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
...i
|
|
9
|
+
classes: {
|
|
10
|
+
...t.classes,
|
|
11
|
+
root: o["styled-dialog-actions-root"]
|
|
11
12
|
},
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
children: r
|
|
13
|
+
children: /* @__PURE__ */ i("div", {
|
|
14
|
+
className: l(o["styled-dialog-actions"], t.className),
|
|
15
|
+
children: e.Children.map(t.children, (a) => /* @__PURE__ */ i("div", {
|
|
16
|
+
className: o["action-button-wrapper"],
|
|
17
|
+
children: a
|
|
18
18
|
}))
|
|
19
19
|
})
|
|
20
20
|
});
|
|
21
21
|
export {
|
|
22
|
-
|
|
22
|
+
f as StyledDialogActions
|
|
23
23
|
};
|