@typlog/ui 0.12.0 → 0.12.2

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.d.ts CHANGED
@@ -693,6 +693,17 @@ export declare interface CheckboxProps extends CheckboxRootProps {
693
693
  highContrast?: boolean;
694
694
  }
695
695
 
696
+ export declare const CloseButton: DefineComponent<ButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ButtonProps> & Readonly<{}>, {
697
+ as: AsTag | Component;
698
+ size: "1" | "2" | "3" | "4";
699
+ variant: "classic" | "solid" | "soft" | "surface" | "outline" | "ghost";
700
+ color: ColorType;
701
+ highContrast: boolean;
702
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
703
+
704
+ export declare interface CloseButtonProps extends ButtonProps {
705
+ }
706
+
696
707
  export declare const CollapsibleContent: __VLS_WithTemplateSlots_43<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
697
708
 
698
709
  export { CollapsibleContentProps }
@@ -1067,7 +1078,6 @@ sideOffset: number;
1067
1078
  }>;
1068
1079
 
1069
1080
  export declare interface PopoverPopupProps extends PopoverContentProps {
1070
- to?: string | HTMLElement;
1071
1081
  size?: '1' | '2';
1072
1082
  }
1073
1083
 
@@ -1396,6 +1406,7 @@ variant: "classic" | "outline" | "surface" | "soft";
1396
1406
 
1397
1407
  export declare interface TabsListProps {
1398
1408
  size?: '1' | '2';
1409
+ radius?: RadiusType;
1399
1410
  color?: ColorType;
1400
1411
  variant?: 'classic' | 'outline' | 'surface' | 'soft';
1401
1412
  highContrast?: boolean;
@@ -1461,6 +1472,7 @@ accentColor: ColorType;
1461
1472
  radius: RadiusType;
1462
1473
  grayColor: GrayColorType;
1463
1474
  scaling: ScalingType;
1475
+ panelBackground: "solid" | "translucent";
1464
1476
  hasBackground: boolean;
1465
1477
  as: AsTag | Component;
1466
1478
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
@@ -1472,6 +1484,7 @@ declare interface ThemeProviderContext {
1472
1484
  radius: Ref<RadiusType>;
1473
1485
  grayColor: Ref<GrayColorType>;
1474
1486
  scaling: Ref<ScalingType>;
1487
+ panelBackground: Ref<'solid' | 'translucent'>;
1475
1488
  hasBackground: Ref<boolean>;
1476
1489
  }
1477
1490
 
@@ -1480,6 +1493,7 @@ export declare interface ThemeProviderProps extends PrimitiveProps {
1480
1493
  radius?: RadiusType;
1481
1494
  grayColor?: GrayColorType;
1482
1495
  scaling?: ScalingType;
1496
+ panelBackground?: 'solid' | 'translucent';
1483
1497
  hasBackground?: boolean;
1484
1498
  }
1485
1499
 
package/components.js CHANGED
@@ -1,27 +1,29 @@
1
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";
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, 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
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
5
  const [injectThemeContext, provideThemeContext] = createContext("ThemeProvider");
6
- const _sfc_main$$ = /* @__PURE__ */ defineComponent({
6
+ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
7
7
  __name: "ThemeProvider",
8
8
  props: {
9
9
  accentColor: { default: "indigo" },
10
10
  radius: { default: "medium" },
11
11
  grayColor: { default: "auto" },
12
12
  scaling: { default: "100%" },
13
+ panelBackground: { default: "translucent" },
13
14
  hasBackground: { type: Boolean, default: true },
14
15
  asChild: { type: Boolean },
15
16
  as: { default: "div" }
16
17
  },
17
18
  setup(__props) {
18
19
  const props = __props;
19
- const { accentColor, radius, grayColor, scaling, hasBackground } = toRefs(props);
20
+ const { accentColor, radius, grayColor, scaling, panelBackground, hasBackground } = toRefs(props);
20
21
  provideThemeContext({
21
22
  accentColor,
22
23
  radius,
23
24
  grayColor,
24
25
  scaling,
26
+ panelBackground,
25
27
  hasBackground
26
28
  });
27
29
  return (_ctx, _cache) => {
@@ -33,6 +35,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
33
35
  "data-gray-color": unref(grayColor),
34
36
  "data-radius": unref(radius),
35
37
  "data-scaling": unref(scaling),
38
+ "data-panel-background": unref(panelBackground),
36
39
  "data-has-background": unref(hasBackground),
37
40
  as: props.as,
38
41
  "as-child": props.asChild
@@ -41,7 +44,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
41
44
  renderSlot(_ctx.$slots, "default")
42
45
  ]),
43
46
  _: 3
44
- }, 8, ["data-accent-color", "data-gray-color", "data-radius", "data-scaling", "data-has-background", "as", "as-child"])
47
+ }, 8, ["data-accent-color", "data-gray-color", "data-radius", "data-scaling", "data-panel-background", "data-has-background", "as", "as-child"])
45
48
  ]),
