vlite3 1.5.25 → 1.5.28
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/components/Accordion/Accordion.vue.d.ts +8 -1
- package/components/Accordion/AccordionContent.vue.d.ts +8 -2
- package/components/Accordion/AccordionContent.vue.js +2 -2
- package/components/Accordion/AccordionContent2.vue.js +28 -40
- package/components/Accordion/AccordionItem.vue.d.ts +8 -1
- package/components/Accordion/AccordionItem.vue.js +86 -70
- package/components/Accordion/AccordionTrigger.vue.js +13 -12
- package/components/Badge.vue.d.ts +1 -1
- package/components/Beacon.vue.d.ts +1 -1
- package/components/Breadcrumb/Breadcrumb.vue.d.ts +1 -1
- package/components/Breadcrumb/BreadcrumbItem.vue.d.ts +1 -1
- package/components/Button.vue.d.ts +1 -1
- package/components/Button.vue.js +2 -2
- package/components/Button2.vue.js +1 -1
- package/components/Carousel/Carousel.vue.d.ts +4 -4
- package/components/CategoryManager/CategoryManager2.vue.js +1 -1
- package/components/Chart/CircleChart.vue.d.ts +1 -1
- package/components/Chart/GaugeChart.vue.d.ts +1 -1
- package/components/Chart/SpeedometerChart.vue.d.ts +1 -1
- package/components/Chip/Chip.vue.d.ts +1 -1
- package/components/ChoiceBox/ChoiceBox.vue.d.ts +1 -1
- package/components/Clipboard.vue.d.ts +1 -1
- package/components/ColorPicker/ColorPicker.vue.d.ts +1 -1
- package/components/CommandPalette/CommandPaletteContent2.vue.js +1 -1
- package/components/CommandPalette/{CommandPaletteItem2.vue.js → CommandPaletteItem.vue.js} +1 -1
- package/components/DataList/DataList.vue.d.ts +1 -1
- package/components/DataTable/DataTable.vue.d.ts +1 -1
- package/components/DataTable/DataTable.vue.js +2 -2
- package/components/DataTable/DataTable2.vue.js +48 -50
- package/components/EditableTitle/EditableTitle.vue.d.ts +11 -11
- package/components/Empty/Empty.vue.d.ts +11 -2
- package/components/Empty/Empty.vue.js +57 -49
- package/components/Empty/index.d.ts +1 -1
- package/components/Empty/types.d.ts +13 -0
- package/components/Empty/types.js +8 -0
- package/components/Empty/variants/Variant1.vue.d.ts +4 -6
- package/components/Empty/variants/Variant1.vue.js +56 -20
- package/components/Empty/variants/Variant10.vue.d.ts +4 -6
- package/components/Empty/variants/Variant10.vue.js +68 -26
- package/components/Empty/variants/Variant11.vue.d.ts +4 -6
- package/components/Empty/variants/Variant11.vue.js +66 -18
- package/components/Empty/variants/Variant12.vue.d.ts +4 -6
- package/components/Empty/variants/Variant12.vue.js +67 -25
- package/components/Empty/variants/Variant2.vue.d.ts +4 -6
- package/components/Empty/variants/Variant2.vue.js +56 -20
- package/components/Empty/variants/Variant3.vue.d.ts +4 -6
- package/components/Empty/variants/Variant3.vue.js +41 -13
- package/components/Empty/variants/Variant4.vue.d.ts +4 -6
- package/components/Empty/variants/Variant4.vue.js +65 -21
- package/components/Empty/variants/Variant5.vue.d.ts +4 -6
- package/components/Empty/variants/Variant5.vue.js +55 -17
- package/components/Empty/variants/Variant6.vue.d.ts +4 -6
- package/components/Empty/variants/Variant6.vue.js +67 -23
- package/components/Empty/variants/Variant7.vue.d.ts +4 -6
- package/components/Empty/variants/Variant7.vue.js +81 -25
- package/components/Empty/variants/Variant8.vue.d.ts +4 -6
- package/components/Empty/variants/Variant8.vue.js +59 -23
- package/components/Empty/variants/Variant9.vue.d.ts +4 -6
- package/components/Empty/variants/Variant9.vue.js +64 -20
- package/components/FilePicker/index.vue.d.ts +1 -1
- package/components/FileTree/FileTree.vue.d.ts +2 -0
- package/components/FileTree/FileTree.vue.js +4 -4
- package/components/FileTree/FileTree2.vue.js +72 -66
- package/components/FileTree/FileTreeNode.vue.d.ts +9 -0
- package/components/FileTree/FileTreeNode.vue.js +100 -92
- package/components/FileTree/types.d.ts +12 -0
- package/components/Form/{AccordionView.vue.js → AccordionView2.vue.js} +1 -1
- package/components/Form/Form.vue.d.ts +1 -1
- package/components/Form/FormField.vue.d.ts +1 -1
- package/components/Form/FormFields.vue.d.ts +1 -1
- package/components/Form/TableView.vue.d.ts +1 -1
- package/components/Form/index.vue.d.ts +1 -1
- package/components/Form/index2.vue.js +1 -1
- package/components/GoogleLogin.vue.d.ts +1 -1
- package/components/Input.vue.d.ts +1 -1
- package/components/Input.vue.js +2 -4
- package/components/MultiSelect/MultiSelect.vue.d.ts +1 -1
- package/components/Navbar/NavbarTabs.vue.d.ts +1 -1
- package/components/NavbarCommandPalette.vue.js +1 -1
- package/components/NumberInput.vue.d.ts +1 -1
- package/components/OTPInput/OTPInput.vue.d.ts +1 -1
- package/components/ProgressBar/ProgressBar.vue.d.ts +1 -1
- package/components/Screen/ScreenFilter.vue.js +1 -1
- package/components/Screen/components/ScreenEmptyState.vue.js +12 -12
- package/components/Slider.vue.d.ts +1 -1
- package/components/Spinner/Spinner.vue.d.ts +1 -1
- package/components/Splitter/Splitter.vue.d.ts +9 -16
- package/components/Splitter/Splitter.vue.js +72 -41
- package/components/Switch.vue.d.ts +1 -1
- package/components/Tabes/Tabes.vue.d.ts +1 -1
- package/components/TagInput/TagInput.vue.d.ts +6 -6
- package/components/Tooltip.vue.d.ts +1 -1
- package/core/config.d.ts +2 -2
- package/docs/components/accordion.md +35 -0
- package/docs/components/empty.md +38 -4
- package/docs/components/file-tree.md +67 -16
- package/docs-manifest.json +5 -5
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { $t as
|
|
3
|
-
import { useVLiteConfig as
|
|
1
|
+
import { defineComponent as u, computed as r, markRaw as t, openBlock as m, createElementBlock as $, createBlock as y, resolveDynamicComponent as z, normalizeClass as h, createSlots as I, renderList as C, withCtx as E, renderSlot as S, normalizeProps as g, guardReactiveProps as k } from "vue";
|
|
2
|
+
import { $t as n } from "../../utils/i18n.js";
|
|
3
|
+
import { useVLiteConfig as w } from "../../core/config.js";
|
|
4
4
|
import "../../icons/IconRegistry.js";
|
|
5
|
+
import { EMPTY_SIZE_DEFAULT as T, resolveEmptySize as x } from "./types.js";
|
|
5
6
|
import B from "./variants/Variant1.vue.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
const
|
|
7
|
+
import D from "./variants/Variant2.vue.js";
|
|
8
|
+
import L from "./variants/Variant3.vue.js";
|
|
9
|
+
import N from "./variants/Variant4.vue.js";
|
|
10
|
+
import P from "./variants/Variant5.vue.js";
|
|
11
|
+
import V from "./variants/Variant6.vue.js";
|
|
12
|
+
import b from "./variants/Variant7.vue.js";
|
|
13
|
+
import R from "./variants/Variant8.vue.js";
|
|
14
|
+
import j from "./variants/Variant9.vue.js";
|
|
15
|
+
import A from "./variants/Variant10.vue.js";
|
|
16
|
+
import F from "./variants/Variant11.vue.js";
|
|
17
|
+
import M from "./variants/Variant12.vue.js";
|
|
18
|
+
const U = { class: "flex items-center justify-center w-full py-2" }, ct = /* @__PURE__ */ u({
|
|
18
19
|
__name: "Empty",
|
|
19
20
|
props: {
|
|
20
21
|
title: {},
|
|
@@ -22,51 +23,58 @@ const N = { class: "flex items-center justify-center w-full py-2" }, nt = /* @__
|
|
|
22
23
|
description: {},
|
|
23
24
|
descriptionI18n: {},
|
|
24
25
|
icon: { default: "lucide:inbox" },
|
|
25
|
-
variant: {}
|
|
26
|
+
variant: {},
|
|
27
|
+
size: { default: T },
|
|
28
|
+
className: {}
|
|
26
29
|
},
|
|
27
30
|
setup(o) {
|
|
28
|
-
const i = o,
|
|
29
|
-
if (i.titleI18n) return
|
|
31
|
+
const i = o, l = w(), p = r(() => i.variant || l?.components?.empty?.variant || "variant1"), f = r(() => {
|
|
32
|
+
if (i.titleI18n) return n(i.titleI18n);
|
|
30
33
|
if (i.title) return i.title;
|
|
31
|
-
const
|
|
32
|
-
return
|
|
33
|
-
}),
|
|
34
|
-
if (i.descriptionI18n) return
|
|
34
|
+
const e = n("vlite.empty.title");
|
|
35
|
+
return e !== "vlite.empty.title" ? e : "No data found";
|
|
36
|
+
}), v = r(() => {
|
|
37
|
+
if (i.descriptionI18n) return n(i.descriptionI18n);
|
|
35
38
|
if (i.description) return i.description;
|
|
36
|
-
const
|
|
37
|
-
return
|
|
38
|
-
}),
|
|
39
|
+
const e = n("vlite.empty.description");
|
|
40
|
+
return e !== "vlite.empty.description" ? e : "There is nothing to display here right now.";
|
|
41
|
+
}), s = r(() => x(i.size)), c = {
|
|
39
42
|
variant1: t(B),
|
|
40
|
-
variant2: t(
|
|
41
|
-
variant3: t(
|
|
42
|
-
variant4: t(
|
|
43
|
-
variant5: t(
|
|
44
|
-
variant6: t(
|
|
45
|
-
variant7: t(
|
|
46
|
-
variant8: t(
|
|
47
|
-
variant9: t(
|
|
48
|
-
variant10: t(
|
|
49
|
-
variant11: t(
|
|
50
|
-
variant12: t(
|
|
51
|
-
},
|
|
52
|
-
() =>
|
|
43
|
+
variant2: t(D),
|
|
44
|
+
variant3: t(L),
|
|
45
|
+
variant4: t(N),
|
|
46
|
+
variant5: t(P),
|
|
47
|
+
variant6: t(V),
|
|
48
|
+
variant7: t(b),
|
|
49
|
+
variant8: t(R),
|
|
50
|
+
variant9: t(j),
|
|
51
|
+
variant10: t(A),
|
|
52
|
+
variant11: t(F),
|
|
53
|
+
variant12: t(M)
|
|
54
|
+
}, _ = r(
|
|
55
|
+
() => c[p.value] || c.variant1
|
|
53
56
|
);
|
|
54
|
-
return (
|
|
55
|
-
(m(),
|
|
57
|
+
return (e, Y) => (m(), $("div", U, [
|
|
58
|
+
(m(), y(z(_.value), {
|
|
56
59
|
title: f.value,
|
|
57
|
-
description:
|
|
58
|
-
icon: o.icon
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
description: v.value,
|
|
61
|
+
icon: o.icon,
|
|
62
|
+
class: h(o.className),
|
|
63
|
+
size: s.value
|
|
64
|
+
}, I({ _: 2 }, [
|
|
65
|
+
C(e.$slots, (Z, a) => ({
|
|
66
|
+
name: a,
|
|
67
|
+
fn: E((d) => [
|
|
68
|
+
S(e.$slots, a, g(k({
|
|
69
|
+
...d || {},
|
|
70
|
+
...a === "action" ? { size: s.value } : {}
|
|
71
|
+
})))
|
|
64
72
|
])
|
|
65
73
|
}))
|
|
66
|
-
]), 1032, ["title", "description", "icon"]))
|
|
74
|
+
]), 1032, ["title", "description", "icon", "class", "size"]))
|
|
67
75
|
]));
|
|
68
76
|
}
|
|
69
77
|
});
|
|
70
78
|
export {
|
|
71
|
-
|
|
79
|
+
ct as default
|
|
72
80
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default as Empty } from './Empty.vue';
|
|
2
|
-
export type
|
|
2
|
+
export type { EmptyActionSlotProps, EmptySize, EmptyVariant } from './types';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type EmptyVariant = 'variant1' | 'variant2' | 'variant3' | 'variant4' | 'variant5' | 'variant6' | 'variant7' | 'variant8' | 'variant9' | 'variant10' | 'variant11' | 'variant12';
|
|
2
|
+
export type EmptySize = 'xs' | 'sm' | 'md' | 'lg';
|
|
3
|
+
export declare const EMPTY_SIZE_DEFAULT: EmptySize;
|
|
4
|
+
export declare function resolveEmptySize(size?: string | EmptySize): EmptySize;
|
|
5
|
+
export interface EmptyVariantProps {
|
|
6
|
+
title: string;
|
|
7
|
+
description: string;
|
|
8
|
+
icon: string;
|
|
9
|
+
size?: EmptySize;
|
|
10
|
+
}
|
|
11
|
+
export interface EmptyActionSlotProps {
|
|
12
|
+
size: EmptySize;
|
|
13
|
+
}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
title: string;
|
|
3
|
-
description: string;
|
|
4
|
-
icon: string;
|
|
5
|
-
};
|
|
1
|
+
import { EmptySize, EmptyVariantProps } from '../types';
|
|
6
2
|
declare function __VLS_template(): {
|
|
7
3
|
attrs: Partial<{}>;
|
|
8
4
|
slots: {
|
|
@@ -12,7 +8,9 @@ declare function __VLS_template(): {
|
|
|
12
8
|
rootEl: HTMLDivElement;
|
|
13
9
|
};
|
|
14
10
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
-
declare const __VLS_component: import('vue').DefineComponent<
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<EmptyVariantProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<EmptyVariantProps> & Readonly<{}>, {
|
|
12
|
+
size: EmptySize;
|
|
13
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
16
14
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
17
15
|
export default _default;
|
|
18
16
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,33 +1,69 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
class: "mt-6"
|
|
6
|
-
}, k = /* @__PURE__ */ i({
|
|
1
|
+
import { defineComponent as a, openBlock as c, createElementBlock as l, normalizeClass as i, unref as n, createVNode as r, createElementVNode as m, toDisplayString as d, renderSlot as x, createCommentVNode as f } from "vue";
|
|
2
|
+
import u from "../../Icon.vue.js";
|
|
3
|
+
import { EMPTY_SIZE_DEFAULT as e } from "../types.js";
|
|
4
|
+
const h = ["innerHTML"], g = /* @__PURE__ */ a({
|
|
7
5
|
__name: "Variant1",
|
|
8
6
|
props: {
|
|
9
7
|
title: {},
|
|
10
8
|
description: {},
|
|
11
|
-
icon: {}
|
|
9
|
+
icon: {},
|
|
10
|
+
size: { default: e }
|
|
12
11
|
},
|
|
13
12
|
setup(t) {
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
const o = {
|
|
14
|
+
xs: {
|
|
15
|
+
root: "p-5",
|
|
16
|
+
icon: "mb-2 h-8 w-8",
|
|
17
|
+
title: "text-fs-3",
|
|
18
|
+
desc: "mt-1 text-xs",
|
|
19
|
+
action: "mt-3"
|
|
20
|
+
},
|
|
21
|
+
sm: {
|
|
22
|
+
root: "p-8",
|
|
23
|
+
icon: "mb-2.5 h-10 w-10",
|
|
24
|
+
title: "text-fs-4",
|
|
25
|
+
desc: "mt-1.5 text-xs",
|
|
26
|
+
action: "mt-4"
|
|
27
|
+
},
|
|
28
|
+
md: {
|
|
29
|
+
root: "p-10",
|
|
30
|
+
icon: "mb-3 h-12 w-12",
|
|
31
|
+
title: "text-fs-5",
|
|
32
|
+
desc: "mt-1.5 text-sm",
|
|
33
|
+
action: "mt-6"
|
|
34
|
+
},
|
|
35
|
+
lg: {
|
|
36
|
+
root: "p-14",
|
|
37
|
+
icon: "mb-4 h-16 w-16",
|
|
38
|
+
title: "text-fs-7",
|
|
39
|
+
desc: "mt-2 text-base",
|
|
40
|
+
action: "mt-6"
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
return (s, z) => (c(), l("div", {
|
|
44
|
+
class: i(["flex w-full flex-col items-center justify-center text-center rounded-2xl bg-card", o[t.size ?? n(e)].root])
|
|
45
|
+
}, [
|
|
46
|
+
r(u, {
|
|
16
47
|
icon: t.icon,
|
|
17
|
-
class: "
|
|
48
|
+
class: i(["text-muted", o[t.size ?? n(e)].icon]),
|
|
18
49
|
"stroke-width": "1.2"
|
|
19
|
-
}, null, 8, ["icon"]),
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
50
|
+
}, null, 8, ["icon", "class"]),
|
|
51
|
+
m("h3", {
|
|
52
|
+
class: i(["font-semibold text-foreground", o[t.size ?? n(e)].title])
|
|
53
|
+
}, d(t.title), 3),
|
|
54
|
+
m("p", {
|
|
55
|
+
class: i(["text-muted max-w-md mx-auto", o[t.size ?? n(e)].desc]),
|
|
23
56
|
innerHTML: t.description
|
|
24
|
-
}, null,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
57
|
+
}, null, 10, h),
|
|
58
|
+
s.$slots.action ? (c(), l("div", {
|
|
59
|
+
key: 0,
|
|
60
|
+
class: i(o[t.size ?? n(e)].action)
|
|
61
|
+
}, [
|
|
62
|
+
x(s.$slots, "action")
|
|
63
|
+
], 2)) : f("", !0)
|
|
64
|
+
], 2));
|
|
29
65
|
}
|
|
30
66
|
});
|
|
31
67
|
export {
|
|
32
|
-
|
|
68
|
+
g as default
|
|
33
69
|
};
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
title: string;
|
|
3
|
-
description: string;
|
|
4
|
-
icon: string;
|
|
5
|
-
};
|
|
1
|
+
import { EmptySize, EmptyVariantProps } from '../types';
|
|
6
2
|
declare function __VLS_template(): {
|
|
7
3
|
attrs: Partial<{}>;
|
|
8
4
|
slots: {
|
|
@@ -12,7 +8,9 @@ declare function __VLS_template(): {
|
|
|
12
8
|
rootEl: HTMLDivElement;
|
|
13
9
|
};
|
|
14
10
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
-
declare const __VLS_component: import('vue').DefineComponent<
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<EmptyVariantProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<EmptyVariantProps> & Readonly<{}>, {
|
|
12
|
+
size: EmptySize;
|
|
13
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
16
14
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
17
15
|
export default _default;
|
|
18
16
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,37 +1,79 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
class: "mt-8 flex justify-start"
|
|
6
|
-
}, y = /* @__PURE__ */ i({
|
|
1
|
+
import { defineComponent as r, openBlock as l, createElementBlock as a, normalizeClass as o, unref as n, createElementVNode as c, createVNode as m, toDisplayString as d, renderSlot as x, createCommentVNode as f } from "vue";
|
|
2
|
+
import u from "../../Icon.vue.js";
|
|
3
|
+
import { EMPTY_SIZE_DEFAULT as e } from "../types.js";
|
|
4
|
+
const h = { class: "flex w-full max-w-md flex-col text-left" }, w = ["innerHTML"], b = /* @__PURE__ */ r({
|
|
7
5
|
__name: "Variant10",
|
|
8
6
|
props: {
|
|
9
7
|
title: {},
|
|
10
8
|
description: {},
|
|
11
|
-
icon: {}
|
|
9
|
+
icon: {},
|
|
10
|
+
size: { default: e }
|
|
12
11
|
},
|
|
13
|
-
setup(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
12
|
+
setup(t) {
|
|
13
|
+
const i = {
|
|
14
|
+
xs: {
|
|
15
|
+
root: "py-6",
|
|
16
|
+
iconWrap: "mb-3",
|
|
17
|
+
icon: "h-8 w-8",
|
|
18
|
+
title: "text-base",
|
|
19
|
+
desc: "mt-1 text-xs",
|
|
20
|
+
action: "mt-4"
|
|
21
|
+
},
|
|
22
|
+
sm: {
|
|
23
|
+
root: "py-8",
|
|
24
|
+
iconWrap: "mb-4",
|
|
25
|
+
icon: "h-10 w-10",
|
|
26
|
+
title: "text-lg",
|
|
27
|
+
desc: "mt-1.5 text-xs",
|
|
28
|
+
action: "mt-6"
|
|
29
|
+
},
|
|
30
|
+
md: {
|
|
31
|
+
root: "py-12",
|
|
32
|
+
iconWrap: "mb-6",
|
|
33
|
+
icon: "h-12 w-12",
|
|
34
|
+
title: "text-xl",
|
|
35
|
+
desc: "mt-2 text-sm",
|
|
36
|
+
action: "mt-8"
|
|
37
|
+
},
|
|
38
|
+
lg: {
|
|
39
|
+
root: "py-16",
|
|
40
|
+
iconWrap: "mb-8",
|
|
41
|
+
icon: "h-16 w-16",
|
|
42
|
+
title: "text-2xl",
|
|
43
|
+
desc: "mt-3 text-base",
|
|
44
|
+
action: "mt-8"
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
return (s, y) => (l(), a("div", {
|
|
48
|
+
class: o(["flex w-full flex-col items-center", i[t.size ?? n(e)].root])
|
|
49
|
+
}, [
|
|
50
|
+
c("div", h, [
|
|
51
|
+
c("div", {
|
|
52
|
+
class: o(["flex w-full justify-start", i[t.size ?? n(e)].iconWrap])
|
|
53
|
+
}, [
|
|
54
|
+
m(u, {
|
|
55
|
+
icon: t.icon,
|
|
56
|
+
class: o(["text-foreground opacity-80", i[t.size ?? n(e)].icon]),
|
|
20
57
|
"stroke-width": "1.2"
|
|
21
|
-
}, null, 8, ["icon"])
|
|
22
|
-
]),
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
58
|
+
}, null, 8, ["icon", "class"])
|
|
59
|
+
], 2),
|
|
60
|
+
c("h3", {
|
|
61
|
+
class: o(["font-medium tracking-tight text-foreground", i[t.size ?? n(e)].title])
|
|
62
|
+
}, d(t.title), 3),
|
|
63
|
+
c("p", {
|
|
64
|
+
class: o(["leading-relaxed text-muted", i[t.size ?? n(e)].desc]),
|
|
65
|
+
innerHTML: t.description
|
|
66
|
+
}, null, 10, w),
|
|
67
|
+
s.$slots.action ? (l(), a("div", {
|
|
68
|
+
key: 0,
|
|
69
|
+
class: o(["flex justify-start", i[t.size ?? n(e)].action])
|
|
70
|
+
}, [
|
|
71
|
+
x(s.$slots, "action")
|
|
72
|
+
], 2)) : f("", !0)
|
|
31
73
|
])
|
|
32
|
-
]));
|
|
74
|
+
], 2));
|
|
33
75
|
}
|
|
34
76
|
});
|
|
35
77
|
export {
|
|
36
|
-
|
|
78
|
+
b as default
|
|
37
79
|
};
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
title: string;
|
|
3
|
-
description: string;
|
|
4
|
-
icon: string;
|
|
5
|
-
};
|
|
1
|
+
import { EmptySize, EmptyVariantProps } from '../types';
|
|
6
2
|
declare function __VLS_template(): {
|
|
7
3
|
attrs: Partial<{}>;
|
|
8
4
|
slots: {
|
|
@@ -12,7 +8,9 @@ declare function __VLS_template(): {
|
|
|
12
8
|
rootEl: HTMLDivElement;
|
|
13
9
|
};
|
|
14
10
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
-
declare const __VLS_component: import('vue').DefineComponent<
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<EmptyVariantProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<EmptyVariantProps> & Readonly<{}>, {
|
|
12
|
+
size: EmptySize;
|
|
13
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
16
14
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
17
15
|
export default _default;
|
|
18
16
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,29 +1,77 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
|
|
1
|
+
import { defineComponent as r, openBlock as m, createElementBlock as x, normalizeClass as l, unref as s, createElementVNode as n, toDisplayString as d, renderSlot as c } from "vue";
|
|
2
|
+
import { EMPTY_SIZE_DEFAULT as t } from "../types.js";
|
|
3
|
+
const f = ["innerHTML"], h = /* @__PURE__ */ r({
|
|
3
4
|
__name: "Variant11",
|
|
4
5
|
props: {
|
|
5
6
|
title: {},
|
|
6
7
|
description: {},
|
|
7
|
-
icon: {}
|
|
8
|
+
icon: {},
|
|
9
|
+
size: { default: t }
|
|
8
10
|
},
|
|
9
11
|
setup(e) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
12
|
+
const i = {
|
|
13
|
+
xs: {
|
|
14
|
+
root: "py-3",
|
|
15
|
+
titles: "mb-3 space-y-0.5",
|
|
16
|
+
heading: "text-2xl",
|
|
17
|
+
divider: "my-4 max-w-[240px]",
|
|
18
|
+
dot: "h-1 w-1",
|
|
19
|
+
desc: "mb-5 text-xs"
|
|
20
|
+
},
|
|
21
|
+
sm: {
|
|
22
|
+
root: "py-4",
|
|
23
|
+
titles: "mb-4 space-y-1",
|
|
24
|
+
heading: "text-3xl",
|
|
25
|
+
divider: "my-6 max-w-[320px]",
|
|
26
|
+
dot: "h-1.5 w-1.5",
|
|
27
|
+
desc: "mb-8 text-xs"
|
|
28
|
+
},
|
|
29
|
+
md: {
|
|
30
|
+
root: "py-6",
|
|
31
|
+
titles: "mb-6 space-y-1",
|
|
32
|
+
heading: "text-4xl",
|
|
33
|
+
divider: "my-8 max-w-[400px]",
|
|
34
|
+
dot: "h-1.5 w-1.5",
|
|
35
|
+
desc: "mb-10 text-sm"
|
|
36
|
+
},
|
|
37
|
+
lg: {
|
|
38
|
+
root: "py-8",
|
|
39
|
+
titles: "mb-8 space-y-1.5",
|
|
40
|
+
heading: "text-5xl",
|
|
41
|
+
divider: "my-10 max-w-[480px]",
|
|
42
|
+
dot: "h-2 w-2",
|
|
43
|
+
desc: "mb-12 text-base"
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
return (o, a) => (m(), x("div", {
|
|
47
|
+
class: l(["flex w-full flex-col items-center text-center text-foreground", i[e.size ?? s(t)].root])
|
|
48
|
+
}, [
|
|
49
|
+
n("div", {
|
|
50
|
+
class: l(i[e.size ?? s(t)].titles)
|
|
51
|
+
}, [
|
|
52
|
+
n("h3", {
|
|
53
|
+
class: l(["font-bold tracking-tight leading-none", i[e.size ?? s(t)].heading])
|
|
54
|
+
}, d(e.title.split(" ")[0]) + " " + d(e.title.split(" ")[1] || ""), 3),
|
|
55
|
+
n("h4", {
|
|
56
|
+
class: l(["font-bold tracking-tight leading-none text-muted", i[e.size ?? s(t)].heading])
|
|
57
|
+
}, d(e.title.split(" ").slice(2).join(" ")), 3)
|
|
58
|
+
], 2),
|
|
59
|
+
n("div", {
|
|
60
|
+
class: l(["relative flex w-full items-center h-px", i[e.size ?? s(t)].divider])
|
|
61
|
+
}, [
|
|
62
|
+
a[0] || (a[0] = n("div", { class: "h-full flex-1 bg-linear-to-r from-transparent via-border to-transparent" }, null, -1)),
|
|
63
|
+
n("div", {
|
|
64
|
+
class: l(["absolute right-0 rounded-full bg-muted", i[e.size ?? s(t)].dot])
|
|
65
|
+
}, null, 2)
|
|
66
|
+
], 2),
|
|
67
|
+
n("p", {
|
|
68
|
+
class: l(["max-w-sm font-normal leading-relaxed text-muted", i[e.size ?? s(t)].desc]),
|
|
21
69
|
innerHTML: e.description
|
|
22
|
-
}, null,
|
|
23
|
-
|
|
24
|
-
]));
|
|
70
|
+
}, null, 10, f),
|
|
71
|
+
c(o.$slots, "action")
|
|
72
|
+
], 2));
|
|
25
73
|
}
|
|
26
74
|
});
|
|
27
75
|
export {
|
|
28
|
-
|
|
76
|
+
h as default
|
|
29
77
|
};
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
title: string;
|
|
3
|
-
description: string;
|
|
4
|
-
icon: string;
|
|
5
|
-
};
|
|
1
|
+
import { EmptySize, EmptyVariantProps } from '../types';
|
|
6
2
|
declare function __VLS_template(): {
|
|
7
3
|
attrs: Partial<{}>;
|
|
8
4
|
slots: {
|
|
@@ -12,7 +8,9 @@ declare function __VLS_template(): {
|
|
|
12
8
|
rootEl: HTMLDivElement;
|
|
13
9
|
};
|
|
14
10
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
-
declare const __VLS_component: import('vue').DefineComponent<
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<EmptyVariantProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<EmptyVariantProps> & Readonly<{}>, {
|
|
12
|
+
size: EmptySize;
|
|
13
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
16
14
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
17
15
|
export default _default;
|
|
18
16
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,35 +1,77 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
class: "mt-6"
|
|
6
|
-
}, b = /* @__PURE__ */ s({
|
|
1
|
+
import { defineComponent as m, openBlock as r, createElementBlock as a, normalizeClass as o, unref as n, createElementVNode as c, createVNode as l, toDisplayString as d, renderSlot as x, createCommentVNode as u } from "vue";
|
|
2
|
+
import f from "../../Icon.vue.js";
|
|
3
|
+
import { EMPTY_SIZE_DEFAULT as e } from "../types.js";
|
|
4
|
+
const h = ["innerHTML"], z = /* @__PURE__ */ m({
|
|
7
5
|
__name: "Variant12",
|
|
8
6
|
props: {
|
|
9
7
|
title: {},
|
|
10
8
|
description: {},
|
|
11
|
-
icon: {}
|
|
9
|
+
icon: {},
|
|
10
|
+
size: { default: e }
|
|
12
11
|
},
|
|
13
|
-
setup(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
setup(t) {
|
|
13
|
+
const i = {
|
|
14
|
+
xs: {
|
|
15
|
+
root: "p-4 min-h-[160px]",
|
|
16
|
+
iconWrap: "mb-2 h-9 w-9",
|
|
17
|
+
icon: "h-4 w-4",
|
|
18
|
+
title: "text-sm",
|
|
19
|
+
desc: "mt-1 text-xs",
|
|
20
|
+
action: "mt-3"
|
|
21
|
+
},
|
|
22
|
+
sm: {
|
|
23
|
+
root: "p-6 min-h-[200px]",
|
|
24
|
+
iconWrap: "mb-3 h-12 w-12",
|
|
25
|
+
icon: "h-5 w-5",
|
|
26
|
+
title: "text-base",
|
|
27
|
+
desc: "mt-1.5 text-xs",
|
|
28
|
+
action: "mt-4"
|
|
29
|
+
},
|
|
30
|
+
md: {
|
|
31
|
+
root: "p-8 min-h-[250px]",
|
|
32
|
+
iconWrap: "mb-4 h-14 w-14",
|
|
33
|
+
icon: "h-6 w-6",
|
|
34
|
+
title: "text-lg",
|
|
35
|
+
desc: "mt-2 text-sm",
|
|
36
|
+
action: "mt-6"
|
|
37
|
+
},
|
|
38
|
+
lg: {
|
|
39
|
+
root: "p-10 min-h-[320px]",
|
|
40
|
+
iconWrap: "mb-5 h-16 w-16",
|
|
41
|
+
icon: "h-8 w-8",
|
|
42
|
+
title: "text-xl",
|
|
43
|
+
desc: "mt-2.5 text-base",
|
|
44
|
+
action: "mt-7"
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
return (s, p) => (r(), a("div", {
|
|
48
|
+
class: o(["flex w-full flex-col items-center justify-center text-center", i[t.size ?? n(e)].root])
|
|
49
|
+
}, [
|
|
50
|
+
c("div", {
|
|
51
|
+
class: o(["flex items-center justify-center rounded-2xl bg-muted/30 border border-border/40 shadow-[0_2px_10px_-4px_rgba(0,0,0,0.05)]", i[t.size ?? n(e)].iconWrap])
|
|
52
|
+
}, [
|
|
53
|
+
l(f, {
|
|
54
|
+
icon: t.icon,
|
|
55
|
+
class: o(["text-muted-foreground", i[t.size ?? n(e)].icon]),
|
|
19
56
|
"stroke-width": "1.5"
|
|
20
|
-
}, null, 8, ["icon"])
|
|
21
|
-
]),
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
57
|
+
}, null, 8, ["icon", "class"])
|
|
58
|
+
], 2),
|
|
59
|
+
c("h3", {
|
|
60
|
+
class: o(["font-semibold text-foreground tracking-tight", i[t.size ?? n(e)].title])
|
|
61
|
+
}, d(t.title), 3),
|
|
62
|
+
c("p", {
|
|
63
|
+
class: o(["text-muted-foreground max-w-sm mx-auto leading-relaxed", i[t.size ?? n(e)].desc]),
|
|
64
|
+
innerHTML: t.description
|
|
65
|
+
}, null, 10, h),
|
|
66
|
+
s.$slots.action ? (r(), a("div", {
|
|
67
|
+
key: 0,
|
|
68
|
+
class: o(i[t.size ?? n(e)].action)
|
|
69
|
+
}, [
|
|
70
|
+
x(s.$slots, "action")
|
|
71
|
+
], 2)) : u("", !0)
|
|
72
|
+
], 2));
|
|
31
73
|
}
|
|
32
74
|
});
|
|
33
75
|
export {
|
|
34
|
-
|
|
76
|
+
z as default
|
|
35
77
|
};
|