@typlog/ui 0.11.8 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/components.js CHANGED
@@ -1,10 +1,9 @@
1
- import { defineComponent, toRefs, createBlock, openBlock, unref, withCtx, createVNode, renderSlot, computed, normalizeClass, createTextVNode, toDisplayString, createElementBlock, mergeProps, createCommentVNode, createElementVNode, mergeModels, ref, useModel, onMounted, onBeforeUnmount, useTemplateRef, withDirectives, isRef, vModelDynamic, vModelText, normalizeStyle, normalizeProps, guardReactiveProps, Fragment, watch, renderList, withModifiers, vModelRadio } from "vue";
2
- import { createContext, TooltipProvider, Primitive, useForwardProps, useEmitAsProps, AvatarRoot, AvatarImage, AvatarFallback, ScrollAreaRoot, ScrollAreaViewport, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaCorner, injectDialogRootContext, useForwardExpose, DialogPortal, DialogOverlay, DialogContent, DialogClose, AlertDialogPortal, AlertDialogOverlay, AlertDialogContent, DropdownMenuPortal, DropdownMenuContent, DropdownMenuItem, PopoverPortal, PopoverContent, SwitchRoot, SwitchThumb, CheckboxRoot, CheckboxIndicator, Toggle, ToggleGroupRoot, ToggleGroupItem, SelectRoot, SelectPortal, SelectContent, SelectViewport, SelectTrigger, SelectValue, SelectIcon, SelectItem, SelectItemIndicator, SelectItemText, SelectLabel, ComboboxRoot, injectComboboxRootContext as injectComboboxRootContext$1, useForwardPropsEmits as useForwardPropsEmits$1, ComboboxAnchor, ComboboxInput, ComboboxTrigger, ComboboxPortal, ComboboxContent, ComboboxViewport, ComboboxItem, ComboboxItemIndicator, ComboboxLabel, RadioGroupRoot, RadioGroupItem, TabsList, TabsIndicator, TabsTrigger, EditableRoot, EditableArea, EditablePreview, EditableInput, AccordionRoot, AccordionItem, AccordionContent, AccordionTrigger, CollapsibleContent, TooltipRoot, TooltipTrigger, TooltipPortal, TooltipContent, TooltipArrow, ProgressRoot, ProgressIndicator } from "reka-ui";
3
- import { AlertDialogAction, AlertDialogCancel, AlertDialogRoot, AlertDialogTrigger, CollapsibleRoot, CollapsibleTrigger, ComboboxEmpty, ComboboxGroup, DialogClose as DialogClose2, DialogRoot, DialogTrigger, DropdownMenuRoot, DropdownMenuTrigger, PopoverClose, PopoverRoot, PopoverTrigger, RadioGroupItem as RadioGroupItem2, SelectGroup, TabsContent, TabsRoot } from "reka-ui";
1
+ import { defineComponent, toRefs, createBlock, openBlock, unref, withCtx, createVNode, renderSlot, markRaw, createElementBlock, createElementVNode, computed, normalizeClass, createTextVNode, toDisplayString, createCommentVNode, mergeProps, mergeModels, useTemplateRef, useModel, withDirectives, isRef, vModelDynamic, vModelText, onMounted, normalizeStyle, normalizeProps, guardReactiveProps, Fragment, ref, watch, renderList, withModifiers, vModelRadio, effectScope, createStaticVNode, resolveDynamicComponent } from "vue";
2
+ import { createContext, TooltipProvider, Primitive, useForwardProps, useEmitAsProps, AvatarRoot, AvatarImage, AvatarFallback, ScrollAreaRoot, ScrollAreaViewport, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaCorner, injectDialogRootContext, useForwardExpose, DialogPortal, DialogOverlay, DialogContent, useForwardPropsEmits, AlertDialogPortal, AlertDialogOverlay, AlertDialogContent, DropdownMenuPortal, DropdownMenuContent, DropdownMenuItem, PopoverPortal, PopoverContent, SwitchRoot, SwitchThumb, CheckboxRoot, CheckboxIndicator, Toggle, ToggleGroupRoot, ToggleGroupItem, SelectRoot, SelectPortal, SelectContent, SelectViewport, SelectTrigger, SelectValue, SelectIcon, SelectItem, SelectItemIndicator, SelectItemText, SelectLabel, ComboboxRoot, injectComboboxRootContext as injectComboboxRootContext$1, ComboboxAnchor, ComboboxInput, ComboboxTrigger, ComboboxPortal, ComboboxContent, ComboboxViewport, ComboboxItem, ComboboxItemIndicator, ComboboxLabel, ComboboxEmpty, RadioGroupRoot, RadioGroupItem, TabsList, TabsIndicator, TabsTrigger, EditableRoot, EditableArea, EditablePreview, EditableInput, AccordionRoot, useId, AccordionItem, AccordionContent, AccordionTrigger, CollapsibleRoot, CollapsibleTrigger, CollapsibleContent, ToastRoot, ToastTitle, ToastDescription, ToastAction, ToastProvider, ToastPortal, ToastViewport, TooltipRoot, TooltipTrigger, TooltipPortal, TooltipContent, TooltipArrow, ProgressRoot, ProgressIndicator } from "reka-ui";
3
+ import { AlertDialogAction, AlertDialogCancel, AlertDialogRoot, AlertDialogTrigger, CheckboxGroupRoot, ComboboxGroup, DialogClose, DialogRoot, DialogTrigger, DropdownMenuRoot, DropdownMenuTrigger, PopoverClose, PopoverRoot, PopoverTrigger, SelectGroup, TabsContent, TabsRoot } from "reka-ui";
4
4
  import { Icon } from "@iconify/vue";
5
- import { Icon as Icon2 } from "@iconify/vue";
6
5
  const [injectThemeContext, provideThemeContext] = createContext("ThemeProvider");
7
- const _sfc_main$_ = /* @__PURE__ */ defineComponent({
6
+ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
8
7
  __name: "ThemeProvider",
9
8
  props: {
10
9
  accentColor: { default: "indigo" },
@@ -49,64 +48,67 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
49
48
  };
50
49
  }
51
50
  });
