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.
Files changed (198) hide show
  1. package/dist/asma-ui-core.css +1 -1
  2. package/dist/components/data-display/badge/StyledBadge.js +29 -24
  3. package/dist/components/data-display/chip/StyledChip.js +45 -60
  4. package/dist/components/data-display/interactive-chip/StyledInteractiveChip.js +32 -38
  5. package/dist/components/data-display/tooltip/StyledTooltip.js +50 -33
  6. package/dist/components/data-display/typography/StyledTypography.js +62 -4
  7. package/dist/components/feedback/dialog/StyledDialog.js +70 -50
  8. package/dist/components/feedback/dialog/StyledDialog.module.js +2 -9
  9. package/dist/components/feedback/dialog/StyledDialogActions.js +16 -16
  10. package/dist/components/feedback/dialog/StyledDialogContent.js +17 -14
  11. package/dist/components/feedback/dialog/StyledDialogTitle.js +18 -13
  12. package/dist/components/feedback/minimizable-dialog/MinimizableDialog.js +56 -57
  13. package/dist/components/feedback/snack-bar/StyledAlert.js +72 -14
  14. package/dist/components/feedback/snack-bar/StyledSnackbar.js +34 -8
  15. package/dist/components/feedback/snack-bar/components/StyledDefaultSnackbar.js +33 -34
  16. package/dist/components/inputs/checkbox/base-ui/StyledCheckbox.js +55 -58
  17. package/dist/components/inputs/checkbox/base-ui/StyledCheckbox.module.js +12 -12
  18. package/dist/components/inputs/dynamic-select/components/DynamicInteractiveChipGroup.js +1 -1
  19. package/dist/components/inputs/dynamic-select/components/DynamicSelectAutocomplete.js +1 -1
  20. package/dist/components/inputs/field-styles.js +6 -0
  21. package/dist/components/inputs/input-field/StyledInputField.js +104 -81
  22. package/dist/components/inputs/input-field/StyledInputField.module.js +4 -0
  23. package/dist/components/inputs/radio-button/base-ui/RadioGroupContext.js +6 -0
  24. package/dist/components/inputs/radio-button/base-ui/StyledRadio.js +40 -29
  25. package/dist/components/inputs/radio-button/base-ui/StyledRadio.module.js +10 -10
  26. package/dist/components/inputs/radio-button/base-ui/StyledRadioGroup.js +35 -23
  27. package/dist/components/inputs/select/StyledSelect.js +124 -45
  28. package/dist/components/inputs/select/StyledSelectItem.js +19 -23
  29. package/dist/components/inputs/select-autocomplete/StyledSelectAutocomplete.js +181 -151
  30. package/dist/components/inputs/slider/StyledSlider.js +78 -52
  31. package/dist/components/inputs/slider/StyledSlider.module.js +10 -0
  32. package/dist/components/inputs/switch/base-ui/StyledSwitch.js +44 -39
  33. package/dist/components/miscellaneous/FormControlContext.js +6 -0
  34. package/dist/components/miscellaneous/StyledFormControl.js +39 -21
  35. package/dist/components/miscellaneous/StyledFormControlLabel.js +27 -16
  36. package/dist/components/miscellaneous/StyledFormGroup.js +16 -4
  37. package/dist/components/miscellaneous/StyledFormHelperText.js +12 -4
  38. package/dist/components/miscellaneous/StyledInputLabel.js +20 -4
  39. package/dist/components/mui-compat/Avatar.js +29 -0
  40. package/dist/components/mui-compat/ClickAwayListener.js +29 -0
  41. package/dist/components/mui-compat/Container.js +24 -0
  42. package/dist/components/mui-compat/Fade.js +29 -0
  43. package/dist/components/mui-compat/Fade.module.js +9 -0
  44. package/dist/components/mui-compat/FormLabel.js +22 -0
  45. package/dist/components/mui-compat/Paper.js +44 -0
  46. package/dist/components/mui-compat/Popper.js +35 -0
  47. package/dist/components/mui-compat/Skeleton.js +26 -0
  48. package/dist/components/mui-compat/Stack.js +24 -0
  49. package/dist/components/navigation/drawer/StyledDrawer.js +42 -4
  50. package/dist/components/navigation/listbox/Listbox.js +7 -7
  51. package/dist/components/navigation/menu/StyledMenu.js +27 -11
  52. package/dist/components/navigation/menu/StyledMenuItem.js +16 -18
  53. package/dist/components/navigation/menu/StyledMenuList.js +32 -4
  54. package/dist/components/navigation/tabs/StyledTab.js +25 -13
  55. package/dist/components/navigation/tabs/StyledTabs.js +112 -64
  56. package/dist/components/navigation/tabs/TabsContext.js +6 -0
  57. package/dist/components/utils/accordion/base-ui/AccordionContext.js +10 -0
  58. package/dist/components/utils/accordion/base-ui/StyledAccordion.js +28 -21
  59. package/dist/components/utils/accordion/base-ui/StyledAccordion.module.js +7 -7
  60. package/dist/components/utils/accordion/base-ui/StyledAccordionDetails.js +28 -14
  61. package/dist/components/utils/accordion/base-ui/StyledAccordionSummary.js +31 -27
  62. package/dist/components/utils/popover/StyledPopover.js +43 -15
  63. package/dist/datetime/components/date-picker/StyledDatePicker.js +6 -6
  64. package/dist/datetime/components/date-picker/components/BaseDatePickerInput.js +1 -1
  65. package/dist/datetime/components/date-picker/components/HelperTextWithTooltip.js +6 -6
  66. package/dist/datetime/components/date-picker/components/StyledCalendarPicker.js +11 -11
  67. package/dist/datetime/components/date-picker/components/StyledCalendarPickerFooter.js +13 -14
  68. package/dist/datetime/components/date-picker/components/StyledCalendarPickerSelectMonth.js +14 -14
  69. package/dist/datetime/components/date-picker/components/StyledCalendarPickerSelectYear.js +6 -6
  70. package/dist/datetime/components/date-picker/components/StyledDayPicker.js +4 -5
  71. package/dist/datetime/components/date-picker/hooks/useDatePickerMask.js +4 -4
  72. package/dist/datetime/components/time-picker/StyledTimePicker.js +25 -25
  73. package/dist/datetime/components/time-picker/TimePickerInput.js +15 -16
  74. package/dist/datetime/components/time-picker/TimePickerPopper.js +21 -19
  75. package/dist/datetime/helpers/cn.js +4 -5
  76. package/dist/helpers/arrays.js +4 -0
  77. package/dist/helpers/cn.js +4 -5
  78. package/dist/helpers/inputMask.js +45 -0
  79. package/dist/helpers/sx.js +46 -0
  80. package/dist/index.js +183 -175
  81. package/dist/src/api-surface.test.d.ts +1 -0
  82. package/dist/src/components/data-display/badge/StyledBadge.d.ts +26 -2
  83. package/dist/src/components/data-display/chip/StyledChip.d.ts +39 -5
  84. package/dist/src/components/data-display/interactive-chip/StyledInteractiveChip.d.ts +11 -4
  85. package/dist/src/components/data-display/tooltip/StyledTooltip.d.ts +36 -2
  86. package/dist/src/components/data-display/typography/StyledTypography.d.ts +19 -1
  87. package/dist/src/components/feedback/dialog/StyledDialog.d.ts +37 -4
  88. package/dist/src/components/feedback/dialog/StyledDialogActions.d.ts +12 -2
  89. package/dist/src/components/feedback/dialog/StyledDialogContent.d.ts +12 -2
  90. package/dist/src/components/feedback/dialog/StyledDialogTitle.d.ts +10 -2
  91. package/dist/src/components/feedback/snack-bar/SnackbarProvider.d.ts +1 -1
  92. package/dist/src/components/feedback/snack-bar/StyledAlert.d.ts +24 -2
  93. package/dist/src/components/feedback/snack-bar/StyledAlertSnackbar.d.ts +1 -1
  94. package/dist/src/components/feedback/snack-bar/StyledSnackbar.d.ts +21 -2
  95. package/dist/src/components/feedback/snack-bar/components/StyledDefaultSnackbar.d.ts +1 -1
  96. package/dist/src/components/feedback/snack-bar/components/StyledInfoSnackbar.d.ts +1 -1
  97. package/dist/src/components/feedback/snack-bar/components/types.d.ts +1 -1
  98. package/dist/src/components/inputs/checkbox/base-ui/StyledCheckbox.d.ts +9 -4
  99. package/dist/src/components/inputs/dynamic-select/types.d.ts +2 -2
  100. package/dist/src/components/inputs/field-styles.d.ts +22 -0
  101. package/dist/src/components/inputs/input-field/StyledInputField.d.ts +67 -11
  102. package/dist/src/components/inputs/input-field/index.d.ts +1 -1
  103. package/dist/src/components/inputs/radio-button/base-ui/RadioGroupContext.d.ts +10 -0
  104. package/dist/src/components/inputs/radio-button/base-ui/StyledRadio.d.ts +20 -5
  105. package/dist/src/components/inputs/radio-button/base-ui/StyledRadioGroup.d.ts +24 -7
  106. package/dist/src/components/inputs/select/StyledSelect.d.ts +39 -16
  107. package/dist/src/components/inputs/select/StyledSelectItem.d.ts +14 -2
  108. package/dist/src/components/inputs/select/index.d.ts +0 -1
  109. package/dist/src/components/inputs/select-autocomplete/StyledSelectAutocomplete.d.ts +88 -17
  110. package/dist/src/components/inputs/slider/StyledSlider.d.ts +55 -3
  111. package/dist/src/components/inputs/switch/base-ui/StyledSwitch.d.ts +20 -4
  112. package/dist/src/components/miscellaneous/FormControlContext.d.ts +14 -0
  113. package/dist/src/components/miscellaneous/StyledFormControl.d.ts +22 -2
  114. package/dist/src/components/miscellaneous/StyledFormControlLabel.d.ts +21 -2
  115. package/dist/src/components/miscellaneous/StyledFormGroup.d.ts +11 -2
  116. package/dist/src/components/miscellaneous/StyledFormHelperText.d.ts +12 -2
  117. package/dist/src/components/miscellaneous/StyledInputLabel.d.ts +20 -2
  118. package/dist/src/components/mui-compat/Avatar.d.ts +6 -0
  119. package/dist/src/components/mui-compat/ClickAwayListener.d.ts +19 -0
  120. package/dist/src/components/mui-compat/Container.d.ts +6 -0
  121. package/dist/src/components/mui-compat/Fade.d.ts +21 -0
  122. package/dist/src/components/mui-compat/FormLabel.d.ts +6 -0
  123. package/dist/src/components/mui-compat/Paper.d.ts +6 -0
  124. package/dist/src/components/mui-compat/Popper.d.ts +29 -0
  125. package/dist/src/components/mui-compat/Skeleton.d.ts +7 -0
  126. package/dist/src/components/mui-compat/Stack.d.ts +7 -0
  127. package/dist/src/components/mui-compat/index.d.ts +9 -0
  128. package/dist/src/components/mui-compat/types.d.ts +46 -0
  129. package/dist/src/components/navigation/drawer/StyledDrawer.d.ts +21 -2
  130. package/dist/src/components/navigation/menu/StyledMenu.d.ts +25 -2
  131. package/dist/src/components/navigation/menu/StyledMenuItem.d.ts +21 -2
  132. package/dist/src/components/navigation/menu/StyledMenuList.d.ts +16 -2
  133. package/dist/src/components/navigation/menu/index.d.ts +0 -1
  134. package/dist/src/components/navigation/tabs/StyledTab.d.ts +17 -3
  135. package/dist/src/components/navigation/tabs/StyledTabs.d.ts +16 -7
  136. package/dist/src/components/navigation/tabs/TabsContext.d.ts +11 -0
  137. package/dist/src/components/utils/accordion/base-ui/AccordionContext.d.ts +10 -0
  138. package/dist/src/components/utils/accordion/base-ui/StyledAccordion.d.ts +9 -3
  139. package/dist/src/components/utils/accordion/base-ui/StyledAccordionDetails.d.ts +5 -0
  140. package/dist/src/components/utils/accordion/base-ui/StyledAccordionSummary.d.ts +8 -4
  141. package/dist/src/components/utils/copy-wrapper/CopyWrapper.d.ts +1 -1
  142. package/dist/src/components/utils/filter-menu/StyledFilterMenu.d.ts +2 -2
  143. package/dist/src/components/utils/popover/StyledPopover.d.ts +31 -2
  144. package/dist/src/datetime/components/date-picker/components/StyledCalendarPicker.d.ts +1 -1
  145. package/dist/src/datetime/components/date-picker/components/StyledDayPicker.d.ts +1 -1
  146. package/dist/src/datetime/components/date-picker/hooks/useDatePickerMask.d.ts +1 -2
  147. package/dist/src/datetime/components/time-picker/TimePickerInput.d.ts +1 -1
  148. package/dist/src/datetime/components/time-picker/TimePickerPopper.d.ts +1 -1
  149. package/dist/src/datetime/components/time-picker/types.d.ts +1 -2
  150. package/dist/src/datetime/shared-components/StyledFormControl.d.ts +1 -2
  151. package/dist/src/datetime/shared-components/StyledInputField.d.ts +1 -12
  152. package/dist/src/datetime/shared-components/StyledSelect.d.ts +1 -16
  153. package/dist/src/datetime/shared-components/StyledSelectItem.d.ts +1 -2
  154. package/dist/src/datetime/shared-components/StyledTooltip.d.ts +1 -2
  155. package/dist/src/helpers/arrays.d.ts +2 -0
  156. package/dist/src/helpers/arrays.test.d.ts +1 -0
  157. package/dist/src/helpers/inputMask.d.ts +29 -0
  158. package/dist/src/helpers/inputMask.test.d.ts +1 -0
  159. package/dist/src/helpers/sx.d.ts +2 -0
  160. package/dist/src/helpers/sx.test.d.ts +1 -0
  161. package/dist/src/index.d.ts +1 -1
  162. package/dist/src/table/shared-components/StyledCheckbox.d.ts +7 -4
  163. package/dist/src/table/shared-components/StyledMenuItem.d.ts +18 -2
  164. package/dist/src/table/shared-components/menu-item/index.d.ts +13 -2
  165. package/dist/src/table/shared-components/tooltip/index.d.ts +5 -1
  166. package/dist/src/table/types.d.ts +1 -1
  167. package/dist/table/components/Fetching.js +4 -4
  168. package/dist/table/components/TableRow.js +7 -7
  169. package/dist/table/components/TableSkeleton.js +6 -6
  170. package/dist/table/components/columns/action-column/components/HeaderActionMenu.js +24 -24
  171. package/dist/table/components/columns/action-column/components/RowActionMenu.js +26 -25
  172. package/dist/table/components/table-footer/TablePagination.js +27 -24
  173. package/dist/table/components/table-footer/TableRowCountSelect.js +30 -27
  174. package/dist/table/helpers/cn.js +4 -5
  175. package/dist/table/shared-components/StyledCheckbox.js +54 -55
  176. package/dist/table/shared-components/StyledCheckbox.module.js +10 -10
  177. package/dist/table/shared-components/StyledMenuItem.js +12 -18
  178. package/dist/table/shared-components/menu-item/index.js +13 -17
  179. package/dist/table/shared-components/tooltip/index.js +4 -23
  180. package/package.json +9 -16
  181. package/dist/components/feedback/dialog/StyledDialogActions.module.js +0 -8
  182. package/dist/components/feedback/dialog/StyledDialogContent.module.js +0 -4
  183. package/dist/components/feedback/dialog/StyledDialogTitle.module.js +0 -4
  184. package/dist/components/inputs/checkbox/StyledCheckbox.js +0 -20
  185. package/dist/components/inputs/radio-button/StyledRadio.js +0 -17
  186. package/dist/datetime/shared-components/ExpandIcon.js +0 -18
  187. package/dist/datetime/shared-components/StyledFormControl.js +0 -23
  188. package/dist/datetime/shared-components/StyledInputField.js +0 -47
  189. package/dist/datetime/shared-components/StyledSelect.js +0 -47
  190. package/dist/datetime/shared-components/StyledSelectItem.js +0 -13
  191. package/dist/datetime/shared-components/StyledTooltip.js +0 -32
  192. package/dist/src/components/inputs/checkbox/StyledCheckbox.d.ts +0 -4
  193. package/dist/src/components/inputs/radio-button/StyledRadio.d.ts +0 -4
  194. package/dist/src/components/inputs/radio-button/StyledRadioGroup.d.ts +0 -4
  195. package/dist/src/components/inputs/switch/StyledSwitch.d.ts +0 -5
  196. package/dist/src/components/utils/accordion/StyledAccordion.d.ts +0 -2
  197. package/dist/src/components/utils/accordion/StyledAccordionDetails.d.ts +0 -2
  198. package/dist/src/components/utils/accordion/StyledAccordionSummary.d.ts +0 -8
