@eslamdevui/ui 3.2.0-beta.2 → 3.2.1
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/auth-form.ts +20 -0
- package/.nuxt/ui/banner.ts +105 -0
- package/.nuxt/ui/blog-post.ts +140 -0
- package/.nuxt/ui/blog-posts.ts +14 -0
- package/.nuxt/ui/changelog-version.ts +41 -0
- package/.nuxt/ui/changelog-versions.ts +8 -0
- package/.nuxt/ui/chat-palette.ts +8 -0
- package/.nuxt/ui/content/content-navigation.ts +6 -4
- package/.nuxt/ui/content-navigation.ts +6 -4
- package/.nuxt/ui/footer-columns.ts +28 -0
- package/.nuxt/ui/footer.ts +11 -0
- package/.nuxt/ui/header.ts +30 -0
- package/.nuxt/ui/index.ts +32 -1
- package/.nuxt/ui/main.ts +3 -0
- package/.nuxt/ui/page-accordion.ts +7 -0
- package/.nuxt/ui/page-anchors.ts +30 -0
- package/.nuxt/ui/page-aside.ts +10 -0
- package/.nuxt/ui/page-body.ts +3 -0
- package/.nuxt/ui/page-card.ts +276 -0
- package/.nuxt/ui/page-columns.ts +3 -0
- package/.nuxt/ui/page-cta.ts +72 -0
- package/.nuxt/ui/page-feature.ts +31 -0
- package/.nuxt/ui/page-grid.ts +3 -0
- package/.nuxt/ui/page-header.ts +18 -0
- package/.nuxt/ui/page-hero.ts +46 -0
- package/.nuxt/ui/page-links.ts +25 -0
- package/.nuxt/ui/page-list.ts +8 -0
- package/.nuxt/ui/page-logos.ts +15 -0
- package/.nuxt/ui/page-marquee.ts +66 -0
- package/.nuxt/ui/page-section.ts +88 -0
- package/.nuxt/ui/page.ts +32 -0
- package/.nuxt/ui/pricing-plan.ts +101 -0
- package/.nuxt/ui/pricing-plans.ts +27 -0
- package/.nuxt/ui/pricing-table.ts +51 -0
- package/.nuxt/ui/user.ts +106 -0
- package/LICENSE.md +9 -9
- package/README.md +147 -147
- package/cli/commands/make/component.mjs +95 -95
- package/cli/commands/make/index.mjs +14 -14
- package/cli/commands/make/locale.mjs +64 -64
- package/cli/index.mjs +15 -15
- package/cli/package.json +13 -13
- package/cli/templates.mjs +236 -236
- package/cli/utils.mjs +31 -31
- package/dist/module.json +1 -1
- package/dist/module.mjs +2 -2
- package/dist/runtime/components/Accordion.vue +36 -36
- package/dist/runtime/components/Alert.vue +46 -46
- package/dist/runtime/components/App.vue +10 -10
- package/dist/runtime/components/AuthForm.vue +195 -0
- package/dist/runtime/components/AuthForm.vue.d.ts +85 -0
- package/dist/runtime/components/Avatar.vue +27 -27
- package/dist/runtime/components/AvatarGroup.vue +4 -4
- package/dist/runtime/components/Badge.vue +16 -16
- package/dist/runtime/components/Banner.vue +113 -0
- package/dist/runtime/components/Banner.vue.d.ts +68 -0
- package/dist/runtime/components/BlogPost.vue +141 -0
- package/dist/runtime/components/BlogPost.vue.d.ts +59 -0
- package/dist/runtime/components/BlogPosts.vue +33 -0
- package/dist/runtime/components/BlogPosts.vue.d.ts +30 -0
- package/dist/runtime/components/Breadcrumb.vue +32 -32
- package/dist/runtime/components/Button.vue +28 -28
- package/dist/runtime/components/ButtonGroup.vue +3 -3
- package/dist/runtime/components/Calendar.vue +74 -74
- package/dist/runtime/components/Card.vue +13 -13
- package/dist/runtime/components/Carousel.vue +58 -58
- package/dist/runtime/components/ChangelogVersion.vue +165 -0
- package/dist/runtime/components/ChangelogVersion.vue.d.ts +58 -0
- package/dist/runtime/components/ChangelogVersions.vue +54 -0
- package/dist/runtime/components/ChangelogVersions.vue.d.ts +74 -0
- package/dist/runtime/components/ChatMessage.vue +35 -35
- package/dist/runtime/components/ChatMessages.vue +55 -55
- package/dist/runtime/components/ChatPalette.vue +32 -0
- package/dist/runtime/components/ChatPalette.vue.d.ts +24 -0
- package/dist/runtime/components/ChatPrompt.vue +26 -26
- package/dist/runtime/components/ChatPrompt.vue.d.ts +1 -1
- package/dist/runtime/components/ChatPromptSubmit.vue +10 -10
- package/dist/runtime/components/Checkbox.vue +33 -33
- package/dist/runtime/components/CheckboxGroup.vue +32 -32
- package/dist/runtime/components/Chip.vue +11 -11
- package/dist/runtime/components/Collapsible.vue +9 -9
- package/dist/runtime/components/ColorPicker.vue +30 -30
- package/dist/runtime/components/CommandPalette.vue +117 -117
- package/dist/runtime/components/CommandPalette.vue.d.ts +3 -3
- package/dist/runtime/components/Container.vue +3 -3
- package/dist/runtime/components/ContextMenu.vue +22 -22
- package/dist/runtime/components/ContextMenuContent.vue +105 -105
- package/dist/runtime/components/DashboardGroup.vue +3 -3
- package/dist/runtime/components/DashboardNavbar.vue +40 -40
- package/dist/runtime/components/DashboardPanel.vue +27 -27
- package/dist/runtime/components/DashboardResizeHandle.vue +7 -7
- package/dist/runtime/components/DashboardSearch.vue +20 -20
- package/dist/runtime/components/DashboardSearchButton.vue +43 -43
- package/dist/runtime/components/DashboardSidebar.vue +74 -74
- package/dist/runtime/components/DashboardSidebarCollapse.vue +7 -7
- package/dist/runtime/components/DashboardSidebarToggle.vue +7 -7
- package/dist/runtime/components/DashboardSidebarToggle.vue.d.ts +1 -1
- package/dist/runtime/components/Drawer.vue +55 -55
- package/dist/runtime/components/DropdownMenu.vue +24 -24
- package/dist/runtime/components/DropdownMenuContent.vue +107 -107
- package/dist/runtime/components/Error.vue +22 -22
- package/dist/runtime/components/Error.vue.d.ts +1 -1
- package/dist/runtime/components/Footer.vue +44 -0
- package/dist/runtime/components/Footer.vue.d.ts +29 -0
- package/dist/runtime/components/FooterColumns.vue +68 -0
- package/dist/runtime/components/FooterColumns.vue.d.ts +52 -0
- package/dist/runtime/components/Form.vue +8 -8
- package/dist/runtime/components/FormField.vue +37 -37
- package/dist/runtime/components/Header.vue +137 -0
- package/dist/runtime/components/Header.vue.d.ts +72 -0
- package/dist/runtime/components/Icon.vue +1 -1
- package/dist/runtime/components/Input.vue +34 -34
- package/dist/runtime/components/InputMenu.vue +163 -163
- package/dist/runtime/components/InputMenu.vue.d.ts +3 -3
- package/dist/runtime/components/InputNumber.vue +49 -49
- package/dist/runtime/components/InputTags.vue +55 -55
- package/dist/runtime/components/Kbd.vue +5 -5
- package/dist/runtime/components/Link.vue +14 -14
- package/dist/runtime/components/LinkBase.vue +8 -8
- package/dist/runtime/components/Main.vue +23 -0
- package/dist/runtime/components/Main.vue.d.ts +20 -0
- package/dist/runtime/components/Modal.vue +69 -69
- package/dist/runtime/components/NavigationMenu.vue +166 -166
- package/dist/runtime/components/OverlayProvider.vue +9 -9
- package/dist/runtime/components/Page.vue +37 -0
- package/dist/runtime/components/Page.vue.d.ts +25 -0
- package/dist/runtime/components/PageAccordion.vue +26 -0
- package/dist/runtime/components/PageAccordion.vue.d.ts +21 -0
- package/dist/runtime/components/PageAnchors.vue +50 -0
- package/dist/runtime/components/PageAnchors.vue.d.ts +42 -0
- package/dist/runtime/components/PageAside.vue +36 -0
- package/dist/runtime/components/PageAside.vue.d.ts +27 -0
- package/dist/runtime/components/PageBody.vue +23 -0
- package/dist/runtime/components/PageBody.vue.d.ts +18 -0
- package/dist/runtime/components/PageCTA.vue +58 -0
- package/dist/runtime/components/PageCTA.vue.d.ts +49 -0
- package/dist/runtime/components/PageCard.vue +121 -0
- package/dist/runtime/components/PageCard.vue.d.ts +71 -0
- package/dist/runtime/components/PageColumns.vue +23 -0
- package/dist/runtime/components/PageColumns.vue.d.ts +18 -0
- package/dist/runtime/components/PageFeature.vue +71 -0
- package/dist/runtime/components/PageFeature.vue.d.ts +43 -0
- package/dist/runtime/components/PageGrid.vue +23 -0
- package/dist/runtime/components/PageGrid.vue.d.ts +18 -0
- package/dist/runtime/components/PageHeader.vue +58 -0
- package/dist/runtime/components/PageHeader.vue.d.ts +35 -0
- package/dist/runtime/components/PageHero.vue +67 -0
- package/dist/runtime/components/PageHero.vue.d.ts +49 -0
- package/dist/runtime/components/PageLinks.vue +55 -0
- package/dist/runtime/components/PageLinks.vue.d.ts +44 -0
- package/dist/runtime/components/PageList.vue +24 -0
- package/dist/runtime/components/PageList.vue.d.ts +21 -0
- package/dist/runtime/components/PageLogos.vue +64 -0
- package/dist/runtime/components/PageLogos.vue.d.ts +32 -0
- package/dist/runtime/components/PageMarquee.vue +40 -0
- package/dist/runtime/components/PageMarquee.vue.d.ts +30 -0
- package/dist/runtime/components/PageSection.vue +88 -0
- package/dist/runtime/components/PageSection.vue.d.ts +64 -0
- package/dist/runtime/components/Pagination.vue +47 -47
- package/dist/runtime/components/PinInput.vue +20 -20
- package/dist/runtime/components/Popover.vue +17 -17
- package/dist/runtime/components/PricingPlan.vue +129 -0
- package/dist/runtime/components/PricingPlan.vue.d.ts +109 -0
- package/dist/runtime/components/PricingPlans.vue +45 -0
- package/dist/runtime/components/PricingPlans.vue.d.ts +41 -0
- package/dist/runtime/components/PricingTable.vue +235 -0
- package/dist/runtime/components/PricingTable.vue.d.ts +98 -0
- package/dist/runtime/components/Progress.vue +19 -19
- package/dist/runtime/components/RadioGroup.vue +43 -43
- package/dist/runtime/components/Select.vue +96 -96
- package/dist/runtime/components/SelectMenu.vue +130 -130
- package/dist/runtime/components/SelectMenu.vue.d.ts +3 -3
- package/dist/runtime/components/Separator.vue +15 -15
- package/dist/runtime/components/Skeleton.vue +10 -10
- package/dist/runtime/components/Slideover.vue +76 -76
- package/dist/runtime/components/Slider.vue +27 -27
- package/dist/runtime/components/Stepper.vue +51 -51
- package/dist/runtime/components/Switch.vue +33 -33
- package/dist/runtime/components/Table.vue +77 -77
- package/dist/runtime/components/Tabs.vue +38 -37
- package/dist/runtime/components/Textarea.vue +33 -33
- package/dist/runtime/components/Timeline.vue +38 -38
- package/dist/runtime/components/Toast.vue +69 -69
- package/dist/runtime/components/Toaster.vue +28 -28
- package/dist/runtime/components/Tooltip.vue +19 -19
- package/dist/runtime/components/Tree.vue +60 -60
- package/dist/runtime/components/User.vue +69 -0
- package/dist/runtime/components/User.vue.d.ts +46 -0
- package/dist/runtime/components/color-mode/ColorModeAvatar.vue +2 -2
- package/dist/runtime/components/color-mode/ColorModeButton.vue +16 -16
- package/dist/runtime/components/color-mode/ColorModeImage.vue +2 -2
- package/dist/runtime/components/color-mode/ColorModeSelect.vue +19 -19
- package/dist/runtime/components/color-mode/ColorModeSwitch.vue +19 -19
- package/dist/runtime/components/content/ContentNavigation.vue +109 -109
- package/dist/runtime/components/content/ContentSearch.vue +25 -25
- package/dist/runtime/components/content/ContentSearchButton.vue +38 -38
- package/dist/runtime/components/content/ContentSearchButton.vue.d.ts +58 -12
- package/dist/runtime/components/content/ContentSurround.vue +31 -31
- package/dist/runtime/components/content/ContentSurround.vue.d.ts +52 -59
- package/dist/runtime/components/content/ContentToc.vue +88 -76
- package/dist/runtime/components/content/ContentToc.vue.d.ts +86 -88
- package/dist/runtime/components/locale/LocaleSelect.vue +20 -20
- package/dist/runtime/components/prose/A.vue +3 -3
- package/dist/runtime/components/prose/Accordion.vue +5 -5
- package/dist/runtime/components/prose/AccordionItem.vue +5 -5
- package/dist/runtime/components/prose/Badge.vue +3 -3
- package/dist/runtime/components/prose/Blockquote.vue +3 -3
- package/dist/runtime/components/prose/Callout.vue +27 -27
- package/dist/runtime/components/prose/Card.vue +43 -43
- package/dist/runtime/components/prose/CardGroup.vue +3 -3
- package/dist/runtime/components/prose/Code.vue +3 -3
- package/dist/runtime/components/prose/CodeCollapse.vue +16 -16
- package/dist/runtime/components/prose/CodeGroup.vue +15 -15
- package/dist/runtime/components/prose/CodeIcon.vue +1 -1
- package/dist/runtime/components/prose/CodePreview.vue +9 -9
- package/dist/runtime/components/prose/CodeTree.vue +61 -61
- package/dist/runtime/components/prose/Collapsible.vue +15 -15
- package/dist/runtime/components/prose/Em.vue +1 -1
- package/dist/runtime/components/prose/Field.vue +23 -23
- package/dist/runtime/components/prose/FieldGroup.vue +3 -3
- package/dist/runtime/components/prose/H1.vue +6 -6
- package/dist/runtime/components/prose/H2.vue +10 -10
- package/dist/runtime/components/prose/H3.vue +10 -10
- package/dist/runtime/components/prose/H4.vue +6 -6
- package/dist/runtime/components/prose/Hr.vue +1 -1
- package/dist/runtime/components/prose/Icon.vue +1 -1
- package/dist/runtime/components/prose/Img.vue +8 -8
- package/dist/runtime/components/prose/Kbd.vue +1 -1
- package/dist/runtime/components/prose/Li.vue +3 -3
- package/dist/runtime/components/prose/Ol.vue +3 -3
- package/dist/runtime/components/prose/P.vue +3 -3
- package/dist/runtime/components/prose/Pre.vue +20 -20
- package/dist/runtime/components/prose/Script.vue +3 -3
- package/dist/runtime/components/prose/Steps.vue +3 -3
- package/dist/runtime/components/prose/Strong.vue +3 -3
- package/dist/runtime/components/prose/Table.vue +5 -5
- package/dist/runtime/components/prose/Tabs.vue +14 -14
- package/dist/runtime/components/prose/TabsItem.vue +5 -5
- package/dist/runtime/components/prose/Tbody.vue +3 -3
- package/dist/runtime/components/prose/Td.vue +3 -3
- package/dist/runtime/components/prose/Th.vue +3 -3
- package/dist/runtime/components/prose/Thead.vue +3 -3
- package/dist/runtime/components/prose/Tr.vue +3 -3
- package/dist/runtime/components/prose/Ul.vue +3 -3
- package/dist/runtime/components/prose/callout/Caution.vue +3 -3
- package/dist/runtime/components/prose/callout/Note.vue +3 -3
- package/dist/runtime/components/prose/callout/Tip.vue +3 -3
- package/dist/runtime/components/prose/callout/Warning.vue +3 -3
- package/dist/runtime/inertia/components/Link.vue +12 -12
- package/dist/runtime/inertia/components/LinkBase.vue +15 -15
- package/dist/runtime/types/app.config.d.ts +6 -6
- package/dist/runtime/types/index.d.ts +33 -0
- package/dist/runtime/types/index.js +33 -0
- package/dist/runtime/vue/components/Icon.vue +1 -1
- package/dist/runtime/vue/components/Link.vue +31 -31
- package/dist/runtime/vue/components/color-mode/ColorModeButton.vue +7 -7
- package/dist/runtime/vue/components/color-mode/ColorModeSelect.vue +7 -7
- package/dist/runtime/vue/components/color-mode/ColorModeSwitch.vue +7 -7
- package/dist/shared/{ui.DQZ75GCP.mjs → ui.DErCA3YU.mjs} +1247 -50
- package/dist/unplugin.mjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +1 -1
- package/vue-plugin.d.ts +5 -5
- package/.nuxt/ui/prose.ts +0 -321
|
@@ -21,17 +21,17 @@ const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.card || {} })
|
|
|
21
21
|
</script>
|
|
22
22
|
|
|
23
23
|
<template>
|
|
24
|
-
<Primitive :as="as" :class="ui.root({ class: [props.ui?.root, props.class] })">
|
|
25
|
-
<div v-if="!!slots.header" :class="ui.header({ class: props.ui?.header })">
|
|
26
|
-
<slot name="header" />
|
|
27
|
-
</div>
|
|
28
|
-
|
|
29
|
-
<div v-if="!!slots.default" :class="ui.body({ class: props.ui?.body })">
|
|
30
|
-
<slot />
|
|
31
|
-
</div>
|
|
32
|
-
|
|
33
|
-
<div v-if="!!slots.footer" :class="ui.footer({ class: props.ui?.footer })">
|
|
34
|
-
<slot name="footer" />
|
|
35
|
-
</div>
|
|
36
|
-
</Primitive>
|
|
24
|
+
<Primitive :as="as" :class="ui.root({ class: [props.ui?.root, props.class] })">
|
|
25
|
+
<div v-if="!!slots.header" :class="ui.header({ class: props.ui?.header })">
|
|
26
|
+
<slot name="header" />
|
|
27
|
+
</div>
|
|
28
|
+
|
|
29
|
+
<div v-if="!!slots.default" :class="ui.body({ class: props.ui?.body })">
|
|
30
|
+
<slot />
|
|
31
|
+
</div>
|
|
32
|
+
|
|
33
|
+
<div v-if="!!slots.footer" :class="ui.footer({ class: props.ui?.footer })">
|
|
34
|
+
<slot name="footer" />
|
|
35
|
+
</div>
|
|
36
|
+
</Primitive>
|
|
37
37
|
</template>
|
|
@@ -149,62 +149,62 @@ defineExpose({
|
|
|
149
149
|
</script>
|
|
150
150
|
|
|
151
151
|
<template>
|
|
152
|
-
<Primitive
|
|
153
|
-
:as="as"
|
|
154
|
-
role="region"
|
|
155
|
-
aria-roledescription="carousel"
|
|
156
|
-
tabindex="0"
|
|
157
|
-
:class="ui.root({ class: [props.ui?.root, props.class] })"
|
|
158
|
-
@keydown="onKeyDown"
|
|
159
|
-
>
|
|
160
|
-
<div ref="emblaRef" :class="ui.viewport({ class: props.ui?.viewport })">
|
|
161
|
-
<div :class="ui.container({ class: props.ui?.container })">
|
|
162
|
-
<div
|
|
163
|
-
v-for="(item, index) in items"
|
|
164
|
-
:key="index"
|
|
165
|
-
role="group"
|
|
166
|
-
aria-roledescription="slide"
|
|
167
|
-
:class="ui.item({ class: [props.ui?.item, isCarouselItem(item) && item.ui?.item, isCarouselItem(item) && item.class] })"
|
|
168
|
-
>
|
|
169
|
-
<slot :item="item" :index="index" />
|
|
170
|
-
</div>
|
|
171
|
-
</div>
|
|
172
|
-
</div>
|
|
173
|
-
|
|
174
|
-
<div v-if="arrows || dots" :class="ui.controls({ class: props.ui?.controls })">
|
|
175
|
-
<div v-if="arrows" :class="ui.arrows({ class: props.ui?.arrows })">
|
|
176
|
-
<UButton
|
|
177
|
-
:disabled="!canScrollPrev"
|
|
178
|
-
:icon="prevIcon"
|
|
179
|
-
color="neutral"
|
|
180
|
-
variant="outline"
|
|
181
|
-
:aria-label="t('carousel.prev')"
|
|
182
|
-
v-bind="typeof prev === 'object' ? prev : void 0"
|
|
183
|
-
:class="ui.prev({ class: props.ui?.prev })"
|
|
184
|
-
@click="scrollPrev"
|
|
185
|
-
/>
|
|
186
|
-
<UButton
|
|
187
|
-
:disabled="!canScrollNext"
|
|
188
|
-
:icon="nextIcon"
|
|
189
|
-
color="neutral"
|
|
190
|
-
variant="outline"
|
|
191
|
-
:aria-label="t('carousel.next')"
|
|
192
|
-
v-bind="typeof next === 'object' ? next : void 0"
|
|
193
|
-
:class="ui.next({ class: props.ui?.next })"
|
|
194
|
-
@click="scrollNext"
|
|
195
|
-
/>
|
|
196
|
-
</div>
|
|
197
|
-
|
|
198
|
-
<div v-if="dots" :class="ui.dots({ class: props.ui?.dots })">
|
|
199
|
-
<template v-for="(_, index) in scrollSnaps" :key="index">
|
|
200
|
-
<button
|
|
201
|
-
:aria-label="t('carousel.goto', { slide: index + 1 })"
|
|
202
|
-
:class="ui.dot({ class: props.ui?.dot, active: selectedIndex === index })"
|
|
203
|
-
:data-state="selectedIndex === index ? 'active' : void 0"
|
|
204
|
-
@click="scrollTo(index)"
|
|
205
|
-
/>
|
|
206
|
-
</template>
|
|
207
|
-
</div>
|
|
208
|
-
</div>
|
|
209
|
-
</Primitive>
|
|
152
|
+
<Primitive
|
|
153
|
+
:as="as"
|
|
154
|
+
role="region"
|
|
155
|
+
aria-roledescription="carousel"
|
|
156
|
+
tabindex="0"
|
|
157
|
+
:class="ui.root({ class: [props.ui?.root, props.class] })"
|
|
158
|
+
@keydown="onKeyDown"
|
|
159
|
+
>
|
|
160
|
+
<div ref="emblaRef" :class="ui.viewport({ class: props.ui?.viewport })">
|
|
161
|
+
<div :class="ui.container({ class: props.ui?.container })">
|
|
162
|
+
<div
|
|
163
|
+
v-for="(item, index) in items"
|
|
164
|
+
:key="index"
|
|
165
|
+
role="group"
|
|
166
|
+
aria-roledescription="slide"
|
|
167
|
+
:class="ui.item({ class: [props.ui?.item, isCarouselItem(item) && item.ui?.item, isCarouselItem(item) && item.class] })"
|
|
168
|
+
>
|
|
169
|
+
<slot :item="item" :index="index" />
|
|
170
|
+
</div>
|
|
171
|
+
</div>
|
|
172
|
+
</div>
|
|
173
|
+
|
|
174
|
+
<div v-if="arrows || dots" :class="ui.controls({ class: props.ui?.controls })">
|
|
175
|
+
<div v-if="arrows" :class="ui.arrows({ class: props.ui?.arrows })">
|
|
176
|
+
<UButton
|
|
177
|
+
:disabled="!canScrollPrev"
|
|
178
|
+
:icon="prevIcon"
|
|
179
|
+
color="neutral"
|
|
180
|
+
variant="outline"
|
|
181
|
+
:aria-label="t('carousel.prev')"
|
|
182
|
+
v-bind="typeof prev === 'object' ? prev : void 0"
|
|
183
|
+
:class="ui.prev({ class: props.ui?.prev })"
|
|
184
|
+
@click="scrollPrev"
|
|
185
|
+
/>
|
|
186
|
+
<UButton
|
|
187
|
+
:disabled="!canScrollNext"
|
|
188
|
+
:icon="nextIcon"
|
|
189
|
+
color="neutral"
|
|
190
|
+
variant="outline"
|
|
191
|
+
:aria-label="t('carousel.next')"
|
|
192
|
+
v-bind="typeof next === 'object' ? next : void 0"
|
|
193
|
+
:class="ui.next({ class: props.ui?.next })"
|
|
194
|
+
@click="scrollNext"
|
|
195
|
+
/>
|
|
196
|
+
</div>
|
|
197
|
+
|
|
198
|
+
<div v-if="dots" :class="ui.dots({ class: props.ui?.dots })">
|
|
199
|
+
<template v-for="(_, index) in scrollSnaps" :key="index">
|
|
200
|
+
<button
|
|
201
|
+
:aria-label="t('carousel.goto', { slide: index + 1 })"
|
|
202
|
+
:class="ui.dot({ class: props.ui?.dot, active: selectedIndex === index })"
|
|
203
|
+
:data-state="selectedIndex === index ? 'active' : void 0"
|
|
204
|
+
@click="scrollTo(index)"
|
|
205
|
+
/>
|
|
206
|
+
</template>
|
|
207
|
+
</div>
|
|
208
|
+
</div>
|
|
209
|
+
</Primitive>
|
|
210
210
|
</template>
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import theme from "#build/ui/changelog-version";
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<script setup>
|
|
6
|
+
import { computed } from "vue";
|
|
7
|
+
import { Primitive, useDateFormatter } from "reka-ui";
|
|
8
|
+
import { createReusableTemplate } from "@vueuse/core";
|
|
9
|
+
import ImageComponent from "#build/ui-image-component";
|
|
10
|
+
import { useLocale, useAppConfig } from "#imports";
|
|
11
|
+
import { getSlotChildrenText } from "../utils";
|
|
12
|
+
import { tv } from "../utils/tv";
|
|
13
|
+
import UUser from "./User.vue";
|
|
14
|
+
defineOptions({ inheritAttrs: false });
|
|
15
|
+
const props = defineProps({
|
|
16
|
+
as: { type: null, required: false, default: "article" },
|
|
17
|
+
title: { type: String, required: false },
|
|
18
|
+
description: { type: String, required: false },
|
|
19
|
+
date: { type: [String, Date], required: false },
|
|
20
|
+
badge: { type: [String, Object], required: false },
|
|
21
|
+
authors: { type: Array, required: false },
|
|
22
|
+
image: { type: [String, Object], required: false },
|
|
23
|
+
indicator: { type: Boolean, required: false, default: true },
|
|
24
|
+
to: { type: null, required: false },
|
|
25
|
+
target: { type: [String, Object, null], required: false },
|
|
26
|
+
onClick: { type: Function, required: false },
|
|
27
|
+
class: { type: null, required: false },
|
|
28
|
+
ui: { type: null, required: false }
|
|
29
|
+
});
|
|
30
|
+
const slots = defineSlots();
|
|
31
|
+
const { locale } = useLocale();
|
|
32
|
+
const appConfig = useAppConfig();
|
|
33
|
+
const formatter = useDateFormatter(locale.value.code);
|
|
34
|
+
const [DefineLinkTemplate, ReuseLinkTemplate] = createReusableTemplate();
|
|
35
|
+
const [DefineDateTemplate, ReuseDateTemplate] = createReusableTemplate({
|
|
36
|
+
props: {
|
|
37
|
+
hidden: {
|
|
38
|
+
type: Boolean,
|
|
39
|
+
default: false
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.changelogVersion || {} })({
|
|
44
|
+
to: !!props.to || !!props.onClick
|
|
45
|
+
}));
|
|
46
|
+
const date = computed(() => {
|
|
47
|
+
if (!props.date) {
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
try {
|
|
51
|
+
return formatter.custom(new Date(props.date), { dateStyle: "medium" });
|
|
52
|
+
} catch {
|
|
53
|
+
return props.date;
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
const datetime = computed(() => {
|
|
57
|
+
if (!props.date) {
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
try {
|
|
61
|
+
return new Date(props.date)?.toISOString();
|
|
62
|
+
} catch {
|
|
63
|
+
return void 0;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
const ariaLabel = computed(() => {
|
|
67
|
+
const slotText = slots.title && getSlotChildrenText(slots.title());
|
|
68
|
+
return (slotText || props.title || "Version link").trim();
|
|
69
|
+
});
|
|
70
|
+
</script>
|
|
71
|
+
|
|
72
|
+
<template>
|
|
73
|
+
<DefineLinkTemplate>
|
|
74
|
+
<ULink
|
|
75
|
+
v-if="to"
|
|
76
|
+
:aria-label="ariaLabel"
|
|
77
|
+
v-bind="{ to, target, ...$attrs }"
|
|
78
|
+
class="focus:outline-none peer"
|
|
79
|
+
tabindex="-1"
|
|
80
|
+
raw
|
|
81
|
+
>
|
|
82
|
+
<span class="absolute inset-0" aria-hidden="true" />
|
|
83
|
+
</ULink>
|
|
84
|
+
</DefineLinkTemplate>
|
|
85
|
+
|
|
86
|
+
<DefineDateTemplate v-slot="{ hidden }">
|
|
87
|
+
<time v-if="date" :datetime="datetime" :class="ui.date({ class: props.ui?.date, hidden })">
|
|
88
|
+
<slot name="date">
|
|
89
|
+
{{ date }}
|
|
90
|
+
</slot>
|
|
91
|
+
</time>
|
|
92
|
+
</DefineDateTemplate>
|
|
93
|
+
|
|
94
|
+
<Primitive :as="as" :class="ui.root({ class: [props.ui?.root, props.class] })" @click="onClick">
|
|
95
|
+
<div v-if="!!props.indicator || !!slots.indicator" :class="ui.indicator({ class: props.ui?.indicator })">
|
|
96
|
+
<slot name="indicator">
|
|
97
|
+
<!-- <ReuseDateTemplate :hidden="false" /> when used inside the indicator slot -->
|
|
98
|
+
<ReuseDateTemplate :hidden="!!props.indicator" /> <!-- when used elsewhere -->
|
|
99
|
+
|
|
100
|
+
<div :class="ui.dot({ class: props.ui?.dot })">
|
|
101
|
+
<div :class="ui.dotInner({ class: props.ui?.dotInner })" />
|
|
102
|
+
</div>
|
|
103
|
+
</slot>
|
|
104
|
+
</div>
|
|
105
|
+
|
|
106
|
+
<div :class="ui.container({ class: props.ui?.container })">
|
|
107
|
+
<div v-if="!!slots.header || (date || !!slots.date) || (badge || !!slots.badge) || (title || !!slots.title) || (description || !!slots.description) || (image || !!slots.image)" :class="ui.header({ class: props.ui?.header })">
|
|
108
|
+
<slot name="header">
|
|
109
|
+
<div v-if="date || !!slots.date || (badge || !!slots.badge)" :class="ui.meta({ class: props.ui?.meta, badge: !!badge || !!slots.badge || !props.indicator })">
|
|
110
|
+
<slot name="badge">
|
|
111
|
+
<UBadge v-if="badge" color="neutral" variant="solid" v-bind="typeof badge === 'string' ? { label: badge } : badge" :class="ui.badge({ class: props.ui?.badge })" />
|
|
112
|
+
</slot>
|
|
113
|
+
|
|
114
|
+
<ReuseDateTemplate :hidden="!!props.indicator" />
|
|
115
|
+
</div>
|
|
116
|
+
|
|
117
|
+
<h2 v-if="title || !!slots.title" :class="ui.title({ class: props.ui?.title })">
|
|
118
|
+
<ReuseLinkTemplate />
|
|
119
|
+
|
|
120
|
+
<slot name="title">
|
|
121
|
+
{{ title }}
|
|
122
|
+
</slot>
|
|
123
|
+
</h2>
|
|
124
|
+
|
|
125
|
+
<div v-if="description || !!slots.description" :class="ui.description({ class: props.ui?.description })">
|
|
126
|
+
<slot name="description">
|
|
127
|
+
{{ description }}
|
|
128
|
+
</slot>
|
|
129
|
+
</div>
|
|
130
|
+
|
|
131
|
+
<div v-if="image || !!slots.image" :class="ui.imageWrapper({ class: props.ui?.imageWrapper })">
|
|
132
|
+
<slot name="image">
|
|
133
|
+
<component
|
|
134
|
+
:is="ImageComponent"
|
|
135
|
+
v-if="image"
|
|
136
|
+
v-bind="typeof image === 'string' ? { src: image, alt: title } : { alt: title, ...image }"
|
|
137
|
+
:class="ui.image({ class: props.ui?.image, to: !!to })"
|
|
138
|
+
/>
|
|
139
|
+
</slot>
|
|
140
|
+
|
|
141
|
+
<ReuseLinkTemplate />
|
|
142
|
+
</div>
|
|
143
|
+
</slot>
|
|
144
|
+
</div>
|
|
145
|
+
|
|
146
|
+
<slot name="body" />
|
|
147
|
+
|
|
148
|
+
<div v-if="!!slots.footer || (authors?.length || !!slots.authors) || !!slots.actions" :class="ui.footer({ class: props.ui?.footer, body: !!slots.body })">
|
|
149
|
+
<slot name="footer">
|
|
150
|
+
<div v-if="authors?.length || !!slots.authors" :class="ui.authors({ class: props.ui?.authors })">
|
|
151
|
+
<slot name="authors">
|
|
152
|
+
<UUser
|
|
153
|
+
v-for="(author, index) in authors"
|
|
154
|
+
:key="index"
|
|
155
|
+
v-bind="author"
|
|
156
|
+
/>
|
|
157
|
+
</slot>
|
|
158
|
+
</div>
|
|
159
|
+
|
|
160
|
+
<slot name="actions" />
|
|
161
|
+
</slot>
|
|
162
|
+
</div>
|
|
163
|
+
</div>
|
|
164
|
+
</Primitive>
|
|
165
|
+
</template>
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import theme from '#build/ui/changelog-version';
|
|
2
|
+
import type { AppConfig } from '@nuxt/schema';
|
|
3
|
+
import type { BadgeProps, LinkProps, ComponentConfig, UserProps } from '../types';
|
|
4
|
+
type ChangelogVersion = ComponentConfig<typeof theme, AppConfig, 'changelogVersion'>;
|
|
5
|
+
export interface ChangelogVersionProps {
|
|
6
|
+
/**
|
|
7
|
+
* The element or component this component should render as.
|
|
8
|
+
* @defaultValue 'article'
|
|
9
|
+
*/
|
|
10
|
+
as?: any;
|
|
11
|
+
title?: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
/** The date of the changelog version. Can be a string or a Date object. */
|
|
14
|
+
date?: string | Date;
|
|
15
|
+
/**
|
|
16
|
+
* Display a badge on the changelog version.
|
|
17
|
+
* Can be a string or an object.
|
|
18
|
+
* `{ color: 'neutral', variant: 'solid' }`{lang="ts-type"}
|
|
19
|
+
*/
|
|
20
|
+
badge?: string | BadgeProps;
|
|
21
|
+
/** The authors of the changelog version. */
|
|
22
|
+
authors?: UserProps[];
|
|
23
|
+
/** The image of the changelog version. Can be a string or an object. */
|
|
24
|
+
image?: string | Partial<HTMLImageElement>;
|
|
25
|
+
/**
|
|
26
|
+
* Display an indicator dot on the left.
|
|
27
|
+
* @defaultValue true
|
|
28
|
+
*/
|
|
29
|
+
indicator?: boolean;
|
|
30
|
+
to?: LinkProps['to'];
|
|
31
|
+
target?: LinkProps['target'];
|
|
32
|
+
onClick?: (event: MouseEvent) => void | Promise<void>;
|
|
33
|
+
class?: any;
|
|
34
|
+
ui?: ChangelogVersion['slots'];
|
|
35
|
+
}
|
|
36
|
+
export interface ChangelogVersionSlots {
|
|
37
|
+
header(props?: {}): any;
|
|
38
|
+
badge(props?: {}): any;
|
|
39
|
+
date(props?: {}): any;
|
|
40
|
+
title(props?: {}): any;
|
|
41
|
+
description(props?: {}): any;
|
|
42
|
+
image(props?: {}): any;
|
|
43
|
+
body(props?: {}): any;
|
|
44
|
+
footer(props?: {}): any;
|
|
45
|
+
authors(props?: {}): any;
|
|
46
|
+
actions(props?: {}): any;
|
|
47
|
+
indicator(props?: {}): any;
|
|
48
|
+
}
|
|
49
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChangelogVersionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ChangelogVersionProps> & Readonly<{}>, {
|
|
50
|
+
as: any;
|
|
51
|
+
indicator: boolean;
|
|
52
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ChangelogVersionSlots>;
|
|
53
|
+
export default _default;
|
|
54
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
55
|
+
new (): {
|
|
56
|
+
$slots: S;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import theme from "#build/ui/changelog-versions";
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<script setup>
|
|
6
|
+
import { computed } from "vue";
|
|
7
|
+
import { Primitive } from "reka-ui";
|
|
8
|
+
import { Motion, useScroll, useSpring } from "motion-v";
|
|
9
|
+
import { defu } from "defu";
|
|
10
|
+
import { omit } from "../utils";
|
|
11
|
+
import { useAppConfig } from "#imports";
|
|
12
|
+
import { tv } from "../utils/tv";
|
|
13
|
+
import UChangelogVersion from "./ChangelogVersion.vue";
|
|
14
|
+
const props = defineProps({
|
|
15
|
+
as: { type: null, required: false },
|
|
16
|
+
versions: { type: Array, required: false },
|
|
17
|
+
indicator: { type: Boolean, required: false, default: true },
|
|
18
|
+
indicatorMotion: { type: [Boolean, Object], required: false, default: true },
|
|
19
|
+
class: { type: null, required: false },
|
|
20
|
+
ui: { type: null, required: false }
|
|
21
|
+
});
|
|
22
|
+
const slots = defineSlots();
|
|
23
|
+
const proxySlots = omit(slots, ["default", "indicator"]);
|
|
24
|
+
const appConfig = useAppConfig();
|
|
25
|
+
const springOptions = computed(() => defu(typeof props.indicatorMotion === "object" ? props.indicatorMotion : {}, { damping: 30, restDelta: 1e-3 }));
|
|
26
|
+
const { scrollY } = useScroll();
|
|
27
|
+
const height = useSpring(scrollY, springOptions);
|
|
28
|
+
const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.changelogVersions || {} })());
|
|
29
|
+
</script>
|
|
30
|
+
|
|
31
|
+
<template>
|
|
32
|
+
<Primitive :as="as" :class="ui.root({ class: [props.ui?.root, props.class] })">
|
|
33
|
+
<div v-if="!!props.indicator || !!slots.indicator" :class="ui.indicator({ class: props.ui?.indicator })">
|
|
34
|
+
<slot name="indicator">
|
|
35
|
+
<Motion v-if="!!props.indicatorMotion" :class="ui.beam({ class: props.ui?.beam })" :style="{ height }" />
|
|
36
|
+
</slot>
|
|
37
|
+
</div>
|
|
38
|
+
|
|
39
|
+
<div v-if="versions?.length || !!slots.default" :class="ui.container({ class: props.ui?.container })">
|
|
40
|
+
<slot>
|
|
41
|
+
<UChangelogVersion
|
|
42
|
+
v-for="(version, index) in versions"
|
|
43
|
+
:key="index"
|
|
44
|
+
:indicator="!!props.indicator"
|
|
45
|
+
v-bind="version"
|
|
46
|
+
>
|
|
47
|
+
<template v-for="(_, name) in proxySlots" #[name]>
|
|
48
|
+
<slot :name="name" v-bind="{ version }" />
|
|
49
|
+
</template>
|
|
50
|
+
</UChangelogVersion>
|
|
51
|
+
</slot>
|
|
52
|
+
</div>
|
|
53
|
+
</Primitive>
|
|
54
|
+
</template>
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import theme from '#build/ui/changelog-versions';
|
|
2
|
+
import type { AppConfig } from '@nuxt/schema';
|
|
3
|
+
import type { ComponentConfig, ChangelogVersionProps } from '../types';
|
|
4
|
+
import type { SpringOptions } from 'motion-v';
|
|
5
|
+
type ChangelogVersions = ComponentConfig<typeof theme, AppConfig, 'changelogVersions'>;
|
|
6
|
+
export interface ChangelogVersionsProps<T extends ChangelogVersionProps = ChangelogVersionProps> {
|
|
7
|
+
/**
|
|
8
|
+
* The element or component this component should render as.
|
|
9
|
+
* @defaultValue 'div'
|
|
10
|
+
*/
|
|
11
|
+
as?: any;
|
|
12
|
+
versions?: T[];
|
|
13
|
+
/**
|
|
14
|
+
* Display an indicator bar on the left.
|
|
15
|
+
* @defaultValue true
|
|
16
|
+
*/
|
|
17
|
+
indicator?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Enable scrolling motion effect on the indicator bar.
|
|
20
|
+
* `{ damping: 30, restDelta: 0.001 }`{lang="ts-type"}
|
|
21
|
+
* @defaultValue true
|
|
22
|
+
* @see https://motion.dev/docs/vue-transitions#spring
|
|
23
|
+
*/
|
|
24
|
+
indicatorMotion?: boolean | SpringOptions;
|
|
25
|
+
class?: any;
|
|
26
|
+
ui?: ChangelogVersions['slots'];
|
|
27
|
+
}
|
|
28
|
+
export interface ChangelogVersionsSlots<T extends ChangelogVersionProps = ChangelogVersionProps> {
|
|
29
|
+
default(props?: {}): any;
|
|
30
|
+
indicator(props?: {}): any;
|
|
31
|
+
header(props: {
|
|
32
|
+
version: T;
|
|
33
|
+
}): any;
|
|
34
|
+
badge(props: {
|
|
35
|
+
version: T;
|
|
36
|
+
}): any;
|
|
37
|
+
date(props: {
|
|
38
|
+
version: T;
|
|
39
|
+
}): any;
|
|
40
|
+
title(props: {
|
|
41
|
+
version: T;
|
|
42
|
+
}): any;
|
|
43
|
+
description(props: {
|
|
44
|
+
version: T;
|
|
45
|
+
}): any;
|
|
46
|
+
image(props: {
|
|
47
|
+
version: T;
|
|
48
|
+
}): any;
|
|
49
|
+
body(props: {
|
|
50
|
+
version: T;
|
|
51
|
+
}): any;
|
|
52
|
+
footer(props: {
|
|
53
|
+
version: T;
|
|
54
|
+
}): any;
|
|
55
|
+
authors(props: {
|
|
56
|
+
version: T;
|
|
57
|
+
}): any;
|
|
58
|
+
actions(props: {
|
|
59
|
+
version: T;
|
|
60
|
+
}): any;
|
|
61
|
+
indicator(props: {
|
|
62
|
+
version: T;
|
|
63
|
+
}): any;
|
|
64
|
+
}
|
|
65
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ChangelogVersionsProps<ChangelogVersionProps>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ChangelogVersionsProps<ChangelogVersionProps>> & Readonly<{}>, {
|
|
66
|
+
indicator: boolean;
|
|
67
|
+
indicatorMotion: boolean | SpringOptions;
|
|
68
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, ChangelogVersionsSlots<ChangelogVersionProps>>;
|
|
69
|
+
export default _default;
|
|
70
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
71
|
+
new (): {
|
|
72
|
+
$slots: S;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
@@ -49,39 +49,39 @@ const handleActionClick = (e, action) => {
|
|
|
49
49
|
</script>
|
|
50
50
|
|
|
51
51
|
<template>
|
|
52
|
-
<Primitive :id="id" :as="as" :data-role="role" :class="ui.root({ class: [props.ui?.root, props.class] })">
|
|
53
|
-
<div :class="ui.container({ class: props.ui?.container })">
|
|
54
|
-
<slot name="leading" :avatar="avatar">
|
|
55
|
-
<div v-if="hasLeading" :class="ui.leading({ class: props.ui?.leading })">
|
|
56
|
-
<UIcon v-if="icon" :name="icon" :class="ui.leadingIcon({ class: props.ui?.leadingIcon })" />
|
|
57
|
-
<UAvatar
|
|
58
|
-
v-else-if="avatar"
|
|
59
|
-
:size="ui.leadingAvatar()"
|
|
60
|
-
v-bind="avatar"
|
|
61
|
-
:class="ui.leadingAvatar({ class: props.ui?.leadingAvatar })"
|
|
62
|
-
/>
|
|
63
|
-
</div>
|
|
64
|
-
</slot>
|
|
65
|
-
<slot name="content" :content="content">
|
|
66
|
-
<div :class="ui.content({ class: props.ui?.content })">
|
|
67
|
-
<slot name="default">
|
|
68
|
-
{{ content }}
|
|
69
|
-
</slot>
|
|
70
|
-
</div>
|
|
71
|
-
</slot>
|
|
72
|
-
<slot name="actions" :actions="actions">
|
|
73
|
-
<div v-if="hasActions" :class="ui.actions({ class: props.ui?.actions })">
|
|
74
|
-
<UButton
|
|
75
|
-
v-for="action in actions"
|
|
76
|
-
:key="action.label"
|
|
77
|
-
v-bind="action"
|
|
78
|
-
:size="action.size || 'xs'"
|
|
79
|
-
:color="action.color || 'neutral'"
|
|
80
|
-
:variant="action.variant || 'ghost'"
|
|
81
|
-
@click="(e) => handleActionClick(e, action)"
|
|
82
|
-
/>
|
|
83
|
-
</div>
|
|
84
|
-
</slot>
|
|
85
|
-
</div>
|
|
86
|
-
</Primitive>
|
|
52
|
+
<Primitive :id="id" :as="as" :data-role="role" :class="ui.root({ class: [props.ui?.root, props.class] })">
|
|
53
|
+
<div :class="ui.container({ class: props.ui?.container })">
|
|
54
|
+
<slot name="leading" :avatar="avatar">
|
|
55
|
+
<div v-if="hasLeading" :class="ui.leading({ class: props.ui?.leading })">
|
|
56
|
+
<UIcon v-if="icon" :name="icon" :class="ui.leadingIcon({ class: props.ui?.leadingIcon })" />
|
|
57
|
+
<UAvatar
|
|
58
|
+
v-else-if="avatar"
|
|
59
|
+
:size="ui.leadingAvatar()"
|
|
60
|
+
v-bind="avatar"
|
|
61
|
+
:class="ui.leadingAvatar({ class: props.ui?.leadingAvatar })"
|
|
62
|
+
/>
|
|
63
|
+
</div>
|
|
64
|
+
</slot>
|
|
65
|
+
<slot name="content" :content="content">
|
|
66
|
+
<div :class="ui.content({ class: props.ui?.content })">
|
|
67
|
+
<slot name="default">
|
|
68
|
+
{{ content }}
|
|
69
|
+
</slot>
|
|
70
|
+
</div>
|
|
71
|
+
</slot>
|
|
72
|
+
<slot name="actions" :actions="actions">
|
|
73
|
+
<div v-if="hasActions" :class="ui.actions({ class: props.ui?.actions })">
|
|
74
|
+
<UButton
|
|
75
|
+
v-for="action in actions"
|
|
76
|
+
:key="action.label"
|
|
77
|
+
v-bind="action"
|
|
78
|
+
:size="action.size || 'xs'"
|
|
79
|
+
:color="action.color || 'neutral'"
|
|
80
|
+
:variant="action.variant || 'ghost'"
|
|
81
|
+
@click="(e) => handleActionClick(e, action)"
|
|
82
|
+
/>
|
|
83
|
+
</div>
|
|
84
|
+
</slot>
|
|
85
|
+
</div>
|
|
86
|
+
</Primitive>
|
|
87
87
|
</template>
|