@typlog/ui 0.11.2 → 0.11.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,52 @@
1
- import { computed, defineComponent, createBlock, openBlock, unref, normalizeClass, withCtx, createVNode, createTextVNode, toDisplayString, renderSlot, createElementBlock, mergeProps, createCommentVNode, createElementVNode, toRefs, mergeModels, ref, useModel, onMounted, onBeforeUnmount, useTemplateRef, withDirectives, isRef, vModelDynamic, vModelText, normalizeStyle, normalizeProps, guardReactiveProps, Fragment, watch, renderList, withModifiers, vModelRadio } from "vue";
2
- import { useForwardProps, useEmitAsProps, AvatarRoot, AvatarImage, AvatarFallback, Primitive, ScrollAreaRoot, ScrollAreaViewport, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaCorner, AlertDialogPortal, AlertDialogOverlay, AlertDialogContent, DialogPortal, DialogOverlay, DialogContent, DialogTitle, DialogClose, useForwardExpose, createContext, 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, TooltipProvider, TooltipRoot, TooltipTrigger, TooltipPortal, TooltipContent, TooltipArrow, ProgressRoot, ProgressIndicator } from "reka-ui";
3
- import { AlertDialogAction, AlertDialogCancel, AlertDialogDescription, AlertDialogRoot, AlertDialogTitle, AlertDialogTrigger, CollapsibleRoot, CollapsibleTrigger, ComboboxEmpty, ComboboxGroup, DialogClose as DialogClose2, DialogDescription, DialogRoot, DialogTitle as DialogTitle2, 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, 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, AlertDialogPortal, AlertDialogOverlay, AlertDialogContent, DialogPortal, DialogOverlay, DialogContent, DialogClose, useForwardExpose, 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, AlertDialogDescription, AlertDialogRoot, AlertDialogTitle, AlertDialogTrigger, CollapsibleRoot, CollapsibleTrigger, ComboboxEmpty, ComboboxGroup, DialogClose as DialogClose2, DialogDescription, DialogRoot, DialogTitle, DialogTrigger, DropdownMenuRoot, DropdownMenuTrigger, PopoverClose, PopoverRoot, PopoverTrigger, RadioGroupItem as RadioGroupItem2, SelectGroup, TabsContent, TabsRoot } from "reka-ui";
4
4
  import { Icon } from "@iconify/vue";
5
5
  import { Icon as Icon2 } from "@iconify/vue";
6
+ const [injectThemeContext, provideThemeContext] = createContext("ThemeProvider");
7
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
8
+ __name: "ThemeProvider",
9
+ props: {
10
+ accentColor: { default: "indigo" },
11
+ radius: { default: "medium" },
12
+ grayColor: { default: "auto" },
13
+ scaling: { default: "100%" },
14
+ asChild: { type: Boolean },
15
+ as: { default: "div" }
16
+ },
17
+ setup(__props) {
18
+ const props = __props;
19
+ const { accentColor, radius, grayColor, scaling } = toRefs(props);
20
+ provideThemeContext({
21
+ accentColor,
22
+ radius,
23
+ grayColor,
24
+ scaling
25
+ });
26
+ return (_ctx, _cache) => {
27
+ return openBlock(), createBlock(unref(TooltipProvider), null, {
28
+ default: withCtx(() => [
29
+ createVNode(unref(Primitive), {
30
+ class: "ui-root",
31
+ "data-is-root-theme": "",
32
+ "data-accent-color": props.accentColor,
33
+ "data-gray-color": props.grayColor,
34
+ "data-radius": props.radius,
35
+ "data-scaling": props.scaling,
36
+ as: props.as,
37
+ "as-child": props.asChild
38
+ }, {
39
+ default: withCtx(() => [
40
+ renderSlot(_ctx.$slots, "default")
41
+ ]),
42
+ _: 3
43
+ }, 8, ["data-accent-color", "data-gray-color", "data-radius", "data-scaling", "as", "as-child"])
44
+ ]),
45
+ _: 3
46
+ });
47
+ };
48
+ }
49
+ });
6
50
  function useForwardPropsEmits(props, emit, exclude) {
7
51
  const parsedProps = useForwardProps(props);
8
52
  const emitsAsProps = useEmitAsProps(emit);
@@ -60,7 +104,7 @@ function kebabize(str) {
60
104
  function _kebabReplace(str, ofs) {
61
105
  return (ofs ? "-" : "") + str.toLowerCase();
62
106
  }
63
- const _sfc_main$X = /* @__PURE__ */ defineComponent({
107
+ const _sfc_main$W = /* @__PURE__ */ defineComponent({
64
108
  __name: "Avatar",
65
109
  props: {
66
110
  alt: {},
@@ -112,7 +156,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
112
156
  };
113
157
  }
114
158
  });
115
- const _sfc_main$W = /* @__PURE__ */ defineComponent({
159
+ const _sfc_main$V = /* @__PURE__ */ defineComponent({
116
160
  __name: "Badge",
117
161
  props: {
118
162
  variant: { default: "soft" },
@@ -144,32 +188,16 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
144
188
  };
145
189
  }
146
190
  });
147
- const _sfc_main$V = /* @__PURE__ */ defineComponent({
191
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
148
192
  __name: "Inset",
149
193
  props: {
150
194
  side: { default: "all" },
151
- top: { type: Boolean },
152
- bottom: { type: Boolean },
153
- left: { type: Boolean },
154
- right: { type: Boolean },
155
195
  clip: { default: "border-box" }
156
196
  },
157
197
  setup(__props) {
158
198
  const props = __props;
159
199
  const resetClass = computed(() => {
160
- const rv = [];
161
- if (props.top || ["all", "y", "top"].includes(props.side)) {
162
- rv.push("inset-top");
163
- }
164
- if (props.bottom || ["all", "y", "bottom"].includes(props.side)) {
165
- rv.push("inset-bottom");
166
- }
167
- if (props.left || ["all", "x", "left"].includes(props.side)) {
168
- rv.push("inset-left");
169
- }
170
- if (props.right || ["all", "x", "right"].includes(props.side)) {
171
- rv.push("inset-right");
172
- }
200
+ const rv = [`r-side-${props.side}`];
173
201
  if (props.clip) {
174
202
  rv.push(`r-clip-${props.clip}`);
175
203
  }
@@ -184,7 +212,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
184
212
  };
185
213
  }
186
214
  });
187
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
215
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
188
216
  __name: "Card",
189
217
  props: {
190
218
  variant: { default: "surface" },
@@ -213,7 +241,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
213
241
  };
214
242
  }
215
243
  });
216
- const _sfc_main$T = /* @__PURE__ */ defineComponent({
244
+ const _sfc_main$S = /* @__PURE__ */ defineComponent({
217
245
  __name: "CardHead",
218
246
  props: {
219
247
  color: {},
@@ -236,7 +264,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
236
264
  };
237
265
  }
238
266
  });
239
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
267
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
240
268
  __name: "Button",
241
269
  props: {
242
270
  variant: { default: "solid" },
@@ -270,7 +298,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
270
298
  };
271
299
  }
272
300
  });
