vlite3 1.3.4 → 1.3.6
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/Dropdown/Dropdown.vue.js +17 -16
- package/components/Dropdown/DropdownMenu.vue.js +2 -2
- package/components/Dropdown/DropdownMenu.vue2.js +56 -56
- package/components/FileTree/FileTree.vue.d.ts +1 -0
- package/components/FileTree/FileTree.vue.js +3 -3
- package/components/FileTree/FileTree.vue2.js +33 -31
- package/components/FileTree/FileTreeNode.vue.d.ts +2 -0
- package/components/FileTree/FileTreeNode.vue.js +72 -70
- package/components/FileTree/types.d.ts +1 -0
- package/components/Form/Form.vue.d.ts +2 -0
- package/components/Form/Form.vue.js +1 -1
- package/components/Form/Form.vue2.js +258 -229
- package/components/Form/FormFields.vue.d.ts +18 -1
- package/components/Form/FormFields.vue.js +1 -1
- package/components/Form/FormFields.vue2.js +108 -96
- package/components/Form/types.d.ts +2 -0
- package/components/ImportData/ImportData.vue.js +3 -2
- package/components/Input.vue.js +1 -1
- package/components/Modal.vue.js +1 -1
- package/components/Modal.vue2.js +1 -1
- package/components/NavbarCommandPalette.vue.d.ts +1 -1
- package/components/Screen/Screen.vue.d.ts +2 -0
- package/components/Screen/Screen.vue.js +180 -176
- package/components/Stats/Stats.vue.d.ts +1 -1
- package/components/Stats/Stats.vue.js +50 -22
- package/components/StatusChip/status-map.js +1 -0
- package/components/ThemeToggle.vue.d.ts +1 -1
- package/components/ThemeToggle.vue.js +2 -2
- package/components/Timeline/TimelineItem.vue.js +74 -91
- package/composables/useTheme.d.ts +1 -1
- package/composables/useTheme.js +15 -15
- package/package.json +2 -2
- package/style.css +12 -3
|
@@ -11,5 +11,5 @@ declare const _default: import('vue').DefineComponent<StatsProps, {}, {}, {}, {}
|
|
|
11
11
|
iconSize: string;
|
|
12
12
|
titleSize: string;
|
|
13
13
|
valueSize: string;
|
|
14
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
14
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
15
15
|
export default _default;
|
|
@@ -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" },
|
|
@@ -12,7 +12,7 @@ const w = /* @__PURE__ */ m({
|
|
|
12
12
|
},
|
|
13
13
|
setup(t) {
|
|
14
14
|
const { theme: i, toggleTheme: s } = f(), a = d(() => {
|
|
15
|
-
const n = i.value === "light", l = "vlite.themeToggle.switchToDark", r = "vlite.themeToggle.switchToLight";
|
|
15
|
+
const n = i.value === "light-mode", l = "vlite.themeToggle.switchToDark", r = "vlite.themeToggle.switchToLight";
|
|
16
16
|
if (n) {
|
|
17
17
|
const e = c(l);
|
|
18
18
|
return e !== l ? e : "Switch to dark mode";
|
|
@@ -26,7 +26,7 @@ const w = /* @__PURE__ */ m({
|
|
|
26
26
|
theme: o(i)
|
|
27
27
|
}, () => [
|
|
28
28
|
h(T, {
|
|
29
|
-
icon: o(i) === "light" ? "lucide:sun" : "lucide:moon",
|
|
29
|
+
icon: o(i) === "light-mode" ? "lucide:sun" : "lucide:moon",
|
|
30
30
|
variant: t.variant || "secondary",
|
|
31
31
|
rounded: t.rounded || "full",
|
|
32
32
|
size: t.size,
|
|
@@ -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/composables/useTheme.js
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
const t =
|
|
3
|
-
function
|
|
4
|
-
if (typeof window > "u") return "light";
|
|
1
|
+
import { ref as i, watch as m, onMounted as a } from "vue";
|
|
2
|
+
const t = i(d());
|
|
3
|
+
function d() {
|
|
4
|
+
if (typeof window > "u") return "light-mode";
|
|
5
5
|
const e = localStorage.getItem("builto-theme");
|
|
6
|
-
return e === "light" || e === "dark" ? e : window.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
6
|
+
return e === "light-mode" || e === "dark" ? e : window.matchMedia?.("(prefers-color-scheme: dark)").matches ? "dark" : "light-mode";
|
|
7
7
|
}
|
|
8
|
-
function
|
|
9
|
-
document.documentElement.classList.remove("light", "dark"), document.documentElement.classList.add(e);
|
|
8
|
+
function o(e) {
|
|
9
|
+
document.documentElement.classList.remove("light-mode", "dark"), document.documentElement.classList.add(e);
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function r() {
|
|
12
12
|
typeof window > "u" || !window.matchMedia || window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", (e) => {
|
|
13
|
-
localStorage.getItem("builto-theme") || (t.value = e.matches ? "dark" : "light",
|
|
13
|
+
localStorage.getItem("builto-theme") || (t.value = e.matches ? "dark" : "light-mode", o(t.value));
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
16
|
function u() {
|
|
17
|
-
t.value =
|
|
17
|
+
t.value = d(), o(t.value), r();
|
|
18
18
|
}
|
|
19
19
|
function c() {
|
|
20
|
-
|
|
20
|
+
m(
|
|
21
21
|
t,
|
|
22
|
-
(
|
|
23
|
-
localStorage.setItem("builto-theme",
|
|
22
|
+
(n) => {
|
|
23
|
+
localStorage.setItem("builto-theme", n), o(n);
|
|
24
24
|
},
|
|
25
25
|
{ immediate: !0 }
|
|
26
|
-
),
|
|
26
|
+
), a(() => {
|
|
27
27
|
document.documentElement.classList.add("bg-body");
|
|
28
28
|
});
|
|
29
29
|
function e() {
|
|
30
|
-
t.value = t.value === "light" ? "dark" : "light";
|
|
30
|
+
t.value = t.value === "light-mode" ? "dark" : "light-mode";
|
|
31
31
|
}
|
|
32
32
|
return {
|
|
33
33
|
theme: t,
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"private": false,
|
|
4
4
|
"description": "A Vue 3 UI component library built with Tailwind CSS.",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "1.3.
|
|
6
|
+
"version": "1.3.6",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "index.js",
|
|
9
9
|
"module": "index.js",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"v-datepicker-lite": "^0.1.10",
|
|
51
51
|
"v-event-calendar": "^0.0.10",
|
|
52
52
|
"v-file-preview": "^0.1.3",
|
|
53
|
-
"v-tooltip-lite": "^0.2.
|
|
53
|
+
"v-tooltip-lite": "^0.2.9",
|
|
54
54
|
"vue-carousel-lite": "^0.2.8",
|
|
55
55
|
"vue-draggable-plus": "^0.5.3",
|
|
56
56
|
"vue3-google-signin": "^2.1.1",
|