@typlog/ui 0.11.3 → 0.11.5

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,54 @@
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, DialogTitle, DialogClose, DialogPortal, DialogOverlay, DialogContent, 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, 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$Y = /* @__PURE__ */ defineComponent({
8
+ __name: "ThemeProvider",
9
+ props: {
10
+ accentColor: { default: "indigo" },
11
+ radius: { default: "medium" },
12
+ grayColor: { default: "auto" },
13
+ scaling: { default: "100%" },
14
+ hasBackground: { type: Boolean, default: true },
15
+ asChild: { type: Boolean },
16
+ as: { default: "div" }
17
+ },
18
+ setup(__props) {
19
+ const props = __props;
20
+ const { accentColor, radius, grayColor, scaling, hasBackground } = toRefs(props);
21
+ provideThemeContext({
22
+ accentColor,
23
+ radius,
24
+ grayColor,
25
+ scaling,
26
+ hasBackground
27
+ });
28
+ return (_ctx, _cache) => {
29
+ return openBlock(), createBlock(unref(TooltipProvider), null, {
30
+ default: withCtx(() => [
31
+ createVNode(unref(Primitive), {
32
+ class: "ui-root",
33
+ "data-accent-color": unref(accentColor),
34
+ "data-gray-color": unref(grayColor),
35
+ "data-radius": unref(radius),
36
+ "data-scaling": unref(scaling),
37
+ "data-has-background": unref(hasBackground),
38
+ as: props.as,
39
+ "as-child": props.asChild
40
+ }, {
41
+ default: withCtx(() => [
42
+ renderSlot(_ctx.$slots, "default")
43
+ ]),
44
+ _: 3
45
+ }, 8, ["data-accent-color", "data-gray-color", "data-radius", "data-scaling", "data-has-background", "as", "as-child"])
46
+ ]),
47
+ _: 3
48
+ });
49
+ };
50
+ }
51
+ });
6
52
  function useForwardPropsEmits(props, emit, exclude) {
7
53
  const parsedProps = useForwardProps(props);
8
54
  const emitsAsProps = useEmitAsProps(emit);
@@ -60,7 +106,7 @@ function kebabize(str) {
60
106
  function _kebabReplace(str, ofs) {
61
107
  return (ofs ? "-" : "") + str.toLowerCase();
62
108
  }
63
- const _sfc_main$Y = /* @__PURE__ */ defineComponent({
109
+ const _sfc_main$X = /* @__PURE__ */ defineComponent({
64
110
  __name: "Avatar",
65
111
  props: {
66
112
  alt: {},
@@ -112,7 +158,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
112
158
  };
113
159
  }
114
160
  });
115
- const _sfc_main$X = /* @__PURE__ */ defineComponent({
161
+ const _sfc_main$W = /* @__PURE__ */ defineComponent({
116
162
  __name: "Badge",
117
163
  props: {
118
164
  variant: { default: "soft" },
@@ -144,7 +190,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
144
190
  };
145
191
  }
146
192
  });
147
- const _sfc_main$W = /* @__PURE__ */ defineComponent({
193
+ const _sfc_main$V = /* @__PURE__ */ defineComponent({
148
194
  __name: "Inset",
149
195
  props: {
150
196
  side: { default: "all" },
@@ -168,7 +214,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
168
214
  };
169
215
  }
170
216
  });
171
- const _sfc_main$V = /* @__PURE__ */ defineComponent({
217
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
172
218
  __name: "Card",
173
219
  props: {
174
220
  variant: { default: "surface" },
@@ -197,7 +243,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
197
243
  };
198
244
  }
199
245
  });
200
- const _sfc_main$U = /* @__PURE__ */ defineComponent({
246
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
201
247
  __name: "CardHead",
202
248
  props: {
203
249
  color: {},
@@ -220,7 +266,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
220
266
  };
221
267
  }
222
268
  });
223
- const _sfc_main$T = /* @__PURE__ */ defineComponent({
269
+ const _sfc_main$S = /* @__PURE__ */ defineComponent({
224
270
  __name: "Button",
225
271
  props: {
226
272
  variant: { default: "solid" },
@@ -254,7 +300,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
254
300
  };
255
301
  }
256
302
  });
257
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
303
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
258
304
  __name: "IconButton",
259
305
  props: {
260
306
  variant: {},
@@ -270,7 +316,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
270
316
  const props = __props;
271
317
  const forwarded = useForwardProps(props);
272
318
  return (_ctx, _cache) => {
273
- return openBlock(), createBlock(_sfc_main$T, mergeProps({ class: "ui-IconButton" }, unref(forwarded)), {
319
+ return openBlock(), createBlock(_sfc_main$S, mergeProps({ class: "ui-IconButton" }, unref(forwarded)), {
274
320
  default: withCtx(() => [
275
321
  renderSlot(_ctx.$slots, "default")
276
322
  ]),
@@ -288,7 +334,7 @@ const BRAND_ICONS = {
288
334
  slack: "logos:slack-icon",
289
335
  figma: "logos:figma"
290
336
  };
291
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
337
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
292
338
  __name: "SocialButton",
293
339
  props: {
294
340
  brand: {},
@@ -326,7 +372,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
326
372
  };
327
373
  }
328
374
  });
329
- const _sfc_main$Q = /* @__PURE__ */ defineComponent({
375
+ const _sfc_main$P = /* @__PURE__ */ defineComponent({
330
376
  __name: "ScrollArea",
331
377
  props: {
332
378
  size: { default: "1" },
@@ -390,17 +436,42 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
390
436
  };
391
437
  }
392
438
  });
393
- const _hoisted_1$j = { class: "ui-DialogScroll" };
394
- const _hoisted_2$7 = ["data-align"];
395
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
439
+ const _sfc_main$O = /* @__PURE__ */ defineComponent({
440
+ __name: "ThemeWrapper",
441
+ props: {
442
+ accentColor: {},
443
+ radius: {}
444
+ },
445
+ setup(__props) {
446
+ const props = __props;
447
+ const theme = injectThemeContext();
448
+ return (_ctx, _cache) => {
449
+ return openBlock(), createBlock(unref(Primitive), {
450
+ class: "ui-root",
451
+ "data-accent-color": props.accentColor || unref(theme).accentColor.value,
452
+ "data-gray-color": unref(theme).grayColor.value,
453
+ "data-radius": props.radius || unref(theme).radius.value,
454
+ "data-scaling": unref(theme).scaling.value,
455
+ "data-has-background": unref(theme).hasBackground.value,
456
+ "as-child": ""
457
+ }, {
458
+ default: withCtx(() => [
459
+ renderSlot(_ctx.$slots, "default")
460
+ ]),
461
+ _: 3
462
+ }, 8, ["data-accent-color", "data-gray-color", "data-radius", "data-scaling", "data-has-background"]);
463
+ };
464
+ }
465
+ });
466
+ const _hoisted_1$j = { class: "ui-DialogWrapper" };
467
+ const _hoisted_2$7 = { class: "ui-DialogContainer" };
468
+ const _sfc_main$N = /* @__PURE__ */ defineComponent({
396
469
  ...{
397
470
  inheritAttrs: false
398
471
  },
399
472
  __name: "AlertDialogContent",
400
473
  props: {
401
474
  to: {},
402
- align: { default: "center" },
403
- class: {},
404
475
  size: { default: "3" },
405
476
  width: {},
406
477
  minWidth: {},
@@ -434,100 +505,49 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
434
505
  to: props.to
435
506
  }, {
436
507
  default: withCtx(() => [
437
- createVNode(unref(AlertDialogOverlay), { class: "ui-DialogOverlay" }, {
438
- default: withCtx(() => [
439
- createElementVNode("div", _hoisted_1$j, [
440
- createElementVNode("div", {
441
- class: "ui-DialogScrollPadding",
442
- "data-align": props.align
443
- }, [
444
- createVNode(unref(AlertDialogContent), mergeProps({
445
- class: ["ui-DialogContent", props.class],
446
- "data-size": props.size
447
- }, {
448
- ..._ctx.$attrs,
449
- ...unref(forwarded)
450
- }, {
451
- style: {
452
- width: props.width,
453
- height: props.height,
454
- minWidth: props.minWidth,
455
- maxWidth: props.maxWidth,
456
- minHeight: props.minHeight,
457
- maxHeight: props.maxHeight
458
- }
459
- }), {
460
- default: withCtx(() => [
461
- renderSlot(_ctx.$slots, "default")
462
- ]),
463
- _: 3
464
- }, 16, ["class", "data-size", "style"])
465
- ], 8, _hoisted_2$7)
466
- ])
467
- ]),
468
- _: 3
469
- })
470
- ]),
471
- _: 3
472
- }, 8, ["to"]);
473
- };
474
- }
475
- });
476
- const _sfc_main$O = /* @__PURE__ */ defineComponent({
477
- __name: "DialogTitle",
478
- props: {
479
- variant: { default: "ghost" },
480
- close: { type: Boolean },
481
- asChild: { type: Boolean },
482
- as: { default: "h2" }
483
- },
484
- setup(__props) {
485
- const props = __props;
486
- return (_ctx, _cache) => {
487
- return openBlock(), createBlock(_sfc_main$W, {
488
- class: normalizeClass(["ui-DialogTitle", `r-variant-${_ctx.variant}`]),
489
- side: "all"
490
- }, {
491
- default: withCtx(() => [
492
- createVNode(unref(DialogTitle), {
493
- class: "ui-DialogTitleText",
494
- as: props.as
495
- }, {
496
- default: withCtx(() => [
497
- renderSlot(_ctx.$slots, "default")
498
- ]),
499
- _: 3
500
- }, 8, ["as"]),
501
- _ctx.close ? (openBlock(), createBlock(unref(DialogClose), {
502
- key: 0,
503
- class: "ui-DialogTitleClose",
504
- type: "button",
505
- "aria-label": "Close",
506
- "as-child": ""
507
- }, {
508
+ createVNode(_sfc_main$O, null, {
508
509
  default: withCtx(() => [
509
- createVNode(_sfc_main$S, {
510
- color: "gray",
511
- variant: "soft",
512
- size: "1"
513
- }, {
510
+ createVNode(unref(AlertDialogOverlay), { class: "ui-DialogOverlay" }, {
514
511
  default: withCtx(() => [
515
- createVNode(unref(Icon), { icon: "lucide:x" })
512
+ createElementVNode("div", _hoisted_1$j, [
513
+ createElementVNode("div", _hoisted_2$7, [
514
+ createVNode(unref(AlertDialogContent), mergeProps({
515
+ class: ["ui-DialogContent", `r-size-${props.size}`]
516
+ }, {
517
+ ..._ctx.$attrs,
518
+ ...unref(forwarded)
519
+ }, {
520
+ style: {
521
+ width: props.width,
522
+ height: props.height,
523
+ minWidth: props.minWidth,
524
+ maxWidth: props.maxWidth,
525
+ minHeight: props.minHeight,
526
+ maxHeight: props.maxHeight
527
+ }
528
+ }), {
529
+ default: withCtx(() => [
530
+ renderSlot(_ctx.$slots, "default")
531
+ ]),
532
+ _: 3
533
+ }, 16, ["class", "style"])
534
+ ])
535
+ ])
516
536
  ]),
517
- _: 1
537
+ _: 3
518
538
  })
519
539
  ]),
520
- _: 1
521
- })) : createCommentVNode("", true)
540
+ _: 3
541
+ })
522
542
  ]),
523
543
  _: 3
524
- }, 8, ["class"]);
544
+ }, 8, ["to"]);
525
545
  };
526
546
  }
527
547
  });
528
548
  const _hoisted_1$i = { class: "ui-DialogWrapper" };
529
549
  const _hoisted_2$6 = { class: "ui-DialogContainer" };
530
- const _sfc_main$N = /* @__PURE__ */ defineComponent({
550
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
531
551
  ...{
532
552
  inheritAttrs: false
533
553
  },
@@ -541,6 +561,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
541
561
  height: {},
542
562
  minHeight: {},
543
563
  maxHeight: {},
564
+ closeIcon: { type: Boolean },
544
565
  forceMount: { type: Boolean },
545
566
  disableOutsidePointerEvents: { type: Boolean },
546
567
  asChild: { type: Boolean },
@@ -560,39 +581,59 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
560
581
  "maxWidth",
561
582
  "height",
562
583
  "minHeight",
563
- "maxHeight"
584
+ "maxHeight",
585
+ "closeIcon"
564
586
  ]);
565
587
  return (_ctx, _cache) => {
566
588
  return openBlock(), createBlock(unref(DialogPortal), {
567
589
  to: props.to
568
590
  }, {
569
591
  default: withCtx(() => [
570
- createVNode(unref(DialogOverlay), { class: "ui-DialogOverlay" }, {
592
+ createVNode(_sfc_main$O, null, {
571
593
  default: withCtx(() => [
572
- createElementVNode("div", _hoisted_1$i, [
573
- createElementVNode("div", _hoisted_2$6, [
574
- createVNode(unref(DialogContent), mergeProps({
575
- class: ["ui-DialogContent", `r-size-${props.size}`]
576
- }, {
577
- ..._ctx.$attrs,
578
- ...unref(forwarded)
579
- }, {
580
- style: {
581
- width: props.width,
582
- height: props.height,
583
- minWidth: props.minWidth,
584
- maxWidth: props.maxWidth,
585
- minHeight: props.minHeight,
586
- maxHeight: props.maxHeight
587
- }
588
- }), {
589
- default: withCtx(() => [
590
- renderSlot(_ctx.$slots, "default")
591
- ]),
592
- _: 3
593
- }, 16, ["class", "style"])
594
- ])
595
- ])
594
+ createVNode(unref(DialogOverlay), { class: "ui-DialogOverlay" }, {
595
+ default: withCtx(() => [
596
+ createElementVNode("div", _hoisted_1$i, [
597
+ createElementVNode("div", _hoisted_2$6, [
598
+ createVNode(unref(DialogContent), mergeProps({
599
+ class: ["ui-DialogContent", `r-size-${props.size}`]
600
+ }, {
601
+ ..._ctx.$attrs,
602
+ ...unref(forwarded)
603
+ }, {
604
+ style: {
605
+ width: props.width,
606
+ height: props.height,
607
+ minWidth: props.minWidth,
608
+ maxWidth: props.maxWidth,
609
+ minHeight: props.minHeight,
610
+ maxHeight: props.maxHeight
611
+ }
612
+ }), {
613
+ default: withCtx(() => [
614
+ props.closeIcon ? (openBlock(), createBlock(_sfc_main$R, {
615
+ key: 0,
616
+ class: "ui-DialogContentClose",
617
+ as: unref(DialogClose),
618
+ type: "button",
619
+ variant: "ghost",
620
+ color: "gray",
621
+ "aria-label": "Close"
622
+ }, {
623
+ default: withCtx(() => [
624
+ createVNode(unref(Icon), { icon: "lucide:x" })
625
+ ]),
626
+ _: 1
627
+ }, 8, ["as"])) : createCommentVNode("", true),
628
+ renderSlot(_ctx.$slots, "default")
629
+ ]),
630
+ _: 3
631
+ }, 16, ["class", "style"])
632
+ ])
633
+ ])
634
+ ]),
635
+ _: 3
636
+ })
596
637
  ]),
597
638
  _: 3
598
639
  })
@@ -602,43 +643,6 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
602
643
  };
603
644
  }
604
645
  });
605
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
606
- __name: "DialogHead",
607
- props: {
608
- title: {}
609
- },
610
- setup(__props) {
611
- const props = __props;
612
- return (_ctx, _cache) => {
613
- return openBlock(), createBlock(_sfc_main$W, {
614
- class: "ui-DialogHead",
615
- side: "x"
616
- }, {
617
- default: withCtx(() => [
618
- createVNode(unref(DialogTitle), null, {
619
- default: withCtx(() => [
620
- createTextVNode(toDisplayString(props.title), 1)
621
- ]),
622
- _: 1
623
- }),
624
- createVNode(_sfc_main$S, {
625
- as: unref(DialogClose),
626
- type: "button",
627
- variant: "ghost",
628
- color: "gray",
629
- "aria-label": "Close"
630
- }, {
631
- default: withCtx(() => [
632
- createVNode(unref(Icon), { icon: "lucide:x" })
633
- ]),
634
- _: 1
635
- }, 8, ["as"])
636
- ]),
637
- _: 1
638
- });
639
- };
640
- }
641
- });
642
646
  const _hoisted_1$h = { class: "ui-MenuViewport" };
643
647
  const [injectDropdownMenuContentContext, provideDropdownMenuContentContext] = createContext("ui_DropdownMenuContent");
644
648
  const _sfc_main$L = /* @__PURE__ */ defineComponent({
@@ -691,27 +695,32 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
691
695
  to: props.to
692
696
  }, {
693
697
  default: withCtx(() => [
694
- createVNode(unref(DropdownMenuContent), mergeProps({
695
- ..._ctx.$attrs,
696
- ...unref(forwarded)
698
+ createVNode(_sfc_main$O, {
699
+ "accent-color": props.color
697
700
  }, {
698
- ref: unref(forwardRef),
699
- class: "ui-PopperContent ui-MenuContent",
700
- "data-accent-color": props.color,
701
- "data-size": props.size
702
- }), {
703
701
  default: withCtx(() => [
704
- createVNode(_sfc_main$Q, { type: "auto" }, {
702
+ createVNode(unref(DropdownMenuContent), mergeProps({
703
+ ..._ctx.$attrs,
704
+ ...unref(forwarded)
705
+ }, {
706
+ ref: unref(forwardRef),
707
+ class: ["ui-PopperContent ui-MenuContent", `r-size-${props.size}`]
708
+ }), {
705
709
  default: withCtx(() => [
706
- createElementVNode("div", _hoisted_1$h, [
707
- renderSlot(_ctx.$slots, "default")
708
- ])
710
+ createVNode(_sfc_main$P, { type: "auto" }, {
711
+ default: withCtx(() => [
712
+ createElementVNode("div", _hoisted_1$h, [
713
+ renderSlot(_ctx.$slots, "default")
714
+ ])
715
+ ]),
716
+ _: 3
717
+ })
709
718
  ]),
710
719
  _: 3
711
- })
720
+ }, 16, ["class"])
712
721
  ]),
713
722
  _: 3
714
- }, 16, ["data-accent-color", "data-size"])
723
+ }, 8, ["accent-color"])
715
724
  ]),
716
725
  _: 3
717
726
  }, 8, ["to"]);
@@ -795,15 +804,19 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
795
804
  to: props.to
796
805
  }, {
797
806
  default: withCtx(() => [
798
- createVNode(unref(PopoverContent), mergeProps({ ..._ctx.$attrs, ...unref(forwarded) }, {
799
- "data-size": props.size,
800
- class: "ui-PopoverContent"
801
- }), {
807
+ createVNode(_sfc_main$O, null, {
802
808
  default: withCtx(() => [
803
- renderSlot(_ctx.$slots, "default")
809
+ createVNode(unref(PopoverContent), mergeProps({ ..._ctx.$attrs, ...unref(forwarded) }, {
810
+ class: ["ui-PopoverContent", `r-size-${props.size}`]
811
+ }), {
812
+ default: withCtx(() => [
813
+ renderSlot(_ctx.$slots, "default")
814
+ ]),
815
+ _: 3
816
+ }, 16, ["class"])
804
817
  ]),
805
818
  _: 3
806
- }, 16, ["data-size"])
819
+ })
807
820
  ]),
808
821
  _: 3
809
822
  }, 8, ["to"]);
@@ -1478,53 +1491,59 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
1478
1491
  to: props.to
1479
1492
  }, {
1480
1493
  default: withCtx(() => [
1481
- createVNode(unref(SelectContent), mergeProps({ ref: unref(forwardRef) }, {
1482
- ..._ctx.$attrs,
1483
- ...unref(forwarded),
1484
- to: void 0,
1485
- variant: void 0
1494
+ createVNode(_sfc_main$O, {
1495
+ "accent-color": unref(context).color.value
1486
1496
  }, {
1487
- class: ["ui-SelectContent", contentClass.value],
1488
- "data-accent-color": unref(context).color.value
1489
- }), {
1490
1497
  default: withCtx(() => [
1491
- createVNode(unref(ScrollAreaRoot), {
1492
- type: "auto",
1493
- class: "ui-ScrollArea"
1498
+ createVNode(unref(SelectContent), mergeProps({ ref: unref(forwardRef) }, {
1499
+ ..._ctx.$attrs,
1500
+ ...unref(forwarded),
1501
+ to: void 0,
1502
+ variant: void 0
1494
1503
  }, {
1504
+ class: ["ui-SelectContent", contentClass.value]
1505
+ }), {
1495
1506
  default: withCtx(() => [
1496
- createVNode(unref(SelectViewport), {
1497
- class: "ui-SelectViewport",
1498
- "as-child": ""
1507
+ createVNode(unref(ScrollAreaRoot), {
1508
+ type: "auto",
1509
+ class: "ui-ScrollArea"
1499
1510
  }, {
1500
1511
  default: withCtx(() => [
1501
- createVNode(unref(ScrollAreaViewport), { class: "ui-ScrollAreaViewport" }, {
1502
- default: withCtx(() => [
1503
- renderSlot(_ctx.$slots, "default")
1504
- ]),
1505
- _: 3
1506
- }),
1507
- _cache[0] || (_cache[0] = createElementVNode("div", { class: "ui-ScrollAreaViewportFocusRing" }, null, -1)),
1508
- createVNode(unref(ScrollAreaScrollbar), {
1509
- class: "ui-ScrollAreaScrollbar",
1510
- "data-size": 1,
1511
- orientation: "vertical"
1512
+ createVNode(unref(SelectViewport), {
1513
+ class: "ui-SelectViewport",
1514
+ "as-child": ""
1512
1515
  }, {
1513
1516
  default: withCtx(() => [
1514
- createVNode(unref(ScrollAreaThumb), { class: "ui-ScrollAreaThumb" })
1517
+ createVNode(unref(ScrollAreaViewport), { class: "ui-ScrollAreaViewport" }, {
1518
+ default: withCtx(() => [
1519
+ renderSlot(_ctx.$slots, "default")
1520
+ ]),
1521
+ _: 3
1522
+ }),
1523
+ _cache[0] || (_cache[0] = createElementVNode("div", { class: "ui-ScrollAreaViewportFocusRing" }, null, -1)),
1524
+ createVNode(unref(ScrollAreaScrollbar), {
1525
+ class: "ui-ScrollAreaScrollbar",
1526
+ "data-size": 1,
1527
+ orientation: "vertical"
1528
+ }, {
1529
+ default: withCtx(() => [
1530
+ createVNode(unref(ScrollAreaThumb), { class: "ui-ScrollAreaThumb" })
1531
+ ]),
1532
+ _: 1
1533
+ })
1515
1534
  ]),
1516
- _: 1
1535
+ _: 3,
1536
+ __: [0]
1517
1537
  })
1518
1538
  ]),
1519
- _: 3,
1520
- __: [0]
1539
+ _: 3
1521
1540
  })
1522
1541
  ]),
1523
1542
  _: 3
1524
- })
1543
+ }, 16, ["class"])
1525
1544
  ]),
1526
1545
  _: 3
1527
- }, 16, ["class", "data-accent-color"])
1546
+ }, 8, ["accent-color"])
1528
1547
  ]),
1529
1548
  _: 3
1530
1549
  }, 8, ["to"]);
@@ -1875,54 +1894,60 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
1875
1894
  to: props.to
1876
1895
  }, {
1877
1896
  default: withCtx(() => [
1878
- createVNode(unref(ComboboxContent), mergeProps({ ref: unref(forwardRef) }, {
1879
- ..._ctx.$attrs,
1880
- ...unref(forwarded),
1881
- position: "popper",
1882
- to: void 0,
1883
- variant: void 0
1897
+ createVNode(_sfc_main$O, {
1898
+ "accent-color": unref(context).color.value
1884
1899
  }, {
1885
- class: ["ui-ComboboxContent", contentClass.value],
1886
- "data-accent-color": unref(context).color.value
1887
- }), {
1888
1900
  default: withCtx(() => [
1889
- createVNode(unref(ScrollAreaRoot), {
1890
- type: "auto",
1891
- class: "ui-ScrollArea"
1901
+ createVNode(unref(ComboboxContent), mergeProps({ ref: unref(forwardRef) }, {
1902
+ ..._ctx.$attrs,
1903
+ ...unref(forwarded),
1904
+ position: "popper",
1905
+ to: void 0,
1906
+ variant: void 0
1892
1907
  }, {
1908
+ class: ["ui-ComboboxContent", contentClass.value]
1909
+ }), {
1893
1910
  default: withCtx(() => [
1894
- createVNode(unref(ComboboxViewport), {
1895
- class: "ui-ComboboxViewport",
1896
- "as-child": ""
1911
+ createVNode(unref(ScrollAreaRoot), {
1912
+ type: "auto",
1913
+ class: "ui-ScrollArea"
1897
1914
  }, {
1898
1915
  default: withCtx(() => [
1899
- createVNode(unref(ScrollAreaViewport), { class: "ui-ScrollAreaViewport" }, {
1916
+ createVNode(unref(ComboboxViewport), {
1917
+ class: "ui-ComboboxViewport",
1918
+ "as-child": ""
1919
+ }, {
1900
1920
  default: withCtx(() => [
1901
- renderSlot(_ctx.$slots, "default")
1921
+ createVNode(unref(ScrollAreaViewport), { class: "ui-ScrollAreaViewport" }, {
1922
+ default: withCtx(() => [
1923
+ renderSlot(_ctx.$slots, "default")
1924
+ ]),
1925
+ _: 3
1926
+ })
1902
1927
  ]),
1903
1928
  _: 3
1929
+ }),
1930
+ _cache[0] || (_cache[0] = createElementVNode("div", { class: "ui-ScrollAreaViewportFocusRing" }, null, -1)),
1931
+ createVNode(unref(ScrollAreaScrollbar), {
1932
+ class: "ui-ScrollAreaScrollbar",
1933
+ "data-size": 1,
1934
+ orientation: "vertical"
1935
+ }, {
1936
+ default: withCtx(() => [
1937
+ createVNode(unref(ScrollAreaThumb), { class: "ui-ScrollAreaThumb" })
1938
+ ]),
1939
+ _: 1
1904
1940
  })
1905
1941
  ]),
1906
- _: 3
1907
- }),
1908
- _cache[0] || (_cache[0] = createElementVNode("div", { class: "ui-ScrollAreaViewportFocusRing" }, null, -1)),
1909
- createVNode(unref(ScrollAreaScrollbar), {
1910
- class: "ui-ScrollAreaScrollbar",
1911
- "data-size": 1,
1912
- orientation: "vertical"
1913
- }, {
1914
- default: withCtx(() => [
1915
- createVNode(unref(ScrollAreaThumb), { class: "ui-ScrollAreaThumb" })
1916
- ]),
1917
- _: 1
1942
+ _: 3,
1943
+ __: [0]
1918
1944
  })
1919
1945
  ]),
1920
- _: 3,
1921
- __: [0]
1922
- })
1946
+ _: 3
1947
+ }, 16, ["class"])
1923
1948
  ]),
1924
1949
  _: 3
1925
- }, 16, ["class", "data-accent-color"])
1950
+ }, 8, ["accent-color"])
1926
1951
  ]),
1927
1952
  _: 3
1928
1953
  }, 8, ["to"]);
@@ -2119,7 +2144,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
2119
2144
  "data-high-contrast": unref(rootContext).highContrast?.value
2120
2145
  }, { ...unref(forwarded), asChild: false }), {
2121
2146
  default: withCtx(() => [
2122
- createVNode(_sfc_main$V, {
2147
+ createVNode(_sfc_main$U, {
2123
2148
  "as-child": unref(forwarded).asChild
2124
2149
  }, {
2125
2150
  default: withCtx(() => [
@@ -2518,7 +2543,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2518
2543
  return openBlock(), createElementBlock("div", {
2519
2544
  class: normalizeClass(["ui-Pagination", resetClass.value])
2520
2545
  }, [
2521
- pagination.value.prev ? (openBlock(), createBlock(_sfc_main$S, mergeProps({ key: 0 }, buttonProps.value, {
2546
+ pagination.value.prev ? (openBlock(), createBlock(_sfc_main$R, mergeProps({ key: 0 }, buttonProps.value, {
2522
2547
  "aria-label": "Previous",
2523
2548
  onClick: _cache[0] || (_cache[0] = withModifiers(($event) => selectPage(pagination.value.prev), ["prevent"]))
2524
2549
  }), {
@@ -2531,7 +2556,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2531
2556
  ]),
2532
2557
  _: 3
2533
2558
  }, 16)) : createCommentVNode("", true),
2534
- createVNode(_sfc_main$T, mergeProps(buttonProps.value, {
2559
+ createVNode(_sfc_main$S, mergeProps(buttonProps.value, {
2535
2560
  disabled: page.value === 1,
2536
2561
  "aria-current": "page",
2537
2562
  onClick: _cache[1] || (_cache[1] = withModifiers(($event) => selectPage(1), ["prevent"]))
@@ -2543,7 +2568,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2543
2568
  ]),
2544
2569
  _: 3
2545
2570
  }, 16, ["disabled"]),
2546
- pagination.value.hasLeftEdge ? (openBlock(), createBlock(_sfc_main$S, mergeProps({ key: 1 }, buttonProps.value, {
2571
+ pagination.value.hasLeftEdge ? (openBlock(), createBlock(_sfc_main$R, mergeProps({ key: 1 }, buttonProps.value, {
2547
2572
  onClick: withModifiers(selectLeft, ["prevent"])
2548
2573
  }), {
2549
2574
  default: withCtx(() => [
@@ -2556,7 +2581,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2556
2581
  _: 3
2557
2582
  }, 16)) : createCommentVNode("", true),
2558
2583
  (openBlock(true), createElementBlock(Fragment, null, renderList(pagination.value.pageList, (p) => {
2559
- return openBlock(), createBlock(_sfc_main$T, mergeProps({ key: p }, { ref_for: true }, buttonProps.value, {
2584
+ return openBlock(), createBlock(_sfc_main$S, mergeProps({ key: p }, { ref_for: true }, buttonProps.value, {
2560
2585
  disabled: p === page.value,
2561
2586
  "aria-current": "page",
2562
2587
  onClick: withModifiers(($event) => selectPage(p), ["prevent"])
@@ -2569,7 +2594,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2569
2594
  _: 2
2570
2595
  }, 1040, ["disabled", "onClick"]);
2571
2596
  }), 128)),
2572
- pagination.value.hasRightEdge ? (openBlock(), createBlock(_sfc_main$S, mergeProps({ key: 2 }, buttonProps.value, {
2597
+ pagination.value.hasRightEdge ? (openBlock(), createBlock(_sfc_main$R, mergeProps({ key: 2 }, buttonProps.value, {
2573
2598
  onClick: withModifiers(selectRight, ["prevent"])
2574
2599
  }), {
2575
2600
  default: withCtx(() => [
@@ -2581,7 +2606,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2581
2606
  ]),
2582
2607
  _: 3
2583
2608
  }, 16)) : createCommentVNode("", true),
2584
- pagination.value.totalPages > 1 ? (openBlock(), createBlock(_sfc_main$T, mergeProps({ key: 3 }, buttonProps.value, {
2609
+ pagination.value.totalPages > 1 ? (openBlock(), createBlock(_sfc_main$S, mergeProps({ key: 3 }, buttonProps.value, {
2585
2610
  disabled: pagination.value.totalPages === page.value,
2586
2611
  "aria-current": "page",
2587
2612
  onClick: _cache[2] || (_cache[2] = withModifiers(($event) => selectPage(pagination.value.totalPages), ["prevent"]))
@@ -2595,7 +2620,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2595
2620
  ]),
2596
2621
  _: 3
2597
2622
  }, 16, ["disabled"])) : createCommentVNode("", true),
2598
- pagination.value.next ? (openBlock(), createBlock(_sfc_main$S, mergeProps({ key: 4 }, buttonProps.value, {
2623
+ pagination.value.next ? (openBlock(), createBlock(_sfc_main$R, mergeProps({ key: 4 }, buttonProps.value, {
2599
2624
  "aria-label": "Next",
2600
2625
  onClick: _cache[3] || (_cache[3] = withModifiers(($event) => selectPage(pagination.value.next), ["prevent"]))
2601
2626
  }), {
@@ -2629,7 +2654,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
2629
2654
  "data-size": props.size,
2630
2655
  "data-variant": props.variant
2631
2656
  }, [
2632
- createVNode(_sfc_main$Q, null, {
2657
+ createVNode(_sfc_main$P, null, {
2633
2658
  default: withCtx(() => [
2634
2659
  createElementVNode("table", {
2635
2660
  class: "ui-TableContent",
@@ -2674,12 +2699,6 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
2674
2699
  props: {
2675
2700
  to: {},
2676
2701
  content: {},
2677
- delayDuration: {},
2678
- skipDelayDuration: {},
2679
- disableHoverableContent: { type: Boolean },
2680
- disableClosingTrigger: { type: Boolean },
2681
- disabled: { type: Boolean },
2682
- ignoreNonKeyboardFocus: { type: Boolean },
2683
2702
  forceMount: { type: Boolean },
2684
2703
  ariaLabel: {},
2685
2704
  asChild: { type: Boolean },
@@ -2700,29 +2719,22 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
2700
2719
  setup(__props) {
2701
2720
  const props = __props;
2702
2721
  return (_ctx, _cache) => {
2703
- return openBlock(), createBlock(unref(TooltipProvider), {
2704
- "delay-duration": props.delayDuration,
2705
- "disable-closing-trigger": props.disableClosingTrigger,
2706
- "disable-hoverable-content": props.disableHoverableContent,
2707
- disabled: props.disabled,
2708
- "ignore-non-keyboard-focus": props.ignoreNonKeyboardFocus,
2709
- "skip-delay-duration": props.skipDelayDuration
2710
- }, {
2722
+ return openBlock(), createBlock(unref(TooltipRoot), null, {
2711
2723
  default: withCtx(() => [
2712
- createVNode(unref(TooltipRoot), null, {
2724
+ createVNode(unref(TooltipTrigger), mergeProps({
2725
+ as: props.as,
2726
+ "as-child": props.asChild
2727
+ }, _ctx.$attrs), {
2713
2728
  default: withCtx(() => [
2714
- createVNode(unref(TooltipTrigger), mergeProps({
2715
- as: props.as,
2716
- "as-child": props.asChild
2717
- }, _ctx.$attrs), {
2718
- default: withCtx(() => [
2719
- renderSlot(_ctx.$slots, "default")
2720
- ]),
2721
- _: 3
2722
- }, 16, ["as", "as-child"]),
2723
- createVNode(unref(TooltipPortal), {
2724
- to: props.to
2725
- }, {
2729
+ renderSlot(_ctx.$slots, "default")
2730
+ ]),
2731
+ _: 3
2732
+ }, 16, ["as", "as-child"]),
2733
+ createVNode(unref(TooltipPortal), {
2734
+ to: props.to
2735
+ }, {
2736
+ default: withCtx(() => [
2737
+ createVNode(_sfc_main$O, null, {
2726
2738
  default: withCtx(() => [
2727
2739
  createVNode(unref(TooltipContent), {
2728
2740
  class: "ui-Tooltip",
@@ -2751,13 +2763,13 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
2751
2763
  }, 8, ["align", "align-offset", "aria-label", "arrow-padding", "avoid-collisions", "collision-boundary", "collision-padding", "hide-when-detached", "side", "side-offset", "sticky"])
2752
2764
  ]),
2753
2765
  _: 3
2754
- }, 8, ["to"])
2766
+ })
2755
2767
  ]),
2756
2768
  _: 3
2757
- })
2769
+ }, 8, ["to"])
2758
2770
  ]),
2759
2771
  _: 3
2760
- }, 8, ["delay-duration", "disable-closing-trigger", "disable-hoverable-content", "disabled", "ignore-non-keyboard-focus", "skip-delay-duration"]);
2772
+ });
2761
2773
  };
2762
2774
  }
2763
2775
  });
@@ -2887,16 +2899,16 @@ export {
2887
2899
  _sfc_main$9 as AccordionTrigger,
2888
2900
  AlertDialogAction,
2889
2901
  AlertDialogCancel,
2890
- _sfc_main$P as AlertDialogContent,
2902
+ _sfc_main$N as AlertDialogContent,
2891
2903
  AlertDialogDescription,
2892
2904
  AlertDialogRoot,
2893
2905
  AlertDialogTitle,
2894
2906
  AlertDialogTrigger,
2895
- _sfc_main$Y as Avatar,
2896
- _sfc_main$X as Badge,
2897
- _sfc_main$T as Button,
2898
- _sfc_main$V as Card,
2899
- _sfc_main$U as CardHead,
2907
+ _sfc_main$X as Avatar,
2908
+ _sfc_main$W as Badge,
2909
+ _sfc_main$S as Button,
2910
+ _sfc_main$U as Card,
2911
+ _sfc_main$T as CardHead,
2900
2912
  _sfc_main$H as Checkbox,
2901
2913
  _sfc_main$E as CheckboxGroupControl,
2902
2914
  _sfc_main$F as CheckboxGroupItem,
@@ -2914,11 +2926,10 @@ export {
2914
2926
  _sfc_main$n as ComboboxLabel,
2915
2927
  _sfc_main$r as ComboboxRoot,
2916
2928
  DialogClose2 as DialogClose,
2917
- _sfc_main$N as DialogContent,
2929
+ _sfc_main$M as DialogContent,
2918
2930
  DialogDescription,
2919
- _sfc_main$M as DialogHead,
2920
2931
  DialogRoot,
2921
- _sfc_main$O as DialogTitle,
2932
+ DialogTitle,
2922
2933
  DialogTrigger,
2923
2934
  _sfc_main$L as DropdownMenuContent,
2924
2935
  _sfc_main$K as DropdownMenuItem,
@@ -2926,9 +2937,9 @@ export {
2926
2937
  DropdownMenuTrigger,
2927
2938
  _sfc_main$f as Editable,
2928
2939
  Icon2 as Icon,
2929
- _sfc_main$S as IconButton,
2940
+ _sfc_main$R as IconButton,
2930
2941
  _sfc_main as IconCircle,
2931
- _sfc_main$W as Inset,
2942
+ _sfc_main$V as Inset,
2932
2943
  _sfc_main$7 as Pagination,
2933
2944
  _sfc_main$b as PlusMinusIcon,
2934
2945
  PopoverClose,
@@ -2944,7 +2955,7 @@ export {
2944
2955
  RadioGroupItem2 as RadioTabsItem,
2945
2956
  _sfc_main$i as RadioTabsList,
2946
2957
  _sfc_main$1 as SavingIndicator,
2947
- _sfc_main$Q as ScrollArea,
2958
+ _sfc_main$P as ScrollArea,
2948
2959
  _sfc_main$w as SelectContent,
2949
2960
  SelectGroup,
2950
2961
  _sfc_main$u as SelectItem,
@@ -2953,7 +2964,7 @@ export {
2953
2964
  SelectSeparator,
2954
2965
  _sfc_main$v as SelectTrigger,
2955
2966
  _sfc_main$5 as Separator,
2956
- _sfc_main$R as SocialButton,
2967
+ _sfc_main$Q as SocialButton,
2957
2968
  _sfc_main$2 as Spinner,
2958
2969
  _sfc_main$I as Switch,
2959
2970
  _sfc_main$6 as Table,
@@ -2963,6 +2974,7 @@ export {
2963
2974
  _sfc_main$g as TabsTrigger,
2964
2975
  _sfc_main$z as TextArea,
2965
2976
  _sfc_main$A as TextField,
2977
+ _sfc_main$Y as ThemeProvider,
2966
2978
  _sfc_main$D as Toggle,
2967
2979
  _sfc_main$B as ToggleGroupItem,
2968
2980
  _sfc_main$C as ToggleGroupRoot,