@eslamdevui/ui 3.2.0 → 3.2.2
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/alert.ts +5 -0
- package/.nuxt/ui/auth-form.ts +20 -0
- package/.nuxt/ui/badge.ts +5 -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/button-group.ts +13 -0
- package/.nuxt/ui/button.ts +5 -0
- package/.nuxt/ui/carousel.ts +5 -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 +341 -0
- package/.nuxt/ui/content/content-search-button.ts +6 -0
- package/.nuxt/ui/content/content-search.ts +6 -0
- package/.nuxt/ui/content/content-surround.ts +39 -0
- package/.nuxt/ui/content/content-toc.ts +150 -0
- package/.nuxt/ui/content/index.ts +5 -0
- package/.nuxt/ui/content-navigation.ts +6 -4
- package/.nuxt/ui/content-surround.ts +5 -0
- package/.nuxt/ui/dashboard-navbar.ts +5 -0
- package/.nuxt/ui/dashboard-sidebar-collapse.ts +5 -0
- package/.nuxt/ui/dashboard-sidebar-toggle.ts +5 -0
- package/.nuxt/ui/dashboard-sidebar.ts +10 -0
- package/.nuxt/ui/error.ts +9 -0
- 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 +80 -2
- package/.nuxt/ui/input-menu.ts +9 -0
- package/.nuxt/ui/input-number.ts +5 -0
- package/.nuxt/ui/input-tags.ts +9 -0
- package/.nuxt/ui/input.ts +9 -0
- 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/prose/a.ts +6 -0
- package/.nuxt/ui/prose/accordion-item.ts +3 -0
- package/.nuxt/ui/prose/accordion.ts +6 -0
- package/.nuxt/ui/prose/badge.ts +3 -0
- package/.nuxt/ui/prose/blockquote.ts +3 -0
- package/.nuxt/ui/prose/callout.ts +129 -0
- package/.nuxt/ui/prose/card-group.ts +3 -0
- package/.nuxt/ui/prose/card.ts +119 -0
- package/.nuxt/ui/prose/code-collapse.ts +19 -0
- package/.nuxt/ui/prose/code-group.ts +13 -0
- package/.nuxt/ui/prose/code-icon.ts +66 -0
- package/.nuxt/ui/prose/code-preview.ts +14 -0
- package/.nuxt/ui/prose/code-tree.ts +28 -0
- package/.nuxt/ui/prose/code.ts +27 -0
- package/.nuxt/ui/prose/collapsible.ts +12 -0
- package/.nuxt/ui/prose/em.ts +3 -0
- package/.nuxt/ui/prose/field-group.ts +3 -0
- package/.nuxt/ui/prose/field.ts +11 -0
- package/.nuxt/ui/prose/h1.ts +6 -0
- package/.nuxt/ui/prose/h2.ts +14 -0
- package/.nuxt/ui/prose/h3.ts +14 -0
- package/.nuxt/ui/prose/h4.ts +6 -0
- package/.nuxt/ui/prose/hr.ts +3 -0
- package/.nuxt/ui/prose/icon.ts +3 -0
- package/.nuxt/ui/prose/img.ts +3 -0
- package/.nuxt/ui/prose/index.ts +41 -0
- package/.nuxt/ui/prose/kbd.ts +3 -0
- package/.nuxt/ui/prose/li.ts +3 -0
- package/.nuxt/ui/prose/ol.ts +3 -0
- package/.nuxt/ui/prose/p.ts +3 -0
- package/.nuxt/ui/prose/pre.ts +17 -0
- package/.nuxt/ui/prose/steps.ts +19 -0
- package/.nuxt/ui/prose/strong.ts +3 -0
- package/.nuxt/ui/prose/table.ts +6 -0
- package/.nuxt/ui/prose/tabs-item.ts +3 -0
- package/.nuxt/ui/prose/tabs.ts +5 -0
- package/.nuxt/ui/prose/tbody.ts +3 -0
- package/.nuxt/ui/prose/td.ts +3 -0
- package/.nuxt/ui/prose/th.ts +3 -0
- package/.nuxt/ui/prose/thead.ts +3 -0
- package/.nuxt/ui/prose/tr.ts +3 -0
- package/.nuxt/ui/prose/ul.ts +3 -0
- package/.nuxt/ui/select-menu.ts +9 -0
- package/.nuxt/ui/select.ts +9 -0
- package/.nuxt/ui/textarea.ts +9 -0
- package/.nuxt/ui/toast.ts +5 -0
- package/.nuxt/ui/user.ts +106 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +2 -2
- package/dist/runtime/components/AuthForm.vue +195 -0
- package/dist/runtime/components/AuthForm.vue.d.ts +85 -0
- 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/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/ChatPalette.vue +32 -0
- package/dist/runtime/components/ChatPalette.vue.d.ts +24 -0
- package/dist/runtime/components/ChatPrompt.vue.d.ts +1 -1
- package/dist/runtime/components/CommandPalette.vue.d.ts +3 -3
- package/dist/runtime/components/DashboardSidebarToggle.vue.d.ts +1 -1
- 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/Header.vue +137 -0
- package/dist/runtime/components/Header.vue.d.ts +72 -0
- package/dist/runtime/components/InputMenu.vue.d.ts +3 -3
- package/dist/runtime/components/Main.vue +23 -0
- package/dist/runtime/components/Main.vue.d.ts +20 -0
- 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 +32 -0
- package/dist/runtime/components/PageSection.vue +88 -0
- package/dist/runtime/components/PageSection.vue.d.ts +64 -0
- 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/SelectMenu.vue.d.ts +3 -3
- package/dist/runtime/components/Tabs.vue +1 -0
- package/dist/runtime/components/User.vue +69 -0
- package/dist/runtime/components/User.vue.d.ts +46 -0
- package/dist/runtime/components/content/ContentSearchButton.vue.d.ts +57 -11
- package/dist/runtime/components/content/ContentSurround.vue +2 -2
- package/dist/runtime/components/content/ContentSurround.vue.d.ts +45 -52
- package/dist/runtime/components/content/ContentToc.vue +27 -15
- package/dist/runtime/components/content/ContentToc.vue.d.ts +79 -81
- package/dist/runtime/types/index.d.ts +33 -0
- package/dist/runtime/types/index.js +33 -0
- 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/.nuxt/ui/prose.ts +0 -321
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import theme from "#build/ui/page-grid";
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<script setup>
|
|
6
|
+
import { computed } from "vue";
|
|
7
|
+
import { Primitive } from "reka-ui";
|
|
8
|
+
import { useAppConfig } from "#imports";
|
|
9
|
+
import { tv } from "../utils/tv";
|
|
10
|
+
const props = defineProps({
|
|
11
|
+
as: { type: null, required: false },
|
|
12
|
+
class: { type: null, required: false }
|
|
13
|
+
});
|
|
14
|
+
defineSlots();
|
|
15
|
+
const appConfig = useAppConfig();
|
|
16
|
+
const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.pageGrid || {} }));
|
|
17
|
+
</script>
|
|
18
|
+
|
|
19
|
+
<template>
|
|
20
|
+
<Primitive :as="as" :class="ui({ class: props.class })">
|
|
21
|
+
<slot />
|
|
22
|
+
</Primitive>
|
|
23
|
+
</template>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface PageGridProps {
|
|
2
|
+
/**
|
|
3
|
+
* The element or component this component should render as.
|
|
4
|
+
* @defaultValue 'div'
|
|
5
|
+
*/
|
|
6
|
+
as?: any;
|
|
7
|
+
class?: any;
|
|
8
|
+
}
|
|
9
|
+
export interface PageGridSlots {
|
|
10
|
+
default(props?: {}): any;
|
|
11
|
+
}
|
|
12
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PageGridProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PageGridProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, PageGridSlots>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import theme from "#build/ui/page-header";
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<script setup>
|
|
6
|
+
import { computed } from "vue";
|
|
7
|
+
import { Primitive } from "reka-ui";
|
|
8
|
+
import { useAppConfig } from "#imports";
|
|
9
|
+
import { tv } from "../utils/tv";
|
|
10
|
+
const props = defineProps({
|
|
11
|
+
as: { type: null, required: false },
|
|
12
|
+
headline: { type: String, required: false },
|
|
13
|
+
title: { type: String, required: false },
|
|
14
|
+
description: { type: String, required: false },
|
|
15
|
+
links: { type: Array, required: false },
|
|
16
|
+
class: { type: null, required: false },
|
|
17
|
+
ui: { type: null, required: false }
|
|
18
|
+
});
|
|
19
|
+
const slots = defineSlots();
|
|
20
|
+
const appConfig = useAppConfig();
|
|
21
|
+
const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.pageHeader || {} })({
|
|
22
|
+
title: !!props.title || !!slots.title
|
|
23
|
+
}));
|
|
24
|
+
</script>
|
|
25
|
+
|
|
26
|
+
<template>
|
|
27
|
+
<Primitive :as="as" :class="ui.root({ class: [props.ui?.root, props.class] })">
|
|
28
|
+
<div v-if="headline || !!slots.headline" :class="ui.headline({ class: props.ui?.headline })">
|
|
29
|
+
<slot name="headline">
|
|
30
|
+
{{ headline }}
|
|
31
|
+
</slot>
|
|
32
|
+
</div>
|
|
33
|
+
|
|
34
|
+
<div :class="ui.container({ class: props.ui?.container })">
|
|
35
|
+
<div :class="ui.wrapper({ class: props.ui?.wrapper })">
|
|
36
|
+
<h1 v-if="title || !!slots.title" :class="ui.title({ class: props.ui?.title })">
|
|
37
|
+
<slot name="title">
|
|
38
|
+
{{ title }}
|
|
39
|
+
</slot>
|
|
40
|
+
</h1>
|
|
41
|
+
|
|
42
|
+
<div v-if="links?.length || !!slots.links" :class="ui.links({ class: props.ui?.links })">
|
|
43
|
+
<slot name="links">
|
|
44
|
+
<UButton v-for="(link, index) in links" :key="index" color="neutral" variant="outline" v-bind="link" />
|
|
45
|
+
</slot>
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
|
|
49
|
+
<div v-if="description || !!slots.description" :class="ui.description({ class: props.ui?.description })">
|
|
50
|
+
<slot name="description">
|
|
51
|
+
{{ description }}
|
|
52
|
+
</slot>
|
|
53
|
+
</div>
|
|
54
|
+
|
|
55
|
+
<slot />
|
|
56
|
+
</div>
|
|
57
|
+
</Primitive>
|
|
58
|
+
</template>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import theme from '#build/ui/page-header';
|
|
2
|
+
import type { AppConfig } from '@nuxt/schema';
|
|
3
|
+
import type { ButtonProps, ComponentConfig } from '../types';
|
|
4
|
+
type PageHeader = ComponentConfig<typeof theme, AppConfig, 'pageHeader'>;
|
|
5
|
+
export interface PageHeaderProps {
|
|
6
|
+
/**
|
|
7
|
+
* The element or component this component should render as.
|
|
8
|
+
* @defaultValue 'div'
|
|
9
|
+
*/
|
|
10
|
+
as?: any;
|
|
11
|
+
headline?: string;
|
|
12
|
+
title?: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Display a list of Button next to the title.
|
|
16
|
+
* `{ color: 'neutral', variant: 'outline' }`{lang="ts-type"}
|
|
17
|
+
*/
|
|
18
|
+
links?: ButtonProps[];
|
|
19
|
+
class?: any;
|
|
20
|
+
ui?: PageHeader['slots'];
|
|
21
|
+
}
|
|
22
|
+
export interface PageHeaderSlots {
|
|
23
|
+
headline(props?: {}): any;
|
|
24
|
+
title(props?: {}): any;
|
|
25
|
+
description(props?: {}): any;
|
|
26
|
+
links(props?: {}): any;
|
|
27
|
+
default(props?: {}): any;
|
|
28
|
+
}
|
|
29
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PageHeaderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PageHeaderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, PageHeaderSlots>;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
32
|
+
new (): {
|
|
33
|
+
$slots: S;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import theme from "#build/ui/page-hero";
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<script setup>
|
|
6
|
+
import { computed } from "vue";
|
|
7
|
+
import { Primitive } from "reka-ui";
|
|
8
|
+
import { useAppConfig } from "#imports";
|
|
9
|
+
import { tv } from "../utils/tv";
|
|
10
|
+
const props = defineProps({
|
|
11
|
+
as: { type: null, required: false },
|
|
12
|
+
headline: { type: String, required: false },
|
|
13
|
+
title: { type: String, required: false },
|
|
14
|
+
description: { type: String, required: false },
|
|
15
|
+
links: { type: Array, required: false },
|
|
16
|
+
orientation: { type: null, required: false, default: "vertical" },
|
|
17
|
+
reverse: { type: Boolean, required: false },
|
|
18
|
+
class: { type: null, required: false },
|
|
19
|
+
ui: { type: null, required: false }
|
|
20
|
+
});
|
|
21
|
+
const slots = defineSlots();
|
|
22
|
+
const appConfig = useAppConfig();
|
|
23
|
+
const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.pageHero || {} })({
|
|
24
|
+
orientation: props.orientation,
|
|
25
|
+
reverse: props.reverse,
|
|
26
|
+
title: !!props.title || !!slots.title
|
|
27
|
+
}));
|
|
28
|
+
</script>
|
|
29
|
+
|
|
30
|
+
<template>
|
|
31
|
+
<Primitive :as="as" :data-orientation="orientation" :class="ui.root({ class: [props.ui?.root, props.class] })">
|
|
32
|
+
<slot name="top" />
|
|
33
|
+
|
|
34
|
+
<UContainer :class="ui.container({ class: props.ui?.container })">
|
|
35
|
+
<div :class="ui.wrapper({ class: props.ui?.wrapper })">
|
|
36
|
+
<div v-if="headline || !!slots.headline" :class="ui.headline({ class: props.ui?.headline, headline: !slots.headline })">
|
|
37
|
+
<slot name="headline">
|
|
38
|
+
{{ headline }}
|
|
39
|
+
</slot>
|
|
40
|
+
</div>
|
|
41
|
+
|
|
42
|
+
<h1 v-if="title || !!slots.title" :class="ui.title({ class: props.ui?.title })">
|
|
43
|
+
<slot name="title">
|
|
44
|
+
{{ title }}
|
|
45
|
+
</slot>
|
|
46
|
+
</h1>
|
|
47
|
+
|
|
48
|
+
<div v-if="description || !!slots.description" :class="ui.description({ class: props.ui?.description })">
|
|
49
|
+
<slot name="description">
|
|
50
|
+
{{ description }}
|
|
51
|
+
</slot>
|
|
52
|
+
</div>
|
|
53
|
+
|
|
54
|
+
<div v-if="links?.length || !!slots.links" :class="ui.links({ class: props.ui?.links })">
|
|
55
|
+
<slot name="links">
|
|
56
|
+
<UButton v-for="(link, index) in links" :key="index" size="xl" v-bind="link" />
|
|
57
|
+
</slot>
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
|
|
61
|
+
<slot v-if="!!slots.default" />
|
|
62
|
+
<div v-else-if="orientation === 'horizontal'" class="hidden lg:block" />
|
|
63
|
+
</UContainer>
|
|
64
|
+
|
|
65
|
+
<slot name="bottom" />
|
|
66
|
+
</Primitive>
|
|
67
|
+
</template>
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import theme from '#build/ui/page-hero';
|
|
2
|
+
import type { AppConfig } from '@nuxt/schema';
|
|
3
|
+
import type { ButtonProps, ComponentConfig } from '../types';
|
|
4
|
+
type PageHero = ComponentConfig<typeof theme, AppConfig, 'pageHero'>;
|
|
5
|
+
export interface PageHeroProps {
|
|
6
|
+
/**
|
|
7
|
+
* The element or component this component should render as.
|
|
8
|
+
* @defaultValue 'div'
|
|
9
|
+
*/
|
|
10
|
+
as?: any;
|
|
11
|
+
headline?: string;
|
|
12
|
+
title?: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Display a list of Button under the description.
|
|
16
|
+
* `{ size: 'xl' }`{lang="ts-type"}
|
|
17
|
+
*/
|
|
18
|
+
links?: ButtonProps[];
|
|
19
|
+
/**
|
|
20
|
+
* The orientation of the page hero.
|
|
21
|
+
* @defaultValue 'vertical'
|
|
22
|
+
*/
|
|
23
|
+
orientation?: PageHero['variants']['orientation'];
|
|
24
|
+
/**
|
|
25
|
+
* Reverse the order of the default slot.
|
|
26
|
+
* @defaultValue false
|
|
27
|
+
*/
|
|
28
|
+
reverse?: boolean;
|
|
29
|
+
class?: any;
|
|
30
|
+
ui?: PageHero['slots'];
|
|
31
|
+
}
|
|
32
|
+
export interface PageHeroSlots {
|
|
33
|
+
default(props?: {}): any;
|
|
34
|
+
top(props?: {}): any;
|
|
35
|
+
bottom(props?: {}): any;
|
|
36
|
+
headline(props?: {}): any;
|
|
37
|
+
title(props?: {}): any;
|
|
38
|
+
description(props?: {}): any;
|
|
39
|
+
links(props?: {}): any;
|
|
40
|
+
}
|
|
41
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PageHeroProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PageHeroProps> & Readonly<{}>, {
|
|
42
|
+
orientation: PageHero["variants"]["orientation"];
|
|
43
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, PageHeroSlots>;
|
|
44
|
+
export default _default;
|
|
45
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
46
|
+
new (): {
|
|
47
|
+
$slots: S;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import theme from "#build/ui/page-links";
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<script setup>
|
|
6
|
+
import { computed } from "vue";
|
|
7
|
+
import { Primitive } from "reka-ui";
|
|
8
|
+
import { pickLinkProps } from "../utils/link";
|
|
9
|
+
import { useAppConfig } from "#imports";
|
|
10
|
+
import { tv } from "../utils/tv";
|
|
11
|
+
const props = defineProps({
|
|
12
|
+
as: { type: null, required: false, default: "nav" },
|
|
13
|
+
title: { type: String, required: false },
|
|
14
|
+
links: { type: Array, required: false },
|
|
15
|
+
class: { type: null, required: false },
|
|
16
|
+
ui: { type: null, required: false }
|
|
17
|
+
});
|
|
18
|
+
const slots = defineSlots();
|
|
19
|
+
const appConfig = useAppConfig();
|
|
20
|
+
const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.pageLinks || {} })());
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
<template>
|
|
24
|
+
<Primitive :as="as" :class="ui.root({ class: [props.ui?.root, props.class] })">
|
|
25
|
+
<p v-if="title || !!slots.title" :class="ui.title({ class: props.ui?.title })">
|
|
26
|
+
<slot name="title">
|
|
27
|
+
{{ title }}
|
|
28
|
+
</slot>
|
|
29
|
+
</p>
|
|
30
|
+
|
|
31
|
+
<ul :class="ui.list({ class: props.ui?.list })">
|
|
32
|
+
<li v-for="(link, index) in links" :key="index" :class="ui.item({ class: [props.ui?.item, link.ui?.item] })">
|
|
33
|
+
<ULink v-slot="{ active, ...slotProps }" v-bind="pickLinkProps(link)" custom>
|
|
34
|
+
<ULinkBase v-bind="slotProps" :class="ui.link({ class: [props.ui?.link, link.ui?.link, link.class], active })">
|
|
35
|
+
<slot name="link" :link="link" :active="active">
|
|
36
|
+
<slot name="link-leading" :link="link" :active="active">
|
|
37
|
+
<UIcon v-if="link.icon" :name="link.icon" :class="ui.linkLeadingIcon({ class: [props.ui?.linkLeadingIcon, link.ui?.linkLeadingIcon], active })" />
|
|
38
|
+
</slot>
|
|
39
|
+
|
|
40
|
+
<span v-if="link.label || !!slots['link-label']" :class="ui.linkLabel({ class: [props.ui?.linkLabel, link.ui?.linkLabel], active })">
|
|
41
|
+
<slot name="link-label" :link="link" :active="active">
|
|
42
|
+
{{ link.label }}
|
|
43
|
+
</slot>
|
|
44
|
+
|
|
45
|
+
<UIcon v-if="link.target === '_blank'" :name="appConfig.ui.icons.external" :class="ui.linkLabelExternalIcon({ class: [props.ui?.linkLabelExternalIcon, link.ui?.linkLabelExternalIcon], active })" />
|
|
46
|
+
</span>
|
|
47
|
+
|
|
48
|
+
<slot name="link-trailing" :link="link" :active="active" />
|
|
49
|
+
</slot>
|
|
50
|
+
</ULinkBase>
|
|
51
|
+
</ULink>
|
|
52
|
+
</li>
|
|
53
|
+
</ul>
|
|
54
|
+
</Primitive>
|
|
55
|
+
</template>
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import theme from '#build/ui/page-links';
|
|
2
|
+
import type { AppConfig } from '@nuxt/schema';
|
|
3
|
+
import type { LinkProps, ComponentConfig } from '../types';
|
|
4
|
+
type PageLinks = ComponentConfig<typeof theme, AppConfig, 'pageLinks'>;
|
|
5
|
+
export interface PageLink extends Omit<LinkProps, 'custom'> {
|
|
6
|
+
label: string;
|
|
7
|
+
/**
|
|
8
|
+
* @IconifyIcon
|
|
9
|
+
*/
|
|
10
|
+
icon?: string;
|
|
11
|
+
class?: any;
|
|
12
|
+
ui?: Pick<PageLinks['slots'], 'item' | 'link' | 'linkLabel' | 'linkLabelExternalIcon' | 'linkLeadingIcon'>;
|
|
13
|
+
}
|
|
14
|
+
export interface PageLinksProps<T extends PageLink = PageLink> {
|
|
15
|
+
/**
|
|
16
|
+
* The element or component this component should render as.
|
|
17
|
+
* @defaultValue 'nav'
|
|
18
|
+
*/
|
|
19
|
+
as?: any;
|
|
20
|
+
title?: string;
|
|
21
|
+
links?: T[];
|
|
22
|
+
class?: any;
|
|
23
|
+
ui?: PageLinks['slots'];
|
|
24
|
+
}
|
|
25
|
+
type SlotProps<T> = (props: {
|
|
26
|
+
link: T;
|
|
27
|
+
active: boolean;
|
|
28
|
+
}) => any;
|
|
29
|
+
export interface PageLinksSlots<T extends PageLink = PageLink> {
|
|
30
|
+
'title'(props?: {}): any;
|
|
31
|
+
'link': SlotProps<T>;
|
|
32
|
+
'link-leading': SlotProps<T>;
|
|
33
|
+
'link-label': SlotProps<T>;
|
|
34
|
+
'link-trailing': SlotProps<T>;
|
|
35
|
+
}
|
|
36
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PageLinksProps<PageLink>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PageLinksProps<PageLink>> & Readonly<{}>, {
|
|
37
|
+
as: any;
|
|
38
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, PageLinksSlots<PageLink>>;
|
|
39
|
+
export default _default;
|
|
40
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
41
|
+
new (): {
|
|
42
|
+
$slots: S;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import theme from "#build/ui/page-list";
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<script setup>
|
|
6
|
+
import { computed } from "vue";
|
|
7
|
+
import { Primitive } from "reka-ui";
|
|
8
|
+
import { useAppConfig } from "#imports";
|
|
9
|
+
import { tv } from "../utils/tv";
|
|
10
|
+
const props = defineProps({
|
|
11
|
+
as: { type: null, required: false },
|
|
12
|
+
divide: { type: Boolean, required: false, default: false },
|
|
13
|
+
class: { type: null, required: false }
|
|
14
|
+
});
|
|
15
|
+
defineSlots();
|
|
16
|
+
const appConfig = useAppConfig();
|
|
17
|
+
const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.pageList || {} }));
|
|
18
|
+
</script>
|
|
19
|
+
|
|
20
|
+
<template>
|
|
21
|
+
<Primitive :as="as" role="list" :class="ui({ class: props.class, divide: props.divide })">
|
|
22
|
+
<slot />
|
|
23
|
+
</Primitive>
|
|
24
|
+
</template>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface PageListProps {
|
|
2
|
+
/**
|
|
3
|
+
* The element or component this component should render as.
|
|
4
|
+
* @defaultValue 'div'
|
|
5
|
+
*/
|
|
6
|
+
as?: any;
|
|
7
|
+
divide?: boolean;
|
|
8
|
+
class?: any;
|
|
9
|
+
}
|
|
10
|
+
export interface PageListSlots {
|
|
11
|
+
default(props?: {}): any;
|
|
12
|
+
}
|
|
13
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PageListProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PageListProps> & Readonly<{}>, {
|
|
14
|
+
divide: boolean;
|
|
15
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, PageListSlots>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import theme from "#build/ui/page-logos";
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<script setup>
|
|
6
|
+
import { computed } from "vue";
|
|
7
|
+
import { Primitive } from "reka-ui";
|
|
8
|
+
import { createReusableTemplate } from "@vueuse/core";
|
|
9
|
+
import { useAppConfig } from "#imports";
|
|
10
|
+
import { tv } from "../utils/tv";
|
|
11
|
+
import UAvatar from "./Avatar.vue";
|
|
12
|
+
import UIcon from "./Icon.vue";
|
|
13
|
+
import UPageMarquee from "./PageMarquee.vue";
|
|
14
|
+
const [DefineCreateItemTemplate, ReuseCreateItemTemplate] = createReusableTemplate();
|
|
15
|
+
const props = defineProps({
|
|
16
|
+
as: { type: null, required: false },
|
|
17
|
+
title: { type: String, required: false },
|
|
18
|
+
items: { type: Array, required: false },
|
|
19
|
+
marquee: { type: [Boolean, Object], required: false, default: false },
|
|
20
|
+
class: { type: null, required: false },
|
|
21
|
+
ui: { type: null, required: false }
|
|
22
|
+
});
|
|
23
|
+
const slots = defineSlots();
|
|
24
|
+
const appConfig = useAppConfig();
|
|
25
|
+
const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.pageLogos || {} })());
|
|
26
|
+
</script>
|
|
27
|
+
|
|
28
|
+
<template>
|
|
29
|
+
<DefineCreateItemTemplate>
|
|
30
|
+
<slot v-if="!!slots.default" />
|
|
31
|
+
<template v-else-if="items?.length">
|
|
32
|
+
<template v-for="(item, index) in items" :key="index">
|
|
33
|
+
<UAvatar
|
|
34
|
+
v-if="typeof item === 'object'"
|
|
35
|
+
:src="item.src"
|
|
36
|
+
:alt="item.alt"
|
|
37
|
+
:class="ui.logo({ class: props.ui?.logo })"
|
|
38
|
+
/>
|
|
39
|
+
<UIcon
|
|
40
|
+
v-else
|
|
41
|
+
:name="item"
|
|
42
|
+
:class="ui.logo({ class: props.ui?.logo })"
|
|
43
|
+
/>
|
|
44
|
+
</template>
|
|
45
|
+
</template>
|
|
46
|
+
</DefineCreateItemTemplate>
|
|
47
|
+
|
|
48
|
+
<Primitive :as="as" :class="ui.root({ class: [props.ui?.root, props.class] })">
|
|
49
|
+
<h2 v-if="title" :class="ui.title({ class: props.ui?.title })">
|
|
50
|
+
{{ title }}
|
|
51
|
+
</h2>
|
|
52
|
+
|
|
53
|
+
<UPageMarquee
|
|
54
|
+
v-if="marquee"
|
|
55
|
+
v-bind="typeof marquee === 'object' ? marquee : {}"
|
|
56
|
+
:class="ui.logos({ class: props.ui?.logos, marquee: true })"
|
|
57
|
+
>
|
|
58
|
+
<ReuseCreateItemTemplate :items="items" />
|
|
59
|
+
</UPageMarquee>
|
|
60
|
+
<div v-else :class="ui.logos({ class: props.ui?.logos })">
|
|
61
|
+
<ReuseCreateItemTemplate :items="items" />
|
|
62
|
+
</div>
|
|
63
|
+
</Primitive>
|
|
64
|
+
</template>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import theme from '#build/ui/page-logos';
|
|
2
|
+
import type { AppConfig } from '@nuxt/schema';
|
|
3
|
+
import type { ComponentConfig, PageMarqueeProps } from '../types';
|
|
4
|
+
type PageLogos = ComponentConfig<typeof theme, AppConfig, 'pageLogos'>;
|
|
5
|
+
type PageLogosItem = {
|
|
6
|
+
src: string;
|
|
7
|
+
alt: string;
|
|
8
|
+
} | string;
|
|
9
|
+
export interface PageLogosProps {
|
|
10
|
+
/**
|
|
11
|
+
* The element or component this component should render as.
|
|
12
|
+
* @defaultValue 'div'
|
|
13
|
+
*/
|
|
14
|
+
as?: any;
|
|
15
|
+
title?: string;
|
|
16
|
+
items?: PageLogosItem[];
|
|
17
|
+
marquee?: boolean | PageMarqueeProps;
|
|
18
|
+
class?: any;
|
|
19
|
+
ui?: PageLogos['slots'];
|
|
20
|
+
}
|
|
21
|
+
export interface PageLogosSlots {
|
|
22
|
+
default(props?: {}): any;
|
|
23
|
+
}
|
|
24
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PageLogosProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PageLogosProps> & Readonly<{}>, {
|
|
25
|
+
marquee: boolean | PageMarqueeProps;
|
|
26
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, PageLogosSlots>;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import theme from "#build/ui/page-marquee";
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<script setup>
|
|
6
|
+
import { computed } from "vue";
|
|
7
|
+
import { Primitive } from "reka-ui";
|
|
8
|
+
import { useAppConfig } from "#imports";
|
|
9
|
+
import { tv } from "../utils/tv";
|
|
10
|
+
const props = defineProps({
|
|
11
|
+
as: { type: null, required: false },
|
|
12
|
+
pauseOnHover: { type: Boolean, required: false },
|
|
13
|
+
reverse: { type: Boolean, required: false },
|
|
14
|
+
orientation: { type: null, required: false, default: "horizontal" },
|
|
15
|
+
repeat: { type: Number, required: false, default: 4 },
|
|
16
|
+
overlay: { type: Boolean, required: false, default: true },
|
|
17
|
+
class: { type: null, required: false },
|
|
18
|
+
ui: { type: null, required: false }
|
|
19
|
+
});
|
|
20
|
+
defineSlots();
|
|
21
|
+
const appConfig = useAppConfig();
|
|
22
|
+
const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.pageMarquee || {} })({
|
|
23
|
+
pauseOnHover: props.pauseOnHover,
|
|
24
|
+
orientation: props.orientation,
|
|
25
|
+
reverse: props.reverse,
|
|
26
|
+
overlay: props.overlay
|
|
27
|
+
}));
|
|
28
|
+
</script>
|
|
29
|
+
|
|
30
|
+
<template>
|
|
31
|
+
<Primitive :as="props.as" :class="ui.root({ class: [props.ui?.root, props.class] })">
|
|
32
|
+
<div v-for="i in repeat" :key="i" :class="ui.content({ class: [props.ui?.content] })">
|
|
33
|
+
<slot />
|
|
34
|
+
</div>
|
|
35
|
+
</Primitive>
|
|
36
|
+
</template>
|
|
37
|
+
|
|
38
|
+
<style>
|
|
39
|
+
@keyframes marquee{0%{transform:translateZ(0);will-change:transform}to{transform:translate3d(calc(-100% - var(--gap)),0,0);will-change:transform}}@keyframes marquee-rtl{0%{transform:translate3d(100%,0,0);will-change:transform}to{transform:translate3d(calc(-100%*var(--repeat) - var(--gap)*var(--repeat)),0,0);will-change:transform}}@keyframes marquee-vertical{0%{transform:translateZ(0);will-change:transform}to{transform:translate3d(0,calc(-100% - var(--gap)),0);will-change:transform}}@keyframes marquee-vertical-rtl{0%{transform:translate3d(0,100%,0);will-change:transform}to{transform:translate3d(0,calc(-100%*var(--repeat) - var(--gap)*var(--repeat)),0);will-change:transform}}
|
|
40
|
+
</style>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import theme from '#build/ui/page-marquee';
|
|
2
|
+
import type { AppConfig } from '@nuxt/schema';
|
|
3
|
+
import type { ComponentConfig } from '../types';
|
|
4
|
+
type PageMarquee = ComponentConfig<typeof theme, AppConfig, 'pageMarquee'>;
|
|
5
|
+
export interface PageMarqueeProps {
|
|
6
|
+
/**
|
|
7
|
+
* The element or component this component should render as.
|
|
8
|
+
* @defaultValue 'div'
|
|
9
|
+
*/
|
|
10
|
+
as?: any;
|
|
11
|
+
pauseOnHover?: boolean;
|
|
12
|
+
reverse?: boolean;
|
|
13
|
+
orientation?: PageMarquee['variants']['orientation'];
|
|
14
|
+
repeat?: number;
|
|
15
|
+
overlay?: boolean;
|
|
16
|
+
class?: any;
|
|
17
|
+
ui?: PageMarquee['slots'];
|
|
18
|
+
}
|
|
19
|
+
export interface PageMarqueeSlots {
|
|
20
|
+
default(props?: {}): any;
|
|
21
|
+
}
|
|
22
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<PageMarqueeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PageMarqueeProps> & Readonly<{}>, {
|
|
23
|
+
repeat: number;
|
|
24
|
+
orientation: PageMarquee["variants"]["orientation"];
|
|
25
|
+
overlay: boolean;
|
|
26
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, PageMarqueeSlots>;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import theme from "#build/ui/page-section";
|
|
3
|
+
</script>
|
|
4
|
+
|
|
5
|
+
<script setup>
|
|
6
|
+
import { computed } from "vue";
|
|
7
|
+
import { Primitive } from "reka-ui";
|
|
8
|
+
import { useAppConfig } from "#imports";
|
|
9
|
+
import { tv } from "../utils/tv";
|
|
10
|
+
const props = defineProps({
|
|
11
|
+
as: { type: null, required: false, default: "section" },
|
|
12
|
+
headline: { type: String, required: false },
|
|
13
|
+
icon: { type: String, required: false },
|
|
14
|
+
title: { type: String, required: false },
|
|
15
|
+
description: { type: String, required: false },
|
|
16
|
+
links: { type: Array, required: false },
|
|
17
|
+
features: { type: Array, required: false },
|
|
18
|
+
orientation: { type: null, required: false, default: "vertical" },
|
|
19
|
+
reverse: { type: Boolean, required: false },
|
|
20
|
+
class: { type: null, required: false },
|
|
21
|
+
ui: { type: null, required: false }
|
|
22
|
+
});
|
|
23
|
+
const slots = defineSlots();
|
|
24
|
+
const appConfig = useAppConfig();
|
|
25
|
+
const ui = computed(() => tv({ extend: tv(theme), ...appConfig.ui?.pageSection || {} })({
|
|
26
|
+
orientation: props.orientation,
|
|
27
|
+
reverse: props.reverse,
|
|
28
|
+
title: !!props.title || !!slots.title,
|
|
29
|
+
description: !!props.description || !!slots.description,
|
|
30
|
+
features: !!props.features?.length || !!slots.features
|
|
31
|
+
}));
|
|
32
|
+
</script>
|
|
33
|
+
|
|
34
|
+
<template>
|
|
35
|
+
<Primitive :as="as" :data-orientation="orientation" :class="ui.root({ class: [props.ui?.root, props.class] })">
|
|
36
|
+
<slot name="top" />
|
|
37
|
+
|
|
38
|
+
<UContainer :class="ui.container({ class: props.ui?.container })">
|
|
39
|
+
<div v-if="icon || !!slots.leading || (headline || !!slots.headline) || (title || !!slots.title) || (description || !!slots.description) || (features?.length || !!slots.features) || (links?.length || !!slots.links)" :class="ui.wrapper({ class: props.ui?.wrapper })">
|
|
40
|
+
<div v-if="icon || !!slots.leading" :class="ui.leading({ class: props.ui?.leading })">
|
|
41
|
+
<slot name="leading">
|
|
42
|
+
<UIcon v-if="icon" :name="icon" :class="ui.leadingIcon({ class: props.ui?.leadingIcon })" />
|
|
43
|
+
</slot>
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
<div v-if="headline || !!slots.headline" :class="ui.headline({ class: props.ui?.headline, headline: !slots.headline })">
|
|
47
|
+
<slot name="headline">
|
|
48
|
+
{{ headline }}
|
|
49
|
+
</slot>
|
|
50
|
+
</div>
|
|
51
|
+
|
|
52
|
+
<h2 v-if="title || !!slots.title" :class="ui.title({ class: props.ui?.title })">
|
|
53
|
+
<slot name="title">
|
|
54
|
+
{{ title }}
|
|
55
|
+
</slot>
|
|
56
|
+
</h2>
|
|
57
|
+
|
|
58
|
+
<div v-if="description || !!slots.description" :class="ui.description({ class: props.ui?.description })">
|
|
59
|
+
<slot name="description">
|
|
60
|
+
{{ description }}
|
|
61
|
+
</slot>
|
|
62
|
+
</div>
|
|
63
|
+
|
|
64
|
+
<ul v-if="features?.length || !!slots.features" :class="ui.features({ class: props.ui?.features })">
|
|
65
|
+
<slot name="features">
|
|
66
|
+
<UPageFeature
|
|
67
|
+
v-for="(feature, index) in features"
|
|
68
|
+
:key="index"
|
|
69
|
+
as="li"
|
|
70
|
+
v-bind="feature"
|
|
71
|
+
/>
|
|
72
|
+
</slot>
|
|
73
|
+
</ul>
|
|
74
|
+
|
|
75
|
+
<div v-if="links?.length || !!slots.links" :class="ui.links({ class: props.ui?.links })">
|
|
76
|
+
<slot name="links">
|
|
77
|
+
<UButton v-for="(link, index) in links" :key="index" size="lg" v-bind="link" />
|
|
78
|
+
</slot>
|
|
79
|
+
</div>
|
|
80
|
+
</div>
|
|
81
|
+
|
|
82
|
+
<slot v-if="!!slots.default" />
|
|
83
|
+
<div v-else-if="orientation === 'horizontal'" class="hidden lg:block" />
|
|
84
|
+
</UContainer>
|
|
85
|
+
|
|
86
|
+
<slot name="bottom" />
|
|
87
|
+
</Primitive>
|
|
88
|
+
</template>
|