@typlog/ui 0.5.3 → 0.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,24 +1,24 @@
1
- import { computed as y, defineComponent as p, openBlock as d, createBlock as f, unref as a, normalizeClass as w, withCtx as n, createVNode as u, createTextVNode as ee, toDisplayString as F, renderSlot as h, mergeProps as v, createElementVNode as B, createCommentVNode as T, createElementBlock as x, toRefs as M, withDirectives as O, isRef as I, vModelRadio as me, ref as U, onMounted as te, onBeforeUnmount as ae, vModelDynamic as he, vModelText as q, normalizeProps as _e, guardReactiveProps as ge, watch as ve, Fragment as ye, renderList as Ce, withKeys as be, withModifiers as Be, normalizeStyle as xe } from "vue";
2
- import { useForwardProps as $, useEmitAsProps as oe, AvatarRoot as $e, AvatarImage as we, AvatarFallback as Se, Primitive as k, ScrollAreaRoot as K, ScrollAreaViewport as N, ScrollAreaScrollbar as W, ScrollAreaThumb as j, ScrollAreaCorner as Ve, AlertDialogPortal as ze, AlertDialogOverlay as Te, AlertDialogContent as Re, DialogPortal as Ie, DialogOverlay as ke, DialogContent as Ae, DialogTitle as De, DialogClose as Pe, PopoverPortal as Oe, PopoverContent as Fe, useForwardExpose as S, DropdownMenuPortal as Me, DropdownMenuContent as Ge, createContext as G, DropdownMenuItem as Le, SwitchRoot as He, SwitchThumb as We, RadioGroupRoot as se, RadioGroupItem as le, CheckboxRoot as je, CheckboxIndicator as Ee, Toggle as qe, ToggleGroupRoot as Ue, ToggleGroupItem as Ke, SelectRoot as Ne, SelectPortal as Qe, SelectContent as Je, SelectViewport as Ze, SelectTrigger as Xe, SelectValue as Ye, SelectIcon as et, SelectItem as tt, SelectItemIndicator as at, SelectItemText as ot, SelectLabel as st, ComboboxRoot as lt, injectComboboxRootContext as nt, useForwardPropsEmits as ne, ComboboxAnchor as rt, TagsInputRoot as it, TagsInputItem as dt, TagsInputItemDelete as ct, ComboboxInput as J, TagsInputInput as ut, ComboboxTrigger as pt, ComboboxPortal as ft, ComboboxContent as mt, ComboboxViewport as ht, ComboboxItem as _t, ComboboxItemIndicator as gt, ComboboxLabel as vt, TooltipProvider as yt, TooltipRoot as Ct, TooltipTrigger as bt, TooltipPortal as Bt, TooltipContent as xt, TooltipArrow as $t, TabsList as wt, TabsTrigger as St, ProgressRoot as Vt, ProgressIndicator as zt } from "reka-ui";
3
- import { AlertDialogAction as ho, AlertDialogCancel as _o, AlertDialogDescription as go, AlertDialogRoot as vo, AlertDialogTitle as yo, AlertDialogTrigger as Co, ComboboxEmpty as bo, ComboboxGroup as Bo, DialogClose as xo, DialogDescription as $o, DialogRoot as wo, DialogTitle as So, DialogTrigger as Vo, DropdownMenuRoot as zo, DropdownMenuTrigger as To, PopoverClose as Ro, PopoverRoot as Io, PopoverTrigger as ko, RadioGroupItem as Ao, SelectGroup as Do, TabsContent as Po, TabsRoot as Oo } from "reka-ui";
4
- import { Icon as z } from "@iconify/vue";
1
+ import { computed as v, defineComponent as p, openBlock as d, createBlock as f, unref as a, normalizeClass as w, withCtx as r, createVNode as u, createTextVNode as te, toDisplayString as M, renderSlot as h, mergeProps as g, createElementVNode as x, createCommentVNode as R, createElementBlock as B, toRefs as G, withDirectives as F, isRef as A, vModelRadio as he, ref as q, onMounted as ae, onBeforeUnmount as oe, vModelDynamic as _e, vModelText as K, normalizeProps as ge, guardReactiveProps as ve, watch as ye, Fragment as Ce, renderList as be, withModifiers as Be, normalizeStyle as xe } from "vue";
2
+ import { useForwardProps as $, useEmitAsProps as se, AvatarRoot as $e, AvatarImage as we, AvatarFallback as Se, Primitive as I, ScrollAreaRoot as N, ScrollAreaViewport as Q, ScrollAreaScrollbar as j, ScrollAreaThumb as E, ScrollAreaCorner as Ve, AlertDialogPortal as ze, AlertDialogOverlay as Te, AlertDialogContent as ke, DialogPortal as Re, DialogOverlay as De, DialogContent as Ae, DialogTitle as Ie, DialogClose as Pe, PopoverPortal as Oe, PopoverContent as Fe, useForwardExpose as S, DropdownMenuPortal as Me, DropdownMenuContent as Ge, createContext as L, DropdownMenuItem as Le, SwitchRoot as He, SwitchThumb as We, RadioGroupRoot as le, RadioGroupItem as ne, CheckboxRoot as je, CheckboxIndicator as Ee, Toggle as qe, ToggleGroupRoot as Ue, ToggleGroupItem as Ke, SelectRoot as Ne, SelectPortal as Qe, SelectContent as Je, SelectViewport as Ze, SelectTrigger as Xe, SelectValue as Ye, SelectIcon as et, SelectItem as tt, SelectItemIndicator as at, SelectItemText as ot, SelectLabel as st, ComboboxRoot as lt, injectComboboxRootContext as nt, useForwardPropsEmits as re, ComboboxAnchor as rt, ComboboxInput as Z, ComboboxTrigger as it, ComboboxPortal as dt, ComboboxContent as ct, ComboboxViewport as ut, ComboboxItem as pt, ComboboxItemIndicator as ft, ComboboxLabel as mt, TooltipProvider as ht, TooltipRoot as _t, TooltipTrigger as gt, TooltipPortal as vt, TooltipContent as yt, TooltipArrow as Ct, TabsList as bt, TabsTrigger as Bt, ProgressRoot as xt, ProgressIndicator as $t } from "reka-ui";
3
+ import { AlertDialogAction as ho, AlertDialogCancel as _o, AlertDialogDescription as go, AlertDialogRoot as vo, AlertDialogTitle as yo, AlertDialogTrigger as Co, ComboboxEmpty as bo, ComboboxGroup as Bo, DialogClose as xo, DialogDescription as $o, DialogRoot as wo, DialogTitle as So, DialogTrigger as Vo, DropdownMenuRoot as zo, DropdownMenuTrigger as To, PopoverClose as ko, PopoverRoot as Ro, PopoverTrigger as Do, RadioGroupItem as Ao, SelectGroup as Io, TabsContent as Po, TabsRoot as Oo } from "reka-ui";
4
+ import { Icon as T } from "@iconify/vue";
5
5
  import { Icon as Mo } from "@iconify/vue";
