asma-ui-core 3.44.0 → 3.45.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 (298) hide show
  1. package/dist/asma-ui-core.css +1 -1
  2. package/dist/components/custom/module/header-layout/ToolbarActionGroup.js +2 -2
  3. package/dist/components/custom/module/module-title/StyledModuleTitle.module.js +1 -1
  4. package/dist/components/custom/widget/widget/StyledWidget.module.js +8 -8
  5. package/dist/components/custom/widget/widget-title/StyledWidgetTitle.module.js +1 -1
  6. package/dist/components/data-display/ai-disclosure/StyledAIDisclosure.js +7 -5
  7. package/dist/components/data-display/badge/StyledBadge.js +53 -23
  8. package/dist/components/data-display/chip/StyledChip.js +62 -59
  9. package/dist/components/data-display/chip/chipPadding.js +44 -0
  10. package/dist/components/data-display/form-label/components/StyledFormLabel.js +18 -10
  11. package/dist/components/data-display/form-label/styles/StyledFormLabel.module.js +4 -4
  12. package/dist/components/data-display/interactive-chip/StyledInteractiveChip.js +35 -39
  13. package/dist/components/data-display/interactive-chip/StyledInteractiveChip.module.js +4 -0
  14. package/dist/components/data-display/tooltip/StyledTooltip.js +51 -33
  15. package/dist/components/data-display/typography/StyledTypography.js +62 -4
  16. package/dist/components/feedback/dialog/StyledDialog.js +102 -39
  17. package/dist/components/feedback/dialog/StyledDialog.module.js +2 -9
  18. package/dist/components/feedback/dialog/StyledDialogActions.js +16 -16
  19. package/dist/components/feedback/dialog/StyledDialogContent.js +18 -14
  20. package/dist/components/feedback/dialog/StyledDialogTitle.js +18 -13
  21. package/dist/components/feedback/empty-page/StyledEmptyPage.js +4 -4
  22. package/dist/components/feedback/filtered-empty-state/StyledFilteredEmptyState.js +7 -7
  23. package/dist/components/feedback/minimizable-dialog/MinimizableDialog.js +123 -114
  24. package/dist/components/feedback/minimizable-dialog/components/CloseBtn.js +6 -5
  25. package/dist/components/feedback/minimizable-dialog/components/FullscreenBtn.js +13 -12
  26. package/dist/components/feedback/minimizable-dialog/components/MinimizeBtn.js +15 -13
  27. package/dist/components/feedback/minimizable-dialog/v2/MinimizableDialogV2.js +67 -61
  28. package/dist/components/feedback/snack-bar/StyledAlert.js +95 -14
  29. package/dist/components/feedback/snack-bar/StyledSnackbar.js +34 -8
  30. package/dist/components/feedback/snack-bar/components/StyledDefaultSnackbar.js +32 -33
  31. package/dist/components/feedback/snack-bar/components/StyledDefaultSnackbar.module.js +16 -16
  32. package/dist/components/icons/check-icon/CheckIcon.js +8 -7
  33. package/dist/components/inputs/button/StyledButton.js +22 -18
  34. package/dist/components/inputs/button/StyledButton.module.js +5 -5
  35. package/dist/components/inputs/checkbox/base-ui/StyledCheckbox.js +61 -55
  36. package/dist/components/inputs/checkbox/base-ui/StyledCheckbox.module.js +12 -11
  37. package/dist/components/inputs/dynamic-select/components/DynamicInteractiveChipGroup.js +54 -50
  38. package/dist/components/inputs/dynamic-select/components/DynamicSelectAutocomplete.js +107 -99
  39. package/dist/components/inputs/field-styles.js +8 -0
  40. package/dist/components/inputs/input-field/StyledInputField.js +188 -83
  41. package/dist/components/inputs/input-field/StyledInputField.module.js +10 -0
  42. package/dist/components/inputs/label/StyledLabel.js +19 -11
  43. package/dist/components/inputs/label/StyledLabel.module.js +1 -1
  44. package/dist/components/inputs/radio-button/base-ui/RadioGroupContext.js +6 -0
  45. package/dist/components/inputs/radio-button/base-ui/StyledRadio.js +43 -28
  46. package/dist/components/inputs/radio-button/base-ui/StyledRadio.module.js +7 -6
  47. package/dist/components/inputs/radio-button/base-ui/StyledRadioGroup.js +37 -24
  48. package/dist/components/inputs/search-field/StyledSearchField.js +49 -43
  49. package/dist/components/inputs/select/StyledSelect.js +170 -45
  50. package/dist/components/inputs/select/StyledSelectItem.js +19 -23
  51. package/dist/components/inputs/select-autocomplete/StyledSelectAutocomplete.js +228 -150
  52. package/dist/components/inputs/slider/StyledSlider.js +100 -52
  53. package/dist/components/inputs/slider/StyledSlider.module.js +10 -0
  54. package/dist/components/inputs/switch/base-ui/StyledSwitch.js +45 -38
  55. package/dist/components/inputs/switch/base-ui/StyledSwitch.module.js +4 -4
  56. package/dist/components/inputs/textarea/StyledTextarea.js +44 -43
  57. package/dist/components/inputs/textarea/StyledTextarea.module.js +1 -1
  58. package/dist/components/miscellaneous/FormControlContext.js +6 -0
  59. package/dist/components/miscellaneous/StyledFormControl.js +42 -21
  60. package/dist/components/miscellaneous/StyledFormControlLabel.js +29 -15
  61. package/dist/components/miscellaneous/StyledFormGroup.js +16 -4
  62. package/dist/components/miscellaneous/StyledFormHelperText.js +12 -4
  63. package/dist/components/miscellaneous/StyledInputLabel.js +20 -4
  64. package/dist/components/mui-compat/Avatar.js +34 -0
  65. package/dist/components/mui-compat/ClickAwayListener.js +42 -0
  66. package/dist/components/mui-compat/Container.js +24 -0
  67. package/dist/components/mui-compat/Fade.js +29 -0
  68. package/dist/components/mui-compat/Fade.module.js +9 -0
  69. package/dist/components/mui-compat/FormLabel.js +22 -0
  70. package/dist/components/mui-compat/Paper.js +44 -0
  71. package/dist/components/mui-compat/Popper.js +35 -0
  72. package/dist/components/mui-compat/Skeleton.js +27 -0
  73. package/dist/components/mui-compat/Stack.js +24 -0
  74. package/dist/components/navigation/drawer/StyledDrawer.js +45 -4
  75. package/dist/components/navigation/link/StyledLink.module.js +5 -5
  76. package/dist/components/navigation/listbox/Listbox.js +7 -7
  77. package/dist/components/navigation/menu/StyledMenu.js +28 -11
  78. package/dist/components/navigation/menu/StyledMenuItem.js +21 -19
  79. package/dist/components/navigation/menu/StyledMenuList.js +34 -4
  80. package/dist/components/navigation/tabs/StyledTab.js +28 -13
  81. package/dist/components/navigation/tabs/StyledTabs.js +115 -66
  82. package/dist/components/navigation/tabs/TabsContext.js +6 -0
  83. package/dist/components/utils/accordion/base-ui/AccordionContext.js +10 -0
  84. package/dist/components/utils/accordion/base-ui/StyledAccordion.js +28 -21
  85. package/dist/components/utils/accordion/base-ui/StyledAccordion.module.js +7 -7
  86. package/dist/components/utils/accordion/base-ui/StyledAccordionDetails.js +28 -14
  87. package/dist/components/utils/accordion/base-ui/StyledAccordionSummary.js +34 -27
  88. package/dist/components/utils/copy-wrapper/CopyButton.js +8 -7
  89. package/dist/components/utils/copy-wrapper/CopyWrapper.js +23 -20
  90. package/dist/components/utils/filter-menu/StyledFilterButton.js +14 -13
  91. package/dist/components/utils/filter-menu/StyledFilterMenu.js +16 -15
  92. package/dist/components/utils/popover/StyledPopover.js +51 -15
  93. package/dist/components/utils/virtual-list/VirtualList.js +46 -0
  94. package/dist/datetime/components/date-picker/StyledDatePicker.js +17 -17
  95. package/dist/datetime/components/date-picker/components/BaseDatePickerInput.js +98 -99
  96. package/dist/datetime/components/date-picker/components/DatePickerButton.js +11 -9
  97. package/dist/datetime/components/date-picker/components/StyledCalendarPicker.js +11 -11
  98. package/dist/datetime/components/date-picker/components/StyledCalendarPicker.module.js +20 -20
  99. package/dist/datetime/components/date-picker/components/StyledCalendarPickerCaption.js +8 -7
  100. package/dist/datetime/components/date-picker/components/StyledCalendarPickerFooter.js +13 -14
  101. package/dist/datetime/components/date-picker/components/StyledCalendarPickerSelectMonth.js +17 -24
  102. package/dist/datetime/components/date-picker/components/StyledCalendarPickerSelectYear.js +7 -8
  103. package/dist/datetime/components/date-picker/components/StyledDayPicker.js +4 -5
  104. package/dist/datetime/components/date-picker/helpers.js +7 -7
  105. package/dist/datetime/components/date-picker/hooks/useDatePickerMask.js +3 -7
  106. package/dist/datetime/components/time-picker/StyledTimePicker.js +25 -25
  107. package/dist/datetime/components/time-picker/StyledTimePicker.module.js +6 -6
  108. package/dist/datetime/components/time-picker/TimePickerInput.js +56 -50
  109. package/dist/datetime/components/time-picker/TimePickerPopper.js +22 -19
  110. package/dist/datetime/components/time-picker/components/TimePickerColumn.js +12 -12
  111. package/dist/datetime/components/time-picker/helpers/getTimeFromValue.js +3 -3
  112. package/dist/datetime/helpers/cn.js +4 -5
  113. package/dist/datetime/hooks/useWindowWidthSize.hook.js +1 -1
  114. package/dist/helpers/arrays.js +4 -0
  115. package/dist/helpers/classOverride.js +12 -0
  116. package/dist/helpers/cn.js +4 -5
  117. package/dist/helpers/inputMask.js +58 -0
  118. package/dist/helpers/sx.js +46 -0
  119. package/dist/hooks/useFocusTrap.hook.js +34 -0
  120. package/dist/hooks/useTopLayer.hook.js +25 -0
  121. package/dist/index.js +185 -175
  122. package/dist/src/api-surface.test.d.ts +1 -0
  123. package/dist/src/components/custom/module/header-layout/DynamicToolbar.d.ts +10 -0
  124. package/dist/src/components/custom/module/module-title/StyledModuleTitle.d.ts +4 -0
  125. package/dist/src/components/custom/widget/widget/StyledWidget.d.ts +8 -0
  126. package/dist/src/components/custom/widget/widget-header/StyledWidgetHeader.d.ts +4 -0
  127. package/dist/src/components/custom/widget/widget-title/StyledWidgetTitle.d.ts +4 -0
  128. package/dist/src/components/data-display/ai-disclosure/StyledAIDisclosure.d.ts +7 -0
  129. package/dist/src/components/data-display/badge/StyledBadge.d.ts +40 -2
  130. package/dist/src/components/data-display/chip/StyledChip.d.ts +74 -5
  131. package/dist/src/components/data-display/chip/chipPadding.d.ts +3 -0
  132. package/dist/src/components/data-display/form-label/types.d.ts +11 -0
  133. package/dist/src/components/data-display/interactive-chip/StyledInteractiveChip.d.ts +22 -4
  134. package/dist/src/components/data-display/tooltip/StyledTooltip.d.ts +43 -1
  135. package/dist/src/components/data-display/typography/StyledTypography.d.ts +32 -1
  136. package/dist/src/components/feedback/dialog/StyledDialog.d.ts +60 -4
  137. package/dist/src/components/feedback/dialog/StyledDialogActions.d.ts +12 -2
  138. package/dist/src/components/feedback/dialog/StyledDialogContent.d.ts +12 -2
  139. package/dist/src/components/feedback/dialog/StyledDialogTitle.d.ts +10 -2
  140. package/dist/src/components/feedback/empty-page/StyledEmptyPage.d.ts +6 -0
  141. package/dist/src/components/feedback/filtered-empty-state/StyledFilteredEmptyState.d.ts +7 -0
  142. package/dist/src/components/feedback/loading/StyledLoading.d.ts +9 -0
  143. package/dist/src/components/feedback/minimizable-dialog/v2/types.d.ts +13 -0
  144. package/dist/src/components/feedback/minimizable-dialog/v2/useControlledProps.d.ts +4 -2
  145. package/dist/src/components/feedback/minimizable-dialog/v2/useTranslations.d.ts +17 -12
  146. package/dist/src/components/feedback/snack-bar/SnackbarProvider.d.ts +1 -1
  147. package/dist/src/components/feedback/snack-bar/StyledAlert.d.ts +41 -2
  148. package/dist/src/components/feedback/snack-bar/StyledAlertSnackbar.d.ts +1 -1
  149. package/dist/src/components/feedback/snack-bar/StyledSnackbar.d.ts +25 -2
  150. package/dist/src/components/feedback/snack-bar/components/StyledDefaultSnackbar.d.ts +10 -1
  151. package/dist/src/components/feedback/snack-bar/components/StyledInfoSnackbar.d.ts +1 -1
  152. package/dist/src/components/feedback/snack-bar/components/types.d.ts +1 -1
  153. package/dist/src/components/inputs/button/StyledButton.d.ts +15 -1
  154. package/dist/src/components/inputs/checkbox/base-ui/StyledCheckbox.d.ts +33 -4
  155. package/dist/src/components/inputs/dynamic-select/StyledDynamicSelect.d.ts +16 -0
  156. package/dist/src/components/inputs/dynamic-select/types.d.ts +25 -14
  157. package/dist/src/components/inputs/field-styles.d.ts +27 -0
  158. package/dist/src/components/inputs/input-field/StyledInputField.d.ts +85 -10
  159. package/dist/src/components/inputs/input-field/index.d.ts +1 -1
  160. package/dist/src/components/inputs/label/StyledLabel.d.ts +13 -0
  161. package/dist/src/components/inputs/radio-button/base-ui/RadioGroupContext.d.ts +10 -0
  162. package/dist/src/components/inputs/radio-button/base-ui/StyledRadio.d.ts +60 -5
  163. package/dist/src/components/inputs/radio-button/base-ui/StyledRadioGroup.d.ts +30 -7
  164. package/dist/src/components/inputs/search-field/StyledSearchField.d.ts +9 -1
  165. package/dist/src/components/inputs/select/StyledSelect.d.ts +70 -16
  166. package/dist/src/components/inputs/select/StyledSelectItem.d.ts +14 -2
  167. package/dist/src/components/inputs/select/index.d.ts +0 -1
  168. package/dist/src/components/inputs/select-autocomplete/StyledSelectAutocomplete.d.ts +120 -17
  169. package/dist/src/components/inputs/slider/StyledSlider.d.ts +66 -3
  170. package/dist/src/components/inputs/switch/base-ui/StyledSwitch.d.ts +44 -4
  171. package/dist/src/components/inputs/textarea/StyledTextarea.d.ts +19 -0
  172. package/dist/src/components/miscellaneous/FormControlContext.d.ts +14 -0
  173. package/dist/src/components/miscellaneous/StyledFormControl.d.ts +27 -2
  174. package/dist/src/components/miscellaneous/StyledFormControlLabel.d.ts +21 -2
  175. package/dist/src/components/miscellaneous/StyledFormGroup.d.ts +11 -2
  176. package/dist/src/components/miscellaneous/StyledFormHelperText.d.ts +12 -2
  177. package/dist/src/components/miscellaneous/StyledInputLabel.d.ts +20 -2
  178. package/dist/src/components/mui-compat/Avatar.d.ts +6 -0
  179. package/dist/src/components/mui-compat/ClickAwayListener.d.ts +19 -0
  180. package/dist/src/components/mui-compat/Container.d.ts +6 -0
  181. package/dist/src/components/mui-compat/Fade.d.ts +21 -0
  182. package/dist/src/components/mui-compat/FormLabel.d.ts +6 -0
  183. package/dist/src/components/mui-compat/Paper.d.ts +6 -0
  184. package/dist/src/components/mui-compat/Popper.d.ts +29 -0
  185. package/dist/src/components/mui-compat/Skeleton.d.ts +7 -0
  186. package/dist/src/components/mui-compat/Stack.d.ts +7 -0
  187. package/dist/src/components/mui-compat/index.d.ts +9 -0
  188. package/dist/src/components/mui-compat/types.d.ts +46 -0
  189. package/dist/src/components/navigation/drawer/StyledDrawer.d.ts +33 -2
  190. package/dist/src/components/navigation/link/StyledLink.d.ts +13 -0
  191. package/dist/src/components/navigation/menu/StyledMenu.d.ts +33 -2
  192. package/dist/src/components/navigation/menu/StyledMenuItem.d.ts +35 -2
  193. package/dist/src/components/navigation/menu/StyledMenuList.d.ts +16 -2
  194. package/dist/src/components/navigation/menu/index.d.ts +0 -1
  195. package/dist/src/components/navigation/tabs/StyledTab.d.ts +27 -3
  196. package/dist/src/components/navigation/tabs/StyledTabs.d.ts +22 -7
  197. package/dist/src/components/navigation/tabs/TabsContext.d.ts +11 -0
  198. package/dist/src/components/utils/accordion/base-ui/AccordionContext.d.ts +10 -0
  199. package/dist/src/components/utils/accordion/base-ui/StyledAccordion.d.ts +9 -3
  200. package/dist/src/components/utils/accordion/base-ui/StyledAccordionDetails.d.ts +5 -0
  201. package/dist/src/components/utils/accordion/base-ui/StyledAccordionSummary.d.ts +16 -4
  202. package/dist/src/components/utils/copy-wrapper/CopyWrapper.d.ts +6 -1
  203. package/dist/src/components/utils/filter-menu/StyledFilterButton.d.ts +4 -0
  204. package/dist/src/components/utils/filter-menu/StyledFilterMenu.d.ts +8 -2
  205. package/dist/src/components/utils/popover/StyledPopover.d.ts +39 -2
  206. package/dist/src/components/utils/virtual-list/VirtualList.d.ts +32 -0
  207. package/dist/src/components/utils/virtual-list/index.d.ts +1 -0
  208. package/dist/src/datetime/components/date-picker/StyledDatePicker.d.ts +11 -0
  209. package/dist/src/datetime/components/date-picker/components/DatePickerButton.d.ts +2 -0
  210. package/dist/src/datetime/components/date-picker/components/StyledCalendarPicker.d.ts +1 -1
  211. package/dist/src/datetime/components/date-picker/components/StyledDayPicker.d.ts +1 -1
  212. package/dist/src/datetime/components/date-picker/hooks/useDatePickerMask.d.ts +1 -2
  213. package/dist/src/datetime/components/date-picker/hooks/useDatePickerValidation.d.ts +7 -5
  214. package/dist/src/datetime/components/time-picker/StyledTimePicker.d.ts +10 -0
  215. package/dist/src/datetime/components/time-picker/TimePickerInput.d.ts +1 -1
  216. package/dist/src/datetime/components/time-picker/TimePickerPopper.d.ts +1 -1
  217. package/dist/src/datetime/components/time-picker/types.d.ts +1 -2
  218. package/dist/src/datetime/hooks/useToggleMenuVisibility.hook.d.ts +6 -4
  219. package/dist/src/datetime/shared-components/StyledFormControl.d.ts +1 -2
  220. package/dist/src/datetime/shared-components/StyledInputField.d.ts +1 -12
  221. package/dist/src/datetime/shared-components/StyledSelect.d.ts +1 -16
  222. package/dist/src/datetime/shared-components/StyledSelectItem.d.ts +1 -2
  223. package/dist/src/datetime/shared-components/StyledTooltip.d.ts +1 -2
  224. package/dist/src/helpers/applyImportantPadding.d.ts +8 -0
  225. package/dist/src/helpers/arrays.d.ts +2 -0
  226. package/dist/src/helpers/arrays.test.d.ts +1 -0
  227. package/dist/src/helpers/classOverride.d.ts +21 -0
  228. package/dist/src/helpers/classOverride.test.d.ts +1 -0
  229. package/dist/src/helpers/inputMask.d.ts +40 -0
  230. package/dist/src/helpers/inputMask.test.d.ts +1 -0
  231. package/dist/src/helpers/sx.d.ts +2 -0
  232. package/dist/src/helpers/sx.test.d.ts +1 -0
  233. package/dist/src/hooks/useFocusTrap.hook.d.ts +10 -0
  234. package/dist/src/hooks/useTopLayer.hook.d.ts +49 -0
  235. package/dist/src/index.d.ts +2 -1
  236. package/dist/src/table/components/columns/helpers/useElementHeightPx.d.ts +6 -3
  237. package/dist/src/table/components/columns/helpers/useProxyHorizontalScrollSync.d.ts +9 -6
  238. package/dist/src/table/hooks/useToggleMenuVisibility.hook.d.ts +6 -4
  239. package/dist/src/table/hooks/useTranslations.d.ts +15 -8
  240. package/dist/src/table/shared-components/StyledCheckbox.d.ts +7 -4
  241. package/dist/src/table/shared-components/StyledMenuItem.d.ts +18 -2
  242. package/dist/src/table/shared-components/menu-item/index.d.ts +13 -2
  243. package/dist/src/table/shared-components/tooltip/index.d.ts +5 -1
  244. package/dist/src/table/types.d.ts +1 -1
  245. package/dist/table/components/Fetching.js +4 -4
  246. package/dist/table/components/StyledTable.module.js +48 -48
  247. package/dist/table/components/TableRow.js +7 -7
  248. package/dist/table/components/TableSkeleton.js +6 -6
  249. package/dist/table/components/columns/action-column/actionColumn.js +14 -11
  250. package/dist/table/components/columns/action-column/components/HeaderActionMenu.js +52 -49
  251. package/dist/table/components/columns/action-column/components/RowActionMenu.js +40 -36
  252. package/dist/table/components/columns/expandColumn.js +12 -9
  253. package/dist/table/components/table-footer/TablePagination.js +28 -25
  254. package/dist/table/components/table-footer/TableRowCountSelect.js +31 -28
  255. package/dist/table/components/table-header/TableHeaderCell.js +54 -45
  256. package/dist/table/custom-features/focus-rows/FocusRowsFeature.js +29 -25
  257. package/dist/table/helpers/cn.js +4 -5
  258. package/dist/table/hooks/useColumnVirtualizer.js +1 -1
  259. package/dist/table/hooks/usePersistedPageSize.js +6 -6
  260. package/dist/table/hooks/useTranslations.js +6 -4
  261. package/dist/table/hooks/useWindowWidthSize.hook.js +1 -1
  262. package/dist/table/shared-components/StyledCheckbox.js +54 -55
  263. package/dist/table/shared-components/StyledCheckbox.module.js +9 -9
  264. package/dist/table/shared-components/StyledMenuItem.js +14 -17
  265. package/dist/table/shared-components/button/StyledButton.module.js +8 -8
  266. package/dist/table/shared-components/menu-item/index.js +15 -16
  267. package/dist/table/shared-components/tooltip/index.js +4 -23
  268. package/package.json +9 -18
  269. package/src/styles/components-colors/inputVariables.css +59 -57
  270. package/src/styles/index.css +38 -0
  271. package/dist/components/feedback/dialog/StyledDialogActions.module.js +0 -8
  272. package/dist/components/feedback/dialog/StyledDialogContent.module.js +0 -4
  273. package/dist/components/feedback/dialog/StyledDialogTitle.module.js +0 -4
  274. package/dist/components/icons/arrow-expand/ArrowExpand.js +0 -18
  275. package/dist/components/icons/arrow-expand/index.js +0 -1
  276. package/dist/components/icons/arrow-shrink/ArrowShrink.js +0 -18
  277. package/dist/components/icons/arrow-shrink/index.js +0 -1
  278. package/dist/components/inputs/checkbox/StyledCheckbox.js +0 -20
  279. package/dist/components/inputs/radio-button/StyledRadio.js +0 -17
  280. package/dist/datetime/components/date-picker/components/HelperTextWithTooltip.js +0 -39
  281. package/dist/datetime/shared-components/ExpandIcon.js +0 -18
  282. package/dist/datetime/shared-components/StyledFormControl.js +0 -23
  283. package/dist/datetime/shared-components/StyledInputField.js +0 -47
  284. package/dist/datetime/shared-components/StyledSelect.js +0 -47
  285. package/dist/datetime/shared-components/StyledSelectItem.js +0 -13
  286. package/dist/datetime/shared-components/StyledTooltip.js +0 -32
  287. package/dist/src/components/icons/arrow-expand/ArrowExpand.d.ts +0 -2
  288. package/dist/src/components/icons/arrow-expand/index.d.ts +0 -1
  289. package/dist/src/components/icons/arrow-shrink/ArrowShrink.d.ts +0 -2
  290. package/dist/src/components/icons/arrow-shrink/index.d.ts +0 -1
  291. package/dist/src/components/inputs/checkbox/StyledCheckbox.d.ts +0 -4
  292. package/dist/src/components/inputs/radio-button/StyledRadio.d.ts +0 -4
  293. package/dist/src/components/inputs/radio-button/StyledRadioGroup.d.ts +0 -4
  294. package/dist/src/components/inputs/switch/StyledSwitch.d.ts +0 -5
  295. package/dist/src/components/utils/accordion/StyledAccordion.d.ts +0 -2
  296. package/dist/src/components/utils/accordion/StyledAccordionDetails.d.ts +0 -2
  297. package/dist/src/components/utils/accordion/StyledAccordionSummary.d.ts +0 -8
  298. package/dist/src/datetime/components/date-picker/components/HelperTextWithTooltip.d.ts +0 -5
