@typlog/ui 0.5.4 → 0.6.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.
@@ -1,10 +1,9 @@
1
- import { ColorType, RadiusType } from './types';
1
+ import { RadiusType } from './types';
2
2
  export interface ColorFieldProps {
3
3
  id?: string;
4
4
  modelValue?: string;
5
+ variant?: 'solid' | 'outline';
5
6
  size?: '1' | '2' | '3';
6
- variant?: 'surface' | 'soft';
7
- color?: ColorType;
8
7
  radius?: RadiusType;
9
8
  }
10
9
  declare const _default: import('vue').DefineComponent<ColorFieldProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
@@ -12,7 +11,7 @@ declare const _default: import('vue').DefineComponent<ColorFieldProps, {}, {}, {
12
11
  }, string, import('vue').PublicProps, Readonly<ColorFieldProps> & Readonly<{
13
12
  "onUpdate:modelValue"?: ((args_0: string) => any) | undefined;
14
13
  }>, {
15
- variant: "surface" | "soft";
14
+ variant: "solid" | "outline";
16
15
  size: "1" | "2" | "3";
17
16
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
18
17
  export default _default;
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
- import { computed as v, defineComponent as p, openBlock as d, createBlock as f, unref as a, normalizeClass as w, withCtx as r, createVNode as u, createTextVNode as te, toDisplayString as M, renderSlot as h, mergeProps as g, createElementVNode as x, createCommentVNode as R, createElementBlock as B, toRefs as G, withDirectives as F, isRef as A, vModelRadio as he, ref as q, onMounted as ae, onBeforeUnmount as oe, vModelDynamic as _e, vModelText as K, normalizeProps as ge, guardReactiveProps as ve, watch as ye, Fragment as Ce, renderList as be, withModifiers as Be, normalizeStyle as xe } from "vue";
2
- import { useForwardProps as $, useEmitAsProps as se, AvatarRoot as $e, AvatarImage as we, AvatarFallback as Se, Primitive as I, ScrollAreaRoot as N, ScrollAreaViewport as Q, ScrollAreaScrollbar as j, ScrollAreaThumb as E, ScrollAreaCorner as Ve, AlertDialogPortal as ze, AlertDialogOverlay as Te, AlertDialogContent as ke, DialogPortal as Re, DialogOverlay as De, DialogContent as Ae, DialogTitle as Ie, DialogClose as Pe, PopoverPortal as Oe, PopoverContent as Fe, useForwardExpose as S, DropdownMenuPortal as Me, DropdownMenuContent as Ge, createContext as L, DropdownMenuItem as Le, SwitchRoot as He, SwitchThumb as We, RadioGroupRoot as le, RadioGroupItem as ne, CheckboxRoot as je, CheckboxIndicator as Ee, Toggle as qe, ToggleGroupRoot as Ue, ToggleGroupItem as Ke, SelectRoot as Ne, SelectPortal as Qe, SelectContent as Je, SelectViewport as Ze, SelectTrigger as Xe, SelectValue as Ye, SelectIcon as et, SelectItem as tt, SelectItemIndicator as at, SelectItemText as ot, SelectLabel as st, ComboboxRoot as lt, injectComboboxRootContext as nt, useForwardPropsEmits as re, ComboboxAnchor as rt, ComboboxInput as Z, ComboboxTrigger as it, ComboboxPortal as dt, ComboboxContent as ct, ComboboxViewport as ut, ComboboxItem as pt, ComboboxItemIndicator as ft, ComboboxLabel as mt, TooltipProvider as ht, TooltipRoot as _t, TooltipTrigger as gt, TooltipPortal as vt, TooltipContent as yt, TooltipArrow as Ct, TabsList as bt, TabsTrigger as Bt, ProgressRoot as xt, ProgressIndicator as $t } from "reka-ui";
1
+ import { computed as v, defineComponent as p, openBlock as d, createBlock as f, unref as a, normalizeClass as w, withCtx as r, createVNode as u, createTextVNode as ee, toDisplayString as O, renderSlot as h, mergeProps as g, createElementVNode as x, createCommentVNode as R, createElementBlock as B, toRefs as F, withDirectives as E, isRef as M, vModelRadio as he, ref as q, onMounted as te, onBeforeUnmount as ae, vModelDynamic as _e, vModelText as oe, normalizeProps as ge, guardReactiveProps as ve, watch as ye, Fragment as Ce, renderList as be, withModifiers as Be, normalizeStyle as xe } from "vue";
2
+ import { useForwardProps as $, useEmitAsProps as se, AvatarRoot as $e, AvatarImage as we, AvatarFallback as Se, Primitive as A, ScrollAreaRoot as K, ScrollAreaViewport as N, ScrollAreaScrollbar as W, ScrollAreaThumb as j, ScrollAreaCorner as Ve, AlertDialogPortal as ze, AlertDialogOverlay as Te, AlertDialogContent as ke, DialogPortal as Re, DialogOverlay as De, DialogContent as Ae, DialogTitle as Ie, DialogClose as Pe, PopoverPortal as Oe, PopoverContent as Fe, useForwardExpose as S, DropdownMenuPortal as Me, DropdownMenuContent as Ge, createContext as G, DropdownMenuItem as Le, SwitchRoot as He, SwitchThumb as We, RadioGroupRoot as le, RadioGroupItem as ne, CheckboxRoot as je, CheckboxIndicator as Ee, Toggle as qe, ToggleGroupRoot as Ue, ToggleGroupItem as Ke, SelectRoot as Ne, SelectPortal as Qe, SelectContent as Je, SelectViewport as Ze, SelectTrigger as Xe, SelectValue as Ye, SelectIcon as et, SelectItem as tt, SelectItemIndicator as at, SelectItemText as ot, SelectLabel as st, ComboboxRoot as lt, injectComboboxRootContext as nt, useForwardPropsEmits as re, ComboboxAnchor as rt, ComboboxInput as J, ComboboxTrigger as it, ComboboxPortal as dt, ComboboxContent as ct, ComboboxViewport as ut, ComboboxItem as pt, ComboboxItemIndicator as ft, ComboboxLabel as mt, TooltipProvider as ht, TooltipRoot as _t, TooltipTrigger as gt, TooltipPortal as vt, TooltipContent as yt, TooltipArrow as Ct, TabsList as bt, TabsTrigger as Bt, ProgressRoot as xt, ProgressIndicator as $t } from "reka-ui";
3
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 ko, PopoverRoot as Ro, PopoverTrigger as Do, RadioGroupItem as Ao, SelectGroup as Io, TabsContent as Po, TabsRoot as Oo } from "reka-ui";
4
4
  import { Icon as T } from "@iconify/vue";
