asma-ui-core 3.34.0 → 3.36.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 +28 -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 +44 -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 +50 -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 +28 -2
  130. package/dist/src/components/navigation/menu/StyledMenu.d.ts +33 -2
  131. package/dist/src/components/navigation/menu/StyledMenuItem.d.ts +23 -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 +32 -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,18 +1,18 @@
1
+ import { StyledPopover as D } from "../../../../../components/utils/popover/StyledPopover.js";
1
2
  import { INTERNAL_COLUMN_IDS as S } from "../../../../types.js";
2
- import { cn as D } from "../../../../helpers/cn.js";
3
- import { StyledCheckbox as N } from "../../../../shared-components/StyledCheckbox.js";
4
- import { StyledTooltip as T } from "../../../../shared-components/tooltip/index.js";
5
- import { useToggleMenuVisibility as A } from "../../../../hooks/useToggleMenuVisibility.hook.js";
6
- import { StyledButton as L } from "../../../../shared-components/button/StyledButton.js";
7
- import { PinIcon as _ } from "../../../../shared-components/PinIcon.js";
3
+ import { cn as N } from "../../../../helpers/cn.js";
4
+ import { StyledCheckbox as T } from "../../../../shared-components/StyledCheckbox.js";
5
+ import { StyledTooltip as A } from "../../../../shared-components/tooltip/index.js";
6
+ import { useToggleMenuVisibility as L } from "../../../../hooks/useToggleMenuVisibility.hook.js";
7
+ import { StyledButton as _ } from "../../../../shared-components/button/StyledButton.js";
8
+ import { PinIcon as k } from "../../../../shared-components/PinIcon.js";
8
9
  import a from "./TableActions.module.js";
9
10
  import c from "./HeaderActionMenu.module.js";
10
- import { DotsHorizontalIcon as k } from "../../../../shared-components/DotsHorizontalIcon.js";
11
- import { useTranslations as H } from "../../../../hooks/useTranslations.js";
12
- import { Popover as I } from "@mui/material";
11
+ import { DotsHorizontalIcon as H } from "../../../../shared-components/DotsHorizontalIcon.js";
12
+ import { useTranslations as I } from "../../../../hooks/useTranslations.js";
13
+ import { compact as O } from "../../../../../helpers/arrays.js";
13
14
  import { jsx as i, jsxs as d } from "react/jsx-runtime";
14
- import { compact as O } from "lodash-es";
15
- import { DndContext as M, PointerSensor as R, closestCenter as V, useSensor as E, useSensors as P } from "@dnd-kit/core";
15
+ import { DndContext as R, PointerSensor as V, closestCenter as E, useSensor as M, useSensors as P } from "@dnd-kit/core";
16
16
  import { restrictToParentElement as w, restrictToVerticalAxis as z } from "@dnd-kit/modifiers";
17
17
  import { SortableContext as W, arrayMove as j, useSortable as U, verticalListSortingStrategy as B } from "@dnd-kit/sortable";
18
18
  import { CSS as Y } from "@dnd-kit/utilities";
@@ -34,21 +34,21 @@ function $({ id: n, disabled: m, children: f }) {
34
34
  });
35
35
  }