273
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
301
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
274
302
  __name: "IconButton",
275
303
  props: {
276
304
  variant: {},
@@ -286,7 +314,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
286
314
  const props = __props;
287
315
  const forwarded = useForwardProps(props);
288
316
  return (_ctx, _cache) => {
289
- return openBlock(), createBlock(_sfc_main$S, mergeProps({ class: "ui-IconButton" }, unref(forwarded)), {
317
+ return openBlock(), createBlock(_sfc_main$R, mergeProps({ class: "ui-IconButton" }, unref(forwarded)), {
290
318
  default: withCtx(() => [
291
319
  renderSlot(_ctx.$slots, "default")
292
320
  ]),
@@ -304,7 +332,7 @@ const BRAND_ICONS = {
304
332
  slack: "logos:slack-icon",
305
333
  figma: "logos:figma"
306
334
  };
307
- const _sfc_main$Q = /* @__PURE__ */ defineComponent({
335
+ const _sfc_main$P = /* @__PURE__ */ defineComponent({
308
336
  __name: "SocialButton",
309
337
  props: {
310
338
  brand: {},
@@ -342,7 +370,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
342
370
  };
343
371
  }
344
372
  });
345
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
373
+ const _sfc_main$O = /* @__PURE__ */ defineComponent({
346
374
  __name: "ScrollArea",
347
375
  props: {
348
376
  size: { default: "1" },
@@ -406,17 +434,15 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
406
434
  };
407
435
  }
408
436
  });
409
- const _hoisted_1$j = { class: "ui-DialogScroll" };
410
- const _hoisted_2$7 = ["data-align"];
411
- const _sfc_main$O = /* @__PURE__ */ defineComponent({
437
+ const _hoisted_1$j = { class: "ui-DialogWrapper" };
438
+ const _hoisted_2$7 = { class: "ui-DialogContainer" };
439
+ const _sfc_main$N = /* @__PURE__ */ defineComponent({
412
440
  ...{
413
441
  inheritAttrs: false
414
442
  },
415
443
  __name: "AlertDialogContent",
416
444
  props: {
417
445
  to: {},
418
- align: { default: "center" },
419
- class: {},
420
446
  size: { default: "3" },
421
447
  width: {},
422
448
  minWidth: {},
@@ -431,6 +457,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
431
457
  },
432
458
  emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
433
459
  setup(__props, { emit: __emit }) {
460
+ const theme = injectThemeContext();
434
461
  const props = __props;
435
462
  const emits = __emit;
436
463
  const forwarded = useForwardPropsEmits(props, emits, [
@@ -450,16 +477,18 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
450
477
  to: props.to
451
478
  }, {
452
479
  default: withCtx(() => [
453
- createVNode(unref(AlertDialogOverlay), { class: "ui-DialogOverlay" }, {
480
+ createVNode(unref(AlertDialogOverlay), {
481
+ class: "ui-root ui-DialogOverlay",
482
+ "data-accent-color": unref(theme).accentColor.value,
483
+ "data-gray-color": unref(theme).grayColor.value,
484
+ "data-radius": unref(theme).radius.value,
485
+ "data-scaling": unref(theme).scaling.value
486
+ }, {
454
487
  default: withCtx(() => [
455
488
  createElementVNode("div", _hoisted_1$j, [
456
- createElementVNode("div", {
457
- class: "ui-DialogScrollPadding",
458
- "data-align": props.align
459
- }, [
489
+ createElementVNode("div", _hoisted_2$7, [
460
490
  createVNode(unref(AlertDialogContent), mergeProps({
461
- class: ["ui-DialogContent", props.class],
462
- "data-size": props.size
491
+ class: ["ui-DialogContent", `r-size-${props.size}`]
463
492
  }, {
464
493
  ..._ctx.$attrs,
465
494
  ...unref(forwarded)
@@ -477,29 +506,27 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
477
506
  renderSlot(_ctx.$slots, "default")
478
507
  ]),
479
508
  _: 3
480
- }, 16, ["class", "data-size", "style"])
481
- ], 8, _hoisted_2$7)
509
+ }, 16, ["class", "style"])
510
+ ])
482
511
  ])
483
512
  ]),
484
513
  _: 3
485
- })
514
+ }, 8, ["data-accent-color", "data-gray-color", "data-radius", "data-scaling"])
486
515
  ]),
487
516
  _: 3
488
517
  }, 8, ["to"]);
489
518
  };
490
519
  }
491
520
  });
492
- const _hoisted_1$i = { class: "ui-DialogScroll" };
493
- const _hoisted_2$6 = ["data-align"];
494
- const _sfc_main$N = /* @__PURE__ */ defineComponent({
521
+ const _hoisted_1$i = { class: "ui-DialogWrapper" };
522
+ const _hoisted_2$6 = { class: "ui-DialogContainer" };
523
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
495
524
  ...{
496
525
  inheritAttrs: false
497
526
  },
498
527
  __name: "DialogContent",
499
528
  props: {
500
529
  to: {},
501
- align: { default: "center" },
502
- class: {},
503
530
  size: { default: "3" },
504
531
  width: {},
505
532
  minWidth: {},
@@ -507,6 +534,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
507
534
  height: {},
508
535
  minHeight: {},
509
536
  maxHeight: {},
537
+ closeIcon: { type: Boolean },
510
538
  forceMount: { type: Boolean },
511
539
  disableOutsidePointerEvents: { type: Boolean },
512
540
  asChild: { type: Boolean },
@@ -515,6 +543,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
515
543
  emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
516
544
  setup(__props, { emit: __emit }) {
517
545
  const props = __props;
546
+ const theme = injectThemeContext();
518
547
  const emits = __emit;
519
548
  const forwarded = useForwardPropsEmits(props, emits, [
520
549
  "to",
@@ -526,23 +555,26 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
526
555
  "maxWidth",
527
556
  "height",
528
557
  "minHeight",
529
- "maxHeight"
558
+ "maxHeight",
559
+ "closeIcon"
530
560
  ]);
531
561
  return (_ctx, _cache) => {
532
562
  return openBlock(), createBlock(unref(DialogPortal), {
533
563
  to: props.to
534
564
  }, {
535
565
  default: withCtx(() => [
536
- createVNode(unref(DialogOverlay), { class: "ui-DialogOverlay" }, {
566
+ createVNode(unref(DialogOverlay), {
567
+ class: "ui-root ui-DialogOverlay",
568
+ "data-accent-color": unref(theme).accentColor.value,
569
+ "data-gray-color": unref(theme).grayColor.value,
570
+ "data-radius": unref(theme).radius.value,
571
+ "data-scaling": unref(theme).scaling.value
572
+ }, {
537
573
  default: withCtx(() => [
538
574
  createElementVNode("div", _hoisted_1$i, [
539
- createElementVNode("div", {
540
- class: "ui-DialogScrollPadding",
541
- "data-align": props.align
542
- }, [
575
+ createElementVNode("div", _hoisted_2$6, [
543
576
  createVNode(unref(DialogContent), mergeProps({
544
- class: ["ui-DialogContent", props.class],
545
- "data-size": props.size
577
+ class: ["ui-DialogContent", `r-size-${props.size}`]
546
578
  }, {
547
579
  ..._ctx.$attrs,
548
580
  ...unref(forwarded)
@@ -557,59 +589,35 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
557
589
  }
558
590
  }), {
559
591
  default: withCtx(() => [
592
+ props.closeIcon ? (openBlock(), createBlock(_sfc_main$Q, {
593
+ key: 0,
594
+ class: "ui-DialogContentClose",
595
+ as: unref(DialogClose),
596
+ type: "button",
597
+ variant: "ghost",
598
+ color: "gray",
599
+ "aria-label": "Close"
600
+ }, {
601
+ default: withCtx(() => [
602
+ createVNode(unref(Icon), { icon: "lucide:x" })
603
+ ]),
604
+ _: 1
605
+ }, 8, ["as"])) : createCommentVNode("", true),
560
606
  renderSlot(_ctx.$slots, "default")
561
607
  ]),
562
608
  _: 3
563
- }, 16, ["class", "data-size", "style"])
564
- ], 8, _hoisted_2$6)
609
+ }, 16, ["class", "style"])
610
+ ])
565
611
  ])
566
612
  ]),
567
613
  _: 3
568
- })
614
+ }, 8, ["data-accent-color", "data-gray-color", "data-radius", "data-scaling"])
569
615
  ]),
570
616
  _: 3
571
617
  }, 8, ["to"]);
572
618
  };
573
619
  }
574
620
  });
575
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
576
- __name: "DialogHead",
577
- props: {
578
- title: {}
579
- },
580
- setup(__props) {
581
- const props = __props;
582
- return (_ctx, _cache) => {
583
- return openBlock(), createBlock(_sfc_main$V, {
584
- class: "ui-DialogHead",
585
- side: "x"
586
- }, {
587
- default: withCtx(() => [
588
- createVNode(unref(DialogTitle), { class: "font-semibold" }, {
589
- default: withCtx(() => [
590
- createTextVNode(toDisplayString(props.title), 1)
591
- ]),
592
- _: 1
593
- }),
594
- createVNode(_sfc_main$R, {
595
- as: unref(DialogClose),
596
- type: "button",
597
- variant: "ghost",
598
- color: "gray",
599
- radius: "full",
600
- "aria-label": "Close"
601
- }, {
602
- default: withCtx(() => [
603
- createVNode(unref(Icon), { icon: "lucide:x" })
604
- ]),
605
- _: 1
606
- }, 8, ["as"])
607
- ]),
608
- _: 1
609
- });
610
- };
611
- }
612
- });
613
621
  const _hoisted_1$h = { class: "ui-MenuViewport" };
