vlite3 0.8.2 → 0.8.3

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 (60) hide show
  1. package/components/BackButton.vue.js +10 -11
  2. package/components/Breadcrumb/Breadcrumb.vue.js +2 -2
  3. package/components/Chip/Chip.vue.d.ts +2 -2
  4. package/components/ChoiceBox/ChoiceBox.vue.d.ts +1 -1
  5. package/components/DataTable/DataTable.vue.d.ts +2 -2
  6. package/components/Empty/Empty.vue.d.ts +2 -0
  7. package/components/Empty/Empty.vue.js +50 -33
  8. package/components/Empty/index.d.ts +1 -0
  9. package/components/Empty/variants/Variant1.vue.d.ts +22 -0
  10. package/components/Empty/variants/Variant1.vue.js +4 -0
  11. package/components/Empty/variants/Variant1.vue2.js +30 -0
  12. package/components/Empty/variants/Variant10.vue.d.ts +22 -0
  13. package/components/Empty/variants/Variant10.vue.js +4 -0
  14. package/components/Empty/variants/Variant10.vue2.js +37 -0
  15. package/components/Empty/variants/Variant11.vue.d.ts +22 -0
  16. package/components/Empty/variants/Variant11.vue.js +4 -0
  17. package/components/Empty/variants/Variant11.vue2.js +29 -0
  18. package/components/Empty/variants/Variant2.vue.d.ts +22 -0
  19. package/components/Empty/variants/Variant2.vue.js +4 -0
  20. package/components/Empty/variants/Variant2.vue2.js +33 -0
  21. package/components/Empty/variants/Variant3.vue.d.ts +22 -0
  22. package/components/Empty/variants/Variant3.vue.js +4 -0
  23. package/components/Empty/variants/Variant3.vue2.js +25 -0
  24. package/components/Empty/variants/Variant4.vue.d.ts +22 -0
  25. package/components/Empty/variants/Variant4.vue.js +4 -0
  26. package/components/Empty/variants/Variant4.vue2.js +33 -0
  27. package/components/Empty/variants/Variant5.vue.d.ts +22 -0
  28. package/components/Empty/variants/Variant5.vue.js +4 -0
  29. package/components/Empty/variants/Variant5.vue2.js +33 -0
  30. package/components/Empty/variants/Variant6.vue.d.ts +22 -0
  31. package/components/Empty/variants/Variant6.vue.js +4 -0
  32. package/components/Empty/variants/Variant6.vue2.js +33 -0
  33. package/components/Empty/variants/Variant7.vue.d.ts +22 -0
  34. package/components/Empty/variants/Variant7.vue.js +4 -0
  35. package/components/Empty/variants/Variant7.vue2.js +35 -0
  36. package/components/Empty/variants/Variant8.vue.d.ts +22 -0
  37. package/components/Empty/variants/Variant8.vue.js +4 -0
  38. package/components/Empty/variants/Variant8.vue2.js +33 -0
  39. package/components/Empty/variants/Variant9.vue.d.ts +22 -0
  40. package/components/Empty/variants/Variant9.vue.js +4 -0
  41. package/components/Empty/variants/Variant9.vue2.js +33 -0
  42. package/components/Form/Form.vue.d.ts +17 -0
  43. package/components/Form/Form.vue.js +1 -1
  44. package/components/Form/Form.vue2.js +239 -183
  45. package/components/Form/types.d.ts +13 -1
  46. package/components/Modal.vue.js +2 -2
  47. package/components/Modal.vue2.js +45 -43
  48. package/components/Navbar/Navbar.vue.d.ts +2 -2
  49. package/components/ProgressBar/ProgressBar.vue.d.ts +1 -1
  50. package/components/Screen/Screen.vue.js +249 -241
  51. package/components/SidebarMenu/SidebarMenuItem.vue.js +5 -7
  52. package/components/Workbook/Workbook.vue.d.ts +2 -2
  53. package/core/config.d.ts +6 -0
  54. package/core/config.js +14 -8
  55. package/core/index.js +12 -7
  56. package/index.d.ts +1 -0
  57. package/index.js +120 -117
  58. package/package.json +1 -1
  59. package/style.css +1 -1
  60. package/types/config.type.d.ts +9 -0
