@una-ui/nuxt 0.53.0 → 0.54.1

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 (385) hide show
  1. package/dist/module.cjs +5 -0
  2. package/dist/module.d.ts +37 -0
  3. package/dist/module.json +2 -2
  4. package/dist/module.mjs +1 -1
  5. package/dist/runtime/components/alert-dialog/AlertDialog.vue +38 -43
  6. package/dist/runtime/components/alert-dialog/AlertDialogAction.vue +9 -35
  7. package/dist/runtime/components/alert-dialog/AlertDialogCancel.vue +13 -39
  8. package/dist/runtime/components/alert-dialog/AlertDialogContent.vue +33 -39
  9. package/dist/runtime/components/alert-dialog/AlertDialogDescription.vue +13 -15
  10. package/dist/runtime/components/alert-dialog/AlertDialogFooter.vue +11 -12
  11. package/dist/runtime/components/alert-dialog/AlertDialogHeader.vue +9 -10
  12. package/dist/runtime/components/alert-dialog/AlertDialogOverlay.vue +11 -15
  13. package/dist/runtime/components/alert-dialog/AlertDialogTitle.vue +13 -15
  14. package/dist/runtime/components/alert-dialog/AlertDialogTrigger.vue +5 -6
  15. package/dist/runtime/components/aspect-ratio/AspectRatio.vue +16 -18
  16. package/dist/runtime/components/combobox/Combobox.vue +145 -144
  17. package/dist/runtime/components/combobox/ComboboxAnchor.vue +18 -20
  18. package/dist/runtime/components/combobox/ComboboxEmpty.vue +16 -18
  19. package/dist/runtime/components/combobox/ComboboxGroup.vue +19 -25
  20. package/dist/runtime/components/combobox/ComboboxInput.vue +24 -38
  21. package/dist/runtime/components/combobox/ComboboxItem.vue +22 -23
  22. package/dist/runtime/components/combobox/ComboboxItemIndicator.vue +23 -23
  23. package/dist/runtime/components/combobox/ComboboxLabel.vue +10 -16
  24. package/dist/runtime/components/combobox/ComboboxList.vue +25 -43
  25. package/dist/runtime/components/combobox/ComboboxSeparator.vue +16 -18
  26. package/dist/runtime/components/combobox/ComboboxTrigger.vue +52 -75
  27. package/dist/runtime/components/combobox/ComboboxViewport.vue +18 -20
  28. package/dist/runtime/components/data/table/Table.vue +186 -206
  29. package/dist/runtime/components/data/table/TableBody.vue +15 -15
  30. package/dist/runtime/components/data/table/TableCaption.vue +16 -16
  31. package/dist/runtime/components/data/table/TableCell.vue +19 -20
  32. package/dist/runtime/components/data/table/TableEmpty.vue +27 -27
  33. package/dist/runtime/components/data/table/TableFooter.vue +15 -15
  34. package/dist/runtime/components/data/table/TableHead.vue +17 -18
  35. package/dist/runtime/components/data/table/TableHeader.vue +15 -15
  36. package/dist/runtime/components/data/table/TableLoading.vue +28 -31
  37. package/dist/runtime/components/data/table/TableRow.vue +15 -15
  38. package/dist/runtime/components/elements/Accordion.vue +92 -99
  39. package/dist/runtime/components/elements/Alert.vue +50 -37
  40. package/dist/runtime/components/elements/AvatarGroup.vue +71 -64
  41. package/dist/runtime/components/elements/Badge.vue +20 -19
  42. package/dist/runtime/components/elements/Button.vue +62 -75
  43. package/dist/runtime/components/elements/Icon.vue +4 -4
  44. package/dist/runtime/components/elements/Indicator.vue +29 -25
  45. package/dist/runtime/components/elements/Kbd.vue +12 -13
  46. package/dist/runtime/components/elements/Label.vue +15 -17
  47. package/dist/runtime/components/elements/Link.vue +2 -2
  48. package/dist/runtime/components/elements/Link.vue.d.ts +109 -0
  49. package/dist/runtime/components/elements/Progress.vue +35 -36
  50. package/dist/runtime/components/elements/Separator.vue +26 -31
  51. package/dist/runtime/components/elements/Skeleton.vue +11 -15
  52. package/dist/runtime/components/elements/Toggle.vue +26 -48
  53. package/dist/runtime/components/elements/avatar/Avatar.vue +22 -31
  54. package/dist/runtime/components/elements/avatar/AvatarFallback.vue +17 -26
  55. package/dist/runtime/components/elements/avatar/AvatarImage.vue +11 -20
  56. package/dist/runtime/components/elements/card/Card.vue +24 -28
  57. package/dist/runtime/components/elements/card/CardContent.vue +9 -10
  58. package/dist/runtime/components/elements/card/CardDescription.vue +9 -10
  59. package/dist/runtime/components/elements/card/CardFooter.vue +9 -10
  60. package/dist/runtime/components/elements/card/CardHeader.vue +9 -10
  61. package/dist/runtime/components/elements/card/CardTitle.vue +11 -12
  62. package/dist/runtime/components/elements/collapsible/Collapsible.vue +11 -15
  63. package/dist/runtime/components/elements/collapsible/CollapsibleContent.vue +9 -12
  64. package/dist/runtime/components/elements/collapsible/CollapsibleTrigger.vue +5 -6
  65. package/dist/runtime/components/elements/dialog/Dialog.vue +35 -43
  66. package/dist/runtime/components/elements/dialog/DialogClose.vue +11 -34
  67. package/dist/runtime/components/elements/dialog/DialogContent.vue +35 -40
  68. package/dist/runtime/components/elements/dialog/DialogDescription.vue +15 -16
  69. package/dist/runtime/components/elements/dialog/DialogFooter.vue +9 -10
  70. package/dist/runtime/components/elements/dialog/DialogHeader.vue +9 -10
  71. package/dist/runtime/components/elements/dialog/DialogOverlay.vue +11 -13
  72. package/dist/runtime/components/elements/dialog/DialogScrollContent.vue +37 -39
  73. package/dist/runtime/components/elements/dialog/DialogTitle.vue +17 -19
  74. package/dist/runtime/components/elements/dropdown-menu/DropdownMenu.vue +38 -85
  75. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuContent.vue +26 -43
  76. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuGroup.vue +10 -14
  77. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuItem.vue +33 -58
  78. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuLabel.vue +19 -21
  79. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuRoot.vue +9 -13
  80. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSeparator.vue +18 -25
  81. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuShortcut.vue +9 -12
  82. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSub.vue +13 -9
  83. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSubContent.vue +21 -36
  84. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSubTrigger.vue +27 -52
  85. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuTrigger.vue +17 -44
  86. package/dist/runtime/components/elements/pagination/Pagination.vue +31 -51
  87. package/dist/runtime/components/elements/pagination/PaginationEllipsis.vue +25 -27
  88. package/dist/runtime/components/elements/pagination/PaginationFirst.vue +25 -45
  89. package/dist/runtime/components/elements/pagination/PaginationLast.vue +25 -45
  90. package/dist/runtime/components/elements/pagination/PaginationListItem.vue +27 -50
  91. package/dist/runtime/components/elements/pagination/PaginationNext.vue +25 -45
  92. package/dist/runtime/components/elements/pagination/PaginationPrev.vue +25 -45
  93. package/dist/runtime/components/elements/popover/Popover.vue +16 -15
  94. package/dist/runtime/components/elements/popover/PopoverContent.vue +31 -39
  95. package/dist/runtime/components/elements/tabs/Tabs.vue +21 -32
  96. package/dist/runtime/components/elements/tabs/TabsContent.vue +18 -22
  97. package/dist/runtime/components/elements/tabs/TabsList.vue +14 -19
  98. package/dist/runtime/components/elements/tabs/TabsRoot.vue +13 -22
  99. package/dist/runtime/components/elements/tabs/TabsTrigger.vue +19 -47
  100. package/dist/runtime/components/elements/tooltip/Tooltip.vue +24 -36
  101. package/dist/runtime/components/elements/tooltip/TooltipContent.vue +27 -37
  102. package/dist/runtime/components/elements/tooltip/TooltipProvider.vue +7 -10
  103. package/dist/runtime/components/elements/tooltip/TooltipRoot.vue +9 -13
  104. package/dist/runtime/components/elements/tooltip/TooltipTrigger.vue +5 -34
  105. package/dist/runtime/components/forms/Checkbox.vue +42 -49
  106. package/dist/runtime/components/forms/FormGroup.vue +33 -40
  107. package/dist/runtime/components/forms/Input.vue +134 -118
  108. package/dist/runtime/components/forms/Slider.vue +33 -48
  109. package/dist/runtime/components/forms/Switch.vue +42 -43
  110. package/dist/runtime/components/forms/form/FormControl.vue +5 -4
  111. package/dist/runtime/components/forms/form/FormDescription.vue +12 -12
  112. package/dist/runtime/components/forms/form/FormField.vue +56 -65
  113. package/dist/runtime/components/forms/form/FormItem.vue +14 -14
  114. package/dist/runtime/components/forms/form/FormLabel.vue +13 -17
  115. package/dist/runtime/components/forms/form/FormMessage.vue +14 -14
  116. package/dist/runtime/components/forms/radio-group/RadioGroup.vue +62 -66
  117. package/dist/runtime/components/forms/radio-group/RadioGroupItem.vue +54 -60
  118. package/dist/runtime/components/forms/select/Select.vue +63 -81
  119. package/dist/runtime/components/forms/select/SelectContent.vue +38 -55
  120. package/dist/runtime/components/forms/select/SelectGroup.vue +16 -18
  121. package/dist/runtime/components/forms/select/SelectItem.vue +25 -31
  122. package/dist/runtime/components/forms/select/SelectItemIndicator.vue +15 -17
  123. package/dist/runtime/components/forms/select/SelectItemText.vue +5 -9
  124. package/dist/runtime/components/forms/select/SelectLabel.vue +10 -15
  125. package/dist/runtime/components/forms/select/SelectScrollDownButton.vue +19 -20
  126. package/dist/runtime/components/forms/select/SelectScrollUpButton.vue +19 -20
  127. package/dist/runtime/components/forms/select/SelectSeparator.vue +16 -18
  128. package/dist/runtime/components/forms/select/SelectTrigger.vue +54 -78
  129. package/dist/runtime/components/forms/select/SelectValue.vue +10 -15
  130. package/dist/runtime/components/misc/ThemeSwitcher.vue +69 -51
  131. package/dist/runtime/components/navigation/breadcrumb/Breadcrumb.vue +22 -35
  132. package/dist/runtime/components/navigation/breadcrumb/BreadcrumbEllipsis.vue +14 -13
  133. package/dist/runtime/components/navigation/breadcrumb/BreadcrumbItem.vue +9 -10
  134. package/dist/runtime/components/navigation/breadcrumb/BreadcrumbLink.vue +26 -46
  135. package/dist/runtime/components/navigation/breadcrumb/BreadcrumbList.vue +9 -10
  136. package/dist/runtime/components/navigation/breadcrumb/BreadcrumbPage.vue +7 -5
  137. package/dist/runtime/components/navigation/breadcrumb/BreadcrumbRoot.vue +8 -9
  138. package/dist/runtime/components/navigation/breadcrumb/BreadcrumbSeparator.vue +13 -13
  139. package/dist/runtime/components/navigation-menu/NavigationMenu.vue +32 -52
  140. package/dist/runtime/components/navigation-menu/NavigationMenuContent.vue +19 -22
  141. package/dist/runtime/components/navigation-menu/NavigationMenuContentItem.vue +24 -53
  142. package/dist/runtime/components/navigation-menu/NavigationMenuIndicator.vue +15 -18
  143. package/dist/runtime/components/navigation-menu/NavigationMenuItem.vue +5 -40
  144. package/dist/runtime/components/navigation-menu/NavigationMenuLink.vue +28 -51
  145. package/dist/runtime/components/navigation-menu/NavigationMenuList.vue +22 -24
  146. package/dist/runtime/components/navigation-menu/NavigationMenuTrigger.vue +34 -54
  147. package/dist/runtime/components/navigation-menu/NavigationMenuViewport.vue +26 -29
  148. package/dist/runtime/components/overlays/Toaster.vue +16 -19
  149. package/dist/runtime/components/overlays/toast/Toast.vue +38 -58
  150. package/dist/runtime/components/overlays/toast/ToastAction.vue +19 -42
  151. package/dist/runtime/components/overlays/toast/ToastClose.vue +20 -21
  152. package/dist/runtime/components/overlays/toast/ToastDescription.vue +16 -17
  153. package/dist/runtime/components/overlays/toast/ToastInfo.vue +9 -10
  154. package/dist/runtime/components/overlays/toast/ToastProvider.vue +7 -8
  155. package/dist/runtime/components/overlays/toast/ToastTitle.vue +16 -17
  156. package/dist/runtime/components/overlays/toast/ToastViewport.vue +16 -19
  157. package/dist/runtime/components/resizable/ResizableHandle.vue +36 -36
  158. package/dist/runtime/components/resizable/ResizablePanel.vue +17 -24
  159. package/dist/runtime/components/resizable/ResizablePanelGroup.vue +17 -22
  160. package/dist/runtime/components/scroll-area/ScrollArea.vue +23 -31
  161. package/dist/runtime/components/scroll-area/ScrollBar.vue +25 -29
  162. package/dist/runtime/components/sheet/Sheet.vue +29 -40
  163. package/dist/runtime/components/sheet/SheetClose.vue +12 -34
  164. package/dist/runtime/components/sheet/SheetContent.vue +29 -35
  165. package/dist/runtime/components/sheet/SheetDescription.vue +13 -13
  166. package/dist/runtime/components/sheet/SheetFooter.vue +11 -12
  167. package/dist/runtime/components/sheet/SheetHeader.vue +7 -8
  168. package/dist/runtime/components/sheet/SheetTitle.vue +12 -13
  169. package/dist/runtime/components/sheet/SheetTrigger.vue +7 -6
  170. package/dist/runtime/components/sidebar/Sidebar.vue +52 -48
  171. package/dist/runtime/components/sidebar/SidebarContent.vue +10 -11
  172. package/dist/runtime/components/sidebar/SidebarFooter.vue +9 -10
  173. package/dist/runtime/components/sidebar/SidebarGroup.vue +10 -12
  174. package/dist/runtime/components/sidebar/SidebarGroupAction.vue +13 -13
  175. package/dist/runtime/components/sidebar/SidebarGroupContent.vue +9 -10
  176. package/dist/runtime/components/sidebar/SidebarGroupLabel.vue +13 -13
  177. package/dist/runtime/components/sidebar/SidebarHeader.vue +9 -10
  178. package/dist/runtime/components/sidebar/SidebarInput.vue +10 -26
  179. package/dist/runtime/components/sidebar/SidebarInset.vue +9 -10
  180. package/dist/runtime/components/sidebar/SidebarMenu.vue +14 -16
  181. package/dist/runtime/components/sidebar/SidebarMenuAction.vue +13 -15
  182. package/dist/runtime/components/sidebar/SidebarMenuBadge.vue +9 -10
  183. package/dist/runtime/components/sidebar/SidebarMenuButton.vue +28 -27
  184. package/dist/runtime/components/sidebar/SidebarMenuButtonChild.vue +41 -29
  185. package/dist/runtime/components/sidebar/SidebarMenuItem.vue +9 -10
  186. package/dist/runtime/components/sidebar/SidebarMenuSkeleton.vue +14 -15
  187. package/dist/runtime/components/sidebar/SidebarMenuSub.vue +9 -10
  188. package/dist/runtime/components/sidebar/SidebarMenuSubButton.vue +17 -19
  189. package/dist/runtime/components/sidebar/SidebarMenuSubItem.vue +9 -10
  190. package/dist/runtime/components/sidebar/SidebarProvider.vue +55 -38
  191. package/dist/runtime/components/sidebar/SidebarRail.vue +12 -12
  192. package/dist/runtime/components/sidebar/SidebarSeparator.vue +10 -11
  193. package/dist/runtime/components/sidebar/SidebarTrigger.vue +18 -38
  194. package/dist/types.d.mts +5 -3
  195. package/dist/types.d.ts +7 -0
  196. package/dist/una.config.d.ts +8 -0
  197. package/dist/una.config.mjs +1 -1
  198. package/package.json +9 -9
  199. package/dist/runtime/components/alert-dialog/AlertDialog.vue.d.ts +0 -45
  200. package/dist/runtime/components/alert-dialog/AlertDialogAction.vue.d.ts +0 -16
  201. package/dist/runtime/components/alert-dialog/AlertDialogCancel.vue.d.ts +0 -16
  202. package/dist/runtime/components/alert-dialog/AlertDialogContent.vue.d.ts +0 -45
  203. package/dist/runtime/components/alert-dialog/AlertDialogDescription.vue.d.ts +0 -13
  204. package/dist/runtime/components/alert-dialog/AlertDialogFooter.vue.d.ts +0 -13
  205. package/dist/runtime/components/alert-dialog/AlertDialogHeader.vue.d.ts +0 -13
  206. package/dist/runtime/components/alert-dialog/AlertDialogOverlay.vue.d.ts +0 -13
  207. package/dist/runtime/components/alert-dialog/AlertDialogTitle.vue.d.ts +0 -13
  208. package/dist/runtime/components/alert-dialog/AlertDialogTrigger.vue.d.ts +0 -13
  209. package/dist/runtime/components/aspect-ratio/AspectRatio.vue.d.ts +0 -18
  210. package/dist/runtime/components/combobox/Combobox.vue.d.ts +0 -89
  211. package/dist/runtime/components/combobox/ComboboxAnchor.vue.d.ts +0 -13
  212. package/dist/runtime/components/combobox/ComboboxEmpty.vue.d.ts +0 -13
  213. package/dist/runtime/components/combobox/ComboboxGroup.vue.d.ts +0 -17
  214. package/dist/runtime/components/combobox/ComboboxInput.vue.d.ts +0 -16
  215. package/dist/runtime/components/combobox/ComboboxItem.vue.d.ts +0 -18
  216. package/dist/runtime/components/combobox/ComboboxItemIndicator.vue.d.ts +0 -15
  217. package/dist/runtime/components/combobox/ComboboxLabel.vue.d.ts +0 -13
  218. package/dist/runtime/components/combobox/ComboboxList.vue.d.ts +0 -43
  219. package/dist/runtime/components/combobox/ComboboxSeparator.vue.d.ts +0 -13
  220. package/dist/runtime/components/combobox/ComboboxTrigger.vue.d.ts +0 -17
  221. package/dist/runtime/components/combobox/ComboboxViewport.vue.d.ts +0 -13
  222. package/dist/runtime/components/data/table/Table.vue.d.ts +0 -184
  223. package/dist/runtime/components/data/table/TableBody.vue.d.ts +0 -15
  224. package/dist/runtime/components/data/table/TableCaption.vue.d.ts +0 -15
  225. package/dist/runtime/components/data/table/TableCell.vue.d.ts +0 -15
  226. package/dist/runtime/components/data/table/TableEmpty.vue.d.ts +0 -15
  227. package/dist/runtime/components/data/table/TableFooter.vue.d.ts +0 -15
  228. package/dist/runtime/components/data/table/TableHead.vue.d.ts +0 -15
  229. package/dist/runtime/components/data/table/TableHeader.vue.d.ts +0 -15
  230. package/dist/runtime/components/data/table/TableLoading.vue.d.ts +0 -15
  231. package/dist/runtime/components/data/table/TableRow.vue.d.ts +0 -15
  232. package/dist/runtime/components/elements/Accordion.vue.d.ts +0 -28
  233. package/dist/runtime/components/elements/Alert.vue.d.ts +0 -22
  234. package/dist/runtime/components/elements/AvatarGroup.vue.d.ts +0 -11
  235. package/dist/runtime/components/elements/Badge.vue.d.ts +0 -26
  236. package/dist/runtime/components/elements/Button.vue.d.ts +0 -34
  237. package/dist/runtime/components/elements/Icon.vue.d.ts +0 -3
  238. package/dist/runtime/components/elements/Indicator.vue.d.ts +0 -19
  239. package/dist/runtime/components/elements/Kbd.vue.d.ts +0 -13
  240. package/dist/runtime/components/elements/Label.vue.d.ts +0 -13
  241. package/dist/runtime/components/elements/Progress.vue.d.ts +0 -18
  242. package/dist/runtime/components/elements/Separator.vue.d.ts +0 -15
  243. package/dist/runtime/components/elements/Skeleton.vue.d.ts +0 -13
  244. package/dist/runtime/components/elements/Toggle.vue.d.ts +0 -22
  245. package/dist/runtime/components/elements/avatar/Avatar.vue.d.ts +0 -21
  246. package/dist/runtime/components/elements/avatar/AvatarFallback.vue.d.ts +0 -13
  247. package/dist/runtime/components/elements/avatar/AvatarImage.vue.d.ts +0 -3
  248. package/dist/runtime/components/elements/card/Card.vue.d.ts +0 -25
  249. package/dist/runtime/components/elements/card/CardContent.vue.d.ts +0 -13
  250. package/dist/runtime/components/elements/card/CardDescription.vue.d.ts +0 -13
  251. package/dist/runtime/components/elements/card/CardFooter.vue.d.ts +0 -13
  252. package/dist/runtime/components/elements/card/CardHeader.vue.d.ts +0 -13
  253. package/dist/runtime/components/elements/card/CardTitle.vue.d.ts +0 -13
  254. package/dist/runtime/components/elements/collapsible/Collapsible.vue.d.ts +0 -25
  255. package/dist/runtime/components/elements/collapsible/CollapsibleContent.vue.d.ts +0 -13
  256. package/dist/runtime/components/elements/collapsible/CollapsibleTrigger.vue.d.ts +0 -13
  257. package/dist/runtime/components/elements/dialog/Dialog.vue.d.ts +0 -34
  258. package/dist/runtime/components/elements/dialog/DialogClose.vue.d.ts +0 -18
  259. package/dist/runtime/components/elements/dialog/DialogContent.vue.d.ts +0 -46
  260. package/dist/runtime/components/elements/dialog/DialogDescription.vue.d.ts +0 -13
  261. package/dist/runtime/components/elements/dialog/DialogFooter.vue.d.ts +0 -13
  262. package/dist/runtime/components/elements/dialog/DialogHeader.vue.d.ts +0 -13
  263. package/dist/runtime/components/elements/dialog/DialogOverlay.vue.d.ts +0 -13
  264. package/dist/runtime/components/elements/dialog/DialogScrollContent.vue.d.ts +0 -46
  265. package/dist/runtime/components/elements/dialog/DialogTitle.vue.d.ts +0 -13
  266. package/dist/runtime/components/elements/dropdown-menu/DropdownMenu.vue.d.ts +0 -61
  267. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuContent.vue.d.ts +0 -43
  268. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuGroup.vue.d.ts +0 -13
  269. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuItem.vue.d.ts +0 -14
  270. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuLabel.vue.d.ts +0 -13
  271. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuRoot.vue.d.ts +0 -17
  272. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSeparator.vue.d.ts +0 -3
  273. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuShortcut.vue.d.ts +0 -13
  274. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSub.vue.d.ts +0 -17
  275. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSubContent.vue.d.ts +0 -45
  276. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +0 -16
  277. package/dist/runtime/components/elements/dropdown-menu/DropdownMenuTrigger.vue.d.ts +0 -13
  278. package/dist/runtime/components/elements/pagination/Pagination.vue.d.ts +0 -41
  279. package/dist/runtime/components/elements/pagination/PaginationEllipsis.vue.d.ts +0 -15
  280. package/dist/runtime/components/elements/pagination/PaginationFirst.vue.d.ts +0 -18
  281. package/dist/runtime/components/elements/pagination/PaginationLast.vue.d.ts +0 -18
  282. package/dist/runtime/components/elements/pagination/PaginationListItem.vue.d.ts +0 -17
  283. package/dist/runtime/components/elements/pagination/PaginationNext.vue.d.ts +0 -18
  284. package/dist/runtime/components/elements/pagination/PaginationPrev.vue.d.ts +0 -18
  285. package/dist/runtime/components/elements/popover/Popover.vue.d.ts +0 -21
  286. package/dist/runtime/components/elements/popover/PopoverContent.vue.d.ts +0 -46
  287. package/dist/runtime/components/elements/tabs/Tabs.vue.d.ts +0 -28
  288. package/dist/runtime/components/elements/tabs/TabsContent.vue.d.ts +0 -13
  289. package/dist/runtime/components/elements/tabs/TabsList.vue.d.ts +0 -13
  290. package/dist/runtime/components/elements/tabs/TabsRoot.vue.d.ts +0 -17
  291. package/dist/runtime/components/elements/tabs/TabsTrigger.vue.d.ts +0 -13
  292. package/dist/runtime/components/elements/tooltip/Tooltip.vue.d.ts +0 -19
  293. package/dist/runtime/components/elements/tooltip/TooltipContent.vue.d.ts +0 -22
  294. package/dist/runtime/components/elements/tooltip/TooltipProvider.vue.d.ts +0 -15
  295. package/dist/runtime/components/elements/tooltip/TooltipRoot.vue.d.ts +0 -17
  296. package/dist/runtime/components/elements/tooltip/TooltipTrigger.vue.d.ts +0 -13
  297. package/dist/runtime/components/forms/Checkbox.vue.d.ts +0 -21
  298. package/dist/runtime/components/forms/FormGroup.vue.d.ts +0 -27
  299. package/dist/runtime/components/forms/Input.vue.d.ts +0 -31
  300. package/dist/runtime/components/forms/Slider.vue.d.ts +0 -25
  301. package/dist/runtime/components/forms/Switch.vue.d.ts +0 -27
  302. package/dist/runtime/components/forms/form/FormControl.vue.d.ts +0 -12
  303. package/dist/runtime/components/forms/form/FormDescription.vue.d.ts +0 -13
  304. package/dist/runtime/components/forms/form/FormField.vue.d.ts +0 -25
  305. package/dist/runtime/components/forms/form/FormItem.vue.d.ts +0 -13
  306. package/dist/runtime/components/forms/form/FormLabel.vue.d.ts +0 -13
  307. package/dist/runtime/components/forms/form/FormMessage.vue.d.ts +0 -3
  308. package/dist/runtime/components/forms/radio-group/RadioGroup.vue.d.ts +0 -29
  309. package/dist/runtime/components/forms/radio-group/RadioGroupItem.vue.d.ts +0 -22
  310. package/dist/runtime/components/forms/select/Select.vue.d.ts +0 -72
  311. package/dist/runtime/components/forms/select/SelectContent.vue.d.ts +0 -27
  312. package/dist/runtime/components/forms/select/SelectGroup.vue.d.ts +0 -13
  313. package/dist/runtime/components/forms/select/SelectItem.vue.d.ts +0 -17
  314. package/dist/runtime/components/forms/select/SelectItemIndicator.vue.d.ts +0 -15
  315. package/dist/runtime/components/forms/select/SelectItemText.vue.d.ts +0 -13
  316. package/dist/runtime/components/forms/select/SelectLabel.vue.d.ts +0 -13
  317. package/dist/runtime/components/forms/select/SelectScrollDownButton.vue.d.ts +0 -13
  318. package/dist/runtime/components/forms/select/SelectScrollUpButton.vue.d.ts +0 -13
  319. package/dist/runtime/components/forms/select/SelectSeparator.vue.d.ts +0 -3
  320. package/dist/runtime/components/forms/select/SelectTrigger.vue.d.ts +0 -15
  321. package/dist/runtime/components/forms/select/SelectValue.vue.d.ts +0 -13
  322. package/dist/runtime/components/misc/ThemeSwitcher.vue.d.ts +0 -16
  323. package/dist/runtime/components/navigation/breadcrumb/Breadcrumb.vue.d.ts +0 -45
  324. package/dist/runtime/components/navigation/breadcrumb/BreadcrumbEllipsis.vue.d.ts +0 -16
  325. package/dist/runtime/components/navigation/breadcrumb/BreadcrumbItem.vue.d.ts +0 -13
  326. package/dist/runtime/components/navigation/breadcrumb/BreadcrumbLink.vue.d.ts +0 -18
  327. package/dist/runtime/components/navigation/breadcrumb/BreadcrumbList.vue.d.ts +0 -13
  328. package/dist/runtime/components/navigation/breadcrumb/BreadcrumbPage.vue.d.ts +0 -16
  329. package/dist/runtime/components/navigation/breadcrumb/BreadcrumbRoot.vue.d.ts +0 -13
  330. package/dist/runtime/components/navigation/breadcrumb/BreadcrumbSeparator.vue.d.ts +0 -16
  331. package/dist/runtime/components/navigation-menu/NavigationMenu.vue.d.ts +0 -46
  332. package/dist/runtime/components/navigation-menu/NavigationMenuContent.vue.d.ts +0 -39
  333. package/dist/runtime/components/navigation-menu/NavigationMenuContentItem.vue.d.ts +0 -21
  334. package/dist/runtime/components/navigation-menu/NavigationMenuIndicator.vue.d.ts +0 -13
  335. package/dist/runtime/components/navigation-menu/NavigationMenuItem.vue.d.ts +0 -13
  336. package/dist/runtime/components/navigation-menu/NavigationMenuLink.vue.d.ts +0 -27
  337. package/dist/runtime/components/navigation-menu/NavigationMenuList.vue.d.ts +0 -13
  338. package/dist/runtime/components/navigation-menu/NavigationMenuTrigger.vue.d.ts +0 -18
  339. package/dist/runtime/components/navigation-menu/NavigationMenuViewport.vue.d.ts +0 -3
  340. package/dist/runtime/components/overlays/Toaster.vue.d.ts +0 -13
  341. package/dist/runtime/components/overlays/toast/Toast.vue.d.ts +0 -112
  342. package/dist/runtime/components/overlays/toast/ToastAction.vue.d.ts +0 -16
  343. package/dist/runtime/components/overlays/toast/ToastClose.vue.d.ts +0 -3
  344. package/dist/runtime/components/overlays/toast/ToastDescription.vue.d.ts +0 -13
  345. package/dist/runtime/components/overlays/toast/ToastInfo.vue.d.ts +0 -13
  346. package/dist/runtime/components/overlays/toast/ToastProvider.vue.d.ts +0 -15
  347. package/dist/runtime/components/overlays/toast/ToastTitle.vue.d.ts +0 -13
  348. package/dist/runtime/components/overlays/toast/ToastViewport.vue.d.ts +0 -3
  349. package/dist/runtime/components/resizable/ResizableHandle.vue.d.ts +0 -21
  350. package/dist/runtime/components/resizable/ResizablePanel.vue.d.ts +0 -24
  351. package/dist/runtime/components/resizable/ResizablePanelGroup.vue.d.ts +0 -19
  352. package/dist/runtime/components/scroll-area/ScrollArea.vue.d.ts +0 -17
  353. package/dist/runtime/components/scroll-area/ScrollBar.vue.d.ts +0 -6
  354. package/dist/runtime/components/sheet/Sheet.vue.d.ts +0 -36
  355. package/dist/runtime/components/sheet/SheetClose.vue.d.ts +0 -42
  356. package/dist/runtime/components/sheet/SheetContent.vue.d.ts +0 -68
  357. package/dist/runtime/components/sheet/SheetDescription.vue.d.ts +0 -12
  358. package/dist/runtime/components/sheet/SheetFooter.vue.d.ts +0 -12
  359. package/dist/runtime/components/sheet/SheetHeader.vue.d.ts +0 -12
  360. package/dist/runtime/components/sheet/SheetTitle.vue.d.ts +0 -12
  361. package/dist/runtime/components/sheet/SheetTrigger.vue.d.ts +0 -15
  362. package/dist/runtime/components/sidebar/Sidebar.vue.d.ts +0 -24
  363. package/dist/runtime/components/sidebar/SidebarContent.vue.d.ts +0 -12
  364. package/dist/runtime/components/sidebar/SidebarFooter.vue.d.ts +0 -12
  365. package/dist/runtime/components/sidebar/SidebarGroup.vue.d.ts +0 -16
  366. package/dist/runtime/components/sidebar/SidebarGroupAction.vue.d.ts +0 -36
  367. package/dist/runtime/components/sidebar/SidebarGroupContent.vue.d.ts +0 -12
  368. package/dist/runtime/components/sidebar/SidebarGroupLabel.vue.d.ts +0 -36
  369. package/dist/runtime/components/sidebar/SidebarHeader.vue.d.ts +0 -12
  370. package/dist/runtime/components/sidebar/SidebarInput.vue.d.ts +0 -12
  371. package/dist/runtime/components/sidebar/SidebarInset.vue.d.ts +0 -12
  372. package/dist/runtime/components/sidebar/SidebarMenu.vue.d.ts +0 -22
  373. package/dist/runtime/components/sidebar/SidebarMenuAction.vue.d.ts +0 -34
  374. package/dist/runtime/components/sidebar/SidebarMenuBadge.vue.d.ts +0 -12
  375. package/dist/runtime/components/sidebar/SidebarMenuButton.vue.d.ts +0 -19
  376. package/dist/runtime/components/sidebar/SidebarMenuButtonChild.vue.d.ts +0 -31
  377. package/dist/runtime/components/sidebar/SidebarMenuItem.vue.d.ts +0 -12
  378. package/dist/runtime/components/sidebar/SidebarMenuSkeleton.vue.d.ts +0 -12
  379. package/dist/runtime/components/sidebar/SidebarMenuSub.vue.d.ts +0 -12
  380. package/dist/runtime/components/sidebar/SidebarMenuSubButton.vue.d.ts +0 -16
  381. package/dist/runtime/components/sidebar/SidebarMenuSubItem.vue.d.ts +0 -12
  382. package/dist/runtime/components/sidebar/SidebarProvider.vue.d.ts +0 -20
  383. package/dist/runtime/components/sidebar/SidebarRail.vue.d.ts +0 -12
  384. package/dist/runtime/components/sidebar/SidebarSeparator.vue.d.ts +0 -12
  385. package/dist/runtime/components/sidebar/SidebarTrigger.vue.d.ts +0 -30
