@typlog/ui 0.7.2 → 0.8.0

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