@typlog/ui 0.13.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/addons.js +4 -4
- package/base.css +0 -171
- package/components.css +782 -1
- package/components.d.ts +526 -52
- package/components.js +1152 -177
- package/package.json +1 -1
- package/tailwind.css +33 -0
package/components.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { defineComponent, toRefs,
|
|
2
|
-
import {
|
|
3
|
-
import { AlertDialogAction, AlertDialogCancel, AlertDialogRoot, AlertDialogTrigger, CheckboxGroupRoot, ComboboxGroup, DialogClose as DialogClose2, DialogRoot, DialogTrigger, DropdownMenuRoot, DropdownMenuTrigger, NavigationMenuItem, PopoverClose, PopoverRoot, PopoverTrigger, SelectGroup, TabsContent, TabsRoot } from "reka-ui";
|
|
1
|
+
import { defineComponent, toRefs, openBlock, createBlock, unref, withCtx, createVNode, mergeProps, renderSlot, markRaw, createElementBlock, createElementVNode, computed, normalizeClass, createTextVNode, toDisplayString, createCommentVNode, normalizeStyle, normalizeProps, guardReactiveProps, useAttrs, ref, shallowReactive, onMounted, onBeforeUnmount, useId, watch, nextTick, Fragment, createSlots, useTemplateRef, useModel, withDirectives, isRef, vModelDynamic, mergeModels, vModelText, renderList, withModifiers, vModelRadio, effectScope, createStaticVNode, resolveDynamicComponent } from "vue";
|
|
2
|
+
import { TooltipProvider, Primitive, createContext, useForwardProps, useEmitAsProps, AvatarRoot, AvatarImage, AvatarFallback, ScrollAreaRoot, ScrollAreaViewport, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaCorner, TooltipRoot, TooltipTrigger, TooltipPortal, TooltipContent, TooltipArrow, DialogClose, injectDialogRootContext, useForwardExpose, DialogPortal, DialogOverlay, DialogContent, useForwardPropsEmits, AlertDialogPortal, AlertDialogOverlay, AlertDialogContent, DropdownMenuPortal, DropdownMenuContent, DropdownMenuItem, PopoverPortal, PopoverContent, NavigationMenuRoot, NavigationMenuViewport, NavigationMenuList, NavigationMenuIndicator, NavigationMenuLink, NavigationMenuTrigger, NavigationMenuContent, DialogRoot, DialogTitle, DialogDescription, SwitchRoot, SwitchThumb, CheckboxRoot, CheckboxIndicator, Toggle, ToggleGroupRoot, ToggleGroupItem, PinInputRoot, PinInputInput, 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 as useId$1, AccordionItem, AccordionContent, AccordionTrigger, CollapsibleRoot, CollapsibleTrigger, CollapsibleContent, injectPaginationRootContext, PaginationEllipsis, PaginationRoot, PaginationList, PaginationFirst, PaginationPrev, PaginationListItem, PaginationNext, PaginationLast, ToastRoot, ToastTitle, ToastDescription, ToastAction, ToastProvider, ToastPortal, ToastViewport, ProgressRoot, ProgressIndicator } from "reka-ui";
|
|
3
|
+
import { AlertDialogAction, AlertDialogCancel, AlertDialogRoot, AlertDialogTrigger, CheckboxGroupRoot, ComboboxGroup, DialogClose as DialogClose2, DialogRoot as DialogRoot2, DialogTrigger, DropdownMenuRoot, DropdownMenuTrigger, NavigationMenuItem, PopoverClose, PopoverRoot, PopoverTrigger, SelectGroup, TabsContent, TabsRoot } from "reka-ui";
|
|
4
|
+
import { Icon } from "@iconify/vue";
|
|
4
5
|
const [injectThemeContext, provideThemeContext] = createContext("ThemeProvider");
|
|
5
|
-
const _sfc_main$
|
|
6
|
+
const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
6
7
|
...{
|
|
7
8
|
inheritAttrs: false
|
|
8
9
|
},
|
|
@@ -53,13 +54,13 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
53
54
|
};
|
|
54
55
|
}
|
|
55
56
|
});
|
|
56
|
-
const _hoisted_1$
|
|
57
|
+
const _hoisted_1$B = {
|
|
57
58
|
viewBox: "0 0 24 24",
|
|
58
59
|
width: "1em",
|
|
59
60
|
height: "1em"
|
|
60
61
|
};
|
|
61
62
|
function render$e(_ctx, _cache) {
|
|
62
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
63
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$B, [..._cache[0] || (_cache[0] = [
|
|
63
64
|
createElementVNode("path", {
|
|
64
65
|
fill: "currentColor",
|
|
65
66
|
d: "M4 22a8 8 0 1 1 16 0h-2a6 6 0 0 0-12 0zm8-9c-3.315 0-6-2.685-6-6s2.685-6 6-6s6 2.685 6 6s-2.685 6-6 6m0-2c2.21 0 4-1.79 4-4s-1.79-4-4-4s-4 1.79-4 4s1.79 4 4 4"
|
|
@@ -113,7 +114,7 @@ function kebabize(str) {
|
|
|
113
114
|
function _kebabReplace(str, ofs) {
|
|
114
115
|
return (ofs ? "-" : "") + str.toLowerCase();
|
|
115
116
|
}
|
|
116
|
-
const _sfc_main$
|
|
117
|
+
const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
117
118
|
__name: "Avatar",
|
|
118
119
|
props: {
|
|
119
120
|
alt: {},
|
|
@@ -173,7 +174,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
173
174
|
};
|
|
174
175
|
}
|
|
175
176
|
});
|
|
176
|
-
const _sfc_main$
|
|
177
|
+
const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
177
178
|
__name: "Badge",
|
|
178
179
|
props: {
|
|
179
180
|
variant: { default: "soft" },
|
|
@@ -203,7 +204,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
203
204
|
};
|
|
204
205
|
}
|
|
205
206
|
});
|
|
206
|
-
const _sfc_main$
|
|
207
|
+
const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
207
208
|
__name: "Card",
|
|
208
209
|
props: {
|
|
209
210
|
variant: { default: "surface" },
|
|
@@ -230,7 +231,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
230
231
|
};
|
|
231
232
|
}
|
|
232
233
|
});
|
|
233
|
-
const _sfc_main$
|
|
234
|
+
const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
234
235
|
__name: "Button",
|
|
235
236
|
props: {
|
|
236
237
|
variant: { default: "solid" },
|
|
@@ -263,7 +264,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
263
264
|
};
|
|
264
265
|
}
|
|
265
266
|
});
|
|
266
|
-
const _sfc_main$
|
|
267
|
+
const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
267
268
|
__name: "IconButton",
|
|
268
269
|
props: {
|
|
269
270
|
variant: { default: "solid" },
|
|
@@ -296,23 +297,21 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
296
297
|
};
|
|
297
298
|
}
|
|
298
299
|
});
|
|
299
|
-
const _hoisted_1$
|
|
300
|
+
const _hoisted_1$A = {
|
|
300
301
|
viewBox: "0 0 15 15",
|
|
301
302
|
width: "1em",
|
|
302
303
|
height: "1em"
|
|
303
304
|
};
|
|
304
305
|
function render$d(_ctx, _cache) {
|
|
305
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
306
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$A, [..._cache[0] || (_cache[0] = [
|
|
306
307
|
createElementVNode("path", {
|
|
307
308
|
fill: "currentColor",
|
|
308
|
-
"
|
|
309
|
-
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",
|
|
310
|
-
"clip-rule": "evenodd"
|
|
309
|
+
d: "M10.969 3.219a.574.574 0 1 1 .812.812L8.313 7.5l3.468 3.469l.074.09a.575.575 0 0 1-.796.796l-.09-.074L7.5 8.312l-3.469 3.47a.574.574 0 1 1-.812-.813L6.688 7.5l-3.47-3.469l-.073-.09a.575.575 0 0 1 .796-.797l.09.075L7.5 6.687z"
|
|
311
310
|
}, null, -1)
|
|
312
311
|
])]);
|
|
313
312
|
}
|
|
314
313
|
const CrossIcon = markRaw({ name: "radix-icons-cross-2", render: render$d });
|
|
315
|
-
const _sfc_main$
|
|
314
|
+
const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
316
315
|
__name: "CloseButton",
|
|
317
316
|
props: {
|
|
318
317
|
variant: { default: "ghost" },
|
|
@@ -345,7 +344,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
345
344
|
};
|
|
346
345
|
}
|
|
347
346
|
});
|
|
348
|
-
const _sfc_main$
|
|
347
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
349
348
|
__name: "ScrollArea",
|
|
350
349
|
props: {
|
|
351
350
|
size: { default: "1" },
|
|
@@ -408,7 +407,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
408
407
|
};
|
|
409
408
|
}
|
|
410
409
|
});
|
|
411
|
-
const _sfc_main
|
|
410
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
412
411
|
__name: "ThemeWrapper",
|
|
413
412
|
props: {
|
|
414
413
|
accentColor: {},
|
|
@@ -434,8 +433,8 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
434
433
|
};
|
|
435
434
|
}
|
|
436
435
|
});
|
|
437
|
-
const _hoisted_1$
|
|
438
|
-
const _sfc_main$
|
|
436
|
+
const _hoisted_1$z = ["textContent"];
|
|
437
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
439
438
|
...{
|
|
440
439
|
inheritAttrs: false
|
|
441
440
|
},
|
|
@@ -468,20 +467,16 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
468
467
|
positionStrategy: {},
|
|
469
468
|
updatePositionStrategy: {}
|
|
470
469
|
},
|
|
471
|
-
|
|
472
|
-
setup(__props, { emit: __emit }) {
|
|
470
|
+
setup(__props) {
|
|
473
471
|
const props = __props;
|
|
474
|
-
const emits = __emit;
|
|
475
472
|
return (_ctx, _cache) => {
|
|
476
473
|
return openBlock(), createBlock(unref(TooltipRoot), {
|
|
477
|
-
open: props.open,
|
|
478
474
|
"default-open": props.defaultOpen,
|
|
479
475
|
"delay-duration": props.delayDuration,
|
|
480
476
|
"disable-hoverable-content": props.disableHoverableContent,
|
|
481
477
|
"disable-closing-trigger": props.disableClosingTrigger,
|
|
482
478
|
disabled: props.disabled,
|
|
483
|
-
"ignore-non-keyboard-focus": props.ignoreNonKeyboardFocus
|
|
484
|
-
"onUpdate:open": _cache[0] || (_cache[0] = ($event) => emits("update:open", $event))
|
|
479
|
+
"ignore-non-keyboard-focus": props.ignoreNonKeyboardFocus
|
|
485
480
|
}, {
|
|
486
481
|
default: withCtx(() => [
|
|
487
482
|
createVNode(unref(TooltipTrigger), mergeProps({
|
|
@@ -495,7 +490,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
495
490
|
}, 16, ["as", "as-child"]),
|
|
496
491
|
createVNode(unref(TooltipPortal), null, {
|
|
497
492
|
default: withCtx(() => [
|
|
498
|
-
createVNode(_sfc_main
|
|
493
|
+
createVNode(_sfc_main$1i, null, {
|
|
499
494
|
default: withCtx(() => [
|
|
500
495
|
createVNode(unref(TooltipContent), {
|
|
501
496
|
class: "ui-Tooltip",
|
|
@@ -518,7 +513,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
518
513
|
createElementVNode("p", {
|
|
519
514
|
class: "ui-TooltipText",
|
|
520
515
|
textContent: toDisplayString(props.content)
|
|
521
|
-
}, null, 8, _hoisted_1$
|
|
516
|
+
}, null, 8, _hoisted_1$z)
|
|
522
517
|
]),
|
|
523
518
|
createVNode(unref(TooltipArrow), { class: "ui-TooltipArrow" })
|
|
524
519
|
]),
|
|
@@ -532,11 +527,11 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
532
527
|
})
|
|
533
528
|
]),
|
|
534
529
|
_: 3
|
|
535
|
-
}, 8, ["
|
|
530
|
+
}, 8, ["default-open", "delay-duration", "disable-hoverable-content", "disable-closing-trigger", "disabled", "ignore-non-keyboard-focus"]);
|
|
536
531
|
};
|
|
537
532
|
}
|
|
538
533
|
});
|
|
539
|
-
const _sfc_main$
|
|
534
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
540
535
|
__name: "DialogCloseButton",
|
|
541
536
|
props: {
|
|
542
537
|
tooltip: { default: "Close" },
|
|
@@ -553,7 +548,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
553
548
|
const props = __props;
|
|
554
549
|
const forwarded = useForwardPropsWithout(props, ["tooltip"]);
|
|
555
550
|
return (_ctx, _cache) => {
|
|
556
|
-
return openBlock(), createBlock(_sfc_main$
|
|
551
|
+
return openBlock(), createBlock(_sfc_main$1h, {
|
|
557
552
|
content: props.tooltip,
|
|
558
553
|
"as-child": ""
|
|
559
554
|
}, {
|
|
@@ -563,7 +558,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
563
558
|
"as-child": ""
|
|
564
559
|
}, {
|
|
565
560
|
default: withCtx(() => [
|
|
566
|
-
createVNode(_sfc_main$
|
|
561
|
+
createVNode(_sfc_main$1l, normalizeProps(guardReactiveProps(unref(forwarded))), {
|
|
567
562
|
default: withCtx(() => [
|
|
568
563
|
createVNode(unref(CrossIcon))
|
|
569
564
|
]),
|
|
@@ -578,7 +573,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
578
573
|
};
|
|
579
574
|
}
|
|
580
575
|
});
|
|
581
|
-
const _sfc_main$
|
|
576
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
582
577
|
__name: "DialogTitle",
|
|
583
578
|
props: {
|
|
584
579
|
asChild: { type: Boolean },
|
|
@@ -601,7 +596,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
601
596
|
};
|
|
602
597
|
}
|
|
603
598
|
});
|
|
604
|
-
const _sfc_main$
|
|
599
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
605
600
|
__name: "DialogDescription",
|
|
606
601
|
props: {
|
|
607
602
|
asChild: { type: Boolean },
|
|
@@ -624,9 +619,9 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
624
619
|
};
|
|
625
620
|
}
|
|
626
621
|
});
|
|
627
|
-
const _hoisted_1$
|
|
622
|
+
const _hoisted_1$y = { class: "ui-DialogWrapper" };
|
|
628
623
|
const _hoisted_2$8 = { class: "ui-DialogContainer" };
|
|
629
|
-
const _sfc_main$
|
|
624
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
630
625
|
...{
|
|
631
626
|
inheritAttrs: false
|
|
632
627
|
},
|
|
@@ -646,11 +641,11 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
646
641
|
return (_ctx, _cache) => {
|
|
647
642
|
return openBlock(), createBlock(unref(DialogPortal), null, {
|
|
648
643
|
default: withCtx(() => [
|
|
649
|
-
createVNode(_sfc_main
|
|
644
|
+
createVNode(_sfc_main$1i, null, {
|
|
650
645
|
default: withCtx(() => [
|
|
651
646
|
createVNode(unref(DialogOverlay), { class: "ui-DialogOverlay" }, {
|
|
652
647
|
default: withCtx(() => [
|
|
653
|
-
createElementVNode("div", _hoisted_1$
|
|
648
|
+
createElementVNode("div", _hoisted_1$y, [
|
|
654
649
|
createElementVNode("div", _hoisted_2$8, [
|
|
655
650
|
createVNode(unref(DialogContent), mergeProps({
|
|
656
651
|
class: ["ui-DialogPopup", `r-size-${props.size}`]
|
|
@@ -677,9 +672,9 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
677
672
|
};
|
|
678
673
|
}
|
|
679
674
|
});
|
|
680
|
-
const _hoisted_1$
|
|
675
|
+
const _hoisted_1$x = { class: "ui-DialogWrapper" };
|
|
681
676
|
const _hoisted_2$7 = { class: "ui-DialogContainer" };
|
|
682
|
-
const _sfc_main$
|
|
677
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
683
678
|
...{
|
|
684
679
|
inheritAttrs: false
|
|
685
680
|
},
|
|
@@ -698,11 +693,11 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
698
693
|
return (_ctx, _cache) => {
|
|
699
694
|
return openBlock(), createBlock(unref(AlertDialogPortal), null, {
|
|
700
695
|
default: withCtx(() => [
|
|
701
|
-
createVNode(_sfc_main
|
|
696
|
+
createVNode(_sfc_main$1i, null, {
|
|
702
697
|
default: withCtx(() => [
|
|
703
698
|
createVNode(unref(AlertDialogOverlay), { class: "ui-DialogOverlay" }, {
|
|
704
699
|
default: withCtx(() => [
|
|
705
|
-
createElementVNode("div", _hoisted_1$
|
|
700
|
+
createElementVNode("div", _hoisted_1$x, [
|
|
706
701
|
createElementVNode("div", _hoisted_2$7, [
|
|
707
702
|
createVNode(unref(AlertDialogContent), mergeProps({ class: "ui-DialogPopup ui-AlertPopup r-size-3" }, {
|
|
708
703
|
..._ctx.$attrs,
|
|
@@ -727,9 +722,9 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
727
722
|
};
|
|
728
723
|
}
|
|
729
724
|
});
|
|
730
|
-
const _hoisted_1$
|
|
725
|
+
const _hoisted_1$w = { class: "ui-MenuViewport" };
|
|
731
726
|
const [injectDropdownMenuContentContext, provideDropdownMenuContentContext] = createContext("ui:DropdownMenuContent");
|
|
732
|
-
const _sfc_main$
|
|
727
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
733
728
|
...{
|
|
734
729
|
inheritAttrs: false
|
|
735
730
|
},
|
|
@@ -741,6 +736,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
741
736
|
highContrast: { type: Boolean },
|
|
742
737
|
forceMount: { type: Boolean },
|
|
743
738
|
loop: { type: Boolean },
|
|
739
|
+
memoDependencies: {},
|
|
744
740
|
side: {},
|
|
745
741
|
sideOffset: { default: 4 },
|
|
746
742
|
sideFlip: { type: Boolean },
|
|
@@ -751,6 +747,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
751
747
|
collisionBoundary: {},
|
|
752
748
|
collisionPadding: { default: 10 },
|
|
753
749
|
arrowPadding: {},
|
|
750
|
+
hideShiftedArrow: { type: Boolean },
|
|
754
751
|
sticky: {},
|
|
755
752
|
hideWhenDetached: { type: Boolean },
|
|
756
753
|
positionStrategy: {},
|
|
@@ -779,7 +776,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
779
776
|
return (_ctx, _cache) => {
|
|
780
777
|
return openBlock(), createBlock(unref(DropdownMenuPortal), null, {
|
|
781
778
|
default: withCtx(() => [
|
|
782
|
-
createVNode(_sfc_main
|
|
779
|
+
createVNode(_sfc_main$1i, {
|
|
783
780
|
"accent-color": props.color
|
|
784
781
|
}, {
|
|
785
782
|
default: withCtx(() => [
|
|
@@ -791,9 +788,9 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
791
788
|
class: ["ui-PopperContent ui-MenuContent", unref(resetClass)]
|
|
792
789
|
}), {
|
|
793
790
|
default: withCtx(() => [
|
|
794
|
-
createVNode(_sfc_main$
|
|
791
|
+
createVNode(_sfc_main$1j, { type: "auto" }, {
|
|
795
792
|
default: withCtx(() => [
|
|
796
|
-
createElementVNode("div", _hoisted_1$
|
|
793
|
+
createElementVNode("div", _hoisted_1$w, [
|
|
797
794
|
renderSlot(_ctx.$slots, "default")
|
|
798
795
|
])
|
|
799
796
|
]),
|
|
@@ -811,8 +808,8 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
811
808
|
};
|
|
812
809
|
}
|
|
813
810
|
});
|
|
814
|
-
const _hoisted_1$
|
|
815
|
-
const _sfc_main$
|
|
811
|
+
const _hoisted_1$v = ["textContent"];
|
|
812
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
816
813
|
__name: "DropdownMenuItem",
|
|
817
814
|
props: {
|
|
818
815
|
color: {},
|
|
@@ -841,7 +838,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
841
838
|
key: 0,
|
|
842
839
|
class: "ui-MenuShortcut",
|
|
843
840
|
textContent: toDisplayString(props.shortcut)
|
|
844
|
-
}, null, 8, _hoisted_1$
|
|
841
|
+
}, null, 8, _hoisted_1$v)) : createCommentVNode("", true)
|
|
845
842
|
]),
|
|
846
843
|
_: 3
|
|
847
844
|
}, 16, ["data-accent-color", "data-high-contrast"]);
|
|
@@ -855,16 +852,16 @@ const _export_sfc = (sfc, props) => {
|
|
|
855
852
|
}
|
|
856
853
|
return target;
|
|
857
854
|
};
|
|
858
|
-
const _sfc_main$
|
|
859
|
-
const _hoisted_1$
|
|
855
|
+
const _sfc_main$19 = {};
|
|
856
|
+
const _hoisted_1$u = {
|
|
860
857
|
class: "ui-DropdownMenuSeparator",
|
|
861
858
|
"aria-hidden": "true"
|
|
862
859
|
};
|
|
863
860
|
function _sfc_render$2(_ctx, _cache) {
|
|
864
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
861
|
+
return openBlock(), createElementBlock("div", _hoisted_1$u);
|
|
865
862
|
}
|
|
866
|
-
const DropdownMenuSeparator = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
867
|
-
const _sfc_main$
|
|
863
|
+
const DropdownMenuSeparator = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["render", _sfc_render$2]]);
|
|
864
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
868
865
|
...{
|
|
869
866
|
inheritAttrs: false
|
|
870
867
|
},
|
|
@@ -872,6 +869,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
872
869
|
props: {
|
|
873
870
|
size: { default: "1" },
|
|
874
871
|
forceMount: { type: Boolean },
|
|
872
|
+
memoDependencies: {},
|
|
875
873
|
side: { default: "bottom" },
|
|
876
874
|
sideOffset: { default: 4 },
|
|
877
875
|
sideFlip: { type: Boolean },
|
|
@@ -882,6 +880,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
882
880
|
collisionBoundary: {},
|
|
883
881
|
collisionPadding: {},
|
|
884
882
|
arrowPadding: {},
|
|
883
|
+
hideShiftedArrow: { type: Boolean },
|
|
885
884
|
sticky: {},
|
|
886
885
|
hideWhenDetached: { type: Boolean },
|
|
887
886
|
positionStrategy: {},
|
|
@@ -889,6 +888,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
889
888
|
disableUpdateOnLayoutShift: { type: Boolean },
|
|
890
889
|
prioritizePosition: { type: Boolean },
|
|
891
890
|
reference: {},
|
|
891
|
+
dir: {},
|
|
892
892
|
asChild: { type: Boolean },
|
|
893
893
|
as: {},
|
|
894
894
|
disableOutsidePointerEvents: { type: Boolean }
|
|
@@ -901,7 +901,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
901
901
|
return (_ctx, _cache) => {
|
|
902
902
|
return openBlock(), createBlock(unref(PopoverPortal), null, {
|
|
903
903
|
default: withCtx(() => [
|
|
904
|
-
createVNode(_sfc_main
|
|
904
|
+
createVNode(_sfc_main$1i, null, {
|
|
905
905
|
default: withCtx(() => [
|
|
906
906
|
createVNode(unref(PopoverContent), mergeProps({ ..._ctx.$attrs, ...unref(forwarded) }, {
|
|
907
907
|
class: ["ui-PopoverPopup ui-PopperContent", `r-size-${props.size}`]
|
|
@@ -920,7 +920,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
920
920
|
};
|
|
921
921
|
}
|
|
922
922
|
});
|
|
923
|
-
const _sfc_main$
|
|
923
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
924
924
|
__name: "NavigationMenuRoot",
|
|
925
925
|
props: {
|
|
926
926
|
modelValue: {},
|
|
@@ -953,7 +953,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
953
953
|
}
|
|
954
954
|
});
|
|
955
955
|
const [injectNavigationMenuListContext, provideNavigationMenuListContext] = createContext("ui:NavigationMenuList");
|
|
956
|
-
const _sfc_main$
|
|
956
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
957
957
|
__name: "NavigationMenuList",
|
|
958
958
|
props: {
|
|
959
959
|
color: {},
|
|
@@ -985,7 +985,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
985
985
|
};
|
|
986
986
|
}
|
|
987
987
|
});
|
|
988
|
-
const _sfc_main$
|
|
988
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
989
989
|
__name: "NavigationMenuLink",
|
|
990
990
|
props: {
|
|
991
991
|
color: {},
|
|
@@ -1019,23 +1019,21 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
1019
1019
|
};
|
|
1020
1020
|
}
|
|
1021
1021
|
});
|
|
1022
|
-
const _hoisted_1$
|
|
1022
|
+
const _hoisted_1$t = {
|
|
1023
1023
|
viewBox: "0 0 15 15",
|
|
1024
1024
|
width: "1em",
|
|
1025
1025
|
height: "1em"
|
|
1026
1026
|
};
|
|
1027
1027
|
function render$c(_ctx, _cache) {
|
|
1028
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
1028
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$t, [..._cache[0] || (_cache[0] = [
|
|
1029
1029
|
createElementVNode("path", {
|
|
1030
1030
|
fill: "currentColor",
|
|
1031
|
-
"
|
|
1032
|
-
d: "M4.182 6.182a.45.45 0 0 1 .636 0L7.5 8.864l2.682-2.682a.45.45 0 0 1 .636.636l-3 3a.45.45 0 0 1-.636 0l-3-3a.45.45 0 0 1 0-.636",
|
|
1033
|
-
"clip-rule": "evenodd"
|
|
1031
|
+
d: "M7.5 9.95a.45.45 0 0 0 .319-.132l3-3a.45.45 0 0 0-.637-.637L7.5 8.863L4.82 6.181l-.07-.057a.451.451 0 0 0-.625.624l.058.07l3 3a.45.45 0 0 0 .318.132"
|
|
1034
1032
|
}, null, -1)
|
|
1035
1033
|
])]);
|
|
1036
1034
|
}
|
|
1037
1035
|
const CaretDownIcon = markRaw({ name: "radix-icons-caret-down", render: render$c });
|
|
1038
|
-
const _sfc_main$
|
|
1036
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
1039
1037
|
__name: "NavigationMenuTrigger",
|
|
1040
1038
|
props: {
|
|
1041
1039
|
color: {},
|
|
@@ -1080,7 +1078,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
1080
1078
|
};
|
|
1081
1079
|
}
|
|
1082
1080
|
});
|
|
1083
|
-
const _sfc_main$
|
|
1081
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
1084
1082
|
__name: "NavigationMenuContent",
|
|
1085
1083
|
props: {
|
|
1086
1084
|
forceMount: { type: Boolean },
|
|
@@ -1103,7 +1101,885 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
1103
1101
|
};
|
|
1104
1102
|
}
|
|
1105
1103
|
});
|
|
1106
|
-
const
|
|
1104
|
+
const [injectSidebarProviderContext, provideSidebarProviderContext] = createContext("ui:SidebarProvider");
|
|
1105
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
1106
|
+
__name: "SidebarProvider",
|
|
1107
|
+
props: {
|
|
1108
|
+
as: { default: "div" }
|
|
1109
|
+
},
|
|
1110
|
+
setup(__props) {
|
|
1111
|
+
const props = __props;
|
|
1112
|
+
const isMobile = ref(false);
|
|
1113
|
+
const sidebars = shallowReactive({});
|
|
1114
|
+
function register(side, controller) {
|
|
1115
|
+
const existing = sidebars[side];
|
|
1116
|
+
if (existing && existing !== controller) {
|
|
1117
|
+
console.warn(`[Typlog UI] SidebarProvider accepts at most one Sidebar for side="${side}".`);
|
|
1118
|
+
return false;
|
|
1119
|
+
}
|
|
1120
|
+
sidebars[side] = controller;
|
|
1121
|
+
return true;
|
|
1122
|
+
}
|
|
1123
|
+
function unregister(side, controller) {
|
|
1124
|
+
if (sidebars[side] === controller)
|
|
1125
|
+
delete sidebars[side];
|
|
1126
|
+
}
|
|
1127
|
+
function requestOpen(side, controller) {
|
|
1128
|
+
const other = sidebars[side === "left" ? "right" : "left"];
|
|
1129
|
+
if (other && other !== controller && other.open.value)
|
|
1130
|
+
other.setOpen(false);
|
|
1131
|
+
}
|
|
1132
|
+
provideSidebarProviderContext({ isMobile, sidebars, register, unregister, requestOpen });
|
|
1133
|
+
let mediaQuery;
|
|
1134
|
+
function updateMobile(event) {
|
|
1135
|
+
isMobile.value = event.matches;
|
|
1136
|
+
}
|
|
1137
|
+
onMounted(() => {
|
|
1138
|
+
mediaQuery = window.matchMedia("(max-width: 1023.98px)");
|
|
1139
|
+
updateMobile(mediaQuery);
|
|
1140
|
+
mediaQuery.addEventListener("change", updateMobile);
|
|
1141
|
+
});
|
|
1142
|
+
onBeforeUnmount(() => {
|
|
1143
|
+
mediaQuery?.removeEventListener("change", updateMobile);
|
|
1144
|
+
});
|
|
1145
|
+
const hasInset = computed(() => sidebars.left?.variant.value === "inset" || sidebars.right?.variant.value === "inset");
|
|
1146
|
+
const hasPadding = computed(() => sidebars.left?.variant.value === "floating" || sidebars.right?.variant.value === "floating" || hasInset.value);
|
|
1147
|
+
return (_ctx, _cache) => {
|
|
1148
|
+
return openBlock(), createBlock(unref(Primitive), {
|
|
1149
|
+
class: "ui-SidebarProvider",
|
|
1150
|
+
as: props.as,
|
|
1151
|
+
"data-mobile": isMobile.value,
|
|
1152
|
+
"data-padded": hasPadding.value,
|
|
1153
|
+
"data-inset": hasInset.value
|
|
1154
|
+
}, {
|
|
1155
|
+
default: withCtx(() => [
|
|
1156
|
+
renderSlot(_ctx.$slots, "default", { isMobile: isMobile.value })
|
|
1157
|
+
]),
|
|
1158
|
+
_: 3
|
|
1159
|
+
}, 8, ["as", "data-mobile", "data-padded", "data-inset"]);
|
|
1160
|
+
};
|
|
1161
|
+
}
|
|
1162
|
+
});
|
|
1163
|
+
const _hoisted_1$s = ["data-collapsed"];
|
|
1164
|
+
const [injectSidebarContext, provideSidebarContext] = createContext("ui:Sidebar");
|
|
1165
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
1166
|
+
...{ inheritAttrs: false },
|
|
1167
|
+
__name: "Sidebar",
|
|
1168
|
+
props: {
|
|
1169
|
+
open: { type: Boolean, default: void 0 },
|
|
1170
|
+
defaultOpen: { type: Boolean, default: false },
|
|
1171
|
+
collapsed: { type: Boolean, default: void 0 },
|
|
1172
|
+
defaultCollapsed: { type: Boolean, default: false },
|
|
1173
|
+
side: { default: "left" },
|
|
1174
|
+
variant: { default: "default" },
|
|
1175
|
+
collapsible: { default: "offcanvas" },
|
|
1176
|
+
width: { default: "16rem" },
|
|
1177
|
+
collapsedWidth: { default: "3.5rem" },
|
|
1178
|
+
mobileWidth: { default: "18rem" },
|
|
1179
|
+
mobileTitle: { default: "Navigation" },
|
|
1180
|
+
mobileDescription: { default: "Site navigation" },
|
|
1181
|
+
forceMount: { type: Boolean },
|
|
1182
|
+
disableOutsidePointerEvents: { type: Boolean, default: void 0 },
|
|
1183
|
+
asChild: { type: Boolean },
|
|
1184
|
+
as: { default: "aside" }
|
|
1185
|
+
},
|
|
1186
|
+
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus", "update:open", "update:collapsed"],
|
|
1187
|
+
setup(__props, { emit: __emit }) {
|
|
1188
|
+
const props = __props;
|
|
1189
|
+
const emits = __emit;
|
|
1190
|
+
const provider = injectSidebarProviderContext();
|
|
1191
|
+
const internalOpen = ref(props.defaultOpen);
|
|
1192
|
+
const internalCollapsed = ref(props.defaultCollapsed);
|
|
1193
|
+
const isMobile = provider.isMobile;
|
|
1194
|
+
const lastTrigger = ref(null);
|
|
1195
|
+
const panelId = `ui-sidebar-${useId()}`;
|
|
1196
|
+
const { side, variant, collapsible } = toRefs(props);
|
|
1197
|
+
const open = computed({
|
|
1198
|
+
get: () => props.open ?? internalOpen.value,
|
|
1199
|
+
set: (value) => {
|
|
1200
|
+
if (value && isMobile.value)
|
|
1201
|
+
provider.requestOpen(side.value, controller);
|
|
1202
|
+
if (props.open === void 0)
|
|
1203
|
+
internalOpen.value = value;
|
|
1204
|
+
emits("update:open", value);
|
|
1205
|
+
}
|
|
1206
|
+
});
|
|
1207
|
+
const collapsed = computed({
|
|
1208
|
+
get: () => props.collapsed ?? internalCollapsed.value,
|
|
1209
|
+
set: (value) => {
|
|
1210
|
+
if (props.collapsed === void 0)
|
|
1211
|
+
internalCollapsed.value = value;
|
|
1212
|
+
emits("update:collapsed", value);
|
|
1213
|
+
}
|
|
1214
|
+
});
|
|
1215
|
+
function toggleCollapsed() {
|
|
1216
|
+
if (collapsible.value !== "none")
|
|
1217
|
+
collapsed.value = !collapsed.value;
|
|
1218
|
+
}
|
|
1219
|
+
function toggle() {
|
|
1220
|
+
if (isMobile.value)
|
|
1221
|
+
open.value = !open.value;
|
|
1222
|
+
else
|
|
1223
|
+
toggleCollapsed();
|
|
1224
|
+
}
|
|
1225
|
+
function setOpen(value) {
|
|
1226
|
+
open.value = value;
|
|
1227
|
+
}
|
|
1228
|
+
function shouldRestoreFocus() {
|
|
1229
|
+
const other = provider.sidebars[side.value === "left" ? "right" : "left"];
|
|
1230
|
+
return !other?.open.value;
|
|
1231
|
+
}
|
|
1232
|
+
const controller = {
|
|
1233
|
+
side,
|
|
1234
|
+
open,
|
|
1235
|
+
collapsed,
|
|
1236
|
+
collapsible,
|
|
1237
|
+
variant,
|
|
1238
|
+
panelId,
|
|
1239
|
+
lastTrigger,
|
|
1240
|
+
setOpen,
|
|
1241
|
+
toggle
|
|
1242
|
+
};
|
|
1243
|
+
watch(side, (value, _oldValue, onCleanup) => {
|
|
1244
|
+
if (provider.register(value, controller))
|
|
1245
|
+
onCleanup(() => provider.unregister(value, controller));
|
|
1246
|
+
}, { immediate: true });
|
|
1247
|
+
watch([open, isMobile], ([isOpen, mobile]) => {
|
|
1248
|
+
if (isOpen && mobile)
|
|
1249
|
+
provider.requestOpen(side.value, controller);
|
|
1250
|
+
}, { immediate: true });
|
|
1251
|
+
provideSidebarContext({
|
|
1252
|
+
open,
|
|
1253
|
+
collapsed,
|
|
1254
|
+
isMobile,
|
|
1255
|
+
side,
|
|
1256
|
+
variant,
|
|
1257
|
+
collapsible,
|
|
1258
|
+
panelId,
|
|
1259
|
+
lastTrigger,
|
|
1260
|
+
toggle,
|
|
1261
|
+
toggleCollapsed,
|
|
1262
|
+
shouldRestoreFocus
|
|
1263
|
+
});
|
|
1264
|
+
const sidebarProps = [
|
|
1265
|
+
"open",
|
|
1266
|
+
"defaultOpen",
|
|
1267
|
+
"collapsed",
|
|
1268
|
+
"defaultCollapsed",
|
|
1269
|
+
"side",
|
|
1270
|
+
"variant",
|
|
1271
|
+
"collapsible",
|
|
1272
|
+
"width",
|
|
1273
|
+
"collapsedWidth",
|
|
1274
|
+
"mobileWidth",
|
|
1275
|
+
"mobileTitle",
|
|
1276
|
+
"mobileDescription"
|
|
1277
|
+
];
|
|
1278
|
+
const forwardedDialogProps = useForwardPropsWithout(props, sidebarProps);
|
|
1279
|
+
const resetClass = buildPropsClass(props, ["side", "variant", "collapsible"]);
|
|
1280
|
+
const mobileClass = computed(() => [
|
|
1281
|
+
`r-side-${props.side}`,
|
|
1282
|
+
`r-variant-${props.variant}`
|
|
1283
|
+
]);
|
|
1284
|
+
const sidebarStyle = computed(() => ({
|
|
1285
|
+
"--sidebar-width": props.width,
|
|
1286
|
+
"--sidebar-collapsed-width": props.collapsedWidth,
|
|
1287
|
+
"--sidebar-mobile-width": props.mobileWidth
|
|
1288
|
+
}));
|
|
1289
|
+
function closeAutoFocus(event) {
|
|
1290
|
+
emits("closeAutoFocus", event);
|
|
1291
|
+
if (event.defaultPrevented)
|
|
1292
|
+
return;
|
|
1293
|
+
if (!shouldRestoreFocus()) {
|
|
1294
|
+
event.preventDefault();
|
|
1295
|
+
return;
|
|
1296
|
+
}
|
|
1297
|
+
const trigger = lastTrigger.value;
|
|
1298
|
+
if (trigger?.isConnected) {
|
|
1299
|
+
event.preventDefault();
|
|
1300
|
+
nextTick(() => trigger.focus());
|
|
1301
|
+
}
|
|
1302
|
+
}
|
|
1303
|
+
return (_ctx, _cache) => {
|
|
1304
|
+
return openBlock(), createBlock(unref(DialogRoot), {
|
|
1305
|
+
open: open.value,
|
|
1306
|
+
"onUpdate:open": setOpen
|
|
1307
|
+
}, {
|
|
1308
|
+
default: withCtx(() => [
|
|
1309
|
+
!unref(isMobile) ? (openBlock(), createElementBlock("div", {
|
|
1310
|
+
key: 0,
|
|
1311
|
+
class: normalizeClass(["ui-Sidebar", unref(resetClass)]),
|
|
1312
|
+
style: normalizeStyle(sidebarStyle.value),
|
|
1313
|
+
"data-collapsed": collapsed.value
|
|
1314
|
+
}, [
|
|
1315
|
+
createVNode(unref(Primitive), mergeProps(_ctx.$attrs, {
|
|
1316
|
+
id: panelId,
|
|
1317
|
+
as: props.as,
|
|
1318
|
+
"as-child": props.asChild,
|
|
1319
|
+
class: "ui-SidebarPanel r-desktop"
|
|
1320
|
+
}), {
|
|
1321
|
+
default: withCtx(() => [
|
|
1322
|
+
renderSlot(_ctx.$slots, "default", {
|
|
1323
|
+
open: open.value,
|
|
1324
|
+
collapsed: collapsed.value,
|
|
1325
|
+
isMobile: unref(isMobile),
|
|
1326
|
+
toggle
|
|
1327
|
+
})
|
|
1328
|
+
]),
|
|
1329
|
+
_: 3
|
|
1330
|
+
}, 16, ["as", "as-child"])
|
|
1331
|
+
], 14, _hoisted_1$s)) : (openBlock(), createBlock(unref(DialogPortal), { key: 1 }, {
|
|
1332
|
+
default: withCtx(() => [
|
|
1333
|
+
createVNode(_sfc_main$1i, null, {
|
|
1334
|
+
default: withCtx(() => [
|
|
1335
|
+
createVNode(unref(DialogOverlay), {
|
|
1336
|
+
class: "ui-SidebarOverlay",
|
|
1337
|
+
"force-mount": props.forceMount
|
|
1338
|
+
}, {
|
|
1339
|
+
default: withCtx(() => [
|
|
1340
|
+
createVNode(unref(DialogContent), mergeProps({ ..._ctx.$attrs, ...unref(forwardedDialogProps) }, {
|
|
1341
|
+
id: panelId,
|
|
1342
|
+
class: ["ui-SidebarPanel r-mobile", mobileClass.value],
|
|
1343
|
+
style: sidebarStyle.value,
|
|
1344
|
+
onCloseAutoFocus: closeAutoFocus,
|
|
1345
|
+
onEscapeKeyDown: _cache[0] || (_cache[0] = ($event) => emits("escapeKeyDown", $event)),
|
|
1346
|
+
onFocusOutside: _cache[1] || (_cache[1] = ($event) => emits("focusOutside", $event)),
|
|
1347
|
+
onInteractOutside: _cache[2] || (_cache[2] = ($event) => emits("interactOutside", $event)),
|
|
1348
|
+
onOpenAutoFocus: _cache[3] || (_cache[3] = ($event) => emits("openAutoFocus", $event)),
|
|
1349
|
+
onPointerDownOutside: _cache[4] || (_cache[4] = ($event) => emits("pointerDownOutside", $event))
|
|
1350
|
+
}), {
|
|
1351
|
+
default: withCtx(() => [
|
|
1352
|
+
renderSlot(_ctx.$slots, "default", {
|
|
1353
|
+
open: open.value,
|
|
1354
|
+
collapsed: collapsed.value,
|
|
1355
|
+
isMobile: unref(isMobile),
|
|
1356
|
+
toggle
|
|
1357
|
+
}),
|
|
1358
|
+
createVNode(unref(DialogTitle), { class: "ui-SidebarVisuallyHidden" }, {
|
|
1359
|
+
default: withCtx(() => [
|
|
1360
|
+
createTextVNode(toDisplayString(props.mobileTitle), 1)
|
|
1361
|
+
]),
|
|
1362
|
+
_: 1
|
|
1363
|
+
}),
|
|
1364
|
+
createVNode(unref(DialogDescription), { class: "ui-SidebarVisuallyHidden" }, {
|
|
1365
|
+
default: withCtx(() => [
|
|
1366
|
+
createTextVNode(toDisplayString(props.mobileDescription), 1)
|
|
1367
|
+
]),
|
|
1368
|
+
_: 1
|
|
1369
|
+
})
|
|
1370
|
+
]),
|
|
1371
|
+
_: 3
|
|
1372
|
+
}, 16, ["class", "style"])
|
|
1373
|
+
]),
|
|
1374
|
+
_: 3
|
|
1375
|
+
}, 8, ["force-mount"])
|
|
1376
|
+
]),
|
|
1377
|
+
_: 3
|
|
1378
|
+
})
|
|
1379
|
+
]),
|
|
1380
|
+
_: 3
|
|
1381
|
+
}))
|
|
1382
|
+
]),
|
|
1383
|
+
_: 3
|
|
1384
|
+
}, 8, ["open"]);
|
|
1385
|
+
};
|
|
1386
|
+
}
|
|
1387
|
+
});
|
|
1388
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
1389
|
+
__name: "SidebarHeader",
|
|
1390
|
+
props: {
|
|
1391
|
+
asChild: { type: Boolean },
|
|
1392
|
+
as: { default: "header" }
|
|
1393
|
+
},
|
|
1394
|
+
setup(__props) {
|
|
1395
|
+
const props = __props;
|
|
1396
|
+
return (_ctx, _cache) => {
|
|
1397
|
+
return openBlock(), createBlock(unref(Primitive), {
|
|
1398
|
+
class: "ui-SidebarHeader",
|
|
1399
|
+
as: props.as,
|
|
1400
|
+
"as-child": props.asChild
|
|
1401
|
+
}, {
|
|
1402
|
+
default: withCtx(() => [
|
|
1403
|
+
renderSlot(_ctx.$slots, "default")
|
|
1404
|
+
]),
|
|
1405
|
+
_: 3
|
|
1406
|
+
}, 8, ["as", "as-child"]);
|
|
1407
|
+
};
|
|
1408
|
+
}
|
|
1409
|
+
});
|
|
1410
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
1411
|
+
__name: "SidebarBody",
|
|
1412
|
+
props: {
|
|
1413
|
+
asChild: { type: Boolean },
|
|
1414
|
+
as: { default: "div" }
|
|
1415
|
+
},
|
|
1416
|
+
setup(__props) {
|
|
1417
|
+
const props = __props;
|
|
1418
|
+
return (_ctx, _cache) => {
|
|
1419
|
+
return openBlock(), createBlock(unref(Primitive), {
|
|
1420
|
+
class: "ui-SidebarBody",
|
|
1421
|
+
as: props.as,
|
|
1422
|
+
"as-child": props.asChild
|
|
1423
|
+
}, {
|
|
1424
|
+
default: withCtx(() => [
|
|
1425
|
+
renderSlot(_ctx.$slots, "default")
|
|
1426
|
+
]),
|
|
1427
|
+
_: 3
|
|
1428
|
+
}, 8, ["as", "as-child"]);
|
|
1429
|
+
};
|
|
1430
|
+
}
|
|
1431
|
+
});
|
|
1432
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
1433
|
+
__name: "SidebarFooter",
|
|
1434
|
+
props: {
|
|
1435
|
+
asChild: { type: Boolean },
|
|
1436
|
+
as: { default: "footer" }
|
|
1437
|
+
},
|
|
1438
|
+
setup(__props) {
|
|
1439
|
+
const props = __props;
|
|
1440
|
+
return (_ctx, _cache) => {
|
|
1441
|
+
return openBlock(), createBlock(unref(Primitive), {
|
|
1442
|
+
class: "ui-SidebarFooter",
|
|
1443
|
+
as: props.as,
|
|
1444
|
+
"as-child": props.asChild
|
|
1445
|
+
}, {
|
|
1446
|
+
default: withCtx(() => [
|
|
1447
|
+
renderSlot(_ctx.$slots, "default")
|
|
1448
|
+
]),
|
|
1449
|
+
_: 3
|
|
1450
|
+
}, 8, ["as", "as-child"]);
|
|
1451
|
+
};
|
|
1452
|
+
}
|
|
1453
|
+
});
|
|
1454
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
1455
|
+
__name: "SidebarTrigger",
|
|
1456
|
+
props: {
|
|
1457
|
+
target: { default: "left" },
|
|
1458
|
+
label: {},
|
|
1459
|
+
disabled: { type: Boolean, default: false },
|
|
1460
|
+
asChild: { type: Boolean },
|
|
1461
|
+
as: { default: "button" }
|
|
1462
|
+
},
|
|
1463
|
+
setup(__props) {
|
|
1464
|
+
const props = __props;
|
|
1465
|
+
const provider = injectSidebarProviderContext();
|
|
1466
|
+
const target = computed(() => provider.sidebars[props.target]);
|
|
1467
|
+
const isDisabled = computed(() => props.disabled || !target.value || !provider.isMobile.value && target.value.collapsible.value === "none");
|
|
1468
|
+
const accessibleLabel = computed(() => {
|
|
1469
|
+
if (props.label)
|
|
1470
|
+
return props.label;
|
|
1471
|
+
if (provider.isMobile.value)
|
|
1472
|
+
return `${target.value?.open.value ? "Close" : "Open"} ${props.target} sidebar`;
|
|
1473
|
+
return `${target.value?.collapsed.value ? "Expand" : "Collapse"} ${props.target} sidebar`;
|
|
1474
|
+
});
|
|
1475
|
+
function toggle(event) {
|
|
1476
|
+
if (isDisabled.value || !target.value)
|
|
1477
|
+
return;
|
|
1478
|
+
target.value.lastTrigger.value = event.currentTarget;
|
|
1479
|
+
target.value.toggle();
|
|
1480
|
+
}
|
|
1481
|
+
return (_ctx, _cache) => {
|
|
1482
|
+
return openBlock(), createBlock(unref(Primitive), {
|
|
1483
|
+
class: "ui-SidebarTrigger",
|
|
1484
|
+
as: props.as,
|
|
1485
|
+
"as-child": props.asChild,
|
|
1486
|
+
type: props.as === "button" ? "button" : void 0,
|
|
1487
|
+
disabled: isDisabled.value && props.as === "button" ? true : void 0,
|
|
1488
|
+
"data-disabled": isDisabled.value ? true : void 0,
|
|
1489
|
+
"aria-disabled": isDisabled.value ? true : void 0,
|
|
1490
|
+
"data-mobile": unref(provider).isMobile.value,
|
|
1491
|
+
"data-collapsible": target.value?.collapsible.value,
|
|
1492
|
+
"data-target": props.target,
|
|
1493
|
+
"aria-label": accessibleLabel.value,
|
|
1494
|
+
"aria-controls": target.value?.panelId,
|
|
1495
|
+
"aria-expanded": unref(provider).isMobile.value ? target.value?.open.value ?? false : !(target.value?.collapsed.value ?? true),
|
|
1496
|
+
"aria-haspopup": unref(provider).isMobile.value ? "dialog" : void 0,
|
|
1497
|
+
onClick: toggle
|
|
1498
|
+
}, {
|
|
1499
|
+
default: withCtx(() => [
|
|
1500
|
+
renderSlot(_ctx.$slots, "default", {
|
|
1501
|
+
open: target.value?.open.value ?? false,
|
|
1502
|
+
collapsed: target.value?.collapsed.value ?? false,
|
|
1503
|
+
isMobile: unref(provider).isMobile.value,
|
|
1504
|
+
target: props.target
|
|
1505
|
+
}, () => [
|
|
1506
|
+
createVNode(unref(Icon), {
|
|
1507
|
+
class: "ui-SidebarTriggerIcon",
|
|
1508
|
+
icon: props.target === "right" ? "lucide:panel-right" : "lucide:panel-left",
|
|
1509
|
+
"aria-hidden": "true"
|
|
1510
|
+
}, null, 8, ["icon"])
|
|
1511
|
+
])
|
|
1512
|
+
]),
|
|
1513
|
+
_: 3
|
|
1514
|
+
}, 8, ["as", "as-child", "type", "disabled", "data-disabled", "aria-disabled", "data-mobile", "data-collapsible", "data-target", "aria-label", "aria-controls", "aria-expanded", "aria-haspopup"]);
|
|
1515
|
+
};
|
|
1516
|
+
}
|
|
1517
|
+
});
|
|
1518
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
1519
|
+
__name: "SidebarRail",
|
|
1520
|
+
props: {
|
|
1521
|
+
label: {},
|
|
1522
|
+
disabled: { type: Boolean, default: false },
|
|
1523
|
+
asChild: { type: Boolean },
|
|
1524
|
+
as: { default: "button" }
|
|
1525
|
+
},
|
|
1526
|
+
setup(__props) {
|
|
1527
|
+
const props = __props;
|
|
1528
|
+
const context = injectSidebarContext();
|
|
1529
|
+
const isDisabled = computed(() => props.disabled || context.collapsible.value === "none");
|
|
1530
|
+
const accessibleLabel = computed(() => props.label ?? `${context.collapsed.value ? "Expand" : "Collapse"} ${context.side.value} sidebar`);
|
|
1531
|
+
return (_ctx, _cache) => {
|
|
1532
|
+
return openBlock(), createBlock(unref(Primitive), {
|
|
1533
|
+
class: "ui-SidebarRail",
|
|
1534
|
+
as: props.as,
|
|
1535
|
+
"as-child": props.asChild,
|
|
1536
|
+
type: props.as === "button" ? "button" : void 0,
|
|
1537
|
+
disabled: isDisabled.value && props.as === "button" ? true : void 0,
|
|
1538
|
+
"data-disabled": isDisabled.value ? true : void 0,
|
|
1539
|
+
"aria-disabled": isDisabled.value ? true : void 0,
|
|
1540
|
+
"aria-label": accessibleLabel.value,
|
|
1541
|
+
"aria-controls": unref(context).panelId,
|
|
1542
|
+
"aria-expanded": !unref(context).collapsed.value,
|
|
1543
|
+
onClick: _cache[0] || (_cache[0] = ($event) => !isDisabled.value && unref(context).toggleCollapsed())
|
|
1544
|
+
}, {
|
|
1545
|
+
default: withCtx(() => [
|
|
1546
|
+
renderSlot(_ctx.$slots, "default", {
|
|
1547
|
+
collapsed: unref(context).collapsed.value
|
|
1548
|
+
})
|
|
1549
|
+
]),
|
|
1550
|
+
_: 3
|
|
1551
|
+
}, 8, ["as", "as-child", "type", "disabled", "data-disabled", "aria-disabled", "aria-label", "aria-controls", "aria-expanded"]);
|
|
1552
|
+
};
|
|
1553
|
+
}
|
|
1554
|
+
});
|
|
1555
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
1556
|
+
__name: "SidebarInset",
|
|
1557
|
+
props: {
|
|
1558
|
+
asChild: { type: Boolean },
|
|
1559
|
+
as: { default: "main" }
|
|
1560
|
+
},
|
|
1561
|
+
setup(__props) {
|
|
1562
|
+
const props = __props;
|
|
1563
|
+
return (_ctx, _cache) => {
|
|
1564
|
+
return openBlock(), createBlock(unref(Primitive), {
|
|
1565
|
+
class: "ui-SidebarInset",
|
|
1566
|
+
as: props.as,
|
|
1567
|
+
"as-child": props.asChild
|
|
1568
|
+
}, {
|
|
1569
|
+
default: withCtx(() => [
|
|
1570
|
+
renderSlot(_ctx.$slots, "default")
|
|
1571
|
+
]),
|
|
1572
|
+
_: 3
|
|
1573
|
+
}, 8, ["as", "as-child"]);
|
|
1574
|
+
};
|
|
1575
|
+
}
|
|
1576
|
+
});
|
|
1577
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
1578
|
+
__name: "SidebarGroup",
|
|
1579
|
+
props: {
|
|
1580
|
+
asChild: { type: Boolean },
|
|
1581
|
+
as: { default: "div" }
|
|
1582
|
+
},
|
|
1583
|
+
setup(__props) {
|
|
1584
|
+
const props = __props;
|
|
1585
|
+
return (_ctx, _cache) => {
|
|
1586
|
+
return openBlock(), createBlock(unref(Primitive), {
|
|
1587
|
+
class: "ui-SidebarGroup",
|
|
1588
|
+
as: props.as,
|
|
1589
|
+
"as-child": props.asChild
|
|
1590
|
+
}, {
|
|
1591
|
+
default: withCtx(() => [
|
|
1592
|
+
renderSlot(_ctx.$slots, "default")
|
|
1593
|
+
]),
|
|
1594
|
+
_: 3
|
|
1595
|
+
}, 8, ["as", "as-child"]);
|
|
1596
|
+
};
|
|
1597
|
+
}
|
|
1598
|
+
});
|
|
1599
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
1600
|
+
__name: "SidebarGroupLabel",
|
|
1601
|
+
props: {
|
|
1602
|
+
asChild: { type: Boolean },
|
|
1603
|
+
as: { default: "div" }
|
|
1604
|
+
},
|
|
1605
|
+
setup(__props) {
|
|
1606
|
+
const props = __props;
|
|
1607
|
+
return (_ctx, _cache) => {
|
|
1608
|
+
return openBlock(), createBlock(unref(Primitive), {
|
|
1609
|
+
class: "ui-SidebarGroupLabel",
|
|
1610
|
+
as: props.as,
|
|
1611
|
+
"as-child": props.asChild
|
|
1612
|
+
}, {
|
|
1613
|
+
default: withCtx(() => [
|
|
1614
|
+
renderSlot(_ctx.$slots, "default")
|
|
1615
|
+
]),
|
|
1616
|
+
_: 3
|
|
1617
|
+
}, 8, ["as", "as-child"]);
|
|
1618
|
+
};
|
|
1619
|
+
}
|
|
1620
|
+
});
|
|
1621
|
+
const [injectSidebarMenuContext, provideSidebarMenuContext] = createContext("ui:SidebarMenu");
|
|
1622
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
1623
|
+
__name: "SidebarMenu",
|
|
1624
|
+
props: {
|
|
1625
|
+
size: { default: "2" },
|
|
1626
|
+
color: {},
|
|
1627
|
+
asChild: { type: Boolean },
|
|
1628
|
+
as: { default: "ul" }
|
|
1629
|
+
},
|
|
1630
|
+
setup(__props) {
|
|
1631
|
+
const props = __props;
|
|
1632
|
+
const forwarded = useForwardPropsWithout(props, ["size", "color"]);
|
|
1633
|
+
const resetClass = buildPropsClass(props, ["size"]);
|
|
1634
|
+
const { size, color } = toRefs(props);
|
|
1635
|
+
provideSidebarMenuContext({ size, color });
|
|
1636
|
+
return (_ctx, _cache) => {
|
|
1637
|
+
return openBlock(), createBlock(unref(Primitive), mergeProps(unref(forwarded), {
|
|
1638
|
+
class: ["ui-SidebarMenu", unref(resetClass)],
|
|
1639
|
+
"data-accent-color": props.color
|
|
1640
|
+
}), {
|
|
1641
|
+
default: withCtx(() => [
|
|
1642
|
+
renderSlot(_ctx.$slots, "default")
|
|
1643
|
+
]),
|
|
1644
|
+
_: 3
|
|
1645
|
+
}, 16, ["class", "data-accent-color"]);
|
|
1646
|
+
};
|
|
1647
|
+
}
|
|
1648
|
+
});
|
|
1649
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
1650
|
+
__name: "SidebarMenuItem",
|
|
1651
|
+
props: {
|
|
1652
|
+
asChild: { type: Boolean },
|
|
1653
|
+
as: { default: "li" }
|
|
1654
|
+
},
|
|
1655
|
+
setup(__props) {
|
|
1656
|
+
const props = __props;
|
|
1657
|
+
return (_ctx, _cache) => {
|
|
1658
|
+
return openBlock(), createBlock(unref(Primitive), {
|
|
1659
|
+
class: "ui-SidebarMenuItem",
|
|
1660
|
+
as: props.as,
|
|
1661
|
+
"as-child": props.asChild
|
|
1662
|
+
}, {
|
|
1663
|
+
default: withCtx(() => [
|
|
1664
|
+
renderSlot(_ctx.$slots, "default")
|
|
1665
|
+
]),
|
|
1666
|
+
_: 3
|
|
1667
|
+
}, 8, ["as", "as-child"]);
|
|
1668
|
+
};
|
|
1669
|
+
}
|
|
1670
|
+
});
|
|
1671
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
1672
|
+
__name: "SidebarMenuButtonContent",
|
|
1673
|
+
props: {
|
|
1674
|
+
icon: {},
|
|
1675
|
+
text: {},
|
|
1676
|
+
trailingIcon: {},
|
|
1677
|
+
isSub: { type: Boolean, default: false }
|
|
1678
|
+
},
|
|
1679
|
+
setup(__props) {
|
|
1680
|
+
const props = __props;
|
|
1681
|
+
const part = computed(() => props.isSub ? "ui-SidebarMenuSubButton" : "ui-SidebarMenuButton");
|
|
1682
|
+
return (_ctx, _cache) => {
|
|
1683
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
1684
|
+
_ctx.$slots.icon || props.icon ? (openBlock(), createElementBlock("span", {
|
|
1685
|
+
key: 0,
|
|
1686
|
+
class: normalizeClass(`${part.value}Icon`)
|
|
1687
|
+
}, [
|
|
1688
|
+
renderSlot(_ctx.$slots, "icon", {}, () => [
|
|
1689
|
+
createVNode(unref(Icon), {
|
|
1690
|
+
class: normalizeClass(`${part.value}IconGraphic`),
|
|
1691
|
+
icon: props.icon,
|
|
1692
|
+
"aria-hidden": "true"
|
|
1693
|
+
}, null, 8, ["class", "icon"])
|
|
1694
|
+
])
|
|
1695
|
+
], 2)) : createCommentVNode("", true),
|
|
1696
|
+
_ctx.$slots.text || _ctx.$slots.default || props.text ? (openBlock(), createElementBlock("span", {
|
|
1697
|
+
key: 1,
|
|
1698
|
+
class: normalizeClass(`${part.value}Text`)
|
|
1699
|
+
}, [
|
|
1700
|
+
renderSlot(_ctx.$slots, "text", {}, () => [
|
|
1701
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
1702
|
+
createTextVNode(toDisplayString(props.text), 1)
|
|
1703
|
+
])
|
|
1704
|
+
])
|
|
1705
|
+
], 2)) : createCommentVNode("", true),
|
|
1706
|
+
_ctx.$slots.trailing || props.trailingIcon ? (openBlock(), createElementBlock("span", {
|
|
1707
|
+
key: 2,
|
|
1708
|
+
class: normalizeClass(`${part.value}Trailing`)
|
|
1709
|
+
}, [
|
|
1710
|
+
renderSlot(_ctx.$slots, "trailing", {}, () => [
|
|
1711
|
+
createVNode(unref(Icon), {
|
|
1712
|
+
class: normalizeClass(`${part.value}TrailingIcon`),
|
|
1713
|
+
icon: props.trailingIcon,
|
|
1714
|
+
"aria-hidden": "true"
|
|
1715
|
+
}, null, 8, ["class", "icon"])
|
|
1716
|
+
])
|
|
1717
|
+
], 2)) : createCommentVNode("", true)
|
|
1718
|
+
], 64);
|
|
1719
|
+
};
|
|
1720
|
+
}
|
|
1721
|
+
});
|
|
1722
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
1723
|
+
...{ inheritAttrs: false },
|
|
1724
|
+
__name: "SidebarMenuButton",
|
|
1725
|
+
props: {
|
|
1726
|
+
icon: {},
|
|
1727
|
+
text: {},
|
|
1728
|
+
trailingIcon: {},
|
|
1729
|
+
active: { type: Boolean, default: false },
|
|
1730
|
+
disabled: { type: Boolean, default: false },
|
|
1731
|
+
tooltip: { type: [String, Boolean] },
|
|
1732
|
+
asChild: { type: Boolean },
|
|
1733
|
+
as: { default: "button" }
|
|
1734
|
+
},
|
|
1735
|
+
setup(__props) {
|
|
1736
|
+
const props = __props;
|
|
1737
|
+
const context = injectSidebarContext();
|
|
1738
|
+
injectSidebarMenuContext();
|
|
1739
|
+
const tooltip = computed(() => props.tooltip === false ? void 0 : props.tooltip ?? props.text);
|
|
1740
|
+
const showTooltip = computed(() => Boolean(tooltip.value) && !props.disabled && !context.isMobile.value && context.collapsible.value === "icon" && context.collapsed.value);
|
|
1741
|
+
const tooltipSide = computed(() => context.side.value === "left" ? "right" : "left");
|
|
1742
|
+
function preventDisabled(event) {
|
|
1743
|
+
if (!props.disabled)
|
|
1744
|
+
return;
|
|
1745
|
+
event.preventDefault();
|
|
1746
|
+
event.stopImmediatePropagation();
|
|
1747
|
+
}
|
|
1748
|
+
return (_ctx, _cache) => {
|
|
1749
|
+
return showTooltip.value ? (openBlock(), createBlock(_sfc_main$1h, {
|
|
1750
|
+
key: 0,
|
|
1751
|
+
"as-child": "",
|
|
1752
|
+
content: tooltip.value,
|
|
1753
|
+
side: tooltipSide.value,
|
|
1754
|
+
"side-offset": 8
|
|
1755
|
+
}, {
|
|
1756
|
+
default: withCtx(() => [
|
|
1757
|
+
createVNode(unref(Primitive), mergeProps(_ctx.$attrs, {
|
|
1758
|
+
class: "ui-SidebarMenuButton",
|
|
1759
|
+
as: props.as,
|
|
1760
|
+
"as-child": props.asChild,
|
|
1761
|
+
type: props.as === "button" && !props.asChild ? "button" : void 0,
|
|
1762
|
+
disabled: props.disabled && props.as === "button" && !props.asChild ? true : void 0,
|
|
1763
|
+
"data-active": props.active ? true : void 0,
|
|
1764
|
+
"data-disabled": props.disabled ? true : void 0,
|
|
1765
|
+
"aria-disabled": props.disabled ? true : void 0,
|
|
1766
|
+
onClick: preventDisabled
|
|
1767
|
+
}), {
|
|
1768
|
+
default: withCtx(() => [
|
|
1769
|
+
props.asChild ? renderSlot(_ctx.$slots, "default", {}, void 0, void 0, 0) : (openBlock(), createBlock(_sfc_main$S, {
|
|
1770
|
+
key: 1,
|
|
1771
|
+
icon: props.icon,
|
|
1772
|
+
text: props.text,
|
|
1773
|
+
"trailing-icon": props.trailingIcon
|
|
1774
|
+
}, createSlots({ _: 2 }, [
|
|
1775
|
+
_ctx.$slots.icon ? {
|
|
1776
|
+
name: "icon",
|
|
1777
|
+
fn: withCtx(() => [
|
|
1778
|
+
renderSlot(_ctx.$slots, "icon")
|
|
1779
|
+
]),
|
|
1780
|
+
key: "0"
|
|
1781
|
+
} : void 0,
|
|
1782
|
+
_ctx.$slots.text ? {
|
|
1783
|
+
name: "text",
|
|
1784
|
+
fn: withCtx(() => [
|
|
1785
|
+
renderSlot(_ctx.$slots, "text")
|
|
1786
|
+
]),
|
|
1787
|
+
key: "1"
|
|
1788
|
+
} : void 0,
|
|
1789
|
+
_ctx.$slots.default ? {
|
|
1790
|
+
name: "default",
|
|
1791
|
+
fn: withCtx(() => [
|
|
1792
|
+
renderSlot(_ctx.$slots, "default")
|
|
1793
|
+
]),
|
|
1794
|
+
key: "2"
|
|
1795
|
+
} : void 0,
|
|
1796
|
+
_ctx.$slots.trailing ? {
|
|
1797
|
+
name: "trailing",
|
|
1798
|
+
fn: withCtx(() => [
|
|
1799
|
+
renderSlot(_ctx.$slots, "trailing")
|
|
1800
|
+
]),
|
|
1801
|
+
key: "3"
|
|
1802
|
+
} : void 0
|
|
1803
|
+
]), 1032, ["icon", "text", "trailing-icon"]))
|
|
1804
|
+
]),
|
|
1805
|
+
_: 3
|
|
1806
|
+
}, 16, ["as", "as-child", "type", "disabled", "data-active", "data-disabled", "aria-disabled"])
|
|
1807
|
+
]),
|
|
1808
|
+
_: 3
|
|
1809
|
+
}, 8, ["content", "side"])) : (openBlock(), createBlock(unref(Primitive), mergeProps({ key: 1 }, _ctx.$attrs, {
|
|
1810
|
+
class: "ui-SidebarMenuButton",
|
|
1811
|
+
as: props.as,
|
|
1812
|
+
"as-child": props.asChild,
|
|
1813
|
+
type: props.as === "button" && !props.asChild ? "button" : void 0,
|
|
1814
|
+
disabled: props.disabled && props.as === "button" && !props.asChild ? true : void 0,
|
|
1815
|
+
"data-active": props.active ? true : void 0,
|
|
1816
|
+
"data-disabled": props.disabled ? true : void 0,
|
|
1817
|
+
"aria-disabled": props.disabled ? true : void 0,
|
|
1818
|
+
onClick: preventDisabled
|
|
1819
|
+
}), {
|
|
1820
|
+
default: withCtx(() => [
|
|
1821
|
+
props.asChild ? renderSlot(_ctx.$slots, "default", {}, void 0, void 0, 0) : (openBlock(), createBlock(_sfc_main$S, {
|
|
1822
|
+
key: 1,
|
|
1823
|
+
icon: props.icon,
|
|
1824
|
+
text: props.text,
|
|
1825
|
+
"trailing-icon": props.trailingIcon
|
|
1826
|
+
}, createSlots({ _: 2 }, [
|
|
1827
|
+
_ctx.$slots.icon ? {
|
|
1828
|
+
name: "icon",
|
|
1829
|
+
fn: withCtx(() => [
|
|
1830
|
+
renderSlot(_ctx.$slots, "icon")
|
|
1831
|
+
]),
|
|
1832
|
+
key: "0"
|
|
1833
|
+
} : void 0,
|
|
1834
|
+
_ctx.$slots.text ? {
|
|
1835
|
+
name: "text",
|
|
1836
|
+
fn: withCtx(() => [
|
|
1837
|
+
renderSlot(_ctx.$slots, "text")
|
|
1838
|
+
]),
|
|
1839
|
+
key: "1"
|
|
1840
|
+
} : void 0,
|
|
1841
|
+
_ctx.$slots.default ? {
|
|
1842
|
+
name: "default",
|
|
1843
|
+
fn: withCtx(() => [
|
|
1844
|
+
renderSlot(_ctx.$slots, "default")
|
|
1845
|
+
]),
|
|
1846
|
+
key: "2"
|
|
1847
|
+
} : void 0,
|
|
1848
|
+
_ctx.$slots.trailing ? {
|
|
1849
|
+
name: "trailing",
|
|
1850
|
+
fn: withCtx(() => [
|
|
1851
|
+
renderSlot(_ctx.$slots, "trailing")
|
|
1852
|
+
]),
|
|
1853
|
+
key: "3"
|
|
1854
|
+
} : void 0
|
|
1855
|
+
]), 1032, ["icon", "text", "trailing-icon"]))
|
|
1856
|
+
]),
|
|
1857
|
+
_: 3
|
|
1858
|
+
}, 16, ["as", "as-child", "type", "disabled", "data-active", "data-disabled", "aria-disabled"]));
|
|
1859
|
+
};
|
|
1860
|
+
}
|
|
1861
|
+
});
|
|
1862
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
1863
|
+
__name: "SidebarMenuSub",
|
|
1864
|
+
props: {
|
|
1865
|
+
asChild: { type: Boolean },
|
|
1866
|
+
as: { default: "ul" }
|
|
1867
|
+
},
|
|
1868
|
+
setup(__props) {
|
|
1869
|
+
const props = __props;
|
|
1870
|
+
return (_ctx, _cache) => {
|
|
1871
|
+
return openBlock(), createBlock(unref(Primitive), {
|
|
1872
|
+
class: "ui-SidebarMenuSub",
|
|
1873
|
+
as: props.as,
|
|
1874
|
+
"as-child": props.asChild
|
|
1875
|
+
}, {
|
|
1876
|
+
default: withCtx(() => [
|
|
1877
|
+
renderSlot(_ctx.$slots, "default")
|
|
1878
|
+
]),
|
|
1879
|
+
_: 3
|
|
1880
|
+
}, 8, ["as", "as-child"]);
|
|
1881
|
+
};
|
|
1882
|
+
}
|
|
1883
|
+
});
|
|
1884
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
1885
|
+
__name: "SidebarMenuSubItem",
|
|
1886
|
+
props: {
|
|
1887
|
+
asChild: { type: Boolean },
|
|
1888
|
+
as: { default: "li" }
|
|
1889
|
+
},
|
|
1890
|
+
setup(__props) {
|
|
1891
|
+
const props = __props;
|
|
1892
|
+
return (_ctx, _cache) => {
|
|
1893
|
+
return openBlock(), createBlock(unref(Primitive), {
|
|
1894
|
+
class: "ui-SidebarMenuSubItem",
|
|
1895
|
+
as: props.as,
|
|
1896
|
+
"as-child": props.asChild
|
|
1897
|
+
}, {
|
|
1898
|
+
default: withCtx(() => [
|
|
1899
|
+
renderSlot(_ctx.$slots, "default")
|
|
1900
|
+
]),
|
|
1901
|
+
_: 3
|
|
1902
|
+
}, 8, ["as", "as-child"]);
|
|
1903
|
+
};
|
|
1904
|
+
}
|
|
1905
|
+
});
|
|
1906
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
1907
|
+
...{ inheritAttrs: false },
|
|
1908
|
+
__name: "SidebarMenuSubButton",
|
|
1909
|
+
props: {
|
|
1910
|
+
icon: {},
|
|
1911
|
+
text: {},
|
|
1912
|
+
trailingIcon: {},
|
|
1913
|
+
active: { type: Boolean, default: false },
|
|
1914
|
+
disabled: { type: Boolean, default: false },
|
|
1915
|
+
asChild: { type: Boolean },
|
|
1916
|
+
as: { default: "button" }
|
|
1917
|
+
},
|
|
1918
|
+
setup(__props) {
|
|
1919
|
+
const props = __props;
|
|
1920
|
+
injectSidebarMenuContext();
|
|
1921
|
+
function preventDisabled(event) {
|
|
1922
|
+
if (!props.disabled)
|
|
1923
|
+
return;
|
|
1924
|
+
event.preventDefault();
|
|
1925
|
+
event.stopImmediatePropagation();
|
|
1926
|
+
}
|
|
1927
|
+
return (_ctx, _cache) => {
|
|
1928
|
+
return openBlock(), createBlock(unref(Primitive), mergeProps(_ctx.$attrs, {
|
|
1929
|
+
class: "ui-SidebarMenuSubButton",
|
|
1930
|
+
as: props.as,
|
|
1931
|
+
"as-child": props.asChild,
|
|
1932
|
+
type: props.as === "button" && !props.asChild ? "button" : void 0,
|
|
1933
|
+
disabled: props.disabled && props.as === "button" && !props.asChild ? true : void 0,
|
|
1934
|
+
"data-active": props.active ? true : void 0,
|
|
1935
|
+
"data-disabled": props.disabled ? true : void 0,
|
|
1936
|
+
"aria-disabled": props.disabled ? true : void 0,
|
|
1937
|
+
onClick: preventDisabled
|
|
1938
|
+
}), {
|
|
1939
|
+
default: withCtx(() => [
|
|
1940
|
+
props.asChild ? renderSlot(_ctx.$slots, "default", {}, void 0, void 0, 0) : (openBlock(), createBlock(_sfc_main$S, {
|
|
1941
|
+
key: 1,
|
|
1942
|
+
"is-sub": "",
|
|
1943
|
+
icon: props.icon,
|
|
1944
|
+
text: props.text,
|
|
1945
|
+
"trailing-icon": props.trailingIcon
|
|
1946
|
+
}, createSlots({ _: 2 }, [
|
|
1947
|
+
_ctx.$slots.icon ? {
|
|
1948
|
+
name: "icon",
|
|
1949
|
+
fn: withCtx(() => [
|
|
1950
|
+
renderSlot(_ctx.$slots, "icon")
|
|
1951
|
+
]),
|
|
1952
|
+
key: "0"
|
|
1953
|
+
} : void 0,
|
|
1954
|
+
_ctx.$slots.text ? {
|
|
1955
|
+
name: "text",
|
|
1956
|
+
fn: withCtx(() => [
|
|
1957
|
+
renderSlot(_ctx.$slots, "text")
|
|
1958
|
+
]),
|
|
1959
|
+
key: "1"
|
|
1960
|
+
} : void 0,
|
|
1961
|
+
_ctx.$slots.default ? {
|
|
1962
|
+
name: "default",
|
|
1963
|
+
fn: withCtx(() => [
|
|
1964
|
+
renderSlot(_ctx.$slots, "default")
|
|
1965
|
+
]),
|
|
1966
|
+
key: "2"
|
|
1967
|
+
} : void 0,
|
|
1968
|
+
_ctx.$slots.trailing ? {
|
|
1969
|
+
name: "trailing",
|
|
1970
|
+
fn: withCtx(() => [
|
|
1971
|
+
renderSlot(_ctx.$slots, "trailing")
|
|
1972
|
+
]),
|
|
1973
|
+
key: "3"
|
|
1974
|
+
} : void 0
|
|
1975
|
+
]), 1032, ["icon", "text", "trailing-icon"]))
|
|
1976
|
+
]),
|
|
1977
|
+
_: 3
|
|
1978
|
+
}, 16, ["as", "as-child", "type", "disabled", "data-active", "data-disabled", "aria-disabled"]);
|
|
1979
|
+
};
|
|
1980
|
+
}
|
|
1981
|
+
});
|
|
1982
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
1107
1983
|
__name: "Switch",
|
|
1108
1984
|
props: {
|
|
1109
1985
|
color: {},
|
|
@@ -1111,11 +1987,13 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
1111
1987
|
size: { default: "2" },
|
|
1112
1988
|
highContrast: { type: Boolean },
|
|
1113
1989
|
radius: {},
|
|
1114
|
-
defaultValue: {
|
|
1115
|
-
modelValue: {
|
|
1990
|
+
defaultValue: {},
|
|
1991
|
+
modelValue: {},
|
|
1116
1992
|
disabled: { type: Boolean },
|
|
1117
1993
|
id: {},
|
|
1118
1994
|
value: {},
|
|
1995
|
+
trueValue: {},
|
|
1996
|
+
falseValue: {},
|
|
1119
1997
|
asChild: { type: Boolean },
|
|
1120
1998
|
as: {},
|
|
1121
1999
|
name: {},
|
|
@@ -1165,18 +2043,20 @@ const _hoisted_3$2 = {
|
|
|
1165
2043
|
clipRule: "evenodd",
|
|
1166
2044
|
d: "M8.53547 0.62293C8.88226 0.849446 8.97976 1.3142 8.75325 1.66099L4.5083 8.1599C4.38833 8.34356 4.19397 8.4655 3.9764 8.49358C3.75883 8.52167 3.53987 8.45309 3.3772 8.30591L0.616113 5.80777C0.308959 5.52987 0.285246 5.05559 0.563148 4.74844C0.84105 4.44128 1.31533 4.41757 1.62249 4.69547L3.73256 6.60459L7.49741 0.840706C7.72393 0.493916 8.18868 0.396414 8.53547 0.62293Z"
|
|
1167
2045
|
};
|
|
1168
|
-
const _sfc_main$
|
|
2046
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
1169
2047
|
__name: "Checkbox",
|
|
1170
2048
|
props: {
|
|
1171
2049
|
color: {},
|
|
1172
2050
|
variant: { default: "surface" },
|
|
1173
2051
|
size: { default: "2" },
|
|
1174
2052
|
highContrast: { type: Boolean },
|
|
1175
|
-
defaultValue: {
|
|
1176
|
-
modelValue: {
|
|
2053
|
+
defaultValue: {},
|
|
2054
|
+
modelValue: {},
|
|
1177
2055
|
disabled: { type: Boolean },
|
|
1178
2056
|
value: {},
|
|
1179
2057
|
id: {},
|
|
2058
|
+
trueValue: {},
|
|
2059
|
+
falseValue: {},
|
|
1180
2060
|
asChild: { type: Boolean },
|
|
1181
2061
|
as: {},
|
|
1182
2062
|
name: {},
|
|
@@ -1211,7 +2091,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
1211
2091
|
};
|
|
1212
2092
|
}
|
|
1213
2093
|
});
|
|
1214
|
-
const _sfc_main$
|
|
2094
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
1215
2095
|
__name: "Toggle",
|
|
1216
2096
|
props: {
|
|
1217
2097
|
variant: { default: "soft" },
|
|
@@ -1247,7 +2127,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
1247
2127
|
};
|
|
1248
2128
|
}
|
|
1249
2129
|
});
|
|
1250
|
-
const _sfc_main$
|
|
2130
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
1251
2131
|
__name: "ToggleGroupRoot",
|
|
1252
2132
|
props: {
|
|
1253
2133
|
variant: { default: "solid" },
|
|
@@ -1288,7 +2168,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
1288
2168
|
};
|
|
1289
2169
|
}
|
|
1290
2170
|
});
|
|
1291
|
-
const _sfc_main$
|
|
2171
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
1292
2172
|
__name: "ToggleGroupItem",
|
|
1293
2173
|
props: {
|
|
1294
2174
|
value: {},
|
|
@@ -1322,7 +2202,7 @@ const _hoisted_5 = {
|
|
|
1322
2202
|
class: "ui-TextFieldSlot",
|
|
1323
2203
|
"data-side": "right"
|
|
1324
2204
|
};
|
|
1325
|
-
const _sfc_main$
|
|
2205
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
1326
2206
|
...{
|
|
1327
2207
|
inheritAttrs: false
|
|
1328
2208
|
},
|
|
@@ -1407,7 +2287,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
1407
2287
|
}
|
|
1408
2288
|
});
|
|
1409
2289
|
const _hoisted_1$p = ["data-accent-color", "data-radius"];
|
|
1410
|
-
const _sfc_main$
|
|
2290
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
1411
2291
|
...{
|
|
1412
2292
|
inheritAttrs: false
|
|
1413
2293
|
},
|
|
@@ -1446,7 +2326,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
1446
2326
|
}
|
|
1447
2327
|
});
|
|
1448
2328
|
const _hoisted_1$o = ["id"];
|
|
1449
|
-
const _sfc_main$
|
|
2329
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
1450
2330
|
__name: "ColorField",
|
|
1451
2331
|
props: /* @__PURE__ */ mergeModels({
|
|
1452
2332
|
id: {},
|
|
@@ -1491,6 +2371,76 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
1491
2371
|
};
|
|
1492
2372
|
}
|
|
1493
2373
|
});
|
|
2374
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
2375
|
+
__name: "PinInputRoot",
|
|
2376
|
+
props: {
|
|
2377
|
+
size: { default: "2" },
|
|
2378
|
+
variant: { default: "surface" },
|
|
2379
|
+
color: {},
|
|
2380
|
+
radius: {},
|
|
2381
|
+
modelValue: {},
|
|
2382
|
+
defaultValue: {},
|
|
2383
|
+
placeholder: {},
|
|
2384
|
+
mask: { type: Boolean },
|
|
2385
|
+
otp: { type: Boolean },
|
|
2386
|
+
type: {},
|
|
2387
|
+
dir: {},
|
|
2388
|
+
disabled: { type: Boolean },
|
|
2389
|
+
id: {},
|
|
2390
|
+
asChild: { type: Boolean },
|
|
2391
|
+
as: {},
|
|
2392
|
+
name: {},
|
|
2393
|
+
required: { type: Boolean }
|
|
2394
|
+
},
|
|
2395
|
+
emits: ["update:modelValue", "complete"],
|
|
2396
|
+
setup(__props, { emit: __emit }) {
|
|
2397
|
+
const props = __props;
|
|
2398
|
+
const emits = __emit;
|
|
2399
|
+
const asPinInputValue = (value) => value;
|
|
2400
|
+
const forwarded = useForwardPropsEmitsWithout(
|
|
2401
|
+
props,
|
|
2402
|
+
emits,
|
|
2403
|
+
["size", "variant", "color", "radius"]
|
|
2404
|
+
);
|
|
2405
|
+
const resetClass = buildPropsClass(props, ["size", "variant"]);
|
|
2406
|
+
return (_ctx, _cache) => {
|
|
2407
|
+
return openBlock(), createBlock(unref(PinInputRoot), mergeProps(unref(forwarded), {
|
|
2408
|
+
class: ["ui-PinInputRoot", unref(resetClass)],
|
|
2409
|
+
"data-accent-color": props.color,
|
|
2410
|
+
"data-radius": props.radius
|
|
2411
|
+
}), {
|
|
2412
|
+
default: withCtx(({ modelValue }) => [
|
|
2413
|
+
renderSlot(_ctx.$slots, "default", {
|
|
2414
|
+
modelValue: asPinInputValue(modelValue)
|
|
2415
|
+
})
|
|
2416
|
+
]),
|
|
2417
|
+
_: 3
|
|
2418
|
+
}, 16, ["class", "data-accent-color", "data-radius"]);
|
|
2419
|
+
};
|
|
2420
|
+
}
|
|
2421
|
+
});
|
|
2422
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
2423
|
+
__name: "PinInputInput",
|
|
2424
|
+
props: {
|
|
2425
|
+
index: {},
|
|
2426
|
+
disabled: { type: Boolean },
|
|
2427
|
+
asChild: { type: Boolean },
|
|
2428
|
+
as: { default: "input" }
|
|
2429
|
+
},
|
|
2430
|
+
setup(__props) {
|
|
2431
|
+
const props = __props;
|
|
2432
|
+
const forwarded = useForwardProps(props);
|
|
2433
|
+
useForwardExpose();
|
|
2434
|
+
return (_ctx, _cache) => {
|
|
2435
|
+
return openBlock(), createBlock(unref(PinInputInput), mergeProps({ class: "ui-PinInputInput" }, unref(forwarded)), {
|
|
2436
|
+
default: withCtx(() => [
|
|
2437
|
+
renderSlot(_ctx.$slots, "default")
|
|
2438
|
+
]),
|
|
2439
|
+
_: 3
|
|
2440
|
+
}, 16);
|
|
2441
|
+
};
|
|
2442
|
+
}
|
|
2443
|
+
});
|
|
1494
2444
|
const [injectSelectRootContext, provideSelectRootContext] = createContext("ui:SelectRoot");
|
|
1495
2445
|
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
1496
2446
|
__name: "SelectRoot",
|
|
@@ -1502,6 +2452,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
1502
2452
|
defaultOpen: { type: Boolean },
|
|
1503
2453
|
defaultValue: {},
|
|
1504
2454
|
modelValue: {},
|
|
2455
|
+
nullableValue: {},
|
|
1505
2456
|
by: {},
|
|
1506
2457
|
dir: {},
|
|
1507
2458
|
multiple: { type: Boolean },
|
|
@@ -1541,6 +2492,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
1541
2492
|
forceMount: { type: Boolean },
|
|
1542
2493
|
position: {},
|
|
1543
2494
|
bodyLock: { type: Boolean },
|
|
2495
|
+
memoDependencies: {},
|
|
1544
2496
|
side: {},
|
|
1545
2497
|
sideOffset: {},
|
|
1546
2498
|
sideFlip: { type: Boolean },
|
|
@@ -1551,6 +2503,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
1551
2503
|
collisionBoundary: {},
|
|
1552
2504
|
collisionPadding: {},
|
|
1553
2505
|
arrowPadding: {},
|
|
2506
|
+
hideShiftedArrow: { type: Boolean },
|
|
1554
2507
|
sticky: {},
|
|
1555
2508
|
hideWhenDetached: { type: Boolean },
|
|
1556
2509
|
positionStrategy: {},
|
|
@@ -1558,8 +2511,10 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
1558
2511
|
disableUpdateOnLayoutShift: { type: Boolean },
|
|
1559
2512
|
prioritizePosition: { type: Boolean },
|
|
1560
2513
|
reference: {},
|
|
2514
|
+
dir: {},
|
|
1561
2515
|
asChild: { type: Boolean },
|
|
1562
|
-
as: {}
|
|
2516
|
+
as: {},
|
|
2517
|
+
disableOutsidePointerEvents: { type: Boolean }
|
|
1563
2518
|
},
|
|
1564
2519
|
setup(__props) {
|
|
1565
2520
|
const props = __props;
|
|
@@ -1579,7 +2534,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
1579
2534
|
return (_ctx, _cache) => {
|
|
1580
2535
|
return openBlock(), createBlock(unref(SelectPortal), null, {
|
|
1581
2536
|
default: withCtx(() => [
|
|
1582
|
-
createVNode(_sfc_main
|
|
2537
|
+
createVNode(_sfc_main$1i, {
|
|
1583
2538
|
"accent-color": unref(context).color.value
|
|
1584
2539
|
}, {
|
|
1585
2540
|
default: withCtx(() => [
|
|
@@ -1645,9 +2600,7 @@ function render$b(_ctx, _cache) {
|
|
|
1645
2600
|
return openBlock(), createElementBlock("svg", _hoisted_1$n, [..._cache[0] || (_cache[0] = [
|
|
1646
2601
|
createElementVNode("path", {
|
|
1647
2602
|
fill: "currentColor",
|
|
1648
|
-
"
|
|
1649
|
-
d: "M3.135 6.158a.5.5 0 0 1 .707-.023L7.5 9.565l3.658-3.43a.5.5 0 0 1 .684.73l-4 3.75a.5.5 0 0 1-.684 0l-4-3.75a.5.5 0 0 1-.023-.707",
|
|
1650
|
-
"clip-rule": "evenodd"
|
|
2603
|
+
d: "M11.158 6.135a.5.5 0 0 1 .684.73l-4 3.75a.5.5 0 0 1-.684 0l-4-3.75l-.066-.077a.5.5 0 0 1 .67-.715l.08.062L7.5 9.564z"
|
|
1651
2604
|
}, null, -1)
|
|
1652
2605
|
])]);
|
|
1653
2606
|
}
|
|
@@ -1684,12 +2637,11 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
1684
2637
|
}, {
|
|
1685
2638
|
default: withCtx(({ selectedLabel, modelValue }) => [
|
|
1686
2639
|
selectedLabel.length ? renderSlot(_ctx.$slots, "default", {
|
|
1687
|
-
key: 0,
|
|
1688
2640
|
selectedLabel,
|
|
1689
2641
|
modelValue
|
|
1690
2642
|
}, () => [
|
|
1691
2643
|
createTextVNode(toDisplayString(selectedLabel.join(", ")), 1)
|
|
1692
|
-
]) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
2644
|
+
], void 0, 0) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
1693
2645
|
createTextVNode(toDisplayString(props.placeholder), 1)
|
|
1694
2646
|
], 64))
|
|
1695
2647
|
]),
|
|
@@ -1712,9 +2664,7 @@ function render$a(_ctx, _cache) {
|
|
|
1712
2664
|
return openBlock(), createElementBlock("svg", _hoisted_1$l, [..._cache[0] || (_cache[0] = [
|
|
1713
2665
|
createElementVNode("path", {
|
|
1714
2666
|
fill: "currentColor",
|
|
1715
|
-
"
|
|
1716
|
-
d: "M11.467 3.727c.289.189.37.576.181.865l-4.25 6.5a.625.625 0 0 1-.944.12l-2.75-2.5a.625.625 0 0 1 .841-.925l2.208 2.007l3.849-5.886a.625.625 0 0 1 .865-.181",
|
|
1717
|
-
"clip-rule": "evenodd"
|
|
2667
|
+
d: "M10.602 3.908a.626.626 0 0 1 1.046.684l-4.25 6.5a.626.626 0 0 1-.944.12l-2.75-2.5l-.084-.094a.626.626 0 0 1 .823-.906l.103.075l2.207 2.006z"
|
|
1718
2668
|
}, null, -1)
|
|
1719
2669
|
])]);
|
|
1720
2670
|
}
|
|
@@ -1797,6 +2747,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
1797
2747
|
openOnFocus: { type: Boolean },
|
|
1798
2748
|
openOnClick: { type: Boolean },
|
|
1799
2749
|
ignoreFilter: { type: Boolean },
|
|
2750
|
+
resetModelValueOnClear: { type: Boolean },
|
|
1800
2751
|
modelValue: {},
|
|
1801
2752
|
defaultValue: {},
|
|
1802
2753
|
multiple: { type: Boolean, default: false },
|
|
@@ -1900,8 +2851,8 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
1900
2851
|
}, { deep: true });
|
|
1901
2852
|
return (_ctx, _cache) => {
|
|
1902
2853
|
return openBlock(), createBlock(unref(ComboboxAnchor), {
|
|
1903
|
-
class: normalizeClass(["ui-ComboboxField", `r-variant-${
|
|
1904
|
-
"data-radius":
|
|
2854
|
+
class: normalizeClass(["ui-ComboboxField", `r-variant-${__props.variant}`]),
|
|
2855
|
+
"data-radius": __props.radius,
|
|
1905
2856
|
"data-multiple": unref(context).multiple.value || void 0
|
|
1906
2857
|
}, {
|
|
1907
2858
|
default: withCtx(() => [
|
|
@@ -1965,6 +2916,8 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
1965
2916
|
forceMount: { type: Boolean },
|
|
1966
2917
|
position: { default: "popper" },
|
|
1967
2918
|
bodyLock: { type: Boolean },
|
|
2919
|
+
hideWhenEmpty: { type: Boolean },
|
|
2920
|
+
memoDependencies: {},
|
|
1968
2921
|
side: {},
|
|
1969
2922
|
sideOffset: { default: 5 },
|
|
1970
2923
|
sideFlip: { type: Boolean },
|
|
@@ -1975,6 +2928,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
1975
2928
|
collisionBoundary: {},
|
|
1976
2929
|
collisionPadding: {},
|
|
1977
2930
|
arrowPadding: {},
|
|
2931
|
+
hideShiftedArrow: { type: Boolean },
|
|
1978
2932
|
sticky: {},
|
|
1979
2933
|
hideWhenDetached: { type: Boolean },
|
|
1980
2934
|
positionStrategy: {},
|
|
@@ -1982,6 +2936,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
1982
2936
|
disableUpdateOnLayoutShift: { type: Boolean },
|
|
1983
2937
|
prioritizePosition: { type: Boolean },
|
|
1984
2938
|
reference: {},
|
|
2939
|
+
dir: {},
|
|
1985
2940
|
asChild: { type: Boolean },
|
|
1986
2941
|
as: {},
|
|
1987
2942
|
disableOutsidePointerEvents: { type: Boolean }
|
|
@@ -2003,7 +2958,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
2003
2958
|
return (_ctx, _cache) => {
|
|
2004
2959
|
return openBlock(), createBlock(unref(ComboboxPortal), null, {
|
|
2005
2960
|
default: withCtx(() => [
|
|
2006
|
-
createVNode(_sfc_main
|
|
2961
|
+
createVNode(_sfc_main$1i, {
|
|
2007
2962
|
"accent-color": unref(context).color.value
|
|
2008
2963
|
}, {
|
|
2009
2964
|
default: withCtx(() => [
|
|
@@ -2516,7 +3471,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
2516
3471
|
},
|
|
2517
3472
|
setup(__props) {
|
|
2518
3473
|
const props = __props;
|
|
2519
|
-
const id = useId(null, "accordion-item");
|
|
3474
|
+
const id = useId$1(null, "accordion-item");
|
|
2520
3475
|
const forwarded = computed(() => {
|
|
2521
3476
|
const refProps = useForwardProps(props);
|
|
2522
3477
|
if (!refProps.value.value) {
|
|
@@ -2569,9 +3524,7 @@ function render$9(_ctx, _cache) {
|
|
|
2569
3524
|
return openBlock(), createElementBlock("svg", _hoisted_1$f, [..._cache[0] || (_cache[0] = [
|
|
2570
3525
|
createElementVNode("path", {
|
|
2571
3526
|
fill: "currentColor",
|
|
2572
|
-
"
|
|
2573
|
-
d: "M6.158 3.135a.5.5 0 0 1 .707.023l3.75 4a.5.5 0 0 1 0 .684l-3.75 4a.5.5 0 1 1-.73-.684L9.566 7.5l-3.43-3.658a.5.5 0 0 1 .023-.707",
|
|
2574
|
-
"clip-rule": "evenodd"
|
|
3527
|
+
d: "M6.159 11.865a.5.5 0 0 0 .707-.023l3.75-4a.5.5 0 0 0 0-.684l-3.75-4l-.077-.066a.5.5 0 0 0-.715.67l.061.08L9.565 7.5l-3.43 3.658a.5.5 0 0 0 .024.707"
|
|
2575
3528
|
}, null, -1)
|
|
2576
3529
|
])]);
|
|
2577
3530
|
}
|
|
@@ -2589,11 +3542,11 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
2589
3542
|
setup(__props) {
|
|
2590
3543
|
return (_ctx, _cache) => {
|
|
2591
3544
|
return openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
2592
|
-
|
|
3545
|
+
__props.variant == "chevron" ? (openBlock(), createBlock(unref(NextIcon), {
|
|
2593
3546
|
key: 0,
|
|
2594
3547
|
class: "ui-AccordionIndicator-chevron"
|
|
2595
3548
|
})) : createCommentVNode("", true),
|
|
2596
|
-
|
|
3549
|
+
__props.variant == "plus" ? (openBlock(), createElementBlock("div", _hoisted_2$2, [..._cache[0] || (_cache[0] = [
|
|
2597
3550
|
createElementVNode("span", { class: "ui-AccordionIndicator-plus-1" }, null, -1),
|
|
2598
3551
|
createElementVNode("span", { class: "ui-AccordionIndicator-plus-2" }, null, -1)
|
|
2599
3552
|
])])) : createCommentVNode("", true)
|
|
@@ -2661,8 +3614,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
2661
3614
|
return openBlock(), createBlock(unref(CollapsibleRoot), mergeProps({
|
|
2662
3615
|
class: ["ui-CollapsibleRoot", unref(resetClass)]
|
|
2663
3616
|
}, unref(forwarded), {
|
|
2664
|
-
"data-accent-color":
|
|
2665
|
-
"data-radius":
|
|
3617
|
+
"data-accent-color": __props.color,
|
|
3618
|
+
"data-radius": __props.radius
|
|
2666
3619
|
}), {
|
|
2667
3620
|
default: withCtx(() => [
|
|
2668
3621
|
renderSlot(_ctx.$slots, "default")
|
|
@@ -2692,18 +3645,29 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2692
3645
|
const props = __props;
|
|
2693
3646
|
const forwarded = useForwardPropsWithout(props, ["indicator"]);
|
|
2694
3647
|
return (_ctx, _cache) => {
|
|
2695
|
-
return openBlock(), createBlock(unref(CollapsibleTrigger), mergeProps({
|
|
3648
|
+
return props.asChild ? (openBlock(), createBlock(unref(CollapsibleTrigger), mergeProps({
|
|
3649
|
+
key: 0,
|
|
3650
|
+
class: "ui-CollapsibleTrigger"
|
|
3651
|
+
}, unref(forwarded)), {
|
|
3652
|
+
default: withCtx(() => [
|
|
3653
|
+
renderSlot(_ctx.$slots, "default")
|
|
3654
|
+
]),
|
|
3655
|
+
_: 3
|
|
3656
|
+
}, 16)) : (openBlock(), createBlock(unref(CollapsibleTrigger), mergeProps({
|
|
3657
|
+
key: 1,
|
|
3658
|
+
class: "ui-CollapsibleTrigger"
|
|
3659
|
+
}, unref(forwarded)), {
|
|
2696
3660
|
default: withCtx(() => [
|
|
2697
3661
|
createElementVNode("span", _hoisted_1$c, [
|
|
2698
3662
|
renderSlot(_ctx.$slots, "default")
|
|
2699
3663
|
]),
|
|
2700
|
-
|
|
3664
|
+
__props.indicator !== "none" ? (openBlock(), createBlock(_sfc_main$b, {
|
|
2701
3665
|
key: 0,
|
|
2702
|
-
"data-side":
|
|
3666
|
+
"data-side": __props.indicator
|
|
2703
3667
|
}, null, 8, ["data-side"])) : createCommentVNode("", true)
|
|
2704
3668
|
]),
|
|
2705
3669
|
_: 3
|
|
2706
|
-
}, 16);
|
|
3670
|
+
}, 16));
|
|
2707
3671
|
};
|
|
2708
3672
|
}
|
|
2709
3673
|
});
|
|
@@ -2736,9 +3700,7 @@ function render$8(_ctx, _cache) {
|
|
|
2736
3700
|
return openBlock(), createElementBlock("svg", _hoisted_1$b, [..._cache[0] || (_cache[0] = [
|
|
2737
3701
|
createElementVNode("path", {
|
|
2738
3702
|
fill: "currentColor",
|
|
2739
|
-
"
|
|
2740
|
-
d: "M6.854 3.854a.5.5 0 1 0-.708-.708l-4 4a.5.5 0 0 0 0 .708l4 4a.5.5 0 0 0 .708-.708L3.207 7.5zm6 0a.5.5 0 0 0-.708-.708l-4 4a.5.5 0 0 0 0 .708l4 4a.5.5 0 0 0 .708-.708L9.207 7.5z",
|
|
2741
|
-
"clip-rule": "evenodd"
|
|
3703
|
+
d: "M6.225 3.082a.5.5 0 0 1 .693.694l-.065.078L3.207 7.5l3.646 3.647l.065.078a.5.5 0 0 1-.693.693l-.079-.064l-4-4a.5.5 0 0 1 0-.707l4-4zm6 0a.5.5 0 0 1 .693.694l-.064.078L9.207 7.5l3.646 3.647l.065.078a.5.5 0 0 1-.693.693l-.079-.064l-4-4a.5.5 0 0 1 0-.707l4-4z"
|
|
2742
3704
|
}, null, -1)
|
|
2743
3705
|
])]);
|
|
2744
3706
|
}
|
|
@@ -2752,9 +3714,7 @@ function render$7(_ctx, _cache) {
|
|
|
2752
3714
|
return openBlock(), createElementBlock("svg", _hoisted_1$a, [..._cache[0] || (_cache[0] = [
|
|
2753
3715
|
createElementVNode("path", {
|
|
2754
3716
|
fill: "currentColor",
|
|
2755
|
-
"
|
|
2756
|
-
d: "M2.146 11.146a.5.5 0 0 0 .708.708l4-4a.5.5 0 0 0 0-.708l-4-4a.5.5 0 1 0-.708.708L5.793 7.5zm6 0a.5.5 0 0 0 .708.708l4-4a.5.5 0 0 0 0-.708l-4-4a.5.5 0 1 0-.708.708L11.793 7.5z",
|
|
2757
|
-
"clip-rule": "evenodd"
|
|
3717
|
+
d: "M2.147 3.147a.5.5 0 0 1 .629-.065l.078.065l4 4a.5.5 0 0 1 0 .707l-4 4l-.078.064a.5.5 0 0 1-.694-.693l.065-.078L5.793 7.5L2.147 3.854l-.065-.078a.5.5 0 0 1 .065-.63m6 0a.5.5 0 0 1 .629-.065l.078.065l4 4a.5.5 0 0 1 0 .707l-4 4l-.078.064a.5.5 0 0 1-.694-.693l.065-.078L11.793 7.5L8.147 3.854l-.065-.078a.5.5 0 0 1 .065-.63"
|
|
2758
3718
|
}, null, -1)
|
|
2759
3719
|
])]);
|
|
2760
3720
|
}
|
|
@@ -2768,9 +3728,7 @@ function render$6(_ctx, _cache) {
|
|
|
2768
3728
|
return openBlock(), createElementBlock("svg", _hoisted_1$9, [..._cache[0] || (_cache[0] = [
|
|
2769
3729
|
createElementVNode("path", {
|
|
2770
3730
|
fill: "currentColor",
|
|
2771
|
-
"
|
|
2772
|
-
d: "M8.842 3.135a.5.5 0 0 1 .023.707L5.435 7.5l3.43 3.658a.5.5 0 0 1-.73.684l-3.75-4a.5.5 0 0 1 0-.684l3.75-4a.5.5 0 0 1 .707-.023",
|
|
2773
|
-
"clip-rule": "evenodd"
|
|
3731
|
+
d: "M8.212 3.092a.5.5 0 0 1 .715.67l-.062.08L5.435 7.5l3.43 3.658l.062.08a.501.501 0 0 1-.715.67l-.077-.066l-3.75-4a.5.5 0 0 1 0-.684l3.75-4z"
|
|
2774
3732
|
}, null, -1)
|
|
2775
3733
|
])]);
|
|
2776
3734
|
}
|
|
@@ -2784,9 +3742,7 @@ function render$5(_ctx, _cache) {
|
|
|
2784
3742
|
return openBlock(), createElementBlock("svg", _hoisted_1$8, [..._cache[0] || (_cache[0] = [
|
|
2785
3743
|
createElementVNode("path", {
|
|
2786
3744
|
fill: "currentColor",
|
|
2787
|
-
"
|
|
2788
|
-
d: "M3.625 7.5a1.125 1.125 0 1 1-2.25 0a1.125 1.125 0 0 1 2.25 0m5 0a1.125 1.125 0 1 1-2.25 0a1.125 1.125 0 0 1 2.25 0M12.5 8.625a1.125 1.125 0 1 0 0-2.25a1.125 1.125 0 0 0 0 2.25",
|
|
2789
|
-
"clip-rule": "evenodd"
|
|
3745
|
+
d: "M2.5 6.375a1.125 1.125 0 1 1 0 2.25a1.125 1.125 0 0 1 0-2.25m5 0a1.125 1.125 0 1 1 0 2.25a1.125 1.125 0 0 1 0-2.25m5 0a1.125 1.125 0 1 1 0 2.25a1.125 1.125 0 0 1 0-2.25"
|
|
2790
3746
|
}, null, -1)
|
|
2791
3747
|
])]);
|
|
2792
3748
|
}
|
|
@@ -2817,15 +3773,15 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2817
3773
|
class: "ui-PaginationEllipsis ui-Button",
|
|
2818
3774
|
as: "button",
|
|
2819
3775
|
type: "button",
|
|
2820
|
-
|
|
2821
|
-
|
|
3776
|
+
value: ellipsisPage.value,
|
|
3777
|
+
"aria-label": `Page ${ellipsisPage.value}`,
|
|
2822
3778
|
onClick: withModifiers(onSelect, ["prevent"])
|
|
2823
3779
|
}, {
|
|
2824
3780
|
default: withCtx(() => [
|
|
2825
3781
|
createVNode(unref(EllipsisIcon))
|
|
2826
3782
|
]),
|
|
2827
3783
|
_: 1
|
|
2828
|
-
}, 8, ["
|
|
3784
|
+
}, 8, ["value", "aria-label"]);
|
|
2829
3785
|
};
|
|
2830
3786
|
}
|
|
2831
3787
|
});
|
|
@@ -2865,7 +3821,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2865
3821
|
return (_ctx, _cache) => {
|
|
2866
3822
|
return openBlock(), createBlock(unref(PaginationRoot), mergeProps(unref(forwarded), {
|
|
2867
3823
|
class: ["ui-PaginationRoot", unref(resetClass)],
|
|
2868
|
-
"data-accent-color":
|
|
3824
|
+
"data-accent-color": __props.color
|
|
2869
3825
|
}), {
|
|
2870
3826
|
default: withCtx(() => [
|
|
2871
3827
|
createVNode(unref(PaginationList), { class: "ui-PaginationList" }, {
|
|
@@ -2940,13 +3896,13 @@ function createGlobalState(stateFactory) {
|
|
|
2940
3896
|
let initialized = false;
|
|
2941
3897
|
let state;
|
|
2942
3898
|
const scope = effectScope(true);
|
|
2943
|
-
return (...args) => {
|
|
3899
|
+
return ((...args) => {
|
|
2944
3900
|
if (!initialized) {
|
|
2945
3901
|
state = scope.run(() => stateFactory(...args));
|
|
2946
3902
|
initialized = true;
|
|
2947
3903
|
}
|
|
2948
3904
|
return state;
|
|
2949
|
-
};
|
|
3905
|
+
});
|
|
2950
3906
|
}
|
|
2951
3907
|
typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
|
|
2952
3908
|
let count = 0;
|
|
@@ -3156,18 +4112,18 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3156
4112
|
return openBlock(), createBlock(unref(ToastRoot), {
|
|
3157
4113
|
ref_key: "toastRef",
|
|
3158
4114
|
ref: toastRef,
|
|
3159
|
-
key:
|
|
4115
|
+
key: __props.message.id,
|
|
3160
4116
|
class: "ui-ToastItem",
|
|
3161
|
-
duration:
|
|
4117
|
+
duration: __props.message.duration,
|
|
3162
4118
|
"data-expanded": paused.value,
|
|
3163
|
-
"data-visible":
|
|
4119
|
+
"data-visible": __props.index < 3,
|
|
3164
4120
|
style: normalizeStyle(styleVars.value),
|
|
3165
4121
|
"onUpdate:open": onOpenChange,
|
|
3166
4122
|
onPause,
|
|
3167
4123
|
onResume
|
|
3168
4124
|
}, {
|
|
3169
4125
|
default: withCtx(() => [
|
|
3170
|
-
|
|
4126
|
+
__props.message.category ? (openBlock(), createElementBlock("div", {
|
|
3171
4127
|
key: 0,
|
|
3172
4128
|
class: "ui-ToastIcon",
|
|
3173
4129
|
"data-accent-color": categoryColor.value
|
|
@@ -3177,36 +4133,36 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3177
4133
|
createElementVNode("div", _hoisted_2$1, [
|
|
3178
4134
|
createVNode(unref(ToastTitle), { class: "ui-ToastTitle" }, {
|
|
3179
4135
|
default: withCtx(() => [
|
|
3180
|
-
createTextVNode(toDisplayString(
|
|
4136
|
+
createTextVNode(toDisplayString(__props.message.title), 1)
|
|
3181
4137
|
]),
|
|
3182
4138
|
_: 1
|
|
3183
4139
|
}),
|
|
3184
|
-
|
|
4140
|
+
__props.message.description ? (openBlock(), createBlock(unref(ToastDescription), {
|
|
3185
4141
|
key: 0,
|
|
3186
4142
|
class: "ui-ToastDescription"
|
|
3187
4143
|
}, {
|
|
3188
4144
|
default: withCtx(() => [
|
|
3189
|
-
createTextVNode(toDisplayString(
|
|
4145
|
+
createTextVNode(toDisplayString(__props.message.description), 1)
|
|
3190
4146
|
]),
|
|
3191
4147
|
_: 1
|
|
3192
4148
|
})) : createCommentVNode("", true)
|
|
3193
4149
|
]),
|
|
3194
|
-
|
|
4150
|
+
__props.message.action ? (openBlock(), createBlock(unref(ToastAction), {
|
|
3195
4151
|
key: 1,
|
|
3196
4152
|
class: "ui-ToastAction",
|
|
3197
|
-
"alt-text":
|
|
4153
|
+
"alt-text": __props.message.action.altText || __props.message.action.label,
|
|
3198
4154
|
"as-child": "",
|
|
3199
|
-
onClick:
|
|
4155
|
+
onClick: __props.message.action.onClick
|
|
3200
4156
|
}, {
|
|
3201
4157
|
default: withCtx(() => [
|
|
3202
|
-
createVNode(_sfc_main$
|
|
3203
|
-
variant:
|
|
3204
|
-
radius:
|
|
3205
|
-
size:
|
|
3206
|
-
color:
|
|
4158
|
+
createVNode(_sfc_main$1m, {
|
|
4159
|
+
variant: __props.message.action.variant || "soft",
|
|
4160
|
+
radius: __props.message.action.radius,
|
|
4161
|
+
size: __props.message.action.size || "1",
|
|
4162
|
+
color: __props.message.action.color
|
|
3207
4163
|
}, {
|
|
3208
4164
|
default: withCtx(() => [
|
|
3209
|
-
createTextVNode(toDisplayString(
|
|
4165
|
+
createTextVNode(toDisplayString(__props.message.action.label), 1)
|
|
3210
4166
|
]),
|
|
3211
4167
|
_: 1
|
|
3212
4168
|
}, 8, ["variant", "radius", "size", "color"])
|
|
@@ -3229,6 +4185,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3229
4185
|
position: { default: "bottom-right" },
|
|
3230
4186
|
label: {},
|
|
3231
4187
|
duration: {},
|
|
4188
|
+
disableSwipe: { type: Boolean },
|
|
3232
4189
|
swipeDirection: {},
|
|
3233
4190
|
swipeThreshold: {}
|
|
3234
4191
|
},
|
|
@@ -3272,10 +4229,10 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3272
4229
|
}), 128)),
|
|
3273
4230
|
createVNode(unref(ToastPortal), null, {
|
|
3274
4231
|
default: withCtx(() => [
|
|
3275
|
-
createVNode(_sfc_main
|
|
4232
|
+
createVNode(_sfc_main$1i, null, {
|
|
3276
4233
|
default: withCtx(() => [
|
|
3277
4234
|
createVNode(unref(ToastViewport), mergeProps({ class: "ui-ToastViewport" }, _ctx.$attrs, {
|
|
3278
|
-
class: `r-size-${
|
|
4235
|
+
class: `r-size-${__props.size}`,
|
|
3279
4236
|
"data-x-position": xPosition.value,
|
|
3280
4237
|
"data-y-position": yPosition.value
|
|
3281
4238
|
}), null, 16, ["class", "data-x-position", "data-y-position"])
|
|
@@ -3321,7 +4278,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3321
4278
|
"data-size": props.size,
|
|
3322
4279
|
"data-variant": props.variant
|
|
3323
4280
|
}, [
|
|
3324
|
-
createVNode(_sfc_main$
|
|
4281
|
+
createVNode(_sfc_main$1j, null, {
|
|
3325
4282
|
default: withCtx(() => [
|
|
3326
4283
|
createElementVNode("table", {
|
|
3327
4284
|
class: "ui-TableContent",
|
|
@@ -3430,11 +4387,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
3430
4387
|
const props = __props;
|
|
3431
4388
|
return (_ctx, _cache) => {
|
|
3432
4389
|
return openBlock(), createBlock(unref(Primitive), {
|
|
3433
|
-
class: normalizeClass(["ui-SavingIndicator", `r-size-${
|
|
4390
|
+
class: normalizeClass(["ui-SavingIndicator", `r-size-${__props.size}`]),
|
|
3434
4391
|
"data-status": props.status
|
|
3435
4392
|
}, {
|
|
3436
4393
|
default: withCtx(() => [
|
|
3437
|
-
renderSlot(_ctx.$slots, "default", { status:
|
|
4394
|
+
renderSlot(_ctx.$slots, "default", { status: __props.status }, () => [
|
|
3438
4395
|
props.status === "saving" ? (openBlock(), createBlock(SpinnerIcon, { key: 0 })) : props.status === "saved" ? (openBlock(), createBlock(unref(CheckIcon), { key: 1 })) : createCommentVNode("", true)
|
|
3439
4396
|
])
|
|
3440
4397
|
]),
|
|
@@ -3451,24 +4408,24 @@ export {
|
|
|
3451
4408
|
_sfc_main$d as AccordionTrigger,
|
|
3452
4409
|
AlertDialogAction,
|
|
3453
4410
|
AlertDialogCancel,
|
|
3454
|
-
_sfc_main$
|
|
3455
|
-
_sfc_main$
|
|
3456
|
-
_sfc_main$
|
|
4411
|
+
_sfc_main$1g as AlertDialogCancelButton,
|
|
4412
|
+
_sfc_main$1e as AlertDialogDescription,
|
|
4413
|
+
_sfc_main$1c as AlertDialogPopup,
|
|
3457
4414
|
AlertDialogRoot,
|
|
3458
|
-
_sfc_main$
|
|
4415
|
+
_sfc_main$1f as AlertDialogTitle,
|
|
3459
4416
|
AlertDialogTrigger,
|
|
3460
|
-
_sfc_main$
|
|
3461
|
-
_sfc_main$
|
|
3462
|
-
_sfc_main$
|
|
3463
|
-
_sfc_main$
|
|
3464
|
-
_sfc_main$
|
|
4417
|
+
_sfc_main$1p as Avatar,
|
|
4418
|
+
_sfc_main$1o as Badge,
|
|
4419
|
+
_sfc_main$1m as Button,
|
|
4420
|
+
_sfc_main$1n as Card,
|
|
4421
|
+
_sfc_main$M as Checkbox,
|
|
3465
4422
|
CheckboxGroupRoot as CheckboxGroup,
|
|
3466
|
-
_sfc_main$
|
|
4423
|
+
_sfc_main$1k as CloseButton,
|
|
3467
4424
|
_sfc_main$9 as CollapsibleContent,
|
|
3468
4425
|
_sfc_main$b as CollapsibleIndicator,
|
|
3469
4426
|
_sfc_main$c as CollapsibleRoot,
|
|
3470
4427
|
_sfc_main$a as CollapsibleTrigger,
|
|
3471
|
-
_sfc_main$
|
|
4428
|
+
_sfc_main$G as ColorField,
|
|
3472
4429
|
_sfc_main$v as ComboboxContent,
|
|
3473
4430
|
_sfc_main$s as ComboboxEmpty,
|
|
3474
4431
|
ComboboxGroup,
|
|
@@ -3477,28 +4434,30 @@ export {
|
|
|
3477
4434
|
_sfc_main$t as ComboboxLabel,
|
|
3478
4435
|
_sfc_main$x as ComboboxRoot,
|
|
3479
4436
|
DialogClose2 as DialogClose,
|
|
3480
|
-
_sfc_main$
|
|
3481
|
-
_sfc_main$
|
|
3482
|
-
_sfc_main$
|
|
3483
|
-
DialogRoot,
|
|
3484
|
-
_sfc_main$
|
|
4437
|
+
_sfc_main$1g as DialogCloseButton,
|
|
4438
|
+
_sfc_main$1e as DialogDescription,
|
|
4439
|
+
_sfc_main$1d as DialogPopup,
|
|
4440
|
+
DialogRoot2 as DialogRoot,
|
|
4441
|
+
_sfc_main$1f as DialogTitle,
|
|
3485
4442
|
DialogTrigger,
|
|
3486
|
-
_sfc_main$
|
|
3487
|
-
_sfc_main$
|
|
4443
|
+
_sfc_main$1b as DropdownMenuContent,
|
|
4444
|
+
_sfc_main$1a as DropdownMenuItem,
|
|
3488
4445
|
DropdownMenuRoot,
|
|
3489
4446
|
DropdownMenuSeparator,
|
|
3490
4447
|
DropdownMenuTrigger,
|
|
3491
4448
|
_sfc_main$i as Editable,
|
|
3492
|
-
_sfc_main$
|
|
3493
|
-
_sfc_main$
|
|
4449
|
+
_sfc_main$1l as IconButton,
|
|
4450
|
+
_sfc_main$13 as NavigationMenuContent,
|
|
3494
4451
|
NavigationMenuItem,
|
|
3495
|
-
_sfc_main$
|
|
3496
|
-
_sfc_main$
|
|
3497
|
-
_sfc_main$
|
|
3498
|
-
_sfc_main$
|
|
4452
|
+
_sfc_main$15 as NavigationMenuLink,
|
|
4453
|
+
_sfc_main$16 as NavigationMenuList,
|
|
4454
|
+
_sfc_main$17 as NavigationMenuRoot,
|
|
4455
|
+
_sfc_main$14 as NavigationMenuTrigger,
|
|
3499
4456
|
_sfc_main$7 as Pagination,
|
|
4457
|
+
_sfc_main$E as PinInputInput,
|
|
4458
|
+
_sfc_main$F as PinInputRoot,
|
|
3500
4459
|
PopoverClose,
|
|
3501
|
-
_sfc_main$
|
|
4460
|
+
_sfc_main$18 as PopoverPopup,
|
|
3502
4461
|
PopoverRoot,
|
|
3503
4462
|
PopoverTrigger,
|
|
3504
4463
|
_sfc_main$1 as Quota,
|
|
@@ -3510,7 +4469,7 @@ export {
|
|
|
3510
4469
|
_sfc_main$l as RadioTabsItem,
|
|
3511
4470
|
_sfc_main$m as RadioTabsRoot,
|
|
3512
4471
|
_sfc_main as SavingIndicator,
|
|
3513
|
-
_sfc_main$
|
|
4472
|
+
_sfc_main$1j as ScrollArea,
|
|
3514
4473
|
_sfc_main$C as SelectContent,
|
|
3515
4474
|
SelectGroup,
|
|
3516
4475
|
_sfc_main$A as SelectItem,
|
|
@@ -3519,21 +4478,37 @@ export {
|
|
|
3519
4478
|
SelectSeparator,
|
|
3520
4479
|
_sfc_main$B as SelectTrigger,
|
|
3521
4480
|
_sfc_main$2 as Separator,
|
|
4481
|
+
_sfc_main$11 as Sidebar,
|
|
4482
|
+
_sfc_main$$ as SidebarBody,
|
|
4483
|
+
_sfc_main$_ as SidebarFooter,
|
|
4484
|
+
_sfc_main$W as SidebarGroup,
|
|
4485
|
+
_sfc_main$V as SidebarGroupLabel,
|
|
4486
|
+
_sfc_main$10 as SidebarHeader,
|
|
4487
|
+
_sfc_main$X as SidebarInset,
|
|
4488
|
+
_sfc_main$U as SidebarMenu,
|
|
4489
|
+
_sfc_main$R as SidebarMenuButton,
|
|
4490
|
+
_sfc_main$T as SidebarMenuItem,
|
|
4491
|
+
_sfc_main$Q as SidebarMenuSub,
|
|
4492
|
+
_sfc_main$O as SidebarMenuSubButton,
|
|
4493
|
+
_sfc_main$P as SidebarMenuSubItem,
|
|
4494
|
+
_sfc_main$12 as SidebarProvider,
|
|
4495
|
+
_sfc_main$Y as SidebarRail,
|
|
4496
|
+
_sfc_main$Z as SidebarTrigger,
|
|
3522
4497
|
SpinnerIcon,
|
|
3523
|
-
_sfc_main$
|
|
4498
|
+
_sfc_main$N as Switch,
|
|
3524
4499
|
_sfc_main$3 as Table,
|
|
3525
4500
|
TabsContent,
|
|
3526
4501
|
_sfc_main$k as TabsList,
|
|
3527
4502
|
TabsRoot,
|
|
3528
4503
|
_sfc_main$j as TabsTrigger,
|
|
3529
|
-
_sfc_main$
|
|
3530
|
-
_sfc_main$
|
|
3531
|
-
_sfc_main$
|
|
4504
|
+
_sfc_main$H as TextArea,
|
|
4505
|
+
_sfc_main$I as TextField,
|
|
4506
|
+
_sfc_main$1q as ThemeProvider,
|
|
3532
4507
|
_sfc_main$4 as ToastProvider,
|
|
3533
|
-
_sfc_main$
|
|
3534
|
-
_sfc_main$
|
|
3535
|
-
_sfc_main$
|
|
3536
|
-
_sfc_main$
|
|
4508
|
+
_sfc_main$L as Toggle,
|
|
4509
|
+
_sfc_main$J as ToggleGroupItem,
|
|
4510
|
+
_sfc_main$K as ToggleGroupRoot,
|
|
4511
|
+
_sfc_main$1h as Tooltip,
|
|
3537
4512
|
buildPropsClass,
|
|
3538
4513
|
injectThemeContext,
|
|
3539
4514
|
provideThemeContext,
|