asma-ui-core 3.41.0 → 3.42.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/asma-ui-core.css +1 -1
- package/dist/components/data-display/badge/StyledBadge.js +24 -29
- package/dist/components/data-display/chip/StyledChip.js +60 -45
- package/dist/components/data-display/interactive-chip/StyledInteractiveChip.js +38 -32
- package/dist/components/data-display/tooltip/StyledTooltip.js +33 -50
- package/dist/components/data-display/typography/StyledTypography.js +4 -62
- package/dist/components/feedback/dialog/StyledDialog.js +50 -70
- package/dist/components/feedback/dialog/StyledDialog.module.js +9 -2
- package/dist/components/feedback/dialog/StyledDialogActions.js +16 -16
- package/dist/components/feedback/dialog/StyledDialogActions.module.js +8 -0
- package/dist/components/feedback/dialog/StyledDialogContent.js +14 -17
- package/dist/components/feedback/dialog/StyledDialogContent.module.js +4 -0
- package/dist/components/feedback/dialog/StyledDialogTitle.js +13 -18
- package/dist/components/feedback/dialog/StyledDialogTitle.module.js +4 -0
- package/dist/components/feedback/minimizable-dialog/MinimizableDialog.js +57 -56
- package/dist/components/feedback/snack-bar/StyledAlert.js +14 -72
- package/dist/components/feedback/snack-bar/StyledSnackbar.js +8 -34
- package/dist/components/feedback/snack-bar/components/StyledDefaultSnackbar.js +34 -33
- package/dist/components/inputs/checkbox/StyledCheckbox.js +20 -0
- package/dist/components/inputs/checkbox/base-ui/StyledCheckbox.js +58 -55
- package/dist/components/inputs/checkbox/base-ui/StyledCheckbox.module.js +12 -12
- package/dist/components/inputs/dynamic-select/components/DynamicInteractiveChipGroup.js +1 -1
- package/dist/components/inputs/dynamic-select/components/DynamicSelectAutocomplete.js +1 -1
- package/dist/components/inputs/input-field/StyledInputField.js +81 -104
- package/dist/components/inputs/radio-button/StyledRadio.js +17 -0
- package/dist/components/inputs/radio-button/base-ui/StyledRadio.js +29 -40
- package/dist/components/inputs/radio-button/base-ui/StyledRadio.module.js +10 -10
- package/dist/components/inputs/radio-button/base-ui/StyledRadioGroup.js +23 -35
- package/dist/components/inputs/select/StyledSelect.js +45 -124
- package/dist/components/inputs/select/StyledSelectItem.js +23 -19
- package/dist/components/inputs/select-autocomplete/StyledSelectAutocomplete.js +151 -181
- package/dist/components/inputs/slider/StyledSlider.js +52 -78
- package/dist/components/inputs/switch/base-ui/StyledSwitch.js +39 -44
- package/dist/components/miscellaneous/StyledFormControl.js +21 -39
- package/dist/components/miscellaneous/StyledFormControlLabel.js +16 -27
- package/dist/components/miscellaneous/StyledFormGroup.js +4 -16
- package/dist/components/miscellaneous/StyledFormHelperText.js +4 -12
- package/dist/components/miscellaneous/StyledInputLabel.js +4 -20
- package/dist/components/navigation/drawer/StyledDrawer.js +4 -42
- package/dist/components/navigation/listbox/Listbox.js +7 -7
- package/dist/components/navigation/menu/StyledMenu.js +11 -28
- package/dist/components/navigation/menu/StyledMenuItem.js +18 -16
- package/dist/components/navigation/menu/StyledMenuList.js +4 -32
- package/dist/components/navigation/tabs/StyledTab.js +13 -25
- package/dist/components/navigation/tabs/StyledTabs.js +64 -112
- package/dist/components/utils/accordion/base-ui/StyledAccordion.js +21 -28
- package/dist/components/utils/accordion/base-ui/StyledAccordion.module.js +7 -7
- package/dist/components/utils/accordion/base-ui/StyledAccordionDetails.js +14 -28
- package/dist/components/utils/accordion/base-ui/StyledAccordionSummary.js +27 -31
- package/dist/components/utils/popover/StyledPopover.js +15 -44
- package/dist/datetime/components/date-picker/StyledDatePicker.js +6 -6
- package/dist/datetime/components/date-picker/components/BaseDatePickerInput.js +1 -1
- package/dist/datetime/components/date-picker/components/HelperTextWithTooltip.js +6 -6
- package/dist/datetime/components/date-picker/components/StyledCalendarPicker.js +11 -11
- package/dist/datetime/components/date-picker/components/StyledCalendarPickerFooter.js +14 -13
- package/dist/datetime/components/date-picker/components/StyledCalendarPickerSelectMonth.js +14 -14
- package/dist/datetime/components/date-picker/components/StyledCalendarPickerSelectYear.js +6 -6
- package/dist/datetime/components/date-picker/components/StyledDayPicker.js +5 -4
- package/dist/datetime/components/date-picker/hooks/useDatePickerMask.js +4 -4
- package/dist/datetime/components/time-picker/StyledTimePicker.js +25 -25
- package/dist/datetime/components/time-picker/TimePickerInput.js +16 -15
- package/dist/datetime/components/time-picker/TimePickerPopper.js +19 -21
- package/dist/datetime/helpers/cn.js +5 -4
- package/dist/datetime/shared-components/ExpandIcon.js +18 -0
- package/dist/datetime/shared-components/StyledFormControl.js +23 -0
- package/dist/datetime/shared-components/StyledInputField.js +47 -0
- package/dist/datetime/shared-components/StyledSelect.js +47 -0
- package/dist/datetime/shared-components/StyledSelectItem.js +13 -0
- package/dist/datetime/shared-components/StyledTooltip.js +32 -0
- package/dist/helpers/cn.js +5 -4
- package/dist/index.js +175 -185
- package/dist/src/components/data-display/badge/StyledBadge.d.ts +2 -26
- package/dist/src/components/data-display/chip/StyledChip.d.ts +5 -39
- package/dist/src/components/data-display/interactive-chip/StyledInteractiveChip.d.ts +4 -11
- package/dist/src/components/data-display/tooltip/StyledTooltip.d.ts +2 -36
- package/dist/src/components/data-display/typography/StyledTypography.d.ts +1 -19
- package/dist/src/components/feedback/dialog/StyledDialog.d.ts +4 -50
- package/dist/src/components/feedback/dialog/StyledDialogActions.d.ts +2 -12
- package/dist/src/components/feedback/dialog/StyledDialogContent.d.ts +2 -12
- package/dist/src/components/feedback/dialog/StyledDialogTitle.d.ts +2 -10
- package/dist/src/components/feedback/snack-bar/SnackbarProvider.d.ts +1 -1
- package/dist/src/components/feedback/snack-bar/StyledAlert.d.ts +2 -24
- package/dist/src/components/feedback/snack-bar/StyledAlertSnackbar.d.ts +1 -1
- package/dist/src/components/feedback/snack-bar/StyledSnackbar.d.ts +2 -21
- package/dist/src/components/feedback/snack-bar/components/StyledDefaultSnackbar.d.ts +1 -1
- package/dist/src/components/feedback/snack-bar/components/StyledInfoSnackbar.d.ts +1 -1
- package/dist/src/components/feedback/snack-bar/components/types.d.ts +1 -1
- package/dist/src/components/inputs/checkbox/StyledCheckbox.d.ts +4 -0
- package/dist/src/components/inputs/checkbox/base-ui/StyledCheckbox.d.ts +4 -9
- package/dist/src/components/inputs/dynamic-select/types.d.ts +2 -2
- package/dist/src/components/inputs/input-field/StyledInputField.d.ts +11 -67
- package/dist/src/components/inputs/input-field/index.d.ts +1 -1
- package/dist/src/components/inputs/radio-button/StyledRadio.d.ts +4 -0
- package/dist/src/components/inputs/radio-button/StyledRadioGroup.d.ts +4 -0
- package/dist/src/components/inputs/radio-button/base-ui/StyledRadio.d.ts +5 -20
- package/dist/src/components/inputs/radio-button/base-ui/StyledRadioGroup.d.ts +7 -24
- package/dist/src/components/inputs/select/StyledSelect.d.ts +16 -39
- package/dist/src/components/inputs/select/StyledSelectItem.d.ts +2 -14
- package/dist/src/components/inputs/select/index.d.ts +1 -0
- package/dist/src/components/inputs/select-autocomplete/StyledSelectAutocomplete.d.ts +17 -88
- package/dist/src/components/inputs/slider/StyledSlider.d.ts +3 -55
- package/dist/src/components/inputs/switch/StyledSwitch.d.ts +5 -0
- package/dist/src/components/inputs/switch/base-ui/StyledSwitch.d.ts +4 -20
- package/dist/src/components/miscellaneous/StyledFormControl.d.ts +2 -22
- package/dist/src/components/miscellaneous/StyledFormControlLabel.d.ts +2 -21
- package/dist/src/components/miscellaneous/StyledFormGroup.d.ts +2 -11
- package/dist/src/components/miscellaneous/StyledFormHelperText.d.ts +2 -12
- package/dist/src/components/miscellaneous/StyledInputLabel.d.ts +2 -20
- package/dist/src/components/navigation/drawer/StyledDrawer.d.ts +2 -28
- package/dist/src/components/navigation/menu/StyledMenu.d.ts +2 -33
- package/dist/src/components/navigation/menu/StyledMenuItem.d.ts +2 -23
- package/dist/src/components/navigation/menu/StyledMenuList.d.ts +2 -16
- package/dist/src/components/navigation/menu/index.d.ts +1 -0
- package/dist/src/components/navigation/tabs/StyledTab.d.ts +3 -17
- package/dist/src/components/navigation/tabs/StyledTabs.d.ts +7 -16
- package/dist/src/components/utils/accordion/StyledAccordion.d.ts +2 -0
- package/dist/src/components/utils/accordion/StyledAccordionDetails.d.ts +2 -0
- package/dist/src/components/utils/accordion/StyledAccordionSummary.d.ts +8 -0
- package/dist/src/components/utils/accordion/base-ui/StyledAccordion.d.ts +3 -9
- package/dist/src/components/utils/accordion/base-ui/StyledAccordionDetails.d.ts +0 -5
- package/dist/src/components/utils/accordion/base-ui/StyledAccordionSummary.d.ts +4 -8
- package/dist/src/components/utils/copy-wrapper/CopyWrapper.d.ts +1 -1
- package/dist/src/components/utils/filter-menu/StyledFilterMenu.d.ts +2 -2
- package/dist/src/components/utils/popover/StyledPopover.d.ts +2 -32
- package/dist/src/datetime/components/date-picker/components/StyledCalendarPicker.d.ts +1 -1
- package/dist/src/datetime/components/date-picker/components/StyledDayPicker.d.ts +1 -1
- package/dist/src/datetime/components/date-picker/hooks/useDatePickerMask.d.ts +2 -1
- package/dist/src/datetime/components/time-picker/TimePickerInput.d.ts +1 -1
- package/dist/src/datetime/components/time-picker/TimePickerPopper.d.ts +1 -1
- package/dist/src/datetime/components/time-picker/types.d.ts +2 -1
- package/dist/src/datetime/shared-components/StyledFormControl.d.ts +2 -1
- package/dist/src/datetime/shared-components/StyledInputField.d.ts +12 -1
- package/dist/src/datetime/shared-components/StyledSelect.d.ts +16 -1
- package/dist/src/datetime/shared-components/StyledSelectItem.d.ts +2 -1
- package/dist/src/datetime/shared-components/StyledTooltip.d.ts +2 -1
- package/dist/src/index.d.ts +1 -2
- package/dist/src/table/shared-components/StyledCheckbox.d.ts +4 -7
- package/dist/src/table/shared-components/StyledMenuItem.d.ts +2 -18
- package/dist/src/table/shared-components/menu-item/index.d.ts +2 -13
- package/dist/src/table/shared-components/tooltip/index.d.ts +1 -5
- package/dist/src/table/types.d.ts +1 -1
- package/dist/table/components/Fetching.js +4 -4
- package/dist/table/components/TableRow.js +7 -7
- package/dist/table/components/TableSkeleton.js +6 -6
- package/dist/table/components/columns/action-column/components/HeaderActionMenu.js +24 -24
- package/dist/table/components/columns/action-column/components/RowActionMenu.js +25 -26
- package/dist/table/components/table-footer/TablePagination.js +24 -27
- package/dist/table/components/table-footer/TableRowCountSelect.js +27 -30
- package/dist/table/helpers/cn.js +5 -4
- package/dist/table/shared-components/StyledCheckbox.js +55 -54
- package/dist/table/shared-components/StyledCheckbox.module.js +10 -10
- package/dist/table/shared-components/StyledMenuItem.js +18 -12
- package/dist/table/shared-components/menu-item/index.js +17 -13
- package/dist/table/shared-components/tooltip/index.js +23 -4
- package/package.json +16 -9
- package/dist/components/inputs/field-styles.js +0 -6
- package/dist/components/inputs/input-field/StyledInputField.module.js +0 -4
- package/dist/components/inputs/radio-button/base-ui/RadioGroupContext.js +0 -6
- package/dist/components/inputs/slider/StyledSlider.module.js +0 -10
- package/dist/components/miscellaneous/FormControlContext.js +0 -6
- package/dist/components/mui-compat/Avatar.js +0 -29
- package/dist/components/mui-compat/ClickAwayListener.js +0 -29
- package/dist/components/mui-compat/Container.js +0 -24
- package/dist/components/mui-compat/Fade.js +0 -29
- package/dist/components/mui-compat/Fade.module.js +0 -9
- package/dist/components/mui-compat/FormLabel.js +0 -22
- package/dist/components/mui-compat/Paper.js +0 -44
- package/dist/components/mui-compat/Popper.js +0 -35
- package/dist/components/mui-compat/Skeleton.js +0 -26
- package/dist/components/mui-compat/Stack.js +0 -24
- package/dist/components/navigation/tabs/TabsContext.js +0 -6
- package/dist/components/utils/accordion/base-ui/AccordionContext.js +0 -10
- package/dist/components/utils/virtual-list/VirtualList.js +0 -45
- package/dist/helpers/arrays.js +0 -4
- package/dist/helpers/inputMask.js +0 -45
- package/dist/helpers/sx.js +0 -46
- package/dist/src/api-surface.test.d.ts +0 -1
- package/dist/src/components/inputs/field-styles.d.ts +0 -22
- package/dist/src/components/inputs/radio-button/base-ui/RadioGroupContext.d.ts +0 -10
- package/dist/src/components/miscellaneous/FormControlContext.d.ts +0 -14
- package/dist/src/components/mui-compat/Avatar.d.ts +0 -6
- package/dist/src/components/mui-compat/ClickAwayListener.d.ts +0 -19
- package/dist/src/components/mui-compat/Container.d.ts +0 -6
- package/dist/src/components/mui-compat/Fade.d.ts +0 -21
- package/dist/src/components/mui-compat/FormLabel.d.ts +0 -6
- package/dist/src/components/mui-compat/Paper.d.ts +0 -6
- package/dist/src/components/mui-compat/Popper.d.ts +0 -29
- package/dist/src/components/mui-compat/Skeleton.d.ts +0 -7
- package/dist/src/components/mui-compat/Stack.d.ts +0 -7
- package/dist/src/components/mui-compat/index.d.ts +0 -9
- package/dist/src/components/mui-compat/types.d.ts +0 -46
- package/dist/src/components/navigation/tabs/TabsContext.d.ts +0 -11
- package/dist/src/components/utils/accordion/base-ui/AccordionContext.d.ts +0 -10
- package/dist/src/components/utils/virtual-list/VirtualList.d.ts +0 -28
- package/dist/src/components/utils/virtual-list/index.d.ts +0 -1
- package/dist/src/helpers/arrays.d.ts +0 -2
- package/dist/src/helpers/arrays.test.d.ts +0 -1
- package/dist/src/helpers/inputMask.d.ts +0 -29
- package/dist/src/helpers/inputMask.test.d.ts +0 -1
- package/dist/src/helpers/sx.d.ts +0 -2
- package/dist/src/helpers/sx.test.d.ts +0 -1
|
@@ -2,10 +2,11 @@ import { ChevronLeftIcon as c } from "../../../shared-components/ChevronLeftIcon
|
|
|
2
2
|
import { ChevronRightIcon as f } from "../../../shared-components/ChevronRightIcon.js";
|
|
3
3
|
import { StyledButton as a } from "../../../shared-components/button/StyledButton.js";
|
|
4
4
|
import { jsx as t, jsxs as s } from "react/jsx-runtime";
|
|
5
|
-
import { useNavigation as
|
|
6
|
-
import { isDate as
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
import { useNavigation as v } from "react-day-picker";
|
|
6
|
+
import { isDate as y, isValid as x } from "date-fns";
|
|
7
|
+
import { compact as u, isArray as g, isObject as C } from "lodash-es";
|
|
8
|
+
var W = ({ onClose: m, isNb: l, selected: i, removeSelection: h, setMonth: e, onClear: d, required: p }) => {
|
|
9
|
+
const { nextMonth: n, previousMonth: r } = v();
|
|
9
10
|
return /* @__PURE__ */ s("div", {
|
|
10
11
|
style: {
|
|
11
12
|
marginTop: "8px",
|
|
@@ -17,12 +18,12 @@ var b = ({ onClose: m, isNb: e, selected: i, removeSelection: h, setMonth: l, on
|
|
|
17
18
|
dataTest: "",
|
|
18
19
|
variant: "text",
|
|
19
20
|
onClick: (o) => {
|
|
20
|
-
d ? d() : h(o),
|
|
21
|
+
d ? d() : h(o), e(new Date(Date.now()));
|
|
21
22
|
},
|
|
22
23
|
size: "small",
|
|
23
|
-
disabled: !!p || i === null ||
|
|
24
|
+
disabled: !!p || i === null || g(i) && i.length === 0 || y(i) && !x(i) || C(i) && !u(Object.values(i)).length,
|
|
24
25
|
style: { minWidth: "60px" },
|
|
25
|
-
children:
|
|
26
|
+
children: l ? "Nullstill" : "Clear"
|
|
26
27
|
}),
|
|
27
28
|
/* @__PURE__ */ s("div", {
|
|
28
29
|
style: {
|
|
@@ -36,7 +37,7 @@ var b = ({ onClose: m, isNb: e, selected: i, removeSelection: h, setMonth: l, on
|
|
|
36
37
|
size: "small",
|
|
37
38
|
disabled: !r,
|
|
38
39
|
onClick: () => {
|
|
39
|
-
r &&
|
|
40
|
+
r && e(r);
|
|
40
41
|
},
|
|
41
42
|
style: { minWidth: "25px" },
|
|
42
43
|
children: /* @__PURE__ */ t(c, {
|
|
@@ -48,10 +49,10 @@ var b = ({ onClose: m, isNb: e, selected: i, removeSelection: h, setMonth: l, on
|
|
|
48
49
|
dataTest: "",
|
|
49
50
|
size: "small",
|
|
50
51
|
onClick: () => {
|
|
51
|
-
|
|
52
|
+
e(new Date(Date.now()));
|
|
52
53
|
},
|
|
53
54
|
variant: "outlined",
|
|
54
|
-
children:
|
|
55
|
+
children: l ? "I dag" : "Today"
|
|
55
56
|
}),
|
|
56
57
|
/* @__PURE__ */ t(a, {
|
|
57
58
|
dataTest: "",
|
|
@@ -59,7 +60,7 @@ var b = ({ onClose: m, isNb: e, selected: i, removeSelection: h, setMonth: l, on
|
|
|
59
60
|
size: "small",
|
|
60
61
|
disabled: !n,
|
|
61
62
|
onClick: () => {
|
|
62
|
-
n &&
|
|
63
|
+
n && e(n);
|
|
63
64
|
},
|
|
64
65
|
style: { minWidth: "25px" },
|
|
65
66
|
children: /* @__PURE__ */ t(f, {
|
|
@@ -77,11 +78,11 @@ var b = ({ onClose: m, isNb: e, selected: i, removeSelection: h, setMonth: l, on
|
|
|
77
78
|
m?.(o, "backdropClick");
|
|
78
79
|
},
|
|
79
80
|
style: { minWidth: "60px" },
|
|
80
|
-
children:
|
|
81
|
+
children: l ? "Velg" : "Select"
|
|
81
82
|
})
|
|
82
83
|
]
|
|
83
84
|
});
|
|
84
85
|
};
|
|
85
86
|
export {
|
|
86
|
-
|
|
87
|
+
W as StyledCalendarPickerFooter
|
|
87
88
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { StyledFormControl as c } from "../../../shared-components/StyledFormControl.js";
|
|
2
|
+
import { StyledSelect as b } from "../../../shared-components/StyledSelect.js";
|
|
3
|
+
import { StyledSelectItem as f } from "../../../shared-components/StyledSelectItem.js";
|
|
4
4
|
import u from "./StyledCalendarPickerSelectPeriod.module.js";
|
|
5
|
-
import { jsx as
|
|
6
|
-
|
|
7
|
-
function
|
|
8
|
-
const { options: o = [], onChange:
|
|
9
|
-
return /* @__PURE__ */
|
|
5
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
6
|
+
import { capitalize as S } from "lodash-es";
|
|
7
|
+
function x(a) {
|
|
8
|
+
const { options: o = [], onChange: l, value: t, disabled: d, className: n, style: i, name: m } = a, s = a["aria-label"];
|
|
9
|
+
return /* @__PURE__ */ r(c, {
|
|
10
10
|
style: {
|
|
11
11
|
marginLeft: "-2px",
|
|
12
12
|
marginRight: "8px"
|
|
13
13
|
},
|
|
14
|
-
children: /* @__PURE__ */
|
|
14
|
+
children: /* @__PURE__ */ r(b, {
|
|
15
15
|
dataTest: "StyledCalendarPickerSelectMonth",
|
|
16
16
|
size: "small",
|
|
17
17
|
variant: "standard",
|
|
@@ -20,8 +20,8 @@ function g(r) {
|
|
|
20
20
|
disabled: d,
|
|
21
21
|
className: n,
|
|
22
22
|
style: i,
|
|
23
|
-
value:
|
|
24
|
-
onChange: (e) =>
|
|
23
|
+
value: t ?? "",
|
|
24
|
+
onChange: (e) => l?.(e),
|
|
25
25
|
MenuProps: { className: u["styled-calendar-picker-select-period-menu"] },
|
|
26
26
|
sx: {
|
|
27
27
|
"&::before": { borderBottom: "none" },
|
|
@@ -29,14 +29,14 @@ function g(r) {
|
|
|
29
29
|
"&:hover:not(.Mui-disabled, .Mui-error)::before": { borderBottom: "none" },
|
|
30
30
|
"&:focus::before": { borderBottom: "none" }
|
|
31
31
|
},
|
|
32
|
-
children: o.map((e) => /* @__PURE__ */
|
|
32
|
+
children: o.map((e) => /* @__PURE__ */ r(f, {
|
|
33
33
|
value: e.value,
|
|
34
34
|
disabled: e.disabled,
|
|
35
|
-
children:
|
|
35
|
+
children: S(e.label)
|
|
36
36
|
}, e.value))
|
|
37
37
|
})
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
40
|
export {
|
|
41
|
-
|
|
41
|
+
x as StyledCalendarPickerSelectMonth
|
|
42
42
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { StyledFormControl as o } from "../../../shared-components/StyledFormControl.js";
|
|
2
|
+
import { StyledSelect as u } from "../../../shared-components/StyledSelect.js";
|
|
3
|
+
import { StyledSelectItem as S } from "../../../shared-components/StyledSelectItem.js";
|
|
4
4
|
import y from "./StyledCalendarPickerSelectPeriod.module.js";
|
|
5
5
|
import { jsx as a } from "react/jsx-runtime";
|
|
6
6
|
function C(l) {
|
|
7
7
|
const { options: r = [], onChange: t, value: d, disabled: i, className: n, style: m, name: c } = l, s = l["aria-label"];
|
|
8
|
-
return /* @__PURE__ */ a(
|
|
8
|
+
return /* @__PURE__ */ a(o, {
|
|
9
9
|
style: {
|
|
10
10
|
width: "70px",
|
|
11
11
|
marginLeft: "5px"
|
|
12
12
|
},
|
|
13
|
-
children: /* @__PURE__ */ a(
|
|
13
|
+
children: /* @__PURE__ */ a(u, {
|
|
14
14
|
dataTest: "StyledCalendarPickerSelectYear",
|
|
15
15
|
size: "small",
|
|
16
16
|
variant: "standard",
|
|
@@ -22,7 +22,7 @@ function C(l) {
|
|
|
22
22
|
value: d ?? "",
|
|
23
23
|
onChange: (e) => t?.(e),
|
|
24
24
|
MenuProps: { className: y["styled-calendar-picker-select-period-menu"] },
|
|
25
|
-
children: r.map((e) => /* @__PURE__ */ a(
|
|
25
|
+
children: r.map((e) => /* @__PURE__ */ a(S, {
|
|
26
26
|
value: e.value,
|
|
27
27
|
disabled: e.disabled,
|
|
28
28
|
children: e.label
|
|
@@ -5,11 +5,12 @@ import { StyledCalendarPickerSelectYear as N } from "./StyledCalendarPickerSelec
|
|
|
5
5
|
import e from "./StyledCalendarPicker.module.js";
|
|
6
6
|
import { buildDisabled as Y } from "../helpers.js";
|
|
7
7
|
import { useState as F } from "react";
|
|
8
|
+
import "@mui/material";
|
|
8
9
|
import { jsx as i } from "react/jsx-runtime";
|
|
9
10
|
import { DayPicker as W } from "react-day-picker";
|
|
10
11
|
import { endOfMonth as q, startOfToday as R } from "date-fns";
|
|
11
12
|
import { enGB as T } from "date-fns/locale";
|
|
12
|
-
var
|
|
13
|
+
var Q = ({ datePickerProps: t, popoverProps: y }) => {
|
|
13
14
|
const { showOutsideDays: h = !0, locale: s = T, numberOfMonths: b, disabledDays: w, onClear: f, title: j, ...g } = t, { onClose: m } = y, [_, c] = F((t.mode === "range" ? t.selected?.from : t.selected) ?? /* @__PURE__ */ new Date()), u = s.code === "nb", v = (b ?? 1) < 2, D = Y(w, "disallowPast" in t ? t.disallowPast : void 0, "disallowFuture" in t ? t.disallowFuture : void 0, R()), S = (n) => {
|
|
14
15
|
if (!t.selected || !t.onSelect) return;
|
|
15
16
|
const o = /* @__PURE__ */ new Date(), a = {};
|
|
@@ -29,8 +30,8 @@ var K = ({ datePickerProps: t, popoverProps: y }) => {
|
|
|
29
30
|
if (c(n), !!t.onSelect && (!t.mode || t.mode === "single")) {
|
|
30
31
|
const o = t.selected;
|
|
31
32
|
if (o instanceof Date) {
|
|
32
|
-
const a = n.getFullYear(), d = n.getMonth(), l = o.getDate(),
|
|
33
|
-
r.setFullYear(a, d,
|
|
33
|
+
const a = n.getFullYear(), d = n.getMonth(), l = o.getDate(), p = q(new Date(a, d, 1)).getDate(), M = Math.min(l, p), r = new Date(o);
|
|
34
|
+
r.setFullYear(a, d, M), t.onSelect(r, r, {}, {});
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
37
|
},
|
|
@@ -105,5 +106,5 @@ var K = ({ datePickerProps: t, popoverProps: y }) => {
|
|
|
105
106
|
});
|
|
106
107
|
};
|
|
107
108
|
export {
|
|
108
|
-
|
|
109
|
+
Q as StyledDayPicker
|
|
109
110
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
var
|
|
1
|
+
import { useMask as e } from "@react-input/mask";
|
|
2
|
+
var a = () => ({ maskRef: e({
|
|
3
3
|
mask: " / / ",
|
|
4
|
-
|
|
4
|
+
replacement: { " ": /\d/ },
|
|
5
5
|
showMask: !0
|
|
6
6
|
}) });
|
|
7
7
|
export {
|
|
8
|
-
|
|
8
|
+
a as useDatePickerMask
|
|
9
9
|
};
|
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { TimePickerPopper as E } from "./TimePickerPopper.js";
|
|
4
|
-
import { getTimeFromValue as P } from "./helpers/getTimeFromValue.js";
|
|
1
|
+
import { TimePickerPopper as j } from "./TimePickerPopper.js";
|
|
2
|
+
import { getTimeFromValue as H } from "./helpers/getTimeFromValue.js";
|
|
5
3
|
import { TimePickerInput as T } from "./TimePickerInput.js";
|
|
6
4
|
import { useState as h } from "react";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
import { ClickAwayListener as D } from "@mui/material";
|
|
6
|
+
import { jsx as o, jsxs as E } from "react/jsx-runtime";
|
|
7
|
+
import { format as v, isBefore as A, isValid as B } from "date-fns";
|
|
8
|
+
import N from "material-ui-popup-state";
|
|
9
|
+
var J = (i) => {
|
|
10
|
+
const { value: a, onSelect: l, notBeforeTime: m } = i, V = a ? v(a, "HH:mm") : "", [x, s] = h(V), [w, t] = h(!1), [g, n] = h(!0), c = w ? x : V, u = (e) => !e || !m || !B(m) || !A(e, m), k = c.length === 5 ? H(c, a) : null, y = k ? u(k) : !0, P = (e) => {
|
|
11
11
|
const r = e.close;
|
|
12
12
|
r?.();
|
|
13
|
-
},
|
|
13
|
+
}, C = (e, r) => {
|
|
14
14
|
const d = e.target.value;
|
|
15
15
|
if (t(!0), s(d), d.length !== 5) {
|
|
16
16
|
n(!1);
|
|
17
17
|
return;
|
|
18
18
|
}
|
|
19
|
-
const f =
|
|
19
|
+
const f = H(d, a);
|
|
20
20
|
if (!f) {
|
|
21
|
-
|
|
21
|
+
l(void 0), n(!1);
|
|
22
22
|
return;
|
|
23
23
|
}
|
|
24
|
-
n(!0), u(f) ? (
|
|
24
|
+
n(!0), u(f) ? (l(f), t(!1), P(r)) : l(void 0);
|
|
25
25
|
}, I = (e) => {
|
|
26
26
|
if (n(!0), u(e)) {
|
|
27
|
-
|
|
27
|
+
l(e), s(e ? v(e, "HH:mm") : ""), t(!1);
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
30
|
-
|
|
30
|
+
l(void 0), s(e ? v(e, "HH:mm") : ""), t(!0);
|
|
31
31
|
}, L = () => {
|
|
32
|
-
|
|
32
|
+
l(void 0), s(""), t(!1), n(!0);
|
|
33
33
|
};
|
|
34
|
-
return /* @__PURE__ */ o(
|
|
34
|
+
return /* @__PURE__ */ o(N, {
|
|
35
35
|
variant: "popper",
|
|
36
36
|
popupId: "time-picker-popper",
|
|
37
|
-
children: (e) =>
|
|
38
|
-
...
|
|
37
|
+
children: (e) => i.disabled || i.readOnly ? /* @__PURE__ */ o(T, {
|
|
38
|
+
...i,
|
|
39
39
|
popupState: e,
|
|
40
40
|
localValue: c,
|
|
41
41
|
isValidTime: g,
|
|
42
42
|
isValidEndTime: y,
|
|
43
|
-
handleChange: (r) =>
|
|
43
|
+
handleChange: (r) => C(r, e)
|
|
44
44
|
}) : /* @__PURE__ */ o(D, {
|
|
45
45
|
mouseEvent: "onMouseDown",
|
|
46
|
-
onClickAway: () =>
|
|
47
|
-
children: /* @__PURE__ */
|
|
46
|
+
onClickAway: () => P(e),
|
|
47
|
+
children: /* @__PURE__ */ E("div", {
|
|
48
48
|
className: "relative h-auto w-auto",
|
|
49
49
|
children: [/* @__PURE__ */ o("div", {
|
|
50
50
|
className: "m-0 flex h-fit items-center justify-center p-0",
|
|
51
51
|
children: /* @__PURE__ */ o(T, {
|
|
52
|
-
...
|
|
52
|
+
...i,
|
|
53
53
|
popupState: e,
|
|
54
54
|
localValue: c,
|
|
55
55
|
isValidTime: g,
|
|
56
56
|
isValidEndTime: y,
|
|
57
|
-
handleChange: (r) =>
|
|
57
|
+
handleChange: (r) => C(r, e)
|
|
58
58
|
})
|
|
59
|
-
}), e.isOpen && /* @__PURE__ */ o(
|
|
60
|
-
...
|
|
59
|
+
}), e.isOpen && /* @__PURE__ */ o(j, {
|
|
60
|
+
...i,
|
|
61
61
|
popupState: e,
|
|
62
62
|
handleClear: L,
|
|
63
63
|
onSelect: (r) => I(r)
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { StyledInputField as w } from "
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { ClockOutlineIcon as I } from "../../shared-components/ClockOutlineIcon.js";
|
|
1
|
+
import { StyledInputField as w } from "../../shared-components/StyledInputField.js";
|
|
2
|
+
import { HelperText as y } from "./components/HelperText.js";
|
|
3
|
+
import { ClockOutlineIcon as E } from "../../shared-components/ClockOutlineIcon.js";
|
|
5
4
|
import { useEffect as R, useRef as v } from "react";
|
|
6
|
-
import { jsx as o, jsxs as
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
import { jsx as o, jsxs as I } from "react/jsx-runtime";
|
|
6
|
+
import { useMask as M } from "@react-input/mask";
|
|
7
|
+
import "material-ui-popup-state/hooks";
|
|
8
|
+
var S = (c) => {
|
|
9
|
+
const { placeholder: f, disabled: r, inputClassName: h, dataTest: n, width: i, error: u, helperText: x, label: T, locale: k = "en", popupState: l, handleChange: C, isValidTime: s, isValidEndTime: p, localValue: b, title: m, readOnly: e } = c, g = M({
|
|
9
10
|
mask: "xx:xx",
|
|
10
|
-
|
|
11
|
+
replacement: { x: /\d/ },
|
|
11
12
|
showMask: !1
|
|
12
13
|
}), d = !s || !p || !!u, a = v(null);
|
|
13
14
|
return R(() => {
|
|
14
15
|
a.current && l.setAnchorEl(a.current);
|
|
15
|
-
}, []), /* @__PURE__ */
|
|
16
|
+
}, []), /* @__PURE__ */ I("div", {
|
|
16
17
|
style: { height: e ? "40px" : "75px" },
|
|
17
18
|
children: [m && /* @__PURE__ */ o("div", {
|
|
18
19
|
className: "pb-1 font-roboto font-semibold text-delta-800",
|
|
@@ -26,20 +27,20 @@ var O = (c) => {
|
|
|
26
27
|
placeholder: f,
|
|
27
28
|
size: "small",
|
|
28
29
|
error: d,
|
|
29
|
-
helperText: /* @__PURE__ */ o(
|
|
30
|
+
helperText: /* @__PURE__ */ o(y, {
|
|
30
31
|
isValidTime: s,
|
|
31
32
|
isValidEndTime: p,
|
|
32
33
|
error: d,
|
|
33
|
-
localization:
|
|
34
|
+
localization: k,
|
|
34
35
|
helperText: x
|
|
35
36
|
}),
|
|
36
|
-
onChange:
|
|
37
|
+
onChange: C,
|
|
37
38
|
slotProps: { input: {
|
|
38
39
|
ref: a,
|
|
39
40
|
onMouseDown: (t) => {
|
|
40
41
|
!r && !e && l.open(t);
|
|
41
42
|
},
|
|
42
|
-
endAdornment: /* @__PURE__ */ o(
|
|
43
|
+
endAdornment: /* @__PURE__ */ o(E, {
|
|
43
44
|
width: 24,
|
|
44
45
|
height: 24,
|
|
45
46
|
onClick: (t) => {
|
|
@@ -56,10 +57,10 @@ var O = (c) => {
|
|
|
56
57
|
disabled: r,
|
|
57
58
|
readOnly: e,
|
|
58
59
|
className: h,
|
|
59
|
-
label:
|
|
60
|
+
label: T
|
|
60
61
|
})]
|
|
61
62
|
});
|
|
62
63
|
};
|
|
63
64
|
export {
|
|
64
|
-
|
|
65
|
+
S as TimePickerInput
|
|
65
66
|
};
|
|
@@ -1,31 +1,29 @@
|
|
|
1
1
|
import { StyledButton as r } from "../../shared-components/button/StyledButton.js";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import f from "
|
|
7
|
-
import {
|
|
8
|
-
import { EraserIcon as x } from "../../shared-components/EraserIcon.js";
|
|
9
|
-
import { CheckIcon as k } from "../../shared-components/CheckIcon.js";
|
|
10
|
-
import y from "clsx";
|
|
2
|
+
import s from "./StyledTimePicker.module.js";
|
|
3
|
+
import { TimePickerBody as l } from "./components/TimePickerBody.js";
|
|
4
|
+
import { EraserIcon as c } from "../../shared-components/EraserIcon.js";
|
|
5
|
+
import { CheckIcon as h } from "../../shared-components/CheckIcon.js";
|
|
6
|
+
import f from "clsx";
|
|
7
|
+
import { Fade as u, Paper as x, Popper as k } from "@mui/material";
|
|
11
8
|
import { jsx as t, jsxs as o } from "react/jsx-runtime";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
import { bindPopper as y } from "material-ui-popup-state/hooks";
|
|
10
|
+
var j = (a) => {
|
|
11
|
+
const { popupState: e, dataTest: m, value: i, onSelect: n, handleClear: p } = a;
|
|
12
|
+
return /* @__PURE__ */ t(k, {
|
|
13
|
+
...y(e),
|
|
14
|
+
className: f(s["shadow-mui"]),
|
|
17
15
|
transition: !0,
|
|
18
16
|
style: {
|
|
19
17
|
zIndex: "1300",
|
|
20
18
|
position: "absolute"
|
|
21
19
|
},
|
|
22
|
-
children: ({ TransitionProps: d }) => /* @__PURE__ */ t(
|
|
20
|
+
children: ({ TransitionProps: d }) => /* @__PURE__ */ t(u, {
|
|
23
21
|
...d,
|
|
24
22
|
timeout: 350,
|
|
25
|
-
children: /* @__PURE__ */ o(
|
|
23
|
+
children: /* @__PURE__ */ o(x, {
|
|
26
24
|
style: { paddingBottom: "1px" },
|
|
27
|
-
children: [/* @__PURE__ */ t(
|
|
28
|
-
dataTest: `${
|
|
25
|
+
children: [/* @__PURE__ */ t(l, {
|
|
26
|
+
dataTest: `${m}-time-picker-body`,
|
|
29
27
|
value: i,
|
|
30
28
|
onSelect: n
|
|
31
29
|
}), /* @__PURE__ */ o("div", {
|
|
@@ -46,7 +44,7 @@ var I = (m) => {
|
|
|
46
44
|
minWidth: "40px",
|
|
47
45
|
marginLeft: "10px"
|
|
48
46
|
},
|
|
49
|
-
children: /* @__PURE__ */ t(
|
|
47
|
+
children: /* @__PURE__ */ t(c, {
|
|
50
48
|
width: 24,
|
|
51
49
|
height: 24
|
|
52
50
|
})
|
|
@@ -60,7 +58,7 @@ var I = (m) => {
|
|
|
60
58
|
minWidth: "40px",
|
|
61
59
|
marginRight: "16px"
|
|
62
60
|
},
|
|
63
|
-
children: /* @__PURE__ */ t(
|
|
61
|
+
children: /* @__PURE__ */ t(h, {
|
|
64
62
|
width: 20,
|
|
65
63
|
height: 20
|
|
66
64
|
})
|
|
@@ -71,5 +69,5 @@ var I = (m) => {
|
|
|
71
69
|
});
|
|
72
70
|
};
|
|
73
71
|
export {
|
|
74
|
-
|
|
72
|
+
j as TimePickerPopper
|
|
75
73
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import "react";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
function i(r) {
|
|
4
|
+
return /* @__PURE__ */ t("svg", {
|
|
5
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
width: "1em",
|
|
7
|
+
height: "1em",
|
|
8
|
+
viewBox: "0 0 24 24",
|
|
9
|
+
...r,
|
|
10
|
+
children: /* @__PURE__ */ t("path", {
|
|
11
|
+
fill: "currentColor",
|
|
12
|
+
d: "M12 14.95q-.2 0-.375-.062t-.325-.213l-4.6-4.6q-.275-.275-.275-.7t.275-.7t.7-.275t.7.275l3.9 3.9l3.9-3.9q.275-.275.7-.275t.7.275t.275.7t-.275.7l-4.6 4.6q-.15.15-.325.213T12 14.95"
|
|
13
|
+
})
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
i as ExpandIcon
|
|
18
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
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-500) !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
|
+
});
|
|
21
|
+
export {
|
|
22
|
+
l as StyledFormControl
|
|
23
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { TextField as i } from "@mui/material";
|
|
2
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
3
|
+
var d = ({ readOnly: o, disabled: t, dataTest: e, ...r }) => /* @__PURE__ */ a(i, {
|
|
4
|
+
...r,
|
|
5
|
+
"data-test": e,
|
|
6
|
+
disabled: !!t || !!o,
|
|
7
|
+
type: r.type ?? "mui-input",
|
|
8
|
+
sx: {
|
|
9
|
+
"& input:-webkit-autofill, & .MuiInputBase-root:has(> input:-webkit-autofill)": { backgroundColor: "#e8f0fe !important" },
|
|
10
|
+
"& input": { backgroundColor: "transparent" },
|
|
11
|
+
"& .MuiInputBase-root": { backgroundColor: "transparent" },
|
|
12
|
+
"& .MuiInputBase-colorPrimary fieldset": { borderColor: "var(--colors-delta-500) !important" },
|
|
13
|
+
"& .MuiInputBase-colorPrimary.Mui-focused fieldset": { borderColor: "var(--colors-gama-500) !important" },
|
|
14
|
+
"& .MuiInputBase-colorPrimary.Mui-focused::after": { borderColor: "var(--colors-gama-500) !important" },
|
|
15
|
+
"& .MuiInputBase-colorPrimary:hover fieldset": {
|
|
16
|
+
borderColor: "var(--colors-gama-300) !important",
|
|
17
|
+
borderWidth: "2px !important"
|
|
18
|
+
},
|
|
19
|
+
"& .MuiInputBase-colorPrimary.Mui-disabled:hover fieldset": { borderWidth: "1px !important" },
|
|
20
|
+
"& .MuiInputBase-colorPrimary.Mui-focused:hover fieldset": { borderColor: "var(--colors-gama-500) !important" },
|
|
21
|
+
"& .MuiInputBase-colorPrimary.Mui-error fieldset": { borderColor: "var(--colors-error-500) !important" },
|
|
22
|
+
"& .MuiInputBase-colorPrimary.Mui-error:hover fieldset": { borderColor: "var(--colors-error-500) !important" },
|
|
23
|
+
"& .MuiFormHelperText-root": { fontSize: "14px" },
|
|
24
|
+
"& .MuiFormHelperText-root.Mui-error": {
|
|
25
|
+
color: "var(--colors-error-500) !important",
|
|
26
|
+
marginLeft: 0
|
|
27
|
+
},
|
|
28
|
+
"& .MuiInputBase-colorPrimary.Mui-disabled fieldset": { borderColor: "var(--colors-delta-300) !important" },
|
|
29
|
+
"& label.Mui-focused": { color: "var(--colors-gama-500) !important" },
|
|
30
|
+
"& label.Mui-focused.Mui-error": { color: "var(--colors-error-500) !important" },
|
|
31
|
+
"& label.Mui-disabled": { color: "var(--colors-delta-300) !important" },
|
|
32
|
+
"& .MuiOutlinedInput-input::placeholder": {
|
|
33
|
+
color: "#666666",
|
|
34
|
+
opacity: "100"
|
|
35
|
+
},
|
|
36
|
+
"& .MuiOutlinedInput-input.Mui-disabled": { WebkitTextFillColor: "var(--colors-delta-300) !important" },
|
|
37
|
+
...o && {
|
|
38
|
+
"& .MuiOutlinedInput-input.Mui-disabled": { WebkitTextFillColor: "var(--colors-delta-800) !important" },
|
|
39
|
+
"& .MuiInputBase-colorPrimary.Mui-disabled": { backgroundColor: "var(--colors-delta-10) !important" },
|
|
40
|
+
"& .MuiInputBase-colorPrimary.Mui-disabled fieldset": { borderColor: "var(--colors-delta-200) !important" }
|
|
41
|
+
},
|
|
42
|
+
...r.sx
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
export {
|
|
46
|
+
d as StyledInputField
|
|
47
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { ExpandIcon as i } from "./ExpandIcon.js";
|
|
2
|
+
import a from "clsx";
|
|
3
|
+
import { Select as m } from "@mui/material";
|
|
4
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
+
var p = ({ dataTest: t, ...o }) => /* @__PURE__ */ r(m, {
|
|
6
|
+
...o,
|
|
7
|
+
"data-test": t,
|
|
8
|
+
value: o.value,
|
|
9
|
+
IconComponent: ({ className: e, ...n }) => /* @__PURE__ */ r(i, {
|
|
10
|
+
...n,
|
|
11
|
+
width: 24,
|
|
12
|
+
height: 24,
|
|
13
|
+
className: a(e),
|
|
14
|
+
style: { marginTop: "-3.5px" }
|
|
15
|
+
}),
|
|
16
|
+
sx: {
|
|
17
|
+
".MuiOutlinedInput-notchedOutline": { borderColor: "var(--colors-delta-500) !important" },
|
|
18
|
+
"&.Mui-focused .MuiOutlinedInput-notchedOutline": { borderColor: "var(--colors-gama-500) !important" },
|
|
19
|
+
"&.Mui-error .MuiOutlinedInput-notchedOutline": { borderColor: "var(--colors-error-500) !important" },
|
|
20
|
+
"& .MuiInputBase-colorPrimary.Mui-error fieldset": { borderColor: "var(--colors-error-500) !important" },
|
|
21
|
+
"&.Mui-focused::after": { borderColor: "transparent" },
|
|
22
|
+
transition: "none",
|
|
23
|
+
"&::before": {
|
|
24
|
+
transition: "none",
|
|
25
|
+
borderBottom: "none"
|
|
26
|
+
},
|
|
27
|
+
"&::after": { transition: "none" },
|
|
28
|
+
"&:hover::before": {
|
|
29
|
+
transition: "none",
|
|
30
|
+
borderBottom: "none"
|
|
31
|
+
},
|
|
32
|
+
".MuiPaper-root": {
|
|
33
|
+
transition: "none !important",
|
|
34
|
+
animation: "none !important"
|
|
35
|
+
},
|
|
36
|
+
".MuiMenuItem-root": {
|
|
37
|
+
transition: "none !important",
|
|
38
|
+
animation: "none !important"
|
|
39
|
+
},
|
|
40
|
+
"&:hover:not(.Mui-disabled, .Mui-error)::before": { borderBottom: "none" },
|
|
41
|
+
"&:focus::before": { borderBottom: "none" },
|
|
42
|
+
...o.sx
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
export {
|
|
46
|
+
p as StyledSelect
|
|
47
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MenuItem as e } from "@mui/material";
|
|
2
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
3
|
+
var n = (r) => /* @__PURE__ */ o(e, {
|
|
4
|
+
...r,
|
|
5
|
+
sx: {
|
|
6
|
+
"&.MuiMenuItem-root": { fontSize: "14px !important" },
|
|
7
|
+
"&.Mui-selected": { backgroundColor: "var(--colors-gama-50) !important" }
|
|
8
|
+
},
|
|
9
|
+
children: r.children
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
n as StyledSelectItem
|
|
13
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Fade as i, Tooltip as e } from "@mui/material";
|
|
2
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
3
|
+
import { mergeSlotProps as t } from "@mui/material/utils";
|
|
4
|
+
var a = {
|
|
5
|
+
borderRadius: "3px",
|
|
6
|
+
"& .MuiTooltip-arrow": { color: "#363E4A" },
|
|
7
|
+
color: "white",
|
|
8
|
+
boxShadow: "0px 1px 4px 0px rgba(0, 0, 0, 0.25)",
|
|
9
|
+
display: "flex",
|
|
10
|
+
padding: "4px 8px",
|
|
11
|
+
alignItems: "center",
|
|
12
|
+
fontSize: "12px",
|
|
13
|
+
lineHeight: "16px",
|
|
14
|
+
letterSpacing: "0.24px",
|
|
15
|
+
bgcolor: "#363E4A",
|
|
16
|
+
wordBreak: "break-word"
|
|
17
|
+
}, d = (r) => {
|
|
18
|
+
const { slotProps: o, ...p } = r;
|
|
19
|
+
return /* @__PURE__ */ l(e, {
|
|
20
|
+
placement: "top",
|
|
21
|
+
...p,
|
|
22
|
+
slots: { transition: i },
|
|
23
|
+
slotProps: {
|
|
24
|
+
...o,
|
|
25
|
+
transition: t(o?.transition, { timeout: 300 }),
|
|
26
|
+
tooltip: t(o?.tooltip, { sx: a })
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
export {
|
|
31
|
+
d as StyledTooltip
|
|
32
|
+
};
|