@una-ui/nuxt 0.53.0 → 0.54.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module.cjs +5 -0
- package/dist/module.d.ts +37 -0
- package/dist/module.json +2 -2
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/alert-dialog/AlertDialog.vue +38 -43
- package/dist/runtime/components/alert-dialog/AlertDialogAction.vue +9 -35
- package/dist/runtime/components/alert-dialog/AlertDialogCancel.vue +13 -39
- package/dist/runtime/components/alert-dialog/AlertDialogContent.vue +33 -39
- package/dist/runtime/components/alert-dialog/AlertDialogDescription.vue +13 -15
- package/dist/runtime/components/alert-dialog/AlertDialogFooter.vue +11 -12
- package/dist/runtime/components/alert-dialog/AlertDialogHeader.vue +9 -10
- package/dist/runtime/components/alert-dialog/AlertDialogOverlay.vue +11 -15
- package/dist/runtime/components/alert-dialog/AlertDialogTitle.vue +13 -15
- package/dist/runtime/components/alert-dialog/AlertDialogTrigger.vue +5 -6
- package/dist/runtime/components/aspect-ratio/AspectRatio.vue +16 -18
- package/dist/runtime/components/combobox/Combobox.vue +145 -144
- package/dist/runtime/components/combobox/ComboboxAnchor.vue +18 -20
- package/dist/runtime/components/combobox/ComboboxEmpty.vue +16 -18
- package/dist/runtime/components/combobox/ComboboxGroup.vue +19 -25
- package/dist/runtime/components/combobox/ComboboxInput.vue +24 -38
- package/dist/runtime/components/combobox/ComboboxItem.vue +22 -23
- package/dist/runtime/components/combobox/ComboboxItemIndicator.vue +23 -23
- package/dist/runtime/components/combobox/ComboboxLabel.vue +10 -16
- package/dist/runtime/components/combobox/ComboboxList.vue +25 -43
- package/dist/runtime/components/combobox/ComboboxSeparator.vue +16 -18
- package/dist/runtime/components/combobox/ComboboxTrigger.vue +52 -75
- package/dist/runtime/components/combobox/ComboboxViewport.vue +18 -20
- package/dist/runtime/components/data/table/Table.vue +186 -206
- package/dist/runtime/components/data/table/TableBody.vue +15 -15
- package/dist/runtime/components/data/table/TableCaption.vue +16 -16
- package/dist/runtime/components/data/table/TableCell.vue +19 -20
- package/dist/runtime/components/data/table/TableEmpty.vue +27 -27
- package/dist/runtime/components/data/table/TableFooter.vue +15 -15
- package/dist/runtime/components/data/table/TableHead.vue +17 -18
- package/dist/runtime/components/data/table/TableHeader.vue +15 -15
- package/dist/runtime/components/data/table/TableLoading.vue +28 -31
- package/dist/runtime/components/data/table/TableRow.vue +15 -15
- package/dist/runtime/components/elements/Accordion.vue +92 -99
- package/dist/runtime/components/elements/Alert.vue +50 -37
- package/dist/runtime/components/elements/AvatarGroup.vue +71 -64
- package/dist/runtime/components/elements/Badge.vue +20 -19
- package/dist/runtime/components/elements/Button.vue +62 -75
- package/dist/runtime/components/elements/Icon.vue +4 -4
- package/dist/runtime/components/elements/Indicator.vue +29 -25
- package/dist/runtime/components/elements/Kbd.vue +12 -13
- package/dist/runtime/components/elements/Label.vue +15 -17
- package/dist/runtime/components/elements/Link.vue +2 -2
- package/dist/runtime/components/elements/Link.vue.d.ts +109 -0
- package/dist/runtime/components/elements/Progress.vue +35 -36
- package/dist/runtime/components/elements/Separator.vue +26 -31
- package/dist/runtime/components/elements/Skeleton.vue +11 -15
- package/dist/runtime/components/elements/Toggle.vue +26 -48
- package/dist/runtime/components/elements/avatar/Avatar.vue +22 -31
- package/dist/runtime/components/elements/avatar/AvatarFallback.vue +17 -26
- package/dist/runtime/components/elements/avatar/AvatarImage.vue +11 -20
- package/dist/runtime/components/elements/card/Card.vue +24 -28
- package/dist/runtime/components/elements/card/CardContent.vue +9 -10
- package/dist/runtime/components/elements/card/CardDescription.vue +9 -10
- package/dist/runtime/components/elements/card/CardFooter.vue +9 -10
- package/dist/runtime/components/elements/card/CardHeader.vue +9 -10
- package/dist/runtime/components/elements/card/CardTitle.vue +11 -12
- package/dist/runtime/components/elements/collapsible/Collapsible.vue +11 -15
- package/dist/runtime/components/elements/collapsible/CollapsibleContent.vue +9 -12
- package/dist/runtime/components/elements/collapsible/CollapsibleTrigger.vue +5 -6
- package/dist/runtime/components/elements/dialog/Dialog.vue +35 -43
- package/dist/runtime/components/elements/dialog/DialogClose.vue +11 -34
- package/dist/runtime/components/elements/dialog/DialogContent.vue +35 -40
- package/dist/runtime/components/elements/dialog/DialogDescription.vue +15 -16
- package/dist/runtime/components/elements/dialog/DialogFooter.vue +9 -10
- package/dist/runtime/components/elements/dialog/DialogHeader.vue +9 -10
- package/dist/runtime/components/elements/dialog/DialogOverlay.vue +11 -13
- package/dist/runtime/components/elements/dialog/DialogScrollContent.vue +37 -39
- package/dist/runtime/components/elements/dialog/DialogTitle.vue +17 -19
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenu.vue +38 -85
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuContent.vue +26 -43
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuGroup.vue +10 -14
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuItem.vue +33 -58
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuLabel.vue +19 -21
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuRoot.vue +9 -13
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSeparator.vue +18 -25
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuShortcut.vue +9 -12
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSub.vue +13 -9
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSubContent.vue +21 -36
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSubTrigger.vue +27 -52
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuTrigger.vue +17 -44
- package/dist/runtime/components/elements/pagination/Pagination.vue +31 -51
- package/dist/runtime/components/elements/pagination/PaginationEllipsis.vue +25 -27
- package/dist/runtime/components/elements/pagination/PaginationFirst.vue +25 -45
- package/dist/runtime/components/elements/pagination/PaginationLast.vue +25 -45
- package/dist/runtime/components/elements/pagination/PaginationListItem.vue +27 -50
- package/dist/runtime/components/elements/pagination/PaginationNext.vue +25 -45
- package/dist/runtime/components/elements/pagination/PaginationPrev.vue +25 -45
- package/dist/runtime/components/elements/popover/Popover.vue +16 -15
- package/dist/runtime/components/elements/popover/PopoverContent.vue +31 -39
- package/dist/runtime/components/elements/tabs/Tabs.vue +21 -32
- package/dist/runtime/components/elements/tabs/TabsContent.vue +18 -22
- package/dist/runtime/components/elements/tabs/TabsList.vue +14 -19
- package/dist/runtime/components/elements/tabs/TabsRoot.vue +13 -22
- package/dist/runtime/components/elements/tabs/TabsTrigger.vue +19 -47
- package/dist/runtime/components/elements/tooltip/Tooltip.vue +24 -36
- package/dist/runtime/components/elements/tooltip/TooltipContent.vue +27 -37
- package/dist/runtime/components/elements/tooltip/TooltipProvider.vue +7 -10
- package/dist/runtime/components/elements/tooltip/TooltipRoot.vue +9 -13
- package/dist/runtime/components/elements/tooltip/TooltipTrigger.vue +5 -34
- package/dist/runtime/components/forms/Checkbox.vue +42 -49
- package/dist/runtime/components/forms/FormGroup.vue +33 -40
- package/dist/runtime/components/forms/Input.vue +134 -118
- package/dist/runtime/components/forms/Slider.vue +33 -48
- package/dist/runtime/components/forms/Switch.vue +42 -43
- package/dist/runtime/components/forms/form/FormControl.vue +5 -4
- package/dist/runtime/components/forms/form/FormDescription.vue +12 -12
- package/dist/runtime/components/forms/form/FormField.vue +56 -65
- package/dist/runtime/components/forms/form/FormItem.vue +14 -14
- package/dist/runtime/components/forms/form/FormLabel.vue +13 -17
- package/dist/runtime/components/forms/form/FormMessage.vue +14 -14
- package/dist/runtime/components/forms/radio-group/RadioGroup.vue +62 -66
- package/dist/runtime/components/forms/radio-group/RadioGroupItem.vue +54 -60
- package/dist/runtime/components/forms/select/Select.vue +63 -81
- package/dist/runtime/components/forms/select/SelectContent.vue +38 -55
- package/dist/runtime/components/forms/select/SelectGroup.vue +16 -18
- package/dist/runtime/components/forms/select/SelectItem.vue +25 -31
- package/dist/runtime/components/forms/select/SelectItemIndicator.vue +15 -17
- package/dist/runtime/components/forms/select/SelectItemText.vue +5 -9
- package/dist/runtime/components/forms/select/SelectLabel.vue +10 -15
- package/dist/runtime/components/forms/select/SelectScrollDownButton.vue +19 -20
- package/dist/runtime/components/forms/select/SelectScrollUpButton.vue +19 -20
- package/dist/runtime/components/forms/select/SelectSeparator.vue +16 -18
- package/dist/runtime/components/forms/select/SelectTrigger.vue +54 -78
- package/dist/runtime/components/forms/select/SelectValue.vue +10 -15
- package/dist/runtime/components/misc/ThemeSwitcher.vue +69 -51
- package/dist/runtime/components/navigation/breadcrumb/Breadcrumb.vue +22 -35
- package/dist/runtime/components/navigation/breadcrumb/BreadcrumbEllipsis.vue +14 -13
- package/dist/runtime/components/navigation/breadcrumb/BreadcrumbItem.vue +9 -10
- package/dist/runtime/components/navigation/breadcrumb/BreadcrumbLink.vue +26 -46
- package/dist/runtime/components/navigation/breadcrumb/BreadcrumbList.vue +9 -10
- package/dist/runtime/components/navigation/breadcrumb/BreadcrumbPage.vue +7 -5
- package/dist/runtime/components/navigation/breadcrumb/BreadcrumbRoot.vue +8 -9
- package/dist/runtime/components/navigation/breadcrumb/BreadcrumbSeparator.vue +13 -13
- package/dist/runtime/components/navigation-menu/NavigationMenu.vue +32 -52
- package/dist/runtime/components/navigation-menu/NavigationMenuContent.vue +19 -22
- package/dist/runtime/components/navigation-menu/NavigationMenuContentItem.vue +24 -53
- package/dist/runtime/components/navigation-menu/NavigationMenuIndicator.vue +15 -18
- package/dist/runtime/components/navigation-menu/NavigationMenuItem.vue +5 -40
- package/dist/runtime/components/navigation-menu/NavigationMenuLink.vue +28 -51
- package/dist/runtime/components/navigation-menu/NavigationMenuList.vue +22 -24
- package/dist/runtime/components/navigation-menu/NavigationMenuTrigger.vue +34 -54
- package/dist/runtime/components/navigation-menu/NavigationMenuViewport.vue +26 -29
- package/dist/runtime/components/overlays/Toaster.vue +16 -19
- package/dist/runtime/components/overlays/toast/Toast.vue +38 -58
- package/dist/runtime/components/overlays/toast/ToastAction.vue +19 -42
- package/dist/runtime/components/overlays/toast/ToastClose.vue +20 -21
- package/dist/runtime/components/overlays/toast/ToastDescription.vue +16 -17
- package/dist/runtime/components/overlays/toast/ToastInfo.vue +9 -10
- package/dist/runtime/components/overlays/toast/ToastProvider.vue +7 -8
- package/dist/runtime/components/overlays/toast/ToastTitle.vue +16 -17
- package/dist/runtime/components/overlays/toast/ToastViewport.vue +16 -19
- package/dist/runtime/components/resizable/ResizableHandle.vue +36 -36
- package/dist/runtime/components/resizable/ResizablePanel.vue +17 -24
- package/dist/runtime/components/resizable/ResizablePanelGroup.vue +17 -22
- package/dist/runtime/components/scroll-area/ScrollArea.vue +23 -31
- package/dist/runtime/components/scroll-area/ScrollBar.vue +25 -29
- package/dist/runtime/components/sheet/Sheet.vue +29 -40
- package/dist/runtime/components/sheet/SheetClose.vue +12 -34
- package/dist/runtime/components/sheet/SheetContent.vue +29 -35
- package/dist/runtime/components/sheet/SheetDescription.vue +13 -13
- package/dist/runtime/components/sheet/SheetFooter.vue +11 -12
- package/dist/runtime/components/sheet/SheetHeader.vue +7 -8
- package/dist/runtime/components/sheet/SheetTitle.vue +12 -13
- package/dist/runtime/components/sheet/SheetTrigger.vue +7 -6
- package/dist/runtime/components/sidebar/Sidebar.vue +52 -48
- package/dist/runtime/components/sidebar/SidebarContent.vue +10 -11
- package/dist/runtime/components/sidebar/SidebarFooter.vue +9 -10
- package/dist/runtime/components/sidebar/SidebarGroup.vue +10 -12
- package/dist/runtime/components/sidebar/SidebarGroupAction.vue +13 -13
- package/dist/runtime/components/sidebar/SidebarGroupContent.vue +9 -10
- package/dist/runtime/components/sidebar/SidebarGroupLabel.vue +13 -13
- package/dist/runtime/components/sidebar/SidebarHeader.vue +9 -10
- package/dist/runtime/components/sidebar/SidebarInput.vue +10 -26
- package/dist/runtime/components/sidebar/SidebarInset.vue +9 -10
- package/dist/runtime/components/sidebar/SidebarMenu.vue +14 -16
- package/dist/runtime/components/sidebar/SidebarMenuAction.vue +13 -15
- package/dist/runtime/components/sidebar/SidebarMenuBadge.vue +9 -10
- package/dist/runtime/components/sidebar/SidebarMenuButton.vue +28 -27
- package/dist/runtime/components/sidebar/SidebarMenuButtonChild.vue +41 -29
- package/dist/runtime/components/sidebar/SidebarMenuItem.vue +9 -10
- package/dist/runtime/components/sidebar/SidebarMenuSkeleton.vue +14 -15
- package/dist/runtime/components/sidebar/SidebarMenuSub.vue +9 -10
- package/dist/runtime/components/sidebar/SidebarMenuSubButton.vue +17 -19
- package/dist/runtime/components/sidebar/SidebarMenuSubItem.vue +9 -10
- package/dist/runtime/components/sidebar/SidebarProvider.vue +55 -38
- package/dist/runtime/components/sidebar/SidebarRail.vue +12 -12
- package/dist/runtime/components/sidebar/SidebarSeparator.vue +10 -11
- package/dist/runtime/components/sidebar/SidebarTrigger.vue +18 -38
- package/dist/types.d.mts +5 -3
- package/dist/types.d.ts +7 -0
- package/dist/una.config.d.ts +8 -0
- package/dist/una.config.mjs +1 -1
- package/package.json +9 -9
- package/dist/runtime/components/alert-dialog/AlertDialog.vue.d.ts +0 -45
- package/dist/runtime/components/alert-dialog/AlertDialogAction.vue.d.ts +0 -16
- package/dist/runtime/components/alert-dialog/AlertDialogCancel.vue.d.ts +0 -16
- package/dist/runtime/components/alert-dialog/AlertDialogContent.vue.d.ts +0 -45
- package/dist/runtime/components/alert-dialog/AlertDialogDescription.vue.d.ts +0 -13
- package/dist/runtime/components/alert-dialog/AlertDialogFooter.vue.d.ts +0 -13
- package/dist/runtime/components/alert-dialog/AlertDialogHeader.vue.d.ts +0 -13
- package/dist/runtime/components/alert-dialog/AlertDialogOverlay.vue.d.ts +0 -13
- package/dist/runtime/components/alert-dialog/AlertDialogTitle.vue.d.ts +0 -13
- package/dist/runtime/components/alert-dialog/AlertDialogTrigger.vue.d.ts +0 -13
- package/dist/runtime/components/aspect-ratio/AspectRatio.vue.d.ts +0 -18
- package/dist/runtime/components/combobox/Combobox.vue.d.ts +0 -89
- package/dist/runtime/components/combobox/ComboboxAnchor.vue.d.ts +0 -13
- package/dist/runtime/components/combobox/ComboboxEmpty.vue.d.ts +0 -13
- package/dist/runtime/components/combobox/ComboboxGroup.vue.d.ts +0 -17
- package/dist/runtime/components/combobox/ComboboxInput.vue.d.ts +0 -16
- package/dist/runtime/components/combobox/ComboboxItem.vue.d.ts +0 -18
- package/dist/runtime/components/combobox/ComboboxItemIndicator.vue.d.ts +0 -15
- package/dist/runtime/components/combobox/ComboboxLabel.vue.d.ts +0 -13
- package/dist/runtime/components/combobox/ComboboxList.vue.d.ts +0 -43
- package/dist/runtime/components/combobox/ComboboxSeparator.vue.d.ts +0 -13
- package/dist/runtime/components/combobox/ComboboxTrigger.vue.d.ts +0 -17
- package/dist/runtime/components/combobox/ComboboxViewport.vue.d.ts +0 -13
- package/dist/runtime/components/data/table/Table.vue.d.ts +0 -184
- package/dist/runtime/components/data/table/TableBody.vue.d.ts +0 -15
- package/dist/runtime/components/data/table/TableCaption.vue.d.ts +0 -15
- package/dist/runtime/components/data/table/TableCell.vue.d.ts +0 -15
- package/dist/runtime/components/data/table/TableEmpty.vue.d.ts +0 -15
- package/dist/runtime/components/data/table/TableFooter.vue.d.ts +0 -15
- package/dist/runtime/components/data/table/TableHead.vue.d.ts +0 -15
- package/dist/runtime/components/data/table/TableHeader.vue.d.ts +0 -15
- package/dist/runtime/components/data/table/TableLoading.vue.d.ts +0 -15
- package/dist/runtime/components/data/table/TableRow.vue.d.ts +0 -15
- package/dist/runtime/components/elements/Accordion.vue.d.ts +0 -28
- package/dist/runtime/components/elements/Alert.vue.d.ts +0 -22
- package/dist/runtime/components/elements/AvatarGroup.vue.d.ts +0 -11
- package/dist/runtime/components/elements/Badge.vue.d.ts +0 -26
- package/dist/runtime/components/elements/Button.vue.d.ts +0 -34
- package/dist/runtime/components/elements/Icon.vue.d.ts +0 -3
- package/dist/runtime/components/elements/Indicator.vue.d.ts +0 -19
- package/dist/runtime/components/elements/Kbd.vue.d.ts +0 -13
- package/dist/runtime/components/elements/Label.vue.d.ts +0 -13
- package/dist/runtime/components/elements/Progress.vue.d.ts +0 -18
- package/dist/runtime/components/elements/Separator.vue.d.ts +0 -15
- package/dist/runtime/components/elements/Skeleton.vue.d.ts +0 -13
- package/dist/runtime/components/elements/Toggle.vue.d.ts +0 -22
- package/dist/runtime/components/elements/avatar/Avatar.vue.d.ts +0 -21
- package/dist/runtime/components/elements/avatar/AvatarFallback.vue.d.ts +0 -13
- package/dist/runtime/components/elements/avatar/AvatarImage.vue.d.ts +0 -3
- package/dist/runtime/components/elements/card/Card.vue.d.ts +0 -25
- package/dist/runtime/components/elements/card/CardContent.vue.d.ts +0 -13
- package/dist/runtime/components/elements/card/CardDescription.vue.d.ts +0 -13
- package/dist/runtime/components/elements/card/CardFooter.vue.d.ts +0 -13
- package/dist/runtime/components/elements/card/CardHeader.vue.d.ts +0 -13
- package/dist/runtime/components/elements/card/CardTitle.vue.d.ts +0 -13
- package/dist/runtime/components/elements/collapsible/Collapsible.vue.d.ts +0 -25
- package/dist/runtime/components/elements/collapsible/CollapsibleContent.vue.d.ts +0 -13
- package/dist/runtime/components/elements/collapsible/CollapsibleTrigger.vue.d.ts +0 -13
- package/dist/runtime/components/elements/dialog/Dialog.vue.d.ts +0 -34
- package/dist/runtime/components/elements/dialog/DialogClose.vue.d.ts +0 -18
- package/dist/runtime/components/elements/dialog/DialogContent.vue.d.ts +0 -46
- package/dist/runtime/components/elements/dialog/DialogDescription.vue.d.ts +0 -13
- package/dist/runtime/components/elements/dialog/DialogFooter.vue.d.ts +0 -13
- package/dist/runtime/components/elements/dialog/DialogHeader.vue.d.ts +0 -13
- package/dist/runtime/components/elements/dialog/DialogOverlay.vue.d.ts +0 -13
- package/dist/runtime/components/elements/dialog/DialogScrollContent.vue.d.ts +0 -46
- package/dist/runtime/components/elements/dialog/DialogTitle.vue.d.ts +0 -13
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenu.vue.d.ts +0 -61
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuContent.vue.d.ts +0 -43
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuGroup.vue.d.ts +0 -13
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuItem.vue.d.ts +0 -14
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuLabel.vue.d.ts +0 -13
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuRoot.vue.d.ts +0 -17
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSeparator.vue.d.ts +0 -3
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuShortcut.vue.d.ts +0 -13
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSub.vue.d.ts +0 -17
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSubContent.vue.d.ts +0 -45
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +0 -16
- package/dist/runtime/components/elements/dropdown-menu/DropdownMenuTrigger.vue.d.ts +0 -13
- package/dist/runtime/components/elements/pagination/Pagination.vue.d.ts +0 -41
- package/dist/runtime/components/elements/pagination/PaginationEllipsis.vue.d.ts +0 -15
- package/dist/runtime/components/elements/pagination/PaginationFirst.vue.d.ts +0 -18
- package/dist/runtime/components/elements/pagination/PaginationLast.vue.d.ts +0 -18
- package/dist/runtime/components/elements/pagination/PaginationListItem.vue.d.ts +0 -17
- package/dist/runtime/components/elements/pagination/PaginationNext.vue.d.ts +0 -18
- package/dist/runtime/components/elements/pagination/PaginationPrev.vue.d.ts +0 -18
- package/dist/runtime/components/elements/popover/Popover.vue.d.ts +0 -21
- package/dist/runtime/components/elements/popover/PopoverContent.vue.d.ts +0 -46
- package/dist/runtime/components/elements/tabs/Tabs.vue.d.ts +0 -28
- package/dist/runtime/components/elements/tabs/TabsContent.vue.d.ts +0 -13
- package/dist/runtime/components/elements/tabs/TabsList.vue.d.ts +0 -13
- package/dist/runtime/components/elements/tabs/TabsRoot.vue.d.ts +0 -17
- package/dist/runtime/components/elements/tabs/TabsTrigger.vue.d.ts +0 -13
- package/dist/runtime/components/elements/tooltip/Tooltip.vue.d.ts +0 -19
- package/dist/runtime/components/elements/tooltip/TooltipContent.vue.d.ts +0 -22
- package/dist/runtime/components/elements/tooltip/TooltipProvider.vue.d.ts +0 -15
- package/dist/runtime/components/elements/tooltip/TooltipRoot.vue.d.ts +0 -17
- package/dist/runtime/components/elements/tooltip/TooltipTrigger.vue.d.ts +0 -13
- package/dist/runtime/components/forms/Checkbox.vue.d.ts +0 -21
- package/dist/runtime/components/forms/FormGroup.vue.d.ts +0 -27
- package/dist/runtime/components/forms/Input.vue.d.ts +0 -31
- package/dist/runtime/components/forms/Slider.vue.d.ts +0 -25
- package/dist/runtime/components/forms/Switch.vue.d.ts +0 -27
- package/dist/runtime/components/forms/form/FormControl.vue.d.ts +0 -12
- package/dist/runtime/components/forms/form/FormDescription.vue.d.ts +0 -13
- package/dist/runtime/components/forms/form/FormField.vue.d.ts +0 -25
- package/dist/runtime/components/forms/form/FormItem.vue.d.ts +0 -13
- package/dist/runtime/components/forms/form/FormLabel.vue.d.ts +0 -13
- package/dist/runtime/components/forms/form/FormMessage.vue.d.ts +0 -3
- package/dist/runtime/components/forms/radio-group/RadioGroup.vue.d.ts +0 -29
- package/dist/runtime/components/forms/radio-group/RadioGroupItem.vue.d.ts +0 -22
- package/dist/runtime/components/forms/select/Select.vue.d.ts +0 -72
- package/dist/runtime/components/forms/select/SelectContent.vue.d.ts +0 -27
- package/dist/runtime/components/forms/select/SelectGroup.vue.d.ts +0 -13
- package/dist/runtime/components/forms/select/SelectItem.vue.d.ts +0 -17
- package/dist/runtime/components/forms/select/SelectItemIndicator.vue.d.ts +0 -15
- package/dist/runtime/components/forms/select/SelectItemText.vue.d.ts +0 -13
- package/dist/runtime/components/forms/select/SelectLabel.vue.d.ts +0 -13
- package/dist/runtime/components/forms/select/SelectScrollDownButton.vue.d.ts +0 -13
- package/dist/runtime/components/forms/select/SelectScrollUpButton.vue.d.ts +0 -13
- package/dist/runtime/components/forms/select/SelectSeparator.vue.d.ts +0 -3
- package/dist/runtime/components/forms/select/SelectTrigger.vue.d.ts +0 -15
- package/dist/runtime/components/forms/select/SelectValue.vue.d.ts +0 -13
- package/dist/runtime/components/misc/ThemeSwitcher.vue.d.ts +0 -16
- package/dist/runtime/components/navigation/breadcrumb/Breadcrumb.vue.d.ts +0 -45
- package/dist/runtime/components/navigation/breadcrumb/BreadcrumbEllipsis.vue.d.ts +0 -16
- package/dist/runtime/components/navigation/breadcrumb/BreadcrumbItem.vue.d.ts +0 -13
- package/dist/runtime/components/navigation/breadcrumb/BreadcrumbLink.vue.d.ts +0 -18
- package/dist/runtime/components/navigation/breadcrumb/BreadcrumbList.vue.d.ts +0 -13
- package/dist/runtime/components/navigation/breadcrumb/BreadcrumbPage.vue.d.ts +0 -16
- package/dist/runtime/components/navigation/breadcrumb/BreadcrumbRoot.vue.d.ts +0 -13
- package/dist/runtime/components/navigation/breadcrumb/BreadcrumbSeparator.vue.d.ts +0 -16
- package/dist/runtime/components/navigation-menu/NavigationMenu.vue.d.ts +0 -46
- package/dist/runtime/components/navigation-menu/NavigationMenuContent.vue.d.ts +0 -39
- package/dist/runtime/components/navigation-menu/NavigationMenuContentItem.vue.d.ts +0 -21
- package/dist/runtime/components/navigation-menu/NavigationMenuIndicator.vue.d.ts +0 -13
- package/dist/runtime/components/navigation-menu/NavigationMenuItem.vue.d.ts +0 -13
- package/dist/runtime/components/navigation-menu/NavigationMenuLink.vue.d.ts +0 -27
- package/dist/runtime/components/navigation-menu/NavigationMenuList.vue.d.ts +0 -13
- package/dist/runtime/components/navigation-menu/NavigationMenuTrigger.vue.d.ts +0 -18
- package/dist/runtime/components/navigation-menu/NavigationMenuViewport.vue.d.ts +0 -3
- package/dist/runtime/components/overlays/Toaster.vue.d.ts +0 -13
- package/dist/runtime/components/overlays/toast/Toast.vue.d.ts +0 -112
- package/dist/runtime/components/overlays/toast/ToastAction.vue.d.ts +0 -16
- package/dist/runtime/components/overlays/toast/ToastClose.vue.d.ts +0 -3
- package/dist/runtime/components/overlays/toast/ToastDescription.vue.d.ts +0 -13
- package/dist/runtime/components/overlays/toast/ToastInfo.vue.d.ts +0 -13
- package/dist/runtime/components/overlays/toast/ToastProvider.vue.d.ts +0 -15
- package/dist/runtime/components/overlays/toast/ToastTitle.vue.d.ts +0 -13
- package/dist/runtime/components/overlays/toast/ToastViewport.vue.d.ts +0 -3
- package/dist/runtime/components/resizable/ResizableHandle.vue.d.ts +0 -21
- package/dist/runtime/components/resizable/ResizablePanel.vue.d.ts +0 -24
- package/dist/runtime/components/resizable/ResizablePanelGroup.vue.d.ts +0 -19
- package/dist/runtime/components/scroll-area/ScrollArea.vue.d.ts +0 -17
- package/dist/runtime/components/scroll-area/ScrollBar.vue.d.ts +0 -6
- package/dist/runtime/components/sheet/Sheet.vue.d.ts +0 -36
- package/dist/runtime/components/sheet/SheetClose.vue.d.ts +0 -42
- package/dist/runtime/components/sheet/SheetContent.vue.d.ts +0 -68
- package/dist/runtime/components/sheet/SheetDescription.vue.d.ts +0 -12
- package/dist/runtime/components/sheet/SheetFooter.vue.d.ts +0 -12
- package/dist/runtime/components/sheet/SheetHeader.vue.d.ts +0 -12
- package/dist/runtime/components/sheet/SheetTitle.vue.d.ts +0 -12
- package/dist/runtime/components/sheet/SheetTrigger.vue.d.ts +0 -15
- package/dist/runtime/components/sidebar/Sidebar.vue.d.ts +0 -24
- package/dist/runtime/components/sidebar/SidebarContent.vue.d.ts +0 -12
- package/dist/runtime/components/sidebar/SidebarFooter.vue.d.ts +0 -12
- package/dist/runtime/components/sidebar/SidebarGroup.vue.d.ts +0 -16
- package/dist/runtime/components/sidebar/SidebarGroupAction.vue.d.ts +0 -36
- package/dist/runtime/components/sidebar/SidebarGroupContent.vue.d.ts +0 -12
- package/dist/runtime/components/sidebar/SidebarGroupLabel.vue.d.ts +0 -36
- package/dist/runtime/components/sidebar/SidebarHeader.vue.d.ts +0 -12
- package/dist/runtime/components/sidebar/SidebarInput.vue.d.ts +0 -12
- package/dist/runtime/components/sidebar/SidebarInset.vue.d.ts +0 -12
- package/dist/runtime/components/sidebar/SidebarMenu.vue.d.ts +0 -22
- package/dist/runtime/components/sidebar/SidebarMenuAction.vue.d.ts +0 -34
- package/dist/runtime/components/sidebar/SidebarMenuBadge.vue.d.ts +0 -12
- package/dist/runtime/components/sidebar/SidebarMenuButton.vue.d.ts +0 -19
- package/dist/runtime/components/sidebar/SidebarMenuButtonChild.vue.d.ts +0 -31
- package/dist/runtime/components/sidebar/SidebarMenuItem.vue.d.ts +0 -12
- package/dist/runtime/components/sidebar/SidebarMenuSkeleton.vue.d.ts +0 -12
- package/dist/runtime/components/sidebar/SidebarMenuSub.vue.d.ts +0 -12
- package/dist/runtime/components/sidebar/SidebarMenuSubButton.vue.d.ts +0 -16
- package/dist/runtime/components/sidebar/SidebarMenuSubItem.vue.d.ts +0 -12
- package/dist/runtime/components/sidebar/SidebarProvider.vue.d.ts +0 -20
- package/dist/runtime/components/sidebar/SidebarRail.vue.d.ts +0 -12
- package/dist/runtime/components/sidebar/SidebarSeparator.vue.d.ts +0 -12
- package/dist/runtime/components/sidebar/SidebarTrigger.vue.d.ts +0 -30
|
@@ -1,27 +1,25 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
class: { type: null, required: false },
|
|
10
|
-
size: { type: null, required: false }
|
|
11
|
-
});
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { NSelectSeparator } from '../../../types'
|
|
3
|
+
import { SelectSeparator } from 'reka-ui'
|
|
4
|
+
import { computed } from 'vue'
|
|
5
|
+
import { cn } from '../../../utils'
|
|
6
|
+
|
|
7
|
+
const props = defineProps<NSelectSeparator>()
|
|
8
|
+
|
|
12
9
|
const delegatedProps = computed(() => {
|
|
13
|
-
const { class: _, ...delegated } = props
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
const { class: _, ...delegated } = props
|
|
11
|
+
|
|
12
|
+
return delegated
|
|
13
|
+
})
|
|
16
14
|
</script>
|
|
17
15
|
|
|
18
16
|
<template>
|
|
19
17
|
<SelectSeparator
|
|
20
18
|
v-bind="delegatedProps"
|
|
21
19
|
:class="cn(
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
)"
|
|
20
|
+
'select-separator',
|
|
21
|
+
props.una?.selectSeparator,
|
|
22
|
+
props.class,
|
|
23
|
+
)"
|
|
26
24
|
/>
|
|
27
25
|
</template>
|
|
@@ -1,68 +1,43 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
as: { type: null, required: false },
|
|
17
|
-
type: { type: String, required: false },
|
|
18
|
-
loadingPlacement: { type: String, required: false },
|
|
19
|
-
icon: { type: Boolean, required: false },
|
|
20
|
-
reverse: { type: Boolean, required: false },
|
|
21
|
-
loading: { type: Boolean, required: false },
|
|
22
|
-
block: { type: Boolean, required: false },
|
|
23
|
-
to: { type: null, required: false },
|
|
24
|
-
label: { type: String, required: false },
|
|
25
|
-
btn: { type: String, required: false },
|
|
26
|
-
leading: { type: String, required: false },
|
|
27
|
-
trailing: { type: String, required: false },
|
|
28
|
-
size: { type: String, required: false },
|
|
29
|
-
square: { type: null, required: false },
|
|
30
|
-
rounded: { type: null, required: false },
|
|
31
|
-
class: { type: void 0, required: false },
|
|
32
|
-
breadcrumbActive: { type: String, required: false },
|
|
33
|
-
breadcrumbInactive: { type: String, required: false },
|
|
34
|
-
paginationSelected: { type: String, required: false },
|
|
35
|
-
paginationUnselected: { type: String, required: false },
|
|
36
|
-
dropdownMenu: { type: String, required: false },
|
|
37
|
-
toggleOn: { type: String, required: false },
|
|
38
|
-
toggleOff: { type: String, required: false },
|
|
39
|
-
navigationMenu: { type: String, required: false },
|
|
40
|
-
navigationMenuLink: { type: String, required: false },
|
|
41
|
-
ariaLabel: { type: String, required: false }
|
|
42
|
-
});
|
|
43
|
-
const forwardedProps = useForwardProps(reactiveOmit(props, "class", "status", "una", "select"));
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { NSelectTriggerProps } from '../../../types'
|
|
3
|
+
import { reactiveOmit } from '@vueuse/core'
|
|
4
|
+
import { SelectIcon, SelectTrigger, useForwardProps } from 'reka-ui'
|
|
5
|
+
import { computed } from 'vue'
|
|
6
|
+
import { cn, randomId } from '../../../utils'
|
|
7
|
+
import Button from '../../elements/Button.vue'
|
|
8
|
+
import Icon from '../../elements/Icon.vue'
|
|
9
|
+
|
|
10
|
+
const props = withDefaults(defineProps<NSelectTriggerProps>(), {
|
|
11
|
+
select: 'solid-white',
|
|
12
|
+
})
|
|
13
|
+
|
|
14
|
+
const forwardedProps = useForwardProps(reactiveOmit(props, 'class', 'status', 'una', 'select'))
|
|
15
|
+
|
|
44
16
|
const statusClassVariants = computed(() => {
|
|
45
17
|
const btn = {
|
|
46
|
-
info:
|
|
47
|
-
success:
|
|
48
|
-
warning:
|
|
49
|
-
error:
|
|
50
|
-
default:
|
|
51
|
-
}
|
|
18
|
+
info: 'btn-outline-info',
|
|
19
|
+
success: 'btn-outline-success',
|
|
20
|
+
warning: 'btn-outline-warning',
|
|
21
|
+
error: 'btn-outline-error',
|
|
22
|
+
default: '',
|
|
23
|
+
}
|
|
24
|
+
|
|
52
25
|
const icon = {
|
|
53
|
-
info: props.una?.selectTriggerInfoIcon ??
|
|
54
|
-
success: props.una?.selectTriggerSuccessIcon ??
|
|
55
|
-
warning: props.una?.selectTriggerWarningIcon ??
|
|
56
|
-
error: props.una?.selectTriggerErrorIcon ??
|
|
57
|
-
default: props?.trailing ?? props.una?.selectTriggerTrailingIcon ??
|
|
58
|
-
}
|
|
26
|
+
info: props.una?.selectTriggerInfoIcon ?? 'select-trigger-info-icon',
|
|
27
|
+
success: props.una?.selectTriggerSuccessIcon ?? 'select-trigger-success-icon',
|
|
28
|
+
warning: props.una?.selectTriggerWarningIcon ?? 'select-trigger-warning-icon',
|
|
29
|
+
error: props.una?.selectTriggerErrorIcon ?? 'select-trigger-error-icon',
|
|
30
|
+
default: props?.trailing ?? props.una?.selectTriggerTrailingIcon ?? 'select-trigger-trailing-icon',
|
|
31
|
+
}
|
|
32
|
+
|
|
59
33
|
return {
|
|
60
|
-
btn: btn[props.status ??
|
|
61
|
-
icon: icon[props.status ??
|
|
62
|
-
}
|
|
63
|
-
})
|
|
64
|
-
|
|
65
|
-
const
|
|
34
|
+
btn: btn[props.status ?? 'default'],
|
|
35
|
+
icon: icon[props.status ?? 'default'],
|
|
36
|
+
}
|
|
37
|
+
})
|
|
38
|
+
|
|
39
|
+
const id = computed(() => props.id ?? randomId('select-trigger'))
|
|
40
|
+
const status = computed(() => props.status ?? 'default')
|
|
66
41
|
</script>
|
|
67
42
|
|
|
68
43
|
<template>
|
|
@@ -72,22 +47,23 @@ const status = computed(() => props.status ?? "default");
|
|
|
72
47
|
<Button
|
|
73
48
|
v-bind="forwardedProps"
|
|
74
49
|
:id
|
|
75
|
-
:select="statusClassVariants.btn ?
|
|
50
|
+
:select="statusClassVariants.btn ? undefined : props.select"
|
|
76
51
|
:data-status="status"
|
|
77
52
|
:class="cn(
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
53
|
+
'select-trigger justify-between font-normal',
|
|
54
|
+
props.una?.selectTrigger,
|
|
55
|
+
props.class,
|
|
56
|
+
)"
|
|
81
57
|
:una="{
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
}"
|
|
58
|
+
...props.una,
|
|
59
|
+
btn: props.una?.selectTrigger,
|
|
60
|
+
btnLeading: cn(
|
|
61
|
+
'select-trigger-leading',
|
|
62
|
+
props.una?.btnLeading,
|
|
63
|
+
props.una?.selectTriggerLeading,
|
|
64
|
+
),
|
|
65
|
+
btnDefaultVariant: statusClassVariants.btn,
|
|
66
|
+
}"
|
|
91
67
|
>
|
|
92
68
|
<slot />
|
|
93
69
|
|
|
@@ -99,10 +75,10 @@ const status = computed(() => props.status ?? "default");
|
|
|
99
75
|
:data-status="status"
|
|
100
76
|
:name="statusClassVariants.icon"
|
|
101
77
|
:class="cn(
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
)"
|
|
78
|
+
'select-trigger-trailing rtl:mr-auto ltr:ml-auto',
|
|
79
|
+
props.una?.btnTrailing,
|
|
80
|
+
props.una?.selectTriggerTrailing,
|
|
81
|
+
)"
|
|
106
82
|
/>
|
|
107
83
|
</SelectIcon>
|
|
108
84
|
</template>
|
|
@@ -1,23 +1,18 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
asChild: { type: Boolean, required: false },
|
|
8
|
-
as: { type: null, required: false },
|
|
9
|
-
class: { type: null, required: false },
|
|
10
|
-
size: { type: null, required: false }
|
|
11
|
-
});
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { NSelectValueProps } from '../../../types'
|
|
3
|
+
import { SelectValue } from 'reka-ui'
|
|
4
|
+
import { cn } from '../../../utils'
|
|
5
|
+
|
|
6
|
+
const props = defineProps<NSelectValueProps>()
|
|
12
7
|
</script>
|
|
13
8
|
|
|
14
9
|
<template>
|
|
15
10
|
<SelectValue
|
|
16
11
|
:class="cn(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
)"
|
|
12
|
+
'select-value',
|
|
13
|
+
props.una?.selectValue,
|
|
14
|
+
props.class,
|
|
15
|
+
)"
|
|
21
16
|
v-bind="props"
|
|
22
17
|
>
|
|
23
18
|
<slot />
|
|
@@ -1,55 +1,71 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { useColorMode } from
|
|
3
|
-
import { useToggle } from
|
|
4
|
-
import { capitalize, computed } from
|
|
5
|
-
import { useUnaSettings } from
|
|
6
|
-
import { useUnaThemes } from
|
|
7
|
-
import { RADIUS } from
|
|
8
|
-
import Button from
|
|
9
|
-
import Label from
|
|
10
|
-
import Popover from
|
|
11
|
-
import Separator from
|
|
12
|
-
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
const
|
|
16
|
-
const
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { useColorMode } from '#imports'
|
|
3
|
+
import { useToggle } from '@vueuse/core'
|
|
4
|
+
import { capitalize, computed } from 'vue'
|
|
5
|
+
import { useUnaSettings } from '../../composables/useUnaSettings'
|
|
6
|
+
import { useUnaThemes } from '../../composables/useUnaThemes'
|
|
7
|
+
import { RADIUS } from '../../constants'
|
|
8
|
+
import Button from '../elements/Button.vue'
|
|
9
|
+
import Label from '../elements/Label.vue'
|
|
10
|
+
import Popover from '../elements/popover/Popover.vue'
|
|
11
|
+
import Separator from '../elements/Separator.vue'
|
|
12
|
+
|
|
13
|
+
const colorMode = useColorMode()
|
|
14
|
+
|
|
15
|
+
const [value, toggle] = useToggle()
|
|
16
|
+
const { primaryThemes, grayThemes } = useUnaThemes()
|
|
17
|
+
const { settings, reset } = useUnaSettings()
|
|
18
|
+
|
|
19
|
+
const currentPrimaryThemeHex = computed(() => settings.value.primaryColors?.['--una-primary-hex'])
|
|
17
20
|
const currentPrimaryThemeName = computed(() => {
|
|
18
|
-
const theme = primaryThemes.find(([,
|
|
19
|
-
return theme ? theme[0] :
|
|
20
|
-
})
|
|
21
|
-
const currentGrayThemeHex = computed(() => settings.value.grayColors?.[
|
|
21
|
+
const theme = primaryThemes.find(([, theme]) => theme['--una-primary-hex'] === currentPrimaryThemeHex.value)
|
|
22
|
+
return theme ? theme[0] : ''
|
|
23
|
+
})
|
|
24
|
+
const currentGrayThemeHex = computed(() => settings.value.grayColors?.['--una-gray-hex'])
|
|
22
25
|
const currentGrayThemeName = computed(() => {
|
|
23
|
-
const theme = grayThemes.find(([,
|
|
24
|
-
return theme ? theme[0] :
|
|
25
|
-
})
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
const theme = grayThemes.find(([, theme]) => theme['--una-gray-hex'] === currentGrayThemeHex.value)
|
|
27
|
+
return theme ? theme[0] : ''
|
|
28
|
+
})
|
|
29
|
+
|
|
30
|
+
// update theme in storage
|
|
31
|
+
function updatePrimaryTheme(theme: string): void {
|
|
32
|
+
settings.value.primary = theme
|
|
28
33
|
}
|
|
29
|
-
|
|
30
|
-
|
|
34
|
+
|
|
35
|
+
function updateGrayTheme(theme: string): void {
|
|
36
|
+
settings.value.gray = theme
|
|
31
37
|
}
|
|
32
|
-
|
|
38
|
+
|
|
39
|
+
function shuffleTheme(): void {
|
|
33
40
|
if (primaryThemes.length > 0 && grayThemes.length > 0 && RADIUS.length > 0) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
return
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
41
|
+
// Safe way to access random elements with proper typing
|
|
42
|
+
const safeGetPrimaryTheme = (): string => {
|
|
43
|
+
const index = Math.floor(Math.random() * primaryThemes.length)
|
|
44
|
+
// Force type assertion for TypeScript
|
|
45
|
+
return primaryThemes[index]?.[0] as string
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const safeGetGrayTheme = (): string => {
|
|
49
|
+
const index = Math.floor(Math.random() * grayThemes.length)
|
|
50
|
+
// Force type assertion for TypeScript
|
|
51
|
+
return grayThemes[index]?.[0] as string
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const safeGetRadius = (): number => {
|
|
55
|
+
const index = Math.floor(Math.random() * RADIUS.length)
|
|
56
|
+
// Force type assertion for TypeScript
|
|
57
|
+
return RADIUS[index] as number
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// Get random values with correct typing
|
|
61
|
+
const randomPrimaryTheme = safeGetPrimaryTheme()
|
|
62
|
+
const randomGrayTheme = safeGetGrayTheme()
|
|
63
|
+
const randomRadius = safeGetRadius()
|
|
64
|
+
|
|
65
|
+
updatePrimaryTheme(randomPrimaryTheme)
|
|
66
|
+
updateGrayTheme(randomGrayTheme)
|
|
67
|
+
settings.value.radius = randomRadius
|
|
68
|
+
toggle()
|
|
53
69
|
}
|
|
54
70
|
}
|
|
55
71
|
</script>
|
|
@@ -133,8 +149,10 @@ function shuffleTheme() {
|
|
|
133
149
|
btn="solid-gray"
|
|
134
150
|
size="xs"
|
|
135
151
|
:class="
|
|
136
|
-
|
|
137
|
-
|
|
152
|
+
r === settings.radius
|
|
153
|
+
? 'ring-2 ring-primary'
|
|
154
|
+
: ''
|
|
155
|
+
"
|
|
138
156
|
@click="settings.radius = r"
|
|
139
157
|
>
|
|
140
158
|
{{ r }}
|
|
@@ -197,8 +215,8 @@ function shuffleTheme() {
|
|
|
197
215
|
label="Shuffle"
|
|
198
216
|
leading="i-lucide-paintbrush"
|
|
199
217
|
:una="{
|
|
200
|
-
|
|
201
|
-
}"
|
|
218
|
+
btnLeading: value ? 'rotate-6 transform' : '-rotate-6',
|
|
219
|
+
}"
|
|
202
220
|
@click="shuffleTheme"
|
|
203
221
|
/>
|
|
204
222
|
</div>
|
|
@@ -1,37 +1,24 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
ellipsis: { type: String, required: false },
|
|
14
|
-
size: { type: String, required: false },
|
|
15
|
-
_breadcrumbSeparator: { type: Object, required: false },
|
|
16
|
-
_breadcrumbItem: { type: Object, required: false },
|
|
17
|
-
_breadcrumbRoot: { type: Object, required: false },
|
|
18
|
-
_breadcrumbList: { type: Object, required: false },
|
|
19
|
-
_breadcrumbLink: { type: Object, required: false },
|
|
20
|
-
_breadcrumbEllipsis: { type: Object, required: false },
|
|
21
|
-
una: { type: Object, required: false },
|
|
22
|
-
class: { type: null, required: false },
|
|
23
|
-
breadcrumbActive: { type: String, required: false },
|
|
24
|
-
breadcrumbInactive: { type: String, required: false }
|
|
25
|
-
});
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import type { NBreadcrumbProps } from '../../../types'
|
|
3
|
+
import { cn } from '../../../utils'
|
|
4
|
+
import DropdownMenu from '../../elements/dropdown-menu/DropdownMenu.vue'
|
|
5
|
+
import BreadcrumbEllipsis from './BreadcrumbEllipsis.vue'
|
|
6
|
+
import BreadcrumbItem from './BreadcrumbItem.vue'
|
|
7
|
+
import BreadcrumbLink from './BreadcrumbLink.vue'
|
|
8
|
+
import BreadcrumbList from './BreadcrumbList.vue'
|
|
9
|
+
import BreadcrumbRoot from './BreadcrumbRoot.vue'
|
|
10
|
+
import BreadcrumbSeparator from './BreadcrumbSeparator.vue'
|
|
11
|
+
|
|
12
|
+
const props = defineProps<NBreadcrumbProps>()
|
|
26
13
|
</script>
|
|
27
14
|
|
|
28
15
|
<template>
|
|
29
16
|
<BreadcrumbRoot
|
|
30
17
|
:class="cn(
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
)"
|
|
18
|
+
'breadcrumb',
|
|
19
|
+
props.class,
|
|
20
|
+
props.una?.breadcrumb,
|
|
21
|
+
)"
|
|
35
22
|
:una
|
|
36
23
|
:size
|
|
37
24
|
v-bind="_breadcrumbRoot"
|
|
@@ -60,9 +47,9 @@ const props = defineProps({
|
|
|
60
47
|
:breadcrumb-inactive="props.breadcrumbInactive"
|
|
61
48
|
:size
|
|
62
49
|
v-bind="{
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}"
|
|
50
|
+
...item,
|
|
51
|
+
..._breadcrumbLink,
|
|
52
|
+
}"
|
|
66
53
|
>
|
|
67
54
|
<slot :item="item" :index="i" :is-active="i === items.length - 1" />
|
|
68
55
|
</BreadcrumbLink>
|
|
@@ -73,8 +60,8 @@ const props = defineProps({
|
|
|
73
60
|
:modal="false"
|
|
74
61
|
:items="item.children"
|
|
75
62
|
:_dropdown-menu-item="{
|
|
76
|
-
|
|
77
|
-
}"
|
|
63
|
+
..._breadcrumbLink,
|
|
64
|
+
}"
|
|
78
65
|
>
|
|
79
66
|
<BreadcrumbEllipsis
|
|
80
67
|
:size
|
|
@@ -87,7 +74,7 @@ const props = defineProps({
|
|
|
87
74
|
</slot>
|
|
88
75
|
</BreadcrumbItem>
|
|
89
76
|
<BreadcrumbSeparator
|
|
90
|
-
v-if="i < props.items
|
|
77
|
+
v-if="i < props.items!.length - 1"
|
|
91
78
|
:icon="props.separator"
|
|
92
79
|
:size
|
|
93
80
|
:una
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import type { NBreadcrumbEllipsisProps } from '../../../types'
|
|
3
|
+
import { cn } from '../../../utils'
|
|
4
|
+
import Icon from '../../elements/Icon.vue'
|
|
5
|
+
|
|
6
|
+
const props = withDefaults(defineProps<NBreadcrumbEllipsisProps>(), {
|
|
7
|
+
icon: 'breadcrumb-ellipsis-icon',
|
|
8
|
+
size: 'sm',
|
|
9
|
+
square: 9,
|
|
10
|
+
})
|
|
10
11
|
</script>
|
|
11
12
|
|
|
12
13
|
<template>
|
|
@@ -14,10 +15,10 @@ const props = defineProps({
|
|
|
14
15
|
role="presentation"
|
|
15
16
|
aria-hidden="true"
|
|
16
17
|
:class="cn(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
)"
|
|
18
|
+
'breadcrumb-ellipsis',
|
|
19
|
+
props.class,
|
|
20
|
+
props.una?.breadcrumbEllipsis,
|
|
21
|
+
)"
|
|
21
22
|
:size
|
|
22
23
|
>
|
|
23
24
|
<slot>
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
});
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import type { NBreadcrumbItemProps } from '../../../types'
|
|
3
|
+
import { cn } from '../../../utils'
|
|
4
|
+
|
|
5
|
+
const props = defineProps<NBreadcrumbItemProps>()
|
|
7
6
|
</script>
|
|
8
7
|
|
|
9
8
|
<template>
|
|
10
9
|
<li
|
|
11
10
|
:class="cn(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
)"
|
|
11
|
+
'breadcrumb-item',
|
|
12
|
+
props.class,
|
|
13
|
+
props.una?.breadcrumbItem,
|
|
14
|
+
)"
|
|
16
15
|
>
|
|
17
16
|
<slot />
|
|
18
17
|
</li>
|
|
@@ -1,60 +1,40 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
reverse: { type: Boolean, required: false },
|
|
15
|
-
loading: { type: Boolean, required: false },
|
|
16
|
-
block: { type: Boolean, required: false },
|
|
17
|
-
to: { type: null, required: false },
|
|
18
|
-
label: { type: String, required: false },
|
|
19
|
-
btn: { type: String, required: false },
|
|
20
|
-
leading: { type: String, required: false },
|
|
21
|
-
trailing: { type: String, required: false },
|
|
22
|
-
size: { type: String, required: false, default: "sm" },
|
|
23
|
-
una: { type: Object, required: false },
|
|
24
|
-
square: { type: null, required: false },
|
|
25
|
-
rounded: { type: null, required: false },
|
|
26
|
-
paginationSelected: { type: String, required: false },
|
|
27
|
-
paginationUnselected: { type: String, required: false },
|
|
28
|
-
dropdownMenu: { type: String, required: false },
|
|
29
|
-
toggleOn: { type: String, required: false },
|
|
30
|
-
toggleOff: { type: String, required: false },
|
|
31
|
-
navigationMenu: { type: String, required: false },
|
|
32
|
-
navigationMenuLink: { type: String, required: false },
|
|
33
|
-
ariaLabel: { type: String, required: false }
|
|
34
|
-
});
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import type { NBreadcrumbLinkProps } from '../../../types'
|
|
3
|
+
import { computed } from 'vue'
|
|
4
|
+
import { cn } from '../../../utils'
|
|
5
|
+
import Button from '../../elements/Button.vue'
|
|
6
|
+
|
|
7
|
+
const props = withDefaults(defineProps<NBreadcrumbLinkProps>(), {
|
|
8
|
+
active: false,
|
|
9
|
+
breadcrumbActive: '~',
|
|
10
|
+
breadcrumbInactive: '~',
|
|
11
|
+
size: 'sm',
|
|
12
|
+
})
|
|
13
|
+
|
|
35
14
|
const activeAttrs = computed(() => {
|
|
36
15
|
if (!props.active) {
|
|
37
16
|
return {
|
|
38
|
-
|
|
39
|
-
}
|
|
17
|
+
'data-state': 'inactive',
|
|
18
|
+
}
|
|
40
19
|
}
|
|
20
|
+
|
|
41
21
|
return {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
})
|
|
22
|
+
'aria-disabled': true,
|
|
23
|
+
'tabindex': -1,
|
|
24
|
+
'data-state': 'active',
|
|
25
|
+
'aria-current': 'page',
|
|
26
|
+
}
|
|
27
|
+
})
|
|
48
28
|
</script>
|
|
49
29
|
|
|
50
30
|
<template>
|
|
51
31
|
<Button
|
|
52
32
|
v-bind="{ ...props, ...activeAttrs }"
|
|
53
33
|
:class="cn(
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
)"
|
|
57
|
-
:to="disabled ?
|
|
34
|
+
'breadcrumb-link',
|
|
35
|
+
{ 'cursor-text': active },
|
|
36
|
+
)"
|
|
37
|
+
:to="disabled ? undefined : props.to"
|
|
58
38
|
>
|
|
59
39
|
<slot />
|
|
60
40
|
</Button>
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
});
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import type { NBreadcrumbListProps } from '../../../types'
|
|
3
|
+
import { cn } from '../../../utils'
|
|
4
|
+
|
|
5
|
+
const props = defineProps<NBreadcrumbListProps>()
|
|
7
6
|
</script>
|
|
8
7
|
|
|
9
8
|
<template>
|
|
10
9
|
<ol
|
|
11
10
|
:class="cn(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
)"
|
|
11
|
+
'breadcrumb-list',
|
|
12
|
+
props.class,
|
|
13
|
+
props.una?.breadcrumbList,
|
|
14
|
+
)"
|
|
16
15
|
>
|
|
17
16
|
<slot />
|
|
18
17
|
</ol>
|