@una-ui/nuxt 0.52.1 → 0.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module.d.mts +2 -1
- package/dist/module.json +2 -2
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/alert-dialog/AlertDialog.vue +136 -0
- package/dist/runtime/components/alert-dialog/AlertDialog.vue.d.ts +45 -0
- package/dist/runtime/components/alert-dialog/AlertDialogAction.vue +50 -0
- package/dist/runtime/components/alert-dialog/AlertDialogAction.vue.d.ts +16 -0
- package/dist/runtime/components/alert-dialog/AlertDialogCancel.vue +55 -0
- package/dist/runtime/components/alert-dialog/AlertDialogCancel.vue.d.ts +16 -0
- package/dist/runtime/components/alert-dialog/AlertDialogContent.vue +68 -0
- package/dist/runtime/components/alert-dialog/AlertDialogContent.vue.d.ts +45 -0
- package/dist/runtime/components/alert-dialog/AlertDialogDescription.vue +26 -0
- package/dist/runtime/components/alert-dialog/AlertDialogDescription.vue.d.ts +13 -0
- package/dist/runtime/components/alert-dialog/AlertDialogFooter.vue +22 -0
- package/dist/runtime/components/alert-dialog/AlertDialogFooter.vue.d.ts +13 -0
- package/dist/runtime/components/alert-dialog/AlertDialogHeader.vue +20 -0
- package/dist/runtime/components/alert-dialog/AlertDialogHeader.vue.d.ts +13 -0
- package/dist/runtime/components/alert-dialog/AlertDialogOverlay.vue +25 -0
- package/dist/runtime/components/alert-dialog/AlertDialogOverlay.vue.d.ts +13 -0
- package/dist/runtime/components/alert-dialog/AlertDialogTitle.vue +26 -0
- package/dist/runtime/components/alert-dialog/AlertDialogTitle.vue.d.ts +13 -0
- package/dist/runtime/components/alert-dialog/AlertDialogTrigger.vue +16 -0
- package/dist/runtime/components/alert-dialog/AlertDialogTrigger.vue.d.ts +13 -0
- package/dist/runtime/components/aspect-ratio/AspectRatio.vue +18 -16
- package/dist/runtime/components/aspect-ratio/AspectRatio.vue.d.ts +18 -0
- package/dist/runtime/components/combobox/Combobox.vue +149 -134
- package/dist/runtime/components/combobox/Combobox.vue.d.ts +89 -0
- package/dist/runtime/components/combobox/ComboboxAnchor.vue +20 -18
- package/dist/runtime/components/combobox/ComboboxAnchor.vue.d.ts +13 -0
- package/dist/runtime/components/combobox/ComboboxEmpty.vue +18 -16
- package/dist/runtime/components/combobox/ComboboxEmpty.vue.d.ts +13 -0
- package/dist/runtime/components/combobox/ComboboxGroup.vue +25 -19
- package/dist/runtime/components/combobox/ComboboxGroup.vue.d.ts +17 -0
- package/dist/runtime/components/combobox/ComboboxInput.vue +38 -26
- package/dist/runtime/components/combobox/ComboboxInput.vue.d.ts +16 -0
- package/dist/runtime/components/combobox/ComboboxItem.vue +23 -20
- package/dist/runtime/components/combobox/ComboboxItem.vue.d.ts +18 -0
- package/dist/runtime/components/combobox/ComboboxItemIndicator.vue +23 -23
- package/dist/runtime/components/combobox/ComboboxItemIndicator.vue.d.ts +15 -0
- package/dist/runtime/components/combobox/ComboboxLabel.vue +16 -10
- package/dist/runtime/components/combobox/ComboboxLabel.vue.d.ts +13 -0
- package/dist/runtime/components/combobox/ComboboxList.vue +43 -25
- package/dist/runtime/components/combobox/ComboboxList.vue.d.ts +43 -0
- package/dist/runtime/components/combobox/ComboboxSeparator.vue +18 -16
- package/dist/runtime/components/combobox/ComboboxSeparator.vue.d.ts +13 -0
- package/dist/runtime/components/combobox/ComboboxTrigger.vue +77 -53
- package/dist/runtime/components/combobox/ComboboxTrigger.vue.d.ts +17 -0
- package/dist/runtime/components/combobox/ComboboxViewport.vue +20 -18
- package/dist/runtime/components/combobox/ComboboxViewport.vue.d.ts +13 -0
- package/dist/runtime/components/data/table/Table.vue +206 -186
- package/dist/runtime/components/data/table/Table.vue.d.ts +184 -0
- package/dist/runtime/components/data/table/TableBody.vue +15 -15
- package/dist/runtime/components/data/table/TableBody.vue.d.ts +15 -0
- package/dist/runtime/components/data/table/TableCaption.vue +16 -16
- package/dist/runtime/components/data/table/TableCaption.vue.d.ts +15 -0
- package/dist/runtime/components/data/table/TableCell.vue +20 -19
- package/dist/runtime/components/data/table/TableCell.vue.d.ts +15 -0
- package/dist/runtime/components/data/table/TableEmpty.vue +27 -27
- package/dist/runtime/components/data/table/TableEmpty.vue.d.ts +15 -0
- package/dist/runtime/components/data/table/TableFooter.vue +15 -15
- package/dist/runtime/components/data/table/TableFooter.vue.d.ts +15 -0
- package/dist/runtime/components/data/table/TableHead.vue +18 -17
- package/dist/runtime/components/data/table/TableHead.vue.d.ts +15 -0
- package/dist/runtime/components/data/table/TableHeader.vue +15 -15
- package/dist/runtime/components/data/table/TableHeader.vue.d.ts +15 -0
- package/dist/runtime/components/data/table/TableLoading.vue +31 -28
- package/dist/runtime/components/data/table/TableLoading.vue.d.ts +15 -0
- package/dist/runtime/components/data/table/TableRow.vue +15 -15
- package/dist/runtime/components/data/table/TableRow.vue.d.ts +15 -0
- package/dist/runtime/components/elements/Accordion.vue +99 -92
- package/dist/runtime/components/elements/Accordion.vue.d.ts +28 -0
- package/dist/runtime/components/elements/Alert.vue +37 -50
- package/dist/runtime/components/elements/Alert.vue.d.ts +22 -0
- package/dist/runtime/components/elements/AvatarGroup.vue +64 -71
- package/dist/runtime/components/elements/AvatarGroup.vue.d.ts +11 -0
- package/dist/runtime/components/elements/Badge.vue +19 -20
- package/dist/runtime/components/elements/Badge.vue.d.ts +26 -0
- package/dist/runtime/components/elements/Button.vue +75 -62
- package/dist/runtime/components/elements/Button.vue.d.ts +34 -0
- package/dist/runtime/components/elements/Icon.vue +4 -4
- package/dist/runtime/components/elements/Icon.vue.d.ts +3 -0
- package/dist/runtime/components/elements/Indicator.vue +25 -29
- package/dist/runtime/components/elements/Indicator.vue.d.ts +19 -0
- package/dist/runtime/components/elements/Kbd.vue +13 -12
- package/dist/runtime/components/elements/Kbd.vue.d.ts +13 -0
- package/dist/runtime/components/elements/Label.vue +17 -14
- package/dist/runtime/components/elements/Label.vue.d.ts +13 -0
- package/dist/runtime/components/elements/Link.vue +2 -2
- package/dist/runtime/components/elements/Link.vue.d.ts +0 -109
- package/dist/runtime/components/elements/Progress.vue +39 -37
- package/dist/runtime/components/elements/Progress.vue.d.ts +18 -0
- package/dist/runtime/components/elements/Separator.vue +31 -26
- package/dist/runtime/components/elements/Separator.vue.d.ts +15 -0
- package/dist/runtime/components/elements/Skeleton.vue +15 -11
- package/dist/runtime/components/elements/Skeleton.vue.d.ts +13 -0
- package/dist/runtime/components/elements/Toggle.vue +48 -26
- package/dist/runtime/components/elements/Toggle.vue.d.ts +22 -0
- package/dist/runtime/components/elements/avatar/Avatar.vue +31 -22
- package/dist/runtime/components/elements/avatar/Avatar.vue.d.ts +21 -0
- package/dist/runtime/components/elements/avatar/AvatarFallback.vue +26 -17
- package/dist/runtime/components/elements/avatar/AvatarFallback.vue.d.ts +13 -0
- package/dist/runtime/components/elements/avatar/AvatarImage.vue +20 -11
- package/dist/runtime/components/elements/avatar/AvatarImage.vue.d.ts +3 -0
- package/dist/runtime/components/elements/card/Card.vue +28 -24
- package/dist/runtime/components/elements/card/Card.vue.d.ts +25 -0
- package/dist/runtime/components/elements/card/CardContent.vue +10 -9
- package/dist/runtime/components/elements/card/CardContent.vue.d.ts +13 -0
- package/dist/runtime/components/elements/card/CardDescription.vue +10 -9
- package/dist/runtime/components/elements/card/CardDescription.vue.d.ts +13 -0
- package/dist/runtime/components/elements/card/CardFooter.vue +10 -9
- package/dist/runtime/components/elements/card/CardFooter.vue.d.ts +13 -0
- package/dist/runtime/components/elements/card/CardHeader.vue +10 -9
- package/dist/runtime/components/elements/card/CardHeader.vue.d.ts +13 -0
- package/dist/runtime/components/elements/card/CardTitle.vue +12 -11
- package/dist/runtime/components/elements/card/CardTitle.vue.d.ts +13 -0
- package/dist/runtime/components/elements/collapsible/Collapsible.vue +15 -11
- package/dist/runtime/components/elements/collapsible/Collapsible.vue.d.ts +25 -0
- package/dist/runtime/components/elements/collapsible/CollapsibleContent.vue +12 -9
- package/dist/runtime/components/elements/collapsible/CollapsibleContent.vue.d.ts +13 -0
- package/dist/runtime/components/elements/collapsible/CollapsibleTrigger.vue +6 -5
- package/dist/runtime/components/elements/collapsible/CollapsibleTrigger.vue.d.ts +13 -0
- package/dist/runtime/components/elements/dialog/Dialog.vue +43 -35
- package/dist/runtime/components/elements/dialog/Dialog.vue.d.ts +34 -0
- package/dist/runtime/components/elements/dialog/DialogClose.vue +34 -11
- package/dist/runtime/components/elements/dialog/DialogClose.vue.d.ts +18 -0
- package/dist/runtime/components/elements/dialog/DialogContent.vue +40 -35
- package/dist/runtime/components/elements/dialog/DialogContent.vue.d.ts +46 -0
- package/dist/runtime/components/elements/dialog/DialogDescription.vue +16 -15
- package/dist/runtime/components/elements/dialog/DialogDescription.vue.d.ts +13 -0
- package/dist/runtime/components/elements/dialog/DialogFooter.vue +10 -9
- package/dist/runtime/components/elements/dialog/DialogFooter.vue.d.ts +13 -0
- package/dist/runtime/components/elements/dialog/DialogHeader.vue +10 -9
- package/dist/runtime/components/elements/dialog/DialogHeader.vue.d.ts +13 -0
- package/dist/runtime/components/elements/dialog/DialogOverlay.vue +13 -11
- package/dist/runtime/components/elements/dialog/DialogOverlay.vue.d.ts +13 -0
- package/dist/runtime/components/elements/dialog/DialogScrollContent.vue +39 -37
- package/dist/runtime/components/elements/dialog/DialogScrollContent.vue.d.ts +46 -0
- package/dist/runtime/components/elements/dialog/DialogTitle.vue +19 -17
- package/dist/runtime/components/elements/dialog/DialogTitle.vue.d.ts +13 -0
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenu.vue +85 -38
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenu.vue.d.ts +61 -0
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuContent.vue +43 -26
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuContent.vue.d.ts +43 -0
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuGroup.vue +14 -10
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuGroup.vue.d.ts +13 -0
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuItem.vue +58 -33
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuItem.vue.d.ts +14 -0
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuLabel.vue +21 -19
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuLabel.vue.d.ts +13 -0
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuRoot.vue +13 -9
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuRoot.vue.d.ts +17 -0
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSeparator.vue +25 -18
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSeparator.vue.d.ts +3 -0
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuShortcut.vue +12 -9
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuShortcut.vue.d.ts +13 -0
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSub.vue +9 -13
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSub.vue.d.ts +17 -0
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSubContent.vue +36 -21
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSubContent.vue.d.ts +45 -0
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSubTrigger.vue +52 -27
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +16 -0
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuTrigger.vue +44 -17
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuTrigger.vue.d.ts +13 -0
- package/dist/runtime/components/elements/pagination/Pagination.vue +51 -31
- package/dist/runtime/components/elements/pagination/Pagination.vue.d.ts +41 -0
- package/dist/runtime/components/elements/pagination/PaginationEllipsis.vue +27 -25
- package/dist/runtime/components/elements/pagination/PaginationEllipsis.vue.d.ts +15 -0
- package/dist/runtime/components/elements/pagination/PaginationFirst.vue +45 -25
- package/dist/runtime/components/elements/pagination/PaginationFirst.vue.d.ts +18 -0
- package/dist/runtime/components/elements/pagination/PaginationLast.vue +45 -25
- package/dist/runtime/components/elements/pagination/PaginationLast.vue.d.ts +18 -0
- package/dist/runtime/components/elements/pagination/PaginationListItem.vue +50 -27
- package/dist/runtime/components/elements/pagination/PaginationListItem.vue.d.ts +17 -0
- package/dist/runtime/components/elements/pagination/PaginationNext.vue +45 -25
- package/dist/runtime/components/elements/pagination/PaginationNext.vue.d.ts +18 -0
- package/dist/runtime/components/elements/pagination/PaginationPrev.vue +45 -25
- package/dist/runtime/components/elements/pagination/PaginationPrev.vue.d.ts +18 -0
- package/dist/runtime/components/elements/popover/Popover.vue +15 -16
- package/dist/runtime/components/elements/popover/Popover.vue.d.ts +21 -0
- package/dist/runtime/components/elements/popover/PopoverContent.vue +39 -31
- package/dist/runtime/components/elements/popover/PopoverContent.vue.d.ts +46 -0
- package/dist/runtime/components/elements/tabs/Tabs.vue +32 -21
- package/dist/runtime/components/elements/tabs/Tabs.vue.d.ts +28 -0
- package/dist/runtime/components/elements/tabs/TabsContent.vue +22 -18
- package/dist/runtime/components/elements/tabs/TabsContent.vue.d.ts +13 -0
- package/dist/runtime/components/elements/tabs/TabsList.vue +19 -14
- package/dist/runtime/components/elements/tabs/TabsList.vue.d.ts +13 -0
- package/dist/runtime/components/elements/tabs/TabsRoot.vue +22 -13
- package/dist/runtime/components/elements/tabs/TabsRoot.vue.d.ts +17 -0
- package/dist/runtime/components/elements/tabs/TabsTrigger.vue +47 -19
- package/dist/runtime/components/elements/tabs/TabsTrigger.vue.d.ts +13 -0
- package/dist/runtime/components/elements/tooltip/Tooltip.vue +36 -24
- package/dist/runtime/components/elements/tooltip/Tooltip.vue.d.ts +19 -0
- package/dist/runtime/components/elements/tooltip/TooltipContent.vue +37 -27
- package/dist/runtime/components/elements/tooltip/TooltipContent.vue.d.ts +22 -0
- package/dist/runtime/components/elements/tooltip/TooltipProvider.vue +10 -7
- package/dist/runtime/components/elements/tooltip/TooltipProvider.vue.d.ts +15 -0
- package/dist/runtime/components/elements/tooltip/TooltipRoot.vue +13 -9
- package/dist/runtime/components/elements/tooltip/TooltipRoot.vue.d.ts +17 -0
- package/dist/runtime/components/elements/tooltip/TooltipTrigger.vue +34 -5
- package/dist/runtime/components/elements/tooltip/TooltipTrigger.vue.d.ts +13 -0
- package/dist/runtime/components/forms/Checkbox.vue +50 -42
- package/dist/runtime/components/forms/Checkbox.vue.d.ts +21 -0
- package/dist/runtime/components/forms/FormGroup.vue +40 -33
- package/dist/runtime/components/forms/FormGroup.vue.d.ts +27 -0
- package/dist/runtime/components/forms/Input.vue +119 -134
- package/dist/runtime/components/forms/Input.vue.d.ts +31 -0
- package/dist/runtime/components/forms/Slider.vue +49 -36
- package/dist/runtime/components/forms/Slider.vue.d.ts +25 -0
- package/dist/runtime/components/forms/Switch.vue +43 -42
- package/dist/runtime/components/forms/Switch.vue.d.ts +27 -0
- package/dist/runtime/components/forms/form/FormControl.vue +4 -5
- package/dist/runtime/components/forms/form/FormControl.vue.d.ts +12 -0
- package/dist/runtime/components/forms/form/FormDescription.vue +12 -12
- package/dist/runtime/components/forms/form/FormDescription.vue.d.ts +13 -0
- package/dist/runtime/components/forms/form/FormField.vue +65 -56
- package/dist/runtime/components/forms/form/FormField.vue.d.ts +25 -0
- package/dist/runtime/components/forms/form/FormItem.vue +14 -14
- package/dist/runtime/components/forms/form/FormItem.vue.d.ts +13 -0
- package/dist/runtime/components/forms/form/FormLabel.vue +17 -13
- package/dist/runtime/components/forms/form/FormLabel.vue.d.ts +13 -0
- package/dist/runtime/components/forms/form/FormMessage.vue +14 -14
- package/dist/runtime/components/forms/form/FormMessage.vue.d.ts +3 -0
- package/dist/runtime/components/forms/radio-group/RadioGroup.vue +68 -63
- package/dist/runtime/components/forms/radio-group/RadioGroup.vue.d.ts +29 -0
- package/dist/runtime/components/forms/radio-group/RadioGroupItem.vue +60 -54
- package/dist/runtime/components/forms/radio-group/RadioGroupItem.vue.d.ts +22 -0
- package/dist/runtime/components/forms/select/Select.vue +81 -63
- package/dist/runtime/components/forms/select/Select.vue.d.ts +72 -0
- package/dist/runtime/components/forms/select/SelectContent.vue +55 -38
- package/dist/runtime/components/forms/select/SelectContent.vue.d.ts +27 -0
- package/dist/runtime/components/forms/select/SelectGroup.vue +18 -16
- package/dist/runtime/components/forms/select/SelectGroup.vue.d.ts +13 -0
- package/dist/runtime/components/forms/select/SelectItem.vue +31 -25
- package/dist/runtime/components/forms/select/SelectItem.vue.d.ts +17 -0
- package/dist/runtime/components/forms/select/SelectItemIndicator.vue +17 -15
- package/dist/runtime/components/forms/select/SelectItemIndicator.vue.d.ts +15 -0
- package/dist/runtime/components/forms/select/SelectItemText.vue +9 -5
- package/dist/runtime/components/forms/select/SelectItemText.vue.d.ts +13 -0
- package/dist/runtime/components/forms/select/SelectLabel.vue +15 -10
- package/dist/runtime/components/forms/select/SelectLabel.vue.d.ts +13 -0
- package/dist/runtime/components/forms/select/SelectScrollDownButton.vue +20 -19
- package/dist/runtime/components/forms/select/SelectScrollDownButton.vue.d.ts +13 -0
- package/dist/runtime/components/forms/select/SelectScrollUpButton.vue +20 -19
- package/dist/runtime/components/forms/select/SelectScrollUpButton.vue.d.ts +13 -0
- package/dist/runtime/components/forms/select/SelectSeparator.vue +18 -16
- package/dist/runtime/components/forms/select/SelectSeparator.vue.d.ts +3 -0
- package/dist/runtime/components/forms/select/SelectTrigger.vue +78 -53
- package/dist/runtime/components/forms/select/SelectTrigger.vue.d.ts +15 -0
- package/dist/runtime/components/forms/select/SelectValue.vue +15 -10
- package/dist/runtime/components/forms/select/SelectValue.vue.d.ts +13 -0
- package/dist/runtime/components/misc/ThemeSwitcher.vue +51 -69
- package/dist/runtime/components/misc/ThemeSwitcher.vue.d.ts +16 -0
- package/dist/runtime/components/navigation/breadcrumb/Breadcrumb.vue +35 -22
- package/dist/runtime/components/navigation/breadcrumb/Breadcrumb.vue.d.ts +45 -0
- package/dist/runtime/components/navigation/breadcrumb/BreadcrumbEllipsis.vue +13 -14
- package/dist/runtime/components/navigation/breadcrumb/BreadcrumbEllipsis.vue.d.ts +16 -0
- package/dist/runtime/components/navigation/breadcrumb/BreadcrumbItem.vue +10 -9
- package/dist/runtime/components/navigation/breadcrumb/BreadcrumbItem.vue.d.ts +13 -0
- package/dist/runtime/components/navigation/breadcrumb/BreadcrumbLink.vue +46 -26
- package/dist/runtime/components/navigation/breadcrumb/BreadcrumbLink.vue.d.ts +18 -0
- package/dist/runtime/components/navigation/breadcrumb/BreadcrumbList.vue +10 -9
- package/dist/runtime/components/navigation/breadcrumb/BreadcrumbList.vue.d.ts +13 -0
- package/dist/runtime/components/navigation/breadcrumb/BreadcrumbPage.vue +5 -7
- package/dist/runtime/components/navigation/breadcrumb/BreadcrumbPage.vue.d.ts +16 -0
- package/dist/runtime/components/navigation/breadcrumb/BreadcrumbRoot.vue +9 -8
- package/dist/runtime/components/navigation/breadcrumb/BreadcrumbRoot.vue.d.ts +13 -0
- package/dist/runtime/components/navigation/breadcrumb/BreadcrumbSeparator.vue +13 -13
- package/dist/runtime/components/navigation/breadcrumb/BreadcrumbSeparator.vue.d.ts +16 -0
- package/dist/runtime/components/navigation-menu/NavigationMenu.vue +52 -32
- package/dist/runtime/components/navigation-menu/NavigationMenu.vue.d.ts +46 -0
- package/dist/runtime/components/navigation-menu/NavigationMenuContent.vue +22 -19
- package/dist/runtime/components/navigation-menu/NavigationMenuContent.vue.d.ts +39 -0
- package/dist/runtime/components/navigation-menu/NavigationMenuContentItem.vue +53 -24
- package/dist/runtime/components/navigation-menu/NavigationMenuContentItem.vue.d.ts +21 -0
- package/dist/runtime/components/navigation-menu/NavigationMenuIndicator.vue +18 -15
- package/dist/runtime/components/navigation-menu/NavigationMenuIndicator.vue.d.ts +13 -0
- package/dist/runtime/components/navigation-menu/NavigationMenuItem.vue +40 -5
- package/dist/runtime/components/navigation-menu/NavigationMenuItem.vue.d.ts +13 -0
- package/dist/runtime/components/navigation-menu/NavigationMenuLink.vue +51 -28
- package/dist/runtime/components/navigation-menu/NavigationMenuLink.vue.d.ts +27 -0
- package/dist/runtime/components/navigation-menu/NavigationMenuList.vue +24 -22
- package/dist/runtime/components/navigation-menu/NavigationMenuList.vue.d.ts +13 -0
- package/dist/runtime/components/navigation-menu/NavigationMenuTrigger.vue +54 -34
- package/dist/runtime/components/navigation-menu/NavigationMenuTrigger.vue.d.ts +18 -0
- package/dist/runtime/components/navigation-menu/NavigationMenuViewport.vue +29 -26
- package/dist/runtime/components/navigation-menu/NavigationMenuViewport.vue.d.ts +3 -0
- package/dist/runtime/components/overlays/Toaster.vue +19 -16
- package/dist/runtime/components/overlays/Toaster.vue.d.ts +13 -0
- package/dist/runtime/components/overlays/toast/Toast.vue +58 -38
- package/dist/runtime/components/overlays/toast/Toast.vue.d.ts +112 -0
- package/dist/runtime/components/overlays/toast/ToastAction.vue +42 -19
- package/dist/runtime/components/overlays/toast/ToastAction.vue.d.ts +16 -0
- package/dist/runtime/components/overlays/toast/ToastClose.vue +21 -20
- package/dist/runtime/components/overlays/toast/ToastClose.vue.d.ts +3 -0
- package/dist/runtime/components/overlays/toast/ToastDescription.vue +17 -16
- package/dist/runtime/components/overlays/toast/ToastDescription.vue.d.ts +13 -0
- package/dist/runtime/components/overlays/toast/ToastInfo.vue +10 -9
- package/dist/runtime/components/overlays/toast/ToastInfo.vue.d.ts +13 -0
- package/dist/runtime/components/overlays/toast/ToastProvider.vue +8 -7
- package/dist/runtime/components/overlays/toast/ToastProvider.vue.d.ts +15 -0
- package/dist/runtime/components/overlays/toast/ToastTitle.vue +17 -16
- package/dist/runtime/components/overlays/toast/ToastTitle.vue.d.ts +13 -0
- package/dist/runtime/components/overlays/toast/ToastViewport.vue +19 -16
- package/dist/runtime/components/overlays/toast/ToastViewport.vue.d.ts +3 -0
- package/dist/runtime/components/resizable/ResizableHandle.vue +61 -0
- package/dist/runtime/components/resizable/ResizableHandle.vue.d.ts +21 -0
- package/dist/runtime/components/resizable/ResizablePanel.vue +36 -0
- package/dist/runtime/components/resizable/ResizablePanel.vue.d.ts +24 -0
- package/dist/runtime/components/resizable/ResizablePanelGroup.vue +34 -0
- package/dist/runtime/components/resizable/ResizablePanelGroup.vue.d.ts +19 -0
- package/dist/runtime/components/scroll-area/ScrollArea.vue +31 -23
- package/dist/runtime/components/scroll-area/ScrollArea.vue.d.ts +17 -0
- package/dist/runtime/components/scroll-area/ScrollBar.vue +29 -25
- package/dist/runtime/components/scroll-area/ScrollBar.vue.d.ts +6 -0
- package/dist/runtime/components/sheet/Sheet.vue +40 -29
- package/dist/runtime/components/sheet/Sheet.vue.d.ts +36 -0
- package/dist/runtime/components/sheet/SheetClose.vue +34 -12
- package/dist/runtime/components/sheet/SheetClose.vue.d.ts +42 -0
- package/dist/runtime/components/sheet/SheetContent.vue +35 -29
- package/dist/runtime/components/sheet/SheetContent.vue.d.ts +68 -0
- package/dist/runtime/components/sheet/SheetDescription.vue +13 -13
- package/dist/runtime/components/sheet/SheetDescription.vue.d.ts +12 -0
- package/dist/runtime/components/sheet/SheetFooter.vue +12 -11
- package/dist/runtime/components/sheet/SheetFooter.vue.d.ts +12 -0
- package/dist/runtime/components/sheet/SheetHeader.vue +8 -7
- package/dist/runtime/components/sheet/SheetHeader.vue.d.ts +12 -0
- package/dist/runtime/components/sheet/SheetTitle.vue +13 -12
- package/dist/runtime/components/sheet/SheetTitle.vue.d.ts +12 -0
- package/dist/runtime/components/sheet/SheetTrigger.vue +6 -7
- package/dist/runtime/components/sheet/SheetTrigger.vue.d.ts +15 -0
- package/dist/runtime/components/sidebar/Sidebar.vue +48 -52
- package/dist/runtime/components/sidebar/Sidebar.vue.d.ts +24 -0
- package/dist/runtime/components/sidebar/SidebarContent.vue +11 -10
- package/dist/runtime/components/sidebar/SidebarContent.vue.d.ts +12 -0
- package/dist/runtime/components/sidebar/SidebarFooter.vue +10 -9
- package/dist/runtime/components/sidebar/SidebarFooter.vue.d.ts +12 -0
- package/dist/runtime/components/sidebar/SidebarGroup.vue +12 -10
- package/dist/runtime/components/sidebar/SidebarGroup.vue.d.ts +16 -0
- package/dist/runtime/components/sidebar/SidebarGroupAction.vue +13 -13
- package/dist/runtime/components/sidebar/SidebarGroupAction.vue.d.ts +36 -0
- package/dist/runtime/components/sidebar/SidebarGroupContent.vue +10 -9
- package/dist/runtime/components/sidebar/SidebarGroupContent.vue.d.ts +12 -0
- package/dist/runtime/components/sidebar/SidebarGroupLabel.vue +13 -13
- package/dist/runtime/components/sidebar/SidebarGroupLabel.vue.d.ts +36 -0
- package/dist/runtime/components/sidebar/SidebarHeader.vue +10 -9
- package/dist/runtime/components/sidebar/SidebarHeader.vue.d.ts +12 -0
- package/dist/runtime/components/sidebar/SidebarInput.vue +26 -10
- package/dist/runtime/components/sidebar/SidebarInput.vue.d.ts +12 -0
- package/dist/runtime/components/sidebar/SidebarInset.vue +10 -9
- package/dist/runtime/components/sidebar/SidebarInset.vue.d.ts +12 -0
- package/dist/runtime/components/sidebar/SidebarMenu.vue +16 -14
- package/dist/runtime/components/sidebar/SidebarMenu.vue.d.ts +22 -0
- package/dist/runtime/components/sidebar/SidebarMenuAction.vue +15 -13
- package/dist/runtime/components/sidebar/SidebarMenuAction.vue.d.ts +34 -0
- package/dist/runtime/components/sidebar/SidebarMenuBadge.vue +10 -9
- package/dist/runtime/components/sidebar/SidebarMenuBadge.vue.d.ts +12 -0
- package/dist/runtime/components/sidebar/SidebarMenuButton.vue +27 -28
- package/dist/runtime/components/sidebar/SidebarMenuButton.vue.d.ts +19 -0
- package/dist/runtime/components/sidebar/SidebarMenuButtonChild.vue +29 -41
- package/dist/runtime/components/sidebar/SidebarMenuButtonChild.vue.d.ts +31 -0
- package/dist/runtime/components/sidebar/SidebarMenuItem.vue +10 -9
- package/dist/runtime/components/sidebar/SidebarMenuItem.vue.d.ts +12 -0
- package/dist/runtime/components/sidebar/SidebarMenuSkeleton.vue +15 -14
- package/dist/runtime/components/sidebar/SidebarMenuSkeleton.vue.d.ts +12 -0
- package/dist/runtime/components/sidebar/SidebarMenuSub.vue +10 -9
- package/dist/runtime/components/sidebar/SidebarMenuSub.vue.d.ts +12 -0
- package/dist/runtime/components/sidebar/SidebarMenuSubButton.vue +19 -17
- package/dist/runtime/components/sidebar/SidebarMenuSubButton.vue.d.ts +16 -0
- package/dist/runtime/components/sidebar/SidebarMenuSubItem.vue +10 -9
- package/dist/runtime/components/sidebar/SidebarMenuSubItem.vue.d.ts +12 -0
- package/dist/runtime/components/sidebar/SidebarProvider.vue +38 -55
- package/dist/runtime/components/sidebar/SidebarProvider.vue.d.ts +20 -0
- package/dist/runtime/components/sidebar/SidebarRail.vue +12 -12
- package/dist/runtime/components/sidebar/SidebarRail.vue.d.ts +12 -0
- package/dist/runtime/components/sidebar/SidebarSeparator.vue +11 -10
- package/dist/runtime/components/sidebar/SidebarSeparator.vue.d.ts +12 -0
- package/dist/runtime/components/sidebar/SidebarTrigger.vue +38 -18
- package/dist/runtime/components/sidebar/SidebarTrigger.vue.d.ts +30 -0
- package/dist/runtime/types/alert-dialog.d.ts +98 -0
- package/dist/runtime/types/alert-dialog.js +0 -0
- package/dist/runtime/types/index.d.ts +2 -0
- package/dist/runtime/types/index.js +2 -0
- package/dist/runtime/types/input.d.ts +1 -0
- package/dist/runtime/types/resizable.d.ts +46 -0
- package/dist/runtime/types/resizable.js +0 -0
- package/dist/types.d.mts +5 -1
- package/dist/una.config.mjs +1 -1
- package/package.json +8 -10
- package/dist/module.cjs +0 -5
- package/dist/module.d.ts +0 -36
- package/dist/types.d.ts +0 -1
- package/dist/una.config.d.ts +0 -8
|
@@ -1,56 +1,39 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
}>()
|
|
18
|
-
|
|
19
|
-
const isMobile = useMediaQuery('(max-width: 768px)')
|
|
20
|
-
const openMobile = ref(false)
|
|
21
|
-
|
|
22
|
-
const open = useVModel(props, 'open', emits, {
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useEventListener, useMediaQuery, useVModel } from "@vueuse/core";
|
|
3
|
+
import { TooltipProvider } from "reka-ui";
|
|
4
|
+
import { computed, ref } from "vue";
|
|
5
|
+
import { provideSidebarContext, SIDEBAR_COOKIE_MAX_AGE, SIDEBAR_COOKIE_NAME, SIDEBAR_KEYBOARD_SHORTCUT, SIDEBAR_WIDTH, SIDEBAR_WIDTH_ICON } from "../../composables/useSidebar";
|
|
6
|
+
import { cn } from "../../utils";
|
|
7
|
+
const props = defineProps({
|
|
8
|
+
defaultOpen: { type: Boolean, required: false, default: true },
|
|
9
|
+
open: { type: Boolean, required: false, default: void 0 },
|
|
10
|
+
class: { type: null, required: false },
|
|
11
|
+
una: { type: Object, required: false }
|
|
12
|
+
});
|
|
13
|
+
const emits = defineEmits(["update:open"]);
|
|
14
|
+
const isMobile = useMediaQuery("(max-width: 768px)");
|
|
15
|
+
const openMobile = ref(false);
|
|
16
|
+
const open = useVModel(props, "open", emits, {
|
|
23
17
|
defaultValue: props.defaultOpen ?? false,
|
|
24
|
-
passive:
|
|
25
|
-
})
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
// This sets the cookie to keep the sidebar state.
|
|
31
|
-
document.cookie = `${SIDEBAR_COOKIE_NAME}=${open.value}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`
|
|
18
|
+
passive: props.open === void 0
|
|
19
|
+
});
|
|
20
|
+
function setOpen(value) {
|
|
21
|
+
open.value = value;
|
|
22
|
+
document.cookie = `${SIDEBAR_COOKIE_NAME}=${open.value}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;
|
|
32
23
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
openMobile.value = value
|
|
24
|
+
function setOpenMobile(value) {
|
|
25
|
+
openMobile.value = value;
|
|
36
26
|
}
|
|
37
|
-
|
|
38
|
-
// Helper to toggle the sidebar.
|
|
39
27
|
function toggleSidebar() {
|
|
40
|
-
return isMobile.value ? setOpenMobile(!openMobile.value) : setOpen(!open.value)
|
|
28
|
+
return isMobile.value ? setOpenMobile(!openMobile.value) : setOpen(!open.value);
|
|
41
29
|
}
|
|
42
|
-
|
|
43
|
-
useEventListener('keydown', (event: KeyboardEvent) => {
|
|
30
|
+
useEventListener("keydown", (event) => {
|
|
44
31
|
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
45
|
-
event.preventDefault()
|
|
46
|
-
toggleSidebar()
|
|
32
|
+
event.preventDefault();
|
|
33
|
+
toggleSidebar();
|
|
47
34
|
}
|
|
48
|
-
})
|
|
49
|
-
|
|
50
|
-
// We add a state so that we can do data-state="expanded" or "collapsed".
|
|
51
|
-
// This makes it easier to style the sidebar with Tailwind classes.
|
|
52
|
-
const state = computed(() => open.value ? 'expanded' : 'collapsed')
|
|
53
|
-
|
|
35
|
+
});
|
|
36
|
+
const state = computed(() => open.value ? "expanded" : "collapsed");
|
|
54
37
|
provideSidebarContext({
|
|
55
38
|
state,
|
|
56
39
|
open,
|
|
@@ -58,22 +41,22 @@ provideSidebarContext({
|
|
|
58
41
|
isMobile,
|
|
59
42
|
openMobile,
|
|
60
43
|
setOpenMobile,
|
|
61
|
-
toggleSidebar
|
|
62
|
-
})
|
|
44
|
+
toggleSidebar
|
|
45
|
+
});
|
|
63
46
|
</script>
|
|
64
47
|
|
|
65
48
|
<template>
|
|
66
49
|
<TooltipProvider :delay-duration="0">
|
|
67
50
|
<div
|
|
68
51
|
:style="{
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
52
|
+
'--sidebar-width': SIDEBAR_WIDTH,
|
|
53
|
+
'--sidebar-width-icon': SIDEBAR_WIDTH_ICON
|
|
54
|
+
}"
|
|
72
55
|
:class="cn(
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
56
|
+
'group/sidebar_wrapper sidebar-provider',
|
|
57
|
+
props.una?.sidebarProvider,
|
|
58
|
+
props.class
|
|
59
|
+
)"
|
|
77
60
|
v-bind="$attrs"
|
|
78
61
|
>
|
|
79
62
|
<slot />
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { NSidebarProviderProps } from '../../types/index.js';
|
|
2
|
+
declare var __VLS_6: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_6) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<NSidebarProviderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
"update:open": (open: boolean) => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<NSidebarProviderProps> & Readonly<{
|
|
9
|
+
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
10
|
+
}>, {
|
|
11
|
+
defaultOpen: boolean;
|
|
12
|
+
open: boolean;
|
|
13
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const { toggleSidebar } = useSidebar()
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useSidebar } from "../../composables/useSidebar";
|
|
3
|
+
import { cn } from "../../utils";
|
|
4
|
+
const props = defineProps({
|
|
5
|
+
class: { type: null, required: false },
|
|
6
|
+
una: { type: Object, required: false }
|
|
7
|
+
});
|
|
8
|
+
const { toggleSidebar } = useSidebar();
|
|
9
9
|
</script>
|
|
10
10
|
|
|
11
11
|
<template>
|
|
@@ -15,10 +15,10 @@ const { toggleSidebar } = useSidebar()
|
|
|
15
15
|
:tabindex="-1"
|
|
16
16
|
title="Toggle Sidebar"
|
|
17
17
|
:class="cn(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
'sidebar-rail',
|
|
19
|
+
props.una?.sidebarRail,
|
|
20
|
+
props.class
|
|
21
|
+
)"
|
|
22
22
|
@click="toggleSidebar"
|
|
23
23
|
>
|
|
24
24
|
<slot />
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
7
|
+
export default _default;
|
|
8
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
9
|
+
new (): {
|
|
10
|
+
$slots: S;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
import { cn } from "../../utils";
|
|
3
|
+
import Separator from "../elements/Separator.vue";
|
|
4
|
+
const props = defineProps({
|
|
5
|
+
class: { type: null, required: false },
|
|
6
|
+
una: { type: Object, required: false }
|
|
7
|
+
});
|
|
7
8
|
</script>
|
|
8
9
|
|
|
9
10
|
<template>
|
|
10
11
|
<Separator
|
|
11
12
|
data-sidebar="separator"
|
|
12
13
|
:class="cn(
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
'sidebar-separator',
|
|
15
|
+
props.una?.sidebarSeparator,
|
|
16
|
+
props.class
|
|
17
|
+
)"
|
|
17
18
|
>
|
|
18
19
|
<slot />
|
|
19
20
|
</Separator>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare var __VLS_5: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_5) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
7
|
+
export default _default;
|
|
8
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
9
|
+
new (): {
|
|
10
|
+
$slots: S;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -1,17 +1,37 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useSidebar } from "../../composables/useSidebar";
|
|
3
|
+
import { cn } from "../../utils";
|
|
4
|
+
import Button from "../elements/Button.vue";
|
|
5
|
+
const props = defineProps({
|
|
6
|
+
class: { type: null, required: false },
|
|
7
|
+
una: { type: Object, required: false },
|
|
8
|
+
type: { type: String, required: false },
|
|
9
|
+
loadingPlacement: { type: String, required: false },
|
|
10
|
+
icon: { type: Boolean, required: false, default: true },
|
|
11
|
+
disabled: { type: Boolean, required: false },
|
|
12
|
+
reverse: { type: Boolean, required: false },
|
|
13
|
+
loading: { type: Boolean, required: false },
|
|
14
|
+
block: { type: Boolean, required: false },
|
|
15
|
+
to: { type: null, required: false },
|
|
16
|
+
label: { type: String, required: false, default: "i-lucide-panel-left" },
|
|
17
|
+
btn: { type: String, required: false, default: "ghost-white" },
|
|
18
|
+
leading: { type: String, required: false },
|
|
19
|
+
trailing: { type: String, required: false },
|
|
20
|
+
size: { type: String, required: false },
|
|
21
|
+
square: { type: null, required: false, default: "7" },
|
|
22
|
+
rounded: { type: null, required: false },
|
|
23
|
+
breadcrumbActive: { type: String, required: false },
|
|
24
|
+
breadcrumbInactive: { type: String, required: false },
|
|
25
|
+
paginationSelected: { type: String, required: false },
|
|
26
|
+
paginationUnselected: { type: String, required: false },
|
|
27
|
+
dropdownMenu: { type: String, required: false },
|
|
28
|
+
toggleOn: { type: String, required: false },
|
|
29
|
+
toggleOff: { type: String, required: false },
|
|
30
|
+
navigationMenu: { type: String, required: false },
|
|
31
|
+
navigationMenuLink: { type: String, required: false },
|
|
32
|
+
ariaLabel: { type: String, required: false }
|
|
33
|
+
});
|
|
34
|
+
const { toggleSidebar } = useSidebar();
|
|
15
35
|
</script>
|
|
16
36
|
|
|
17
37
|
<template>
|
|
@@ -19,10 +39,10 @@ const { toggleSidebar } = useSidebar()
|
|
|
19
39
|
data-sidebar="trigger"
|
|
20
40
|
v-bind="props"
|
|
21
41
|
:class="cn(
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
42
|
+
'p-0',
|
|
43
|
+
props.una?.sidebarTrigger,
|
|
44
|
+
props.class
|
|
45
|
+
)"
|
|
26
46
|
@click="toggleSidebar"
|
|
27
47
|
/>
|
|
28
48
|
</template>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { NSidebarTriggerProps } from '../../types/index.js';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<NSidebarTriggerProps>, {
|
|
3
|
+
btn: string;
|
|
4
|
+
square: string;
|
|
5
|
+
label: string;
|
|
6
|
+
icon: boolean;
|
|
7
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<NSidebarTriggerProps>, {
|
|
8
|
+
btn: string;
|
|
9
|
+
square: string;
|
|
10
|
+
label: string;
|
|
11
|
+
icon: boolean;
|
|
12
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithDefaults<P, D> = {
|
|
15
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
16
|
+
default: D[K];
|
|
17
|
+
}> : P[K];
|
|
18
|
+
};
|
|
19
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
20
|
+
type __VLS_TypePropsToOption<T> = {
|
|
21
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
22
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
23
|
+
} : {
|
|
24
|
+
type: import('vue').PropType<T[K]>;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
type __VLS_PrettifyLocal<T> = {
|
|
29
|
+
[K in keyof T]: T[K];
|
|
30
|
+
} & {};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import type { AlertDialogActionProps, AlertDialogCancelProps, AlertDialogContentProps, AlertDialogDescriptionProps, AlertDialogOverlayProps, AlertDialogProps, AlertDialogTitleProps, AlertDialogTriggerProps } from 'reka-ui';
|
|
2
|
+
import type { HTMLAttributes } from 'vue';
|
|
3
|
+
import type { NButtonProps } from './button.js';
|
|
4
|
+
export interface NAlertDialogProps extends AlertDialogProps, Pick<NAlertDialogContentProps, 'preventClose' | 'overlay' | '_alertDialogCancel' | '_alertDialogAction' | '_alertDialogOverlay'> {
|
|
5
|
+
/**
|
|
6
|
+
* The title of the dialog.
|
|
7
|
+
*/
|
|
8
|
+
title?: string;
|
|
9
|
+
/**
|
|
10
|
+
* The description of the dialog.
|
|
11
|
+
*/
|
|
12
|
+
description?: string;
|
|
13
|
+
_alertDialogTitle?: NAlertDialogTitleProps;
|
|
14
|
+
_alertDialogDescription?: NAlertDialogDescriptionProps;
|
|
15
|
+
_alertDialogContent?: NAlertDialogContentProps;
|
|
16
|
+
_alertDialogTrigger?: NAlertDialogTriggerProps;
|
|
17
|
+
_alertDialogHeader?: NAlertDialogHeaderProps;
|
|
18
|
+
_alertDialogFooter?: NAlertDialogFooterProps;
|
|
19
|
+
/**
|
|
20
|
+
* `UnaUI` preset configuration
|
|
21
|
+
*
|
|
22
|
+
* @see https://github.com/una-ui/una-ui/blob/main/packages/preset/src/_shortcuts/alert-dialog.ts
|
|
23
|
+
*/
|
|
24
|
+
una?: NAlertDialogUnaProps;
|
|
25
|
+
}
|
|
26
|
+
interface BaseExtensions {
|
|
27
|
+
class?: HTMLAttributes['class'];
|
|
28
|
+
}
|
|
29
|
+
export interface NAlertDialogTitleProps extends AlertDialogTitleProps, BaseExtensions {
|
|
30
|
+
una?: Pick<NAlertDialogUnaProps, 'alertDialogTitle'>;
|
|
31
|
+
}
|
|
32
|
+
export interface NAlertDialogDescriptionProps extends AlertDialogDescriptionProps, BaseExtensions {
|
|
33
|
+
una?: Pick<NAlertDialogUnaProps, 'alertDialogDescription'>;
|
|
34
|
+
}
|
|
35
|
+
export interface NAlertDialogTriggerProps extends AlertDialogTriggerProps {
|
|
36
|
+
}
|
|
37
|
+
export interface NAlertDialogContentProps extends AlertDialogContentProps, BaseExtensions {
|
|
38
|
+
/**
|
|
39
|
+
* Prevent close.
|
|
40
|
+
*
|
|
41
|
+
* @default true
|
|
42
|
+
*/
|
|
43
|
+
preventClose?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Show overlay.
|
|
46
|
+
*
|
|
47
|
+
* @default true
|
|
48
|
+
*/
|
|
49
|
+
overlay?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* The cancel button props.
|
|
52
|
+
*/
|
|
53
|
+
_alertDialogCancel?: NAlertDialogCancelProps;
|
|
54
|
+
/**
|
|
55
|
+
* The action button props.
|
|
56
|
+
*/
|
|
57
|
+
_alertDialogAction?: NAlertDialogActionProps;
|
|
58
|
+
/**
|
|
59
|
+
* The overlay props.
|
|
60
|
+
*/
|
|
61
|
+
_alertDialogOverlay?: NAlertDialogOverlayProps;
|
|
62
|
+
/**
|
|
63
|
+
* `UnaUI` preset configuration
|
|
64
|
+
*
|
|
65
|
+
* @see https://github.com/una-ui/una-ui/blob/main/packages/preset/src/_shortcuts/alert-dialog.ts
|
|
66
|
+
*/
|
|
67
|
+
una?: Pick<NAlertDialogUnaProps, 'alertDialogContent' | 'alertDialogOverlay'>;
|
|
68
|
+
}
|
|
69
|
+
export interface NAlertDialogOverlayProps extends BaseExtensions, AlertDialogOverlayProps {
|
|
70
|
+
una?: Pick<NAlertDialogUnaProps, 'alertDialogOverlay'>;
|
|
71
|
+
}
|
|
72
|
+
export interface NAlertDialogCancelProps extends AlertDialogCancelProps, NButtonProps {
|
|
73
|
+
/**
|
|
74
|
+
* The cancel callback, triggered when the cancel button is clicked.
|
|
75
|
+
*/
|
|
76
|
+
onClick?: (e: Event) => void;
|
|
77
|
+
}
|
|
78
|
+
export interface NAlertDialogActionProps extends AlertDialogActionProps, NButtonProps {
|
|
79
|
+
/**
|
|
80
|
+
* The action callback, triggered when the action button is clicked.
|
|
81
|
+
*/
|
|
82
|
+
onClick?: (e: Event) => void;
|
|
83
|
+
}
|
|
84
|
+
export interface NAlertDialogHeaderProps extends BaseExtensions {
|
|
85
|
+
una?: Pick<NAlertDialogUnaProps, 'alertDialogHeader'>;
|
|
86
|
+
}
|
|
87
|
+
export interface NAlertDialogFooterProps extends BaseExtensions {
|
|
88
|
+
una?: Pick<NAlertDialogUnaProps, 'alertDialogFooter'>;
|
|
89
|
+
}
|
|
90
|
+
export interface NAlertDialogUnaProps {
|
|
91
|
+
alertDialogTitle?: HTMLAttributes['class'];
|
|
92
|
+
alertDialogDescription?: HTMLAttributes['class'];
|
|
93
|
+
alertDialogOverlay?: HTMLAttributes['class'];
|
|
94
|
+
alertDialogContent?: HTMLAttributes['class'];
|
|
95
|
+
alertDialogHeader?: HTMLAttributes['class'];
|
|
96
|
+
alertDialogFooter?: HTMLAttributes['class'];
|
|
97
|
+
}
|
|
98
|
+
export {};
|
|
File without changes
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './accordion.js';
|
|
2
2
|
export * from './alert.js';
|
|
3
|
+
export * from './alert-dialog.js';
|
|
3
4
|
export * from './aspect-ratio.js';
|
|
4
5
|
export * from './avatar.js';
|
|
5
6
|
export * from './avatar-group.js';
|
|
@@ -25,6 +26,7 @@ export * from './pagination.js';
|
|
|
25
26
|
export * from './popover.js';
|
|
26
27
|
export * from './progress.js';
|
|
27
28
|
export * from './radio-group.js';
|
|
29
|
+
export * from './resizable.js';
|
|
28
30
|
export * from './scroll-area.js';
|
|
29
31
|
export * from './select.js';
|
|
30
32
|
export * from './separator.js';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./accordion.js";
|
|
2
2
|
export * from "./alert.js";
|
|
3
|
+
export * from "./alert-dialog.js";
|
|
3
4
|
export * from "./aspect-ratio.js";
|
|
4
5
|
export * from "./avatar.js";
|
|
5
6
|
export * from "./avatar-group.js";
|
|
@@ -25,6 +26,7 @@ export * from "./pagination.js";
|
|
|
25
26
|
export * from "./popover.js";
|
|
26
27
|
export * from "./progress.js";
|
|
27
28
|
export * from "./radio-group.js";
|
|
29
|
+
export * from "./resizable.js";
|
|
28
30
|
export * from "./scroll-area.js";
|
|
29
31
|
export * from "./select.js";
|
|
30
32
|
export * from "./separator.js";
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { SplitterGroupProps, SplitterPanelProps, SplitterResizeHandleProps } from 'reka-ui';
|
|
2
|
+
import type { HTMLAttributes } from 'vue';
|
|
3
|
+
interface BaseExtension {
|
|
4
|
+
/** CSS class for the component */
|
|
5
|
+
class?: HTMLAttributes['class'];
|
|
6
|
+
}
|
|
7
|
+
export interface NResizablePanelGroupProps extends SplitterGroupProps, BaseExtension {
|
|
8
|
+
/** Additional properties for the una component */
|
|
9
|
+
una?: Pick<NResizableUnaProps, 'resizablePanelGroup'>;
|
|
10
|
+
}
|
|
11
|
+
export interface NResizablePanelProps extends SplitterPanelProps, BaseExtension {
|
|
12
|
+
/** Additional properties for the una component */
|
|
13
|
+
una?: Pick<NResizableUnaProps, 'resizablePanel'>;
|
|
14
|
+
}
|
|
15
|
+
export interface NResizableHandleProps extends SplitterResizeHandleProps, BaseExtension {
|
|
16
|
+
/**
|
|
17
|
+
* Allows you to add `UnaUI` resizable handle preset properties,
|
|
18
|
+
* Think of it as a shortcut for adding options or variants to the preset if available.
|
|
19
|
+
*
|
|
20
|
+
* @see https://github.com/una-ui/una-ui/blob/main/packages/preset/src/_shortcuts/resizable.ts
|
|
21
|
+
* @example
|
|
22
|
+
* resizable-handle="outline-yellow"
|
|
23
|
+
*/
|
|
24
|
+
resizableHandle?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Custom handle icon
|
|
27
|
+
* @example
|
|
28
|
+
* icon="i-lucide-grip-vertical"
|
|
29
|
+
*/
|
|
30
|
+
icon?: boolean | HTMLAttributes['class'];
|
|
31
|
+
/** Additional properties for the una component */
|
|
32
|
+
una?: Pick<NResizableUnaProps, 'resizableHandle' | 'resizableHandleIconWrapper' | 'resizableHandleIcon'>;
|
|
33
|
+
}
|
|
34
|
+
interface NResizableUnaProps {
|
|
35
|
+
/** CSS class for the resizable panel */
|
|
36
|
+
resizablePanel?: HTMLAttributes['class'];
|
|
37
|
+
/** CSS class for the resizable panel group */
|
|
38
|
+
resizablePanelGroup?: HTMLAttributes['class'];
|
|
39
|
+
/** CSS class for the resizable handle */
|
|
40
|
+
resizableHandle?: HTMLAttributes['class'];
|
|
41
|
+
/** CSS class for the resizable handle icon wrapper */
|
|
42
|
+
resizableHandleIconWrapper?: HTMLAttributes['class'];
|
|
43
|
+
/** CSS class for the resizable handle icon */
|
|
44
|
+
resizableHandleIcon?: HTMLAttributes['class'];
|
|
45
|
+
}
|
|
46
|
+
export {};
|
|
File without changes
|
package/dist/types.d.mts
CHANGED
package/dist/una.config.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { createExternalPackageIconLoader } from '@iconify/utils/lib/loader/exter
|
|
|
2
2
|
import extratorUna from '@una-ui/extractor-vue-script';
|
|
3
3
|
import presetUna from '@una-ui/preset';
|
|
4
4
|
import prefixes from '@una-ui/preset/prefixes';
|
|
5
|
-
import {
|
|
5
|
+
import { transformerDirectives, transformerVariantGroup, presetWind3, presetAttributify, presetIcons, mergeConfigs } from 'unocss';
|
|
6
6
|
import { presetAnimations } from 'unocss-preset-animations';
|
|
7
7
|
|
|
8
8
|
const unaConfig = {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@una-ui/nuxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.53.0",
|
|
5
5
|
"description": "Nuxt module for @una-ui",
|
|
6
6
|
"author": "Phojie Rengel <phojrengel@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -13,9 +13,8 @@
|
|
|
13
13
|
},
|
|
14
14
|
"exports": {
|
|
15
15
|
".": {
|
|
16
|
-
"types": "./dist/types.d.
|
|
17
|
-
"import": "./dist/module.mjs"
|
|
18
|
-
"require": "./dist/module.cjs"
|
|
16
|
+
"types": "./dist/types.d.mts",
|
|
17
|
+
"import": "./dist/module.mjs"
|
|
19
18
|
},
|
|
20
19
|
"./una.config": {
|
|
21
20
|
"import": "./dist/una.config.mjs"
|
|
@@ -31,8 +30,8 @@
|
|
|
31
30
|
"imports": {
|
|
32
31
|
"#build/una/*": "./.nuxt/una/*.ts"
|
|
33
32
|
},
|
|
34
|
-
"
|
|
35
|
-
"types": "./dist/types.d.
|
|
33
|
+
"module": "./dist/module.mjs",
|
|
34
|
+
"types": "./dist/types.d.mts",
|
|
36
35
|
"files": [
|
|
37
36
|
"dist"
|
|
38
37
|
],
|
|
@@ -56,17 +55,16 @@
|
|
|
56
55
|
"ohash": "^1.1.6",
|
|
57
56
|
"reka-ui": "^2.2.0",
|
|
58
57
|
"tailwind-merge": "^3.2.0",
|
|
59
|
-
"typescript": "5.6.3",
|
|
60
58
|
"unocss": "^66.0.0",
|
|
61
59
|
"unocss-preset-animations": "^1.2.1",
|
|
62
|
-
"@una-ui/extractor-vue-script": "^0.
|
|
63
|
-
"@una-ui/preset": "^0.
|
|
60
|
+
"@una-ui/extractor-vue-script": "^0.53.0",
|
|
61
|
+
"@una-ui/preset": "^0.53.0"
|
|
64
62
|
},
|
|
65
63
|
"devDependencies": {
|
|
66
64
|
"@iconify-json/lucide": "^1.2.39",
|
|
67
65
|
"@iconify-json/radix-icons": "^1.2.2",
|
|
68
66
|
"@iconify-json/tabler": "^1.2.17",
|
|
69
|
-
"@nuxt/module-builder": "^0.
|
|
67
|
+
"@nuxt/module-builder": "^1.0.1",
|
|
70
68
|
"@nuxt/schema": "^3.17.1",
|
|
71
69
|
"nuxt": "^3.17.1",
|
|
72
70
|
"zod": "^3.24.3"
|
package/dist/module.cjs
DELETED
package/dist/module.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
|
-
import { UnaSettings } from '../dist/runtime/types/index.js';
|
|
3
|
-
export * from '../dist/runtime/types/index.js';
|
|
4
|
-
|
|
5
|
-
declare module '@nuxt/schema' {
|
|
6
|
-
interface AppConfigInput {
|
|
7
|
-
una?: Partial<Omit<UnaSettings, 'primaryColors' | 'grayColors'>>;
|
|
8
|
-
}
|
|
9
|
-
interface AppConfig {
|
|
10
|
-
una: Omit<UnaSettings, 'primaryColors' | 'grayColors'>;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
interface ModuleOptions {
|
|
14
|
-
/**
|
|
15
|
-
* @default 'N'
|
|
16
|
-
*/
|
|
17
|
-
prefix?: string;
|
|
18
|
-
/**
|
|
19
|
-
* @default true
|
|
20
|
-
* @description Enable themeable ui
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
themeable?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* @default true
|
|
26
|
-
* @description Register components globally
|
|
27
|
-
*/
|
|
28
|
-
global?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* @default false
|
|
31
|
-
*/
|
|
32
|
-
dev: boolean;
|
|
33
|
-
}
|
|
34
|
-
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
35
|
-
|
|
36
|
-
export { type ModuleOptions, _default as default };
|
package/dist/types.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { type ModuleOptions, default } from './module'
|
package/dist/una.config.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { UnocssNuxtOptions } from '@unocss/nuxt';
|
|
2
|
-
import { UserConfig } from 'unocss';
|
|
3
|
-
|
|
4
|
-
declare const unaConfig: UserConfig<object>;
|
|
5
|
-
declare function defaultConfig(...configs: UserConfig<object>[]): UserConfig<object>;
|
|
6
|
-
declare function extendUnocssOptions(options?: UnocssNuxtOptions): UnocssNuxtOptions;
|
|
7
|
-
|
|
8
|
-
export { extendUnocssOptions as default, defaultConfig, unaConfig };
|