@@ -1,65 +1,45 @@
1
- <script setup>
2
- import { reactiveOmit } from "@vueuse/core";
1
+ <script setup lang="ts">
2
+ import type { NNavigationMenuTriggerProps } from '../../types'
3
+ import { reactiveOmit } from '@vueuse/core'
3
4
  import {
4
5
  NavigationMenuTrigger,
5
- useForwardProps
6
- } from "reka-ui";
7
- import { cn } from "../../utils";
8
- import Button from "../elements/Button.vue";
6
+ useForwardProps,
7
+ } from 'reka-ui'
8
+ import { cn } from '../../utils'
9
+ import Button from '../elements/Button.vue'
10
+
9
11
  defineOptions({
10
- inheritAttrs: false
11
- });
12
- const props = defineProps({
13
- navigationMenu: { type: String, required: false, default: "ghost-white" },
14
- una: { type: Object, required: false },
15
- disabled: { type: Boolean, required: false },
16
- asChild: { type: Boolean, required: false },
17
- as: { type: null, required: false, default: Button },
18
- type: { type: String, required: false },
19
- loadingPlacement: { type: String, required: false },
20
- icon: { type: Boolean, required: false },
21
- reverse: { type: Boolean, required: false },
22
- loading: { type: Boolean, required: false },
23
- block: { type: Boolean, required: false },
24
- to: { type: null, required: false },
25
- label: { type: String, required: false },
26
- btn: { type: String, required: false, default: "~" },
27
- leading: { type: String, required: false },
28
- trailing: { type: String, required: false, default: "navigation-menu-trigger-trailing-icon" },
29
- size: { type: String, required: false },
30
- square: { type: null, required: false },
31
- rounded: { type: null, required: false },
32
- class: { type: null, required: false },
33
- breadcrumbActive: { type: String, required: false },
34
- breadcrumbInactive: { type: String, required: false },
35
- paginationSelected: { type: String, required: false },
36
- paginationUnselected: { type: String, required: false },
37
- dropdownMenu: { type: String, required: false },
38
- toggleOn: { type: String, required: false },
39
- toggleOff: { type: String, required: false },
40
- navigationMenuLink: { type: String, required: false },
41
- ariaLabel: { type: String, required: false }
42
- });
43
- const delegatedProps = reactiveOmit(props, "class");
44
- const forwardedProps = useForwardProps(delegatedProps);
12
+ inheritAttrs: false,
13
+ })
14
+
15
+ const props = withDefaults(defineProps<NNavigationMenuTriggerProps>(), {
16
+ btn: '~',
17
+ navigationMenu: 'ghost-white',
18
+ trailing: 'navigation-menu-trigger-trailing-icon',
19
+ as: Button,
20
+ })
21
+
22
+ const delegatedProps = reactiveOmit(props, 'class')
23
+
24
+ const forwardedProps = useForwardProps(delegatedProps)
45
25
  </script>
