una-nuxt-module 2.1.15 → 2.1.17

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 (362) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/module.mjs +1 -1
  3. package/dist/runtime/middleware/authentication.js +14 -6
  4. package/dist/runtime/plugins/auth.js +14 -6
  5. package/dist/runtime/stores/auth.d.ts +12 -18
  6. package/dist/runtime/types/index.d.ts +3 -5
  7. package/dist/runtime/utils/capitalizeFirstLetter.d.ts +2 -0
  8. package/dist/runtime/utils/capitalizeFirstLetter.js +4 -0
  9. package/package.json +1 -1
  10. package/.nuxt/templates/accordion/Accordion.vue +0 -19
  11. package/.nuxt/templates/accordion/AccordionContent.vue +0 -24
  12. package/.nuxt/templates/accordion/AccordionItem.vue +0 -28
  13. package/.nuxt/templates/accordion/AccordionTrigger.vue +0 -39
  14. package/.nuxt/templates/accordion/index.ts +0 -4
  15. package/.nuxt/templates/alert/Alert.vue +0 -20
  16. package/.nuxt/templates/alert/AlertDescription.vue +0 -22
  17. package/.nuxt/templates/alert/AlertTitle.vue +0 -22
  18. package/.nuxt/templates/alert/index.ts +0 -23
  19. package/.nuxt/templates/alert-dialog/AlertDialog.vue +0 -14
  20. package/.nuxt/templates/alert-dialog/AlertDialogAction.vue +0 -22
  21. package/.nuxt/templates/alert-dialog/AlertDialogCancel.vue +0 -24
  22. package/.nuxt/templates/alert-dialog/AlertDialogContent.vue +0 -43
  23. package/.nuxt/templates/alert-dialog/AlertDialogDescription.vue +0 -25
  24. package/.nuxt/templates/alert-dialog/AlertDialogFooter.vue +0 -19
  25. package/.nuxt/templates/alert-dialog/AlertDialogHeader.vue +0 -17
  26. package/.nuxt/templates/alert-dialog/AlertDialogTitle.vue +0 -22
  27. package/.nuxt/templates/alert-dialog/AlertDialogTrigger.vue +0 -11
  28. package/.nuxt/templates/alert-dialog/index.ts +0 -9
  29. package/.nuxt/templates/aspect-ratio/AspectRatio.vue +0 -14
  30. package/.nuxt/templates/aspect-ratio/index.ts +0 -1
  31. package/.nuxt/templates/auto-form/AutoForm.vue +0 -116
  32. package/.nuxt/templates/auto-form/AutoFormField.vue +0 -45
  33. package/.nuxt/templates/auto-form/AutoFormFieldArray.vue +0 -120
  34. package/.nuxt/templates/auto-form/AutoFormFieldBoolean.vue +0 -54
  35. package/.nuxt/templates/auto-form/AutoFormFieldDate.vue +0 -80
  36. package/.nuxt/templates/auto-form/AutoFormFieldEnum.vue +0 -86
  37. package/.nuxt/templates/auto-form/AutoFormFieldFile.vue +0 -87
  38. package/.nuxt/templates/auto-form/AutoFormFieldInput.vue +0 -44
  39. package/.nuxt/templates/auto-form/AutoFormFieldNumber.vue +0 -42
  40. package/.nuxt/templates/auto-form/AutoFormFieldObject.vue +0 -95
  41. package/.nuxt/templates/auto-form/AutoFormLabel.vue +0 -14
  42. package/.nuxt/templates/auto-form/constant.ts +0 -40
  43. package/.nuxt/templates/auto-form/dependencies.ts +0 -92
  44. package/.nuxt/templates/auto-form/index.ts +0 -15
  45. package/.nuxt/templates/auto-form/interface.ts +0 -95
  46. package/.nuxt/templates/auto-form/utils.ts +0 -188
  47. package/.nuxt/templates/avatar/Avatar.vue +0 -23
  48. package/.nuxt/templates/avatar/AvatarFallback.vue +0 -27
  49. package/.nuxt/templates/avatar/AvatarImage.vue +0 -16
  50. package/.nuxt/templates/avatar/index.ts +0 -3
  51. package/.nuxt/templates/badge/Badge.vue +0 -27
  52. package/.nuxt/templates/badge/index.ts +0 -25
  53. package/.nuxt/templates/breadcrumb/Breadcrumb.vue +0 -17
  54. package/.nuxt/templates/breadcrumb/BreadcrumbEllipsis.vue +0 -23
  55. package/.nuxt/templates/breadcrumb/BreadcrumbItem.vue +0 -17
  56. package/.nuxt/templates/breadcrumb/BreadcrumbLink.vue +0 -23
  57. package/.nuxt/templates/breadcrumb/BreadcrumbList.vue +0 -22
  58. package/.nuxt/templates/breadcrumb/BreadcrumbPage.vue +0 -20
  59. package/.nuxt/templates/breadcrumb/BreadcrumbSeparator.vue +0 -22
  60. package/.nuxt/templates/breadcrumb/index.ts +0 -7
  61. package/.nuxt/templates/button/Button.vue +0 -27
  62. package/.nuxt/templates/button/index.ts +0 -36
  63. package/.nuxt/templates/calendar/Calendar.vue +0 -78
  64. package/.nuxt/templates/calendar/CalendarCell.vue +0 -29
  65. package/.nuxt/templates/calendar/CalendarCellTrigger.vue +0 -47
  66. package/.nuxt/templates/calendar/CalendarGrid.vue +0 -24
  67. package/.nuxt/templates/calendar/CalendarGridBody.vue +0 -14
  68. package/.nuxt/templates/calendar/CalendarGridHead.vue +0 -15
  69. package/.nuxt/templates/calendar/CalendarGridRow.vue +0 -28
  70. package/.nuxt/templates/calendar/CalendarHeadCell.vue +0 -33
  71. package/.nuxt/templates/calendar/CalendarHeader.vue +0 -30
  72. package/.nuxt/templates/calendar/CalendarHeading.vue +0 -35
  73. package/.nuxt/templates/calendar/CalendarNextButton.vue +0 -35
  74. package/.nuxt/templates/calendar/CalendarPrevButton.vue +0 -35
  75. package/.nuxt/templates/calendar/index.ts +0 -12
  76. package/.nuxt/templates/card/Card.vue +0 -22
  77. package/.nuxt/templates/card/CardAction.vue +0 -22
  78. package/.nuxt/templates/card/CardContent.vue +0 -14
  79. package/.nuxt/templates/card/CardDescription.vue +0 -17
  80. package/.nuxt/templates/card/CardFooter.vue +0 -17
  81. package/.nuxt/templates/card/CardHeader.vue +0 -22
  82. package/.nuxt/templates/card/CardTitle.vue +0 -17
  83. package/.nuxt/templates/card/index.ts +0 -7
  84. package/.nuxt/templates/carousel/Carousel.vue +0 -73
  85. package/.nuxt/templates/carousel/CarouselContent.vue +0 -30
  86. package/.nuxt/templates/carousel/CarouselItem.vue +0 -26
  87. package/.nuxt/templates/carousel/CarouselNext.vue +0 -46
  88. package/.nuxt/templates/carousel/CarouselPrevious.vue +0 -46
  89. package/.nuxt/templates/carousel/index.ts +0 -10
  90. package/.nuxt/templates/carousel/interface.ts +0 -26
  91. package/.nuxt/templates/carousel/useCarousel.ts +0 -56
  92. package/.nuxt/templates/checkbox/Checkbox.vue +0 -39
  93. package/.nuxt/templates/checkbox/index.ts +0 -1
  94. package/.nuxt/templates/collapsible/Collapsible.vue +0 -19
  95. package/.nuxt/templates/collapsible/CollapsibleContent.vue +0 -14
  96. package/.nuxt/templates/collapsible/CollapsibleTrigger.vue +0 -14
  97. package/.nuxt/templates/collapsible/index.ts +0 -3
  98. package/.nuxt/templates/combobox/Combobox.vue +0 -17
  99. package/.nuxt/templates/combobox/ComboboxAnchor.vue +0 -25
  100. package/.nuxt/templates/combobox/ComboboxEmpty.vue +0 -23
  101. package/.nuxt/templates/combobox/ComboboxGroup.vue +0 -32
  102. package/.nuxt/templates/combobox/ComboboxInput.vue +0 -49
  103. package/.nuxt/templates/combobox/ComboboxItem.vue +0 -31
  104. package/.nuxt/templates/combobox/ComboboxItemIndicator.vue +0 -25
  105. package/.nuxt/templates/combobox/ComboboxList.vue +0 -37
  106. package/.nuxt/templates/combobox/ComboboxSeparator.vue +0 -23
  107. package/.nuxt/templates/combobox/ComboboxTrigger.vue +0 -26
  108. package/.nuxt/templates/combobox/ComboboxViewport.vue +0 -30
  109. package/.nuxt/templates/combobox/index.ts +0 -12
  110. package/.nuxt/templates/command/Command.vue +0 -100
  111. package/.nuxt/templates/command/CommandDialog.vue +0 -42
  112. package/.nuxt/templates/command/CommandEmpty.vue +0 -30
  113. package/.nuxt/templates/command/CommandGroup.vue +0 -50
  114. package/.nuxt/templates/command/CommandInput.vue +0 -49
  115. package/.nuxt/templates/command/CommandItem.vue +0 -90
  116. package/.nuxt/templates/command/CommandList.vue +0 -32
  117. package/.nuxt/templates/command/CommandSeparator.vue +0 -23
  118. package/.nuxt/templates/command/CommandShortcut.vue +0 -19
  119. package/.nuxt/templates/command/index.ts +0 -25
  120. package/.nuxt/templates/context-menu/ContextMenu.vue +0 -18
  121. package/.nuxt/templates/context-menu/ContextMenuCheckboxItem.vue +0 -44
  122. package/.nuxt/templates/context-menu/ContextMenuContent.vue +0 -38
  123. package/.nuxt/templates/context-menu/ContextMenuGroup.vue +0 -14
  124. package/.nuxt/templates/context-menu/ContextMenuItem.vue +0 -46
  125. package/.nuxt/templates/context-menu/ContextMenuLabel.vue +0 -28
  126. package/.nuxt/templates/context-menu/ContextMenuPortal.vue +0 -14
  127. package/.nuxt/templates/context-menu/ContextMenuRadioGroup.vue +0 -22
  128. package/.nuxt/templates/context-menu/ContextMenuRadioItem.vue +0 -44
  129. package/.nuxt/templates/context-menu/ContextMenuSeparator.vue +0 -20
  130. package/.nuxt/templates/context-menu/ContextMenuShortcut.vue +0 -19
  131. package/.nuxt/templates/context-menu/ContextMenuSub.vue +0 -22
  132. package/.nuxt/templates/context-menu/ContextMenuSubContent.vue +0 -35
  133. package/.nuxt/templates/context-menu/ContextMenuSubTrigger.vue +0 -39
  134. package/.nuxt/templates/context-menu/ContextMenuTrigger.vue +0 -16
  135. package/.nuxt/templates/context-menu/index.ts +0 -14
  136. package/.nuxt/templates/dialog/Dialog.vue +0 -17
  137. package/.nuxt/templates/dialog/DialogClose.vue +0 -14
  138. package/.nuxt/templates/dialog/DialogContent.vue +0 -49
  139. package/.nuxt/templates/dialog/DialogDescription.vue +0 -28
  140. package/.nuxt/templates/dialog/DialogFooter.vue +0 -17
  141. package/.nuxt/templates/dialog/DialogHeader.vue +0 -17
  142. package/.nuxt/templates/dialog/DialogOverlay.vue +0 -27
  143. package/.nuxt/templates/dialog/DialogScrollContent.vue +0 -58
  144. package/.nuxt/templates/dialog/DialogTitle.vue +0 -24
  145. package/.nuxt/templates/dialog/DialogTrigger.vue +0 -14
  146. package/.nuxt/templates/dialog/index.ts +0 -10
  147. package/.nuxt/templates/drawer/Drawer.vue +0 -22
  148. package/.nuxt/templates/drawer/DrawerClose.vue +0 -15
  149. package/.nuxt/templates/drawer/DrawerContent.vue +0 -40
  150. package/.nuxt/templates/drawer/DrawerDescription.vue +0 -23
  151. package/.nuxt/templates/drawer/DrawerFooter.vue +0 -17
  152. package/.nuxt/templates/drawer/DrawerHeader.vue +0 -17
  153. package/.nuxt/templates/drawer/DrawerOverlay.vue +0 -26
  154. package/.nuxt/templates/drawer/DrawerTitle.vue +0 -23
  155. package/.nuxt/templates/drawer/DrawerTrigger.vue +0 -15
  156. package/.nuxt/templates/drawer/index.ts +0 -9
  157. package/.nuxt/templates/dropdown-menu/DropdownMenu.vue +0 -17
  158. package/.nuxt/templates/dropdown-menu/DropdownMenuCheckboxItem.vue +0 -44
  159. package/.nuxt/templates/dropdown-menu/DropdownMenuContent.vue +0 -41
  160. package/.nuxt/templates/dropdown-menu/DropdownMenuGroup.vue +0 -14
  161. package/.nuxt/templates/dropdown-menu/DropdownMenuItem.vue +0 -44
  162. package/.nuxt/templates/dropdown-menu/DropdownMenuLabel.vue +0 -30
  163. package/.nuxt/templates/dropdown-menu/DropdownMenuRadioGroup.vue +0 -22
  164. package/.nuxt/templates/dropdown-menu/DropdownMenuRadioItem.vue +0 -45
  165. package/.nuxt/templates/dropdown-menu/DropdownMenuSeparator.vue +0 -25
  166. package/.nuxt/templates/dropdown-menu/DropdownMenuShortcut.vue +0 -19
  167. package/.nuxt/templates/dropdown-menu/DropdownMenuSub.vue +0 -19
  168. package/.nuxt/templates/dropdown-menu/DropdownMenuSubContent.vue +0 -35
  169. package/.nuxt/templates/dropdown-menu/DropdownMenuSubTrigger.vue +0 -37
  170. package/.nuxt/templates/dropdown-menu/DropdownMenuTrigger.vue +0 -16
  171. package/.nuxt/templates/dropdown-menu/index.ts +0 -16
  172. package/.nuxt/templates/form/FormControl.vue +0 -17
  173. package/.nuxt/templates/form/FormDescription.vue +0 -21
  174. package/.nuxt/templates/form/FormItem.vue +0 -19
  175. package/.nuxt/templates/form/FormLabel.vue +0 -22
  176. package/.nuxt/templates/form/FormMessage.vue +0 -22
  177. package/.nuxt/templates/form/index.ts +0 -7
  178. package/.nuxt/templates/form/injectionKeys.ts +0 -4
  179. package/.nuxt/templates/form/useFormField.ts +0 -30
  180. package/.nuxt/templates/hover-card/HoverCard.vue +0 -17
  181. package/.nuxt/templates/hover-card/HoverCardContent.vue +0 -39
  182. package/.nuxt/templates/hover-card/HoverCardTrigger.vue +0 -14
  183. package/.nuxt/templates/hover-card/index.ts +0 -3
  184. package/.nuxt/templates/input/Input.vue +0 -35
  185. package/.nuxt/templates/input/index.ts +0 -1
  186. package/.nuxt/templates/label/Label.vue +0 -25
  187. package/.nuxt/templates/label/index.ts +0 -1
  188. package/.nuxt/templates/menubar/Menubar.vue +0 -35
  189. package/.nuxt/templates/menubar/MenubarCheckboxItem.vue +0 -44
  190. package/.nuxt/templates/menubar/MenubarContent.vue +0 -41
  191. package/.nuxt/templates/menubar/MenubarGroup.vue +0 -14
  192. package/.nuxt/templates/menubar/MenubarItem.vue +0 -41
  193. package/.nuxt/templates/menubar/MenubarLabel.vue +0 -23
  194. package/.nuxt/templates/menubar/MenubarMenu.vue +0 -14
  195. package/.nuxt/templates/menubar/MenubarRadioGroup.vue +0 -22
  196. package/.nuxt/templates/menubar/MenubarRadioItem.vue +0 -44
  197. package/.nuxt/templates/menubar/MenubarSeparator.vue +0 -26
  198. package/.nuxt/templates/menubar/MenubarShortcut.vue +0 -19
  199. package/.nuxt/templates/menubar/MenubarSub.vue +0 -22
  200. package/.nuxt/templates/menubar/MenubarSubContent.vue +0 -38
  201. package/.nuxt/templates/menubar/MenubarSubTrigger.vue +0 -35
  202. package/.nuxt/templates/menubar/MenubarTrigger.vue +0 -33
  203. package/.nuxt/templates/menubar/index.ts +0 -15
  204. package/.nuxt/templates/navigation-menu/NavigationMenu.vue +0 -45
  205. package/.nuxt/templates/navigation-menu/NavigationMenuContent.vue +0 -36
  206. package/.nuxt/templates/navigation-menu/NavigationMenuIndicator.vue +0 -35
  207. package/.nuxt/templates/navigation-menu/NavigationMenuItem.vue +0 -22
  208. package/.nuxt/templates/navigation-menu/NavigationMenuLink.vue +0 -34
  209. package/.nuxt/templates/navigation-menu/NavigationMenuList.vue +0 -33
  210. package/.nuxt/templates/navigation-menu/NavigationMenuTrigger.vue +0 -34
  211. package/.nuxt/templates/navigation-menu/NavigationMenuViewport.vue +0 -33
  212. package/.nuxt/templates/navigation-menu/index.ts +0 -14
  213. package/.nuxt/templates/number-field/NumberField.vue +0 -22
  214. package/.nuxt/templates/number-field/NumberFieldContent.vue +0 -21
  215. package/.nuxt/templates/number-field/NumberFieldDecrement.vue +0 -33
  216. package/.nuxt/templates/number-field/NumberFieldIncrement.vue +0 -33
  217. package/.nuxt/templates/number-field/NumberFieldInput.vue +0 -21
  218. package/.nuxt/templates/number-field/index.ts +0 -5
  219. package/.nuxt/templates/pagination/Pagination.vue +0 -32
  220. package/.nuxt/templates/pagination/PaginationContent.vue +0 -23
  221. package/.nuxt/templates/pagination/PaginationEllipsis.vue +0 -26
  222. package/.nuxt/templates/pagination/PaginationFirst.vue +0 -43
  223. package/.nuxt/templates/pagination/PaginationItem.vue +0 -40
  224. package/.nuxt/templates/pagination/PaginationLast.vue +0 -43
  225. package/.nuxt/templates/pagination/PaginationNext.vue +0 -43
  226. package/.nuxt/templates/pagination/PaginationPrevious.vue +0 -43
  227. package/.nuxt/templates/pagination/index.ts +0 -8
  228. package/.nuxt/templates/pin-input/PinInput.vue +0 -38
  229. package/.nuxt/templates/pin-input/PinInputGroup.vue +0 -22
  230. package/.nuxt/templates/pin-input/PinInputSeparator.vue +0 -18
  231. package/.nuxt/templates/pin-input/PinInputSlot.vue +0 -31
  232. package/.nuxt/templates/pin-input/index.ts +0 -4
  233. package/.nuxt/templates/popover/Popover.vue +0 -18
  234. package/.nuxt/templates/popover/PopoverAnchor.vue +0 -15
  235. package/.nuxt/templates/popover/PopoverContent.vue +0 -46
  236. package/.nuxt/templates/popover/PopoverTrigger.vue +0 -14
  237. package/.nuxt/templates/popover/index.ts +0 -4
  238. package/.nuxt/templates/progress/Progress.vue +0 -38
  239. package/.nuxt/templates/progress/index.ts +0 -1
  240. package/.nuxt/templates/radio-group/RadioGroup.vue +0 -30
  241. package/.nuxt/templates/radio-group/RadioGroupItem.vue +0 -38
  242. package/.nuxt/templates/radio-group/index.ts +0 -2
  243. package/.nuxt/templates/range-calendar/RangeCalendar.vue +0 -79
  244. package/.nuxt/templates/range-calendar/RangeCalendarCell.vue +0 -33
  245. package/.nuxt/templates/range-calendar/RangeCalendarCellTrigger.vue +0 -51
  246. package/.nuxt/templates/range-calendar/RangeCalendarGrid.vue +0 -28
  247. package/.nuxt/templates/range-calendar/RangeCalendarGridBody.vue +0 -14
  248. package/.nuxt/templates/range-calendar/RangeCalendarGridHead.vue +0 -14
  249. package/.nuxt/templates/range-calendar/RangeCalendarGridRow.vue +0 -28
  250. package/.nuxt/templates/range-calendar/RangeCalendarHeadCell.vue +0 -33
  251. package/.nuxt/templates/range-calendar/RangeCalendarHeader.vue +0 -30
  252. package/.nuxt/templates/range-calendar/RangeCalendarHeading.vue +0 -35
  253. package/.nuxt/templates/range-calendar/RangeCalendarNextButton.vue +0 -39
  254. package/.nuxt/templates/range-calendar/RangeCalendarPrevButton.vue +0 -39
  255. package/.nuxt/templates/range-calendar/index.ts +0 -12
  256. package/.nuxt/templates/resizable/ResizableHandle.vue +0 -44
  257. package/.nuxt/templates/resizable/ResizablePanel.vue +0 -18
  258. package/.nuxt/templates/resizable/ResizablePanelGroup.vue +0 -32
  259. package/.nuxt/templates/resizable/index.ts +0 -3
  260. package/.nuxt/templates/scroll-area/ScrollArea.vue +0 -35
  261. package/.nuxt/templates/scroll-area/ScrollBar.vue +0 -41
  262. package/.nuxt/templates/scroll-area/index.ts +0 -2
  263. package/.nuxt/templates/select/Select.vue +0 -18
  264. package/.nuxt/templates/select/SelectContent.vue +0 -61
  265. package/.nuxt/templates/select/SelectGroup.vue +0 -14
  266. package/.nuxt/templates/select/SelectItem.vue +0 -44
  267. package/.nuxt/templates/select/SelectItemText.vue +0 -14
  268. package/.nuxt/templates/select/SelectLabel.vue +0 -18
  269. package/.nuxt/templates/select/SelectScrollDownButton.vue +0 -33
  270. package/.nuxt/templates/select/SelectScrollUpButton.vue +0 -33
  271. package/.nuxt/templates/select/SelectSeparator.vue +0 -20
  272. package/.nuxt/templates/select/SelectTrigger.vue +0 -44
  273. package/.nuxt/templates/select/SelectValue.vue +0 -14
  274. package/.nuxt/templates/select/index.ts +0 -11
  275. package/.nuxt/templates/separator/Separator.vue +0 -29
  276. package/.nuxt/templates/separator/index.ts +0 -1
  277. package/.nuxt/templates/sheet/Sheet.vue +0 -17
  278. package/.nuxt/templates/sheet/SheetClose.vue +0 -14
  279. package/.nuxt/templates/sheet/SheetContent.vue +0 -66
  280. package/.nuxt/templates/sheet/SheetDescription.vue +0 -22
  281. package/.nuxt/templates/sheet/SheetFooter.vue +0 -15
  282. package/.nuxt/templates/sheet/SheetHeader.vue +0 -15
  283. package/.nuxt/templates/sheet/SheetOverlay.vue +0 -27
  284. package/.nuxt/templates/sheet/SheetTitle.vue +0 -22
  285. package/.nuxt/templates/sheet/SheetTrigger.vue +0 -14
  286. package/.nuxt/templates/sheet/index.ts +0 -8
  287. package/.nuxt/templates/sidebar/Sidebar.vue +0 -110
  288. package/.nuxt/templates/sidebar/SidebarContent.vue +0 -23
  289. package/.nuxt/templates/sidebar/SidebarFooter.vue +0 -18
  290. package/.nuxt/templates/sidebar/SidebarGroup.vue +0 -18
  291. package/.nuxt/templates/sidebar/SidebarGroupAction.vue +0 -31
  292. package/.nuxt/templates/sidebar/SidebarGroupContent.vue +0 -18
  293. package/.nuxt/templates/sidebar/SidebarGroupLabel.vue +0 -30
  294. package/.nuxt/templates/sidebar/SidebarHeader.vue +0 -18
  295. package/.nuxt/templates/sidebar/SidebarInput.vue +0 -19
  296. package/.nuxt/templates/sidebar/SidebarInset.vue +0 -23
  297. package/.nuxt/templates/sidebar/SidebarMenu.vue +0 -18
  298. package/.nuxt/templates/sidebar/SidebarMenuAction.vue +0 -41
  299. package/.nuxt/templates/sidebar/SidebarMenuBadge.vue +0 -28
  300. package/.nuxt/templates/sidebar/SidebarMenuButton.vue +0 -57
  301. package/.nuxt/templates/sidebar/SidebarMenuButtonChild.vue +0 -34
  302. package/.nuxt/templates/sidebar/SidebarMenuItem.vue +0 -18
  303. package/.nuxt/templates/sidebar/SidebarMenuSkeleton.vue +0 -34
  304. package/.nuxt/templates/sidebar/SidebarMenuSub.vue +0 -24
  305. package/.nuxt/templates/sidebar/SidebarMenuSubButton.vue +0 -43
  306. package/.nuxt/templates/sidebar/SidebarMenuSubItem.vue +0 -18
  307. package/.nuxt/templates/sidebar/SidebarProvider.vue +0 -101
  308. package/.nuxt/templates/sidebar/SidebarRail.vue +0 -35
  309. package/.nuxt/templates/sidebar/SidebarSeparator.vue +0 -19
  310. package/.nuxt/templates/sidebar/SidebarTrigger.vue +0 -27
  311. package/.nuxt/templates/sidebar/index.ts +0 -60
  312. package/.nuxt/templates/sidebar/utils.ts +0 -19
  313. package/.nuxt/templates/skeleton/Skeleton.vue +0 -17
  314. package/.nuxt/templates/skeleton/index.ts +0 -1
  315. package/.nuxt/templates/slider/Slider.vue +0 -53
  316. package/.nuxt/templates/slider/index.ts +0 -1
  317. package/.nuxt/templates/sonner/Sonner.vue +0 -18
  318. package/.nuxt/templates/sonner/index.ts +0 -1
  319. package/.nuxt/templates/stepper/Stepper.vue +0 -26
  320. package/.nuxt/templates/stepper/StepperDescription.vue +0 -25
  321. package/.nuxt/templates/stepper/StepperIndicator.vue +0 -35
  322. package/.nuxt/templates/stepper/StepperItem.vue +0 -30
  323. package/.nuxt/templates/stepper/StepperSeparator.vue +0 -31
  324. package/.nuxt/templates/stepper/StepperTitle.vue +0 -24
  325. package/.nuxt/templates/stepper/StepperTrigger.vue +0 -29
  326. package/.nuxt/templates/stepper/index.ts +0 -7
  327. package/.nuxt/templates/switch/Switch.vue +0 -46
  328. package/.nuxt/templates/switch/index.ts +0 -1
  329. package/.nuxt/templates/table/Table.vue +0 -19
  330. package/.nuxt/templates/table/TableBody.vue +0 -17
  331. package/.nuxt/templates/table/TableCaption.vue +0 -17
  332. package/.nuxt/templates/table/TableCell.vue +0 -22
  333. package/.nuxt/templates/table/TableEmpty.vue +0 -37
  334. package/.nuxt/templates/table/TableFooter.vue +0 -19
  335. package/.nuxt/templates/table/TableHead.vue +0 -22
  336. package/.nuxt/templates/table/TableHeader.vue +0 -14
  337. package/.nuxt/templates/table/TableRow.vue +0 -22
  338. package/.nuxt/templates/table/index.ts +0 -9
  339. package/.nuxt/templates/table/utils.ts +0 -9
  340. package/.nuxt/templates/tabs/Tabs.vue +0 -25
  341. package/.nuxt/templates/tabs/TabsContent.vue +0 -22
  342. package/.nuxt/templates/tabs/TabsList.vue +0 -27
  343. package/.nuxt/templates/tabs/TabsTrigger.vue +0 -29
  344. package/.nuxt/templates/tabs/index.ts +0 -4
  345. package/.nuxt/templates/tags-input/TagsInput.vue +0 -34
  346. package/.nuxt/templates/tags-input/TagsInputInput.vue +0 -30
  347. package/.nuxt/templates/tags-input/TagsInputItem.vue +0 -33
  348. package/.nuxt/templates/tags-input/TagsInputItemDelete.vue +0 -30
  349. package/.nuxt/templates/tags-input/TagsInputItemText.vue +0 -25
  350. package/.nuxt/templates/tags-input/index.ts +0 -5
  351. package/.nuxt/templates/textarea/Textarea.vue +0 -33
  352. package/.nuxt/templates/textarea/index.ts +0 -1
  353. package/.nuxt/templates/toggle/Toggle.vue +0 -43
  354. package/.nuxt/templates/toggle/index.ts +0 -27
  355. package/.nuxt/templates/toggle-group/ToggleGroup.vue +0 -50
  356. package/.nuxt/templates/toggle-group/ToggleGroupItem.vue +0 -49
  357. package/.nuxt/templates/toggle-group/index.ts +0 -2
  358. package/.nuxt/templates/tooltip/Tooltip.vue +0 -17
  359. package/.nuxt/templates/tooltip/TooltipContent.vue +0 -50
  360. package/.nuxt/templates/tooltip/TooltipProvider.vue +0 -13
  361. package/.nuxt/templates/tooltip/TooltipTrigger.vue +0 -14
  362. package/.nuxt/templates/tooltip/index.ts +0 -4
