@typlog/ui 0.7.3 → 0.9.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.
Files changed (28) hide show
  1. package/dist/components/accordion/AccordionContent.d.ts +18 -0
  2. package/dist/components/accordion/AccordionItem.d.ts +18 -0
  3. package/dist/components/accordion/AccordionRoot.d.ts +19 -0
  4. package/dist/components/accordion/AccordionTrigger.d.ts +15 -0
  5. package/dist/components/accordion/index.d.ts +5 -0
  6. package/dist/components/addons/index.d.ts +1 -1
  7. package/dist/components/avatar/Avatar.d.ts +2 -2
  8. package/dist/components/button/Button.d.ts +2 -2
  9. package/dist/components/button/SocialButton.d.ts +21 -0
  10. package/dist/components/button/index.d.ts +1 -0
  11. package/dist/components/collapsible/CollapsibleContent.d.ts +18 -0
  12. package/dist/components/collapsible/index.d.ts +2 -2
  13. package/dist/components/combobox/ComboboxInput.d.ts +4 -8
  14. package/dist/components/combobox/ComboboxRoot.d.ts +1 -0
  15. package/dist/components/icon/ChevronIcon.d.ts +7 -0
  16. package/dist/components/icon/PlusMinusIcon.d.ts +10 -0
  17. package/dist/components/icon/index.d.ts +2 -0
  18. package/dist/components/index.d.ts +1 -0
  19. package/dist/components/inputs/ColorField.d.ts +2 -2
  20. package/dist/components/pagination/Pagination.d.ts +1 -1
  21. package/dist/components/select/SelectTrigger.d.ts +12 -2
  22. package/dist/components/tabs/TabsList.d.ts +0 -2
  23. package/dist/index.js +814 -649
  24. package/dist/style.css +1 -1
  25. package/package.json +2 -2
  26. package/dist/components/collapsible/CollapsibleChevron.d.ts +0 -6
  27. /package/dist/components/addons/{IconifyCollection.d.ts → iconify-collection/IconifyCollection.d.ts} +0 -0
  28. /package/dist/components/addons/{IconifySample.d.ts → iconify-collection/IconifySample.d.ts} +0 -0
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 h, createBlock as d, openBlock as r, unref as a, normalizeClass as k, withCtx as c, createVNode as p, createTextVNode as L, toDisplayString as V, renderSlot as _, createElementBlock as $, mergeProps as g, createCommentVNode as z, createElementVNode as b, toRefs as ee, mergeModels as Q, ref as P, useModel as Z, onMounted as ue, onBeforeUnmount as Ce, withDirectives as te, isRef as be, vModelDynamic as Oe, vModelText as $e, normalizeStyle as Be, normalizeProps as Me, guardReactiveProps as Fe, Fragment as H, watch as Le, renderList as j, withModifiers as D, vModelRadio as Ge, withKeys as me, vShow as He } from "vue";
2
+ import { useForwardProps as T, useEmitAsProps as xe, AvatarRoot as Ee, AvatarImage as je, AvatarFallback as We, Primitive as U, ScrollAreaRoot as de, ScrollAreaViewport as pe, ScrollAreaScrollbar as ne, ScrollAreaThumb as re, ScrollAreaCorner as Ue, AlertDialogPortal as qe, AlertDialogOverlay as Ne, AlertDialogContent as Ke, DialogPortal as Qe, DialogOverlay as Ze, DialogContent as Je, DialogTitle as Xe, DialogClose as Ye, useForwardExpose as M, createContext as oe, DropdownMenuPortal as et, DropdownMenuContent as tt, DropdownMenuItem as ot, PopoverPortal as at, PopoverContent as st, SwitchRoot as lt, SwitchThumb as nt, CheckboxRoot as rt, CheckboxIndicator as it, Toggle as ct, ToggleGroupRoot as ut, ToggleGroupItem as dt, SelectRoot as pt, SelectPortal as ft, SelectContent as ht, SelectViewport as mt, 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 jt, TooltipPortal as Wt, TooltipContent as Ut, TooltipArrow as qt, ProgressRoot as Nt, ProgressIndicator as Kt } from "reka-ui";
3
+ import { AlertDialogAction as ms, 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__ */ h({
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(), d(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(je), {
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(We), {
69
+ class: k(`r-count-${o.value.length}`)
66
70
  }, {
67
71
  default: c(() => [
68
- U(I(o.value), 1)
72
+ L(V(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__ */ h({
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(), d(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__ */ h({
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__ */ h({
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(), d(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__ */ h({
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(), d(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
+ }), W = /* @__PURE__ */ h({
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(), d(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__ */ h({
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(), d(W, 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__ */ h({
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(), d(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(), d(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__ */ h({
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(), d(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(), d(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(), d(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(), d(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__ */ h({
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(), d(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__ */ h({
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(), d(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__ */ h({
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(), d(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
+ L(V(e.title), 1)
435
476
  ]),
436
477
  _: 1
437
478
  }),
438
- d(q, {
479
+ p(W, {
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__ */ h({
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: u, color: y, highContrast: v } = ee(t);
535
+ return ro({ size: i, variant: u, color: y, highContrast: v }), (m, f) => (r(), d(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
+ ...m.$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
+ _(m.$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__ */ h({
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();
576
+ const t = s, l = q(t, e, ["color", "shortcut"]);
577
+ M();
578
+ const n = no();
538
579
  return (i, u) => {
539
- var _;
540
- return r(), f(a(at), C({
580
+ var y;
581
+ return r(), d(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: V(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__ */ h({
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(), d(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__ */ h({
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, u) => (r(), d(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__ */ h({
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, u) => (r(), d(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__ */ h({
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(m) {
756
+ return i.number ? m = m.map((f) => Number(f)) : i.trim && (m = m.map((f) => f.trim())), m;
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
+ }), u = C(() => n.value || []), y = C(() => {
759
+ var m, f;
760
+ return l.value.length ? ((m = n.value) == null ? void 0 : m.length) === l.value.length ? !0 : (f = n.value) != null && f.length ? "indeterminate" : !1 : !1;
761
+ }), v = (m) => {
762
+ var B, A;
763
+ const f = (B = n.value) == null ? void 0 : B.indexOf(m);
764
+ f !== -1 && f !== void 0 && ((A = n.value) == null || A.splice(f, 1));
724
765
  };
725
- return la({
766
+ return fo({
726
767
  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));
768
+ checked: y,
769
+ addModelValue: (m) => {
770
+ var f, B;
771
+ ((f = n.value) == null ? void 0 : f.indexOf(m)) === -1 && ((B = n.value) == null || B.push(m));
731
772
  },
732
- removeModelValue: m,
733
- toggleModelValue: (p) => {
734
- p ? n.value = [...l.value] : n.value = [];
773
+ removeModelValue: v,
774
+ toggleModelValue: (m) => {
775
+ m ? n.value = [...l.value] : n.value = [];
735
776
  },
736
- initAllValue: (p) => {
737
- l.value.push(p);
777
+ initAllValue: (m) => {
778
+ l.value.push(m);
738
779
  },
739
- removeAllValue: (p) => {
740
- l.value.splice(l.value.indexOf(p), 1), m(p);
780
+ removeAllValue: (m) => {
781
+ l.value.splice(l.value.indexOf(m), 1), v(m);
741
782
  },
742
783
  disabled: t,
743
784
  name: o == null ? void 0 : o.value
744
- }), (p, v) => (r(), f(a(J), {
785
+ }), (m, f) => (r(), d(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
+ _(m.$slots, "default")
750
791
  ]),
751
792
  _: 3
752
793
  }, 8, ["as", "as-child"]));
753
794
  }
754
- }), go = /* @__PURE__ */ h({
795
+ }), Ia = /* @__PURE__ */ h({
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(() => {
814
+ M();
815
+ const o = Te(), l = C(() => {
775
816
  var u;
776
817
  return ((u = o.disabled) == null ? void 0 : u.value) || e.disabled;
777
- }), n = b(() => o.selected.value.indexOf(e.value) !== -1), i = (u) => {
818
+ }), n = C(() => o.selected.value.indexOf(e.value) !== -1), i = (u) => {
778
819
  u ? 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
+ }), (u, y) => (r(), d(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__ */ h({
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, u) => (r(), d(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__ */ h({
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, u) => (r(), d(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__ */ h({
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, u) => (r(), d(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__ */ h({
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(), d(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
+ }), ho = ["data-radius", "data-accent-color"], mo = ["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__ */ h({
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" },
@@ -943,49 +984,49 @@ const lo = /* @__PURE__ */ h({
943
984
  emits: ["update:modelValue"],
944
985
  setup(s) {
945
986
  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;
987
+ const y = u.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", {
995
+ }, [l, n] = Z(s, "modelValue", {
955
996
  set(u) {
956
997
  return n.number ? Number(u) : n.trim ? u.trim() : u;
957
998
  }
958
- }), i = b(() => {
959
- const u = M(e, ["size", "variant"]);
999
+ }), i = C(() => {
1000
+ const u = R(e, ["size", "variant"]);
960
1001
  return e.class && u.push(e.class), u;
961
1002
  });
962
- return (u, _) => (r(), $("div", {
963
- class: V(["ui-TextField", i.value]),
1003
+ return (u, 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
+ }, u.$attrs, { class: "ui-TextFieldInput" }), null, 16, mo), [
1016
+ [Oe, a(l)]
976
1017
  ]),
977
- u.$slots.left ? (r(), $("div", ia, [
978
- g(u.$slots, "left")
1018
+ u.$slots.left ? (r(), $("div", vo, [
1019
+ _(u.$slots, "left")
979
1020
  ])) : z("", !0),
980
- u.$slots.right ? (r(), $("div", ca, [
981
- g(u.$slots, "right")
1021
+ u.$slots.right ? (r(), $("div", _o, [
1022
+ _(u.$slots, "right")
982
1023
  ])) : z("", !0)
983
- ], 42, na));
1024
+ ], 42, ho));
984
1025
  }
985
- }), ua = ["data-accent-color"], Bo = /* @__PURE__ */ h({
1026
+ }), go = ["data-accent-color"], Pa = /* @__PURE__ */ h({
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__ */ h({
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__ */ h({
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), u = 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(), d(a(pt), Me(Fe(a(u))), {
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__ */ h({
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, u) => (r(), d(a(ft), {
1113
1155
  to: e.to
1114
1156
  }, {
1115
1157
  default: c(() => [
1116
- d(a(ht), C({ ref: a(o) }, {
1158
+ p(a(ht), 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(mt), {
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
+ u[0] || (u[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__ */ h({
1167
1209
  __name: "SelectTrigger",
1168
1210
  props: {
1169
1211
  variant: { default: "surface" },
@@ -1175,22 +1217,35 @@ 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(), d(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
- }, null, 8, ["placeholder"])
1231
+ }, {
1232
+ default: c(({ selectedLabel: i, modelValue: u }) => [
1233
+ i.length ? _(l.$slots, "default", {
1234
+ key: 0,
1235
+ selectedLabel: i,
1236
+ modelValue: u
1237
+ }, () => [
1238
+ L(V(i.join(", ")), 1)
1239
+ ]) : (r(), $(H, { key: 1 }, [
1240
+ L(V(e.placeholder), 1)
1241
+ ], 64))
1242
+ ]),
1243
+ _: 3
1244
+ }, 8, ["placeholder"])
1190
1245
  ]),
1191
- d(a(_t), { "as-child": "" }, {
1246
+ p(a(gt), { "as-child": "" }, {
1192
1247
  default: c(() => [
1193
- d(a(k), {
1248
+ p(a(I), {
1194
1249
  class: "ui-SelectIcon",
1195
1250
  icon: "radix-icons:chevron-down"
1196
1251
  })
@@ -1198,10 +1253,10 @@ const lo = /* @__PURE__ */ h({
1198
1253
  _: 1
1199
1254
  })
1200
1255
  ]),
1201
- _: 1
1256
+ _: 3
1202
1257
  }, 8, ["class", "disabled", "data-accent-color", "data-radius"]));
1203
1258
  }
1204
- }), zo = /* @__PURE__ */ h({
1259
+ }), La = /* @__PURE__ */ h({
1205
1260
  __name: "SelectItem",
1206
1261
  props: {
1207
1262
  value: {},
@@ -1212,17 +1267,17 @@ const lo = /* @__PURE__ */ h({
1212
1267
  },
1213
1268
  setup(s) {
1214
1269
  const t = T(s);
1215
- return F(), (o, l) => (r(), f(a(yt), C({ class: "ui-SelectItem" }, a(t)), {
1270
+ return M(), (o, l) => (r(), d(a(yt), g({ class: "ui-SelectItem" }, a(t)), {
1216
1271
  default: c(() => [
1217
- d(a(Ct), { class: "ui-SelectItemIndicator" }, {
1272
+ p(a(Ct), { class: "ui-SelectItemIndicator" }, {
1218
1273
  default: c(() => [
1219
- d(a(k), { icon: "radix-icons:check" })
1274
+ p(a(I), { icon: "radix-icons:check" })
1220
1275
  ]),
1221
1276
  _: 1
1222
1277
  }),
1223
- d(a(bt), null, {
1278
+ p(a(bt), null, {
1224
1279
  default: c(() => [
1225
- g(o.$slots, "default")
1280
+ _(o.$slots, "default")
1226
1281
  ]),
1227
1282
  _: 3
1228
1283
  })
@@ -1230,7 +1285,7 @@ const lo = /* @__PURE__ */ h({
1230
1285
  _: 3
1231
1286
  }, 16));
1232
1287
  }
1233
- }), ko = /* @__PURE__ */ h({
1288
+ }), Ga = /* @__PURE__ */ h({
1234
1289
  __name: "SelectLabel",
1235
1290
  props: {
1236
1291
  for: {},
@@ -1239,26 +1294,26 @@ const lo = /* @__PURE__ */ h({
1239
1294
  },
1240
1295
  setup(s) {
1241
1296
  const t = T(s);
1242
- return F(), (o, l) => (r(), f(a(Bt), C({ class: "ui-SelectLabel" }, a(t)), {
1297
+ return M(), (o, l) => (r(), d(a($t), g({ class: "ui-SelectLabel" }, a(t)), {
1243
1298
  default: c(() => [
1244
- g(o.$slots, "default")
1299
+ _(o.$slots, "default")
1245
1300
  ]),
1246
1301
  _: 3
1247
1302
  }, 16));
1248
1303
  }
1249
- }), ma = (s, e) => {
1304
+ }), Bo = (s, e) => {
1250
1305
  const t = s.__vccOpts || s;
1251
1306
  for (const [o, l] of e)
1252
1307
  t[o] = l;
1253
1308
  return t;
1254
- }, va = {}, ga = {
1309
+ }, xo = {}, wo = {
1255
1310
  class: "ui-SelectSeparator",
1256
1311
  "aria-hidden": "true"
1257
1312
  };
1258
- function _a(s, e) {
1259
- return r(), $("div", ga);
1313
+ function So(s, e) {
1314
+ return r(), $("div", wo);
1260
1315
  }
1261
- const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxRoot"), Io = /* @__PURE__ */ h({
1316
+ const Ha = /* @__PURE__ */ Bo(xo, [["render", So]]), [zo, ko] = oe("ui_ComboboxRoot"), Ea = /* @__PURE__ */ h({
1262
1317
  __name: "ComboboxRoot",
1263
1318
  props: {
1264
1319
  size: { default: "2" },
@@ -1271,7 +1326,7 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
1271
1326
  ignoreFilter: { type: Boolean },
1272
1327
  modelValue: {},
1273
1328
  defaultValue: {},
1274
- multiple: { type: Boolean },
1329
+ multiple: { type: Boolean, default: !1 },
1275
1330
  dir: {},
1276
1331
  disabled: { type: Boolean },
1277
1332
  highlightOnHover: { type: Boolean },
@@ -1283,27 +1338,27 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
1283
1338
  },
1284
1339
  emits: ["update:modelValue", "highlight", "update:open"],
1285
1340
  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({
1341
+ const t = s, o = e, { size: l, color: n, highContrast: i } = ee(t), [u, y] = N(t, o, ["size", "color", "highContrast"]);
1342
+ return ko({
1288
1343
  size: l,
1289
1344
  color: n,
1290
1345
  highContrast: i
1291
- }), (m, p) => (r(), f(a($t), C({
1292
- class: ["ui-ComboboxRoot", a(_)]
1346
+ }), (v, m) => (r(), d(a(Bt), g({
1347
+ class: ["ui-ComboboxRoot", a(y)]
1293
1348
  }, a(u)), {
1294
1349
  default: c(() => [
1295
- g(m.$slots, "default")
1350
+ _(v.$slots, "default")
1296
1351
  ]),
1297
1352
  _: 3
1298
1353
  }, 16, ["class"]));
1299
1354
  }
1300
- }), ba = {
1355
+ }), Io = {
1301
1356
  key: 0,
1302
1357
  class: "ui-ComboboxValues"
1303
- }, Ba = ["aria-current", "value"], $a = ["onClick"], To = /* @__PURE__ */ h({
1358
+ }, To = ["aria-current", "value"], Vo = ["onClick"], ja = /* @__PURE__ */ h({
1304
1359
  inheritAttrs: !1,
1305
1360
  __name: "ComboboxInput",
1306
- props: /* @__PURE__ */ H({
1361
+ props: {
1307
1362
  variant: { default: "surface" },
1308
1363
  radius: {},
1309
1364
  placeholder: {},
@@ -1313,68 +1368,63 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
1313
1368
  disabled: { type: Boolean },
1314
1369
  asChild: { type: Boolean },
1315
1370
  as: {}
1316
- }, {
1317
- modelValue: { default: "" },
1318
- modelModifiers: {}
1319
- }),
1320
- emits: /* @__PURE__ */ H(["update:modelValue"], ["update:modelValue"]),
1371
+ },
1372
+ emits: ["update:modelValue"],
1321
1373
  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)));
1374
+ const t = xt(), n = we(s, e), i = P(-1), u = C(() => t.modelValue.value), y = (f) => typeof f == "object" ? JSON.stringify(f) : f.toString(), v = (f) => {
1375
+ i.value = f, t.modelValue.value.splice(f, 1), i.value = -1;
1376
+ }, m = (f) => {
1377
+ !f.target.value && (f.key === "Delete" || f.key === "Backspace") && (i.value !== -1 ? v(i.value) : (i.value = u.value.length - 1, setTimeout(() => {
1378
+ i.value = -1;
1379
+ }, 800)));
1328
1380
  };
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,
1381
+ return Le(u, () => {
1382
+ t.filterState.search = "";
1383
+ }, { deep: !0 }), (f, B) => (r(), d(a(wt), {
1384
+ class: k(["ui-ComboboxField", `r-variant-${f.variant}`]),
1385
+ "data-radius": f.radius,
1334
1386
  "data-multiple": a(t).multiple.value || void 0
1335
1387
  }, {
1336
1388
  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),
1389
+ a(t).multiple.value ? (r(), $("div", Io, [
1390
+ (r(!0), $(H, null, j(u.value, (A, F) => (r(), $("div", {
1391
+ key: y(A),
1340
1392
  class: "ui-ComboboxValuesItem",
1341
- "aria-current": L === u.value,
1342
- value: R
1393
+ "aria-current": F === i.value,
1394
+ value: A
1343
1395
  }, [
1344
- g(y.$slots, "item", { value: R }, () => [
1345
- B("span", null, I(m(R)), 1)
1396
+ _(f.$slots, "item", { value: A }, () => [
1397
+ b("span", null, V(y(A)), 1)
1346
1398
  ]),
1347
- B("button", {
1399
+ b("button", {
1348
1400
  type: "button",
1349
1401
  tabindex: "-1",
1350
- onClick: A((E) => p(L), ["prevent"])
1402
+ onClick: D((E) => v(F), ["prevent"])
1351
1403
  }, [
1352
- d(a(k), { icon: "lucide:x" })
1353
- ], 8, $a)
1354
- ], 8, Ba))), 128)),
1355
- d(a(me), C({
1356
- ...y.$attrs,
1404
+ p(a(I), { icon: "lucide:x" })
1405
+ ], 8, Vo)
1406
+ ], 8, To))), 128)),
1407
+ p(a(ve), g({
1408
+ ...f.$attrs,
1357
1409
  ...a(n),
1358
1410
  variant: void 0,
1359
1411
  radius: void 0
1360
1412
  }, {
1361
- modelValue: i.value,
1362
- "onUpdate:modelValue": D[0] || (D[0] = (R) => i.value = R),
1363
1413
  class: "ui-ComboboxInput",
1364
- onKeydown: v
1365
- }), null, 16, ["modelValue"])
1366
- ])) : (r(), f(a(me), C({
1414
+ onKeydown: m
1415
+ }), null, 16)
1416
+ ])) : (r(), d(a(ve), g({
1367
1417
  key: 1,
1368
1418
  class: "ui-ComboboxInput"
1369
1419
  }, {
1370
- ...y.$attrs,
1420
+ ...f.$attrs,
1371
1421
  ...a(n),
1372
1422
  variant: void 0,
1373
1423
  radius: void 0
1374
1424
  }), null, 16)),
1375
- d(a(St), { class: "ui-ComboboxTrigger" }, {
1425
+ p(a(St), { class: "ui-ComboboxTrigger" }, {
1376
1426
  default: c(() => [
1377
- d(a(k), { icon: "radix-icons:chevron-down" })
1427
+ p(a(I), { icon: "radix-icons:chevron-down" })
1378
1428
  ]),
1379
1429
  _: 1
1380
1430
  })
@@ -1382,7 +1432,7 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
1382
1432
  _: 3
1383
1433
  }, 8, ["class", "data-radius", "data-multiple"]));
1384
1434
  }
1385
- }), Ro = /* @__PURE__ */ h({
1435
+ }), Wa = /* @__PURE__ */ h({
1386
1436
  inheritAttrs: !1,
1387
1437
  __name: "ComboboxContent",
1388
1438
  props: {
@@ -1412,16 +1462,16 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
1412
1462
  },
1413
1463
  emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside"],
1414
1464
  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"), _;
1465
+ const { forwardRef: t } = M(), o = s, n = we(o, e), i = zo(), u = C(() => {
1466
+ const y = ["r-size-" + i.size.value, "r-variant-" + o.variant];
1467
+ return i.highContrast.value && y.push("r-high-contrast"), y;
1418
1468
  });
1419
- return (_, m) => (r(), f(a(zt), {
1469
+ return (y, v) => (r(), d(a(zt), {
1420
1470
  to: o.to
1421
1471
  }, {
1422
1472
  default: c(() => [
1423
- d(a(kt), C({ ref: a(t) }, {
1424
- ..._.$attrs,
1473
+ p(a(kt), g({ ref: a(t) }, {
1474
+ ...y.$attrs,
1425
1475
  ...a(n),
1426
1476
  position: "popper",
1427
1477
  to: void 0,
@@ -1431,33 +1481,33 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
1431
1481
  "data-accent-color": a(i).color.value
1432
1482
  }), {
1433
1483
  default: c(() => [
1434
- d(a(de), {
1484
+ p(a(de), {
1435
1485
  type: "auto",
1436
1486
  class: "ui-ScrollArea"
1437
1487
  }, {
1438
1488
  default: c(() => [
1439
- d(a(Vt), {
1489
+ p(a(It), {
1440
1490
  class: "ui-ComboboxViewport",
1441
1491
  "as-child": ""
1442
1492
  }, {
1443
1493
  default: c(() => [
1444
- d(a(pe), { class: "ui-ScrollAreaViewport" }, {
1494
+ p(a(pe), { class: "ui-ScrollAreaViewport" }, {
1445
1495
  default: c(() => [
1446
- g(_.$slots, "default")
1496
+ _(y.$slots, "default")
1447
1497
  ]),
1448
1498
  _: 3
1449
1499
  })
1450
1500
  ]),
1451
1501
  _: 3
1452
1502
  }),
1453
- m[0] || (m[0] = B("div", { class: "ui-ScrollAreaViewportFocusRing" }, null, -1)),
1454
- d(a(ne), {
1503
+ v[0] || (v[0] = b("div", { class: "ui-ScrollAreaViewportFocusRing" }, null, -1)),
1504
+ p(a(ne), {
1455
1505
  class: "ui-ScrollAreaScrollbar",
1456
1506
  "data-size": 1,
1457
1507
  orientation: "vertical"
1458
1508
  }, {
1459
1509
  default: c(() => [
1460
- d(a(re), { class: "ui-ScrollAreaThumb" })
1510
+ p(a(re), { class: "ui-ScrollAreaThumb" })
1461
1511
  ]),
1462
1512
  _: 1
1463
1513
  })
@@ -1471,7 +1521,7 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
1471
1521
  _: 3
1472
1522
  }, 8, ["to"]));
1473
1523
  }
1474
- }), Po = /* @__PURE__ */ h({
1524
+ }), Ua = /* @__PURE__ */ h({
1475
1525
  __name: "ComboboxItem",
1476
1526
  props: {
1477
1527
  textValue: {},
@@ -1482,20 +1532,20 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
1482
1532
  },
1483
1533
  setup(s) {
1484
1534
  const t = T(s);
1485
- return (o, l) => (r(), f(a(It), C({ class: "ui-ComboboxItem" }, a(t)), {
1535
+ return (o, l) => (r(), d(a(Tt), g({ class: "ui-ComboboxItem" }, a(t)), {
1486
1536
  default: c(() => [
1487
- d(a(Tt), { class: "ui-ComboboxItemIndicator" }, {
1537
+ p(a(Vt), { class: "ui-ComboboxItemIndicator" }, {
1488
1538
  default: c(() => [
1489
- d(a(k), { icon: "radix-icons:check" })
1539
+ p(a(I), { icon: "radix-icons:check" })
1490
1540
  ]),
1491
1541
  _: 1
1492
1542
  }),
1493
- g(o.$slots, "default")
1543
+ _(o.$slots, "default")
1494
1544
  ]),
1495
1545
  _: 3
1496
1546
  }, 16));
1497
1547
  }
1498
- }), Do = /* @__PURE__ */ h({
1548
+ }), qa = /* @__PURE__ */ h({
1499
1549
  __name: "ComboboxLabel",
1500
1550
  props: {
1501
1551
  for: {},
@@ -1504,16 +1554,16 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
1504
1554
  },
1505
1555
  setup(s) {
1506
1556
  const t = T(s);
1507
- return F(), (o, l) => (r(), f(a(Rt), C({ class: "ui-ComboboxLabel" }, a(t)), {
1557
+ return M(), (o, l) => (r(), d(a(At), g({ class: "ui-ComboboxLabel" }, a(t)), {
1508
1558
  default: c(() => [
1509
- g(o.$slots, "default")
1559
+ _(o.$slots, "default")
1510
1560
  ]),
1511
1561
  _: 3
1512
1562
  }, 16));
1513
1563
  }
1514
- }), xa = ["data-accent-color"], Ao = /* @__PURE__ */ h({
1564
+ }), Ao = ["data-accent-color"], Na = /* @__PURE__ */ h({
1515
1565
  __name: "Radio",
1516
- props: /* @__PURE__ */ H({
1566
+ props: /* @__PURE__ */ Q({
1517
1567
  color: {},
1518
1568
  size: { default: "2" },
1519
1569
  variant: { default: "surface" },
@@ -1526,21 +1576,21 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
1526
1576
  }),
1527
1577
  emits: ["update:modelValue"],
1528
1578
  setup(s) {
1529
- const e = s, [t, o] = K(s, "modelValue", {
1579
+ const e = s, [t, o] = Z(s, "modelValue", {
1530
1580
  set(n) {
1531
1581
  return o.number ? Number(n) : o.trim ? n.trim() : n;
1532
1582
  }
1533
- }), l = b(() => M(e, ["size", "variant", "highContrast"]));
1583
+ }), l = C(() => R(e, ["size", "variant", "highContrast"]));
1534
1584
  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]),
1585
+ "onUpdate:modelValue": i[0] || (i[0] = (u) => be(t) ? t.value = u : null),
1586
+ class: k(["ui-Radio", l.value]),
1537
1587
  type: "radio",
1538
1588
  "data-accent-color": e.color
1539
- }, null, 10, xa)), [
1540
- [Le, a(t)]
1589
+ }, null, 10, Ao)), [
1590
+ [Ge, a(t)]
1541
1591
  ]);
1542
1592
  }
1543
- }), [Te, wa] = ae("ui_RadioGroupRoot"), Oo = /* @__PURE__ */ h({
1593
+ }), [Ae, Ro] = oe("ui_RadioGroupRoot"), Ka = /* @__PURE__ */ h({
1544
1594
  __name: "RadioGroupRoot",
1545
1595
  props: {
1546
1596
  color: {},
@@ -1560,15 +1610,15 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
1560
1610
  },
1561
1611
  emits: ["update:modelValue"],
1562
1612
  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)), {
1613
+ const t = e, o = s, l = q(o, t, ["color", "size", "variant", "highContrast"]), { size: n, variant: i, color: u, highContrast: y } = ee(o);
1614
+ return Ro({ size: n, variant: i, color: u, highContrast: y }), (v, m) => (r(), d(a(Se), g({ class: "ui-RadioGroupRoot" }, a(l)), {
1565
1615
  default: c(() => [
1566
- g(m.$slots, "default")
1616
+ _(v.$slots, "default")
1567
1617
  ]),
1568
1618
  _: 3
1569
1619
  }, 16));
1570
1620
  }
1571
- }), Sa = { class: "ui-RadioGroupItem" }, Mo = /* @__PURE__ */ h({
1621
+ }), Po = { class: "ui-RadioGroupItem" }, Qa = /* @__PURE__ */ h({
1572
1622
  __name: "RadioGroupItem",
1573
1623
  props: {
1574
1624
  id: {},
@@ -1580,7 +1630,7 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
1580
1630
  required: { type: Boolean }
1581
1631
  },
1582
1632
  setup(s) {
1583
- const t = T(s), o = Te(), l = b(() => {
1633
+ const t = T(s), o = Ae(), l = C(() => {
1584
1634
  var i;
1585
1635
  const n = [
1586
1636
  `r-size-${o.size.value}`,
@@ -1590,16 +1640,16 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
1590
1640
  });
1591
1641
  return (n, i) => {
1592
1642
  var u;
1593
- return r(), $("label", Sa, [
1594
- d(a(we), C({
1643
+ return r(), $("label", Po, [
1644
+ p(a(ze), g({
1595
1645
  class: ["ui-Radio", l.value],
1596
1646
  "data-accent-color": (u = a(o).color) == null ? void 0 : u.value
1597
1647
  }, a(t)), null, 16, ["class", "data-accent-color"]),
1598
- g(n.$slots, "default")
1648
+ _(n.$slots, "default")
1599
1649
  ]);
1600
1650
  };
1601
1651
  }
1602
- }), Fo = /* @__PURE__ */ h({
1652
+ }), Za = /* @__PURE__ */ h({
1603
1653
  __name: "RadioCardsItem",
1604
1654
  props: {
1605
1655
  id: {},
@@ -1612,11 +1662,11 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
1612
1662
  },
1613
1663
  setup(s) {
1614
1664
  const t = T(s);
1615
- F();
1616
- const o = Te();
1665
+ M();
1666
+ const o = Ae();
1617
1667
  return (l, n) => {
1618
1668
  var i, u;
1619
- return r(), f(a(we), C({
1669
+ return r(), d(a(ze), g({
1620
1670
  class: "ui-RadioCardsItem",
1621
1671
  "data-accent-color": (i = a(o).color) == null ? void 0 : i.value,
1622
1672
  "data-size": a(o).size.value,
@@ -1624,11 +1674,11 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
1624
1674
  "data-high-contrast": (u = a(o).highContrast) == null ? void 0 : u.value
1625
1675
  }, { ...a(t), asChild: !1 }), {
1626
1676
  default: c(() => [
1627
- d(Kt, {
1677
+ p(Yt, {
1628
1678
  "as-child": a(t).asChild
1629
1679
  }, {
1630
1680
  default: c(() => [
1631
- g(l.$slots, "default")
1681
+ _(l.$slots, "default")
1632
1682
  ]),
1633
1683
  _: 3
1634
1684
  }, 8, ["as-child"])
@@ -1637,7 +1687,7 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
1637
1687
  }, 16, ["data-accent-color", "data-size", "data-variant", "data-high-contrast"]);
1638
1688
  };
1639
1689
  }
1640
- }), Lo = /* @__PURE__ */ h({
1690
+ }), Ja = /* @__PURE__ */ h({
1641
1691
  __name: "RadioTabsList",
1642
1692
  props: {
1643
1693
  size: { default: "2" },
@@ -1654,42 +1704,37 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
1654
1704
  },
1655
1705
  emits: ["update:modelValue"],
1656
1706
  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), {
1707
+ const t = e, o = s, [l, n] = N(o, t, ["size"]);
1708
+ return (i, u) => (r(), d(a(Se), g(a(l), {
1659
1709
  class: ["ui-RadioTabsList", a(n)]
1660
1710
  }), {
1661
1711
  default: c(() => [
1662
- g(i.$slots, "default")
1712
+ _(i.$slots, "default")
1663
1713
  ]),
1664
1714
  _: 3
1665
1715
  }, 16, ["class"]));
1666
1716
  }
1667
- }), Go = /* @__PURE__ */ h({
1717
+ }), Xa = /* @__PURE__ */ h({
1668
1718
  __name: "TabsList",
1669
1719
  props: {
1670
1720
  size: { default: "2" },
1671
- wrap: {},
1672
- justify: {},
1673
1721
  color: {},
1674
1722
  highContrast: { type: Boolean }
1675
1723
  },
1676
1724
  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
1725
+ const e = s, t = C(() => R(e, ["size", "highContrast"]));
1726
+ return (o, l) => (r(), d(a(Rt), {
1727
+ class: k(["ui-TabList", t.value]),
1728
+ "data-accent-color": e.color
1685
1729
  }, {
1686
1730
  default: c(() => [
1687
- g(t.$slots, "default")
1731
+ p(a(Pt), { class: "ui-TabsIndicator" }),
1732
+ _(o.$slots, "default")
1688
1733
  ]),
1689
1734
  _: 3
1690
- }, 8, ["data-accent-color", "data-size", "data-wrap", "data-justify", "data-high-contrast"]));
1735
+ }, 8, ["class", "data-accent-color"]));
1691
1736
  }
1692
- }), za = { class: "ui-TabTriggerInner" }, ka = { class: "ui-TabTriggerInnerHidden" }, Ho = /* @__PURE__ */ h({
1737
+ }), Do = { class: "ui-TabTriggerInner" }, Oo = { class: "ui-TabTriggerInnerHidden" }, Ya = /* @__PURE__ */ h({
1693
1738
  __name: "TabsTrigger",
1694
1739
  props: {
1695
1740
  value: {},
@@ -1699,42 +1744,159 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
1699
1744
  },
1700
1745
  setup(s) {
1701
1746
  const t = T(s);
1702
- return (o, l) => (r(), f(a(Dt), C(a(t), { class: "ui-TabTrigger" }), {
1747
+ return (o, l) => (r(), d(a(Dt), g(a(t), { class: "ui-TabTrigger" }), {
1703
1748
  default: c(() => [
1704
- B("span", za, [
1705
- g(o.$slots, "default")
1749
+ b("span", Do, [
1750
+ _(o.$slots, "default")
1706
1751
  ]),
1707
- B("span", ka, [
1708
- g(o.$slots, "default")
1752
+ b("span", Oo, [
1753
+ _(o.$slots, "default")
1709
1754
  ])
1710
1755
  ]),
1711
1756
  _: 3
1712
1757
  }, 16));
1713
1758
  }
1714
- }), Eo = /* @__PURE__ */ h({
1715
- __name: "CollapsibleChevron",
1759
+ }), es = /* @__PURE__ */ h({
1760
+ __name: "AccordionRoot",
1716
1761
  props: {
1717
- color: { default: "gray" },
1718
- radius: {},
1719
- variant: { default: "ghost" },
1720
- size: {},
1721
- highContrast: { type: Boolean },
1762
+ size: { default: "1" },
1763
+ collapsible: { type: Boolean },
1722
1764
  disabled: { type: Boolean },
1765
+ dir: {},
1766
+ orientation: {},
1767
+ unmountOnHide: { type: Boolean },
1768
+ asChild: { type: Boolean },
1769
+ as: {},
1770
+ type: {},
1771
+ modelValue: {},
1772
+ defaultValue: {}
1773
+ },
1774
+ emits: ["update:modelValue"],
1775
+ setup(s, { emit: e }) {
1776
+ const t = s, o = e, [l, n] = N(t, o, ["size"]);
1777
+ return (i, u) => (r(), d(a(Ot), g(a(l), {
1778
+ class: ["ui-AccordionRoot", a(n)]
1779
+ }), {
1780
+ default: c(() => [
1781
+ _(i.$slots, "default")
1782
+ ]),
1783
+ _: 3
1784
+ }, 16, ["class"]));
1785
+ }
1786
+ }), ts = /* @__PURE__ */ h({
1787
+ __name: "AccordionItem",
1788
+ props: {
1789
+ disabled: { type: Boolean },
1790
+ value: {},
1791
+ unmountOnHide: { type: Boolean },
1723
1792
  asChild: { type: Boolean },
1724
1793
  as: {}
1725
1794
  },
1795
+ setup(s) {
1796
+ const t = T(s);
1797
+ return (o, l) => (r(), d(a(Mt), g(a(t), { class: "ui-AccordionItem" }), {
1798
+ default: c(() => [
1799
+ _(o.$slots, "default")
1800
+ ]),
1801
+ _: 3
1802
+ }, 16));
1803
+ }
1804
+ }), os = /* @__PURE__ */ h({
1805
+ inheritAttrs: !1,
1806
+ __name: "AccordionContent",
1807
+ props: {
1808
+ forceMount: { type: Boolean },
1809
+ asChild: { type: Boolean },
1810
+ as: {}
1811
+ },
1812
+ setup(s) {
1813
+ const t = T(s);
1814
+ return (o, l) => (r(), d(a(Ft), g(a(t), { class: "ui-AccordionContent" }), {
1815
+ default: c(() => [
1816
+ b("div", g({ class: "ui-AccordionContentInner" }, o.$attrs), [
1817
+ _(o.$slots, "default")
1818
+ ], 16)
1819
+ ]),
1820
+ _: 3
1821
+ }, 16));
1822
+ }
1823
+ }), Mo = ["data-accent-color"], Fo = /* @__PURE__ */ h({
1824
+ __name: "PlusMinusIcon",
1825
+ props: {
1826
+ color: { default: void 0 },
1827
+ size: { default: "1" }
1828
+ },
1726
1829
  setup(s) {
1727
1830
  const e = s;
1728
- return (t, o) => (r(), f(Q, C({ class: "ui-CollapsibleChevron" }, e, { as: a(At) }), {
1831
+ return (t, o) => (r(), $("div", {
1832
+ class: k(["ui-PlusMinusIcon", `r-size-${e.size}`]),
1833
+ "data-accent-color": e.color
1834
+ }, o[0] || (o[0] = [
1835
+ b("div", { class: "ui-PlusMinusIcon-1" }, null, -1),
1836
+ b("div", { class: "ui-PlusMinusIcon-2" }, null, -1)
1837
+ ]), 10, Mo));
1838
+ }
1839
+ }), Lo = /* @__PURE__ */ h({
1840
+ __name: "ChevronIcon",
1841
+ props: {
1842
+ arrowTransform: { default: "right-down" }
1843
+ },
1844
+ setup(s) {
1845
+ return (e, t) => (r(), d(a(I), {
1846
+ class: "ui-ChevronIcon",
1847
+ icon: "lucide:chevron-right",
1848
+ "data-arrow-transform": e.arrowTransform
1849
+ }, null, 8, ["data-arrow-transform"]));
1850
+ }
1851
+ }), Go = { class: "ui-AccordionTriggerText" }, as = /* @__PURE__ */ h({
1852
+ __name: "AccordionTrigger",
1853
+ props: {
1854
+ indicator: { default: "chevron" },
1855
+ asChild: { type: Boolean },
1856
+ as: {}
1857
+ },
1858
+ setup(s) {
1859
+ const e = s, [t, o] = Qt(e, ["size"]);
1860
+ return (l, n) => (r(), d(a(Lt), g({
1861
+ class: ["ui-AccordionTrigger", a(o)]
1862
+ }, a(t)), {
1729
1863
  default: c(() => [
1730
- d(a(k), { icon: "lucide:chevron-right" })
1864
+ b("div", Go, [
1865
+ _(l.$slots, "default")
1866
+ ]),
1867
+ e.indicator === "plus-minus" ? (r(), d(Fo, {
1868
+ key: 0,
1869
+ class: "ui-AccordionTriggerIcon"
1870
+ })) : e.indicator === "chevron" ? (r(), d(Lo, {
1871
+ key: 1,
1872
+ "arrow-transform": "down-up"
1873
+ })) : z("", !0)
1731
1874
  ]),
1732
- _: 1
1733
- }, 16, ["as"]));
1875
+ _: 3
1876
+ }, 16, ["class"]));
1734
1877
  }
1735
- }), Va = /* @__PURE__ */ h({
1878
+ }), ss = /* @__PURE__ */ h({
1879
+ inheritAttrs: !1,
1880
+ __name: "CollapsibleContent",
1881
+ props: {
1882
+ forceMount: { type: Boolean },
1883
+ asChild: { type: Boolean },
1884
+ as: {}
1885
+ },
1886
+ setup(s) {
1887
+ const t = T(s);
1888
+ return (o, l) => (r(), d(a(Gt), g(a(t), { class: "ui-CollapsibleContent" }), {
1889
+ default: c(() => [
1890
+ b("div", g({ class: "ui-CollapsibleContentInner" }, o.$attrs), [
1891
+ _(o.$slots, "default")
1892
+ ], 16)
1893
+ ]),
1894
+ _: 3
1895
+ }, 16));
1896
+ }
1897
+ }), Ho = /* @__PURE__ */ h({
1736
1898
  __name: "Pagination",
1737
- props: /* @__PURE__ */ H({
1899
+ props: /* @__PURE__ */ Q({
1738
1900
  total: {},
1739
1901
  perpage: { default: 10 },
1740
1902
  edge: { default: 2 },
@@ -1752,131 +1914,131 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
1752
1914
  }),
1753
1915
  emits: ["update:page"],
1754
1916
  setup(s) {
1755
- const e = s, t = K(s, "page"), o = b(() => M(e, ["size", "variant"])), l = b(() => ({
1917
+ const e = s, t = Z(s, "page"), o = C(() => R(e, ["size", "variant"])), l = C(() => ({
1756
1918
  color: e.color,
1757
1919
  radius: e.radius,
1758
1920
  variant: e.variant,
1759
1921
  size: e.size,
1760
1922
  highContrast: e.highContrast,
1761
1923
  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);
1924
+ })), n = C(() => {
1925
+ const v = Math.ceil(e.total / e.perpage), m = t.value > 1 ? t.value - 1 : null, f = t.value < v ? t.value + 1 : null, B = 5 + e.edge * 2, A = v > B && t.value > e.edge + 3, F = v > B && t.value + e.edge + 2 < v, E = [];
1926
+ let K = 2, J = v - 1;
1927
+ A && !F ? K = Math.max(4, v - 2 * e.edge - 2) : !A && F ? J = Math.min(2 * e.edge + 3, v - 1) : A && F && (K = t.value - e.edge, J = t.value + e.edge);
1928
+ for (let X = K; X <= J; X++)
1929
+ E.push(X);
1768
1930
  return {
1769
- totalPages: m,
1770
- prev: p,
1771
- next: v,
1772
- hasLeftEdge: D,
1773
- hasRightEdge: R,
1774
- pageList: L
1931
+ totalPages: v,
1932
+ prev: m,
1933
+ next: f,
1934
+ hasLeftEdge: A,
1935
+ hasRightEdge: F,
1936
+ pageList: E
1775
1937
  };
1776
- }), i = (m) => {
1777
- t.value = m;
1938
+ }), i = (v) => {
1939
+ t.value = v;
1778
1940
  }, u = () => {
1779
1941
  i(t.value - e.edge);
1780
- }, _ = () => {
1942
+ }, y = () => {
1781
1943
  i(t.value + e.edge);
1782
1944
  };
1783
- return (m, p) => (r(), $("div", {
1784
- class: V(["ui-Pagination", o.value])
1945
+ return (v, m) => (r(), $("div", {
1946
+ class: k(["ui-Pagination", o.value])
1785
1947
  }, [
1786
- n.value.prev ? (r(), f(Q, C({ key: 0 }, l.value, {
1948
+ n.value.prev ? (r(), d(Y, g({ key: 0 }, l.value, {
1787
1949
  "aria-label": "Previous",
1788
- onClick: p[0] || (p[0] = A((v) => i(n.value.prev), ["prevent"]))
1950
+ onClick: m[0] || (m[0] = D((f) => i(n.value.prev), ["prevent"]))
1789
1951
  }), {
1790
1952
  default: c(() => [
1791
- g(m.$slots, "prev-page", {
1953
+ _(v.$slots, "prev-page", {
1792
1954
  page: n.value.prev
1793
1955
  }, () => [
1794
- d(a(k), { icon: "lucide:chevron-left" })
1956
+ p(a(I), { icon: "lucide:chevron-left" })
1795
1957
  ])
1796
1958
  ]),
1797
1959
  _: 3
1798
1960
  }, 16)) : z("", !0),
1799
- d(q, C(l.value, {
1961
+ p(W, g(l.value, {
1800
1962
  disabled: t.value === 1,
1801
1963
  "aria-current": "page",
1802
- onClick: p[1] || (p[1] = A((v) => i(1), ["prevent"]))
1964
+ onClick: m[1] || (m[1] = D((f) => i(1), ["prevent"]))
1803
1965
  }), {
1804
1966
  default: c(() => [
1805
- g(m.$slots, "page", { page: 1 }, () => [
1806
- p[4] || (p[4] = U("1"))
1967
+ _(v.$slots, "page", { page: 1 }, () => [
1968
+ m[4] || (m[4] = L("1"))
1807
1969
  ])
1808
1970
  ]),
1809
1971
  _: 3
1810
1972
  }, 16, ["disabled"]),
1811
- n.value.hasLeftEdge ? (r(), f(Q, C({ key: 1 }, l.value, {
1812
- onClick: A(u, ["prevent"])
1973
+ n.value.hasLeftEdge ? (r(), d(Y, g({ key: 1 }, l.value, {
1974
+ onClick: D(u, ["prevent"])
1813
1975
  }), {
1814
1976
  default: c(() => [
1815
- g(m.$slots, "prev-edge", {
1816
- page: t.value - m.edge
1977
+ _(v.$slots, "prev-edge", {
1978
+ page: t.value - v.edge
1817
1979
  }, () => [
1818
- d(a(k), { icon: "lucide:ellipsis" })
1980
+ p(a(I), { icon: "lucide:ellipsis" })
1819
1981
  ])
1820
1982
  ]),
1821
1983
  _: 3
1822
1984
  }, 16)) : z("", !0),
1823
- (r(!0), $(j, null, W(n.value.pageList, (v) => (r(), f(q, C({
1824
- key: v,
1985
+ (r(!0), $(H, null, j(n.value.pageList, (f) => (r(), d(W, g({
1986
+ key: f,
1825
1987
  ref_for: !0
1826
1988
  }, l.value, {
1827
- disabled: v === t.value,
1989
+ disabled: f === t.value,
1828
1990
  "aria-current": "page",
1829
- onClick: A((y) => i(v), ["prevent"])
1991
+ onClick: D((B) => i(f), ["prevent"])
1830
1992
  }), {
1831
1993
  default: c(() => [
1832
- g(m.$slots, "page", { page: v }, () => [
1833
- U(I(v), 1)
1994
+ _(v.$slots, "page", { page: f }, () => [
1995
+ L(V(f), 1)
1834
1996
  ])
1835
1997
  ]),
1836
1998
  _: 2
1837
1999
  }, 1040, ["disabled", "onClick"]))), 128)),
1838
- n.value.hasRightEdge ? (r(), f(Q, C({ key: 2 }, l.value, {
1839
- onClick: A(_, ["prevent"])
2000
+ n.value.hasRightEdge ? (r(), d(Y, g({ key: 2 }, l.value, {
2001
+ onClick: D(y, ["prevent"])
1840
2002
  }), {
1841
2003
  default: c(() => [
1842
- g(m.$slots, "next-edge", {
1843
- page: t.value + m.edge
2004
+ _(v.$slots, "next-edge", {
2005
+ page: t.value + v.edge
1844
2006
  }, () => [
1845
- d(a(k), { icon: "lucide:ellipsis" })
2007
+ p(a(I), { icon: "lucide:ellipsis" })
1846
2008
  ])
1847
2009
  ]),
1848
2010
  _: 3
1849
2011
  }, 16)) : z("", !0),
1850
- n.value.totalPages > 1 ? (r(), f(q, C({ key: 3 }, l.value, {
2012
+ n.value.totalPages > 1 ? (r(), d(W, g({ key: 3 }, l.value, {
1851
2013
  disabled: n.value.totalPages === t.value,
1852
2014
  "aria-current": "page",
1853
- onClick: p[2] || (p[2] = A((v) => i(n.value.totalPages), ["prevent"]))
2015
+ onClick: m[2] || (m[2] = D((f) => i(n.value.totalPages), ["prevent"]))
1854
2016
  }), {
1855
2017
  default: c(() => [
1856
- g(m.$slots, "page", {
2018
+ _(v.$slots, "page", {
1857
2019
  page: n.value.totalPages
1858
2020
  }, () => [
1859
- U(I(n.value.totalPages), 1)
2021
+ L(V(n.value.totalPages), 1)
1860
2022
  ])
1861
2023
  ]),
1862
2024
  _: 3
1863
2025
  }, 16, ["disabled"])) : z("", !0),
1864
- n.value.next ? (r(), f(Q, C({ key: 4 }, l.value, {
2026
+ n.value.next ? (r(), d(Y, g({ key: 4 }, l.value, {
1865
2027
  "aria-label": "Next",
1866
- onClick: p[3] || (p[3] = A((v) => i(n.value.next), ["prevent"]))
2028
+ onClick: m[3] || (m[3] = D((f) => i(n.value.next), ["prevent"]))
1867
2029
  }), {
1868
2030
  default: c(() => [
1869
- g(m.$slots, "next-page", {
2031
+ _(v.$slots, "next-page", {
1870
2032
  page: n.value.next
1871
2033
  }, () => [
1872
- d(a(k), { icon: "lucide:chevron-right" })
2034
+ p(a(I), { icon: "lucide:chevron-right" })
1873
2035
  ])
1874
2036
  ]),
1875
2037
  _: 3
1876
2038
  }, 16)) : z("", !0)
1877
2039
  ], 2));
1878
2040
  }
1879
- }), Ia = ["data-size", "data-variant"], Ta = ["data-layout"], jo = /* @__PURE__ */ h({
2041
+ }), Eo = ["data-size", "data-variant"], jo = ["data-layout"], ls = /* @__PURE__ */ h({
1880
2042
  __name: "Table",
1881
2043
  props: {
1882
2044
  size: { default: "2" },
@@ -1890,20 +2052,20 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
1890
2052
  "data-size": e.size,
1891
2053
  "data-variant": e.variant
1892
2054
  }, [
1893
- d(ze, null, {
2055
+ p(ke, null, {
1894
2056
  default: c(() => [
1895
- B("table", {
2057
+ b("table", {
1896
2058
  class: "ui-TableContent",
1897
2059
  "data-layout": e.layout
1898
2060
  }, [
1899
- g(t.$slots, "default")
1900
- ], 8, Ta)
2061
+ _(t.$slots, "default")
2062
+ ], 8, jo)
1901
2063
  ]),
1902
2064
  _: 3
1903
2065
  })
1904
- ], 8, Ia));
2066
+ ], 8, Eo));
1905
2067
  }
1906
- }), Wo = /* @__PURE__ */ h({
2068
+ }), ns = /* @__PURE__ */ h({
1907
2069
  __name: "Separator",
1908
2070
  props: {
1909
2071
  as: { default: "span" },
@@ -1913,15 +2075,16 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
1913
2075
  },
1914
2076
  setup(s) {
1915
2077
  const e = s;
1916
- return (t, o) => (r(), f(a(J), {
2078
+ return (t, o) => (r(), d(a(U), {
1917
2079
  as: e.as,
1918
- class: V(["ui-Separator", `r-size-${e.size}`]),
2080
+ class: k(["ui-Separator", `r-size-${e.size}`]),
1919
2081
  role: "separator",
1920
2082
  "data-accent-color": e.color,
1921
2083
  "aria-orientation": e.orientation
1922
2084
  }, null, 8, ["as", "class", "data-accent-color", "aria-orientation"]));
1923
2085
  }
1924
- }), Ra = ["textContent"], Pa = /* @__PURE__ */ h({
2086
+ }), Wo = ["textContent"], Uo = /* @__PURE__ */ h({
2087
+ inheritAttrs: !1,
1925
2088
  __name: "Tooltip",
1926
2089
  props: {
1927
2090
  to: {},
@@ -1951,7 +2114,7 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
1951
2114
  },
1952
2115
  setup(s) {
1953
2116
  const e = s;
1954
- return (t, o) => (r(), f(a(Ot), {
2117
+ return (t, o) => (r(), d(a(Ht), {
1955
2118
  "delay-duration": e.delayDuration,
1956
2119
  "disable-closing-trigger": e.disableClosingTrigger,
1957
2120
  "disable-hoverable-content": e.disableHoverableContent,
@@ -1960,22 +2123,22 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
1960
2123
  "skip-delay-duration": e.skipDelayDuration
1961
2124
  }, {
1962
2125
  default: c(() => [
1963
- d(a(Mt), null, {
2126
+ p(a(Et), null, {
1964
2127
  default: c(() => [
1965
- d(a(Ft), {
2128
+ p(a(jt), g({
1966
2129
  as: e.as,
1967
2130
  "as-child": e.asChild
1968
- }, {
2131
+ }, t.$attrs), {
1969
2132
  default: c(() => [
1970
- g(t.$slots, "default")
2133
+ _(t.$slots, "default")
1971
2134
  ]),
1972
2135
  _: 3
1973
- }, 8, ["as", "as-child"]),
1974
- d(a(Lt), {
2136
+ }, 16, ["as", "as-child"]),
2137
+ p(a(Wt), {
1975
2138
  to: e.to
1976
2139
  }, {
1977
2140
  default: c(() => [
1978
- d(a(Gt), {
2141
+ p(a(Ut), {
1979
2142
  class: "ui-Tooltip",
1980
2143
  align: e.align,
1981
2144
  "align-offset": e.alignOffset,
@@ -1990,13 +2153,13 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
1990
2153
  sticky: e.sticky
1991
2154
  }, {
1992
2155
  default: c(() => [
1993
- g(t.$slots, "content", {}, () => [
1994
- B("p", {
2156
+ _(t.$slots, "content", {}, () => [
2157
+ b("p", {
1995
2158
  class: "ui-TooltipText",
1996
- textContent: I(e.content)
1997
- }, null, 8, Ra)
2159
+ textContent: V(e.content)
2160
+ }, null, 8, Wo)
1998
2161
  ]),
1999
- d(a(Ht), { class: "ui-TooltipArrow" })
2162
+ p(a(qt), { class: "ui-TooltipArrow" })
2000
2163
  ]),
2001
2164
  _: 3
2002
2165
  }, 8, ["align", "align-offset", "aria-label", "arrow-padding", "avoid-collisions", "collision-boundary", "collision-padding", "hide-when-detached", "side", "side-offset", "sticky"])
@@ -2010,48 +2173,48 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
2010
2173
  _: 3
2011
2174
  }, 8, ["delay-duration", "disable-closing-trigger", "disable-hoverable-content", "disabled", "ignore-non-keyboard-focus", "skip-delay-duration"]));
2012
2175
  }
2013
- }), Uo = /* @__PURE__ */ h({
2176
+ }), rs = /* @__PURE__ */ h({
2014
2177
  __name: "Quota",
2015
2178
  props: {
2016
2179
  percent: {},
2017
2180
  color: {}
2018
2181
  },
2019
2182
  setup(s) {
2020
- const e = s, t = b(() => {
2183
+ const e = s, t = C(() => {
2021
2184
  const l = `translateX(-${100 - e.percent}%)`;
2022
2185
  if (e.percent > 100)
2023
2186
  return { transform: l, "background-color": "var(--red-a10)" };
2024
2187
  let n = "a4";
2025
2188
  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), {
2189
+ }), o = C(() => e.percent > 100 ? 100 : e.percent < 0 ? 0 : e.percent);
2190
+ return (l, n) => (r(), d(a(Nt), {
2028
2191
  class: "ui-Quota",
2029
2192
  "model-value": o.value,
2030
2193
  "data-accent-color": e.color
2031
2194
  }, {
2032
2195
  default: c(() => [
2033
- d(a(jt), {
2196
+ p(a(Kt), {
2034
2197
  class: "ui-QuotaValue",
2035
- style: Ge(t.value)
2198
+ style: Be(t.value)
2036
2199
  }, null, 8, ["style"])
2037
2200
  ]),
2038
2201
  _: 1
2039
2202
  }, 8, ["model-value", "data-accent-color"]));
2040
2203
  }
2041
- }), qo = /* @__PURE__ */ h({
2204
+ }), is = /* @__PURE__ */ h({
2042
2205
  __name: "Spinner",
2043
2206
  props: {
2044
2207
  icon: { default: "180-ring" },
2045
2208
  size: { default: "2" }
2046
2209
  },
2047
2210
  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}`]),
2211
+ const e = s, t = C(() => `svg-spinners:${e.icon}`);
2212
+ return (o, l) => (r(), d(a(I), {
2213
+ class: k(["ui-Spinner", `r-size-${o.size}`]),
2051
2214
  icon: t.value
2052
2215
  }, null, 8, ["class", "icon"]));
2053
2216
  }
2054
- }), Da = ["data-status"], Ko = /* @__PURE__ */ h({
2217
+ }), qo = ["data-status"], cs = /* @__PURE__ */ h({
2055
2218
  __name: "SavingIndicator",
2056
2219
  props: {
2057
2220
  status: {},
@@ -2060,19 +2223,19 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
2060
2223
  setup(s) {
2061
2224
  const e = s;
2062
2225
  return (t, o) => (r(), $("div", {
2063
- class: V(["ui-SavingIndicator", `r-size-${t.size}`]),
2226
+ class: k(["ui-SavingIndicator", `r-size-${t.size}`]),
2064
2227
  "data-status": e.status
2065
2228
  }, [
2066
- e.status === "saving" ? (r(), f(a(k), {
2229
+ e.status === "saving" ? (r(), d(a(I), {
2067
2230
  key: 0,
2068
2231
  icon: "svg-spinners:180-ring"
2069
- })) : e.status === "saved" ? (r(), f(a(k), {
2232
+ })) : e.status === "saved" ? (r(), d(a(I), {
2070
2233
  key: 1,
2071
2234
  icon: "lucide:check-circle-2"
2072
2235
  })) : z("", !0)
2073
- ], 10, Da));
2236
+ ], 10, qo));
2074
2237
  }
2075
- }), Aa = ["data-accent-color"], No = /* @__PURE__ */ h({
2238
+ }), No = ["data-accent-color"], us = /* @__PURE__ */ h({
2076
2239
  __name: "IconCircle",
2077
2240
  props: {
2078
2241
  color: {},
@@ -2081,20 +2244,20 @@ const Vo = /* @__PURE__ */ ma(va, [["render", _a]]), [ya, Ca] = ae("ui_ComboboxR
2081
2244
  icon: {}
2082
2245
  },
2083
2246
  setup(s) {
2084
- const e = s, t = b(() => M(e, ["size", "variant"]));
2247
+ const e = s, t = C(() => R(e, ["size", "variant"]));
2085
2248
  return (o, l) => (r(), $("span", {
2086
- class: V(["ui-IconCircle", t.value]),
2249
+ class: k(["ui-IconCircle", t.value]),
2087
2250
  "data-radius": "full",
2088
2251
  "data-accent-color": e.color
2089
2252
  }, [
2090
- d(a(k), {
2253
+ p(a(I), {
2091
2254
  icon: e.icon
2092
2255
  }, null, 8, ["icon"])
2093
- ], 10, Aa));
2256
+ ], 10, No));
2094
2257
  }
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({
2258
+ }), Ko = "https://challenges.cloudflare.com/turnstile/v0/api.js", ge = "cfTurnstileOnLoad";
2259
+ let se = typeof window < "u" && window.turnstile !== void 0 ? "ready" : "unloaded", ie, le, ye;
2260
+ const ds = /* @__PURE__ */ h({
2098
2261
  __name: "Turnstile",
2099
2262
  props: {
2100
2263
  sitekey: {},
@@ -2112,11 +2275,11 @@ const Qo = /* @__PURE__ */ h({
2112
2275
  window.turnstile && (o("update:modelValue", ""), window.turnstile.reset());
2113
2276
  }, i = () => {
2114
2277
  le && (window.turnstile.remove(le), le = void 0);
2115
- }, u = (m) => {
2116
- o("update:modelValue", m), _e = setTimeout(() => {
2278
+ }, u = (v) => {
2279
+ o("update:modelValue", v), ye = setTimeout(() => {
2117
2280
  n();
2118
2281
  }, t.resetInterval);
2119
- }, _ = () => {
2282
+ }, y = () => {
2120
2283
  le = window.turnstile.render(l.value, {
2121
2284
  sitekey: t.sitekey,
2122
2285
  theme: t.theme,
@@ -2127,32 +2290,32 @@ const Qo = /* @__PURE__ */ h({
2127
2290
  });
2128
2291
  };
2129
2292
  return ue(async () => {
2130
- const m = new Promise((v, y) => {
2131
- ie = { resolve: v, reject: y }, se === "ready" && v(void 0);
2293
+ const v = new Promise((f, B) => {
2294
+ ie = { resolve: f, reject: B }, se === "ready" && f(void 0);
2132
2295
  });
2133
2296
  window[ge] = () => {
2134
2297
  ie.resolve(), se = "ready";
2135
2298
  }, await (() => {
2136
2299
  if (se === "unloaded") {
2137
2300
  se = "loading";
2138
- const v = `${Oa}?onload=${ge}&render=explicit`, y = document.createElement("script");
2139
- y.src = v, y.async = !0, y.addEventListener("error", () => {
2301
+ const f = `${Ko}?onload=${ge}&render=explicit`, B = document.createElement("script");
2302
+ B.src = f, B.async = !0, B.addEventListener("error", () => {
2140
2303
  ie.reject("Failed to load Turnstile.");
2141
- }), document.head.appendChild(y);
2304
+ }), document.head.appendChild(B);
2142
2305
  }
2143
- return m;
2144
- })(), t.renderOnMount && _();
2145
- }), ye(() => {
2146
- i(), clearTimeout(_e);
2147
- }), (m, p) => (r(), $("div", {
2306
+ return v;
2307
+ })(), t.renderOnMount && y();
2308
+ }), Ce(() => {
2309
+ i(), clearTimeout(ye);
2310
+ }), (v, m) => (r(), $("div", {
2148
2311
  ref_key: "element",
2149
2312
  ref: l
2150
2313
  }, null, 512));
2151
2314
  }
2152
- }), Ma = {
2315
+ }), Qo = {
2153
2316
  type: "button",
2154
2317
  class: "ui-IconifySample"
2155
- }, Fa = { class: "ui-IconifySampleInfo" }, La = { class: "ui-IconifySampleIcons" }, Ga = /* @__PURE__ */ h({
2318
+ }, Zo = { class: "ui-IconifySampleInfo" }, Jo = { class: "ui-IconifySampleIcons" }, Xo = /* @__PURE__ */ h({
2156
2319
  __name: "IconifySample",
2157
2320
  props: {
2158
2321
  prefix: {},
@@ -2164,28 +2327,28 @@ const Qo = /* @__PURE__ */ h({
2164
2327
  },
2165
2328
  setup(s) {
2166
2329
  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)
2330
+ return (t, o) => (r(), $("button", Qo, [
2331
+ b("div", Zo, [
2332
+ b("strong", null, V(e.name), 1),
2333
+ b("span", null, V(e.license.title), 1),
2334
+ b("span", null, V(e.total) + " icons", 1)
2172
2335
  ]),
2173
- B("div", La, [
2174
- (r(!0), $(j, null, W(e.samples, (l) => (r(), $("span", { key: l }, [
2175
- d(a(k), {
2336
+ b("div", Jo, [
2337
+ (r(!0), $(H, null, j(e.samples, (l) => (r(), $("span", { key: l }, [
2338
+ p(a(I), {
2176
2339
  icon: e.prefix + ":" + l
2177
2340
  }, null, 8, ["icon"])
2178
2341
  ]))), 128))
2179
2342
  ])
2180
2343
  ]));
2181
2344
  }
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 = {
2345
+ }), 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
2346
  key: 0,
2184
2347
  class: "ui-IconifyCollectionIcons"
2185
- }, Ja = { class: "ui-IconifyCollectionForm" }, Za = {
2348
+ }, ia = { class: "ui-IconifyCollectionForm" }, ca = {
2186
2349
  key: 0,
2187
2350
  class: "ui-IconifyCollectionSuffixes"
2188
- }, Xa = { class: "ui-IconifyCollectionIconGrid" }, Ya = async () => {
2351
+ }, ua = { class: "ui-IconifyCollectionIconGrid" }, da = async () => {
2189
2352
  const t = await (await fetch("https://api.iconify.design/collections")).json(), o = {};
2190
2353
  Object.keys(t).forEach((n) => {
2191
2354
  const i = t[n];
@@ -2198,16 +2361,16 @@ const Qo = /* @__PURE__ */ h({
2198
2361
  items: o[n]
2199
2362
  });
2200
2363
  }), l;
2201
- }, eo = async (s) => {
2364
+ }, pa = async (s) => {
2202
2365
  const e = `https://api.iconify.design/search?query=${encodeURIComponent(s)}&limit=999`;
2203
2366
  return (await (await fetch(e)).json()).icons;
2204
- }, to = async (s) => {
2367
+ }, fa = async (s) => {
2205
2368
  const e = `https://api.iconify.design/collection?prefix=${encodeURIComponent(s)}&chars=true&aliases=true`;
2206
2369
  return await (await fetch(e)).json();
2207
2370
  }, ce = (s, e, t) => s.filter((o) => {
2208
2371
  let l = !0;
2209
2372
  return e && o.indexOf(e) === -1 && (l = !1), t && o.indexOf(`-${t}`) === -1 && (l = !1), l;
2210
- }), Jo = /* @__PURE__ */ h({
2373
+ }), ps = /* @__PURE__ */ h({
2211
2374
  __name: "IconifyCollection",
2212
2375
  props: {
2213
2376
  prefix: {},
@@ -2216,141 +2379,137 @@ const Qo = /* @__PURE__ */ h({
2216
2379
  },
2217
2380
  emits: ["select"],
2218
2381
  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) => {
2382
+ const t = s, o = e, l = P("all"), n = P([]), i = P(""), u = P(1), y = P(""), v = P([]), m = P(), f = P(""), B = P(""), A = () => {
2383
+ u.value = 1, y.value = "", v.value = [], m.value = void 0, f.value = "", B.value = "", l.value = "all";
2384
+ }, F = (w) => {
2222
2385
  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(() => {
2386
+ }, E = async () => {
2387
+ y.value ? (l.value = "search", v.value = await pa(y.value)) : l.value = "all";
2388
+ }, K = async (w) => {
2389
+ m.value = void 0, f.value = "", B.value = "", l.value = "collection", m.value = await fa(w);
2390
+ }, J = C(() => {
2228
2391
  let w = 0;
2229
2392
  return n.value.forEach((S) => {
2230
2393
  w += S.items.length;
2231
2394
  }), w;
2232
- }), Y = b(() => i.value ? n.value.map((w) => {
2395
+ }), X = C(() => i.value ? n.value.map((w) => {
2233
2396
  const S = w.items.filter((O) => [O.category, O.name, O.prefix].join(" ").toLowerCase().indexOf(i.value) !== -1);
2234
2397
  return { ...w, items: S };
2235
- }).filter((w) => w.items.length !== 0) : n.value), Re = b(() => {
2398
+ }).filter((w) => w.items.length !== 0) : n.value), Re = C(() => {
2236
2399
  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) => {
2400
+ return m.value ? (m.value.uncategorized ? w = ce(m.value.uncategorized, f.value, B.value) : m.value.categories && Object.keys(m.value.categories).forEach((S) => {
2401
+ const O = m.value.categories[S];
2402
+ ce(O, f.value, B.value).forEach((x) => {
2240
2403
  w.push(x);
2241
2404
  });
2242
- }), v.value && !w.length && p.value.hidden && (w = ce(p.value.hidden, v.value, y.value)), w.map((S) => {
2405
+ }), f.value && !w.length && m.value.hidden && (w = ce(m.value.hidden, f.value, B.value)), w.map((S) => {
2243
2406
  var O;
2244
- return `${(O = p.value) == null ? void 0 : O.prefix}:${S}`;
2407
+ return `${(O = m.value) == null ? void 0 : O.prefix}:${S}`;
2245
2408
  })) : w;
2246
- }), fe = b(() => l.value === "search" ? m.value : l.value === "collection" ? Re.value : []), Pe = b(() => {
2409
+ }), he = C(() => l.value === "search" ? v.value : l.value === "collection" ? Re.value : []), Pe = C(() => {
2247
2410
  const w = (u.value - 1) * t.perpage, S = u.value * t.perpage;
2248
- return fe.value.slice(w, S);
2411
+ return he.value.slice(w, S);
2249
2412
  });
2250
2413
  return ue(async () => {
2251
- t.prefix ? E(t.prefix) : t.search && (_.value = t.search, L()), n.value = await Ya();
2414
+ t.prefix ? K(t.prefix) : t.search && (y.value = t.search, E()), n.value = await da();
2252
2415
  }), (w, S) => {
2253
2416
  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, {
2417
+ return r(), $("div", Yo, [
2418
+ te(b("div", ea, [
2419
+ b("section", ta, [
2420
+ b("h1", null, V(J.value) + " icon sets", 1),
2421
+ b("div", oa, [
2422
+ p(ae, {
2260
2423
  modelValue: i.value,
2261
2424
  "onUpdate:modelValue": S[0] || (S[0] = (x) => i.value = x),
2262
- class: "flex-grow",
2263
2425
  placeholder: "Filter icon sets..."
2264
2426
  }, null, 8, ["modelValue"]),
2265
- d(oe, {
2266
- modelValue: _.value,
2267
- "onUpdate:modelValue": S[1] || (S[1] = (x) => _.value = x),
2268
- class: "flex-grow",
2427
+ p(ae, {
2428
+ modelValue: y.value,
2429
+ "onUpdate:modelValue": S[1] || (S[1] = (x) => y.value = x),
2269
2430
  placeholder: "Search icons...",
2270
- onKeydown: he(L, ["enter"])
2431
+ onKeydown: me(E, ["enter"])
2271
2432
  }, null, 8, ["modelValue"])
2272
2433
  ])
2273
2434
  ]),
2274
- (r(!0), $(j, null, W(Y.value, (x) => (r(), $("section", {
2435
+ (r(!0), $(H, null, j(X.value, (x) => (r(), $("section", {
2275
2436
  key: x.category,
2276
2437
  class: "ui-IconifyCollectionSample"
2277
2438
  }, [
2278
- B("h1", Ua, [
2279
- B("span", qa, I(x.category), 1),
2280
- B("span", Ka, "(" + I(x.items.length) + " icon sets)", 1)
2439
+ b("h1", aa, [
2440
+ b("span", sa, V(x.category), 1),
2441
+ b("span", la, "(" + V(x.items.length) + " icon sets)", 1)
2281
2442
  ]),
2282
- B("div", Na, [
2283
- (r(!0), $(j, null, W(x.items, (G) => (r(), f(Ga, C({
2443
+ b("div", na, [
2444
+ (r(!0), $(H, null, j(x.items, (G) => (r(), d(Xo, g({
2284
2445
  key: G.prefix,
2285
2446
  ref_for: !0
2286
2447
  }, G, {
2287
- onClick: A((De) => E(G.prefix), ["prevent"])
2448
+ onClick: D((De) => K(G.prefix), ["prevent"])
2288
2449
  }), null, 16, ["onClick"]))), 128))
2289
2450
  ])
2290
2451
  ]))), 128))
2291
2452
  ], 512), [
2292
2453
  [He, l.value === "all"]
2293
2454
  ]),
2294
- l.value !== "all" ? (r(), $("div", Qa, [
2295
- B("div", Ja, [
2296
- d(q, {
2455
+ l.value !== "all" ? (r(), $("div", ra, [
2456
+ b("div", ia, [
2457
+ p(W, {
2297
2458
  type: "button",
2298
2459
  variant: "surface",
2299
2460
  color: "gray",
2300
- onClick: A(D, ["prevent"])
2461
+ onClick: D(A, ["prevent"])
2301
2462
  }, {
2302
2463
  default: c(() => S[5] || (S[5] = [
2303
- U(" Back ")
2464
+ L(" Back ")
2304
2465
  ])),
2305
2466
  _: 1
2306
2467
  }),
2307
- l.value === "search" ? (r(), f(oe, {
2468
+ l.value === "search" ? (r(), d(ae, {
2308
2469
  key: 0,
2309
- modelValue: _.value,
2310
- "onUpdate:modelValue": S[2] || (S[2] = (x) => _.value = x),
2311
- class: "flex-grow",
2470
+ modelValue: y.value,
2471
+ "onUpdate:modelValue": S[2] || (S[2] = (x) => y.value = x),
2312
2472
  placeholder: "Search icons...",
2313
- onKeydown: he(L, ["enter"])
2473
+ onKeydown: me(E, ["enter"])
2314
2474
  }, null, 8, ["modelValue"])) : z("", !0),
2315
- l.value === "collection" ? (r(), f(oe, {
2475
+ l.value === "collection" ? (r(), d(ae, {
2316
2476
  key: 1,
2317
- modelValue: v.value,
2318
- "onUpdate:modelValue": S[3] || (S[3] = (x) => v.value = x),
2319
- class: "flex-grow",
2477
+ modelValue: f.value,
2478
+ "onUpdate:modelValue": S[3] || (S[3] = (x) => f.value = x),
2320
2479
  placeholder: "Search icons..."
2321
2480
  }, null, 8, ["modelValue"])) : z("", !0)
2322
2481
  ]),
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, {
2482
+ l.value === "collection" && ((O = m.value) != null && O.suffixes) ? (r(), $("div", ca, [
2483
+ (r(!0), $(H, null, j(m.value.suffixes, (x, G) => (r(), d(W, {
2325
2484
  key: G,
2326
- variant: y.value === G ? "solid" : "outline",
2485
+ variant: B.value === G ? "solid" : "outline",
2327
2486
  color: "gray",
2328
2487
  "high-contrast": "",
2329
2488
  radius: "full",
2330
- onClick: A((De) => y.value = G, ["prevent"])
2489
+ onClick: D((De) => B.value = G, ["prevent"])
2331
2490
  }, {
2332
2491
  default: c(() => [
2333
- U(I(x), 1)
2492
+ L(V(x), 1)
2334
2493
  ]),
2335
2494
  _: 2
2336
2495
  }, 1032, ["variant", "onClick"]))), 128))
2337
2496
  ])) : z("", !0),
2338
- B("div", Xa, [
2339
- (r(!0), $(j, null, W(Pe.value, (x) => (r(), f(Pa, {
2497
+ b("div", ua, [
2498
+ (r(!0), $(H, null, j(Pe.value, (x) => (r(), d(Uo, {
2340
2499
  key: x,
2341
2500
  as: "div",
2342
2501
  content: x
2343
2502
  }, {
2344
2503
  default: c(() => [
2345
- d(Q, {
2504
+ p(Y, {
2346
2505
  type: "button",
2347
2506
  color: "gray",
2348
2507
  variant: "ghost",
2349
2508
  size: "4",
2350
- onClick: A((G) => R(x), ["prevent"])
2509
+ onClick: D((G) => F(x), ["prevent"])
2351
2510
  }, {
2352
2511
  default: c(() => [
2353
- d(a(k), { icon: x }, null, 8, ["icon"])
2512
+ p(a(I), { icon: x }, null, 8, ["icon"])
2354
2513
  ]),
2355
2514
  _: 2
2356
2515
  }, 1032, ["onClick"])
@@ -2358,10 +2517,10 @@ const Qo = /* @__PURE__ */ h({
2358
2517
  _: 2
2359
2518
  }, 1032, ["content"]))), 128))
2360
2519
  ]),
2361
- d(Va, {
2520
+ p(Ho, {
2362
2521
  page: u.value,
2363
2522
  "onUpdate:page": S[4] || (S[4] = (x) => u.value = x),
2364
- total: fe.value.length,
2523
+ total: he.value.length,
2365
2524
  perpage: w.perpage
2366
2525
  }, null, 8, ["page", "total", "perpage"])
2367
2526
  ])) : z("", !0)
@@ -2370,85 +2529,91 @@ const Qo = /* @__PURE__ */ h({
2370
2529
  }
2371
2530
  });
2372
2531
  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
2532
+ os as AccordionContent,
2533
+ ts as AccordionItem,
2534
+ es as AccordionRoot,
2535
+ as as AccordionTrigger,
2536
+ ms as AlertDialogAction,
2537
+ vs as AlertDialogCancel,
2538
+ ba as AlertDialogContent,
2539
+ _s as AlertDialogDescription,
2540
+ gs as AlertDialogRoot,
2541
+ ys as AlertDialogTitle,
2542
+ Cs as AlertDialogTrigger,
2543
+ _a as Avatar,
2544
+ ga as Badge,
2545
+ W as Button,
2546
+ Yt as Card,
2547
+ ya as CardHead,
2548
+ Ie as Checkbox,
2549
+ Ta as CheckboxGroupControl,
2550
+ Ia as CheckboxGroupItem,
2551
+ ka as CheckboxGroupRoot,
2552
+ Lo as ChevronIcon,
2553
+ ss as CollapsibleContent,
2554
+ bs as CollapsibleRoot,
2555
+ $s as CollapsibleTrigger,
2556
+ Da as ColorField,
2557
+ Wa as ComboboxContent,
2558
+ Bs as ComboboxEmpty,
2559
+ xs as ComboboxGroup,
2560
+ ja as ComboboxInput,
2561
+ Ua as ComboboxItem,
2562
+ qa as ComboboxLabel,
2563
+ Ea as ComboboxRoot,
2564
+ ws as DialogClose,
2565
+ $a as DialogContent,
2566
+ Ss as DialogDescription,
2567
+ Ba as DialogHead,
2568
+ zs as DialogRoot,
2569
+ ks as DialogTitle,
2570
+ Is as DialogTrigger,
2571
+ xa as DropdownMenuContent,
2572
+ wa as DropdownMenuItem,
2573
+ Ts as DropdownMenuRoot,
2574
+ Vs as DropdownMenuTrigger,
2575
+ Gs as Icon,
2576
+ Y as IconButton,
2577
+ us as IconCircle,
2578
+ ps as IconifyCollection,
2579
+ Xt as Inset,
2580
+ Ho as Pagination,
2581
+ Fo as PlusMinusIcon,
2582
+ As as PopoverClose,
2583
+ Sa as PopoverContent,
2584
+ Rs as PopoverRoot,
2585
+ Ps as PopoverTrigger,
2586
+ rs as Quota,
2587
+ Na as Radio,
2588
+ Za as RadioCardsItem,
2589
+ Ka as RadioCardsRoot,
2590
+ Qa as RadioGroupItem,
2591
+ Ka as RadioGroupRoot,
2592
+ Ds as RadioTabsItem,
2593
+ Ja as RadioTabsList,
2594
+ cs as SavingIndicator,
2595
+ ke as ScrollArea,
2596
+ Ma as SelectContent,
2597
+ Os as SelectGroup,
2598
+ La as SelectItem,
2599
+ Ga as SelectLabel,
2600
+ Oa as SelectRoot,
2601
+ Ha as SelectSeparator,
2602
+ Fa as SelectTrigger,
2603
+ ns as Separator,
2604
+ Ca as SocialButton,
2605
+ is as Spinner,
2606
+ za as Switch,
2607
+ ls as Table,
2608
+ Ms as TabsContent,
2609
+ Xa as TabsList,
2610
+ Fs as TabsRoot,
2611
+ Ya as TabsTrigger,
2612
+ Pa as TextArea,
2613
+ ae as TextField,
2614
+ Va as Toggle,
2615
+ Ra as ToggleGroupItem,
2616
+ Aa as ToggleGroupRoot,
2617
+ Uo as Tooltip,
2618
+ ds as Turnstile
2454
2619
  };