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,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 & {
|
|
@@ -1,22 +1,50 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
|
|
1
|
+
import { defineComponent as r, openBlock as c, createElementBlock as m, normalizeClass as s, unref as i, createElementVNode as n, toDisplayString as a, renderSlot as d } from "vue";
|
|
2
|
+
import { EMPTY_SIZE_DEFAULT as e } from "../types.js";
|
|
3
|
+
const x = ["innerHTML"], b = /* @__PURE__ */ r({
|
|
3
4
|
__name: "Variant3",
|
|
4
5
|
props: {
|
|
5
6
|
title: {},
|
|
6
7
|
description: {},
|
|
7
|
-
icon: {}
|
|
8
|
+
icon: {},
|
|
9
|
+
size: { default: e }
|
|
8
10
|
},
|
|
9
|
-
setup(
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
},
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
setup(t) {
|
|
12
|
+
const o = {
|
|
13
|
+
xs: {
|
|
14
|
+
root: "py-8",
|
|
15
|
+
title: "text-sm mb-1",
|
|
16
|
+
desc: "text-[10px] mb-3"
|
|
17
|
+
},
|
|
18
|
+
sm: {
|
|
19
|
+
root: "py-10",
|
|
20
|
+
title: "text-base mb-1",
|
|
21
|
+
desc: "text-xs mb-3.5"
|
|
22
|
+
},
|
|
23
|
+
md: {
|
|
24
|
+
root: "py-14",
|
|
25
|
+
title: "text-lg mb-1.5",
|
|
26
|
+
desc: "text-xs mb-4.5"
|
|
27
|
+
},
|
|
28
|
+
lg: {
|
|
29
|
+
root: "py-20",
|
|
30
|
+
title: "text-xl mb-2",
|
|
31
|
+
desc: "text-sm mb-6"
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
return (l, f) => (c(), m("div", {
|
|
35
|
+
class: s(["group flex flex-col items-center text-center cursor-default", o[t.size ?? i(e)].root])
|
|
36
|
+
}, [
|
|
37
|
+
n("h3", {
|
|
38
|
+
class: s(["font-semibold text-foreground tracking-tight", o[t.size ?? i(e)].title])
|
|
39
|
+
}, a(t.title), 3),
|
|
40
|
+
n("p", {
|
|
41
|
+
class: s(["text-foreground/40 leading-relaxed font-light", o[t.size ?? i(e)].desc]),
|
|
42
|
+
innerHTML: t.description
|
|
43
|
+
}, null, 10, x),
|
|
44
|
+
d(l.$slots, "action")
|
|
45
|
+
], 2));
|
|
18
46
|
}
|
|
19
47
|
});
|
|
20
48
|
export {
|
|
21
|
-
|
|
49
|
+
b as default
|
|
22
50
|
};
|
|
@@ -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,77 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
class: "mt-8"
|
|
5
|
-
}, g = /* @__PURE__ */ i({
|
|
1
|
+
import { defineComponent as a, openBlock as d, createElementBlock as m, normalizeClass as l, unref as s, createElementVNode as o, toDisplayString as r, renderSlot as c, createCommentVNode as f } from "vue";
|
|
2
|
+
import { EMPTY_SIZE_DEFAULT as e } from "../types.js";
|
|
3
|
+
const u = { class: "flex flex-col w-full max-w-md text-left" }, p = ["innerHTML"], h = /* @__PURE__ */ a({
|
|
6
4
|
__name: "Variant4",
|
|
7
5
|
props: {
|
|
8
6
|
title: {},
|
|
9
7
|
description: {},
|
|
10
|
-
icon: {}
|
|
8
|
+
icon: {},
|
|
9
|
+
size: { default: e }
|
|
11
10
|
},
|
|
12
11
|
setup(t) {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
12
|
+
const i = {
|
|
13
|
+
xs: {
|
|
14
|
+
root: "py-12 px-4 min-h-[240px]",
|
|
15
|
+
title: "text-2xl sm:text-3xl max-w-[200px]",
|
|
16
|
+
divider: "my-3",
|
|
17
|
+
dot: "h-1.5 w-1.5",
|
|
18
|
+
desc: "text-xs sm:text-sm",
|
|
19
|
+
action: "mt-4"
|
|
20
|
+
},
|
|
21
|
+
sm: {
|
|
22
|
+
root: "py-16 px-5 min-h-[320px]",
|
|
23
|
+
title: "text-3xl sm:text-4xl max-w-[240px]",
|
|
24
|
+
divider: "my-4",
|
|
25
|
+
dot: "h-2 w-2",
|
|
26
|
+
desc: "text-sm",
|
|
27
|
+
action: "mt-6"
|
|
28
|
+
},
|
|
29
|
+
md: {
|
|
30
|
+
root: "py-24 px-6 min-h-[400px]",
|
|
31
|
+
title: "text-4xl sm:text-5xl max-w-[280px]",
|
|
32
|
+
divider: "my-6",
|
|
33
|
+
dot: "h-2.5 w-2.5",
|
|
34
|
+
desc: "text-sm sm:text-base",
|
|
35
|
+
action: "mt-8"
|
|
36
|
+
},
|
|
37
|
+
lg: {
|
|
38
|
+
root: "py-32 px-8 min-h-[480px]",
|
|
39
|
+
title: "text-5xl sm:text-6xl max-w-[340px]",
|
|
40
|
+
divider: "my-8",
|
|
41
|
+
dot: "h-3 w-3",
|
|
42
|
+
desc: "text-base sm:text-lg",
|
|
43
|
+
action: "mt-8"
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
return (x, n) => (d(), m("div", {
|
|
47
|
+
class: l(["flex w-full flex-col items-center justify-center", i[t.size ?? s(e)].root])
|
|
48
|
+
}, [
|
|
49
|
+
o("div", u, [
|
|
50
|
+
o("h3", {
|
|
51
|
+
class: l(["font-bold tracking-tight text-foreground leading-[1.1]", i[t.size ?? s(e)].title])
|
|
52
|
+
}, r(t.title), 3),
|
|
53
|
+
o("div", {
|
|
54
|
+
class: l(["flex items-center w-full", i[t.size ?? s(e)].divider])
|
|
55
|
+
}, [
|
|
56
|
+
n[0] || (n[0] = o("div", { class: "h-[2px] flex-1 bg-gradient-to-r from-gray-150 via-gray-300 to-gray-100" }, null, -1)),
|
|
57
|
+
o("div", {
|
|
58
|
+
class: l(["rounded-full bg-gray-300 ml-1 shrink-0", i[t.size ?? s(e)].dot])
|
|
59
|
+
}, null, 2)
|
|
60
|
+
], 2),
|
|
61
|
+
o("p", {
|
|
62
|
+
class: l(["text-muted leading-relaxed", i[t.size ?? s(e)].desc]),
|
|
22
63
|
innerHTML: t.description
|
|
23
|
-
}, null,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
64
|
+
}, null, 10, p),
|
|
65
|
+
x.$slots.action ? (d(), m("div", {
|
|
66
|
+
key: 0,
|
|
67
|
+
class: l(i[t.size ?? s(e)].action)
|
|
68
|
+
}, [
|
|
69
|
+
c(x.$slots, "action")
|
|
70
|
+
], 2)) : f("", !0)
|
|
27
71
|
])
|
|
28
|
-
]));
|
|
72
|
+
], 2));
|
|
29
73
|
}
|
|
30
74
|
});
|
|
31
75
|
export {
|
|
32
|
-
|
|
76
|
+
h as default
|
|
33
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,30 +1,68 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { defineComponent as r, openBlock as l, createElementBlock as a, normalizeClass as i, unref as n, createElementVNode as s, createVNode as m, toDisplayString as d, renderSlot as x } from "vue";
|
|
2
|
+
import b from "../../Icon.vue.js";
|
|
3
|
+
import { EMPTY_SIZE_DEFAULT as t } from "../types.js";
|
|
4
|
+
const f = ["innerHTML"], g = /* @__PURE__ */ r({
|
|
4
5
|
__name: "Variant5",
|
|
5
6
|
props: {
|
|
6
7
|
title: {},
|
|
7
8
|
description: {},
|
|
8
|
-
icon: {}
|
|
9
|
+
icon: {},
|
|
10
|
+
size: { default: t }
|
|
9
11
|
},
|
|
10
12
|
setup(e) {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
const o = {
|
|
14
|
+
xs: {
|
|
15
|
+
root: "py-2",
|
|
16
|
+
iconWrap: "mb-3 p-3",
|
|
17
|
+
icon: "w-5 h-5",
|
|
18
|
+
title: "text-lg mb-1.5",
|
|
19
|
+
desc: "text-xs mb-3"
|
|
20
|
+
},
|
|
21
|
+
sm: {
|
|
22
|
+
root: "py-3",
|
|
23
|
+
iconWrap: "mb-4 p-4",
|
|
24
|
+
icon: "w-6 h-6",
|
|
25
|
+
title: "text-xl mb-2",
|
|
26
|
+
desc: "text-xs mb-4"
|
|
27
|
+
},
|
|
28
|
+
md: {
|
|
29
|
+
root: "py-4",
|
|
30
|
+
iconWrap: "mb-5 p-5",
|
|
31
|
+
icon: "w-8 h-8",
|
|
32
|
+
title: "text-2xl mb-2.5",
|
|
33
|
+
desc: "text-sm mb-5.5"
|
|
34
|
+
},
|
|
35
|
+
lg: {
|
|
36
|
+
root: "py-6",
|
|
37
|
+
iconWrap: "mb-6 p-6",
|
|
38
|
+
icon: "w-10 h-10",
|
|
39
|
+
title: "text-3xl mb-3",
|
|
40
|
+
desc: "text-base mb-7"
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
return (c, p) => (l(), a("div", {
|
|
44
|
+
class: i(["flex flex-col items-center text-center w-full", o[e.size ?? n(t)].root])
|
|
45
|
+
}, [
|
|
46
|
+
s("div", {
|
|
47
|
+
class: i(["rounded-3xl bg-card border shadow-xs transition-shadow hover:shadow-sm", o[e.size ?? n(t)].iconWrap])
|
|
48
|
+
}, [
|
|
49
|
+
m(b, {
|
|
14
50
|
icon: e.icon,
|
|
15
|
-
class: "
|
|
51
|
+
class: i(["text-foreground", o[e.size ?? n(t)].icon]),
|
|
16
52
|
"stroke-width": "1.2"
|
|
17
|
-
}, null, 8, ["icon"])
|
|
18
|
-
]),
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
53
|
+
}, null, 8, ["icon", "class"])
|
|
54
|
+
], 2),
|
|
55
|
+
s("h3", {
|
|
56
|
+
class: i(["font-semibold tracking-tight text-foreground", o[e.size ?? n(t)].title])
|
|
57
|
+
}, d(e.title), 3),
|
|
58
|
+
s("p", {
|
|
59
|
+
class: i(["text-muted max-w-[280px] leading-relaxed font-normal", o[e.size ?? n(t)].desc]),
|
|
22
60
|
innerHTML: e.description
|
|
23
|
-
}, null,
|
|
24
|
-
|
|
25
|
-
]));
|
|
61
|
+
}, null, 10, f),
|
|
62
|
+
x(c.$slots, "action")
|
|
63
|
+
], 2));
|
|
26
64
|
}
|
|
27
65
|
});
|
|
28
66
|
export {
|
|
29
|
-
|
|
67
|
+
g as default
|
|
30
68
|
};
|
|
@@ -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,77 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { defineComponent as a, openBlock as m, createElementBlock as d, normalizeClass as o, unref as n, createElementVNode as c, createVNode as l, toDisplayString as r, renderSlot as x } from "vue";
|
|
2
|
+
import f from "../../Icon.vue.js";
|
|
3
|
+
import { EMPTY_SIZE_DEFAULT as e } from "../types.js";
|
|
4
|
+
const g = { class: "flex-1 text-center md:text-left" }, p = ["innerHTML"], b = /* @__PURE__ */ a({
|
|
4
5
|
__name: "Variant6",
|
|
5
6
|
props: {
|
|
6
7
|
title: {},
|
|
7
8
|
description: {},
|
|
8
|
-
icon: {}
|
|
9
|
+
icon: {},
|
|
10
|
+
size: { default: e }
|
|
9
11
|
},
|
|
10
|
-
setup(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
setup(t) {
|
|
13
|
+
const i = {
|
|
14
|
+
xs: {
|
|
15
|
+
root: "gap-3 md:gap-4 p-4 md:p-5",
|
|
16
|
+
iconWrap: "w-10 h-10",
|
|
17
|
+
icon: "w-5 h-5",
|
|
18
|
+
title: "text-base",
|
|
19
|
+
desc: "text-xs mt-1",
|
|
20
|
+
action: "mt-2 md:mt-0"
|
|
21
|
+
},
|
|
22
|
+
sm: {
|
|
23
|
+
root: "gap-4 md:gap-6 p-6 md:p-8",
|
|
24
|
+
iconWrap: "w-12 h-12",
|
|
25
|
+
icon: "w-6 h-6",
|
|
26
|
+
title: "text-lg",
|
|
27
|
+
desc: "text-xs mt-1",
|
|
28
|
+
action: "mt-3 md:mt-0"
|
|
29
|
+
},
|
|
30
|
+
md: {
|
|
31
|
+
root: "gap-6 md:gap-8 p-8 md:p-10",
|
|
32
|
+
iconWrap: "w-16 h-16",
|
|
33
|
+
icon: "w-7 h-7",
|
|
34
|
+
title: "text-xl",
|
|
35
|
+
desc: "text-sm mt-1.5",
|
|
36
|
+
action: "mt-4 md:mt-0"
|
|
37
|
+
},
|
|
38
|
+
lg: {
|
|
39
|
+
root: "gap-8 md:gap-10 p-10 md:p-14",
|
|
40
|
+
iconWrap: "w-20 h-20",
|
|
41
|
+
icon: "w-9 h-9",
|
|
42
|
+
title: "text-2xl",
|
|
43
|
+
desc: "text-base mt-2",
|
|
44
|
+
action: "mt-5 md:mt-0"
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
return (s, u) => (m(), d("div", {
|
|
48
|
+
class: o(["flex flex-col md:flex-row items-center rounded-3xl border bg-background w-full shadow-xs", i[t.size ?? n(e)].root])
|
|
49
|
+
}, [
|
|
50
|
+
c("div", {
|
|
51
|
+
class: o(["shrink-0 rounded-2xl bg-foreground flex items-center justify-center shadow-sm", i[t.size ?? n(e)].iconWrap])
|
|
52
|
+
}, [
|
|
53
|
+
l(f, {
|
|
54
|
+
icon: t.icon,
|
|
55
|
+
class: o(["text-background", i[t.size ?? n(e)].icon])
|
|
56
|
+
}, null, 8, ["icon", "class"])
|
|
57
|
+
], 2),
|
|
58
|
+
c("div", g, [
|
|
59
|
+
c("h3", {
|
|
60
|
+
class: o(["font-bold text-foreground tracking-tight", i[t.size ?? n(e)].title])
|
|
61
|
+
}, r(t.title), 3),
|
|
62
|
+
c("p", {
|
|
63
|
+
class: o(["text-muted font-medium max-w-lg", i[t.size ?? n(e)].desc]),
|
|
64
|
+
innerHTML: t.description
|
|
65
|
+
}, null, 10, p)
|
|
17
66
|
]),
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
]),
|
|
25
|
-
t("div", h, [
|
|
26
|
-
d(o.$slots, "action")
|
|
27
|
-
])
|
|
28
|
-
]));
|
|
67
|
+
c("div", {
|
|
68
|
+
class: o(["shrink-0", i[t.size ?? n(e)].action])
|
|
69
|
+
}, [
|
|
70
|
+
x(s.$slots, "action")
|
|
71
|
+
], 2)
|
|
72
|
+
], 2));
|
|
29
73
|
}
|
|
30
74
|
});
|
|
31
75
|
export {
|
|
32
|
-
|
|
76
|
+
b as default
|
|
33
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 & {
|