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.
Files changed (201) hide show
  1. package/dist/asma-ui-core.css +1 -1
  2. package/dist/components/data-display/badge/StyledBadge.js +24 -29
  3. package/dist/components/data-display/chip/StyledChip.js +60 -45
  4. package/dist/components/data-display/interactive-chip/StyledInteractiveChip.js +38 -32
  5. package/dist/components/data-display/tooltip/StyledTooltip.js +33 -50
  6. package/dist/components/data-display/typography/StyledTypography.js +4 -62
  7. package/dist/components/feedback/dialog/StyledDialog.js +50 -70
  8. package/dist/components/feedback/dialog/StyledDialog.module.js +9 -2
  9. package/dist/components/feedback/dialog/StyledDialogActions.js +16 -16
  10. package/dist/components/feedback/dialog/StyledDialogActions.module.js +8 -0
  11. package/dist/components/feedback/dialog/StyledDialogContent.js +14 -17
  12. package/dist/components/feedback/dialog/StyledDialogContent.module.js +4 -0
  13. package/dist/components/feedback/dialog/StyledDialogTitle.js +13 -18
  14. package/dist/components/feedback/dialog/StyledDialogTitle.module.js +4 -0
  15. package/dist/components/feedback/minimizable-dialog/MinimizableDialog.js +57 -56
  16. package/dist/components/feedback/snack-bar/StyledAlert.js +14 -72
  17. package/dist/components/feedback/snack-bar/StyledSnackbar.js +8 -34
  18. package/dist/components/feedback/snack-bar/components/StyledDefaultSnackbar.js +34 -33
  19. package/dist/components/inputs/checkbox/StyledCheckbox.js +20 -0
  20. package/dist/components/inputs/checkbox/base-ui/StyledCheckbox.js +58 -55
  21. package/dist/components/inputs/checkbox/base-ui/StyledCheckbox.module.js +12 -12
  22. package/dist/components/inputs/dynamic-select/components/DynamicInteractiveChipGroup.js +1 -1
  23. package/dist/components/inputs/dynamic-select/components/DynamicSelectAutocomplete.js +1 -1
  24. package/dist/components/inputs/input-field/StyledInputField.js +81 -104
  25. package/dist/components/inputs/radio-button/StyledRadio.js +17 -0
  26. package/dist/components/inputs/radio-button/base-ui/StyledRadio.js +29 -40
  27. package/dist/components/inputs/radio-button/base-ui/StyledRadio.module.js +10 -10
  28. package/dist/components/inputs/radio-button/base-ui/StyledRadioGroup.js +23 -35
  29. package/dist/components/inputs/select/StyledSelect.js +45 -124
  30. package/dist/components/inputs/select/StyledSelectItem.js +23 -19
  31. package/dist/components/inputs/select-autocomplete/StyledSelectAutocomplete.js +151 -181
  32. package/dist/components/inputs/slider/StyledSlider.js +52 -78
  33. package/dist/components/inputs/switch/base-ui/StyledSwitch.js +39 -44
  34. package/dist/components/miscellaneous/StyledFormControl.js +21 -39
  35. package/dist/components/miscellaneous/StyledFormControlLabel.js +16 -27
  36. package/dist/components/miscellaneous/StyledFormGroup.js +4 -16
  37. package/dist/components/miscellaneous/StyledFormHelperText.js +4 -12
  38. package/dist/components/miscellaneous/StyledInputLabel.js +4 -20
  39. package/dist/components/navigation/drawer/StyledDrawer.js +4 -42
  40. package/dist/components/navigation/listbox/Listbox.js +7 -7
  41. package/dist/components/navigation/menu/StyledMenu.js +11 -28
  42. package/dist/components/navigation/menu/StyledMenuItem.js +18 -16
  43. package/dist/components/navigation/menu/StyledMenuList.js +4 -32
  44. package/dist/components/navigation/tabs/StyledTab.js +13 -25
  45. package/dist/components/navigation/tabs/StyledTabs.js +64 -112
  46. package/dist/components/utils/accordion/base-ui/StyledAccordion.js +21 -28
  47. package/dist/components/utils/accordion/base-ui/StyledAccordion.module.js +7 -7
  48. package/dist/components/utils/accordion/base-ui/StyledAccordionDetails.js +14 -28
  49. package/dist/components/utils/accordion/base-ui/StyledAccordionSummary.js +27 -31
  50. package/dist/components/utils/popover/StyledPopover.js +15 -44
  51. package/dist/datetime/components/date-picker/StyledDatePicker.js +6 -6
  52. package/dist/datetime/components/date-picker/components/BaseDatePickerInput.js +1 -1
  53. package/dist/datetime/components/date-picker/components/HelperTextWithTooltip.js +6 -6
  54. package/dist/datetime/components/date-picker/components/StyledCalendarPicker.js +11 -11
  55. package/dist/datetime/components/date-picker/components/StyledCalendarPickerFooter.js +14 -13
  56. package/dist/datetime/components/date-picker/components/StyledCalendarPickerSelectMonth.js +14 -14
  57. package/dist/datetime/components/date-picker/components/StyledCalendarPickerSelectYear.js +6 -6
  58. package/dist/datetime/components/date-picker/components/StyledDayPicker.js +5 -4
  59. package/dist/datetime/components/date-picker/hooks/useDatePickerMask.js +4 -4
  60. package/dist/datetime/components/time-picker/StyledTimePicker.js +25 -25
  61. package/dist/datetime/components/time-picker/TimePickerInput.js +16 -15
  62. package/dist/datetime/components/time-picker/TimePickerPopper.js +19 -21
  63. package/dist/datetime/helpers/cn.js +5 -4
  64. package/dist/datetime/shared-components/ExpandIcon.js +18 -0
  65. package/dist/datetime/shared-components/StyledFormControl.js +23 -0
  66. package/dist/datetime/shared-components/StyledInputField.js +47 -0
  67. package/dist/datetime/shared-components/StyledSelect.js +47 -0
  68. package/dist/datetime/shared-components/StyledSelectItem.js +13 -0
  69. package/dist/datetime/shared-components/StyledTooltip.js +32 -0
  70. package/dist/helpers/cn.js +5 -4
  71. package/dist/index.js +175 -185
  72. package/dist/src/components/data-display/badge/StyledBadge.d.ts +2 -26
  73. package/dist/src/components/data-display/chip/StyledChip.d.ts +5 -39
  74. package/dist/src/components/data-display/interactive-chip/StyledInteractiveChip.d.ts +4 -11
  75. package/dist/src/components/data-display/tooltip/StyledTooltip.d.ts +2 -36
  76. package/dist/src/components/data-display/typography/StyledTypography.d.ts +1 -19
  77. package/dist/src/components/feedback/dialog/StyledDialog.d.ts +4 -50
  78. package/dist/src/components/feedback/dialog/StyledDialogActions.d.ts +2 -12
  79. package/dist/src/components/feedback/dialog/StyledDialogContent.d.ts +2 -12
  80. package/dist/src/components/feedback/dialog/StyledDialogTitle.d.ts +2 -10
  81. package/dist/src/components/feedback/snack-bar/SnackbarProvider.d.ts +1 -1
  82. package/dist/src/components/feedback/snack-bar/StyledAlert.d.ts +2 -24
  83. package/dist/src/components/feedback/snack-bar/StyledAlertSnackbar.d.ts +1 -1
  84. package/dist/src/components/feedback/snack-bar/StyledSnackbar.d.ts +2 -21
  85. package/dist/src/components/feedback/snack-bar/components/StyledDefaultSnackbar.d.ts +1 -1
  86. package/dist/src/components/feedback/snack-bar/components/StyledInfoSnackbar.d.ts +1 -1
  87. package/dist/src/components/feedback/snack-bar/components/types.d.ts +1 -1
  88. package/dist/src/components/inputs/checkbox/StyledCheckbox.d.ts +4 -0
  89. package/dist/src/components/inputs/checkbox/base-ui/StyledCheckbox.d.ts +4 -9
  90. package/dist/src/components/inputs/dynamic-select/types.d.ts +2 -2
  91. package/dist/src/components/inputs/input-field/StyledInputField.d.ts +11 -67
  92. package/dist/src/components/inputs/input-field/index.d.ts +1 -1
  93. package/dist/src/components/inputs/radio-button/StyledRadio.d.ts +4 -0
  94. package/dist/src/components/inputs/radio-button/StyledRadioGroup.d.ts +4 -0
  95. package/dist/src/components/inputs/radio-button/base-ui/StyledRadio.d.ts +5 -20
  96. package/dist/src/components/inputs/radio-button/base-ui/StyledRadioGroup.d.ts +7 -24
  97. package/dist/src/components/inputs/select/StyledSelect.d.ts +16 -39
  98. package/dist/src/components/inputs/select/StyledSelectItem.d.ts +2 -14
  99. package/dist/src/components/inputs/select/index.d.ts +1 -0
  100. package/dist/src/components/inputs/select-autocomplete/StyledSelectAutocomplete.d.ts +17 -88
  101. package/dist/src/components/inputs/slider/StyledSlider.d.ts +3 -55
  102. package/dist/src/components/inputs/switch/StyledSwitch.d.ts +5 -0
  103. package/dist/src/components/inputs/switch/base-ui/StyledSwitch.d.ts +4 -20
  104. package/dist/src/components/miscellaneous/StyledFormControl.d.ts +2 -22
  105. package/dist/src/components/miscellaneous/StyledFormControlLabel.d.ts +2 -21
  106. package/dist/src/components/miscellaneous/StyledFormGroup.d.ts +2 -11
  107. package/dist/src/components/miscellaneous/StyledFormHelperText.d.ts +2 -12
  108. package/dist/src/components/miscellaneous/StyledInputLabel.d.ts +2 -20
  109. package/dist/src/components/navigation/drawer/StyledDrawer.d.ts +2 -28
  110. package/dist/src/components/navigation/menu/StyledMenu.d.ts +2 -33
  111. package/dist/src/components/navigation/menu/StyledMenuItem.d.ts +2 -23
  112. package/dist/src/components/navigation/menu/StyledMenuList.d.ts +2 -16
  113. package/dist/src/components/navigation/menu/index.d.ts +1 -0
  114. package/dist/src/components/navigation/tabs/StyledTab.d.ts +3 -17
  115. package/dist/src/components/navigation/tabs/StyledTabs.d.ts +7 -16
  116. package/dist/src/components/utils/accordion/StyledAccordion.d.ts +2 -0
  117. package/dist/src/components/utils/accordion/StyledAccordionDetails.d.ts +2 -0
  118. package/dist/src/components/utils/accordion/StyledAccordionSummary.d.ts +8 -0
  119. package/dist/src/components/utils/accordion/base-ui/StyledAccordion.d.ts +3 -9
  120. package/dist/src/components/utils/accordion/base-ui/StyledAccordionDetails.d.ts +0 -5
  121. package/dist/src/components/utils/accordion/base-ui/StyledAccordionSummary.d.ts +4 -8
  122. package/dist/src/components/utils/copy-wrapper/CopyWrapper.d.ts +1 -1
  123. package/dist/src/components/utils/filter-menu/StyledFilterMenu.d.ts +2 -2
  124. package/dist/src/components/utils/popover/StyledPopover.d.ts +2 -32
  125. package/dist/src/datetime/components/date-picker/components/StyledCalendarPicker.d.ts +1 -1
  126. package/dist/src/datetime/components/date-picker/components/StyledDayPicker.d.ts +1 -1
  127. package/dist/src/datetime/components/date-picker/hooks/useDatePickerMask.d.ts +2 -1
  128. package/dist/src/datetime/components/time-picker/TimePickerInput.d.ts +1 -1
  129. package/dist/src/datetime/components/time-picker/TimePickerPopper.d.ts +1 -1
  130. package/dist/src/datetime/components/time-picker/types.d.ts +2 -1
  131. package/dist/src/datetime/shared-components/StyledFormControl.d.ts +2 -1
  132. package/dist/src/datetime/shared-components/StyledInputField.d.ts +12 -1
  133. package/dist/src/datetime/shared-components/StyledSelect.d.ts +16 -1
  134. package/dist/src/datetime/shared-components/StyledSelectItem.d.ts +2 -1
  135. package/dist/src/datetime/shared-components/StyledTooltip.d.ts +2 -1
  136. package/dist/src/index.d.ts +1 -2
  137. package/dist/src/table/shared-components/StyledCheckbox.d.ts +4 -7
  138. package/dist/src/table/shared-components/StyledMenuItem.d.ts +2 -18
  139. package/dist/src/table/shared-components/menu-item/index.d.ts +2 -13
  140. package/dist/src/table/shared-components/tooltip/index.d.ts +1 -5
  141. package/dist/src/table/types.d.ts +1 -1
  142. package/dist/table/components/Fetching.js +4 -4
  143. package/dist/table/components/TableRow.js +7 -7
  144. package/dist/table/components/TableSkeleton.js +6 -6
  145. package/dist/table/components/columns/action-column/components/HeaderActionMenu.js +24 -24
  146. package/dist/table/components/columns/action-column/components/RowActionMenu.js +25 -26
  147. package/dist/table/components/table-footer/TablePagination.js +24 -27
  148. package/dist/table/components/table-footer/TableRowCountSelect.js +27 -30
  149. package/dist/table/helpers/cn.js +5 -4
  150. package/dist/table/shared-components/StyledCheckbox.js +55 -54
  151. package/dist/table/shared-components/StyledCheckbox.module.js +10 -10
  152. package/dist/table/shared-components/StyledMenuItem.js +18 -12
  153. package/dist/table/shared-components/menu-item/index.js +17 -13
  154. package/dist/table/shared-components/tooltip/index.js +23 -4
  155. package/package.json +16 -9
  156. package/dist/components/inputs/field-styles.js +0 -6
  157. package/dist/components/inputs/input-field/StyledInputField.module.js +0 -4
  158. package/dist/components/inputs/radio-button/base-ui/RadioGroupContext.js +0 -6
  159. package/dist/components/inputs/slider/StyledSlider.module.js +0 -10
  160. package/dist/components/miscellaneous/FormControlContext.js +0 -6
  161. package/dist/components/mui-compat/Avatar.js +0 -29
  162. package/dist/components/mui-compat/ClickAwayListener.js +0 -29
  163. package/dist/components/mui-compat/Container.js +0 -24
  164. package/dist/components/mui-compat/Fade.js +0 -29
  165. package/dist/components/mui-compat/Fade.module.js +0 -9
  166. package/dist/components/mui-compat/FormLabel.js +0 -22
  167. package/dist/components/mui-compat/Paper.js +0 -44
  168. package/dist/components/mui-compat/Popper.js +0 -35
  169. package/dist/components/mui-compat/Skeleton.js +0 -26
  170. package/dist/components/mui-compat/Stack.js +0 -24
  171. package/dist/components/navigation/tabs/TabsContext.js +0 -6
  172. package/dist/components/utils/accordion/base-ui/AccordionContext.js +0 -10
  173. package/dist/components/utils/virtual-list/VirtualList.js +0 -45
  174. package/dist/helpers/arrays.js +0 -4
  175. package/dist/helpers/inputMask.js +0 -45
  176. package/dist/helpers/sx.js +0 -46
  177. package/dist/src/api-surface.test.d.ts +0 -1
  178. package/dist/src/components/inputs/field-styles.d.ts +0 -22
  179. package/dist/src/components/inputs/radio-button/base-ui/RadioGroupContext.d.ts +0 -10
  180. package/dist/src/components/miscellaneous/FormControlContext.d.ts +0 -14
  181. package/dist/src/components/mui-compat/Avatar.d.ts +0 -6
  182. package/dist/src/components/mui-compat/ClickAwayListener.d.ts +0 -19
  183. package/dist/src/components/mui-compat/Container.d.ts +0 -6
  184. package/dist/src/components/mui-compat/Fade.d.ts +0 -21
  185. package/dist/src/components/mui-compat/FormLabel.d.ts +0 -6
  186. package/dist/src/components/mui-compat/Paper.d.ts +0 -6
  187. package/dist/src/components/mui-compat/Popper.d.ts +0 -29
  188. package/dist/src/components/mui-compat/Skeleton.d.ts +0 -7
  189. package/dist/src/components/mui-compat/Stack.d.ts +0 -7
  190. package/dist/src/components/mui-compat/index.d.ts +0 -9
  191. package/dist/src/components/mui-compat/types.d.ts +0 -46
  192. package/dist/src/components/navigation/tabs/TabsContext.d.ts +0 -11
  193. package/dist/src/components/utils/accordion/base-ui/AccordionContext.d.ts +0 -10
  194. package/dist/src/components/utils/virtual-list/VirtualList.d.ts +0 -28
  195. package/dist/src/components/utils/virtual-list/index.d.ts +0 -1
  196. package/dist/src/helpers/arrays.d.ts +0 -2
  197. package/dist/src/helpers/arrays.test.d.ts +0 -1
  198. package/dist/src/helpers/inputMask.d.ts +0 -29
  199. package/dist/src/helpers/inputMask.test.d.ts +0 -1
  200. package/dist/src/helpers/sx.d.ts +0 -2
  201. package/dist/src/helpers/sx.test.d.ts +0 -1
