@livestorm/ui-vue 2.0.5 → 4.0.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/README.md +9 -6
- package/components-vite.js +2 -2
- package/dist/UiButton-uyW8EHRJ.mjs +602 -0
- package/dist/UiTimelineItem-EiOEi1yF.mjs +7293 -0
- package/dist/UiTooltip-DZcPD6_N.mjs +158 -0
- package/dist/a11y-CaZxRWzo.mjs +6 -0
- package/dist/breakpoints.mjs +4 -9
- package/dist/bus.mjs +5 -5
- package/dist/components.mjs +236 -222
- package/dist/i18n-B8QOMuFD.mjs +46 -0
- package/dist/index.mjs +4 -87
- package/dist/integrations.mjs +3 -14
- package/dist/layouts.mjs +228 -236
- package/dist/responsive.mjs +31 -36
- package/dist/slot.mjs +11 -17
- package/dist/toastDSV2-D3xDZPe5.mjs +105 -0
- package/dist/types/index.d.ts +23 -1
- package/dist/types/src/components/Toast/ToastMessage.vue.d.ts +17 -7
- package/dist/types/src/components/Toast/toastDSV2.d.ts +89 -64
- package/dist/types/src/components/UiActionBar/UiActionBar.vue.d.ts +3 -1
- package/dist/types/src/components/UiActionBar/UiActionBarItem.vue.d.ts +18 -3
- package/dist/types/src/components/UiActionBar/types.d.ts +5 -1
- package/dist/types/src/components/UiAvatar/UiAvatar.vue.d.ts +4 -2
- package/dist/types/src/components/UiAvatarList/UiAvatarList.vue.d.ts +3 -2
- package/dist/types/src/components/UiBanner/UiBanner.vue.d.ts +13 -1
- package/dist/types/src/components/UiButton/UiButton.vue.d.ts +102 -38
- package/dist/types/src/components/UiButtonGroup/UiButtonGroup.vue.d.ts +8 -2
- package/dist/types/src/components/UiButtonGroup/UiButtonGroupItem.vue.d.ts +3 -0
- package/dist/types/src/components/UiButtonGroup/types.d.ts +5 -1
- package/dist/types/src/components/UiChoice/UiChoice.vue.d.ts +71 -0
- package/dist/types/src/components/UiChoice/index.d.ts +2 -0
- package/dist/types/src/components/UiChoice/types.d.ts +7 -0
- package/dist/types/src/components/UiColorField/UiColorField.vue.d.ts +1 -1
- package/dist/types/src/components/UiColorPicker/UiColorPicker.vue.d.ts +2 -2
- package/dist/types/src/components/UiCombobox/UiCombobox.types.d.ts +47 -0
- package/dist/types/src/components/UiCombobox/UiCombobox.vue.d.ts +40 -0
- package/dist/types/src/components/UiCombobox/index.d.ts +2 -0
- package/dist/types/src/components/UiDataTable/UiDataTable.types.d.ts +46 -0
- package/dist/types/src/components/UiDataTable/UiDataTable.vue.d.ts +136 -0
- package/dist/types/src/components/UiDataTable/index.d.ts +5 -0
- package/dist/types/src/components/UiDrawer/UiDrawer.vue.d.ts +28 -0
- package/dist/types/src/components/UiDrawer/UiDrawerContent.vue.d.ts +18 -0
- package/dist/types/src/components/UiDrawer/UiDrawerTrigger.vue.d.ts +14 -0
- package/dist/types/src/components/UiDropdown/DropdownItemCheckbox.vue.d.ts +3 -0
- package/dist/types/src/components/UiDropdown/UiDropdownContent.vue.d.ts +10 -0
- package/dist/types/src/components/UiDropdown/UiDropdownGroup.vue.d.ts +17 -0
- package/dist/types/src/components/UiDropdown/UiDropdownItem.vue.d.ts +9 -4
- package/dist/types/src/components/UiDropdown/UiDropdownTrigger.vue.d.ts +21 -5
- package/dist/types/src/components/UiDropdown/index.d.ts +1 -0
- package/dist/types/src/components/UiEmojiPickerList/UiEmojiPickerList.vue.d.ts +22 -0
- package/dist/types/src/components/UiEmptyState/UiEmptyState.vue.d.ts +8 -3
- package/dist/types/src/components/UiFieldWrapper/UiFieldWrapper.vue.d.ts +2 -2
- package/dist/types/src/components/UiInputCheckbox/CheckboxGlyph.vue.d.ts +17 -0
- package/dist/types/src/components/UiInputCheckbox/UiInputCheckbox.vue.d.ts +35 -4
- package/dist/types/src/components/UiInputEmoji/UiInputEmoji.vue.d.ts +45 -0
- package/dist/types/src/components/UiInputRadio/RadioGlyph.vue.d.ts +19 -0
- package/dist/types/src/components/UiInputRadio/UiInputRadio.vue.d.ts +80 -0
- package/dist/types/src/components/UiInputRadio/UiInputRadioGroup.vue.d.ts +86 -0
- package/dist/types/src/components/UiInputRadio/types.d.ts +19 -0
- package/dist/types/src/components/UiInputSelect/UiInputSelect.vue.d.ts +5 -5
- package/dist/types/src/components/UiInputTextarea/UiInputTextarea.vue.d.ts +5 -5
- package/dist/types/src/components/UiListItem/UiListItem.vue.d.ts +18 -4
- package/dist/types/src/components/UiLoader/UiLoader.vue.d.ts +6 -5
- package/dist/types/src/components/UiLoader/UiSpinnerIcon.vue.d.ts +3 -0
- package/dist/types/src/components/UiLogo/UiLogo.vue.d.ts +9 -3
- package/dist/types/src/components/UiMenu/UiMenuContent.vue.d.ts +15 -2
- package/dist/types/src/components/UiMenu/UiMenuItem.vue.d.ts +9 -3
- package/dist/types/src/components/UiNestedOptions/UiNestedOptions.vue.d.ts +13 -0
- package/dist/types/src/components/UiPage/UiPage.vue.d.ts +106 -8
- package/dist/types/src/components/UiPagination/UiPagination.vue.d.ts +36 -0
- package/dist/types/src/components/UiPagination/index.d.ts +2 -0
- package/dist/types/src/components/UiPagination/types.d.ts +4 -0
- package/dist/types/src/components/UiPane/UiPane.vue.d.ts +22 -0
- package/dist/types/src/components/UiPane/UiPaneContent.vue.d.ts +75 -0
- package/dist/types/src/components/UiPane/UiPaneTrigger.vue.d.ts +14 -0
- package/dist/types/src/components/UiPane/index.d.ts +5 -0
- package/dist/types/src/components/UiProgress/UiProgress.vue.d.ts +1 -1
- package/dist/types/src/components/UiRating/UiRating.vue.d.ts +62 -0
- package/dist/types/src/components/UiRating/types.d.ts +1 -0
- package/dist/types/src/components/UiRoomButton/UiRoomButton.vue.d.ts +5 -3
- package/dist/types/src/components/UiRoomCountdown/UiRoomCountdown.vue.d.ts +32 -0
- package/dist/types/src/components/UiShell/UiShell.vue.d.ts +3 -0
- package/dist/types/src/components/UiSideMenu/UiSideMenu.vue.d.ts +22 -1
- package/dist/types/src/components/UiSideMenu/UiSideMenuItemContent.vue.d.ts +2 -2
- package/dist/types/src/components/UiSwitch/UiSwitch.vue.d.ts +114 -0
- package/dist/types/src/components/UiSwitch/types.d.ts +3 -0
- package/dist/types/src/components/UiTable/UiTable.vue.d.ts +13 -4
- package/dist/types/src/components/UiTable/UiTableActionsCell.vue.d.ts +49 -0
- package/dist/types/src/components/UiTable/UiTableActionsHeaderCell.vue.d.ts +3 -0
- package/dist/types/src/components/UiTable/UiTableBody.vue.d.ts +11 -1
- package/dist/types/src/components/UiTable/UiTableCell.vue.d.ts +16 -1
- package/dist/types/src/components/UiTable/UiTableHeaderCell.vue.d.ts +31 -2
- package/dist/types/src/components/UiTable/UiTableRow.vue.d.ts +32 -2
- package/dist/types/src/components/UiTable/context.d.ts +3 -0
- package/dist/types/src/components/UiTable/index.d.ts +4 -0
- package/dist/types/src/components/UiTabs/UiTabs.vue.d.ts +8 -2
- package/dist/types/src/components/UiTag/UiTag.types.d.ts +25 -0
- package/dist/types/src/components/UiTag/UiTag.vue.d.ts +5 -26
- package/dist/types/src/components/UiTag/index.d.ts +2 -1
- package/dist/types/src/components/UiTextField/UiTextField.vue.d.ts +10 -5
- package/dist/types/src/components/UiTooltip/UiTooltipProvider.vue.d.ts +1 -0
- package/dist/types/src/components/UiTooltip/UiTooltipTrigger.vue.d.ts +2 -2
- package/dist/types/src/composables/storedThemingApplies.d.ts +17 -0
- package/dist/types/src/composables/useButtonStyles.d.ts +1 -0
- package/dist/types/src/composables/useChoiceboxSurface.d.ts +11 -0
- package/dist/types/src/composables/useContentMode.d.ts +23 -0
- package/dist/types/src/composables/useControlModes.d.ts +7 -0
- package/dist/types/src/composables/useControlShape.d.ts +24 -0
- package/dist/types/src/composables/useFieldFocusEvents.d.ts +12 -0
- package/dist/types/src/composables/useIconSize.d.ts +13 -0
- package/dist/types/src/composables/usePullGesture.d.ts +42 -0
- package/dist/types/src/composables/useThemeAndModes.d.ts +4 -0
- package/dist/types/src/constants/sizes.d.ts +1 -1
- package/dist/types/src/theming/colorScale.d.ts +165 -0
- package/dist/types/src/theming/legacyColorScale.d.ts +27 -0
- package/dist/types/src/theming/presetColors.d.ts +11 -0
- package/dist/types/src/theming/primitiveTokens.d.ts +2 -0
- package/dist/types/src/utils/effectiveOpacity.d.ts +2 -0
- package/dist/types/src/utils/numbers.d.ts +1 -2
- package/dist/types/src/utils/tokenColor.d.ts +2 -0
- package/dist/ui-vue.css +2 -1
- package/dist/utils.mjs +165 -194
- package/index.d.ts +22 -0
- package/index.js +44 -0
- package/package.json +28 -20
- package/src/components/Toast/LayoutToasts.vue +19 -11
- package/src/components/Toast/ToastMessage.vue +130 -73
- package/src/components/Toast/toastDSV2.ts +238 -67
- package/src/components/UiActionBar/UiActionBar.vue +15 -5
- package/src/components/UiActionBar/UiActionBarItem.vue +65 -38
- package/src/components/UiActionBar/types.ts +16 -1
- package/src/components/UiAvatar/UiAvatar.vue +9 -3
- package/src/components/UiAvatarList/UiAvatarList.vue +51 -20
- package/src/components/UiBadge/UiBadge.vue +1 -1
- package/src/components/UiBanner/UiBanner.vue +77 -27
- package/src/components/UiBreadcrumb/UiBreadcrumb.vue +1 -1
- package/src/components/UiButton/UiButton.vue +96 -29
- package/src/components/UiButtonGroup/UiButtonGroup.vue +22 -16
- package/src/components/UiButtonGroup/UiButtonGroupItem.vue +44 -14
- package/src/components/UiButtonGroup/types.ts +20 -1
- package/src/components/UiCard/UiCard.vue +20 -23
- package/src/components/UiCarousel/UiCarousel.vue +2 -2
- package/src/components/UiChoice/UiChoice.vue +187 -0
- package/src/components/UiChoice/index.ts +2 -0
- package/src/components/UiChoice/types.ts +11 -0
- package/src/components/UiColorField/UiColorField.vue +2 -2
- package/src/components/UiColorPicker/UiColorPicker.vue +16 -13
- package/src/components/UiCombobox/UiCombobox.types.ts +52 -0
- package/src/components/UiCombobox/UiCombobox.vue +296 -0
- package/src/components/UiCombobox/index.ts +2 -0
- package/src/components/UiDataTable/UiDataTable.types.ts +47 -0
- package/src/components/UiDataTable/UiDataTable.vue +422 -0
- package/src/components/UiDataTable/index.ts +12 -0
- package/src/components/UiDialog/UiDialogClose.vue +1 -1
- package/src/components/UiDialog/UiDialogContent.vue +22 -7
- package/src/components/UiDrawer/UiDrawer.vue +16 -0
- package/src/components/UiDrawer/UiDrawerContent.vue +42 -0
- package/src/components/UiDrawer/UiDrawerTrigger.vue +17 -0
- package/src/components/UiDropdown/DropdownItemCheckbox.vue +10 -0
- package/src/components/UiDropdown/UiDropdownContent.vue +32 -21
- package/src/components/UiDropdown/UiDropdownGroup.vue +23 -0
- package/src/components/UiDropdown/UiDropdownItem.vue +45 -18
- package/src/components/UiDropdown/UiDropdownSeparator.vue +1 -1
- package/src/components/UiDropdown/UiDropdownTrigger.vue +139 -45
- package/src/components/UiDropdown/index.ts +1 -0
- package/src/components/UiEmojiPickerList/UiEmojiPickerList.vue +122 -0
- package/src/components/UiEmptyState/UiEmptyState.vue +16 -4
- package/src/components/UiFieldWrapper/UiFieldWrapper.vue +10 -4
- package/src/components/UiHorizontalSeparator/UiHorizontalSeparator.vue +2 -2
- package/src/components/UiInputCheckbox/CheckboxGlyph.vue +78 -0
- package/src/components/UiInputCheckbox/UiInputCheckbox.vue +213 -177
- package/src/components/UiInputEmoji/UiInputEmoji.vue +96 -0
- package/src/components/UiInputRadio/RadioGlyph.vue +45 -0
- package/src/components/UiInputRadio/UiInputRadio.vue +382 -0
- package/src/components/UiInputRadio/UiInputRadioGroup.vue +166 -0
- package/src/components/UiInputRadio/types.ts +24 -0
- package/src/components/UiInputSelect/UiInputSelect.vue +9 -7
- package/src/components/UiInputTextarea/UiInputTextarea.vue +20 -35
- package/src/components/UiLabel/UiLabel.vue +1 -1
- package/src/components/UiListItem/UiListItem.vue +55 -9
- package/src/components/UiLoader/UiLoader.vue +11 -29
- package/src/components/UiLoader/UiSpinnerIcon.vue +21 -0
- package/src/components/UiLogo/UiLogo.vue +41 -7
- package/src/components/UiMenu/UiMenuContent.vue +24 -3
- package/src/components/UiMenu/UiMenuGroup.vue +1 -1
- package/src/components/UiMenu/UiMenuItem.vue +14 -3
- package/src/components/UiMenu/UiMenuSubContent.vue +1 -1
- package/src/components/UiMenu/UiMenuSubTrigger.vue +2 -2
- package/src/components/UiNestedOptions/UiNestedOptions.vue +6 -0
- package/src/components/UiPage/UiPage.vue +273 -47
- package/src/components/UiPageHeader/UiPageHeader.vue +29 -9
- package/src/components/UiPagination/UiPagination.vue +99 -0
- package/src/components/UiPagination/index.ts +2 -0
- package/src/components/UiPagination/types.ts +28 -0
- package/src/components/UiPane/UiPane.vue +20 -0
- package/src/components/UiPane/UiPaneContent.vue +232 -0
- package/src/components/UiPane/UiPaneTrigger.vue +14 -0
- package/src/components/UiPane/index.ts +12 -0
- package/src/components/UiPopover/UiPopoverContent.vue +21 -1
- package/src/components/UiProgress/UiProgress.vue +2 -2
- package/src/components/UiRating/UiRating.vue +258 -0
- package/src/components/UiRating/types.ts +1 -0
- package/src/components/UiRoomButton/UiRoomButton.vue +14 -45
- package/src/components/UiRoomCountdown/UiRoomCountdown.vue +376 -0
- package/src/components/UiShell/UiShell.vue +10 -4
- package/src/components/UiSideMenu/UiSideMenu.vue +158 -18
- package/src/components/UiSideMenu/UiSideMenuItemContent.vue +22 -18
- package/src/components/UiStepper/UiStepper.vue +3 -16
- package/src/components/UiStepper/UiStepperDescription.vue +1 -13
- package/src/components/UiStepper/UiStepperIndicator.vue +17 -57
- package/src/components/UiStepper/UiStepperItem.vue +1 -8
- package/src/components/UiStepper/UiStepperSeparator.vue +5 -16
- package/src/components/UiStepper/UiStepperTitle.vue +1 -10
- package/src/components/UiSwitch/UiSwitch.vue +375 -0
- package/src/components/UiSwitch/types.ts +5 -0
- package/src/components/UiTable/UiTable.vue +98 -8
- package/src/components/UiTable/UiTableActionsCell.vue +135 -0
- package/src/components/UiTable/UiTableActionsHeaderCell.vue +19 -0
- package/src/components/UiTable/UiTableBody.vue +16 -1
- package/src/components/UiTable/UiTableCell.vue +33 -16
- package/src/components/UiTable/UiTableHeader.vue +6 -5
- package/src/components/UiTable/UiTableHeaderCell.vue +61 -9
- package/src/components/UiTable/UiTableRow.vue +46 -10
- package/src/components/UiTable/context.ts +5 -0
- package/src/components/UiTable/index.ts +4 -0
- package/src/components/UiTabs/UiTabs.vue +61 -63
- package/src/components/UiTag/UiTag.types.ts +28 -0
- package/src/components/UiTag/UiTag.vue +24 -42
- package/src/components/UiTag/index.ts +2 -0
- package/src/components/UiTextField/UiTextField.vue +27 -47
- package/src/components/UiTimeline/README.md +6 -6
- package/src/components/UiTimeline/UiTimelineItem.vue +3 -3
- package/src/components/UiTooltip/UiTooltipContent.vue +1 -1
- package/src/components/UiTooltip/UiTooltipProvider.vue +3 -0
- package/src/components/UiTooltip/UiTooltipTrigger.vue +16 -1
- package/src/composables/storedThemingApplies.ts +19 -0
- package/src/composables/useButtonStyles.ts +9 -13
- package/src/composables/useChoiceboxSurface.ts +36 -0
- package/src/composables/useContentMode.ts +66 -0
- package/src/composables/useControlModes.ts +11 -0
- package/src/composables/useControlShape.ts +34 -0
- package/src/composables/useFieldFocusEvents.ts +30 -0
- package/src/composables/useIconSize.ts +43 -0
- package/src/composables/usePullGesture.ts +142 -0
- package/src/composables/useThemeAndModes.ts +28 -1
- package/src/constants/sizes.ts +1 -1
- package/src/css/body.css +16 -1
- package/src/css/fonts.css +39 -5
- package/src/global.d.ts +44 -0
- package/src/theming/colorScale.ts +173 -0
- package/src/theming/legacyColorScale.ts +58 -0
- package/src/theming/presetColors.ts +33 -0
- package/src/theming/primitiveTokens.ts +71 -0
- package/src/utils/effectiveOpacity.ts +8 -0
- package/src/utils/i18n.ts +6 -0
- package/src/utils/numbers.ts +1 -1
- package/src/utils/responsive.d.ts +14 -0
- package/src/utils/tokenColor.ts +9 -0
- package/dist/UiTimelineItem.vue_vue_type_style_index_0_lang-DJFdCn2R.mjs +0 -5456
- package/dist/a11y-BhF_nl7L.mjs +0 -159
- package/dist/i18n-Cktw9hIu.mjs +0 -49
- package/dist/toastDSV2-wMh-UMzW.mjs +0 -74
- package/dist/types/src/components/UiAvatar/index.d.ts +0 -1
- package/dist/types/src/components/UiAvatarList/index.d.ts +0 -1
- package/dist/types/src/components/UiBadge/index.d.ts +0 -1
- package/dist/types/src/components/UiBanner/index.d.ts +0 -2
- package/dist/types/src/components/UiButtonGroup/index.d.ts +0 -3
- package/dist/types/src/components/UiCarousel/index.d.ts +0 -2
- package/dist/types/src/components/UiColorField/index.d.ts +0 -2
- package/dist/types/src/components/UiDialog/MarketplaceHeaderExample.vue.d.ts +0 -28
- package/dist/types/src/components/UiDialog/index.d.ts +0 -7
- package/dist/types/src/components/UiFieldWrapper/index.d.ts +0 -1
- package/dist/types/src/components/UiInputCheckbox/index.d.ts +0 -2
- package/dist/types/src/components/UiInputSelect/index.d.ts +0 -2
- package/dist/types/src/components/UiInputTextarea/index.d.ts +0 -2
- package/dist/types/src/components/UiMenu/index.d.ts +0 -10
- package/dist/types/src/components/UiProgress/index.d.ts +0 -2
- package/dist/types/src/components/UiTabs/index.d.ts +0 -2
- package/dist/types/src/components/UiTimeline/index.d.ts +0 -2
- package/dist/types/src/components/UiTooltip/index.d.ts +0 -4
- package/dist/types/src/mixins/DynamicAction.d.ts +0 -30
- package/dist/useThemeAndModes-BzYwSOEv.mjs +0 -108
- package/src/components/UiAvatar/index.js +0 -1
- package/src/components/UiAvatarList/index.js +0 -1
- package/src/components/UiBadge/index.ts +0 -2
- package/src/components/UiBanner/index.ts +0 -2
- package/src/components/UiButtonGroup/index.ts +0 -3
- package/src/components/UiCarousel/index.ts +0 -2
- package/src/components/UiColorField/index.ts +0 -2
- package/src/components/UiDialog/MarketplaceHeaderExample.vue +0 -217
- package/src/components/UiDialog/index.ts +0 -18
- package/src/components/UiFieldWrapper/index.ts +0 -1
- package/src/components/UiInputCheckbox/index.ts +0 -2
- package/src/components/UiInputSelect/index.ts +0 -2
- package/src/components/UiInputTextarea/index.ts +0 -2
- package/src/components/UiMenu/index.ts +0 -10
- package/src/components/UiProgress/index.ts +0 -2
- package/src/components/UiTabs/index.ts +0 -5
- package/src/components/UiTag/index.js +0 -1
- package/src/components/UiTimeline/index.ts +0 -2
- package/src/components/UiTooltip/index.js +0 -4
- package/src/mixins/DynamicAction.js +0 -61
package/dist/index.mjs
CHANGED
|
@@ -1,87 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
s as UiActionBarItem,
|
|
6
|
-
o as UiActionBarSeparator,
|
|
7
|
-
U as UiAnimatedLogo,
|
|
8
|
-
r as UiAvatar,
|
|
9
|
-
t as UiAvatarList,
|
|
10
|
-
n as UiBadge,
|
|
11
|
-
p as UiBanner,
|
|
12
|
-
l as UiBreadcrumb,
|
|
13
|
-
u as UiButton,
|
|
14
|
-
d as UiButtonGroup,
|
|
15
|
-
g as UiButtonGroupItem,
|
|
16
|
-
T as UiCard,
|
|
17
|
-
S as UiCarousel,
|
|
18
|
-
m as UiColorField,
|
|
19
|
-
b as UiColorPicker,
|
|
20
|
-
C as UiDialog,
|
|
21
|
-
M as UiDialogClose,
|
|
22
|
-
I as UiDialogContent,
|
|
23
|
-
c as UiDialogFooter,
|
|
24
|
-
B as UiDialogTrigger,
|
|
25
|
-
D as UiDropdown,
|
|
26
|
-
P as UiDropdownContent,
|
|
27
|
-
L as UiDropdownItem,
|
|
28
|
-
v as UiDropdownSeparator,
|
|
29
|
-
A as UiDropdownTrigger,
|
|
30
|
-
w as UiEmptyState,
|
|
31
|
-
F as UiFieldWrapper,
|
|
32
|
-
x as UiFormField,
|
|
33
|
-
h as UiHorizontalSeparator,
|
|
34
|
-
H as UiInputCheckbox,
|
|
35
|
-
f as UiInputSelect,
|
|
36
|
-
k as UiInputTextarea,
|
|
37
|
-
G as UiLabel,
|
|
38
|
-
y as UiList,
|
|
39
|
-
R as UiListItem,
|
|
40
|
-
j as UiLoader,
|
|
41
|
-
z as UiLogo,
|
|
42
|
-
E as UiMenu,
|
|
43
|
-
W as UiMenuContent,
|
|
44
|
-
_ as UiMenuGroup,
|
|
45
|
-
q as UiMenuItem,
|
|
46
|
-
J as UiMenuLabel,
|
|
47
|
-
K as UiMenuSeparator,
|
|
48
|
-
N as UiMenuSub,
|
|
49
|
-
O as UiMenuSubContent,
|
|
50
|
-
Q as UiMenuSubTrigger,
|
|
51
|
-
V as UiMenuTrigger,
|
|
52
|
-
X as UiPage,
|
|
53
|
-
Y as UiPageHeader,
|
|
54
|
-
Z as UiPopover,
|
|
55
|
-
$ as UiPopoverAnchor,
|
|
56
|
-
aa as UiPopoverContent,
|
|
57
|
-
ia as UiPopoverTrigger,
|
|
58
|
-
ea as UiProgress,
|
|
59
|
-
sa as UiRoomButton,
|
|
60
|
-
oa as UiShell,
|
|
61
|
-
Ua as UiSideMenu,
|
|
62
|
-
ra as UiSideMenuBottom,
|
|
63
|
-
ta as UiSideMenuItem,
|
|
64
|
-
na as UiSideMenuItemContent,
|
|
65
|
-
pa as UiSideMenuTop,
|
|
66
|
-
la as UiStepper,
|
|
67
|
-
ua as UiStepperDescription,
|
|
68
|
-
da as UiStepperIndicator,
|
|
69
|
-
ga as UiStepperItem,
|
|
70
|
-
Ta as UiStepperSeparator,
|
|
71
|
-
Sa as UiStepperTitle,
|
|
72
|
-
ma as UiTable,
|
|
73
|
-
ba as UiTableBody,
|
|
74
|
-
Ca as UiTableCell,
|
|
75
|
-
Ma as UiTableHeader,
|
|
76
|
-
Ia as UiTableHeaderCell,
|
|
77
|
-
ca as UiTableRow,
|
|
78
|
-
Ba as UiTabs,
|
|
79
|
-
Da as UiTag,
|
|
80
|
-
Pa as UiTextField,
|
|
81
|
-
La as UiTimeline,
|
|
82
|
-
va as UiTimelineItem,
|
|
83
|
-
wa as UiTooltip,
|
|
84
|
-
Fa as UiTooltipContent,
|
|
85
|
-
xa as UiTooltipProvider,
|
|
86
|
-
ha as UiTooltipTrigger
|
|
87
|
-
};
|
|
1
|
+
import { a as e, r as t, s as n, t as r } from "./UiTooltip-DZcPD6_N.mjs";
|
|
2
|
+
import { $ as i, $n as a, $t as o, C as s, Cn as c, Cr as l, Ct as u, D as d, Dn as f, Dr as p, Dt as m, F as h, Fn as g, Ft as _, G as v, Gn as y, Gt as b, L as x, Ln as S, Lt as C, N as w, Nn as T, Nt as E, T as D, Tn as O, Tr as k, Tt as A, U as j, Un as M, Ut as N, V as P, Vn as F, Vt as I, Y as L, Yn as R, Yt as z, Z as B, Zn as V, Zt as H, _ as U, _n as W, _r as G, _t as K, a as q, an as J, ar as Y, at as X, d as Z, dn as Q, dr as $, dt as ee, h as te, hn as ne, hr as re, ht as ie, j as ae, jn as oe, jr as se, jt as ce, k as le, kn as ue, kr as de, kt as fe, l as pe, ln as me, lr as he, lt as ge, p as _e, pn as ve, pr as ye, pt as be, q as xe, qn as Se, qt as Ce, r as we, rn as Te, rr as Ee, rt as De, s as Oe, sn as ke, sr as Ae, st as je, t as Me, tn as Ne, tr as Pe, tt as Fe, x as Ie, xn as Le, xr as Re, xt as ze, y as Be, yn as Ve, yr as He, yt as Ue, z as We, zn as Ge, zt as Ke } from "./UiTimelineItem-EiOEi1yF.mjs";
|
|
3
|
+
import { a as qe, r as Je, t as Ye, u as Xe } from "./UiButton-uyW8EHRJ.mjs";
|
|
4
|
+
export { se as UiActionBar, de as UiActionBarItem, p as UiActionBarSeparator, k as UiAnimatedLogo, Xe as UiAvatar, l as UiAvatarList, Re as UiBadge, He as UiBanner, G as UiBreadcrumb, Ye as UiButton, re as UiButtonGroup, ye as UiButtonGroupItem, $ as UiCard, he as UiCarousel, Pe as UiChoice, ue as UiColorField, g as UiColorPicker, f as UiCombobox, me as UiDataTable, ke as UiDialog, J as UiDialogClose, Te as UiDialogContent, Ne as UiDialogFooter, o as UiDialogTrigger, H as UiDrawer, z as UiDrawerContent, Ce as UiDrawerTrigger, Se as UiDropdown, M as UiDropdownContent, Ge as UiDropdownGroup, F as UiDropdownItem, S as UiDropdownSeparator, y as UiDropdownTrigger, b as UiEmojiPickerList, N as UiEmptyState, T as UiFieldWrapper, I as UiFormField, Ke as UiHorizontalSeparator, Ae as UiInputCheckbox, C as UiInputEmoji, Y as UiInputRadio, _ as UiInputRadioGroup, E as UiInputSelect, ce as UiInputTextarea, fe as UiLabel, m as UiList, A as UiListItem, Je as UiLoader, u as UiLogo, ze as UiMenu, Ue as UiMenuContent, K as UiMenuGroup, ie as UiMenuItem, be as UiMenuLabel, ee as UiMenuSeparator, ge as UiMenuSub, je as UiMenuSubContent, X as UiMenuSubTrigger, De as UiMenuTrigger, Fe as UiNestedOptions, i as UiPage, B as UiPageHeader, L as UiPagination, xe as UiPane, v as UiPaneContent, j as UiPaneTrigger, a as UiPopover, P as UiPopoverAnchor, R as UiPopoverContent, V as UiPopoverTrigger, We as UiProgress, x as UiRating, h as UiRoomButton, w as UiRoomCountdown, ae as UiShell, D as UiSideMenu, s as UiSideMenuBottom, d as UiSideMenuItem, le as UiSideMenuItemContent, Ie as UiSideMenuTop, qe as UiSpinnerIcon, Be as UiStepper, U as UiStepperDescription, te as UiStepperIndicator, _e as UiStepperItem, Z as UiStepperSeparator, pe as UiStepperTitle, Ee as UiSwitch, O as UiTable, Q as UiTableActionsCell, Ve as UiTableActionsHeaderCell, W as UiTableBody, ve as UiTableCell, c as UiTableHeader, Le as UiTableHeaderCell, ne as UiTableRow, Oe as UiTabs, q as UiTag, oe as UiTextField, we as UiTimeline, Me as UiTimelineItem, r as UiTooltip, t as UiTooltipContent, n as UiTooltipProvider, e as UiTooltipTrigger };
|
package/dist/integrations.mjs
CHANGED
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
import { a as e,
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
4
|
-
n as BUILT_IN_LABEL_KEYS,
|
|
5
|
-
_ as UI_VUE_TRANSLATOR,
|
|
6
|
-
e as cancelCloseTimer,
|
|
7
|
-
o as closeToast,
|
|
8
|
-
t as openToast,
|
|
9
|
-
r as resetToasts,
|
|
10
|
-
c as setTranslator,
|
|
11
|
-
u as translate,
|
|
12
|
-
T as useToasts,
|
|
13
|
-
L as useTranslate
|
|
14
|
-
};
|
|
1
|
+
import { a as e, i as t, n, r, t as i } from "./i18n-B8QOMuFD.mjs";
|
|
2
|
+
import { a, c as o, i as s, n as c, o as l, r as u, s as d, t as f } from "./toastDSV2-D3xDZPe5.mjs";
|
|
3
|
+
export { i as BUILT_IN_LABEL_KEYS, f as MAX_ITEMS_DISPLAYED, n as UI_VUE_TRANSLATOR, c as cancelCloseTimer, u as closeToast, s as openToast, a as resetToasts, l as restartToast, r as setTranslator, t as translate, d as updateToast, o as useToasts, e as useTranslate };
|
package/dist/layouts.mjs
CHANGED
|
@@ -1,237 +1,229 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useResponsive as
|
|
3
|
-
import {
|
|
4
|
-
import { u as
|
|
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
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
}), null, 16, ["onClose", "onMouseenter", "onMouseleave", "onConfirm", "onCancel"])
|
|
228
|
-
]))), 128))
|
|
229
|
-
]),
|
|
230
|
-
_: 1
|
|
231
|
-
}, 8, ["class"])
|
|
232
|
-
], 64));
|
|
233
|
-
}
|
|
1
|
+
import { t as e, u as t } from "./UiButton-uyW8EHRJ.mjs";
|
|
2
|
+
import { useResponsive as n } from "./responsive.mjs";
|
|
3
|
+
import { c as r } from "./toastDSV2-D3xDZPe5.mjs";
|
|
4
|
+
import { Fragment as i, Transition as a, TransitionGroup as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineComponent as m, getCurrentInstance as h, guardReactiveProps as g, mergeProps as _, normalizeClass as v, normalizeProps as y, normalizeStyle as b, openBlock as x, ref as S, renderList as C, resolveDynamicComponent as w, toDisplayString as T, unref as E, watch as D, withCtx as O, withKeys as k } from "vue";
|
|
5
|
+
//#region src/components/Toast/ToastMessage.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var A = ["data-testid"], j = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "flex-1 min-w-0 sm:col-start-2"
|
|
9
|
+
}, M = {
|
|
10
|
+
key: 1,
|
|
11
|
+
class: "absolute h-1 bg-actions-neutral-idle-alpha-light top-0 left-0 w-full"
|
|
12
|
+
}, N = { class: "flex flex-col flex-1 sm:row-start-1 min-w-0 wrap-break-word" }, P = {
|
|
13
|
+
key: 0,
|
|
14
|
+
class: "text-content-text-md-bold text-text-neutral-base"
|
|
15
|
+
}, F = {
|
|
16
|
+
key: 2,
|
|
17
|
+
class: "text-content-text-md-medium text-text-neutral-secondary mt-1"
|
|
18
|
+
}, I = {
|
|
19
|
+
key: 2,
|
|
20
|
+
class: "row-start-1 sm:col-start-3 h-4 w-8 justify-self-end"
|
|
21
|
+
}, L = {
|
|
22
|
+
key: 3,
|
|
23
|
+
class: "row-start-3 col-start-1 col-end-3 w-full grid sm:flex sm:col-start-2 mt-3 gap-2 justify-self-end"
|
|
24
|
+
}, R = /* @__PURE__ */ m({
|
|
25
|
+
__name: "ToastMessage",
|
|
26
|
+
props: {
|
|
27
|
+
message: {},
|
|
28
|
+
messageComponent: {},
|
|
29
|
+
messageComponentProps: {},
|
|
30
|
+
id: {},
|
|
31
|
+
title: {},
|
|
32
|
+
info: {},
|
|
33
|
+
type: { default: "info" },
|
|
34
|
+
avatar: {},
|
|
35
|
+
time: { type: [Number, Boolean] },
|
|
36
|
+
progressIndeterminate: { type: Boolean },
|
|
37
|
+
customIcon: {},
|
|
38
|
+
confirmLabel: {},
|
|
39
|
+
confirmHref: {},
|
|
40
|
+
confirmHrefTarget: { default: "_blank" },
|
|
41
|
+
confirmTo: {},
|
|
42
|
+
confirmIcon: {},
|
|
43
|
+
confirmColor: {},
|
|
44
|
+
actionsSize: { default: "md" },
|
|
45
|
+
cancelLabel: {},
|
|
46
|
+
locked: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
default: !1
|
|
49
|
+
},
|
|
50
|
+
closable: {
|
|
51
|
+
type: Boolean,
|
|
52
|
+
default: !0
|
|
53
|
+
},
|
|
54
|
+
component: {},
|
|
55
|
+
componentProps: {},
|
|
56
|
+
timerStartedAt: { default: void 0 }
|
|
57
|
+
},
|
|
58
|
+
emits: [
|
|
59
|
+
"close",
|
|
60
|
+
"confirm",
|
|
61
|
+
"cancel",
|
|
62
|
+
"mouseenter",
|
|
63
|
+
"mouseleave"
|
|
64
|
+
],
|
|
65
|
+
setup(n, { emit: r }) {
|
|
66
|
+
let a = {
|
|
67
|
+
info: "primary",
|
|
68
|
+
alert: "error",
|
|
69
|
+
warning: "warning",
|
|
70
|
+
success: "success"
|
|
71
|
+
}, o = {
|
|
72
|
+
info: "bg-actions-primary-idle",
|
|
73
|
+
alert: "bg-actions-danger-idle",
|
|
74
|
+
warning: "bg-actions-warning-idle",
|
|
75
|
+
success: "bg-actions-success-idle"
|
|
76
|
+
}, m = n, h = r, C = s(() => {
|
|
77
|
+
if (m.customIcon) return m.customIcon;
|
|
78
|
+
switch (m.type) {
|
|
79
|
+
case "alert": return "i-ph-x-circle !text-text-danger-base";
|
|
80
|
+
case "warning": return "i-ph-warning !text-text-warning-base";
|
|
81
|
+
case "info": return "i-ph-info text-text-primary-base";
|
|
82
|
+
case "success": return "i-ph-check-circle text-text-success-base";
|
|
83
|
+
default: return;
|
|
84
|
+
}
|
|
85
|
+
}), E = s(() => `toast-message-${String(m.id)}`), R = s(() => m.confirmHref ? m.confirmHrefTarget : void 0), z = s(() => !!(m.message || m.messageComponent)), B = s(() => m.messageComponent ? "div" : m.title ? "p" : "span"), V = s(() => m.title ? "text-content-text-md-medium text-text-neutral-secondary" : "text-content-text-md-bold text-text-neutral-base"), H = s(() => a[m.confirmColor ?? m.type]), U = s(() => o[m.type]), W = S(!1), G = S(!1), K = s(() => m.progressIndeterminate || !!m.time);
|
|
86
|
+
function q() {
|
|
87
|
+
m.time && (W.value = !1, setTimeout(() => {
|
|
88
|
+
W.value = !0;
|
|
89
|
+
}, 100));
|
|
90
|
+
}
|
|
91
|
+
D(() => m.timerStartedAt, q);
|
|
92
|
+
function J() {
|
|
93
|
+
G.value = !1, h("mouseleave"), m.timerStartedAt === void 0 && q();
|
|
94
|
+
}
|
|
95
|
+
return q(), (r, a) => (x(), u("div", {
|
|
96
|
+
class: "relative grid grid-flow-col grid-rows-[auto_auto_auto] sm:grid-rows-1 sm:grid-cols-[auto_1fr_auto] items-start p-4 bg-surface-neutral-bg-main shadow-shadows-drop-shadow-2xl rounded-container gap-x-0 overflow-hidden",
|
|
97
|
+
"data-testid": E.value,
|
|
98
|
+
"data-colors-semantic": "light",
|
|
99
|
+
"data-name": "ui-toast-message",
|
|
100
|
+
onMouseenter: a[4] ||= (e) => (G.value = !0, h("mouseenter")),
|
|
101
|
+
onMouseleave: J
|
|
102
|
+
}, [
|
|
103
|
+
m.component ? (x(), u("div", j, [(x(), c(w(m.component), y(g(m.componentProps)), null, 16))])) : (x(), u(i, { key: 1 }, [
|
|
104
|
+
K.value ? (x(), u(i, { key: 0 }, [n.time ? (x(), u("div", {
|
|
105
|
+
key: 0,
|
|
106
|
+
class: v(["absolute opacity-100 transition-opacity duration-150 h-1 bg-actions-neutral-idle-alpha-light top-0 left-0 w-full", { "opacity-0!": G.value }])
|
|
107
|
+
}, [n.time ? (x(), u("div", {
|
|
108
|
+
key: 0,
|
|
109
|
+
"data-testid": "toast-progress",
|
|
110
|
+
class: v(["h-full w-0 ease-linear duration-1000", [W.value ? "w-full transition-all" : "transition-none", U.value]]),
|
|
111
|
+
style: b({ transitionDuration: `${m.time / 1e3}s` })
|
|
112
|
+
}, null, 6)) : l("", !0)], 2)) : m.progressIndeterminate ? (x(), u("div", M, [d("div", { class: v(["animate-progress-indeterminate w-full h-full origin-left-right", U.value]) }, null, 2)])) : l("", !0)], 64)) : l("", !0),
|
|
113
|
+
d("div", { class: v(["shrink-0", { "pl-0.5 pt-0.5": !m.avatar }]) }, [m.avatar ? (x(), c(t, _({ key: 0 }, m.avatar, {
|
|
114
|
+
size: "xs",
|
|
115
|
+
class: "mr-3 mb-2 sm:mb-0"
|
|
116
|
+
}), null, 16)) : C.value ? (x(), u("div", {
|
|
117
|
+
key: 1,
|
|
118
|
+
class: v(["size-4 mr-3 shrink-0 mb-2 sm:mb-0", C.value])
|
|
119
|
+
}, null, 2)) : l("", !0)], 2),
|
|
120
|
+
d("div", N, [
|
|
121
|
+
m.title ? (x(), u("span", P, T(m.title), 1)) : l("", !0),
|
|
122
|
+
z.value ? (x(), c(w(B.value), {
|
|
123
|
+
key: 1,
|
|
124
|
+
class: v(V.value)
|
|
125
|
+
}, {
|
|
126
|
+
default: O(() => [m.messageComponent ? (x(), c(w(m.messageComponent), y(_({ key: 0 }, m.messageComponentProps)), null, 16)) : (x(), u(i, { key: 1 }, [f(T(m.message), 1)], 64))]),
|
|
127
|
+
_: 1
|
|
128
|
+
}, 8, ["class"])) : l("", !0),
|
|
129
|
+
m.info ? (x(), u("p", F, T(m.info), 1)) : l("", !0)
|
|
130
|
+
])
|
|
131
|
+
], 64)),
|
|
132
|
+
!m.locked && m.closable ? (x(), u("div", I, [p(e, {
|
|
133
|
+
"data-testid": `toast-close-${String(m.id)}`,
|
|
134
|
+
color: "neutral",
|
|
135
|
+
variant: "tertiary",
|
|
136
|
+
icon: "i-ph-x",
|
|
137
|
+
size: "md",
|
|
138
|
+
"aria-label": "close",
|
|
139
|
+
class: "-top-[10px] -right-[2px] sm:row-start-1",
|
|
140
|
+
onClick: a[0] ||= (e) => h("close"),
|
|
141
|
+
onKeydown: a[1] ||= k((e) => h("close"), ["enter"])
|
|
142
|
+
}, null, 8, ["data-testid"])])) : l("", !0),
|
|
143
|
+
m.confirmLabel || m.cancelLabel ? (x(), u("div", L, [m.confirmLabel ? (x(), c(e, {
|
|
144
|
+
key: 0,
|
|
145
|
+
href: m.confirmHref,
|
|
146
|
+
to: m.confirmTo,
|
|
147
|
+
target: R.value,
|
|
148
|
+
icon: m.confirmIcon,
|
|
149
|
+
color: H.value,
|
|
150
|
+
size: m.actionsSize,
|
|
151
|
+
variant: "cta",
|
|
152
|
+
class: "w-full sm:w-auto",
|
|
153
|
+
onClick: a[2] ||= (e) => r.$emit("confirm", e)
|
|
154
|
+
}, {
|
|
155
|
+
default: O(() => [f(T(m.confirmLabel), 1)]),
|
|
156
|
+
_: 1
|
|
157
|
+
}, 8, [
|
|
158
|
+
"href",
|
|
159
|
+
"to",
|
|
160
|
+
"target",
|
|
161
|
+
"icon",
|
|
162
|
+
"color",
|
|
163
|
+
"size"
|
|
164
|
+
])) : l("", !0), m.cancelLabel ? (x(), c(e, {
|
|
165
|
+
key: 1,
|
|
166
|
+
color: "neutral",
|
|
167
|
+
variant: "secondary",
|
|
168
|
+
size: m.actionsSize,
|
|
169
|
+
class: "w-full sm:w-auto",
|
|
170
|
+
onClick: a[3] ||= (e) => r.$emit("cancel")
|
|
171
|
+
}, {
|
|
172
|
+
default: O(() => [f(T(m.cancelLabel), 1)]),
|
|
173
|
+
_: 1
|
|
174
|
+
}, 8, ["size"])) : l("", !0)])) : l("", !0)
|
|
175
|
+
], 40, A));
|
|
176
|
+
}
|
|
177
|
+
}), z = {
|
|
178
|
+
key: 0,
|
|
179
|
+
"data-testid": "layout-toasts-locked",
|
|
180
|
+
class: "bg-alpha-black-300 fixed inset-0 z-blocking"
|
|
181
|
+
}, B = /* @__PURE__ */ m({
|
|
182
|
+
__name: "LayoutToasts",
|
|
183
|
+
setup(e) {
|
|
184
|
+
let t = h();
|
|
185
|
+
if (!t) throw Error("No current instance found");
|
|
186
|
+
let c = s(() => t.appContext.config.globalProperties.$responsive ?? n()), { toasts: d, closeToast: f, cancelCloseTimer: m, restartToast: g } = r(), y = s(() => d.value.slice(0, 3)), b = s(() => y.value.some((e) => e.options.locked));
|
|
187
|
+
function S(e) {
|
|
188
|
+
let t = e.getBoundingClientRect(), { style: n } = e;
|
|
189
|
+
n.top = `${t.top}px`, n.left = `${t.left}px`, n.width = `${t.width}px`, n.height = `${t.height}px`;
|
|
190
|
+
}
|
|
191
|
+
return (e, t) => (x(), u(i, null, [p(a, {
|
|
192
|
+
duration: 200,
|
|
193
|
+
appear: ""
|
|
194
|
+
}, {
|
|
195
|
+
default: O(() => [b.value ? (x(), u("div", z)) : l("", !0)]),
|
|
196
|
+
_: 1
|
|
197
|
+
}), p(o, {
|
|
198
|
+
name: "list",
|
|
199
|
+
tag: "div",
|
|
200
|
+
role: "status",
|
|
201
|
+
"aria-live": "polite",
|
|
202
|
+
"aria-atomic": "false",
|
|
203
|
+
class: v([c.value?.mobile ? "m-4 left-0 right-0" : "m-8 max-w-md w-full left-0 supports-[left:anchor(--a_right)]:left-[anchor(--ui-shell-side-menu_right,0px)]", "fixed bottom-0 flex flex-col gap-2 z-max [view-transition-name:layout-toasts]"]),
|
|
204
|
+
onBeforeLeave: S
|
|
205
|
+
}, {
|
|
206
|
+
default: O(() => [(x(!0), u(i, null, C(y.value, (e) => (x(), u("div", {
|
|
207
|
+
key: e.id,
|
|
208
|
+
class: "w-full sm:max-w-[400px]"
|
|
209
|
+
}, [p(R, _({ ref_for: !0 }, e.options, {
|
|
210
|
+
"timer-started-at": e.timerStartedAt,
|
|
211
|
+
onClose: (t) => E(f)(e.id),
|
|
212
|
+
onMouseenter: (t) => E(m)(e.id),
|
|
213
|
+
onMouseleave: (t) => E(g)(e.id),
|
|
214
|
+
onConfirm: (t) => e.confirmEventHook.trigger(void 0),
|
|
215
|
+
onCancel: (t) => e.cancelEventHook.trigger(void 0)
|
|
216
|
+
}), null, 16, [
|
|
217
|
+
"timer-started-at",
|
|
218
|
+
"onClose",
|
|
219
|
+
"onMouseenter",
|
|
220
|
+
"onMouseleave",
|
|
221
|
+
"onConfirm",
|
|
222
|
+
"onCancel"
|
|
223
|
+
])]))), 128))]),
|
|
224
|
+
_: 1
|
|
225
|
+
}, 8, ["class"])], 64));
|
|
226
|
+
}
|
|
234
227
|
});
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
};
|
|
228
|
+
//#endregion
|
|
229
|
+
export { B as LayoutToasts };
|