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
@@ -0,0 +1,8 @@
1
+ export interface PaddingSides {
2
+ top: string;
3
+ right: string;
4
+ bottom: string;
5
+ left: string;
6
+ }
7
+ /** ponytail: tailwind `important: true` beats inline `style` — setProperty wins */
8
+ export declare const applyImportantPadding: (el: HTMLElement | null, padding: PaddingSides) => void;
@@ -0,0 +1,2 @@
1
+ /** Removes all falsy entries with type narrowing — lodash `compact` semantics. */
2
+ export declare const compact: <T>(array: readonly (T | null | undefined | false | "" | 0)[]) => T[];
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Reliable consumer overrides for hardcoded layout defaults, WITHOUT tailwind-merge.
3
+ *
4
+ * `cn` is plain clsx (tailwind-merge was deliberately dropped in Phase 0), so it only concatenates —
5
+ * it does not dedupe conflicting utilities. When a component hardcodes a default like `px-4` and a
6
+ * consumer passes `className='px-0'`, BOTH land in the class list and Tailwind emits them in its own
7
+ * fixed order (not DOM order), so the consumer's class does not reliably win. The curated-library fix
8
+ * is per-component: DROP the hardcoded default for an axis when the consumer already sets that axis.
9
+ *
10
+ * Usage — gate each hardcoded default by the axis it occupies:
11
+ * cn('base', !consumerOverrides(className, 'padding-x') && 'px-4', className)
12
+ *
13
+ * See the `ui-core-mui-free-migration` skill ("consumer className can't override a component default").
14
+ */
15
+ /** The layout axes a component default can occupy and a consumer can legitimately override. */
16
+ export type ClassAxis = 'padding' | 'padding-x' | 'padding-y' | 'margin' | 'width' | 'max-width' | 'display';
17
+ /**
18
+ * True when `className` already sets a utility on `axis` — so the component should omit its own
19
+ * hardcoded default for that axis and let the consumer's class take effect.
20
+ */
21
+ export declare const consumerOverrides: (className: string | undefined, axis: ClassAxis) => boolean;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Dependency-free input masking — replaces `@react-input/mask` for the two masks this library
3
+ * actually uses: the date scaffold `' / / '` (showMask) and the progressive time mask
4
+ * `'xx:xx'`. Slots (positions equal to `maskChar`) accept digits; every other mask character is a
5
+ * literal.
6
+ */
7
+ export interface InputMaskSpec {
8
+ /** Mask template, e.g. `' / / '` or `'xx:xx'`. */
9
+ mask: string;
10
+ /** The character in `mask` marking a fillable slot, e.g. `' '` or `'x'`. */
11
+ maskChar: string;
12
+ /** true → render the full scaffold once any digit is present; false → grow as the user types. */
13
+ showMask: boolean;
14
+ }
15
+ export interface MaskedResult {
16
+ value: string;
17
+ caret: number;
18
+ }
19
+ /** Date picker mask — shared by `useDatePickerMask` and display formatting. */
20
+ export declare const DATE_INPUT_MASK: InputMaskSpec;
21
+ /**
22
+ * Font family the editable date input MUST render in. `DATE_INPUT_MASK` is a *space scaffold*
23
+ * (its `maskChar` is `' '`), so the field relies on a fixed-width font: with a proportional font
24
+ * (e.g. Roboto) the empty day/year space slots collapse to hairlines and the mask visibly loses
25
+ * its spaces (a real regression once shipped). A monospace font keeps every slot the same width so
26
+ * the `dd / mm / yyyy` columns stay aligned. This is coupled to the space `maskChar` — the two are
27
+ * asserted together in `inputMask.test.ts`; do not switch this to a proportional font.
28
+ */
29
+ export declare const DATE_INPUT_FONT_FAMILY = "monospace";
30
+ /**
31
+ * Pure formatter: distributes the digits of `raw` over the mask slots and computes the caret
32
+ * position that follows the last digit typed before `caretInRaw`. Zero digits yield an empty value
33
+ * so the date field can show its scaffold as a placeholder only while focused.
34
+ */
35
+ export declare const formatMaskedValue: (raw: string, caretInRaw: number, spec: InputMaskSpec) => MaskedResult;
36
+ /**
37
+ * Ref-callback hook applying `formatMaskedValue` on every native `input` event, before React's
38
+ * delegated onChange reads the value — a drop-in for `useMask` from `@react-input/mask`.
39
+ */
40
+ export declare const useInputMask: ({ mask, maskChar, showMask }: InputMaskSpec) => ((element: HTMLInputElement | null) => void);
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ import { CSSProperties } from 'react';
2
+ export declare const resolveSx: (sx: unknown) => CSSProperties;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ import { RefObject } from 'react';
2
+ /**
3
+ * Manual Tab-cycling focus trap for a modal-like panel that (unlike `StyledDialog`) can't use the
4
+ * native `<dialog>` `showModal()` trap — e.g. a panel that's only modal in ONE of its states
5
+ * (`MinimizableDialog`'s fullscreen mode), where the rest of the time it's a non-modal floating
6
+ * widget that must NOT trap focus. Moves initial focus into the container, cycles Tab/Shift+Tab
7
+ * among its focusable descendants while `active`, restores focus to the trigger on deactivation,
8
+ * and calls `onEscape` on the Escape key (mirroring `StyledDialog`'s ESC-to-close).
9
+ */
10
+ export declare const useFocusTrap: (active: boolean, containerRef: RefObject<HTMLElement | null>, onEscape?: () => void) => void;
@@ -0,0 +1,49 @@
1
+ import { CSSProperties } from 'react';
2
+ /**
3
+ * Promote a Floating UI element into the browser **top layer** so it paints above a native modal
4
+ * `<dialog>`.
5
+ *
6
+ * `StyledDialog` opens via `<dialog>.showModal()`, which puts the dialog in the top layer. The top
7
+ * layer sits above the entire normal stacking context, so a popover/menu/listbox portalled to
8
+ * `document.body` is occluded by the dialog **no matter how high its `z-index`** (and is `inert`
9
+ * while the modal is open). The only way to render above it is to also join the top layer — which
10
+ * the native Popover API does. We give the floating element `popover="manual"` (manual = we drive
11
+ * open/close ourselves, no light-dismiss) and call `showPopover()` the moment it mounts; the top
12
+ * layer stacks by call order, so a popover shown after the dialog lands on top.
13
+ *
14
+ * Usage: spread {@link TOP_LAYER_PROPS} on the floating element, put {@link TOP_LAYER_RESET_STYLE}
15
+ * before `...floatingStyles` in its `style`, use `strategy: 'fixed'` on `useFloating`, and pass
16
+ * `refs.setFloating` to {@link useTopLayerRef} — attach the returned callback as the element `ref`
17
+ * (merge with any others). Promoting on the ref callback (not a `useEffect`) guarantees it runs the
18
+ * instant the node is connected, before paint.
19
+ */
20
+ export declare const TOP_LAYER_PROPS: {
21
+ readonly popover: "manual";
22
+ };
23
+ /**
24
+ * Neutralises the UA popover box styles (`[popover]{ inset: 0; margin: auto }`) that would
25
+ * otherwise fight Floating UI's `top`/`left`. Spread this BEFORE `...floatingStyles`.
26
+ */
27
+ export declare const TOP_LAYER_RESET_STYLE: CSSProperties;
28
+ /**
29
+ * Find the nearest **open modal** `<dialog>` ancestor of a reference node, or `undefined`.
30
+ *
31
+ * A native modal `<dialog>` (`showModal()`) marks every node **outside its own subtree** as `inert`
32
+ * — including a popover we promote into the top layer. An inert popover still *paints* (so it looks
33
+ * fine, even on top), but it is skipped by hit-testing: pointer clicks fall through to the dialog
34
+ * behind it and options can't be selected. Promoting to the top layer only fixes painting/z-order,
35
+ * NOT inertness. The one place a popover is both unclipped *and* interactive is **inside the modal
36
+ * dialog's own subtree** (top layer → escapes the dialog's `overflow:hidden`; descendant of the
37
+ * dialog → not inert). So when the trigger lives inside a modal dialog, the floating element must
38
+ * portal into that dialog rather than `document.body`. Returns `undefined` for the non-dialog case
39
+ * (and for non-modal containers like `MinimizableDialog`, which are plain z-indexed `<div>`s), so
40
+ * the caller falls back to the default body portal.
41
+ */
42
+ export declare function getOpenModalDialogAncestor(node: unknown): HTMLElement | undefined;
43
+ type RefSetter = (node: HTMLElement | null) => void;
44
+ /**
45
+ * Returns a ref callback that wires the node into Floating UI (`setFloating`) and, on mount,
46
+ * promotes it to the top layer via the Popover API. Degrades to plain z-index if unsupported.
47
+ */
48
+ export declare function useTopLayerRef(setFloating: RefSetter): RefSetter;
49
+ export {};
@@ -43,6 +43,7 @@ export * from './table';
43
43
  export * from './components/utils/popover';