@@ -1,27 +1,15 @@
1
- import { cn as l } from "../../../helpers/cn.js";
2
- import { resolveSx as p } from "../../../helpers/sx.js";
3
- import { useTabsContext as f } from "./TabsContext.js";
4
- import { useCallback as x } from "react";
5
- import { jsx as u } from "react/jsx-runtime";
6
- var d = ({ value: n, label: i, disabled: r, className: s, sx: m, index: c }) => {
7
- const e = f(), t = n !== void 0 ? n : c, o = e ? e.value === t : !1;
8
- return /* @__PURE__ */ u("button", {
9
- ref: x((a) => {
10
- e?.register(t, a);
11
- }, [e, t]),
12
- type: "button",
13
- role: "tab",
14
- "aria-selected": o,
15
- "aria-disabled": r ? !0 : void 0,
16
- disabled: r,
17
- tabIndex: o ? 0 : -1,
18
- "data-tab-value": typeof t == "string" || typeof t == "number" ? String(t) : void 0,
19
- onClick: (a) => !r && e?.onSelect(a, t),
20
- className: l("inline-flex min-h-12 shrink-0 items-center justify-center whitespace-nowrap px-4 py-3 text-sm font-medium normal-case tracking-normal transition-colors", e?.size === "small" && "min-h-9 px-3 py-2", o ? "text-gama-500" : "text-gray-600", r && "text-gray-300", !r && "cursor-pointer hover:text-gama-500", s),
21
- style: p(m),
22
- children: i
23
- });
24
- };
1
+ import { Tab as o } from "@mui/material";
2
+ import { jsx as a } from "react/jsx-runtime";
3
+ var e = (r) => /* @__PURE__ */ a(o, {
4
+ ...r,
5
+ sx: {
6
+ textTransform: "none",
7
+ letterSpacing: "normal",
8
+ "&.MuiTab-textColorPrimary.Mui-selected": { color: "var(--colors-gama-500)" },
9
+ "&.MuiTab-textColorPrimary": { color: "var(--colors-gray-600)" },
10
+ "&.MuiTab-textColorPrimary.Mui-disabled": { color: "var(--colors-gray-300)" }
11
+ }
12
+ });
25
13
  export {
26
- d as StyledTab
14
+ e as StyledTab
27
15
  };
