@typlog/ui 0.4.1 → 0.5.1

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