46
26
 
47
27
  <template>
48
28
  <NavigationMenuTrigger
49
29
  v-bind="!props.asChild ? {
50
- ...$attrs,
51
- ...forwardedProps,
52
- class: cn(
53
- 'navigation-menu-trigger group',
54
- props.una?.navigationMenuTrigger,
55
- props.class
56
- ),
57
- navigationMenu: btn === '~' ? navigationMenu : void 0,
58
- una: {
59
- btnTrailing: cn('navigation-menu-trigger-trailing', forwardedProps.una?.btnTrailing),
60
- ...props.una
61
- }
62
- } : {}"
30
+ ...$attrs,
31
+ ...forwardedProps,
32
+ class: cn(
33
+ 'navigation-menu-trigger group',
34
+ props.una?.navigationMenuTrigger,
35
+ props.class,
36
+ ),
37
+ navigationMenu: btn === '~' ? navigationMenu : undefined,
38
+ una: {
39
+ btnTrailing: cn('navigation-menu-trigger-trailing', forwardedProps.una?.btnTrailing),
40
+ ...props.una,
41
+ },
42
+ } : {}"
63
43
  :as-child="props.asChild"
64
44
  :as="props.as"
65
45
  :disabled
@@ -1,42 +1,39 @@
1
- <script setup>
2
- import { reactiveOmit } from "@vueuse/core";
3
- import { NavigationMenuViewport, useForwardProps } from "reka-ui";
4
- import { cn } from "../../utils";
1
+ <script setup lang="ts">
2
+ import type { NNavigationMenuViewportProps } from '../../types'
3
+ import { reactiveOmit } from '@vueuse/core'
4
+ import { NavigationMenuViewport, useForwardProps } from 'reka-ui'
5
+ import { cn } from '../../utils'
6
+
5
7
  defineOptions({
6
- inheritAttrs: false
7
- });
8
- const props = defineProps({
9
- una: { type: Object, required: false },
10
- forceMount: { type: Boolean, required: false },
11
- align: { type: String, required: false },
12
- asChild: { type: Boolean, required: false },
13
- as: { type: null, required: false },
14
- orientation: { type: String, required: false },
15
- class: { type: null, required: false }
16
- });
17
- const delegatedProps = reactiveOmit(props, "class");
18
- const forwardedProps = useForwardProps(delegatedProps);
8
+ inheritAttrs: false,
9
+ })
10
+
11
+ const props = defineProps<NNavigationMenuViewportProps>()
12
+
13
+ const delegatedProps = reactiveOmit(props, 'class')
14
+
15
+ const forwardedProps = useForwardProps(delegatedProps)
19
16
  </script>
