@typlog/ui 0.13.1 → 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 +2 -2
- package/base.css +0 -171
- package/components.css +782 -1
- package/components.d.ts +526 -52
- package/components.js +1113 -116
- 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,13 +297,13 @@ 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: "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"
|
|
@@ -310,7 +311,7 @@ function render$d(_ctx, _cache) {
|
|
|
310
311
|
])]);
|
|
311
312
|
}
|
|
312
313
|
const CrossIcon = markRaw({ name: "radix-icons-cross-2", render: render$d });
|
|
313
|
-
const _sfc_main$
|
|
314
|
+
const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
314
315
|
__name: "CloseButton",
|
|
315
316
|
props: {
|
|
316
317
|
variant: { default: "ghost" },
|
|
@@ -343,7 +344,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
343
344
|
};
|
|
344
345
|
}
|
|
345
346
|
});
|
|
346
|
-
const _sfc_main$
|
|
347
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
347
348
|
__name: "ScrollArea",
|
|
348
349
|
props: {
|
|
349
350
|
size: { default: "1" },
|
|
@@ -406,7 +407,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
406
407
|
};
|
|
407
408
|
}
|
|
408
409
|
});
|
|
409
|
-
const _sfc_main
|
|
410
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
410
411
|
__name: "ThemeWrapper",
|
|
411
412
|
props: {
|
|
412
413
|
accentColor: {},
|
|
@@ -432,8 +433,8 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
432
433
|
};
|
|
433
434
|
}
|
|
434
435
|
});
|
|
435
|
-
const _hoisted_1$
|
|
436
|
-
const _sfc_main$
|
|
436
|
+
const _hoisted_1$z = ["textContent"];
|
|
437
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
437
438
|
...{
|
|
438
439
|
inheritAttrs: false
|
|
439
440
|
},
|
|
@@ -466,8 +467,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
466
467
|
positionStrategy: {},
|
|
467
468
|
updatePositionStrategy: {}
|
|
468
469
|
},
|
|
469
|
-
|
|
470
|
-
setup(__props, { emit: __emit }) {
|
|
470
|
+
setup(__props) {
|
|
471
471
|
const props = __props;
|
|
472
472
|
return (_ctx, _cache) => {
|
|
473
473
|
return openBlock(), createBlock(unref(TooltipRoot), {
|
|
@@ -490,7 +490,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
490
490
|
}, 16, ["as", "as-child"]),
|
|
491
491
|
createVNode(unref(TooltipPortal), null, {
|
|
492
492
|
default: withCtx(() => [
|
|
493
|
-
createVNode(_sfc_main
|
|
493
|
+
createVNode(_sfc_main$1i, null, {
|
|
494
494
|
default: withCtx(() => [
|
|
495
495
|
createVNode(unref(TooltipContent), {
|
|
496
496
|
class: "ui-Tooltip",
|
|
@@ -513,7 +513,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
513
513
|
createElementVNode("p", {
|
|
514
514
|
class: "ui-TooltipText",
|
|
515
515
|
textContent: toDisplayString(props.content)
|
|
516
|
-
}, null, 8, _hoisted_1$
|
|
516
|
+
}, null, 8, _hoisted_1$z)
|
|
517
517
|
]),
|
|
518
518
|
createVNode(unref(TooltipArrow), { class: "ui-TooltipArrow" })
|
|
519
519
|
]),
|
|
@@ -531,7 +531,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
531
531
|
};
|
|
532
532
|
}
|
|
533
533
|
});
|
|
534
|
-
const _sfc_main$
|
|
534
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
535
535
|
__name: "DialogCloseButton",
|
|
536
536
|
props: {
|
|
537
537
|
tooltip: { default: "Close" },
|
|
@@ -548,7 +548,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
548
548
|
const props = __props;
|
|
549
549
|
const forwarded = useForwardPropsWithout(props, ["tooltip"]);
|
|
550
550
|
return (_ctx, _cache) => {
|
|
551
|
-
return openBlock(), createBlock(_sfc_main$
|
|
551
|
+
return openBlock(), createBlock(_sfc_main$1h, {
|
|
552
552
|
content: props.tooltip,
|
|
553
553
|
"as-child": ""
|
|
554
554
|
}, {
|
|
@@ -558,7 +558,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
558
558
|
"as-child": ""
|
|
559
559
|
}, {
|
|
560
560
|
default: withCtx(() => [
|
|
561
|
-
createVNode(_sfc_main$
|
|
561
|
+
createVNode(_sfc_main$1l, normalizeProps(guardReactiveProps(unref(forwarded))), {
|
|
562
562
|
default: withCtx(() => [
|
|
563
563
|
createVNode(unref(CrossIcon))
|
|
564
564
|
]),
|
|
@@ -573,7 +573,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
573
573
|
};
|
|
574
574
|
}
|
|
575
575
|
});
|
|
576
|
-
const _sfc_main$
|
|
576
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
577
577
|
__name: "DialogTitle",
|
|
578
578
|
props: {
|
|
579
579
|
asChild: { type: Boolean },
|
|
@@ -596,7 +596,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
596
596
|
};
|
|
597
597
|
}
|
|
598
598
|
});
|
|
599
|
-
const _sfc_main$
|
|
599
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
600
600
|
__name: "DialogDescription",
|
|
601
601
|
props: {
|
|
602
602
|
asChild: { type: Boolean },
|
|
@@ -619,9 +619,9 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
619
619
|
};
|
|
620
620
|
}
|
|
621
621
|
});
|
|
622
|
-
const _hoisted_1$
|
|
622
|
+
const _hoisted_1$y = { class: "ui-DialogWrapper" };
|
|
623
623
|
const _hoisted_2$8 = { class: "ui-DialogContainer" };
|
|
624
|
-
const _sfc_main$
|
|
624
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
625
625
|
...{
|
|
626
626
|
inheritAttrs: false
|
|
627
627
|
},
|
|
@@ -641,11 +641,11 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
641
641
|
return (_ctx, _cache) => {
|
|
642
642
|
return openBlock(), createBlock(unref(DialogPortal), null, {
|
|
643
643
|
default: withCtx(() => [
|
|
644
|
-
createVNode(_sfc_main
|
|
644
|
+
createVNode(_sfc_main$1i, null, {
|
|
645
645
|
default: withCtx(() => [
|
|
646
646
|
createVNode(unref(DialogOverlay), { class: "ui-DialogOverlay" }, {
|
|
647
647
|
default: withCtx(() => [
|
|
648
|
-
createElementVNode("div", _hoisted_1$
|
|
648
|
+
createElementVNode("div", _hoisted_1$y, [
|
|
649
649
|
createElementVNode("div", _hoisted_2$8, [
|
|
650
650
|
createVNode(unref(DialogContent), mergeProps({
|
|
651
651
|
class: ["ui-DialogPopup", `r-size-${props.size}`]
|
|
@@ -672,9 +672,9 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
672
672
|
};
|
|
673
673
|
}
|
|
674
674
|
});
|
|
675
|
-
const _hoisted_1$
|
|
675
|
+
const _hoisted_1$x = { class: "ui-DialogWrapper" };
|
|
676
676
|
const _hoisted_2$7 = { class: "ui-DialogContainer" };
|
|
677
|
-
const _sfc_main$
|
|
677
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
678
678
|
...{
|
|
679
679
|
inheritAttrs: false
|
|
680
680
|
},
|
|
@@ -693,11 +693,11 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
693
693
|
return (_ctx, _cache) => {
|
|
694
694
|
return openBlock(), createBlock(unref(AlertDialogPortal), null, {
|
|
695
695
|
default: withCtx(() => [
|
|
696
|
-
createVNode(_sfc_main
|
|
696
|
+
createVNode(_sfc_main$1i, null, {
|
|
697
697
|
default: withCtx(() => [
|
|
698
698
|
createVNode(unref(AlertDialogOverlay), { class: "ui-DialogOverlay" }, {
|
|
699
699
|
default: withCtx(() => [
|
|
700
|
-
createElementVNode("div", _hoisted_1$
|
|
700
|
+
createElementVNode("div", _hoisted_1$x, [
|
|
701
701
|
createElementVNode("div", _hoisted_2$7, [
|
|
702
702
|
createVNode(unref(AlertDialogContent), mergeProps({ class: "ui-DialogPopup ui-AlertPopup r-size-3" }, {
|
|
703
703
|
..._ctx.$attrs,
|
|
@@ -722,9 +722,9 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
722
722
|
};
|
|
723
723
|
}
|
|
724
724
|
});
|
|
725
|
-
const _hoisted_1$
|
|
725
|
+
const _hoisted_1$w = { class: "ui-MenuViewport" };
|
|
726
726
|
const [injectDropdownMenuContentContext, provideDropdownMenuContentContext] = createContext("ui:DropdownMenuContent");
|
|
727
|
-
const _sfc_main$
|
|
727
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
728
728
|
...{
|
|
729
729
|
inheritAttrs: false
|
|
730
730
|
},
|
|
@@ -736,6 +736,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
736
736
|
highContrast: { type: Boolean },
|
|
737
737
|
forceMount: { type: Boolean },
|
|
738
738
|
loop: { type: Boolean },
|
|
739
|
+
memoDependencies: {},
|
|
739
740
|
side: {},
|
|
740
741
|
sideOffset: { default: 4 },
|
|
741
742
|
sideFlip: { type: Boolean },
|
|
@@ -746,6 +747,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
746
747
|
collisionBoundary: {},
|
|
747
748
|
collisionPadding: { default: 10 },
|
|
748
749
|
arrowPadding: {},
|
|
750
|
+
hideShiftedArrow: { type: Boolean },
|
|
749
751
|
sticky: {},
|
|
750
752
|
hideWhenDetached: { type: Boolean },
|
|
751
753
|
positionStrategy: {},
|
|
@@ -774,7 +776,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
774
776
|
return (_ctx, _cache) => {
|
|
775
777
|
return openBlock(), createBlock(unref(DropdownMenuPortal), null, {
|
|
776
778
|
default: withCtx(() => [
|
|
777
|
-
createVNode(_sfc_main
|
|
779
|
+
createVNode(_sfc_main$1i, {
|
|
778
780
|
"accent-color": props.color
|
|
779
781
|
}, {
|
|
780
782
|
default: withCtx(() => [
|
|
@@ -786,9 +788,9 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
786
788
|
class: ["ui-PopperContent ui-MenuContent", unref(resetClass)]
|
|
787
789
|
}), {
|
|
788
790
|
default: withCtx(() => [
|
|
789
|
-
createVNode(_sfc_main$
|
|
791
|
+
createVNode(_sfc_main$1j, { type: "auto" }, {
|
|
790
792
|
default: withCtx(() => [
|
|
791
|
-
createElementVNode("div", _hoisted_1$
|
|
793
|
+
createElementVNode("div", _hoisted_1$w, [
|
|
792
794
|
renderSlot(_ctx.$slots, "default")
|
|
793
795
|
])
|
|
794
796
|
]),
|
|
@@ -806,8 +808,8 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
806
808
|
};
|
|
807
809
|
}
|
|
808
810
|
});
|
|
809
|
-
const _hoisted_1$
|
|
810
|
-
const _sfc_main$
|
|
811
|
+
const _hoisted_1$v = ["textContent"];
|
|
812
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
811
813
|
__name: "DropdownMenuItem",
|
|
812
814
|
props: {
|
|
813
815
|
color: {},
|
|
@@ -836,7 +838,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
836
838
|
key: 0,
|
|
837
839
|
class: "ui-MenuShortcut",
|
|
838
840
|
textContent: toDisplayString(props.shortcut)
|
|
839
|
-
}, null, 8, _hoisted_1$
|
|
841
|
+
}, null, 8, _hoisted_1$v)) : createCommentVNode("", true)
|
|
840
842
|
]),
|
|
841
843
|
_: 3
|
|
842
844
|
}, 16, ["data-accent-color", "data-high-contrast"]);
|
|
@@ -850,16 +852,16 @@ const _export_sfc = (sfc, props) => {
|
|
|
850
852
|
}
|
|
851
853
|
return target;
|
|
852
854
|
};
|
|
853
|
-
const _sfc_main$
|
|
854
|
-
const _hoisted_1$
|
|
855
|
+
const _sfc_main$19 = {};
|
|
856
|
+
const _hoisted_1$u = {
|
|
855
857
|
class: "ui-DropdownMenuSeparator",
|
|
856
858
|
"aria-hidden": "true"
|
|
857
859
|
};
|
|
858
860
|
function _sfc_render$2(_ctx, _cache) {
|
|
859
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
861
|
+
return openBlock(), createElementBlock("div", _hoisted_1$u);
|
|
860
862
|
}
|
|
861
|
-
const DropdownMenuSeparator = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
862
|
-
const _sfc_main$
|
|
863
|
+
const DropdownMenuSeparator = /* @__PURE__ */ _export_sfc(_sfc_main$19, [["render", _sfc_render$2]]);
|
|
864
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
863
865
|
...{
|
|
864
866
|
inheritAttrs: false
|
|
865
867
|
},
|
|
@@ -867,6 +869,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
867
869
|
props: {
|
|
868
870
|
size: { default: "1" },
|
|
869
871
|
forceMount: { type: Boolean },
|
|
872
|
+
memoDependencies: {},
|
|
870
873
|
side: { default: "bottom" },
|
|
871
874
|
sideOffset: { default: 4 },
|
|
872
875
|
sideFlip: { type: Boolean },
|
|
@@ -877,6 +880,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
877
880
|
collisionBoundary: {},
|
|
878
881
|
collisionPadding: {},
|
|
879
882
|
arrowPadding: {},
|
|
883
|
+
hideShiftedArrow: { type: Boolean },
|
|
880
884
|
sticky: {},
|
|
881
885
|
hideWhenDetached: { type: Boolean },
|
|
882
886
|
positionStrategy: {},
|
|
@@ -884,6 +888,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
884
888
|
disableUpdateOnLayoutShift: { type: Boolean },
|
|
885
889
|
prioritizePosition: { type: Boolean },
|
|
886
890
|
reference: {},
|
|
891
|
+
dir: {},
|
|
887
892
|
asChild: { type: Boolean },
|
|
888
893
|
as: {},
|
|
889
894
|
disableOutsidePointerEvents: { type: Boolean }
|
|
@@ -896,7 +901,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
896
901
|
return (_ctx, _cache) => {
|
|
897
902
|
return openBlock(), createBlock(unref(PopoverPortal), null, {
|
|
898
903
|
default: withCtx(() => [
|
|
899
|
-
createVNode(_sfc_main
|
|
904
|
+
createVNode(_sfc_main$1i, null, {
|
|
900
905
|
default: withCtx(() => [
|
|
901
906
|
createVNode(unref(PopoverContent), mergeProps({ ..._ctx.$attrs, ...unref(forwarded) }, {
|
|
902
907
|
class: ["ui-PopoverPopup ui-PopperContent", `r-size-${props.size}`]
|
|
@@ -915,7 +920,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
915
920
|
};
|
|
916
921
|
}
|
|
917
922
|
});
|
|
918
|
-
const _sfc_main$
|
|
923
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
919
924
|
__name: "NavigationMenuRoot",
|
|
920
925
|
props: {
|
|
921
926
|
modelValue: {},
|
|
@@ -948,7 +953,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
948
953
|
}
|
|
949
954
|
});
|
|
950
955
|
const [injectNavigationMenuListContext, provideNavigationMenuListContext] = createContext("ui:NavigationMenuList");
|
|
951
|
-
const _sfc_main$
|
|
956
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
952
957
|
__name: "NavigationMenuList",
|
|
953
958
|
props: {
|
|
954
959
|
color: {},
|
|
@@ -980,7 +985,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
|
980
985
|
};
|
|
981
986
|
}
|
|
982
987
|
});
|
|
983
|
-
const _sfc_main$
|
|
988
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
984
989
|
__name: "NavigationMenuLink",
|
|
985
990
|
props: {
|
|
986
991
|
color: {},
|
|
@@ -1014,13 +1019,13 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
1014
1019
|
};
|
|
1015
1020
|
}
|
|
1016
1021
|
});
|
|
1017
|
-
const _hoisted_1$
|
|
1022
|
+
const _hoisted_1$t = {
|
|
1018
1023
|
viewBox: "0 0 15 15",
|
|
1019
1024
|
width: "1em",
|
|
1020
1025
|
height: "1em"
|
|
1021
1026
|
};
|
|
1022
1027
|
function render$c(_ctx, _cache) {
|
|
1023
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$
|
|
1028
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$t, [..._cache[0] || (_cache[0] = [
|
|
1024
1029
|
createElementVNode("path", {
|
|
1025
1030
|
fill: "currentColor",
|
|
1026
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"
|
|
@@ -1028,7 +1033,7 @@ function render$c(_ctx, _cache) {
|
|
|
1028
1033
|
])]);
|
|
1029
1034
|
}
|
|
1030
1035
|
const CaretDownIcon = markRaw({ name: "radix-icons-caret-down", render: render$c });
|
|
1031
|
-
const _sfc_main$
|
|
1036
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
1032
1037
|
__name: "NavigationMenuTrigger",
|
|
1033
1038
|
props: {
|
|
1034
1039
|
color: {},
|
|
@@ -1073,7 +1078,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
1073
1078
|
};
|
|
1074
1079
|
}
|
|
1075
1080
|
});
|
|
1076
|
-
const _sfc_main$
|
|
1081
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
1077
1082
|
__name: "NavigationMenuContent",
|
|
1078
1083
|
props: {
|
|
1079
1084
|
forceMount: { type: Boolean },
|
|
@@ -1096,7 +1101,885 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
1096
1101
|
};
|
|
1097
1102
|
}
|
|
1098
1103
|
});
|
|
1099
|
-
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({
|
|
1100
1983
|
__name: "Switch",
|
|
1101
1984
|
props: {
|
|
1102
1985
|
color: {},
|
|
@@ -1104,11 +1987,13 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
1104
1987
|
size: { default: "2" },
|
|
1105
1988
|
highContrast: { type: Boolean },
|
|
1106
1989
|
radius: {},
|
|
1107
|
-
defaultValue: {
|
|
1108
|
-
modelValue: {
|
|
1990
|
+
defaultValue: {},
|
|
1991
|
+
modelValue: {},
|
|
1109
1992
|
disabled: { type: Boolean },
|
|
1110
1993
|
id: {},
|
|
1111
1994
|
value: {},
|
|
1995
|
+
trueValue: {},
|
|
1996
|
+
falseValue: {},
|
|
1112
1997
|
asChild: { type: Boolean },
|
|
1113
1998
|
as: {},
|
|
1114
1999
|
name: {},
|
|
@@ -1158,18 +2043,20 @@ const _hoisted_3$2 = {
|
|
|
1158
2043
|
clipRule: "evenodd",
|
|
1159
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"
|
|
1160
2045
|
};
|
|
1161
|
-
const _sfc_main$
|
|
2046
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
1162
2047
|
__name: "Checkbox",
|
|
1163
2048
|
props: {
|
|
1164
2049
|
color: {},
|
|
1165
2050
|
variant: { default: "surface" },
|
|
1166
2051
|
size: { default: "2" },
|
|
1167
2052
|
highContrast: { type: Boolean },
|
|
1168
|
-
defaultValue: {
|
|
1169
|
-
modelValue: {
|
|
2053
|
+
defaultValue: {},
|
|
2054
|
+
modelValue: {},
|
|
1170
2055
|
disabled: { type: Boolean },
|
|
1171
2056
|
value: {},
|
|
1172
2057
|
id: {},
|
|
2058
|
+
trueValue: {},
|
|
2059
|
+
falseValue: {},
|
|
1173
2060
|
asChild: { type: Boolean },
|
|
1174
2061
|
as: {},
|
|
1175
2062
|
name: {},
|
|
@@ -1204,7 +2091,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
1204
2091
|
};
|
|
1205
2092
|
}
|
|
1206
2093
|
});
|
|
1207
|
-
const _sfc_main$
|
|
2094
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
1208
2095
|
__name: "Toggle",
|
|
1209
2096
|
props: {
|
|
1210
2097
|
variant: { default: "soft" },
|
|
@@ -1240,7 +2127,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
1240
2127
|
};
|
|
1241
2128
|
}
|
|
1242
2129
|
});
|
|
1243
|
-
const _sfc_main$
|
|
2130
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
1244
2131
|
__name: "ToggleGroupRoot",
|
|
1245
2132
|
props: {
|
|
1246
2133
|
variant: { default: "solid" },
|
|
@@ -1281,7 +2168,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
1281
2168
|
};
|
|
1282
2169
|
}
|
|
1283
2170
|
});
|
|
1284
|
-
const _sfc_main$
|
|
2171
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
1285
2172
|
__name: "ToggleGroupItem",
|
|
1286
2173
|
props: {
|
|
1287
2174
|
value: {},
|
|
@@ -1315,7 +2202,7 @@ const _hoisted_5 = {
|
|
|
1315
2202
|
class: "ui-TextFieldSlot",
|
|
1316
2203
|
"data-side": "right"
|
|
1317
2204
|
};
|
|
1318
|
-
const _sfc_main$
|
|
2205
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
1319
2206
|
...{
|
|
1320
2207
|
inheritAttrs: false
|
|
1321
2208
|
},
|
|
@@ -1400,7 +2287,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
1400
2287
|
}
|
|
1401
2288
|
});
|
|
1402
2289
|
const _hoisted_1$p = ["data-accent-color", "data-radius"];
|
|
1403
|
-
const _sfc_main$
|
|
2290
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
1404
2291
|
...{
|
|
1405
2292
|
inheritAttrs: false
|
|
1406
2293
|
},
|
|
@@ -1439,7 +2326,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
1439
2326
|
}
|
|
1440
2327
|
});
|
|
1441
2328
|
const _hoisted_1$o = ["id"];
|
|
1442
|
-
const _sfc_main$
|
|
2329
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
1443
2330
|
__name: "ColorField",
|
|
1444
2331
|
props: /* @__PURE__ */ mergeModels({
|
|
1445
2332
|
id: {},
|
|
@@ -1484,6 +2371,76 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
1484
2371
|
};
|
|
1485
2372
|
}
|
|
1486
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
|
+
});
|
|
1487
2444
|
const [injectSelectRootContext, provideSelectRootContext] = createContext("ui:SelectRoot");
|
|
1488
2445
|
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
1489
2446
|
__name: "SelectRoot",
|
|
@@ -1495,6 +2452,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
1495
2452
|
defaultOpen: { type: Boolean },
|
|
1496
2453
|
defaultValue: {},
|
|
1497
2454
|
modelValue: {},
|
|
2455
|
+
nullableValue: {},
|
|
1498
2456
|
by: {},
|
|
1499
2457
|
dir: {},
|
|
1500
2458
|
multiple: { type: Boolean },
|
|
@@ -1534,6 +2492,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
1534
2492
|
forceMount: { type: Boolean },
|
|
1535
2493
|
position: {},
|
|
1536
2494
|
bodyLock: { type: Boolean },
|
|
2495
|
+
memoDependencies: {},
|
|
1537
2496
|
side: {},
|
|
1538
2497
|
sideOffset: {},
|
|
1539
2498
|
sideFlip: { type: Boolean },
|
|
@@ -1544,6 +2503,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
1544
2503
|
collisionBoundary: {},
|
|
1545
2504
|
collisionPadding: {},
|
|
1546
2505
|
arrowPadding: {},
|
|
2506
|
+
hideShiftedArrow: { type: Boolean },
|
|
1547
2507
|
sticky: {},
|
|
1548
2508
|
hideWhenDetached: { type: Boolean },
|
|
1549
2509
|
positionStrategy: {},
|
|
@@ -1551,8 +2511,10 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
1551
2511
|
disableUpdateOnLayoutShift: { type: Boolean },
|
|
1552
2512
|
prioritizePosition: { type: Boolean },
|
|
1553
2513
|
reference: {},
|
|
2514
|
+
dir: {},
|
|
1554
2515
|
asChild: { type: Boolean },
|
|
1555
|
-
as: {}
|
|
2516
|
+
as: {},
|
|
2517
|
+
disableOutsidePointerEvents: { type: Boolean }
|
|
1556
2518
|
},
|
|
1557
2519
|
setup(__props) {
|
|
1558
2520
|
const props = __props;
|
|
@@ -1572,7 +2534,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
1572
2534
|
return (_ctx, _cache) => {
|
|
1573
2535
|
return openBlock(), createBlock(unref(SelectPortal), null, {
|
|
1574
2536
|
default: withCtx(() => [
|
|
1575
|
-
createVNode(_sfc_main
|
|
2537
|
+
createVNode(_sfc_main$1i, {
|
|
1576
2538
|
"accent-color": unref(context).color.value
|
|
1577
2539
|
}, {
|
|
1578
2540
|
default: withCtx(() => [
|
|
@@ -1675,12 +2637,11 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
1675
2637
|
}, {
|
|
1676
2638
|
default: withCtx(({ selectedLabel, modelValue }) => [
|
|
1677
2639
|
selectedLabel.length ? renderSlot(_ctx.$slots, "default", {
|
|
1678
|
-
key: 0,
|
|
1679
2640
|
selectedLabel,
|
|
1680
2641
|
modelValue
|
|
1681
2642
|
}, () => [
|
|
1682
2643
|
createTextVNode(toDisplayString(selectedLabel.join(", ")), 1)
|
|
1683
|
-
]) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
2644
|
+
], void 0, 0) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
1684
2645
|
createTextVNode(toDisplayString(props.placeholder), 1)
|
|
1685
2646
|
], 64))
|
|
1686
2647
|
]),
|
|
@@ -1786,6 +2747,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
1786
2747
|
openOnFocus: { type: Boolean },
|
|
1787
2748
|
openOnClick: { type: Boolean },
|
|
1788
2749
|
ignoreFilter: { type: Boolean },
|
|
2750
|
+
resetModelValueOnClear: { type: Boolean },
|
|
1789
2751
|
modelValue: {},
|
|
1790
2752
|
defaultValue: {},
|
|
1791
2753
|
multiple: { type: Boolean, default: false },
|
|
@@ -1954,6 +2916,8 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
1954
2916
|
forceMount: { type: Boolean },
|
|
1955
2917
|
position: { default: "popper" },
|
|
1956
2918
|
bodyLock: { type: Boolean },
|
|
2919
|
+
hideWhenEmpty: { type: Boolean },
|
|
2920
|
+
memoDependencies: {},
|
|
1957
2921
|
side: {},
|
|
1958
2922
|
sideOffset: { default: 5 },
|
|
1959
2923
|
sideFlip: { type: Boolean },
|
|
@@ -1964,6 +2928,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
1964
2928
|
collisionBoundary: {},
|
|
1965
2929
|
collisionPadding: {},
|
|
1966
2930
|
arrowPadding: {},
|
|
2931
|
+
hideShiftedArrow: { type: Boolean },
|
|
1967
2932
|
sticky: {},
|
|
1968
2933
|
hideWhenDetached: { type: Boolean },
|
|
1969
2934
|
positionStrategy: {},
|
|
@@ -1971,6 +2936,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
1971
2936
|
disableUpdateOnLayoutShift: { type: Boolean },
|
|
1972
2937
|
prioritizePosition: { type: Boolean },
|
|
1973
2938
|
reference: {},
|
|
2939
|
+
dir: {},
|
|
1974
2940
|
asChild: { type: Boolean },
|
|
1975
2941
|
as: {},
|
|
1976
2942
|
disableOutsidePointerEvents: { type: Boolean }
|
|
@@ -1992,7 +2958,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
1992
2958
|
return (_ctx, _cache) => {
|
|
1993
2959
|
return openBlock(), createBlock(unref(ComboboxPortal), null, {
|
|
1994
2960
|
default: withCtx(() => [
|
|
1995
|
-
createVNode(_sfc_main
|
|
2961
|
+
createVNode(_sfc_main$1i, {
|
|
1996
2962
|
"accent-color": unref(context).color.value
|
|
1997
2963
|
}, {
|
|
1998
2964
|
default: withCtx(() => [
|
|
@@ -2505,7 +3471,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
2505
3471
|
},
|
|
2506
3472
|
setup(__props) {
|
|
2507
3473
|
const props = __props;
|
|
2508
|
-
const id = useId(null, "accordion-item");
|
|
3474
|
+
const id = useId$1(null, "accordion-item");
|
|
2509
3475
|
const forwarded = computed(() => {
|
|
2510
3476
|
const refProps = useForwardProps(props);
|
|
2511
3477
|
if (!refProps.value.value) {
|
|
@@ -2679,7 +3645,18 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2679
3645
|
const props = __props;
|
|
2680
3646
|
const forwarded = useForwardPropsWithout(props, ["indicator"]);
|
|
2681
3647
|
return (_ctx, _cache) => {
|
|
2682
|
-
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)), {
|
|
2683
3660
|
default: withCtx(() => [
|
|
2684
3661
|
createElementVNode("span", _hoisted_1$c, [
|
|
2685
3662
|
renderSlot(_ctx.$slots, "default")
|
|
@@ -2690,7 +3667,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
2690
3667
|
}, null, 8, ["data-side"])) : createCommentVNode("", true)
|
|
2691
3668
|
]),
|
|
2692
3669
|
_: 3
|
|
2693
|
-
}, 16);
|
|
3670
|
+
}, 16));
|
|
2694
3671
|
};
|
|
2695
3672
|
}
|
|
2696
3673
|
});
|
|
@@ -2914,21 +3891,22 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
2914
3891
|
};
|
|
2915
3892
|
}
|
|
2916
3893
|
});
|
|
3894
|
+
// @__NO_SIDE_EFFECTS__
|
|
2917
3895
|
function createGlobalState(stateFactory) {
|
|
2918
3896
|
let initialized = false;
|
|
2919
3897
|
let state;
|
|
2920
3898
|
const scope = effectScope(true);
|
|
2921
|
-
return (...args) => {
|
|
3899
|
+
return ((...args) => {
|
|
2922
3900
|
if (!initialized) {
|
|
2923
3901
|
state = scope.run(() => stateFactory(...args));
|
|
2924
3902
|
initialized = true;
|
|
2925
3903
|
}
|
|
2926
3904
|
return state;
|
|
2927
|
-
};
|
|
3905
|
+
});
|
|
2928
3906
|
}
|
|
2929
3907
|
typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
|
|
2930
3908
|
let count = 0;
|
|
2931
|
-
const useToastManager = createGlobalState(() => {
|
|
3909
|
+
const useToastManager = /* @__PURE__ */ createGlobalState(() => {
|
|
2932
3910
|
const messages = ref([]);
|
|
2933
3911
|
const add = (msg, category) => {
|
|
2934
3912
|
const id = count++;
|
|
@@ -3177,7 +4155,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
3177
4155
|
onClick: __props.message.action.onClick
|
|
3178
4156
|
}, {
|
|
3179
4157
|
default: withCtx(() => [
|
|
3180
|
-
createVNode(_sfc_main$
|
|
4158
|
+
createVNode(_sfc_main$1m, {
|
|
3181
4159
|
variant: __props.message.action.variant || "soft",
|
|
3182
4160
|
radius: __props.message.action.radius,
|
|
3183
4161
|
size: __props.message.action.size || "1",
|
|
@@ -3207,6 +4185,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3207
4185
|
position: { default: "bottom-right" },
|
|
3208
4186
|
label: {},
|
|
3209
4187
|
duration: {},
|
|
4188
|
+
disableSwipe: { type: Boolean },
|
|
3210
4189
|
swipeDirection: {},
|
|
3211
4190
|
swipeThreshold: {}
|
|
3212
4191
|
},
|
|
@@ -3250,7 +4229,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
3250
4229
|
}), 128)),
|
|
3251
4230
|
createVNode(unref(ToastPortal), null, {
|
|
3252
4231
|
default: withCtx(() => [
|
|
3253
|
-
createVNode(_sfc_main
|
|
4232
|
+
createVNode(_sfc_main$1i, null, {
|
|
3254
4233
|
default: withCtx(() => [
|
|
3255
4234
|
createVNode(unref(ToastViewport), mergeProps({ class: "ui-ToastViewport" }, _ctx.$attrs, {
|
|
3256
4235
|
class: `r-size-${__props.size}`,
|
|
@@ -3299,7 +4278,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
3299
4278
|
"data-size": props.size,
|
|
3300
4279
|
"data-variant": props.variant
|
|
3301
4280
|
}, [
|
|
3302
|
-
createVNode(_sfc_main$
|
|
4281
|
+
createVNode(_sfc_main$1j, null, {
|
|
3303
4282
|
default: withCtx(() => [
|
|
3304
4283
|
createElementVNode("table", {
|
|
3305
4284
|
class: "ui-TableContent",
|
|
@@ -3429,24 +4408,24 @@ export {
|
|
|
3429
4408
|
_sfc_main$d as AccordionTrigger,
|
|
3430
4409
|
AlertDialogAction,
|
|
3431
4410
|
AlertDialogCancel,
|
|
3432
|
-
_sfc_main$
|
|
3433
|
-
_sfc_main$
|
|
3434
|
-
_sfc_main$
|
|
4411
|
+
_sfc_main$1g as AlertDialogCancelButton,
|
|
4412
|
+
_sfc_main$1e as AlertDialogDescription,
|
|
4413
|
+
_sfc_main$1c as AlertDialogPopup,
|
|
3435
4414
|
AlertDialogRoot,
|
|
3436
|
-
_sfc_main$
|
|
4415
|
+
_sfc_main$1f as AlertDialogTitle,
|
|
3437
4416
|
AlertDialogTrigger,
|
|
3438
|
-
_sfc_main$
|
|
3439
|
-
_sfc_main$
|
|
3440
|
-
_sfc_main$
|
|
3441
|
-
_sfc_main$
|
|
3442
|
-
_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,
|
|
3443
4422
|
CheckboxGroupRoot as CheckboxGroup,
|
|
3444
|
-
_sfc_main$
|
|
4423
|
+
_sfc_main$1k as CloseButton,
|
|
3445
4424
|
_sfc_main$9 as CollapsibleContent,
|
|
3446
4425
|
_sfc_main$b as CollapsibleIndicator,
|
|
3447
4426
|
_sfc_main$c as CollapsibleRoot,
|
|
3448
4427
|
_sfc_main$a as CollapsibleTrigger,
|
|
3449
|
-
_sfc_main$
|
|
4428
|
+
_sfc_main$G as ColorField,
|
|
3450
4429
|
_sfc_main$v as ComboboxContent,
|
|
3451
4430
|
_sfc_main$s as ComboboxEmpty,
|
|
3452
4431
|
ComboboxGroup,
|
|
@@ -3455,28 +4434,30 @@ export {
|
|
|
3455
4434
|
_sfc_main$t as ComboboxLabel,
|
|
3456
4435
|
_sfc_main$x as ComboboxRoot,
|
|
3457
4436
|
DialogClose2 as DialogClose,
|
|
3458
|
-
_sfc_main$
|
|
3459
|
-
_sfc_main$
|
|
3460
|
-
_sfc_main$
|
|
3461
|
-
DialogRoot,
|
|
3462
|
-
_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,
|
|
3463
4442
|
DialogTrigger,
|
|
3464
|
-
_sfc_main$
|
|
3465
|
-
_sfc_main$
|
|
4443
|
+
_sfc_main$1b as DropdownMenuContent,
|
|
4444
|
+
_sfc_main$1a as DropdownMenuItem,
|
|
3466
4445
|
DropdownMenuRoot,
|
|
3467
4446
|
DropdownMenuSeparator,
|
|
3468
4447
|
DropdownMenuTrigger,
|
|
3469
4448
|
_sfc_main$i as Editable,
|
|
3470
|
-
_sfc_main$
|
|
3471
|
-
_sfc_main$
|
|
4449
|
+
_sfc_main$1l as IconButton,
|
|
4450
|
+
_sfc_main$13 as NavigationMenuContent,
|
|
3472
4451
|
NavigationMenuItem,
|
|
3473
|
-
_sfc_main$
|
|
3474
|
-
_sfc_main$
|
|
3475
|
-
_sfc_main$
|
|
3476
|
-
_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,
|
|
3477
4456
|
_sfc_main$7 as Pagination,
|
|
4457
|
+
_sfc_main$E as PinInputInput,
|
|
4458
|
+
_sfc_main$F as PinInputRoot,
|
|
3478
4459
|
PopoverClose,
|
|
3479
|
-
_sfc_main$
|
|
4460
|
+
_sfc_main$18 as PopoverPopup,
|
|
3480
4461
|
PopoverRoot,
|
|
3481
4462
|
PopoverTrigger,
|
|
3482
4463
|
_sfc_main$1 as Quota,
|
|
@@ -3488,7 +4469,7 @@ export {
|
|
|
3488
4469
|
_sfc_main$l as RadioTabsItem,
|
|
3489
4470
|
_sfc_main$m as RadioTabsRoot,
|
|
3490
4471
|
_sfc_main as SavingIndicator,
|
|
3491
|
-
_sfc_main$
|
|
4472
|
+
_sfc_main$1j as ScrollArea,
|
|
3492
4473
|
_sfc_main$C as SelectContent,
|
|
3493
4474
|
SelectGroup,
|
|
3494
4475
|
_sfc_main$A as SelectItem,
|
|
@@ -3497,21 +4478,37 @@ export {
|
|
|
3497
4478
|
SelectSeparator,
|
|
3498
4479
|
_sfc_main$B as SelectTrigger,
|
|
3499
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,
|
|
3500
4497
|
SpinnerIcon,
|
|
3501
|
-
_sfc_main$
|
|
4498
|
+
_sfc_main$N as Switch,
|
|
3502
4499
|
_sfc_main$3 as Table,
|
|
3503
4500
|
TabsContent,
|
|
3504
4501
|
_sfc_main$k as TabsList,
|
|
3505
4502
|
TabsRoot,
|
|
3506
4503
|
_sfc_main$j as TabsTrigger,
|
|
3507
|
-
_sfc_main$
|
|
3508
|
-
_sfc_main$
|
|
3509
|
-
_sfc_main$
|
|
4504
|
+
_sfc_main$H as TextArea,
|
|
4505
|
+
_sfc_main$I as TextField,
|
|
4506
|
+
_sfc_main$1q as ThemeProvider,
|
|
3510
4507
|
_sfc_main$4 as ToastProvider,
|
|
3511
|
-
_sfc_main$
|
|
3512
|
-
_sfc_main$
|
|
3513
|
-
_sfc_main$
|
|
3514
|
-
_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,
|
|
3515
4512
|
buildPropsClass,
|
|
3516
4513
|
injectThemeContext,
|
|
3517
4514
|
provideThemeContext,
|