@una-ui/nuxt 1.0.0-alpha.6 → 1.0.0-alpha.8

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 (147) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +1 -1
  3. package/dist/runtime/components/alert-dialog/AlertDialogAction.vue +1 -1
  4. package/dist/runtime/components/alert-dialog/AlertDialogCancel.vue +1 -1
  5. package/dist/runtime/components/alert-dialog/AlertDialogContent.vue +1 -1
  6. package/dist/runtime/components/alert-dialog/AlertDialogDescription.vue +1 -1
  7. package/dist/runtime/components/alert-dialog/AlertDialogOverlay.vue +1 -1
  8. package/dist/runtime/components/alert-dialog/AlertDialogTitle.vue +1 -1
  9. package/dist/runtime/components/alert-dialog/AlertDialogTrigger.vue +1 -1
  10. package/dist/runtime/components/aspect-ratio/AspectRatio.vue +1 -1
  11. package/dist/runtime/components/combobox/Combobox.vue +2 -3
  12. package/dist/runtime/components/combobox/Combobox.vue.d.ts +8 -8
  13. package/dist/runtime/components/combobox/ComboboxAnchor.vue +1 -1
  14. package/dist/runtime/components/combobox/ComboboxEmpty.vue +1 -1
  15. package/dist/runtime/components/combobox/ComboboxGroup.vue +1 -1
  16. package/dist/runtime/components/combobox/ComboboxInput.vue +1 -1
  17. package/dist/runtime/components/combobox/ComboboxItem.vue +1 -1
  18. package/dist/runtime/components/combobox/ComboboxItemIndicator.vue +1 -1
  19. package/dist/runtime/components/combobox/ComboboxLabel.vue +1 -1
  20. package/dist/runtime/components/combobox/ComboboxList.vue +2 -1
  21. package/dist/runtime/components/combobox/ComboboxSeparator.vue +1 -1
  22. package/dist/runtime/components/combobox/ComboboxTrigger.vue +1 -1
  23. package/dist/runtime/components/combobox/ComboboxViewport.vue +1 -1
  24. package/dist/runtime/components/data/table/TableBody.vue +1 -1
  25. package/dist/runtime/components/data/table/TableCaption.vue +1 -1
  26. package/dist/runtime/components/data/table/TableCell.vue +1 -1
  27. package/dist/runtime/components/data/table/TableFooter.vue +1 -1
  28. package/dist/runtime/components/data/table/TableHead.vue +1 -1
  29. package/dist/runtime/components/data/table/TableHeader.vue +1 -1
  30. package/dist/runtime/components/data/table/TableRow.vue +1 -1
  31. package/dist/runtime/components/drawer/DrawerClose.vue +1 -1
  32. package/dist/runtime/components/drawer/DrawerContent.vue +1 -1
  33. package/dist/runtime/components/drawer/DrawerDescription.vue +1 -1
  34. package/dist/runtime/components/drawer/DrawerOverlay.vue +2 -1
  35. package/dist/runtime/components/drawer/DrawerTitle.vue +1 -1
  36. package/dist/runtime/components/drawer/DrawerTrigger.vue +1 -1
  37. package/dist/runtime/components/elements/AvatarGroup.vue +1 -1
  38. package/dist/runtime/components/elements/Label.vue +1 -1
  39. package/dist/runtime/components/elements/Progress.vue +1 -1
  40. package/dist/runtime/components/elements/Separator.vue +1 -1
  41. package/dist/runtime/components/elements/Toggle.vue +1 -1
  42. package/dist/runtime/components/elements/avatar/Avatar.vue +1 -1
  43. package/dist/runtime/components/elements/avatar/AvatarFallback.vue +1 -1
  44. package/dist/runtime/components/elements/avatar/AvatarImage.vue +1 -1
  45. package/dist/runtime/components/elements/collapsible/Collapsible.vue +1 -1
  46. package/dist/runtime/components/elements/collapsible/CollapsibleContent.vue +2 -1
  47. package/dist/runtime/components/elements/collapsible/CollapsibleTrigger.vue +1 -1
  48. package/dist/runtime/components/elements/dialog/DialogClose.vue +1 -1
  49. package/dist/runtime/components/elements/dialog/DialogContent.vue +1 -1
  50. package/dist/runtime/components/elements/dialog/DialogDescription.vue +3 -2
  51. package/dist/runtime/components/elements/dialog/DialogScrollContent.vue +1 -1
  52. package/dist/runtime/components/elements/dialog/DialogTitle.vue +1 -1
  53. package/dist/runtime/components/elements/dialog/DialogTrigger.vue +1 -1
  54. package/dist/runtime/components/elements/dropdown-menu/DropdownMenu.vue +1 -1
  55. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuContent.vue +2 -2
  56. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuGroup.vue +1 -1
  57. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuItem.vue +1 -1
  58. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuLabel.vue +1 -1
  59. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSeparator.vue +1 -1
  60. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSubContent.vue +2 -2
  61. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSubTrigger.vue +1 -1
  62. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuTrigger.vue +1 -1
  63. package/dist/runtime/components/elements/pagination/Pagination.vue +1 -1
  64. package/dist/runtime/components/elements/pagination/PaginationEllipsis.vue +1 -1
  65. package/dist/runtime/components/elements/pagination/PaginationFirst.vue +1 -1
  66. package/dist/runtime/components/elements/pagination/PaginationLast.vue +1 -1
  67. package/dist/runtime/components/elements/pagination/PaginationListItem.vue +1 -1
  68. package/dist/runtime/components/elements/pagination/PaginationNext.vue +1 -1
  69. package/dist/runtime/components/elements/pagination/PaginationPrev.vue +1 -1
  70. package/dist/runtime/components/elements/popover/PopoverContent.vue +2 -1
  71. package/dist/runtime/components/elements/tabs/Tabs.vue +1 -1
  72. package/dist/runtime/components/elements/tabs/TabsContent.vue +1 -1
  73. package/dist/runtime/components/elements/tabs/TabsList.vue +1 -1
  74. package/dist/runtime/components/elements/tabs/TabsTrigger.vue +1 -1
  75. package/dist/runtime/components/elements/tooltip/TooltipContent.vue +2 -1
  76. package/dist/runtime/components/elements/tooltip/TooltipTrigger.vue +1 -1
  77. package/dist/runtime/components/forms/Checkbox.vue +1 -1
  78. package/dist/runtime/components/forms/FormGroup.vue +1 -1
  79. package/dist/runtime/components/forms/Slider.vue +1 -1
  80. package/dist/runtime/components/forms/Switch.vue +1 -1
  81. package/dist/runtime/components/forms/form/FormField.vue +1 -1
  82. package/dist/runtime/components/forms/form/FormLabel.vue +1 -1
  83. package/dist/runtime/components/forms/radio-group/RadioGroup.vue +2 -3
  84. package/dist/runtime/components/forms/radio-group/RadioGroup.vue.d.ts +5 -5
  85. package/dist/runtime/components/forms/radio-group/RadioGroupItem.vue +2 -2
  86. package/dist/runtime/components/forms/radio-group/RadioGroupItem.vue.d.ts +2 -1
  87. package/dist/runtime/components/forms/select/Select.vue +4 -6
  88. package/dist/runtime/components/forms/select/Select.vue.d.ts +54 -2
  89. package/dist/runtime/components/forms/select/SelectContent.vue +2 -1
  90. package/dist/runtime/components/forms/select/SelectGroup.vue +1 -1
  91. package/dist/runtime/components/forms/select/SelectItem.vue +1 -1
  92. package/dist/runtime/components/forms/select/SelectItemIndicator.vue +1 -1
  93. package/dist/runtime/components/forms/select/SelectItemText.vue +1 -1
  94. package/dist/runtime/components/forms/select/SelectLabel.vue +1 -1
  95. package/dist/runtime/components/forms/select/SelectScrollDownButton.vue +1 -1
  96. package/dist/runtime/components/forms/select/SelectScrollUpButton.vue +1 -1
  97. package/dist/runtime/components/forms/select/SelectSeparator.vue +1 -1
  98. package/dist/runtime/components/forms/select/SelectTrigger.vue +1 -1
  99. package/dist/runtime/components/forms/select/SelectValue.vue +1 -1
  100. package/dist/runtime/components/hover-card/HoverCard.vue +1 -1
  101. package/dist/runtime/components/hover-card/HoverCardArrow.vue +1 -1
  102. package/dist/runtime/components/hover-card/HoverCardContent.vue +2 -1
  103. package/dist/runtime/components/hover-card/HoverCardTrigger.vue +1 -1
  104. package/dist/runtime/components/navigation-menu/NavigationMenu.vue +1 -1
  105. package/dist/runtime/components/navigation-menu/NavigationMenuContent.vue +1 -1
  106. package/dist/runtime/components/navigation-menu/NavigationMenuContentItem.vue +1 -1
  107. package/dist/runtime/components/navigation-menu/NavigationMenuIndicator.vue +2 -1
  108. package/dist/runtime/components/navigation-menu/NavigationMenuItem.vue +1 -1
  109. package/dist/runtime/components/navigation-menu/NavigationMenuLink.vue +1 -1
  110. package/dist/runtime/components/navigation-menu/NavigationMenuList.vue +1 -1
  111. package/dist/runtime/components/navigation-menu/NavigationMenuTrigger.vue +1 -1
  112. package/dist/runtime/components/navigation-menu/NavigationMenuViewport.vue +2 -1
  113. package/dist/runtime/components/number-field/NumberField.vue +1 -1
  114. package/dist/runtime/components/number-field/NumberFieldDecrement.vue +1 -1
  115. package/dist/runtime/components/number-field/NumberFieldIncrement.vue +1 -1
  116. package/dist/runtime/components/number-field/NumberFieldInput.vue +1 -1
  117. package/dist/runtime/components/overlays/toast/Toast.vue +1 -1
  118. package/dist/runtime/components/overlays/toast/ToastAction.vue +1 -1
  119. package/dist/runtime/components/overlays/toast/ToastClose.vue +1 -1
  120. package/dist/runtime/components/overlays/toast/ToastDescription.vue +1 -1
  121. package/dist/runtime/components/overlays/toast/ToastTitle.vue +1 -1
  122. package/dist/runtime/components/overlays/toast/ToastViewport.vue +1 -1
  123. package/dist/runtime/components/pin-input/PinInput.vue +1 -1
  124. package/dist/runtime/components/pin-input/PinInputGroup.vue +1 -1
  125. package/dist/runtime/components/pin-input/PinInputSeparator.vue +1 -1
  126. package/dist/runtime/components/pin-input/PinInputSlot.vue +1 -1
  127. package/dist/runtime/components/resizable/ResizableHandle.vue +1 -1
  128. package/dist/runtime/components/resizable/ResizablePanel.vue +1 -1
  129. package/dist/runtime/components/resizable/ResizablePanelGroup.vue +1 -1
  130. package/dist/runtime/components/scroll-area/ScrollArea.vue +1 -1
  131. package/dist/runtime/components/scroll-area/ScrollBar.vue +1 -1
  132. package/dist/runtime/components/sheet/SheetClose.vue +1 -1
  133. package/dist/runtime/components/sheet/SheetContent.vue +7 -2
  134. package/dist/runtime/components/sheet/SheetDescription.vue +1 -1
  135. package/dist/runtime/components/sheet/SheetOverlay.vue +7 -2
  136. package/dist/runtime/components/sheet/SheetTitle.vue +1 -1
  137. package/dist/runtime/components/sheet/SheetTrigger.vue +1 -1
  138. package/dist/runtime/components/sidebar/SidebarGroupAction.vue +1 -1
  139. package/dist/runtime/components/sidebar/SidebarGroupLabel.vue +1 -1
  140. package/dist/runtime/components/sidebar/SidebarMenuAction.vue +1 -1
  141. package/dist/runtime/components/sidebar/SidebarMenuButton.vue +2 -2
  142. package/dist/runtime/components/sidebar/SidebarMenuButtonChild.vue +1 -1
  143. package/dist/runtime/components/sidebar/SidebarMenuSubButton.vue +1 -1
  144. package/dist/runtime/types/combobox.d.ts +3 -2
  145. package/dist/runtime/types/radio-group.d.ts +5 -3
  146. package/dist/runtime/types/select.d.ts +2 -30
  147. package/package.json +3 -3