20
17
 
21
18
  <template>
22
19
  <div
23
20
  :class="cn(
24
- 'navigation-menu-viewport-wrapper',
25
- props.orientation === 'horizontal' && 'navigation-menu-viewport-wrapper-horizontal',
26
- props.orientation === 'vertical' && 'navigation-menu-viewport-wrapper-vertical',
27
- props.una?.navigationMenuViewportWrapper,
28
- props.class
29
- )"
21
+ 'navigation-menu-viewport-wrapper',
22
+ props.orientation === 'horizontal' && 'navigation-menu-viewport-wrapper-horizontal',
23
+ props.orientation === 'vertical' && 'navigation-menu-viewport-wrapper-vertical',
24
+ props.una?.navigationMenuViewportWrapper,
25
+ props.class,
26
+ )"
30
27
  >
31
28
  <NavigationMenuViewport
32
29
  v-bind="{ ...forwardedProps, ...$attrs }"
33
30
  :class="
34
- cn(
35
- 'navigation-menu-viewport',
36
- 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90',
37
- props.una?.navigationMenuViewport
38
- )
39
- "
31
+ cn(
32
+ 'navigation-menu-viewport',
33
+ 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90',
34
+ props.una?.navigationMenuViewport,
35
+ )
36
+ "
40
37
  />
