vlite3 1.5.27 → 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.
Files changed (101) 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/CategoryManager/CategoryManager2.vue.js +3 -3
  17. package/components/Chart/CircleChart.vue.d.ts +1 -1
  18. package/components/Chart/GaugeChart.vue.d.ts +1 -1
  19. package/components/Chart/SpeedometerChart.vue.d.ts +1 -1
  20. package/components/Chip/Chip.vue.d.ts +1 -1
  21. package/components/ChoiceBox/ChoiceBox.vue.d.ts +1 -1
  22. package/components/Clipboard.vue.d.ts +1 -1
  23. package/components/ColorPicker/ColorPicker.vue.d.ts +1 -1
  24. package/components/DataList/DataList.vue.d.ts +1 -1
  25. package/components/DataTable/DataTable.vue.d.ts +1 -1
  26. package/components/DataTable/DataTable.vue.js +2 -2
  27. package/components/DataTable/DataTable2.vue.js +48 -50
  28. package/components/Dropdown/DropdownMenu.vue.js +1 -1
  29. package/components/EditableTitle/EditableTitle.vue.d.ts +11 -11
  30. package/components/Empty/Empty.vue.d.ts +11 -2
  31. package/components/Empty/Empty.vue.js +57 -49
  32. package/components/Empty/index.d.ts +1 -1
  33. package/components/Empty/types.d.ts +13 -0
  34. package/components/Empty/types.js +8 -0
  35. package/components/Empty/variants/Variant1.vue.d.ts +4 -6
  36. package/components/Empty/variants/Variant1.vue.js +56 -20
  37. package/components/Empty/variants/Variant10.vue.d.ts +4 -6
  38. package/components/Empty/variants/Variant10.vue.js +68 -26
  39. package/components/Empty/variants/Variant11.vue.d.ts +4 -6
  40. package/components/Empty/variants/Variant11.vue.js +66 -18
  41. package/components/Empty/variants/Variant12.vue.d.ts +4 -6
  42. package/components/Empty/variants/Variant12.vue.js +67 -25
  43. package/components/Empty/variants/Variant2.vue.d.ts +4 -6
  44. package/components/Empty/variants/Variant2.vue.js +56 -20
  45. package/components/Empty/variants/Variant3.vue.d.ts +4 -6
  46. package/components/Empty/variants/Variant3.vue.js +41 -13
  47. package/components/Empty/variants/Variant4.vue.d.ts +4 -6
  48. package/components/Empty/variants/Variant4.vue.js +65 -21
  49. package/components/Empty/variants/Variant5.vue.d.ts +4 -6
  50. package/components/Empty/variants/Variant5.vue.js +55 -17
  51. package/components/Empty/variants/Variant6.vue.d.ts +4 -6
  52. package/components/Empty/variants/Variant6.vue.js +67 -23
  53. package/components/Empty/variants/Variant7.vue.d.ts +4 -6
  54. package/components/Empty/variants/Variant7.vue.js +81 -25
  55. package/components/Empty/variants/Variant8.vue.d.ts +4 -6
  56. package/components/Empty/variants/Variant8.vue.js +59 -23
  57. package/components/Empty/variants/Variant9.vue.d.ts +4 -6
  58. package/components/Empty/variants/Variant9.vue.js +64 -20
  59. package/components/FilePicker/index.vue.d.ts +1 -1
  60. package/components/FileTree/FileTree.vue.d.ts +2 -0
  61. package/components/FileTree/FileTree.vue.js +4 -4
  62. package/components/FileTree/FileTree2.vue.js +72 -66
  63. package/components/FileTree/FileTreeNode.vue.d.ts +9 -0
  64. package/components/FileTree/FileTreeNode.vue.js +100 -92
  65. package/components/FileTree/types.d.ts +12 -0
  66. package/components/Form/{AccordionView.vue.js → AccordionView2.vue.js} +1 -1
  67. package/components/Form/Form.vue.d.ts +1 -1
  68. package/components/Form/FormField.vue.d.ts +1 -1
  69. package/components/Form/FormFields.vue.d.ts +1 -1
  70. package/components/Form/TableView.vue.d.ts +1 -1
  71. package/components/Form/index.vue.d.ts +1 -1
  72. package/components/Form/index2.vue.js +1 -1
  73. package/components/GoogleLogin.vue.d.ts +1 -1
  74. package/components/Input.vue.d.ts +1 -1
  75. package/components/Input.vue.js +2 -4
  76. package/components/MultiSelect/MultiSelect.vue.d.ts +1 -1
  77. package/components/Navbar/NavbarTabs.vue.d.ts +1 -1
  78. package/components/NumberInput.vue.d.ts +1 -1
  79. package/components/OTPInput/OTPInput.vue.d.ts +1 -1
  80. package/components/ProgressBar/ProgressBar.vue.d.ts +1 -1
  81. package/components/RichTextEditor/RichTextEditor.vue.js +4 -4
  82. package/components/RichTextEditor/RichTextLinkPopover3.vue.js +2 -2
  83. package/components/RichTextEditor/RichTextToolbar3.vue.js +2 -2
  84. package/components/Screen/ScreenFilter.vue.js +3 -3
  85. package/components/Screen/components/ScreenEmptyState.vue.js +12 -12
  86. package/components/Slider.vue.d.ts +1 -1
  87. package/components/Spinner/Spinner.vue.d.ts +1 -1
  88. package/components/Switch.vue.d.ts +1 -1
  89. package/components/Tabes/Tabes.vue.d.ts +1 -1
  90. package/components/TagInput/TagInput.vue.d.ts +6 -6
  91. package/components/Tooltip.vue.d.ts +1 -1
  92. package/core/config.d.ts +2 -2
  93. package/docs/components/accordion.md +35 -0
  94. package/docs/components/empty.md +38 -4
  95. package/docs/components/file-tree.md +67 -16
  96. package/docs-manifest.json +5 -5
  97. package/package.json +1 -1
  98. package/style.css +1 -1
  99. /package/components/Dropdown/{DropdownMenu3.vue.js → DropdownMenu2.vue.js} +0 -0
  100. /package/components/RichTextEditor/{RichTextLinkPopover2.vue.js → RichTextLinkPopover.vue.js} +0 -0
  101. /package/components/RichTextEditor/{RichTextToolbar2.vue.js → RichTextToolbar.vue.js} +0 -0
