vlite3 1.3.3 → 1.3.5

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 (41) hide show
  1. package/components/Button.vue.js +36 -36
  2. package/components/DataTable/DataTable.vue.d.ts +1 -1
  3. package/components/Dropdown/Dropdown.vue.js +17 -16
  4. package/components/Dropdown/DropdownMenu.vue.js +1 -1
  5. package/components/Dropdown/DropdownMenu.vue2.js +64 -64
  6. package/components/FileTree/FileTree.vue.d.ts +17 -1
  7. package/components/FileTree/FileTree.vue.js +1 -1
  8. package/components/FileTree/FileTree.vue2.js +54 -44
  9. package/components/FileTree/FileTreeNode.vue.d.ts +22 -2
  10. package/components/FileTree/FileTreeNode.vue.js +119 -94
  11. package/components/FileTree/types.d.ts +2 -0
  12. package/components/Form/Form.vue.d.ts +2 -0
  13. package/components/Form/Form.vue.js +2 -2
  14. package/components/Form/Form.vue2.js +258 -229
  15. package/components/Form/FormField.vue.js +5 -4
  16. package/components/Form/FormFields.vue.d.ts +18 -1
  17. package/components/Form/FormFields.vue.js +2 -2
  18. package/components/Form/FormFields.vue2.js +117 -105
  19. package/components/Form/types.d.ts +2 -0
  20. package/components/ImportData/ImportData.vue.js +3 -2
  21. package/components/NavbarCommandPalette.vue.d.ts +1 -1
  22. package/components/Pagination/Pagination.vue.d.ts +1 -0
  23. package/components/Pagination/Pagination.vue.js +121 -119
  24. package/components/Pagination/index.d.ts +1 -0
  25. package/components/Persona.vue.js +134 -0
  26. package/components/Persona.vue2.js +4 -0
  27. package/components/Screen/Screen.vue.d.ts +2 -0
  28. package/components/Screen/Screen.vue.js +160 -157
  29. package/components/Stats/Stats.vue.d.ts +1 -1
  30. package/components/Stats/Stats.vue.js +50 -22
  31. package/components/Stats/Stats.vue3.js +5 -0
  32. package/components/StatusChip/status-map.js +1 -0
  33. package/components/Switch.vue.d.ts +3 -0
  34. package/components/Switch.vue.js +13 -9
  35. package/components/Tabes/Tabes.vue.js +2 -2
  36. package/components/Timeline/TimelineItem.vue.js +74 -91
  37. package/index.d.ts +1 -0
  38. package/index.js +382 -379
  39. package/package.json +2 -2
  40. package/style.css +18 -4
  41. package/components/Stats/Stats.vue2.js +0 -4
@@ -1,6 +1,6 @@
1
- import { defineComponent as s, computed as n, openBlock as l, createElementBlock as r, normalizeClass as u, Fragment as g, renderList as f, createBlock as m } from "vue";
1
+ import { defineComponent as h, computed as n, openBlock as i, createElementBlock as r, normalizeClass as d, createElementVNode as x, Fragment as u, renderList as s, createBlock as g } from "vue";
2
2
  import v from "./StatItem.vue.js";
