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,26 +1,33 @@
1
- import { cn as u } from "../../../../helpers/cn.js";
2
- import s from "./StyledAccordion.module.js";
3
- import "react";
4
- import { jsx as t } from "react/jsx-runtime";
5
- import { Accordion as e } from "@base-ui/react/accordion";
6
- var g = ({ className: c, children: i, expanded: r, defaultExpanded: l, onChange: m, ...n }) => {
7
- const o = "item", d = {
8
- ...n,
9
- type: "single",
10
- className: u(s.AccordionRoot, c),
11
- onValueChange: (a) => {
12
- m?.(a.includes(o));
13
- },
14
- ...r !== void 0 ? { value: r ? [o] : [] } : { defaultValue: l ? [o] : [] }
15
- };
16
- return /* @__PURE__ */ t(e.Root, {
17
- ...d,
18
- children: /* @__PURE__ */ t(e.Item, {
19
- value: o,
20
- children: i
1
+ import { cn as A } from "../../../../helpers/cn.js";
2
+ import I from "./StyledAccordion.module.js";
3
+ import { AccordionContext as S } from "./AccordionContext.js";
4
+ import { useId as l, useMemo as y, useState as C } from "react";
5
+ import { jsx as s } from "react/jsx-runtime";
6
+ var N = ({ className: d, children: m, expanded: t, defaultExpanded: p, disabled: e, onChange: u, ...f }) => {
7
+ const n = l(), r = l(), c = t !== void 0, [a, v] = C(!!p), o = c ? !!t : a, g = () => {
8
+ const i = !o;
9
+ c || v(i), u?.(i);
10
+ }, x = y(() => ({
11
+ open: o,
12
+ toggle: g,
13
+ disabled: e,
14
+ triggerId: n,
15
+ panelId: r
16
+ }), [
17
+ o,
18
+ e,
19
+ n,
20
+ r
21
+ ]);
22
+ return /* @__PURE__ */ s("div", {
23
+ ...f,
24
+ className: A(I.AccordionRoot, d),
25
+ children: /* @__PURE__ */ s(S.Provider, {
26
+ value: x,
27
+ children: m
21
28
  })
22
29
  });
23
30
  };
24
31
  export {
25
- g as StyledAccordion
32
+ N as StyledAccordion
26
33
  };
@@ -1,12 +1,12 @@
1
- var r = "_AccordionRoot_wzlmo_1", o = "_Trigger_wzlmo_9", _ = "_Header_wzlmo_18", e = "_TriggerIcon_wzlmo_40", a = "_TriggerIconRight_wzlmo_48", g = "_Panel_wzlmo_56", l = "_Content_wzlmo_67", n = {
1
+ var r = "_AccordionRoot_95gyk_1", _ = "_Trigger_95gyk_9", g = "_Header_95gyk_18", e = "_TriggerIcon_95gyk_42", o = "_TriggerIconRight_95gyk_50", a = "_Panel_95gyk_58", n = "_Content_95gyk_66", t = {
2
2
  AccordionRoot: r,
3
- Trigger: o,
4
- Header: _,
3
+ Trigger: _,
4
+ Header: g,
5
5
  TriggerIcon: e,
6
- TriggerIconRight: a,
7
- Panel: g,
8
- Content: l
6
+ TriggerIconRight: o,
7
+ Panel: a,
8
+ Content: n
9
9
  };
10
10
  export {
11
- n as default
11
+ t as default
12
12
  };
@@ -1,16 +1,30 @@
1
- import o from "./StyledAccordion.module.js";
2
- import { clsx as r } from "clsx";
3
- import "react";
4
- import { jsx as e } from "react/jsx-runtime";
5
- import { Accordion as c } from "@base-ui/react/accordion";
6
- var f = ({ children: m, className: t, contentClassName: i, ...l }) => /* @__PURE__ */ e(c.Panel, {
7
- ...l,
8
- className: r(o.Panel, t),
9
- children: /* @__PURE__ */ e("div", {
10
- className: r(o.Content, i),
11
- children: m
12
- })
13
- });
1
+ import n from "./StyledAccordion.module.js";
2
+ import { useAccordionContext as g } from "./AccordionContext.js";
3
+ import { clsx as s } from "clsx";
4
+ import { useEffect as h, useRef as v, useState as x } from "react";
5
+ import { jsx as c } from "react/jsx-runtime";
6
+ var C = ({ children: r, className: i, contentClassName: l, ...a }) => {
7
+ const { open: d, panelId: m, triggerId: u } = g(), e = v(null), [f, p] = x(0);
8
+ return h(() => {
9
+ if (!e.current) return;
10
+ const t = () => p(e.current?.scrollHeight ?? 0);
11
+ t();
12
+ const o = new ResizeObserver(t);
13
+ return o.observe(e.current), () => o.disconnect();
14
+ }, [r]), /* @__PURE__ */ c("div", {
15
+ ...a,
16
+ id: m,
17
+ role: "region",
18
+ "aria-labelledby": u,
19
+ className: s(n.Panel, i),
20
+ style: { "--accordion-panel-height": d ? `${f}px` : "0px" },
21
+ children: /* @__PURE__ */ c("div", {
22
+ ref: e,
23
+ className: s(n.Content, l),
24
+ children: r
25
+ })
26
+ });
27
+ };
14
28
  export {
15
- f as StyledAccordionDetails
29
+ C as StyledAccordionDetails
16
30
  };
@@ -1,35 +1,42 @@
1
- import { ChevronDownIcon as a } from "../../../icons/chevron-down-icon/ChevronDownIcon.js";
1
+ import { ChevronDownIcon as b } from "../../../icons/chevron-down-icon/ChevronDownIcon.js";
2
2
  import r from "./StyledAccordion.module.js";
3
- import o from "clsx";
3
+ import { useAccordionContext as A } from "./AccordionContext.js";
4
+ import t from "clsx";
4
5
  import "react";
5
- import { Fragment as n, jsx as e, jsxs as s } from "react/jsx-runtime";
6
- import { Accordion as c } from "@base-ui/react/accordion";
7
- var N = ({ size: g = "large", expandChevronRight: m, className: l, headerClassName: d, sx: p, children: i, ...x }) => {
8
- const t = g === "small", f = {
9
- "--trigger-height": t ? "48px" : "72px",
10
- "--trigger-padding-x": t ? "8px" : "16px",
11
- "--trigger-font-size": t ? "14px" : "18px",
12
- "--chevron-size": t ? "20px" : "24px",
6
+ import { Fragment as c, jsx as o, jsxs as l } from "react/jsx-runtime";
7
+ var _ = ({ size: m = "large", expandChevronRight: n, className: d, headerClassName: g, sx: p, children: x, onClick: f, ...h }) => {
8
+ const { open: a, toggle: u, disabled: y, triggerId: I, panelId: v } = A(), e = m === "small", N = {
9
+ "--trigger-height": e ? "48px" : "72px",
10
+ "--trigger-padding-x": e ? "8px" : "16px",
11
+ "--trigger-font-size": e ? "14px" : "18px",
12
+ "--chevron-size": e ? "20px" : "24px",
13
13
  ...p
14
- };
15
- return /* @__PURE__ */ e(c.Header, {
16
- className: o(r.Header, d),
17
- children: /* @__PURE__ */ e(c.Trigger, {
18
- ...x,
19
- nativeButton: !1,
20
- render: /* @__PURE__ */ e("div", {}),
21
- className: o(r.Trigger, l),
22
- style: f,
23
- children: m ? /* @__PURE__ */ s(n, { children: [i, /* @__PURE__ */ e(a, {
24
- className: o(r.TriggerIcon, r.TriggerIconRight),
25
- "data-state-icon": !0
26
- })] }) : /* @__PURE__ */ s(n, { children: [/* @__PURE__ */ e(a, {
27
- className: r.TriggerIcon,
28
- "data-state-icon": !0
29
- }), i] })
14
+ }, i = /* @__PURE__ */ o(b, {
15
+ className: t(r.TriggerIcon, n && r.TriggerIconRight),
16
+ "data-state-icon": !0
17
+ }), s = /* @__PURE__ */ o("span", {
18
+ className: "m-0 flex flex-grow items-center",
19
+ children: x
20
+ });
21
+ return /* @__PURE__ */ o("h3", {
22
+ className: t(r.Header, g),
23
+ children: /* @__PURE__ */ o("button", {
24
+ ...h,
25
+ type: "button",
26
+ id: I,
27
+ "aria-expanded": a,
28
+ "aria-controls": v,
29
+ disabled: y,
30
+ onClick: (S) => {
31
+ f?.(S), u();
32
+ },
33
+ className: t(r.Trigger, d),
34
+ style: N,
35
+ "data-panel-open": a ? "" : void 0,
36
+ children: n ? /* @__PURE__ */ l(c, { children: [s, i] }) : /* @__PURE__ */ l(c, { children: [i, s] })
30
37
  })
31
38
  });
32
39
  };
33
40
  export {
34
- N as StyledAccordionSummary
41
+ _ as StyledAccordionSummary
35
42
  };
@@ -4,13 +4,14 @@ import { StyledButton as m } from "../../inputs/button/StyledButton.js";
4
4
  import { useMobileMediaQuery as s } from "../../../hooks/useMediaQuery.hook.js";
5
5
  import "react";
6
6
  import { jsx as t } from "react/jsx-runtime";
7
- var v = ({ className: r, contentToCopy: e, locale: o, messageInfo: n, text: p }) => {
8
- const i = o === "en" ? "Copy" : "Kopier", l = s();
7
+ var v = ({ className: e, contentToCopy: n, locale: i, messageInfo: p, text: r }) => {
8
+ const o = i === "en" ? "Copy" : "Kopier", l = s();
9
9
  return /* @__PURE__ */ t(d, {
10
- title: i,
10
+ title: o,
11
11
  children: /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(m, {
12
12
  dataTest: "copy-button",
13
- className: r,
13
+ "aria-label": r ?? o,
14
+ className: e,
14
15
  size: "small",
15
16
  variant: "text",
16
17
  startIcon: /* @__PURE__ */ t(c, {
@@ -18,11 +19,11 @@ var v = ({ className: r, contentToCopy: e, locale: o, messageInfo: n, text: p })
18
19
  height: 20
19
20
  }),
20
21
  onClick: () => {
21
- navigator.clipboard.writeText(e).then(() => {
22
- n(o === "no" ? "Kopiert til utklippstavle" : "Copied to clipboard");
22
+ navigator.clipboard.writeText(n).then(() => {
23
+ p(i === "no" ? "Kopiert til utklippstavle" : "Copied to clipboard");
23
24
  }).catch((a) => console.error("Copying failed with this: ", a));
24
25
  },
25
- children: !l && (p ?? i)
26
+ children: !l && (r ?? o)
26
27
  }) })
27
28
  });
28
29
  };
@@ -1,32 +1,35 @@
1
1
  import { cn as m } from "../../../helpers/cn.js";
2
- import { ContentCopyIcon as c } from "../../icons/content-copy-icon/ContentCopyIcon.js";
3
- import { StyledTooltip as s } from "../../data-display/tooltip/StyledTooltip.js";
2
+ import { ContentCopyIcon as s } from "../../icons/content-copy-icon/ContentCopyIcon.js";
3
+ import { StyledTooltip as c } from "../../data-display/tooltip/StyledTooltip.js";
4
4
  import { StyledButton as d } from "../../inputs/button/StyledButton.js";
5
5
  import e from "./CopyWrapper.module.js";
6
6
  import "react";
7
7
  import { jsx as t, jsxs as h } from "react/jsx-runtime";
8
- var w = ({ className: i, contentToCopy: p, locale: o, messageInfo: a, children: n }) => /* @__PURE__ */ h("div", {
8
+ var b = ({ className: i, contentToCopy: p, locale: o, messageInfo: a, children: n }) => /* @__PURE__ */ h("div", {
9
9
  className: m("flex items-center hover:text-gama-500", e["copy-wrapper"], i),
10
- children: [n, /* @__PURE__ */ t(s, {
10
+ children: [n, /* @__PURE__ */ t(c, {
11
11
  title: o === "no" ? "Kopier" : "Copy",
12
- className: e["hidden-copy"],
13
- children: /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(d, {
14
- dataTest: "copy-button",
15
- size: "small",
16
- variant: "text",
17
- className: "cursor-pointer",
18
- onClick: (r) => {
19
- r.preventDefault(), r.stopPropagation(), navigator.clipboard.writeText(p).then(() => {
20
- a(o === "no" ? "Kopiert til utklippstavle" : "Copied to clipboard");
21
- }).catch((l) => console.error("Copying failed with this: ", l));
22
- },
23
- startIcon: /* @__PURE__ */ t(c, {
24
- width: 20,
25
- height: 20
12
+ children: /* @__PURE__ */ t("div", {
13
+ className: e["hidden-copy"],
14
+ children: /* @__PURE__ */ t(d, {
15
+ dataTest: "copy-button",
16
+ "aria-label": o === "no" ? "Kopier" : "Copy",
17
+ size: "small",
18
+ variant: "text",
19
+ className: "cursor-pointer",
20
+ onClick: (r) => {
21
+ r.preventDefault(), r.stopPropagation(), navigator.clipboard.writeText(p).then(() => {
22
+ a(o === "no" ? "Kopiert til utklippstavle" : "Copied to clipboard");
23
+ }).catch((l) => console.error("Copying failed with this: ", l));
24
+ },
25
+ startIcon: /* @__PURE__ */ t(s, {
26
+ width: 20,
27
+ height: 20
28
+ })
26
29
  })
27
- }) })
30
+ })
28
31
  })]
29
32
  });
30
33
  export {
31
- w as CopyWrapper
34
+ b as CopyWrapper
32
35
  };
@@ -1,25 +1,26 @@
1
1
  import { FilterIcon as d } from "../../icons/filter-icon/FilterIcon.js";
2
- import { StyledButton as m } from "../../inputs/button/StyledButton.js";
3
- import { useDynamicToolbarLayout as c } from "../../custom/module/header-layout/DynamicToolbarLayoutContext.js";
4
- import s from "clsx";
5
- import { Fragment as g, jsx as r, jsxs as h } from "react/jsx-runtime";
6
- var x = ({ filterIsActive: e, label: o, hideLabel: l, size: t = "large", variant: i = "outlined", ...a }) => {
7
- const { filterIconOnly: n } = c();
8
- return /* @__PURE__ */ r(g, { children: /* @__PURE__ */ h("div", {
2
+ import { StyledButton as c } from "../../inputs/button/StyledButton.js";
3
+ import { useDynamicToolbarLayout as s } from "../../custom/module/header-layout/DynamicToolbarLayoutContext.js";
4
+ import g from "clsx";
5
+ import { Fragment as h, jsx as r, jsxs as u } from "react/jsx-runtime";
6
+ var F = ({ filterIsActive: i, label: o, hideLabel: l, size: t = "large", variant: a = "outlined", ...n }) => {
7
+ const { filterIconOnly: m } = s(), e = l ?? m;
8
+ return /* @__PURE__ */ r(h, { children: /* @__PURE__ */ u("div", {
9
9
  className: "relative h-fit w-fit",
10
- children: [/* @__PURE__ */ r(m, {
11
- ...a,
10
+ children: [/* @__PURE__ */ r(c, {
11
+ ...n,
12
12
  type: "button",
13
+ "aria-label": e ? o ?? "Filter" : void 0,
13
14
  startIcon: /* @__PURE__ */ r(d, {
14
15
  width: t === "large" ? 24 : 20,
15
16
  height: t === "large" ? 24 : 20
16
17
  }),
17
- variant: i,
18
+ variant: a,
18
19
  size: t,
19
- children: !(l ?? n) && (o ?? "Filter")
20
- }), e && /* @__PURE__ */ r("div", { className: s("absolute h-2 w-2 rounded-full bg-gama-400", t === "large" ? "right-2 top-2" : "right-1 top-1") })]
20
+ children: !e && (o ?? "Filter")
21
+ }), i && /* @__PURE__ */ r("div", { className: g("absolute h-2 w-2 rounded-full bg-gama-400", t === "large" ? "right-2 top-2" : "right-1 top-1") })]
21
22
  }) });
22
23
  };
23
24
  export {
24
- x as StyledFilterButton
25
+ F as StyledFilterButton
25
26
  };
@@ -1,12 +1,12 @@
1
1
  import { FilterIcon as b } from "../../icons/filter-icon/FilterIcon.js";
2
2
  import { StyledButton as v } from "../../inputs/button/StyledButton.js";
3
3
  import { StyledPopover as E } from "../popover/StyledPopover.js";
4
- import { useDynamicToolbarLayout as k } from "../../custom/module/header-layout/DynamicToolbarLayoutContext.js";
5
- import x from "clsx";
6
- import c, { useState as C } from "react";
7
- import { Fragment as F, jsx as e, jsxs as f } from "react/jsx-runtime";
4
+ import { useDynamicToolbarLayout as F } from "../../custom/module/header-layout/DynamicToolbarLayoutContext.js";
5
+ import k from "clsx";
6
+ import c, { useState as x } from "react";
7
+ import { Fragment as C, jsx as e, jsxs as y } from "react/jsx-runtime";
8
8
  var I = () => {
9
- const [r, t] = C(null), s = (a) => {
9
+ const [r, t] = x(null), s = (a) => {
10
10
  const o = a.currentTarget;
11
11
  t(o);
12
12
  }, l = () => {
@@ -19,14 +19,14 @@ var I = () => {
19
19
  r ? l() : s(a);
20
20
  }
21
21
  };
22
- }, N = (r) => c.isValidElement(r) || typeof r == "string" || typeof r == "number" || r === null || Array.isArray(r), $ = ({ filterIsActive: r, popoverContent: t, dataTest: s, disabled: l, size: i = "large", variant: a = "outlined", popoverProps: o, anchorNode: h, label: p, hideLabel: y }) => {
23
- const { onAnchorClick: d, onClose: m, anchorEl: n } = I(), { filterIconOnly: A } = k(), O = y ?? A, u = h?.({
22
+ }, N = (r) => c.isValidElement(r) || typeof r == "string" || typeof r == "number" || r === null || Array.isArray(r), $ = ({ filterIsActive: r, popoverContent: t, dataTest: s, disabled: l, size: i = "large", variant: a = "outlined", popoverProps: o, anchorNode: h, label: d, hideLabel: A }) => {
23
+ const { onAnchorClick: u, onClose: m, anchorEl: n } = I(), { filterIconOnly: O } = F(), g = A ?? O, f = h?.({
24
24
  isOpen: !!n,
25
25
  onClose: m
26
- }), g = c.useId();
27
- return /* @__PURE__ */ f(F, { children: [/* @__PURE__ */ f("div", {
26
+ }), p = c.useId();
27
+ return /* @__PURE__ */ y(C, { children: [/* @__PURE__ */ y("div", {
28
28
  className: "relative h-fit w-fit",
29
- children: [h && c.isValidElement(u) ? c.cloneElement(u, { onClick: d }) : /* @__PURE__ */ e(v, {
29
+ children: [h && c.isValidElement(f) ? c.cloneElement(f, { onClick: u }) : /* @__PURE__ */ e(v, {
30
30
  type: "button",
31
31
  disabled: l,
32
32
  variant: a,
@@ -34,17 +34,18 @@ var I = () => {
34
34
  width: i === "large" ? 24 : 20,
35
35
  height: i === "large" ? 24 : 20
36
36
  }),
37
- onClick: d,
37
+ onClick: u,
38
38
  size: i,
39
39
  dataTest: s,
40
+ "aria-label": g ? d ?? "Filter" : void 0,
40
41
  "aria-haspopup": "true",
41
42
  "aria-expanded": !!n,
42
- "aria-controls": n ? g : void 0,
43
- children: !O && (p ?? "Filter")
44
- }), r && /* @__PURE__ */ e("div", { className: x("absolute h-2 w-2 rounded-full bg-gama-400", i === "large" ? "right-2 top-2" : "right-1 top-1") })]
43
+ "aria-controls": n ? p : void 0,
44
+ children: !g && (d ?? "Filter")
45
+ }), r && /* @__PURE__ */ e("div", { className: k("absolute h-2 w-2 rounded-full bg-gama-400", i === "large" ? "right-2 top-2" : "right-1 top-1") })]
45
46
  }), /* @__PURE__ */ e(E, {
46
47
  ...o,
47
- id: g,
48
+ id: p,
48
49
  open: !!n,
49
50
  anchorEl: n,
50
51
  onClose: m,
@@ -1,17 +1,53 @@
1
- import { Popover as a } from "@mui/material";
2
- import { jsx as e } from "react/jsx-runtime";
3
- var n = ({ anchorOrigin: o, transformOrigin: r, className: t, ...i }) => /* @__PURE__ */ e(a, {
4
- anchorOrigin: o ?? {
5
- vertical: "bottom",
6
- horizontal: "left"
7
- },
8
- transformOrigin: r ?? {
9
- vertical: "top",
10
- horizontal: "left"
11
- },
12
- className: t ?? "my-1",
13
- ...i
14
- });
1
+ import { cn as A } from "../../../helpers/cn.js";
2
+ import { resolveSx as i } from "../../../helpers/sx.js";
3
+ import { TOP_LAYER_PROPS as F, TOP_LAYER_RESET_STYLE as P, getOpenModalDialogAncestor as S, useTopLayerRef as h } from "../../../hooks/useTopLayer.hook.js";
4
+ import { useMemo as l } from "react";
5
+ import { jsx as s } from "react/jsx-runtime";
6
+ import { FloatingPortal as w, autoUpdate as E, flip as L, offset as z, shift as D, useDismiss as M, useFloating as O, useInteractions as N, useMergeRefs as k } from "@floating-ui/react";
7
+ var C = {
8
+ vertical: "bottom",
9
+ horizontal: "left"
10
+ }, U = {
11
+ vertical: "top",
12
+ horizontal: "left"
13
+ }, Y = (e, t) => `${t.vertical === "bottom" ? "top" : t.vertical === "top" ? "bottom" : e.vertical === "top" ? "top" : "bottom"}${e.horizontal === "left" ? "-start" : e.horizontal === "right" ? "-end" : ""}`, B = ({ open: e, anchorEl: t, onClose: p, anchorOrigin: r = C, transformOrigin: a = U, id: n, className: m, sx: f, slotProps: o, onClick: d, children: c }) => {
14
+ const { refs: u, floatingStyles: g, context: v } = O({
15
+ open: e,
16
+ placement: l(() => Y(r, a), [r, a]),
17
+ strategy: "fixed",
18
+ whileElementsMounted: E,
19
+ elements: { reference: t ?? void 0 },
20
+ middleware: [
21
+ z(4),
22
+ L({ padding: 8 }),
23
+ D({ padding: 8 })
24
+ ],
25
+ onOpenChange: (y, T, b) => {
26
+ y || p?.(T ?? {}, b === "escape-key" ? "escapeKeyDown" : "backdropClick");
27
+ }
28
+ }), { getFloatingProps: R } = N([M(v, {
29
+ outsidePress: !0,
30
+ escapeKey: !0
31
+ })]), _ = k([h(u.setFloating)]), x = l(() => e ? S(t) : void 0, [e, t]);
32
+ return e ? /* @__PURE__ */ s(w, {
33
+ root: x,
34
+ children: /* @__PURE__ */ s("div", {
35
+ ref: _,
36
+ id: n,
37
+ ...F,
38
+ style: {
39
+ ...P,
40
+ ...g,
41
+ ...i(f),
42
+ ...i(o?.paper?.sx),
43
+ ...o?.paper?.style
44
+ },
45
+ ...R({ onClick: d }),
46
+ className: A("z-[1300] overflow-auto rounded bg-white shadow-[0px_1px_12px_0px_rgba(0,0,0,0.15)]", m ?? "my-1", o?.paper?.className),
47
+ children: c
48
+ })
49
+ }) : null;
50
+ };
15
51
  export {
16
- n as StyledPopover
52
+ B as StyledPopover
17
53
  };
@@ -0,0 +1,46 @@
1
+ import o from "clsx";
2
+ import { useRef as v } from "react";
3
+ import { jsx as l } from "react/jsx-runtime";
4
+ import { useVirtualizer as y } from "@tanstack/react-virtual";
5
+ var E = ({ items: i, itemSize: t, height: d, width: f = "100%", measureRows: n = !1, overscan: c = 5, getItemKey: m, className: u, contentClassName: p, contentStyle: x, dataTest: h, renderItem: g }) => {
6
+ const s = v(null), r = y({
7
+ count: i.length,
8
+ getScrollElement: () => s.current,
9
+ estimateSize: typeof t == "function" ? t : () => t,
10
+ getItemKey: m,
11
+ overscan: c
12
+ });
13
+ return /* @__PURE__ */ l("div", {
14
+ ref: s,
15
+ tabIndex: 0,
16
+ className: o("overflow-auto", u),
17
+ style: {
18
+ height: d,
19
+ width: f
20
+ },
21
+ "data-testid": h,
22
+ children: /* @__PURE__ */ l("div", {
23
+ className: o("relative w-full", p),
24
+ style: {
25
+ height: r.getTotalSize(),
26
+ ...x
27
+ },
28
+ children: r.getVirtualItems().map((e) => {
29
+ const a = i[e.index];
30
+ return a === void 0 ? null : /* @__PURE__ */ l("div", {
31
+ "data-index": e.index,
32
+ ref: n ? r.measureElement : void 0,
33
+ className: "absolute left-0 top-0 w-full",
34
+ style: {
35
+ transform: `translateY(${e.start}px)`,
36
+ height: n ? void 0 : e.size
37
+ },
38
+ children: g(a, e.index)
39
+ }, e.key);
40
+ })
41
+ })
42
+ });
43
+ };
44
+ export {
45
+ E as VirtualList
46
+ };
@@ -1,49 +1,49 @@
1
1
  import { setPickerPosition as f } from "./helpers.js";
2
2
  import { StyledDayPicker as k } from "./components/StyledDayPicker.js";
3
- import { StyledCalendarPicker as u } from "./components/StyledCalendarPicker.js";
4
- import { DatePickerInputIndex as x } from "./components/DatePickerInputIndex.js";
5
- import { useIsMobileView as C } from "../../hooks/useWindowWidthSize.hook.js";
6
- import { useBackNavigationClose as h } from "../../hooks/useBackNavigationClose.hook.js";
7
- import { useState as s } from "react";
8
- import { Drawer as v } from "@mui/material";
9
- import { Fragment as b, jsx as o, jsxs as D } from "react/jsx-runtime";
10
- var j = (c) => {
11
- const a = C(), [e, n] = s(null), [p, m] = s(!1), [d, i] = s(!1), P = (l) => {
3
+ import { StyledCalendarPicker as x } from "./components/StyledCalendarPicker.js";
4
+ import { DatePickerInputIndex as u } from "./components/DatePickerInputIndex.js";
5
+ import { useIsMobileView as v } from "../../hooks/useWindowWidthSize.hook.js";
6
+ import { StyledDrawer as C } from "../../../components/navigation/drawer/StyledDrawer.js";
7
+ import { useBackNavigationClose as b } from "../../hooks/useBackNavigationClose.hook.js";
8
+ import { useState as a } from "react";
9
+ import { Fragment as h, jsx as o, jsxs as y } from "react/jsx-runtime";
10
+ var j = (p) => {
11
+ const s = v(), [e, n] = a(null), [c, m] = a(!1), [d, i] = a(!1), P = (l) => {
12
12
  n(l.currentTarget), f(l, m);
13
13
  }, r = () => {
14
14
  i(!0), n(null);
15
15
  };
16
- h({
16
+ b({
17
17
  open: !!e,
18
18
  onClose: r
19
19
  });
20
20
  const t = {
21
- ...c,
21
+ ...p,
22
22
  validateOnCalendarClose: d,
23
23
  onValidatedOnce: () => i(!1)
24
24
  };
25
- return /* @__PURE__ */ D(b, { children: [
26
- /* @__PURE__ */ o(x, {
25
+ return /* @__PURE__ */ y(h, { children: [
26
+ /* @__PURE__ */ o(u, {
27
27
  datePickerProps: t,
28
28
  onClick: P
29
29
  }),
30
- !a && /* @__PURE__ */ o(u, {
30
+ !s && /* @__PURE__ */ o(x, {
31
31
  datePickerProps: { ...t },
32
32
  popoverProps: {
33
33
  open: !!e,
34
34
  anchorEl: e,
35
35
  onClose: r
36
36
  },
37
- positionAbove: p
37
+ positionAbove: c
38
38
  }),
39
- a && /* @__PURE__ */ o(v, {
39
+ s && /* @__PURE__ */ o(C, {
40
40
  anchor: "bottom",
41
41
  open: !!e,
42
42
  onClose: r,
43
43
  sx: { zIndex: 1300 },
44
44
  className: "z-[1300]",
45
45
  children: /* @__PURE__ */ o("div", {
46
- className: "mx-auto max-w-[360px]",
46
+ className: "mx-auto max-w-[360px] px-2 pb-[max(1.5rem,env(safe-area-inset-bottom))]",
47
47
  children: /* @__PURE__ */ o(k, {
48
48
  datePickerProps: { ...t },
49
49
  popoverProps: {