@livestorm/ui-vue 3.0.0 → 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 +3 -3
- 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 -231
- package/dist/i18n-B8QOMuFD.mjs +46 -0
- package/dist/index.mjs +4 -91
- 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 +19 -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/types.d.ts +2 -0
- 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 +95 -35
- package/dist/types/src/components/UiButtonGroup/UiButtonGroup.vue.d.ts +8 -2
- package/dist/types/src/components/UiButtonGroup/types.d.ts +4 -0
- 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 +8 -5
- 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/UiInputRadio/RadioGlyph.vue.d.ts +19 -0
- package/dist/types/src/components/UiInputRadio/UiInputRadio.vue.d.ts +21 -8
- package/dist/types/src/components/UiInputRadio/UiInputRadioGroup.vue.d.ts +6 -1
- package/dist/types/src/components/UiInputRadio/types.d.ts +1 -1
- 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/UiSpinnerIcon.vue.d.ts +3 -0
- 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 +79 -15
- 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/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 +10 -5
- 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 +3 -0
- 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 +7 -9
- 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 +2 -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/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 +18 -0
- package/index.js +36 -0
- package/package.json +26 -21
- package/src/components/Toast/LayoutToasts.vue +19 -11
- package/src/components/Toast/ToastMessage.vue +125 -68
- package/src/components/Toast/toastDSV2.ts +238 -67
- package/src/components/UiActionBar/UiActionBar.vue +4 -3
- package/src/components/UiActionBar/UiActionBarItem.vue +9 -6
- package/src/components/UiActionBar/types.ts +13 -0
- package/src/components/UiAvatar/UiAvatar.vue +8 -2
- package/src/components/UiAvatarList/UiAvatarList.vue +51 -20
- package/src/components/UiBadge/UiBadge.vue +1 -1
- package/src/components/UiBanner/UiBanner.vue +71 -21
- package/src/components/UiBreadcrumb/UiBreadcrumb.vue +1 -1
- package/src/components/UiButton/UiButton.vue +92 -25
- package/src/components/UiButtonGroup/UiButtonGroup.vue +21 -17
- package/src/components/UiButtonGroup/UiButtonGroupItem.vue +33 -15
- package/src/components/UiButtonGroup/types.ts +19 -0
- package/src/components/UiCard/UiCard.vue +20 -23
- 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 +11 -8
- 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/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 +38 -18
- package/src/components/UiDropdown/UiDropdownSeparator.vue +1 -1
- package/src/components/UiDropdown/UiDropdownTrigger.vue +138 -43
- 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 +9 -3
- 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 +18 -95
- package/src/components/UiInputRadio/RadioGlyph.vue +45 -0
- package/src/components/UiInputRadio/UiInputRadio.vue +177 -169
- package/src/components/UiInputRadio/UiInputRadioGroup.vue +15 -5
- package/src/components/UiInputRadio/types.ts +1 -2
- 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 +4 -20
- package/src/components/UiLoader/UiSpinnerIcon.vue +21 -0
- 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 +1 -1
- package/src/components/UiNestedOptions/UiNestedOptions.vue +6 -0
- package/src/components/UiPage/UiPage.vue +190 -32
- 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 +10 -41
- package/src/components/UiRoomCountdown/UiRoomCountdown.vue +376 -0
- package/src/components/UiShell/UiShell.vue +9 -3
- package/src/components/UiSideMenu/UiSideMenu.vue +155 -18
- package/src/components/UiSideMenu/UiSideMenuItemContent.vue +20 -16
- package/src/components/UiStepper/UiStepper.vue +3 -16
- package/src/components/UiStepper/UiStepperDescription.vue +1 -13
- package/src/components/UiStepper/UiStepperIndicator.vue +11 -48
- 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 +44 -28
- 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 +56 -61
- 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 +21 -36
- 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 +29 -16
- 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 +15 -0
- package/src/composables/usePullGesture.ts +142 -0
- package/src/composables/useThemeAndModes.ts +28 -1
- package/src/css/body.css +16 -1
- package/src/css/fonts.css +39 -5
- package/src/global.d.ts +36 -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-LpdvGf5X.mjs +0 -6093
- 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/UiInputEmoji/index.d.ts +0 -1
- package/dist/types/src/components/UiInputRadio/index.d.ts +0 -3
- 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/UiSwitch/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/UiInputEmoji/index.ts +0 -1
- package/src/components/UiInputRadio/index.ts +0 -3
- 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/UiSwitch/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/a11y-BhF_nl7L.mjs
DELETED
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
import { defineComponent as m, createBlock as i, openBlock as r, unref as a, normalizeProps as f, guardReactiveProps as g, withCtx as n, renderSlot as l, computed as h, createVNode as c, mergeProps as w, createCommentVNode as b, getCurrentInstance as x, createElementBlock as C, Fragment as T, createTextVNode as $, toDisplayString as v } from "vue";
|
|
2
|
-
import { TooltipProvider as k, useForwardProps as P, TooltipTrigger as D, useForwardPropsEmits as B, TooltipPortal as S, TooltipContent as F, TooltipArrow as W, TooltipRoot as y } from "reka-ui";
|
|
3
|
-
import { reactiveOmit as N } from "@vueuse/core";
|
|
4
|
-
const O = /* @__PURE__ */ m({
|
|
5
|
-
__name: "UiTooltipProvider",
|
|
6
|
-
props: {
|
|
7
|
-
delayDuration: { default: 700 },
|
|
8
|
-
skipDelayDuration: { default: 300 },
|
|
9
|
-
disableHoverableContent: { type: Boolean },
|
|
10
|
-
disableClosingTrigger: { type: Boolean },
|
|
11
|
-
disabled: { type: Boolean },
|
|
12
|
-
ignoreNonKeyboardFocus: { type: Boolean },
|
|
13
|
-
content: {}
|
|
14
|
-
},
|
|
15
|
-
setup(e) {
|
|
16
|
-
return (s, t) => (r(), i(a(k), f(g(s.$props)), {
|
|
17
|
-
default: n(() => [
|
|
18
|
-
l(s.$slots, "default")
|
|
19
|
-
]),
|
|
20
|
-
_: 3
|
|
21
|
-
}, 16));
|
|
22
|
-
}
|
|
23
|
-
}), z = /* @__PURE__ */ m({
|
|
24
|
-
__name: "UiTooltipTrigger",
|
|
25
|
-
props: {
|
|
26
|
-
reference: {},
|
|
27
|
-
asChild: { type: Boolean },
|
|
28
|
-
as: {}
|
|
29
|
-
},
|
|
30
|
-
setup(e) {
|
|
31
|
-
const t = P(e);
|
|
32
|
-
return (d, p) => (r(), i(a(D), f(g({ ...a(t), ...d.$attrs })), {
|
|
33
|
-
default: n(() => [
|
|
34
|
-
l(d.$slots, "default")
|
|
35
|
-
]),
|
|
36
|
-
_: 3
|
|
37
|
-
}, 16));
|
|
38
|
-
}
|
|
39
|
-
}), A = /* @__PURE__ */ m({
|
|
40
|
-
__name: "UiTooltipContent",
|
|
41
|
-
props: {
|
|
42
|
-
colorsSemantic: { default: "light" },
|
|
43
|
-
maxWidth: { default: "base" },
|
|
44
|
-
showArrow: { type: Boolean, default: !0 },
|
|
45
|
-
arrowWidth: { default: 10 },
|
|
46
|
-
arrowHeight: { default: 5 },
|
|
47
|
-
forceMount: { type: Boolean },
|
|
48
|
-
ariaLabel: {},
|
|
49
|
-
asChild: { type: Boolean },
|
|
50
|
-
as: {},
|
|
51
|
-
side: {},
|
|
52
|
-
sideOffset: { default: 12 },
|
|
53
|
-
align: {},
|
|
54
|
-
alignOffset: {},
|
|
55
|
-
avoidCollisions: { type: Boolean },
|
|
56
|
-
collisionBoundary: {},
|
|
57
|
-
collisionPadding: {},
|
|
58
|
-
arrowPadding: {},
|
|
59
|
-
sticky: {},
|
|
60
|
-
hideWhenDetached: { type: Boolean },
|
|
61
|
-
positionStrategy: {},
|
|
62
|
-
updatePositionStrategy: {}
|
|
63
|
-
},
|
|
64
|
-
emits: ["escapeKeyDown", "pointerDownOutside"],
|
|
65
|
-
setup(e, { emit: s }) {
|
|
66
|
-
const t = e, p = B(t, s), u = h(() => ({
|
|
67
|
-
xs: "max-w-[150px]",
|
|
68
|
-
sm: "max-w-[240px]",
|
|
69
|
-
md: "max-w-md",
|
|
70
|
-
base: "max-w-xs",
|
|
71
|
-
lg: "max-w-lg",
|
|
72
|
-
xl: "max-w-xl"
|
|
73
|
-
})[t.maxWidth]);
|
|
74
|
-
return (o, _) => (r(), i(a(S), null, {
|
|
75
|
-
default: n(() => [
|
|
76
|
-
c(a(F), w({ ...a(p), ...o.$attrs }, {
|
|
77
|
-
"data-colors-semantic": t.colorsSemantic,
|
|
78
|
-
class: [
|
|
79
|
-
"ui-tooltip-content py-1.5 px-3 bg-surface-neutral-invert-bg-alpha text-text-neutral-invert-base text-content-text-md-regular rounded-md text-center z-50 shadow-shadows-drop-shadow-lg",
|
|
80
|
-
"data-[state=delayed-open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=delayed-open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=delayed-open]:zoom-in-95",
|
|
81
|
-
u.value
|
|
82
|
-
]
|
|
83
|
-
}), {
|
|
84
|
-
default: n(() => [
|
|
85
|
-
l(o.$slots, "default"),
|
|
86
|
-
t.showArrow ? (r(), i(a(W), {
|
|
87
|
-
key: 0,
|
|
88
|
-
width: t.arrowWidth,
|
|
89
|
-
height: t.arrowHeight,
|
|
90
|
-
class: "fill-surface-neutral-invert-bg-alpha"
|
|
91
|
-
}, null, 8, ["width", "height"])) : b("", !0)
|
|
92
|
-
]),
|
|
93
|
-
_: 3
|
|
94
|
-
}, 16, ["data-colors-semantic", "class"])
|
|
95
|
-
]),
|
|
96
|
-
_: 3
|
|
97
|
-
}));
|
|
98
|
-
}
|
|
99
|
-
}), K = /* @__PURE__ */ m({
|
|
100
|
-
inheritAttrs: !1,
|
|
101
|
-
__name: "UiTooltip",
|
|
102
|
-
props: {
|
|
103
|
-
content: {},
|
|
104
|
-
side: {},
|
|
105
|
-
defaultOpen: { type: Boolean },
|
|
106
|
-
open: { type: Boolean },
|
|
107
|
-
delayDuration: {},
|
|
108
|
-
disableHoverableContent: { type: Boolean },
|
|
109
|
-
disableClosingTrigger: { type: Boolean },
|
|
110
|
-
disabled: { type: Boolean },
|
|
111
|
-
ignoreNonKeyboardFocus: { type: Boolean }
|
|
112
|
-
},
|
|
113
|
-
emits: ["update:open"],
|
|
114
|
-
setup(e, { emit: s }) {
|
|
115
|
-
const t = e, d = s, p = h(() => {
|
|
116
|
-
const o = x()?.vnode.props;
|
|
117
|
-
return !!o && "content" in o;
|
|
118
|
-
}), u = B(N(t, "content", "side"), d);
|
|
119
|
-
return (o, _) => p.value ? (r(), C(T, { key: 0 }, [
|
|
120
|
-
e.content ? (r(), i(O, { key: 0 }, {
|
|
121
|
-
default: n(() => [
|
|
122
|
-
c(a(y), f(g({ ...a(u), ...o.$attrs })), {
|
|
123
|
-
default: n(() => [
|
|
124
|
-
c(z, { "as-child": "" }, {
|
|
125
|
-
default: n(() => [
|
|
126
|
-
l(o.$slots, "default")
|
|
127
|
-
]),
|
|
128
|
-
_: 3
|
|
129
|
-
}),
|
|
130
|
-
c(A, { side: e.side }, {
|
|
131
|
-
default: n(() => [
|
|
132
|
-
$(v(e.content), 1)
|
|
133
|
-
]),
|
|
134
|
-
_: 1
|
|
135
|
-
}, 8, ["side"])
|
|
136
|
-
]),
|
|
137
|
-
_: 3
|
|
138
|
-
}, 16)
|
|
139
|
-
]),
|
|
140
|
-
_: 3
|
|
141
|
-
})) : l(o.$slots, "default", { key: 1 })
|
|
142
|
-
], 64)) : (r(), i(a(y), f(w({ key: 1 }, { ...a(u), ...o.$attrs })), {
|
|
143
|
-
default: n(() => [
|
|
144
|
-
l(o.$slots, "default")
|
|
145
|
-
]),
|
|
146
|
-
_: 3
|
|
147
|
-
}, 16));
|
|
148
|
-
}
|
|
149
|
-
});
|
|
150
|
-
function L(e) {
|
|
151
|
-
e.preventDefault(), (e.target.closest('[role="menu"]') || e.target).querySelector("a")?.focus();
|
|
152
|
-
}
|
|
153
|
-
export {
|
|
154
|
-
K as _,
|
|
155
|
-
A as a,
|
|
156
|
-
O as b,
|
|
157
|
-
z as c,
|
|
158
|
-
L as f
|
|
159
|
-
};
|
package/dist/i18n-Cktw9hIu.mjs
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import r from "i18next";
|
|
2
|
-
import { getCurrentInstance as c, inject as _ } from "vue";
|
|
3
|
-
const o = {
|
|
4
|
-
en: {
|
|
5
|
-
general_close: "Close",
|
|
6
|
-
general_dialog_title: "Dialog",
|
|
7
|
-
"general_misc_copied-text": "Copied!",
|
|
8
|
-
"room_bottom-bar_controls-label_more": "More"
|
|
9
|
-
},
|
|
10
|
-
fr: {
|
|
11
|
-
general_close: "Fermer",
|
|
12
|
-
general_dialog_title: "Dialog",
|
|
13
|
-
"general_misc_copied-text": "Copié !",
|
|
14
|
-
"room_bottom-bar_controls-label_more": "Plus"
|
|
15
|
-
}
|
|
16
|
-
}, p = Object.freeze(Object.keys(o.en)), m = /* @__PURE__ */ Symbol("ui-vue-translator");
|
|
17
|
-
let i = null;
|
|
18
|
-
function b(n) {
|
|
19
|
-
i = n;
|
|
20
|
-
}
|
|
21
|
-
function s(n, e) {
|
|
22
|
-
if (!n) return null;
|
|
23
|
-
const t = n(e);
|
|
24
|
-
return typeof t == "string" && t !== e ? t : null;
|
|
25
|
-
}
|
|
26
|
-
function L(n) {
|
|
27
|
-
return a(null, n);
|
|
28
|
-
}
|
|
29
|
-
function A() {
|
|
30
|
-
const n = c() ? _(m, null) : null;
|
|
31
|
-
return (e) => a(n, e);
|
|
32
|
-
}
|
|
33
|
-
function a(n, e) {
|
|
34
|
-
const t = s(n, e);
|
|
35
|
-
if (t !== null) return t;
|
|
36
|
-
const l = s(i, e);
|
|
37
|
-
if (l !== null) return l;
|
|
38
|
-
if (r.isInitialized && r.exists(e))
|
|
39
|
-
return r.t(e);
|
|
40
|
-
const u = typeof document > "u" ? "en" : (document.documentElement.lang || "en").toLowerCase().split("-")[0];
|
|
41
|
-
return (o[u] || o.en)[e] ?? o.en[e] ?? e;
|
|
42
|
-
}
|
|
43
|
-
export {
|
|
44
|
-
p as B,
|
|
45
|
-
m as U,
|
|
46
|
-
b as s,
|
|
47
|
-
L as t,
|
|
48
|
-
A as u
|
|
49
|
-
};
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { ref as m } from "vue";
|
|
2
|
-
import { createEventHook as a } from "@vueuse/core";
|
|
3
|
-
let T = 1;
|
|
4
|
-
const d = {
|
|
5
|
-
success: 3 * 1e3,
|
|
6
|
-
info: 7 * 1e3
|
|
7
|
-
}, n = m([]);
|
|
8
|
-
function b() {
|
|
9
|
-
return {
|
|
10
|
-
toasts: n,
|
|
11
|
-
closeToast: c,
|
|
12
|
-
openToast: v,
|
|
13
|
-
cancelCloseTimer: E
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
function v(e) {
|
|
17
|
-
let t, i = n.value.find((o) => o.id === e.id);
|
|
18
|
-
const s = a(), r = a();
|
|
19
|
-
if (i)
|
|
20
|
-
t = i.id, Object.assign(i, {
|
|
21
|
-
...e
|
|
22
|
-
}), e.id && Object.keys(e).length === 1 && u(i);
|
|
23
|
-
else {
|
|
24
|
-
t = e.id ?? T++;
|
|
25
|
-
const o = e.type || "info", l = o === "success" || o === "info", f = e.time === !0 ? l ? d[o] : void 0 : typeof e.time == "number" ? e.time : void 0;
|
|
26
|
-
i = {
|
|
27
|
-
...e,
|
|
28
|
-
id: t,
|
|
29
|
-
closeTimer: null,
|
|
30
|
-
confirmEventHook: s,
|
|
31
|
-
cancelEventHook: r,
|
|
32
|
-
time: f,
|
|
33
|
-
type: o
|
|
34
|
-
}, n.value.push(i), u(i);
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
id: t,
|
|
38
|
-
close: () => {
|
|
39
|
-
c(t);
|
|
40
|
-
},
|
|
41
|
-
onConfirm: s.on,
|
|
42
|
-
onCancel: r.on
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
function c(e) {
|
|
46
|
-
const t = n.value.find((i) => i.id === e);
|
|
47
|
-
t && (clearTimeout(t.closeTimer), y(e));
|
|
48
|
-
}
|
|
49
|
-
function E(e) {
|
|
50
|
-
const t = n.value.find((i) => i.id === e);
|
|
51
|
-
t && clearTimeout(t.closeTimer);
|
|
52
|
-
}
|
|
53
|
-
function h() {
|
|
54
|
-
n.value = [];
|
|
55
|
-
}
|
|
56
|
-
function y(e) {
|
|
57
|
-
const t = n.value.findIndex((i) => i.id === e);
|
|
58
|
-
t !== -1 && n.value.splice(t, 1);
|
|
59
|
-
}
|
|
60
|
-
function u(e) {
|
|
61
|
-
e.time && (e.closeTimer = setTimeout(
|
|
62
|
-
() => {
|
|
63
|
-
c(e.id);
|
|
64
|
-
},
|
|
65
|
-
e.time
|
|
66
|
-
));
|
|
67
|
-
}
|
|
68
|
-
export {
|
|
69
|
-
E as a,
|
|
70
|
-
c,
|
|
71
|
-
v as o,
|
|
72
|
-
h as r,
|
|
73
|
-
b as u
|
|
74
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./UiAvatar.vue";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./UiAvatarList.vue";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as UiBadge } from './UiBadge.vue';
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { type Slot } from 'vue';
|
|
2
|
-
interface UiDialogMarketplaceHeaderProps {
|
|
3
|
-
icon?: string;
|
|
4
|
-
logo?: string;
|
|
5
|
-
title: string;
|
|
6
|
-
description?: string;
|
|
7
|
-
gradientColor?: string;
|
|
8
|
-
images?: string[];
|
|
9
|
-
}
|
|
10
|
-
type __VLS_Slots = {
|
|
11
|
-
switch(): Slot;
|
|
12
|
-
carousel(): Slot;
|
|
13
|
-
};
|
|
14
|
-
declare const __VLS_base: import("vue").DefineComponent<UiDialogMarketplaceHeaderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<UiDialogMarketplaceHeaderProps> & Readonly<{}>, {
|
|
15
|
-
icon: string;
|
|
16
|
-
description: string;
|
|
17
|
-
logo: string;
|
|
18
|
-
gradientColor: string;
|
|
19
|
-
images: string[];
|
|
20
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
22
|
-
declare const _default: typeof __VLS_export;
|
|
23
|
-
export default _default;
|
|
24
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
25
|
-
new (): {
|
|
26
|
-
$slots: S;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { default as UiDialog } from './UiDialog.vue';
|
|
2
|
-
export { default as UiDialogTrigger } from './UiDialogTrigger.vue';
|
|
3
|
-
export { default as UiDialogContent } from './UiDialogContent.vue';
|
|
4
|
-
export { default as UiDialogFooter } from './UiDialogFooter.vue';
|
|
5
|
-
export { default as UiDialogClose } from './UiDialogClose.vue';
|
|
6
|
-
export { default as UiDialogMarketplaceHeader } from './MarketplaceHeaderExample.vue';
|
|
7
|
-
export { DialogClose, DialogDescription, DialogTitle, type DialogRootProps, type DialogRootEmits, type DialogContentProps, type DialogContentEmits, } from 'reka-ui';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as UiFieldWrapper } from './UiFieldWrapper.vue';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as UiInputEmoji } from './UiInputEmoji.vue';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export { default as UiMenu } from './UiMenu.vue';
|
|
2
|
-
export { default as UiMenuTrigger } from './UiMenuTrigger.vue';
|
|
3
|
-
export { default as UiMenuContent } from './UiMenuContent.vue';
|
|
4
|
-
export { default as UiMenuItem } from './UiMenuItem.vue';
|
|
5
|
-
export { default as UiMenuGroup } from './UiMenuGroup.vue';
|
|
6
|
-
export { default as UiMenuLabel } from './UiMenuLabel.vue';
|
|
7
|
-
export { default as UiMenuSub } from './UiMenuSub.vue';
|
|
8
|
-
export { default as UiMenuSubTrigger } from './UiMenuSubTrigger.vue';
|
|
9
|
-
export { default as UiMenuSubContent } from './UiMenuSubContent.vue';
|
|
10
|
-
export { default as UiMenuSeparator } from './UiMenuSeparator.vue';
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
namespace props {
|
|
3
|
-
export namespace href {
|
|
4
|
-
export let type: StringConstructor;
|
|
5
|
-
let _default: null;
|
|
6
|
-
export { _default as default };
|
|
7
|
-
}
|
|
8
|
-
export namespace to {
|
|
9
|
-
let type_1: ObjectConstructor;
|
|
10
|
-
export { type_1 as type };
|
|
11
|
-
let _default_1: null;
|
|
12
|
-
export { _default_1 as default };
|
|
13
|
-
}
|
|
14
|
-
export namespace type_2 {
|
|
15
|
-
let type_3: StringConstructor;
|
|
16
|
-
export { type_3 as type };
|
|
17
|
-
let _default_2: string;
|
|
18
|
-
export { _default_2 as default };
|
|
19
|
-
}
|
|
20
|
-
export { type_2 as type };
|
|
21
|
-
export namespace value {
|
|
22
|
-
let _default_3: null;
|
|
23
|
-
export { _default_3 as default };
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
namespace computed {
|
|
27
|
-
function component(): any;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
export default _default;
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { useStorage as A } from "@vueuse/core";
|
|
2
|
-
import { computed as d, watch as f, ref as E, getCurrentInstance as b } from "vue";
|
|
3
|
-
const T = {
|
|
4
|
-
LIVESTORM: "Livestorm",
|
|
5
|
-
CUSTOMER1: "customer1",
|
|
6
|
-
CUSTOMER2: "customer2",
|
|
7
|
-
CUSTOMER3: "customer3"
|
|
8
|
-
}, p = {
|
|
9
|
-
LIGHT: "light",
|
|
10
|
-
DARK: "dark"
|
|
11
|
-
}, y = Object.values(T), C = Object.values(p);
|
|
12
|
-
Object.fromEntries(
|
|
13
|
-
Object.entries(T).map(([e, t]) => [e.toLowerCase(), t])
|
|
14
|
-
);
|
|
15
|
-
const I = ["signup", "signin", "forgot-password", "reset-password"], R = {
|
|
16
|
-
theme: T.LIVESTORM,
|
|
17
|
-
mode: p.DARK,
|
|
18
|
-
contentMode: p.LIGHT
|
|
19
|
-
}, i = E(/* @__PURE__ */ new Map()), v = E(/* @__PURE__ */ new Map()), o = A(
|
|
20
|
-
"themeAndMode",
|
|
21
|
-
R
|
|
22
|
-
);
|
|
23
|
-
function k({ themeOverride: e, modeOverride: t, contentModeOverride: n } = {}) {
|
|
24
|
-
const s = !!(e || t || n), a = e || o.value.theme, r = t || o.value.mode, S = n || o.value.contentMode;
|
|
25
|
-
function O() {
|
|
26
|
-
document.querySelector("body").setAttribute("data-colors-primitive", a), document.querySelector("body").setAttribute("data-colors-semantic", r), H();
|
|
27
|
-
}
|
|
28
|
-
function g() {
|
|
29
|
-
const l = () => t || o.value.mode, c = () => n || o.value.contentMode;
|
|
30
|
-
f(
|
|
31
|
-
() => Array.from(i.value.values()),
|
|
32
|
-
() => D({ mode: l(), hasOverrides: s }),
|
|
33
|
-
{ immediate: !0 }
|
|
34
|
-
), f(
|
|
35
|
-
() => Array.from(v.value.values()),
|
|
36
|
-
() => M({ mode: c(), hasOverrides: s }),
|
|
37
|
-
{ immediate: !0 }
|
|
38
|
-
);
|
|
39
|
-
const m = b();
|
|
40
|
-
f(
|
|
41
|
-
() => m?.appContext.config.globalProperties.$route?.name,
|
|
42
|
-
(u) => {
|
|
43
|
-
u && I.includes(u.toString()) && M({ mode: c(), hasOverrides: s });
|
|
44
|
-
},
|
|
45
|
-
{ immediate: !0 }
|
|
46
|
-
);
|
|
47
|
-
}
|
|
48
|
-
function h(l, { selector: c, element: m, modeOverride: u }) {
|
|
49
|
-
(l === "mode" ? i : v).value.set(c, { element: m, modeOverride: u });
|
|
50
|
-
}
|
|
51
|
-
return {
|
|
52
|
-
initOnAppMounted: O,
|
|
53
|
-
registerWatchers: g,
|
|
54
|
-
addElementToWatch: h,
|
|
55
|
-
updateContentMode: w,
|
|
56
|
-
updateTheme: L,
|
|
57
|
-
updateMode: _,
|
|
58
|
-
themeList: y,
|
|
59
|
-
modeOptions: C,
|
|
60
|
-
theme: a,
|
|
61
|
-
mode: r,
|
|
62
|
-
contentMode: S,
|
|
63
|
-
// Reactive counterparts of the values above, which are captured once at
|
|
64
|
-
// call time. Bind to these when the UI must follow external updates to the
|
|
65
|
-
// stored state (e.g. ThemePicker reflecting a mode set elsewhere).
|
|
66
|
-
currentTheme: d(() => e || o.value.theme),
|
|
67
|
-
currentMode: d(() => t || o.value.mode),
|
|
68
|
-
currentContentMode: d(() => n || o.value.contentMode)
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
function L(e) {
|
|
72
|
-
o.value.theme = e, document.querySelector("body").setAttribute("data-colors-primitive", e);
|
|
73
|
-
}
|
|
74
|
-
function _(e) {
|
|
75
|
-
o.value.mode = e, document.querySelector("body").setAttribute("data-colors-semantic", e), i.value.get('[data-name="ui-page-wrapper"]')?.element.setAttribute("data-colors-semantic", e);
|
|
76
|
-
}
|
|
77
|
-
function w(e) {
|
|
78
|
-
M({ mode: e, hasOverrides: !1, ignoreElementOverrides: !0 });
|
|
79
|
-
}
|
|
80
|
-
function D({ mode: e, hasOverrides: t = !1 }) {
|
|
81
|
-
t || (o.value.mode = e);
|
|
82
|
-
for (const { element: n, modeOverride: s } of i.value.values()) {
|
|
83
|
-
const a = s || e;
|
|
84
|
-
n.setAttribute("data-colors-semantic", a);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
function M({ mode: e, hasOverrides: t = !1, ignoreElementOverrides: n = !1 }) {
|
|
88
|
-
t || (o.value.contentMode = e);
|
|
89
|
-
for (const { element: s, modeOverride: a } of v.value.values()) {
|
|
90
|
-
const r = n ? e : a || e;
|
|
91
|
-
s.setAttribute("data-colors-semantic", r);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
const U = "customThemeTokens";
|
|
95
|
-
function H() {
|
|
96
|
-
try {
|
|
97
|
-
if (localStorage.getItem("ls-internal-theming") !== "true") return;
|
|
98
|
-
const e = localStorage.getItem(U);
|
|
99
|
-
if (!e) return;
|
|
100
|
-
const t = JSON.parse(e);
|
|
101
|
-
for (const [n, s] of Object.entries(t))
|
|
102
|
-
document.documentElement.style.setProperty(n, s);
|
|
103
|
-
} catch {
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
export {
|
|
107
|
-
k as u
|
|
108
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './UiAvatar.vue'
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './UiAvatarList.vue'
|