@tb-dev/vue-components 3.0.0 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/dist/components/__base/calendar/Calendar.vue.d.ts +13 -0
  2. package/dist/components/__base/calendar/CalendarCell.vue.d.ts +22 -0
  3. package/dist/components/__base/calendar/CalendarCellTrigger.vue.d.ts +24 -0
  4. package/dist/components/__base/calendar/CalendarGrid.vue.d.ts +22 -0
  5. package/dist/components/__base/calendar/CalendarGridBody.vue.d.ts +18 -0
  6. package/dist/components/__base/calendar/CalendarGridHead.vue.d.ts +22 -0
  7. package/dist/components/__base/calendar/CalendarGridRow.vue.d.ts +22 -0
  8. package/dist/components/__base/calendar/CalendarHeadCell.vue.d.ts +22 -0
  9. package/dist/components/__base/calendar/CalendarHeader.vue.d.ts +22 -0
  10. package/dist/components/__base/calendar/CalendarHeading.vue.d.ts +28 -0
  11. package/dist/components/__base/calendar/CalendarNextButton.vue.d.ts +22 -0
  12. package/dist/components/__base/calendar/CalendarPrevButton.vue.d.ts +22 -0
  13. package/dist/components/__base/calendar/index.d.ts +12 -0
  14. package/dist/components/__base/command/Command.vue.d.ts +40 -0
  15. package/dist/components/__base/command/CommandDialog.vue.d.ts +29 -0
  16. package/dist/components/__base/command/CommandEmpty.vue.d.ts +22 -0
  17. package/dist/components/__base/command/CommandGroup.vue.d.ts +23 -0
  18. package/dist/components/__base/command/CommandInput.vue.d.ts +7 -0
  19. package/dist/components/__base/command/CommandItem.vue.d.ts +30 -0
  20. package/dist/components/__base/command/CommandList.vue.d.ts +22 -0
  21. package/dist/components/__base/command/CommandSeparator.vue.d.ts +22 -0
  22. package/dist/components/__base/command/CommandShortcut.vue.d.ts +21 -0
  23. package/dist/components/__base/command/index.d.ts +90 -0
  24. package/dist/components/__base/drawer/Drawer.vue.d.ts +34 -0
  25. package/dist/components/__base/drawer/DrawerClose.vue.d.ts +18 -0
  26. package/dist/components/__base/drawer/DrawerContent.vue.d.ts +36 -0
  27. package/dist/components/__base/drawer/DrawerDescription.vue.d.ts +22 -0
  28. package/dist/components/__base/drawer/DrawerFooter.vue.d.ts +21 -0
  29. package/dist/components/__base/drawer/DrawerHeader.vue.d.ts +21 -0
  30. package/dist/components/__base/drawer/DrawerOverlay.vue.d.ts +7 -0
  31. package/dist/components/__base/drawer/DrawerTitle.vue.d.ts +22 -0
  32. package/dist/components/__base/drawer/DrawerTrigger.vue.d.ts +18 -0
  33. package/dist/components/__base/drawer/index.d.ts +9 -0
  34. package/dist/components/__base/navigation-menu/NavigationMenu.vue.d.ts +29 -0
  35. package/dist/components/__base/navigation-menu/NavigationMenuContent.vue.d.ts +32 -0
  36. package/dist/components/__base/navigation-menu/NavigationMenuIndicator.vue.d.ts +7 -0
  37. package/dist/components/__base/navigation-menu/NavigationMenuItem.vue.d.ts +22 -0
  38. package/dist/components/__base/navigation-menu/NavigationMenuLink.vue.d.ts +30 -0
  39. package/dist/components/__base/navigation-menu/NavigationMenuList.vue.d.ts +22 -0
  40. package/dist/components/__base/navigation-menu/NavigationMenuTrigger.vue.d.ts +22 -0
  41. package/dist/components/__base/navigation-menu/NavigationMenuViewport.vue.d.ts +7 -0
  42. package/dist/components/__base/navigation-menu/index.d.ts +9 -0
  43. package/dist/components/calendar/index.d.ts +1 -0
  44. package/dist/components/command/index.d.ts +1 -0
  45. package/dist/components/drawer/index.d.ts +1 -0
  46. package/dist/components/index.d.ts +4 -0
  47. package/dist/components/navigation-menu/index.d.ts +1 -0
  48. package/dist/components/pagination/index.d.ts +0 -1
  49. package/dist/components/select/index.d.ts +0 -1
  50. package/dist/components/sidebar/index.d.ts +1 -5
  51. package/dist/components/table/index.d.ts +1 -2
  52. package/dist/index.css +3 -3
  53. package/dist/index.js +2052 -820
  54. package/package.json +8 -7
  55. package/dist/components/sidebar/Sidebar.vue.d.ts +0 -37
  56. package/dist/components/sidebar/types.d.ts +0 -9
package/dist/index.js CHANGED
@@ -1,17 +1,18 @@
1
- import { defineComponent, createBlock, openBlock, unref, mergeProps, withCtx, renderSlot, createElementVNode, normalizeClass, createVNode, createElementBlock, computed, normalizeStyle, toDisplayString, resolveDynamicComponent, createCommentVNode, mergeModels, useModel, createTextVNode, withDirectives, isRef, vModelText, useTemplateRef, normalizeProps, guardReactiveProps, Fragment, ref, renderList, createSlots } from 'vue';
2
- import { useForwardPropsEmits, AccordionRoot, AccordionContent, useForwardProps, AccordionItem, AccordionHeader, AccordionTrigger, AlertDialogRoot, Primitive, AlertDialogAction, AlertDialogCancel, AlertDialogPortal, AlertDialogOverlay, AlertDialogContent, AlertDialogDescription, AlertDialogTitle, AlertDialogTrigger, AvatarRoot, AvatarFallback, AvatarImage, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaRoot, ScrollAreaViewport, ScrollAreaCorner, CheckboxRoot, CheckboxIndicator, ComboboxRoot, 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, HoverCardRoot, HoverCardPortal, HoverCardContent, HoverCardTrigger, NumberFieldRoot, NumberFieldDecrement, NumberFieldIncrement, NumberFieldInput, Label, 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, SplitterResizeHandle, SplitterPanel, SplitterGroup, SelectRoot, SelectPortal, SelectContent, SelectViewport, SelectGroup, SelectItem, SelectItemIndicator, SelectItemText, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectIcon, SelectValue, Separator, createContext, TooltipRoot, TooltipPortal, TooltipContent, TooltipArrow, TooltipProvider, TooltipTrigger, SliderRoot, SliderTrack, SliderRange, SliderThumb, SwitchRoot, SwitchThumb, TabsRoot, TabsContent, TabsList, TabsTrigger, TagsInputRoot, TagsInputInput, TagsInputItem, TagsInputItemDelete, TagsInputItemText, Toggle } from 'reka-ui';
3
- export { ComboboxCancel, ComboboxTrigger, DropdownMenuPortal, PaginationList, PaginationListItem, PaginationList as TbPaginationList, PaginationListItem as TbPaginationListItem } from 'reka-ui';
4
- import { reactiveOmit, useVModel, useMediaQuery } from '@vueuse/core';
1
+ import { defineComponent, createBlock, openBlock, unref, mergeProps, withCtx, renderSlot, createElementVNode, normalizeClass, createVNode, createElementBlock, computed, normalizeStyle, toDisplayString, resolveDynamicComponent, createCommentVNode, Fragment, renderList, createTextVNode, mergeModels, useModel, ref, reactive, watch, normalizeProps, guardReactiveProps, onMounted, onUnmounted, withDirectives, isRef, vModelText, useTemplateRef, createSlots } from 'vue';
2
+ import { useForwardPropsEmits, AccordionRoot, AccordionContent, useForwardProps, AccordionItem, AccordionHeader, AccordionTrigger, AlertDialogRoot, Primitive, AlertDialogAction, AlertDialogCancel, AlertDialogPortal, AlertDialogOverlay, AlertDialogContent, AlertDialogDescription, AlertDialogTitle, AlertDialogTrigger, AvatarRoot, AvatarFallback, AvatarImage, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaRoot, ScrollAreaViewport, ScrollAreaCorner, CalendarRoot, CalendarCell, CalendarCellTrigger, CalendarGrid, CalendarGridBody, CalendarGridHead, CalendarGridRow, CalendarHeadCell, CalendarHeader, CalendarHeading, CalendarNext, CalendarPrev, CheckboxRoot, CheckboxIndicator, ComboboxRoot, ComboboxAnchor, ComboboxEmpty, ComboboxGroup, ComboboxLabel, ComboboxInput, ComboboxItem, ComboboxItemIndicator, ComboboxPortal, ComboboxContent, ComboboxSeparator, ComboboxViewport, useFilter, ListboxRoot, DialogRoot, DialogClose, DialogOverlay, DialogPortal, DialogContent, DialogDescription, DialogTitle, DialogTrigger, useId, ListboxGroup, ListboxGroupLabel, ListboxFilter, ListboxItem, ListboxContent, Separator, createContext, ContextMenuRoot, ContextMenuCheckboxItem, ContextMenuItemIndicator, ContextMenuPortal, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DropdownMenuRoot, DropdownMenuCheckboxItem, DropdownMenuItemIndicator, DropdownMenuPortal, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, HoverCardRoot, HoverCardPortal, HoverCardContent, HoverCardTrigger, NumberFieldRoot, NumberFieldDecrement, NumberFieldIncrement, NumberFieldInput, Label, MenubarRoot, MenubarCheckboxItem, MenubarItemIndicator, MenubarPortal, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NavigationMenuViewport, NavigationMenuRoot, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, PaginationRoot, PaginationList, PaginationEllipsis, PaginationFirst, PaginationListItem, PaginationLast, PaginationNext, PaginationPrev, PopoverRoot, PopoverAnchor, PopoverPortal, PopoverContent, PopoverTrigger, ProgressRoot, ProgressIndicator, RadioGroupRoot, RadioGroupItem, RadioGroupIndicator, SplitterResizeHandle, SplitterPanel, SplitterGroup, SelectRoot, SelectPortal, SelectContent, SelectViewport, SelectGroup, SelectItem, SelectItemIndicator, SelectItemText, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectIcon, SelectValue, TooltipRoot, TooltipPortal, TooltipContent, TooltipArrow, TooltipProvider, TooltipTrigger, SliderRoot, SliderTrack, SliderRange, SliderThumb, SwitchRoot, SwitchThumb, TabsRoot, TabsContent, TabsList, TabsTrigger, TagsInputRoot, TagsInputInput, TagsInputItem, TagsInputItemDelete, TagsInputItemText, Toggle } from 'reka-ui';
3
+ export { ComboboxCancel, ComboboxTrigger, DropdownMenuPortal, PaginationList, PaginationListItem } from 'reka-ui';
4
+ import { reactiveOmit, useCurrentElement, useVModel, useMediaQuery } from '@vueuse/core';
5
5
  import { twMerge } from 'tailwind-merge';
6
6
  import { clsx } from 'clsx';
7
- import { ChevronDown, Check, SearchIcon, Circle, ChevronRight, X, Minus, Plus, LoaderCircle, MoreHorizontal, ChevronLeftIcon, ChevronRightIcon, CircleIcon, GripVertical, ChevronUp, PanelLeft } from 'lucide-vue-next';
7
+ import { ChevronDown, ChevronRight, ChevronLeft, Check, SearchIcon, X, Search, Circle, Minus, Plus, LoaderCircle, MoreHorizontal, ChevronLeftIcon, ChevronRightIcon, CircleIcon, GripVertical, ChevronUp, PanelLeft } from 'lucide-vue-next';
8
8
  import { cva } from 'class-variance-authority';
9
9
  import { RouterLink } from 'vue-router';
10
10
  import { toPixel } from '@tb-dev/utils';
11
+ import { DrawerRoot, DrawerClose, DrawerOverlay, DrawerPortal, DrawerContent, DrawerDescription, DrawerTitle, DrawerTrigger } from 'vaul-vue';
11
12
  import { Toaster } from 'vue-sonner';
12
13
  export { toast as sonner } from 'vue-sonner';
13
14
 