36
36
  function ce({ headerData: n, locale: m }) {
37
- const { anchorEl: f, open: u, handleClose: p, handleOpen: h } = A(), b = n.table.getAllLeafColumns().some((e) => e.getCanHide() && !e.getIsVisible() && !S.includes(e.id)), l = n.table.getAllLeafColumns(), y = (e) => {
37
+ const { anchorEl: f, open: u, handleClose: p, handleOpen: h } = L(), b = n.table.getAllLeafColumns().some((e) => e.getCanHide() && !e.getIsVisible() && !S.includes(e.id)), l = n.table.getAllLeafColumns(), y = (e) => {
38
38
  const { active: o, over: t } = e;
39
39
  !o || !t || o.id === t.id || l.find((r) => r.id === t.id)?.columnDef.fixedLeft || l.find((r) => r.id === t.id)?.columnDef.fixedRight || n.table.setColumnOrder((r) => {
40
40
  const s = O(r).length ? r : n.table.getAllLeafColumns().map((C) => C.id);
41
41
  return j(s, s.indexOf(o.id), s.indexOf(t.id));
42
42
  });
43
- }, v = P(E(R, { activationConstraint: { distance: 8 } })), g = H(m), x = l.filter((e) => !S.includes(e.id) && !!e.columnDef.header);
43
+ }, v = P(M(V, { activationConstraint: { distance: 8 } })), g = I(m), x = l.filter((e) => !S.includes(e.id) && !!e.columnDef.header);
44
44
  return /* @__PURE__ */ d("div", {
45
45
  className: a["actions-header-wrapper"],
46
46
  children: [/* @__PURE__ */ d("button", {
47
47
  type: "button",
48
48
  className: a["actions-header"],
49
49
  onClick: h,
50
- children: [/* @__PURE__ */ i(_, { className: a["pin-icon"] }), b && /* @__PURE__ */ i("div", { className: a["pin-indicator"] })]
51
- }), /* @__PURE__ */ d(I, {
50
+ children: [/* @__PURE__ */ i(k, { className: a["pin-icon"] }), b && /* @__PURE__ */ i("div", { className: a["pin-indicator"] })]
51
+ }), /* @__PURE__ */ d(D, {
52
52
  anchorEl: f,
53
53
  anchorOrigin: {
54
54
  horizontal: "left",
@@ -56,15 +56,15 @@ function ce({ headerData: n, locale: m }) {
56
56
  },
57
57
  open: u,
58
58
  onClose: p,
59
- sx: { "& .MuiPaper-root": {
59
+ slotProps: { paper: { sx: {
60
60
  maxHeight: "calc(7 * 36px)",
61
61
  overflowY: "auto",
62
62
  scrollbarWidth: "thin"
63
- } },
64
- children: [/* @__PURE__ */ i(M, {
63
+ } } },
64
+ children: [/* @__PURE__ */ i(R, {
65
65
  modifiers: [z, w],
66
66
  onDragEnd: y,
67
- collisionDetection: (e) => V(e).filter((o) => {
67
+ collisionDetection: (e) => E(e).filter((o) => {
68
68
  const t = x.find((r) => r.id === o.id);
69
69
  return !t?.columnDef.fixedLeft && !t?.columnDef.fixedRight;
70
70
  }),
@@ -77,7 +77,7 @@ function ce({ headerData: n, locale: m }) {
77
77
  return /* @__PURE__ */ i($, {
78
78
  id: e.id,
79
79
  disabled: o,
80
- children: ({ listeners: s, attributes: C }) => /* @__PURE__ */ i(T, {
80
+ children: ({ listeners: s, attributes: C }) => /* @__PURE__ */ i(A, {
81
81
  title: r,
82
82
  arrow: !0,
83
83
  children: /* @__PURE__ */ d("button", {
@@ -87,7 +87,7 @@ function ce({ headerData: n, locale: m }) {
87
87
  },
88
88
  className: c["table-action-item"],
89
89
  children: [
90
- /* @__PURE__ */ i(k, {
90
+ /* @__PURE__ */ i(H, {
91
91
  width: 20,
92
92
  height: 20,
93
93
  ...C,
@@ -98,11 +98,11 @@ function ce({ headerData: n, locale: m }) {
98
98
  userSelect: "none",
99
99
  WebkitTouchCallout: "none"
100
100
  },
101
- className: D(c["drag-icon"], o ? c["drag-icon--disabled"] : c["drag-icon--enabled"])
101
+ className: N(c["drag-icon"], o ? c["drag-icon--disabled"] : c["drag-icon--enabled"])
102
102
  }),
103
103
  /* @__PURE__ */ i("span", {
104
104
  className: "px-2",
105
- children: /* @__PURE__ */ i(N, {
105
+ children: /* @__PURE__ */ i(T, {
106
106
  readOnly: t,
107
107
  dataTest: `${e.id}-column-visibility-checkbox`,
108
108
  size: "small",
@@ -123,7 +123,7 @@ function ce({ headerData: n, locale: m }) {
123
123
  })
124
124
  }), /* @__PURE__ */ i("div", {
125
125
  className: "pb-2 pl-2",
126
- children: /* @__PURE__ */ i(L, {
126
+ children: /* @__PURE__ */ i(_, {
127
127
  dataTest: "reset-order-button",
128
128
  variant: "text",
129
129
  size: "small",
@@ -1,21 +1,22 @@
1
- import { isCustomAction as M } from "../../../../types.js";
1
+ import { StyledPopover as T } from "../../../../../components/utils/popover/StyledPopover.js";
2
+ import { StyledMenuList as M } from "../../../../../components/navigation/menu/StyledMenuList.js";
3
+ import { isCustomAction as S } from "../../../../types.js";
2
4
  import { StyledTooltip as f } from "../../../../shared-components/tooltip/index.js";
3
- import { useToggleMenuVisibility as y } from "../../../../hooks/useToggleMenuVisibility.hook.js";
4
- import { DotsVerticalIcon as O } from "../../../../shared-components/DotsVerticalIcon.js";
5
- import { StyledMenuItem as j } from "../../../../shared-components/StyledMenuItem.js";
6
- import { StyledButton as A } from "../../../../shared-components/button/StyledButton.js";
7
- import { CircleWarningOutlineIcon as S } from "../../../../shared-components/CircleWarningOutlineIcon.js";
8
- import h, { useEffect as k, useMemo as D, useState as F } from "react";
9
- import { MenuList as I, Popover as V } from "@mui/material";
5
+ import { useToggleMenuVisibility as O } from "../../../../hooks/useToggleMenuVisibility.hook.js";
6
+ import { DotsVerticalIcon as j } from "../../../../shared-components/DotsVerticalIcon.js";
7
+ import { StyledMenuItem as A } from "../../../../shared-components/StyledMenuItem.js";
8
+ import { StyledButton as k } from "../../../../shared-components/button/StyledButton.js";
9
+ import { CircleWarningOutlineIcon as D } from "../../../../shared-components/CircleWarningOutlineIcon.js";
10
+ import h, { useEffect as F, useMemo as I, useState as V } from "react";
10
11
  import { jsx as t, jsxs as g } from "react/jsx-runtime";
11
- function J({ tableData: o, actions: w, rowActionsState: v }) {
12
- const { anchorEl: C, open: b, handleClose: s, handleOpen: x } = y(), i = w(o.row), n = v?.(o.row) ?? { state: "enabled" }, P = o.table.options.meta?.locale === "no" ? "Ingen handlinger tilgjengelig" : "No actions available", N = D(() => i.every((e) => "component" in e ? !1 : e.hide), [i]), d = i.length > 0 && !N, p = n.state === "enabled" && !d, T = n.state !== "hidden" && (d || p || n.state === "disabled"), [a, l] = F(!1);
13
- if (k(() => {
12
+ function K({ tableData: o, actions: w, rowActionsState: v }) {
13
+ const { anchorEl: C, open: b, handleClose: s, handleOpen: x } = O(), l = w(o.row), n = v?.(o.row) ?? { state: "enabled" }, P = o.table.options.meta?.locale === "no" ? "Ingen handlinger tilgjengelig" : "No actions available", y = I(() => l.every((e) => "component" in e ? !1 : e.hide), [l]), d = l.length > 0 && !y, p = n.state === "enabled" && !d, N = n.state !== "hidden" && (d || p || n.state === "disabled"), [a, i] = V(!1);
14
+ if (F(() => {
14
15
  if (!a) return;
15
- const e = window.setTimeout(() => l(!1), 1600);
16
+ const e = window.setTimeout(() => i(!1), 1600);
16
17
  return () => window.clearTimeout(e);
17
- }, [a]), !T) return /* @__PURE__ */ t("div", { className: "flex w-[40px] items-center justify-center" });
18
- const c = n.state === "disabled", u = /* @__PURE__ */ t(A, {
18
+ }, [a]), !N) return /* @__PURE__ */ t("div", { className: "flex w-[40px] items-center justify-center" });
19
+ const c = n.state === "disabled", u = /* @__PURE__ */ t(k, {
19
20
  dataTest: "",
20
21
  variant: "text",
21
22
  size: "small",
@@ -29,7 +30,7 @@ function J({ tableData: o, actions: w, rowActionsState: v }) {
29
30
  onMouseUp: (e) => {
30
31
  e.stopPropagation(), e.preventDefault();
31
32
  },
32
- children: /* @__PURE__ */ t(O, {
33
+ children: /* @__PURE__ */ t(j, {
33
34
  className: c ? "text-delta-300" : "text-delta-700",
34
35
  width: 20,
35
36
  height: 20
@@ -44,19 +45,19 @@ function J({ tableData: o, actions: w, rowActionsState: v }) {
44
45
  arrow: !0,
45
46
  placement: n.tooltipPlacement ?? "top",
46
47
  open: a,
47
- onOpen: () => l(!0),
48
- onClose: () => l(!1),
48
+ onOpen: () => i(!0),
49
+ onClose: () => i(!1),
49
50
  children: /* @__PURE__ */ t("span", {
50
51
  className: "cursor-not-allowed",
51
52
  onTouchStart: (e) => {
52
- e.stopPropagation(), e.preventDefault(), l(!0);
53
+ e.stopPropagation(), e.preventDefault(), i(!0);
53
54
  },
54
55
  onClick: (e) => {
55
56
  e.stopPropagation(), e.preventDefault();
56
57
  },
57
58
  children: u
58
59
  })
59
- }) : u, n.state === "enabled" && /* @__PURE__ */ t(V, {
60
+ }) : u, n.state === "enabled" && /* @__PURE__ */ t(T, {
60
61
  open: b,
61
62
  anchorEl: C,
62
63
  onClose: () => {
@@ -75,14 +76,14 @@ function J({ tableData: o, actions: w, rowActionsState: v }) {
75
76
  },
76
77
  children: p ? /* @__PURE__ */ g("div", {
77
78
  className: "flex items-center gap-2 p-3 text-delta-700",
78
- children: [/* @__PURE__ */ t(S, {
79
+ children: [/* @__PURE__ */ t(D, {
79
80
  width: 20,
80
81
  height: 20
81
82
  }), /* @__PURE__ */ t("span", { children: P })]
82
- }) : /* @__PURE__ */ t(I, {
83
+ }) : /* @__PURE__ */ t(M, {
83
84
  disablePadding: !0,
84
- children: i.map((e, m) => {
85
- if (M(e)) {
85
+ children: l.map((e, m) => {
86
+ if (S(e)) {
86
87
  const r = e.component(o.row, s);
87
88
  return h.isValidElement(r) ? /* @__PURE__ */ t(h.Fragment, { children: r }, m) : null;
88
89
  }
@@ -90,7 +91,7 @@ function J({ tableData: o, actions: w, rowActionsState: v }) {
90
91
  title: e?.tooltipTitle,
91
92
  arrow: !0,
92
93
  placement: e?.tooltipPlacement ?? "left",
93
- children: /* @__PURE__ */ t("span", { children: /* @__PURE__ */ t(j, {
94
+ children: /* @__PURE__ */ t("span", { children: /* @__PURE__ */ t(A, {
94
95
  className: e.className,
95
96
  disabled: e.disabled,
96
97
  onClick: () => {
@@ -112,5 +113,5 @@ function J({ tableData: o, actions: w, rowActionsState: v }) {
112
113
  });
113
114
  }
114
115
  export {
115
- J as RowActionMenu
116
+ K as RowActionMenu
116
117
  };
@@ -1,16 +1,17 @@
1
+ import { StyledPopover as y } from "../../../components/utils/popover/StyledPopover.js";
2
+ import { StyledMenuList as S } from "../../../components/navigation/menu/StyledMenuList.js";
1
3
  import c from "../StyledTable.module.js";
2
4
  import { StyledTooltip as g } from "../../shared-components/tooltip/index.js";
3
5
  import { ChevronDownIcon as I } from "../../shared-components/ChevronDownIcon.js";
4
- import { useToggleMenuVisibility as y } from "../../hooks/useToggleMenuVisibility.hook.js";
5
- import { StyledButton as h } from "../../shared-components/button/StyledButton.js";
6
+ import { useToggleMenuVisibility as N } from "../../hooks/useToggleMenuVisibility.hook.js";
7
+ import { StyledButton as m } from "../../shared-components/button/StyledButton.js";
6
8
  import { ChevronRightIcon as O } from "../../shared-components/ChevronRightIcon.js";
7
- import { ChevronLeftIcon as S } from "../../shared-components/ChevronLeftIcon.js";
8
- import { StyledMenuItem as w } from "../../shared-components/menu-item/index.js";
9
- import { useCallback as v, useMemo as P, useRef as N } from "react";
10
- import { MenuList as k, Popover as z } from "@mui/material";
11
- import { Fragment as $, jsx as e, jsxs as m } from "react/jsx-runtime";
12
- function H({ table: o, locale: C }) {
13
- const { anchorEl: s, open: p, handleClose: d, handleOpen: b } = y(), u = N(null), n = C === "no", f = P(() => ({
9
+ import { ChevronLeftIcon as w } from "../../shared-components/ChevronLeftIcon.js";
10
+ import { StyledMenuItem as k } from "../../shared-components/menu-item/index.js";
11
+ import { useCallback as v, useMemo as P, useRef as z } from "react";
12
+ import { Fragment as $, jsx as e, jsxs as h } from "react/jsx-runtime";
13
+ function V({ table: o, locale: C }) {
14
+ const { anchorEl: s, open: p, handleClose: d, handleOpen: b } = N(), u = z(null), n = C === "no", f = P(() => ({
14
15
  anchorOrigin: {
15
16
  vertical: -5,
16
17
  horizontal: "center"
@@ -32,12 +33,12 @@ function H({ table: o, locale: C }) {
32
33
  d,
33
34
  i
34
35
  ]);
35
- return /* @__PURE__ */ m($, { children: [
36
+ return /* @__PURE__ */ h($, { children: [
36
37
  /* @__PURE__ */ e(g, {
37
38
  title: n ? "Nåværende side" : "Current Page",
38
39
  children: /* @__PURE__ */ e("div", {
39
40
  ref: u,
40
- children: /* @__PURE__ */ m(h, {
41
+ children: /* @__PURE__ */ h(m, {
41
42
  dataTest: "current-page-button",
42
43
  variant: "outlined",
43
44
  size: "large",
@@ -59,24 +60,26 @@ function H({ table: o, locale: C }) {
59
60
  })
60
61
  })
61
62
  }),
62
- /* @__PURE__ */ e(z, {
63
+ /* @__PURE__ */ e(y, {
63
64
  open: p,
64
65
  anchorEl: s,
65
- slotProps: { paper: { sx: {
66
- width: s ? s.clientWidth : void 0,
67
- maxHeight: 288,
68
- overflowY: "auto"
69
- } } },
66
+ slotProps: { paper: {
67
+ className: "border border-solid border-delta-200",
68
+ sx: {
69
+ width: s ? s.clientWidth : void 0,
70
+ maxHeight: 288,
71
+ overflowY: "auto"
72
+ }
73
+ } },
70
74
  onClose: d,
71
75
  anchorOrigin: f.anchorOrigin,
72
76
  transformOrigin: f.transformOrigin,
73
- classes: { paper: "border border-solid border-delta-200" },
74
- children: /* @__PURE__ */ e(k, { children: x.map((t) => /* @__PURE__ */ e(w, {
77
+ children: /* @__PURE__ */ e(S, { children: x.map((t) => /* @__PURE__ */ e(k, {
75
78
  onClick: (r) => {
76
79
  r.stopPropagation(), r.preventDefault(), T(t);
77
80
  },
78
81
  selected: t === l,
79
- children: /* @__PURE__ */ m("span", {
82
+ children: /* @__PURE__ */ h("span", {
80
83
  className: "text-sm font-normal text-delta-700",
81
84
  children: [
82
85
  n ? "Side" : "Page",
@@ -88,7 +91,7 @@ function H({ table: o, locale: C }) {
88
91
  }),
89
92
  /* @__PURE__ */ e(g, {
90
93
  title: l === 1 ? "" : n ? "Forrige side" : "Previous Page",
91
- children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(h, {
94
+ children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(m, {
92
95
  dataTest: "prev-page-button",
93
96
  variant: "outlined",
94
97
  onClick: () => {
@@ -96,7 +99,7 @@ function H({ table: o, locale: C }) {
96
99
  },
97
100
  size: "large",
98
101
  disabled: !o.getCanPreviousPage(),
99
- startIcon: /* @__PURE__ */ e(S, {
102
+ startIcon: /* @__PURE__ */ e(w, {
100
103
  height: 24,
101
104
  width: 24
102
105
  })
@@ -104,7 +107,7 @@ function H({ table: o, locale: C }) {
104
107
  }),
105
108
  /* @__PURE__ */ e(g, {
106
109
  title: l === a ? "" : n ? "Neste side" : "Next Page",
107
- children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(h, {
110
+ children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(m, {
108
111
  dataTest: "next-page-button",
109
112
  variant: "outlined",
110
113
  onClick: () => {
@@ -121,5 +124,5 @@ function H({ table: o, locale: C }) {
121
124
  ] });
122
125
  }
123
126
  export {
124
- H as TablePagination
127
+ V as TablePagination
125
128
  };
@@ -1,9 +1,10 @@
1
- import { ChevronDownIcon as w } from "../../shared-components/ChevronDownIcon.js";
2
- import { useToggleMenuVisibility as O } from "../../hooks/useToggleMenuVisibility.hook.js";
3
- import { StyledButton as v } from "../../shared-components/button/StyledButton.js";
4
- import { StyledMenuItem as C } from "../../shared-components/menu-item/index.js";
5
- import { useCallback as S, useMemo as p } from "react";
6
- import { MenuList as b, Popover as x } from "@mui/material";
1
+ import { StyledPopover as w } from "../../../components/utils/popover/StyledPopover.js";
2
+ import { StyledMenuList as O } from "../../../components/navigation/menu/StyledMenuList.js";
3
+ import { ChevronDownIcon as S } from "../../shared-components/ChevronDownIcon.js";
4
+ import { useToggleMenuVisibility as v } from "../../hooks/useToggleMenuVisibility.hook.js";
5
+ import { StyledButton as C } from "../../shared-components/button/StyledButton.js";
6
+ import { StyledMenuItem as b } from "../../shared-components/menu-item/index.js";
7
+ import { useCallback as x, useMemo as d } from "react";
7
8
  import { Fragment as y, jsx as e, jsxs as s } from "react/jsx-runtime";
8
9
  var M = [
9
10
  5,
@@ -12,8 +13,8 @@ var M = [
12
13
  50,
13
14
  100
14
15
  ];
15
- function j({ table: n, locale: d }) {
16
- const { anchorEl: i, open: l, handleClose: a, handleOpen: h } = O(), r = n.getState().pagination.pageSize, c = d === "no", m = p(() => ({
16
+ function D({ table: n, locale: p }) {
17
+ const { anchorEl: i, open: l, handleClose: a, handleOpen: h } = v(), t = n.getState().pagination.pageSize, c = p === "no", m = d(() => ({
17
18
  anchorOrigin: {
18
19
  vertical: -5,
19
20
  horizontal: "center"
@@ -22,44 +23,46 @@ function j({ table: n, locale: d }) {
22
23
  vertical: "bottom",
23
24
  horizontal: "center"
24
25
  }
25
- }), []), g = p(() => {
26
- const o = /* @__PURE__ */ new Set([...M, r]);
27
- return Array.from(o).sort((t, f) => t - f);
28
- }, [r]), u = S((o) => {
26
+ }), []), g = d(() => {
27
+ const o = /* @__PURE__ */ new Set([...M, t]);
28
+ return Array.from(o).sort((r, f) => r - f);
29
+ }, [t]), u = x((o) => {
29
30
  n.setPageSize(o), a();
30
31
  }, [a, n]);
31
- return /* @__PURE__ */ s(y, { children: [/* @__PURE__ */ s(v, {
32
+ return /* @__PURE__ */ s(y, { children: [/* @__PURE__ */ s(C, {
32
33
  dataTest: "table-rows-count-button",
33
34
  variant: "outlined",
34
35
  size: "large",
35
36
  onClick: h,
36
- endIcon: /* @__PURE__ */ e(w, {
37
+ endIcon: /* @__PURE__ */ e(S, {
37
38
  className: `${l ? "rotate-180" : "rotate-0"} transition-transform duration-300`,
38
39
  height: 24,
39
40
  width: 24
40
41
  }),
41
42
  children: [
42
- r,
43
+ t,
43
44
  " ",
44
45
  c ? "rader" : "rows"
45
46
  ]
46
- }), /* @__PURE__ */ e(x, {
47
+ }), /* @__PURE__ */ e(w, {
47
48
  open: l,
48
49
  anchorEl: i,
49
- slotProps: { paper: { sx: {
50
- width: i ? i.clientWidth : void 0,
51
- maxHeight: 288,
52
- overflowY: "auto"
53
- } } },
50
+ slotProps: { paper: {
51
+ className: "border border-solid border-delta-200",
52
+ sx: {
53
+ width: i ? i.clientWidth : void 0,
54
+ maxHeight: 288,
55
+ overflowY: "auto"
56
+ }
57
+ } },
54
58
  onClose: a,
55
59
  anchorOrigin: m.anchorOrigin,
56
60
  transformOrigin: m.transformOrigin,
57
- classes: { paper: "border border-solid border-delta-200" },
58
- children: /* @__PURE__ */ e(b, { children: g.map((o) => /* @__PURE__ */ e(C, {
59
- onClick: (t) => {
60
- t.stopPropagation(), t.preventDefault(), u(o);
61
+ children: /* @__PURE__ */ e(O, { children: g.map((o) => /* @__PURE__ */ e(b, {
62
+ onClick: (r) => {
63
+ r.stopPropagation(), r.preventDefault(), u(o);
61
64
  },
62
- selected: r === o,
65
+ selected: t === o,
63
66
  children: /* @__PURE__ */ s("span", {
64
67
  className: "text-sm font-normal text-delta-700",
65
68
  children: [
@@ -72,5 +75,5 @@ function j({ table: n, locale: d }) {
72
75
  })] });
73
76
  }
74
77
  export {
75
- j as TableRowCountSelect
78
+ D as TableRowCountSelect
76
79
  };
@@ -1,8 +1,7 @@
1
- import { clsx as o } from "clsx";
2
- import { twMerge as t } from "tailwind-merge";
3
- function n(...r) {
4
- return t(o(r));
1
+ import { clsx as n } from "clsx";
2
+ function t(...r) {
3
+ return n(r);
5
4
  }
6
5
  export {
7
- n as cn
6
+ t as cn
8
7
  };
@@ -1,21 +1,20 @@
1
- import { cn as C } from "../helpers/cn.js";
1
+ import { cn as m } from "../helpers/cn.js";
2
2
  import e from "./StyledCheckbox.module.js";
3
- import p, { useEffect as E } from "react";
4
- import { jsx as t, jsxs as k } from "react/jsx-runtime";
5
- import { Checkbox as f } from "@base-ui/react/checkbox";
6
- var L = (n) => /* @__PURE__ */ k("svg", {
3
+ import L, { useEffect as C, useRef as f } from "react";
4
+ import { jsx as o, jsxs as k } from "react/jsx-runtime";
5
+ var E = (t) => /* @__PURE__ */ k("svg", {
7
6
  viewBox: "0 0 24 24",
8
7
  width: "100%",
9
8
  height: "100%",
10
9
  fill: "none",
11
- ...n,
12
- children: [/* @__PURE__ */ t("title", { children: "Indeterminate icon" }), /* @__PURE__ */ t("path", {
10
+ ...t,
11
+ children: [/* @__PURE__ */ o("title", { children: "Indeterminate icon" }), /* @__PURE__ */ o("path", {
13
12
  d: "M6 12H18",
14
13
  stroke: "currentColor",
15
- strokeWidth: n.strokeWidth ?? 3,
14
+ strokeWidth: t.strokeWidth ?? 3,
16
15
  strokeLinecap: "round"
17
16
  })]
18
- }), H = (n) => /* @__PURE__ */ k("svg", {
17
+ }), H = (t) => /* @__PURE__ */ k("svg", {
19
18
  viewBox: "0 0 24 24",
20
19
  width: "100%",
21
20
  height: "100%",
@@ -24,56 +23,56 @@ var L = (n) => /* @__PURE__ */ k("svg", {
24
23
  strokeWidth: 2,
25
24
  strokeLinecap: "round",
26
25
  strokeLinejoin: "round",
27
- ...n,
28
- children: [/* @__PURE__ */ t("title", { children: "Check icon" }), /* @__PURE__ */ t("path", { d: "M4 12l5 5L20 6" })]
29
- }), S = ({ dataTest: n, size: h = "medium", disabled: m, readOnly: c, indeterminate: i = !1, checked: x, disableRipple: v, hideWrapper: b, className: I, onChange: u, ...a }) => {
30
- const s = !!b, l = !v && !s && !m && !c, R = C(e.CheckboxWrapper, !s && e[`size-${h}`], s && e.HideWrapper, i && e.Indeterminate, c && e.ReadOnly, l && e.CheckboxHover, I), g = C(e.Checkbox, e[`size-${h}`], i && e.Indeterminate), w = i ? L : H, d = p.useRef(null), W = p.useCallback((o) => {
31
- if (o.stopPropagation(), !l) return;
32
- const r = document.createElement("span");
33
- r.className = e.CheckboxRipple ?? "", r.addEventListener("animationend", () => r.remove(), { once: !0 }), d.current?.appendChild(r);
34
- }, [l]);
35
- E(() => {
36
- const o = d.current;
37
- return () => {
38
- o?.replaceChildren();
39
- };
40
- }, []);
41
- const N = p.useCallback((o) => {
42
- if (c) return;
43
- const r = { target: {
44
- name: a.name,
45
- value: a.value,
46
- checked: o
47
- } };
48
- u?.(r, o);
49
- }, [
50
- u,
51
- a.name,
52
- a.value,
53
- c
54
- ]);
55
- return /* @__PURE__ */ k(f.Root, {
26
+ ...t,
27
+ children: [/* @__PURE__ */ o("title", { children: "Check icon" }), /* @__PURE__ */ o("path", { d: "M4 12l5 5L20 6" })]
28
+ }), M = ({ dataTest: t, size: l = "medium", disabled: d, readOnly: c, indeterminate: n = !1, checked: h, disableRipple: x, hideWrapper: v, className: b, onChange: g, ...I }) => {
29
+ const a = !!v, s = !x && !a && !d && !c, p = f(null), u = f(null);
30
+ C(() => {
31
+ p.current && (p.current.indeterminate = n);
32
+ }, [n]);
33
+ const R = m(e.CheckboxWrapper, !a && e[`size-${l}`], a && e.HideWrapper, n && e.Indeterminate, c && e.ReadOnly, s && e.CheckboxHover, b), w = m(e.Checkbox, e[`size-${l}`], n && e.Indeterminate), N = n ? E : H, W = L.useCallback((r) => {
34
+ if (r.stopPropagation(), !s) return;
35
+ const i = document.createElement("span");
36
+ i.className = e.CheckboxRipple ?? "", i.addEventListener("animationend", () => i.remove(), { once: !0 }), u.current?.appendChild(i);
37
+ }, [s]);
38
+ return C(() => {
39
+ const r = u.current;
40
+ return () => r?.replaceChildren();
41
+ }, []), /* @__PURE__ */ k("label", {
56
42
  className: R,
57
- "data-test": n,
58
- checked: x,
59
- disabled: m,
60
- readOnly: c,
61
- indeterminate: i,
43
+ "data-test": t,
62
44
  onPointerDown: W,
63
- onCheckedChange: N,
64
- ...a,
65
- children: [!s && l && /* @__PURE__ */ t("span", {
66
- ref: d,
67
- className: e.CheckboxRippleContainer
68
- }), /* @__PURE__ */ t("span", {
69
- className: g,
70
- children: /* @__PURE__ */ t(f.Indicator, {
71
- className: e.Indicator,
72
- children: /* @__PURE__ */ t(w, { strokeWidth: h === "small" ? 3 : 2 })
45
+ "data-checked": h && !n ? "" : void 0,
46
+ "data-unchecked": !h && !n ? "" : void 0,
47
+ "data-indeterminate": n ? "" : void 0,
48
+ "data-disabled": d ? "" : void 0,
49
+ children: [
50
+ /* @__PURE__ */ o("input", {
51
+ ref: p,
52
+ type: "checkbox",
53
+ className: "sr-only",
54
+ checked: h,
55
+ disabled: d,
56
+ readOnly: c,
57
+ onChange: (r) => {
58
+ c || g?.(r, r.target.checked);
59
+ },
60
+ ...I
61
+ }),
62
+ !a && s && /* @__PURE__ */ o("span", {
63
+ ref: u,
64
+ className: e.CheckboxRippleContainer
65
+ }),
66
+ /* @__PURE__ */ o("span", {
67
+ className: w,
68
+ children: /* @__PURE__ */ o("span", {
69
+ className: e.Indicator,
70
+ children: /* @__PURE__ */ o(N, { strokeWidth: l === "small" ? 3 : 2 })
71
+ })
73
72
  })
74
- })]
73
+ ]
75
74
  });
76
75
  };
77
76
  export {
78
- S as StyledCheckbox
77
+ M as StyledCheckbox
79
78
  };
@@ -1,17 +1,17 @@
1
- var e = "_CheckboxWrapper_1b4zf_1", _ = "_Checkbox_1b4zf_1", r = "_Indeterminate_1b4zf_28", a = "_ReadOnly_1b4zf_55", b = "_Indicator_1b4zf_64", p = "_HideWrapper_1b4zf_68", i = "_CheckboxHover_1b4zf_75", o = "_CheckboxRippleContainer_1b4zf_75", l = "_CheckboxRipple_1b4zf_75", z = "_ripple_1b4zf_1", d = {
1
+ var e = "_CheckboxWrapper_lq2x6_1", _ = "_Checkbox_lq2x6_1", r = "_Indeterminate_lq2x6_28", a = "_ReadOnly_lq2x6_55", l = "_Indicator_lq2x6_64", x = "_HideWrapper_lq2x6_68", p = "_CheckboxHover_lq2x6_75", i = "_CheckboxRippleContainer_lq2x6_75", o = "_CheckboxRipple_lq2x6_75", d = "_ripple_lq2x6_1", c = {
2
2
  CheckboxWrapper: e,
3
- "size-small": "_size-small_1b4zf_11",
4
- "size-medium": "_size-medium_1b4zf_15",
3
+ "size-small": "_size-small_lq2x6_11",
4
+ "size-medium": "_size-medium_lq2x6_15",
5
5
  Checkbox: _,
6
6
  Indeterminate: r,
7
7
  ReadOnly: a,
8
- Indicator: b,
9
- HideWrapper: p,
10
- CheckboxHover: i,
11
- CheckboxRippleContainer: o,
12
- CheckboxRipple: l,
13
- ripple: z
8
+ Indicator: l,
9
+ HideWrapper: x,
10
+ CheckboxHover: p,
11
+ CheckboxRippleContainer: i,
12
+ CheckboxRipple: o,
13
+ ripple: d
14
14
  };
15
15
  export {
16
- d as default
16
+ c as default
17
17
  };