@tb-dev/vue 0.3.9 → 0.3.11

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