asma-ui-core 3.44.0 → 3.45.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (298) hide show
  1. package/dist/asma-ui-core.css +1 -1
  2. package/dist/components/custom/module/header-layout/ToolbarActionGroup.js +2 -2
  3. package/dist/components/custom/module/module-title/StyledModuleTitle.module.js +1 -1
  4. package/dist/components/custom/widget/widget/StyledWidget.module.js +8 -8
  5. package/dist/components/custom/widget/widget-title/StyledWidgetTitle.module.js +1 -1
  6. package/dist/components/data-display/ai-disclosure/StyledAIDisclosure.js +7 -5
  7. package/dist/components/data-display/badge/StyledBadge.js +53 -23
  8. package/dist/components/data-display/chip/StyledChip.js +62 -59
  9. package/dist/components/data-display/chip/chipPadding.js +44 -0
  10. package/dist/components/data-display/form-label/components/StyledFormLabel.js +18 -10
  11. package/dist/components/data-display/form-label/styles/StyledFormLabel.module.js +4 -4
  12. package/dist/components/data-display/interactive-chip/StyledInteractiveChip.js +35 -39
  13. package/dist/components/data-display/interactive-chip/StyledInteractiveChip.module.js +4 -0
  14. package/dist/components/data-display/tooltip/StyledTooltip.js +51 -33
  15. package/dist/components/data-display/typography/StyledTypography.js +62 -4
  16. package/dist/components/feedback/dialog/StyledDialog.js +102 -39
  17. package/dist/components/feedback/dialog/StyledDialog.module.js +2 -9
  18. package/dist/components/feedback/dialog/StyledDialogActions.js +16 -16
  19. package/dist/components/feedback/dialog/StyledDialogContent.js +18 -14
  20. package/dist/components/feedback/dialog/StyledDialogTitle.js +18 -13
  21. package/dist/components/feedback/empty-page/StyledEmptyPage.js +4 -4
  22. package/dist/components/feedback/filtered-empty-state/StyledFilteredEmptyState.js +7 -7
  23. package/dist/components/feedback/minimizable-dialog/MinimizableDialog.js +123 -114
  24. package/dist/components/feedback/minimizable-dialog/components/CloseBtn.js +6 -5
  25. package/dist/components/feedback/minimizable-dialog/components/FullscreenBtn.js +13 -12
  26. package/dist/components/feedback/minimizable-dialog/components/MinimizeBtn.js +15 -13
  27. package/dist/components/feedback/minimizable-dialog/v2/MinimizableDialogV2.js +67 -61
  28. package/dist/components/feedback/snack-bar/StyledAlert.js +95 -14
  29. package/dist/components/feedback/snack-bar/StyledSnackbar.js +34 -8
  30. package/dist/components/feedback/snack-bar/components/StyledDefaultSnackbar.js +32 -33
  31. package/dist/components/feedback/snack-bar/components/StyledDefaultSnackbar.module.js +16 -16
  32. package/dist/components/icons/check-icon/CheckIcon.js +8 -7
  33. package/dist/components/inputs/button/StyledButton.js +22 -18
  34. package/dist/components/inputs/button/StyledButton.module.js +5 -5
  35. package/dist/components/inputs/checkbox/base-ui/StyledCheckbox.js +61 -55
  36. package/dist/components/inputs/checkbox/base-ui/StyledCheckbox.module.js +12 -11
  37. package/dist/components/inputs/dynamic-select/components/DynamicInteractiveChipGroup.js +54 -50
  38. package/dist/components/inputs/dynamic-select/components/DynamicSelectAutocomplete.js +107 -99
  39. package/dist/components/inputs/field-styles.js +8 -0
  40. package/dist/components/inputs/input-field/StyledInputField.js +188 -83
  41. package/dist/components/inputs/input-field/StyledInputField.module.js +10 -0
  42. package/dist/components/inputs/label/StyledLabel.js +19 -11
  43. package/dist/components/inputs/label/StyledLabel.module.js +1 -1
  44. package/dist/components/inputs/radio-button/base-ui/RadioGroupContext.js +6 -0
  45. package/dist/components/inputs/radio-button/base-ui/StyledRadio.js +43 -28
  46. package/dist/components/inputs/radio-button/base-ui/StyledRadio.module.js +7 -6
  47. package/dist/components/inputs/radio-button/base-ui/StyledRadioGroup.js +37 -24
  48. package/dist/components/inputs/search-field/StyledSearchField.js +49 -43
  49. package/dist/components/inputs/select/StyledSelect.js +170 -45
  50. package/dist/components/inputs/select/StyledSelectItem.js +19 -23
  51. package/dist/components/inputs/select-autocomplete/StyledSelectAutocomplete.js +228 -150
  52. package/dist/components/inputs/slider/StyledSlider.js +100 -52
  53. package/dist/components/inputs/slider/StyledSlider.module.js +10 -0
  54. package/dist/components/inputs/switch/base-ui/StyledSwitch.js +45 -38
  55. package/dist/components/inputs/switch/base-ui/StyledSwitch.module.js +4 -4
  56. package/dist/components/inputs/textarea/StyledTextarea.js +44 -43
  57. package/dist/components/inputs/textarea/StyledTextarea.module.js +1 -1
  58. package/dist/components/miscellaneous/FormControlContext.js +6 -0
  59. package/dist/components/miscellaneous/StyledFormControl.js +42 -21
  60. package/dist/components/miscellaneous/StyledFormControlLabel.js +29 -15
  61. package/dist/components/miscellaneous/StyledFormGroup.js +16 -4
  62. package/dist/components/miscellaneous/StyledFormHelperText.js +12 -4
  63. package/dist/components/miscellaneous/StyledInputLabel.js +20 -4
  64. package/dist/components/mui-compat/Avatar.js +34 -0
  65. package/dist/components/mui-compat/ClickAwayListener.js +42 -0
  66. package/dist/components/mui-compat/Container.js +24 -0
  67. package/dist/components/mui-compat/Fade.js +29 -0
  68. package/dist/components/mui-compat/Fade.module.js +9 -0
  69. package/dist/components/mui-compat/FormLabel.js +22 -0
  70. package/dist/components/mui-compat/Paper.js +44 -0
  71. package/dist/components/mui-compat/Popper.js +35 -0
  72. package/dist/components/mui-compat/Skeleton.js +27 -0
  73. package/dist/components/mui-compat/Stack.js +24 -0
  74. package/dist/components/navigation/drawer/StyledDrawer.js +45 -4
  75. package/dist/components/navigation/link/StyledLink.module.js +5 -5
  76. package/dist/components/navigation/listbox/Listbox.js +7 -7
  77. package/dist/components/navigation/menu/StyledMenu.js +28 -11
  78. package/dist/components/navigation/menu/StyledMenuItem.js +21 -19
  79. package/dist/components/navigation/menu/StyledMenuList.js +34 -4
  80. package/dist/components/navigation/tabs/StyledTab.js +28 -13
  81. package/dist/components/navigation/tabs/StyledTabs.js +115 -66
  82. package/dist/components/navigation/tabs/TabsContext.js +6 -0
  83. package/dist/components/utils/accordion/base-ui/AccordionContext.js +10 -0
  84. package/dist/components/utils/accordion/base-ui/StyledAccordion.js +28 -21
  85. package/dist/components/utils/accordion/base-ui/StyledAccordion.module.js +7 -7
  86. package/dist/components/utils/accordion/base-ui/StyledAccordionDetails.js +28 -14
  87. package/dist/components/utils/accordion/base-ui/StyledAccordionSummary.js +34 -27
  88. package/dist/components/utils/copy-wrapper/CopyButton.js +8 -7
  89. package/dist/components/utils/copy-wrapper/CopyWrapper.js +23 -20
  90. package/dist/components/utils/filter-menu/StyledFilterButton.js +14 -13
  91. package/dist/components/utils/filter-menu/StyledFilterMenu.js +16 -15
  92. package/dist/components/utils/popover/StyledPopover.js +51 -15
  93. package/dist/components/utils/virtual-list/VirtualList.js +46 -0
  94. package/dist/datetime/components/date-picker/StyledDatePicker.js +17 -17
  95. package/dist/datetime/components/date-picker/components/BaseDatePickerInput.js +98 -99
  96. package/dist/datetime/components/date-picker/components/DatePickerButton.js +11 -9
  97. package/dist/datetime/components/date-picker/components/StyledCalendarPicker.js +11 -11
  98. package/dist/datetime/components/date-picker/components/StyledCalendarPicker.module.js +20 -20
  99. package/dist/datetime/components/date-picker/components/StyledCalendarPickerCaption.js +8 -7
  100. package/dist/datetime/components/date-picker/components/StyledCalendarPickerFooter.js +13 -14
  101. package/dist/datetime/components/date-picker/components/StyledCalendarPickerSelectMonth.js +17 -24
  102. package/dist/datetime/components/date-picker/components/StyledCalendarPickerSelectYear.js +7 -8
  103. package/dist/datetime/components/date-picker/components/StyledDayPicker.js +4 -5
  104. package/dist/datetime/components/date-picker/helpers.js +7 -7
  105. package/dist/datetime/components/date-picker/hooks/useDatePickerMask.js +3 -7
  106. package/dist/datetime/components/time-picker/StyledTimePicker.js +25 -25
  107. package/dist/datetime/components/time-picker/StyledTimePicker.module.js +6 -6
  108. package/dist/datetime/components/time-picker/TimePickerInput.js +56 -50
  109. package/dist/datetime/components/time-picker/TimePickerPopper.js +22 -19
  110. package/dist/datetime/components/time-picker/components/TimePickerColumn.js +12 -12
  111. package/dist/datetime/components/time-picker/helpers/getTimeFromValue.js +3 -3
  112. package/dist/datetime/helpers/cn.js +4 -5
  113. package/dist/datetime/hooks/useWindowWidthSize.hook.js +1 -1
  114. package/dist/helpers/arrays.js +4 -0
  115. package/dist/helpers/classOverride.js +12 -0
  116. package/dist/helpers/cn.js +4 -5
  117. package/dist/helpers/inputMask.js +58 -0
  118. package/dist/helpers/sx.js +46 -0
  119. package/dist/hooks/useFocusTrap.hook.js +34 -0
  120. package/dist/hooks/useTopLayer.hook.js +25 -0
  121. package/dist/index.js +185 -175
  122. package/dist/src/api-surface.test.d.ts +1 -0
  123. package/dist/src/components/custom/module/header-layout/DynamicToolbar.d.ts +10 -0
  124. package/dist/src/components/custom/module/module-title/StyledModuleTitle.d.ts +4 -0
  125. package/dist/src/components/custom/widget/widget/StyledWidget.d.ts +8 -0
  126. package/dist/src/components/custom/widget/widget-header/StyledWidgetHeader.d.ts +4 -0
  127. package/dist/src/components/custom/widget/widget-title/StyledWidgetTitle.d.ts +4 -0
  128. package/dist/src/components/data-display/ai-disclosure/StyledAIDisclosure.d.ts +7 -0
  129. package/dist/src/components/data-display/badge/StyledBadge.d.ts +40 -2
  130. package/dist/src/components/data-display/chip/StyledChip.d.ts +74 -5
  131. package/dist/src/components/data-display/chip/chipPadding.d.ts +3 -0
  132. package/dist/src/components/data-display/form-label/types.d.ts +11 -0
  133. package/dist/src/components/data-display/interactive-chip/StyledInteractiveChip.d.ts +22 -4
  134. package/dist/src/components/data-display/tooltip/StyledTooltip.d.ts +43 -1
  135. package/dist/src/components/data-display/typography/StyledTypography.d.ts +32 -1
  136. package/dist/src/components/feedback/dialog/StyledDialog.d.ts +60 -4
  137. package/dist/src/components/feedback/dialog/StyledDialogActions.d.ts +12 -2
  138. package/dist/src/components/feedback/dialog/StyledDialogContent.d.ts +12 -2
  139. package/dist/src/components/feedback/dialog/StyledDialogTitle.d.ts +10 -2
  140. package/dist/src/components/feedback/empty-page/StyledEmptyPage.d.ts +6 -0
  141. package/dist/src/components/feedback/filtered-empty-state/StyledFilteredEmptyState.d.ts +7 -0
  142. package/dist/src/components/feedback/loading/StyledLoading.d.ts +9 -0
  143. package/dist/src/components/feedback/minimizable-dialog/v2/types.d.ts +13 -0
  144. package/dist/src/components/feedback/minimizable-dialog/v2/useControlledProps.d.ts +4 -2
  145. package/dist/src/components/feedback/minimizable-dialog/v2/useTranslations.d.ts +17 -12
  146. package/dist/src/components/feedback/snack-bar/SnackbarProvider.d.ts +1 -1
  147. package/dist/src/components/feedback/snack-bar/StyledAlert.d.ts +41 -2
  148. package/dist/src/components/feedback/snack-bar/StyledAlertSnackbar.d.ts +1 -1
  149. package/dist/src/components/feedback/snack-bar/StyledSnackbar.d.ts +25 -2
  150. package/dist/src/components/feedback/snack-bar/components/StyledDefaultSnackbar.d.ts +10 -1
  151. package/dist/src/components/feedback/snack-bar/components/StyledInfoSnackbar.d.ts +1 -1
  152. package/dist/src/components/feedback/snack-bar/components/types.d.ts +1 -1
  153. package/dist/src/components/inputs/button/StyledButton.d.ts +15 -1
  154. package/dist/src/components/inputs/checkbox/base-ui/StyledCheckbox.d.ts +33 -4
  155. package/dist/src/components/inputs/dynamic-select/StyledDynamicSelect.d.ts +16 -0
  156. package/dist/src/components/inputs/dynamic-select/types.d.ts +25 -14
  157. package/dist/src/components/inputs/field-styles.d.ts +27 -0
  158. package/dist/src/components/inputs/input-field/StyledInputField.d.ts +85 -10
  159. package/dist/src/components/inputs/input-field/index.d.ts +1 -1
  160. package/dist/src/components/inputs/label/StyledLabel.d.ts +13 -0
  161. package/dist/src/components/inputs/radio-button/base-ui/RadioGroupContext.d.ts +10 -0
  162. package/dist/src/components/inputs/radio-button/base-ui/StyledRadio.d.ts +60 -5
  163. package/dist/src/components/inputs/radio-button/base-ui/StyledRadioGroup.d.ts +30 -7
  164. package/dist/src/components/inputs/search-field/StyledSearchField.d.ts +9 -1
  165. package/dist/src/components/inputs/select/StyledSelect.d.ts +70 -16
  166. package/dist/src/components/inputs/select/StyledSelectItem.d.ts +14 -2
  167. package/dist/src/components/inputs/select/index.d.ts +0 -1
  168. package/dist/src/components/inputs/select-autocomplete/StyledSelectAutocomplete.d.ts +120 -17
  169. package/dist/src/components/inputs/slider/StyledSlider.d.ts +66 -3
  170. package/dist/src/components/inputs/switch/base-ui/StyledSwitch.d.ts +44 -4
  171. package/dist/src/components/inputs/textarea/StyledTextarea.d.ts +19 -0
  172. package/dist/src/components/miscellaneous/FormControlContext.d.ts +14 -0
  173. package/dist/src/components/miscellaneous/StyledFormControl.d.ts +27 -2
  174. package/dist/src/components/miscellaneous/StyledFormControlLabel.d.ts +21 -2
  175. package/dist/src/components/miscellaneous/StyledFormGroup.d.ts +11 -2
  176. package/dist/src/components/miscellaneous/StyledFormHelperText.d.ts +12 -2
  177. package/dist/src/components/miscellaneous/StyledInputLabel.d.ts +20 -2
  178. package/dist/src/components/mui-compat/Avatar.d.ts +6 -0
  179. package/dist/src/components/mui-compat/ClickAwayListener.d.ts +19 -0
  180. package/dist/src/components/mui-compat/Container.d.ts +6 -0
  181. package/dist/src/components/mui-compat/Fade.d.ts +21 -0
  182. package/dist/src/components/mui-compat/FormLabel.d.ts +6 -0
  183. package/dist/src/components/mui-compat/Paper.d.ts +6 -0
  184. package/dist/src/components/mui-compat/Popper.d.ts +29 -0
  185. package/dist/src/components/mui-compat/Skeleton.d.ts +7 -0
  186. package/dist/src/components/mui-compat/Stack.d.ts +7 -0
  187. package/dist/src/components/mui-compat/index.d.ts +9 -0
  188. package/dist/src/components/mui-compat/types.d.ts +46 -0
  189. package/dist/src/components/navigation/drawer/StyledDrawer.d.ts +33 -2
  190. package/dist/src/components/navigation/link/StyledLink.d.ts +13 -0
  191. package/dist/src/components/navigation/menu/StyledMenu.d.ts +33 -2
  192. package/dist/src/components/navigation/menu/StyledMenuItem.d.ts +35 -2
  193. package/dist/src/components/navigation/menu/StyledMenuList.d.ts +16 -2
  194. package/dist/src/components/navigation/menu/index.d.ts +0 -1
  195. package/dist/src/components/navigation/tabs/StyledTab.d.ts +27 -3
  196. package/dist/src/components/navigation/tabs/StyledTabs.d.ts +22 -7
  197. package/dist/src/components/navigation/tabs/TabsContext.d.ts +11 -0
  198. package/dist/src/components/utils/accordion/base-ui/AccordionContext.d.ts +10 -0
  199. package/dist/src/components/utils/accordion/base-ui/StyledAccordion.d.ts +9 -3
  200. package/dist/src/components/utils/accordion/base-ui/StyledAccordionDetails.d.ts +5 -0
  201. package/dist/src/components/utils/accordion/base-ui/StyledAccordionSummary.d.ts +16 -4
  202. package/dist/src/components/utils/copy-wrapper/CopyWrapper.d.ts +6 -1
  203. package/dist/src/components/utils/filter-menu/StyledFilterButton.d.ts +4 -0
  204. package/dist/src/components/utils/filter-menu/StyledFilterMenu.d.ts +8 -2
  205. package/dist/src/components/utils/popover/StyledPopover.d.ts +39 -2
  206. package/dist/src/components/utils/virtual-list/VirtualList.d.ts +32 -0
  207. package/dist/src/components/utils/virtual-list/index.d.ts +1 -0
  208. package/dist/src/datetime/components/date-picker/StyledDatePicker.d.ts +11 -0
  209. package/dist/src/datetime/components/date-picker/components/DatePickerButton.d.ts +2 -0
  210. package/dist/src/datetime/components/date-picker/components/StyledCalendarPicker.d.ts +1 -1
  211. package/dist/src/datetime/components/date-picker/components/StyledDayPicker.d.ts +1 -1
  212. package/dist/src/datetime/components/date-picker/hooks/useDatePickerMask.d.ts +1 -2
  213. package/dist/src/datetime/components/date-picker/hooks/useDatePickerValidation.d.ts +7 -5
  214. package/dist/src/datetime/components/time-picker/StyledTimePicker.d.ts +10 -0
  215. package/dist/src/datetime/components/time-picker/TimePickerInput.d.ts +1 -1
  216. package/dist/src/datetime/components/time-picker/TimePickerPopper.d.ts +1 -1
  217. package/dist/src/datetime/components/time-picker/types.d.ts +1 -2
  218. package/dist/src/datetime/hooks/useToggleMenuVisibility.hook.d.ts +6 -4
  219. package/dist/src/datetime/shared-components/StyledFormControl.d.ts +1 -2
  220. package/dist/src/datetime/shared-components/StyledInputField.d.ts +1 -12
  221. package/dist/src/datetime/shared-components/StyledSelect.d.ts +1 -16
  222. package/dist/src/datetime/shared-components/StyledSelectItem.d.ts +1 -2
  223. package/dist/src/datetime/shared-components/StyledTooltip.d.ts +1 -2
  224. package/dist/src/helpers/applyImportantPadding.d.ts +8 -0
  225. package/dist/src/helpers/arrays.d.ts +2 -0
  226. package/dist/src/helpers/arrays.test.d.ts +1 -0
  227. package/dist/src/helpers/classOverride.d.ts +21 -0
  228. package/dist/src/helpers/classOverride.test.d.ts +1 -0
  229. package/dist/src/helpers/inputMask.d.ts +40 -0
  230. package/dist/src/helpers/inputMask.test.d.ts +1 -0
  231. package/dist/src/helpers/sx.d.ts +2 -0
  232. package/dist/src/helpers/sx.test.d.ts +1 -0
  233. package/dist/src/hooks/useFocusTrap.hook.d.ts +10 -0
  234. package/dist/src/hooks/useTopLayer.hook.d.ts +49 -0
  235. package/dist/src/index.d.ts +2 -1
  236. package/dist/src/table/components/columns/helpers/useElementHeightPx.d.ts +6 -3
  237. package/dist/src/table/components/columns/helpers/useProxyHorizontalScrollSync.d.ts +9 -6
  238. package/dist/src/table/hooks/useToggleMenuVisibility.hook.d.ts +6 -4
  239. package/dist/src/table/hooks/useTranslations.d.ts +15 -8
  240. package/dist/src/table/shared-components/StyledCheckbox.d.ts +7 -4
  241. package/dist/src/table/shared-components/StyledMenuItem.d.ts +18 -2
  242. package/dist/src/table/shared-components/menu-item/index.d.ts +13 -2
  243. package/dist/src/table/shared-components/tooltip/index.d.ts +5 -1
  244. package/dist/src/table/types.d.ts +1 -1
  245. package/dist/table/components/Fetching.js +4 -4
  246. package/dist/table/components/StyledTable.module.js +48 -48
  247. package/dist/table/components/TableRow.js +7 -7
  248. package/dist/table/components/TableSkeleton.js +6 -6
  249. package/dist/table/components/columns/action-column/actionColumn.js +14 -11
  250. package/dist/table/components/columns/action-column/components/HeaderActionMenu.js +52 -49
  251. package/dist/table/components/columns/action-column/components/RowActionMenu.js +40 -36
  252. package/dist/table/components/columns/expandColumn.js +12 -9
  253. package/dist/table/components/table-footer/TablePagination.js +28 -25
  254. package/dist/table/components/table-footer/TableRowCountSelect.js +31 -28
  255. package/dist/table/components/table-header/TableHeaderCell.js +54 -45
  256. package/dist/table/custom-features/focus-rows/FocusRowsFeature.js +29 -25
  257. package/dist/table/helpers/cn.js +4 -5
  258. package/dist/table/hooks/useColumnVirtualizer.js +1 -1
  259. package/dist/table/hooks/usePersistedPageSize.js +6 -6
  260. package/dist/table/hooks/useTranslations.js +6 -4
  261. package/dist/table/hooks/useWindowWidthSize.hook.js +1 -1
  262. package/dist/table/shared-components/StyledCheckbox.js +54 -55
  263. package/dist/table/shared-components/StyledCheckbox.module.js +9 -9
  264. package/dist/table/shared-components/StyledMenuItem.js +14 -17
  265. package/dist/table/shared-components/button/StyledButton.module.js +8 -8
  266. package/dist/table/shared-components/menu-item/index.js +15 -16
  267. package/dist/table/shared-components/tooltip/index.js +4 -23
  268. package/package.json +9 -18
  269. package/src/styles/components-colors/inputVariables.css +59 -57
  270. package/src/styles/index.css +38 -0
  271. package/dist/components/feedback/dialog/StyledDialogActions.module.js +0 -8
  272. package/dist/components/feedback/dialog/StyledDialogContent.module.js +0 -4
  273. package/dist/components/feedback/dialog/StyledDialogTitle.module.js +0 -4
  274. package/dist/components/icons/arrow-expand/ArrowExpand.js +0 -18
  275. package/dist/components/icons/arrow-expand/index.js +0 -1
  276. package/dist/components/icons/arrow-shrink/ArrowShrink.js +0 -18
  277. package/dist/components/icons/arrow-shrink/index.js +0 -1
  278. package/dist/components/inputs/checkbox/StyledCheckbox.js +0 -20
  279. package/dist/components/inputs/radio-button/StyledRadio.js +0 -17
  280. package/dist/datetime/components/date-picker/components/HelperTextWithTooltip.js +0 -39
  281. package/dist/datetime/shared-components/ExpandIcon.js +0 -18
  282. package/dist/datetime/shared-components/StyledFormControl.js +0 -23
  283. package/dist/datetime/shared-components/StyledInputField.js +0 -47
  284. package/dist/datetime/shared-components/StyledSelect.js +0 -47
  285. package/dist/datetime/shared-components/StyledSelectItem.js +0 -13
  286. package/dist/datetime/shared-components/StyledTooltip.js +0 -32
  287. package/dist/src/components/icons/arrow-expand/ArrowExpand.d.ts +0 -2
  288. package/dist/src/components/icons/arrow-expand/index.d.ts +0 -1
  289. package/dist/src/components/icons/arrow-shrink/ArrowShrink.d.ts +0 -2
  290. package/dist/src/components/icons/arrow-shrink/index.d.ts +0 -1
  291. package/dist/src/components/inputs/checkbox/StyledCheckbox.d.ts +0 -4
  292. package/dist/src/components/inputs/radio-button/StyledRadio.d.ts +0 -4
  293. package/dist/src/components/inputs/radio-button/StyledRadioGroup.d.ts +0 -4
  294. package/dist/src/components/inputs/switch/StyledSwitch.d.ts +0 -5
  295. package/dist/src/components/utils/accordion/StyledAccordion.d.ts +0 -2
  296. package/dist/src/components/utils/accordion/StyledAccordionDetails.d.ts +0 -2
  297. package/dist/src/components/utils/accordion/StyledAccordionSummary.d.ts +0 -8
  298. package/dist/src/datetime/components/date-picker/components/HelperTextWithTooltip.d.ts +0 -5
