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,20 +1,21 @@
1
- import { defineComponent as d, computed as n, markRaw as t, openBlock as m, createElementBlock as u, createBlock as $, resolveDynamicComponent as y, createSlots as h, renderList as I, withCtx as g, renderSlot as C, normalizeProps as k, guardReactiveProps as w } from "vue";
2
- import { $t as e } from "../../utils/i18n.js";
3
- import { useVLiteConfig as x } from "../../core/config.js";
1
+ import { defineComponent as u, computed as r, markRaw as t, openBlock as m, createElementBlock as $, createBlock as y, resolveDynamicComponent as z, normalizeClass as h, createSlots as I, renderList as C, withCtx as E, renderSlot as S, normalizeProps as g, guardReactiveProps as k } from "vue";
2
+ import { $t as n } from "../../utils/i18n.js";
3
+ import { useVLiteConfig as w } from "../../core/config.js";
4
4
  import "../../icons/IconRegistry.js";
5
+ import { EMPTY_SIZE_DEFAULT as T, resolveEmptySize as x } from "./types.js";
5
6
  import B from "./variants/Variant1.vue.js";
6
- import S from "./variants/Variant2.vue.js";
7
- import V from "./variants/Variant3.vue.js";
8
- import b from "./variants/Variant4.vue.js";
9
- import D from "./variants/Variant5.vue.js";
10
- import E from "./variants/Variant6.vue.js";
11
- import L from "./variants/Variant7.vue.js";
12
- import P from "./variants/Variant8.vue.js";
13
- import R from "./variants/Variant9.vue.js";
14
- import T from "./variants/Variant10.vue.js";
15
- import j from "./variants/Variant11.vue.js";
16
- import z from "./variants/Variant12.vue.js";
17
- const N = { class: "flex items-center justify-center w-full py-2" }, nt = /* @__PURE__ */ d({
7
+ import D from "./variants/Variant2.vue.js";
8
+ import L from "./variants/Variant3.vue.js";
9
+ import N from "./variants/Variant4.vue.js";
10
+ import P from "./variants/Variant5.vue.js";
11
+ import V from "./variants/Variant6.vue.js";
12
+ import b from "./variants/Variant7.vue.js";
13
+ import R from "./variants/Variant8.vue.js";
14
+ import j from "./variants/Variant9.vue.js";
15
+ import A from "./variants/Variant10.vue.js";
16
+ import F from "./variants/Variant11.vue.js";
17
+ import M from "./variants/Variant12.vue.js";
18
+ const U = { class: "flex items-center justify-center w-full py-2" }, ct = /* @__PURE__ */ u({
18
19
  __name: "Empty",
19
20
  props: {
20
21
  title: {},
@@ -22,51 +23,58 @@ const N = { class: "flex items-center justify-center w-full py-2" }, nt = /* @__
22
23
  description: {},
23
24
  descriptionI18n: {},
24
25
  icon: { default: "lucide:inbox" },
25
- variant: {}
26
+ variant: {},
27
+ size: { default: T },
28
+ className: {}
26
29
  },
27
30
  setup(o) {
28
- const i = o, c = x(), p = n(() => i.variant || c?.components?.empty?.variant || "variant1"), f = n(() => {
29
- if (i.titleI18n) return e(i.titleI18n);
31
+ const i = o, l = w(), p = r(() => i.variant || l?.components?.empty?.variant || "variant1"), f = r(() => {
32
+ if (i.titleI18n) return n(i.titleI18n);
30
33
  if (i.title) return i.title;
31
- const r = e("vlite.empty.title");
32
- return r !== "vlite.empty.title" ? r : "No data found";
33
- }), l = n(() => {
34
- if (i.descriptionI18n) return e(i.descriptionI18n);
34
+ const e = n("vlite.empty.title");
35
+ return e !== "vlite.empty.title" ? e : "No data found";
36
+ }), v = r(() => {
37
+ if (i.descriptionI18n) return n(i.descriptionI18n);
35
38
  if (i.description) return i.description;
36
- const r = e("vlite.empty.description");
37
- return r !== "vlite.empty.description" ? r : "There is nothing to display here right now.";
38
- }), a = {
39
+ const e = n("vlite.empty.description");
40
+ return e !== "vlite.empty.description" ? e : "There is nothing to display here right now.";
41
+ }), s = r(() => x(i.size)), c = {
39
42
  variant1: t(B),
40
- variant2: t(S),
41
- variant3: t(V),
42
- variant4: t(b),
43
- variant5: t(D),
44
- variant6: t(E),
45
- variant7: t(L),
46
- variant8: t(P),
47
- variant9: t(R),
48
- variant10: t(T),
49
- variant11: t(j),
50
- variant12: t(z)
51
- }, v = n(
52
- () => a[p.value] || a.variant1
43
+ variant2: t(D),
44
+ variant3: t(L),
45
+ variant4: t(N),
46
+ variant5: t(P),
47
+ variant6: t(V),
48
+ variant7: t(b),
49
+ variant8: t(R),
50
+ variant9: t(j),
51
+ variant10: t(A),
52
+ variant11: t(F),
53
+ variant12: t(M)
54
+ }, _ = r(
55
+ () => c[p.value] || c.variant1
53
56
  );
54
- return (r, q) => (m(), u("div", N, [
55
- (m(), $(y(v.value), {
57
+ return (e, Y) => (m(), $("div", U, [
58
+ (m(), y(z(_.value), {
56
59
  title: f.value,
57
- description: l.value,
58
- icon: o.icon
59
- }, h({ _: 2 }, [
60
- I(r.$slots, (A, s) => ({
61
- name: s,
62
- fn: g((_) => [
63
- C(r.$slots, s, k(w(_ || {})))
60
+ description: v.value,
61
+ icon: o.icon,
62
+ class: h(o.className),
63
+ size: s.value
64
+ }, I({ _: 2 }, [
65
+ C(e.$slots, (Z, a) => ({
66
+ name: a,
67
+ fn: E((d) => [
68
+ S(e.$slots, a, g(k({
69
+ ...d || {},
70
+ ...a === "action" ? { size: s.value } : {}
71
+ })))
64
72
  ])
65
73
  }))
66
- ]), 1032, ["title", "description", "icon"]))
74
+ ]), 1032, ["title", "description", "icon", "class", "size"]))
67
75
  ]));
68
76
  }
69
77
  });
70
78
  export {
71
- nt as default
79
+ ct as default
72
80
  };
@@ -1,2 +1,2 @@
1
1
  export { default as Empty } from './Empty.vue';
2
- export type EmptyVariant = 'variant1' | 'variant2' | 'variant3' | 'variant4' | 'variant5' | 'variant6' | 'variant7' | 'variant8' | 'variant9' | 'variant10' | 'variant11' | 'variant12';
2
+ export type { EmptyActionSlotProps, EmptySize, EmptyVariant } from './types';
@@ -0,0 +1,13 @@
1
+ export type EmptyVariant = 'variant1' | 'variant2' | 'variant3' | 'variant4' | 'variant5' | 'variant6' | 'variant7' | 'variant8' | 'variant9' | 'variant10' | 'variant11' | 'variant12';
2
+ export type EmptySize = 'xs' | 'sm' | 'md' | 'lg';
3
+ export declare const EMPTY_SIZE_DEFAULT: EmptySize;
4
+ export declare function resolveEmptySize(size?: string | EmptySize): EmptySize;
5
+ export interface EmptyVariantProps {
6
+ title: string;
7
+ description: string;
8
+ icon: string;
9
+ size?: EmptySize;
10
+ }
11
+ export interface EmptyActionSlotProps {
12
+ size: EmptySize;
13
+ }
@@ -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
  };