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