41
38
  </div>
42
39
  </template>
@@ -1,23 +1,20 @@
1
- <script setup>
2
- import { reactivePick } from "@vueuse/core";
3
- import { useToast } from "../../composables/useToast";
4
- import Toast from "./toast/Toast.vue";
5
- import ToastProvider from "./toast/ToastProvider.vue";
6
- import ToastViewport from "./toast/ToastViewport.vue";
1
+ <script setup lang="ts">
2
+ import type { NToasterProps } from '../../types'
3
+ import { reactivePick } from '@vueuse/core'
4
+ import { useToast } from '../../composables/useToast'
5
+ import Toast from './toast/Toast.vue'
6
+ import ToastProvider from './toast/ToastProvider.vue'
7
+ import ToastViewport from './toast/ToastViewport.vue'
8
+
7
9
  defineOptions({
8
- inheritAttrs: false
9
- });
10
- const props = defineProps({
11
- _toastViewport: { type: Object, required: false },
12
- _toast: { type: Object, required: false },
13
- class: { type: null, required: false },
14
- label: { type: String, required: false },
15
- duration: { type: Number, required: false },
16
- swipeDirection: { type: String, required: false },
17
- swipeThreshold: { type: Number, required: false }
18
- });
19
- const rootProps = reactivePick(props, ["duration", "label", "swipeDirection", "swipeThreshold"]);
20
- const { toasts } = useToast();
10
+ inheritAttrs: false,
11
+ })
12
+
13
+ const props = defineProps<NToasterProps>()
14
+
15
+ const rootProps = reactivePick(props, ['duration', 'label', 'swipeDirection', 'swipeThreshold'])
16
+
17
+ const { toasts } = useToast()
21
18
  </script>
