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,23 +1,26 @@
|
|
|
1
|
-
import { cn as
|
|
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 {
|
|
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
|
|
7
|
-
import
|
|
8
|
-
import { useTranslations as
|
|
9
|
-
import { useControlledProps as
|
|
10
|
-
import
|
|
11
|
-
import { useRef as
|
|
12
|
-
import { Fragment as
|
|
13
|
-
var
|
|
14
|
-
const { showCloseIcon:
|
|
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:
|
|
19
|
-
|
|
20
|
-
}
|
|
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
|
|
33
|
+
return h ? /* @__PURE__ */ t(E, { children: [
|
|
31
34
|
/* @__PURE__ */ e("div", {
|
|
32
35
|
style: {
|
|
33
36
|
zIndex: 51,
|
|
34
|
-
...
|
|
37
|
+
...v
|
|
35
38
|
},
|
|
36
|
-
className:
|
|
37
|
-
children: /* @__PURE__ */
|
|
38
|
-
className:
|
|
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:
|
|
46
|
+
title: o,
|
|
44
47
|
placement: "top",
|
|
45
48
|
children: /* @__PURE__ */ e("div", {
|
|
46
49
|
className: "truncate",
|
|
47
|
-
children:
|
|
50
|
+
children: o
|
|
48
51
|
})
|
|
49
52
|
})
|
|
50
|
-
}), /* @__PURE__ */
|
|
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:
|
|
57
|
+
visibility: w,
|
|
55
58
|
onClick: () => {
|
|
56
|
-
|
|
59
|
+
x(!i);
|
|
57
60
|
},
|
|
58
|
-
tooltipTitle:
|
|
59
|
-
}), /* @__PURE__ */ e(
|
|
60
|
-
showCloseIcon:
|
|
61
|
-
onClick:
|
|
62
|
-
tooltipTitle:
|
|
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
|
-
|
|
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
|
-
|
|
73
|
+
g(!1);
|
|
71
74
|
}
|
|
72
75
|
}),
|
|
73
|
-
/* @__PURE__ */
|
|
76
|
+
/* @__PURE__ */ t("div", {
|
|
74
77
|
style: {
|
|
75
78
|
zIndex: 51,
|
|
76
|
-
...
|
|
79
|
+
...v,
|
|
77
80
|
...I
|
|
78
81
|
},
|
|
79
|
-
ref:
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
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: [
|
|
91
|
+
children: [m ? /* @__PURE__ */ e("div", {
|
|
86
92
|
className: "text-sm text-delta-700",
|
|
87
|
-
children:
|
|
93
|
+
children: m
|
|
88
94
|
}) : /* @__PURE__ */ e("div", {
|
|
89
|
-
className:
|
|
90
|
-
children:
|
|
91
|
-
}), /* @__PURE__ */
|
|
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:
|
|
102
|
+
visibility: N && !s,
|
|
97
103
|
type: "minimize",
|
|
98
104
|
onClick: () => {
|
|
99
|
-
|
|
105
|
+
x(!i);
|
|
100
106
|
},
|
|
101
|
-
tooltipTitle:
|
|
107
|
+
tooltipTitle: n.minimize
|
|
102
108
|
}),
|
|
103
|
-
/* @__PURE__ */ e(
|
|
104
|
-
showFullScreenIcon:
|
|
105
|
-
fullScreen:
|
|
109
|
+
/* @__PURE__ */ e(R, {
|
|
110
|
+
showFullScreenIcon: C && !s,
|
|
111
|
+
fullScreen: a,
|
|
106
112
|
onClick: () => {
|
|
107
|
-
|
|
113
|
+
g(!a);
|
|
108
114
|
},
|
|
109
|
-
tooltipTitle:
|
|
115
|
+
tooltipTitle: a ? n.exitFullscreen : n.fullscreen
|
|
110
116
|
}),
|
|
111
|
-
/* @__PURE__ */ e(
|
|
112
|
-
showCloseIcon:
|
|
113
|
-
onClick:
|
|
114
|
-
tooltipTitle:
|
|
117
|
+
/* @__PURE__ */ e(y, {
|
|
118
|
+
showCloseIcon: u,
|
|
119
|
+
onClick: p,
|
|
120
|
+
tooltipTitle: n.close
|
|
115
121
|
})
|
|
116
122
|
]
|
|
117
123
|
})]
|
|
118
|
-
}),
|
|
119
|
-
className:
|
|
120
|
-
children:
|
|
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:
|
|
124
|
-
children:
|
|
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
|
-
|
|
136
|
+
ee as MinimizableDialogV2
|
|
131
137
|
};
|
|
@@ -1,17 +1,98 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
|
|
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
|
-
|
|
97
|
+
D as StyledAlert
|
|
17
98
|
};
|
|
@@ -1,10 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
|
|
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
|
|
5
|
-
import { InfoOutlineIcon as
|
|
6
|
-
import { WarningAmberOutlineIcon as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { forwardRef as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
|
|
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__ */
|
|
17
|
+
error: /* @__PURE__ */ e(b, {
|
|
19
18
|
height: 24,
|
|
20
19
|
width: 24
|
|
21
20
|
}),
|
|
22
|
-
success: /* @__PURE__ */
|
|
21
|
+
success: /* @__PURE__ */ e(u, {
|
|
23
22
|
height: 24,
|
|
24
23
|
width: 24
|
|
25
24
|
}),
|
|
26
|
-
warning: /* @__PURE__ */
|
|
25
|
+
warning: /* @__PURE__ */ e(v, {
|
|
27
26
|
height: 24,
|
|
28
27
|
width: 24
|
|
29
28
|
})
|
|
30
|
-
},
|
|
31
|
-
const { id: a, message:
|
|
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:
|
|
38
|
-
return /* @__PURE__ */
|
|
36
|
+
]), { closeSnackbar: h } = k();
|
|
37
|
+
return /* @__PURE__ */ e(S, {
|
|
39
38
|
ref: l,
|
|
40
39
|
role: "alert",
|
|
41
|
-
...
|
|
40
|
+
...d,
|
|
42
41
|
children: /* @__PURE__ */ n("div", {
|
|
43
|
-
className:
|
|
42
|
+
className: o(r.container, r[t]),
|
|
44
43
|
children: [
|
|
45
44
|
/* @__PURE__ */ n("div", {
|
|
46
|
-
className:
|
|
45
|
+
className: r.header,
|
|
47
46
|
children: [/* @__PURE__ */ n("div", {
|
|
48
|
-
className:
|
|
49
|
-
children: [
|
|
50
|
-
}), /* @__PURE__ */
|
|
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
|
-
|
|
53
|
-
|
|
54
|
-
|
|
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__ */
|
|
63
|
-
className:
|
|
64
|
-
children:
|
|
61
|
+
/* @__PURE__ */ e("div", {
|
|
62
|
+
className: o(r.message, r[`message_${t}`]),
|
|
63
|
+
children: s
|
|
65
64
|
}),
|
|
66
|
-
|
|
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
|
-
|
|
71
|
+
R as StyledDefaultSnackbar
|
|
73
72
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
var
|
|
2
|
-
container:
|
|
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:
|
|
7
|
-
error:
|
|
8
|
-
success:
|
|
9
|
-
warning:
|
|
10
|
-
title_info:
|
|
11
|
-
title_error:
|
|
12
|
-
title_success:
|
|
13
|
-
title_warning:
|
|
14
|
-
message_info:
|
|
15
|
-
message_error:
|
|
16
|
-
message_success:
|
|
17
|
-
message_warning:
|
|
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
|
-
|
|
20
|
+
d as default
|
|
21
21
|
};
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
function
|
|
3
|
-
return /* @__PURE__ */
|
|
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
|
-
...
|
|
9
|
-
children:
|
|
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
|
-
|
|
17
|
+
i as CheckIcon
|
|
17
18
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import t from "./StyledButton.module.js";
|
|
2
|
-
import
|
|
2
|
+
import f from "clsx";
|
|
3
3
|
import "react";
|
|
4
|
-
import { jsx as
|
|
5
|
-
var
|
|
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
|
-
},
|
|
17
|
-
const
|
|
18
|
-
return /* @__PURE__ */
|
|
19
|
-
...
|
|
20
|
-
className:
|
|
21
|
-
|
|
22
|
-
|
|
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
|
-
|
|
25
|
-
|
|
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:
|
|
34
|
-
paddingLeft:
|
|
35
|
-
paddingRight:
|
|
37
|
+
gap: r ? "8px" : "4px",
|
|
38
|
+
paddingLeft: r ? "8px" : "4px",
|
|
39
|
+
paddingRight: r ? "8px" : "4px"
|
|
36
40
|
},
|
|
37
|
-
children:
|
|
41
|
+
children: o
|
|
38
42
|
}),
|
|
39
|
-
|
|
43
|
+
s
|
|
40
44
|
]
|
|
41
45
|
});
|
|
42
46
|
};
|
|
43
47
|
export {
|
|
44
|
-
|
|
48
|
+
B as StyledButton
|
|
45
49
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
var _ = "
|
|
2
|
-
"asma-ui-core-button": "_asma-ui-core-
|
|
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:
|
|
9
|
-
outlined:
|
|
10
|
-
text:
|
|
8
|
+
error: c,
|
|
9
|
+
outlined: o,
|
|
10
|
+
text: y,
|
|
11
11
|
textGray: m,
|
|
12
12
|
textWhite: l
|
|
13
13
|
};
|