614
622
  const [injectDropdownMenuContentContext, provideDropdownMenuContentContext] = createContext("ui_DropdownMenuContent");
615
623
  const _sfc_main$L = /* @__PURE__ */ defineComponent({
@@ -645,6 +653,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
645
653
  },
646
654
  emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
647
655
  setup(__props, { emit: __emit }) {
656
+ const theme = injectThemeContext();
648
657
  const props = __props;
649
658
  const emits = __emit;
650
659
  const forwarded = useForwardPropsEmits(props, emits, [
@@ -667,12 +676,14 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
667
676
  ...unref(forwarded)
668
677
  }, {
669
678
  ref: unref(forwardRef),
670
- class: "ui-PopperContent ui-MenuContent",
671
- "data-accent-color": props.color,
672
- "data-size": props.size
679
+ class: ["ui-root ui-PopperContent ui-MenuContent", `r-size-${props.size}`],
680
+ "data-accent-color": props.color || unref(theme).accentColor.value,
681
+ "data-gray-color": unref(theme).grayColor.value,
682
+ "data-radius": unref(theme).radius.value,
683
+ "data-scaling": unref(theme).scaling.value
673
684
  }), {
674
685
  default: withCtx(() => [
675
- createVNode(_sfc_main$P, { type: "auto" }, {
686
+ createVNode(_sfc_main$O, { type: "auto" }, {
676
687
  default: withCtx(() => [
677
688
  createElementVNode("div", _hoisted_1$h, [
678
689
  renderSlot(_ctx.$slots, "default")
@@ -682,7 +693,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
682
693
  })
683
694
  ]),
684
695
  _: 3
685
- }, 16, ["data-accent-color", "data-size"])
696
+ }, 16, ["class", "data-accent-color", "data-gray-color", "data-radius", "data-scaling"])
686
697
  ]),
687
698
  _: 3
688
699
  }, 8, ["to"]);
@@ -758,6 +769,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
758
769
  },