52
- function useForwardPropsEmits(props, emit, exclude) {
51
+ const _hoisted_1$v = {
52
+ viewBox: "0 0 24 24",
53
+ width: "1em",
54
+ height: "1em"
55
+ };
56
+ function render$9(_ctx, _cache) {
57
+ return openBlock(), createElementBlock("svg", _hoisted_1$v, _cache[0] || (_cache[0] = [
58
+ createElementVNode("path", {
59
+ fill: "currentColor",
60
+ d: "M4 22a8 8 0 1 1 16 0h-2a6 6 0 0 0-12 0zm8-9c-3.315 0-6-2.685-6-6s2.685-6 6-6s6 2.685 6 6s-2.685 6-6 6m0-2c2.21 0 4-1.79 4-4s-1.79-4-4-4s-4 1.79-4 4s1.79 4 4 4"
61
+ }, null, -1)
62
+ ]));
63
+ }
64
+ const UserIcon = markRaw({ name: "ri-user-line", render: render$9 });
65
+ function useForwardPropsWithout(props, exclude) {
53
66
  const parsedProps = useForwardProps(props);
54
- const emitsAsProps = useEmitAsProps(emit);
55
67
  return computed(() => ({
56
- ..._excludeProps(parsedProps.value, exclude),
57
- ...emitsAsProps
68
+ ..._excludeProps(parsedProps.value, exclude)
58
69
  }));
59
70
  }
60
- function extractForwardProps(props, keys) {
61
- const parsedProps = useForwardProps(props);
62
- const fowarded = computed(() => _excludeProps(parsedProps.value, keys));
63
- const classes = computed(() => {
64
- return extractClass(parsedProps.value, keys);
65
- });
66
- return [fowarded, classes];
67
- }
68
- function extractForwardPropsEmits(props, emit, keys) {
71
+ function useForwardPropsEmitsWithout(props, emit, exclude) {
69
72
  const parsedProps = useForwardProps(props);
70
73
  const emitsAsProps = useEmitAsProps(emit);
71
- const fowarded = computed(() => ({
72
- ..._excludeProps(parsedProps.value, keys),
74
+ return computed(() => ({
75
+ ..._excludeProps(parsedProps.value, exclude),
73
76
  ...emitsAsProps
74
77
  }));
75
- const classes = computed(() => {
76
- return extractClass(parsedProps.value, keys);
77
- });
78
- return [fowarded, classes];
79
- }
80
- function _excludeProps(props, exclude) {
81
- const rv = {};
82
- Object.keys(props).forEach((k) => {
83
- if (exclude.indexOf(k) === -1) {
84
- rv[k] = props[k];
85
- }
86
- });
87
- return rv;
88
78
  }
89
- const extractClass = (props, keys) => {
90
- const rv = [];
91
- keys.forEach((key) => {
92
- if (key !== "color" && key !== "radius") {
79
+ const buildPropsClass = (props, keys) => {
80
+ return computed(() => {
81
+ const rv = [];
82
+ keys.forEach((key) => {
93
83
  const value = props[key];
84
+ if (key === "class") {
85
+ rv.push(value);
86
+ }
94
87
  if (value === true) {
95
88
  rv.push(`r-${kebabize(key)}`);
96
89
  } else if (value) {
97
90
  rv.push(`r-${kebabize(key)}-${value}`);
98
91
  }
92
+ });
93
+ return rv;
94
+ });
95
+ };
96
+ function _excludeProps(props, exclude) {
97
+ const rv = {};
98
+ Object.keys(props).forEach((k) => {
99
+ if (exclude.indexOf(k) === -1) {
100
+ rv[k] = props[k];
99
101
  }
100
102
  });
101
103
  return rv;
102
- };
104
+ }
103
105
  function kebabize(str) {
104
106
  return str.replace(/[A-Z]+(?![a-z])|[A-Z]/g, _kebabReplace);
105
107
  }
106
108
  function _kebabReplace(str, ofs) {
107
109
  return (ofs ? "-" : "") + str.toLowerCase();
108
110
  }
109
- const _sfc_main$Z = /* @__PURE__ */ defineComponent({
111
+ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
110
112
  __name: "Avatar",
111
113
  props: {
112
114
  alt: {},
@@ -119,23 +121,25 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
119
121
  },
120
122
  setup(__props) {
121
123
  const props = __props;
122
- const resetClass = computed(() => {
123
- return extractClass(props, ["size", "variant"]);
124
- });
124
+ const resetClass = buildPropsClass(props, ["size", "variant"]);
125
125
  const fallback = computed(() => {
126
126
  if (props.fallback) {
127
127
  return props.fallback;
128
128
  }
129
- const symbols = props.alt.split(/\s+/).map((p) => p[0]);
130
- if (props.size === "1") {
131
- return symbols[0];
129
+ if (props.alt) {
130
+ const symbols = props.alt.split(/\s+/).map((p) => p[0]);
131
+ if (props.size === "1") {
132
+ return symbols[0];
133
+ } else {
134
+ return symbols.slice(0, 2).join("");
135
+ }
132
136
  } else {
133
- return symbols.slice(0, 2).join("");
137
+ return "";
134
138
  }
135
139
  });
136
140
  return (_ctx, _cache) => {
137
141
  return openBlock(), createBlock(unref(AvatarRoot), {
138
- class: normalizeClass(["ui-Avatar", resetClass.value]),
142
+ class: normalizeClass(["ui-Avatar", unref(resetClass)]),
139
143
  "data-accent-color": props.color,
140
144
  "data-radius": props.radius
141
145
  }, {
@@ -144,21 +148,27 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
144
148
  alt: props.alt,
145
149
  src: props.src || ""
146
150
  }, null, 8, ["alt", "src"]),
147
- createVNode(unref(AvatarFallback), {
151
+ fallback.value ? (openBlock(), createBlock(unref(AvatarFallback), {
152
+ key: 0,
148
153
  class: normalizeClass(`r-count-${fallback.value.length}`)
149
154
  }, {
150
155
  default: withCtx(() => [
151
156
  createTextVNode(toDisplayString(fallback.value), 1)
152
157
  ]),
153
158
  _: 1
154
- }, 8, ["class"])
159
+ }, 8, ["class"])) : (openBlock(), createBlock(unref(AvatarFallback), { key: 1 }, {
160
+ default: withCtx(() => [
161
+ createVNode(unref(UserIcon))
162
+ ]),
163
+ _: 1
164
+ }))
155
165
  ]),
156
166
  _: 1
157
167
  }, 8, ["class", "data-accent-color", "data-radius"]);
158
168
  };
159
169
  }
160
170
  });
161
- const _sfc_main$Y = /* @__PURE__ */ defineComponent({
171
+ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
162
172
  __name: "Badge",
163
173
  props: {
164
174
  variant: { default: "soft" },
@@ -171,12 +181,10 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
171
181
  },
172
182
  setup(__props) {
173
183
  const props = __props;
174
- const resetClass = computed(() => {
175
- return extractClass(props, ["size", "variant", "highContrast"]);
176
- });
184
+ const resetClass = buildPropsClass(props, ["size", "variant", "highContrast"]);
177
185
  return (_ctx, _cache) => {
178
186
  return openBlock(), createBlock(unref(Primitive), {
179
- class: normalizeClass(["ui-Badge", resetClass.value]),
187
+ class: normalizeClass(["ui-Badge", unref(resetClass)]),
180
188
  as: props.as,
181
189
  "as-child": props.asChild,
182
190
  "data-accent-color": props.color,
@@ -190,31 +198,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
190
198
  };
191
199
  }
192
200
  });
193
- const _sfc_main$X = /* @__PURE__ */ defineComponent({
194
- __name: "Inset",
195
- props: {
196
- side: { default: "all" },
197
- clip: { default: "border-box" }
198
- },
199
- setup(__props) {
200
- const props = __props;
201
- const resetClass = computed(() => {
202
- const rv = [`r-side-${props.side}`];
203
- if (props.clip) {
204
- rv.push(`r-clip-${props.clip}`);
205
- }
206
- return rv;
207
- });
208
- return (_ctx, _cache) => {
209
- return openBlock(), createElementBlock("div", {
210
- class: normalizeClass(["ui-Inset", resetClass.value])
211
- }, [
212
- renderSlot(_ctx.$slots, "default")
213
- ], 2);
214
- };
215
- }
216
- });
217
- const _sfc_main$W = /* @__PURE__ */ defineComponent({
201
+ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
218
202
  __name: "Card",
219
203
  props: {
220
204
  variant: { default: "surface" },
@@ -225,12 +209,10 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
225
209
  },
226
210
  setup(__props) {
227
211
  const props = __props;
228
- const resetClass = computed(() => {
229
- return extractClass(props, ["size", "variant"]);
230
- });
212
+ const resetClass = buildPropsClass(props, ["size", "variant"]);
231
213
  return (_ctx, _cache) => {
232
214
  return openBlock(), createBlock(unref(Primitive), {
233
- class: normalizeClass(["ui-Card", resetClass.value]),
215
+ class: normalizeClass(["ui-Card ui-BaseCard", unref(resetClass)]),
234
216
  "as-child": props.asChild,
235
217
  as: props.as,
236
218
  "data-radius": props.radius
@@ -243,30 +225,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
243
225
  };
244
226
  }
245
227
  });
246
- const _sfc_main$V = /* @__PURE__ */ defineComponent({
247
- __name: "CardHead",
248
- props: {
249
- color: {},
250
- asChild: { type: Boolean },
251
- as: { default: "div" }
252
- },
253
- setup(__props) {
254
- const props = __props;
255
- return (_ctx, _cache) => {
256
- return openBlock(), createBlock(unref(Primitive), {
257
- as: props.as,
258
- class: "ui-CardHead",
259
- "data-accent-color": props.color
260
- }, {
261
- default: withCtx(() => [
262
- renderSlot(_ctx.$slots, "default")
263
- ]),
264
- _: 3
265
- }, 8, ["as", "data-accent-color"]);
266
- };
267
- }
268
- });
269
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
228
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
270
229
  __name: "Button",
271
230
  props: {
272
231
  variant: { default: "solid" },
@@ -280,12 +239,10 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
280
239
  },
281
240
  setup(__props) {
282
241
  const props = __props;
283
- const resetClass = computed(() => {
284
- return extractClass(props, ["size", "variant", "highContrast"]);
285
- });
242
+ const resetClass = buildPropsClass(props, ["size", "variant", "highContrast"]);
286
243
  return (_ctx, _cache) => {
287
244
  return openBlock(), createBlock(unref(Primitive), {
288
- class: normalizeClass(["ui-Button", resetClass.value]),
245
+ class: normalizeClass(["ui-Button", unref(resetClass)]),
289
246
  "as-child": props.asChild,
290
247
  as: props.as,
291
248
  "data-accent-color": props.color,
@@ -301,85 +258,46 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
301
258
  };
302
259
  }
303
260
  });
304
- const _sfc_main$T = /* @__PURE__ */ defineComponent({
261
+ const _sfc_main$W = /* @__PURE__ */ defineComponent({
305
262
  __name: "IconButton",
306
263
  props: {
307
- variant: {},
264
+ variant: { default: "solid" },
308
265
  color: {},
309
266
  radius: {},
310
- size: {},
311
- highContrast: { type: Boolean },
312
- disabled: { type: Boolean },
313
- as: {},
314
- asChild: { type: Boolean }
315
- },
316
- setup(__props) {
317
- const props = __props;
318
- const forwarded = useForwardProps(props);
319
- return (_ctx, _cache) => {
320
- return openBlock(), createBlock(_sfc_main$U, mergeProps({ class: "ui-IconButton" }, unref(forwarded)), {
321
- default: withCtx(() => [
322
- renderSlot(_ctx.$slots, "default")
323
- ]),
324
- _: 3
325
- }, 16);
326
- };
327
- }
328
- });
329
- const BRAND_ICONS = {
330
- google: "logos:google-icon",
331
- facebook: "simple-icons:facebook",
332
- x: "simple-icons:x",
333
- github: "simple-icons:github",
334
- apple: "simple-icons:apple",
335
- slack: "logos:slack-icon",
336
- figma: "logos:figma"
337
- };
338
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
339
- __name: "SocialButton",
340
- props: {
341
- brand: {},
342
- radius: {},
343
267
  size: { default: "2" },
268
+ highContrast: { type: Boolean, default: false },
344
269
  disabled: { type: Boolean },
345
- asChild: { type: Boolean },
346
- as: { default: "button" }
270
+ as: { default: "button" },
271
+ asChild: { type: Boolean }
347
272
  },
348
273
  setup(__props) {
349
274
  const props = __props;
350
- const resetClass = computed(() => {
351
- return extractClass(props, ["size", "brand"]);
352
- });
353
- const brandIcon = computed(() => {
354
- return BRAND_ICONS[props.brand];
355
- });
275
+ const resetClass = buildPropsClass(props, ["size", "variant", "highContrast"]);
356
276
  return (_ctx, _cache) => {
357
277
  return openBlock(), createBlock(unref(Primitive), {
358
- class: normalizeClass(["ui-Button ui-SocialButton", resetClass.value]),
278
+ class: normalizeClass(["ui-Button ui-IconButton", unref(resetClass)]),
359
279
  "as-child": props.asChild,
360
280
  as: props.as,
281
+ "data-accent-color": props.color,
361
282
  "data-radius": props.radius,
362
- "data-disabled": props.disabled ? true : void 0
283
+ "data-disabled": props.disabled ? true : void 0,
284
+ disabled: props.disabled && props.as === "button" ? true : void 0
363
285
  }, {
364
286
  default: withCtx(() => [
365
- brandIcon.value ? (openBlock(), createBlock(unref(Icon), {
366
- key: 0,
367
- icon: brandIcon.value
368
- }, null, 8, ["icon"])) : createCommentVNode("", true),
369
287
  renderSlot(_ctx.$slots, "default")
370
288
  ]),
371
289
  _: 3
372
- }, 8, ["class", "as-child", "as", "data-radius", "data-disabled"]);
290
+ }, 8, ["class", "as-child", "as", "data-accent-color", "data-radius", "data-disabled", "disabled"]);
373
291
  };
374
292
  }
375
293
  });
376
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
294
+ const _sfc_main$V = /* @__PURE__ */ defineComponent({
377
295
  __name: "ScrollArea",
378
296
  props: {
379
297
  size: { default: "1" },
380
298
  radius: {},
381
299
  scrollbars: { default: "both" },
382
- type: {},
300
+ type: { default: "scroll" },
383
301
  dir: {},
384
302
  scrollHideDelay: {},
385
303
  asChild: { type: Boolean },
@@ -437,7 +355,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
437
355
  };
438
356
  }
439
357
  });
440
- const _sfc_main$Q = /* @__PURE__ */ defineComponent({
358
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
441
359
  __name: "DialogTitle",
442
360
  props: {
443
361
  asChild: { type: Boolean },
@@ -460,7 +378,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
460
378
  };
461
379
  }
462
380
  });
463
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
381
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
464
382
  __name: "DialogDescription",
465
383
  props: {
466
384
  asChild: { type: Boolean },
@@ -483,7 +401,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
483
401
  };
484
402
  }
485
403
  });
486
- const _sfc_main$O = /* @__PURE__ */ defineComponent({
404
+ const _sfc_main$S = /* @__PURE__ */ defineComponent({
487
405
  __name: "ThemeWrapper",
488
406
  props: {
489
407
  accentColor: {},
@@ -509,23 +427,15 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
509
427
  };
510
428
  }
511
429
  });
512
- const _hoisted_1$j = { class: "ui-DialogWrapper" };
513
- const _hoisted_2$7 = { class: "ui-DialogContainer" };
514
- const _sfc_main$N = /* @__PURE__ */ defineComponent({
430
+ const _hoisted_1$u = { class: "ui-DialogWrapper" };
431
+ const _hoisted_2$8 = { class: "ui-DialogContainer" };
432
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
515
433
  ...{
516
434
  inheritAttrs: false
517
435
  },
518
- __name: "DialogContent",
436
+ __name: "DialogPopup",
519
437
  props: {
520
- to: {},
521
- size: { default: "3" },
522
- width: {},
523
- minWidth: {},
524
- maxWidth: { default: "600px" },
525
- height: {},
526
- minHeight: {},
527
- maxHeight: {},
528
- closeIcon: { type: Boolean },
438
+ size: { default: "1" },
529
439
  forceMount: { type: Boolean },
530
440
  disableOutsidePointerEvents: { type: Boolean },
531
441
  asChild: { type: Boolean },
@@ -535,64 +445,27 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
535
445
  setup(__props, { emit: __emit }) {
536
446
  const props = __props;
537
447
  const emits = __emit;
538
- const forwarded = useForwardPropsEmits(props, emits, [
539
- "to",
540
- "align",
541
- "class",
542
- "size",
543
- "width",
544
- "minWidth",
545
- "maxWidth",
546
- "height",
547
- "minHeight",
548
- "maxHeight",
549
- "closeIcon"
550
- ]);
448
+ const forwarded = useForwardPropsEmitsWithout(props, emits, ["align", "class", "size"]);
551
449
  return (_ctx, _cache) => {
552
- return openBlock(), createBlock(unref(DialogPortal), {
553
- to: props.to
554
- }, {
450
+ return openBlock(), createBlock(unref(DialogPortal), null, {
555
451
  default: withCtx(() => [
556
- createVNode(_sfc_main$O, null, {
452
+ createVNode(_sfc_main$S, null, {
557
453
  default: withCtx(() => [
558
454
  createVNode(unref(DialogOverlay), { class: "ui-DialogOverlay" }, {
559
455
  default: withCtx(() => [
560
- createElementVNode("div", _hoisted_1$j, [
561
- createElementVNode("div", _hoisted_2$7, [
456
+ createElementVNode("div", _hoisted_1$u, [
457
+ createElementVNode("div", _hoisted_2$8, [
562
458
  createVNode(unref(DialogContent), mergeProps({
563
- class: ["ui-DialogContent", `r-size-${props.size}`]
459
+ class: ["ui-DialogPopup", `r-size-${props.size}`]
564
460
  }, {
565
461
  ..._ctx.$attrs,
566
462
  ...unref(forwarded)
567
- }, {
568
- style: {
569
- width: props.width,
570
- height: props.height,
571
- minWidth: props.minWidth,
572
- maxWidth: props.maxWidth,
573
- minHeight: props.minHeight,
574
- maxHeight: props.maxHeight
575
- }
576
463
  }), {
577
464
  default: withCtx(() => [
578
- props.closeIcon ? (openBlock(), createBlock(_sfc_main$T, {
579
- key: 0,
580
- class: "ui-DialogContentClose",
581
- as: unref(DialogClose),
582
- type: "button",
583
- variant: "ghost",
584
- color: "gray",
585
- "aria-label": "Close"
586
- }, {
587
- default: withCtx(() => [
588
- createVNode(unref(Icon), { icon: "lucide:x" })
589
- ]),
590
- _: 1
591
- }, 8, ["as"])) : createCommentVNode("", true),
592
465
  renderSlot(_ctx.$slots, "default")
593
466
  ]),
594
467
  _: 3
595
- }, 16, ["class", "style"])
468
+ }, 16, ["class"])
596
469
  ])
597
470
  ])
598
471
  ]),
@@ -603,26 +476,18 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
603
476
  })
604
477
  ]),
605
478
  _: 3
606
- }, 8, ["to"]);
479
+ });
607
480
  };
608
481
  }
609
482
  });
610
- const _hoisted_1$i = { class: "ui-DialogWrapper" };
611
- const _hoisted_2$6 = { class: "ui-DialogContainer" };
612
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
483
+ const _hoisted_1$t = { class: "ui-DialogWrapper" };
484
+ const _hoisted_2$7 = { class: "ui-DialogContainer" };
485
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
613
486
  ...{
614
487
  inheritAttrs: false
615
488
  },
616
- __name: "AlertDialogContent",
489
+ __name: "AlertDialogPopup",
617
490
  props: {
618
- to: {},
619
- size: { default: "3" },
620
- width: {},
621
- minWidth: {},
622
- maxWidth: { default: "450px" },
623
- height: {},
624
- minHeight: {},
625
- maxHeight: {},
626
491
  forceMount: { type: Boolean },
627
492
  disableOutsidePointerEvents: { type: Boolean },
628
493
  asChild: { type: Boolean },
@@ -632,49 +497,25 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
632
497
  setup(__props, { emit: __emit }) {
633
498
  const props = __props;
634
499
  const emits = __emit;
635
- const forwarded = useForwardPropsEmits(props, emits, [
636
- "to",
637
- "align",
638
- "class",
639
- "size",
640
- "width",
641
- "minWidth",
642
- "maxWidth",
643
- "height",
644
- "minHeight",
645
- "maxHeight"
646
- ]);
500
+ const forwarded = useForwardPropsEmits(props, emits);
647
501
  return (_ctx, _cache) => {
648
- return openBlock(), createBlock(unref(AlertDialogPortal), {
649
- to: props.to
650
- }, {
502
+ return openBlock(), createBlock(unref(AlertDialogPortal), null, {
651
503
  default: withCtx(() => [
652
- createVNode(_sfc_main$O, null, {
504
+ createVNode(_sfc_main$S, null, {
653
505
  default: withCtx(() => [
654
506
  createVNode(unref(AlertDialogOverlay), { class: "ui-DialogOverlay" }, {
655
507
  default: withCtx(() => [
656
- createElementVNode("div", _hoisted_1$i, [
657
- createElementVNode("div", _hoisted_2$6, [
658
- createVNode(unref(AlertDialogContent), mergeProps({
659
- class: ["ui-DialogContent", `r-size-${props.size}`]
660
- }, {
508
+ createElementVNode("div", _hoisted_1$t, [
509
+ createElementVNode("div", _hoisted_2$7, [
510
+ createVNode(unref(AlertDialogContent), mergeProps({ class: "ui-DialogPopup ui-AlertPopup r-size-3" }, {
661
511
  ..._ctx.$attrs,
662
512
  ...unref(forwarded)
663
- }, {
664
- style: {
665
- width: props.width,
666
- height: props.height,
667
- minWidth: props.minWidth,
668
- maxWidth: props.maxWidth,
669
- minHeight: props.minHeight,
670
- maxHeight: props.maxHeight
671
- }
672
513
  }), {
673
514
  default: withCtx(() => [
674
515
  renderSlot(_ctx.$slots, "default")
675
516
  ]),
676
517
  _: 3
677
- }, 16, ["class", "style"])
518
+ }, 16)
678
519
  ])
679
520
  ])
680
521
  ]),
@@ -685,19 +526,18 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
685
526
  })
686
527
  ]),
687
528
  _: 3
688
- }, 8, ["to"]);
529
+ });
689
530
  };
690
531
  }
691
532
  });
692
- const _hoisted_1$h = { class: "ui-MenuViewport" };
693
- const [injectDropdownMenuContentContext, provideDropdownMenuContentContext] = createContext("ui_DropdownMenuContent");
694
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
533
+ const _hoisted_1$s = { class: "ui-MenuViewport" };
534
+ const [injectDropdownMenuContentContext, provideDropdownMenuContentContext] = createContext("ui:DropdownMenuContent");
535
+ const _sfc_main$P = /* @__PURE__ */ defineComponent({
695
536
  ...{
696
537
  inheritAttrs: false
697
538
  },
698
539
  __name: "DropdownMenuContent",
699
540
  props: {
700
- to: {},
701
541
  size: { default: "2" },
702
542
  variant: { default: "solid" },
703
543
  color: {},
@@ -706,8 +546,10 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
706
546
  loop: { type: Boolean },
707
547
  side: {},
708
548
  sideOffset: { default: 4 },
549
+ sideFlip: { type: Boolean },
709
550
  align: { default: "start" },
710
551
  alignOffset: {},
552
+ alignFlip: { type: Boolean },
711
553
  avoidCollisions: { type: Boolean },
712
554
  collisionBoundary: {},
713
555
  collisionPadding: { default: 10 },
@@ -726,7 +568,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
726
568
  setup(__props, { emit: __emit }) {
727
569
  const props = __props;
728
570
  const emits = __emit;
729
- const forwarded = useForwardPropsEmits(props, emits, [
571
+ const forwarded = useForwardPropsEmitsWithout(props, emits, [
730
572
  "to",
731
573
  "size",
732
574
  "variant",
@@ -735,13 +577,12 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
735
577
  ]);
736
578
  const { forwardRef } = useForwardExpose();
737
579
  const { size, variant, color, highContrast } = toRefs(props);
580
+ const resetClass = buildPropsClass(props, ["size", "variant", "highContrast"]);
738
581
  provideDropdownMenuContentContext({ size, variant, color, highContrast });
739
582
  return (_ctx, _cache) => {
740
- return openBlock(), createBlock(unref(DropdownMenuPortal), {
741
- to: props.to
742
- }, {
583
+ return openBlock(), createBlock(unref(DropdownMenuPortal), null, {
743
584
  default: withCtx(() => [
744
- createVNode(_sfc_main$O, {
585
+ createVNode(_sfc_main$S, {
745
586
  "accent-color": props.color
746
587
  }, {
747
588
  default: withCtx(() => [
@@ -750,12 +591,12 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
750
591
  ...unref(forwarded)
751
592
  }, {
752
593
  ref: unref(forwardRef),
753
- class: ["ui-PopperContent ui-MenuContent", `r-size-${props.size}`]
594
+ class: ["ui-PopperContent ui-MenuContent", unref(resetClass)]
754
595
  }), {
755
596
  default: withCtx(() => [
756
- createVNode(_sfc_main$R, { type: "auto" }, {
597
+ createVNode(_sfc_main$V, { type: "auto" }, {
757
598
  default: withCtx(() => [
758
- createElementVNode("div", _hoisted_1$h, [
599
+ createElementVNode("div", _hoisted_1$s, [
759
600
  renderSlot(_ctx.$slots, "default")
760
601
  ])
761
602
  ]),
@@ -769,12 +610,12 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
769
610
  }, 8, ["accent-color"])
770
611
  ]),
771
612
  _: 3
772
- }, 8, ["to"]);
613
+ });
773
614
  };
774
615
  }
775
616
  });
776
- const _hoisted_1$g = ["textContent"];
777
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
617
+ const _hoisted_1$r = ["textContent"];
618
+ const _sfc_main$O = /* @__PURE__ */ defineComponent({
778
619
  __name: "DropdownMenuItem",
779
620
  props: {
780
621
  color: {},
@@ -788,14 +629,13 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
788
629
  setup(__props, { emit: __emit }) {
789
630
  const props = __props;
790
631
  const emits = __emit;
791
- const forwarded = useForwardPropsEmits(props, emits, ["color", "shortcut"]);
632
+ const forwarded = useForwardPropsEmitsWithout(props, emits, ["color", "shortcut"]);
792
633
  useForwardExpose();
793
634
  const rootContext = injectDropdownMenuContentContext();
794
635
  return (_ctx, _cache) => {
795
636
  return openBlock(), createBlock(unref(DropdownMenuItem), mergeProps({
796
637
  class: "ui-MenuItem",
797
638
  "data-accent-color": props.color,
798
- "data-size": unref(rootContext).size.value,
799
639
  "data-variant": unref(rootContext).variant.value,
800
640
  "data-high-contrast": unref(rootContext).highContrast?.value || void 0
801
641
  }, unref(forwarded)), {
@@ -805,26 +645,44 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
805
645
  key: 0,
806
646
  class: "ui-MenuShortcut",
807
647
  textContent: toDisplayString(props.shortcut)
808
- }, null, 8, _hoisted_1$g)) : createCommentVNode("", true)
648
+ }, null, 8, _hoisted_1$r)) : createCommentVNode("", true)
809
649
  ]),
810
650
  _: 3
811
- }, 16, ["data-accent-color", "data-size", "data-variant", "data-high-contrast"]);
651
+ }, 16, ["data-accent-color", "data-variant", "data-high-contrast"]);
812
652
  };
813
653
  }
814
654
  });
815
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
655
+ const _export_sfc = (sfc, props) => {
656
+ const target = sfc.__vccOpts || sfc;
657
+ for (const [key, val] of props) {
658
+ target[key] = val;
659
+ }
660
+ return target;
661
+ };
662
+ const _sfc_main$N = {};
663
+ const _hoisted_1$q = {
664
+ class: "ui-DropdownMenuSeparator",
665
+ "aria-hidden": "true"
666
+ };
667
+ function _sfc_render$2(_ctx, _cache) {
668
+ return openBlock(), createElementBlock("div", _hoisted_1$q);
669
+ }
670
+ const DropdownMenuSeparator = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["render", _sfc_render$2]]);
671
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
816
672
  ...{
817
673
  inheritAttrs: false
818
674
  },
819
- __name: "PopoverContent",
675
+ __name: "PopoverPopup",
820
676
  props: {
821
677
  to: {},
822
- size: { default: "2" },
678
+ size: { default: "1" },
823
679
  forceMount: { type: Boolean },
824
- side: {},
825
- sideOffset: {},
826
- align: {},
680
+ side: { default: "bottom" },
681
+ sideOffset: { default: 4 },
682
+ sideFlip: { type: Boolean },
683
+ align: { default: "start" },
827
684
  alignOffset: {},
685
+ alignFlip: { type: Boolean },
828
686
  avoidCollisions: { type: Boolean },
829
687
  collisionBoundary: {},
830
688
  collisionPadding: {},
@@ -844,16 +702,16 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
844
702
  setup(__props, { emit: __emit }) {
845
703
  const props = __props;
846
704
  const emits = __emit;
847
- const forwarded = useForwardPropsEmits(props, emits, ["to", "size"]);
705
+ const forwarded = useForwardPropsEmitsWithout(props, emits, ["to", "size"]);
848
706
  return (_ctx, _cache) => {
849
707
  return openBlock(), createBlock(unref(PopoverPortal), {
850
708
  to: props.to
851
709
  }, {
852
710
  default: withCtx(() => [
853
- createVNode(_sfc_main$O, null, {
711
+ createVNode(_sfc_main$S, null, {
854
712
  default: withCtx(() => [
855
713
  createVNode(unref(PopoverContent), mergeProps({ ..._ctx.$attrs, ...unref(forwarded) }, {
856
- class: ["ui-PopoverContent", `r-size-${props.size}`]
714
+ class: ["ui-PopoverPopup ui-PopperContent", `r-size-${props.size}`]
857
715
  }), {
858
716
  default: withCtx(() => [
859
717
  renderSlot(_ctx.$slots, "default")
@@ -869,7 +727,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
869
727
  };
870
728
  }
871
729
  });
872
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
730
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
873
731
  __name: "Switch",
874
732
  props: {
875
733
  color: {},
@@ -891,13 +749,8 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
891
749
  setup(__props, { emit: __emit }) {
892
750
  const emits = __emit;
893
751
  const props = __props;
894
- const [forwarded, resetClass] = extractForwardPropsEmits(props, emits, [
895
- "color",
896
- "size",
897
- "variant",
898
- "highContrast",
899
- "radius"
900
- ]);
752
+ const forwarded = useForwardPropsEmitsWithout(props, emits, ["color", "size", "variant", "highContrast", "radius"]);
753
+ const resetClass = buildPropsClass(props, ["size", "variant", "highContrast"]);
901
754
  return (_ctx, _cache) => {
902
755
  return openBlock(), createBlock(unref(SwitchRoot), mergeProps(unref(forwarded), {
903
756
  class: ["ui-Switch", unref(resetClass)],
@@ -912,25 +765,26 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
912
765
  };
913
766
  }
914
767
  });
915
- const _hoisted_1$f = {
916
- key: 0,
917
- xmlns: "http://www.w3.org/2000/svg",
918
- viewBox: "0 0 24 24",
919
- fill: "none",
920
- stroke: "currentColor",
921
- "stroke-width": "4",
922
- "stroke-linecap": "round",
923
- "stroke-linejoin": "round"
768
+ const _hoisted_1$p = {
769
+ width: "9",
770
+ height: "9",
771
+ viewBox: "0 0 9 9",
772
+ fill: "currentcolor",
773
+ xmlns: "http://www.w3.org/2000/svg"
924
774
  };
925
- const _hoisted_2$5 = {
775
+ const _hoisted_2$6 = {
926
776
  key: 0,
927
- d: "M5 12h14"
777
+ fillRule: "evenodd",
778
+ clipRule: "evenodd",
779
+ d: "M0.75 4.5C0.75 4.08579 1.08579 3.75 1.5 3.75H7.5C7.91421 3.75 8.25 4.08579 8.25 4.5C8.25 4.91421 7.91421 5.25 7.5 5.25H1.5C1.08579 5.25 0.75 4.91421 0.75 4.5Z"
928
780
  };
929
781
  const _hoisted_3$2 = {
930
782
  key: 1,
931
- d: "M20 6 9 17l-5-5"
783
+ fillRule: "evenodd",
784
+ clipRule: "evenodd",
785
+ d: "M8.53547 0.62293C8.88226 0.849446 8.97976 1.3142 8.75325 1.66099L4.5083 8.1599C4.38833 8.34356 4.19397 8.4655 3.9764 8.49358C3.75883 8.52167 3.53987 8.45309 3.3772 8.30591L0.616113 5.80777C0.308959 5.52987 0.285246 5.05559 0.563148 4.74844C0.84105 4.44128 1.31533 4.41757 1.62249 4.69547L3.73256 6.60459L7.49741 0.840706C7.72393 0.493916 8.18868 0.396414 8.53547 0.62293Z"
932
786
  };
933
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
787
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
934
788
  __name: "Checkbox",
935
789
  props: {
936
790
  color: {},
@@ -951,235 +805,53 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
951
805
  setup(__props, { emit: __emit }) {
952
806
  const emits = __emit;
953
807
  const props = __props;
954
- const [forwarded, resetClass] = extractForwardPropsEmits(props, emits, ["color", "size", "variant", "highContrast"]);
808
+ const forwarded = useForwardPropsEmitsWithout(props, emits, ["color", "size", "variant", "highContrast"]);
809
+ const resetClass = buildPropsClass(props, ["size", "variant", "highContrast"]);
955
810
  return (_ctx, _cache) => {
956
811
  return openBlock(), createBlock(unref(CheckboxRoot), mergeProps(unref(forwarded), {
957
812
  class: ["ui-Checkbox", unref(resetClass)],
958
813
  "data-accent-color": props.color
959
814
  }), {
960
- default: withCtx(() => [
815
+ default: withCtx(({ state }) => [
961
816
  createVNode(unref(CheckboxIndicator), {
962
817
  class: "ui-CheckboxIndicator",
963
818
  "as-child": ""
964
819
  }, {
965
820
  default: withCtx(() => [
966
- props.modelValue !== false ? (openBlock(), createElementBlock("svg", _hoisted_1$f, [
967
- props.modelValue === "indeterminate" ? (openBlock(), createElementBlock("path", _hoisted_2$5)) : (openBlock(), createElementBlock("path", _hoisted_3$2))
968
- ])) : createCommentVNode("", true)
821
+ (openBlock(), createElementBlock("svg", _hoisted_1$p, [
822
+ state === "indeterminate" ? (openBlock(), createElementBlock("path", _hoisted_2$6)) : (openBlock(), createElementBlock("path", _hoisted_3$2))
823
+ ]))
969
824
  ]),
970
- _: 1
971
- })
825
+ _: 2
826
+ }, 1024)
972
827
  ]),
973
828
  _: 1
974
829
  }, 16, ["class", "data-accent-color"]);
975
830
  };
976
831
  }
977
832
  });
978
- const [injectCheckboxGroupRootContext, provideCheckboxGroupRootContext] = createContext("ui_CheckboxGroupRoot");
979
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
980
- __name: "CheckboxGroupRoot",
981
- props: /* @__PURE__ */ mergeModels({
833
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
834
+ __name: "Toggle",
835
+ props: {
836
+ variant: { default: "soft" },
837
+ color: {},
838
+ radius: {},
839
+ size: { default: "2" },
840
+ highContrast: { type: Boolean },
841
+ defaultValue: { type: Boolean },
842
+ modelValue: { type: [Boolean, null] },
982
843
  disabled: { type: Boolean },
983
- name: {},
984
844
  asChild: { type: Boolean },
985
- as: {}
986
- }, {
987
- "modelValue": {
988
- default: []
989
- },
990
- "modelModifiers": {}
991
- }),
845
+ as: {},
846
+ name: {},
847
+ required: { type: Boolean }
848
+ },
992
849
  emits: ["update:modelValue"],
993
- setup(__props) {
850
+ setup(__props, { emit: __emit }) {
851
+ const emits = __emit;
994
852
  const props = __props;
995
- const { disabled, name } = toRefs(props);
996
- const allValues = ref([]);
997
- const [modelValue, modifiers] = useModel(__props, "modelValue", {
998
- set(value) {
999
- if (modifiers.number) {
1000
- value = value.map((v) => Number(v));
1001
- } else if (modifiers.trim) {
1002
- value = value.map((v) => v.trim());
1003
- }
1004
- return value;
1005
- }
1006
- });
1007
- const selected = computed(() => {
1008
- return modelValue.value || [];
1009
- });
1010
- const checked = computed(() => {
1011
- if (!allValues.value.length) {
1012
- return false;
1013
- }
1014
- if (modelValue.value?.length === allValues.value.length) {
1015
- return true;
1016
- } else if (modelValue.value?.length) {
1017
- return "indeterminate";
1018
- } else {
1019
- return false;
1020
- }
1021
- });
1022
- const removeModelValue = (value) => {
1023
- const index = modelValue.value?.indexOf(value);
1024
- if (index !== -1 && index !== void 0) {
1025
- modelValue.value?.splice(index, 1);
1026
- }
1027
- };
1028
- provideCheckboxGroupRootContext({
1029
- selected,
1030
- checked,
1031
- addModelValue: (value) => {
1032
- if (modelValue.value?.indexOf(value) === -1) {
1033
- modelValue.value?.push(value);
1034
- }
1035
- },
1036
- removeModelValue,
1037
- toggleModelValue: (checked2) => {
1038
- if (checked2) {
1039
- modelValue.value = [...allValues.value];
1040
- } else {
1041
- modelValue.value = [];
1042
- }
1043
- },
1044
- initAllValue: (value) => {
1045
- allValues.value.push(value);
1046
- },
1047
- removeAllValue: (value) => {
1048
- allValues.value.splice(allValues.value.indexOf(value), 1);
1049
- removeModelValue(value);
1050
- },
1051
- disabled,
1052
- name: name?.value
1053
- });
1054
- return (_ctx, _cache) => {
1055
- return openBlock(), createBlock(unref(Primitive), {
1056
- as: props.as,
1057
- "as-child": props.asChild
1058
- }, {
1059
- default: withCtx(() => [
1060
- renderSlot(_ctx.$slots, "default")
1061
- ]),
1062
- _: 3
1063
- }, 8, ["as", "as-child"]);
1064
- };
1065
- }
1066
- });
1067
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
1068
- __name: "CheckboxGroupItem",
1069
- props: {
1070
- value: {},
1071
- color: {},
1072
- variant: {},
1073
- size: {},
1074
- highContrast: { type: Boolean },
1075
- defaultValue: { type: [Boolean, String] },
1076
- modelValue: { type: [Boolean, String, null] },
1077
- disabled: { type: Boolean },
1078
- id: {},
1079
- asChild: { type: Boolean },
1080
- as: {},
1081
- name: {},
1082
- required: { type: Boolean }
1083
- },
1084
- setup(__props) {
1085
- const props = __props;
1086
- const forwarded = useForwardProps(props);
1087
- useForwardExpose();
1088
- const rootContext = injectCheckboxGroupRootContext();
1089
- const disabled = computed(() => {
1090
- return rootContext.disabled?.value || props.disabled;
1091
- });
1092
- const checked = computed(() => {
1093
- return rootContext.selected.value.indexOf(props.value) !== -1;
1094
- });
1095
- const onUpdate = (checked2) => {
1096
- if (checked2) {
1097
- rootContext.addModelValue(props.value);
1098
- } else {
1099
- rootContext.removeModelValue(props.value);
1100
- }
1101
- };
1102
- onMounted(() => {
1103
- rootContext.initAllValue(props.value);
1104
- });
1105
- onBeforeUnmount(() => {
1106
- rootContext.removeAllValue(props.value);
1107
- });
1108
- return (_ctx, _cache) => {
1109
- return openBlock(), createBlock(_sfc_main$H, mergeProps({
1110
- ...unref(forwarded),
1111
- name: props.name || unref(rootContext).name,
1112
- modelValue: checked.value,
1113
- disabled: disabled.value
1114
- }, { "onUpdate:modelValue": onUpdate }), null, 16);
1115
- };
1116
- }
1117
- });
1118
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
1119
- __name: "CheckboxGroupControl",
1120
- props: {
1121
- color: {},
1122
- variant: {},
1123
- size: {},
1124
- highContrast: { type: Boolean },
1125
- defaultValue: { type: [Boolean, String] },
1126
- modelValue: { type: [Boolean, String, null] },
1127
- disabled: { type: Boolean },
1128
- value: {},
1129
- id: {},
1130
- asChild: { type: Boolean },
1131
- as: {},
1132
- name: {},
1133
- required: { type: Boolean }
1134
- },
1135
- setup(__props) {
1136
- const props = __props;
1137
- const forwarded = useForwardProps(props);
1138
- useForwardExpose();
1139
- const rootContext = injectCheckboxGroupRootContext();
1140
- const disabled = computed(() => {
1141
- return rootContext.disabled?.value || props.disabled;
1142
- });
1143
- const toggleModelValue = (checked) => {
1144
- rootContext.toggleModelValue(checked);
1145
- };
1146
- return (_ctx, _cache) => {
1147
- return openBlock(), createBlock(_sfc_main$H, mergeProps({
1148
- ...unref(forwarded),
1149
- name: props.name || unref(rootContext).name,
1150
- modelValue: unref(rootContext).checked.value,
1151
- disabled: disabled.value
1152
- }, { "onUpdate:modelValue": toggleModelValue }), null, 16);
1153
- };
1154
- }
1155
- });
1156
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
1157
- __name: "Toggle",
1158
- props: {
1159
- color: {},
1160
- variant: { default: "soft" },
1161
- size: { default: "2" },
1162
- highContrast: { type: Boolean },
1163
- radius: {},
1164
- defaultValue: { type: Boolean },
1165
- modelValue: { type: [Boolean, null] },
1166
- disabled: { type: Boolean },
1167
- asChild: { type: Boolean },
1168
- as: {},
1169
- name: {},
1170
- required: { type: Boolean }
1171
- },
1172
- emits: ["update:modelValue"],
1173
- setup(__props, { emit: __emit }) {
1174
- const emits = __emit;
1175
- const props = __props;
1176
- const [forwarded, resetClass] = extractForwardPropsEmits(props, emits, [
1177
- "color",
1178
- "size",
1179
- "variant",
1180
- "highContrast",
1181
- "radius"
1182
- ]);
853
+ const forwarded = useForwardPropsEmitsWithout(props, emits, ["color", "size", "variant", "highContrast", "radius"]);
854
+ const resetClass = buildPropsClass(props, ["size", "variant", "highContrast"]);
1183
855
  return (_ctx, _cache) => {
1184
856
  return openBlock(), createBlock(unref(Toggle), mergeProps(unref(forwarded), {
1185
857
  class: ["ui-Toggle", unref(resetClass)],
@@ -1194,11 +866,11 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
1194
866
  };
1195
867
  }
1196
868
  });
1197
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
869
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
1198
870
  __name: "ToggleGroupRoot",
1199
871
  props: {
872
+ variant: { default: "solid" },
1200
873
  color: {},
1201
- variant: { default: "soft" },
1202
874
  size: { default: "2" },
1203
875
  highContrast: { type: Boolean },
1204
876
  radius: {},
@@ -1219,13 +891,8 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
1219
891
  setup(__props, { emit: __emit }) {
1220
892
  const emits = __emit;
1221
893
  const props = __props;
1222
- const [forwarded, resetClass] = extractForwardPropsEmits(props, emits, [
1223
- "color",
1224
- "size",
1225
- "variant",
1226
- "highContrast",
1227
- "radius"
1228
- ]);
894
+ const forwarded = useForwardPropsEmitsWithout(props, emits, ["color", "size", "variant", "highContrast", "radius"]);
895
+ const resetClass = buildPropsClass(props, ["size", "variant", "highContrast"]);
1229
896
  return (_ctx, _cache) => {
1230
897
  return openBlock(), createBlock(unref(ToggleGroupRoot), mergeProps(unref(forwarded), {
1231
898
  class: ["ui-ToggleGroupRoot", unref(resetClass)],
@@ -1240,7 +907,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
1240
907
  };
1241
908
  }
1242
909
  });
1243
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
910
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
1244
911
  __name: "ToggleGroupItem",
1245
912
  props: {
1246
913
  value: {},
@@ -1261,8 +928,8 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
1261
928
  };
1262
929
  }
1263
930
  });
1264
- const _hoisted_1$e = ["data-radius", "data-accent-color"];
1265
- const _hoisted_2$4 = ["id", "type"];
931
+ const _hoisted_1$o = ["data-radius", "data-accent-color"];
932
+ const _hoisted_2$5 = ["id", "type"];
1266
933
  const _hoisted_3$1 = ["id", "type"];
1267
934
  const _hoisted_4 = {
1268
935
  key: 2,
@@ -1274,7 +941,7 @@ const _hoisted_5 = {
1274
941
  class: "ui-TextFieldSlot",
1275
942
  "data-side": "right"
1276
943
  };
1277
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
944
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
1278
945
  ...{
1279
946
  inheritAttrs: false
1280
947
  },
@@ -1320,19 +987,13 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
1320
987
  return value;
1321
988
  }
1322
989
  });
1323
- const resetClass = computed(() => {
1324
- const rv = extractClass(props, ["size", "variant"]);
1325
- if (props.class) {
1326
- rv.push(props.class);
1327
- }
1328
- return rv;
1329
- });
990
+ const resetClass = buildPropsClass(props, ["size", "variant", "class"]);
1330
991
  const onFileChange = () => {
1331
992
  modelValue.value = inputRef.value?.files;
1332
993
  };
1333
994
  return (_ctx, _cache) => {
1334
995
  return openBlock(), createElementBlock("div", {
1335
- class: normalizeClass(["ui-TextField", resetClass.value]),
996
+ class: normalizeClass(["ui-TextField", unref(resetClass)]),
1336
997
  "data-radius": props.radius,
1337
998
  "data-accent-color": props.color,
1338
999
  onPointerdown: onPointerDown
@@ -1345,7 +1006,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
1345
1006
  }, _ctx.$attrs, {
1346
1007
  class: "ui-TextFieldInput",
1347
1008
  onChange: onFileChange
1348
- }), null, 16, _hoisted_2$4)) : withDirectives((openBlock(), createElementBlock("input", mergeProps({
1009
+ }), null, 16, _hoisted_2$5)) : withDirectives((openBlock(), createElementBlock("input", mergeProps({
1349
1010
  key: 1,
1350
1011
  id: props.id,
1351
1012
  ref: "input",
@@ -1360,12 +1021,12 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
1360
1021
  _ctx.$slots.right ? (openBlock(), createElementBlock("div", _hoisted_5, [
1361
1022
  renderSlot(_ctx.$slots, "right")
1362
1023
  ])) : createCommentVNode("", true)
1363
- ], 42, _hoisted_1$e);
1024
+ ], 42, _hoisted_1$o);
1364
1025
  };
1365
1026
  }
1366
1027
  });
1367
- const _hoisted_1$d = ["data-accent-color"];
1368
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
1028
+ const _hoisted_1$n = ["data-accent-color", "data-radius"];
1029
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
1369
1030
  ...{
1370
1031
  inheritAttrs: false
1371
1032
  },
@@ -1387,69 +1048,70 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
1387
1048
  setup(__props) {
1388
1049
  const props = __props;
1389
1050
  const modelValue = useModel(__props, "modelValue");
1390
- const resetClass = computed(() => {
1391
- const rv = extractClass(props, ["size", "variant", "resize"]);
1392
- if (props.class) {
1393
- rv.push(props.class);
1394
- }
1395
- return rv;
1396
- });
1051
+ const resetClass = buildPropsClass(props, ["size", "variant", "resize", "class"]);
1397
1052
  return (_ctx, _cache) => {
1398
1053
  return openBlock(), createElementBlock("div", {
1399
- class: normalizeClass(["ui-TextArea", resetClass.value]),
1400
- "data-accent-color": props.color
1054
+ class: normalizeClass(["ui-TextArea", unref(resetClass)]),
1055
+ "data-accent-color": props.color,
1056
+ "data-radius": props.radius
1401
1057
  }, [
1402
1058
  withDirectives(createElementVNode("textarea", mergeProps({
1403
1059
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event)
1404
1060
  }, _ctx.$attrs, { class: "ui-TextAreaInput" }), null, 16), [
1405
1061
  [vModelText, modelValue.value]
1406
1062
  ])
1407
- ], 10, _hoisted_1$d);
1063
+ ], 10, _hoisted_1$n);
1408
1064
  };
1409
1065
  }
1410
1066
  });
1411
- const _hoisted_1$c = ["data-radius"];
1412
- const _hoisted_2$3 = ["id"];
1413
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
1067
+ const _hoisted_1$m = ["id"];
1068
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
1414
1069
  __name: "ColorField",
1415
1070
  props: /* @__PURE__ */ mergeModels({
1416
1071
  id: {},
1417
1072
  variant: { default: "solid" },
1418
1073
  size: { default: "2" },
1419
- radius: {}
1074
+ radius: {},
1075
+ defaultValue: {},
1076
+ as: { default: "div" }
1420
1077
  }, {
1421
- "modelValue": {
1422
- default: "#000000"
1423
- },
1078
+ "modelValue": { required: false },
1424
1079
  "modelModifiers": {}
1425
1080
  }),
1426
1081
  emits: ["update:modelValue"],
1427
1082
  setup(__props) {
1428
1083
  const props = __props;
1429
1084
  const modelValue = useModel(__props, "modelValue");
1430
- const resetClass = computed(() => {
1431
- return extractClass(props, ["size", "variant"]);
1085
+ const resetClass = buildPropsClass(props, ["size", "variant"]);
1086
+ onMounted(() => {
1087
+ if (props.defaultValue && !modelValue.value) {
1088
+ modelValue.value = props.defaultValue;
1089
+ }
1432
1090
  });
1433
1091
  return (_ctx, _cache) => {
1434
- return openBlock(), createElementBlock("div", {
1435
- class: normalizeClass(["ui-ColorField", resetClass.value]),
1092
+ return openBlock(), createBlock(unref(Primitive), {
1093
+ class: normalizeClass(["ui-ColorField", unref(resetClass)]),
1094
+ as: props.as,
1436
1095
  "data-radius": props.radius,
1437
- style: normalizeStyle({ "--color-field-border-color": modelValue.value })
1438
- }, [
1439
- withDirectives(createElementVNode("input", {
1440
- id: props.id,
1441
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event),
1442
- class: "ui-ColorFieldInput",
1443
- type: "color"
1444
- }, null, 8, _hoisted_2$3), [
1445
- [vModelText, modelValue.value]
1446
- ])
1447
- ], 14, _hoisted_1$c);
1096
+ style: normalizeStyle({ "--color-field-color": modelValue.value })
1097
+ }, {
1098
+ default: withCtx(() => [
1099
+ withDirectives(createElementVNode("input", {
1100
+ id: props.id,
1101
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event),
1102
+ class: "ui-ColorFieldInput",
1103
+ type: "color"
1104
+ }, null, 8, _hoisted_1$m), [
1105
+ [vModelText, modelValue.value]
1106
+ ])
1107
+ ]),
1108
+ _: 1
1109
+ }, 8, ["as", "class", "data-radius", "style"]);
1448
1110
  };
1449
1111
  }
1450
1112
  });
1451
- const [injectSelectRootContext, provideSelectRootContext] = createContext("ui_SelectRoot");
1452
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
1113
+ const [injectSelectRootContext, provideSelectRootContext] = createContext("ui:SelectRoot");
1114
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
1453
1115
  __name: "SelectRoot",
1454
1116
  props: {
1455
1117
  size: { default: "2" },
@@ -1472,7 +1134,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
1472
1134
  const props = __props;
1473
1135
  const emits = __emit;
1474
1136
  const { size, color, highContrast } = toRefs(props);
1475
- const forwarded = useForwardPropsEmits(props, emits, ["size", "color", "highContrast"]);
1137
+ const forwarded = useForwardPropsEmitsWithout(props, emits, ["size", "color", "highContrast"]);
1476
1138
  provideSelectRootContext({
1477
1139
  size,
1478
1140
  color,
@@ -1488,21 +1150,22 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
1488
1150
  };
1489
1151
  }
1490
1152
  });
1491
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
1153
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
1492
1154
  ...{
1493
1155
  inheritAttrs: false
1494
1156
  },
1495
1157
  __name: "SelectContent",
1496
1158
  props: {
1497
- to: {},
1498
1159
  variant: { default: "solid" },
1499
1160
  forceMount: { type: Boolean },
1500
1161
  position: {},
1501
1162
  bodyLock: { type: Boolean },
1502
1163
  side: {},
1503
1164
  sideOffset: {},
1165
+ sideFlip: { type: Boolean },
1504
1166
  align: {},
1505
1167
  alignOffset: {},
1168
+ alignFlip: { type: Boolean },
1506
1169
  avoidCollisions: { type: Boolean },
1507
1170
  collisionBoundary: {},
1508
1171
  collisionPadding: {},
@@ -1533,18 +1196,15 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
1533
1196
  return rv;
1534
1197
  });
1535
1198
  return (_ctx, _cache) => {
1536
- return openBlock(), createBlock(unref(SelectPortal), {
1537
- to: props.to
1538
- }, {
1199
+ return openBlock(), createBlock(unref(SelectPortal), null, {
1539
1200
  default: withCtx(() => [
1540
- createVNode(_sfc_main$O, {
1201
+ createVNode(_sfc_main$S, {
1541
1202
  "accent-color": unref(context).color.value
1542
1203
  }, {
1543
1204
  default: withCtx(() => [
1544
1205
  createVNode(unref(SelectContent), mergeProps({ ref: unref(forwardRef) }, {
1545
1206
  ..._ctx.$attrs,
1546
1207
  ...unref(forwarded),
1547
- to: void 0,
1548
1208
  variant: void 0
1549
1209
  }, {
1550
1210
  class: ["ui-SelectContent", contentClass.value]
@@ -1592,12 +1252,28 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
1592
1252
  }, 8, ["accent-color"])
1593
1253
  ]),
1594
1254
  _: 3
1595
- }, 8, ["to"]);
1255
+ });
1596
1256
  };
1597
1257
  }
1598
1258
  });
1599
- const _hoisted_1$b = { class: "ui-SelectTriggerInner" };
1600
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
1259
+ const _hoisted_1$l = {
1260
+ viewBox: "0 0 15 15",
1261
+ width: "1em",
1262
+ height: "1em"
1263
+ };
1264
+ function render$8(_ctx, _cache) {
1265
+ return openBlock(), createElementBlock("svg", _hoisted_1$l, _cache[0] || (_cache[0] = [
1266
+ createElementVNode("path", {
1267
+ fill: "currentColor",
1268
+ "fill-rule": "evenodd",
1269
+ d: "M3.135 6.158a.5.5 0 0 1 .707-.023L7.5 9.565l3.658-3.43a.5.5 0 0 1 .684.73l-4 3.75a.5.5 0 0 1-.684 0l-4-3.75a.5.5 0 0 1-.023-.707",
1270
+ "clip-rule": "evenodd"
1271
+ }, null, -1)
1272
+ ]));
1273
+ }
1274
+ const ChevronDownIcon = markRaw({ name: "radix-icons-chevron-down", render: render$8 });
1275
+ const _hoisted_1$k = { class: "ui-SelectTriggerInner" };
1276
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
1601
1277
  __name: "SelectTrigger",
1602
1278
  props: {
1603
1279
  variant: { default: "surface" },
@@ -1622,7 +1298,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
1622
1298
  "data-radius": props.radius
1623
1299
  }, {
1624
1300
  default: withCtx(() => [
1625
- createElementVNode("span", _hoisted_1$b, [
1301
+ createElementVNode("span", _hoisted_1$k, [
1626
1302
  createVNode(unref(SelectValue), {
1627
1303
  placeholder: props.placeholder
1628
1304
  }, {
@@ -1642,10 +1318,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
1642
1318
  ]),
1643
1319
  createVNode(unref(SelectIcon), { "as-child": "" }, {
1644
1320
  default: withCtx(() => [
1645
- createVNode(unref(Icon), {
1646
- class: "ui-SelectIcon",
1647
- icon: "radix-icons:chevron-down"
1648
- })
1321
+ createVNode(unref(ChevronDownIcon), { class: "ui-SelectIcon" })
1649
1322
  ]),
1650
1323
  _: 1
1651
1324
  })
@@ -1655,7 +1328,23 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
1655
1328
  };
1656
1329
  }
1657
1330
  });
1658
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
1331
+ const _hoisted_1$j = {
1332
+ viewBox: "0 0 15 15",
1333
+ width: "1em",
1334
+ height: "1em"
1335
+ };
1336
+ function render$7(_ctx, _cache) {
1337
+ return openBlock(), createElementBlock("svg", _hoisted_1$j, _cache[0] || (_cache[0] = [
1338
+ createElementVNode("path", {
1339
+ fill: "currentColor",
1340
+ "fill-rule": "evenodd",
1341
+ d: "M11.467 3.727c.289.189.37.576.181.865l-4.25 6.5a.625.625 0 0 1-.944.12l-2.75-2.5a.625.625 0 0 1 .841-.925l2.208 2.007l3.849-5.886a.625.625 0 0 1 .865-.181",
1342
+ "clip-rule": "evenodd"
1343
+ }, null, -1)
1344
+ ]));
1345
+ }
1346
+ const CheckIcon$1 = markRaw({ name: "radix-icons-check", render: render$7 });
1347
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
1659
1348
  __name: "SelectItem",
1660
1349
  props: {
1661
1350
  value: {},
@@ -1673,7 +1362,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
1673
1362
  default: withCtx(() => [
1674
1363
  createVNode(unref(SelectItemIndicator), { class: "ui-SelectItemIndicator" }, {
1675
1364
  default: withCtx(() => [
1676
- createVNode(unref(Icon), { icon: "radix-icons:check" })
1365
+ createVNode(unref(CheckIcon$1))
1677
1366
  ]),
1678
1367
  _: 1
1679
1368
  }),
@@ -1689,7 +1378,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
1689
1378
  };
1690
1379
  }
1691
1380
  });
1692
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
1381
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
1693
1382
  __name: "SelectLabel",
1694
1383
  props: {
1695
1384
  for: {},
@@ -1710,24 +1399,17 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
1710
1399
  };
1711
1400
  }
1712
1401
  });
1713
- const _export_sfc = (sfc, props) => {
1714
- const target = sfc.__vccOpts || sfc;
1715
- for (const [key, val] of props) {
1716
- target[key] = val;
1717
- }
1718
- return target;
1719
- };
1720
- const _sfc_main$s = {};
1721
- const _hoisted_1$a = {
1402
+ const _sfc_main$y = {};
1403
+ const _hoisted_1$i = {
1722
1404
  class: "ui-SelectSeparator",
1723
1405
  "aria-hidden": "true"
1724
1406
  };
1725
- function _sfc_render(_ctx, _cache) {
1726
- return openBlock(), createElementBlock("div", _hoisted_1$a);
1407
+ function _sfc_render$1(_ctx, _cache) {
1408
+ return openBlock(), createElementBlock("div", _hoisted_1$i);
1727
1409
  }
1728
- const SelectSeparator = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render]]);
1729
- const [injectComboboxRootContext, provideComboboxRootContext] = createContext("ui_ComboboxRoot");
1730
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
1410
+ const SelectSeparator = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$1]]);
1411
+ const [injectComboboxRootContext, provideComboboxRootContext] = createContext("ui:ComboboxRoot");
1412
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
1731
1413
  __name: "ComboboxRoot",
1732
1414
  props: {
1733
1415
  size: { default: "2" },
@@ -1737,6 +1419,8 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
1737
1419
  defaultOpen: { type: Boolean },
1738
1420
  resetSearchTermOnBlur: { type: Boolean },
1739
1421
  resetSearchTermOnSelect: { type: Boolean },
1422
+ openOnFocus: { type: Boolean },
1423
+ openOnClick: { type: Boolean },
1740
1424
  ignoreFilter: { type: Boolean },
1741
1425
  modelValue: {},
1742
1426
  defaultValue: {},
@@ -1755,7 +1439,8 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
1755
1439
  const props = __props;
1756
1440
  const emits = __emit;
1757
1441
  const { size, color, highContrast } = toRefs(props);
1758
- const [forwarded, resetClass] = extractForwardPropsEmits(props, emits, ["size", "color", "highContrast"]);
1442
+ const forwarded = useForwardPropsEmitsWithout(props, emits, ["size", "color", "highContrast"]);
1443
+ const resetClass = buildPropsClass(props, ["size", "highContrast", "multiple"]);
1759
1444
  provideComboboxRootContext({
1760
1445
  size,
1761
1446
  color,
@@ -1773,13 +1458,29 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
1773
1458
  };
1774
1459
  }
1775
1460
  });
1776
- const _hoisted_1$9 = {
1461
+ const _hoisted_1$h = {
1462
+ viewBox: "0 0 15 15",
1463
+ width: "1em",
1464
+ height: "1em"
1465
+ };
1466
+ function render$6(_ctx, _cache) {
1467
+ return openBlock(), createElementBlock("svg", _hoisted_1$h, _cache[0] || (_cache[0] = [
1468
+ createElementVNode("path", {
1469
+ fill: "currentColor",
1470
+ "fill-rule": "evenodd",
1471
+ d: "M11.782 4.032a.575.575 0 1 0-.813-.814L7.5 6.687L4.032 3.218a.575.575 0 0 0-.814.814L6.687 7.5l-3.469 3.468a.575.575 0 0 0 .814.814L7.5 8.313l3.469 3.469a.575.575 0 0 0 .813-.814L8.313 7.5z",
1472
+ "clip-rule": "evenodd"
1473
+ }, null, -1)
1474
+ ]));
1475
+ }
1476
+ const CrossIcon = markRaw({ name: "radix-icons-cross-2", render: render$6 });
1477
+ const _hoisted_1$g = {
1777
1478
  key: 0,
1778
1479
  class: "ui-ComboboxValues"
1779
1480
  };
1780
- const _hoisted_2$2 = ["aria-current", "value"];
1481
+ const _hoisted_2$4 = ["aria-current", "value"];
1781
1482
  const _hoisted_3 = ["onClick"];
1782
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
1483
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
1783
1484
  ...{
1784
1485
  inheritAttrs: false
1785
1486
  },
@@ -1800,7 +1501,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
1800
1501
  const context = injectComboboxRootContext$1();
1801
1502
  const props = __props;
1802
1503
  const emits = __emit;
1803
- const forwarded = useForwardPropsEmits$1(props, emits);
1504
+ const forwarded = useForwardPropsEmits(props, emits);
1804
1505
  const activeIndex = ref(-1);
1805
1506
  const values = computed(() => {
1806
1507
  return context.modelValue.value;
@@ -1818,8 +1519,8 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
1818
1519
  activeIndex.value = -1;
1819
1520
  };
1820
1521
  const onInputKeydown = (event) => {
1821
- const value = event.target.value;
1822
- if (!value && (event.key === "Delete" || event.key === "Backspace")) {
1522
+ const input = event.target;
1523
+ if (!input.value && (event.key === "Delete" || event.key === "Backspace")) {
1823
1524
  if (activeIndex.value !== -1) {
1824
1525
  onDeleteIndex(activeIndex.value);
1825
1526
  } else {
@@ -1828,6 +1529,10 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
1828
1529
  activeIndex.value = -1;
1829
1530
  }, 800);
1830
1531
  }
1532
+ } else if (input.value && event.key === "Enter") {
1533
+ setTimeout(() => {
1534
+ input.value = "";
1535
+ });
1831
1536
  }
1832
1537
  };
1833
1538
  watch(values, () => {
@@ -1841,7 +1546,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
1841
1546
  "data-multiple": unref(context).multiple.value || void 0
1842
1547
  }, {
1843
1548
  default: withCtx(() => [
1844
- unref(context).multiple.value ? (openBlock(), createElementBlock("div", _hoisted_1$9, [
1549
+ unref(context).multiple.value ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
1845
1550
  (openBlock(true), createElementBlock(Fragment, null, renderList(values.value, (item, index) => {
1846
1551
  return openBlock(), createElementBlock("div", {
1847
1552
  key: displayValue(item),
@@ -1857,9 +1562,9 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
1857
1562
  tabindex: "-1",
1858
1563
  onClick: withModifiers(($event) => onDeleteIndex(index), ["prevent"])
1859
1564
  }, [
1860
- createVNode(unref(Icon), { icon: "lucide:x" })
1565
+ createVNode(unref(CrossIcon))
1861
1566
  ], 8, _hoisted_3)
1862
- ], 8, _hoisted_2$2);
1567
+ ], 8, _hoisted_2$4);
1863
1568
  }), 128)),
1864
1569
  createVNode(unref(ComboboxInput), mergeProps({
1865
1570
  ..._ctx.$attrs,
@@ -1881,7 +1586,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
1881
1586
  }), null, 16)),
1882
1587
  createVNode(unref(ComboboxTrigger), { class: "ui-ComboboxTrigger" }, {
1883
1588
  default: withCtx(() => [
1884
- createVNode(unref(Icon), { icon: "radix-icons:chevron-down" })
1589
+ createVNode(unref(ChevronDownIcon))
1885
1590
  ]),
1886
1591
  _: 1
1887
1592
  })
@@ -1891,21 +1596,22 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
1891
1596
  };
1892
1597
  }
1893
1598
  });
1894
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
1599
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
1895
1600
  ...{
1896
1601
  inheritAttrs: false
1897
1602
  },
1898
1603
  __name: "ComboboxContent",
1899
1604
  props: {
1900
- to: {},
1901
1605
  variant: { default: "solid" },
1902
1606
  forceMount: { type: Boolean },
1903
1607
  position: { default: "popper" },
1904
1608
  bodyLock: { type: Boolean },
1905
1609
  side: {},
1906
- sideOffset: {},
1610
+ sideOffset: { default: 5 },
1611
+ sideFlip: { type: Boolean },
1907
1612
  align: {},
1908
1613
  alignOffset: {},
1614
+ alignFlip: { type: Boolean },
1909
1615
  avoidCollisions: { type: Boolean },
1910
1616
  collisionBoundary: {},
1911
1617
  collisionPadding: {},
@@ -1926,7 +1632,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
1926
1632
  const { forwardRef } = useForwardExpose();
1927
1633
  const props = __props;
1928
1634
  const emits = __emit;
1929
- const forwarded = useForwardPropsEmits$1(props, emits);
1635
+ const forwarded = useForwardPropsEmits(props, emits);
1930
1636
  const context = injectComboboxRootContext();
1931
1637
  const contentClass = computed(() => {
1932
1638
  const rv = ["r-size-" + context.size.value, "r-variant-" + props.variant];
@@ -1936,11 +1642,9 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
1936
1642
  return rv;
1937
1643
  });
1938
1644
  return (_ctx, _cache) => {
1939
- return openBlock(), createBlock(unref(ComboboxPortal), {
1940
- to: props.to
1941
- }, {
1645
+ return openBlock(), createBlock(unref(ComboboxPortal), null, {
1942
1646
  default: withCtx(() => [
1943
- createVNode(_sfc_main$O, {
1647
+ createVNode(_sfc_main$S, {
1944
1648
  "accent-color": unref(context).color.value
1945
1649
  }, {
1946
1650
  default: withCtx(() => [
@@ -1996,11 +1700,11 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
1996
1700
  }, 8, ["accent-color"])
1997
1701
  ]),
1998
1702
  _: 3
1999
- }, 8, ["to"]);
1703
+ });
2000
1704
  };
2001
1705
  }
2002
1706
  });
2003
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
1707
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
2004
1708
  __name: "ComboboxItem",
2005
1709
  props: {
2006
1710
  textValue: {},
@@ -2017,7 +1721,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
2017
1721
  default: withCtx(() => [
2018
1722
  createVNode(unref(ComboboxItemIndicator), { class: "ui-ComboboxItemIndicator" }, {
2019
1723
  default: withCtx(() => [
2020
- createVNode(unref(Icon), { icon: "radix-icons:check" })
1724
+ createVNode(unref(CheckIcon$1))
2021
1725
  ]),
2022
1726
  _: 1
2023
1727
  }),
@@ -2028,7 +1732,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
2028
1732
  };
2029
1733
  }
2030
1734
  });
2031
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
1735
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
2032
1736
  __name: "ComboboxLabel",
2033
1737
  props: {
2034
1738
  for: {},
@@ -2049,13 +1753,26 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
2049
1753
  };
2050
1754
  }
2051
1755
  });
2052
- const _hoisted_1$8 = ["data-accent-color"];
2053
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
1756
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
1757
+ __name: "ComboboxEmpty",
1758
+ setup(__props) {
1759
+ return (_ctx, _cache) => {
1760
+ return openBlock(), createBlock(unref(ComboboxEmpty), { class: "ui-ComboboxEmpty" }, {
1761
+ default: withCtx(() => [
1762
+ renderSlot(_ctx.$slots, "default")
1763
+ ]),
1764
+ _: 3
1765
+ });
1766
+ };
1767
+ }
1768
+ });
1769
+ const _hoisted_1$f = ["data-accent-color"];
1770
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
2054
1771
  __name: "Radio",
2055
1772
  props: /* @__PURE__ */ mergeModels({
1773
+ variant: { default: "surface" },
2056
1774
  color: {},
2057
1775
  size: { default: "2" },
2058
- variant: { default: "surface" },
2059
1776
  highContrast: { type: Boolean }
2060
1777
  }, {
2061
1778
  "modelValue": {
@@ -2077,28 +1794,25 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
2077
1794
  return value;
2078
1795
  }
2079
1796
  });
2080
- const resetClass = computed(() => {
2081
- return extractClass(props, ["size", "variant", "highContrast"]);
2082
- });
1797
+ const resetClass = buildPropsClass(props, ["size", "variant", "highContrast"]);
2083
1798
  return (_ctx, _cache) => {
2084
1799
  return withDirectives((openBlock(), createElementBlock("input", {
2085
1800
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null),
2086
- class: normalizeClass(["ui-Radio", resetClass.value]),
1801
+ class: normalizeClass(["ui-RadioBase ui-Radio", unref(resetClass)]),
2087
1802
  type: "radio",
2088
1803
  "data-accent-color": props.color
2089
- }, null, 10, _hoisted_1$8)), [
1804
+ }, null, 10, _hoisted_1$f)), [
2090
1805
  [vModelRadio, unref(modelValue)]
2091
1806
  ]);
2092
1807
  };
2093
1808
  }
2094
1809
  });
2095
- const [injectRadioGroupRootContext, provideRadioGroupRootContext] = createContext("ui_RadioGroupRoot");
2096
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
1810
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
2097
1811
  __name: "RadioGroupRoot",
2098
1812
  props: {
2099
- color: {},
2100
- size: { default: "2" },
2101
1813
  variant: { default: "surface" },
1814
+ size: { default: "2" },
1815
+ color: {},
2102
1816
  highContrast: { type: Boolean },
2103
1817
  modelValue: {},
2104
1818
  defaultValue: {},
@@ -2115,23 +1829,29 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
2115
1829
  setup(__props, { emit: __emit }) {
2116
1830
  const emits = __emit;
2117
1831
  const props = __props;
2118
- const forwarded = useForwardPropsEmits(props, emits, ["color", "size", "variant", "highContrast"]);
2119
- const { size, variant, color, highContrast } = toRefs(props);
2120
- provideRadioGroupRootContext({ size, variant, color, highContrast });
1832
+ const forwarded = useForwardPropsEmitsWithout(props, emits, ["color", "size", "variant", "highContrast"]);
1833
+ const resetClass = buildPropsClass(props, ["size", "variant", "highContrast"]);
2121
1834
  return (_ctx, _cache) => {
2122
- return openBlock(), createBlock(unref(RadioGroupRoot), mergeProps({ class: "ui-RadioGroupRoot" }, unref(forwarded)), {
1835
+ return openBlock(), createBlock(unref(RadioGroupRoot), mergeProps({
1836
+ class: ["ui-RadioGroupRoot", unref(resetClass)],
1837
+ "data-accent-color": props.color
1838
+ }, unref(forwarded)), {
2123
1839
  default: withCtx(() => [
2124
1840
  renderSlot(_ctx.$slots, "default")
2125
1841
  ]),
2126
1842
  _: 3
2127
- }, 16);
1843
+ }, 16, ["class", "data-accent-color"]);
2128
1844
  };
2129
1845
  }
2130
1846
  });
2131
- const _hoisted_1$7 = { class: "ui-RadioGroupItem" };
2132
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
1847
+ const _hoisted_1$e = { class: "ui-RadioGroupItem" };
1848
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
2133
1849
  __name: "RadioGroupItem",
2134
1850
  props: {
1851
+ color: {},
1852
+ size: {},
1853
+ variant: {},
1854
+ highContrast: { type: Boolean },
2135
1855
  id: {},
2136
1856
  value: {},
2137
1857
  disabled: { type: Boolean },
@@ -2142,72 +1862,88 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
2142
1862
  },
2143
1863
  setup(__props) {
2144
1864
  const props = __props;
2145
- const forwarded = useForwardProps(props);
2146
- const rootContext = injectRadioGroupRootContext();
2147
- const resetClass = computed(() => {
2148
- const rv = [
2149
- `r-size-${rootContext.size.value}`,
2150
- `r-variant-${rootContext.variant.value}`
2151
- ];
2152
- if (rootContext.highContrast?.value) {
2153
- rv.push("r-high-contrast");
2154
- }
2155
- return rv;
2156
- });
1865
+ const forwarded = useForwardPropsWithout(props, ["color", "size", "variant", "highContrast"]);
1866
+ const resetClass = buildPropsClass(props, ["size", "variant", "highContrast"]);
2157
1867
  return (_ctx, _cache) => {
2158
- return openBlock(), createElementBlock("label", _hoisted_1$7, [
1868
+ return openBlock(), createElementBlock("label", _hoisted_1$e, [
2159
1869
  createVNode(unref(RadioGroupItem), mergeProps({
2160
- class: ["ui-Radio", resetClass.value],
2161
- "data-accent-color": unref(rootContext).color?.value
1870
+ class: ["ui-RadioBase ui-RadioGroupItemIndicator", unref(resetClass)],
1871
+ "data-accent-color": props.color
2162
1872
  }, unref(forwarded)), null, 16, ["class", "data-accent-color"]),
2163
1873
  renderSlot(_ctx.$slots, "default")
2164
1874
  ]);
2165
1875
  };
2166
1876
  }
2167
1877
  });
2168
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
2169
- __name: "RadioCardsItem",
1878
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
1879
+ __name: "RadioCardsRoot",
2170
1880
  props: {
2171
- id: {},
2172
- value: {},
1881
+ variant: { default: "surface" },
1882
+ size: { default: "2" },
1883
+ color: {},
1884
+ highContrast: { type: Boolean },
1885
+ modelValue: {},
1886
+ defaultValue: {},
2173
1887
  disabled: { type: Boolean },
1888
+ orientation: {},
1889
+ dir: {},
1890
+ loop: { type: Boolean },
2174
1891
  asChild: { type: Boolean },
2175
1892
  as: {},
2176
1893
  name: {},
2177
1894
  required: { type: Boolean }
2178
1895
  },
2179
- setup(__props) {
1896
+ emits: ["update:modelValue"],
1897
+ setup(__props, { emit: __emit }) {
1898
+ const emits = __emit;
2180
1899
  const props = __props;
2181
- const forwarded = useForwardProps(props);
2182
- useForwardExpose();
2183
- const rootContext = injectRadioGroupRootContext();
1900
+ const forwarded = useForwardPropsEmitsWithout(props, emits, ["color", "size", "variant", "highContrast"]);
1901
+ const resetClass = buildPropsClass(props, ["size", "variant", "highContrast"]);
2184
1902
  return (_ctx, _cache) => {
2185
- return openBlock(), createBlock(unref(RadioGroupItem), mergeProps({
2186
- class: "ui-RadioCardsItem",
2187
- "data-accent-color": unref(rootContext).color?.value,
2188
- "data-size": unref(rootContext).size.value,
2189
- "data-variant": unref(rootContext).variant.value,
2190
- "data-high-contrast": unref(rootContext).highContrast?.value
2191
- }, { ...unref(forwarded), asChild: false }), {
1903
+ return openBlock(), createBlock(unref(RadioGroupRoot), mergeProps({
1904
+ class: ["ui-RadioCardsRoot", unref(resetClass)],
1905
+ "data-accent-color": props.color
1906
+ }, unref(forwarded)), {
2192
1907
  default: withCtx(() => [
2193
- createVNode(_sfc_main$W, {
2194
- "as-child": unref(forwarded).asChild
2195
- }, {
2196
- default: withCtx(() => [
2197
- renderSlot(_ctx.$slots, "default")
2198
- ]),
2199
- _: 3
2200
- }, 8, ["as-child"])
1908
+ renderSlot(_ctx.$slots, "default")
2201
1909
  ]),
2202
1910
  _: 3
2203
- }, 16, ["data-accent-color", "data-size", "data-variant", "data-high-contrast"]);
1911
+ }, 16, ["class", "data-accent-color"]);
2204
1912
  };
2205
1913
  }
2206
1914
  });
2207
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
2208
- __name: "RadioTabsList",
1915
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
1916
+ __name: "RadioCardsItem",
1917
+ props: {
1918
+ id: {},
1919
+ value: {},
1920
+ disabled: { type: Boolean },
1921
+ asChild: { type: Boolean },
1922
+ as: {},
1923
+ name: {},
1924
+ required: { type: Boolean }
1925
+ },
1926
+ setup(__props) {
1927
+ const props = __props;
1928
+ const forwarded = useForwardProps(props);
1929
+ useForwardExpose();
1930
+ return (_ctx, _cache) => {
1931
+ return openBlock(), createBlock(unref(RadioGroupItem), mergeProps({ class: "ui-RadioCardsItem ui-BaseCard" }, { ...unref(forwarded), asChild: false }), {
1932
+ default: withCtx(() => [
1933
+ renderSlot(_ctx.$slots, "default")
1934
+ ]),
1935
+ _: 3
1936
+ }, 16);
1937
+ };
1938
+ }
1939
+ });
1940
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
1941
+ __name: "RadioTabsRoot",
2209
1942
  props: {
1943
+ variant: { default: "classic" },
2210
1944
  size: { default: "2" },
1945
+ color: {},
1946
+ radius: {},
2211
1947
  modelValue: {},
2212
1948
  defaultValue: {},
2213
1949
  disabled: { type: Boolean },
@@ -2223,34 +1959,60 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
2223
1959
  setup(__props, { emit: __emit }) {
2224
1960
  const emits = __emit;
2225
1961
  const props = __props;
2226
- const [forwarded, resetClass] = extractForwardPropsEmits(props, emits, ["size"]);
1962
+ const forwarded = useForwardPropsEmitsWithout(props, emits, ["size", "color", "radius", "variant"]);
1963
+ const resetClass = buildPropsClass(props, ["size", "variant"]);
2227
1964
  return (_ctx, _cache) => {
2228
1965
  return openBlock(), createBlock(unref(RadioGroupRoot), mergeProps(unref(forwarded), {
2229
- class: ["ui-RadioTabsList", unref(resetClass)]
1966
+ class: ["ui-RadioTabsRoot", unref(resetClass)],
1967
+ "data-accent-color": props.color,
1968
+ "data-radius": props.radius
2230
1969
  }), {
2231
1970
  default: withCtx(() => [
2232
1971
  renderSlot(_ctx.$slots, "default")
2233
1972
  ]),
2234
1973
  _: 3
2235
- }, 16, ["class"]);
1974
+ }, 16, ["data-accent-color", "data-radius", "class"]);
2236
1975
  };
2237
1976
  }
2238
1977
  });
2239
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
1978
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
1979
+ __name: "RadioTabsItem",
1980
+ props: {
1981
+ id: {},
1982
+ value: {},
1983
+ disabled: { type: Boolean },
1984
+ asChild: { type: Boolean },
1985
+ as: {},
1986
+ name: {},
1987
+ required: { type: Boolean }
1988
+ },
1989
+ setup(__props) {
1990
+ const props = __props;
1991
+ const forwarded = useForwardProps(props);
1992
+ return (_ctx, _cache) => {
1993
+ return openBlock(), createBlock(unref(RadioGroupItem), mergeProps({ class: "ui-RadioTabsItem" }, unref(forwarded)), {
1994
+ default: withCtx(() => [
1995
+ renderSlot(_ctx.$slots, "default")
1996
+ ]),
1997
+ _: 3
1998
+ }, 16);
1999
+ };
2000
+ }
2001
+ });
2002
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
2240
2003
  __name: "TabsList",
