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.
- package/dist/asma-ui-core.css +1 -1
- package/dist/components/custom/module/header-layout/ToolbarActionGroup.js +2 -2
- package/dist/components/custom/module/module-title/StyledModuleTitle.module.js +1 -1
- package/dist/components/custom/widget/widget/StyledWidget.module.js +8 -8
- package/dist/components/custom/widget/widget-title/StyledWidgetTitle.module.js +1 -1
- package/dist/components/data-display/ai-disclosure/StyledAIDisclosure.js +7 -5
- package/dist/components/data-display/badge/StyledBadge.js +53 -23
- package/dist/components/data-display/chip/StyledChip.js +62 -59
- package/dist/components/data-display/chip/chipPadding.js +44 -0
- package/dist/components/data-display/form-label/components/StyledFormLabel.js +18 -10
- package/dist/components/data-display/form-label/styles/StyledFormLabel.module.js +4 -4
- package/dist/components/data-display/interactive-chip/StyledInteractiveChip.js +35 -39
- package/dist/components/data-display/interactive-chip/StyledInteractiveChip.module.js +4 -0
- package/dist/components/data-display/tooltip/StyledTooltip.js +51 -33
- package/dist/components/data-display/typography/StyledTypography.js +62 -4
- package/dist/components/feedback/dialog/StyledDialog.js +102 -39
- package/dist/components/feedback/dialog/StyledDialog.module.js +2 -9
- package/dist/components/feedback/dialog/StyledDialogActions.js +16 -16
- package/dist/components/feedback/dialog/StyledDialogContent.js +18 -14
- package/dist/components/feedback/dialog/StyledDialogTitle.js +18 -13
- package/dist/components/feedback/empty-page/StyledEmptyPage.js +4 -4
- package/dist/components/feedback/filtered-empty-state/StyledFilteredEmptyState.js +7 -7
- package/dist/components/feedback/minimizable-dialog/MinimizableDialog.js +123 -114
- package/dist/components/feedback/minimizable-dialog/components/CloseBtn.js +6 -5
- package/dist/components/feedback/minimizable-dialog/components/FullscreenBtn.js +13 -12
- package/dist/components/feedback/minimizable-dialog/components/MinimizeBtn.js +15 -13
- package/dist/components/feedback/minimizable-dialog/v2/MinimizableDialogV2.js +67 -61
- package/dist/components/feedback/snack-bar/StyledAlert.js +95 -14
- package/dist/components/feedback/snack-bar/StyledSnackbar.js +34 -8
- package/dist/components/feedback/snack-bar/components/StyledDefaultSnackbar.js +32 -33
- package/dist/components/feedback/snack-bar/components/StyledDefaultSnackbar.module.js +16 -16
- package/dist/components/icons/check-icon/CheckIcon.js +8 -7
- package/dist/components/inputs/button/StyledButton.js +22 -18
- package/dist/components/inputs/button/StyledButton.module.js +5 -5
- package/dist/components/inputs/checkbox/base-ui/StyledCheckbox.js +61 -55
- package/dist/components/inputs/checkbox/base-ui/StyledCheckbox.module.js +12 -11
- package/dist/components/inputs/dynamic-select/components/DynamicInteractiveChipGroup.js +54 -50
- package/dist/components/inputs/dynamic-select/components/DynamicSelectAutocomplete.js +107 -99
- package/dist/components/inputs/field-styles.js +8 -0
- package/dist/components/inputs/input-field/StyledInputField.js +188 -83
- package/dist/components/inputs/input-field/StyledInputField.module.js +10 -0
- package/dist/components/inputs/label/StyledLabel.js +19 -11
- package/dist/components/inputs/label/StyledLabel.module.js +1 -1
- package/dist/components/inputs/radio-button/base-ui/RadioGroupContext.js +6 -0
- package/dist/components/inputs/radio-button/base-ui/StyledRadio.js +43 -28
- package/dist/components/inputs/radio-button/base-ui/StyledRadio.module.js +7 -6
- package/dist/components/inputs/radio-button/base-ui/StyledRadioGroup.js +37 -24
- package/dist/components/inputs/search-field/StyledSearchField.js +49 -43
- package/dist/components/inputs/select/StyledSelect.js +170 -45
- package/dist/components/inputs/select/StyledSelectItem.js +19 -23
- package/dist/components/inputs/select-autocomplete/StyledSelectAutocomplete.js +228 -150
- package/dist/components/inputs/slider/StyledSlider.js +100 -52
- package/dist/components/inputs/slider/StyledSlider.module.js +10 -0
- package/dist/components/inputs/switch/base-ui/StyledSwitch.js +45 -38
- package/dist/components/inputs/switch/base-ui/StyledSwitch.module.js +4 -4
- package/dist/components/inputs/textarea/StyledTextarea.js +44 -43
- package/dist/components/inputs/textarea/StyledTextarea.module.js +1 -1
- package/dist/components/miscellaneous/FormControlContext.js +6 -0
- package/dist/components/miscellaneous/StyledFormControl.js +42 -21
- package/dist/components/miscellaneous/StyledFormControlLabel.js +29 -15
- package/dist/components/miscellaneous/StyledFormGroup.js +16 -4
- package/dist/components/miscellaneous/StyledFormHelperText.js +12 -4
- package/dist/components/miscellaneous/StyledInputLabel.js +20 -4
- package/dist/components/mui-compat/Avatar.js +34 -0
- package/dist/components/mui-compat/ClickAwayListener.js +42 -0
- package/dist/components/mui-compat/Container.js +24 -0
- package/dist/components/mui-compat/Fade.js +29 -0
- package/dist/components/mui-compat/Fade.module.js +9 -0
- package/dist/components/mui-compat/FormLabel.js +22 -0
- package/dist/components/mui-compat/Paper.js +44 -0
- package/dist/components/mui-compat/Popper.js +35 -0
- package/dist/components/mui-compat/Skeleton.js +27 -0
- package/dist/components/mui-compat/Stack.js +24 -0
- package/dist/components/navigation/drawer/StyledDrawer.js +45 -4
- package/dist/components/navigation/link/StyledLink.module.js +5 -5
- package/dist/components/navigation/listbox/Listbox.js +7 -7
- package/dist/components/navigation/menu/StyledMenu.js +28 -11
- package/dist/components/navigation/menu/StyledMenuItem.js +21 -19
- package/dist/components/navigation/menu/StyledMenuList.js +34 -4
- package/dist/components/navigation/tabs/StyledTab.js +28 -13
- package/dist/components/navigation/tabs/StyledTabs.js +115 -66
- package/dist/components/navigation/tabs/TabsContext.js +6 -0
- package/dist/components/utils/accordion/base-ui/AccordionContext.js +10 -0
- package/dist/components/utils/accordion/base-ui/StyledAccordion.js +28 -21
- package/dist/components/utils/accordion/base-ui/StyledAccordion.module.js +7 -7
- package/dist/components/utils/accordion/base-ui/StyledAccordionDetails.js +28 -14
- package/dist/components/utils/accordion/base-ui/StyledAccordionSummary.js +34 -27
- package/dist/components/utils/copy-wrapper/CopyButton.js +8 -7
- package/dist/components/utils/copy-wrapper/CopyWrapper.js +23 -20
- package/dist/components/utils/filter-menu/StyledFilterButton.js +14 -13
- package/dist/components/utils/filter-menu/StyledFilterMenu.js +16 -15
- package/dist/components/utils/popover/StyledPopover.js +51 -15
- package/dist/components/utils/virtual-list/VirtualList.js +46 -0
- package/dist/datetime/components/date-picker/StyledDatePicker.js +17 -17
- package/dist/datetime/components/date-picker/components/BaseDatePickerInput.js +98 -99
- package/dist/datetime/components/date-picker/components/DatePickerButton.js +11 -9
- package/dist/datetime/components/date-picker/components/StyledCalendarPicker.js +11 -11
- package/dist/datetime/components/date-picker/components/StyledCalendarPicker.module.js +20 -20
- package/dist/datetime/components/date-picker/components/StyledCalendarPickerCaption.js +8 -7
- package/dist/datetime/components/date-picker/components/StyledCalendarPickerFooter.js +13 -14
- package/dist/datetime/components/date-picker/components/StyledCalendarPickerSelectMonth.js +17 -24
- package/dist/datetime/components/date-picker/components/StyledCalendarPickerSelectYear.js +7 -8
- package/dist/datetime/components/date-picker/components/StyledDayPicker.js +4 -5
- package/dist/datetime/components/date-picker/helpers.js +7 -7
- package/dist/datetime/components/date-picker/hooks/useDatePickerMask.js +3 -7
- package/dist/datetime/components/time-picker/StyledTimePicker.js +25 -25
- package/dist/datetime/components/time-picker/StyledTimePicker.module.js +6 -6
- package/dist/datetime/components/time-picker/TimePickerInput.js +56 -50
- package/dist/datetime/components/time-picker/TimePickerPopper.js +22 -19
- package/dist/datetime/components/time-picker/components/TimePickerColumn.js +12 -12
- package/dist/datetime/components/time-picker/helpers/getTimeFromValue.js +3 -3
- package/dist/datetime/helpers/cn.js +4 -5
- package/dist/datetime/hooks/useWindowWidthSize.hook.js +1 -1
- package/dist/helpers/arrays.js +4 -0
- package/dist/helpers/classOverride.js +12 -0
- package/dist/helpers/cn.js +4 -5
- package/dist/helpers/inputMask.js +58 -0
- package/dist/helpers/sx.js +46 -0
- package/dist/hooks/useFocusTrap.hook.js +34 -0
- package/dist/hooks/useTopLayer.hook.js +25 -0
- package/dist/index.js +185 -175
- package/dist/src/api-surface.test.d.ts +1 -0
- package/dist/src/components/custom/module/header-layout/DynamicToolbar.d.ts +10 -0
- package/dist/src/components/custom/module/module-title/StyledModuleTitle.d.ts +4 -0
- package/dist/src/components/custom/widget/widget/StyledWidget.d.ts +8 -0
- package/dist/src/components/custom/widget/widget-header/StyledWidgetHeader.d.ts +4 -0
- package/dist/src/components/custom/widget/widget-title/StyledWidgetTitle.d.ts +4 -0
- package/dist/src/components/data-display/ai-disclosure/StyledAIDisclosure.d.ts +7 -0
- package/dist/src/components/data-display/badge/StyledBadge.d.ts +40 -2
- package/dist/src/components/data-display/chip/StyledChip.d.ts +74 -5
- package/dist/src/components/data-display/chip/chipPadding.d.ts +3 -0
- package/dist/src/components/data-display/form-label/types.d.ts +11 -0
- package/dist/src/components/data-display/interactive-chip/StyledInteractiveChip.d.ts +22 -4
- package/dist/src/components/data-display/tooltip/StyledTooltip.d.ts +43 -1
- package/dist/src/components/data-display/typography/StyledTypography.d.ts +32 -1
- package/dist/src/components/feedback/dialog/StyledDialog.d.ts +60 -4
- package/dist/src/components/feedback/dialog/StyledDialogActions.d.ts +12 -2
- package/dist/src/components/feedback/dialog/StyledDialogContent.d.ts +12 -2
- package/dist/src/components/feedback/dialog/StyledDialogTitle.d.ts +10 -2
- package/dist/src/components/feedback/empty-page/StyledEmptyPage.d.ts +6 -0
- package/dist/src/components/feedback/filtered-empty-state/StyledFilteredEmptyState.d.ts +7 -0
- package/dist/src/components/feedback/loading/StyledLoading.d.ts +9 -0
- package/dist/src/components/feedback/minimizable-dialog/v2/types.d.ts +13 -0
- package/dist/src/components/feedback/minimizable-dialog/v2/useControlledProps.d.ts +4 -2
- package/dist/src/components/feedback/minimizable-dialog/v2/useTranslations.d.ts +17 -12
- package/dist/src/components/feedback/snack-bar/SnackbarProvider.d.ts +1 -1
- package/dist/src/components/feedback/snack-bar/StyledAlert.d.ts +41 -2
- package/dist/src/components/feedback/snack-bar/StyledAlertSnackbar.d.ts +1 -1
- package/dist/src/components/feedback/snack-bar/StyledSnackbar.d.ts +25 -2
- package/dist/src/components/feedback/snack-bar/components/StyledDefaultSnackbar.d.ts +10 -1
- package/dist/src/components/feedback/snack-bar/components/StyledInfoSnackbar.d.ts +1 -1
- package/dist/src/components/feedback/snack-bar/components/types.d.ts +1 -1
- package/dist/src/components/inputs/button/StyledButton.d.ts +15 -1
- package/dist/src/components/inputs/checkbox/base-ui/StyledCheckbox.d.ts +33 -4
- package/dist/src/components/inputs/dynamic-select/StyledDynamicSelect.d.ts +16 -0
- package/dist/src/components/inputs/dynamic-select/types.d.ts +25 -14
- package/dist/src/components/inputs/field-styles.d.ts +27 -0
- package/dist/src/components/inputs/input-field/StyledInputField.d.ts +85 -10
- package/dist/src/components/inputs/input-field/index.d.ts +1 -1
- package/dist/src/components/inputs/label/StyledLabel.d.ts +13 -0
- package/dist/src/components/inputs/radio-button/base-ui/RadioGroupContext.d.ts +10 -0
- package/dist/src/components/inputs/radio-button/base-ui/StyledRadio.d.ts +60 -5
- package/dist/src/components/inputs/radio-button/base-ui/StyledRadioGroup.d.ts +30 -7
- package/dist/src/components/inputs/search-field/StyledSearchField.d.ts +9 -1
- package/dist/src/components/inputs/select/StyledSelect.d.ts +70 -16
- package/dist/src/components/inputs/select/StyledSelectItem.d.ts +14 -2
- package/dist/src/components/inputs/select/index.d.ts +0 -1
- package/dist/src/components/inputs/select-autocomplete/StyledSelectAutocomplete.d.ts +120 -17
- package/dist/src/components/inputs/slider/StyledSlider.d.ts +66 -3
- package/dist/src/components/inputs/switch/base-ui/StyledSwitch.d.ts +44 -4
- package/dist/src/components/inputs/textarea/StyledTextarea.d.ts +19 -0
- package/dist/src/components/miscellaneous/FormControlContext.d.ts +14 -0
- package/dist/src/components/miscellaneous/StyledFormControl.d.ts +27 -2
- package/dist/src/components/miscellaneous/StyledFormControlLabel.d.ts +21 -2
- package/dist/src/components/miscellaneous/StyledFormGroup.d.ts +11 -2
- package/dist/src/components/miscellaneous/StyledFormHelperText.d.ts +12 -2
- package/dist/src/components/miscellaneous/StyledInputLabel.d.ts +20 -2
- package/dist/src/components/mui-compat/Avatar.d.ts +6 -0
- package/dist/src/components/mui-compat/ClickAwayListener.d.ts +19 -0
- package/dist/src/components/mui-compat/Container.d.ts +6 -0
- package/dist/src/components/mui-compat/Fade.d.ts +21 -0
- package/dist/src/components/mui-compat/FormLabel.d.ts +6 -0
- package/dist/src/components/mui-compat/Paper.d.ts +6 -0
- package/dist/src/components/mui-compat/Popper.d.ts +29 -0
- package/dist/src/components/mui-compat/Skeleton.d.ts +7 -0
- package/dist/src/components/mui-compat/Stack.d.ts +7 -0
- package/dist/src/components/mui-compat/index.d.ts +9 -0
- package/dist/src/components/mui-compat/types.d.ts +46 -0
- package/dist/src/components/navigation/drawer/StyledDrawer.d.ts +33 -2
- package/dist/src/components/navigation/link/StyledLink.d.ts +13 -0
- package/dist/src/components/navigation/menu/StyledMenu.d.ts +33 -2
- package/dist/src/components/navigation/menu/StyledMenuItem.d.ts +35 -2
- package/dist/src/components/navigation/menu/StyledMenuList.d.ts +16 -2
- package/dist/src/components/navigation/menu/index.d.ts +0 -1
- package/dist/src/components/navigation/tabs/StyledTab.d.ts +27 -3
- package/dist/src/components/navigation/tabs/StyledTabs.d.ts +22 -7
- package/dist/src/components/navigation/tabs/TabsContext.d.ts +11 -0
- package/dist/src/components/utils/accordion/base-ui/AccordionContext.d.ts +10 -0
- package/dist/src/components/utils/accordion/base-ui/StyledAccordion.d.ts +9 -3
- package/dist/src/components/utils/accordion/base-ui/StyledAccordionDetails.d.ts +5 -0
- package/dist/src/components/utils/accordion/base-ui/StyledAccordionSummary.d.ts +16 -4
- package/dist/src/components/utils/copy-wrapper/CopyWrapper.d.ts +6 -1
- package/dist/src/components/utils/filter-menu/StyledFilterButton.d.ts +4 -0
- package/dist/src/components/utils/filter-menu/StyledFilterMenu.d.ts +8 -2
- package/dist/src/components/utils/popover/StyledPopover.d.ts +39 -2
- package/dist/src/components/utils/virtual-list/VirtualList.d.ts +32 -0
- package/dist/src/components/utils/virtual-list/index.d.ts +1 -0
- package/dist/src/datetime/components/date-picker/StyledDatePicker.d.ts +11 -0
- package/dist/src/datetime/components/date-picker/components/DatePickerButton.d.ts +2 -0
- package/dist/src/datetime/components/date-picker/components/StyledCalendarPicker.d.ts +1 -1
- package/dist/src/datetime/components/date-picker/components/StyledDayPicker.d.ts +1 -1
- package/dist/src/datetime/components/date-picker/hooks/useDatePickerMask.d.ts +1 -2
- package/dist/src/datetime/components/date-picker/hooks/useDatePickerValidation.d.ts +7 -5
- package/dist/src/datetime/components/time-picker/StyledTimePicker.d.ts +10 -0
- package/dist/src/datetime/components/time-picker/TimePickerInput.d.ts +1 -1
- package/dist/src/datetime/components/time-picker/TimePickerPopper.d.ts +1 -1
- package/dist/src/datetime/components/time-picker/types.d.ts +1 -2
- package/dist/src/datetime/hooks/useToggleMenuVisibility.hook.d.ts +6 -4
- package/dist/src/datetime/shared-components/StyledFormControl.d.ts +1 -2
- package/dist/src/datetime/shared-components/StyledInputField.d.ts +1 -12
- package/dist/src/datetime/shared-components/StyledSelect.d.ts +1 -16
- package/dist/src/datetime/shared-components/StyledSelectItem.d.ts +1 -2
- package/dist/src/datetime/shared-components/StyledTooltip.d.ts +1 -2
- package/dist/src/helpers/applyImportantPadding.d.ts +8 -0
- package/dist/src/helpers/arrays.d.ts +2 -0
- package/dist/src/helpers/arrays.test.d.ts +1 -0
- package/dist/src/helpers/classOverride.d.ts +21 -0
- package/dist/src/helpers/classOverride.test.d.ts +1 -0
- package/dist/src/helpers/inputMask.d.ts +40 -0
- package/dist/src/helpers/inputMask.test.d.ts +1 -0
- package/dist/src/helpers/sx.d.ts +2 -0
- package/dist/src/helpers/sx.test.d.ts +1 -0
- package/dist/src/hooks/useFocusTrap.hook.d.ts +10 -0
- package/dist/src/hooks/useTopLayer.hook.d.ts +49 -0
- package/dist/src/index.d.ts +2 -1
- package/dist/src/table/components/columns/helpers/useElementHeightPx.d.ts +6 -3
- package/dist/src/table/components/columns/helpers/useProxyHorizontalScrollSync.d.ts +9 -6
- package/dist/src/table/hooks/useToggleMenuVisibility.hook.d.ts +6 -4
- package/dist/src/table/hooks/useTranslations.d.ts +15 -8
- package/dist/src/table/shared-components/StyledCheckbox.d.ts +7 -4
- package/dist/src/table/shared-components/StyledMenuItem.d.ts +18 -2
- package/dist/src/table/shared-components/menu-item/index.d.ts +13 -2
- package/dist/src/table/shared-components/tooltip/index.d.ts +5 -1
- package/dist/src/table/types.d.ts +1 -1
- package/dist/table/components/Fetching.js +4 -4
- package/dist/table/components/StyledTable.module.js +48 -48
- package/dist/table/components/TableRow.js +7 -7
- package/dist/table/components/TableSkeleton.js +6 -6
- package/dist/table/components/columns/action-column/actionColumn.js +14 -11
- package/dist/table/components/columns/action-column/components/HeaderActionMenu.js +52 -49
- package/dist/table/components/columns/action-column/components/RowActionMenu.js +40 -36
- package/dist/table/components/columns/expandColumn.js +12 -9
- package/dist/table/components/table-footer/TablePagination.js +28 -25
- package/dist/table/components/table-footer/TableRowCountSelect.js +31 -28
- package/dist/table/components/table-header/TableHeaderCell.js +54 -45
- package/dist/table/custom-features/focus-rows/FocusRowsFeature.js +29 -25
- package/dist/table/helpers/cn.js +4 -5
- package/dist/table/hooks/useColumnVirtualizer.js +1 -1
- package/dist/table/hooks/usePersistedPageSize.js +6 -6
- package/dist/table/hooks/useTranslations.js +6 -4
- package/dist/table/hooks/useWindowWidthSize.hook.js +1 -1
- package/dist/table/shared-components/StyledCheckbox.js +54 -55
- package/dist/table/shared-components/StyledCheckbox.module.js +9 -9
- package/dist/table/shared-components/StyledMenuItem.js +14 -17
- package/dist/table/shared-components/button/StyledButton.module.js +8 -8
- package/dist/table/shared-components/menu-item/index.js +15 -16
- package/dist/table/shared-components/tooltip/index.js +4 -23
- package/package.json +9 -18
- package/src/styles/components-colors/inputVariables.css +59 -57
- package/src/styles/index.css +38 -0
- package/dist/components/feedback/dialog/StyledDialogActions.module.js +0 -8
- package/dist/components/feedback/dialog/StyledDialogContent.module.js +0 -4
- package/dist/components/feedback/dialog/StyledDialogTitle.module.js +0 -4
- package/dist/components/icons/arrow-expand/ArrowExpand.js +0 -18
- package/dist/components/icons/arrow-expand/index.js +0 -1
- package/dist/components/icons/arrow-shrink/ArrowShrink.js +0 -18
- package/dist/components/icons/arrow-shrink/index.js +0 -1
- package/dist/components/inputs/checkbox/StyledCheckbox.js +0 -20
- package/dist/components/inputs/radio-button/StyledRadio.js +0 -17
- package/dist/datetime/components/date-picker/components/HelperTextWithTooltip.js +0 -39
- package/dist/datetime/shared-components/ExpandIcon.js +0 -18
- package/dist/datetime/shared-components/StyledFormControl.js +0 -23
- package/dist/datetime/shared-components/StyledInputField.js +0 -47
- package/dist/datetime/shared-components/StyledSelect.js +0 -47
- package/dist/datetime/shared-components/StyledSelectItem.js +0 -13
- package/dist/datetime/shared-components/StyledTooltip.js +0 -32
- package/dist/src/components/icons/arrow-expand/ArrowExpand.d.ts +0 -2
- package/dist/src/components/icons/arrow-expand/index.d.ts +0 -1
- package/dist/src/components/icons/arrow-shrink/ArrowShrink.d.ts +0 -2
- package/dist/src/components/icons/arrow-shrink/index.d.ts +0 -1
- package/dist/src/components/inputs/checkbox/StyledCheckbox.d.ts +0 -4
- package/dist/src/components/inputs/radio-button/StyledRadio.d.ts +0 -4
- package/dist/src/components/inputs/radio-button/StyledRadioGroup.d.ts +0 -4
- package/dist/src/components/inputs/switch/StyledSwitch.d.ts +0 -5
- package/dist/src/components/utils/accordion/StyledAccordion.d.ts +0 -2
- package/dist/src/components/utils/accordion/StyledAccordionDetails.d.ts +0 -2
- package/dist/src/components/utils/accordion/StyledAccordionSummary.d.ts +0 -8
- package/dist/src/datetime/components/date-picker/components/HelperTextWithTooltip.d.ts +0 -5
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { cn as
|
|
2
|
-
import { DotsVerticalIcon as
|
|
3
|
-
import { LoadingIcon as
|
|
4
|
-
import { CloseIcon as
|
|
5
|
-
import { MinimizeIcon as
|
|
6
|
-
import { KeyboardCapslockIcon as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
var
|
|
20
|
-
const [d,
|
|
21
|
-
if (!
|
|
22
|
-
const
|
|
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,
|
|
31
|
-
|
|
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__ */
|
|
34
|
-
|
|
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:
|
|
38
|
-
children: /* @__PURE__ */
|
|
39
|
-
className:
|
|
40
|
-
"data-testid":
|
|
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:
|
|
44
|
-
}), /* @__PURE__ */
|
|
43
|
+
children: s
|
|
44
|
+
}), /* @__PURE__ */ i("div", {
|
|
45
45
|
className: "flex items-center gap-x-1",
|
|
46
|
-
children: [
|
|
47
|
-
title:
|
|
48
|
-
children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
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:
|
|
53
|
-
endIcon: /* @__PURE__ */ e(
|
|
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:
|
|
59
|
+
children: I
|
|
59
60
|
}) })
|
|
60
|
-
}),
|
|
61
|
-
title:
|
|
62
|
-
children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
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:
|
|
67
|
-
endIcon: /* @__PURE__ */ e(
|
|
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:
|
|
74
|
+
children: u
|
|
73
75
|
}) })
|
|
74
76
|
})]
|
|
75
77
|
})]
|
|
76
78
|
})
|
|
77
79
|
}),
|
|
78
|
-
/* @__PURE__ */
|
|
80
|
+
/* @__PURE__ */ i("div", {
|
|
81
|
+
ref: S,
|
|
79
82
|
style: le,
|
|
80
|
-
|
|
81
|
-
"
|
|
82
|
-
|
|
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__ */
|
|
90
|
+
children: [/* @__PURE__ */ i("div", {
|
|
85
91
|
className: "flex items-center justify-between",
|
|
86
|
-
children: [
|
|
92
|
+
children: [b ? /* @__PURE__ */ e("div", {
|
|
87
93
|
className: "text-sm text-delta-700",
|
|
88
|
-
children:
|
|
94
|
+
children: b
|
|
89
95
|
}) : /* @__PURE__ */ e("div", {
|
|
90
96
|
className: "text-2xl font-semibold text-delta-800",
|
|
91
|
-
children:
|
|
92
|
-
}), /* @__PURE__ */
|
|
97
|
+
children: s
|
|
98
|
+
}), /* @__PURE__ */ i("div", {
|
|
93
99
|
className: "flex items-center gap-x-1",
|
|
94
100
|
children: [
|
|
95
101
|
X,
|
|
96
|
-
|
|
97
|
-
title:
|
|
98
|
-
children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
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:
|
|
103
|
-
endIcon: /* @__PURE__ */ e(
|
|
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:
|
|
115
|
+
children: N
|
|
109
116
|
}) })
|
|
110
117
|
}),
|
|
111
|
-
Z &&
|
|
112
|
-
title:
|
|
113
|
-
children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
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: (
|
|
118
|
-
|
|
125
|
+
onClick: (n) => {
|
|
126
|
+
E !== void 0 && L ? L() : P(!R), n.detail !== 0 && n.currentTarget.blur();
|
|
119
127
|
},
|
|
120
|
-
endIcon:
|
|
128
|
+
endIcon: o ? /* @__PURE__ */ e(oe, {
|
|
121
129
|
width: 20,
|
|
122
130
|
height: 20,
|
|
123
131
|
color: "text-delta-700"
|
|
124
|
-
}) : /* @__PURE__ */ e(
|
|
132
|
+
}) : /* @__PURE__ */ e(ne, {
|
|
125
133
|
width: 20,
|
|
126
134
|
height: 20,
|
|
127
135
|
color: "text-delta-700"
|
|
128
136
|
}),
|
|
129
|
-
children:
|
|
137
|
+
children: M
|
|
130
138
|
}) })
|
|
131
139
|
}),
|
|
132
|
-
|
|
133
|
-
title:
|
|
134
|
-
children: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
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:
|
|
139
|
-
endIcon: /* @__PURE__ */ e(
|
|
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:
|
|
153
|
+
children: u
|
|
145
154
|
}) })
|
|
146
155
|
})
|
|
147
156
|
]
|
|
148
157
|
})]
|
|
149
|
-
}),
|
|
158
|
+
}), b && /* @__PURE__ */ e("div", {
|
|
150
159
|
className: "truncate text-2xl font-semibold text-delta-800",
|
|
151
|
-
children:
|
|
160
|
+
children: s
|
|
152
161
|
})]
|
|
153
|
-
}), /* @__PURE__ */
|
|
154
|
-
className:
|
|
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
|
|
158
|
-
}), (
|
|
159
|
-
className:
|
|
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
|
-
|
|
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(
|
|
173
|
+
startIcon: /* @__PURE__ */ e(re, {
|
|
165
174
|
width: 24,
|
|
166
175
|
height: 24
|
|
167
176
|
}),
|
|
168
|
-
onClick:
|
|
169
|
-
children:
|
|
170
|
-
}), /* @__PURE__ */ e(
|
|
177
|
+
onClick: ie,
|
|
178
|
+
children: m
|
|
179
|
+
}), /* @__PURE__ */ e(ce, {
|
|
171
180
|
open: B,
|
|
172
181
|
anchorEl: ee,
|
|
173
|
-
onClose:
|
|
174
|
-
children:
|
|
175
|
-
className:
|
|
176
|
-
onClick:
|
|
177
|
-
children:
|
|
178
|
-
},
|
|
179
|
-
})] }) :
|
|
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:
|
|
183
|
-
children:
|
|
191
|
+
onClick: r,
|
|
192
|
+
children: m
|
|
184
193
|
}),
|
|
185
194
|
" ",
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
className:
|
|
189
|
-
children: [
|
|
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:
|
|
193
|
-
children:
|
|
194
|
-
}),
|
|
201
|
+
onClick: p,
|
|
202
|
+
children: c
|
|
203
|
+
}), y && v && /* @__PURE__ */ e(t, {
|
|
195
204
|
dataTest: "save-button",
|
|
196
|
-
startIcon:
|
|
205
|
+
startIcon: k && /* @__PURE__ */ e($, {
|
|
197
206
|
width: 24,
|
|
198
207
|
height: 24
|
|
199
208
|
}),
|
|
200
|
-
onClick:
|
|
201
|
-
children:
|
|
209
|
+
onClick: v,
|
|
210
|
+
children: w
|
|
202
211
|
})]
|
|
203
212
|
}) : null
|
|
204
213
|
]
|
|
205
|
-
}) : /* @__PURE__ */ e(z, { children:
|
|
206
|
-
className:
|
|
207
|
-
children: [
|
|
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:
|
|
211
|
-
children:
|
|
212
|
-
}),
|
|
219
|
+
onClick: p,
|
|
220
|
+
children: c
|
|
221
|
+
}), y && v && /* @__PURE__ */ e(t, {
|
|
213
222
|
dataTest: "save-button",
|
|
214
|
-
startIcon:
|
|
223
|
+
startIcon: k && /* @__PURE__ */ e($, {
|
|
215
224
|
width: 24,
|
|
216
225
|
height: 24
|
|
217
226
|
}),
|
|
218
|
-
onClick:
|
|
219
|
-
children:
|
|
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
|
-
|
|
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
|
|
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:
|
|
7
|
-
title:
|
|
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(
|
|
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:
|
|
14
|
+
onClick: o,
|
|
14
15
|
endIcon: /* @__PURE__ */ t(l, {
|
|
15
16
|
height: 20,
|
|
16
17
|
width: 20,
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { jsx as
|
|
6
|
-
var x = ({ fullScreen:
|
|
7
|
-
title:
|
|
8
|
-
children: /* @__PURE__ */
|
|
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: (
|
|
13
|
-
|
|
13
|
+
onClick: (e) => {
|
|
14
|
+
i(), e.detail !== 0 && e.currentTarget.blur();
|
|
14
15
|
},
|
|
15
|
-
endIcon:
|
|
16
|
+
endIcon: o ? /* @__PURE__ */ r(a, {
|
|
16
17
|
width: 20,
|
|
17
18
|
height: 20,
|
|
18
19
|
color: "text-delta-700"
|
|
19
|
-
}) : /* @__PURE__ */
|
|
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
|
|
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
|
|
5
|
-
import { jsx as
|
|
6
|
-
var g = ({ visibility: l, tooltipTitle:
|
|
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",
|
|
9
|
-
return m ? /* @__PURE__ */
|
|
10
|
-
title:
|
|
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__ */
|
|
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__ */
|
|
18
|
+
endIcon: /* @__PURE__ */ i(c, {
|
|
18
19
|
height: 20,
|
|
19
20
|
width: 20,
|
|
20
21
|
color: "text-gama-500"
|
|
21
22
|
})
|
|
22
23
|
}) })
|
|
23
|
-
}) }) :
|
|
24
|
-
title:
|
|
24
|
+
}) }) : o ? /* @__PURE__ */ i("div", { children: /* @__PURE__ */ i(r, {
|
|
25
|
+
title: t,
|
|
25
26
|
placement: "top",
|
|
26
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
33
|
+
endIcon: /* @__PURE__ */ i(d, {
|
|
32
34
|
height: 20,
|
|
33
35
|
width: 20,
|
|
34
36
|
color: "text-delta-700"
|