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
@@ -15,7 +15,7 @@ function A({ action: e, showLabel: t, selectionTone: l = !1 }) {
15
15
  dataTest: e.dataTest ?? `dynamic-toolbar-action-${e.id}`,
16
16
  variant: e.variant ?? (l ? "text" : "outlined"),
17
17
  error: e.tone === "danger",
18
- size: e.size ?? "small",
18
+ size: e.size ?? "large",
19
19
  disabled: e.disabled,
20
20
  startIcon: e.icon,
21
21
  onClick: e.onClick,
@@ -27,7 +27,7 @@ function T({ overflowMenuLabel: e, onOpen: t }) {
27
27
  return /* @__PURE__ */ n(u, {
28
28
  dataTest: "dynamic-toolbar-overflow-actions",
29
29
  variant: "text",
30
- size: "small",
30
+ size: "large",
31
31
  endIcon: /* @__PURE__ */ n(p, {
32
32
  width: 20,
33
33
  height: 20
@@ -1,4 +1,4 @@
1
- var e = { "styled-module-title": "_styled-module-title_174mo_1" };
1
+ var e = { "styled-module-title": "_styled-module-title_k077p_1" };
2
2
  export {
3
3
  e as default
4
4
  };
@@ -1,12 +1,12 @@
1
1
  var e = {
2
- "asma-ui-core-styled-widget": "_asma-ui-core-styled-widget_gzht1_1",
3
- "empty-state": "_empty-state_gzht1_13",
4
- "widget-header": "_widget-header_gzht1_16",
5
- "widget-header-left": "_widget-header-left_gzht1_22",
6
- "widget-header-right": "_widget-header-right_gzht1_28",
7
- "widget-content": "_widget-content_gzht1_34",
8
- "widget-footer": "_widget-footer_gzht1_44",
9
- "widget-link": "_widget-link_gzht1_49"
2
+ "asma-ui-core-styled-widget": "_asma-ui-core-styled-widget_1oj8h_1",
3
+ "empty-state": "_empty-state_1oj8h_13",
4
+ "widget-header": "_widget-header_1oj8h_16",
5
+ "widget-header-left": "_widget-header-left_1oj8h_22",
6
+ "widget-header-right": "_widget-header-right_1oj8h_28",
7
+ "widget-content": "_widget-content_1oj8h_34",
8
+ "widget-footer": "_widget-footer_1oj8h_44",
9
+ "widget-link": "_widget-link_1oj8h_49"
10
10
  };
11
11
  export {
12
12
  e as default
@@ -1,4 +1,4 @@
1
- var t = { "styled-widget-title": "_styled-widget-title_1mja5_1" };
1
+ var t = { "styled-widget-title": "_styled-widget-title_1o7tp_1" };
2
2
  export {
3
3
  t as default
4
4
  };
@@ -1,10 +1,10 @@
1
- import { StyledTooltip as a } from "../tooltip/StyledTooltip.js";
1
+ import { StyledTooltip as i } from "../tooltip/StyledTooltip.js";
2
2
  import n from "../../custom/widget/icons/ChevronDownIcon.js";
3
3
  import e from "./StyledAIDisclosure.module.js";
4
4
  import c from "clsx";
5
5
  import { useState as m } from "react";
6
6
  import { jsx as r, jsxs as d } from "react/jsx-runtime";
7
- var x = ({ label: t, tooltip: s }) => {
7
+ var N = ({ label: t, tooltip: s }) => {
8
8
  const [o, l] = m(!1);
9
9
  return /* @__PURE__ */ d("div", {
10
10
  className: e.root,
@@ -20,8 +20,10 @@ var x = ({ label: t, tooltip: s }) => {
20
20
  className: e.label,
21
21
  children: t
22
22
  }),
23
- s && /* @__PURE__ */ r(a, {
23
+ s && /* @__PURE__ */ r(i, {
24
24
  arrow: !0,
25
+ className: "-left-[3px] -top-[14px] font-medium",
26
+ offsetDistance: 16,
25
27
  disableFocusListener: !0,
26
28
  disableHoverListener: !0,
27
29
  disableTouchListener: !0,
@@ -32,7 +34,7 @@ var x = ({ label: t, tooltip: s }) => {
32
34
  "aria-expanded": o,
33
35
  "aria-label": "Toggle AI disclosure tooltip",
34
36
  className: e.trigger,
35
- onClick: () => l((i) => !i),
37
+ onClick: () => l((a) => !a),
36
38
  type: "button",
37
39
  children: /* @__PURE__ */ r(n, {
38
40
  className: c(e.chevron, o && e.chevronOpen),
@@ -45,5 +47,5 @@ var x = ({ label: t, tooltip: s }) => {
45
47
  });
46
48
  };
47
49
  export {
48
- x as StyledAIDisclosure
50
+ N as StyledAIDisclosure
49
51
  };
@@ -1,28 +1,58 @@
1
- import { Badge as t } from "@mui/material";
2
- import { jsx as g } from "react/jsx-runtime";
3
- var x = ({ color: r = "primary", dataTest: a, size: e = "medium", sx: d, ...o }) => {
4
- const i = d?.["& .MuiBadge-badge"];
5
- return /* @__PURE__ */ g(t, {
6
- color: r,
7
- "data-testid": a,
8
- ...o,
9
- sx: {
10
- "& .MuiBadge-colorPrimary": {
11
- backgroundColor: "#D9F256",
12
- color: "#0A3D3D",
13
- border: "1px solid #C1E600"
1
+ import { resolveSx as n } from "../../../helpers/sx.js";
2
+ import C from "clsx";
3
+ import { jsx as O, jsxs as A } from "react/jsx-runtime";
4
+ var c = {
5
+ primary: {
6
+ backgroundColor: "var(--colors-gama-500)",
7
+ color: "#fff"
8
+ },
9
+ default: {
10
+ backgroundColor: "var(--colors-delta-200)",
11
+ color: "var(--colors-delta-800)"
12
+ },
13
+ secondary: {
14
+ backgroundColor: "var(--colors-delta-600)",
15
+ color: "#fff"
16
+ },
17
+ error: {
18
+ backgroundColor: "var(--colors-error-100)",
19
+ color: "var(--colors-error-600)"
20
+ },
21
+ info: {
22
+ backgroundColor: "var(--colors-info-500)",
23
+ color: "#fff"
24
+ },
25
+ success: {
26
+ backgroundColor: "var(--colors-success-700)",
27
+ color: "#fff"
28
+ },
29
+ warning: {
30
+ backgroundColor: "var(--colors-warning-700)",
31
+ color: "#fff"
32
+ }
33
+ }, L = {
34
+ "top-right": "top-0 right-0 translate-x-1/2 -translate-y-1/2 origin-[100%_0%]",
35
+ "top-left": "top-0 left-0 -translate-x-1/2 -translate-y-1/2 origin-[0%_0%]",
36
+ "bottom-right": "bottom-0 right-0 translate-x-1/2 translate-y-1/2 origin-[100%_100%]",
37
+ "bottom-left": "bottom-0 left-0 -translate-x-1/2 translate-y-1/2 origin-[0%_100%]"
38
+ }, i = "& .MuiBadge-badge", T = ({ color: f = "primary", dataTest: d, size: p = "medium", badgeContent: o, max: e = 99, showZero: m = !1, variant: x = "standard", invisible: u, anchorOrigin: l, children: g, className: b, sx: r, overlap: N, classes: $, slots: z, slotProps: a, component: B, ...v }) => {
39
+ const s = r && typeof r == "object" && !Array.isArray(r) ? r : {}, y = n(s[i]), h = n(Object.fromEntries(Object.entries(s).filter(([j]) => j !== i))), t = x === "dot", _ = !!u || !t && (o === 0 || o === void 0 || o === null) && !m, w = t ? null : typeof o == "number" && o > e ? `${e}+` : o, S = l?.vertical ?? "top", k = l?.horizontal ?? "right";
40
+ return /* @__PURE__ */ A("span", {
41
+ className: "relative inline-flex shrink-0 align-middle",
42
+ "data-testid": d,
43
+ style: h,
44
+ ...v,
45
+ children: [g, !_ && /* @__PURE__ */ O("span", {
46
+ className: C("absolute z-[1] box-border flex flex-row flex-wrap content-center items-center justify-center whitespace-nowrap font-roboto font-semibold leading-none", L[`${S}-${k}`], t ? "h-[8px] w-[8px] min-w-[8px] rounded-full p-0" : p === "small" ? "h-[16px] w-max min-w-[16px] rounded-[20px] px-[4px] text-[0.75rem]" : "h-[20px] min-w-[20px] rounded-[20px] px-[6px] text-sm", b, a?.badge?.className),
47
+ style: {
48
+ ...c[f] ?? c.default,
49
+ ...y,
50
+ ...a?.badge?.style
14
51
  },
15
- ...d,
16
- ...e === "small" ? { "& .MuiBadge-badge": {
17
- minWidth: "16px",
18
- height: "16px",
19
- width: "max-content",
20
- padding: "0 4px",
21
- ...i
22
- } } : {}
23
- }
52
+ children: w
53
+ })]
24
54
  });
25
55
  };
26
56
  export {
27
- x as StyledBadge
57
+ T as StyledBadge
28
58
  };
@@ -1,62 +1,65 @@
1
- import { CloseIcon as t } from "../../icons/close-icon/CloseIcon.js";
2
- import { forwardRef as c } from "react";
3
- import { Chip as s } from "@mui/material";
4
- import { jsx as e } from "react/jsx-runtime";
5
- var m = c(({ dataTest: r, readOnly: o, onDelete: l, ...a }, d) => /* @__PURE__ */ e(s, {
6
- ...a,
7
- ref: d,
8
- "data-testid": r,
9
- deleteIcon: o ? void 0 : /* @__PURE__ */ e(t, {
10
- "data-testid": `${r}-delete`,
11
- height: 18,
12
- width: 18,
13
- className: "min-w-[18px]"
14
- }),
15
- onDelete: o ? void 0 : l,
16
- sx: {
17
- border: "1px solid",
18
- backgroundColor: "white",
19
- borderColor: "var(--colors-delta-300)",
20
- color: "var(--colors-delta-800)",
21
- fontSize: "var(--font-size-body-base)",
22
- ...o ? {
23
- pointerEvents: "none",
24
- "&:hover": {
25
- borderColor: "var(--colors-delta-300)",
26
- backgroundColor: "white"
27
- }
28
- } : {
29
- "&:hover, &[data-hovered]": {
30
- borderColor: "var(--colors-gama-200)",
31
- backgroundColor: "var(--colors-gama-50)"
32
- },
33
- "&:focus, &[data-focus]": {
34
- outline: "none",
35
- borderColor: "var(--colors-gama-400)",
36
- backgroundColor: "var(--colors-gama-50)",
37
- boxShadow: "0 0 0 1px inset var(--colors-gama-400)"
38
- },
39
- "&:active": {
40
- borderColor: "var(--colors-gama-400)",
41
- backgroundColor: "var(--colors-gama-50)",
42
- boxShadow: "0 0 0 2px inset var(--colors-gama-400)"
43
- },
44
- "& .MuiChip-deleteIcon": {
45
- border: "1px solid",
46
- borderColor: "var(--colors-delta-100)",
47
- color: "var(--colors-delta-700)",
48
- backgroundColor: "var(--colors-delta-50)",
49
- borderRadius: "50%",
50
- "&:hover": {
51
- borderColor: "var(--colors-delta-100)",
52
- backgroundColor: "var(--colors-delta-50)",
53
- color: "var(--colors-delta-700)"
54
- }
55
- }
1
+ import { cn as i } from "../../../helpers/cn.js";
2
+ import { resolveSx as $ } from "../../../helpers/sx.js";
3
+ import { CloseIcon as E } from "../../icons/close-icon/CloseIcon.js";
4
+ import { consumerOverrides as x } from "../../../helpers/classOverride.js";
5
+ import { getChipPadding as L } from "./chipPadding.js";
6
+ import { forwardRef as U } from "react";
7
+ import { jsx as m, jsxs as q } from "react/jsx-runtime";
8
+ var Y = U(({ dataTest: f, label: c, size: e = "medium", disabled: t, readOnly: o, clickable: b, icon: w, avatar: u, deleteIcon: _, onDelete: s, onClick: l, onMouseDown: k, onMouseUp: y, className: p, classes: r, sx: S, tabIndex: v, "aria-label": j, role: h, "aria-checked": R, "aria-readonly": B, "data-hovered": C, "data-focus": D, variant: A, color: F }, M) => {
9
+ const n = !o && !t && (!!b || !!l), g = u ?? w, d = L(e, !!g, !!(s && !o)), N = {
10
+ paddingTop: d.top,
11
+ paddingRight: d.right,
12
+ paddingBottom: d.bottom,
13
+ paddingLeft: d.left
14
+ }, I = (a) => {
15
+ a.stopPropagation(), s?.(a);
16
+ }, K = (a) => {
17
+ n && (a.key === "Enter" || a.key === " ") && (a.preventDefault(), l?.(a));
18
+ }, P = x(p, "width"), W = x(p, "max-width");
19
+ return /* @__PURE__ */ q("div", {
20
+ ref: M,
21
+ "data-testid": f,
22
+ "aria-label": j,
23
+ "data-hovered": C,
24
+ "data-focus": D,
25
+ role: h ?? (n ? "button" : void 0),
26
+ "aria-checked": h ? R : void 0,
27
+ "aria-readonly": h ? B : void 0,
28
+ tabIndex: n ? v ?? 0 : v,
29
+ onClick: t || o ? void 0 : l,
30
+ onKeyDown: t || o ? void 0 : K,
31
+ onMouseDown: t || o ? void 0 : k,
32
+ onMouseUp: t || o ? void 0 : y,
33
+ className: i("box-border inline-flex items-center gap-1 rounded-[25px] border border-solid border-delta-300 bg-white text-base text-delta-700", !P && "w-fit", !W && "max-w-full", e === "small" ? "h-6" : "h-8", o && "pointer-events-none", t && "pointer-events-none opacity-[0.38]", n && i("cursor-pointer outline-none", "data-[hovered]:border-gama-200 data-[hovered]:bg-gama-25 hover:border-gama-200 hover:bg-gama-25", "focus:!border-gama-400 focus:bg-gama-25 focus:shadow-[0_0_0_1px_var(--colors-gama-400)]", "data-[focus]:!border-gama-400 data-[focus]:bg-gama-25 data-[focus]:shadow-[0_0_0_1px_var(--colors-gama-400)]", "active:!border-gama-400 active:bg-gama-25 active:shadow-[0_0_0_2px_var(--colors-gama-400)]"), r?.root, p),
34
+ style: {
35
+ ...N,
36
+ ...$(S)
56
37
  },
57
- ...a.sx
58
- }
59
- }));
38
+ children: [
39
+ g && /* @__PURE__ */ m("span", {
40
+ className: i("flex shrink-0 items-center justify-center", e === "small" ? "h-[18px] w-[18px]" : "h-6 w-6", u ? r?.avatar : r?.icon),
41
+ children: g
42
+ }),
43
+ /* @__PURE__ */ m("span", {
44
+ className: i("min-w-0 truncate", r?.label),
45
+ children: c
46
+ }),
47
+ s && !o && /* @__PURE__ */ m("button", {
48
+ type: "button",
49
+ "data-testid": `${f}-delete`,
50
+ "aria-label": typeof c == "string" ? `Remove ${c}` : "Remove",
51
+ onClick: I,
52
+ disabled: t,
53
+ className: i("flex shrink-0 items-center justify-center rounded-full border border-solid border-delta-100 bg-delta-50 p-0 text-delta-700", e === "small" ? "h-[18px] w-[18px]" : "h-5 w-5", r?.deleteIcon),
54
+ children: _ ?? /* @__PURE__ */ m(E, {
55
+ height: e === "small" ? 14 : 16,
56
+ width: e === "small" ? 14 : 16,
57
+ className: "min-w-0 shrink-0"
58
+ })
59
+ })
60
+ ]
61
+ });
62
+ });
60
63
  export {
61
- m as StyledChip
64
+ Y as StyledChip
62
65
  };
@@ -0,0 +1,44 @@
1
+ var o = (x, p, t) => x === "small" ? p && t ? {
2
+ top: "4px",
3
+ right: "4px",
4
+ bottom: "4px",
5
+ left: "4px"
6
+ } : t ? {
7
+ top: "2px",
8
+ right: "2px",
9
+ bottom: "2px",
10
+ left: "8px"
11
+ } : p ? {
12
+ top: "2px",
13
+ right: "8px",
14
+ bottom: "2px",
15
+ left: "4px"
16
+ } : {
17
+ top: "2px",
18
+ right: "8px",
19
+ bottom: "2px",
20
+ left: "8px"
21
+ } : p && t ? {
22
+ top: "4px",
23
+ right: "4px",
24
+ bottom: "4px",
25
+ left: "4px"
26
+ } : t ? {
27
+ top: "4px",
28
+ right: "4px",
29
+ bottom: "4px",
30
+ left: "12px"
31
+ } : p ? {
32
+ top: "4px",
33
+ right: "12px",
34
+ bottom: "4px",
35
+ left: "4px"
36
+ } : {
37
+ top: "4px",
38
+ right: "12px",
39
+ bottom: "4px",
40
+ left: "12px"
41
+ };
42
+ export {
43
+ o as getChipPadding
44
+ };
@@ -1,12 +1,20 @@
1
- import { getStyles as a } from "../helpers/getStyles.js";
2
- import s from "clsx";
3
- import { jsx as i } from "react/jsx-runtime";
4
- var c = ({ title: r, onClick: t, className: e, dataTest: m, size: o = "base" }) => /* @__PURE__ */ i("div", {
5
- className: s(a({ size: o }), e),
6
- onClick: t,
7
- "data-testid": m,
8
- children: r
9
- });
1
+ import { getStyles as y } from "../helpers/getStyles.js";
2
+ import i from "clsx";
3
+ import { jsx as l } from "react/jsx-runtime";
4
+ var b = ({ title: r, onClick: t, className: o, dataTest: s, size: a = "base" }) => {
5
+ const d = y({ size: a }), m = t ? (e) => {
6
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), t(e));
7
+ } : void 0;
8
+ return /* @__PURE__ */ l("div", {
9
+ className: i(d, o),
10
+ onClick: t,
11
+ onKeyDown: m,
12
+ role: t ? "button" : void 0,
13
+ tabIndex: t ? 0 : void 0,
14
+ "data-testid": s,
15
+ children: r
16
+ });
17
+ };
10
18
  export {
11
- c as StyledFormLabel
19
+ b as StyledFormLabel
12
20
  };
@@ -1,8 +1,8 @@
1
1
  var l = {
2
- "styled-label-md": "_styled-label-md_jbn3o_1",
3
- "styled-label-base": "_styled-label-base_jbn3o_10",
4
- "styled-label-lg": "_styled-label-lg_jbn3o_19",
5
- "styled-label-xl": "_styled-label-xl_jbn3o_27"
2
+ "styled-label-md": "_styled-label-md_g58cn_1",
3
+ "styled-label-base": "_styled-label-base_g58cn_10",
4
+ "styled-label-lg": "_styled-label-lg_g58cn_19",
5
+ "styled-label-xl": "_styled-label-xl_g58cn_27"
6
6
  };
7
7
  export {
8
8
  l as default
@@ -1,47 +1,43 @@
1
- import { StyledChip as v } from "../chip/StyledChip.js";
2
- import { StyledCheckbox as b } from "../../inputs/checkbox/StyledCheckbox.js";
3
- import { StyledRadio as m } from "../../inputs/radio-button/StyledRadio.js";
4
- import { forwardRef as u } from "react";
5
- import { jsx as e } from "react/jsx-runtime";
6
- var S = u(({ type: i = "checkbox", checked: a, size: c = "small", ...o }, n) => {
7
- const r = i === "checkbox", s = r ? b : m, d = !o.readOnly && !r && a, l = {
8
- borderColor: "var(--colors-gama-300)",
9
- backgroundColor: "var(--colors-gama-25)",
10
- boxShadow: "0 0 0 1px inset var(--colors-gama-300)"
11
- }, t = o.ariaLabel ?? (typeof o.label == "string" ? o.label : void 0);
12
- return /* @__PURE__ */ e(v, {
13
- ref: n,
14
- "aria-label": t,
15
- avatar: /* @__PURE__ */ e(s, {
16
- dataTest: o.dataTest,
17
- disableRipple: !0,
18
- checked: a,
19
- size: c,
20
- sx: { pointerEvents: "none" },
21
- slotProps: { input: { "aria-label": t } }
22
- }),
1
+ import { cn as a } from "../../../helpers/cn.js";
2
+ import { StyledChip as f } from "../chip/StyledChip.js";
3
+ import { StyledCheckbox as v } from "../../inputs/checkbox/base-ui/StyledCheckbox.js";
4
+ import { StyledRadio as u } from "../../inputs/radio-button/base-ui/StyledRadio.js";
5
+ import i from "./StyledInteractiveChip.module.js";
6
+ import { forwardRef as x } from "react";
7
+ import { jsx as o } from "react/jsx-runtime";
8
+ var y = "[&[data-testid][role=button]]:border-2 [&[data-testid][role=button]]:border-gama-400 [&[data-testid][role=button]]:bg-gama-25", S = { paddingLeft: "6px" }, h = x(({ type: r = "checkbox", checked: t, size: l = "small", ariaLabel: n, ...e }, c) => {
9
+ const d = r === "checkbox", m = n ?? (typeof e.label == "string" ? e.label : void 0), s = !e.readOnly && !d && !!t, b = d ? /* @__PURE__ */ o(v, {
10
+ dataTest: e.dataTest,
11
+ disableRipple: !0,
12
+ checked: t,
13
+ size: l,
14
+ readOnly: e.readOnly,
15
+ decorative: !0,
16
+ className: a("pointer-events-none", i.control)
17
+ }) : /* @__PURE__ */ o(u, {
18
+ dataTest: e.dataTest,
19
+ checked: t,
20
+ size: l,
21
+ decorative: !0,
22
+ className: a("pointer-events-none", i.control)
23
+ });
24
+ return /* @__PURE__ */ o(f, {
25
+ ref: c,
26
+ "aria-label": m,
27
+ role: r,
28
+ "aria-checked": !!t,
29
+ "aria-readonly": e.readOnly,
30
+ avatar: b,
23
31
  clickable: !0,
24
32
  tabIndex: 0,
25
- ...o,
33
+ ...e,
34
+ className: a(s && y, e.className),
26
35
  sx: {
27
- ...d && {
28
- outline: "none",
29
- borderColor: "var(--colors-gama-400)",
30
- boxShadow: "0 0 0 1px inset var(--colors-gama-400)",
31
- backgroundColor: "var(--colors-gama-50)",
32
- "&:hover": l
33
- },
34
- ...a && { "& .MuiChip-avatar": { "& .MuiSvgIcon-root": { color: "var(--colors-gama-500)" } } },
35
- ...o.readOnly && { "& .MuiChip-avatar": {
36
- "& .MuiSvgIcon-root": { color: "var(--colors-delta-500)" },
37
- "& .MuiCheckbox-root, & .MuiRadio-root": { color: "var(--colors-delta-500)" },
38
- "& .Mui-checked": { color: "var(--colors-delta-500)" }
39
- } },
40
- "&:focus:hover": l,
41
- ...o.sx
36
+ ...S,
37
+ ...e.sx
42
38
  }
43
39
  });
44
40
  });
45
41
  export {
46
- S as StyledInteractiveChip
42
+ h as StyledInteractiveChip
47
43
  };
@@ -0,0 +1,4 @@
1
+ var t = "_control_z65d7_1", e = { control: t };
2
+ export {
3
+ e as default
4
+ };
@@ -1,37 +1,55 @@
1
- import { Tooltip as i } from "@mui/material";
2
- import { jsx as p } from "react/jsx-runtime";
3
- import { mergeSlotProps as r } from "@mui/material/utils";
4
- import l from "@mui/material/Fade";
5
- var s = {
6
- borderRadius: "3px",
7
- "& .MuiTooltip-arrow": { color: "#363E4A" },
8
- color: "white",
9
- boxShadow: "0px 1px 4px 0px rgba(0, 0, 0, 0.25)",
10
- display: "flex",
11
- padding: "4px 8px",
12
- alignItems: "center",
13
- fontSize: "var(--font-size-body-sm)",
14
- lineHeight: "var(--line-height-body-sm)",
15
- letterSpacing: "0.24px",
16
- bgcolor: "#363E4A",
17
- wordBreak: "break-word"
18
- }, d = (e) => {
19
- const { slotProps: o, ...t } = e;
20
- return /* @__PURE__ */ p(i, {
21
- enterDelay: 500,
22
- placement: "top",
23
- ...t,
24
- slots: {
25
- transition: l,
26
- ...t.slots
1
+ import { cn as S } from "../../../helpers/cn.js";
2
+ import { resolveSx as T } from "../../../helpers/sx.js";
3
+ import { cloneElement as j, useRef as k, useState as C } from "react";
4
+ import { Fragment as H, jsx as r, jsxs as c } from "react/jsx-runtime";
5
+ import { FloatingArrow as I, FloatingPortal as M, arrow as N, autoUpdate as P, flip as U, offset as z, shift as B, useDismiss as D, useFloating as G, useFocus as L, useHover as W, useInteractions as q, useMergeRefs as J, useRole as K } from "@floating-ui/react";
6
+ var Q = "#363E4A", te = (e) => !e.title && e.title !== 0 ? e.children : /* @__PURE__ */ r(V, { ...e }), V = ({ title: e, children: o, placement: d = "top", arrow: l = !1, enterDelay: g = 500, leaveDelay: u = 0, open: i, onOpen: x, onClose: F, disableHoverListener: h, disableFocusListener: v, offsetDistance: w, className: b, slotProps: n }) => {
7
+ const [y, R] = C(!1), s = i !== void 0, a = i ?? y, f = k(null), O = (m) => {
8
+ s || R(m), m ? x?.() : F?.();
9
+ }, { refs: p, floatingStyles: _, context: t } = G({
10
+ open: a,
11
+ onOpenChange: O,
12
+ placement: d,
13
+ whileElementsMounted: P,
14
+ middleware: [
15
+ z(w ?? (l ? 8 : 6)),
16
+ U({ padding: 8 }),
17
+ B({ padding: 8 }),
18
+ ...l ? [N({ element: f })] : []
19
+ ]
20
+ }), { getReferenceProps: A, getFloatingProps: E } = q([
21
+ W(t, {
22
+ enabled: !s && !h,
23
+ delay: {
24
+ open: g,
25
+ close: u
26
+ },
27
+ move: !1
28
+ }),
29
+ L(t, { enabled: !s && !v }),
30
+ D(t),
31
+ K(t, { role: "tooltip" })
32
+ ]);
33
+ return /* @__PURE__ */ c(H, { children: [j(o, A({
34
+ ref: J([p.setReference, o.ref]),
35
+ ...o.props
36
+ })), a && /* @__PURE__ */ r(M, { children: /* @__PURE__ */ c("div", {
37
+ ref: p.setFloating,
38
+ ...E(),
39
+ style: {
40
+ ..._,
41
+ fontFamily: "Roboto, Helvetica, Arial, sans-serif",
42
+ ...n?.tooltip?.style,
43
+ ...T(n?.tooltip?.sx)
27
44
  },
28
- slotProps: {
29
- ...o,
30
- transition: r(o?.transition, { timeout: 300 }),
31
- tooltip: r(o?.tooltip, { sx: s })
32
- }
33
- });
45
+ className: S("z-[1500] block max-w-[320px] whitespace-normal break-words rounded-[3px] bg-[#363E4A] px-2 py-1 text-sm leading-5 text-white shadow-[0px_1px_6px_0px_rgba(0,0,0,0.15)]", b, n?.tooltip?.className),
46
+ children: [e, l && /* @__PURE__ */ r(I, {
47
+ ref: f,
48
+ context: t,
49
+ fill: Q
50
+ })]
51
+ }) })] });
34
52
  };
35
53
  export {
36
- d as StyledTooltip
54
+ te as StyledTooltip
37
55
  };
@@ -1,6 +1,64 @@
1
- import { Typography as o } from "@mui/material";
2
- import { jsx as p } from "react/jsx-runtime";
3
- var t = (r) => /* @__PURE__ */ p(o, { ...r });
1
+ import { resolveSx as x } from "../../../helpers/sx.js";
2
+ import b from "clsx";
3
+ import { createElement as y } from "react";
4
+ var k = {
5
+ h1: "h1",
6
+ h2: "h2",
7
+ h3: "h3",
8
+ h4: "h4",
9
+ h5: "h5",
10
+ h6: "h6",
11
+ subtitle1: "h6",
12
+ subtitle2: "h6",
13
+ body1: "p",
14
+ body2: "p",
15
+ inherit: "p"
16
+ }, u = {
17
+ h1: "text-[6rem] font-light leading-[1.167] tracking-[-0.01562em]",
18
+ h2: "text-[3.75rem] font-light leading-[1.2] tracking-[-0.00833em]",
19
+ h3: "text-[3rem] font-normal leading-[1.167] tracking-normal",
20
+ h4: "text-[2.125rem] font-normal leading-[1.235] tracking-[0.00735em]",
21
+ h5: "text-[1.5rem] font-normal leading-[1.334] tracking-normal",
22
+ h6: "text-[1.25rem] font-medium leading-[1.6] tracking-[0.0075em]",
23
+ subtitle1: "text-[1rem] font-normal leading-[1.75] tracking-[0.00938em]",
24
+ subtitle2: "text-[0.875rem] font-medium leading-[1.57] tracking-[0.00714em]",
25
+ body1: "text-[1rem] font-normal leading-[1.5] tracking-[0.00938em]",
26
+ body2: "text-[0.875rem] font-normal leading-[1.43] tracking-[0.01071em]",
27
+ button: "text-[0.875rem] font-medium leading-[1.75] tracking-[0.02857em] uppercase",
28
+ caption: "text-[0.75rem] font-normal leading-[1.66] tracking-[0.03333em]",
29
+ overline: "text-[0.75rem] font-normal leading-[2.66] tracking-[0.08333em] uppercase",
30
+ inherit: "text-inherit font-[inherit] leading-[inherit] tracking-[inherit]"
31
+ }, v = {
32
+ inherit: "inherit",
33
+ initial: "initial",
34
+ "text.primary": "rgba(0, 0, 0, 0.87)",
35
+ "text.secondary": "rgba(0, 0, 0, 0.6)",
36
+ "text.disabled": "rgba(0, 0, 0, 0.38)",
37
+ primary: "#1976d2",
38
+ "primary.main": "#1976d2",
39
+ secondary: "#9c27b0",
40
+ "secondary.main": "#9c27b0",
41
+ error: "#d32f2f",
42
+ "error.main": "#d32f2f",
43
+ warning: "#ed6c02",
44
+ "warning.main": "#ed6c02",
45
+ info: "#0288d1",
46
+ "info.main": "#0288d1",
47
+ success: "#2e7d32",
48
+ "success.main": "#2e7d32"
49
+ }, C = (i) => {
50
+ const { variant: e = "body1", variantMapping: a, align: n, noWrap: o, gutterBottom: m, color: t, component: l, className: d, sx: c, style: g, classes: A, children: s, ...h } = i, f = l ?? a?.[e] ?? k[e] ?? "span", r = t ? v[t] ?? t : void 0, p = {
51
+ ...n ? { textAlign: n } : {},
52
+ ...r ? { color: r } : {},
53
+ ...x(c),
54
+ ...g
55
+ };
56
+ return y(f, {
57
+ className: b("m-0 font-roboto", u[e], o && "overflow-hidden text-ellipsis whitespace-nowrap", m && "mb-[0.35em]", d),
58
+ style: p,
59
+ ...h
60
+ }, s);
61
+ };
4
62
  export {
5
- t as StyledTypography
63
+ C as StyledTypography
6
64
  };