@typlog/ui 0.0.1 → 0.1.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 i, 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 L, ref as W, onMounted as N, onBeforeUnmount as Q, withDirectives as V, createElementVNode as C, isRef as x, 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 $, useForwardPropsEmits as w, CheckboxRoot as ve, CheckboxIndicator as ge, createContext as j, useForwardExpose as B, AlertDialogPortal as ye, AlertDialogOverlay as Ce, AlertDialogContent as be, DialogPortal as ze, DialogOverlay as Be, DialogContent as $e, DialogTitle as we, DialogClose as Se, PopoverPortal as Te, PopoverContent as ke, ScrollAreaRoot as Y, ScrollAreaViewport as Z, ScrollAreaScrollbar as H, ScrollAreaThumb as G, ScrollAreaCorner as Ae, DropdownMenuPortal as Ve, DropdownMenuContent as xe, DropdownMenuItem as De, SwitchRoot as Re, SwitchThumb as Pe, RadioGroupRoot as ee, RadioGroupItem as te, SelectRoot as Ie, SelectPortal as Oe, SelectContent as Me, SelectViewport as Fe, SelectTrigger as He, SelectValue as Ge, SelectIcon as Le, SelectItem as We, SelectItemIndicator as je, SelectItemText as qe, SelectLabel as Ee, TooltipProvider as Ue, TooltipRoot as Ke, TooltipTrigger as Ne, TooltipPortal as Qe, TooltipContent as Xe, TooltipArrow as Je, TabsList as Ye, TabsTrigger as Ze, ProgressRoot as et, ProgressIndicator as tt } from "radix-vue";
3
- import { AlertDialogAction as Ta, AlertDialogCancel as ka, AlertDialogDescription as Aa, AlertDialogRoot as Va, AlertDialogTitle as xa, AlertDialogTrigger as Da, DialogClose as Ra, DialogDescription as Pa, DialogRoot as Ia, DialogTitle as Oa, DialogTrigger as Ma, DropdownMenuRoot as Fa, DropdownMenuTrigger as Ha, PopoverAnchor as Ga, PopoverArrow as La, PopoverClose as Wa, PopoverRoot as ja, PopoverTrigger as qa, RadioGroupItem as Ea, SelectGroup as Ua, TabsContent as Ka, TabsRoot as Na } from "radix-vue";
4
- import { useVModel as D } from "@vueuse/core";
5
- import { Icon as R } from "@iconify/vue";
6
- import { Icon as Xa } from "@iconify/vue";
7
- const jt = /* @__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: {},
@@ -15,24 +15,24 @@ const jt = /* @__PURE__ */ u({
15
15
  size: { default: "2" },
16
16
  color: {}
17
17
  },
18
- setup(l) {
19
- const e = l, t = z(() => e.fallback ? e.fallback : e.alt.split(/\s+/).map((o) => o[0]).slice(0, 2).join(""));
20
- return (o, s) => (d(), p(a(fe), {
18
+ setup(s) {
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(), h(a(fe), {
21
21
  class: "ui-Avatar",
22
22
  "data-radius": e.radius,
23
23
  "data-size": e.size,
24
24
  "data-variant": e.variant,
25
25
  "data-accent-color": e.color
26
26
  }, {
27
- default: i(() => [
28
- h(a(me), {
27
+ default: l(() => [
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
- default: i(() => [
35
+ default: l(() => [
36
36
  K(O(t.value), 1)
37
37
  ]),
38
38
  _: 1
@@ -41,7 +41,7 @@ const jt = /* @__PURE__ */ u({
41
41
  _: 1
42
42
  }, 8, ["data-radius", "data-size", "data-variant", "data-accent-color"]));
43
43
  }
44
- }), qt = /* @__PURE__ */ u({
44
+ }), Kt = /* @__PURE__ */ u({
45
45
  __name: "Badge",
46
46
  props: {
47
47
  variant: { default: "soft" },
@@ -52,9 +52,9 @@ const jt = /* @__PURE__ */ u({
52
52
  asChild: { type: Boolean },
53
53
  as: { default: "span" }
54
54
  },
55
- setup(l) {
56
- const e = l;
57
- return (t, o) => (d(), p(a(k), {
55
+ setup(s) {
56
+ const e = s;
57
+ return (t, o) => (d(), h(a(k), {
58
58
  class: "ui-Badge",
59
59
  as: e.as,
60
60
  "as-child": e.asChild,
@@ -64,7 +64,7 @@ const jt = /* @__PURE__ */ u({
64
64
  "data-size": e.size,
65
65
  "data-high-contrast": e.highContrast
66
66
  }, {
67
- default: i(() => [
67
+ default: l(() => [
68
68
  f(t.$slots, "default")
69
69
  ]),
70
70
  _: 3
@@ -82,28 +82,28 @@ const jt = /* @__PURE__ */ u({
82
82
  asChild: { type: Boolean },
83
83
  as: { default: "button" }
84
84
  },
85
- setup(l) {
86
- const e = l, t = ne(), o = z(() => {
87
- const s = {
85
+ setup(s) {
86
+ const e = s, t = ne(), o = z(() => {
87
+ const i = {
88
88
  "data-accent-color": e.color,
89
89
  "data-variant": e.variant,
90
90
  "data-radius": e.radius,
91
91
  "data-size": e.size
92
92
  };
93
- return e.highContrast && (s["data-high-contrast"] = !0), e.disabled ? { ...t, ...s, disabled: !0, "data-disabled": !0 } : { ...t, ...s };
93
+ return e.highContrast && (i["data-high-contrast"] = !0), e.disabled ? { ...t, ...i, disabled: !0, "data-disabled": !0 } : { ...t, ...i };
94
94
  });
95
- return (s, 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
99
99
  }, o.value), {
100
- default: i(() => [
101
- f(s.$slots, "default")
100
+ default: l(() => [
101
+ f(i.$slots, "default")
102
102
  ]),
103
103
  _: 3
104
104
  }, 16, ["as-child", "as"]));
105
105
  }
106
- }), Et = /* @__PURE__ */ u({
106
+ }), Nt = /* @__PURE__ */ u({
107
107
  __name: "IconButton",
108
108
  props: {
109
109
  color: {},
@@ -115,16 +115,30 @@ const jt = /* @__PURE__ */ u({
115
115
  asChild: { type: Boolean },
116
116
  as: {}
117
117
  },
118
- setup(l) {
119
- const t = $(l);
120
- return (o, s) => (d(), p(ae, _({ class: "ui-IconButton" }, a(t)), {
121
- default: i(() => [
118
+ setup(s) {
119
+ const t = $(s);
120
+ return (o, i) => (d(), h(ae, _({ class: "ui-IconButton" }, a(t)), {
121
+ default: l(() => [
122
122
  f(o.$slots, "default")
123
123
  ]),
124
124
  _: 3
125
125
  }, 16));
126
126
  }
127
- }), at = {
127
+ });
128
+ function w(s, e, t) {
129
+ const o = $(s), i = ve(e);
130
+ return z(() => ({
131
+ ...ot(o, t),
132
+ ...i
133
+ }));
134
+ }
135
+ function ot(s, e) {
136
+ const t = {};
137
+ return Object.keys(s).forEach((o) => {
138
+ e.indexOf(o) !== -1 && (t[o] = s[o]);
139
+ }), t;
140
+ }
141
+ const st = {
128
142
  key: 0,
129
143
  xmlns: "http://www.w3.org/2000/svg",
130
144
  viewBox: "0 0 24 24",
@@ -133,10 +147,10 @@ const jt = /* @__PURE__ */ u({
133
147
  "stroke-width": "4",
134
148
  "stroke-linecap": "round",
135
149
  "stroke-linejoin": "round"
136
- }, ot = {
150
+ }, it = {
137
151
  key: 0,
138
152
  d: "M5 12h14"
139
- }, st = {
153
+ }, lt = {
140
154
  key: 1,
141
155
  d: "M20 6 9 17l-5-5"
142
156
  }, oe = /* @__PURE__ */ u({
@@ -146,7 +160,7 @@ const jt = /* @__PURE__ */ u({
146
160
  color: {},
147
161
  variant: { default: "surface" },
148
162
  size: { default: "2" },
149
- highContrast: { type: Boolean, default: void 0 },
163
+ highContrast: { type: Boolean },
150
164
  defaultChecked: { type: Boolean },
151
165
  checked: { type: [Boolean, String] },
152
166
  disabled: { type: Boolean },
@@ -158,30 +172,26 @@ const jt = /* @__PURE__ */ u({
158
172
  as: {}
159
173
  },
160
174
  emits: ["update:checked"],
161
- setup(l, { emit: e }) {
162
- const t = e, o = l, s = w(o, t);
163
- return (n, r) => (d(), p(a(ve), _({
175
+ setup(s, { emit: e }) {
176
+ const t = e, o = s, i = w(o, t, ["color", "size", "variant", "highContrast"]);
177
+ return (n, r) => (d(), h(a(ge), _({
164
178
  ...n.$attrs,
165
- ...a(s),
166
- size: void 0,
167
- color: void 0,
168
- variant: void 0,
169
- highContrast: void 0
179
+ ...a(i)
170
180
  }, {
171
181
  class: "ui-Checkbox",
172
182
  "data-variant": o.variant,
173
183
  "data-size": o.size,
174
- "data-accent-color": a(s).color,
175
- "data-high-contrast": a(s).highContrast
184
+ "data-accent-color": o.color,
185
+ "data-high-contrast": o.highContrast
176
186
  }), {
177
- default: i(() => [
178
- h(a(ge), {
187
+ default: l(() => [
188
+ p(a(ye), {
179
189
  class: "ui-CheckboxIndicator",
180
190
  "as-child": ""
181
191
  }, {
182
- default: i(() => [
183
- a(s).checked !== !1 ? (d(), b("svg", at, [
184
- a(s).checked === "indeterminate" ? (d(), b("path", ot)) : (d(), b("path", st))
192
+ default: l(() => [
193
+ a(i).checked !== !1 ? (d(), b("svg", st, [
194
+ a(i).checked === "indeterminate" ? (d(), b("path", it)) : (d(), b("path", lt))
185
195
  ])) : T("", !0)
186
196
  ]),
187
197
  _: 1
@@ -190,7 +200,7 @@ const jt = /* @__PURE__ */ u({
190
200
  _: 1
191
201
  }, 16, ["data-variant", "data-size", "data-accent-color", "data-high-contrast"]));
192
202
  }
193
- }), [se, lt] = j("ui_CheckboxGroupRoot"), Ut = /* @__PURE__ */ u({
203
+ }), [se, nt] = j("ui_CheckboxGroupRoot"), Qt = /* @__PURE__ */ u({
194
204
  __name: "CheckboxGroupRoot",
195
205
  props: {
196
206
  modelValue: {},
@@ -201,24 +211,24 @@ const jt = /* @__PURE__ */ u({
201
211
  as: {}
202
212
  },
203
213
  emits: ["update:modelValue"],
204
- setup(l, { emit: e }) {
205
- const t = l, o = e, { disabled: s, name: n } = L(t), r = W([]), c = D(t, "modelValue", o, {
214
+ setup(s, { emit: e }) {
215
+ const t = s, o = e, { disabled: i, name: n } = W(t), r = L([]), c = R(t, "modelValue", o, {
206
216
  defaultValue: t.defaultValue,
207
217
  passive: t.modelValue === void 0
208
- }), v = z(() => c.value || []), g = z(() => {
218
+ }), g = z(() => c.value || []), v = z(() => {
209
219
  var m, y;
210
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;
211
221
  }), S = (m) => {
212
- var A, q;
213
- const y = (A = c.value) == null ? void 0 : A.indexOf(m);
214
- y !== -1 && y !== void 0 && ((q = c.value) == null || q.splice(y, 1));
222
+ var x, E;
223
+ const y = (x = c.value) == null ? void 0 : x.indexOf(m);
224
+ y !== -1 && y !== void 0 && ((E = c.value) == null || E.splice(y, 1));
215
225
  };
216
- return lt({
217
- selected: v,
218
- checked: g,
226
+ return nt({
227
+ selected: g,
228
+ checked: v,
219
229
  addModelValue: (m) => {
220
- var y, A;
221
- ((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));
222
232
  },
223
233
  removeModelValue: S,
224
234
  toggleModelValue: (m) => {
@@ -230,19 +240,19 @@ const jt = /* @__PURE__ */ u({
230
240
  removeAllValue: (m) => {
231
241
  r.value.splice(r.value.indexOf(m), 1), S(m);
232
242
  },
233
- disabled: s,
243
+ disabled: i,
234
244
  name: n == null ? void 0 : n.value
235
- }), (m, y) => (d(), p(a(k), {
245
+ }), (m, y) => (d(), h(a(k), {
236
246
  as: t.as,
237
247
  "as-child": t.asChild
238
248
  }, {
239
- default: i(() => [
249
+ default: l(() => [
240
250
  f(m.$slots, "default")
241
251
  ]),
242
252
  _: 3
243
253
  }, 8, ["as", "as-child"]));
244
254
  }
245
- }), Kt = /* @__PURE__ */ u({
255
+ }), Xt = /* @__PURE__ */ u({
246
256
  inheritAttrs: !1,
247
257
  __name: "CheckboxGroupItem",
248
258
  props: {
@@ -260,10 +270,10 @@ const jt = /* @__PURE__ */ u({
260
270
  asChild: { type: Boolean },
261
271
  as: {}
262
272
  },
263
- setup(l) {
264
- const e = l, t = $(e);
273
+ setup(s) {
274
+ const e = s, t = $(e);
265
275
  B();
266
- const o = se(), s = z(() => {
276
+ const o = se(), i = z(() => {
267
277
  var c;
268
278
  return ((c = o.disabled) == null ? void 0 : c.value) || e.disabled;
269
279
  }), n = z(() => o.selected.value.indexOf(e.value) !== -1), r = (c) => {
@@ -273,15 +283,15 @@ const jt = /* @__PURE__ */ u({
273
283
  o.initAllValue(e.value);
274
284
  }), Q(() => {
275
285
  o.removeAllValue(e.value);
276
- }), (c, v) => (d(), p(oe, _({
286
+ }), (c, g) => (d(), h(oe, _({
277
287
  ...c.$attrs,
278
288
  ...a(t),
279
289
  name: e.name || a(o).name,
280
290
  checked: n.value,
281
- disabled: s.value
291
+ disabled: i.value
282
292
  }, { "onUpdate:checked": r }), null, 16));
283
293
  }
284
- }), Nt = /* @__PURE__ */ u({
294
+ }), Jt = /* @__PURE__ */ u({
285
295
  inheritAttrs: !1,
286
296
  __name: "CheckboxGroupControl",
287
297
  props: {
@@ -299,24 +309,24 @@ const jt = /* @__PURE__ */ u({
299
309
  asChild: { type: Boolean },
300
310
  as: {}
301
311
  },
302
- setup(l) {
303
- const e = l, t = $(e);
312
+ setup(s) {
313
+ const e = s, t = $(e);
304
314
  B();
305
- const o = se(), s = z(() => {
315
+ const o = se(), i = z(() => {
306
316
  var r;
307
317
  return ((r = o.disabled) == null ? void 0 : r.value) || e.disabled;
308
318
  }), n = z(() => o.checked.value);
309
- return (r, c) => (d(), p(oe, _({
319
+ return (r, c) => (d(), h(oe, _({
310
320
  ...r.$attrs,
311
321
  ...a(t),
312
322
  name: e.name || a(o).name,
313
323
  checked: n.value,
314
- disabled: s.value
324
+ disabled: i.value
315
325
  }, {
316
326
  "onUpdate:checked": a(o).toggleModelValue
317
327
  }), null, 16, ["onUpdate:checked"]));
318
328
  }
319
- }), it = /* @__PURE__ */ u({
329
+ }), rt = /* @__PURE__ */ u({
320
330
  __name: "Card",
321
331
  props: {
322
332
  variant: { default: "surface" },
@@ -325,9 +335,9 @@ const jt = /* @__PURE__ */ u({
325
335
  asChild: { type: Boolean },
326
336
  as: { default: "div" }
327
337
  },
328
- setup(l) {
329
- const e = l;
330
- return (t, o) => (d(), p(a(k), {
338
+ setup(s) {
339
+ const e = s;
340
+ return (t, o) => (d(), h(a(k), {
331
341
  class: "ui-Card",
332
342
  "as-child": e.asChild,
333
343
  as: e.as,
@@ -335,33 +345,33 @@ const jt = /* @__PURE__ */ u({
335
345
  "data-radius": e.radius,
336
346
  "data-size": e.size
337
347
  }, {
338
- default: i(() => [
348
+ default: l(() => [
339
349
  f(t.$slots, "default")
340
350
  ]),
341
351
  _: 3
342
352
  }, 8, ["as-child", "as", "data-variant", "data-radius", "data-size"]));
343
353
  }
344
- }), Qt = /* @__PURE__ */ u({
354
+ }), Yt = /* @__PURE__ */ u({
345
355
  __name: "CardHead",
346
356
  props: {
347
357
  color: {},
348
358
  asChild: { type: Boolean },
349
359
  as: { default: "div" }
350
360
  },
351
- setup(l) {
352
- const e = l;
353
- return (t, o) => (d(), p(a(k), {
361
+ setup(s) {
362
+ const e = s;
363
+ return (t, o) => (d(), h(a(k), {
354
364
  as: e.as,
355
365
  class: "ui-CardHead",
356
366
  "data-accent-color": e.color
357
367
  }, {
358
- default: i(() => [
368
+ default: l(() => [
359
369
  f(t.$slots, "default")
360
370
  ]),
361
371
  _: 3
362
372
  }, 8, ["as", "data-accent-color"]));
363
373
  }
364
- }), nt = ["data-accent-color", "data-variant", "data-size"], rt = ["id"], Xt = /* @__PURE__ */ u({
374
+ }), dt = ["data-accent-color", "data-variant", "data-size"], ct = ["id"], Zt = /* @__PURE__ */ u({
365
375
  __name: "ColorField",
366
376
  props: {
367
377
  id: {},
@@ -372,8 +382,8 @@ const jt = /* @__PURE__ */ u({
372
382
  radius: {}
373
383
  },
374
384
  emits: ["update:modelValue"],
375
- setup(l, { emit: e }) {
376
- const t = l, s = D(t, "modelValue", e, {
385
+ setup(s, { emit: e }) {
386
+ const t = s, i = R(t, "modelValue", e, {
377
387
  defaultValue: t.modelValue || "#000000",
378
388
  passive: t.modelValue === void 0
379
389
  });
@@ -385,25 +395,26 @@ const jt = /* @__PURE__ */ u({
385
395
  }, [
386
396
  V(C("input", {
387
397
  id: t.id,
388
- "onUpdate:modelValue": r[0] || (r[0] = (c) => x(s) ? s.value = c : null),
398
+ "onUpdate:modelValue": r[0] || (r[0] = (c) => D(i) ? i.value = c : null),
389
399
  class: "ui-ColorFieldInput",
390
400
  type: "color"
391
- }, null, 8, rt), [
392
- [F, a(s)]
401
+ }, null, 8, ct), [
402
+ [F, a(i)]
393
403
  ]),
394
404
  V(C("input", {
395
- "onUpdate:modelValue": r[1] || (r[1] = (c) => x(s) ? s.value = c : null),
405
+ "onUpdate:modelValue": r[1] || (r[1] = (c) => D(i) ? i.value = c : null),
396
406
  class: "ui-TextFieldInput",
397
407
  type: "text",
398
408
  pattern: "^#[0-9a-f]{6}$"
399
409
  }, null, 512), [
400
- [F, a(s)]
410
+ [F, a(i)]
401
411
  ])
402
- ], 8, nt));
412
+ ], 8, dt));
403
413
  }
404
- }), dt = { class: "ui-DialogScroll" }, ct = ["data-align"], Jt = /* @__PURE__ */ u({
414
+ }), ut = { class: "ui-DialogScroll" }, pt = ["data-align"], ea = /* @__PURE__ */ u({
405
415
  __name: "AlertDialogContent",
406
416
  props: {
417
+ to: {},
407
418
  align: { default: "center" },
408
419
  class: {},
409
420
  size: { default: "3" },
@@ -420,54 +431,65 @@ const jt = /* @__PURE__ */ u({
420
431
  as: {}
421
432
  },
422
433
  emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
423
- setup(l, { emit: e }) {
424
- const t = l, s = w(t, e);
425
- return (n, r) => (d(), p(a(ye), null, {
426
- default: i(() => [
427
- h(a(Ce), { class: "ui-DialogOverlay" }, {
428
- default: i(() => [
429
- C("div", dt, [
434
+ setup(s, { emit: e }) {
435
+ const t = s, i = w(t, e, [
436
+ "to",
437
+ "align",
438
+ "class",
439
+ "size",
440
+ "width",
441
+ "minWidth",
442
+ "maxWidth",
443
+ "height",
444
+ "minHeight",
445
+ "maxHeight"
446
+ ]);
447
+ return (n, r) => (d(), h(a(Ce), {
448
+ to: t.to
449
+ }, {
450
+ default: l(() => [
451
+ p(a(be), { class: "ui-DialogOverlay" }, {
452
+ default: l(() => [
453
+ C("div", ut, [
430
454
  C("div", {
431
455
  class: "ui-DialogScrollPadding",
432
456
  "data-align": t.align
433
457
  }, [
434
- h(a(be), _({
458
+ p(a(ze), _({
435
459
  class: ["ui-DialogContent", t.class],
436
460
  "data-size": t.size
437
461
  }, {
438
462
  ...n.$attrs,
439
- ...a(s),
440
- size: void 0,
441
- align: void 0,
442
- maxWidth: void 0
463
+ ...a(i)
443
464
  }, {
444
465
  style: {
445
- width: a(s).width,
446
- height: a(s).height,
447
- minWidth: a(s).minWidth,
448
- maxWidth: a(s).maxWidth,
449
- minHeight: a(s).minHeight,
450
- maxHeight: a(s).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
451
472
  }
452
473
  }), {
453
- default: i(() => [
474
+ default: l(() => [
454
475
  f(n.$slots, "default")
455
476
  ]),
456
477
  _: 3
457
478
  }, 16, ["class", "data-size", "style"])
458
- ], 8, ct)
479
+ ], 8, pt)
459
480
  ])
460
481
  ]),
461
482
  _: 3
462
483
  })
463
484
  ]),
464
485
  _: 3
465
- }));
486
+ }, 8, ["to"]));
466
487
  }
467
- }), ut = { class: "ui-DialogScroll" }, pt = ["data-align"], Yt = /* @__PURE__ */ u({
488
+ }), ht = { class: "ui-DialogScroll" }, ft = ["data-align"], ta = /* @__PURE__ */ u({
468
489
  inheritAttrs: !1,
469
490
  __name: "DialogContent",
470
491
  props: {
492
+ to: {},
471
493
  align: { default: "center" },
472
494
  class: {},
473
495
  size: { default: "3" },
@@ -484,93 +506,103 @@ const jt = /* @__PURE__ */ u({
484
506
  as: {}
485
507
  },
486
508
  emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
487
- setup(l, { emit: e }) {
488
- const t = l, s = w(t, e);
489
- return (n, r) => (d(), p(a(ze), null, {
490
- default: i(() => [
491
- h(a(Be), { class: "ui-DialogOverlay" }, {
492
- default: i(() => [
493
- C("div", ut, [
509
+ setup(s, { emit: e }) {
510
+ const t = s, i = w(t, e, [
511
+ "to",
512
+ "align",
513
+ "class",
514
+ "size",
515
+ "width",
516
+ "minWidth",
517
+ "maxWidth",
518
+ "height",
519
+ "minHeight",
520
+ "maxHeight"
521
+ ]);
522
+ return (n, r) => (d(), h(a(Be), {
523
+ to: t.to
524
+ }, {
525
+ default: l(() => [
526
+ p(a($e), { class: "ui-DialogOverlay" }, {
527
+ default: l(() => [
528
+ C("div", ht, [
494
529
  C("div", {
495
530
  class: "ui-DialogScrollPadding",
496
531
  "data-align": t.align
497
532
  }, [
498
- h(a($e), _({
533
+ p(a(we), _({
499
534
  class: ["ui-DialogContent", t.class],
500
535
  "data-size": t.size
501
536
  }, {
502
537
  ...n.$attrs,
503
- ...a(s),
504
- size: void 0,
505
- align: void 0,
506
- maxWidth: void 0
538
+ ...a(i)
507
539
  }, {
508
540
  style: {
509
- width: a(s).width,
510
- height: a(s).height,
511
- minWidth: a(s).minWidth,
512
- maxWidth: a(s).maxWidth,
513
- minHeight: a(s).minHeight,
514
- maxHeight: a(s).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
515
547
  }
516
548
  }), {
517
- default: i(() => [
549
+ default: l(() => [
518
550
  f(n.$slots, "default")
519
551
  ]),
520
552
  _: 3
521
553
  }, 16, ["class", "data-size", "style"])
522
- ], 8, pt)
554
+ ], 8, ft)
523
555
  ])
524
556
  ]),
525
557
  _: 3
526
558
  })
527
559
  ]),
528
560
  _: 3
529
- }));
561
+ }, 8, ["to"]));
530
562
  }
531
- }), ht = ["data-side", "data-clip"], ft = /* @__PURE__ */ u({
563
+ }), mt = ["data-side", "data-clip"], _t = /* @__PURE__ */ u({
532
564
  __name: "Inset",
533
565
  props: {
534
566
  side: { default: "all" },
535
567
  clip: { default: "border-box" }
536
568
  },
537
- setup(l) {
538
- const e = l;
569
+ setup(s) {
570
+ const e = s;
539
571
  return (t, o) => (d(), b("div", {
540
572
  class: "ui-Inset",
541
573
  "data-side": e.side,
542
574
  "data-clip": e.clip
543
575
  }, [
544
576
  f(t.$slots, "default")
545
- ], 8, ht));
577
+ ], 8, mt));
546
578
  }
547
- }), Zt = /* @__PURE__ */ u({
579
+ }), aa = /* @__PURE__ */ u({
548
580
  __name: "DialogHead",
549
581
  props: {
550
582
  title: {}
551
583
  },
552
- setup(l) {
553
- const e = l;
554
- return (t, o) => (d(), p(ft, {
584
+ setup(s) {
585
+ const e = s;
586
+ return (t, o) => (d(), h(_t, {
555
587
  class: "ui-DialogHead",
556
588
  side: "x"
557
589
  }, {
558
- default: i(() => [
559
- h(a(we), { class: "font-semibold" }, {
560
- default: i(() => [
590
+ default: l(() => [
591
+ p(a(Se), { class: "font-semibold" }, {
592
+ default: l(() => [
561
593
  K(O(e.title), 1)
562
594
  ]),
563
595
  _: 1
564
596
  }),
565
- h(ae, {
566
- as: a(Se),
597
+ p(ae, {
598
+ as: a(Te),
567
599
  variant: "ghost",
568
600
  color: "gray",
569
601
  radius: "full",
570
602
  style: { "--button-ghost-padding-x": "var(--space-1)" }
571
603
  }, {
572
- default: i(() => [
573
- h(a(R), { icon: "lucide:x" })
604
+ default: l(() => [
605
+ p(a(A), { icon: "lucide:x" })
574
606
  ]),
575
607
  _: 1
576
608
  }, 8, ["as"])
@@ -578,10 +610,11 @@ const jt = /* @__PURE__ */ u({
578
610
  _: 1
579
611
  }));
580
612
  }
581
- }), ea = /* @__PURE__ */ u({
613
+ }), oa = /* @__PURE__ */ u({
582
614
  inheritAttrs: !1,
583
615
  __name: "PopoverContent",
584
616
  props: {
617
+ to: {},
585
618
  size: { default: "2" },
586
619
  forceMount: { type: Boolean },
587
620
  trapFocus: { type: Boolean },
@@ -602,24 +635,26 @@ const jt = /* @__PURE__ */ u({
602
635
  disableOutsidePointerEvents: { type: Boolean }
603
636
  },
604
637
  emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
605
- setup(l, { emit: e }) {
606
- const t = l, s = w(t, e);
607
- return (n, r) => (d(), p(a(Te), null, {
608
- default: i(() => [
609
- h(a(ke), _({ ...n.$attrs, ...a(s), size: void 0 }, {
638
+ setup(s, { emit: e }) {
639
+ const t = s, i = w(t, e, ["to", "size"]);
640
+ return (n, r) => (d(), h(a(ke), {
641
+ to: t.to
642
+ }, {
643
+ default: l(() => [
644
+ p(a(Ae), _({ ...n.$attrs, ...a(i) }, {
610
645
  "data-size": t.size,
611
646
  class: "ui-PopoverContent"
612
647
  }), {
613
- default: i(() => [
648
+ default: l(() => [
614
649
  f(n.$slots, "default")
615
650
  ]),
616
651
  _: 3
617
652
  }, 16, ["data-size"])
618
653
  ]),
619
654
  _: 3
620
- }));
655
+ }, 8, ["to"]));
621
656
  }
622
- }), le = /* @__PURE__ */ u({
657
+ }), ie = /* @__PURE__ */ u({
623
658
  __name: "ScrollArea",
624
659
  props: {
625
660
  size: { default: "1" },
@@ -631,9 +666,9 @@ const jt = /* @__PURE__ */ u({
631
666
  asChild: { type: Boolean },
632
667
  as: {}
633
668
  },
634
- setup(l) {
635
- const e = l;
636
- return (t, o) => (d(), p(a(Y), {
669
+ setup(s) {
670
+ const e = s;
671
+ return (t, o) => (d(), h(a(Y), {
637
672
  class: "ui-ScrollArea",
638
673
  "as-child": e.asChild,
639
674
  dir: e.dir,
@@ -641,37 +676,37 @@ const jt = /* @__PURE__ */ u({
641
676
  type: e.type,
642
677
  "data-radius": e.radius
643
678
  }, {
644
- default: i(() => [
645
- h(a(Z), { class: "ui-ScrollAreaViewport" }, {
646
- default: i(() => [
679
+ default: l(() => [
680
+ p(a(Z), { class: "ui-ScrollAreaViewport" }, {
681
+ default: l(() => [
647
682
  f(t.$slots, "default")
648
683
  ]),
649
684
  _: 3
650
685
  }),
651
686
  o[0] || (o[0] = C("div", { class: "ui-ScrollAreaViewportFocusRing" }, null, -1)),
652
- e.scrollbars !== "horizontal" ? (d(), p(a(H), {
687
+ e.scrollbars !== "horizontal" ? (d(), h(a(H), {
653
688
  key: 0,
654
689
  class: "ui-ScrollAreaScrollbar",
655
690
  "data-size": e.size,
656
691
  orientation: "vertical"
657
692
  }, {
658
- default: i(() => [
659
- h(a(G), { class: "ui-ScrollAreaThumb" })
693
+ default: l(() => [
694
+ p(a(G), { class: "ui-ScrollAreaThumb" })
660
695
  ]),
661
696
  _: 1
662
697
  }, 8, ["data-size"])) : T("", !0),
663
- e.scrollbars !== "vertical" ? (d(), p(a(H), {
698
+ e.scrollbars !== "vertical" ? (d(), h(a(H), {
664
699
  key: 1,
665
700
  class: "ui-ScrollAreaScrollbar",
666
701
  "data-size": e.size,
667
702
  orientation: "horizontal"
668
703
  }, {
669
- default: i(() => [
670
- h(a(G), { class: "ui-ScrollAreaThumb" })
704
+ default: l(() => [
705
+ p(a(G), { class: "ui-ScrollAreaThumb" })
671
706
  ]),
672
707
  _: 1
673
708
  }, 8, ["data-size"])) : T("", !0),
674
- e.scrollbars === "both" ? (d(), p(a(Ae), {
709
+ e.scrollbars === "both" ? (d(), h(a(xe), {
675
710
  key: 2,
676
711
  "class-name": "ui-ScrollAreaCorner"
677
712
  })) : T("", !0)
@@ -679,10 +714,11 @@ const jt = /* @__PURE__ */ u({
679
714
  _: 3
680
715
  }, 8, ["as-child", "dir", "scroll-hide-delay", "type", "data-radius"]));
681
716
  }
682
- }), mt = { class: "ui-MenuViewport" }, [_t, vt] = j("ui_DropdownMenuContent"), ta = /* @__PURE__ */ u({
717
+ }), vt = { class: "ui-MenuViewport" }, [gt, yt] = j("ui_DropdownMenuContent"), sa = /* @__PURE__ */ u({
683
718
  inheritAttrs: !1,
684
719
  __name: "DropdownMenuContent",
685
720
  props: {
721
+ to: {},
686
722
  size: { default: "2" },
687
723
  variant: { default: "solid" },
688
724
  color: {},
@@ -705,27 +741,31 @@ const jt = /* @__PURE__ */ u({
705
741
  as: {}
706
742
  },
707
743
  emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
708
- setup(l, { emit: e }) {
709
- const t = l, s = w(t, e), { forwardRef: n } = B(), { size: r, variant: c, color: v, highContrast: g } = L(t);
710
- return vt({ size: r, variant: c, color: v, highContrast: g }), (S, m) => (d(), p(a(Ve), null, {
711
- default: i(() => [
712
- h(a(xe), _({
744
+ setup(s, { emit: e }) {
745
+ const t = s, i = w(t, e, [
746
+ "to",
747
+ "size",
748
+ "variant",
749
+ "color",
750
+ "highContrast"
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
+ to: t.to
754
+ }, {
755
+ default: l(() => [
756
+ p(a(De), _({
713
757
  ...S.$attrs,
714
- ...a(s),
715
- color: void 0,
716
- size: void 0,
717
- variant: void 0,
718
- highContrast: void 0
758
+ ...a(i)
719
759
  }, {
720
760
  ref: a(n),
721
761
  class: "ui-PopperContent ui-MenuContent",
722
762
  "data-accent-color": t.color,
723
763
  "data-size": t.size
724
764
  }), {
725
- default: i(() => [
726
- h(le, { type: "auto" }, {
727
- default: i(() => [
728
- C("div", mt, [
765
+ default: l(() => [
766
+ p(ie, { type: "auto" }, {
767
+ default: l(() => [
768
+ C("div", vt, [
729
769
  f(S.$slots, "default")
730
770
  ])
731
771
  ]),
@@ -736,9 +776,9 @@ const jt = /* @__PURE__ */ u({
736
776
  }, 16, ["data-accent-color", "data-size"])
737
777
  ]),
738
778
  _: 3
739
- }));
779
+ }, 8, ["to"]));
740
780
  }
741
- }), gt = ["textContent"], aa = /* @__PURE__ */ u({
781
+ }), Ct = ["textContent"], ia = /* @__PURE__ */ u({
742
782
  inheritAttrs: !1,
743
783
  __name: "DropdownMenuItem",
744
784
  props: {
@@ -750,32 +790,32 @@ const jt = /* @__PURE__ */ u({
750
790
  as: {}
751
791
  },
752
792
  emits: ["select"],
753
- setup(l, { emit: e }) {
754
- const t = l, s = w(t, e);
793
+ setup(s, { emit: e }) {
794
+ const t = s, i = w(t, e, ["color", "shortcut"]);
755
795
  B();
756
- const n = _t();
796
+ const n = gt();
757
797
  return (r, c) => {
758
- var v;
759
- return d(), p(a(De), _({
798
+ var g;
799
+ return d(), h(a(Re), _({
760
800
  class: "ui-MenuItem",
761
- "data-accent-color": a(s).color,
801
+ "data-accent-color": t.color,
762
802
  "data-size": a(n).size.value,
763
803
  "data-variant": a(n).variant.value,
764
- "data-high-contrast": ((v = a(n).highContrast) == null ? void 0 : v.value) || void 0
765
- }, { ...r.$attrs, ...a(s), color: void 0, shortcut: void 0 }), {
766
- default: i(() => [
804
+ "data-high-contrast": ((g = a(n).highContrast) == null ? void 0 : g.value) || void 0
805
+ }, { ...r.$attrs, ...a(i) }), {
806
+ default: l(() => [
767
807
  f(r.$slots, "default"),
768
808
  t.shortcut ? (d(), b("div", {
769
809
  key: 0,
770
810
  class: "ui-MenuShortcut",
771
811
  textContent: O(t.shortcut)
772
- }, null, 8, gt)) : T("", !0)
812
+ }, null, 8, Ct)) : T("", !0)
773
813
  ]),
774
814
  _: 3
775
815
  }, 16, ["data-accent-color", "data-size", "data-variant", "data-high-contrast"]);
776
816
  };
777
817
  }
778
- }), oa = /* @__PURE__ */ u({
818
+ }), la = /* @__PURE__ */ u({
779
819
  __name: "Separator",
780
820
  props: {
781
821
  as: { default: "span" },
@@ -783,9 +823,9 @@ const jt = /* @__PURE__ */ u({
783
823
  size: {},
784
824
  color: { default: "gray" }
785
825
  },
786
- setup(l) {
787
- const e = l;
788
- return (t, o) => (d(), p(a(k), {
826
+ setup(s) {
827
+ const e = s;
828
+ return (t, o) => (d(), h(a(k), {
789
829
  as: e.as,
790
830
  class: "ui-Separator",
791
831
  role: "separator",
@@ -794,31 +834,31 @@ const jt = /* @__PURE__ */ u({
794
834
  "aria-orientation": e.orientation
795
835
  }, null, 8, ["as", "data-accent-color", "data-size", "aria-orientation"]));
796
836
  }
797
- }), yt = /* @__PURE__ */ u({
837
+ }), bt = /* @__PURE__ */ u({
798
838
  __name: "Spinner",
799
- setup(l) {
800
- return (e, t) => (d(), p(a(R), {
839
+ setup(s) {
840
+ return (e, t) => (d(), h(a(A), {
801
841
  class: "ui-Spinner",
802
842
  icon: "lucide:loader-circle"
803
843
  }));
804
844
  }
805
- }), sa = /* @__PURE__ */ u({
845
+ }), na = /* @__PURE__ */ u({
806
846
  __name: "SavingIndicator",
807
847
  props: {
808
848
  status: {}
809
849
  },
810
- setup(l) {
811
- const e = l;
812
- return (t, o) => e.status === "saving" ? (d(), p(yt, {
850
+ setup(s) {
851
+ const e = s;
852
+ return (t, o) => e.status === "saving" ? (d(), h(bt, {
813
853
  key: 0,
814
854
  class: "ui-SavingIndicator _saving"
815
- })) : e.status === "saved" ? (d(), p(a(R), {
855
+ })) : e.status === "saved" ? (d(), h(a(A), {
816
856
  key: 1,
817
857
  class: "ui-SavingIndicator _saved",
818
858
  icon: "lucide:check-circle-2"
819
859
  })) : T("", !0);
820
860
  }
821
- }), la = /* @__PURE__ */ u({
861
+ }), ra = /* @__PURE__ */ u({
822
862
  inheritAttrs: !1,
823
863
  __name: "Switch",
824
864
  props: {
@@ -838,30 +878,32 @@ const jt = /* @__PURE__ */ u({
838
878
  as: {}
839
879
  },
840
880
  emits: ["update:checked"],
841
- setup(l, { emit: e }) {
842
- const t = e, o = l, s = w(o, t);
843
- return (n, r) => (d(), p(a(Re), _({
881
+ setup(s, { emit: e }) {
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), _({
844
890
  ...n.$attrs,
845
- ...a(s),
846
- size: void 0,
847
- color: void 0,
848
- variant: void 0,
849
- highContrast: void 0
891
+ ...a(i)
850
892
  }, {
851
893
  class: "ui-Switch",
852
894
  "data-variant": o.variant,
853
895
  "data-size": o.size,
854
- "data-accent-color": a(s).color,
855
- "data-radius": a(s).radius,
856
- "data-high-contrast": a(s).highContrast
896
+ "data-accent-color": o.color,
897
+ "data-radius": o.radius,
898
+ "data-high-contrast": o.highContrast
857
899
  }), {
858
- default: i(() => [
859
- h(a(Pe), { class: "ui-SwitchThumb" })
900
+ default: l(() => [
901
+ p(a(Ie), { class: "ui-SwitchThumb" })
860
902
  ]),
861
903
  _: 1
862
904
  }, 16, ["data-variant", "data-size", "data-accent-color", "data-radius", "data-high-contrast"]));
863
905
  }
864
- }), Ct = ["data-accent-color", "data-variant", "data-size", "data-high-contrast"], ia = /* @__PURE__ */ u({
906
+ }), zt = ["data-accent-color", "data-variant", "data-size", "data-high-contrast"], da = /* @__PURE__ */ u({
865
907
  inheritAttrs: !1,
866
908
  __name: "Radio",
867
909
  props: {
@@ -872,25 +914,25 @@ const jt = /* @__PURE__ */ u({
872
914
  highContrast: { type: Boolean }
873
915
  },
874
916
  emits: ["update:modelValue"],
875
- setup(l, { emit: e }) {
876
- const t = l, o = e, s = $(t), n = D(t, "modelValue", o, {
917
+ setup(s, { emit: e }) {
918
+ const t = s, i = R(t, "modelValue", e, {
877
919
  defaultValue: t.modelValue,
878
920
  passive: t.modelValue === void 0
879
921
  });
880
- return (r, c) => V((d(), b("input", _({
881
- "onUpdate:modelValue": c[0] || (c[0] = (v) => x(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),
882
924
  class: "ui-Radio",
883
925
  type: "radio"
884
- }, r.$attrs, {
926
+ }, n.$attrs, {
885
927
  "data-accent-color": t.color,
886
928
  "data-variant": t.variant,
887
929
  "data-size": t.size,
888
- "data-high-contrast": a(s).highContrast
889
- }), null, 16, Ct)), [
890
- [re, a(n)]
930
+ "data-high-contrast": t.highContrast
931
+ }), null, 16, zt)), [
932
+ [re, a(i)]
891
933
  ]);
892
934
  }
893
- }), [ie, bt] = j("ui_RadioGroupRoot"), na = /* @__PURE__ */ u({
935
+ }), [le, Bt] = j("ui_RadioGroupRoot"), ca = /* @__PURE__ */ u({
894
936
  inheritAttrs: !1,
895
937
  __name: "RadioGroupRoot",
896
938
  props: {
@@ -910,23 +952,19 @@ const jt = /* @__PURE__ */ u({
910
952
  as: {}
911
953
  },
912
954
  emits: ["update:modelValue"],
913
- setup(l, { emit: e }) {
914
- const t = e, o = l, s = w(o, t), { size: n, variant: r, color: c, highContrast: v } = L(o);
915
- return bt({ size: n, variant: r, color: c, highContrast: v }), (g, S) => (d(), p(a(ee), de(ce({
916
- ...g.$attrs,
917
- ...a(s),
918
- size: void 0,
919
- variant: void 0,
920
- color: void 0,
921
- highContrast: void 0
955
+ setup(s, { emit: e }) {
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,
959
+ ...a(i)
922
960
  })), {
923
- default: i(() => [
924
- f(g.$slots, "default")
961
+ default: l(() => [
962
+ f(v.$slots, "default")
925
963
  ]),
926
964
  _: 3
927
965
  }, 16));
928
966
  }
929
- }), ra = /* @__PURE__ */ u({
967
+ }), ua = /* @__PURE__ */ u({
930
968
  inheritAttrs: !1,
931
969
  __name: "RadioGroupItem",
932
970
  props: {
@@ -938,27 +976,27 @@ const jt = /* @__PURE__ */ u({
938
976
  asChild: { type: Boolean },
939
977
  as: {}
940
978
  },
941
- setup(l) {
942
- const t = $(l);
979
+ setup(s) {
980
+ const t = $(s);
943
981
  B();
944
- const o = ie();
945
- return (s, n) => {
982
+ const o = le();
983
+ return (i, n) => {
946
984
  var r, c;
947
- return d(), p(a(te), _({
985
+ return d(), h(a(te), _({
948
986
  class: "ui-Radio",
949
987
  "data-accent-color": (r = a(o).color) == null ? void 0 : r.value,
950
988
  "data-size": a(o).size.value,
951
989
  "data-variant": a(o).variant.value,
952
990
  "data-high-contrast": (c = a(o).highContrast) == null ? void 0 : c.value
953
- }, { ...s.$attrs, ...a(t) }), {
954
- default: i(() => [
955
- f(s.$slots, "default")
991
+ }, { ...i.$attrs, ...a(t) }), {
992
+ default: l(() => [
993
+ f(i.$slots, "default")
956
994
  ]),
957
995
  _: 3
958
996
  }, 16, ["data-accent-color", "data-size", "data-variant", "data-high-contrast"]);
959
997
  };
960
998
  }
961
- }), da = /* @__PURE__ */ u({
999
+ }), pa = /* @__PURE__ */ u({
962
1000
  inheritAttrs: !1,
963
1001
  __name: "RadioCardsItem",
964
1002
  props: {
@@ -970,25 +1008,25 @@ const jt = /* @__PURE__ */ u({
970
1008
  asChild: { type: Boolean },
971
1009
  as: {}
972
1010
  },
973
- setup(l) {
974
- const t = $(l);
1011
+ setup(s) {
1012
+ const t = $(s);
975
1013
  B();
976
- const o = ie();
977
- return (s, n) => {
1014
+ const o = le();
1015
+ return (i, n) => {
978
1016
  var r, c;
979
- return d(), p(a(te), _({
1017
+ return d(), h(a(te), _({
980
1018
  class: "ui-RadioCardsItem",
981
1019
  "data-accent-color": (r = a(o).color) == null ? void 0 : r.value,
982
1020
  "data-size": a(o).size.value,
983
1021
  "data-variant": a(o).variant.value,
984
1022
  "data-high-contrast": (c = a(o).highContrast) == null ? void 0 : c.value
985
- }, { ...s.$attrs, ...a(t), asChild: !1 }), {
986
- default: i(() => [
987
- h(it, {
1023
+ }, { ...i.$attrs, ...a(t), asChild: !1 }), {
1024
+ default: l(() => [
1025
+ p(rt, {
988
1026
  "as-child": a(t).asChild
989
1027
  }, {
990
- default: i(() => [
991
- f(s.$slots, "default")
1028
+ default: l(() => [
1029
+ f(i.$slots, "default")
992
1030
  ]),
993
1031
  _: 3
994
1032
  }, 8, ["as-child"])
@@ -997,15 +1035,15 @@ const jt = /* @__PURE__ */ u({
997
1035
  }, 16, ["data-accent-color", "data-size", "data-variant", "data-high-contrast"]);
998
1036
  };
999
1037
  }
1000
- }), zt = ["data-accent-color", "data-variant", "data-size"], Bt = ["id", "type"], $t = {
1038
+ }), $t = ["data-accent-color", "data-variant", "data-size"], wt = ["id", "type"], St = {
1001
1039
  key: 0,
1002
1040
  class: "ui-TextFieldSlot",
1003
1041
  "data-side": "left"
1004
- }, wt = {
1042
+ }, Tt = {
1005
1043
  key: 1,
1006
1044
  class: "ui-TextFieldSlot",
1007
1045
  "data-side": "right"
1008
- }, ca = /* @__PURE__ */ u({
1046
+ }, ha = /* @__PURE__ */ u({
1009
1047
  inheritAttrs: !1,
1010
1048
  __name: "TextField",
1011
1049
  props: {
@@ -1019,45 +1057,45 @@ const jt = /* @__PURE__ */ u({
1019
1057
  type: { default: "text" }
1020
1058
  },
1021
1059
  emits: ["update:modelValue"],
1022
- setup(l, { emit: e }) {
1023
- const t = l, o = W(), s = (c) => {
1024
- const v = c.target;
1025
- if (v.closest("input, button, a")) return;
1026
- const g = o.value;
1027
- if (!g) return;
1028
- const m = v.closest("[data-side=right]") ? g.value.length : 0;
1060
+ setup(s, { emit: e }) {
1061
+ const t = s, o = L(), i = (c) => {
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;
1029
1067
  requestAnimationFrame(() => {
1030
- g.setSelectionRange(m, m), g.focus();
1068
+ v.setSelectionRange(m, m), v.focus();
1031
1069
  });
1032
- }, r = D(t, "modelValue", e, {
1070
+ }, r = R(t, "modelValue", e, {
1033
1071
  defaultValue: t.modelValue,
1034
1072
  passive: t.modelValue === void 0
1035
1073
  });
1036
- return (c, v) => (d(), b("div", {
1074
+ return (c, g) => (d(), b("div", {
1037
1075
  class: X(["ui-TextField", t.class]),
1038
1076
  "data-accent-color": t.color,
1039
1077
  "data-variant": t.variant,
1040
1078
  "data-size": t.size,
1041
- onPointerdown: s
1079
+ onPointerdown: i
1042
1080
  }, [
1043
1081
  V(C("input", _({
1044
1082
  id: t.id,
1045
1083
  ref_key: "inputRef",
1046
1084
  ref: o,
1047
- "onUpdate:modelValue": v[0] || (v[0] = (g) => x(r) ? r.value = g : null),
1085
+ "onUpdate:modelValue": g[0] || (g[0] = (v) => D(r) ? r.value = v : null),
1048
1086
  type: t.type
1049
- }, c.$attrs, { class: "ui-TextFieldInput" }), null, 16, Bt), [
1087
+ }, c.$attrs, { class: "ui-TextFieldInput" }), null, 16, wt), [
1050
1088
  [ue, a(r)]
1051
1089
  ]),
1052
- c.$slots.left ? (d(), b("div", $t, [
1090
+ c.$slots.left ? (d(), b("div", St, [
1053
1091
  f(c.$slots, "left")
1054
1092
  ])) : T("", !0),
1055
- c.$slots.right ? (d(), b("div", wt, [
1093
+ c.$slots.right ? (d(), b("div", Tt, [
1056
1094
  f(c.$slots, "right")
1057
1095
  ])) : T("", !0)
1058
- ], 42, zt));
1096
+ ], 42, $t));
1059
1097
  }
1060
- }), St = ["data-accent-color", "data-variant", "data-size", "data-resize"], ua = /* @__PURE__ */ u({
1098
+ }), kt = ["data-accent-color", "data-variant", "data-size", "data-resize"], fa = /* @__PURE__ */ u({
1061
1099
  inheritAttrs: !1,
1062
1100
  __name: "TextArea",
1063
1101
  props: {
@@ -1070,8 +1108,8 @@ const jt = /* @__PURE__ */ u({
1070
1108
  radius: {}
1071
1109
  },
1072
1110
  emits: ["update:modelValue"],
1073
- setup(l, { emit: e }) {
1074
- const t = l, s = D(t, "modelValue", e, {
1111
+ setup(s, { emit: e }) {
1112
+ const t = s, i = R(t, "modelValue", e, {
1075
1113
  defaultValue: t.modelValue,
1076
1114
  passive: t.modelValue === void 0
1077
1115
  });
@@ -1083,13 +1121,13 @@ const jt = /* @__PURE__ */ u({
1083
1121
  "data-resize": t.resize
1084
1122
  }, [
1085
1123
  V(C("textarea", _({
1086
- "onUpdate:modelValue": r[0] || (r[0] = (c) => x(s) ? s.value = c : null)
1124
+ "onUpdate:modelValue": r[0] || (r[0] = (c) => D(i) ? i.value = c : null)
1087
1125
  }, n.$attrs, { class: "ui-TextAreaInput" }), null, 16), [
1088
- [F, a(s)]
1126
+ [F, a(i)]
1089
1127
  ])
1090
- ], 10, St));
1128
+ ], 10, kt));
1091
1129
  }
1092
- }), pa = /* @__PURE__ */ u({
1130
+ }), ma = /* @__PURE__ */ u({
1093
1131
  inheritAttrs: !1,
1094
1132
  __name: "SelectRoot",
1095
1133
  props: {
@@ -1105,16 +1143,16 @@ const jt = /* @__PURE__ */ u({
1105
1143
  required: { type: Boolean }
1106
1144
  },
1107
1145
  emits: ["update:modelValue", "update:open"],
1108
- setup(l, { emit: e }) {
1109
- const t = l, s = w(t, e);
1110
- return pe("SelectRoot.size", z(() => t.size)), B(), (n, r) => (d(), p(a(Ie), _({ ...n.$attrs, ...a(s), size: void 0 }, { class: "ui-SelectItem" }), {
1111
- default: i(() => [
1146
+ setup(s, { emit: e }) {
1147
+ const t = s, i = w(t, e, ["size"]);
1148
+ return pe("SelectRoot.size", z(() => t.size)), B(), (n, r) => (d(), h(a(Oe), _({ ...n.$attrs, ...a(i) }, { class: "ui-SelectItem" }), {
1149
+ default: l(() => [
1112
1150
  f(n.$slots, "default")
1113
1151
  ]),
1114
1152
  _: 3
1115
1153
  }, 16));
1116
1154
  }
1117
- }), ha = /* @__PURE__ */ u({
1155
+ }), _a = /* @__PURE__ */ u({
1118
1156
  inheritAttrs: !1,
1119
1157
  __name: "SelectContent",
1120
1158
  props: {
@@ -1139,49 +1177,49 @@ const jt = /* @__PURE__ */ u({
1139
1177
  asChild: { type: Boolean },
1140
1178
  as: {}
1141
1179
  },
1142
- setup(l) {
1143
- const e = l, t = $(e), o = J("SelectRoot.size"), { forwardRef: s } = B();
1144
- return (n, r) => (d(), p(a(Oe), null, {
1145
- default: i(() => [
1146
- h(a(Me), _({
1180
+ setup(s) {
1181
+ const e = s, t = $(e), o = J("SelectRoot.size"), { forwardRef: i } = B();
1182
+ return (n, r) => (d(), h(a(Me), null, {
1183
+ default: l(() => [
1184
+ p(a(Fe), _({
1147
1185
  ...n.$attrs,
1148
1186
  ...a(t),
1149
1187
  color: void 0,
1150
1188
  variant: void 0,
1151
1189
  highContrast: void 0
1152
1190
  }, {
1153
- ref: a(s),
1191
+ ref: a(i),
1154
1192
  class: ["ui-SelectContent", { "ui-PopperContent": e.position === "popper" }],
1155
1193
  "data-variant": e.variant,
1156
1194
  "data-size": a(o),
1157
1195
  "data-accent-color": e.color,
1158
1196
  "data-high-contrast": e.highContrast
1159
1197
  }), {
1160
- default: i(() => [
1161
- h(a(Y), {
1198
+ default: l(() => [
1199
+ p(a(Y), {
1162
1200
  type: "auto",
1163
1201
  class: "ui-ScrollArea"
1164
1202
  }, {
1165
- default: i(() => [
1166
- h(a(Fe), {
1203
+ default: l(() => [
1204
+ p(a(He), {
1167
1205
  class: "ui-SelectViewport",
1168
1206
  "as-child": ""
1169
1207
  }, {
1170
- default: i(() => [
1171
- h(a(Z), { class: "ui-ScrollAreaViewport" }, {
1172
- default: i(() => [
1208
+ default: l(() => [
1209
+ p(a(Z), { class: "ui-ScrollAreaViewport" }, {
1210
+ default: l(() => [
1173
1211
  f(n.$slots, "default")
1174
1212
  ]),
1175
1213
  _: 3
1176
1214
  }),
1177
1215
  r[0] || (r[0] = C("div", { class: "ui-ScrollAreaViewportFocusRing" }, null, -1)),
1178
- h(a(H), {
1216
+ p(a(H), {
1179
1217
  class: "ui-ScrollAreaScrollbar",
1180
1218
  "data-size": 1,
1181
1219
  orientation: "vertical"
1182
1220
  }, {
1183
- default: i(() => [
1184
- h(a(G), { class: "ui-ScrollAreaThumb" })
1221
+ default: l(() => [
1222
+ p(a(G), { class: "ui-ScrollAreaThumb" })
1185
1223
  ]),
1186
1224
  _: 1
1187
1225
  })
@@ -1198,7 +1236,7 @@ const jt = /* @__PURE__ */ u({
1198
1236
  _: 3
1199
1237
  }));
1200
1238
  }
1201
- }), Tt = ["disabled", "data-variant", "data-accent-color", "data-radius", "data-size"], kt = { class: "ui-SelectTriggerInner" }, fa = /* @__PURE__ */ u({
1239
+ }), At = ["disabled", "data-variant", "data-accent-color", "data-radius", "data-size"], xt = { class: "ui-SelectTriggerInner" }, va = /* @__PURE__ */ u({
1202
1240
  inheritAttrs: !1,
1203
1241
  __name: "SelectTrigger",
1204
1242
  props: {
@@ -1210,10 +1248,10 @@ const jt = /* @__PURE__ */ u({
1210
1248
  asChild: { type: Boolean },
1211
1249
  as: {}
1212
1250
  },
1213
- setup(l) {
1214
- const e = l, t = J("SelectRoot.size");
1215
- return B(), (o, s) => (d(), p(a(He), { "as-child": "" }, {
1216
- default: i(() => [
1251
+ setup(s) {
1252
+ const e = s, t = J("SelectRoot.size");
1253
+ return B(), (o, i) => (d(), h(a(Ge), { "as-child": "" }, {
1254
+ default: l(() => [
1217
1255
  C("button", _({ class: "ui-SelectTrigger" }, o.$attrs, {
1218
1256
  disabled: e.disabled,
1219
1257
  "data-variant": e.variant,
@@ -1221,26 +1259,26 @@ const jt = /* @__PURE__ */ u({
1221
1259
  "data-radius": e.radius,
1222
1260
  "data-size": a(t)
1223
1261
  }), [
1224
- C("span", kt, [
1225
- h(a(Ge), {
1262
+ C("span", xt, [
1263
+ p(a(We), {
1226
1264
  placeholder: e.placeholder
1227
1265
  }, null, 8, ["placeholder"])
1228
1266
  ]),
1229
- h(a(Le), { "as-child": "" }, {
1230
- default: i(() => [
1231
- h(a(R), {
1267
+ p(a(Le), { "as-child": "" }, {
1268
+ default: l(() => [
1269
+ p(a(A), {
1232
1270
  class: "ui-SelectIcon",
1233
1271
  icon: "radix-icons:chevron-down"
1234
1272
  })
1235
1273
  ]),
1236
1274
  _: 1
1237
1275
  })
1238
- ], 16, Tt)
1276
+ ], 16, At)
1239
1277
  ]),
1240
1278
  _: 1
1241
1279
  }));
1242
1280
  }
1243
- }), ma = /* @__PURE__ */ u({
1281
+ }), ga = /* @__PURE__ */ u({
1244
1282
  inheritAttrs: !1,
1245
1283
  __name: "SelectItem",
1246
1284
  props: {
@@ -1250,18 +1288,18 @@ const jt = /* @__PURE__ */ u({
1250
1288
  asChild: { type: Boolean },
1251
1289
  as: {}
1252
1290
  },
1253
- setup(l) {
1254
- const t = $(l);
1255
- return B(), (o, s) => (d(), p(a(We), _({ class: "ui-SelectItem" }, { ...o.$attrs, ...a(t) }), {
1256
- default: i(() => [
1257
- h(a(je), { class: "ui-SelectItemIndicator" }, {
1258
- default: i(() => [
1259
- h(a(R), { icon: "radix-icons:check" })
1291
+ setup(s) {
1292
+ const t = $(s);
1293
+ return B(), (o, i) => (d(), h(a(je), _({ class: "ui-SelectItem" }, { ...o.$attrs, ...a(t) }), {
1294
+ default: l(() => [
1295
+ p(a(Ee), { class: "ui-SelectItemIndicator" }, {
1296
+ default: l(() => [
1297
+ p(a(A), { icon: "radix-icons:check" })
1260
1298
  ]),
1261
1299
  _: 1
1262
1300
  }),
1263
- h(a(qe), null, {
1264
- default: i(() => [
1301
+ p(a(qe), null, {
1302
+ default: l(() => [
1265
1303
  f(o.$slots, "default")
1266
1304
  ]),
1267
1305
  _: 3
@@ -1270,7 +1308,7 @@ const jt = /* @__PURE__ */ u({
1270
1308
  _: 3
1271
1309
  }, 16));
1272
1310
  }
1273
- }), _a = /* @__PURE__ */ u({
1311
+ }), ya = /* @__PURE__ */ u({
1274
1312
  inheritAttrs: !1,
1275
1313
  __name: "SelectLabel",
1276
1314
  props: {
@@ -1278,57 +1316,58 @@ const jt = /* @__PURE__ */ u({
1278
1316
  asChild: { type: Boolean },
1279
1317
  as: {}
1280
1318
  },
1281
- setup(l) {
1282
- const t = $(l);
1283
- return B(), (o, s) => (d(), p(a(Ee), _({ class: "ui-SelectLabel" }, { ...o.$attrs, ...a(t) }), {
1284
- default: i(() => [
1319
+ setup(s) {
1320
+ const t = $(s);
1321
+ return B(), (o, i) => (d(), h(a(Ue), _({ class: "ui-SelectLabel" }, { ...o.$attrs, ...a(t) }), {
1322
+ default: l(() => [
1285
1323
  f(o.$slots, "default")
1286
1324
  ]),
1287
1325
  _: 3
1288
1326
  }, 16));
1289
1327
  }
1290
- }), At = (l, e) => {
1291
- const t = l.__vccOpts || l;
1292
- for (const [o, s] of e)
1293
- t[o] = s;
1328
+ }), Vt = (s, e) => {
1329
+ const t = s.__vccOpts || s;
1330
+ for (const [o, i] of e)
1331
+ t[o] = i;
1294
1332
  return t;
1295
- }, Vt = {}, xt = {
1333
+ }, Dt = {}, Rt = {
1296
1334
  class: "ui-SelectSeparator",
1297
1335
  "aria-hidden": "true"
1298
1336
  };
1299
- function Dt(l, e) {
1300
- return d(), b("div", xt);
1337
+ function Pt(s, e) {
1338
+ return d(), b("div", Rt);
1301
1339
  }
1302
- const va = /* @__PURE__ */ At(Vt, [["render", Dt]]), Rt = ["data-size", "data-variant"], Pt = ["data-layout"], ga = /* @__PURE__ */ u({
1340
+ const Ca = /* @__PURE__ */ Vt(Dt, [["render", Pt]]), It = ["data-size", "data-variant"], Ot = ["data-layout"], ba = /* @__PURE__ */ u({
1303
1341
  __name: "Table",
1304
1342
  props: {
1305
1343
  size: { default: "2" },
1306
1344
  variant: { default: "ghost" },
1307
1345
  layout: {}
1308
1346
  },
1309
- setup(l) {
1310
- const e = l;
1347
+ setup(s) {
1348
+ const e = s;
1311
1349
  return (t, o) => (d(), b("div", {
1312
1350
  class: "ui-Table",
1313
1351
  "data-size": e.size,
1314
1352
  "data-variant": e.variant
1315
1353
  }, [
1316
- h(le, null, {
1317
- default: i(() => [
1354
+ p(ie, null, {
1355
+ default: l(() => [
1318
1356
  C("table", {
1319
1357
  class: "ui-TableContent",
1320
1358
  "data-layout": e.layout
1321
1359
  }, [
1322
1360
  f(t.$slots, "default")
1323
- ], 8, Pt)
1361
+ ], 8, Ot)
1324
1362
  ]),
1325
1363
  _: 3
1326
1364
  })
1327
- ], 8, Rt));
1365
+ ], 8, It));
1328
1366
  }
1329
- }), It = ["textContent"], ya = /* @__PURE__ */ u({
1367
+ }), Mt = ["textContent"], za = /* @__PURE__ */ u({
1330
1368
  __name: "Tooltip",
1331
1369
  props: {
1370
+ to: {},
1332
1371
  content: {},
1333
1372
  delayDuration: {},
1334
1373
  skipDelayDuration: {},
@@ -1351,9 +1390,9 @@ const va = /* @__PURE__ */ At(Vt, [["render", Dt]]), Rt = ["data-size", "data-va
1351
1390
  sticky: {},
1352
1391
  hideWhenDetached: { type: Boolean }
1353
1392
  },
1354
- setup(l) {
1355
- const e = l;
1356
- return (t, o) => (d(), p(a(Ue), {
1393
+ setup(s) {
1394
+ const e = s;
1395
+ return (t, o) => (d(), h(a(Ke), {
1357
1396
  "delay-duration": e.delayDuration,
1358
1397
  "disable-closing-trigger": e.disableClosingTrigger,
1359
1398
  "disable-hoverable-content": e.disableHoverableContent,
@@ -1361,21 +1400,23 @@ const va = /* @__PURE__ */ At(Vt, [["render", Dt]]), Rt = ["data-size", "data-va
1361
1400
  "ignore-non-keyboard-focus": e.ignoreNonKeyboardFocus,
1362
1401
  "skip-delay-duration": e.skipDelayDuration
1363
1402
  }, {
1364
- default: i(() => [
1365
- h(a(Ke), null, {
1366
- default: i(() => [
1367
- h(a(Ne), {
1403
+ default: l(() => [
1404
+ p(a(Ne), null, {
1405
+ default: l(() => [
1406
+ p(a(Qe), {
1368
1407
  as: e.as,
1369
1408
  "as-child": e.asChild
1370
1409
  }, {
1371
- default: i(() => [
1410
+ default: l(() => [
1372
1411
  f(t.$slots, "default")
1373
1412
  ]),
1374
1413
  _: 3
1375
1414
  }, 8, ["as", "as-child"]),
1376
- h(a(Qe), null, {
1377
- default: i(() => [
1378
- h(a(Xe), {
1415
+ p(a(Xe), {
1416
+ to: e.to
1417
+ }, {
1418
+ default: l(() => [
1419
+ p(a(Je), {
1379
1420
  class: "ui-Tooltip",
1380
1421
  align: e.align,
1381
1422
  "align-offset": e.alignOffset,
@@ -1389,20 +1430,20 @@ const va = /* @__PURE__ */ At(Vt, [["render", Dt]]), Rt = ["data-size", "data-va
1389
1430
  "side-offset": e.sideOffset,
1390
1431
  sticky: e.sticky
1391
1432
  }, {
1392
- default: i(() => [
1433
+ default: l(() => [
1393
1434
  f(t.$slots, "content", {}, () => [
1394
1435
  C("p", {
1395
1436
  class: "ui-TooltipText",
1396
1437
  textContent: O(e.content)
1397
- }, null, 8, It)
1438
+ }, null, 8, Mt)
1398
1439
  ]),
1399
- h(a(Je), { class: "ui-TooltipArrow" })
1440
+ p(a(Ye), { class: "ui-TooltipArrow" })
1400
1441
  ]),
1401
1442
  _: 3
1402
1443
  }, 8, ["align", "align-offset", "aria-label", "arrow-padding", "avoid-collisions", "collision-boundary", "collision-padding", "hide-when-detached", "side", "side-offset", "sticky"])
1403
1444
  ]),
1404
1445
  _: 3
1405
- })
1446
+ }, 8, ["to"])
1406
1447
  ]),
1407
1448
  _: 3
1408
1449
  })
@@ -1410,7 +1451,7 @@ const va = /* @__PURE__ */ At(Vt, [["render", Dt]]), Rt = ["data-size", "data-va
1410
1451
  _: 3
1411
1452
  }, 8, ["delay-duration", "disable-closing-trigger", "disable-hoverable-content", "disabled", "ignore-non-keyboard-focus", "skip-delay-duration"]));
1412
1453
  }
1413
- }), Ca = /* @__PURE__ */ u({
1454
+ }), Ba = /* @__PURE__ */ u({
1414
1455
  __name: "TabsList",
1415
1456
  props: {
1416
1457
  size: { default: "2" },
@@ -1419,9 +1460,9 @@ const va = /* @__PURE__ */ At(Vt, [["render", Dt]]), Rt = ["data-size", "data-va
1419
1460
  color: {},
1420
1461
  highContrast: { type: Boolean }
1421
1462
  },
1422
- setup(l) {
1423
- const e = l;
1424
- return (t, o) => (d(), p(a(Ye), {
1463
+ setup(s) {
1464
+ const e = s;
1465
+ return (t, o) => (d(), h(a(Ze), {
1425
1466
  class: "ui-TabList",
1426
1467
  "data-accent-color": e.color,
1427
1468
  "data-size": e.size,
@@ -1429,13 +1470,13 @@ const va = /* @__PURE__ */ At(Vt, [["render", Dt]]), Rt = ["data-size", "data-va
1429
1470
  "data-justify": e.justify,
1430
1471
  "data-high-contrast": e.highContrast
1431
1472
  }, {
1432
- default: i(() => [
1473
+ default: l(() => [
1433
1474
  f(t.$slots, "default")
1434
1475
  ]),
1435
1476
  _: 3
1436
1477
  }, 8, ["data-accent-color", "data-size", "data-wrap", "data-justify", "data-high-contrast"]));
1437
1478
  }
1438
- }), Ot = { class: "ui-TabTriggerInner" }, Mt = { class: "ui-TabTriggerInnerHidden" }, ba = /* @__PURE__ */ u({
1479
+ }), Ft = { class: "ui-TabTriggerInner" }, Ht = { class: "ui-TabTriggerInnerHidden" }, $a = /* @__PURE__ */ u({
1439
1480
  inheritAttrs: !1,
1440
1481
  __name: "TabsTrigger",
1441
1482
  props: {
@@ -1444,21 +1485,21 @@ const va = /* @__PURE__ */ At(Vt, [["render", Dt]]), Rt = ["data-size", "data-va
1444
1485
  asChild: { type: Boolean },
1445
1486
  as: {}
1446
1487
  },
1447
- setup(l) {
1448
- const t = $(l);
1449
- return (o, s) => (d(), p(a(Ze), _({ ...o.$attrs, ...a(t) }, { class: "ui-TabTrigger" }), {
1450
- default: i(() => [
1451
- C("span", Ot, [
1488
+ setup(s) {
1489
+ const t = $(s);
1490
+ return (o, i) => (d(), h(a(et), _({ ...o.$attrs, ...a(t) }, { class: "ui-TabTrigger" }), {
1491
+ default: l(() => [
1492
+ C("span", Ft, [
1452
1493
  f(o.$slots, "default")
1453
1494
  ]),
1454
- C("span", Mt, [
1495
+ C("span", Ht, [
1455
1496
  f(o.$slots, "default")
1456
1497
  ])
1457
1498
  ]),
1458
1499
  _: 3
1459
1500
  }, 16));
1460
1501
  }
1461
- }), za = /* @__PURE__ */ u({
1502
+ }), wa = /* @__PURE__ */ u({
1462
1503
  inheritAttrs: !1,
1463
1504
  __name: "RadioTabsList",
1464
1505
  props: {
@@ -1475,25 +1516,25 @@ const va = /* @__PURE__ */ At(Vt, [["render", Dt]]), Rt = ["data-size", "data-va
1475
1516
  as: {}
1476
1517
  },
1477
1518
  emits: ["update:modelValue"],
1478
- setup(l, { emit: e }) {
1479
- const t = e, o = l, s = w(o, t);
1480
- return (n, r) => (d(), p(a(ee), _({
1519
+ setup(s, { emit: e }) {
1520
+ const t = e, o = s, i = w(o, t, ["size"]);
1521
+ return (n, r) => (d(), h(a(ee), _({
1481
1522
  ...n.$attrs,
1482
- ...a(s),
1523
+ ...a(i),
1483
1524
  size: void 0
1484
1525
  }, {
1485
1526
  class: "ui-RadioTabsList",
1486
1527
  "data-size": o.size
1487
1528
  }), {
1488
- default: i(() => [
1529
+ default: l(() => [
1489
1530
  f(n.$slots, "default")
1490
1531
  ]),
1491
1532
  _: 3
1492
1533
  }, 16, ["data-size"]));
1493
1534
  }
1494
- }), Ft = "https://challenges.cloudflare.com/turnstile/v0/api.js", E = "cfTurnstileOnLoad";
1535
+ }), Gt = "https://challenges.cloudflare.com/turnstile/v0/api.js", q = "cfTurnstileOnLoad";
1495
1536
  let P = typeof window < "u" && window.turnstile !== void 0 ? "ready" : "unloaded", M, I, U;
1496
- const Ba = /* @__PURE__ */ u({
1537
+ const Sa = /* @__PURE__ */ u({
1497
1538
  __name: "Turnstile",
1498
1539
  props: {
1499
1540
  sitekey: {},
@@ -1506,17 +1547,17 @@ const Ba = /* @__PURE__ */ u({
1506
1547
  renderOnMount: { type: Boolean, default: !0 }
1507
1548
  },
1508
1549
  emits: ["update:modelValue"],
1509
- setup(l, { emit: e }) {
1510
- const t = l, o = e, s = W(), n = () => {
1550
+ setup(s, { emit: e }) {
1551
+ const t = s, o = e, i = L(), n = () => {
1511
1552
  window.turnstile && (o("update:modelValue", ""), window.turnstile.reset());
1512
1553
  }, r = () => {
1513
1554
  I && (window.turnstile.remove(I), I = void 0);
1514
- }, c = (g) => {
1515
- o("update:modelValue", g), U = setTimeout(() => {
1555
+ }, c = (v) => {
1556
+ o("update:modelValue", v), U = setTimeout(() => {
1516
1557
  n();
1517
1558
  }, t.resetInterval);
1518
- }, v = () => {
1519
- I = window.turnstile.render(s.value, {
1559
+ }, g = () => {
1560
+ I = window.turnstile.render(i.value, {
1520
1561
  sitekey: t.sitekey,
1521
1562
  theme: t.theme,
1522
1563
  size: t.size,
@@ -1526,49 +1567,49 @@ const Ba = /* @__PURE__ */ u({
1526
1567
  });
1527
1568
  };
1528
1569
  return N(async () => {
1529
- const g = new Promise((m, y) => {
1570
+ const v = new Promise((m, y) => {
1530
1571
  M = { resolve: m, reject: y }, P === "ready" && m(void 0);
1531
1572
  });
1532
- window[E] = () => {
1573
+ window[q] = () => {
1533
1574
  M.resolve(), P = "ready";
1534
1575
  }, await (() => {
1535
1576
  if (P === "unloaded") {
1536
1577
  P = "loading";
1537
- const m = `${Ft}?onload=${E}&render=explicit`, y = document.createElement("script");
1578
+ const m = `${Gt}?onload=${q}&render=explicit`, y = document.createElement("script");
1538
1579
  y.src = m, y.async = !0, y.addEventListener("error", () => {
1539
1580
  M.reject("Failed to load Turnstile.");
1540
1581
  }), document.head.appendChild(y);
1541
1582
  }
1542
- return g;
1543
- })(), t.renderOnMount && v();
1583
+ return v;
1584
+ })(), t.renderOnMount && g();
1544
1585
  }), Q(() => {
1545
1586
  r(), clearTimeout(U);
1546
- }), (g, S) => (d(), b("div", {
1587
+ }), (v, S) => (d(), b("div", {
1547
1588
  ref_key: "element",
1548
- ref: s
1589
+ ref: i
1549
1590
  }, null, 512));
1550
1591
  }
1551
- }), $a = /* @__PURE__ */ u({
1592
+ }), Ta = /* @__PURE__ */ u({
1552
1593
  __name: "Quota",
1553
1594
  props: {
1554
1595
  percent: {},
1555
1596
  color: {}
1556
1597
  },
1557
- setup(l) {
1558
- const e = l, t = z(() => {
1559
- const s = `translateX(-${100 - e.percent}%)`;
1598
+ setup(s) {
1599
+ const e = s, t = z(() => {
1600
+ const i = `translateX(-${100 - e.percent}%)`;
1560
1601
  if (e.percent > 100)
1561
- return { transform: s, "background-color": "var(--red-a10)" };
1602
+ return { transform: i, "background-color": "var(--red-a10)" };
1562
1603
  let n = "a4";
1563
- return e.percent > 90 ? n = "a11" : e.percent > 66 ? n = "a9" : e.percent > 33 && (n = "a6"), { transform: s, "background-color": `var(--blue-${n})` };
1604
+ return e.percent > 90 ? n = "a11" : e.percent > 66 ? n = "a9" : e.percent > 33 && (n = "a6"), { transform: i, "background-color": `var(--blue-${n})` };
1564
1605
  }), o = z(() => e.percent > 100 ? 100 : e.percent < 0 ? 0 : e.percent);
1565
- return (s, n) => (d(), p(a(et), {
1606
+ return (i, n) => (d(), h(a(tt), {
1566
1607
  class: "ui-Quota",
1567
1608
  "model-value": o.value,
1568
1609
  "data-accent-color": e.color
1569
1610
  }, {
1570
- default: i(() => [
1571
- h(a(tt), {
1611
+ default: l(() => [
1612
+ p(a(at), {
1572
1613
  class: "ui-QuotaValue",
1573
1614
  style: he(t.value)
1574
1615
  }, null, 8, ["style"])
@@ -1576,72 +1617,94 @@ const Ba = /* @__PURE__ */ u({
1576
1617
  _: 1
1577
1618
  }, 8, ["model-value", "data-accent-color"]));
1578
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-variant": e.variant,
1633
+ "data-size": e.size,
1634
+ "data-accent-color": e.color
1635
+ }, [
1636
+ p(a(A), {
1637
+ icon: e.icon
1638
+ }, null, 8, ["icon"])
1639
+ ], 8, Wt));
1640
+ }
1579
1641
  });
1580
1642
  export {
1581
- Ta as AlertDialogAction,
1582
- ka as AlertDialogCancel,
1583
- Jt as AlertDialogContent,
1584
- Aa as AlertDialogDescription,
1585
- Va as AlertDialogRoot,
1586
- xa as AlertDialogTitle,
1587
- Da as AlertDialogTrigger,
1588
- jt as Avatar,
1589
- qt as Badge,
1643
+ Va as AlertDialogAction,
1644
+ Da as AlertDialogCancel,
1645
+ ea as AlertDialogContent,
1646
+ Ra as AlertDialogDescription,
1647
+ Pa as AlertDialogRoot,
1648
+ Ia as AlertDialogTitle,
1649
+ Oa as AlertDialogTrigger,
1650
+ Ut as Avatar,
1651
+ Kt as Badge,
1590
1652
  ae as Button,
1591
- it as Card,
1592
- Qt as CardHead,
1653
+ rt as Card,
1654
+ Yt as CardHead,
1593
1655
  oe as Checkbox,
1594
- Nt as CheckboxGroupControl,
1595
- Kt as CheckboxGroupItem,
1596
- Ut as CheckboxGroupRoot,
1597
- Xt as ColorField,
1598
- Ra as DialogClose,
1599
- Yt as DialogContent,
1600
- Pa as DialogDescription,
1601
- Zt as DialogHead,
1602
- Ia as DialogRoot,
1603
- Oa as DialogTitle,
1604
- Ma as DialogTrigger,
1605
- ta as DropdownMenuContent,
1606
- aa as DropdownMenuItem,
1607
- Fa as DropdownMenuRoot,
1608
- Ha as DropdownMenuTrigger,
1609
- Xa as Icon,
1610
- Et as IconButton,
1611
- ft as Inset,
1612
- Ga as PopoverAnchor,
1613
- La as PopoverArrow,
1614
- Wa as PopoverClose,
1615
- ea as PopoverContent,
1616
- ja as PopoverRoot,
1617
- qa as PopoverTrigger,
1618
- $a as Quota,
1619
- ia as Radio,
1620
- da as RadioCardsItem,
1621
- na as RadioCardsRoot,
1622
- ra as RadioGroupItem,
1623
- na as RadioGroupRoot,
1624
- Ea as RadioTabsItem,
1625
- za as RadioTabsList,
1626
- sa as SavingIndicator,
1627
- le as ScrollArea,
1628
- ha as SelectContent,
1629
- Ua as SelectGroup,
1630
- ma as SelectItem,
1631
- _a as SelectLabel,
1632
- pa as SelectRoot,
1633
- va as SelectSeparator,
1634
- fa as SelectTrigger,
1635
- oa as Separator,
1636
- yt as Spinner,
1637
- la as Switch,
1638
- ga as Table,
1639
- Ka as TabsContent,
1640
- Ca as TabsList,
1641
- Na as TabsRoot,
1642
- ba as TabsTrigger,
1643
- ua as TextArea,
1644
- ca as TextField,
1645
- ya as Tooltip,
1646
- Ba as Turnstile
1656
+ Jt as CheckboxGroupControl,
1657
+ Xt as CheckboxGroupItem,
1658
+ Qt as CheckboxGroupRoot,
1659
+ Zt as ColorField,
1660
+ Ma as DialogClose,
1661
+ ta as DialogContent,
1662
+ Fa as DialogDescription,
1663
+ aa as DialogHead,
1664
+ Ha as DialogRoot,
1665
+ Ga as DialogTitle,
1666
+ Wa as DialogTrigger,
1667
+ sa as DropdownMenuContent,
1668
+ ia as DropdownMenuItem,
1669
+ La as DropdownMenuRoot,
1670
+ ja as DropdownMenuTrigger,
1671
+ eo as Icon,
1672
+ Nt as IconButton,
1673
+ ka as IconCircle,
1674
+ _t as Inset,
1675
+ Ea as PopoverAnchor,
1676
+ qa as PopoverArrow,
1677
+ Ua as PopoverClose,
1678
+ oa as PopoverContent,
1679
+ Ka as PopoverRoot,
1680
+ Na as PopoverTrigger,
1681
+ Ta as Quota,
1682
+ da as Radio,
1683
+ pa as RadioCardsItem,
1684
+ ca as RadioCardsRoot,
1685
+ ua as RadioGroupItem,
1686
+ ca as RadioGroupRoot,
1687
+ Qa as RadioTabsItem,
1688
+ wa as RadioTabsList,
1689
+ na as SavingIndicator,
1690
+ ie as ScrollArea,
1691
+ _a as SelectContent,
1692
+ Xa as SelectGroup,
1693
+ ga as SelectItem,
1694
+ ya as SelectLabel,
1695
+ ma as SelectRoot,
1696
+ Ca as SelectSeparator,
1697
+ va as SelectTrigger,
1698
+ la as Separator,
1699
+ bt as Spinner,
1700
+ ra as Switch,
1701
+ ba as Table,
1702
+ Ja as TabsContent,
1703
+ Ba as TabsList,
1704
+ Ya as TabsRoot,
1705
+ $a as TabsTrigger,
1706
+ fa as TextArea,
1707
+ ha as TextField,
1708
+ za as Tooltip,
1709
+ Sa as Turnstile
1647
1710
  };