@@ -1,56 +1,82 @@
1
- import { ErrorOutlineIcon as c } from "../../icons/error-outline-icon/ErrorOutlineIcon.js";
2
- import { StyledFormHelperText as b } from "../../miscellaneous/StyledFormHelperText.js";
3
- import e from "clsx";
4
- import { Slider as n } from "@mui/material";
5
- import { Fragment as g, jsx as t, jsxs as l } from "react/jsx-runtime";
6
- var k = ({ dataTest: i, error: a, errorText: d, helperText: o, ...r }) => {
7
- const s = (a ?? !1) || (o ?? !1), m = a ? d ?? "Required" : o;
8
- return /* @__PURE__ */ l(g, { children: [/* @__PURE__ */ t(n, {
9
- ...r,
10
- "data-testid": i,
11
- slotProps: {
12
- ...r.slotProps,
13
- thumb: {
14
- className: e("h-4 w-4", "before:shadow-none", 'after:h-8 after:w-8 after:content-[""]', r.orientation === "vertical" ? "mb-1 ml-0" : "ml-1", r.disabled ? "bg-delta-200" : "bg-gama-500"),
15
- ...r.slotProps?.thumb
16
- },
17
- rail: {
18
- className: "bg-delta-200",
19
- ...r.slotProps?.rail
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
- }), s && /* @__PURE__ */ l(b, {
47
- className: e("m-0 flex items-center gap-1 pt-1 text-sm", a ? "text-error-500" : "text-delta-600"),
48
- children: [a && /* @__PURE__ */ t(c, {
49
- width: 20,
50
- height: 20
51
- }), m]
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
- k as StyledSlider
81
+ I as StyledSlider
56
82
  };
@@ -0,0 +1,10 @@
1
+ var r = "_SliderInput_irz5w_1", a = "_Horizontal_irz5w_15", l = "_Vertical_irz5w_24", _ = "_Small_irz5w_71", i = "_Disabled_irz5w_80", e = {
2
+ SliderInput: r,
3
+ Horizontal: a,
4
+ Vertical: l,
5
+ Small: _,
6
+ Disabled: i
7
+ };
8
+ export {
9
+ e as default
10
+ };
@@ -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 r from "./StyledSwitch.module.js";
3
- import { forwardRef as y, useState as N } from "react";
4
- import { jsx as t } from "react/jsx-runtime";
5
- import { Switch as d } from "@base-ui/react/switch";
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: e,
8
+ className: t,
9
9
  fill: "none",
10
- children: /* @__PURE__ */ t("rect", {
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: e = 11, height: o = 11, className: c = "", onClick: n, color: s }) => /* @__PURE__ */ t("svg", {
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: e,
21
- height: o,
20
+ width: t,
21
+ height: n,
22
22
  viewBox: "0 0 448 512",
23
- className: c,
24
- onClick: n,
25
- style: C(s),
23
+ className: i,
24
+ onClick: c,
25
+ style: C(r),
26
26
  "aria-hidden": "true",
27
27
  focusable: "false",
28
- children: /* @__PURE__ */ t("path", {
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
- }), M = y(({ checked: e, defaultChecked: o = !1, onChange: c, disabled: n, readOnly: s, required: f, id: a, dataTest: u, ...v }, w) => {
33
- const [g, p] = N(o), l = e !== void 0, h = l ? e : g, S = (i) => {
34
- l || p(i), c?.({ target: {
35
- checked: i,
36
- name: a
37
- } }, i);
38
- }, x = l ? { checked: h } : { defaultChecked: o }, m = r.iconContent;
39
- return /* @__PURE__ */ t(d.Root, {
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
- className: r.switch,
46
- onCheckedChange: S,
47
- disabled: n,
48
- readOnly: s,
49
- required: f,
50
- id: a,
51
- name: a,
52
- "data-testid": u,
53
- children: /* @__PURE__ */ t(d.Thumb, {
54
- className: r.thumb,
55
- children: /* @__PURE__ */ t("span", {
56
- className: r.icon,
57
- children: h ? /* @__PURE__ */ t(I, { className: m }) : /* @__PURE__ */ t(b, { className: m })
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
- M as StyledSwitch
68
+ q as StyledSwitch
64
69
  };
@@ -0,0 +1,6 @@
1
+ import { createContext as o, useContext as t } from "react";
2
+ var r = o(null), n = () => t(r);
3
+ export {
4
+ r as FormControlContext,
5
+ n as useFormControlContext
6
+ };
@@ -1,23 +1,41 @@
1
- import { FormControl as r } from "@mui/material";
2
- import { jsx as t } from "react/jsx-runtime";
3
- var l = (o) => /* @__PURE__ */ t(r, {
4
- ...o,
5
- sx: {
6
- ...o.sx,
7
- "& label.MuiInputLabel-shrink": {
8
- background: "white !important",
9
- color: "var(--colors-delta-800) !important"
10
- },
11
- "& label.MuiInputLabel-shrink.Mui-focused": {
12
- background: "white !important",
13
- color: "var(--colors-gama-500) !important"
14
- },
15
- "& label.MuiInputLabel-shrink.Mui-error.Mui-focused": {
16
- background: "white !important",
17
- color: "var(--colors-red-500) !important"
18
- }
19
- }
20
- });
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
- l as StyledFormControl
40
+ P as StyledFormControl
23
41
  };
@@ -1,18 +1,29 @@
1
- import { FormControlLabel as r } from "@mui/material";
2
- import { jsx as e } from "react/jsx-runtime";
3
- var i = ({ sx: o, ...l }) => /* @__PURE__ */ e(r, {
4
- ...l,
5
- sx: {
6
- color: "var(--colors-delta-800)",
7
- margin: 0,
8
- "& .MuiFormControlLabel-label": {
9
- fontSize: "14px",
10
- lineHeight: "20px"
11
- },
12
- "&.Mui-disabled .MuiFormControlLabel-label": { color: "var(--colors-delta-300)" },
13
- ...o
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
- i as StyledFormControlLabel
28
+ L as StyledFormControlLabel
18
29
  };
@@ -1,6 +1,18 @@
1
- import { FormGroup as o } from "@mui/material";
2
- import { jsx as m } from "react/jsx-runtime";
3
- var e = (r) => /* @__PURE__ */ m(o, { ...r });
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
- e as StyledFormGroup
17
+ v as StyledFormGroup
6
18
  };
@@ -1,6 +1,14 @@
1
- import { FormHelperText as e } from "@mui/material";
2
- import { jsx as o } from "react/jsx-runtime";
3
- var p = (r) => /* @__PURE__ */ o(e, { ...r });
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
- p as StyledFormHelperText
13
+ f as StyledFormHelperText
6
14
  };
@@ -1,6 +1,22 @@
1
- import { InputLabel as t } from "@mui/material";
2
- import { jsx as o } from "react/jsx-runtime";
3
- var m = (r) => /* @__PURE__ */ o(t, { ...r });
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
- m as StyledInputLabel
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,9 @@
1
+ var a = "_fadeIn_s274y_17", _ = "_fadeOut_s274y_21", e = {
2
+ fadeIn: a,
3
+ "fade-in": "_fade-in_s274y_1",
4
+ fadeOut: _,
5
+ "fade-out": "_fade-out_s274y_1"
6
+ };
7
+ export {
8
+ e as default
9
+ };
@@ -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
+ };