@@ -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 & {
@@ -1,22 +1,50 @@
1
- import { defineComponent as o, openBlock as r, createElementBlock as i, createElementVNode as t, toDisplayString as s, renderSlot as l } from "vue";
2
- const c = { class: "group flex flex-col items-center text-center py-14 cursor-default" }, a = { class: "text-lg mb-1.5 font-semibold text-foreground tracking-tight" }, d = ["innerHTML"], p = /* @__PURE__ */ o({
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(e) {
10
- return (n, f) => (r(), i("div", c, [
11
- t("h3", a, s(e.title), 1),
12
- t("p", {
13
- class: "text-xs mb-4.5 text-foreground/40 leading-relaxed font-light",
14
- innerHTML: e.description
15
- }, null, 8, d),
16
- l(n.$slots, "action")
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
- p as default
49
+ b as default
22
50
  };
@@ -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,77 @@
1
- import { defineComponent as i, openBlock as n, createElementBlock as o, createElementVNode as e, toDisplayString as r, renderSlot as a, createCommentVNode as c } from "vue";
2
- const d = { class: "flex w-full flex-col items-center justify-center py-24 px-6 min-h-[400px]" }, m = { class: "flex flex-col w-full max-w-md text-left" }, x = { class: "text-4xl sm:text-5xl font-bold tracking-tight text-foreground leading-[1.1] max-w-[280px]" }, f = ["innerHTML"], p = {
3
- key: 0,
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
- return (l, s) => (n(), o("div", d, [
14
- e("div", m, [
15
- e("h3", x, r(t.title), 1),
16
- s[0] || (s[0] = e("div", { class: "flex items-center w-full my-6" }, [
17
- e("div", { class: "h-[2px] flex-1 bg-gradient-to-r from-gray-150 via-gray-300 to-gray-100" }),
18
- e("div", { class: "h-2.5 w-2.5 rounded-full bg-gray-300 ml-1 shrink-0" })
19
- ], -1)),
20
- e("p", {
21
- class: "text-sm sm:text-base text-muted leading-relaxed",
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, 8, f),
24
- l.$slots.action ? (n(), o("div", p, [
25
- a(l.$slots, "action")
26
- ])) : c("", !0)
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
- g as default
76
+ h as default
33
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,30 +1,68 @@
1
- import { defineComponent as n, openBlock as s, createElementBlock as i, createElementVNode as t, createVNode as r, toDisplayString as c, renderSlot as l } from "vue";
2
- import a from "../../Icon.vue.js";
3
- const d = { class: "flex flex-col items-center text-center w-full py-4" }, m = { class: "mb-5 p-5 rounded-3xl bg-card border shadow-xs transition-shadow hover:shadow-sm" }, x = { class: "text-2xl font-semibold tracking-tight text-foreground mb-2.5" }, f = ["innerHTML"], _ = /* @__PURE__ */ n({
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
- return (o, h) => (s(), i("div", d, [
12
- t("div", m, [
13
- r(a, {
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: "w-8 h-8 text-foreground",
51
+ class: i(["text-foreground", o[e.size ?? n(t)].icon]),
16
52
  "stroke-width": "1.2"
17
- }, null, 8, ["icon"])
18
- ]),
19
- t("h3", x, c(e.title), 1),
20
- t("p", {
21
- class: "text-sm text-muted max-w-[280px] mb-5.5 leading-relaxed font-normal",
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, 8, f),
24
- l(o.$slots, "action")
25
- ]));
61
+ }, null, 10, f),
62
+ x(c.$slots, "action")
63
+ ], 2));
26
64
  }
27
65
  });
28
66
  export {
29
- _ as default
67
+ g as default
30
68
  };
@@ -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,77 @@
1
- import { defineComponent as n, openBlock as s, createElementBlock as i, createElementVNode as t, createVNode as c, toDisplayString as r, renderSlot as d } from "vue";
2
- import l from "../../Icon.vue.js";
3
- const a = { class: "flex flex-col md:flex-row items-center gap-6 md:gap-8 p-8 md:p-10 rounded-3xl border bg-background w-full shadow-xs" }, m = { class: "w-16 h-16 shrink-0 rounded-2xl bg-foreground flex items-center justify-center shadow-sm" }, f = { class: "flex-1 text-center md:text-left" }, x = { class: "text-xl font-bold text-foreground tracking-tight" }, u = ["innerHTML"], h = { class: "shrink-0 mt-4 md:mt-0" }, k = /* @__PURE__ */ n({
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(e) {
11
- return (o, _) => (s(), i("div", a, [
12
- t("div", m, [
13
- c(l, {
14
- icon: e.icon,
15
- class: "w-7 h-7 text-background"
16
- }, null, 8, ["icon"])
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
- t("div", f, [
19
- t("h3", x, r(e.title), 1),
20
- t("p", {
21
- class: "text-sm text-muted mt-1.5 font-medium max-w-lg",
22
- innerHTML: e.description
23
- }, null, 8, u)
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
- k as default
76
+ b as default
33
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 & {