14
- const _sfc_main$3f = /* @__PURE__ */ defineComponent({
15
+ const _sfc_main$3R = /* @__PURE__ */ defineComponent({
15
16
  __name: "Accordion",
16
17
  props: {
17
18
  collapsible: { type: Boolean },
@@ -45,7 +46,7 @@ function cn(...inputs) {
45
46
  return twMerge(clsx(inputs));
46
47
  }
47
48
 
48
- const _sfc_main$3e = /* @__PURE__ */ defineComponent({
49
+ const _sfc_main$3Q = /* @__PURE__ */ defineComponent({
49
50
  __name: "AccordionContent",
50
51
  props: {
51
52
  forceMount: { type: Boolean },
@@ -71,7 +72,7 @@ const _sfc_main$3e = /* @__PURE__ */ defineComponent({
71
72
  }
72
73
  });
73
74
 
74
- const _sfc_main$3d = /* @__PURE__ */ defineComponent({
75
+ const _sfc_main$3P = /* @__PURE__ */ defineComponent({
75
76
  __name: "AccordionItem",
76
77
  props: {
77
78
  disabled: { type: Boolean },
@@ -98,7 +99,7 @@ const _sfc_main$3d = /* @__PURE__ */ defineComponent({
98
99
  }
99
100
  });
100
101
 
101
- const _sfc_main$3c = /* @__PURE__ */ defineComponent({
102
+ const _sfc_main$3O = /* @__PURE__ */ defineComponent({
102
103
  __name: "AccordionTrigger",
103
104
  props: {
104
105
  asChild: { type: Boolean },
@@ -132,7 +133,7 @@ const _sfc_main$3c = /* @__PURE__ */ defineComponent({
132
133
  }
133
134
  });
134
135
 
135
- const _sfc_main$3b = /* @__PURE__ */ defineComponent({
136
+ const _sfc_main$3N = /* @__PURE__ */ defineComponent({
136
137
  __name: "Alert",
137
138
  props: {
138
139
  class: {},
@@ -152,7 +153,7 @@ const _sfc_main$3b = /* @__PURE__ */ defineComponent({
152
153
  }
153
154
  });
154
155
 
155
- const _sfc_main$3a = /* @__PURE__ */ defineComponent({
156
+ const _sfc_main$3M = /* @__PURE__ */ defineComponent({
156
157
  __name: "AlertDescription",
157
158
  props: {
158
159
  class: {}
@@ -175,7 +176,7 @@ const _sfc_main$3a = /* @__PURE__ */ defineComponent({
175
176
  }
176
177
  });
177
178
 
178
- const _sfc_main$39 = /* @__PURE__ */ defineComponent({
179
+ const _sfc_main$3L = /* @__PURE__ */ defineComponent({
179
180
  __name: "AlertTitle",
180
181
  props: {
181
182
  class: {}
@@ -208,7 +209,7 @@ const alertVariants = cva(
208
209
  }
209
210
  );
210
211
 
211
- const _sfc_main$38 = /* @__PURE__ */ defineComponent({
212
+ const _sfc_main$3K = /* @__PURE__ */ defineComponent({
212
213
  __name: "AlertDialog",
213
214
  props: {
214
215
  open: { type: Boolean },
@@ -230,7 +231,7 @@ const _sfc_main$38 = /* @__PURE__ */ defineComponent({
230
231
  }
231
232
  });
232
233
 
233
- const _sfc_main$37 = /* @__PURE__ */ defineComponent({
234
+ const _sfc_main$3J = /* @__PURE__ */ defineComponent({
234
235
  __name: "Button",
235
236
  props: {
236
237
  variant: {},
@@ -285,7 +286,7 @@ const buttonVariants = cva(
285
286
  }
286
287
  );
287
288
 
288
- const _sfc_main$36 = /* @__PURE__ */ defineComponent({
289
+ const _sfc_main$3I = /* @__PURE__ */ defineComponent({
289
290
  __name: "AlertDialogAction",
290
291
  props: {
291
292
  asChild: { type: Boolean },
@@ -308,7 +309,7 @@ const _sfc_main$36 = /* @__PURE__ */ defineComponent({
308
309
  }
309
310
  });
310
311
 
311
- const _sfc_main$35 = /* @__PURE__ */ defineComponent({
312
+ const _sfc_main$3H = /* @__PURE__ */ defineComponent({
312
313
  __name: "AlertDialogCancel",
313
314
  props: {
314
315
  asChild: { type: Boolean },
@@ -331,7 +332,7 @@ const _sfc_main$35 = /* @__PURE__ */ defineComponent({
331
332
  }
332
333
  });
333
334
 
334
- const _sfc_main$34 = /* @__PURE__ */ defineComponent({
335
+ const _sfc_main$3G = /* @__PURE__ */ defineComponent({
335
336
  __name: "AlertDialogContent",
336
337
  props: {
337
338
  forceMount: { type: Boolean },
@@ -371,7 +372,7 @@ const _sfc_main$34 = /* @__PURE__ */ defineComponent({
371
372
  }
372
373
  });
373
374
 
374
- const _sfc_main$33 = /* @__PURE__ */ defineComponent({
375
+ const _sfc_main$3F = /* @__PURE__ */ defineComponent({
375
376
  __name: "AlertDialogDescription",
376
377
  props: {
377
378
  asChild: { type: Boolean },
@@ -394,7 +395,7 @@ const _sfc_main$33 = /* @__PURE__ */ defineComponent({
394
395
  }
395
396
  });
396
397
 
397
- const _sfc_main$32 = /* @__PURE__ */ defineComponent({
398
+ const _sfc_main$3E = /* @__PURE__ */ defineComponent({
398
399
  __name: "AlertDialogFooter",
399
400
  props: {
400
401
  class: {}
@@ -412,7 +413,7 @@ const _sfc_main$32 = /* @__PURE__ */ defineComponent({
412
413
  }
413
414
  });
414
415
 
415
- const _sfc_main$31 = /* @__PURE__ */ defineComponent({
416
+ const _sfc_main$3D = /* @__PURE__ */ defineComponent({
416
417
  __name: "AlertDialogHeader",
417
418
  props: {
418
419
  class: {}
@@ -430,7 +431,7 @@ const _sfc_main$31 = /* @__PURE__ */ defineComponent({
430
431
  }
431
432
  });
432
433
 
433
- const _sfc_main$30 = /* @__PURE__ */ defineComponent({
434
+ const _sfc_main$3C = /* @__PURE__ */ defineComponent({
434
435
  __name: "AlertDialogTitle",
435
436
  props: {
436
437
  asChild: { type: Boolean },
@@ -453,7 +454,7 @@ const _sfc_main$30 = /* @__PURE__ */ defineComponent({
453
454
  }
454
455
  });
455
456
 
456
- const _sfc_main$2$ = /* @__PURE__ */ defineComponent({
457
+ const _sfc_main$3B = /* @__PURE__ */ defineComponent({
457
458
  __name: "AlertDialogTrigger",
458
459
  props: {
459
460
  asChild: { type: Boolean },
@@ -472,7 +473,7 @@ const _sfc_main$2$ = /* @__PURE__ */ defineComponent({
472
473
  }
473
474
  });
474
475
 
475
- const _sfc_main$2_ = /* @__PURE__ */ defineComponent({
476
+ const _sfc_main$3A = /* @__PURE__ */ defineComponent({
476
477
  __name: "Avatar",
477
478
  props: {
478
479
  class: {}
@@ -493,7 +494,7 @@ const _sfc_main$2_ = /* @__PURE__ */ defineComponent({
493
494
  }
494
495
  });
495
496
 
496
- const _sfc_main$2Z = /* @__PURE__ */ defineComponent({
497
+ const _sfc_main$3z = /* @__PURE__ */ defineComponent({
497
498
  __name: "AvatarFallback",
498
499
  props: {
499
500
  delayMs: {},
@@ -517,7 +518,7 @@ const _sfc_main$2Z = /* @__PURE__ */ defineComponent({
517
518
  }
518
519
  });
519
520
 
520
- const _sfc_main$2Y = /* @__PURE__ */ defineComponent({
521
+ const _sfc_main$3y = /* @__PURE__ */ defineComponent({
521
522
  __name: "AvatarImage",
522
523
  props: {
523
524
  src: {},
@@ -539,7 +540,7 @@ const _sfc_main$2Y = /* @__PURE__ */ defineComponent({
539
540
  }
540
541
  });
541
542
 
542
- const _sfc_main$2X = /* @__PURE__ */ defineComponent({
543
+ const _sfc_main$3x = /* @__PURE__ */ defineComponent({
543
544
  __name: "Badge",
544
545
  props: {
545
546
  asChild: { type: Boolean },
@@ -584,8 +585,8 @@ const badgeVariants = cva(
584
585
  }
585
586
  );
586
587
 
587
- const _hoisted_1$e = { key: 0 };
588
- const _sfc_main$2W = /* @__PURE__ */ defineComponent({
588
+ const _hoisted_1$i = { key: 0 };
589
+ const _sfc_main$3w = /* @__PURE__ */ defineComponent({
589
590
  __name: "ButtonLinkInner",
590
591
  props: {
591
592
  buttonClass: {},
@@ -598,7 +599,7 @@ const _sfc_main$2W = /* @__PURE__ */ defineComponent({
598
599
  setup(__props) {
599
600
  const props = __props;
600
601
  return (_ctx, _cache) => {
601
- return openBlock(), createBlock(unref(_sfc_main$37), {
602
+ return openBlock(), createBlock(unref(_sfc_main$3J), {
602
603
  disabled: _ctx.disabled,
603
604
  size: _ctx.size,
604
605
  variant: _ctx.variant,
@@ -606,7 +607,7 @@ const _sfc_main$2W = /* @__PURE__ */ defineComponent({
606
607
  class: normalizeClass(unref(cn)("size-full", props.buttonClass))
607
608
  }, {
608
609
  default: withCtx(() => [
609
- _ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$e, toDisplayString(_ctx.label), 1)) : renderSlot(_ctx.$slots, "default", { key: 1 })
610
+ _ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$i, toDisplayString(_ctx.label), 1)) : renderSlot(_ctx.$slots, "default", { key: 1 })
610
611
  ]),
611
612
  _: 3
612
613
  }, 8, ["disabled", "size", "variant", "style", "class"]);
@@ -614,8 +615,8 @@ const _sfc_main$2W = /* @__PURE__ */ defineComponent({
614
615
  }
615
616
  });
616
617
 
617
- const _hoisted_1$d = { key: 0 };
618
- const _sfc_main$2V = /* @__PURE__ */ defineComponent({
618
+ const _hoisted_1$h = { key: 0 };
619
+ const _sfc_main$3v = /* @__PURE__ */ defineComponent({
619
620
  __name: "ButtonLink",
620
621
  props: {
621
622
  to: {},
@@ -628,8 +629,8 @@ const _sfc_main$2V = /* @__PURE__ */ defineComponent({
628
629
  },
629
630
  setup(__props) {
630
631
  return (_ctx, _cache) => {
631
- return _ctx.disabled ? (openBlock(), createElementBlock("div", _hoisted_1$d, [
632
- createVNode(_sfc_main$2W, {
632
+ return _ctx.disabled ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
633
+ createVNode(_sfc_main$3w, {
633
634
  label: _ctx.label,
634
635
  size: _ctx.size,
635
636
  variant: _ctx.variant,
@@ -646,7 +647,7 @@ const _sfc_main$2V = /* @__PURE__ */ defineComponent({
646
647
  to: { name: _ctx.to }
647
648
  }, {
648
649
  default: withCtx(() => [
649
- createVNode(_sfc_main$2W, {
650
+ createVNode(_sfc_main$3w, {
650
651
  label: _ctx.label,
651
652
  size: _ctx.size,
652
653
  variant: _ctx.variant,
@@ -665,7 +666,7 @@ const _sfc_main$2V = /* @__PURE__ */ defineComponent({
665
666
  }
666
667
  });
667
668
 
668
- const _sfc_main$2U = /* @__PURE__ */ defineComponent({
669
+ const _sfc_main$3u = /* @__PURE__ */ defineComponent({
669
670
  __name: "ButtonIcon",
670
671
  props: {
671
672
  buttonClass: {},
@@ -682,7 +683,7 @@ const _sfc_main$2U = /* @__PURE__ */ defineComponent({
682
683
  return delegated;
683
684
  });
684
685
  return (_ctx, _cache) => {
685
- return _ctx.to ? (openBlock(), createBlock(unref(_sfc_main$2V), mergeProps({ key: 0 }, delegatedProps.value, {
686
+ return _ctx.to ? (openBlock(), createBlock(unref(_sfc_main$3v), mergeProps({ key: 0 }, delegatedProps.value, {
686
687
  to: _ctx.to,
687
688
  variant: "ghost",
688
689
  size: "icon",
@@ -696,7 +697,7 @@ const _sfc_main$2U = /* @__PURE__ */ defineComponent({
696
697
  }, null, 8, ["class", "size"]))
697
698
  ]),
698
699
  _: 1
699
- }, 16, ["to", "class", "button-class"])) : (openBlock(), createBlock(unref(_sfc_main$37), mergeProps({ key: 1 }, delegatedProps.value, {
700
+ }, 16, ["to", "class", "button-class"])) : (openBlock(), createBlock(unref(_sfc_main$3J), mergeProps({ key: 1 }, delegatedProps.value, {
700
701
  variant: "ghost",
701
702
  size: "icon",
702
703
  class: unref(cn)(props.class, _ctx.buttonClass)
@@ -713,7 +714,7 @@ const _sfc_main$2U = /* @__PURE__ */ defineComponent({
713
714
  }
714
715
  });
715
716
 
716
- const _sfc_main$2T = /* @__PURE__ */ defineComponent({
717
+ const _sfc_main$3t = /* @__PURE__ */ defineComponent({
717
718
  __name: "ScrollBar",
718
719
  props: {
719
720
  orientation: { default: "vertical" },
@@ -749,7 +750,7 @@ const _sfc_main$2T = /* @__PURE__ */ defineComponent({
749
750
  }
750
751
  });
751
752
 
752
- const _sfc_main$2S = /* @__PURE__ */ defineComponent({
753
+ const _sfc_main$3s = /* @__PURE__ */ defineComponent({
753
754
  __name: "ScrollArea",
754
755
  props: {
755
756
  type: {},
@@ -779,7 +780,7 @@ const _sfc_main$2S = /* @__PURE__ */ defineComponent({
779
780
  ]),
780
781
  _: 3
781
782
  }),
782
- createVNode(_sfc_main$2T),
783
+ createVNode(_sfc_main$3t),
783
784
  createVNode(unref(ScrollAreaCorner))
784
785
  ]),
785
786
  _: 3
@@ -788,7 +789,7 @@ const _sfc_main$2S = /* @__PURE__ */ defineComponent({
788
789
  }
789
790
  });
790
791
 
791
- const _sfc_main$2R = /* @__PURE__ */ defineComponent({
792
+ const _sfc_main$3r = /* @__PURE__ */ defineComponent({
792
793
  __name: "Card",
793
794
  props: {
794
795
  class: {}
@@ -811,7 +812,7 @@ const _sfc_main$2R = /* @__PURE__ */ defineComponent({
811
812
  }
812
813
  });
813
814
 
814
- const _sfc_main$2Q = /* @__PURE__ */ defineComponent({
815
+ const _sfc_main$3q = /* @__PURE__ */ defineComponent({
815
816
  __name: "CardContent",
816
817
  props: {
817
818
  class: {}
@@ -829,7 +830,7 @@ const _sfc_main$2Q = /* @__PURE__ */ defineComponent({
829
830
  }
830
831
  });
831
832
 
832
- const _sfc_main$2P = /* @__PURE__ */ defineComponent({
833
+ const _sfc_main$3p = /* @__PURE__ */ defineComponent({
833
834
  __name: "CardDescription",
834
835
  props: {
835
836
  class: {}
@@ -847,7 +848,7 @@ const _sfc_main$2P = /* @__PURE__ */ defineComponent({
847
848
  }
848
849
  });
849
850
 
850
- const _sfc_main$2O = /* @__PURE__ */ defineComponent({
851
+ const _sfc_main$3o = /* @__PURE__ */ defineComponent({
851
852
  __name: "CardFooter",
852
853
  props: {
853
854
  class: {}
@@ -865,7 +866,7 @@ const _sfc_main$2O = /* @__PURE__ */ defineComponent({
865
866
  }
866
867
  });
867
868
 
868
- const _sfc_main$2N = /* @__PURE__ */ defineComponent({
869
+ const _sfc_main$3n = /* @__PURE__ */ defineComponent({
869
870
  __name: "CardHeader",
870
871
  props: {
871
872
  class: {}
@@ -888,7 +889,7 @@ const _sfc_main$2N = /* @__PURE__ */ defineComponent({
888
889
  }
889
890
  });
890
891
 
891
- const _sfc_main$2M = /* @__PURE__ */ defineComponent({
892
+ const _sfc_main$3m = /* @__PURE__ */ defineComponent({
892
893
  __name: "CardTitle",
893
894
  props: {
894
895
  class: {}
@@ -906,7 +907,7 @@ const _sfc_main$2M = /* @__PURE__ */ defineComponent({
906
907
  }
907
908
  });
908
909
 
909
- const _sfc_main$2L = /* @__PURE__ */ defineComponent({
910
+ const _sfc_main$3l = /* @__PURE__ */ defineComponent({
910
911
  __name: "Card",
911
912
  props: {
912
913
  contentClass: {},
@@ -919,14 +920,14 @@ const _sfc_main$2L = /* @__PURE__ */ defineComponent({
919
920
  },
920
921
  setup(__props) {
921
922
  return (_ctx, _cache) => {
922
- return openBlock(), createBlock(unref(_sfc_main$2R), null, {
923
+ return openBlock(), createBlock(unref(_sfc_main$3r), null, {
923
924
  default: withCtx(() => [
924
- _ctx.$slots.title ? (openBlock(), createBlock(unref(_sfc_main$2N), {
925
+ _ctx.$slots.title ? (openBlock(), createBlock(unref(_sfc_main$3n), {
925
926
  key: 0,
926
927
  class: normalizeClass(_ctx.headerClass)
927
928
  }, {
928
929
  default: withCtx(() => [
929
- createVNode(unref(_sfc_main$2M), {
930
+ createVNode(unref(_sfc_main$3m), {
930
931
  class: normalizeClass(_ctx.titleClass)
931
932
  }, {
932
933
  default: withCtx(() => [
@@ -934,7 +935,7 @@ const _sfc_main$2L = /* @__PURE__ */ defineComponent({
934
935
  ]),
935
936
  _: 3
936
937
  }, 8, ["class"]),
937
- _ctx.$slots.description ? (openBlock(), createBlock(unref(_sfc_main$2P), {
938
+ _ctx.$slots.description ? (openBlock(), createBlock(unref(_sfc_main$3p), {
938
939
  key: 0,
939
940
  class: normalizeClass(_ctx.descriptionClass)
940
941
  }, {
@@ -946,12 +947,12 @@ const _sfc_main$2L = /* @__PURE__ */ defineComponent({
946
947
  ]),
947
948
  _: 3
948
949
  }, 8, ["class"])) : createCommentVNode("", true),
949
- _ctx.$slots.default ? (openBlock(), createBlock(unref(_sfc_main$2Q), {
950
+ _ctx.$slots.default ? (openBlock(), createBlock(unref(_sfc_main$3q), {
950
951
  key: 1,
951
952
  class: normalizeClass(unref(cn)("p-0", _ctx.contentClass))
952
953
  }, {
953
954
  default: withCtx(() => [
954
- _ctx.scrollAreaHeight && _ctx.scrollAreaHeight !== "auto" ? (openBlock(), createBlock(unref(_sfc_main$2S), {
955
+ _ctx.scrollAreaHeight && _ctx.scrollAreaHeight !== "auto" ? (openBlock(), createBlock(unref(_sfc_main$3s), {
955
956
  key: 0,
956
957
  class: normalizeClass(_ctx.scrollAreaClass),
957
958
  style: normalizeStyle({ height: unref(toPixel)(_ctx.scrollAreaHeight) })
@@ -964,7 +965,7 @@ const _sfc_main$2L = /* @__PURE__ */ defineComponent({
964
965
  ]),
965
966
  _: 3
966
967
  }, 8, ["class"])) : createCommentVNode("", true),
967
- _ctx.$slots.footer ? (openBlock(), createBlock(unref(_sfc_main$2O), {
968
+ _ctx.$slots.footer ? (openBlock(), createBlock(unref(_sfc_main$3o), {
968
969
  key: 2,
969
970
  class: normalizeClass(_ctx.footerClass)
970
971
  }, {
@@ -980,137 +981,186 @@ const _sfc_main$2L = /* @__PURE__ */ defineComponent({
980
981
  }
981
982
  });
982
983
 
983
- const _sfc_main$2K = /* @__PURE__ */ defineComponent({
984
- __name: "Checkbox",
984
+ const _hoisted_1$g = { class: "flex items-center gap-1" };
985
+ const _hoisted_2$1 = { class: "mt-4 flex flex-col gap-y-4 sm:flex-row sm:gap-x-4 sm:gap-y-0" };
986
+ const _sfc_main$3k = /* @__PURE__ */ defineComponent({
987
+ __name: "Calendar",
985
988
  props: {
986
- defaultValue: { type: [Boolean, String] },
987
- modelValue: { type: [Boolean, String, null] },
989
+ defaultValue: {},
990
+ defaultPlaceholder: {},
991
+ placeholder: {},
992
+ pagedNavigation: { type: Boolean },
993
+ preventDeselect: { type: Boolean },
994
+ weekStartsOn: {},
995
+ weekdayFormat: {},
996
+ calendarLabel: {},
997
+ fixedWeeks: { type: Boolean },
998
+ maxValue: {},
999
+ minValue: {},
1000
+ locale: {},
1001
+ numberOfMonths: {},
988
1002
  disabled: { type: Boolean },
989
- value: {},
990
- id: {},
1003
+ readonly: { type: Boolean },
1004
+ initialFocus: { type: Boolean },
1005
+ isDateDisabled: { type: Function },
1006
+ isDateUnavailable: { type: Function },
1007
+ dir: {},
1008
+ nextPage: { type: Function },
1009
+ prevPage: { type: Function },
1010
+ modelValue: {},
1011
+ multiple: { type: Boolean },
1012
+ disableDaysOutsideCurrentView: { type: Boolean },
991
1013
  asChild: { type: Boolean },
992
1014
  as: {},
993
- name: {},
994
- required: { type: Boolean },
995
1015
  class: {}
996
1016
  },
997
- emits: ["update:modelValue"],
1017
+ emits: ["update:modelValue", "update:placeholder"],
998
1018
  setup(__props, { emit: __emit }) {
999
1019
  const props = __props;
1000
1020
  const emits = __emit;
1001
- const delegatedProps = computed(() => {
1002
- const { class: _, ...delegated } = props;
1003
- return delegated;
1004
- });
1021
+ const delegatedProps = reactiveOmit(props, "class");
1005
1022
  const forwarded = useForwardPropsEmits(delegatedProps, emits);
1006
1023
  return (_ctx, _cache) => {
1007
- return openBlock(), createBlock(unref(CheckboxRoot), mergeProps({ "data-slot": "checkbox" }, unref(forwarded), {
1008
- class: unref(cn)(
1009
- "peer border-input data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
1010
- props.class
1011
- )
1012
- }), {
1013
- default: withCtx(() => [
1014
- createVNode(unref(CheckboxIndicator), {
1015
- "data-slot": "checkbox-indicator",
1016
- class: "flex items-center justify-center text-current transition-none"
1017
- }, {
1024
+ return openBlock(), createBlock(unref(CalendarRoot), mergeProps({
1025
+ "data-slot": "calendar",
1026
+ class: unref(cn)("p-3", props.class)
1027
+ }, unref(forwarded)), {
1028
+ default: withCtx(({ grid, weekDays }) => [
1029
+ createVNode(unref(_sfc_main$3c), null, {
1018
1030
  default: withCtx(() => [
1019
- renderSlot(_ctx.$slots, "default", {}, () => [
1020
- createVNode(unref(Check), { class: "size-3.5" })
1031
+ createVNode(unref(_sfc_main$3b)),
1032
+ createElementVNode("div", _hoisted_1$g, [
1033
+ createVNode(unref(_sfc_main$39)),
1034
+ createVNode(unref(_sfc_main$3a))
1021
1035
  ])
1022
1036
  ]),
1023
- _: 3
1024
- })
1037
+ _: 1
1038
+ }),
1039
+ createElementVNode("div", _hoisted_2$1, [
1040
+ (openBlock(true), createElementBlock(Fragment, null, renderList(grid, (month) => {
1041
+ return openBlock(), createBlock(unref(_sfc_main$3h), {
1042
+ key: month.value.toString()
1043
+ }, {
1044
+ default: withCtx(() => [
1045
+ createVNode(unref(_sfc_main$3f), null, {
1046
+ default: withCtx(() => [
1047
+ createVNode(unref(_sfc_main$3e), null, {
1048
+ default: withCtx(() => [
1049
+ (openBlock(true), createElementBlock(Fragment, null, renderList(weekDays, (day) => {
1050
+ return openBlock(), createBlock(unref(_sfc_main$3d), { key: day }, {
1051
+ default: withCtx(() => [
1052
+ createTextVNode(toDisplayString(day), 1)
1053
+ ]),
1054
+ _: 2
1055
+ }, 1024);
1056
+ }), 128))
1057
+ ]),
1058
+ _: 2
1059
+ }, 1024)
1060
+ ]),
1061
+ _: 2
1062
+ }, 1024),
1063
+ createVNode(unref(_sfc_main$3g), null, {
1064
+ default: withCtx(() => [
1065
+ (openBlock(true), createElementBlock(Fragment, null, renderList(month.rows, (weekDates, index) => {
1066
+ return openBlock(), createBlock(unref(_sfc_main$3e), {
1067
+ key: `weekDate-${index}`,
1068
+ class: "mt-2 w-full"
1069
+ }, {
1070
+ default: withCtx(() => [
1071
+ (openBlock(true), createElementBlock(Fragment, null, renderList(weekDates, (weekDate) => {
1072
+ return openBlock(), createBlock(unref(_sfc_main$3j), {
1073
+ key: weekDate.toString(),
1074
+ date: weekDate
1075
+ }, {
1076
+ default: withCtx(() => [
1077
+ createVNode(unref(_sfc_main$3i), {
1078
+ day: weekDate,
1079
+ month: month.value
1080
+ }, null, 8, ["day", "month"])
1081
+ ]),
1082
+ _: 2
1083
+ }, 1032, ["date"]);
1084
+ }), 128))
1085
+ ]),
1086
+ _: 2
1087
+ }, 1024);
1088
+ }), 128))
1089
+ ]),
1090
+ _: 2
1091
+ }, 1024)
1092
+ ]),
1093
+ _: 2
1094
+ }, 1024);
1095
+ }), 128))
1096
+ ])
1025
1097
  ]),
1026
- _: 3
1098
+ _: 1
1027
1099
  }, 16, ["class"]);
1028
1100
  };
1029
1101
  }
1030
1102
  });
1031
1103
 
1032
- const _sfc_main$2J = /* @__PURE__ */ defineComponent({
1033
- __name: "Checkbox",
1034
- props: /* @__PURE__ */ mergeModels({
1035
- defaultValue: { type: [Boolean, String] },
1036
- disabled: { type: Boolean }
1037
- }, {
1038
- "modelValue": { type: [Boolean, String, null], ...{ required: false } },
1039
- "modelModifiers": {}
1040
- }),
1041
- emits: ["update:modelValue"],
1042
- setup(__props) {
1043
- const value = useModel(__props, "modelValue");
1044
- return (_ctx, _cache) => {
1045
- return openBlock(), createBlock(unref(_sfc_main$2K), {
1046
- modelValue: value.value,
1047
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
1048
- "default-value": _ctx.defaultValue,
1049
- disabled: _ctx.disabled
1050
- }, null, 8, ["modelValue", "default-value", "disabled"]);
1051
- };
1052
- }
1053
- });
1054
-
1055
- function toBooleanCheckboxValue(value) {
1056
- return value === true;
1057
- }
1058
-
1059
- const _sfc_main$2I = /* @__PURE__ */ defineComponent({
1060
- __name: "Combobox",
1104
+ const _sfc_main$3j = /* @__PURE__ */ defineComponent({
1105
+ __name: "CalendarCell",
1061
1106
  props: {
1062
- open: { type: Boolean },
1063
- defaultOpen: { type: Boolean },
1064
- resetSearchTermOnBlur: { type: Boolean },
1065
- resetSearchTermOnSelect: { type: Boolean },
1066
- ignoreFilter: { type: Boolean },
1067
- modelValue: {},
1068
- defaultValue: {},
1069
- multiple: { type: Boolean },
1070
- dir: {},
1071
- disabled: { type: Boolean },
1072
- highlightOnHover: { type: Boolean },
1073
- by: { type: [String, Function] },
1107
+ date: {},
1074
1108
  asChild: { type: Boolean },
1075
1109
  as: {},
1076
- name: {},
1077
- required: { type: Boolean }
1110
+ class: {}
1078
1111
  },
1079
- emits: ["update:modelValue", "highlight", "update:open"],
1080
- setup(__props, { emit: __emit }) {
1112
+ setup(__props) {
1081
1113
  const props = __props;
1082
- const emits = __emit;
1083
- const forwarded = useForwardPropsEmits(props, emits);
1114
+ const delegatedProps = reactiveOmit(props, "class");
1115
+ const forwardedProps = useForwardProps(delegatedProps);
1084
1116
  return (_ctx, _cache) => {
1085
- return openBlock(), createBlock(unref(ComboboxRoot), mergeProps({ "data-slot": "combobox" }, unref(forwarded)), {
1117
+ return openBlock(), createBlock(unref(CalendarCell), mergeProps({
1118
+ "data-slot": "calendar-cell",
1119
+ class: unref(cn)(
1120
+ "[&:has([data-selected])]:bg-accent relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([data-selected])]:rounded-md",
1121
+ props.class
1122
+ )
1123
+ }, unref(forwardedProps)), {
1086
1124
  default: withCtx(() => [
1087
1125
  renderSlot(_ctx.$slots, "default")
1088
1126
  ]),
1089
1127
  _: 3
1090
- }, 16);
1128
+ }, 16, ["class"]);
1091
1129
  };
1092
1130
  }
1093
1131
  });
1094
1132
 
1095
- const _sfc_main$2H = /* @__PURE__ */ defineComponent({
1096
- __name: "ComboboxAnchor",
1133
+ const _sfc_main$3i = /* @__PURE__ */ defineComponent({
1134
+ __name: "CalendarCellTrigger",
1097
1135
  props: {
1098
- reference: {},
1136
+ day: {},
1137
+ month: {},
1099
1138
  asChild: { type: Boolean },
1100
- as: {},
1139
+ as: { default: "button" },
1101
1140
  class: {}
1102
1141
  },
1103
1142
  setup(__props) {
1104
1143
  const props = __props;
1105
- const delegatedProps = computed(() => {
1106
- const { class: _, ...delegated } = props;
1107
- return delegated;
1108
- });
1109
- const forwarded = useForwardProps(delegatedProps);
1144
+ const delegatedProps = reactiveOmit(props, "class");
1145
+ const forwardedProps = useForwardProps(delegatedProps);
1110
1146
  return (_ctx, _cache) => {
1111
- return openBlock(), createBlock(unref(ComboboxAnchor), mergeProps({ "data-slot": "combobox-anchor" }, unref(forwarded), {
1112
- class: unref(cn)("w-[200px]", props.class)
1113
- }), {
1147
+ return openBlock(), createBlock(unref(CalendarCellTrigger), mergeProps({
1148
+ "data-slot": "calendar-cell-trigger",
1149
+ class: unref(cn)(
1150
+ unref(buttonVariants)({ variant: "ghost" }),
1151
+ "size-8 cursor-default p-0 font-normal aria-selected:opacity-100",
1152
+ "[&[data-today]:not([data-selected])]:bg-accent [&[data-today]:not([data-selected])]:text-accent-foreground",
1153
+ // Selected
1154
+ "data-[selected]:bg-primary data-[selected]:text-primary-foreground data-[selected]:hover:bg-primary data-[selected]:hover:text-primary-foreground data-[selected]:focus:bg-primary data-[selected]:focus:text-primary-foreground data-[selected]:opacity-100",
1155
+ // Disabled
1156
+ "data-[disabled]:text-muted-foreground data-[disabled]:opacity-50",
1157
+ // Unavailable
1158
+ "data-[unavailable]:text-destructive-foreground data-[unavailable]:line-through",
1159
+ // Outside months
1160
+ "data-[outside-view]:text-muted-foreground",
1161
+ props.class
1162
+ )
1163
+ }, unref(forwardedProps)), {
1114
1164
  default: withCtx(() => [
1115
1165
  renderSlot(_ctx.$slots, "default")
1116
1166
  ]),
@@ -1120,8 +1170,8 @@ const _sfc_main$2H = /* @__PURE__ */ defineComponent({
1120
1170
  }
1121
1171
  });
1122
1172
 
1123
- const _sfc_main$2G = /* @__PURE__ */ defineComponent({
1124
- __name: "ComboboxEmpty",
1173
+ const _sfc_main$3h = /* @__PURE__ */ defineComponent({
1174
+ __name: "CalendarGrid",
1125
1175
  props: {
1126
1176
  asChild: { type: Boolean },
1127
1177
  as: {},
@@ -1129,14 +1179,13 @@ const _sfc_main$2G = /* @__PURE__ */ defineComponent({
1129
1179
  },
1130
1180
  setup(__props) {
1131
1181
  const props = __props;
1132
- const delegatedProps = computed(() => {
1133
- const { class: _, ...delegated } = props;
1134
- return delegated;
1135
- });
1182
+ const delegatedProps = reactiveOmit(props, "class");
1183
+ const forwardedProps = useForwardProps(delegatedProps);
1136
1184
  return (_ctx, _cache) => {
1137
- return openBlock(), createBlock(unref(ComboboxEmpty), mergeProps({ "data-slot": "combobox-empty" }, delegatedProps.value, {
1138
- class: unref(cn)("py-6 text-center text-sm", props.class)
1139
- }), {
1185
+ return openBlock(), createBlock(unref(CalendarGrid), mergeProps({
1186
+ "data-slot": "calendar-grid",
1187
+ class: unref(cn)("w-full border-collapse space-x-1", props.class)
1188
+ }, unref(forwardedProps)), {
1140
1189
  default: withCtx(() => [
1141
1190
  renderSlot(_ctx.$slots, "default")
1142
1191
  ]),
@@ -1146,115 +1195,61 @@ const _sfc_main$2G = /* @__PURE__ */ defineComponent({
1146
1195
  }
1147
1196
  });
1148
1197
 
1149
- const _sfc_main$2F = /* @__PURE__ */ defineComponent({
1150
- __name: "ComboboxGroup",
1198
+ const _sfc_main$3g = /* @__PURE__ */ defineComponent({
1199
+ __name: "CalendarGridBody",
1151
1200
  props: {
1152
1201
  asChild: { type: Boolean },
1153
- as: {},
1154
- class: {},
1155
- heading: {}
1202
+ as: {}
1156
1203
  },
1157
1204
  setup(__props) {
1158
1205
  const props = __props;
1159
- const delegatedProps = computed(() => {
1160
- const { class: _, ...delegated } = props;
1161
- return delegated;
1162
- });
1163
1206
  return (_ctx, _cache) => {
1164
- return openBlock(), createBlock(unref(ComboboxGroup), mergeProps({ "data-slot": "combobox-group" }, delegatedProps.value, {
1165
- class: unref(cn)("text-foreground overflow-hidden p-1", props.class)
1166
- }), {
1207
+ return openBlock(), createBlock(unref(CalendarGridBody), mergeProps({ "data-slot": "calendar-grid-body" }, props), {
1167
1208
  default: withCtx(() => [
1168
- _ctx.heading ? (openBlock(), createBlock(unref(ComboboxLabel), {
1169
- key: 0,
1170
- class: "text-muted-foreground px-2 py-1.5 text-xs font-medium"
1171
- }, {
1172
- default: withCtx(() => [
1173
- createTextVNode(toDisplayString(_ctx.heading), 1)
1174
- ]),
1175
- _: 1
1176
- })) : createCommentVNode("", true),
1177
1209
  renderSlot(_ctx.$slots, "default")
1178
1210
  ]),
1179
1211
  _: 3
1180
- }, 16, ["class"]);
1212
+ }, 16);
1181
1213
  };
1182
1214
  }
1183
1215
  });
1184
1216
 
1185
- const _hoisted_1$c = {
1186
- "data-slot": "command-input-wrapper",
1187
- class: "flex h-9 items-center gap-2 border-b px-3"
1188
- };
1189
- const _sfc_main$2E = /* @__PURE__ */ defineComponent({
1190
- ...{
1191
- inheritAttrs: false
1192
- },
1193
- __name: "ComboboxInput",
1217
+ const _sfc_main$3f = /* @__PURE__ */ defineComponent({
1218
+ __name: "CalendarGridHead",
1194
1219
  props: {
1195
- displayValue: { type: Function },
1196
- modelValue: {},
1197
- autoFocus: { type: Boolean },
1198
- disabled: { type: Boolean },
1199
1220
  asChild: { type: Boolean },
1200
1221
  as: {},
1201
1222
  class: {}
1202
1223
  },
1203
- emits: ["update:modelValue"],
1204
- setup(__props, { emit: __emit }) {
1224
+ setup(__props) {
1205
1225
  const props = __props;
1206
- const emits = __emit;
1207
- const delegatedProps = computed(() => {
1208
- const { class: _, ...delegated } = props;
1209
- return delegated;
1210
- });
1211
- const forwarded = useForwardPropsEmits(delegatedProps, emits);
1212
1226
  return (_ctx, _cache) => {
1213
- return openBlock(), createElementBlock("div", _hoisted_1$c, [
1214
- createVNode(unref(SearchIcon), { class: "size-4 shrink-0 opacity-50" }),
1215
- createVNode(unref(ComboboxInput), mergeProps({
1216
- "data-slot": "command-input",
1217
- class: unref(cn)(
1218
- "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",
1219
- props.class
1220
- )
1221
- }, { ...unref(forwarded), ..._ctx.$attrs }), {
1222
- default: withCtx(() => [
1223
- renderSlot(_ctx.$slots, "default")
1224
- ]),
1225
- _: 3
1226
- }, 16, ["class"])
1227
- ]);
1227
+ return openBlock(), createBlock(unref(CalendarGridHead), mergeProps({ "data-slot": "calendar-grid-head" }, props), {
1228
+ default: withCtx(() => [
1229
+ renderSlot(_ctx.$slots, "default")
1230
+ ]),
1231
+ _: 3
1232
+ }, 16);
1228
1233
  };
1229
1234
  }
1230
1235
  });
1231
1236
 
1232
- const _sfc_main$2D = /* @__PURE__ */ defineComponent({
1233
- __name: "ComboboxItem",
1237
+ const _sfc_main$3e = /* @__PURE__ */ defineComponent({
1238
+ __name: "CalendarGridRow",
1234
1239
  props: {
1235
- textValue: {},
1236
- value: {},
1237
- disabled: { type: Boolean },
1238
1240
  asChild: { type: Boolean },
1239
1241
  as: {},
1240
1242
  class: {}
1241
1243
  },
1242
- emits: ["select"],
1243
- setup(__props, { emit: __emit }) {
1244
+ setup(__props) {
1244
1245
  const props = __props;
1245
- const emits = __emit;
1246
- const delegatedProps = computed(() => {
1247
- const { class: _, ...delegated } = props;
1248
- return delegated;
1249
- });
1250
- const forwarded = useForwardPropsEmits(delegatedProps, emits);
1246
+ const delegatedProps = reactiveOmit(props, "class");
1247
+ const forwardedProps = useForwardProps(delegatedProps);
1251
1248
  return (_ctx, _cache) => {
1252
- return openBlock(), createBlock(unref(ComboboxItem), mergeProps({ "data-slot": "combobox-item" }, unref(forwarded), {
1253
- class: unref(cn)(
1254
- `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`,
1255
- props.class
1256
- )
1257
- }), {
1249
+ return openBlock(), createBlock(unref(CalendarGridRow), mergeProps({
1250
+ "data-slot": "calendar-grid-row",
1251
+ class: unref(cn)("flex", props.class)
1252
+ }, unref(forwardedProps)), {
1258
1253
  default: withCtx(() => [
1259
1254
  renderSlot(_ctx.$slots, "default")
1260
1255
  ]),
@@ -1264,8 +1259,900 @@ const _sfc_main$2D = /* @__PURE__ */ defineComponent({
1264
1259
  }
1265
1260
  });
1266
1261
 
1267
- const _sfc_main$2C = /* @__PURE__ */ defineComponent({
1268
- __name: "ComboboxItemIndicator",
1262
+ const _sfc_main$3d = /* @__PURE__ */ defineComponent({
1263
+ __name: "CalendarHeadCell",
1264
+ props: {
1265
+ asChild: { type: Boolean },
1266
+ as: {},
1267
+ class: {}
1268
+ },
1269
+ setup(__props) {
1270
+ const props = __props;
1271
+ const delegatedProps = reactiveOmit(props, "class");
1272
+ const forwardedProps = useForwardProps(delegatedProps);
1273
+ return (_ctx, _cache) => {
1274
+ return openBlock(), createBlock(unref(CalendarHeadCell), mergeProps({
1275
+ "data-slot": "calendar-head-cell",
1276
+ class: unref(cn)("text-muted-foreground w-8 rounded-md text-[0.8rem] font-normal", props.class)
1277
+ }, unref(forwardedProps)), {
1278
+ default: withCtx(() => [
1279
+ renderSlot(_ctx.$slots, "default")
1280
+ ]),
1281
+ _: 3
1282
+ }, 16, ["class"]);
1283
+ };
1284
+ }
1285
+ });
1286
+
1287
+ const _sfc_main$3c = /* @__PURE__ */ defineComponent({
1288
+ __name: "CalendarHeader",
1289
+ props: {
1290
+ asChild: { type: Boolean },
1291
+ as: {},
1292
+ class: {}
1293
+ },
1294
+ setup(__props) {
1295
+ const props = __props;
1296
+ const delegatedProps = reactiveOmit(props, "class");
1297
+ const forwardedProps = useForwardProps(delegatedProps);
1298
+ return (_ctx, _cache) => {
1299
+ return openBlock(), createBlock(unref(CalendarHeader), mergeProps({
1300
+ "data-slot": "calendar-header",
1301
+ class: unref(cn)("relative flex w-full items-center justify-center pt-1", props.class)
1302
+ }, unref(forwardedProps)), {
1303
+ default: withCtx(() => [
1304
+ renderSlot(_ctx.$slots, "default")
1305
+ ]),
1306
+ _: 3
1307
+ }, 16, ["class"]);
1308
+ };
1309
+ }
1310
+ });
1311
+
1312
+ const _sfc_main$3b = /* @__PURE__ */ defineComponent({
1313
+ __name: "CalendarHeading",
1314
+ props: {
1315
+ asChild: { type: Boolean },
1316
+ as: {},
1317
+ class: {}
1318
+ },
1319
+ setup(__props) {
1320
+ const props = __props;
1321
+ const delegatedProps = reactiveOmit(props, "class");
1322
+ const forwardedProps = useForwardProps(delegatedProps);
1323
+ return (_ctx, _cache) => {
1324
+ return openBlock(), createBlock(unref(CalendarHeading), mergeProps({
1325
+ "data-slot": "calendar-heading",
1326
+ class: unref(cn)("text-sm font-medium", props.class)
1327
+ }, unref(forwardedProps)), {
1328
+ default: withCtx(({ headingValue }) => [
1329
+ renderSlot(_ctx.$slots, "default", { headingValue }, () => [
1330
+ createTextVNode(toDisplayString(headingValue), 1)
1331
+ ])
1332
+ ]),
1333
+ _: 3
1334
+ }, 16, ["class"]);
1335
+ };
1336
+ }
1337
+ });
1338
+
1339
+ const _sfc_main$3a = /* @__PURE__ */ defineComponent({
1340
+ __name: "CalendarNextButton",
1341
+ props: {
1342
+ nextPage: { type: Function },
1343
+ asChild: { type: Boolean },
1344
+ as: {},
1345
+ class: {}
1346
+ },
1347
+ setup(__props) {
1348
+ const props = __props;
1349
+ const delegatedProps = reactiveOmit(props, "class");
1350
+ const forwardedProps = useForwardProps(delegatedProps);
1351
+ return (_ctx, _cache) => {
1352
+ return openBlock(), createBlock(unref(CalendarNext), mergeProps({
1353
+ "data-slot": "calendar-next-button",
1354
+ class: unref(cn)(
1355
+ unref(buttonVariants)({ variant: "outline" }),
1356
+ "absolute right-1",
1357
+ "size-7 bg-transparent p-0 opacity-50 hover:opacity-100",
1358
+ props.class
1359
+ )
1360
+ }, unref(forwardedProps)), {
1361
+ default: withCtx(() => [
1362
+ renderSlot(_ctx.$slots, "default", {}, () => [
1363
+ createVNode(unref(ChevronRight), { class: "size-4" })
1364
+ ])
1365
+ ]),
1366
+ _: 3
1367
+ }, 16, ["class"]);
1368
+ };
1369
+ }
1370
+ });
1371
+
1372
+ const _sfc_main$39 = /* @__PURE__ */ defineComponent({
1373
+ __name: "CalendarPrevButton",
1374
+ props: {
1375
+ prevPage: { type: Function },
1376
+ asChild: { type: Boolean },
1377
+ as: {},
1378
+ class: {}
1379
+ },
1380
+ setup(__props) {
1381
+ const props = __props;
1382
+ const delegatedProps = reactiveOmit(props, "class");
1383
+ const forwardedProps = useForwardProps(delegatedProps);
1384
+ return (_ctx, _cache) => {
1385
+ return openBlock(), createBlock(unref(CalendarPrev), mergeProps({
1386
+ "data-slot": "calendar-prev-button",
1387
+ class: unref(cn)(
1388
+ unref(buttonVariants)({ variant: "outline" }),
1389
+ "absolute left-1",
1390
+ "size-7 bg-transparent p-0 opacity-50 hover:opacity-100",
1391
+ props.class
1392
+ )
1393
+ }, unref(forwardedProps)), {
1394
+ default: withCtx(() => [
1395
+ renderSlot(_ctx.$slots, "default", {}, () => [
1396
+ createVNode(unref(ChevronLeft), { class: "size-4" })
1397
+ ])
1398
+ ]),
1399
+ _: 3
1400
+ }, 16, ["class"]);
1401
+ };
1402
+ }
1403
+ });
1404
+
1405
+ const _sfc_main$38 = /* @__PURE__ */ defineComponent({
1406
+ __name: "Checkbox",
1407
+ props: {
1408
+ defaultValue: { type: [Boolean, String] },
1409
+ modelValue: { type: [Boolean, String, null] },
1410
+ disabled: { type: Boolean },
1411
+ value: {},
1412
+ id: {},
1413
+ asChild: { type: Boolean },
1414
+ as: {},
1415
+ name: {},
1416
+ required: { type: Boolean },
1417
+ class: {}
1418
+ },
1419
+ emits: ["update:modelValue"],
1420
+ setup(__props, { emit: __emit }) {
1421
+ const props = __props;
1422
+ const emits = __emit;
1423
+ const delegatedProps = computed(() => {
1424
+ const { class: _, ...delegated } = props;
1425
+ return delegated;
1426
+ });
1427
+ const forwarded = useForwardPropsEmits(delegatedProps, emits);
1428
+ return (_ctx, _cache) => {
1429
+ return openBlock(), createBlock(unref(CheckboxRoot), mergeProps({ "data-slot": "checkbox" }, unref(forwarded), {
1430
+ class: unref(cn)(
1431
+ "peer border-input data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
1432
+ props.class
1433
+ )
1434
+ }), {
1435
+ default: withCtx(() => [
1436
+ createVNode(unref(CheckboxIndicator), {
1437
+ "data-slot": "checkbox-indicator",
1438
+ class: "flex items-center justify-center text-current transition-none"
1439
+ }, {
1440
+ default: withCtx(() => [
1441
+ renderSlot(_ctx.$slots, "default", {}, () => [
1442
+ createVNode(unref(Check), { class: "size-3.5" })
1443
+ ])
1444
+ ]),
1445
+ _: 3
1446
+ })
1447
+ ]),
1448
+ _: 3
1449
+ }, 16, ["class"]);
1450
+ };
1451
+ }
1452
+ });
1453
+
1454
+ const _sfc_main$37 = /* @__PURE__ */ defineComponent({
1455
+ __name: "Checkbox",
1456
+ props: /* @__PURE__ */ mergeModels({
1457
+ defaultValue: { type: [Boolean, String] },
1458
+ disabled: { type: Boolean }
1459
+ }, {
1460
+ "modelValue": { type: [Boolean, String, null], ...{ required: false } },
1461
+ "modelModifiers": {}
1462
+ }),
1463
+ emits: ["update:modelValue"],
1464
+ setup(__props) {
1465
+ const value = useModel(__props, "modelValue");
1466
+ return (_ctx, _cache) => {
1467
+ return openBlock(), createBlock(unref(_sfc_main$38), {
1468
+ modelValue: value.value,
1469
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
1470
+ "default-value": _ctx.defaultValue,
1471
+ disabled: _ctx.disabled
1472
+ }, null, 8, ["modelValue", "default-value", "disabled"]);
1473
+ };
1474
+ }
1475
+ });
1476
+
1477
+ function toBooleanCheckboxValue(value) {
1478
+ return value === true;
1479
+ }
1480
+
1481
+ const _sfc_main$36 = /* @__PURE__ */ defineComponent({
1482
+ __name: "Combobox",
1483
+ props: {
1484
+ open: { type: Boolean },
1485
+ defaultOpen: { type: Boolean },
1486
+ resetSearchTermOnBlur: { type: Boolean },
1487
+ resetSearchTermOnSelect: { type: Boolean },
1488
+ ignoreFilter: { type: Boolean },
1489
+ modelValue: {},
1490
+ defaultValue: {},
1491
+ multiple: { type: Boolean },
1492
+ dir: {},
1493
+ disabled: { type: Boolean },
1494
+ highlightOnHover: { type: Boolean },
1495
+ by: { type: [String, Function] },
1496
+ asChild: { type: Boolean },
1497
+ as: {},
1498
+ name: {},
1499
+ required: { type: Boolean }
1500
+ },
1501
+ emits: ["update:modelValue", "highlight", "update:open"],
1502
+ setup(__props, { emit: __emit }) {
1503
+ const props = __props;
1504
+ const emits = __emit;
1505
+ const forwarded = useForwardPropsEmits(props, emits);
1506
+ return (_ctx, _cache) => {
1507
+ return openBlock(), createBlock(unref(ComboboxRoot), mergeProps({ "data-slot": "combobox" }, unref(forwarded)), {
1508
+ default: withCtx(() => [
1509
+ renderSlot(_ctx.$slots, "default")
1510
+ ]),
1511
+ _: 3
1512
+ }, 16);
1513
+ };
1514
+ }
1515
+ });
1516
+
1517
+ const _sfc_main$35 = /* @__PURE__ */ defineComponent({
1518
+ __name: "ComboboxAnchor",
1519
+ props: {
1520
+ reference: {},
1521
+ asChild: { type: Boolean },
1522
+ as: {},
1523
+ class: {}
1524
+ },
1525
+ setup(__props) {
1526
+ const props = __props;
1527
+ const delegatedProps = computed(() => {
1528
+ const { class: _, ...delegated } = props;
1529
+ return delegated;
1530
+ });
1531
+ const forwarded = useForwardProps(delegatedProps);
1532
+ return (_ctx, _cache) => {
1533
+ return openBlock(), createBlock(unref(ComboboxAnchor), mergeProps({ "data-slot": "combobox-anchor" }, unref(forwarded), {
1534
+ class: unref(cn)("w-[200px]", props.class)
1535
+ }), {
1536
+ default: withCtx(() => [
1537
+ renderSlot(_ctx.$slots, "default")
1538
+ ]),
1539
+ _: 3
1540
+ }, 16, ["class"]);
1541
+ };
1542
+ }
1543
+ });
1544
+
1545
+ const _sfc_main$34 = /* @__PURE__ */ defineComponent({
1546
+ __name: "ComboboxEmpty",
1547
+ props: {
1548
+ asChild: { type: Boolean },
1549
+ as: {},
1550
+ class: {}
1551
+ },
1552
+ setup(__props) {
1553
+ const props = __props;
1554
+ const delegatedProps = computed(() => {
1555
+ const { class: _, ...delegated } = props;
1556
+ return delegated;
1557
+ });
1558
+ return (_ctx, _cache) => {
1559
+ return openBlock(), createBlock(unref(ComboboxEmpty), mergeProps({ "data-slot": "combobox-empty" }, delegatedProps.value, {
1560
+ class: unref(cn)("py-6 text-center text-sm", props.class)
1561
+ }), {
1562
+ default: withCtx(() => [
1563
+ renderSlot(_ctx.$slots, "default")
1564
+ ]),
1565
+ _: 3
1566
+ }, 16, ["class"]);
1567
+ };
1568
+ }
1569
+ });
1570
+
1571
+ const _sfc_main$33 = /* @__PURE__ */ defineComponent({
1572
+ __name: "ComboboxGroup",
1573
+ props: {
1574
+ asChild: { type: Boolean },
1575
+ as: {},
1576
+ class: {},
1577
+ heading: {}
1578
+ },
1579
+ setup(__props) {
1580
+ const props = __props;
1581
+ const delegatedProps = computed(() => {
1582
+ const { class: _, ...delegated } = props;
1583
+ return delegated;
1584
+ });
1585
+ return (_ctx, _cache) => {
1586
+ return openBlock(), createBlock(unref(ComboboxGroup), mergeProps({ "data-slot": "combobox-group" }, delegatedProps.value, {
1587
+ class: unref(cn)("text-foreground overflow-hidden p-1", props.class)
1588
+ }), {
1589
+ default: withCtx(() => [
1590
+ _ctx.heading ? (openBlock(), createBlock(unref(ComboboxLabel), {
1591
+ key: 0,
1592
+ class: "text-muted-foreground px-2 py-1.5 text-xs font-medium"
1593
+ }, {
1594
+ default: withCtx(() => [
1595
+ createTextVNode(toDisplayString(_ctx.heading), 1)
1596
+ ]),
1597
+ _: 1
1598
+ })) : createCommentVNode("", true),
1599
+ renderSlot(_ctx.$slots, "default")
1600
+ ]),
1601
+ _: 3
1602
+ }, 16, ["class"]);
1603
+ };
1604
+ }
1605
+ });
1606
+
1607
+ const _hoisted_1$f = {
1608
+ "data-slot": "command-input-wrapper",
1609
+ class: "flex h-9 items-center gap-2 border-b px-3"
1610
+ };
1611
+ const _sfc_main$32 = /* @__PURE__ */ defineComponent({
1612
+ ...{
1613
+ inheritAttrs: false
1614
+ },
1615
+ __name: "ComboboxInput",
1616
+ props: {
1617
+ displayValue: { type: Function },
1618
+ modelValue: {},
1619
+ autoFocus: { type: Boolean },
1620
+ disabled: { type: Boolean },
1621
+ asChild: { type: Boolean },
1622
+ as: {},
1623
+ class: {}
1624
+ },
1625
+ emits: ["update:modelValue"],
1626
+ setup(__props, { emit: __emit }) {
1627
+ const props = __props;
1628
+ const emits = __emit;
1629
+ const delegatedProps = computed(() => {
1630
+ const { class: _, ...delegated } = props;
1631
+ return delegated;
1632
+ });
1633
+ const forwarded = useForwardPropsEmits(delegatedProps, emits);
1634
+ return (_ctx, _cache) => {
1635
+ return openBlock(), createElementBlock("div", _hoisted_1$f, [
1636
+ createVNode(unref(SearchIcon), { class: "size-4 shrink-0 opacity-50" }),
1637
+ createVNode(unref(ComboboxInput), mergeProps({
1638
+ "data-slot": "command-input",
1639
+ class: unref(cn)(
1640
+ "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",
1641
+ props.class
1642
+ )
1643
+ }, { ...unref(forwarded), ..._ctx.$attrs }), {
1644
+ default: withCtx(() => [
1645
+ renderSlot(_ctx.$slots, "default")
1646
+ ]),
1647
+ _: 3
1648
+ }, 16, ["class"])
1649
+ ]);
1650
+ };
1651
+ }
1652
+ });
1653
+
1654
+ const _sfc_main$31 = /* @__PURE__ */ defineComponent({
1655
+ __name: "ComboboxItem",
1656
+ props: {
1657
+ textValue: {},
1658
+ value: {},
1659
+ disabled: { type: Boolean },
1660
+ asChild: { type: Boolean },
1661
+ as: {},
1662
+ class: {}
1663
+ },
1664
+ emits: ["select"],
1665
+ setup(__props, { emit: __emit }) {
1666
+ const props = __props;
1667
+ const emits = __emit;
1668
+ const delegatedProps = computed(() => {
1669
+ const { class: _, ...delegated } = props;
1670
+ return delegated;
1671
+ });
1672
+ const forwarded = useForwardPropsEmits(delegatedProps, emits);
1673
+ return (_ctx, _cache) => {
1674
+ return openBlock(), createBlock(unref(ComboboxItem), mergeProps({ "data-slot": "combobox-item" }, unref(forwarded), {
1675
+ class: unref(cn)(
1676
+ `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`,
1677
+ props.class
1678
+ )
1679
+ }), {
1680
+ default: withCtx(() => [
1681
+ renderSlot(_ctx.$slots, "default")
1682
+ ]),
1683
+ _: 3
1684
+ }, 16, ["class"]);
1685
+ };
1686
+ }
1687
+ });
1688
+
1689
+ const _sfc_main$30 = /* @__PURE__ */ defineComponent({
1690
+ __name: "ComboboxItemIndicator",
1691
+ props: {
1692
+ asChild: { type: Boolean },
1693
+ as: {},
1694
+ class: {}
1695
+ },
1696
+ setup(__props) {
1697
+ const props = __props;
1698
+ const delegatedProps = computed(() => {
1699
+ const { class: _, ...delegated } = props;
1700
+ return delegated;
1701
+ });
1702
+ const forwarded = useForwardProps(delegatedProps);
1703
+ return (_ctx, _cache) => {
1704
+ return openBlock(), createBlock(unref(ComboboxItemIndicator), mergeProps({ "data-slot": "combobox-item-indicator" }, unref(forwarded), {
1705
+ class: unref(cn)("ml-auto", props.class)
1706
+ }), {
1707
+ default: withCtx(() => [
1708
+ renderSlot(_ctx.$slots, "default")
1709
+ ]),
1710
+ _: 3
1711
+ }, 16, ["class"]);
1712
+ };
1713
+ }
1714
+ });
1715
+
1716
+ const _sfc_main$2$ = /* @__PURE__ */ defineComponent({
1717
+ __name: "ComboboxList",
1718
+ props: {
1719
+ forceMount: { type: Boolean },
1720
+ position: { default: "popper" },
1721
+ bodyLock: { type: Boolean },
1722
+ side: {},
1723
+ sideOffset: { default: 4 },
1724
+ align: { default: "center" },
1725
+ alignOffset: {},
1726
+ avoidCollisions: { type: Boolean },
1727
+ collisionBoundary: {},
1728
+ collisionPadding: {},
1729
+ arrowPadding: {},
1730
+ sticky: {},
1731
+ hideWhenDetached: { type: Boolean },
1732
+ positionStrategy: {},
1733
+ updatePositionStrategy: {},
1734
+ disableUpdateOnLayoutShift: { type: Boolean },
1735
+ prioritizePosition: { type: Boolean },
1736
+ reference: {},
1737
+ asChild: { type: Boolean },
1738
+ as: {},
1739
+ disableOutsidePointerEvents: { type: Boolean },
1740
+ class: {},
1741
+ viewportClass: {}
1742
+ },
1743
+ emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside"],
1744
+ setup(__props, { emit: __emit }) {
1745
+ const props = __props;
1746
+ const emits = __emit;
1747
+ const delegatedProps = reactiveOmit(props, "class", "viewportClass");
1748
+ const forwarded = useForwardPropsEmits(delegatedProps, emits);
1749
+ return (_ctx, _cache) => {
1750
+ return openBlock(), createBlock(unref(ComboboxPortal), null, {
1751
+ default: withCtx(() => [
1752
+ createVNode(unref(ComboboxContent), mergeProps({ "data-slot": "combobox-list" }, unref(forwarded), {
1753
+ class: unref(cn)(
1754
+ "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 w-[200px] origin-(--reka-combobox-content-transform-origin) overflow-hidden rounded-md border shadow-md outline-none",
1755
+ props.class
1756
+ )
1757
+ }), {
1758
+ default: withCtx(() => [
1759
+ renderSlot(_ctx.$slots, "default")
1760
+ ]),
1761
+ _: 3
1762
+ }, 16, ["class"])
1763
+ ]),
1764
+ _: 3
1765
+ });
1766
+ };
1767
+ }
1768
+ });
1769
+
1770
+ const _sfc_main$2_ = /* @__PURE__ */ defineComponent({
1771
+ __name: "ComboboxSeparator",
1772
+ props: {
1773
+ asChild: { type: Boolean },
1774
+ as: {},
1775
+ class: {}
1776
+ },
1777
+ setup(__props) {
1778
+ const props = __props;
1779
+ const delegatedProps = computed(() => {
1780
+ const { class: _, ...delegated } = props;
1781
+ return delegated;
1782
+ });
1783
+ return (_ctx, _cache) => {
1784
+ return openBlock(), createBlock(unref(ComboboxSeparator), mergeProps({ "data-slot": "combobox-separator" }, delegatedProps.value, {
1785
+ class: unref(cn)("bg-border -mx-1 h-px", props.class)
1786
+ }), {
1787
+ default: withCtx(() => [
1788
+ renderSlot(_ctx.$slots, "default")
1789
+ ]),
1790
+ _: 3
1791
+ }, 16, ["class"]);
1792
+ };
1793
+ }
1794
+ });
1795
+
1796
+ const _sfc_main$2Z = /* @__PURE__ */ defineComponent({
1797
+ __name: "ComboboxViewport",
1798
+ props: {
1799
+ nonce: {},
1800
+ asChild: { type: Boolean },
1801
+ as: {},
1802
+ class: {}
1803
+ },
1804
+ setup(__props) {
1805
+ const props = __props;
1806
+ const delegatedProps = computed(() => {
1807
+ const { class: _, ...delegated } = props;
1808
+ return delegated;
1809
+ });
1810
+ const forwarded = useForwardProps(delegatedProps);
1811
+ return (_ctx, _cache) => {
1812
+ return openBlock(), createBlock(unref(ComboboxViewport), mergeProps({ "data-slot": "combobox-viewport" }, unref(forwarded), {
1813
+ class: unref(cn)("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto", props.class)
1814
+ }), {
1815
+ default: withCtx(() => [
1816
+ renderSlot(_ctx.$slots, "default")
1817
+ ]),
1818
+ _: 3
1819
+ }, 16, ["class"]);
1820
+ };
1821
+ }
1822
+ });
1823
+
1824
+ const _sfc_main$2Y = /* @__PURE__ */ defineComponent({
1825
+ __name: "Command",
1826
+ props: {
1827
+ modelValue: { default: "" },
1828
+ defaultValue: {},
1829
+ multiple: { type: Boolean },
1830
+ orientation: {},
1831
+ dir: {},
1832
+ disabled: { type: Boolean },
1833
+ selectionBehavior: {},
1834
+ highlightOnHover: { type: Boolean },
1835
+ by: {},
1836
+ asChild: { type: Boolean },
1837
+ as: {},
1838
+ name: {},
1839
+ required: { type: Boolean },
1840
+ class: {}
1841
+ },
1842
+ emits: ["update:modelValue", "highlight", "entryFocus", "leave"],
1843
+ setup(__props, { emit: __emit }) {
1844
+ const props = __props;
1845
+ const emits = __emit;
1846
+ const delegatedProps = reactiveOmit(props, "class");
1847
+ const forwarded = useForwardPropsEmits(delegatedProps, emits);
1848
+ const allItems = ref(/* @__PURE__ */ new Map());
1849
+ const allGroups = ref(/* @__PURE__ */ new Map());
1850
+ const { contains } = useFilter({ sensitivity: "base" });
1851
+ const filterState = reactive({
1852
+ search: "",
1853
+ filtered: {
1854
+ /** The count of all visible items. */
1855
+ count: 0,
1856
+ /** Map from visible item id to its search score. */
1857
+ items: /* @__PURE__ */ new Map(),
1858
+ /** Set of groups with at least one visible item. */
1859
+ groups: /* @__PURE__ */ new Set()
1860
+ }
1861
+ });
1862
+ function filterItems() {
1863
+ if (!filterState.search) {
1864
+ filterState.filtered.count = allItems.value.size;
1865
+ return;
1866
+ }
1867
+ filterState.filtered.groups = /* @__PURE__ */ new Set();
1868
+ let itemCount = 0;
1869
+ for (const [id, value] of allItems.value) {
1870
+ const score = contains(value, filterState.search);
1871
+ filterState.filtered.items.set(id, score ? 1 : 0);
1872
+ if (score) itemCount++;
1873
+ }
1874
+ for (const [groupId, group] of allGroups.value) {
1875
+ for (const itemId of group) {
1876
+ if (filterState.filtered.items.get(itemId) > 0) {
1877
+ filterState.filtered.groups.add(groupId);
1878
+ break;
1879
+ }
1880
+ }
1881
+ }
1882
+ filterState.filtered.count = itemCount;
1883
+ }
1884
+ watch(
1885
+ () => filterState.search,
1886
+ () => {
1887
+ filterItems();
1888
+ }
1889
+ );
1890
+ provideCommandContext({
1891
+ allItems,
1892
+ allGroups,
1893
+ filterState
1894
+ });
1895
+ return (_ctx, _cache) => {
1896
+ return openBlock(), createBlock(unref(ListboxRoot), mergeProps({ "data-slot": "command" }, unref(forwarded), {
1897
+ class: unref(cn)(
1898
+ "bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
1899
+ props.class
1900
+ )
1901
+ }), {
1902
+ default: withCtx(() => [
1903
+ renderSlot(_ctx.$slots, "default")
1904
+ ]),
1905
+ _: 3
1906
+ }, 16, ["class"]);
1907
+ };
1908
+ }
1909
+ });
1910
+
1911
+ const _sfc_main$2X = /* @__PURE__ */ defineComponent({
1912
+ __name: "Dialog",
1913
+ props: {
1914
+ open: { type: Boolean },
1915
+ defaultOpen: { type: Boolean },
1916
+ modal: { type: Boolean }
1917
+ },
1918
+ emits: ["update:open"],
1919
+ setup(__props, { emit: __emit }) {
1920
+ const props = __props;
1921
+ const emits = __emit;
1922
+ const forwarded = useForwardPropsEmits(props, emits);
1923
+ return (_ctx, _cache) => {
1924
+ return openBlock(), createBlock(unref(DialogRoot), mergeProps({ "data-slot": "dialog" }, unref(forwarded)), {
1925
+ default: withCtx(() => [
1926
+ renderSlot(_ctx.$slots, "default")
1927
+ ]),
1928
+ _: 3
1929
+ }, 16);
1930
+ };
1931
+ }
1932
+ });
1933
+
1934
+ const _sfc_main$2W = /* @__PURE__ */ defineComponent({
1935
+ __name: "DialogClose",
1936
+ props: {
1937
+ asChild: { type: Boolean },
1938
+ as: {}
1939
+ },
1940
+ setup(__props) {
1941
+ const props = __props;
1942
+ return (_ctx, _cache) => {
1943
+ return openBlock(), createBlock(unref(DialogClose), mergeProps({ "data-slot": "dialog-close" }, props), {
1944
+ default: withCtx(() => [
1945
+ renderSlot(_ctx.$slots, "default")
1946
+ ]),
1947
+ _: 3
1948
+ }, 16);
1949
+ };
1950
+ }
1951
+ });
1952
+
1953
+ const _sfc_main$2V = /* @__PURE__ */ defineComponent({
1954
+ __name: "DialogOverlay",
1955
+ props: {
1956
+ forceMount: { type: Boolean },
1957
+ asChild: { type: Boolean },
1958
+ as: {},
1959
+ class: {}
1960
+ },
1961
+ setup(__props) {
1962
+ const props = __props;
1963
+ const delegatedProps = computed(() => {
1964
+ const { class: _, ...delegated } = props;
1965
+ return delegated;
1966
+ });
1967
+ return (_ctx, _cache) => {
1968
+ return openBlock(), createBlock(unref(DialogOverlay), mergeProps({ "data-slot": "dialog-overlay" }, delegatedProps.value, {
1969
+ class: unref(cn)(
1970
+ "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",
1971
+ props.class
1972
+ )
1973
+ }), {
1974
+ default: withCtx(() => [
1975
+ renderSlot(_ctx.$slots, "default")
1976
+ ]),
1977
+ _: 3
1978
+ }, 16, ["class"]);
1979
+ };
1980
+ }
1981
+ });
1982
+
1983
+ const _sfc_main$2U = /* @__PURE__ */ defineComponent({
1984
+ __name: "DialogContent",
1985
+ props: {
1986
+ forceMount: { type: Boolean },
1987
+ disableOutsidePointerEvents: { type: Boolean },
1988
+ asChild: { type: Boolean },
1989
+ as: {},
1990
+ class: {}
1991
+ },
1992
+ emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
1993
+ setup(__props, { emit: __emit }) {
1994
+ const props = __props;
1995
+ const emits = __emit;
1996
+ const delegatedProps = computed(() => {
1997
+ const { class: _, ...delegated } = props;
1998
+ return delegated;
1999
+ });
2000
+ const forwarded = useForwardPropsEmits(delegatedProps, emits);
2001
+ return (_ctx, _cache) => {
2002
+ return openBlock(), createBlock(unref(DialogPortal), null, {
2003
+ default: withCtx(() => [
2004
+ createVNode(_sfc_main$2V),
2005
+ createVNode(unref(DialogContent), mergeProps({ "data-slot": "dialog-content" }, unref(forwarded), {
2006
+ class: unref(cn)(
2007
+ "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",
2008
+ props.class
2009
+ )
2010
+ }), {
2011
+ default: withCtx(() => [
2012
+ renderSlot(_ctx.$slots, "default"),
2013
+ 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" }, {
2014
+ default: withCtx(() => [
2015
+ createVNode(unref(X)),
2016
+ _cache[0] || (_cache[0] = createElementVNode("span", { class: "sr-only" }, "Close", -1))
2017
+ ]),
2018
+ _: 1,
2019
+ __: [0]
2020
+ })
2021
+ ]),
2022
+ _: 3
2023
+ }, 16, ["class"])
2024
+ ]),
2025
+ _: 3
2026
+ });
2027
+ };
2028
+ }
2029
+ });
2030
+
2031
+ const _sfc_main$2T = /* @__PURE__ */ defineComponent({
2032
+ __name: "DialogDescription",
2033
+ props: {
2034
+ asChild: { type: Boolean },
2035
+ as: {},
2036
+ class: {}
2037
+ },
2038
+ setup(__props) {
2039
+ const props = __props;
2040
+ const delegatedProps = computed(() => {
2041
+ const { class: _, ...delegated } = props;
2042
+ return delegated;
2043
+ });
2044
+ const forwardedProps = useForwardProps(delegatedProps);
2045
+ return (_ctx, _cache) => {
2046
+ return openBlock(), createBlock(unref(DialogDescription), mergeProps({ "data-slot": "dialog-description" }, unref(forwardedProps), {
2047
+ class: unref(cn)("text-muted-foreground text-sm", props.class)
2048
+ }), {
2049
+ default: withCtx(() => [
2050
+ renderSlot(_ctx.$slots, "default")
2051
+ ]),
2052
+ _: 3
2053
+ }, 16, ["class"]);
2054
+ };
2055
+ }
2056
+ });
2057
+
2058
+ const _sfc_main$2S = /* @__PURE__ */ defineComponent({
2059
+ __name: "DialogFooter",
2060
+ props: {
2061
+ class: {}
2062
+ },
2063
+ setup(__props) {
2064
+ const props = __props;
2065
+ return (_ctx, _cache) => {
2066
+ return openBlock(), createElementBlock("div", {
2067
+ "data-slot": "dialog-footer",
2068
+ class: normalizeClass(unref(cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", props.class))
2069
+ }, [
2070
+ renderSlot(_ctx.$slots, "default")
2071
+ ], 2);
2072
+ };
2073
+ }
2074
+ });
2075
+
2076
+ const _sfc_main$2R = /* @__PURE__ */ defineComponent({
2077
+ __name: "DialogHeader",
2078
+ props: {
2079
+ class: {}
2080
+ },
2081
+ setup(__props) {
2082
+ const props = __props;
2083
+ return (_ctx, _cache) => {
2084
+ return openBlock(), createElementBlock("div", {
2085
+ "data-slot": "dialog-header",
2086
+ class: normalizeClass(unref(cn)("flex flex-col gap-2 text-center sm:text-left", props.class))
2087
+ }, [
2088
+ renderSlot(_ctx.$slots, "default")
2089
+ ], 2);
2090
+ };
2091
+ }
2092
+ });
2093
+
2094
+ const _sfc_main$2Q = /* @__PURE__ */ defineComponent({
2095
+ __name: "DialogScrollContent",
2096
+ props: {
2097
+ forceMount: { type: Boolean },
2098
+ disableOutsidePointerEvents: { type: Boolean },
2099
+ asChild: { type: Boolean },
2100
+ as: {},
2101
+ class: {}
2102
+ },
2103
+ emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
2104
+ setup(__props, { emit: __emit }) {
2105
+ const props = __props;
2106
+ const emits = __emit;
2107
+ const delegatedProps = computed(() => {
2108
+ const { class: _, ...delegated } = props;
2109
+ return delegated;
2110
+ });
2111
+ const forwarded = useForwardPropsEmits(delegatedProps, emits);
2112
+ return (_ctx, _cache) => {
2113
+ return openBlock(), createBlock(unref(DialogPortal), null, {
2114
+ default: withCtx(() => [
2115
+ createVNode(unref(DialogOverlay), { class: "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 grid place-items-center overflow-y-auto bg-black/80" }, {
2116
+ default: withCtx(() => [
2117
+ createVNode(unref(DialogContent), mergeProps({
2118
+ class: unref(cn)(
2119
+ "border-border bg-background relative z-50 my-8 grid w-full max-w-lg gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg md:w-full",
2120
+ props.class
2121
+ )
2122
+ }, unref(forwarded), {
2123
+ onPointerDownOutside: _cache[0] || (_cache[0] = (event) => {
2124
+ const originalEvent = event.detail.originalEvent;
2125
+ const target = originalEvent.target;
2126
+ if (originalEvent.offsetX > target.clientWidth || originalEvent.offsetY > target.clientHeight) {
2127
+ event.preventDefault();
2128
+ }
2129
+ })
2130
+ }), {
2131
+ default: withCtx(() => [
2132
+ renderSlot(_ctx.$slots, "default"),
2133
+ createVNode(unref(DialogClose), { class: "hover:bg-secondary absolute top-4 right-4 rounded-md p-0.5 transition-colors" }, {
2134
+ default: withCtx(() => [
2135
+ createVNode(unref(X), { class: "h-4 w-4" }),
2136
+ _cache[1] || (_cache[1] = createElementVNode("span", { class: "sr-only" }, "Close", -1))
2137
+ ]),
2138
+ _: 1,
2139
+ __: [1]
2140
+ })
2141
+ ]),
2142
+ _: 3
2143
+ }, 16, ["class"])
2144
+ ]),
2145
+ _: 3
2146
+ })
2147
+ ]),
2148
+ _: 3
2149
+ });
2150
+ };
2151
+ }
2152
+ });
2153
+
2154
+ const _sfc_main$2P = /* @__PURE__ */ defineComponent({
2155
+ __name: "DialogTitle",
1269
2156
  props: {
1270
2157
  asChild: { type: Boolean },
1271
2158
  as: {},
@@ -1277,10 +2164,10 @@ const _sfc_main$2C = /* @__PURE__ */ defineComponent({
1277
2164
  const { class: _, ...delegated } = props;
1278
2165
  return delegated;
1279
2166
  });
1280
- const forwarded = useForwardProps(delegatedProps);
2167
+ const forwardedProps = useForwardProps(delegatedProps);
1281
2168
  return (_ctx, _cache) => {
1282
- return openBlock(), createBlock(unref(ComboboxItemIndicator), mergeProps({ "data-slot": "combobox-item-indicator" }, unref(forwarded), {
1283
- class: unref(cn)("ml-auto", props.class)
2169
+ return openBlock(), createBlock(unref(DialogTitle), mergeProps({ "data-slot": "dialog-title" }, unref(forwardedProps), {
2170
+ class: unref(cn)("text-lg leading-none font-semibold", props.class)
1284
2171
  }), {
1285
2172
  default: withCtx(() => [
1286
2173
  renderSlot(_ctx.$slots, "default")
@@ -1291,75 +2178,301 @@ const _sfc_main$2C = /* @__PURE__ */ defineComponent({
1291
2178
  }
1292
2179
  });
1293
2180
 
1294
- const _sfc_main$2B = /* @__PURE__ */ defineComponent({
1295
- __name: "ComboboxList",
2181
+ const _sfc_main$2O = /* @__PURE__ */ defineComponent({
2182
+ __name: "DialogTrigger",
1296
2183
  props: {
1297
- forceMount: { type: Boolean },
1298
- position: { default: "popper" },
1299
- bodyLock: { type: Boolean },
1300
- side: {},
1301
- sideOffset: { default: 4 },
1302
- align: { default: "center" },
1303
- alignOffset: {},
1304
- avoidCollisions: { type: Boolean },
1305
- collisionBoundary: {},
1306
- collisionPadding: {},
1307
- arrowPadding: {},
1308
- sticky: {},
1309
- hideWhenDetached: { type: Boolean },
1310
- positionStrategy: {},
1311
- updatePositionStrategy: {},
1312
- disableUpdateOnLayoutShift: { type: Boolean },
1313
- prioritizePosition: { type: Boolean },
1314
- reference: {},
1315
2184
  asChild: { type: Boolean },
1316
- as: {},
1317
- disableOutsidePointerEvents: { type: Boolean },
1318
- class: {},
1319
- viewportClass: {}
2185
+ as: {}
1320
2186
  },
1321
- emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside"],
2187
+ setup(__props) {
2188
+ const props = __props;
2189
+ return (_ctx, _cache) => {
2190
+ return openBlock(), createBlock(unref(DialogTrigger), mergeProps({ "data-slot": "dialog-trigger" }, props), {
2191
+ default: withCtx(() => [
2192
+ renderSlot(_ctx.$slots, "default")
2193
+ ]),
2194
+ _: 3
2195
+ }, 16);
2196
+ };
2197
+ }
2198
+ });
2199
+
2200
+ const _sfc_main$2N = /* @__PURE__ */ defineComponent({
2201
+ __name: "CommandDialog",
2202
+ props: {
2203
+ open: { type: Boolean },
2204
+ defaultOpen: { type: Boolean },
2205
+ modal: { type: Boolean },
2206
+ title: { default: "Command Palette" },
2207
+ description: { default: "Search for a command to run..." }
2208
+ },
2209
+ emits: ["update:open"],
1322
2210
  setup(__props, { emit: __emit }) {
1323
2211
  const props = __props;
1324
2212
  const emits = __emit;
1325
- const delegatedProps = reactiveOmit(props, "class", "viewportClass");
1326
- const forwarded = useForwardPropsEmits(delegatedProps, emits);
2213
+ const forwarded = useForwardPropsEmits(props, emits);
1327
2214
  return (_ctx, _cache) => {
1328
- return openBlock(), createBlock(unref(ComboboxPortal), null, {
2215
+ return openBlock(), createBlock(unref(_sfc_main$2X), normalizeProps(guardReactiveProps(unref(forwarded))), {
1329
2216
  default: withCtx(() => [
1330
- createVNode(unref(ComboboxContent), mergeProps({ "data-slot": "combobox-list" }, unref(forwarded), {
1331
- class: unref(cn)(
1332
- "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 w-[200px] origin-(--reka-combobox-content-transform-origin) overflow-hidden rounded-md border shadow-md outline-none",
1333
- props.class
1334
- )
1335
- }), {
2217
+ createVNode(unref(_sfc_main$2U), { class: "overflow-hidden p-0" }, {
1336
2218
  default: withCtx(() => [
1337
- renderSlot(_ctx.$slots, "default")
2219
+ createVNode(unref(_sfc_main$2R), { class: "sr-only" }, {
2220
+ default: withCtx(() => [
2221
+ createVNode(unref(_sfc_main$2P), null, {
2222
+ default: withCtx(() => [
2223
+ createTextVNode(toDisplayString(_ctx.title), 1)
2224
+ ]),
2225
+ _: 1
2226
+ }),
2227
+ createVNode(unref(_sfc_main$2T), null, {
2228
+ default: withCtx(() => [
2229
+ createTextVNode(toDisplayString(_ctx.description), 1)
2230
+ ]),
2231
+ _: 1
2232
+ })
2233
+ ]),
2234
+ _: 1
2235
+ }),
2236
+ createVNode(_sfc_main$2Y, null, {
2237
+ default: withCtx(() => [
2238
+ renderSlot(_ctx.$slots, "default")
2239
+ ]),
2240
+ _: 3
2241
+ })
1338
2242
  ]),
1339
2243
  _: 3
1340
- }, 16, ["class"])
2244
+ })
1341
2245
  ]),
1342
2246
  _: 3
1343
- });
2247
+ }, 16);
1344
2248
  };
1345
2249
  }
1346
2250
  });
1347
2251
 
1348
- const _sfc_main$2A = /* @__PURE__ */ defineComponent({
1349
- __name: "ComboboxSeparator",
2252
+ const _sfc_main$2M = /* @__PURE__ */ defineComponent({
2253
+ __name: "CommandEmpty",
2254
+ props: {
2255
+ asChild: { type: Boolean },
2256
+ as: {},
2257
+ class: {}
2258
+ },
2259
+ setup(__props) {
2260
+ const props = __props;
2261
+ const delegatedProps = reactiveOmit(props, "class");
2262
+ const { filterState } = useCommand();
2263
+ const isRender = computed(() => !!filterState.search && filterState.filtered.count === 0);
2264
+ return (_ctx, _cache) => {
2265
+ return isRender.value ? (openBlock(), createBlock(unref(Primitive), mergeProps({
2266
+ key: 0,
2267
+ "data-slot": "command-empty"
2268
+ }, unref(delegatedProps), {
2269
+ class: unref(cn)("py-6 text-center text-sm", props.class)
2270
+ }), {
2271
+ default: withCtx(() => [
2272
+ renderSlot(_ctx.$slots, "default")
2273
+ ]),
2274
+ _: 3
2275
+ }, 16, ["class"])) : createCommentVNode("", true);
2276
+ };
2277
+ }
2278
+ });
2279
+
2280
+ const _sfc_main$2L = /* @__PURE__ */ defineComponent({
2281
+ __name: "CommandGroup",
2282
+ props: {
2283
+ asChild: { type: Boolean },
2284
+ as: {},
2285
+ class: {},
2286
+ heading: {}
2287
+ },
2288
+ setup(__props) {
2289
+ const props = __props;
2290
+ const delegatedProps = reactiveOmit(props, "class");
2291
+ const { allGroups, filterState } = useCommand();
2292
+ const id = useId();
2293
+ const isRender = computed(() => !filterState.search ? true : filterState.filtered.groups.has(id));
2294
+ provideCommandGroupContext({ id });
2295
+ onMounted(() => {
2296
+ if (!allGroups.value.has(id)) allGroups.value.set(id, /* @__PURE__ */ new Set());
2297
+ });
2298
+ onUnmounted(() => {
2299
+ allGroups.value.delete(id);
2300
+ });
2301
+ return (_ctx, _cache) => {
2302
+ return openBlock(), createBlock(unref(ListboxGroup), mergeProps(unref(delegatedProps), {
2303
+ id: unref(id),
2304
+ "data-slot": "command-group",
2305
+ class: unref(cn)("text-foreground overflow-hidden p-1", props.class),
2306
+ hidden: isRender.value ? void 0 : true
2307
+ }), {
2308
+ default: withCtx(() => [
2309
+ _ctx.heading ? (openBlock(), createBlock(unref(ListboxGroupLabel), {
2310
+ key: 0,
2311
+ class: "text-muted-foreground px-2 py-1.5 text-xs font-medium"
2312
+ }, {
2313
+ default: withCtx(() => [
2314
+ createTextVNode(toDisplayString(_ctx.heading), 1)
2315
+ ]),
2316
+ _: 1
2317
+ })) : createCommentVNode("", true),
2318
+ renderSlot(_ctx.$slots, "default")
2319
+ ]),
2320
+ _: 3
2321
+ }, 16, ["id", "class", "hidden"]);
2322
+ };
2323
+ }
2324
+ });
2325
+
2326
+ const _hoisted_1$e = {
2327
+ "data-slot": "command-input-wrapper",
2328
+ class: "flex h-12 items-center gap-2 border-b px-3"
2329
+ };
2330
+ const _sfc_main$2K = /* @__PURE__ */ defineComponent({
2331
+ ...{
2332
+ inheritAttrs: false
2333
+ },
2334
+ __name: "CommandInput",
2335
+ props: {
2336
+ modelValue: {},
2337
+ autoFocus: { type: Boolean },
2338
+ disabled: { type: Boolean },
2339
+ asChild: { type: Boolean },
2340
+ as: {},
2341
+ class: {}
2342
+ },
2343
+ setup(__props) {
2344
+ const props = __props;
2345
+ const delegatedProps = reactiveOmit(props, "class");
2346
+ const forwardedProps = useForwardProps(delegatedProps);
2347
+ const { filterState } = useCommand();
2348
+ return (_ctx, _cache) => {
2349
+ return openBlock(), createElementBlock("div", _hoisted_1$e, [
2350
+ createVNode(unref(Search), { class: "size-4 shrink-0 opacity-50" }),
2351
+ createVNode(unref(ListboxFilter), mergeProps({ ...unref(forwardedProps), ..._ctx.$attrs }, {
2352
+ modelValue: unref(filterState).search,
2353
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(filterState).search = $event),
2354
+ "data-slot": "command-input",
2355
+ "auto-focus": "",
2356
+ class: unref(cn)(
2357
+ "placeholder:text-muted-foreground flex h-12 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
2358
+ props.class
2359
+ )
2360
+ }), null, 16, ["modelValue", "class"])
2361
+ ]);
2362
+ };
2363
+ }
2364
+ });
2365
+
2366
+ const _sfc_main$2J = /* @__PURE__ */ defineComponent({
2367
+ __name: "CommandItem",
2368
+ props: {
2369
+ value: {},
2370
+ disabled: { type: Boolean },
2371
+ asChild: { type: Boolean },
2372
+ as: {},
2373
+ class: {}
2374
+ },
2375
+ emits: ["select"],
2376
+ setup(__props, { emit: __emit }) {
2377
+ const props = __props;
2378
+ const emits = __emit;
2379
+ const delegatedProps = reactiveOmit(props, "class");
2380
+ const forwarded = useForwardPropsEmits(delegatedProps, emits);
2381
+ const id = useId();
2382
+ const { filterState, allItems, allGroups } = useCommand();
2383
+ const groupContext = useCommandGroup();
2384
+ const isRender = computed(() => {
2385
+ if (!filterState.search) {
2386
+ return true;
2387
+ } else {
2388
+ const filteredCurrentItem = filterState.filtered.items.get(id);
2389
+ if (filteredCurrentItem === void 0) {
2390
+ return true;
2391
+ }
2392
+ return filteredCurrentItem > 0;
2393
+ }
2394
+ });
2395
+ const itemRef = ref();
2396
+ const currentElement = useCurrentElement(itemRef);
2397
+ onMounted(() => {
2398
+ if (!(currentElement.value instanceof HTMLElement)) return;
2399
+ allItems.value.set(id, currentElement.value.textContent ?? props.value?.toString() ?? "");
2400
+ const groupId = groupContext?.id;
2401
+ if (groupId) {
2402
+ if (!allGroups.value.has(groupId)) {
2403
+ allGroups.value.set(groupId, /* @__PURE__ */ new Set([id]));
2404
+ } else {
2405
+ allGroups.value.get(groupId)?.add(id);
2406
+ }
2407
+ }
2408
+ });
2409
+ onUnmounted(() => {
2410
+ allItems.value.delete(id);
2411
+ });
2412
+ return (_ctx, _cache) => {
2413
+ return isRender.value ? (openBlock(), createBlock(unref(ListboxItem), mergeProps({ key: 0 }, unref(forwarded), {
2414
+ id: unref(id),
2415
+ ref_key: "itemRef",
2416
+ ref: itemRef,
2417
+ "data-slot": "command-item",
2418
+ class: unref(cn)(
2419
+ `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-3 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`,
2420
+ props.class
2421
+ ),
2422
+ onSelect: _cache[0] || (_cache[0] = () => {
2423
+ unref(filterState).search = "";
2424
+ })
2425
+ }), {
2426
+ default: withCtx(() => [
2427
+ renderSlot(_ctx.$slots, "default")
2428
+ ]),
2429
+ _: 3
2430
+ }, 16, ["id", "class"])) : createCommentVNode("", true);
2431
+ };
2432
+ }
2433
+ });
2434
+
2435
+ const _hoisted_1$d = { role: "presentation" };
2436
+ const _sfc_main$2I = /* @__PURE__ */ defineComponent({
2437
+ __name: "CommandList",
2438
+ props: {
2439
+ asChild: { type: Boolean },
2440
+ as: {},
2441
+ class: {}
2442
+ },
2443
+ setup(__props) {
2444
+ const props = __props;
2445
+ const delegatedProps = reactiveOmit(props, "class");
2446
+ const forwarded = useForwardProps(delegatedProps);
2447
+ return (_ctx, _cache) => {
2448
+ return openBlock(), createBlock(unref(ListboxContent), mergeProps({ "data-slot": "command-list" }, unref(forwarded), {
2449
+ class: unref(cn)("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto", props.class)
2450
+ }), {
2451
+ default: withCtx(() => [
2452
+ createElementVNode("div", _hoisted_1$d, [
2453
+ renderSlot(_ctx.$slots, "default")
2454
+ ])
2455
+ ]),
2456
+ _: 3
2457
+ }, 16, ["class"]);
2458
+ };
2459
+ }
2460
+ });
2461
+
2462
+ const _sfc_main$2H = /* @__PURE__ */ defineComponent({
2463
+ __name: "CommandSeparator",
1350
2464
  props: {
2465
+ orientation: {},
2466
+ decorative: { type: Boolean },
1351
2467
  asChild: { type: Boolean },
1352
2468
  as: {},
1353
2469
  class: {}
1354
2470
  },
1355
2471
  setup(__props) {
1356
2472
  const props = __props;
1357
- const delegatedProps = computed(() => {
1358
- const { class: _, ...delegated } = props;
1359
- return delegated;
1360
- });
2473
+ const delegatedProps = reactiveOmit(props, "class");
1361
2474
  return (_ctx, _cache) => {
1362
- return openBlock(), createBlock(unref(ComboboxSeparator), mergeProps({ "data-slot": "combobox-separator" }, delegatedProps.value, {
2475
+ return openBlock(), createBlock(unref(Separator), mergeProps({ "data-slot": "command-separator" }, unref(delegatedProps), {
1363
2476
  class: unref(cn)("bg-border -mx-1 h-px", props.class)
1364
2477
  }), {
1365
2478
  default: withCtx(() => [
@@ -1371,35 +2484,28 @@ const _sfc_main$2A = /* @__PURE__ */ defineComponent({
1371
2484
  }
1372
2485
  });
1373
2486
 
1374
- const _sfc_main$2z = /* @__PURE__ */ defineComponent({
1375
- __name: "ComboboxViewport",
2487
+ const _sfc_main$2G = /* @__PURE__ */ defineComponent({
2488
+ __name: "CommandShortcut",
1376
2489
  props: {
1377
- nonce: {},
1378
- asChild: { type: Boolean },
1379
- as: {},
1380
2490
  class: {}
1381
2491
  },
1382
2492
  setup(__props) {
1383
2493
  const props = __props;
1384
- const delegatedProps = computed(() => {
1385
- const { class: _, ...delegated } = props;
1386
- return delegated;
1387
- });
1388
- const forwarded = useForwardProps(delegatedProps);
1389
2494
  return (_ctx, _cache) => {
1390
- return openBlock(), createBlock(unref(ComboboxViewport), mergeProps({ "data-slot": "combobox-viewport" }, unref(forwarded), {
1391
- class: unref(cn)("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto", props.class)
1392
- }), {
1393
- default: withCtx(() => [
1394
- renderSlot(_ctx.$slots, "default")
1395
- ]),
1396
- _: 3
1397
- }, 16, ["class"]);
2495
+ return openBlock(), createElementBlock("span", {
2496
+ "data-slot": "command-shortcut",
2497
+ class: normalizeClass(unref(cn)("text-muted-foreground ml-auto text-xs tracking-widest", props.class))
2498
+ }, [
2499
+ renderSlot(_ctx.$slots, "default")
2500
+ ], 2);
1398
2501
  };
1399
2502
  }
1400
2503
  });
1401
2504
 
1402
- const _sfc_main$2y = /* @__PURE__ */ defineComponent({
2505
+ const [useCommand, provideCommandContext] = createContext("Command");
2506
+ const [useCommandGroup, provideCommandGroupContext] = createContext("CommandGroup");
2507
+
2508
+ const _sfc_main$2F = /* @__PURE__ */ defineComponent({
1403
2509
  __name: "ContextMenu",
1404
2510
  props: {
1405
2511
  dir: {},
@@ -1421,8 +2527,8 @@ const _sfc_main$2y = /* @__PURE__ */ defineComponent({
1421
2527
  }
1422
2528
  });
1423
2529
 
1424
- const _hoisted_1$b = { class: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center" };
1425
- const _sfc_main$2x = /* @__PURE__ */ defineComponent({
2530
+ const _hoisted_1$c = { class: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center" };
2531
+ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
1426
2532
  __name: "ContextMenuCheckboxItem",
1427
2533
  props: {
1428
2534
  modelValue: { type: [Boolean, String] },
@@ -1449,7 +2555,7 @@ const _sfc_main$2x = /* @__PURE__ */ defineComponent({
1449
2555
  )
1450
2556
  }), {
1451
2557
  default: withCtx(() => [
1452
- createElementVNode("span", _hoisted_1$b, [
2558
+ createElementVNode("span", _hoisted_1$c, [
1453
2559
  createVNode(unref(ContextMenuItemIndicator), null, {
1454
2560
  default: withCtx(() => [
1455
2561
  createVNode(unref(Check), { class: "size-4" })
@@ -1465,7 +2571,7 @@ const _sfc_main$2x = /* @__PURE__ */ defineComponent({
1465
2571
  }
1466
2572
  });
1467
2573
 
1468
- const _sfc_main$2w = /* @__PURE__ */ defineComponent({
2574
+ const _sfc_main$2D = /* @__PURE__ */ defineComponent({
1469
2575
  __name: "ContextMenuContent",
1470
2576
  props: {
1471
2577
  forceMount: { type: Boolean },
@@ -1514,7 +2620,7 @@ const _sfc_main$2w = /* @__PURE__ */ defineComponent({
1514
2620
  }
1515
2621
  });
1516
2622
 
1517
- const _sfc_main$2v = /* @__PURE__ */ defineComponent({
2623
+ const _sfc_main$2C = /* @__PURE__ */ defineComponent({
1518
2624
  __name: "ContextMenuGroup",
1519
2625
  props: {
1520
2626
  asChild: { type: Boolean },
@@ -1533,7 +2639,7 @@ const _sfc_main$2v = /* @__PURE__ */ defineComponent({
1533
2639
  }
1534
2640
  });
1535
2641
 
1536
- const _sfc_main$2u = /* @__PURE__ */ defineComponent({
2642
+ const _sfc_main$2B = /* @__PURE__ */ defineComponent({
1537
2643
  __name: "ContextMenuItem",
1538
2644
  props: {
1539
2645
  disabled: { type: Boolean },
@@ -1573,7 +2679,7 @@ const _sfc_main$2u = /* @__PURE__ */ defineComponent({
1573
2679
  }
1574
2680
  });
1575
2681
 
1576
- const _sfc_main$2t = /* @__PURE__ */ defineComponent({
2682
+ const _sfc_main$2A = /* @__PURE__ */ defineComponent({
1577
2683
  __name: "ContextMenuLabel",
1578
2684
  props: {
1579
2685
  asChild: { type: Boolean },
@@ -1603,7 +2709,7 @@ const _sfc_main$2t = /* @__PURE__ */ defineComponent({
1603
2709
  }
1604
2710
  });
1605
2711
 
1606
- const _sfc_main$2s = /* @__PURE__ */ defineComponent({
2712
+ const _sfc_main$2z = /* @__PURE__ */ defineComponent({
1607
2713
  __name: "ContextMenuRadioGroup",
1608
2714
  props: {
1609
2715
  modelValue: {},
@@ -1626,8 +2732,8 @@ const _sfc_main$2s = /* @__PURE__ */ defineComponent({
1626
2732
  }
1627
2733
  });
1628
2734
 
1629
- const _hoisted_1$a = { class: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center" };
1630
- const _sfc_main$2r = /* @__PURE__ */ defineComponent({
2735
+ const _hoisted_1$b = { class: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center" };
2736
+ const _sfc_main$2y = /* @__PURE__ */ defineComponent({
1631
2737
  __name: "ContextMenuRadioItem",
1632
2738
  props: {
1633
2739
  value: {},
@@ -1654,7 +2760,7 @@ const _sfc_main$2r = /* @__PURE__ */ defineComponent({
1654
2760
  )
1655
2761
  }), {
1656
2762
  default: withCtx(() => [
1657
- createElementVNode("span", _hoisted_1$a, [
2763
+ createElementVNode("span", _hoisted_1$b, [
1658
2764
  createVNode(unref(ContextMenuItemIndicator), null, {
1659
2765
  default: withCtx(() => [
1660
2766
  createVNode(unref(Circle), { class: "size-2 fill-current" })
@@ -1670,7 +2776,7 @@ const _sfc_main$2r = /* @__PURE__ */ defineComponent({
1670
2776
  }
1671
2777
  });
1672
2778
 
1673
- const _sfc_main$2q = /* @__PURE__ */ defineComponent({
2779
+ const _sfc_main$2x = /* @__PURE__ */ defineComponent({
1674
2780
  __name: "ContextMenuSeparator",
1675
2781
  props: {
1676
2782
  asChild: { type: Boolean },
@@ -1691,7 +2797,7 @@ const _sfc_main$2q = /* @__PURE__ */ defineComponent({
1691
2797
  }
1692
2798
  });
1693
2799
 
1694
- const _sfc_main$2p = /* @__PURE__ */ defineComponent({
2800
+ const _sfc_main$2w = /* @__PURE__ */ defineComponent({
1695
2801
  __name: "ContextMenuShortcut",
1696
2802
  props: {
1697
2803
  class: {}
@@ -1709,7 +2815,7 @@ const _sfc_main$2p = /* @__PURE__ */ defineComponent({
1709
2815
  }
1710
2816
  });
1711
2817
 
1712
- const _sfc_main$2o = /* @__PURE__ */ defineComponent({
2818
+ const _sfc_main$2v = /* @__PURE__ */ defineComponent({
1713
2819
  __name: "ContextMenuSub",
1714
2820
  props: {
1715
2821
  defaultOpen: { type: Boolean },
@@ -1731,7 +2837,7 @@ const _sfc_main$2o = /* @__PURE__ */ defineComponent({
1731
2837
  }
1732
2838
  });
1733
2839
 
1734
- const _sfc_main$2n = /* @__PURE__ */ defineComponent({
2840
+ const _sfc_main$2u = /* @__PURE__ */ defineComponent({
1735
2841
  __name: "ContextMenuSubContent",
1736
2842
  props: {
1737
2843
  forceMount: { type: Boolean },
@@ -1778,7 +2884,7 @@ const _sfc_main$2n = /* @__PURE__ */ defineComponent({
1778
2884
  }
1779
2885
  });
1780
2886
 
1781
- const _sfc_main$2m = /* @__PURE__ */ defineComponent({
2887
+ const _sfc_main$2t = /* @__PURE__ */ defineComponent({
1782
2888
  __name: "ContextMenuSubTrigger",
1783
2889
  props: {
1784
2890
  disabled: { type: Boolean },
@@ -1815,7 +2921,7 @@ const _sfc_main$2m = /* @__PURE__ */ defineComponent({
1815
2921
  }
1816
2922
  });
1817
2923
 
1818
- const _sfc_main$2l = /* @__PURE__ */ defineComponent({
2924
+ const _sfc_main$2s = /* @__PURE__ */ defineComponent({
1819
2925
  __name: "ContextMenuTrigger",
1820
2926
  props: {
1821
2927
  disabled: { type: Boolean },
@@ -1836,20 +2942,34 @@ const _sfc_main$2l = /* @__PURE__ */ defineComponent({
1836
2942
  }
1837
2943
  });
1838
2944
 
1839
- const _sfc_main$2k = /* @__PURE__ */ defineComponent({
1840
- __name: "Dialog",
1841
- props: {
2945
+ const _sfc_main$2r = /* @__PURE__ */ defineComponent({
2946
+ __name: "Drawer",
2947
+ props: {
2948
+ activeSnapPoint: {},
2949
+ closeThreshold: {},
2950
+ shouldScaleBackground: { type: Boolean, default: true },
2951
+ setBackgroundColorOnScale: { type: Boolean },
2952
+ scrollLockTimeout: {},
2953
+ fixed: { type: Boolean },
2954
+ dismissible: { type: Boolean },
2955
+ modal: { type: Boolean },
1842
2956
  open: { type: Boolean },
1843
2957
  defaultOpen: { type: Boolean },
1844
- modal: { type: Boolean }
2958
+ nested: { type: Boolean },
2959
+ direction: {},
2960
+ noBodyStyles: { type: Boolean },
2961
+ handleOnly: { type: Boolean },
2962
+ preventScrollRestoration: { type: Boolean },
2963
+ snapPoints: {},
2964
+ fadeFromIndex: {}
1845
2965
  },
1846
- emits: ["update:open"],
2966
+ emits: ["drag", "release", "close", "update:open", "update:activeSnapPoint", "animationEnd"],
1847
2967
  setup(__props, { emit: __emit }) {
1848
2968
  const props = __props;
1849
2969
  const emits = __emit;
1850
2970
  const forwarded = useForwardPropsEmits(props, emits);
1851
2971
  return (_ctx, _cache) => {
1852
- return openBlock(), createBlock(unref(DialogRoot), mergeProps({ "data-slot": "dialog" }, unref(forwarded)), {
2972
+ return openBlock(), createBlock(unref(DrawerRoot), mergeProps({ "data-slot": "drawer" }, unref(forwarded)), {
1853
2973
  default: withCtx(() => [
1854
2974
  renderSlot(_ctx.$slots, "default")
1855
2975
  ]),
@@ -1859,8 +2979,8 @@ const _sfc_main$2k = /* @__PURE__ */ defineComponent({
1859
2979
  }
1860
2980
  });
1861
2981
 
1862
- const _sfc_main$2j = /* @__PURE__ */ defineComponent({
1863
- __name: "DialogClose",
2982
+ const _sfc_main$2q = /* @__PURE__ */ defineComponent({
2983
+ __name: "DrawerClose",
1864
2984
  props: {
1865
2985
  asChild: { type: Boolean },
1866
2986
  as: {}
@@ -1868,7 +2988,7 @@ const _sfc_main$2j = /* @__PURE__ */ defineComponent({
1868
2988
  setup(__props) {
1869
2989
  const props = __props;
1870
2990
  return (_ctx, _cache) => {
1871
- return openBlock(), createBlock(unref(DialogClose), mergeProps({ "data-slot": "dialog-close" }, props), {
2991
+ return openBlock(), createBlock(unref(DrawerClose), mergeProps({ "data-slot": "drawer-close" }, props), {
1872
2992
  default: withCtx(() => [
1873
2993
  renderSlot(_ctx.$slots, "default")
1874
2994
  ]),
@@ -1878,8 +2998,8 @@ const _sfc_main$2j = /* @__PURE__ */ defineComponent({
1878
2998
  }
1879
2999
  });
1880
3000
 
1881
- const _sfc_main$2i = /* @__PURE__ */ defineComponent({
1882
- __name: "DialogOverlay",
3001
+ const _sfc_main$2p = /* @__PURE__ */ defineComponent({
3002
+ __name: "DrawerOverlay",
1883
3003
  props: {
1884
3004
  forceMount: { type: Boolean },
1885
3005
  asChild: { type: Boolean },
@@ -1888,28 +3008,20 @@ const _sfc_main$2i = /* @__PURE__ */ defineComponent({
1888
3008
  },
1889
3009
  setup(__props) {
1890
3010
  const props = __props;
1891
- const delegatedProps = computed(() => {
1892
- const { class: _, ...delegated } = props;
1893
- return delegated;
1894
- });
3011
+ const delegatedProps = reactiveOmit(props, "class");
1895
3012
  return (_ctx, _cache) => {
1896
- return openBlock(), createBlock(unref(DialogOverlay), mergeProps({ "data-slot": "dialog-overlay" }, delegatedProps.value, {
3013
+ return openBlock(), createBlock(unref(DrawerOverlay), mergeProps({ "data-slot": "drawer-overlay" }, unref(delegatedProps), {
1897
3014
  class: unref(cn)(
1898
3015
  "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",
1899
3016
  props.class
1900
3017
  )
1901
- }), {
1902
- default: withCtx(() => [
1903
- renderSlot(_ctx.$slots, "default")
1904
- ]),
1905
- _: 3
1906
- }, 16, ["class"]);
3018
+ }), null, 16, ["class"]);
1907
3019
  };
1908
3020
  }
1909
3021
  });
1910
3022
 
1911
- const _sfc_main$2h = /* @__PURE__ */ defineComponent({
1912
- __name: "DialogContent",
3023
+ const _sfc_main$2o = /* @__PURE__ */ defineComponent({
3024
+ __name: "DrawerContent",
1913
3025
  props: {
1914
3026
  forceMount: { type: Boolean },
1915
3027
  disableOutsidePointerEvents: { type: Boolean },
@@ -1921,33 +3033,27 @@ const _sfc_main$2h = /* @__PURE__ */ defineComponent({
1921
3033
  setup(__props, { emit: __emit }) {
1922
3034
  const props = __props;
1923
3035
  const emits = __emit;
1924
- const delegatedProps = computed(() => {
1925
- const { class: _, ...delegated } = props;
1926
- return delegated;
1927
- });
1928
- const forwarded = useForwardPropsEmits(delegatedProps, emits);
3036
+ const forwarded = useForwardPropsEmits(props, emits);
1929
3037
  return (_ctx, _cache) => {
1930
- return openBlock(), createBlock(unref(DialogPortal), null, {
3038
+ return openBlock(), createBlock(unref(DrawerPortal), null, {
1931
3039
  default: withCtx(() => [
1932
- createVNode(_sfc_main$2i),
1933
- createVNode(unref(DialogContent), mergeProps({ "data-slot": "dialog-content" }, unref(forwarded), {
3040
+ createVNode(_sfc_main$2p),
3041
+ createVNode(unref(DrawerContent), mergeProps({ "data-slot": "drawer-content" }, unref(forwarded), {
1934
3042
  class: unref(cn)(
1935
- "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",
3043
+ `group/drawer-content bg-background fixed z-50 flex h-auto flex-col`,
3044
+ `data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg`,
3045
+ `data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg`,
3046
+ `data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:sm:max-w-sm`,
3047
+ `data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:sm:max-w-sm`,
1936
3048
  props.class
1937
3049
  )
1938
3050
  }), {
1939
3051
  default: withCtx(() => [
1940
- renderSlot(_ctx.$slots, "default"),
1941
- 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" }, {
1942
- default: withCtx(() => [
1943
- createVNode(unref(X)),
1944
- _cache[0] || (_cache[0] = createElementVNode("span", { class: "sr-only" }, "Close", -1))
1945
- ]),
1946
- _: 1,
1947
- __: [0]
1948
- })
3052
+ _cache[0] || (_cache[0] = createElementVNode("div", { class: "bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }, null, -1)),
3053
+ renderSlot(_ctx.$slots, "default")
1949
3054
  ]),
1950
- _: 3
3055
+ _: 3,
3056
+ __: [0]
1951
3057
  }, 16, ["class"])
1952
3058
  ]),
1953
3059
  _: 3
@@ -1956,8 +3062,8 @@ const _sfc_main$2h = /* @__PURE__ */ defineComponent({
1956
3062
  }
1957
3063
  });
1958
3064
 
1959
- const _sfc_main$2g = /* @__PURE__ */ defineComponent({
1960
- __name: "DialogDescription",
3065
+ const _sfc_main$2n = /* @__PURE__ */ defineComponent({
3066
+ __name: "DrawerDescription",
1961
3067
  props: {
1962
3068
  asChild: { type: Boolean },
1963
3069
  as: {},
@@ -1965,13 +3071,9 @@ const _sfc_main$2g = /* @__PURE__ */ defineComponent({
1965
3071
  },
1966
3072
  setup(__props) {
1967
3073
  const props = __props;
1968
- const delegatedProps = computed(() => {
1969
- const { class: _, ...delegated } = props;
1970
- return delegated;
1971
- });
1972
- const forwardedProps = useForwardProps(delegatedProps);
3074
+ const delegatedProps = reactiveOmit(props, "class");
1973
3075
  return (_ctx, _cache) => {
1974
- return openBlock(), createBlock(unref(DialogDescription), mergeProps({ "data-slot": "dialog-description" }, unref(forwardedProps), {
3076
+ return openBlock(), createBlock(unref(DrawerDescription), mergeProps({ "data-slot": "drawer-description" }, unref(delegatedProps), {
1975
3077
  class: unref(cn)("text-muted-foreground text-sm", props.class)
1976
3078
  }), {
1977
3079
  default: withCtx(() => [
@@ -1983,8 +3085,8 @@ const _sfc_main$2g = /* @__PURE__ */ defineComponent({
1983
3085
  }
1984
3086
  });
1985
3087
 
1986
- const _sfc_main$2f = /* @__PURE__ */ defineComponent({
1987
- __name: "DialogFooter",
3088
+ const _sfc_main$2m = /* @__PURE__ */ defineComponent({
3089
+ __name: "DrawerFooter",
1988
3090
  props: {
1989
3091
  class: {}
1990
3092
  },
@@ -1992,8 +3094,8 @@ const _sfc_main$2f = /* @__PURE__ */ defineComponent({
1992
3094
  const props = __props;
1993
3095
  return (_ctx, _cache) => {
1994
3096
  return openBlock(), createElementBlock("div", {
1995
- "data-slot": "dialog-footer",
1996
- class: normalizeClass(unref(cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", props.class))
3097
+ "data-slot": "drawer-footer",
3098
+ class: normalizeClass(unref(cn)("mt-auto flex flex-col gap-2 p-4", props.class))
1997
3099
  }, [
1998
3100
  renderSlot(_ctx.$slots, "default")
1999
3101
  ], 2);
@@ -2001,8 +3103,8 @@ const _sfc_main$2f = /* @__PURE__ */ defineComponent({
2001
3103
  }
2002
3104
  });
2003
3105
 
2004
- const _sfc_main$2e = /* @__PURE__ */ defineComponent({
2005
- __name: "DialogHeader",
3106
+ const _sfc_main$2l = /* @__PURE__ */ defineComponent({
3107
+ __name: "DrawerHeader",
2006
3108
  props: {
2007
3109
  class: {}
2008
3110
  },
@@ -2010,8 +3112,8 @@ const _sfc_main$2e = /* @__PURE__ */ defineComponent({
2010
3112
  const props = __props;
2011
3113
  return (_ctx, _cache) => {
2012
3114
  return openBlock(), createElementBlock("div", {
2013
- "data-slot": "dialog-header",
2014
- class: normalizeClass(unref(cn)("flex flex-col gap-2 text-center sm:text-left", props.class))
3115
+ "data-slot": "drawer-header",
3116
+ class: normalizeClass(unref(cn)("flex flex-col gap-1.5 p-4", props.class))
2015
3117
  }, [
2016
3118
  renderSlot(_ctx.$slots, "default")
2017
3119
  ], 2);
@@ -2019,68 +3121,8 @@ const _sfc_main$2e = /* @__PURE__ */ defineComponent({
2019
3121
  }
2020
3122
  });
2021
3123
 
2022
- const _sfc_main$2d = /* @__PURE__ */ defineComponent({
2023
- __name: "DialogScrollContent",
2024
- props: {
2025
- forceMount: { type: Boolean },
2026
- disableOutsidePointerEvents: { type: Boolean },
2027
- asChild: { type: Boolean },
2028
- as: {},
2029
- class: {}
2030
- },
2031
- emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
2032
- setup(__props, { emit: __emit }) {
2033
- const props = __props;
2034
- const emits = __emit;
2035
- const delegatedProps = computed(() => {
2036
- const { class: _, ...delegated } = props;
2037
- return delegated;
2038
- });
2039
- const forwarded = useForwardPropsEmits(delegatedProps, emits);
2040
- return (_ctx, _cache) => {
2041
- return openBlock(), createBlock(unref(DialogPortal), null, {
2042
- default: withCtx(() => [
2043
- createVNode(unref(DialogOverlay), { class: "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 grid place-items-center overflow-y-auto bg-black/80" }, {
2044
- default: withCtx(() => [
2045
- createVNode(unref(DialogContent), mergeProps({
2046
- class: unref(cn)(
2047
- "border-border bg-background relative z-50 my-8 grid w-full max-w-lg gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg md:w-full",
2048
- props.class
2049
- )
2050
- }, unref(forwarded), {
2051
- onPointerDownOutside: _cache[0] || (_cache[0] = (event) => {
2052
- const originalEvent = event.detail.originalEvent;
2053
- const target = originalEvent.target;
2054
- if (originalEvent.offsetX > target.clientWidth || originalEvent.offsetY > target.clientHeight) {
2055
- event.preventDefault();
2056
- }
2057
- })
2058
- }), {
2059
- default: withCtx(() => [
2060
- renderSlot(_ctx.$slots, "default"),
2061
- createVNode(unref(DialogClose), { class: "hover:bg-secondary absolute top-4 right-4 rounded-md p-0.5 transition-colors" }, {
2062
- default: withCtx(() => [
2063
- createVNode(unref(X), { class: "h-4 w-4" }),
2064
- _cache[1] || (_cache[1] = createElementVNode("span", { class: "sr-only" }, "Close", -1))
2065
- ]),
2066
- _: 1,
2067
- __: [1]
2068
- })
2069
- ]),
2070
- _: 3
2071
- }, 16, ["class"])
2072
- ]),
2073
- _: 3
2074
- })
2075
- ]),
2076
- _: 3
2077
- });
2078
- };
2079
- }
2080
- });
2081
-
2082
- const _sfc_main$2c = /* @__PURE__ */ defineComponent({
2083
- __name: "DialogTitle",
3124
+ const _sfc_main$2k = /* @__PURE__ */ defineComponent({
3125
+ __name: "DrawerTitle",
2084
3126
  props: {
2085
3127
  asChild: { type: Boolean },
2086
3128
  as: {},
@@ -2088,14 +3130,10 @@ const _sfc_main$2c = /* @__PURE__ */ defineComponent({
2088
3130
  },
2089
3131
  setup(__props) {
2090
3132
  const props = __props;
2091
- const delegatedProps = computed(() => {
2092
- const { class: _, ...delegated } = props;
2093
- return delegated;
2094
- });
2095
- const forwardedProps = useForwardProps(delegatedProps);
3133
+ const delegatedProps = reactiveOmit(props, "class");
2096
3134
  return (_ctx, _cache) => {
2097
- return openBlock(), createBlock(unref(DialogTitle), mergeProps({ "data-slot": "dialog-title" }, unref(forwardedProps), {
2098
- class: unref(cn)("text-lg leading-none font-semibold", props.class)
3135
+ return openBlock(), createBlock(unref(DrawerTitle), mergeProps({ "data-slot": "drawer-title" }, unref(delegatedProps), {
3136
+ class: unref(cn)("text-foreground font-semibold", props.class)
2099
3137
  }), {
2100
3138
  default: withCtx(() => [
2101
3139
  renderSlot(_ctx.$slots, "default")
@@ -2106,8 +3144,8 @@ const _sfc_main$2c = /* @__PURE__ */ defineComponent({
2106
3144
  }
2107
3145
  });
2108
3146
 
2109
- const _sfc_main$2b = /* @__PURE__ */ defineComponent({
2110
- __name: "DialogTrigger",
3147
+ const _sfc_main$2j = /* @__PURE__ */ defineComponent({
3148
+ __name: "DrawerTrigger",
2111
3149
  props: {
2112
3150
  asChild: { type: Boolean },
2113
3151
  as: {}
@@ -2115,7 +3153,7 @@ const _sfc_main$2b = /* @__PURE__ */ defineComponent({
2115
3153
  setup(__props) {
2116
3154
  const props = __props;
2117
3155
  return (_ctx, _cache) => {
2118
- return openBlock(), createBlock(unref(DialogTrigger), mergeProps({ "data-slot": "dialog-trigger" }, props), {
3156
+ return openBlock(), createBlock(unref(DrawerTrigger), mergeProps({ "data-slot": "drawer-trigger" }, props), {
2119
3157
  default: withCtx(() => [
2120
3158
  renderSlot(_ctx.$slots, "default")
2121
3159
  ]),
@@ -2125,7 +3163,7 @@ const _sfc_main$2b = /* @__PURE__ */ defineComponent({
2125
3163
  }
2126
3164
  });
2127
3165
 
2128
- const _sfc_main$2a = /* @__PURE__ */ defineComponent({
3166
+ const _sfc_main$2i = /* @__PURE__ */ defineComponent({
2129
3167
  __name: "DropdownMenu",
2130
3168
  props: {
2131
3169
  defaultOpen: { type: Boolean },
@@ -2149,8 +3187,8 @@ const _sfc_main$2a = /* @__PURE__ */ defineComponent({
2149
3187
  }
2150
3188
  });
2151
3189
 
2152
- const _hoisted_1$9 = { class: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center" };
2153
- const _sfc_main$29 = /* @__PURE__ */ defineComponent({
3190
+ const _hoisted_1$a = { class: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center" };
3191
+ const _sfc_main$2h = /* @__PURE__ */ defineComponent({
2154
3192
  __name: "DropdownMenuCheckboxItem",
2155
3193
  props: {
2156
3194
  modelValue: { type: [Boolean, String] },
@@ -2177,7 +3215,7 @@ const _sfc_main$29 = /* @__PURE__ */ defineComponent({
2177
3215
  )
2178
3216
  }), {
2179
3217
  default: withCtx(() => [
2180
- createElementVNode("span", _hoisted_1$9, [
3218
+ createElementVNode("span", _hoisted_1$a, [
2181
3219
  createVNode(unref(DropdownMenuItemIndicator), null, {
2182
3220
  default: withCtx(() => [
2183
3221
  createVNode(unref(Check), { class: "size-4" })
@@ -2193,7 +3231,7 @@ const _sfc_main$29 = /* @__PURE__ */ defineComponent({
2193
3231
  }
2194
3232
  });
2195
3233
 
2196
- const _sfc_main$28 = /* @__PURE__ */ defineComponent({
3234
+ const _sfc_main$2g = /* @__PURE__ */ defineComponent({
2197
3235
  __name: "DropdownMenuContent",
2198
3236
  props: {
2199
3237
  forceMount: { type: Boolean },
@@ -2247,7 +3285,7 @@ const _sfc_main$28 = /* @__PURE__ */ defineComponent({
2247
3285
  }
2248
3286
  });
2249
3287
 
2250
- const _sfc_main$27 = /* @__PURE__ */ defineComponent({
3288
+ const _sfc_main$2f = /* @__PURE__ */ defineComponent({
2251
3289
  __name: "DropdownMenuGroup",
2252
3290
  props: {
2253
3291
  asChild: { type: Boolean },
@@ -2266,7 +3304,7 @@ const _sfc_main$27 = /* @__PURE__ */ defineComponent({
2266
3304
  }
2267
3305
  });
2268
3306
 
2269
- const _sfc_main$26 = /* @__PURE__ */ defineComponent({
3307
+ const _sfc_main$2e = /* @__PURE__ */ defineComponent({
2270
3308
  __name: "DropdownMenuItem",
2271
3309
  props: {
2272
3310
  disabled: { type: Boolean },
@@ -2301,7 +3339,7 @@ const _sfc_main$26 = /* @__PURE__ */ defineComponent({
2301
3339
  }
2302
3340
  });
2303
3341
 
2304
- const _sfc_main$25 = /* @__PURE__ */ defineComponent({
3342
+ const _sfc_main$2d = /* @__PURE__ */ defineComponent({
2305
3343
  __name: "DropdownMenuLabel",
2306
3344
  props: {
2307
3345
  asChild: { type: Boolean },
@@ -2329,7 +3367,7 @@ const _sfc_main$25 = /* @__PURE__ */ defineComponent({
2329
3367
  }
2330
3368
  });
2331
3369
 
2332
- const _sfc_main$24 = /* @__PURE__ */ defineComponent({
3370
+ const _sfc_main$2c = /* @__PURE__ */ defineComponent({
2333
3371
  __name: "DropdownMenuRadioGroup",
2334
3372
  props: {
2335
3373
  modelValue: {},
@@ -2352,8 +3390,8 @@ const _sfc_main$24 = /* @__PURE__ */ defineComponent({
2352
3390
  }
2353
3391
  });
2354
3392
 
2355
- const _hoisted_1$8 = { class: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center" };
2356
- const _sfc_main$23 = /* @__PURE__ */ defineComponent({
3393
+ const _hoisted_1$9 = { class: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center" };
3394
+ const _sfc_main$2b = /* @__PURE__ */ defineComponent({
2357
3395
  __name: "DropdownMenuRadioItem",
2358
3396
  props: {
2359
3397
  value: {},
@@ -2380,7 +3418,7 @@ const _sfc_main$23 = /* @__PURE__ */ defineComponent({
2380
3418
  )
2381
3419
  }), {
2382
3420
  default: withCtx(() => [
2383
- createElementVNode("span", _hoisted_1$8, [
3421
+ createElementVNode("span", _hoisted_1$9, [
2384
3422
  createVNode(unref(DropdownMenuItemIndicator), null, {
2385
3423
  default: withCtx(() => [
2386
3424
  createVNode(unref(Circle), { class: "size-2 fill-current" })
@@ -2396,7 +3434,7 @@ const _sfc_main$23 = /* @__PURE__ */ defineComponent({
2396
3434
  }
2397
3435
  });
2398
3436
 
2399
- const _sfc_main$22 = /* @__PURE__ */ defineComponent({
3437
+ const _sfc_main$2a = /* @__PURE__ */ defineComponent({
2400
3438
  __name: "DropdownMenuSeparator",
2401
3439
  props: {
2402
3440
  asChild: { type: Boolean },
@@ -2417,7 +3455,7 @@ const _sfc_main$22 = /* @__PURE__ */ defineComponent({
2417
3455
  }
2418
3456
  });
2419
3457
 
2420
- const _sfc_main$21 = /* @__PURE__ */ defineComponent({
3458
+ const _sfc_main$29 = /* @__PURE__ */ defineComponent({
2421
3459
  __name: "DropdownMenuShortcut",
2422
3460
  props: {
2423
3461
  class: {}
@@ -2435,7 +3473,7 @@ const _sfc_main$21 = /* @__PURE__ */ defineComponent({
2435
3473
  }
2436
3474
  });
2437
3475
 
2438
- const _sfc_main$20 = /* @__PURE__ */ defineComponent({
3476
+ const _sfc_main$28 = /* @__PURE__ */ defineComponent({
2439
3477
  __name: "DropdownMenuSub",
2440
3478
  props: {
2441
3479
  defaultOpen: { type: Boolean },
@@ -2457,7 +3495,7 @@ const _sfc_main$20 = /* @__PURE__ */ defineComponent({
2457
3495
  }
2458
3496
  });
2459
3497
 
2460
- const _sfc_main$1$ = /* @__PURE__ */ defineComponent({
3498
+ const _sfc_main$27 = /* @__PURE__ */ defineComponent({
2461
3499
  __name: "DropdownMenuSubContent",
2462
3500
  props: {
2463
3501
  forceMount: { type: Boolean },
@@ -2504,7 +3542,7 @@ const _sfc_main$1$ = /* @__PURE__ */ defineComponent({
2504
3542
  }
2505
3543
  });
2506
3544
 
2507
- const _sfc_main$1_ = /* @__PURE__ */ defineComponent({
3545
+ const _sfc_main$26 = /* @__PURE__ */ defineComponent({
2508
3546
  __name: "DropdownMenuSubTrigger",
2509
3547
  props: {
2510
3548
  disabled: { type: Boolean },
@@ -2535,7 +3573,7 @@ const _sfc_main$1_ = /* @__PURE__ */ defineComponent({
2535
3573
  }
2536
3574
  });
2537
3575
 
2538
- const _sfc_main$1Z = /* @__PURE__ */ defineComponent({
3576
+ const _sfc_main$25 = /* @__PURE__ */ defineComponent({
2539
3577
  __name: "DropdownMenuTrigger",
2540
3578
  props: {
2541
3579
  disabled: { type: Boolean },
@@ -2556,7 +3594,7 @@ const _sfc_main$1Z = /* @__PURE__ */ defineComponent({
2556
3594
  }
2557
3595
  });
2558
3596
 
2559
- const _sfc_main$1Y = /* @__PURE__ */ defineComponent({
3597
+ const _sfc_main$24 = /* @__PURE__ */ defineComponent({
2560
3598
  __name: "HoverCard",
2561
3599
  props: {
2562
3600
  defaultOpen: { type: Boolean },
@@ -2580,7 +3618,7 @@ const _sfc_main$1Y = /* @__PURE__ */ defineComponent({
2580
3618
  }
2581
3619
  });
2582
3620
 
2583
- const _sfc_main$1X = /* @__PURE__ */ defineComponent({
3621
+ const _sfc_main$23 = /* @__PURE__ */ defineComponent({
2584
3622
  __name: "HoverCardContent",
2585
3623
  props: {
2586
3624
  forceMount: { type: Boolean },
@@ -2631,7 +3669,7 @@ const _sfc_main$1X = /* @__PURE__ */ defineComponent({
2631
3669
  }
2632
3670
  });
2633
3671
 
2634
- const _sfc_main$1W = /* @__PURE__ */ defineComponent({
3672
+ const _sfc_main$22 = /* @__PURE__ */ defineComponent({
2635
3673
  __name: "HoverCardTrigger",
2636
3674
  props: {
2637
3675
  reference: {},
@@ -2651,7 +3689,7 @@ const _sfc_main$1W = /* @__PURE__ */ defineComponent({
2651
3689
  }
2652
3690
  });
2653
3691
 
2654
- const _sfc_main$1V = /* @__PURE__ */ defineComponent({
3692
+ const _sfc_main$21 = /* @__PURE__ */ defineComponent({
2655
3693
  __name: "Input",
2656
3694
  props: {
2657
3695
  defaultValue: {},
@@ -2685,7 +3723,7 @@ const _sfc_main$1V = /* @__PURE__ */ defineComponent({
2685
3723
  }
2686
3724
  });
2687
3725
 
2688
- const _sfc_main$1U = /* @__PURE__ */ defineComponent({
3726
+ const _sfc_main$20 = /* @__PURE__ */ defineComponent({
2689
3727
  __name: "Input",
2690
3728
  props: {
2691
3729
  autocomplete: {},
@@ -2728,7 +3766,7 @@ const _sfc_main$1U = /* @__PURE__ */ defineComponent({
2728
3766
  }
2729
3767
  __expose({ inputEl, focus, blur, select });
2730
3768
  return (_ctx, _cache) => {
2731
- return openBlock(), createBlock(unref(_sfc_main$1V), {
3769
+ return openBlock(), createBlock(unref(_sfc_main$21), {
2732
3770
  ref: "inputComponent",
2733
3771
  modelValue: value.value,
2734
3772
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
@@ -2752,7 +3790,7 @@ const _sfc_main$1U = /* @__PURE__ */ defineComponent({
2752
3790
  }
2753
3791
  });
2754
3792
 
2755
- const _sfc_main$1T = /* @__PURE__ */ defineComponent({
3793
+ const _sfc_main$1$ = /* @__PURE__ */ defineComponent({
2756
3794
  __name: "NumberField",
2757
3795
  props: {
2758
3796
  defaultValue: {},
@@ -2795,7 +3833,7 @@ const _sfc_main$1T = /* @__PURE__ */ defineComponent({
2795
3833
  }
2796
3834
  });
2797
3835
 
2798
- const _sfc_main$1S = /* @__PURE__ */ defineComponent({
3836
+ const _sfc_main$1_ = /* @__PURE__ */ defineComponent({
2799
3837
  __name: "NumberFieldContent",
2800
3838
  props: {
2801
3839
  class: {}
@@ -2817,7 +3855,7 @@ const _sfc_main$1S = /* @__PURE__ */ defineComponent({
2817
3855
  }
2818
3856
  });
2819
3857
 
2820
- const _sfc_main$1R = /* @__PURE__ */ defineComponent({
3858
+ const _sfc_main$1Z = /* @__PURE__ */ defineComponent({
2821
3859
  __name: "NumberFieldDecrement",
2822
3860
  props: {
2823
3861
  disabled: { type: Boolean },
@@ -2850,7 +3888,7 @@ const _sfc_main$1R = /* @__PURE__ */ defineComponent({
2850
3888
  }
2851
3889
  });
2852
3890
 
2853
- const _sfc_main$1Q = /* @__PURE__ */ defineComponent({
3891
+ const _sfc_main$1Y = /* @__PURE__ */ defineComponent({
2854
3892
  __name: "NumberFieldIncrement",
2855
3893
  props: {
2856
3894
  disabled: { type: Boolean },
@@ -2883,7 +3921,7 @@ const _sfc_main$1Q = /* @__PURE__ */ defineComponent({
2883
3921
  }
2884
3922
  });
2885
3923
 
2886
- const _sfc_main$1P = /* @__PURE__ */ defineComponent({
3924
+ const _sfc_main$1X = /* @__PURE__ */ defineComponent({
2887
3925
  __name: "NumberFieldInput",
2888
3926
  props: {
2889
3927
  class: {}
@@ -2904,7 +3942,7 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
2904
3942
  }
2905
3943
  });
2906
3944
 
2907
- const _sfc_main$1O = /* @__PURE__ */ defineComponent({
3945
+ const _sfc_main$1W = /* @__PURE__ */ defineComponent({
2908
3946
  __name: "InputNumber",
2909
3947
  props: {
2910
3948
  class: {},
@@ -2931,7 +3969,7 @@ const _sfc_main$1O = /* @__PURE__ */ defineComponent({
2931
3969
  set: (it) => emit("update:modelValue", it ?? null)
2932
3970
  });
2933
3971
  return (_ctx, _cache) => {
2934
- return openBlock(), createBlock(unref(_sfc_main$1T), {
3972
+ return openBlock(), createBlock(unref(_sfc_main$1$), {
2935
3973
  modelValue: value.value,
2936
3974
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
2937
3975
  "default-value": _ctx.defaultValue,
@@ -2946,13 +3984,13 @@ const _sfc_main$1O = /* @__PURE__ */ defineComponent({
2946
3984
  class: normalizeClass(unref(cn)("w-full", props.class))
2947
3985
  }, {
2948
3986
  default: withCtx(() => [
2949
- createVNode(unref(_sfc_main$1S), null, {
3987
+ createVNode(unref(_sfc_main$1_), null, {
2950
3988
  default: withCtx(() => [
2951
- createVNode(unref(_sfc_main$1R), {
3989
+ createVNode(unref(_sfc_main$1Z), {
2952
3990
  disabled: _ctx.disabled || _ctx.disableDecrement
2953
3991
  }, null, 8, ["disabled"]),
2954
- createVNode(unref(_sfc_main$1P)),
2955
- createVNode(unref(_sfc_main$1Q), {
3992
+ createVNode(unref(_sfc_main$1X)),
3993
+ createVNode(unref(_sfc_main$1Y), {
2956
3994
  disabled: _ctx.disabled || _ctx.disableIncrement
2957
3995
  }, null, 8, ["disabled"])
2958
3996
  ]),
@@ -2965,7 +4003,7 @@ const _sfc_main$1O = /* @__PURE__ */ defineComponent({
2965
4003
  }
2966
4004
  });
2967
4005
 
2968
- const _sfc_main$1N = /* @__PURE__ */ defineComponent({
4006
+ const _sfc_main$1V = /* @__PURE__ */ defineComponent({
2969
4007
  __name: "InputText",
2970
4008
  props: /* @__PURE__ */ mergeModels({
2971
4009
  autocomplete: {},
@@ -3002,7 +4040,7 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
3002
4040
  }
3003
4041
  __expose({ inputEl, focus, blur, select });
3004
4042
  return (_ctx, _cache) => {
3005
- return openBlock(), createBlock(unref(_sfc_main$1U), {
4043
+ return openBlock(), createBlock(unref(_sfc_main$20), {
3006
4044
  ref: "inputComponent",
3007
4045
  modelValue: value.value,
3008
4046
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => value.value = $event),
@@ -3025,7 +4063,7 @@ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
3025
4063
  }
3026
4064
  });
3027
4065
 
3028
- const _sfc_main$1M = /* @__PURE__ */ defineComponent({
4066
+ const _sfc_main$1U = /* @__PURE__ */ defineComponent({
3029
4067
  __name: "Label",
3030
4068
  props: {
3031
4069
  for: {},
@@ -3055,8 +4093,8 @@ const _sfc_main$1M = /* @__PURE__ */ defineComponent({
3055
4093
  }
3056
4094
  });
3057
4095
 
3058
- const _hoisted_1$7 = { key: 0 };
3059
- const _sfc_main$1L = /* @__PURE__ */ defineComponent({
4096
+ const _hoisted_1$8 = { key: 0 };
4097
+ const _sfc_main$1T = /* @__PURE__ */ defineComponent({
3060
4098
  __name: "Link",
3061
4099
  props: {
3062
4100
  label: {},
@@ -3068,7 +4106,7 @@ const _sfc_main$1L = /* @__PURE__ */ defineComponent({
3068
4106
  to: { name: _ctx.to }
3069
4107
  }, {
3070
4108
  default: withCtx(() => [
3071
- _ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$7, toDisplayString(_ctx.label), 1)) : renderSlot(_ctx.$slots, "default", { key: 1 })
4109
+ _ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$8, toDisplayString(_ctx.label), 1)) : renderSlot(_ctx.$slots, "default", { key: 1 })
3072
4110
  ]),
3073
4111
  _: 3
3074
4112
  }, 8, ["to"]);
@@ -3076,80 +4114,299 @@ const _sfc_main$1L = /* @__PURE__ */ defineComponent({
3076
4114
  }
3077
4115
  });
3078
4116
 
3079
- const _sfc_main$1K = /* @__PURE__ */ defineComponent({
4117
+ const _sfc_main$1S = /* @__PURE__ */ defineComponent({
3080
4118
  __name: "Loading",
3081
4119
  props: {
3082
- class: {},
3083
- icon: {},
3084
- iconClass: {}
4120
+ class: {},
4121
+ icon: {},
4122
+ iconClass: {}
4123
+ },
4124
+ setup(__props) {
4125
+ const props = __props;
4126
+ return (_ctx, _cache) => {
4127
+ return openBlock(), createElementBlock("div", {
4128
+ class: normalizeClass(unref(cn)("flex size-full items-center justify-center", props.class))
4129
+ }, [
4130
+ (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon ?? unref(LoaderCircle)), {
4131
+ class: normalizeClass(unref(cn)("loading-icon size-6", _ctx.iconClass))
4132
+ }, null, 8, ["class"]))
4133
+ ], 2);
4134
+ };
4135
+ }
4136
+ });
4137
+
4138
+ const _export_sfc = (sfc, props) => {
4139
+ const target = sfc.__vccOpts || sfc;
4140
+ for (const [key, val] of props) {
4141
+ target[key] = val;
4142
+ }
4143
+ return target;
4144
+ };
4145
+
4146
+ const Loading = /* @__PURE__ */ _export_sfc(_sfc_main$1S, [["__scopeId", "data-v-bf69e6e9"]]);
4147
+
4148
+ const _sfc_main$1R = /* @__PURE__ */ defineComponent({
4149
+ __name: "Menubar",
4150
+ props: {
4151
+ modelValue: {},
4152
+ defaultValue: {},
4153
+ dir: {},
4154
+ loop: { type: Boolean },
4155
+ class: {}
4156
+ },
4157
+ emits: ["update:modelValue"],
4158
+ setup(__props, { emit: __emit }) {
4159
+ const props = __props;
4160
+ const emits = __emit;
4161
+ const delegatedProps = computed(() => {
4162
+ const { class: _, ...delegated } = props;
4163
+ return delegated;
4164
+ });
4165
+ const forwarded = useForwardPropsEmits(delegatedProps, emits);
4166
+ return (_ctx, _cache) => {
4167
+ return openBlock(), createBlock(unref(MenubarRoot), mergeProps({ "data-slot": "menubar" }, unref(forwarded), {
4168
+ class: unref(cn)("bg-background flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs", props.class)
4169
+ }), {
4170
+ default: withCtx(() => [
4171
+ renderSlot(_ctx.$slots, "default")
4172
+ ]),
4173
+ _: 3
4174
+ }, 16, ["class"]);
4175
+ };
4176
+ }
4177
+ });
4178
+
4179
+ const _hoisted_1$7 = { class: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center" };
4180
+ const _sfc_main$1Q = /* @__PURE__ */ defineComponent({
4181
+ __name: "MenubarCheckboxItem",
4182
+ props: {
4183
+ modelValue: { type: [Boolean, String] },
4184
+ disabled: { type: Boolean },
4185
+ textValue: {},
4186
+ asChild: { type: Boolean },
4187
+ as: {},
4188
+ class: {}
4189
+ },
4190
+ emits: ["select", "update:modelValue"],
4191
+ setup(__props, { emit: __emit }) {
4192
+ const props = __props;
4193
+ const emits = __emit;
4194
+ const delegatedProps = computed(() => {
4195
+ const { class: _, ...delegated } = props;
4196
+ return delegated;
4197
+ });
4198
+ const forwarded = useForwardPropsEmits(delegatedProps, emits);
4199
+ return (_ctx, _cache) => {
4200
+ return openBlock(), createBlock(unref(MenubarCheckboxItem), mergeProps({ "data-slot": "menubar-checkbox-item" }, unref(forwarded), {
4201
+ class: unref(cn)(
4202
+ `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`,
4203
+ props.class
4204
+ )
4205
+ }), {
4206
+ default: withCtx(() => [
4207
+ createElementVNode("span", _hoisted_1$7, [
4208
+ createVNode(unref(MenubarItemIndicator), null, {
4209
+ default: withCtx(() => [
4210
+ createVNode(unref(Check), { class: "size-4" })
4211
+ ]),
4212
+ _: 1
4213
+ })
4214
+ ]),
4215
+ renderSlot(_ctx.$slots, "default")
4216
+ ]),
4217
+ _: 3
4218
+ }, 16, ["class"]);
4219
+ };
4220
+ }
4221
+ });
4222
+
4223
+ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
4224
+ __name: "MenubarContent",
4225
+ props: {
4226
+ forceMount: { type: Boolean },
4227
+ loop: { type: Boolean },
4228
+ side: {},
4229
+ sideOffset: { default: 8 },
4230
+ align: { default: "start" },
4231
+ alignOffset: { default: -4 },
4232
+ avoidCollisions: { type: Boolean },
4233
+ collisionBoundary: {},
4234
+ collisionPadding: {},
4235
+ arrowPadding: {},
4236
+ sticky: {},
4237
+ hideWhenDetached: { type: Boolean },
4238
+ positionStrategy: {},
4239
+ updatePositionStrategy: {},
4240
+ disableUpdateOnLayoutShift: { type: Boolean },
4241
+ prioritizePosition: { type: Boolean },
4242
+ reference: {},
4243
+ asChild: { type: Boolean },
4244
+ as: {},
4245
+ class: {}
4246
+ },
4247
+ setup(__props) {
4248
+ const props = __props;
4249
+ const delegatedProps = computed(() => {
4250
+ const { class: _, ...delegated } = props;
4251
+ return delegated;
4252
+ });
4253
+ const forwardedProps = useForwardProps(delegatedProps);
4254
+ return (_ctx, _cache) => {
4255
+ return openBlock(), createBlock(unref(MenubarPortal), null, {
4256
+ default: withCtx(() => [
4257
+ createVNode(unref(MenubarContent), mergeProps({ "data-slot": "menubar-content" }, unref(forwardedProps), {
4258
+ class: unref(cn)(
4259
+ "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",
4260
+ props.class
4261
+ )
4262
+ }), {
4263
+ default: withCtx(() => [
4264
+ renderSlot(_ctx.$slots, "default")
4265
+ ]),
4266
+ _: 3
4267
+ }, 16, ["class"])
4268
+ ]),
4269
+ _: 3
4270
+ });
4271
+ };
4272
+ }
4273
+ });
4274
+
4275
+ const _sfc_main$1O = /* @__PURE__ */ defineComponent({
4276
+ __name: "MenubarGroup",
4277
+ props: {
4278
+ asChild: { type: Boolean },
4279
+ as: {}
4280
+ },
4281
+ setup(__props) {
4282
+ const props = __props;
4283
+ return (_ctx, _cache) => {
4284
+ return openBlock(), createBlock(unref(MenubarGroup), mergeProps({ "data-slot": "menubar-group" }, props), {
4285
+ default: withCtx(() => [
4286
+ renderSlot(_ctx.$slots, "default")
4287
+ ]),
4288
+ _: 3
4289
+ }, 16);
4290
+ };
4291
+ }
4292
+ });
4293
+
4294
+ const _sfc_main$1N = /* @__PURE__ */ defineComponent({
4295
+ __name: "MenubarItem",
4296
+ props: {
4297
+ disabled: { type: Boolean },
4298
+ textValue: {},
4299
+ asChild: { type: Boolean },
4300
+ as: {},
4301
+ class: {},
4302
+ inset: { type: Boolean },
4303
+ variant: {}
4304
+ },
4305
+ emits: ["select"],
4306
+ setup(__props, { emit: __emit }) {
4307
+ const props = __props;
4308
+ const emits = __emit;
4309
+ const delegatedProps = reactiveOmit(props, "class", "inset", "variant");
4310
+ const forwarded = useForwardPropsEmits(delegatedProps, emits);
4311
+ return (_ctx, _cache) => {
4312
+ return openBlock(), createBlock(unref(MenubarItem), mergeProps({
4313
+ "data-slot": "menubar-item",
4314
+ "data-inset": _ctx.inset ? "" : void 0,
4315
+ "data-variant": _ctx.variant
4316
+ }, unref(forwarded), {
4317
+ class: unref(cn)(
4318
+ `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`,
4319
+ props.class
4320
+ )
4321
+ }), {
4322
+ default: withCtx(() => [
4323
+ renderSlot(_ctx.$slots, "default")
4324
+ ]),
4325
+ _: 3
4326
+ }, 16, ["data-inset", "data-variant", "class"]);
4327
+ };
4328
+ }
4329
+ });
4330
+
4331
+ const _sfc_main$1M = /* @__PURE__ */ defineComponent({
4332
+ __name: "MenubarLabel",
4333
+ props: {
4334
+ asChild: { type: Boolean },
4335
+ as: {},
4336
+ class: {},
4337
+ inset: { type: Boolean }
4338
+ },
4339
+ setup(__props) {
4340
+ const props = __props;
4341
+ const delegatedProps = reactiveOmit(props, "class", "inset");
4342
+ return (_ctx, _cache) => {
4343
+ return openBlock(), createBlock(unref(MenubarLabel), mergeProps({
4344
+ "data-inset": _ctx.inset ? "" : void 0
4345
+ }, unref(delegatedProps), {
4346
+ class: unref(cn)("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", props.class)
4347
+ }), {
4348
+ default: withCtx(() => [
4349
+ renderSlot(_ctx.$slots, "default")
4350
+ ]),
4351
+ _: 3
4352
+ }, 16, ["data-inset", "class"]);
4353
+ };
4354
+ }
4355
+ });
4356
+
4357
+ const _sfc_main$1L = /* @__PURE__ */ defineComponent({
4358
+ __name: "MenubarMenu",
4359
+ props: {
4360
+ value: {}
3085
4361
  },
3086
4362
  setup(__props) {
3087
4363
  const props = __props;
3088
4364
  return (_ctx, _cache) => {
3089
- return openBlock(), createElementBlock("div", {
3090
- class: normalizeClass(unref(cn)("flex items-center justify-center", props.class))
3091
- }, [
3092
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon ?? unref(LoaderCircle)), {
3093
- class: normalizeClass(unref(cn)("loading-icon size-6", _ctx.iconClass))
3094
- }, null, 8, ["class"]))
3095
- ], 2);
4365
+ return openBlock(), createBlock(unref(MenubarMenu), mergeProps({ "data-slot": "menubar-menu" }, props), {
4366
+ default: withCtx(() => [
4367
+ renderSlot(_ctx.$slots, "default")
4368
+ ]),
4369
+ _: 3
4370
+ }, 16);
3096
4371
  };
3097
4372
  }
3098
4373
  });
3099
4374
 
3100
- const _export_sfc = (sfc, props) => {
3101
- const target = sfc.__vccOpts || sfc;
3102
- for (const [key, val] of props) {
3103
- target[key] = val;
3104
- }
3105
- return target;
3106
- };
3107
-
3108
- const Loading = /* @__PURE__ */ _export_sfc(_sfc_main$1K, [["__scopeId", "data-v-b457b93c"]]);
3109
-
3110
- const _sfc_main$1J = /* @__PURE__ */ defineComponent({
3111
- __name: "Menubar",
4375
+ const _sfc_main$1K = /* @__PURE__ */ defineComponent({
4376
+ __name: "MenubarRadioGroup",
3112
4377
  props: {
3113
4378
  modelValue: {},
3114
- defaultValue: {},
3115
- dir: {},
3116
- loop: { type: Boolean },
3117
- class: {}
4379
+ asChild: { type: Boolean },
4380
+ as: {}
3118
4381
  },
3119
4382
  emits: ["update:modelValue"],
3120
4383
  setup(__props, { emit: __emit }) {
3121
4384
  const props = __props;
3122
4385
  const emits = __emit;
3123
- const delegatedProps = computed(() => {
3124
- const { class: _, ...delegated } = props;
3125
- return delegated;
3126
- });
3127
- const forwarded = useForwardPropsEmits(delegatedProps, emits);
4386
+ const forwarded = useForwardPropsEmits(props, emits);
3128
4387
  return (_ctx, _cache) => {
3129
- return openBlock(), createBlock(unref(MenubarRoot), mergeProps({ "data-slot": "menubar" }, unref(forwarded), {
3130
- class: unref(cn)("bg-background flex h-9 items-center gap-1 rounded-md border p-1 shadow-xs", props.class)
3131
- }), {
4388
+ return openBlock(), createBlock(unref(MenubarRadioGroup), mergeProps({ "data-slot": "menubar-radio-group" }, unref(forwarded)), {
3132
4389
  default: withCtx(() => [
3133
4390
  renderSlot(_ctx.$slots, "default")
3134
4391
  ]),
3135
4392
  _: 3
3136
- }, 16, ["class"]);
4393
+ }, 16);
3137
4394
  };
3138
4395
  }
3139
4396
  });
3140
4397
 
3141
4398
  const _hoisted_1$6 = { class: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center" };
3142
- const _sfc_main$1I = /* @__PURE__ */ defineComponent({
3143
- __name: "MenubarCheckboxItem",
4399
+ const _sfc_main$1J = /* @__PURE__ */ defineComponent({
4400
+ __name: "MenubarRadioItem",
3144
4401
  props: {
3145
- modelValue: { type: [Boolean, String] },
4402
+ value: {},
3146
4403
  disabled: { type: Boolean },
3147
4404
  textValue: {},
3148
4405
  asChild: { type: Boolean },
3149
4406
  as: {},
3150
4407
  class: {}
3151
4408
  },
3152
- emits: ["select", "update:modelValue"],
4409
+ emits: ["select"],
3153
4410
  setup(__props, { emit: __emit }) {
3154
4411
  const props = __props;
3155
4412
  const emits = __emit;
@@ -3159,7 +4416,7 @@ const _sfc_main$1I = /* @__PURE__ */ defineComponent({
3159
4416
  });
3160
4417
  const forwarded = useForwardPropsEmits(delegatedProps, emits);
3161
4418
  return (_ctx, _cache) => {
3162
- return openBlock(), createBlock(unref(MenubarCheckboxItem), mergeProps({ "data-slot": "menubar-checkbox-item" }, unref(forwarded), {
4419
+ return openBlock(), createBlock(unref(MenubarRadioItem), mergeProps({ "data-slot": "menubar-radio-item" }, unref(forwarded), {
3163
4420
  class: unref(cn)(
3164
4421
  `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`,
3165
4422
  props.class
@@ -3169,7 +4426,7 @@ const _sfc_main$1I = /* @__PURE__ */ defineComponent({
3169
4426
  createElementVNode("span", _hoisted_1$6, [
3170
4427
  createVNode(unref(MenubarItemIndicator), null, {
3171
4428
  default: withCtx(() => [
3172
- createVNode(unref(Check), { class: "size-4" })
4429
+ createVNode(unref(Circle), { class: "size-2 fill-current" })
3173
4430
  ]),
3174
4431
  _: 1
3175
4432
  })
@@ -3182,15 +4439,76 @@ const _sfc_main$1I = /* @__PURE__ */ defineComponent({
3182
4439
  }
3183
4440
  });
3184
4441
 
4442
+ const _sfc_main$1I = /* @__PURE__ */ defineComponent({
4443
+ __name: "MenubarSeparator",
4444
+ props: {
4445
+ asChild: { type: Boolean },
4446
+ as: {},
4447
+ class: {}
4448
+ },
4449
+ setup(__props) {
4450
+ const props = __props;
4451
+ const delegatedProps = computed(() => {
4452
+ const { class: _, ...delegated } = props;
4453
+ return delegated;
4454
+ });
4455
+ const forwardedProps = useForwardProps(delegatedProps);
4456
+ return (_ctx, _cache) => {
4457
+ return openBlock(), createBlock(unref(MenubarSeparator), mergeProps({
4458
+ "data-slot": "menubar-separator",
4459
+ class: unref(cn)("bg-border -mx-1 my-1 h-px", props.class)
4460
+ }, unref(forwardedProps)), null, 16, ["class"]);
4461
+ };
4462
+ }
4463
+ });
4464
+
3185
4465
  const _sfc_main$1H = /* @__PURE__ */ defineComponent({
3186
- __name: "MenubarContent",
4466
+ __name: "MenubarShortcut",
4467
+ props: {
4468
+ class: {}
4469
+ },
4470
+ setup(__props) {
4471
+ const props = __props;
4472
+ return (_ctx, _cache) => {
4473
+ return openBlock(), createElementBlock("span", {
4474
+ "data-slot": "menubar-shortcut",
4475
+ class: normalizeClass(unref(cn)("text-muted-foreground ml-auto text-xs tracking-widest", props.class))
4476
+ }, [
4477
+ renderSlot(_ctx.$slots, "default")
4478
+ ], 2);
4479
+ };
4480
+ }
4481
+ });
4482
+
4483
+ const _sfc_main$1G = /* @__PURE__ */ defineComponent({
4484
+ __name: "MenubarSub",
4485
+ props: {
4486
+ defaultOpen: { type: Boolean },
4487
+ open: { type: Boolean }
4488
+ },
4489
+ emits: ["update:open"],
4490
+ setup(__props, { emit: __emit }) {
4491
+ const props = __props;
4492
+ const emits = __emit;
4493
+ const forwarded = useForwardPropsEmits(props, emits);
4494
+ return (_ctx, _cache) => {
4495
+ return openBlock(), createBlock(unref(MenubarSub), mergeProps({ "data-slot": "menubar-sub" }, unref(forwarded)), {
4496
+ default: withCtx(() => [
4497
+ renderSlot(_ctx.$slots, "default")
4498
+ ]),
4499
+ _: 3
4500
+ }, 16);
4501
+ };
4502
+ }
4503
+ });
4504
+
4505
+ const _sfc_main$1F = /* @__PURE__ */ defineComponent({
4506
+ __name: "MenubarSubContent",
3187
4507
  props: {
3188
4508
  forceMount: { type: Boolean },
3189
4509
  loop: { type: Boolean },
3190
- side: {},
3191
- sideOffset: { default: 8 },
3192
- align: { default: "start" },
3193
- alignOffset: { default: -4 },
4510
+ sideOffset: {},
4511
+ alignOffset: {},
3194
4512
  avoidCollisions: { type: Boolean },
3195
4513
  collisionBoundary: {},
3196
4514
  collisionPadding: {},
@@ -3206,19 +4524,21 @@ const _sfc_main$1H = /* @__PURE__ */ defineComponent({
3206
4524
  as: {},
3207
4525
  class: {}
3208
4526
  },
3209
- setup(__props) {
4527
+ emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "entryFocus", "openAutoFocus", "closeAutoFocus"],
4528
+ setup(__props, { emit: __emit }) {
3210
4529
  const props = __props;
4530
+ const emits = __emit;
3211
4531
  const delegatedProps = computed(() => {
3212
4532
  const { class: _, ...delegated } = props;
3213
4533
  return delegated;
3214
4534
  });
3215
- const forwardedProps = useForwardProps(delegatedProps);
4535
+ const forwarded = useForwardPropsEmits(delegatedProps, emits);
3216
4536
  return (_ctx, _cache) => {
3217
4537
  return openBlock(), createBlock(unref(MenubarPortal), null, {
3218
4538
  default: withCtx(() => [
3219
- createVNode(unref(MenubarContent), mergeProps({ "data-slot": "menubar-content" }, unref(forwardedProps), {
4539
+ createVNode(unref(MenubarSubContent), mergeProps({ "data-slot": "menubar-sub-content" }, unref(forwarded), {
3220
4540
  class: unref(cn)(
3221
- "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",
4541
+ "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",
3222
4542
  props.class
3223
4543
  )
3224
4544
  }), {
@@ -3234,165 +4554,166 @@ const _sfc_main$1H = /* @__PURE__ */ defineComponent({
3234
4554
  }
3235
4555
  });
3236
4556
 
3237
- const _sfc_main$1G = /* @__PURE__ */ defineComponent({
3238
- __name: "MenubarGroup",
3239
- props: {
3240
- asChild: { type: Boolean },
3241
- as: {}
3242
- },
3243
- setup(__props) {
3244
- const props = __props;
3245
- return (_ctx, _cache) => {
3246
- return openBlock(), createBlock(unref(MenubarGroup), mergeProps({ "data-slot": "menubar-group" }, props), {
3247
- default: withCtx(() => [
3248
- renderSlot(_ctx.$slots, "default")
3249
- ]),
3250
- _: 3
3251
- }, 16);
3252
- };
3253
- }
3254
- });
3255
-
3256
- const _sfc_main$1F = /* @__PURE__ */ defineComponent({
3257
- __name: "MenubarItem",
4557
+ const _sfc_main$1E = /* @__PURE__ */ defineComponent({
4558
+ __name: "MenubarSubTrigger",
3258
4559
  props: {
3259
4560
  disabled: { type: Boolean },
3260
4561
  textValue: {},
3261
4562
  asChild: { type: Boolean },
3262
4563
  as: {},
3263
4564
  class: {},
3264
- inset: { type: Boolean },
3265
- variant: {}
4565
+ inset: { type: Boolean }
3266
4566
  },
3267
- emits: ["select"],
3268
- setup(__props, { emit: __emit }) {
4567
+ setup(__props) {
3269
4568
  const props = __props;
3270
- const emits = __emit;
3271
- const delegatedProps = reactiveOmit(props, "class", "inset", "variant");
3272
- const forwarded = useForwardPropsEmits(delegatedProps, emits);
4569
+ const delegatedProps = reactiveOmit(props, "class", "inset");
4570
+ const forwardedProps = useForwardProps(delegatedProps);
3273
4571
  return (_ctx, _cache) => {
3274
- return openBlock(), createBlock(unref(MenubarItem), mergeProps({
3275
- "data-slot": "menubar-item",
3276
- "data-inset": _ctx.inset ? "" : void 0,
3277
- "data-variant": _ctx.variant
3278
- }, unref(forwarded), {
4572
+ return openBlock(), createBlock(unref(MenubarSubTrigger), mergeProps({
4573
+ "data-slot": "menubar-sub-trigger",
4574
+ "data-inset": _ctx.inset ? "" : void 0
4575
+ }, unref(forwardedProps), {
3279
4576
  class: unref(cn)(
3280
- `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`,
4577
+ "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",
3281
4578
  props.class
3282
4579
  )
3283
4580
  }), {
3284
4581
  default: withCtx(() => [
3285
- renderSlot(_ctx.$slots, "default")
4582
+ renderSlot(_ctx.$slots, "default"),
4583
+ createVNode(unref(ChevronRight), { class: "ml-auto size-4" })
3286
4584
  ]),
3287
4585
  _: 3
3288
- }, 16, ["data-inset", "data-variant", "class"]);
4586
+ }, 16, ["data-inset", "class"]);
3289
4587
  };
3290
4588
  }
3291
4589
  });
3292
4590
 
3293
- const _sfc_main$1E = /* @__PURE__ */ defineComponent({
3294
- __name: "MenubarLabel",
4591
+ const _sfc_main$1D = /* @__PURE__ */ defineComponent({
4592
+ __name: "MenubarTrigger",
3295
4593
  props: {
4594
+ disabled: { type: Boolean },
3296
4595
  asChild: { type: Boolean },
3297
4596
  as: {},
3298
- class: {},
3299
- inset: { type: Boolean }
4597
+ class: {}
3300
4598
  },
3301
4599
  setup(__props) {
3302
4600
  const props = __props;
3303
- const delegatedProps = reactiveOmit(props, "class", "inset");
4601
+ const delegatedProps = computed(() => {
4602
+ const { class: _, ...delegated } = props;
4603
+ return delegated;
4604
+ });
4605
+ const forwardedProps = useForwardProps(delegatedProps);
3304
4606
  return (_ctx, _cache) => {
3305
- return openBlock(), createBlock(unref(MenubarLabel), mergeProps({
3306
- "data-inset": _ctx.inset ? "" : void 0
3307
- }, unref(delegatedProps), {
3308
- class: unref(cn)("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", props.class)
4607
+ return openBlock(), createBlock(unref(MenubarTrigger), mergeProps({ "data-slot": "menubar-trigger" }, unref(forwardedProps), {
4608
+ class: unref(cn)(
4609
+ "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",
4610
+ props.class
4611
+ )
3309
4612
  }), {
3310
4613
  default: withCtx(() => [
3311
4614
  renderSlot(_ctx.$slots, "default")
3312
4615
  ]),
3313
4616
  _: 3
3314
- }, 16, ["data-inset", "class"]);
4617
+ }, 16, ["class"]);
3315
4618
  };
3316
4619
  }
3317
4620
  });
3318
4621
 
3319
- const _sfc_main$1D = /* @__PURE__ */ defineComponent({
3320
- __name: "MenubarMenu",
4622
+ const _hoisted_1$5 = { class: "absolute top-full left-0 isolate z-50 flex justify-center" };
4623
+ const _sfc_main$1C = /* @__PURE__ */ defineComponent({
4624
+ __name: "NavigationMenuViewport",
3321
4625
  props: {
3322
- value: {}
4626
+ forceMount: { type: Boolean },
4627
+ align: {},
4628
+ asChild: { type: Boolean },
4629
+ as: {},
4630
+ class: {}
3323
4631
  },
3324
4632
  setup(__props) {
3325
4633
  const props = __props;
4634
+ const delegatedProps = reactiveOmit(props, "class");
4635
+ const forwardedProps = useForwardProps(delegatedProps);
3326
4636
  return (_ctx, _cache) => {
3327
- return openBlock(), createBlock(unref(MenubarMenu), mergeProps({ "data-slot": "menubar-menu" }, props), {
3328
- default: withCtx(() => [
3329
- renderSlot(_ctx.$slots, "default")
3330
- ]),
3331
- _: 3
3332
- }, 16);
4637
+ return openBlock(), createElementBlock("div", _hoisted_1$5, [
4638
+ createVNode(unref(NavigationMenuViewport), mergeProps({ "data-slot": "navigation-menu-viewport" }, unref(forwardedProps), {
4639
+ class: unref(cn)(
4640
+ "origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--reka-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--reka-navigation-menu-viewport-width)]",
4641
+ props.class
4642
+ )
4643
+ }), null, 16, ["class"])
4644
+ ]);
3333
4645
  };
3334
4646
  }
3335
4647
  });
3336
4648
 
3337
- const _sfc_main$1C = /* @__PURE__ */ defineComponent({
3338
- __name: "MenubarRadioGroup",
4649
+ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
4650
+ __name: "NavigationMenu",
3339
4651
  props: {
3340
4652
  modelValue: {},
4653
+ defaultValue: {},
4654
+ dir: {},
4655
+ orientation: {},
4656
+ delayDuration: {},
4657
+ skipDelayDuration: {},
4658
+ disableClickTrigger: { type: Boolean },
4659
+ disableHoverTrigger: { type: Boolean },
4660
+ disablePointerLeaveClose: { type: Boolean },
4661
+ unmountOnHide: { type: Boolean },
3341
4662
  asChild: { type: Boolean },
3342
- as: {}
4663
+ as: {},
4664
+ class: {},
4665
+ viewport: { type: Boolean, default: true }
3343
4666
  },
3344
4667
  emits: ["update:modelValue"],
3345
4668
  setup(__props, { emit: __emit }) {
3346
4669
  const props = __props;
3347
4670
  const emits = __emit;
3348
- const forwarded = useForwardPropsEmits(props, emits);
4671
+ const delegatedProps = reactiveOmit(props, "class", "viewport");
4672
+ const forwarded = useForwardPropsEmits(delegatedProps, emits);
3349
4673
  return (_ctx, _cache) => {
3350
- return openBlock(), createBlock(unref(MenubarRadioGroup), mergeProps({ "data-slot": "menubar-radio-group" }, unref(forwarded)), {
4674
+ return openBlock(), createBlock(unref(NavigationMenuRoot), mergeProps({
4675
+ "data-slot": "navigation-menu",
4676
+ "data-viewport": _ctx.viewport
4677
+ }, unref(forwarded), {
4678
+ class: unref(cn)(
4679
+ "group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",
4680
+ props.class
4681
+ )
4682
+ }), {
3351
4683
  default: withCtx(() => [
3352
- renderSlot(_ctx.$slots, "default")
4684
+ renderSlot(_ctx.$slots, "default"),
4685
+ _ctx.viewport ? (openBlock(), createBlock(_sfc_main$1C, { key: 0 })) : createCommentVNode("", true)
3353
4686
  ]),
3354
4687
  _: 3
3355
- }, 16);
4688
+ }, 16, ["data-viewport", "class"]);
3356
4689
  };
3357
4690
  }
3358
4691
  });
3359
4692
 
3360
- const _hoisted_1$5 = { class: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center" };
3361
- const _sfc_main$1B = /* @__PURE__ */ defineComponent({
3362
- __name: "MenubarRadioItem",
4693
+ const _sfc_main$1A = /* @__PURE__ */ defineComponent({
4694
+ __name: "NavigationMenuContent",
3363
4695
  props: {
3364
- value: {},
3365
- disabled: { type: Boolean },
3366
- textValue: {},
4696
+ forceMount: { type: Boolean },
4697
+ disableOutsidePointerEvents: { type: Boolean },
3367
4698
  asChild: { type: Boolean },
3368
4699
  as: {},
3369
4700
  class: {}
3370
4701
  },
3371
- emits: ["select"],
4702
+ emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside"],
3372
4703
  setup(__props, { emit: __emit }) {
3373
4704
  const props = __props;
3374
4705
  const emits = __emit;
3375
- const delegatedProps = computed(() => {
3376
- const { class: _, ...delegated } = props;
3377
- return delegated;
3378
- });
4706
+ const delegatedProps = reactiveOmit(props, "class");
3379
4707
  const forwarded = useForwardPropsEmits(delegatedProps, emits);
3380
4708
  return (_ctx, _cache) => {
3381
- return openBlock(), createBlock(unref(MenubarRadioItem), mergeProps({ "data-slot": "menubar-radio-item" }, unref(forwarded), {
4709
+ return openBlock(), createBlock(unref(NavigationMenuContent), mergeProps({ "data-slot": "navigation-menu-content" }, unref(forwarded), {
3382
4710
  class: unref(cn)(
3383
- `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`,
4711
+ `data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full p-2 pr-2.5 md:absolute md:w-auto`,
4712
+ `group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-[state=open]:animate-in group-data-[viewport=false]/navigation-menu:data-[state=closed]:animate-out group-data-[viewport=false]/navigation-menu:data-[state=closed]:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-[state=open]:fade-in-0 group-data-[viewport=false]/navigation-menu:data-[state=closed]:fade-out-0 group-data-[viewport=false]/navigation-menu:top-full group-data-[viewport=false]/navigation-menu:mt-1.5 group-data-[viewport=false]/navigation-menu:overflow-hidden group-data-[viewport=false]/navigation-menu:rounded-md group-data-[viewport=false]/navigation-menu:border group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:duration-200 **:data-[slot=navigation-menu-link]:focus:ring-0 **:data-[slot=navigation-menu-link]:focus:outline-none`,
3384
4713
  props.class
3385
4714
  )
3386
4715
  }), {
3387
4716
  default: withCtx(() => [
3388
- createElementVNode("span", _hoisted_1$5, [
3389
- createVNode(unref(MenubarItemIndicator), null, {
3390
- default: withCtx(() => [
3391
- createVNode(unref(Circle), { class: "size-2 fill-current" })
3392
- ]),
3393
- _: 1
3394
- })
3395
- ]),
3396
4717
  renderSlot(_ctx.$slots, "default")
3397
4718
  ]),
3398
4719
  _: 3
@@ -3401,157 +4722,115 @@ const _sfc_main$1B = /* @__PURE__ */ defineComponent({
3401
4722
  }
3402
4723
  });
3403
4724
 
3404
- const _sfc_main$1A = /* @__PURE__ */ defineComponent({
3405
- __name: "MenubarSeparator",
4725
+ const _sfc_main$1z = /* @__PURE__ */ defineComponent({
4726
+ __name: "NavigationMenuIndicator",
3406
4727
  props: {
4728
+ forceMount: { type: Boolean },
3407
4729
  asChild: { type: Boolean },
3408
4730
  as: {},
3409
4731
  class: {}
3410
4732
  },
3411
4733
  setup(__props) {
3412
4734
  const props = __props;
3413
- const delegatedProps = computed(() => {
3414
- const { class: _, ...delegated } = props;
3415
- return delegated;
3416
- });
4735
+ const delegatedProps = reactiveOmit(props, "class");
3417
4736
  const forwardedProps = useForwardProps(delegatedProps);
3418
4737
  return (_ctx, _cache) => {
3419
- return openBlock(), createBlock(unref(MenubarSeparator), mergeProps({
3420
- "data-slot": "menubar-separator",
3421
- class: unref(cn)("bg-border -mx-1 my-1 h-px", props.class)
3422
- }, unref(forwardedProps)), null, 16, ["class"]);
4738
+ return openBlock(), createBlock(unref(NavigationMenuIndicator), mergeProps({ "data-slot": "navigation-menu-indicator" }, unref(forwardedProps), {
4739
+ class: unref(cn)(
4740
+ "data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden",
4741
+ props.class
4742
+ )
4743
+ }), {
4744
+ default: withCtx(() => _cache[0] || (_cache[0] = [
4745
+ createElementVNode("div", { class: "bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md" }, null, -1)
4746
+ ])),
4747
+ _: 1,
4748
+ __: [0]
4749
+ }, 16, ["class"]);
3423
4750
  };
3424
4751
  }
3425
4752
  });
3426
4753
 
3427
- const _sfc_main$1z = /* @__PURE__ */ defineComponent({
3428
- __name: "MenubarShortcut",
4754
+ const _sfc_main$1y = /* @__PURE__ */ defineComponent({
4755
+ __name: "NavigationMenuItem",
3429
4756
  props: {
4757
+ value: {},
4758
+ asChild: { type: Boolean },
4759
+ as: {},
3430
4760
  class: {}
3431
4761
  },
3432
4762
  setup(__props) {
3433
4763
  const props = __props;
4764
+ const delegatedProps = reactiveOmit(props, "class");
3434
4765
  return (_ctx, _cache) => {
3435
- return openBlock(), createElementBlock("span", {
3436
- "data-slot": "menubar-shortcut",
3437
- class: normalizeClass(unref(cn)("text-muted-foreground ml-auto text-xs tracking-widest", props.class))
3438
- }, [
3439
- renderSlot(_ctx.$slots, "default")
3440
- ], 2);
3441
- };
3442
- }
3443
- });
3444
-
3445
- const _sfc_main$1y = /* @__PURE__ */ defineComponent({
3446
- __name: "MenubarSub",
3447
- props: {
3448
- defaultOpen: { type: Boolean },
3449
- open: { type: Boolean }
3450
- },
3451
- emits: ["update:open"],
3452
- setup(__props, { emit: __emit }) {
3453
- const props = __props;
3454
- const emits = __emit;
3455
- const forwarded = useForwardPropsEmits(props, emits);
3456
- return (_ctx, _cache) => {
3457
- return openBlock(), createBlock(unref(MenubarSub), mergeProps({ "data-slot": "menubar-sub" }, unref(forwarded)), {
4766
+ return openBlock(), createBlock(unref(NavigationMenuItem), mergeProps({ "data-slot": "navigation-menu-item" }, unref(delegatedProps), {
4767
+ class: unref(cn)("relative", props.class)
4768
+ }), {
3458
4769
  default: withCtx(() => [
3459
4770
  renderSlot(_ctx.$slots, "default")
3460
4771
  ]),
3461
4772
  _: 3
3462
- }, 16);
4773
+ }, 16, ["class"]);
3463
4774
  };
3464
4775
  }
3465
4776
  });
3466
4777
 
3467
4778
  const _sfc_main$1x = /* @__PURE__ */ defineComponent({
3468
- __name: "MenubarSubContent",
4779
+ __name: "NavigationMenuLink",
3469
4780
  props: {
3470
- forceMount: { type: Boolean },
3471
- loop: { type: Boolean },
3472
- sideOffset: {},
3473
- alignOffset: {},
3474
- avoidCollisions: { type: Boolean },
3475
- collisionBoundary: {},
3476
- collisionPadding: {},
3477
- arrowPadding: {},
3478
- sticky: {},
3479
- hideWhenDetached: { type: Boolean },
3480
- positionStrategy: {},
3481
- updatePositionStrategy: {},
3482
- disableUpdateOnLayoutShift: { type: Boolean },
3483
- prioritizePosition: { type: Boolean },
3484
- reference: {},
4781
+ active: { type: Boolean },
3485
4782
  asChild: { type: Boolean },
3486
4783
  as: {},
3487
4784
  class: {}
3488
4785
  },
3489
- emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "entryFocus", "openAutoFocus", "closeAutoFocus"],
4786
+ emits: ["select"],
3490
4787
  setup(__props, { emit: __emit }) {
3491
4788
  const props = __props;
3492
4789
  const emits = __emit;
3493
- const delegatedProps = computed(() => {
3494
- const { class: _, ...delegated } = props;
3495
- return delegated;
3496
- });
4790
+ const delegatedProps = reactiveOmit(props, "class");
3497
4791
  const forwarded = useForwardPropsEmits(delegatedProps, emits);
3498
4792
  return (_ctx, _cache) => {
3499
- return openBlock(), createBlock(unref(MenubarPortal), null, {
4793
+ return openBlock(), createBlock(unref(NavigationMenuLink), mergeProps({ "data-slot": "navigation-menu-link" }, unref(forwarded), {
4794
+ class: unref(cn)(
4795
+ `'data-[active=true]:focus:bg-accent data-[active=true]:hover:bg-accent data-[active=true]:bg-accent/50 data-[active=true]:text-accent-foreground hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground ring-ring/10 dark:ring-ring/20 dark:outline-ring/40 outline-ring/50 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg:not([class*='size-'])]:size-4' flex flex-col gap-1 rounded-sm p-2 text-sm transition-[color,box-shadow] focus-visible:ring-4 focus-visible:outline-1`,
4796
+ props.class
4797
+ )
4798
+ }), {
3500
4799
  default: withCtx(() => [
3501
- createVNode(unref(MenubarSubContent), mergeProps({ "data-slot": "menubar-sub-content" }, unref(forwarded), {
3502
- class: unref(cn)(
3503
- "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",
3504
- props.class
3505
- )
3506
- }), {
3507
- default: withCtx(() => [
3508
- renderSlot(_ctx.$slots, "default")
3509
- ]),
3510
- _: 3
3511
- }, 16, ["class"])
4800
+ renderSlot(_ctx.$slots, "default")
3512
4801
  ]),
3513
4802
  _: 3
3514
- });
4803
+ }, 16, ["class"]);
3515
4804
  };
3516
4805
  }
3517
4806
  });
3518
4807
 
3519
4808
  const _sfc_main$1w = /* @__PURE__ */ defineComponent({
3520
- __name: "MenubarSubTrigger",
4809
+ __name: "NavigationMenuList",
3521
4810
  props: {
3522
- disabled: { type: Boolean },
3523
- textValue: {},
3524
4811
  asChild: { type: Boolean },
3525
4812
  as: {},
3526
- class: {},
3527
- inset: { type: Boolean }
4813
+ class: {}
3528
4814
  },
3529
4815
  setup(__props) {
3530
4816
  const props = __props;
3531
- const delegatedProps = reactiveOmit(props, "class", "inset");
4817
+ const delegatedProps = reactiveOmit(props, "class");
3532
4818
  const forwardedProps = useForwardProps(delegatedProps);
3533
4819
  return (_ctx, _cache) => {
3534
- return openBlock(), createBlock(unref(MenubarSubTrigger), mergeProps({
3535
- "data-slot": "menubar-sub-trigger",
3536
- "data-inset": _ctx.inset ? "" : void 0
3537
- }, unref(forwardedProps), {
3538
- class: unref(cn)(
3539
- "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",
3540
- props.class
3541
- )
4820
+ return openBlock(), createBlock(unref(NavigationMenuList), mergeProps({ "data-slot": "navigation-menu-list" }, unref(forwardedProps), {
4821
+ class: unref(cn)("group flex flex-1 list-none items-center justify-center gap-1", props.class)
3542
4822
  }), {
3543
4823
  default: withCtx(() => [
3544
- renderSlot(_ctx.$slots, "default"),
3545
- createVNode(unref(ChevronRight), { class: "ml-auto size-4" })
4824
+ renderSlot(_ctx.$slots, "default")
3546
4825
  ]),
3547
4826
  _: 3
3548
- }, 16, ["data-inset", "class"]);
4827
+ }, 16, ["class"]);
3549
4828
  };
3550
4829
  }
3551
4830
  });
3552
4831
 
3553
4832
  const _sfc_main$1v = /* @__PURE__ */ defineComponent({
3554
- __name: "MenubarTrigger",
4833
+ __name: "NavigationMenuTrigger",
3555
4834
  props: {
3556
4835
  disabled: { type: Boolean },
3557
4836
  asChild: { type: Boolean },
@@ -3560,20 +4839,18 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
3560
4839
  },
3561
4840
  setup(__props) {
3562
4841
  const props = __props;
3563
- const delegatedProps = computed(() => {
3564
- const { class: _, ...delegated } = props;
3565
- return delegated;
3566
- });
4842
+ const delegatedProps = reactiveOmit(props, "class");
3567
4843
  const forwardedProps = useForwardProps(delegatedProps);
3568
4844
  return (_ctx, _cache) => {
3569
- return openBlock(), createBlock(unref(MenubarTrigger), mergeProps({ "data-slot": "menubar-trigger" }, unref(forwardedProps), {
3570
- class: unref(cn)(
3571
- "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",
3572
- props.class
3573
- )
4845
+ return openBlock(), createBlock(unref(NavigationMenuTrigger), mergeProps({ "data-slot": "navigation-menu-trigger" }, unref(forwardedProps), {
4846
+ class: unref(cn)(unref(navigationMenuTriggerStyle)(), "group", props.class)
3574
4847
  }), {
3575
4848
  default: withCtx(() => [
3576
- renderSlot(_ctx.$slots, "default")
4849
+ renderSlot(_ctx.$slots, "default"),
4850
+ createVNode(unref(ChevronDown), {
4851
+ class: "relative top-[1px] ml-1 size-3 transition duration-300 group-data-[state=open]:rotate-180",
4852
+ "aria-hidden": "true"
4853
+ })
3577
4854
  ]),
3578
4855
  _: 3
3579
4856
  }, 16, ["class"]);
@@ -3581,6 +4858,10 @@ const _sfc_main$1v = /* @__PURE__ */ defineComponent({
3581
4858
  }
3582
4859
  });
3583
4860
 
4861
+ const navigationMenuTriggerStyle = cva(
4862
+ "group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=open]:hover:bg-accent data-[state=open]:text-accent-foreground data-[state=open]:focus:bg-accent data-[state=open]:bg-accent/50 focus-visible:ring-ring/50 outline-none transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1"
4863
+ );
4864
+
3584
4865
  const _sfc_main$1u = /* @__PURE__ */ defineComponent({
3585
4866
  __name: "Pagination",
3586
4867
  props: {
@@ -5106,6 +6387,28 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
5106
6387
  });
5107
6388
 
5108
6389
  const _sfc_main$K = /* @__PURE__ */ defineComponent({
6390
+ __name: "SidebarInput",
6391
+ props: {
6392
+ class: {}
6393
+ },
6394
+ setup(__props) {
6395
+ const props = __props;
6396
+ return (_ctx, _cache) => {
6397
+ return openBlock(), createBlock(unref(_sfc_main$21), {
6398
+ "data-slot": "sidebar-input",
6399
+ "data-sidebar": "input",
6400
+ class: normalizeClass(unref(cn)("bg-background h-8 w-full shadow-none", props.class))
6401
+ }, {
6402
+ default: withCtx(() => [
6403
+ renderSlot(_ctx.$slots, "default")
6404
+ ]),
6405
+ _: 3
6406
+ }, 8, ["class"]);
6407
+ };
6408
+ }
6409
+ });
6410
+
6411
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
5109
6412
  __name: "SidebarInset",
5110
6413
  props: {
5111
6414
  class: {}
@@ -5129,7 +6432,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
5129
6432
  }
5130
6433
  });
5131
6434
 
5132
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
6435
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
5133
6436
  __name: "SidebarMenu",
5134
6437
  props: {
5135
6438
  class: {}
@@ -5148,7 +6451,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
5148
6451
  }
5149
6452
  });
5150
6453
 
5151
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
6454
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
5152
6455
  __name: "SidebarMenuAction",
5153
6456
  props: {
5154
6457
  asChild: { type: Boolean },
@@ -5186,7 +6489,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
5186
6489
  }
5187
6490
  });
5188
6491
 
5189
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
6492
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
5190
6493
  __name: "SidebarMenuBadge",
5191
6494
  props: {
5192
6495
  class: {}
@@ -5215,7 +6518,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
5215
6518
  }
5216
6519
  });
5217
6520
 
5218
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
6521
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
5219
6522
  __name: "Tooltip",
5220
6523
  props: {
5221
6524
  defaultOpen: { type: Boolean },
@@ -5242,7 +6545,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
5242
6545
  }
5243
6546
  });
5244
6547
 
5245
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
6548
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
5246
6549
  ...{
5247
6550
  inheritAttrs: false
5248
6551
  },
@@ -5294,7 +6597,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
5294
6597
  }
5295
6598
  });
5296
6599
 
5297
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
6600
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
5298
6601
  __name: "TooltipProvider",
5299
6602
  props: {
5300
6603
  delayDuration: { default: 0 },
@@ -5317,7 +6620,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
5317
6620
  }
5318
6621
  });
5319
6622
 
5320
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
6623
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
5321
6624
  __name: "TooltipTrigger",
5322
6625
  props: {
5323
6626
  reference: {},
@@ -5337,7 +6640,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
5337
6640
  }
5338
6641
  });
5339
6642
 
5340
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
6643
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
5341
6644
  __name: "SidebarMenuButtonChild",
5342
6645
  props: {
5343
6646
  variant: { default: "default" },
@@ -5368,7 +6671,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
5368
6671
  }
5369
6672
  });
5370
6673
 
5371
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
6674
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
5372
6675
  ...{
5373
6676
  inheritAttrs: false
5374
6677
  },
@@ -5390,16 +6693,16 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
5390
6693
  return delegated;
5391
6694
  });
5392
6695
  return (_ctx, _cache) => {
5393
- return !_ctx.tooltip ? (openBlock(), createBlock(_sfc_main$C, normalizeProps(mergeProps({ key: 0 }, { ...delegatedProps.value, ..._ctx.$attrs })), {
6696
+ return !_ctx.tooltip ? (openBlock(), createBlock(_sfc_main$B, normalizeProps(mergeProps({ key: 0 }, { ...delegatedProps.value, ..._ctx.$attrs })), {
5394
6697
  default: withCtx(() => [
5395
6698
  renderSlot(_ctx.$slots, "default")
5396
6699
  ]),
5397
6700
  _: 3
5398
- }, 16)) : (openBlock(), createBlock(unref(_sfc_main$G), { key: 1 }, {
6701
+ }, 16)) : (openBlock(), createBlock(unref(_sfc_main$F), { key: 1 }, {
5399
6702
  default: withCtx(() => [
5400
- createVNode(unref(_sfc_main$D), { "as-child": "" }, {
6703
+ createVNode(unref(_sfc_main$C), { "as-child": "" }, {
5401
6704
  default: withCtx(() => [
5402
- createVNode(_sfc_main$C, normalizeProps(guardReactiveProps({ ...delegatedProps.value, ..._ctx.$attrs })), {
6705
+ createVNode(_sfc_main$B, normalizeProps(guardReactiveProps({ ...delegatedProps.value, ..._ctx.$attrs })), {
5403
6706
  default: withCtx(() => [
5404
6707
  renderSlot(_ctx.$slots, "default")
5405
6708
  ]),
@@ -5408,7 +6711,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
5408
6711
  ]),
5409
6712
  _: 3
5410
6713
  }),
5411
- createVNode(unref(_sfc_main$F), {
6714
+ createVNode(unref(_sfc_main$E), {
5412
6715
  side: "right",
5413
6716
  align: "center",
5414
6717
  hidden: unref(state) !== "collapsed" || unref(isMobile)
@@ -5427,7 +6730,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
5427
6730
  }
5428
6731
  });
5429
6732
 
5430
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
6733
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
5431
6734
  __name: "SidebarMenuItem",
5432
6735
  props: {
5433
6736
  class: {}
@@ -5446,7 +6749,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
5446
6749
  }
5447
6750
  });
5448
6751
 
5449
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
6752
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
5450
6753
  __name: "Skeleton",
5451
6754
  props: {
5452
6755
  class: {}
@@ -5462,7 +6765,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
5462
6765
  }
5463
6766
  });
5464
6767
 
5465
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
6768
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
5466
6769
  __name: "SidebarMenuSkeleton",
5467
6770
  props: {
5468
6771
  showIcon: { type: Boolean },
@@ -5479,12 +6782,12 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
5479
6782
  "data-sidebar": "menu-skeleton",
5480
6783
  class: normalizeClass(unref(cn)("flex h-8 items-center gap-2 rounded-md px-2", props.class))
5481
6784
  }, [
5482
- _ctx.showIcon ? (openBlock(), createBlock(unref(_sfc_main$z), {
6785
+ _ctx.showIcon ? (openBlock(), createBlock(unref(_sfc_main$y), {
5483
6786
  key: 0,
5484
6787
  class: "size-4 rounded-md",
5485
6788
  "data-sidebar": "menu-skeleton-icon"
5486
6789
  })) : createCommentVNode("", true),
5487
- createVNode(unref(_sfc_main$z), {
6790
+ createVNode(unref(_sfc_main$y), {
5488
6791
  class: "h-4 max-w-(--skeleton-width) flex-1",
5489
6792
  "data-sidebar": "menu-skeleton-text",
5490
6793
  style: normalizeStyle({ "--skeleton-width": width.value })
@@ -5494,7 +6797,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
5494
6797
  }
5495
6798
  });
5496
6799
 
5497
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
6800
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
5498
6801
  __name: "SidebarMenuSub",
5499
6802
  props: {
5500
6803
  class: {}
@@ -5519,7 +6822,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
5519
6822
  }
5520
6823
  });
5521
6824
 
5522
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
6825
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
5523
6826
  __name: "SidebarMenuSubButton",
5524
6827
  props: {
5525
6828
  asChild: { type: Boolean },
@@ -5558,7 +6861,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
5558
6861
  }
5559
6862
  });
5560
6863
 
5561
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
6864
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
5562
6865
  __name: "SidebarMenuSubItem",
5563
6866
  props: {
5564
6867
  class: {}
@@ -5577,7 +6880,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
5577
6880
  }
5578
6881
  });
5579
6882
 
5580
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
6883
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
5581
6884
  __name: "SidebarProvider",
5582
6885
  props: {
5583
6886
  defaultOpen: { type: Boolean, default: true },
@@ -5637,7 +6940,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
5637
6940
  }
5638
6941
  });
5639
6942
 
5640
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
6943
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
5641
6944
  __name: "SidebarRail",
5642
6945
  props: {
5643
6946
  class: {}
@@ -5672,7 +6975,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
5672
6975
  }
5673
6976
  });
5674
6977
 
5675
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
6978
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
5676
6979
  __name: "SidebarSeparator",
5677
6980
  props: {
5678
6981
  class: {}
@@ -5694,7 +6997,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
5694
6997
  }
5695
6998
  });
5696
6999
 
5697
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
7000
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
5698
7001
  __name: "SidebarTrigger",
5699
7002
  props: {
5700
7003
  class: {}
@@ -5703,7 +7006,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
5703
7006
  const props = __props;
5704
7007
  const { toggleSidebar } = useSidebar();
5705
7008
  return (_ctx, _cache) => {
5706
- return openBlock(), createBlock(unref(_sfc_main$37), {
7009
+ return openBlock(), createBlock(unref(_sfc_main$3J), {
5707
7010
  "data-sidebar": "trigger",
5708
7011
  "data-slot": "sidebar-trigger",
5709
7012
  variant: "ghost",
@@ -5743,77 +7046,6 @@ const sidebarMenuButtonVariants = cva(
5743
7046
  }
5744
7047
  );
5745
7048
 
5746
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
5747
- __name: "Sidebar",
5748
- props: /* @__PURE__ */ mergeModels({
5749
- collapsible: {},
5750
- defaultOpen: { type: Boolean },
5751
- side: {},
5752
- variant: {},
5753
- width: {},
5754
- widthMobile: {}
5755
- }, {
5756
- "open": { type: Boolean, ...{ required: false } },
5757
- "openModifiers": {}
5758
- }),
5759
- emits: ["update:open"],
5760
- setup(__props) {
5761
- const props = __props;
5762
- const open = useModel(__props, "open");
5763
- const sidebarStyle = computed(() => {
5764
- const style = {};
5765
- if (props.width) style["--sidebar-width"] = toPixel(props.width);
5766
- if (props.widthMobile) style["--sidebar-width-mobile"] = toPixel(props.widthMobile);
5767
- return style;
5768
- });
5769
- return (_ctx, _cache) => {
5770
- return openBlock(), createBlock(unref(_sfc_main$u), {
5771
- open: open.value,
5772
- "onUpdate:open": _cache[0] || (_cache[0] = ($event) => open.value = $event),
5773
- "default-open": _ctx.defaultOpen,
5774
- style: normalizeStyle(sidebarStyle.value)
5775
- }, {
5776
- default: withCtx(() => [
5777
- createVNode(unref(_sfc_main$S), {
5778
- collapsible: _ctx.collapsible,
5779
- side: _ctx.side,
5780
- variant: _ctx.variant
5781
- }, {
5782
- default: withCtx(() => [
5783
- _ctx.$slots.header ? (openBlock(), createBlock(unref(_sfc_main$L), { key: 0 }, {
5784
- default: withCtx(() => [
5785
- renderSlot(_ctx.$slots, "header")
5786
- ]),
5787
- _: 3
5788
- })) : createCommentVNode("", true),
5789
- _ctx.$slots.content ? (openBlock(), createBlock(unref(_sfc_main$R), { key: 1 }, {
5790
- default: withCtx(() => [
5791
- renderSlot(_ctx.$slots, "content")
5792
- ]),
5793
- _: 3
5794
- })) : createCommentVNode("", true),
5795
- _ctx.$slots.footer ? (openBlock(), createBlock(unref(_sfc_main$Q), { key: 2 }, {
5796
- default: withCtx(() => [
5797
- renderSlot(_ctx.$slots, "footer")
5798
- ]),
5799
- _: 3
5800
- })) : createCommentVNode("", true)
5801
- ]),
5802
- _: 3
5803
- }, 8, ["collapsible", "side", "variant"]),
5804
- _ctx.$slots.inset ? (openBlock(), createBlock(unref(_sfc_main$K), { key: 0 }, {
5805
- default: withCtx(() => [
5806
- renderSlot(_ctx.$slots, "inset")
5807
- ]),
5808
- _: 3
5809
- })) : renderSlot(_ctx.$slots, "default", { key: 1 })
5810
- ]),
5811
- _: 3
5812
- }, 8, ["open", "default-open", "style"]);
5813
- };
5814
- }
5815
- });
5816
-
5817
7049
  const _sfc_main$p = /* @__PURE__ */ defineComponent({
5818
7050
  __name: "Slider",
5819
7051
  props: {
@@ -6264,7 +7496,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
6264
7496
  return (_ctx, _cache) => {
6265
7497
  return openBlock(), createBlock(unref(_sfc_main$j), null, {
6266
7498
  default: withCtx(() => [
6267
- createVNode(unref(_sfc_main$1L), {
7499
+ createVNode(unref(_sfc_main$1T), {
6268
7500
  to: _ctx.to,
6269
7501
  label: _ctx.label,
6270
7502
  class: normalizeClass(unref(cn)("flex w-full", _ctx.linkClass))
@@ -6716,4 +7948,4 @@ const toggleVariants = cva(
6716
7948
  }
6717
7949
  );
6718
7950
 
6719
- export { _sfc_main$3f as Accordion, _sfc_main$3e as AccordionContent, _sfc_main$3d as AccordionItem, _sfc_main$3c as AccordionTrigger, _sfc_main$3b as Alert, _sfc_main$3a as AlertDescription, _sfc_main$38 as AlertDialog, _sfc_main$36 as AlertDialogAction, _sfc_main$35 as AlertDialogCancel, _sfc_main$34 as AlertDialogContent, _sfc_main$33 as AlertDialogDescription, _sfc_main$32 as AlertDialogFooter, _sfc_main$31 as AlertDialogHeader, _sfc_main$30 as AlertDialogTitle, _sfc_main$2$ as AlertDialogTrigger, _sfc_main$39 as AlertTitle, _sfc_main$2_ as Avatar, _sfc_main$2Z as AvatarFallback, _sfc_main$2Y as AvatarImage, _sfc_main$2X as Badge, _sfc_main$37 as Button, _sfc_main$2U as ButtonIcon, _sfc_main$2V as ButtonLink, _sfc_main$2L as Card, _sfc_main$2J as Checkbox, _sfc_main$2I as Combobox, _sfc_main$2H as ComboboxAnchor, _sfc_main$2G as ComboboxEmpty, _sfc_main$2F as ComboboxGroup, _sfc_main$2E as ComboboxInput, _sfc_main$2D as ComboboxItem, _sfc_main$2C as ComboboxItemIndicator, _sfc_main$2B as ComboboxList, _sfc_main$2A as ComboboxSeparator, _sfc_main$2z as ComboboxViewport, _sfc_main$2y as ContextMenu, _sfc_main$2x as ContextMenuCheckboxItem, _sfc_main$2w as ContextMenuContent, _sfc_main$2v as ContextMenuGroup, _sfc_main$2u as ContextMenuItem, _sfc_main$2t as ContextMenuLabel, _sfc_main$2s as ContextMenuRadioGroup, _sfc_main$2r as ContextMenuRadioItem, _sfc_main$2q as ContextMenuSeparator, _sfc_main$2p as ContextMenuShortcut, _sfc_main$2o as ContextMenuSub, _sfc_main$2n as ContextMenuSubContent, _sfc_main$2m as ContextMenuSubTrigger, _sfc_main$2l as ContextMenuTrigger, _sfc_main$2k as Dialog, _sfc_main$2j as DialogClose, _sfc_main$2h as DialogContent, _sfc_main$2g as DialogDescription, _sfc_main$2f as DialogFooter, _sfc_main$2e as DialogHeader, _sfc_main$2i as DialogOverlay, _sfc_main$2d as DialogScrollContent, _sfc_main$2c as DialogTitle, _sfc_main$2b as DialogTrigger, _sfc_main$2a as DropdownMenu, _sfc_main$29 as DropdownMenuCheckboxItem, _sfc_main$28 as DropdownMenuContent, _sfc_main$27 as DropdownMenuGroup, _sfc_main$26 as DropdownMenuItem, _sfc_main$25 as DropdownMenuLabel, _sfc_main$24 as DropdownMenuRadioGroup, _sfc_main$23 as DropdownMenuRadioItem, _sfc_main$22 as DropdownMenuSeparator, _sfc_main$21 as DropdownMenuShortcut, _sfc_main$20 as DropdownMenuSub, _sfc_main$1$ as DropdownMenuSubContent, _sfc_main$1_ as DropdownMenuSubTrigger, _sfc_main$1Z as DropdownMenuTrigger, _sfc_main$1Y as HoverCard, _sfc_main$1X as HoverCardContent, _sfc_main$1W as HoverCardTrigger, _sfc_main$1U as Input, _sfc_main$1O as InputNumber, _sfc_main$1N as InputText, _sfc_main$1M as Label, _sfc_main$1L as Link, Loading, _sfc_main$1J as Menubar, _sfc_main$1I as MenubarCheckboxItem, _sfc_main$1H as MenubarContent, _sfc_main$1G as MenubarGroup, _sfc_main$1F as MenubarItem, _sfc_main$1E as MenubarLabel, _sfc_main$1D as MenubarMenu, _sfc_main$1C as MenubarRadioGroup, _sfc_main$1B as MenubarRadioItem, _sfc_main$1A as MenubarSeparator, _sfc_main$1z as MenubarShortcut, _sfc_main$1y as MenubarSub, _sfc_main$1x as MenubarSubContent, _sfc_main$1w as MenubarSubTrigger, _sfc_main$1v as MenubarTrigger, _sfc_main$1u as Pagination, _sfc_main$1t as PaginationContent, _sfc_main$1s as PaginationEllipsis, _sfc_main$1r as PaginationFirst, _sfc_main$1q as PaginationItem, _sfc_main$1p as PaginationLast, _sfc_main$1o as PaginationNext, _sfc_main$1n as PaginationPrevious, _sfc_main$1m as Popover, _sfc_main$1l as PopoverAnchor, _sfc_main$1k as PopoverContent, _sfc_main$1j as PopoverTrigger, _sfc_main$1i as Progress, _sfc_main$1h as RadioGroup, _sfc_main$1g as RadioGroupItem, _sfc_main$1f as ResizableHandle, _sfc_main$1e as ResizablePanel, _sfc_main$1d as ResizablePanelGroup, _sfc_main$2S as ScrollArea, _sfc_main$11 as Select, _sfc_main$1a as SelectGroup, _sfc_main$19 as SelectItem, _sfc_main$18 as SelectItemText, _sfc_main$17 as SelectLabel, _sfc_main$16 as SelectScrollDownButton, _sfc_main$15 as SelectScrollUpButton, _sfc_main$14 as SelectSeparator, _sfc_main$10 as Separator, _sfc_main$$ as Sheet, _sfc_main$_ as SheetClose, _sfc_main$Y as SheetContent, _sfc_main$X as SheetDescription, _sfc_main$W as SheetFooter, _sfc_main$V as SheetHeader, _sfc_main$U as SheetTitle, _sfc_main$T as SheetTrigger, _sfc_main$q as Sidebar, _sfc_main$P as SidebarGroup, _sfc_main$O as SidebarGroupAction, _sfc_main$N as SidebarGroupContent, _sfc_main$M as SidebarGroupLabel, _sfc_main$J as SidebarMenu, _sfc_main$I as SidebarMenuAction, _sfc_main$H as SidebarMenuBadge, _sfc_main$B as SidebarMenuButton, _sfc_main$A as SidebarMenuItem, _sfc_main$y as SidebarMenuSkeleton, _sfc_main$x as SidebarMenuSub, _sfc_main$w as SidebarMenuSubButton, _sfc_main$v as SidebarMenuSubItem, _sfc_main$t as SidebarRail, _sfc_main$s as SidebarSeparator, _sfc_main$r as SidebarTrigger, _sfc_main$z as Skeleton, _sfc_main$p as Slider, _sfc_main$o as Sonner, _sfc_main$m as Switch, _sfc_main$d as Table, _sfc_main$j as TableCell, _sfc_main$h as TableEmpty, _sfc_main$f as TableHead, _sfc_main$c as TableLink, _sfc_main$i as TableRow, _sfc_main$b as Tabs, _sfc_main$a as TabsContent, _sfc_main$9 as TabsList, _sfc_main$8 as TabsTrigger, _sfc_main$7 as TagsInput, _sfc_main$6 as TagsInputInput, _sfc_main$5 as TagsInputItem, _sfc_main$4 as TagsInputItemDelete, _sfc_main$3 as TagsInputItemText, _sfc_main$11 as TbSelect, _sfc_main$q as TbSidebar, _sfc_main$d as TbTable, _sfc_main$c as TbTableLink, _sfc_main$1 as Textarea, _sfc_main as Toggle, _sfc_main$G as Tooltip, _sfc_main$F as TooltipContent, _sfc_main$E as TooltipProvider, _sfc_main$D as TooltipTrigger, cn, toBooleanCheckboxValue, useSidebar };
7951
+ export { _sfc_main$3R as Accordion, _sfc_main$3Q as AccordionContent, _sfc_main$3P as AccordionItem, _sfc_main$3O as AccordionTrigger, _sfc_main$3N as Alert, _sfc_main$3M as AlertDescription, _sfc_main$3K as AlertDialog, _sfc_main$3I as AlertDialogAction, _sfc_main$3H as AlertDialogCancel, _sfc_main$3G as AlertDialogContent, _sfc_main$3F as AlertDialogDescription, _sfc_main$3E as AlertDialogFooter, _sfc_main$3D as AlertDialogHeader, _sfc_main$3C as AlertDialogTitle, _sfc_main$3B as AlertDialogTrigger, _sfc_main$3L as AlertTitle, _sfc_main$3A as Avatar, _sfc_main$3z as AvatarFallback, _sfc_main$3y as AvatarImage, _sfc_main$3x as Badge, _sfc_main$3J as Button, _sfc_main$3u as ButtonIcon, _sfc_main$3v as ButtonLink, _sfc_main$3k as Calendar, _sfc_main$3j as CalendarCell, _sfc_main$3i as CalendarCellTrigger, _sfc_main$3h as CalendarGrid, _sfc_main$3g as CalendarGridBody, _sfc_main$3f as CalendarGridHead, _sfc_main$3e as CalendarGridRow, _sfc_main$3d as CalendarHeadCell, _sfc_main$3c as CalendarHeader, _sfc_main$3b as CalendarHeading, _sfc_main$3a as CalendarNextButton, _sfc_main$39 as CalendarPrevButton, _sfc_main$3l as Card, _sfc_main$37 as Checkbox, _sfc_main$36 as Combobox, _sfc_main$35 as ComboboxAnchor, _sfc_main$34 as ComboboxEmpty, _sfc_main$33 as ComboboxGroup, _sfc_main$32 as ComboboxInput, _sfc_main$31 as ComboboxItem, _sfc_main$30 as ComboboxItemIndicator, _sfc_main$2$ as ComboboxList, _sfc_main$2_ as ComboboxSeparator, _sfc_main$2Z as ComboboxViewport, _sfc_main$2Y as Command, _sfc_main$2N as CommandDialog, _sfc_main$2M as CommandEmpty, _sfc_main$2L as CommandGroup, _sfc_main$2K as CommandInput, _sfc_main$2J as CommandItem, _sfc_main$2I as CommandList, _sfc_main$2H as CommandSeparator, _sfc_main$2G as CommandShortcut, _sfc_main$2F as ContextMenu, _sfc_main$2E as ContextMenuCheckboxItem, _sfc_main$2D as ContextMenuContent, _sfc_main$2C as ContextMenuGroup, _sfc_main$2B as ContextMenuItem, _sfc_main$2A as ContextMenuLabel, _sfc_main$2z as ContextMenuRadioGroup, _sfc_main$2y as ContextMenuRadioItem, _sfc_main$2x as ContextMenuSeparator, _sfc_main$2w as ContextMenuShortcut, _sfc_main$2v as ContextMenuSub, _sfc_main$2u as ContextMenuSubContent, _sfc_main$2t as ContextMenuSubTrigger, _sfc_main$2s as ContextMenuTrigger, _sfc_main$2X as Dialog, _sfc_main$2W as DialogClose, _sfc_main$2U as DialogContent, _sfc_main$2T as DialogDescription, _sfc_main$2S as DialogFooter, _sfc_main$2R as DialogHeader, _sfc_main$2V as DialogOverlay, _sfc_main$2Q as DialogScrollContent, _sfc_main$2P as DialogTitle, _sfc_main$2O as DialogTrigger, _sfc_main$2r as Drawer, _sfc_main$2q as DrawerClose, _sfc_main$2o as DrawerContent, _sfc_main$2n as DrawerDescription, _sfc_main$2m as DrawerFooter, _sfc_main$2l as DrawerHeader, _sfc_main$2p as DrawerOverlay, _sfc_main$2k as DrawerTitle, _sfc_main$2j as DrawerTrigger, _sfc_main$2i as DropdownMenu, _sfc_main$2h as DropdownMenuCheckboxItem, _sfc_main$2g as DropdownMenuContent, _sfc_main$2f as DropdownMenuGroup, _sfc_main$2e as DropdownMenuItem, _sfc_main$2d as DropdownMenuLabel, _sfc_main$2c as DropdownMenuRadioGroup, _sfc_main$2b as DropdownMenuRadioItem, _sfc_main$2a as DropdownMenuSeparator, _sfc_main$29 as DropdownMenuShortcut, _sfc_main$28 as DropdownMenuSub, _sfc_main$27 as DropdownMenuSubContent, _sfc_main$26 as DropdownMenuSubTrigger, _sfc_main$25 as DropdownMenuTrigger, _sfc_main$24 as HoverCard, _sfc_main$23 as HoverCardContent, _sfc_main$22 as HoverCardTrigger, _sfc_main$20 as Input, _sfc_main$1W as InputNumber, _sfc_main$1V as InputText, _sfc_main$1U as Label, _sfc_main$1T as Link, Loading, _sfc_main$1R as Menubar, _sfc_main$1Q as MenubarCheckboxItem, _sfc_main$1P as MenubarContent, _sfc_main$1O as MenubarGroup, _sfc_main$1N as MenubarItem, _sfc_main$1M as MenubarLabel, _sfc_main$1L as MenubarMenu, _sfc_main$1K as MenubarRadioGroup, _sfc_main$1J as MenubarRadioItem, _sfc_main$1I as MenubarSeparator, _sfc_main$1H as MenubarShortcut, _sfc_main$1G as MenubarSub, _sfc_main$1F as MenubarSubContent, _sfc_main$1E as MenubarSubTrigger, _sfc_main$1D as MenubarTrigger, _sfc_main$1B as NavigationMenu, _sfc_main$1A as NavigationMenuContent, _sfc_main$1z as NavigationMenuIndicator, _sfc_main$1y as NavigationMenuItem, _sfc_main$1x as NavigationMenuLink, _sfc_main$1w as NavigationMenuList, _sfc_main$1v as NavigationMenuTrigger, _sfc_main$1C as NavigationMenuViewport, _sfc_main$1u as Pagination, _sfc_main$1t as PaginationContent, _sfc_main$1s as PaginationEllipsis, _sfc_main$1r as PaginationFirst, _sfc_main$1q as PaginationItem, _sfc_main$1p as PaginationLast, _sfc_main$1o as PaginationNext, _sfc_main$1n as PaginationPrevious, _sfc_main$1m as Popover, _sfc_main$1l as PopoverAnchor, _sfc_main$1k as PopoverContent, _sfc_main$1j as PopoverTrigger, _sfc_main$1i as Progress, _sfc_main$1h as RadioGroup, _sfc_main$1g as RadioGroupItem, _sfc_main$1f as ResizableHandle, _sfc_main$1e as ResizablePanel, _sfc_main$1d as ResizablePanelGroup, _sfc_main$3s as ScrollArea, _sfc_main$11 as Select, _sfc_main$1a as SelectGroup, _sfc_main$19 as SelectItem, _sfc_main$18 as SelectItemText, _sfc_main$17 as SelectLabel, _sfc_main$16 as SelectScrollDownButton, _sfc_main$15 as SelectScrollUpButton, _sfc_main$14 as SelectSeparator, _sfc_main$10 as Separator, _sfc_main$$ as Sheet, _sfc_main$_ as SheetClose, _sfc_main$Y as SheetContent, _sfc_main$X as SheetDescription, _sfc_main$W as SheetFooter, _sfc_main$V as SheetHeader, _sfc_main$U as SheetTitle, _sfc_main$T as SheetTrigger, _sfc_main$S as Sidebar, _sfc_main$R as SidebarContent, _sfc_main$Q as SidebarFooter, _sfc_main$P as SidebarGroup, _sfc_main$O as SidebarGroupAction, _sfc_main$N as SidebarGroupContent, _sfc_main$M as SidebarGroupLabel, _sfc_main$L as SidebarHeader, _sfc_main$K as SidebarInput, _sfc_main$J as SidebarInset, _sfc_main$I as SidebarMenu, _sfc_main$H as SidebarMenuAction, _sfc_main$G as SidebarMenuBadge, _sfc_main$A as SidebarMenuButton, _sfc_main$z as SidebarMenuItem, _sfc_main$x as SidebarMenuSkeleton, _sfc_main$w as SidebarMenuSub, _sfc_main$v as SidebarMenuSubButton, _sfc_main$u as SidebarMenuSubItem, _sfc_main$t as SidebarProvider, _sfc_main$s as SidebarRail, _sfc_main$r as SidebarSeparator, _sfc_main$q as SidebarTrigger, _sfc_main$y as Skeleton, _sfc_main$p as Slider, _sfc_main$o as Sonner, _sfc_main$m as Switch, _sfc_main$d as Table, _sfc_main$l as TableBody, _sfc_main$k as TableCaption, _sfc_main$j as TableCell, _sfc_main$h as TableEmpty, _sfc_main$g as TableFooter, _sfc_main$f as TableHead, _sfc_main$e as TableHeader, _sfc_main$c as TableLink, _sfc_main$i as TableRow, _sfc_main$b as Tabs, _sfc_main$a as TabsContent, _sfc_main$9 as TabsList, _sfc_main$8 as TabsTrigger, _sfc_main$7 as TagsInput, _sfc_main$6 as TagsInputInput, _sfc_main$5 as TagsInputItem, _sfc_main$4 as TagsInputItemDelete, _sfc_main$3 as TagsInputItemText, _sfc_main$1 as Textarea, _sfc_main as Toggle, _sfc_main$F as Tooltip, _sfc_main$E as TooltipContent, _sfc_main$D as TooltipProvider, _sfc_main$C as TooltipTrigger, cn, navigationMenuTriggerStyle, sidebarMenuButtonVariants, toBooleanCheckboxValue, useSidebar };