asma-ui-core 3.34.0 → 3.35.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 +29 -24
- package/dist/components/data-display/chip/StyledChip.js +45 -60
- package/dist/components/data-display/interactive-chip/StyledInteractiveChip.js +32 -38
- package/dist/components/data-display/tooltip/StyledTooltip.js +50 -33
- package/dist/components/data-display/typography/StyledTypography.js +62 -4
- package/dist/components/feedback/dialog/StyledDialog.js +70 -50
- package/dist/components/feedback/dialog/StyledDialog.module.js +2 -9
- package/dist/components/feedback/dialog/StyledDialogActions.js +16 -16
- package/dist/components/feedback/dialog/StyledDialogContent.js +17 -14
- package/dist/components/feedback/dialog/StyledDialogTitle.js +18 -13
- package/dist/components/feedback/minimizable-dialog/MinimizableDialog.js +56 -57
- package/dist/components/feedback/snack-bar/StyledAlert.js +72 -14
- package/dist/components/feedback/snack-bar/StyledSnackbar.js +34 -8
- package/dist/components/feedback/snack-bar/components/StyledDefaultSnackbar.js +33 -34
- package/dist/components/inputs/checkbox/base-ui/StyledCheckbox.js +55 -58
- 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/field-styles.js +6 -0
- package/dist/components/inputs/input-field/StyledInputField.js +104 -81
- package/dist/components/inputs/input-field/StyledInputField.module.js +4 -0
- package/dist/components/inputs/radio-button/base-ui/RadioGroupContext.js +6 -0
- package/dist/components/inputs/radio-button/base-ui/StyledRadio.js +40 -29
- package/dist/components/inputs/radio-button/base-ui/StyledRadio.module.js +10 -10
- package/dist/components/inputs/radio-button/base-ui/StyledRadioGroup.js +35 -23
- package/dist/components/inputs/select/StyledSelect.js +124 -45
- package/dist/components/inputs/select/StyledSelectItem.js +19 -23
- package/dist/components/inputs/select-autocomplete/StyledSelectAutocomplete.js +181 -151
- package/dist/components/inputs/slider/StyledSlider.js +78 -52
- package/dist/components/inputs/slider/StyledSlider.module.js +10 -0
- package/dist/components/inputs/switch/base-ui/StyledSwitch.js +44 -39
- package/dist/components/miscellaneous/FormControlContext.js +6 -0
- package/dist/components/miscellaneous/StyledFormControl.js +39 -21
- package/dist/components/miscellaneous/StyledFormControlLabel.js +27 -16
- package/dist/components/miscellaneous/StyledFormGroup.js +16 -4
- package/dist/components/miscellaneous/StyledFormHelperText.js +12 -4
- package/dist/components/miscellaneous/StyledInputLabel.js +20 -4
- package/dist/components/mui-compat/Avatar.js +29 -0
- package/dist/components/mui-compat/ClickAwayListener.js +29 -0
- package/dist/components/mui-compat/Container.js +24 -0
- package/dist/components/mui-compat/Fade.js +29 -0
- package/dist/components/mui-compat/Fade.module.js +9 -0
- package/dist/components/mui-compat/FormLabel.js +22 -0
- package/dist/components/mui-compat/Paper.js +44 -0
- package/dist/components/mui-compat/Popper.js +35 -0
- package/dist/components/mui-compat/Skeleton.js +26 -0
- package/dist/components/mui-compat/Stack.js +24 -0
- package/dist/components/navigation/drawer/StyledDrawer.js +42 -4
- package/dist/components/navigation/listbox/Listbox.js +7 -7
- package/dist/components/navigation/menu/StyledMenu.js +27 -11
- package/dist/components/navigation/menu/StyledMenuItem.js +16 -18
- package/dist/components/navigation/menu/StyledMenuList.js +32 -4
- package/dist/components/navigation/tabs/StyledTab.js +25 -13
- package/dist/components/navigation/tabs/StyledTabs.js +112 -64
- package/dist/components/navigation/tabs/TabsContext.js +6 -0
- package/dist/components/utils/accordion/base-ui/AccordionContext.js +10 -0
- package/dist/components/utils/accordion/base-ui/StyledAccordion.js +28 -21
- package/dist/components/utils/accordion/base-ui/StyledAccordion.module.js +7 -7
- package/dist/components/utils/accordion/base-ui/StyledAccordionDetails.js +28 -14
- package/dist/components/utils/accordion/base-ui/StyledAccordionSummary.js +31 -27
- package/dist/components/utils/popover/StyledPopover.js +43 -15
- 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 +13 -14
- 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 +4 -5
- 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 +15 -16
- package/dist/datetime/components/time-picker/TimePickerPopper.js +21 -19
- package/dist/datetime/helpers/cn.js +4 -5
- package/dist/helpers/arrays.js +4 -0
- package/dist/helpers/cn.js +4 -5
- package/dist/helpers/inputMask.js +45 -0
- package/dist/helpers/sx.js +46 -0
- package/dist/index.js +183 -175
- package/dist/src/api-surface.test.d.ts +1 -0
- package/dist/src/components/data-display/badge/StyledBadge.d.ts +26 -2
- package/dist/src/components/data-display/chip/StyledChip.d.ts +39 -5
- package/dist/src/components/data-display/interactive-chip/StyledInteractiveChip.d.ts +11 -4
- package/dist/src/components/data-display/tooltip/StyledTooltip.d.ts +36 -2
- package/dist/src/components/data-display/typography/StyledTypography.d.ts +19 -1
- package/dist/src/components/feedback/dialog/StyledDialog.d.ts +37 -4
- package/dist/src/components/feedback/dialog/StyledDialogActions.d.ts +12 -2
- package/dist/src/components/feedback/dialog/StyledDialogContent.d.ts +12 -2
- package/dist/src/components/feedback/dialog/StyledDialogTitle.d.ts +10 -2
- package/dist/src/components/feedback/snack-bar/SnackbarProvider.d.ts +1 -1
- package/dist/src/components/feedback/snack-bar/StyledAlert.d.ts +24 -2
- package/dist/src/components/feedback/snack-bar/StyledAlertSnackbar.d.ts +1 -1
- package/dist/src/components/feedback/snack-bar/StyledSnackbar.d.ts +21 -2
- 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/base-ui/StyledCheckbox.d.ts +9 -4
- package/dist/src/components/inputs/dynamic-select/types.d.ts +2 -2
- package/dist/src/components/inputs/field-styles.d.ts +22 -0
- package/dist/src/components/inputs/input-field/StyledInputField.d.ts +67 -11
- package/dist/src/components/inputs/input-field/index.d.ts +1 -1
- package/dist/src/components/inputs/radio-button/base-ui/RadioGroupContext.d.ts +10 -0
- package/dist/src/components/inputs/radio-button/base-ui/StyledRadio.d.ts +20 -5
- package/dist/src/components/inputs/radio-button/base-ui/StyledRadioGroup.d.ts +24 -7
- package/dist/src/components/inputs/select/StyledSelect.d.ts +39 -16
- package/dist/src/components/inputs/select/StyledSelectItem.d.ts +14 -2
- package/dist/src/components/inputs/select/index.d.ts +0 -1
- package/dist/src/components/inputs/select-autocomplete/StyledSelectAutocomplete.d.ts +88 -17
- package/dist/src/components/inputs/slider/StyledSlider.d.ts +55 -3
- package/dist/src/components/inputs/switch/base-ui/StyledSwitch.d.ts +20 -4
- package/dist/src/components/miscellaneous/FormControlContext.d.ts +14 -0
- package/dist/src/components/miscellaneous/StyledFormControl.d.ts +22 -2
- package/dist/src/components/miscellaneous/StyledFormControlLabel.d.ts +21 -2
- package/dist/src/components/miscellaneous/StyledFormGroup.d.ts +11 -2
- package/dist/src/components/miscellaneous/StyledFormHelperText.d.ts +12 -2
- package/dist/src/components/miscellaneous/StyledInputLabel.d.ts +20 -2
- package/dist/src/components/mui-compat/Avatar.d.ts +6 -0
- package/dist/src/components/mui-compat/ClickAwayListener.d.ts +19 -0
- package/dist/src/components/mui-compat/Container.d.ts +6 -0
- package/dist/src/components/mui-compat/Fade.d.ts +21 -0
- package/dist/src/components/mui-compat/FormLabel.d.ts +6 -0
- package/dist/src/components/mui-compat/Paper.d.ts +6 -0
- package/dist/src/components/mui-compat/Popper.d.ts +29 -0
- package/dist/src/components/mui-compat/Skeleton.d.ts +7 -0
- package/dist/src/components/mui-compat/Stack.d.ts +7 -0
- package/dist/src/components/mui-compat/index.d.ts +9 -0
- package/dist/src/components/mui-compat/types.d.ts +46 -0
- package/dist/src/components/navigation/drawer/StyledDrawer.d.ts +21 -2
- package/dist/src/components/navigation/menu/StyledMenu.d.ts +25 -2
- package/dist/src/components/navigation/menu/StyledMenuItem.d.ts +21 -2
- package/dist/src/components/navigation/menu/StyledMenuList.d.ts +16 -2
- package/dist/src/components/navigation/menu/index.d.ts +0 -1
- package/dist/src/components/navigation/tabs/StyledTab.d.ts +17 -3
- package/dist/src/components/navigation/tabs/StyledTabs.d.ts +16 -7
- package/dist/src/components/navigation/tabs/TabsContext.d.ts +11 -0
- package/dist/src/components/utils/accordion/base-ui/AccordionContext.d.ts +10 -0
- package/dist/src/components/utils/accordion/base-ui/StyledAccordion.d.ts +9 -3
- package/dist/src/components/utils/accordion/base-ui/StyledAccordionDetails.d.ts +5 -0
- package/dist/src/components/utils/accordion/base-ui/StyledAccordionSummary.d.ts +8 -4
- 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 +31 -2
- 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 +1 -2
- 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 +1 -2
- package/dist/src/datetime/shared-components/StyledFormControl.d.ts +1 -2
- package/dist/src/datetime/shared-components/StyledInputField.d.ts +1 -12
- package/dist/src/datetime/shared-components/StyledSelect.d.ts +1 -16
- package/dist/src/datetime/shared-components/StyledSelectItem.d.ts +1 -2
- package/dist/src/datetime/shared-components/StyledTooltip.d.ts +1 -2
- package/dist/src/helpers/arrays.d.ts +2 -0
- package/dist/src/helpers/arrays.test.d.ts +1 -0
- package/dist/src/helpers/inputMask.d.ts +29 -0
- package/dist/src/helpers/inputMask.test.d.ts +1 -0
- package/dist/src/helpers/sx.d.ts +2 -0
- package/dist/src/helpers/sx.test.d.ts +1 -0
- package/dist/src/index.d.ts +1 -1
- package/dist/src/table/shared-components/StyledCheckbox.d.ts +7 -4
- package/dist/src/table/shared-components/StyledMenuItem.d.ts +18 -2
- package/dist/src/table/shared-components/menu-item/index.d.ts +13 -2
- package/dist/src/table/shared-components/tooltip/index.d.ts +5 -1
- 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 +26 -25
- package/dist/table/components/table-footer/TablePagination.js +27 -24
- package/dist/table/components/table-footer/TableRowCountSelect.js +30 -27
- package/dist/table/helpers/cn.js +4 -5
- package/dist/table/shared-components/StyledCheckbox.js +54 -55
- package/dist/table/shared-components/StyledCheckbox.module.js +10 -10
- package/dist/table/shared-components/StyledMenuItem.js +12 -18
- package/dist/table/shared-components/menu-item/index.js +13 -17
- package/dist/table/shared-components/tooltip/index.js +4 -23
- package/package.json +9 -16
- package/dist/components/feedback/dialog/StyledDialogActions.module.js +0 -8
- package/dist/components/feedback/dialog/StyledDialogContent.module.js +0 -4
- package/dist/components/feedback/dialog/StyledDialogTitle.module.js +0 -4
- package/dist/components/inputs/checkbox/StyledCheckbox.js +0 -20
- package/dist/components/inputs/radio-button/StyledRadio.js +0 -17
- package/dist/datetime/shared-components/ExpandIcon.js +0 -18
- package/dist/datetime/shared-components/StyledFormControl.js +0 -23
- package/dist/datetime/shared-components/StyledInputField.js +0 -47
- package/dist/datetime/shared-components/StyledSelect.js +0 -47
- package/dist/datetime/shared-components/StyledSelectItem.js +0 -13
- package/dist/datetime/shared-components/StyledTooltip.js +0 -32
- package/dist/src/components/inputs/checkbox/StyledCheckbox.d.ts +0 -4
- package/dist/src/components/inputs/radio-button/StyledRadio.d.ts +0 -4
- package/dist/src/components/inputs/radio-button/StyledRadioGroup.d.ts +0 -4
- package/dist/src/components/inputs/switch/StyledSwitch.d.ts +0 -5
- package/dist/src/components/utils/accordion/StyledAccordion.d.ts +0 -2
- package/dist/src/components/utils/accordion/StyledAccordionDetails.d.ts +0 -2
- package/dist/src/components/utils/accordion/StyledAccordionSummary.d.ts +0 -8
|
@@ -1,56 +1,82 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
var
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
markLabel: {
|
|
22
|
-
className: e("ml-1 text-sm font-semibold text-delta-600", r.orientation === "vertical" && "mb-1"),
|
|
23
|
-
...r.slotProps?.markLabel
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
sx: {
|
|
27
|
-
...r.sx,
|
|
28
|
-
"& .MuiSlider-track": {
|
|
29
|
-
backgroundColor: r.disabled ? "var(--colors-gray-200)" : "var(--colors-gama-500)",
|
|
30
|
-
borderColor: r.disabled ? "var(--colors-gray-200)" : "var(--colors-gama-500)"
|
|
31
|
-
},
|
|
32
|
-
"& .MuiSlider-mark": {
|
|
33
|
-
backgroundColor: "white",
|
|
34
|
-
border: "1px solid var(--colors-delta-300)",
|
|
35
|
-
borderRadius: "50%",
|
|
36
|
-
height: "8px",
|
|
37
|
-
width: "8px",
|
|
38
|
-
"&.MuiSlider-markActive": {
|
|
39
|
-
backgroundColor: r.disabled ? "var(--colors-gray-200)" : "var(--colors-gama-500)",
|
|
40
|
-
border: "1px solid",
|
|
41
|
-
borderColor: r.disabled ? "var(--colors-gray-200)" : "var(--colors-gama-500)",
|
|
42
|
-
opacity: 1
|
|
43
|
-
}
|
|
44
|
-
}
|
|
1
|
+
import { cn as e } from "../../../helpers/cn.js";
|
|
2
|
+
import { ErrorOutlineIcon as J } from "../../icons/error-outline-icon/ErrorOutlineIcon.js";
|
|
3
|
+
import { StyledFormHelperText as Q } from "../../miscellaneous/StyledFormHelperText.js";
|
|
4
|
+
import d from "./StyledSlider.module.js";
|
|
5
|
+
import { jsx as m, jsxs as b } from "react/jsx-runtime";
|
|
6
|
+
var A = (s, a, u) => u === a ? 0 : Math.min(100, Math.max(0, (s - a) / (u - a) * 100)), W = (s) => Array.isArray(s) ? [s[0] ?? 0, s[1] ?? 0] : null, I = ({ dataTest: s, min: a = 0, max: u = 100, step: R = 1, value: U, defaultValue: _, disabled: p, size: q = "medium", orientation: M = "horizontal", marks: T, name: B, className: E, classes: c, slotProps: y, error: v, errorText: F, helperText: L, onChange: K, onChangeCommitted: P }) => {
|
|
7
|
+
const o = M === "vertical", g = U ?? _ ?? a, n = W(g), f = n !== null, O = (v ?? !1) || !!L, k = v ? F ?? "Required" : L, N = Array.isArray(T) ? T : [], H = f ? Math.min(n[0], n[1]) : a, w = f ? Math.max(n[0], n[1]) : g, j = (t) => f ? t >= H && t <= w : t <= w, x = f ? A(H, a, u) : 0, z = A(w, a, u) - x, G = o ? {
|
|
8
|
+
bottom: `${x}%`,
|
|
9
|
+
height: `${z}%`
|
|
10
|
+
} : {
|
|
11
|
+
left: `${x}%`,
|
|
12
|
+
width: `${z}%`
|
|
13
|
+
}, D = (t) => {
|
|
14
|
+
const i = A(t, a, u);
|
|
15
|
+
return o ? { bottom: `${i}%` } : { left: `${i}%` };
|
|
16
|
+
}, S = (t, i, l, h) => {
|
|
17
|
+
if (!t) return;
|
|
18
|
+
if (!f) {
|
|
19
|
+
t(i, l, 0);
|
|
20
|
+
return;
|
|
45
21
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
22
|
+
const r = [n?.[0] ?? 0, n?.[1] ?? 0];
|
|
23
|
+
r[h] = l, h === 0 && r[0] > r[1] && (r[0] = r[1]), h === 1 && r[1] < r[0] && (r[1] = r[0]), t(i, r, h);
|
|
24
|
+
}, $ = (t, i) => /* @__PURE__ */ m("input", {
|
|
25
|
+
type: "range",
|
|
26
|
+
"data-testid": f ? `${s}-thumb-${t}` : s,
|
|
27
|
+
name: B,
|
|
28
|
+
min: a,
|
|
29
|
+
max: u,
|
|
30
|
+
step: R,
|
|
31
|
+
value: i,
|
|
32
|
+
disabled: p,
|
|
33
|
+
"aria-orientation": M,
|
|
34
|
+
className: e(d.SliderInput, o ? d.Vertical : d.Horizontal, q === "small" && d.Small, p && d.Disabled, c?.thumb, y?.thumb?.className),
|
|
35
|
+
onChange: (l) => S(K, l, Number(l.currentTarget.value), t),
|
|
36
|
+
onPointerUp: (l) => S(P, l, Number(l.currentTarget.value), t),
|
|
37
|
+
onKeyUp: (l) => S(P, l, Number(l.currentTarget.value), t)
|
|
38
|
+
}, t);
|
|
39
|
+
return /* @__PURE__ */ b("div", {
|
|
40
|
+
className: e("flex", o ? "h-full w-8 flex-col items-center" : "w-full flex-col", c?.root, E),
|
|
41
|
+
children: [
|
|
42
|
+
/* @__PURE__ */ b("div", {
|
|
43
|
+
className: e("relative", o ? "h-full w-8" : "h-4 w-full"),
|
|
44
|
+
children: [/* @__PURE__ */ b("div", {
|
|
45
|
+
className: e("absolute", o ? "inset-y-2 left-1/2 w-1 -translate-x-1/2" : "inset-x-2 top-1/2 h-1 -translate-y-1/2"),
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ m("div", { className: e("absolute inset-0 rounded-full bg-delta-200", c?.rail, y?.rail?.className) }),
|
|
48
|
+
/* @__PURE__ */ m("div", {
|
|
49
|
+
className: e("absolute rounded-full", o ? "left-0 w-full" : "top-0 h-full", p ? "bg-delta-200" : "bg-gama-500", c?.track),
|
|
50
|
+
style: G
|
|
51
|
+
}),
|
|
52
|
+
N.map((t) => {
|
|
53
|
+
const i = j(t.value);
|
|
54
|
+
return /* @__PURE__ */ m("span", {
|
|
55
|
+
className: e("absolute h-2 w-2 -translate-x-1/2 rounded-full border", o ? "left-1/2 translate-y-1/2" : "top-1/2 -translate-y-1/2", i ? e("border-gama-500", p ? "bg-delta-200" : "bg-gama-500", c?.markActive) : e("border-delta-300 bg-white", c?.mark)),
|
|
56
|
+
style: D(t.value)
|
|
57
|
+
}, t.value);
|
|
58
|
+
})
|
|
59
|
+
]
|
|
60
|
+
}), f ? [$(0, n[0]), $(1, n[1])] : $(0, g)]
|
|
61
|
+
}),
|
|
62
|
+
N.some((t) => t.label != null) && /* @__PURE__ */ m("div", {
|
|
63
|
+
className: e("relative", o ? "h-full w-full" : "mt-1 h-5 w-full"),
|
|
64
|
+
children: N.map((t) => t.label == null ? null : /* @__PURE__ */ m("span", {
|
|
65
|
+
className: e("absolute -translate-x-1/2 text-sm font-semibold", j(t.value) ? e("text-delta-800", c?.markLabelActive) : "text-delta-600", c?.markLabel, y?.markLabel?.className),
|
|
66
|
+
style: D(t.value),
|
|
67
|
+
children: t.label
|
|
68
|
+
}, t.value))
|
|
69
|
+
}),
|
|
70
|
+
O && /* @__PURE__ */ b(Q, {
|
|
71
|
+
className: e("m-0 flex items-center gap-1 pt-1 text-sm", v ? "text-error-500" : "text-delta-600"),
|
|
72
|
+
children: [v && /* @__PURE__ */ m(J, {
|
|
73
|
+
width: 20,
|
|
74
|
+
height: 20
|
|
75
|
+
}), k]
|
|
76
|
+
})
|
|
77
|
+
]
|
|
78
|
+
});
|
|
53
79
|
};
|
|
54
80
|
export {
|
|
55
|
-
|
|
81
|
+
I as StyledSlider
|
|
56
82
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import { cn as x } from "../../../../helpers/cn.js";
|
|
1
2
|
import { getSvgIconStyle as C } from "../../../icons/iconStyle.js";
|
|
2
|
-
import
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { jsx as
|
|
5
|
-
|
|
6
|
-
var b = ({ className: e }) => /* @__PURE__ */ t("svg", {
|
|
3
|
+
import a from "./StyledSwitch.module.js";
|
|
4
|
+
import { forwardRef as S, useState as y } from "react";
|
|
5
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
6
|
+
var N = ({ className: t }) => /* @__PURE__ */ e("svg", {
|
|
7
7
|
viewBox: "0 0 24 24",
|
|
8
|
-
className:
|
|
8
|
+
className: t,
|
|
9
9
|
fill: "none",
|
|
10
|
-
children: /* @__PURE__ */
|
|
10
|
+
children: /* @__PURE__ */ e("rect", {
|
|
11
11
|
x: "6",
|
|
12
12
|
y: "10.5",
|
|
13
13
|
width: "11",
|
|
@@ -15,50 +15,55 @@ var b = ({ className: e }) => /* @__PURE__ */ t("svg", {
|
|
|
15
15
|
fill: "currentColor",
|
|
16
16
|
rx: "0.75"
|
|
17
17
|
})
|
|
18
|
-
}), I = ({ width:
|
|
18
|
+
}), I = ({ width: t = 11, height: n = 11, className: i = "", onClick: c, color: r }) => /* @__PURE__ */ e("svg", {
|
|
19
19
|
xmlns: "http://www.w3.org/2000/svg",
|
|
20
|
-
width:
|
|
21
|
-
height:
|
|
20
|
+
width: t,
|
|
21
|
+
height: n,
|
|
22
22
|
viewBox: "0 0 448 512",
|
|
23
|
-
className:
|
|
24
|
-
onClick:
|
|
25
|
-
style: C(
|
|
23
|
+
className: i,
|
|
24
|
+
onClick: c,
|
|
25
|
+
style: C(r),
|
|
26
26
|
"aria-hidden": "true",
|
|
27
27
|
focusable: "false",
|
|
28
|
-
children: /* @__PURE__ */
|
|
28
|
+
children: /* @__PURE__ */ e("path", {
|
|
29
29
|
fill: "currentColor",
|
|
30
30
|
d: "M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7L393.4 105.4c12.5-12.5 32.8-12.5 45.2 0"
|
|
31
31
|
})
|
|
32
|
-
}),
|
|
33
|
-
const [
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
32
|
+
}), q = S(({ checked: t, defaultChecked: n = !1, onChange: i, disabled: c, readOnly: r, required: m, id: l, dataTest: f, className: u, ...v }, w) => {
|
|
33
|
+
const [p, g] = y(n), d = t !== void 0, o = d ? t : p, k = () => {
|
|
34
|
+
if (r || c) return;
|
|
35
|
+
const s = !o;
|
|
36
|
+
d || g(s), i?.({ target: {
|
|
37
|
+
checked: s,
|
|
38
|
+
name: l
|
|
39
|
+
} }, s);
|
|
40
|
+
}, h = a.iconContent;
|
|
41
|
+
return /* @__PURE__ */ e("button", {
|
|
40
42
|
...v,
|
|
41
|
-
...x,
|
|
42
|
-
nativeButton: !0,
|
|
43
|
-
render: /* @__PURE__ */ t("button", {}),
|
|
44
43
|
ref: w,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
required:
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
44
|
+
type: "button",
|
|
45
|
+
role: "switch",
|
|
46
|
+
"aria-checked": o,
|
|
47
|
+
"aria-readonly": r,
|
|
48
|
+
"aria-required": m,
|
|
49
|
+
className: x(a.switch, u),
|
|
50
|
+
onClick: k,
|
|
51
|
+
disabled: c,
|
|
52
|
+
id: l,
|
|
53
|
+
name: l,
|
|
54
|
+
"data-testid": f,
|
|
55
|
+
"data-checked": o ? "" : void 0,
|
|
56
|
+
"data-unchecked": o ? void 0 : "",
|
|
57
|
+
"data-disabled": c ? "" : void 0,
|
|
58
|
+
children: /* @__PURE__ */ e("span", {
|
|
59
|
+
className: a.thumb,
|
|
60
|
+
children: /* @__PURE__ */ e("span", {
|
|
61
|
+
className: a.icon,
|
|
62
|
+
children: o ? /* @__PURE__ */ e(I, { className: h }) : /* @__PURE__ */ e(N, { className: h })
|
|
58
63
|
})
|
|
59
64
|
})
|
|
60
65
|
});
|
|
61
66
|
});
|
|
62
67
|
export {
|
|
63
|
-
|
|
68
|
+
q as StyledSwitch
|
|
64
69
|
};
|
|
@@ -1,23 +1,41 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
import { cn as C } from "../../helpers/cn.js";
|
|
2
|
+
import { resolveSx as I } from "../../helpers/sx.js";
|
|
3
|
+
import { FormControlContext as S } from "./FormControlContext.js";
|
|
4
|
+
import { useId as y, useMemo as g, useState as n } from "react";
|
|
5
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
6
|
+
var P = ({ children: c, error: e = !1, disabled: o = !1, required: l = !1, size: t = "medium", fullWidth: i, className: d, style: u, sx: x, id: r }) => {
|
|
7
|
+
const s = y(), [m, p] = n(!1), [f, v] = n(!1), F = g(() => ({
|
|
8
|
+
focused: m,
|
|
9
|
+
filled: f,
|
|
10
|
+
error: e,
|
|
11
|
+
disabled: o,
|
|
12
|
+
required: l,
|
|
13
|
+
size: t,
|
|
14
|
+
labelId: r ?? s,
|
|
15
|
+
setFocused: p,
|
|
16
|
+
setFilled: v
|
|
17
|
+
}), [
|
|
18
|
+
m,
|
|
19
|
+
f,
|
|
20
|
+
e,
|
|
21
|
+
o,
|
|
22
|
+
l,
|
|
23
|
+
t,
|
|
24
|
+
r,
|
|
25
|
+
s
|
|
26
|
+
]);
|
|
27
|
+
return /* @__PURE__ */ a(S.Provider, {
|
|
28
|
+
value: F,
|
|
29
|
+
children: /* @__PURE__ */ a("div", {
|
|
30
|
+
className: C("relative inline-flex flex-col", i && "w-full", d),
|
|
31
|
+
style: {
|
|
32
|
+
...I(x),
|
|
33
|
+
...u
|
|
34
|
+
},
|
|
35
|
+
children: c
|
|
36
|
+
})
|
|
37
|
+
});
|
|
38
|
+
};
|
|
21
39
|
export {
|
|
22
|
-
|
|
40
|
+
P as StyledFormControl
|
|
23
41
|
};
|
|
@@ -1,18 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { cn as s } from "../../helpers/cn.js";
|
|
2
|
+
import { resolveSx as u } from "../../helpers/sx.js";
|
|
3
|
+
import { cloneElement as v, isValidElement as a } from "react";
|
|
4
|
+
import { jsx as h, jsxs as b } from "react/jsx-runtime";
|
|
5
|
+
var g = {
|
|
6
|
+
end: "flex-row",
|
|
7
|
+
start: "flex-row-reverse",
|
|
8
|
+
top: "flex-col-reverse",
|
|
9
|
+
bottom: "flex-col"
|
|
10
|
+
}, L = ({ control: e, label: t, checked: n, disabled: o, name: d, value: i, labelPlacement: m = "end", className: c, sx: p, onChange: x }) => {
|
|
11
|
+
const l = a(e) ? e.props : {}, r = o ?? l.disabled ?? !1, f = a(e) ? v(e, {
|
|
12
|
+
checked: l.checked ?? n,
|
|
13
|
+
onChange: l.onChange ?? x,
|
|
14
|
+
disabled: r,
|
|
15
|
+
name: l.name ?? d,
|
|
16
|
+
value: l.value ?? i
|
|
17
|
+
}) : e;
|
|
18
|
+
return /* @__PURE__ */ b("label", {
|
|
19
|
+
className: s("m-0 inline-flex items-center gap-2 align-middle text-delta-800", r ? "cursor-default" : "cursor-pointer", g[m], c),
|
|
20
|
+
style: u(p),
|
|
21
|
+
children: [f, t != null && /* @__PURE__ */ h("span", {
|
|
22
|
+
className: s("text-sm leading-5", r && "text-delta-300"),
|
|
23
|
+
children: t
|
|
24
|
+
})]
|
|
25
|
+
});
|
|
26
|
+
};
|
|
16
27
|
export {
|
|
17
|
-
|
|
28
|
+
L as StyledFormControlLabel
|
|
18
29
|
};
|
|
@@ -1,6 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { resolveSx as x } from "../../helpers/sx.js";
|
|
2
|
+
import f from "clsx";
|
|
3
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
4
|
+
var v = ({ row: e, className: r, sx: l, style: o, children: s, classes: c, ...m }) => {
|
|
5
|
+
const t = {
|
|
6
|
+
...x(l),
|
|
7
|
+
...o
|
|
8
|
+
};
|
|
9
|
+
return /* @__PURE__ */ a("div", {
|
|
10
|
+
className: f("flex flex-wrap", e ? "flex-row" : "flex-col", r),
|
|
11
|
+
style: t,
|
|
12
|
+
...m,
|
|
13
|
+
children: s
|
|
14
|
+
});
|
|
15
|
+
};
|
|
4
16
|
export {
|
|
5
|
-
|
|
17
|
+
v as StyledFormGroup
|
|
6
18
|
};
|
|
@@ -1,6 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { cn as i } from "../../helpers/cn.js";
|
|
2
|
+
import { useFormControlContext as n } from "./FormControlContext.js";
|
|
3
|
+
import { jsx as x } from "react/jsx-runtime";
|
|
4
|
+
var f = ({ children: t, error: e, disabled: o, className: s, ...m }) => {
|
|
5
|
+
const r = n(), a = e ?? r?.error ?? !1, l = o ?? r?.disabled ?? !1;
|
|
6
|
+
return /* @__PURE__ */ x("p", {
|
|
7
|
+
className: i("m-0 min-h-6 text-sm leading-6", a ? "text-error-500" : l ? "text-gray-300" : "text-delta-600", s),
|
|
8
|
+
...m,
|
|
9
|
+
children: t
|
|
10
|
+
});
|
|
11
|
+
};
|
|
4
12
|
export {
|
|
5
|
-
|
|
13
|
+
f as StyledFormHelperText
|
|
6
14
|
};
|
|
@@ -1,6 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { cn as m } from "../../helpers/cn.js";
|
|
2
|
+
import { floatingLabelClass as u } from "../inputs/field-styles.js";
|
|
3
|
+
import { useFormControlContext as b } from "./FormControlContext.js";
|
|
4
|
+
import { jsxs as p } from "react/jsx-runtime";
|
|
5
|
+
var q = ({ children: r, htmlFor: o, id: s, required: l, disabled: i, error: t, size: d, shrink: a, className: n }) => {
|
|
6
|
+
const e = b(), f = a ?? (e ? e.focused || e.filled : !1), c = l ?? e?.required ?? !1;
|
|
7
|
+
return /* @__PURE__ */ p("label", {
|
|
8
|
+
htmlFor: o,
|
|
9
|
+
id: s ?? e?.labelId,
|
|
10
|
+
className: m(u({
|
|
11
|
+
shrink: f,
|
|
12
|
+
focused: e?.focused,
|
|
13
|
+
error: t ?? e?.error,
|
|
14
|
+
disabled: i ?? e?.disabled,
|
|
15
|
+
size: d ?? e?.size
|
|
16
|
+
}), n),
|
|
17
|
+
children: [r, c && " *"]
|
|
18
|
+
});
|
|
19
|
+
};
|
|
4
20
|
export {
|
|
5
|
-
|
|
21
|
+
q as StyledInputLabel
|
|
6
22
|
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { resolveSx as p } from "../../helpers/sx.js";
|
|
2
|
+
import x from "clsx";
|
|
3
|
+
import "react";
|
|
4
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
5
|
+
var o = {
|
|
6
|
+
circular: "rounded-full",
|
|
7
|
+
rounded: "rounded-[4px]",
|
|
8
|
+
square: "rounded-none"
|
|
9
|
+
}, g = ({ src: e, srcSet: r, alt: l, variant: n = "circular", sizes: s, className: a, sx: c, style: d, children: i, classes: f, component: v, ...m }) => {
|
|
10
|
+
const u = {
|
|
11
|
+
...p(c),
|
|
12
|
+
...d
|
|
13
|
+
};
|
|
14
|
+
return /* @__PURE__ */ t("div", {
|
|
15
|
+
className: x("relative flex h-[40px] w-[40px] shrink-0 items-center justify-center overflow-hidden bg-[#bdbdbd] font-roboto text-[1.25rem] text-white", o[n] ?? o.circular, a),
|
|
16
|
+
style: u,
|
|
17
|
+
...m,
|
|
18
|
+
children: e || r ? /* @__PURE__ */ t("img", {
|
|
19
|
+
className: "h-full w-full object-cover text-transparent",
|
|
20
|
+
src: e,
|
|
21
|
+
srcSet: r,
|
|
22
|
+
alt: l,
|
|
23
|
+
sizes: s
|
|
24
|
+
}) : i
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
export {
|
|
28
|
+
g as Avatar
|
|
29
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { cloneElement as m, useCallback as d, useEffect as l, useRef as i } from "react";
|
|
2
|
+
var p = {
|
|
3
|
+
onClick: "click",
|
|
4
|
+
onMouseDown: "mousedown",
|
|
5
|
+
onMouseUp: "mouseup",
|
|
6
|
+
onTouchStart: "touchstart",
|
|
7
|
+
onTouchEnd: "touchend"
|
|
8
|
+
}, h = ({ children: t, onClickAway: r, mouseEvent: c = "onClick", touchEvent: s = "onTouchEnd" }) => {
|
|
9
|
+
const f = i(null), u = i(r);
|
|
10
|
+
return l(() => {
|
|
11
|
+
u.current = r;
|
|
12
|
+
}, [r]), l(() => {
|
|
13
|
+
const o = (e) => {
|
|
14
|
+
const a = f.current;
|
|
15
|
+
a && e.target instanceof Node && !a.contains(e.target) && u.current(e);
|
|
16
|
+
}, n = [c, s].filter((e) => e !== !1).map((e) => p[e]).filter((e) => !!e);
|
|
17
|
+
for (const e of n) document.addEventListener(e, o);
|
|
18
|
+
return () => {
|
|
19
|
+
for (const e of n) document.removeEventListener(e, o);
|
|
20
|
+
};
|
|
21
|
+
}, [c, s]), m(t, { ref: d((o) => {
|
|
22
|
+
f.current = o;
|
|
23
|
+
const n = t.ref;
|
|
24
|
+
typeof n == "function" && n(o);
|
|
25
|
+
}, [t]) });
|
|
26
|
+
};
|
|
27
|
+
export {
|
|
28
|
+
h as ClickAwayListener
|
|
29
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { resolveSx as f } from "../../helpers/sx.js";
|
|
2
|
+
import n from "clsx";
|
|
3
|
+
import { createElement as c } from "react";
|
|
4
|
+
var r = {
|
|
5
|
+
xs: 444,
|
|
6
|
+
sm: 600,
|
|
7
|
+
md: 900,
|
|
8
|
+
lg: 1200,
|
|
9
|
+
xl: 1536
|
|
10
|
+
}, g = ({ maxWidth: e = "lg", disableGutters: o, className: l, sx: m, style: t, component: x = "div", children: s, fixed: d, ...i }) => {
|
|
11
|
+
const a = {
|
|
12
|
+
...e && e in r ? { maxWidth: r[e] } : {},
|
|
13
|
+
...f(m),
|
|
14
|
+
...t
|
|
15
|
+
};
|
|
16
|
+
return c(x, {
|
|
17
|
+
className: n("mx-auto box-border block w-full", !o && "px-4", l),
|
|
18
|
+
style: a,
|
|
19
|
+
...i
|
|
20
|
+
}, s);
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
g as Container
|
|
24
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { cn as o } from "../../helpers/cn.js";
|
|
2
|
+
import u from "./Fade.module.js";
|
|
3
|
+
import { cloneElement as c, useEffect as i, useState as p } from "react";
|
|
4
|
+
var n = (e, r) => typeof e == "number" ? e : e[r] ?? 225, F = ({ in: e = !0, timeout: r = 225, children: t, onExited: s, style: d }) => {
|
|
5
|
+
const [a, f] = p(e);
|
|
6
|
+
if (e && !a && f(!0), i(() => {
|
|
7
|
+
if (e) return;
|
|
8
|
+
const m = setTimeout(() => {
|
|
9
|
+
f(!1), s?.();
|
|
10
|
+
}, n(r, "exit"));
|
|
11
|
+
return () => clearTimeout(m);
|
|
12
|
+
}, [
|
|
13
|
+
e,
|
|
14
|
+
r,
|
|
15
|
+
s
|
|
16
|
+
]), !a) return null;
|
|
17
|
+
const l = t.props;
|
|
18
|
+
return c(t, {
|
|
19
|
+
className: o(l.className, e ? u.fadeIn : u.fadeOut),
|
|
20
|
+
style: {
|
|
21
|
+
...l.style,
|
|
22
|
+
...d,
|
|
23
|
+
"--fade-duration": `${n(r, e ? "enter" : "exit")}ms`
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
export {
|
|
28
|
+
F as Fade
|
|
29
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { resolveSx as c } from "../../helpers/sx.js";
|
|
2
|
+
import a from "clsx";
|
|
3
|
+
import "react";
|
|
4
|
+
import { jsx as n, jsxs as f } from "react/jsx-runtime";
|
|
5
|
+
var v = ({ required: e, className: o, sx: r, style: l, children: s, classes: d, component: i, error: p, focused: x, filled: _, color: b, ...t }) => {
|
|
6
|
+
const m = {
|
|
7
|
+
...c(r),
|
|
8
|
+
...l
|
|
9
|
+
};
|
|
10
|
+
return /* @__PURE__ */ f("label", {
|
|
11
|
+
className: a("font-roboto text-[1rem] leading-[1.4375em] text-[rgba(0,0,0,0.6)]", o),
|
|
12
|
+
style: m,
|
|
13
|
+
...t,
|
|
14
|
+
children: [s, e && /* @__PURE__ */ n("span", {
|
|
15
|
+
className: "ml-0.5 text-[#d32f2f]",
|
|
16
|
+
children: " *"
|
|
17
|
+
})]
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
v as FormLabel
|
|
22
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { resolveSx as l } from "../../helpers/sx.js";
|
|
2
|
+
import d from "clsx";
|
|
3
|
+
import { createElement as m } from "react";
|
|
4
|
+
var n = [
|
|
5
|
+
"none",
|
|
6
|
+
"0px 2px 1px -1px rgba(0,0,0,0.2),0px 1px 1px 0px rgba(0,0,0,0.14),0px 1px 3px 0px rgba(0,0,0,0.12)",
|
|
7
|
+
"0px 3px 1px -2px rgba(0,0,0,0.2),0px 2px 2px 0px rgba(0,0,0,0.14),0px 1px 5px 0px rgba(0,0,0,0.12)",
|
|
8
|
+
"0px 3px 3px -2px rgba(0,0,0,0.2),0px 3px 4px 0px rgba(0,0,0,0.14),0px 1px 8px 0px rgba(0,0,0,0.12)",
|
|
9
|
+
"0px 2px 4px -1px rgba(0,0,0,0.2),0px 4px 5px 0px rgba(0,0,0,0.14),0px 1px 10px 0px rgba(0,0,0,0.12)",
|
|
10
|
+
"0px 3px 5px -1px rgba(0,0,0,0.2),0px 5px 8px 0px rgba(0,0,0,0.14),0px 1px 14px 0px rgba(0,0,0,0.12)",
|
|
11
|
+
"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)",
|
|
12
|
+
"0px 4px 5px -2px rgba(0,0,0,0.2),0px 7px 10px 1px rgba(0,0,0,0.14),0px 2px 16px 1px rgba(0,0,0,0.12)",
|
|
13
|
+
"0px 5px 5px -3px rgba(0,0,0,0.2),0px 8px 10px 1px rgba(0,0,0,0.14),0px 3px 14px 2px rgba(0,0,0,0.12)",
|
|
14
|
+
"0px 5px 6px -3px rgba(0,0,0,0.2),0px 9px 12px 1px rgba(0,0,0,0.14),0px 3px 16px 2px rgba(0,0,0,0.12)",
|
|
15
|
+
"0px 6px 6px -3px rgba(0,0,0,0.2),0px 10px 14px 1px rgba(0,0,0,0.14),0px 4px 18px 3px rgba(0,0,0,0.12)",
|
|
16
|
+
"0px 6px 7px -4px rgba(0,0,0,0.2),0px 11px 15px 1px rgba(0,0,0,0.14),0px 4px 20px 3px rgba(0,0,0,0.12)",
|
|
17
|
+
"0px 7px 8px -4px rgba(0,0,0,0.2),0px 12px 17px 2px rgba(0,0,0,0.14),0px 5px 22px 4px rgba(0,0,0,0.12)",
|
|
18
|
+
"0px 7px 8px -4px rgba(0,0,0,0.2),0px 13px 19px 2px rgba(0,0,0,0.14),0px 5px 24px 4px rgba(0,0,0,0.12)",
|
|
19
|
+
"0px 7px 9px -4px rgba(0,0,0,0.2),0px 14px 21px 2px rgba(0,0,0,0.14),0px 5px 26px 4px rgba(0,0,0,0.12)",
|
|
20
|
+
"0px 8px 9px -5px rgba(0,0,0,0.2),0px 15px 22px 2px rgba(0,0,0,0.14),0px 6px 28px 5px rgba(0,0,0,0.12)",
|
|
21
|
+
"0px 8px 10px -5px rgba(0,0,0,0.2),0px 16px 24px 2px rgba(0,0,0,0.14),0px 6px 30px 5px rgba(0,0,0,0.12)",
|
|
22
|
+
"0px 8px 11px -5px rgba(0,0,0,0.2),0px 17px 26px 2px rgba(0,0,0,0.14),0px 6px 32px 5px rgba(0,0,0,0.12)",
|
|
23
|
+
"0px 9px 11px -5px rgba(0,0,0,0.2),0px 18px 28px 2px rgba(0,0,0,0.14),0px 7px 34px 6px rgba(0,0,0,0.12)",
|
|
24
|
+
"0px 9px 12px -6px rgba(0,0,0,0.2),0px 19px 29px 2px rgba(0,0,0,0.14),0px 7px 36px 6px rgba(0,0,0,0.12)",
|
|
25
|
+
"0px 10px 13px -6px rgba(0,0,0,0.2),0px 20px 31px 3px rgba(0,0,0,0.14),0px 8px 38px 7px rgba(0,0,0,0.12)",
|
|
26
|
+
"0px 10px 13px -6px rgba(0,0,0,0.2),0px 21px 33px 3px rgba(0,0,0,0.14),0px 8px 40px 7px rgba(0,0,0,0.12)",
|
|
27
|
+
"0px 10px 14px -6px rgba(0,0,0,0.2),0px 22px 35px 3px rgba(0,0,0,0.14),0px 8px 42px 7px rgba(0,0,0,0.12)",
|
|
28
|
+
"0px 11px 14px -7px rgba(0,0,0,0.2),0px 23px 36px 3px rgba(0,0,0,0.14),0px 9px 44px 8px rgba(0,0,0,0.12)",
|
|
29
|
+
"0px 11px 15px -7px rgba(0,0,0,0.2),0px 24px 38px 3px rgba(0,0,0,0.14),0px 9px 46px 8px rgba(0,0,0,0.12)"
|
|
30
|
+
], u = ({ elevation: p = 1, square: r, variant: x = "elevation", className: a, sx: b, style: g, component: e = "div", children: o, classes: i, ...t }) => {
|
|
31
|
+
const s = {
|
|
32
|
+
boxShadow: x === "outlined" ? "none" : n[Math.min(Math.max(p, 0), 24)],
|
|
33
|
+
...l(b),
|
|
34
|
+
...g
|
|
35
|
+
};
|
|
36
|
+
return m(e, {
|
|
37
|
+
className: d("bg-white text-[rgba(0,0,0,0.87)]", !r && "rounded-[4px]", x === "outlined" && "border border-solid border-[rgba(0,0,0,0.12)]", a),
|
|
38
|
+
style: s,
|
|
39
|
+
...t
|
|
40
|
+
}, o);
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
u as Paper
|
|
44
|
+
};
|