5
5
  import { Icon as Mo } from "@iconify/vue";
6
- import { useVModel as P } from "@vueuse/core";
6
+ import { useVModel as I } from "@vueuse/core";
7
7
  function D(s, e, t) {
8
8
  const o = $(s), l = se(e);
9
9
  return v(() => ({
@@ -11,7 +11,7 @@ function D(s, e, t) {
11
11
  ...l
12
12
  }));
13
13
  }
14
- function O(s, e, t) {
14
+ function P(s, e, t) {
15
15
  const o = $(s), l = se(e), i = v(() => ({
16
16
  ...ie(o.value, t),
17
17
  ...l
@@ -29,11 +29,11 @@ const V = (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-${X(o)}`) : l && t.push(`r-${X(o)}-${l}`);
32
+ l === !0 ? t.push(`r-${Z(o)}`) : l && t.push(`r-${Z(o)}-${l}`);
33
33
  }
34
34
  }), t;
35
35
  };
36
- function X(s) {
36
+ function Z(s) {
37
37
  return s.replace(/[A-Z]+(?![a-z])|[A-Z]/g, wt);
38
38
  }
39
39
  function wt(s, e) {
@@ -66,7 +66,7 @@ const ba = /* @__PURE__ */ p({
66
66
  class: w(`r-count-${o.value.length}`)
67
67
  }, {
68
68
  default: r(() => [
69
- te(M(o.value), 1)
69
+ ee(O(o.value), 1)
70
70
  ]),
71
71
  _: 1
72
72
  }, 8, ["class"])
@@ -87,7 +87,7 @@ const ba = /* @__PURE__ */ p({
87
87
  },
88
88
  setup(s) {
89
89
  const e = s, t = v(() => V(e, ["size", "variant", "highContrast"]));
90
- return (o, l) => (d(), f(a(I), {
90
+ return (o, l) => (d(), f(a(A), {
91
91
  class: w(["ui-Badge", t.value]),
92
92
  as: e.as,
93
93
  "as-child": e.asChild,
@@ -114,7 +114,7 @@ const ba = /* @__PURE__ */ p({
114
114
  },
115
115
  setup(s) {
116
116
  const e = s, t = v(() => V(e, ["size", "variant", "highContrast"]));
117
- return (o, l) => (d(), f(a(I), {
117
+ return (o, l) => (d(), f(a(A), {
118
118
  class: w(["ui-Button", t.value]),
119
119
  "as-child": e.asChild,
120
120
  as: e.as,
@@ -160,7 +160,7 @@ const ba = /* @__PURE__ */ p({
160
160
  },
161
161
  setup(s) {
162
162
  const e = s, t = v(() => V(e, ["size", "variant"]));
163
- return (o, l) => (d(), f(a(I), {
163
+ return (o, l) => (d(), f(a(A), {
164
164
  class: w(["ui-Card", t.value]),
165
165
  "as-child": e.asChild,
166
166
  as: e.as,
@@ -181,7 +181,7 @@ const ba = /* @__PURE__ */ p({
181
181
  },
182
182
  setup(s) {
183
183
  const e = s;
184
- return (t, o) => (d(), f(a(I), {
184
+ return (t, o) => (d(), f(a(A), {
185
185
  as: e.as,
186
186
  class: "ui-CardHead",
187
187
  "data-accent-color": e.color
@@ -206,7 +206,7 @@ const ba = /* @__PURE__ */ p({
206
206
  },
207
207
  setup(s) {
208
208
  const e = s;
209
- return (t, o) => (d(), f(a(N), {
209
+ return (t, o) => (d(), f(a(K), {
210
210
  class: "ui-ScrollArea",
211
211
  "as-child": e.asChild,
212
212
  dir: e.dir,
@@ -215,32 +215,32 @@ const ba = /* @__PURE__ */ p({
215
215
  "data-radius": e.radius
216
216
  }, {
217
217
  default: r(() => [
218
- u(a(Q), { class: "ui-ScrollAreaViewport" }, {
218
+ u(a(N), { class: "ui-ScrollAreaViewport" }, {
219
219
  default: r(() => [
220
220
  h(t.$slots, "default")
221
221
  ]),
222
222
  _: 3
223
223
  }),
224
224
  o[0] || (o[0] = x("div", { class: "ui-ScrollAreaViewportFocusRing" }, null, -1)),
225
- e.scrollbars !== "horizontal" ? (d(), f(a(j), {
225
+ e.scrollbars !== "horizontal" ? (d(), f(a(W), {
226
226
  key: 0,
227
227
  class: "ui-ScrollAreaScrollbar",
228
228
  "data-size": e.size,
229
229
  orientation: "vertical"
230
230
  }, {
231
231
  default: r(() => [
232
- u(a(E), { class: "ui-ScrollAreaThumb" })
232
+ u(a(j), { class: "ui-ScrollAreaThumb" })
233
233
  ]),
234
234
  _: 1
235
235
  }, 8, ["data-size"])) : R("", !0),
236
- e.scrollbars !== "vertical" ? (d(), f(a(j), {
236
+ e.scrollbars !== "vertical" ? (d(), f(a(W), {
237
237
  key: 1,
238
238
  class: "ui-ScrollAreaScrollbar",
239
239
  "data-size": e.size,
240
240
  orientation: "horizontal"
241
241
  }, {
242
242
  default: r(() => [
243
- u(a(E), { class: "ui-ScrollAreaThumb" })
243
+ u(a(j), { class: "ui-ScrollAreaThumb" })
244
244
  ]),
245
245
  _: 1
246
246
  }, 8, ["data-size"])) : R("", !0),
@@ -262,7 +262,7 @@ const ba = /* @__PURE__ */ p({
262
262
  },
263
263
  setup(s) {
264
264
  const e = s;
265
- return (t, o) => (d(), f(a(I), {
265
+ return (t, o) => (d(), f(a(A), {
266
266
  as: e.as,
267
267
  class: w(["ui-Separator", `r-size-${e.size}`]),
268
268
  role: "separator",
@@ -474,12 +474,13 @@ const ba = /* @__PURE__ */ p({
474
474
  default: r(() => [
475
475
  u(a(Ie), { class: "font-semibold" }, {
476
476
  default: r(() => [
477
- te(M(e.title), 1)
477
+ ee(O(e.title), 1)
478
478
  ]),
479
479
  _: 1
480
480
  }),
481
481
  u(de, {
482
482
  as: a(Pe),
483
+ type: "button",
483
484
  variant: "ghost",
484
485
  color: "gray",
485
486
  radius: "full",
@@ -541,7 +542,7 @@ const ba = /* @__PURE__ */ p({
541
542
  _: 3
542
543
  }, 8, ["to"]));
543
544
  }
544
- }), It = { class: "ui-MenuViewport" }, [Pt, Ot] = L("ui_DropdownMenuContent"), Ra = /* @__PURE__ */ p({
545
+ }), It = { class: "ui-MenuViewport" }, [Pt, Ot] = G("ui_DropdownMenuContent"), Ra = /* @__PURE__ */ p({
545
546
  inheritAttrs: !1,
546
547
  __name: "DropdownMenuContent",
547
548
  props: {
@@ -578,7 +579,7 @@ const ba = /* @__PURE__ */ p({
578
579
  "variant",
579
580
  "color",
580
581
  "highContrast"
581
- ]), { forwardRef: i } = S(), { size: n, variant: c, color: m, highContrast: y } = G(t);
582
+ ]), { forwardRef: i } = S(), { size: n, variant: c, color: m, highContrast: y } = F(t);
582
583
  return Ot({ size: n, variant: c, color: m, highContrast: y }), (b, C) => (d(), f(a(Me), {
583
584
  to: t.to
584
585
  }, {
@@ -637,7 +638,7 @@ const ba = /* @__PURE__ */ p({
637
638
  t.shortcut ? (d(), B("div", {
638
639
  key: 0,
639
640
  class: "ui-MenuShortcut",
640
- textContent: M(t.shortcut)
641
+ textContent: O(t.shortcut)
641
642
  }, null, 8, Ft)) : R("", !0)
642
643
  ]),
643
644
  _: 3
@@ -664,7 +665,7 @@ const ba = /* @__PURE__ */ p({
664
665
  },
665
666
  emits: ["update:modelValue"],
666
667
  setup(s, { emit: e }) {
667
- const t = e, o = s, [l, i] = O(o, t, [
668
+ const t = e, o = s, [l, i] = P(o, t, [
668
669
  "color",
669
670
  "size",
670
671
  "variant",
@@ -693,12 +694,12 @@ const ba = /* @__PURE__ */ p({
693
694
  },
694
695
  emits: ["update:modelValue"],
695
696
  setup(s, { emit: e }) {
696
- const t = s, l = P(t, "modelValue", e, {
697
+ const t = s, l = I(t, "modelValue", e, {
697
698
  defaultValue: t.modelValue,
698
699
  passive: t.modelValue === void 0
699
700
  }), i = v(() => V(t, ["size", "variant", "highContrast"]));
700
- return (n, c) => F((d(), B("input", {
701
- "onUpdate:modelValue": c[0] || (c[0] = (m) => A(l) ? l.value = m : null),
701
+ return (n, c) => E((d(), B("input", {
702
+ "onUpdate:modelValue": c[0] || (c[0] = (m) => M(l) ? l.value = m : null),
702
703
  class: w(["ui-Radio", i.value]),
703
704
  type: "radio",
704
705
  "data-accent-color": t.color
@@ -706,7 +707,7 @@ const ba = /* @__PURE__ */ p({
706
707
  [he, a(l)]
707
708
  ]);
708
709
  }
709
- }), [ue, Gt] = L("ui_RadioGroupRoot"), Pa = /* @__PURE__ */ p({
710
+ }), [ue, Gt] = G("ui_RadioGroupRoot"), Pa = /* @__PURE__ */ p({
710
711
  __name: "RadioGroupRoot",
711
712
  props: {
712
713
  color: {},
@@ -726,7 +727,7 @@ const ba = /* @__PURE__ */ p({
726
727
  },
727
728
  emits: ["update:modelValue"],
728
729
  setup(s, { emit: e }) {
729
- const t = e, o = s, l = D(o, t, ["color", "size", "variant", "highContrast"]), { size: i, variant: n, color: c, highContrast: m } = G(o);
730
+ const t = e, o = s, l = D(o, t, ["color", "size", "variant", "highContrast"]), { size: i, variant: n, color: c, highContrast: m } = F(o);
730
731
  return Gt({ size: i, variant: n, color: c, highContrast: m }), (y, b) => (d(), f(a(le), g({ class: "ui-RadioGroupRoot" }, a(l)), {
731
732
  default: r(() => [
732
733
  h(y.$slots, "default")
@@ -837,7 +838,7 @@ const ba = /* @__PURE__ */ p({
837
838
  },
838
839
  emits: ["update:modelValue"],
839
840
  setup(s, { emit: e }) {
840
- const t = e, o = s, [l, i] = O(o, t, ["color", "size", "variant", "highContrast"]);
841
+ const t = e, o = s, [l, i] = P(o, t, ["color", "size", "variant", "highContrast"]);
841
842
  return (n, c) => (d(), f(a(je), g(a(l), {
842
843
  class: ["ui-Checkbox", a(i)],
843
844
  "data-accent-color": o.color
@@ -858,7 +859,7 @@ const ba = /* @__PURE__ */ p({
858
859
  _: 1
859
860
  }, 16, ["class", "data-accent-color"]));
860
861
  }
861
- }), [fe, Et] = L("ui_CheckboxGroupRoot"), Ma = /* @__PURE__ */ p({
862
+ }), [fe, Et] = G("ui_CheckboxGroupRoot"), Ma = /* @__PURE__ */ p({
862
863
  __name: "CheckboxGroupRoot",
863
864
  props: {
864
865
  modelValue: {},
@@ -870,7 +871,7 @@ const ba = /* @__PURE__ */ p({
870
871
  },
871
872
  emits: ["update:modelValue"],
872
873
  setup(s, { emit: e }) {
873
- const t = s, o = e, { disabled: l, name: i } = G(t), n = q([]), c = P(t, "modelValue", o, {
874
+ const t = s, o = e, { disabled: l, name: i } = F(t), n = q([]), c = I(t, "modelValue", o, {
874
875
  defaultValue: t.defaultValue,
875
876
  passive: t.modelValue === void 0
876
877
  }), m = v(() => c.value || []), y = v(() => {
@@ -900,7 +901,7 @@ const ba = /* @__PURE__ */ p({
900
901
  },
901
902
  disabled: l,
902
903
  name: i == null ? void 0 : i.value
903
- }), (C, _) => (d(), f(a(I), {
904
+ }), (C, _) => (d(), f(a(A), {
904
905
  as: t.as,
905
906
  "as-child": t.asChild
906
907
  }, {
@@ -936,9 +937,9 @@ const ba = /* @__PURE__ */ p({
936
937
  }), i = v(() => o.selected.value.indexOf(e.value) !== -1), n = (c) => {
937
938
  c ? o.addModelValue(e.value) : o.removeModelValue(e.value);
938
939
  };
939
- return ae(() => {
940
+ return te(() => {
940
941
  o.initAllValue(e.value);
941
- }), oe(() => {
942
+ }), ae(() => {
942
943
  o.removeAllValue(e.value);
943
944
  }), (c, m) => (d(), f(pe, g({
944
945
  ...a(t),
@@ -1012,7 +1013,7 @@ const ba = /* @__PURE__ */ p({
1012
1013
  requestAnimationFrame(() => {
1013
1014
  b.setSelectionRange(_, _), b.focus();
1014
1015
  });
1015
- }, n = P(t, "modelValue", e, {
1016
+ }, n = I(t, "modelValue", e, {
1016
1017
  defaultValue: t.modelValue,
1017
1018
  passive: t.modelValue === void 0
1018
1019
  }), c = v(() => {
@@ -1025,11 +1026,11 @@ const ba = /* @__PURE__ */ p({
1025
1026
  "data-accent-color": t.color,
1026
1027
  onPointerdown: l
1027
1028
  }, [
1028
- F(x("input", g({
1029
+ E(x("input", g({
1029
1030
  id: t.id,
1030
1031
  ref_key: "inputRef",
1031
1032
  ref: o,
1032
- "onUpdate:modelValue": y[0] || (y[0] = (b) => A(n) ? n.value = b : null),
1033
+ "onUpdate:modelValue": y[0] || (y[0] = (b) => M(n) ? n.value = b : null),
1033
1034
  type: t.type
1034
1035
  }, m.$attrs, { class: "ui-TextFieldInput" }), null, 16, Ut), [
1035
1036
  [_e, a(n)]
@@ -1056,7 +1057,7 @@ const ba = /* @__PURE__ */ p({
1056
1057
  },
1057
1058
  emits: ["update:modelValue"],
1058
1059
  setup(s, { emit: e }) {
1059
- const t = s, l = P(t, "modelValue", e, {
1060
+ const t = s, l = I(t, "modelValue", e, {
1060
1061
  defaultValue: t.modelValue,
1061
1062
  passive: t.modelValue === void 0
1062
1063
  }), i = v(() => {
@@ -1067,48 +1068,39 @@ const ba = /* @__PURE__ */ p({
1067
1068
  class: w(["ui-TextArea", i.value]),
1068
1069
  "data-accent-color": t.color
1069
1070
  }, [
1070
- F(x("textarea", g({
1071
- "onUpdate:modelValue": c[0] || (c[0] = (m) => A(l) ? l.value = m : null)
1071
+ E(x("textarea", g({
1072
+ "onUpdate:modelValue": c[0] || (c[0] = (m) => M(l) ? l.value = m : null)
1072
1073
  }, n.$attrs, { class: "ui-TextAreaInput" }), null, 16), [
1073
- [K, a(l)]
1074
+ [oe, a(l)]
1074
1075
  ])
1075
1076
  ], 10, Qt));
1076
1077
  }
1077
- }), Jt = ["data-accent-color"], Zt = ["id"], ja = /* @__PURE__ */ p({
1078
+ }), Jt = ["data-radius"], Zt = ["id"], ja = /* @__PURE__ */ p({
1078
1079
  __name: "ColorField",
1079
1080
  props: {
1080
1081
  id: {},
1081
1082
  modelValue: {},
1083
+ variant: { default: "solid" },
1082
1084
  size: { default: "2" },
1083
- variant: { default: "surface" },
1084
- color: {},
1085
1085
  radius: {}
1086
1086
  },
1087
1087
  emits: ["update:modelValue"],
1088
1088
  setup(s, { emit: e }) {
1089
- const t = s, l = P(t, "modelValue", e, {
1089
+ const t = s, l = I(t, "modelValue", e, {
1090
1090
  defaultValue: t.modelValue || "#000000",
1091
1091
  passive: t.modelValue === void 0
1092
1092
  }), i = v(() => V(t, ["size", "variant"]));
1093
1093
  return (n, c) => (d(), B("div", {
1094
- class: w(["ui-TextField ui-ColorField", i.value]),
1095
- "data-accent-color": t.color
1094
+ class: w(["ui-ColorField", i.value]),
1095
+ "data-radius": t.radius
1096
1096
  }, [
1097
- F(x("input", {
1097
+ E(x("input", {
1098
1098
  id: t.id,
1099
- "onUpdate:modelValue": c[0] || (c[0] = (m) => A(l) ? l.value = m : null),
1099
+ "onUpdate:modelValue": c[0] || (c[0] = (m) => M(l) ? l.value = m : null),
1100
1100
  class: "ui-ColorFieldInput",
1101
1101
  type: "color"
1102
1102
  }, null, 8, Zt), [
1103
- [K, a(l)]
1104
- ]),
1105
- F(x("input", {
1106
- "onUpdate:modelValue": c[1] || (c[1] = (m) => A(l) ? l.value = m : null),
1107
- class: "ui-TextFieldInput",
1108
- type: "text",
1109
- pattern: "^#[0-9a-f]{6}$"
1110
- }, null, 512), [
1111
- [K, a(l)]
1103
+ [oe, a(l)]
1112
1104
  ])
1113
1105
  ], 10, Jt));
1114
1106
  }
@@ -1130,7 +1122,7 @@ const ba = /* @__PURE__ */ p({
1130
1122
  },
1131
1123
  emits: ["update:modelValue"],
1132
1124
  setup(s, { emit: e }) {
1133
- const t = e, o = s, [l, i] = O(o, t, [
1125
+ const t = e, o = s, [l, i] = P(o, t, [
1134
1126
  "color",
1135
1127
  "size",
1136
1128
  "variant",
@@ -1171,7 +1163,7 @@ const ba = /* @__PURE__ */ p({
1171
1163
  },
1172
1164
  emits: ["update:modelValue"],
1173
1165
  setup(s, { emit: e }) {
1174
- const t = e, o = s, [l, i] = O(o, t, [
1166
+ const t = e, o = s, [l, i] = P(o, t, [
1175
1167
  "color",
1176
1168
  "size",
1177
1169
  "variant",
@@ -1208,7 +1200,7 @@ const ba = /* @__PURE__ */ p({
1208
1200
  _: 3
1209
1201
  }, 16));
1210
1202
  }
1211
- }), [me, Xt] = L("ui_SelectRoot"), Ka = /* @__PURE__ */ p({
1203
+ }), [me, Xt] = G("ui_SelectRoot"), Ka = /* @__PURE__ */ p({
1212
1204
  __name: "SelectRoot",
1213
1205
  props: {
1214
1206
  size: { default: "2" },
@@ -1228,7 +1220,7 @@ const ba = /* @__PURE__ */ p({
1228
1220
  },
1229
1221
  emits: ["update:modelValue", "update:open"],
1230
1222
  setup(s, { emit: e }) {
1231
- const t = s, o = e, { size: l, color: i, highContrast: n } = G(t), c = D(t, o, ["size", "color", "highContrast"]);
1223
+ const t = s, o = e, { size: l, color: i, highContrast: n } = F(t), c = D(t, o, ["size", "color", "highContrast"]);
1232
1224
  return Xt({
1233
1225
  size: l,
1234
1226
  color: i,
@@ -1286,7 +1278,7 @@ const ba = /* @__PURE__ */ p({
1286
1278
  "data-accent-color": a(l).color.value
1287
1279
  }), {
1288
1280
  default: r(() => [
1289
- u(a(N), {
1281
+ u(a(K), {
1290
1282
  type: "auto",
1291
1283
  class: "ui-ScrollArea"
1292
1284
  }, {
@@ -1296,20 +1288,20 @@ const ba = /* @__PURE__ */ p({
1296
1288
  "as-child": ""
1297
1289
  }, {
1298
1290
  default: r(() => [
1299
- u(a(Q), { class: "ui-ScrollAreaViewport" }, {
1291
+ u(a(N), { class: "ui-ScrollAreaViewport" }, {
1300
1292
  default: r(() => [
1301
1293
  h(n.$slots, "default")
1302
1294
  ]),
1303
1295
  _: 3
1304
1296
  }),
1305
1297
  c[0] || (c[0] = x("div", { class: "ui-ScrollAreaViewportFocusRing" }, null, -1)),
1306
- u(a(j), {
1298
+ u(a(W), {
1307
1299
  class: "ui-ScrollAreaScrollbar",
1308
1300
  "data-size": 1,
1309
1301
  orientation: "vertical"
1310
1302
  }, {
1311
1303
  default: r(() => [
1312
- u(a(E), { class: "ui-ScrollAreaThumb" })
1304
+ u(a(j), { class: "ui-ScrollAreaThumb" })
1313
1305
  ]),
1314
1306
  _: 1
1315
1307
  })
@@ -1421,7 +1413,7 @@ const ba = /* @__PURE__ */ p({
1421
1413
  function oa(s, e) {
1422
1414
  return d(), B("div", aa);
1423
1415
  }
1424
- const Xa = /* @__PURE__ */ ea(ta, [["render", oa]]), [sa, la] = L("ui_ComboboxRoot"), Ya = /* @__PURE__ */ p({
1416
+ const Xa = /* @__PURE__ */ ea(ta, [["render", oa]]), [sa, la] = G("ui_ComboboxRoot"), Ya = /* @__PURE__ */ p({
1425
1417
  __name: "ComboboxRoot",
1426
1418
  props: {
1427
1419
  size: { default: "2" },
@@ -1445,7 +1437,7 @@ const Xa = /* @__PURE__ */ ea(ta, [["render", oa]]), [sa, la] = L("ui_ComboboxRo
1445
1437
  },
1446
1438
  emits: ["update:modelValue", "highlight", "update:open"],
1447
1439
  setup(s, { emit: e }) {
1448
- const t = s, o = e, { size: l, color: i, highContrast: n } = G(t), [c, m] = O(t, o, ["size", "color", "highContrast"]);
1440
+ const t = s, o = e, { size: l, color: i, highContrast: n } = F(t), [c, m] = P(t, o, ["size", "color", "highContrast"]);
1449
1441
  return la({
1450
1442
  size: l,
1451
1443
  color: i,
@@ -1478,8 +1470,8 @@ const Xa = /* @__PURE__ */ ea(ta, [["render", oa]]), [sa, la] = L("ui_ComboboxRo
1478
1470
  },
1479
1471
  emits: ["update:modelValue"],
1480
1472
  setup(s, { emit: e }) {
1481
- const t = nt(), o = s, l = e, i = re(o, l), n = P(o, "modelValue", l, {
1482
- passive: !0
1473
+ const t = nt(), o = s, l = e, i = re(o, l), n = I(o, "modelValue", l, {
1474
+ passive: o.modelValue === void 0
1483
1475
  }), c = q(-1), m = v(() => t.modelValue.value), y = (_) => typeof _ == "object" ? JSON.stringify(_) : _.toString(), b = (_) => {
1484
1476
  c.value = _, t.modelValue.value.splice(_, 1), c.value = -1;
1485
1477
  }, C = (_) => {
@@ -1496,35 +1488,35 @@ const Xa = /* @__PURE__ */ ea(ta, [["render", oa]]), [sa, la] = L("ui_ComboboxRo
1496
1488
  }, {
1497
1489
  default: r(() => [
1498
1490
  a(t).multiple.value ? (d(), B("div", na, [
1499
- (d(!0), B(Ce, null, be(m.value, (z, J) => (d(), B("div", {
1491
+ (d(!0), B(Ce, null, be(m.value, (z, Q) => (d(), B("div", {
1500
1492
  class: "ui-ComboboxValuesItem",
1501
- "aria-current": J === c.value,
1493
+ "aria-current": Q === c.value,
1502
1494
  key: y(z),
1503
1495
  value: z
1504
1496
  }, [
1505
1497
  h(_.$slots, "item", { value: z }, () => [
1506
- x("span", null, M(y(z)), 1)
1498
+ x("span", null, O(y(z)), 1)
1507
1499
  ]),
1508
1500
  x("button", {
1509
1501
  type: "button",
1510
1502
  tabindex: "-1",
1511
- onClick: Be((_a) => b(J), ["prevent"])
1503
+ onClick: Be((_a) => b(Q), ["prevent"])
1512
1504
  }, [
1513
1505
  u(a(T), { icon: "lucide:x" })
1514
1506
  ], 8, ia)
1515
1507
  ], 8, ra))), 128)),
1516
- u(a(Z), g({
1508
+ u(a(J), g({
1517
1509
  ..._.$attrs,
1518
1510
  ...a(i),
1519
1511
  variant: void 0,
1520
1512
  radius: void 0
1521
1513
  }, {
1522
1514
  modelValue: a(n),
1523
- "onUpdate:modelValue": k[0] || (k[0] = (z) => A(n) ? n.value = z : null),
1515
+ "onUpdate:modelValue": k[0] || (k[0] = (z) => M(n) ? n.value = z : null),
1524
1516
  class: "ui-ComboboxInput",
1525
1517
  onKeydown: C
1526
1518
  }), null, 16, ["modelValue"])
1527
- ])) : (d(), f(a(Z), g({
1519
+ ])) : (d(), f(a(J), g({
1528
1520
  key: 1,
1529
1521
  class: "ui-ComboboxInput"
1530
1522
  }, {
@@ -1592,7 +1584,7 @@ const Xa = /* @__PURE__ */ ea(ta, [["render", oa]]), [sa, la] = L("ui_ComboboxRo
1592
1584
  "data-accent-color": a(n).color.value
1593
1585
  }), {
1594
1586
  default: r(() => [
1595
- u(a(N), {
1587
+ u(a(K), {
1596
1588
  type: "auto",
1597
1589
  class: "ui-ScrollArea"
1598
1590
  }, {
@@ -1602,7 +1594,7 @@ const Xa = /* @__PURE__ */ ea(ta, [["render", oa]]), [sa, la] = L("ui_ComboboxRo
1602
1594
  "as-child": ""
1603
1595
  }, {
1604
1596
  default: r(() => [
1605
- u(a(Q), { class: "ui-ScrollAreaViewport" }, {
1597
+ u(a(N), { class: "ui-ScrollAreaViewport" }, {
1606
1598
  default: r(() => [
1607
1599
  h(m.$slots, "default")
1608
1600
  ]),
@@ -1612,13 +1604,13 @@ const Xa = /* @__PURE__ */ ea(ta, [["render", oa]]), [sa, la] = L("ui_ComboboxRo
1612
1604
  _: 3
1613
1605
  }),
1614
1606
  y[0] || (y[0] = x("div", { class: "ui-ScrollAreaViewportFocusRing" }, null, -1)),
1615
- u(a(j), {
1607
+ u(a(W), {
1616
1608
  class: "ui-ScrollAreaScrollbar",
1617
1609
  "data-size": 1,
1618
1610
  orientation: "vertical"
1619
1611
  }, {
1620
1612
  default: r(() => [
1621
- u(a(E), { class: "ui-ScrollAreaThumb" })
1613
+ u(a(j), { class: "ui-ScrollAreaThumb" })
1622
1614
  ]),
1623
1615
  _: 1
1624
1616
  })
@@ -1769,7 +1761,7 @@ const Xa = /* @__PURE__ */ ea(ta, [["render", oa]]), [sa, la] = L("ui_ComboboxRo
1769
1761
  h(t.$slots, "content", {}, () => [
1770
1762
  x("p", {
1771
1763
  class: "ui-TooltipText",
1772
- textContent: M(e.content)
1764
+ textContent: O(e.content)
1773
1765
  }, null, 8, ua)
1774
1766
  ]),
1775
1767
  u(a(Ct), { class: "ui-TooltipArrow" })
@@ -1850,7 +1842,7 @@ const Xa = /* @__PURE__ */ ea(ta, [["render", oa]]), [sa, la] = L("ui_ComboboxRo
1850
1842
  },
1851
1843
  emits: ["update:modelValue"],
1852
1844
  setup(s, { emit: e }) {
1853
- const t = e, o = s, [l, i] = O(o, t, ["size"]);
1845
+ const t = e, o = s, [l, i] = P(o, t, ["size"]);
1854
1846
  return (n, c) => (d(), f(a(le), g(a(l), {
1855
1847
  class: ["ui-RadioTabsList", a(i)]
1856
1848
  }), {
@@ -1860,8 +1852,8 @@ const Xa = /* @__PURE__ */ ea(ta, [["render", oa]]), [sa, la] = L("ui_ComboboxRo
1860
1852
  _: 3
1861
1853
  }, 16, ["class"]));
1862
1854
  }
1863
- }), ma = "https://challenges.cloudflare.com/turnstile/v0/api.js", Y = "cfTurnstileOnLoad";
1864
- let H = typeof window < "u" && window.turnstile !== void 0 ? "ready" : "unloaded", U, W, ee;
1855
+ }), ma = "https://challenges.cloudflare.com/turnstile/v0/api.js", X = "cfTurnstileOnLoad";
1856
+ let L = typeof window < "u" && window.turnstile !== void 0 ? "ready" : "unloaded", U, H, Y;
1865
1857
  const co = /* @__PURE__ */ p({
1866
1858
  __name: "Turnstile",
1867
1859
  props: {
@@ -1879,13 +1871,13 @@ const co = /* @__PURE__ */ p({
1879
1871
  const t = s, o = e, l = q(), i = () => {
1880
1872
  window.turnstile && (o("update:modelValue", ""), window.turnstile.reset());
1881
1873
  }, n = () => {
1882
- W && (window.turnstile.remove(W), W = void 0);
1874
+ H && (window.turnstile.remove(H), H = void 0);
1883
1875
  }, c = (y) => {
1884
- o("update:modelValue", y), ee = setTimeout(() => {
1876
+ o("update:modelValue", y), Y = setTimeout(() => {
1885
1877
  i();
1886
1878
  }, t.resetInterval);
1887
1879
  }, m = () => {
1888
- W = window.turnstile.render(l.value, {
1880
+ H = window.turnstile.render(l.value, {
1889
1881
  sitekey: t.sitekey,
1890
1882
  theme: t.theme,
1891
1883
  size: t.size,
@@ -1894,24 +1886,24 @@ const co = /* @__PURE__ */ p({
1894
1886
  appearance: t.appearance
1895
1887
  });
1896
1888
  };
1897
- return ae(async () => {
1889
+ return te(async () => {
1898
1890
  const y = new Promise((C, _) => {
1899
- U = { resolve: C, reject: _ }, H === "ready" && C(void 0);
1891
+ U = { resolve: C, reject: _ }, L === "ready" && C(void 0);
1900
1892
  });
1901
- window[Y] = () => {
1902
- U.resolve(), H = "ready";
1893
+ window[X] = () => {
1894
+ U.resolve(), L = "ready";
1903
1895
  }, await (() => {
1904
- if (H === "unloaded") {
1905
- H = "loading";
1906
- const C = `${ma}?onload=${Y}&render=explicit`, _ = document.createElement("script");
1896
+ if (L === "unloaded") {
1897
+ L = "loading";
1898
+ const C = `${ma}?onload=${X}&render=explicit`, _ = document.createElement("script");
1907
1899
  _.src = C, _.async = !0, _.addEventListener("error", () => {
1908
1900
  U.reject("Failed to load Turnstile.");
1909
1901
  }), document.head.appendChild(_);
1910
1902
  }
1911
1903
  return y;
1912
1904
  })(), t.renderOnMount && m();
1913
- }), oe(() => {
1914
- n(), clearTimeout(ee);
1905
+ }), ae(() => {
1906
+ n(), clearTimeout(Y);
1915
1907
  }), (y, b) => (d(), B("div", {
1916
1908
  ref_key: "element",
1917
1909
  ref: l