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