46
49
  _: 3
47
50
  });
@@ -108,7 +111,7 @@ function kebabize(str) {
108
111
  function _kebabReplace(str, ofs) {
109
112
  return (ofs ? "-" : "") + str.toLowerCase();
110
113
  }
111
- const _sfc_main$_ = /* @__PURE__ */ defineComponent({
114
+ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
112
115
  __name: "Avatar",
113
116
  props: {
114
117
  alt: {},
@@ -168,7 +171,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
168
171
  };
169
172
  }
170
173
  });
171
- const _sfc_main$Z = /* @__PURE__ */ defineComponent({
174
+ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
172
175
  __name: "Badge",
173
176
  props: {
174
177
  variant: { default: "soft" },
@@ -198,7 +201,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
198
201
  };
199
202
  }
200
203
  });
201
- const _sfc_main$Y = /* @__PURE__ */ defineComponent({
204
+ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
202
205
  __name: "Card",
203
206
  props: {
204
207
  variant: { default: "surface" },
@@ -225,7 +228,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
225
228
  };
226
229
  }
227
230
  });
228
- const _sfc_main$X = /* @__PURE__ */ defineComponent({
231
+ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
229
232
  __name: "Button",
230
233
  props: {
231
234
  variant: { default: "solid" },
@@ -258,7 +261,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
258
261
  };
259
262
  }
260
263
  });
261
- const _sfc_main$W = /* @__PURE__ */ defineComponent({
264
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
262
265
  __name: "IconButton",
263
266
  props: {
264
267
  variant: { default: "solid" },
@@ -291,6 +294,55 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
291
294
  };
292
295
  }
293
296
  });
297
+ const _hoisted_1$u = {
298
+ viewBox: "0 0 15 15",
299
+ width: "1em",
300
+ height: "1em"
301
+ };
302
+ function render$8(_ctx, _cache) {
303
+ return openBlock(), createElementBlock("svg", _hoisted_1$u, _cache[0] || (_cache[0] = [
304
+ createElementVNode("path", {
305
+ fill: "currentColor",
306
+ "fill-rule": "evenodd",
307
+ 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",
308
+ "clip-rule": "evenodd"
309
+ }, null, -1)
310
+ ]));
311
+ }
312
+ const CrossIcon = markRaw({ name: "radix-icons-cross-2", render: render$8 });
313
+ const _sfc_main$W = /* @__PURE__ */ defineComponent({
314
+ __name: "CloseButton",
315
+ props: {
316
+ variant: { default: "ghost" },
317
+ color: { default: "gray" },
318
+ radius: {},
319
+ size: { default: "2" },
320
+ highContrast: { type: Boolean, default: false },
321
+ disabled: { type: Boolean },
322
+ as: { default: "button" },
323
+ asChild: { type: Boolean }
324
+ },
325
+ setup(__props) {
326
+ const props = __props;
327
+ const resetClass = buildPropsClass(props, ["size", "variant", "highContrast"]);
328
+ return (_ctx, _cache) => {
329
+ return openBlock(), createBlock(unref(Primitive), {
330
+ class: normalizeClass(["ui-Button ui-CloseButton", unref(resetClass)]),
331
+ "as-child": props.asChild,
332
+ as: props.as,
333
+ "data-accent-color": props.color,
334
+ "data-radius": props.radius,
335
+ "data-disabled": props.disabled ? true : void 0,
336
+ disabled: props.disabled && props.as === "button" ? true : void 0
337
+ }, {
338
+ default: withCtx(() => [
339
+ createVNode(unref(CrossIcon))
340
+ ]),
341
+ _: 1
342
+ }, 8, ["class", "as-child", "as", "data-accent-color", "data-radius", "data-disabled", "disabled"]);
343
+ };
344
+ }
345
+ });
294
346
  const _sfc_main$V = /* @__PURE__ */ defineComponent({
295
347
  __name: "ScrollArea",
296
348
  props: {
@@ -427,7 +479,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
427
479
  };
428
480
  }
429
481
  });