@@ -1,7 +1,7 @@
1
- import { defineComponent as l, openBlock as c, createBlock as s, normalizeClass as i } from "vue";
1
+ import { defineComponent as c, openBlock as s, createBlock as l, normalizeClass as i } from "vue";
2
2
  import { useRouter as n } from "vue-router";
3
3
  import r from "./Button.vue.js";
4
- const p = /* @__PURE__ */ l({
4
+ const p = /* @__PURE__ */ c({
5
5
  __name: "BackButton",
6
6
  props: {
7
7
  icon: { default: "heroicons-solid:arrow-left" },
@@ -10,18 +10,17 @@ const p = /* @__PURE__ */ l({
10
10
  class: { default: "" },
11
11
  fallback: { default: "/" }
12
12
  },
13
- setup(o) {
14
- const t = o, e = n();
13
+ setup(t) {
14
+ const o = t, e = n();
15
15
  function a() {
16
- window.history.state?.back ? e.back() : e.push(t.fallback);
16
+ window.history.state?.back ? e.back() : e.push(o.fallback);
17
17
  }
18
- return (f, u) => (c(), s(r, {
18
+ return (f, u) => (s(), l(r, {
19
19
  variant: "ghost",
20
- icon: o.icon,
21
- size: o.size,
22
- rounded: "full",
23
- title: o.tooltip,
24
- class: i(t.class),
20
+ icon: t.icon,
21
+ size: t.size,
22
+ title: t.tooltip,
23
+ class: i(o.class),
25
24
  onClick: a
26
25
  }, null, 8, ["icon", "size", "title", "class"]));
27
26
  }
@@ -1,7 +1,7 @@
1
1
  import o from "./Breadcrumb.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-4ca31ff0"]]);
4
+ const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-d1e90135"]]);
5
5
  export {
6
- m as default
6
+ e as default
7
7
  };
@@ -13,11 +13,11 @@ declare function __VLS_template(): {
13
13
  };
14
14
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
15
  declare const __VLS_component: import('vue').DefineComponent<ExtendedProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
16
- click: (event: MouseEvent) => any;
17
16
  delete: (event: MouseEvent) => any;
17
+ click: (event: MouseEvent) => any;
18
18
  }, string, import('vue').PublicProps, Readonly<ExtendedProps> & Readonly<{
19
- onClick?: (event: MouseEvent) => any;
20
19
  onDelete?: (event: MouseEvent) => any;
20
+ onClick?: (event: MouseEvent) => any;
21
21
  }>, {
22
22
  text: string;
23
23
  variant: ChipVariant | string;
@@ -28,10 +28,10 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
28
28
  onChange?: (value: string | number | (string | number)[]) => any;
29
29
  "onUpdate:modelValue"?: (value: string | number | (string | number)[]) => any;
30
30
  }>, {
31
+ grid: number;
31
32
  disabled: boolean;
32
33
  multiple: boolean;
33
34
  modelValue: string | number | (string | number)[] | null;
34
- grid: number;
35
35
  gap: number;
36
36
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
37
37
  export default _default;
@@ -18,15 +18,15 @@ declare function __VLS_template(): {
18
18
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
19
  declare const __VLS_component: import('vue').DefineComponent<DataTableProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
20
20
  select: (state: SelectionState) => any;
21
- change: (state: TableState) => any;
22
21
  delete: (rows: any[]) => any;
22
+ change: (state: TableState) => any;
23
23
  "update:itemsPerPage": (value: number) => any;
24
24
  rowClick: (payload: RowClickPayload) => any;
25
25
  "update:selectedRows": (value: any[]) => any;
26
26
  }, string, import('vue').PublicProps, Readonly<DataTableProps> & Readonly<{
27
27
  onSelect?: (state: SelectionState) => any;
28
- onChange?: (state: TableState) => any;
29
28
  onDelete?: (rows: any[]) => any;
29
+ onChange?: (state: TableState) => any;
30
30
  "onUpdate:itemsPerPage"?: (value: number) => any;
31
31
  onRowClick?: (payload: RowClickPayload) => any;
32
32
  "onUpdate:selectedRows"?: (value: any[]) => any;
@@ -1,9 +1,11 @@
1
+ import { EmptyVariant } from '.';
1
2
  interface Props {
2
3
  title?: string;
3
4
  titleI18n?: string;
4
5
  description?: string;
5
6
  descriptionI18n?: string;
6
7
  icon?: string;
8
+ variant?: EmptyVariant;
7
9
  }
8
10
  declare function __VLS_template(): {
9
11
  attrs: Partial<{}>;
@@ -1,47 +1,64 @@
1
- import { defineComponent as d, computed as o, openBlock as a, createElementBlock as p, createElementVNode as i, createVNode as u, toDisplayString as f, renderSlot as s } from "vue";
2
- import m from "../Icon.vue.js";
3
- import { $t as n } from "../../utils/i18n.js";
4
- const h = { class: "flex flex-col items-center justify-center py-28 gap-5 rounded-3xl border border-gray-150 bg-muted/50 w-full mt-4" }, y = { class: "w-17 h-17 rounded-full bg-gray-200/60 border border-gray-250 shadow-inner flex items-center justify-center" }, g = { class: "text-center space-y-1" }, _ = { class: "text-fs-5 font-semibold text-foreground tracking-tight" }, x = ["innerHTML"], k = /* @__PURE__ */ d({
1
+ import { defineComponent as f, computed as n, defineAsyncComponent as t, openBlock as s, createElementBlock as y, createBlock as h, resolveDynamicComponent as C, createSlots as I, withCtx as p, renderSlot as c } from "vue";
2
+ import { $t as r } from "../../utils/i18n.js";
3
+ import { useVLiteConfig as g } from "../../core/config.js";
4
+ const k = { class: "flex items-center justify-center min-h-[500px] w-full py-16 px-6" }, B = /* @__PURE__ */ f({
5
5
  __name: "Empty",
6
6
  props: {
7
7
  title: {},
8
8
  titleI18n: {},
9
9
  description: {},
10
10
  descriptionI18n: {},
11
- icon: { default: "lucide:inbox" }
11
+ icon: { default: "lucide:inbox" },
12
+ variant: {}
12
13
  },
13
- setup(r) {
14
- const t = r, l = o(() => {
15
- if (t.titleI18n) return n(t.titleI18n);
16
- if (t.title) return t.title;
17
- const e = n("vlite.empty.title");
14
+ setup(o) {
15
+ const i = o, l = g(), m = n(() => i.variant || l?.components?.empty?.variant || "variant1"), v = n(() => {
16
+ if (i.titleI18n) return r(i.titleI18n);
17
+ if (i.title) return i.title;
18
+ const e = r("vlite.empty.title");
18
19
  return e !== "vlite.empty.title" ? e : "No data found";
19
- }), c = o(() => {
20
- if (t.descriptionI18n) return n(t.descriptionI18n);
21
- if (t.description) return t.description;
22
- const e = n("vlite.empty.description");
20
+ }), d = n(() => {
21
+ if (i.descriptionI18n) return r(i.descriptionI18n);
22
+ if (i.description) return i.description;
23
+ const e = r("vlite.empty.description");
23
24
  return e !== "vlite.empty.description" ? e : "There is nothing to display here right now.";
24
- });
25
- return (e, v) => (a(), p("div", h, [
26
- i("div", y, [
27
- u(m, {
28
- icon: r.icon,
29
- class: "w-7 h-7 text-muted-foreground",
30
- "stroke-width": "1.2"
31
- }, null, 8, ["icon"])
32
- ]),
33
- i("div", g, [
34
- i("h3", _, f(l.value), 1),
35
- i("p", {
36
- class: "text-sm text-gray-700 font-light leading-relaxed",
37
- innerHTML: c.value
38
- }, null, 8, x)
39
- ]),
40
- s(e.$slots, "action"),
41
- s(e.$slots, "default")
25
+ }), a = {
26
+ variant1: t(() => import("./variants/Variant1.vue.js")),
27
+ variant2: t(() => import("./variants/Variant2.vue.js")),
28
+ variant3: t(() => import("./variants/Variant3.vue.js")),
29
+ variant4: t(() => import("./variants/Variant4.vue.js")),
30
+ variant5: t(() => import("./variants/Variant5.vue.js")),
31
+ variant6: t(() => import("./variants/Variant6.vue.js")),
32
+ variant7: t(() => import("./variants/Variant7.vue.js")),
33
+ variant8: t(() => import("./variants/Variant8.vue.js")),
34
+ variant9: t(() => import("./variants/Variant9.vue.js")),
35
+ variant10: t(() => import("./variants/Variant10.vue.js")),
36
+ variant11: t(() => import("./variants/Variant11.vue.js"))
37
+ }, u = n(
38
+ () => a[m.value] || a.variant1
39
+ );
40
+ return (e, x) => (s(), y("div", k, [
41
+ (s(), h(C(u.value), {
42
+ title: v.value,
43
+ description: d.value,
44
+ icon: o.icon
45
+ }, I({
46
+ default: p(() => [
47
+ c(e.$slots, "default")
48
+ ]),
49
+ _: 2
50
+ }, [
51
+ e.$slots.action ? {
52
+ name: "action",
53
+ fn: p(() => [
54
+ c(e.$slots, "action")
55
+ ]),
56
+ key: "0"
57
+ } : void 0
58
+ ]), 1032, ["title", "description", "icon"]))
42
59
  ]));
43
60
  }
44
61
  });
45
62
  export {
46
- k as default
63
+ B as default
47
64
  };
@@ -1 +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';
@@ -0,0 +1,22 @@
1
+ type __VLS_Props = {
2
+ title: string;
3
+ description: string;
4
+ icon: string;
5
+ };
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ action?(_: {}): any;
10
+ };
11
+ refs: {};
12
+ rootEl: HTMLDivElement;
13
+ };
14
+ 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>;
16
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
+ export default _default;
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./Variant1.vue2.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,30 @@
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-6 p-6 rounded-4xl 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({
4
+ __name: "Variant1",
5
+ props: {
6
+ title: {},
7
+ description: {},
8
+ icon: {}
9
+ },
10
+ setup(e) {
11
+ return (o, h) => (s(), i("div", d, [
12
+ t("div", m, [
13
+ r(a, {
14
+ icon: e.icon,
15
+ class: "w-8 h-8 text-foreground",
16
+ "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-8 leading-relaxed font-normal",
22
+ innerHTML: e.description
23
+ }, null, 8, f),
24
+ l(o.$slots, "action")
25
+ ]));
26
+ }
27
+ });
28
+ export {
29
+ _ as default
30
+ };
@@ -0,0 +1,22 @@
1
+ type __VLS_Props = {
2
+ title: string;
3
+ description: string;
4
+ icon: string;
5
+ };
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ action?(_: {}): any;
10
+ };
11
+ refs: {};
12
+ rootEl: HTMLDivElement;
13
+ };
14
+ 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>;
16
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
+ export default _default;
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./Variant10.vue2.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,37 @@
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({
7
+ __name: "Variant10",
8
+ props: {
9
+ title: {},
10
+ description: {},
11
+ icon: {}
12
+ },
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",
20
+ "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)
31
+ ])
32
+ ]));
33
+ }
34
+ });
35
+ export {
36
+ y as default
37
+ };
@@ -0,0 +1,22 @@
1
+ type __VLS_Props = {
2
+ title: string;
3
+ description: string;
4
+ icon: string;
5
+ };
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ action?(_: {}): any;
10
+ };
11
+ refs: {};
12
+ rootEl: HTMLDivElement;
13
+ };
14
+ 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>;
16
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
+ export default _default;
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./Variant11.vue2.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,29 @@
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({
3
+ __name: "Variant11",
4
+ props: {
5
+ title: {},
6
+ description: {},
7
+ icon: {}
8
+ },
9
+ 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",
21
+ innerHTML: e.description
22
+ }, null, 8, f),
23
+ a(i.$slots, "action")
24
+ ]));
25
+ }
26
+ });
27
+ export {
28
+ p as default
29
+ };
@@ -0,0 +1,22 @@
1
+ type __VLS_Props = {
2
+ title: string;
3
+ description: string;
4
+ icon: string;
5
+ };
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ action?(_: {}): any;
10
+ };
11
+ refs: {};
12
+ rootEl: HTMLDivElement;
13
+ };
14
+ 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>;
16
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
+ export default _default;
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./Variant2.vue2.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,33 @@
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({
4
+ __name: "Variant2",
5
+ props: {
6
+ title: {},
7
+ description: {},
8
+ icon: {}
9
+ },
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"])
17
+ ]),
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
+ ]));
29
+ }
30
+ });
31
+ export {
32
+ k as default
33
+ };
@@ -0,0 +1,22 @@
1
+ type __VLS_Props = {
2
+ title: string;
3
+ description: string;
4
+ icon: string;
5
+ };
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ action?(_: {}): any;
10
+ };
11
+ refs: {};
12
+ rootEl: HTMLDivElement;
13
+ };
14
+ 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>;
16
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
+ export default _default;
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./Variant3.vue2.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,25 @@
1
+ import { defineComponent as r, openBlock as s, createElementBlock as i, createElementVNode as t, toDisplayString as l, renderSlot as a } from "vue";
2
+ const d = { class: "flex flex-col items-center text-center w-full group py-8" }, c = { class: "overflow-hidden mb-6" }, u = { class: "text-6xl md:text-7xl font-black tracking-tighter text-foreground uppercase leading-[0.85] transition-transform duration-700 group-hover:-translate-y-2" }, p = ["innerHTML"], f = /* @__PURE__ */ r({
3
+ __name: "Variant3",
4
+ props: {
5
+ title: {},
6
+ description: {},
7
+ icon: {}
8
+ },
9
+ setup(e) {
10
+ return (n, o) => (s(), i("div", d, [
11
+ t("div", c, [
12
+ t("h3", u, l(e.title), 1)
13
+ ]),
14
+ o[0] || (o[0] = t("div", { class: "h-1.5 w-16 rounded-full bg-foreground/20 mb-8 transition-all duration-500 group-hover:w-24 group-hover:bg-foreground" }, null, -1)),
15
+ t("p", {
16
+ class: "text-xs text-muted font-bold tracking-[0.2em] uppercase max-w-sm mb-12",
17
+ innerHTML: e.description
18
+ }, null, 8, p),
19
+ a(n.$slots, "action")
20
+ ]));
21
+ }
22
+ });
23
+ export {
24
+ f as default
25
+ };
@@ -0,0 +1,22 @@
1
+ type __VLS_Props = {
2
+ title: string;
3
+ description: string;
4
+ icon: string;
5
+ };
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ action?(_: {}): any;
10
+ };
11
+ refs: {};
12
+ rootEl: HTMLDivElement;
13
+ };
14
+ 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>;
16
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
+ export default _default;
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./Variant4.vue2.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,33 @@
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({
6
+ __name: "Variant4",
7
+ props: {
8
+ title: {},
9
+ description: {},
10
+ icon: {}
11
+ },
12
+ 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",
22
+ innerHTML: t.description
23
+ }, null, 8, f),
24
+ l.$slots.action ? (n(), o("div", p, [
25
+ a(l.$slots, "action")
26
+ ])) : c("", !0)
27
+ ])
28
+ ]));
29
+ }
30
+ });
31
+ export {
32
+ g as default
33
+ };
@@ -0,0 +1,22 @@
1
+ type __VLS_Props = {
2
+ title: string;
3
+ description: string;
4
+ icon: string;
5
+ };
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ action?(_: {}): any;
10
+ };
11
+ refs: {};
12
+ rootEl: HTMLDivElement;
13
+ };
14
+ 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>;
16
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
+ export default _default;
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./Variant5.vue2.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,33 @@
1
+ import { defineComponent as r, openBlock as n, createElementBlock as o, createVNode as i, createElementVNode as s, toDisplayString as c, 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 border border-transparent bg-muted/20" }, u = { class: "text-lg font-medium text-foreground" }, f = ["innerHTML"], x = {
4
+ key: 0,
5
+ class: "mt-8"
6
+ }, b = /* @__PURE__ */ r({
7
+ __name: "Variant5",
8
+ props: {
9
+ title: {},
10
+ description: {},
11
+ icon: {}
12
+ },
13
+ setup(e) {
14
+ return (t, p) => (n(), o("div", d, [
15
+ i(a, {
16
+ icon: e.icon,
17
+ class: "mb-5 h-12 w-12 text-muted",
18
+ "stroke-width": "1.2"
19
+ }, null, 8, ["icon"]),
20
+ s("h3", u, c(e.title), 1),
21
+ s("p", {
22
+ class: "mt-2 text-sm text-muted max-w-sm mx-auto",
23
+ innerHTML: e.description
24
+ }, null, 8, f),
25
+ t.$slots.action ? (n(), o("div", x, [
26
+ l(t.$slots, "action")
27
+ ])) : m("", !0)
28
+ ]));
29
+ }
30
+ });
31
+ export {
32
+ b as default
33
+ };