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