vlite3 1.2.4 → 1.2.7
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/README.md +22 -8
- package/components/AvatarGroup/AvatarGroup.vue.js +10 -9
- package/components/Beacon.vue.d.ts +13 -0
- package/components/Button.vue.js +18 -18
- package/components/Chart/GanttChart.vue.d.ts +67 -0
- package/components/Chart/GanttChart.vue.js +7 -0
- package/components/Chart/GanttChart.vue2.js +911 -0
- package/components/Chart/SpeedometerChart.vue.d.ts +54 -0
- package/components/Chart/SpeedometerChart.vue.js +558 -0
- package/components/Chart/SpeedometerChart.vue2.js +4 -0
- package/components/Chart/index.d.ts +3 -1
- package/components/Chart/types.d.ts +106 -0
- package/components/ChoiceBox/ChoiceBox.vue.d.ts +46 -1
- package/components/ChoiceBox/ChoiceBox.vue.js +274 -91
- package/components/ChoiceBox/index.d.ts +1 -1
- package/components/{CopyButton.vue.d.ts → Clipboard.vue.d.ts} +4 -3
- package/components/{CopyButton.vue.js → Clipboard.vue.js} +19 -19
- package/components/Clipboard.vue2.js +4 -0
- package/components/ColorPicker/ColorPicker.vue.js +1 -1
- package/components/CommandPalette/CommandPaletteContent.vue2.js +1 -1
- package/components/CommandPalette/{CommandPaletteItem.vue2.js → CommandPaletteItem.vue.js} +1 -1
- package/components/DataTable/DataTableHeader.vue.js +33 -30
- package/components/DataTable/types.d.ts +1 -1
- package/components/ImageComparison/ImageComparison.vue.d.ts +29 -0
- package/components/ImageComparison/ImageComparison.vue.js +126 -0
- package/components/ImageComparison/ImageComparison.vue2.js +4 -0
- package/components/ImageComparison/index.d.ts +1 -0
- package/components/ImportData/ImportData.vue.js +1 -1
- package/components/Modal.vue.js +1 -1
- package/components/Modal.vue2.js +92 -86
- package/components/NavbarCommandPalette.vue.js +1 -1
- package/components/OTPInput/OTPInput.vue.d.ts +18 -0
- package/components/OTPInput/OTPInput.vue.js +127 -82
- package/components/Persona.vue.d.ts +25 -0
- package/components/PricingPlan/PricingPlanItem.vue.js +19 -19
- package/components/Radio.vue.d.ts +41 -0
- package/components/Radio.vue.js +97 -0
- package/components/Radio.vue2.js +4 -0
- package/components/RadioGroup.vue.d.ts +38 -0
- package/components/RadioGroup.vue.js +37 -0
- package/components/RadioGroup.vue2.js +4 -0
- package/components/SidePanel.vue.js +1 -1
- package/components/SidePanel.vue2.js +45 -57
- package/components/SidebarMenu/SidebarMenuItem.vue.js +70 -74
- package/components/Slider.vue.d.ts +7 -0
- package/components/Slider.vue.js +194 -120
- package/components/ThemeToggle.vue.js +10 -10
- package/components/Timeline/Timeline.vue.d.ts +1 -1
- package/components/index.d.ts +3 -1
- package/index.d.ts +4 -1
- package/index.js +148 -138
- package/package.json +1 -1
- package/style.css +58 -40
- package/types/form.type.d.ts +23 -0
- package/components/CopyButton.vue2.js +0 -4
package/components/Slider.vue.js
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { $t as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as F, ref as V, watch as H, computed as r, openBlock as u, createElementBlock as d, normalizeClass as s, createBlock as I, createCommentVNode as c, toDisplayString as y, createElementVNode as h, normalizeStyle as k, withDirectives as U, vModelText as W } from "vue";
|
|
2
|
+
import P from "./Icon.vue.js";
|
|
3
|
+
import { $t as q } from "../utils/i18n.js";
|
|
4
|
+
const A = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "flex justify-between items-end w-full"
|
|
7
|
+
}, G = {
|
|
5
8
|
key: 1,
|
|
6
|
-
class: "
|
|
7
|
-
},
|
|
9
|
+
class: "whitespace-nowrap cursor-pointer"
|
|
10
|
+
}, J = {
|
|
11
|
+
key: 1,
|
|
12
|
+
class: "whitespace-nowrap cursor-pointer"
|
|
13
|
+
}, K = ["min", "max", "step", "disabled", "orient"], Z = /* @__PURE__ */ F({
|
|
8
14
|
__name: "Slider",
|
|
9
15
|
props: {
|
|
10
16
|
min: { default: 0 },
|
|
@@ -17,20 +23,24 @@ const j = {
|
|
|
17
23
|
showValue: { type: Boolean, default: !0 },
|
|
18
24
|
modelValue: { default: 0 },
|
|
19
25
|
labelClass: {},
|
|
26
|
+
valueClass: {},
|
|
20
27
|
centerOrigin: { type: Boolean, default: void 0 },
|
|
21
|
-
size: { default: "md" }
|
|
28
|
+
size: { default: "md" },
|
|
29
|
+
orientation: { default: "horizontal" },
|
|
30
|
+
variant: { default: "one" },
|
|
31
|
+
thumbVariant: { default: "default" }
|
|
22
32
|
},
|
|
23
33
|
emits: ["update:modelValue", "change", "iconClick"],
|
|
24
|
-
setup(
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
() =>
|
|
28
|
-
(
|
|
29
|
-
|
|
34
|
+
setup(l, { emit: O }) {
|
|
35
|
+
const e = l, v = O, i = V(!1), x = V(!1), o = V(e.modelValue);
|
|
36
|
+
H(
|
|
37
|
+
() => e.modelValue,
|
|
38
|
+
(t) => {
|
|
39
|
+
o.value = t;
|
|
30
40
|
}
|
|
31
41
|
);
|
|
32
|
-
const
|
|
33
|
-
switch (
|
|
42
|
+
const w = r(() => e.centerOrigin !== void 0 ? e.centerOrigin : e.min < 0 && e.max > 0), C = r(() => e.max - e.min), f = r(() => (o.value - e.min) / C.value * 100), g = r(() => (0 - e.min) / C.value * 100), z = r(() => {
|
|
43
|
+
switch (e.size) {
|
|
34
44
|
case "xs":
|
|
35
45
|
return 12;
|
|
36
46
|
case "sm":
|
|
@@ -40,142 +50,206 @@ const j = {
|
|
|
40
50
|
default:
|
|
41
51
|
return 14;
|
|
42
52
|
}
|
|
43
|
-
}),
|
|
44
|
-
const
|
|
45
|
-
return `calc(${
|
|
46
|
-
},
|
|
47
|
-
if (
|
|
48
|
-
const
|
|
49
|
-
return {
|
|
50
|
-
|
|
51
|
-
|
|
53
|
+
}), m = (t) => {
|
|
54
|
+
const a = z.value / 2, n = z.value;
|
|
55
|
+
return `calc(${t}% + (${a}px - ${n * (t / 100)}px))`;
|
|
56
|
+
}, T = r(() => {
|
|
57
|
+
if (w.value) {
|
|
58
|
+
const t = Math.min(f.value, g.value), a = Math.max(f.value, g.value), n = m(t), S = m(a);
|
|
59
|
+
return e.orientation === "vertical" ? {
|
|
60
|
+
bottom: n,
|
|
61
|
+
height: `calc(${S} - ${n})`
|
|
62
|
+
} : {
|
|
63
|
+
left: n,
|
|
64
|
+
width: `calc(${S} - ${n})`
|
|
52
65
|
};
|
|
53
66
|
} else
|
|
54
|
-
return {
|
|
67
|
+
return e.orientation === "vertical" ? {
|
|
68
|
+
bottom: "0%",
|
|
69
|
+
height: m(f.value)
|
|
70
|
+
} : {
|
|
55
71
|
left: "0%",
|
|
56
|
-
width:
|
|
72
|
+
width: m(f.value)
|
|
57
73
|
};
|
|
58
|
-
}),
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
const l = b.value ? 0 : t.min;
|
|
67
|
-
u.value = l, d("update:modelValue", l), d("change", l);
|
|
68
|
-
}, T = r(() => {
|
|
69
|
-
const l = t.step.toString().split(".")[1]?.length || 0;
|
|
70
|
-
return u.value.toFixed(l);
|
|
71
|
-
}), m = r(() => ({
|
|
72
|
-
xs: {
|
|
73
|
-
track: "h-[2.85px] bg-gray-300",
|
|
74
|
-
thumb: "w-[12px] h-[12px]",
|
|
75
|
-
wrapper: "h-4",
|
|
76
|
-
tick: "h-2.5"
|
|
77
|
-
},
|
|
78
|
-
sm: {
|
|
79
|
-
track: "h-[4px] bg-gray-300",
|
|
80
|
-
thumb: "w-[13px] h-[13px]",
|
|
81
|
-
wrapper: "h-4",
|
|
82
|
-
tick: "h-3"
|
|
83
|
-
},
|
|
84
|
-
md: {
|
|
85
|
-
track: "h-1.5 bg-gray-250",
|
|
86
|
-
thumb: "w-3.5 h-3.5",
|
|
87
|
-
wrapper: "h-6",
|
|
88
|
-
tick: "h-3.5"
|
|
89
|
-
},
|
|
90
|
-
lg: {
|
|
91
|
-
track: "h-2 bg-gray-250",
|
|
92
|
-
thumb: "w-4.5 h-4.5",
|
|
93
|
-
wrapper: "h-7",
|
|
94
|
-
tick: "h-4"
|
|
74
|
+
}), j = r(() => {
|
|
75
|
+
if (!w.value) return "";
|
|
76
|
+
if (e.orientation === "vertical") {
|
|
77
|
+
if (o.value < 0) return "rounded-t-none";
|
|
78
|
+
if (o.value > 0) return "rounded-b-none";
|
|
79
|
+
} else {
|
|
80
|
+
if (o.value < 0) return "rounded-r-none";
|
|
81
|
+
if (o.value > 0) return "rounded-l-none";
|
|
95
82
|
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
83
|
+
return "";
|
|
84
|
+
}), E = r(() => e.orientation === "vertical" ? {
|
|
85
|
+
bottom: m(f.value)
|
|
86
|
+
} : {
|
|
87
|
+
left: m(f.value)
|
|
88
|
+
}), L = () => {
|
|
89
|
+
v("update:modelValue", o.value);
|
|
90
|
+
}, N = () => {
|
|
91
|
+
v("change", o.value), i.value = !1;
|
|
92
|
+
}, R = r(() => Math.abs(e.modelValue) > 1e-3), $ = () => {
|
|
93
|
+
if (e.disabled) return;
|
|
94
|
+
const t = w.value ? 0 : e.min;
|
|
95
|
+
o.value = t, v("update:modelValue", t), v("change", t);
|
|
96
|
+
}, M = r(() => {
|
|
97
|
+
const t = e.step.toString().split(".")[1]?.length || 0;
|
|
98
|
+
return o.value.toFixed(t);
|
|
99
|
+
}), b = r(() => {
|
|
100
|
+
const t = e.orientation === "vertical";
|
|
101
|
+
return {
|
|
102
|
+
xs: {
|
|
103
|
+
track: t ? "w-[2.85px] bg-gray-300" : "h-[2.4px] bg-gray-300",
|
|
104
|
+
thumb: "w-[11.5px] h-[11.5px]",
|
|
105
|
+
wrapper: t ? "w-4 min-h-[100px]" : "h-4 w-full",
|
|
106
|
+
tick: t ? "w-2.5 h-[1.85px]" : "h-2.5 w-[2px]"
|
|
107
|
+
},
|
|
108
|
+
sm: {
|
|
109
|
+
track: t ? "w-[4px] bg-gray-300" : "h-[4px] bg-gray-300",
|
|
110
|
+
thumb: "w-[13px] h-[13px]",
|
|
111
|
+
wrapper: t ? "w-4 min-h-[100px]" : "h-4 w-full",
|
|
112
|
+
tick: t ? "w-3 h-[2px]" : "h-3 w-[2px]"
|
|
113
|
+
},
|
|
114
|
+
md: {
|
|
115
|
+
track: t ? "w-1.5 bg-gray-250" : "h-1.5 bg-gray-250",
|
|
116
|
+
thumb: "w-3.5 h-3.5",
|
|
117
|
+
wrapper: t ? "w-6 min-h-[100px]" : "h-6 w-full",
|
|
118
|
+
tick: t ? "w-3.5 h-[2px]" : "h-3.5 w-[2px]"
|
|
119
|
+
},
|
|
120
|
+
lg: {
|
|
121
|
+
track: t ? "w-2 bg-gray-250" : "h-2 bg-gray-250",
|
|
122
|
+
thumb: "w-4.5 h-4.5",
|
|
123
|
+
wrapper: t ? "w-7 min-h-[100px]" : "h-7 w-full",
|
|
124
|
+
tick: t ? "w-4 h-[2px]" : "h-4 w-[2px]"
|
|
125
|
+
}
|
|
126
|
+
}[e.size];
|
|
127
|
+
}), p = r(() => e.labelI18n ? q(e.labelI18n) : e.label), B = r(() => e.labelClass ? e.labelClass : e.size === "xs" || e.size === "sm" ? "text-muted-foreground text-xs font-normal" : "text-muted-foreground text-sm font-medium"), D = r(() => e.valueClass ? e.valueClass : e.size === "xs" || e.size === "sm" ? "text-muted-foreground text-xs font-normal" : "text-muted-foreground text-sm");
|
|
128
|
+
return (t, a) => (u(), d("div", {
|
|
129
|
+
class: s(["slider-wrapper flex select-none touch-none", [
|
|
130
|
+
{ "opacity-50 pointer-events-none": l.disabled },
|
|
131
|
+
e.orientation === "vertical" ? "flex-col items-center h-full py-2 gap-3" : e.variant === "two" ? "flex-col w-full gap-1" : "w-full flex-row items-center gap-3"
|
|
132
|
+
]]),
|
|
133
|
+
onMouseenter: a[7] || (a[7] = (n) => x.value = !0),
|
|
134
|
+
onMouseleave: a[8] || (a[8] = (n) => x.value = !1)
|
|
101
135
|
}, [
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
136
|
+
e.variant === "two" && e.orientation !== "vertical" ? (u(), d("div", A, [
|
|
137
|
+
p.value || l.icon ? (u(), d("div", {
|
|
138
|
+
key: 0,
|
|
139
|
+
class: s(["flex items-center gap-2 cursor-pointer transition-colors", [{ "text-primary": i.value || x.value }, B.value]]),
|
|
140
|
+
onClick: a[0] || (a[0] = (n) => v("iconClick")),
|
|
141
|
+
title: "Double-click to reset"
|
|
142
|
+
}, [
|
|
143
|
+
l.icon ? (u(), I(P, {
|
|
144
|
+
key: 0,
|
|
145
|
+
icon: l.icon,
|
|
146
|
+
class: "h-4 w-4"
|
|
147
|
+
}, null, 8, ["icon"])) : c("", !0),
|
|
148
|
+
p.value ? (u(), d("label", G, y(p.value), 1)) : c("", !0)
|
|
149
|
+
], 2)) : c("", !0),
|
|
150
|
+
l.showValue ? (u(), d("span", {
|
|
151
|
+
key: 1,
|
|
152
|
+
onDblclick: $,
|
|
153
|
+
class: s(["font-mono tabular-nums text-right min-w-6", D.value])
|
|
154
|
+
}, y(M.value), 35)) : c("", !0)
|
|
155
|
+
])) : c("", !0),
|
|
156
|
+
(e.variant !== "two" || e.orientation === "vertical") && (p.value || l.icon) ? (u(), d("div", {
|
|
157
|
+
key: 1,
|
|
158
|
+
class: s(["flex items-center gap-2 min-w-fit cursor-pointer transition-colors", [{ "text-primary": i.value || x.value }, B.value]]),
|
|
159
|
+
onClick: a[1] || (a[1] = (n) => v("iconClick")),
|
|
106
160
|
title: "Double-click to reset"
|
|
107
161
|
}, [
|
|
108
|
-
|
|
162
|
+
l.icon ? (u(), I(P, {
|
|
109
163
|
key: 0,
|
|
110
|
-
icon:
|
|
164
|
+
icon: l.icon,
|
|
111
165
|
class: "h-4 w-4"
|
|
112
|
-
}, null, 8, ["icon"])) :
|
|
113
|
-
|
|
114
|
-
], 2)) :
|
|
115
|
-
|
|
116
|
-
class: s(["relative flex-
|
|
166
|
+
}, null, 8, ["icon"])) : c("", !0),
|
|
167
|
+
p.value ? (u(), d("label", J, y(p.value), 1)) : c("", !0)
|
|
168
|
+
], 2)) : c("", !0),
|
|
169
|
+
h("div", {
|
|
170
|
+
class: s(["relative flex justify-center items-center group", [
|
|
171
|
+
b.value.wrapper,
|
|
172
|
+
e.orientation === "vertical" || e.variant !== "two" ? "flex-1" : ""
|
|
173
|
+
]])
|
|
117
174
|
}, [
|
|
118
|
-
|
|
119
|
-
class: s(["absolute
|
|
175
|
+
h("div", {
|
|
176
|
+
class: s(["absolute rounded-full", [
|
|
177
|
+
b.value.track,
|
|
178
|
+
e.orientation === "vertical" ? "h-full left-1/2 transform -translate-x-1/2" : "w-full top-1/2 transform -translate-y-1/2"
|
|
179
|
+
]])
|
|
120
180
|
}, null, 2),
|
|
121
|
-
|
|
181
|
+
w.value ? (u(), d("div", {
|
|
122
182
|
key: 0,
|
|
123
|
-
class: s(["absolute
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
183
|
+
class: s(["absolute bg-muted-foreground/30 rounded z-0", [
|
|
184
|
+
b.value.tick,
|
|
185
|
+
e.orientation === "vertical" ? "left-1/2 transform -translate-x-1/2" : "top-1/2 transform -translate-y-1/2"
|
|
186
|
+
]]),
|
|
187
|
+
style: k(
|
|
188
|
+
e.orientation === "vertical" ? { bottom: m(g.value) } : { left: m(g.value) }
|
|
189
|
+
)
|
|
190
|
+
}, null, 6)) : c("", !0),
|
|
191
|
+
h("div", {
|
|
127
192
|
class: s(["absolute bg-primary rounded-full will-change-transform", [
|
|
128
193
|
{
|
|
129
|
-
"bg-muted-foreground":
|
|
130
|
-
"transition-all duration-75 ease-out": !
|
|
131
|
-
"duration-0":
|
|
194
|
+
"bg-muted-foreground": l.disabled,
|
|
195
|
+
"transition-all duration-75 ease-out": !i.value,
|
|
196
|
+
"duration-0": i.value
|
|
132
197
|
},
|
|
133
|
-
|
|
134
|
-
|
|
198
|
+
b.value.track,
|
|
199
|
+
j.value,
|
|
200
|
+
e.orientation === "vertical" ? "left-1/2 transform -translate-x-1/2" : "top-1/2 transform -translate-y-1/2"
|
|
135
201
|
]]),
|
|
136
|
-
style: k(
|
|
202
|
+
style: k(T.value)
|
|
137
203
|
}, null, 6),
|
|
138
|
-
|
|
139
|
-
class: s(["absolute
|
|
204
|
+
h("div", {
|
|
205
|
+
class: s(["absolute rounded-full pointer-events-none transition-transform duration-100 ease-out z-10", [
|
|
206
|
+
e.thumbVariant === "solid" ? "bg-primary" : "bg-background border border-border shadow-sm",
|
|
140
207
|
{
|
|
141
|
-
"border-primary shadow-md scale-110":
|
|
142
|
-
"
|
|
208
|
+
"border-primary shadow-md scale-110": i.value && e.thumbVariant !== "solid",
|
|
209
|
+
"scale-110": i.value && e.thumbVariant === "solid",
|
|
210
|
+
"border-primary": R.value && e.thumbVariant !== "solid",
|
|
211
|
+
"bg-muted-foreground": l.disabled && e.thumbVariant === "solid"
|
|
143
212
|
},
|
|
144
|
-
|
|
213
|
+
b.value.thumb,
|
|
214
|
+
e.orientation === "vertical" ? "left-1/2 transform -translate-x-1/2 translate-y-1/2" : "top-1/2 -ml-px transform -translate-y-1/2 -translate-x-1/2"
|
|
145
215
|
]]),
|
|
146
|
-
style: k(
|
|
216
|
+
style: k(E.value)
|
|
147
217
|
}, null, 6),
|
|
148
|
-
|
|
218
|
+
U(h("input", {
|
|
149
219
|
type: "range",
|
|
150
|
-
"onUpdate:modelValue":
|
|
151
|
-
min:
|
|
152
|
-
max:
|
|
153
|
-
step:
|
|
154
|
-
disabled:
|
|
155
|
-
onInput:
|
|
156
|
-
onChange:
|
|
157
|
-
onMousedown:
|
|
158
|
-
onTouchstart:
|
|
159
|
-
onMouseup:
|
|
160
|
-
onTouchend:
|
|
161
|
-
class: "slider-input absolute inset-0 w-full h-full opacity-0 cursor-pointer z-20 m-0 p-0"
|
|
162
|
-
|
|
220
|
+
"onUpdate:modelValue": a[2] || (a[2] = (n) => o.value = n),
|
|
221
|
+
min: l.min,
|
|
222
|
+
max: l.max,
|
|
223
|
+
step: l.step,
|
|
224
|
+
disabled: l.disabled,
|
|
225
|
+
onInput: L,
|
|
226
|
+
onChange: N,
|
|
227
|
+
onMousedown: a[3] || (a[3] = (n) => i.value = !0),
|
|
228
|
+
onTouchstart: a[4] || (a[4] = (n) => i.value = !0),
|
|
229
|
+
onMouseup: a[5] || (a[5] = (n) => i.value = !1),
|
|
230
|
+
onTouchend: a[6] || (a[6] = (n) => i.value = !1),
|
|
231
|
+
class: "slider-input absolute inset-0 w-full h-full opacity-0 cursor-pointer z-20 m-0 p-0",
|
|
232
|
+
orient: e.orientation === "vertical" ? "vertical" : void 0,
|
|
233
|
+
style: k(
|
|
234
|
+
e.orientation === "vertical" ? "appearance: slider-vertical; -webkit-appearance: slider-vertical;" : ""
|
|
235
|
+
)
|
|
236
|
+
}, null, 44, K), [
|
|
163
237
|
[
|
|
164
|
-
|
|
165
|
-
|
|
238
|
+
W,
|
|
239
|
+
o.value,
|
|
166
240
|
void 0,
|
|
167
241
|
{ number: !0 }
|
|
168
242
|
]
|
|
169
243
|
])
|
|
170
244
|
], 2),
|
|
171
|
-
|
|
172
|
-
key:
|
|
173
|
-
onDblclick:
|
|
174
|
-
class: "font-mono tabular-nums text-
|
|
175
|
-
},
|
|
245
|
+
(e.variant !== "two" || e.orientation === "vertical") && l.showValue ? (u(), d("span", {
|
|
246
|
+
key: 2,
|
|
247
|
+
onDblclick: $,
|
|
248
|
+
class: s(["font-mono tabular-nums text-right min-w-6", D.value])
|
|
249
|
+
}, y(M.value), 35)) : c("", !0)
|
|
176
250
|
], 34));
|
|
177
251
|
}
|
|
178
252
|
});
|
|
179
253
|
export {
|
|
180
|
-
|
|
254
|
+
Z as default
|
|
181
255
|
};
|
|
@@ -11,28 +11,28 @@ const w = /* @__PURE__ */ m({
|
|
|
11
11
|
variant: {}
|
|
12
12
|
},
|
|
13
13
|
setup(t) {
|
|
14
|
-
const { theme: i, toggleTheme:
|
|
15
|
-
const n = i.value === "light",
|
|
14
|
+
const { theme: i, toggleTheme: s } = f(), a = d(() => {
|
|
15
|
+
const n = i.value === "light", l = "vlite.themeToggle.switchToDark", r = "vlite.themeToggle.switchToLight";
|
|
16
16
|
if (n) {
|
|
17
|
-
const e = c(s);
|
|
18
|
-
return e !== s ? e : "Switch to dark mode";
|
|
19
|
-
} else {
|
|
20
17
|
const e = c(l);
|
|
21
|
-
return e !== l ? e : "Switch to
|
|
18
|
+
return e !== l ? e : "Switch to dark mode";
|
|
19
|
+
} else {
|
|
20
|
+
const e = c(r);
|
|
21
|
+
return e !== r ? e : "Switch to light mode";
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
-
return (n,
|
|
25
|
-
toggleTheme: o(
|
|
24
|
+
return (n, l) => u(n.$slots, "default", {
|
|
25
|
+
toggleTheme: o(s),
|
|
26
26
|
theme: o(i)
|
|
27
27
|
}, () => [
|
|
28
28
|
h(T, {
|
|
29
29
|
icon: o(i) === "light" ? "lucide:sun" : "lucide:moon",
|
|
30
30
|
variant: t.variant || "secondary",
|
|
31
|
-
rounded: t.rounded || "
|
|
31
|
+
rounded: t.rounded || "full",
|
|
32
32
|
size: t.size,
|
|
33
33
|
class: g(t.class),
|
|
34
34
|
title: a.value,
|
|
35
|
-
onClick: o(
|
|
35
|
+
onClick: o(s)
|
|
36
36
|
}, null, 8, ["icon", "variant", "rounded", "size", "class", "title", "onClick"])
|
|
37
37
|
]);
|
|
38
38
|
}
|
|
@@ -46,10 +46,10 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
46
46
|
class: string;
|
|
47
47
|
clickable: boolean;
|
|
48
48
|
direction: TimelineDirection;
|
|
49
|
+
indicatorType: TimelineIndicatorType;
|
|
49
50
|
activeStep: number;
|
|
50
51
|
textPosition: TimelineTextPosition;
|
|
51
52
|
lineStyle: TimelineLineStyle;
|
|
52
|
-
indicatorType: TimelineIndicatorType;
|
|
53
53
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
|
|
54
54
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
55
55
|
export default _default;
|
package/components/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export { default as Avatar } from './Avatar.vue';
|
|
|
4
4
|
export { AvatarUploader } from './AvatarUploader';
|
|
5
5
|
export { default as Badge } from './Badge.vue';
|
|
6
6
|
export { Barcode } from './Barcode';
|
|
7
|
+
export { default as Beacon } from './Beacon.vue';
|
|
7
8
|
export { Breadcrumb, BreadcrumbItem } from './Breadcrumb';
|
|
8
9
|
export { default as Button } from './Button.vue';
|
|
9
10
|
export { default as BackButton } from './BackButton.vue';
|
|
@@ -43,6 +44,7 @@ export { default as NumberInput } from './NumberInput.vue';
|
|
|
43
44
|
export { OTPInput } from './OTPInput';
|
|
44
45
|
export { Pagination } from './Pagination';
|
|
45
46
|
export { PermissionMatrix, PermissionEditor } from './PermissionMatrix';
|
|
47
|
+
export { default as Persona } from './Persona.vue';
|
|
46
48
|
export { PricingPlan } from './PricingPlan';
|
|
47
49
|
export { ProgressBar } from './ProgressBar';
|
|
48
50
|
export { QRCode } from './QRCode';
|
|
@@ -64,4 +66,4 @@ export { default as Tooltip } from './Tooltip.vue';
|
|
|
64
66
|
export { Workbook } from './Workbook';
|
|
65
67
|
export { ExportData } from './ExportData';
|
|
66
68
|
export { ImportData } from './ImportData';
|
|
67
|
-
export { LineChart, BarChart, PieChart, CircleChart } from './Chart';
|
|
69
|
+
export { LineChart, BarChart, PieChart, CircleChart, GanttChart } from './Chart';
|
package/index.d.ts
CHANGED
|
@@ -58,6 +58,7 @@ export * from './components/Chart';
|
|
|
58
58
|
export * from './components/AppShell';
|
|
59
59
|
export * from './components/Rating';
|
|
60
60
|
export * from './components/AsyncSelect';
|
|
61
|
+
export * from './components/ImageComparison';
|
|
61
62
|
export { default as Icon } from './components/Icon.vue';
|
|
62
63
|
export { default as Logo } from './components/Logo.vue';
|
|
63
64
|
export { default as Alert } from './components/Alert.vue';
|
|
@@ -68,12 +69,14 @@ export { default as Modal } from './components/Modal.vue';
|
|
|
68
69
|
export { default as Avatar } from './components/Avatar.vue';
|
|
69
70
|
export { default as Button } from './components/Button.vue';
|
|
70
71
|
export { default as BackButton } from './components/BackButton.vue';
|
|
71
|
-
export { default as
|
|
72
|
+
export { default as Clipboard } from './components/Clipboard.vue';
|
|
72
73
|
export { default as Slider } from './components/Slider.vue';
|
|
73
74
|
export { default as Switch } from './components/Switch.vue';
|
|
74
75
|
export { default as Tooltip } from './components/Tooltip.vue';
|
|
75
76
|
export { default as CheckBox } from './components/CheckBox.vue';
|
|
76
77
|
export { default as Textarea } from './components/Textarea.vue';
|
|
78
|
+
export { default as Radio } from './components/Radio.vue';
|
|
79
|
+
export { default as RadioGroup } from './components/RadioGroup.vue';
|
|
77
80
|
export { default as SidePanel } from './components/SidePanel.vue';
|
|
78
81
|
export { default as DatePicker } from './components/DatePicker.vue';
|
|
79
82
|
export { default as IconPicker } from './components/IconPicker.vue';
|