430
- const _hoisted_1$u = { class: "ui-DialogWrapper" };
482
+ const _hoisted_1$t = { class: "ui-DialogWrapper" };
431
483
  const _hoisted_2$8 = { class: "ui-DialogContainer" };
432
484
  const _sfc_main$R = /* @__PURE__ */ defineComponent({
433
485
  ...{
@@ -453,7 +505,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
453
505
  default: withCtx(() => [
454
506
  createVNode(unref(DialogOverlay), { class: "ui-DialogOverlay" }, {
455
507
  default: withCtx(() => [
456
- createElementVNode("div", _hoisted_1$u, [
508
+ createElementVNode("div", _hoisted_1$t, [
457
509
  createElementVNode("div", _hoisted_2$8, [
458
510
  createVNode(unref(DialogContent), mergeProps({
459
511
  class: ["ui-DialogPopup", `r-size-${props.size}`]
@@ -480,7 +532,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
480
532
  };
481
533
  }
482
534
  });
483
- const _hoisted_1$t = { class: "ui-DialogWrapper" };
535
+ const _hoisted_1$s = { class: "ui-DialogWrapper" };
484
536
  const _hoisted_2$7 = { class: "ui-DialogContainer" };
485
537
  const _sfc_main$Q = /* @__PURE__ */ defineComponent({
486
538
  ...{
@@ -505,7 +557,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
505
557
  default: withCtx(() => [
506
558
  createVNode(unref(AlertDialogOverlay), { class: "ui-DialogOverlay" }, {
507
559
  default: withCtx(() => [
508
- createElementVNode("div", _hoisted_1$t, [
560
+ createElementVNode("div", _hoisted_1$s, [
509
561
  createElementVNode("div", _hoisted_2$7, [
510
562
  createVNode(unref(AlertDialogContent), mergeProps({ class: "ui-DialogPopup ui-AlertPopup r-size-3" }, {
511
563
  ..._ctx.$attrs,
@@ -530,7 +582,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
530
582
  };
531
583
  }
532
584
  });
533
- const _hoisted_1$s = { class: "ui-MenuViewport" };
585
+ const _hoisted_1$r = { class: "ui-MenuViewport" };
534
586
  const [injectDropdownMenuContentContext, provideDropdownMenuContentContext] = createContext("ui:DropdownMenuContent");
535
587
  const _sfc_main$P = /* @__PURE__ */ defineComponent({
536
588
  ...{
@@ -596,7 +648,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
596
648
  default: withCtx(() => [
597
649
  createVNode(_sfc_main$V, { type: "auto" }, {
598
650
  default: withCtx(() => [
599
- createElementVNode("div", _hoisted_1$s, [
651
+ createElementVNode("div", _hoisted_1$r, [
600
652
  renderSlot(_ctx.$slots, "default")
601
653
  ])
602
654
  ]),
@@ -614,7 +666,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
614
666
  };
615
667
  }
616
668
  });
617
- const _hoisted_1$r = ["textContent"];
669
+ const _hoisted_1$q = ["textContent"];
618
670
  const _sfc_main$O = /* @__PURE__ */ defineComponent({
619
671
  __name: "DropdownMenuItem",
620
672
  props: {
@@ -645,7 +697,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
645
697
  key: 0,
646
698
  class: "ui-MenuShortcut",
647
699
  textContent: toDisplayString(props.shortcut)
648
- }, null, 8, _hoisted_1$r)) : createCommentVNode("", true)
700
+ }, null, 8, _hoisted_1$q)) : createCommentVNode("", true)
649
701
  ]),
650
702
  _: 3
651
703
  }, 16, ["data-accent-color", "data-variant", "data-high-contrast"]);
@@ -660,12 +712,12 @@ const _export_sfc = (sfc, props) => {
660
712
  return target;
661
713
  };
662
714
  const _sfc_main$N = {};
663
- const _hoisted_1$q = {
715
+ const _hoisted_1$p = {
664
716
  class: "ui-DropdownMenuSeparator",
665
717
  "aria-hidden": "true"
666
718
  };
667
719
  function _sfc_render$2(_ctx, _cache) {
668
- return openBlock(), createElementBlock("div", _hoisted_1$q);
720
+ return openBlock(), createElementBlock("div", _hoisted_1$p);
669
721
  }
670
722
  const DropdownMenuSeparator = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["render", _sfc_render$2]]);
671
723
  const _sfc_main$M = /* @__PURE__ */ defineComponent({
@@ -674,7 +726,6 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
674
726
  },
675
727
  __name: "PopoverPopup",
676
728
  props: {
677
- to: {},
678
729
  size: { default: "1" },
679
730
  forceMount: { type: Boolean },
680
731
  side: { default: "bottom" },
@@ -704,9 +755,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
704
755
  const emits = __emit;
705
756
  const forwarded = useForwardPropsEmitsWithout(props, emits, ["to", "size"]);
706
757
  return (_ctx, _cache) => {
707
- return openBlock(), createBlock(unref(PopoverPortal), {
708
- to: props.to
709
- }, {
758
+ return openBlock(), createBlock(unref(PopoverPortal), null, {
710
759
  default: withCtx(() => [
711
760
  createVNode(_sfc_main$S, null, {
712
761
  default: withCtx(() => [
@@ -723,7 +772,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
723
772
  })
724
773
  ]),
725
774
  _: 3
726
- }, 8, ["to"]);
775
+ });
727
776
  };
728
777
  }
729
778
  });
@@ -765,7 +814,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
765
814
  };
766
815
  }
767
816
  });
768
- const _hoisted_1$p = {
817
+ const _hoisted_1$o = {
769
818
  width: "9",
770
819
  height: "9",
771
820
  viewBox: "0 0 9 9",
@@ -818,7 +867,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
818
867
  "as-child": ""
819
868
  }, {
820
869
  default: withCtx(() => [
821
- (openBlock(), createElementBlock("svg", _hoisted_1$p, [
870
+ (openBlock(), createElementBlock("svg", _hoisted_1$o, [
822
871
  state === "indeterminate" ? (openBlock(), createElementBlock("path", _hoisted_2$6)) : (openBlock(), createElementBlock("path", _hoisted_3$2))
823
872
  ]))
824
873
  ]),
@@ -928,7 +977,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
928
977
  };
929
978
  }
930
979
  });
931
- const _hoisted_1$o = ["data-radius", "data-accent-color"];
980
+ const _hoisted_1$n = ["data-radius", "data-accent-color"];
932
981
  const _hoisted_2$5 = ["id", "type"];
933
982
  const _hoisted_3$1 = ["id", "type"];
934
983
  const _hoisted_4 = {
@@ -1021,11 +1070,11 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
1021
1070
  _ctx.$slots.right ? (openBlock(), createElementBlock("div", _hoisted_5, [
1022
1071
  renderSlot(_ctx.$slots, "right")
1023
1072
  ])) : createCommentVNode("", true)
1024
- ], 42, _hoisted_1$o);
1073
+ ], 42, _hoisted_1$n);
1025
1074
  };
1026
1075
  }
1027
1076
  });
1028
- const _hoisted_1$n = ["data-accent-color", "data-radius"];
1077
+ const _hoisted_1$m = ["data-accent-color", "data-radius"];
1029
1078
  const _sfc_main$F = /* @__PURE__ */ defineComponent({
1030
1079
  ...{
1031
1080
  inheritAttrs: false
@@ -1060,11 +1109,11 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
1060
1109
  }, _ctx.$attrs, { class: "ui-TextAreaInput" }), null, 16), [
1061
1110
  [vModelText, modelValue.value]
1062
1111
  ])
1063
- ], 10, _hoisted_1$n);
1112
+ ], 10, _hoisted_1$m);
1064
1113
  };
1065
1114
  }
1066
1115
  });
1067
- const _hoisted_1$m = ["id"];
1116
+ const _hoisted_1$l = ["id"];
1068
1117
  const _sfc_main$E = /* @__PURE__ */ defineComponent({
1069
1118
  __name: "ColorField",
1070
1119
  props: /* @__PURE__ */ mergeModels({
@@ -1101,7 +1150,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
1101
1150
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event),
1102
1151
  class: "ui-ColorFieldInput",
1103
1152
  type: "color"
1104
- }, null, 8, _hoisted_1$m), [
1153
+ }, null, 8, _hoisted_1$l), [
1105
1154
  [vModelText, modelValue.value]
1106
1155
  ])
1107
1156
  ]),
@@ -1256,13 +1305,13 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
1256
1305
  };
1257
1306
  }
1258
1307
  });
