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,44 @@
1
+ import { resolveSx as l } from "../../helpers/sx.js";
2
+ import d from "clsx";
3
+ import { createElement as m } from "react";
4
+ var n = [
5
+ "none",
6
+ "0px 2px 1px -1px rgba(0,0,0,0.2),0px 1px 1px 0px rgba(0,0,0,0.14),0px 1px 3px 0px rgba(0,0,0,0.12)",
7
+ "0px 3px 1px -2px rgba(0,0,0,0.2),0px 2px 2px 0px rgba(0,0,0,0.14),0px 1px 5px 0px rgba(0,0,0,0.12)",
8
+ "0px 3px 3px -2px rgba(0,0,0,0.2),0px 3px 4px 0px rgba(0,0,0,0.14),0px 1px 8px 0px rgba(0,0,0,0.12)",
9
+ "0px 2px 4px -1px rgba(0,0,0,0.2),0px 4px 5px 0px rgba(0,0,0,0.14),0px 1px 10px 0px rgba(0,0,0,0.12)",
10
+ "0px 3px 5px -1px rgba(0,0,0,0.2),0px 5px 8px 0px rgba(0,0,0,0.14),0px 1px 14px 0px rgba(0,0,0,0.12)",
11
+ "0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)",
12
+ "0px 4px 5px -2px rgba(0,0,0,0.2),0px 7px 10px 1px rgba(0,0,0,0.14),0px 2px 16px 1px rgba(0,0,0,0.12)",
13
+ "0px 5px 5px -3px rgba(0,0,0,0.2),0px 8px 10px 1px rgba(0,0,0,0.14),0px 3px 14px 2px rgba(0,0,0,0.12)",
14
+ "0px 5px 6px -3px rgba(0,0,0,0.2),0px 9px 12px 1px rgba(0,0,0,0.14),0px 3px 16px 2px rgba(0,0,0,0.12)",
15
+ "0px 6px 6px -3px rgba(0,0,0,0.2),0px 10px 14px 1px rgba(0,0,0,0.14),0px 4px 18px 3px rgba(0,0,0,0.12)",
16
+ "0px 6px 7px -4px rgba(0,0,0,0.2),0px 11px 15px 1px rgba(0,0,0,0.14),0px 4px 20px 3px rgba(0,0,0,0.12)",
17
+ "0px 7px 8px -4px rgba(0,0,0,0.2),0px 12px 17px 2px rgba(0,0,0,0.14),0px 5px 22px 4px rgba(0,0,0,0.12)",
18
+ "0px 7px 8px -4px rgba(0,0,0,0.2),0px 13px 19px 2px rgba(0,0,0,0.14),0px 5px 24px 4px rgba(0,0,0,0.12)",
19
+ "0px 7px 9px -4px rgba(0,0,0,0.2),0px 14px 21px 2px rgba(0,0,0,0.14),0px 5px 26px 4px rgba(0,0,0,0.12)",
20
+ "0px 8px 9px -5px rgba(0,0,0,0.2),0px 15px 22px 2px rgba(0,0,0,0.14),0px 6px 28px 5px rgba(0,0,0,0.12)",
21
+ "0px 8px 10px -5px rgba(0,0,0,0.2),0px 16px 24px 2px rgba(0,0,0,0.14),0px 6px 30px 5px rgba(0,0,0,0.12)",
22
+ "0px 8px 11px -5px rgba(0,0,0,0.2),0px 17px 26px 2px rgba(0,0,0,0.14),0px 6px 32px 5px rgba(0,0,0,0.12)",
23
+ "0px 9px 11px -5px rgba(0,0,0,0.2),0px 18px 28px 2px rgba(0,0,0,0.14),0px 7px 34px 6px rgba(0,0,0,0.12)",
24
+ "0px 9px 12px -6px rgba(0,0,0,0.2),0px 19px 29px 2px rgba(0,0,0,0.14),0px 7px 36px 6px rgba(0,0,0,0.12)",
25
+ "0px 10px 13px -6px rgba(0,0,0,0.2),0px 20px 31px 3px rgba(0,0,0,0.14),0px 8px 38px 7px rgba(0,0,0,0.12)",
26
+ "0px 10px 13px -6px rgba(0,0,0,0.2),0px 21px 33px 3px rgba(0,0,0,0.14),0px 8px 40px 7px rgba(0,0,0,0.12)",
27
+ "0px 10px 14px -6px rgba(0,0,0,0.2),0px 22px 35px 3px rgba(0,0,0,0.14),0px 8px 42px 7px rgba(0,0,0,0.12)",
28
+ "0px 11px 14px -7px rgba(0,0,0,0.2),0px 23px 36px 3px rgba(0,0,0,0.14),0px 9px 44px 8px rgba(0,0,0,0.12)",
29
+ "0px 11px 15px -7px rgba(0,0,0,0.2),0px 24px 38px 3px rgba(0,0,0,0.14),0px 9px 46px 8px rgba(0,0,0,0.12)"
30
+ ], u = ({ elevation: p = 1, square: r, variant: x = "elevation", className: a, sx: b, style: g, component: e = "div", children: o, classes: i, ...t }) => {
31
+ const s = {
32
+ boxShadow: x === "outlined" ? "none" : n[Math.min(Math.max(p, 0), 24)],
33
+ ...l(b),
34
+ ...g
35
+ };
36
+ return m(e, {
37
+ className: d("bg-white text-[rgba(0,0,0,0.87)]", !r && "rounded-[4px]", x === "outlined" && "border border-solid border-[rgba(0,0,0,0.12)]", a),
38
+ style: s,
39
+ ...t
40
+ }, o);
41
+ };
42
+ export {
43
+ u as Paper
44
+ };
@@ -0,0 +1,35 @@
1
+ import { useState as P } from "react";
2
+ import { jsx as r } from "react/jsx-runtime";
3
+ import { FloatingPortal as y, autoUpdate as E, flip as F, shift as h, useFloating as w, useMergeRefs as M } from "@floating-ui/react";
4
+ var j = ({ open: e = !1, anchorEl: s, id: l, placement: a = "bottom", transition: f, disablePortal: d, className: m, style: c, children: t }) => {
5
+ const [o, n] = P(!0);
6
+ e && o && n(!1);
7
+ const { refs: p, floatingStyles: u, placement: g } = w({
8
+ open: e,
9
+ placement: a,
10
+ whileElementsMounted: E,
11
+ elements: { reference: s ?? void 0 },
12
+ middleware: [F({ padding: 8 }), h({ padding: 8 })]
13
+ }), x = M([p.setFloating]);
14
+ if (!(e || f && !o)) return null;
15
+ const v = typeof t == "function" ? t({
16
+ TransitionProps: {
17
+ in: e,
18
+ onExited: () => n(!0)
19
+ },
20
+ placement: g
21
+ }) : t, i = /* @__PURE__ */ r("div", {
22
+ ref: x,
23
+ id: l,
24
+ style: {
25
+ ...u,
26
+ ...c
27
+ },
28
+ className: m,
29
+ children: v
30
+ });
31
+ return d ? i : /* @__PURE__ */ r(y, { children: i });
32
+ };
33
+ export {
34
+ j as Popper
35
+ };
@@ -0,0 +1,27 @@
1
+ import { resolveSx as p } from "../../helpers/sx.js";
2
+ import u from "clsx";
3
+ import "react";
4
+ import { jsx as d } from "react/jsx-runtime";
5
+ var i = {
6
+ text: "rounded-[4px] origin-[0_55%] scale-y-[0.6] my-0",
7
+ circular: "rounded-full",
8
+ rectangular: "",
9
+ rounded: "rounded-[4px]"
10
+ }, b = ({ variant: e = "text", width: o, height: r, animation: t = "pulse", className: l, sx: s, style: a, children: n, classes: x, component: g, ...c }) => {
11
+ const m = {
12
+ width: o,
13
+ height: r ?? (e === "text" ? "auto" : void 0),
14
+ backgroundColor: "rgba(0,0,0,0.11)",
15
+ ...p(s),
16
+ ...a
17
+ };
18
+ return /* @__PURE__ */ d("span", {
19
+ className: u("block", t !== !1 && "animate-pulse", i[e] ?? "", l),
20
+ style: m,
21
+ ...c,
22
+ children: n
23
+ });
24
+ };
25
+ export {
26
+ b as Skeleton
27
+ };
@@ -0,0 +1,24 @@
1
+ import { resolveSx as c } from "../../helpers/sx.js";
2
+ import n from "clsx";
3
+ import { Children as p, Fragment as u, createElement as i, isValidElement as w } from "react";
4
+ import { jsxs as y } from "react/jsx-runtime";
5
+ var S = {
6
+ row: "flex-row",
7
+ "row-reverse": "flex-row-reverse",
8
+ column: "flex-col",
9
+ "column-reverse": "flex-col-reverse"
10
+ }, C = (l, e) => p.toArray(l).map((r, o) => /* @__PURE__ */ y(u, { children: [o > 0 && e, r] }, o)), D = ({ direction: l = "column", spacing: e, divider: r, className: o, sx: s, style: f, component: a = "div", children: t, useFlexGap: E, ...x }) => {
11
+ const m = typeof e == "number" ? e * 8 : typeof e == "string" ? e : void 0, v = {
12
+ ...m !== void 0 ? { gap: m } : {},
13
+ ...c(s),
14
+ ...f
15
+ };
16
+ return i(a, {
17
+ className: n("flex", S[l] ?? "flex-col", o),
18
+ style: v,
19
+ ...x
20
+ }, r && w(r) ? C(t, r) : t);
21
+ };
22
+ export {
23
+ D as Stack
24
+ };
@@ -1,6 +1,47 @@
1
- import { Drawer as o } from "@mui/material";
2
- import { jsx as e } from "react/jsx-runtime";
3
- var a = (r) => /* @__PURE__ */ e(o, { ...r });
1
+ import { cn as f } from "../../../helpers/cn.js";
2
+ import { resolveSx as n } from "../../../helpers/sx.js";
3
+ import { useFocusTrap as v } from "../../../hooks/useFocusTrap.hook.js";
4
+ import { useEffect as w, useRef as h } from "react";
5
+ import { jsx as m, jsxs as b } from "react/jsx-runtime";
6
+ import { FloatingPortal as g } from "@floating-ui/react";
7
+ var k = {
8
+ left: "inset-y-0 left-0 h-full",
9
+ right: "inset-y-0 right-0 h-full",
10
+ top: "inset-x-0 top-0 w-full",
11
+ bottom: "inset-x-0 bottom-0 w-full"
12
+ }, E = {
13
+ left: "-translate-x-full",
14
+ right: "translate-x-full",
15
+ top: "-translate-y-full",
16
+ bottom: "translate-y-full"
17
+ }, F = ({ open: t = !1, onClose: l, anchor: o = "left", variant: u = "temporary", hideBackdrop: d, className: c, sx: x, PaperProps: a, ModalProps: p, children: y }) => {
18
+ const e = u === "temporary", i = h(null);
19
+ return w(() => {
20
+ if (!t || !e) return;
21
+ const r = (s) => {
22
+ s.key === "Escape" && l?.(s, "escapeKeyDown");
23
+ };
24
+ return document.addEventListener("keydown", r), () => document.removeEventListener("keydown", r);
25
+ }, [
26
+ t,
27
+ e,
28
+ l
29
+ ]), v(t && e, i), e && !t && !p?.keepMounted ? null : /* @__PURE__ */ b(g, { children: [e && !d && t && /* @__PURE__ */ m("div", {
30
+ className: "fixed inset-0 z-[1200] bg-[#626e7eb2]",
31
+ onClick: (r) => l?.(r, "backdropClick")
32
+ }), /* @__PURE__ */ m("div", {
33
+ ref: i,
34
+ role: e ? "dialog" : void 0,
35
+ "aria-modal": e && t ? !0 : void 0,
36
+ "aria-hidden": !t,
37
+ className: f("fixed z-[1200] overflow-auto bg-white transition-transform duration-300", t && "shadow-[0px_4px_40px_0px_#22213366]", k[o], !t && f(E[o], "pointer-events-none"), c, a?.className),
38
+ style: {
39
+ ...n(x),
40
+ ...n(a?.sx)
41
+ },
42
+ children: y
43
+ })] });
44
+ };
4
45
  export {
5
- a as StyledDrawer
46
+ F as StyledDrawer
6
47
  };