759
770
  emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
760
771
  setup(__props, { emit: __emit }) {
772
+ const theme = injectThemeContext();
761
773
  const props = __props;
762
774
  const emits = __emit;
763
775
  const forwarded = useForwardPropsEmits(props, emits, ["to", "size"]);
@@ -767,14 +779,17 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
767
779
  }, {
768
780
  default: withCtx(() => [
769
781
  createVNode(unref(PopoverContent), mergeProps({ ..._ctx.$attrs, ...unref(forwarded) }, {
770
- "data-size": props.size,
771
- class: "ui-PopoverContent"
782
+ class: ["ui-root ui-PopoverContent", `r-size-${props.size}`],
783
+ "data-accent-color": unref(theme).accentColor.value,
784
+ "data-gray-color": unref(theme).grayColor.value,
785
+ "data-radius": unref(theme).radius.value,
786
+ "data-scaling": unref(theme).scaling.value
772
787
  }), {
773
788
  default: withCtx(() => [
774
789
  renderSlot(_ctx.$slots, "default")
775
790
  ]),
776
791
  _: 3
777
- }, 16, ["data-size"])
792
+ }, 16, ["class", "data-accent-color", "data-gray-color", "data-radius", "data-scaling"])
778
793
  ]),
779
794
  _: 3
