@una-ui/nuxt 0.54.2 → 0.54.3
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.json +2 -2
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/alert-dialog/AlertDialog.vue +43 -38
- package/dist/runtime/components/alert-dialog/AlertDialog.vue.d.ts +45 -0
- package/dist/runtime/components/alert-dialog/AlertDialogAction.vue +35 -9
- package/dist/runtime/components/alert-dialog/AlertDialogAction.vue.d.ts +16 -0
- package/dist/runtime/components/alert-dialog/AlertDialogCancel.vue +39 -13
- package/dist/runtime/components/alert-dialog/AlertDialogCancel.vue.d.ts +16 -0
- package/dist/runtime/components/alert-dialog/AlertDialogContent.vue +39 -33
- package/dist/runtime/components/alert-dialog/AlertDialogContent.vue.d.ts +45 -0
- package/dist/runtime/components/alert-dialog/AlertDialogDescription.vue +15 -13
- package/dist/runtime/components/alert-dialog/AlertDialogDescription.vue.d.ts +13 -0
- package/dist/runtime/components/alert-dialog/AlertDialogFooter.vue +12 -11
- package/dist/runtime/components/alert-dialog/AlertDialogFooter.vue.d.ts +13 -0
- package/dist/runtime/components/alert-dialog/AlertDialogHeader.vue +10 -9
- package/dist/runtime/components/alert-dialog/AlertDialogHeader.vue.d.ts +13 -0
- package/dist/runtime/components/alert-dialog/AlertDialogOverlay.vue +15 -11
- package/dist/runtime/components/alert-dialog/AlertDialogOverlay.vue.d.ts +13 -0
- package/dist/runtime/components/alert-dialog/AlertDialogTitle.vue +15 -13
- package/dist/runtime/components/alert-dialog/AlertDialogTitle.vue.d.ts +13 -0
- package/dist/runtime/components/alert-dialog/AlertDialogTrigger.vue +6 -5
- 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 +145 -144
- 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 +15 -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 -24
- package/dist/runtime/components/combobox/ComboboxInput.vue.d.ts +16 -0
- package/dist/runtime/components/combobox/ComboboxItem.vue +23 -22
- 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 +75 -52
- 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 +36 -35
- 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 +49 -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 +118 -134
- package/dist/runtime/components/forms/Input.vue.d.ts +31 -0
- package/dist/runtime/components/forms/Slider.vue +48 -33
- 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 +66 -62
- 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 +79 -54
- 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 +36 -36
- package/dist/runtime/components/resizable/ResizableHandle.vue.d.ts +21 -0
- package/dist/runtime/components/resizable/ResizablePanel.vue +24 -17
- package/dist/runtime/components/resizable/ResizablePanel.vue.d.ts +24 -0
- package/dist/runtime/components/resizable/ResizablePanelGroup.vue +22 -17
- 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/types.d.mts +3 -5
- package/dist/una.config.mjs +1 -1
- package/package.json +4 -4
- package/dist/module.cjs +0 -5
- package/dist/module.d.ts +0 -37
- package/dist/types.d.ts +0 -7
- package/dist/una.config.d.ts +0 -8
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare var __VLS_6: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_6) => 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, true, {}, 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,21 +1,21 @@
|
|
|
1
|
-
<script
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const { formDescriptionId } = useFormField()
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useFormField } from "../../../composables/useFormField";
|
|
3
|
+
import { cn } from "../../../utils";
|
|
4
|
+
const props = defineProps({
|
|
5
|
+
class: { type: null, required: false },
|
|
6
|
+
una: { type: Object, required: false }
|
|
7
|
+
});
|
|
8
|
+
const { formDescriptionId } = useFormField();
|
|
9
9
|
</script>
|
|
10
10
|
|
|
11
11
|
<template>
|
|
12
12
|
<p
|
|
13
13
|
:id="formDescriptionId"
|
|
14
14
|
:class="cn(
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
'form-description',
|
|
16
|
+
props.una?.formDescription,
|
|
17
|
+
props.class
|
|
18
|
+
)"
|
|
19
19
|
>
|
|
20
20
|
<slot />
|
|
21
21
|
</p>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { NFormDescriptionProps } from '../../../types/index.js';
|
|
2
|
+
declare var __VLS_1: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_1) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<NFormDescriptionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NFormDescriptionProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -1,32 +1,41 @@
|
|
|
1
|
-
<script setup
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import FormMessage from './FormMessage.vue'
|
|
12
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
import { Field } from "vee-validate";
|
|
3
|
+
import { computed } from "vue";
|
|
4
|
+
import { cn } from "../../../utils";
|
|
5
|
+
import FormFieldDefaultSlot from "../../slots/FormFieldDefault";
|
|
6
|
+
import FormControl from "./FormControl.vue";
|
|
7
|
+
import FormDescription from "./FormDescription.vue";
|
|
8
|
+
import FormItem from "./FormItem.vue";
|
|
9
|
+
import FormLabel from "./FormLabel.vue";
|
|
10
|
+
import FormMessage from "./FormMessage.vue";
|
|
13
11
|
defineOptions({
|
|
14
|
-
inheritAttrs: false
|
|
15
|
-
})
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
inheritAttrs: false
|
|
13
|
+
});
|
|
14
|
+
const props = defineProps({
|
|
15
|
+
class: { type: null, required: false },
|
|
16
|
+
status: { type: String, required: false },
|
|
17
|
+
required: { type: Boolean, required: false },
|
|
18
|
+
name: { type: String, required: true },
|
|
19
|
+
id: { type: String, required: false },
|
|
20
|
+
label: { type: String, required: false },
|
|
21
|
+
hint: { type: null, required: false },
|
|
22
|
+
description: { type: null, required: false },
|
|
23
|
+
message: { type: null, required: false },
|
|
24
|
+
una: { type: Object, required: false },
|
|
25
|
+
for: { type: String, required: false },
|
|
26
|
+
asChild: { type: Boolean, required: false },
|
|
27
|
+
as: { type: null, required: false }
|
|
28
|
+
});
|
|
19
29
|
const statusClassVariants = computed(() => {
|
|
20
30
|
const text = {
|
|
21
|
-
info:
|
|
22
|
-
success:
|
|
23
|
-
warning:
|
|
24
|
-
error:
|
|
25
|
-
default:
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
})
|
|
31
|
+
info: "text-info",
|
|
32
|
+
success: "text-success",
|
|
33
|
+
warning: "text-warning",
|
|
34
|
+
error: "text-error",
|
|
35
|
+
default: "text-muted"
|
|
36
|
+
};
|
|
37
|
+
return text[props.status ?? "default"];
|
|
38
|
+
});
|
|
30
39
|
</script>
|
|
31
40
|
|
|
32
41
|
<template>
|
|
@@ -36,36 +45,36 @@ const statusClassVariants = computed(() => {
|
|
|
36
45
|
>
|
|
37
46
|
<FormItem
|
|
38
47
|
:class="cn(
|
|
39
|
-
|
|
40
|
-
|
|
48
|
+
props.class
|
|
49
|
+
)"
|
|
41
50
|
:una
|
|
42
51
|
>
|
|
43
52
|
<slot name="top">
|
|
44
53
|
<div
|
|
45
54
|
:class="cn(
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
55
|
+
'form-field-top-wrapper',
|
|
56
|
+
una?.formFieldTopWrapper
|
|
57
|
+
)"
|
|
49
58
|
>
|
|
50
59
|
<div
|
|
51
60
|
v-if="label || hint || description"
|
|
52
61
|
:class="cn(
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
62
|
+
'form-field-top-wrapper',
|
|
63
|
+
una?.formFieldTopWrapper
|
|
64
|
+
)"
|
|
56
65
|
>
|
|
57
66
|
<div
|
|
58
67
|
v-if="label || hint"
|
|
59
68
|
:class="cn(
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
69
|
+
'form-field-top-wrapper-inner',
|
|
70
|
+
una?.formFieldTopWrapperInner
|
|
71
|
+
)"
|
|
63
72
|
>
|
|
64
73
|
<div
|
|
65
74
|
:class="cn(
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
75
|
+
'form-field-label-wrapper',
|
|
76
|
+
una?.formFieldLabelWrapper
|
|
77
|
+
)"
|
|
69
78
|
>
|
|
70
79
|
<slot name="label">
|
|
71
80
|
<FormLabel
|
|
@@ -78,9 +87,9 @@ const statusClassVariants = computed(() => {
|
|
|
78
87
|
<span
|
|
79
88
|
v-if="required"
|
|
80
89
|
:class="cn(
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
90
|
+
'form-field-label-required',
|
|
91
|
+
una?.formFieldLabelRequired
|
|
92
|
+
)"
|
|
84
93
|
/>
|
|
85
94
|
</FormLabel>
|
|
86
95
|
</slot>
|
|
@@ -90,9 +99,9 @@ const statusClassVariants = computed(() => {
|
|
|
90
99
|
<span
|
|
91
100
|
v-if="hint"
|
|
92
101
|
:class="cn(
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
102
|
+
'form-field-hint',
|
|
103
|
+
una?.formFieldHint
|
|
104
|
+
)"
|
|
96
105
|
>
|
|
97
106
|
{{ hint }}
|
|
98
107
|
</span>
|
|
@@ -123,24 +132,24 @@ const statusClassVariants = computed(() => {
|
|
|
123
132
|
<slot name="bottom">
|
|
124
133
|
<div
|
|
125
134
|
:class="cn(
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
135
|
+
'form-field-bottom-wrapper',
|
|
136
|
+
una?.formFieldBottomWrapper
|
|
137
|
+
)"
|
|
129
138
|
>
|
|
130
139
|
<slot name="message">
|
|
131
140
|
<div
|
|
132
141
|
v-if="message && !errorMessage"
|
|
133
142
|
:class="cn(
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
143
|
+
'form-field-message-wrapper',
|
|
144
|
+
una?.formFieldMessageWrapper
|
|
145
|
+
)"
|
|
137
146
|
>
|
|
138
147
|
<FormDescription
|
|
139
148
|
:class="cn(
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
149
|
+
'form-field-message',
|
|
150
|
+
una?.formMessage,
|
|
151
|
+
statusClassVariants
|
|
152
|
+
)"
|
|
144
153
|
>
|
|
145
154
|
{{ message }}
|
|
146
155
|
</FormDescription>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { NFormFieldProps } from '../../../types/index.js';
|
|
2
|
+
declare var __VLS_9: {}, __VLS_11: {}, __VLS_16: {}, __VLS_18: {}, __VLS_30: {}, __VLS_32: {}, __VLS_34: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
top?: (props: typeof __VLS_9) => any;
|
|
5
|
+
} & {
|
|
6
|
+
label?: (props: typeof __VLS_11) => any;
|
|
7
|
+
} & {
|
|
8
|
+
hint?: (props: typeof __VLS_16) => any;
|
|
9
|
+
} & {
|
|
10
|
+
description?: (props: typeof __VLS_18) => any;
|
|
11
|
+
} & {
|
|
12
|
+
default?: (props: typeof __VLS_30) => any;
|
|
13
|
+
} & {
|
|
14
|
+
bottom?: (props: typeof __VLS_32) => any;
|
|
15
|
+
} & {
|
|
16
|
+
message?: (props: typeof __VLS_34) => any;
|
|
17
|
+
};
|
|
18
|
+
declare const __VLS_component: import("vue").DefineComponent<NFormFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NFormFieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
<script
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const id = randomId(
|
|
10
|
-
provide(FORM_ITEM_INJECTION_KEY, id)
|
|
1
|
+
<script setup>
|
|
2
|
+
import { provide } from "vue";
|
|
3
|
+
import { cn, randomId } from "../../../utils";
|
|
4
|
+
import { FORM_ITEM_INJECTION_KEY } from "../../../utils/injectionKeys";
|
|
5
|
+
const props = defineProps({
|
|
6
|
+
class: { type: null, required: false },
|
|
7
|
+
una: { type: Object, required: false }
|
|
8
|
+
});
|
|
9
|
+
const id = randomId("form");
|
|
10
|
+
provide(FORM_ITEM_INJECTION_KEY, id);
|
|
11
11
|
</script>
|
|
12
12
|
|
|
13
13
|
<template>
|
|
14
14
|
<div
|
|
15
15
|
:class="cn(
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
'form-item',
|
|
17
|
+
props.una?.formItem,
|
|
18
|
+
props.class
|
|
19
|
+
)"
|
|
20
20
|
>
|
|
21
21
|
<slot />
|
|
22
22
|
</div>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { NFormItemProps } from '../../../types/index.js';
|
|
2
|
+
declare var __VLS_1: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_1) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<NFormItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NFormItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -1,21 +1,25 @@
|
|
|
1
|
-
<script
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useFormField } from "../../../composables/useFormField";
|
|
3
|
+
import { cn } from "../../../utils";
|
|
4
|
+
import Label from "../../elements/Label.vue";
|
|
5
|
+
const props = defineProps({
|
|
6
|
+
una: { type: Object, required: false },
|
|
7
|
+
label: { type: String, required: false },
|
|
8
|
+
class: { type: null, required: false },
|
|
9
|
+
for: { type: String, required: false },
|
|
10
|
+
asChild: { type: Boolean, required: false },
|
|
11
|
+
as: { type: null, required: false }
|
|
12
|
+
});
|
|
13
|
+
const { formItemId } = useFormField();
|
|
10
14
|
</script>
|
|
11
15
|
|
|
12
16
|
<template>
|
|
13
17
|
<Label
|
|
14
18
|
:class="cn(
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
+
'form-label',
|
|
20
|
+
props.una?.formLabel,
|
|
21
|
+
props.class
|
|
22
|
+
)"
|
|
19
23
|
:for="formItemId"
|
|
20
24
|
>
|
|
21
25
|
<slot />
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { NFormLabelProps } from '../../../types/index.js';
|
|
2
|
+
declare var __VLS_5: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_5) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<NFormLabelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NFormLabelProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
<script
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const { name, formMessageId } = useFormField()
|
|
1
|
+
<script setup>
|
|
2
|
+
import { ErrorMessage } from "vee-validate";
|
|
3
|
+
import { toValue } from "vue";
|
|
4
|
+
import { useFormField } from "../../../composables/useFormField";
|
|
5
|
+
import { cn } from "../../../utils";
|
|
6
|
+
const props = defineProps({
|
|
7
|
+
class: { type: null, required: false },
|
|
8
|
+
una: { type: Object, required: false }
|
|
9
|
+
});
|
|
10
|
+
const { name, formMessageId } = useFormField();
|
|
11
11
|
</script>
|
|
12
12
|
|
|
13
13
|
<template>
|
|
@@ -16,9 +16,9 @@ const { name, formMessageId } = useFormField()
|
|
|
16
16
|
as="p"
|
|
17
17
|
:name="toValue(name)"
|
|
18
18
|
:class="cn(
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
'form-message',
|
|
20
|
+
props.una?.formMessage,
|
|
21
|
+
props.class
|
|
22
|
+
)"
|
|
23
23
|
/>
|
|
24
24
|
</template>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { NFormMessageProps } from '../../../types/index.js';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<NFormMessageProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NFormMessageProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
3
|
+
export default _default;
|
|
@@ -1,67 +1,71 @@
|
|
|
1
|
-
<script
|
|
2
|
-
import type { AcceptableValue, RadioGroupRootEmits } from 'reka-ui'
|
|
3
|
-
import type { NRadioGroupItemProps, NRadioGroupProps } from '../../../types'
|
|
4
|
-
</script>
|
|
5
|
-
|
|
6
|
-
<script setup lang="ts" generic="T extends AcceptableValue">
|
|
7
|
-
import { reactivePick } from '@vueuse/core'
|
|
8
|
-
import { RadioGroupRoot, useForwardPropsEmits } from 'reka-ui'
|
|
9
|
-
import { cn } from '../../../utils'
|
|
10
|
-
import RadioGroupItem from './RadioGroupItem.vue'
|
|
1
|
+
<script>
|
|
11
2
|
|
|
12
|
-
|
|
13
|
-
radioGroup: 'primary',
|
|
14
|
-
size: 'md',
|
|
15
|
-
square: '1em',
|
|
16
|
-
})
|
|
17
|
-
|
|
18
|
-
const emits = defineEmits<RadioGroupRootEmits>()
|
|
3
|
+
</script>
|
|
19
4
|
|
|
5
|
+
<script setup>
|
|
6
|
+
import { reactivePick } from "@vueuse/core";
|
|
7
|
+
import { RadioGroupRoot, useForwardPropsEmits } from "reka-ui";
|
|
8
|
+
import { cn } from "../../../utils";
|
|
9
|
+
import RadioGroupItem from "./RadioGroupItem.vue";
|
|
10
|
+
const props = defineProps({
|
|
11
|
+
items: { type: Array, required: false },
|
|
12
|
+
labelKey: { type: null, required: false },
|
|
13
|
+
valueKey: { type: null, required: false },
|
|
14
|
+
descriptionKey: { type: null, required: false },
|
|
15
|
+
reverse: { type: Boolean, required: false },
|
|
16
|
+
radioGroup: { type: null, required: false, default: "primary" },
|
|
17
|
+
una: { type: Object, required: false },
|
|
18
|
+
class: { type: null, required: false },
|
|
19
|
+
size: { type: null, required: false, default: "md" },
|
|
20
|
+
square: { type: null, required: false, default: "1em" },
|
|
21
|
+
rounded: { type: null, required: false },
|
|
22
|
+
icon: { type: null, required: false },
|
|
23
|
+
modelValue: { type: [String, Number, Object, null], required: false },
|
|
24
|
+
defaultValue: { type: [String, Number, Object, null], required: false },
|
|
25
|
+
disabled: { type: Boolean, required: false },
|
|
26
|
+
orientation: { type: String, required: false },
|
|
27
|
+
dir: { type: String, required: false },
|
|
28
|
+
loop: { type: Boolean, required: false },
|
|
29
|
+
asChild: { type: Boolean, required: false },
|
|
30
|
+
as: { type: null, required: false },
|
|
31
|
+
name: { type: String, required: false },
|
|
32
|
+
required: { type: Boolean, required: false }
|
|
33
|
+
});
|
|
34
|
+
const emits = defineEmits(["update:modelValue"]);
|
|
20
35
|
const rootProps = reactivePick(props, [
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
])
|
|
27
|
-
const forwarded = useForwardPropsEmits(rootProps, emits)
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
return typeof item === 'object' && item !== null && 'value' in item
|
|
36
|
+
"modelValue",
|
|
37
|
+
"defaultValue",
|
|
38
|
+
"disabled",
|
|
39
|
+
"required",
|
|
40
|
+
"loop"
|
|
41
|
+
]);
|
|
42
|
+
const forwarded = useForwardPropsEmits(rootProps, emits);
|
|
43
|
+
function isRadioGroupItem(item) {
|
|
44
|
+
return typeof item === "object" && item !== null && "value" in item;
|
|
31
45
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
return typeof item === 'object' && item !== null && key in item
|
|
46
|
+
function isObjectWithKey(item, key) {
|
|
47
|
+
return typeof item === "object" && item !== null && key in item;
|
|
35
48
|
}
|
|
36
|
-
|
|
37
|
-
function getItemValue(item: NonNullable<T | NRadioGroupItemProps>): string {
|
|
49
|
+
function getItemValue(item) {
|
|
38
50
|
if (props.valueKey && isObjectWithKey(item, props.valueKey))
|
|
39
|
-
return String(item[props.valueKey])
|
|
40
|
-
|
|
51
|
+
return String(item[props.valueKey]);
|
|
41
52
|
if (isRadioGroupItem(item))
|
|
42
|
-
return String(item.value)
|
|
43
|
-
|
|
44
|
-
return String(item)
|
|
53
|
+
return String(item.value);
|
|
54
|
+
return String(item);
|
|
45
55
|
}
|
|
46
|
-
|
|
47
|
-
function getItemLabel(item: NonNullable<T | NRadioGroupItemProps>): string {
|
|
56
|
+
function getItemLabel(item) {
|
|
48
57
|
if (props.labelKey && isObjectWithKey(item, props.labelKey))
|
|
49
|
-
return String(item[props.labelKey])
|
|
50
|
-
|
|
58
|
+
return String(item[props.labelKey]);
|
|
51
59
|
if (isRadioGroupItem(item) && item.label)
|
|
52
|
-
return String(item.label)
|
|
53
|
-
|
|
54
|
-
return ''
|
|
60
|
+
return String(item.label);
|
|
61
|
+
return "";
|
|
55
62
|
}
|
|
56
|
-
|
|
57
|
-
function getItemDescription(item: NonNullable<T | NRadioGroupItemProps>): string | undefined {
|
|
63
|
+
function getItemDescription(item) {
|
|
58
64
|
if (props.descriptionKey && isObjectWithKey(item, props.descriptionKey))
|
|
59
|
-
return String(item[props.descriptionKey])
|
|
60
|
-
|
|
65
|
+
return String(item[props.descriptionKey]);
|
|
61
66
|
if (isRadioGroupItem(item) && item.description)
|
|
62
|
-
return String(item.description)
|
|
63
|
-
|
|
64
|
-
return undefined
|
|
67
|
+
return String(item.description);
|
|
68
|
+
return void 0;
|
|
65
69
|
}
|
|
66
70
|
</script>
|
|
67
71
|
|
|
@@ -69,27 +73,27 @@ function getItemDescription(item: NonNullable<T | NRadioGroupItemProps>): string
|
|
|
69
73
|
<RadioGroupRoot
|
|
70
74
|
v-slot="{ modelValue }"
|
|
71
75
|
:class="cn(
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
76
|
+
'radio-group',
|
|
77
|
+
orientation === 'horizontal' ? 'radio-group-orientation-horizontal' : 'radio-group-orientation-vertical',
|
|
78
|
+
una?.radioGroup,
|
|
79
|
+
props.class
|
|
80
|
+
)"
|
|
77
81
|
v-bind="forwarded"
|
|
78
82
|
>
|
|
79
83
|
<slot :model-value>
|
|
80
84
|
<template v-if="items?.length">
|
|
81
85
|
<RadioGroupItem
|
|
82
86
|
v-for="item in items"
|
|
83
|
-
:key="getItemValue(item
|
|
84
|
-
v-bind="{ rounded, icon, size, square, radioGroup, ...
|
|
85
|
-
:una="{ ...una, ...
|
|
86
|
-
:value="getItemValue(item
|
|
87
|
+
:key="getItemValue(item)"
|
|
88
|
+
v-bind="{ rounded, icon, size, square, radioGroup, ...item }"
|
|
89
|
+
:una="{ ...una, ...isRadioGroupItem(item) && item.una }"
|
|
90
|
+
:value="getItemValue(item)"
|
|
87
91
|
>
|
|
88
92
|
<slot
|
|
89
93
|
name="label"
|
|
90
94
|
:item
|
|
91
95
|
>
|
|
92
|
-
{{ getItemLabel(item
|
|
96
|
+
{{ getItemLabel(item) }}
|
|
93
97
|
</slot>
|
|
94
98
|
|
|
95
99
|
<template #description>
|
|
@@ -97,7 +101,7 @@ function getItemDescription(item: NonNullable<T | NRadioGroupItemProps>): string
|
|
|
97
101
|
name="description"
|
|
98
102
|
:item
|
|
99
103
|
>
|
|
100
|
-
{{ getItemDescription(item
|
|
104
|
+
{{ getItemDescription(item) }}
|
|
101
105
|
</slot>
|
|
102
106
|
</template>
|
|
103
107
|
</RadioGroupItem>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { AcceptableValue } from 'reka-ui';
|
|
2
|
+
import type { NRadioGroupItemProps, NRadioGroupProps } from '../../../types/index.js';
|
|
3
|
+
declare const _default: <T extends AcceptableValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
|
+
readonly "onUpdate:modelValue"?: ((payload: string) => any) | undefined;
|
|
6
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onUpdate:modelValue"> & NRadioGroupProps<T> & Partial<{}>> & import("vue").PublicProps;
|
|
7
|
+
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
8
|
+
attrs: any;
|
|
9
|
+
slots: {
|
|
10
|
+
default?: (props: {
|
|
11
|
+
modelValue: AcceptableValue | undefined;
|
|
12
|
+
}) => any;
|
|
13
|
+
} & {
|
|
14
|
+
label?: (props: {
|
|
15
|
+
item: NRadioGroupItemProps | T;
|
|
16
|
+
}) => any;
|
|
17
|
+
} & {
|
|
18
|
+
description?: (props: {
|
|
19
|
+
item: NRadioGroupItemProps | T;
|
|
20
|
+
}) => any;
|
|
21
|
+
};
|
|
22
|
+
emit: (evt: "update:modelValue", payload: string) => void;
|
|
23
|
+
}>) => import("vue").VNode & {
|
|
24
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
25
|
+
};
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_PrettifyLocal<T> = {
|
|
28
|
+
[K in keyof T]: T[K];
|
|
29
|
+
} & {};
|