@typlog/ui 0.4.0 → 0.5.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,24 +1,24 @@
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 v, defineComponent as p, openBlock as d, createBlock as f, unref as a, normalizeClass as w, withCtx as n, createVNode as u, createTextVNode as ee, toDisplayString as E, renderSlot as h, mergeProps as _, createElementVNode as x, createCommentVNode as T, createElementBlock as B, toRefs as F, withDirectives as O, isRef as I, vModelRadio as he, ref as U, onMounted as te, onBeforeUnmount as ae, vModelDynamic as _e, vModelText as q, 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 oe, AvatarRoot as we, AvatarImage as Ve, AvatarFallback as Se, Primitive as k, ScrollAreaRoot as K, ScrollAreaViewport as N, ScrollAreaScrollbar as H, ScrollAreaThumb as W, 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 V, DropdownMenuPortal as Ge, DropdownMenuContent as Le, createContext as M, DropdownMenuItem as He, SwitchRoot as We, SwitchThumb as Ee, RadioGroupRoot as se, RadioGroupItem as le, 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 ne, ComboboxAnchor as it, TagsInputRoot as dt, TagsInputItem as ct, TagsInputItemText as ut, TagsInputItemDelete as pt, ComboboxInput as Z, TagsInputInput as ft, ComboboxTrigger as mt, ComboboxPortal as ht, ComboboxContent as _t, ComboboxViewport as gt, ComboboxItem as vt, ComboboxItemIndicator as yt, ComboboxLabel as Ct, TooltipProvider as bt, TooltipRoot as Bt, TooltipTrigger as xt, TooltipPortal as $t, TooltipContent as wt, TooltipArrow as Vt, TabsList as St, TabsTrigger as zt, ProgressRoot as Tt, ProgressIndicator as Rt } from "reka-ui";
3
+ import { AlertDialogAction as _o, AlertDialogCancel as go, AlertDialogDescription as vo, AlertDialogRoot as yo, AlertDialogTitle as Co, AlertDialogTrigger as bo, ComboboxEmpty as Bo, ComboboxGroup as xo, DialogClose as $o, DialogDescription as wo, DialogRoot as Vo, DialogTitle as So, DialogTrigger as zo, DropdownMenuRoot as To, DropdownMenuTrigger as Ro, PopoverClose as Io, PopoverRoot as ko, PopoverTrigger as Ao, RadioGroupItem as Do, SelectGroup as Po, TabsContent as Oo, TabsRoot as Fo } from "reka-ui";
4
+ import { Icon as z } from "@iconify/vue";
5
+ import { Icon as Go } from "@iconify/vue";
6
+ import { useVModel as A } from "@vueuse/core";
7
+ function R(s, e, t) {
8
+ const o = $(s), l = oe(e);
9
+ return v(() => ({
10
+ ...re(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 = oe(e), r = v(() => ({
16
+ ...re(o.value, t),
17
17
  ...l
18
- })), d = _(() => S(o.value, t));
19
- return [n, d];
18
+ })), i = v(() => S(o.value, t));
19
+ return [r, i];
20
20
  }
21
- function ne(s, e) {
21
+ function re(s, e) {
22
22
  const t = {};
23
23
  return Object.keys(s).forEach((o) => {
24
24
  e.indexOf(o) === -1 && (t[o] = s[o]);
@@ -29,17 +29,17 @@ const S = (s, e) => {
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-${J(o)}`) : l && t.push(`r-${J(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 J(s) {
37
+ return s.replace(/[A-Z]+(?![a-z])|[A-Z]/g, It);
38
38
  }
39
- function rt(s, e) {
39
+ function It(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 = v(() => S(e, ["size", "variant"])), o = v(() => e.fallback ? e.fallback : e.alt.split(/\s+/).map((l) => l[0]).slice(0, 2).join(""));
55
+ return (l, r) => (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
- default: r(() => [
61
- f(a(ge), {
60
+ default: n(() => [
61
+ u(a(Ve), {
62
62
  alt: e.alt,
63
63
  src: e.src || ""
64
64
  }, null, 8, ["alt", "src"]),
65
- f(a(ve), {
65
+ u(a(Se), {
66
66
  class: w(`r-count-${o.value.length}`)
67
67
  }, {
68
- default: r(() => [
69
- J(G(o.value), 1)
68
+ default: n(() => [
69
+ ee(E(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
+ }), xa = /* @__PURE__ */ p({
78
78
  __name: "Badge",
79
79
  props: {
80
80
  variant: { default: "soft" },
@@ -86,21 +86,21 @@ 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 = v(() => S(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,
94
94
  "data-accent-color": e.color,
95
95
  "data-radius": e.radius
96
96
  }, {
97
- default: r(() => [
97
+ default: n(() => [
98
98
  h(o.$slots, "default")
99
99
  ]),
100
100
  _: 3
101
101
  }, 8, ["class", "as", "as-child", "data-accent-color", "data-radius"]));
102
102
  }
103
- }), re = /* @__PURE__ */ u({
103
+ }), ie = /* @__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 = v(() => S(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,
@@ -122,13 +122,13 @@ const Zt = /* @__PURE__ */ u({
122
122
  "data-radius": e.radius,
123
123
  "data-disabled": e.disabled ? !0 : void 0
124
124
  }, {
125
- default: r(() => [
125
+ default: n(() => [
126
126
  h(o.$slots, "default")
127
127
  ]),
128
128
  _: 3
129
129
  }, 8, ["class", "as-child", "as", "data-accent-color", "data-radius", "data-disabled"]));
130
130
  }
131
- }), Xt = /* @__PURE__ */ u({
131
+ }), $a = /* @__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)), {
146
- default: r(() => [
144
+ const t = $(s);
145
+ return (o, l) => (d(), f(ie, _({ class: "ui-IconButton" }, a(t)), {
146
+ default: n(() => [
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
+ }), kt = /* @__PURE__ */ p({
330
153
  __name: "Card",
331
154
  props: {
332
155
  variant: { default: "surface" },
@@ -336,20 +159,20 @@ 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 = v(() => S(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,
344
167
  "data-radius": e.radius
345
168
  }, {
346
- default: r(() => [
169
+ default: n(() => [
347
170
  h(o.$slots, "default")
348
171
  ]),
349
172
  _: 3
350
173
  }, 8, ["class", "as-child", "as", "data-radius"]));
351
174
  }
352
- }), aa = /* @__PURE__ */ u({
175
+ }), wa = /* @__PURE__ */ p({
353
176
  __name: "CardHead",
354
177
  props: {
355
178
  color: {},
@@ -358,56 +181,136 @@ 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
365
188
  }, {
366
- default: r(() => [
189
+ default: n(() => [
367
190
  h(t.$slots, "default")
368
191
  ]),
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
+ }), de = /* @__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(K), {
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: n(() => [
218
+ u(a(N), { class: "ui-ScrollAreaViewport" }, {
219
+ default: n(() => [
220
+ h(t.$slots, "default")
221
+ ]),
222
+ _: 3
223
+ }),
224
+ o[0] || (o[0] = x("div", { class: "ui-ScrollAreaViewportFocusRing" }, null, -1)),
225
+ e.scrollbars !== "horizontal" ? (d(), f(a(H), {
226
+ key: 0,
227
+ class: "ui-ScrollAreaScrollbar",
228
+ "data-size": e.size,
229
+ orientation: "vertical"
230
+ }, {
231
+ default: n(() => [
232
+ u(a(W), { class: "ui-ScrollAreaThumb" })
233
+ ]),
234
+ _: 1
235
+ }, 8, ["data-size"])) : T("", !0),
236
+ e.scrollbars !== "vertical" ? (d(), f(a(H), {
237
+ key: 1,
238
+ class: "ui-ScrollAreaScrollbar",
239
+ "data-size": e.size,
240
+ orientation: "horizontal"
241
+ }, {
242
+ default: n(() => [
243
+ u(a(W), { 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
+ }), Va = /* @__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
+ }), At = ["data-side", "data-clip"], Dt = /* @__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(), B("div", {
282
+ class: "ui-Inset",
283
+ "data-side": e.side,
284
+ "data-clip": e.clip
285
+ }, [
286
+ h(t.$slots, "default")
287
+ ], 8, At));
288
+ }
289
+ }), Pt = /* @__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
+ }));
296
+ }
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(Pt, {
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);
409
312
  }
410
- }), mt = { class: "ui-DialogScroll" }, _t = ["data-align"], sa = /* @__PURE__ */ u({
313
+ }), Ot = { class: "ui-DialogScroll" }, Ft = ["data-align"], za = /* @__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 (r, i) => (d(), f(a(Te), {
445
348
  to: t.to
446
349
  }, {
447
- default: r(() => [
448
- f(a(Be), { class: "ui-DialogOverlay" }, {
449
- default: r(() => [
450
- B("div", mt, [
451
- B("div", {
350
+ default: n(() => [
351
+ u(a(Re), { class: "ui-DialogOverlay" }, {
352
+ default: n(() => [
353
+ x("div", Ot, [
354
+ x("div", {
452
355
  class: "ui-DialogScrollPadding",
453
356
  "data-align": t.align
454
357
  }, [
455
- f(a($e), g({
358
+ u(a(Ie), _({
456
359
  class: ["ui-DialogContent", t.class],
457
360
  "data-size": t.size
458
361
  }, {
459
- ...n.$attrs,
362
+ ...r.$attrs,
460
363
  ...a(l)
461
364
  }, {
462
365
  style: {
@@ -468,12 +371,12 @@ const Zt = /* @__PURE__ */ u({
468
371
  maxHeight: t.maxHeight
469
372
  }
470
373
  }), {
471
- default: r(() => [
472
- h(n.$slots, "default")
374
+ default: n(() => [
375
+ h(r.$slots, "default")
473
376
  ]),
474
377
  _: 3
475
378
  }, 16, ["class", "data-size", "style"])
476
- ], 8, _t)
379
+ ], 8, Ft)
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
+ }), Mt = { class: "ui-DialogScroll" }, Gt = ["data-align"], Ta = /* @__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 (r, i) => (d(), f(a(ke), {
520
423
  to: t.to
521
424
  }, {
522
- default: r(() => [
523
- f(a(ze), { class: "ui-DialogOverlay" }, {
524
- default: r(() => [
525
- B("div", gt, [
526
- B("div", {
425
+ default: n(() => [
426
+ u(a(Ae), { class: "ui-DialogOverlay" }, {
427
+ default: n(() => [
428
+ x("div", Mt, [
429
+ x("div", {
527
430
  class: "ui-DialogScrollPadding",
528
431
  "data-align": t.align
529
432
  }, [
530
- f(a(Se), g({
433
+ u(a(De), _({
531
434
  class: ["ui-DialogContent", t.class],
532
435
  "data-size": t.size
533
436
  }, {
534
- ...n.$attrs,
437
+ ...r.$attrs,
535
438
  ...a(l)
536
439
  }, {
537
440
  style: {
@@ -543,12 +446,12 @@ const Zt = /* @__PURE__ */ u({
543
446
  maxHeight: t.maxHeight
544
447
  }
545
448
  }), {
546
- default: r(() => [
547
- h(n.$slots, "default")
449
+ default: n(() => [
450
+ h(r.$slots, "default")
548
451
  ]),
549
452
  _: 3
550
453
  }, 16, ["class", "data-size", "style"])
551
- ], 8, vt)
454
+ ], 8, Gt)
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
+ }), Ra = /* @__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(Dt, {
584
471
  class: "ui-DialogHead",
585
472
  side: "x"
586
473
  }, {
587
- default: r(() => [
588
- f(a(xe), { class: "font-semibold" }, {
589
- default: r(() => [
590
- J(G(e.title), 1)
474
+ default: n(() => [
475
+ u(a(Pe), { class: "font-semibold" }, {
476
+ default: n(() => [
477
+ ee(E(e.title), 1)
591
478
  ]),
592
479
  _: 1
593
480
  }),
594
- f(re, {
595
- as: a(Ve),
481
+ u(ie, {
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
- default: r(() => [
602
- f(a(k), { icon: "lucide:x" })
488
+ default: n(() => [
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
+ }), Ia = /* @__PURE__ */ p({
611
498
  inheritAttrs: !1,
612
499
  __name: "PopoverContent",
613
500
  props: {
@@ -636,17 +523,17 @@ 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 (r, i) => (d(), f(a(Fe), {
641
528
  to: t.to
642
529
  }, {
643
- default: r(() => [
644
- f(a(De), g({ ...n.$attrs, ...a(l) }, {
530
+ default: n(() => [
531
+ u(a(Me), _({ ...r.$attrs, ...a(l) }, {
645
532
  "data-size": t.size,
646
533
  class: "ui-PopoverContent"
647
534
  }), {
648
- default: r(() => [
649
- h(n.$slots, "default")
535
+ default: n(() => [
536
+ h(r.$slots, "default")
650
537
  ]),
651
538
  _: 3
652
539
  }, 16, ["data-size"])
@@ -654,69 +541,9 @@ const Zt = /* @__PURE__ */ u({
654
541
  _: 3
655
542
  }, 8, ["to"]));
656
543
  }
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"]));
716
- }
717
- }), bt = { class: "ui-MenuViewport" }, [Bt, $t] = U("ui_DropdownMenuContent"), ia = /* @__PURE__ */ u({
718
- inheritAttrs: !1,
719
- __name: "DropdownMenuContent",
544
+ }), Lt = { class: "ui-MenuViewport" }, [Ht, Wt] = M("ui_DropdownMenuContent"), ka = /* @__PURE__ */ p({
545
+ inheritAttrs: !1,
546
+ __name: "DropdownMenuContent",
720
547
  props: {
721
548
  to: {},
722
549
  size: { default: "2" },
@@ -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: r } = V(), { size: i, variant: c, color: m, highContrast: y } = F(t);
582
+ return Wt({ size: i, variant: c, color: m, highContrast: y }), (b, g) => (d(), f(a(Ge), {
756
583
  to: t.to
757
584
  }, {
758
- default: r(() => [
759
- f(a(Re), g({
760
- ...$.$attrs,
585
+ default: n(() => [
586
+ u(a(Le), _({
587
+ ...b.$attrs,
761
588
  ...a(l)
762
589
  }, {
763
- ref: a(n),
590
+ ref: a(r),
764
591
  class: "ui-PopperContent ui-MenuContent",
765
592
  "data-accent-color": t.color,
766
593
  "data-size": t.size
767
594
  }), {
768
- default: r(() => [
769
- f(ce, { type: "auto" }, {
770
- default: r(() => [
771
- B("div", bt, [
772
- h($.$slots, "default")
595
+ default: n(() => [
596
+ u(de, { type: "auto" }, {
597
+ default: n(() => [
598
+ x("div", Lt, [
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
+ }), Et = ["textContent"], Aa = /* @__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
+ V();
625
+ const r = Ht();
626
+ return (i, c) => {
800
627
  var m;
801
- return i(), p(a(Ie), g({
628
+ return d(), f(a(He), _({
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(r).size.value,
632
+ "data-variant": a(r).variant.value,
633
+ "data-high-contrast": ((m = a(r).highContrast) == null ? void 0 : m.value) || void 0
807
634
  }, a(l)), {
808
- default: r(() => [
809
- h(d.$slots, "default"),
810
- t.shortcut ? (i(), b("div", {
635
+ default: n(() => [
636
+ h(i.$slots, "default"),
637
+ t.shortcut ? (d(), B("div", {
811
638
  key: 0,
812
639
  class: "ui-MenuShortcut",
813
- textContent: G(t.shortcut)
814
- }, null, 8, wt)) : V("", !0)
640
+ textContent: E(t.shortcut)
641
+ }, null, 8, Et)) : 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
+ }), Da = /* @__PURE__ */ p({
863
648
  __name: "Switch",
864
649
  props: {
865
650
  color: {},
@@ -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, r] = 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 (i, c) => (d(), f(a(We), _(a(l), {
675
+ class: ["ui-Switch", a(r)],
891
676
  "data-accent-color": o.color,
892
677
  "data-radius": o.radius
893
678
  }), {
894
- default: r(() => [
895
- f(a(Oe), { class: "ui-SwitchThumb" })
679
+ default: n(() => [
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
+ }), jt = ["data-accent-color"], Pa = /* @__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
+ }), r = v(() => S(t, ["size", "variant", "highContrast"]));
700
+ return (i, c) => O((d(), B("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", r.value]),
918
703
  type: "radio",
919
704
  "data-accent-color": t.color
920
- }, null, 10, St)), [
921
- [pe, a(l)]
705
+ }, null, 10, jt)), [
706
+ [he, a(l)]
922
707
  ]);
923
708
  }
924
- }), [ue, xt] = U("ui_RadioGroupRoot"), ha = /* @__PURE__ */ u({
709
+ }), [ce, qt] = M("ui_RadioGroupRoot"), Oa = /* @__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)), {
946
- default: r(() => [
947
- h(C.$slots, "default")
729
+ const t = e, o = s, l = R(o, t, ["color", "size", "variant", "highContrast"]), { size: r, variant: i, color: c, highContrast: m } = F(o);
730
+ return qt({ size: r, variant: i, color: c, highContrast: m }), (y, b) => (d(), f(a(se), _({ class: "ui-RadioGroupRoot" }, a(l)), {
731
+ default: n(() => [
732
+ h(y.$slots, "default")
948
733
  ]),
949
734
  _: 3
950
735
  }, 16));
951
736
  }
952
- }), Vt = { class: "ui-RadioGroupItem" }, ma = /* @__PURE__ */ u({
737
+ }), Ut = { class: "ui-RadioGroupItem" }, Fa = /* @__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 = ce(), l = v(() => {
750
+ var i;
751
+ const r = [
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 (i = o.highContrast) != null && i.value && r.push("r-high-contrast"), r;
971
756
  });
972
- return (n, d) => {
757
+ return (r, i) => {
973
758
  var c;
974
- return i(), b("label", Vt, [
975
- f(a(le), g({
759
+ return d(), B("label", Ut, [
760
+ u(a(le), _({
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(r.$slots, "default")
980
765
  ]);
981
766
  };
982
767
  }
983
- }), _a = /* @__PURE__ */ u({
768
+ }), Ma = /* @__PURE__ */ p({
984
769
  __name: "RadioCardsItem",
985
770
  props: {
986
771
  id: {},
@@ -992,23 +777,23 @@ const Zt = /* @__PURE__ */ u({
992
777
  required: { type: Boolean }
993
778
  },
994
779
  setup(s) {
995
- const t = z(s);
996
- x();
997
- const o = ue();
998
- return (l, n) => {
999
- var d, c;
1000
- return i(), p(a(le), g({
780
+ const t = $(s);
781
+ V();
782
+ const o = ce();
783
+ return (l, r) => {
784
+ var i, c;
785
+ return d(), f(a(le), _({
1001
786
  class: "ui-RadioCardsItem",
1002
- "data-accent-color": (d = a(o).color) == null ? void 0 : d.value,
787
+ "data-accent-color": (i = a(o).color) == null ? void 0 : i.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
- default: r(() => [
1008
- f(pt, {
792
+ default: n(() => [
793
+ u(kt, {
1009
794
  "as-child": a(t).asChild
1010
795
  }, {
1011
- default: r(() => [
796
+ default: n(() => [
1012
797
  h(l.$slots, "default")
1013
798
  ]),
1014
799
  _: 3
@@ -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
+ }), Kt = {
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
+ }, Nt = {
816
+ key: 0,
817
+ d: "M5 12h14"
818
+ }, Qt = {
819
+ key: 1,
820
+ d: "M20 6 9 17l-5-5"
821
+ }, ue = /* @__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] },
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, r] = D(o, t, ["color", "size", "variant", "highContrast"]);
841
+ return (i, c) => (d(), f(a(je), _(a(l), {
842
+ class: ["ui-Checkbox", a(r)],
843
+ "data-accent-color": o.color
844
+ }), {
845
+ default: n(() => [
846
+ u(a(qe), {
847
+ class: "ui-CheckboxIndicator",
848
+ "as-child": ""
849
+ }, {
850
+ default: n(() => [
851
+ a(l).checked !== !1 ? (d(), B("svg", Kt, [
852
+ a(l).checked === "indeterminate" ? (d(), B("path", Nt)) : (d(), B("path", Qt))
853
+ ])) : T("", !0)
854
+ ]),
855
+ _: 1
856
+ })
857
+ ]),
858
+ _: 1
859
+ }, 16, ["class", "data-accent-color"]));
860
+ }
861
+ }), [pe, Zt] = M("ui_CheckboxGroupRoot"), Ga = /* @__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: r } = F(t), i = U([]), c = A(t, "modelValue", o, {
874
+ defaultValue: t.defaultValue,
875
+ passive: t.modelValue === void 0
876
+ }), m = v(() => c.value || []), y = v(() => {
877
+ var g, C;
878
+ return i.value.length ? ((g = c.value) == null ? void 0 : g.length) === i.value.length ? !0 : (C = c.value) != null && C.length ? "indeterminate" : !1 : !1;
879
+ }), b = (g) => {
880
+ var P, Q;
881
+ const C = (P = c.value) == null ? void 0 : P.indexOf(g);
882
+ C !== -1 && C !== void 0 && ((Q = c.value) == null || Q.splice(C, 1));
883
+ };
884
+ return Zt({
885
+ selected: m,
886
+ checked: y,
887
+ addModelValue: (g) => {
888
+ var C, P;
889
+ ((C = c.value) == null ? void 0 : C.indexOf(g)) === -1 && ((P = c.value) == null || P.push(g));
890
+ },
891
+ removeModelValue: b,
892
+ toggleModelValue: (g) => {
893
+ g ? c.value = [...i.value] : c.value = [];
894
+ },
895
+ initAllValue: (g) => {
896
+ i.value.push(g);
897
+ },
898
+ removeAllValue: (g) => {
899
+ i.value.splice(i.value.indexOf(g), 1), b(g);
900
+ },
901
+ disabled: l,
902
+ name: r == null ? void 0 : r.value
903
+ }), (g, C) => (d(), f(a(k), {
904
+ as: t.as,
905
+ "as-child": t.asChild
906
+ }, {
907
+ default: n(() => [
908
+ h(g.$slots, "default")
909
+ ]),
910
+ _: 3
911
+ }, 8, ["as", "as-child"]));
912
+ }
913
+ }), La = /* @__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] },
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
+ V();
933
+ const o = pe(), l = v(() => {
934
+ var c;
935
+ return ((c = o.disabled) == null ? void 0 : c.value) || e.disabled;
936
+ }), r = v(() => o.selected.value.indexOf(e.value) !== -1), i = (c) => {
937
+ c ? o.addModelValue(e.value) : o.removeModelValue(e.value);
938
+ };
939
+ return te(() => {
940
+ o.initAllValue(e.value);
941
+ }), ae(() => {
942
+ o.removeAllValue(e.value);
943
+ }), (c, m) => (d(), f(ue, _({
944
+ ...a(t),
945
+ name: e.name || a(o).name,
946
+ checked: r.value,
947
+ disabled: l.value
948
+ }, { "onUpdate:checked": i }), null, 16));
949
+ }
950
+ }), Ha = /* @__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] },
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
+ V();
970
+ const o = pe(), l = v(() => {
971
+ var i;
972
+ return ((i = o.disabled) == null ? void 0 : i.value) || e.disabled;
973
+ }), r = v(() => o.checked.value);
974
+ return (i, c) => (d(), f(ue, _({
975
+ ...a(t),
976
+ name: e.name || a(o).name,
977
+ checked: r.value,
978
+ disabled: l.value
979
+ }, {
980
+ "onUpdate:checked": a(o).toggleModelValue
981
+ }), null, 16, ["onUpdate:checked"]));
982
+ }
983
+ }), Jt = ["data-radius", "data-accent-color"], Xt = ["id", "type"], Yt = {
1022
984
  key: 0,
1023
985
  class: "ui-TextFieldSlot",
1024
986
  "data-side": "left"
1025
- }, At = {
987
+ }, ea = {
1026
988
  key: 1,
1027
989
  class: "ui-TextFieldSlot",
1028
990
  "data-side": "right"
1029
- }, ga = /* @__PURE__ */ u({
991
+ }, Wa = /* @__PURE__ */ p({
1030
992
  inheritAttrs: !1,
1031
993
  __name: "TextField",
1032
994
  props: {
@@ -1041,80 +1003,217 @@ 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) => {
1045
- const C = m.target;
1046
- 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;
1006
+ const t = s, o = U(), l = (m) => {
1007
+ const y = m.target;
1008
+ if (y.closest("input, button, a")) return;
1009
+ const b = o.value;
1010
+ if (!b) return;
1011
+ const C = y.closest("[data-side=right]") ? b.value.length : 0;
1050
1012
  requestAnimationFrame(() => {
1051
- $.setSelectionRange(y, y), $.focus();
1013
+ b.setSelectionRange(C, C), b.focus();
1052
1014
  });
1053
- }, d = P(t, "modelValue", e, {
1015
+ }, i = A(t, "modelValue", e, {
1054
1016
  defaultValue: t.modelValue,
1055
1017
  passive: t.modelValue === void 0
1056
- }), c = _(() => {
1018
+ }), c = v(() => {
1057
1019
  const m = S(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, y) => (d(), B("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(x("input", _({
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": y[0] || (y[0] = (b) => I(i) ? i.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, Xt), [
1035
+ [_e, a(i)]
1073
1036
  ]),
1074
- m.$slots.left ? (i(), b("div", kt, [
1037
+ m.$slots.left ? (d(), B("div", Yt, [
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(), B("div", ea, [
1078
1041
  h(m.$slots, "right")
1079
- ])) : V("", !0)
1080
- ], 42, Tt));
1042
+ ])) : T("", !0)
1043
+ ], 42, Jt));
1044
+ }
1045
+ }), ta = ["data-accent-color"], Ea = /* @__PURE__ */ p({
1046
+ inheritAttrs: !1,
1047
+ __name: "TextArea",
1048
+ props: {
1049
+ class: {},
1050
+ modelValue: {},
1051
+ size: { default: "2" },
1052
+ variant: { default: "surface" },
1053
+ resize: {},
1054
+ color: {},
1055
+ radius: {}
1056
+ },
1057
+ emits: ["update:modelValue"],
1058
+ setup(s, { emit: e }) {
1059
+ const t = s, l = A(t, "modelValue", e, {
1060
+ defaultValue: t.modelValue,
1061
+ passive: t.modelValue === void 0
1062
+ }), r = v(() => {
1063
+ const i = S(t, ["size", "variant", "resize"]);
1064
+ return t.class && i.push(t.class), i;
1065
+ });
1066
+ return (i, c) => (d(), B("div", {
1067
+ class: w(["ui-TextArea", r.value]),
1068
+ "data-accent-color": t.color
1069
+ }, [
1070
+ O(x("textarea", _({
1071
+ "onUpdate:modelValue": c[0] || (c[0] = (m) => I(l) ? l.value = m : null)
1072
+ }, i.$attrs, { class: "ui-TextAreaInput" }), null, 16), [
1073
+ [q, a(l)]
1074
+ ])
1075
+ ], 10, ta));
1076
+ }
1077
+ }), aa = ["data-accent-color"], oa = ["id"], ja = /* @__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
+ }), r = v(() => S(t, ["size", "variant"]));
1093
+ return (i, c) => (d(), B("div", {
1094
+ class: w(["ui-TextField ui-ColorField", r.value]),
1095
+ "data-accent-color": t.color
1096
+ }, [
1097
+ O(x("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, oa), [
1103
+ [q, a(l)]
1104
+ ]),
1105
+ O(x("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
+ [q, a(l)]
1112
+ ])
1113
+ ], 10, aa));
1114
+ }
1115
+ }), qa = /* @__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 },
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, r] = D(o, t, [
1134
+ "color",
1135
+ "size",
1136
+ "variant",
1137
+ "highContrast",
1138
+ "radius"
1139
+ ]);
1140
+ return (i, c) => (d(), f(a(Ue), _(a(l), {
1141
+ class: ["ui-Toggle", a(r)],
1142
+ "data-accent-color": o.color,
1143
+ "data-radius": o.radius
1144
+ }), {
1145
+ default: n(() => [
1146
+ h(i.$slots, "default")
1147
+ ]),
1148
+ _: 3
1149
+ }, 16, ["class", "data-accent-color", "data-radius"]));
1150
+ }
1151
+ }), Ua = /* @__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, r] = D(o, t, [
1175
+ "color",
1176
+ "size",
1177
+ "variant",
1178
+ "highContrast",
1179
+ "radius"
1180
+ ]);
1181
+ return (i, c) => (d(), f(a(Ke), _(a(l), {
1182
+ class: ["ui-ToggleGroupRoot", a(r)],
1183
+ "data-accent-color": o.color,
1184
+ "data-radius": o.radius
1185
+ }), {
1186
+ default: n(() => [
1187
+ h(i.$slots, "default")
1188
+ ]),
1189
+ _: 3
1190
+ }, 16, ["class", "data-accent-color", "data-radius"]));
1081
1191
  }
1082
- }), Rt = ["data-accent-color"], va = /* @__PURE__ */ u({
1083
- inheritAttrs: !1,
1084
- __name: "TextArea",
1192
+ }), Ka = /* @__PURE__ */ p({
1193
+ __name: "ToggleGroupItem",
1085
1194
  props: {
1086
- class: {},
1087
- modelValue: {},
1088
- size: { default: "2" },
1089
- variant: { default: "surface" },
1090
- resize: {},
1091
- color: {},
1092
- radius: {}
1195
+ value: {},
1196
+ defaultValue: { type: Boolean },
1197
+ modelValue: { type: Boolean },
1198
+ disabled: { type: Boolean },
1199
+ asChild: { type: Boolean },
1200
+ as: {}
1093
1201
  },
1094
- emits: ["update:modelValue"],
1095
- setup(s, { emit: e }) {
1096
- const t = s, l = P(t, "modelValue", e, {
1097
- defaultValue: t.modelValue,
1098
- passive: t.modelValue === void 0
1099
- }), n = _(() => {
1100
- const d = S(t, ["size", "variant", "resize"]);
1101
- return t.class && d.push(t.class), d;
1102
- });
1103
- return (d, c) => (i(), b("div", {
1104
- class: w(["ui-TextArea", n.value]),
1105
- "data-accent-color": t.color
1106
- }, [
1107
- R(B("textarea", g({
1108
- "onUpdate:modelValue": c[0] || (c[0] = (m) => I(l) ? l.value = m : null)
1109
- }, d.$attrs, { class: "ui-TextAreaInput" }), null, 16), [
1110
- [L, a(l)]
1111
- ])
1112
- ], 10, Rt));
1202
+ setup(s) {
1203
+ const t = $(s);
1204
+ return (o, l) => (d(), f(a(Ne), _(a(t), { class: "ui-ToggleGroupItem" }), {
1205
+ default: n(() => [
1206
+ h(o.$slots, "default")
1207
+ ]),
1208
+ _: 3
1209
+ }, 16));
1113
1210
  }
1114
- }), ya = /* @__PURE__ */ u({
1211
+ }), [fe, sa] = M("ui_SelectRoot"), Na = /* @__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" }), {
1134
- default: r(() => [
1135
- h(n.$slots, "default")
1231
+ const t = s, o = e, { size: l, color: r, highContrast: i } = F(t), c = R(t, o, ["size", "color", "highContrast"]);
1232
+ return sa({
1233
+ size: l,
1234
+ color: r,
1235
+ highContrast: i
1236
+ }), (m, y) => (d(), f(a(Qe), ge(ve(a(c))), {
1237
+ default: n(() => [
1238
+ h(m.$slots, "default")
1136
1239
  ]),
1137
1240
  _: 3
1138
1241
  }, 16));
1139
1242
  }
1140
- }), Ca = /* @__PURE__ */ u({
1243
+ }), Qa = /* @__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, {
1171
- default: r(() => [
1172
- f(a(Ge), g({
1173
- ...n.$attrs,
1271
+ const e = s, t = $(e), { forwardRef: o } = V(), l = fe(), r = v(() => {
1272
+ const i = ["r-size-" + l.size.value, "r-variant-" + e.variant];
1273
+ return l.highContrast.value && i.push("r-high-contrast"), e.position === "popper" && i.push("ui-PopperContent"), i;
1274
+ });
1275
+ return (i, c) => (d(), f(a(Ze), {
1276
+ to: e.to
1277
+ }, {
1278
+ default: n(() => [
1279
+ u(a(Je), _({ ref: a(o) }, {
1280
+ ...i.$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", r.value],
1286
+ "data-accent-color": a(l).color.value
1185
1287
  }), {
1186
- default: r(() => [
1187
- f(a(ae), {
1288
+ default: n(() => [
1289
+ u(a(K), {
1188
1290
  type: "auto",
1189
1291
  class: "ui-ScrollArea"
1190
1292
  }, {
1191
- default: r(() => [
1192
- f(a(He), {
1293
+ default: n(() => [
1294
+ u(a(Xe), {
1193
1295
  class: "ui-SelectViewport",
1194
1296
  "as-child": ""
1195
1297
  }, {
1196
- default: r(() => [
1197
- f(a(oe), { class: "ui-ScrollAreaViewport" }, {
1198
- default: r(() => [
1199
- h(n.$slots, "default")
1298
+ default: n(() => [
1299
+ u(a(N), { class: "ui-ScrollAreaViewport" }, {
1300
+ default: n(() => [
1301
+ h(i.$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] = x("div", { class: "ui-ScrollAreaViewportFocusRing" }, null, -1)),
1306
+ u(a(H), {
1205
1307
  class: "ui-ScrollAreaScrollbar",
1206
1308
  "data-size": 1,
1207
1309
  orientation: "vertical"
1208
1310
  }, {
1209
- default: r(() => [
1210
- f(a(j), { class: "ui-ScrollAreaThumb" })
1311
+ default: n(() => [
1312
+ u(a(W), { 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
+ }), la = { class: "ui-SelectTriggerInner" }, Za = /* @__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 = fe(), o = v(() => [`r-variant-${e.variant}`, `r-size-${t.size.value}`]);
1342
+ return (l, r) => (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
- default: r(() => [
1248
- B("span", It, [
1249
- f(a(We), {
1348
+ default: n(() => [
1349
+ x("span", la, [
1350
+ u(a(et), {
1250
1351
  placeholder: e.placeholder
1251
1352
  }, null, 8, ["placeholder"])
1252
1353
  ]),
1253
- f(a(je), { "as-child": "" }, {
1254
- default: r(() => [
1255
- f(a(k), {
1354
+ u(a(tt), { "as-child": "" }, {
1355
+ default: n(() => [
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
+ }), Ja = /* @__PURE__ */ p({
1267
1368
  __name: "SelectItem",
1268
1369
  props: {
1269
1370
  value: {},
@@ -1273,17 +1374,17 @@ 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)), {
1278
- default: r(() => [
1279
- f(a(qe), { class: "ui-SelectItemIndicator" }, {
1280
- default: r(() => [
1281
- f(a(k), { icon: "radix-icons:check" })
1377
+ const t = $(s);
1378
+ return V(), (o, l) => (d(), f(a(at), _({ class: "ui-SelectItem" }, a(t)), {
1379
+ default: n(() => [
1380
+ u(a(ot), { class: "ui-SelectItemIndicator" }, {
1381
+ default: n(() => [
1382
+ u(a(z), { icon: "radix-icons:check" })
1282
1383
  ]),
1283
1384
  _: 1
1284
1385
  }),
1285
- f(a(Ue), null, {
1286
- default: r(() => [
1386
+ u(a(st), null, {
1387
+ default: n(() => [
1287
1388
  h(o.$slots, "default")
1288
1389
  ]),
1289
1390
  _: 3
@@ -1292,7 +1393,7 @@ const Zt = /* @__PURE__ */ u({
1292
1393
  _: 3
1293
1394
  }, 16));
1294
1395
  }
1295
- }), $a = /* @__PURE__ */ u({
1396
+ }), Xa = /* @__PURE__ */ p({
1296
1397
  __name: "SelectLabel",
1297
1398
  props: {
1298
1399
  for: {},
@@ -1300,27 +1401,286 @@ 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)), {
1305
- default: r(() => [
1404
+ const t = $(s);
1405
+ return V(), (o, l) => (d(), f(a(lt), _({ class: "ui-SelectLabel" }, a(t)), {
1406
+ default: n(() => [
1306
1407
  h(o.$slots, "default")
1307
1408
  ]),
1308
1409
  _: 3
1309
1410
  }, 16));
1310
1411
  }
1311
- }), Pt = (s, e) => {
1412
+ }), na = (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
+ }, ra = {}, ia = {
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 da(s, e) {
1422
+ return d(), B("div", ia);
1322
1423
  }
1323
- const wa = /* @__PURE__ */ Pt(Ot, [["render", Mt]]), Gt = ["data-size", "data-variant"], Ht = ["data-layout"], za = /* @__PURE__ */ u({
1424
+ const Ya = /* @__PURE__ */ na(ra, [["render", da]]), [me, ca] = M("ui_ComboboxRoot"), eo = /* @__PURE__ */ p({
1425
+ __name: "ComboboxRoot",
1426
+ props: {
1427
+ size: { default: "2" },
1428
+ color: {},
1429
+ highContrast: { type: Boolean },
1430
+ displayValue: {},
1431
+ open: { type: Boolean },
1432
+ defaultOpen: { type: Boolean },
1433
+ resetSearchTermOnBlur: { type: Boolean },
1434
+ ignoreFilter: { type: Boolean },
1435
+ modelValue: {},
1436
+ defaultValue: {},
1437
+ multiple: { type: Boolean },
1438
+ dir: {},
1439
+ disabled: { type: Boolean },
1440
+ highlightOnHover: { type: Boolean },
1441
+ by: {},
1442
+ asChild: { type: Boolean },
1443
+ as: {},
1444
+ name: {},
1445
+ required: { type: Boolean }
1446
+ },
1447
+ emits: ["update:modelValue", "highlight", "update:open"],
1448
+ setup(s, { emit: e }) {
1449
+ const t = s, o = e, { size: l, color: r, highContrast: i } = F(t), [c, m] = D(t, o, ["size", "color", "highContrast"]);
1450
+ return ca({
1451
+ size: l,
1452
+ color: r,
1453
+ highContrast: i,
1454
+ displayValue: t.displayValue
1455
+ }), (y, b) => (d(), f(a(nt), _({
1456
+ class: ["ui-ComboboxRoot", a(m)]
1457
+ }, a(c)), {
1458
+ default: n(() => [
1459
+ h(y.$slots, "default")
1460
+ ]),
1461
+ _: 3
1462
+ }, 16, ["class"]));
1463
+ }
1464
+ }), to = /* @__PURE__ */ p({
1465
+ inheritAttrs: !1,
1466
+ __name: "ComboboxInput",
1467
+ props: {
1468
+ variant: { default: "surface" },
1469
+ radius: {},
1470
+ placeholder: {},
1471
+ displayValue: {},
1472
+ modelValue: {},
1473
+ autoFocus: { type: Boolean },
1474
+ disabled: { type: Boolean },
1475
+ asChild: { type: Boolean },
1476
+ as: {}
1477
+ },
1478
+ emits: ["update:modelValue"],
1479
+ setup(s, { emit: e }) {
1480
+ const t = rt(), o = me(), l = s, r = e, i = ne(l, r), c = A(l, "modelValue", r, {
1481
+ passive: !0
1482
+ }), m = v(() => t.modelValue.value), y = (b) => o.displayValue ? o.displayValue(b) : b.toString();
1483
+ return ye(m, () => {
1484
+ c.value = "", t.filterState.search = "";
1485
+ }, { deep: !0 }), (b, g) => (d(), f(a(it), {
1486
+ class: w(["ui-ComboboxField", `r-variant-${b.variant}`]),
1487
+ "data-radius": b.radius,
1488
+ "data-multiple": a(t).multiple.value || void 0
1489
+ }, {
1490
+ default: n(() => [
1491
+ a(t).multiple.value ? (d(), f(a(dt), {
1492
+ key: 0,
1493
+ class: "ui-ComboboxTagsRoot",
1494
+ "model-value": m.value,
1495
+ displayValue: y,
1496
+ delimiter: ""
1497
+ }, {
1498
+ default: n(() => [
1499
+ (d(!0), B(Ce, null, be(m.value, (C) => (d(), f(a(ct), {
1500
+ class: "ui-ComboboxTagsItem",
1501
+ key: y(C),
1502
+ value: C
1503
+ }, {
1504
+ default: n(() => [
1505
+ u(a(ut)),
1506
+ u(a(pt), null, {
1507
+ default: n(() => [
1508
+ u(a(z), { icon: "lucide:x" })
1509
+ ]),
1510
+ _: 1
1511
+ })
1512
+ ]),
1513
+ _: 2
1514
+ }, 1032, ["value"]))), 128)),
1515
+ u(a(Z), _({ class: "ui-ComboboxInput" }, {
1516
+ ...b.$attrs,
1517
+ ...a(i),
1518
+ variant: void 0,
1519
+ radius: void 0
1520
+ }, {
1521
+ modelValue: a(c),
1522
+ "onUpdate:modelValue": g[1] || (g[1] = (C) => I(c) ? c.value = C : null),
1523
+ "as-child": ""
1524
+ }), {
1525
+ default: n(() => [
1526
+ u(a(ft), {
1527
+ onKeydown: g[0] || (g[0] = Be(xe(() => {
1528
+ }, ["prevent"]), ["enter"]))
1529
+ })
1530
+ ]),
1531
+ _: 1
1532
+ }, 16, ["modelValue"])
1533
+ ]),
1534
+ _: 1
1535
+ }, 8, ["model-value"])) : (d(), f(a(Z), _({
1536
+ key: 1,
1537
+ class: "ui-ComboboxInput"
1538
+ }, {
1539
+ ...b.$attrs,
1540
+ ...a(i),
1541
+ variant: void 0,
1542
+ radius: void 0
1543
+ }), null, 16)),
1544
+ u(a(mt), { class: "ui-ComboboxTrigger" }, {
1545
+ default: n(() => [
1546
+ u(a(z), { icon: "radix-icons:chevron-down" })
1547
+ ]),
1548
+ _: 1
1549
+ })
1550
+ ]),
1551
+ _: 1
1552
+ }, 8, ["class", "data-radius", "data-multiple"]));
1553
+ }
1554
+ }), ao = /* @__PURE__ */ p({
1555
+ inheritAttrs: !1,
1556
+ __name: "ComboboxContent",
1557
+ props: {
1558
+ to: {},
1559
+ variant: { default: "solid" },
1560
+ forceMount: { type: Boolean },
1561
+ position: { default: "popper" },
1562
+ bodyLock: { type: Boolean },
1563
+ side: {},
1564
+ sideOffset: {},
1565
+ align: {},
1566
+ alignOffset: {},
1567
+ avoidCollisions: { type: Boolean },
1568
+ collisionBoundary: {},
1569
+ collisionPadding: {},
1570
+ arrowPadding: {},
1571
+ sticky: {},
1572
+ hideWhenDetached: { type: Boolean },
1573
+ positionStrategy: {},
1574
+ updatePositionStrategy: {},
1575
+ disableUpdateOnLayoutShift: { type: Boolean },
1576
+ prioritizePosition: { type: Boolean },
1577
+ reference: {},
1578
+ asChild: { type: Boolean },
1579
+ as: {},
1580
+ disableOutsidePointerEvents: { type: Boolean }
1581
+ },
1582
+ emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside"],
1583
+ setup(s, { emit: e }) {
1584
+ const { forwardRef: t } = V(), o = s, r = ne(o, e), i = me(), c = v(() => {
1585
+ const m = ["r-size-" + i.size.value, "r-variant-" + o.variant];
1586
+ return i.highContrast.value && m.push("r-high-contrast"), m;
1587
+ });
1588
+ return (m, y) => (d(), f(a(ht), {
1589
+ to: o.to
1590
+ }, {
1591
+ default: n(() => [
1592
+ u(a(_t), _({ ref: a(t) }, {
1593
+ ...m.$attrs,
1594
+ ...a(r),
1595
+ position: "popper",
1596
+ to: void 0,
1597
+ variant: void 0
1598
+ }, {
1599
+ class: ["ui-ComboboxContent", c.value],
1600
+ "data-accent-color": a(i).color.value
1601
+ }), {
1602
+ default: n(() => [
1603
+ u(a(K), {
1604
+ type: "auto",
1605
+ class: "ui-ScrollArea"
1606
+ }, {
1607
+ default: n(() => [
1608
+ u(a(gt), {
1609
+ class: "ui-ComboboxViewport",
1610
+ "as-child": ""
1611
+ }, {
1612
+ default: n(() => [
1613
+ u(a(N), { class: "ui-ScrollAreaViewport" }, {
1614
+ default: n(() => [
1615
+ h(m.$slots, "default")
1616
+ ]),
1617
+ _: 3
1618
+ })
1619
+ ]),
1620
+ _: 3
1621
+ }),
1622
+ y[0] || (y[0] = x("div", { class: "ui-ScrollAreaViewportFocusRing" }, null, -1)),
1623
+ u(a(H), {
1624
+ class: "ui-ScrollAreaScrollbar",
1625
+ "data-size": 1,
1626
+ orientation: "vertical"
1627
+ }, {
1628
+ default: n(() => [
1629
+ u(a(W), { class: "ui-ScrollAreaThumb" })
1630
+ ]),
1631
+ _: 1
1632
+ })
1633
+ ]),
1634
+ _: 3
1635
+ })
1636
+ ]),
1637
+ _: 3
1638
+ }, 16, ["class", "data-accent-color"])
1639
+ ]),
1640
+ _: 3
1641
+ }, 8, ["to"]));
1642
+ }
1643
+ }), oo = /* @__PURE__ */ p({
1644
+ __name: "ComboboxItem",
1645
+ props: {
1646
+ textValue: {},
1647
+ value: {},
1648
+ disabled: { type: Boolean },
1649
+ asChild: { type: Boolean },
1650
+ as: {}
1651
+ },
1652
+ setup(s) {
1653
+ const t = $(s);
1654
+ return V(), (o, l) => (d(), f(a(vt), _({ class: "ui-ComboboxItem" }, a(t)), {
1655
+ default: n(() => [
1656
+ u(a(yt), { class: "ui-ComboboxItemIndicator" }, {
1657
+ default: n(() => [
1658
+ u(a(z), { icon: "radix-icons:check" })
1659
+ ]),
1660
+ _: 1
1661
+ }),
1662
+ h(o.$slots, "default")
1663
+ ]),
1664
+ _: 3
1665
+ }, 16));
1666
+ }
1667
+ }), so = /* @__PURE__ */ p({
1668
+ __name: "ComboboxLabel",
1669
+ props: {
1670
+ for: {},
1671
+ asChild: { type: Boolean },
1672
+ as: {}
1673
+ },
1674
+ setup(s) {
1675
+ const t = $(s);
1676
+ return V(), (o, l) => (d(), f(a(Ct), _({ class: "ui-ComboboxLabel" }, a(t)), {
1677
+ default: n(() => [
1678
+ h(o.$slots, "default")
1679
+ ]),
1680
+ _: 3
1681
+ }, 16));
1682
+ }
1683
+ }), ua = ["data-size", "data-variant"], pa = ["data-layout"], lo = /* @__PURE__ */ p({
1324
1684
  __name: "Table",
1325
1685
  props: {
1326
1686
  size: { default: "2" },
@@ -1329,25 +1689,25 @@ const wa = /* @__PURE__ */ Pt(Ot, [["render", Mt]]), Gt = ["data-size", "data-va
1329
1689
  },
1330
1690
  setup(s) {
1331
1691
  const e = s;
1332
- return (t, o) => (i(), b("div", {
1692
+ return (t, o) => (d(), B("div", {
1333
1693
  class: "ui-Table",
1334
1694
  "data-size": e.size,
1335
1695
  "data-variant": e.variant
1336
1696
  }, [
1337
- f(ce, null, {
1338
- default: r(() => [
1339
- B("table", {
1697
+ u(de, null, {
1698
+ default: n(() => [
1699
+ x("table", {
1340
1700
  class: "ui-TableContent",
1341
1701
  "data-layout": e.layout
1342
1702
  }, [
1343
1703
  h(t.$slots, "default")
1344
- ], 8, Ht)
1704
+ ], 8, pa)
1345
1705
  ]),
1346
1706
  _: 3
1347
1707
  })
1348
- ], 8, Gt));
1708
+ ], 8, ua));
1349
1709
  }
1350
- }), Lt = ["textContent"], Sa = /* @__PURE__ */ u({
1710
+ }), fa = ["textContent"], no = /* @__PURE__ */ p({
1351
1711
  __name: "Tooltip",
1352
1712
  props: {
1353
1713
  to: {},
@@ -1375,7 +1735,7 @@ const wa = /* @__PURE__ */ Pt(Ot, [["render", Mt]]), Gt = ["data-size", "data-va
1375
1735
  },
1376
1736
  setup(s) {
1377
1737
  const e = s;
1378
- return (t, o) => (i(), p(a(Ne), {
1738
+ return (t, o) => (d(), f(a(bt), {
1379
1739
  "delay-duration": e.delayDuration,
1380
1740
  "disable-closing-trigger": e.disableClosingTrigger,
1381
1741
  "disable-hoverable-content": e.disableHoverableContent,
@@ -1383,23 +1743,23 @@ const wa = /* @__PURE__ */ Pt(Ot, [["render", Mt]]), Gt = ["data-size", "data-va
1383
1743
  "ignore-non-keyboard-focus": e.ignoreNonKeyboardFocus,
1384
1744
  "skip-delay-duration": e.skipDelayDuration
1385
1745
  }, {
1386
- default: r(() => [
1387
- f(a(Qe), null, {
1388
- default: r(() => [
1389
- f(a(Ze), {
1746
+ default: n(() => [
1747
+ u(a(Bt), null, {
1748
+ default: n(() => [
1749
+ u(a(xt), {
1390
1750
  as: e.as,
1391
1751
  "as-child": e.asChild
1392
1752
  }, {
1393
- default: r(() => [
1753
+ default: n(() => [
1394
1754
  h(t.$slots, "default")
1395
1755
  ]),
1396
1756
  _: 3
1397
1757
  }, 8, ["as", "as-child"]),
1398
- f(a(Je), {
1758
+ u(a($t), {
1399
1759
  to: e.to
1400
1760
  }, {
1401
- default: r(() => [
1402
- f(a(Xe), {
1761
+ default: n(() => [
1762
+ u(a(wt), {
1403
1763
  class: "ui-Tooltip",
1404
1764
  align: e.align,
1405
1765
  "align-offset": e.alignOffset,
@@ -1413,14 +1773,14 @@ const wa = /* @__PURE__ */ Pt(Ot, [["render", Mt]]), Gt = ["data-size", "data-va
1413
1773
  "side-offset": e.sideOffset,
1414
1774
  sticky: e.sticky
1415
1775
  }, {
1416
- default: r(() => [
1776
+ default: n(() => [
1417
1777
  h(t.$slots, "content", {}, () => [
1418
- B("p", {
1778
+ x("p", {
1419
1779
  class: "ui-TooltipText",
1420
- textContent: G(e.content)
1421
- }, null, 8, Lt)
1780
+ textContent: E(e.content)
1781
+ }, null, 8, fa)
1422
1782
  ]),
1423
- f(a(Ye), { class: "ui-TooltipArrow" })
1783
+ u(a(Vt), { class: "ui-TooltipArrow" })
1424
1784
  ]),
1425
1785
  _: 3
1426
1786
  }, 8, ["align", "align-offset", "aria-label", "arrow-padding", "avoid-collisions", "collision-boundary", "collision-padding", "hide-when-detached", "side", "side-offset", "sticky"])
@@ -1434,7 +1794,7 @@ const wa = /* @__PURE__ */ Pt(Ot, [["render", Mt]]), Gt = ["data-size", "data-va
1434
1794
  _: 3
1435
1795
  }, 8, ["delay-duration", "disable-closing-trigger", "disable-hoverable-content", "disabled", "ignore-non-keyboard-focus", "skip-delay-duration"]));
1436
1796
  }
1437
- }), xa = /* @__PURE__ */ u({
1797
+ }), ro = /* @__PURE__ */ p({
1438
1798
  __name: "TabsList",
1439
1799
  props: {
1440
1800
  size: { default: "2" },
@@ -1445,7 +1805,7 @@ const wa = /* @__PURE__ */ Pt(Ot, [["render", Mt]]), Gt = ["data-size", "data-va
1445
1805
  },
1446
1806
  setup(s) {
1447
1807
  const e = s;
1448
- return (t, o) => (i(), p(a(et), {
1808
+ return (t, o) => (d(), f(a(St), {
1449
1809
  class: "ui-TabList",
1450
1810
  "data-accent-color": e.color,
1451
1811
  "data-size": e.size,
@@ -1453,13 +1813,13 @@ const wa = /* @__PURE__ */ Pt(Ot, [["render", Mt]]), Gt = ["data-size", "data-va
1453
1813
  "data-justify": e.justify,
1454
1814
  "data-high-contrast": e.highContrast
1455
1815
  }, {
1456
- default: r(() => [
1816
+ default: n(() => [
1457
1817
  h(t.$slots, "default")
1458
1818
  ]),
1459
1819
  _: 3
1460
1820
  }, 8, ["data-accent-color", "data-size", "data-wrap", "data-justify", "data-high-contrast"]));
1461
1821
  }
1462
- }), Wt = { class: "ui-TabTriggerInner" }, jt = { class: "ui-TabTriggerInnerHidden" }, Va = /* @__PURE__ */ u({
1822
+ }), ma = { class: "ui-TabTriggerInner" }, ha = { class: "ui-TabTriggerInnerHidden" }, io = /* @__PURE__ */ p({
1463
1823
  __name: "TabsTrigger",
1464
1824
  props: {
1465
1825
  value: {},
@@ -1468,20 +1828,20 @@ const wa = /* @__PURE__ */ Pt(Ot, [["render", Mt]]), Gt = ["data-size", "data-va
1468
1828
  as: {}
1469
1829
  },
1470
1830
  setup(s) {
1471
- const t = z(s);
1472
- return (o, l) => (i(), p(a(tt), g(a(t), { class: "ui-TabTrigger" }), {
1473
- default: r(() => [
1474
- B("span", Wt, [
1831
+ const t = $(s);
1832
+ return (o, l) => (d(), f(a(zt), _(a(t), { class: "ui-TabTrigger" }), {
1833
+ default: n(() => [
1834
+ x("span", ma, [
1475
1835
  h(o.$slots, "default")
1476
1836
  ]),
1477
- B("span", jt, [
1837
+ x("span", ha, [
1478
1838
  h(o.$slots, "default")
1479
1839
  ])
1480
1840
  ]),
1481
1841
  _: 3
1482
1842
  }, 16));
1483
1843
  }
1484
- }), Ta = /* @__PURE__ */ u({
1844
+ }), co = /* @__PURE__ */ p({
1485
1845
  __name: "RadioTabsList",
1486
1846
  props: {
1487
1847
  size: { default: "2" },
@@ -1498,19 +1858,19 @@ const wa = /* @__PURE__ */ Pt(Ot, [["render", Mt]]), Gt = ["data-size", "data-va
1498
1858
  },
1499
1859
  emits: ["update:modelValue"],
1500
1860
  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)]
1861
+ const t = e, o = s, [l, r] = D(o, t, ["size"]);
1862
+ return (i, c) => (d(), f(a(se), _(a(l), {
1863
+ class: ["ui-RadioTabsList", a(r)]
1504
1864
  }), {
1505
- default: r(() => [
1506
- h(d.$slots, "default")
1865
+ default: n(() => [
1866
+ h(i.$slots, "default")
1507
1867
  ]),
1508
1868
  _: 3
1509
1869
  }, 16, ["class"]));
1510
1870
  }
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({
1871
+ }), _a = "https://challenges.cloudflare.com/turnstile/v0/api.js", X = "cfTurnstileOnLoad";
1872
+ let G = typeof window < "u" && window.turnstile !== void 0 ? "ready" : "unloaded", j, L, Y;
1873
+ const uo = /* @__PURE__ */ p({
1514
1874
  __name: "Turnstile",
1515
1875
  props: {
1516
1876
  sitekey: {},
@@ -1524,16 +1884,16 @@ const Da = /* @__PURE__ */ u({
1524
1884
  },
1525
1885
  emits: ["update:modelValue"],
1526
1886
  setup(s, { emit: e }) {
1527
- const t = s, o = e, l = q(), n = () => {
1887
+ const t = s, o = e, l = U(), r = () => {
1528
1888
  window.turnstile && (o("update:modelValue", ""), window.turnstile.reset());
1529
- }, d = () => {
1530
- M && (window.turnstile.remove(M), M = void 0);
1531
- }, c = (C) => {
1532
- o("update:modelValue", C), Z = setTimeout(() => {
1533
- n();
1889
+ }, i = () => {
1890
+ L && (window.turnstile.remove(L), L = void 0);
1891
+ }, c = (y) => {
1892
+ o("update:modelValue", y), Y = setTimeout(() => {
1893
+ r();
1534
1894
  }, t.resetInterval);
1535
1895
  }, m = () => {
1536
- M = window.turnstile.render(l.value, {
1896
+ L = window.turnstile.render(l.value, {
1537
1897
  sitekey: t.sitekey,
1538
1898
  theme: t.theme,
1539
1899
  size: t.size,
@@ -1542,58 +1902,58 @@ const Da = /* @__PURE__ */ u({
1542
1902
  appearance: t.appearance
1543
1903
  });
1544
1904
  };
1545
- return X(async () => {
1546
- const C = new Promise((v, y) => {
1547
- H = { resolve: v, reject: y }, F === "ready" && v(void 0);
1905
+ return te(async () => {
1906
+ const y = new Promise((g, C) => {
1907
+ j = { resolve: g, reject: C }, G === "ready" && g(void 0);
1548
1908
  });
1549
- window[Q] = () => {
1550
- H.resolve(), F = "ready";
1909
+ window[X] = () => {
1910
+ j.resolve(), G = "ready";
1551
1911
  }, 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);
1912
+ if (G === "unloaded") {
1913
+ G = "loading";
1914
+ const g = `${_a}?onload=${X}&render=explicit`, C = document.createElement("script");
1915
+ C.src = g, C.async = !0, C.addEventListener("error", () => {
1916
+ j.reject("Failed to load Turnstile.");
1917
+ }), document.head.appendChild(C);
1558
1918
  }
1559
- return C;
1919
+ return y;
1560
1920
  })(), t.renderOnMount && m();
1561
- }), Y(() => {
1562
- d(), clearTimeout(Z);
1563
- }), (C, $) => (i(), b("div", {
1921
+ }), ae(() => {
1922
+ i(), clearTimeout(Y);
1923
+ }), (y, b) => (d(), B("div", {
1564
1924
  ref_key: "element",
1565
1925
  ref: l
1566
1926
  }, null, 512));
1567
1927
  }
1568
- }), ka = /* @__PURE__ */ u({
1928
+ }), po = /* @__PURE__ */ p({
1569
1929
  __name: "Quota",
1570
1930
  props: {
1571
1931
  percent: {},
1572
1932
  color: {}
1573
1933
  },
1574
1934
  setup(s) {
1575
- const e = s, t = _(() => {
1935
+ const e = s, t = v(() => {
1576
1936
  const l = `translateX(-${100 - e.percent}%)`;
1577
1937
  if (e.percent > 100)
1578
1938
  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), {
1939
+ let r = "a4";
1940
+ return e.percent > 90 ? r = "a11" : e.percent > 66 ? r = "a9" : e.percent > 33 && (r = "a6"), { transform: l, "background-color": `var(--blue-${r})` };
1941
+ }), o = v(() => e.percent > 100 ? 100 : e.percent < 0 ? 0 : e.percent);
1942
+ return (l, r) => (d(), f(a(Tt), {
1583
1943
  class: "ui-Quota",
1584
1944
  "model-value": o.value,
1585
1945
  "data-accent-color": e.color
1586
1946
  }, {
1587
- default: r(() => [
1588
- f(a(ot), {
1947
+ default: n(() => [
1948
+ u(a(Rt), {
1589
1949
  class: "ui-QuotaValue",
1590
- style: me(t.value)
1950
+ style: $e(t.value)
1591
1951
  }, null, 8, ["style"])
1592
1952
  ]),
1593
1953
  _: 1
1594
1954
  }, 8, ["model-value", "data-accent-color"]));
1595
1955
  }
1596
- }), qt = ["data-accent-color"], Aa = /* @__PURE__ */ u({
1956
+ }), ga = ["data-accent-color"], fo = /* @__PURE__ */ p({
1597
1957
  __name: "IconCircle",
1598
1958
  props: {
1599
1959
  color: {},
@@ -1602,183 +1962,92 @@ const Da = /* @__PURE__ */ u({
1602
1962
  icon: {}
1603
1963
  },
1604
1964
  setup(s) {
1605
- const e = s, t = _(() => S(e, ["size", "variant"]));
1606
- return (o, l) => (i(), b("span", {
1965
+ const e = s, t = v(() => S(e, ["size", "variant"]));
1966
+ return (o, l) => (d(), B("span", {
1607
1967
  class: w(["ui-IconCircle", t.value]),
1608
1968
  "data-radius": "full",
1609
1969
  "data-accent-color": e.color
1610
1970
  }, [
1611
- f(a(k), {
1971
+ u(a(z), {
1612
1972
  icon: e.icon
1613
1973
  }, 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));
1974
+ ], 10, ga));
1711
1975
  }
1712
1976
  });
1713
1977
  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,
1761
- ce as ScrollArea,
1762
- Ca as SelectContent,
1763
- oo as SelectGroup,
1764
- Ba as SelectItem,
1765
- $a as SelectLabel,
1766
- ya as SelectRoot,
1767
- wa as SelectSeparator,
1768
- ba as SelectTrigger,
1769
- ca as Separator,
1770
- zt as Spinner,
1771
- pa as Switch,
1772
- za as Table,
1773
- so as TabsContent,
1774
- xa as TabsList,
1775
- lo as TabsRoot,
1776
- Va as TabsTrigger,
1777
- va as TextArea,
1778
- ga as TextField,
1779
- Ra as Toggle,
1780
- Pa as ToggleGroupItem,
1781
- Ia as ToggleGroupRoot,
1782
- Sa as Tooltip,
1783
- Da as Turnstile
1978
+ _o as AlertDialogAction,
1979
+ go as AlertDialogCancel,
1980
+ za as AlertDialogContent,
1981
+ vo as AlertDialogDescription,
1982
+ yo as AlertDialogRoot,
1983
+ Co as AlertDialogTitle,
1984
+ bo as AlertDialogTrigger,
1985
+ Ba as Avatar,
1986
+ xa as Badge,
1987
+ ie as Button,
1988
+ kt as Card,
1989
+ wa as CardHead,
1990
+ ue as Checkbox,
1991
+ Ha as CheckboxGroupControl,
1992
+ La as CheckboxGroupItem,
1993
+ Ga as CheckboxGroupRoot,
1994
+ ja as ColorField,
1995
+ ao as ComboboxContent,
1996
+ Bo as ComboboxEmpty,
1997
+ xo as ComboboxGroup,
1998
+ to as ComboboxInput,
1999
+ oo as ComboboxItem,
2000
+ so as ComboboxLabel,
2001
+ eo as ComboboxRoot,
2002
+ $o as DialogClose,
2003
+ Ta as DialogContent,
2004
+ wo as DialogDescription,
2005
+ Ra as DialogHead,
2006
+ Vo as DialogRoot,
2007
+ So as DialogTitle,
2008
+ zo as DialogTrigger,
2009
+ ka as DropdownMenuContent,
2010
+ Aa as DropdownMenuItem,
2011
+ To as DropdownMenuRoot,
2012
+ Ro as DropdownMenuTrigger,
2013
+ Go as Icon,
2014
+ $a as IconButton,
2015
+ fo as IconCircle,
2016
+ Dt as Inset,
2017
+ Io as PopoverClose,
2018
+ Ia as PopoverContent,
2019
+ ko as PopoverRoot,
2020
+ Ao as PopoverTrigger,
2021
+ po as Quota,
2022
+ Pa as Radio,
2023
+ Ma as RadioCardsItem,
2024
+ Oa as RadioCardsRoot,
2025
+ Fa as RadioGroupItem,
2026
+ Oa as RadioGroupRoot,
2027
+ Do as RadioTabsItem,
2028
+ co as RadioTabsList,
2029
+ Sa as SavingIndicator,
2030
+ de as ScrollArea,
2031
+ Qa as SelectContent,
2032
+ Po as SelectGroup,
2033
+ Ja as SelectItem,
2034
+ Xa as SelectLabel,
2035
+ Na as SelectRoot,
2036
+ Ya as SelectSeparator,
2037
+ Za as SelectTrigger,
2038
+ Va as Separator,
2039
+ Pt as Spinner,
2040
+ Da as Switch,
2041
+ lo as Table,
2042
+ Oo as TabsContent,
2043
+ ro as TabsList,
2044
+ Fo as TabsRoot,
2045
+ io as TabsTrigger,
2046
+ Ea as TextArea,
2047
+ Wa as TextField,
2048
+ qa as Toggle,
2049
+ Ka as ToggleGroupItem,
2050
+ Ua as ToggleGroupRoot,
2051
+ no as Tooltip,
2052
+ uo as Turnstile
1784
2053
  };