scrubbed-tailwind-components-v2 2.4.4 → 2.5.1
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/{DialogContent-BfrkVmQ4.js → DialogContent-BrXhtNDl.js} +1 -1
- package/dist/{SheetContent-CcUAnFV8.js → SheetContent-CwM7Ef5X.js} +1 -1
- package/dist/{index-Bae24DF4.js → index-BF-I-8pN.js} +326 -309
- package/dist/scrubbed-tailwind-components-v2.es.js +1 -1
- package/dist/scrubbed-tailwind-components-v2.umd.js +1 -1
- package/package.json +5 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useSlots as
|
|
2
|
-
import { RouterLink as
|
|
1
|
+
import { useSlots as W, provide as P, createElementBlock as s, openBlock as a, normalizeClass as f, createElementVNode as i, createBlock as x, resolveDynamicComponent as $, cloneVNode as A, unref as c, renderSlot as l, inject as y, withCtx as V, ref as _, createVNode as j, Fragment as S, createCommentVNode as T, Teleport as K, normalizeStyle as U, watch as Z, resolveComponent as J, mergeProps as k, useModel as B, withDirectives as I, withModifiers as O, vModelCheckbox as Y, computed as L, vModelText as E, mergeModels as N, onMounted as X, renderList as R, createTextVNode as q, toDisplayString as D, vModelRadio as Q, vModelSelect as ee, defineAsyncComponent as C } from "vue";
|
|
2
|
+
import { RouterLink as z, useRoute as H } from "vue-router";
|
|
3
3
|
const re = {
|
|
4
4
|
__name: "Alert",
|
|
5
5
|
props: {
|
|
@@ -10,7 +10,7 @@ const re = {
|
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
12
|
setup(e) {
|
|
13
|
-
const r =
|
|
13
|
+
const r = W(), t = e, n = {
|
|
14
14
|
info: {
|
|
15
15
|
root: "bg-brand-primary-100 border-brand-primary-300 text-brand-primary-900 ",
|
|
16
16
|
icon: "bg-brand-primary-300 text-brand-primary-700"
|
|
@@ -27,7 +27,7 @@ const re = {
|
|
|
27
27
|
root: "bg-danger-100 border-danger-300 text-danger-700",
|
|
28
28
|
icon: "bg-danger-300 text-red-700"
|
|
29
29
|
}
|
|
30
|
-
},
|
|
30
|
+
}, o = {
|
|
31
31
|
info: {
|
|
32
32
|
icon: "stroke-brand-primary-900"
|
|
33
33
|
},
|
|
@@ -41,56 +41,56 @@ const re = {
|
|
|
41
41
|
icon: "stroke-danger-700"
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
|
-
return P("ALERT", { VARIANT_MAP:
|
|
45
|
-
var m, p, b, g, v,
|
|
44
|
+
return P("ALERT", { VARIANT_MAP: n }), (d, u) => {
|
|
45
|
+
var m, p, b, g, v, M;
|
|
46
46
|
return a(), s("div", {
|
|
47
|
-
class: f(["flex w-full gap-4 rounded-2xl border p-4",
|
|
47
|
+
class: f(["flex w-full gap-4 rounded-2xl border p-4", n[t.variant].root])
|
|
48
48
|
}, [
|
|
49
|
-
|
|
50
|
-
class: f(["grid size-10 place-items-center rounded-full",
|
|
49
|
+
i("div", {
|
|
50
|
+
class: f(["grid size-10 place-items-center rounded-full", n[t.variant].icon])
|
|
51
51
|
}, [
|
|
52
52
|
(a(), x($(A((p = (m = c(r)).default) == null ? void 0 : p.call(m)[0])), {
|
|
53
|
-
class: f(["size-4",
|
|
53
|
+
class: f(["size-4", o[t.variant].icon])
|
|
54
54
|
}, null, 8, ["class"]))
|
|
55
55
|
], 2),
|
|
56
|
-
|
|
56
|
+
i("div", null, [
|
|
57
57
|
(a(), x($(A((g = (b = c(r)).default) == null ? void 0 : g.call(b)[1])))),
|
|
58
|
-
(a(), x($(A((
|
|
58
|
+
(a(), x($(A((M = (v = c(r)).default) == null ? void 0 : M.call(v)[2]))))
|
|
59
59
|
])
|
|
60
60
|
], 2);
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
63
|
}, h = (e, r) => {
|
|
64
64
|
const t = e.__vccOpts || e;
|
|
65
|
-
for (const [
|
|
66
|
-
t[
|
|
65
|
+
for (const [n, o] of r)
|
|
66
|
+
t[n] = o;
|
|
67
67
|
return t;
|
|
68
68
|
}, te = {}, oe = { class: "text-sm text-neutral-600" };
|
|
69
69
|
function ne(e, r) {
|
|
70
70
|
return a(), s("span", oe, [
|
|
71
|
-
|
|
71
|
+
l(e.$slots, "default")
|
|
72
72
|
]);
|
|
73
73
|
}
|
|
74
74
|
const ae = /* @__PURE__ */ h(te, [["render", ne]]), se = {}, le = { class: "font-medium" };
|
|
75
75
|
function ie(e, r) {
|
|
76
76
|
return a(), s("p", le, [
|
|
77
|
-
|
|
77
|
+
l(e.$slots, "default")
|
|
78
78
|
]);
|
|
79
79
|
}
|
|
80
|
-
const de = /* @__PURE__ */ h(se, [["render", ie]]), ce = { class: "flex w-full items-center justify-between" }, ue = { class: "flex items-center gap-2" }, ge = { class: "flex items-center gap-10" },
|
|
80
|
+
const de = /* @__PURE__ */ h(se, [["render", ie]]), ce = { class: "flex w-full items-center justify-between" }, ue = { class: "flex items-center gap-2" }, ge = { class: "lg:w-60" }, pe = { class: "hidden xl:block" }, me = { class: "flex items-center gap-10" }, be = { class: "hidden gap-6 sm:flex" }, it = {
|
|
81
81
|
__name: "AppHeader",
|
|
82
82
|
setup(e) {
|
|
83
|
-
const r = y("APP_DATA"), { isSidebarToggled: t, toggleSidebar:
|
|
84
|
-
return (
|
|
85
|
-
class: f(["fixed top-0 flex h-16 w-dvw items-center justify-center bg-white
|
|
83
|
+
const r = y("APP_DATA"), { isSidebarToggled: t, toggleSidebar: n } = r;
|
|
84
|
+
return (o, d) => (a(), s("header", {
|
|
85
|
+
class: f(["fixed top-0 flex h-16 w-dvw items-center justify-center bg-white px-3 backdrop-blur sm:px-6", { "rounded-t-2xl": c(t) }])
|
|
86
86
|
}, [
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
onClick: d[0] || (d[0] = (u) => c(
|
|
91
|
-
class: "block cursor-pointer rounded-full p-2 hover:bg-neutral-100
|
|
87
|
+
i("nav", ce, [
|
|
88
|
+
i("div", ue, [
|
|
89
|
+
i("button", {
|
|
90
|
+
onClick: d[0] || (d[0] = (u) => c(n)()),
|
|
91
|
+
class: "block cursor-pointer rounded-full p-2 hover:bg-neutral-100 lg:hidden"
|
|
92
92
|
}, d[1] || (d[1] = [
|
|
93
|
-
|
|
93
|
+
i("svg", {
|
|
94
94
|
xmlns: "http://www.w3.org/2000/svg",
|
|
95
95
|
width: "24",
|
|
96
96
|
height: "24",
|
|
@@ -102,37 +102,42 @@ const de = /* @__PURE__ */ h(se, [["render", ie]]), ce = { class: "flex w-full i
|
|
|
102
102
|
"stroke-linejoin": "round",
|
|
103
103
|
class: "lucide lucide-menu-icon lucide-menu size-5 stroke-neutral-600"
|
|
104
104
|
}, [
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
i("path", { d: "M4 12h16" }),
|
|
106
|
+
i("path", { d: "M4 18h16" }),
|
|
107
|
+
i("path", { d: "M4 6h16" })
|
|
108
108
|
], -1)
|
|
109
109
|
])),
|
|
110
|
-
i(
|
|
110
|
+
i("div", ge, [
|
|
111
|
+
l(o.$slots, "header-img")
|
|
112
|
+
]),
|
|
113
|
+
i("div", pe, [
|
|
114
|
+
l(o.$slots, "header-banner")
|
|
115
|
+
])
|
|
111
116
|
]),
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
117
|
+
i("div", me, [
|
|
118
|
+
i("ul", be, [
|
|
119
|
+
l(o.$slots, "header-links")
|
|
115
120
|
]),
|
|
116
|
-
|
|
121
|
+
l(o.$slots, "header-actions")
|
|
117
122
|
])
|
|
118
123
|
])
|
|
119
124
|
], 2));
|
|
120
125
|
}
|
|
121
|
-
},
|
|
126
|
+
}, fe = ["href"], he = {
|
|
122
127
|
__name: "AppHeaderLink",
|
|
123
128
|
props: {
|
|
124
129
|
to: { type: String, required: !0 }
|
|
125
130
|
},
|
|
126
131
|
setup(e) {
|
|
127
132
|
const r = e;
|
|
128
|
-
return (t,
|
|
129
|
-
r.to.startsWith("/") ? (a(), x(c(
|
|
133
|
+
return (t, n) => (a(), s("li", null, [
|
|
134
|
+
r.to.startsWith("/") ? (a(), x(c(z), {
|
|
130
135
|
key: 0,
|
|
131
136
|
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
137
|
to: r.to
|
|
133
138
|
}, {
|
|
134
|
-
default:
|
|
135
|
-
|
|
139
|
+
default: V(() => [
|
|
140
|
+
l(t.$slots, "default")
|
|
136
141
|
]),
|
|
137
142
|
_: 3
|
|
138
143
|
}, 8, ["to"])) : (a(), s("a", {
|
|
@@ -140,97 +145,109 @@ const de = /* @__PURE__ */ h(se, [["render", ie]]), ce = { class: "flex w-full i
|
|
|
140
145
|
class: "hover:text-primary-950 text-xs uppercase text-neutral-600 hover:transition-all",
|
|
141
146
|
href: r.to
|
|
142
147
|
}, [
|
|
143
|
-
|
|
144
|
-
], 8,
|
|
148
|
+
l(t.$slots, "default")
|
|
149
|
+
], 8, fe))
|
|
145
150
|
]));
|
|
146
151
|
}
|
|
147
|
-
},
|
|
152
|
+
}, ve = { class: "relative" }, xe = { class: "flex" }, _e = {
|
|
148
153
|
__name: "AppLayout",
|
|
149
154
|
setup(e) {
|
|
150
155
|
const r = _(!1);
|
|
151
156
|
function t() {
|
|
152
|
-
window.innerWidth <=
|
|
157
|
+
window.innerWidth <= 1024 ? (r.value = !r.value, n()) : r.value && (r.value = !1, n());
|
|
153
158
|
}
|
|
154
|
-
function
|
|
155
|
-
const
|
|
156
|
-
|
|
159
|
+
function n() {
|
|
160
|
+
const o = document.querySelector("body");
|
|
161
|
+
o.classList.contains("bg-black") ? o.classList.remove("bg-black") : o.classList.add("bg-black");
|
|
157
162
|
}
|
|
158
|
-
return P("APP_DATA", { isSidebarToggled: r, toggleSidebar: t }), (
|
|
163
|
+
return P("APP_DATA", { isSidebarToggled: r, toggleSidebar: t }), (o, d) => {
|
|
159
164
|
var u, m, p, b, g, v;
|
|
160
165
|
return a(), s("div", {
|
|
161
166
|
class: f(["bg-white transition-all duration-500 ease-[cubic-bezier(.32,.72,0,1)]", {
|
|
162
167
|
"origin-[center_top] translate-y-4 scale-93": r.value
|
|
163
168
|
}])
|
|
164
169
|
}, [
|
|
165
|
-
|
|
166
|
-
(a(), x($(A((m = (u =
|
|
167
|
-
|
|
168
|
-
(a(), x($(A((b = (p =
|
|
169
|
-
(a(), x($(A((v = (g =
|
|
170
|
+
i("div", ve, [
|
|
171
|
+
(a(), x($(A((m = (u = o.$slots).default) == null ? void 0 : m.call(u)[0])))),
|
|
172
|
+
i("div", xe, [
|
|
173
|
+
(a(), x($(A((b = (p = o.$slots).default) == null ? void 0 : b.call(p)[1])))),
|
|
174
|
+
(a(), x($(A((v = (g = o.$slots).default) == null ? void 0 : v.call(g)[2]))))
|
|
170
175
|
])
|
|
171
176
|
])
|
|
172
177
|
], 2);
|
|
173
178
|
};
|
|
174
179
|
}
|
|
175
|
-
},
|
|
180
|
+
}, ye = {
|
|
176
181
|
__name: "AppMain",
|
|
177
182
|
setup(e) {
|
|
178
183
|
const r = y("APP_DATA"), { isSidebarToggled: t } = r;
|
|
179
|
-
return (
|
|
184
|
+
return (n, o) => (a(), s("main", {
|
|
180
185
|
class: f([
|
|
181
|
-
"bg-background-main fixed z-[-1] h-svh w-full overflow-auto px-6 pt-24 pb-9 sm:top-16 sm:
|
|
186
|
+
"bg-background-main fixed z-[-1] h-svh w-full overflow-auto px-6 pt-24 pb-9 sm:top-16 sm:pt-9 md:h-[calc(100dvh-4rem)] lg:ms-64 lg:w-[calc(100dvw-256px)]",
|
|
182
187
|
c(t) ? "overflow-hidden rounded-t-xl sm:rounded-none" : "sm:rounded-tl-2xl"
|
|
183
188
|
])
|
|
184
189
|
}, [
|
|
185
|
-
|
|
190
|
+
l(n.$slots, "default")
|
|
186
191
|
], 2));
|
|
187
192
|
}
|
|
188
|
-
},
|
|
189
|
-
function
|
|
190
|
-
return a(), s("div",
|
|
191
|
-
|
|
193
|
+
}, ke = {}, Ce = { class: "flex w-full overflow-x-auto border-b-[1px] border-neutral-200 [&::-webkit-scrollbar]:hidden" };
|
|
194
|
+
function we(e, r) {
|
|
195
|
+
return a(), s("div", Ce, [
|
|
196
|
+
l(e.$slots, "default")
|
|
192
197
|
]);
|
|
193
198
|
}
|
|
194
|
-
const
|
|
199
|
+
const $e = /* @__PURE__ */ h(ke, [["render", we]]), Ae = { class: "shrink-0" }, Se = {
|
|
195
200
|
__name: "AppNavTab",
|
|
196
201
|
props: {
|
|
197
202
|
to: { type: String, required: !0 }
|
|
198
203
|
},
|
|
199
204
|
setup(e) {
|
|
200
205
|
const r = e;
|
|
201
|
-
return _(null), (t,
|
|
202
|
-
j(c(
|
|
206
|
+
return _(null), (t, n) => (a(), s("div", Ae, [
|
|
207
|
+
j(c(z), {
|
|
203
208
|
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
209
|
to: r.to
|
|
205
210
|
}, {
|
|
206
|
-
default:
|
|
207
|
-
|
|
208
|
-
|
|
211
|
+
default: V(() => [
|
|
212
|
+
l(t.$slots, "default"),
|
|
213
|
+
n[0] || (n[0] = i("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
214
|
]),
|
|
210
215
|
_: 3,
|
|
211
216
|
__: [0]
|
|
212
217
|
}, 8, ["to"])
|
|
213
218
|
]));
|
|
214
219
|
}
|
|
215
|
-
},
|
|
220
|
+
}, Te = { class: "sidebar-wrapper fixed top-0 left-0 hidden max-h-[calc(100vh-64px)] w-64 overflow-y-auto bg-white sm:top-16 lg:block" }, Be = {
|
|
221
|
+
key: 0,
|
|
222
|
+
class: "sticky top-0 z-50 bg-white"
|
|
223
|
+
}, Ie = {
|
|
224
|
+
key: 1,
|
|
225
|
+
class: "sticky bottom-0 z-50 bg-white"
|
|
226
|
+
}, Re = {
|
|
216
227
|
__name: "AppSidebar",
|
|
217
228
|
setup(e) {
|
|
218
|
-
const r = y("APP_DATA"), { isSidebarToggled: t, toggleSidebar:
|
|
219
|
-
return (
|
|
220
|
-
|
|
221
|
-
|
|
229
|
+
const r = y("APP_DATA"), { isSidebarToggled: t, toggleSidebar: n } = r;
|
|
230
|
+
return W(), (o, d) => (a(), s(S, null, [
|
|
231
|
+
i("aside", Te, [
|
|
232
|
+
o.$slots.header ? (a(), s("div", Be, [
|
|
233
|
+
l(o.$slots, "header")
|
|
234
|
+
])) : T("", !0),
|
|
235
|
+
l(o.$slots, "default"),
|
|
236
|
+
o.$slots.footer ? (a(), s("div", Ie, [
|
|
237
|
+
l(o.$slots, "footer")
|
|
238
|
+
])) : T("", !0)
|
|
222
239
|
]),
|
|
223
240
|
(a(), x(K, { to: "body" }, [
|
|
224
|
-
|
|
225
|
-
class: "shadow-t-2xl fixed bottom-0 z-50 h-[60svh] w-full
|
|
241
|
+
i("div", {
|
|
242
|
+
class: "shadow-t-2xl fixed bottom-0 z-50 h-[60svh] w-full overflow-y-scroll rounded-t-2xl bg-white transition-all duration-500 ease-[cubic-bezier(.32,.72,0,1)] [&::-webkit-scrollbar]:hidden",
|
|
226
243
|
style: U(
|
|
227
244
|
c(t) ? "transform: translateZ(0)" : "transform: translate3d(0,60svh,0)"
|
|
228
245
|
)
|
|
229
246
|
}, [
|
|
230
|
-
|
|
247
|
+
l(o.$slots, "default")
|
|
231
248
|
], 4),
|
|
232
|
-
|
|
233
|
-
onClick: d[0] || (d[0] = (u) => c(
|
|
249
|
+
i("div", {
|
|
250
|
+
onClick: d[0] || (d[0] = (u) => c(n)()),
|
|
234
251
|
class: f([
|
|
235
252
|
"backdrop transition-all [transition-behavior:allow-discrete] duration-300",
|
|
236
253
|
c(t) ? "fixed inset-0 z-40 block bg-black/80 opacity-100" : "hidden"
|
|
@@ -239,32 +256,32 @@ const Ce = /* @__PURE__ */ h(_e, [["render", ke]]), we = { class: "shrink-0" },
|
|
|
239
256
|
]))
|
|
240
257
|
], 64));
|
|
241
258
|
}
|
|
242
|
-
},
|
|
259
|
+
}, Ve = { class: "flex flex-col" }, De = {
|
|
243
260
|
__name: "AppSidebarItem",
|
|
244
261
|
setup(e) {
|
|
245
|
-
|
|
262
|
+
H();
|
|
246
263
|
const r = _(!1);
|
|
247
264
|
function t() {
|
|
248
265
|
r.value = !r.value;
|
|
249
266
|
}
|
|
250
|
-
return P("SIDEBAR_TOGGLE", { toggled: r, toggleSidebarItem: t }), (
|
|
251
|
-
|
|
267
|
+
return P("SIDEBAR_TOGGLE", { toggled: r, toggleSidebarItem: t }), (n, o) => (a(), s("div", Ve, [
|
|
268
|
+
l(n.$slots, "default")
|
|
252
269
|
]));
|
|
253
270
|
}
|
|
254
|
-
},
|
|
271
|
+
}, Pe = ["href"], ze = {
|
|
255
272
|
__name: "AppSidebarItemChild",
|
|
256
273
|
props: {
|
|
257
274
|
to: { type: [String, Object], required: !0 }
|
|
258
275
|
},
|
|
259
276
|
setup(e) {
|
|
260
277
|
const r = e;
|
|
261
|
-
return (t,
|
|
278
|
+
return (t, n) => typeof r.to == "object" || r.to.startsWith("/") ? (a(), x(c(z), {
|
|
262
279
|
key: 0,
|
|
263
280
|
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
281
|
to: r.to
|
|
265
282
|
}, {
|
|
266
|
-
default:
|
|
267
|
-
|
|
283
|
+
default: V(() => [
|
|
284
|
+
l(t.$slots, "default")
|
|
268
285
|
]),
|
|
269
286
|
_: 3
|
|
270
287
|
}, 8, ["to"])) : (a(), s("a", {
|
|
@@ -272,20 +289,20 @@ const Ce = /* @__PURE__ */ h(_e, [["render", ke]]), we = { class: "shrink-0" },
|
|
|
272
289
|
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
290
|
href: r.to
|
|
274
291
|
}, [
|
|
275
|
-
|
|
276
|
-
], 8,
|
|
292
|
+
l(t.$slots, "default")
|
|
293
|
+
], 8, Pe));
|
|
277
294
|
}
|
|
278
|
-
},
|
|
295
|
+
}, Me = {
|
|
279
296
|
__name: "AppSidebarItemChildren",
|
|
280
297
|
setup(e) {
|
|
281
298
|
const r = y("SIDEBAR_TOGGLE"), { toggled: t } = r;
|
|
282
|
-
return (
|
|
299
|
+
return (n, o) => (a(), s("div", {
|
|
283
300
|
class: f(["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": c(t) }])
|
|
284
301
|
}, [
|
|
285
|
-
|
|
302
|
+
l(n.$slots, "default")
|
|
286
303
|
], 2));
|
|
287
304
|
}
|
|
288
|
-
},
|
|
305
|
+
}, je = { 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" }, Le = ["href"], Ee = {
|
|
289
306
|
__name: "AppSidebarItemParent",
|
|
290
307
|
props: {
|
|
291
308
|
to: { type: [String, Object], required: !0 },
|
|
@@ -293,21 +310,21 @@ const Ce = /* @__PURE__ */ h(_e, [["render", ke]]), we = { class: "shrink-0" },
|
|
|
293
310
|
hasChildren: { type: Boolean, default: !1 }
|
|
294
311
|
},
|
|
295
312
|
setup(e) {
|
|
296
|
-
const r =
|
|
313
|
+
const r = H(), t = e, n = y("SIDEBAR_TOGGLE"), o = y("APP_DATA"), { toggled: d, toggleSidebarItem: u } = n, { toggleSidebar: m } = o;
|
|
297
314
|
function p() {
|
|
298
315
|
r.matched.some(
|
|
299
316
|
(g) => t.name === g.name
|
|
300
317
|
) ? d.value = !0 : d.value = !1;
|
|
301
318
|
}
|
|
302
|
-
return Z(r, () => p(), { immediate: !0 }), (b, g) => (a(), s("div",
|
|
303
|
-
typeof t.to == "object" || t.to.startsWith("/") ? (a(), x(c(
|
|
319
|
+
return Z(r, () => p(), { immediate: !0 }), (b, g) => (a(), s("div", je, [
|
|
320
|
+
typeof t.to == "object" || t.to.startsWith("/") ? (a(), x(c(z), {
|
|
304
321
|
key: 0,
|
|
305
322
|
onClick: g[0] || (g[0] = (v) => c(m)()),
|
|
306
323
|
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
324
|
to: t.to
|
|
308
325
|
}, {
|
|
309
|
-
default:
|
|
310
|
-
|
|
326
|
+
default: V(() => [
|
|
327
|
+
l(b.$slots, "default")
|
|
311
328
|
]),
|
|
312
329
|
_: 3
|
|
313
330
|
}, 8, ["to"])) : (a(), s("a", {
|
|
@@ -315,8 +332,8 @@ const Ce = /* @__PURE__ */ h(_e, [["render", ke]]), we = { class: "shrink-0" },
|
|
|
315
332
|
class: "text-primary-950 peer flex h-full w-full items-center gap-3 text-xs",
|
|
316
333
|
href: t.to
|
|
317
334
|
}, [
|
|
318
|
-
|
|
319
|
-
], 8,
|
|
335
|
+
l(b.$slots, "default")
|
|
336
|
+
], 8, Le)),
|
|
320
337
|
t.hasChildren ? (a(), s("button", {
|
|
321
338
|
key: 2,
|
|
322
339
|
onClick: g[1] || (g[1] = (v) => c(u)()),
|
|
@@ -335,33 +352,33 @@ const Ce = /* @__PURE__ */ h(_e, [["render", ke]]), we = { class: "shrink-0" },
|
|
|
335
352
|
"stroke-linejoin": "round",
|
|
336
353
|
class: f(["lucide lucide-chevron-down-icon lucide-chevron-down stroke-brand-primary-800 transition-all duration-300", { "rotate-180": c(d) }])
|
|
337
354
|
}, g[2] || (g[2] = [
|
|
338
|
-
|
|
355
|
+
i("path", { d: "m6 9 6 6 6-6" }, null, -1)
|
|
339
356
|
]), 2))
|
|
340
|
-
])) :
|
|
357
|
+
])) : T("", !0)
|
|
341
358
|
]));
|
|
342
359
|
}
|
|
343
|
-
},
|
|
360
|
+
}, Ne = { 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" }, Ge = {
|
|
344
361
|
__name: "AppSidebarToggle",
|
|
345
362
|
setup(e) {
|
|
346
363
|
const r = y("SIDEBAR_TOGGLE");
|
|
347
|
-
return (t,
|
|
348
|
-
const
|
|
349
|
-
return a(), s("div",
|
|
350
|
-
j(
|
|
364
|
+
return (t, n) => {
|
|
365
|
+
const o = J("RouterLink");
|
|
366
|
+
return a(), s("div", Ne, [
|
|
367
|
+
j(o, {
|
|
351
368
|
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
369
|
to: "/"
|
|
353
370
|
}, {
|
|
354
|
-
default:
|
|
355
|
-
|
|
371
|
+
default: V(() => [
|
|
372
|
+
l(t.$slots, "default")
|
|
356
373
|
]),
|
|
357
374
|
_: 3
|
|
358
375
|
}),
|
|
359
|
-
|
|
360
|
-
onClick:
|
|
376
|
+
i("button", {
|
|
377
|
+
onClick: n[0] || (n[0] = (d) => c(r).toggleSidebarItem()),
|
|
361
378
|
class: "cursor-pointer",
|
|
362
379
|
type: "button"
|
|
363
|
-
},
|
|
364
|
-
|
|
380
|
+
}, n[1] || (n[1] = [
|
|
381
|
+
i("svg", {
|
|
365
382
|
xmlns: "http://www.w3.org/2000/svg",
|
|
366
383
|
width: "16",
|
|
367
384
|
height: "16",
|
|
@@ -373,27 +390,27 @@ const Ce = /* @__PURE__ */ h(_e, [["render", ke]]), we = { class: "shrink-0" },
|
|
|
373
390
|
"stroke-linejoin": "round",
|
|
374
391
|
class: "lucide lucide-chevron-down-icon lucide-chevron-down stroke-white"
|
|
375
392
|
}, [
|
|
376
|
-
|
|
393
|
+
i("path", { d: "m6 9 6 6 6-6" })
|
|
377
394
|
], -1)
|
|
378
395
|
]))
|
|
379
396
|
]);
|
|
380
397
|
};
|
|
381
398
|
}
|
|
382
|
-
},
|
|
399
|
+
}, We = {}, Oe = { class: "px-4 pb-4 first-of-type:pt-4" }, qe = {
|
|
383
400
|
key: 0,
|
|
384
401
|
class: "text-primary-950 px-1 text-sm font-medium"
|
|
385
|
-
},
|
|
386
|
-
function
|
|
387
|
-
return a(), s("nav",
|
|
388
|
-
e.$slots.title ? (a(), s("b",
|
|
389
|
-
|
|
390
|
-
])) :
|
|
391
|
-
|
|
392
|
-
|
|
402
|
+
}, He = { class: "mt-2" };
|
|
403
|
+
function Fe(e, r) {
|
|
404
|
+
return a(), s("nav", Oe, [
|
|
405
|
+
e.$slots.title ? (a(), s("b", qe, [
|
|
406
|
+
l(e.$slots, "title")
|
|
407
|
+
])) : T("", !0),
|
|
408
|
+
i("div", He, [
|
|
409
|
+
l(e.$slots, "items")
|
|
393
410
|
])
|
|
394
411
|
]);
|
|
395
412
|
}
|
|
396
|
-
const
|
|
413
|
+
const Ke = /* @__PURE__ */ h(We, [["render", Fe]]), G = {
|
|
397
414
|
/* ---------------- Solid Buttons ---------------- */
|
|
398
415
|
primary: {
|
|
399
416
|
backgroundColor: "bg-brand-primary-700",
|
|
@@ -621,30 +638,30 @@ const We = /* @__PURE__ */ h(Le, [["render", Ge]]), G = {
|
|
|
621
638
|
hoverTextColor: "hover:text-warning-700",
|
|
622
639
|
focusRing: "focus:ring-warning-200"
|
|
623
640
|
}
|
|
624
|
-
},
|
|
641
|
+
}, Ue = {
|
|
625
642
|
__name: "Badge",
|
|
626
643
|
props: {
|
|
627
644
|
variant: { type: String, default: "primary" }
|
|
628
645
|
},
|
|
629
646
|
setup(e) {
|
|
630
647
|
const r = e;
|
|
631
|
-
return (t,
|
|
648
|
+
return (t, n) => (a(), s("div", {
|
|
632
649
|
class: f(["rounded-full px-3 py-1 text-xs font-medium", [
|
|
633
650
|
c(G)[r.variant].backgroundColor,
|
|
634
651
|
c(G)[r.variant].textColor
|
|
635
652
|
]])
|
|
636
653
|
}, [
|
|
637
|
-
|
|
654
|
+
l(t.$slots, "default")
|
|
638
655
|
], 2));
|
|
639
656
|
}
|
|
640
|
-
},
|
|
657
|
+
}, Ze = {
|
|
641
658
|
__name: "Button",
|
|
642
659
|
props: {
|
|
643
660
|
variant: { type: String, default: "primary" }
|
|
644
661
|
},
|
|
645
662
|
setup(e, { expose: r }) {
|
|
646
|
-
const t = e,
|
|
647
|
-
return r({ buttonRef:
|
|
663
|
+
const t = e, n = _(null);
|
|
664
|
+
return r({ buttonRef: n }), (o, d) => (a(), s("button", k(o.$attrs, {
|
|
648
665
|
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
666
|
c(w)[t.variant].backgroundColor,
|
|
650
667
|
c(w)[t.variant].borderColor,
|
|
@@ -654,21 +671,21 @@ const We = /* @__PURE__ */ h(Le, [["render", Ge]]), G = {
|
|
|
654
671
|
c(w)[t.variant].focusRing
|
|
655
672
|
]],
|
|
656
673
|
ref_key: "buttonRef",
|
|
657
|
-
ref:
|
|
674
|
+
ref: n
|
|
658
675
|
}), [
|
|
659
|
-
|
|
676
|
+
l(o.$slots, "default")
|
|
660
677
|
], 16));
|
|
661
678
|
}
|
|
662
|
-
},
|
|
663
|
-
function
|
|
664
|
-
return a(), s("div",
|
|
665
|
-
|
|
679
|
+
}, Je = {}, Ye = { class: "rounded-2xl bg-white p-6" };
|
|
680
|
+
function Xe(e, r) {
|
|
681
|
+
return a(), s("div", Ye, [
|
|
682
|
+
l(e.$slots, "default")
|
|
666
683
|
]);
|
|
667
684
|
}
|
|
668
|
-
const
|
|
685
|
+
const F = /* @__PURE__ */ h(Je, [["render", Xe]]), dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
669
686
|
__proto__: null,
|
|
670
|
-
default:
|
|
671
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
687
|
+
default: F
|
|
688
|
+
}, Symbol.toStringTag, { value: "Module" })), Qe = {
|
|
672
689
|
__name: "Checkbox",
|
|
673
690
|
props: {
|
|
674
691
|
modelValue: {},
|
|
@@ -676,12 +693,12 @@ const H = /* @__PURE__ */ h(He, [["render", Ke]]), nt = /* @__PURE__ */ Object.f
|
|
|
676
693
|
},
|
|
677
694
|
emits: ["update:modelValue"],
|
|
678
695
|
setup(e) {
|
|
679
|
-
const r =
|
|
680
|
-
return (
|
|
681
|
-
onClick:
|
|
696
|
+
const r = B(e, "modelValue"), t = _(null);
|
|
697
|
+
return (n, o) => (a(), s("button", {
|
|
698
|
+
onClick: o[2] || (o[2] = (d) => t.value.click()),
|
|
682
699
|
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"
|
|
683
700
|
}, [
|
|
684
|
-
|
|
701
|
+
o[3] || (o[3] = i("svg", {
|
|
685
702
|
xmlns: "http://www.w3.org/2000/svg",
|
|
686
703
|
width: "14",
|
|
687
704
|
height: "14",
|
|
@@ -693,11 +710,11 @@ const H = /* @__PURE__ */ h(He, [["render", Ke]]), nt = /* @__PURE__ */ Object.f
|
|
|
693
710
|
"stroke-linejoin": "round",
|
|
694
711
|
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"
|
|
695
712
|
}, [
|
|
696
|
-
|
|
713
|
+
i("path", { d: "M20 6 9 17l-5-5" })
|
|
697
714
|
], -1)),
|
|
698
|
-
|
|
699
|
-
"onUpdate:modelValue":
|
|
700
|
-
onChange:
|
|
715
|
+
I(i("input", k(n.$attrs, {
|
|
716
|
+
"onUpdate:modelValue": o[0] || (o[0] = (d) => r.value = d),
|
|
717
|
+
onChange: o[1] || (o[1] = O(() => {
|
|
701
718
|
}, ["stop"])),
|
|
702
719
|
type: "checkbox",
|
|
703
720
|
ref_key: "checkboxRef",
|
|
@@ -708,30 +725,30 @@ const H = /* @__PURE__ */ h(He, [["render", Ke]]), nt = /* @__PURE__ */ Object.f
|
|
|
708
725
|
])
|
|
709
726
|
]));
|
|
710
727
|
}
|
|
711
|
-
},
|
|
712
|
-
function
|
|
713
|
-
return a(), s("div",
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
728
|
+
}, er = {}, rr = { class: "flex flex-col items-center justify-center gap-8" }, tr = { class: "flex max-w-xs flex-col items-center gap-2 text-center" }, or = { class: "bg-brand-primary-100 mb-2 grid size-12 place-items-center rounded-full" };
|
|
729
|
+
function nr(e, r) {
|
|
730
|
+
return a(), s("div", rr, [
|
|
731
|
+
i("div", tr, [
|
|
732
|
+
i("div", or, [
|
|
733
|
+
l(e.$slots, "icon")
|
|
717
734
|
]),
|
|
718
|
-
|
|
735
|
+
l(e.$slots, "default")
|
|
719
736
|
])
|
|
720
737
|
]);
|
|
721
738
|
}
|
|
722
|
-
const
|
|
723
|
-
function
|
|
724
|
-
return a(), s("p",
|
|
725
|
-
|
|
739
|
+
const ar = /* @__PURE__ */ h(er, [["render", nr]]), sr = {}, lr = { class: "text-sm text-neutral-600" };
|
|
740
|
+
function ir(e, r) {
|
|
741
|
+
return a(), s("p", lr, [
|
|
742
|
+
l(e.$slots, "default")
|
|
726
743
|
]);
|
|
727
744
|
}
|
|
728
|
-
const
|
|
729
|
-
function
|
|
730
|
-
return a(), s("b",
|
|
731
|
-
|
|
745
|
+
const ct = /* @__PURE__ */ h(sr, [["render", ir]]), dr = {}, cr = { class: "text-lg font-medium" };
|
|
746
|
+
function ur(e, r) {
|
|
747
|
+
return a(), s("b", cr, [
|
|
748
|
+
l(e.$slots, "default")
|
|
732
749
|
]);
|
|
733
750
|
}
|
|
734
|
-
const
|
|
751
|
+
const ut = /* @__PURE__ */ h(dr, [["render", ur]]), gr = {
|
|
735
752
|
__name: "FormField",
|
|
736
753
|
props: {
|
|
737
754
|
invalid: { type: [Boolean, String] },
|
|
@@ -739,19 +756,19 @@ const st = /* @__PURE__ */ h(nr, [["render", sr]]), lr = {
|
|
|
739
756
|
},
|
|
740
757
|
setup(e) {
|
|
741
758
|
const r = e, t = L(() => r.invalid === !0 || typeof r.invalid == "string" && r.invalid.trim() !== "");
|
|
742
|
-
return (
|
|
759
|
+
return (n, o) => (a(), s("div", {
|
|
743
760
|
class: f(["group flex flex-col gap-2", { "invalid-form": t.value }])
|
|
744
761
|
}, [
|
|
745
|
-
|
|
762
|
+
l(n.$slots, "default")
|
|
746
763
|
], 2));
|
|
747
764
|
}
|
|
748
|
-
},
|
|
749
|
-
function
|
|
750
|
-
return a(), s("p",
|
|
751
|
-
|
|
765
|
+
}, pr = {}, mr = { 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" };
|
|
766
|
+
function br(e, r) {
|
|
767
|
+
return a(), s("p", mr, [
|
|
768
|
+
l(e.$slots, "default", {}, void 0, !0)
|
|
752
769
|
]);
|
|
753
770
|
}
|
|
754
|
-
const
|
|
771
|
+
const fr = /* @__PURE__ */ h(pr, [["render", br], ["__scopeId", "data-v-a299dc33"]]), hr = {
|
|
755
772
|
__name: "Input",
|
|
756
773
|
props: {
|
|
757
774
|
modelValue: {},
|
|
@@ -759,21 +776,21 @@ const ur = /* @__PURE__ */ h(ir, [["render", cr], ["__scopeId", "data-v-a299dc33
|
|
|
759
776
|
},
|
|
760
777
|
emits: ["update:modelValue"],
|
|
761
778
|
setup(e) {
|
|
762
|
-
const r =
|
|
763
|
-
return (t,
|
|
764
|
-
"onUpdate:modelValue":
|
|
779
|
+
const r = B(e, "modelValue");
|
|
780
|
+
return (t, n) => I((a(), s("input", {
|
|
781
|
+
"onUpdate:modelValue": n[0] || (n[0] = (o) => r.value = o),
|
|
765
782
|
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"
|
|
766
783
|
}, null, 512)), [
|
|
767
784
|
[E, r.value]
|
|
768
785
|
]);
|
|
769
786
|
}
|
|
770
|
-
},
|
|
771
|
-
function
|
|
787
|
+
}, vr = {};
|
|
788
|
+
function xr(e, r) {
|
|
772
789
|
return a(), s("label", k(e.$attrs, { class: "text-primary-950 text-xs font-medium transition-all" }), [
|
|
773
|
-
|
|
790
|
+
l(e.$slots, "default")
|
|
774
791
|
], 16);
|
|
775
792
|
}
|
|
776
|
-
const
|
|
793
|
+
const _r = /* @__PURE__ */ h(vr, [["render", xr]]), yr = {}, kr = {
|
|
777
794
|
xmlns: "http://www.w3.org/2000/svg",
|
|
778
795
|
width: "24",
|
|
779
796
|
height: "24",
|
|
@@ -785,13 +802,13 @@ const br = /* @__PURE__ */ h(pr, [["render", mr]]), fr = {}, hr = {
|
|
|
785
802
|
"stroke-linejoin": "round",
|
|
786
803
|
class: "lucide lucide-x-icon lucide-x"
|
|
787
804
|
};
|
|
788
|
-
function
|
|
789
|
-
return a(), s("svg",
|
|
790
|
-
|
|
791
|
-
|
|
805
|
+
function Cr(e, r) {
|
|
806
|
+
return a(), s("svg", kr, r[0] || (r[0] = [
|
|
807
|
+
i("path", { d: "M18 6 6 18" }, null, -1),
|
|
808
|
+
i("path", { d: "m6 6 12 12" }, null, -1)
|
|
792
809
|
]));
|
|
793
810
|
}
|
|
794
|
-
const
|
|
811
|
+
const wr = /* @__PURE__ */ h(yr, [["render", Cr]]), $r = { class: "max-w-72 space-y-2 rounded-xl border border-neutral-200 bg-white p-2" }, Ar = { class: "flex flex-wrap gap-2" }, Sr = { class: "group/item hover:border-brand-primary-500 inline-flex cursor-pointer items-center justify-center gap-2 rounded-full border border-neutral-200 bg-white px-3 py-2 text-xs transition-all" }, Tr = ["onClick"], Br = { class: "max-h-72 overflow-y-auto" }, Ir = ["onClick"], Rr = {
|
|
795
812
|
__name: "MultiSelect",
|
|
796
813
|
props: /* @__PURE__ */ N({
|
|
797
814
|
data: { type: Array, required: !0 },
|
|
@@ -803,52 +820,52 @@ const xr = /* @__PURE__ */ h(fr, [["render", vr]]), _r = { class: "max-w-72 spac
|
|
|
803
820
|
}),
|
|
804
821
|
emits: ["update:modelValue"],
|
|
805
822
|
setup(e) {
|
|
806
|
-
const r =
|
|
823
|
+
const r = B(e, "modelValue"), t = e, n = _([]), o = _(null), d = L(() => {
|
|
807
824
|
let p = t.data;
|
|
808
|
-
return
|
|
809
|
-
(b) => !
|
|
825
|
+
return n.value.length && (p = p.filter(
|
|
826
|
+
(b) => !n.value.some(
|
|
810
827
|
(g) => g[t.valueKey] === b[t.valueKey]
|
|
811
828
|
)
|
|
812
|
-
)),
|
|
829
|
+
)), o.value ? p.filter((b) => b[t.labelKey].toLowerCase().includes(o.value.toLowerCase())) : p;
|
|
813
830
|
});
|
|
814
831
|
function u(p) {
|
|
815
|
-
|
|
832
|
+
n.value.push(p), r.value = n.value;
|
|
816
833
|
}
|
|
817
834
|
function m(p) {
|
|
818
|
-
|
|
835
|
+
n.value.splice(p, 1), r.value = n.value;
|
|
819
836
|
}
|
|
820
837
|
return X(() => {
|
|
821
|
-
|
|
822
|
-
}), (p, b) => (a(), s("div",
|
|
823
|
-
|
|
824
|
-
(a(!0), s(S, null,
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
onClick: (
|
|
838
|
+
n.value = r.value;
|
|
839
|
+
}), (p, b) => (a(), s("div", $r, [
|
|
840
|
+
i("ul", Ar, [
|
|
841
|
+
(a(!0), s(S, null, R(n.value, (g, v) => (a(), s("li", Sr, [
|
|
842
|
+
q(D(g[t.labelKey]) + " ", 1),
|
|
843
|
+
i("button", {
|
|
844
|
+
onClick: (M) => m(v),
|
|
828
845
|
class: "hidden shrink-0 cursor-pointer rounded-full group-hover/item:block"
|
|
829
846
|
}, [
|
|
830
|
-
j(
|
|
831
|
-
], 8,
|
|
847
|
+
j(wr, { class: "size-3.5 stroke-neutral-600" })
|
|
848
|
+
], 8, Tr)
|
|
832
849
|
]))), 256))
|
|
833
850
|
]),
|
|
834
|
-
|
|
835
|
-
"onUpdate:modelValue": b[0] || (b[0] = (g) =>
|
|
851
|
+
I(i("input", {
|
|
852
|
+
"onUpdate:modelValue": b[0] || (b[0] = (g) => o.value = g),
|
|
836
853
|
class: "w-full px-2 py-3 text-xs outline-none",
|
|
837
854
|
placeholder: "Search",
|
|
838
855
|
type: "text"
|
|
839
856
|
}, null, 512), [
|
|
840
|
-
[E,
|
|
857
|
+
[E, o.value]
|
|
841
858
|
]),
|
|
842
|
-
|
|
843
|
-
(a(!0), s(S, null,
|
|
859
|
+
i("ul", Br, [
|
|
860
|
+
(a(!0), s(S, null, R(d.value, (g) => (a(), s("li", {
|
|
844
861
|
onClick: (v) => u(g),
|
|
845
862
|
class: "hover:bg-background-main cursor-pointer rounded-lg px-2 py-3 text-xs transition-colors",
|
|
846
863
|
key: g[t.valueKey]
|
|
847
|
-
}, D(g[t.labelKey]), 9,
|
|
864
|
+
}, D(g[t.labelKey]), 9, Ir))), 128))
|
|
848
865
|
])
|
|
849
866
|
]));
|
|
850
867
|
}
|
|
851
|
-
},
|
|
868
|
+
}, Vr = {
|
|
852
869
|
__name: "Radio",
|
|
853
870
|
props: /* @__PURE__ */ N({
|
|
854
871
|
variant: { type: String, default: "small" }
|
|
@@ -858,36 +875,36 @@ const xr = /* @__PURE__ */ h(fr, [["render", vr]]), _r = { class: "max-w-72 spac
|
|
|
858
875
|
}),
|
|
859
876
|
emits: ["update:modelValue"],
|
|
860
877
|
setup(e) {
|
|
861
|
-
const r =
|
|
878
|
+
const r = B(e, "modelValue"), t = e, n = _(null), o = {
|
|
862
879
|
small: { outerCircleSize: "size-4", innerCircleSize: "size-2.5" },
|
|
863
880
|
large: { outerCircleSize: "size-5", innerCircleSize: "size-3" }
|
|
864
881
|
};
|
|
865
882
|
return (d, u) => (a(), s("button", {
|
|
866
|
-
onClick: u[2] || (u[2] = (m) =>
|
|
867
|
-
class: f(["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",
|
|
883
|
+
onClick: u[2] || (u[2] = (m) => n.value.click()),
|
|
884
|
+
class: f(["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[t.variant].outerCircleSize]),
|
|
868
885
|
role: "radio",
|
|
869
886
|
type: "button"
|
|
870
887
|
}, [
|
|
871
|
-
|
|
872
|
-
class: f(["group-has-checked/radio:bg-brand-primary-700 grid place-items-center rounded-full opacity-0 transition-all group-has-checked/radio:opacity-100",
|
|
888
|
+
i("div", {
|
|
889
|
+
class: f(["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[t.variant].innerCircleSize])
|
|
873
890
|
}, [
|
|
874
|
-
|
|
891
|
+
l(d.$slots, "default")
|
|
875
892
|
], 2),
|
|
876
|
-
|
|
877
|
-
onChange: u[0] || (u[0] =
|
|
893
|
+
I(i("input", k({
|
|
894
|
+
onChange: u[0] || (u[0] = O(() => {
|
|
878
895
|
}, ["stop"]))
|
|
879
896
|
}, d.$attrs, {
|
|
880
897
|
"onUpdate:modelValue": u[1] || (u[1] = (m) => r.value = m),
|
|
881
898
|
type: "radio",
|
|
882
899
|
ref_key: "radioRef",
|
|
883
|
-
ref:
|
|
900
|
+
ref: n,
|
|
884
901
|
hidden: ""
|
|
885
902
|
}), null, 16), [
|
|
886
903
|
[Q, r.value]
|
|
887
904
|
])
|
|
888
905
|
], 2));
|
|
889
906
|
}
|
|
890
|
-
},
|
|
907
|
+
}, Dr = "bg-[url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiM1YjYxNmUiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBjbGFzcz0ibHVjaWRlIGx1Y2lkZS1jaGV2cm9uLWRvd24iPjxwYXRoIGQ9Im02IDkgNiA2IDYtNiIvPjwvc3ZnPg==')]", Pr = {
|
|
891
908
|
__name: "Select",
|
|
892
909
|
props: {
|
|
893
910
|
modelValue: {},
|
|
@@ -895,55 +912,55 @@ const xr = /* @__PURE__ */ h(fr, [["render", vr]]), _r = { class: "max-w-72 spac
|
|
|
895
912
|
},
|
|
896
913
|
emits: ["update:modelValue"],
|
|
897
914
|
setup(e) {
|
|
898
|
-
const r =
|
|
899
|
-
return (t,
|
|
900
|
-
"onUpdate:modelValue":
|
|
901
|
-
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",
|
|
915
|
+
const r = B(e, "modelValue");
|
|
916
|
+
return (t, n) => I((a(), s("select", k(t.$attrs, {
|
|
917
|
+
"onUpdate:modelValue": n[0] || (n[0] = (o) => r.value = o),
|
|
918
|
+
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", Dr]
|
|
902
919
|
}), [
|
|
903
|
-
|
|
920
|
+
l(t.$slots, "default")
|
|
904
921
|
], 16)), [
|
|
905
922
|
[ee, r.value]
|
|
906
923
|
]);
|
|
907
924
|
}
|
|
908
|
-
},
|
|
909
|
-
function
|
|
910
|
-
return a(), s("div",
|
|
925
|
+
}, zr = {}, Mr = { class: "bg-primary-100 animate-pulse rounded-lg" };
|
|
926
|
+
function jr(e, r) {
|
|
927
|
+
return a(), s("div", Mr);
|
|
911
928
|
}
|
|
912
|
-
const
|
|
913
|
-
function
|
|
914
|
-
return a(), s("div",
|
|
915
|
-
|
|
929
|
+
const Lr = /* @__PURE__ */ h(zr, [["render", jr]]), Er = {}, Nr = { class: "mt-4 flex items-center gap-2" };
|
|
930
|
+
function Gr(e, r) {
|
|
931
|
+
return a(), s("div", Nr, [
|
|
932
|
+
l(e.$slots, "default")
|
|
916
933
|
]);
|
|
917
934
|
}
|
|
918
|
-
const
|
|
935
|
+
const gt = /* @__PURE__ */ h(Er, [["render", Gr]]), Wr = {
|
|
919
936
|
__name: "Switch",
|
|
920
937
|
props: ["modelValue"],
|
|
921
938
|
emits: ["update:modelValue"],
|
|
922
939
|
setup(e, { emit: r }) {
|
|
923
|
-
const t = r,
|
|
924
|
-
function
|
|
925
|
-
t("update:modelValue", !
|
|
940
|
+
const t = r, n = e;
|
|
941
|
+
function o() {
|
|
942
|
+
t("update:modelValue", !n.modelValue);
|
|
926
943
|
}
|
|
927
944
|
return (d, u) => (a(), s("button", k(d.$attrs, {
|
|
928
|
-
onClick: u[0] || (u[0] = (m) =>
|
|
945
|
+
onClick: u[0] || (u[0] = (m) => o()),
|
|
929
946
|
class: [
|
|
930
947
|
"group/switch h-5 w-9 cursor-pointer rounded-full p-0.5 transition-all duration-300 disabled:cursor-not-allowed disabled:opacity-50",
|
|
931
|
-
|
|
948
|
+
n.modelValue ? "from-brand-primary-600 to-brand-primary-700 bg-gradient-to-br" : "bg-neutral-200"
|
|
932
949
|
],
|
|
933
950
|
role: "switch",
|
|
934
951
|
type: "button"
|
|
935
952
|
}), [
|
|
936
|
-
|
|
937
|
-
class: f(["pointer-events-none flex size-4 items-center justify-center rounded-full bg-white shadow-md transition-all duration-300", { "translate-x-full":
|
|
953
|
+
i("span", {
|
|
954
|
+
class: f(["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 }])
|
|
938
955
|
}, [
|
|
939
|
-
|
|
956
|
+
l(d.$slots, "icon")
|
|
940
957
|
], 2)
|
|
941
958
|
], 16));
|
|
942
959
|
}
|
|
943
|
-
},
|
|
960
|
+
}, Or = { class: "w-full" }, qr = { class: "h-16" }, Hr = { key: 0 }, Fr = {
|
|
944
961
|
key: 0,
|
|
945
962
|
class: "pe-4"
|
|
946
|
-
},
|
|
963
|
+
}, Kr = {
|
|
947
964
|
__name: "Table",
|
|
948
965
|
props: {
|
|
949
966
|
columns: { type: Array, required: !0 },
|
|
@@ -951,57 +968,57 @@ const lt = /* @__PURE__ */ h(Pr, [["render", zr]]), jr = {
|
|
|
951
968
|
},
|
|
952
969
|
setup(e) {
|
|
953
970
|
const r = e;
|
|
954
|
-
return (t,
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
(a(!0), s(S, null,
|
|
958
|
-
key:
|
|
971
|
+
return (t, n) => (a(), s("table", Or, [
|
|
972
|
+
i("thead", null, [
|
|
973
|
+
i("tr", qr, [
|
|
974
|
+
(a(!0), s(S, null, R(r.columns, (o) => (a(), s("th", {
|
|
975
|
+
key: o.key,
|
|
959
976
|
class: "text-xs font-medium text-neutral-600 first-of-type:ps-4"
|
|
960
|
-
}, D(
|
|
961
|
-
t.$slots.actions ? (a(), s("th",
|
|
977
|
+
}, D(o.label), 1))), 128)),
|
|
978
|
+
t.$slots.actions ? (a(), s("th", Hr)) : T("", !0)
|
|
962
979
|
])
|
|
963
980
|
]),
|
|
964
|
-
|
|
965
|
-
(a(!0), s(S, null,
|
|
981
|
+
i("tbody", null, [
|
|
982
|
+
(a(!0), s(S, null, R(r.data, (o, d) => (a(), s("tr", {
|
|
966
983
|
key: d,
|
|
967
984
|
class: "odd:bg-background-main/50 hover:bg-background-main min-h-16 rounded-md transition-all"
|
|
968
985
|
}, [
|
|
969
|
-
(a(!0), s(S, null,
|
|
986
|
+
(a(!0), s(S, null, R(r.columns, (u) => (a(), s("td", {
|
|
970
987
|
key: u.key,
|
|
971
988
|
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"
|
|
972
989
|
}, [
|
|
973
|
-
|
|
974
|
-
|
|
990
|
+
l(t.$slots, u.key, { row: o }, () => [
|
|
991
|
+
q(D(o[u.key]), 1)
|
|
975
992
|
])
|
|
976
993
|
]))), 128)),
|
|
977
|
-
t.$slots.actions ? (a(), s("td",
|
|
978
|
-
|
|
979
|
-
])) :
|
|
994
|
+
t.$slots.actions ? (a(), s("td", Fr, [
|
|
995
|
+
l(t.$slots, "actions", { row: o })
|
|
996
|
+
])) : T("", !0)
|
|
980
997
|
]))), 128))
|
|
981
998
|
])
|
|
982
999
|
]));
|
|
983
1000
|
}
|
|
984
|
-
},
|
|
1001
|
+
}, Ur = { class: "overflow-x-scroll rounded-xl bg-neutral-100/50 p-1 [&::-webkit-scrollbar]:hidden" }, Zr = {
|
|
985
1002
|
__name: "Tabs",
|
|
986
1003
|
props: {
|
|
987
1004
|
default: { default: null }
|
|
988
1005
|
},
|
|
989
1006
|
setup(e) {
|
|
990
1007
|
const t = _(e.default);
|
|
991
|
-
function o
|
|
992
|
-
t.value =
|
|
1008
|
+
function n(o) {
|
|
1009
|
+
t.value = o;
|
|
993
1010
|
}
|
|
994
|
-
return P("TAB_DATA", { currentValue: t, setCurrentValue:
|
|
995
|
-
|
|
1011
|
+
return P("TAB_DATA", { currentValue: t, setCurrentValue: n }), (o, d) => (a(), s("div", Ur, [
|
|
1012
|
+
l(o.$slots, "default")
|
|
996
1013
|
]));
|
|
997
1014
|
}
|
|
998
|
-
},
|
|
1015
|
+
}, Jr = {
|
|
999
1016
|
__name: "TabItem",
|
|
1000
1017
|
props: {
|
|
1001
1018
|
value: { required: !0 }
|
|
1002
1019
|
},
|
|
1003
1020
|
setup(e) {
|
|
1004
|
-
const r = e, t = y("TAB_DATA"), { currentValue:
|
|
1021
|
+
const r = e, t = y("TAB_DATA"), { currentValue: n, setCurrentValue: o } = t, d = L(() => n.value === r.value ? [
|
|
1005
1022
|
"bg-white",
|
|
1006
1023
|
"font-medium",
|
|
1007
1024
|
"text-primary-700",
|
|
@@ -1009,13 +1026,13 @@ const lt = /* @__PURE__ */ h(Pr, [["render", zr]]), jr = {
|
|
|
1009
1026
|
"tab-active"
|
|
1010
1027
|
] : "text-neutral-600");
|
|
1011
1028
|
return (u, m) => (a(), s("button", {
|
|
1012
|
-
onClick: m[0] || (m[0] = (p) => c(
|
|
1029
|
+
onClick: m[0] || (m[0] = (p) => c(o)(r.value)),
|
|
1013
1030
|
class: f(["tab h-8 cursor-pointer rounded-lg px-3 text-xs transition-all disabled:cursor-not-allowed disabled:opacity-50", d.value])
|
|
1014
1031
|
}, [
|
|
1015
|
-
|
|
1032
|
+
l(u.$slots, "default", {}, void 0, !0)
|
|
1016
1033
|
], 2));
|
|
1017
1034
|
}
|
|
1018
|
-
},
|
|
1035
|
+
}, Yr = /* @__PURE__ */ h(Jr, [["__scopeId", "data-v-9e06f71f"]]), Xr = {
|
|
1019
1036
|
__name: "TextArea",
|
|
1020
1037
|
props: /* @__PURE__ */ N(["modelValue"], {
|
|
1021
1038
|
modelValue: {},
|
|
@@ -1023,68 +1040,68 @@ const lt = /* @__PURE__ */ h(Pr, [["render", zr]]), jr = {
|
|
|
1023
1040
|
}),
|
|
1024
1041
|
emits: ["update:modelValue"],
|
|
1025
1042
|
setup(e) {
|
|
1026
|
-
const r =
|
|
1027
|
-
return (t,
|
|
1028
|
-
onInput:
|
|
1043
|
+
const r = B(e, "modelValue");
|
|
1044
|
+
return (t, n) => I((a(), s("textarea", k({
|
|
1045
|
+
onInput: n[0] || (n[0] = (o) => t.$emit("update:modelValue", o.target.value))
|
|
1029
1046
|
}, t.$attrs, {
|
|
1030
|
-
"onUpdate:modelValue":
|
|
1047
|
+
"onUpdate:modelValue": n[1] || (n[1] = (o) => r.value = o),
|
|
1031
1048
|
class: "text-primary-950 neutral-400:text-neutral-400 focus:ring-brand-primary-700 group-[&.invalid-form]:focus:ring-danger-700 group-[&.invalid-form]:ring-danger-700 focus:user-invalid:ring-danger-700 user-invalid:ring-danger-700 rounded-lg border-[1px] border-neutral-200 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 focus:ring-offset-2 group-[&.invalid-form]:focus:ring-2 disabled:cursor-not-allowed disabled:opacity-50"
|
|
1032
1049
|
}), null, 16)), [
|
|
1033
1050
|
[E, r.value]
|
|
1034
1051
|
]);
|
|
1035
1052
|
}
|
|
1036
|
-
},
|
|
1053
|
+
}, Qr = C(() => import("./Dialog-BHLcOviq.js")), et = C(() => import("./DialogContent-BrXhtNDl.js")), rt = C(() => import("./DialogToggle-BBhhbRSr.js")), tt = C(
|
|
1037
1054
|
() => import("./DialogBackground-WvtbjhWD.js")
|
|
1038
|
-
),
|
|
1055
|
+
), ot = C(() => import("./Sheet-BSbgTrds.js")), nt = C(() => import("./SheetContent-CwM7Ef5X.js")), at = C(() => import("./SheetToggle-CE4cgr3o.js")), pt = {
|
|
1039
1056
|
install(e) {
|
|
1040
|
-
e.component("Alert", re), e.component("AlertContent", ae), e.component("AlertTitle", de), e.component("AppHeaderLink",
|
|
1057
|
+
e.component("Alert", re), e.component("AlertContent", ae), e.component("AlertTitle", de), e.component("AppHeaderLink", he), e.component("AppLayout", _e), e.component("AppMain", ye), e.component("AppNavTabs", $e), e.component("AppNavTab", Se), e.component("AppSidebar", Re), e.component("AppSidebarItem", De), e.component("AppSidebarItemChild", ze), e.component("AppSidebarItemChildren", Me), e.component("AppSidebarItemParent", Ee), e.component("AppSidebarToggle", Ge), e.component("AppSidebarNavSection", Ke), e.component("Badge", Ue), e.component("Button", Ze), e.component("Checkbox", Qe), e.component("Card", F), e.component("Dialog", Qr), e.component("DialogContent", et), e.component("DialogToggle", rt), e.component("DialogBackground", tt), e.component("Empty", ar), e.component("FormField", gr), e.component("FormFieldError", fr), e.component("Input", hr), e.component("Label", _r), e.component("MultiSelect", Rr), e.component("Radio", Vr), e.component("Select", Pr), e.component("Sheet", ot), e.component("SheetContent", nt), e.component("SheetToggle", at), e.component("SkeletonLoader", Lr), e.component("Switch", Wr), e.component("Table", Kr), e.component("Tabs", Zr), e.component("TabItem", Yr), e.component("TextArea", Xr);
|
|
1041
1058
|
}
|
|
1042
1059
|
};
|
|
1043
1060
|
export {
|
|
1044
1061
|
ae as A,
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1062
|
+
Pr as B,
|
|
1063
|
+
F as C,
|
|
1064
|
+
Qr as D,
|
|
1065
|
+
ar as E,
|
|
1066
|
+
fr as F,
|
|
1067
|
+
nt as G,
|
|
1068
|
+
at as H,
|
|
1069
|
+
Lr as I,
|
|
1070
|
+
gt as J,
|
|
1071
|
+
Wr as K,
|
|
1072
|
+
_r as L,
|
|
1073
|
+
Kr as M,
|
|
1074
|
+
Zr as N,
|
|
1075
|
+
Xr as O,
|
|
1076
|
+
pt as P,
|
|
1077
|
+
dt as Q,
|
|
1078
|
+
ot as S,
|
|
1079
|
+
Yr as T,
|
|
1063
1080
|
re as _,
|
|
1064
1081
|
de as a,
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1082
|
+
it as b,
|
|
1083
|
+
he as c,
|
|
1084
|
+
_e as d,
|
|
1085
|
+
ye as e,
|
|
1086
|
+
$e as f,
|
|
1087
|
+
Se as g,
|
|
1088
|
+
Re as h,
|
|
1089
|
+
De as i,
|
|
1090
|
+
ze as j,
|
|
1091
|
+
Me as k,
|
|
1092
|
+
Ee as l,
|
|
1093
|
+
Ge as m,
|
|
1094
|
+
Ke as n,
|
|
1095
|
+
Ue as o,
|
|
1096
|
+
Ze as p,
|
|
1097
|
+
Qe as q,
|
|
1098
|
+
et as r,
|
|
1099
|
+
rt as s,
|
|
1100
|
+
tt as t,
|
|
1101
|
+
ct as u,
|
|
1102
|
+
ut as v,
|
|
1103
|
+
gr as w,
|
|
1104
|
+
hr as x,
|
|
1105
|
+
Rr as y,
|
|
1106
|
+
Vr as z
|
|
1090
1107
|
};
|