@@ -1,23 +1,26 @@
1
- import { cn as n } from "../../../../helpers/cn.js";
1
+ import { cn as r } from "../../../../helpers/cn.js";
2
2
  import { StyledTooltip as j } from "../../../data-display/tooltip/StyledTooltip.js";
3
3
  import { useMobileMediaQuery as B } from "../../../../hooks/useMediaQuery.hook.js";
4
- import { CloseBtn as b } from "../components/CloseBtn.js";
4
+ import { useFocusTrap as D } from "../../../../hooks/useFocusTrap.hook.js";
5
+ import { CloseBtn as y } from "../components/CloseBtn.js";
5
6
  import { MinimizeBtn as z } from "../components/MinimizeBtn.js";
6
- import { FullScreenBtn as D } from "../components/FullscreenBtn.js";
7
- import r from "./MinimizableDialogV2.module.js";
8
- import { useTranslations as R } from "./useTranslations.js";
9
- import { useControlledProps as V } from "./useControlledProps.js";
10
- import _ from "clsx";
11
- import { useRef as $ } from "react";
12
- import { Fragment as A, jsx as e, jsxs as l } from "react/jsx-runtime";
13
- var Y = (p) => {
14
- const { showCloseIcon: f = !0, showMinimizeIcon: g = !0, showExpandIcon: y = !0, enableFullscreen: N = !0, title: a, label: c, children: w, open: C, onClose: F, classNameOverrides: m = {
7
+ import { FullScreenBtn as R } from "../components/FullscreenBtn.js";
8
+ import c from "./MinimizableDialogV2.module.js";
9
+ import { useTranslations as V } from "./useTranslations.js";
10
+ import { useControlledProps as _ } from "./useControlledProps.js";
11
+ import $ from "clsx";
12
+ import { useRef as A } from "react";
13
+ import { Fragment as E, jsx as e, jsxs as t } from "react/jsx-runtime";
14
+ var ee = (f) => {
15
+ const { showCloseIcon: u = !0, showMinimizeIcon: N = !0, showExpandIcon: w = !0, enableFullscreen: C = !0, title: o, label: m, children: F, open: h, onClose: T, classNameOverrides: d = {
15
16
  maximized: "",
16
17
  minimized: "",
17
18
  fullscreen: ""
18
- }, dataTest: M, actionNode: S, locale: T = "en", style: u } = p, s = B(), t = R(T), k = $(null), { minimized: i, setMinimized: d, fullScreen: o, setFullScreen: h } = V(p), x = o && !i, v = () => {
19
- d(!1), F();
20
- }, I = x ? {
19
+ }, dataTest: M, actionNode: S, locale: k = "en", style: v } = f, s = B(), n = V(k), b = A(null), { minimized: i, setMinimized: x, fullScreen: a, setFullScreen: g } = _(f), l = a && !i, p = () => {
20
+ x(!1), T();
21
+ };
22
+ D(h && l, b, p);
23
+ const I = l ? {
21
24
  right: "auto",
22
25
  bottom: "auto",
23
26
  left: "50%",
@@ -27,105 +30,108 @@ var Y = (p) => {
27
30
  maxWidth: "min(1000px, calc(100vw - 32px))",
28
31
  height: "95dvh"
29
32
  } : void 0;
30
- return C ? /* @__PURE__ */ l(A, { children: [
33
+ return h ? /* @__PURE__ */ t(E, { children: [
31
34
  /* @__PURE__ */ e("div", {
32
35
  style: {
33
36
  zIndex: 51,
34
- ...u
37
+ ...v
35
38
  },
36
- className: n(r["minimized-dialog"], !i && r.hidden, m.minimized),
37
- children: /* @__PURE__ */ l("div", {
38
- className: _("flex items-center justify-between", !i && "hidden"),
39
+ className: r(c["minimized-dialog"], !i && c.hidden, d.minimized),
40
+ children: /* @__PURE__ */ t("div", {
41
+ className: $("flex items-center justify-between", !i && "hidden"),
39
42
  "data-testid": M,
40
43
  children: [/* @__PURE__ */ e("div", {
41
44
  className: "max-w-[303px] truncate pr-1 text-lg font-semibold text-delta-800",
42
45
  children: /* @__PURE__ */ e(j, {
43
- title: a,
46
+ title: o,
44
47
  placement: "top",
45
48
  children: /* @__PURE__ */ e("div", {
46
49
  className: "truncate",
47
- children: a
50
+ children: o
48
51
  })
49
52
  })
50
- }), /* @__PURE__ */ l("div", {
53
+ }), /* @__PURE__ */ t("div", {
51
54
  className: "flex items-center gap-x-1",
52
55
  children: [/* @__PURE__ */ e(z, {
53
56
  type: "expand",
54
- visibility: y,
57
+ visibility: w,
55
58
  onClick: () => {
56
- d(!i);
59
+ x(!i);
57
60
  },
58
- tooltipTitle: t.expand
59
- }), /* @__PURE__ */ e(b, {
60
- showCloseIcon: f,
61
- onClick: v,
62
- tooltipTitle: t.close
61
+ tooltipTitle: n.expand
62
+ }), /* @__PURE__ */ e(y, {
63
+ showCloseIcon: u,
64
+ onClick: p,
65
+ tooltipTitle: n.close
63
66
  })]
64
67
  })]
65
68
  })
66
69
  }),
67
- x && /* @__PURE__ */ e("div", {
70
+ l && /* @__PURE__ */ e("div", {
68
71
  className: "fixed inset-0 z-[52] bg-[rgb(98,110,126)] bg-opacity-70",
69
72
  onClick: () => {
70
- h(!1);
73
+ g(!1);
71
74
  }
72
75
  }),
73
- /* @__PURE__ */ l("div", {
76
+ /* @__PURE__ */ t("div", {
74
77
  style: {
75
78
  zIndex: 51,
76
- ...u,
79
+ ...v,
77
80
  ...I
78
81
  },
79
- ref: k,
80
- className: n(r.dialog, i && r.hidden, !o && m.maximized, o && m.fullscreen, x && "fixed z-[53] duration-0"),
81
- children: [/* @__PURE__ */ l("div", {
82
- className: n("flex flex-col border-b-[1px] border-delta-200 px-4", s ? "py-3" : "py-4"),
83
- children: [/* @__PURE__ */ l("div", {
82
+ ref: b,
83
+ role: l ? "dialog" : void 0,
84
+ "aria-modal": l ? !0 : void 0,
85
+ "aria-label": l && typeof o == "string" ? o : void 0,
86
+ className: r(c.dialog, i && c.hidden, !a && d.maximized, a && d.fullscreen, l && "fixed z-[53] duration-0"),
87
+ children: [/* @__PURE__ */ t("div", {
88
+ className: r("flex flex-col border-b-[1px] border-delta-200 px-4", s ? "py-3" : "py-4"),
89
+ children: [/* @__PURE__ */ t("div", {
84
90
  className: "flex items-center justify-between",
85
- children: [c ? /* @__PURE__ */ e("div", {
91
+ children: [m ? /* @__PURE__ */ e("div", {
86
92
  className: "text-sm text-delta-700",
87
- children: c
93
+ children: m
88
94
  }) : /* @__PURE__ */ e("div", {
89
- className: n("font-semibold text-delta-800", s ? "line-clamp-2 text-xl" : "line-clamp-1 text-2xl"),
90
- children: a
91
- }), /* @__PURE__ */ l("div", {
95
+ className: r("font-semibold text-delta-800", s ? "line-clamp-2 text-xl" : "line-clamp-1 text-2xl"),
96
+ children: o
97
+ }), /* @__PURE__ */ t("div", {
92
98
  className: "flex items-center gap-x-1",
93
99
  children: [
94
100
  S,
95
101
  /* @__PURE__ */ e(z, {
96
- visibility: g && !s,
102
+ visibility: N && !s,
97
103
  type: "minimize",
98
104
  onClick: () => {
99
- d(!i);
105
+ x(!i);
100
106
  },
101
- tooltipTitle: t.minimize
107
+ tooltipTitle: n.minimize
102
108
  }),
103
- /* @__PURE__ */ e(D, {
104
- showFullScreenIcon: N && !s,
105
- fullScreen: o,
109
+ /* @__PURE__ */ e(R, {
110
+ showFullScreenIcon: C && !s,
111
+ fullScreen: a,
106
112
  onClick: () => {
107
- h(!o);
113
+ g(!a);
108
114
  },
109
- tooltipTitle: o ? t.exitFullscreen : t.fullscreen
115
+ tooltipTitle: a ? n.exitFullscreen : n.fullscreen
110
116
  }),
111
- /* @__PURE__ */ e(b, {
112
- showCloseIcon: f,
113
- onClick: v,
114
- tooltipTitle: t.close
117
+ /* @__PURE__ */ e(y, {
118
+ showCloseIcon: u,
119
+ onClick: p,
120
+ tooltipTitle: n.close
115
121
  })
116
122
  ]
117
123
  })]
118
- }), c && /* @__PURE__ */ e("div", {
119
- className: n("font-semibold text-delta-800", s ? "line-clamp-2 text-xl" : "line-clamp-1 text-2xl"),
120
- children: a
124
+ }), m && /* @__PURE__ */ e("div", {
125
+ className: r("font-semibold text-delta-800", s ? "line-clamp-2 text-xl" : "line-clamp-1 text-2xl"),
126
+ children: o
121
127
  })]
122
128
  }), /* @__PURE__ */ e("div", {
123
- className: n(i && "hidden", "flex flex-grow flex-col overflow-y-auto"),
124
- children: w
129
+ className: r(i && "hidden", "flex flex-grow flex-col overflow-y-auto"),
130
+ children: F
125
131
  })]
126
132
  })
127
133
  ] }) : null;
128
134
  };
129
135
  export {
130
- Y as MinimizableDialogV2
136
+ ee as MinimizableDialogV2
131
137
  };
@@ -1,17 +1,98 @@
1
- import { CheckOutlineIcon as r } from "./components/CheckOutlineIcon.js";
2
- import { Alert as e } from "@mui/material";
3
- import { jsx as t } from "react/jsx-runtime";
4
- var m = (i) => /* @__PURE__ */ t(e, {
5
- iconMapping: {
6
- success: /* @__PURE__ */ t(r, {
7
- height: 24,
8
- width: 24,
9
- fontSize: "inherit"
10
- }),
11
- ...i.iconMapping
1
+ import { cn as i } from "../../../helpers/cn.js";
2
+ import { resolveSx as g } from "../../../helpers/sx.js";
3
+ import { CloseIcon as x } from "../../icons/close-icon/CloseIcon.js";
4
+ import { CheckOutlineIcon as h } from "./components/CheckOutlineIcon.js";
5
+ import { ErrorOutlineIcon as u } from "./components/ErrorOutlineIcon.js";
6
+ import { InfoOutlineIcon as m } from "./components/InfoOutlineIcon.js";
7
+ import { WarningAmberOutlineIcon as w } from "./components/WarningAmberOutlineIcon.js";
8
+ import { jsx as r, jsxs as p } from "react/jsx-runtime";
9
+ var I = {
10
+ standard: {
11
+ success: "bg-success-50 border border-success-300 text-delta-800",
12
+ info: "bg-info-50 border border-info-300 text-delta-800",
13
+ warning: "bg-warning-50 border border-warning-500 text-delta-800",
14
+ error: "bg-error-50 border border-error-300 text-delta-800"
12
15
  },
13
- ...i
14
- });
16
+ filled: {
17
+ success: "bg-success-500 text-white",
18
+ info: "bg-info-500 text-white",
19
+ warning: "bg-warning-500 text-white",
20
+ error: "bg-error-600 text-white"
21
+ },
22
+ outlined: {
23
+ success: "border border-success-500 text-success-700",
24
+ info: "border border-info-500 text-info-700",
25
+ warning: "border border-warning-500 text-warning-700",
26
+ error: "border border-error-500 text-error-700"
27
+ }
28
+ }, A = {
29
+ standard: {
30
+ success: "text-success-700",
31
+ info: "text-info-700",
32
+ warning: "text-warning-700",
33
+ error: "text-error-700"
34
+ },
35
+ filled: {
36
+ success: "",
37
+ info: "",
38
+ warning: "",
39
+ error: ""
40
+ },
41
+ outlined: {
42
+ success: "",
43
+ info: "",
44
+ warning: "",
45
+ error: ""
46
+ }
47
+ }, C = {
48
+ standard: "px-2 py-1",
49
+ filled: "px-4 py-2",
50
+ outlined: "px-4 py-2"
51
+ }, N = {
52
+ success: /* @__PURE__ */ r(h, {
53
+ width: 20,
54
+ height: 20
55
+ }),
56
+ info: /* @__PURE__ */ r(m, {
57
+ width: 20,
58
+ height: 20
59
+ }),
60
+ warning: /* @__PURE__ */ r(w, {
61
+ width: 20,
62
+ height: 20
63
+ }),
64
+ error: /* @__PURE__ */ r(u, {
65
+ width: 20,
66
+ height: 20
67
+ })
68
+ }, D = ({ severity: e = "success", variant: t = "standard", icon: n, iconMapping: c, action: d, onClose: o, children: a, className: l, sx: b, role: f = "alert" }) => {
69
+ const s = n === !1 ? null : n ?? c?.[e] ?? N[e];
70
+ return /* @__PURE__ */ p("div", {
71
+ role: f,
72
+ className: i("flex items-center gap-2 rounded text-sm", C[t], I[t][e], l),
73
+ style: g(b),
74
+ children: [
75
+ s && /* @__PURE__ */ r("span", {
76
+ className: i("flex shrink-0 items-center", A[t][e]),
77
+ children: s
78
+ }),
79
+ /* @__PURE__ */ r("span", {
80
+ className: "min-w-0 flex-1",
81
+ children: a
82
+ }),
83
+ d ?? (o && /* @__PURE__ */ r("button", {
84
+ type: "button",
85
+ "aria-label": "Close",
86
+ onClick: o,
87
+ className: "flex h-8 min-w-8 shrink-0 items-center justify-center rounded border-0 bg-transparent px-1.5 hover:bg-black/10",
88
+ children: /* @__PURE__ */ r(x, {
89
+ width: 20,
90
+ height: 20
91
+ })
92
+ }))
93
+ ]
94
+ });
95
+ };
15
96
  export {
16
- m as StyledAlert
97
+ D as StyledAlert
17
98
  };
@@ -1,10 +1,36 @@
1
- import { Snackbar as t } from "@mui/material";
2
- import { jsx as o } from "react/jsx-runtime";
3
- var d = ({ children: a, ...r }) => /* @__PURE__ */ o(t, {
4
- autoHideDuration: r.autoHideDuration ?? 3e3,
5
- ...r,
6
- children: a && /* @__PURE__ */ o("div", { children: a })
7
- });
1
+ import { cn as c } from "../../../helpers/cn.js";
2
+ import { useEffect as p } from "react";
3
+ import { jsx as l, jsxs as x } from "react/jsx-runtime";
4
+ import { FloatingPortal as h } from "@floating-ui/react";
5
+ var b = {
6
+ "top-left": "top-6 left-6",
7
+ "top-center": "top-6 left-1/2 -translate-x-1/2",
8
+ "top-right": "top-6 right-6",
9
+ "bottom-left": "bottom-6 left-6",
10
+ "bottom-center": "bottom-6 left-1/2 -translate-x-1/2",
11
+ "bottom-right": "bottom-6 right-6"
12
+ }, S = ({ open: t = !1, autoHideDuration: e = 3e3, onClose: r, anchorOrigin: o = {
13
+ vertical: "bottom",
14
+ horizontal: "left"
15
+ }, message: i, action: m, children: a, className: f }) => {
16
+ if (p(() => {
17
+ if (!t || e == null) return;
18
+ const s = setTimeout(() => r?.(null, "timeout"), e);
19
+ return () => clearTimeout(s);
20
+ }, [
21
+ t,
22
+ e,
23
+ r
24
+ ]), !t) return null;
25
+ const n = b[`${o.vertical}-${o.horizontal}`];
26
+ return /* @__PURE__ */ l(h, { children: /* @__PURE__ */ l("div", {
27
+ className: c("fixed z-[1400] flex items-center gap-2", n, f),
28
+ children: a ?? /* @__PURE__ */ x("div", {
29
+ className: "flex items-center gap-2 rounded bg-delta-800 px-4 py-3 text-sm text-white shadow-lg",
30
+ children: [i, m]
31
+ })
32
+ }) });
33
+ };
8
34
  export {
9
- d as StyledSnackbar
35
+ S as StyledSnackbar
10
36
  };
@@ -1,73 +1,72 @@
1
1
  import { omit as f } from "../../../../helpers/omit.js";
2
2
  import { CloseIcon as p } from "../../../icons/close-icon/CloseIcon.js";
3
3
  import { CheckOutlineIcon as u } from "./CheckOutlineIcon.js";
4
- import { ErrorOutlineIcon as g } from "./ErrorOutlineIcon.js";
5
- import { InfoOutlineIcon as I } from "./InfoOutlineIcon.js";
6
- import { WarningAmberOutlineIcon as S } from "./WarningAmberOutlineIcon.js";
7
- import i from "./StyledDefaultSnackbar.module.js";
8
- import t from "clsx";
9
- import { forwardRef as v } from "react";
10
- import { IconButton as b } from "@mui/material";
11
- import { jsx as r, jsxs as n } from "react/jsx-runtime";
12
- import { SnackbarContent as k, useSnackbar as w } from "notistack";
13
- var x = {
14
- info: /* @__PURE__ */ r(I, {
4
+ import { ErrorOutlineIcon as b } from "./ErrorOutlineIcon.js";
5
+ import { InfoOutlineIcon as g } from "./InfoOutlineIcon.js";
6
+ import { WarningAmberOutlineIcon as v } from "./WarningAmberOutlineIcon.js";
7
+ import r from "./StyledDefaultSnackbar.module.js";
8
+ import o from "clsx";
9
+ import { forwardRef as I } from "react";
10
+ import { jsx as e, jsxs as n } from "react/jsx-runtime";
11
+ import { SnackbarContent as S, useSnackbar as k } from "notistack";
12
+ var w = {
13
+ info: /* @__PURE__ */ e(g, {
15
14
  height: 24,
16
15
  width: 24
17
16
  }),
18
- error: /* @__PURE__ */ r(g, {
17
+ error: /* @__PURE__ */ e(b, {
19
18
  height: 24,
20
19
  width: 24
21
20
  }),
22
- success: /* @__PURE__ */ r(u, {
21
+ success: /* @__PURE__ */ e(u, {
23
22
  height: 24,
24
23
  width: 24
25
24
  }),
26
- warning: /* @__PURE__ */ r(S, {
25
+ warning: /* @__PURE__ */ e(v, {
27
26
  height: 24,
28
27
  width: 24
29
28
  })
30
- }, B = v((c, l) => {
31
- const { id: a, message: m, severity: e, action: o, title: s, ...h } = f(c, [
29
+ }, R = I((c, l) => {
30
+ const { id: a, message: s, severity: t, action: i, title: m, ...d } = f(c, [
32
31
  "anchorOrigin",
33
32
  "autoHideDuration",
34
33
  "hideIconVariant",
35
34
  "iconVariant",
36
35
  "persist"
37
- ]), { closeSnackbar: d } = w();
38
- return /* @__PURE__ */ r(k, {
36
+ ]), { closeSnackbar: h } = k();
37
+ return /* @__PURE__ */ e(S, {
39
38
  ref: l,
40
39
  role: "alert",
41
- ...h,
40
+ ...d,
42
41
  children: /* @__PURE__ */ n("div", {
43
- className: t(i.container, i[e]),
42
+ className: o(r.container, r[t]),
44
43
  children: [
45
44
  /* @__PURE__ */ n("div", {
46
- className: i.header,
45
+ className: r.header,
47
46
  children: [/* @__PURE__ */ n("div", {
48
- className: t(i.title, i[`title_${e}`]),
49
- children: [x[e], /* @__PURE__ */ r("span", { children: s ?? e })]
50
- }), /* @__PURE__ */ r(b, {
47
+ className: o(r.title, r[`title_${t}`]),
48
+ children: [w[t], /* @__PURE__ */ e("span", { children: m ?? t })]
49
+ }), /* @__PURE__ */ e("button", {
50
+ type: "button",
51
51
  "aria-label": "close",
52
- color: "inherit",
53
- sx: { p: "2px" },
54
- onClick: () => d(a),
55
- children: /* @__PURE__ */ r(p, {
52
+ className: "flex items-center justify-center rounded border-0 bg-transparent p-[2px] hover:bg-black/10",
53
+ onClick: () => h(a),
54
+ children: /* @__PURE__ */ e(p, {
56
55
  width: 20,
57
56
  height: 20,
58
57
  color: "#49525F"
59
58
  })
60
59
  })]
61
60
  }),
62
- /* @__PURE__ */ r("div", {
63
- className: t(i.message, i[`message_${e}`]),
64
- children: m
61
+ /* @__PURE__ */ e("div", {
62
+ className: o(r.message, r[`message_${t}`]),
63
+ children: s
65
64
  }),
66
- o ? /* @__PURE__ */ r("div", { children: typeof o == "function" ? o(a) : o }) : null
65
+ i ? /* @__PURE__ */ e("div", { children: typeof i == "function" ? i(a) : i }) : null
67
66
  ]
68
67
  })
69
68
  });
70
69
  });
71
70
  export {
72
- B as StyledDefaultSnackbar
71
+ R as StyledDefaultSnackbar
73
72
  };
@@ -1,21 +1,21 @@
1
- var e = "_container_1e4wt_1", _ = "_header_1e4wt_13", r = "_title_1e4wt_19", a = "_message_1e4wt_28", t = "_info_1e4wt_36", s = "_error_1e4wt_41", i = "_success_1e4wt_46", n = "_warning_1e4wt_51", w = "_title_info_1e4wt_57", v = "_title_error_1e4wt_61", g = "_title_success_1e4wt_65", o = "_title_warning_1e4wt_69", c = "_message_info_1e4wt_74", l = "_message_error_1e4wt_78", m = "_message_success_1e4wt_82", u = "_message_warning_1e4wt_86", f = {
2
- container: e,
3
- header: _,
1
+ var _ = "_container_l83m1_1", e = "_header_l83m1_13", r = "_title_l83m1_19", a = "_message_l83m1_29", s = "_info_l83m1_38", l = "_error_l83m1_43", m = "_success_l83m1_48", t = "_warning_l83m1_53", i = "_title_info_l83m1_59", n = "_title_error_l83m1_63", v = "_title_success_l83m1_67", g = "_title_warning_l83m1_71", o = "_message_info_l83m1_76", c = "_message_error_l83m1_80", u = "_message_success_l83m1_84", f = "_message_warning_l83m1_88", d = {
2
+ container: _,
3
+ header: e,
4
4
  title: r,
5
5
  message: a,
6
- info: t,
7
- error: s,
8
- success: i,
9
- warning: n,
10
- title_info: w,
11
- title_error: v,
12
- title_success: g,
13
- title_warning: o,
14
- message_info: c,
15
- message_error: l,
16
- message_success: m,
17
- message_warning: u
6
+ info: s,
7
+ error: l,
8
+ success: m,
9
+ warning: t,
10
+ title_info: i,
11
+ title_error: n,
12
+ title_success: v,
13
+ title_warning: g,
14
+ message_info: o,
15
+ message_error: c,
16
+ message_success: u,
17
+ message_warning: f
18
18
  };
19
19
  export {
20
- f as default
20
+ d as default
21
21
  };
@@ -1,17 +1,18 @@
1
- import { jsx as t, jsxs as e } from "react/jsx-runtime";
2
- function o(r) {
3
- return /* @__PURE__ */ e("svg", {
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ function i(t) {
3
+ return /* @__PURE__ */ r("svg", {
4
+ "aria-hidden": "true",
4
5
  xmlns: "http://www.w3.org/2000/svg",
5
6
  width: 24,
6
7
  height: 24,
7
8
  viewBox: "0 0 24 24",
8
- ...r,
9
- children: [/* @__PURE__ */ t("title", { children: "Check icon" }), /* @__PURE__ */ t("path", {
9
+ ...t,
10
+ children: /* @__PURE__ */ r("path", {
10
11
  fill: "currentColor",
11
12
  d: "M9 16.17L4.83 12l-1.42 1.41L9 19L21 7l-1.41-1.41z"
12
- })]
13
+ })
13
14
  });
14
15
  }
15
16
  export {
16
- o as CheckIcon
17
+ i as CheckIcon
17
18
  };
@@ -1,8 +1,8 @@
1
1
  import t from "./StyledButton.module.js";
2
- import u from "clsx";
2
+ import f from "clsx";
3
3
  import "react";
4
- import { jsx as f, jsxs as g } from "react/jsx-runtime";
5
- var r = {
4
+ import { jsx as g, jsxs as y } from "react/jsx-runtime";
5
+ var a = {
6
6
  contained: t.contained,
7
7
  outlined: t.outlined,
8
8
  text: t.text,
@@ -13,16 +13,20 @@ var r = {
13
13
  medium: t.medium,
14
14
  error: t.error,
15
15
  common: t.common
16
- }, j = ({ variant: m = "contained", className: n = "", size: e = "medium", children: a, refLink: i, startIcon: l, endIcon: d, dataTest: p, error: s, ...x }) => {
17
- const o = e === "large" || e === "medium", c = s ? "error" : "common";
18
- return /* @__PURE__ */ g("button", {
19
- ...x,
20
- className: u(t["asma-ui-core-button"], r[m], r[c], r[e], n),
21
- ref: i,
22
- "data-testid": p,
16
+ }, B = ({ variant: n = "contained", className: i = "", size: e = "medium", children: o, refLink: l, startIcon: d, endIcon: s, dataTest: x, error: p, style: m, ...c }) => {
17
+ const r = e === "large" || e === "medium", u = p ? "error" : "common";
18
+ return /* @__PURE__ */ y("button", {
19
+ ...c,
20
+ className: f(t["asma-ui-core-button"], a[n], a[u], a[e], i),
21
+ style: o ? {
22
+ flexShrink: 0,
23
+ ...m
24
+ } : m,
25
+ ref: l,
26
+ "data-testid": x,
23
27
  children: [
24
- l,
25
- a && /* @__PURE__ */ f("div", {
28
+ d,
29
+ o && /* @__PURE__ */ g("div", {
26
30
  style: {
27
31
  overflow: "hidden",
28
32
  textOverflow: "ellipsis",
@@ -30,16 +34,16 @@ var r = {
30
34
  display: "flex",
31
35
  alignItems: "center",
32
36
  justifyContent: "center",
33
- gap: o ? "8px" : "4px",
34
- paddingLeft: o ? "8px" : "4px",
35
- paddingRight: o ? "8px" : "4px"
37
+ gap: r ? "8px" : "4px",
38
+ paddingLeft: r ? "8px" : "4px",
39
+ paddingRight: r ? "8px" : "4px"
36
40
  },
37
- children: a
41
+ children: o
38
42
  }),
39
- d
43
+ s
40
44
  ]
41
45
  });
42
46
  };
43
47
  export {
44
- j as StyledButton
48
+ B as StyledButton
45
49
  };
@@ -1,13 +1,13 @@
1
- var _ = "_contained_654yh_6", t = "_common_654yh_6", a = "_medium_654yh_45", e = "_small_654yh_50", r = "_large_654yh_55", o = "_error_654yh_65", y = "_outlined_654yh_124", h = "_text_654yh_242", m = "_textGray_654yh_358", l = "_textWhite_654yh_416", u = {
2
- "asma-ui-core-button": "_asma-ui-core-button_654yh_1",
1
+ var _ = "_contained_2qc3y_6", t = "_common_2qc3y_6", a = "_medium_2qc3y_44", e = "_small_2qc3y_51", r = "_large_2qc3y_58", c = "_error_2qc3y_70", o = "_outlined_2qc3y_134", y = "_text_2qc3y_262", m = "_textGray_2qc3y_388", l = "_textWhite_2qc3y_451", u = {
2
+ "asma-ui-core-button": "_asma-ui-core-button_2qc3y_1",
3
3
  contained: _,
4
4
  common: t,
5
5
  medium: a,
6
6
  small: e,
7
7
  large: r,
8
- error: o,
9
- outlined: y,
10
- text: h,
8
+ error: c,
9
+ outlined: o,
10
+ text: y,
11
11
  textGray: m,
12
12
  textWhite: l
13
13
  };