780
795
  }, 8, ["to"]);
@@ -1430,6 +1445,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
1430
1445
  as: {}
1431
1446
  },
1432
1447
  setup(__props) {
1448
+ const theme = injectThemeContext();
1433
1449
  const props = __props;
1434
1450
  const forwarded = useForwardProps(props);
1435
1451
  const { forwardRef } = useForwardExpose();
@@ -1455,8 +1471,11 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
1455
1471
  to: void 0,
1456
1472
  variant: void 0
1457
1473
  }, {
1458
- class: ["ui-SelectContent", contentClass.value],
1459
- "data-accent-color": unref(context).color.value
1474
+ class: ["ui-root ui-SelectContent", contentClass.value],
1475
+ "data-accent-color": unref(context).color.value || unref(theme).accentColor.value,
1476
+ "data-gray-color": unref(theme).grayColor.value,
1477
+ "data-radius": unref(theme).radius.value,
1478
+ "data-scaling": unref(theme).scaling.value
1460
1479
  }), {
1461
1480
  default: withCtx(() => [
1462
1481
  createVNode(unref(ScrollAreaRoot), {
@@ -1495,7 +1514,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
1495
1514
  })
1496
1515
  ]),
1497
1516
  _: 3
1498
- }, 16, ["class", "data-accent-color"])
1517
+ }, 16, ["class", "data-accent-color", "data-gray-color", "data-radius", "data-scaling"])
1499
1518
  ]),
1500
1519
  _: 3
1501
1520
  }, 8, ["to"]);
@@ -1830,6 +1849,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
1830
1849
  emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside"],
1831
1850
  setup(__props, { emit: __emit }) {
1832
1851
  const { forwardRef } = useForwardExpose();
1852
+ const theme = injectThemeContext();
1833
1853
  const props = __props;
1834
1854
  const emits = __emit;
1835
1855
  const forwarded = useForwardPropsEmits$1(props, emits);
@@ -1853,8 +1873,11 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
1853
1873
  to: void 0,
1854
1874
  variant: void 0
1855
1875
  }, {
1856
- class: ["ui-ComboboxContent", contentClass.value],
1857
- "data-accent-color": unref(context).color.value
1876
+ class: ["ui-root ui-ComboboxContent", contentClass.value],
1877
+ "data-accent-color": unref(context).color.value || unref(theme).accentColor.value,
1878
+ "data-gray-color": unref(theme).grayColor.value,
1879
+ "data-radius": unref(theme).radius.value,
1880
+ "data-scaling": unref(theme).scaling.value
1858
1881
  }), {
1859
1882
  default: withCtx(() => [
1860
1883
  createVNode(unref(ScrollAreaRoot), {
@@ -1893,7 +1916,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
1893
1916
  })
1894
1917
  ]),
1895
1918
  _: 3
1896
- }, 16, ["class", "data-accent-color"])
1919
+ }, 16, ["class", "data-accent-color", "data-gray-color", "data-radius", "data-scaling"])
1897
1920
  ]),
1898
1921
  _: 3
1899
1922
  }, 8, ["to"]);
@@ -2090,7 +2113,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
2090
2113
  "data-high-contrast": unref(rootContext).highContrast?.value
