@typlog/ui 0.7.3 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,44 +1,48 @@
1
- import { computed as b, defineComponent as h, createBlock as f, openBlock as r, unref as a, normalizeClass as V, withCtx as c, createVNode as d, createTextVNode as U, toDisplayString as I, renderSlot as g, createElementBlock as $, mergeProps as C, createElementVNode as B, createCommentVNode as z, toRefs as ee, mergeModels as H, ref as P, useModel as K, onMounted as ue, onBeforeUnmount as ye, withDirectives as te, isRef as Ce, vModelDynamic as Ae, vModelText as be, normalizeProps as Oe, guardReactiveProps as Me, watch as Fe, Fragment as j, renderList as W, withModifiers as A, vModelRadio as Le, normalizeStyle as Ge, withKeys as he, vShow as He } from "vue";
2
- import { useForwardProps as T, useEmitAsProps as Be, AvatarRoot as Ee, AvatarImage as je, AvatarFallback as We, Primitive as J, ScrollAreaRoot as de, ScrollAreaViewport as pe, ScrollAreaScrollbar as ne, ScrollAreaThumb as re, ScrollAreaCorner as Ue, AlertDialogPortal as qe, AlertDialogOverlay as Ke, AlertDialogContent as Ne, DialogPortal as Qe, DialogOverlay as Je, DialogContent as Ze, DialogTitle as Xe, DialogClose as Ye, useForwardExpose as F, createContext as ae, DropdownMenuPortal as et, DropdownMenuContent as tt, DropdownMenuItem as at, PopoverPortal as ot, 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 ht, SelectViewport as mt, SelectTrigger as vt, SelectValue as gt, SelectIcon as _t, SelectItem as yt, SelectItemIndicator as Ct, SelectItemText as bt, SelectLabel as Bt, ComboboxRoot as $t, injectComboboxRootContext as xt, useForwardPropsEmits as $e, ComboboxAnchor as wt, ComboboxInput as me, ComboboxTrigger as St, ComboboxPortal as zt, ComboboxContent as kt, ComboboxViewport as Vt, ComboboxItem as It, ComboboxItemIndicator as Tt, ComboboxLabel as Rt, RadioGroupRoot as xe, RadioGroupItem as we, TabsList as Pt, TabsTrigger as Dt, CollapsibleTrigger as At, TooltipProvider as Ot, TooltipRoot as Mt, TooltipTrigger as Ft, TooltipPortal as Lt, TooltipContent as Gt, TooltipArrow as Ht, ProgressRoot as Et, ProgressIndicator as jt } from "reka-ui";
3
- import { AlertDialogAction as Yo, AlertDialogCancel as es, AlertDialogDescription as ts, AlertDialogRoot as as, AlertDialogTitle as os, AlertDialogTrigger as ss, CollapsibleContent as ls, CollapsibleRoot as ns, CollapsibleTrigger as rs, ComboboxEmpty as is, ComboboxGroup as cs, DialogClose as us, DialogDescription as ds, DialogRoot as ps, DialogTitle as fs, DialogTrigger as hs, DropdownMenuRoot as ms, DropdownMenuTrigger as vs, PopoverClose as gs, PopoverRoot as _s, PopoverTrigger as ys, RadioGroupItem as Cs, SelectGroup as bs, TabsContent as Bs, TabsRoot as $s } from "reka-ui";
4
- import { Icon as k } from "@iconify/vue";
5
- import { Icon as ws } from "@iconify/vue";
6
- function N(s, e, t) {
7
- const o = T(s), l = Be(e);
8
- return b(() => ({
9
- ...Se(o.value, t),
1
+ import { computed as C, defineComponent as m, createBlock as u, openBlock as r, unref as a, normalizeClass as k, withCtx as c, createVNode as p, createTextVNode as W, toDisplayString as A, 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, watch as Le, Fragment as H, renderList as E, withModifiers as D, vModelRadio as Ge, withKeys as he, vShow as He } from "vue";
2
+ import { useForwardProps as T, useEmitAsProps as xe, AvatarRoot as Ee, AvatarImage as We, AvatarFallback as je, 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 kt, ComboboxViewport as It, ComboboxItem as Tt, ComboboxItemIndicator as Vt, 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 Wt, TooltipPortal as jt, 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 ks, DialogTrigger as Is, DropdownMenuRoot as Ts, DropdownMenuTrigger as Vs, 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 I } from "@iconify/vue";
5
+ import { Icon as Gs } from "@iconify/vue";
6
+ function q(s, e, t) {
7
+ const o = T(s), l = xe(e);
8
+ return C(() => ({
9
+ ...fe(o.value, t),
10
10
  ...l
11
11
  }));
12
12
  }
13
- function Z(s, e, t) {
14
- const o = T(s), l = Be(e), n = b(() => ({
15
- ...Se(o.value, t),
13
+ function Qt(s, e) {
14
+ const t = T(s), o = C(() => fe(t.value, e)), l = C(() => R(t.value, e));
15
+ return [o, l];
16
+ }
17
+ function N(s, e, t) {
18
+ const o = T(s), l = xe(e), n = C(() => ({
19
+ ...fe(o.value, t),
16
20
  ...l
17
- })), i = b(() => M(o.value, t));
21
+ })), i = C(() => R(o.value, t));
18
22
  return [n, i];
19
23
  }
20
- function Se(s, e) {
24
+ function fe(s, e) {
21
25
  const t = {};
22
26
  return Object.keys(s).forEach((o) => {
23
27
  e.indexOf(o) === -1 && (t[o] = s[o]);
24
28
  }), t;
25
29
  }
26
- const M = (s, e) => {
30
+ const R = (s, e) => {
27
31
  const t = [];
28
32
  return e.forEach((o) => {
29
33
  if (o !== "color" && o !== "radius") {
30
34
  const l = s[o];
31
- l === !0 ? t.push(`r-${ve(o)}`) : l && t.push(`r-${ve(o)}-${l}`);
35
+ l === !0 ? t.push(`r-${_e(o)}`) : l && t.push(`r-${_e(o)}-${l}`);
32
36
  }
33
37
  }), t;
34
38
  };
35
- function ve(s) {
36
- return s.replace(/[A-Z]+(?![a-z])|[A-Z]/g, Wt);
39
+ function _e(s) {
40
+ return s.replace(/[A-Z]+(?![a-z])|[A-Z]/g, Zt);
37
41
  }
38
- function Wt(s, e) {
42
+ function Zt(s, e) {
39
43
  return (e ? "-" : "") + s.toLowerCase();
40
44
  }
41
- const lo = /* @__PURE__ */ h({
45
+ const _a = /* @__PURE__ */ m({
42
46
  __name: "Avatar",
43
47
  props: {
44
48
  src: {},
@@ -50,22 +54,22 @@ const lo = /* @__PURE__ */ h({
50
54
  color: {}
51
55
  },
52
56
  setup(s) {
53
- const e = s, t = b(() => M(e, ["size", "variant"])), o = b(() => e.fallback ? e.fallback : e.alt.split(/\s+/).map((l) => l[0]).slice(0, 2).join(""));
54
- return (l, n) => (r(), f(a(Ee), {
55
- class: V(["ui-Avatar", t.value]),
57
+ const e = s, t = C(() => R(e, ["size", "variant"])), o = C(() => e.fallback ? e.fallback : e.alt.split(/\s+/).map((l) => l[0]).slice(0, 2).join(""));
58
+ return (l, n) => (r(), u(a(Ee), {
59
+ class: k(["ui-Avatar", t.value]),
56
60
  "data-accent-color": e.color,
57
61
  "data-radius": e.radius
58
62
  }, {
59
63
  default: c(() => [
60
- d(a(je), {
64
+ p(a(We), {
61
65
  alt: e.alt,
62
66
  src: e.src || ""
63
67
  }, null, 8, ["alt", "src"]),
64
- d(a(We), {
65
- class: V(`r-count-${o.value.length}`)
68
+ p(a(je), {
69
+ class: k(`r-count-${o.value.length}`)
66
70
  }, {
67
71
  default: c(() => [
68
- U(I(o.value), 1)
72
+ W(A(o.value), 1)
69
73
  ]),
70
74
  _: 1
71
75
  }, 8, ["class"])
@@ -73,7 +77,7 @@ const lo = /* @__PURE__ */ h({
73
77
  _: 1
74
78
  }, 8, ["class", "data-accent-color", "data-radius"]));
75
79
  }
76
- }), no = /* @__PURE__ */ h({
80
+ }), ga = /* @__PURE__ */ m({
77
81
  __name: "Badge",
78
82
  props: {
79
83
  variant: { default: "soft" },
@@ -85,21 +89,21 @@ const lo = /* @__PURE__ */ h({
85
89
  as: { default: "span" }
86
90
  },
87
91
  setup(s) {
88
- const e = s, t = b(() => M(e, ["size", "variant", "highContrast"]));
89
- return (o, l) => (r(), f(a(J), {
90
- class: V(["ui-Badge", t.value]),
92
+ const e = s, t = C(() => R(e, ["size", "variant", "highContrast"]));
93
+ return (o, l) => (r(), u(a(U), {
94
+ class: k(["ui-Badge", t.value]),
91
95
  as: e.as,
92
96
  "as-child": e.asChild,
93
97
  "data-accent-color": e.color,
94
98
  "data-radius": e.radius
95
99
  }, {
96
100
  default: c(() => [
97
- g(o.$slots, "default")
101
+ _(o.$slots, "default")
98
102
  ]),
99
103
  _: 3
100
104
  }, 8, ["class", "as", "as-child", "data-accent-color", "data-radius"]));
101
105
  }
102
- }), Ut = ["data-side", "data-clip"], qt = /* @__PURE__ */ h({
106
+ }), Jt = ["data-side", "data-clip"], Xt = /* @__PURE__ */ m({
103
107
  __name: "Inset",
104
108
  props: {
105
109
  side: { default: "all" },
@@ -112,10 +116,10 @@ const lo = /* @__PURE__ */ h({
112
116
  "data-side": e.side,
113
117
  "data-clip": e.clip
114
118
  }, [
115
- g(t.$slots, "default")
116
- ], 8, Ut));
119
+ _(t.$slots, "default")
120
+ ], 8, Jt));
117
121
  }
118
- }), Kt = /* @__PURE__ */ h({
122
+ }), Yt = /* @__PURE__ */ m({
119
123
  __name: "Card",
120
124
  props: {
121
125
  variant: { default: "surface" },
@@ -125,20 +129,20 @@ const lo = /* @__PURE__ */ h({
125
129
  as: { default: "div" }
126
130
  },
127
131
  setup(s) {
128
- const e = s, t = b(() => M(e, ["size", "variant"]));
129
- return (o, l) => (r(), f(a(J), {
130
- class: V(["ui-Card", t.value]),
132
+ const e = s, t = C(() => R(e, ["size", "variant"]));
133
+ return (o, l) => (r(), u(a(U), {
134
+ class: k(["ui-Card", t.value]),
131
135
  "as-child": e.asChild,
132
136
  as: e.as,
133
137
  "data-radius": e.radius
134
138
  }, {
135
139
  default: c(() => [
136
- g(o.$slots, "default")
140
+ _(o.$slots, "default")
137
141
  ]),
138
142
  _: 3
139
143
  }, 8, ["class", "as-child", "as", "data-radius"]));
140
144
  }
141
- }), ro = /* @__PURE__ */ h({
145
+ }), ya = /* @__PURE__ */ m({
142
146
  __name: "CardHead",
143
147
  props: {
144
148
  color: {},
@@ -147,18 +151,18 @@ const lo = /* @__PURE__ */ h({
147
151
  },
148
152
  setup(s) {
149
153
  const e = s;
150
- return (t, o) => (r(), f(a(J), {
154
+ return (t, o) => (r(), u(a(U), {
151
155
  as: e.as,
152
156
  class: "ui-CardHead",
153
157
  "data-accent-color": e.color
154
158
  }, {
155
159
  default: c(() => [
156
- g(t.$slots, "default")
160
+ _(t.$slots, "default")
157
161
  ]),
158
162
  _: 3
159
163
  }, 8, ["as", "data-accent-color"]));
160
164
  }
161
- }), q = /* @__PURE__ */ h({
165
+ }), j = /* @__PURE__ */ m({
162
166
  __name: "Button",
163
167
  props: {
164
168
  color: {},
@@ -171,9 +175,9 @@ const lo = /* @__PURE__ */ h({
171
175
  as: { default: "button" }
172
176
  },
173
177
  setup(s) {
174
- const e = s, t = b(() => M(e, ["size", "variant", "highContrast"]));
175
- return (o, l) => (r(), f(a(J), {
176
- class: V(["ui-Button", t.value]),
178
+ const e = s, t = C(() => R(e, ["size", "variant", "highContrast"]));
179
+ return (o, l) => (r(), u(a(U), {
180
+ class: k(["ui-Button", t.value]),
177
181
  "as-child": e.asChild,
178
182
  as: e.as,
179
183
  "data-accent-color": e.color,
@@ -181,12 +185,12 @@ const lo = /* @__PURE__ */ h({
181
185
  "data-disabled": e.disabled ? !0 : void 0
182
186
  }, {
183
187
  default: c(() => [
184
- g(o.$slots, "default")
188
+ _(o.$slots, "default")
185
189
  ]),
186
190
  _: 3
187
191
  }, 8, ["class", "as-child", "as", "data-accent-color", "data-radius", "data-disabled"]));
188
192
  }
189
- }), Q = /* @__PURE__ */ h({
193
+ }), Y = /* @__PURE__ */ m({
190
194
  __name: "IconButton",
191
195
  props: {
192
196
  color: {},
@@ -200,14 +204,51 @@ const lo = /* @__PURE__ */ h({
200
204
  },
201
205
  setup(s) {
202
206
  const t = T(s);
203
- return (o, l) => (r(), f(q, C({ class: "ui-IconButton" }, a(t)), {
207
+ return (o, l) => (r(), u(j, g({ class: "ui-IconButton" }, a(t)), {
204
208
  default: c(() => [
205
- g(o.$slots, "default")
209
+ _(o.$slots, "default")
206
210
  ]),
207
211
  _: 3
208
212
  }, 16));
209
213
  }
210
- }), ze = /* @__PURE__ */ h({
214
+ }), eo = {
215
+ google: "logos:google-icon",
216
+ facebook: "simple-icons:facebook",
217
+ x: "simple-icons:x",
218
+ github: "simple-icons:github",
219
+ apple: "simple-icons:apple",
220
+ slack: "logos:slack-icon",
221
+ figma: "logos:figma"
222
+ }, Ca = /* @__PURE__ */ m({
223
+ __name: "SocialButton",
224
+ props: {
225
+ brand: {},
226
+ radius: {},
227
+ size: { default: "2" },
228
+ disabled: { type: Boolean },
229
+ asChild: { type: Boolean },
230
+ as: { default: "button" }
231
+ },
232
+ setup(s) {
233
+ const e = s, t = C(() => R(e, ["size", "brand"])), o = C(() => eo[e.brand]);
234
+ return (l, n) => (r(), u(a(U), {
235
+ class: k(["ui-Button ui-SocialButton", t.value]),
236
+ "as-child": e.asChild,
237
+ as: e.as,
238
+ "data-radius": e.radius,
239
+ "data-disabled": e.disabled ? !0 : void 0
240
+ }, {
241
+ default: c(() => [
242
+ o.value ? (r(), u(a(I), {
243
+ key: 0,
244
+ icon: o.value
245
+ }, null, 8, ["icon"])) : z("", !0),
246
+ _(l.$slots, "default")
247
+ ]),
248
+ _: 3
249
+ }, 8, ["class", "as-child", "as", "data-radius", "data-disabled"]));
250
+ }
251
+ }), ke = /* @__PURE__ */ m({
211
252
  __name: "ScrollArea",
212
253
  props: {
213
254
  size: { default: "1" },
@@ -221,7 +262,7 @@ const lo = /* @__PURE__ */ h({
221
262
  },
222
263
  setup(s) {
223
264
  const e = s;
224
- return (t, o) => (r(), f(a(de), {
265
+ return (t, o) => (r(), u(a(de), {
225
266
  class: "ui-ScrollArea",
226
267
  "as-child": e.asChild,
227
268
  dir: e.dir,
@@ -230,36 +271,36 @@ const lo = /* @__PURE__ */ h({
230
271
  "data-radius": e.radius
231
272
  }, {
232
273
  default: c(() => [
233
- d(a(pe), { class: "ui-ScrollAreaViewport" }, {
274
+ p(a(pe), { class: "ui-ScrollAreaViewport" }, {
234
275
  default: c(() => [
235
- g(t.$slots, "default")
276
+ _(t.$slots, "default")
236
277
  ]),
237
278
  _: 3
238
279
  }),
239
- o[0] || (o[0] = B("div", { class: "ui-ScrollAreaViewportFocusRing" }, null, -1)),
240
- e.scrollbars !== "horizontal" ? (r(), f(a(ne), {
280
+ o[0] || (o[0] = b("div", { class: "ui-ScrollAreaViewportFocusRing" }, null, -1)),
281
+ e.scrollbars !== "horizontal" ? (r(), u(a(ne), {
241
282
  key: 0,
242
283
  class: "ui-ScrollAreaScrollbar",
243
284
  "data-size": e.size,
244
285
  orientation: "vertical"
245
286
  }, {
246
287
  default: c(() => [
247
- d(a(re), { class: "ui-ScrollAreaThumb" })
288
+ p(a(re), { class: "ui-ScrollAreaThumb" })
248
289
  ]),
249
290
  _: 1
250
291
  }, 8, ["data-size"])) : z("", !0),
251
- e.scrollbars !== "vertical" ? (r(), f(a(ne), {
292
+ e.scrollbars !== "vertical" ? (r(), u(a(ne), {
252
293
  key: 1,
253
294
  class: "ui-ScrollAreaScrollbar",
254
295
  "data-size": e.size,
255
296
  orientation: "horizontal"
256
297
  }, {
257
298
  default: c(() => [
258
- d(a(re), { class: "ui-ScrollAreaThumb" })
299
+ p(a(re), { class: "ui-ScrollAreaThumb" })
259
300
  ]),
260
301
  _: 1
261
302
  }, 8, ["data-size"])) : z("", !0),
262
- e.scrollbars === "both" ? (r(), f(a(Ue), {
303
+ e.scrollbars === "both" ? (r(), u(a(Ue), {
263
304
  key: 2,
264
305
  "class-name": "ui-ScrollAreaCorner"
265
306
  })) : z("", !0)
@@ -267,7 +308,7 @@ const lo = /* @__PURE__ */ h({
267
308
  _: 3
268
309
  }, 8, ["as-child", "dir", "scroll-hide-delay", "type", "data-radius"]));
269
310
  }
270
- }), Nt = { class: "ui-DialogScroll" }, Qt = ["data-align"], io = /* @__PURE__ */ h({
311
+ }), to = { class: "ui-DialogScroll" }, oo = ["data-align"], ba = /* @__PURE__ */ m({
271
312
  inheritAttrs: !1,
272
313
  __name: "AlertDialogContent",
273
314
  props: {
@@ -289,7 +330,7 @@ const lo = /* @__PURE__ */ h({
289
330
  },
290
331
  emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
291
332
  setup(s, { emit: e }) {
292
- const t = s, l = N(t, e, [
333
+ const t = s, l = q(t, e, [
293
334
  "to",
294
335
  "align",
295
336
  "class",
@@ -301,18 +342,18 @@ const lo = /* @__PURE__ */ h({
301
342
  "minHeight",
302
343
  "maxHeight"
303
344
  ]);
304
- return (n, i) => (r(), f(a(qe), {
345
+ return (n, i) => (r(), u(a(qe), {
305
346
  to: t.to
306
347
  }, {
307
348
  default: c(() => [
308
- d(a(Ke), { class: "ui-DialogOverlay" }, {
349
+ p(a(Ne), { class: "ui-DialogOverlay" }, {
309
350
  default: c(() => [
310
- B("div", Nt, [
311
- B("div", {
351
+ b("div", to, [
352
+ b("div", {
312
353
  class: "ui-DialogScrollPadding",
313
354
  "data-align": t.align
314
355
  }, [
315
- d(a(Ne), C({
356
+ p(a(Ke), g({
316
357
  class: ["ui-DialogContent", t.class],
317
358
  "data-size": t.size
318
359
  }, {
@@ -329,11 +370,11 @@ const lo = /* @__PURE__ */ h({
329
370
  }
330
371
  }), {
331
372
  default: c(() => [
332
- g(n.$slots, "default")
373
+ _(n.$slots, "default")
333
374
  ]),
334
375
  _: 3
335
376
  }, 16, ["class", "data-size", "style"])
336
- ], 8, Qt)
377
+ ], 8, oo)
337
378
  ])
338
379
  ]),
339
380
  _: 3
@@ -342,7 +383,7 @@ const lo = /* @__PURE__ */ h({
342
383
  _: 3
343
384
  }, 8, ["to"]));
344
385
  }
345
- }), Jt = { class: "ui-DialogScroll" }, Zt = ["data-align"], co = /* @__PURE__ */ h({
386
+ }), ao = { class: "ui-DialogScroll" }, so = ["data-align"], $a = /* @__PURE__ */ m({
346
387
  inheritAttrs: !1,
347
388
  __name: "DialogContent",
348
389
  props: {
@@ -364,7 +405,7 @@ const lo = /* @__PURE__ */ h({
364
405
  },
365
406
  emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
366
407
  setup(s, { emit: e }) {
367
- const t = s, l = N(t, e, [
408
+ const t = s, l = q(t, e, [
368
409
  "to",
369
410
  "align",
370
411
  "class",
@@ -376,18 +417,18 @@ const lo = /* @__PURE__ */ h({
376
417
  "minHeight",
377
418
  "maxHeight"
378
419
  ]);
379
- return (n, i) => (r(), f(a(Qe), {
420
+ return (n, i) => (r(), u(a(Qe), {
380
421
  to: t.to
381
422
  }, {
382
423
  default: c(() => [
383
- d(a(Je), { class: "ui-DialogOverlay" }, {
424
+ p(a(Ze), { class: "ui-DialogOverlay" }, {
384
425
  default: c(() => [
385
- B("div", Jt, [
386
- B("div", {
426
+ b("div", ao, [
427
+ b("div", {
387
428
  class: "ui-DialogScrollPadding",
388
429
  "data-align": t.align
389
430
  }, [
390
- d(a(Ze), C({
431
+ p(a(Je), g({
391
432
  class: ["ui-DialogContent", t.class],
392
433
  "data-size": t.size
393
434
  }, {
@@ -404,11 +445,11 @@ const lo = /* @__PURE__ */ h({
404
445
  }
405
446
  }), {
406
447
  default: c(() => [
407
- g(n.$slots, "default")
448
+ _(n.$slots, "default")
408
449
  ]),
409
450
  _: 3
410
451
  }, 16, ["class", "data-size", "style"])
411
- ], 8, Zt)
452
+ ], 8, so)
412
453
  ])
413
454
  ]),
414
455
  _: 3
@@ -417,25 +458,25 @@ const lo = /* @__PURE__ */ h({
417
458
  _: 3
418
459
  }, 8, ["to"]));
419
460
  }
420
- }), uo = /* @__PURE__ */ h({
461
+ }), Ba = /* @__PURE__ */ m({
421
462
  __name: "DialogHead",
422
463
  props: {
423
464
  title: {}
424
465
  },
425
466
  setup(s) {
426
467
  const e = s;
427
- return (t, o) => (r(), f(qt, {
468
+ return (t, o) => (r(), u(Xt, {
428
469
  class: "ui-DialogHead",
429
470
  side: "x"
430
471
  }, {
431
472
  default: c(() => [
432
- d(a(Xe), { class: "font-semibold" }, {
473
+ p(a(Xe), { class: "font-semibold" }, {
433
474
  default: c(() => [
434
- U(I(e.title), 1)
475
+ W(A(e.title), 1)
435
476
  ]),
436
477
  _: 1
437
478
  }),
438
- d(q, {
479
+ p(j, {
439
480
  as: a(Ye),
440
481
  type: "button",
441
482
  variant: "ghost",
@@ -445,7 +486,7 @@ const lo = /* @__PURE__ */ h({
445
486
  "aria-label": "Close"
446
487
  }, {
447
488
  default: c(() => [
448
- d(a(k), { icon: "lucide:x" })
489
+ p(a(I), { icon: "lucide:x" })
449
490
  ]),
450
491
  _: 1
451
492
  }, 8, ["as"])
@@ -453,7 +494,7 @@ const lo = /* @__PURE__ */ h({
453
494
  _: 1
454
495
  }));
455
496
  }
456
- }), Xt = { class: "ui-MenuViewport" }, [Yt, ea] = ae("ui_DropdownMenuContent"), po = /* @__PURE__ */ h({
497
+ }), lo = { class: "ui-MenuViewport" }, [no, ro] = oe("ui_DropdownMenuContent"), xa = /* @__PURE__ */ m({
457
498
  inheritAttrs: !1,
458
499
  __name: "DropdownMenuContent",
459
500
  props: {
@@ -484,19 +525,19 @@ const lo = /* @__PURE__ */ h({
484
525
  },
485
526
  emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
486
527
  setup(s, { emit: e }) {
487
- const t = s, l = N(t, e, [
528
+ const t = s, l = q(t, e, [
488
529
  "to",
489
530
  "size",
490
531
  "variant",
491
532
  "color",
492
533
  "highContrast"
493
- ]), { forwardRef: n } = F(), { size: i, variant: u, color: _, highContrast: m } = ee(t);
494
- return ea({ size: i, variant: u, color: _, highContrast: m }), (p, v) => (r(), f(a(et), {
534
+ ]), { forwardRef: n } = M(), { size: i, variant: d, color: y, highContrast: v } = ee(t);
535
+ return ro({ size: i, variant: d, color: y, highContrast: v }), (h, f) => (r(), u(a(et), {
495
536
  to: t.to
496
537
  }, {
497
538
  default: c(() => [
498
- d(a(tt), C({
499
- ...p.$attrs,
539
+ p(a(tt), g({
540
+ ...h.$attrs,
500
541
  ...a(l)
501
542
  }, {
502
543
  ref: a(n),
@@ -505,10 +546,10 @@ const lo = /* @__PURE__ */ h({
505
546
  "data-size": t.size
506
547
  }), {
507
548
  default: c(() => [
508
- d(ze, { type: "auto" }, {
549
+ p(ke, { type: "auto" }, {
509
550
  default: c(() => [
510
- B("div", Xt, [
511
- g(p.$slots, "default")
551
+ b("div", lo, [
552
+ _(h.$slots, "default")
512
553
  ])
513
554
  ]),
514
555
  _: 3
@@ -520,7 +561,7 @@ const lo = /* @__PURE__ */ h({
520
561
  _: 3
521
562
  }, 8, ["to"]));
522
563
  }
523
- }), ta = ["textContent"], fo = /* @__PURE__ */ h({
564
+ }), io = ["textContent"], wa = /* @__PURE__ */ m({
524
565
  __name: "DropdownMenuItem",
525
566
  props: {
526
567
  color: {},
@@ -532,31 +573,31 @@ const lo = /* @__PURE__ */ h({
532
573
  },
533
574
  emits: ["select"],
534
575
  setup(s, { emit: e }) {
535
- const t = s, l = N(t, e, ["color", "shortcut"]);
536
- F();
537
- const n = Yt();
538
- return (i, u) => {
539
- var _;
540
- return r(), f(a(at), C({
576
+ const t = s, l = q(t, e, ["color", "shortcut"]);
577
+ M();
578
+ const n = no();
579
+ return (i, d) => {
580
+ var y;
581
+ return r(), u(a(ot), g({
541
582
  class: "ui-MenuItem",
542
583
  "data-accent-color": t.color,
543
584
  "data-size": a(n).size.value,
544
585
  "data-variant": a(n).variant.value,
545
- "data-high-contrast": ((_ = a(n).highContrast) == null ? void 0 : _.value) || void 0
586
+ "data-high-contrast": ((y = a(n).highContrast) == null ? void 0 : y.value) || void 0
546
587
  }, a(l)), {
547
588
  default: c(() => [
548
- g(i.$slots, "default"),
589
+ _(i.$slots, "default"),
549
590
  t.shortcut ? (r(), $("div", {
550
591
  key: 0,
551
592
  class: "ui-MenuShortcut",
552
- textContent: I(t.shortcut)
553
- }, null, 8, ta)) : z("", !0)
593
+ textContent: A(t.shortcut)
594
+ }, null, 8, io)) : z("", !0)
554
595
  ]),
555
596
  _: 3
556
597
  }, 16, ["data-accent-color", "data-size", "data-variant", "data-high-contrast"]);
557
598
  };
558
599
  }
559
- }), ho = /* @__PURE__ */ h({
600
+ }), Sa = /* @__PURE__ */ m({
560
601
  inheritAttrs: !1,
561
602
  __name: "PopoverContent",
562
603
  props: {
@@ -584,17 +625,17 @@ const lo = /* @__PURE__ */ h({
584
625
  },
585
626
  emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
586
627
  setup(s, { emit: e }) {
587
- const t = s, l = N(t, e, ["to", "size"]);
588
- return (n, i) => (r(), f(a(ot), {
628
+ const t = s, l = q(t, e, ["to", "size"]);
629
+ return (n, i) => (r(), u(a(at), {
589
630
  to: t.to
590
631
  }, {
591
632
  default: c(() => [
592
- d(a(st), C({ ...n.$attrs, ...a(l) }, {
633
+ p(a(st), g({ ...n.$attrs, ...a(l) }, {
593
634
  "data-size": t.size,
594
635
  class: "ui-PopoverContent"
595
636
  }), {
596
637
  default: c(() => [
597
- g(n.$slots, "default")
638
+ _(n.$slots, "default")
598
639
  ]),
599
640
  _: 3
600
641
  }, 16, ["data-size"])
@@ -602,7 +643,7 @@ const lo = /* @__PURE__ */ h({
602
643
  _: 3
603
644
  }, 8, ["to"]));
604
645
  }
605
- }), mo = /* @__PURE__ */ h({
646
+ }), za = /* @__PURE__ */ m({
606
647
  __name: "Switch",
607
648
  props: {
608
649
  color: {},
@@ -622,25 +663,25 @@ const lo = /* @__PURE__ */ h({
622
663
  },
623
664
  emits: ["update:modelValue"],
624
665
  setup(s, { emit: e }) {
625
- const t = e, o = s, [l, n] = Z(o, t, [
666
+ const t = e, o = s, [l, n] = N(o, t, [
626
667
  "color",
627
668
  "size",
628
669
  "variant",
629
670
  "highContrast",
630
671
  "radius"
631
672
  ]);
632
- return (i, u) => (r(), f(a(lt), C(a(l), {
673
+ return (i, d) => (r(), u(a(lt), g(a(l), {
633
674
  class: ["ui-Switch", a(n)],
634
675
  "data-accent-color": o.color,
635
676
  "data-radius": o.radius
636
677
  }), {
637
678
  default: c(() => [
638
- d(a(nt), { class: "ui-SwitchThumb" })
679
+ p(a(nt), { class: "ui-SwitchThumb" })
639
680
  ]),
640
681
  _: 1
641
682
  }, 16, ["class", "data-accent-color", "data-radius"]));
642
683
  }
643
- }), aa = {
684
+ }), co = {
644
685
  key: 0,
645
686
  xmlns: "http://www.w3.org/2000/svg",
646
687
  viewBox: "0 0 24 24",
@@ -649,13 +690,13 @@ const lo = /* @__PURE__ */ h({
649
690
  "stroke-width": "4",
650
691
  "stroke-linecap": "round",
651
692
  "stroke-linejoin": "round"
652
- }, oa = {
693
+ }, uo = {
653
694
  key: 0,
654
695
  d: "M5 12h14"
655
- }, sa = {
696
+ }, po = {
656
697
  key: 1,
657
698
  d: "M20 6 9 17l-5-5"
658
- }, ke = /* @__PURE__ */ h({
699
+ }, Ie = /* @__PURE__ */ m({
659
700
  __name: "Checkbox",
660
701
  props: {
661
702
  color: {},
@@ -674,19 +715,19 @@ const lo = /* @__PURE__ */ h({
674
715
  },
675
716
  emits: ["update:modelValue"],
676
717
  setup(s, { emit: e }) {
677
- const t = e, o = s, [l, n] = Z(o, t, ["color", "size", "variant", "highContrast"]);
678
- return (i, u) => (r(), f(a(rt), C(a(l), {
718
+ const t = e, o = s, [l, n] = N(o, t, ["color", "size", "variant", "highContrast"]);
719
+ return (i, d) => (r(), u(a(rt), g(a(l), {
679
720
  class: ["ui-Checkbox", a(n)],
680
721
  "data-accent-color": o.color
681
722
  }), {
682
723
  default: c(() => [
683
- d(a(it), {
724
+ p(a(it), {
684
725
  class: "ui-CheckboxIndicator",
685
726
  "as-child": ""
686
727
  }, {
687
728
  default: c(() => [
688
- a(l).checked !== !1 ? (r(), $("svg", aa, [
689
- a(l).checked === "indeterminate" ? (r(), $("path", oa)) : (r(), $("path", sa))
729
+ a(l).checked !== !1 ? (r(), $("svg", co, [
730
+ a(l).checked === "indeterminate" ? (r(), $("path", uo)) : (r(), $("path", po))
690
731
  ])) : z("", !0)
691
732
  ]),
692
733
  _: 1
@@ -695,9 +736,9 @@ const lo = /* @__PURE__ */ h({
695
736
  _: 1
696
737
  }, 16, ["class", "data-accent-color"]));
697
738
  }
698
- }), [Ve, la] = ae("ui_CheckboxGroupRoot"), vo = /* @__PURE__ */ h({
739
+ }), [Te, fo] = oe("ui_CheckboxGroupRoot"), ka = /* @__PURE__ */ m({
699
740
  __name: "CheckboxGroupRoot",
700
- props: /* @__PURE__ */ H({
741
+ props: /* @__PURE__ */ Q({
701
742
  disabled: { type: Boolean },
702
743
  name: {},
703
744
  asChild: { type: Boolean },
@@ -710,48 +751,48 @@ const lo = /* @__PURE__ */ h({
710
751
  }),
711
752
  emits: ["update:modelValue"],
712
753
  setup(s) {
713
- const e = s, { disabled: t, name: o } = ee(e), l = P([]), [n, i] = K(s, "modelValue", {
714
- set(p) {
715
- return i.number ? p = p.map((v) => Number(v)) : i.trim && (p = p.map((v) => v.trim())), p;
754
+ const e = s, { disabled: t, name: o } = ee(e), l = P([]), [n, i] = Z(s, "modelValue", {
755
+ set(h) {
756
+ return i.number ? h = h.map((f) => Number(f)) : i.trim && (h = h.map((f) => f.trim())), h;
716
757
  }
717
- }), u = b(() => n.value || []), _ = b(() => {
718
- var p, v;
719
- return l.value.length ? ((p = n.value) == null ? void 0 : p.length) === l.value.length ? !0 : (v = n.value) != null && v.length ? "indeterminate" : !1 : !1;
720
- }), m = (p) => {
721
- var y, D;
722
- const v = (y = n.value) == null ? void 0 : y.indexOf(p);
723
- v !== -1 && v !== void 0 && ((D = n.value) == null || D.splice(v, 1));
758
+ }), d = C(() => n.value || []), y = C(() => {
759
+ var h, f;
760
+ 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
+ }), v = (h) => {
762
+ var B, V;
763
+ const f = (B = n.value) == null ? void 0 : B.indexOf(h);
764
+ f !== -1 && f !== void 0 && ((V = n.value) == null || V.splice(f, 1));
724
765
  };
725
- return la({
726
- selected: u,
727
- checked: _,
728
- addModelValue: (p) => {
729
- var v, y;
730
- ((v = n.value) == null ? void 0 : v.indexOf(p)) === -1 && ((y = n.value) == null || y.push(p));
766
+ return fo({
767
+ selected: d,
768
+ checked: y,
769
+ addModelValue: (h) => {
770
+ var f, B;
771
+ ((f = n.value) == null ? void 0 : f.indexOf(h)) === -1 && ((B = n.value) == null || B.push(h));
731
772
  },
732
- removeModelValue: m,
733
- toggleModelValue: (p) => {
734
- p ? n.value = [...l.value] : n.value = [];
773
+ removeModelValue: v,
774
+ toggleModelValue: (h) => {
775
+ h ? n.value = [...l.value] : n.value = [];
735
776
  },
736
- initAllValue: (p) => {
737
- l.value.push(p);
777
+ initAllValue: (h) => {
778
+ l.value.push(h);
738
779
  },
739
- removeAllValue: (p) => {
740
- l.value.splice(l.value.indexOf(p), 1), m(p);
780
+ removeAllValue: (h) => {
781
+ l.value.splice(l.value.indexOf(h), 1), v(h);
741
782
  },
742
783
  disabled: t,
743
784
  name: o == null ? void 0 : o.value
744
- }), (p, v) => (r(), f(a(J), {
785
+ }), (h, f) => (r(), u(a(U), {
745
786
  as: e.as,
746
787
  "as-child": e.asChild
747
788
  }, {
748
789
  default: c(() => [
749
- g(p.$slots, "default")
790
+ _(h.$slots, "default")
750
791
  ]),
751
792
  _: 3
752
793
  }, 8, ["as", "as-child"]));
753
794
  }
754
- }), go = /* @__PURE__ */ h({
795
+ }), Ia = /* @__PURE__ */ m({
755
796
  __name: "CheckboxGroupItem",
756
797
  props: {
757
798
  value: {},
@@ -770,25 +811,25 @@ const lo = /* @__PURE__ */ h({
770
811
  },
771
812
  setup(s) {
772
813
  const e = s, t = T(e);
773
- F();
774
- const o = Ve(), l = b(() => {
775
- var u;
776
- return ((u = o.disabled) == null ? void 0 : u.value) || e.disabled;
777
- }), n = b(() => o.selected.value.indexOf(e.value) !== -1), i = (u) => {
778
- u ? o.addModelValue(e.value) : o.removeModelValue(e.value);
814
+ M();
815
+ const o = Te(), l = C(() => {
816
+ var d;
817
+ return ((d = o.disabled) == null ? void 0 : d.value) || e.disabled;
818
+ }), n = C(() => o.selected.value.indexOf(e.value) !== -1), i = (d) => {
819
+ d ? o.addModelValue(e.value) : o.removeModelValue(e.value);
779
820
  };
780
821
  return ue(() => {
781
822
  o.initAllValue(e.value);
782
- }), ye(() => {
823
+ }), Ce(() => {
783
824
  o.removeAllValue(e.value);
784
- }), (u, _) => (r(), f(ke, C({
825
+ }), (d, y) => (r(), u(Ie, g({
785
826
  ...a(t),
786
827
  name: e.name || a(o).name,
787
828
  checked: n.value,
788
829
  disabled: l.value
789
830
  }, { "onUpdate:checked": i }), null, 16));
790
831
  }
791
- }), _o = /* @__PURE__ */ h({
832
+ }), Ta = /* @__PURE__ */ m({
792
833
  __name: "CheckboxGroupControl",
793
834
  props: {
794
835
  color: {},
@@ -807,12 +848,12 @@ const lo = /* @__PURE__ */ h({
807
848
  },
808
849
  setup(s) {
809
850
  const e = s, t = T(e);
810
- F();
811
- const o = Ve(), l = b(() => {
851
+ M();
852
+ const o = Te(), l = C(() => {
812
853
  var i;
813
854
  return ((i = o.disabled) == null ? void 0 : i.value) || e.disabled;
814
- }), n = b(() => o.checked.value);
815
- return (i, u) => (r(), f(ke, C({
855
+ }), n = C(() => o.checked.value);
856
+ return (i, d) => (r(), u(Ie, g({
816
857
  ...a(t),
817
858
  name: e.name || a(o).name,
818
859
  checked: n.value,
@@ -821,7 +862,7 @@ const lo = /* @__PURE__ */ h({
821
862
  "onUpdate:checked": a(o).toggleModelValue
822
863
  }), null, 16, ["onUpdate:checked"]));
823
864
  }
824
- }), yo = /* @__PURE__ */ h({
865
+ }), Va = /* @__PURE__ */ m({
825
866
  __name: "Toggle",
826
867
  props: {
827
868
  color: {},
@@ -839,25 +880,25 @@ const lo = /* @__PURE__ */ h({
839
880
  },
840
881
  emits: ["update:modelValue"],
841
882
  setup(s, { emit: e }) {
842
- const t = e, o = s, [l, n] = Z(o, t, [
883
+ const t = e, o = s, [l, n] = N(o, t, [
843
884
  "color",
844
885
  "size",
845
886
  "variant",
846
887
  "highContrast",
847
888
  "radius"
848
889
  ]);
849
- return (i, u) => (r(), f(a(ct), C(a(l), {
890
+ return (i, d) => (r(), u(a(ct), g(a(l), {
850
891
  class: ["ui-Toggle", a(n)],
851
892
  "data-accent-color": o.color,
852
893
  "data-radius": o.radius
853
894
  }), {
854
895
  default: c(() => [
855
- g(i.$slots, "default")
896
+ _(i.$slots, "default")
856
897
  ]),
857
898
  _: 3
858
899
  }, 16, ["class", "data-accent-color", "data-radius"]));
859
900
  }
860
- }), Co = /* @__PURE__ */ h({
901
+ }), Aa = /* @__PURE__ */ m({
861
902
  __name: "ToggleGroupRoot",
862
903
  props: {
863
904
  color: {},
@@ -880,25 +921,25 @@ const lo = /* @__PURE__ */ h({
880
921
  },
881
922
  emits: ["update:modelValue"],
882
923
  setup(s, { emit: e }) {
883
- const t = e, o = s, [l, n] = Z(o, t, [
924
+ const t = e, o = s, [l, n] = N(o, t, [
884
925
  "color",
885
926
  "size",
886
927
  "variant",
887
928
  "highContrast",
888
929
  "radius"
889
930
  ]);
890
- return (i, u) => (r(), f(a(ut), C(a(l), {
931
+ return (i, d) => (r(), u(a(ut), g(a(l), {
891
932
  class: ["ui-ToggleGroupRoot", a(n)],
892
933
  "data-accent-color": o.color,
893
934
  "data-radius": o.radius
894
935
  }), {
895
936
  default: c(() => [
896
- g(i.$slots, "default")
937
+ _(i.$slots, "default")
897
938
  ]),
898
939
  _: 3
899
940
  }, 16, ["class", "data-accent-color", "data-radius"]));
900
941
  }
901
- }), bo = /* @__PURE__ */ h({
942
+ }), Ra = /* @__PURE__ */ m({
902
943
  __name: "ToggleGroupItem",
903
944
  props: {
904
945
  value: {},
@@ -908,25 +949,25 @@ const lo = /* @__PURE__ */ h({
908
949
  },
909
950
  setup(s) {
910
951
  const t = T(s);
911
- return (o, l) => (r(), f(a(dt), C(a(t), { class: "ui-ToggleGroupItem" }), {
952
+ return (o, l) => (r(), u(a(dt), g(a(t), { class: "ui-ToggleGroupItem" }), {
912
953
  default: c(() => [
913
- g(o.$slots, "default")
954
+ _(o.$slots, "default")
914
955
  ]),
915
956
  _: 3
916
957
  }, 16));
917
958
  }
918
- }), na = ["data-radius", "data-accent-color"], ra = ["id", "type"], ia = {
959
+ }), mo = ["data-radius", "data-accent-color"], ho = ["id", "type"], vo = {
919
960
  key: 0,
920
961
  class: "ui-TextFieldSlot",
921
962
  "data-side": "left"
922
- }, ca = {
963
+ }, _o = {
923
964
  key: 1,
924
965
  class: "ui-TextFieldSlot",
925
966
  "data-side": "right"
926
- }, oe = /* @__PURE__ */ h({
967
+ }, ae = /* @__PURE__ */ m({
927
968
  inheritAttrs: !1,
928
969
  __name: "TextField",
929
- props: /* @__PURE__ */ H({
970
+ props: /* @__PURE__ */ Q({
930
971
  id: {},
931
972
  class: {},
932
973
  size: { default: "2" },
@@ -942,50 +983,50 @@ const lo = /* @__PURE__ */ h({
942
983
  }),
943
984
  emits: ["update:modelValue"],
944
985
  setup(s) {
945
- const e = s, t = P(), o = (u) => {
946
- const _ = u.target;
947
- if (_.closest("input, button, a")) return;
948
- const m = t.value;
949
- if (!m) return;
950
- const v = _.closest("[data-side=right]") ? m.value.length : 0;
986
+ const e = s, t = P(), o = (d) => {
987
+ const y = d.target;
988
+ if (y.closest("input, button, a")) return;
989
+ const v = t.value;
990
+ if (!v) return;
991
+ const f = y.closest("[data-side=right]") ? v.value.length : 0;
951
992
  requestAnimationFrame(() => {
952
- m.setSelectionRange(v, v), m.focus();
993
+ v.setSelectionRange(f, f), v.focus();
953
994
  });
954
- }, [l, n] = K(s, "modelValue", {
955
- set(u) {
956
- return n.number ? Number(u) : n.trim ? u.trim() : u;
995
+ }, [l, n] = Z(s, "modelValue", {
996
+ set(d) {
997
+ return n.number ? Number(d) : n.trim ? d.trim() : d;
957
998
  }
958
- }), i = b(() => {
959
- const u = M(e, ["size", "variant"]);
960
- return e.class && u.push(e.class), u;
999
+ }), i = C(() => {
1000
+ const d = R(e, ["size", "variant"]);
1001
+ return e.class && d.push(e.class), d;
961
1002
  });
962
- return (u, _) => (r(), $("div", {
963
- class: V(["ui-TextField", i.value]),
1003
+ return (d, y) => (r(), $("div", {
1004
+ class: k(["ui-TextField", i.value]),
964
1005
  "data-radius": e.radius,
965
1006
  "data-accent-color": e.color,
966
1007
  onPointerdown: o
967
1008
  }, [
968
- te(B("input", C({
1009
+ te(b("input", g({
969
1010
  id: e.id,
970
1011
  ref_key: "inputRef",
971
1012
  ref: t,
972
- "onUpdate:modelValue": _[0] || (_[0] = (m) => Ce(l) ? l.value = m : null),
1013
+ "onUpdate:modelValue": y[0] || (y[0] = (v) => be(l) ? l.value = v : null),
973
1014
  type: e.type
974
- }, u.$attrs, { class: "ui-TextFieldInput" }), null, 16, ra), [
975
- [Ae, a(l)]
1015
+ }, d.$attrs, { class: "ui-TextFieldInput" }), null, 16, ho), [
1016
+ [Oe, a(l)]
976
1017
  ]),
977
- u.$slots.left ? (r(), $("div", ia, [
978
- g(u.$slots, "left")
1018
+ d.$slots.left ? (r(), $("div", vo, [
1019
+ _(d.$slots, "left")
979
1020
  ])) : z("", !0),
980
- u.$slots.right ? (r(), $("div", ca, [
981
- g(u.$slots, "right")
1021
+ d.$slots.right ? (r(), $("div", _o, [
1022
+ _(d.$slots, "right")
982
1023
  ])) : z("", !0)
983
- ], 42, na));
1024
+ ], 42, mo));
984
1025
  }
985
- }), ua = ["data-accent-color"], Bo = /* @__PURE__ */ h({
1026
+ }), go = ["data-accent-color"], Pa = /* @__PURE__ */ m({
986
1027
  inheritAttrs: !1,
987
1028
  __name: "TextArea",
988
- props: /* @__PURE__ */ H({
1029
+ props: /* @__PURE__ */ Q({
989
1030
  class: {},
990
1031
  size: { default: "2" },
991
1032
  variant: { default: "surface" },
@@ -1000,24 +1041,24 @@ const lo = /* @__PURE__ */ h({
1000
1041
  }),
1001
1042
  emits: ["update:modelValue"],
1002
1043
  setup(s) {
1003
- const e = s, t = K(s, "modelValue"), o = b(() => {
1004
- const l = M(e, ["size", "variant", "resize"]);
1044
+ const e = s, t = Z(s, "modelValue"), o = C(() => {
1045
+ const l = R(e, ["size", "variant", "resize"]);
1005
1046
  return e.class && l.push(e.class), l;
1006
1047
  });
1007
1048
  return (l, n) => (r(), $("div", {
1008
- class: V(["ui-TextArea", o.value]),
1049
+ class: k(["ui-TextArea", o.value]),
1009
1050
  "data-accent-color": e.color
1010
1051
  }, [
1011
- te(B("textarea", C({
1052
+ te(b("textarea", g({
1012
1053
  "onUpdate:modelValue": n[0] || (n[0] = (i) => t.value = i)
1013
1054
  }, l.$attrs, { class: "ui-TextAreaInput" }), null, 16), [
1014
- [be, t.value]
1055
+ [$e, t.value]
1015
1056
  ])
1016
- ], 10, ua));
1057
+ ], 10, go));
1017
1058
  }
1018
- }), da = ["data-radius"], pa = ["id"], $o = /* @__PURE__ */ h({
1059
+ }), yo = ["data-radius"], Co = ["id"], Da = /* @__PURE__ */ m({
1019
1060
  __name: "ColorField",
1020
- props: /* @__PURE__ */ H({
1061
+ props: /* @__PURE__ */ Q({
1021
1062
  id: {},
1022
1063
  variant: { default: "solid" },
1023
1064
  size: { default: "2" },
@@ -1030,22 +1071,23 @@ const lo = /* @__PURE__ */ h({
1030
1071
  }),
1031
1072
  emits: ["update:modelValue"],
1032
1073
  setup(s) {
1033
- const e = s, t = K(s, "modelValue"), o = b(() => M(e, ["size", "variant"]));
1074
+ const e = s, t = Z(s, "modelValue"), o = C(() => R(e, ["size", "variant"]));
1034
1075
  return (l, n) => (r(), $("div", {
1035
- class: V(["ui-ColorField", o.value]),
1036
- "data-radius": e.radius
1076
+ class: k(["ui-ColorField", o.value]),
1077
+ "data-radius": e.radius,
1078
+ style: Be({ "--color-field-border-color": t.value })
1037
1079
  }, [
1038
- te(B("input", {
1080
+ te(b("input", {
1039
1081
  id: e.id,
1040
1082
  "onUpdate:modelValue": n[0] || (n[0] = (i) => t.value = i),
1041
1083
  class: "ui-ColorFieldInput",
1042
1084
  type: "color"
1043
- }, null, 8, pa), [
1044
- [be, t.value]
1085
+ }, null, 8, Co), [
1086
+ [$e, t.value]
1045
1087
  ])
1046
- ], 10, da));
1088
+ ], 14, yo));
1047
1089
  }
1048
- }), [Ie, fa] = ae("ui_SelectRoot"), xo = /* @__PURE__ */ h({
1090
+ }), [Ve, bo] = oe("ui_SelectRoot"), Oa = /* @__PURE__ */ m({
1049
1091
  __name: "SelectRoot",
1050
1092
  props: {
1051
1093
  size: { default: "2" },
@@ -1065,19 +1107,19 @@ const lo = /* @__PURE__ */ h({
1065
1107
  },
1066
1108
  emits: ["update:modelValue", "update:open"],
1067
1109
  setup(s, { emit: e }) {
1068
- const t = s, o = e, { size: l, color: n, highContrast: i } = ee(t), u = N(t, o, ["size", "color", "highContrast"]);
1069
- return fa({
1110
+ const t = s, o = e, { size: l, color: n, highContrast: i } = ee(t), d = q(t, o, ["size", "color", "highContrast"]);
1111
+ return bo({
1070
1112
  size: l,
1071
1113
  color: n,
1072
1114
  highContrast: i
1073
- }), (_, m) => (r(), f(a(pt), Oe(Me(a(u))), {
1115
+ }), (y, v) => (r(), u(a(pt), Me(Fe(a(d))), {
1074
1116
  default: c(() => [
1075
- g(_.$slots, "default")
1117
+ _(y.$slots, "default")
1076
1118
  ]),
1077
1119
  _: 3
1078
1120
  }, 16));
1079
1121
  }
1080
- }), wo = /* @__PURE__ */ h({
1122
+ }), Ma = /* @__PURE__ */ m({
1081
1123
  inheritAttrs: !1,
1082
1124
  __name: "SelectContent",
1083
1125
  props: {
@@ -1105,15 +1147,15 @@ const lo = /* @__PURE__ */ h({
1105
1147
  as: {}
1106
1148
  },
1107
1149
  setup(s) {
1108
- const e = s, t = T(e), { forwardRef: o } = F(), l = Ie(), n = b(() => {
1150
+ const e = s, t = T(e), { forwardRef: o } = M(), l = Ve(), n = C(() => {
1109
1151
  const i = ["r-size-" + l.size.value, "r-variant-" + e.variant];
1110
1152
  return l.highContrast.value && i.push("r-high-contrast"), e.position === "popper" && i.push("ui-PopperContent"), i;
1111
1153
  });
1112
- return (i, u) => (r(), f(a(ft), {
1154
+ return (i, d) => (r(), u(a(ft), {
1113
1155
  to: e.to
1114
1156
  }, {
1115
1157
  default: c(() => [
1116
- d(a(ht), C({ ref: a(o) }, {
1158
+ p(a(mt), g({ ref: a(o) }, {
1117
1159
  ...i.$attrs,
1118
1160
  ...a(t),
1119
1161
  to: void 0,
@@ -1123,30 +1165,30 @@ const lo = /* @__PURE__ */ h({
1123
1165
  "data-accent-color": a(l).color.value
1124
1166
  }), {
1125
1167
  default: c(() => [
1126
- d(a(de), {
1168
+ p(a(de), {
1127
1169
  type: "auto",
1128
1170
  class: "ui-ScrollArea"
1129
1171
  }, {
1130
1172
  default: c(() => [
1131
- d(a(mt), {
1173
+ p(a(ht), {
1132
1174
  class: "ui-SelectViewport",
1133
1175
  "as-child": ""
1134
1176
  }, {
1135
1177
  default: c(() => [
1136
- d(a(pe), { class: "ui-ScrollAreaViewport" }, {
1178
+ p(a(pe), { class: "ui-ScrollAreaViewport" }, {
1137
1179
  default: c(() => [
1138
- g(i.$slots, "default")
1180
+ _(i.$slots, "default")
1139
1181
  ]),
1140
1182
  _: 3
1141
1183
  }),
1142
- u[0] || (u[0] = B("div", { class: "ui-ScrollAreaViewportFocusRing" }, null, -1)),
1143
- d(a(ne), {
1184
+ d[0] || (d[0] = b("div", { class: "ui-ScrollAreaViewportFocusRing" }, null, -1)),
1185
+ p(a(ne), {
1144
1186
  class: "ui-ScrollAreaScrollbar",
1145
1187
  "data-size": 1,
1146
1188
  orientation: "vertical"
1147
1189
  }, {
1148
1190
  default: c(() => [
1149
- d(a(re), { class: "ui-ScrollAreaThumb" })
1191
+ p(a(re), { class: "ui-ScrollAreaThumb" })
1150
1192
  ]),
1151
1193
  _: 1
1152
1194
  })
@@ -1163,7 +1205,7 @@ const lo = /* @__PURE__ */ h({
1163
1205
  _: 3
1164
1206
  }, 8, ["to"]));
1165
1207
  }
1166
- }), ha = { class: "ui-SelectTriggerInner" }, So = /* @__PURE__ */ h({
1208
+ }), $o = { class: "ui-SelectTriggerInner" }, Fa = /* @__PURE__ */ m({
1167
1209
  __name: "SelectTrigger",
1168
1210
  props: {
1169
1211
  variant: { default: "surface" },
@@ -1175,22 +1217,22 @@ const lo = /* @__PURE__ */ h({
1175
1217
  as: {}
1176
1218
  },
1177
1219
  setup(s) {
1178
- const e = s, t = Ie(), o = b(() => [`r-variant-${e.variant}`, `r-size-${t.size.value}`]);
1179
- return (l, n) => (r(), f(a(vt), {
1180
- class: V(["ui-SelectTrigger", o.value]),
1220
+ const e = s, t = Ve(), o = C(() => [`r-variant-${e.variant}`, `r-size-${t.size.value}`]);
1221
+ return (l, n) => (r(), u(a(vt), {
1222
+ class: k(["ui-SelectTrigger", o.value]),
1181
1223
  disabled: e.disabled,
1182
- "data-accent-color": a(t).color,
1224
+ "data-accent-color": a(t).color.value,
1183
1225
  "data-radius": e.radius
1184
1226
  }, {
1185
1227
  default: c(() => [
1186
- B("span", ha, [
1187
- d(a(gt), {
1228
+ b("span", $o, [
1229
+ p(a(_t), {
1188
1230
  placeholder: e.placeholder
1189
1231
  }, null, 8, ["placeholder"])
1190
1232
  ]),
1191
- d(a(_t), { "as-child": "" }, {
1233
+ p(a(gt), { "as-child": "" }, {
1192
1234
  default: c(() => [
1193
- d(a(k), {
1235
+ p(a(I), {
1194
1236
  class: "ui-SelectIcon",
1195
1237
  icon: "radix-icons:chevron-down"
1196
1238
  })
@@ -1201,7 +1243,7 @@ const lo = /* @__PURE__ */ h({
1201
1243
  _: 1
1202
1244
  }, 8, ["class", "disabled", "data-accent-color", "data-radius"]));
1203
1245
  }
1204
- }), zo = /* @__PURE__ */ h({
1246
+ }), La = /* @__PURE__ */ m({
1205
1247
  __name: "SelectItem",
1206
1248
  props: {
1207
1249
  value: {},
@@ -1212,17 +1254,17 @@ const lo = /* @__PURE__ */ h({
1212
1254
  },
1213
1255
  setup(s) {
1214
1256
  const t = T(s);
1215
- return F(), (o, l) => (r(), f(a(yt), C({ class: "ui-SelectItem" }, a(t)), {
1257
+ return M(), (o, l) => (r(), u(a(yt), g({ class: "ui-SelectItem" }, a(t)), {
1216
1258
  default: c(() => [
1217
- d(a(Ct), { class: "ui-SelectItemIndicator" }, {
1259
+ p(a(Ct), { class: "ui-SelectItemIndicator" }, {
1218
1260
  default: c(() => [
1219
- d(a(k), { icon: "radix-icons:check" })
1261
+ p(a(I), { icon: "radix-icons:check" })
1220
1262
  ]),
1221
1263
  _: 1
1222
1264
  }),
1223
- d(a(bt), null, {
1265
+ p(a(bt), null, {
1224
1266
  default: c(() => [
1225
- g(o.$slots, "default")
1267
+ _(o.$slots, "default")
1226
1268
  ]),
1227
1269
  _: 3
1228
1270
  })
@@ -1230,7 +1272,7 @@ const lo = /* @__PURE__ */ h({
1230
1272
  _: 3
1231
1273
  }, 16));
1232
1274
  }
1233
- }), ko = /* @__PURE__ */ h({
1275
+ }), Ga = /* @__PURE__ */ m({
1234
1276
  __name: "SelectLabel",
1235
1277
  props: {
1236
1278
  for: {},
@@ -1239,26 +1281,26 @@ const lo = /* @__PURE__ */ h({
1239
1281
  },
1240
1282
  setup(s) {
1241
1283
  const t = T(s);
1242
- return F(), (o, l) => (r(), f(a(Bt), C({ class: "ui-SelectLabel" }, a(t)), {
1284
+ return M(), (o, l) => (r(), u(a($t), g({ class: "ui-SelectLabel" }, a(t)), {
1243
1285
  default: c(() => [
1244
- g(o.$slots, "default")
1286
+ _(o.$slots, "default")
1245
1287
  ]),
1246
1288
  _: 3
1247
1289
  }, 16));
1248
1290
  }
1249
- }), ma = (s, e) => {
1291
+ }), Bo = (s, e) => {
1250
1292
  const t = s.__vccOpts || s;
1251
1293
  for (const [o, l] of e)
1252
1294
  t[o] = l;
1253
1295
  return t;
1254
- }, va = {}, ga = {
1296
+ }, xo = {}, wo = {
1255
1297
  class: "ui-SelectSeparator",
1256
1298
  "aria-hidden": "true"
1257
1299
  };
1258
- function _a(s, e) {
1259
- return r(), $("div", ga);
1300
+ function So(s, e) {
1301
+ return r(), $("div", wo);
1260
1302
  }
1261
- const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxRoot"), Io = /* @__PURE__ */ h({
1303
+ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, ko] = oe("ui_ComboboxRoot"), Ea = /* @__PURE__ */ m({
1262
1304
  __name: "ComboboxRoot",
1263
1305
  props: {
1264
1306
  size: { default: "2" },
@@ -1271,7 +1313,7 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
1271
1313
  ignoreFilter: { type: Boolean },
1272
1314
  modelValue: {},
1273
1315
  defaultValue: {},
1274
- multiple: { type: Boolean },
1316
+ multiple: { type: Boolean, default: !1 },
1275
1317
  dir: {},
1276
1318
  disabled: { type: Boolean },
1277
1319
  highlightOnHover: { type: Boolean },
@@ -1283,27 +1325,27 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
1283
1325
  },
1284
1326
  emits: ["update:modelValue", "highlight", "update:open"],
1285
1327
  setup(s, { emit: e }) {
1286
- const t = s, o = e, { size: l, color: n, highContrast: i } = ee(t), [u, _] = Z(t, o, ["size", "color", "highContrast"]);
1287
- return Ca({
1328
+ const t = s, o = e, { size: l, color: n, highContrast: i } = ee(t), [d, y] = N(t, o, ["size", "color", "highContrast"]);
1329
+ return ko({
1288
1330
  size: l,
1289
1331
  color: n,
1290
1332
  highContrast: i
1291
- }), (m, p) => (r(), f(a($t), C({
1292
- class: ["ui-ComboboxRoot", a(_)]
1293
- }, a(u)), {
1333
+ }), (v, h) => (r(), u(a(Bt), g({
1334
+ class: ["ui-ComboboxRoot", a(y)]
1335
+ }, a(d)), {
1294
1336
  default: c(() => [
1295
- g(m.$slots, "default")
1337
+ _(v.$slots, "default")
1296
1338
  ]),
1297
1339
  _: 3
1298
1340
  }, 16, ["class"]));
1299
1341
  }
1300
- }), ba = {
1342
+ }), Io = {
1301
1343
  key: 0,
1302
1344
  class: "ui-ComboboxValues"
1303
- }, Ba = ["aria-current", "value"], $a = ["onClick"], To = /* @__PURE__ */ h({
1345
+ }, To = ["aria-current", "value"], Vo = ["onClick"], Wa = /* @__PURE__ */ m({
1304
1346
  inheritAttrs: !1,
1305
1347
  __name: "ComboboxInput",
1306
- props: /* @__PURE__ */ H({
1348
+ props: {
1307
1349
  variant: { default: "surface" },
1308
1350
  radius: {},
1309
1351
  placeholder: {},
@@ -1313,68 +1355,63 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
1313
1355
  disabled: { type: Boolean },
1314
1356
  asChild: { type: Boolean },
1315
1357
  as: {}
1316
- }, {
1317
- modelValue: { default: "" },
1318
- modelModifiers: {}
1319
- }),
1320
- emits: /* @__PURE__ */ H(["update:modelValue"], ["update:modelValue"]),
1358
+ },
1359
+ emits: ["update:modelValue"],
1321
1360
  setup(s, { emit: e }) {
1322
- const t = xt(), n = $e(s, e), i = K(s, "modelValue"), u = P(-1), _ = b(() => t.modelValue.value), m = (y) => typeof y == "object" ? JSON.stringify(y) : y.toString(), p = (y) => {
1323
- u.value = y, t.modelValue.value.splice(y, 1), u.value = -1;
1324
- }, v = (y) => {
1325
- !i.value && (y.key === "Delete" || y.key === "Backspace") && (u.value !== -1 ? p(u.value) : (u.value = _.value.length - 1, setTimeout(() => {
1326
- u.value = -1;
1327
- }, 500)));
1361
+ const t = xt(), n = we(s, e), i = P(-1), d = C(() => t.modelValue.value), y = (f) => typeof f == "object" ? JSON.stringify(f) : f.toString(), v = (f) => {
1362
+ i.value = f, t.modelValue.value.splice(f, 1), i.value = -1;
1363
+ }, h = (f) => {
1364
+ !f.target.value && (f.key === "Delete" || f.key === "Backspace") && (i.value !== -1 ? v(i.value) : (i.value = d.value.length - 1, setTimeout(() => {
1365
+ i.value = -1;
1366
+ }, 800)));
1328
1367
  };
1329
- return Fe(_, () => {
1330
- i.value = "", t.filterState.search = "";
1331
- }, { deep: !0 }), (y, D) => (r(), f(a(wt), {
1332
- class: V(["ui-ComboboxField", `r-variant-${y.variant}`]),
1333
- "data-radius": y.radius,
1368
+ return Le(d, () => {
1369
+ t.filterState.search = "";
1370
+ }, { deep: !0 }), (f, B) => (r(), u(a(wt), {
1371
+ class: k(["ui-ComboboxField", `r-variant-${f.variant}`]),
1372
+ "data-radius": f.radius,
1334
1373
  "data-multiple": a(t).multiple.value || void 0
1335
1374
  }, {
1336
1375
  default: c(() => [
1337
- a(t).multiple.value ? (r(), $("div", ba, [
1338
- (r(!0), $(j, null, W(_.value, (R, L) => (r(), $("div", {
1339
- key: m(R),
1376
+ a(t).multiple.value ? (r(), $("div", Io, [
1377
+ (r(!0), $(H, null, E(d.value, (V, F) => (r(), $("div", {
1378
+ key: y(V),
1340
1379
  class: "ui-ComboboxValuesItem",
1341
- "aria-current": L === u.value,
1342
- value: R
1380
+ "aria-current": F === i.value,
1381
+ value: V
1343
1382
  }, [
1344
- g(y.$slots, "item", { value: R }, () => [
1345
- B("span", null, I(m(R)), 1)
1383
+ _(f.$slots, "item", { value: V }, () => [
1384
+ b("span", null, A(y(V)), 1)
1346
1385
  ]),
1347
- B("button", {
1386
+ b("button", {
1348
1387
  type: "button",
1349
1388
  tabindex: "-1",
1350
- onClick: A((E) => p(L), ["prevent"])
1389
+ onClick: D((G) => v(F), ["prevent"])
1351
1390
  }, [
1352
- d(a(k), { icon: "lucide:x" })
1353
- ], 8, $a)
1354
- ], 8, Ba))), 128)),
1355
- d(a(me), C({
1356
- ...y.$attrs,
1391
+ p(a(I), { icon: "lucide:x" })
1392
+ ], 8, Vo)
1393
+ ], 8, To))), 128)),
1394
+ p(a(ve), g({
1395
+ ...f.$attrs,
1357
1396
  ...a(n),
1358
1397
  variant: void 0,
1359
1398
  radius: void 0
1360
1399
  }, {
1361
- modelValue: i.value,
1362
- "onUpdate:modelValue": D[0] || (D[0] = (R) => i.value = R),
1363
1400
  class: "ui-ComboboxInput",
1364
- onKeydown: v
1365
- }), null, 16, ["modelValue"])
1366
- ])) : (r(), f(a(me), C({
1401
+ onKeydown: h
1402
+ }), null, 16)
1403
+ ])) : (r(), u(a(ve), g({
1367
1404
  key: 1,
1368
1405
  class: "ui-ComboboxInput"
1369
1406
  }, {
1370
- ...y.$attrs,
1407
+ ...f.$attrs,
1371
1408
  ...a(n),
1372
1409
  variant: void 0,
1373
1410
  radius: void 0
1374
1411
  }), null, 16)),
1375
- d(a(St), { class: "ui-ComboboxTrigger" }, {
1412
+ p(a(St), { class: "ui-ComboboxTrigger" }, {
1376
1413
  default: c(() => [
1377
- d(a(k), { icon: "radix-icons:chevron-down" })
1414
+ p(a(I), { icon: "radix-icons:chevron-down" })
1378
1415
  ]),
1379
1416
  _: 1
1380
1417
  })
@@ -1382,7 +1419,7 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
1382
1419
  _: 3
1383
1420
  }, 8, ["class", "data-radius", "data-multiple"]));
1384
1421
  }
1385
- }), Ro = /* @__PURE__ */ h({
1422
+ }), ja = /* @__PURE__ */ m({
1386
1423
  inheritAttrs: !1,
1387
1424
  __name: "ComboboxContent",
1388
1425
  props: {
@@ -1412,52 +1449,52 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
1412
1449
  },
1413
1450
  emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside"],
1414
1451
  setup(s, { emit: e }) {
1415
- const { forwardRef: t } = F(), o = s, n = $e(o, e), i = ya(), u = b(() => {
1416
- const _ = ["r-size-" + i.size.value, "r-variant-" + o.variant];
1417
- return i.highContrast.value && _.push("r-high-contrast"), _;
1452
+ const { forwardRef: t } = M(), o = s, n = we(o, e), i = zo(), d = C(() => {
1453
+ const y = ["r-size-" + i.size.value, "r-variant-" + o.variant];
1454
+ return i.highContrast.value && y.push("r-high-contrast"), y;
1418
1455
  });
1419
- return (_, m) => (r(), f(a(zt), {
1456
+ return (y, v) => (r(), u(a(zt), {
1420
1457
  to: o.to
1421
1458
  }, {
1422
1459
  default: c(() => [
1423
- d(a(kt), C({ ref: a(t) }, {
1424
- ..._.$attrs,
1460
+ p(a(kt), g({ ref: a(t) }, {
1461
+ ...y.$attrs,
1425
1462
  ...a(n),
1426
1463
  position: "popper",
1427
1464
  to: void 0,
1428
1465
  variant: void 0
1429
1466
  }, {
1430
- class: ["ui-ComboboxContent", u.value],
1467
+ class: ["ui-ComboboxContent", d.value],
1431
1468
  "data-accent-color": a(i).color.value
1432
1469
  }), {
1433
1470
  default: c(() => [
1434
- d(a(de), {
1471
+ p(a(de), {
1435
1472
  type: "auto",
1436
1473
  class: "ui-ScrollArea"
1437
1474
  }, {
1438
1475
  default: c(() => [
1439
- d(a(Vt), {
1476
+ p(a(It), {
1440
1477
  class: "ui-ComboboxViewport",
1441
1478
  "as-child": ""
1442
1479
  }, {
1443
1480
  default: c(() => [
1444
- d(a(pe), { class: "ui-ScrollAreaViewport" }, {
1481
+ p(a(pe), { class: "ui-ScrollAreaViewport" }, {
1445
1482
  default: c(() => [
1446
- g(_.$slots, "default")
1483
+ _(y.$slots, "default")
1447
1484
  ]),
1448
1485
  _: 3
1449
1486
  })
1450
1487
  ]),
1451
1488
  _: 3
1452
1489
  }),
1453
- m[0] || (m[0] = B("div", { class: "ui-ScrollAreaViewportFocusRing" }, null, -1)),
1454
- d(a(ne), {
1490
+ v[0] || (v[0] = b("div", { class: "ui-ScrollAreaViewportFocusRing" }, null, -1)),
1491
+ p(a(ne), {
1455
1492
  class: "ui-ScrollAreaScrollbar",
1456
1493
  "data-size": 1,
1457
1494
  orientation: "vertical"
1458
1495
  }, {
1459
1496
  default: c(() => [
1460
- d(a(re), { class: "ui-ScrollAreaThumb" })
1497
+ p(a(re), { class: "ui-ScrollAreaThumb" })
1461
1498
  ]),
1462
1499
  _: 1
1463
1500
  })
@@ -1471,7 +1508,7 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
1471
1508
  _: 3
1472
1509
  }, 8, ["to"]));
1473
1510
  }
1474
- }), Po = /* @__PURE__ */ h({
1511
+ }), Ua = /* @__PURE__ */ m({
1475
1512
  __name: "ComboboxItem",
1476
1513
  props: {
1477
1514
  textValue: {},
@@ -1482,20 +1519,20 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
1482
1519
  },
1483
1520
  setup(s) {
1484
1521
  const t = T(s);
1485
- return (o, l) => (r(), f(a(It), C({ class: "ui-ComboboxItem" }, a(t)), {
1522
+ return (o, l) => (r(), u(a(Tt), g({ class: "ui-ComboboxItem" }, a(t)), {
1486
1523
  default: c(() => [
1487
- d(a(Tt), { class: "ui-ComboboxItemIndicator" }, {
1524
+ p(a(Vt), { class: "ui-ComboboxItemIndicator" }, {
1488
1525
  default: c(() => [
1489
- d(a(k), { icon: "radix-icons:check" })
1526
+ p(a(I), { icon: "radix-icons:check" })
1490
1527
  ]),
1491
1528
  _: 1
1492
1529
  }),
1493
- g(o.$slots, "default")
1530
+ _(o.$slots, "default")
1494
1531
  ]),
1495
1532
  _: 3
1496
1533
  }, 16));
1497
1534
  }
1498
- }), Do = /* @__PURE__ */ h({
1535
+ }), qa = /* @__PURE__ */ m({
1499
1536
  __name: "ComboboxLabel",
1500
1537
  props: {
1501
1538
  for: {},
@@ -1504,16 +1541,16 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
1504
1541
  },
1505
1542
  setup(s) {
1506
1543
  const t = T(s);
1507
- return F(), (o, l) => (r(), f(a(Rt), C({ class: "ui-ComboboxLabel" }, a(t)), {
1544
+ return M(), (o, l) => (r(), u(a(At), g({ class: "ui-ComboboxLabel" }, a(t)), {
1508
1545
  default: c(() => [
1509
- g(o.$slots, "default")
1546
+ _(o.$slots, "default")
1510
1547
  ]),
1511
1548
  _: 3
1512
1549
  }, 16));
1513
1550
  }
1514
- }), xa = ["data-accent-color"], Ao = /* @__PURE__ */ h({
1551
+ }), Ao = ["data-accent-color"], Na = /* @__PURE__ */ m({
1515
1552
  __name: "Radio",
1516
- props: /* @__PURE__ */ H({
1553
+ props: /* @__PURE__ */ Q({
1517
1554
  color: {},
1518
1555
  size: { default: "2" },
1519
1556
  variant: { default: "surface" },
@@ -1526,21 +1563,21 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
1526
1563
  }),
1527
1564
  emits: ["update:modelValue"],
1528
1565
  setup(s) {
1529
- const e = s, [t, o] = K(s, "modelValue", {
1566
+ const e = s, [t, o] = Z(s, "modelValue", {
1530
1567
  set(n) {
1531
1568
  return o.number ? Number(n) : o.trim ? n.trim() : n;
1532
1569
  }
1533
- }), l = b(() => M(e, ["size", "variant", "highContrast"]));
1570
+ }), l = C(() => R(e, ["size", "variant", "highContrast"]));
1534
1571
  return (n, i) => te((r(), $("input", {
1535
- "onUpdate:modelValue": i[0] || (i[0] = (u) => Ce(t) ? t.value = u : null),
1536
- class: V(["ui-Radio", l.value]),
1572
+ "onUpdate:modelValue": i[0] || (i[0] = (d) => be(t) ? t.value = d : null),
1573
+ class: k(["ui-Radio", l.value]),
1537
1574
  type: "radio",
1538
1575
  "data-accent-color": e.color
1539
- }, null, 10, xa)), [
1540
- [Le, a(t)]
1576
+ }, null, 10, Ao)), [
1577
+ [Ge, a(t)]
1541
1578
  ]);
1542
1579
  }
1543
- }), [Te, wa] = ae("ui_RadioGroupRoot"), Oo = /* @__PURE__ */ h({
1580
+ }), [Ae, Ro] = oe("ui_RadioGroupRoot"), Ka = /* @__PURE__ */ m({
1544
1581
  __name: "RadioGroupRoot",
1545
1582
  props: {
1546
1583
  color: {},
@@ -1560,15 +1597,15 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
1560
1597
  },
1561
1598
  emits: ["update:modelValue"],
1562
1599
  setup(s, { emit: e }) {
1563
- const t = e, o = s, l = N(o, t, ["color", "size", "variant", "highContrast"]), { size: n, variant: i, color: u, highContrast: _ } = ee(o);
1564
- return wa({ size: n, variant: i, color: u, highContrast: _ }), (m, p) => (r(), f(a(xe), C({ class: "ui-RadioGroupRoot" }, a(l)), {
1600
+ const t = e, o = s, l = q(o, t, ["color", "size", "variant", "highContrast"]), { size: n, variant: i, color: d, highContrast: y } = ee(o);
1601
+ return Ro({ size: n, variant: i, color: d, highContrast: y }), (v, h) => (r(), u(a(Se), g({ class: "ui-RadioGroupRoot" }, a(l)), {
1565
1602
  default: c(() => [
1566
- g(m.$slots, "default")
1603
+ _(v.$slots, "default")
1567
1604
  ]),
1568
1605
  _: 3
1569
1606
  }, 16));
1570
1607
  }
1571
- }), Sa = { class: "ui-RadioGroupItem" }, Mo = /* @__PURE__ */ h({
1608
+ }), Po = { class: "ui-RadioGroupItem" }, Qa = /* @__PURE__ */ m({
1572
1609
  __name: "RadioGroupItem",
1573
1610
  props: {
1574
1611
  id: {},
@@ -1580,7 +1617,7 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
1580
1617
  required: { type: Boolean }
1581
1618
  },
1582
1619
  setup(s) {
1583
- const t = T(s), o = Te(), l = b(() => {
1620
+ const t = T(s), o = Ae(), l = C(() => {
1584
1621
  var i;
1585
1622
  const n = [
1586
1623
  `r-size-${o.size.value}`,
@@ -1589,17 +1626,17 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
1589
1626
  return (i = o.highContrast) != null && i.value && n.push("r-high-contrast"), n;
1590
1627
  });
1591
1628
  return (n, i) => {
1592
- var u;
1593
- return r(), $("label", Sa, [
1594
- d(a(we), C({
1629
+ var d;
1630
+ return r(), $("label", Po, [
1631
+ p(a(ze), g({
1595
1632
  class: ["ui-Radio", l.value],
1596
- "data-accent-color": (u = a(o).color) == null ? void 0 : u.value
1633
+ "data-accent-color": (d = a(o).color) == null ? void 0 : d.value
1597
1634
  }, a(t)), null, 16, ["class", "data-accent-color"]),
1598
- g(n.$slots, "default")
1635
+ _(n.$slots, "default")
1599
1636
  ]);
1600
1637
  };
1601
1638
  }
1602
- }), Fo = /* @__PURE__ */ h({
1639
+ }), Za = /* @__PURE__ */ m({
1603
1640
  __name: "RadioCardsItem",
1604
1641
  props: {
1605
1642
  id: {},
@@ -1612,23 +1649,23 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
1612
1649
  },
1613
1650
  setup(s) {
1614
1651
  const t = T(s);
1615
- F();
1616
- const o = Te();
1652
+ M();
1653
+ const o = Ae();
1617
1654
  return (l, n) => {
1618
- var i, u;
1619
- return r(), f(a(we), C({
1655
+ var i, d;
1656
+ return r(), u(a(ze), g({
1620
1657
  class: "ui-RadioCardsItem",
1621
1658
  "data-accent-color": (i = a(o).color) == null ? void 0 : i.value,
1622
1659
  "data-size": a(o).size.value,
1623
1660
  "data-variant": a(o).variant.value,
1624
- "data-high-contrast": (u = a(o).highContrast) == null ? void 0 : u.value
1661
+ "data-high-contrast": (d = a(o).highContrast) == null ? void 0 : d.value
1625
1662
  }, { ...a(t), asChild: !1 }), {
1626
1663
  default: c(() => [
1627
- d(Kt, {
1664
+ p(Yt, {
1628
1665
  "as-child": a(t).asChild
1629
1666
  }, {
1630
1667
  default: c(() => [
1631
- g(l.$slots, "default")
1668
+ _(l.$slots, "default")
1632
1669
  ]),
1633
1670
  _: 3
1634
1671
  }, 8, ["as-child"])
@@ -1637,7 +1674,7 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
1637
1674
  }, 16, ["data-accent-color", "data-size", "data-variant", "data-high-contrast"]);
1638
1675
  };
1639
1676
  }
1640
- }), Lo = /* @__PURE__ */ h({
1677
+ }), Ja = /* @__PURE__ */ m({
1641
1678
  __name: "RadioTabsList",
1642
1679
  props: {
1643
1680
  size: { default: "2" },
@@ -1654,42 +1691,37 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
1654
1691
  },
1655
1692
  emits: ["update:modelValue"],
1656
1693
  setup(s, { emit: e }) {
1657
- const t = e, o = s, [l, n] = Z(o, t, ["size"]);
1658
- return (i, u) => (r(), f(a(xe), C(a(l), {
1694
+ const t = e, o = s, [l, n] = N(o, t, ["size"]);
1695
+ return (i, d) => (r(), u(a(Se), g(a(l), {
1659
1696
  class: ["ui-RadioTabsList", a(n)]
1660
1697
  }), {
1661
1698
  default: c(() => [
1662
- g(i.$slots, "default")
1699
+ _(i.$slots, "default")
1663
1700
  ]),
1664
1701
  _: 3
1665
1702
  }, 16, ["class"]));
1666
1703
  }
1667
- }), Go = /* @__PURE__ */ h({
1704
+ }), Xa = /* @__PURE__ */ m({
1668
1705
  __name: "TabsList",
1669
1706
  props: {
1670
1707
  size: { default: "2" },
1671
- wrap: {},
1672
- justify: {},
1673
1708
  color: {},
1674
1709
  highContrast: { type: Boolean }
1675
1710
  },
1676
1711
  setup(s) {
1677
- const e = s;
1678
- return (t, o) => (r(), f(a(Pt), {
1679
- class: "ui-TabList",
1680
- "data-accent-color": e.color,
1681
- "data-size": e.size,
1682
- "data-wrap": e.wrap,
1683
- "data-justify": e.justify,
1684
- "data-high-contrast": e.highContrast
1712
+ const e = s, t = C(() => R(e, ["size", "highContrast"]));
1713
+ return (o, l) => (r(), u(a(Rt), {
1714
+ class: k(["ui-TabList", t.value]),
1715
+ "data-accent-color": e.color
1685
1716
  }, {
1686
1717
  default: c(() => [
1687
- g(t.$slots, "default")
1718
+ p(a(Pt), { class: "ui-TabsIndicator" }),
1719
+ _(o.$slots, "default")
1688
1720
  ]),
1689
1721
  _: 3
1690
- }, 8, ["data-accent-color", "data-size", "data-wrap", "data-justify", "data-high-contrast"]));
1722
+ }, 8, ["class", "data-accent-color"]));
1691
1723
  }
1692
- }), za = { class: "ui-TabTriggerInner" }, ka = { class: "ui-TabTriggerInnerHidden" }, Ho = /* @__PURE__ */ h({
1724
+ }), Do = { class: "ui-TabTriggerInner" }, Oo = { class: "ui-TabTriggerInnerHidden" }, Ya = /* @__PURE__ */ m({
1693
1725
  __name: "TabsTrigger",
1694
1726
  props: {
1695
1727
  value: {},
@@ -1699,42 +1731,159 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
1699
1731
  },
1700
1732
  setup(s) {
1701
1733
  const t = T(s);
1702
- return (o, l) => (r(), f(a(Dt), C(a(t), { class: "ui-TabTrigger" }), {
1734
+ return (o, l) => (r(), u(a(Dt), g(a(t), { class: "ui-TabTrigger" }), {
1703
1735
  default: c(() => [
1704
- B("span", za, [
1705
- g(o.$slots, "default")
1736
+ b("span", Do, [
1737
+ _(o.$slots, "default")
1706
1738
  ]),
1707
- B("span", ka, [
1708
- g(o.$slots, "default")
1739
+ b("span", Oo, [
1740
+ _(o.$slots, "default")
1709
1741
  ])
1710
1742
  ]),
1711
1743
  _: 3
1712
1744
  }, 16));
1713
1745
  }
1714
- }), Eo = /* @__PURE__ */ h({
1715
- __name: "CollapsibleChevron",
1746
+ }), es = /* @__PURE__ */ m({
1747
+ __name: "AccordionRoot",
1748
+ props: {
1749
+ size: { default: "1" },
1750
+ collapsible: { type: Boolean },
1751
+ disabled: { type: Boolean },
1752
+ dir: {},
1753
+ orientation: {},
1754
+ unmountOnHide: { type: Boolean },
1755
+ asChild: { type: Boolean },
1756
+ as: {},
1757
+ type: {},
1758
+ modelValue: {},
1759
+ defaultValue: {}
1760
+ },
1761
+ emits: ["update:modelValue"],
1762
+ setup(s, { emit: e }) {
1763
+ const t = s, o = e, [l, n] = N(t, o, ["size"]);
1764
+ return (i, d) => (r(), u(a(Ot), g(a(l), {
1765
+ class: ["ui-AccordionRoot", a(n)]
1766
+ }), {
1767
+ default: c(() => [
1768
+ _(i.$slots, "default")
1769
+ ]),
1770
+ _: 3
1771
+ }, 16, ["class"]));
1772
+ }
1773
+ }), ts = /* @__PURE__ */ m({
1774
+ __name: "AccordionItem",
1716
1775
  props: {
1717
- color: { default: "gray" },
1718
- radius: {},
1719
- variant: { default: "ghost" },
1720
- size: {},
1721
- highContrast: { type: Boolean },
1722
1776
  disabled: { type: Boolean },
1777
+ value: {},
1778
+ unmountOnHide: { type: Boolean },
1723
1779
  asChild: { type: Boolean },
1724
1780
  as: {}
1725
1781
  },
1782
+ setup(s) {
1783
+ const t = T(s);
1784
+ return (o, l) => (r(), u(a(Mt), g(a(t), { class: "ui-AccordionItem" }), {
1785
+ default: c(() => [
1786
+ _(o.$slots, "default")
1787
+ ]),
1788
+ _: 3
1789
+ }, 16));
1790
+ }
1791
+ }), os = /* @__PURE__ */ m({
1792
+ inheritAttrs: !1,
1793
+ __name: "AccordionContent",
1794
+ props: {
1795
+ forceMount: { type: Boolean },
1796
+ asChild: { type: Boolean },
1797
+ as: {}
1798
+ },
1799
+ setup(s) {
1800
+ const t = T(s);
1801
+ return (o, l) => (r(), u(a(Ft), g(a(t), { class: "ui-AccordionContent" }), {
1802
+ default: c(() => [
1803
+ b("div", g({ class: "ui-AccordionContentInner" }, o.$attrs), [
1804
+ _(o.$slots, "default")
1805
+ ], 16)
1806
+ ]),
1807
+ _: 3
1808
+ }, 16));
1809
+ }
1810
+ }), Mo = ["data-accent-color"], Fo = /* @__PURE__ */ m({
1811
+ __name: "PlusMinusIcon",
1812
+ props: {
1813
+ color: { default: void 0 },
1814
+ size: { default: "1" }
1815
+ },
1726
1816
  setup(s) {
1727
1817
  const e = s;
1728
- return (t, o) => (r(), f(Q, C({ class: "ui-CollapsibleChevron" }, e, { as: a(At) }), {
1818
+ return (t, o) => (r(), $("div", {
1819
+ class: k(["ui-PlusMinusIcon", `r-size-${e.size}`]),
1820
+ "data-accent-color": e.color
1821
+ }, o[0] || (o[0] = [
1822
+ b("div", { class: "ui-PlusMinusIcon-1" }, null, -1),
1823
+ b("div", { class: "ui-PlusMinusIcon-2" }, null, -1)
1824
+ ]), 10, Mo));
1825
+ }
1826
+ }), Lo = /* @__PURE__ */ m({
1827
+ __name: "ChevronIcon",
1828
+ props: {
1829
+ arrowTransform: { default: "right-down" }
1830
+ },
1831
+ setup(s) {
1832
+ return (e, t) => (r(), u(a(I), {
1833
+ class: "ui-ChevronIcon",
1834
+ icon: "lucide:chevron-right",
1835
+ "data-arrow-transform": e.arrowTransform
1836
+ }, null, 8, ["data-arrow-transform"]));
1837
+ }
1838
+ }), Go = { class: "ui-AccordionTriggerText" }, as = /* @__PURE__ */ m({
1839
+ __name: "AccordionTrigger",
1840
+ props: {
1841
+ indicator: { default: "chevron" },
1842
+ asChild: { type: Boolean },
1843
+ as: {}
1844
+ },
1845
+ setup(s) {
1846
+ const e = s, [t, o] = Qt(e, ["size"]);
1847
+ return (l, n) => (r(), u(a(Lt), g({
1848
+ class: ["ui-AccordionTrigger", a(o)]
1849
+ }, a(t)), {
1729
1850
  default: c(() => [
1730
- d(a(k), { icon: "lucide:chevron-right" })
1851
+ b("div", Go, [
1852
+ _(l.$slots, "default")
1853
+ ]),
1854
+ e.indicator === "plus-minus" ? (r(), u(Fo, {
1855
+ key: 0,
1856
+ class: "ui-AccordionTriggerIcon"
1857
+ })) : e.indicator === "chevron" ? (r(), u(Lo, {
1858
+ key: 1,
1859
+ "arrow-transform": "down-up"
1860
+ })) : z("", !0)
1731
1861
  ]),
1732
- _: 1
1733
- }, 16, ["as"]));
1862
+ _: 3
1863
+ }, 16, ["class"]));
1864
+ }
1865
+ }), ss = /* @__PURE__ */ m({
1866
+ inheritAttrs: !1,
1867
+ __name: "CollapsibleContent",
1868
+ props: {
1869
+ forceMount: { type: Boolean },
1870
+ asChild: { type: Boolean },
1871
+ as: {}
1872
+ },
1873
+ setup(s) {
1874
+ const t = T(s);
1875
+ return (o, l) => (r(), u(a(Gt), g(a(t), { class: "ui-CollapsibleContent" }), {
1876
+ default: c(() => [
1877
+ b("div", g({ class: "ui-CollapsibleContentInner" }, o.$attrs), [
1878
+ _(o.$slots, "default")
1879
+ ], 16)
1880
+ ]),
1881
+ _: 3
1882
+ }, 16));
1734
1883
  }
1735
- }), Va = /* @__PURE__ */ h({
1884
+ }), Ho = /* @__PURE__ */ m({
1736
1885
  __name: "Pagination",
1737
- props: /* @__PURE__ */ H({
1886
+ props: /* @__PURE__ */ Q({
1738
1887
  total: {},
1739
1888
  perpage: { default: 10 },
1740
1889
  edge: { default: 2 },
@@ -1752,131 +1901,131 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
1752
1901
  }),
1753
1902
  emits: ["update:page"],
1754
1903
  setup(s) {
1755
- const e = s, t = K(s, "page"), o = b(() => M(e, ["size", "variant"])), l = b(() => ({
1904
+ const e = s, t = Z(s, "page"), o = C(() => R(e, ["size", "variant"])), l = C(() => ({
1756
1905
  color: e.color,
1757
1906
  radius: e.radius,
1758
1907
  variant: e.variant,
1759
1908
  size: e.size,
1760
1909
  highContrast: e.highContrast,
1761
1910
  disabled: e.disabled
1762
- })), n = b(() => {
1763
- const m = Math.ceil(e.total / e.perpage), p = t.value > 1 ? t.value - 1 : null, v = t.value < m ? t.value + 1 : null, y = 5 + e.edge * 2, D = m > y && t.value > e.edge + 3, R = m > y && t.value + e.edge + 2 < m, L = [];
1764
- let E = 2, X = m - 1;
1765
- D && !R ? E = Math.max(4, m - 2 * e.edge - 2) : !D && R ? X = Math.min(2 * e.edge + 3, m - 1) : D && R && (E = t.value - e.edge, X = t.value + e.edge);
1766
- for (let Y = E; Y <= X; Y++)
1767
- L.push(Y);
1911
+ })), 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, V = v > B && t.value > e.edge + 3, F = v > B && t.value + e.edge + 2 < v, G = [];
1913
+ let K = 2, J = v - 1;
1914
+ V && !F ? K = Math.max(4, v - 2 * e.edge - 2) : !V && F ? J = Math.min(2 * e.edge + 3, v - 1) : V && F && (K = t.value - e.edge, J = t.value + e.edge);
1915
+ for (let X = K; X <= J; X++)
1916
+ G.push(X);
1768
1917
  return {
1769
- totalPages: m,
1770
- prev: p,
1771
- next: v,
1772
- hasLeftEdge: D,
1773
- hasRightEdge: R,
1774
- pageList: L
1918
+ totalPages: v,
1919
+ prev: h,
1920
+ next: f,
1921
+ hasLeftEdge: V,
1922
+ hasRightEdge: F,
1923
+ pageList: G
1775
1924
  };
1776
- }), i = (m) => {
1777
- t.value = m;
1778
- }, u = () => {
1925
+ }), i = (v) => {
1926
+ t.value = v;
1927
+ }, d = () => {
1779
1928
  i(t.value - e.edge);
1780
- }, _ = () => {
1929
+ }, y = () => {
1781
1930
  i(t.value + e.edge);
1782
1931
  };
1783
- return (m, p) => (r(), $("div", {
1784
- class: V(["ui-Pagination", o.value])
1932
+ return (v, h) => (r(), $("div", {
1933
+ class: k(["ui-Pagination", o.value])
1785
1934
  }, [
1786
- n.value.prev ? (r(), f(Q, C({ key: 0 }, l.value, {
1935
+ n.value.prev ? (r(), u(Y, g({ key: 0 }, l.value, {
1787
1936
  "aria-label": "Previous",
1788
- onClick: p[0] || (p[0] = A((v) => i(n.value.prev), ["prevent"]))
1937
+ onClick: h[0] || (h[0] = D((f) => i(n.value.prev), ["prevent"]))
1789
1938
  }), {
1790
1939
  default: c(() => [
1791
- g(m.$slots, "prev-page", {
1940
+ _(v.$slots, "prev-page", {
1792
1941
  page: n.value.prev
1793
1942
  }, () => [
1794
- d(a(k), { icon: "lucide:chevron-left" })
1943
+ p(a(I), { icon: "lucide:chevron-left" })
1795
1944
  ])
1796
1945
  ]),
1797
1946
  _: 3
1798
1947
  }, 16)) : z("", !0),
1799
- d(q, C(l.value, {
1948
+ p(j, g(l.value, {
1800
1949
  disabled: t.value === 1,
1801
1950
  "aria-current": "page",
1802
- onClick: p[1] || (p[1] = A((v) => i(1), ["prevent"]))
1951
+ onClick: h[1] || (h[1] = D((f) => i(1), ["prevent"]))
1803
1952
  }), {
1804
1953
  default: c(() => [
1805
- g(m.$slots, "page", { page: 1 }, () => [
1806
- p[4] || (p[4] = U("1"))
1954
+ _(v.$slots, "page", { page: 1 }, () => [
1955
+ h[4] || (h[4] = W("1"))
1807
1956
  ])
1808
1957
  ]),
1809
1958
  _: 3
1810
1959
  }, 16, ["disabled"]),
1811
- n.value.hasLeftEdge ? (r(), f(Q, C({ key: 1 }, l.value, {
1812
- onClick: A(u, ["prevent"])
1960
+ n.value.hasLeftEdge ? (r(), u(Y, g({ key: 1 }, l.value, {
1961
+ onClick: D(d, ["prevent"])
1813
1962
  }), {
1814
1963
  default: c(() => [
1815
- g(m.$slots, "prev-edge", {
1816
- page: t.value - m.edge
1964
+ _(v.$slots, "prev-edge", {
1965
+ page: t.value - v.edge
1817
1966
  }, () => [
1818
- d(a(k), { icon: "lucide:ellipsis" })
1967
+ p(a(I), { icon: "lucide:ellipsis" })
1819
1968
  ])
1820
1969
  ]),
1821
1970
  _: 3
1822
1971
  }, 16)) : z("", !0),
1823
- (r(!0), $(j, null, W(n.value.pageList, (v) => (r(), f(q, C({
1824
- key: v,
1972
+ (r(!0), $(H, null, E(n.value.pageList, (f) => (r(), u(j, g({
1973
+ key: f,
1825
1974
  ref_for: !0
1826
1975
  }, l.value, {
1827
- disabled: v === t.value,
1976
+ disabled: f === t.value,
1828
1977
  "aria-current": "page",
1829
- onClick: A((y) => i(v), ["prevent"])
1978
+ onClick: D((B) => i(f), ["prevent"])
1830
1979
  }), {
1831
1980
  default: c(() => [
1832
- g(m.$slots, "page", { page: v }, () => [
1833
- U(I(v), 1)
1981
+ _(v.$slots, "page", { page: f }, () => [
1982
+ W(A(f), 1)
1834
1983
  ])
1835
1984
  ]),
1836
1985
  _: 2
1837
1986
  }, 1040, ["disabled", "onClick"]))), 128)),
1838
- n.value.hasRightEdge ? (r(), f(Q, C({ key: 2 }, l.value, {
1839
- onClick: A(_, ["prevent"])
1987
+ n.value.hasRightEdge ? (r(), u(Y, g({ key: 2 }, l.value, {
1988
+ onClick: D(y, ["prevent"])
1840
1989
  }), {
1841
1990
  default: c(() => [
1842
- g(m.$slots, "next-edge", {
1843
- page: t.value + m.edge
1991
+ _(v.$slots, "next-edge", {
1992
+ page: t.value + v.edge
1844
1993
  }, () => [
1845
- d(a(k), { icon: "lucide:ellipsis" })
1994
+ p(a(I), { icon: "lucide:ellipsis" })
1846
1995
  ])
1847
1996
  ]),
1848
1997
  _: 3
1849
1998
  }, 16)) : z("", !0),
1850
- n.value.totalPages > 1 ? (r(), f(q, C({ key: 3 }, l.value, {
1999
+ n.value.totalPages > 1 ? (r(), u(j, g({ key: 3 }, l.value, {
1851
2000
  disabled: n.value.totalPages === t.value,
1852
2001
  "aria-current": "page",
1853
- onClick: p[2] || (p[2] = A((v) => i(n.value.totalPages), ["prevent"]))
2002
+ onClick: h[2] || (h[2] = D((f) => i(n.value.totalPages), ["prevent"]))
1854
2003
  }), {
1855
2004
  default: c(() => [
1856
- g(m.$slots, "page", {
2005
+ _(v.$slots, "page", {
1857
2006
  page: n.value.totalPages
1858
2007
  }, () => [
1859
- U(I(n.value.totalPages), 1)
2008
+ W(A(n.value.totalPages), 1)
1860
2009
  ])
1861
2010
  ]),
1862
2011
  _: 3
1863
2012
  }, 16, ["disabled"])) : z("", !0),
1864
- n.value.next ? (r(), f(Q, C({ key: 4 }, l.value, {
2013
+ n.value.next ? (r(), u(Y, g({ key: 4 }, l.value, {
1865
2014
  "aria-label": "Next",
1866
- onClick: p[3] || (p[3] = A((v) => i(n.value.next), ["prevent"]))
2015
+ onClick: h[3] || (h[3] = D((f) => i(n.value.next), ["prevent"]))
1867
2016
  }), {
1868
2017
  default: c(() => [
1869
- g(m.$slots, "next-page", {
2018
+ _(v.$slots, "next-page", {
1870
2019
  page: n.value.next
1871
2020
  }, () => [
1872
- d(a(k), { icon: "lucide:chevron-right" })
2021
+ p(a(I), { icon: "lucide:chevron-right" })
1873
2022
  ])
1874
2023
  ]),
1875
2024
  _: 3
1876
2025
  }, 16)) : z("", !0)
1877
2026
  ], 2));
1878
2027
  }
1879
- }), Ia = ["data-size", "data-variant"], Ta = ["data-layout"], jo = /* @__PURE__ */ h({
2028
+ }), Eo = ["data-size", "data-variant"], Wo = ["data-layout"], ls = /* @__PURE__ */ m({
1880
2029
  __name: "Table",
1881
2030
  props: {
1882
2031
  size: { default: "2" },
@@ -1890,20 +2039,20 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
1890
2039
  "data-size": e.size,
1891
2040
  "data-variant": e.variant
1892
2041
  }, [
1893
- d(ze, null, {
2042
+ p(ke, null, {
1894
2043
  default: c(() => [
1895
- B("table", {
2044
+ b("table", {
1896
2045
  class: "ui-TableContent",
1897
2046
  "data-layout": e.layout
1898
2047
  }, [
1899
- g(t.$slots, "default")
1900
- ], 8, Ta)
2048
+ _(t.$slots, "default")
2049
+ ], 8, Wo)
1901
2050
  ]),
1902
2051
  _: 3
1903
2052
  })
1904
- ], 8, Ia));
2053
+ ], 8, Eo));
1905
2054
  }
1906
- }), Wo = /* @__PURE__ */ h({
2055
+ }), ns = /* @__PURE__ */ m({
1907
2056
  __name: "Separator",
1908
2057
  props: {
1909
2058
  as: { default: "span" },
@@ -1913,15 +2062,15 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
1913
2062
  },
1914
2063
  setup(s) {
1915
2064
  const e = s;
1916
- return (t, o) => (r(), f(a(J), {
2065
+ return (t, o) => (r(), u(a(U), {
1917
2066
  as: e.as,
1918
- class: V(["ui-Separator", `r-size-${e.size}`]),
2067
+ class: k(["ui-Separator", `r-size-${e.size}`]),
1919
2068
  role: "separator",
1920
2069
  "data-accent-color": e.color,
1921
2070
  "aria-orientation": e.orientation
1922
2071
  }, null, 8, ["as", "class", "data-accent-color", "aria-orientation"]));
1923
2072
  }
1924
- }), Ra = ["textContent"], Pa = /* @__PURE__ */ h({
2073
+ }), jo = ["textContent"], Uo = /* @__PURE__ */ m({
1925
2074
  __name: "Tooltip",
1926
2075
  props: {
1927
2076
  to: {},
@@ -1951,7 +2100,7 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
1951
2100
  },
1952
2101
  setup(s) {
1953
2102
  const e = s;
1954
- return (t, o) => (r(), f(a(Ot), {
2103
+ return (t, o) => (r(), u(a(Ht), {
1955
2104
  "delay-duration": e.delayDuration,
1956
2105
  "disable-closing-trigger": e.disableClosingTrigger,
1957
2106
  "disable-hoverable-content": e.disableHoverableContent,
@@ -1960,22 +2109,22 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
1960
2109
  "skip-delay-duration": e.skipDelayDuration
1961
2110
  }, {
1962
2111
  default: c(() => [
1963
- d(a(Mt), null, {
2112
+ p(a(Et), null, {
1964
2113
  default: c(() => [
1965
- d(a(Ft), {
2114
+ p(a(Wt), {
1966
2115
  as: e.as,
1967
2116
  "as-child": e.asChild
1968
2117
  }, {
1969
2118
  default: c(() => [
1970
- g(t.$slots, "default")
2119
+ _(t.$slots, "default")
1971
2120
  ]),
1972
2121
  _: 3
1973
2122
  }, 8, ["as", "as-child"]),
1974
- d(a(Lt), {
2123
+ p(a(jt), {
1975
2124
  to: e.to
1976
2125
  }, {
1977
2126
  default: c(() => [
1978
- d(a(Gt), {
2127
+ p(a(Ut), {
1979
2128
  class: "ui-Tooltip",
1980
2129
  align: e.align,
1981
2130
  "align-offset": e.alignOffset,
@@ -1990,13 +2139,13 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
1990
2139
  sticky: e.sticky
1991
2140
  }, {
1992
2141
  default: c(() => [
1993
- g(t.$slots, "content", {}, () => [
1994
- B("p", {
2142
+ _(t.$slots, "content", {}, () => [
2143
+ b("p", {
1995
2144
  class: "ui-TooltipText",
1996
- textContent: I(e.content)
1997
- }, null, 8, Ra)
2145
+ textContent: A(e.content)
2146
+ }, null, 8, jo)
1998
2147
  ]),
1999
- d(a(Ht), { class: "ui-TooltipArrow" })
2148
+ p(a(qt), { class: "ui-TooltipArrow" })
2000
2149
  ]),
2001
2150
  _: 3
2002
2151
  }, 8, ["align", "align-offset", "aria-label", "arrow-padding", "avoid-collisions", "collision-boundary", "collision-padding", "hide-when-detached", "side", "side-offset", "sticky"])
@@ -2010,48 +2159,48 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
2010
2159
  _: 3
2011
2160
  }, 8, ["delay-duration", "disable-closing-trigger", "disable-hoverable-content", "disabled", "ignore-non-keyboard-focus", "skip-delay-duration"]));
2012
2161
  }
2013
- }), Uo = /* @__PURE__ */ h({
2162
+ }), rs = /* @__PURE__ */ m({
2014
2163
  __name: "Quota",
2015
2164
  props: {
2016
2165
  percent: {},
2017
2166
  color: {}
2018
2167
  },
2019
2168
  setup(s) {
2020
- const e = s, t = b(() => {
2169
+ const e = s, t = C(() => {
2021
2170
  const l = `translateX(-${100 - e.percent}%)`;
2022
2171
  if (e.percent > 100)
2023
2172
  return { transform: l, "background-color": "var(--red-a10)" };
2024
2173
  let n = "a4";
2025
2174
  return e.percent > 90 ? n = "a11" : e.percent > 66 ? n = "a9" : e.percent > 33 && (n = "a6"), { transform: l, "background-color": `var(--blue-${n})` };
2026
- }), o = b(() => e.percent > 100 ? 100 : e.percent < 0 ? 0 : e.percent);
2027
- return (l, n) => (r(), f(a(Et), {
2175
+ }), o = C(() => e.percent > 100 ? 100 : e.percent < 0 ? 0 : e.percent);
2176
+ return (l, n) => (r(), u(a(Nt), {
2028
2177
  class: "ui-Quota",
2029
2178
  "model-value": o.value,
2030
2179
  "data-accent-color": e.color
2031
2180
  }, {
2032
2181
  default: c(() => [
2033
- d(a(jt), {
2182
+ p(a(Kt), {
2034
2183
  class: "ui-QuotaValue",
2035
- style: Ge(t.value)
2184
+ style: Be(t.value)
2036
2185
  }, null, 8, ["style"])
2037
2186
  ]),
2038
2187
  _: 1
2039
2188
  }, 8, ["model-value", "data-accent-color"]));
2040
2189
  }
2041
- }), qo = /* @__PURE__ */ h({
2190
+ }), is = /* @__PURE__ */ m({
2042
2191
  __name: "Spinner",
2043
2192
  props: {
2044
2193
  icon: { default: "180-ring" },
2045
2194
  size: { default: "2" }
2046
2195
  },
2047
2196
  setup(s) {
2048
- const e = s, t = b(() => `svg-spinners:${e.icon}`);
2049
- return (o, l) => (r(), f(a(k), {
2050
- class: V(["ui-Spinner", `r-size-${o.size}`]),
2197
+ const e = s, t = C(() => `svg-spinners:${e.icon}`);
2198
+ return (o, l) => (r(), u(a(I), {
2199
+ class: k(["ui-Spinner", `r-size-${o.size}`]),
2051
2200
  icon: t.value
2052
2201
  }, null, 8, ["class", "icon"]));
2053
2202
  }
2054
- }), Da = ["data-status"], Ko = /* @__PURE__ */ h({
2203
+ }), qo = ["data-status"], cs = /* @__PURE__ */ m({
2055
2204
  __name: "SavingIndicator",
2056
2205
  props: {
2057
2206
  status: {},
@@ -2060,19 +2209,19 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
2060
2209
  setup(s) {
2061
2210
  const e = s;
2062
2211
  return (t, o) => (r(), $("div", {
2063
- class: V(["ui-SavingIndicator", `r-size-${t.size}`]),
2212
+ class: k(["ui-SavingIndicator", `r-size-${t.size}`]),
2064
2213
  "data-status": e.status
2065
2214
  }, [
2066
- e.status === "saving" ? (r(), f(a(k), {
2215
+ e.status === "saving" ? (r(), u(a(I), {
2067
2216
  key: 0,
2068
2217
  icon: "svg-spinners:180-ring"
2069
- })) : e.status === "saved" ? (r(), f(a(k), {
2218
+ })) : e.status === "saved" ? (r(), u(a(I), {
2070
2219
  key: 1,
2071
2220
  icon: "lucide:check-circle-2"
2072
2221
  })) : z("", !0)
2073
- ], 10, Da));
2222
+ ], 10, qo));
2074
2223
  }
2075
- }), Aa = ["data-accent-color"], No = /* @__PURE__ */ h({
2224
+ }), No = ["data-accent-color"], us = /* @__PURE__ */ m({
2076
2225
  __name: "IconCircle",
2077
2226
  props: {
2078
2227
  color: {},
@@ -2081,20 +2230,20 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
2081
2230
  icon: {}
2082
2231
  },
2083
2232
  setup(s) {
2084
- const e = s, t = b(() => M(e, ["size", "variant"]));
2233
+ const e = s, t = C(() => R(e, ["size", "variant"]));
2085
2234
  return (o, l) => (r(), $("span", {
2086
- class: V(["ui-IconCircle", t.value]),
2235
+ class: k(["ui-IconCircle", t.value]),
2087
2236
  "data-radius": "full",
2088
2237
  "data-accent-color": e.color
2089
2238
  }, [
2090
- d(a(k), {
2239
+ p(a(I), {
2091
2240
  icon: e.icon
2092
2241
  }, null, 8, ["icon"])
2093
- ], 10, Aa));
2242
+ ], 10, No));
2094
2243
  }
2095
- }), Oa = "https://challenges.cloudflare.com/turnstile/v0/api.js", ge = "cfTurnstileOnLoad";
2096
- let se = typeof window < "u" && window.turnstile !== void 0 ? "ready" : "unloaded", ie, le, _e;
2097
- const Qo = /* @__PURE__ */ h({
2244
+ }), Ko = "https://challenges.cloudflare.com/turnstile/v0/api.js", ge = "cfTurnstileOnLoad";
2245
+ let se = typeof window < "u" && window.turnstile !== void 0 ? "ready" : "unloaded", ie, le, ye;
2246
+ const ds = /* @__PURE__ */ m({
2098
2247
  __name: "Turnstile",
2099
2248
  props: {
2100
2249
  sitekey: {},
@@ -2112,47 +2261,47 @@ const Qo = /* @__PURE__ */ h({
2112
2261
  window.turnstile && (o("update:modelValue", ""), window.turnstile.reset());
2113
2262
  }, i = () => {
2114
2263
  le && (window.turnstile.remove(le), le = void 0);
2115
- }, u = (m) => {
2116
- o("update:modelValue", m), _e = setTimeout(() => {
2264
+ }, d = (v) => {
2265
+ o("update:modelValue", v), ye = setTimeout(() => {
2117
2266
  n();
2118
2267
  }, t.resetInterval);
2119
- }, _ = () => {
2268
+ }, y = () => {
2120
2269
  le = window.turnstile.render(l.value, {
2121
2270
  sitekey: t.sitekey,
2122
2271
  theme: t.theme,
2123
2272
  size: t.size,
2124
- callback: u,
2273
+ callback: d,
2125
2274
  action: t.action,
2126
2275
  appearance: t.appearance
2127
2276
  });
2128
2277
  };
2129
2278
  return ue(async () => {
2130
- const m = new Promise((v, y) => {
2131
- ie = { resolve: v, reject: y }, se === "ready" && v(void 0);
2279
+ const v = new Promise((f, B) => {
2280
+ ie = { resolve: f, reject: B }, se === "ready" && f(void 0);
2132
2281
  });
2133
2282
  window[ge] = () => {
2134
2283
  ie.resolve(), se = "ready";
2135
2284
  }, await (() => {
2136
2285
  if (se === "unloaded") {
2137
2286
  se = "loading";
2138
- const v = `${Oa}?onload=${ge}&render=explicit`, y = document.createElement("script");
2139
- y.src = v, y.async = !0, y.addEventListener("error", () => {
2287
+ const f = `${Ko}?onload=${ge}&render=explicit`, B = document.createElement("script");
2288
+ B.src = f, B.async = !0, B.addEventListener("error", () => {
2140
2289
  ie.reject("Failed to load Turnstile.");
2141
- }), document.head.appendChild(y);
2290
+ }), document.head.appendChild(B);
2142
2291
  }
2143
- return m;
2144
- })(), t.renderOnMount && _();
2145
- }), ye(() => {
2146
- i(), clearTimeout(_e);
2147
- }), (m, p) => (r(), $("div", {
2292
+ return v;
2293
+ })(), t.renderOnMount && y();
2294
+ }), Ce(() => {
2295
+ i(), clearTimeout(ye);
2296
+ }), (v, h) => (r(), $("div", {
2148
2297
  ref_key: "element",
2149
2298
  ref: l
2150
2299
  }, null, 512));
2151
2300
  }
2152
- }), Ma = {
2301
+ }), Qo = {
2153
2302
  type: "button",
2154
2303
  class: "ui-IconifySample"
2155
- }, Fa = { class: "ui-IconifySampleInfo" }, La = { class: "ui-IconifySampleIcons" }, Ga = /* @__PURE__ */ h({
2304
+ }, Zo = { class: "ui-IconifySampleInfo" }, Jo = { class: "ui-IconifySampleIcons" }, Xo = /* @__PURE__ */ m({
2156
2305
  __name: "IconifySample",
2157
2306
  props: {
2158
2307
  prefix: {},
@@ -2164,28 +2313,28 @@ const Qo = /* @__PURE__ */ h({
2164
2313
  },
2165
2314
  setup(s) {
2166
2315
  const e = s;
2167
- return (t, o) => (r(), $("button", Ma, [
2168
- B("div", Fa, [
2169
- B("strong", null, I(e.name), 1),
2170
- B("span", null, I(e.license.title), 1),
2171
- B("span", null, I(e.total) + " icons", 1)
2316
+ return (t, o) => (r(), $("button", Qo, [
2317
+ b("div", Zo, [
2318
+ b("strong", null, A(e.name), 1),
2319
+ b("span", null, A(e.license.title), 1),
2320
+ b("span", null, A(e.total) + " icons", 1)
2172
2321
  ]),
2173
- B("div", La, [
2174
- (r(!0), $(j, null, W(e.samples, (l) => (r(), $("span", { key: l }, [
2175
- d(a(k), {
2322
+ b("div", Jo, [
2323
+ (r(!0), $(H, null, E(e.samples, (l) => (r(), $("span", { key: l }, [
2324
+ p(a(I), {
2176
2325
  icon: e.prefix + ":" + l
2177
2326
  }, null, 8, ["icon"])
2178
2327
  ]))), 128))
2179
2328
  ])
2180
2329
  ]));
2181
2330
  }
2182
- }), Ha = { class: "ui-IconifyCollection" }, Ea = { class: "ui-IconifyCollectionGroups" }, ja = { class: "ui-IconifyCollectionGroupsHead" }, Wa = { class: "ui-IconifyCollectionForm" }, Ua = { class: "mb-2" }, qa = { class: "font-medium" }, Ka = { class: "text-sm ml-1" }, Na = { class: "ui-IconifyCollectionSampleGrid" }, Qa = {
2331
+ }), Yo = { class: "ui-IconifyCollection" }, ea = { class: "ui-IconifyCollectionGroups" }, ta = { class: "ui-IconifyCollectionGroupsHead" }, oa = { class: "ui-IconifyCollectionForm" }, aa = { class: "mb-2" }, sa = { class: "font-medium" }, la = { class: "text-sm ml-1" }, na = { class: "ui-IconifyCollectionSampleGrid" }, ra = {
2183
2332
  key: 0,
2184
2333
  class: "ui-IconifyCollectionIcons"
2185
- }, Ja = { class: "ui-IconifyCollectionForm" }, Za = {
2334
+ }, ia = { class: "ui-IconifyCollectionForm" }, ca = {
2186
2335
  key: 0,
2187
2336
  class: "ui-IconifyCollectionSuffixes"
2188
- }, Xa = { class: "ui-IconifyCollectionIconGrid" }, Ya = async () => {
2337
+ }, ua = { class: "ui-IconifyCollectionIconGrid" }, da = async () => {
2189
2338
  const t = await (await fetch("https://api.iconify.design/collections")).json(), o = {};
2190
2339
  Object.keys(t).forEach((n) => {
2191
2340
  const i = t[n];
@@ -2198,16 +2347,16 @@ const Qo = /* @__PURE__ */ h({
2198
2347
  items: o[n]
2199
2348
  });
2200
2349
  }), l;
2201
- }, eo = async (s) => {
2350
+ }, pa = async (s) => {
2202
2351
  const e = `https://api.iconify.design/search?query=${encodeURIComponent(s)}&limit=999`;
2203
2352
  return (await (await fetch(e)).json()).icons;
2204
- }, to = async (s) => {
2353
+ }, fa = async (s) => {
2205
2354
  const e = `https://api.iconify.design/collection?prefix=${encodeURIComponent(s)}&chars=true&aliases=true`;
2206
2355
  return await (await fetch(e)).json();
2207
2356
  }, ce = (s, e, t) => s.filter((o) => {
2208
2357
  let l = !0;
2209
2358
  return e && o.indexOf(e) === -1 && (l = !1), t && o.indexOf(`-${t}`) === -1 && (l = !1), l;
2210
- }), Jo = /* @__PURE__ */ h({
2359
+ }), ps = /* @__PURE__ */ m({
2211
2360
  __name: "IconifyCollection",
2212
2361
  props: {
2213
2362
  prefix: {},
@@ -2216,141 +2365,137 @@ const Qo = /* @__PURE__ */ h({
2216
2365
  },
2217
2366
  emits: ["select"],
2218
2367
  setup(s, { emit: e }) {
2219
- const t = s, o = e, l = P("all"), n = P([]), i = P(""), u = P(1), _ = P(""), m = P([]), p = P(), v = P(""), y = P(""), D = () => {
2220
- u.value = 1, _.value = "", m.value = [], p.value = void 0, v.value = "", y.value = "", l.value = "all";
2221
- }, R = (w) => {
2368
+ const t = s, o = e, l = P("all"), n = P([]), i = P(""), d = P(1), y = P(""), v = P([]), h = P(), f = P(""), B = P(""), V = () => {
2369
+ d.value = 1, y.value = "", v.value = [], h.value = void 0, f.value = "", B.value = "", l.value = "all";
2370
+ }, F = (w) => {
2222
2371
  o("select", w);
2223
- }, L = async () => {
2224
- _.value ? (l.value = "search", m.value = await eo(_.value)) : l.value = "all";
2225
- }, E = async (w) => {
2226
- p.value = void 0, v.value = "", y.value = "", l.value = "collection", p.value = await to(w);
2227
- }, X = b(() => {
2372
+ }, G = async () => {
2373
+ y.value ? (l.value = "search", v.value = await pa(y.value)) : l.value = "all";
2374
+ }, K = async (w) => {
2375
+ h.value = void 0, f.value = "", B.value = "", l.value = "collection", h.value = await fa(w);
2376
+ }, J = C(() => {
2228
2377
  let w = 0;
2229
2378
  return n.value.forEach((S) => {
2230
2379
  w += S.items.length;
2231
2380
  }), w;
2232
- }), Y = b(() => i.value ? n.value.map((w) => {
2381
+ }), X = C(() => i.value ? n.value.map((w) => {
2233
2382
  const S = w.items.filter((O) => [O.category, O.name, O.prefix].join(" ").toLowerCase().indexOf(i.value) !== -1);
2234
2383
  return { ...w, items: S };
2235
- }).filter((w) => w.items.length !== 0) : n.value), Re = b(() => {
2384
+ }).filter((w) => w.items.length !== 0) : n.value), Re = C(() => {
2236
2385
  let w = [];
2237
- return p.value ? (p.value.uncategorized ? w = ce(p.value.uncategorized, v.value, y.value) : p.value.categories && Object.keys(p.value.categories).forEach((S) => {
2238
- const O = p.value.categories[S];
2239
- ce(O, v.value, y.value).forEach((x) => {
2386
+ return h.value ? (h.value.uncategorized ? w = ce(h.value.uncategorized, f.value, B.value) : h.value.categories && Object.keys(h.value.categories).forEach((S) => {
2387
+ const O = h.value.categories[S];
2388
+ ce(O, f.value, B.value).forEach((x) => {
2240
2389
  w.push(x);
2241
2390
  });
2242
- }), v.value && !w.length && p.value.hidden && (w = ce(p.value.hidden, v.value, y.value)), w.map((S) => {
2391
+ }), f.value && !w.length && h.value.hidden && (w = ce(h.value.hidden, f.value, B.value)), w.map((S) => {
2243
2392
  var O;
2244
- return `${(O = p.value) == null ? void 0 : O.prefix}:${S}`;
2393
+ return `${(O = h.value) == null ? void 0 : O.prefix}:${S}`;
2245
2394
  })) : w;
2246
- }), fe = b(() => l.value === "search" ? m.value : l.value === "collection" ? Re.value : []), Pe = b(() => {
2247
- const w = (u.value - 1) * t.perpage, S = u.value * t.perpage;
2248
- return fe.value.slice(w, S);
2395
+ }), me = C(() => l.value === "search" ? v.value : l.value === "collection" ? Re.value : []), Pe = C(() => {
2396
+ const w = (d.value - 1) * t.perpage, S = d.value * t.perpage;
2397
+ return me.value.slice(w, S);
2249
2398
  });
2250
2399
  return ue(async () => {
2251
- t.prefix ? E(t.prefix) : t.search && (_.value = t.search, L()), n.value = await Ya();
2400
+ t.prefix ? K(t.prefix) : t.search && (y.value = t.search, G()), n.value = await da();
2252
2401
  }), (w, S) => {
2253
2402
  var O;
2254
- return r(), $("div", Ha, [
2255
- te(B("div", Ea, [
2256
- B("section", ja, [
2257
- B("h1", null, I(X.value) + " icon sets", 1),
2258
- B("div", Wa, [
2259
- d(oe, {
2403
+ return r(), $("div", Yo, [
2404
+ te(b("div", ea, [
2405
+ b("section", ta, [
2406
+ b("h1", null, A(J.value) + " icon sets", 1),
2407
+ b("div", oa, [
2408
+ p(ae, {
2260
2409
  modelValue: i.value,
2261
2410
  "onUpdate:modelValue": S[0] || (S[0] = (x) => i.value = x),
2262
- class: "flex-grow",
2263
2411
  placeholder: "Filter icon sets..."
2264
2412
  }, null, 8, ["modelValue"]),
2265
- d(oe, {
2266
- modelValue: _.value,
2267
- "onUpdate:modelValue": S[1] || (S[1] = (x) => _.value = x),
2268
- class: "flex-grow",
2413
+ p(ae, {
2414
+ modelValue: y.value,
2415
+ "onUpdate:modelValue": S[1] || (S[1] = (x) => y.value = x),
2269
2416
  placeholder: "Search icons...",
2270
- onKeydown: he(L, ["enter"])
2417
+ onKeydown: he(G, ["enter"])
2271
2418
  }, null, 8, ["modelValue"])
2272
2419
  ])
2273
2420
  ]),
2274
- (r(!0), $(j, null, W(Y.value, (x) => (r(), $("section", {
2421
+ (r(!0), $(H, null, E(X.value, (x) => (r(), $("section", {
2275
2422
  key: x.category,
2276
2423
  class: "ui-IconifyCollectionSample"
2277
2424
  }, [
2278
- B("h1", Ua, [
2279
- B("span", qa, I(x.category), 1),
2280
- B("span", Ka, "(" + I(x.items.length) + " icon sets)", 1)
2425
+ b("h1", aa, [
2426
+ b("span", sa, A(x.category), 1),
2427
+ b("span", la, "(" + A(x.items.length) + " icon sets)", 1)
2281
2428
  ]),
2282
- B("div", Na, [
2283
- (r(!0), $(j, null, W(x.items, (G) => (r(), f(Ga, C({
2284
- key: G.prefix,
2429
+ b("div", na, [
2430
+ (r(!0), $(H, null, E(x.items, (L) => (r(), u(Xo, g({
2431
+ key: L.prefix,
2285
2432
  ref_for: !0
2286
- }, G, {
2287
- onClick: A((De) => E(G.prefix), ["prevent"])
2433
+ }, L, {
2434
+ onClick: D((De) => K(L.prefix), ["prevent"])
2288
2435
  }), null, 16, ["onClick"]))), 128))
2289
2436
  ])
2290
2437
  ]))), 128))
2291
2438
  ], 512), [
2292
2439
  [He, l.value === "all"]
2293
2440
  ]),
2294
- l.value !== "all" ? (r(), $("div", Qa, [
2295
- B("div", Ja, [
2296
- d(q, {
2441
+ l.value !== "all" ? (r(), $("div", ra, [
2442
+ b("div", ia, [
2443
+ p(j, {
2297
2444
  type: "button",
2298
2445
  variant: "surface",
2299
2446
  color: "gray",
2300
- onClick: A(D, ["prevent"])
2447
+ onClick: D(V, ["prevent"])
2301
2448
  }, {
2302
2449
  default: c(() => S[5] || (S[5] = [
2303
- U(" Back ")
2450
+ W(" Back ")
2304
2451
  ])),
2305
2452
  _: 1
2306
2453
  }),
2307
- l.value === "search" ? (r(), f(oe, {
2454
+ l.value === "search" ? (r(), u(ae, {
2308
2455
  key: 0,
2309
- modelValue: _.value,
2310
- "onUpdate:modelValue": S[2] || (S[2] = (x) => _.value = x),
2311
- class: "flex-grow",
2456
+ modelValue: y.value,
2457
+ "onUpdate:modelValue": S[2] || (S[2] = (x) => y.value = x),
2312
2458
  placeholder: "Search icons...",
2313
- onKeydown: he(L, ["enter"])
2459
+ onKeydown: he(G, ["enter"])
2314
2460
  }, null, 8, ["modelValue"])) : z("", !0),
2315
- l.value === "collection" ? (r(), f(oe, {
2461
+ l.value === "collection" ? (r(), u(ae, {
2316
2462
  key: 1,
2317
- modelValue: v.value,
2318
- "onUpdate:modelValue": S[3] || (S[3] = (x) => v.value = x),
2319
- class: "flex-grow",
2463
+ modelValue: f.value,
2464
+ "onUpdate:modelValue": S[3] || (S[3] = (x) => f.value = x),
2320
2465
  placeholder: "Search icons..."
2321
2466
  }, null, 8, ["modelValue"])) : z("", !0)
2322
2467
  ]),
2323
- l.value === "collection" && ((O = p.value) != null && O.suffixes) ? (r(), $("div", Za, [
2324
- (r(!0), $(j, null, W(p.value.suffixes, (x, G) => (r(), f(q, {
2325
- key: G,
2326
- variant: y.value === G ? "solid" : "outline",
2468
+ l.value === "collection" && ((O = h.value) != null && O.suffixes) ? (r(), $("div", ca, [
2469
+ (r(!0), $(H, null, E(h.value.suffixes, (x, L) => (r(), u(j, {
2470
+ key: L,
2471
+ variant: B.value === L ? "solid" : "outline",
2327
2472
  color: "gray",
2328
2473
  "high-contrast": "",
2329
2474
  radius: "full",
2330
- onClick: A((De) => y.value = G, ["prevent"])
2475
+ onClick: D((De) => B.value = L, ["prevent"])
2331
2476
  }, {
2332
2477
  default: c(() => [
2333
- U(I(x), 1)
2478
+ W(A(x), 1)
2334
2479
  ]),
2335
2480
  _: 2
2336
2481
  }, 1032, ["variant", "onClick"]))), 128))
2337
2482
  ])) : z("", !0),
2338
- B("div", Xa, [
2339
- (r(!0), $(j, null, W(Pe.value, (x) => (r(), f(Pa, {
2483
+ b("div", ua, [
2484
+ (r(!0), $(H, null, E(Pe.value, (x) => (r(), u(Uo, {
2340
2485
  key: x,
2341
2486
  as: "div",
2342
2487
  content: x
2343
2488
  }, {
2344
2489
  default: c(() => [
2345
- d(Q, {
2490
+ p(Y, {
2346
2491
  type: "button",
2347
2492
  color: "gray",
2348
2493
  variant: "ghost",
2349
2494
  size: "4",
2350
- onClick: A((G) => R(x), ["prevent"])
2495
+ onClick: D((L) => F(x), ["prevent"])
2351
2496
  }, {
2352
2497
  default: c(() => [
2353
- d(a(k), { icon: x }, null, 8, ["icon"])
2498
+ p(a(I), { icon: x }, null, 8, ["icon"])
2354
2499
  ]),
2355
2500
  _: 2
2356
2501
  }, 1032, ["onClick"])
@@ -2358,10 +2503,10 @@ const Qo = /* @__PURE__ */ h({
2358
2503
  _: 2
2359
2504
  }, 1032, ["content"]))), 128))
2360
2505
  ]),
2361
- d(Va, {
2362
- page: u.value,
2363
- "onUpdate:page": S[4] || (S[4] = (x) => u.value = x),
2364
- total: fe.value.length,
2506
+ p(Ho, {
2507
+ page: d.value,
2508
+ "onUpdate:page": S[4] || (S[4] = (x) => d.value = x),
2509
+ total: me.value.length,
2365
2510
  perpage: w.perpage
2366
2511
  }, null, 8, ["page", "total", "perpage"])
2367
2512
  ])) : z("", !0)
@@ -2370,85 +2515,91 @@ const Qo = /* @__PURE__ */ h({
2370
2515
  }
2371
2516
  });
2372
2517
  export {
2373
- Yo as AlertDialogAction,
2374
- es as AlertDialogCancel,
2375
- io as AlertDialogContent,
2376
- ts as AlertDialogDescription,
2377
- as as AlertDialogRoot,
2378
- os as AlertDialogTitle,
2379
- ss as AlertDialogTrigger,
2380
- lo as Avatar,
2381
- no as Badge,
2382
- q as Button,
2383
- Kt as Card,
2384
- ro as CardHead,
2385
- ke as Checkbox,
2386
- _o as CheckboxGroupControl,
2387
- go as CheckboxGroupItem,
2388
- vo as CheckboxGroupRoot,
2389
- Eo as CollapsibleChevron,
2390
- ls as CollapsibleContent,
2391
- ns as CollapsibleRoot,
2392
- rs as CollapsibleTrigger,
2393
- $o as ColorField,
2394
- Ro as ComboboxContent,
2395
- is as ComboboxEmpty,
2396
- cs as ComboboxGroup,
2397
- To as ComboboxInput,
2398
- Po as ComboboxItem,
2399
- Do as ComboboxLabel,
2400
- Io as ComboboxRoot,
2401
- us as DialogClose,
2402
- co as DialogContent,
2403
- ds as DialogDescription,
2404
- uo as DialogHead,
2405
- ps as DialogRoot,
2406
- fs as DialogTitle,
2407
- hs as DialogTrigger,
2408
- po as DropdownMenuContent,
2409
- fo as DropdownMenuItem,
2410
- ms as DropdownMenuRoot,
2411
- vs as DropdownMenuTrigger,
2412
- ws as Icon,
2413
- Q as IconButton,
2414
- No as IconCircle,
2415
- Jo as IconifyCollection,
2416
- qt as Inset,
2417
- Va as Pagination,
2418
- gs as PopoverClose,
2419
- ho as PopoverContent,
2420
- _s as PopoverRoot,
2421
- ys as PopoverTrigger,
2422
- Uo as Quota,
2423
- Ao as Radio,
2424
- Fo as RadioCardsItem,
2425
- Oo as RadioCardsRoot,
2426
- Mo as RadioGroupItem,
2427
- Oo as RadioGroupRoot,
2428
- Cs as RadioTabsItem,
2429
- Lo as RadioTabsList,
2430
- Ko as SavingIndicator,
2431
- ze as ScrollArea,
2432
- wo as SelectContent,
2433
- bs as SelectGroup,
2434
- zo as SelectItem,
2435
- ko as SelectLabel,
2436
- xo as SelectRoot,
2437
- Vo as SelectSeparator,
2438
- So as SelectTrigger,
2439
- Wo as Separator,
2440
- qo as Spinner,
2441
- mo as Switch,
2442
- jo as Table,
2443
- Bs as TabsContent,
2444
- Go as TabsList,
2445
- $s as TabsRoot,
2446
- Ho as TabsTrigger,
2447
- Bo as TextArea,
2448
- oe as TextField,
2449
- yo as Toggle,
2450
- bo as ToggleGroupItem,
2451
- Co as ToggleGroupRoot,
2452
- Pa as Tooltip,
2453
- Qo as Turnstile
2518
+ os as AccordionContent,
2519
+ ts as AccordionItem,
2520
+ es as AccordionRoot,
2521
+ as as AccordionTrigger,
2522
+ hs as AlertDialogAction,
2523
+ vs as AlertDialogCancel,
2524
+ ba as AlertDialogContent,
2525
+ _s as AlertDialogDescription,
2526
+ gs as AlertDialogRoot,
2527
+ ys as AlertDialogTitle,
2528
+ Cs as AlertDialogTrigger,
2529
+ _a as Avatar,
2530
+ ga as Badge,
2531
+ j as Button,
2532
+ Yt as Card,
2533
+ ya as CardHead,
2534
+ Ie as Checkbox,
2535
+ Ta as CheckboxGroupControl,
2536
+ Ia as CheckboxGroupItem,
2537
+ ka as CheckboxGroupRoot,
2538
+ Lo as ChevronIcon,
2539
+ ss as CollapsibleContent,
2540
+ bs as CollapsibleRoot,
2541
+ $s as CollapsibleTrigger,
2542
+ Da as ColorField,
2543
+ ja as ComboboxContent,
2544
+ Bs as ComboboxEmpty,
2545
+ xs as ComboboxGroup,
2546
+ Wa as ComboboxInput,
2547
+ Ua as ComboboxItem,
2548
+ qa as ComboboxLabel,
2549
+ Ea as ComboboxRoot,
2550
+ ws as DialogClose,
2551
+ $a as DialogContent,
2552
+ Ss as DialogDescription,
2553
+ Ba as DialogHead,
2554
+ zs as DialogRoot,
2555
+ ks as DialogTitle,
2556
+ Is as DialogTrigger,
2557
+ xa as DropdownMenuContent,
2558
+ wa as DropdownMenuItem,
2559
+ Ts as DropdownMenuRoot,
2560
+ Vs as DropdownMenuTrigger,
2561
+ Gs as Icon,
2562
+ Y as IconButton,
2563
+ us as IconCircle,
2564
+ ps as IconifyCollection,
2565
+ Xt as Inset,
2566
+ Ho as Pagination,
2567
+ Fo as PlusMinusIcon,
2568
+ As as PopoverClose,
2569
+ Sa as PopoverContent,
2570
+ Rs as PopoverRoot,
2571
+ Ps as PopoverTrigger,
2572
+ rs as Quota,
2573
+ Na as Radio,
2574
+ Za as RadioCardsItem,
2575
+ Ka as RadioCardsRoot,
2576
+ Qa as RadioGroupItem,
2577
+ Ka as RadioGroupRoot,
2578
+ Ds as RadioTabsItem,
2579
+ Ja as RadioTabsList,
2580
+ cs as SavingIndicator,
2581
+ ke as ScrollArea,
2582
+ Ma as SelectContent,
2583
+ Os as SelectGroup,
2584
+ La as SelectItem,
2585
+ Ga as SelectLabel,
2586
+ Oa as SelectRoot,
2587
+ Ha as SelectSeparator,
2588
+ Fa as SelectTrigger,
2589
+ ns as Separator,
2590
+ Ca as SocialButton,
2591
+ is as Spinner,
2592
+ za as Switch,
2593
+ ls as Table,
2594
+ Ms as TabsContent,
2595
+ Xa as TabsList,
2596
+ Fs as TabsRoot,
2597
+ Ya as TabsTrigger,
2598
+ Pa as TextArea,
2599
+ ae as TextField,
2600
+ Va as Toggle,
2601
+ Ra as ToggleGroupItem,
2602
+ Aa as ToggleGroupRoot,
2603
+ Uo as Tooltip,
2604
+ ds as Turnstile
2454
2605
  };