vlite3 1.5.27 → 1.5.29
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/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/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/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/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/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/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/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 +2 -2
- package/style.css +1 -1
|
@@ -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
|
};
|
|
@@ -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-5"
|
|
6
|
-
}, k = /* @__PURE__ */ i({
|
|
1
|
+
import { defineComponent as a, openBlock as s, createElementBlock as m, normalizeClass as o, unref as n, createVNode as r, createElementVNode 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"], E = /* @__PURE__ */ a({
|
|
7
5
|
__name: "Variant2",
|
|
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 i = {
|
|
14
|
+
xs: {
|
|
15
|
+
root: "p-5 md:p-8",
|
|
16
|
+
icon: "mb-2 h-7 w-7",
|
|
17
|
+
title: "text-lg",
|
|
18
|
+
desc: "mt-1 text-xs",
|
|
19
|
+
action: "mt-3"
|
|
20
|
+
},
|
|
21
|
+
sm: {
|
|
22
|
+
root: "p-8 md:p-12",
|
|
23
|
+
icon: "mb-2.5 h-8 w-8",
|
|
24
|
+
title: "text-xl",
|
|
25
|
+
desc: "mt-1.5 text-xs",
|
|
26
|
+
action: "mt-4"
|
|
27
|
+
},
|
|
28
|
+
md: {
|
|
29
|
+
root: "p-10 md:p-16",
|
|
30
|
+
icon: "mb-3 h-10 w-10",
|
|
31
|
+
title: "text-2xl",
|
|
32
|
+
desc: "mt-1.5 text-sm",
|
|
33
|
+
action: "mt-5"
|
|
34
|
+
},
|
|
35
|
+
lg: {
|
|
36
|
+
root: "p-12 md:p-20",
|
|
37
|
+
icon: "mb-4 h-12 w-12",
|
|
38
|
+
title: "text-3xl",
|
|
39
|
+
desc: "mt-2 text-base",
|
|
40
|
+
action: "mt-6"
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
return (c, p) => (s(), m("div", {
|
|
44
|
+
class: o(["flex w-full flex-col items-center justify-center text-center", i[t.size ?? n(e)].root])
|
|
45
|
+
}, [
|
|
46
|
+
r(f, {
|
|
16
47
|
icon: t.icon,
|
|
17
|
-
class: "
|
|
48
|
+
class: o(["text-muted", i[t.size ?? n(e)].icon]),
|
|
18
49
|
"stroke-width": "1.2"
|
|
19
|
-
}, null, 8, ["icon"]),
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
50
|
+
}, null, 8, ["icon", "class"]),
|
|
51
|
+
l("h3", {
|
|
52
|
+
class: o(["font-medium text-foreground", i[t.size ?? n(e)].title])
|
|
53
|
+
}, d(t.title), 3),
|
|
54
|
+
l("p", {
|
|
55
|
+
class: o(["text-muted max-w-md mx-auto", i[t.size ?? n(e)].desc]),
|
|
23
56
|
innerHTML: t.description
|
|
24
|
-
}, null,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
57
|
+
}, null, 10, h),
|
|
58
|
+
c.$slots.action ? (s(), m("div", {
|
|
59
|
+
key: 0,
|
|
60
|
+
class: o(i[t.size ?? n(e)].action)
|
|
61
|
+
}, [
|
|
62
|
+
x(c.$slots, "action")
|
|
63
|
+
], 2)) : u("", !0)
|
|
64
|
+
], 2));
|
|
29
65
|
}
|
|
30
66
|
});
|
|
31
67
|
export {
|
|
32
|
-
|
|
68
|
+
E 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 & {
|