@tb-dev/vue 0.3.8 → 0.3.10
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/dist/components/__base/combobox/Combobox.vue.d.ts +33 -0
- package/dist/components/__base/combobox/ComboboxAnchor.vue.d.ts +22 -0
- package/dist/components/__base/combobox/ComboboxEmpty.vue.d.ts +22 -0
- package/dist/components/__base/combobox/ComboboxGroup.vue.d.ts +23 -0
- package/dist/components/__base/combobox/ComboboxInput.vue.d.ts +26 -0
- package/dist/components/__base/combobox/ComboboxItem.vue.d.ts +26 -0
- package/dist/components/__base/combobox/ComboboxItemIndicator.vue.d.ts +22 -0
- package/dist/components/__base/combobox/ComboboxList.vue.d.ts +53 -0
- package/dist/components/__base/combobox/ComboboxSeparator.vue.d.ts +22 -0
- package/dist/components/__base/combobox/ComboboxViewport.vue.d.ts +22 -0
- package/dist/components/__base/combobox/index.d.ts +11 -0
- package/dist/components/__base/context-menu/ContextMenuSubContent.vue.d.ts +4 -4
- package/dist/components/__base/dialog/DialogContent.vue.d.ts +2 -2
- package/dist/components/__base/dialog/DialogScrollContent.vue.d.ts +2 -2
- package/dist/components/__base/dropdown-menu/DropdownMenuSubContent.vue.d.ts +4 -4
- package/dist/components/__base/menubar/Menubar.vue.d.ts +26 -0
- package/dist/components/__base/menubar/MenubarCheckboxItem.vue.d.ts +28 -0
- package/dist/components/__base/menubar/MenubarContent.vue.d.ts +26 -0
- package/dist/components/__base/menubar/MenubarGroup.vue.d.ts +18 -0
- package/dist/components/__base/menubar/MenubarItem.vue.d.ts +28 -0
- package/dist/components/__base/menubar/MenubarLabel.vue.d.ts +23 -0
- package/dist/components/__base/menubar/MenubarMenu.vue.d.ts +18 -0
- package/dist/components/__base/menubar/MenubarRadioGroup.vue.d.ts +22 -0
- package/dist/components/__base/menubar/MenubarRadioItem.vue.d.ts +26 -0
- package/dist/components/__base/menubar/MenubarSeparator.vue.d.ts +7 -0
- package/dist/components/__base/menubar/MenubarShortcut.vue.d.ts +21 -0
- package/dist/components/__base/menubar/MenubarSub.vue.d.ts +25 -0
- package/dist/components/__base/menubar/MenubarSubContent.vue.d.ts +54 -0
- package/dist/components/__base/menubar/MenubarSubTrigger.vue.d.ts +23 -0
- package/dist/components/__base/menubar/MenubarTrigger.vue.d.ts +22 -0
- package/dist/components/__base/menubar/index.d.ts +15 -0
- package/dist/components/__base/pagination/Pagination.vue.d.ts +29 -0
- package/dist/components/__base/pagination/PaginationContent.vue.d.ts +29 -0
- package/dist/components/__base/pagination/PaginationEllipsis.vue.d.ts +22 -0
- package/dist/components/__base/pagination/PaginationFirst.vue.d.ts +26 -0
- package/dist/components/__base/pagination/PaginationItem.vue.d.ts +27 -0
- package/dist/components/__base/pagination/PaginationLast.vue.d.ts +26 -0
- package/dist/components/__base/pagination/PaginationNext.vue.d.ts +26 -0
- package/dist/components/__base/pagination/PaginationPrevious.vue.d.ts +26 -0
- package/dist/components/__base/pagination/index.d.ts +8 -0
- package/dist/components/__base/popover/PopoverContent.vue.d.ts +2 -2
- package/dist/components/__base/sheet/SheetContent.vue.d.ts +2 -2
- package/dist/components/__base/switch/Switch.vue.d.ts +26 -0
- package/dist/components/__base/switch/index.d.ts +1 -0
- package/dist/components/card/Card.vue.d.ts +6 -11
- package/dist/components/card/index.d.ts +1 -0
- package/dist/components/card/types.d.ts +9 -0
- package/dist/components/combobox/index.d.ts +1 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/components/menubar/index.d.ts +1 -0
- package/dist/components/pagination/index.d.ts +1 -0
- package/dist/components/switch/index.d.ts +1 -0
- package/dist/index.js +1951 -818
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { cva } from 'class-variance-authority';
|
|
2
|
-
import { inject as inject$1, toValue, defineComponent, computed, createBlock, openBlock, unref, mergeProps, withCtx, renderSlot, normalizeClass, createElementBlock, Fragment, createVNode, toDisplayString, resolveDynamicComponent, createCommentVNode, normalizeStyle, createElementVNode, withDirectives, isRef, vModelText,
|
|
2
|
+
import { inject as inject$1, toValue, defineComponent, computed, createBlock, openBlock, unref, mergeProps, withCtx, renderSlot, normalizeClass, createElementBlock, Fragment, createVNode, toDisplayString, resolveDynamicComponent, createCommentVNode, normalizeStyle, createTextVNode, createElementVNode, withDirectives, isRef, vModelText, normalizeProps, guardReactiveProps, ref, toRef, effectScope } from 'vue';
|
|
3
3
|
import { twMerge } from 'tailwind-merge';
|
|
4
4
|
import { clsx } from 'clsx';
|
|
5
5
|
import { unwrap, isNil, toPixel } from '@tb-dev/utils';
|
|
6
|
-
import { Primitive, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaRoot, ScrollAreaViewport, ScrollAreaCorner, useForwardPropsEmits, CheckboxRoot, CheckboxIndicator, ContextMenuRoot, ContextMenuCheckboxItem, ContextMenuItemIndicator, ContextMenuPortal, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuSub, ContextMenuSubContent,
|
|
7
|
-
export { DropdownMenuPortal } from 'reka-ui';
|
|
6
|
+
import { Primitive, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaRoot, ScrollAreaViewport, ScrollAreaCorner, useForwardPropsEmits, CheckboxRoot, CheckboxIndicator, ComboboxRoot, useForwardProps, ComboboxAnchor, ComboboxEmpty, ComboboxGroup, ComboboxLabel, ComboboxInput, ComboboxItem, ComboboxItemIndicator, ComboboxPortal, ComboboxContent, ComboboxSeparator, ComboboxViewport, ContextMenuRoot, ContextMenuCheckboxItem, ContextMenuItemIndicator, ContextMenuPortal, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DialogRoot, DialogClose, DialogOverlay, DialogPortal, DialogContent, DialogDescription, DialogTitle, DialogTrigger, DropdownMenuRoot, DropdownMenuCheckboxItem, DropdownMenuItemIndicator, DropdownMenuPortal, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Label, NumberFieldRoot, NumberFieldDecrement, NumberFieldIncrement, NumberFieldInput, MenubarRoot, MenubarCheckboxItem, MenubarItemIndicator, MenubarPortal, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, PaginationRoot, PaginationList, PaginationEllipsis, PaginationFirst, PaginationListItem, PaginationLast, PaginationNext, PaginationPrev, PopoverRoot, PopoverAnchor, PopoverPortal, PopoverContent, PopoverTrigger, ProgressRoot, ProgressIndicator, RadioGroupRoot, RadioGroupItem, RadioGroupIndicator, SelectRoot, SelectPortal, SelectContent, SelectViewport, SelectGroup, SelectItem, SelectItemIndicator, SelectItemText, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectIcon, SelectValue, Separator, createContext, TooltipRoot, TooltipPortal, TooltipContent, TooltipArrow, TooltipProvider, TooltipTrigger, SwitchRoot, SwitchThumb, TabsRoot, TabsContent, TabsList, TabsTrigger, TagsInputRoot, TagsInputInput, TagsInputItem, TagsInputItemDelete, TagsInputItemText, Toggle } from 'reka-ui';
|
|
7
|
+
export { ComboboxCancel, ComboboxTrigger, DropdownMenuPortal } from 'reka-ui';
|
|
8
8
|
import { RouterLink } from 'vue-router';
|
|
9
9
|
import { createReusableTemplate, reactiveOmit, useVModel, useMediaQuery, useEventListener, computedAsync, useAsyncState, useWindowSize, useElementSize as useElementSize$1, tryOnScopeDispose, onKeyStroke, useLocalStorage } from '@vueuse/core';
|
|
10
|
-
import { Check, Circle, ChevronRight, X, Minus, Plus, CircleIcon, ChevronDown, ChevronUp, PanelLeft } from 'lucide-vue-next';
|
|
10
|
+
import { Check, SearchIcon, Circle, ChevronRight, X, Minus, Plus, MoreHorizontal, ChevronLeftIcon, ChevronRightIcon, CircleIcon, ChevronDown, ChevronUp, PanelLeft } from 'lucide-vue-next';
|
|
11
11
|
|
|
12
12
|
function create$1() {
|
|
13
13
|
let APP = null;
|
|
@@ -88,7 +88,7 @@ function cn(...inputs) {
|
|
|
88
88
|
return twMerge(clsx(inputs));
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
const _sfc_main$
|
|
91
|
+
const _sfc_main$2L = /* @__PURE__ */ defineComponent({
|
|
92
92
|
__name: "Badge",
|
|
93
93
|
props: {
|
|
94
94
|
asChild: { type: Boolean },
|
|
@@ -133,7 +133,7 @@ const badgeVariants = cva(
|
|
|
133
133
|
}
|
|
134
134
|
);
|
|
135
135
|
|
|
136
|
-
const _sfc_main$
|
|
136
|
+
const _sfc_main$2K = /* @__PURE__ */ defineComponent({
|
|
137
137
|
__name: "Button",
|
|
138
138
|
props: {
|
|
139
139
|
variant: {},
|
|
@@ -186,9 +186,9 @@ const buttonVariants = cva(
|
|
|
186
186
|
}
|
|
187
187
|
);
|
|
188
188
|
|
|
189
|
-
const _hoisted_1$
|
|
189
|
+
const _hoisted_1$e = { key: 0 };
|
|
190
190
|
const _hoisted_2$1 = { key: 0 };
|
|
191
|
-
const _sfc_main$
|
|
191
|
+
const _sfc_main$2J = /* @__PURE__ */ defineComponent({
|
|
192
192
|
__name: "ButtonLink",
|
|
193
193
|
props: {
|
|
194
194
|
buttonClass: {},
|
|
@@ -204,14 +204,14 @@ const _sfc_main$2a = /* @__PURE__ */ defineComponent({
|
|
|
204
204
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
205
205
|
createVNode(unref(DefineTemplate), null, {
|
|
206
206
|
default: withCtx(() => [
|
|
207
|
-
createVNode(unref(_sfc_main$
|
|
207
|
+
createVNode(unref(_sfc_main$2K), {
|
|
208
208
|
variant: _ctx.variant,
|
|
209
209
|
size: _ctx.size,
|
|
210
210
|
disabled: _ctx.disabled,
|
|
211
211
|
class: normalizeClass(unref(cn)("size-full", _ctx.buttonClass))
|
|
212
212
|
}, {
|
|
213
213
|
default: withCtx(() => [
|
|
214
|
-
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
214
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$e, toDisplayString(_ctx.label), 1)) : renderSlot(_ctx.$slots, "default", { key: 1 })
|
|
215
215
|
]),
|
|
216
216
|
_: 3
|
|
217
217
|
}, 8, ["variant", "size", "disabled", "class"])
|
|
@@ -234,7 +234,7 @@ const _sfc_main$2a = /* @__PURE__ */ defineComponent({
|
|
|
234
234
|
}
|
|
235
235
|
});
|
|
236
236
|
|
|
237
|
-
const _sfc_main$
|
|
237
|
+
const _sfc_main$2I = /* @__PURE__ */ defineComponent({
|
|
238
238
|
__name: "ButtonIcon",
|
|
239
239
|
props: {
|
|
240
240
|
buttonClass: {},
|
|
@@ -247,7 +247,7 @@ const _sfc_main$29 = /* @__PURE__ */ defineComponent({
|
|
|
247
247
|
setup(__props) {
|
|
248
248
|
const props = __props;
|
|
249
249
|
return (_ctx, _cache) => {
|
|
250
|
-
return _ctx.to ? (openBlock(), createBlock(unref(_sfc_main$
|
|
250
|
+
return _ctx.to ? (openBlock(), createBlock(unref(_sfc_main$2J), {
|
|
251
251
|
key: 0,
|
|
252
252
|
to: _ctx.to,
|
|
253
253
|
variant: "ghost",
|
|
@@ -262,7 +262,7 @@ const _sfc_main$29 = /* @__PURE__ */ defineComponent({
|
|
|
262
262
|
}, null, 8, ["class", "size"]))
|
|
263
263
|
]),
|
|
264
264
|
_: 1
|
|
265
|
-
}, 8, ["to", "class", "button-class"])) : (openBlock(), createBlock(unref(_sfc_main$
|
|
265
|
+
}, 8, ["to", "class", "button-class"])) : (openBlock(), createBlock(unref(_sfc_main$2K), {
|
|
266
266
|
key: 1,
|
|
267
267
|
variant: "ghost",
|
|
268
268
|
size: "icon",
|
|
@@ -280,7 +280,7 @@ const _sfc_main$29 = /* @__PURE__ */ defineComponent({
|
|
|
280
280
|
}
|
|
281
281
|
});
|
|
282
282
|
|
|
283
|
-
const _sfc_main$
|
|
283
|
+
const _sfc_main$2H = /* @__PURE__ */ defineComponent({
|
|
284
284
|
__name: "ScrollBar",
|
|
285
285
|
props: {
|
|
286
286
|
orientation: { default: "vertical" },
|
|
@@ -316,7 +316,7 @@ const _sfc_main$28 = /* @__PURE__ */ defineComponent({
|
|
|
316
316
|
}
|
|
317
317
|
});
|
|
318
318
|
|
|
319
|
-
const _sfc_main$
|
|
319
|
+
const _sfc_main$2G = /* @__PURE__ */ defineComponent({
|
|
320
320
|
__name: "ScrollArea",
|
|
321
321
|
props: {
|
|
322
322
|
type: {},
|
|
@@ -346,7 +346,7 @@ const _sfc_main$27 = /* @__PURE__ */ defineComponent({
|
|
|
346
346
|
]),
|
|
347
347
|
_: 3
|
|
348
348
|
}),
|
|
349
|
-
createVNode(_sfc_main$
|
|
349
|
+
createVNode(_sfc_main$2H),
|
|
350
350
|
createVNode(unref(ScrollAreaCorner))
|
|
351
351
|
]),
|
|
352
352
|
_: 3
|
|
@@ -355,7 +355,7 @@ const _sfc_main$27 = /* @__PURE__ */ defineComponent({
|
|
|
355
355
|
}
|
|
356
356
|
});
|
|
357
357
|
|
|
358
|
-
const _sfc_main$
|
|
358
|
+
const _sfc_main$2F = /* @__PURE__ */ defineComponent({
|
|
359
359
|
__name: "Card",
|
|
360
360
|
props: {
|
|
361
361
|
class: {}
|
|
@@ -378,7 +378,7 @@ const _sfc_main$26 = /* @__PURE__ */ defineComponent({
|
|
|
378
378
|
}
|
|
379
379
|
});
|
|
380
380
|
|
|
381
|
-
const _sfc_main$
|
|
381
|
+
const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
382
382
|
__name: "CardContent",
|
|
383
383
|
props: {
|
|
384
384
|
class: {}
|
|
@@ -396,7 +396,7 @@ const _sfc_main$25 = /* @__PURE__ */ defineComponent({
|
|
|
396
396
|
}
|
|
397
397
|
});
|
|
398
398
|
|
|
399
|
-
const _sfc_main$
|
|
399
|
+
const _sfc_main$2D = /* @__PURE__ */ defineComponent({
|
|
400
400
|
__name: "CardDescription",
|
|
401
401
|
props: {
|
|
402
402
|
class: {}
|
|
@@ -414,7 +414,25 @@ const _sfc_main$24 = /* @__PURE__ */ defineComponent({
|
|
|
414
414
|
}
|
|
415
415
|
});
|
|
416
416
|
|
|
417
|
-
const _sfc_main$
|
|
417
|
+
const _sfc_main$2C = /* @__PURE__ */ defineComponent({
|
|
418
|
+
__name: "CardFooter",
|
|
419
|
+
props: {
|
|
420
|
+
class: {}
|
|
421
|
+
},
|
|
422
|
+
setup(__props) {
|
|
423
|
+
const props = __props;
|
|
424
|
+
return (_ctx, _cache) => {
|
|
425
|
+
return openBlock(), createElementBlock("div", {
|
|
426
|
+
"data-slot": "card-footer",
|
|
427
|
+
class: normalizeClass(unref(cn)("flex items-center px-6 [.border-t]:pt-6", props.class))
|
|
428
|
+
}, [
|
|
429
|
+
renderSlot(_ctx.$slots, "default")
|
|
430
|
+
], 2);
|
|
431
|
+
};
|
|
432
|
+
}
|
|
433
|
+
});
|
|
434
|
+
|
|
435
|
+
const _sfc_main$2B = /* @__PURE__ */ defineComponent({
|
|
418
436
|
__name: "CardHeader",
|
|
419
437
|
props: {
|
|
420
438
|
class: {}
|
|
@@ -437,7 +455,7 @@ const _sfc_main$23 = /* @__PURE__ */ defineComponent({
|
|
|
437
455
|
}
|
|
438
456
|
});
|
|
439
457
|
|
|
440
|
-
const _sfc_main$
|
|
458
|
+
const _sfc_main$2A = /* @__PURE__ */ defineComponent({
|
|
441
459
|
__name: "CardTitle",
|
|
442
460
|
props: {
|
|
443
461
|
class: {}
|
|
@@ -455,11 +473,12 @@ const _sfc_main$22 = /* @__PURE__ */ defineComponent({
|
|
|
455
473
|
}
|
|
456
474
|
});
|
|
457
475
|
|
|
458
|
-
const _sfc_main$
|
|
476
|
+
const _sfc_main$2z = /* @__PURE__ */ defineComponent({
|
|
459
477
|
__name: "Card",
|
|
460
478
|
props: {
|
|
461
479
|
contentClass: {},
|
|
462
480
|
descriptionClass: {},
|
|
481
|
+
footerClass: {},
|
|
463
482
|
headerClass: {},
|
|
464
483
|
scrollAreaClass: {},
|
|
465
484
|
scrollAreaHeight: { default: "auto" },
|
|
@@ -467,14 +486,14 @@ const _sfc_main$21 = /* @__PURE__ */ defineComponent({
|
|
|
467
486
|
},
|
|
468
487
|
setup(__props) {
|
|
469
488
|
return (_ctx, _cache) => {
|
|
470
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
489
|
+
return openBlock(), createBlock(unref(_sfc_main$2F), null, {
|
|
471
490
|
default: withCtx(() => [
|
|
472
|
-
_ctx.$slots.title ? (openBlock(), createBlock(unref(_sfc_main$
|
|
491
|
+
_ctx.$slots.title ? (openBlock(), createBlock(unref(_sfc_main$2B), {
|
|
473
492
|
key: 0,
|
|
474
493
|
class: normalizeClass(_ctx.headerClass)
|
|
475
494
|
}, {
|
|
476
495
|
default: withCtx(() => [
|
|
477
|
-
createVNode(unref(_sfc_main$
|
|
496
|
+
createVNode(unref(_sfc_main$2A), {
|
|
478
497
|
class: normalizeClass(_ctx.titleClass)
|
|
479
498
|
}, {
|
|
480
499
|
default: withCtx(() => [
|
|
@@ -482,7 +501,7 @@ const _sfc_main$21 = /* @__PURE__ */ defineComponent({
|
|
|
482
501
|
]),
|
|
483
502
|
_: 3
|
|
484
503
|
}, 8, ["class"]),
|
|
485
|
-
_ctx.$slots.description ? (openBlock(), createBlock(unref(_sfc_main$
|
|
504
|
+
_ctx.$slots.description ? (openBlock(), createBlock(unref(_sfc_main$2D), {
|
|
486
505
|
key: 0,
|
|
487
506
|
class: normalizeClass(_ctx.descriptionClass)
|
|
488
507
|
}, {
|
|
@@ -494,11 +513,12 @@ const _sfc_main$21 = /* @__PURE__ */ defineComponent({
|
|
|
494
513
|
]),
|
|
495
514
|
_: 3
|
|
496
515
|
}, 8, ["class"])) : createCommentVNode("", true),
|
|
497
|
-
|
|
516
|
+
_ctx.$slots.default ? (openBlock(), createBlock(unref(_sfc_main$2E), {
|
|
517
|
+
key: 1,
|
|
498
518
|
class: normalizeClass(unref(cn)("p-0", _ctx.contentClass))
|
|
499
519
|
}, {
|
|
500
520
|
default: withCtx(() => [
|
|
501
|
-
_ctx.scrollAreaHeight && _ctx.scrollAreaHeight !== "auto" ? (openBlock(), createBlock(unref(_sfc_main$
|
|
521
|
+
_ctx.scrollAreaHeight && _ctx.scrollAreaHeight !== "auto" ? (openBlock(), createBlock(unref(_sfc_main$2G), {
|
|
502
522
|
key: 0,
|
|
503
523
|
class: normalizeClass(_ctx.scrollAreaClass),
|
|
504
524
|
style: normalizeStyle({ height: unref(toPixel)(_ctx.scrollAreaHeight) })
|
|
@@ -510,7 +530,16 @@ const _sfc_main$21 = /* @__PURE__ */ defineComponent({
|
|
|
510
530
|
}, 8, ["class", "style"])) : renderSlot(_ctx.$slots, "default", { key: 1 })
|
|
511
531
|
]),
|
|
512
532
|
_: 3
|
|
513
|
-
}, 8, ["class"])
|
|
533
|
+
}, 8, ["class"])) : createCommentVNode("", true),
|
|
534
|
+
_ctx.$slots.footer ? (openBlock(), createBlock(unref(_sfc_main$2C), {
|
|
535
|
+
key: 2,
|
|
536
|
+
class: normalizeClass(_ctx.footerClass)
|
|
537
|
+
}, {
|
|
538
|
+
default: withCtx(() => [
|
|
539
|
+
renderSlot(_ctx.$slots, "footer")
|
|
540
|
+
]),
|
|
541
|
+
_: 3
|
|
542
|
+
}, 8, ["class"])) : createCommentVNode("", true)
|
|
514
543
|
]),
|
|
515
544
|
_: 3
|
|
516
545
|
});
|
|
@@ -518,7 +547,7 @@ const _sfc_main$21 = /* @__PURE__ */ defineComponent({
|
|
|
518
547
|
}
|
|
519
548
|
});
|
|
520
549
|
|
|
521
|
-
const _sfc_main$
|
|
550
|
+
const _sfc_main$2y = /* @__PURE__ */ defineComponent({
|
|
522
551
|
__name: "Checkbox",
|
|
523
552
|
props: {
|
|
524
553
|
defaultValue: { type: [Boolean, String] },
|
|
@@ -567,19 +596,33 @@ const _sfc_main$20 = /* @__PURE__ */ defineComponent({
|
|
|
567
596
|
}
|
|
568
597
|
});
|
|
569
598
|
|
|
570
|
-
const _sfc_main$
|
|
571
|
-
__name: "
|
|
599
|
+
const _sfc_main$2x = /* @__PURE__ */ defineComponent({
|
|
600
|
+
__name: "Combobox",
|
|
572
601
|
props: {
|
|
602
|
+
open: { type: Boolean },
|
|
603
|
+
defaultOpen: { type: Boolean },
|
|
604
|
+
resetSearchTermOnBlur: { type: Boolean },
|
|
605
|
+
resetSearchTermOnSelect: { type: Boolean },
|
|
606
|
+
ignoreFilter: { type: Boolean },
|
|
607
|
+
modelValue: {},
|
|
608
|
+
defaultValue: {},
|
|
609
|
+
multiple: { type: Boolean },
|
|
573
610
|
dir: {},
|
|
574
|
-
|
|
611
|
+
disabled: { type: Boolean },
|
|
612
|
+
highlightOnHover: { type: Boolean },
|
|
613
|
+
by: { type: [String, Function] },
|
|
614
|
+
asChild: { type: Boolean },
|
|
615
|
+
as: {},
|
|
616
|
+
name: {},
|
|
617
|
+
required: { type: Boolean }
|
|
575
618
|
},
|
|
576
|
-
emits: ["update:open"],
|
|
619
|
+
emits: ["update:modelValue", "highlight", "update:open"],
|
|
577
620
|
setup(__props, { emit: __emit }) {
|
|
578
621
|
const props = __props;
|
|
579
622
|
const emits = __emit;
|
|
580
623
|
const forwarded = useForwardPropsEmits(props, emits);
|
|
581
624
|
return (_ctx, _cache) => {
|
|
582
|
-
return openBlock(), createBlock(unref(
|
|
625
|
+
return openBlock(), createBlock(unref(ComboboxRoot), mergeProps({ "data-slot": "combobox" }, unref(forwarded)), {
|
|
583
626
|
default: withCtx(() => [
|
|
584
627
|
renderSlot(_ctx.$slots, "default")
|
|
585
628
|
]),
|
|
@@ -589,42 +632,26 @@ const _sfc_main$1$ = /* @__PURE__ */ defineComponent({
|
|
|
589
632
|
}
|
|
590
633
|
});
|
|
591
634
|
|
|
592
|
-
const
|
|
593
|
-
|
|
594
|
-
__name: "ContextMenuCheckboxItem",
|
|
635
|
+
const _sfc_main$2w = /* @__PURE__ */ defineComponent({
|
|
636
|
+
__name: "ComboboxAnchor",
|
|
595
637
|
props: {
|
|
596
|
-
|
|
597
|
-
disabled: { type: Boolean },
|
|
598
|
-
textValue: {},
|
|
638
|
+
reference: {},
|
|
599
639
|
asChild: { type: Boolean },
|
|
600
640
|
as: {},
|
|
601
641
|
class: {}
|
|
602
642
|
},
|
|
603
|
-
|
|
604
|
-
setup(__props, { emit: __emit }) {
|
|
643
|
+
setup(__props) {
|
|
605
644
|
const props = __props;
|
|
606
|
-
const emits = __emit;
|
|
607
645
|
const delegatedProps = computed(() => {
|
|
608
646
|
const { class: _, ...delegated } = props;
|
|
609
647
|
return delegated;
|
|
610
648
|
});
|
|
611
|
-
const forwarded =
|
|
649
|
+
const forwarded = useForwardProps(delegatedProps);
|
|
612
650
|
return (_ctx, _cache) => {
|
|
613
|
-
return openBlock(), createBlock(unref(
|
|
614
|
-
class: unref(cn)(
|
|
615
|
-
`focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,
|
|
616
|
-
props.class
|
|
617
|
-
)
|
|
651
|
+
return openBlock(), createBlock(unref(ComboboxAnchor), mergeProps({ "data-slot": "combobox-anchor" }, unref(forwarded), {
|
|
652
|
+
class: unref(cn)("w-[200px]", props.class)
|
|
618
653
|
}), {
|
|
619
654
|
default: withCtx(() => [
|
|
620
|
-
createElementVNode("span", _hoisted_1$a, [
|
|
621
|
-
createVNode(unref(ContextMenuItemIndicator), null, {
|
|
622
|
-
default: withCtx(() => [
|
|
623
|
-
createVNode(unref(Check), { class: "size-4" })
|
|
624
|
-
]),
|
|
625
|
-
_: 1
|
|
626
|
-
})
|
|
627
|
-
]),
|
|
628
655
|
renderSlot(_ctx.$slots, "default")
|
|
629
656
|
]),
|
|
630
657
|
_: 3
|
|
@@ -633,84 +660,124 @@ const _sfc_main$1_ = /* @__PURE__ */ defineComponent({
|
|
|
633
660
|
}
|
|
634
661
|
});
|
|
635
662
|
|
|
636
|
-
const _sfc_main$
|
|
637
|
-
__name: "
|
|
663
|
+
const _sfc_main$2v = /* @__PURE__ */ defineComponent({
|
|
664
|
+
__name: "ComboboxEmpty",
|
|
638
665
|
props: {
|
|
639
|
-
forceMount: { type: Boolean },
|
|
640
|
-
loop: { type: Boolean },
|
|
641
|
-
alignOffset: {},
|
|
642
|
-
avoidCollisions: { type: Boolean },
|
|
643
|
-
collisionBoundary: {},
|
|
644
|
-
collisionPadding: {},
|
|
645
|
-
sticky: {},
|
|
646
|
-
hideWhenDetached: { type: Boolean },
|
|
647
|
-
positionStrategy: {},
|
|
648
|
-
disableUpdateOnLayoutShift: { type: Boolean },
|
|
649
|
-
prioritizePosition: { type: Boolean },
|
|
650
|
-
reference: {},
|
|
651
666
|
asChild: { type: Boolean },
|
|
652
667
|
as: {},
|
|
653
668
|
class: {}
|
|
654
669
|
},
|
|
655
|
-
|
|
656
|
-
setup(__props, { emit: __emit }) {
|
|
670
|
+
setup(__props) {
|
|
657
671
|
const props = __props;
|
|
658
|
-
const emits = __emit;
|
|
659
672
|
const delegatedProps = computed(() => {
|
|
660
673
|
const { class: _, ...delegated } = props;
|
|
661
674
|
return delegated;
|
|
662
675
|
});
|
|
663
|
-
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
664
676
|
return (_ctx, _cache) => {
|
|
665
|
-
return openBlock(), createBlock(unref(
|
|
677
|
+
return openBlock(), createBlock(unref(ComboboxEmpty), mergeProps({ "data-slot": "combobox-empty" }, delegatedProps.value, {
|
|
678
|
+
class: unref(cn)("py-6 text-center text-sm", props.class)
|
|
679
|
+
}), {
|
|
666
680
|
default: withCtx(() => [
|
|
667
|
-
|
|
668
|
-
class: unref(cn)(
|
|
669
|
-
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--reka-context-menu-content-available-height) min-w-[8rem] overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
|
|
670
|
-
props.class
|
|
671
|
-
)
|
|
672
|
-
}), {
|
|
673
|
-
default: withCtx(() => [
|
|
674
|
-
renderSlot(_ctx.$slots, "default")
|
|
675
|
-
]),
|
|
676
|
-
_: 3
|
|
677
|
-
}, 16, ["class"])
|
|
681
|
+
renderSlot(_ctx.$slots, "default")
|
|
678
682
|
]),
|
|
679
683
|
_: 3
|
|
680
|
-
});
|
|
684
|
+
}, 16, ["class"]);
|
|
681
685
|
};
|
|
682
686
|
}
|
|
683
687
|
});
|
|
684
688
|
|
|
685
|
-
const _sfc_main$
|
|
686
|
-
__name: "
|
|
689
|
+
const _sfc_main$2u = /* @__PURE__ */ defineComponent({
|
|
690
|
+
__name: "ComboboxGroup",
|
|
687
691
|
props: {
|
|
688
692
|
asChild: { type: Boolean },
|
|
689
|
-
as: {}
|
|
693
|
+
as: {},
|
|
694
|
+
class: {},
|
|
695
|
+
heading: {}
|
|
690
696
|
},
|
|
691
697
|
setup(__props) {
|
|
692
698
|
const props = __props;
|
|
699
|
+
const delegatedProps = computed(() => {
|
|
700
|
+
const { class: _, ...delegated } = props;
|
|
701
|
+
return delegated;
|
|
702
|
+
});
|
|
693
703
|
return (_ctx, _cache) => {
|
|
694
|
-
return openBlock(), createBlock(unref(
|
|
704
|
+
return openBlock(), createBlock(unref(ComboboxGroup), mergeProps({ "data-slot": "combobox-group" }, delegatedProps.value, {
|
|
705
|
+
class: unref(cn)("overflow-hidden p-1 text-foreground", props.class)
|
|
706
|
+
}), {
|
|
695
707
|
default: withCtx(() => [
|
|
708
|
+
_ctx.heading ? (openBlock(), createBlock(unref(ComboboxLabel), {
|
|
709
|
+
key: 0,
|
|
710
|
+
class: "px-2 py-1.5 text-xs font-medium text-muted-foreground"
|
|
711
|
+
}, {
|
|
712
|
+
default: withCtx(() => [
|
|
713
|
+
createTextVNode(toDisplayString(_ctx.heading), 1)
|
|
714
|
+
]),
|
|
715
|
+
_: 1
|
|
716
|
+
})) : createCommentVNode("", true),
|
|
696
717
|
renderSlot(_ctx.$slots, "default")
|
|
697
718
|
]),
|
|
698
719
|
_: 3
|
|
699
|
-
}, 16);
|
|
720
|
+
}, 16, ["class"]);
|
|
700
721
|
};
|
|
701
722
|
}
|
|
702
723
|
});
|
|
703
724
|
|
|
704
|
-
const
|
|
705
|
-
|
|
725
|
+
const _hoisted_1$d = {
|
|
726
|
+
"data-slot": "command-input-wrapper",
|
|
727
|
+
class: "flex h-9 items-center gap-2 border-b px-3"
|
|
728
|
+
};
|
|
729
|
+
const _sfc_main$2t = /* @__PURE__ */ defineComponent({
|
|
730
|
+
...{
|
|
731
|
+
inheritAttrs: false
|
|
732
|
+
},
|
|
733
|
+
__name: "ComboboxInput",
|
|
706
734
|
props: {
|
|
735
|
+
displayValue: { type: Function },
|
|
736
|
+
modelValue: {},
|
|
737
|
+
autoFocus: { type: Boolean },
|
|
707
738
|
disabled: { type: Boolean },
|
|
739
|
+
asChild: { type: Boolean },
|
|
740
|
+
as: {},
|
|
741
|
+
class: {}
|
|
742
|
+
},
|
|
743
|
+
emits: ["update:modelValue"],
|
|
744
|
+
setup(__props, { emit: __emit }) {
|
|
745
|
+
const props = __props;
|
|
746
|
+
const emits = __emit;
|
|
747
|
+
const delegatedProps = computed(() => {
|
|
748
|
+
const { class: _, ...delegated } = props;
|
|
749
|
+
return delegated;
|
|
750
|
+
});
|
|
751
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
752
|
+
return (_ctx, _cache) => {
|
|
753
|
+
return openBlock(), createElementBlock("div", _hoisted_1$d, [
|
|
754
|
+
createVNode(unref(SearchIcon), { class: "size-4 shrink-0 opacity-50" }),
|
|
755
|
+
createVNode(unref(ComboboxInput), mergeProps({
|
|
756
|
+
"data-slot": "command-input",
|
|
757
|
+
class: unref(cn)(
|
|
758
|
+
"placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
|
|
759
|
+
props.class
|
|
760
|
+
)
|
|
761
|
+
}, { ...unref(forwarded), ..._ctx.$attrs }), {
|
|
762
|
+
default: withCtx(() => [
|
|
763
|
+
renderSlot(_ctx.$slots, "default")
|
|
764
|
+
]),
|
|
765
|
+
_: 3
|
|
766
|
+
}, 16, ["class"])
|
|
767
|
+
]);
|
|
768
|
+
};
|
|
769
|
+
}
|
|
770
|
+
});
|
|
771
|
+
|
|
772
|
+
const _sfc_main$2s = /* @__PURE__ */ defineComponent({
|
|
773
|
+
__name: "ComboboxItem",
|
|
774
|
+
props: {
|
|
708
775
|
textValue: {},
|
|
776
|
+
value: {},
|
|
777
|
+
disabled: { type: Boolean },
|
|
709
778
|
asChild: { type: Boolean },
|
|
710
779
|
as: {},
|
|
711
|
-
class: {}
|
|
712
|
-
inset: { type: Boolean },
|
|
713
|
-
variant: { default: "default" }
|
|
780
|
+
class: {}
|
|
714
781
|
},
|
|
715
782
|
emits: ["select"],
|
|
716
783
|
setup(__props, { emit: __emit }) {
|
|
@@ -722,13 +789,9 @@ const _sfc_main$1X = /* @__PURE__ */ defineComponent({
|
|
|
722
789
|
});
|
|
723
790
|
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
724
791
|
return (_ctx, _cache) => {
|
|
725
|
-
return openBlock(), createBlock(unref(
|
|
726
|
-
"data-slot": "context-menu-item",
|
|
727
|
-
"data-inset": _ctx.inset ? "" : void 0,
|
|
728
|
-
"data-variant": _ctx.variant
|
|
729
|
-
}, unref(forwarded), {
|
|
792
|
+
return openBlock(), createBlock(unref(ComboboxItem), mergeProps({ "data-slot": "combobox-item" }, unref(forwarded), {
|
|
730
793
|
class: unref(cn)(
|
|
731
|
-
`
|
|
794
|
+
`data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,
|
|
732
795
|
props.class
|
|
733
796
|
)
|
|
734
797
|
}), {
|
|
@@ -736,18 +799,17 @@ const _sfc_main$1X = /* @__PURE__ */ defineComponent({
|
|
|
736
799
|
renderSlot(_ctx.$slots, "default")
|
|
737
800
|
]),
|
|
738
801
|
_: 3
|
|
739
|
-
}, 16, ["
|
|
802
|
+
}, 16, ["class"]);
|
|
740
803
|
};
|
|
741
804
|
}
|
|
742
805
|
});
|
|
743
806
|
|
|
744
|
-
const _sfc_main$
|
|
745
|
-
__name: "
|
|
807
|
+
const _sfc_main$2r = /* @__PURE__ */ defineComponent({
|
|
808
|
+
__name: "ComboboxItemIndicator",
|
|
746
809
|
props: {
|
|
747
810
|
asChild: { type: Boolean },
|
|
748
811
|
as: {},
|
|
749
|
-
class: {}
|
|
750
|
-
inset: { type: Boolean }
|
|
812
|
+
class: {}
|
|
751
813
|
},
|
|
752
814
|
setup(__props) {
|
|
753
815
|
const props = __props;
|
|
@@ -755,81 +817,92 @@ const _sfc_main$1W = /* @__PURE__ */ defineComponent({
|
|
|
755
817
|
const { class: _, ...delegated } = props;
|
|
756
818
|
return delegated;
|
|
757
819
|
});
|
|
820
|
+
const forwarded = useForwardProps(delegatedProps);
|
|
758
821
|
return (_ctx, _cache) => {
|
|
759
|
-
return openBlock(), createBlock(unref(
|
|
760
|
-
|
|
761
|
-
"data-inset": _ctx.inset ? "" : void 0
|
|
762
|
-
}, delegatedProps.value, {
|
|
763
|
-
class: unref(cn)("text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", props.class)
|
|
822
|
+
return openBlock(), createBlock(unref(ComboboxItemIndicator), mergeProps({ "data-slot": "combobox-item-indicator" }, unref(forwarded), {
|
|
823
|
+
class: unref(cn)("ml-auto", props.class)
|
|
764
824
|
}), {
|
|
765
825
|
default: withCtx(() => [
|
|
766
826
|
renderSlot(_ctx.$slots, "default")
|
|
767
827
|
]),
|
|
768
828
|
_: 3
|
|
769
|
-
}, 16, ["
|
|
829
|
+
}, 16, ["class"]);
|
|
770
830
|
};
|
|
771
831
|
}
|
|
772
832
|
});
|
|
773
833
|
|
|
774
|
-
const _sfc_main$
|
|
775
|
-
__name: "
|
|
834
|
+
const _sfc_main$2q = /* @__PURE__ */ defineComponent({
|
|
835
|
+
__name: "ComboboxList",
|
|
776
836
|
props: {
|
|
777
|
-
|
|
837
|
+
forceMount: { type: Boolean },
|
|
838
|
+
position: { default: "popper" },
|
|
839
|
+
bodyLock: { type: Boolean },
|
|
840
|
+
side: {},
|
|
841
|
+
sideOffset: { default: 4 },
|
|
842
|
+
align: { default: "center" },
|
|
843
|
+
alignOffset: {},
|
|
844
|
+
avoidCollisions: { type: Boolean },
|
|
845
|
+
collisionBoundary: {},
|
|
846
|
+
collisionPadding: {},
|
|
847
|
+
arrowPadding: {},
|
|
848
|
+
sticky: {},
|
|
849
|
+
hideWhenDetached: { type: Boolean },
|
|
850
|
+
positionStrategy: {},
|
|
851
|
+
updatePositionStrategy: {},
|
|
852
|
+
disableUpdateOnLayoutShift: { type: Boolean },
|
|
853
|
+
prioritizePosition: { type: Boolean },
|
|
854
|
+
reference: {},
|
|
778
855
|
asChild: { type: Boolean },
|
|
779
|
-
as: {}
|
|
856
|
+
as: {},
|
|
857
|
+
disableOutsidePointerEvents: { type: Boolean },
|
|
858
|
+
class: {},
|
|
859
|
+
viewportClass: {}
|
|
780
860
|
},
|
|
781
|
-
emits: ["
|
|
861
|
+
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside"],
|
|
782
862
|
setup(__props, { emit: __emit }) {
|
|
783
863
|
const props = __props;
|
|
784
864
|
const emits = __emit;
|
|
785
|
-
const
|
|
865
|
+
const delegatedProps = reactiveOmit(props, "class", "viewportClass");
|
|
866
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
786
867
|
return (_ctx, _cache) => {
|
|
787
|
-
return openBlock(), createBlock(unref(
|
|
868
|
+
return openBlock(), createBlock(unref(ComboboxPortal), null, {
|
|
788
869
|
default: withCtx(() => [
|
|
789
|
-
|
|
870
|
+
createVNode(unref(ComboboxContent), mergeProps({ "data-slot": "combobox-list" }, unref(forwarded), {
|
|
871
|
+
class: unref(cn)(
|
|
872
|
+
"z-50 w-[200px] rounded-md border bg-popover text-popover-foreground origin-(--reka-combobox-content-transform-origin) overflow-hidden shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
873
|
+
props.class
|
|
874
|
+
)
|
|
875
|
+
}), {
|
|
876
|
+
default: withCtx(() => [
|
|
877
|
+
renderSlot(_ctx.$slots, "default")
|
|
878
|
+
]),
|
|
879
|
+
_: 3
|
|
880
|
+
}, 16, ["class"])
|
|
790
881
|
]),
|
|
791
882
|
_: 3
|
|
792
|
-
}
|
|
883
|
+
});
|
|
793
884
|
};
|
|
794
885
|
}
|
|
795
886
|
});
|
|
796
887
|
|
|
797
|
-
const
|
|
798
|
-
|
|
799
|
-
__name: "ContextMenuRadioItem",
|
|
888
|
+
const _sfc_main$2p = /* @__PURE__ */ defineComponent({
|
|
889
|
+
__name: "ComboboxSeparator",
|
|
800
890
|
props: {
|
|
801
|
-
value: {},
|
|
802
|
-
disabled: { type: Boolean },
|
|
803
|
-
textValue: {},
|
|
804
891
|
asChild: { type: Boolean },
|
|
805
892
|
as: {},
|
|
806
893
|
class: {}
|
|
807
894
|
},
|
|
808
|
-
|
|
809
|
-
setup(__props, { emit: __emit }) {
|
|
895
|
+
setup(__props) {
|
|
810
896
|
const props = __props;
|
|
811
|
-
const emits = __emit;
|
|
812
897
|
const delegatedProps = computed(() => {
|
|
813
898
|
const { class: _, ...delegated } = props;
|
|
814
899
|
return delegated;
|
|
815
900
|
});
|
|
816
|
-
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
817
901
|
return (_ctx, _cache) => {
|
|
818
|
-
return openBlock(), createBlock(unref(
|
|
819
|
-
class: unref(cn)(
|
|
820
|
-
`focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,
|
|
821
|
-
props.class
|
|
822
|
-
)
|
|
902
|
+
return openBlock(), createBlock(unref(ComboboxSeparator), mergeProps({ "data-slot": "combobox-separator" }, delegatedProps.value, {
|
|
903
|
+
class: unref(cn)("bg-border -mx-1 h-px", props.class)
|
|
823
904
|
}), {
|
|
824
905
|
default: withCtx(() => [
|
|
825
|
-
createElementVNode("span", _hoisted_1$9, [
|
|
826
|
-
createVNode(unref(ContextMenuItemIndicator), null, {
|
|
827
|
-
default: withCtx(() => [
|
|
828
|
-
createVNode(unref(Circle), { class: "size-2 fill-current" })
|
|
829
|
-
]),
|
|
830
|
-
_: 1
|
|
831
|
-
})
|
|
832
|
-
]),
|
|
833
906
|
renderSlot(_ctx.$slots, "default")
|
|
834
907
|
]),
|
|
835
908
|
_: 3
|
|
@@ -838,9 +911,10 @@ const _sfc_main$1U = /* @__PURE__ */ defineComponent({
|
|
|
838
911
|
}
|
|
839
912
|
});
|
|
840
913
|
|
|
841
|
-
const _sfc_main$
|
|
842
|
-
__name: "
|
|
914
|
+
const _sfc_main$2o = /* @__PURE__ */ defineComponent({
|
|
915
|
+
__name: "ComboboxViewport",
|
|
843
916
|
props: {
|
|
917
|
+
nonce: {},
|
|
844
918
|
asChild: { type: Boolean },
|
|
845
919
|
as: {},
|
|
846
920
|
class: {}
|
|
@@ -851,69 +925,98 @@ const _sfc_main$1T = /* @__PURE__ */ defineComponent({
|
|
|
851
925
|
const { class: _, ...delegated } = props;
|
|
852
926
|
return delegated;
|
|
853
927
|
});
|
|
928
|
+
const forwarded = useForwardProps(delegatedProps);
|
|
854
929
|
return (_ctx, _cache) => {
|
|
855
|
-
return openBlock(), createBlock(unref(
|
|
856
|
-
class: unref(cn)("
|
|
857
|
-
}),
|
|
930
|
+
return openBlock(), createBlock(unref(ComboboxViewport), mergeProps({ "data-slot": "combobox-viewport" }, unref(forwarded), {
|
|
931
|
+
class: unref(cn)("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto", props.class)
|
|
932
|
+
}), {
|
|
933
|
+
default: withCtx(() => [
|
|
934
|
+
renderSlot(_ctx.$slots, "default")
|
|
935
|
+
]),
|
|
936
|
+
_: 3
|
|
937
|
+
}, 16, ["class"]);
|
|
858
938
|
};
|
|
859
939
|
}
|
|
860
940
|
});
|
|
861
941
|
|
|
862
|
-
const _sfc_main$
|
|
863
|
-
__name: "
|
|
942
|
+
const _sfc_main$2n = /* @__PURE__ */ defineComponent({
|
|
943
|
+
__name: "ContextMenu",
|
|
864
944
|
props: {
|
|
865
|
-
|
|
945
|
+
dir: {},
|
|
946
|
+
modal: { type: Boolean }
|
|
866
947
|
},
|
|
867
|
-
|
|
948
|
+
emits: ["update:open"],
|
|
949
|
+
setup(__props, { emit: __emit }) {
|
|
868
950
|
const props = __props;
|
|
951
|
+
const emits = __emit;
|
|
952
|
+
const forwarded = useForwardPropsEmits(props, emits);
|
|
869
953
|
return (_ctx, _cache) => {
|
|
870
|
-
return openBlock(),
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
954
|
+
return openBlock(), createBlock(unref(ContextMenuRoot), mergeProps({ "data-slot": "context-menu" }, unref(forwarded)), {
|
|
955
|
+
default: withCtx(() => [
|
|
956
|
+
renderSlot(_ctx.$slots, "default")
|
|
957
|
+
]),
|
|
958
|
+
_: 3
|
|
959
|
+
}, 16);
|
|
876
960
|
};
|
|
877
961
|
}
|
|
878
962
|
});
|
|
879
963
|
|
|
880
|
-
const
|
|
881
|
-
|
|
964
|
+
const _hoisted_1$c = { class: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center" };
|
|
965
|
+
const _sfc_main$2m = /* @__PURE__ */ defineComponent({
|
|
966
|
+
__name: "ContextMenuCheckboxItem",
|
|
882
967
|
props: {
|
|
883
|
-
|
|
884
|
-
|
|
968
|
+
modelValue: { type: [Boolean, String] },
|
|
969
|
+
disabled: { type: Boolean },
|
|
970
|
+
textValue: {},
|
|
971
|
+
asChild: { type: Boolean },
|
|
972
|
+
as: {},
|
|
973
|
+
class: {}
|
|
885
974
|
},
|
|
886
|
-
emits: ["update:
|
|
975
|
+
emits: ["select", "update:modelValue"],
|
|
887
976
|
setup(__props, { emit: __emit }) {
|
|
888
977
|
const props = __props;
|
|
889
978
|
const emits = __emit;
|
|
890
|
-
const
|
|
979
|
+
const delegatedProps = computed(() => {
|
|
980
|
+
const { class: _, ...delegated } = props;
|
|
981
|
+
return delegated;
|
|
982
|
+
});
|
|
983
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
891
984
|
return (_ctx, _cache) => {
|
|
892
|
-
return openBlock(), createBlock(unref(
|
|
985
|
+
return openBlock(), createBlock(unref(ContextMenuCheckboxItem), mergeProps({ "data-slot": "context-menu-checkbox-item" }, unref(forwarded), {
|
|
986
|
+
class: unref(cn)(
|
|
987
|
+
`focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,
|
|
988
|
+
props.class
|
|
989
|
+
)
|
|
990
|
+
}), {
|
|
893
991
|
default: withCtx(() => [
|
|
992
|
+
createElementVNode("span", _hoisted_1$c, [
|
|
993
|
+
createVNode(unref(ContextMenuItemIndicator), null, {
|
|
994
|
+
default: withCtx(() => [
|
|
995
|
+
createVNode(unref(Check), { class: "size-4" })
|
|
996
|
+
]),
|
|
997
|
+
_: 1
|
|
998
|
+
})
|
|
999
|
+
]),
|
|
894
1000
|
renderSlot(_ctx.$slots, "default")
|
|
895
1001
|
]),
|
|
896
1002
|
_: 3
|
|
897
|
-
}, 16);
|
|
1003
|
+
}, 16, ["class"]);
|
|
898
1004
|
};
|
|
899
1005
|
}
|
|
900
1006
|
});
|
|
901
1007
|
|
|
902
|
-
const _sfc_main$
|
|
903
|
-
__name: "
|
|
1008
|
+
const _sfc_main$2l = /* @__PURE__ */ defineComponent({
|
|
1009
|
+
__name: "ContextMenuContent",
|
|
904
1010
|
props: {
|
|
905
1011
|
forceMount: { type: Boolean },
|
|
906
1012
|
loop: { type: Boolean },
|
|
907
|
-
sideOffset: {},
|
|
908
1013
|
alignOffset: {},
|
|
909
1014
|
avoidCollisions: { type: Boolean },
|
|
910
1015
|
collisionBoundary: {},
|
|
911
1016
|
collisionPadding: {},
|
|
912
|
-
arrowPadding: {},
|
|
913
1017
|
sticky: {},
|
|
914
1018
|
hideWhenDetached: { type: Boolean },
|
|
915
1019
|
positionStrategy: {},
|
|
916
|
-
updatePositionStrategy: {},
|
|
917
1020
|
disableUpdateOnLayoutShift: { type: Boolean },
|
|
918
1021
|
prioritizePosition: { type: Boolean },
|
|
919
1022
|
reference: {},
|
|
@@ -921,7 +1024,7 @@ const _sfc_main$1Q = /* @__PURE__ */ defineComponent({
|
|
|
921
1024
|
as: {},
|
|
922
1025
|
class: {}
|
|
923
1026
|
},
|
|
924
|
-
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "
|
|
1027
|
+
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "closeAutoFocus"],
|
|
925
1028
|
setup(__props, { emit: __emit }) {
|
|
926
1029
|
const props = __props;
|
|
927
1030
|
const emits = __emit;
|
|
@@ -931,112 +1034,129 @@ const _sfc_main$1Q = /* @__PURE__ */ defineComponent({
|
|
|
931
1034
|
});
|
|
932
1035
|
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
933
1036
|
return (_ctx, _cache) => {
|
|
934
|
-
return openBlock(), createBlock(unref(
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
1037
|
+
return openBlock(), createBlock(unref(ContextMenuPortal), null, {
|
|
1038
|
+
default: withCtx(() => [
|
|
1039
|
+
createVNode(unref(ContextMenuContent), mergeProps({ "data-slot": "context-menu-content" }, unref(forwarded), {
|
|
1040
|
+
class: unref(cn)(
|
|
1041
|
+
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--reka-context-menu-content-available-height) min-w-[8rem] overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
|
|
1042
|
+
props.class
|
|
1043
|
+
)
|
|
1044
|
+
}), {
|
|
1045
|
+
default: withCtx(() => [
|
|
1046
|
+
renderSlot(_ctx.$slots, "default")
|
|
1047
|
+
]),
|
|
1048
|
+
_: 3
|
|
1049
|
+
}, 16, ["class"])
|
|
1050
|
+
]),
|
|
1051
|
+
_: 3
|
|
1052
|
+
});
|
|
1053
|
+
};
|
|
1054
|
+
}
|
|
1055
|
+
});
|
|
1056
|
+
|
|
1057
|
+
const _sfc_main$2k = /* @__PURE__ */ defineComponent({
|
|
1058
|
+
__name: "ContextMenuGroup",
|
|
1059
|
+
props: {
|
|
1060
|
+
asChild: { type: Boolean },
|
|
1061
|
+
as: {}
|
|
1062
|
+
},
|
|
1063
|
+
setup(__props) {
|
|
1064
|
+
const props = __props;
|
|
1065
|
+
return (_ctx, _cache) => {
|
|
1066
|
+
return openBlock(), createBlock(unref(ContextMenuGroup), mergeProps({ "data-slot": "context-menu-group" }, props), {
|
|
940
1067
|
default: withCtx(() => [
|
|
941
1068
|
renderSlot(_ctx.$slots, "default")
|
|
942
1069
|
]),
|
|
943
1070
|
_: 3
|
|
944
|
-
}, 16
|
|
1071
|
+
}, 16);
|
|
945
1072
|
};
|
|
946
1073
|
}
|
|
947
1074
|
});
|
|
948
1075
|
|
|
949
|
-
const _sfc_main$
|
|
950
|
-
__name: "
|
|
1076
|
+
const _sfc_main$2j = /* @__PURE__ */ defineComponent({
|
|
1077
|
+
__name: "ContextMenuItem",
|
|
951
1078
|
props: {
|
|
952
1079
|
disabled: { type: Boolean },
|
|
953
1080
|
textValue: {},
|
|
954
1081
|
asChild: { type: Boolean },
|
|
955
1082
|
as: {},
|
|
956
1083
|
class: {},
|
|
957
|
-
inset: { type: Boolean }
|
|
1084
|
+
inset: { type: Boolean },
|
|
1085
|
+
variant: { default: "default" }
|
|
958
1086
|
},
|
|
959
|
-
|
|
1087
|
+
emits: ["select"],
|
|
1088
|
+
setup(__props, { emit: __emit }) {
|
|
960
1089
|
const props = __props;
|
|
1090
|
+
const emits = __emit;
|
|
961
1091
|
const delegatedProps = computed(() => {
|
|
962
1092
|
const { class: _, ...delegated } = props;
|
|
963
1093
|
return delegated;
|
|
964
1094
|
});
|
|
965
|
-
const
|
|
1095
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
966
1096
|
return (_ctx, _cache) => {
|
|
967
|
-
return openBlock(), createBlock(unref(
|
|
968
|
-
"data-slot": "context-menu-
|
|
969
|
-
"data-inset": _ctx.inset ? "" : void 0
|
|
970
|
-
|
|
1097
|
+
return openBlock(), createBlock(unref(ContextMenuItem), mergeProps({
|
|
1098
|
+
"data-slot": "context-menu-item",
|
|
1099
|
+
"data-inset": _ctx.inset ? "" : void 0,
|
|
1100
|
+
"data-variant": _ctx.variant
|
|
1101
|
+
}, unref(forwarded), {
|
|
971
1102
|
class: unref(cn)(
|
|
972
|
-
`focus:bg-accent focus:text-accent-foreground data-[
|
|
1103
|
+
`focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive-foreground data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/40 data-[variant=destructive]:focus:text-destructive-foreground data-[variant=destructive]:*:[svg]:!text-destructive-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,
|
|
973
1104
|
props.class
|
|
974
1105
|
)
|
|
975
1106
|
}), {
|
|
976
1107
|
default: withCtx(() => [
|
|
977
|
-
renderSlot(_ctx.$slots, "default")
|
|
978
|
-
createVNode(unref(ChevronRight), { class: "ml-auto" })
|
|
1108
|
+
renderSlot(_ctx.$slots, "default")
|
|
979
1109
|
]),
|
|
980
1110
|
_: 3
|
|
981
|
-
}, 16, ["data-inset", "class"]);
|
|
1111
|
+
}, 16, ["data-inset", "data-variant", "class"]);
|
|
982
1112
|
};
|
|
983
1113
|
}
|
|
984
1114
|
});
|
|
985
1115
|
|
|
986
|
-
const _sfc_main$
|
|
987
|
-
__name: "
|
|
1116
|
+
const _sfc_main$2i = /* @__PURE__ */ defineComponent({
|
|
1117
|
+
__name: "ContextMenuLabel",
|
|
988
1118
|
props: {
|
|
989
|
-
disabled: { type: Boolean },
|
|
990
1119
|
asChild: { type: Boolean },
|
|
991
|
-
as: {}
|
|
1120
|
+
as: {},
|
|
1121
|
+
class: {},
|
|
1122
|
+
inset: { type: Boolean }
|
|
992
1123
|
},
|
|
993
1124
|
setup(__props) {
|
|
994
1125
|
const props = __props;
|
|
995
|
-
const
|
|
1126
|
+
const delegatedProps = computed(() => {
|
|
1127
|
+
const { class: _, ...delegated } = props;
|
|
1128
|
+
return delegated;
|
|
1129
|
+
});
|
|
996
1130
|
return (_ctx, _cache) => {
|
|
997
|
-
return openBlock(), createBlock(unref(
|
|
1131
|
+
return openBlock(), createBlock(unref(ContextMenuLabel), mergeProps({
|
|
1132
|
+
"data-slot": "context-menu-label",
|
|
1133
|
+
"data-inset": _ctx.inset ? "" : void 0
|
|
1134
|
+
}, delegatedProps.value, {
|
|
1135
|
+
class: unref(cn)("text-foreground px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", props.class)
|
|
1136
|
+
}), {
|
|
998
1137
|
default: withCtx(() => [
|
|
999
1138
|
renderSlot(_ctx.$slots, "default")
|
|
1000
1139
|
]),
|
|
1001
1140
|
_: 3
|
|
1002
|
-
}, 16);
|
|
1141
|
+
}, 16, ["data-inset", "class"]);
|
|
1003
1142
|
};
|
|
1004
1143
|
}
|
|
1005
1144
|
});
|
|
1006
1145
|
|
|
1007
|
-
const _sfc_main$
|
|
1008
|
-
__name: "
|
|
1146
|
+
const _sfc_main$2h = /* @__PURE__ */ defineComponent({
|
|
1147
|
+
__name: "ContextMenuRadioGroup",
|
|
1009
1148
|
props: {
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1149
|
+
modelValue: {},
|
|
1150
|
+
asChild: { type: Boolean },
|
|
1151
|
+
as: {}
|
|
1013
1152
|
},
|
|
1014
|
-
emits: ["update:
|
|
1153
|
+
emits: ["update:modelValue"],
|
|
1015
1154
|
setup(__props, { emit: __emit }) {
|
|
1016
1155
|
const props = __props;
|
|
1017
1156
|
const emits = __emit;
|
|
1018
1157
|
const forwarded = useForwardPropsEmits(props, emits);
|
|
1019
1158
|
return (_ctx, _cache) => {
|
|
1020
|
-
return openBlock(), createBlock(unref(
|
|
1021
|
-
default: withCtx(() => [
|
|
1022
|
-
renderSlot(_ctx.$slots, "default")
|
|
1023
|
-
]),
|
|
1024
|
-
_: 3
|
|
1025
|
-
}, 16);
|
|
1026
|
-
};
|
|
1027
|
-
}
|
|
1028
|
-
});
|
|
1029
|
-
|
|
1030
|
-
const _sfc_main$1M = /* @__PURE__ */ defineComponent({
|
|
1031
|
-
__name: "DialogClose",
|
|
1032
|
-
props: {
|
|
1033
|
-
asChild: { type: Boolean },
|
|
1034
|
-
as: {}
|
|
1035
|
-
},
|
|
1036
|
-
setup(__props) {
|
|
1037
|
-
const props = __props;
|
|
1038
|
-
return (_ctx, _cache) => {
|
|
1039
|
-
return openBlock(), createBlock(unref(DialogClose), mergeProps({ "data-slot": "dialog-close" }, props), {
|
|
1159
|
+
return openBlock(), createBlock(unref(ContextMenuRadioGroup), mergeProps({ "data-slot": "context-menu-radio-group" }, unref(forwarded)), {
|
|
1040
1160
|
default: withCtx(() => [
|
|
1041
1161
|
renderSlot(_ctx.$slots, "default")
|
|
1042
1162
|
]),
|
|
@@ -1046,28 +1166,42 @@ const _sfc_main$1M = /* @__PURE__ */ defineComponent({
|
|
|
1046
1166
|
}
|
|
1047
1167
|
});
|
|
1048
1168
|
|
|
1049
|
-
const
|
|
1050
|
-
|
|
1169
|
+
const _hoisted_1$b = { class: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center" };
|
|
1170
|
+
const _sfc_main$2g = /* @__PURE__ */ defineComponent({
|
|
1171
|
+
__name: "ContextMenuRadioItem",
|
|
1051
1172
|
props: {
|
|
1052
|
-
|
|
1173
|
+
value: {},
|
|
1174
|
+
disabled: { type: Boolean },
|
|
1175
|
+
textValue: {},
|
|
1053
1176
|
asChild: { type: Boolean },
|
|
1054
1177
|
as: {},
|
|
1055
1178
|
class: {}
|
|
1056
1179
|
},
|
|
1057
|
-
|
|
1180
|
+
emits: ["select"],
|
|
1181
|
+
setup(__props, { emit: __emit }) {
|
|
1058
1182
|
const props = __props;
|
|
1183
|
+
const emits = __emit;
|
|
1059
1184
|
const delegatedProps = computed(() => {
|
|
1060
1185
|
const { class: _, ...delegated } = props;
|
|
1061
1186
|
return delegated;
|
|
1062
1187
|
});
|
|
1188
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
1063
1189
|
return (_ctx, _cache) => {
|
|
1064
|
-
return openBlock(), createBlock(unref(
|
|
1190
|
+
return openBlock(), createBlock(unref(ContextMenuRadioItem), mergeProps({ "data-slot": "context-menu-radio-item" }, unref(forwarded), {
|
|
1065
1191
|
class: unref(cn)(
|
|
1066
|
-
|
|
1192
|
+
`focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,
|
|
1067
1193
|
props.class
|
|
1068
1194
|
)
|
|
1069
1195
|
}), {
|
|
1070
1196
|
default: withCtx(() => [
|
|
1197
|
+
createElementVNode("span", _hoisted_1$b, [
|
|
1198
|
+
createVNode(unref(ContextMenuItemIndicator), null, {
|
|
1199
|
+
default: withCtx(() => [
|
|
1200
|
+
createVNode(unref(Circle), { class: "size-2 fill-current" })
|
|
1201
|
+
]),
|
|
1202
|
+
_: 1
|
|
1203
|
+
})
|
|
1204
|
+
]),
|
|
1071
1205
|
renderSlot(_ctx.$slots, "default")
|
|
1072
1206
|
]),
|
|
1073
1207
|
_: 3
|
|
@@ -1076,92 +1210,38 @@ const _sfc_main$1L = /* @__PURE__ */ defineComponent({
|
|
|
1076
1210
|
}
|
|
1077
1211
|
});
|
|
1078
1212
|
|
|
1079
|
-
const _sfc_main$
|
|
1080
|
-
__name: "
|
|
1213
|
+
const _sfc_main$2f = /* @__PURE__ */ defineComponent({
|
|
1214
|
+
__name: "ContextMenuSeparator",
|
|
1081
1215
|
props: {
|
|
1082
|
-
forceMount: { type: Boolean },
|
|
1083
|
-
trapFocus: { type: Boolean },
|
|
1084
|
-
disableOutsidePointerEvents: { type: Boolean },
|
|
1085
1216
|
asChild: { type: Boolean },
|
|
1086
1217
|
as: {},
|
|
1087
1218
|
class: {}
|
|
1088
1219
|
},
|
|
1089
|
-
|
|
1090
|
-
setup(__props, { emit: __emit }) {
|
|
1220
|
+
setup(__props) {
|
|
1091
1221
|
const props = __props;
|
|
1092
|
-
const emits = __emit;
|
|
1093
1222
|
const delegatedProps = computed(() => {
|
|
1094
1223
|
const { class: _, ...delegated } = props;
|
|
1095
1224
|
return delegated;
|
|
1096
1225
|
});
|
|
1097
|
-
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
1098
1226
|
return (_ctx, _cache) => {
|
|
1099
|
-
return openBlock(), createBlock(unref(
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
createVNode(unref(DialogContent), mergeProps({ "data-slot": "dialog-content" }, unref(forwarded), {
|
|
1103
|
-
class: unref(cn)(
|
|
1104
|
-
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
|
|
1105
|
-
props.class
|
|
1106
|
-
)
|
|
1107
|
-
}), {
|
|
1108
|
-
default: withCtx(() => [
|
|
1109
|
-
renderSlot(_ctx.$slots, "default"),
|
|
1110
|
-
createVNode(unref(DialogClose), { class: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4" }, {
|
|
1111
|
-
default: withCtx(() => [
|
|
1112
|
-
createVNode(unref(X)),
|
|
1113
|
-
_cache[0] || (_cache[0] = createElementVNode("span", { class: "sr-only" }, "Close", -1))
|
|
1114
|
-
]),
|
|
1115
|
-
_: 1
|
|
1116
|
-
})
|
|
1117
|
-
]),
|
|
1118
|
-
_: 3
|
|
1119
|
-
}, 16, ["class"])
|
|
1120
|
-
]),
|
|
1121
|
-
_: 3
|
|
1122
|
-
});
|
|
1123
|
-
};
|
|
1124
|
-
}
|
|
1125
|
-
});
|
|
1126
|
-
|
|
1127
|
-
const _sfc_main$1J = /* @__PURE__ */ defineComponent({
|
|
1128
|
-
__name: "DialogDescription",
|
|
1129
|
-
props: {
|
|
1130
|
-
asChild: { type: Boolean },
|
|
1131
|
-
as: {},
|
|
1132
|
-
class: {}
|
|
1133
|
-
},
|
|
1134
|
-
setup(__props) {
|
|
1135
|
-
const props = __props;
|
|
1136
|
-
const delegatedProps = computed(() => {
|
|
1137
|
-
const { class: _, ...delegated } = props;
|
|
1138
|
-
return delegated;
|
|
1139
|
-
});
|
|
1140
|
-
const forwardedProps = useForwardProps(delegatedProps);
|
|
1141
|
-
return (_ctx, _cache) => {
|
|
1142
|
-
return openBlock(), createBlock(unref(DialogDescription), mergeProps({ "data-slot": "dialog-description" }, unref(forwardedProps), {
|
|
1143
|
-
class: unref(cn)("text-muted-foreground text-sm", props.class)
|
|
1144
|
-
}), {
|
|
1145
|
-
default: withCtx(() => [
|
|
1146
|
-
renderSlot(_ctx.$slots, "default")
|
|
1147
|
-
]),
|
|
1148
|
-
_: 3
|
|
1149
|
-
}, 16, ["class"]);
|
|
1227
|
+
return openBlock(), createBlock(unref(ContextMenuSeparator), mergeProps({ "data-slot": "context-menu-separator" }, delegatedProps.value, {
|
|
1228
|
+
class: unref(cn)("bg-border -mx-1 my-1 h-px", props.class)
|
|
1229
|
+
}), null, 16, ["class"]);
|
|
1150
1230
|
};
|
|
1151
1231
|
}
|
|
1152
1232
|
});
|
|
1153
1233
|
|
|
1154
|
-
const _sfc_main$
|
|
1155
|
-
__name: "
|
|
1234
|
+
const _sfc_main$2e = /* @__PURE__ */ defineComponent({
|
|
1235
|
+
__name: "ContextMenuShortcut",
|
|
1156
1236
|
props: {
|
|
1157
1237
|
class: {}
|
|
1158
1238
|
},
|
|
1159
1239
|
setup(__props) {
|
|
1160
1240
|
const props = __props;
|
|
1161
1241
|
return (_ctx, _cache) => {
|
|
1162
|
-
return openBlock(), createElementBlock("
|
|
1163
|
-
"data-slot": "
|
|
1164
|
-
class: normalizeClass(unref(cn)("
|
|
1242
|
+
return openBlock(), createElementBlock("span", {
|
|
1243
|
+
"data-slot": "context-menu-shortcut",
|
|
1244
|
+
class: normalizeClass(unref(cn)("text-muted-foreground ml-auto text-xs tracking-widest", props.class))
|
|
1165
1245
|
}, [
|
|
1166
1246
|
renderSlot(_ctx.$slots, "default")
|
|
1167
1247
|
], 2);
|
|
@@ -1169,35 +1249,51 @@ const _sfc_main$1I = /* @__PURE__ */ defineComponent({
|
|
|
1169
1249
|
}
|
|
1170
1250
|
});
|
|
1171
1251
|
|
|
1172
|
-
const _sfc_main$
|
|
1173
|
-
__name: "
|
|
1252
|
+
const _sfc_main$2d = /* @__PURE__ */ defineComponent({
|
|
1253
|
+
__name: "ContextMenuSub",
|
|
1174
1254
|
props: {
|
|
1175
|
-
|
|
1255
|
+
defaultOpen: { type: Boolean },
|
|
1256
|
+
open: { type: Boolean }
|
|
1176
1257
|
},
|
|
1177
|
-
|
|
1258
|
+
emits: ["update:open"],
|
|
1259
|
+
setup(__props, { emit: __emit }) {
|
|
1178
1260
|
const props = __props;
|
|
1261
|
+
const emits = __emit;
|
|
1262
|
+
const forwarded = useForwardPropsEmits(props, emits);
|
|
1179
1263
|
return (_ctx, _cache) => {
|
|
1180
|
-
return openBlock(),
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1264
|
+
return openBlock(), createBlock(unref(ContextMenuSub), mergeProps({ "data-slot": "context-menu-sub" }, unref(forwarded)), {
|
|
1265
|
+
default: withCtx(() => [
|
|
1266
|
+
renderSlot(_ctx.$slots, "default")
|
|
1267
|
+
]),
|
|
1268
|
+
_: 3
|
|
1269
|
+
}, 16);
|
|
1186
1270
|
};
|
|
1187
1271
|
}
|
|
1188
1272
|
});
|
|
1189
1273
|
|
|
1190
|
-
const _sfc_main$
|
|
1191
|
-
__name: "
|
|
1274
|
+
const _sfc_main$2c = /* @__PURE__ */ defineComponent({
|
|
1275
|
+
__name: "ContextMenuSubContent",
|
|
1192
1276
|
props: {
|
|
1193
1277
|
forceMount: { type: Boolean },
|
|
1194
|
-
|
|
1195
|
-
|
|
1278
|
+
loop: { type: Boolean },
|
|
1279
|
+
sideOffset: {},
|
|
1280
|
+
alignOffset: {},
|
|
1281
|
+
avoidCollisions: { type: Boolean },
|
|
1282
|
+
collisionBoundary: {},
|
|
1283
|
+
collisionPadding: {},
|
|
1284
|
+
arrowPadding: {},
|
|
1285
|
+
sticky: {},
|
|
1286
|
+
hideWhenDetached: { type: Boolean },
|
|
1287
|
+
positionStrategy: {},
|
|
1288
|
+
updatePositionStrategy: {},
|
|
1289
|
+
disableUpdateOnLayoutShift: { type: Boolean },
|
|
1290
|
+
prioritizePosition: { type: Boolean },
|
|
1291
|
+
reference: {},
|
|
1196
1292
|
asChild: { type: Boolean },
|
|
1197
1293
|
as: {},
|
|
1198
1294
|
class: {}
|
|
1199
1295
|
},
|
|
1200
|
-
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
|
|
1296
|
+
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "entryFocus", "openAutoFocus", "closeAutoFocus"],
|
|
1201
1297
|
setup(__props, { emit: __emit }) {
|
|
1202
1298
|
const props = __props;
|
|
1203
1299
|
const emits = __emit;
|
|
@@ -1207,52 +1303,30 @@ const _sfc_main$1G = /* @__PURE__ */ defineComponent({
|
|
|
1207
1303
|
});
|
|
1208
1304
|
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
1209
1305
|
return (_ctx, _cache) => {
|
|
1210
|
-
return openBlock(), createBlock(unref(
|
|
1306
|
+
return openBlock(), createBlock(unref(ContextMenuSubContent), mergeProps({ "data-slot": "context-menu-sub-content" }, unref(forwarded), {
|
|
1307
|
+
class: unref(cn)(
|
|
1308
|
+
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--reka-context-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
|
|
1309
|
+
props.class
|
|
1310
|
+
)
|
|
1311
|
+
}), {
|
|
1211
1312
|
default: withCtx(() => [
|
|
1212
|
-
|
|
1213
|
-
default: withCtx(() => [
|
|
1214
|
-
createVNode(unref(DialogContent), mergeProps({
|
|
1215
|
-
class: unref(cn)(
|
|
1216
|
-
"relative z-50 grid w-full max-w-lg my-8 gap-4 border border-border bg-background p-6 shadow-lg duration-200 sm:rounded-lg md:w-full",
|
|
1217
|
-
props.class
|
|
1218
|
-
)
|
|
1219
|
-
}, unref(forwarded), {
|
|
1220
|
-
onPointerDownOutside: _cache[0] || (_cache[0] = (event) => {
|
|
1221
|
-
const originalEvent = event.detail.originalEvent;
|
|
1222
|
-
const target = originalEvent.target;
|
|
1223
|
-
if (originalEvent.offsetX > target.clientWidth || originalEvent.offsetY > target.clientHeight) {
|
|
1224
|
-
event.preventDefault();
|
|
1225
|
-
}
|
|
1226
|
-
})
|
|
1227
|
-
}), {
|
|
1228
|
-
default: withCtx(() => [
|
|
1229
|
-
renderSlot(_ctx.$slots, "default"),
|
|
1230
|
-
createVNode(unref(DialogClose), { class: "absolute top-4 right-4 p-0.5 transition-colors rounded-md hover:bg-secondary" }, {
|
|
1231
|
-
default: withCtx(() => [
|
|
1232
|
-
createVNode(unref(X), { class: "w-4 h-4" }),
|
|
1233
|
-
_cache[1] || (_cache[1] = createElementVNode("span", { class: "sr-only" }, "Close", -1))
|
|
1234
|
-
]),
|
|
1235
|
-
_: 1
|
|
1236
|
-
})
|
|
1237
|
-
]),
|
|
1238
|
-
_: 3
|
|
1239
|
-
}, 16, ["class"])
|
|
1240
|
-
]),
|
|
1241
|
-
_: 3
|
|
1242
|
-
})
|
|
1313
|
+
renderSlot(_ctx.$slots, "default")
|
|
1243
1314
|
]),
|
|
1244
1315
|
_: 3
|
|
1245
|
-
});
|
|
1316
|
+
}, 16, ["class"]);
|
|
1246
1317
|
};
|
|
1247
1318
|
}
|
|
1248
1319
|
});
|
|
1249
1320
|
|
|
1250
|
-
const _sfc_main$
|
|
1251
|
-
__name: "
|
|
1321
|
+
const _sfc_main$2b = /* @__PURE__ */ defineComponent({
|
|
1322
|
+
__name: "ContextMenuSubTrigger",
|
|
1252
1323
|
props: {
|
|
1324
|
+
disabled: { type: Boolean },
|
|
1325
|
+
textValue: {},
|
|
1253
1326
|
asChild: { type: Boolean },
|
|
1254
1327
|
as: {},
|
|
1255
|
-
class: {}
|
|
1328
|
+
class: {},
|
|
1329
|
+
inset: { type: Boolean }
|
|
1256
1330
|
},
|
|
1257
1331
|
setup(__props) {
|
|
1258
1332
|
const props = __props;
|
|
@@ -1262,28 +1336,37 @@ const _sfc_main$1F = /* @__PURE__ */ defineComponent({
|
|
|
1262
1336
|
});
|
|
1263
1337
|
const forwardedProps = useForwardProps(delegatedProps);
|
|
1264
1338
|
return (_ctx, _cache) => {
|
|
1265
|
-
return openBlock(), createBlock(unref(
|
|
1266
|
-
|
|
1339
|
+
return openBlock(), createBlock(unref(ContextMenuSubTrigger), mergeProps({
|
|
1340
|
+
"data-slot": "context-menu-sub-trigger",
|
|
1341
|
+
"data-inset": _ctx.inset ? "" : void 0
|
|
1342
|
+
}, unref(forwardedProps), {
|
|
1343
|
+
class: unref(cn)(
|
|
1344
|
+
`focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,
|
|
1345
|
+
props.class
|
|
1346
|
+
)
|
|
1267
1347
|
}), {
|
|
1268
1348
|
default: withCtx(() => [
|
|
1269
|
-
renderSlot(_ctx.$slots, "default")
|
|
1349
|
+
renderSlot(_ctx.$slots, "default"),
|
|
1350
|
+
createVNode(unref(ChevronRight), { class: "ml-auto" })
|
|
1270
1351
|
]),
|
|
1271
1352
|
_: 3
|
|
1272
|
-
}, 16, ["class"]);
|
|
1353
|
+
}, 16, ["data-inset", "class"]);
|
|
1273
1354
|
};
|
|
1274
1355
|
}
|
|
1275
1356
|
});
|
|
1276
1357
|
|
|
1277
|
-
const _sfc_main$
|
|
1278
|
-
__name: "
|
|
1358
|
+
const _sfc_main$2a = /* @__PURE__ */ defineComponent({
|
|
1359
|
+
__name: "ContextMenuTrigger",
|
|
1279
1360
|
props: {
|
|
1361
|
+
disabled: { type: Boolean },
|
|
1280
1362
|
asChild: { type: Boolean },
|
|
1281
1363
|
as: {}
|
|
1282
1364
|
},
|
|
1283
1365
|
setup(__props) {
|
|
1284
1366
|
const props = __props;
|
|
1367
|
+
const forwardedProps = useForwardProps(props);
|
|
1285
1368
|
return (_ctx, _cache) => {
|
|
1286
|
-
return openBlock(), createBlock(unref(
|
|
1369
|
+
return openBlock(), createBlock(unref(ContextMenuTrigger), mergeProps({ "data-slot": "context-menu-trigger" }, unref(forwardedProps)), {
|
|
1287
1370
|
default: withCtx(() => [
|
|
1288
1371
|
renderSlot(_ctx.$slots, "default")
|
|
1289
1372
|
]),
|
|
@@ -1293,12 +1376,11 @@ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
|
1293
1376
|
}
|
|
1294
1377
|
});
|
|
1295
1378
|
|
|
1296
|
-
const _sfc_main$
|
|
1297
|
-
__name: "
|
|
1379
|
+
const _sfc_main$29 = /* @__PURE__ */ defineComponent({
|
|
1380
|
+
__name: "Dialog",
|
|
1298
1381
|
props: {
|
|
1299
|
-
defaultOpen: { type: Boolean },
|
|
1300
1382
|
open: { type: Boolean },
|
|
1301
|
-
|
|
1383
|
+
defaultOpen: { type: Boolean },
|
|
1302
1384
|
modal: { type: Boolean }
|
|
1303
1385
|
},
|
|
1304
1386
|
emits: ["update:open"],
|
|
@@ -1307,7 +1389,7 @@ const _sfc_main$1D = /* @__PURE__ */ defineComponent({
|
|
|
1307
1389
|
const emits = __emit;
|
|
1308
1390
|
const forwarded = useForwardPropsEmits(props, emits);
|
|
1309
1391
|
return (_ctx, _cache) => {
|
|
1310
|
-
return openBlock(), createBlock(unref(
|
|
1392
|
+
return openBlock(), createBlock(unref(DialogRoot), mergeProps({ "data-slot": "dialog" }, unref(forwarded)), {
|
|
1311
1393
|
default: withCtx(() => [
|
|
1312
1394
|
renderSlot(_ctx.$slots, "default")
|
|
1313
1395
|
]),
|
|
@@ -1317,42 +1399,47 @@ const _sfc_main$1D = /* @__PURE__ */ defineComponent({
|
|
|
1317
1399
|
}
|
|
1318
1400
|
});
|
|
1319
1401
|
|
|
1320
|
-
const
|
|
1321
|
-
|
|
1322
|
-
__name: "DropdownMenuCheckboxItem",
|
|
1402
|
+
const _sfc_main$28 = /* @__PURE__ */ defineComponent({
|
|
1403
|
+
__name: "DialogClose",
|
|
1323
1404
|
props: {
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1405
|
+
asChild: { type: Boolean },
|
|
1406
|
+
as: {}
|
|
1407
|
+
},
|
|
1408
|
+
setup(__props) {
|
|
1409
|
+
const props = __props;
|
|
1410
|
+
return (_ctx, _cache) => {
|
|
1411
|
+
return openBlock(), createBlock(unref(DialogClose), mergeProps({ "data-slot": "dialog-close" }, props), {
|
|
1412
|
+
default: withCtx(() => [
|
|
1413
|
+
renderSlot(_ctx.$slots, "default")
|
|
1414
|
+
]),
|
|
1415
|
+
_: 3
|
|
1416
|
+
}, 16);
|
|
1417
|
+
};
|
|
1418
|
+
}
|
|
1419
|
+
});
|
|
1420
|
+
|
|
1421
|
+
const _sfc_main$27 = /* @__PURE__ */ defineComponent({
|
|
1422
|
+
__name: "DialogOverlay",
|
|
1423
|
+
props: {
|
|
1424
|
+
forceMount: { type: Boolean },
|
|
1327
1425
|
asChild: { type: Boolean },
|
|
1328
1426
|
as: {},
|
|
1329
1427
|
class: {}
|
|
1330
1428
|
},
|
|
1331
|
-
|
|
1332
|
-
setup(__props, { emit: __emit }) {
|
|
1429
|
+
setup(__props) {
|
|
1333
1430
|
const props = __props;
|
|
1334
|
-
const emits = __emit;
|
|
1335
1431
|
const delegatedProps = computed(() => {
|
|
1336
1432
|
const { class: _, ...delegated } = props;
|
|
1337
1433
|
return delegated;
|
|
1338
1434
|
});
|
|
1339
|
-
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
1340
1435
|
return (_ctx, _cache) => {
|
|
1341
|
-
return openBlock(), createBlock(unref(
|
|
1436
|
+
return openBlock(), createBlock(unref(DialogOverlay), mergeProps({ "data-slot": "dialog-overlay" }, delegatedProps.value, {
|
|
1342
1437
|
class: unref(cn)(
|
|
1343
|
-
|
|
1438
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",
|
|
1344
1439
|
props.class
|
|
1345
1440
|
)
|
|
1346
1441
|
}), {
|
|
1347
1442
|
default: withCtx(() => [
|
|
1348
|
-
createElementVNode("span", _hoisted_1$8, [
|
|
1349
|
-
createVNode(unref(DropdownMenuItemIndicator), null, {
|
|
1350
|
-
default: withCtx(() => [
|
|
1351
|
-
createVNode(unref(Check), { class: "size-4" })
|
|
1352
|
-
]),
|
|
1353
|
-
_: 1
|
|
1354
|
-
})
|
|
1355
|
-
]),
|
|
1356
1443
|
renderSlot(_ctx.$slots, "default")
|
|
1357
1444
|
]),
|
|
1358
1445
|
_: 3
|
|
@@ -1361,31 +1448,17 @@ const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
|
1361
1448
|
}
|
|
1362
1449
|
});
|
|
1363
1450
|
|
|
1364
|
-
const _sfc_main$
|
|
1365
|
-
__name: "
|
|
1451
|
+
const _sfc_main$26 = /* @__PURE__ */ defineComponent({
|
|
1452
|
+
__name: "DialogContent",
|
|
1366
1453
|
props: {
|
|
1367
1454
|
forceMount: { type: Boolean },
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
sideOffset: { default: 4 },
|
|
1371
|
-
align: {},
|
|
1372
|
-
alignOffset: {},
|
|
1373
|
-
avoidCollisions: { type: Boolean },
|
|
1374
|
-
collisionBoundary: {},
|
|
1375
|
-
collisionPadding: {},
|
|
1376
|
-
arrowPadding: {},
|
|
1377
|
-
sticky: {},
|
|
1378
|
-
hideWhenDetached: { type: Boolean },
|
|
1379
|
-
positionStrategy: {},
|
|
1380
|
-
updatePositionStrategy: {},
|
|
1381
|
-
disableUpdateOnLayoutShift: { type: Boolean },
|
|
1382
|
-
prioritizePosition: { type: Boolean },
|
|
1383
|
-
reference: {},
|
|
1455
|
+
trapFocus: { type: Boolean },
|
|
1456
|
+
disableOutsidePointerEvents: { type: Boolean },
|
|
1384
1457
|
asChild: { type: Boolean },
|
|
1385
1458
|
as: {},
|
|
1386
1459
|
class: {}
|
|
1387
1460
|
},
|
|
1388
|
-
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "closeAutoFocus"],
|
|
1461
|
+
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
|
|
1389
1462
|
setup(__props, { emit: __emit }) {
|
|
1390
1463
|
const props = __props;
|
|
1391
1464
|
const emits = __emit;
|
|
@@ -1395,16 +1468,24 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
1395
1468
|
});
|
|
1396
1469
|
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
1397
1470
|
return (_ctx, _cache) => {
|
|
1398
|
-
return openBlock(), createBlock(unref(
|
|
1471
|
+
return openBlock(), createBlock(unref(DialogPortal), null, {
|
|
1399
1472
|
default: withCtx(() => [
|
|
1400
|
-
createVNode(
|
|
1473
|
+
createVNode(_sfc_main$27),
|
|
1474
|
+
createVNode(unref(DialogContent), mergeProps({ "data-slot": "dialog-content" }, unref(forwarded), {
|
|
1401
1475
|
class: unref(cn)(
|
|
1402
|
-
"bg-
|
|
1476
|
+
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
|
|
1403
1477
|
props.class
|
|
1404
1478
|
)
|
|
1405
1479
|
}), {
|
|
1406
1480
|
default: withCtx(() => [
|
|
1407
|
-
renderSlot(_ctx.$slots, "default")
|
|
1481
|
+
renderSlot(_ctx.$slots, "default"),
|
|
1482
|
+
createVNode(unref(DialogClose), { class: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4" }, {
|
|
1483
|
+
default: withCtx(() => [
|
|
1484
|
+
createVNode(unref(X)),
|
|
1485
|
+
_cache[0] || (_cache[0] = createElementVNode("span", { class: "sr-only" }, "Close", -1))
|
|
1486
|
+
]),
|
|
1487
|
+
_: 1
|
|
1488
|
+
})
|
|
1408
1489
|
]),
|
|
1409
1490
|
_: 3
|
|
1410
1491
|
}, 16, ["class"])
|
|
@@ -1415,8 +1496,1120 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
|
1415
1496
|
}
|
|
1416
1497
|
});
|
|
1417
1498
|
|
|
1418
|
-
const _sfc_main$
|
|
1419
|
-
__name: "
|
|
1499
|
+
const _sfc_main$25 = /* @__PURE__ */ defineComponent({
|
|
1500
|
+
__name: "DialogDescription",
|
|
1501
|
+
props: {
|
|
1502
|
+
asChild: { type: Boolean },
|
|
1503
|
+
as: {},
|
|
1504
|
+
class: {}
|
|
1505
|
+
},
|
|
1506
|
+
setup(__props) {
|
|
1507
|
+
const props = __props;
|
|
1508
|
+
const delegatedProps = computed(() => {
|
|
1509
|
+
const { class: _, ...delegated } = props;
|
|
1510
|
+
return delegated;
|
|
1511
|
+
});
|
|
1512
|
+
const forwardedProps = useForwardProps(delegatedProps);
|
|
1513
|
+
return (_ctx, _cache) => {
|
|
1514
|
+
return openBlock(), createBlock(unref(DialogDescription), mergeProps({ "data-slot": "dialog-description" }, unref(forwardedProps), {
|
|
1515
|
+
class: unref(cn)("text-muted-foreground text-sm", props.class)
|
|
1516
|
+
}), {
|
|
1517
|
+
default: withCtx(() => [
|
|
1518
|
+
renderSlot(_ctx.$slots, "default")
|
|
1519
|
+
]),
|
|
1520
|
+
_: 3
|
|
1521
|
+
}, 16, ["class"]);
|
|
1522
|
+
};
|
|
1523
|
+
}
|
|
1524
|
+
});
|
|
1525
|
+
|
|
1526
|
+
const _sfc_main$24 = /* @__PURE__ */ defineComponent({
|
|
1527
|
+
__name: "DialogFooter",
|
|
1528
|
+
props: {
|
|
1529
|
+
class: {}
|
|
1530
|
+
},
|
|
1531
|
+
setup(__props) {
|
|
1532
|
+
const props = __props;
|
|
1533
|
+
return (_ctx, _cache) => {
|
|
1534
|
+
return openBlock(), createElementBlock("div", {
|
|
1535
|
+
"data-slot": "dialog-footer",
|
|
1536
|
+
class: normalizeClass(unref(cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", props.class))
|
|
1537
|
+
}, [
|
|
1538
|
+
renderSlot(_ctx.$slots, "default")
|
|
1539
|
+
], 2);
|
|
1540
|
+
};
|
|
1541
|
+
}
|
|
1542
|
+
});
|
|
1543
|
+
|
|
1544
|
+
const _sfc_main$23 = /* @__PURE__ */ defineComponent({
|
|
1545
|
+
__name: "DialogHeader",
|
|
1546
|
+
props: {
|
|
1547
|
+
class: {}
|
|
1548
|
+
},
|
|
1549
|
+
setup(__props) {
|
|
1550
|
+
const props = __props;
|
|
1551
|
+
return (_ctx, _cache) => {
|
|
1552
|
+
return openBlock(), createElementBlock("div", {
|
|
1553
|
+
"data-slot": "dialog-header",
|
|
1554
|
+
class: normalizeClass(unref(cn)("flex flex-col gap-2 text-center sm:text-left", props.class))
|
|
1555
|
+
}, [
|
|
1556
|
+
renderSlot(_ctx.$slots, "default")
|
|
1557
|
+
], 2);
|
|
1558
|
+
};
|
|
1559
|
+
}
|
|
1560
|
+
});
|
|
1561
|
+
|
|
1562
|
+
const _sfc_main$22 = /* @__PURE__ */ defineComponent({
|
|
1563
|
+
__name: "DialogScrollContent",
|
|
1564
|
+
props: {
|
|
1565
|
+
forceMount: { type: Boolean },
|
|
1566
|
+
trapFocus: { type: Boolean },
|
|
1567
|
+
disableOutsidePointerEvents: { type: Boolean },
|
|
1568
|
+
asChild: { type: Boolean },
|
|
1569
|
+
as: {},
|
|
1570
|
+
class: {}
|
|
1571
|
+
},
|
|
1572
|
+
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
|
|
1573
|
+
setup(__props, { emit: __emit }) {
|
|
1574
|
+
const props = __props;
|
|
1575
|
+
const emits = __emit;
|
|
1576
|
+
const delegatedProps = computed(() => {
|
|
1577
|
+
const { class: _, ...delegated } = props;
|
|
1578
|
+
return delegated;
|
|
1579
|
+
});
|
|
1580
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
1581
|
+
return (_ctx, _cache) => {
|
|
1582
|
+
return openBlock(), createBlock(unref(DialogPortal), null, {
|
|
1583
|
+
default: withCtx(() => [
|
|
1584
|
+
createVNode(unref(DialogOverlay), { class: "fixed inset-0 z-50 grid place-items-center overflow-y-auto bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0" }, {
|
|
1585
|
+
default: withCtx(() => [
|
|
1586
|
+
createVNode(unref(DialogContent), mergeProps({
|
|
1587
|
+
class: unref(cn)(
|
|
1588
|
+
"relative z-50 grid w-full max-w-lg my-8 gap-4 border border-border bg-background p-6 shadow-lg duration-200 sm:rounded-lg md:w-full",
|
|
1589
|
+
props.class
|
|
1590
|
+
)
|
|
1591
|
+
}, unref(forwarded), {
|
|
1592
|
+
onPointerDownOutside: _cache[0] || (_cache[0] = (event) => {
|
|
1593
|
+
const originalEvent = event.detail.originalEvent;
|
|
1594
|
+
const target = originalEvent.target;
|
|
1595
|
+
if (originalEvent.offsetX > target.clientWidth || originalEvent.offsetY > target.clientHeight) {
|
|
1596
|
+
event.preventDefault();
|
|
1597
|
+
}
|
|
1598
|
+
})
|
|
1599
|
+
}), {
|
|
1600
|
+
default: withCtx(() => [
|
|
1601
|
+
renderSlot(_ctx.$slots, "default"),
|
|
1602
|
+
createVNode(unref(DialogClose), { class: "absolute top-4 right-4 p-0.5 transition-colors rounded-md hover:bg-secondary" }, {
|
|
1603
|
+
default: withCtx(() => [
|
|
1604
|
+
createVNode(unref(X), { class: "w-4 h-4" }),
|
|
1605
|
+
_cache[1] || (_cache[1] = createElementVNode("span", { class: "sr-only" }, "Close", -1))
|
|
1606
|
+
]),
|
|
1607
|
+
_: 1
|
|
1608
|
+
})
|
|
1609
|
+
]),
|
|
1610
|
+
_: 3
|
|
1611
|
+
}, 16, ["class"])
|
|
1612
|
+
]),
|
|
1613
|
+
_: 3
|
|
1614
|
+
})
|
|
1615
|
+
]),
|
|
1616
|
+
_: 3
|
|
1617
|
+
});
|
|
1618
|
+
};
|
|
1619
|
+
}
|
|
1620
|
+
});
|
|
1621
|
+
|
|
1622
|
+
const _sfc_main$21 = /* @__PURE__ */ defineComponent({
|
|
1623
|
+
__name: "DialogTitle",
|
|
1624
|
+
props: {
|
|
1625
|
+
asChild: { type: Boolean },
|
|
1626
|
+
as: {},
|
|
1627
|
+
class: {}
|
|
1628
|
+
},
|
|
1629
|
+
setup(__props) {
|
|
1630
|
+
const props = __props;
|
|
1631
|
+
const delegatedProps = computed(() => {
|
|
1632
|
+
const { class: _, ...delegated } = props;
|
|
1633
|
+
return delegated;
|
|
1634
|
+
});
|
|
1635
|
+
const forwardedProps = useForwardProps(delegatedProps);
|
|
1636
|
+
return (_ctx, _cache) => {
|
|
1637
|
+
return openBlock(), createBlock(unref(DialogTitle), mergeProps({ "data-slot": "dialog-title" }, unref(forwardedProps), {
|
|
1638
|
+
class: unref(cn)("text-lg leading-none font-semibold", props.class)
|
|
1639
|
+
}), {
|
|
1640
|
+
default: withCtx(() => [
|
|
1641
|
+
renderSlot(_ctx.$slots, "default")
|
|
1642
|
+
]),
|
|
1643
|
+
_: 3
|
|
1644
|
+
}, 16, ["class"]);
|
|
1645
|
+
};
|
|
1646
|
+
}
|
|
1647
|
+
});
|
|
1648
|
+
|
|
1649
|
+
const _sfc_main$20 = /* @__PURE__ */ defineComponent({
|
|
1650
|
+
__name: "DialogTrigger",
|
|
1651
|
+
props: {
|
|
1652
|
+
asChild: { type: Boolean },
|
|
1653
|
+
as: {}
|
|
1654
|
+
},
|
|
1655
|
+
setup(__props) {
|
|
1656
|
+
const props = __props;
|
|
1657
|
+
return (_ctx, _cache) => {
|
|
1658
|
+
return openBlock(), createBlock(unref(DialogTrigger), mergeProps({ "data-slot": "dialog-trigger" }, props), {
|
|
1659
|
+
default: withCtx(() => [
|
|
1660
|
+
renderSlot(_ctx.$slots, "default")
|
|
1661
|
+
]),
|
|
1662
|
+
_: 3
|
|
1663
|
+
}, 16);
|
|
1664
|
+
};
|
|
1665
|
+
}
|
|
1666
|
+
});
|
|
1667
|
+
|
|
1668
|
+
const _sfc_main$1$ = /* @__PURE__ */ defineComponent({
|
|
1669
|
+
__name: "DropdownMenu",
|
|
1670
|
+
props: {
|
|
1671
|
+
defaultOpen: { type: Boolean },
|
|
1672
|
+
open: { type: Boolean },
|
|
1673
|
+
dir: {},
|
|
1674
|
+
modal: { type: Boolean }
|
|
1675
|
+
},
|
|
1676
|
+
emits: ["update:open"],
|
|
1677
|
+
setup(__props, { emit: __emit }) {
|
|
1678
|
+
const props = __props;
|
|
1679
|
+
const emits = __emit;
|
|
1680
|
+
const forwarded = useForwardPropsEmits(props, emits);
|
|
1681
|
+
return (_ctx, _cache) => {
|
|
1682
|
+
return openBlock(), createBlock(unref(DropdownMenuRoot), mergeProps({ "data-slot": "dropdown-menu" }, unref(forwarded)), {
|
|
1683
|
+
default: withCtx(() => [
|
|
1684
|
+
renderSlot(_ctx.$slots, "default")
|
|
1685
|
+
]),
|
|
1686
|
+
_: 3
|
|
1687
|
+
}, 16);
|
|
1688
|
+
};
|
|
1689
|
+
}
|
|
1690
|
+
});
|
|
1691
|
+
|
|
1692
|
+
const _hoisted_1$a = { class: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center" };
|
|
1693
|
+
const _sfc_main$1_ = /* @__PURE__ */ defineComponent({
|
|
1694
|
+
__name: "DropdownMenuCheckboxItem",
|
|
1695
|
+
props: {
|
|
1696
|
+
modelValue: { type: [Boolean, String] },
|
|
1697
|
+
disabled: { type: Boolean },
|
|
1698
|
+
textValue: {},
|
|
1699
|
+
asChild: { type: Boolean },
|
|
1700
|
+
as: {},
|
|
1701
|
+
class: {}
|
|
1702
|
+
},
|
|
1703
|
+
emits: ["select", "update:modelValue"],
|
|
1704
|
+
setup(__props, { emit: __emit }) {
|
|
1705
|
+
const props = __props;
|
|
1706
|
+
const emits = __emit;
|
|
1707
|
+
const delegatedProps = computed(() => {
|
|
1708
|
+
const { class: _, ...delegated } = props;
|
|
1709
|
+
return delegated;
|
|
1710
|
+
});
|
|
1711
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
1712
|
+
return (_ctx, _cache) => {
|
|
1713
|
+
return openBlock(), createBlock(unref(DropdownMenuCheckboxItem), mergeProps({ "data-slot": "dropdown-menu-checkbox-item" }, unref(forwarded), {
|
|
1714
|
+
class: unref(cn)(
|
|
1715
|
+
`focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,
|
|
1716
|
+
props.class
|
|
1717
|
+
)
|
|
1718
|
+
}), {
|
|
1719
|
+
default: withCtx(() => [
|
|
1720
|
+
createElementVNode("span", _hoisted_1$a, [
|
|
1721
|
+
createVNode(unref(DropdownMenuItemIndicator), null, {
|
|
1722
|
+
default: withCtx(() => [
|
|
1723
|
+
createVNode(unref(Check), { class: "size-4" })
|
|
1724
|
+
]),
|
|
1725
|
+
_: 1
|
|
1726
|
+
})
|
|
1727
|
+
]),
|
|
1728
|
+
renderSlot(_ctx.$slots, "default")
|
|
1729
|
+
]),
|
|
1730
|
+
_: 3
|
|
1731
|
+
}, 16, ["class"]);
|
|
1732
|
+
};
|
|
1733
|
+
}
|
|
1734
|
+
});
|
|
1735
|
+
|
|
1736
|
+
const _sfc_main$1Z = /* @__PURE__ */ defineComponent({
|
|
1737
|
+
__name: "DropdownMenuContent",
|
|
1738
|
+
props: {
|
|
1739
|
+
forceMount: { type: Boolean },
|
|
1740
|
+
loop: { type: Boolean },
|
|
1741
|
+
side: {},
|
|
1742
|
+
sideOffset: { default: 4 },
|
|
1743
|
+
align: {},
|
|
1744
|
+
alignOffset: {},
|
|
1745
|
+
avoidCollisions: { type: Boolean },
|
|
1746
|
+
collisionBoundary: {},
|
|
1747
|
+
collisionPadding: {},
|
|
1748
|
+
arrowPadding: {},
|
|
1749
|
+
sticky: {},
|
|
1750
|
+
hideWhenDetached: { type: Boolean },
|
|
1751
|
+
positionStrategy: {},
|
|
1752
|
+
updatePositionStrategy: {},
|
|
1753
|
+
disableUpdateOnLayoutShift: { type: Boolean },
|
|
1754
|
+
prioritizePosition: { type: Boolean },
|
|
1755
|
+
reference: {},
|
|
1756
|
+
asChild: { type: Boolean },
|
|
1757
|
+
as: {},
|
|
1758
|
+
class: {}
|
|
1759
|
+
},
|
|
1760
|
+
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "closeAutoFocus"],
|
|
1761
|
+
setup(__props, { emit: __emit }) {
|
|
1762
|
+
const props = __props;
|
|
1763
|
+
const emits = __emit;
|
|
1764
|
+
const delegatedProps = computed(() => {
|
|
1765
|
+
const { class: _, ...delegated } = props;
|
|
1766
|
+
return delegated;
|
|
1767
|
+
});
|
|
1768
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
1769
|
+
return (_ctx, _cache) => {
|
|
1770
|
+
return openBlock(), createBlock(unref(DropdownMenuPortal), null, {
|
|
1771
|
+
default: withCtx(() => [
|
|
1772
|
+
createVNode(unref(DropdownMenuContent), mergeProps({ "data-slot": "dropdown-menu-content" }, unref(forwarded), {
|
|
1773
|
+
class: unref(cn)(
|
|
1774
|
+
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--reka-dropdown-menu-content-available-height) min-w-[8rem] origin-(--reka-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
|
|
1775
|
+
props.class
|
|
1776
|
+
)
|
|
1777
|
+
}), {
|
|
1778
|
+
default: withCtx(() => [
|
|
1779
|
+
renderSlot(_ctx.$slots, "default")
|
|
1780
|
+
]),
|
|
1781
|
+
_: 3
|
|
1782
|
+
}, 16, ["class"])
|
|
1783
|
+
]),
|
|
1784
|
+
_: 3
|
|
1785
|
+
});
|
|
1786
|
+
};
|
|
1787
|
+
}
|
|
1788
|
+
});
|
|
1789
|
+
|
|
1790
|
+
const _sfc_main$1Y = /* @__PURE__ */ defineComponent({
|
|
1791
|
+
__name: "DropdownMenuGroup",
|
|
1792
|
+
props: {
|
|
1793
|
+
asChild: { type: Boolean },
|
|
1794
|
+
as: {}
|
|
1795
|
+
},
|
|
1796
|
+
setup(__props) {
|
|
1797
|
+
const props = __props;
|
|
1798
|
+
return (_ctx, _cache) => {
|
|
1799
|
+
return openBlock(), createBlock(unref(DropdownMenuGroup), mergeProps({ "data-slot": "dropdown-menu-group" }, props), {
|
|
1800
|
+
default: withCtx(() => [
|
|
1801
|
+
renderSlot(_ctx.$slots, "default")
|
|
1802
|
+
]),
|
|
1803
|
+
_: 3
|
|
1804
|
+
}, 16);
|
|
1805
|
+
};
|
|
1806
|
+
}
|
|
1807
|
+
});
|
|
1808
|
+
|
|
1809
|
+
const _sfc_main$1X = /* @__PURE__ */ defineComponent({
|
|
1810
|
+
__name: "DropdownMenuItem",
|
|
1811
|
+
props: {
|
|
1812
|
+
disabled: { type: Boolean },
|
|
1813
|
+
textValue: {},
|
|
1814
|
+
asChild: { type: Boolean },
|
|
1815
|
+
as: {},
|
|
1816
|
+
class: {},
|
|
1817
|
+
inset: { type: Boolean },
|
|
1818
|
+
variant: { default: "default" }
|
|
1819
|
+
},
|
|
1820
|
+
setup(__props) {
|
|
1821
|
+
const props = __props;
|
|
1822
|
+
const delegatedProps = reactiveOmit(props, "inset", "variant");
|
|
1823
|
+
const forwardedProps = useForwardProps(delegatedProps);
|
|
1824
|
+
return (_ctx, _cache) => {
|
|
1825
|
+
return openBlock(), createBlock(unref(DropdownMenuItem), mergeProps({
|
|
1826
|
+
"data-slot": "dropdown-menu-item",
|
|
1827
|
+
"data-inset": _ctx.inset ? "" : void 0,
|
|
1828
|
+
"data-variant": _ctx.variant
|
|
1829
|
+
}, unref(forwardedProps), {
|
|
1830
|
+
class: unref(cn)(
|
|
1831
|
+
`focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive-foreground data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/40 data-[variant=destructive]:focus:text-destructive-foreground data-[variant=destructive]:*:[svg]:!text-destructive-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,
|
|
1832
|
+
props.class
|
|
1833
|
+
)
|
|
1834
|
+
}), {
|
|
1835
|
+
default: withCtx(() => [
|
|
1836
|
+
renderSlot(_ctx.$slots, "default")
|
|
1837
|
+
]),
|
|
1838
|
+
_: 3
|
|
1839
|
+
}, 16, ["data-inset", "data-variant", "class"]);
|
|
1840
|
+
};
|
|
1841
|
+
}
|
|
1842
|
+
});
|
|
1843
|
+
|
|
1844
|
+
const _sfc_main$1W = /* @__PURE__ */ defineComponent({
|
|
1845
|
+
__name: "DropdownMenuLabel",
|
|
1846
|
+
props: {
|
|
1847
|
+
asChild: { type: Boolean },
|
|
1848
|
+
as: {},
|
|
1849
|
+
class: {},
|
|
1850
|
+
inset: { type: Boolean }
|
|
1851
|
+
},
|
|
1852
|
+
setup(__props) {
|
|
1853
|
+
const props = __props;
|
|
1854
|
+
const delegatedProps = reactiveOmit(props, "class", "inset");
|
|
1855
|
+
const forwardedProps = useForwardProps(delegatedProps);
|
|
1856
|
+
return (_ctx, _cache) => {
|
|
1857
|
+
return openBlock(), createBlock(unref(DropdownMenuLabel), mergeProps({
|
|
1858
|
+
"data-slot": "dropdown-menu-label",
|
|
1859
|
+
"data-inset": _ctx.inset ? "" : void 0
|
|
1860
|
+
}, unref(forwardedProps), {
|
|
1861
|
+
class: unref(cn)("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", props.class)
|
|
1862
|
+
}), {
|
|
1863
|
+
default: withCtx(() => [
|
|
1864
|
+
renderSlot(_ctx.$slots, "default")
|
|
1865
|
+
]),
|
|
1866
|
+
_: 3
|
|
1867
|
+
}, 16, ["data-inset", "class"]);
|
|
1868
|
+
};
|
|
1869
|
+
}
|
|
1870
|
+
});
|
|
1871
|
+
|
|
1872
|
+
const _sfc_main$1V = /* @__PURE__ */ defineComponent({
|
|
1873
|
+
__name: "DropdownMenuRadioGroup",
|
|
1874
|
+
props: {
|
|
1875
|
+
modelValue: {},
|
|
1876
|
+
asChild: { type: Boolean },
|
|
1877
|
+
as: {}
|
|
1878
|
+
},
|
|
1879
|
+
emits: ["update:modelValue"],
|
|
1880
|
+
setup(__props, { emit: __emit }) {
|
|
1881
|
+
const props = __props;
|
|
1882
|
+
const emits = __emit;
|
|
1883
|
+
const forwarded = useForwardPropsEmits(props, emits);
|
|
1884
|
+
return (_ctx, _cache) => {
|
|
1885
|
+
return openBlock(), createBlock(unref(DropdownMenuRadioGroup), mergeProps({ "data-slot": "dropdown-menu-radio-group" }, unref(forwarded)), {
|
|
1886
|
+
default: withCtx(() => [
|
|
1887
|
+
renderSlot(_ctx.$slots, "default")
|
|
1888
|
+
]),
|
|
1889
|
+
_: 3
|
|
1890
|
+
}, 16);
|
|
1891
|
+
};
|
|
1892
|
+
}
|
|
1893
|
+
});
|
|
1894
|
+
|
|
1895
|
+
const _hoisted_1$9 = { class: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center" };
|
|
1896
|
+
const _sfc_main$1U = /* @__PURE__ */ defineComponent({
|
|
1897
|
+
__name: "DropdownMenuRadioItem",
|
|
1898
|
+
props: {
|
|
1899
|
+
value: {},
|
|
1900
|
+
disabled: { type: Boolean },
|
|
1901
|
+
textValue: {},
|
|
1902
|
+
asChild: { type: Boolean },
|
|
1903
|
+
as: {},
|
|
1904
|
+
class: {}
|
|
1905
|
+
},
|
|
1906
|
+
emits: ["select"],
|
|
1907
|
+
setup(__props, { emit: __emit }) {
|
|
1908
|
+
const props = __props;
|
|
1909
|
+
const emits = __emit;
|
|
1910
|
+
const delegatedProps = computed(() => {
|
|
1911
|
+
const { class: _, ...delegated } = props;
|
|
1912
|
+
return delegated;
|
|
1913
|
+
});
|
|
1914
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
1915
|
+
return (_ctx, _cache) => {
|
|
1916
|
+
return openBlock(), createBlock(unref(DropdownMenuRadioItem), mergeProps({ "data-slot": "dropdown-menu-radio-item" }, unref(forwarded), {
|
|
1917
|
+
class: unref(cn)(
|
|
1918
|
+
`focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,
|
|
1919
|
+
props.class
|
|
1920
|
+
)
|
|
1921
|
+
}), {
|
|
1922
|
+
default: withCtx(() => [
|
|
1923
|
+
createElementVNode("span", _hoisted_1$9, [
|
|
1924
|
+
createVNode(unref(DropdownMenuItemIndicator), null, {
|
|
1925
|
+
default: withCtx(() => [
|
|
1926
|
+
createVNode(unref(Circle), { class: "size-2 fill-current" })
|
|
1927
|
+
]),
|
|
1928
|
+
_: 1
|
|
1929
|
+
})
|
|
1930
|
+
]),
|
|
1931
|
+
renderSlot(_ctx.$slots, "default")
|
|
1932
|
+
]),
|
|
1933
|
+
_: 3
|
|
1934
|
+
}, 16, ["class"]);
|
|
1935
|
+
};
|
|
1936
|
+
}
|
|
1937
|
+
});
|
|
1938
|
+
|
|
1939
|
+
const _sfc_main$1T = /* @__PURE__ */ defineComponent({
|
|
1940
|
+
__name: "DropdownMenuSeparator",
|
|
1941
|
+
props: {
|
|
1942
|
+
asChild: { type: Boolean },
|
|
1943
|
+
as: {},
|
|
1944
|
+
class: {}
|
|
1945
|
+
},
|
|
1946
|
+
setup(__props) {
|
|
1947
|
+
const props = __props;
|
|
1948
|
+
const delegatedProps = computed(() => {
|
|
1949
|
+
const { class: _, ...delegated } = props;
|
|
1950
|
+
return delegated;
|
|
1951
|
+
});
|
|
1952
|
+
return (_ctx, _cache) => {
|
|
1953
|
+
return openBlock(), createBlock(unref(DropdownMenuSeparator), mergeProps({ "data-slot": "dropdown-menu-separator" }, delegatedProps.value, {
|
|
1954
|
+
class: unref(cn)("bg-border -mx-1 my-1 h-px", props.class)
|
|
1955
|
+
}), null, 16, ["class"]);
|
|
1956
|
+
};
|
|
1957
|
+
}
|
|
1958
|
+
});
|
|
1959
|
+
|
|
1960
|
+
const _sfc_main$1S = /* @__PURE__ */ defineComponent({
|
|
1961
|
+
__name: "DropdownMenuShortcut",
|
|
1962
|
+
props: {
|
|
1963
|
+
class: {}
|
|
1964
|
+
},
|
|
1965
|
+
setup(__props) {
|
|
1966
|
+
const props = __props;
|
|
1967
|
+
return (_ctx, _cache) => {
|
|
1968
|
+
return openBlock(), createElementBlock("span", {
|
|
1969
|
+
"data-slot": "dropdown-menu-shortcut",
|
|
1970
|
+
class: normalizeClass(unref(cn)("text-muted-foreground ml-auto text-xs tracking-widest", props.class))
|
|
1971
|
+
}, [
|
|
1972
|
+
renderSlot(_ctx.$slots, "default")
|
|
1973
|
+
], 2);
|
|
1974
|
+
};
|
|
1975
|
+
}
|
|
1976
|
+
});
|
|
1977
|
+
|
|
1978
|
+
const _sfc_main$1R = /* @__PURE__ */ defineComponent({
|
|
1979
|
+
__name: "DropdownMenuSub",
|
|
1980
|
+
props: {
|
|
1981
|
+
defaultOpen: { type: Boolean },
|
|
1982
|
+
open: { type: Boolean }
|
|
1983
|
+
},
|
|
1984
|
+
emits: ["update:open"],
|
|
1985
|
+
setup(__props, { emit: __emit }) {
|
|
1986
|
+
const props = __props;
|
|
1987
|
+
const emits = __emit;
|
|
1988
|
+
const forwarded = useForwardPropsEmits(props, emits);
|
|
1989
|
+
return (_ctx, _cache) => {
|
|
1990
|
+
return openBlock(), createBlock(unref(DropdownMenuSub), mergeProps({ "data-slot": "dropdown-menu-sub" }, unref(forwarded)), {
|
|
1991
|
+
default: withCtx(() => [
|
|
1992
|
+
renderSlot(_ctx.$slots, "default")
|
|
1993
|
+
]),
|
|
1994
|
+
_: 3
|
|
1995
|
+
}, 16);
|
|
1996
|
+
};
|
|
1997
|
+
}
|
|
1998
|
+
});
|
|
1999
|
+
|
|
2000
|
+
const _sfc_main$1Q = /* @__PURE__ */ defineComponent({
|
|
2001
|
+
__name: "DropdownMenuSubContent",
|
|
2002
|
+
props: {
|
|
2003
|
+
forceMount: { type: Boolean },
|
|
2004
|
+
loop: { type: Boolean },
|
|
2005
|
+
sideOffset: {},
|
|
2006
|
+
alignOffset: {},
|
|
2007
|
+
avoidCollisions: { type: Boolean },
|
|
2008
|
+
collisionBoundary: {},
|
|
2009
|
+
collisionPadding: {},
|
|
2010
|
+
arrowPadding: {},
|
|
2011
|
+
sticky: {},
|
|
2012
|
+
hideWhenDetached: { type: Boolean },
|
|
2013
|
+
positionStrategy: {},
|
|
2014
|
+
updatePositionStrategy: {},
|
|
2015
|
+
disableUpdateOnLayoutShift: { type: Boolean },
|
|
2016
|
+
prioritizePosition: { type: Boolean },
|
|
2017
|
+
reference: {},
|
|
2018
|
+
asChild: { type: Boolean },
|
|
2019
|
+
as: {},
|
|
2020
|
+
class: {}
|
|
2021
|
+
},
|
|
2022
|
+
emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "entryFocus", "openAutoFocus", "closeAutoFocus"],
|
|
2023
|
+
setup(__props, { emit: __emit }) {
|
|
2024
|
+
const props = __props;
|
|
2025
|
+
const emits = __emit;
|
|
2026
|
+
const delegatedProps = computed(() => {
|
|
2027
|
+
const { class: _, ...delegated } = props;
|
|
2028
|
+
return delegated;
|
|
2029
|
+
});
|
|
2030
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
2031
|
+
return (_ctx, _cache) => {
|
|
2032
|
+
return openBlock(), createBlock(unref(DropdownMenuSubContent), mergeProps({ "data-slot": "dropdown-menu-sub-content" }, unref(forwarded), {
|
|
2033
|
+
class: unref(cn)(
|
|
2034
|
+
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--reka-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
|
|
2035
|
+
props.class
|
|
2036
|
+
)
|
|
2037
|
+
}), {
|
|
2038
|
+
default: withCtx(() => [
|
|
2039
|
+
renderSlot(_ctx.$slots, "default")
|
|
2040
|
+
]),
|
|
2041
|
+
_: 3
|
|
2042
|
+
}, 16, ["class"]);
|
|
2043
|
+
};
|
|
2044
|
+
}
|
|
2045
|
+
});
|
|
2046
|
+
|
|
2047
|
+
const _sfc_main$1P = /* @__PURE__ */ defineComponent({
|
|
2048
|
+
__name: "DropdownMenuSubTrigger",
|
|
2049
|
+
props: {
|
|
2050
|
+
disabled: { type: Boolean },
|
|
2051
|
+
textValue: {},
|
|
2052
|
+
asChild: { type: Boolean },
|
|
2053
|
+
as: {},
|
|
2054
|
+
class: {},
|
|
2055
|
+
inset: { type: Boolean }
|
|
2056
|
+
},
|
|
2057
|
+
setup(__props) {
|
|
2058
|
+
const props = __props;
|
|
2059
|
+
const delegatedProps = reactiveOmit(props, "class", "inset");
|
|
2060
|
+
const forwardedProps = useForwardProps(delegatedProps);
|
|
2061
|
+
return (_ctx, _cache) => {
|
|
2062
|
+
return openBlock(), createBlock(unref(DropdownMenuSubTrigger), mergeProps({ "data-slot": "dropdown-menu-sub-trigger" }, unref(forwardedProps), {
|
|
2063
|
+
class: unref(cn)(
|
|
2064
|
+
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8",
|
|
2065
|
+
props.class
|
|
2066
|
+
)
|
|
2067
|
+
}), {
|
|
2068
|
+
default: withCtx(() => [
|
|
2069
|
+
renderSlot(_ctx.$slots, "default"),
|
|
2070
|
+
createVNode(unref(ChevronRight), { class: "ml-auto size-4" })
|
|
2071
|
+
]),
|
|
2072
|
+
_: 3
|
|
2073
|
+
}, 16, ["class"]);
|
|
2074
|
+
};
|
|
2075
|
+
}
|
|
2076
|
+
});
|
|
2077
|
+
|
|
2078
|
+
const _sfc_main$1O = /* @__PURE__ */ defineComponent({
|
|
2079
|
+
__name: "DropdownMenuTrigger",
|
|
2080
|
+
props: {
|
|
2081
|
+
disabled: { type: Boolean },
|
|
2082
|
+
asChild: { type: Boolean },
|
|
2083
|
+
as: {}
|
|
2084
|
+
},
|
|
2085
|
+
setup(__props) {
|
|
2086
|
+
const props = __props;
|
|
2087
|
+
const forwardedProps = useForwardProps(props);
|
|
2088
|
+
return (_ctx, _cache) => {
|
|
2089
|
+
return openBlock(), createBlock(unref(DropdownMenuTrigger), mergeProps({ "data-slot": "dropdown-menu-trigger" }, unref(forwardedProps)), {
|
|
2090
|
+
default: withCtx(() => [
|
|
2091
|
+
renderSlot(_ctx.$slots, "default")
|
|
2092
|
+
]),
|
|
2093
|
+
_: 3
|
|
2094
|
+
}, 16);
|
|
2095
|
+
};
|
|
2096
|
+
}
|
|
2097
|
+
});
|
|
2098
|
+
|
|
2099
|
+
const _sfc_main$1N = /* @__PURE__ */ defineComponent({
|
|
2100
|
+
__name: "Input",
|
|
2101
|
+
props: {
|
|
2102
|
+
defaultValue: {},
|
|
2103
|
+
modelValue: {},
|
|
2104
|
+
class: {}
|
|
2105
|
+
},
|
|
2106
|
+
emits: ["update:modelValue"],
|
|
2107
|
+
setup(__props, { emit: __emit }) {
|
|
2108
|
+
const props = __props;
|
|
2109
|
+
const emits = __emit;
|
|
2110
|
+
const modelValue = useVModel(props, "modelValue", emits, {
|
|
2111
|
+
passive: true,
|
|
2112
|
+
defaultValue: props.defaultValue
|
|
2113
|
+
});
|
|
2114
|
+
return (_ctx, _cache) => {
|
|
2115
|
+
return withDirectives((openBlock(), createElementBlock("input", {
|
|
2116
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null),
|
|
2117
|
+
"data-slot": "input",
|
|
2118
|
+
class: normalizeClass(
|
|
2119
|
+
unref(cn)(
|
|
2120
|
+
"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
2121
|
+
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
2122
|
+
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
2123
|
+
props.class
|
|
2124
|
+
)
|
|
2125
|
+
)
|
|
2126
|
+
}, null, 2)), [
|
|
2127
|
+
[vModelText, unref(modelValue)]
|
|
2128
|
+
]);
|
|
2129
|
+
};
|
|
2130
|
+
}
|
|
2131
|
+
});
|
|
2132
|
+
|
|
2133
|
+
const _sfc_main$1M = /* @__PURE__ */ defineComponent({
|
|
2134
|
+
__name: "Label",
|
|
2135
|
+
props: {
|
|
2136
|
+
for: {},
|
|
2137
|
+
asChild: { type: Boolean },
|
|
2138
|
+
as: {},
|
|
2139
|
+
class: {}
|
|
2140
|
+
},
|
|
2141
|
+
setup(__props) {
|
|
2142
|
+
const props = __props;
|
|
2143
|
+
const delegatedProps = computed(() => {
|
|
2144
|
+
const { class: _, ...delegated } = props;
|
|
2145
|
+
return delegated;
|
|
2146
|
+
});
|
|
2147
|
+
return (_ctx, _cache) => {
|
|
2148
|
+
return openBlock(), createBlock(unref(Label), mergeProps({ "data-slot": "label" }, delegatedProps.value, {
|
|
2149
|
+
class: unref(cn)(
|
|
2150
|
+
"flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
|
|
2151
|
+
props.class
|
|
2152
|
+
)
|
|
2153
|
+
}), {
|
|
2154
|
+
default: withCtx(() => [
|
|
2155
|
+
renderSlot(_ctx.$slots, "default")
|
|
2156
|
+
]),
|
|
2157
|
+
_: 3
|
|
2158
|
+
}, 16, ["class"]);
|
|
2159
|
+
};
|
|
2160
|
+
}
|
|
2161
|
+
});
|
|
2162
|
+
|
|
2163
|
+
const _sfc_main$1L = /* @__PURE__ */ defineComponent({
|
|
2164
|
+
__name: "Label",
|
|
2165
|
+
props: {
|
|
2166
|
+
class: {}
|
|
2167
|
+
},
|
|
2168
|
+
setup(__props) {
|
|
2169
|
+
const props = __props;
|
|
2170
|
+
return (_ctx, _cache) => {
|
|
2171
|
+
return openBlock(), createBlock(unref(_sfc_main$1M), {
|
|
2172
|
+
class: normalizeClass(unref(cn)("flex w-full flex-col gap-2 font-normal", props.class))
|
|
2173
|
+
}, {
|
|
2174
|
+
default: withCtx(() => [
|
|
2175
|
+
renderSlot(_ctx.$slots, "default")
|
|
2176
|
+
]),
|
|
2177
|
+
_: 3
|
|
2178
|
+
}, 8, ["class"]);
|
|
2179
|
+
};
|
|
2180
|
+
}
|
|
2181
|
+
});
|
|
2182
|
+
|
|
2183
|
+
const _sfc_main$1K = /* @__PURE__ */ defineComponent({
|
|
2184
|
+
__name: "NumberField",
|
|
2185
|
+
props: {
|
|
2186
|
+
defaultValue: {},
|
|
2187
|
+
modelValue: {},
|
|
2188
|
+
min: {},
|
|
2189
|
+
max: {},
|
|
2190
|
+
step: {},
|
|
2191
|
+
stepSnapping: { type: Boolean },
|
|
2192
|
+
formatOptions: {},
|
|
2193
|
+
locale: {},
|
|
2194
|
+
disabled: { type: Boolean },
|
|
2195
|
+
disableWheelChange: { type: Boolean },
|
|
2196
|
+
id: {},
|
|
2197
|
+
asChild: { type: Boolean },
|
|
2198
|
+
as: {},
|
|
2199
|
+
name: {},
|
|
2200
|
+
required: { type: Boolean },
|
|
2201
|
+
class: {}
|
|
2202
|
+
},
|
|
2203
|
+
emits: ["update:modelValue"],
|
|
2204
|
+
setup(__props, { emit: __emit }) {
|
|
2205
|
+
const props = __props;
|
|
2206
|
+
const emits = __emit;
|
|
2207
|
+
const delegatedProps = computed(() => {
|
|
2208
|
+
const { class: _, ...delegated } = props;
|
|
2209
|
+
return delegated;
|
|
2210
|
+
});
|
|
2211
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
2212
|
+
return (_ctx, _cache) => {
|
|
2213
|
+
return openBlock(), createBlock(unref(NumberFieldRoot), mergeProps(unref(forwarded), {
|
|
2214
|
+
class: unref(cn)("grid gap-1.5", props.class)
|
|
2215
|
+
}), {
|
|
2216
|
+
default: withCtx(() => [
|
|
2217
|
+
renderSlot(_ctx.$slots, "default")
|
|
2218
|
+
]),
|
|
2219
|
+
_: 3
|
|
2220
|
+
}, 16, ["class"]);
|
|
2221
|
+
};
|
|
2222
|
+
}
|
|
2223
|
+
});
|
|
2224
|
+
|
|
2225
|
+
const _sfc_main$1J = /* @__PURE__ */ defineComponent({
|
|
2226
|
+
__name: "NumberFieldContent",
|
|
2227
|
+
props: {
|
|
2228
|
+
class: {}
|
|
2229
|
+
},
|
|
2230
|
+
setup(__props) {
|
|
2231
|
+
const props = __props;
|
|
2232
|
+
return (_ctx, _cache) => {
|
|
2233
|
+
return openBlock(), createElementBlock("div", {
|
|
2234
|
+
class: normalizeClass(
|
|
2235
|
+
unref(cn)(
|
|
2236
|
+
"relative [&>[data-slot=input]]:has-[[data-slot=increment]]:pr-5 [&>[data-slot=input]]:has-[[data-slot=decrement]]:pl-5",
|
|
2237
|
+
props.class
|
|
2238
|
+
)
|
|
2239
|
+
)
|
|
2240
|
+
}, [
|
|
2241
|
+
renderSlot(_ctx.$slots, "default")
|
|
2242
|
+
], 2);
|
|
2243
|
+
};
|
|
2244
|
+
}
|
|
2245
|
+
});
|
|
2246
|
+
|
|
2247
|
+
const _sfc_main$1I = /* @__PURE__ */ defineComponent({
|
|
2248
|
+
__name: "NumberFieldDecrement",
|
|
2249
|
+
props: {
|
|
2250
|
+
disabled: { type: Boolean },
|
|
2251
|
+
asChild: { type: Boolean },
|
|
2252
|
+
as: {},
|
|
2253
|
+
class: {}
|
|
2254
|
+
},
|
|
2255
|
+
setup(__props) {
|
|
2256
|
+
const props = __props;
|
|
2257
|
+
const delegatedProps = computed(() => {
|
|
2258
|
+
const { class: _, ...delegated } = props;
|
|
2259
|
+
return delegated;
|
|
2260
|
+
});
|
|
2261
|
+
const forwarded = useForwardProps(delegatedProps);
|
|
2262
|
+
return (_ctx, _cache) => {
|
|
2263
|
+
return openBlock(), createBlock(unref(NumberFieldDecrement), mergeProps({ "data-slot": "decrement" }, unref(forwarded), {
|
|
2264
|
+
class: unref(cn)(
|
|
2265
|
+
"absolute top-1/2 -translate-y-1/2 left-0 p-3 disabled:cursor-not-allowed disabled:opacity-20",
|
|
2266
|
+
props.class
|
|
2267
|
+
)
|
|
2268
|
+
}), {
|
|
2269
|
+
default: withCtx(() => [
|
|
2270
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
2271
|
+
createVNode(unref(Minus), { class: "h-4 w-4" })
|
|
2272
|
+
])
|
|
2273
|
+
]),
|
|
2274
|
+
_: 3
|
|
2275
|
+
}, 16, ["class"]);
|
|
2276
|
+
};
|
|
2277
|
+
}
|
|
2278
|
+
});
|
|
2279
|
+
|
|
2280
|
+
const _sfc_main$1H = /* @__PURE__ */ defineComponent({
|
|
2281
|
+
__name: "NumberFieldIncrement",
|
|
2282
|
+
props: {
|
|
2283
|
+
disabled: { type: Boolean },
|
|
2284
|
+
asChild: { type: Boolean },
|
|
2285
|
+
as: {},
|
|
2286
|
+
class: {}
|
|
2287
|
+
},
|
|
2288
|
+
setup(__props) {
|
|
2289
|
+
const props = __props;
|
|
2290
|
+
const delegatedProps = computed(() => {
|
|
2291
|
+
const { class: _, ...delegated } = props;
|
|
2292
|
+
return delegated;
|
|
2293
|
+
});
|
|
2294
|
+
const forwarded = useForwardProps(delegatedProps);
|
|
2295
|
+
return (_ctx, _cache) => {
|
|
2296
|
+
return openBlock(), createBlock(unref(NumberFieldIncrement), mergeProps({ "data-slot": "increment" }, unref(forwarded), {
|
|
2297
|
+
class: unref(cn)(
|
|
2298
|
+
"absolute top-1/2 -translate-y-1/2 right-0 disabled:cursor-not-allowed disabled:opacity-20 p-3",
|
|
2299
|
+
props.class
|
|
2300
|
+
)
|
|
2301
|
+
}), {
|
|
2302
|
+
default: withCtx(() => [
|
|
2303
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
2304
|
+
createVNode(unref(Plus), { class: "h-4 w-4" })
|
|
2305
|
+
])
|
|
2306
|
+
]),
|
|
2307
|
+
_: 3
|
|
2308
|
+
}, 16, ["class"]);
|
|
2309
|
+
};
|
|
2310
|
+
}
|
|
2311
|
+
});
|
|
2312
|
+
|
|
2313
|
+
const _sfc_main$1G = /* @__PURE__ */ defineComponent({
|
|
2314
|
+
__name: "NumberFieldInput",
|
|
2315
|
+
props: {
|
|
2316
|
+
class: {}
|
|
2317
|
+
},
|
|
2318
|
+
setup(__props) {
|
|
2319
|
+
const props = __props;
|
|
2320
|
+
return (_ctx, _cache) => {
|
|
2321
|
+
return openBlock(), createBlock(unref(NumberFieldInput), {
|
|
2322
|
+
"data-slot": "input",
|
|
2323
|
+
class: normalizeClass(
|
|
2324
|
+
unref(cn)(
|
|
2325
|
+
"flex h-9 w-full rounded-md border border-input bg-transparent py-1 text-sm text-center shadow-sm transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
|
|
2326
|
+
props.class
|
|
2327
|
+
)
|
|
2328
|
+
)
|
|
2329
|
+
}, null, 8, ["class"]);
|
|
2330
|
+
};
|
|
2331
|
+
}
|
|
2332
|
+
});
|
|
2333
|
+
|
|
2334
|
+
const _hoisted_1$8 = { class: "w-full" };
|
|
2335
|
+
const _sfc_main$1F = /* @__PURE__ */ defineComponent({
|
|
2336
|
+
__name: "InputNumber",
|
|
2337
|
+
props: {
|
|
2338
|
+
class: {},
|
|
2339
|
+
defaultValue: {},
|
|
2340
|
+
disabled: { type: Boolean },
|
|
2341
|
+
formatOptions: { default: () => ({ useGrouping: false }) },
|
|
2342
|
+
label: {},
|
|
2343
|
+
labelClass: {},
|
|
2344
|
+
max: {},
|
|
2345
|
+
min: {},
|
|
2346
|
+
modelValue: {}
|
|
2347
|
+
},
|
|
2348
|
+
emits: ["update:modelValue"],
|
|
2349
|
+
setup(__props, { emit: __emit }) {
|
|
2350
|
+
const props = __props;
|
|
2351
|
+
const emit = __emit;
|
|
2352
|
+
const value = computed({
|
|
2353
|
+
// eslint-disable-next-line no-undefined
|
|
2354
|
+
get: () => props.modelValue ?? void 0,
|
|
2355
|
+
set: (it) => emit("update:modelValue", it ?? null)
|
|
2356
|
+
});
|
|
2357
|
+
const [DefineTemplate, ReuseTemplate] = createReusableTemplate();
|
|
2358
|
+
return (_ctx, _cache) => {
|
|
2359
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
2360
|
+
createVNode(unref(DefineTemplate), null, {
|
|
2361
|
+
default: withCtx(() => [
|
|
2362
|
+
createVNode(unref(_sfc_main$1K), {
|
|
2363
|
+
modelValue: value.value,
|
|
2364
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
|
|
2365
|
+
"default-value": _ctx.defaultValue,
|
|
2366
|
+
"format-options": _ctx.formatOptions,
|
|
2367
|
+
min: _ctx.min,
|
|
2368
|
+
max: _ctx.max,
|
|
2369
|
+
disabled: _ctx.disabled,
|
|
2370
|
+
class: normalizeClass(unref(cn)("w-full", props.class))
|
|
2371
|
+
}, {
|
|
2372
|
+
default: withCtx(() => [
|
|
2373
|
+
createVNode(unref(_sfc_main$1J), null, {
|
|
2374
|
+
default: withCtx(() => [
|
|
2375
|
+
createVNode(unref(_sfc_main$1I)),
|
|
2376
|
+
createVNode(unref(_sfc_main$1G)),
|
|
2377
|
+
createVNode(unref(_sfc_main$1H))
|
|
2378
|
+
]),
|
|
2379
|
+
_: 1
|
|
2380
|
+
})
|
|
2381
|
+
]),
|
|
2382
|
+
_: 1
|
|
2383
|
+
}, 8, ["modelValue", "default-value", "format-options", "min", "max", "disabled", "class"])
|
|
2384
|
+
]),
|
|
2385
|
+
_: 1
|
|
2386
|
+
}),
|
|
2387
|
+
_ctx.label ? (openBlock(), createBlock(unref(_sfc_main$1L), {
|
|
2388
|
+
key: 0,
|
|
2389
|
+
class: normalizeClass(_ctx.labelClass)
|
|
2390
|
+
}, {
|
|
2391
|
+
default: withCtx(() => [
|
|
2392
|
+
createElementVNode("span", _hoisted_1$8, toDisplayString(_ctx.label), 1),
|
|
2393
|
+
createVNode(unref(ReuseTemplate))
|
|
2394
|
+
]),
|
|
2395
|
+
_: 1
|
|
2396
|
+
}, 8, ["class"])) : (openBlock(), createBlock(unref(ReuseTemplate), { key: 1 }))
|
|
2397
|
+
], 64);
|
|
2398
|
+
};
|
|
2399
|
+
}
|
|
2400
|
+
});
|
|
2401
|
+
|
|
2402
|
+
const _hoisted_1$7 = { class: "w-full" };
|
|
2403
|
+
const _sfc_main$1E = /* @__PURE__ */ defineComponent({
|
|
2404
|
+
__name: "InputText",
|
|
2405
|
+
props: {
|
|
2406
|
+
class: {},
|
|
2407
|
+
disabled: { type: Boolean },
|
|
2408
|
+
label: {},
|
|
2409
|
+
labelClass: {},
|
|
2410
|
+
max: {},
|
|
2411
|
+
min: {},
|
|
2412
|
+
modelValue: {},
|
|
2413
|
+
onBlur: { type: Function },
|
|
2414
|
+
placeholder: {},
|
|
2415
|
+
size: {}
|
|
2416
|
+
},
|
|
2417
|
+
emits: ["update:modelValue"],
|
|
2418
|
+
setup(__props, { emit: __emit }) {
|
|
2419
|
+
const props = __props;
|
|
2420
|
+
const emit = __emit;
|
|
2421
|
+
const value = computed({
|
|
2422
|
+
// eslint-disable-next-line no-undefined
|
|
2423
|
+
get: () => props.modelValue ?? void 0,
|
|
2424
|
+
set: (it) => emit("update:modelValue", it ?? null)
|
|
2425
|
+
});
|
|
2426
|
+
const [DefineTemplate, ReuseTemplate] = createReusableTemplate();
|
|
2427
|
+
return (_ctx, _cache) => {
|
|
2428
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
2429
|
+
createVNode(unref(DefineTemplate), null, {
|
|
2430
|
+
default: withCtx(() => [
|
|
2431
|
+
createVNode(unref(_sfc_main$1N), {
|
|
2432
|
+
modelValue: value.value,
|
|
2433
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
|
|
2434
|
+
modelModifiers: { trim: true },
|
|
2435
|
+
type: "text",
|
|
2436
|
+
placeholder: _ctx.placeholder,
|
|
2437
|
+
disabled: _ctx.disabled,
|
|
2438
|
+
maxlength: _ctx.max,
|
|
2439
|
+
minlength: _ctx.min,
|
|
2440
|
+
size: _ctx.size,
|
|
2441
|
+
spellcheck: "false",
|
|
2442
|
+
class: normalizeClass(unref(cn)("focus-visible:ring-0 disabled:cursor-default", props.class)),
|
|
2443
|
+
onBlur: _ctx.onBlur
|
|
2444
|
+
}, null, 8, ["modelValue", "placeholder", "disabled", "maxlength", "minlength", "size", "class", "onBlur"])
|
|
2445
|
+
]),
|
|
2446
|
+
_: 1
|
|
2447
|
+
}),
|
|
2448
|
+
_ctx.label ? (openBlock(), createBlock(unref(_sfc_main$1L), {
|
|
2449
|
+
key: 0,
|
|
2450
|
+
class: normalizeClass(_ctx.labelClass)
|
|
2451
|
+
}, {
|
|
2452
|
+
default: withCtx(() => [
|
|
2453
|
+
createElementVNode("span", _hoisted_1$7, toDisplayString(_ctx.label), 1),
|
|
2454
|
+
createVNode(unref(ReuseTemplate))
|
|
2455
|
+
]),
|
|
2456
|
+
_: 1
|
|
2457
|
+
}, 8, ["class"])) : (openBlock(), createBlock(unref(ReuseTemplate), { key: 1 }))
|
|
2458
|
+
], 64);
|
|
2459
|
+
};
|
|
2460
|
+
}
|
|
2461
|
+
});
|
|
2462
|
+
|
|
2463
|
+
const _hoisted_1$6 = { key: 0 };
|
|
2464
|
+
const _sfc_main$1D = /* @__PURE__ */ defineComponent({
|
|
2465
|
+
__name: "Link",
|
|
2466
|
+
props: {
|
|
2467
|
+
label: {},
|
|
2468
|
+
to: {}
|
|
2469
|
+
},
|
|
2470
|
+
setup(__props) {
|
|
2471
|
+
return (_ctx, _cache) => {
|
|
2472
|
+
return openBlock(), createBlock(unref(RouterLink), {
|
|
2473
|
+
to: { name: _ctx.to }
|
|
2474
|
+
}, {
|
|
2475
|
+
default: withCtx(() => [
|
|
2476
|
+
_ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$6, toDisplayString(_ctx.label), 1)) : renderSlot(_ctx.$slots, "default", { key: 1 })
|
|
2477
|
+
]),
|
|
2478
|
+
_: 3
|
|
2479
|
+
}, 8, ["to"]);
|
|
2480
|
+
};
|
|
2481
|
+
}
|
|
2482
|
+
});
|
|
2483
|
+
|
|
2484
|
+
const _sfc_main$1C = /* @__PURE__ */ defineComponent({
|
|
2485
|
+
__name: "Menubar",
|
|
2486
|
+
props: {
|
|
2487
|
+
modelValue: {},
|
|
2488
|
+
defaultValue: {},
|
|
2489
|
+
dir: {},
|
|
2490
|
+
loop: { type: Boolean },
|
|
2491
|
+
class: {}
|
|
2492
|
+
},
|
|
2493
|
+
emits: ["update:modelValue"],
|
|
2494
|
+
setup(__props, { emit: __emit }) {
|
|
2495
|
+
const props = __props;
|
|
2496
|
+
const emits = __emit;
|
|
2497
|
+
const delegatedProps = computed(() => {
|
|
2498
|
+
const { class: _, ...delegated } = props;
|
|
2499
|
+
return delegated;
|
|
2500
|
+
});
|
|
2501
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
2502
|
+
return (_ctx, _cache) => {
|
|
2503
|
+
return openBlock(), createBlock(unref(MenubarRoot), mergeProps({ "data-slot": "menubar" }, unref(forwarded), {
|
|
2504
|
+
class: unref(cn)("bg-background flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs", props.class)
|
|
2505
|
+
}), {
|
|
2506
|
+
default: withCtx(() => [
|
|
2507
|
+
renderSlot(_ctx.$slots, "default")
|
|
2508
|
+
]),
|
|
2509
|
+
_: 3
|
|
2510
|
+
}, 16, ["class"]);
|
|
2511
|
+
};
|
|
2512
|
+
}
|
|
2513
|
+
});
|
|
2514
|
+
|
|
2515
|
+
const _hoisted_1$5 = { class: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center" };
|
|
2516
|
+
const _sfc_main$1B = /* @__PURE__ */ defineComponent({
|
|
2517
|
+
__name: "MenubarCheckboxItem",
|
|
2518
|
+
props: {
|
|
2519
|
+
modelValue: { type: [Boolean, String] },
|
|
2520
|
+
disabled: { type: Boolean },
|
|
2521
|
+
textValue: {},
|
|
2522
|
+
asChild: { type: Boolean },
|
|
2523
|
+
as: {},
|
|
2524
|
+
class: {}
|
|
2525
|
+
},
|
|
2526
|
+
emits: ["select", "update:modelValue"],
|
|
2527
|
+
setup(__props, { emit: __emit }) {
|
|
2528
|
+
const props = __props;
|
|
2529
|
+
const emits = __emit;
|
|
2530
|
+
const delegatedProps = computed(() => {
|
|
2531
|
+
const { class: _, ...delegated } = props;
|
|
2532
|
+
return delegated;
|
|
2533
|
+
});
|
|
2534
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
2535
|
+
return (_ctx, _cache) => {
|
|
2536
|
+
return openBlock(), createBlock(unref(MenubarCheckboxItem), mergeProps({ "data-slot": "menubar-checkbox-item" }, unref(forwarded), {
|
|
2537
|
+
class: unref(cn)(
|
|
2538
|
+
`focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,
|
|
2539
|
+
props.class
|
|
2540
|
+
)
|
|
2541
|
+
}), {
|
|
2542
|
+
default: withCtx(() => [
|
|
2543
|
+
createElementVNode("span", _hoisted_1$5, [
|
|
2544
|
+
createVNode(unref(MenubarItemIndicator), null, {
|
|
2545
|
+
default: withCtx(() => [
|
|
2546
|
+
createVNode(unref(Check), { class: "size-4" })
|
|
2547
|
+
]),
|
|
2548
|
+
_: 1
|
|
2549
|
+
})
|
|
2550
|
+
]),
|
|
2551
|
+
renderSlot(_ctx.$slots, "default")
|
|
2552
|
+
]),
|
|
2553
|
+
_: 3
|
|
2554
|
+
}, 16, ["class"]);
|
|
2555
|
+
};
|
|
2556
|
+
}
|
|
2557
|
+
});
|
|
2558
|
+
|
|
2559
|
+
const _sfc_main$1A = /* @__PURE__ */ defineComponent({
|
|
2560
|
+
__name: "MenubarContent",
|
|
2561
|
+
props: {
|
|
2562
|
+
forceMount: { type: Boolean },
|
|
2563
|
+
loop: { type: Boolean },
|
|
2564
|
+
side: {},
|
|
2565
|
+
sideOffset: { default: 8 },
|
|
2566
|
+
align: { default: "start" },
|
|
2567
|
+
alignOffset: { default: -4 },
|
|
2568
|
+
avoidCollisions: { type: Boolean },
|
|
2569
|
+
collisionBoundary: {},
|
|
2570
|
+
collisionPadding: {},
|
|
2571
|
+
arrowPadding: {},
|
|
2572
|
+
sticky: {},
|
|
2573
|
+
hideWhenDetached: { type: Boolean },
|
|
2574
|
+
positionStrategy: {},
|
|
2575
|
+
updatePositionStrategy: {},
|
|
2576
|
+
disableUpdateOnLayoutShift: { type: Boolean },
|
|
2577
|
+
prioritizePosition: { type: Boolean },
|
|
2578
|
+
reference: {},
|
|
2579
|
+
asChild: { type: Boolean },
|
|
2580
|
+
as: {},
|
|
2581
|
+
class: {}
|
|
2582
|
+
},
|
|
2583
|
+
setup(__props) {
|
|
2584
|
+
const props = __props;
|
|
2585
|
+
const delegatedProps = computed(() => {
|
|
2586
|
+
const { class: _, ...delegated } = props;
|
|
2587
|
+
return delegated;
|
|
2588
|
+
});
|
|
2589
|
+
const forwardedProps = useForwardProps(delegatedProps);
|
|
2590
|
+
return (_ctx, _cache) => {
|
|
2591
|
+
return openBlock(), createBlock(unref(MenubarPortal), null, {
|
|
2592
|
+
default: withCtx(() => [
|
|
2593
|
+
createVNode(unref(MenubarContent), mergeProps({ "data-slot": "menubar-content" }, unref(forwardedProps), {
|
|
2594
|
+
class: unref(cn)(
|
|
2595
|
+
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[12rem] origin-(--reka-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-md",
|
|
2596
|
+
props.class
|
|
2597
|
+
)
|
|
2598
|
+
}), {
|
|
2599
|
+
default: withCtx(() => [
|
|
2600
|
+
renderSlot(_ctx.$slots, "default")
|
|
2601
|
+
]),
|
|
2602
|
+
_: 3
|
|
2603
|
+
}, 16, ["class"])
|
|
2604
|
+
]),
|
|
2605
|
+
_: 3
|
|
2606
|
+
});
|
|
2607
|
+
};
|
|
2608
|
+
}
|
|
2609
|
+
});
|
|
2610
|
+
|
|
2611
|
+
const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
2612
|
+
__name: "MenubarGroup",
|
|
1420
2613
|
props: {
|
|
1421
2614
|
asChild: { type: Boolean },
|
|
1422
2615
|
as: {}
|
|
@@ -1424,7 +2617,7 @@ const _sfc_main$1A = /* @__PURE__ */ defineComponent({
|
|
|
1424
2617
|
setup(__props) {
|
|
1425
2618
|
const props = __props;
|
|
1426
2619
|
return (_ctx, _cache) => {
|
|
1427
|
-
return openBlock(), createBlock(unref(
|
|
2620
|
+
return openBlock(), createBlock(unref(MenubarGroup), mergeProps({ "data-slot": "menubar-group" }, props), {
|
|
1428
2621
|
default: withCtx(() => [
|
|
1429
2622
|
renderSlot(_ctx.$slots, "default")
|
|
1430
2623
|
]),
|
|
@@ -1434,8 +2627,8 @@ const _sfc_main$1A = /* @__PURE__ */ defineComponent({
|
|
|
1434
2627
|
}
|
|
1435
2628
|
});
|
|
1436
2629
|
|
|
1437
|
-
const _sfc_main$
|
|
1438
|
-
__name: "
|
|
2630
|
+
const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
2631
|
+
__name: "MenubarItem",
|
|
1439
2632
|
props: {
|
|
1440
2633
|
disabled: { type: Boolean },
|
|
1441
2634
|
textValue: {},
|
|
@@ -1443,18 +2636,20 @@ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
|
1443
2636
|
as: {},
|
|
1444
2637
|
class: {},
|
|
1445
2638
|
inset: { type: Boolean },
|
|
1446
|
-
variant: {
|
|
2639
|
+
variant: {}
|
|
1447
2640
|
},
|
|
1448
|
-
|
|
2641
|
+
emits: ["select"],
|
|
2642
|
+
setup(__props, { emit: __emit }) {
|
|
1449
2643
|
const props = __props;
|
|
1450
|
-
const
|
|
1451
|
-
const
|
|
2644
|
+
const emits = __emit;
|
|
2645
|
+
const delegatedProps = reactiveOmit(props, "class", "inset", "variant");
|
|
2646
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
1452
2647
|
return (_ctx, _cache) => {
|
|
1453
|
-
return openBlock(), createBlock(unref(
|
|
1454
|
-
"data-slot": "
|
|
2648
|
+
return openBlock(), createBlock(unref(MenubarItem), mergeProps({
|
|
2649
|
+
"data-slot": "menubar-item",
|
|
1455
2650
|
"data-inset": _ctx.inset ? "" : void 0,
|
|
1456
2651
|
"data-variant": _ctx.variant
|
|
1457
|
-
}, unref(
|
|
2652
|
+
}, unref(forwarded), {
|
|
1458
2653
|
class: unref(cn)(
|
|
1459
2654
|
`focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive-foreground data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/40 data-[variant=destructive]:focus:text-destructive-foreground data-[variant=destructive]:*:[svg]:!text-destructive-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,
|
|
1460
2655
|
props.class
|
|
@@ -1469,8 +2664,8 @@ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
|
|
|
1469
2664
|
}
|
|
1470
2665
|
});
|
|
1471
2666
|
|
|
1472
|
-
const _sfc_main$
|
|
1473
|
-
__name: "
|
|
2667
|
+
const _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
2668
|
+
__name: "MenubarLabel",
|
|
1474
2669
|
props: {
|
|
1475
2670
|
asChild: { type: Boolean },
|
|
1476
2671
|
as: {},
|
|
@@ -1480,12 +2675,10 @@ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
|
1480
2675
|
setup(__props) {
|
|
1481
2676
|
const props = __props;
|
|
1482
2677
|
const delegatedProps = reactiveOmit(props, "class", "inset");
|
|
1483
|
-
const forwardedProps = useForwardProps(delegatedProps);
|
|
1484
2678
|
return (_ctx, _cache) => {
|
|
1485
|
-
return openBlock(), createBlock(unref(
|
|
1486
|
-
"data-slot": "dropdown-menu-label",
|
|
2679
|
+
return openBlock(), createBlock(unref(MenubarLabel), mergeProps({
|
|
1487
2680
|
"data-inset": _ctx.inset ? "" : void 0
|
|
1488
|
-
}, unref(
|
|
2681
|
+
}, unref(delegatedProps), {
|
|
1489
2682
|
class: unref(cn)("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", props.class)
|
|
1490
2683
|
}), {
|
|
1491
2684
|
default: withCtx(() => [
|
|
@@ -1497,8 +2690,26 @@ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
|
|
|
1497
2690
|
}
|
|
1498
2691
|
});
|
|
1499
2692
|
|
|
1500
|
-
const _sfc_main$
|
|
1501
|
-
__name: "
|
|
2693
|
+
const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
2694
|
+
__name: "MenubarMenu",
|
|
2695
|
+
props: {
|
|
2696
|
+
value: {}
|
|
2697
|
+
},
|
|
2698
|
+
setup(__props) {
|
|
2699
|
+
const props = __props;
|
|
2700
|
+
return (_ctx, _cache) => {
|
|
2701
|
+
return openBlock(), createBlock(unref(MenubarMenu), mergeProps({ "data-slot": "menubar-menu" }, props), {
|
|
2702
|
+
default: withCtx(() => [
|
|
2703
|
+
renderSlot(_ctx.$slots, "default")
|
|
2704
|
+
]),
|
|
2705
|
+
_: 3
|
|
2706
|
+
}, 16);
|
|
2707
|
+
};
|
|
2708
|
+
}
|
|
2709
|
+
});
|
|
2710
|
+
|
|
2711
|
+
const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
2712
|
+
__name: "MenubarRadioGroup",
|
|
1502
2713
|
props: {
|
|
1503
2714
|
modelValue: {},
|
|
1504
2715
|
asChild: { type: Boolean },
|
|
@@ -1510,7 +2721,7 @@ const _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
|
1510
2721
|
const emits = __emit;
|
|
1511
2722
|
const forwarded = useForwardPropsEmits(props, emits);
|
|
1512
2723
|
return (_ctx, _cache) => {
|
|
1513
|
-
return openBlock(), createBlock(unref(
|
|
2724
|
+
return openBlock(), createBlock(unref(MenubarRadioGroup), mergeProps({ "data-slot": "menubar-radio-group" }, unref(forwarded)), {
|
|
1514
2725
|
default: withCtx(() => [
|
|
1515
2726
|
renderSlot(_ctx.$slots, "default")
|
|
1516
2727
|
]),
|
|
@@ -1520,9 +2731,9 @@ const _sfc_main$1x = /* @__PURE__ */ defineComponent({
|
|
|
1520
2731
|
}
|
|
1521
2732
|
});
|
|
1522
2733
|
|
|
1523
|
-
const _hoisted_1$
|
|
1524
|
-
const _sfc_main$
|
|
1525
|
-
__name: "
|
|
2734
|
+
const _hoisted_1$4 = { class: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center" };
|
|
2735
|
+
const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
2736
|
+
__name: "MenubarRadioItem",
|
|
1526
2737
|
props: {
|
|
1527
2738
|
value: {},
|
|
1528
2739
|
disabled: { type: Boolean },
|
|
@@ -1541,15 +2752,15 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
|
1541
2752
|
});
|
|
1542
2753
|
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
1543
2754
|
return (_ctx, _cache) => {
|
|
1544
|
-
return openBlock(), createBlock(unref(
|
|
2755
|
+
return openBlock(), createBlock(unref(MenubarRadioItem), mergeProps({ "data-slot": "menubar-radio-item" }, unref(forwarded), {
|
|
1545
2756
|
class: unref(cn)(
|
|
1546
|
-
`focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-
|
|
2757
|
+
`focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,
|
|
1547
2758
|
props.class
|
|
1548
2759
|
)
|
|
1549
2760
|
}), {
|
|
1550
2761
|
default: withCtx(() => [
|
|
1551
|
-
createElementVNode("span", _hoisted_1$
|
|
1552
|
-
createVNode(unref(
|
|
2762
|
+
createElementVNode("span", _hoisted_1$4, [
|
|
2763
|
+
createVNode(unref(MenubarItemIndicator), null, {
|
|
1553
2764
|
default: withCtx(() => [
|
|
1554
2765
|
createVNode(unref(Circle), { class: "size-2 fill-current" })
|
|
1555
2766
|
]),
|
|
@@ -1564,8 +2775,8 @@ const _sfc_main$1w = /* @__PURE__ */ defineComponent({
|
|
|
1564
2775
|
}
|
|
1565
2776
|
});
|
|
1566
2777
|
|
|
1567
|
-
const _sfc_main$
|
|
1568
|
-
__name: "
|
|
2778
|
+
const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
2779
|
+
__name: "MenubarSeparator",
|
|
1569
2780
|
props: {
|
|
1570
2781
|
asChild: { type: Boolean },
|
|
1571
2782
|
as: {},
|
|
@@ -1577,16 +2788,18 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
|
|
|
1577
2788
|
const { class: _, ...delegated } = props;
|
|
1578
2789
|
return delegated;
|
|
1579
2790
|
});
|
|
2791
|
+
const forwardedProps = useForwardProps(delegatedProps);
|
|
1580
2792
|
return (_ctx, _cache) => {
|
|
1581
|
-
return openBlock(), createBlock(unref(
|
|
2793
|
+
return openBlock(), createBlock(unref(MenubarSeparator), mergeProps({
|
|
2794
|
+
"data-slot": "menubar-separator",
|
|
1582
2795
|
class: unref(cn)("bg-border -mx-1 my-1 h-px", props.class)
|
|
1583
|
-
}), null, 16, ["class"]);
|
|
2796
|
+
}, unref(forwardedProps)), null, 16, ["class"]);
|
|
1584
2797
|
};
|
|
1585
2798
|
}
|
|
1586
2799
|
});
|
|
1587
2800
|
|
|
1588
|
-
const _sfc_main$
|
|
1589
|
-
__name: "
|
|
2801
|
+
const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
2802
|
+
__name: "MenubarShortcut",
|
|
1590
2803
|
props: {
|
|
1591
2804
|
class: {}
|
|
1592
2805
|
},
|
|
@@ -1594,7 +2807,7 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
|
1594
2807
|
const props = __props;
|
|
1595
2808
|
return (_ctx, _cache) => {
|
|
1596
2809
|
return openBlock(), createElementBlock("span", {
|
|
1597
|
-
"data-slot": "
|
|
2810
|
+
"data-slot": "menubar-shortcut",
|
|
1598
2811
|
class: normalizeClass(unref(cn)("text-muted-foreground ml-auto text-xs tracking-widest", props.class))
|
|
1599
2812
|
}, [
|
|
1600
2813
|
renderSlot(_ctx.$slots, "default")
|
|
@@ -1603,8 +2816,8 @@ const _sfc_main$1u = /* @__PURE__ */ defineComponent({
|
|
|
1603
2816
|
}
|
|
1604
2817
|
});
|
|
1605
2818
|
|
|
1606
|
-
const _sfc_main$
|
|
1607
|
-
__name: "
|
|
2819
|
+
const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
2820
|
+
__name: "MenubarSub",
|
|
1608
2821
|
props: {
|
|
1609
2822
|
defaultOpen: { type: Boolean },
|
|
1610
2823
|
open: { type: Boolean }
|
|
@@ -1615,7 +2828,7 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
|
1615
2828
|
const emits = __emit;
|
|
1616
2829
|
const forwarded = useForwardPropsEmits(props, emits);
|
|
1617
2830
|
return (_ctx, _cache) => {
|
|
1618
|
-
return openBlock(), createBlock(unref(
|
|
2831
|
+
return openBlock(), createBlock(unref(MenubarSub), mergeProps({ "data-slot": "menubar-sub" }, unref(forwarded)), {
|
|
1619
2832
|
default: withCtx(() => [
|
|
1620
2833
|
renderSlot(_ctx.$slots, "default")
|
|
1621
2834
|
]),
|
|
@@ -1625,8 +2838,8 @@ const _sfc_main$1t = /* @__PURE__ */ defineComponent({
|
|
|
1625
2838
|
}
|
|
1626
2839
|
});
|
|
1627
2840
|
|
|
1628
|
-
const _sfc_main$
|
|
1629
|
-
__name: "
|
|
2841
|
+
const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
2842
|
+
__name: "MenubarSubContent",
|
|
1630
2843
|
props: {
|
|
1631
2844
|
forceMount: { type: Boolean },
|
|
1632
2845
|
loop: { type: Boolean },
|
|
@@ -1652,28 +2865,33 @@ const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
|
1652
2865
|
const props = __props;
|
|
1653
2866
|
const emits = __emit;
|
|
1654
2867
|
const delegatedProps = computed(() => {
|
|
1655
|
-
const { class: _, ...delegated } = props;
|
|
1656
|
-
return delegated;
|
|
1657
|
-
});
|
|
1658
|
-
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
1659
|
-
return (_ctx, _cache) => {
|
|
1660
|
-
return openBlock(), createBlock(unref(
|
|
1661
|
-
class: unref(cn)(
|
|
1662
|
-
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--reka-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
|
|
1663
|
-
props.class
|
|
1664
|
-
)
|
|
1665
|
-
}), {
|
|
2868
|
+
const { class: _, ...delegated } = props;
|
|
2869
|
+
return delegated;
|
|
2870
|
+
});
|
|
2871
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
2872
|
+
return (_ctx, _cache) => {
|
|
2873
|
+
return openBlock(), createBlock(unref(MenubarPortal), null, {
|
|
1666
2874
|
default: withCtx(() => [
|
|
1667
|
-
|
|
2875
|
+
createVNode(unref(MenubarSubContent), mergeProps({ "data-slot": "menubar-sub-content" }, unref(forwarded), {
|
|
2876
|
+
class: unref(cn)(
|
|
2877
|
+
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--reka-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
|
|
2878
|
+
props.class
|
|
2879
|
+
)
|
|
2880
|
+
}), {
|
|
2881
|
+
default: withCtx(() => [
|
|
2882
|
+
renderSlot(_ctx.$slots, "default")
|
|
2883
|
+
]),
|
|
2884
|
+
_: 3
|
|
2885
|
+
}, 16, ["class"])
|
|
1668
2886
|
]),
|
|
1669
2887
|
_: 3
|
|
1670
|
-
}
|
|
2888
|
+
});
|
|
1671
2889
|
};
|
|
1672
2890
|
}
|
|
1673
2891
|
});
|
|
1674
2892
|
|
|
1675
|
-
const _sfc_main$
|
|
1676
|
-
__name: "
|
|
2893
|
+
const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
2894
|
+
__name: "MenubarSubTrigger",
|
|
1677
2895
|
props: {
|
|
1678
2896
|
disabled: { type: Boolean },
|
|
1679
2897
|
textValue: {},
|
|
@@ -1687,9 +2905,12 @@ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
|
1687
2905
|
const delegatedProps = reactiveOmit(props, "class", "inset");
|
|
1688
2906
|
const forwardedProps = useForwardProps(delegatedProps);
|
|
1689
2907
|
return (_ctx, _cache) => {
|
|
1690
|
-
return openBlock(), createBlock(unref(
|
|
2908
|
+
return openBlock(), createBlock(unref(MenubarSubTrigger), mergeProps({
|
|
2909
|
+
"data-slot": "menubar-sub-trigger",
|
|
2910
|
+
"data-inset": _ctx.inset ? "" : void 0
|
|
2911
|
+
}, unref(forwardedProps), {
|
|
1691
2912
|
class: unref(cn)(
|
|
1692
|
-
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-
|
|
2913
|
+
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[inset]:pl-8",
|
|
1693
2914
|
props.class
|
|
1694
2915
|
)
|
|
1695
2916
|
}), {
|
|
@@ -1698,70 +2919,15 @@ const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
|
1698
2919
|
createVNode(unref(ChevronRight), { class: "ml-auto size-4" })
|
|
1699
2920
|
]),
|
|
1700
2921
|
_: 3
|
|
1701
|
-
}, 16, ["class"]);
|
|
1702
|
-
};
|
|
1703
|
-
}
|
|
1704
|
-
});
|
|
1705
|
-
|
|
1706
|
-
const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
1707
|
-
__name: "DropdownMenuTrigger",
|
|
1708
|
-
props: {
|
|
1709
|
-
disabled: { type: Boolean },
|
|
1710
|
-
asChild: { type: Boolean },
|
|
1711
|
-
as: {}
|
|
1712
|
-
},
|
|
1713
|
-
setup(__props) {
|
|
1714
|
-
const props = __props;
|
|
1715
|
-
const forwardedProps = useForwardProps(props);
|
|
1716
|
-
return (_ctx, _cache) => {
|
|
1717
|
-
return openBlock(), createBlock(unref(DropdownMenuTrigger), mergeProps({ "data-slot": "dropdown-menu-trigger" }, unref(forwardedProps)), {
|
|
1718
|
-
default: withCtx(() => [
|
|
1719
|
-
renderSlot(_ctx.$slots, "default")
|
|
1720
|
-
]),
|
|
1721
|
-
_: 3
|
|
1722
|
-
}, 16);
|
|
1723
|
-
};
|
|
1724
|
-
}
|
|
1725
|
-
});
|
|
1726
|
-
|
|
1727
|
-
const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
1728
|
-
__name: "Input",
|
|
1729
|
-
props: {
|
|
1730
|
-
defaultValue: {},
|
|
1731
|
-
modelValue: {},
|
|
1732
|
-
class: {}
|
|
1733
|
-
},
|
|
1734
|
-
emits: ["update:modelValue"],
|
|
1735
|
-
setup(__props, { emit: __emit }) {
|
|
1736
|
-
const props = __props;
|
|
1737
|
-
const emits = __emit;
|
|
1738
|
-
const modelValue = useVModel(props, "modelValue", emits, {
|
|
1739
|
-
passive: true,
|
|
1740
|
-
defaultValue: props.defaultValue
|
|
1741
|
-
});
|
|
1742
|
-
return (_ctx, _cache) => {
|
|
1743
|
-
return withDirectives((openBlock(), createElementBlock("input", {
|
|
1744
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(modelValue) ? modelValue.value = $event : null),
|
|
1745
|
-
"data-slot": "input",
|
|
1746
|
-
class: normalizeClass(
|
|
1747
|
-
unref(cn)(
|
|
1748
|
-
"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
1749
|
-
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
1750
|
-
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
1751
|
-
props.class
|
|
1752
|
-
)
|
|
1753
|
-
)
|
|
1754
|
-
}, null, 2)), [
|
|
1755
|
-
[vModelText, unref(modelValue)]
|
|
1756
|
-
]);
|
|
2922
|
+
}, 16, ["data-inset", "class"]);
|
|
1757
2923
|
};
|
|
1758
2924
|
}
|
|
1759
2925
|
});
|
|
1760
2926
|
|
|
1761
2927
|
const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
1762
|
-
__name: "
|
|
2928
|
+
__name: "MenubarTrigger",
|
|
1763
2929
|
props: {
|
|
1764
|
-
|
|
2930
|
+
disabled: { type: Boolean },
|
|
1765
2931
|
asChild: { type: Boolean },
|
|
1766
2932
|
as: {},
|
|
1767
2933
|
class: {}
|
|
@@ -1772,10 +2938,11 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
1772
2938
|
const { class: _, ...delegated } = props;
|
|
1773
2939
|
return delegated;
|
|
1774
2940
|
});
|
|
2941
|
+
const forwardedProps = useForwardProps(delegatedProps);
|
|
1775
2942
|
return (_ctx, _cache) => {
|
|
1776
|
-
return openBlock(), createBlock(unref(
|
|
2943
|
+
return openBlock(), createBlock(unref(MenubarTrigger), mergeProps({ "data-slot": "menubar-trigger" }, unref(forwardedProps), {
|
|
1777
2944
|
class: unref(cn)(
|
|
1778
|
-
"
|
|
2945
|
+
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex items-center rounded-sm px-2 py-1 text-sm font-medium outline-hidden select-none",
|
|
1779
2946
|
props.class
|
|
1780
2947
|
)
|
|
1781
2948
|
}), {
|
|
@@ -1789,60 +2956,57 @@ const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
|
1789
2956
|
});
|
|
1790
2957
|
|
|
1791
2958
|
const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
1792
|
-
__name: "
|
|
2959
|
+
__name: "Pagination",
|
|
1793
2960
|
props: {
|
|
2961
|
+
page: {},
|
|
2962
|
+
defaultPage: {},
|
|
2963
|
+
itemsPerPage: {},
|
|
2964
|
+
total: {},
|
|
2965
|
+
siblingCount: {},
|
|
2966
|
+
disabled: { type: Boolean },
|
|
2967
|
+
showEdges: { type: Boolean },
|
|
2968
|
+
asChild: { type: Boolean },
|
|
2969
|
+
as: {},
|
|
1794
2970
|
class: {}
|
|
1795
2971
|
},
|
|
1796
|
-
|
|
2972
|
+
emits: ["update:page"],
|
|
2973
|
+
setup(__props, { emit: __emit }) {
|
|
1797
2974
|
const props = __props;
|
|
2975
|
+
const emits = __emit;
|
|
2976
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
2977
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
1798
2978
|
return (_ctx, _cache) => {
|
|
1799
|
-
return openBlock(), createBlock(unref(
|
|
1800
|
-
class:
|
|
1801
|
-
}, {
|
|
1802
|
-
default: withCtx(() => [
|
|
1803
|
-
renderSlot(_ctx.$slots, "default")
|
|
2979
|
+
return openBlock(), createBlock(unref(PaginationRoot), mergeProps({ "data-slot": "pagination" }, unref(forwarded), {
|
|
2980
|
+
class: unref(cn)("mx-auto flex w-full justify-center", props.class)
|
|
2981
|
+
}), {
|
|
2982
|
+
default: withCtx((slotProps) => [
|
|
2983
|
+
renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps)))
|
|
1804
2984
|
]),
|
|
1805
2985
|
_: 3
|
|
1806
|
-
},
|
|
2986
|
+
}, 16, ["class"]);
|
|
1807
2987
|
};
|
|
1808
2988
|
}
|
|
1809
2989
|
});
|
|
1810
2990
|
|
|
1811
2991
|
const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
1812
|
-
__name: "
|
|
2992
|
+
__name: "PaginationContent",
|
|
1813
2993
|
props: {
|
|
1814
|
-
defaultValue: {},
|
|
1815
|
-
modelValue: {},
|
|
1816
|
-
min: {},
|
|
1817
|
-
max: {},
|
|
1818
|
-
step: {},
|
|
1819
|
-
stepSnapping: { type: Boolean },
|
|
1820
|
-
formatOptions: {},
|
|
1821
|
-
locale: {},
|
|
1822
|
-
disabled: { type: Boolean },
|
|
1823
|
-
disableWheelChange: { type: Boolean },
|
|
1824
|
-
id: {},
|
|
1825
2994
|
asChild: { type: Boolean },
|
|
1826
2995
|
as: {},
|
|
1827
|
-
name: {},
|
|
1828
|
-
required: { type: Boolean },
|
|
1829
2996
|
class: {}
|
|
1830
2997
|
},
|
|
1831
|
-
|
|
1832
|
-
setup(__props, { emit: __emit }) {
|
|
2998
|
+
setup(__props) {
|
|
1833
2999
|
const props = __props;
|
|
1834
|
-
const emits = __emit;
|
|
1835
3000
|
const delegatedProps = computed(() => {
|
|
1836
3001
|
const { class: _, ...delegated } = props;
|
|
1837
3002
|
return delegated;
|
|
1838
3003
|
});
|
|
1839
|
-
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
1840
3004
|
return (_ctx, _cache) => {
|
|
1841
|
-
return openBlock(), createBlock(unref(
|
|
1842
|
-
class: unref(cn)("
|
|
3005
|
+
return openBlock(), createBlock(unref(PaginationList), mergeProps({ "data-slot": "pagination-content" }, delegatedProps.value, {
|
|
3006
|
+
class: unref(cn)("flex flex-row items-center gap-1", props.class)
|
|
1843
3007
|
}), {
|
|
1844
|
-
default: withCtx(() => [
|
|
1845
|
-
renderSlot(_ctx.$slots, "default")
|
|
3008
|
+
default: withCtx((slotProps) => [
|
|
3009
|
+
renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps)))
|
|
1846
3010
|
]),
|
|
1847
3011
|
_: 3
|
|
1848
3012
|
}, 16, ["class"]);
|
|
@@ -1851,31 +3015,8 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
1851
3015
|
});
|
|
1852
3016
|
|
|
1853
3017
|
const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
1854
|
-
__name: "
|
|
1855
|
-
props: {
|
|
1856
|
-
class: {}
|
|
1857
|
-
},
|
|
1858
|
-
setup(__props) {
|
|
1859
|
-
const props = __props;
|
|
1860
|
-
return (_ctx, _cache) => {
|
|
1861
|
-
return openBlock(), createElementBlock("div", {
|
|
1862
|
-
class: normalizeClass(
|
|
1863
|
-
unref(cn)(
|
|
1864
|
-
"relative [&>[data-slot=input]]:has-[[data-slot=increment]]:pr-5 [&>[data-slot=input]]:has-[[data-slot=decrement]]:pl-5",
|
|
1865
|
-
props.class
|
|
1866
|
-
)
|
|
1867
|
-
)
|
|
1868
|
-
}, [
|
|
1869
|
-
renderSlot(_ctx.$slots, "default")
|
|
1870
|
-
], 2);
|
|
1871
|
-
};
|
|
1872
|
-
}
|
|
1873
|
-
});
|
|
1874
|
-
|
|
1875
|
-
const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
1876
|
-
__name: "NumberFieldDecrement",
|
|
3018
|
+
__name: "PaginationEllipsis",
|
|
1877
3019
|
props: {
|
|
1878
|
-
disabled: { type: Boolean },
|
|
1879
3020
|
asChild: { type: Boolean },
|
|
1880
3021
|
as: {},
|
|
1881
3022
|
class: {}
|
|
@@ -1886,17 +3027,14 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
1886
3027
|
const { class: _, ...delegated } = props;
|
|
1887
3028
|
return delegated;
|
|
1888
3029
|
});
|
|
1889
|
-
const forwarded = useForwardProps(delegatedProps);
|
|
1890
3030
|
return (_ctx, _cache) => {
|
|
1891
|
-
return openBlock(), createBlock(unref(
|
|
1892
|
-
class: unref(cn)(
|
|
1893
|
-
"absolute top-1/2 -translate-y-1/2 left-0 p-3 disabled:cursor-not-allowed disabled:opacity-20",
|
|
1894
|
-
props.class
|
|
1895
|
-
)
|
|
3031
|
+
return openBlock(), createBlock(unref(PaginationEllipsis), mergeProps({ "data-slot": "pagination-ellipsis" }, delegatedProps.value, {
|
|
3032
|
+
class: unref(cn)("flex size-9 items-center justify-center", props.class)
|
|
1896
3033
|
}), {
|
|
1897
3034
|
default: withCtx(() => [
|
|
1898
3035
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
1899
|
-
createVNode(unref(
|
|
3036
|
+
createVNode(unref(MoreHorizontal), { class: "size-4" }),
|
|
3037
|
+
_cache[0] || (_cache[0] = createElementVNode("span", { class: "sr-only" }, "More pages", -1))
|
|
1900
3038
|
])
|
|
1901
3039
|
]),
|
|
1902
3040
|
_: 3
|
|
@@ -1905,31 +3043,27 @@ const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
|
1905
3043
|
}
|
|
1906
3044
|
});
|
|
1907
3045
|
|
|
1908
|
-
const _sfc_main$
|
|
1909
|
-
__name: "
|
|
3046
|
+
const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
3047
|
+
__name: "PaginationFirst",
|
|
1910
3048
|
props: {
|
|
1911
|
-
disabled: { type: Boolean },
|
|
1912
3049
|
asChild: { type: Boolean },
|
|
1913
3050
|
as: {},
|
|
3051
|
+
size: { default: "default" },
|
|
1914
3052
|
class: {}
|
|
1915
3053
|
},
|
|
1916
3054
|
setup(__props) {
|
|
1917
3055
|
const props = __props;
|
|
1918
|
-
const delegatedProps =
|
|
1919
|
-
const { class: _, ...delegated } = props;
|
|
1920
|
-
return delegated;
|
|
1921
|
-
});
|
|
3056
|
+
const delegatedProps = reactiveOmit(props, "class", "size");
|
|
1922
3057
|
const forwarded = useForwardProps(delegatedProps);
|
|
1923
3058
|
return (_ctx, _cache) => {
|
|
1924
|
-
return openBlock(), createBlock(unref(
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
)
|
|
1929
|
-
}), {
|
|
3059
|
+
return openBlock(), createBlock(unref(PaginationFirst), mergeProps({
|
|
3060
|
+
"data-slot": "pagination-first",
|
|
3061
|
+
class: unref(cn)(unref(buttonVariants)({ variant: "ghost", size: _ctx.size }), "gap-1 px-2.5 sm:pr-2.5", props.class)
|
|
3062
|
+
}, unref(forwarded)), {
|
|
1930
3063
|
default: withCtx(() => [
|
|
1931
3064
|
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
1932
|
-
createVNode(unref(
|
|
3065
|
+
createVNode(unref(ChevronLeftIcon)),
|
|
3066
|
+
_cache[0] || (_cache[0] = createElementVNode("span", { class: "hidden sm:block" }, "First", -1))
|
|
1933
3067
|
])
|
|
1934
3068
|
]),
|
|
1935
3069
|
_: 3
|
|
@@ -1938,178 +3072,126 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
1938
3072
|
}
|
|
1939
3073
|
});
|
|
1940
3074
|
|
|
1941
|
-
const _sfc_main$
|
|
1942
|
-
__name: "
|
|
3075
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
3076
|
+
__name: "PaginationItem",
|
|
1943
3077
|
props: {
|
|
1944
|
-
|
|
3078
|
+
value: {},
|
|
3079
|
+
asChild: { type: Boolean },
|
|
3080
|
+
as: {},
|
|
3081
|
+
size: { default: "icon" },
|
|
3082
|
+
class: {},
|
|
3083
|
+
isActive: { type: Boolean }
|
|
1945
3084
|
},
|
|
1946
3085
|
setup(__props) {
|
|
1947
3086
|
const props = __props;
|
|
3087
|
+
const delegatedProps = reactiveOmit(props, "class", "size", "isActive");
|
|
1948
3088
|
return (_ctx, _cache) => {
|
|
1949
|
-
return openBlock(), createBlock(unref(
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
3089
|
+
return openBlock(), createBlock(unref(PaginationListItem), mergeProps({ "data-slot": "pagination-item" }, unref(delegatedProps), {
|
|
3090
|
+
class: unref(cn)(
|
|
3091
|
+
unref(buttonVariants)({
|
|
3092
|
+
variant: _ctx.isActive ? "outline" : "ghost",
|
|
3093
|
+
size: _ctx.size
|
|
3094
|
+
}),
|
|
3095
|
+
props.class
|
|
1956
3096
|
)
|
|
1957
|
-
},
|
|
3097
|
+
}), {
|
|
3098
|
+
default: withCtx(() => [
|
|
3099
|
+
renderSlot(_ctx.$slots, "default")
|
|
3100
|
+
]),
|
|
3101
|
+
_: 3
|
|
3102
|
+
}, 16, ["class"]);
|
|
1958
3103
|
};
|
|
1959
3104
|
}
|
|
1960
3105
|
});
|
|
1961
3106
|
|
|
1962
|
-
const
|
|
1963
|
-
|
|
1964
|
-
__name: "InputNumber",
|
|
3107
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
3108
|
+
__name: "PaginationLast",
|
|
1965
3109
|
props: {
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
createVNode(unref(DefineTemplate), null, {
|
|
1989
|
-
default: withCtx(() => [
|
|
1990
|
-
createVNode(unref(_sfc_main$1m), {
|
|
1991
|
-
modelValue: value.value,
|
|
1992
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
|
|
1993
|
-
"default-value": _ctx.defaultValue,
|
|
1994
|
-
"format-options": _ctx.formatOptions,
|
|
1995
|
-
min: _ctx.min,
|
|
1996
|
-
max: _ctx.max,
|
|
1997
|
-
disabled: _ctx.disabled,
|
|
1998
|
-
class: normalizeClass(unref(cn)("w-full", props.class))
|
|
1999
|
-
}, {
|
|
2000
|
-
default: withCtx(() => [
|
|
2001
|
-
createVNode(unref(_sfc_main$1l), null, {
|
|
2002
|
-
default: withCtx(() => [
|
|
2003
|
-
createVNode(unref(_sfc_main$1k)),
|
|
2004
|
-
createVNode(unref(_sfc_main$1i)),
|
|
2005
|
-
createVNode(unref(_sfc_main$1j))
|
|
2006
|
-
]),
|
|
2007
|
-
_: 1
|
|
2008
|
-
})
|
|
2009
|
-
]),
|
|
2010
|
-
_: 1
|
|
2011
|
-
}, 8, ["modelValue", "default-value", "format-options", "min", "max", "disabled", "class"])
|
|
2012
|
-
]),
|
|
2013
|
-
_: 1
|
|
2014
|
-
}),
|
|
2015
|
-
_ctx.label ? (openBlock(), createBlock(unref(_sfc_main$1n), {
|
|
2016
|
-
key: 0,
|
|
2017
|
-
class: normalizeClass(_ctx.labelClass)
|
|
2018
|
-
}, {
|
|
2019
|
-
default: withCtx(() => [
|
|
2020
|
-
createElementVNode("span", _hoisted_1$6, toDisplayString(_ctx.label), 1),
|
|
2021
|
-
createVNode(unref(ReuseTemplate))
|
|
2022
|
-
]),
|
|
2023
|
-
_: 1
|
|
2024
|
-
}, 8, ["class"])) : (openBlock(), createBlock(unref(ReuseTemplate), { key: 1 }))
|
|
2025
|
-
], 64);
|
|
3110
|
+
asChild: { type: Boolean },
|
|
3111
|
+
as: {},
|
|
3112
|
+
size: { default: "default" },
|
|
3113
|
+
class: {}
|
|
3114
|
+
},
|
|
3115
|
+
setup(__props) {
|
|
3116
|
+
const props = __props;
|
|
3117
|
+
const delegatedProps = reactiveOmit(props, "class", "size");
|
|
3118
|
+
const forwarded = useForwardProps(delegatedProps);
|
|
3119
|
+
return (_ctx, _cache) => {
|
|
3120
|
+
return openBlock(), createBlock(unref(PaginationLast), mergeProps({
|
|
3121
|
+
"data-slot": "pagination-last",
|
|
3122
|
+
class: unref(cn)(unref(buttonVariants)({ variant: "ghost", size: _ctx.size }), "gap-1 px-2.5 sm:pr-2.5", props.class)
|
|
3123
|
+
}, unref(forwarded)), {
|
|
3124
|
+
default: withCtx(() => [
|
|
3125
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
3126
|
+
_cache[0] || (_cache[0] = createElementVNode("span", { class: "hidden sm:block" }, "Last", -1)),
|
|
3127
|
+
createVNode(unref(ChevronRightIcon))
|
|
3128
|
+
])
|
|
3129
|
+
]),
|
|
3130
|
+
_: 3
|
|
3131
|
+
}, 16, ["class"]);
|
|
2026
3132
|
};
|
|
2027
3133
|
}
|
|
2028
3134
|
});
|
|
2029
3135
|
|
|
2030
|
-
const
|
|
2031
|
-
|
|
2032
|
-
__name: "InputText",
|
|
3136
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
3137
|
+
__name: "PaginationNext",
|
|
2033
3138
|
props: {
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
max: {},
|
|
2039
|
-
min: {},
|
|
2040
|
-
modelValue: {},
|
|
2041
|
-
onBlur: { type: Function },
|
|
2042
|
-
placeholder: {},
|
|
2043
|
-
size: {}
|
|
3139
|
+
asChild: { type: Boolean },
|
|
3140
|
+
as: {},
|
|
3141
|
+
size: { default: "default" },
|
|
3142
|
+
class: {}
|
|
2044
3143
|
},
|
|
2045
|
-
|
|
2046
|
-
setup(__props, { emit: __emit }) {
|
|
3144
|
+
setup(__props) {
|
|
2047
3145
|
const props = __props;
|
|
2048
|
-
const
|
|
2049
|
-
const
|
|
2050
|
-
// eslint-disable-next-line no-undefined
|
|
2051
|
-
get: () => props.modelValue ?? void 0,
|
|
2052
|
-
set: (it) => emit("update:modelValue", it ?? null)
|
|
2053
|
-
});
|
|
2054
|
-
const [DefineTemplate, ReuseTemplate] = createReusableTemplate();
|
|
3146
|
+
const delegatedProps = reactiveOmit(props, "class", "size");
|
|
3147
|
+
const forwarded = useForwardProps(delegatedProps);
|
|
2055
3148
|
return (_ctx, _cache) => {
|
|
2056
|
-
return openBlock(),
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
size: _ctx.size,
|
|
2069
|
-
spellcheck: "false",
|
|
2070
|
-
class: normalizeClass(unref(cn)("focus-visible:ring-0 disabled:cursor-default", props.class)),
|
|
2071
|
-
onBlur: _ctx.onBlur
|
|
2072
|
-
}, null, 8, ["modelValue", "placeholder", "disabled", "maxlength", "minlength", "size", "class", "onBlur"])
|
|
2073
|
-
]),
|
|
2074
|
-
_: 1
|
|
2075
|
-
}),
|
|
2076
|
-
_ctx.label ? (openBlock(), createBlock(unref(_sfc_main$1n), {
|
|
2077
|
-
key: 0,
|
|
2078
|
-
class: normalizeClass(_ctx.labelClass)
|
|
2079
|
-
}, {
|
|
2080
|
-
default: withCtx(() => [
|
|
2081
|
-
createElementVNode("span", _hoisted_1$5, toDisplayString(_ctx.label), 1),
|
|
2082
|
-
createVNode(unref(ReuseTemplate))
|
|
2083
|
-
]),
|
|
2084
|
-
_: 1
|
|
2085
|
-
}, 8, ["class"])) : (openBlock(), createBlock(unref(ReuseTemplate), { key: 1 }))
|
|
2086
|
-
], 64);
|
|
3149
|
+
return openBlock(), createBlock(unref(PaginationNext), mergeProps({
|
|
3150
|
+
"data-slot": "pagination-next",
|
|
3151
|
+
class: unref(cn)(unref(buttonVariants)({ variant: "ghost", size: _ctx.size }), "gap-1 px-2.5 sm:pr-2.5", props.class)
|
|
3152
|
+
}, unref(forwarded)), {
|
|
3153
|
+
default: withCtx(() => [
|
|
3154
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
3155
|
+
_cache[0] || (_cache[0] = createElementVNode("span", { class: "hidden sm:block" }, "Next", -1)),
|
|
3156
|
+
createVNode(unref(ChevronRightIcon))
|
|
3157
|
+
])
|
|
3158
|
+
]),
|
|
3159
|
+
_: 3
|
|
3160
|
+
}, 16, ["class"]);
|
|
2087
3161
|
};
|
|
2088
3162
|
}
|
|
2089
3163
|
});
|
|
2090
3164
|
|
|
2091
|
-
const
|
|
2092
|
-
|
|
2093
|
-
__name: "Link",
|
|
3165
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
3166
|
+
__name: "PaginationPrevious",
|
|
2094
3167
|
props: {
|
|
2095
|
-
|
|
2096
|
-
|
|
3168
|
+
asChild: { type: Boolean },
|
|
3169
|
+
as: {},
|
|
3170
|
+
size: { default: "default" },
|
|
3171
|
+
class: {}
|
|
2097
3172
|
},
|
|
2098
3173
|
setup(__props) {
|
|
3174
|
+
const props = __props;
|
|
3175
|
+
const delegatedProps = reactiveOmit(props, "class", "size");
|
|
3176
|
+
const forwarded = useForwardProps(delegatedProps);
|
|
2099
3177
|
return (_ctx, _cache) => {
|
|
2100
|
-
return openBlock(), createBlock(unref(
|
|
2101
|
-
|
|
2102
|
-
|
|
3178
|
+
return openBlock(), createBlock(unref(PaginationPrev), mergeProps({
|
|
3179
|
+
"data-slot": "pagination-previous",
|
|
3180
|
+
class: unref(cn)(unref(buttonVariants)({ variant: "ghost", size: _ctx.size }), "gap-1 px-2.5 sm:pr-2.5", props.class)
|
|
3181
|
+
}, unref(forwarded)), {
|
|
2103
3182
|
default: withCtx(() => [
|
|
2104
|
-
|
|
3183
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
3184
|
+
createVNode(unref(ChevronLeftIcon)),
|
|
3185
|
+
_cache[0] || (_cache[0] = createElementVNode("span", { class: "hidden sm:block" }, "Previous", -1))
|
|
3186
|
+
])
|
|
2105
3187
|
]),
|
|
2106
3188
|
_: 3
|
|
2107
|
-
},
|
|
3189
|
+
}, 16, ["class"]);
|
|
2108
3190
|
};
|
|
2109
3191
|
}
|
|
2110
3192
|
});
|
|
2111
3193
|
|
|
2112
|
-
const _sfc_main$
|
|
3194
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
2113
3195
|
__name: "Popover",
|
|
2114
3196
|
props: {
|
|
2115
3197
|
defaultOpen: { type: Boolean },
|
|
@@ -2132,7 +3214,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
2132
3214
|
}
|
|
2133
3215
|
});
|
|
2134
3216
|
|
|
2135
|
-
const _sfc_main$
|
|
3217
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
2136
3218
|
__name: "PopoverAnchor",
|
|
2137
3219
|
props: {
|
|
2138
3220
|
reference: {},
|
|
@@ -2152,7 +3234,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
2152
3234
|
}
|
|
2153
3235
|
});
|
|
2154
3236
|
|
|
2155
|
-
const _sfc_main$
|
|
3237
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
2156
3238
|
...{
|
|
2157
3239
|
inheritAttrs: false
|
|
2158
3240
|
},
|
|
@@ -2209,7 +3291,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
2209
3291
|
}
|
|
2210
3292
|
});
|
|
2211
3293
|
|
|
2212
|
-
const _sfc_main$
|
|
3294
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
2213
3295
|
__name: "PopoverTrigger",
|
|
2214
3296
|
props: {
|
|
2215
3297
|
asChild: { type: Boolean },
|
|
@@ -2228,7 +3310,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
2228
3310
|
}
|
|
2229
3311
|
});
|
|
2230
3312
|
|
|
2231
|
-
const _sfc_main$
|
|
3313
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
2232
3314
|
__name: "Progress",
|
|
2233
3315
|
props: {
|
|
2234
3316
|
modelValue: { default: 0 },
|
|
@@ -2261,7 +3343,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
2261
3343
|
}
|
|
2262
3344
|
});
|
|
2263
3345
|
|
|
2264
|
-
const _sfc_main$
|
|
3346
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
2265
3347
|
__name: "RadioGroup",
|
|
2266
3348
|
props: {
|
|
2267
3349
|
modelValue: {},
|
|
@@ -2299,7 +3381,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
2299
3381
|
}
|
|
2300
3382
|
});
|
|
2301
3383
|
|
|
2302
|
-
const _sfc_main$
|
|
3384
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
2303
3385
|
__name: "RadioGroupItem",
|
|
2304
3386
|
props: {
|
|
2305
3387
|
id: {},
|
|
@@ -2342,7 +3424,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
2342
3424
|
}
|
|
2343
3425
|
});
|
|
2344
3426
|
|
|
2345
|
-
const _sfc_main$
|
|
3427
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
2346
3428
|
__name: "Select",
|
|
2347
3429
|
props: {
|
|
2348
3430
|
open: { type: Boolean },
|
|
@@ -2373,7 +3455,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
2373
3455
|
}
|
|
2374
3456
|
});
|
|
2375
3457
|
|
|
2376
|
-
const _sfc_main$
|
|
3458
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
2377
3459
|
...{
|
|
2378
3460
|
inheritAttrs: false
|
|
2379
3461
|
},
|
|
@@ -2421,7 +3503,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
2421
3503
|
)
|
|
2422
3504
|
}), {
|
|
2423
3505
|
default: withCtx(() => [
|
|
2424
|
-
createVNode(unref(_sfc_main$
|
|
3506
|
+
createVNode(unref(_sfc_main$11)),
|
|
2425
3507
|
createVNode(unref(SelectViewport), {
|
|
2426
3508
|
class: normalizeClass(
|
|
2427
3509
|
unref(cn)(
|
|
@@ -2435,7 +3517,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
2435
3517
|
]),
|
|
2436
3518
|
_: 3
|
|
2437
3519
|
}, 8, ["class"]),
|
|
2438
|
-
createVNode(unref(_sfc_main$
|
|
3520
|
+
createVNode(unref(_sfc_main$12))
|
|
2439
3521
|
]),
|
|
2440
3522
|
_: 3
|
|
2441
3523
|
}, 16, ["class"])
|
|
@@ -2446,7 +3528,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
2446
3528
|
}
|
|
2447
3529
|
});
|
|
2448
3530
|
|
|
2449
|
-
const _sfc_main$
|
|
3531
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
2450
3532
|
__name: "SelectGroup",
|
|
2451
3533
|
props: {
|
|
2452
3534
|
asChild: { type: Boolean },
|
|
@@ -2466,7 +3548,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
2466
3548
|
});
|
|
2467
3549
|
|
|
2468
3550
|
const _hoisted_1$3 = { class: "absolute right-2 flex size-3.5 items-center justify-center" };
|
|
2469
|
-
const _sfc_main$
|
|
3551
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
2470
3552
|
__name: "SelectItem",
|
|
2471
3553
|
props: {
|
|
2472
3554
|
value: {},
|
|
@@ -2512,7 +3594,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
2512
3594
|
}
|
|
2513
3595
|
});
|
|
2514
3596
|
|
|
2515
|
-
const _sfc_main$
|
|
3597
|
+
const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
2516
3598
|
__name: "SelectItemText",
|
|
2517
3599
|
props: {
|
|
2518
3600
|
asChild: { type: Boolean },
|
|
@@ -2531,7 +3613,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
2531
3613
|
}
|
|
2532
3614
|
});
|
|
2533
3615
|
|
|
2534
|
-
const _sfc_main$
|
|
3616
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
2535
3617
|
__name: "SelectLabel",
|
|
2536
3618
|
props: {
|
|
2537
3619
|
for: {},
|
|
@@ -2555,7 +3637,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
2555
3637
|
}
|
|
2556
3638
|
});
|
|
2557
3639
|
|
|
2558
|
-
const _sfc_main$
|
|
3640
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
2559
3641
|
__name: "SelectScrollDownButton",
|
|
2560
3642
|
props: {
|
|
2561
3643
|
asChild: { type: Boolean },
|
|
@@ -2584,7 +3666,7 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
2584
3666
|
}
|
|
2585
3667
|
});
|
|
2586
3668
|
|
|
2587
|
-
const _sfc_main$
|
|
3669
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
2588
3670
|
__name: "SelectScrollUpButton",
|
|
2589
3671
|
props: {
|
|
2590
3672
|
asChild: { type: Boolean },
|
|
@@ -2613,7 +3695,7 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
2613
3695
|
}
|
|
2614
3696
|
});
|
|
2615
3697
|
|
|
2616
|
-
const _sfc_main
|
|
3698
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
2617
3699
|
__name: "SelectSeparator",
|
|
2618
3700
|
props: {
|
|
2619
3701
|
asChild: { type: Boolean },
|
|
@@ -2634,7 +3716,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
2634
3716
|
}
|
|
2635
3717
|
});
|
|
2636
3718
|
|
|
2637
|
-
const _sfc_main
|
|
3719
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
2638
3720
|
__name: "SelectTrigger",
|
|
2639
3721
|
props: {
|
|
2640
3722
|
disabled: { type: Boolean },
|
|
@@ -2673,7 +3755,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
2673
3755
|
}
|
|
2674
3756
|
});
|
|
2675
3757
|
|
|
2676
|
-
const _sfc_main$
|
|
3758
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
2677
3759
|
__name: "SelectValue",
|
|
2678
3760
|
props: {
|
|
2679
3761
|
placeholder: {},
|
|
@@ -2693,7 +3775,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
2693
3775
|
}
|
|
2694
3776
|
});
|
|
2695
3777
|
|
|
2696
|
-
const _sfc_main$
|
|
3778
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
2697
3779
|
__name: "Separator",
|
|
2698
3780
|
props: {
|
|
2699
3781
|
orientation: { default: "horizontal" },
|
|
@@ -2716,7 +3798,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
2716
3798
|
}
|
|
2717
3799
|
});
|
|
2718
3800
|
|
|
2719
|
-
const _sfc_main$
|
|
3801
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
2720
3802
|
__name: "Sheet",
|
|
2721
3803
|
props: {
|
|
2722
3804
|
open: { type: Boolean },
|
|
@@ -2739,7 +3821,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
2739
3821
|
}
|
|
2740
3822
|
});
|
|
2741
3823
|
|
|
2742
|
-
const _sfc_main$
|
|
3824
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
2743
3825
|
__name: "SheetClose",
|
|
2744
3826
|
props: {
|
|
2745
3827
|
asChild: { type: Boolean },
|
|
@@ -2758,7 +3840,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
2758
3840
|
}
|
|
2759
3841
|
});
|
|
2760
3842
|
|
|
2761
|
-
const _sfc_main$
|
|
3843
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
2762
3844
|
__name: "SheetOverlay",
|
|
2763
3845
|
props: {
|
|
2764
3846
|
forceMount: { type: Boolean },
|
|
@@ -2789,7 +3871,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
2789
3871
|
}
|
|
2790
3872
|
});
|
|
2791
3873
|
|
|
2792
|
-
const _sfc_main$
|
|
3874
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
2793
3875
|
...{
|
|
2794
3876
|
inheritAttrs: false
|
|
2795
3877
|
},
|
|
@@ -2812,7 +3894,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
2812
3894
|
return (_ctx, _cache) => {
|
|
2813
3895
|
return openBlock(), createBlock(unref(DialogPortal), null, {
|
|
2814
3896
|
default: withCtx(() => [
|
|
2815
|
-
createVNode(_sfc_main$
|
|
3897
|
+
createVNode(_sfc_main$W),
|
|
2816
3898
|
createVNode(unref(DialogContent), mergeProps({
|
|
2817
3899
|
"data-slot": "sheet-content",
|
|
2818
3900
|
class: unref(cn)(
|
|
@@ -2843,7 +3925,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
2843
3925
|
}
|
|
2844
3926
|
});
|
|
2845
3927
|
|
|
2846
|
-
const _sfc_main$
|
|
3928
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
2847
3929
|
__name: "SheetDescription",
|
|
2848
3930
|
props: {
|
|
2849
3931
|
asChild: { type: Boolean },
|
|
@@ -2870,7 +3952,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
2870
3952
|
}
|
|
2871
3953
|
});
|
|
2872
3954
|
|
|
2873
|
-
const _sfc_main$
|
|
3955
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
2874
3956
|
__name: "SheetFooter",
|
|
2875
3957
|
props: {
|
|
2876
3958
|
class: {}
|
|
@@ -2888,7 +3970,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
2888
3970
|
}
|
|
2889
3971
|
});
|
|
2890
3972
|
|
|
2891
|
-
const _sfc_main$
|
|
3973
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
2892
3974
|
__name: "SheetHeader",
|
|
2893
3975
|
props: {
|
|
2894
3976
|
class: {}
|
|
@@ -2906,7 +3988,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
2906
3988
|
}
|
|
2907
3989
|
});
|
|
2908
3990
|
|
|
2909
|
-
const _sfc_main$
|
|
3991
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
2910
3992
|
__name: "SheetTitle",
|
|
2911
3993
|
props: {
|
|
2912
3994
|
asChild: { type: Boolean },
|
|
@@ -2933,7 +4015,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
|
2933
4015
|
}
|
|
2934
4016
|
});
|
|
2935
4017
|
|
|
2936
|
-
const _sfc_main$
|
|
4018
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
2937
4019
|
__name: "SheetTrigger",
|
|
2938
4020
|
props: {
|
|
2939
4021
|
asChild: { type: Boolean },
|
|
@@ -2966,7 +4048,7 @@ const _hoisted_3 = {
|
|
|
2966
4048
|
"data-sidebar": "sidebar",
|
|
2967
4049
|
class: "bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm"
|
|
2968
4050
|
};
|
|
2969
|
-
const _sfc_main$
|
|
4051
|
+
const _sfc_main$P = /* @__PURE__ */ defineComponent({
|
|
2970
4052
|
...{
|
|
2971
4053
|
inheritAttrs: false
|
|
2972
4054
|
},
|
|
@@ -2987,12 +4069,12 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
2987
4069
|
class: unref(cn)("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col", props.class)
|
|
2988
4070
|
}, _ctx.$attrs), [
|
|
2989
4071
|
renderSlot(_ctx.$slots, "default")
|
|
2990
|
-
], 16)) : unref(isMobile) ? (openBlock(), createBlock(unref(_sfc_main$
|
|
4072
|
+
], 16)) : unref(isMobile) ? (openBlock(), createBlock(unref(_sfc_main$Y), mergeProps({
|
|
2991
4073
|
key: 1,
|
|
2992
4074
|
open: unref(openMobile)
|
|
2993
4075
|
}, _ctx.$attrs, { "onUpdate:open": unref(setOpenMobile) }), {
|
|
2994
4076
|
default: withCtx(() => [
|
|
2995
|
-
createVNode(unref(_sfc_main$
|
|
4077
|
+
createVNode(unref(_sfc_main$V), {
|
|
2996
4078
|
"data-sidebar": "sidebar",
|
|
2997
4079
|
"data-slot": "sidebar",
|
|
2998
4080
|
"data-mobile": "true",
|
|
@@ -3003,15 +4085,15 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
3003
4085
|
})
|
|
3004
4086
|
}, {
|
|
3005
4087
|
default: withCtx(() => [
|
|
3006
|
-
createVNode(_sfc_main$
|
|
4088
|
+
createVNode(_sfc_main$S, { class: "sr-only" }, {
|
|
3007
4089
|
default: withCtx(() => [
|
|
3008
|
-
createVNode(_sfc_main$
|
|
4090
|
+
createVNode(_sfc_main$R, null, {
|
|
3009
4091
|
default: withCtx(() => _cache[0] || (_cache[0] = [
|
|
3010
4092
|
createTextVNode("Sidebar")
|
|
3011
4093
|
])),
|
|
3012
4094
|
_: 1
|
|
3013
4095
|
}),
|
|
3014
|
-
createVNode(_sfc_main$
|
|
4096
|
+
createVNode(_sfc_main$U, null, {
|
|
3015
4097
|
default: withCtx(() => _cache[1] || (_cache[1] = [
|
|
3016
4098
|
createTextVNode("Displays the mobile sidebar.")
|
|
3017
4099
|
])),
|
|
@@ -3065,7 +4147,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
3065
4147
|
}
|
|
3066
4148
|
});
|
|
3067
4149
|
|
|
3068
|
-
const _sfc_main$
|
|
4150
|
+
const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
3069
4151
|
__name: "SidebarContent",
|
|
3070
4152
|
props: {
|
|
3071
4153
|
class: {}
|
|
@@ -3089,7 +4171,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
|
3089
4171
|
}
|
|
3090
4172
|
});
|
|
3091
4173
|
|
|
3092
|
-
const _sfc_main$
|
|
4174
|
+
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
3093
4175
|
__name: "SidebarFooter",
|
|
3094
4176
|
props: {
|
|
3095
4177
|
class: {}
|
|
@@ -3108,7 +4190,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
|
3108
4190
|
}
|
|
3109
4191
|
});
|
|
3110
4192
|
|
|
3111
|
-
const _sfc_main$
|
|
4193
|
+
const _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
3112
4194
|
__name: "SidebarGroup",
|
|
3113
4195
|
props: {
|
|
3114
4196
|
class: {}
|
|
@@ -3127,7 +4209,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
3127
4209
|
}
|
|
3128
4210
|
});
|
|
3129
4211
|
|
|
3130
|
-
const _sfc_main$
|
|
4212
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
3131
4213
|
__name: "SidebarGroupAction",
|
|
3132
4214
|
props: {
|
|
3133
4215
|
asChild: { type: Boolean },
|
|
@@ -3160,7 +4242,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
3160
4242
|
}
|
|
3161
4243
|
});
|
|
3162
4244
|
|
|
3163
|
-
const _sfc_main$
|
|
4245
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
3164
4246
|
__name: "SidebarGroupContent",
|
|
3165
4247
|
props: {
|
|
3166
4248
|
class: {}
|
|
@@ -3179,7 +4261,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
3179
4261
|
}
|
|
3180
4262
|
});
|
|
3181
4263
|
|
|
3182
|
-
const _sfc_main$
|
|
4264
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
3183
4265
|
__name: "SidebarGroupLabel",
|
|
3184
4266
|
props: {
|
|
3185
4267
|
asChild: { type: Boolean },
|
|
@@ -3211,7 +4293,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
3211
4293
|
}
|
|
3212
4294
|
});
|
|
3213
4295
|
|
|
3214
|
-
const _sfc_main$
|
|
4296
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
3215
4297
|
__name: "SidebarHeader",
|
|
3216
4298
|
props: {
|
|
3217
4299
|
class: {}
|
|
@@ -3230,7 +4312,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
3230
4312
|
}
|
|
3231
4313
|
});
|
|
3232
4314
|
|
|
3233
|
-
const _sfc_main$
|
|
4315
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
3234
4316
|
__name: "SidebarInset",
|
|
3235
4317
|
props: {
|
|
3236
4318
|
class: {}
|
|
@@ -3254,7 +4336,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
3254
4336
|
}
|
|
3255
4337
|
});
|
|
3256
4338
|
|
|
3257
|
-
const _sfc_main$
|
|
4339
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
3258
4340
|
__name: "SidebarMenu",
|
|
3259
4341
|
props: {
|
|
3260
4342
|
class: {}
|
|
@@ -3273,7 +4355,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
3273
4355
|
}
|
|
3274
4356
|
});
|
|
3275
4357
|
|
|
3276
|
-
const _sfc_main$
|
|
4358
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
3277
4359
|
__name: "SidebarMenuAction",
|
|
3278
4360
|
props: {
|
|
3279
4361
|
asChild: { type: Boolean },
|
|
@@ -3311,7 +4393,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
3311
4393
|
}
|
|
3312
4394
|
});
|
|
3313
4395
|
|
|
3314
|
-
const _sfc_main$
|
|
4396
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
3315
4397
|
__name: "SidebarMenuBadge",
|
|
3316
4398
|
props: {
|
|
3317
4399
|
class: {}
|
|
@@ -3340,7 +4422,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
3340
4422
|
}
|
|
3341
4423
|
});
|
|
3342
4424
|
|
|
3343
|
-
const _sfc_main$
|
|
4425
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
3344
4426
|
__name: "Tooltip",
|
|
3345
4427
|
props: {
|
|
3346
4428
|
defaultOpen: { type: Boolean },
|
|
@@ -3367,7 +4449,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
3367
4449
|
}
|
|
3368
4450
|
});
|
|
3369
4451
|
|
|
3370
|
-
const _sfc_main$
|
|
4452
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
3371
4453
|
...{
|
|
3372
4454
|
inheritAttrs: false
|
|
3373
4455
|
},
|
|
@@ -3419,7 +4501,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
3419
4501
|
}
|
|
3420
4502
|
});
|
|
3421
4503
|
|
|
3422
|
-
const _sfc_main$
|
|
4504
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
3423
4505
|
__name: "TooltipProvider",
|
|
3424
4506
|
props: {
|
|
3425
4507
|
delayDuration: { default: 0 },
|
|
@@ -3442,7 +4524,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
3442
4524
|
}
|
|
3443
4525
|
});
|
|
3444
4526
|
|
|
3445
|
-
const _sfc_main$
|
|
4527
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
3446
4528
|
__name: "TooltipTrigger",
|
|
3447
4529
|
props: {
|
|
3448
4530
|
reference: {},
|
|
@@ -3462,7 +4544,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
3462
4544
|
}
|
|
3463
4545
|
});
|
|
3464
4546
|
|
|
3465
|
-
const _sfc_main$
|
|
4547
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
3466
4548
|
__name: "SidebarMenuButtonChild",
|
|
3467
4549
|
props: {
|
|
3468
4550
|
variant: { default: "default" },
|
|
@@ -3493,7 +4575,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
3493
4575
|
}
|
|
3494
4576
|
});
|
|
3495
4577
|
|
|
3496
|
-
const _sfc_main$
|
|
4578
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
3497
4579
|
...{
|
|
3498
4580
|
inheritAttrs: false
|
|
3499
4581
|
},
|
|
@@ -3515,16 +4597,16 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
3515
4597
|
return delegated;
|
|
3516
4598
|
});
|
|
3517
4599
|
return (_ctx, _cache) => {
|
|
3518
|
-
return !_ctx.tooltip ? (openBlock(), createBlock(_sfc_main$
|
|
4600
|
+
return !_ctx.tooltip ? (openBlock(), createBlock(_sfc_main$z, normalizeProps(mergeProps({ key: 0 }, { ...delegatedProps.value, ..._ctx.$attrs })), {
|
|
3519
4601
|
default: withCtx(() => [
|
|
3520
4602
|
renderSlot(_ctx.$slots, "default")
|
|
3521
4603
|
]),
|
|
3522
4604
|
_: 3
|
|
3523
|
-
}, 16)) : (openBlock(), createBlock(unref(_sfc_main$
|
|
4605
|
+
}, 16)) : (openBlock(), createBlock(unref(_sfc_main$D), { key: 1 }, {
|
|
3524
4606
|
default: withCtx(() => [
|
|
3525
|
-
createVNode(unref(_sfc_main$
|
|
4607
|
+
createVNode(unref(_sfc_main$A), { "as-child": "" }, {
|
|
3526
4608
|
default: withCtx(() => [
|
|
3527
|
-
createVNode(_sfc_main$
|
|
4609
|
+
createVNode(_sfc_main$z, normalizeProps(guardReactiveProps({ ...delegatedProps.value, ..._ctx.$attrs })), {
|
|
3528
4610
|
default: withCtx(() => [
|
|
3529
4611
|
renderSlot(_ctx.$slots, "default")
|
|
3530
4612
|
]),
|
|
@@ -3533,7 +4615,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
3533
4615
|
]),
|
|
3534
4616
|
_: 3
|
|
3535
4617
|
}),
|
|
3536
|
-
createVNode(unref(_sfc_main$
|
|
4618
|
+
createVNode(unref(_sfc_main$C), {
|
|
3537
4619
|
side: "right",
|
|
3538
4620
|
align: "center",
|
|
3539
4621
|
hidden: unref(state) !== "collapsed" || unref(isMobile)
|
|
@@ -3552,7 +4634,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
3552
4634
|
}
|
|
3553
4635
|
});
|
|
3554
4636
|
|
|
3555
|
-
const _sfc_main$
|
|
4637
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
3556
4638
|
__name: "SidebarMenuItem",
|
|
3557
4639
|
props: {
|
|
3558
4640
|
class: {}
|
|
@@ -3571,7 +4653,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
3571
4653
|
}
|
|
3572
4654
|
});
|
|
3573
4655
|
|
|
3574
|
-
const _sfc_main$
|
|
4656
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
3575
4657
|
__name: "Skeleton",
|
|
3576
4658
|
props: {
|
|
3577
4659
|
class: {}
|
|
@@ -3587,7 +4669,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
3587
4669
|
}
|
|
3588
4670
|
});
|
|
3589
4671
|
|
|
3590
|
-
const _sfc_main$
|
|
4672
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
3591
4673
|
__name: "SidebarMenuSkeleton",
|
|
3592
4674
|
props: {
|
|
3593
4675
|
showIcon: { type: Boolean },
|
|
@@ -3604,12 +4686,12 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
3604
4686
|
"data-sidebar": "menu-skeleton",
|
|
3605
4687
|
class: normalizeClass(unref(cn)("flex h-8 items-center gap-2 rounded-md px-2", props.class))
|
|
3606
4688
|
}, [
|
|
3607
|
-
_ctx.showIcon ? (openBlock(), createBlock(unref(_sfc_main$
|
|
4689
|
+
_ctx.showIcon ? (openBlock(), createBlock(unref(_sfc_main$w), {
|
|
3608
4690
|
key: 0,
|
|
3609
4691
|
class: "size-4 rounded-md",
|
|
3610
4692
|
"data-sidebar": "menu-skeleton-icon"
|
|
3611
4693
|
})) : createCommentVNode("", true),
|
|
3612
|
-
createVNode(unref(_sfc_main$
|
|
4694
|
+
createVNode(unref(_sfc_main$w), {
|
|
3613
4695
|
class: "h-4 max-w-(--skeleton-width) flex-1",
|
|
3614
4696
|
"data-sidebar": "menu-skeleton-text",
|
|
3615
4697
|
style: normalizeStyle({ "--skeleton-width": width.value })
|
|
@@ -3619,7 +4701,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
3619
4701
|
}
|
|
3620
4702
|
});
|
|
3621
4703
|
|
|
3622
|
-
const _sfc_main$
|
|
4704
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
3623
4705
|
__name: "SidebarMenuSub",
|
|
3624
4706
|
props: {
|
|
3625
4707
|
class: {}
|
|
@@ -3644,7 +4726,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
3644
4726
|
}
|
|
3645
4727
|
});
|
|
3646
4728
|
|
|
3647
|
-
const _sfc_main$
|
|
4729
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
3648
4730
|
__name: "SidebarMenuSubButton",
|
|
3649
4731
|
props: {
|
|
3650
4732
|
asChild: { type: Boolean },
|
|
@@ -3683,7 +4765,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
3683
4765
|
}
|
|
3684
4766
|
});
|
|
3685
4767
|
|
|
3686
|
-
const _sfc_main$
|
|
4768
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
3687
4769
|
__name: "SidebarMenuSubItem",
|
|
3688
4770
|
props: {
|
|
3689
4771
|
class: {}
|
|
@@ -3702,7 +4784,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
3702
4784
|
}
|
|
3703
4785
|
});
|
|
3704
4786
|
|
|
3705
|
-
const _sfc_main$
|
|
4787
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
3706
4788
|
__name: "SidebarProvider",
|
|
3707
4789
|
props: {
|
|
3708
4790
|
defaultOpen: { type: Boolean, default: true },
|
|
@@ -3768,7 +4850,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
3768
4850
|
}
|
|
3769
4851
|
});
|
|
3770
4852
|
|
|
3771
|
-
const _sfc_main$
|
|
4853
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
3772
4854
|
__name: "SidebarRail",
|
|
3773
4855
|
props: {
|
|
3774
4856
|
class: {}
|
|
@@ -3803,7 +4885,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
3803
4885
|
}
|
|
3804
4886
|
});
|
|
3805
4887
|
|
|
3806
|
-
const _sfc_main$
|
|
4888
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
3807
4889
|
__name: "SidebarSeparator",
|
|
3808
4890
|
props: {
|
|
3809
4891
|
class: {}
|
|
@@ -3811,7 +4893,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
3811
4893
|
setup(__props) {
|
|
3812
4894
|
const props = __props;
|
|
3813
4895
|
return (_ctx, _cache) => {
|
|
3814
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
4896
|
+
return openBlock(), createBlock(unref(_sfc_main$Z), {
|
|
3815
4897
|
"data-slot": "sidebar-separator",
|
|
3816
4898
|
"data-sidebar": "separator",
|
|
3817
4899
|
class: normalizeClass(unref(cn)("bg-sidebar-border mx-2 w-auto", props.class))
|
|
@@ -3825,7 +4907,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
3825
4907
|
}
|
|
3826
4908
|
});
|
|
3827
4909
|
|
|
3828
|
-
const _sfc_main$
|
|
4910
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
3829
4911
|
__name: "SidebarTrigger",
|
|
3830
4912
|
props: {
|
|
3831
4913
|
class: {}
|
|
@@ -3834,7 +4916,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
3834
4916
|
const props = __props;
|
|
3835
4917
|
const { toggleSidebar } = useSidebar();
|
|
3836
4918
|
return (_ctx, _cache) => {
|
|
3837
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
4919
|
+
return openBlock(), createBlock(unref(_sfc_main$2K), {
|
|
3838
4920
|
"data-sidebar": "trigger",
|
|
3839
4921
|
"data-slot": "sidebar-trigger",
|
|
3840
4922
|
variant: "ghost",
|
|
@@ -3873,30 +4955,30 @@ const sidebarMenuButtonVariants = cva(
|
|
|
3873
4955
|
}
|
|
3874
4956
|
);
|
|
3875
4957
|
|
|
3876
|
-
const _sfc_main$
|
|
4958
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
3877
4959
|
__name: "Sidebar",
|
|
3878
4960
|
props: {
|
|
3879
4961
|
defaultOpen: { type: Boolean }
|
|
3880
4962
|
},
|
|
3881
4963
|
setup(__props) {
|
|
3882
4964
|
return (_ctx, _cache) => {
|
|
3883
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
4965
|
+
return openBlock(), createBlock(unref(_sfc_main$r), { "default-open": _ctx.defaultOpen }, {
|
|
3884
4966
|
default: withCtx(() => [
|
|
3885
|
-
createVNode(unref(_sfc_main$
|
|
4967
|
+
createVNode(unref(_sfc_main$P), null, {
|
|
3886
4968
|
default: withCtx(() => [
|
|
3887
|
-
_ctx.$slots.header ? (openBlock(), createBlock(unref(_sfc_main$
|
|
4969
|
+
_ctx.$slots.header ? (openBlock(), createBlock(unref(_sfc_main$I), { key: 0 }, {
|
|
3888
4970
|
default: withCtx(() => [
|
|
3889
4971
|
renderSlot(_ctx.$slots, "header")
|
|
3890
4972
|
]),
|
|
3891
4973
|
_: 3
|
|
3892
4974
|
})) : createCommentVNode("", true),
|
|
3893
|
-
_ctx.$slots.content ? (openBlock(), createBlock(unref(_sfc_main$
|
|
4975
|
+
_ctx.$slots.content ? (openBlock(), createBlock(unref(_sfc_main$O), { key: 1 }, {
|
|
3894
4976
|
default: withCtx(() => [
|
|
3895
4977
|
renderSlot(_ctx.$slots, "content")
|
|
3896
4978
|
]),
|
|
3897
4979
|
_: 3
|
|
3898
4980
|
})) : createCommentVNode("", true),
|
|
3899
|
-
_ctx.$slots.footer ? (openBlock(), createBlock(unref(_sfc_main$
|
|
4981
|
+
_ctx.$slots.footer ? (openBlock(), createBlock(unref(_sfc_main$N), { key: 2 }, {
|
|
3900
4982
|
default: withCtx(() => [
|
|
3901
4983
|
renderSlot(_ctx.$slots, "footer")
|
|
3902
4984
|
]),
|
|
@@ -3905,7 +4987,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
3905
4987
|
]),
|
|
3906
4988
|
_: 3
|
|
3907
4989
|
}),
|
|
3908
|
-
_ctx.$slots.inset ? (openBlock(), createBlock(unref(_sfc_main$
|
|
4990
|
+
_ctx.$slots.inset ? (openBlock(), createBlock(unref(_sfc_main$H), { key: 0 }, {
|
|
3909
4991
|
default: withCtx(() => [
|
|
3910
4992
|
renderSlot(_ctx.$slots, "inset")
|
|
3911
4993
|
]),
|
|
@@ -3918,6 +5000,57 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
3918
5000
|
}
|
|
3919
5001
|
});
|
|
3920
5002
|
|
|
5003
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
5004
|
+
__name: "Switch",
|
|
5005
|
+
props: {
|
|
5006
|
+
defaultValue: { type: Boolean },
|
|
5007
|
+
modelValue: { type: [Boolean, null] },
|
|
5008
|
+
disabled: { type: Boolean },
|
|
5009
|
+
id: {},
|
|
5010
|
+
value: {},
|
|
5011
|
+
asChild: { type: Boolean },
|
|
5012
|
+
as: {},
|
|
5013
|
+
name: {},
|
|
5014
|
+
required: { type: Boolean },
|
|
5015
|
+
class: {}
|
|
5016
|
+
},
|
|
5017
|
+
emits: ["update:modelValue"],
|
|
5018
|
+
setup(__props, { emit: __emit }) {
|
|
5019
|
+
const props = __props;
|
|
5020
|
+
const emits = __emit;
|
|
5021
|
+
const delegatedProps = computed(() => {
|
|
5022
|
+
const { class: _, ...delegated } = props;
|
|
5023
|
+
return delegated;
|
|
5024
|
+
});
|
|
5025
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
5026
|
+
return (_ctx, _cache) => {
|
|
5027
|
+
return openBlock(), createBlock(unref(SwitchRoot), mergeProps({ "data-slot": "switch" }, unref(forwarded), {
|
|
5028
|
+
class: unref(cn)(
|
|
5029
|
+
"peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
|
|
5030
|
+
props.class
|
|
5031
|
+
)
|
|
5032
|
+
}), {
|
|
5033
|
+
default: withCtx(() => [
|
|
5034
|
+
createVNode(unref(SwitchThumb), {
|
|
5035
|
+
"data-slot": "switch-thumb",
|
|
5036
|
+
class: normalizeClass(
|
|
5037
|
+
unref(cn)(
|
|
5038
|
+
"bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0"
|
|
5039
|
+
)
|
|
5040
|
+
)
|
|
5041
|
+
}, {
|
|
5042
|
+
default: withCtx(() => [
|
|
5043
|
+
renderSlot(_ctx.$slots, "thumb")
|
|
5044
|
+
]),
|
|
5045
|
+
_: 3
|
|
5046
|
+
}, 8, ["class"])
|
|
5047
|
+
]),
|
|
5048
|
+
_: 3
|
|
5049
|
+
}, 16, ["class"]);
|
|
5050
|
+
};
|
|
5051
|
+
}
|
|
5052
|
+
});
|
|
5053
|
+
|
|
3921
5054
|
const _hoisted_1$1 = {
|
|
3922
5055
|
"data-slot": "table-container",
|
|
3923
5056
|
class: "relative w-full overflow-auto"
|
|
@@ -4178,7 +5311,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
4178
5311
|
return (_ctx, _cache) => {
|
|
4179
5312
|
return openBlock(), createBlock(unref(_sfc_main$i), null, {
|
|
4180
5313
|
default: withCtx(() => [
|
|
4181
|
-
createVNode(unref(_sfc_main$
|
|
5314
|
+
createVNode(unref(_sfc_main$1D), {
|
|
4182
5315
|
to: _ctx.to,
|
|
4183
5316
|
label: _ctx.label,
|
|
4184
5317
|
class: normalizeClass(unref(cn)("flex w-full", _ctx.linkClass))
|
|
@@ -4691,4 +5824,4 @@ function localRef(key, initial, options) {
|
|
|
4691
5824
|
});
|
|
4692
5825
|
}
|
|
4693
5826
|
|
|
4694
|
-
export { _sfc_main$
|
|
5827
|
+
export { _sfc_main$2L as Badge, _sfc_main$2K as Button, _sfc_main$2I as ButtonIcon, _sfc_main$2J as ButtonLink, _sfc_main$2z as Card, _sfc_main$2y as Checkbox, _sfc_main$2x as Combobox, _sfc_main$2w as ComboboxAnchor, _sfc_main$2v as ComboboxEmpty, _sfc_main$2u as ComboboxGroup, _sfc_main$2t as ComboboxInput, _sfc_main$2s as ComboboxItem, _sfc_main$2r as ComboboxItemIndicator, _sfc_main$2q as ComboboxList, _sfc_main$2p as ComboboxSeparator, _sfc_main$2o as ComboboxViewport, _sfc_main$2n as ContextMenu, _sfc_main$2m as ContextMenuCheckboxItem, _sfc_main$2l as ContextMenuContent, _sfc_main$2k as ContextMenuGroup, _sfc_main$2j as ContextMenuItem, _sfc_main$2i as ContextMenuLabel, _sfc_main$2h as ContextMenuRadioGroup, _sfc_main$2g as ContextMenuRadioItem, _sfc_main$2f as ContextMenuSeparator, _sfc_main$2e as ContextMenuShortcut, _sfc_main$2d as ContextMenuSub, _sfc_main$2c as ContextMenuSubContent, _sfc_main$2b as ContextMenuSubTrigger, _sfc_main$2a as ContextMenuTrigger, _sfc_main$29 as Dialog, _sfc_main$28 as DialogClose, _sfc_main$26 as DialogContent, _sfc_main$25 as DialogDescription, _sfc_main$24 as DialogFooter, _sfc_main$23 as DialogHeader, _sfc_main$27 as DialogOverlay, _sfc_main$22 as DialogScrollContent, _sfc_main$21 as DialogTitle, _sfc_main$20 as DialogTrigger, _sfc_main$1$ as DropdownMenu, _sfc_main$1_ as DropdownMenuCheckboxItem, _sfc_main$1Z as DropdownMenuContent, _sfc_main$1Y as DropdownMenuGroup, _sfc_main$1X as DropdownMenuItem, _sfc_main$1W as DropdownMenuLabel, _sfc_main$1V as DropdownMenuRadioGroup, _sfc_main$1U as DropdownMenuRadioItem, _sfc_main$1T as DropdownMenuSeparator, _sfc_main$1S as DropdownMenuShortcut, _sfc_main$1R as DropdownMenuSub, _sfc_main$1Q as DropdownMenuSubContent, _sfc_main$1P as DropdownMenuSubTrigger, _sfc_main$1O as DropdownMenuTrigger, _sfc_main$1N as Input, _sfc_main$1F as InputNumber, _sfc_main$1E as InputText, _sfc_main$1L as Label, _sfc_main$1D as Link, _sfc_main$1C as Menubar, _sfc_main$1B as MenubarCheckboxItem, _sfc_main$1A as MenubarContent, _sfc_main$1z as MenubarGroup, _sfc_main$1y as MenubarItem, _sfc_main$1x as MenubarLabel, _sfc_main$1w as MenubarMenu, _sfc_main$1v as MenubarRadioGroup, _sfc_main$1u as MenubarRadioItem, _sfc_main$1t as MenubarSeparator, _sfc_main$1s as MenubarShortcut, _sfc_main$1r as MenubarSub, _sfc_main$1q as MenubarSubContent, _sfc_main$1p as MenubarSubTrigger, _sfc_main$1o as MenubarTrigger, _sfc_main$1n as Pagination, _sfc_main$1m as PaginationContent, _sfc_main$1l as PaginationEllipsis, _sfc_main$1k as PaginationFirst, _sfc_main$1j as PaginationItem, _sfc_main$1i as PaginationLast, _sfc_main$1h as PaginationNext, _sfc_main$1g as PaginationPrevious, _sfc_main$1f as Popover, _sfc_main$1e as PopoverAnchor, _sfc_main$1d as PopoverContent, _sfc_main$1c as PopoverTrigger, _sfc_main$1b as Progress, _sfc_main$1a as RadioGroup, _sfc_main$19 as RadioGroupItem, _sfc_main$2G as ScrollArea, _sfc_main$18 as Select, _sfc_main$17 as SelectContent, _sfc_main$16 as SelectGroup, _sfc_main$15 as SelectItem, _sfc_main$14 as SelectItemText, _sfc_main$13 as SelectLabel, _sfc_main$12 as SelectScrollDownButton, _sfc_main$11 as SelectScrollUpButton, _sfc_main$10 as SelectSeparator, _sfc_main$$ as SelectTrigger, _sfc_main$_ as SelectValue, _sfc_main$Z as Separator, _sfc_main$Y as Sheet, _sfc_main$X as SheetClose, _sfc_main$V as SheetContent, _sfc_main$U as SheetDescription, _sfc_main$T as SheetFooter, _sfc_main$S as SheetHeader, _sfc_main$R as SheetTitle, _sfc_main$Q as SheetTrigger, _sfc_main$n as Sidebar, _sfc_main$M as SidebarGroup, _sfc_main$L as SidebarGroupAction, _sfc_main$K as SidebarGroupContent, _sfc_main$J as SidebarGroupLabel, _sfc_main$G as SidebarMenu, _sfc_main$F as SidebarMenuAction, _sfc_main$E as SidebarMenuBadge, _sfc_main$y as SidebarMenuButton, _sfc_main$x as SidebarMenuItem, _sfc_main$v as SidebarMenuSkeleton, _sfc_main$u as SidebarMenuSub, _sfc_main$t as SidebarMenuSubButton, _sfc_main$s as SidebarMenuSubItem, _sfc_main$q as SidebarRail, _sfc_main$p as SidebarSeparator, _sfc_main$o as SidebarTrigger, _sfc_main$w as Skeleton, _sfc_main$m as Switch, _sfc_main$c as Table, _sfc_main$i as TableCell, _sfc_main$g as TableEmpty, _sfc_main$e as TableHead, _sfc_main$b as TableLink, _sfc_main$h as TableRow, _sfc_main$a as Tabs, _sfc_main$9 as TabsContent, _sfc_main$8 as TabsList, _sfc_main$7 as TabsTrigger, _sfc_main$6 as TagsInput, _sfc_main$5 as TagsInputInput, _sfc_main$4 as TagsInputItem, _sfc_main$3 as TagsInputItemDelete, _sfc_main$2 as TagsInputItemText, _sfc_main$1 as Textarea, _sfc_main as Toggle, _sfc_main$D as Tooltip, _sfc_main$C as TooltipContent, _sfc_main$B as TooltipProvider, _sfc_main$A as TooltipTrigger, asyncComputed, asyncRef, cn, getCurrentApp, getErrorHandler, handleError, inject, localRef, maybe, onAltKeyDown, onCtrlKeyDown, onCtrlShiftKeyDown, onKeyDown, onShiftKeyDown, provide, runWithContext, setCurrentApp, setErrorHandler, tryGetCurrentApp, tryInject, trySetCurrentApp, useElementSize, useHeight, useHeightDiff, useSidebar, useWidth, useWidthDiff, useWindowHeight, useWindowWidth };
|