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.
- package/components/Button.vue.js +36 -36
- package/components/DataTable/DataTable.vue.d.ts +1 -1
- package/components/Dropdown/Dropdown.vue.js +17 -16
- package/components/Dropdown/DropdownMenu.vue.js +1 -1
- package/components/Dropdown/DropdownMenu.vue2.js +64 -64
- package/components/FileTree/FileTree.vue.d.ts +17 -1
- package/components/FileTree/FileTree.vue.js +1 -1
- package/components/FileTree/FileTree.vue2.js +54 -44
- package/components/FileTree/FileTreeNode.vue.d.ts +22 -2
- package/components/FileTree/FileTreeNode.vue.js +119 -94
- package/components/FileTree/types.d.ts +2 -0
- package/components/Form/Form.vue.d.ts +2 -0
- package/components/Form/Form.vue.js +2 -2
- package/components/Form/Form.vue2.js +258 -229
- package/components/Form/FormField.vue.js +5 -4
- package/components/Form/FormFields.vue.d.ts +18 -1
- package/components/Form/FormFields.vue.js +2 -2
- package/components/Form/FormFields.vue2.js +117 -105
- package/components/Form/types.d.ts +2 -0
- package/components/ImportData/ImportData.vue.js +3 -2
- package/components/NavbarCommandPalette.vue.d.ts +1 -1
- package/components/Pagination/Pagination.vue.d.ts +1 -0
- package/components/Pagination/Pagination.vue.js +121 -119
- package/components/Pagination/index.d.ts +1 -0
- package/components/Persona.vue.js +134 -0
- package/components/Persona.vue2.js +4 -0
- package/components/Screen/Screen.vue.d.ts +2 -0
- package/components/Screen/Screen.vue.js +160 -157
- package/components/Stats/Stats.vue.d.ts +1 -1
- package/components/Stats/Stats.vue.js +50 -22
- package/components/Stats/Stats.vue3.js +5 -0
- package/components/StatusChip/status-map.js +1 -0
- package/components/Switch.vue.d.ts +3 -0
- package/components/Switch.vue.js +13 -9
- package/components/Tabes/Tabes.vue.js +2 -2
- package/components/Timeline/TimelineItem.vue.js +74 -91
- package/index.d.ts +1 -0
- package/index.js +382 -379
- package/package.json +2 -2
- package/style.css +18 -4
- package/components/Stats/Stats.vue2.js +0 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
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
|
|
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
|
|
21
|
-
const
|
|
22
|
-
return
|
|
23
|
-
}),
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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
|
-
(
|
|
38
|
-
|
|
39
|
-
|
|
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
|
-
|
|
82
|
+
b as default
|
|
55
83
|
};
|
|
@@ -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>;
|
package/components/Switch.vue.js
CHANGED
|
@@ -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" },
|
|
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
|
-
},
|
|
6
|
+
}, p = {
|
|
7
7
|
key: 1,
|
|
8
8
|
class: "text-xs text-muted-foreground leading-snug select-none"
|
|
9
|
-
},
|
|
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
|
|
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",
|
|
36
|
-
c.value ? (n(), s("span",
|
|
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,
|
|
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,
|
|
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
|
-
|
|
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
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5194579a"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,27 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import h from "
|
|
3
|
-
import
|
|
4
|
-
import { $t as
|
|
5
|
-
const
|
|
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
|
-
},
|
|
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
|
-
},
|
|
14
|
+
}, q = {
|
|
18
15
|
key: 0,
|
|
19
16
|
class: "text-xs text-muted-foreground mt-1"
|
|
20
|
-
},
|
|
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
|
-
},
|
|
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(
|
|
39
|
-
const n =
|
|
40
|
-
n.clickable &&
|
|
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 (
|
|
39
|
+
return (e, F) => S.value ? (s(), l("li", {
|
|
43
40
|
key: 0,
|
|
44
|
-
class: o(["relative flex w-full",
|
|
45
|
-
onClick:
|
|
41
|
+
class: o(["relative flex w-full", t.clickable ? "cursor-pointer" : ""]),
|
|
42
|
+
onClick: f
|
|
46
43
|
}, [
|
|
47
|
-
i("div",
|
|
48
|
-
y(
|
|
49
|
-
status:
|
|
50
|
-
type:
|
|
51
|
-
index:
|
|
52
|
-
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
|
-
|
|
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
|
-
|
|
58
|
-
|
|
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",
|
|
60
|
+
class: o(["flex-1 flex flex-col pt-0.5", t.isLast ? "pb-0" : "pb-5"])
|
|
64
61
|
}, [
|
|
65
|
-
a(
|
|
66
|
-
step:
|
|
67
|
-
index:
|
|
62
|
+
a(e.$slots, "content", {
|
|
63
|
+
step: t.step,
|
|
64
|
+
index: t.index
|
|
68
65
|
}, () => [
|
|
69
|
-
i("div",
|
|
70
|
-
i("div",
|
|
66
|
+
i("div", T, [
|
|
67
|
+
i("div", V, [
|
|
71
68
|
i("div", null, [
|
|
72
|
-
a(
|
|
73
|
-
step:
|
|
74
|
-
index:
|
|
69
|
+
a(e.$slots, "title", {
|
|
70
|
+
step: t.step,
|
|
71
|
+
index: t.index
|
|
75
72
|
}, () => [
|
|
76
|
-
i("h4", D, d(
|
|
73
|
+
i("h4", D, d(u(t.step)), 1)
|
|
77
74
|
]),
|
|
78
|
-
a(
|
|
79
|
-
step:
|
|
80
|
-
index:
|
|
75
|
+
a(e.$slots, "subtitle", {
|
|
76
|
+
step: t.step,
|
|
77
|
+
index: t.index
|
|
81
78
|
}, () => [
|
|
82
|
-
|
|
79
|
+
t.step.subtitle || t.step.subtitleI18n ? (s(), l("p", N, d(w(t.step)), 1)) : c("", !0)
|
|
83
80
|
])
|
|
84
81
|
]),
|
|
85
|
-
|
|
86
|
-
a(
|
|
87
|
-
step:
|
|
88
|
-
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
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
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",
|
|
112
|
-
a(
|
|
113
|
-
step:
|
|
114
|
-
index:
|
|
94
|
+
i("div", z, [
|
|
95
|
+
a(e.$slots, "body", {
|
|
96
|
+
step: t.step,
|
|
97
|
+
index: t.index
|
|
115
98
|
}, () => [
|
|
116
|
-
|
|
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:
|
|
107
|
+
onClick: f,
|
|
125
108
|
class: o([
|
|
126
109
|
"relative",
|
|
127
|
-
|
|
128
|
-
|
|
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
|
-
|
|
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(
|
|
138
|
-
status:
|
|
139
|
-
type:
|
|
140
|
-
index:
|
|
141
|
-
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
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
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(
|
|
153
|
-
step:
|
|
154
|
-
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",
|
|
158
|
-
}, d(
|
|
159
|
-
|
|
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
|
-
|
|
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",
|
|
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
|
-
|
|
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';
|