@eslamdevui/ui 3.3.0 → 3.3.2-beta.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/.nuxt/ui/button.ts +42 -42
- package/.nuxt/ui/command-palette.ts +2 -1
- package/.nuxt/ui/file-upload.ts +295 -0
- package/.nuxt/ui/index.ts +2 -0
- package/.nuxt/ui/kbd.ts +167 -3
- package/.nuxt/ui/scroll-to-section.ts +3 -0
- package/.nuxt/ui/table.ts +14 -0
- package/.nuxt/ui/tabs.ts +4 -2
- package/.nuxt/ui/toast.ts +8 -15
- package/.nuxt/ui/tooltip.ts +1 -1
- package/cli/templates.mjs +4 -3
- package/dist/module.d.mts +15 -1
- package/dist/module.json +2 -2
- package/dist/module.mjs +3 -3
- package/dist/runtime/components/Accordion.vue.d.ts +1 -1
- package/dist/runtime/components/Alert.vue.d.ts +2 -2
- package/dist/runtime/components/App.vue.d.ts +1 -1
- package/dist/runtime/components/Avatar.vue.d.ts +1 -1
- package/dist/runtime/components/AvatarGroup.vue.d.ts +1 -1
- package/dist/runtime/components/Badge.vue.d.ts +1 -1
- package/dist/runtime/components/Banner.vue.d.ts +1 -5
- package/dist/runtime/components/BlogPost.vue.d.ts +1 -1
- package/dist/runtime/components/BlogPosts.vue.d.ts +1 -1
- package/dist/runtime/components/Breadcrumb.vue.d.ts +1 -1
- package/dist/runtime/components/Button.vue +6 -6
- package/dist/runtime/components/Button.vue.d.ts +1 -5
- package/dist/runtime/components/ButtonGroup.vue.d.ts +1 -1
- package/dist/runtime/components/Calendar.vue.d.ts +1 -1
- package/dist/runtime/components/Card.vue.d.ts +1 -1
- package/dist/runtime/components/Carousel.vue +18 -14
- package/dist/runtime/components/Carousel.vue.d.ts +1 -1
- package/dist/runtime/components/ChangelogVersion.vue.d.ts +1 -1
- package/dist/runtime/components/ChangelogVersions.vue.d.ts +1 -1
- package/dist/runtime/components/ChatMessage.vue.d.ts +4 -8
- package/dist/runtime/components/ChatMessages.vue.d.ts +1 -1
- package/dist/runtime/components/ChatPalette.vue.d.ts +1 -1
- package/dist/runtime/components/ChatPrompt.vue.d.ts +1 -1
- package/dist/runtime/components/ChatPromptSubmit.vue.d.ts +1 -1
- package/dist/runtime/components/Checkbox.vue.d.ts +1 -1
- package/dist/runtime/components/CheckboxGroup.vue.d.ts +1 -1
- package/dist/runtime/components/Chip.vue.d.ts +2 -2
- package/dist/runtime/components/Collapsible.vue.d.ts +1 -1
- package/dist/runtime/components/ColorPicker.vue +1 -2
- package/dist/runtime/components/ColorPicker.vue.d.ts +1 -1
- package/dist/runtime/components/CommandPalette.vue +4 -0
- package/dist/runtime/components/CommandPalette.vue.d.ts +9 -4
- package/dist/runtime/components/Container.vue.d.ts +1 -1
- package/dist/runtime/components/ContextMenu.vue.d.ts +1 -1
- package/dist/runtime/components/ContextMenuContent.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardGroup.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardNavbar.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardPanel.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardResizeHandle.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardSearchButton.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardSidebar.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardSidebarCollapse.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardSidebarToggle.vue +5 -2
- package/dist/runtime/components/DashboardSidebarToggle.vue.d.ts +1 -1
- package/dist/runtime/components/DashboardToolbar.vue.d.ts +3 -3
- package/dist/runtime/components/Drawer.vue +4 -4
- package/dist/runtime/components/Drawer.vue.d.ts +6 -1
- package/dist/runtime/components/DropdownMenu.vue.d.ts +1 -1
- package/dist/runtime/components/DropdownMenuContent.vue.d.ts +8 -5
- package/dist/runtime/components/Error.vue.d.ts +1 -1
- package/dist/runtime/components/FileUpload.vue +242 -0
- package/dist/runtime/components/FileUpload.vue.d.ts +167 -0
- package/dist/runtime/components/Footer.vue.d.ts +1 -1
- package/dist/runtime/components/FooterColumns.vue.d.ts +1 -1
- package/dist/runtime/components/Form.vue.d.ts +5 -4
- package/dist/runtime/components/FormField.vue +2 -2
- package/dist/runtime/components/FormField.vue.d.ts +4 -4
- package/dist/runtime/components/Header.vue.d.ts +1 -1
- package/dist/runtime/components/Icon.vue.d.ts +1 -1
- package/dist/runtime/components/Input.vue +10 -7
- package/dist/runtime/components/Input.vue.d.ts +9 -9
- package/dist/runtime/components/InputMenu.vue +17 -10
- package/dist/runtime/components/InputMenu.vue.d.ts +17 -14
- package/dist/runtime/components/InputNumber.vue.d.ts +4 -4
- package/dist/runtime/components/InputTags.vue +2 -0
- package/dist/runtime/components/InputTags.vue.d.ts +5 -3
- package/dist/runtime/components/Kbd.vue +2 -1
- package/dist/runtime/components/Kbd.vue.d.ts +5 -1
- package/dist/runtime/components/Link.vue +6 -5
- package/dist/runtime/components/Link.vue.d.ts +1 -3
- package/dist/runtime/components/LinkBase.vue.d.ts +1 -1
- package/dist/runtime/components/Main.vue.d.ts +1 -1
- package/dist/runtime/components/Modal.vue.d.ts +2 -2
- package/dist/runtime/components/NavigationMenu.vue +3 -2
- package/dist/runtime/components/NavigationMenu.vue.d.ts +1 -1
- package/dist/runtime/components/OverlayProvider.vue.d.ts +1 -1
- package/dist/runtime/components/Page.vue.d.ts +1 -1
- package/dist/runtime/components/PageAccordion.vue.d.ts +1 -1
- package/dist/runtime/components/PageAnchors.vue.d.ts +1 -1
- package/dist/runtime/components/PageAside.vue.d.ts +1 -1
- package/dist/runtime/components/PageBody.vue.d.ts +1 -1
- package/dist/runtime/components/PageCTA.vue.d.ts +1 -1
- package/dist/runtime/components/PageCard.vue.d.ts +1 -1
- package/dist/runtime/components/PageColumns.vue.d.ts +1 -1
- package/dist/runtime/components/PageFeature.vue.d.ts +1 -1
- package/dist/runtime/components/PageGrid.vue.d.ts +1 -1
- package/dist/runtime/components/PageHeader.vue.d.ts +1 -1
- package/dist/runtime/components/PageHero.vue.d.ts +1 -1
- package/dist/runtime/components/PageLinks.vue.d.ts +1 -1
- package/dist/runtime/components/PageList.vue.d.ts +1 -1
- package/dist/runtime/components/PageLogos.vue.d.ts +1 -1
- package/dist/runtime/components/PageMarquee.vue.d.ts +1 -1
- package/dist/runtime/components/PageSection.vue.d.ts +1 -1
- package/dist/runtime/components/Pagination.vue.d.ts +1 -1
- package/dist/runtime/components/PinInput.vue.d.ts +1 -1
- package/dist/runtime/components/Popover.vue +2 -1
- package/dist/runtime/components/Popover.vue.d.ts +8 -2
- package/dist/runtime/components/PricingPlan.vue.d.ts +1 -1
- package/dist/runtime/components/PricingPlans.vue.d.ts +1 -1
- package/dist/runtime/components/PricingTable.vue +90 -33
- package/dist/runtime/components/PricingTable.vue.d.ts +1 -1
- package/dist/runtime/components/Progress.vue.d.ts +1 -1
- package/dist/runtime/components/RadioGroup.vue +1 -1
- package/dist/runtime/components/RadioGroup.vue.d.ts +5 -4
- package/dist/runtime/components/ScrollToSection.vue +62 -0
- package/dist/runtime/components/ScrollToSection.vue.d.ts +36 -0
- package/dist/runtime/components/Select.vue.d.ts +1 -1
- package/dist/runtime/components/SelectMenu.vue +9 -6
- package/dist/runtime/components/SelectMenu.vue.d.ts +4 -4
- package/dist/runtime/components/Separator.vue.d.ts +1 -1
- package/dist/runtime/components/Skeleton.vue.d.ts +1 -1
- package/dist/runtime/components/Slideover.vue.d.ts +2 -2
- package/dist/runtime/components/Slider.vue.d.ts +5 -5
- package/dist/runtime/components/Stepper.vue.d.ts +1 -1
- package/dist/runtime/components/Switch.vue.d.ts +1 -1
- package/dist/runtime/components/Table.vue +83 -8
- package/dist/runtime/components/Table.vue.d.ts +20 -4
- package/dist/runtime/components/Tabs.vue +26 -5
- package/dist/runtime/components/Tabs.vue.d.ts +8 -3
- package/dist/runtime/components/Textarea.vue +10 -7
- package/dist/runtime/components/Textarea.vue.d.ts +10 -9
- package/dist/runtime/components/Timeline.vue.d.ts +1 -1
- package/dist/runtime/components/Toast.vue +12 -4
- package/dist/runtime/components/Toast.vue.d.ts +14 -13
- package/dist/runtime/components/Toaster.vue.d.ts +1 -1
- package/dist/runtime/components/Tooltip.vue +2 -1
- package/dist/runtime/components/Tooltip.vue.d.ts +8 -2
- package/dist/runtime/components/Tree.vue +3 -2
- package/dist/runtime/components/Tree.vue.d.ts +1 -1
- package/dist/runtime/components/User.vue.d.ts +1 -1
- package/dist/runtime/components/color-mode/ColorModeAvatar.vue.d.ts +1 -1
- package/dist/runtime/components/color-mode/ColorModeButton.vue.d.ts +1 -1
- package/dist/runtime/components/color-mode/ColorModeImage.vue.d.ts +1 -1
- package/dist/runtime/components/color-mode/ColorModeSelect.vue +1 -1
- package/dist/runtime/components/color-mode/ColorModeSelect.vue.d.ts +1 -1
- package/dist/runtime/components/color-mode/ColorModeSwitch.vue.d.ts +1 -1
- package/dist/runtime/components/content/ContentNavigation.vue.d.ts +1 -1
- package/dist/runtime/components/content/ContentSearch.vue +17 -7
- package/dist/runtime/components/content/ContentSearchButton.vue.d.ts +1 -1
- package/dist/runtime/components/content/ContentSurround.vue +10 -4
- package/dist/runtime/components/content/ContentSurround.vue.d.ts +1 -1
- package/dist/runtime/components/content/ContentToc.vue.d.ts +1 -1
- package/dist/runtime/components/locale/LocaleSelect.vue.d.ts +1 -1
- package/dist/runtime/components/prose/A.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Accordion.vue.d.ts +1 -1
- package/dist/runtime/components/prose/AccordionItem.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Badge.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Blockquote.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Callout.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Card.vue.d.ts +1 -1
- package/dist/runtime/components/prose/CardGroup.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Code.vue.d.ts +1 -1
- package/dist/runtime/components/prose/CodeCollapse.vue.d.ts +1 -1
- package/dist/runtime/components/prose/CodeGroup.vue.d.ts +1 -1
- package/dist/runtime/components/prose/CodeIcon.vue.d.ts +1 -1
- package/dist/runtime/components/prose/CodePreview.vue.d.ts +1 -1
- package/dist/runtime/components/prose/CodeTree.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Collapsible.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Em.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Field.vue.d.ts +1 -1
- package/dist/runtime/components/prose/FieldGroup.vue.d.ts +1 -1
- package/dist/runtime/components/prose/H1.vue.d.ts +1 -1
- package/dist/runtime/components/prose/H2.vue.d.ts +1 -1
- package/dist/runtime/components/prose/H3.vue.d.ts +1 -1
- package/dist/runtime/components/prose/H4.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Hr.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Icon.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Img.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Kbd.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Li.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Ol.vue.d.ts +1 -1
- package/dist/runtime/components/prose/P.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Pre.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Script.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Steps.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Strong.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Table.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Tabs.vue.d.ts +1 -1
- package/dist/runtime/components/prose/TabsItem.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Tbody.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Td.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Th.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Thead.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Tr.vue.d.ts +1 -1
- package/dist/runtime/components/prose/Ul.vue.d.ts +1 -1
- package/dist/runtime/components/prose/callout/Caution.vue.d.ts +3 -3
- package/dist/runtime/components/prose/callout/Note.vue.d.ts +3 -3
- package/dist/runtime/components/prose/callout/Tip.vue.d.ts +3 -3
- package/dist/runtime/components/prose/callout/Warning.vue.d.ts +3 -3
- package/dist/runtime/composables/defineShortcuts.js +5 -3
- package/dist/runtime/composables/useBreakpoint.js +8 -8
- package/dist/runtime/composables/useFileUpload.d.ts +19 -0
- package/dist/runtime/composables/useFileUpload.js +63 -0
- package/dist/runtime/composables/useFormField.d.ts +1 -4
- package/dist/runtime/composables/useFormField.js +5 -2
- package/dist/runtime/composables/useKbd.d.ts +1 -1
- package/dist/runtime/composables/useLocale.js +2 -2
- package/dist/runtime/composables/useOverlay.d.ts +28 -1
- package/dist/runtime/composables/useOverlay.js +4 -4
- package/dist/runtime/inertia/components/Link.vue.d.ts +1 -1
- package/dist/runtime/inertia/components/LinkBase.vue.d.ts +1 -1
- package/dist/runtime/inertia/stubs.d.ts +1 -0
- package/dist/runtime/inertia/stubs.js +4 -2
- package/dist/runtime/locale/ar.js +2 -1
- package/dist/runtime/locale/az.js +1 -0
- package/dist/runtime/locale/bg.js +1 -0
- package/dist/runtime/locale/bn.js +1 -0
- package/dist/runtime/locale/ca.js +1 -0
- package/dist/runtime/locale/ckb.js +2 -1
- package/dist/runtime/locale/cs.js +1 -0
- package/dist/runtime/locale/da.js +1 -0
- package/dist/runtime/locale/de.js +1 -0
- package/dist/runtime/locale/el.js +1 -0
- package/dist/runtime/locale/en.js +1 -0
- package/dist/runtime/locale/es.js +1 -0
- package/dist/runtime/locale/et.js +1 -0
- package/dist/runtime/locale/fa_ir.js +1 -0
- package/dist/runtime/locale/fi.js +1 -0
- package/dist/runtime/locale/fr.js +1 -0
- package/dist/runtime/locale/he.js +1 -0
- package/dist/runtime/locale/hi.js +2 -1
- package/dist/runtime/locale/hu.js +1 -0
- package/dist/runtime/locale/hy.js +1 -0
- package/dist/runtime/locale/id.js +1 -0
- package/dist/runtime/locale/it.js +1 -0
- package/dist/runtime/locale/ja.js +1 -0
- package/dist/runtime/locale/kk.js +1 -0
- package/dist/runtime/locale/km.js +2 -1
- package/dist/runtime/locale/ko.js +1 -0
- package/dist/runtime/locale/ky.js +1 -0
- package/dist/runtime/locale/lb.js +1 -0
- package/dist/runtime/locale/lt.js +1 -0
- package/dist/runtime/locale/mn.js +1 -0
- package/dist/runtime/locale/ms.js +1 -0
- package/dist/runtime/locale/nb_no.js +1 -0
- package/dist/runtime/locale/nl.js +1 -0
- package/dist/runtime/locale/pl.js +1 -0
- package/dist/runtime/locale/pt.js +1 -0
- package/dist/runtime/locale/pt_br.js +1 -0
- package/dist/runtime/locale/ro.js +1 -0
- package/dist/runtime/locale/ru.js +1 -0
- package/dist/runtime/locale/sk.js +1 -0
- package/dist/runtime/locale/sl.js +1 -0
- package/dist/runtime/locale/sv.js +1 -0
- package/dist/runtime/locale/th.js +1 -0
- package/dist/runtime/locale/tj.js +1 -0
- package/dist/runtime/locale/tr.js +1 -0
- package/dist/runtime/locale/ug_cn.js +1 -0
- package/dist/runtime/locale/uk.js +1 -0
- package/dist/runtime/locale/ur.js +1 -0
- package/dist/runtime/locale/uz.js +1 -0
- package/dist/runtime/locale/vi.js +1 -0
- package/dist/runtime/locale/zh_cn.js +1 -0
- package/dist/runtime/locale/zh_tw.js +1 -0
- package/dist/runtime/types/index.d.ts +2 -0
- package/dist/runtime/types/index.js +2 -0
- package/dist/runtime/types/locale.d.ts +1 -0
- package/dist/runtime/utils/content.d.ts +18 -6
- package/dist/runtime/utils/content.js +51 -25
- package/dist/runtime/utils/index.d.ts +1 -0
- package/dist/runtime/utils/index.js +9 -0
- package/dist/runtime/vue/components/Icon.vue.d.ts +1 -1
- package/dist/runtime/vue/components/Link.vue.d.ts +1 -1
- package/dist/runtime/vue/components/color-mode/ColorModeButton.vue.d.ts +1 -1
- package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue +1 -1
- package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue.d.ts +1 -1
- package/dist/runtime/vue/components/color-mode/ColorModeSwitch.vue.d.ts +1 -1
- package/dist/runtime/vue/stubs.d.ts +1 -0
- package/dist/runtime/vue/stubs.js +3 -1
- package/dist/shared/{ui.i6pGHFq6.mjs → ui.CgUuvRXi.mjs} +282 -29
- package/dist/unplugin.d.mts +2 -1
- package/dist/unplugin.mjs +6 -3
- package/dist/vite.mjs +1 -1
- package/package.json +57 -41
|
@@ -6,7 +6,7 @@ import theme from "#build/ui/carousel";
|
|
|
6
6
|
import { computed, ref, watch, onMounted } from "vue";
|
|
7
7
|
import useEmblaCarousel from "embla-carousel-vue";
|
|
8
8
|
import { Primitive, useForwardProps } from "reka-ui";
|
|
9
|
-
import { reactivePick
|
|
9
|
+
import { reactivePick } from "@vueuse/core";
|
|
10
10
|
import { useAppConfig } from "#imports";
|
|
11
11
|
import { useLocale } from "../composables/useLocale";
|
|
12
12
|
import { tv } from "../utils/tv";
|
|
@@ -62,34 +62,36 @@ const options = computed(() => ({
|
|
|
62
62
|
axis: props.orientation === "horizontal" ? "x" : "y",
|
|
63
63
|
direction: dir.value === "rtl" ? "rtl" : "ltr"
|
|
64
64
|
}));
|
|
65
|
-
const plugins =
|
|
66
|
-
|
|
65
|
+
const plugins = ref([]);
|
|
66
|
+
async function loadPlugins() {
|
|
67
|
+
const emblaPlugins = [];
|
|
67
68
|
if (props.autoplay) {
|
|
68
69
|
const AutoplayPlugin = await import("embla-carousel-autoplay").then((r) => r.default);
|
|
69
|
-
|
|
70
|
+
emblaPlugins.push(AutoplayPlugin(typeof props.autoplay === "boolean" ? {} : props.autoplay));
|
|
70
71
|
}
|
|
71
72
|
if (props.autoScroll) {
|
|
72
73
|
const AutoScrollPlugin = await import("embla-carousel-auto-scroll").then((r) => r.default);
|
|
73
|
-
|
|
74
|
+
emblaPlugins.push(AutoScrollPlugin(typeof props.autoScroll === "boolean" ? {} : props.autoScroll));
|
|
74
75
|
}
|
|
75
76
|
if (props.autoHeight) {
|
|
76
77
|
const AutoHeightPlugin = await import("embla-carousel-auto-height").then((r) => r.default);
|
|
77
|
-
|
|
78
|
+
emblaPlugins.push(AutoHeightPlugin(typeof props.autoHeight === "boolean" ? {} : props.autoHeight));
|
|
78
79
|
}
|
|
79
80
|
if (props.classNames) {
|
|
80
81
|
const ClassNamesPlugin = await import("embla-carousel-class-names").then((r) => r.default);
|
|
81
|
-
|
|
82
|
+
emblaPlugins.push(ClassNamesPlugin(typeof props.classNames === "boolean" ? {} : props.classNames));
|
|
82
83
|
}
|
|
83
84
|
if (props.fade) {
|
|
84
85
|
const FadePlugin = await import("embla-carousel-fade").then((r) => r.default);
|
|
85
|
-
|
|
86
|
+
emblaPlugins.push(FadePlugin(typeof props.fade === "boolean" ? {} : props.fade));
|
|
86
87
|
}
|
|
87
88
|
if (props.wheelGestures) {
|
|
88
89
|
const { WheelGesturesPlugin } = await import("embla-carousel-wheel-gestures");
|
|
89
|
-
|
|
90
|
+
emblaPlugins.push(WheelGesturesPlugin(typeof props.wheelGestures === "boolean" ? {} : props.wheelGestures));
|
|
90
91
|
}
|
|
91
|
-
|
|
92
|
-
}
|
|
92
|
+
plugins.value = emblaPlugins;
|
|
93
|
+
}
|
|
94
|
+
watch(() => [props.autoplay, props.autoScroll, props.autoHeight, props.classNames, props.fade, props.wheelGestures], loadPlugins, { immediate: true });
|
|
93
95
|
const [emblaRef, emblaApi] = useEmblaCarousel(options.value, plugins.value);
|
|
94
96
|
watch([options, plugins], () => {
|
|
95
97
|
emblaApi.value?.reInit(options.value, plugins.value);
|
|
@@ -162,8 +164,7 @@ defineExpose({
|
|
|
162
164
|
<div
|
|
163
165
|
v-for="(item, index) in items"
|
|
164
166
|
:key="index"
|
|
165
|
-
|
|
166
|
-
aria-roledescription="slide"
|
|
167
|
+
v-bind="dots ? { role: 'tabpanel' } : { 'role': 'group', 'aria-roledescription': 'slide' }"
|
|
167
168
|
:class="ui.item({ class: [props.ui?.item, isCarouselItem(item) && item.ui?.item, isCarouselItem(item) && item.class] })"
|
|
168
169
|
>
|
|
169
170
|
<slot :item="item" :index="index" />
|
|
@@ -195,10 +196,13 @@ defineExpose({
|
|
|
195
196
|
/>
|
|
196
197
|
</div>
|
|
197
198
|
|
|
198
|
-
<div v-if="dots" :class="ui.dots({ class: props.ui?.dots })">
|
|
199
|
+
<div v-if="dots" role="tablist" :aria-label="t('carousel.dots')" :class="ui.dots({ class: props.ui?.dots })">
|
|
199
200
|
<template v-for="(_, index) in scrollSnaps" :key="index">
|
|
200
201
|
<button
|
|
202
|
+
type="button"
|
|
203
|
+
role="tab"
|
|
201
204
|
:aria-label="t('carousel.goto', { slide: index + 1 })"
|
|
205
|
+
:aria-selected="selectedIndex === index"
|
|
202
206
|
:class="ui.dot({ class: props.ui?.dot, active: selectedIndex === index })"
|
|
203
207
|
:data-state="selectedIndex === index ? 'active' : void 0"
|
|
204
208
|
@click="scrollTo(index)"
|
|
@@ -46,7 +46,7 @@ export interface ChangelogVersionSlots {
|
|
|
46
46
|
actions(props?: {}): any;
|
|
47
47
|
indicator(props?: {}): any;
|
|
48
48
|
}
|
|
49
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChangelogVersionProps,
|
|
49
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChangelogVersionProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ChangelogVersionProps> & Readonly<{}>, {
|
|
50
50
|
as: any;
|
|
51
51
|
indicator: boolean;
|
|
52
52
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ChangelogVersionSlots>;
|
|
@@ -62,7 +62,7 @@ export interface ChangelogVersionsSlots<T extends ChangelogVersionProps = Change
|
|
|
62
62
|
version: T;
|
|
63
63
|
}): any;
|
|
64
64
|
}
|
|
65
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChangelogVersionsProps<ChangelogVersionProps>,
|
|
65
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChangelogVersionsProps<ChangelogVersionProps>, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ChangelogVersionsProps<ChangelogVersionProps>> & Readonly<{}>, {
|
|
66
66
|
indicator: boolean;
|
|
67
67
|
indicatorMotion: boolean | SpringOptions;
|
|
68
68
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ChangelogVersionsSlots<ChangelogVersionProps>>;
|
|
@@ -98,28 +98,24 @@ export interface ChatMessageSlots {
|
|
|
98
98
|
})[] | undefined;
|
|
99
99
|
}): any;
|
|
100
100
|
}
|
|
101
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChatMessageProps,
|
|
101
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChatMessageProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ChatMessageProps> & Readonly<{}>, {
|
|
102
102
|
as: any;
|
|
103
103
|
variant: "solid" | "outline" | "soft" | "subtle" | "naked";
|
|
104
104
|
side: "right" | "left";
|
|
105
105
|
compact: boolean;
|
|
106
106
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
107
107
|
leading?: (props: {
|
|
108
|
-
avatar:
|
|
109
|
-
[key: string]: any;
|
|
110
|
-
}) | undefined;
|
|
108
|
+
avatar: any;
|
|
111
109
|
}) => any;
|
|
112
110
|
} & {
|
|
113
111
|
content?: (props: {
|
|
114
|
-
content:
|
|
112
|
+
content: any;
|
|
115
113
|
}) => any;
|
|
116
114
|
} & {
|
|
117
115
|
default?: (props: {}) => any;
|
|
118
116
|
} & {
|
|
119
117
|
actions?: (props: {
|
|
120
|
-
actions:
|
|
121
|
-
onClick?: ((e: MouseEvent, message: any) => void) | undefined;
|
|
122
|
-
})[] | undefined;
|
|
118
|
+
actions: any;
|
|
123
119
|
}) => any;
|
|
124
120
|
}>;
|
|
125
121
|
export default _default;
|
|
@@ -68,7 +68,7 @@ export interface ChatMessagesSlots {
|
|
|
68
68
|
message: Message;
|
|
69
69
|
}): any;
|
|
70
70
|
}
|
|
71
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChatMessagesProps,
|
|
71
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChatMessagesProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ChatMessagesProps> & Readonly<{}>, {
|
|
72
72
|
autoScroll: boolean | Partial<ButtonProps>;
|
|
73
73
|
shouldAutoScroll: boolean;
|
|
74
74
|
shouldScrollToBottom: boolean;
|
|
@@ -15,7 +15,7 @@ export interface ChatPaletteSlots {
|
|
|
15
15
|
default(props?: {}): any;
|
|
16
16
|
prompt(props?: {}): any;
|
|
17
17
|
}
|
|
18
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChatPaletteProps,
|
|
18
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChatPaletteProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ChatPaletteProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ChatPaletteSlots>;
|
|
19
19
|
export default _default;
|
|
20
20
|
type __VLS_WithSlots<T, S> = T & {
|
|
21
21
|
new (): {
|
|
@@ -49,8 +49,8 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChatPrompt
|
|
|
49
49
|
}>, {
|
|
50
50
|
as: any;
|
|
51
51
|
autofocus: boolean;
|
|
52
|
-
rows: number;
|
|
53
52
|
autoresize: boolean;
|
|
53
|
+
rows: number;
|
|
54
54
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ChatPromptSlots>;
|
|
55
55
|
export default _default;
|
|
56
56
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -76,7 +76,7 @@ export interface ChatPromptSubmitProps extends /** @vue-ignore */ Pick<ButtonPro
|
|
|
76
76
|
export interface ChatPromptSubmitEmits {
|
|
77
77
|
(e: 'stop' | 'reload'): void;
|
|
78
78
|
}
|
|
79
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChatPromptSubmitProps,
|
|
79
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChatPromptSubmitProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
80
80
|
stop: () => any;
|
|
81
81
|
reload: () => any;
|
|
82
82
|
}, string, import("vue").PublicProps, Readonly<ChatPromptSubmitProps> & Readonly<{
|
|
@@ -56,7 +56,7 @@ export interface CheckboxSlots {
|
|
|
56
56
|
}
|
|
57
57
|
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<CheckboxProps & {
|
|
58
58
|
modelValue?: boolean | "indeterminate";
|
|
59
|
-
},
|
|
59
|
+
}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
60
60
|
change: (payload: Event) => any;
|
|
61
61
|
"update:modelValue": (value: boolean | "indeterminate") => any;
|
|
62
62
|
}, string, import("vue").PublicProps, Readonly<CheckboxProps & {
|
|
@@ -31,7 +31,7 @@ export interface ChipProps {
|
|
|
31
31
|
ui?: Chip['slots'];
|
|
32
32
|
}
|
|
33
33
|
export interface ChipEmits {
|
|
34
|
-
|
|
34
|
+
'update:show': [payload: boolean];
|
|
35
35
|
}
|
|
36
36
|
export interface ChipSlots {
|
|
37
37
|
default(props?: {}): any;
|
|
@@ -39,7 +39,7 @@ export interface ChipSlots {
|
|
|
39
39
|
}
|
|
40
40
|
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChipProps & {
|
|
41
41
|
show?: boolean;
|
|
42
|
-
},
|
|
42
|
+
}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
43
43
|
"update:show": (value: boolean) => any;
|
|
44
44
|
}, string, import("vue").PublicProps, Readonly<ChipProps & {
|
|
45
45
|
show?: boolean;
|
|
@@ -20,7 +20,7 @@ export interface CollapsibleSlots {
|
|
|
20
20
|
}): any;
|
|
21
21
|
content(props?: {}): any;
|
|
22
22
|
}
|
|
23
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<CollapsibleProps,
|
|
23
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<CollapsibleProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
24
|
"update:open": (value: boolean) => any;
|
|
25
25
|
}, string, import("vue").PublicProps, Readonly<CollapsibleProps> & Readonly<{
|
|
26
26
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
@@ -14,7 +14,7 @@ function HSVtoHSL(hsv) {
|
|
|
14
14
|
return {
|
|
15
15
|
H: hsv.h,
|
|
16
16
|
S: x === 0 || x === 200 ? 0 : Math.round(hsv.s * hsv.v / (x <= 100 ? x : 200 - x)),
|
|
17
|
-
L:
|
|
17
|
+
L: x / 2
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
</script>
|
|
@@ -53,7 +53,6 @@ const pickedColor = computed({
|
|
|
53
53
|
},
|
|
54
54
|
set(value) {
|
|
55
55
|
const color = new ColorTranslator(HSVtoHSL(value), {
|
|
56
|
-
decimals: 2,
|
|
57
56
|
labUnit: "percent",
|
|
58
57
|
cmykUnit: "percent",
|
|
59
58
|
cmykFunction: "cmyk"
|
|
@@ -34,7 +34,7 @@ export type ColorPickerProps = {
|
|
|
34
34
|
};
|
|
35
35
|
declare const _default: import("vue").DefineComponent<ColorPickerProps & {
|
|
36
36
|
modelValue?: string;
|
|
37
|
-
},
|
|
37
|
+
}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
38
38
|
"update:modelValue": (value: string | undefined) => any;
|
|
39
39
|
}, string, import("vue").PublicProps, Readonly<ColorPickerProps & {
|
|
40
40
|
modelValue?: string;
|
|
@@ -142,6 +142,11 @@ export type CommandPaletteSlots<G extends CommandPaletteGroup<T> = CommandPalett
|
|
|
142
142
|
'empty'(props: {
|
|
143
143
|
searchTerm?: string;
|
|
144
144
|
}): any;
|
|
145
|
+
'footer'(props: {
|
|
146
|
+
ui: {
|
|
147
|
+
[K in keyof Required<CommandPalette['slots']>]: (props?: Record<string, any>) => string;
|
|
148
|
+
};
|
|
149
|
+
}): any;
|
|
145
150
|
'back'(props: {
|
|
146
151
|
ui: {
|
|
147
152
|
[K in keyof Required<CommandPalette['slots']>]: (props?: Record<string, any>) => string;
|
|
@@ -160,11 +165,11 @@ export type CommandPaletteSlots<G extends CommandPaletteGroup<T> = CommandPalett
|
|
|
160
165
|
declare const _default: <G extends CommandPaletteGroup<T>, T extends CommandPaletteItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
161
166
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
162
167
|
readonly "onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
168
|
+
readonly "onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
|
163
169
|
readonly onHighlight?: ((payload: {
|
|
164
170
|
ref: HTMLElement;
|
|
165
171
|
value: T;
|
|
166
172
|
} | undefined) => any) | undefined;
|
|
167
|
-
readonly "onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
|
168
173
|
readonly "onUpdate:searchTerm"?: ((value: string) => any) | undefined;
|
|
169
174
|
readonly onEntryFocus?: ((event: CustomEvent<any>) => any) | undefined;
|
|
170
175
|
readonly onLeave?: ((event: Event) => any) | undefined;
|
|
@@ -174,14 +179,14 @@ declare const _default: <G extends CommandPaletteGroup<T>, T extends CommandPale
|
|
|
174
179
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
175
180
|
attrs: any;
|
|
176
181
|
slots: CommandPaletteSlots<G, T>;
|
|
177
|
-
emit: (((evt: "update:open", value: boolean) => void) & ((evt: "highlight", payload: {
|
|
182
|
+
emit: (((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", value: T) => void) & ((evt: "highlight", payload: {
|
|
178
183
|
ref: HTMLElement;
|
|
179
184
|
value: T;
|
|
180
|
-
} | undefined) => void) & ((evt: "
|
|
185
|
+
} | undefined) => void) & ((evt: "entryFocus", event: CustomEvent<any>) => void) & ((evt: "leave", event: Event) => void)) & ((evt: "update:searchTerm", value: string) => void);
|
|
181
186
|
}>) => import("vue").VNode & {
|
|
182
187
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
183
188
|
};
|
|
184
189
|
export default _default;
|
|
185
190
|
type __VLS_PrettifyLocal<T> = {
|
|
186
|
-
[K in keyof T]: T[K];
|
|
191
|
+
[K in keyof T as K]: T[K];
|
|
187
192
|
} & {};
|
|
@@ -9,7 +9,7 @@ export interface ContainerProps {
|
|
|
9
9
|
export interface ContainerSlots {
|
|
10
10
|
default(props?: {}): any;
|
|
11
11
|
}
|
|
12
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ContainerProps,
|
|
12
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ContainerProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ContainerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ContainerSlots>;
|
|
13
13
|
export default _default;
|
|
14
14
|
type __VLS_WithSlots<T, S> = T & {
|
|
15
15
|
new (): {
|
|
@@ -10,7 +10,7 @@ export interface DashboardGroupProps extends Pick<UseResizableProps, 'storage' |
|
|
|
10
10
|
export interface DashboardGroupSlots {
|
|
11
11
|
default(props?: {}): any;
|
|
12
12
|
}
|
|
13
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DashboardGroupProps,
|
|
13
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DashboardGroupProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DashboardGroupProps> & Readonly<{}>, {
|
|
14
14
|
storage: "cookie" | "local";
|
|
15
15
|
as: any;
|
|
16
16
|
storageKey: string;
|
|
@@ -40,7 +40,7 @@ export interface DashboardNavbarSlots {
|
|
|
40
40
|
right(props: DashboardNavbarSlotsProps): any;
|
|
41
41
|
toggle(props: DashboardNavbarSlotsProps): any;
|
|
42
42
|
}
|
|
43
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DashboardNavbarProps,
|
|
43
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DashboardNavbarProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DashboardNavbarProps> & Readonly<{}>, {
|
|
44
44
|
toggle: boolean | Partial<ButtonProps>;
|
|
45
45
|
as: any;
|
|
46
46
|
toggleSide: "left" | "right";
|
|
@@ -17,7 +17,7 @@ export interface DashboardPanelSlots {
|
|
|
17
17
|
onTouchStart: (e: TouchEvent) => void;
|
|
18
18
|
}): any;
|
|
19
19
|
}
|
|
20
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DashboardPanelProps,
|
|
20
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DashboardPanelProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DashboardPanelProps> & Readonly<{}>, {
|
|
21
21
|
resizable: boolean;
|
|
22
22
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, DashboardPanelSlots>;
|
|
23
23
|
export default _default;
|
|
@@ -13,7 +13,7 @@ export interface DashboardResizeHandleProps {
|
|
|
13
13
|
export interface DashboardResizeHandleSlots {
|
|
14
14
|
default(props?: {}): any;
|
|
15
15
|
}
|
|
16
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DashboardResizeHandleProps,
|
|
16
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DashboardResizeHandleProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DashboardResizeHandleProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
|
|
17
17
|
export default _default;
|
|
18
18
|
type __VLS_WithSlots<T, S> = T & {
|
|
19
19
|
new (): {
|
|
@@ -44,7 +44,7 @@ export interface DashboardSearchButtonProps {
|
|
|
44
44
|
ui?: DashboardSearchButton['slots'] & ButtonProps['ui'];
|
|
45
45
|
class?: any;
|
|
46
46
|
}
|
|
47
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DashboardSearchButtonProps,
|
|
47
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DashboardSearchButtonProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DashboardSearchButtonProps> & Readonly<{}>, {
|
|
48
48
|
color: "error" | "info" | "primary" | "secondary" | "success" | "warning" | "neutral";
|
|
49
49
|
tooltip: boolean | TooltipProps;
|
|
50
50
|
kbds: KbdProps["value"][] | KbdProps[];
|
|
@@ -43,7 +43,7 @@ export interface DashboardSidebarSlots {
|
|
|
43
43
|
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DashboardSidebarProps<DashboardSidebarMode> & {
|
|
44
44
|
open?: boolean;
|
|
45
45
|
collapsed?: boolean;
|
|
46
|
-
},
|
|
46
|
+
}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
47
47
|
"update:open": (value: boolean) => any;
|
|
48
48
|
"update:collapsed": (value: boolean) => any;
|
|
49
49
|
}, string, import("vue").PublicProps, Readonly<DashboardSidebarProps<DashboardSidebarMode> & {
|
|
@@ -7,7 +7,7 @@ export interface DashboardSidebarCollapseProps extends /** @vue-ignore */ Pick<B
|
|
|
7
7
|
variant?: ButtonProps['variant'];
|
|
8
8
|
class?: any;
|
|
9
9
|
}
|
|
10
|
-
declare const _default: import("vue").DefineComponent<DashboardSidebarCollapseProps,
|
|
10
|
+
declare const _default: import("vue").DefineComponent<DashboardSidebarCollapseProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DashboardSidebarCollapseProps> & Readonly<{}>, {
|
|
11
11
|
color: "error" | "info" | "primary" | "secondary" | "success" | "warning" | "neutral";
|
|
12
12
|
variant: "link" | "solid" | "outline" | "soft" | "subtle" | "ghost";
|
|
13
13
|
side: "left" | "right";
|
|
@@ -24,8 +24,11 @@ const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.dashboardSide
|
|
|
24
24
|
</script>
|
|
25
25
|
|
|
26
26
|
<template>
|
|
27
|
-
<UButton
|
|
27
|
+
<UButton
|
|
28
|
+
v-bind="rootProps"
|
|
28
29
|
:aria-label="sidebarOpen ? t('dashboardSidebarToggle.close') : t('dashboardSidebarToggle.open')"
|
|
29
30
|
:icon="sidebarOpen ? appConfig.ui.icons.close : appConfig.ui.icons.menu"
|
|
30
|
-
:class="ui({ class: props.class, side: props.side })"
|
|
31
|
+
:class="ui({ class: props.class, side: props.side })"
|
|
32
|
+
@click="toggleSidebar"
|
|
33
|
+
/>
|
|
31
34
|
</template>
|
|
@@ -14,7 +14,7 @@ export interface DashboardSidebarToggleProps extends /** @vue-ignore */ Pick<But
|
|
|
14
14
|
variant?: ButtonProps['variant'];
|
|
15
15
|
class?: any;
|
|
16
16
|
}
|
|
17
|
-
declare const _default: import("vue").DefineComponent<DashboardSidebarToggleProps,
|
|
17
|
+
declare const _default: import("vue").DefineComponent<DashboardSidebarToggleProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DashboardSidebarToggleProps> & Readonly<{}>, {
|
|
18
18
|
color: "error" | "info" | "primary" | "secondary" | "success" | "warning" | "neutral";
|
|
19
19
|
variant: "link" | "solid" | "outline" | "soft" | "subtle" | "ghost";
|
|
20
20
|
side: "left" | "right";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import theme from
|
|
1
|
+
import theme from '#build/ui/dashboard-toolbar';
|
|
2
2
|
import type { AppConfig } from '@nuxt/schema';
|
|
3
|
-
import type { ComponentConfig } from
|
|
3
|
+
import type { ComponentConfig } from '../types';
|
|
4
4
|
type DashboardToolbar = ComponentConfig<typeof theme, AppConfig, 'dashboardToolbar'>;
|
|
5
5
|
export interface DashboardToolbarProps {
|
|
6
6
|
/**
|
|
@@ -16,7 +16,7 @@ export interface DashboardToolbarSlots {
|
|
|
16
16
|
left(props?: {}): any;
|
|
17
17
|
right(props?: {}): any;
|
|
18
18
|
}
|
|
19
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DashboardToolbarProps,
|
|
19
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DashboardToolbarProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DashboardToolbarProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, DashboardToolbarSlots>;
|
|
20
20
|
export default _default;
|
|
21
21
|
type __VLS_WithSlots<T, S> = T & {
|
|
22
22
|
new (): {
|
|
@@ -5,7 +5,7 @@ import theme from "#build/ui/drawer";
|
|
|
5
5
|
<script setup>
|
|
6
6
|
import { computed, toRef } from "vue";
|
|
7
7
|
import { VisuallyHidden, useForwardPropsEmits } from "reka-ui";
|
|
8
|
-
import { DrawerRoot, DrawerTrigger, DrawerPortal, DrawerOverlay, DrawerContent, DrawerTitle, DrawerDescription, DrawerHandle } from "vaul-vue";
|
|
8
|
+
import { DrawerRoot, DrawerRootNested, DrawerTrigger, DrawerPortal, DrawerOverlay, DrawerContent, DrawerTitle, DrawerDescription, DrawerHandle } from "vaul-vue";
|
|
9
9
|
import { reactivePick } from "@vueuse/core";
|
|
10
10
|
import { useAppConfig } from "#imports";
|
|
11
11
|
import { usePortal } from "../composables/usePortal";
|
|
@@ -19,6 +19,7 @@ const props = defineProps({
|
|
|
19
19
|
overlay: { type: Boolean, required: false, default: true },
|
|
20
20
|
handle: { type: Boolean, required: false, default: true },
|
|
21
21
|
portal: { type: [Boolean, String], required: false, skipCheck: true, default: true },
|
|
22
|
+
nested: { type: Boolean, required: false },
|
|
22
23
|
class: { type: null, required: false },
|
|
23
24
|
ui: { type: null, required: false },
|
|
24
25
|
activeSnapPoint: { type: [Number, String, null], required: false },
|
|
@@ -31,7 +32,6 @@ const props = defineProps({
|
|
|
31
32
|
modal: { type: Boolean, required: false, default: true },
|
|
32
33
|
open: { type: Boolean, required: false },
|
|
33
34
|
defaultOpen: { type: Boolean, required: false },
|
|
34
|
-
nested: { type: Boolean, required: false },
|
|
35
35
|
direction: { type: String, required: false, default: "bottom" },
|
|
36
36
|
noBodyStyles: { type: Boolean, required: false },
|
|
37
37
|
handleOnly: { type: Boolean, required: false },
|
|
@@ -54,7 +54,7 @@ const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.drawer || {}
|
|
|
54
54
|
</script>
|
|
55
55
|
|
|
56
56
|
<template>
|
|
57
|
-
<DrawerRoot v-bind="rootProps">
|
|
57
|
+
<component :is="nested ? DrawerRootNested : DrawerRoot" v-bind="rootProps">
|
|
58
58
|
<DrawerTrigger v-if="!!slots.default" as-child :class="props.class">
|
|
59
59
|
<slot />
|
|
60
60
|
</DrawerTrigger>
|
|
@@ -108,5 +108,5 @@ const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.drawer || {}
|
|
|
108
108
|
</slot>
|
|
109
109
|
</DrawerContent>
|
|
110
110
|
</DrawerPortal>
|
|
111
|
-
</
|
|
111
|
+
</component>
|
|
112
112
|
</template>
|
|
@@ -34,6 +34,11 @@ export interface DrawerProps extends Pick<DrawerRootProps, 'activeSnapPoint' | '
|
|
|
34
34
|
* @defaultValue true
|
|
35
35
|
*/
|
|
36
36
|
portal?: boolean | string | HTMLElement;
|
|
37
|
+
/**
|
|
38
|
+
* Whether the drawer is nested in another drawer.
|
|
39
|
+
* @defaultValue false
|
|
40
|
+
*/
|
|
41
|
+
nested?: boolean;
|
|
37
42
|
class?: any;
|
|
38
43
|
ui?: Drawer['slots'];
|
|
39
44
|
}
|
|
@@ -48,7 +53,7 @@ export interface DrawerSlots {
|
|
|
48
53
|
body(props?: {}): any;
|
|
49
54
|
footer(props?: {}): any;
|
|
50
55
|
}
|
|
51
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DrawerProps,
|
|
56
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<DrawerProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
52
57
|
close: () => any;
|
|
53
58
|
drag: (percentageDragged: number) => any;
|
|
54
59
|
"update:open": (open: boolean) => any;
|
|
@@ -2,7 +2,7 @@ import { DropdownMenu } from 'reka-ui/namespaced';
|
|
|
2
2
|
import type { DropdownMenuContentProps as RekaDropdownMenuContentProps } from 'reka-ui';
|
|
3
3
|
import type { AppConfig } from '@nuxt/schema';
|
|
4
4
|
import type theme from '#build/ui/dropdown-menu';
|
|
5
|
-
import type { DropdownMenuItem, DropdownMenuSlots } from '../types';
|
|
5
|
+
import type { DropdownMenuItem, DropdownMenuSlots, DynamicSlots, MergeTypes } from '../types';
|
|
6
6
|
import type { ArrayOrNested, NestedItem, ComponentConfig } from '../types/utils';
|
|
7
7
|
type DropdownMenu = ComponentConfig<typeof theme, AppConfig, 'dropdownMenu'>;
|
|
8
8
|
interface DropdownMenuContentProps<T extends ArrayOrNested<DropdownMenuItem>> extends Omit<RekaDropdownMenuContentProps, 'as' | 'asChild' | 'forceMount'> {
|
|
@@ -28,9 +28,12 @@ interface DropdownMenuContentProps<T extends ArrayOrNested<DropdownMenuItem>> ex
|
|
|
28
28
|
};
|
|
29
29
|
uiOverride?: DropdownMenu['slots'];
|
|
30
30
|
}
|
|
31
|
-
type DropdownMenuContentSlots<
|
|
31
|
+
type DropdownMenuContentSlots<A extends ArrayOrNested<DropdownMenuItem> = ArrayOrNested<DropdownMenuItem>, T extends NestedItem<A> = NestedItem<A>> = Pick<DropdownMenuSlots<A>, 'item' | 'item-leading' | 'item-label' | 'item-trailing' | 'content-top' | 'content-bottom'> & {
|
|
32
32
|
default(props?: {}): any;
|
|
33
|
-
}
|
|
33
|
+
} & DynamicSlots<MergeTypes<T>, 'leading' | 'label' | 'trailing', {
|
|
34
|
+
active?: boolean;
|
|
35
|
+
index: number;
|
|
36
|
+
}>;
|
|
34
37
|
declare const _default: <T extends ArrayOrNested<DropdownMenuItem>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
35
38
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
36
39
|
readonly onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
@@ -41,12 +44,12 @@ declare const _default: <T extends ArrayOrNested<DropdownMenuItem>>(__VLS_props:
|
|
|
41
44
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onEscapeKeyDown" | "onPointerDownOutside" | "onFocusOutside" | "onInteractOutside" | "onCloseAutoFocus"> & DropdownMenuContentProps<T> & Partial<{}>> & import("vue").PublicProps;
|
|
42
45
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
43
46
|
attrs: any;
|
|
44
|
-
slots: DropdownMenuContentSlots<T
|
|
47
|
+
slots: DropdownMenuContentSlots<T, NestedItem<T>>;
|
|
45
48
|
emit: ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: import("reka-ui").PointerDownOutsideEvent) => void) & ((evt: "focusOutside", event: import("reka-ui").FocusOutsideEvent) => void) & ((evt: "interactOutside", event: import("reka-ui").PointerDownOutsideEvent | import("reka-ui").FocusOutsideEvent) => void) & ((evt: "closeAutoFocus", event: Event) => void);
|
|
46
49
|
}>) => import("vue").VNode & {
|
|
47
50
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
48
51
|
};
|
|
49
52
|
export default _default;
|
|
50
53
|
type __VLS_PrettifyLocal<T> = {
|
|
51
|
-
[K in keyof T]: T[K];
|
|
54
|
+
[K in keyof T as K]: T[K];
|
|
52
55
|
} & {};
|
|
@@ -32,7 +32,7 @@ export interface ErrorSlots {
|
|
|
32
32
|
statusMessage(props?: {}): any;
|
|
33
33
|
links(props?: {}): any;
|
|
34
34
|
}
|
|
35
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ErrorProps,
|
|
35
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ErrorProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
36
36
|
clear: () => any;
|
|
37
37
|
}, string, import("vue").PublicProps, Readonly<ErrorProps> & Readonly<{
|
|
38
38
|
onClear?: (() => any) | undefined;
|