@typlog/ui 0.0.2 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
- import { defineComponent as u, computed as z, openBlock as d, createBlock as p, unref as a, withCtx as l, createVNode as h, createTextVNode as K, toDisplayString as O, renderSlot as f, useAttrs as ne, mergeProps as _, createElementBlock as b, createCommentVNode as T, toRefs as G, ref as L, onMounted as N, onBeforeUnmount as Q, withDirectives as x, createElementVNode as C, isRef as V, vModelText as F, vModelRadio as re, normalizeProps as de, guardReactiveProps as ce, normalizeClass as X, vModelDynamic as ue, provide as pe, inject as J, normalizeStyle as he } from "vue";
2
- import { AvatarRoot as fe, AvatarImage as me, AvatarFallback as _e, Primitive as k, useForwardProps as B, useEmitAsProps as ve, CheckboxRoot as ge, CheckboxIndicator as ye, createContext as j, useForwardExpose as $, AlertDialogPortal as Ce, AlertDialogOverlay as be, AlertDialogContent as ze, DialogPortal as Be, DialogOverlay as $e, DialogContent as we, DialogTitle as Se, DialogClose as Te, PopoverPortal as ke, PopoverContent as Ae, ScrollAreaRoot as Y, ScrollAreaViewport as Z, ScrollAreaScrollbar as H, ScrollAreaThumb as W, ScrollAreaCorner as xe, DropdownMenuPortal as Ve, DropdownMenuContent as De, DropdownMenuItem as Re, SwitchRoot as Pe, SwitchThumb as Ie, RadioGroupRoot as ee, RadioGroupItem as te, SelectRoot as Oe, SelectPortal as Me, SelectContent as Fe, SelectViewport as He, SelectTrigger as We, SelectValue as Ge, SelectIcon as Le, SelectItem as je, SelectItemIndicator as Ee, SelectItemText as qe, SelectLabel as Ue, TooltipProvider as Ke, TooltipRoot as Ne, TooltipTrigger as Qe, TooltipPortal as Xe, TooltipContent as Je, TooltipArrow as Ye, TabsList as Ze, TabsTrigger as et, ProgressRoot as tt, ProgressIndicator as at } from "radix-vue";
3
- import { AlertDialogAction as Aa, AlertDialogCancel as xa, AlertDialogDescription as Va, AlertDialogRoot as Da, AlertDialogTitle as Ra, AlertDialogTrigger as Pa, DialogClose as Ia, DialogDescription as Oa, DialogRoot as Ma, DialogTitle as Fa, DialogTrigger as Ha, DropdownMenuRoot as Wa, DropdownMenuTrigger as Ga, PopoverAnchor as La, PopoverArrow as ja, PopoverClose as Ea, PopoverRoot as qa, PopoverTrigger as Ua, RadioGroupItem as Ka, SelectGroup as Na, TabsContent as Qa, TabsRoot as Xa } from "radix-vue";
4
- import { useVModel as D } from "@vueuse/core";
5
- import { Icon as R } from "@iconify/vue";
6
- import { Icon as Ya } from "@iconify/vue";
7
- const qt = /* @__PURE__ */ u({
1
+ import { defineComponent as u, computed as z, openBlock as d, createBlock as h, unref as a, withCtx as l, createVNode as p, createTextVNode as K, toDisplayString as O, renderSlot as f, useAttrs as ne, mergeProps as _, createElementBlock as b, createCommentVNode as T, toRefs as W, ref as L, onMounted as N, onBeforeUnmount as Q, withDirectives as V, createElementVNode as C, isRef as D, vModelText as F, vModelRadio as re, normalizeProps as de, guardReactiveProps as ce, normalizeClass as X, vModelDynamic as ue, provide as pe, inject as J, normalizeStyle as he } from "vue";
2
+ import { AvatarRoot as fe, AvatarImage as me, AvatarFallback as _e, Primitive as k, useForwardProps as $, useEmitAsProps as ve, CheckboxRoot as ge, CheckboxIndicator as ye, createContext as j, useForwardExpose as B, AlertDialogPortal as Ce, AlertDialogOverlay as be, AlertDialogContent as ze, DialogPortal as Be, DialogOverlay as $e, DialogContent as we, DialogTitle as Se, DialogClose as Te, PopoverPortal as ke, PopoverContent as Ae, ScrollAreaRoot as Y, ScrollAreaViewport as Z, ScrollAreaScrollbar as H, ScrollAreaThumb as G, ScrollAreaCorner as xe, DropdownMenuPortal as Ve, DropdownMenuContent as De, DropdownMenuItem as Re, SwitchRoot as Pe, SwitchThumb as Ie, RadioGroupRoot as ee, RadioGroupItem as te, SelectRoot as Oe, SelectPortal as Me, SelectContent as Fe, SelectViewport as He, SelectTrigger as Ge, SelectValue as We, SelectIcon as Le, SelectItem as je, SelectItemIndicator as Ee, SelectItemText as qe, SelectLabel as Ue, TooltipProvider as Ke, TooltipRoot as Ne, TooltipTrigger as Qe, TooltipPortal as Xe, TooltipContent as Je, TooltipArrow as Ye, TabsList as Ze, TabsTrigger as et, ProgressRoot as tt, ProgressIndicator as at } from "radix-vue";
3
+ import { AlertDialogAction as Va, AlertDialogCancel as Da, AlertDialogDescription as Ra, AlertDialogRoot as Pa, AlertDialogTitle as Ia, AlertDialogTrigger as Oa, DialogClose as Ma, DialogDescription as Fa, DialogRoot as Ha, DialogTitle as Ga, DialogTrigger as Wa, DropdownMenuRoot as La, DropdownMenuTrigger as ja, PopoverAnchor as Ea, PopoverArrow as qa, PopoverClose as Ua, PopoverRoot as Ka, PopoverTrigger as Na, RadioGroupItem as Qa, SelectGroup as Xa, TabsContent as Ja, TabsRoot as Ya } from "radix-vue";
4
+ import { useVModel as R } from "@vueuse/core";
5
+ import { Icon as A } from "@iconify/vue";
6
+ import { Icon as eo } from "@iconify/vue";
7
+ const Ut = /* @__PURE__ */ u({
8
8
  __name: "Avatar",
9
9
  props: {
10
10
  src: {},
@@ -17,7 +17,7 @@ const qt = /* @__PURE__ */ u({
17
17
  },
18
18
  setup(s) {
19
19
  const e = s, t = z(() => e.fallback ? e.fallback : e.alt.split(/\s+/).map((o) => o[0]).slice(0, 2).join(""));
20
- return (o, i) => (d(), p(a(fe), {
20
+ return (o, i) => (d(), h(a(fe), {
21
21
  class: "ui-Avatar",
22
22
  "data-radius": e.radius,
23
23
  "data-size": e.size,
@@ -25,11 +25,11 @@ const qt = /* @__PURE__ */ u({
25
25
  "data-accent-color": e.color
26
26
  }, {
27
27
  default: l(() => [
28
- h(a(me), {
28
+ p(a(me), {
29
29
  alt: e.alt,
30
30
  src: e.src || ""
31
31
  }, null, 8, ["alt", "src"]),
32
- h(a(_e), {
32
+ p(a(_e), {
33
33
  "data-count": t.value.length
34
34
  }, {
35
35
  default: l(() => [
@@ -41,7 +41,7 @@ const qt = /* @__PURE__ */ u({
41
41
  _: 1
42
42
  }, 8, ["data-radius", "data-size", "data-variant", "data-accent-color"]));
43
43
  }
44
- }), Ut = /* @__PURE__ */ u({
44
+ }), Kt = /* @__PURE__ */ u({
45
45
  __name: "Badge",
46
46
  props: {
47
47
  variant: { default: "soft" },
@@ -54,7 +54,7 @@ const qt = /* @__PURE__ */ u({
54
54
  },
55
55
  setup(s) {
56
56
  const e = s;
57
- return (t, o) => (d(), p(a(k), {
57
+ return (t, o) => (d(), h(a(k), {
58
58
  class: "ui-Badge",
59
59
  as: e.as,
60
60
  "as-child": e.asChild,
@@ -92,7 +92,7 @@ const qt = /* @__PURE__ */ u({
92
92
  };
93
93
  return e.highContrast && (i["data-high-contrast"] = !0), e.disabled ? { ...t, ...i, disabled: !0, "data-disabled": !0 } : { ...t, ...i };
94
94
  });
95
- return (i, n) => (d(), p(a(k), _({
95
+ return (i, n) => (d(), h(a(k), _({
96
96
  class: "ui-Button",
97
97
  "as-child": e.asChild,
98
98
  as: e.as
@@ -103,7 +103,7 @@ const qt = /* @__PURE__ */ u({
103
103
  _: 3
104
104
  }, 16, ["as-child", "as"]));
105
105
  }
106
- }), Kt = /* @__PURE__ */ u({
106
+ }), Nt = /* @__PURE__ */ u({
107
107
  __name: "IconButton",
108
108
  props: {
109
109
  color: {},
@@ -116,8 +116,8 @@ const qt = /* @__PURE__ */ u({
116
116
  as: {}
117
117
  },
118
118
  setup(s) {
119
- const t = B(s);
120
- return (o, i) => (d(), p(ae, _({ class: "ui-IconButton" }, a(t)), {
119
+ const t = $(s);
120
+ return (o, i) => (d(), h(ae, _({ class: "ui-IconButton" }, a(t)), {
121
121
  default: l(() => [
122
122
  f(o.$slots, "default")
123
123
  ]),
@@ -126,16 +126,16 @@ const qt = /* @__PURE__ */ u({
126
126
  }
127
127
  });
128
128
  function w(s, e, t) {
129
- const o = B(s), i = ve(e);
129
+ const o = $(s), i = ve(e);
130
130
  return z(() => ({
131
- ...ot(o, t),
131
+ ...ot(o.value, t),
132
132
  ...i
133
133
  }));
134
134
  }
135
135
  function ot(s, e) {
136
136
  const t = {};
137
137
  return Object.keys(s).forEach((o) => {
138
- e.indexOf(o) !== -1 && (t[o] = s[o]);
138
+ e.indexOf(o) === -1 && (t[o] = s[o]);
139
139
  }), t;
140
140
  }
141
141
  const st = {
@@ -174,7 +174,7 @@ const st = {
174
174
  emits: ["update:checked"],
175
175
  setup(s, { emit: e }) {
176
176
  const t = e, o = s, i = w(o, t, ["color", "size", "variant", "highContrast"]);
177
- return (n, r) => (d(), p(a(ge), _({
177
+ return (n, r) => (d(), h(a(ge), _({
178
178
  ...n.$attrs,
179
179
  ...a(i)
180
180
  }, {
@@ -185,7 +185,7 @@ const st = {
185
185
  "data-high-contrast": o.highContrast
186
186
  }), {
187
187
  default: l(() => [
188
- h(a(ye), {
188
+ p(a(ye), {
189
189
  class: "ui-CheckboxIndicator",
190
190
  "as-child": ""
191
191
  }, {
@@ -200,7 +200,7 @@ const st = {
200
200
  _: 1
201
201
  }, 16, ["data-variant", "data-size", "data-accent-color", "data-high-contrast"]));
202
202
  }
203
- }), [se, nt] = j("ui_CheckboxGroupRoot"), Nt = /* @__PURE__ */ u({
203
+ }), [se, nt] = j("ui_CheckboxGroupRoot"), Qt = /* @__PURE__ */ u({
204
204
  __name: "CheckboxGroupRoot",
205
205
  props: {
206
206
  modelValue: {},
@@ -212,23 +212,23 @@ const st = {
212
212
  },
213
213
  emits: ["update:modelValue"],
214
214
  setup(s, { emit: e }) {
215
- const t = s, o = e, { disabled: i, name: n } = G(t), r = L([]), c = D(t, "modelValue", o, {
215
+ const t = s, o = e, { disabled: i, name: n } = W(t), r = L([]), c = R(t, "modelValue", o, {
216
216
  defaultValue: t.defaultValue,
217
217
  passive: t.modelValue === void 0
218
- }), v = z(() => c.value || []), g = z(() => {
218
+ }), g = z(() => c.value || []), v = z(() => {
219
219
  var m, y;
220
220
  return r.value.length ? ((m = c.value) == null ? void 0 : m.length) === r.value.length ? !0 : (y = c.value) != null && y.length ? "indeterminate" : !1 : !1;
221
221
  }), S = (m) => {
222
- var A, E;
223
- const y = (A = c.value) == null ? void 0 : A.indexOf(m);
222
+ var x, E;
223
+ const y = (x = c.value) == null ? void 0 : x.indexOf(m);
224
224
  y !== -1 && y !== void 0 && ((E = c.value) == null || E.splice(y, 1));
225
225
  };
226
226
  return nt({
227
- selected: v,
228
- checked: g,
227
+ selected: g,
228
+ checked: v,
229
229
  addModelValue: (m) => {
230
- var y, A;
231
- ((y = c.value) == null ? void 0 : y.indexOf(m)) === -1 && ((A = c.value) == null || A.push(m));
230
+ var y, x;
231
+ ((y = c.value) == null ? void 0 : y.indexOf(m)) === -1 && ((x = c.value) == null || x.push(m));
232
232
  },
233
233
  removeModelValue: S,
234
234
  toggleModelValue: (m) => {
@@ -242,7 +242,7 @@ const st = {
242
242
  },
243
243
  disabled: i,
244
244
  name: n == null ? void 0 : n.value
245
- }), (m, y) => (d(), p(a(k), {
245
+ }), (m, y) => (d(), h(a(k), {
246
246
  as: t.as,
247
247
  "as-child": t.asChild
248
248
  }, {
@@ -252,7 +252,7 @@ const st = {
252
252
  _: 3
253
253
  }, 8, ["as", "as-child"]));
254
254
  }
255
- }), Qt = /* @__PURE__ */ u({
255
+ }), Xt = /* @__PURE__ */ u({
256
256
  inheritAttrs: !1,
257
257
  __name: "CheckboxGroupItem",
258
258
  props: {
@@ -271,8 +271,8 @@ const st = {
271
271
  as: {}
272
272
  },
273
273
  setup(s) {
274
- const e = s, t = B(e);
275
- $();
274
+ const e = s, t = $(e);
275
+ B();
276
276
  const o = se(), i = z(() => {
277
277
  var c;
278
278
  return ((c = o.disabled) == null ? void 0 : c.value) || e.disabled;
@@ -283,7 +283,7 @@ const st = {
283
283
  o.initAllValue(e.value);
284
284
  }), Q(() => {
285
285
  o.removeAllValue(e.value);
286
- }), (c, v) => (d(), p(oe, _({
286
+ }), (c, g) => (d(), h(oe, _({
287
287
  ...c.$attrs,
288
288
  ...a(t),
289
289
  name: e.name || a(o).name,
@@ -291,7 +291,7 @@ const st = {
291
291
  disabled: i.value
292
292
  }, { "onUpdate:checked": r }), null, 16));
293
293
  }
294
- }), Xt = /* @__PURE__ */ u({
294
+ }), Jt = /* @__PURE__ */ u({
295
295
  inheritAttrs: !1,
296
296
  __name: "CheckboxGroupControl",
297
297
  props: {
@@ -310,13 +310,13 @@ const st = {
310
310
  as: {}
311
311
  },
312
312
  setup(s) {
313
- const e = s, t = B(e);
314
- $();
313
+ const e = s, t = $(e);
314
+ B();
315
315
  const o = se(), i = z(() => {
316
316
  var r;
317
317
  return ((r = o.disabled) == null ? void 0 : r.value) || e.disabled;
318
318
  }), n = z(() => o.checked.value);
319
- return (r, c) => (d(), p(oe, _({
319
+ return (r, c) => (d(), h(oe, _({
320
320
  ...r.$attrs,
321
321
  ...a(t),
322
322
  name: e.name || a(o).name,
@@ -337,7 +337,7 @@ const st = {
337
337
  },
338
338
  setup(s) {
339
339
  const e = s;
340
- return (t, o) => (d(), p(a(k), {
340
+ return (t, o) => (d(), h(a(k), {
341
341
  class: "ui-Card",
342
342
  "as-child": e.asChild,
343
343
  as: e.as,
@@ -351,7 +351,7 @@ const st = {
351
351
  _: 3
352
352
  }, 8, ["as-child", "as", "data-variant", "data-radius", "data-size"]));
353
353
  }
354
- }), Jt = /* @__PURE__ */ u({
354
+ }), Yt = /* @__PURE__ */ u({
355
355
  __name: "CardHead",
356
356
  props: {
357
357
  color: {},
@@ -360,7 +360,7 @@ const st = {
360
360
  },
361
361
  setup(s) {
362
362
  const e = s;
363
- return (t, o) => (d(), p(a(k), {
363
+ return (t, o) => (d(), h(a(k), {
364
364
  as: e.as,
365
365
  class: "ui-CardHead",
366
366
  "data-accent-color": e.color
@@ -371,7 +371,7 @@ const st = {
371
371
  _: 3
372
372
  }, 8, ["as", "data-accent-color"]));
373
373
  }
374
- }), dt = ["data-accent-color", "data-variant", "data-size"], ct = ["id"], Yt = /* @__PURE__ */ u({
374
+ }), dt = ["data-accent-color", "data-variant", "data-size"], ct = ["id"], Zt = /* @__PURE__ */ u({
375
375
  __name: "ColorField",
376
376
  props: {
377
377
  id: {},
@@ -383,7 +383,7 @@ const st = {
383
383
  },
384
384
  emits: ["update:modelValue"],
385
385
  setup(s, { emit: e }) {
386
- const t = s, i = D(t, "modelValue", e, {
386
+ const t = s, i = R(t, "modelValue", e, {
387
387
  defaultValue: t.modelValue || "#000000",
388
388
  passive: t.modelValue === void 0
389
389
  });
@@ -393,16 +393,16 @@ const st = {
393
393
  "data-variant": t.variant,
394
394
  "data-size": t.size
395
395
  }, [
396
- x(C("input", {
396
+ V(C("input", {
397
397
  id: t.id,
398
- "onUpdate:modelValue": r[0] || (r[0] = (c) => V(i) ? i.value = c : null),
398
+ "onUpdate:modelValue": r[0] || (r[0] = (c) => D(i) ? i.value = c : null),
399
399
  class: "ui-ColorFieldInput",
400
400
  type: "color"
401
401
  }, null, 8, ct), [
402
402
  [F, a(i)]
403
403
  ]),
404
- x(C("input", {
405
- "onUpdate:modelValue": r[1] || (r[1] = (c) => V(i) ? i.value = c : null),
404
+ V(C("input", {
405
+ "onUpdate:modelValue": r[1] || (r[1] = (c) => D(i) ? i.value = c : null),
406
406
  class: "ui-TextFieldInput",
407
407
  type: "text",
408
408
  pattern: "^#[0-9a-f]{6}$"
@@ -411,7 +411,7 @@ const st = {
411
411
  ])
412
412
  ], 8, dt));
413
413
  }
414
- }), ut = { class: "ui-DialogScroll" }, pt = ["data-align"], Zt = /* @__PURE__ */ u({
414
+ }), ut = { class: "ui-DialogScroll" }, pt = ["data-align"], ea = /* @__PURE__ */ u({
415
415
  __name: "AlertDialogContent",
416
416
  props: {
417
417
  to: {},
@@ -444,18 +444,18 @@ const st = {
444
444
  "minHeight",
445
445
  "maxHeight"
446
446
  ]);
447
- return (n, r) => (d(), p(a(Ce), {
447
+ return (n, r) => (d(), h(a(Ce), {
448
448
  to: t.to
449
449
  }, {
450
450
  default: l(() => [
451
- h(a(be), { class: "ui-DialogOverlay" }, {
451
+ p(a(be), { class: "ui-DialogOverlay" }, {
452
452
  default: l(() => [
453
453
  C("div", ut, [
454
454
  C("div", {
455
455
  class: "ui-DialogScrollPadding",
456
456
  "data-align": t.align
457
457
  }, [
458
- h(a(ze), _({
458
+ p(a(ze), _({
459
459
  class: ["ui-DialogContent", t.class],
460
460
  "data-size": t.size
461
461
  }, {
@@ -463,12 +463,12 @@ const st = {
463
463
  ...a(i)
464
464
  }, {
465
465
  style: {
466
- width: a(i).width,
467
- height: a(i).height,
468
- minWidth: a(i).minWidth,
469
- maxWidth: a(i).maxWidth,
470
- minHeight: a(i).minHeight,
471
- maxHeight: a(i).maxHeight
466
+ width: t.width,
467
+ height: t.height,
468
+ minWidth: t.minWidth,
469
+ maxWidth: t.maxWidth,
470
+ minHeight: t.minHeight,
471
+ maxHeight: t.maxHeight
472
472
  }
473
473
  }), {
474
474
  default: l(() => [
@@ -485,7 +485,7 @@ const st = {
485
485
  _: 3
486
486
  }, 8, ["to"]));
487
487
  }
488
- }), ht = { class: "ui-DialogScroll" }, ft = ["data-align"], ea = /* @__PURE__ */ u({
488
+ }), ht = { class: "ui-DialogScroll" }, ft = ["data-align"], ta = /* @__PURE__ */ u({
489
489
  inheritAttrs: !1,
490
490
  __name: "DialogContent",
491
491
  props: {
@@ -519,18 +519,18 @@ const st = {
519
519
  "minHeight",
520
520
  "maxHeight"
521
521
  ]);
522
- return (n, r) => (d(), p(a(Be), {
522
+ return (n, r) => (d(), h(a(Be), {
523
523
  to: t.to
524
524
  }, {
525
525
  default: l(() => [
526
- h(a($e), { class: "ui-DialogOverlay" }, {
526
+ p(a($e), { class: "ui-DialogOverlay" }, {
527
527
  default: l(() => [
528
528
  C("div", ht, [
529
529
  C("div", {
530
530
  class: "ui-DialogScrollPadding",
531
531
  "data-align": t.align
532
532
  }, [
533
- h(a(we), _({
533
+ p(a(we), _({
534
534
  class: ["ui-DialogContent", t.class],
535
535
  "data-size": t.size
536
536
  }, {
@@ -538,12 +538,12 @@ const st = {
538
538
  ...a(i)
539
539
  }, {
540
540
  style: {
541
- width: a(i).width,
542
- height: a(i).height,
543
- minWidth: a(i).minWidth,
544
- maxWidth: a(i).maxWidth,
545
- minHeight: a(i).minHeight,
546
- maxHeight: a(i).maxHeight
541
+ width: t.width,
542
+ height: t.height,
543
+ minWidth: t.minWidth,
544
+ maxWidth: t.maxWidth,
545
+ minHeight: t.minHeight,
546
+ maxHeight: t.maxHeight
547
547
  }
548
548
  }), {
549
549
  default: l(() => [
@@ -576,25 +576,25 @@ const st = {
576
576
  f(t.$slots, "default")
577
577
  ], 8, mt));
578
578
  }
579
- }), ta = /* @__PURE__ */ u({
579
+ }), aa = /* @__PURE__ */ u({
580
580
  __name: "DialogHead",
581
581
  props: {
582
582
  title: {}
583
583
  },
584
584
  setup(s) {
585
585
  const e = s;
586
- return (t, o) => (d(), p(_t, {
586
+ return (t, o) => (d(), h(_t, {
587
587
  class: "ui-DialogHead",
588
588
  side: "x"
589
589
  }, {
590
590
  default: l(() => [
591
- h(a(Se), { class: "font-semibold" }, {
591
+ p(a(Se), { class: "font-semibold" }, {
592
592
  default: l(() => [
593
593
  K(O(e.title), 1)
594
594
  ]),
595
595
  _: 1
596
596
  }),
597
- h(ae, {
597
+ p(ae, {
598
598
  as: a(Te),
599
599
  variant: "ghost",
600
600
  color: "gray",
@@ -602,7 +602,7 @@ const st = {
602
602
  style: { "--button-ghost-padding-x": "var(--space-1)" }
603
603
  }, {
604
604
  default: l(() => [
605
- h(a(R), { icon: "lucide:x" })
605
+ p(a(A), { icon: "lucide:x" })
606
606
  ]),
607
607
  _: 1
608
608
  }, 8, ["as"])
@@ -610,7 +610,7 @@ const st = {
610
610
  _: 1
611
611
  }));
612
612
  }
613
- }), aa = /* @__PURE__ */ u({
613
+ }), oa = /* @__PURE__ */ u({
614
614
  inheritAttrs: !1,
615
615
  __name: "PopoverContent",
616
616
  props: {
@@ -637,11 +637,11 @@ const st = {
637
637
  emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
638
638
  setup(s, { emit: e }) {
639
639
  const t = s, i = w(t, e, ["to", "size"]);
640
- return (n, r) => (d(), p(a(ke), {
640
+ return (n, r) => (d(), h(a(ke), {
641
641
  to: t.to
642
642
  }, {
643
643
  default: l(() => [
644
- h(a(Ae), _({ ...n.$attrs, ...a(i) }, {
644
+ p(a(Ae), _({ ...n.$attrs, ...a(i) }, {
645
645
  "data-size": t.size,
646
646
  class: "ui-PopoverContent"
647
647
  }), {
@@ -668,7 +668,7 @@ const st = {
668
668
  },
669
669
  setup(s) {
670
670
  const e = s;
671
- return (t, o) => (d(), p(a(Y), {
671
+ return (t, o) => (d(), h(a(Y), {
672
672
  class: "ui-ScrollArea",
673
673
  "as-child": e.asChild,
674
674
  dir: e.dir,
@@ -677,36 +677,36 @@ const st = {
677
677
  "data-radius": e.radius
678
678
  }, {
679
679
  default: l(() => [
680
- h(a(Z), { class: "ui-ScrollAreaViewport" }, {
680
+ p(a(Z), { class: "ui-ScrollAreaViewport" }, {
681
681
  default: l(() => [
682
682
  f(t.$slots, "default")
683
683
  ]),
684
684
  _: 3
685
685
  }),
686
686
  o[0] || (o[0] = C("div", { class: "ui-ScrollAreaViewportFocusRing" }, null, -1)),
687
- e.scrollbars !== "horizontal" ? (d(), p(a(H), {
687
+ e.scrollbars !== "horizontal" ? (d(), h(a(H), {
688
688
  key: 0,
689
689
  class: "ui-ScrollAreaScrollbar",
690
690
  "data-size": e.size,
691
691
  orientation: "vertical"
692
692
  }, {
693
693
  default: l(() => [
694
- h(a(W), { class: "ui-ScrollAreaThumb" })
694
+ p(a(G), { class: "ui-ScrollAreaThumb" })
695
695
  ]),
696
696
  _: 1
697
697
  }, 8, ["data-size"])) : T("", !0),
698
- e.scrollbars !== "vertical" ? (d(), p(a(H), {
698
+ e.scrollbars !== "vertical" ? (d(), h(a(H), {
699
699
  key: 1,
700
700
  class: "ui-ScrollAreaScrollbar",
701
701
  "data-size": e.size,
702
702
  orientation: "horizontal"
703
703
  }, {
704
704
  default: l(() => [
705
- h(a(W), { class: "ui-ScrollAreaThumb" })
705
+ p(a(G), { class: "ui-ScrollAreaThumb" })
706
706
  ]),
707
707
  _: 1
708
708
  }, 8, ["data-size"])) : T("", !0),
709
- e.scrollbars === "both" ? (d(), p(a(xe), {
709
+ e.scrollbars === "both" ? (d(), h(a(xe), {
710
710
  key: 2,
711
711
  "class-name": "ui-ScrollAreaCorner"
712
712
  })) : T("", !0)
@@ -714,7 +714,7 @@ const st = {
714
714
  _: 3
715
715
  }, 8, ["as-child", "dir", "scroll-hide-delay", "type", "data-radius"]));
716
716
  }
717
- }), vt = { class: "ui-MenuViewport" }, [gt, yt] = j("ui_DropdownMenuContent"), oa = /* @__PURE__ */ u({
717
+ }), vt = { class: "ui-MenuViewport" }, [gt, yt] = j("ui_DropdownMenuContent"), sa = /* @__PURE__ */ u({
718
718
  inheritAttrs: !1,
719
719
  __name: "DropdownMenuContent",
720
720
  props: {
@@ -748,12 +748,12 @@ const st = {
748
748
  "variant",
749
749
  "color",
750
750
  "highContrast"
751
- ]), { forwardRef: n } = $(), { size: r, variant: c, color: v, highContrast: g } = G(t);
752
- return yt({ size: r, variant: c, color: v, highContrast: g }), (S, m) => (d(), p(a(Ve), {
751
+ ]), { forwardRef: n } = B(), { size: r, variant: c, color: g, highContrast: v } = W(t);
752
+ return yt({ size: r, variant: c, color: g, highContrast: v }), (S, m) => (d(), h(a(Ve), {
753
753
  to: t.to
754
754
  }, {
755
755
  default: l(() => [
756
- h(a(De), _({
756
+ p(a(De), _({
757
757
  ...S.$attrs,
758
758
  ...a(i)
759
759
  }, {
@@ -763,7 +763,7 @@ const st = {
763
763
  "data-size": t.size
764
764
  }), {
765
765
  default: l(() => [
766
- h(ie, { type: "auto" }, {
766
+ p(ie, { type: "auto" }, {
767
767
  default: l(() => [
768
768
  C("div", vt, [
769
769
  f(S.$slots, "default")
@@ -778,7 +778,7 @@ const st = {
778
778
  _: 3
779
779
  }, 8, ["to"]));
780
780
  }
781
- }), Ct = ["textContent"], sa = /* @__PURE__ */ u({
781
+ }), Ct = ["textContent"], ia = /* @__PURE__ */ u({
782
782
  inheritAttrs: !1,
783
783
  __name: "DropdownMenuItem",
784
784
  props: {
@@ -792,16 +792,16 @@ const st = {
792
792
  emits: ["select"],
793
793
  setup(s, { emit: e }) {
794
794
  const t = s, i = w(t, e, ["color", "shortcut"]);
795
- $();
795
+ B();
796
796
  const n = gt();
797
797
  return (r, c) => {
798
- var v;
799
- return d(), p(a(Re), _({
798
+ var g;
799
+ return d(), h(a(Re), _({
800
800
  class: "ui-MenuItem",
801
- "data-accent-color": a(i).color,
801
+ "data-accent-color": t.color,
802
802
  "data-size": a(n).size.value,
803
803
  "data-variant": a(n).variant.value,
804
- "data-high-contrast": ((v = a(n).highContrast) == null ? void 0 : v.value) || void 0
804
+ "data-high-contrast": ((g = a(n).highContrast) == null ? void 0 : g.value) || void 0
805
805
  }, { ...r.$attrs, ...a(i) }), {
806
806
  default: l(() => [
807
807
  f(r.$slots, "default"),
@@ -815,7 +815,7 @@ const st = {
815
815
  }, 16, ["data-accent-color", "data-size", "data-variant", "data-high-contrast"]);
816
816
  };
817
817
  }
818
- }), ia = /* @__PURE__ */ u({
818
+ }), la = /* @__PURE__ */ u({
819
819
  __name: "Separator",
820
820
  props: {
821
821
  as: { default: "span" },
@@ -825,7 +825,7 @@ const st = {
825
825
  },
826
826
  setup(s) {
827
827
  const e = s;
828
- return (t, o) => (d(), p(a(k), {
828
+ return (t, o) => (d(), h(a(k), {
829
829
  as: e.as,
830
830
  class: "ui-Separator",
831
831
  role: "separator",
@@ -837,28 +837,28 @@ const st = {
837
837
  }), bt = /* @__PURE__ */ u({
838
838
  __name: "Spinner",
839
839
  setup(s) {
840
- return (e, t) => (d(), p(a(R), {
840
+ return (e, t) => (d(), h(a(A), {
841
841
  class: "ui-Spinner",
842
842
  icon: "lucide:loader-circle"
843
843
  }));
844
844
  }
845
- }), la = /* @__PURE__ */ u({
845
+ }), na = /* @__PURE__ */ u({
846
846
  __name: "SavingIndicator",
847
847
  props: {
848
848
  status: {}
849
849
  },
850
850
  setup(s) {
851
851
  const e = s;
852
- return (t, o) => e.status === "saving" ? (d(), p(bt, {
852
+ return (t, o) => e.status === "saving" ? (d(), h(bt, {
853
853
  key: 0,
854
854
  class: "ui-SavingIndicator _saving"
855
- })) : e.status === "saved" ? (d(), p(a(R), {
855
+ })) : e.status === "saved" ? (d(), h(a(A), {
856
856
  key: 1,
857
857
  class: "ui-SavingIndicator _saved",
858
858
  icon: "lucide:check-circle-2"
859
859
  })) : T("", !0);
860
860
  }
861
- }), na = /* @__PURE__ */ u({
861
+ }), ra = /* @__PURE__ */ u({
862
862
  inheritAttrs: !1,
863
863
  __name: "Switch",
864
864
  props: {
@@ -879,29 +879,31 @@ const st = {
879
879
  },
880
880
  emits: ["update:checked"],
881
881
  setup(s, { emit: e }) {
882
- const t = e, o = s, i = w(o, t, ["color", "size", "variant", "highContrast", "radius"]);
883
- return (n, r) => (d(), p(a(Pe), _({
882
+ const t = e, o = s, i = w(o, t, [
883
+ "color",
884
+ "size",
885
+ "variant",
886
+ "highContrast",
887
+ "radius"
888
+ ]);
889
+ return (n, r) => (d(), h(a(Pe), _({
884
890
  ...n.$attrs,
885
- ...a(i),
886
- size: void 0,
887
- color: void 0,
888
- variant: void 0,
889
- highContrast: void 0
891
+ ...a(i)
890
892
  }, {
891
893
  class: "ui-Switch",
892
894
  "data-variant": o.variant,
893
895
  "data-size": o.size,
894
- "data-accent-color": a(i).color,
895
- "data-radius": a(i).radius,
896
- "data-high-contrast": a(i).highContrast
896
+ "data-accent-color": o.color,
897
+ "data-radius": o.radius,
898
+ "data-high-contrast": o.highContrast
897
899
  }), {
898
900
  default: l(() => [
899
- h(a(Ie), { class: "ui-SwitchThumb" })
901
+ p(a(Ie), { class: "ui-SwitchThumb" })
900
902
  ]),
901
903
  _: 1
902
904
  }, 16, ["data-variant", "data-size", "data-accent-color", "data-radius", "data-high-contrast"]));
903
905
  }
904
- }), zt = ["data-accent-color", "data-variant", "data-size", "data-high-contrast"], ra = /* @__PURE__ */ u({
906
+ }), zt = ["data-accent-color", "data-variant", "data-size", "data-high-contrast"], da = /* @__PURE__ */ u({
905
907
  inheritAttrs: !1,
906
908
  __name: "Radio",
907
909
  props: {
@@ -913,24 +915,24 @@ const st = {
913
915
  },
914
916
  emits: ["update:modelValue"],
915
917
  setup(s, { emit: e }) {
916
- const t = s, o = e, i = B(t), n = D(t, "modelValue", o, {
918
+ const t = s, i = R(t, "modelValue", e, {
917
919
  defaultValue: t.modelValue,
918
920
  passive: t.modelValue === void 0
919
921
  });
920
- return (r, c) => x((d(), b("input", _({
921
- "onUpdate:modelValue": c[0] || (c[0] = (v) => V(n) ? n.value = v : null),
922
+ return (n, r) => V((d(), b("input", _({
923
+ "onUpdate:modelValue": r[0] || (r[0] = (c) => D(i) ? i.value = c : null),
922
924
  class: "ui-Radio",
923
925
  type: "radio"
924
- }, r.$attrs, {
926
+ }, n.$attrs, {
925
927
  "data-accent-color": t.color,
926
928
  "data-variant": t.variant,
927
929
  "data-size": t.size,
928
- "data-high-contrast": a(i).highContrast
930
+ "data-high-contrast": t.highContrast
929
931
  }), null, 16, zt)), [
930
- [re, a(n)]
932
+ [re, a(i)]
931
933
  ]);
932
934
  }
933
- }), [le, Bt] = j("ui_RadioGroupRoot"), da = /* @__PURE__ */ u({
935
+ }), [le, Bt] = j("ui_RadioGroupRoot"), ca = /* @__PURE__ */ u({
934
936
  inheritAttrs: !1,
935
937
  __name: "RadioGroupRoot",
936
938
  props: {
@@ -951,18 +953,18 @@ const st = {
951
953
  },
952
954
  emits: ["update:modelValue"],
953
955
  setup(s, { emit: e }) {
954
- const t = e, o = s, i = w(o, t, ["color", "size", "variant", "highContrast"]), { size: n, variant: r, color: c, highContrast: v } = G(o);
955
- return Bt({ size: n, variant: r, color: c, highContrast: v }), (g, S) => (d(), p(a(ee), de(ce({
956
- ...g.$attrs,
956
+ const t = e, o = s, i = w(o, t, ["color", "size", "variant", "highContrast"]), { size: n, variant: r, color: c, highContrast: g } = W(o);
957
+ return Bt({ size: n, variant: r, color: c, highContrast: g }), (v, S) => (d(), h(a(ee), de(ce({
958
+ ...v.$attrs,
957
959
  ...a(i)
958
960
  })), {
959
961
  default: l(() => [
960
- f(g.$slots, "default")
962
+ f(v.$slots, "default")
961
963
  ]),
962
964
  _: 3
963
965
  }, 16));
964
966
  }
965
- }), ca = /* @__PURE__ */ u({
967
+ }), ua = /* @__PURE__ */ u({
966
968
  inheritAttrs: !1,
967
969
  __name: "RadioGroupItem",
968
970
  props: {
@@ -975,12 +977,12 @@ const st = {
975
977
  as: {}
976
978
  },
977
979
  setup(s) {
978
- const t = B(s);
979
- $();
980
+ const t = $(s);
981
+ B();
980
982
  const o = le();
981
983
  return (i, n) => {
982
984
  var r, c;
983
- return d(), p(a(te), _({
985
+ return d(), h(a(te), _({
984
986
  class: "ui-Radio",
985
987
  "data-accent-color": (r = a(o).color) == null ? void 0 : r.value,
986
988
  "data-size": a(o).size.value,
@@ -994,7 +996,7 @@ const st = {
994
996
  }, 16, ["data-accent-color", "data-size", "data-variant", "data-high-contrast"]);
995
997
  };
996
998
  }
997
- }), ua = /* @__PURE__ */ u({
999
+ }), pa = /* @__PURE__ */ u({
998
1000
  inheritAttrs: !1,
999
1001
  __name: "RadioCardsItem",
1000
1002
  props: {
@@ -1007,12 +1009,12 @@ const st = {
1007
1009
  as: {}
1008
1010
  },
1009
1011
  setup(s) {
1010
- const t = B(s);
1011
- $();
1012
+ const t = $(s);
1013
+ B();
1012
1014
  const o = le();
1013
1015
  return (i, n) => {
1014
1016
  var r, c;
1015
- return d(), p(a(te), _({
1017
+ return d(), h(a(te), _({
1016
1018
  class: "ui-RadioCardsItem",
1017
1019
  "data-accent-color": (r = a(o).color) == null ? void 0 : r.value,
1018
1020
  "data-size": a(o).size.value,
@@ -1020,7 +1022,7 @@ const st = {
1020
1022
  "data-high-contrast": (c = a(o).highContrast) == null ? void 0 : c.value
1021
1023
  }, { ...i.$attrs, ...a(t), asChild: !1 }), {
1022
1024
  default: l(() => [
1023
- h(rt, {
1025
+ p(rt, {
1024
1026
  "as-child": a(t).asChild
1025
1027
  }, {
1026
1028
  default: l(() => [
@@ -1041,7 +1043,7 @@ const st = {
1041
1043
  key: 1,
1042
1044
  class: "ui-TextFieldSlot",
1043
1045
  "data-side": "right"
1044
- }, pa = /* @__PURE__ */ u({
1046
+ }, ha = /* @__PURE__ */ u({
1045
1047
  inheritAttrs: !1,
1046
1048
  __name: "TextField",
1047
1049
  props: {
@@ -1057,30 +1059,30 @@ const st = {
1057
1059
  emits: ["update:modelValue"],
1058
1060
  setup(s, { emit: e }) {
1059
1061
  const t = s, o = L(), i = (c) => {
1060
- const v = c.target;
1061
- if (v.closest("input, button, a")) return;
1062
- const g = o.value;
1063
- if (!g) return;
1064
- const m = v.closest("[data-side=right]") ? g.value.length : 0;
1062
+ const g = c.target;
1063
+ if (g.closest("input, button, a")) return;
1064
+ const v = o.value;
1065
+ if (!v) return;
1066
+ const m = g.closest("[data-side=right]") ? v.value.length : 0;
1065
1067
  requestAnimationFrame(() => {
1066
- g.setSelectionRange(m, m), g.focus();
1068
+ v.setSelectionRange(m, m), v.focus();
1067
1069
  });
1068
- }, r = D(t, "modelValue", e, {
1070
+ }, r = R(t, "modelValue", e, {
1069
1071
  defaultValue: t.modelValue,
1070
1072
  passive: t.modelValue === void 0
1071
1073
  });
1072
- return (c, v) => (d(), b("div", {
1074
+ return (c, g) => (d(), b("div", {
1073
1075
  class: X(["ui-TextField", t.class]),
1074
1076
  "data-accent-color": t.color,
1075
1077
  "data-variant": t.variant,
1076
1078
  "data-size": t.size,
1077
1079
  onPointerdown: i
1078
1080
  }, [
1079
- x(C("input", _({
1081
+ V(C("input", _({
1080
1082
  id: t.id,
1081
1083
  ref_key: "inputRef",
1082
1084
  ref: o,
1083
- "onUpdate:modelValue": v[0] || (v[0] = (g) => V(r) ? r.value = g : null),
1085
+ "onUpdate:modelValue": g[0] || (g[0] = (v) => D(r) ? r.value = v : null),
1084
1086
  type: t.type
1085
1087
  }, c.$attrs, { class: "ui-TextFieldInput" }), null, 16, wt), [
1086
1088
  [ue, a(r)]
@@ -1093,7 +1095,7 @@ const st = {
1093
1095
  ])) : T("", !0)
1094
1096
  ], 42, $t));
1095
1097
  }
1096
- }), kt = ["data-accent-color", "data-variant", "data-size", "data-resize"], ha = /* @__PURE__ */ u({
1098
+ }), kt = ["data-accent-color", "data-variant", "data-size", "data-resize"], fa = /* @__PURE__ */ u({
1097
1099
  inheritAttrs: !1,
1098
1100
  __name: "TextArea",
1099
1101
  props: {
@@ -1107,7 +1109,7 @@ const st = {
1107
1109
  },
1108
1110
  emits: ["update:modelValue"],
1109
1111
  setup(s, { emit: e }) {
1110
- const t = s, i = D(t, "modelValue", e, {
1112
+ const t = s, i = R(t, "modelValue", e, {
1111
1113
  defaultValue: t.modelValue,
1112
1114
  passive: t.modelValue === void 0
1113
1115
  });
@@ -1118,14 +1120,14 @@ const st = {
1118
1120
  "data-size": t.size,
1119
1121
  "data-resize": t.resize
1120
1122
  }, [
1121
- x(C("textarea", _({
1122
- "onUpdate:modelValue": r[0] || (r[0] = (c) => V(i) ? i.value = c : null)
1123
+ V(C("textarea", _({
1124
+ "onUpdate:modelValue": r[0] || (r[0] = (c) => D(i) ? i.value = c : null)
1123
1125
  }, n.$attrs, { class: "ui-TextAreaInput" }), null, 16), [
1124
1126
  [F, a(i)]
1125
1127
  ])
1126
1128
  ], 10, kt));
1127
1129
  }
1128
- }), fa = /* @__PURE__ */ u({
1130
+ }), ma = /* @__PURE__ */ u({
1129
1131
  inheritAttrs: !1,
1130
1132
  __name: "SelectRoot",
1131
1133
  props: {
@@ -1143,14 +1145,14 @@ const st = {
1143
1145
  emits: ["update:modelValue", "update:open"],
1144
1146
  setup(s, { emit: e }) {
1145
1147
  const t = s, i = w(t, e, ["size"]);
1146
- return pe("SelectRoot.size", z(() => t.size)), $(), (n, r) => (d(), p(a(Oe), _({ ...n.$attrs, ...a(i) }, { class: "ui-SelectItem" }), {
1148
+ return pe("SelectRoot.size", z(() => t.size)), B(), (n, r) => (d(), h(a(Oe), _({ ...n.$attrs, ...a(i) }, { class: "ui-SelectItem" }), {
1147
1149
  default: l(() => [
1148
1150
  f(n.$slots, "default")
1149
1151
  ]),
1150
1152
  _: 3
1151
1153
  }, 16));
1152
1154
  }
1153
- }), ma = /* @__PURE__ */ u({
1155
+ }), _a = /* @__PURE__ */ u({
1154
1156
  inheritAttrs: !1,
1155
1157
  __name: "SelectContent",
1156
1158
  props: {
@@ -1176,10 +1178,10 @@ const st = {
1176
1178
  as: {}
1177
1179
  },
1178
1180
  setup(s) {
1179
- const e = s, t = B(e), o = J("SelectRoot.size"), { forwardRef: i } = $();
1180
- return (n, r) => (d(), p(a(Me), null, {
1181
+ const e = s, t = $(e), o = J("SelectRoot.size"), { forwardRef: i } = B();
1182
+ return (n, r) => (d(), h(a(Me), null, {
1181
1183
  default: l(() => [
1182
- h(a(Fe), _({
1184
+ p(a(Fe), _({
1183
1185
  ...n.$attrs,
1184
1186
  ...a(t),
1185
1187
  color: void 0,
@@ -1194,30 +1196,30 @@ const st = {
1194
1196
  "data-high-contrast": e.highContrast
1195
1197
  }), {
1196
1198
  default: l(() => [
1197
- h(a(Y), {
1199
+ p(a(Y), {
1198
1200
  type: "auto",
1199
1201
  class: "ui-ScrollArea"
1200
1202
  }, {
1201
1203
  default: l(() => [
1202
- h(a(He), {
1204
+ p(a(He), {
1203
1205
  class: "ui-SelectViewport",
1204
1206
  "as-child": ""
1205
1207
  }, {
1206
1208
  default: l(() => [
1207
- h(a(Z), { class: "ui-ScrollAreaViewport" }, {
1209
+ p(a(Z), { class: "ui-ScrollAreaViewport" }, {
1208
1210
  default: l(() => [
1209
1211
  f(n.$slots, "default")
1210
1212
  ]),
1211
1213
  _: 3
1212
1214
  }),
1213
1215
  r[0] || (r[0] = C("div", { class: "ui-ScrollAreaViewportFocusRing" }, null, -1)),
1214
- h(a(H), {
1216
+ p(a(H), {
1215
1217
  class: "ui-ScrollAreaScrollbar",
1216
1218
  "data-size": 1,
1217
1219
  orientation: "vertical"
1218
1220
  }, {
1219
1221
  default: l(() => [
1220
- h(a(W), { class: "ui-ScrollAreaThumb" })
1222
+ p(a(G), { class: "ui-ScrollAreaThumb" })
1221
1223
  ]),
1222
1224
  _: 1
1223
1225
  })
@@ -1234,7 +1236,7 @@ const st = {
1234
1236
  _: 3
1235
1237
  }));
1236
1238
  }
1237
- }), At = ["disabled", "data-variant", "data-accent-color", "data-radius", "data-size"], xt = { class: "ui-SelectTriggerInner" }, _a = /* @__PURE__ */ u({
1239
+ }), At = ["disabled", "data-variant", "data-accent-color", "data-radius", "data-size"], xt = { class: "ui-SelectTriggerInner" }, va = /* @__PURE__ */ u({
1238
1240
  inheritAttrs: !1,
1239
1241
  __name: "SelectTrigger",
1240
1242
  props: {
@@ -1248,7 +1250,7 @@ const st = {
1248
1250
  },
1249
1251
  setup(s) {
1250
1252
  const e = s, t = J("SelectRoot.size");
1251
- return $(), (o, i) => (d(), p(a(We), { "as-child": "" }, {
1253
+ return B(), (o, i) => (d(), h(a(Ge), { "as-child": "" }, {
1252
1254
  default: l(() => [
1253
1255
  C("button", _({ class: "ui-SelectTrigger" }, o.$attrs, {
1254
1256
  disabled: e.disabled,
@@ -1258,13 +1260,13 @@ const st = {
1258
1260
  "data-size": a(t)
1259
1261
  }), [
1260
1262
  C("span", xt, [
1261
- h(a(Ge), {
1263
+ p(a(We), {
1262
1264
  placeholder: e.placeholder
1263
1265
  }, null, 8, ["placeholder"])
1264
1266
  ]),
1265
- h(a(Le), { "as-child": "" }, {
1267
+ p(a(Le), { "as-child": "" }, {
1266
1268
  default: l(() => [
1267
- h(a(R), {
1269
+ p(a(A), {
1268
1270
  class: "ui-SelectIcon",
1269
1271
  icon: "radix-icons:chevron-down"
1270
1272
  })
@@ -1276,7 +1278,7 @@ const st = {
1276
1278
  _: 1
1277
1279
  }));
1278
1280
  }
1279
- }), va = /* @__PURE__ */ u({
1281
+ }), ga = /* @__PURE__ */ u({
1280
1282
  inheritAttrs: !1,
1281
1283
  __name: "SelectItem",
1282
1284
  props: {
@@ -1287,16 +1289,16 @@ const st = {
1287
1289
  as: {}
1288
1290
  },
1289
1291
  setup(s) {
1290
- const t = B(s);
1291
- return $(), (o, i) => (d(), p(a(je), _({ class: "ui-SelectItem" }, { ...o.$attrs, ...a(t) }), {
1292
+ const t = $(s);
1293
+ return B(), (o, i) => (d(), h(a(je), _({ class: "ui-SelectItem" }, { ...o.$attrs, ...a(t) }), {
1292
1294
  default: l(() => [
1293
- h(a(Ee), { class: "ui-SelectItemIndicator" }, {
1295
+ p(a(Ee), { class: "ui-SelectItemIndicator" }, {
1294
1296
  default: l(() => [
1295
- h(a(R), { icon: "radix-icons:check" })
1297
+ p(a(A), { icon: "radix-icons:check" })
1296
1298
  ]),
1297
1299
  _: 1
1298
1300
  }),
1299
- h(a(qe), null, {
1301
+ p(a(qe), null, {
1300
1302
  default: l(() => [
1301
1303
  f(o.$slots, "default")
1302
1304
  ]),
@@ -1306,7 +1308,7 @@ const st = {
1306
1308
  _: 3
1307
1309
  }, 16));
1308
1310
  }
1309
- }), ga = /* @__PURE__ */ u({
1311
+ }), ya = /* @__PURE__ */ u({
1310
1312
  inheritAttrs: !1,
1311
1313
  __name: "SelectLabel",
1312
1314
  props: {
@@ -1315,8 +1317,8 @@ const st = {
1315
1317
  as: {}
1316
1318
  },
1317
1319
  setup(s) {
1318
- const t = B(s);
1319
- return $(), (o, i) => (d(), p(a(Ue), _({ class: "ui-SelectLabel" }, { ...o.$attrs, ...a(t) }), {
1320
+ const t = $(s);
1321
+ return B(), (o, i) => (d(), h(a(Ue), _({ class: "ui-SelectLabel" }, { ...o.$attrs, ...a(t) }), {
1320
1322
  default: l(() => [
1321
1323
  f(o.$slots, "default")
1322
1324
  ]),
@@ -1335,7 +1337,7 @@ const st = {
1335
1337
  function Pt(s, e) {
1336
1338
  return d(), b("div", Rt);
1337
1339
  }
1338
- const ya = /* @__PURE__ */ Vt(Dt, [["render", Pt]]), It = ["data-size", "data-variant"], Ot = ["data-layout"], Ca = /* @__PURE__ */ u({
1340
+ const Ca = /* @__PURE__ */ Vt(Dt, [["render", Pt]]), It = ["data-size", "data-variant"], Ot = ["data-layout"], ba = /* @__PURE__ */ u({
1339
1341
  __name: "Table",
1340
1342
  props: {
1341
1343
  size: { default: "2" },
@@ -1349,7 +1351,7 @@ const ya = /* @__PURE__ */ Vt(Dt, [["render", Pt]]), It = ["data-size", "data-va
1349
1351
  "data-size": e.size,
1350
1352
  "data-variant": e.variant
1351
1353
  }, [
1352
- h(ie, null, {
1354
+ p(ie, null, {
1353
1355
  default: l(() => [
1354
1356
  C("table", {
1355
1357
  class: "ui-TableContent",
@@ -1362,7 +1364,7 @@ const ya = /* @__PURE__ */ Vt(Dt, [["render", Pt]]), It = ["data-size", "data-va
1362
1364
  })
1363
1365
  ], 8, It));
1364
1366
  }
1365
- }), Mt = ["textContent"], ba = /* @__PURE__ */ u({
1367
+ }), Mt = ["textContent"], za = /* @__PURE__ */ u({
1366
1368
  __name: "Tooltip",
1367
1369
  props: {
1368
1370
  to: {},
@@ -1390,7 +1392,7 @@ const ya = /* @__PURE__ */ Vt(Dt, [["render", Pt]]), It = ["data-size", "data-va
1390
1392
  },
1391
1393
  setup(s) {
1392
1394
  const e = s;
1393
- return (t, o) => (d(), p(a(Ke), {
1395
+ return (t, o) => (d(), h(a(Ke), {
1394
1396
  "delay-duration": e.delayDuration,
1395
1397
  "disable-closing-trigger": e.disableClosingTrigger,
1396
1398
  "disable-hoverable-content": e.disableHoverableContent,
@@ -1399,9 +1401,9 @@ const ya = /* @__PURE__ */ Vt(Dt, [["render", Pt]]), It = ["data-size", "data-va
1399
1401
  "skip-delay-duration": e.skipDelayDuration
1400
1402
  }, {
1401
1403
  default: l(() => [
1402
- h(a(Ne), null, {
1404
+ p(a(Ne), null, {
1403
1405
  default: l(() => [
1404
- h(a(Qe), {
1406
+ p(a(Qe), {
1405
1407
  as: e.as,
1406
1408
  "as-child": e.asChild
1407
1409
  }, {
@@ -1410,11 +1412,11 @@ const ya = /* @__PURE__ */ Vt(Dt, [["render", Pt]]), It = ["data-size", "data-va
1410
1412
  ]),
1411
1413
  _: 3
1412
1414
  }, 8, ["as", "as-child"]),
1413
- h(a(Xe), {
1415
+ p(a(Xe), {
1414
1416
  to: e.to
1415
1417
  }, {
1416
1418
  default: l(() => [
1417
- h(a(Je), {
1419
+ p(a(Je), {
1418
1420
  class: "ui-Tooltip",
1419
1421
  align: e.align,
1420
1422
  "align-offset": e.alignOffset,
@@ -1435,7 +1437,7 @@ const ya = /* @__PURE__ */ Vt(Dt, [["render", Pt]]), It = ["data-size", "data-va
1435
1437
  textContent: O(e.content)
1436
1438
  }, null, 8, Mt)
1437
1439
  ]),
1438
- h(a(Ye), { class: "ui-TooltipArrow" })
1440
+ p(a(Ye), { class: "ui-TooltipArrow" })
1439
1441
  ]),
1440
1442
  _: 3
1441
1443
  }, 8, ["align", "align-offset", "aria-label", "arrow-padding", "avoid-collisions", "collision-boundary", "collision-padding", "hide-when-detached", "side", "side-offset", "sticky"])
@@ -1449,7 +1451,7 @@ const ya = /* @__PURE__ */ Vt(Dt, [["render", Pt]]), It = ["data-size", "data-va
1449
1451
  _: 3
1450
1452
  }, 8, ["delay-duration", "disable-closing-trigger", "disable-hoverable-content", "disabled", "ignore-non-keyboard-focus", "skip-delay-duration"]));
1451
1453
  }
1452
- }), za = /* @__PURE__ */ u({
1454
+ }), Ba = /* @__PURE__ */ u({
1453
1455
  __name: "TabsList",
1454
1456
  props: {
1455
1457
  size: { default: "2" },
@@ -1460,7 +1462,7 @@ const ya = /* @__PURE__ */ Vt(Dt, [["render", Pt]]), It = ["data-size", "data-va
1460
1462
  },
1461
1463
  setup(s) {
1462
1464
  const e = s;
1463
- return (t, o) => (d(), p(a(Ze), {
1465
+ return (t, o) => (d(), h(a(Ze), {
1464
1466
  class: "ui-TabList",
1465
1467
  "data-accent-color": e.color,
1466
1468
  "data-size": e.size,
@@ -1474,7 +1476,7 @@ const ya = /* @__PURE__ */ Vt(Dt, [["render", Pt]]), It = ["data-size", "data-va
1474
1476
  _: 3
1475
1477
  }, 8, ["data-accent-color", "data-size", "data-wrap", "data-justify", "data-high-contrast"]));
1476
1478
  }
1477
- }), Ft = { class: "ui-TabTriggerInner" }, Ht = { class: "ui-TabTriggerInnerHidden" }, Ba = /* @__PURE__ */ u({
1479
+ }), Ft = { class: "ui-TabTriggerInner" }, Ht = { class: "ui-TabTriggerInnerHidden" }, $a = /* @__PURE__ */ u({
1478
1480
  inheritAttrs: !1,
1479
1481
  __name: "TabsTrigger",
1480
1482
  props: {
@@ -1484,8 +1486,8 @@ const ya = /* @__PURE__ */ Vt(Dt, [["render", Pt]]), It = ["data-size", "data-va
1484
1486
  as: {}
1485
1487
  },
1486
1488
  setup(s) {
1487
- const t = B(s);
1488
- return (o, i) => (d(), p(a(et), _({ ...o.$attrs, ...a(t) }, { class: "ui-TabTrigger" }), {
1489
+ const t = $(s);
1490
+ return (o, i) => (d(), h(a(et), _({ ...o.$attrs, ...a(t) }, { class: "ui-TabTrigger" }), {
1489
1491
  default: l(() => [
1490
1492
  C("span", Ft, [
1491
1493
  f(o.$slots, "default")
@@ -1497,7 +1499,7 @@ const ya = /* @__PURE__ */ Vt(Dt, [["render", Pt]]), It = ["data-size", "data-va
1497
1499
  _: 3
1498
1500
  }, 16));
1499
1501
  }
1500
- }), $a = /* @__PURE__ */ u({
1502
+ }), wa = /* @__PURE__ */ u({
1501
1503
  inheritAttrs: !1,
1502
1504
  __name: "RadioTabsList",
1503
1505
  props: {
@@ -1516,7 +1518,7 @@ const ya = /* @__PURE__ */ Vt(Dt, [["render", Pt]]), It = ["data-size", "data-va
1516
1518
  emits: ["update:modelValue"],
1517
1519
  setup(s, { emit: e }) {
1518
1520
  const t = e, o = s, i = w(o, t, ["size"]);
1519
- return (n, r) => (d(), p(a(ee), _({
1521
+ return (n, r) => (d(), h(a(ee), _({
1520
1522
  ...n.$attrs,
1521
1523
  ...a(i),
1522
1524
  size: void 0
@@ -1530,9 +1532,9 @@ const ya = /* @__PURE__ */ Vt(Dt, [["render", Pt]]), It = ["data-size", "data-va
1530
1532
  _: 3
1531
1533
  }, 16, ["data-size"]));
1532
1534
  }
1533
- }), Wt = "https://challenges.cloudflare.com/turnstile/v0/api.js", q = "cfTurnstileOnLoad";
1535
+ }), Gt = "https://challenges.cloudflare.com/turnstile/v0/api.js", q = "cfTurnstileOnLoad";
1534
1536
  let P = typeof window < "u" && window.turnstile !== void 0 ? "ready" : "unloaded", M, I, U;
1535
- const wa = /* @__PURE__ */ u({
1537
+ const Sa = /* @__PURE__ */ u({
1536
1538
  __name: "Turnstile",
1537
1539
  props: {
1538
1540
  sitekey: {},
@@ -1550,11 +1552,11 @@ const wa = /* @__PURE__ */ u({
1550
1552
  window.turnstile && (o("update:modelValue", ""), window.turnstile.reset());
1551
1553
  }, r = () => {
1552
1554
  I && (window.turnstile.remove(I), I = void 0);
1553
- }, c = (g) => {
1554
- o("update:modelValue", g), U = setTimeout(() => {
1555
+ }, c = (v) => {
1556
+ o("update:modelValue", v), U = setTimeout(() => {
1555
1557
  n();
1556
1558
  }, t.resetInterval);
1557
- }, v = () => {
1559
+ }, g = () => {
1558
1560
  I = window.turnstile.render(i.value, {
1559
1561
  sitekey: t.sitekey,
1560
1562
  theme: t.theme,
@@ -1565,7 +1567,7 @@ const wa = /* @__PURE__ */ u({
1565
1567
  });
1566
1568
  };
1567
1569
  return N(async () => {
1568
- const g = new Promise((m, y) => {
1570
+ const v = new Promise((m, y) => {
1569
1571
  M = { resolve: m, reject: y }, P === "ready" && m(void 0);
1570
1572
  });
1571
1573
  window[q] = () => {
@@ -1573,21 +1575,21 @@ const wa = /* @__PURE__ */ u({
1573
1575
  }, await (() => {
1574
1576
  if (P === "unloaded") {
1575
1577
  P = "loading";
1576
- const m = `${Wt}?onload=${q}&render=explicit`, y = document.createElement("script");
1578
+ const m = `${Gt}?onload=${q}&render=explicit`, y = document.createElement("script");
1577
1579
  y.src = m, y.async = !0, y.addEventListener("error", () => {
1578
1580
  M.reject("Failed to load Turnstile.");
1579
1581
  }), document.head.appendChild(y);
1580
1582
  }
1581
- return g;
1582
- })(), t.renderOnMount && v();
1583
+ return v;
1584
+ })(), t.renderOnMount && g();
1583
1585
  }), Q(() => {
1584
1586
  r(), clearTimeout(U);
1585
- }), (g, S) => (d(), b("div", {
1587
+ }), (v, S) => (d(), b("div", {
1586
1588
  ref_key: "element",
1587
1589
  ref: i
1588
1590
  }, null, 512));
1589
1591
  }
1590
- }), Sa = /* @__PURE__ */ u({
1592
+ }), Ta = /* @__PURE__ */ u({
1591
1593
  __name: "Quota",
1592
1594
  props: {
1593
1595
  percent: {},
@@ -1601,13 +1603,13 @@ const wa = /* @__PURE__ */ u({
1601
1603
  let n = "a4";
1602
1604
  return e.percent > 90 ? n = "a11" : e.percent > 66 ? n = "a9" : e.percent > 33 && (n = "a6"), { transform: i, "background-color": `var(--blue-${n})` };
1603
1605
  }), o = z(() => e.percent > 100 ? 100 : e.percent < 0 ? 0 : e.percent);
1604
- return (i, n) => (d(), p(a(tt), {
1606
+ return (i, n) => (d(), h(a(tt), {
1605
1607
  class: "ui-Quota",
1606
1608
  "model-value": o.value,
1607
1609
  "data-accent-color": e.color
1608
1610
  }, {
1609
1611
  default: l(() => [
1610
- h(a(at), {
1612
+ p(a(at), {
1611
1613
  class: "ui-QuotaValue",
1612
1614
  style: he(t.value)
1613
1615
  }, null, 8, ["style"])
@@ -1615,72 +1617,95 @@ const wa = /* @__PURE__ */ u({
1615
1617
  _: 1
1616
1618
  }, 8, ["model-value", "data-accent-color"]));
1617
1619
  }
1620
+ }), Wt = ["data-variant", "data-size", "data-accent-color"], ka = /* @__PURE__ */ u({
1621
+ __name: "IconCircle",
1622
+ props: {
1623
+ color: {},
1624
+ size: { default: 1 },
1625
+ variant: { default: "soft" },
1626
+ icon: {}
1627
+ },
1628
+ setup(s) {
1629
+ const e = s;
1630
+ return (t, o) => (d(), b("span", {
1631
+ class: "ui-IconCircle",
1632
+ "data-radius": "full",
1633
+ "data-variant": e.variant,
1634
+ "data-size": e.size,
1635
+ "data-accent-color": e.color
1636
+ }, [
1637
+ p(a(A), {
1638
+ icon: e.icon
1639
+ }, null, 8, ["icon"])
1640
+ ], 8, Wt));
1641
+ }
1618
1642
  });
1619
1643
  export {
1620
- Aa as AlertDialogAction,
1621
- xa as AlertDialogCancel,
1622
- Zt as AlertDialogContent,
1623
- Va as AlertDialogDescription,
1624
- Da as AlertDialogRoot,
1625
- Ra as AlertDialogTitle,
1626
- Pa as AlertDialogTrigger,
1627
- qt as Avatar,
1628
- Ut as Badge,
1644
+ Va as AlertDialogAction,
1645
+ Da as AlertDialogCancel,
1646
+ ea as AlertDialogContent,
1647
+ Ra as AlertDialogDescription,
1648
+ Pa as AlertDialogRoot,
1649
+ Ia as AlertDialogTitle,
1650
+ Oa as AlertDialogTrigger,
1651
+ Ut as Avatar,
1652
+ Kt as Badge,
1629
1653
  ae as Button,
1630
1654
  rt as Card,
1631
- Jt as CardHead,
1655
+ Yt as CardHead,
1632
1656
  oe as Checkbox,
1633
- Xt as CheckboxGroupControl,
1634
- Qt as CheckboxGroupItem,
1635
- Nt as CheckboxGroupRoot,
1636
- Yt as ColorField,
1637
- Ia as DialogClose,
1638
- ea as DialogContent,
1639
- Oa as DialogDescription,
1640
- ta as DialogHead,
1641
- Ma as DialogRoot,
1642
- Fa as DialogTitle,
1643
- Ha as DialogTrigger,
1644
- oa as DropdownMenuContent,
1645
- sa as DropdownMenuItem,
1646
- Wa as DropdownMenuRoot,
1647
- Ga as DropdownMenuTrigger,
1648
- Ya as Icon,
1649
- Kt as IconButton,
1657
+ Jt as CheckboxGroupControl,
1658
+ Xt as CheckboxGroupItem,
1659
+ Qt as CheckboxGroupRoot,
1660
+ Zt as ColorField,
1661
+ Ma as DialogClose,
1662
+ ta as DialogContent,
1663
+ Fa as DialogDescription,
1664
+ aa as DialogHead,
1665
+ Ha as DialogRoot,
1666
+ Ga as DialogTitle,
1667
+ Wa as DialogTrigger,
1668
+ sa as DropdownMenuContent,
1669
+ ia as DropdownMenuItem,
1670
+ La as DropdownMenuRoot,
1671
+ ja as DropdownMenuTrigger,
1672
+ eo as Icon,
1673
+ Nt as IconButton,
1674
+ ka as IconCircle,
1650
1675
  _t as Inset,
1651
- La as PopoverAnchor,
1652
- ja as PopoverArrow,
1653
- Ea as PopoverClose,
1654
- aa as PopoverContent,
1655
- qa as PopoverRoot,
1656
- Ua as PopoverTrigger,
1657
- Sa as Quota,
1658
- ra as Radio,
1659
- ua as RadioCardsItem,
1660
- da as RadioCardsRoot,
1661
- ca as RadioGroupItem,
1662
- da as RadioGroupRoot,
1663
- Ka as RadioTabsItem,
1664
- $a as RadioTabsList,
1665
- la as SavingIndicator,
1676
+ Ea as PopoverAnchor,
1677
+ qa as PopoverArrow,
1678
+ Ua as PopoverClose,
1679
+ oa as PopoverContent,
1680
+ Ka as PopoverRoot,
1681
+ Na as PopoverTrigger,
1682
+ Ta as Quota,
1683
+ da as Radio,
1684
+ pa as RadioCardsItem,
1685
+ ca as RadioCardsRoot,
1686
+ ua as RadioGroupItem,
1687
+ ca as RadioGroupRoot,
1688
+ Qa as RadioTabsItem,
1689
+ wa as RadioTabsList,
1690
+ na as SavingIndicator,
1666
1691
  ie as ScrollArea,
1667
- ma as SelectContent,
1668
- Na as SelectGroup,
1669
- va as SelectItem,
1670
- ga as SelectLabel,
1671
- fa as SelectRoot,
1672
- ya as SelectSeparator,
1673
- _a as SelectTrigger,
1674
- ia as Separator,
1692
+ _a as SelectContent,
1693
+ Xa as SelectGroup,
1694
+ ga as SelectItem,
1695
+ ya as SelectLabel,
1696
+ ma as SelectRoot,
1697
+ Ca as SelectSeparator,
1698
+ va as SelectTrigger,
1699
+ la as Separator,
1675
1700
  bt as Spinner,
1676
- na as Switch,
1677
- Ca as Table,
1678
- Qa as TabsContent,
1679
- za as TabsList,
1680
- Xa as TabsRoot,
1681
- Ba as TabsTrigger,
1682
- ha as TextArea,
1683
- pa as TextField,
1684
- ba as Tooltip,
1685
- wa as Turnstile
1701
+ ra as Switch,
1702
+ ba as Table,
1703
+ Ja as TabsContent,
1704
+ Ba as TabsList,
1705
+ Ya as TabsRoot,
1706
+ $a as TabsTrigger,
1707
+ fa as TextArea,
1708
+ ha as TextField,
1709
+ za as Tooltip,
1710
+ Sa as Turnstile
1686
1711
  };