scrubbed-tailwind-components-v2 2.5.1 → 2.5.3
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/Alert.vue.d.ts +7 -0
- package/dist/AlertContent.vue.d.ts +9 -0
- package/dist/AlertTitle.vue.d.ts +9 -0
- package/dist/AppContentHeader.vue.d.ts +18 -0
- package/dist/AppHeader.vue.d.ts +15 -0
- package/dist/AppHeaderLink.vue.d.ts +16 -0
- package/dist/AppLayout.vue.d.ts +2 -0
- package/dist/AppMain.vue.d.ts +9 -0
- package/dist/AppNavTab.vue.d.ts +14 -0
- package/dist/AppNavTabs.vue.d.ts +9 -0
- package/dist/AppSidebar.vue.d.ts +6 -0
- package/dist/AppSidebarItem.vue.d.ts +9 -0
- package/dist/AppSidebarItemChild.vue.d.ts +16 -0
- package/dist/AppSidebarItemChildren.vue.d.ts +9 -0
- package/dist/AppSidebarItemParent.vue.d.ts +20 -0
- package/dist/AppSidebarNavSection.vue.d.ts +11 -0
- package/dist/AppSidebarToggle.vue.d.ts +9 -0
- package/dist/Badge.vue.d.ts +14 -0
- package/dist/Button.vue.d.ts +15 -0
- package/dist/Card.vue.d.ts +9 -0
- package/dist/Checkbox.vue.d.ts +2 -0
- package/dist/Dialog.vue.d.ts +13 -0
- package/dist/DialogBackground.vue.d.ts +9 -0
- package/dist/{DialogContent-BrXhtNDl.js → DialogContent-BQ3bdCEs.js} +1 -1
- package/dist/DialogContent.vue.d.ts +16 -0
- package/dist/DialogToggle.vue.d.ts +2 -0
- package/dist/Empty.vue.d.ts +11 -0
- package/dist/EmptyContent.vue.d.ts +9 -0
- package/dist/EmptyTitle.vue.d.ts +9 -0
- package/dist/FormField.vue.d.ts +16 -0
- package/dist/FormFieldError.vue.d.ts +9 -0
- package/dist/Input.vue.d.ts +2 -0
- package/dist/Label.vue.d.ts +9 -0
- package/dist/MultiSelect.vue.d.ts +11 -0
- package/dist/Popover.vue.d.ts +6 -0
- package/dist/PopoverContent.vue.d.ts +2 -0
- package/dist/PopoverToggle.vue.d.ts +2 -0
- package/dist/Radio.vue.d.ts +14 -0
- package/dist/Select.vue.d.ts +9 -0
- package/dist/Sheet.vue.d.ts +13 -0
- package/dist/{SheetContent-CwM7Ef5X.js → SheetContent-DflOq7ZN.js} +1 -1
- package/dist/SheetContent.vue.d.ts +14 -0
- package/dist/SheetToggle.vue.d.ts +2 -0
- package/dist/SkeletonLoader.vue.d.ts +2 -0
- package/dist/StateActions.vue.d.ts +9 -0
- package/dist/Switch.vue.d.ts +15 -0
- package/dist/TabItem.vue.d.ts +14 -0
- package/dist/Table.vue.d.ts +22 -0
- package/dist/Tabs.vue.d.ts +14 -0
- package/dist/TagsInput.vue.d.ts +11 -0
- package/dist/TextArea.vue.d.ts +7 -0
- package/dist/X.vue.d.ts +2 -0
- package/dist/{index-BF-I-8pN.js → index-CoFsEOrT.js} +219 -217
- package/dist/index.d.ts +171 -0
- package/dist/scrubbed-tailwind-components-v2.es.js +1 -1
- package/dist/scrubbed-tailwind-components-v2.umd.js +1 -1
- package/package.json +20 -9
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useSlots as W, provide as P, createElementBlock as s, openBlock as a, normalizeClass as f, createElementVNode as
|
|
2
|
-
import { RouterLink as
|
|
1
|
+
import { useSlots as W, provide as P, createElementBlock as s, openBlock as a, normalizeClass as f, createElementVNode as l, createBlock as x, resolveDynamicComponent as $, cloneVNode as A, unref as c, renderSlot as i, 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 M, useRoute as H } from "vue-router";
|
|
3
3
|
const re = {
|
|
4
4
|
__name: "Alert",
|
|
5
5
|
props: {
|
|
@@ -42,20 +42,20 @@ const re = {
|
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
44
|
return P("ALERT", { VARIANT_MAP: n }), (d, u) => {
|
|
45
|
-
var m, p, b, g, v,
|
|
45
|
+
var m, p, b, g, v, z;
|
|
46
46
|
return a(), s("div", {
|
|
47
47
|
class: f(["flex w-full gap-4 rounded-2xl border p-4", n[t.variant].root])
|
|
48
48
|
}, [
|
|
49
|
-
|
|
49
|
+
l("div", {
|
|
50
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
53
|
class: f(["size-4", o[t.variant].icon])
|
|
54
54
|
}, null, 8, ["class"]))
|
|
55
55
|
], 2),
|
|
56
|
-
|
|
56
|
+
l("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((z = (v = c(r)).default) == null ? void 0 : z.call(v)[2]))))
|
|
59
59
|
])
|
|
60
60
|
], 2);
|
|
61
61
|
};
|
|
@@ -68,29 +68,29 @@ const re = {
|
|
|
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
|
+
i(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
|
+
i(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: "lg:w-60" }, pe = { class: "hidden xl:block" }, me = { class: "flex items-center gap-10" }, be = { class: "hidden gap-6 sm:flex" },
|
|
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" }, ct = {
|
|
81
81
|
__name: "AppHeader",
|
|
82
82
|
setup(e) {
|
|
83
83
|
const r = y("APP_DATA"), { isSidebarToggled: t, toggleSidebar: n } = r;
|
|
84
84
|
return (o, d) => (a(), s("header", {
|
|
85
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
|
-
|
|
87
|
+
l("nav", ce, [
|
|
88
|
+
l("div", ue, [
|
|
89
|
+
l("button", {
|
|
90
90
|
onClick: d[0] || (d[0] = (u) => c(n)()),
|
|
91
91
|
class: "block cursor-pointer rounded-full p-2 hover:bg-neutral-100 lg:hidden"
|
|
92
92
|
}, d[1] || (d[1] = [
|
|
93
|
-
|
|
93
|
+
l("svg", {
|
|
94
94
|
xmlns: "http://www.w3.org/2000/svg",
|
|
95
95
|
width: "24",
|
|
96
96
|
height: "24",
|
|
@@ -102,23 +102,23 @@ 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
|
+
l("path", { d: "M4 12h16" }),
|
|
106
|
+
l("path", { d: "M4 18h16" }),
|
|
107
|
+
l("path", { d: "M4 6h16" })
|
|
108
108
|
], -1)
|
|
109
109
|
])),
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
l("div", ge, [
|
|
111
|
+
i(o.$slots, "header-img")
|
|
112
112
|
]),
|
|
113
|
-
|
|
114
|
-
|
|
113
|
+
l("div", pe, [
|
|
114
|
+
i(o.$slots, "header-banner")
|
|
115
115
|
])
|
|
116
116
|
]),
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
117
|
+
l("div", me, [
|
|
118
|
+
l("ul", be, [
|
|
119
|
+
i(o.$slots, "header-links")
|
|
120
120
|
]),
|
|
121
|
-
|
|
121
|
+
i(o.$slots, "header-actions")
|
|
122
122
|
])
|
|
123
123
|
])
|
|
124
124
|
], 2));
|
|
@@ -131,13 +131,13 @@ const de = /* @__PURE__ */ h(se, [["render", ie]]), ce = { class: "flex w-full i
|
|
|
131
131
|
setup(e) {
|
|
132
132
|
const r = e;
|
|
133
133
|
return (t, n) => (a(), s("li", null, [
|
|
134
|
-
r.to.startsWith("/") ? (a(), x(c(
|
|
134
|
+
r.to.startsWith("/") ? (a(), x(c(M), {
|
|
135
135
|
key: 0,
|
|
136
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",
|
|
137
137
|
to: r.to
|
|
138
138
|
}, {
|
|
139
139
|
default: V(() => [
|
|
140
|
-
|
|
140
|
+
i(t.$slots, "default")
|
|
141
141
|
]),
|
|
142
142
|
_: 3
|
|
143
143
|
}, 8, ["to"])) : (a(), s("a", {
|
|
@@ -145,7 +145,7 @@ const de = /* @__PURE__ */ h(se, [["render", ie]]), ce = { class: "flex w-full i
|
|
|
145
145
|
class: "hover:text-primary-950 text-xs uppercase text-neutral-600 hover:transition-all",
|
|
146
146
|
href: r.to
|
|
147
147
|
}, [
|
|
148
|
-
|
|
148
|
+
i(t.$slots, "default")
|
|
149
149
|
], 8, fe))
|
|
150
150
|
]));
|
|
151
151
|
}
|
|
@@ -167,9 +167,9 @@ const de = /* @__PURE__ */ h(se, [["render", ie]]), ce = { class: "flex w-full i
|
|
|
167
167
|
"origin-[center_top] translate-y-4 scale-93": r.value
|
|
168
168
|
}])
|
|
169
169
|
}, [
|
|
170
|
-
|
|
170
|
+
l("div", ve, [
|
|
171
171
|
(a(), x($(A((m = (u = o.$slots).default) == null ? void 0 : m.call(u)[0])))),
|
|
172
|
-
|
|
172
|
+
l("div", xe, [
|
|
173
173
|
(a(), x($(A((b = (p = o.$slots).default) == null ? void 0 : b.call(p)[1])))),
|
|
174
174
|
(a(), x($(A((v = (g = o.$slots).default) == null ? void 0 : v.call(g)[2]))))
|
|
175
175
|
])
|
|
@@ -177,7 +177,7 @@ const de = /* @__PURE__ */ h(se, [["render", ie]]), ce = { class: "flex w-full i
|
|
|
177
177
|
], 2);
|
|
178
178
|
};
|
|
179
179
|
}
|
|
180
|
-
}, ye = {
|
|
180
|
+
}, ye = { class: "grid h-full w-full place-items-center items-center" }, ke = { class: "mb-6 h-full w-full max-w-480 space-y-6" }, Ce = {
|
|
181
181
|
__name: "AppMain",
|
|
182
182
|
setup(e) {
|
|
183
183
|
const r = y("APP_DATA"), { isSidebarToggled: t } = r;
|
|
@@ -187,66 +187,68 @@ const de = /* @__PURE__ */ h(se, [["render", ie]]), ce = { class: "flex w-full i
|
|
|
187
187
|
c(t) ? "overflow-hidden rounded-t-xl sm:rounded-none" : "sm:rounded-tl-2xl"
|
|
188
188
|
])
|
|
189
189
|
}, [
|
|
190
|
-
l(
|
|
190
|
+
l("div", ye, [
|
|
191
|
+
l("div", ke, [
|
|
192
|
+
i(n.$slots, "default")
|
|
193
|
+
])
|
|
194
|
+
])
|
|
191
195
|
], 2));
|
|
192
196
|
}
|
|
193
|
-
},
|
|
194
|
-
function
|
|
195
|
-
return a(), s("div",
|
|
196
|
-
|
|
197
|
+
}, we = {}, $e = { class: "flex w-full overflow-x-auto border-b-[1px] border-neutral-200 [&::-webkit-scrollbar]:hidden" };
|
|
198
|
+
function Ae(e, r) {
|
|
199
|
+
return a(), s("div", $e, [
|
|
200
|
+
i(e.$slots, "default")
|
|
197
201
|
]);
|
|
198
202
|
}
|
|
199
|
-
const
|
|
203
|
+
const Se = /* @__PURE__ */ h(we, [["render", Ae]]), Te = { class: "shrink-0" }, Be = {
|
|
200
204
|
__name: "AppNavTab",
|
|
201
205
|
props: {
|
|
202
206
|
to: { type: String, required: !0 }
|
|
203
207
|
},
|
|
204
208
|
setup(e) {
|
|
205
209
|
const r = e;
|
|
206
|
-
return _(null), (t, n) => (a(), s("div",
|
|
207
|
-
j(c(
|
|
208
|
-
class: "[&.router-link-exact-active]:text-primary-
|
|
210
|
+
return _(null), (t, n) => (a(), s("div", Te, [
|
|
211
|
+
j(c(M), {
|
|
212
|
+
class: "[&.router-link-exact-active]:text-brand-primary-900 [&.router-link-exact-active]:border-brand-primary-700 [&.router-link-exact-active]:bg-primary-100 group relative flex h-10 shrink-0 items-center justify-between gap-2 rounded-t-xl border-b-2 border-transparent px-4 text-xs text-neutral-600 transition-all hover:border-neutral-400 hover:bg-neutral-100 [&.router-link-exact-active]:font-medium",
|
|
209
213
|
to: r.to
|
|
210
214
|
}, {
|
|
211
215
|
default: V(() => [
|
|
212
|
-
|
|
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))
|
|
216
|
+
i(t.$slots, "default")
|
|
214
217
|
]),
|
|
215
|
-
_: 3
|
|
216
|
-
__: [0]
|
|
218
|
+
_: 3
|
|
217
219
|
}, 8, ["to"])
|
|
218
220
|
]));
|
|
219
221
|
}
|
|
220
|
-
},
|
|
222
|
+
}, Ie = { 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" }, Re = {
|
|
221
223
|
key: 0,
|
|
222
224
|
class: "sticky top-0 z-50 bg-white"
|
|
223
|
-
},
|
|
225
|
+
}, Ve = {
|
|
224
226
|
key: 1,
|
|
225
227
|
class: "sticky bottom-0 z-50 bg-white"
|
|
226
|
-
},
|
|
228
|
+
}, De = {
|
|
227
229
|
__name: "AppSidebar",
|
|
228
230
|
setup(e) {
|
|
229
231
|
const r = y("APP_DATA"), { isSidebarToggled: t, toggleSidebar: n } = r;
|
|
230
232
|
return W(), (o, d) => (a(), s(S, null, [
|
|
231
|
-
|
|
232
|
-
o.$slots.header ? (a(), s("div",
|
|
233
|
-
|
|
233
|
+
l("aside", Ie, [
|
|
234
|
+
o.$slots.header ? (a(), s("div", Re, [
|
|
235
|
+
i(o.$slots, "header")
|
|
234
236
|
])) : T("", !0),
|
|
235
|
-
|
|
236
|
-
o.$slots.footer ? (a(), s("div",
|
|
237
|
-
|
|
237
|
+
i(o.$slots, "default"),
|
|
238
|
+
o.$slots.footer ? (a(), s("div", Ve, [
|
|
239
|
+
i(o.$slots, "footer")
|
|
238
240
|
])) : T("", !0)
|
|
239
241
|
]),
|
|
240
242
|
(a(), x(K, { to: "body" }, [
|
|
241
|
-
|
|
243
|
+
l("div", {
|
|
242
244
|
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",
|
|
243
245
|
style: U(
|
|
244
246
|
c(t) ? "transform: translateZ(0)" : "transform: translate3d(0,60svh,0)"
|
|
245
247
|
)
|
|
246
248
|
}, [
|
|
247
|
-
|
|
249
|
+
i(o.$slots, "default")
|
|
248
250
|
], 4),
|
|
249
|
-
|
|
251
|
+
l("div", {
|
|
250
252
|
onClick: d[0] || (d[0] = (u) => c(n)()),
|
|
251
253
|
class: f([
|
|
252
254
|
"backdrop transition-all [transition-behavior:allow-discrete] duration-300",
|
|
@@ -256,7 +258,7 @@ const $e = /* @__PURE__ */ h(ke, [["render", we]]), Ae = { class: "shrink-0" },
|
|
|
256
258
|
]))
|
|
257
259
|
], 64));
|
|
258
260
|
}
|
|
259
|
-
},
|
|
261
|
+
}, Pe = { class: "flex flex-col" }, Me = {
|
|
260
262
|
__name: "AppSidebarItem",
|
|
261
263
|
setup(e) {
|
|
262
264
|
H();
|
|
@@ -264,24 +266,24 @@ const $e = /* @__PURE__ */ h(ke, [["render", we]]), Ae = { class: "shrink-0" },
|
|
|
264
266
|
function t() {
|
|
265
267
|
r.value = !r.value;
|
|
266
268
|
}
|
|
267
|
-
return P("SIDEBAR_TOGGLE", { toggled: r, toggleSidebarItem: t }), (n, o) => (a(), s("div",
|
|
268
|
-
|
|
269
|
+
return P("SIDEBAR_TOGGLE", { toggled: r, toggleSidebarItem: t }), (n, o) => (a(), s("div", Pe, [
|
|
270
|
+
i(n.$slots, "default")
|
|
269
271
|
]));
|
|
270
272
|
}
|
|
271
|
-
},
|
|
273
|
+
}, ze = ["href"], je = {
|
|
272
274
|
__name: "AppSidebarItemChild",
|
|
273
275
|
props: {
|
|
274
276
|
to: { type: [String, Object], required: !0 }
|
|
275
277
|
},
|
|
276
278
|
setup(e) {
|
|
277
279
|
const r = e;
|
|
278
|
-
return (t, n) => typeof r.to == "object" || r.to.startsWith("/") ? (a(), x(c(
|
|
280
|
+
return (t, n) => typeof r.to == "object" || r.to.startsWith("/") ? (a(), x(c(M), {
|
|
279
281
|
key: 0,
|
|
280
282
|
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",
|
|
281
283
|
to: r.to
|
|
282
284
|
}, {
|
|
283
285
|
default: V(() => [
|
|
284
|
-
|
|
286
|
+
i(t.$slots, "default")
|
|
285
287
|
]),
|
|
286
288
|
_: 3
|
|
287
289
|
}, 8, ["to"])) : (a(), s("a", {
|
|
@@ -289,20 +291,20 @@ const $e = /* @__PURE__ */ h(ke, [["render", we]]), Ae = { class: "shrink-0" },
|
|
|
289
291
|
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",
|
|
290
292
|
href: r.to
|
|
291
293
|
}, [
|
|
292
|
-
|
|
293
|
-
], 8,
|
|
294
|
+
i(t.$slots, "default")
|
|
295
|
+
], 8, ze));
|
|
294
296
|
}
|
|
295
|
-
},
|
|
297
|
+
}, Le = {
|
|
296
298
|
__name: "AppSidebarItemChildren",
|
|
297
299
|
setup(e) {
|
|
298
300
|
const r = y("SIDEBAR_TOGGLE"), { toggled: t } = r;
|
|
299
301
|
return (n, o) => (a(), s("div", {
|
|
300
302
|
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) }])
|
|
301
303
|
}, [
|
|
302
|
-
|
|
304
|
+
i(n.$slots, "default")
|
|
303
305
|
], 2));
|
|
304
306
|
}
|
|
305
|
-
},
|
|
307
|
+
}, 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" }, Ne = ["href"], Ge = {
|
|
306
308
|
__name: "AppSidebarItemParent",
|
|
307
309
|
props: {
|
|
308
310
|
to: { type: [String, Object], required: !0 },
|
|
@@ -316,15 +318,15 @@ const $e = /* @__PURE__ */ h(ke, [["render", we]]), Ae = { class: "shrink-0" },
|
|
|
316
318
|
(g) => t.name === g.name
|
|
317
319
|
) ? d.value = !0 : d.value = !1;
|
|
318
320
|
}
|
|
319
|
-
return Z(r, () => p(), { immediate: !0 }), (b, g) => (a(), s("div",
|
|
320
|
-
typeof t.to == "object" || t.to.startsWith("/") ? (a(), x(c(
|
|
321
|
+
return Z(r, () => p(), { immediate: !0 }), (b, g) => (a(), s("div", Ee, [
|
|
322
|
+
typeof t.to == "object" || t.to.startsWith("/") ? (a(), x(c(M), {
|
|
321
323
|
key: 0,
|
|
322
324
|
onClick: g[0] || (g[0] = (v) => c(m)()),
|
|
323
325
|
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",
|
|
324
326
|
to: t.to
|
|
325
327
|
}, {
|
|
326
328
|
default: V(() => [
|
|
327
|
-
|
|
329
|
+
i(b.$slots, "default")
|
|
328
330
|
]),
|
|
329
331
|
_: 3
|
|
330
332
|
}, 8, ["to"])) : (a(), s("a", {
|
|
@@ -332,8 +334,8 @@ const $e = /* @__PURE__ */ h(ke, [["render", we]]), Ae = { class: "shrink-0" },
|
|
|
332
334
|
class: "text-primary-950 peer flex h-full w-full items-center gap-3 text-xs",
|
|
333
335
|
href: t.to
|
|
334
336
|
}, [
|
|
335
|
-
|
|
336
|
-
], 8,
|
|
337
|
+
i(b.$slots, "default")
|
|
338
|
+
], 8, Ne)),
|
|
337
339
|
t.hasChildren ? (a(), s("button", {
|
|
338
340
|
key: 2,
|
|
339
341
|
onClick: g[1] || (g[1] = (v) => c(u)()),
|
|
@@ -352,33 +354,33 @@ const $e = /* @__PURE__ */ h(ke, [["render", we]]), Ae = { class: "shrink-0" },
|
|
|
352
354
|
"stroke-linejoin": "round",
|
|
353
355
|
class: f(["lucide lucide-chevron-down-icon lucide-chevron-down stroke-brand-primary-800 transition-all duration-300", { "rotate-180": c(d) }])
|
|
354
356
|
}, g[2] || (g[2] = [
|
|
355
|
-
|
|
357
|
+
l("path", { d: "m6 9 6 6 6-6" }, null, -1)
|
|
356
358
|
]), 2))
|
|
357
359
|
])) : T("", !0)
|
|
358
360
|
]));
|
|
359
361
|
}
|
|
360
|
-
},
|
|
362
|
+
}, We = { 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" }, Oe = {
|
|
361
363
|
__name: "AppSidebarToggle",
|
|
362
364
|
setup(e) {
|
|
363
365
|
const r = y("SIDEBAR_TOGGLE");
|
|
364
366
|
return (t, n) => {
|
|
365
367
|
const o = J("RouterLink");
|
|
366
|
-
return a(), s("div",
|
|
368
|
+
return a(), s("div", We, [
|
|
367
369
|
j(o, {
|
|
368
370
|
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",
|
|
369
371
|
to: "/"
|
|
370
372
|
}, {
|
|
371
373
|
default: V(() => [
|
|
372
|
-
|
|
374
|
+
i(t.$slots, "default")
|
|
373
375
|
]),
|
|
374
376
|
_: 3
|
|
375
377
|
}),
|
|
376
|
-
|
|
378
|
+
l("button", {
|
|
377
379
|
onClick: n[0] || (n[0] = (d) => c(r).toggleSidebarItem()),
|
|
378
380
|
class: "cursor-pointer",
|
|
379
381
|
type: "button"
|
|
380
382
|
}, n[1] || (n[1] = [
|
|
381
|
-
|
|
383
|
+
l("svg", {
|
|
382
384
|
xmlns: "http://www.w3.org/2000/svg",
|
|
383
385
|
width: "16",
|
|
384
386
|
height: "16",
|
|
@@ -390,27 +392,27 @@ const $e = /* @__PURE__ */ h(ke, [["render", we]]), Ae = { class: "shrink-0" },
|
|
|
390
392
|
"stroke-linejoin": "round",
|
|
391
393
|
class: "lucide lucide-chevron-down-icon lucide-chevron-down stroke-white"
|
|
392
394
|
}, [
|
|
393
|
-
|
|
395
|
+
l("path", { d: "m6 9 6 6 6-6" })
|
|
394
396
|
], -1)
|
|
395
397
|
]))
|
|
396
398
|
]);
|
|
397
399
|
};
|
|
398
400
|
}
|
|
399
|
-
},
|
|
401
|
+
}, qe = {}, He = { class: "px-4 pb-4 first-of-type:pt-4" }, Fe = {
|
|
400
402
|
key: 0,
|
|
401
403
|
class: "text-primary-950 px-1 text-sm font-medium"
|
|
402
|
-
},
|
|
403
|
-
function
|
|
404
|
-
return a(), s("nav",
|
|
405
|
-
e.$slots.title ? (a(), s("b",
|
|
406
|
-
|
|
404
|
+
}, Ke = { class: "mt-2" };
|
|
405
|
+
function Ue(e, r) {
|
|
406
|
+
return a(), s("nav", He, [
|
|
407
|
+
e.$slots.title ? (a(), s("b", Fe, [
|
|
408
|
+
i(e.$slots, "title")
|
|
407
409
|
])) : T("", !0),
|
|
408
|
-
|
|
409
|
-
|
|
410
|
+
l("div", Ke, [
|
|
411
|
+
i(e.$slots, "items")
|
|
410
412
|
])
|
|
411
413
|
]);
|
|
412
414
|
}
|
|
413
|
-
const
|
|
415
|
+
const Ze = /* @__PURE__ */ h(qe, [["render", Ue]]), G = {
|
|
414
416
|
/* ---------------- Solid Buttons ---------------- */
|
|
415
417
|
primary: {
|
|
416
418
|
backgroundColor: "bg-brand-primary-700",
|
|
@@ -638,7 +640,7 @@ const Ke = /* @__PURE__ */ h(We, [["render", Fe]]), G = {
|
|
|
638
640
|
hoverTextColor: "hover:text-warning-700",
|
|
639
641
|
focusRing: "focus:ring-warning-200"
|
|
640
642
|
}
|
|
641
|
-
},
|
|
643
|
+
}, Je = {
|
|
642
644
|
__name: "Badge",
|
|
643
645
|
props: {
|
|
644
646
|
variant: { type: String, default: "primary" }
|
|
@@ -651,10 +653,10 @@ const Ke = /* @__PURE__ */ h(We, [["render", Fe]]), G = {
|
|
|
651
653
|
c(G)[r.variant].textColor
|
|
652
654
|
]])
|
|
653
655
|
}, [
|
|
654
|
-
|
|
656
|
+
i(t.$slots, "default")
|
|
655
657
|
], 2));
|
|
656
658
|
}
|
|
657
|
-
},
|
|
659
|
+
}, Ye = {
|
|
658
660
|
__name: "Button",
|
|
659
661
|
props: {
|
|
660
662
|
variant: { type: String, default: "primary" }
|
|
@@ -673,19 +675,19 @@ const Ke = /* @__PURE__ */ h(We, [["render", Fe]]), G = {
|
|
|
673
675
|
ref_key: "buttonRef",
|
|
674
676
|
ref: n
|
|
675
677
|
}), [
|
|
676
|
-
|
|
678
|
+
i(o.$slots, "default")
|
|
677
679
|
], 16));
|
|
678
680
|
}
|
|
679
|
-
},
|
|
680
|
-
function
|
|
681
|
-
return a(), s("div",
|
|
682
|
-
|
|
681
|
+
}, Xe = {}, Qe = { class: "rounded-2xl bg-white p-6" };
|
|
682
|
+
function er(e, r) {
|
|
683
|
+
return a(), s("div", Qe, [
|
|
684
|
+
i(e.$slots, "default")
|
|
683
685
|
]);
|
|
684
686
|
}
|
|
685
|
-
const F = /* @__PURE__ */ h(
|
|
687
|
+
const F = /* @__PURE__ */ h(Xe, [["render", er]]), ut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
686
688
|
__proto__: null,
|
|
687
689
|
default: F
|
|
688
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
690
|
+
}, Symbol.toStringTag, { value: "Module" })), rr = {
|
|
689
691
|
__name: "Checkbox",
|
|
690
692
|
props: {
|
|
691
693
|
modelValue: {},
|
|
@@ -698,7 +700,7 @@ const F = /* @__PURE__ */ h(Je, [["render", Xe]]), dt = /* @__PURE__ */ Object.f
|
|
|
698
700
|
onClick: o[2] || (o[2] = (d) => t.value.click()),
|
|
699
701
|
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"
|
|
700
702
|
}, [
|
|
701
|
-
o[3] || (o[3] =
|
|
703
|
+
o[3] || (o[3] = l("svg", {
|
|
702
704
|
xmlns: "http://www.w3.org/2000/svg",
|
|
703
705
|
width: "14",
|
|
704
706
|
height: "14",
|
|
@@ -710,9 +712,9 @@ const F = /* @__PURE__ */ h(Je, [["render", Xe]]), dt = /* @__PURE__ */ Object.f
|
|
|
710
712
|
"stroke-linejoin": "round",
|
|
711
713
|
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"
|
|
712
714
|
}, [
|
|
713
|
-
|
|
715
|
+
l("path", { d: "M20 6 9 17l-5-5" })
|
|
714
716
|
], -1)),
|
|
715
|
-
I(
|
|
717
|
+
I(l("input", k(n.$attrs, {
|
|
716
718
|
"onUpdate:modelValue": o[0] || (o[0] = (d) => r.value = d),
|
|
717
719
|
onChange: o[1] || (o[1] = O(() => {
|
|
718
720
|
}, ["stop"])),
|
|
@@ -725,30 +727,30 @@ const F = /* @__PURE__ */ h(Je, [["render", Xe]]), dt = /* @__PURE__ */ Object.f
|
|
|
725
727
|
])
|
|
726
728
|
]));
|
|
727
729
|
}
|
|
728
|
-
},
|
|
729
|
-
function
|
|
730
|
-
return a(), s("div",
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
730
|
+
}, tr = {}, or = { class: "flex flex-col items-center justify-center gap-8" }, nr = { class: "flex max-w-xs flex-col items-center gap-2 text-center" }, ar = { class: "bg-brand-primary-100 mb-2 grid size-12 place-items-center rounded-full" };
|
|
731
|
+
function sr(e, r) {
|
|
732
|
+
return a(), s("div", or, [
|
|
733
|
+
l("div", nr, [
|
|
734
|
+
l("div", ar, [
|
|
735
|
+
i(e.$slots, "icon")
|
|
734
736
|
]),
|
|
735
|
-
|
|
737
|
+
i(e.$slots, "default")
|
|
736
738
|
])
|
|
737
739
|
]);
|
|
738
740
|
}
|
|
739
|
-
const
|
|
740
|
-
function
|
|
741
|
-
return a(), s("p",
|
|
742
|
-
|
|
741
|
+
const lr = /* @__PURE__ */ h(tr, [["render", sr]]), ir = {}, dr = { class: "text-sm text-neutral-600" };
|
|
742
|
+
function cr(e, r) {
|
|
743
|
+
return a(), s("p", dr, [
|
|
744
|
+
i(e.$slots, "default")
|
|
743
745
|
]);
|
|
744
746
|
}
|
|
745
|
-
const
|
|
746
|
-
function
|
|
747
|
-
return a(), s("b",
|
|
748
|
-
|
|
747
|
+
const gt = /* @__PURE__ */ h(ir, [["render", cr]]), ur = {}, gr = { class: "text-lg font-medium" };
|
|
748
|
+
function pr(e, r) {
|
|
749
|
+
return a(), s("b", gr, [
|
|
750
|
+
i(e.$slots, "default")
|
|
749
751
|
]);
|
|
750
752
|
}
|
|
751
|
-
const
|
|
753
|
+
const pt = /* @__PURE__ */ h(ur, [["render", pr]]), mr = {
|
|
752
754
|
__name: "FormField",
|
|
753
755
|
props: {
|
|
754
756
|
invalid: { type: [Boolean, String] },
|
|
@@ -759,16 +761,16 @@ const ut = /* @__PURE__ */ h(dr, [["render", ur]]), gr = {
|
|
|
759
761
|
return (n, o) => (a(), s("div", {
|
|
760
762
|
class: f(["group flex flex-col gap-2", { "invalid-form": t.value }])
|
|
761
763
|
}, [
|
|
762
|
-
|
|
764
|
+
i(n.$slots, "default")
|
|
763
765
|
], 2));
|
|
764
766
|
}
|
|
765
|
-
},
|
|
766
|
-
function
|
|
767
|
-
return a(), s("p",
|
|
768
|
-
|
|
767
|
+
}, br = {}, fr = { 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" };
|
|
768
|
+
function hr(e, r) {
|
|
769
|
+
return a(), s("p", fr, [
|
|
770
|
+
i(e.$slots, "default", {}, void 0, !0)
|
|
769
771
|
]);
|
|
770
772
|
}
|
|
771
|
-
const
|
|
773
|
+
const vr = /* @__PURE__ */ h(br, [["render", hr], ["__scopeId", "data-v-a299dc33"]]), xr = {
|
|
772
774
|
__name: "Input",
|
|
773
775
|
props: {
|
|
774
776
|
modelValue: {},
|
|
@@ -784,13 +786,13 @@ const fr = /* @__PURE__ */ h(pr, [["render", br], ["__scopeId", "data-v-a299dc33
|
|
|
784
786
|
[E, r.value]
|
|
785
787
|
]);
|
|
786
788
|
}
|
|
787
|
-
},
|
|
788
|
-
function
|
|
789
|
+
}, _r = {};
|
|
790
|
+
function yr(e, r) {
|
|
789
791
|
return a(), s("label", k(e.$attrs, { class: "text-primary-950 text-xs font-medium transition-all" }), [
|
|
790
|
-
|
|
792
|
+
i(e.$slots, "default")
|
|
791
793
|
], 16);
|
|
792
794
|
}
|
|
793
|
-
const
|
|
795
|
+
const kr = /* @__PURE__ */ h(_r, [["render", yr]]), Cr = {}, wr = {
|
|
794
796
|
xmlns: "http://www.w3.org/2000/svg",
|
|
795
797
|
width: "24",
|
|
796
798
|
height: "24",
|
|
@@ -802,13 +804,13 @@ const _r = /* @__PURE__ */ h(vr, [["render", xr]]), yr = {}, kr = {
|
|
|
802
804
|
"stroke-linejoin": "round",
|
|
803
805
|
class: "lucide lucide-x-icon lucide-x"
|
|
804
806
|
};
|
|
805
|
-
function
|
|
806
|
-
return a(), s("svg",
|
|
807
|
-
|
|
808
|
-
|
|
807
|
+
function $r(e, r) {
|
|
808
|
+
return a(), s("svg", wr, r[0] || (r[0] = [
|
|
809
|
+
l("path", { d: "M18 6 6 18" }, null, -1),
|
|
810
|
+
l("path", { d: "m6 6 12 12" }, null, -1)
|
|
809
811
|
]));
|
|
810
812
|
}
|
|
811
|
-
const
|
|
813
|
+
const Ar = /* @__PURE__ */ h(Cr, [["render", $r]]), Sr = { class: "max-w-72 space-y-2 rounded-xl border border-neutral-200 bg-white p-2" }, Tr = { class: "flex flex-wrap gap-2" }, Br = { 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" }, Ir = ["onClick"], Rr = { class: "max-h-72 overflow-y-auto" }, Vr = ["onClick"], Dr = {
|
|
812
814
|
__name: "MultiSelect",
|
|
813
815
|
props: /* @__PURE__ */ N({
|
|
814
816
|
data: { type: Array, required: !0 },
|
|
@@ -836,19 +838,19 @@ const wr = /* @__PURE__ */ h(yr, [["render", Cr]]), $r = { class: "max-w-72 spac
|
|
|
836
838
|
}
|
|
837
839
|
return X(() => {
|
|
838
840
|
n.value = r.value;
|
|
839
|
-
}), (p, b) => (a(), s("div",
|
|
840
|
-
|
|
841
|
-
(a(!0), s(S, null, R(n.value, (g, v) => (a(), s("li",
|
|
841
|
+
}), (p, b) => (a(), s("div", Sr, [
|
|
842
|
+
l("ul", Tr, [
|
|
843
|
+
(a(!0), s(S, null, R(n.value, (g, v) => (a(), s("li", Br, [
|
|
842
844
|
q(D(g[t.labelKey]) + " ", 1),
|
|
843
|
-
|
|
844
|
-
onClick: (
|
|
845
|
+
l("button", {
|
|
846
|
+
onClick: (z) => m(v),
|
|
845
847
|
class: "hidden shrink-0 cursor-pointer rounded-full group-hover/item:block"
|
|
846
848
|
}, [
|
|
847
|
-
j(
|
|
848
|
-
], 8,
|
|
849
|
+
j(Ar, { class: "size-3.5 stroke-neutral-600" })
|
|
850
|
+
], 8, Ir)
|
|
849
851
|
]))), 256))
|
|
850
852
|
]),
|
|
851
|
-
I(
|
|
853
|
+
I(l("input", {
|
|
852
854
|
"onUpdate:modelValue": b[0] || (b[0] = (g) => o.value = g),
|
|
853
855
|
class: "w-full px-2 py-3 text-xs outline-none",
|
|
854
856
|
placeholder: "Search",
|
|
@@ -856,16 +858,16 @@ const wr = /* @__PURE__ */ h(yr, [["render", Cr]]), $r = { class: "max-w-72 spac
|
|
|
856
858
|
}, null, 512), [
|
|
857
859
|
[E, o.value]
|
|
858
860
|
]),
|
|
859
|
-
|
|
861
|
+
l("ul", Rr, [
|
|
860
862
|
(a(!0), s(S, null, R(d.value, (g) => (a(), s("li", {
|
|
861
863
|
onClick: (v) => u(g),
|
|
862
864
|
class: "hover:bg-background-main cursor-pointer rounded-lg px-2 py-3 text-xs transition-colors",
|
|
863
865
|
key: g[t.valueKey]
|
|
864
|
-
}, D(g[t.labelKey]), 9,
|
|
866
|
+
}, D(g[t.labelKey]), 9, Vr))), 128))
|
|
865
867
|
])
|
|
866
868
|
]));
|
|
867
869
|
}
|
|
868
|
-
},
|
|
870
|
+
}, Pr = {
|
|
869
871
|
__name: "Radio",
|
|
870
872
|
props: /* @__PURE__ */ N({
|
|
871
873
|
variant: { type: String, default: "small" }
|
|
@@ -885,12 +887,12 @@ const wr = /* @__PURE__ */ h(yr, [["render", Cr]]), $r = { class: "max-w-72 spac
|
|
|
885
887
|
role: "radio",
|
|
886
888
|
type: "button"
|
|
887
889
|
}, [
|
|
888
|
-
|
|
890
|
+
l("div", {
|
|
889
891
|
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])
|
|
890
892
|
}, [
|
|
891
|
-
|
|
893
|
+
i(d.$slots, "default")
|
|
892
894
|
], 2),
|
|
893
|
-
I(
|
|
895
|
+
I(l("input", k({
|
|
894
896
|
onChange: u[0] || (u[0] = O(() => {
|
|
895
897
|
}, ["stop"]))
|
|
896
898
|
}, d.$attrs, {
|
|
@@ -904,7 +906,7 @@ const wr = /* @__PURE__ */ h(yr, [["render", Cr]]), $r = { class: "max-w-72 spac
|
|
|
904
906
|
])
|
|
905
907
|
], 2));
|
|
906
908
|
}
|
|
907
|
-
},
|
|
909
|
+
}, Mr = "bg-[url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiM1YjYxNmUiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBjbGFzcz0ibHVjaWRlIGx1Y2lkZS1jaGV2cm9uLWRvd24iPjxwYXRoIGQ9Im02IDkgNiA2IDYtNiIvPjwvc3ZnPg==')]", zr = {
|
|
908
910
|
__name: "Select",
|
|
909
911
|
props: {
|
|
910
912
|
modelValue: {},
|
|
@@ -915,24 +917,24 @@ const wr = /* @__PURE__ */ h(yr, [["render", Cr]]), $r = { class: "max-w-72 spac
|
|
|
915
917
|
const r = B(e, "modelValue");
|
|
916
918
|
return (t, n) => I((a(), s("select", k(t.$attrs, {
|
|
917
919
|
"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",
|
|
920
|
+
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", Mr]
|
|
919
921
|
}), [
|
|
920
|
-
|
|
922
|
+
i(t.$slots, "default")
|
|
921
923
|
], 16)), [
|
|
922
924
|
[ee, r.value]
|
|
923
925
|
]);
|
|
924
926
|
}
|
|
925
|
-
},
|
|
926
|
-
function
|
|
927
|
-
return a(), s("div",
|
|
927
|
+
}, jr = {}, Lr = { class: "bg-primary-100 animate-pulse rounded-lg" };
|
|
928
|
+
function Er(e, r) {
|
|
929
|
+
return a(), s("div", Lr);
|
|
928
930
|
}
|
|
929
|
-
const
|
|
930
|
-
function
|
|
931
|
-
return a(), s("div",
|
|
932
|
-
|
|
931
|
+
const Nr = /* @__PURE__ */ h(jr, [["render", Er]]), Gr = {}, Wr = { class: "mt-4 flex items-center gap-2" };
|
|
932
|
+
function Or(e, r) {
|
|
933
|
+
return a(), s("div", Wr, [
|
|
934
|
+
i(e.$slots, "default")
|
|
933
935
|
]);
|
|
934
936
|
}
|
|
935
|
-
const
|
|
937
|
+
const mt = /* @__PURE__ */ h(Gr, [["render", Or]]), qr = {
|
|
936
938
|
__name: "Switch",
|
|
937
939
|
props: ["modelValue"],
|
|
938
940
|
emits: ["update:modelValue"],
|
|
@@ -950,17 +952,17 @@ const gt = /* @__PURE__ */ h(Er, [["render", Gr]]), Wr = {
|
|
|
950
952
|
role: "switch",
|
|
951
953
|
type: "button"
|
|
952
954
|
}), [
|
|
953
|
-
|
|
955
|
+
l("span", {
|
|
954
956
|
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 }])
|
|
955
957
|
}, [
|
|
956
|
-
|
|
958
|
+
i(d.$slots, "icon")
|
|
957
959
|
], 2)
|
|
958
960
|
], 16));
|
|
959
961
|
}
|
|
960
|
-
},
|
|
962
|
+
}, Hr = { class: "w-full" }, Fr = { class: "h-16" }, Kr = { key: 0 }, Ur = {
|
|
961
963
|
key: 0,
|
|
962
964
|
class: "pe-4"
|
|
963
|
-
},
|
|
965
|
+
}, Zr = {
|
|
964
966
|
__name: "Table",
|
|
965
967
|
props: {
|
|
966
968
|
columns: { type: Array, required: !0 },
|
|
@@ -968,17 +970,17 @@ const gt = /* @__PURE__ */ h(Er, [["render", Gr]]), Wr = {
|
|
|
968
970
|
},
|
|
969
971
|
setup(e) {
|
|
970
972
|
const r = e;
|
|
971
|
-
return (t, n) => (a(), s("table",
|
|
972
|
-
|
|
973
|
-
|
|
973
|
+
return (t, n) => (a(), s("table", Hr, [
|
|
974
|
+
l("thead", null, [
|
|
975
|
+
l("tr", Fr, [
|
|
974
976
|
(a(!0), s(S, null, R(r.columns, (o) => (a(), s("th", {
|
|
975
977
|
key: o.key,
|
|
976
978
|
class: "text-xs font-medium text-neutral-600 first-of-type:ps-4"
|
|
977
979
|
}, D(o.label), 1))), 128)),
|
|
978
|
-
t.$slots.actions ? (a(), s("th",
|
|
980
|
+
t.$slots.actions ? (a(), s("th", Kr)) : T("", !0)
|
|
979
981
|
])
|
|
980
982
|
]),
|
|
981
|
-
|
|
983
|
+
l("tbody", null, [
|
|
982
984
|
(a(!0), s(S, null, R(r.data, (o, d) => (a(), s("tr", {
|
|
983
985
|
key: d,
|
|
984
986
|
class: "odd:bg-background-main/50 hover:bg-background-main min-h-16 rounded-md transition-all"
|
|
@@ -987,18 +989,18 @@ const gt = /* @__PURE__ */ h(Er, [["render", Gr]]), Wr = {
|
|
|
987
989
|
key: u.key,
|
|
988
990
|
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"
|
|
989
991
|
}, [
|
|
990
|
-
|
|
992
|
+
i(t.$slots, u.key, { row: o }, () => [
|
|
991
993
|
q(D(o[u.key]), 1)
|
|
992
994
|
])
|
|
993
995
|
]))), 128)),
|
|
994
|
-
t.$slots.actions ? (a(), s("td",
|
|
995
|
-
|
|
996
|
+
t.$slots.actions ? (a(), s("td", Ur, [
|
|
997
|
+
i(t.$slots, "actions", { row: o })
|
|
996
998
|
])) : T("", !0)
|
|
997
999
|
]))), 128))
|
|
998
1000
|
])
|
|
999
1001
|
]));
|
|
1000
1002
|
}
|
|
1001
|
-
},
|
|
1003
|
+
}, Jr = { class: "overflow-x-scroll rounded-xl bg-neutral-100/50 p-1 [&::-webkit-scrollbar]:hidden" }, Yr = {
|
|
1002
1004
|
__name: "Tabs",
|
|
1003
1005
|
props: {
|
|
1004
1006
|
default: { default: null }
|
|
@@ -1008,11 +1010,11 @@ const gt = /* @__PURE__ */ h(Er, [["render", Gr]]), Wr = {
|
|
|
1008
1010
|
function n(o) {
|
|
1009
1011
|
t.value = o;
|
|
1010
1012
|
}
|
|
1011
|
-
return P("TAB_DATA", { currentValue: t, setCurrentValue: n }), (o, d) => (a(), s("div",
|
|
1012
|
-
|
|
1013
|
+
return P("TAB_DATA", { currentValue: t, setCurrentValue: n }), (o, d) => (a(), s("div", Jr, [
|
|
1014
|
+
i(o.$slots, "default")
|
|
1013
1015
|
]));
|
|
1014
1016
|
}
|
|
1015
|
-
},
|
|
1017
|
+
}, Xr = {
|
|
1016
1018
|
__name: "TabItem",
|
|
1017
1019
|
props: {
|
|
1018
1020
|
value: { required: !0 }
|
|
@@ -1029,10 +1031,10 @@ const gt = /* @__PURE__ */ h(Er, [["render", Gr]]), Wr = {
|
|
|
1029
1031
|
onClick: m[0] || (m[0] = (p) => c(o)(r.value)),
|
|
1030
1032
|
class: f(["tab h-8 cursor-pointer rounded-lg px-3 text-xs transition-all disabled:cursor-not-allowed disabled:opacity-50", d.value])
|
|
1031
1033
|
}, [
|
|
1032
|
-
|
|
1034
|
+
i(u.$slots, "default", {}, void 0, !0)
|
|
1033
1035
|
], 2));
|
|
1034
1036
|
}
|
|
1035
|
-
},
|
|
1037
|
+
}, Qr = /* @__PURE__ */ h(Xr, [["__scopeId", "data-v-9e06f71f"]]), et = {
|
|
1036
1038
|
__name: "TextArea",
|
|
1037
1039
|
props: /* @__PURE__ */ N(["modelValue"], {
|
|
1038
1040
|
modelValue: {},
|
|
@@ -1050,58 +1052,58 @@ const gt = /* @__PURE__ */ h(Er, [["render", Gr]]), Wr = {
|
|
|
1050
1052
|
[E, r.value]
|
|
1051
1053
|
]);
|
|
1052
1054
|
}
|
|
1053
|
-
},
|
|
1055
|
+
}, rt = C(() => import("./Dialog-BHLcOviq.js")), tt = C(() => import("./DialogContent-BQ3bdCEs.js")), ot = C(() => import("./DialogToggle-BBhhbRSr.js")), nt = C(
|
|
1054
1056
|
() => import("./DialogBackground-WvtbjhWD.js")
|
|
1055
|
-
),
|
|
1057
|
+
), at = C(() => import("./Sheet-BSbgTrds.js")), st = C(() => import("./SheetContent-DflOq7ZN.js")), lt = C(() => import("./SheetToggle-CE4cgr3o.js")), bt = {
|
|
1056
1058
|
install(e) {
|
|
1057
|
-
e.component("Alert", re), e.component("AlertContent", ae), e.component("AlertTitle", de), e.component("AppHeaderLink", he), e.component("AppLayout", _e), e.component("AppMain",
|
|
1059
|
+
e.component("Alert", re), e.component("AlertContent", ae), e.component("AlertTitle", de), e.component("AppHeaderLink", he), e.component("AppLayout", _e), e.component("AppMain", Ce), e.component("AppNavTabs", Se), e.component("AppNavTab", Be), e.component("AppSidebar", De), e.component("AppSidebarItem", Me), e.component("AppSidebarItemChild", je), e.component("AppSidebarItemChildren", Le), e.component("AppSidebarItemParent", Ge), e.component("AppSidebarToggle", Oe), e.component("AppSidebarNavSection", Ze), e.component("Badge", Je), e.component("Button", Ye), e.component("Checkbox", rr), e.component("Card", F), e.component("Dialog", rt), e.component("DialogContent", tt), e.component("DialogToggle", ot), e.component("DialogBackground", nt), e.component("Empty", lr), e.component("FormField", mr), e.component("FormFieldError", vr), e.component("Input", xr), e.component("Label", kr), e.component("MultiSelect", Dr), e.component("Radio", Pr), e.component("Select", zr), e.component("Sheet", at), e.component("SheetContent", st), e.component("SheetToggle", lt), e.component("SkeletonLoader", Nr), e.component("Switch", qr), e.component("Table", Zr), e.component("Tabs", Yr), e.component("TabItem", Qr), e.component("TextArea", et);
|
|
1058
1060
|
}
|
|
1059
1061
|
};
|
|
1060
1062
|
export {
|
|
1061
1063
|
ae as A,
|
|
1062
|
-
|
|
1064
|
+
zr as B,
|
|
1063
1065
|
F as C,
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1066
|
+
rt as D,
|
|
1067
|
+
lr as E,
|
|
1068
|
+
vr as F,
|
|
1069
|
+
st as G,
|
|
1070
|
+
lt as H,
|
|
1071
|
+
Nr as I,
|
|
1072
|
+
mt as J,
|
|
1073
|
+
qr as K,
|
|
1074
|
+
kr as L,
|
|
1075
|
+
Zr as M,
|
|
1076
|
+
Yr as N,
|
|
1077
|
+
et as O,
|
|
1078
|
+
bt as P,
|
|
1079
|
+
ut as Q,
|
|
1080
|
+
at as S,
|
|
1081
|
+
Qr as T,
|
|
1080
1082
|
re as _,
|
|
1081
1083
|
de as a,
|
|
1082
|
-
|
|
1084
|
+
ct as b,
|
|
1083
1085
|
he as c,
|
|
1084
1086
|
_e as d,
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1087
|
+
Ce as e,
|
|
1088
|
+
Se as f,
|
|
1089
|
+
Be as g,
|
|
1090
|
+
De as h,
|
|
1091
|
+
Me as i,
|
|
1092
|
+
je as j,
|
|
1093
|
+
Le as k,
|
|
1094
|
+
Ge as l,
|
|
1095
|
+
Oe as m,
|
|
1096
|
+
Ze as n,
|
|
1097
|
+
Je as o,
|
|
1098
|
+
Ye as p,
|
|
1099
|
+
rr as q,
|
|
1100
|
+
tt as r,
|
|
1101
|
+
ot as s,
|
|
1102
|
+
nt as t,
|
|
1103
|
+
gt as u,
|
|
1104
|
+
pt as v,
|
|
1105
|
+
mr as w,
|
|
1106
|
+
xr as x,
|
|
1107
|
+
Dr as y,
|
|
1108
|
+
Pr as z
|
|
1107
1109
|
};
|