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.
Files changed (90) hide show
  1. package/components/Accordion/Accordion.vue.d.ts +8 -1
  2. package/components/Accordion/AccordionContent.vue.d.ts +8 -2
  3. package/components/Accordion/AccordionContent.vue.js +2 -2
  4. package/components/Accordion/AccordionContent2.vue.js +28 -40
  5. package/components/Accordion/AccordionItem.vue.d.ts +8 -1
  6. package/components/Accordion/AccordionItem.vue.js +86 -70
  7. package/components/Accordion/AccordionTrigger.vue.js +13 -12
  8. package/components/Badge.vue.d.ts +1 -1
  9. package/components/Beacon.vue.d.ts +1 -1
  10. package/components/Breadcrumb/Breadcrumb.vue.d.ts +1 -1
  11. package/components/Breadcrumb/BreadcrumbItem.vue.d.ts +1 -1
  12. package/components/Button.vue.d.ts +1 -1
  13. package/components/Button.vue.js +2 -2
  14. package/components/Button2.vue.js +1 -1
  15. package/components/Carousel/Carousel.vue.d.ts +4 -4
  16. package/components/Chart/CircleChart.vue.d.ts +1 -1
  17. package/components/Chart/GaugeChart.vue.d.ts +1 -1
  18. package/components/Chart/SpeedometerChart.vue.d.ts +1 -1
  19. package/components/Chip/Chip.vue.d.ts +1 -1
  20. package/components/ChoiceBox/ChoiceBox.vue.d.ts +1 -1
  21. package/components/Clipboard.vue.d.ts +1 -1
  22. package/components/ColorPicker/ColorPicker.vue.d.ts +1 -1
  23. package/components/DataList/DataList.vue.d.ts +1 -1
  24. package/components/DataTable/DataTable.vue.d.ts +1 -1
  25. package/components/DataTable/DataTable.vue.js +2 -2
  26. package/components/DataTable/DataTable2.vue.js +48 -50
  27. package/components/EditableTitle/EditableTitle.vue.d.ts +11 -11
  28. package/components/Empty/Empty.vue.d.ts +11 -2
  29. package/components/Empty/Empty.vue.js +57 -49
  30. package/components/Empty/index.d.ts +1 -1
  31. package/components/Empty/types.d.ts +13 -0
  32. package/components/Empty/types.js +8 -0
  33. package/components/Empty/variants/Variant1.vue.d.ts +4 -6
  34. package/components/Empty/variants/Variant1.vue.js +56 -20
  35. package/components/Empty/variants/Variant10.vue.d.ts +4 -6
  36. package/components/Empty/variants/Variant10.vue.js +68 -26
  37. package/components/Empty/variants/Variant11.vue.d.ts +4 -6
  38. package/components/Empty/variants/Variant11.vue.js +66 -18
  39. package/components/Empty/variants/Variant12.vue.d.ts +4 -6
  40. package/components/Empty/variants/Variant12.vue.js +67 -25
  41. package/components/Empty/variants/Variant2.vue.d.ts +4 -6
  42. package/components/Empty/variants/Variant2.vue.js +56 -20
  43. package/components/Empty/variants/Variant3.vue.d.ts +4 -6
  44. package/components/Empty/variants/Variant3.vue.js +41 -13
  45. package/components/Empty/variants/Variant4.vue.d.ts +4 -6
  46. package/components/Empty/variants/Variant4.vue.js +65 -21
  47. package/components/Empty/variants/Variant5.vue.d.ts +4 -6
  48. package/components/Empty/variants/Variant5.vue.js +55 -17
  49. package/components/Empty/variants/Variant6.vue.d.ts +4 -6
  50. package/components/Empty/variants/Variant6.vue.js +67 -23
  51. package/components/Empty/variants/Variant7.vue.d.ts +4 -6
  52. package/components/Empty/variants/Variant7.vue.js +81 -25
  53. package/components/Empty/variants/Variant8.vue.d.ts +4 -6
  54. package/components/Empty/variants/Variant8.vue.js +59 -23
  55. package/components/Empty/variants/Variant9.vue.d.ts +4 -6
  56. package/components/Empty/variants/Variant9.vue.js +64 -20
  57. package/components/FilePicker/index.vue.d.ts +1 -1
  58. package/components/FileTree/FileTree.vue.d.ts +2 -0
  59. package/components/FileTree/FileTree.vue.js +4 -4
  60. package/components/FileTree/FileTree2.vue.js +72 -66
  61. package/components/FileTree/FileTreeNode.vue.d.ts +9 -0
  62. package/components/FileTree/FileTreeNode.vue.js +100 -92
  63. package/components/FileTree/types.d.ts +12 -0
  64. package/components/Form/Form.vue.d.ts +1 -1
  65. package/components/Form/FormField.vue.d.ts +1 -1
  66. package/components/Form/FormFields.vue.d.ts +1 -1
  67. package/components/Form/TableView.vue.d.ts +1 -1
  68. package/components/Form/index.vue.d.ts +1 -1
  69. package/components/GoogleLogin.vue.d.ts +1 -1
  70. package/components/Input.vue.d.ts +1 -1
  71. package/components/Input.vue.js +2 -4
  72. package/components/MultiSelect/MultiSelect.vue.d.ts +1 -1
  73. package/components/Navbar/NavbarTabs.vue.d.ts +1 -1
  74. package/components/NumberInput.vue.d.ts +1 -1
  75. package/components/OTPInput/OTPInput.vue.d.ts +1 -1
  76. package/components/ProgressBar/ProgressBar.vue.d.ts +1 -1
  77. package/components/Screen/components/ScreenEmptyState.vue.js +12 -12
  78. package/components/Slider.vue.d.ts +1 -1
  79. package/components/Spinner/Spinner.vue.d.ts +1 -1
  80. package/components/Switch.vue.d.ts +1 -1
  81. package/components/Tabes/Tabes.vue.d.ts +1 -1
  82. package/components/TagInput/TagInput.vue.d.ts +6 -6
  83. package/components/Tooltip.vue.d.ts +1 -1
  84. package/core/config.d.ts +2 -2
  85. package/docs/components/accordion.md +35 -0
  86. package/docs/components/empty.md +38 -4
  87. package/docs/components/file-tree.md +67 -16
  88. package/docs-manifest.json +5 -5
  89. package/package.json +2 -2
  90. package/style.css +1 -1
