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