22
19
 
23
20
  <template>
@@ -1,59 +1,39 @@
1
- <script setup>
2
- import { reactivePick } from "@vueuse/core";
3
- import { ToastRoot, useForwardPropsEmits } from "reka-ui";
4
- import { cn } from "../../../utils";
5
- import Icon from "../../elements/Icon.vue";
6
- import Progress from "../../elements/Progress.vue";
7
- import ToastAction from "./ToastAction.vue";
8
- import ToastClose from "./ToastClose.vue";
9
- import ToastDescription from "./ToastDescription.vue";
10
- import ToastInfo from "./ToastInfo.vue";
11
- import ToastTitle from "./ToastTitle.vue";
1
+ <script setup lang="ts">
2
+ import type { ToastRootEmits } from 'reka-ui'
3
+ import type { NToastProps } from '../../../types'
4
+ import { reactivePick } from '@vueuse/core'
5
+ import { ToastRoot, useForwardPropsEmits } from 'reka-ui'
6
+
7
+ import { cn } from '../../../utils'
8
+ import Icon from '../../elements/Icon.vue'
9
+ import Progress from '../../elements/Progress.vue'
10
+ import ToastAction from './ToastAction.vue'
11
+ import ToastClose from './ToastClose.vue'
12
+ import ToastDescription from './ToastDescription.vue'
13
+ import ToastInfo from './ToastInfo.vue'
14
+ import ToastTitle from './ToastTitle.vue'
15
+
12
16
  defineOptions({
13
- inheritAttrs: false
14
- });
15
- const props = defineProps({
16
- toast: { type: null, required: false, default: "solid-white" },
17
- leading: { type: null, required: false },
18
- title: { type: String, required: false },
19
- description: { type: String, required: false },
20
- closable: { type: Boolean, required: false, default: true },
21
- actions: { type: Array, required: false },
22
- toasts: { type: Array, required: false },
23
- size: { type: String, required: false },
24
- showProgress: { type: Boolean, required: false },
25
- _toastProvider: { type: Object, required: false },
26
- _toastTitle: { type: Object, required: false },
27
- _toastDescription: { type: Object, required: false },
28
- _toastViewport: { type: Object, required: false },
29
- _toastAction: { type: Object, required: false },
30
- _toastClose: { type: Object, required: false },
31
- _toastInfo: { type: Object, required: false },
32
- _progress: { type: Object, required: false },
33
- una: { type: Object, required: false },
34
- onOpenChange: { type: Function, required: false, skipCheck: true },
35
- class: { type: null, required: false },
36
- progress: { type: null, required: false },
37
- defaultOpen: { type: Boolean, required: false },
38
- forceMount: { type: Boolean, required: false },
39
- type: { type: String, required: false },
40
- open: { type: Boolean, required: false },
41
- duration: { type: Number, required: false },
42
- asChild: { type: Boolean, required: false },
43
- as: { type: null, required: false }
44
- });
45
- const emits = defineEmits(["escapeKeyDown", "pause", "resume", "swipeStart", "swipeMove", "swipeCancel", "swipeEnd", "update:open"]);
46
- const rootProps = useForwardPropsEmits(reactivePick(props, "as", "asChild", "defaultOpen", "open", "duration", "type", "forceMount"), emits);
17
+ inheritAttrs: false,
18
+ })
19
+
20
+ const props = withDefaults(defineProps<NToastProps>(), {
21
+ toast: 'solid-white',
22
+ closable: true,
23
+ })
24
+
25
+ const emits = defineEmits<ToastRootEmits>()
26
+ const rootProps = useForwardPropsEmits(reactivePick(props, 'as', 'asChild', 'defaultOpen', 'open', 'duration', 'type', 'forceMount'), emits)
47
27
  </script>