2241
2004
  props: {
2242
2005
  size: { default: "2" },
2243
2006
  color: {},
2007
+ variant: { default: "outline" },
2244
2008
  highContrast: { type: Boolean }
2245
2009
  },
2246
2010
  setup(__props) {
2247
2011
  const props = __props;
2248
- const resetClass = computed(() => {
2249
- return extractClass(props, ["size", "highContrast"]);
2250
- });
2012
+ const resetClass = buildPropsClass(props, ["variant", "size", "highContrast"]);
2251
2013
  return (_ctx, _cache) => {
2252
2014
  return openBlock(), createBlock(unref(TabsList), {
2253
- class: normalizeClass(["ui-TabList", resetClass.value]),
2015
+ class: normalizeClass(["ui-TabList", unref(resetClass)]),
2254
2016
  "data-accent-color": props.color
2255
2017
  }, {
2256
2018
  default: withCtx(() => [
@@ -2262,9 +2024,9 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
2262
2024
  };
2263
2025
  }
2264
2026
  });
2265
- const _hoisted_1$6 = { class: "ui-TabTriggerInner" };
2266
- const _hoisted_2$1 = { class: "ui-TabTriggerInnerHidden" };
2267
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
2027
+ const _hoisted_1$d = { class: "ui-TabTriggerInner" };
2028
+ const _hoisted_2$3 = { class: "ui-TabTriggerInnerHidden" };
2029
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
2268
2030
  __name: "TabsTrigger",
2269
2031
  props: {
2270
2032
  value: {},
@@ -2278,10 +2040,10 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
2278
2040
  return (_ctx, _cache) => {
2279
2041
  return openBlock(), createBlock(unref(TabsTrigger), mergeProps(unref(forwarded), { class: "ui-TabTrigger" }), {
2280
2042
  default: withCtx(() => [
2281
- createElementVNode("span", _hoisted_1$6, [
2043
+ createElementVNode("span", _hoisted_1$d, [
2282
2044
  renderSlot(_ctx.$slots, "default")
2283
2045
  ]),
2284
- createElementVNode("span", _hoisted_2$1, [
2046
+ createElementVNode("span", _hoisted_2$3, [
2285
2047
  renderSlot(_ctx.$slots, "default")
2286
2048
  ])
2287
2049
  ]),
@@ -2290,7 +2052,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
2290
2052
  };
2291
2053
  }
2292
2054
  });
2293
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
2055
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
2294
2056
  ...{
2295
2057
  inheritAttrs: false
2296
2058
  },
@@ -2321,7 +2083,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
2321
2083
  setup(__props, { emit: __emit }) {
2322
2084
  const props = __props;
2323
2085
  const emits = __emit;
2324
- const [forwarded, resetClass] = extractForwardPropsEmits(props, emits, ["radius", "color", "size"]);
2086
+ const forwarded = useForwardPropsEmitsWithout(props, emits, ["radius", "color", "size"]);
2087
+ const resetClass = buildPropsClass(props, ["radius", "size"]);
2325
2088
  return (_ctx, _cache) => {
2326
2089
  return openBlock(), createBlock(unref(EditableRoot), mergeProps({
2327
2090
  class: ["ui-Editable", unref(resetClass)],
@@ -2341,14 +2104,17 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
2341
2104
  };
2342
2105
  }
2343
2106
  });
2344
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
2107
+ const [injectAccordionRootContext, provideAccordionRootContext] = createContext("ui:AccordionRoot");
2108
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
2345
2109
  __name: "AccordionRoot",
2346
2110
  props: {
2347
2111
  size: { default: "1" },
2112
+ indicatorSide: { default: "right" },
2113
+ indicatorIcon: { default: "chevron" },
2114
+ orientation: {},
2348
2115
  collapsible: { type: Boolean },
2349
2116
  disabled: { type: Boolean },
2350
2117
  dir: {},
2351
- orientation: {},
2352
2118
  unmountOnHide: { type: Boolean },
2353
2119
  asChild: { type: Boolean },
2354
2120
  as: {},
@@ -2360,7 +2126,13 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
2360
2126
  setup(__props, { emit: __emit }) {
2361
2127
  const props = __props;
2362
2128
  const emits = __emit;
2363
- const [forwarded, resetClass] = extractForwardPropsEmits(props, emits, ["size"]);
2129
+ const { indicatorSide, indicatorIcon } = toRefs(props);
2130
+ const forwarded = useForwardPropsEmitsWithout(props, emits, ["size", "indicatorSide", "indicatorIcon"]);
2131
+ const resetClass = buildPropsClass(props, ["size"]);
2132
+ provideAccordionRootContext({
2133
+ indicatorSide,
2134
+ indicatorIcon
2135
+ });
2364
2136
  return (_ctx, _cache) => {
2365
2137
  return openBlock(), createBlock(unref(AccordionRoot), mergeProps(unref(forwarded), {
2366
2138
  class: ["ui-AccordionRoot", unref(resetClass)]
@@ -2373,20 +2145,28 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
2373
2145
  };
2374
2146
  }
2375
2147
  });
2376
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
2148
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
2377
2149
  __name: "AccordionItem",
2378
2150
  props: {
2379
- disabled: { type: Boolean },
2380
2151
  value: {},
2152
+ disabled: { type: Boolean },
2381
2153
  unmountOnHide: { type: Boolean },
2382
2154
  asChild: { type: Boolean },
2383
2155
  as: {}
2384
2156
  },
2385
2157
  setup(__props) {
2386
2158
  const props = __props;
2387
- const forwardedProps = useForwardProps(props);
2159
+ const id = useId(null, "accordion-item");
2160
+ const forwarded = computed(() => {
2161
+ const refProps = useForwardProps(props);
2162
+ if (!refProps.value.value) {
2163
+ return { ...refProps.value, value: id };
2164
+ } else {
2165
+ return refProps.value;
2166
+ }
2167
+ });
2388
2168
  return (_ctx, _cache) => {
2389
- return openBlock(), createBlock(unref(AccordionItem), mergeProps(unref(forwardedProps), { class: "ui-AccordionItem" }), {
2169
+ return openBlock(), createBlock(unref(AccordionItem), mergeProps(forwarded.value, { class: "ui-AccordionItem" }), {
2390
2170
  default: withCtx(() => [
2391
2171
  renderSlot(_ctx.$slots, "default")
2392
2172
  ]),
@@ -2395,7 +2175,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
2395
2175
  };
2396
2176
  }
2397
2177
  });
2398
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
2178
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
2399
2179
  ...{
2400
2180
  inheritAttrs: false
2401
2181
  },
@@ -2420,74 +2200,154 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
2420
2200
  };
2421
2201
  }
2422
2202
  });
2423
- const _hoisted_1$5 = ["data-accent-color"];
2424
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
2425
- __name: "PlusMinusIcon",
2203
+ const _hoisted_1$c = {
2204
+ viewBox: "0 0 15 15",
2205
+ width: "1em",
2206
+ height: "1em"
2207
+ };
2208
+ function render$5(_ctx, _cache) {
2209
+ return openBlock(), createElementBlock("svg", _hoisted_1$c, _cache[0] || (_cache[0] = [
2210
+ createElementVNode("path", {
2211
+ fill: "currentColor",
2212
+ "fill-rule": "evenodd",
2213
+ d: "M6.158 3.135a.5.5 0 0 1 .707.023l3.75 4a.5.5 0 0 1 0 .684l-3.75 4a.5.5 0 1 1-.73-.684L9.566 7.5l-3.43-3.658a.5.5 0 0 1 .023-.707",
2214
+ "clip-rule": "evenodd"
2215
+ }, null, -1)
2216
+ ]));
2217
+ }
2218
+ const ChevronIcon = markRaw({ name: "radix-icons-chevron-right", render: render$5 });
2219
+ const _hoisted_1$b = { class: "ui-AccordionIndicator" };
2220
+ const _hoisted_2$2 = {
2221
+ key: 1,
2222
+ class: "ui-AccordionIndicator-plus"
2223
+ };
2224
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
2225
+ __name: "AccordionIndicator",
2426
2226
  props: {
2427
- color: { default: void 0 },
2428
- size: { default: "1" }
2227
+ variant: { default: "chevron" }
2228
+ },
2229
+ setup(__props) {
2230
+ return (_ctx, _cache) => {
2231
+ return openBlock(), createElementBlock("div", _hoisted_1$b, [
2232
+ _ctx.variant == "chevron" ? (openBlock(), createBlock(unref(ChevronIcon), {
2233
+ key: 0,
2234
+ class: "ui-AccordionIndicator-chevron"
2235
+ })) : createCommentVNode("", true),
2236
+ _ctx.variant == "plus" ? (openBlock(), createElementBlock("div", _hoisted_2$2, _cache[0] || (_cache[0] = [
2237
+ createElementVNode("span", { class: "ui-AccordionIndicator-plus-1" }, null, -1),
2238
+ createElementVNode("span", { class: "ui-AccordionIndicator-plus-2" }, null, -1)
2239
+ ]))) : createCommentVNode("", true)
2240
+ ]);
2241
+ };
2242
+ }
2243
+ });
2244
+ const _hoisted_1$a = { class: "ui-AccordionTriggerText" };
2245
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
2246
+ __name: "AccordionTrigger",
2247
+ props: {
2248
+ indicatorSide: {},
2249
+ indicatorIcon: {},
2250
+ asChild: { type: Boolean },
2251
+ as: {}
2429
2252
  },
2430
2253
  setup(__props) {
2431
2254
  const props = __props;
2255
+ const ctx = injectAccordionRootContext();
2256
+ const forwarded = useForwardPropsWithout(props, ["indicatorSide", "indicatorIcon"]);
2257
+ const indicatorIcon = computed(() => {
2258
+ return props.indicatorIcon || ctx.indicatorIcon.value;
2259
+ });
2260
+ const indicatorSide = computed(() => {
2261
+ return props.indicatorSide || ctx.indicatorSide.value;
2262
+ });
2432
2263
  return (_ctx, _cache) => {
2433
- return openBlock(), createElementBlock("div", {
2434
- class: normalizeClass(["ui-PlusMinusIcon", `r-size-${props.size}`]),
2435
- "data-accent-color": props.color
2436
- }, _cache[0] || (_cache[0] = [
2437
- createElementVNode("div", { class: "ui-PlusMinusIcon-1" }, null, -1),
2438
- createElementVNode("div", { class: "ui-PlusMinusIcon-2" }, null, -1)
2439
- ]), 10, _hoisted_1$5);
2264
+ return openBlock(), createBlock(unref(AccordionTrigger), mergeProps({ class: "ui-AccordionTrigger" }, unref(forwarded)), {
2265
+ default: withCtx(() => [
2266
+ createElementVNode("div", _hoisted_1$a, [
2267
+ renderSlot(_ctx.$slots, "default")
2268
+ ]),
2269
+ indicatorIcon.value !== "none" ? (openBlock(), createBlock(_sfc_main$e, {
2270
+ key: 0,
2271
+ "data-side": indicatorSide.value,
2272
+ variant: indicatorIcon.value
2273
+ }, null, 8, ["data-side", "variant"])) : createCommentVNode("", true)
2274
+ ]),
2275
+ _: 3
2276
+ }, 16);
2440
2277
  };
2441
2278
  }
2442
2279
  });
2443
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
2444
- __name: "ChevronIcon",
2280
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
2281
+ __name: "CollapsibleRoot",
2445
2282
  props: {
2446
- arrowTransform: { default: "right-down" }
2283
+ color: {},
2284
+ radius: {},
2285
+ variant: { default: "ghost" },
2286
+ size: { default: "2" },
2287
+ defaultOpen: { type: Boolean },
2288
+ open: { type: Boolean },
2289
+ disabled: { type: Boolean },
2290
+ unmountOnHide: { type: Boolean },
2291
+ asChild: { type: Boolean },
2292
+ as: {}
2447
2293
  },
2294
+ emits: ["update:open"],
2295
+ setup(__props, { emit: __emit }) {
2296
+ const props = __props;
2297
+ const emits = __emit;
2298
+ const forwarded = useForwardPropsEmitsWithout(props, emits, ["color", "radius", "variant", "size"]);
2299
+ const resetClass = buildPropsClass(props, ["variant", "size"]);
2300
+ return (_ctx, _cache) => {
2301
+ return openBlock(), createBlock(unref(CollapsibleRoot), mergeProps({
2302
+ class: ["ui-CollapsibleRoot", unref(resetClass)]
2303
+ }, unref(forwarded), {
2304
+ "data-accent-color": _ctx.color,
2305
+ "data-radius": _ctx.radius
2306
+ }), {
2307
+ default: withCtx(() => [
2308
+ renderSlot(_ctx.$slots, "default")
2309
+ ]),
2310
+ _: 3
2311
+ }, 16, ["class", "data-accent-color", "data-radius"]);
2312
+ };
2313
+ }
2314
+ });
2315
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
2316
+ __name: "CollapsibleIndicator",
2448
2317
  setup(__props) {
2449
2318
  return (_ctx, _cache) => {
2450
- return openBlock(), createBlock(unref(Icon), {
2451
- class: "ui-ChevronIcon",
2452
- icon: "lucide:chevron-right",
2453
- "data-arrow-transform": _ctx.arrowTransform
2454
- }, null, 8, ["data-arrow-transform"]);
2319
+ return openBlock(), createBlock(unref(ChevronIcon), { class: "ui-CollapsibleIndicator" });
2455
2320
  };
2456
2321
  }
2457
2322
  });
