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,25 +1,25 @@
1
- import { cn as c } from "../../../helpers/cn.js";
2
- import { DotsVerticalIcon as de } from "../../icons/dots-vertical-icon/DotsVerticalIcon.js";
3
- import { LoadingIcon as S } from "../../icons/loading-icon/LoadingIcon.js";
4
- import { CloseIcon as O } from "../../icons/close-icon/CloseIcon.js";
5
- import { MinimizeIcon as re } from "../../icons/minimize-icon/MinimizeIcon.js";
6
- import { KeyboardCapslockIcon as ne } from "../../icons/keyboard-capslock-icon/KeyboardCapslockIcon.js";
7
- import { StyledTooltip as h } from "../../data-display/tooltip/StyledTooltip.js";
8
- import { StyledButton as i } from "../../inputs/button/StyledButton.js";
9
- import { StyledMenu as ae } from "../../navigation/menu/StyledMenu.js";
10
- import { StyledMenuItem as oe } from "../../navigation/menu/StyledMenuItem.js";
11
- import T from "./MinimizableDialog.module.js";
12
- import { useToggleMenuVisibility as se } from "../../../hooks/useToggleMenuVisibility.hook.js";
13
- import { ArrowExpand as ce } from "../../icons/arrow-expand/ArrowExpand.js";
14
- import { ArrowShrink as he } from "../../icons/arrow-shrink/ArrowShrink.js";
15
- import V from "clsx";
16
- import { useState as $ } from "react";
17
- import { Fragment as z, jsx as e, jsxs as t } from "react/jsx-runtime";
18
- import { isArray as K, isFunction as L } from "lodash-es";
19
- var Ge = ({ onCloseText: N = "", onMinimizeText: R = "", onExpandText: U = "", onFullScreenText: q = "", showCloseIcon: k = !0, showMinimizeIcon: H = !0, showExpandIcon: J = !0, showFullScreenIcon: Q = !0, title: u, label: p, children: v, open: W, onClose: I, className: y = "", primaryButtonText: g, primaryButtonLoading: x = !1, secondaryButtonText: o, onPrimaryButtonClick: m, onSecondaryButtonClick: f, dataTest: M, actionNode: X, extraActions: l, extraActionsText: s, btnContainerClassName: j, footerClassName: Y, footerInfo: C, locale: n = "en", enableFullscreen: Z = !0, fullScreenState: F, handleFullScreenState: _ }) => {
20
- const [d, P] = $(!1), [G, A] = $(!1), { open: B, anchorEl: ee, handleOpen: te, handleClose: ie } = se();
21
- if (!W) return null;
22
- const a = F ?? G, b = a && !d, le = b ? {
1
+ import { cn as h } from "../../../helpers/cn.js";
2
+ import { DotsVerticalIcon as re } from "../../icons/dots-vertical-icon/DotsVerticalIcon.js";
3
+ import { LoadingIcon as $ } from "../../icons/loading-icon/LoadingIcon.js";
4
+ import { CloseIcon as K } from "../../icons/close-icon/CloseIcon.js";
5
+ import { MinimizeIcon as de } from "../../icons/minimize-icon/MinimizeIcon.js";
6
+ import { KeyboardCapslockIcon as ae } from "../../icons/keyboard-capslock-icon/KeyboardCapslockIcon.js";
7
+ import { ArrowExpandIcon as ne } from "../../icons/arrow-expand-icon/ArrowExpandIcon.js";
8
+ import { ArrowShrinkIcon as oe } from "../../icons/arrow-shrink-icon/ArrowShrinkIcon.js";
9
+ import { StyledTooltip as f } from "../../data-display/tooltip/StyledTooltip.js";
10
+ import { StyledButton as t } from "../../inputs/button/StyledButton.js";
11
+ import { useFocusTrap as se } from "../../../hooks/useFocusTrap.hook.js";
12
+ import { StyledMenu as ce } from "../../navigation/menu/StyledMenu.js";
13
+ import { StyledMenuItem as me } from "../../navigation/menu/StyledMenuItem.js";
14
+ import q from "./MinimizableDialog.module.js";
15
+ import { useToggleMenuVisibility as he } from "../../../hooks/useToggleMenuVisibility.hook.js";
16
+ import H from "clsx";
17
+ import { useRef as fe, useState as J } from "react";
18
+ import { Fragment as z, jsx as e, jsxs as i } from "react/jsx-runtime";
19
+ var Ee = ({ onCloseText: u = "", onMinimizeText: N = "", onExpandText: I = "", onFullScreenText: M = "", showCloseIcon: j = !0, showMinimizeIcon: Q = !0, showExpandIcon: T = !0, showFullScreenIcon: W = !0, title: s, label: b, children: g, open: C, onClose: x, className: _ = "", primaryButtonText: w, primaryButtonLoading: k = !1, secondaryButtonText: c, onPrimaryButtonClick: v, onSecondaryButtonClick: p, dataTest: F, actionNode: X, extraActions: r, extraActionsText: m, btnContainerClassName: G, footerClassName: Y, footerInfo: D, locale: l = "en", enableFullscreen: Z = !0, fullScreenState: E, handleFullScreenState: L }) => {
20
+ const [d, A] = J(!1), [R, P] = J(!1), { open: B, anchorEl: ee, handleOpen: ie, handleClose: te } = he(), S = fe(null), o = E ?? R, a = o && !d;
21
+ if (se(C && a, S, x), !C) return null;
22
+ const le = a ? {
23
23
  right: "auto",
24
24
  bottom: "auto",
25
25
  left: "50%",
@@ -27,196 +27,205 @@ var Ge = ({ onCloseText: N = "", onMinimizeText: R = "", onExpandText: U = "", o
27
27
  transform: "translate(-50%, -50%)",
28
28
  width: "min(1000px, calc(100vw - 32px))",
29
29
  height: "95dvh"
30
- } : void 0, w = g ?? x, D = w || o, E = () => {
31
- P(!d);
30
+ } : void 0, O = o ? l === "en" ? "Exit full screen" : "Avslutt fullskjerm" : l === "en" ? "Full screen" : "Fullskjerm", y = w ?? k, U = y || c, V = () => {
31
+ A(!d);
32
32
  };
33
- return /* @__PURE__ */ t(z, { children: [
34
- b && /* @__PURE__ */ e("div", { className: "fixed inset-0 z-[51] bg-[rgb(98,110,126)] bg-opacity-70" }),
33
+ return /* @__PURE__ */ i(z, { children: [
34
+ a && /* @__PURE__ */ e("div", { className: "fixed inset-0 z-[51] bg-[rgb(98,110,126)] bg-opacity-70" }),
35
35
  /* @__PURE__ */ e("div", {
36
36
  style: { zIndex: 51 },
37
- className: c(T.dialog, !d && T.hidden),
38
- children: /* @__PURE__ */ t("div", {
39
- className: V("flex items-center justify-between", !d && "hidden"),
40
- "data-testid": M,
37
+ className: h(q.dialog, !d && q.hidden),
38
+ children: /* @__PURE__ */ i("div", {
39
+ className: H("flex items-center justify-between", !d && "hidden"),
40
+ "data-testid": F,
41
41
  children: [/* @__PURE__ */ e("div", {
42
42
  className: "truncate text-lg font-semibold text-delta-800",
43
- children: u
44
- }), /* @__PURE__ */ t("div", {
43
+ children: s
44
+ }), /* @__PURE__ */ i("div", {
45
45
  className: "flex items-center gap-x-1",
46
- children: [J && /* @__PURE__ */ e(h, {
47
- title: n === "en" ? "Expand" : "Utvid",
48
- children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(i, {
46
+ children: [T && /* @__PURE__ */ e(f, {
47
+ title: l === "en" ? "Expand" : "Utvid",
48
+ children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(t, {
49
49
  dataTest: "minimize-button",
50
+ "aria-label": I ? void 0 : l === "en" ? "Expand" : "Utvid",
50
51
  variant: "text",
51
52
  size: "small",
52
- onClick: E,
53
- endIcon: /* @__PURE__ */ e(ne, {
53
+ onClick: V,
54
+ endIcon: /* @__PURE__ */ e(ae, {
54
55
  height: 20,
55
56
  width: 20,
56
57
  color: "text-gama-500"
57
58
  }),
58
- children: U
59
+ children: I
59
60
  }) })
60
- }), k && /* @__PURE__ */ e(h, {
61
- title: n === "en" ? "Close" : "Lukk",
62
- children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(i, {
61
+ }), j && /* @__PURE__ */ e(f, {
62
+ title: l === "en" ? "Close" : "Lukk",
63
+ children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(t, {
63
64
  dataTest: "close-button",
65
+ "aria-label": u ? void 0 : l === "en" ? "Close" : "Lukk",
64
66
  variant: "textGray",
65
67
  size: "small",
66
- onClick: I,
67
- endIcon: /* @__PURE__ */ e(O, {
68
+ onClick: x,
69
+ endIcon: /* @__PURE__ */ e(K, {
68
70
  height: 20,
69
71
  width: 20,
70
72
  color: "text-delta-700"
71
73
  }),
72
- children: N
74
+ children: u
73
75
  }) })
74
76
  })]
75
77
  })]
76
78
  })
77
79
  }),
78
- /* @__PURE__ */ t("div", {
80
+ /* @__PURE__ */ i("div", {
81
+ ref: S,
79
82
  style: le,
80
- className: c("fixed bottom-4 right-4 z-[51] rounded-lg bg-white shadow-[0_4px_40px_0px_rgba(34,33,51,0.4)] transition-all duration-300", y && !d && !a ? y : "", d && "!h-0 !w-0 opacity-0 duration-0", b && "fixed duration-0"),
81
- "data-testid": M,
82
- children: [/* @__PURE__ */ t("div", {
83
+ role: a ? "dialog" : void 0,
84
+ "aria-modal": a ? !0 : void 0,
85
+ "aria-label": a && typeof s == "string" ? s : void 0,
86
+ className: h("fixed bottom-4 right-4 z-[51] rounded-lg bg-white shadow-[0_4px_40px_0px_rgba(34,33,51,0.4)] transition-all duration-300", _ && !d && !o ? _ : "", d && "!h-0 !w-0 opacity-0 duration-0", a && "fixed duration-0"),
87
+ "data-testid": F,
88
+ children: [/* @__PURE__ */ i("div", {
83
89
  className: "flex flex-col gap-y-2 border-b-[1px] border-delta-200 p-4",
84
- children: [/* @__PURE__ */ t("div", {
90
+ children: [/* @__PURE__ */ i("div", {
85
91
  className: "flex items-center justify-between",
86
- children: [p ? /* @__PURE__ */ e("div", {
92
+ children: [b ? /* @__PURE__ */ e("div", {
87
93
  className: "text-sm text-delta-700",
88
- children: p
94
+ children: b
89
95
  }) : /* @__PURE__ */ e("div", {
90
96
  className: "text-2xl font-semibold text-delta-800",
91
- children: u
92
- }), /* @__PURE__ */ t("div", {
97
+ children: s
98
+ }), /* @__PURE__ */ i("div", {
93
99
  className: "flex items-center gap-x-1",
94
100
  children: [
95
101
  X,
96
- H && /* @__PURE__ */ e(h, {
97
- title: n === "en" ? "Minimize" : "Minimer",
98
- children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(i, {
102
+ Q && /* @__PURE__ */ e(f, {
103
+ title: l === "en" ? "Minimize" : "Minimer",
104
+ children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(t, {
99
105
  dataTest: "minimize-button",
106
+ "aria-label": N ? void 0 : l === "en" ? "Minimize" : "Minimer",
100
107
  variant: "textGray",
101
108
  size: "small",
102
- onClick: E,
103
- endIcon: /* @__PURE__ */ e(re, {
109
+ onClick: V,
110
+ endIcon: /* @__PURE__ */ e(de, {
104
111
  height: 20,
105
112
  width: 20,
106
113
  color: "text-delta-700"
107
114
  }),
108
- children: R
115
+ children: N
109
116
  }) })
110
117
  }),
111
- Z && Q && /* @__PURE__ */ e(h, {
112
- title: a ? n === "en" ? "Exit full screen" : "Avslutt fullskjerm" : n === "en" ? "Full screen" : "Fullskjerm",
113
- children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(i, {
118
+ Z && W && /* @__PURE__ */ e(f, {
119
+ title: O,
120
+ children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(t, {
114
121
  dataTest: "fullscreen-button",
122
+ "aria-label": M ? void 0 : O,
115
123
  variant: "textGray",
116
124
  size: "small",
117
- onClick: (r) => {
118
- F !== void 0 && _ ? _() : A(!G), r.detail !== 0 && r.currentTarget.blur();
125
+ onClick: (n) => {
126
+ E !== void 0 && L ? L() : P(!R), n.detail !== 0 && n.currentTarget.blur();
119
127
  },
120
- endIcon: a ? /* @__PURE__ */ e(he, {
128
+ endIcon: o ? /* @__PURE__ */ e(oe, {
121
129
  width: 20,
122
130
  height: 20,
123
131
  color: "text-delta-700"
124
- }) : /* @__PURE__ */ e(ce, {
132
+ }) : /* @__PURE__ */ e(ne, {
125
133
  width: 20,
126
134
  height: 20,
127
135
  color: "text-delta-700"
128
136
  }),
129
- children: q
137
+ children: M
130
138
  }) })
131
139
  }),
132
- k && /* @__PURE__ */ e(h, {
133
- title: n === "en" ? "Close" : "Lukk",
134
- children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(i, {
140
+ j && /* @__PURE__ */ e(f, {
141
+ title: l === "en" ? "Close" : "Lukk",
142
+ children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(t, {
135
143
  dataTest: "close-button",
144
+ "aria-label": u ? void 0 : l === "en" ? "Close" : "Lukk",
136
145
  variant: "textGray",
137
146
  size: "small",
138
- onClick: I,
139
- endIcon: /* @__PURE__ */ e(O, {
147
+ onClick: x,
148
+ endIcon: /* @__PURE__ */ e(K, {
140
149
  height: 20,
141
150
  width: 20,
142
151
  color: "text-delta-700"
143
152
  }),
144
- children: N
153
+ children: u
145
154
  }) })
146
155
  })
147
156
  ]
148
157
  })]
149
- }), p && /* @__PURE__ */ e("div", {
158
+ }), b && /* @__PURE__ */ e("div", {
150
159
  className: "truncate text-2xl font-semibold text-delta-800",
151
- children: u
160
+ children: s
152
161
  })]
153
- }), /* @__PURE__ */ t("div", {
154
- className: V("flex flex-col", a && !d && "h-[87dvh]"),
162
+ }), /* @__PURE__ */ i("div", {
163
+ className: H("flex flex-col", o && !d && "h-[87dvh]"),
155
164
  children: [/* @__PURE__ */ e("div", {
156
165
  className: "flex-grow overflow-y-auto",
157
- children: typeof v == "function" ? v({ fullScreen: a }) : v
158
- }), (K(l) && l.length || L(l)) && s || C ? /* @__PURE__ */ t("div", {
159
- className: c("flex items-center justify-between border-0 border-t-[1px] border-solid border-delta-200 bg-white p-4", Y),
166
+ children: typeof g == "function" ? g({ fullScreen: o }) : g
167
+ }), (Array.isArray(r) && r.length || typeof r == "function") && m || D ? /* @__PURE__ */ i("div", {
168
+ className: h("flex items-center justify-between border-0 border-t-[1px] border-solid border-delta-200 bg-white p-4", Y),
160
169
  children: [
161
- K(l) && l.length && s ? /* @__PURE__ */ t(z, { children: [/* @__PURE__ */ e(i, {
170
+ Array.isArray(r) && r.length && m ? /* @__PURE__ */ i(z, { children: [/* @__PURE__ */ e(t, {
162
171
  dataTest: "extra-actions-button",
163
172
  variant: "textGray",
164
- startIcon: /* @__PURE__ */ e(de, {
173
+ startIcon: /* @__PURE__ */ e(re, {
165
174
  width: 24,
166
175
  height: 24
167
176
  }),
168
- onClick: te,
169
- children: s
170
- }), /* @__PURE__ */ e(ae, {
177
+ onClick: ie,
178
+ children: m
179
+ }), /* @__PURE__ */ e(ce, {
171
180
  open: B,
172
181
  anchorEl: ee,
173
- onClose: ie,
174
- children: l.map((r) => /* @__PURE__ */ e(oe, {
175
- className: r.className,
176
- onClick: r.onClick,
177
- children: r.label
178
- }, r.label))
179
- })] }) : s && L(l) && /* @__PURE__ */ e(i, {
182
+ onClose: te,
183
+ children: r.map((n) => /* @__PURE__ */ e(me, {
184
+ className: n.className,
185
+ onClick: n.onClick,
186
+ children: n.label
187
+ }, n.label))
188
+ })] }) : m && typeof r == "function" && /* @__PURE__ */ e(t, {
180
189
  dataTest: "extra-action-button",
181
190
  variant: "text",
182
- onClick: l,
183
- children: s
191
+ onClick: r,
192
+ children: m
184
193
  }),
185
194
  " ",
186
- C,
187
- D ? /* @__PURE__ */ t("div", {
188
- className: c("flex justify-end gap-x-2", j),
189
- children: [o && f && /* @__PURE__ */ e(i, {
195
+ D,
196
+ U ? /* @__PURE__ */ i("div", {
197
+ className: h("flex justify-end gap-x-2", G),
198
+ children: [c && p && /* @__PURE__ */ e(t, {
190
199
  dataTest: "cancel-button",
191
200
  variant: "outlined",
192
- onClick: f,
193
- children: o
194
- }), w && m && /* @__PURE__ */ e(i, {
201
+ onClick: p,
202
+ children: c
203
+ }), y && v && /* @__PURE__ */ e(t, {
195
204
  dataTest: "save-button",
196
- startIcon: x && /* @__PURE__ */ e(S, {
205
+ startIcon: k && /* @__PURE__ */ e($, {
197
206
  width: 24,
198
207
  height: 24
199
208
  }),
200
- onClick: m,
201
- children: g
209
+ onClick: v,
210
+ children: w
202
211
  })]
203
212
  }) : null
204
213
  ]
205
- }) : /* @__PURE__ */ e(z, { children: D ? /* @__PURE__ */ t("div", {
206
- className: c("flex justify-end gap-x-2 border-t-[1px] border-delta-200 p-4", j),
207
- children: [o && f && /* @__PURE__ */ e(i, {
214
+ }) : /* @__PURE__ */ e(z, { children: U ? /* @__PURE__ */ i("div", {
215
+ className: h("flex justify-end gap-x-2 border-t-[1px] border-delta-200 p-4", G),
216
+ children: [c && p && /* @__PURE__ */ e(t, {
208
217
  dataTest: "cancel-button",
209
218
  variant: "outlined",
210
- onClick: f,
211
- children: o
212
- }), w && m && /* @__PURE__ */ e(i, {
219
+ onClick: p,
220
+ children: c
221
+ }), y && v && /* @__PURE__ */ e(t, {
213
222
  dataTest: "save-button",
214
- startIcon: x && /* @__PURE__ */ e(S, {
223
+ startIcon: k && /* @__PURE__ */ e($, {
215
224
  width: 24,
216
225
  height: 24
217
226
  }),
218
- onClick: m,
219
- children: g
227
+ onClick: v,
228
+ children: w
220
229
  })]
221
230
  }) : null })]
222
231
  })]
@@ -224,5 +233,5 @@ var Ge = ({ onCloseText: N = "", onMinimizeText: R = "", onExpandText: U = "", o
224
233
  ] });
225
234
  };
226
235
  export {
227
- Ge as MinimizableDialog
236
+ Ee as MinimizableDialog
228
237
  };
@@ -1,16 +1,17 @@
1
1
  import { CloseIcon as l } from "../../../icons/close-icon/CloseIcon.js";
2
2
  import { StyledTooltip as i } from "../../../data-display/tooltip/StyledTooltip.js";
3
- import { StyledButton as n } from "../../../inputs/button/StyledButton.js";
3
+ import { StyledButton as a } from "../../../inputs/button/StyledButton.js";
4
4
  import "react";
5
5
  import { jsx as t } from "react/jsx-runtime";
6
- var f = ({ showCloseIcon: o, tooltipTitle: e, onClick: r }) => o ? /* @__PURE__ */ t(i, {
7
- title: e,
6
+ var f = ({ showCloseIcon: e, tooltipTitle: r, onClick: o }) => e ? /* @__PURE__ */ t(i, {
7
+ title: r,
8
8
  placement: "top",
9
- children: /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(n, {
9
+ children: /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(a, {
10
10
  dataTest: "close-button",
11
+ "aria-label": r,
11
12
  variant: "textGray",
12
13
  size: "small",
13
- onClick: r,
14
+ onClick: o,
14
15
  endIcon: /* @__PURE__ */ t(l, {
15
16
  height: 20,
16
17
  width: 20,
@@ -1,22 +1,23 @@
1
- import { StyledTooltip as n } from "../../../data-display/tooltip/StyledTooltip.js";
2
- import { StyledButton as d } from "../../../inputs/button/StyledButton.js";
3
- import { ArrowExpand as a } from "../../../icons/arrow-expand/ArrowExpand.js";
4
- import { ArrowShrink as m } from "../../../icons/arrow-shrink/ArrowShrink.js";
5
- import { jsx as t } from "react/jsx-runtime";
6
- var x = ({ fullScreen: e, showFullScreenIcon: o, tooltipTitle: i, onClick: l }) => o ? /* @__PURE__ */ t(n, {
7
- title: i,
8
- children: /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(d, {
1
+ import { ArrowExpandIcon as n } from "../../../icons/arrow-expand-icon/ArrowExpandIcon.js";
2
+ import { ArrowShrinkIcon as a } from "../../../icons/arrow-shrink-icon/ArrowShrinkIcon.js";
3
+ import { StyledTooltip as d } from "../../../data-display/tooltip/StyledTooltip.js";
4
+ import { StyledButton as c } from "../../../inputs/button/StyledButton.js";
5
+ import { jsx as r } from "react/jsx-runtime";
6
+ var x = ({ fullScreen: o, showFullScreenIcon: l, tooltipTitle: t, onClick: i }) => l ? /* @__PURE__ */ r(d, {
7
+ title: t,
8
+ children: /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(c, {
9
9
  dataTest: "fullscreen-button",
10
+ "aria-label": t,
10
11
  variant: "textGray",
11
12
  size: "small",
12
- onClick: (r) => {
13
- l(), r.detail !== 0 && r.currentTarget.blur();
13
+ onClick: (e) => {
14
+ i(), e.detail !== 0 && e.currentTarget.blur();
14
15
  },
15
- endIcon: e ? /* @__PURE__ */ t(m, {
16
+ endIcon: o ? /* @__PURE__ */ r(a, {
16
17
  width: 20,
17
18
  height: 20,
18
19
  color: "text-delta-700"
19
- }) : /* @__PURE__ */ t(a, {
20
+ }) : /* @__PURE__ */ r(n, {
20
21
  width: 20,
21
22
  height: 20,
22
23
  color: "text-delta-700"
@@ -1,34 +1,36 @@
1
- import { MinimizeIcon as a } from "../../../icons/minimize-icon/MinimizeIcon.js";
1
+ import { MinimizeIcon as d } from "../../../icons/minimize-icon/MinimizeIcon.js";
2
2
  import { KeyboardCapslockIcon as c } from "../../../icons/keyboard-capslock-icon/KeyboardCapslockIcon.js";
3
3
  import { StyledTooltip as r } from "../../../data-display/tooltip/StyledTooltip.js";
4
- import { StyledButton as o } from "../../../inputs/button/StyledButton.js";
5
- import { jsx as t } from "react/jsx-runtime";
6
- var g = ({ visibility: l, tooltipTitle: i, onClick: e, type: n }) => {
4
+ import { StyledButton as a } from "../../../inputs/button/StyledButton.js";
5
+ import { jsx as i } from "react/jsx-runtime";
6
+ var g = ({ visibility: l, tooltipTitle: t, onClick: e, type: n }) => {
7
7
  if (!l) return null;
8
- const m = n === "expand", d = n === "minimize";
9
- return m ? /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(r, {
10
- title: i,
8
+ const m = n === "expand", o = n === "minimize";
9
+ return m ? /* @__PURE__ */ i("div", { children: /* @__PURE__ */ i(r, {
10
+ title: t,
11
11
  placement: "top",
12
- children: /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(o, {
12
+ children: /* @__PURE__ */ i("div", { children: /* @__PURE__ */ i(a, {
13
13
  dataTest: "toggle-minimize-btn",
14
+ "aria-label": t,
14
15
  variant: "text",
15
16
  size: "small",
16
17
  onClick: e,
17
- endIcon: /* @__PURE__ */ t(c, {
18
+ endIcon: /* @__PURE__ */ i(c, {
18
19
  height: 20,
19
20
  width: 20,
20
21
  color: "text-gama-500"
21
22
  })
22
23
  }) })
23
- }) }) : d ? /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(r, {
24
- title: i,
24
+ }) }) : o ? /* @__PURE__ */ i("div", { children: /* @__PURE__ */ i(r, {
25
+ title: t,
25
26
  placement: "top",
26
- children: /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(o, {
27
+ children: /* @__PURE__ */ i("div", { children: /* @__PURE__ */ i(a, {
27
28
  dataTest: "toggle-minimize-btn",
29
+ "aria-label": t,
28
30
  variant: "textGray",
29
31
  size: "small",
30
32
  onClick: e,
31
- endIcon: /* @__PURE__ */ t(a, {
33
+ endIcon: /* @__PURE__ */ i(d, {
32
34
  height: 20,
33
35
  width: 20,
34
36
  color: "text-delta-700"