48
28
 
49
29
  <template>
50
30
  <ToastRoot
51
31
  v-slot="{ remaining, duration }"
52
32
  :class="cn(
53
- 'group toast data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--reka-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--reka-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full',
54
- props.una?.toast,
55
- props.class
56
- )"
33
+ 'group toast data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--reka-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--reka-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full',
34
+ props.una?.toast,
35
+ props.class,
36
+ )"
57
37
  v-bind="{ ...rootProps, ...$attrs }"
58
38
  :toast
59
39
  @update:open="onOpenChange"
@@ -63,17 +43,17 @@ const rootProps = useForwardPropsEmits(reactivePick(props, "as", "asChild", "def
63
43
  v-if="leading"
64
44
  :name="leading"
65
45
  :class="cn(
66
- 'toast-leading',
67
- props.una?.toastLeading
68
- )"
46
+ 'toast-leading',
47
+ props.una?.toastLeading,
48
+ )"
69
49
  />
70
50
  </slot>
71
51
 
72
52
  <div
73
53
  :class="cn(
74
- 'toast-wrapper',
75
- props.una?.toastWrapper
76
- )"
54
+ 'toast-wrapper',
55
+ props.una?.toastWrapper,
56
+ )"
77
57
  >
78
58
  <slot>
79
59
  <ToastInfo
@@ -135,9 +115,9 @@ const rootProps = useForwardPropsEmits(reactivePick(props, "as", "asChild", "def
135
115
  :progress
136
116
  v-bind="_progress"
137
117
  :class="cn(
138
- 'toast-progress bg-transparent',
139
- props.una?.toastProgress
140
- )"
118
+ 'toast-progress bg-transparent',
119
+ props.una?.toastProgress,
120
+ )"
141
121
  :model-value="remaining / duration * 100"
142
122
  />
143
123
  </div>
@@ -1,47 +1,24 @@
1
- <script setup>
2
- import { ToastAction } from "reka-ui";
3
- import { computed } from "vue";
4
- import { cn, omitProps, randomId } from "../../../utils";
5
- import Button from "../../elements/Button.vue";
1
+ <script setup lang="ts">
2
+ import type { NToastActionProps } from '../../../types'
3
+ import { ToastAction } from 'reka-ui'
4
+ import { computed } from 'vue'
5
+ import { cn, omitProps, randomId } from '../../../utils'
6
+ import Button from '../../elements/Button.vue'
7
+
6
8
  defineOptions({
7
- inheritAttrs: false
8
- });
9
- const props = defineProps({
10
- type: { type: String, required: false },
11
- loadingPlacement: { type: String, required: false },
12
- icon: { type: Boolean, required: false },
13
- disabled: { type: Boolean, required: false },
14
- reverse: { type: Boolean, required: false },
15
- loading: { type: Boolean, required: false },
16
- block: { type: Boolean, required: false },
17
- to: { type: null, required: false },
18
- label: { type: String, required: false },
19
- btn: { type: String, required: false, default: "solid-white" },
20
- leading: { type: String, required: false },
21
- trailing: { type: String, required: false },
22
- size: { type: String, required: false, default: "xs" },
23
- una: { type: Object, required: false },
24
- square: { type: null, required: false },
25
- rounded: { type: null, required: false },
26
- class: { type: null, required: false },
27
- breadcrumbActive: { type: String, required: false },
28
- breadcrumbInactive: { type: String, required: false },
29
- paginationSelected: { type: String, required: false },
30
- paginationUnselected: { type: String, required: false },
31
- dropdownMenu: { type: String, required: false },
32
- toggleOn: { type: String, required: false },
33
- toggleOff: { type: String, required: false },
34
- navigationMenu: { type: String, required: false },
35
- navigationMenuLink: { type: String, required: false },
36
- ariaLabel: { type: String, required: false },
37
- altText: { type: String, required: true },
38
- asChild: { type: Boolean, required: false },
39
- as: { type: null, required: false }
40
- });
9
+ inheritAttrs: false,
10
+ })
11
+
12
+ const props = withDefaults(defineProps<NToastActionProps>(), {
13
+ btn: 'solid-white',
14
+ size: 'xs',
15
+ })
16
+
41
17
  const delegatedProps = computed(() => {
42
- const { class: _, ...delegated } = props;
43
- return delegated;
44
- });
18
+ const { class: _, ...delegated } = props
19
+
20
+ return delegated
21
+ })
45
22
  </script>
46
23
 
47
24
  <template>
