scrubbed-tailwind-components-v2 2.4.2 → 2.5.0
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/dist/Dialog-BHLcOviq.js +17 -0
- package/dist/DialogBackground-WvtbjhWD.js +16 -0
- package/dist/DialogContent-BrXhtNDl.js +42 -0
- package/dist/DialogToggle-BBhhbRSr.js +18 -0
- package/dist/Sheet-BSbgTrds.js +17 -0
- package/dist/SheetContent-CwM7Ef5X.js +40 -0
- package/dist/SheetToggle-CE4cgr3o.js +18 -0
- package/dist/index-BF-I-8pN.js +1107 -0
- package/dist/scrubbed-tailwind-components-v2.css +1 -1
- package/dist/scrubbed-tailwind-components-v2.es.js +47 -1130
- package/dist/scrubbed-tailwind-components-v2.umd.js +1 -1
- package/package.json +1 -1
|
@@ -1,1132 +1,49 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
const oe = {
|
|
4
|
-
__name: "Alert",
|
|
5
|
-
props: {
|
|
6
|
-
variant: {
|
|
7
|
-
type: String,
|
|
8
|
-
default: "info",
|
|
9
|
-
validator: (e) => ["info", "success", "warning", "destructive"].includes(e)
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
setup(e) {
|
|
13
|
-
const t = M(), r = e, n = {
|
|
14
|
-
info: {
|
|
15
|
-
root: "to-brand-primary-200 border-white text-brand-primary-900",
|
|
16
|
-
icon: "bg-brand-primary-200 text-blue-700"
|
|
17
|
-
},
|
|
18
|
-
success: {
|
|
19
|
-
root: "to-success-200 text-success-800",
|
|
20
|
-
icon: "bg-success-200 text-green-700"
|
|
21
|
-
},
|
|
22
|
-
warning: {
|
|
23
|
-
root: "to-warning-200 text-warning-800",
|
|
24
|
-
icon: "bg-warning-200 text-yellow-700"
|
|
25
|
-
},
|
|
26
|
-
destructive: {
|
|
27
|
-
root: "to-danger-200 text-danger-700",
|
|
28
|
-
icon: "bg-danger-200 text-red-700"
|
|
29
|
-
}
|
|
30
|
-
}, o = {
|
|
31
|
-
info: {
|
|
32
|
-
icon: "stroke-brand-primary-900"
|
|
33
|
-
},
|
|
34
|
-
success: {
|
|
35
|
-
icon: "stroke-success-800"
|
|
36
|
-
},
|
|
37
|
-
warning: {
|
|
38
|
-
icon: "stroke-warning-800"
|
|
39
|
-
},
|
|
40
|
-
destructive: {
|
|
41
|
-
icon: "stroke-danger-700"
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
return I("ALERT", { VARIANT_MAP: n }), (l, u) => {
|
|
45
|
-
var m, y, _, b, A, G;
|
|
46
|
-
return a(), s("div", {
|
|
47
|
-
class: p(["flex w-full gap-4 rounded-lg border border-white bg-linear-60 from-white p-4", n[r.variant].root])
|
|
48
|
-
}, [
|
|
49
|
-
c("div", {
|
|
50
|
-
class: p(["grid size-10 place-items-center rounded-full", n[r.variant].icon])
|
|
51
|
-
}, [
|
|
52
|
-
(a(), g(k(C((y = (m = d(t)).default) == null ? void 0 : y.call(m)[0])), {
|
|
53
|
-
class: p(["size-4", o[r.variant].icon])
|
|
54
|
-
}, null, 8, ["class"]))
|
|
55
|
-
], 2),
|
|
56
|
-
c("div", null, [
|
|
57
|
-
(a(), g(k(C((b = (_ = d(t)).default) == null ? void 0 : b.call(_)[1])))),
|
|
58
|
-
(a(), g(k(C((G = (A = d(t)).default) == null ? void 0 : G.call(A)[2]))))
|
|
59
|
-
])
|
|
60
|
-
], 2);
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
}, f = (e, t) => {
|
|
64
|
-
const r = e.__vccOpts || e;
|
|
65
|
-
for (const [n, o] of t)
|
|
66
|
-
r[n] = o;
|
|
67
|
-
return r;
|
|
68
|
-
}, ne = {}, ae = { class: "text-xs text-neutral-700" };
|
|
69
|
-
function se(e, t) {
|
|
70
|
-
return a(), s("span", ae, [
|
|
71
|
-
i(e.$slots, "default")
|
|
72
|
-
]);
|
|
73
|
-
}
|
|
74
|
-
const le = /* @__PURE__ */ f(ne, [["render", se]]), ie = {}, de = { class: "text-sm font-medium" };
|
|
75
|
-
function ce(e, t) {
|
|
76
|
-
return a(), s("p", de, [
|
|
77
|
-
i(e.$slots, "default")
|
|
78
|
-
]);
|
|
79
|
-
}
|
|
80
|
-
const ue = /* @__PURE__ */ f(ie, [["render", ce]]), ge = { class: "flex w-full items-center justify-between" }, pe = { class: "flex items-center gap-2" }, me = { class: "flex items-center gap-10" }, be = { class: "hidden gap-6 sm:flex" }, Ut = {
|
|
81
|
-
__name: "AppHeader",
|
|
82
|
-
setup(e) {
|
|
83
|
-
const t = h("APP_DATA"), { isSidebarToggled: r, toggleSidebar: n } = t;
|
|
84
|
-
return (o, l) => (a(), s("header", {
|
|
85
|
-
class: p(["fixed top-0 flex h-16 w-dvw items-center justify-center bg-white/50 px-3 backdrop-blur sm:px-6", { "rounded-t-2xl": d(r) }])
|
|
86
|
-
}, [
|
|
87
|
-
c("nav", ge, [
|
|
88
|
-
c("div", pe, [
|
|
89
|
-
c("button", {
|
|
90
|
-
onClick: l[0] || (l[0] = (u) => d(n)()),
|
|
91
|
-
class: "block cursor-pointer rounded-full p-2 hover:bg-neutral-100 sm:hidden"
|
|
92
|
-
}, l[1] || (l[1] = [
|
|
93
|
-
c("svg", {
|
|
94
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
95
|
-
width: "24",
|
|
96
|
-
height: "24",
|
|
97
|
-
viewBox: "0 0 24 24",
|
|
98
|
-
fill: "none",
|
|
99
|
-
stroke: "currentColor",
|
|
100
|
-
"stroke-width": "2",
|
|
101
|
-
"stroke-linecap": "round",
|
|
102
|
-
"stroke-linejoin": "round",
|
|
103
|
-
class: "lucide lucide-menu-icon lucide-menu size-5 stroke-neutral-600"
|
|
104
|
-
}, [
|
|
105
|
-
c("path", { d: "M4 12h16" }),
|
|
106
|
-
c("path", { d: "M4 18h16" }),
|
|
107
|
-
c("path", { d: "M4 6h16" })
|
|
108
|
-
], -1)
|
|
109
|
-
])),
|
|
110
|
-
i(o.$slots, "header-img")
|
|
111
|
-
]),
|
|
112
|
-
c("div", me, [
|
|
113
|
-
c("ul", be, [
|
|
114
|
-
i(o.$slots, "header-links")
|
|
115
|
-
]),
|
|
116
|
-
i(o.$slots, "header-actions")
|
|
117
|
-
])
|
|
118
|
-
])
|
|
119
|
-
], 2));
|
|
120
|
-
}
|
|
121
|
-
}, fe = ["href"], he = {
|
|
122
|
-
__name: "AppHeaderLink",
|
|
123
|
-
props: {
|
|
124
|
-
to: { type: String, required: !0 }
|
|
125
|
-
},
|
|
126
|
-
setup(e) {
|
|
127
|
-
const t = e;
|
|
128
|
-
return (r, n) => (a(), s("li", null, [
|
|
129
|
-
t.to.startsWith("/") ? (a(), g(d(P), {
|
|
130
|
-
key: 0,
|
|
131
|
-
class: "hover:text-primary-950 [&.router-link-active]:text-primary-950 text-xs uppercase text-neutral-600 hover:transition-all [&.router-link-active]:font-semibold",
|
|
132
|
-
to: t.to
|
|
133
|
-
}, {
|
|
134
|
-
default: v(() => [
|
|
135
|
-
i(r.$slots, "default")
|
|
136
|
-
]),
|
|
137
|
-
_: 3
|
|
138
|
-
}, 8, ["to"])) : (a(), s("a", {
|
|
139
|
-
key: 1,
|
|
140
|
-
class: "hover:text-primary-950 text-xs uppercase text-neutral-600 hover:transition-all",
|
|
141
|
-
href: t.to
|
|
142
|
-
}, [
|
|
143
|
-
i(r.$slots, "default")
|
|
144
|
-
], 8, fe))
|
|
145
|
-
]));
|
|
146
|
-
}
|
|
147
|
-
}, ve = { class: "relative" }, xe = { class: "flex" }, _e = {
|
|
148
|
-
__name: "AppLayout",
|
|
149
|
-
setup(e) {
|
|
150
|
-
const t = x(!1);
|
|
151
|
-
function r() {
|
|
152
|
-
window.innerWidth <= 640 ? (t.value = !t.value, n()) : t.value && (t.value = !1, n());
|
|
153
|
-
}
|
|
154
|
-
function n() {
|
|
155
|
-
const o = document.querySelector("body");
|
|
156
|
-
o.classList.contains("bg-black") ? o.classList.remove("bg-black") : o.classList.add("bg-black");
|
|
157
|
-
}
|
|
158
|
-
return I("APP_DATA", { isSidebarToggled: t, toggleSidebar: r }), (o, l) => {
|
|
159
|
-
var u, m, y, _, b, A;
|
|
160
|
-
return a(), s("div", {
|
|
161
|
-
class: p(["bg-white transition-all duration-500 ease-[cubic-bezier(.32,.72,0,1)]", {
|
|
162
|
-
"origin-[center_top] translate-y-4 scale-93": t.value
|
|
163
|
-
}])
|
|
164
|
-
}, [
|
|
165
|
-
c("div", ve, [
|
|
166
|
-
(a(), g(k(C((m = (u = o.$slots).default) == null ? void 0 : m.call(u)[0])))),
|
|
167
|
-
c("div", xe, [
|
|
168
|
-
(a(), g(k(C((_ = (y = o.$slots).default) == null ? void 0 : _.call(y)[1])))),
|
|
169
|
-
(a(), g(k(C((A = (b = o.$slots).default) == null ? void 0 : A.call(b)[2]))))
|
|
170
|
-
])
|
|
171
|
-
])
|
|
172
|
-
], 2);
|
|
173
|
-
};
|
|
174
|
-
}
|
|
175
|
-
}, ye = {
|
|
176
|
-
__name: "AppMain",
|
|
177
|
-
setup(e) {
|
|
178
|
-
const t = h("APP_DATA"), { isSidebarToggled: r } = t;
|
|
179
|
-
return (n, o) => (a(), s("main", {
|
|
180
|
-
class: p([
|
|
181
|
-
"bg-background-main fixed z-[-1] h-svh w-full overflow-auto px-6 pt-24 pb-9 sm:top-16 sm:ml-[223px] sm:h-[calc(100dvh-4rem)] sm:w-[calc(100dvw-223px)] sm:pt-9",
|
|
182
|
-
d(r) ? "overflow-hidden rounded-t-xl sm:rounded-none" : "sm:rounded-tl-2xl"
|
|
183
|
-
])
|
|
184
|
-
}, [
|
|
185
|
-
i(n.$slots, "default")
|
|
186
|
-
], 2));
|
|
187
|
-
}
|
|
188
|
-
}, ke = {}, Ce = { class: "flex w-full flex-wrap border-b-[1px] border-neutral-200 [&::-webkit-scrollbar]:hidden" };
|
|
189
|
-
function we(e, t) {
|
|
190
|
-
return a(), s("div", Ce, [
|
|
191
|
-
i(e.$slots, "default")
|
|
192
|
-
]);
|
|
193
|
-
}
|
|
194
|
-
const $e = /* @__PURE__ */ f(ke, [["render", we]]), Ae = { class: "shrink-0" }, Se = {
|
|
195
|
-
__name: "AppNavTab",
|
|
196
|
-
props: {
|
|
197
|
-
to: { type: String, required: !0 }
|
|
198
|
-
},
|
|
199
|
-
setup(e) {
|
|
200
|
-
const t = e;
|
|
201
|
-
return x(null), (r, n) => (a(), s("div", Ae, [
|
|
202
|
-
T(d(P), {
|
|
203
|
-
class: "[&.router-link-exact-active]:text-primary-950 [&.router-link-exact-active]:border-brand-primary-700 hover:text-brand-primary-700 group relative flex h-12 shrink-0 items-center justify-between gap-2 border-b-2 border-transparent px-3 text-sm text-neutral-600 transition-all [&.router-link-exact-active]:font-medium",
|
|
204
|
-
to: t.to
|
|
205
|
-
}, {
|
|
206
|
-
default: v(() => [
|
|
207
|
-
i(r.$slots, "default"),
|
|
208
|
-
n[0] || (n[0] = c("div", { class: "bg-primary-100 absolute inset-x-0 z-[-1] h-8 w-full rounded-lg opacity-0 transition-all contain-strict group-hover:transform-none group-hover:opacity-100 group-hover:[transform-origin:50%_50%_0px]" }, null, -1))
|
|
209
|
-
]),
|
|
210
|
-
_: 3,
|
|
211
|
-
__: [0]
|
|
212
|
-
}, 8, ["to"])
|
|
213
|
-
]));
|
|
214
|
-
}
|
|
215
|
-
}, Te = { class: "sidebar-wrapper fixed top-0 left-0 hidden max-h-[calc(100vh-64px)] w-[223px] space-y-4 overflow-y-auto bg-white px-4 py-8 sm:top-[64px] sm:block" }, Ie = {
|
|
216
|
-
__name: "AppSidebar",
|
|
217
|
-
setup(e) {
|
|
218
|
-
const t = h("APP_DATA"), { isSidebarToggled: r, toggleSidebar: n } = t;
|
|
219
|
-
return (o, l) => (a(), s(D, null, [
|
|
220
|
-
c("aside", Te, [
|
|
221
|
-
i(o.$slots, "default")
|
|
222
|
-
]),
|
|
223
|
-
(a(), g(z, { to: "body" }, [
|
|
224
|
-
c("div", {
|
|
225
|
-
class: "shadow-t-2xl fixed bottom-0 z-50 h-[60svh] w-full space-y-4 overflow-y-scroll rounded-t-2xl bg-white p-4 transition-all duration-500 ease-[cubic-bezier(.32,.72,0,1)] [&::-webkit-scrollbar]:hidden",
|
|
226
|
-
style: U(
|
|
227
|
-
d(r) ? "transform: translateZ(0)" : "transform: translate3d(0,60svh,0)"
|
|
228
|
-
)
|
|
229
|
-
}, [
|
|
230
|
-
i(o.$slots, "default")
|
|
231
|
-
], 4),
|
|
232
|
-
c("div", {
|
|
233
|
-
onClick: l[0] || (l[0] = (u) => d(n)()),
|
|
234
|
-
class: p([
|
|
235
|
-
"backdrop transition-all [transition-behavior:allow-discrete] duration-300",
|
|
236
|
-
d(r) ? "fixed inset-0 z-40 block bg-black/80 opacity-100" : "hidden"
|
|
237
|
-
])
|
|
238
|
-
}, null, 2)
|
|
239
|
-
]))
|
|
240
|
-
], 64));
|
|
241
|
-
}
|
|
242
|
-
}, Be = { class: "flex flex-col" }, De = {
|
|
243
|
-
__name: "AppSidebarItem",
|
|
244
|
-
setup(e) {
|
|
245
|
-
q();
|
|
246
|
-
const t = x(!1);
|
|
247
|
-
function r() {
|
|
248
|
-
t.value = !t.value;
|
|
249
|
-
}
|
|
250
|
-
return I("SIDEBAR_TOGGLE", { toggled: t, toggleSidebarItem: r }), (n, o) => (a(), s("div", Be, [
|
|
251
|
-
i(n.$slots, "default")
|
|
252
|
-
]));
|
|
253
|
-
}
|
|
254
|
-
}, Re = ["href"], Ve = {
|
|
255
|
-
__name: "AppSidebarItemChild",
|
|
256
|
-
props: {
|
|
257
|
-
to: { type: [String, Object], required: !0 }
|
|
258
|
-
},
|
|
259
|
-
setup(e) {
|
|
260
|
-
const t = e;
|
|
261
|
-
return (r, n) => typeof t.to == "object" || t.to.startsWith("/") ? (a(), g(d(P), {
|
|
262
|
-
key: 0,
|
|
263
|
-
class: "[&.router-link-exact-active]:text-primary-950 [&.router-link-exact-active]:bg-background-main text-primary-950 hover:bg-background-main block h-10 items-center gap-3 overflow-hidden rounded-lg px-3 text-xs leading-[40px] text-ellipsis whitespace-nowrap transition-all [&.router-link-exact-active]:font-medium",
|
|
264
|
-
to: t.to
|
|
265
|
-
}, {
|
|
266
|
-
default: v(() => [
|
|
267
|
-
i(r.$slots, "default")
|
|
268
|
-
]),
|
|
269
|
-
_: 3
|
|
270
|
-
}, 8, ["to"])) : (a(), s("a", {
|
|
271
|
-
key: 1,
|
|
272
|
-
class: "text-primary-950 hover:bg-background-main block h-10 items-center gap-3 overflow-hidden rounded-lg px-3 text-xs leading-[40px] text-ellipsis whitespace-nowrap transition-all",
|
|
273
|
-
href: t.to
|
|
274
|
-
}, [
|
|
275
|
-
i(r.$slots, "default")
|
|
276
|
-
], 8, Re));
|
|
277
|
-
}
|
|
278
|
-
}, Pe = {
|
|
279
|
-
__name: "AppSidebarItemChildren",
|
|
280
|
-
setup(e) {
|
|
281
|
-
const t = h("SIDEBAR_TOGGLE"), { toggled: r } = t;
|
|
282
|
-
return (n, o) => (a(), s("div", {
|
|
283
|
-
class: p(["max-h-0 overflow-y-hidden rounded-b-lg opacity-0 transition-all", { "mt-2 max-h-max overflow-y-auto px-2 opacity-100": d(r) }])
|
|
284
|
-
}, [
|
|
285
|
-
i(n.$slots, "default")
|
|
286
|
-
], 2));
|
|
287
|
-
}
|
|
288
|
-
}, Ee = { class: "link group/sidebar-item hover:bg-background-main peer has-[&.router-link-active]:from-brand-primary-50 has-[&.router-link-active]:to-brand-primary-100 flex h-10 items-center justify-between rounded-lg px-3 transition-all has-[&.router-link-active]:bg-gradient-to-br" }, Me = ["href"], ze = {
|
|
289
|
-
__name: "AppSidebarItemParent",
|
|
290
|
-
props: {
|
|
291
|
-
to: { type: [String, Object], required: !0 },
|
|
292
|
-
name: { type: String },
|
|
293
|
-
hasChildren: { type: Boolean, default: !1 }
|
|
294
|
-
},
|
|
295
|
-
setup(e) {
|
|
296
|
-
const t = q(), r = e, n = h("SIDEBAR_TOGGLE"), o = h("APP_DATA"), { toggled: l, toggleSidebarItem: u } = n, { toggleSidebar: m } = o;
|
|
297
|
-
function y() {
|
|
298
|
-
t.matched.some(
|
|
299
|
-
(b) => r.name === b.name
|
|
300
|
-
) ? l.value = !0 : l.value = !1;
|
|
301
|
-
}
|
|
302
|
-
return Z(t, () => y(), { immediate: !0 }), (_, b) => (a(), s("div", Ee, [
|
|
303
|
-
typeof r.to == "object" || r.to.startsWith("/") ? (a(), g(d(P), {
|
|
304
|
-
key: 0,
|
|
305
|
-
onClick: b[0] || (b[0] = (A) => d(m)()),
|
|
306
|
-
class: "[&.router-link-active]:text-primary-700 text-primary-950 peer flex h-full w-full items-center gap-3 text-xs [&.router-link-active]:font-medium",
|
|
307
|
-
to: r.to
|
|
308
|
-
}, {
|
|
309
|
-
default: v(() => [
|
|
310
|
-
i(_.$slots, "default")
|
|
311
|
-
]),
|
|
312
|
-
_: 3
|
|
313
|
-
}, 8, ["to"])) : (a(), s("a", {
|
|
314
|
-
key: 1,
|
|
315
|
-
class: "text-primary-950 peer flex h-full w-full items-center gap-3 text-xs",
|
|
316
|
-
href: r.to
|
|
317
|
-
}, [
|
|
318
|
-
i(_.$slots, "default")
|
|
319
|
-
], 8, Me)),
|
|
320
|
-
r.hasChildren ? (a(), s("button", {
|
|
321
|
-
key: 2,
|
|
322
|
-
onClick: b[1] || (b[1] = (A) => d(u)()),
|
|
323
|
-
class: "hover:bg-brand-primary-200 cursor-pointer rounded-full p-1 transition-all",
|
|
324
|
-
type: "button"
|
|
325
|
-
}, [
|
|
326
|
-
(a(), s("svg", {
|
|
327
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
328
|
-
width: "16",
|
|
329
|
-
height: "16",
|
|
330
|
-
viewBox: "0 0 24 24",
|
|
331
|
-
fill: "none",
|
|
332
|
-
stroke: "currentColor",
|
|
333
|
-
"stroke-width": "2",
|
|
334
|
-
"stroke-linecap": "round",
|
|
335
|
-
"stroke-linejoin": "round",
|
|
336
|
-
class: p(["lucide lucide-chevron-down-icon lucide-chevron-down stroke-brand-primary-800 transition-all duration-300", { "rotate-180": d(l) }])
|
|
337
|
-
}, b[2] || (b[2] = [
|
|
338
|
-
c("path", { d: "m6 9 6 6 6-6" }, null, -1)
|
|
339
|
-
]), 2))
|
|
340
|
-
])) : w("", !0)
|
|
341
|
-
]));
|
|
342
|
-
}
|
|
343
|
-
}, Le = { class: "hover:bg-background-main has-[&.router-link-active]:active has-[&.router-link-active]:bg-primary-700 peer flex h-10 items-center justify-between rounded-lg px-3 transition-all" }, je = {
|
|
344
|
-
__name: "AppSidebarToggle",
|
|
345
|
-
setup(e) {
|
|
346
|
-
const t = h("SIDEBAR_TOGGLE");
|
|
347
|
-
return (r, n) => {
|
|
348
|
-
const o = J("RouterLink");
|
|
349
|
-
return a(), s("div", Le, [
|
|
350
|
-
T(o, {
|
|
351
|
-
class: "text-primary-950 peer flex h-full w-full items-center gap-3 text-xs [&.router-link-active]:font-medium [&.router-link-active]:text-white",
|
|
352
|
-
to: "/"
|
|
353
|
-
}, {
|
|
354
|
-
default: v(() => [
|
|
355
|
-
i(r.$slots, "default")
|
|
356
|
-
]),
|
|
357
|
-
_: 3
|
|
358
|
-
}),
|
|
359
|
-
c("button", {
|
|
360
|
-
onClick: n[0] || (n[0] = (l) => d(t).toggleSidebarItem()),
|
|
361
|
-
class: "cursor-pointer",
|
|
362
|
-
type: "button"
|
|
363
|
-
}, n[1] || (n[1] = [
|
|
364
|
-
c("svg", {
|
|
365
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
366
|
-
width: "16",
|
|
367
|
-
height: "16",
|
|
368
|
-
viewBox: "0 0 24 24",
|
|
369
|
-
fill: "none",
|
|
370
|
-
stroke: "currentColor",
|
|
371
|
-
"stroke-width": "2",
|
|
372
|
-
"stroke-linecap": "round",
|
|
373
|
-
"stroke-linejoin": "round",
|
|
374
|
-
class: "lucide lucide-chevron-down-icon lucide-chevron-down stroke-white"
|
|
375
|
-
}, [
|
|
376
|
-
c("path", { d: "m6 9 6 6 6-6" })
|
|
377
|
-
], -1)
|
|
378
|
-
]))
|
|
379
|
-
]);
|
|
380
|
-
};
|
|
381
|
-
}
|
|
382
|
-
}, Ge = {}, Ne = {
|
|
383
|
-
key: 0,
|
|
384
|
-
class: "text-primary-950 px-1 text-sm font-medium"
|
|
385
|
-
}, We = { class: "mt-2" };
|
|
386
|
-
function He(e, t) {
|
|
387
|
-
return a(), s("nav", null, [
|
|
388
|
-
e.$slots.title ? (a(), s("b", Ne, [
|
|
389
|
-
i(e.$slots, "title")
|
|
390
|
-
])) : w("", !0),
|
|
391
|
-
c("div", We, [
|
|
392
|
-
i(e.$slots, "items")
|
|
393
|
-
])
|
|
394
|
-
]);
|
|
395
|
-
}
|
|
396
|
-
const Oe = /* @__PURE__ */ f(Ge, [["render", He]]), W = {
|
|
397
|
-
/* ---------------- Solid Buttons ---------------- */
|
|
398
|
-
primary: {
|
|
399
|
-
backgroundColor: "bg-brand-primary-700",
|
|
400
|
-
textColor: "text-white"
|
|
401
|
-
},
|
|
402
|
-
secondary: {
|
|
403
|
-
backgroundColor: "bg-neutral-100",
|
|
404
|
-
textColor: "text-neutral-700"
|
|
405
|
-
},
|
|
406
|
-
success: {
|
|
407
|
-
backgroundColor: "bg-success-400",
|
|
408
|
-
textColor: "text-white"
|
|
409
|
-
},
|
|
410
|
-
danger: {
|
|
411
|
-
backgroundColor: "bg-danger-600",
|
|
412
|
-
textColor: "text-white"
|
|
413
|
-
},
|
|
414
|
-
warning: {
|
|
415
|
-
backgroundColor: "bg-warning-500",
|
|
416
|
-
textColor: "text-neutral-950"
|
|
417
|
-
},
|
|
418
|
-
secondaryPrimary: {
|
|
419
|
-
backgroundColor: "bg-brand-primary-100",
|
|
420
|
-
textColor: "text-brand-primary-700"
|
|
421
|
-
},
|
|
422
|
-
secondaryAltPrimary: {
|
|
423
|
-
backgroundColor: "bg-primary-100",
|
|
424
|
-
textColor: "text-primary-700"
|
|
425
|
-
},
|
|
426
|
-
secondarySuccess: {
|
|
427
|
-
backgroundColor: "bg-success-100",
|
|
428
|
-
textColor: "text-success-700"
|
|
429
|
-
},
|
|
430
|
-
secondaryDanger: {
|
|
431
|
-
backgroundColor: "bg-danger-100",
|
|
432
|
-
textColor: "text-danger-700"
|
|
433
|
-
},
|
|
434
|
-
secondaryWarning: {
|
|
435
|
-
backgroundColor: "bg-warning-100",
|
|
436
|
-
textColor: "text-warning-700"
|
|
437
|
-
},
|
|
438
|
-
/* ---------------- Outlined Buttons ---------------- */
|
|
439
|
-
outlined: {
|
|
440
|
-
backgroundColor: "bg-transparent",
|
|
441
|
-
textColor: "text-neutral-700",
|
|
442
|
-
borderColor: "border border-neutral-200"
|
|
443
|
-
},
|
|
444
|
-
outlinedPrimary: {
|
|
445
|
-
backgroundColor: "bg-transparent",
|
|
446
|
-
textColor: "text-brand-primary-700",
|
|
447
|
-
borderColor: "border border-brand-primary-300"
|
|
448
|
-
},
|
|
449
|
-
outlinedSuccess: {
|
|
450
|
-
backgroundColor: "bg-transparent",
|
|
451
|
-
textColor: "text-success-600",
|
|
452
|
-
borderColor: "border border-success-300"
|
|
453
|
-
},
|
|
454
|
-
outlinedDanger: {
|
|
455
|
-
backgroundColor: "bg-transparent",
|
|
456
|
-
textColor: "text-danger-600",
|
|
457
|
-
borderColor: "border border-danger-300"
|
|
458
|
-
},
|
|
459
|
-
outlinedWarning: {
|
|
460
|
-
backgroundColor: "bg-transparent",
|
|
461
|
-
textColor: "text-warning-600",
|
|
462
|
-
borderColor: "border border-warning-300"
|
|
463
|
-
},
|
|
464
|
-
/* ---------------- Ghost Buttons ---------------- */
|
|
465
|
-
ghost: {
|
|
466
|
-
backgroundColor: "bg-transparent",
|
|
467
|
-
textColor: "text-neutral-700"
|
|
468
|
-
},
|
|
469
|
-
ghostPrimary: {
|
|
470
|
-
backgroundColor: "bg-transparent",
|
|
471
|
-
textColor: "text-brand-primary-700"
|
|
472
|
-
},
|
|
473
|
-
ghostSuccess: {
|
|
474
|
-
backgroundColor: "bg-transparent",
|
|
475
|
-
textColor: "text-success-600"
|
|
476
|
-
},
|
|
477
|
-
ghostDanger: {
|
|
478
|
-
backgroundColor: "bg-transparent",
|
|
479
|
-
textColor: "text-danger-600"
|
|
480
|
-
},
|
|
481
|
-
ghostWarning: {
|
|
482
|
-
backgroundColor: "bg-transparent",
|
|
483
|
-
textColor: "text-warning-600"
|
|
484
|
-
}
|
|
485
|
-
}, S = {
|
|
486
|
-
/* ---------------- Solid Buttons ---------------- */
|
|
487
|
-
primary: {
|
|
488
|
-
backgroundColor: "bg-gradient-to-br from-brand-primary-500 to-brand-primary-700",
|
|
489
|
-
textColor: "text-white",
|
|
490
|
-
hoverBackgroundColor: "hover:from-brand-primary-700 hover:to-brand-primary-800",
|
|
491
|
-
focusRing: "focus:ring-brand-primary-300"
|
|
492
|
-
},
|
|
493
|
-
secondary: {
|
|
494
|
-
backgroundColor: "bg-neutral-100",
|
|
495
|
-
textColor: "text-neutral-700",
|
|
496
|
-
hoverBackgroundColor: "hover:bg-neutral-200",
|
|
497
|
-
focusRing: "focus:ring-neutral-300"
|
|
498
|
-
},
|
|
499
|
-
success: {
|
|
500
|
-
backgroundColor: "bg-success-400",
|
|
501
|
-
textColor: "text-white",
|
|
502
|
-
hoverBackgroundColor: "hover:bg-success-500",
|
|
503
|
-
focusRing: "focus:ring-success-300"
|
|
504
|
-
},
|
|
505
|
-
danger: {
|
|
506
|
-
backgroundColor: "bg-danger-600",
|
|
507
|
-
textColor: "text-white",
|
|
508
|
-
hoverBackgroundColor: "hover:bg-danger-700",
|
|
509
|
-
focusRing: "focus:ring-danger-300"
|
|
510
|
-
},
|
|
511
|
-
warning: {
|
|
512
|
-
backgroundColor: "bg-warning-500",
|
|
513
|
-
textColor: "text-neutral-950",
|
|
514
|
-
hoverBackgroundColor: "hover:bg-warning-600",
|
|
515
|
-
focusRing: "focus:ring-warning-300"
|
|
516
|
-
},
|
|
517
|
-
secondaryPrimary: {
|
|
518
|
-
backgroundColor: "bg-brand-primary-100",
|
|
519
|
-
textColor: "text-brand-primary-700",
|
|
520
|
-
hoverBackgroundColor: "hover:bg-brand-primary-200",
|
|
521
|
-
focusRing: "focus:ring-brand-primary-200"
|
|
522
|
-
},
|
|
523
|
-
secondaryAltPrimary: {
|
|
524
|
-
backgroundColor: "bg-primary-100",
|
|
525
|
-
textColor: "text-primary-700",
|
|
526
|
-
hoverBackgroundColor: "hover:bg-primary-200",
|
|
527
|
-
focusRing: "focus:ring-primary-200"
|
|
528
|
-
},
|
|
529
|
-
secondarySuccess: {
|
|
530
|
-
backgroundColor: "bg-success-100",
|
|
531
|
-
textColor: "text-success-700",
|
|
532
|
-
hoverBackgroundColor: "hover:bg-success-200",
|
|
533
|
-
focusRing: "focus:ring-success-200"
|
|
534
|
-
},
|
|
535
|
-
secondaryDanger: {
|
|
536
|
-
backgroundColor: "bg-danger-100",
|
|
537
|
-
textColor: "text-danger-700",
|
|
538
|
-
hoverBackgroundColor: "hover:bg-danger-200",
|
|
539
|
-
focusRing: "focus:ring-danger-200"
|
|
540
|
-
},
|
|
541
|
-
secondaryWarning: {
|
|
542
|
-
backgroundColor: "bg-warning-100",
|
|
543
|
-
textColor: "text-warning-700",
|
|
544
|
-
hoverBackgroundColor: "hover:bg-warning-200",
|
|
545
|
-
focusRing: "focus:ring-warning-200"
|
|
546
|
-
},
|
|
547
|
-
/* ---------------- Outlined Buttons ---------------- */
|
|
548
|
-
outlined: {
|
|
549
|
-
backgroundColor: "bg-transparent",
|
|
550
|
-
textColor: "text-neutral-700",
|
|
551
|
-
borderColor: "border border-neutral-200",
|
|
552
|
-
hoverBackgroundColor: "hover:bg-neutral-100",
|
|
553
|
-
hoverTextColor: "hover:text-neutral-900",
|
|
554
|
-
focusRing: "focus:ring-neutral-200"
|
|
555
|
-
},
|
|
556
|
-
outlinedPrimary: {
|
|
557
|
-
backgroundColor: "bg-transparent",
|
|
558
|
-
textColor: "text-brand-primary-700",
|
|
559
|
-
borderColor: "border border-brand-primary-300",
|
|
560
|
-
hoverBackgroundColor: "hover:bg-brand-primary-100",
|
|
561
|
-
hoverTextColor: "hover:text-brand-primary-800",
|
|
562
|
-
focusRing: "focus:ring-brand-primary-200"
|
|
563
|
-
},
|
|
564
|
-
outlinedSuccess: {
|
|
565
|
-
backgroundColor: "bg-transparent",
|
|
566
|
-
textColor: "text-success-600",
|
|
567
|
-
borderColor: "border border-success-300",
|
|
568
|
-
hoverBackgroundColor: "hover:bg-success-100",
|
|
569
|
-
hoverTextColor: "hover:text-success-700",
|
|
570
|
-
focusRing: "focus:ring-success-200"
|
|
571
|
-
},
|
|
572
|
-
outlinedDanger: {
|
|
573
|
-
backgroundColor: "bg-transparent",
|
|
574
|
-
textColor: "text-danger-600",
|
|
575
|
-
borderColor: "border border-danger-300",
|
|
576
|
-
hoverBackgroundColor: "hover:bg-danger-100",
|
|
577
|
-
hoverTextColor: "hover:text-danger-700",
|
|
578
|
-
focusRing: "focus:ring-danger-200"
|
|
579
|
-
},
|
|
580
|
-
outlinedWarning: {
|
|
581
|
-
backgroundColor: "bg-transparent",
|
|
582
|
-
textColor: "text-warning-600",
|
|
583
|
-
borderColor: "border border-warning-300",
|
|
584
|
-
hoverBackgroundColor: "hover:bg-warning-100",
|
|
585
|
-
hoverTextColor: "hover:text-warning-700",
|
|
586
|
-
focusRing: "focus:ring-warning-200"
|
|
587
|
-
},
|
|
588
|
-
/* ---------------- Ghost Buttons ---------------- */
|
|
589
|
-
ghost: {
|
|
590
|
-
backgroundColor: "bg-transparent",
|
|
591
|
-
textColor: "text-neutral-700",
|
|
592
|
-
hoverBackgroundColor: "hover:bg-neutral-100",
|
|
593
|
-
hoverTextColor: "hover:text-neutral-900",
|
|
594
|
-
focusRing: "focus:ring-neutral-200"
|
|
595
|
-
},
|
|
596
|
-
ghostPrimary: {
|
|
597
|
-
backgroundColor: "bg-transparent",
|
|
598
|
-
textColor: "text-brand-primary-700",
|
|
599
|
-
hoverBackgroundColor: "hover:bg-brand-primary-100",
|
|
600
|
-
hoverTextColor: "hover:text-brand-primary-800",
|
|
601
|
-
focusRing: "focus:ring-brand-primary-200"
|
|
602
|
-
},
|
|
603
|
-
ghostSuccess: {
|
|
604
|
-
backgroundColor: "bg-transparent",
|
|
605
|
-
textColor: "text-success-600",
|
|
606
|
-
hoverBackgroundColor: "hover:bg-success-100",
|
|
607
|
-
hoverTextColor: "hover:text-success-700",
|
|
608
|
-
focusRing: "focus:ring-success-200"
|
|
609
|
-
},
|
|
610
|
-
ghostDanger: {
|
|
611
|
-
backgroundColor: "bg-transparent",
|
|
612
|
-
textColor: "text-danger-600",
|
|
613
|
-
hoverBackgroundColor: "hover:bg-danger-100",
|
|
614
|
-
hoverTextColor: "hover:text-danger-700",
|
|
615
|
-
focusRing: "focus:ring-danger-200"
|
|
616
|
-
},
|
|
617
|
-
ghostWarning: {
|
|
618
|
-
backgroundColor: "bg-transparent",
|
|
619
|
-
textColor: "text-warning-600",
|
|
620
|
-
hoverBackgroundColor: "hover:bg-warning-100",
|
|
621
|
-
hoverTextColor: "hover:text-warning-700",
|
|
622
|
-
focusRing: "focus:ring-warning-200"
|
|
623
|
-
}
|
|
624
|
-
}, Fe = {
|
|
625
|
-
__name: "Badge",
|
|
626
|
-
props: {
|
|
627
|
-
variant: { type: String, default: "primary" }
|
|
628
|
-
},
|
|
629
|
-
setup(e) {
|
|
630
|
-
const t = e;
|
|
631
|
-
return (r, n) => (a(), s("div", {
|
|
632
|
-
class: p(["rounded-full px-3 py-1 text-xs font-medium", [
|
|
633
|
-
d(W)[t.variant].backgroundColor,
|
|
634
|
-
d(W)[t.variant].textColor
|
|
635
|
-
]])
|
|
636
|
-
}, [
|
|
637
|
-
i(r.$slots, "default")
|
|
638
|
-
], 2));
|
|
639
|
-
}
|
|
640
|
-
}, qe = {
|
|
641
|
-
__name: "Button",
|
|
642
|
-
props: {
|
|
643
|
-
variant: { type: String, default: "primary" }
|
|
644
|
-
},
|
|
645
|
-
setup(e, { expose: t }) {
|
|
646
|
-
const r = e, n = x(null);
|
|
647
|
-
return t({ buttonRef: n }), (o, l) => (a(), s("button", $(o.$attrs, {
|
|
648
|
-
class: ["cursor-pointer rounded-lg px-4 py-2 text-xs transition-all active:scale-[0.97] disabled:cursor-not-allowed disabled:opacity-50 disabled:active:scale-100", [
|
|
649
|
-
d(S)[r.variant].backgroundColor,
|
|
650
|
-
d(S)[r.variant].borderColor,
|
|
651
|
-
d(S)[r.variant].textColor,
|
|
652
|
-
d(S)[r.variant].hoverBackgroundColor,
|
|
653
|
-
d(S)[r.variant].hoverTextColor,
|
|
654
|
-
d(S)[r.variant].focusRing
|
|
655
|
-
]],
|
|
656
|
-
ref_key: "buttonRef",
|
|
657
|
-
ref: n
|
|
658
|
-
}), [
|
|
659
|
-
i(o.$slots, "default")
|
|
660
|
-
], 16));
|
|
661
|
-
}
|
|
662
|
-
}, Ue = {}, Ze = { class: "rounded-2xl bg-white p-6" };
|
|
663
|
-
function Je(e, t) {
|
|
664
|
-
return a(), s("div", Ze, [
|
|
665
|
-
i(e.$slots, "default")
|
|
666
|
-
]);
|
|
667
|
-
}
|
|
668
|
-
const L = /* @__PURE__ */ f(Ue, [["render", Je]]), Ye = {
|
|
669
|
-
__name: "Checkbox",
|
|
670
|
-
props: {
|
|
671
|
-
modelValue: {},
|
|
672
|
-
modelModifiers: {}
|
|
673
|
-
},
|
|
674
|
-
emits: ["update:modelValue"],
|
|
675
|
-
setup(e) {
|
|
676
|
-
const t = V(e, "modelValue"), r = x(null);
|
|
677
|
-
return (n, o) => (a(), s("button", {
|
|
678
|
-
onClick: o[2] || (o[2] = (l) => r.value.click()),
|
|
679
|
-
class: "group/checkbox has-checked:bg-brand-primary-700 flex size-4 cursor-pointer items-center justify-center rounded-sm bg-neutral-200 transition-all duration-300 active:scale-[0.50] has-disabled:cursor-not-allowed has-disabled:opacity-50"
|
|
680
|
-
}, [
|
|
681
|
-
o[3] || (o[3] = c("svg", {
|
|
682
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
683
|
-
width: "14",
|
|
684
|
-
height: "14",
|
|
685
|
-
viewBox: "0 0 24 24",
|
|
686
|
-
fill: "none",
|
|
687
|
-
stroke: "currentColor",
|
|
688
|
-
"stroke-width": "2",
|
|
689
|
-
"stroke-linecap": "round",
|
|
690
|
-
"stroke-linejoin": "round",
|
|
691
|
-
class: "lucide lucide-check-icon lucide-check scale-0 stroke-white opacity-0 group-has-[:checked]/checkbox:scale-100 group-has-[:checked]/checkbox:opacity-100"
|
|
692
|
-
}, [
|
|
693
|
-
c("path", { d: "M20 6 9 17l-5-5" })
|
|
694
|
-
], -1)),
|
|
695
|
-
B(c("input", $(n.$attrs, {
|
|
696
|
-
"onUpdate:modelValue": o[0] || (o[0] = (l) => t.value = l),
|
|
697
|
-
onChange: o[1] || (o[1] = H(() => {
|
|
698
|
-
}, ["stop"])),
|
|
699
|
-
type: "checkbox",
|
|
700
|
-
ref_key: "checkboxRef",
|
|
701
|
-
ref: r,
|
|
702
|
-
hidden: ""
|
|
703
|
-
}), null, 16), [
|
|
704
|
-
[Y, t.value]
|
|
705
|
-
])
|
|
706
|
-
]));
|
|
707
|
-
}
|
|
708
|
-
}, Xe = {
|
|
709
|
-
__name: "Dialog",
|
|
710
|
-
setup(e) {
|
|
711
|
-
const t = x(!1);
|
|
712
|
-
function r() {
|
|
713
|
-
t.value = !t.value;
|
|
714
|
-
}
|
|
715
|
-
return I("DIALOG_META", { toggled: t, toggleDialog: r }), (n, o) => i(n.$slots, "default", {
|
|
716
|
-
toggled: t.value,
|
|
717
|
-
toggleDialog: r
|
|
718
|
-
});
|
|
719
|
-
}
|
|
720
|
-
}, j = {
|
|
721
|
-
__name: "DialogBackground",
|
|
722
|
-
setup(e) {
|
|
723
|
-
return X(() => {
|
|
724
|
-
document.querySelector("body").classList.add("overflow-hidden");
|
|
725
|
-
}), Q(() => {
|
|
726
|
-
document.querySelector("body").classList.remove("overflow-hidden");
|
|
727
|
-
}), (t, r) => (a(), s("div", $(t.$attrs, { class: "pointer-events-auto fixed inset-0 z-[100] min-h-screen bg-black/80" }), [
|
|
728
|
-
i(t.$slots, "default")
|
|
729
|
-
], 16));
|
|
730
|
-
}
|
|
731
|
-
}, Qe = {
|
|
732
|
-
__name: "DialogContent",
|
|
733
|
-
props: {
|
|
734
|
-
class: { type: String }
|
|
735
|
-
},
|
|
736
|
-
setup(e) {
|
|
737
|
-
const t = e, { toggled: r, toggleDialog: n } = h("DIALOG_META");
|
|
738
|
-
return (o, l) => (a(), g(z, { to: "body" }, [
|
|
739
|
-
T(R, { name: "fade-in" }, {
|
|
740
|
-
default: v(() => [
|
|
741
|
-
d(r) ? (a(), g(j, {
|
|
742
|
-
key: 0,
|
|
743
|
-
onClick: l[0] || (l[0] = (u) => d(n)()),
|
|
744
|
-
class: "z-[175]"
|
|
745
|
-
})) : w("", !0)
|
|
746
|
-
]),
|
|
747
|
-
_: 1
|
|
748
|
-
}),
|
|
749
|
-
T(R, { name: "fade-in-dialog" }, {
|
|
750
|
-
default: v(() => [
|
|
751
|
-
d(r) ? (a(), g(L, {
|
|
752
|
-
key: 0,
|
|
753
|
-
class: p(["fixed top-1/2 left-1/2 z-[200] -translate-x-1/2 -translate-y-1/2 rounded-xl bg-white transition-all", t.class])
|
|
754
|
-
}, {
|
|
755
|
-
default: v(() => [
|
|
756
|
-
i(o.$slots, "default")
|
|
757
|
-
]),
|
|
758
|
-
_: 3
|
|
759
|
-
}, 8, ["class"])) : w("", !0)
|
|
760
|
-
]),
|
|
761
|
-
_: 3
|
|
762
|
-
})
|
|
763
|
-
]));
|
|
764
|
-
}
|
|
765
|
-
}, Ke = {
|
|
766
|
-
__name: "DialogToggle",
|
|
767
|
-
setup(e) {
|
|
768
|
-
const t = M(), { toggleDialog: r } = h("DIALOG_META");
|
|
769
|
-
return (n, o) => {
|
|
770
|
-
var l, u;
|
|
771
|
-
return a(), g(k(
|
|
772
|
-
C((u = (l = d(t)).default) == null ? void 0 : u.call(l)[0], {
|
|
773
|
-
onClick: d(r)
|
|
774
|
-
})
|
|
775
|
-
));
|
|
776
|
-
};
|
|
777
|
-
}
|
|
778
|
-
}, et = {}, tt = { class: "flex flex-col items-center justify-center gap-8" }, rt = { class: "flex max-w-xs flex-col items-center gap-2 text-center" }, ot = { class: "bg-brand-primary-100 mb-2 grid size-12 place-items-center rounded-full" };
|
|
779
|
-
function nt(e, t) {
|
|
780
|
-
return a(), s("div", tt, [
|
|
781
|
-
c("div", rt, [
|
|
782
|
-
c("div", ot, [
|
|
783
|
-
i(e.$slots, "icon")
|
|
784
|
-
]),
|
|
785
|
-
i(e.$slots, "default")
|
|
786
|
-
])
|
|
787
|
-
]);
|
|
788
|
-
}
|
|
789
|
-
const at = /* @__PURE__ */ f(et, [["render", nt]]), st = {}, lt = { class: "text-sm text-neutral-600" };
|
|
790
|
-
function it(e, t) {
|
|
791
|
-
return a(), s("p", lt, [
|
|
792
|
-
i(e.$slots, "default")
|
|
793
|
-
]);
|
|
794
|
-
}
|
|
795
|
-
const Zt = /* @__PURE__ */ f(st, [["render", it]]), dt = {}, ct = { class: "text-lg font-medium" };
|
|
796
|
-
function ut(e, t) {
|
|
797
|
-
return a(), s("b", ct, [
|
|
798
|
-
i(e.$slots, "default")
|
|
799
|
-
]);
|
|
800
|
-
}
|
|
801
|
-
const Jt = /* @__PURE__ */ f(dt, [["render", ut]]), gt = {
|
|
802
|
-
__name: "FormField",
|
|
803
|
-
props: {
|
|
804
|
-
invalid: { type: [Boolean, String] },
|
|
805
|
-
validate: { type: Boolean, default: !1 }
|
|
806
|
-
},
|
|
807
|
-
setup(e) {
|
|
808
|
-
const t = e, r = O(() => t.invalid === !0 || typeof t.invalid == "string" && t.invalid.trim() !== "");
|
|
809
|
-
return (n, o) => (a(), s("div", {
|
|
810
|
-
class: p(["group flex flex-col gap-2", { "invalid-form": r.value }])
|
|
811
|
-
}, [
|
|
812
|
-
i(n.$slots, "default")
|
|
813
|
-
], 2));
|
|
814
|
-
}
|
|
815
|
-
}, pt = {}, mt = { class: "text-danger-700 hidden h-0 text-xs opacity-0 transition-all group-has-user-invalid:mt-1 group-has-user-invalid:block group-has-user-invalid:h-4 group-has-user-invalid:opacity-100 group-[&.invalid-form]:mt-1 group-[&.invalid-form]:block group-[&.invalid-form]:h-4 group-[&.invalid-form]:opacity-100" };
|
|
816
|
-
function bt(e, t) {
|
|
817
|
-
return a(), s("p", mt, [
|
|
818
|
-
i(e.$slots, "default", {}, void 0, !0)
|
|
819
|
-
]);
|
|
820
|
-
}
|
|
821
|
-
const ft = /* @__PURE__ */ f(pt, [["render", bt], ["__scopeId", "data-v-a299dc33"]]), ht = {
|
|
822
|
-
__name: "Input",
|
|
823
|
-
props: {
|
|
824
|
-
modelValue: {},
|
|
825
|
-
modelModifiers: {}
|
|
826
|
-
},
|
|
827
|
-
emits: ["update:modelValue"],
|
|
828
|
-
setup(e) {
|
|
829
|
-
const t = V(e, "modelValue");
|
|
830
|
-
return (r, n) => B((a(), s("input", {
|
|
831
|
-
"onUpdate:modelValue": n[0] || (n[0] = (o) => t.value = o),
|
|
832
|
-
class: "group-[&.invalid-form]:focus:ring-danger-700 group-[&.invalid-form]:ring-danger-700 text-primary-950 focus:ring-brand-primary-700 focus:user-invalid:ring-danger-700 user-invalid:ring-danger-700 rounded-lg border-[1px] border-neutral-200 bg-white px-3 py-2 text-xs ring-offset-2 transition-all duration-300 outline-none group-[&.invalid-form]:ring-2 placeholder:text-neutral-400 user-invalid:ring-2 focus:ring-2 group-[&.invalid-form]:focus:ring-2 disabled:cursor-not-allowed disabled:opacity-50"
|
|
833
|
-
}, null, 512)), [
|
|
834
|
-
[F, t.value]
|
|
835
|
-
]);
|
|
836
|
-
}
|
|
837
|
-
}, vt = {};
|
|
838
|
-
function xt(e, t) {
|
|
839
|
-
return a(), s("label", $(e.$attrs, { class: "text-primary-950 text-xs font-medium transition-all" }), [
|
|
840
|
-
i(e.$slots, "default")
|
|
841
|
-
], 16);
|
|
842
|
-
}
|
|
843
|
-
const _t = /* @__PURE__ */ f(vt, [["render", xt]]), yt = {
|
|
844
|
-
__name: "Radio",
|
|
845
|
-
props: /* @__PURE__ */ K({
|
|
846
|
-
variant: { type: String, default: "small" }
|
|
847
|
-
}, {
|
|
848
|
-
modelValue: {},
|
|
849
|
-
modelModifiers: {}
|
|
850
|
-
}),
|
|
851
|
-
emits: ["update:modelValue"],
|
|
852
|
-
setup(e) {
|
|
853
|
-
const t = V(e, "modelValue"), r = e, n = x(null), o = {
|
|
854
|
-
small: { outerCircleSize: "size-4", innerCircleSize: "size-2.5" },
|
|
855
|
-
large: { outerCircleSize: "size-5", innerCircleSize: "size-3" }
|
|
856
|
-
};
|
|
857
|
-
return (l, u) => (a(), s("button", {
|
|
858
|
-
onClick: u[2] || (u[2] = (m) => n.value.click()),
|
|
859
|
-
class: p(["group/radio has-checked:border-brand-primary-700 flex cursor-pointer items-center justify-center rounded-full border-[1px] border-transparent bg-neutral-100 duration-300 active:scale-[0.80] has-checked:bg-white", o[r.variant].outerCircleSize]),
|
|
860
|
-
role: "radio",
|
|
861
|
-
type: "button"
|
|
862
|
-
}, [
|
|
863
|
-
c("div", {
|
|
864
|
-
class: p(["group-has-checked/radio:bg-brand-primary-700 grid place-items-center rounded-full opacity-0 transition-all group-has-checked/radio:opacity-100", o[r.variant].innerCircleSize])
|
|
865
|
-
}, [
|
|
866
|
-
i(l.$slots, "default")
|
|
867
|
-
], 2),
|
|
868
|
-
B(c("input", $({
|
|
869
|
-
onChange: u[0] || (u[0] = H(() => {
|
|
870
|
-
}, ["stop"]))
|
|
871
|
-
}, l.$attrs, {
|
|
872
|
-
"onUpdate:modelValue": u[1] || (u[1] = (m) => t.value = m),
|
|
873
|
-
type: "radio",
|
|
874
|
-
ref_key: "radioRef",
|
|
875
|
-
ref: n,
|
|
876
|
-
hidden: ""
|
|
877
|
-
}), null, 16), [
|
|
878
|
-
[ee, t.value]
|
|
879
|
-
])
|
|
880
|
-
], 2));
|
|
881
|
-
}
|
|
882
|
-
}, kt = "bg-[url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiM1YjYxNmUiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBjbGFzcz0ibHVjaWRlIGx1Y2lkZS1jaGV2cm9uLWRvd24iPjxwYXRoIGQ9Im02IDkgNiA2IDYtNiIvPjwvc3ZnPg==')]", Ct = {
|
|
883
|
-
__name: "Select",
|
|
884
|
-
props: {
|
|
885
|
-
modelValue: {},
|
|
886
|
-
modelModifiers: {}
|
|
887
|
-
},
|
|
888
|
-
emits: ["update:modelValue"],
|
|
889
|
-
setup(e) {
|
|
890
|
-
const t = V(e, "modelValue");
|
|
891
|
-
return (r, n) => B((a(), s("select", $(r.$attrs, {
|
|
892
|
-
"onUpdate:modelValue": n[0] || (n[0] = (o) => t.value = o),
|
|
893
|
-
class: ["group-[&.invalid-form]:ring-danger-700 group-[&.invalid-form]:focus:ring-danger-700 text-primary-950 user-invalid:ring-danger-700 focus:user-invalid:ring-danger-700 focus:ring-brand-primary-700 appearance-none rounded-lg border-[1px] border-neutral-200 bg-white bg-[length:16px] bg-[right_12px_center] bg-no-repeat px-3 py-2 text-xs ring-offset-2 transition-all outline-none group-[&.invalid-form]:ring-2 user-invalid:ring-2 focus:ring-2 group-[&.invalid-form]:focus:ring-2 disabled:cursor-not-allowed disabled:opacity-50", kt]
|
|
894
|
-
}), [
|
|
895
|
-
i(r.$slots, "default")
|
|
896
|
-
], 16)), [
|
|
897
|
-
[te, t.value]
|
|
898
|
-
]);
|
|
899
|
-
}
|
|
900
|
-
}, wt = {
|
|
901
|
-
__name: "Sheet",
|
|
902
|
-
setup(e) {
|
|
903
|
-
const t = x(!1);
|
|
904
|
-
function r() {
|
|
905
|
-
t.value = !t.value;
|
|
906
|
-
}
|
|
907
|
-
return I("SHEET_META", { toggled: t, toggleSheet: r }), (n, o) => i(n.$slots, "default", {
|
|
908
|
-
toggled: t.value,
|
|
909
|
-
toggleSheet: r
|
|
910
|
-
});
|
|
911
|
-
}
|
|
912
|
-
}, $t = {
|
|
913
|
-
__name: "SheetContent",
|
|
914
|
-
props: {
|
|
915
|
-
class: { type: String }
|
|
916
|
-
},
|
|
917
|
-
setup(e) {
|
|
918
|
-
const t = e, { toggled: r, toggleSheet: n } = h("SHEET_META");
|
|
919
|
-
return (o, l) => (a(), g(z, { to: "body" }, [
|
|
920
|
-
T(R, { name: "fade-in" }, {
|
|
921
|
-
default: v(() => [
|
|
922
|
-
d(r) ? (a(), g(j, {
|
|
923
|
-
key: 0,
|
|
924
|
-
onClick: l[0] || (l[0] = (u) => d(n)())
|
|
925
|
-
})) : w("", !0)
|
|
926
|
-
]),
|
|
927
|
-
_: 1
|
|
928
|
-
}),
|
|
929
|
-
T(R, { name: "slide" }, {
|
|
930
|
-
default: v(() => [
|
|
931
|
-
d(r) ? (a(), g(L, {
|
|
932
|
-
key: 0,
|
|
933
|
-
class: p(["fixed top-1/2 right-0 z-[150] h-full w-3/4 -translate-y-1/2 rounded-e-none bg-white transition-all md:right-[1rem] md:h-[calc(100dvh-2rem)] md:w-96 md:rounded-xl", t.class])
|
|
934
|
-
}, {
|
|
935
|
-
default: v(() => [
|
|
936
|
-
i(o.$slots, "default")
|
|
937
|
-
]),
|
|
938
|
-
_: 3
|
|
939
|
-
}, 8, ["class"])) : w("", !0)
|
|
940
|
-
]),
|
|
941
|
-
_: 3
|
|
942
|
-
})
|
|
943
|
-
]));
|
|
944
|
-
}
|
|
945
|
-
}, At = {
|
|
946
|
-
__name: "SheetToggle",
|
|
947
|
-
setup(e) {
|
|
948
|
-
const t = M(), { toggleSheet: r } = h("SHEET_META");
|
|
949
|
-
return (n, o) => {
|
|
950
|
-
var l, u;
|
|
951
|
-
return a(), g(k(
|
|
952
|
-
C((u = (l = d(t)).default) == null ? void 0 : u.call(l)[0], {
|
|
953
|
-
onClick: d(r)
|
|
954
|
-
})
|
|
955
|
-
));
|
|
956
|
-
};
|
|
957
|
-
}
|
|
958
|
-
}, St = {}, Tt = { class: "bg-primary-100 animate-pulse rounded-lg" };
|
|
959
|
-
function It(e, t) {
|
|
960
|
-
return a(), s("div", Tt);
|
|
961
|
-
}
|
|
962
|
-
const Bt = /* @__PURE__ */ f(St, [["render", It]]), Dt = {}, Rt = { class: "flex items-center gap-2" };
|
|
963
|
-
function Vt(e, t) {
|
|
964
|
-
return a(), s("div", Rt, [
|
|
965
|
-
i(e.$slots, "default")
|
|
966
|
-
]);
|
|
967
|
-
}
|
|
968
|
-
const Yt = /* @__PURE__ */ f(Dt, [["render", Vt]]), Pt = {
|
|
969
|
-
__name: "Switch",
|
|
970
|
-
props: ["modelValue"],
|
|
971
|
-
emits: ["update:modelValue"],
|
|
972
|
-
setup(e, { emit: t }) {
|
|
973
|
-
const r = t, n = e;
|
|
974
|
-
function o() {
|
|
975
|
-
r("update:modelValue", !n.modelValue);
|
|
976
|
-
}
|
|
977
|
-
return (l, u) => (a(), s("button", $(l.$attrs, {
|
|
978
|
-
onClick: u[0] || (u[0] = (m) => o()),
|
|
979
|
-
class: [
|
|
980
|
-
"group/switch h-5 w-9 cursor-pointer rounded-full p-0.5 transition-all duration-300 disabled:cursor-not-allowed disabled:opacity-50",
|
|
981
|
-
n.modelValue ? "from-brand-primary-600 to-brand-primary-700 bg-gradient-to-br" : "bg-neutral-200"
|
|
982
|
-
],
|
|
983
|
-
role: "switch",
|
|
984
|
-
type: "button"
|
|
985
|
-
}), [
|
|
986
|
-
c("span", {
|
|
987
|
-
class: p(["pointer-events-none flex size-4 items-center justify-center rounded-full bg-white shadow-md transition-all duration-300", { "translate-x-full": n.modelValue }])
|
|
988
|
-
}, [
|
|
989
|
-
i(l.$slots, "icon")
|
|
990
|
-
], 2)
|
|
991
|
-
], 16));
|
|
992
|
-
}
|
|
993
|
-
}, Et = { class: "w-full" }, Mt = { class: "h-16" }, zt = { key: 0 }, Lt = {
|
|
994
|
-
key: 0,
|
|
995
|
-
class: "pe-4"
|
|
996
|
-
}, jt = {
|
|
997
|
-
__name: "Table",
|
|
998
|
-
props: {
|
|
999
|
-
columns: { type: Array, required: !0 },
|
|
1000
|
-
data: { type: Array, required: !0 }
|
|
1001
|
-
},
|
|
1002
|
-
setup(e) {
|
|
1003
|
-
const t = e;
|
|
1004
|
-
return (r, n) => (a(), s("table", Et, [
|
|
1005
|
-
c("thead", null, [
|
|
1006
|
-
c("tr", Mt, [
|
|
1007
|
-
(a(!0), s(D, null, E(t.columns, (o) => (a(), s("th", {
|
|
1008
|
-
key: o.key,
|
|
1009
|
-
class: "text-xs font-medium text-neutral-600 first-of-type:ps-4"
|
|
1010
|
-
}, N(o.label), 1))), 128)),
|
|
1011
|
-
r.$slots.actions ? (a(), s("th", zt)) : w("", !0)
|
|
1012
|
-
])
|
|
1013
|
-
]),
|
|
1014
|
-
c("tbody", null, [
|
|
1015
|
-
(a(!0), s(D, null, E(t.data, (o, l) => (a(), s("tr", {
|
|
1016
|
-
key: l,
|
|
1017
|
-
class: "odd:bg-background-main/50 hover:bg-background-main min-h-16 rounded-md transition-all"
|
|
1018
|
-
}, [
|
|
1019
|
-
(a(!0), s(D, null, E(t.columns, (u) => (a(), s("td", {
|
|
1020
|
-
key: u.key,
|
|
1021
|
-
class: "text-primary-950 py-4 text-xs first-of-type:rounded-s-md first-of-type:ps-4 last-of-type:rounded-e-md last-of-type:pe-4"
|
|
1022
|
-
}, [
|
|
1023
|
-
i(r.$slots, u.key, { row: o }, () => [
|
|
1024
|
-
re(N(o[u.key]), 1)
|
|
1025
|
-
])
|
|
1026
|
-
]))), 128)),
|
|
1027
|
-
r.$slots.actions ? (a(), s("td", Lt, [
|
|
1028
|
-
i(r.$slots, "actions", { row: o })
|
|
1029
|
-
])) : w("", !0)
|
|
1030
|
-
]))), 128))
|
|
1031
|
-
])
|
|
1032
|
-
]));
|
|
1033
|
-
}
|
|
1034
|
-
}, Gt = { class: "overflow-x-scroll rounded-xl bg-neutral-100/50 p-1 [&::-webkit-scrollbar]:hidden" }, Nt = {
|
|
1035
|
-
__name: "Tabs",
|
|
1036
|
-
props: {
|
|
1037
|
-
default: { default: null }
|
|
1038
|
-
},
|
|
1039
|
-
setup(e) {
|
|
1040
|
-
const r = x(e.default);
|
|
1041
|
-
function n(o) {
|
|
1042
|
-
r.value = o;
|
|
1043
|
-
}
|
|
1044
|
-
return I("TAB_DATA", { currentValue: r, setCurrentValue: n }), (o, l) => (a(), s("div", Gt, [
|
|
1045
|
-
i(o.$slots, "default")
|
|
1046
|
-
]));
|
|
1047
|
-
}
|
|
1048
|
-
}, Wt = {
|
|
1049
|
-
__name: "TabItem",
|
|
1050
|
-
props: {
|
|
1051
|
-
value: { required: !0 }
|
|
1052
|
-
},
|
|
1053
|
-
setup(e) {
|
|
1054
|
-
const t = e, r = h("TAB_DATA"), { currentValue: n, setCurrentValue: o } = r, l = O(() => n.value === t.value ? [
|
|
1055
|
-
"bg-white",
|
|
1056
|
-
"font-medium",
|
|
1057
|
-
"text-primary-700",
|
|
1058
|
-
"shadow-xl",
|
|
1059
|
-
"tab-active"
|
|
1060
|
-
] : "text-neutral-600");
|
|
1061
|
-
return (u, m) => (a(), s("button", {
|
|
1062
|
-
onClick: m[0] || (m[0] = (y) => d(o)(t.value)),
|
|
1063
|
-
class: p(["tab h-8 cursor-pointer rounded-lg px-3 text-xs transition-all disabled:cursor-not-allowed disabled:opacity-50", l.value])
|
|
1064
|
-
}, [
|
|
1065
|
-
i(u.$slots, "default", {}, void 0, !0)
|
|
1066
|
-
], 2));
|
|
1067
|
-
}
|
|
1068
|
-
}, Ht = /* @__PURE__ */ f(Wt, [["__scopeId", "data-v-9e06f71f"]]), Ot = {
|
|
1069
|
-
__name: "TextArea",
|
|
1070
|
-
props: ["modelValue"],
|
|
1071
|
-
setup(e) {
|
|
1072
|
-
const r = x(e.modelValue);
|
|
1073
|
-
return (n, o) => B((a(), s("textarea", $({
|
|
1074
|
-
onInput: o[0] || (o[0] = (l) => n.$emit("update:modelValue", l.target.value))
|
|
1075
|
-
}, n.$attrs, {
|
|
1076
|
-
"onUpdate:modelValue": o[1] || (o[1] = (l) => r.value = l),
|
|
1077
|
-
class: "text-primary-950 neutral-400:text-neutral-400 focus:ring-brand-primary-700 user-invalid:ring-danger-700 focus:user-invalid:ring-danger-700 rounded-lg border-[1px] border-neutral-200 px-3 py-2 text-xs transition-all outline-none user-invalid:ring-2 focus:ring-2 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50"
|
|
1078
|
-
}), null, 16)), [
|
|
1079
|
-
[F, r.value]
|
|
1080
|
-
]);
|
|
1081
|
-
}
|
|
1082
|
-
}, Xt = {
|
|
1083
|
-
install(e) {
|
|
1084
|
-
e.component("Alert", oe), e.component("AlertContent", le), e.component("AlertTitle", ue), e.component("AppHeaderLink", he), e.component("AppLayout", _e), e.component("AppMain", ye), e.component("AppNavTabs", $e), e.component("AppNavTab", Se), e.component("AppSidebar", Ie), e.component("AppSidebarItem", De), e.component("AppSidebarItemChild", Ve), e.component("AppSidebarItemChildren", Pe), e.component("AppSidebarItemParent", ze), e.component("AppSidebarToggle", je), e.component("AppSidebarNavSection", Oe), e.component("Badge", Fe), e.component("Button", qe), e.component("Checkbox", Ye), e.component("Card", L), e.component("Dialog", Xe), e.component("DialogContent", Qe), e.component("DialogToggle", Ke), e.component("DialogBackground", j), e.component("Empty", at), e.component("FormField", gt), e.component("FormFieldError", ft), e.component("Input", ht), e.component("Label", _t), e.component("Radio", yt), e.component("Select", Ct), e.component("Sheet", wt), e.component("SheetContent", $t), e.component("SheetToggle", At), e.component("SkeletonLoader", Bt), e.component("Switch", Pt), e.component("Table", jt), e.component("Tabs", Nt), e.component("TabItem", Ht), e.component("TextArea", Ot);
|
|
1085
|
-
}
|
|
1086
|
-
};
|
|
1
|
+
import "vue";
|
|
2
|
+
import { _ as t, A as p, a as o, b as r, c as i, d as l, e as d, g as n, f as A, h as S, i as b, j as g, k as m, l as T, n as C, m as c, o as h, p as u, C as I, q as k, D as y, t as D, r as E, s as F, E as L, u as v, v as x, w as B, F as N, x as f, L as H, y as M, z as w, B as P, S as j, G as q, H as z, I as G, J, K, T as O, M as R, N as _, O as Q, P as U } from "./index-BF-I-8pN.js";
|
|
1087
3
|
export {
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
4
|
+
t as Alert,
|
|
5
|
+
p as AlertContent,
|
|
6
|
+
o as AlertTitle,
|
|
7
|
+
r as AppHeader,
|
|
8
|
+
i as AppHeaderLink,
|
|
9
|
+
l as AppLayout,
|
|
10
|
+
d as AppMain,
|
|
11
|
+
n as AppNavTab,
|
|
12
|
+
A as AppNavTabs,
|
|
13
|
+
S as AppSidebar,
|
|
14
|
+
b as AppSidebarItem,
|
|
15
|
+
g as AppSidebarItemChild,
|
|
16
|
+
m as AppSidebarItemChildren,
|
|
17
|
+
T as AppSidebarItemParent,
|
|
18
|
+
C as AppSidebarNavSection,
|
|
19
|
+
c as AppSidebarToggle,
|
|
20
|
+
h as Badge,
|
|
21
|
+
u as Button,
|
|
22
|
+
I as Card,
|
|
23
|
+
k as Checkbox,
|
|
24
|
+
y as Dialog,
|
|
25
|
+
D as DialogBackground,
|
|
26
|
+
E as DialogContent,
|
|
27
|
+
F as DialogToggle,
|
|
28
|
+
L as Empty,
|
|
29
|
+
v as EmptyContent,
|
|
30
|
+
x as EmptyTitle,
|
|
31
|
+
B as FormField,
|
|
32
|
+
N as FormFieldError,
|
|
33
|
+
f as Input,
|
|
34
|
+
H as Label,
|
|
35
|
+
M as MultiSelect,
|
|
36
|
+
w as Radio,
|
|
37
|
+
P as Select,
|
|
38
|
+
j as Sheet,
|
|
39
|
+
q as SheetContent,
|
|
40
|
+
z as SheetToggle,
|
|
41
|
+
G as SkeletonLoader,
|
|
42
|
+
J as StateActions,
|
|
43
|
+
K as Switch,
|
|
44
|
+
O as TabItem,
|
|
45
|
+
R as Table,
|
|
46
|
+
_ as Tabs,
|
|
47
|
+
Q as TextArea,
|
|
48
|
+
U as default
|
|
1132
49
|
};
|