@typlog/ui 0.8.0 → 0.9.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/index.d.ts +1419 -2
- package/dist/index.js +288 -269
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/components/accordion/AccordionContent.d.ts +0 -18
- package/dist/components/accordion/AccordionItem.d.ts +0 -18
- package/dist/components/accordion/AccordionRoot.d.ts +0 -19
- package/dist/components/accordion/AccordionTrigger.d.ts +0 -15
- package/dist/components/accordion/index.d.ts +0 -5
- package/dist/components/addons/Turnstile.d.ts +0 -32
- package/dist/components/addons/iconify-collection/IconifyCollection.d.ts +0 -13
- package/dist/components/addons/iconify-collection/IconifySample.d.ts +0 -13
- package/dist/components/addons/index.d.ts +0 -2
- package/dist/components/alert/AlertDialogContent.d.ts +0 -56
- package/dist/components/alert/index.d.ts +0 -2
- package/dist/components/avatar/Avatar.d.ts +0 -16
- package/dist/components/avatar/index.d.ts +0 -1
- package/dist/components/badge/Badge.d.ts +0 -24
- package/dist/components/badge/index.d.ts +0 -1
- package/dist/components/button/Button.d.ts +0 -24
- package/dist/components/button/IconButton.d.ts +0 -18
- package/dist/components/button/SocialButton.d.ts +0 -21
- package/dist/components/button/index.d.ts +0 -3
- package/dist/components/card/Card.d.ts +0 -20
- package/dist/components/card/CardHead.d.ts +0 -24
- package/dist/components/card/index.d.ts +0 -2
- package/dist/components/checkbox/Checkbox.d.ts +0 -17
- package/dist/components/checkbox/CheckboxGroupControl.d.ts +0 -3
- package/dist/components/checkbox/CheckboxGroupItem.d.ts +0 -6
- package/dist/components/checkbox/CheckboxGroupRoot.d.ts +0 -35
- package/dist/components/checkbox/index.d.ts +0 -4
- package/dist/components/collapsible/CollapsibleContent.d.ts +0 -18
- package/dist/components/collapsible/index.d.ts +0 -2
- package/dist/components/combobox/ComboboxContent.d.ts +0 -43
- package/dist/components/combobox/ComboboxInput.d.ts +0 -24
- package/dist/components/combobox/ComboboxItem.d.ts +0 -19
- package/dist/components/combobox/ComboboxLabel.d.ts +0 -10
- package/dist/components/combobox/ComboboxRoot.d.ts +0 -40
- package/dist/components/combobox/index.d.ts +0 -6
- package/dist/components/dialog/DialogContent.d.ts +0 -56
- package/dist/components/dialog/DialogHead.d.ts +0 -5
- package/dist/components/dialog/index.d.ts +0 -3
- package/dist/components/dropdown/DropdownMenuContent.d.ts +0 -62
- package/dist/components/dropdown/DropdownMenuItem.d.ts +0 -19
- package/dist/components/dropdown/index.d.ts +0 -3
- package/dist/components/icon/ChevronIcon.d.ts +0 -7
- package/dist/components/icon/IconCircle.d.ts +0 -12
- package/dist/components/icon/PlusMinusIcon.d.ts +0 -10
- package/dist/components/icon/index.d.ts +0 -5
- package/dist/components/index.d.ts +0 -29
- package/dist/components/inputs/ColorField.d.ts +0 -20
- package/dist/components/inputs/TextArea.d.ts +0 -22
- package/dist/components/inputs/TextField.d.ts +0 -34
- package/dist/components/inputs/index.d.ts +0 -3
- package/dist/components/inset/Inset.d.ts +0 -16
- package/dist/components/inset/index.d.ts +0 -1
- package/dist/components/pagination/Pagination.d.ts +0 -48
- package/dist/components/pagination/index.d.ts +0 -1
- package/dist/components/popover/PopoverContent.d.ts +0 -46
- package/dist/components/popover/index.d.ts +0 -2
- package/dist/components/quota/Quota.d.ts +0 -7
- package/dist/components/quota/index.d.ts +0 -1
- package/dist/components/radio/Radio.d.ts +0 -20
- package/dist/components/radio/RadioCardsItem.d.ts +0 -10
- package/dist/components/radio/RadioGroupItem.d.ts +0 -10
- package/dist/components/radio/RadioGroupRoot.d.ts +0 -32
- package/dist/components/radio/RadioTabsList.d.ts +0 -19
- package/dist/components/radio/index.d.ts +0 -6
- package/dist/components/scrollarea/ScrollArea.d.ts +0 -19
- package/dist/components/scrollarea/index.d.ts +0 -1
- package/dist/components/select/SelectContent.d.ts +0 -16
- package/dist/components/select/SelectItem.d.ts +0 -10
- package/dist/components/select/SelectLabel.d.ts +0 -10
- package/dist/components/select/SelectRoot.d.ts +0 -31
- package/dist/components/select/SelectSeparator.d.ts +0 -2
- package/dist/components/select/SelectTrigger.d.ts +0 -11
- package/dist/components/select/index.d.ts +0 -7
- package/dist/components/separator/Separator.d.ts +0 -13
- package/dist/components/separator/index.d.ts +0 -1
- package/dist/components/spinner/SavingIndicator.d.ts +0 -9
- package/dist/components/spinner/Spinner.d.ts +0 -10
- package/dist/components/spinner/index.d.ts +0 -2
- package/dist/components/switch/Switch.d.ts +0 -18
- package/dist/components/switch/index.d.ts +0 -1
- package/dist/components/table/Table.d.ts +0 -17
- package/dist/components/table/index.d.ts +0 -1
- package/dist/components/tabs/TabsList.d.ts +0 -17
- package/dist/components/tabs/TabsTrigger.d.ts +0 -19
- package/dist/components/tabs/index.d.ts +0 -3
- package/dist/components/toggle/Toggle.d.ts +0 -25
- package/dist/components/toggle/ToggleGroupItem.d.ts +0 -18
- package/dist/components/toggle/ToggleGroupRoot.d.ts +0 -25
- package/dist/components/toggle/index.d.ts +0 -3
- package/dist/components/tooltip/Tooltip.d.ts +0 -19
- package/dist/components/tooltip/index.d.ts +0 -1
- package/dist/components/types.d.ts +0 -2
- package/dist/components/util.d.ts +0 -12
package/dist/index.js
CHANGED
@@ -1,21 +1,21 @@
|
|
1
|
-
import { computed as C, defineComponent as m, createBlock as
|
2
|
-
import { useForwardProps as
|
3
|
-
import { AlertDialogAction as hs, AlertDialogCancel as vs, AlertDialogDescription as _s, AlertDialogRoot as gs, AlertDialogTitle as ys, AlertDialogTrigger as Cs, CollapsibleRoot as bs, CollapsibleTrigger as $s, ComboboxEmpty as Bs, ComboboxGroup as xs, DialogClose as ws, DialogDescription as Ss, DialogRoot as zs, DialogTitle as
|
4
|
-
import { Icon as
|
1
|
+
import { computed as C, defineComponent as m, createBlock as d, openBlock as r, unref as a, normalizeClass as I, withCtx as c, createVNode as p, createTextVNode as L, toDisplayString as T, renderSlot as _, createElementBlock as $, mergeProps as g, createCommentVNode as z, createElementVNode as b, toRefs as ee, mergeModels as Q, ref as P, useModel as Z, onMounted as ue, onBeforeUnmount as Ce, withDirectives as te, isRef as be, vModelDynamic as Oe, vModelText as $e, normalizeStyle as Be, normalizeProps as Me, guardReactiveProps as Fe, Fragment as H, watch as Le, renderList as j, withModifiers as D, vModelRadio as Ge, withKeys as he, vShow as He } from "vue";
|
2
|
+
import { useForwardProps as V, useEmitAsProps as xe, AvatarRoot as Ee, AvatarImage as je, AvatarFallback as We, Primitive as U, ScrollAreaRoot as de, ScrollAreaViewport as pe, ScrollAreaScrollbar as ne, ScrollAreaThumb as re, ScrollAreaCorner as Ue, AlertDialogPortal as qe, AlertDialogOverlay as Ne, AlertDialogContent as Ke, DialogPortal as Qe, DialogOverlay as Ze, DialogContent as Je, DialogTitle as Xe, DialogClose as Ye, useForwardExpose as M, createContext as oe, DropdownMenuPortal as et, DropdownMenuContent as tt, DropdownMenuItem as ot, PopoverPortal as at, PopoverContent as st, SwitchRoot as lt, SwitchThumb as nt, CheckboxRoot as rt, CheckboxIndicator as it, Toggle as ct, ToggleGroupRoot as ut, ToggleGroupItem as dt, SelectRoot as pt, SelectPortal as ft, SelectContent as mt, SelectViewport as ht, SelectTrigger as vt, SelectValue as _t, SelectIcon as gt, SelectItem as yt, SelectItemIndicator as Ct, SelectItemText as bt, SelectLabel as $t, ComboboxRoot as Bt, injectComboboxRootContext as xt, useForwardPropsEmits as we, ComboboxAnchor as wt, ComboboxInput as ve, ComboboxTrigger as St, ComboboxPortal as zt, ComboboxContent as It, ComboboxViewport as kt, ComboboxItem as Vt, ComboboxItemIndicator as Tt, ComboboxLabel as At, RadioGroupRoot as Se, RadioGroupItem as ze, TabsList as Rt, TabsIndicator as Pt, TabsTrigger as Dt, AccordionRoot as Ot, AccordionItem as Mt, AccordionContent as Ft, AccordionTrigger as Lt, CollapsibleContent as Gt, TooltipProvider as Ht, TooltipRoot as Et, TooltipTrigger as jt, TooltipPortal as Wt, TooltipContent as Ut, TooltipArrow as qt, ProgressRoot as Nt, ProgressIndicator as Kt } from "reka-ui";
|
3
|
+
import { AlertDialogAction as hs, AlertDialogCancel as vs, AlertDialogDescription as _s, AlertDialogRoot as gs, AlertDialogTitle as ys, AlertDialogTrigger as Cs, CollapsibleRoot as bs, CollapsibleTrigger as $s, ComboboxEmpty as Bs, ComboboxGroup as xs, DialogClose as ws, DialogDescription as Ss, DialogRoot as zs, DialogTitle as Is, DialogTrigger as ks, DropdownMenuRoot as Vs, DropdownMenuTrigger as Ts, PopoverClose as As, PopoverRoot as Rs, PopoverTrigger as Ps, RadioGroupItem as Ds, SelectGroup as Os, TabsContent as Ms, TabsRoot as Fs } from "reka-ui";
|
4
|
+
import { Icon as k } from "@iconify/vue";
|
5
5
|
import { Icon as Gs } from "@iconify/vue";
|
6
6
|
function q(s, e, t) {
|
7
|
-
const o =
|
7
|
+
const o = V(s), l = xe(e);
|
8
8
|
return C(() => ({
|
9
9
|
...fe(o.value, t),
|
10
10
|
...l
|
11
11
|
}));
|
12
12
|
}
|
13
13
|
function Qt(s, e) {
|
14
|
-
const t =
|
14
|
+
const t = V(s), o = C(() => fe(t.value, e)), l = C(() => R(t.value, e));
|
15
15
|
return [o, l];
|
16
16
|
}
|
17
17
|
function N(s, e, t) {
|
18
|
-
const o =
|
18
|
+
const o = V(s), l = xe(e), n = C(() => ({
|
19
19
|
...fe(o.value, t),
|
20
20
|
...l
|
21
21
|
})), i = C(() => R(o.value, t));
|
@@ -54,22 +54,27 @@ const _a = /* @__PURE__ */ m({
|
|
54
54
|
color: {}
|
55
55
|
},
|
56
56
|
setup(s) {
|
57
|
-
const e = s, t = C(() => R(e, ["size", "variant"])), o = C(() =>
|
58
|
-
|
59
|
-
|
57
|
+
const e = s, t = C(() => R(e, ["size", "variant"])), o = C(() => {
|
58
|
+
if (e.fallback)
|
59
|
+
return e.fallback;
|
60
|
+
const l = e.alt.split(/\s+/).map((n) => n[0]);
|
61
|
+
return e.size === "1" ? l[0] : l.slice(0, 2).join("");
|
62
|
+
});
|
63
|
+
return (l, n) => (r(), d(a(Ee), {
|
64
|
+
class: I(["ui-Avatar", t.value]),
|
60
65
|
"data-accent-color": e.color,
|
61
66
|
"data-radius": e.radius
|
62
67
|
}, {
|
63
68
|
default: c(() => [
|
64
|
-
p(a(
|
69
|
+
p(a(je), {
|
65
70
|
alt: e.alt,
|
66
71
|
src: e.src || ""
|
67
72
|
}, null, 8, ["alt", "src"]),
|
68
|
-
p(a(
|
69
|
-
class:
|
73
|
+
p(a(We), {
|
74
|
+
class: I(`r-count-${o.value.length}`)
|
70
75
|
}, {
|
71
76
|
default: c(() => [
|
72
|
-
|
77
|
+
L(T(o.value), 1)
|
73
78
|
]),
|
74
79
|
_: 1
|
75
80
|
}, 8, ["class"])
|
@@ -90,8 +95,8 @@ const _a = /* @__PURE__ */ m({
|
|
90
95
|
},
|
91
96
|
setup(s) {
|
92
97
|
const e = s, t = C(() => R(e, ["size", "variant", "highContrast"]));
|
93
|
-
return (o, l) => (r(),
|
94
|
-
class:
|
98
|
+
return (o, l) => (r(), d(a(U), {
|
99
|
+
class: I(["ui-Badge", t.value]),
|
95
100
|
as: e.as,
|
96
101
|
"as-child": e.asChild,
|
97
102
|
"data-accent-color": e.color,
|
@@ -130,8 +135,8 @@ const _a = /* @__PURE__ */ m({
|
|
130
135
|
},
|
131
136
|
setup(s) {
|
132
137
|
const e = s, t = C(() => R(e, ["size", "variant"]));
|
133
|
-
return (o, l) => (r(),
|
134
|
-
class:
|
138
|
+
return (o, l) => (r(), d(a(U), {
|
139
|
+
class: I(["ui-Card", t.value]),
|
135
140
|
"as-child": e.asChild,
|
136
141
|
as: e.as,
|
137
142
|
"data-radius": e.radius
|
@@ -151,7 +156,7 @@ const _a = /* @__PURE__ */ m({
|
|
151
156
|
},
|
152
157
|
setup(s) {
|
153
158
|
const e = s;
|
154
|
-
return (t, o) => (r(),
|
159
|
+
return (t, o) => (r(), d(a(U), {
|
155
160
|
as: e.as,
|
156
161
|
class: "ui-CardHead",
|
157
162
|
"data-accent-color": e.color
|
@@ -162,7 +167,7 @@ const _a = /* @__PURE__ */ m({
|
|
162
167
|
_: 3
|
163
168
|
}, 8, ["as", "data-accent-color"]));
|
164
169
|
}
|
165
|
-
}),
|
170
|
+
}), W = /* @__PURE__ */ m({
|
166
171
|
__name: "Button",
|
167
172
|
props: {
|
168
173
|
color: {},
|
@@ -176,8 +181,8 @@ const _a = /* @__PURE__ */ m({
|
|
176
181
|
},
|
177
182
|
setup(s) {
|
178
183
|
const e = s, t = C(() => R(e, ["size", "variant", "highContrast"]));
|
179
|
-
return (o, l) => (r(),
|
180
|
-
class:
|
184
|
+
return (o, l) => (r(), d(a(U), {
|
185
|
+
class: I(["ui-Button", t.value]),
|
181
186
|
"as-child": e.asChild,
|
182
187
|
as: e.as,
|
183
188
|
"data-accent-color": e.color,
|
@@ -203,8 +208,8 @@ const _a = /* @__PURE__ */ m({
|
|
203
208
|
as: {}
|
204
209
|
},
|
205
210
|
setup(s) {
|
206
|
-
const t =
|
207
|
-
return (o, l) => (r(),
|
211
|
+
const t = V(s);
|
212
|
+
return (o, l) => (r(), d(W, g({ class: "ui-IconButton" }, a(t)), {
|
208
213
|
default: c(() => [
|
209
214
|
_(o.$slots, "default")
|
210
215
|
]),
|
@@ -231,15 +236,15 @@ const _a = /* @__PURE__ */ m({
|
|
231
236
|
},
|
232
237
|
setup(s) {
|
233
238
|
const e = s, t = C(() => R(e, ["size", "brand"])), o = C(() => eo[e.brand]);
|
234
|
-
return (l, n) => (r(),
|
235
|
-
class:
|
239
|
+
return (l, n) => (r(), d(a(U), {
|
240
|
+
class: I(["ui-Button ui-SocialButton", t.value]),
|
236
241
|
"as-child": e.asChild,
|
237
242
|
as: e.as,
|
238
243
|
"data-radius": e.radius,
|
239
244
|
"data-disabled": e.disabled ? !0 : void 0
|
240
245
|
}, {
|
241
246
|
default: c(() => [
|
242
|
-
o.value ? (r(),
|
247
|
+
o.value ? (r(), d(a(k), {
|
243
248
|
key: 0,
|
244
249
|
icon: o.value
|
245
250
|
}, null, 8, ["icon"])) : z("", !0),
|
@@ -248,7 +253,7 @@ const _a = /* @__PURE__ */ m({
|
|
248
253
|
_: 3
|
249
254
|
}, 8, ["class", "as-child", "as", "data-radius", "data-disabled"]));
|
250
255
|
}
|
251
|
-
}),
|
256
|
+
}), Ie = /* @__PURE__ */ m({
|
252
257
|
__name: "ScrollArea",
|
253
258
|
props: {
|
254
259
|
size: { default: "1" },
|
@@ -262,7 +267,7 @@ const _a = /* @__PURE__ */ m({
|
|
262
267
|
},
|
263
268
|
setup(s) {
|
264
269
|
const e = s;
|
265
|
-
return (t, o) => (r(),
|
270
|
+
return (t, o) => (r(), d(a(de), {
|
266
271
|
class: "ui-ScrollArea",
|
267
272
|
"as-child": e.asChild,
|
268
273
|
dir: e.dir,
|
@@ -278,7 +283,7 @@ const _a = /* @__PURE__ */ m({
|
|
278
283
|
_: 3
|
279
284
|
}),
|
280
285
|
o[0] || (o[0] = b("div", { class: "ui-ScrollAreaViewportFocusRing" }, null, -1)),
|
281
|
-
e.scrollbars !== "horizontal" ? (r(),
|
286
|
+
e.scrollbars !== "horizontal" ? (r(), d(a(ne), {
|
282
287
|
key: 0,
|
283
288
|
class: "ui-ScrollAreaScrollbar",
|
284
289
|
"data-size": e.size,
|
@@ -289,7 +294,7 @@ const _a = /* @__PURE__ */ m({
|
|
289
294
|
]),
|
290
295
|
_: 1
|
291
296
|
}, 8, ["data-size"])) : z("", !0),
|
292
|
-
e.scrollbars !== "vertical" ? (r(),
|
297
|
+
e.scrollbars !== "vertical" ? (r(), d(a(ne), {
|
293
298
|
key: 1,
|
294
299
|
class: "ui-ScrollAreaScrollbar",
|
295
300
|
"data-size": e.size,
|
@@ -300,7 +305,7 @@ const _a = /* @__PURE__ */ m({
|
|
300
305
|
]),
|
301
306
|
_: 1
|
302
307
|
}, 8, ["data-size"])) : z("", !0),
|
303
|
-
e.scrollbars === "both" ? (r(),
|
308
|
+
e.scrollbars === "both" ? (r(), d(a(Ue), {
|
304
309
|
key: 2,
|
305
310
|
"class-name": "ui-ScrollAreaCorner"
|
306
311
|
})) : z("", !0)
|
@@ -342,7 +347,7 @@ const _a = /* @__PURE__ */ m({
|
|
342
347
|
"minHeight",
|
343
348
|
"maxHeight"
|
344
349
|
]);
|
345
|
-
return (n, i) => (r(),
|
350
|
+
return (n, i) => (r(), d(a(qe), {
|
346
351
|
to: t.to
|
347
352
|
}, {
|
348
353
|
default: c(() => [
|
@@ -417,7 +422,7 @@ const _a = /* @__PURE__ */ m({
|
|
417
422
|
"minHeight",
|
418
423
|
"maxHeight"
|
419
424
|
]);
|
420
|
-
return (n, i) => (r(),
|
425
|
+
return (n, i) => (r(), d(a(Qe), {
|
421
426
|
to: t.to
|
422
427
|
}, {
|
423
428
|
default: c(() => [
|
@@ -465,18 +470,18 @@ const _a = /* @__PURE__ */ m({
|
|
465
470
|
},
|
466
471
|
setup(s) {
|
467
472
|
const e = s;
|
468
|
-
return (t, o) => (r(),
|
473
|
+
return (t, o) => (r(), d(Xt, {
|
469
474
|
class: "ui-DialogHead",
|
470
475
|
side: "x"
|
471
476
|
}, {
|
472
477
|
default: c(() => [
|
473
478
|
p(a(Xe), { class: "font-semibold" }, {
|
474
479
|
default: c(() => [
|
475
|
-
|
480
|
+
L(T(e.title), 1)
|
476
481
|
]),
|
477
482
|
_: 1
|
478
483
|
}),
|
479
|
-
p(
|
484
|
+
p(W, {
|
480
485
|
as: a(Ye),
|
481
486
|
type: "button",
|
482
487
|
variant: "ghost",
|
@@ -486,7 +491,7 @@ const _a = /* @__PURE__ */ m({
|
|
486
491
|
"aria-label": "Close"
|
487
492
|
}, {
|
488
493
|
default: c(() => [
|
489
|
-
p(a(
|
494
|
+
p(a(k), { icon: "lucide:x" })
|
490
495
|
]),
|
491
496
|
_: 1
|
492
497
|
}, 8, ["as"])
|
@@ -531,8 +536,8 @@ const _a = /* @__PURE__ */ m({
|
|
531
536
|
"variant",
|
532
537
|
"color",
|
533
538
|
"highContrast"
|
534
|
-
]), { forwardRef: n } = M(), { size: i, variant:
|
535
|
-
return ro({ size: i, variant:
|
539
|
+
]), { forwardRef: n } = M(), { size: i, variant: u, color: y, highContrast: v } = ee(t);
|
540
|
+
return ro({ size: i, variant: u, color: y, highContrast: v }), (h, f) => (r(), d(a(et), {
|
536
541
|
to: t.to
|
537
542
|
}, {
|
538
543
|
default: c(() => [
|
@@ -546,7 +551,7 @@ const _a = /* @__PURE__ */ m({
|
|
546
551
|
"data-size": t.size
|
547
552
|
}), {
|
548
553
|
default: c(() => [
|
549
|
-
p(
|
554
|
+
p(Ie, { type: "auto" }, {
|
550
555
|
default: c(() => [
|
551
556
|
b("div", lo, [
|
552
557
|
_(h.$slots, "default")
|
@@ -576,9 +581,9 @@ const _a = /* @__PURE__ */ m({
|
|
576
581
|
const t = s, l = q(t, e, ["color", "shortcut"]);
|
577
582
|
M();
|
578
583
|
const n = no();
|
579
|
-
return (i,
|
584
|
+
return (i, u) => {
|
580
585
|
var y;
|
581
|
-
return r(),
|
586
|
+
return r(), d(a(ot), g({
|
582
587
|
class: "ui-MenuItem",
|
583
588
|
"data-accent-color": t.color,
|
584
589
|
"data-size": a(n).size.value,
|
@@ -590,7 +595,7 @@ const _a = /* @__PURE__ */ m({
|
|
590
595
|
t.shortcut ? (r(), $("div", {
|
591
596
|
key: 0,
|
592
597
|
class: "ui-MenuShortcut",
|
593
|
-
textContent:
|
598
|
+
textContent: T(t.shortcut)
|
594
599
|
}, null, 8, io)) : z("", !0)
|
595
600
|
]),
|
596
601
|
_: 3
|
@@ -626,7 +631,7 @@ const _a = /* @__PURE__ */ m({
|
|
626
631
|
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
|
627
632
|
setup(s, { emit: e }) {
|
628
633
|
const t = s, l = q(t, e, ["to", "size"]);
|
629
|
-
return (n, i) => (r(),
|
634
|
+
return (n, i) => (r(), d(a(at), {
|
630
635
|
to: t.to
|
631
636
|
}, {
|
632
637
|
default: c(() => [
|
@@ -670,7 +675,7 @@ const _a = /* @__PURE__ */ m({
|
|
670
675
|
"highContrast",
|
671
676
|
"radius"
|
672
677
|
]);
|
673
|
-
return (i,
|
678
|
+
return (i, u) => (r(), d(a(lt), g(a(l), {
|
674
679
|
class: ["ui-Switch", a(n)],
|
675
680
|
"data-accent-color": o.color,
|
676
681
|
"data-radius": o.radius
|
@@ -696,7 +701,7 @@ const _a = /* @__PURE__ */ m({
|
|
696
701
|
}, po = {
|
697
702
|
key: 1,
|
698
703
|
d: "M20 6 9 17l-5-5"
|
699
|
-
},
|
704
|
+
}, ke = /* @__PURE__ */ m({
|
700
705
|
__name: "Checkbox",
|
701
706
|
props: {
|
702
707
|
color: {},
|
@@ -716,7 +721,7 @@ const _a = /* @__PURE__ */ m({
|
|
716
721
|
emits: ["update:modelValue"],
|
717
722
|
setup(s, { emit: e }) {
|
718
723
|
const t = e, o = s, [l, n] = N(o, t, ["color", "size", "variant", "highContrast"]);
|
719
|
-
return (i,
|
724
|
+
return (i, u) => (r(), d(a(rt), g(a(l), {
|
720
725
|
class: ["ui-Checkbox", a(n)],
|
721
726
|
"data-accent-color": o.color
|
722
727
|
}), {
|
@@ -726,8 +731,8 @@ const _a = /* @__PURE__ */ m({
|
|
726
731
|
"as-child": ""
|
727
732
|
}, {
|
728
733
|
default: c(() => [
|
729
|
-
|
730
|
-
|
734
|
+
o.modelValue !== !1 ? (r(), $("svg", co, [
|
735
|
+
o.modelValue === "indeterminate" ? (r(), $("path", uo)) : (r(), $("path", po))
|
731
736
|
])) : z("", !0)
|
732
737
|
]),
|
733
738
|
_: 1
|
@@ -736,7 +741,7 @@ const _a = /* @__PURE__ */ m({
|
|
736
741
|
_: 1
|
737
742
|
}, 16, ["class", "data-accent-color"]));
|
738
743
|
}
|
739
|
-
}), [
|
744
|
+
}), [Ve, fo] = oe("ui_CheckboxGroupRoot"), Ia = /* @__PURE__ */ m({
|
740
745
|
__name: "CheckboxGroupRoot",
|
741
746
|
props: /* @__PURE__ */ Q({
|
742
747
|
disabled: { type: Boolean },
|
@@ -755,16 +760,16 @@ const _a = /* @__PURE__ */ m({
|
|
755
760
|
set(h) {
|
756
761
|
return i.number ? h = h.map((f) => Number(f)) : i.trim && (h = h.map((f) => f.trim())), h;
|
757
762
|
}
|
758
|
-
}),
|
763
|
+
}), u = C(() => n.value || []), y = C(() => {
|
759
764
|
var h, f;
|
760
765
|
return l.value.length ? ((h = n.value) == null ? void 0 : h.length) === l.value.length ? !0 : (f = n.value) != null && f.length ? "indeterminate" : !1 : !1;
|
761
766
|
}), v = (h) => {
|
762
|
-
var B,
|
767
|
+
var B, A;
|
763
768
|
const f = (B = n.value) == null ? void 0 : B.indexOf(h);
|
764
|
-
f !== -1 && f !== void 0 && ((
|
769
|
+
f !== -1 && f !== void 0 && ((A = n.value) == null || A.splice(f, 1));
|
765
770
|
};
|
766
771
|
return fo({
|
767
|
-
selected:
|
772
|
+
selected: u,
|
768
773
|
checked: y,
|
769
774
|
addModelValue: (h) => {
|
770
775
|
var f, B;
|
@@ -782,7 +787,7 @@ const _a = /* @__PURE__ */ m({
|
|
782
787
|
},
|
783
788
|
disabled: t,
|
784
789
|
name: o == null ? void 0 : o.value
|
785
|
-
}), (h, f) => (r(),
|
790
|
+
}), (h, f) => (r(), d(a(U), {
|
786
791
|
as: e.as,
|
787
792
|
"as-child": e.asChild
|
788
793
|
}, {
|
@@ -792,7 +797,7 @@ const _a = /* @__PURE__ */ m({
|
|
792
797
|
_: 3
|
793
798
|
}, 8, ["as", "as-child"]));
|
794
799
|
}
|
795
|
-
}),
|
800
|
+
}), ka = /* @__PURE__ */ m({
|
796
801
|
__name: "CheckboxGroupItem",
|
797
802
|
props: {
|
798
803
|
value: {},
|
@@ -810,26 +815,26 @@ const _a = /* @__PURE__ */ m({
|
|
810
815
|
required: { type: Boolean }
|
811
816
|
},
|
812
817
|
setup(s) {
|
813
|
-
const e = s, t =
|
818
|
+
const e = s, t = V(e);
|
814
819
|
M();
|
815
|
-
const o =
|
816
|
-
var
|
817
|
-
return ((
|
818
|
-
}), n = C(() => o.selected.value.indexOf(e.value) !== -1), i = (
|
819
|
-
|
820
|
+
const o = Ve(), l = C(() => {
|
821
|
+
var u;
|
822
|
+
return ((u = o.disabled) == null ? void 0 : u.value) || e.disabled;
|
823
|
+
}), n = C(() => o.selected.value.indexOf(e.value) !== -1), i = (u) => {
|
824
|
+
u ? o.addModelValue(e.value) : o.removeModelValue(e.value);
|
820
825
|
};
|
821
826
|
return ue(() => {
|
822
827
|
o.initAllValue(e.value);
|
823
828
|
}), Ce(() => {
|
824
829
|
o.removeAllValue(e.value);
|
825
|
-
}), (
|
830
|
+
}), (u, y) => (r(), d(ke, g({
|
826
831
|
...a(t),
|
827
832
|
name: e.name || a(o).name,
|
828
|
-
|
833
|
+
modelValue: n.value,
|
829
834
|
disabled: l.value
|
830
|
-
}, { "onUpdate:
|
835
|
+
}, { "onUpdate:modelValue": i }), null, 16));
|
831
836
|
}
|
832
|
-
}),
|
837
|
+
}), Va = /* @__PURE__ */ m({
|
833
838
|
__name: "CheckboxGroupControl",
|
834
839
|
props: {
|
835
840
|
color: {},
|
@@ -847,22 +852,22 @@ const _a = /* @__PURE__ */ m({
|
|
847
852
|
required: { type: Boolean }
|
848
853
|
},
|
849
854
|
setup(s) {
|
850
|
-
const e = s, t =
|
855
|
+
const e = s, t = V(e);
|
851
856
|
M();
|
852
|
-
const o =
|
857
|
+
const o = Ve(), l = C(() => {
|
853
858
|
var i;
|
854
859
|
return ((i = o.disabled) == null ? void 0 : i.value) || e.disabled;
|
855
|
-
}), n =
|
856
|
-
|
860
|
+
}), n = (i) => {
|
861
|
+
o.toggleModelValue(i);
|
862
|
+
};
|
863
|
+
return (i, u) => (r(), d(ke, g({
|
857
864
|
...a(t),
|
858
865
|
name: e.name || a(o).name,
|
859
|
-
|
866
|
+
modelValue: a(o).checked.value,
|
860
867
|
disabled: l.value
|
861
|
-
}, {
|
862
|
-
"onUpdate:checked": a(o).toggleModelValue
|
863
|
-
}), null, 16, ["onUpdate:checked"]));
|
868
|
+
}, { "onUpdate:modelValue": n }), null, 16));
|
864
869
|
}
|
865
|
-
}),
|
870
|
+
}), Ta = /* @__PURE__ */ m({
|
866
871
|
__name: "Toggle",
|
867
872
|
props: {
|
868
873
|
color: {},
|
@@ -887,7 +892,7 @@ const _a = /* @__PURE__ */ m({
|
|
887
892
|
"highContrast",
|
888
893
|
"radius"
|
889
894
|
]);
|
890
|
-
return (i,
|
895
|
+
return (i, u) => (r(), d(a(ct), g(a(l), {
|
891
896
|
class: ["ui-Toggle", a(n)],
|
892
897
|
"data-accent-color": o.color,
|
893
898
|
"data-radius": o.radius
|
@@ -928,7 +933,7 @@ const _a = /* @__PURE__ */ m({
|
|
928
933
|
"highContrast",
|
929
934
|
"radius"
|
930
935
|
]);
|
931
|
-
return (i,
|
936
|
+
return (i, u) => (r(), d(a(ut), g(a(l), {
|
932
937
|
class: ["ui-ToggleGroupRoot", a(n)],
|
933
938
|
"data-accent-color": o.color,
|
934
939
|
"data-radius": o.radius
|
@@ -948,8 +953,8 @@ const _a = /* @__PURE__ */ m({
|
|
948
953
|
as: {}
|
949
954
|
},
|
950
955
|
setup(s) {
|
951
|
-
const t =
|
952
|
-
return (o, l) => (r(),
|
956
|
+
const t = V(s);
|
957
|
+
return (o, l) => (r(), d(a(dt), g(a(t), { class: "ui-ToggleGroupItem" }), {
|
953
958
|
default: c(() => [
|
954
959
|
_(o.$slots, "default")
|
955
960
|
]),
|
@@ -983,8 +988,8 @@ const _a = /* @__PURE__ */ m({
|
|
983
988
|
}),
|
984
989
|
emits: ["update:modelValue"],
|
985
990
|
setup(s) {
|
986
|
-
const e = s, t = P(), o = (
|
987
|
-
const y =
|
991
|
+
const e = s, t = P(), o = (u) => {
|
992
|
+
const y = u.target;
|
988
993
|
if (y.closest("input, button, a")) return;
|
989
994
|
const v = t.value;
|
990
995
|
if (!v) return;
|
@@ -993,15 +998,15 @@ const _a = /* @__PURE__ */ m({
|
|
993
998
|
v.setSelectionRange(f, f), v.focus();
|
994
999
|
});
|
995
1000
|
}, [l, n] = Z(s, "modelValue", {
|
996
|
-
set(
|
997
|
-
return n.number ? Number(
|
1001
|
+
set(u) {
|
1002
|
+
return n.number ? Number(u) : n.trim ? u.trim() : u;
|
998
1003
|
}
|
999
1004
|
}), i = C(() => {
|
1000
|
-
const
|
1001
|
-
return e.class &&
|
1005
|
+
const u = R(e, ["size", "variant"]);
|
1006
|
+
return e.class && u.push(e.class), u;
|
1002
1007
|
});
|
1003
|
-
return (
|
1004
|
-
class:
|
1008
|
+
return (u, y) => (r(), $("div", {
|
1009
|
+
class: I(["ui-TextField", i.value]),
|
1005
1010
|
"data-radius": e.radius,
|
1006
1011
|
"data-accent-color": e.color,
|
1007
1012
|
onPointerdown: o
|
@@ -1012,14 +1017,14 @@ const _a = /* @__PURE__ */ m({
|
|
1012
1017
|
ref: t,
|
1013
1018
|
"onUpdate:modelValue": y[0] || (y[0] = (v) => be(l) ? l.value = v : null),
|
1014
1019
|
type: e.type
|
1015
|
-
},
|
1020
|
+
}, u.$attrs, { class: "ui-TextFieldInput" }), null, 16, ho), [
|
1016
1021
|
[Oe, a(l)]
|
1017
1022
|
]),
|
1018
|
-
|
1019
|
-
_(
|
1023
|
+
u.$slots.left ? (r(), $("div", vo, [
|
1024
|
+
_(u.$slots, "left")
|
1020
1025
|
])) : z("", !0),
|
1021
|
-
|
1022
|
-
_(
|
1026
|
+
u.$slots.right ? (r(), $("div", _o, [
|
1027
|
+
_(u.$slots, "right")
|
1023
1028
|
])) : z("", !0)
|
1024
1029
|
], 42, mo));
|
1025
1030
|
}
|
@@ -1046,7 +1051,7 @@ const _a = /* @__PURE__ */ m({
|
|
1046
1051
|
return e.class && l.push(e.class), l;
|
1047
1052
|
});
|
1048
1053
|
return (l, n) => (r(), $("div", {
|
1049
|
-
class:
|
1054
|
+
class: I(["ui-TextArea", o.value]),
|
1050
1055
|
"data-accent-color": e.color
|
1051
1056
|
}, [
|
1052
1057
|
te(b("textarea", g({
|
@@ -1073,7 +1078,7 @@ const _a = /* @__PURE__ */ m({
|
|
1073
1078
|
setup(s) {
|
1074
1079
|
const e = s, t = Z(s, "modelValue"), o = C(() => R(e, ["size", "variant"]));
|
1075
1080
|
return (l, n) => (r(), $("div", {
|
1076
|
-
class:
|
1081
|
+
class: I(["ui-ColorField", o.value]),
|
1077
1082
|
"data-radius": e.radius,
|
1078
1083
|
style: Be({ "--color-field-border-color": t.value })
|
1079
1084
|
}, [
|
@@ -1087,7 +1092,7 @@ const _a = /* @__PURE__ */ m({
|
|
1087
1092
|
])
|
1088
1093
|
], 14, yo));
|
1089
1094
|
}
|
1090
|
-
}), [
|
1095
|
+
}), [Te, bo] = oe("ui_SelectRoot"), Oa = /* @__PURE__ */ m({
|
1091
1096
|
__name: "SelectRoot",
|
1092
1097
|
props: {
|
1093
1098
|
size: { default: "2" },
|
@@ -1107,12 +1112,12 @@ const _a = /* @__PURE__ */ m({
|
|
1107
1112
|
},
|
1108
1113
|
emits: ["update:modelValue", "update:open"],
|
1109
1114
|
setup(s, { emit: e }) {
|
1110
|
-
const t = s, o = e, { size: l, color: n, highContrast: i } = ee(t),
|
1115
|
+
const t = s, o = e, { size: l, color: n, highContrast: i } = ee(t), u = q(t, o, ["size", "color", "highContrast"]);
|
1111
1116
|
return bo({
|
1112
1117
|
size: l,
|
1113
1118
|
color: n,
|
1114
1119
|
highContrast: i
|
1115
|
-
}), (y, v) => (r(),
|
1120
|
+
}), (y, v) => (r(), d(a(pt), Me(Fe(a(u))), {
|
1116
1121
|
default: c(() => [
|
1117
1122
|
_(y.$slots, "default")
|
1118
1123
|
]),
|
@@ -1147,11 +1152,11 @@ const _a = /* @__PURE__ */ m({
|
|
1147
1152
|
as: {}
|
1148
1153
|
},
|
1149
1154
|
setup(s) {
|
1150
|
-
const e = s, t =
|
1155
|
+
const e = s, t = V(e), { forwardRef: o } = M(), l = Te(), n = C(() => {
|
1151
1156
|
const i = ["r-size-" + l.size.value, "r-variant-" + e.variant];
|
1152
1157
|
return l.highContrast.value && i.push("r-high-contrast"), e.position === "popper" && i.push("ui-PopperContent"), i;
|
1153
1158
|
});
|
1154
|
-
return (i,
|
1159
|
+
return (i, u) => (r(), d(a(ft), {
|
1155
1160
|
to: e.to
|
1156
1161
|
}, {
|
1157
1162
|
default: c(() => [
|
@@ -1181,7 +1186,7 @@ const _a = /* @__PURE__ */ m({
|
|
1181
1186
|
]),
|
1182
1187
|
_: 3
|
1183
1188
|
}),
|
1184
|
-
|
1189
|
+
u[0] || (u[0] = b("div", { class: "ui-ScrollAreaViewportFocusRing" }, null, -1)),
|
1185
1190
|
p(a(ne), {
|
1186
1191
|
class: "ui-ScrollAreaScrollbar",
|
1187
1192
|
"data-size": 1,
|
@@ -1217,9 +1222,9 @@ const _a = /* @__PURE__ */ m({
|
|
1217
1222
|
as: {}
|
1218
1223
|
},
|
1219
1224
|
setup(s) {
|
1220
|
-
const e = s, t =
|
1221
|
-
return (l, n) => (r(),
|
1222
|
-
class:
|
1225
|
+
const e = s, t = Te(), o = C(() => [`r-variant-${e.variant}`, `r-size-${t.size.value}`]);
|
1226
|
+
return (l, n) => (r(), d(a(vt), {
|
1227
|
+
class: I(["ui-SelectTrigger", o.value]),
|
1223
1228
|
disabled: e.disabled,
|
1224
1229
|
"data-accent-color": a(t).color.value,
|
1225
1230
|
"data-radius": e.radius
|
@@ -1228,11 +1233,24 @@ const _a = /* @__PURE__ */ m({
|
|
1228
1233
|
b("span", $o, [
|
1229
1234
|
p(a(_t), {
|
1230
1235
|
placeholder: e.placeholder
|
1231
|
-
},
|
1236
|
+
}, {
|
1237
|
+
default: c(({ selectedLabel: i, modelValue: u }) => [
|
1238
|
+
i.length ? _(l.$slots, "default", {
|
1239
|
+
key: 0,
|
1240
|
+
selectedLabel: i,
|
1241
|
+
modelValue: u
|
1242
|
+
}, () => [
|
1243
|
+
L(T(i.join(", ")), 1)
|
1244
|
+
]) : (r(), $(H, { key: 1 }, [
|
1245
|
+
L(T(e.placeholder), 1)
|
1246
|
+
], 64))
|
1247
|
+
]),
|
1248
|
+
_: 3
|
1249
|
+
}, 8, ["placeholder"])
|
1232
1250
|
]),
|
1233
1251
|
p(a(gt), { "as-child": "" }, {
|
1234
1252
|
default: c(() => [
|
1235
|
-
p(a(
|
1253
|
+
p(a(k), {
|
1236
1254
|
class: "ui-SelectIcon",
|
1237
1255
|
icon: "radix-icons:chevron-down"
|
1238
1256
|
})
|
@@ -1240,7 +1258,7 @@ const _a = /* @__PURE__ */ m({
|
|
1240
1258
|
_: 1
|
1241
1259
|
})
|
1242
1260
|
]),
|
1243
|
-
_:
|
1261
|
+
_: 3
|
1244
1262
|
}, 8, ["class", "disabled", "data-accent-color", "data-radius"]));
|
1245
1263
|
}
|
1246
1264
|
}), La = /* @__PURE__ */ m({
|
@@ -1253,12 +1271,12 @@ const _a = /* @__PURE__ */ m({
|
|
1253
1271
|
as: {}
|
1254
1272
|
},
|
1255
1273
|
setup(s) {
|
1256
|
-
const t =
|
1257
|
-
return M(), (o, l) => (r(),
|
1274
|
+
const t = V(s);
|
1275
|
+
return M(), (o, l) => (r(), d(a(yt), g({ class: "ui-SelectItem" }, a(t)), {
|
1258
1276
|
default: c(() => [
|
1259
1277
|
p(a(Ct), { class: "ui-SelectItemIndicator" }, {
|
1260
1278
|
default: c(() => [
|
1261
|
-
p(a(
|
1279
|
+
p(a(k), { icon: "radix-icons:check" })
|
1262
1280
|
]),
|
1263
1281
|
_: 1
|
1264
1282
|
}),
|
@@ -1280,8 +1298,8 @@ const _a = /* @__PURE__ */ m({
|
|
1280
1298
|
as: {}
|
1281
1299
|
},
|
1282
1300
|
setup(s) {
|
1283
|
-
const t =
|
1284
|
-
return M(), (o, l) => (r(),
|
1301
|
+
const t = V(s);
|
1302
|
+
return M(), (o, l) => (r(), d(a($t), g({ class: "ui-SelectLabel" }, a(t)), {
|
1285
1303
|
default: c(() => [
|
1286
1304
|
_(o.$slots, "default")
|
1287
1305
|
]),
|
@@ -1300,7 +1318,7 @@ const _a = /* @__PURE__ */ m({
|
|
1300
1318
|
function So(s, e) {
|
1301
1319
|
return r(), $("div", wo);
|
1302
1320
|
}
|
1303
|
-
const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo,
|
1321
|
+
const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, Io] = oe("ui_ComboboxRoot"), Ea = /* @__PURE__ */ m({
|
1304
1322
|
__name: "ComboboxRoot",
|
1305
1323
|
props: {
|
1306
1324
|
size: { default: "2" },
|
@@ -1325,24 +1343,24 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, ko] = oe("ui_ComboboxR
|
|
1325
1343
|
},
|
1326
1344
|
emits: ["update:modelValue", "highlight", "update:open"],
|
1327
1345
|
setup(s, { emit: e }) {
|
1328
|
-
const t = s, o = e, { size: l, color: n, highContrast: i } = ee(t), [
|
1329
|
-
return
|
1346
|
+
const t = s, o = e, { size: l, color: n, highContrast: i } = ee(t), [u, y] = N(t, o, ["size", "color", "highContrast"]);
|
1347
|
+
return Io({
|
1330
1348
|
size: l,
|
1331
1349
|
color: n,
|
1332
1350
|
highContrast: i
|
1333
|
-
}), (v, h) => (r(),
|
1351
|
+
}), (v, h) => (r(), d(a(Bt), g({
|
1334
1352
|
class: ["ui-ComboboxRoot", a(y)]
|
1335
|
-
}, a(
|
1353
|
+
}, a(u)), {
|
1336
1354
|
default: c(() => [
|
1337
1355
|
_(v.$slots, "default")
|
1338
1356
|
]),
|
1339
1357
|
_: 3
|
1340
1358
|
}, 16, ["class"]));
|
1341
1359
|
}
|
1342
|
-
}),
|
1360
|
+
}), ko = {
|
1343
1361
|
key: 0,
|
1344
1362
|
class: "ui-ComboboxValues"
|
1345
|
-
},
|
1363
|
+
}, Vo = ["aria-current", "value"], To = ["onClick"], ja = /* @__PURE__ */ m({
|
1346
1364
|
inheritAttrs: !1,
|
1347
1365
|
__name: "ComboboxInput",
|
1348
1366
|
props: {
|
@@ -1358,39 +1376,39 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, ko] = oe("ui_ComboboxR
|
|
1358
1376
|
},
|
1359
1377
|
emits: ["update:modelValue"],
|
1360
1378
|
setup(s, { emit: e }) {
|
1361
|
-
const t = xt(), n = we(s, e), i = P(-1),
|
1379
|
+
const t = xt(), n = we(s, e), i = P(-1), u = C(() => t.modelValue.value), y = (f) => typeof f == "object" ? JSON.stringify(f) : f.toString(), v = (f) => {
|
1362
1380
|
i.value = f, t.modelValue.value.splice(f, 1), i.value = -1;
|
1363
1381
|
}, h = (f) => {
|
1364
|
-
!f.target.value && (f.key === "Delete" || f.key === "Backspace") && (i.value !== -1 ? v(i.value) : (i.value =
|
1382
|
+
!f.target.value && (f.key === "Delete" || f.key === "Backspace") && (i.value !== -1 ? v(i.value) : (i.value = u.value.length - 1, setTimeout(() => {
|
1365
1383
|
i.value = -1;
|
1366
1384
|
}, 800)));
|
1367
1385
|
};
|
1368
|
-
return Le(
|
1386
|
+
return Le(u, () => {
|
1369
1387
|
t.filterState.search = "";
|
1370
|
-
}, { deep: !0 }), (f, B) => (r(),
|
1371
|
-
class:
|
1388
|
+
}, { deep: !0 }), (f, B) => (r(), d(a(wt), {
|
1389
|
+
class: I(["ui-ComboboxField", `r-variant-${f.variant}`]),
|
1372
1390
|
"data-radius": f.radius,
|
1373
1391
|
"data-multiple": a(t).multiple.value || void 0
|
1374
1392
|
}, {
|
1375
1393
|
default: c(() => [
|
1376
|
-
a(t).multiple.value ? (r(), $("div",
|
1377
|
-
(r(!0), $(H, null,
|
1378
|
-
key: y(
|
1394
|
+
a(t).multiple.value ? (r(), $("div", ko, [
|
1395
|
+
(r(!0), $(H, null, j(u.value, (A, F) => (r(), $("div", {
|
1396
|
+
key: y(A),
|
1379
1397
|
class: "ui-ComboboxValuesItem",
|
1380
1398
|
"aria-current": F === i.value,
|
1381
|
-
value:
|
1399
|
+
value: A
|
1382
1400
|
}, [
|
1383
|
-
_(f.$slots, "item", { value:
|
1384
|
-
b("span", null,
|
1401
|
+
_(f.$slots, "item", { value: A }, () => [
|
1402
|
+
b("span", null, T(y(A)), 1)
|
1385
1403
|
]),
|
1386
1404
|
b("button", {
|
1387
1405
|
type: "button",
|
1388
1406
|
tabindex: "-1",
|
1389
|
-
onClick: D((
|
1407
|
+
onClick: D((E) => v(F), ["prevent"])
|
1390
1408
|
}, [
|
1391
|
-
p(a(
|
1392
|
-
], 8,
|
1393
|
-
], 8,
|
1409
|
+
p(a(k), { icon: "lucide:x" })
|
1410
|
+
], 8, To)
|
1411
|
+
], 8, Vo))), 128)),
|
1394
1412
|
p(a(ve), g({
|
1395
1413
|
...f.$attrs,
|
1396
1414
|
...a(n),
|
@@ -1400,7 +1418,7 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, ko] = oe("ui_ComboboxR
|
|
1400
1418
|
class: "ui-ComboboxInput",
|
1401
1419
|
onKeydown: h
|
1402
1420
|
}), null, 16)
|
1403
|
-
])) : (r(),
|
1421
|
+
])) : (r(), d(a(ve), g({
|
1404
1422
|
key: 1,
|
1405
1423
|
class: "ui-ComboboxInput"
|
1406
1424
|
}, {
|
@@ -1411,7 +1429,7 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, ko] = oe("ui_ComboboxR
|
|
1411
1429
|
}), null, 16)),
|
1412
1430
|
p(a(St), { class: "ui-ComboboxTrigger" }, {
|
1413
1431
|
default: c(() => [
|
1414
|
-
p(a(
|
1432
|
+
p(a(k), { icon: "radix-icons:chevron-down" })
|
1415
1433
|
]),
|
1416
1434
|
_: 1
|
1417
1435
|
})
|
@@ -1419,7 +1437,7 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, ko] = oe("ui_ComboboxR
|
|
1419
1437
|
_: 3
|
1420
1438
|
}, 8, ["class", "data-radius", "data-multiple"]));
|
1421
1439
|
}
|
1422
|
-
}),
|
1440
|
+
}), Wa = /* @__PURE__ */ m({
|
1423
1441
|
inheritAttrs: !1,
|
1424
1442
|
__name: "ComboboxContent",
|
1425
1443
|
props: {
|
@@ -1449,22 +1467,22 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, ko] = oe("ui_ComboboxR
|
|
1449
1467
|
},
|
1450
1468
|
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside"],
|
1451
1469
|
setup(s, { emit: e }) {
|
1452
|
-
const { forwardRef: t } = M(), o = s, n = we(o, e), i = zo(),
|
1470
|
+
const { forwardRef: t } = M(), o = s, n = we(o, e), i = zo(), u = C(() => {
|
1453
1471
|
const y = ["r-size-" + i.size.value, "r-variant-" + o.variant];
|
1454
1472
|
return i.highContrast.value && y.push("r-high-contrast"), y;
|
1455
1473
|
});
|
1456
|
-
return (y, v) => (r(),
|
1474
|
+
return (y, v) => (r(), d(a(zt), {
|
1457
1475
|
to: o.to
|
1458
1476
|
}, {
|
1459
1477
|
default: c(() => [
|
1460
|
-
p(a(
|
1478
|
+
p(a(It), g({ ref: a(t) }, {
|
1461
1479
|
...y.$attrs,
|
1462
1480
|
...a(n),
|
1463
1481
|
position: "popper",
|
1464
1482
|
to: void 0,
|
1465
1483
|
variant: void 0
|
1466
1484
|
}, {
|
1467
|
-
class: ["ui-ComboboxContent",
|
1485
|
+
class: ["ui-ComboboxContent", u.value],
|
1468
1486
|
"data-accent-color": a(i).color.value
|
1469
1487
|
}), {
|
1470
1488
|
default: c(() => [
|
@@ -1473,7 +1491,7 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, ko] = oe("ui_ComboboxR
|
|
1473
1491
|
class: "ui-ScrollArea"
|
1474
1492
|
}, {
|
1475
1493
|
default: c(() => [
|
1476
|
-
p(a(
|
1494
|
+
p(a(kt), {
|
1477
1495
|
class: "ui-ComboboxViewport",
|
1478
1496
|
"as-child": ""
|
1479
1497
|
}, {
|
@@ -1518,12 +1536,12 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, ko] = oe("ui_ComboboxR
|
|
1518
1536
|
as: {}
|
1519
1537
|
},
|
1520
1538
|
setup(s) {
|
1521
|
-
const t =
|
1522
|
-
return (o, l) => (r(),
|
1539
|
+
const t = V(s);
|
1540
|
+
return (o, l) => (r(), d(a(Vt), g({ class: "ui-ComboboxItem" }, a(t)), {
|
1523
1541
|
default: c(() => [
|
1524
|
-
p(a(
|
1542
|
+
p(a(Tt), { class: "ui-ComboboxItemIndicator" }, {
|
1525
1543
|
default: c(() => [
|
1526
|
-
p(a(
|
1544
|
+
p(a(k), { icon: "radix-icons:check" })
|
1527
1545
|
]),
|
1528
1546
|
_: 1
|
1529
1547
|
}),
|
@@ -1540,8 +1558,8 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, ko] = oe("ui_ComboboxR
|
|
1540
1558
|
as: {}
|
1541
1559
|
},
|
1542
1560
|
setup(s) {
|
1543
|
-
const t =
|
1544
|
-
return M(), (o, l) => (r(),
|
1561
|
+
const t = V(s);
|
1562
|
+
return M(), (o, l) => (r(), d(a(At), g({ class: "ui-ComboboxLabel" }, a(t)), {
|
1545
1563
|
default: c(() => [
|
1546
1564
|
_(o.$slots, "default")
|
1547
1565
|
]),
|
@@ -1569,8 +1587,8 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, ko] = oe("ui_ComboboxR
|
|
1569
1587
|
}
|
1570
1588
|
}), l = C(() => R(e, ["size", "variant", "highContrast"]));
|
1571
1589
|
return (n, i) => te((r(), $("input", {
|
1572
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
1573
|
-
class:
|
1590
|
+
"onUpdate:modelValue": i[0] || (i[0] = (u) => be(t) ? t.value = u : null),
|
1591
|
+
class: I(["ui-Radio", l.value]),
|
1574
1592
|
type: "radio",
|
1575
1593
|
"data-accent-color": e.color
|
1576
1594
|
}, null, 10, Ao)), [
|
@@ -1597,8 +1615,8 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, ko] = oe("ui_ComboboxR
|
|
1597
1615
|
},
|
1598
1616
|
emits: ["update:modelValue"],
|
1599
1617
|
setup(s, { emit: e }) {
|
1600
|
-
const t = e, o = s, l = q(o, t, ["color", "size", "variant", "highContrast"]), { size: n, variant: i, color:
|
1601
|
-
return Ro({ size: n, variant: i, color:
|
1618
|
+
const t = e, o = s, l = q(o, t, ["color", "size", "variant", "highContrast"]), { size: n, variant: i, color: u, highContrast: y } = ee(o);
|
1619
|
+
return Ro({ size: n, variant: i, color: u, highContrast: y }), (v, h) => (r(), d(a(Se), g({ class: "ui-RadioGroupRoot" }, a(l)), {
|
1602
1620
|
default: c(() => [
|
1603
1621
|
_(v.$slots, "default")
|
1604
1622
|
]),
|
@@ -1617,7 +1635,7 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, ko] = oe("ui_ComboboxR
|
|
1617
1635
|
required: { type: Boolean }
|
1618
1636
|
},
|
1619
1637
|
setup(s) {
|
1620
|
-
const t =
|
1638
|
+
const t = V(s), o = Ae(), l = C(() => {
|
1621
1639
|
var i;
|
1622
1640
|
const n = [
|
1623
1641
|
`r-size-${o.size.value}`,
|
@@ -1626,11 +1644,11 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, ko] = oe("ui_ComboboxR
|
|
1626
1644
|
return (i = o.highContrast) != null && i.value && n.push("r-high-contrast"), n;
|
1627
1645
|
});
|
1628
1646
|
return (n, i) => {
|
1629
|
-
var
|
1647
|
+
var u;
|
1630
1648
|
return r(), $("label", Po, [
|
1631
1649
|
p(a(ze), g({
|
1632
1650
|
class: ["ui-Radio", l.value],
|
1633
|
-
"data-accent-color": (
|
1651
|
+
"data-accent-color": (u = a(o).color) == null ? void 0 : u.value
|
1634
1652
|
}, a(t)), null, 16, ["class", "data-accent-color"]),
|
1635
1653
|
_(n.$slots, "default")
|
1636
1654
|
]);
|
@@ -1648,17 +1666,17 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, ko] = oe("ui_ComboboxR
|
|
1648
1666
|
required: { type: Boolean }
|
1649
1667
|
},
|
1650
1668
|
setup(s) {
|
1651
|
-
const t =
|
1669
|
+
const t = V(s);
|
1652
1670
|
M();
|
1653
1671
|
const o = Ae();
|
1654
1672
|
return (l, n) => {
|
1655
|
-
var i,
|
1656
|
-
return r(),
|
1673
|
+
var i, u;
|
1674
|
+
return r(), d(a(ze), g({
|
1657
1675
|
class: "ui-RadioCardsItem",
|
1658
1676
|
"data-accent-color": (i = a(o).color) == null ? void 0 : i.value,
|
1659
1677
|
"data-size": a(o).size.value,
|
1660
1678
|
"data-variant": a(o).variant.value,
|
1661
|
-
"data-high-contrast": (
|
1679
|
+
"data-high-contrast": (u = a(o).highContrast) == null ? void 0 : u.value
|
1662
1680
|
}, { ...a(t), asChild: !1 }), {
|
1663
1681
|
default: c(() => [
|
1664
1682
|
p(Yt, {
|
@@ -1692,7 +1710,7 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, ko] = oe("ui_ComboboxR
|
|
1692
1710
|
emits: ["update:modelValue"],
|
1693
1711
|
setup(s, { emit: e }) {
|
1694
1712
|
const t = e, o = s, [l, n] = N(o, t, ["size"]);
|
1695
|
-
return (i,
|
1713
|
+
return (i, u) => (r(), d(a(Se), g(a(l), {
|
1696
1714
|
class: ["ui-RadioTabsList", a(n)]
|
1697
1715
|
}), {
|
1698
1716
|
default: c(() => [
|
@@ -1710,8 +1728,8 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, ko] = oe("ui_ComboboxR
|
|
1710
1728
|
},
|
1711
1729
|
setup(s) {
|
1712
1730
|
const e = s, t = C(() => R(e, ["size", "highContrast"]));
|
1713
|
-
return (o, l) => (r(),
|
1714
|
-
class:
|
1731
|
+
return (o, l) => (r(), d(a(Rt), {
|
1732
|
+
class: I(["ui-TabList", t.value]),
|
1715
1733
|
"data-accent-color": e.color
|
1716
1734
|
}, {
|
1717
1735
|
default: c(() => [
|
@@ -1730,8 +1748,8 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, ko] = oe("ui_ComboboxR
|
|
1730
1748
|
as: {}
|
1731
1749
|
},
|
1732
1750
|
setup(s) {
|
1733
|
-
const t =
|
1734
|
-
return (o, l) => (r(),
|
1751
|
+
const t = V(s);
|
1752
|
+
return (o, l) => (r(), d(a(Dt), g(a(t), { class: "ui-TabTrigger" }), {
|
1735
1753
|
default: c(() => [
|
1736
1754
|
b("span", Do, [
|
1737
1755
|
_(o.$slots, "default")
|
@@ -1761,7 +1779,7 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, ko] = oe("ui_ComboboxR
|
|
1761
1779
|
emits: ["update:modelValue"],
|
1762
1780
|
setup(s, { emit: e }) {
|
1763
1781
|
const t = s, o = e, [l, n] = N(t, o, ["size"]);
|
1764
|
-
return (i,
|
1782
|
+
return (i, u) => (r(), d(a(Ot), g(a(l), {
|
1765
1783
|
class: ["ui-AccordionRoot", a(n)]
|
1766
1784
|
}), {
|
1767
1785
|
default: c(() => [
|
@@ -1780,8 +1798,8 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, ko] = oe("ui_ComboboxR
|
|
1780
1798
|
as: {}
|
1781
1799
|
},
|
1782
1800
|
setup(s) {
|
1783
|
-
const t =
|
1784
|
-
return (o, l) => (r(),
|
1801
|
+
const t = V(s);
|
1802
|
+
return (o, l) => (r(), d(a(Mt), g(a(t), { class: "ui-AccordionItem" }), {
|
1785
1803
|
default: c(() => [
|
1786
1804
|
_(o.$slots, "default")
|
1787
1805
|
]),
|
@@ -1797,8 +1815,8 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, ko] = oe("ui_ComboboxR
|
|
1797
1815
|
as: {}
|
1798
1816
|
},
|
1799
1817
|
setup(s) {
|
1800
|
-
const t =
|
1801
|
-
return (o, l) => (r(),
|
1818
|
+
const t = V(s);
|
1819
|
+
return (o, l) => (r(), d(a(Ft), g(a(t), { class: "ui-AccordionContent" }), {
|
1802
1820
|
default: c(() => [
|
1803
1821
|
b("div", g({ class: "ui-AccordionContentInner" }, o.$attrs), [
|
1804
1822
|
_(o.$slots, "default")
|
@@ -1816,7 +1834,7 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, ko] = oe("ui_ComboboxR
|
|
1816
1834
|
setup(s) {
|
1817
1835
|
const e = s;
|
1818
1836
|
return (t, o) => (r(), $("div", {
|
1819
|
-
class:
|
1837
|
+
class: I(["ui-PlusMinusIcon", `r-size-${e.size}`]),
|
1820
1838
|
"data-accent-color": e.color
|
1821
1839
|
}, o[0] || (o[0] = [
|
1822
1840
|
b("div", { class: "ui-PlusMinusIcon-1" }, null, -1),
|
@@ -1829,7 +1847,7 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, ko] = oe("ui_ComboboxR
|
|
1829
1847
|
arrowTransform: { default: "right-down" }
|
1830
1848
|
},
|
1831
1849
|
setup(s) {
|
1832
|
-
return (e, t) => (r(),
|
1850
|
+
return (e, t) => (r(), d(a(k), {
|
1833
1851
|
class: "ui-ChevronIcon",
|
1834
1852
|
icon: "lucide:chevron-right",
|
1835
1853
|
"data-arrow-transform": e.arrowTransform
|
@@ -1844,17 +1862,17 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, ko] = oe("ui_ComboboxR
|
|
1844
1862
|
},
|
1845
1863
|
setup(s) {
|
1846
1864
|
const e = s, [t, o] = Qt(e, ["size"]);
|
1847
|
-
return (l, n) => (r(),
|
1865
|
+
return (l, n) => (r(), d(a(Lt), g({
|
1848
1866
|
class: ["ui-AccordionTrigger", a(o)]
|
1849
1867
|
}, a(t)), {
|
1850
1868
|
default: c(() => [
|
1851
1869
|
b("div", Go, [
|
1852
1870
|
_(l.$slots, "default")
|
1853
1871
|
]),
|
1854
|
-
e.indicator === "plus-minus" ? (r(),
|
1872
|
+
e.indicator === "plus-minus" ? (r(), d(Fo, {
|
1855
1873
|
key: 0,
|
1856
1874
|
class: "ui-AccordionTriggerIcon"
|
1857
|
-
})) : e.indicator === "chevron" ? (r(),
|
1875
|
+
})) : e.indicator === "chevron" ? (r(), d(Lo, {
|
1858
1876
|
key: 1,
|
1859
1877
|
"arrow-transform": "down-up"
|
1860
1878
|
})) : z("", !0)
|
@@ -1871,8 +1889,8 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, ko] = oe("ui_ComboboxR
|
|
1871
1889
|
as: {}
|
1872
1890
|
},
|
1873
1891
|
setup(s) {
|
1874
|
-
const t =
|
1875
|
-
return (o, l) => (r(),
|
1892
|
+
const t = V(s);
|
1893
|
+
return (o, l) => (r(), d(a(Gt), g(a(t), { class: "ui-CollapsibleContent" }), {
|
1876
1894
|
default: c(() => [
|
1877
1895
|
b("div", g({ class: "ui-CollapsibleContentInner" }, o.$attrs), [
|
1878
1896
|
_(o.$slots, "default")
|
@@ -1909,30 +1927,30 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, ko] = oe("ui_ComboboxR
|
|
1909
1927
|
highContrast: e.highContrast,
|
1910
1928
|
disabled: e.disabled
|
1911
1929
|
})), n = C(() => {
|
1912
|
-
const v = Math.ceil(e.total / e.perpage), h = t.value > 1 ? t.value - 1 : null, f = t.value < v ? t.value + 1 : null, B = 5 + e.edge * 2,
|
1930
|
+
const v = Math.ceil(e.total / e.perpage), h = t.value > 1 ? t.value - 1 : null, f = t.value < v ? t.value + 1 : null, B = 5 + e.edge * 2, A = v > B && t.value > e.edge + 3, F = v > B && t.value + e.edge + 2 < v, E = [];
|
1913
1931
|
let K = 2, J = v - 1;
|
1914
|
-
|
1932
|
+
A && !F ? K = Math.max(4, v - 2 * e.edge - 2) : !A && F ? J = Math.min(2 * e.edge + 3, v - 1) : A && F && (K = t.value - e.edge, J = t.value + e.edge);
|
1915
1933
|
for (let X = K; X <= J; X++)
|
1916
|
-
|
1934
|
+
E.push(X);
|
1917
1935
|
return {
|
1918
1936
|
totalPages: v,
|
1919
1937
|
prev: h,
|
1920
1938
|
next: f,
|
1921
|
-
hasLeftEdge:
|
1939
|
+
hasLeftEdge: A,
|
1922
1940
|
hasRightEdge: F,
|
1923
|
-
pageList:
|
1941
|
+
pageList: E
|
1924
1942
|
};
|
1925
1943
|
}), i = (v) => {
|
1926
1944
|
t.value = v;
|
1927
|
-
},
|
1945
|
+
}, u = () => {
|
1928
1946
|
i(t.value - e.edge);
|
1929
1947
|
}, y = () => {
|
1930
1948
|
i(t.value + e.edge);
|
1931
1949
|
};
|
1932
1950
|
return (v, h) => (r(), $("div", {
|
1933
|
-
class:
|
1951
|
+
class: I(["ui-Pagination", o.value])
|
1934
1952
|
}, [
|
1935
|
-
n.value.prev ? (r(),
|
1953
|
+
n.value.prev ? (r(), d(Y, g({ key: 0 }, l.value, {
|
1936
1954
|
"aria-label": "Previous",
|
1937
1955
|
onClick: h[0] || (h[0] = D((f) => i(n.value.prev), ["prevent"]))
|
1938
1956
|
}), {
|
@@ -1940,36 +1958,36 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, ko] = oe("ui_ComboboxR
|
|
1940
1958
|
_(v.$slots, "prev-page", {
|
1941
1959
|
page: n.value.prev
|
1942
1960
|
}, () => [
|
1943
|
-
p(a(
|
1961
|
+
p(a(k), { icon: "lucide:chevron-left" })
|
1944
1962
|
])
|
1945
1963
|
]),
|
1946
1964
|
_: 3
|
1947
1965
|
}, 16)) : z("", !0),
|
1948
|
-
p(
|
1966
|
+
p(W, g(l.value, {
|
1949
1967
|
disabled: t.value === 1,
|
1950
1968
|
"aria-current": "page",
|
1951
1969
|
onClick: h[1] || (h[1] = D((f) => i(1), ["prevent"]))
|
1952
1970
|
}), {
|
1953
1971
|
default: c(() => [
|
1954
1972
|
_(v.$slots, "page", { page: 1 }, () => [
|
1955
|
-
h[4] || (h[4] =
|
1973
|
+
h[4] || (h[4] = L("1"))
|
1956
1974
|
])
|
1957
1975
|
]),
|
1958
1976
|
_: 3
|
1959
1977
|
}, 16, ["disabled"]),
|
1960
|
-
n.value.hasLeftEdge ? (r(),
|
1961
|
-
onClick: D(
|
1978
|
+
n.value.hasLeftEdge ? (r(), d(Y, g({ key: 1 }, l.value, {
|
1979
|
+
onClick: D(u, ["prevent"])
|
1962
1980
|
}), {
|
1963
1981
|
default: c(() => [
|
1964
1982
|
_(v.$slots, "prev-edge", {
|
1965
1983
|
page: t.value - v.edge
|
1966
1984
|
}, () => [
|
1967
|
-
p(a(
|
1985
|
+
p(a(k), { icon: "lucide:ellipsis" })
|
1968
1986
|
])
|
1969
1987
|
]),
|
1970
1988
|
_: 3
|
1971
1989
|
}, 16)) : z("", !0),
|
1972
|
-
(r(!0), $(H, null,
|
1990
|
+
(r(!0), $(H, null, j(n.value.pageList, (f) => (r(), d(W, g({
|
1973
1991
|
key: f,
|
1974
1992
|
ref_for: !0
|
1975
1993
|
}, l.value, {
|
@@ -1979,24 +1997,24 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, ko] = oe("ui_ComboboxR
|
|
1979
1997
|
}), {
|
1980
1998
|
default: c(() => [
|
1981
1999
|
_(v.$slots, "page", { page: f }, () => [
|
1982
|
-
|
2000
|
+
L(T(f), 1)
|
1983
2001
|
])
|
1984
2002
|
]),
|
1985
2003
|
_: 2
|
1986
2004
|
}, 1040, ["disabled", "onClick"]))), 128)),
|
1987
|
-
n.value.hasRightEdge ? (r(),
|
2005
|
+
n.value.hasRightEdge ? (r(), d(Y, g({ key: 2 }, l.value, {
|
1988
2006
|
onClick: D(y, ["prevent"])
|
1989
2007
|
}), {
|
1990
2008
|
default: c(() => [
|
1991
2009
|
_(v.$slots, "next-edge", {
|
1992
2010
|
page: t.value + v.edge
|
1993
2011
|
}, () => [
|
1994
|
-
p(a(
|
2012
|
+
p(a(k), { icon: "lucide:ellipsis" })
|
1995
2013
|
])
|
1996
2014
|
]),
|
1997
2015
|
_: 3
|
1998
2016
|
}, 16)) : z("", !0),
|
1999
|
-
n.value.totalPages > 1 ? (r(),
|
2017
|
+
n.value.totalPages > 1 ? (r(), d(W, g({ key: 3 }, l.value, {
|
2000
2018
|
disabled: n.value.totalPages === t.value,
|
2001
2019
|
"aria-current": "page",
|
2002
2020
|
onClick: h[2] || (h[2] = D((f) => i(n.value.totalPages), ["prevent"]))
|
@@ -2005,12 +2023,12 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, ko] = oe("ui_ComboboxR
|
|
2005
2023
|
_(v.$slots, "page", {
|
2006
2024
|
page: n.value.totalPages
|
2007
2025
|
}, () => [
|
2008
|
-
|
2026
|
+
L(T(n.value.totalPages), 1)
|
2009
2027
|
])
|
2010
2028
|
]),
|
2011
2029
|
_: 3
|
2012
2030
|
}, 16, ["disabled"])) : z("", !0),
|
2013
|
-
n.value.next ? (r(),
|
2031
|
+
n.value.next ? (r(), d(Y, g({ key: 4 }, l.value, {
|
2014
2032
|
"aria-label": "Next",
|
2015
2033
|
onClick: h[3] || (h[3] = D((f) => i(n.value.next), ["prevent"]))
|
2016
2034
|
}), {
|
@@ -2018,14 +2036,14 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, ko] = oe("ui_ComboboxR
|
|
2018
2036
|
_(v.$slots, "next-page", {
|
2019
2037
|
page: n.value.next
|
2020
2038
|
}, () => [
|
2021
|
-
p(a(
|
2039
|
+
p(a(k), { icon: "lucide:chevron-right" })
|
2022
2040
|
])
|
2023
2041
|
]),
|
2024
2042
|
_: 3
|
2025
2043
|
}, 16)) : z("", !0)
|
2026
2044
|
], 2));
|
2027
2045
|
}
|
2028
|
-
}), Eo = ["data-size", "data-variant"],
|
2046
|
+
}), Eo = ["data-size", "data-variant"], jo = ["data-layout"], ls = /* @__PURE__ */ m({
|
2029
2047
|
__name: "Table",
|
2030
2048
|
props: {
|
2031
2049
|
size: { default: "2" },
|
@@ -2039,14 +2057,14 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, ko] = oe("ui_ComboboxR
|
|
2039
2057
|
"data-size": e.size,
|
2040
2058
|
"data-variant": e.variant
|
2041
2059
|
}, [
|
2042
|
-
p(
|
2060
|
+
p(Ie, null, {
|
2043
2061
|
default: c(() => [
|
2044
2062
|
b("table", {
|
2045
2063
|
class: "ui-TableContent",
|
2046
2064
|
"data-layout": e.layout
|
2047
2065
|
}, [
|
2048
2066
|
_(t.$slots, "default")
|
2049
|
-
], 8,
|
2067
|
+
], 8, jo)
|
2050
2068
|
]),
|
2051
2069
|
_: 3
|
2052
2070
|
})
|
@@ -2062,15 +2080,16 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, ko] = oe("ui_ComboboxR
|
|
2062
2080
|
},
|
2063
2081
|
setup(s) {
|
2064
2082
|
const e = s;
|
2065
|
-
return (t, o) => (r(),
|
2083
|
+
return (t, o) => (r(), d(a(U), {
|
2066
2084
|
as: e.as,
|
2067
|
-
class:
|
2085
|
+
class: I(["ui-Separator", `r-size-${e.size}`]),
|
2068
2086
|
role: "separator",
|
2069
2087
|
"data-accent-color": e.color,
|
2070
2088
|
"aria-orientation": e.orientation
|
2071
2089
|
}, null, 8, ["as", "class", "data-accent-color", "aria-orientation"]));
|
2072
2090
|
}
|
2073
|
-
}),
|
2091
|
+
}), Wo = ["textContent"], Uo = /* @__PURE__ */ m({
|
2092
|
+
inheritAttrs: !1,
|
2074
2093
|
__name: "Tooltip",
|
2075
2094
|
props: {
|
2076
2095
|
to: {},
|
@@ -2100,7 +2119,7 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, ko] = oe("ui_ComboboxR
|
|
2100
2119
|
},
|
2101
2120
|
setup(s) {
|
2102
2121
|
const e = s;
|
2103
|
-
return (t, o) => (r(),
|
2122
|
+
return (t, o) => (r(), d(a(Ht), {
|
2104
2123
|
"delay-duration": e.delayDuration,
|
2105
2124
|
"disable-closing-trigger": e.disableClosingTrigger,
|
2106
2125
|
"disable-hoverable-content": e.disableHoverableContent,
|
@@ -2111,16 +2130,16 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, ko] = oe("ui_ComboboxR
|
|
2111
2130
|
default: c(() => [
|
2112
2131
|
p(a(Et), null, {
|
2113
2132
|
default: c(() => [
|
2114
|
-
p(a(
|
2133
|
+
p(a(jt), g({
|
2115
2134
|
as: e.as,
|
2116
2135
|
"as-child": e.asChild
|
2117
|
-
}, {
|
2136
|
+
}, t.$attrs), {
|
2118
2137
|
default: c(() => [
|
2119
2138
|
_(t.$slots, "default")
|
2120
2139
|
]),
|
2121
2140
|
_: 3
|
2122
|
-
},
|
2123
|
-
p(a(
|
2141
|
+
}, 16, ["as", "as-child"]),
|
2142
|
+
p(a(Wt), {
|
2124
2143
|
to: e.to
|
2125
2144
|
}, {
|
2126
2145
|
default: c(() => [
|
@@ -2142,8 +2161,8 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, ko] = oe("ui_ComboboxR
|
|
2142
2161
|
_(t.$slots, "content", {}, () => [
|
2143
2162
|
b("p", {
|
2144
2163
|
class: "ui-TooltipText",
|
2145
|
-
textContent:
|
2146
|
-
}, null, 8,
|
2164
|
+
textContent: T(e.content)
|
2165
|
+
}, null, 8, Wo)
|
2147
2166
|
]),
|
2148
2167
|
p(a(qt), { class: "ui-TooltipArrow" })
|
2149
2168
|
]),
|
@@ -2173,7 +2192,7 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, ko] = oe("ui_ComboboxR
|
|
2173
2192
|
let n = "a4";
|
2174
2193
|
return e.percent > 90 ? n = "a11" : e.percent > 66 ? n = "a9" : e.percent > 33 && (n = "a6"), { transform: l, "background-color": `var(--blue-${n})` };
|
2175
2194
|
}), o = C(() => e.percent > 100 ? 100 : e.percent < 0 ? 0 : e.percent);
|
2176
|
-
return (l, n) => (r(),
|
2195
|
+
return (l, n) => (r(), d(a(Nt), {
|
2177
2196
|
class: "ui-Quota",
|
2178
2197
|
"model-value": o.value,
|
2179
2198
|
"data-accent-color": e.color
|
@@ -2195,8 +2214,8 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, ko] = oe("ui_ComboboxR
|
|
2195
2214
|
},
|
2196
2215
|
setup(s) {
|
2197
2216
|
const e = s, t = C(() => `svg-spinners:${e.icon}`);
|
2198
|
-
return (o, l) => (r(),
|
2199
|
-
class:
|
2217
|
+
return (o, l) => (r(), d(a(k), {
|
2218
|
+
class: I(["ui-Spinner", `r-size-${o.size}`]),
|
2200
2219
|
icon: t.value
|
2201
2220
|
}, null, 8, ["class", "icon"]));
|
2202
2221
|
}
|
@@ -2209,13 +2228,13 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, ko] = oe("ui_ComboboxR
|
|
2209
2228
|
setup(s) {
|
2210
2229
|
const e = s;
|
2211
2230
|
return (t, o) => (r(), $("div", {
|
2212
|
-
class:
|
2231
|
+
class: I(["ui-SavingIndicator", `r-size-${t.size}`]),
|
2213
2232
|
"data-status": e.status
|
2214
2233
|
}, [
|
2215
|
-
e.status === "saving" ? (r(),
|
2234
|
+
e.status === "saving" ? (r(), d(a(k), {
|
2216
2235
|
key: 0,
|
2217
2236
|
icon: "svg-spinners:180-ring"
|
2218
|
-
})) : e.status === "saved" ? (r(),
|
2237
|
+
})) : e.status === "saved" ? (r(), d(a(k), {
|
2219
2238
|
key: 1,
|
2220
2239
|
icon: "lucide:check-circle-2"
|
2221
2240
|
})) : z("", !0)
|
@@ -2232,11 +2251,11 @@ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, ko] = oe("ui_ComboboxR
|
|
2232
2251
|
setup(s) {
|
2233
2252
|
const e = s, t = C(() => R(e, ["size", "variant"]));
|
2234
2253
|
return (o, l) => (r(), $("span", {
|
2235
|
-
class:
|
2254
|
+
class: I(["ui-IconCircle", t.value]),
|
2236
2255
|
"data-radius": "full",
|
2237
2256
|
"data-accent-color": e.color
|
2238
2257
|
}, [
|
2239
|
-
p(a(
|
2258
|
+
p(a(k), {
|
2240
2259
|
icon: e.icon
|
2241
2260
|
}, null, 8, ["icon"])
|
2242
2261
|
], 10, No));
|
@@ -2261,7 +2280,7 @@ const ds = /* @__PURE__ */ m({
|
|
2261
2280
|
window.turnstile && (o("update:modelValue", ""), window.turnstile.reset());
|
2262
2281
|
}, i = () => {
|
2263
2282
|
le && (window.turnstile.remove(le), le = void 0);
|
2264
|
-
},
|
2283
|
+
}, u = (v) => {
|
2265
2284
|
o("update:modelValue", v), ye = setTimeout(() => {
|
2266
2285
|
n();
|
2267
2286
|
}, t.resetInterval);
|
@@ -2270,7 +2289,7 @@ const ds = /* @__PURE__ */ m({
|
|
2270
2289
|
sitekey: t.sitekey,
|
2271
2290
|
theme: t.theme,
|
2272
2291
|
size: t.size,
|
2273
|
-
callback:
|
2292
|
+
callback: u,
|
2274
2293
|
action: t.action,
|
2275
2294
|
appearance: t.appearance
|
2276
2295
|
});
|
@@ -2315,13 +2334,13 @@ const ds = /* @__PURE__ */ m({
|
|
2315
2334
|
const e = s;
|
2316
2335
|
return (t, o) => (r(), $("button", Qo, [
|
2317
2336
|
b("div", Zo, [
|
2318
|
-
b("strong", null,
|
2319
|
-
b("span", null,
|
2320
|
-
b("span", null,
|
2337
|
+
b("strong", null, T(e.name), 1),
|
2338
|
+
b("span", null, T(e.license.title), 1),
|
2339
|
+
b("span", null, T(e.total) + " icons", 1)
|
2321
2340
|
]),
|
2322
2341
|
b("div", Jo, [
|
2323
|
-
(r(!0), $(H, null,
|
2324
|
-
p(a(
|
2342
|
+
(r(!0), $(H, null, j(e.samples, (l) => (r(), $("span", { key: l }, [
|
2343
|
+
p(a(k), {
|
2325
2344
|
icon: e.prefix + ":" + l
|
2326
2345
|
}, null, 8, ["icon"])
|
2327
2346
|
]))), 128))
|
@@ -2365,11 +2384,11 @@ const ds = /* @__PURE__ */ m({
|
|
2365
2384
|
},
|
2366
2385
|
emits: ["select"],
|
2367
2386
|
setup(s, { emit: e }) {
|
2368
|
-
const t = s, o = e, l = P("all"), n = P([]), i = P(""),
|
2369
|
-
|
2387
|
+
const t = s, o = e, l = P("all"), n = P([]), i = P(""), u = P(1), y = P(""), v = P([]), h = P(), f = P(""), B = P(""), A = () => {
|
2388
|
+
u.value = 1, y.value = "", v.value = [], h.value = void 0, f.value = "", B.value = "", l.value = "all";
|
2370
2389
|
}, F = (w) => {
|
2371
2390
|
o("select", w);
|
2372
|
-
},
|
2391
|
+
}, E = async () => {
|
2373
2392
|
y.value ? (l.value = "search", v.value = await pa(y.value)) : l.value = "all";
|
2374
2393
|
}, K = async (w) => {
|
2375
2394
|
h.value = void 0, f.value = "", B.value = "", l.value = "collection", h.value = await fa(w);
|
@@ -2393,17 +2412,17 @@ const ds = /* @__PURE__ */ m({
|
|
2393
2412
|
return `${(O = h.value) == null ? void 0 : O.prefix}:${S}`;
|
2394
2413
|
})) : w;
|
2395
2414
|
}), me = C(() => l.value === "search" ? v.value : l.value === "collection" ? Re.value : []), Pe = C(() => {
|
2396
|
-
const w = (
|
2415
|
+
const w = (u.value - 1) * t.perpage, S = u.value * t.perpage;
|
2397
2416
|
return me.value.slice(w, S);
|
2398
2417
|
});
|
2399
2418
|
return ue(async () => {
|
2400
|
-
t.prefix ? K(t.prefix) : t.search && (y.value = t.search,
|
2419
|
+
t.prefix ? K(t.prefix) : t.search && (y.value = t.search, E()), n.value = await da();
|
2401
2420
|
}), (w, S) => {
|
2402
2421
|
var O;
|
2403
2422
|
return r(), $("div", Yo, [
|
2404
2423
|
te(b("div", ea, [
|
2405
2424
|
b("section", ta, [
|
2406
|
-
b("h1", null,
|
2425
|
+
b("h1", null, T(J.value) + " icon sets", 1),
|
2407
2426
|
b("div", oa, [
|
2408
2427
|
p(ae, {
|
2409
2428
|
modelValue: i.value,
|
@@ -2414,24 +2433,24 @@ const ds = /* @__PURE__ */ m({
|
|
2414
2433
|
modelValue: y.value,
|
2415
2434
|
"onUpdate:modelValue": S[1] || (S[1] = (x) => y.value = x),
|
2416
2435
|
placeholder: "Search icons...",
|
2417
|
-
onKeydown: he(
|
2436
|
+
onKeydown: he(E, ["enter"])
|
2418
2437
|
}, null, 8, ["modelValue"])
|
2419
2438
|
])
|
2420
2439
|
]),
|
2421
|
-
(r(!0), $(H, null,
|
2440
|
+
(r(!0), $(H, null, j(X.value, (x) => (r(), $("section", {
|
2422
2441
|
key: x.category,
|
2423
2442
|
class: "ui-IconifyCollectionSample"
|
2424
2443
|
}, [
|
2425
2444
|
b("h1", aa, [
|
2426
|
-
b("span", sa,
|
2427
|
-
b("span", la, "(" +
|
2445
|
+
b("span", sa, T(x.category), 1),
|
2446
|
+
b("span", la, "(" + T(x.items.length) + " icon sets)", 1)
|
2428
2447
|
]),
|
2429
2448
|
b("div", na, [
|
2430
|
-
(r(!0), $(H, null,
|
2431
|
-
key:
|
2449
|
+
(r(!0), $(H, null, j(x.items, (G) => (r(), d(Xo, g({
|
2450
|
+
key: G.prefix,
|
2432
2451
|
ref_for: !0
|
2433
|
-
},
|
2434
|
-
onClick: D((De) => K(
|
2452
|
+
}, G, {
|
2453
|
+
onClick: D((De) => K(G.prefix), ["prevent"])
|
2435
2454
|
}), null, 16, ["onClick"]))), 128))
|
2436
2455
|
])
|
2437
2456
|
]))), 128))
|
@@ -2440,25 +2459,25 @@ const ds = /* @__PURE__ */ m({
|
|
2440
2459
|
]),
|
2441
2460
|
l.value !== "all" ? (r(), $("div", ra, [
|
2442
2461
|
b("div", ia, [
|
2443
|
-
p(
|
2462
|
+
p(W, {
|
2444
2463
|
type: "button",
|
2445
2464
|
variant: "surface",
|
2446
2465
|
color: "gray",
|
2447
|
-
onClick: D(
|
2466
|
+
onClick: D(A, ["prevent"])
|
2448
2467
|
}, {
|
2449
2468
|
default: c(() => S[5] || (S[5] = [
|
2450
|
-
|
2469
|
+
L(" Back ")
|
2451
2470
|
])),
|
2452
2471
|
_: 1
|
2453
2472
|
}),
|
2454
|
-
l.value === "search" ? (r(),
|
2473
|
+
l.value === "search" ? (r(), d(ae, {
|
2455
2474
|
key: 0,
|
2456
2475
|
modelValue: y.value,
|
2457
2476
|
"onUpdate:modelValue": S[2] || (S[2] = (x) => y.value = x),
|
2458
2477
|
placeholder: "Search icons...",
|
2459
|
-
onKeydown: he(
|
2478
|
+
onKeydown: he(E, ["enter"])
|
2460
2479
|
}, null, 8, ["modelValue"])) : z("", !0),
|
2461
|
-
l.value === "collection" ? (r(),
|
2480
|
+
l.value === "collection" ? (r(), d(ae, {
|
2462
2481
|
key: 1,
|
2463
2482
|
modelValue: f.value,
|
2464
2483
|
"onUpdate:modelValue": S[3] || (S[3] = (x) => f.value = x),
|
@@ -2466,22 +2485,22 @@ const ds = /* @__PURE__ */ m({
|
|
2466
2485
|
}, null, 8, ["modelValue"])) : z("", !0)
|
2467
2486
|
]),
|
2468
2487
|
l.value === "collection" && ((O = h.value) != null && O.suffixes) ? (r(), $("div", ca, [
|
2469
|
-
(r(!0), $(H, null,
|
2470
|
-
key:
|
2471
|
-
variant: B.value ===
|
2488
|
+
(r(!0), $(H, null, j(h.value.suffixes, (x, G) => (r(), d(W, {
|
2489
|
+
key: G,
|
2490
|
+
variant: B.value === G ? "solid" : "outline",
|
2472
2491
|
color: "gray",
|
2473
2492
|
"high-contrast": "",
|
2474
2493
|
radius: "full",
|
2475
|
-
onClick: D((De) => B.value =
|
2494
|
+
onClick: D((De) => B.value = G, ["prevent"])
|
2476
2495
|
}, {
|
2477
2496
|
default: c(() => [
|
2478
|
-
|
2497
|
+
L(T(x), 1)
|
2479
2498
|
]),
|
2480
2499
|
_: 2
|
2481
2500
|
}, 1032, ["variant", "onClick"]))), 128))
|
2482
2501
|
])) : z("", !0),
|
2483
2502
|
b("div", ua, [
|
2484
|
-
(r(!0), $(H, null,
|
2503
|
+
(r(!0), $(H, null, j(Pe.value, (x) => (r(), d(Uo, {
|
2485
2504
|
key: x,
|
2486
2505
|
as: "div",
|
2487
2506
|
content: x
|
@@ -2492,10 +2511,10 @@ const ds = /* @__PURE__ */ m({
|
|
2492
2511
|
color: "gray",
|
2493
2512
|
variant: "ghost",
|
2494
2513
|
size: "4",
|
2495
|
-
onClick: D((
|
2514
|
+
onClick: D((G) => F(x), ["prevent"])
|
2496
2515
|
}, {
|
2497
2516
|
default: c(() => [
|
2498
|
-
p(a(
|
2517
|
+
p(a(k), { icon: x }, null, 8, ["icon"])
|
2499
2518
|
]),
|
2500
2519
|
_: 2
|
2501
2520
|
}, 1032, ["onClick"])
|
@@ -2504,8 +2523,8 @@ const ds = /* @__PURE__ */ m({
|
|
2504
2523
|
}, 1032, ["content"]))), 128))
|
2505
2524
|
]),
|
2506
2525
|
p(Ho, {
|
2507
|
-
page:
|
2508
|
-
"onUpdate:page": S[4] || (S[4] = (x) =>
|
2526
|
+
page: u.value,
|
2527
|
+
"onUpdate:page": S[4] || (S[4] = (x) => u.value = x),
|
2509
2528
|
total: me.value.length,
|
2510
2529
|
perpage: w.perpage
|
2511
2530
|
}, null, 8, ["page", "total", "perpage"])
|
@@ -2528,22 +2547,22 @@ export {
|
|
2528
2547
|
Cs as AlertDialogTrigger,
|
2529
2548
|
_a as Avatar,
|
2530
2549
|
ga as Badge,
|
2531
|
-
|
2550
|
+
W as Button,
|
2532
2551
|
Yt as Card,
|
2533
2552
|
ya as CardHead,
|
2534
|
-
|
2535
|
-
|
2536
|
-
|
2537
|
-
|
2553
|
+
ke as Checkbox,
|
2554
|
+
Va as CheckboxGroupControl,
|
2555
|
+
ka as CheckboxGroupItem,
|
2556
|
+
Ia as CheckboxGroupRoot,
|
2538
2557
|
Lo as ChevronIcon,
|
2539
2558
|
ss as CollapsibleContent,
|
2540
2559
|
bs as CollapsibleRoot,
|
2541
2560
|
$s as CollapsibleTrigger,
|
2542
2561
|
Da as ColorField,
|
2543
|
-
|
2562
|
+
Wa as ComboboxContent,
|
2544
2563
|
Bs as ComboboxEmpty,
|
2545
2564
|
xs as ComboboxGroup,
|
2546
|
-
|
2565
|
+
ja as ComboboxInput,
|
2547
2566
|
Ua as ComboboxItem,
|
2548
2567
|
qa as ComboboxLabel,
|
2549
2568
|
Ea as ComboboxRoot,
|
@@ -2552,12 +2571,12 @@ export {
|
|
2552
2571
|
Ss as DialogDescription,
|
2553
2572
|
Ba as DialogHead,
|
2554
2573
|
zs as DialogRoot,
|
2555
|
-
|
2556
|
-
|
2574
|
+
Is as DialogTitle,
|
2575
|
+
ks as DialogTrigger,
|
2557
2576
|
xa as DropdownMenuContent,
|
2558
2577
|
wa as DropdownMenuItem,
|
2559
|
-
|
2560
|
-
|
2578
|
+
Vs as DropdownMenuRoot,
|
2579
|
+
Ts as DropdownMenuTrigger,
|
2561
2580
|
Gs as Icon,
|
2562
2581
|
Y as IconButton,
|
2563
2582
|
us as IconCircle,
|
@@ -2578,7 +2597,7 @@ export {
|
|
2578
2597
|
Ds as RadioTabsItem,
|
2579
2598
|
Ja as RadioTabsList,
|
2580
2599
|
cs as SavingIndicator,
|
2581
|
-
|
2600
|
+
Ie as ScrollArea,
|
2582
2601
|
Ma as SelectContent,
|
2583
2602
|
Os as SelectGroup,
|
2584
2603
|
La as SelectItem,
|
@@ -2597,7 +2616,7 @@ export {
|
|
2597
2616
|
Ya as TabsTrigger,
|
2598
2617
|
Pa as TextArea,
|
2599
2618
|
ae as TextField,
|
2600
|
-
|
2619
|
+
Ta as Toggle,
|
2601
2620
|
Ra as ToggleGroupItem,
|
2602
2621
|
Aa as ToggleGroupRoot,
|
2603
2622
|
Uo as Tooltip,
|