@@ -1,70 +1,73 @@
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";
8
- import a from "./TableActions.module.js";
9
- 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";
13
- 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";
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";
9
+ import m from "./TableActions.module.js";
10
+ import f from "./HeaderActionMenu.module.js";
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";
14
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
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";
19
- function $({ id: n, disabled: m, children: f }) {
20
- const { attributes: u, listeners: p, setNodeRef: h, transform: b, transition: l } = U({
19
+ function $({ id: n, disabled: p, children: u }) {
20
+ const { attributes: d, listeners: h, setNodeRef: b, transform: g, transition: l } = U({
21
21
  id: n,
22
- disabled: m
22
+ disabled: p
23
23
  });
24
24
  return /* @__PURE__ */ i("div", {
25
- ref: h,
25
+ ref: b,
26
26
  style: {
27
- transform: Y.Transform.toString(b),
27
+ transform: Y.Transform.toString(g),
28
28
  transition: l
29
29
  },
30
- children: f({
31
- attributes: u,
32
- listeners: p
30
+ children: u({
31
+ attributes: d,
32
+ listeners: h
33
33
  })
34
34
  });
35
35
  }
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) => {
36
+ function ce({ headerData: n, locale: p }) {
37
+ const { anchorEl: u, open: d, handleClose: h, handleOpen: b } = L(), g = 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);
44
- return /* @__PURE__ */ d("div", {
45
- className: a["actions-header-wrapper"],
46
- children: [/* @__PURE__ */ d("button", {
43
+ }, v = P(M(V, { activationConstraint: { distance: 8 } })), c = I(p), x = l.filter((e) => !S.includes(e.id) && !!e.columnDef.header);
44
+ return /* @__PURE__ */ a("div", {
45
+ className: m["actions-header-wrapper"],
46
+ children: [/* @__PURE__ */ a("button", {
47
47
  type: "button",
48
- className: a["actions-header"],
49
- onClick: h,
50
- children: [/* @__PURE__ */ i(_, { className: a["pin-icon"] }), b && /* @__PURE__ */ i("div", { className: a["pin-indicator"] })]
51
- }), /* @__PURE__ */ d(I, {
52
- anchorEl: f,
48
+ "aria-label": c.column_settings,
49
+ "aria-haspopup": "true",
50
+ "aria-expanded": d,
51
+ className: m["actions-header"],
52
+ onClick: b,
53
+ children: [/* @__PURE__ */ i(k, { className: m["pin-icon"] }), g && /* @__PURE__ */ i("div", { className: m["pin-indicator"] })]
54
+ }), /* @__PURE__ */ a(D, {
55
+ anchorEl: u,
53
56
  anchorOrigin: {
54
57
  horizontal: "left",
55
58
  vertical: "bottom"
56
59
  },
57
- open: u,
58
- onClose: p,
59
- sx: { "& .MuiPaper-root": {
60
+ open: d,
61
+ onClose: h,
62
+ slotProps: { paper: { sx: {
60
63
  maxHeight: "calc(7 * 36px)",
61
64
  overflowY: "auto",
62
65
  scrollbarWidth: "thin"
63
- } },
64
- children: [/* @__PURE__ */ i(M, {
66
+ } } },
67
+ children: [/* @__PURE__ */ i(R, {
65
68
  modifiers: [z, w],
66
69
  onDragEnd: y,
67
- collisionDetection: (e) => V(e).filter((o) => {
70
+ collisionDetection: (e) => E(e).filter((o) => {
68
71
  const t = x.find((r) => r.id === o.id);
69
72
  return !t?.columnDef.fixedLeft && !t?.columnDef.fixedRight;
70
73
  }),
@@ -73,21 +76,21 @@ function ce({ headerData: n, locale: m }) {
73
76
  items: x.map((e) => e.id),
74
77
  strategy: B,
75
78
  children: x.map((e) => {
76
- const o = !!e.columnDef.fixedLeft || !!e.columnDef.fixedRight, t = e.columnDef.enableHiding === !1, r = o || t ? /* @__PURE__ */ d("div", { children: [o && g.column_reorder, t && g.column_hidden] }) : null;
79
+ const o = !!e.columnDef.fixedLeft || !!e.columnDef.fixedRight, t = e.columnDef.enableHiding === !1, r = o || t ? /* @__PURE__ */ a("div", { children: [o && c.column_reorder, t && c.column_hidden] }) : null;
77
80
  return /* @__PURE__ */ i($, {
78
81
  id: e.id,
79
82
  disabled: o,
80
- children: ({ listeners: s, attributes: C }) => /* @__PURE__ */ i(T, {
83
+ children: ({ listeners: s, attributes: C }) => /* @__PURE__ */ i(A, {
81
84
  title: r,
82
85
  arrow: !0,
83
- children: /* @__PURE__ */ d("button", {
86
+ children: /* @__PURE__ */ a("button", {
84
87
  type: "button",
85
88
  onClick: () => {
86
89
  t || e.toggleVisibility(!e.getIsVisible());
87
90
  },
88
- className: c["table-action-item"],
91
+ className: f["table-action-item"],
89
92
  children: [
90
- /* @__PURE__ */ i(k, {
93
+ /* @__PURE__ */ i(H, {
91
94
  width: 20,
92
95
  height: 20,
93
96
  ...C,
@@ -98,11 +101,11 @@ function ce({ headerData: n, locale: m }) {
98
101
  userSelect: "none",
99
102
  WebkitTouchCallout: "none"
100
103
  },
101
- className: D(c["drag-icon"], o ? c["drag-icon--disabled"] : c["drag-icon--enabled"])
104
+ className: N(f["drag-icon"], o ? f["drag-icon--disabled"] : f["drag-icon--enabled"])
102
105
  }),
103
106
  /* @__PURE__ */ i("span", {
104
107
  className: "px-2",
105
- children: /* @__PURE__ */ i(N, {
108
+ children: /* @__PURE__ */ i(T, {
106
109
  readOnly: t,
107
110
  dataTest: `${e.id}-column-visibility-checkbox`,
108
111
  size: "small",
@@ -112,7 +115,7 @@ function ce({ headerData: n, locale: m }) {
112
115
  })
113
116
  }),
114
117
  /* @__PURE__ */ i("span", {
115
- className: "font-roboto text-sm text-delta-700",
118
+ className: "font-roboto text-base text-delta-700",
116
119
  children: e.columnDef.pinnedHeaderText ?? (typeof e.columnDef.header == "string" ? e.columnDef.header : e.id)
117
120
  })
118
121
  ]
@@ -123,12 +126,12 @@ function ce({ headerData: n, locale: m }) {
123
126
  })
124
127
  }), /* @__PURE__ */ i("div", {
125
128
  className: "pb-2 pl-2",
126
- children: /* @__PURE__ */ i(L, {
129
+ children: /* @__PURE__ */ i(_, {
127
130
  dataTest: "reset-order-button",
128
131
  variant: "text",
129
132
  size: "small",
130
133
  onClick: () => n.table.resetColumnOrder(),
131
- children: g.reset_order
134
+ children: c.reset_order
132
135
  })
133
136
  })]
134
137
  })]
@@ -1,27 +1,31 @@
1
- import { isCustomAction as M } from "../../../../types.js";
2
- 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";
10
- 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(() => {
1
+ import { StyledPopover as S } from "../../../../../components/utils/popover/StyledPopover.js";
2
+ import { StyledMenuList as A } from "../../../../../components/navigation/menu/StyledMenuList.js";
3
+ import { isCustomAction as O } from "../../../../types.js";
4
+ import { StyledTooltip as g } from "../../../../shared-components/tooltip/index.js";
5
+ import { useToggleMenuVisibility as j } from "../../../../hooks/useToggleMenuVisibility.hook.js";
6
+ import { DotsVerticalIcon as k } from "../../../../shared-components/DotsVerticalIcon.js";
7
+ import { StyledMenuItem as D } from "../../../../shared-components/StyledMenuItem.js";
8
+ import { StyledButton as F } from "../../../../shared-components/button/StyledButton.js";
9
+ import { CircleWarningOutlineIcon as I } from "../../../../shared-components/CircleWarningOutlineIcon.js";
10
+ import w, { useEffect as R, useMemo as V, useState as z } from "react";
11
+ import { jsx as t, jsxs as b } from "react/jsx-runtime";
12
+ function X({ tableData: o, actions: v, rowActionsState: C }) {
13
+ const { anchorEl: x, open: d, handleClose: s, handleOpen: P } = j(), i = v(o.row), n = C?.(o.row) ?? { state: "enabled" }, p = o.table.options.meta?.locale, y = p === "no" ? "Ingen handlinger tilgjengelig" : "No actions available", N = p === "no" ? "Radhandlinger" : "Row actions", T = V(() => i.every((e) => "component" in e ? !1 : e.hide), [i]), u = i.length > 0 && !T, m = n.state === "enabled" && !u, M = n.state !== "hidden" && (u || m || n.state === "disabled"), [a, l] = z(!1);
14
+ if (R(() => {
14
15
  if (!a) return;
15
16
  const e = window.setTimeout(() => l(!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, {
19
- dataTest: "",
18
+ }, [a]), !M) return /* @__PURE__ */ t("div", { className: "flex w-[40px] items-center justify-center" });
19
+ const c = n.state === "disabled", f = /* @__PURE__ */ t(F, {
20
+ dataTest: "row-actions-button",
21
+ "aria-label": N,
22
+ "aria-haspopup": "true",
23
+ "aria-expanded": d,
20
24
  variant: "text",
21
25
  size: "small",
22
26
  disabled: c,
23
27
  onClick: (e) => {
24
- e.stopPropagation(), e.preventDefault(), !c && (x(e), o.row.onChangeFocused(!0));
28
+ e.stopPropagation(), e.preventDefault(), !c && (P(e), o.row.onChangeFocused(!0));
25
29
  },
26
30
  onMouseDown: (e) => {
27
31
  e.stopPropagation(), e.preventDefault();
@@ -29,7 +33,7 @@ function J({ tableData: o, actions: w, rowActionsState: v }) {
29
33
  onMouseUp: (e) => {
30
34
  e.stopPropagation(), e.preventDefault();
31
35
  },
32
- children: /* @__PURE__ */ t(O, {
36
+ children: /* @__PURE__ */ t(k, {
33
37
  className: c ? "text-delta-300" : "text-delta-700",
34
38
  width: 20,
35
39
  height: 20
@@ -37,9 +41,9 @@ function J({ tableData: o, actions: w, rowActionsState: v }) {
37
41
  });
38
42
  return /* @__PURE__ */ t("div", {
39
43
  className: "flex w-[40px] items-center justify-center",
40
- children: /* @__PURE__ */ g("div", {
44
+ children: /* @__PURE__ */ b("div", {
41
45
  className: "flex items-center justify-center",
42
- children: [n.state === "disabled" ? /* @__PURE__ */ t(f, {
46
+ children: [n.state === "disabled" ? /* @__PURE__ */ t(g, {
43
47
  title: n.tooltipTitle,
44
48
  arrow: !0,
45
49
  placement: n.tooltipPlacement ?? "top",
@@ -54,11 +58,11 @@ function J({ tableData: o, actions: w, rowActionsState: v }) {
54
58
  onClick: (e) => {
55
59
  e.stopPropagation(), e.preventDefault();
56
60
  },
57
- children: u
61
+ children: f
58
62
  })
59
- }) : u, n.state === "enabled" && /* @__PURE__ */ t(V, {
60
- open: b,
61
- anchorEl: C,
63
+ }) : f, n.state === "enabled" && /* @__PURE__ */ t(S, {
64
+ open: d,
65
+ anchorEl: x,
62
66
  onClose: () => {
63
67
  s(), o.row.onChangeFocused(!1);
64
68
  },
@@ -73,24 +77,24 @@ function J({ tableData: o, actions: w, rowActionsState: v }) {
73
77
  vertical: "top",
74
78
  horizontal: "right"
75
79
  },
76
- children: p ? /* @__PURE__ */ g("div", {
77
- className: "flex items-center gap-2 p-3 text-delta-700",
78
- children: [/* @__PURE__ */ t(S, {
80
+ children: m ? /* @__PURE__ */ b("div", {
81
+ className: "flex items-center gap-2 p-3 text-base text-delta-700",
82
+ children: [/* @__PURE__ */ t(I, {
79
83
  width: 20,
80
84
  height: 20
81
- }), /* @__PURE__ */ t("span", { children: P })]
82
- }) : /* @__PURE__ */ t(I, {
85
+ }), /* @__PURE__ */ t("span", { children: y })]
86
+ }) : /* @__PURE__ */ t(A, {
83
87
  disablePadding: !0,
84
- children: i.map((e, m) => {
85
- if (M(e)) {
88
+ children: i.map((e, h) => {
89
+ if (O(e)) {
86
90
  const r = e.component(o.row, s);
87
- return h.isValidElement(r) ? /* @__PURE__ */ t(h.Fragment, { children: r }, m) : null;
91
+ return w.isValidElement(r) ? /* @__PURE__ */ t(w.Fragment, { children: r }, h) : null;
88
92
  }
89
- return e.hide ? null : /* @__PURE__ */ t(f, {
93
+ return e.hide ? null : /* @__PURE__ */ t(g, {
90
94
  title: e?.tooltipTitle,
91
95
  arrow: !0,
92
96
  placement: e?.tooltipPlacement ?? "left",
93
- children: /* @__PURE__ */ t("span", { children: /* @__PURE__ */ t(j, {
97
+ children: /* @__PURE__ */ t("span", { children: /* @__PURE__ */ t(D, {
94
98
  className: e.className,
95
99
  disabled: e.disabled,
96
100
  onClick: () => {
@@ -104,7 +108,7 @@ function J({ tableData: o, actions: w, rowActionsState: v }) {
104
108
  },
105
109
  children: e.label
106
110
  }) })
107
- }, m);
111
+ }, h);
108
112
  })
109
113
  })
110
114
  })]
@@ -112,5 +116,5 @@ function J({ tableData: o, actions: w, rowActionsState: v }) {
112
116
  });
113
117
  }
114
118
  export {
115
- J as RowActionMenu
119
+ X as RowActionMenu
116
120
  };
@@ -1,8 +1,8 @@
1
1
  import { EXPAND_COLUMN_ID as r } from "../../types.js";
2
2
  import { ChevronDownIcon as a } from "../../shared-components/ChevronDownIcon.js";
3
- import { jsx as n } from "react/jsx-runtime";
3
+ import { jsx as t } from "react/jsx-runtime";
4
4
  import "@tanstack/react-table";
5
- function m(t, i) {
5
+ function p(o, i) {
6
6
  return {
7
7
  id: r,
8
8
  minSize: 50,
@@ -12,25 +12,28 @@ function m(t, i) {
12
12
  enableSorting: !1,
13
13
  header: () => null,
14
14
  cell: ({ cell: e }) => {
15
- const o = e.row.getIsExpanded();
16
- return e.row.getCanExpand() ? /* @__PURE__ */ n("span", {
17
- className: "flex w-full items-center justify-center outline-none focus:outline-none",
15
+ const n = e.row.getIsExpanded();
16
+ return e.row.getCanExpand() ? /* @__PURE__ */ t("button", {
17
+ type: "button",
18
+ "aria-label": n ? "Collapse row" : "Expand row",
19
+ "aria-expanded": n,
20
+ className: "flex w-full items-center justify-center border-0 bg-transparent outline-none focus:outline-none",
18
21
  onClick: () => e.row.getToggleExpandedHandler()(),
19
22
  style: { height: i ?? "auto" },
20
- children: /* @__PURE__ */ n(a, {
23
+ children: /* @__PURE__ */ t(a, {
21
24
  width: 24,
22
25
  height: 24,
23
26
  style: {
24
- rotate: o ? "180deg" : "0deg",
27
+ rotate: n ? "180deg" : "0deg",
25
28
  transitionTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)",
26
29
  transitionDuration: "500ms"
27
30
  }
28
31
  })
29
32
  }) : null;
30
33
  },
31
- fixedLeft: t
34
+ fixedLeft: o
32
35
  };
33
36
  }
34
37
  export {
35
- m as generateExpandColumn
38
+ p as generateExpandColumn
36
39
  };
@@ -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,25 +60,27 @@ 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", {
80
- className: "text-sm font-normal text-delta-700",
82
+ children: /* @__PURE__ */ h("span", {
83
+ className: "text-base font-normal text-delta-700",
81
84
  children: [
82
85
  n ? "Side" : "Page",
83
86
  " ",
@@ -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,46 +23,48 @@ 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
- className: "text-sm font-normal text-delta-700",
67
+ className: "text-base font-normal text-delta-700",
65
68
  children: [
66
69
  o,
67
70
  " ",
@@ -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
  };