@@ -1,35 +1,34 @@
1
- <script setup>
2
- import { ToastClose } from "reka-ui";
3
- import { computed } from "vue";
4
- import { cn } from "../../../utils";
5
- import Icon from "../../elements/Icon.vue";
6
- const props = defineProps({
7
- una: { type: Object, required: false },
8
- asChild: { type: Boolean, required: false },
9
- as: { type: null, required: false },
10
- class: { type: null, required: false }
11
- });
1
+ <script setup lang="ts">
2
+ import type { NToastCloseProps } from '../../../types'
3
+ import { ToastClose } from 'reka-ui'
4
+ import { computed } from 'vue'
5
+ import { cn } from '../../../utils'
6
+ import Icon from '../../elements/Icon.vue'
7
+
8
+ const props = defineProps<NToastCloseProps>()
9
+
12
10
  const delegatedProps = computed(() => {
13
- const { ...delegated } = props;
14
- return delegated;
15
- });
11
+ const { ...delegated } = props
12
+
13
+ return delegated
14
+ })
16
15
  </script>
17
16
 
18
17
  <template>
19
18
  <ToastClose
20
19
  v-bind="delegatedProps"
21
20
  :class="cn(
22
- 'toast-close',
23
- props.una?.toastClose,
24
- props.class
25
- )"
21
+ 'toast-close',
22
+ props.una?.toastClose,
23
+ props.class,
24
+ )"
26
25
  >
27
26
  <Icon
28
27
  :name="una?.toastCloseIcon ?? 'toast-close-icon'"
29
28
  :class="cn(
30
- 'toast-close-icon-base',
31
- una?.toastCloseIconBase
32
- )"
29
+ 'toast-close-icon-base',
30
+ una?.toastCloseIconBase,
31
+ )"
33
32
  aria-hidden="true"
34
33
  />
35
34
  </ToastClose>
@@ -1,27 +1,26 @@
1
- <script setup>
2
- import { ToastDescription } from "reka-ui";
3
- import { computed } from "vue";
4
- import { cn } from "../../../utils";
5
- const props = defineProps({
6
- una: { type: Object, required: false },
7
- asChild: { type: Boolean, required: false },
8
- as: { type: null, required: false },
9
- class: { type: null, required: false }
10
- });
1
+ <script setup lang="ts">
2
+ import type { NToastDescriptionProps } from '../../../types'
3
+ import { ToastDescription } from 'reka-ui'
4
+ import { computed } from 'vue'
5
+ import { cn } from '../../../utils'
6
+
7
+ const props = defineProps<NToastDescriptionProps>()
8
+
11
9
  const delegatedProps = computed(() => {
12
- const { class: _, ...delegated } = props;
13
- return delegated;
14
- });
10
+ const { class: _, ...delegated } = props
11
+
12
+ return delegated
13
+ })
15
14
  </script>
16
15
 
17
16
  <template>
18
17
  <ToastDescription
19
18
  v-bind="delegatedProps"
20
19
  :class="cn(
21
- 'toast-description',
22
- props.una?.toastDescription,
23
- props.class
24
- )"
20
+ 'toast-description',
21
+ props.una?.toastDescription,
22
+ props.class,
23
+ )"
25
24
  >
26
25
  <slot />
27
26
  </ToastDescription>
@@ -1,18 +1,17 @@
1
- <script setup>
2
- import { cn } from "../../../utils";
3
- const props = defineProps({
4
- una: { type: Object, required: false },
5
- class: { type: null, required: false }
6
- });
1
+ <script setup lang="ts">
2
+ import type { NToastInfoProps } from '../../../types'
3
+ import { cn } from '../../../utils'
4
+
5
+ const props = defineProps<NToastInfoProps>()
7
6
  </script>
8
7
 
9
8
  <template>
10
9
  <div
11
10
  :class="cn(
12
- 'toast-info',
13
- props.una?.toastInfo,
14
- props.class
15
- )"
11
+ 'toast-info',
12
+ props.una?.toastInfo,
13
+ props.class,
14
+ )"
16
15
  >
17
16
  <slot />
18
17
  </div>
@@ -1,11 +1,10 @@
1
- <script setup>
2
- import { ToastProvider } from "reka-ui";
3
- const props = defineProps({
4
- label: { type: String, required: false },
5
- duration: { type: Number, required: false, default: 5e3 },
6
- swipeDirection: { type: String, required: false },
7
- swipeThreshold: { type: Number, required: false }
8
- });
1
+ <script setup lang="ts">
2
+ import type { NToastProviderProps } from '../../../types'
3
+ import { ToastProvider } from 'reka-ui'
4
+
5
+ const props = withDefaults(defineProps<NToastProviderProps>(), {
6
+ duration: 5000,
7
+ })
9
8
  </script>
10
9
 
11
10
  <template>
@@ -1,27 +1,26 @@
1
- <script setup>
2
- import { ToastTitle } from "reka-ui";
3
- import { computed } from "vue";
4
- import { cn } from "../../../utils";
5
- const props = defineProps({
6
- una: { type: Object, required: false },
7
- asChild: { type: Boolean, required: false },
8
- as: { type: null, required: false },
9
- class: { type: null, required: false }
10
- });
1
+ <script setup lang="ts">
2
+ import type { NToastTitleProps } from '../../../types'
3
+ import { ToastTitle } from 'reka-ui'
4
+ import { computed } from 'vue'
5
+ import { cn } from '../../../utils'
6
+
7
+ const props = defineProps<NToastTitleProps>()
8
+
11
9
  const delegatedProps = computed(() => {
12
- const { class: _, ...delegated } = props;
13
- return delegated;
14
- });
10
+ const { class: _, ...delegated } = props
11
+
12
+ return delegated
13
+ })
15
14
  </script>
16
15
 
17
16
  <template>
18
17
  <ToastTitle
19
18
  v-bind="delegatedProps"
20
19
  :class="cn(
21
- 'toast-title',
22
- props.una?.toastTitle,
23
- props.class
24
- )"
20
+ 'toast-title',
21
+ props.una?.toastTitle,
22
+ props.class,
23
+ )"
25
24
  >
26
25
  <slot />
27
26
  </ToastTitle>
@@ -1,28 +1,25 @@
1
- <script setup>
2
- import { ToastViewport } from "reka-ui";
3
- import { computed } from "vue";
4
- import { cn } from "../../../utils";
5
- const props = defineProps({
6
- una: { type: Object, required: false },
7
- hotkey: { type: Array, required: false },
8
- label: { type: [String, Function], required: false },
9
- asChild: { type: Boolean, required: false },
10
- as: { type: null, required: false },
11
- class: { type: null, required: false }
12
- });
1
+ <script setup lang="ts">
2
+ import type { NToastViewportProps } from '../../../types'
3
+ import { ToastViewport } from 'reka-ui'
4
+ import { computed } from 'vue'
5
+ import { cn } from '../../../utils'
6
+
7
+ const props = defineProps<NToastViewportProps>()
8
+
13
9
  const delegatedProps = computed(() => {
14
- const { class: _, ...delegated } = props;
15
- return delegated;
16
- });
10
+ const { class: _, ...delegated } = props
11
+
12
+ return delegated
13
+ })
17
14
  </script>
18
15
 
19
16
  <template>
20
17
  <ToastViewport
21
18
  v-bind="delegatedProps"
22
19
  :class="cn(
23
- 'toast-viewport',
24
- props.una?.toastViewport,
25
- props.class
26
- )"
20
+ 'toast-viewport',
21
+ props.una?.toastViewport,
22
+ props.class,
23
+ )"
27
24
  />
28
25
  </template>