44
44
  export * from './components/utils/filter-menu';
45
45
  export * from './components/utils/copy-wrapper';
46
+ export * from './components/utils/virtual-list';
46
47
  export * from './components/custom/widget/widget-title/StyledWidgetTitle';
47
48
  export * from './components/custom/widget/widget-header/StyledWidgetHeader';
48
49
  export * from './components/custom/widget/widget/StyledWidget';
@@ -50,4 +51,4 @@ export * from './components/custom/module/module-title/StyledModuleTitle';
50
51
  export * from './components/custom/module/header-layout';
51
52
  export * from './components/feedback/minimizable-dialog';
52
53
  export * from './hooks/usePopupState';
53
- export { Fade, Paper, ClickAwayListener, Popper, Avatar, Skeleton, Container, Stack, FormLabel } from '@mui/material';
54
+ export { Paper, ClickAwayListener, Avatar, Skeleton, Container, Stack, FormLabel, Fade, Popper, } from './components/mui-compat';
@@ -1,4 +1,7 @@
1
- export declare function useElementHeightPx<T extends HTMLElement>(): {
2
- ref: import('node_modules/@types/react').RefObject<T>;
1
+ import { RefObject } from 'react';
2
+ interface ElementHeightPx<T> {
3
+ ref: RefObject<T>;
3
4
  heightPx: number;
4
- };
5
+ }
6
+ export declare function useElementHeightPx<T extends HTMLElement>(): ElementHeightPx<T>;
7
+ export {};
@@ -1,6 +1,9 @@
1
- export declare function useProxyHorizontalScrollSync(enabled: boolean): {
2
- tableScrollRef: import('node_modules/@types/react').MutableRefObject<HTMLDivElement | null>;
3
- tableXRef: import('node_modules/@types/react').MutableRefObject<HTMLDivElement | null>;
4
- hScrollRef: import('node_modules/@types/react').MutableRefObject<HTMLDivElement | null>;
5
- hScrollContentRef: import('node_modules/@types/react').MutableRefObject<HTMLDivElement | null>;
6
- };
1
+ import { RefObject } from 'react';
2
+ interface ProxyHorizontalScrollSync {
3
+ tableScrollRef: RefObject<HTMLDivElement>;
4
+ tableXRef: RefObject<HTMLDivElement>;
5
+ hScrollRef: RefObject<HTMLDivElement>;
6
+ hScrollContentRef: RefObject<HTMLDivElement>;
7
+ }
8
+ export declare function useProxyHorizontalScrollSync(enabled: boolean): ProxyHorizontalScrollSync;
9
+ export {};
@@ -1,6 +1,8 @@
1
- export declare const useToggleMenuVisibility: () => {
1
+ interface ToggleMenuVisibility {
2
2
  open: boolean;
3
- handleClose: () => void;
4
- handleOpen: (event: React.MouseEvent<HTMLElement | SVGSVGElement>) => void;
5
3
  anchorEl: HTMLElement | SVGSVGElement | null;
6
- };
4
+ handleOpen: (event: React.MouseEvent<HTMLElement | SVGSVGElement>) => void;
5
+ handleClose: () => void;
6
+ }
7
+ export declare const useToggleMenuVisibility: () => ToggleMenuVisibility;
8
+ export {};
@@ -1,9 +1,16 @@
1
- export declare function useTranslations(locale?: 'no' | 'en'): {
2
- column_reorder: string;
3
- column_hidden: string;
4
- reset_order: string;
5
- } | {
6
- column_reorder: string;
7
- column_hidden: string;
8
- reset_order: string;
1
+ declare const translations: {
2
+ en: {
3
+ column_reorder: string;
4
+ column_hidden: string;
5
+ reset_order: string;
6
+ column_settings: string;
7
+ };
8
+ no: {
9
+ column_reorder: string;
10
+ column_hidden: string;
11
+ reset_order: string;
12
+ column_settings: string;
13
+ };
9
14
  };
15
+ export declare function useTranslations(locale?: 'no' | 'en'): typeof translations.en;
16
+ export {};
@@ -1,5 +1,4 @@
1
- import { default as React, SVGProps } from 'react';
2
- import { Checkbox } from '@base-ui/react/checkbox';
1
+ import { default as React, ChangeEvent, SVGProps } from 'react';
3
2
  type StyledCheckboxProps = {
4
3
  dataTest: string;
5
4
  size?: 'small' | 'medium';
@@ -8,9 +7,13 @@ type StyledCheckboxProps = {
8
7
  disableRipple?: boolean;
9
8
  hideWrapper?: boolean;
10
9
  className?: string;
11
- onChange?: (event: React.ChangeEvent<HTMLInputElement>, checked: boolean) => void;
12
- } & Omit<React.ComponentProps<typeof Checkbox.Root>, 'children'>;
10
+ onChange?: (event: ChangeEvent<HTMLInputElement>, checked: boolean) => void;
11
+ } & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'size' | 'checked' | 'type'>;
13
12
  export declare const IndeterminateIcon: (props: SVGProps<SVGSVGElement>) => JSX.Element;
14
13
  export declare const CheckIcon: (props: SVGProps<SVGSVGElement>) => JSX.Element;
14
+ /**
15
+ * Table's native `<input type="checkbox">` (replaces `@base-ui/react`). Mirrors the main
16
+ * `StyledCheckbox`; state drives the SCSS `data-*` selectors. TASK-201.
17
+ */
15
18
  export declare const StyledCheckbox: React.FC<StyledCheckboxProps>;
16
19
  export {};
@@ -1,2 +1,18 @@
1
- import { MenuItemProps } from '@mui/material';
2
- export declare const StyledMenuItem: (props: MenuItemProps) => JSX.Element;
1
+ import { MouseEvent, ReactNode } from 'react';
2
+ export interface StyledMenuItemProps {
3
+ children?: ReactNode;
4
+ disabled?: boolean;
5
+ selected?: boolean;
6
+ className?: string;
7
+ classes?: {
8
+ root?: string;
9
+ };
10
+ onClick?: (event: MouseEvent<HTMLLIElement>) => void;
11
+ onMouseDown?: (event: MouseEvent<HTMLLIElement>) => void;
12
+ onMouseUp?: (event: MouseEvent<HTMLLIElement>) => void;
13
+ }
14
+ /**
15
+ * Table row-action menu item (replaces MUI `MenuItem`). Native `role="menuitem"`; disabled stays
16
+ * focusable but non-interactive. TASK-404.
17
+ */
18
+ export declare const StyledMenuItem: ({ children, disabled, selected, className, classes, onClick, onMouseDown, onMouseUp, }: StyledMenuItemProps) => JSX.Element;
@@ -1,2 +1,13 @@
1
- import { MenuItemProps } from '@mui/material';
2
- export declare const StyledMenuItem: (props: MenuItemProps) => JSX.Element;
1
+ import { MouseEvent, ReactNode } from 'react';
2
+ export interface MenuItemProps {
3
+ children?: ReactNode;
4
+ selected?: boolean;
5
+ disabled?: boolean;
6
+ className?: string;
7
+ onClick?: (event: MouseEvent<HTMLLIElement>) => void;
8
+ }
9
+ /**
10
+ * Table menu item with a leading check column (replaces MUI `MenuItem`). Native `role="menuitem"`.
11
+ * TASK-404.
12
+ */
13
+ export declare const StyledMenuItem: ({ children, selected, disabled, className, onClick }: MenuItemProps) => JSX.Element;
@@ -1,2 +1,6 @@
1
- import { TooltipProps } from '@mui/material';
1
+ import { TooltipProps } from '../../../components/data-display/tooltip/StyledTooltip';
2
+ /**
3
+ * Table tooltip — the core `StyledTooltip` (MUI-free) with the table's arrow + top-placement
4
+ * defaults. TASK-404.
5
+ */
2
6
  export declare const StyledTooltip: (props: TooltipProps) => JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { ColumnPinningColumnDef, ColumnSizingColumnDef, GroupingColumnDef, RowData, SortingColumnDef, VisibilityColumnDef, AccessorFn, ColumnDefTemplate, CellContext, ColumnMeta, HeaderContext, Row, RowModel, TableOptions, Table, ColumnDef } from '@tanstack/react-table';
2
2
  import { CSSProperties, MouseEvent, MutableRefObject, ReactElement, ReactNode } from 'react';
3
3
  import { ExpandedRow, ExpandedRowsInstance, ExpandedRowsOptions, ExpandedRowsTableState } from './custom-features/expand-rows';
4
- import { TooltipProps } from '@mui/material';
4
+ import { TooltipProps } from '../components/data-display/tooltip/StyledTooltip';
5
5
  import { FocusedRowsOptions, FocusedRowsTableState, FocusedRow, FocusedRowsInstance } from './custom-features/focus-rows';
6
6
  import { OrderedColumnsOptions, OrderedColumnsTableState } from './custom-features/order-columns';
7
7
  import { RowSelectionTooltipOptions, RowSelectionTooltipRow } from './custom-features/row-selection-tooltip';
@@ -1,10 +1,10 @@
1
- import o from "./StyledTable.module.js";
2
- import { LoadingIcon as i } from "../shared-components/LoadingIcon.js";
1
+ import { LoadingIcon as o } from "../shared-components/LoadingIcon.js";
2
+ import i from "./StyledTable.module.js";
3
3
  import { jsx as e } from "react/jsx-runtime";
4
4
  var m = ({ fetching: t = !1 }) => t ? /* @__PURE__ */ e("div", {
5
5
  className: "absolute bottom-0 left-0 right-0 top-0 z-10 flex items-center justify-center bg-white/40",
6
- children: /* @__PURE__ */ e(i, {
7
- className: o["loading-icon"],
6
+ children: /* @__PURE__ */ e(o, {
7
+ className: i["loading-icon"],
8
8
  width: 50,
9
9
  height: 50
10
10
  })
@@ -1,57 +1,57 @@
1
- var e = "_tbody_1o2j1_124", _ = "_expanded_row_1o2j1_187", o = "_selected_1o2j1_205", l = "_shadowed_1o2j1_234", t = "_resizer_1o2j1_288", a = "_isResizing_1o2j1_300", r = {
2
- "asma-ui-table-styled-table": "_asma-ui-table-styled-table_1o2j1_1",
3
- "table-wrapper": "_table-wrapper_1o2j1_26",
4
- "table-shell": "_table-shell_1o2j1_33",
5
- "table-wrapper--no-rows": "_table-wrapper--no-rows_1o2j1_39",
6
- "table-wrapper--proxy": "_table-wrapper--proxy_1o2j1_42",
7
- "table-wrapper--proxy-bottom": "_table-wrapper--proxy-bottom_1o2j1_43",
8
- "table-wrapper-fetching": "_table-wrapper-fetching_1o2j1_53",
9
- "table-scroll": "_table-scroll_1o2j1_56",
10
- "table-x--fill-height": "_table-x--fill-height_1o2j1_65",
11
- "table-x": "_table-x_1o2j1_65",
12
- "table-content": "_table-content_1o2j1_80",
13
- "table-header--sticky": "_table-header--sticky_1o2j1_85",
14
- "table-hscroll": "_table-hscroll_1o2j1_90",
15
- "table-hscroll__content": "_table-hscroll__content_1o2j1_100",
16
- "no-rows-overlay-container": "_no-rows-overlay-container_1o2j1_103",
17
- "no-rows-overlay-content": "_no-rows-overlay-content_1o2j1_111",
18
- "styled-table": "_styled-table_1o2j1_115",
1
+ var e = "_tbody_v7jow_124", _ = "_expanded_row_v7jow_187", o = "_selected_v7jow_205", l = "_shadowed_v7jow_234", t = "_resizer_v7jow_288", a = "_isResizing_v7jow_300", r = {
2
+ "asma-ui-table-styled-table": "_asma-ui-table-styled-table_v7jow_1",
3
+ "table-wrapper": "_table-wrapper_v7jow_26",
4
+ "table-shell": "_table-shell_v7jow_33",
5
+ "table-wrapper--no-rows": "_table-wrapper--no-rows_v7jow_39",
6
+ "table-wrapper--proxy": "_table-wrapper--proxy_v7jow_42",
7
+ "table-wrapper--proxy-bottom": "_table-wrapper--proxy-bottom_v7jow_43",
8
+ "table-wrapper-fetching": "_table-wrapper-fetching_v7jow_53",
9
+ "table-scroll": "_table-scroll_v7jow_56",
10
+ "table-x--fill-height": "_table-x--fill-height_v7jow_65",
11
+ "table-x": "_table-x_v7jow_65",
12
+ "table-content": "_table-content_v7jow_80",
13
+ "table-header--sticky": "_table-header--sticky_v7jow_85",
14
+ "table-hscroll": "_table-hscroll_v7jow_90",
15
+ "table-hscroll__content": "_table-hscroll__content_v7jow_100",
16
+ "no-rows-overlay-container": "_no-rows-overlay-container_v7jow_103",
17
+ "no-rows-overlay-content": "_no-rows-overlay-content_v7jow_111",
18
+ "styled-table": "_styled-table_v7jow_115",
19
19
  tbody: e,
20
- "loading-icon": "_loading-icon_1o2j1_129",
21
- "t-row": "_t-row_1o2j1_136",
22
- "t-cell": "_t-cell_1o2j1_136",
23
- "action-cell": "_action-cell_1o2j1_146",
24
- "fixed-cell": "_fixed-cell_1o2j1_150",
25
- "fixed-right-cell": "_fixed-right-cell_1o2j1_153",
20
+ "loading-icon": "_loading-icon_v7jow_129",
21
+ "t-row": "_t-row_v7jow_136",
22
+ "t-cell": "_t-cell_v7jow_136",
23
+ "action-cell": "_action-cell_v7jow_146",
24
+ "fixed-cell": "_fixed-cell_v7jow_150",
25
+ "fixed-right-cell": "_fixed-right-cell_v7jow_153",
26
26
  expanded_row: _,
27
27
  selected: o,
28
- "single-selection": "_single-selection_1o2j1_208",
29
- "action-cell--no-shadow": "_action-cell--no-shadow_1o2j1_225",
30
- "action-cell--not-fixed": "_action-cell--not-fixed_1o2j1_228",
28
+ "single-selection": "_single-selection_v7jow_208",
29
+ "action-cell--no-shadow": "_action-cell--no-shadow_v7jow_225",
30
+ "action-cell--not-fixed": "_action-cell--not-fixed_v7jow_228",
31
31
  shadowed: l,
32
- "shadowed-right": "_shadowed-right_1o2j1_268",
33
- "is-loading": "_is-loading_1o2j1_272",
34
- "action-cell-default-background": "_action-cell-default-background_1o2j1_275",
35
- "fixed-cell-default-background": "_fixed-cell-default-background_1o2j1_278",
36
- "fixed-right-cell-default-background": "_fixed-right-cell-default-background_1o2j1_281",
37
- "sortable-column": "_sortable-column_1o2j1_284",
32
+ "shadowed-right": "_shadowed-right_v7jow_268",
33
+ "is-loading": "_is-loading_v7jow_272",
34
+ "action-cell-default-background": "_action-cell-default-background_v7jow_275",
35
+ "fixed-cell-default-background": "_fixed-cell-default-background_v7jow_278",
36
+ "fixed-right-cell-default-background": "_fixed-right-cell-default-background_v7jow_281",
37
+ "sortable-column": "_sortable-column_v7jow_284",
38
38
  resizer: t,
39
39
  isResizing: a,
40
- "hide-table-header": "_hide-table-header_1o2j1_312",
41
- "show-table-header": "_show-table-header_1o2j1_316",
42
- "table-header": "_table-header_1o2j1_85",
43
- "hide-header": "_hide-header_1o2j1_342",
44
- "t-cell__actions": "_t-cell__actions_1o2j1_345",
45
- "t-cell__actions--no-shadow": "_t-cell__actions--no-shadow_1o2j1_353",
46
- "t-cell__actions--not-fixed": "_t-cell__actions--not-fixed_1o2j1_356",
47
- "t-cell__fixed": "_t-cell__fixed_1o2j1_363",
48
- "t-cell__fixed-right": "_t-cell__fixed-right_1o2j1_370",
49
- "sort-icon": "_sort-icon_1o2j1_377",
50
- "table-footer--sticky": "_table-footer--sticky_1o2j1_380",
51
- "table-footer--inline": "_table-footer--inline_1o2j1_391",
52
- "table-bottom": "_table-bottom_1o2j1_402",
53
- "table-bottom--sticky": "_table-bottom--sticky_1o2j1_416",
54
- "cursor-not-allowed": "_cursor-not-allowed_1o2j1_420"
40
+ "hide-table-header": "_hide-table-header_v7jow_312",
41
+ "show-table-header": "_show-table-header_v7jow_316",
42
+ "table-header": "_table-header_v7jow_85",
43
+ "hide-header": "_hide-header_v7jow_342",
44
+ "t-cell__actions": "_t-cell__actions_v7jow_345",
45
+ "t-cell__actions--no-shadow": "_t-cell__actions--no-shadow_v7jow_353",
46
+ "t-cell__actions--not-fixed": "_t-cell__actions--not-fixed_v7jow_356",
47
+ "t-cell__fixed": "_t-cell__fixed_v7jow_363",
48
+ "t-cell__fixed-right": "_t-cell__fixed-right_v7jow_370",
49
+ "sort-icon": "_sort-icon_v7jow_377",
50
+ "table-footer--sticky": "_table-footer--sticky_v7jow_380",
51
+ "table-footer--inline": "_table-footer--inline_v7jow_391",
52
+ "table-bottom": "_table-bottom_v7jow_402",
53
+ "table-bottom--sticky": "_table-bottom--sticky_v7jow_416",
54
+ "cursor-not-allowed": "_cursor-not-allowed_v7jow_420"
55
55
  };
56
56
  export {
57
57
  r as default
@@ -1,10 +1,10 @@
1
1
  import { ACTIONS_COLUMN_ID as U } from "../types.js";
2
2
  import { useRootContext as se } from "../context/RootContext.js";
3
3
  import n from "./StyledTable.module.js";
4
+ import { compact as ae } from "../../helpers/arrays.js";
4
5
  import W from "clsx";
5
- import { Fragment as ae, useCallback as de, useEffect as ce, useMemo as g } from "react";
6
- import { Fragment as re, jsx as l, jsxs as p } from "react/jsx-runtime";
7
- import { compact as me } from "lodash-es";
6
+ import { Fragment as de, useCallback as ce, useEffect as re, useMemo as g } from "react";
7
+ import { Fragment as me, jsx as l, jsxs as p } from "react/jsx-runtime";
8
8
  import { useSortable as ge } from "@dnd-kit/sortable";
9
9
  import { flexRender as ue } from "@tanstack/react-table";
10
10
  import { CSS as fe } from "@dnd-kit/utilities";
@@ -19,7 +19,7 @@ function ve({ styledTableProps: _, row: t, index: H, columnWindow: { paddingLeft
19
19
  zIndex: A ? 1 : 0,
20
20
  position: "relative"
21
21
  }, { isResizing: ee, disableResizingFlag: te } = se();
22
- ce(() => {
22
+ re(() => {
23
23
  K && t.getCanExpand() && !t.getIsExpanded() && t.toggleExpand();
24
24
  }, []);
25
25
  const B = (e) => {
@@ -34,7 +34,7 @@ function ve({ styledTableProps: _, row: t, index: H, columnWindow: { paddingLeft
34
34
  })), T = g(() => r.filter((e) => !e.column.columnDef.fixedLeft && !e.column.columnDef.fixedRight && e.column.id !== "actions"), [r]), a = g(() => r.filter((e) => !!e.column.columnDef.fixedRight || e.column.id === "actions").map((e, i, o) => ({
35
35
  ...e,
36
36
  right: o.slice(i + 1).reduce((d, c) => d + (c.column.getSize() ?? 0), 0)
37
- })), [r]), L = g(() => a.some((e) => e.column.id === U), [a]), h = !!C || !!V, M = g(() => a.some((e) => !!e.column.columnDef.fixedRight), [a]), m = g(() => r.filter((e) => e.column.columnDef.fixedLeft), [r]), S = !Y && !q && G, b = t.getIsSelected() && S, R = x instanceof Function, z = F.length > 0 ? me(F.map((e) => T[e])) : T, D = de((e, i) => {
37
+ })), [r]), L = g(() => a.some((e) => e.column.id === U), [a]), h = !!C || !!V, M = g(() => a.some((e) => !!e.column.columnDef.fixedRight), [a]), m = g(() => r.filter((e) => e.column.columnDef.fixedLeft), [r]), S = !Y && !q && G, b = t.getIsSelected() && S, R = x instanceof Function, z = F.length > 0 ? ae(F.map((e) => T[e])) : T, D = ce((e, i) => {
38
38
  const o = e.column.id === U, d = e.column.columnDef.fixedLeft, c = !!e.column.columnDef.fixedRight, ie = e.id === m.at(-1)?.id, oe = e.id === a.at(0)?.id && !o, le = t.isExpanded(), k = i === 0;
39
39
  return /* @__PURE__ */ l("td", {
40
40
  className: W(n["t-cell"], R && "cursor-pointer", N, o && n["action-cell"], o && !h && n["action-cell--not-fixed"], o && h && M && n["action-cell--no-shadow"], o && h && !!C && m.length && n.shadowed, o && (s?.(t) ? s?.(t) : n["action-cell-default-background"]), d && n["fixed-cell"], c && n["fixed-right-cell"], ie && n.shadowed, oe && n["shadowed-right"], t.getIsSelected() && n.selected, d && (s?.(t) ? s?.(t) : n["fixed-cell-default-background"]), c && (s?.(t) ? s?.(t) : n["fixed-right-cell-default-background"]), le && n.expanded_row, (!!b || t.isFocused()) && n["single-selection"]),
@@ -82,7 +82,7 @@ function ve({ styledTableProps: _, row: t, index: H, columnWindow: { paddingLeft
82
82
  S,
83
83
  N
84
84
  ]);
85
- return /* @__PURE__ */ p(ae, { children: [/* @__PURE__ */ p("tr", {
85
+ return /* @__PURE__ */ p(de, { children: [/* @__PURE__ */ p("tr", {
86
86
  "aria-selected": t.getIsSelected() || t.isFocused() ? "true" : "false",
87
87
  tabIndex: t.isFocused() ? 0 : -1,
88
88
  "data-index": H,
@@ -139,7 +139,7 @@ function ve({ styledTableProps: _, row: t, index: H, columnWindow: { paddingLeft
139
139
  }),
140
140
  a.map((e, i) => D(e, m.length + z.length + i))
141
141
  ]
142
- }), t.getIsExpanded() && /* @__PURE__ */ l(re, { children: I && P?.({
142
+ }), t.getIsExpanded() && /* @__PURE__ */ l(me, { children: I && P?.({
143
143
  rows: I.get(t.original.id.toString()) ?? [],
144
144
  row: t.original
145
145
  }) })] }, t.id);
@@ -1,12 +1,12 @@
1
- import a from "./TableSkeleton.module.js";
2
- import { Fragment as l } from "react";
3
- import { Skeleton as m } from "@mui/material";
1
+ import { Skeleton as a } from "../../components/mui-compat/Skeleton.js";
2
+ import l from "./TableSkeleton.module.js";
3
+ import { Fragment as m } from "react";
4
4
  import { jsx as r } from "react/jsx-runtime";
5
- var p = (({ colSpan: o, rowHeight: t = 48 }) => /* @__PURE__ */ r(l, { children: Array.from({ length: 10 }).map((i, e) => /* @__PURE__ */ r("tr", { children: /* @__PURE__ */ r("td", {
5
+ var p = (({ colSpan: o, rowHeight: t = 48 }) => /* @__PURE__ */ r(m, { children: Array.from({ length: 10 }).map((i, e) => /* @__PURE__ */ r("tr", { children: /* @__PURE__ */ r("td", {
6
6
  colSpan: o,
7
7
  height: t,
8
- className: a["skeleton-row"],
9
- children: /* @__PURE__ */ r(m, {
8
+ className: l["skeleton-row"],
9
+ children: /* @__PURE__ */ r(a, {
10
10
  variant: "rectangular",
11
11
  width: "100%",
12
12
  height: 40,
@@ -1,29 +1,32 @@
1
1
  import { ACTIONS_COLUMN_ID as m } from "../../../types.js";
2
- import { RowActionMenu as u } from "./components/RowActionMenu.js";
3
- import { HeaderActionMenu as d } from "./components/HeaderActionMenu.js";
2
+ import { RowActionMenu as d } from "./components/RowActionMenu.js";
3
+ import { HeaderActionMenu as u } from "./components/HeaderActionMenu.js";
4
4
  import { jsx as n, jsxs as f } from "react/jsx-runtime";
5
5
  function x(r) {
6
- const { headerPin: i, actions: t, customActionsNode: o, rowHeight: a, customActionsColumnProps: s, rowActionsState: c, locale: l } = r;
6
+ const { headerPin: s, actions: o, customActionsNode: t, rowHeight: a, customActionsColumnProps: c, rowActionsState: l, locale: i } = r;
7
7
  return {
8
8
  id: m,
9
9
  enableHiding: !1,
10
10
  enableSorting: !1,
11
11
  accessorFn: (e) => e,
12
- header: (e) => i ? /* @__PURE__ */ n(d, {
12
+ header: (e) => s ? /* @__PURE__ */ n(u, {
13
13
  headerData: e,
14
- locale: l
15
- }) : null,
16
- cell: (e) => t || o ? /* @__PURE__ */ f("div", {
14
+ locale: i
15
+ }) : /* @__PURE__ */ n("span", {
16
+ className: "sr-only",
17
+ children: i === "no" ? "Handlinger" : "Actions"
18
+ }),
19
+ cell: (e) => o || t ? /* @__PURE__ */ f("div", {
17
20
  className: "flex items-center justify-end gap-x-1",
18
21
  style: { height: a ?? "auto" },
19
- children: [o && /* @__PURE__ */ n("div", { children: o?.(e) }), t && /* @__PURE__ */ n(u, {
22
+ children: [t && /* @__PURE__ */ n("div", { children: t?.(e) }), o && /* @__PURE__ */ n(d, {
20
23
  tableData: e,
21
- actions: t,
22
- rowActionsState: c
24
+ actions: o,
25
+ rowActionsState: l
23
26
  })]
24
27
  }) : null,
25
28
  size: 50,
26
- ...s
29
+ ...c
27
30
  };
28
31
  }
29
32
  export {