@@ -1,9 +1,9 @@
1
1
  var l = {
2
- "styled-link": "_styled-link_um6g7_1",
3
- "styled-link-disabled": "_styled-link-disabled_um6g7_16",
4
- "styled-link-xs": "_styled-link-xs_um6g7_32",
5
- "styled-link-small": "_styled-link-small_um6g7_37",
6
- "styled-link-large": "_styled-link-large_um6g7_42"
2
+ "styled-link": "_styled-link_f4qlz_1",
3
+ "styled-link-disabled": "_styled-link-disabled_f4qlz_16",
4
+ "styled-link-xs": "_styled-link-xs_f4qlz_32",
5
+ "styled-link-small": "_styled-link-small_f4qlz_37",
6
+ "styled-link-large": "_styled-link-large_f4qlz_42"
7
7
  };
8
8
  export {
9
9
  l as default
@@ -1,13 +1,13 @@
1
- import { createContext as p, useContext as x, useEffect as d, useMemo as b, useState as v } from "react";
2
- import { ClickAwayListener as m } from "@mui/material";
1
+ import { ClickAwayListener as p } from "../../mui-compat/ClickAwayListener.js";
2
+ import { createContext as x, useContext as d, useEffect as b, useMemo as v, useState as m } from "react";
3
3
  import { jsx as s } from "react/jsx-runtime";
4
- var a = p(null), l = () => {
5
- const t = x(a);
4
+ var a = x(null), l = () => {
5
+ const t = d(a);
6
6
  if (!t) throw new Error("Listbox.Button/Options/Option must be rendered inside <Listbox>");
7
7
  return t;
8
8
  }, f = (t, e) => typeof t == "function" ? t(e) : t;
9
9
  function L({ value: t, onChange: e, children: r }) {
10
- const [o, n] = v(!1), u = b(() => ({
10
+ const [o, n] = m(!1), u = v(() => ({
11
11
  open: o,
12
12
  select: (i) => {
13
13
  e(i), n(!1);
@@ -19,7 +19,7 @@ function L({ value: t, onChange: e, children: r }) {
19
19
  t,
20
20
  e
21
21
  ]);
22
- return d(() => {
22
+ return b(() => {
23
23
  if (!o) return;
24
24
  const i = (c) => {
25
25
  c.key === "Escape" && n(!1);
@@ -27,7 +27,7 @@ function L({ value: t, onChange: e, children: r }) {
27
27
  return document.addEventListener("keydown", i), () => document.removeEventListener("keydown", i);
28
28
  }, [o]), /* @__PURE__ */ s(a.Provider, {
29
29
  value: u,
30
- children: /* @__PURE__ */ s(m, {
30
+ children: /* @__PURE__ */ s(p, {
31
31
  onClickAway: () => n(!1),
32
32
  children: /* @__PURE__ */ s("div", {
33
33
  className: "relative w-full",
@@ -1,14 +1,31 @@
1
- import e from "clsx";
2
- import { Menu as r } from "@mui/material";
3
- import { jsx as a } from "react/jsx-runtime";
4
- var d = (s) => /* @__PURE__ */ a(r, {
5
- ...s,
6
- classes: {
7
- paper: e("border border-solid border-delta-300 shadow-[0px_2px_4px_0px_rgba(34,_33,_51,_0.15)]", s.classes?.paper),
8
- list: e("py-1", s.classes?.list),
9
- ...s.classes
10
- }
1
+ import { cn as y } from "../../../helpers/cn.js";
2
+ import { StyledPopover as S } from "../../utils/popover/StyledPopover.js";
3
+ import { StyledMenuList as f } from "./StyledMenuList.js";
4
+ import { jsx as p } from "react/jsx-runtime";
5
+ var u = {
6
+ border: "1px solid var(--colors-delta-300)",
7
+ boxShadow: "0px 2px 4px 0px rgba(34, 33, 51, 0.15)"
8
+ }, M = ({ open: a, anchorEl: o, onClose: t, anchorOrigin: l, transformOrigin: m, id: d, className: s, sx: x, classes: e, slotProps: r, autoFocus: i = !0, onClick: c, children: n }) => /* @__PURE__ */ p(S, {
9
+ open: a,
10
+ anchorEl: o,
11
+ onClose: t,
12
+ anchorOrigin: l,
13
+ transformOrigin: m,
14
+ id: d,
15
+ className: s,
16
+ sx: x,
17
+ slotProps: { paper: {
18
+ className: y("rounded", e?.paper, r?.paper?.className),
19
+ sx: [u, r?.paper?.sx],
20
+ style: r?.paper?.style
21
+ } },
22
+ children: /* @__PURE__ */ p(f, {
23
+ autoFocus: i,
24
+ className: e?.list,
25
+ onClick: c,
26
+ children: n
27
+ })
11
28
  });
12
29
  export {
13
- d as StyledMenu
30
+ M as StyledMenu
14
31
  };
@@ -1,23 +1,25 @@
1
- import o from "clsx";
2
- import { MenuItem as t } from "@mui/material";
3
- import { jsx as r } from "react/jsx-runtime";
4
- var n = (e) => /* @__PURE__ */ r(t, {
5
- ...e,
6
- classes: {
7
- selected: "bg-gama-50",
8
- root: o("h-10 pl-4 pr-2 hover:bg-delta-50", e.classes?.root),
9
- ...e.classes
1
+ import { cn as a } from "../../../helpers/cn.js";
2
+ import { resolveSx as y } from "../../../helpers/sx.js";
3
+ import { jsx as f } from "react/jsx-runtime";
4
+ var b = ({ children: n, onClick: o, onMouseDown: i, onMouseUp: l, disabled: e, selected: m, dense: s, className: u, classes: r, sx: d, "data-test": p, "data-testid": x, value: v }) => /* @__PURE__ */ f("li", {
5
+ role: "menuitem",
6
+ "aria-disabled": e ? !0 : void 0,
7
+ tabIndex: -1,
8
+ "data-test": p,
9
+ "data-testid": x,
10
+ onClick: e ? void 0 : o,
11
+ onMouseDown: e ? void 0 : i,
12
+ onMouseUp: e ? void 0 : l,
13
+ onKeyDown: (t) => {
14
+ e || (t.key === "Enter" || t.key === " ") && (t.preventDefault(), o?.(t));
10
15
  },
11
- sx: {
12
- fontSize: "var(--font-size-body-base)",
13
- "&.Mui-disabled": {
14
- pointerEvents: "auto",
15
- cursor: "not-allowed",
16
- "&:hover": { backgroundColor: "transparent !important" }
17
- },
18
- ...e.sx
19
- }
16
+ className: a("box-border flex items-center px-4 text-base outline-none", s ? "min-h-8 py-1" : "min-h-10 py-2", e ? "cursor-not-allowed text-delta-300" : "cursor-pointer text-delta-700 hover:bg-delta-50", m && a("bg-gama-50", r?.selected), r?.root, u),
17
+ style: {
18
+ fontFamily: "Roboto, Helvetica, Arial, sans-serif",
19
+ ...y(d)
20
+ },
21
+ children: n
20
22
  });
21
23
  export {
22
- n as StyledMenuItem
24
+ b as StyledMenuItem
23
25
  };
@@ -1,6 +1,36 @@
1
- import { MenuList as t } from "@mui/material";
2
- import { jsx as o } from "react/jsx-runtime";
3
- var m = (r) => /* @__PURE__ */ o(t, { ...r });
1
+ import { cn as p } from "../../../helpers/cn.js";
2
+ import { consumerOverrides as w } from "../../../helpers/classOverride.js";
3
+ import { useEffect as g, useRef as h } from "react";
4
+ import { jsx as x } from "react/jsx-runtime";
5
+ var m = (o) => o ? Array.from(o.querySelectorAll('[role="menuitem"]:not([aria-disabled="true"])')) : [], I = ({ children: o, className: i, autoFocus: s, disablePadding: u, onClick: c, onKeyDown: a }) => {
6
+ const t = h(null), f = w(i, "padding");
7
+ g(() => {
8
+ s && m(t.current)[0]?.focus();
9
+ }, [s]);
10
+ const d = (e) => {
11
+ if (a?.(e), ![
12
+ "ArrowDown",
13
+ "ArrowUp",
14
+ "Home",
15
+ "End"
16
+ ].includes(e.key)) return;
17
+ e.preventDefault();
18
+ const r = m(t.current);
19
+ if (r.length === 0) return;
20
+ const l = r.findIndex((y) => y === document.activeElement);
21
+ let n = l;
22
+ e.key === "ArrowDown" ? n = (l + 1) % r.length : e.key === "ArrowUp" ? n = (l - 1 + r.length) % r.length : e.key === "Home" ? n = 0 : e.key === "End" && (n = r.length - 1), r[n]?.focus();
23
+ };
24
+ return /* @__PURE__ */ x("ul", {
25
+ ref: t,
26
+ role: "menu",
27
+ className: p("m-0 list-none outline-none", !f && "px-0", !f && (u ? "py-0" : "py-2"), i),
28
+ style: { fontFamily: "Roboto, Helvetica, Arial, sans-serif" },
29
+ onClick: c,
30
+ onKeyDown: d,
31
+ children: o
32
+ });
33
+ };
4
34
  export {
5
- m as StyledMenuList
35
+ I as StyledMenuList
6
36
  };
@@ -1,15 +1,30 @@
1
- import { Tab as o } from "@mui/material";
2
- import { jsx as a } from "react/jsx-runtime";
3
- var e = (r) => /* @__PURE__ */ a(o, {
4
- ...r,
5
- sx: {
6
- textTransform: "none",
7
- letterSpacing: "normal",
8
- "&.MuiTab-textColorPrimary.Mui-selected": { color: "var(--colors-gama-500)" },
9
- "&.MuiTab-textColorPrimary": { color: "var(--colors-gray-600)" },
10
- "&.MuiTab-textColorPrimary.Mui-disabled": { color: "var(--colors-gray-300)" }
11
- }
12
- });
1
+ import { cn as b } from "../../../helpers/cn.js";
2
+ import { resolveSx as f } from "../../../helpers/sx.js";
3
+ import { useTabsContext as u } from "./TabsContext.js";
4
+ import { useCallback as h } from "react";
5
+ import { jsx as d } from "react/jsx-runtime";
6
+ var k = ({ value: a, label: i, disabled: e, className: s, sx: l, index: m }) => {
7
+ const t = u(), o = a !== void 0 ? a : m, r = t ? t.value === o : !1, c = /\btext-(?:xs|sm|base|lg|xl|\[)/.test(s ?? ""), p = /\bfont-(?:thin|extralight|light|normal|medium|semibold|bold|extrabold|black)\b/.test(s ?? ""), x = /\b(?:uppercase|lowercase|capitalize|normal-case)\b/.test(s ?? "");
8
+ return /* @__PURE__ */ d("button", {
9
+ ref: h((n) => {
10
+ t?.register(o, n);
11
+ }, [t, o]),
12
+ type: "button",
13
+ role: "tab",
14
+ "aria-selected": r,
15
+ "aria-disabled": e ? !0 : void 0,
16
+ disabled: e,
17
+ tabIndex: r ? 0 : -1,
18
+ "data-tab-value": typeof o == "string" || typeof o == "number" ? String(o) : void 0,
19
+ onClick: (n) => !e && t?.onSelect(n, o),
20
+ className: b("inline-flex min-h-12 min-w-[90px] shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-t-lg border-0 bg-transparent px-4 py-3 tracking-normal outline-none transition-colors", !c && (t?.size === "small" ? "text-base" : "text-lg"), !p && (t?.size === "small" || r || e ? "font-semibold" : "font-medium hover:font-semibold focus-visible:font-semibold"), !x && "normal-case", t?.size === "small" && "min-h-10 px-3 py-2", e ? "text-delta-300" : r ? "text-gama-500" : "text-delta-600", !e && "cursor-pointer", "focus-visible:shadow-[inset_0_0_0_2px_var(--colors-gama-400)]", !e && !r && "hover:shadow-[inset_0_-2px_0_0_var(--colors-delta-300)]", s),
21
+ style: {
22
+ fontFamily: "Roboto, Helvetica, Arial, sans-serif",
23
+ ...f(l)
24
+ },
25
+ children: i
26
+ });
27
+ };
13
28
  export {
14
- e as StyledTab
29
+ k as StyledTab
15
30
  };
@@ -1,70 +1,119 @@
1
- import { cn as s } from "../../../helpers/cn.js";
2
- import { Tabs as e } from "@mui/material";
3
- import { jsx as l } from "react/jsx-runtime";
4
- function n(o) {
5
- return Array.isArray(o);
6
- }
7
- function d(o) {
8
- return o != null && !Array.isArray(o);
9
- }
10
- var c = {
11
- "& .MuiTab-root": { fontSize: "var(--font-size-body-lg)" },
12
- "& .MuiTabs-scroller": { borderBottom: "1px solid var(--colors-delta-200)" },
13
- "& .MuiTabs-scrollButtons": {
14
- border: "1px solid var(--colors-delta-500)",
15
- width: 40,
16
- height: 40,
17
- borderRadius: "10%",
18
- display: "none",
19
- justifyContent: "center",
20
- alignItems: "center",
21
- alignSelf: "center",
22
- "& svg": {
23
- fontSize: 24,
24
- color: "var(--colors-delta-700)"
25
- },
26
- "&:hover": { backgroundColor: "var(--colors-gama-50)" },
27
- "&:first-of-type": { marginRight: "8px" },
28
- "&:last-of-type": { marginLeft: "8px" },
29
- transition: "opacity 0.3s ease, transform 0.3s ease",
30
- opacity: 0,
31
- transform: "scale(0)"
32
- },
33
- "& .MuiTabs-scrollButtons.Mui-disabled": { display: "none" },
34
- "& .MuiTabs-scrollButtons:not(.Mui-disabled)": {
35
- display: "flex",
36
- opacity: 1,
37
- transform: "scale(1)"
38
- }
39
- }, p = {
40
- minHeight: 36,
41
- "& .MuiTab-root": {
42
- fontSize: "var(--font-size-body-base)",
43
- height: 36,
44
- minHeight: 36,
45
- paddingLeft: "12px",
46
- paddingRight: "12px",
47
- paddingTop: "8px",
48
- paddingBottom: "8px"
49
- }
50
- }, m = ({ className: o, size: i = "default", sx: r, ...a }) => {
51
- const t = [c];
52
- return i === "small" && t.push(p), n(r) ? t.push(...r) : d(r) && t.push(r), /* @__PURE__ */ l(e, {
53
- ...a,
54
- className: s("relative rounded-t-lg bg-white px-4", o),
55
- slotProps: {
56
- ...a.slotProps,
57
- indicator: {
58
- style: {
59
- background: "var(--colors-gama-500)",
60
- color: "var(--colors-gama-500)"
61
- },
62
- ...a.slotProps?.indicator ?? {}
63
- }
64
- },
65
- sx: t
1
+ import { cn as n } from "../../../helpers/cn.js";
2
+ import { resolveSx as T } from "../../../helpers/sx.js";
3
+ import { ChevronRightIcon as H } from "../../icons/chevron-right-icon/ChevronRightIcon.js";
4
+ import { ChevronLeftIcon as K } from "../../icons/chevron-left-icon/ChevronLeftIcon.js";
5
+ import { consumerOverrides as M } from "../../../helpers/classOverride.js";
6
+ import { TabsContext as V } from "./TabsContext.js";
7
+ import { Children as _, cloneElement as q, isValidElement as z, useCallback as u, useLayoutEffect as F, useMemo as G, useRef as R, useState as E } from "react";
8
+ import { jsx as l, jsxs as A } from "react/jsx-runtime";
9
+ var I = 120, te = ({ value: i, onChange: m, variant: g = "standard", scrollButtons: w = "auto", centered: j, size: b = "default", className: x, sx: N, children: y }) => {
10
+ const a = R(null), d = R(/* @__PURE__ */ new Map()), [h, O] = E({
11
+ left: 0,
12
+ width: 0,
13
+ disabled: !1
14
+ }), [c, W] = E({
15
+ left: !1,
16
+ right: !1
17
+ }), p = g === "scrollable", v = u((e, t) => {
18
+ t ? d.current.set(e, t) : d.current.delete(e);
19
+ }, []), k = u((e, t) => m?.(e, t), [m]), f = u(() => {
20
+ const e = d.current.get(i), t = a.current;
21
+ if (e && O({
22
+ left: e.offsetLeft,
23
+ width: e.offsetWidth,
24
+ disabled: e.disabled || e.getAttribute("aria-disabled") === "true"
25
+ }), t) {
26
+ const { scrollLeft: o, scrollWidth: r, clientWidth: s } = t;
27
+ W({
28
+ left: o > 1,
29
+ right: o + s < r - 1
30
+ });
31
+ }
32
+ }, [i]);
33
+ F(() => {
34
+ f();
35
+ const e = a.current;
36
+ if (!e) return;
37
+ const t = new ResizeObserver(f);
38
+ return t.observe(e), () => t.disconnect();
39
+ }, [f, y]);
40
+ const S = (e) => {
41
+ a.current?.scrollBy({
42
+ left: e,
43
+ behavior: "smooth"
44
+ });
45
+ }, B = (e) => {
46
+ if (![
47
+ "ArrowRight",
48
+ "ArrowLeft",
49
+ "Home",
50
+ "End"
51
+ ].includes(e.key)) return;
52
+ e.preventDefault();
53
+ const t = Array.from(d.current.values()).filter((s) => !s.disabled);
54
+ if (t.length === 0) return;
55
+ const o = t.findIndex((s) => s === document.activeElement);
56
+ let r = o;
57
+ e.key === "ArrowRight" ? r = (o + 1) % t.length : e.key === "ArrowLeft" ? r = (o - 1 + t.length) % t.length : e.key === "Home" ? r = 0 : e.key === "End" && (r = t.length - 1), t[r]?.focus();
58
+ }, C = p && w !== !1 && (w === !0 || c.left || c.right), D = M(x, "padding-x"), P = G(() => ({
59
+ value: i,
60
+ size: b,
61
+ onSelect: k,
62
+ register: v
63
+ }), [
64
+ i,
65
+ b,
66
+ k,
67
+ v
68
+ ]), L = "flex h-10 w-10 shrink-0 items-center justify-center self-center rounded-[10%] border border-solid border-delta-500 text-delta-700 transition-colors hover:bg-gama-50 disabled:invisible";
69
+ return /* @__PURE__ */ l(V.Provider, {
70
+ value: P,
71
+ children: /* @__PURE__ */ A("div", {
72
+ className: n("relative flex items-center rounded-t-lg bg-white", !D && "px-4", x),
73
+ style: T(N),
74
+ children: [
75
+ C && /* @__PURE__ */ l("button", {
76
+ type: "button",
77
+ "aria-label": "scroll tabs left",
78
+ className: n(L, "mr-2"),
79
+ disabled: !c.left,
80
+ onClick: () => S(-I),
81
+ children: /* @__PURE__ */ l(K, {
82
+ width: 24,
83
+ height: 24
84
+ })
85
+ }),
86
+ /* @__PURE__ */ A("div", {
87
+ ref: a,
88
+ role: "tablist",
89
+ "aria-orientation": "horizontal",
90
+ onKeyDown: B,
91
+ onScroll: f,
92
+ className: n("relative flex border-x-0 border-b border-t-0 border-solid border-delta-200 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", p ? "flex-1 overflow-x-auto" : "w-full", g === "fullWidth" && "[&>*]:flex-1", j && "justify-center", b === "small" && "min-h-9"),
93
+ children: [_.map(y, (e, t) => z(e) ? q(e, { index: t }) : e), /* @__PURE__ */ l("span", {
94
+ "aria-hidden": !0,
95
+ className: n("absolute bottom-0 h-0.5 transition-all duration-300", h.disabled ? "bg-delta-300" : "bg-gama-500"),
96
+ style: {
97
+ left: h.left,
98
+ width: h.width
99
+ }
100
+ })]
101
+ }),
102
+ C && /* @__PURE__ */ l("button", {
103
+ type: "button",
104
+ "aria-label": "scroll tabs right",
105
+ className: n(L, "ml-2"),
106
+ disabled: !c.right,
107
+ onClick: () => S(I),
108
+ children: /* @__PURE__ */ l(H, {
109
+ width: 24,
110
+ height: 24
111
+ })
112
+ })
113
+ ]
114
+ })
66
115
  });
67
116
  };
68
117
  export {
69
- m as StyledTabs
118
+ te as StyledTabs
70
119
  };
@@ -0,0 +1,6 @@
1
+ import { createContext as t, useContext as e } from "react";
2
+ var o = t(null), a = () => e(o);
3
+ export {
4
+ o as TabsContext,
5
+ a as useTabsContext
6
+ };
@@ -0,0 +1,10 @@
1
+ import { createContext as r, useContext as t } from "react";
2
+ var o = r(null), c = () => {
3
+ const e = t(o);
4
+ if (!e) throw new Error("StyledAccordionSummary/Details must be rendered inside StyledAccordion");
5
+ return e;
6
+ };
7
+ export {
8
+ o as AccordionContext,
9
+ c as useAccordionContext
10
+ };