2458
- const _hoisted_1$4 = { class: "ui-AccordionTriggerText" };
2459
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
2460
- __name: "AccordionTrigger",
2323
+ const _hoisted_1$9 = { class: "ui-CollapsibleTriggerText" };
2324
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
2325
+ __name: "CollapsibleTrigger",
2461
2326
  props: {
2462
- indicator: { default: "chevron" },
2327
+ indicator: { default: "right" },
2463
2328
  asChild: { type: Boolean },
2464
2329
  as: {}
2465
2330
  },
2466
2331
  setup(__props) {
2467
2332
  const props = __props;
2468
- const [forwarded, resetClass] = extractForwardProps(props, ["size"]);
2333
+ const forwarded = useForwardPropsWithout(props, ["indicator"]);
2469
2334
  return (_ctx, _cache) => {
2470
- return openBlock(), createBlock(unref(AccordionTrigger), mergeProps({
2471
- class: ["ui-AccordionTrigger", unref(resetClass)]
2472
- }, unref(forwarded)), {
2335
+ return openBlock(), createBlock(unref(CollapsibleTrigger), mergeProps({ class: "ui-CollapsibleTrigger" }, unref(forwarded)), {
2473
2336
  default: withCtx(() => [
2474
- createElementVNode("div", _hoisted_1$4, [
2337
+ createElementVNode("span", _hoisted_1$9, [
2475
2338
  renderSlot(_ctx.$slots, "default")
2476
2339
  ]),
2477
- props.indicator === "plus-minus" ? (openBlock(), createBlock(_sfc_main$b, {
2340
+ _ctx.indicator !== "none" ? (openBlock(), createBlock(_sfc_main$b, {
2478
2341
  key: 0,
2479
- class: "ui-AccordionTriggerIcon"
2480
- })) : props.indicator === "chevron" ? (openBlock(), createBlock(_sfc_main$a, {
2481
- key: 1,
2482
- "arrow-transform": "down-up"
2483
- })) : createCommentVNode("", true)
2342
+ "data-side": _ctx.indicator
2343
+ }, null, 8, ["data-side"])) : createCommentVNode("", true)
2484
2344
  ]),
2485
2345
  _: 3
2486
- }, 16, ["class"]);
2346
+ }, 16);
2487
2347
  };
2488
2348
  }
2489
2349
  });