@@ -6,7 +6,7 @@ import Icon from "../../elements/Icon.vue";
6
6
  const props = defineProps({
7
7
  una: { type: Object, required: false },
8
8
  asChild: { type: Boolean, required: false },
9
- as: { type: null, required: false },
9
+ as: { type: [String, Object, Function], required: false },
10
10
  class: { type: null, required: false },
11
11
  size: { type: null, required: false }
12
12
  });
@@ -5,7 +5,7 @@ import { cn } from "../../../utils";
5
5
  const props = defineProps({
6
6
  una: { type: Object, required: false },
7
7
  asChild: { type: Boolean, required: false },
8
- as: { type: null, required: false },
8
+ as: { type: [String, Object, Function], required: false },
9
9
  class: { type: null, required: false },
10
10
  size: { type: null, required: false }
11
11
  });
@@ -13,7 +13,7 @@ const props = defineProps({
13
13
  disabled: { type: Boolean, required: false },
14
14
  reference: { type: null, required: false },
15
15
  asChild: { type: Boolean, required: false },
16
- as: { type: null, required: false },
16
+ as: { type: [String, Object, Function], required: false },
17
17
  type: { type: String, required: false },
18
18
  loadingPlacement: { type: String, required: false },
19
19
  icon: { type: Boolean, required: false },
@@ -5,7 +5,7 @@ const props = defineProps({
5
5
  una: { type: Object, required: false },
6
6
  placeholder: { type: String, required: false },
7
7
  asChild: { type: Boolean, required: false },
8
- as: { type: null, required: false },
8
+ as: { type: [String, Object, Function], required: false },
9
9
  class: { type: null, required: false },
10
10
  size: { type: null, required: false }
11
11
  });
@@ -17,7 +17,7 @@ const props = defineProps({
17
17
  closeDelay: { type: Number, required: false },
18
18
  reference: { type: null, required: false },
19
19
  asChild: { type: Boolean, required: false },
20
- as: { type: null, required: false },
20
+ as: { type: [String, Object, Function], required: false },
21
21
  type: { type: String, required: false },
22
22
  loadingPlacement: { type: String, required: false },
23
23
  icon: { type: Boolean, required: false },
@@ -8,7 +8,7 @@ const props = defineProps({
8
8
  height: { type: Number, required: false, default: 6 },
9
9
  rounded: { type: Boolean, required: false },
10
10
  asChild: { type: Boolean, required: false },
11
- as: { type: null, required: false },
11
+ as: { type: [String, Object, Function], required: false },
12
12
  hoverCard: { type: null, required: false },
13
13
  class: { type: null, required: false },
14
14
  size: { type: null, required: false }
@@ -28,7 +28,7 @@ const props = defineProps({
28
28
  prioritizePosition: { type: Boolean, required: false },
29
29
  reference: { type: null, required: false },
30
30
  asChild: { type: Boolean, required: false },
31
- as: { type: null, required: false },
31
+ as: { type: [String, Object, Function], required: false },
32
32
  hoverCard: { type: null, required: false },
33
33
  class: { type: null, required: false },
34
34
  size: { type: null, required: false }
@@ -44,6 +44,7 @@ const forwarded = useForwardProps(delegatedProps);
44
44
  v-bind="{ ...forwarded, ...$attrs }"
45
45
  :class="
46
46
  cn(
47
+ 'data-[state=hidden]:opacity-0 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',
47
48
  'hover-card-content',
48
49
  props.una?.hoverCardContent,
49
50
  props.class
@@ -6,7 +6,7 @@ const props = defineProps({
6
6
  una: { type: Object, required: false },
7
7
  reference: { type: null, required: false },
8
8
  asChild: { type: Boolean, required: false },
9
- as: { type: null, required: false },
9
+ as: { type: [String, Object, Function], required: false },
10
10
  type: { type: String, required: false },
11
11
  loadingPlacement: { type: String, required: false },
12
12
  icon: { type: Boolean, required: false },
@@ -36,7 +36,7 @@ const props = defineProps({
36
36
  disablePointerLeaveClose: { type: Boolean, required: false },
37
37
  unmountOnHide: { type: Boolean, required: false, default: true },
38
38
  asChild: { type: Boolean, required: false },
39
- as: { type: null, required: false },
39
+ as: { type: [String, Object, Function], required: false },
40
40
  navigationMenu: { type: String, required: false },
41
41
  disabled: { type: Boolean, required: false },
42
42
  navigationMenuLink: { type: String, required: false },
@@ -10,7 +10,7 @@ const props = defineProps({
10
10
  forceMount: { type: Boolean, required: false },
11
11
  disableOutsidePointerEvents: { type: Boolean, required: false },
12
12
  asChild: { type: Boolean, required: false },
13
- as: { type: null, required: false },
13
+ as: { type: [String, Object, Function], required: false },
14
14
  class: { type: null, required: false },
15
15
  size: { type: null, required: false }
16
16
  });
@@ -9,7 +9,7 @@ const props = defineProps({
9
9
  onSelect: { type: Function, required: false },
10
10
  active: { type: Boolean, required: false },
11
11
  asChild: { type: Boolean, required: false },
12
- as: { type: null, required: false },
12
+ as: { type: [String, Object, Function], required: false },
13
13
  type: { type: String, required: false },
14
14
  loadingPlacement: { type: String, required: false },
15
15
  icon: { type: Boolean, required: false },
@@ -6,7 +6,7 @@ const props = defineProps({
6
6
  una: { type: Object, required: false },
7
7
  forceMount: { type: Boolean, required: false },
8
8
  asChild: { type: Boolean, required: false },
9
- as: { type: null, required: false },
9
+ as: { type: [String, Object, Function], required: false },
10
10
  class: { type: null, required: false },
11
11
  size: { type: null, required: false }
12
12
  });
@@ -18,6 +18,7 @@ const forwardedProps = useForwardProps(delegatedProps);
18
18
  <NavigationMenuIndicator
19
19
  v-bind="forwardedProps"
20
20
  :class="cn(
21
+ 'data-[state=hidden]:opacity-0 data-[state=visible]:animate-fadeIn data-[state=hidden]:animate-fadeOut',
21
22
  'navigation-menu-indicator',
22
23
  props.una?.navigationMenuIndicator,
23
24
  props.class
@@ -6,7 +6,7 @@ const props = defineProps({
6
6
  una: { type: Object, required: false },
7
7
  value: { type: String, required: false },
8
8
  asChild: { type: Boolean, required: false },
9
- as: { type: null, required: false },
9
+ as: { type: [String, Object, Function], required: false },
10
10
  navigationMenu: { type: String, required: false },
11
11
  disabled: { type: Boolean, required: false },
12
12
  type: { type: String, required: false },
@@ -12,7 +12,7 @@ const props = defineProps({
12
12
  una: { type: Object, required: false },
13
13
  active: { type: Boolean, required: false },
14
14
  asChild: { type: Boolean, required: false },
15
- as: { type: null, required: false, default: Button },
15
+ as: { type: [String, Object, Function], required: false, default: Button },
16
16
  type: { type: String, required: false },
17
17
  loadingPlacement: { type: String, required: false },
18
18
  icon: { type: Boolean, required: false },
@@ -5,7 +5,7 @@ import { cn } from "../../utils";
5
5
  const props = defineProps({
6
6
  una: { type: Object, required: false },
7
7
  asChild: { type: Boolean, required: false },
8
- as: { type: null, required: false },
8
+ as: { type: [String, Object, Function], required: false },
9
9
  orientation: { type: String, required: false },
10
10
  class: { type: null, required: false },
11
11
  size: { type: null, required: false }
@@ -14,7 +14,7 @@ const props = defineProps({
14
14
  una: { type: Object, required: false },
15
15
  disabled: { type: Boolean, required: false },
16
16
  asChild: { type: Boolean, required: false },
17
- as: { type: null, required: false, default: Button },
17
+ as: { type: [String, Object, Function], required: false, default: Button },
18
18
  type: { type: String, required: false },
19
19
  loadingPlacement: { type: String, required: false },
20
20
  icon: { type: Boolean, required: false },
@@ -10,7 +10,7 @@ const props = defineProps({
10
10
  forceMount: { type: Boolean, required: false },
11
11
  align: { type: String, required: false },
12
12
  asChild: { type: Boolean, required: false },
13
- as: { type: null, required: false },
13
+ as: { type: [String, Object, Function], required: false },
14
14
  orientation: { type: String, required: false },
15
15
  class: { type: null, required: false }
16
16
  });
@@ -34,6 +34,7 @@ const forwardedProps = useForwardProps(delegatedProps);
34
34
  cn(
35
35
  'navigation-menu-viewport',
36
36
  'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90',
37
+ 'data-[state=closed]:fade-out data-[state=open]:fade-in',
37
38
  props.una?.navigationMenuViewport
38
39
  )
39
40
  "
@@ -23,7 +23,7 @@ const props = defineProps({
23
23
  invertWheelChange: { type: Boolean, required: false },
24
24
  id: { type: String, required: false },
25
25
  asChild: { type: Boolean, required: false },
26
- as: { type: null, required: false },
26
+ as: { type: [String, Object, Function], required: false },
27
27
  name: { type: String, required: false },
28
28
  required: { type: Boolean, required: false },
29
29
  leading: { type: String, required: false, default: "i-lucide-minus" },
@@ -8,7 +8,7 @@ const props = defineProps({
8
8
  una: { type: Object, required: false },
9
9
  disabled: { type: Boolean, required: false },
10
10
  asChild: { type: Boolean, required: false },
11
- as: { type: null, required: false },
11
+ as: { type: [String, Object, Function], required: false },
12
12
  class: { type: null, required: false },
13
13
  size: { type: null, required: false, default: "md" }
14
14
  });
@@ -8,7 +8,7 @@ const props = defineProps({
8
8
  una: { type: Object, required: false },
9
9
  disabled: { type: Boolean, required: false },
10
10
  asChild: { type: Boolean, required: false },
11
- as: { type: null, required: false },
11
+ as: { type: [String, Object, Function], required: false },
12
12
  class: { type: null, required: false },
13
13
  size: { type: null, required: false, default: "md" }
14
14
  });
@@ -4,7 +4,7 @@ import { cn } from "../../utils";
4
4
  const props = defineProps({
5
5
  una: { type: Object, required: false },
6
6
  asChild: { type: Boolean, required: false },
7
- as: { type: null, required: false },
7
+ as: { type: [String, Object, Function], required: false },
8
8
  class: { type: null, required: false },
9
9
  size: { type: null, required: false },
10
10
  numberField: { type: null, required: false, default: "outline-primary" }
@@ -40,7 +40,7 @@ const props = defineProps({
40
40
  open: { type: Boolean, required: false },
41
41
  duration: { type: Number, required: false },
42
42
  asChild: { type: Boolean, required: false },
43
- as: { type: null, required: false }
43
+ as: { type: [String, Object, Function], required: false }
44
44
  });
45
45
  const emits = defineEmits(["escapeKeyDown", "pause", "resume", "swipeStart", "swipeMove", "swipeCancel", "swipeEnd", "update:open"]);
46
46
  const rootProps = useForwardPropsEmits(reactivePick(props, "as", "asChild", "defaultOpen", "open", "duration", "type", "forceMount"), emits);
@@ -38,7 +38,7 @@ const props = defineProps({
38
38
  ariaLabel: { type: String, required: false },
39
39
  altText: { type: String, required: true },
40
40
  asChild: { type: Boolean, required: false },
41
- as: { type: null, required: false }
41
+ as: { type: [String, Object, Function], required: false }
42
42
  });
43
43
  const delegatedProps = reactiveOmit(props, ["class"]);
44
44
  </script>
@@ -6,7 +6,7 @@ import Icon from "../../elements/Icon.vue";
6
6
  const props = defineProps({
7
7
  una: { type: Object, required: false },
8
8
  asChild: { type: Boolean, required: false },
9
- as: { type: null, required: false },
9
+ as: { type: [String, Object, Function], required: false },
10
10
  class: { type: null, required: false }
11
11
  });
12
12
  const delegatedProps = computed(() => {
@@ -5,7 +5,7 @@ import { cn } from "../../../utils";
5
5
  const props = defineProps({
6
6
  una: { type: Object, required: false },
7
7
  asChild: { type: Boolean, required: false },
8
- as: { type: null, required: false },
8
+ as: { type: [String, Object, Function], required: false },
9
9
  class: { type: null, required: false }
10
10
  });
11
11
  const delegatedProps = reactiveOmit(props, ["class"]);
@@ -5,7 +5,7 @@ import { cn } from "../../../utils";
5
5
  const props = defineProps({
6
6
  una: { type: Object, required: false },
7
7
  asChild: { type: Boolean, required: false },
8
- as: { type: null, required: false },
8
+ as: { type: [String, Object, Function], required: false },
9
9
  class: { type: null, required: false }
10
10
  });
11
11
  const delegatedProps = reactiveOmit(props, ["class"]);
@@ -7,7 +7,7 @@ const props = defineProps({
7
7
  hotkey: { type: Array, required: false },
8
8
  label: { type: [String, Function], required: false },
9
9
  asChild: { type: Boolean, required: false },
10
- as: { type: null, required: false },
10
+ as: { type: [String, Object, Function], required: false },
11
11
  class: { type: null, required: false }
12
12
  });
13
13
  const delegatedProps = reactiveOmit(props, ["class"]);
@@ -28,7 +28,7 @@ const props = defineProps({
28
28
  disabled: { type: Boolean, required: false },
29
29
  id: { type: String, required: false },
30
30
  asChild: { type: Boolean, required: false },
31
- as: { type: null, required: false },
31
+ as: { type: [String, Object, Function], required: false },
32
32
  name: { type: String, required: false },
33
33
  required: { type: Boolean, required: false },
34
34
  pinInput: { type: null, required: false, default: "outline-primary" },
@@ -5,7 +5,7 @@ import { cn } from "../../utils";
5
5
  const props = defineProps({
6
6
  una: { type: Object, required: false },
7
7
  asChild: { type: Boolean, required: false },
8
- as: { type: null, required: false },
8
+ as: { type: [String, Object, Function], required: false },
9
9
  class: { type: null, required: false },
10
10
  size: { type: null, required: false }
11
11
  });
@@ -6,7 +6,7 @@ const props = defineProps({
6
6
  icon: { type: String, required: false, default: "i-lucide-minus" },
7
7
  una: { type: Object, required: false },
8
8
  asChild: { type: Boolean, required: false },
9
- as: { type: null, required: false },
9
+ as: { type: [String, Object, Function], required: false },
10
10
  class: { type: null, required: false },
11
11
  size: { type: null, required: false }
12
12
  });
@@ -10,7 +10,7 @@ const props = defineProps({
10
10
  index: { type: Number, required: true },
11
11
  disabled: { type: Boolean, required: false },
12
12
  asChild: { type: Boolean, required: false },
13
- as: { type: null, required: false },
13
+ as: { type: [String, Object, Function], required: false },
14
14
  icon: { type: String, required: false },
15
15
  class: { type: null, required: false },
16
16
  size: { type: null, required: false }
@@ -13,7 +13,7 @@ const props = defineProps({
13
13
  tabindex: { type: Number, required: false },
14
14
  disabled: { type: Boolean, required: false },
15
15
  asChild: { type: Boolean, required: false },
16
- as: { type: null, required: false },
16
+ as: { type: [String, Object, Function], required: false },
17
17
  class: { type: null, required: false }
18
18
  });
19
19
  const emits = defineEmits(["dragging"]);
@@ -12,7 +12,7 @@ const props = defineProps({
12
12
  minSize: { type: Number, required: false },
13
13
  order: { type: Number, required: false },
14
14
  asChild: { type: Boolean, required: false },
15
- as: { type: null, required: false },
15
+ as: { type: [String, Object, Function], required: false },
16
16
  class: { type: null, required: false }
17
17
  });
18
18
  const emits = defineEmits(["collapse", "expand", "resize"]);
@@ -10,7 +10,7 @@ const props = defineProps({
10
10
  keyboardResizeBy: { type: [Number, null], required: false },
11
11
  storage: { type: Object, required: false },
12
12
  asChild: { type: Boolean, required: false },
13
- as: { type: null, required: false },
13
+ as: { type: [String, Object, Function], required: false },
14
14
  class: { type: null, required: false }
15
15
  });
16
16
  const emits = defineEmits(["layout"]);
@@ -17,7 +17,7 @@ const props = defineProps({
17
17
  dir: { type: String, required: false },
18
18
  scrollHideDelay: { type: Number, required: false },
19
19
  asChild: { type: Boolean, required: false },
20
- as: { type: null, required: false },
20
+ as: { type: [String, Object, Function], required: false },
21
21
  orientation: { type: String, required: false },
22
22
  class: { type: null, required: false },
23
23
  size: { type: null, required: false, default: "md" },
@@ -8,7 +8,7 @@ const props = defineProps({
8
8
  orientation: { type: String, required: false, default: "vertical" },
9
9
  forceMount: { type: Boolean, required: false },
10
10
  asChild: { type: Boolean, required: false },
11
- as: { type: null, required: false },
11
+ as: { type: [String, Object, Function], required: false },
12
12
  scrollArea: { type: null, required: false },
13
13
  class: { type: null, required: false },
14
14
  size: { type: null, required: false },
@@ -3,7 +3,7 @@ import { DialogClose } from "reka-ui";
3
3
  import Button from "../elements/Button.vue";
4
4
  const props = defineProps({
5
5
  asChild: { type: Boolean, required: false },
6
- as: { type: null, required: false },
6
+ as: { type: [String, Object, Function], required: false },
7
7
  type: { type: String, required: false },
8
8
  loadingPlacement: { type: String, required: false },
9
9
  icon: { type: Boolean, required: false, default: true },
@@ -21,7 +21,7 @@ const props = defineProps({
21
21
  forceMount: { type: Boolean, required: false },
22
22
  disableOutsidePointerEvents: { type: Boolean, required: false },
23
23
  asChild: { type: Boolean, required: false },
24
- as: { type: null, required: false }
24
+ as: { type: [String, Object, Function], required: false }
25
25
  });
26
26
  const emits = defineEmits(["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"]);
27
27
  const contentProps = reactiveOmit(props, ["sheet", "class", "_sheetClose", "_sheetPortal", "_sheetOverlay"]);
@@ -54,7 +54,12 @@ const contentEvents = computed(() => {
54
54
  data-slot="sheet-content"
55
55
  v-bind="{ ...forwarded, ...$attrs }"
56
56
  :sheet
57
- :class="cn('sheet-content', props.una?.sheetContent, props.class)"
57
+ :class="cn(
58
+ 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500',
59
+ 'sheet-content',
60
+ props.una?.sheetContent,
61
+ props.class
62
+ )"
58
63
  v-on="contentEvents"
59
64
  >
60
65
  <slot />
@@ -6,7 +6,7 @@ const props = defineProps({
6
6
  class: { type: null, required: false },
7
7
  una: { type: Object, required: false },
8
8
  asChild: { type: Boolean, required: false },
9
- as: { type: null, required: false }
9
+ as: { type: [String, Object, Function], required: false }
10
10
  });
11
11
  const delegatedProps = reactiveOmit(props, ["class"]);
12
12
  </script>
@@ -7,7 +7,7 @@ const props = defineProps({
7
7
  una: { type: Object, required: false },
8
8
  forceMount: { type: Boolean, required: false },
9
9
  asChild: { type: Boolean, required: false },
10
- as: { type: null, required: false }
10
+ as: { type: [String, Object, Function], required: false }
11
11
  });
12
12
  const delegatedProps = reactiveOmit(props, "class");
13
13
  </script>
@@ -15,7 +15,12 @@ const delegatedProps = reactiveOmit(props, "class");
15
15
  <template>
16
16
  <DialogOverlay
17
17
  data-slot="sheet-overlay"
18
- :class="cn('dialog-overlay', props.una?.sheetOverlay, props.class)"
18
+ :class="cn(
19
+ 'data-[state=closed]:animate-out data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=closed]:fade-out-0',
20
+ 'sheet-overlay',
21
+ props.una?.sheetOverlay,
22
+ props.class
23
+ )"
19
24
  v-bind="delegatedProps"
20
25
  >
21
26
  <slot />
@@ -6,7 +6,7 @@ const props = defineProps({
6
6
  class: { type: null, required: false },
7
7
  una: { type: Object, required: false },
8
8
  asChild: { type: Boolean, required: false },
9
- as: { type: null, required: false }
9
+ as: { type: [String, Object, Function], required: false }
10
10
  });
11
11
  const delegatedProps = reactiveOmit(props, ["class"]);
12
12
  </script>
@@ -2,7 +2,7 @@
2
2
  import { DialogTrigger } from "reka-ui";
3
3
  const props = defineProps({
4
4
  asChild: { type: Boolean, required: false, default: true },
5
- as: { type: null, required: false }
5
+ as: { type: [String, Object, Function], required: false }
6
6
  });
7
7
  </script>
8
8
 
@@ -5,7 +5,7 @@ const props = defineProps({
5
5
  class: { type: null, required: false },
6
6
  una: { type: Object, required: false },
7
7
  asChild: { type: Boolean, required: false, default: false },
8
- as: { type: null, required: false, default: "button" }
8
+ as: { type: [String, Object, Function], required: false, default: "button" }
9
9
  });
10
10
  </script>
11
11
 
@@ -5,7 +5,7 @@ const props = defineProps({
5
5
  class: { type: null, required: false },
6
6
  una: { type: Object, required: false },
7
7
  asChild: { type: Boolean, required: false, default: false },
8
- as: { type: null, required: false, default: "div" }
8
+ as: { type: [String, Object, Function], required: false, default: "div" }
9
9
  });
10
10
  </script>
11
11
 
@@ -6,7 +6,7 @@ const props = defineProps({
6
6
  class: { type: null, required: false },
7
7
  una: { type: Object, required: false },
8
8
  asChild: { type: Boolean, required: false },
9
- as: { type: null, required: false, default: "button" }
9
+ as: { type: [String, Object, Function], required: false, default: "button" }
10
10
  });
11
11
  </script>
12
12
 
@@ -9,14 +9,14 @@ defineOptions({
9
9
  inheritAttrs: false
10
10
  });
11
11
  const props = defineProps({
12
- tooltip: { type: null, required: false },
12
+ tooltip: { type: [String, Object, Function], required: false },
13
13
  isActive: { type: Boolean, required: false },
14
14
  variant: { type: String, required: false, default: "default" },
15
15
  size: { type: String, required: false, default: "default" },
16
16
  class: { type: null, required: false },
17
17
  una: { type: Object, required: false },
18
18
  asChild: { type: Boolean, required: false },
19
- as: { type: null, required: false, default: "button" }
19
+ as: { type: [String, Object, Function], required: false, default: "button" }
20
20
  });
21
21
  const { isMobile, state } = useSidebar();
22
22
  const delegatedProps = computed(() => {
@@ -9,7 +9,7 @@ const props = defineProps({
9
9
  class: { type: null, required: false },
10
10
  una: { type: Object, required: false },
11
11
  asChild: { type: Boolean, required: false },
12
- as: { type: null, required: false, default: "button" }
12
+ as: { type: [String, Object, Function], required: false, default: "button" }
13
13
  });
14
14
  const sidebarMenuButtonVariants = cva(
15
15
  "peer-menu_button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu_item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!square-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>span[icon-base]]:square-4",
@@ -8,7 +8,7 @@ const props = defineProps({
8
8
  class: { type: null, required: false },
9
9
  una: { type: Object, required: false },
10
10
  asChild: { type: Boolean, required: false },
11
- as: { type: null, required: false, default: NLink }
11
+ as: { type: [String, Object, Function], required: false, default: NLink }
12
12
  });
13
13
  </script>
14
14
 
@@ -10,12 +10,12 @@ interface BaseExtensions {
10
10
  export type ExtractItemType<T> = T extends {
11
11
  items: infer I extends AcceptableValue[];
12
12
  } ? I[number] : T;
13
- export interface NComboboxProps<T extends AcceptableValue> extends Omit<ComboboxRootProps<ExtractItemType<T>>, 'modelValue'>, Pick<NComboboxInputProps, 'status' | 'id'>, BaseExtensions {
13
+ export interface NComboboxProps<T extends AcceptableValue, M extends boolean> extends Omit<ComboboxRootProps<ExtractItemType<T>>, 'modelValue'>, Pick<NComboboxInputProps, 'status' | 'id'>, BaseExtensions {
14
14
  /**
15
15
  * The model value for the combobox.
16
16
  * When using grouped items, this will be the item type from within the groups.
17
17
  */
18
- modelValue?: ExtractItemType<T> | ExtractItemType<T>[] | null | undefined;
18
+ modelValue?: (M extends true ? ExtractItemType<T>[] : ExtractItemType<T>) | null;
19
19
  /**
20
20
  * The items to display in the combobox.
21
21
  *
@@ -52,6 +52,7 @@ export interface NComboboxProps<T extends AcceptableValue> extends Omit<Combobox
52
52
  * @default ''
53
53
  */
54
54
  label?: string;
55
+ multiple?: M;
55
56
  /**
56
57
  * Sub-component configurations
57
58
  */
@@ -22,11 +22,12 @@ interface BaseProps {
22
22
  */
23
23
  icon?: HTMLAttributes['class'];
24
24
  }
25
- export interface NRadioGroupProps<T extends AcceptableValue> extends BaseProps, RadioGroupRootProps {
25
+ export interface NRadioGroupProps<T extends AcceptableValue, Item extends T | NRadioGroupItemProps<T>> extends BaseProps, RadioGroupRootProps {
26
+ modelValue: T;
26
27
  /**
27
28
  * The items to display in the radio group.
28
29
  */
29
- items?: T[] | NRadioGroupItemProps[];
30
+ items?: Item[];
30
31
  /**
31
32
  * The key name to use to display in the radio items.
32
33
  */
@@ -61,7 +62,8 @@ export interface NRadioGroupProps<T extends AcceptableValue> extends BaseProps,
61
62
  */
62
63
  una?: NRadioGroupUnaProps;
63
64
  }
64
- export interface NRadioGroupItemProps extends BaseProps, RadioGroupItemProps {
65
+ export interface NRadioGroupItemProps<T extends AcceptableValue = any> extends BaseProps, RadioGroupItemProps {
66
+ value: T;
65
67
  /**
66
68
  * The label to display in the radio item.
67
69
  */