3
- const x = /* @__PURE__ */ s({
3
+ const b = /* @__PURE__ */ h({
4
4
  __name: "Stats",
5
5
  props: {
6
6
  items: {},
@@ -17,26 +17,54 @@ const x = /* @__PURE__ */ s({
17
17
  class: { default: "" }
18
18
  },
19
19
  setup(e) {
20
- const t = e, o = n(() => {
21
- const a = Number(t.columns) || 4;
22
- return a === 1 ? "grid-cols-1" : a === 2 ? "grid-cols-1 sm:grid-cols-2" : a === 3 ? "grid-cols-1 sm:grid-cols-3" : a === 4 ? "grid-cols-1 sm:grid-cols-2 lg:grid-cols-4" : a === 5 ? "grid-cols-1 sm:grid-cols-3 lg:grid-cols-5" : a === 6 ? "grid-cols-1 sm:grid-cols-3 lg:grid-cols-6" : "grid-cols-1 sm:grid-cols-2 lg:grid-cols-4";
23
- }), d = n(() => {
24
- const a = t.attached && t.variant !== "transparent" ? "border-t border-l border-border overflow-hidden" : "overflow-hidden";
25
- return [
26
- "grid",
27
- o.value,
28
- t.attached ? `gap-0 ${a}` : t.variant === "transparent-header" ? "gap-2 md:gap-3.5" : "gap-3 sm:gap-4.5",
29
- t.variant === "shadow" && t.attached ? "shadow-md" : "",
30
- t?.layout === "inline-label-value" ? "rounded-sm" : "",
31
- t.class
32
- ].join(" ");
33
- });
34
- return (a, S) => (l(), r("div", {
35
- class: u(d.value)
20
+ const a = e, c = n(() => {
21
+ const t = Number(a.columns) || 4;
22
+ return t === 1 ? "grid-cols-1" : t === 2 ? "grid-cols-1 sm:grid-cols-2" : t === 3 ? "grid-cols-1 sm:grid-cols-3" : t === 4 ? "grid-cols-1 sm:grid-cols-2 lg:grid-cols-4" : t === 5 ? "grid-cols-1 sm:grid-cols-3 lg:grid-cols-5" : t === 6 ? "grid-cols-1 sm:grid-cols-3 lg:grid-cols-6" : "grid-cols-1 sm:grid-cols-2 lg:grid-cols-4";
23
+ }), S = n(() => [
24
+ "grid",
25
+ c.value,
26
+ a.variant === "transparent-header" ? "gap-2 md:gap-3.5" : "gap-3 sm:gap-4.5",
27
+ a?.layout === "inline-label-value" ? "rounded-sm" : "",
28
+ a.class
29
+ ].join(" ")), m = n(() => [
30
+ a.layout === "inline-label-value" ? "rounded-sm" : "rounded-lg",
31
+ "overflow-hidden",
32
+ a.variant !== "transparent" ? "border border-border" : "",
33
+ a.variant === "shadow" ? "shadow-md bg-card" : "",
34
+ a.class
35
+ ].join(" ")), f = n(() => [
36
+ "grid",
37
+ c.value,
38
+ "w-[calc(100%+1px)] -mb-px -mr-px gap-0"
39
+ ].join(" "));
40
+ return (t, y) => e.attached ? (i(), r("div", {
41
+ key: 0,
42
+ class: d(m.value)
36
43
  }, [
37
- (l(!0), r(g, null, f(e.items, (i, c) => (l(), m(v, {
38
- key: i.id || c,
39
- item: i,
44
+ x("div", {
45
+ class: d(f.value)
46
+ }, [
47
+ (i(!0), r(u, null, s(e.items, (l, o) => (i(), g(v, {
48
+ key: l.id || o,
49
+ item: l,
50
+ variant: e.variant.startsWith("transparent") ? "transparent" : e.variant,
51
+ layout: e.variant === "transparent-header" ? "centered-value-title" : e.layout,
52
+ attached: e.attached,
53
+ loading: e.loading,
54
+ titleSize: e.variant === "transparent-header" && !e.titleSize ? "text-sm font-normal! text-gray-900" : e.titleSize,
55
+ valueSize: e.variant === "transparent-header" && !e.valueSize ? "text-lg font-bold text-gray-900" : e.valueSize,
56
+ iconSize: e.iconSize,
57
+ iconBoxShape: e.iconBoxShape,
58
+ iconBoxStyle: e.iconBoxStyle
59
+ }, null, 8, ["item", "variant", "layout", "attached", "loading", "titleSize", "valueSize", "iconSize", "iconBoxShape", "iconBoxStyle"]))), 128))
60
+ ], 2)
61
+ ], 2)) : (i(), r("div", {
62
+ key: 1,
63
+ class: d(S.value)
64
+ }, [
65
+ (i(!0), r(u, null, s(e.items, (l, o) => (i(), g(v, {
66
+ key: l.id || o,
67
+ item: l,
40
68
  variant: e.variant.startsWith("transparent") ? "transparent" : e.variant,
41
69
  layout: e.variant === "transparent-header" ? "centered-value-title" : e.layout,
42
70
  attached: e.attached,
@@ -51,5 +79,5 @@ const x = /* @__PURE__ */ s({
51
79
  }
52
80
  });
53
81
  export {
54
- x as default
82
+ b as default
55
83
  };
@@ -0,0 +1,5 @@
1
+ import o from "./Stats.vue.js";
2
+ /* empty css */
3
+ export {
4
+ o as default
5
+ };
@@ -94,6 +94,7 @@ const o = {
94
94
  disabled: { variant: "secondary", icon: "lucide:toggle-left" },
95
95
  void: { variant: "secondary", icon: "lucide:ban" },
96
96
  refunded: { variant: "pink", icon: "lucide:corner-up-left" },
97
+ reversed: { variant: "pink", icon: "lucide:rotate-ccw" },
97
98
  outofstock: { variant: "danger", icon: "lucide:package-x" },
98
99
  absent: { variant: "danger", icon: "lucide:user-x" },
99
100
  offline: { variant: "secondary", icon: "lucide:wifi-off" },
@@ -1,3 +1,4 @@
1
+ import { InputSize } from '../types';
1
2
  type SwitchVariant = 'basic' | 'card';
2
3
  interface Props {
3
4
  modelValue?: boolean;
@@ -7,6 +8,7 @@ interface Props {
7
8
  description?: string;
8
9
  descriptionI18n?: string;
9
10
  variant?: SwitchVariant;
11
+ size?: InputSize;
10
12
  class?: string;
11
13
  id?: string;
12
14
  }
@@ -17,6 +19,7 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
17
19
  }>, {
18
20
  class: string;
19
21
  variant: SwitchVariant;
22
+ size: InputSize;
20
23
  disabled: boolean;
21
24
  modelValue: boolean;
22
25
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as h, computed as b, openBlock as n, createElementBlock as s, normalizeClass as i, createElementVNode as o, toDisplayString as d, createCommentVNode as u, withModifiers as v } from "vue";
2
2
  import { $t as m } from "../utils/i18n.js";
3
- const w = { class: "flex flex-col gap-0.5 min-w-0" }, p = {
3
+ const w = { class: "flex flex-col gap-0.5 min-w-0" }, k = {
4
4
  key: 0,
5
5
  class: "text-sm font-medium text-foreground leading-snug select-none"
6
- }, k = {
6
+ }, p = {
7
7
  key: 1,
8
8
  class: "text-xs text-muted-foreground leading-snug select-none"
9
- }, y = ["id", "aria-checked", "aria-label", "disabled", "data-testid"], x = ["id", "aria-checked", "aria-label", "disabled", "data-testid"], I = /* @__PURE__ */ h({
9
+ }, x = ["id", "aria-checked", "aria-label", "disabled", "data-testid"], y = ["id", "aria-checked", "aria-label", "disabled", "data-testid"], z = /* @__PURE__ */ h({
10
10
  __name: "Switch",
11
11
  props: {
12
12
  modelValue: { type: Boolean, default: !1 },
@@ -16,6 +16,7 @@ const w = { class: "flex flex-col gap-0.5 min-w-0" }, p = {
16
16
  description: {},
17
17
  descriptionI18n: {},
18
18
  variant: { default: "basic" },
19
+ size: { default: "md" },
19
20
  class: { default: "" },
20
21
  id: {}
21
22
  },
@@ -28,12 +29,15 @@ const w = { class: "flex flex-col gap-0.5 min-w-0" }, p = {
28
29
  );
29
30
  return (l, $) => e.variant === "card" ? (n(), s("div", {
30
31
  key: 0,
31
- class: i(["flex items-center justify-between gap-4 w-full rounded-md border border-border bg-background px-4 py-3 cursor-pointer", e.disabled ? "opacity-50 pointer-events-none" : ""]),
32
+ class: i(["flex items-center justify-between gap-4 w-full rounded-md border border-border bg-background px-4 cursor-pointer", [
33
+ e.size === "sm" ? "h-7.5 px-3" : e.size === "lg" ? "h-10 px-4" : "h-9 px-4",
34
+ e.disabled ? "opacity-50 pointer-events-none" : ""
35
+ ]]),
32
36
  onClick: r
33
37
  }, [
34
38
  o("div", w, [
35
- t.value ? (n(), s("span", p, d(t.value), 1)) : u("", !0),
36
- c.value ? (n(), s("span", k, d(c.value), 1)) : u("", !0)
39
+ t.value ? (n(), s("span", k, d(t.value), 1)) : u("", !0),
40
+ c.value ? (n(), s("span", p, d(c.value), 1)) : u("", !0)
37
41
  ]),
38
42
  o("button", {
39
43
  id: e.id,
@@ -53,7 +57,7 @@ const w = { class: "flex flex-col gap-0.5 min-w-0" }, p = {
53
57
  e.modelValue ? "translate-x-5 rtl:translate-x-0" : "translate-x-0 rtl:-translate-x-5"
54
58
  ])
55
59
  }, null, 2)
56
- ], 10, y)
60
+ ], 10, x)
57
61
  ], 2)) : (n(), s("div", {
58
62
  key: 1,
59
63
  class: i(["inline-flex items-center gap-2", a.class])
@@ -76,7 +80,7 @@ const w = { class: "flex flex-col gap-0.5 min-w-0" }, p = {
76
80
  e.modelValue ? "translate-x-5 rtl:translate-x-0" : "translate-x-0 rtl:-translate-x-5"
77
81
  ])
78
82
  }, null, 2)
79
- ], 10, x),
83
+ ], 10, y),
80
84
  t.value ? (n(), s("label", {
81
85
  key: 0,
82
86
  class: i([e.disabled ? "opacity-50" : "", "text-sm font-medium text-foreground cursor-pointer"]),
@@ -86,5 +90,5 @@ const w = { class: "flex flex-col gap-0.5 min-w-0" }, p = {
86
90
  }
87
91
  });
88
92
  export {
89
- I as default
93
+ z as default
90
94
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./Tabes.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d8420cf9"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5194579a"]]);
5
5
  export {
6
- m as default
6
+ p as default
7
7
  };
@@ -1,27 +1,24 @@
1
- import { defineComponent as C, computed as g, openBlock as s, createElementBlock as l, normalizeClass as o, createElementVNode as i, createVNode as y, createCommentVNode as c, renderSlot as a, toDisplayString as d, createBlock as u, createTextVNode as P, resolveDynamicComponent as I, normalizeProps as $, mergeProps as T } from "vue";
2
- import h from "../Icon.vue.js";
3
- import k from "./TimelineIndicator.vue.js";
4
- import { $t as m } from "../../utils/i18n.js";
5
- const B = { class: "flex flex-col items-center shrink-0 mr-4 w-9" }, V = { class: "flex flex-col gap-1" }, N = { class: "flex justify-between items-start gap-4" }, D = { class: "text-sm font-semibold text-foreground leading-none" }, j = {
1
+ import { defineComponent as P, computed as b, openBlock as s, createElementBlock as l, normalizeClass as o, createElementVNode as i, createVNode as y, createCommentVNode as c, renderSlot as a, toDisplayString as d, createBlock as g, resolveDynamicComponent as I, normalizeProps as $, mergeProps as L } from "vue";
2
+ import h from "./TimelineIndicator.vue.js";
3
+ import B from "../StatusChip/StatusChip.vue.js";
4
+ import { $t as r } from "../../utils/i18n.js";
5
+ const C = { class: "flex flex-col items-center shrink-0 mr-4 w-9" }, T = { class: "flex flex-col gap-1" }, V = { class: "flex justify-between items-start gap-4" }, D = { class: "text-sm font-semibold text-foreground leading-none" }, N = {
6
6
  key: 0,
7
7
  class: "text-sm text-muted-foreground mt-1"
8
- }, p = {
8
+ }, j = {
9
9
  key: 0,
10
10
  class: "shrink-0"
11
- }, z = {
12
- key: 0,
13
- class: "h-1.5 w-1.5 rounded-full bg-muted-foreground"
14
- }, E = { class: "mt-1" }, q = {
11
+ }, z = { class: "mt-1" }, E = {
15
12
  key: 1,
16
13
  class: "text-sm text-muted-foreground"
17
- }, A = {
14
+ }, q = {
18
15
  key: 0,
19
16
  class: "text-xs text-muted-foreground mt-1"
20
- }, F = {
17
+ }, A = {
21
18
  key: 0,
22
19
  class: "hidden sm:block flex-1 h-0.5 bg-border ml-2",
23
20
  "aria-hidden": "true"
24
- }, O = /* @__PURE__ */ C({
21
+ }, M = /* @__PURE__ */ P({
25
22
  __name: "TimelineItem",
26
23
  props: {
27
24
  step: {},
@@ -35,85 +32,71 @@ const B = { class: "flex flex-col items-center shrink-0 mr-4 w-9" }, V = { class
35
32
  clickable: { type: Boolean }
36
33
  },
37
34
  emits: ["step-click"],
38
- setup(e, { emit: v }) {
39
- const n = e, w = v, S = g(() => n.direction === "vertical"), r = g(() => n.step.progressStatus ? n.step.progressStatus : n.index < n.activeStep ? "completed" : n.index === n.activeStep ? "current" : "upcoming"), x = (t) => t.titleI18n ? m(t.titleI18n) : t.title, L = (t) => t.subtitleI18n ? m(t.subtitleI18n) : t.subtitle, f = (t) => t.descriptionI18n ? m(t.descriptionI18n) : t.description, b = () => {
40
- n.clickable && w("step-click", n.step, n.index);
35
+ setup(t, { emit: v }) {
36
+ const n = t, k = v, S = b(() => n.direction === "vertical"), m = b(() => n.step.progressStatus ? n.step.progressStatus : n.index < n.activeStep ? "completed" : n.index === n.activeStep ? "current" : "upcoming"), u = (e) => e.titleI18n ? r(e.titleI18n) : e.title, w = (e) => e.subtitleI18n ? r(e.subtitleI18n) : e.subtitle, x = (e) => e.descriptionI18n ? r(e.descriptionI18n) : e.description, f = () => {
37
+ n.clickable && k("step-click", n.step, n.index);
41
38
  };
42
- return (t, G) => S.value ? (s(), l("li", {
39
+ return (e, F) => S.value ? (s(), l("li", {
43
40
  key: 0,
44
- class: o(["relative flex w-full", e.clickable ? "cursor-pointer" : ""]),
45
- onClick: b
41
+ class: o(["relative flex w-full", t.clickable ? "cursor-pointer" : ""]),
42
+ onClick: f
46
43
  }, [
47
- i("div", B, [
48
- y(k, {
49
- status: r.value,
50
- type: e.indicatorType,
51
- index: e.index,
52
- icon: e.step.icon
44
+ i("div", C, [
45
+ y(h, {
46
+ status: m.value,
47
+ type: t.indicatorType,
48
+ index: t.index,
49
+ icon: t.step.icon
53
50
  }, null, 8, ["status", "type", "index", "icon"]),
54
- e.isLast ? c("", !0) : (s(), l("div", {
51
+ t.isLast ? c("", !0) : (s(), l("div", {
55
52
  key: 0,
56
53
  class: o(["my-2 flex-1 transition-colors duration-300", [
57
- e.lineStyle === "dashed" ? "w-0 border-l-[1.5px] border-dashed" : "w-0.5",
58
- r.value === "completed" ? e.lineStyle === "dashed" ? "border-primary" : "bg-primary" : e.lineStyle === "dashed" ? "border-border" : "bg-border"
54
+ t.lineStyle === "dashed" ? "w-0 border-l-[1.5px] border-dashed" : "w-0.5",
55
+ m.value === "completed" ? t.lineStyle === "dashed" ? "border-primary" : "bg-primary" : t.lineStyle === "dashed" ? "border-border" : "bg-border"
59
56
  ]])
60
57
  }, null, 2))
61
58
  ]),
62
59
  i("div", {
63
- class: o(["flex-1 flex flex-col pt-0.5", e.isLast ? "pb-0" : "pb-5"])
60
+ class: o(["flex-1 flex flex-col pt-0.5", t.isLast ? "pb-0" : "pb-5"])
64
61
  }, [
65
- a(t.$slots, "content", {
66
- step: e.step,
67
- index: e.index
62
+ a(e.$slots, "content", {
63
+ step: t.step,
64
+ index: t.index
68
65
  }, () => [
69
- i("div", V, [
70
- i("div", N, [
66
+ i("div", T, [
67
+ i("div", V, [
71
68
  i("div", null, [
72
- a(t.$slots, "title", {
73
- step: e.step,
74
- index: e.index
69
+ a(e.$slots, "title", {
70
+ step: t.step,
71
+ index: t.index
75
72
  }, () => [
76
- i("h4", D, d(x(e.step)), 1)
73
+ i("h4", D, d(u(t.step)), 1)
77
74
  ]),
78
- a(t.$slots, "subtitle", {
79
- step: e.step,
80
- index: e.index
75
+ a(e.$slots, "subtitle", {
76
+ step: t.step,
77
+ index: t.index
81
78
  }, () => [
82
- e.step.subtitle || e.step.subtitleI18n ? (s(), l("p", j, d(L(e.step)), 1)) : c("", !0)
79
+ t.step.subtitle || t.step.subtitleI18n ? (s(), l("p", N, d(w(t.step)), 1)) : c("", !0)
83
80
  ])
84
81
  ]),
85
- e.step.status || t.$slots.status ? (s(), l("div", p, [
86
- a(t.$slots, "status", {
87
- step: e.step,
88
- index: e.index
82
+ t.step.status || e.$slots.status ? (s(), l("div", j, [
83
+ a(e.$slots, "status", {
84
+ step: t.step,
85
+ index: t.index
89
86
  }, () => [
90
- i("span", {
91
- class: o(["inline-flex items-center gap-1.5 px-2.5 py-0.5 rounded-full text-xs font-medium border", [
92
- e.step.status?.toLowerCase().includes("approv") || e.step.status?.toLowerCase().includes("complet") ? "bg-success-light text-success-dark border-success/20" : "",
93
- e.step.status?.toLowerCase().includes("pend") ? "bg-muted text-muted-foreground border-border" : "",
94
- e.step.status?.toLowerCase().includes("progress") ? "bg-primary-light text-primary border-primary/20" : ""
95
- ]])
96
- }, [
97
- e.step.status?.toLowerCase().includes("pend") ? (s(), l("span", z)) : e.step.status?.toLowerCase().includes("approv") || e.step.status?.toLowerCase().includes("complet") ? (s(), u(h, {
98
- key: 1,
99
- icon: "lucide:check",
100
- class: "h-3 w-3"
101
- })) : e.step.status?.toLowerCase().includes("progress") ? (s(), u(h, {
102
- key: 2,
103
- icon: "lucide:loader-2",
104
- class: "h-3 w-3 animate-spin"
105
- })) : c("", !0),
106
- P(" " + d(e.step.status), 1)
107
- ], 2)
87
+ t.step.status ? (s(), g(B, {
88
+ key: 0,
89
+ status: t.step.status
90
+ }, null, 8, ["status"])) : c("", !0)
108
91
  ])
109
92
  ])) : c("", !0)
110
93
  ]),
111
- i("div", E, [
112
- a(t.$slots, "body", {
113
- step: e.step,
114
- index: e.index
94
+ i("div", z, [
95
+ a(e.$slots, "body", {
96
+ step: t.step,
97
+ index: t.index
115
98
  }, () => [
116
- e.step.component ? (s(), u(I(e.step.component), $(T({ key: 0 }, e.step.componentProps)), null, 16)) : e.step.description || e.step.descriptionI18n ? (s(), l("p", q, d(f(e.step)), 1)) : c("", !0)
99
+ t.step.component ? (s(), g(I(t.step.component), $(L({ key: 0 }, t.step.componentProps)), null, 16)) : t.step.description || t.step.descriptionI18n ? (s(), l("p", E, d(x(t.step)), 1)) : c("", !0)
117
100
  ])
118
101
  ])
119
102
  ])
@@ -121,47 +104,47 @@ const B = { class: "flex flex-col items-center shrink-0 mr-4 w-9" }, V = { class
121
104
  ], 2)
122
105
  ], 2)) : (s(), l("li", {
123
106
  key: 1,
124
- onClick: b,
107
+ onClick: f,
125
108
  class: o([
126
109
  "relative",
127
- e.clickable ? "cursor-pointer" : "",
128
- e.textPosition === "bottom" ? "flex-none w-8" : "flex-1 last:flex-none"
110
+ t.clickable ? "cursor-pointer" : "",
111
+ t.textPosition === "bottom" ? "flex-none w-8" : "flex-1 last:flex-none"
129
112
  ])
130
113
  }, [
131
114
  i("div", {
132
115
  class: o([
133
116
  "group relative flex",
134
- e.textPosition === "bottom" ? "flex-col items-center justify-center" : "flex-col items-center sm:flex-row sm:items-center sm:gap-2 w-full"
117
+ t.textPosition === "bottom" ? "flex-col items-center justify-center" : "flex-col items-center sm:flex-row sm:items-center sm:gap-2 w-full"
135
118
  ])
136
119
  }, [
137
- y(k, {
138
- status: r.value,
139
- type: e.indicatorType,
140
- index: e.index,
141
- icon: e.step.icon
120
+ y(h, {
121
+ status: m.value,
122
+ type: t.indicatorType,
123
+ index: t.index,
124
+ icon: t.step.icon
142
125
  }, null, 8, ["status", "type", "index", "icon"]),
143
126
  i("span", {
144
127
  class: o([
145
128
  "min-w-[max-content] flex-col hidden sm:flex",
146
- e.textPosition === "bottom" ? "absolute top-10 text-center" : "",
147
- e.textPosition === "bottom" && e.index === 0 ? "left-0 text-left items-start" : "",
148
- e.textPosition === "bottom" && e.isLast ? "right-0 text-right items-end" : "",
149
- e.textPosition === "bottom" && e.index > 0 && !e.isLast ? "left-1/2 -translate-x-1/2 items-center" : ""
129
+ t.textPosition === "bottom" ? "absolute top-10 text-center" : "",
130
+ t.textPosition === "bottom" && t.index === 0 ? "left-0 text-left items-start" : "",
131
+ t.textPosition === "bottom" && t.isLast ? "right-0 text-right items-end" : "",
132
+ t.textPosition === "bottom" && t.index > 0 && !t.isLast ? "left-1/2 -translate-x-1/2 items-center" : ""
150
133
  ])
151
134
  }, [
152
- a(t.$slots, "content", {
153
- step: e.step,
154
- index: e.index
135
+ a(e.$slots, "content", {
136
+ step: t.step,
137
+ index: t.index
155
138
  }, () => [
156
139
  i("span", {
157
- class: o(["text-sm font-medium leading-tight", r.value === "upcoming" ? "text-muted-foreground" : "text-primary"])
158
- }, d(x(e.step)), 3),
159
- e.step.description || e.step.descriptionI18n ? (s(), l("span", A, d(f(e.step)), 1)) : c("", !0)
140
+ class: o(["text-sm font-medium leading-tight", m.value === "upcoming" ? "text-muted-foreground" : "text-primary"])
141
+ }, d(u(t.step)), 3),
142
+ t.step.description || t.step.descriptionI18n ? (s(), l("span", q, d(x(t.step)), 1)) : c("", !0)
160
143
  ])
161
144
  ], 2),
162
- e.textPosition === "right" && !e.isLast ? (s(), l("div", F, [
145
+ t.textPosition === "right" && !t.isLast ? (s(), l("div", A, [
163
146
  i("div", {
164
- class: o(["h-full bg-primary transition-all duration-300", e.index < e.activeStep ? "w-full" : "w-0"])
147
+ class: o(["h-full bg-primary transition-all duration-300", t.index < t.activeStep ? "w-full" : "w-0"])
165
148
  }, null, 2)
166
149
  ])) : c("", !0)
167
150
  ], 2)
@@ -169,5 +152,5 @@ const B = { class: "flex flex-col items-center shrink-0 mr-4 w-9" }, V = { class
169
152
  }
170
153
  });
171
154
  export {
172
- O as default
155
+ M as default
173
156
  };
package/index.d.ts CHANGED
@@ -67,6 +67,7 @@ export { default as Input } from './components/Input.vue';
67
67
  export { default as Label } from './components/Label.vue';
68
68
  export { default as Modal } from './components/Modal.vue';
69
69
  export { default as Avatar } from './components/Avatar.vue';
70
+ export { default as Persona } from './components/Persona.vue';
70
71
  export { default as Button } from './components/Button.vue';
71
72
  export { default as BackButton } from './components/BackButton.vue';
72
73
  export { default as Clipboard } from './components/Clipboard.vue';