2490
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
2350
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
2491
2351
  ...{
2492
2352
  inheritAttrs: false
2493
2353
  },
@@ -2512,7 +2372,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
2512
2372
  };
2513
2373
  }
2514
2374
  });
2515
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2375
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
2516
2376
  __name: "Pagination",
2517
2377
  props: /* @__PURE__ */ mergeModels({
2518
2378
  total: {},
@@ -2534,9 +2394,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2534
2394
  setup(__props) {
2535
2395
  const props = __props;
2536
2396
  const page = useModel(__props, "page");
2537
- const resetClass = computed(() => {
2538
- return extractClass(props, ["size", "variant"]);
2539
- });
2397
+ const resetClass = buildPropsClass(props, ["size", "variant"]);
2540
2398
  const buttonProps = computed(() => {
2541
2399
  return {
2542
2400
  color: props.color,
@@ -2587,9 +2445,9 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2587
2445
  };
2588
2446
  return (_ctx, _cache) => {
2589
2447
  return openBlock(), createElementBlock("div", {
2590
- class: normalizeClass(["ui-Pagination", resetClass.value])
2448
+ class: normalizeClass(["ui-Pagination", unref(resetClass)])
2591
2449
  }, [
2592
- pagination.value.prev ? (openBlock(), createBlock(_sfc_main$T, mergeProps({ key: 0 }, buttonProps.value, {
2450
+ pagination.value.prev ? (openBlock(), createBlock(_sfc_main$W, mergeProps({ key: 0 }, buttonProps.value, {
2593
2451
  "aria-label": "Previous",
2594
2452
  onClick: _cache[0] || (_cache[0] = withModifiers(($event) => selectPage(pagination.value.prev), ["prevent"]))
2595
2453
  }), {
@@ -2602,19 +2460,19 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2602
2460
  ]),
2603
2461
  _: 3
2604
2462
  }, 16)) : createCommentVNode("", true),
2605
- createVNode(_sfc_main$U, mergeProps(buttonProps.value, {
2463
+ createVNode(_sfc_main$X, mergeProps(buttonProps.value, {
2606
2464
  disabled: page.value === 1,
2607
2465
  "aria-current": "page",
2608
2466
  onClick: _cache[1] || (_cache[1] = withModifiers(($event) => selectPage(1), ["prevent"]))
2609
2467
  }), {
2610
2468
  default: withCtx(() => [
2611
2469
  renderSlot(_ctx.$slots, "page", { page: 1 }, () => [
2612
- _cache[4] || (_cache[4] = createTextVNode("1"))
2470
+ _cache[4] || (_cache[4] = createTextVNode("1", -1))
2613
2471
  ])
2614
2472
  ]),
2615
2473
  _: 3
2616
2474
  }, 16, ["disabled"]),
2617
- pagination.value.hasLeftEdge ? (openBlock(), createBlock(_sfc_main$T, mergeProps({ key: 1 }, buttonProps.value, {
2475
+ pagination.value.hasLeftEdge ? (openBlock(), createBlock(_sfc_main$W, mergeProps({ key: 1 }, buttonProps.value, {
2618
2476
  onClick: withModifiers(selectLeft, ["prevent"])
2619
2477
  }), {
2620
2478
  default: withCtx(() => [
@@ -2627,7 +2485,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2627
2485
  _: 3
2628
2486
  }, 16)) : createCommentVNode("", true),
2629
2487
  (openBlock(true), createElementBlock(Fragment, null, renderList(pagination.value.pageList, (p) => {
2630
- return openBlock(), createBlock(_sfc_main$U, mergeProps({ key: p }, { ref_for: true }, buttonProps.value, {
2488
+ return openBlock(), createBlock(_sfc_main$X, mergeProps({ key: p }, { ref_for: true }, buttonProps.value, {
2631
2489
  disabled: p === page.value,
2632
2490
  "aria-current": "page",
2633
2491
  onClick: withModifiers(($event) => selectPage(p), ["prevent"])
@@ -2640,7 +2498,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2640
2498
  _: 2
2641
2499
  }, 1040, ["disabled", "onClick"]);
2642
2500
  }), 128)),
2643
- pagination.value.hasRightEdge ? (openBlock(), createBlock(_sfc_main$T, mergeProps({ key: 2 }, buttonProps.value, {
2501
+ pagination.value.hasRightEdge ? (openBlock(), createBlock(_sfc_main$W, mergeProps({ key: 2 }, buttonProps.value, {
2644
2502
  onClick: withModifiers(selectRight, ["prevent"])
2645
2503
  }), {
2646
2504
  default: withCtx(() => [
@@ -2652,7 +2510,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2652
2510
  ]),
2653
2511
  _: 3
2654
2512
  }, 16)) : createCommentVNode("", true),
2655
- pagination.value.totalPages > 1 ? (openBlock(), createBlock(_sfc_main$U, mergeProps({ key: 3 }, buttonProps.value, {
2513
+ pagination.value.totalPages > 1 ? (openBlock(), createBlock(_sfc_main$X, mergeProps({ key: 3 }, buttonProps.value, {
2656
2514
  disabled: pagination.value.totalPages === page.value,
2657
2515
  "aria-current": "page",
2658
2516
  onClick: _cache[2] || (_cache[2] = withModifiers(($event) => selectPage(pagination.value.totalPages), ["prevent"]))
@@ -2666,7 +2524,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2666
2524
  ]),
2667
2525
  _: 3
2668
2526
  }, 16, ["disabled"])) : createCommentVNode("", true),
2669
- pagination.value.next ? (openBlock(), createBlock(_sfc_main$T, mergeProps({ key: 4 }, buttonProps.value, {
2527
+ pagination.value.next ? (openBlock(), createBlock(_sfc_main$W, mergeProps({ key: 4 }, buttonProps.value, {
2670
2528
  "aria-label": "Next",
2671
2529
  onClick: _cache[3] || (_cache[3] = withModifiers(($event) => selectPage(pagination.value.next), ["prevent"]))
2672
2530
  }), {
@@ -2683,9 +2541,376 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2683
2541
  };
2684
2542
  }
2685
2543
  });
2686
- const _hoisted_1$3 = ["data-size", "data-variant"];
2687
- const _hoisted_2 = ["data-layout"];
2544
+ function createGlobalState(stateFactory) {
2545
+ let initialized = false;
2546
+ let state;
2547
+ const scope = effectScope(true);
2548
+ return (...args) => {
2549
+ if (!initialized) {
2550
+ state = scope.run(() => stateFactory(...args));
2551
+ initialized = true;
2552
+ }
2553
+ return state;
2554
+ };
2555
+ }
2556
+ typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
2557
+ let count = 0;
2558
+ const useToastManager = createGlobalState(() => {
2559
+ const messages = ref([]);
2560
+ const add = (msg, category) => {
2561
+ const id = count++;
2562
+ if (typeof msg === "string") {
2563
+ messages.value.unshift({ title: msg, category, id });
2564
+ } else {
2565
+ messages.value.unshift({ ...msg, category, id });
2566
+ }
2567
+ return id;
2568
+ };
2569
+ const update = (id, msg) => {
2570
+ const messageArray = [...messages.value];
2571
+ const index = messageArray.findIndex((item) => item.id === id);
2572
+ if (index !== -1) {
2573
+ const found = messageArray[index];
2574
+ if (found) {
2575
+ messageArray[index] = { ...found, ...msg };
2576
+ messages.value = messageArray;
2577
+ }
2578
+ }
2579
+ };
2580
+ const remove = (id) => {
2581
+ const index = messages.value.findIndex((item) => item.id === id);
2582
+ if (index !== -1) {
2583
+ messages.value.splice(index, 1);
2584
+ }
2585
+ };
2586
+ const info = (msg) => {
2587
+ return add(msg, "info");
2588
+ };
2589
+ const success = (msg) => {
2590
+ return add(msg, "success");
2591
+ };
2592
+ const warning = (msg) => {
2593
+ return add(msg, "warning");
2594
+ };
2595
+ const error = (msg) => {
2596
+ return add(msg, "error");
2597
+ };
2598
+ const promise = (fn, options) => {
2599
+ const id = add({ title: options.loading, duration: 6e6 }, "loading");
2600
+ fn().then((value) => {
2601
+ const msg = options.success(value);
2602
+ if (typeof msg === "string") {
2603
+ update(id, { duration: void 0, title: msg, category: "success" });
2604
+ } else {
2605
+ update(id, { duration: void 0, ...msg, category: "success" });
2606
+ }
2607
+ }).catch((e) => {
2608
+ if (options.error) {
2609
+ const msg = options.error(e);
2610
+ if (typeof msg === "string") {
2611
+ update(id, { title: msg, category: "error" });
2612
+ } else {
2613
+ update(id, { ...msg, category: "error" });
2614
+ }
2615
+ }
2616
+ });
2617
+ return id;
2618
+ };
2619
+ return {
2620
+ messages,
2621
+ add,
2622
+ update,
2623
+ remove,
2624
+ info,
2625
+ success,
2626
+ warning,
2627
+ error,
2628
+ promise
2629
+ };
2630
+ });
2631
+ const _sfc_main$7 = {};
2632
+ const _hoisted_1$8 = { class: "ui-SpinnerIcon" };
2633
+ function _sfc_render(_ctx, _cache) {
2634
+ return openBlock(), createElementBlock("span", _hoisted_1$8, _cache[0] || (_cache[0] = [
2635
+ createStaticVNode('<span class="ui-SpinnerLeaf"></span><span class="ui-SpinnerLeaf"></span><span class="ui-SpinnerLeaf"></span><span class="ui-SpinnerLeaf"></span><span class="ui-SpinnerLeaf"></span><span class="ui-SpinnerLeaf"></span><span class="ui-SpinnerLeaf"></span><span class="ui-SpinnerLeaf"></span>', 8)
2636
+ ]));
2637
+ }
2638
+ const SpinnerIcon = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]);
2639
+ const _hoisted_1$7 = {
2640
+ viewBox: "0 0 24 24",
2641
+ width: "1em",
2642
+ height: "1em"
2643
+ };
2644
+ function render$4(_ctx, _cache) {
2645
+ return openBlock(), createElementBlock("svg", _hoisted_1$7, _cache[0] || (_cache[0] = [
2646
+ createElementVNode("path", {
2647
+ fill: "currentColor",
2648
+ d: "M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10m0-12.5a1.5 1.5 0 1 0 0-3a1.5 1.5 0 0 0 0 3m2 5.5h-1v-4.5h-3v2h1V15h-1v2h4z"
2649
+ }, null, -1)
2650
+ ]));
2651
+ }
2652
+ const InfoIcon = markRaw({ name: "ri-information-2-fill", render: render$4 });
2653
+ const _hoisted_1$6 = {
2654
+ viewBox: "0 0 24 24",
2655
+ width: "1em",
2656
+ height: "1em"
2657
+ };
2658
+ function render$3(_ctx, _cache) {
2659
+ return openBlock(), createElementBlock("svg", _hoisted_1$6, _cache[0] || (_cache[0] = [
2660
+ createElementVNode("path", {
2661
+ fill: "currentColor",
2662
+ d: "M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2S2 6.477 2 12s4.477 10 10 10m5.457-12.543L11 15.914l-4.207-4.207l1.414-1.414L11 13.086l5.043-5.043z"
2663
+ }, null, -1)
2664
+ ]));
2665
+ }
2666
+ const SuccessIcon = markRaw({ name: "ri-checkbox-circle-fill", render: render$3 });
2667
+ const _hoisted_1$5 = {
2668
+ viewBox: "0 0 24 24",
2669
+ width: "1em",
2670
+ height: "1em"
2671
+ };
2672
+ function render$2(_ctx, _cache) {
2673
+ return openBlock(), createElementBlock("svg", _hoisted_1$5, _cache[0] || (_cache[0] = [
2674
+ createElementVNode("path", {
2675
+ fill: "currentColor",
2676
+ d: "m12.866 3l9.526 16.5a1 1 0 0 1-.866 1.5H2.474a1 1 0 0 1-.866-1.5L11.134 3a1 1 0 0 1 1.732 0M11 16v2h2v-2zm0-7v5h2V9z"
2677
+ }, null, -1)
2678
+ ]));
2679
+ }
2680
+ const WarningIcon = markRaw({ name: "ri-alert-fill", render: render$2 });
2681
+ const _hoisted_1$4 = {
2682
+ viewBox: "0 0 24 24",
2683
+ width: "1em",
2684
+ height: "1em"
2685
+ };
2686
+ function render$1(_ctx, _cache) {
2687
+ return openBlock(), createElementBlock("svg", _hoisted_1$4, _cache[0] || (_cache[0] = [
2688
+ createElementVNode("path", {
2689
+ fill: "currentColor",
2690
+ d: "M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10m-1-7v2h2v-2zm0-8v6h2V7z"
2691
+ }, null, -1)
2692
+ ]));
2693
+ }
2694
+ const ErrorIcon = markRaw({ name: "ri-error-warning-fill", render: render$1 });
2695
+ const _hoisted_1$3 = ["data-accent-color"];
2696
+ const _hoisted_2$1 = { class: "ui-ToastContent" };
2697
+ const CATEGORY_ICONS = {
2698
+ loading: SpinnerIcon,
2699
+ info: InfoIcon,
2700
+ success: SuccessIcon,
2701
+ warning: WarningIcon,
2702
+ error: ErrorIcon
2703
+ };
2704
+ const CATEGORY_COLORS = {
2705
+ loading: "gray",
2706
+ info: "indigo",
2707
+ success: "green",
2708
+ warning: "orange",
2709
+ error: "red"
2710
+ };
2688
2711
  const _sfc_main$6 = /* @__PURE__ */ defineComponent({
2712
+ __name: "ToastItem",
2713
+ props: {
2714
+ yPosition: {},
2715
+ xPosition: {},
2716
+ message: {},
2717
+ index: {}
2718
+ },
2719
+ setup(__props) {
2720
+ const props = __props;
2721
+ const toastRef = useTemplateRef("toastRef");
2722
+ const paused = ref(false);
2723
+ const manager = useToastManager();
2724
+ const styleVars = computed(() => {
2725
+ const heights = manager.messages.value.slice(0, props.index).map((item) => item.height || 60);
2726
+ const offsetY = heights.reduce((sum, num) => sum + num, 0);
2727
+ return { "--toast-index": props.index, "--toast-offset-y": offsetY + "px" };
2728
+ });
2729
+ const categoryIcon = computed(() => {
2730
+ if (props.message.category) {
2731
+ return CATEGORY_ICONS[props.message.category];
2732
+ } else {
2733
+ return "";
2734
+ }
2735
+ });
2736
+ const categoryColor = computed(() => {
2737
+ if (props.message.category) {
2738
+ return CATEGORY_COLORS[props.message.category];
2739
+ } else {
2740
+ return void 0;
2741
+ }
2742
+ });
2743
+ const onOpenChange = (open) => {
2744
+ if (open === false) {
2745
+ setTimeout(() => {
2746
+ manager.remove(props.message.id);
2747
+ }, 500);
2748
+ }
2749
+ };
2750
+ const onPause = () => {
2751
+ paused.value = true;
2752
+ };
2753
+ const onResume = () => {
2754
+ paused.value = false;
2755
+ };
2756
+ onMounted(() => {
2757
+ const el = toastRef.value.$el;
2758
+ manager.update(props.message.id, { height: el.clientHeight });
2759
+ });
2760
+ return (_ctx, _cache) => {
2761
+ return openBlock(), createBlock(unref(ToastRoot), {
2762
+ ref_key: "toastRef",
2763
+ ref: toastRef,
2764
+ key: _ctx.message.id,
2765
+ class: "ui-ToastItem",
2766
+ duration: _ctx.message.duration,
2767
+ "data-expanded": paused.value,
2768
+ style: normalizeStyle(styleVars.value),
2769
+ "onUpdate:open": onOpenChange,
2770
+ onPause,
2771
+ onResume
2772
+ }, {
2773
+ default: withCtx(() => [
2774
+ _ctx.message.category ? (openBlock(), createElementBlock("div", {
2775
+ key: 0,
2776
+ class: "ui-ToastIcon",
2777
+ "data-accent-color": categoryColor.value
2778
+ }, [
2779
+ (openBlock(), createBlock(resolveDynamicComponent(categoryIcon.value)))
2780
+ ], 8, _hoisted_1$3)) : createCommentVNode("", true),
2781
+ createElementVNode("div", _hoisted_2$1, [
2782
+ createVNode(unref(ToastTitle), { class: "ui-ToastTitle" }, {
2783
+ default: withCtx(() => [
2784
+ createTextVNode(toDisplayString(_ctx.message.title), 1)
2785
+ ]),
2786
+ _: 1
2787
+ }),
2788
+ _ctx.message.description ? (openBlock(), createBlock(unref(ToastDescription), {
2789
+ key: 0,
2790
+ class: "ui-ToastDescription"
2791
+ }, {
2792
+ default: withCtx(() => [
2793
+ createTextVNode(toDisplayString(_ctx.message.description), 1)
2794
+ ]),
2795
+ _: 1
2796
+ })) : createCommentVNode("", true)
2797
+ ]),
2798
+ _ctx.message.action ? (openBlock(), createBlock(unref(ToastAction), {
2799
+ key: 1,
2800
+ class: "ui-ToastAction",
2801
+ "alt-text": _ctx.message.action.altText || _ctx.message.action.label,
2802
+ "as-child": "",
2803
+ onClick: _ctx.message.action.onClick
2804
+ }, {
2805
+ default: withCtx(() => [
2806
+ createVNode(_sfc_main$X, {
2807
+ variant: _ctx.message.action.variant || "soft",
2808
+ radius: _ctx.message.action.radius,
2809
+ size: _ctx.message.action.size || "1",
2810
+ color: _ctx.message.action.color
2811
+ }, {
2812
+ default: withCtx(() => [
2813
+ createTextVNode(toDisplayString(_ctx.message.action.label), 1)
2814
+ ]),
2815
+ _: 1
2816
+ }, 8, ["variant", "radius", "size", "color"])
2817
+ ]),
2818
+ _: 1
2819
+ }, 8, ["alt-text", "onClick"])) : createCommentVNode("", true)
2820
+ ]),
2821
+ _: 1
2822
+ }, 8, ["duration", "data-expanded", "style"]);
2823
+ };
2824
+ }
2825
+ });
2826
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
2827
+ ...{
2828
+ inheritAttrs: false
2829
+ },
2830
+ __name: "ToastProvider",
2831
+ props: {
2832
+ size: { default: "1" },
2833
+ position: { default: "bottom-right" },
2834
+ label: {},
2835
+ duration: {},
2836
+ swipeDirection: {},
2837
+ swipeThreshold: {}
2838
+ },
2839
+ setup(__props) {
2840
+ const props = __props;
2841
+ const forwarded = useForwardPropsWithout(props, ["position", "size"]);
2842
+ const manager = useToastManager();
2843
+ const yPosition = computed(() => {
2844
+ return props.position.split("-")[0];
2845
+ });
2846
+ const xPosition = computed(() => {
2847
+ return props.position.split("-")[1];
2848
+ });
2849
+ const swipeDirection = computed(() => {
2850
+ if (props.swipeDirection) {
2851
+ return props.swipeDirection;
2852
+ }
2853
+ return xPosition.value;
2854
+ });
2855
+ const messages = computed(() => {
2856
+ return manager.messages.value.slice(0, 3);
2857
+ });
2858
+ return (_ctx, _cache) => {
2859
+ return openBlock(), createBlock(unref(ToastProvider), normalizeProps(guardReactiveProps({ ...unref(forwarded), swipeDirection: swipeDirection.value })), {
2860
+ default: withCtx(() => [
2861
+ renderSlot(_ctx.$slots, "default"),
2862
+ (openBlock(true), createElementBlock(Fragment, null, renderList(messages.value, (msg, index) => {
2863
+ return renderSlot(_ctx.$slots, "item", {
2864
+ key: msg.id,
2865
+ message: msg,
2866
+ index
2867
+ }, () => [
2868
+ (openBlock(), createBlock(_sfc_main$6, {
2869
+ key: msg.id,
2870
+ message: msg,
2871
+ index,
2872
+ "x-position": xPosition.value,
2873
+ "y-position": yPosition.value
2874
+ }, null, 8, ["message", "index", "x-position", "y-position"]))
2875
+ ]);
2876
+ }), 128)),
2877
+ createVNode(unref(ToastPortal), null, {
2878
+ default: withCtx(() => [
2879
+ createVNode(_sfc_main$S, null, {
2880
+ default: withCtx(() => [
2881
+ createVNode(unref(ToastViewport), mergeProps({ class: "ui-ToastViewport" }, _ctx.$attrs, {
2882
+ class: `r-size-${_ctx.size}`,
2883
+ "data-x-position": xPosition.value,
2884
+ "data-y-position": yPosition.value
2885
+ }), null, 16, ["class", "data-x-position", "data-y-position"])
2886
+ ]),
2887
+ _: 1
2888
+ })
2889
+ ]),
2890
+ _: 1
2891
+ })
2892
+ ]),
2893
+ _: 3
2894
+ }, 16);
2895
+ };
2896
+ }
2897
+ });
2898
+ const toastManager = useToastManager();
2899
+ const toast = Object.assign(
2900
+ (msg) => {
2901
+ return toastManager.add(msg);
2902
+ },
2903
+ {
2904
+ info: toastManager.info,
2905
+ success: toastManager.success,
2906
+ warning: toastManager.warning,
2907
+ error: toastManager.error,
2908
+ promise: toastManager.promise
2909
+ }
2910
+ );
2911
+ const _hoisted_1$2 = ["data-size", "data-variant"];
2912
+ const _hoisted_2 = ["data-layout"];
2913
+ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
2689
2914
  __name: "Table",
2690
2915
  props: {
2691
2916
  size: { default: "2" },
@@ -2700,7 +2925,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
2700
2925
  "data-size": props.size,
2701
2926
  "data-variant": props.variant
2702
2927
  }, [
2703
- createVNode(_sfc_main$R, null, {
2928
+ createVNode(_sfc_main$V, null, {
2704
2929
  default: withCtx(() => [
2705
2930
  createElementVNode("table", {
2706
2931
  class: "ui-TableContent",
@@ -2711,16 +2936,16 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
2711
2936
  ]),
2712
2937
  _: 3
2713
2938
  })
2714
- ], 8, _hoisted_1$3);
2939
+ ], 8, _hoisted_1$2);
2715
2940
  };
2716
2941
  }
2717
2942
  });
2718
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
2943
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2719
2944
  __name: "Separator",
2720
2945
  props: {
2721
2946
  as: { default: "span" },
2722
2947
  orientation: { default: "horizontal" },
2723
- size: {},
2948
+ size: { default: "1" },
2724
2949
  color: { default: "gray" }
2725
2950
  },
2726
2951
  setup(__props) {
@@ -2736,15 +2961,16 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
2736
2961
  };
2737
2962
  }
2738
2963
  });
2739
- const _hoisted_1$2 = ["textContent"];
2740
- const _sfc_main$4 = /* @__PURE__ */ defineComponent({
2964
+ const _hoisted_1$1 = ["textContent"];
2965
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2741
2966
  ...{
2742
2967
  inheritAttrs: false
2743
2968
  },
2744
2969
  __name: "Tooltip",
2745
2970
  props: {
2746
- to: {},
2747
2971
  content: {},
2972
+ maxWidth: { default: "360px" },
2973
+ color: { default: "gray" },
2748
2974
  forceMount: { type: Boolean },
2749
2975
  ariaLabel: {},
2750
2976
  asChild: { type: Boolean },
@@ -2776,11 +3002,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
2776
3002
  ]),
2777
3003
  _: 3
2778
3004
  }, 16, ["as", "as-child"]),
2779
- createVNode(unref(TooltipPortal), {
2780
- to: props.to
2781
- }, {
3005
+ createVNode(unref(TooltipPortal), null, {
2782
3006
  default: withCtx(() => [
2783
- createVNode(_sfc_main$O, null, {
3007
+ createVNode(_sfc_main$S, null, {
2784
3008
  default: withCtx(() => [
2785
3009
  createVNode(unref(TooltipContent), {
2786
3010
  class: "ui-Tooltip",
@@ -2794,32 +3018,34 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
2794
3018
  "hide-when-detached": props.hideWhenDetached,
2795
3019
  side: props.side,
2796
3020
  "side-offset": props.sideOffset,
2797
- sticky: props.sticky
3021
+ sticky: props.sticky,
3022
+ "data-accent-color": props.color,
3023
+ style: normalizeStyle({ maxWidth: props.maxWidth })
2798
3024
  }, {
2799
3025
  default: withCtx(() => [
2800
3026
  renderSlot(_ctx.$slots, "content", {}, () => [
2801
3027
  createElementVNode("p", {
2802
3028
  class: "ui-TooltipText",
2803
3029
  textContent: toDisplayString(props.content)
2804
- }, null, 8, _hoisted_1$2)
3030
+ }, null, 8, _hoisted_1$1)
2805
3031
  ]),
2806
3032
  createVNode(unref(TooltipArrow), { class: "ui-TooltipArrow" })
2807
3033
  ]),
2808
3034
  _: 3
2809
- }, 8, ["align", "align-offset", "aria-label", "arrow-padding", "avoid-collisions", "collision-boundary", "collision-padding", "hide-when-detached", "side", "side-offset", "sticky"])
3035
+ }, 8, ["align", "align-offset", "aria-label", "arrow-padding", "avoid-collisions", "collision-boundary", "collision-padding", "hide-when-detached", "side", "side-offset", "sticky", "data-accent-color", "style"])
2810
3036
  ]),
2811
3037
  _: 3
2812
3038
  })
2813
3039
  ]),
2814
3040
  _: 3
2815
- }, 8, ["to"])
3041
+ })
2816
3042
  ]),
2817
3043
  _: 3
2818
3044
  });
2819
3045
  };
2820
3046
  }
2821
3047
  });
2822
- const _sfc_main$3 = /* @__PURE__ */ defineComponent({
3048
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2823
3049
  __name: "Quota",
2824
3050
  props: {
2825
3051
  percent: {},
@@ -2867,164 +3093,130 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2867
3093
  };
2868
3094
  }
2869
3095
  });
2870
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
2871
- __name: "Spinner",
2872
- props: {
2873
- icon: { default: "180-ring" },
2874
- size: { default: "2" }
2875
- },
2876
- setup(__props) {
2877
- const props = __props;
2878
- const iconName = computed(() => {
2879
- return `svg-spinners:${props.icon}`;
2880
- });
2881
- return (_ctx, _cache) => {
2882
- return openBlock(), createBlock(unref(Icon), {
2883
- class: normalizeClass(["ui-Spinner", `r-size-${_ctx.size}`]),
2884
- icon: iconName.value
2885
- }, null, 8, ["class", "icon"]);
2886
- };
2887
- }
2888
- });
2889
- const _hoisted_1$1 = ["data-status"];
2890
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
3096
+ const _hoisted_1 = {
3097
+ viewBox: "0 0 24 24",
3098
+ width: "1em",
3099
+ height: "1em"
3100
+ };
3101
+ function render(_ctx, _cache) {
3102
+ return openBlock(), createElementBlock("svg", _hoisted_1, _cache[0] || (_cache[0] = [
3103
+ createElementVNode("path", {
3104
+ fill: "currentColor",
3105
+ d: "M4 12a8 8 0 1 1 16 0a8 8 0 0 1-16 0m8-10C6.477 2 2 6.477 2 12s4.477 10 10 10s10-4.477 10-10S17.523 2 12 2m5.457 7.457l-1.414-1.414L11 13.086l-2.793-2.793l-1.414 1.414L11 15.914z"
3106
+ }, null, -1)
3107
+ ]));
3108
+ }
3109
+ const CheckIcon = markRaw({ name: "ri-checkbox-circle-line", render });
3110
+ const _sfc_main = /* @__PURE__ */ defineComponent({
2891
3111
  __name: "SavingIndicator",
2892
3112
  props: {
2893
3113
  status: {},
2894
- size: { default: "2" }
3114
+ size: { default: "2" },
3115
+ as: { default: "span" }
2895
3116
  },
2896
3117
  setup(__props) {
2897
3118
  const props = __props;
2898
3119
  return (_ctx, _cache) => {
2899
- return openBlock(), createElementBlock("div", {
3120
+ return openBlock(), createBlock(unref(Primitive), {
2900
3121
  class: normalizeClass(["ui-SavingIndicator", `r-size-${_ctx.size}`]),
2901
3122
  "data-status": props.status
2902
- }, [
2903
- props.status === "saving" ? (openBlock(), createBlock(unref(Icon), {
2904
- key: 0,
2905
- icon: "svg-spinners:180-ring"
2906
- })) : props.status === "saved" ? (openBlock(), createBlock(unref(Icon), {
2907
- key: 1,
2908
- icon: "lucide:check-circle-2"
2909
- })) : createCommentVNode("", true)
2910
- ], 10, _hoisted_1$1);
2911
- };
2912
- }
2913
- });
2914
- const _hoisted_1 = ["data-accent-color"];
2915
- const _sfc_main = /* @__PURE__ */ defineComponent({
2916
- __name: "IconCircle",
2917
- props: {
2918
- color: {},
2919
- size: { default: 1 },
2920
- variant: { default: "soft" },
2921
- icon: {}
2922
- },
2923
- setup(__props) {
2924
- const props = __props;
2925
- const resetClass = computed(() => {
2926
- return extractClass(props, ["size", "variant"]);
2927
- });
2928
- return (_ctx, _cache) => {
2929
- return openBlock(), createElementBlock("span", {
2930
- class: normalizeClass(["ui-IconCircle", resetClass.value]),
2931
- "data-radius": "full",
2932
- "data-accent-color": props.color
2933
- }, [
2934
- createVNode(unref(Icon), {
2935
- icon: props.icon
2936
- }, null, 8, ["icon"])
2937
- ], 10, _hoisted_1);
3123
+ }, {
3124
+ default: withCtx(() => [
3125
+ renderSlot(_ctx.$slots, "default", { status: _ctx.status }, () => [
3126
+ props.status === "saving" ? (openBlock(), createBlock(SpinnerIcon, { key: 0 })) : props.status === "saved" ? (openBlock(), createBlock(unref(CheckIcon), { key: 1 })) : createCommentVNode("", true)
3127
+ ])
3128
+ ]),
3129
+ _: 3
3130
+ }, 8, ["class", "data-status"]);
2938
3131
  };
2939
3132
  }
2940
3133
  });
2941
3134
  export {
2942
- _sfc_main$c as AccordionContent,
2943
- _sfc_main$d as AccordionItem,
2944
- _sfc_main$e as AccordionRoot,
2945
- _sfc_main$9 as AccordionTrigger,
3135
+ _sfc_main$f as AccordionContent,
3136
+ _sfc_main$e as AccordionIndicator,
3137
+ _sfc_main$g as AccordionItem,
3138
+ _sfc_main$h as AccordionRoot,
3139
+ _sfc_main$d as AccordionTrigger,
2946
3140
  AlertDialogAction,
2947
3141
  AlertDialogCancel,
2948
- _sfc_main$M as AlertDialogContent,
2949
- _sfc_main$P as AlertDialogDescription,
3142
+ _sfc_main$T as AlertDialogDescription,
3143
+ _sfc_main$Q as AlertDialogPopup,
2950
3144
  AlertDialogRoot,
2951
- _sfc_main$Q as AlertDialogTitle,
3145
+ _sfc_main$U as AlertDialogTitle,
2952
3146
  AlertDialogTrigger,
2953
- _sfc_main$Z as Avatar,
2954
- _sfc_main$Y as Badge,
2955
- _sfc_main$U as Button,
2956
- _sfc_main$W as Card,
2957
- _sfc_main$V as CardHead,
2958
- _sfc_main$H as Checkbox,
2959
- _sfc_main$E as CheckboxGroupControl,
2960
- _sfc_main$F as CheckboxGroupItem,
2961
- _sfc_main$G as CheckboxGroupRoot,
2962
- _sfc_main$a as ChevronIcon,
2963
- _sfc_main$8 as CollapsibleContent,
2964
- CollapsibleRoot,
2965
- CollapsibleTrigger,
2966
- _sfc_main$y as ColorField,
2967
- _sfc_main$p as ComboboxContent,
2968
- ComboboxEmpty,
3147
+ _sfc_main$_ as Avatar,
3148
+ _sfc_main$Z as Badge,
3149
+ _sfc_main$X as Button,
3150
+ _sfc_main$Y as Card,
3151
+ _sfc_main$K as Checkbox,
3152
+ CheckboxGroupRoot as CheckboxGroup,
3153
+ _sfc_main$9 as CollapsibleContent,
3154
+ _sfc_main$b as CollapsibleIndicator,
3155
+ _sfc_main$c as CollapsibleRoot,
3156
+ _sfc_main$a as CollapsibleTrigger,
3157
+ _sfc_main$E as ColorField,
3158
+ _sfc_main$v as ComboboxContent,
3159
+ _sfc_main$s as ComboboxEmpty,
2969
3160
  ComboboxGroup,
2970
- _sfc_main$q as ComboboxInput,
2971
- _sfc_main$o as ComboboxItem,
2972
- _sfc_main$n as ComboboxLabel,
2973
- _sfc_main$r as ComboboxRoot,
2974
- DialogClose2 as DialogClose,
2975
- _sfc_main$N as DialogContent,
2976
- _sfc_main$P as DialogDescription,
3161
+ _sfc_main$w as ComboboxInput,
3162
+ _sfc_main$u as ComboboxItem,
3163
+ _sfc_main$t as ComboboxLabel,
3164
+ _sfc_main$x as ComboboxRoot,
3165
+ DialogClose,
3166
+ _sfc_main$T as DialogDescription,
3167
+ _sfc_main$R as DialogPopup,
2977
3168
  DialogRoot,
2978
- _sfc_main$Q as DialogTitle,
3169
+ _sfc_main$U as DialogTitle,
2979
3170
  DialogTrigger,
2980
- _sfc_main$L as DropdownMenuContent,
2981
- _sfc_main$K as DropdownMenuItem,
3171
+ _sfc_main$P as DropdownMenuContent,
3172
+ _sfc_main$O as DropdownMenuItem,
2982
3173
  DropdownMenuRoot,
3174
+ DropdownMenuSeparator,
2983
3175
  DropdownMenuTrigger,
2984
- _sfc_main$f as Editable,
2985
- Icon2 as Icon,
2986
- _sfc_main$T as IconButton,
2987
- _sfc_main as IconCircle,
2988
- _sfc_main$X as Inset,
2989
- _sfc_main$7 as Pagination,
2990
- _sfc_main$b as PlusMinusIcon,
3176
+ _sfc_main$i as Editable,
3177
+ _sfc_main$W as IconButton,
3178
+ _sfc_main$8 as Pagination,
2991
3179
  PopoverClose,
2992
- _sfc_main$J as PopoverContent,
3180
+ _sfc_main$M as PopoverPopup,
2993
3181
  PopoverRoot,
2994
3182
  PopoverTrigger,
2995
- _sfc_main$3 as Quota,
2996
- _sfc_main$m as Radio,
2997
- _sfc_main$j as RadioCardsItem,
2998
- _sfc_main$l as RadioCardsRoot,
2999
- _sfc_main$k as RadioGroupItem,
3000
- _sfc_main$l as RadioGroupRoot,
3001
- RadioGroupItem2 as RadioTabsItem,
3002
- _sfc_main$i as RadioTabsList,
3003
- _sfc_main$1 as SavingIndicator,
3004
- _sfc_main$R as ScrollArea,
3005
- _sfc_main$w as SelectContent,
3183
+ _sfc_main$1 as Quota,
3184
+ _sfc_main$r as Radio,
3185
+ _sfc_main$n as RadioCardsItem,
3186
+ _sfc_main$o as RadioCardsRoot,
3187
+ _sfc_main$p as RadioGroupItem,
3188
+ _sfc_main$q as RadioGroupRoot,
3189
+ _sfc_main$l as RadioTabsItem,
3190
+ _sfc_main$m as RadioTabsRoot,
3191
+ _sfc_main as SavingIndicator,
3192
+ _sfc_main$V as ScrollArea,
3193
+ _sfc_main$C as SelectContent,
3006
3194
  SelectGroup,
3007
- _sfc_main$u as SelectItem,
3008
- _sfc_main$t as SelectLabel,
3009
- _sfc_main$x as SelectRoot,
3195
+ _sfc_main$A as SelectItem,
3196
+ _sfc_main$z as SelectLabel,
3197
+ _sfc_main$D as SelectRoot,
3010
3198
  SelectSeparator,
3011
- _sfc_main$v as SelectTrigger,
3012
- _sfc_main$5 as Separator,
3013
- _sfc_main$S as SocialButton,
3014
- _sfc_main$2 as Spinner,
3015
- _sfc_main$I as Switch,
3016
- _sfc_main$6 as Table,
3199
+ _sfc_main$B as SelectTrigger,
3200
+ _sfc_main$3 as Separator,
3201
+ SpinnerIcon,
3202
+ _sfc_main$L as Switch,
3203
+ _sfc_main$4 as Table,
3017
3204
  TabsContent,
3018
- _sfc_main$h as TabsList,
3205
+ _sfc_main$k as TabsList,
3019
3206
  TabsRoot,
3020
- _sfc_main$g as TabsTrigger,
3021
- _sfc_main$z as TextArea,
3022
- _sfc_main$A as TextField,
3023
- _sfc_main$_ as ThemeProvider,
3024
- _sfc_main$D as Toggle,
3025
- _sfc_main$B as ToggleGroupItem,
3026
- _sfc_main$C as ToggleGroupRoot,
3027
- _sfc_main$4 as Tooltip,
3207
+ _sfc_main$j as TabsTrigger,
3208
+ _sfc_main$F as TextArea,
3209
+ _sfc_main$G as TextField,
3210
+ _sfc_main$$ as ThemeProvider,
3211
+ _sfc_main$5 as ToastProvider,
3212
+ _sfc_main$J as Toggle,
3213
+ _sfc_main$H as ToggleGroupItem,
3214
+ _sfc_main$I as ToggleGroupRoot,
3215
+ _sfc_main$2 as Tooltip,
3216
+ buildPropsClass,
3028
3217
  injectThemeContext,
3029
- provideThemeContext
3218
+ provideThemeContext,
3219
+ toast,
3220
+ useForwardPropsEmitsWithout,
3221
+ useForwardPropsWithout
3030
3222
  };