@@ -1,116 +1,68 @@
1
- import { cn as d } from "../../../helpers/cn.js";
2
- import { resolveSx as T } from "../../../helpers/sx.js";
3
- import { ChevronRightIcon as H } from "../../icons/chevron-right-icon/ChevronRightIcon.js";
4
- import { ChevronLeftIcon as K } from "../../icons/chevron-left-icon/ChevronLeftIcon.js";
5
- import { TabsContext as M } from "./TabsContext.js";
6
- import { Children as P, cloneElement as V, isValidElement as _, useCallback as u, useLayoutEffect as q, useMemo as z, useRef as R, useState as S } from "react";
7
- import { jsx as o, jsxs as E } from "react/jsx-runtime";
8
- var I = 120, Z = ({ value: n, onChange: m, variant: b = "standard", scrollButtons: w = "auto", centered: A, size: h = "default", className: N, sx: j, children: g }) => {
9
- const i = R(null), a = R(/* @__PURE__ */ new Map()), [x, W] = S({
10
- left: 0,
11
- width: 0
12
- }), [c, B] = S({
13
- left: !1,
14
- right: !1
15
- }), y = b === "scrollable", p = u((e, t) => {
16
- t ? a.current.set(e, t) : a.current.delete(e);
17
- }, []), v = u((e, t) => m?.(e, t), [m]), f = u(() => {
18
- const e = a.current.get(n), t = i.current;
19
- if (e && W({
20
- left: e.offsetLeft,
21
- width: e.offsetWidth
22
- }), t) {
23
- const { scrollLeft: l, scrollWidth: r, clientWidth: s } = t;
24
- B({
25
- left: l > 1,
26
- right: l + s < r - 1
27
- });
28
- }
29
- }, [n]);
30
- q(() => {
31
- f();
32
- const e = i.current;
33
- if (!e) return;
34
- const t = new ResizeObserver(f);
35
- return t.observe(e), () => t.disconnect();
36
- }, [f, g]);
37
- const k = (e) => {
38
- i.current?.scrollBy({
39
- left: e,
40
- behavior: "smooth"
41
- });
42
- }, D = (e) => {
43
- if (![
44
- "ArrowRight",
45
- "ArrowLeft",
46
- "Home",
47
- "End"
48
- ].includes(e.key)) return;
49
- e.preventDefault();
50
- const t = Array.from(a.current.values()).filter((s) => !s.disabled);
51
- if (t.length === 0) return;
52
- const l = t.findIndex((s) => s === document.activeElement);
53
- let r = l;
54
- e.key === "ArrowRight" ? r = (l + 1) % t.length : e.key === "ArrowLeft" ? r = (l - 1 + t.length) % t.length : e.key === "Home" ? r = 0 : e.key === "End" && (r = t.length - 1), t[r]?.focus();
55
- }, C = y && w !== !1 && (w === !0 || c.left || c.right), O = z(() => ({
56
- value: n,
57
- size: h,
58
- onSelect: v,
59
- register: p
60
- }), [
61
- n,
62
- h,
63
- v,
64
- p
65
- ]), L = "flex h-10 w-10 shrink-0 items-center justify-center self-center rounded-[10%] border border-delta-500 text-delta-700 transition-colors hover:bg-gama-50 disabled:invisible";
66
- return /* @__PURE__ */ o(M.Provider, {
67
- value: O,
68
- children: /* @__PURE__ */ E("div", {
69
- className: d("relative flex items-center rounded-t-lg bg-white px-4", N),
70
- style: T(j),
71
- children: [
72
- C && /* @__PURE__ */ o("button", {
73
- type: "button",
74
- "aria-label": "scroll tabs left",
75
- className: d(L, "mr-2"),
76
- disabled: !c.left,
77
- onClick: () => k(-I),
78
- children: /* @__PURE__ */ o(K, {
79
- width: 24,
80
- height: 24
81
- })
82
- }),
83
- /* @__PURE__ */ E("div", {
84
- ref: i,
85
- role: "tablist",
86
- "aria-orientation": "horizontal",
87
- onKeyDown: D,
88
- onScroll: f,
89
- className: d("relative flex border-b border-delta-200 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", y ? "flex-1 overflow-x-auto" : "w-full", b === "fullWidth" && "[&>*]:flex-1", A && "justify-center", h === "small" && "min-h-9"),
90
- children: [P.map(g, (e, t) => _(e) ? V(e, { index: t }) : e), /* @__PURE__ */ o("span", {
91
- "aria-hidden": !0,
92
- className: "absolute bottom-0 h-0.5 bg-gama-500 transition-all duration-300",
93
- style: {
94
- left: x.left,
95
- width: x.width
96
- }
97
- })]
98
- }),
99
- C && /* @__PURE__ */ o("button", {
100
- type: "button",
101
- "aria-label": "scroll tabs right",
102
- className: d(L, "ml-2"),
103
- disabled: !c.right,
104
- onClick: () => k(I),
105
- children: /* @__PURE__ */ o(H, {
106
- width: 24,
107
- height: 24
108
- })
109
- })
110
- ]
111
- })
1
+ import { cn as s } from "../../../helpers/cn.js";
2
+ import { Tabs as e } from "@mui/material";
3
+ import { jsx as l } from "react/jsx-runtime";
4
+ function n(r) {
5
+ return Array.isArray(r);
6
+ }
7
+ function d(r) {
8
+ return r != null && !Array.isArray(r);
9
+ }
10
+ var c = {
11
+ "& .MuiTabs-scroller": { borderBottom: "1px solid var(--colors-delta-200)" },
12
+ "& .MuiTabs-scrollButtons": {
13
+ border: "1px solid var(--colors-delta-500)",
14
+ width: 40,
15
+ height: 40,
16
+ borderRadius: "10%",
17
+ display: "none",
18
+ justifyContent: "center",
19
+ alignItems: "center",
20
+ alignSelf: "center",
21
+ "& svg": {
22
+ fontSize: 24,
23
+ color: "var(--colors-delta-700)"
24
+ },
25
+ "&:hover": { backgroundColor: "var(--colors-gama-50)" },
26
+ "&:first-of-type": { marginRight: "8px" },
27
+ "&:last-of-type": { marginLeft: "8px" },
28
+ transition: "opacity 0.3s ease, transform 0.3s ease",
29
+ opacity: 0,
30
+ transform: "scale(0)"
31
+ },
32
+ "& .MuiTabs-scrollButtons.Mui-disabled": { display: "none" },
33
+ "& .MuiTabs-scrollButtons:not(.Mui-disabled)": {
34
+ display: "flex",
35
+ opacity: 1,
36
+ transform: "scale(1)"
37
+ }
38
+ }, p = {
39
+ minHeight: 36,
40
+ "& .MuiTab-root": {
41
+ height: 36,
42
+ minHeight: 36,
43
+ paddingLeft: "12px",
44
+ paddingRight: "12px",
45
+ paddingTop: "8px",
46
+ paddingBottom: "8px"
47
+ }
48
+ }, f = ({ className: r, size: i = "default", sx: o, ...t }) => {
49
+ const a = [c];
50
+ return i === "small" && a.push(p), n(o) ? a.push(...o) : d(o) && a.push(o), /* @__PURE__ */ l(e, {
51
+ ...t,
52
+ className: s("relative rounded-t-lg bg-white px-4", r),
53
+ slotProps: {
54
+ ...t.slotProps,
55
+ indicator: {
56
+ style: {
57
+ background: "var(--colors-gama-500)",
58
+ color: "var(--colors-gama-500)"
59
+ },
60
+ ...t.slotProps?.indicator ?? {}
61
+ }
62
+ },
63
+ sx: a
112
64
  });
113
65
  };
114
66
  export {
115
- Z as StyledTabs
67
+ f as StyledTabs
116
68
  };
@@ -1,33 +1,26 @@
1
- import { cn as A } from "../../../../helpers/cn.js";
2
- import I from "./StyledAccordion.module.js";
3
- import { AccordionContext as S } from "./AccordionContext.js";
4
- import { useId as l, useMemo as y, useState as C } from "react";
5
- import { jsx as s } from "react/jsx-runtime";
6
- var N = ({ className: d, children: m, expanded: t, defaultExpanded: p, disabled: e, onChange: u, ...f }) => {
7
- const n = l(), r = l(), c = t !== void 0, [a, v] = C(!!p), o = c ? !!t : a, g = () => {
8
- const i = !o;
9
- c || v(i), u?.(i);
10
- }, x = y(() => ({
11
- open: o,
12
- toggle: g,
13
- disabled: e,
14
- triggerId: n,
15
- panelId: r
16
- }), [
17
- o,
18
- e,
19
- n,
20
- r
21
- ]);
22
- return /* @__PURE__ */ s("div", {
23
- ...f,
24
- className: A(I.AccordionRoot, d),
25
- children: /* @__PURE__ */ s(S.Provider, {
26
- value: x,
27
- children: m
1
+ import { cn as u } from "../../../../helpers/cn.js";
2
+ import s from "./StyledAccordion.module.js";
3
+ import "react";
4
+ import { jsx as t } from "react/jsx-runtime";
5
+ import { Accordion as e } from "@base-ui/react/accordion";
6
+ var g = ({ className: c, children: i, expanded: r, defaultExpanded: l, onChange: m, ...n }) => {
7
+ const o = "item", d = {
8
+ ...n,
9
+ type: "single",
10
+ className: u(s.AccordionRoot, c),
11
+ onValueChange: (a) => {
12
+ m?.(a.includes(o));
13
+ },
14
+ ...r !== void 0 ? { value: r ? [o] : [] } : { defaultValue: l ? [o] : [] }
15
+ };
16
+ return /* @__PURE__ */ t(e.Root, {
17
+ ...d,
18
+ children: /* @__PURE__ */ t(e.Item, {
19
+ value: o,
20
+ children: i
28
21
  })
29
22
  });
30
23
  };
31
24
  export {
32
- N as StyledAccordion
25
+ g as StyledAccordion
33
26
  };
@@ -1,12 +1,12 @@
1
- var r = "_AccordionRoot_p579g_1", _ = "_Trigger_p579g_9", g = "_Header_p579g_18", e = "_TriggerIcon_p579g_40", o = "_TriggerIconRight_p579g_48", a = "_Panel_p579g_56", n = "_Content_p579g_64", t = {
1
+ var r = "_AccordionRoot_wzlmo_1", o = "_Trigger_wzlmo_9", _ = "_Header_wzlmo_18", e = "_TriggerIcon_wzlmo_40", a = "_TriggerIconRight_wzlmo_48", g = "_Panel_wzlmo_56", l = "_Content_wzlmo_67", n = {
2
2
  AccordionRoot: r,
3
- Trigger: _,
4
- Header: g,
3
+ Trigger: o,
4
+ Header: _,
5
5
  TriggerIcon: e,
6
- TriggerIconRight: o,
7
- Panel: a,
8
- Content: n
6
+ TriggerIconRight: a,
7
+ Panel: g,
8
+ Content: l
9
9
  };
10
10
  export {
11
- t as default
11
+ n as default
12
12
  };
@@ -1,30 +1,16 @@
1
- import n from "./StyledAccordion.module.js";
2
- import { useAccordionContext as g } from "./AccordionContext.js";
3
- import { clsx as s } from "clsx";
4
- import { useEffect as h, useRef as v, useState as x } from "react";
5
- import { jsx as c } from "react/jsx-runtime";
6
- var C = ({ children: r, className: i, contentClassName: l, ...a }) => {
7
- const { open: d, panelId: m, triggerId: u } = g(), e = v(null), [f, p] = x(0);
8
- return h(() => {
9
- if (!e.current) return;
10
- const t = () => p(e.current?.scrollHeight ?? 0);
11
- t();
12
- const o = new ResizeObserver(t);
13
- return o.observe(e.current), () => o.disconnect();
14
- }, [r]), /* @__PURE__ */ c("div", {
15
- ...a,
16
- id: m,
17
- role: "region",
18
- "aria-labelledby": u,
19
- className: s(n.Panel, i),
20
- style: { "--accordion-panel-height": d ? `${f}px` : "0px" },
21
- children: /* @__PURE__ */ c("div", {
22
- ref: e,
23
- className: s(n.Content, l),
24
- children: r
25
- })
26
- });
27
- };
1
+ import o from "./StyledAccordion.module.js";
2
+ import { clsx as r } from "clsx";
3
+ import "react";
4
+ import { jsx as e } from "react/jsx-runtime";
5
+ import { Accordion as c } from "@base-ui/react/accordion";
6
+ var f = ({ children: m, className: t, contentClassName: i, ...l }) => /* @__PURE__ */ e(c.Panel, {
7
+ ...l,
8
+ className: r(o.Panel, t),
9
+ children: /* @__PURE__ */ e("div", {
10
+ className: r(o.Content, i),
11
+ children: m
12
+ })
13
+ });
28
14
  export {
29
- C as StyledAccordionDetails
15
+ f as StyledAccordionDetails
30
16
  };
@@ -1,39 +1,35 @@
1
- import { ChevronDownIcon as b } from "../../../icons/chevron-down-icon/ChevronDownIcon.js";
2
- import e from "./StyledAccordion.module.js";
3
- import { useAccordionContext as A } from "./AccordionContext.js";
1
+ import { ChevronDownIcon as a } from "../../../icons/chevron-down-icon/ChevronDownIcon.js";
2
+ import r from "./StyledAccordion.module.js";
4
3
  import o from "clsx";
5
4
  import "react";
6
- import { Fragment as c, jsx as t, jsxs as l } from "react/jsx-runtime";
7
- var _ = ({ size: d = "large", expandChevronRight: i, className: g, headerClassName: m, sx: p, children: n, onClick: x, ...h }) => {
8
- const { open: a, toggle: u, disabled: f, triggerId: y, panelId: I } = A(), r = d === "small", v = {
9
- "--trigger-height": r ? "48px" : "72px",
10
- "--trigger-padding-x": r ? "8px" : "16px",
11
- "--trigger-font-size": r ? "14px" : "18px",
12
- "--chevron-size": r ? "20px" : "24px",
5
+ import { Fragment as n, jsx as e, jsxs as s } from "react/jsx-runtime";
6
+ import { Accordion as c } from "@base-ui/react/accordion";
7
+ var N = ({ size: g = "large", expandChevronRight: m, className: l, headerClassName: d, sx: p, children: i, ...x }) => {
8
+ const t = g === "small", f = {
9
+ "--trigger-height": t ? "48px" : "72px",
10
+ "--trigger-padding-x": t ? "8px" : "16px",
11
+ "--trigger-font-size": t ? "14px" : "18px",
12
+ "--chevron-size": t ? "20px" : "24px",
13
13
  ...p
14
- }, s = /* @__PURE__ */ t(b, {
15
- className: o(e.TriggerIcon, i && e.TriggerIconRight),
16
- "data-state-icon": !0
17
- });
18
- return /* @__PURE__ */ t("h3", {
19
- className: o(e.Header, m),
20
- children: /* @__PURE__ */ t("button", {
21
- ...h,
22
- type: "button",
23
- id: y,
24
- "aria-expanded": a,
25
- "aria-controls": I,
26
- disabled: f,
27
- onClick: (S) => {
28
- x?.(S), u();
29
- },
30
- className: o(e.Trigger, g),
31
- style: v,
32
- "data-panel-open": a ? "" : void 0,
33
- children: i ? /* @__PURE__ */ l(c, { children: [n, s] }) : /* @__PURE__ */ l(c, { children: [s, n] })
14
+ };
15
+ return /* @__PURE__ */ e(c.Header, {
16
+ className: o(r.Header, d),
17
+ children: /* @__PURE__ */ e(c.Trigger, {
18
+ ...x,
19
+ nativeButton: !1,
20
+ render: /* @__PURE__ */ e("div", {}),
21
+ className: o(r.Trigger, l),
22
+ style: f,
23
+ children: m ? /* @__PURE__ */ s(n, { children: [i, /* @__PURE__ */ e(a, {
24
+ className: o(r.TriggerIcon, r.TriggerIconRight),
25
+ "data-state-icon": !0
26
+ })] }) : /* @__PURE__ */ s(n, { children: [/* @__PURE__ */ e(a, {
27
+ className: r.TriggerIcon,
28
+ "data-state-icon": !0
29
+ }), i] })
34
30
  })
35
31
  });
36
32
  };
37
33
  export {
38
- _ as StyledAccordionSummary
34
+ N as StyledAccordionSummary
39
35
  };
@@ -1,46 +1,17 @@
1
- import { cn as w } from "../../../helpers/cn.js";
2
- import { resolveSx as l } from "../../../helpers/sx.js";
3
- import { useMemo as x } from "react";
4
- import { jsx as i } from "react/jsx-runtime";
5
- import { FloatingPortal as z, autoUpdate as R, flip as A, offset as D, shift as M, useDismiss as N, useFloating as S, useInteractions as k, useMergeRefs as C } from "@floating-ui/react";
6
- var E = {
7
- vertical: "bottom",
8
- horizontal: "left"
9
- }, P = {
10
- vertical: "top",
11
- horizontal: "left"
12
- }, T = (e, t) => `${t.vertical === "bottom" ? "top" : t.vertical === "top" ? "bottom" : e.vertical === "top" ? "top" : "bottom"}${e.horizontal === "left" ? "-start" : e.horizontal === "right" ? "-end" : ""}`, j = ({ open: e, anchorEl: t, onClose: s, anchorOrigin: r = E, transformOrigin: a = P, id: n, className: p, sx: m, slotProps: o, onClick: c, children: f }) => {
13
- const { refs: d, floatingStyles: u, context: v } = S({
14
- open: e,
15
- placement: x(() => T(r, a), [r, a]),
16
- whileElementsMounted: R,
17
- elements: { reference: t ?? void 0 },
18
- middleware: [
19
- D(4),
20
- A({ padding: 8 }),
21
- M({ padding: 8 })
22
- ],
23
- onOpenChange: (y, F, b) => {
24
- y || s?.(F ?? {}, b === "escape-key" ? "escapeKeyDown" : "backdropClick");
25
- }
26
- }), { getFloatingProps: g } = k([N(v, {
27
- outsidePress: !0,
28
- escapeKey: !0
29
- })]), h = C([d.setFloating]);
30
- return e ? /* @__PURE__ */ i(z, { children: /* @__PURE__ */ i("div", {
31
- ref: h,
32
- id: n,
33
- style: {
34
- ...u,
35
- ...l(m),
36
- ...l(o?.paper?.sx),
37
- ...o?.paper?.style
38
- },
39
- ...g({ onClick: c }),
40
- className: w("z-[1300] overflow-auto rounded bg-white shadow-lg", p ?? "my-1", o?.paper?.className),
41
- children: f
42
- }) }) : null;
43
- };
1
+ import { Popover as a } from "@mui/material";
2
+ import { jsx as e } from "react/jsx-runtime";
3
+ var n = ({ anchorOrigin: o, transformOrigin: r, className: t, ...i }) => /* @__PURE__ */ e(a, {
4
+ anchorOrigin: o ?? {
5
+ vertical: "bottom",
6
+ horizontal: "left"
7
+ },
8
+ transformOrigin: r ?? {
9
+ vertical: "top",
10
+ horizontal: "left"
11
+ },
12
+ className: t ?? "my-1",
13
+ ...i
14
+ });
44
15
  export {
45
- j as StyledPopover
16
+ n as StyledPopover
46
17
  };
@@ -3,17 +3,17 @@ import { StyledDayPicker as k } from "./components/StyledDayPicker.js";
3
3
  import { StyledCalendarPicker as u } from "./components/StyledCalendarPicker.js";
4
4
  import { DatePickerInputIndex as x } from "./components/DatePickerInputIndex.js";
5
5
  import { useIsMobileView as C } from "../../hooks/useWindowWidthSize.hook.js";
6
- import { StyledDrawer as h } from "../../../components/navigation/drawer/StyledDrawer.js";
7
- import { useBackNavigationClose as v } from "../../hooks/useBackNavigationClose.hook.js";
6
+ import { useBackNavigationClose as h } from "../../hooks/useBackNavigationClose.hook.js";
8
7
  import { useState as s } from "react";
9
- import { Fragment as b, jsx as o, jsxs as y } from "react/jsx-runtime";
8
+ import { Drawer as v } from "@mui/material";
9
+ import { Fragment as b, jsx as o, jsxs as D } from "react/jsx-runtime";
10
10
  var j = (c) => {
11
11
  const a = C(), [e, n] = s(null), [p, m] = s(!1), [d, i] = s(!1), P = (l) => {
12
12
  n(l.currentTarget), f(l, m);
13
13
  }, r = () => {
14
14
  i(!0), n(null);
15
15
  };
16
- v({
16
+ h({
17
17
  open: !!e,
18
18
  onClose: r
19
19
  });
@@ -22,7 +22,7 @@ var j = (c) => {
22
22
  validateOnCalendarClose: d,
23
23
  onValidatedOnce: () => i(!1)
24
24
  };
25
- return /* @__PURE__ */ y(b, { children: [
25
+ return /* @__PURE__ */ D(b, { children: [
26
26
  /* @__PURE__ */ o(x, {
27
27
  datePickerProps: t,
28
28
  onClick: P
@@ -36,7 +36,7 @@ var j = (c) => {
36
36
  },
37
37
  positionAbove: p
38
38
  }),
39
- a && /* @__PURE__ */ o(h, {
39
+ a && /* @__PURE__ */ o(v, {
40
40
  anchor: "bottom",
41
41
  open: !!e,
42
42
  onClose: r,
@@ -1,5 +1,5 @@
1
- import { StyledInputField as G } from "../../../../components/inputs/input-field/StyledInputField.js";
2
1
  import { getValue as x } from "../helpers.js";
2
+ import { StyledInputField as G } from "../../../shared-components/StyledInputField.js";
3
3
  import { cn as J } from "../../../helpers/cn.js";
4
4
  import { DatePickerButton as K } from "./DatePickerButton.js";
5
5
  import { useDatePickerMask as L } from "../hooks/useDatePickerMask.js";
@@ -1,6 +1,6 @@
1
- import { StyledTooltip as a } from "../../../../components/data-display/tooltip/StyledTooltip.js";
2
- import { cn as s } from "../../../helpers/cn.js";
3
- import { OutlineErrorRounded as m } from "../../../shared-components/OutlineErrorRounded.js";
1
+ import { cn as a } from "../../../helpers/cn.js";
2
+ import { OutlineErrorRounded as s } from "../../../shared-components/OutlineErrorRounded.js";
3
+ import { StyledTooltip as m } from "../../../shared-components/StyledTooltip.js";
4
4
  import "react";
5
5
  import { Fragment as d, jsx as r, jsxs as p } from "react/jsx-runtime";
6
6
  var b = ({ text: e, hasError: i }) => {
@@ -8,8 +8,8 @@ var b = ({ text: e, hasError: i }) => {
8
8
  const t = i ? 35 : 40, o = e.length > t, n = o ? e.slice(0, t) + "…" : e, l = /* @__PURE__ */ p("div", {
9
9
  className: "flex items-start gap-1",
10
10
  children: [/* @__PURE__ */ r("div", {
11
- className: s("flex", "transform-gpu transition-all duration-300 ease-in-out"),
12
- children: i && /* @__PURE__ */ r(m, {
11
+ className: a("flex", "transform-gpu transition-all duration-300 ease-in-out"),
12
+ children: i && /* @__PURE__ */ r(s, {
13
13
  width: 20,
14
14
  height: 20,
15
15
  color: "var(--colors-error-500)"
@@ -27,7 +27,7 @@ var b = ({ text: e, hasError: i }) => {
27
27
  children: n
28
28
  })]
29
29
  });
30
- return o ? /* @__PURE__ */ r(a, {
30
+ return o ? /* @__PURE__ */ r(m, {
31
31
  title: e,
32
32
  placement: "right",
33
33
  arrow: !0,
@@ -1,25 +1,25 @@
1
- import { StyledPopover as n } from "../../../../components/utils/popover/StyledPopover.js";
2
- import { StyledDayPicker as c } from "./StyledDayPicker.js";
1
+ import { StyledDayPicker as n } from "./StyledDayPicker.js";
2
+ import { Popover as c } from "@mui/material";
3
3
  import { jsx as r } from "react/jsx-runtime";
4
- var h = ({ datePickerProps: e, popoverProps: t, positionAbove: o }) => {
5
- const { open: l, anchorEl: i, onClose: a } = t;
6
- return /* @__PURE__ */ r(n, {
7
- open: l,
8
- anchorEl: i,
4
+ var h = ({ datePickerProps: e, popoverProps: o, positionAbove: t }) => {
5
+ const { open: i, anchorEl: l, onClose: a } = o;
6
+ return /* @__PURE__ */ r(c, {
7
+ open: i,
8
+ anchorEl: l,
9
9
  onClose: a,
10
10
  anchorOrigin: {
11
- vertical: o ? "top" : 50,
11
+ vertical: t ? "top" : 50,
12
12
  horizontal: "left"
13
13
  },
14
14
  transformOrigin: {
15
- vertical: o ? "bottom" : "top",
15
+ vertical: t ? "bottom" : "top",
16
16
  horizontal: "left"
17
17
  },
18
18
  children: /* @__PURE__ */ r("div", {
19
19
  className: "p-4",
20
- children: /* @__PURE__ */ r(c, {
20
+ children: /* @__PURE__ */ r(n, {
21
21
  datePickerProps: e,
22
- popoverProps: t
22
+ popoverProps: o
23
23
  })
24
24
  })
25
25
  });