2091
2114
  }, { ...unref(forwarded), asChild: false }), {
2092
2115
  default: withCtx(() => [
2093
- createVNode(_sfc_main$U, {
2116
+ createVNode(_sfc_main$T, {
2094
2117
  "as-child": unref(forwarded).asChild
2095
2118
  }, {
2096
2119
  default: withCtx(() => [
@@ -2489,7 +2512,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2489
2512
  return openBlock(), createElementBlock("div", {
2490
2513
  class: normalizeClass(["ui-Pagination", resetClass.value])
2491
2514
  }, [
2492
- pagination.value.prev ? (openBlock(), createBlock(_sfc_main$R, mergeProps({ key: 0 }, buttonProps.value, {
2515
+ pagination.value.prev ? (openBlock(), createBlock(_sfc_main$Q, mergeProps({ key: 0 }, buttonProps.value, {
2493
2516
  "aria-label": "Previous",
2494
2517
  onClick: _cache[0] || (_cache[0] = withModifiers(($event) => selectPage(pagination.value.prev), ["prevent"]))
2495
2518
  }), {
@@ -2502,7 +2525,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2502
2525
  ]),
2503
2526
  _: 3
2504
2527
  }, 16)) : createCommentVNode("", true),
2505
- createVNode(_sfc_main$S, mergeProps(buttonProps.value, {
2528
+ createVNode(_sfc_main$R, mergeProps(buttonProps.value, {
2506
2529
  disabled: page.value === 1,
2507
2530
  "aria-current": "page",
2508
2531
  onClick: _cache[1] || (_cache[1] = withModifiers(($event) => selectPage(1), ["prevent"]))
@@ -2514,7 +2537,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2514
2537
  ]),
2515
2538
  _: 3
2516
2539
  }, 16, ["disabled"]),
2517
- pagination.value.hasLeftEdge ? (openBlock(), createBlock(_sfc_main$R, mergeProps({ key: 1 }, buttonProps.value, {
2540
+ pagination.value.hasLeftEdge ? (openBlock(), createBlock(_sfc_main$Q, mergeProps({ key: 1 }, buttonProps.value, {
2518
2541
  onClick: withModifiers(selectLeft, ["prevent"])
2519
2542
  }), {
2520
2543
  default: withCtx(() => [
@@ -2527,7 +2550,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2527
2550
  _: 3
2528
2551
  }, 16)) : createCommentVNode("", true),
2529
2552
  (openBlock(true), createElementBlock(Fragment, null, renderList(pagination.value.pageList, (p) => {
2530
- return openBlock(), createBlock(_sfc_main$S, mergeProps({ key: p }, { ref_for: true }, buttonProps.value, {
2553
+ return openBlock(), createBlock(_sfc_main$R, mergeProps({ key: p }, { ref_for: true }, buttonProps.value, {
2531
2554
  disabled: p === page.value,
2532
2555
  "aria-current": "page",
2533
2556
  onClick: withModifiers(($event) => selectPage(p), ["prevent"])
@@ -2540,7 +2563,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2540
2563
  _: 2
2541
2564
  }, 1040, ["disabled", "onClick"]);
2542
2565
  }), 128)),
2543
- pagination.value.hasRightEdge ? (openBlock(), createBlock(_sfc_main$R, mergeProps({ key: 2 }, buttonProps.value, {
2566
+ pagination.value.hasRightEdge ? (openBlock(), createBlock(_sfc_main$Q, mergeProps({ key: 2 }, buttonProps.value, {
2544
2567
  onClick: withModifiers(selectRight, ["prevent"])
2545
2568
  }), {
2546
2569
  default: withCtx(() => [
@@ -2552,7 +2575,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2552
2575
  ]),
2553
2576
  _: 3
2554
2577
  }, 16)) : createCommentVNode("", true),
2555
- pagination.value.totalPages > 1 ? (openBlock(), createBlock(_sfc_main$S, mergeProps({ key: 3 }, buttonProps.value, {
2578
+ pagination.value.totalPages > 1 ? (openBlock(), createBlock(_sfc_main$R, mergeProps({ key: 3 }, buttonProps.value, {
2556
2579
  disabled: pagination.value.totalPages === page.value,
2557
2580
  "aria-current": "page",
2558
2581
  onClick: _cache[2] || (_cache[2] = withModifiers(($event) => selectPage(pagination.value.totalPages), ["prevent"]))
@@ -2566,7 +2589,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2566
2589
  ]),
2567
2590
  _: 3
2568
2591
  }, 16, ["disabled"])) : createCommentVNode("", true),
2569
- pagination.value.next ? (openBlock(), createBlock(_sfc_main$R, mergeProps({ key: 4 }, buttonProps.value, {
2592
+ pagination.value.next ? (openBlock(), createBlock(_sfc_main$Q, mergeProps({ key: 4 }, buttonProps.value, {
2570
2593
  "aria-label": "Next",
2571
2594
  onClick: _cache[3] || (_cache[3] = withModifiers(($event) => selectPage(pagination.value.next), ["prevent"]))
2572
2595
  }), {
@@ -2600,7 +2623,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
2600
2623
  "data-size": props.size,
2601
2624
  "data-variant": props.variant
2602
2625
  }, [
2603
- createVNode(_sfc_main$P, null, {
2626
+ createVNode(_sfc_main$O, null, {
2604
2627
  default: withCtx(() => [
2605
2628
  createElementVNode("table", {
2606
2629
  class: "ui-TableContent",
@@ -2645,12 +2668,6 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
2645
2668
  props: {
2646
2669
  to: {},
2647
2670
  content: {},
2648
- delayDuration: {},
2649
- skipDelayDuration: {},
2650
- disableHoverableContent: { type: Boolean },
2651
- disableClosingTrigger: { type: Boolean },
2652
- disabled: { type: Boolean },
2653
- ignoreNonKeyboardFocus: { type: Boolean },
2654
2671
  forceMount: { type: Boolean },
2655
2672
  ariaLabel: {},
2656
2673
  asChild: { type: Boolean },
@@ -2670,65 +2687,58 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
2670
2687
  },
2671
2688
  setup(__props) {
2672
2689
  const props = __props;
2690
+ const theme = injectThemeContext();
2673
2691
  return (_ctx, _cache) => {
2674
- return openBlock(), createBlock(unref(TooltipProvider), {
2675
- "delay-duration": props.delayDuration,
2676
- "disable-closing-trigger": props.disableClosingTrigger,
2677
- "disable-hoverable-content": props.disableHoverableContent,
2678
- disabled: props.disabled,
2679
- "ignore-non-keyboard-focus": props.ignoreNonKeyboardFocus,
2680
- "skip-delay-duration": props.skipDelayDuration
2681
- }, {
2692
+ return openBlock(), createBlock(unref(TooltipRoot), null, {
2682
2693
  default: withCtx(() => [
2683
- createVNode(unref(TooltipRoot), null, {
2694
+ createVNode(unref(TooltipTrigger), mergeProps({
2695
+ as: props.as,
2696
+ "as-child": props.asChild
2697
+ }, _ctx.$attrs), {
2684
2698
  default: withCtx(() => [
2685
- createVNode(unref(TooltipTrigger), mergeProps({
2686
- as: props.as,
2687
- "as-child": props.asChild
2688
- }, _ctx.$attrs), {
2689
- default: withCtx(() => [
2690
- renderSlot(_ctx.$slots, "default")
2691
- ]),
2692
- _: 3
2693
- }, 16, ["as", "as-child"]),
2694
- createVNode(unref(TooltipPortal), {
2695
- to: props.to
2699
+ renderSlot(_ctx.$slots, "default")
2700
+ ]),
2701
+ _: 3
2702
+ }, 16, ["as", "as-child"]),
2703
+ createVNode(unref(TooltipPortal), {
2704
+ to: props.to
2705
+ }, {
2706
+ default: withCtx(() => [
2707
+ createVNode(unref(TooltipContent), {
2708
+ class: "ui-root ui-Tooltip",
2709
+ "data-accent-color": unref(theme).accentColor.value,
2710
+ "data-gray-color": unref(theme).grayColor.value,
2711
+ "data-radius": unref(theme).radius.value,
2712
+ "data-scaling": unref(theme).scaling.value,
2713
+ align: props.align,
2714
+ "align-offset": props.alignOffset,
2715
+ "aria-label": props.ariaLabel,
2716
+ "arrow-padding": props.arrowPadding,
2717
+ "avoid-collisions": props.avoidCollisions,
2718
+ "collision-boundary": props.collisionBoundary,
2719
+ "collision-padding": props.collisionPadding,
2720
+ "hide-when-detached": props.hideWhenDetached,
2721
+ side: props.side,
2722
+ "side-offset": props.sideOffset,
2723
+ sticky: props.sticky
2696
2724
  }, {
2697
2725
  default: withCtx(() => [
2698
- createVNode(unref(TooltipContent), {
2699
- class: "ui-Tooltip",
2700
- align: props.align,
2701
- "align-offset": props.alignOffset,
2702
- "aria-label": props.ariaLabel,
2703
- "arrow-padding": props.arrowPadding,
2704
- "avoid-collisions": props.avoidCollisions,
2705
- "collision-boundary": props.collisionBoundary,
2706
- "collision-padding": props.collisionPadding,
2707
- "hide-when-detached": props.hideWhenDetached,
2708
- side: props.side,
2709
- "side-offset": props.sideOffset,
2710
- sticky: props.sticky
2711
- }, {
2712
- default: withCtx(() => [
2713
- renderSlot(_ctx.$slots, "content", {}, () => [
2714
- createElementVNode("p", {
2715
- class: "ui-TooltipText",
2716
- textContent: toDisplayString(props.content)
2717
- }, null, 8, _hoisted_1$2)
2718
- ]),
2719
- createVNode(unref(TooltipArrow), { class: "ui-TooltipArrow" })
2720
- ]),
2721
- _: 3
2722
- }, 8, ["align", "align-offset", "aria-label", "arrow-padding", "avoid-collisions", "collision-boundary", "collision-padding", "hide-when-detached", "side", "side-offset", "sticky"])
2726
+ renderSlot(_ctx.$slots, "content", {}, () => [
2727
+ createElementVNode("p", {
2728
+ class: "ui-TooltipText",
2729
+ textContent: toDisplayString(props.content)
2730
+ }, null, 8, _hoisted_1$2)
2731
+ ]),
2732
+ createVNode(unref(TooltipArrow), { class: "ui-TooltipArrow" })
2723
2733
  ]),
2724
2734
  _: 3
2725
- }, 8, ["to"])
2735
+ }, 8, ["data-accent-color", "data-gray-color", "data-radius", "data-scaling", "align", "align-offset", "aria-label", "arrow-padding", "avoid-collisions", "collision-boundary", "collision-padding", "hide-when-detached", "side", "side-offset", "sticky"])
2726
2736
  ]),
2727
2737
  _: 3
2728
- })
2738
+ }, 8, ["to"])
2729
2739
  ]),
2730
2740
  _: 3
2731
- }, 8, ["delay-duration", "disable-closing-trigger", "disable-hoverable-content", "disabled", "ignore-non-keyboard-focus", "skip-delay-duration"]);
2741
+ });
2732
2742
  };
2733
2743
  }
2734
2744
  });
@@ -2858,16 +2868,16 @@ export {
2858
2868
  _sfc_main$9 as AccordionTrigger,
2859
2869
  AlertDialogAction,
2860
2870
  AlertDialogCancel,
2861
- _sfc_main$O as AlertDialogContent,
2871
+ _sfc_main$N as AlertDialogContent,
2862
2872
  AlertDialogDescription,
2863
2873
  AlertDialogRoot,
2864
2874
  AlertDialogTitle,
2865
2875
  AlertDialogTrigger,
2866
- _sfc_main$X as Avatar,
2867
- _sfc_main$W as Badge,
2868
- _sfc_main$S as Button,
2869
- _sfc_main$U as Card,
2870
- _sfc_main$T as CardHead,
2876
+ _sfc_main$W as Avatar,
2877
+ _sfc_main$V as Badge,
2878
+ _sfc_main$R as Button,
2879
+ _sfc_main$T as Card,
2880
+ _sfc_main$S as CardHead,
2871
2881
  _sfc_main$H as Checkbox,
2872
2882
  _sfc_main$E as CheckboxGroupControl,
2873
2883
  _sfc_main$F as CheckboxGroupItem,
@@ -2885,11 +2895,10 @@ export {
2885
2895
  _sfc_main$n as ComboboxLabel,
2886
2896
  _sfc_main$r as ComboboxRoot,
2887
2897
  DialogClose2 as DialogClose,
2888
- _sfc_main$N as DialogContent,
2898
+ _sfc_main$M as DialogContent,
2889
2899
  DialogDescription,
2890
- _sfc_main$M as DialogHead,
2891
2900
  DialogRoot,
2892
- DialogTitle2 as DialogTitle,
2901
+ DialogTitle,
2893
2902
  DialogTrigger,
2894
2903
  _sfc_main$L as DropdownMenuContent,
2895
2904
  _sfc_main$K as DropdownMenuItem,
@@ -2897,9 +2906,9 @@ export {
2897
2906
  DropdownMenuTrigger,
2898
2907
  _sfc_main$f as Editable,
2899
2908
  Icon2 as Icon,
2900
- _sfc_main$R as IconButton,
2909
+ _sfc_main$Q as IconButton,
2901
2910
  _sfc_main as IconCircle,
2902
- _sfc_main$V as Inset,
2911
+ _sfc_main$U as Inset,
2903
2912
  _sfc_main$7 as Pagination,
2904
2913
  _sfc_main$b as PlusMinusIcon,
2905
2914
  PopoverClose,
@@ -2915,7 +2924,7 @@ export {
2915
2924
  RadioGroupItem2 as RadioTabsItem,
2916
2925
  _sfc_main$i as RadioTabsList,
2917
2926
  _sfc_main$1 as SavingIndicator,
2918
- _sfc_main$P as ScrollArea,
2927
+ _sfc_main$O as ScrollArea,
2919
2928
  _sfc_main$w as SelectContent,
2920
2929
  SelectGroup,
2921
2930
  _sfc_main$u as SelectItem,
@@ -2924,7 +2933,7 @@ export {
2924
2933
  SelectSeparator,
2925
2934
  _sfc_main$v as SelectTrigger,
2926
2935
  _sfc_main$5 as Separator,
2927
- _sfc_main$Q as SocialButton,
2936
+ _sfc_main$P as SocialButton,
2928
2937
  _sfc_main$2 as Spinner,
2929
2938
  _sfc_main$I as Switch,
2930
2939
  _sfc_main$6 as Table,
@@ -2934,6 +2943,7 @@ export {
2934
2943
  _sfc_main$g as TabsTrigger,
2935
2944
  _sfc_main$z as TextArea,
2936
2945
  _sfc_main$A as TextField,
2946
+ _sfc_main$X as ThemeProvider,
2937
2947
  _sfc_main$D as Toggle,
2938
2948
  _sfc_main$B as ToggleGroupItem,
2939
2949
  _sfc_main$C as ToggleGroupRoot,