@@ -0,0 +1,8 @@
1
+ const r = "md";
2
+ function t(E) {
3
+ return E === "xs" || E === "sm" || E === "md" || E === "lg" ? E : "md";
4
+ }
5
+ export {
6
+ r as EMPTY_SIZE_DEFAULT,
7
+ t as resolveEmptySize
8
+ };
@@ -1,8 +1,4 @@
1
- type __VLS_Props = {
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<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
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 i, openBlock as o, createElementBlock as n, createVNode as c, createElementVNode as s, toDisplayString as r, renderSlot as l, createCommentVNode as m } from "vue";
2
- import a from "../../Icon.vue.js";
3
- const d = { class: "flex w-full flex-col items-center justify-center p-10 min-h-[450px] text-center rounded-2xl bg-card" }, u = { class: "text-fs-5 font-semibold text-foreground" }, f = ["innerHTML"], x = {
4
- key: 0,
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
- return (e, p) => (o(), n("div", d, [
15
- c(a, {
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: "mb-3 h-12 w-12 text-muted",
48
+ class: i(["text-muted", o[t.size ?? n(e)].icon]),
18
49
  "stroke-width": "1.2"
19
- }, null, 8, ["icon"]),
20
- s("h3", u, r(t.title), 1),
21
- s("p", {
22
- class: "mt-1.5 text-sm text-muted max-w-md mx-auto",
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, 8, f),
25
- e.$slots.action ? (o(), n("div", x, [
26
- l(e.$slots, "action")
27
- ])) : m("", !0)
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
- k as default
68
+ g as default
33
69
  };
@@ -1,8 +1,4 @@
1
- type __VLS_Props = {
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<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
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 i, openBlock as s, createElementBlock as n, createElementVNode as t, createVNode as l, toDisplayString as c, renderSlot as r, createCommentVNode as a } from "vue";
2
- import d from "../../Icon.vue.js";
3
- const m = { class: "flex w-full flex-col items-center py-12" }, f = { class: "flex w-full max-w-md flex-col text-left" }, u = { class: "mb-6 flex w-full justify-start" }, x = { class: "text-xl font-medium tracking-tight text-foreground" }, _ = ["innerHTML"], h = {
4
- key: 0,
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(e) {
14
- return (o, p) => (s(), n("div", m, [
15
- t("div", f, [
16
- t("div", u, [
17
- l(d, {
18
- icon: e.icon,
19
- class: "h-12 w-12 text-foreground opacity-80",
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
- t("h3", x, c(e.title), 1),
24
- t("p", {
25
- class: "mt-2 text-sm leading-relaxed text-muted",
26
- innerHTML: e.description
27
- }, null, 8, _),
28
- o.$slots.action ? (s(), n("div", h, [
29
- r(o.$slots, "action")
30
- ])) : a("", !0)
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
- y as default
78
+ b as default
37
79
  };
@@ -1,8 +1,4 @@
1
- type __VLS_Props = {
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<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
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 s, openBlock as o, createElementBlock as r, createElementVNode as t, toDisplayString as n, renderSlot as a } from "vue";
2
- const c = { class: "flex w-full flex-col items-center text-center text-foreground py-6" }, d = { class: "mb-6 space-y-1" }, m = { class: "text-4xl font-bold tracking-tight leading-none" }, x = { class: "text-4xl font-bold tracking-tight leading-none text-muted" }, f = ["innerHTML"], p = /* @__PURE__ */ s({
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
- return (i, l) => (o(), r("div", c, [
11
- t("div", d, [
12
- t("h3", m, n(e.title.split(" ")[0]) + " " + n(e.title.split(" ")[1] || ""), 1),
13
- t("h4", x, n(e.title.split(" ").slice(2).join(" ")), 1)
14
- ]),
15
- l[0] || (l[0] = t("div", { class: "relative my-8 flex w-full max-w-[400px] items-center h-px" }, [
16
- t("div", { class: "h-full flex-1 bg-linear-to-r from-transparent via-border to-transparent" }),
17
- t("div", { class: "absolute right-0 h-1.5 w-1.5 rounded-full bg-muted" })
18
- ], -1)),
19
- t("p", {
20
- class: "mb-10 max-w-sm text-sm font-normal leading-relaxed text-muted",
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, 8, f),
23
- a(i.$slots, "action")
24
- ]));
70
+ }, null, 10, f),
71
+ c(o.$slots, "action")
72
+ ], 2));
25
73
  }
26
74
  });
27
75
  export {
28
- p as default
76
+ h as default
29
77
  };
@@ -1,8 +1,4 @@
1
- type __VLS_Props = {
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<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
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 s, openBlock as n, createElementBlock as r, createElementVNode as t, createVNode as i, toDisplayString as c, renderSlot as d, createCommentVNode as l } from "vue";
2
- import a from "../../Icon.vue.js";
3
- const m = { class: "flex w-full flex-col items-center justify-center p-8 min-h-[250px] text-center" }, u = { class: "mb-4 flex h-14 w-14 items-center justify-center rounded-2xl bg-muted/30 border border-border/40 shadow-[0_2px_10px_-4px_rgba(0,0,0,0.05)]" }, x = { class: "text-lg font-semibold text-foreground tracking-tight" }, f = ["innerHTML"], _ = {
4
- key: 0,
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(e) {
14
- return (o, h) => (n(), r("div", m, [
15
- t("div", u, [
16
- i(a, {
17
- icon: e.icon,
18
- class: "h-6 w-6 text-muted-foreground",
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
- t("h3", x, c(e.title), 1),
23
- t("p", {
24
- class: "mt-2 text-sm text-muted-foreground max-w-sm mx-auto leading-relaxed",
25
- innerHTML: e.description
26
- }, null, 8, f),
27
- o.$slots.action ? (n(), r("div", _, [
28
- d(o.$slots, "action")
29
- ])) : l("", !0)
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
- b as default
76
+ z as default
35
77
  };
@@ -1,8 +1,4 @@
1
- type __VLS_Props = {
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<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
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 i, openBlock as o, createElementBlock as n, createVNode as c, createElementVNode as s, toDisplayString as r, renderSlot as l, createCommentVNode as m } from "vue";
2
- import a from "../../Icon.vue.js";
3
- const d = { class: "flex w-full flex-col items-center justify-center p-10 md:p-16 text-center" }, u = { class: "text-2xl font-medium text-foreground" }, f = ["innerHTML"], x = {
4
- key: 0,
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
- return (e, p) => (o(), n("div", d, [
15
- c(a, {
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: "mb-3 h-10 w-10 text-muted",
48
+ class: o(["text-muted", i[t.size ?? n(e)].icon]),
18
49
  "stroke-width": "1.2"
19
- }, null, 8, ["icon"]),
20
- s("h3", u, r(t.title), 1),
21
- s("p", {
22
- class: "mt-1.5 text-sm text-muted max-w-md mx-auto",
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, 8, f),
25
- e.$slots.action ? (o(), n("div", x, [
26
- l(e.$slots, "action")
27
- ])) : m("", !0)
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
- k as default
68
+ E as default
33
69
  };
@@ -1,8 +1,4 @@
1
- type __VLS_Props = {
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<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
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 & {