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
@@ -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 & {
@@ -1,35 +1,91 @@
1
- import { defineComponent as n, openBlock as l, createElementBlock as s, createElementVNode as e, createVNode as i, toDisplayString as d, renderSlot as a } from "vue";
2
- import m from "../../Icon.vue.js";
3
- const c = { class: "relative flex w-full max-w-2xl flex-col items-center justify-center py-10 pl-4 md:pl-16" }, f = { class: "flex flex-col items-start relative" }, x = { class: "mb-6 flex h-12 w-12 items-center justify-center rounded-xl bg-card border shadow-xs transition-transform duration-500 hover:scale-110" }, u = { class: "mb-3 font-serif text-3xl font-medium tracking-tight text-foreground md:text-4xl" }, b = ["innerHTML"], h = /* @__PURE__ */ n({
1
+ import { defineComponent as m, openBlock as r, createElementBlock as s, normalizeClass as o, unref as n, createElementVNode as i, createVNode as a, toDisplayString as c, renderSlot as x } from "vue";
2
+ import f from "../../Icon.vue.js";
3
+ import { EMPTY_SIZE_DEFAULT as t } from "../types.js";
4
+ const b = { class: "flex flex-col items-start relative" }, u = ["innerHTML"], z = /* @__PURE__ */ m({
4
5
  __name: "Variant7",
5
6
  props: {
6
7
  title: {},
7
8
  description: {},
8
- icon: {}
9
+ icon: {},
10
+ size: { default: t }
9
11
  },
10
- setup(r) {
11
- return (o, t) => (l(), s("div", c, [
12
- e("div", f, [
13
- e("div", x, [
14
- i(m, {
15
- icon: r.icon,
16
- class: "h-5 w-5 text-foreground"
17
- }, null, 8, ["icon"])
18
- ]),
19
- e("h3", u, d(r.title), 1),
20
- e("p", {
21
- class: "mb-10 max-w-md text-base leading-relaxed text-muted",
22
- innerHTML: r.description
23
- }, null, 8, b),
24
- a(o.$slots, "action"),
25
- t[0] || (t[0] = e("div", { class: "max-md:hidden absolute bottom-0 left-0 -ml-16 top-0 mt-4 w-px bg-linear-to-b from-border via-border/50 to-transparent md:left-6" }, null, -1)),
26
- t[1] || (t[1] = e("div", { class: "max-md:hidden absolute left-0 -ml-16 top-0 flex h-6 w-6 mt-4 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full border-[3px] border-background bg-card ring-1 ring-border md:left-6" }, [
27
- e("div", { class: "h-1.5 w-1.5 rounded-full bg-foreground" })
28
- ], -1))
12
+ setup(e) {
13
+ const l = {
14
+ xs: {
15
+ root: "py-5 pl-3 md:pl-8",
16
+ iconWrap: "mb-3 h-8 w-8",
17
+ icon: "h-4 w-4",
18
+ title: "mb-2 text-xl md:text-2xl",
19
+ desc: "mb-5 text-sm",
20
+ line: "-ml-8 mt-2 md:left-4",
21
+ node: "-ml-8 h-4 w-4 mt-2 md:left-4",
22
+ nodeDot: "h-1 w-1"
23
+ },
24
+ sm: {
25
+ root: "py-8 pl-3 md:pl-12",
26
+ iconWrap: "mb-4 h-10 w-10",
27
+ icon: "h-4 w-4",
28
+ title: "mb-2.5 text-2xl md:text-3xl",
29
+ desc: "mb-8 text-sm",
30
+ line: "-ml-12 mt-3 md:left-5",
31
+ node: "-ml-12 h-5 w-5 mt-3 md:left-5",
32
+ nodeDot: "h-1 w-1"
33
+ },
34
+ md: {
35
+ root: "py-10 pl-4 md:pl-16",
36
+ iconWrap: "mb-6 h-12 w-12",
37
+ icon: "h-5 w-5",
38
+ title: "mb-3 text-3xl md:text-4xl",
39
+ desc: "mb-10 text-base",
40
+ line: "-ml-16 mt-4 md:left-6",
41
+ node: "-ml-16 h-6 w-6 mt-4 md:left-6",
42
+ nodeDot: "h-1.5 w-1.5"
43
+ },
44
+ lg: {
45
+ root: "py-14 pl-5 md:pl-20",
46
+ iconWrap: "mb-8 h-16 w-16",
47
+ icon: "h-6 w-6",
48
+ title: "mb-4 text-4xl md:text-5xl",
49
+ desc: "mb-12 text-lg",
50
+ line: "-ml-20 mt-5 md:left-8",
51
+ node: "-ml-20 h-8 w-8 mt-5 md:left-8",
52
+ nodeDot: "h-2 w-2"
53
+ }
54
+ };
55
+ return (d, h) => (r(), s("div", {
56
+ class: o(["relative flex w-full max-w-2xl flex-col items-center justify-center", l[e.size ?? n(t)].root])
57
+ }, [
58
+ i("div", b, [
59
+ i("div", {
60
+ class: o(["flex items-center justify-center rounded-xl bg-card border shadow-xs transition-transform duration-500 hover:scale-110", l[e.size ?? n(t)].iconWrap])
61
+ }, [
62
+ a(f, {
63
+ icon: e.icon,
64
+ class: o(["text-foreground", l[e.size ?? n(t)].icon])
65
+ }, null, 8, ["icon", "class"])
66
+ ], 2),
67
+ i("h3", {
68
+ class: o(["font-serif font-medium tracking-tight text-foreground", l[e.size ?? n(t)].title])
69
+ }, c(e.title), 3),
70
+ i("p", {
71
+ class: o(["max-w-md leading-relaxed text-muted", l[e.size ?? n(t)].desc]),
72
+ innerHTML: e.description
73
+ }, null, 10, u),
74
+ x(d.$slots, "action"),
75
+ i("div", {
76
+ class: o(["max-md:hidden absolute bottom-0 left-0 top-0 w-px bg-linear-to-b from-border via-border/50 to-transparent", l[e.size ?? n(t)].line])
77
+ }, null, 2),
78
+ i("div", {
79
+ class: o(["max-md:hidden absolute left-0 top-0 flex -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full border-[3px] border-background bg-card ring-1 ring-border", l[e.size ?? n(t)].node])
80
+ }, [
81
+ i("div", {
82
+ class: o(["rounded-full bg-foreground", l[e.size ?? n(t)].nodeDot])
83
+ }, null, 2)
84
+ ], 2)
29
85
  ])
30
- ]));
86
+ ], 2));
31
87
  }
32
88
  });
33
89
  export {
34
- h as default
90
+ z as default
35
91
  };
@@ -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 & {