1259
- const _hoisted_1$l = {
1308
+ const _hoisted_1$k = {
1260
1309
  viewBox: "0 0 15 15",
1261
1310
  width: "1em",
1262
1311
  height: "1em"
1263
1312
  };
1264
- function render$8(_ctx, _cache) {
1265
- return openBlock(), createElementBlock("svg", _hoisted_1$l, _cache[0] || (_cache[0] = [
1313
+ function render$7(_ctx, _cache) {
1314
+ return openBlock(), createElementBlock("svg", _hoisted_1$k, _cache[0] || (_cache[0] = [
1266
1315
  createElementVNode("path", {
1267
1316
  fill: "currentColor",
1268
1317
  "fill-rule": "evenodd",
@@ -1271,8 +1320,8 @@ function render$8(_ctx, _cache) {
1271
1320
  }, null, -1)
1272
1321
  ]));
1273
1322
  }
1274
- const ChevronDownIcon = markRaw({ name: "radix-icons-chevron-down", render: render$8 });
1275
- const _hoisted_1$k = { class: "ui-SelectTriggerInner" };
1323
+ const ChevronDownIcon = markRaw({ name: "radix-icons-chevron-down", render: render$7 });
1324
+ const _hoisted_1$j = { class: "ui-SelectTriggerInner" };
1276
1325
  const _sfc_main$B = /* @__PURE__ */ defineComponent({
1277
1326
  __name: "SelectTrigger",
1278
1327
  props: {
@@ -1298,7 +1347,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
1298
1347
  "data-radius": props.radius
1299
1348
  }, {
1300
1349
  default: withCtx(() => [
1301
- createElementVNode("span", _hoisted_1$k, [
1350
+ createElementVNode("span", _hoisted_1$j, [
1302
1351
  createVNode(unref(SelectValue), {
1303
1352
  placeholder: props.placeholder
1304
1353
  }, {
@@ -1316,25 +1365,20 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
1316
1365
  _: 3
1317
1366
  }, 8, ["placeholder"])
1318
1367
  ]),
1319
- createVNode(unref(SelectIcon), { "as-child": "" }, {
1320
- default: withCtx(() => [
1321
- createVNode(unref(ChevronDownIcon), { class: "ui-SelectIcon" })
1322
- ]),
1323
- _: 1
1324
- })
1368
+ createVNode(unref(ChevronDownIcon), { class: "ui-SelectIcon" })
1325
1369
  ]),
1326
1370
  _: 3
1327
1371
  }, 8, ["class", "disabled", "data-accent-color", "data-radius"]);
1328
1372
  };
1329
1373
  }
1330
1374
  });
1331
- const _hoisted_1$j = {
1375
+ const _hoisted_1$i = {
1332
1376
  viewBox: "0 0 15 15",
1333
1377
  width: "1em",
1334
1378
  height: "1em"
1335
1379
  };
1336
- function render$7(_ctx, _cache) {
1337
- return openBlock(), createElementBlock("svg", _hoisted_1$j, _cache[0] || (_cache[0] = [
1380
+ function render$6(_ctx, _cache) {
1381
+ return openBlock(), createElementBlock("svg", _hoisted_1$i, _cache[0] || (_cache[0] = [
1338
1382
  createElementVNode("path", {
1339
1383
  fill: "currentColor",
1340
1384
  "fill-rule": "evenodd",
@@ -1343,7 +1387,7 @@ function render$7(_ctx, _cache) {
1343
1387
  }, null, -1)
1344
1388
  ]));
1345
1389
  }
1346
- const CheckIcon$1 = markRaw({ name: "radix-icons-check", render: render$7 });
1390
+ const CheckIcon$1 = markRaw({ name: "radix-icons-check", render: render$6 });
1347
1391
  const _sfc_main$A = /* @__PURE__ */ defineComponent({
1348
1392
  __name: "SelectItem",
1349
1393
  props: {
@@ -1400,12 +1444,12 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
1400
1444
  }
1401
1445
  });
1402
1446
  const _sfc_main$y = {};
1403
- const _hoisted_1$i = {
1447
+ const _hoisted_1$h = {
1404
1448
  class: "ui-SelectSeparator",
1405
1449
  "aria-hidden": "true"
1406
1450
  };
1407
1451
  function _sfc_render$1(_ctx, _cache) {
1408
- return openBlock(), createElementBlock("div", _hoisted_1$i);
1452
+ return openBlock(), createElementBlock("div", _hoisted_1$h);
1409
1453
  }
1410
1454
  const SelectSeparator = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$1]]);
1411
1455
  const [injectComboboxRootContext, provideComboboxRootContext] = createContext("ui:ComboboxRoot");
@@ -1458,22 +1502,6 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
1458
1502
  };
1459
1503
  }
1460
1504
  });
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
1505
  const _hoisted_1$g = {
1478
1506
  key: 0,
1479
1507
  class: "ui-ComboboxValues"
@@ -2003,6 +2031,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
2003
2031
  __name: "TabsList",
2004
2032
  props: {
2005
2033
  size: { default: "2" },
2034
+ radius: {},
2006
2035
  color: {},
2007
2036
  variant: { default: "outline" },
2008
2037
  highContrast: { type: Boolean }
@@ -2013,6 +2042,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
2013
2042
  return (_ctx, _cache) => {
2014
2043
  return openBlock(), createBlock(unref(TabsList), {
2015
2044
  class: normalizeClass(["ui-TabList", unref(resetClass)]),
2045
+ "data-radius": props.radius,
2016
2046
  "data-accent-color": props.color
2017
2047
  }, {
2018
2048
  default: withCtx(() => [
@@ -2020,7 +2050,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
2020
2050
  renderSlot(_ctx.$slots, "default")
2021
2051
  ]),
2022
2052
  _: 3
2023
- }, 8, ["class", "data-accent-color"]);
2053
+ }, 8, ["class", "data-radius", "data-accent-color"]);
2024
2054
  };
2025
2055
  }
2026
2056
  });
@@ -2447,7 +2477,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
2447
2477
  return openBlock(), createElementBlock("div", {
2448
2478
  class: normalizeClass(["ui-Pagination", unref(resetClass)])
2449
2479
  }, [
2450
- pagination.value.prev ? (openBlock(), createBlock(_sfc_main$W, mergeProps({ key: 0 }, buttonProps.value, {
2480
+ pagination.value.prev ? (openBlock(), createBlock(_sfc_main$X, mergeProps({ key: 0 }, buttonProps.value, {
2451
2481
  "aria-label": "Previous",
2452
2482
  onClick: _cache[0] || (_cache[0] = withModifiers(($event) => selectPage(pagination.value.prev), ["prevent"]))
2453
2483
  }), {
@@ -2460,7 +2490,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
2460
2490
  ]),
2461
2491
  _: 3
2462
2492
  }, 16)) : createCommentVNode("", true),
2463
- createVNode(_sfc_main$X, mergeProps(buttonProps.value, {
2493
+ createVNode(_sfc_main$Y, mergeProps(buttonProps.value, {
2464
2494
  disabled: page.value === 1,
2465
2495
  "aria-current": "page",
2466
2496
  onClick: _cache[1] || (_cache[1] = withModifiers(($event) => selectPage(1), ["prevent"]))
@@ -2472,7 +2502,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
2472
2502
  ]),
2473
2503
  _: 3
2474
2504
  }, 16, ["disabled"]),
2475
- pagination.value.hasLeftEdge ? (openBlock(), createBlock(_sfc_main$W, mergeProps({ key: 1 }, buttonProps.value, {
2505
+ pagination.value.hasLeftEdge ? (openBlock(), createBlock(_sfc_main$X, mergeProps({ key: 1 }, buttonProps.value, {
2476
2506
  onClick: withModifiers(selectLeft, ["prevent"])
2477
2507
  }), {
2478
2508
  default: withCtx(() => [
@@ -2485,7 +2515,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
2485
2515
  _: 3
2486
2516
  }, 16)) : createCommentVNode("", true),
2487
2517
  (openBlock(true), createElementBlock(Fragment, null, renderList(pagination.value.pageList, (p) => {
2488
- return openBlock(), createBlock(_sfc_main$X, mergeProps({ key: p }, { ref_for: true }, buttonProps.value, {
2518
+ return openBlock(), createBlock(_sfc_main$Y, mergeProps({ key: p }, { ref_for: true }, buttonProps.value, {
2489
2519
  disabled: p === page.value,
2490
2520
  "aria-current": "page",
2491
2521
  onClick: withModifiers(($event) => selectPage(p), ["prevent"])
@@ -2498,7 +2528,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
2498
2528
  _: 2
2499
2529
  }, 1040, ["disabled", "onClick"]);
2500
2530
  }), 128)),
2501
- pagination.value.hasRightEdge ? (openBlock(), createBlock(_sfc_main$W, mergeProps({ key: 2 }, buttonProps.value, {
2531
+ pagination.value.hasRightEdge ? (openBlock(), createBlock(_sfc_main$X, mergeProps({ key: 2 }, buttonProps.value, {
2502
2532
  onClick: withModifiers(selectRight, ["prevent"])
2503
2533
  }), {
2504
2534
  default: withCtx(() => [
@@ -2510,7 +2540,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
2510
2540
  ]),
2511
2541
  _: 3
2512
2542
  }, 16)) : createCommentVNode("", true),
2513
- pagination.value.totalPages > 1 ? (openBlock(), createBlock(_sfc_main$X, mergeProps({ key: 3 }, buttonProps.value, {
2543
+ pagination.value.totalPages > 1 ? (openBlock(), createBlock(_sfc_main$Y, mergeProps({ key: 3 }, buttonProps.value, {
2514
2544
  disabled: pagination.value.totalPages === page.value,
2515
2545
  "aria-current": "page",
2516
2546
  onClick: _cache[2] || (_cache[2] = withModifiers(($event) => selectPage(pagination.value.totalPages), ["prevent"]))
@@ -2524,7 +2554,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
2524
2554
  ]),
2525
2555
  _: 3
2526
2556
  }, 16, ["disabled"])) : createCommentVNode("", true),
2527
- pagination.value.next ? (openBlock(), createBlock(_sfc_main$W, mergeProps({ key: 4 }, buttonProps.value, {
2557
+ pagination.value.next ? (openBlock(), createBlock(_sfc_main$X, mergeProps({ key: 4 }, buttonProps.value, {
2528
2558
  "aria-label": "Next",
2529
2559
  onClick: _cache[3] || (_cache[3] = withModifiers(($event) => selectPage(pagination.value.next), ["prevent"]))
2530
2560
  }), {
@@ -2541,6 +2571,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
2541
2571
  };
2542
2572
  }
2543
2573
  });
2574
+ // @__NO_SIDE_EFFECTS__
2544
2575
  function createGlobalState(stateFactory) {
2545
2576
  let initialized = false;
2546
2577
  let state;
@@ -2555,7 +2586,7 @@ function createGlobalState(stateFactory) {
2555
2586
  }
2556
2587
  typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
2557
2588
  let count = 0;
2558
- const useToastManager = createGlobalState(() => {
2589
+ const useToastManager = /* @__PURE__ */ createGlobalState(() => {
2559
2590
  const messages = ref([]);
2560
2591
  const add = (msg, category) => {
2561
2592
  const id = count++;
@@ -2765,6 +2796,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
2765
2796
  class: "ui-ToastItem",
2766
2797
  duration: _ctx.message.duration,
2767
2798
  "data-expanded": paused.value,
2799
+ "data-visible": _ctx.index < 3,
2768
2800
  style: normalizeStyle(styleVars.value),
2769
2801
  "onUpdate:open": onOpenChange,
2770
2802
  onPause,
@@ -2803,7 +2835,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
2803
2835
  onClick: _ctx.message.action.onClick
2804
2836
  }, {
2805
2837
  default: withCtx(() => [
2806
- createVNode(_sfc_main$X, {
2838
+ createVNode(_sfc_main$Y, {
2807
2839
  variant: _ctx.message.action.variant || "soft",
2808
2840
  radius: _ctx.message.action.radius,
2809
2841
  size: _ctx.message.action.size || "1",
@@ -2819,7 +2851,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
2819
2851
  }, 8, ["alt-text", "onClick"])) : createCommentVNode("", true)
2820
2852
  ]),
2821
2853
  _: 1
2822
- }, 8, ["duration", "data-expanded", "style"]);
2854
+ }, 8, ["duration", "data-expanded", "data-visible", "style"]);
2823
2855
  };
2824
2856
  }
2825
2857
  });
@@ -2839,7 +2871,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
2839
2871
  setup(__props) {
2840
2872
  const props = __props;
2841
2873
  const forwarded = useForwardPropsWithout(props, ["position", "size"]);
2842
- const manager = useToastManager();
2874
+ const { messages } = useToastManager();
2843
2875
  const yPosition = computed(() => {
2844
2876
  return props.position.split("-")[0];
2845
2877
  });
@@ -2852,14 +2884,11 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
2852
2884
  }
2853
2885
  return xPosition.value;
2854
2886
  });
2855
- const messages = computed(() => {
2856
- return manager.messages.value.slice(0, 3);
2857
- });
2858
2887
  return (_ctx, _cache) => {
2859
2888
  return openBlock(), createBlock(unref(ToastProvider), normalizeProps(guardReactiveProps({ ...unref(forwarded), swipeDirection: swipeDirection.value })), {
2860
2889
  default: withCtx(() => [
2861
2890
  renderSlot(_ctx.$slots, "default"),
2862
- (openBlock(true), createElementBlock(Fragment, null, renderList(messages.value, (msg, index) => {
2891
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(messages), (msg, index) => {
2863
2892
  return renderSlot(_ctx.$slots, "item", {
2864
2893
  key: msg.id,
2865
2894
  message: msg,
@@ -3144,12 +3173,13 @@ export {
3144
3173
  AlertDialogRoot,
3145
3174
  _sfc_main$U as AlertDialogTitle,
3146
3175
  AlertDialogTrigger,
3147
- _sfc_main$_ as Avatar,
3148
- _sfc_main$Z as Badge,
3149
- _sfc_main$X as Button,
3150
- _sfc_main$Y as Card,
3176
+ _sfc_main$$ as Avatar,
3177
+ _sfc_main$_ as Badge,
3178
+ _sfc_main$Y as Button,
3179
+ _sfc_main$Z as Card,
3151
3180
  _sfc_main$K as Checkbox,
3152
3181
  CheckboxGroupRoot as CheckboxGroup,
3182
+ _sfc_main$W as CloseButton,
3153
3183
  _sfc_main$9 as CollapsibleContent,
3154
3184
  _sfc_main$b as CollapsibleIndicator,
3155
3185
  _sfc_main$c as CollapsibleRoot,
@@ -3174,7 +3204,7 @@ export {
3174
3204
  DropdownMenuSeparator,
3175
3205
  DropdownMenuTrigger,
3176
3206
  _sfc_main$i as Editable,
3177
- _sfc_main$W as IconButton,
3207
+ _sfc_main$X as IconButton,
3178
3208
  _sfc_main$8 as Pagination,
3179
3209
  PopoverClose,
3180
3210
  _sfc_main$M as PopoverPopup,
@@ -3207,7 +3237,7 @@ export {
3207
3237
  _sfc_main$j as TabsTrigger,
3208
3238
  _sfc_main$F as TextArea,
3209
3239
  _sfc_main$G as TextField,
3210
- _sfc_main$$ as ThemeProvider,
3240
+ _sfc_main$10 as ThemeProvider,
3211
3241
  _sfc_main$5 as ToastProvider,
3212
3242
  _sfc_main$J as Toggle,
3213
3243
  _sfc_main$H as ToggleGroupItem,