6
- import { useVModel as A } from "@vueuse/core";
7
- function R(s, e, t) {
8
- const o = $(s), l = oe(e);
9
- return y(() => ({
10
- ...re(o.value, t),
6
+ import { useVModel as P } from "@vueuse/core";
7
+ function D(s, e, t) {
8
+ const o = $(s), l = se(e);
9
+ return v(() => ({
10
+ ...ie(o.value, t),
11
11
  ...l
12
12
  }));
13
13
  }
14
- function D(s, e, t) {
15
- const o = $(s), l = oe(e), i = y(() => ({
16
- ...re(o.value, t),
14
+ function O(s, e, t) {
15
+ const o = $(s), l = se(e), i = v(() => ({
16
+ ...ie(o.value, t),
17
17
  ...l
18
- })), r = y(() => V(o.value, t));
19
- return [i, r];
18
+ })), n = v(() => V(o.value, t));
19
+ return [i, n];
20
20
  }
21
- function re(s, e) {
21
+ function ie(s, e) {
22
22
  const t = {};
23
23
  return Object.keys(s).forEach((o) => {
24
24
  e.indexOf(o) === -1 && (t[o] = s[o]);
@@ -29,14 +29,14 @@ const V = (s, e) => {
29
29
  return e.forEach((o) => {
30
30
  if (o !== "color" && o !== "radius") {
31
31
  const l = s[o];
32
- l === !0 ? t.push(`r-${Z(o)}`) : l && t.push(`r-${Z(o)}-${l}`);
32
+ l === !0 ? t.push(`r-${X(o)}`) : l && t.push(`r-${X(o)}-${l}`);
33
33
  }
34
34
  }), t;
35
35
  };
36
- function Z(s) {
37
- return s.replace(/[A-Z]+(?![a-z])|[A-Z]/g, Tt);
36
+ function X(s) {
37
+ return s.replace(/[A-Z]+(?![a-z])|[A-Z]/g, wt);
38
38
  }
39
- function Tt(s, e) {
39
+ function wt(s, e) {
40
40
  return (e ? "-" : "") + s.toLowerCase();
41
41
  }
42
42
  const ba = /* @__PURE__ */ p({
@@ -51,13 +51,13 @@ const ba = /* @__PURE__ */ p({
51
51
  color: {}
52
52
  },
53
53
  setup(s) {
54
- const e = s, t = y(() => V(e, ["size", "variant"])), o = y(() => e.fallback ? e.fallback : e.alt.split(/\s+/).map((l) => l[0]).slice(0, 2).join(""));
54
+ const e = s, t = v(() => V(e, ["size", "variant"])), o = v(() => e.fallback ? e.fallback : e.alt.split(/\s+/).map((l) => l[0]).slice(0, 2).join(""));
55
55
  return (l, i) => (d(), f(a($e), {
56
56
  class: w(["ui-Avatar", t.value]),
57
57
  "data-accent-color": e.color,
58
58
  "data-radius": e.radius
59
59
  }, {
60
- default: n(() => [
60
+ default: r(() => [
61
61
  u(a(we), {
62
62
  alt: e.alt,
63
63
  src: e.src || ""
@@ -65,8 +65,8 @@ const ba = /* @__PURE__ */ p({
65
65
  u(a(Se), {
66
66
  class: w(`r-count-${o.value.length}`)
67
67
  }, {
68
- default: n(() => [
69
- ee(F(o.value), 1)
68
+ default: r(() => [
69
+ te(M(o.value), 1)
70
70
  ]),
71
71
  _: 1
72
72
  }, 8, ["class"])
@@ -86,21 +86,21 @@ const ba = /* @__PURE__ */ p({
86
86
  as: { default: "span" }
87
87
  },
88
88
  setup(s) {
89
- const e = s, t = y(() => V(e, ["size", "variant", "highContrast"]));
90
- return (o, l) => (d(), f(a(k), {
89
+ const e = s, t = v(() => V(e, ["size", "variant", "highContrast"]));
90
+ return (o, l) => (d(), f(a(I), {
91
91
  class: w(["ui-Badge", t.value]),
92
92
  as: e.as,
93
93
  "as-child": e.asChild,
94
94
  "data-accent-color": e.color,
95
95
  "data-radius": e.radius
96
96
  }, {
97
- default: n(() => [
97
+ default: r(() => [
98
98
  h(o.$slots, "default")
99
99
  ]),
100
100
  _: 3
101
101
  }, 8, ["class", "as", "as-child", "data-accent-color", "data-radius"]));
102
102
  }
103
- }), ie = /* @__PURE__ */ p({
103
+ }), de = /* @__PURE__ */ p({
104
104
  __name: "Button",
105
105
  props: {
106
106
  color: {},
@@ -113,8 +113,8 @@ const ba = /* @__PURE__ */ p({
113
113
  as: { default: "button" }
114
114
  },
115
115
  setup(s) {
116
- const e = s, t = y(() => V(e, ["size", "variant", "highContrast"]));
117
- return (o, l) => (d(), f(a(k), {
116
+ const e = s, t = v(() => V(e, ["size", "variant", "highContrast"]));
117
+ return (o, l) => (d(), f(a(I), {
118
118
  class: w(["ui-Button", t.value]),
119
119
  "as-child": e.asChild,
120
120
  as: e.as,
@@ -122,7 +122,7 @@ const ba = /* @__PURE__ */ p({
122
122
  "data-radius": e.radius,
123
123
  "data-disabled": e.disabled ? !0 : void 0
124
124
  }, {
125
- default: n(() => [
125
+ default: r(() => [
126
126
  h(o.$slots, "default")
127
127
  ]),
128
128
  _: 3
@@ -142,14 +142,14 @@ const ba = /* @__PURE__ */ p({
142
142
  },
143
143
  setup(s) {
144
144
  const t = $(s);
145
- return (o, l) => (d(), f(ie, v({ class: "ui-IconButton" }, a(t)), {
146
- default: n(() => [
145
+ return (o, l) => (d(), f(de, g({ class: "ui-IconButton" }, a(t)), {
146
+ default: r(() => [
147
147
  h(o.$slots, "default")
148
148
  ]),
149
149
  _: 3
150
150
  }, 16));
151
151
  }
152
- }), Rt = /* @__PURE__ */ p({
152
+ }), St = /* @__PURE__ */ p({
153
153
  __name: "Card",
154
154
  props: {
155
155
  variant: { default: "surface" },
@@ -159,14 +159,14 @@ const ba = /* @__PURE__ */ p({
159
159
  as: { default: "div" }
160
160
  },
161
161
  setup(s) {
162
- const e = s, t = y(() => V(e, ["size", "variant"]));
163
- return (o, l) => (d(), f(a(k), {
162
+ const e = s, t = v(() => V(e, ["size", "variant"]));
163
+ return (o, l) => (d(), f(a(I), {
164
164
  class: w(["ui-Card", t.value]),
165
165
  "as-child": e.asChild,
166
166
  as: e.as,
167
167
  "data-radius": e.radius
168
168
  }, {
169
- default: n(() => [
169
+ default: r(() => [
170
170
  h(o.$slots, "default")
171
171
  ]),
172
172
  _: 3
@@ -181,18 +181,18 @@ const ba = /* @__PURE__ */ p({
181
181
  },
182
182
  setup(s) {
183
183
  const e = s;
184
- return (t, o) => (d(), f(a(k), {
184
+ return (t, o) => (d(), f(a(I), {
185
185
  as: e.as,
186
186
  class: "ui-CardHead",
187
187
  "data-accent-color": e.color
188
188
  }, {
189
- default: n(() => [
189
+ default: r(() => [
190
190
  h(t.$slots, "default")
191
191
  ]),
192
192
  _: 3
193
193
  }, 8, ["as", "data-accent-color"]));
194
194
  }
195
- }), de = /* @__PURE__ */ p({
195
+ }), ce = /* @__PURE__ */ p({
196
196
  __name: "ScrollArea",
197
197
  props: {
198
198
  size: { default: "1" },
@@ -206,7 +206,7 @@ const ba = /* @__PURE__ */ p({
206
206
  },
207
207
  setup(s) {
208
208
  const e = s;
209
- return (t, o) => (d(), f(a(K), {
209
+ return (t, o) => (d(), f(a(N), {
210
210
  class: "ui-ScrollArea",
211
211
  "as-child": e.asChild,
212
212
  dir: e.dir,
@@ -214,40 +214,40 @@ const ba = /* @__PURE__ */ p({
214
214
  type: e.type,
215
215
  "data-radius": e.radius
216
216
  }, {
217
- default: n(() => [
218
- u(a(N), { class: "ui-ScrollAreaViewport" }, {
219
- default: n(() => [
217
+ default: r(() => [
218
+ u(a(Q), { class: "ui-ScrollAreaViewport" }, {
219
+ default: r(() => [
220
220
  h(t.$slots, "default")
221
221
  ]),
222
222
  _: 3
223
223
  }),
224
- o[0] || (o[0] = B("div", { class: "ui-ScrollAreaViewportFocusRing" }, null, -1)),
225
- e.scrollbars !== "horizontal" ? (d(), f(a(W), {
224
+ o[0] || (o[0] = x("div", { class: "ui-ScrollAreaViewportFocusRing" }, null, -1)),
225
+ e.scrollbars !== "horizontal" ? (d(), f(a(j), {
226
226
  key: 0,
227
227
  class: "ui-ScrollAreaScrollbar",
228
228
  "data-size": e.size,
229
229
  orientation: "vertical"
230
230
  }, {
231
- default: n(() => [
232
- u(a(j), { class: "ui-ScrollAreaThumb" })
231
+ default: r(() => [
232
+ u(a(E), { class: "ui-ScrollAreaThumb" })
233
233
  ]),
234
234
  _: 1
235
- }, 8, ["data-size"])) : T("", !0),
236
- e.scrollbars !== "vertical" ? (d(), f(a(W), {
235
+ }, 8, ["data-size"])) : R("", !0),
236
+ e.scrollbars !== "vertical" ? (d(), f(a(j), {
237
237
  key: 1,
238
238
  class: "ui-ScrollAreaScrollbar",
239
239
  "data-size": e.size,
240
240
  orientation: "horizontal"
241
241
  }, {
242
- default: n(() => [
243
- u(a(j), { class: "ui-ScrollAreaThumb" })
242
+ default: r(() => [
243
+ u(a(E), { class: "ui-ScrollAreaThumb" })
244
244
  ]),
245
245
  _: 1
246
- }, 8, ["data-size"])) : T("", !0),
246
+ }, 8, ["data-size"])) : R("", !0),
247
247
  e.scrollbars === "both" ? (d(), f(a(Ve), {
248
248
  key: 2,
249
249
  "class-name": "ui-ScrollAreaCorner"
250
- })) : T("", !0)
250
+ })) : R("", !0)
251
251
  ]),
252
252
  _: 3
253
253
  }, 8, ["as-child", "dir", "scroll-hide-delay", "type", "data-radius"]));
@@ -262,7 +262,7 @@ const ba = /* @__PURE__ */ p({
262
262
  },
263
263
  setup(s) {
264
264
  const e = s;
265
- return (t, o) => (d(), f(a(k), {
265
+ return (t, o) => (d(), f(a(I), {
266
266
  as: e.as,
267
267
  class: w(["ui-Separator", `r-size-${e.size}`]),
268
268
  role: "separator",
@@ -270,7 +270,7 @@ const ba = /* @__PURE__ */ p({
270
270
  "aria-orientation": e.orientation
271
271
  }, null, 8, ["as", "class", "data-accent-color", "aria-orientation"]));
272
272
  }
273
- }), It = ["data-side", "data-clip"], kt = /* @__PURE__ */ p({
273
+ }), Vt = ["data-side", "data-clip"], zt = /* @__PURE__ */ p({
274
274
  __name: "Inset",
275
275
  props: {
276
276
  side: { default: "all" },
@@ -278,18 +278,18 @@ const ba = /* @__PURE__ */ p({
278
278
  },
279
279
  setup(s) {
280
280
  const e = s;
281
- return (t, o) => (d(), x("div", {
281
+ return (t, o) => (d(), B("div", {
282
282
  class: "ui-Inset",
283
283
  "data-side": e.side,
284
284
  "data-clip": e.clip
285
285
  }, [
286
286
  h(t.$slots, "default")
287
- ], 8, It));
287
+ ], 8, Vt));
288
288
  }
289
- }), At = /* @__PURE__ */ p({
289
+ }), Tt = /* @__PURE__ */ p({
290
290
  __name: "Spinner",
291
291
  setup(s) {
292
- return (e, t) => (d(), f(a(z), {
292
+ return (e, t) => (d(), f(a(T), {
293
293
  class: "ui-Spinner",
294
294
  icon: "lucide:loader-circle"
295
295
  }));
@@ -301,16 +301,16 @@ const ba = /* @__PURE__ */ p({
301
301
  },
302
302
  setup(s) {
303
303
  const e = s;
304
- return (t, o) => e.status === "saving" ? (d(), f(At, {
304
+ return (t, o) => e.status === "saving" ? (d(), f(Tt, {
305
305
  key: 0,
306
306
  class: "ui-SavingIndicator _saving"
307
- })) : e.status === "saved" ? (d(), f(a(z), {
307
+ })) : e.status === "saved" ? (d(), f(a(T), {
308
308
  key: 1,
309
309
  class: "ui-SavingIndicator _saved",
310
310
  icon: "lucide:check-circle-2"
311
- })) : T("", !0);
311
+ })) : R("", !0);
312
312
  }
313
- }), Dt = { class: "ui-DialogScroll" }, Pt = ["data-align"], Va = /* @__PURE__ */ p({
313
+ }), kt = { class: "ui-DialogScroll" }, Rt = ["data-align"], Va = /* @__PURE__ */ p({
314
314
  inheritAttrs: !1,
315
315
  __name: "AlertDialogContent",
316
316
  props: {
@@ -332,7 +332,7 @@ const ba = /* @__PURE__ */ p({
332
332
  },
333
333
  emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
334
334
  setup(s, { emit: e }) {
335
- const t = s, l = R(t, e, [
335
+ const t = s, l = D(t, e, [
336
336
  "to",
337
337
  "align",
338
338
  "class",
@@ -344,18 +344,18 @@ const ba = /* @__PURE__ */ p({
344
344
  "minHeight",
345
345
  "maxHeight"
346
346
  ]);
347
- return (i, r) => (d(), f(a(ze), {
347
+ return (i, n) => (d(), f(a(ze), {
348
348
  to: t.to
349
349
  }, {
350
- default: n(() => [
350
+ default: r(() => [
351
351
  u(a(Te), { class: "ui-DialogOverlay" }, {
352
- default: n(() => [
353
- B("div", Dt, [
354
- B("div", {
352
+ default: r(() => [
353
+ x("div", kt, [
354
+ x("div", {
355
355
  class: "ui-DialogScrollPadding",
356
356
  "data-align": t.align
357
357
  }, [
358
- u(a(Re), v({
358
+ u(a(ke), g({
359
359
  class: ["ui-DialogContent", t.class],
360
360
  "data-size": t.size
361
361
  }, {
@@ -371,12 +371,12 @@ const ba = /* @__PURE__ */ p({
371
371
  maxHeight: t.maxHeight
372
372
  }
373
373
  }), {
374
- default: n(() => [
374
+ default: r(() => [
375
375
  h(i.$slots, "default")
376
376
  ]),
377
377
  _: 3
378
378
  }, 16, ["class", "data-size", "style"])
379
- ], 8, Pt)
379
+ ], 8, Rt)
380
380
  ])
381
381
  ]),
382
382
  _: 3
@@ -385,7 +385,7 @@ const ba = /* @__PURE__ */ p({
385
385
  _: 3
386
386
  }, 8, ["to"]));
387
387
  }
388
- }), Ot = { class: "ui-DialogScroll" }, Ft = ["data-align"], za = /* @__PURE__ */ p({
388
+ }), Dt = { class: "ui-DialogScroll" }, At = ["data-align"], za = /* @__PURE__ */ p({
389
389
  inheritAttrs: !1,
390
390
  __name: "DialogContent",
391
391
  props: {
@@ -407,7 +407,7 @@ const ba = /* @__PURE__ */ p({
407
407
  },
408
408
  emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
409
409
  setup(s, { emit: e }) {
410
- const t = s, l = R(t, e, [
410
+ const t = s, l = D(t, e, [
411
411
  "to",
412
412
  "align",
413
413
  "class",
@@ -419,18 +419,18 @@ const ba = /* @__PURE__ */ p({
419
419
  "minHeight",
420
420
  "maxHeight"
421
421
  ]);
422
- return (i, r) => (d(), f(a(Ie), {
422
+ return (i, n) => (d(), f(a(Re), {
423
423
  to: t.to
424
424
  }, {
425
- default: n(() => [
426
- u(a(ke), { class: "ui-DialogOverlay" }, {
427
- default: n(() => [
428
- B("div", Ot, [
429
- B("div", {
425
+ default: r(() => [
426
+ u(a(De), { class: "ui-DialogOverlay" }, {
427
+ default: r(() => [
428
+ x("div", Dt, [
429
+ x("div", {
430
430
  class: "ui-DialogScrollPadding",
431
431
  "data-align": t.align
432
432
  }, [
433
- u(a(Ae), v({
433
+ u(a(Ae), g({
434
434
  class: ["ui-DialogContent", t.class],
435
435
  "data-size": t.size
436
436
  }, {
@@ -446,12 +446,12 @@ const ba = /* @__PURE__ */ p({
446
446
  maxHeight: t.maxHeight
447
447
  }
448
448
  }), {
449
- default: n(() => [
449
+ default: r(() => [
450
450
  h(i.$slots, "default")
451
451
  ]),
452
452
  _: 3
453
453
  }, 16, ["class", "data-size", "style"])
454
- ], 8, Ft)
454
+ ], 8, At)
455
455
  ])
456
456
  ]),
457
457
  _: 3
@@ -467,26 +467,26 @@ const ba = /* @__PURE__ */ p({
467
467
  },
468
468
  setup(s) {
469
469
  const e = s;
470
- return (t, o) => (d(), f(kt, {
470
+ return (t, o) => (d(), f(zt, {
471
471
  class: "ui-DialogHead",
472
472
  side: "x"
473
473
  }, {
474
- default: n(() => [
475
- u(a(De), { class: "font-semibold" }, {
476
- default: n(() => [
477
- ee(F(e.title), 1)
474
+ default: r(() => [
475
+ u(a(Ie), { class: "font-semibold" }, {
476
+ default: r(() => [
477
+ te(M(e.title), 1)
478
478
  ]),
479
479
  _: 1
480
480
  }),
481
- u(ie, {
481
+ u(de, {
482
482
  as: a(Pe),
483
483
  variant: "ghost",
484
484
  color: "gray",
485
485
  radius: "full",
486
486
  style: { "--button-ghost-padding-x": "var(--space-1)" }
487
487
  }, {
488
- default: n(() => [
489
- u(a(z), { icon: "lucide:x" })
488
+ default: r(() => [
489
+ u(a(T), { icon: "lucide:x" })
490
490
  ]),
491
491
  _: 1
492
492
  }, 8, ["as"])
@@ -494,7 +494,7 @@ const ba = /* @__PURE__ */ p({
494
494
  _: 1
495
495
  }));
496
496
  }
497
- }), Ra = /* @__PURE__ */ p({
497
+ }), ka = /* @__PURE__ */ p({
498
498
  inheritAttrs: !1,
499
499
  __name: "PopoverContent",
500
500
  props: {
@@ -523,16 +523,16 @@ const ba = /* @__PURE__ */ p({
523
523
  },
524
524
  emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
525
525
  setup(s, { emit: e }) {
526
- const t = s, l = R(t, e, ["to", "size"]);
527
- return (i, r) => (d(), f(a(Oe), {
526
+ const t = s, l = D(t, e, ["to", "size"]);
527
+ return (i, n) => (d(), f(a(Oe), {
528
528
  to: t.to
529
529
  }, {
530
- default: n(() => [
531
- u(a(Fe), v({ ...i.$attrs, ...a(l) }, {
530
+ default: r(() => [
531
+ u(a(Fe), g({ ...i.$attrs, ...a(l) }, {
532
532
  "data-size": t.size,
533
533
  class: "ui-PopoverContent"
534
534
  }), {
535
- default: n(() => [
535
+ default: r(() => [
536
536
  h(i.$slots, "default")
537
537
  ]),
538
538
  _: 3
@@ -541,7 +541,7 @@ const ba = /* @__PURE__ */ p({
541
541
  _: 3
542
542
  }, 8, ["to"]));
543
543
  }
544
- }), Mt = { class: "ui-MenuViewport" }, [Gt, Lt] = G("ui_DropdownMenuContent"), Ia = /* @__PURE__ */ p({
544
+ }), It = { class: "ui-MenuViewport" }, [Pt, Ot] = L("ui_DropdownMenuContent"), Ra = /* @__PURE__ */ p({
545
545
  inheritAttrs: !1,
546
546
  __name: "DropdownMenuContent",
547
547
  props: {
@@ -572,19 +572,19 @@ const ba = /* @__PURE__ */ p({
572
572
  },
573
573
  emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
574
574
  setup(s, { emit: e }) {
575
- const t = s, l = R(t, e, [
575
+ const t = s, l = D(t, e, [
576
576
  "to",
577
577
  "size",
578
578
  "variant",
579
579
  "color",
580
580
  "highContrast"
581
- ]), { forwardRef: i } = S(), { size: r, variant: c, color: m, highContrast: _ } = M(t);
582
- return Lt({ size: r, variant: c, color: m, highContrast: _ }), (C, g) => (d(), f(a(Me), {
581
+ ]), { forwardRef: i } = S(), { size: n, variant: c, color: m, highContrast: y } = G(t);
582
+ return Ot({ size: n, variant: c, color: m, highContrast: y }), (b, C) => (d(), f(a(Me), {
583
583
  to: t.to
584
584
  }, {
585
- default: n(() => [
586
- u(a(Ge), v({
587
- ...C.$attrs,
585
+ default: r(() => [
586
+ u(a(Ge), g({
587
+ ...b.$attrs,
588
588
  ...a(l)
589
589
  }, {
590
590
  ref: a(i),
@@ -592,11 +592,11 @@ const ba = /* @__PURE__ */ p({
592
592
  "data-accent-color": t.color,
593
593
  "data-size": t.size
594
594
  }), {
595
- default: n(() => [
596
- u(de, { type: "auto" }, {
597
- default: n(() => [
598
- B("div", Mt, [
599
- h(C.$slots, "default")
595
+ default: r(() => [
596
+ u(ce, { type: "auto" }, {
597
+ default: r(() => [
598
+ x("div", It, [
599
+ h(b.$slots, "default")
600
600
  ])
601
601
  ]),
602
602
  _: 3
@@ -608,7 +608,7 @@ const ba = /* @__PURE__ */ p({
608
608
  _: 3
609
609
  }, 8, ["to"]));
610
610
  }
611
- }), Ht = ["textContent"], ka = /* @__PURE__ */ p({
611
+ }), Ft = ["textContent"], Da = /* @__PURE__ */ p({
612
612
  __name: "DropdownMenuItem",
613
613
  props: {
614
614
  color: {},
@@ -620,25 +620,25 @@ const ba = /* @__PURE__ */ p({
620
620
  },
621
621
  emits: ["select"],
622
622
  setup(s, { emit: e }) {
623
- const t = s, l = R(t, e, ["color", "shortcut"]);
623
+ const t = s, l = D(t, e, ["color", "shortcut"]);
624
624
  S();
625
- const i = Gt();
626
- return (r, c) => {
625
+ const i = Pt();
626
+ return (n, c) => {
627
627
  var m;
628
- return d(), f(a(Le), v({
628
+ return d(), f(a(Le), g({
629
629
  class: "ui-MenuItem",
630
630
  "data-accent-color": t.color,
631
631
  "data-size": a(i).size.value,
632
632
  "data-variant": a(i).variant.value,
633
633
  "data-high-contrast": ((m = a(i).highContrast) == null ? void 0 : m.value) || void 0
634
634
  }, a(l)), {
635
- default: n(() => [
636
- h(r.$slots, "default"),
637
- t.shortcut ? (d(), x("div", {
635
+ default: r(() => [
636
+ h(n.$slots, "default"),
637
+ t.shortcut ? (d(), B("div", {
638
638
  key: 0,
639
639
  class: "ui-MenuShortcut",
640
- textContent: F(t.shortcut)
641
- }, null, 8, Ht)) : T("", !0)
640
+ textContent: M(t.shortcut)
641
+ }, null, 8, Ft)) : R("", !0)
642
642
  ]),
643
643
  _: 3
644
644
  }, 16, ["data-accent-color", "data-size", "data-variant", "data-high-contrast"]);
@@ -664,25 +664,25 @@ const ba = /* @__PURE__ */ p({
664
664
  },
665
665
  emits: ["update:modelValue"],
666
666
  setup(s, { emit: e }) {
667
- const t = e, o = s, [l, i] = D(o, t, [
667
+ const t = e, o = s, [l, i] = O(o, t, [
668
668
  "color",
669
669
  "size",
670
670
  "variant",
671
671
  "highContrast",
672
672
  "radius"
673
673
  ]);
674
- return (r, c) => (d(), f(a(He), v(a(l), {
674
+ return (n, c) => (d(), f(a(He), g(a(l), {
675
675
  class: ["ui-Switch", a(i)],
676
676
  "data-accent-color": o.color,
677
677
  "data-radius": o.radius
678
678
  }), {
679
- default: n(() => [
679
+ default: r(() => [
680
680
  u(a(We), { class: "ui-SwitchThumb" })
681
681
  ]),
682
682
  _: 1
683
683
  }, 16, ["class", "data-accent-color", "data-radius"]));
684
684
  }
685
- }), Wt = ["data-accent-color"], Da = /* @__PURE__ */ p({
685
+ }), Mt = ["data-accent-color"], Ia = /* @__PURE__ */ p({
686
686
  __name: "Radio",
687
687
  props: {
688
688
  modelValue: {},
@@ -693,20 +693,20 @@ const ba = /* @__PURE__ */ p({
693
693
  },
694
694
  emits: ["update:modelValue"],
695
695
  setup(s, { emit: e }) {
696
- const t = s, l = A(t, "modelValue", e, {
696
+ const t = s, l = P(t, "modelValue", e, {
697
697
  defaultValue: t.modelValue,
698
698
  passive: t.modelValue === void 0
699
- }), i = y(() => V(t, ["size", "variant", "highContrast"]));
700
- return (r, c) => O((d(), x("input", {
701
- "onUpdate:modelValue": c[0] || (c[0] = (m) => I(l) ? l.value = m : null),
699
+ }), i = v(() => V(t, ["size", "variant", "highContrast"]));
700
+ return (n, c) => F((d(), B("input", {
701
+ "onUpdate:modelValue": c[0] || (c[0] = (m) => A(l) ? l.value = m : null),
702
702
  class: w(["ui-Radio", i.value]),
703
703
  type: "radio",
704
704
  "data-accent-color": t.color
705
- }, null, 10, Wt)), [
706
- [me, a(l)]
705
+ }, null, 10, Mt)), [
706
+ [he, a(l)]
707
707
  ]);
708
708
  }
709
- }), [ce, jt] = G("ui_RadioGroupRoot"), Pa = /* @__PURE__ */ p({
709
+ }), [ue, Gt] = L("ui_RadioGroupRoot"), Pa = /* @__PURE__ */ p({
710
710
  __name: "RadioGroupRoot",
711
711
  props: {
712
712
  color: {},
@@ -726,15 +726,15 @@ const ba = /* @__PURE__ */ p({
726
726
  },
727
727
  emits: ["update:modelValue"],
728
728
  setup(s, { emit: e }) {
729
- const t = e, o = s, l = R(o, t, ["color", "size", "variant", "highContrast"]), { size: i, variant: r, color: c, highContrast: m } = M(o);
730
- return jt({ size: i, variant: r, color: c, highContrast: m }), (_, C) => (d(), f(a(se), v({ class: "ui-RadioGroupRoot" }, a(l)), {
731
- default: n(() => [
732
- h(_.$slots, "default")
729
+ const t = e, o = s, l = D(o, t, ["color", "size", "variant", "highContrast"]), { size: i, variant: n, color: c, highContrast: m } = G(o);
730
+ return Gt({ size: i, variant: n, color: c, highContrast: m }), (y, b) => (d(), f(a(le), g({ class: "ui-RadioGroupRoot" }, a(l)), {
731
+ default: r(() => [
732
+ h(y.$slots, "default")
733
733
  ]),
734
734
  _: 3
735
735
  }, 16));
736
736
  }
737
- }), Et = { class: "ui-RadioGroupItem" }, Oa = /* @__PURE__ */ p({
737
+ }), Lt = { class: "ui-RadioGroupItem" }, Oa = /* @__PURE__ */ p({
738
738
  __name: "RadioGroupItem",
739
739
  props: {
740
740
  id: {},
@@ -746,18 +746,18 @@ const ba = /* @__PURE__ */ p({
746
746
  required: { type: Boolean }
747
747
  },
748
748
  setup(s) {
749
- const t = $(s), o = ce(), l = y(() => {
750
- var r;
749
+ const t = $(s), o = ue(), l = v(() => {
750
+ var n;
751
751
  const i = [
752
752
  `r-size-${o.size.value}`,
753
753
  `r-variant-${o.variant.value}`
754
754
  ];
755
- return (r = o.highContrast) != null && r.value && i.push("r-high-contrast"), i;
755
+ return (n = o.highContrast) != null && n.value && i.push("r-high-contrast"), i;
756
756
  });
757
- return (i, r) => {
757
+ return (i, n) => {
758
758
  var c;
759
- return d(), x("label", Et, [
760
- u(a(le), v({
759
+ return d(), B("label", Lt, [
760
+ u(a(ne), g({
761
761
  class: ["ui-Radio", l.value],
762
762
  "data-accent-color": (c = a(o).color) == null ? void 0 : c.value
763
763
  }, a(t)), null, 16, ["class", "data-accent-color"]),
@@ -779,21 +779,21 @@ const ba = /* @__PURE__ */ p({
779
779
  setup(s) {
780
780
  const t = $(s);
781
781
  S();
782
- const o = ce();
782
+ const o = ue();
783
783
  return (l, i) => {
784
- var r, c;
785
- return d(), f(a(le), v({
784
+ var n, c;
785
+ return d(), f(a(ne), g({
786
786
  class: "ui-RadioCardsItem",
787
- "data-accent-color": (r = a(o).color) == null ? void 0 : r.value,
787
+ "data-accent-color": (n = a(o).color) == null ? void 0 : n.value,
788
788
  "data-size": a(o).size.value,
789
789
  "data-variant": a(o).variant.value,
790
790
  "data-high-contrast": (c = a(o).highContrast) == null ? void 0 : c.value
791
791
  }, { ...a(t), asChild: !1 }), {
792
- default: n(() => [
793
- u(Rt, {
792
+ default: r(() => [
793
+ u(St, {
794
794
  "as-child": a(t).asChild
795
795
  }, {
796
- default: n(() => [
796
+ default: r(() => [
797
797
  h(l.$slots, "default")
798
798
  ]),
799
799
  _: 3
@@ -803,7 +803,7 @@ const ba = /* @__PURE__ */ p({
803
803
  }, 16, ["data-accent-color", "data-size", "data-variant", "data-high-contrast"]);
804
804
  };
805
805
  }
806
- }), qt = {
806
+ }), Ht = {
807
807
  key: 0,
808
808
  xmlns: "http://www.w3.org/2000/svg",
809
809
  viewBox: "0 0 24 24",
@@ -812,13 +812,13 @@ const ba = /* @__PURE__ */ p({
812
812
  "stroke-width": "4",
813
813
  "stroke-linecap": "round",
814
814
  "stroke-linejoin": "round"
815
- }, Ut = {
815
+ }, Wt = {
816
816
  key: 0,
817
817
  d: "M5 12h14"
818
- }, Kt = {
818
+ }, jt = {
819
819
  key: 1,
820
820
  d: "M20 6 9 17l-5-5"
821
- }, ue = /* @__PURE__ */ p({
821
+ }, pe = /* @__PURE__ */ p({
822
822
  __name: "Checkbox",
823
823
  props: {
824
824
  color: {},
@@ -837,20 +837,20 @@ const ba = /* @__PURE__ */ p({
837
837
  },
838
838
  emits: ["update:modelValue"],
839
839
  setup(s, { emit: e }) {
840
- const t = e, o = s, [l, i] = D(o, t, ["color", "size", "variant", "highContrast"]);
841
- return (r, c) => (d(), f(a(je), v(a(l), {
840
+ const t = e, o = s, [l, i] = O(o, t, ["color", "size", "variant", "highContrast"]);
841
+ return (n, c) => (d(), f(a(je), g(a(l), {
842
842
  class: ["ui-Checkbox", a(i)],
843
843
  "data-accent-color": o.color
844
844
  }), {
845
- default: n(() => [
845
+ default: r(() => [
846
846
  u(a(Ee), {
847
847
  class: "ui-CheckboxIndicator",
848
848
  "as-child": ""
849
849
  }, {
850
- default: n(() => [
851
- a(l).checked !== !1 ? (d(), x("svg", qt, [
852
- a(l).checked === "indeterminate" ? (d(), x("path", Ut)) : (d(), x("path", Kt))
853
- ])) : T("", !0)
850
+ default: r(() => [
851
+ a(l).checked !== !1 ? (d(), B("svg", Ht, [
852
+ a(l).checked === "indeterminate" ? (d(), B("path", Wt)) : (d(), B("path", jt))
853
+ ])) : R("", !0)
854
854
  ]),
855
855
  _: 1
856
856
  })
@@ -858,7 +858,7 @@ const ba = /* @__PURE__ */ p({
858
858
  _: 1
859
859
  }, 16, ["class", "data-accent-color"]));
860
860
  }
861
- }), [pe, Nt] = G("ui_CheckboxGroupRoot"), Ma = /* @__PURE__ */ p({
861
+ }), [fe, Et] = L("ui_CheckboxGroupRoot"), Ma = /* @__PURE__ */ p({
862
862
  __name: "CheckboxGroupRoot",
863
863
  props: {
864
864
  modelValue: {},
@@ -870,42 +870,42 @@ const ba = /* @__PURE__ */ p({
870
870
  },
871
871
  emits: ["update:modelValue"],
872
872
  setup(s, { emit: e }) {
873
- const t = s, o = e, { disabled: l, name: i } = M(t), r = U([]), c = A(t, "modelValue", o, {
873
+ const t = s, o = e, { disabled: l, name: i } = G(t), n = q([]), c = P(t, "modelValue", o, {
874
874
  defaultValue: t.defaultValue,
875
875
  passive: t.modelValue === void 0
876
- }), m = y(() => c.value || []), _ = y(() => {
877
- var g, b;
878
- return r.value.length ? ((g = c.value) == null ? void 0 : g.length) === r.value.length ? !0 : (b = c.value) != null && b.length ? "indeterminate" : !1 : !1;
879
- }), C = (g) => {
880
- var P, Q;
881
- const b = (P = c.value) == null ? void 0 : P.indexOf(g);
882
- b !== -1 && b !== void 0 && ((Q = c.value) == null || Q.splice(b, 1));
876
+ }), m = v(() => c.value || []), y = v(() => {
877
+ var C, _;
878
+ return n.value.length ? ((C = c.value) == null ? void 0 : C.length) === n.value.length ? !0 : (_ = c.value) != null && _.length ? "indeterminate" : !1 : !1;
879
+ }), b = (C) => {
880
+ var k, z;
881
+ const _ = (k = c.value) == null ? void 0 : k.indexOf(C);
882
+ _ !== -1 && _ !== void 0 && ((z = c.value) == null || z.splice(_, 1));
883
883
  };
884
- return Nt({
884
+ return Et({
885
885
  selected: m,
886
- checked: _,
887
- addModelValue: (g) => {
888
- var b, P;
889
- ((b = c.value) == null ? void 0 : b.indexOf(g)) === -1 && ((P = c.value) == null || P.push(g));
886
+ checked: y,
887
+ addModelValue: (C) => {
888
+ var _, k;
889
+ ((_ = c.value) == null ? void 0 : _.indexOf(C)) === -1 && ((k = c.value) == null || k.push(C));
890
890
  },
891
- removeModelValue: C,
892
- toggleModelValue: (g) => {
893
- g ? c.value = [...r.value] : c.value = [];
891
+ removeModelValue: b,
892
+ toggleModelValue: (C) => {
893
+ C ? c.value = [...n.value] : c.value = [];
894
894
  },
895
- initAllValue: (g) => {
896
- r.value.push(g);
895
+ initAllValue: (C) => {
896
+ n.value.push(C);
897
897
  },
898
- removeAllValue: (g) => {
899
- r.value.splice(r.value.indexOf(g), 1), C(g);
898
+ removeAllValue: (C) => {
899
+ n.value.splice(n.value.indexOf(C), 1), b(C);
900
900
  },
901
901
  disabled: l,
902
902
  name: i == null ? void 0 : i.value
903
- }), (g, b) => (d(), f(a(k), {
903
+ }), (C, _) => (d(), f(a(I), {
904
904
  as: t.as,
905
905
  "as-child": t.asChild
906
906
  }, {
907
- default: n(() => [
908
- h(g.$slots, "default")
907
+ default: r(() => [
908
+ h(C.$slots, "default")
909
909
  ]),
910
910
  _: 3
911
911
  }, 8, ["as", "as-child"]));
@@ -930,22 +930,22 @@ const ba = /* @__PURE__ */ p({
930
930
  setup(s) {
931
931
  const e = s, t = $(e);
932
932
  S();
933
- const o = pe(), l = y(() => {
933
+ const o = fe(), l = v(() => {
934
934
  var c;
935
935
  return ((c = o.disabled) == null ? void 0 : c.value) || e.disabled;
936
- }), i = y(() => o.selected.value.indexOf(e.value) !== -1), r = (c) => {
936
+ }), i = v(() => o.selected.value.indexOf(e.value) !== -1), n = (c) => {
937
937
  c ? o.addModelValue(e.value) : o.removeModelValue(e.value);
938
938
  };
939
- return te(() => {
939
+ return ae(() => {
940
940
  o.initAllValue(e.value);
941
- }), ae(() => {
941
+ }), oe(() => {
942
942
  o.removeAllValue(e.value);
943
- }), (c, m) => (d(), f(ue, v({
943
+ }), (c, m) => (d(), f(pe, g({
944
944
  ...a(t),
945
945
  name: e.name || a(o).name,
946
946
  checked: i.value,
947
947
  disabled: l.value
948
- }, { "onUpdate:checked": r }), null, 16));
948
+ }, { "onUpdate:checked": n }), null, 16));
949
949
  }
950
950
  }), La = /* @__PURE__ */ p({
951
951
  __name: "CheckboxGroupControl",
@@ -967,11 +967,11 @@ const ba = /* @__PURE__ */ p({
967
967
  setup(s) {
968
968
  const e = s, t = $(e);
969
969
  S();
970
- const o = pe(), l = y(() => {
971
- var r;
972
- return ((r = o.disabled) == null ? void 0 : r.value) || e.disabled;
973
- }), i = y(() => o.checked.value);
974
- return (r, c) => (d(), f(ue, v({
970
+ const o = fe(), l = v(() => {
971
+ var n;
972
+ return ((n = o.disabled) == null ? void 0 : n.value) || e.disabled;
973
+ }), i = v(() => o.checked.value);
974
+ return (n, c) => (d(), f(pe, g({
975
975
  ...a(t),
976
976
  name: e.name || a(o).name,
977
977
  checked: i.value,
@@ -980,11 +980,11 @@ const ba = /* @__PURE__ */ p({
980
980
  "onUpdate:checked": a(o).toggleModelValue
981
981
  }), null, 16, ["onUpdate:checked"]));
982
982
  }
983
- }), Qt = ["data-radius", "data-accent-color"], Jt = ["id", "type"], Zt = {
983
+ }), qt = ["data-radius", "data-accent-color"], Ut = ["id", "type"], Kt = {
984
984
  key: 0,
985
985
  class: "ui-TextFieldSlot",
986
986
  "data-side": "left"
987
- }, Xt = {
987
+ }, Nt = {
988
988
  key: 1,
989
989
  class: "ui-TextFieldSlot",
990
990
  "data-side": "right"
@@ -1003,46 +1003,46 @@ const ba = /* @__PURE__ */ p({
1003
1003
  },
1004
1004
  emits: ["update:modelValue"],
1005
1005
  setup(s, { emit: e }) {
1006
- const t = s, o = U(), l = (m) => {
1007
- const _ = m.target;
1008
- if (_.closest("input, button, a")) return;
1009
- const C = o.value;
1010
- if (!C) return;
1011
- const b = _.closest("[data-side=right]") ? C.value.length : 0;
1006
+ const t = s, o = q(), l = (m) => {
1007
+ const y = m.target;
1008
+ if (y.closest("input, button, a")) return;
1009
+ const b = o.value;
1010
+ if (!b) return;
1011
+ const _ = y.closest("[data-side=right]") ? b.value.length : 0;
1012
1012
  requestAnimationFrame(() => {
1013
- C.setSelectionRange(b, b), C.focus();
1013
+ b.setSelectionRange(_, _), b.focus();
1014
1014
  });
1015
- }, r = A(t, "modelValue", e, {
1015
+ }, n = P(t, "modelValue", e, {
1016
1016
  defaultValue: t.modelValue,
1017
1017
  passive: t.modelValue === void 0
1018
- }), c = y(() => {
1018
+ }), c = v(() => {
1019
1019
  const m = V(t, ["size", "variant"]);
1020
1020
  return t.class && m.push(t.class), m;
1021
1021
  });
1022
- return (m, _) => (d(), x("div", {
1022
+ return (m, y) => (d(), B("div", {
1023
1023
  class: w(["ui-TextField", c.value]),
1024
1024
  "data-radius": t.radius,
1025
1025
  "data-accent-color": t.color,
1026
1026
  onPointerdown: l
1027
1027
  }, [
1028
- O(B("input", v({
1028
+ F(x("input", g({
1029
1029
  id: t.id,
1030
1030
  ref_key: "inputRef",
1031
1031
  ref: o,
1032
- "onUpdate:modelValue": _[0] || (_[0] = (C) => I(r) ? r.value = C : null),
1032
+ "onUpdate:modelValue": y[0] || (y[0] = (b) => A(n) ? n.value = b : null),
1033
1033
  type: t.type
1034
- }, m.$attrs, { class: "ui-TextFieldInput" }), null, 16, Jt), [
1035
- [he, a(r)]
1034
+ }, m.$attrs, { class: "ui-TextFieldInput" }), null, 16, Ut), [
1035
+ [_e, a(n)]
1036
1036
  ]),
1037
- m.$slots.left ? (d(), x("div", Zt, [
1037
+ m.$slots.left ? (d(), B("div", Kt, [
1038
1038
  h(m.$slots, "left")
1039
- ])) : T("", !0),
1040
- m.$slots.right ? (d(), x("div", Xt, [
1039
+ ])) : R("", !0),
1040
+ m.$slots.right ? (d(), B("div", Nt, [
1041
1041
  h(m.$slots, "right")
1042
- ])) : T("", !0)
1043
- ], 42, Qt));
1042
+ ])) : R("", !0)
1043
+ ], 42, qt));
1044
1044
  }
1045
- }), Yt = ["data-accent-color"], Wa = /* @__PURE__ */ p({
1045
+ }), Qt = ["data-accent-color"], Wa = /* @__PURE__ */ p({
1046
1046
  inheritAttrs: !1,
1047
1047
  __name: "TextArea",
1048
1048
  props: {
@@ -1056,25 +1056,25 @@ const ba = /* @__PURE__ */ p({
1056
1056
  },
1057
1057
  emits: ["update:modelValue"],
1058
1058
  setup(s, { emit: e }) {
1059
- const t = s, l = A(t, "modelValue", e, {
1059
+ const t = s, l = P(t, "modelValue", e, {
1060
1060
  defaultValue: t.modelValue,
1061
1061
  passive: t.modelValue === void 0
1062
- }), i = y(() => {
1063
- const r = V(t, ["size", "variant", "resize"]);
1064
- return t.class && r.push(t.class), r;
1062
+ }), i = v(() => {
1063
+ const n = V(t, ["size", "variant", "resize"]);
1064
+ return t.class && n.push(t.class), n;
1065
1065
  });
1066
- return (r, c) => (d(), x("div", {
1066
+ return (n, c) => (d(), B("div", {
1067
1067
  class: w(["ui-TextArea", i.value]),
1068
1068
  "data-accent-color": t.color
1069
1069
  }, [
1070
- O(B("textarea", v({
1071
- "onUpdate:modelValue": c[0] || (c[0] = (m) => I(l) ? l.value = m : null)
1072
- }, r.$attrs, { class: "ui-TextAreaInput" }), null, 16), [
1073
- [q, a(l)]
1070
+ F(x("textarea", g({
1071
+ "onUpdate:modelValue": c[0] || (c[0] = (m) => A(l) ? l.value = m : null)
1072
+ }, n.$attrs, { class: "ui-TextAreaInput" }), null, 16), [
1073
+ [K, a(l)]
1074
1074
  ])
1075
- ], 10, Yt));
1075
+ ], 10, Qt));
1076
1076
  }
1077
- }), ea = ["data-accent-color"], ta = ["id"], ja = /* @__PURE__ */ p({
1077
+ }), Jt = ["data-accent-color"], Zt = ["id"], ja = /* @__PURE__ */ p({
1078
1078
  __name: "ColorField",
1079
1079
  props: {
1080
1080
  id: {},
@@ -1086,31 +1086,31 @@ const ba = /* @__PURE__ */ p({
1086
1086
  },
1087
1087
  emits: ["update:modelValue"],
1088
1088
  setup(s, { emit: e }) {
1089
- const t = s, l = A(t, "modelValue", e, {
1089
+ const t = s, l = P(t, "modelValue", e, {
1090
1090
  defaultValue: t.modelValue || "#000000",
1091
1091
  passive: t.modelValue === void 0
1092
- }), i = y(() => V(t, ["size", "variant"]));
1093
- return (r, c) => (d(), x("div", {
1092
+ }), i = v(() => V(t, ["size", "variant"]));
1093
+ return (n, c) => (d(), B("div", {
1094
1094
  class: w(["ui-TextField ui-ColorField", i.value]),
1095
1095
  "data-accent-color": t.color
1096
1096
  }, [
1097
- O(B("input", {
1097
+ F(x("input", {
1098
1098
  id: t.id,
1099
- "onUpdate:modelValue": c[0] || (c[0] = (m) => I(l) ? l.value = m : null),
1099
+ "onUpdate:modelValue": c[0] || (c[0] = (m) => A(l) ? l.value = m : null),
1100
1100
  class: "ui-ColorFieldInput",
1101
1101
  type: "color"
1102
- }, null, 8, ta), [
1103
- [q, a(l)]
1102
+ }, null, 8, Zt), [
1103
+ [K, a(l)]
1104
1104
  ]),
1105
- O(B("input", {
1106
- "onUpdate:modelValue": c[1] || (c[1] = (m) => I(l) ? l.value = m : null),
1105
+ F(x("input", {
1106
+ "onUpdate:modelValue": c[1] || (c[1] = (m) => A(l) ? l.value = m : null),
1107
1107
  class: "ui-TextFieldInput",
1108
1108
  type: "text",
1109
1109
  pattern: "^#[0-9a-f]{6}$"
1110
1110
  }, null, 512), [
1111
- [q, a(l)]
1111
+ [K, a(l)]
1112
1112
  ])
1113
- ], 10, ea));
1113
+ ], 10, Jt));
1114
1114
  }
1115
1115
  }), Ea = /* @__PURE__ */ p({
1116
1116
  __name: "Toggle",
@@ -1130,20 +1130,20 @@ const ba = /* @__PURE__ */ p({
1130
1130
  },
1131
1131
  emits: ["update:modelValue"],
1132
1132
  setup(s, { emit: e }) {
1133
- const t = e, o = s, [l, i] = D(o, t, [
1133
+ const t = e, o = s, [l, i] = O(o, t, [
1134
1134
  "color",
1135
1135
  "size",
1136
1136
  "variant",
1137
1137
  "highContrast",
1138
1138
  "radius"
1139
1139
  ]);
1140
- return (r, c) => (d(), f(a(qe), v(a(l), {
1140
+ return (n, c) => (d(), f(a(qe), g(a(l), {
1141
1141
  class: ["ui-Toggle", a(i)],
1142
1142
  "data-accent-color": o.color,
1143
1143
  "data-radius": o.radius
1144
1144
  }), {
1145
- default: n(() => [
1146
- h(r.$slots, "default")
1145
+ default: r(() => [
1146
+ h(n.$slots, "default")
1147
1147
  ]),
1148
1148
  _: 3
1149
1149
  }, 16, ["class", "data-accent-color", "data-radius"]));
@@ -1171,20 +1171,20 @@ const ba = /* @__PURE__ */ p({
1171
1171
  },
1172
1172
  emits: ["update:modelValue"],
1173
1173
  setup(s, { emit: e }) {
1174
- const t = e, o = s, [l, i] = D(o, t, [
1174
+ const t = e, o = s, [l, i] = O(o, t, [
1175
1175
  "color",
1176
1176
  "size",
1177
1177
  "variant",
1178
1178
  "highContrast",
1179
1179
  "radius"
1180
1180
  ]);
1181
- return (r, c) => (d(), f(a(Ue), v(a(l), {
1181
+ return (n, c) => (d(), f(a(Ue), g(a(l), {
1182
1182
  class: ["ui-ToggleGroupRoot", a(i)],
1183
1183
  "data-accent-color": o.color,
1184
1184
  "data-radius": o.radius
1185
1185
  }), {
1186
- default: n(() => [
1187
- h(r.$slots, "default")
1186
+ default: r(() => [
1187
+ h(n.$slots, "default")
1188
1188
  ]),
1189
1189
  _: 3
1190
1190
  }, 16, ["class", "data-accent-color", "data-radius"]));
@@ -1201,14 +1201,14 @@ const ba = /* @__PURE__ */ p({
1201
1201
  },
1202
1202
  setup(s) {
1203
1203
  const t = $(s);
1204
- return (o, l) => (d(), f(a(Ke), v(a(t), { class: "ui-ToggleGroupItem" }), {
1205
- default: n(() => [
1204
+ return (o, l) => (d(), f(a(Ke), g(a(t), { class: "ui-ToggleGroupItem" }), {
1205
+ default: r(() => [
1206
1206
  h(o.$slots, "default")
1207
1207
  ]),
1208
1208
  _: 3
1209
1209
  }, 16));
1210
1210
  }
1211
- }), [fe, aa] = G("ui_SelectRoot"), Ka = /* @__PURE__ */ p({
1211
+ }), [me, Xt] = L("ui_SelectRoot"), Ka = /* @__PURE__ */ p({
1212
1212
  __name: "SelectRoot",
1213
1213
  props: {
1214
1214
  size: { default: "2" },
@@ -1228,13 +1228,13 @@ const ba = /* @__PURE__ */ p({
1228
1228
  },
1229
1229
  emits: ["update:modelValue", "update:open"],
1230
1230
  setup(s, { emit: e }) {
1231
- const t = s, o = e, { size: l, color: i, highContrast: r } = M(t), c = R(t, o, ["size", "color", "highContrast"]);
1232
- return aa({
1231
+ const t = s, o = e, { size: l, color: i, highContrast: n } = G(t), c = D(t, o, ["size", "color", "highContrast"]);
1232
+ return Xt({
1233
1233
  size: l,
1234
1234
  color: i,
1235
- highContrast: r
1236
- }), (m, _) => (d(), f(a(Ne), _e(ge(a(c))), {
1237
- default: n(() => [
1235
+ highContrast: n
1236
+ }), (m, y) => (d(), f(a(Ne), ge(ve(a(c))), {
1237
+ default: r(() => [
1238
1238
  h(m.$slots, "default")
1239
1239
  ]),
1240
1240
  _: 3
@@ -1268,16 +1268,16 @@ const ba = /* @__PURE__ */ p({
1268
1268
  as: {}
1269
1269
  },
1270
1270
  setup(s) {
1271
- const e = s, t = $(e), { forwardRef: o } = S(), l = fe(), i = y(() => {
1272
- const r = ["r-size-" + l.size.value, "r-variant-" + e.variant];
1273
- return l.highContrast.value && r.push("r-high-contrast"), e.position === "popper" && r.push("ui-PopperContent"), r;
1271
+ const e = s, t = $(e), { forwardRef: o } = S(), l = me(), i = v(() => {
1272
+ const n = ["r-size-" + l.size.value, "r-variant-" + e.variant];
1273
+ return l.highContrast.value && n.push("r-high-contrast"), e.position === "popper" && n.push("ui-PopperContent"), n;
1274
1274
  });
1275
- return (r, c) => (d(), f(a(Qe), {
1275
+ return (n, c) => (d(), f(a(Qe), {
1276
1276
  to: e.to
1277
1277
  }, {
1278
- default: n(() => [
1279
- u(a(Je), v({ ref: a(o) }, {
1280
- ...r.$attrs,
1278
+ default: r(() => [
1279
+ u(a(Je), g({ ref: a(o) }, {
1280
+ ...n.$attrs,
1281
1281
  ...a(t),
1282
1282
  to: void 0,
1283
1283
  variant: void 0
@@ -1285,31 +1285,31 @@ const ba = /* @__PURE__ */ p({
1285
1285
  class: ["ui-SelectContent", i.value],
1286
1286
  "data-accent-color": a(l).color.value
1287
1287
  }), {
1288
- default: n(() => [
1289
- u(a(K), {
1288
+ default: r(() => [
1289
+ u(a(N), {
1290
1290
  type: "auto",
1291
1291
  class: "ui-ScrollArea"
1292
1292
  }, {
1293
- default: n(() => [
1293
+ default: r(() => [
1294
1294
  u(a(Ze), {
1295
1295
  class: "ui-SelectViewport",
1296
1296
  "as-child": ""
1297
1297
  }, {
1298
- default: n(() => [
1299
- u(a(N), { class: "ui-ScrollAreaViewport" }, {
1300
- default: n(() => [
1301
- h(r.$slots, "default")
1298
+ default: r(() => [
1299
+ u(a(Q), { class: "ui-ScrollAreaViewport" }, {
1300
+ default: r(() => [
1301
+ h(n.$slots, "default")
1302
1302
  ]),
1303
1303
  _: 3
1304
1304
  }),
1305
- c[0] || (c[0] = B("div", { class: "ui-ScrollAreaViewportFocusRing" }, null, -1)),
1306
- u(a(W), {
1305
+ c[0] || (c[0] = x("div", { class: "ui-ScrollAreaViewportFocusRing" }, null, -1)),
1306
+ u(a(j), {
1307
1307
  class: "ui-ScrollAreaScrollbar",
1308
1308
  "data-size": 1,
1309
1309
  orientation: "vertical"
1310
1310
  }, {
1311
- default: n(() => [
1312
- u(a(j), { class: "ui-ScrollAreaThumb" })
1311
+ default: r(() => [
1312
+ u(a(E), { class: "ui-ScrollAreaThumb" })
1313
1313
  ]),
1314
1314
  _: 1
1315
1315
  })
@@ -1326,7 +1326,7 @@ const ba = /* @__PURE__ */ p({
1326
1326
  _: 3
1327
1327
  }, 8, ["to"]));
1328
1328
  }
1329
- }), oa = { class: "ui-SelectTriggerInner" }, Qa = /* @__PURE__ */ p({
1329
+ }), Yt = { class: "ui-SelectTriggerInner" }, Qa = /* @__PURE__ */ p({
1330
1330
  __name: "SelectTrigger",
1331
1331
  props: {
1332
1332
  variant: { default: "surface" },
@@ -1338,22 +1338,22 @@ const ba = /* @__PURE__ */ p({
1338
1338
  as: {}
1339
1339
  },
1340
1340
  setup(s) {
1341
- const e = s, t = fe(), o = y(() => [`r-variant-${e.variant}`, `r-size-${t.size.value}`]);
1341
+ const e = s, t = me(), o = v(() => [`r-variant-${e.variant}`, `r-size-${t.size.value}`]);
1342
1342
  return (l, i) => (d(), f(a(Xe), {
1343
1343
  class: w(["ui-SelectTrigger", o.value]),
1344
1344
  disabled: e.disabled,
1345
1345
  "data-accent-color": a(t).color,
1346
1346
  "data-radius": e.radius
1347
1347
  }, {
1348
- default: n(() => [
1349
- B("span", oa, [
1348
+ default: r(() => [
1349
+ x("span", Yt, [
1350
1350
  u(a(Ye), {
1351
1351
  placeholder: e.placeholder
1352
1352
  }, null, 8, ["placeholder"])
1353
1353
  ]),
1354
1354
  u(a(et), { "as-child": "" }, {
1355
- default: n(() => [
1356
- u(a(z), {
1355
+ default: r(() => [
1356
+ u(a(T), {
1357
1357
  class: "ui-SelectIcon",
1358
1358
  icon: "radix-icons:chevron-down"
1359
1359
  })
@@ -1375,16 +1375,16 @@ const ba = /* @__PURE__ */ p({
1375
1375
  },
1376
1376
  setup(s) {
1377
1377
  const t = $(s);
1378
- return S(), (o, l) => (d(), f(a(tt), v({ class: "ui-SelectItem" }, a(t)), {
1379
- default: n(() => [
1378
+ return S(), (o, l) => (d(), f(a(tt), g({ class: "ui-SelectItem" }, a(t)), {
1379
+ default: r(() => [
1380
1380
  u(a(at), { class: "ui-SelectItemIndicator" }, {
1381
- default: n(() => [
1382
- u(a(z), { icon: "radix-icons:check" })
1381
+ default: r(() => [
1382
+ u(a(T), { icon: "radix-icons:check" })
1383
1383
  ]),
1384
1384
  _: 1
1385
1385
  }),
1386
1386
  u(a(ot), null, {
1387
- default: n(() => [
1387
+ default: r(() => [
1388
1388
  h(o.$slots, "default")
1389
1389
  ]),
1390
1390
  _: 3
@@ -1402,26 +1402,26 @@ const ba = /* @__PURE__ */ p({
1402
1402
  },
1403
1403
  setup(s) {
1404
1404
  const t = $(s);
1405
- return S(), (o, l) => (d(), f(a(st), v({ class: "ui-SelectLabel" }, a(t)), {
1406
- default: n(() => [
1405
+ return S(), (o, l) => (d(), f(a(st), g({ class: "ui-SelectLabel" }, a(t)), {
1406
+ default: r(() => [
1407
1407
  h(o.$slots, "default")
1408
1408
  ]),
1409
1409
  _: 3
1410
1410
  }, 16));
1411
1411
  }
1412
- }), sa = (s, e) => {
1412
+ }), ea = (s, e) => {
1413
1413
  const t = s.__vccOpts || s;
1414
1414
  for (const [o, l] of e)
1415
1415
  t[o] = l;
1416
1416
  return t;
1417
- }, la = {}, na = {
1417
+ }, ta = {}, aa = {
1418
1418
  class: "ui-SelectSeparator",
1419
1419
  "aria-hidden": "true"
1420
1420
  };
1421
- function ra(s, e) {
1422
- return d(), x("div", na);
1421
+ function oa(s, e) {
1422
+ return d(), B("div", aa);
1423
1423
  }
1424
- const Xa = /* @__PURE__ */ sa(la, [["render", ra]]), [ia, da] = G("ui_ComboboxRoot"), Ya = /* @__PURE__ */ p({
1424
+ const Xa = /* @__PURE__ */ ea(ta, [["render", oa]]), [sa, la] = L("ui_ComboboxRoot"), Ya = /* @__PURE__ */ p({
1425
1425
  __name: "ComboboxRoot",
1426
1426
  props: {
1427
1427
  size: { default: "2" },
@@ -1445,21 +1445,24 @@ const Xa = /* @__PURE__ */ sa(la, [["render", ra]]), [ia, da] = G("ui_ComboboxRo
1445
1445
  },
1446
1446
  emits: ["update:modelValue", "highlight", "update:open"],
1447
1447
  setup(s, { emit: e }) {
1448
- const t = s, o = e, { size: l, color: i, highContrast: r } = M(t), [c, m] = D(t, o, ["size", "color", "highContrast"]);
1449
- return da({
1448
+ const t = s, o = e, { size: l, color: i, highContrast: n } = G(t), [c, m] = O(t, o, ["size", "color", "highContrast"]);
1449
+ return la({
1450
1450
  size: l,
1451
1451
  color: i,
1452
- highContrast: r
1453
- }), (_, C) => (d(), f(a(lt), v({
1452
+ highContrast: n
1453
+ }), (y, b) => (d(), f(a(lt), g({
1454
1454
  class: ["ui-ComboboxRoot", a(m)]
1455
1455
  }, a(c)), {
1456
- default: n(() => [
1457
- h(_.$slots, "default")
1456
+ default: r(() => [
1457
+ h(y.$slots, "default")
1458
1458
  ]),
1459
1459
  _: 3
1460
1460
  }, 16, ["class"]));
1461
1461
  }
1462
- }), eo = /* @__PURE__ */ p({
1462
+ }), na = {
1463
+ key: 0,
1464
+ class: "ui-ComboboxValues"
1465
+ }, ra = ["aria-current", "value"], ia = ["onClick"], eo = /* @__PURE__ */ p({
1463
1466
  inheritAttrs: !1,
1464
1467
  __name: "ComboboxInput",
1465
1468
  props: {
@@ -1475,64 +1478,53 @@ const Xa = /* @__PURE__ */ sa(la, [["render", ra]]), [ia, da] = G("ui_ComboboxRo
1475
1478
  },
1476
1479
  emits: ["update:modelValue"],
1477
1480
  setup(s, { emit: e }) {
1478
- const t = nt(), o = s, l = e, i = ne(o, l), r = A(o, "modelValue", l, {
1481
+ const t = nt(), o = s, l = e, i = re(o, l), n = P(o, "modelValue", l, {
1479
1482
  passive: !0
1480
- }), c = y(() => t.modelValue.value), m = (_) => typeof _ == "object" ? JSON.stringify(_) : _.toString();
1481
- return ve(c, () => {
1482
- r.value = "", t.filterState.search = "";
1483
- }, { deep: !0 }), (_, C) => (d(), f(a(rt), {
1483
+ }), c = q(-1), m = v(() => t.modelValue.value), y = (_) => typeof _ == "object" ? JSON.stringify(_) : _.toString(), b = (_) => {
1484
+ c.value = _, t.modelValue.value.splice(_, 1), c.value = -1;
1485
+ }, C = (_) => {
1486
+ !n.value && (_.key === "Delete" || _.key === "Backspace") && (c.value !== -1 ? b(c.value) : (c.value = m.value.length - 1, setTimeout(() => {
1487
+ c.value = -1;
1488
+ }, 500)));
1489
+ };
1490
+ return ye(m, () => {
1491
+ n.value = "", t.filterState.search = "";
1492
+ }, { deep: !0 }), (_, k) => (d(), f(a(rt), {
1484
1493
  class: w(["ui-ComboboxField", `r-variant-${_.variant}`]),
1485
1494
  "data-radius": _.radius,
1486
1495
  "data-multiple": a(t).multiple.value || void 0
1487
1496
  }, {
1488
- default: n(() => [
1489
- a(t).multiple.value ? (d(), f(a(it), {
1490
- key: 0,
1491
- class: "ui-ComboboxTagsRoot",
1492
- "model-value": c.value,
1493
- delimiter: ""
1494
- }, {
1495
- default: n(() => [
1496
- (d(!0), x(ye, null, Ce(c.value, (g) => (d(), f(a(dt), {
1497
- key: m(g),
1498
- class: "ui-ComboboxTagsItem",
1499
- value: g
1500
- }, {
1501
- default: n(() => [
1502
- h(_.$slots, "item", { value: g }, () => [
1503
- B("span", null, F(m(g)), 1)
1504
- ]),
1505
- u(a(ct), null, {
1506
- default: n(() => [
1507
- u(a(z), { icon: "lucide:x" })
1508
- ]),
1509
- _: 1
1510
- })
1511
- ]),
1512
- _: 2
1513
- }, 1032, ["value"]))), 128)),
1514
- u(a(J), v({
1515
- ..._.$attrs,
1516
- ...a(i),
1517
- variant: void 0,
1518
- radius: void 0
1519
- }, {
1520
- modelValue: a(r),
1521
- "onUpdate:modelValue": C[1] || (C[1] = (g) => I(r) ? r.value = g : null),
1522
- class: "ui-ComboboxInput",
1523
- "as-child": ""
1524
- }), {
1525
- default: n(() => [
1526
- u(a(ut), {
1527
- onKeydown: C[0] || (C[0] = be(Be(() => {
1528
- }, ["prevent"]), ["enter"]))
1529
- })
1530
- ]),
1531
- _: 1
1532
- }, 16, ["modelValue"])
1533
- ]),
1534
- _: 3
1535
- }, 8, ["model-value"])) : (d(), f(a(J), v({
1497
+ default: r(() => [
1498
+ a(t).multiple.value ? (d(), B("div", na, [
1499
+ (d(!0), B(Ce, null, be(m.value, (z, J) => (d(), B("div", {
1500
+ class: "ui-ComboboxValuesItem",
1501
+ "aria-current": J === c.value,
1502
+ key: y(z),
1503
+ value: z
1504
+ }, [
1505
+ h(_.$slots, "item", { value: z }, () => [
1506
+ x("span", null, M(y(z)), 1)
1507
+ ]),
1508
+ x("button", {
1509
+ type: "button",
1510
+ tabindex: "-1",
1511
+ onClick: Be((_a) => b(J), ["prevent"])
1512
+ }, [
1513
+ u(a(T), { icon: "lucide:x" })
1514
+ ], 8, ia)
1515
+ ], 8, ra))), 128)),
1516
+ u(a(Z), g({
1517
+ ..._.$attrs,
1518
+ ...a(i),
1519
+ variant: void 0,
1520
+ radius: void 0
1521
+ }, {
1522
+ modelValue: a(n),
1523
+ "onUpdate:modelValue": k[0] || (k[0] = (z) => A(n) ? n.value = z : null),
1524
+ class: "ui-ComboboxInput",
1525
+ onKeydown: C
1526
+ }), null, 16, ["modelValue"])
1527
+ ])) : (d(), f(a(Z), g({
1536
1528
  key: 1,
1537
1529
  class: "ui-ComboboxInput"
1538
1530
  }, {
@@ -1541,9 +1533,9 @@ const Xa = /* @__PURE__ */ sa(la, [["render", ra]]), [ia, da] = G("ui_ComboboxRo
1541
1533
  variant: void 0,
1542
1534
  radius: void 0
1543
1535
  }), null, 16)),
1544
- u(a(pt), { class: "ui-ComboboxTrigger" }, {
1545
- default: n(() => [
1546
- u(a(z), { icon: "radix-icons:chevron-down" })
1536
+ u(a(it), { class: "ui-ComboboxTrigger" }, {
1537
+ default: r(() => [
1538
+ u(a(T), { icon: "radix-icons:chevron-down" })
1547
1539
  ]),
1548
1540
  _: 1
1549
1541
  })
@@ -1581,15 +1573,15 @@ const Xa = /* @__PURE__ */ sa(la, [["render", ra]]), [ia, da] = G("ui_ComboboxRo
1581
1573
  },
1582
1574
  emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside"],
1583
1575
  setup(s, { emit: e }) {
1584
- const { forwardRef: t } = S(), o = s, i = ne(o, e), r = ia(), c = y(() => {
1585
- const m = ["r-size-" + r.size.value, "r-variant-" + o.variant];
1586
- return r.highContrast.value && m.push("r-high-contrast"), m;
1576
+ const { forwardRef: t } = S(), o = s, i = re(o, e), n = sa(), c = v(() => {
1577
+ const m = ["r-size-" + n.size.value, "r-variant-" + o.variant];
1578
+ return n.highContrast.value && m.push("r-high-contrast"), m;
1587
1579
  });
1588
- return (m, _) => (d(), f(a(ft), {
1580
+ return (m, y) => (d(), f(a(dt), {
1589
1581
  to: o.to
1590
1582
  }, {
1591
- default: n(() => [
1592
- u(a(mt), v({ ref: a(t) }, {
1583
+ default: r(() => [
1584
+ u(a(ct), g({ ref: a(t) }, {
1593
1585
  ...m.$attrs,
1594
1586
  ...a(i),
1595
1587
  position: "popper",
@@ -1597,21 +1589,21 @@ const Xa = /* @__PURE__ */ sa(la, [["render", ra]]), [ia, da] = G("ui_ComboboxRo
1597
1589
  variant: void 0
1598
1590
  }, {
1599
1591
  class: ["ui-ComboboxContent", c.value],
1600
- "data-accent-color": a(r).color.value
1592
+ "data-accent-color": a(n).color.value
1601
1593
  }), {
1602
- default: n(() => [
1603
- u(a(K), {
1594
+ default: r(() => [
1595
+ u(a(N), {
1604
1596
  type: "auto",
1605
1597
  class: "ui-ScrollArea"
1606
1598
  }, {
1607
- default: n(() => [
1608
- u(a(ht), {
1599
+ default: r(() => [
1600
+ u(a(ut), {
1609
1601
  class: "ui-ComboboxViewport",
1610
1602
  "as-child": ""
1611
1603
  }, {
1612
- default: n(() => [
1613
- u(a(N), { class: "ui-ScrollAreaViewport" }, {
1614
- default: n(() => [
1604
+ default: r(() => [
1605
+ u(a(Q), { class: "ui-ScrollAreaViewport" }, {
1606
+ default: r(() => [
1615
1607
  h(m.$slots, "default")
1616
1608
  ]),
1617
1609
  _: 3
@@ -1619,14 +1611,14 @@ const Xa = /* @__PURE__ */ sa(la, [["render", ra]]), [ia, da] = G("ui_ComboboxRo
1619
1611
  ]),
1620
1612
  _: 3
1621
1613
  }),
1622
- _[0] || (_[0] = B("div", { class: "ui-ScrollAreaViewportFocusRing" }, null, -1)),
1623
- u(a(W), {
1614
+ y[0] || (y[0] = x("div", { class: "ui-ScrollAreaViewportFocusRing" }, null, -1)),
1615
+ u(a(j), {
1624
1616
  class: "ui-ScrollAreaScrollbar",
1625
1617
  "data-size": 1,
1626
1618
  orientation: "vertical"
1627
1619
  }, {
1628
- default: n(() => [
1629
- u(a(j), { class: "ui-ScrollAreaThumb" })
1620
+ default: r(() => [
1621
+ u(a(E), { class: "ui-ScrollAreaThumb" })
1630
1622
  ]),
1631
1623
  _: 1
1632
1624
  })
@@ -1651,11 +1643,11 @@ const Xa = /* @__PURE__ */ sa(la, [["render", ra]]), [ia, da] = G("ui_ComboboxRo
1651
1643
  },
1652
1644
  setup(s) {
1653
1645
  const t = $(s);
1654
- return (o, l) => (d(), f(a(_t), v({ class: "ui-ComboboxItem" }, a(t)), {
1655
- default: n(() => [
1656
- u(a(gt), { class: "ui-ComboboxItemIndicator" }, {
1657
- default: n(() => [
1658
- u(a(z), { icon: "radix-icons:check" })
1646
+ return (o, l) => (d(), f(a(pt), g({ class: "ui-ComboboxItem" }, a(t)), {
1647
+ default: r(() => [
1648
+ u(a(ft), { class: "ui-ComboboxItemIndicator" }, {
1649
+ default: r(() => [
1650
+ u(a(T), { icon: "radix-icons:check" })
1659
1651
  ]),
1660
1652
  _: 1
1661
1653
  }),
@@ -1673,14 +1665,14 @@ const Xa = /* @__PURE__ */ sa(la, [["render", ra]]), [ia, da] = G("ui_ComboboxRo
1673
1665
  },
1674
1666
  setup(s) {
1675
1667
  const t = $(s);
1676
- return S(), (o, l) => (d(), f(a(vt), v({ class: "ui-ComboboxLabel" }, a(t)), {
1677
- default: n(() => [
1668
+ return S(), (o, l) => (d(), f(a(mt), g({ class: "ui-ComboboxLabel" }, a(t)), {
1669
+ default: r(() => [
1678
1670
  h(o.$slots, "default")
1679
1671
  ]),
1680
1672
  _: 3
1681
1673
  }, 16));
1682
1674
  }
1683
- }), ca = ["data-size", "data-variant"], ua = ["data-layout"], so = /* @__PURE__ */ p({
1675
+ }), da = ["data-size", "data-variant"], ca = ["data-layout"], so = /* @__PURE__ */ p({
1684
1676
  __name: "Table",
1685
1677
  props: {
1686
1678
  size: { default: "2" },
@@ -1689,25 +1681,25 @@ const Xa = /* @__PURE__ */ sa(la, [["render", ra]]), [ia, da] = G("ui_ComboboxRo
1689
1681
  },
1690
1682
  setup(s) {
1691
1683
  const e = s;
1692
- return (t, o) => (d(), x("div", {
1684
+ return (t, o) => (d(), B("div", {
1693
1685
  class: "ui-Table",
1694
1686
  "data-size": e.size,
1695
1687
  "data-variant": e.variant
1696
1688
  }, [
1697
- u(de, null, {
1698
- default: n(() => [
1699
- B("table", {
1689
+ u(ce, null, {
1690
+ default: r(() => [
1691
+ x("table", {
1700
1692
  class: "ui-TableContent",
1701
1693
  "data-layout": e.layout
1702
1694
  }, [
1703
1695
  h(t.$slots, "default")
1704
- ], 8, ua)
1696
+ ], 8, ca)
1705
1697
  ]),
1706
1698
  _: 3
1707
1699
  })
1708
- ], 8, ca));
1700
+ ], 8, da));
1709
1701
  }
1710
- }), pa = ["textContent"], lo = /* @__PURE__ */ p({
1702
+ }), ua = ["textContent"], lo = /* @__PURE__ */ p({
1711
1703
  __name: "Tooltip",
1712
1704
  props: {
1713
1705
  to: {},
@@ -1735,7 +1727,7 @@ const Xa = /* @__PURE__ */ sa(la, [["render", ra]]), [ia, da] = G("ui_ComboboxRo
1735
1727
  },
1736
1728
  setup(s) {
1737
1729
  const e = s;
1738
- return (t, o) => (d(), f(a(yt), {
1730
+ return (t, o) => (d(), f(a(ht), {
1739
1731
  "delay-duration": e.delayDuration,
1740
1732
  "disable-closing-trigger": e.disableClosingTrigger,
1741
1733
  "disable-hoverable-content": e.disableHoverableContent,
@@ -1743,23 +1735,23 @@ const Xa = /* @__PURE__ */ sa(la, [["render", ra]]), [ia, da] = G("ui_ComboboxRo
1743
1735
  "ignore-non-keyboard-focus": e.ignoreNonKeyboardFocus,
1744
1736
  "skip-delay-duration": e.skipDelayDuration
1745
1737
  }, {
1746
- default: n(() => [
1747
- u(a(Ct), null, {
1748
- default: n(() => [
1749
- u(a(bt), {
1738
+ default: r(() => [
1739
+ u(a(_t), null, {
1740
+ default: r(() => [
1741
+ u(a(gt), {
1750
1742
  as: e.as,
1751
1743
  "as-child": e.asChild
1752
1744
  }, {
1753
- default: n(() => [
1745
+ default: r(() => [
1754
1746
  h(t.$slots, "default")
1755
1747
  ]),
1756
1748
  _: 3
1757
1749
  }, 8, ["as", "as-child"]),
1758
- u(a(Bt), {
1750
+ u(a(vt), {
1759
1751
  to: e.to
1760
1752
  }, {
1761
- default: n(() => [
1762
- u(a(xt), {
1753
+ default: r(() => [
1754
+ u(a(yt), {
1763
1755
  class: "ui-Tooltip",
1764
1756
  align: e.align,
1765
1757
  "align-offset": e.alignOffset,
@@ -1773,14 +1765,14 @@ const Xa = /* @__PURE__ */ sa(la, [["render", ra]]), [ia, da] = G("ui_ComboboxRo
1773
1765
  "side-offset": e.sideOffset,
1774
1766
  sticky: e.sticky
1775
1767
  }, {
1776
- default: n(() => [
1768
+ default: r(() => [
1777
1769
  h(t.$slots, "content", {}, () => [
1778
- B("p", {
1770
+ x("p", {
1779
1771
  class: "ui-TooltipText",
1780
- textContent: F(e.content)
1781
- }, null, 8, pa)
1772
+ textContent: M(e.content)
1773
+ }, null, 8, ua)
1782
1774
  ]),
1783
- u(a($t), { class: "ui-TooltipArrow" })
1775
+ u(a(Ct), { class: "ui-TooltipArrow" })
1784
1776
  ]),
1785
1777
  _: 3
1786
1778
  }, 8, ["align", "align-offset", "aria-label", "arrow-padding", "avoid-collisions", "collision-boundary", "collision-padding", "hide-when-detached", "side", "side-offset", "sticky"])
@@ -1805,7 +1797,7 @@ const Xa = /* @__PURE__ */ sa(la, [["render", ra]]), [ia, da] = G("ui_ComboboxRo
1805
1797
  },
1806
1798
  setup(s) {
1807
1799
  const e = s;
1808
- return (t, o) => (d(), f(a(wt), {
1800
+ return (t, o) => (d(), f(a(bt), {
1809
1801
  class: "ui-TabList",
1810
1802
  "data-accent-color": e.color,
1811
1803
  "data-size": e.size,
@@ -1813,13 +1805,13 @@ const Xa = /* @__PURE__ */ sa(la, [["render", ra]]), [ia, da] = G("ui_ComboboxRo
1813
1805
  "data-justify": e.justify,
1814
1806
  "data-high-contrast": e.highContrast
1815
1807
  }, {
1816
- default: n(() => [
1808
+ default: r(() => [
1817
1809
  h(t.$slots, "default")
1818
1810
  ]),
1819
1811
  _: 3
1820
1812
  }, 8, ["data-accent-color", "data-size", "data-wrap", "data-justify", "data-high-contrast"]));
1821
1813
  }
1822
- }), fa = { class: "ui-TabTriggerInner" }, ma = { class: "ui-TabTriggerInnerHidden" }, ro = /* @__PURE__ */ p({
1814
+ }), pa = { class: "ui-TabTriggerInner" }, fa = { class: "ui-TabTriggerInnerHidden" }, ro = /* @__PURE__ */ p({
1823
1815
  __name: "TabsTrigger",
1824
1816
  props: {
1825
1817
  value: {},
@@ -1829,12 +1821,12 @@ const Xa = /* @__PURE__ */ sa(la, [["render", ra]]), [ia, da] = G("ui_ComboboxRo
1829
1821
  },
1830
1822
  setup(s) {
1831
1823
  const t = $(s);
1832
- return (o, l) => (d(), f(a(St), v(a(t), { class: "ui-TabTrigger" }), {
1833
- default: n(() => [
1834
- B("span", fa, [
1824
+ return (o, l) => (d(), f(a(Bt), g(a(t), { class: "ui-TabTrigger" }), {
1825
+ default: r(() => [
1826
+ x("span", pa, [
1835
1827
  h(o.$slots, "default")
1836
1828
  ]),
1837
- B("span", ma, [
1829
+ x("span", fa, [
1838
1830
  h(o.$slots, "default")
1839
1831
  ])
1840
1832
  ]),
@@ -1858,18 +1850,18 @@ const Xa = /* @__PURE__ */ sa(la, [["render", ra]]), [ia, da] = G("ui_ComboboxRo
1858
1850
  },
1859
1851
  emits: ["update:modelValue"],
1860
1852
  setup(s, { emit: e }) {
1861
- const t = e, o = s, [l, i] = D(o, t, ["size"]);
1862
- return (r, c) => (d(), f(a(se), v(a(l), {
1853
+ const t = e, o = s, [l, i] = O(o, t, ["size"]);
1854
+ return (n, c) => (d(), f(a(le), g(a(l), {
1863
1855
  class: ["ui-RadioTabsList", a(i)]
1864
1856
  }), {
1865
- default: n(() => [
1866
- h(r.$slots, "default")
1857
+ default: r(() => [
1858
+ h(n.$slots, "default")
1867
1859
  ]),
1868
1860
  _: 3
1869
1861
  }, 16, ["class"]));
1870
1862
  }
1871
- }), ha = "https://challenges.cloudflare.com/turnstile/v0/api.js", X = "cfTurnstileOnLoad";
1872
- let L = typeof window < "u" && window.turnstile !== void 0 ? "ready" : "unloaded", E, H, Y;
1863
+ }), ma = "https://challenges.cloudflare.com/turnstile/v0/api.js", Y = "cfTurnstileOnLoad";
1864
+ let H = typeof window < "u" && window.turnstile !== void 0 ? "ready" : "unloaded", U, W, ee;
1873
1865
  const co = /* @__PURE__ */ p({
1874
1866
  __name: "Turnstile",
1875
1867
  props: {
@@ -1884,16 +1876,16 @@ const co = /* @__PURE__ */ p({
1884
1876
  },
1885
1877
  emits: ["update:modelValue"],
1886
1878
  setup(s, { emit: e }) {
1887
- const t = s, o = e, l = U(), i = () => {
1879
+ const t = s, o = e, l = q(), i = () => {
1888
1880
  window.turnstile && (o("update:modelValue", ""), window.turnstile.reset());
1889
- }, r = () => {
1890
- H && (window.turnstile.remove(H), H = void 0);
1891
- }, c = (_) => {
1892
- o("update:modelValue", _), Y = setTimeout(() => {
1881
+ }, n = () => {
1882
+ W && (window.turnstile.remove(W), W = void 0);
1883
+ }, c = (y) => {
1884
+ o("update:modelValue", y), ee = setTimeout(() => {
1893
1885
  i();
1894
1886
  }, t.resetInterval);
1895
1887
  }, m = () => {
1896
- H = window.turnstile.render(l.value, {
1888
+ W = window.turnstile.render(l.value, {
1897
1889
  sitekey: t.sitekey,
1898
1890
  theme: t.theme,
1899
1891
  size: t.size,
@@ -1902,25 +1894,25 @@ const co = /* @__PURE__ */ p({
1902
1894
  appearance: t.appearance
1903
1895
  });
1904
1896
  };
1905
- return te(async () => {
1906
- const _ = new Promise((g, b) => {
1907
- E = { resolve: g, reject: b }, L === "ready" && g(void 0);
1897
+ return ae(async () => {
1898
+ const y = new Promise((C, _) => {
1899
+ U = { resolve: C, reject: _ }, H === "ready" && C(void 0);
1908
1900
  });
1909
- window[X] = () => {
1910
- E.resolve(), L = "ready";
1901
+ window[Y] = () => {
1902
+ U.resolve(), H = "ready";
1911
1903
  }, await (() => {
1912
- if (L === "unloaded") {
1913
- L = "loading";
1914
- const g = `${ha}?onload=${X}&render=explicit`, b = document.createElement("script");
1915
- b.src = g, b.async = !0, b.addEventListener("error", () => {
1916
- E.reject("Failed to load Turnstile.");
1917
- }), document.head.appendChild(b);
1904
+ if (H === "unloaded") {
1905
+ H = "loading";
1906
+ const C = `${ma}?onload=${Y}&render=explicit`, _ = document.createElement("script");
1907
+ _.src = C, _.async = !0, _.addEventListener("error", () => {
1908
+ U.reject("Failed to load Turnstile.");
1909
+ }), document.head.appendChild(_);
1918
1910
  }
1919
- return _;
1911
+ return y;
1920
1912
  })(), t.renderOnMount && m();
1921
- }), ae(() => {
1922
- r(), clearTimeout(Y);
1923
- }), (_, C) => (d(), x("div", {
1913
+ }), oe(() => {
1914
+ n(), clearTimeout(ee);
1915
+ }), (y, b) => (d(), B("div", {
1924
1916
  ref_key: "element",
1925
1917
  ref: l
1926
1918
  }, null, 512));
@@ -1932,20 +1924,20 @@ const co = /* @__PURE__ */ p({
1932
1924
  color: {}
1933
1925
  },
1934
1926
  setup(s) {
1935
- const e = s, t = y(() => {
1927
+ const e = s, t = v(() => {
1936
1928
  const l = `translateX(-${100 - e.percent}%)`;
1937
1929
  if (e.percent > 100)
1938
1930
  return { transform: l, "background-color": "var(--red-a10)" };
1939
1931
  let i = "a4";
1940
1932
  return e.percent > 90 ? i = "a11" : e.percent > 66 ? i = "a9" : e.percent > 33 && (i = "a6"), { transform: l, "background-color": `var(--blue-${i})` };
1941
- }), o = y(() => e.percent > 100 ? 100 : e.percent < 0 ? 0 : e.percent);
1942
- return (l, i) => (d(), f(a(Vt), {
1933
+ }), o = v(() => e.percent > 100 ? 100 : e.percent < 0 ? 0 : e.percent);
1934
+ return (l, i) => (d(), f(a(xt), {
1943
1935
  class: "ui-Quota",
1944
1936
  "model-value": o.value,
1945
1937
  "data-accent-color": e.color
1946
1938
  }, {
1947
- default: n(() => [
1948
- u(a(zt), {
1939
+ default: r(() => [
1940
+ u(a($t), {
1949
1941
  class: "ui-QuotaValue",
1950
1942
  style: xe(t.value)
1951
1943
  }, null, 8, ["style"])
@@ -1953,7 +1945,7 @@ const co = /* @__PURE__ */ p({
1953
1945
  _: 1
1954
1946
  }, 8, ["model-value", "data-accent-color"]));
1955
1947
  }
1956
- }), _a = ["data-accent-color"], po = /* @__PURE__ */ p({
1948
+ }), ha = ["data-accent-color"], po = /* @__PURE__ */ p({
1957
1949
  __name: "IconCircle",
1958
1950
  props: {
1959
1951
  color: {},
@@ -1962,16 +1954,16 @@ const co = /* @__PURE__ */ p({
1962
1954
  icon: {}
1963
1955
  },
1964
1956
  setup(s) {
1965
- const e = s, t = y(() => V(e, ["size", "variant"]));
1966
- return (o, l) => (d(), x("span", {
1957
+ const e = s, t = v(() => V(e, ["size", "variant"]));
1958
+ return (o, l) => (d(), B("span", {
1967
1959
  class: w(["ui-IconCircle", t.value]),
1968
1960
  "data-radius": "full",
1969
1961
  "data-accent-color": e.color
1970
1962
  }, [
1971
- u(a(z), {
1963
+ u(a(T), {
1972
1964
  icon: e.icon
1973
1965
  }, null, 8, ["icon"])
1974
- ], 10, _a));
1966
+ ], 10, ha));
1975
1967
  }
1976
1968
  });
1977
1969
  export {
@@ -1984,10 +1976,10 @@ export {
1984
1976
  Co as AlertDialogTrigger,
1985
1977
  ba as Avatar,
1986
1978
  Ba as Badge,
1987
- ie as Button,
1988
- Rt as Card,
1979
+ de as Button,
1980
+ St as Card,
1989
1981
  $a as CardHead,
1990
- ue as Checkbox,
1982
+ pe as Checkbox,
1991
1983
  La as CheckboxGroupControl,
1992
1984
  Ga as CheckboxGroupItem,
1993
1985
  Ma as CheckboxGroupRoot,
@@ -2006,20 +1998,20 @@ export {
2006
1998
  wo as DialogRoot,
2007
1999
  So as DialogTitle,
2008
2000
  Vo as DialogTrigger,
2009
- Ia as DropdownMenuContent,
2010
- ka as DropdownMenuItem,
2001
+ Ra as DropdownMenuContent,
2002
+ Da as DropdownMenuItem,
2011
2003
  zo as DropdownMenuRoot,
2012
2004
  To as DropdownMenuTrigger,
2013
2005
  Mo as Icon,
2014
2006
  xa as IconButton,
2015
2007
  po as IconCircle,
2016
- kt as Inset,
2017
- Ro as PopoverClose,
2018
- Ra as PopoverContent,
2019
- Io as PopoverRoot,
2020
- ko as PopoverTrigger,
2008
+ zt as Inset,
2009
+ ko as PopoverClose,
2010
+ ka as PopoverContent,
2011
+ Ro as PopoverRoot,
2012
+ Do as PopoverTrigger,
2021
2013
  uo as Quota,
2022
- Da as Radio,
2014
+ Ia as Radio,
2023
2015
  Fa as RadioCardsItem,
2024
2016
  Pa as RadioCardsRoot,
2025
2017
  Oa as RadioGroupItem,
@@ -2027,16 +2019,16 @@ export {
2027
2019
  Ao as RadioTabsItem,
2028
2020
  io as RadioTabsList,
2029
2021
  Sa as SavingIndicator,
2030
- de as ScrollArea,
2022
+ ce as ScrollArea,
2031
2023
  Na as SelectContent,
2032
- Do as SelectGroup,
2024
+ Io as SelectGroup,
2033
2025
  Ja as SelectItem,
2034
2026
  Za as SelectLabel,
2035
2027
  Ka as SelectRoot,
2036
2028
  Xa as SelectSeparator,
2037
2029
  Qa as SelectTrigger,
2038
2030
  wa as Separator,
2039
- At as Spinner,
2031
+ Tt as Spinner,
2040
2032
  Aa as Switch,
2041
2033
  so as Table,
2042
2034
  Po as TabsContent,