package/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "una-nuxt-module",
3
- "version": "2.1.15",
3
+ "version": "2.1.17",
4
4
  "configKey": "unaxt",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.1",
package/dist/module.mjs CHANGED
@@ -197,7 +197,7 @@ function addTemplates() {
197
197
  }
198
198
 
199
199
  const name = "una-nuxt-module";
200
- const version = "2.1.15";
200
+ const version = "2.1.17";
201
201
 
202
202
  const module = defineNuxtModule({
203
203
  meta: {
@@ -1,6 +1,7 @@
1
1
  import { defineNuxtRouteMiddleware, useNuxtApp } from "#app";
2
- import { useAuthStore } from "../stores/auth.js";
3
2
  import { useAuthorization } from "../composables/useAuthorization.js";
3
+ import { useAuthStore } from "../stores/auth.js";
4
+ import capitalizeFirstLetter from "../utils/capitalizeFirstLetter.js";
4
5
  export default defineNuxtRouteMiddleware(async (to, from) => {
5
6
  if (!import.meta.client) {
6
7
  return;
@@ -16,13 +17,20 @@ export default defineNuxtRouteMiddleware(async (to, from) => {
16
17
  const authResponse = await $authData();
17
18
  const token = await $accessToken();
18
19
  const resources = await authorization.getResources(token);
20
+ const getUserInfo = () => {
21
+ if (authResponse?.email) {
22
+ const [name, lastName] = authResponse.email.split(".");
23
+ return {
24
+ name: capitalizeFirstLetter(name),
25
+ lastName: capitalizeFirstLetter(lastName),
26
+ fullName: capitalizeFirstLetter(name) + " " + capitalizeFirstLetter(lastName)
27
+ };
28
+ }
29
+ };
19
30
  const userInfo = {
31
+ cedula: authResponse?.displayName,
20
32
  email: authResponse?.email,
21
- fullName: authResponse?.displayName,
22
- name: authResponse?.givenName,
23
- lastName: authResponse?.familyName,
24
- photoUrl: authResponse?.profile,
25
- mainRole: "Admin"
33
+ ...getUserInfo()
26
34
  };
27
35
  const authData = {
28
36
  isAuthenticated,
@@ -3,8 +3,9 @@ import {
3
3
  AsgardeoSPAClient,
4
4
  Hooks
5
5
  } from "@asgardeo/auth-spa";
6
- import { useAuthStore } from "../stores/auth.js";
7
6
  import { useAuthorization } from "../composables/useAuthorization.js";
7
+ import { useAuthStore } from "../stores/auth.js";
8
+ import capitalizeFirstLetter from "../utils/capitalizeFirstLetter.js";
8
9
  export default defineNuxtPlugin((nuxtApp) => {
9
10
  const auth = AsgardeoSPAClient.getInstance();
10
11
  const runtimeConfig = useRuntimeConfig();
@@ -14,13 +15,20 @@ export default defineNuxtPlugin((nuxtApp) => {
14
15
  auth?.on(Hooks.SignIn, async (response) => {
15
16
  const authorization = useAuthorization();
16
17
  const authStore = useAuthStore();
18
+ const getUserInfo = () => {
19
+ if (response?.email) {
20
+ const [name, lastName] = response.email.split(".");
21
+ return {
22
+ name: capitalizeFirstLetter(name),
23
+ lastName: capitalizeFirstLetter(lastName),
24
+ fullName: capitalizeFirstLetter(name) + " " + capitalizeFirstLetter(lastName)
25
+ };
26
+ }
27
+ };
17
28
  const userInfo = {
29
+ cedula: response.displayName,
18
30
  email: response.email,
19
- fullName: response.displayName,
20
- name: response.givenName,
21
- lastName: response.familyName,
22
- photoUrl: response.profile,
23
- mainRole: "Admin"
31
+ ...getUserInfo()
24
32
  };
25
33
  const token = await auth?.getAccessToken();
26
34
  const resources = await authorization.getResources(token);
@@ -4,19 +4,17 @@ import type { IAuthData, IAuthenticatedUser, IHasAuthorizationInResourceParams }
4
4
  */
5
5
  export declare const useAuthStore: import("pinia").StoreDefinition<"AuthStore", Pick<{
6
6
  user: import("vue").Ref<{
7
+ cedula: string;
7
8
  email: string;
8
- fullName: string;
9
+ fullName?: string | undefined;
9
10
  name?: string | undefined;
10
11
  lastName?: string | undefined;
11
- photoUrl?: string | undefined;
12
- mainRole?: string | undefined;
13
12
  } | null, IAuthenticatedUser | {
13
+ cedula: string;
14
14
  email: string;
15
- fullName: string;
15
+ fullName?: string | undefined;
16
16
  name?: string | undefined;
17
17
  lastName?: string | undefined;
18
- photoUrl?: string | undefined;
19
- mainRole?: string | undefined;
20
18
  } | null>;
21
19
  authData: import("vue").Ref<{
22
20
  isAuthenticated: boolean;
@@ -47,19 +45,17 @@ export declare const useAuthStore: import("pinia").StoreDefinition<"AuthStore",
47
45
  hasAuthorizationInResource: ({ resource, authorization, }: IHasAuthorizationInResourceParams) => boolean;
48
46
  }, "user" | "authData">, Pick<{
49
47
  user: import("vue").Ref<{
48
+ cedula: string;
50
49
  email: string;
51
- fullName: string;
50
+ fullName?: string | undefined;
52
51
  name?: string | undefined;
53
52
  lastName?: string | undefined;
54
- photoUrl?: string | undefined;
55
- mainRole?: string | undefined;
56
53
  } | null, IAuthenticatedUser | {
54
+ cedula: string;
57
55
  email: string;
58
- fullName: string;
56
+ fullName?: string | undefined;
59
57
  name?: string | undefined;
60
58
  lastName?: string | undefined;
61
- photoUrl?: string | undefined;
62
- mainRole?: string | undefined;
63
59
  } | null>;
64
60
  authData: import("vue").Ref<{
65
61
  isAuthenticated: boolean;
@@ -90,19 +86,17 @@ export declare const useAuthStore: import("pinia").StoreDefinition<"AuthStore",
90
86
  hasAuthorizationInResource: ({ resource, authorization, }: IHasAuthorizationInResourceParams) => boolean;
91
87
  }, "isAuthenticated" | "token">, Pick<{
92
88
  user: import("vue").Ref<{
89
+ cedula: string;
93
90
  email: string;
94
- fullName: string;
91
+ fullName?: string | undefined;
95
92
  name?: string | undefined;
96
93
  lastName?: string | undefined;
97
- photoUrl?: string | undefined;
98
- mainRole?: string | undefined;
99
94
  } | null, IAuthenticatedUser | {
95
+ cedula: string;
100
96
  email: string;
101
- fullName: string;
97
+ fullName?: string | undefined;
102
98
  name?: string | undefined;
103
99
  lastName?: string | undefined;
104
- photoUrl?: string | undefined;
105
- mainRole?: string | undefined;
106
100
  } | null>;
107
101
  authData: import("vue").Ref<{
108
102
  isAuthenticated: boolean;
@@ -371,18 +371,16 @@ export interface IAppStatusState {
371
371
  * @property {string} - *mainRole* - Rol del usuario
372
372
  */
373
373
  export interface IAuthenticatedUser {
374
+ /** Cédula del usuario */
375
+ cedula: string;
374
376
  /** Email del usuario */
375
377
  email: string;
376
378
  /** Nombre completo del usuario */
377
- fullName: string;
379
+ fullName?: string;
378
380
  /** Nombre del usuario */
379
381
  name?: string;
380
382
  /** Primer apellido del usuario */
381
383
  lastName?: string;
382
- /** Url de la foto del usuario */
383
- photoUrl?: string;
384
- /** Rol del usuario */
385
- mainRole?: string;
386
384
  }
387
385
  /**
388
386
  * Interfaz para la información de los recursos del usuario autenticado.
@@ -0,0 +1,2 @@
1
+ declare const _default: (word: string) => string;
2
+ export default _default;
@@ -0,0 +1,4 @@
1
+ export default (word) => {
2
+ if (word.length === 0) return "";
3
+ return word.charAt(0).toUpperCase() + word.slice(1);
4
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "una-nuxt-module",
3
- "version": "2.1.15",
3
+ "version": "2.1.17",
4
4
  "description": "Módulo Nuxt para desarrollo CGI",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,19 +0,0 @@
1
- <script setup lang="ts">
2
- import {
3
- AccordionRoot,
4
- type AccordionRootEmits,
5
- type AccordionRootProps,
6
- useForwardPropsEmits,
7
- } from 'reka-ui'
8
-
9
- const props = defineProps<AccordionRootProps>()
10
- const emits = defineEmits<AccordionRootEmits>()
11
-
12
- const forwarded = useForwardPropsEmits(props, emits)
13
- </script>
14
-
15
- <template>
16
- <AccordionRoot data-slot="accordion" v-bind="forwarded">
17
- <slot />
18
- </AccordionRoot>
19
- </template>
@@ -1,24 +0,0 @@
1
- <script setup lang="ts">
2
- import type { HTMLAttributes } from "vue";
3
- import { reactiveOmit } from "@vueuse/core";
4
- import { AccordionContent, type AccordionContentProps } from "reka-ui";
5
- import cn from "../../../utils/cn";
6
-
7
- const props = defineProps<
8
- AccordionContentProps & { class?: HTMLAttributes["class"] }
9
- >();
10
-
11
- const delegatedProps = reactiveOmit(props, "class");
12
- </script>
13
-
14
- <template>
15
- <AccordionContent
16
- data-slot="accordion-content"
17
- v-bind="delegatedProps"
18
- class="data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm"
19
- >
20
- <div :class="cn('pt-0 pb-4', props.class)">
21
- <slot />
22
- </div>
23
- </AccordionContent>
24
- </template>
@@ -1,28 +0,0 @@
1
- <script setup lang="ts">
2
- import type { HTMLAttributes } from "vue";
3
- import { reactiveOmit } from "@vueuse/core";
4
- import {
5
- AccordionItem,
6
- type AccordionItemProps,
7
- useForwardProps,
8
- } from "reka-ui";
9
- import cn from "../../../utils/cn";
10
-
11
- const props = defineProps<
12
- AccordionItemProps & { class?: HTMLAttributes["class"] }
13
- >();
14
-
15
- const delegatedProps = reactiveOmit(props, "class");
16
-
17
- const forwardedProps = useForwardProps(delegatedProps);
18
- </script>
19
-
20
- <template>
21
- <AccordionItem
22
- data-slot="accordion-item"
23
- v-bind="forwardedProps"
24
- :class="cn('border-b last:border-b-0', props.class)"
25
- >
26
- <slot />
27
- </AccordionItem>
28
- </template>
@@ -1,39 +0,0 @@
1
- <script setup lang="ts">
2
- import type { HTMLAttributes } from "vue";
3
- import { reactiveOmit } from "@vueuse/core";
4
- import { ChevronDown } from "lucide-vue-next";
5
- import {
6
- AccordionHeader,
7
- AccordionTrigger,
8
- type AccordionTriggerProps,
9
- } from "reka-ui";
10
- import cn from "../../../utils/cn";
11
-
12
- const props = defineProps<
13
- AccordionTriggerProps & { class?: HTMLAttributes["class"] }
14
- >();
15
-
16
- const delegatedProps = reactiveOmit(props, "class");
17
- </script>
18
-
19
- <template>
20
- <AccordionHeader class="flex">
21
- <AccordionTrigger
22
- data-slot="accordion-trigger"
23
- v-bind="delegatedProps"
24
- :class="
25
- cn(
26
- 'focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180',
27
- props.class
28
- )
29
- "
30
- >
31
- <slot />
32
- <slot name="icon">
33
- <ChevronDown
34
- class="text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"
35
- />
36
- </slot>
37
- </AccordionTrigger>
38
- </AccordionHeader>
39
- </template>
@@ -1,4 +0,0 @@
1
- export { default as Accordion } from './Accordion.vue'
2
- export { default as AccordionContent } from './AccordionContent.vue'
3
- export { default as AccordionItem } from './AccordionItem.vue'
4
- export { default as AccordionTrigger } from './AccordionTrigger.vue'
@@ -1,20 +0,0 @@
1
- <script setup lang="ts">
2
- import type { HTMLAttributes } from "vue";
3
- import cn from "../../../utils/cn";
4
- import { type AlertVariants, alertVariants } from ".";
5
-
6
- const props = defineProps<{
7
- class?: HTMLAttributes["class"];
8
- variant?: AlertVariants["variant"];
9
- }>();
10
- </script>
11
-
12
- <template>
13
- <div
14
- data-slot="alert"
15
- :class="cn(alertVariants({ variant }), props.class)"
16
- role="alert"
17
- >
18
- <slot />
19
- </div>
20
- </template>
@@ -1,22 +0,0 @@
1
- <script setup lang="ts">
2
- import type { HTMLAttributes } from "vue";
3
- import cn from "../../../utils/cn";
4
-
5
- const props = defineProps<{
6
- class?: HTMLAttributes["class"];
7
- }>();
8
- </script>
9
-
10
- <template>
11
- <div
12
- data-slot="alert-description"
13
- :class="
14
- cn(
15
- 'text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed',
16
- props.class
17
- )
18
- "
19
- >
20
- <slot />
21
- </div>
22
- </template>
@@ -1,22 +0,0 @@
1
- <script setup lang="ts">
2
- import type { HTMLAttributes } from "vue";
3
- import cn from "../../../utils/cn";
4
-
5
- const props = defineProps<{
6
- class?: HTMLAttributes["class"];
7
- }>();
8
- </script>
9
-
10
- <template>
11
- <div
12
- data-slot="alert-title"
13
- :class="
14
- cn(
15
- 'col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight',
16
- props.class
17
- )
18
- "
19
- >
20
- <slot />
21
- </div>
22
- </template>
@@ -1,23 +0,0 @@
1
- import { cva, type VariantProps } from 'class-variance-authority'
2
-
3
- export { default as Alert } from './Alert.vue'
4
- export { default as AlertDescription } from './AlertDescription.vue'
5
- export { default as AlertTitle } from './AlertTitle.vue'
6
-
7
- export const alertVariants = cva(
8
- 'relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current',
9
- {
10
- variants: {
11
- variant: {
12
- default: 'bg-card text-card-foreground',
13
- destructive:
14
- 'text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90',
15
- },
16
- },
17
- defaultVariants: {
18
- variant: 'default',
19
- },
20
- },
21
- )
22
-
23
- export type AlertVariants = VariantProps<typeof alertVariants>
@@ -1,14 +0,0 @@
1
- <script setup lang="ts">
2
- import { type AlertDialogEmits, type AlertDialogProps, AlertDialogRoot, useForwardPropsEmits } from 'reka-ui'
3
-
4
- const props = defineProps<AlertDialogProps>()
5
- const emits = defineEmits<AlertDialogEmits>()
6
-
7
- const forwarded = useForwardPropsEmits(props, emits)
8
- </script>
9
-
10
- <template>
11
- <AlertDialogRoot data-slot="alert-dialog" v-bind="forwarded">
12
- <slot />
13
- </AlertDialogRoot>
14
- </template>
@@ -1,22 +0,0 @@
1
- <script setup lang="ts">
2
- import type { HTMLAttributes } from "vue";
3
- import { reactiveOmit } from "@vueuse/core";
4
- import { AlertDialogAction, type AlertDialogActionProps } from "reka-ui";
5
- import cn from "../../../utils/cn";
6
- import { buttonVariants } from "../button";
7
-
8
- const props = defineProps<
9
- AlertDialogActionProps & { class?: HTMLAttributes["class"] }
10
- >();
11
-
12
- const delegatedProps = reactiveOmit(props, "class");
13
- </script>
14
-
15
- <template>
16
- <AlertDialogAction
17
- v-bind="delegatedProps"
18
- :class="cn(buttonVariants(), props.class)"
19
- >
20
- <slot />
21
- </AlertDialogAction>
22
- </template>
@@ -1,24 +0,0 @@
1
- <script setup lang="ts">
2
- import type { HTMLAttributes } from "vue";
3
- import { reactiveOmit } from "@vueuse/core";
4
- import { AlertDialogCancel, type AlertDialogCancelProps } from "reka-ui";
5
- import cn from "../../../utils/cn";
6
- import { buttonVariants } from "../button";
7
-
8
- const props = defineProps<
9
- AlertDialogCancelProps & { class?: HTMLAttributes["class"] }
10
- >();
11
-
12
- const delegatedProps = reactiveOmit(props, "class");
13
- </script>
14
-
15
- <template>
16
- <AlertDialogCancel
17
- v-bind="delegatedProps"
18
- :class="
19
- cn(buttonVariants({ variant: 'outline' }), 'mt-2 sm:mt-0', props.class)
20
- "
21
- >
22
- <slot />
23
- </AlertDialogCancel>
24
- </template>
@@ -1,43 +0,0 @@
1
- <script setup lang="ts">
2
- import type { HTMLAttributes } from "vue";
3
- import { reactiveOmit } from "@vueuse/core";
4
- import {
5
- AlertDialogContent,
6
- type AlertDialogContentEmits,
7
- type AlertDialogContentProps,
8
- AlertDialogOverlay,
9
- AlertDialogPortal,
10
- useForwardPropsEmits,
11
- } from "reka-ui";
12
- import cn from "../../../utils/cn";
13
-
14
- const props = defineProps<
15
- AlertDialogContentProps & { class?: HTMLAttributes["class"] }
16
- >();
17
- const emits = defineEmits<AlertDialogContentEmits>();
18
-
19
- const delegatedProps = reactiveOmit(props, "class");
20
-
21
- const forwarded = useForwardPropsEmits(delegatedProps, emits);
22
- </script>
23
-
24
- <template>
25
- <AlertDialogPortal>
26
- <AlertDialogOverlay
27
- data-slot="alert-dialog-overlay"
28
- class="data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80"
29
- />
30
- <AlertDialogContent
31
- data-slot="alert-dialog-content"
32
- v-bind="forwarded"
33
- :class="
34
- cn(
35
- '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',
36
- props.class
37
- )
38
- "
39
- >
40
- <slot />
41
- </AlertDialogContent>
42
- </AlertDialogPortal>
43
- </template>
@@ -1,25 +0,0 @@
1
- <script setup lang="ts">
2
- import type { HTMLAttributes } from "vue";
3
- import { reactiveOmit } from "@vueuse/core";
4
- import {
5
- AlertDialogDescription,
6
- type AlertDialogDescriptionProps,
7
- } from "reka-ui";
8
- import cn from "../../../utils/cn";
9
-
10
- const props = defineProps<
11
- AlertDialogDescriptionProps & { class?: HTMLAttributes["class"] }
12
- >();
13
-
14
- const delegatedProps = reactiveOmit(props, "class");
15
- </script>
16
-
17
- <template>
18
- <AlertDialogDescription
19
- data-slot="alert-dialog-description"
20
- v-bind="delegatedProps"
21
- :class="cn('text-muted-foreground text-sm', props.class)"
22
- >
23
- <slot />
24
- </AlertDialogDescription>
25
- </template>
@@ -1,19 +0,0 @@
1
- <script setup lang="ts">
2
- import type { HTMLAttributes } from "vue";
3
- import cn from "../../../utils/cn";
4
-
5
- const props = defineProps<{
6
- class?: HTMLAttributes["class"];
7
- }>();
8
- </script>
9
-
10
- <template>
11
- <div
12
- data-slot="alert-dialog-footer"
13
- :class="
14
- cn('flex flex-col-reverse gap-2 sm:flex-row sm:justify-end', props.class)
15
- "
16
- >
17
- <slot />
18
- </div>
19
- </template>
@@ -1,17 +0,0 @@
1
- <script setup lang="ts">
2
- import type { HTMLAttributes } from "vue";
3
- import cn from "../../../utils/cn";
4
-
5
- const props = defineProps<{
6
- class?: HTMLAttributes["class"];
7
- }>();
8
- </script>
9
-
10
- <template>
11
- <div
12
- data-slot="alert-dialog-header"
13
- :class="cn('flex flex-col gap-2 text-center sm:text-left', props.class)"
14
- >
15
- <slot />
16
- </div>
17
- </template>
@@ -1,22 +0,0 @@
1
- <script setup lang="ts">
2
- import type { HTMLAttributes } from "vue";
3
- import { reactiveOmit } from "@vueuse/core";
4
- import { AlertDialogTitle, type AlertDialogTitleProps } from "reka-ui";
5
- import cn from "../../../utils/cn";
6
-
7
- const props = defineProps<
8
- AlertDialogTitleProps & { class?: HTMLAttributes["class"] }
9
- >();
10
-
11
- const delegatedProps = reactiveOmit(props, "class");
12
- </script>
13
-
14
- <template>
15
- <AlertDialogTitle
16
- data-slot="alert-dialog-title"
17
- v-bind="delegatedProps"
18
- :class="cn('text-lg font-semibold', props.class)"
19
- >
20
- <slot />
21
- </AlertDialogTitle>
22
- </template>
@@ -1,11 +0,0 @@
1
- <script setup lang="ts">
2
- import { AlertDialogTrigger, type AlertDialogTriggerProps } from 'reka-ui'
3
-
4
- const props = defineProps<AlertDialogTriggerProps>()
5
- </script>
6
-
7
- <template>
8
- <AlertDialogTrigger data-slot="alert-dialog-trigger" v-bind="props">
9
- <slot />
10
- </AlertDialogTrigger>
11
- </template>
@@ -1,9 +0,0 @@
1
- export { default as AlertDialog } from './AlertDialog.vue'
2
- export { default as AlertDialogAction } from './AlertDialogAction.vue'
3
- export { default as AlertDialogCancel } from './AlertDialogCancel.vue'
4
- export { default as AlertDialogContent } from './AlertDialogContent.vue'
5
- export { default as AlertDialogDescription } from './AlertDialogDescription.vue'
6
- export { default as AlertDialogFooter } from './AlertDialogFooter.vue'
7
- export { default as AlertDialogHeader } from './AlertDialogHeader.vue'
8
- export { default as AlertDialogTitle } from './AlertDialogTitle.vue'
9
- export { default as AlertDialogTrigger } from './AlertDialogTrigger.vue'
@@ -1,14 +0,0 @@
1
- <script setup lang="ts">
2
- import { AspectRatio, type AspectRatioProps } from 'reka-ui'
3
-
4
- const props = defineProps<AspectRatioProps>()
5
- </script>
6
-
7
- <template>
8
- <AspectRatio
9
- data-slot="aspect-ratio"
10
- v-bind="props"
11
- >
12
- <slot />
13
- </AspectRatio>
14
- </template>
@@ -1 +0,0 @@
1
- export { default as AspectRatio } from './AspectRatio.vue'