@geniusdynamics/ns8-ui-lib 1.0.3 → 1.0.5
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/README.md +8 -18
- package/dist/ns8-ui-lib.css +3 -1
- package/dist/ns8-ui-lib.es.js +36817 -19726
- package/dist/ns8-ui-lib.es.js.map +1 -1
- package/dist/ns8-ui-lib.umd.js +24 -11
- package/dist/ns8-ui-lib.umd.js.map +1 -1
- package/dist/src/components/NS/wizard/NSWizard.vue.d.ts +2 -2
- package/dist/src/components/ui/accordion/Accordion.vue.d.ts +25 -0
- package/dist/src/components/ui/accordion/AccordionContent.vue.d.ts +22 -0
- package/dist/src/components/ui/accordion/AccordionItem.vue.d.ts +22 -0
- package/dist/src/components/ui/accordion/AccordionTrigger.vue.d.ts +23 -0
- package/dist/src/components/ui/accordion/index.d.ts +4 -0
- package/dist/src/components/ui/alert/Alert.vue.d.ts +23 -0
- package/dist/src/components/ui/alert/AlertDescription.vue.d.ts +21 -0
- package/dist/src/components/ui/alert/AlertTitle.vue.d.ts +21 -0
- package/dist/src/components/ui/alert/index.d.ts +8 -0
- package/dist/src/components/ui/alert-dialog/AlertDialog.vue.d.ts +25 -0
- package/dist/src/components/ui/alert-dialog/AlertDialogAction.vue.d.ts +22 -0
- package/dist/src/components/ui/alert-dialog/AlertDialogCancel.vue.d.ts +22 -0
- package/dist/src/components/ui/alert-dialog/AlertDialogContent.vue.d.ts +36 -0
- package/dist/src/components/ui/alert-dialog/AlertDialogDescription.vue.d.ts +22 -0
- package/dist/src/components/ui/alert-dialog/AlertDialogFooter.vue.d.ts +21 -0
- package/dist/src/components/ui/alert-dialog/AlertDialogHeader.vue.d.ts +21 -0
- package/dist/src/components/ui/alert-dialog/AlertDialogTitle.vue.d.ts +22 -0
- package/dist/src/components/ui/alert-dialog/AlertDialogTrigger.vue.d.ts +18 -0
- package/dist/src/components/ui/alert-dialog/index.d.ts +9 -0
- package/dist/src/components/ui/aspect-ratio/AspectRatio.vue.d.ts +18 -0
- package/dist/src/components/ui/aspect-ratio/index.d.ts +1 -0
- package/dist/src/components/ui/avatar/Avatar.vue.d.ts +21 -0
- package/dist/src/components/ui/avatar/AvatarFallback.vue.d.ts +22 -0
- package/dist/src/components/ui/avatar/AvatarImage.vue.d.ts +18 -0
- package/dist/src/components/ui/avatar/index.d.ts +3 -0
- package/dist/src/components/ui/breadcrumb/Breadcrumb.vue.d.ts +21 -0
- package/dist/src/components/ui/breadcrumb/BreadcrumbEllipsis.vue.d.ts +21 -0
- package/dist/src/components/ui/breadcrumb/BreadcrumbItem.vue.d.ts +21 -0
- package/dist/src/components/ui/breadcrumb/BreadcrumbLink.vue.d.ts +24 -0
- package/dist/src/components/ui/breadcrumb/BreadcrumbList.vue.d.ts +21 -0
- package/dist/src/components/ui/breadcrumb/BreadcrumbPage.vue.d.ts +21 -0
- package/dist/src/components/ui/breadcrumb/BreadcrumbSeparator.vue.d.ts +21 -0
- package/dist/src/components/ui/breadcrumb/index.d.ts +7 -0
- package/dist/src/components/ui/button-group/ButtonGroup.vue.d.ts +23 -0
- package/dist/src/components/ui/button-group/ButtonGroupSeparator.vue.d.ts +9 -0
- package/dist/src/components/ui/button-group/ButtonGroupText.vue.d.ts +26 -0
- package/dist/src/components/ui/button-group/index.d.ts +8 -0
- package/dist/src/components/ui/calendar/Calendar.vue.d.ts +27 -0
- package/dist/src/components/ui/calendar/CalendarCell.vue.d.ts +22 -0
- package/dist/src/components/ui/calendar/CalendarCellTrigger.vue.d.ts +24 -0
- package/dist/src/components/ui/calendar/CalendarGrid.vue.d.ts +22 -0
- package/dist/src/components/ui/calendar/CalendarGridBody.vue.d.ts +18 -0
- package/dist/src/components/ui/calendar/CalendarGridHead.vue.d.ts +22 -0
- package/dist/src/components/ui/calendar/CalendarGridRow.vue.d.ts +22 -0
- package/dist/src/components/ui/calendar/CalendarHeadCell.vue.d.ts +22 -0
- package/dist/src/components/ui/calendar/CalendarHeader.vue.d.ts +22 -0
- package/dist/src/components/ui/calendar/CalendarHeading.vue.d.ts +28 -0
- package/dist/src/components/ui/calendar/CalendarNextButton.vue.d.ts +22 -0
- package/dist/src/components/ui/calendar/CalendarPrevButton.vue.d.ts +22 -0
- package/dist/src/components/ui/calendar/index.d.ts +13 -0
- package/dist/src/components/ui/carousel/CarouselContent.vue.d.ts +22 -0
- package/dist/src/components/ui/carousel/CarouselItem.vue.d.ts +18 -0
- package/dist/src/components/ui/carousel/CarouselNext.vue.d.ts +26 -0
- package/dist/src/components/ui/carousel/CarouselPrevious.vue.d.ts +26 -0
- package/dist/src/components/ui/carousel/index.d.ts +7 -0
- package/dist/src/components/ui/carousel/interface.d.ts +19 -0
- package/dist/src/components/ui/checkbox/Checkbox.vue.d.ts +29 -0
- package/dist/src/components/ui/checkbox/index.d.ts +1 -11
- package/dist/src/components/ui/collapsible/Collapsible.vue.d.ts +24 -0
- package/dist/src/components/ui/collapsible/CollapsibleContent.vue.d.ts +18 -0
- package/dist/src/components/ui/collapsible/CollapsibleTrigger.vue.d.ts +18 -0
- package/dist/src/components/ui/collapsible/index.d.ts +3 -0
- package/dist/src/components/ui/combobox/Combobox.vue.d.ts +36 -0
- package/dist/src/components/ui/combobox/ComboboxAnchor.vue.d.ts +22 -0
- package/dist/src/components/ui/combobox/ComboboxEmpty.vue.d.ts +22 -0
- package/dist/src/components/ui/combobox/ComboboxGroup.vue.d.ts +23 -0
- package/dist/src/components/ui/combobox/ComboboxInput.vue.d.ts +26 -0
- package/dist/src/components/ui/combobox/ComboboxItem.vue.d.ts +26 -0
- package/dist/src/components/ui/combobox/ComboboxItemIndicator.vue.d.ts +22 -0
- package/dist/src/components/ui/combobox/ComboboxList.vue.d.ts +36 -0
- package/dist/src/components/ui/combobox/ComboboxSeparator.vue.d.ts +22 -0
- package/dist/src/components/ui/combobox/ComboboxViewport.vue.d.ts +22 -0
- package/dist/src/components/ui/combobox/index.d.ts +11 -0
- package/dist/src/components/ui/command/Command.vue.d.ts +40 -0
- package/dist/src/components/ui/command/CommandDialog.vue.d.ts +29 -0
- package/dist/src/components/ui/command/CommandEmpty.vue.d.ts +22 -0
- package/dist/src/components/ui/command/CommandGroup.vue.d.ts +23 -0
- package/dist/src/components/ui/command/CommandInput.vue.d.ts +7 -0
- package/dist/src/components/ui/command/CommandItem.vue.d.ts +30 -0
- package/dist/src/components/ui/command/CommandList.vue.d.ts +22 -0
- package/dist/src/components/ui/command/CommandSeparator.vue.d.ts +22 -0
- package/dist/src/components/ui/command/CommandShortcut.vue.d.ts +21 -0
- package/dist/src/components/ui/command/index.d.ts +90 -0
- package/dist/src/components/ui/context-menu/ContextMenu.vue.d.ts +22 -0
- package/dist/src/components/ui/context-menu/ContextMenuCheckboxItem.vue.d.ts +29 -0
- package/dist/src/components/ui/context-menu/ContextMenuContent.vue.d.ts +34 -0
- package/dist/src/components/ui/context-menu/ContextMenuGroup.vue.d.ts +18 -0
- package/dist/src/components/ui/context-menu/ContextMenuItem.vue.d.ts +30 -0
- package/dist/src/components/ui/context-menu/ContextMenuLabel.vue.d.ts +23 -0
- package/dist/src/components/ui/context-menu/ContextMenuRadioGroup.vue.d.ts +22 -0
- package/dist/src/components/ui/context-menu/ContextMenuRadioItem.vue.d.ts +27 -0
- package/dist/src/components/ui/context-menu/ContextMenuSeparator.vue.d.ts +7 -0
- package/dist/src/components/ui/context-menu/ContextMenuShortcut.vue.d.ts +21 -0
- package/dist/src/components/ui/context-menu/ContextMenuSub.vue.d.ts +22 -0
- package/dist/src/components/ui/context-menu/ContextMenuSubContent.vue.d.ts +38 -0
- package/dist/src/components/ui/context-menu/ContextMenuSubTrigger.vue.d.ts +23 -0
- package/dist/src/components/ui/context-menu/ContextMenuTrigger.vue.d.ts +18 -0
- package/dist/src/components/ui/context-menu/index.d.ts +14 -0
- package/dist/src/components/ui/dialog/Dialog.vue.d.ts +10 -13
- package/dist/src/components/ui/dialog/DialogClose.vue.d.ts +18 -0
- package/dist/src/components/ui/dialog/DialogContent.vue.d.ts +39 -0
- package/dist/src/components/ui/dialog/DialogDescription.vue.d.ts +22 -0
- package/dist/src/components/ui/dialog/DialogFooter.vue.d.ts +24 -0
- package/dist/src/components/ui/dialog/DialogHeader.vue.d.ts +21 -0
- package/dist/src/components/ui/dialog/DialogOverlay.vue.d.ts +22 -0
- package/dist/src/components/ui/dialog/DialogScrollContent.vue.d.ts +29 -0
- package/dist/src/components/ui/dialog/DialogTitle.vue.d.ts +22 -0
- package/dist/src/components/ui/dialog/DialogTrigger.vue.d.ts +18 -0
- package/dist/src/components/ui/dialog/index.d.ts +9 -0
- package/dist/src/components/ui/drawer/Drawer.vue.d.ts +36 -0
- package/dist/src/components/ui/drawer/DrawerClose.vue.d.ts +18 -0
- package/dist/src/components/ui/drawer/DrawerContent.vue.d.ts +29 -0
- package/dist/src/components/ui/drawer/DrawerDescription.vue.d.ts +22 -0
- package/dist/src/components/ui/drawer/DrawerFooter.vue.d.ts +21 -0
- package/dist/src/components/ui/drawer/DrawerHeader.vue.d.ts +21 -0
- package/dist/src/components/ui/drawer/DrawerOverlay.vue.d.ts +7 -0
- package/dist/src/components/ui/drawer/DrawerTitle.vue.d.ts +22 -0
- package/dist/src/components/ui/drawer/DrawerTrigger.vue.d.ts +18 -0
- package/dist/src/components/ui/drawer/index.d.ts +9 -0
- package/dist/src/components/ui/dropdown-menu/DropdownMenu.vue.d.ts +24 -0
- package/dist/src/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +29 -0
- package/dist/src/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +36 -0
- package/dist/src/components/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts +18 -0
- package/dist/src/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +26 -0
- package/dist/src/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +23 -0
- package/dist/src/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +22 -0
- package/dist/src/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +27 -0
- package/dist/src/components/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts +7 -0
- package/dist/src/components/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts +21 -0
- package/dist/src/components/ui/dropdown-menu/DropdownMenuSub.vue.d.ts +22 -0
- package/dist/src/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +38 -0
- package/dist/src/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +23 -0
- package/dist/src/components/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +18 -0
- package/dist/src/components/ui/dropdown-menu/index.d.ts +15 -0
- package/dist/src/components/ui/empty/Empty.vue.d.ts +21 -0
- package/dist/src/components/ui/empty/EmptyContent.vue.d.ts +21 -0
- package/dist/src/components/ui/empty/EmptyDescription.vue.d.ts +21 -0
- package/dist/src/components/ui/empty/EmptyHeader.vue.d.ts +21 -0
- package/dist/src/components/ui/empty/EmptyMedia.vue.d.ts +23 -0
- package/dist/src/components/ui/empty/EmptyTitle.vue.d.ts +21 -0
- package/dist/src/components/ui/empty/index.d.ts +11 -0
- package/dist/src/components/ui/field/Field.vue.d.ts +23 -0
- package/dist/src/components/ui/field/FieldContent.vue.d.ts +21 -0
- package/dist/src/components/ui/field/FieldDescription.vue.d.ts +21 -0
- package/dist/src/components/ui/field/FieldError.vue.d.ts +24 -0
- package/dist/src/components/ui/field/FieldGroup.vue.d.ts +21 -0
- package/dist/src/components/ui/field/FieldLabel.vue.d.ts +21 -0
- package/dist/src/components/ui/field/FieldLegend.vue.d.ts +22 -0
- package/dist/src/components/ui/field/FieldSeparator.vue.d.ts +21 -0
- package/dist/src/components/ui/field/FieldSet.vue.d.ts +21 -0
- package/dist/src/components/ui/field/FieldTitle.vue.d.ts +21 -0
- package/dist/src/components/ui/field/index.d.ts +15 -0
- package/dist/src/components/ui/form/FormControl.vue.d.ts +17 -0
- package/dist/src/components/ui/form/FormDescription.vue.d.ts +21 -0
- package/dist/src/components/ui/form/FormItem.vue.d.ts +21 -0
- package/dist/src/components/ui/form/FormLabel.vue.d.ts +22 -0
- package/dist/src/components/ui/form/FormMessage.vue.d.ts +6 -0
- package/dist/src/components/ui/form/index.d.ts +7 -0
- package/dist/src/components/ui/form/injectionKeys.d.ts +2 -0
- package/dist/src/components/ui/form/useFormField.d.ts +11 -0
- package/dist/src/components/ui/hover-card/HoverCard.vue.d.ts +24 -0
- package/dist/src/components/ui/hover-card/HoverCardContent.vue.d.ts +24 -0
- package/dist/src/components/ui/hover-card/HoverCardTrigger.vue.d.ts +18 -0
- package/dist/src/components/ui/hover-card/index.d.ts +3 -0
- package/dist/src/components/ui/input-group/InputGroupButton.vue.d.ts +9 -3
- package/dist/src/components/ui/input-group/index.d.ts +0 -7
- package/dist/src/components/ui/input-otp/InputOTP.vue.d.ts +46 -0
- package/dist/src/components/ui/input-otp/InputOTPGroup.vue.d.ts +21 -0
- package/dist/src/components/ui/input-otp/InputOTPSeparator.vue.d.ts +21 -0
- package/dist/src/components/ui/input-otp/InputOTPSlot.vue.d.ts +7 -0
- package/dist/src/components/ui/input-otp/index.d.ts +4 -0
- package/dist/src/components/ui/kbd/Kbd.vue.d.ts +21 -0
- package/dist/src/components/ui/kbd/KbdGroup.vue.d.ts +21 -0
- package/dist/src/components/ui/kbd/index.d.ts +2 -0
- package/dist/src/components/ui/menubar/Menubar.vue.d.ts +28 -0
- package/dist/src/components/ui/menubar/MenubarCheckboxItem.vue.d.ts +29 -0
- package/dist/src/components/ui/menubar/MenubarContent.vue.d.ts +26 -0
- package/dist/src/components/ui/menubar/MenubarGroup.vue.d.ts +18 -0
- package/dist/src/components/ui/menubar/MenubarItem.vue.d.ts +28 -0
- package/dist/src/components/ui/menubar/MenubarLabel.vue.d.ts +23 -0
- package/dist/src/components/ui/menubar/MenubarMenu.vue.d.ts +18 -0
- package/dist/src/components/ui/menubar/MenubarRadioGroup.vue.d.ts +22 -0
- package/dist/src/components/ui/menubar/MenubarRadioItem.vue.d.ts +27 -0
- package/dist/src/components/ui/menubar/MenubarSeparator.vue.d.ts +7 -0
- package/dist/src/components/ui/menubar/MenubarShortcut.vue.d.ts +21 -0
- package/dist/src/components/ui/menubar/MenubarSub.vue.d.ts +25 -0
- package/dist/src/components/ui/menubar/MenubarSubContent.vue.d.ts +38 -0
- package/dist/src/components/ui/menubar/MenubarSubTrigger.vue.d.ts +23 -0
- package/dist/src/components/ui/menubar/MenubarTrigger.vue.d.ts +22 -0
- package/dist/src/components/ui/menubar/index.d.ts +15 -0
- package/dist/src/components/ui/native-select/NativeSelect.vue.d.ts +27 -0
- package/dist/src/components/ui/native-select/NativeSelectOptGroup.vue.d.ts +405 -0
- package/dist/src/components/ui/native-select/NativeSelectOption.vue.d.ts +409 -0
- package/dist/src/components/ui/native-select/index.d.ts +3 -0
- package/dist/src/components/ui/navigation-menu/NavigationMenu.vue.d.ts +31 -0
- package/dist/src/components/ui/navigation-menu/NavigationMenuContent.vue.d.ts +32 -0
- package/dist/src/components/ui/navigation-menu/NavigationMenuIndicator.vue.d.ts +7 -0
- package/dist/src/components/ui/navigation-menu/NavigationMenuItem.vue.d.ts +22 -0
- package/dist/src/components/ui/navigation-menu/NavigationMenuLink.vue.d.ts +30 -0
- package/dist/src/components/ui/navigation-menu/NavigationMenuList.vue.d.ts +22 -0
- package/dist/src/components/ui/navigation-menu/NavigationMenuTrigger.vue.d.ts +15 -0
- package/dist/src/components/ui/navigation-menu/NavigationMenuViewport.vue.d.ts +7 -0
- package/dist/src/components/ui/navigation-menu/index.d.ts +9 -0
- package/dist/src/components/ui/number-field/NumberField.vue.d.ts +30 -0
- package/dist/src/components/ui/number-field/NumberFieldContent.vue.d.ts +21 -0
- package/dist/src/components/ui/number-field/NumberFieldDecrement.vue.d.ts +22 -0
- package/dist/src/components/ui/number-field/NumberFieldIncrement.vue.d.ts +22 -0
- package/dist/src/components/ui/number-field/NumberFieldInput.vue.d.ts +6 -0
- package/dist/src/components/ui/number-field/index.d.ts +5 -0
- package/dist/src/components/ui/pagination/Pagination.vue.d.ts +29 -0
- package/dist/src/components/ui/pagination/PaginationContent.vue.d.ts +29 -0
- package/dist/src/components/ui/pagination/PaginationEllipsis.vue.d.ts +22 -0
- package/dist/src/components/ui/pagination/PaginationFirst.vue.d.ts +26 -0
- package/dist/src/components/ui/pagination/PaginationItem.vue.d.ts +27 -0
- package/dist/src/components/ui/pagination/PaginationLast.vue.d.ts +26 -0
- package/dist/src/components/ui/pagination/PaginationNext.vue.d.ts +26 -0
- package/dist/src/components/ui/pagination/PaginationPrevious.vue.d.ts +26 -0
- package/dist/src/components/ui/pagination/index.d.ts +8 -0
- package/dist/src/components/ui/pin-input/PinInput.vue.d.ts +22 -0
- package/dist/src/components/ui/pin-input/PinInputGroup.vue.d.ts +22 -0
- package/dist/src/components/ui/pin-input/PinInputSeparator.vue.d.ts +18 -0
- package/dist/src/components/ui/pin-input/PinInputSlot.vue.d.ts +7 -0
- package/dist/src/components/ui/pin-input/index.d.ts +4 -0
- package/dist/src/components/ui/popover/Popover.vue.d.ts +25 -0
- package/dist/src/components/ui/popover/PopoverAnchor.vue.d.ts +18 -0
- package/dist/src/components/ui/popover/PopoverContent.vue.d.ts +39 -0
- package/dist/src/components/ui/popover/PopoverTrigger.vue.d.ts +18 -0
- package/dist/src/components/ui/popover/index.d.ts +4 -0
- package/dist/src/components/ui/radio-group/RadioGroup.vue.d.ts +28 -0
- package/dist/src/components/ui/radio-group/RadioGroupItem.vue.d.ts +22 -0
- package/dist/src/components/ui/radio-group/index.d.ts +2 -0
- package/dist/src/components/ui/range-calendar/RangeCalendar.vue.d.ts +17 -0
- package/dist/src/components/ui/range-calendar/RangeCalendarCell.vue.d.ts +22 -0
- package/dist/src/components/ui/range-calendar/RangeCalendarCellTrigger.vue.d.ts +24 -0
- package/dist/src/components/ui/range-calendar/RangeCalendarGrid.vue.d.ts +22 -0
- package/dist/src/components/ui/range-calendar/RangeCalendarGridBody.vue.d.ts +18 -0
- package/dist/src/components/ui/range-calendar/RangeCalendarGridHead.vue.d.ts +18 -0
- package/dist/src/components/ui/range-calendar/RangeCalendarGridRow.vue.d.ts +22 -0
- package/dist/src/components/ui/range-calendar/RangeCalendarHeadCell.vue.d.ts +22 -0
- package/dist/src/components/ui/range-calendar/RangeCalendarHeader.vue.d.ts +22 -0
- package/dist/src/components/ui/range-calendar/RangeCalendarHeading.vue.d.ts +28 -0
- package/dist/src/components/ui/range-calendar/RangeCalendarNextButton.vue.d.ts +22 -0
- package/dist/src/components/ui/range-calendar/RangeCalendarPrevButton.vue.d.ts +22 -0
- package/dist/src/components/ui/range-calendar/index.d.ts +12 -0
- package/dist/src/components/ui/resizable/ResizableHandle.vue.d.ts +27 -0
- package/dist/src/components/ui/resizable/ResizablePanel.vue.d.ts +32 -0
- package/dist/src/components/ui/resizable/ResizablePanelGroup.vue.d.ts +28 -0
- package/dist/src/components/ui/resizable/index.d.ts +3 -0
- package/dist/src/components/ui/select/SelectContent.vue.d.ts +2 -2
- package/dist/src/components/ui/sheet/SheetContent.vue.d.ts +2 -2
- package/dist/src/components/ui/sidebar/Sidebar.vue.d.ts +2 -11
- package/dist/src/components/ui/slider/Slider.vue.d.ts +13 -0
- package/dist/src/components/ui/slider/index.d.ts +1 -0
- package/dist/src/components/ui/spinner/Spinner.vue.d.ts +6 -0
- package/dist/src/components/ui/spinner/index.d.ts +1 -0
- package/dist/src/components/ui/stepper/Stepper.vue.d.ts +38 -0
- package/dist/src/components/ui/stepper/StepperDescription.vue.d.ts +22 -0
- package/dist/src/components/ui/stepper/StepperIndicator.vue.d.ts +22 -0
- package/dist/src/components/ui/stepper/StepperItem.vue.d.ts +22 -0
- package/dist/src/components/ui/stepper/StepperSeparator.vue.d.ts +7 -0
- package/dist/src/components/ui/stepper/StepperTitle.vue.d.ts +22 -0
- package/dist/src/components/ui/stepper/StepperTrigger.vue.d.ts +22 -0
- package/dist/src/components/ui/stepper/index.d.ts +7 -0
- package/dist/src/components/ui/switch/Switch.vue.d.ts +1 -0
- package/dist/src/components/ui/tags-input/TagsInput.vue.d.ts +34 -0
- package/dist/src/components/ui/tags-input/TagsInputInput.vue.d.ts +7 -0
- package/dist/src/components/ui/tags-input/TagsInputItem.vue.d.ts +22 -0
- package/dist/src/components/ui/tags-input/TagsInputItemDelete.vue.d.ts +22 -0
- package/dist/src/components/ui/tags-input/TagsInputItemText.vue.d.ts +22 -0
- package/dist/src/components/ui/tags-input/index.d.ts +5 -0
- package/dist/src/components/ui/toggle/Toggle.vue.d.ts +33 -0
- package/dist/src/components/ui/toggle/index.d.ts +2 -10
- package/dist/src/components/ui/toggle-group/ToggleGroup.vue.d.ts +36 -0
- package/dist/src/components/ui/toggle-group/ToggleGroupItem.vue.d.ts +29 -0
- package/dist/src/components/ui/toggle-group/index.d.ts +2 -0
- package/package.json +25 -19
- package/src/App.vue +2 -2
- package/src/components/HelloWorld.vue +2 -2
- package/src/components/NS/CompleteDemo.vue +49 -49
- package/src/components/NS/Demo.vue +20 -20
- package/src/components/NS/cards/NSBackupCard.vue +59 -41
- package/src/components/NS/cards/NSSystemInfoCard.vue +167 -134
- package/src/components/NS/cards/NSSystemdServiceCard.vue +27 -27
- package/src/components/NS/checkbox/NSCheckbox.vue +6 -8
- package/src/components/NS/data-table/NSDataTable.vue +34 -40
- package/src/components/NS/empty-state/NSEmptyState.vue +3 -3
- package/src/components/NS/inline-notification/NSInlineNotification.vue +9 -9
- package/src/components/NS/lottie-animation/NSLottieAnimation.vue +140 -116
- package/src/components/NS/modal/NSModal.vue +12 -14
- package/src/components/NS/modal/NSModalTrigger.vue +1 -1
- package/src/components/NS/pagination/NSPagination.vue +10 -10
- package/src/components/NS/progress/NSProgress.vue +3 -3
- package/src/components/NS/progress/NSProgressBar.vue +4 -4
- package/src/components/NS/slider/NSByteSlider.vue +3 -3
- package/src/components/NS/slider/NSSlider.vue +2 -2
- package/src/components/NS/tag/NSTag.vue +6 -7
- package/src/components/NS/text-input/NSTextInput.vue +9 -13
- package/src/components/NS/toast-notification/NSToastNotification.vue +9 -11
- package/src/components/NS/toggle/NSToggle.vue +5 -8
- package/src/components/NS/wizard/NSWizard.vue +21 -21
- package/src/components/ui/accordion/Accordion.vue +18 -0
- package/src/components/ui/accordion/AccordionContent.vue +23 -0
- package/src/components/ui/accordion/AccordionItem.vue +24 -0
- package/src/components/ui/accordion/AccordionTrigger.vue +37 -0
- package/src/components/ui/alert/Alert.vue +21 -0
- package/src/components/ui/alert/AlertDescription.vue +17 -0
- package/src/components/ui/alert/AlertTitle.vue +17 -0
- package/src/components/ui/alert-dialog/AlertDialog.vue +15 -0
- package/src/components/ui/alert-dialog/AlertDialogAction.vue +18 -0
- package/src/components/ui/alert-dialog/AlertDialogCancel.vue +25 -0
- package/src/components/ui/alert-dialog/AlertDialogContent.vue +44 -0
- package/src/components/ui/alert-dialog/AlertDialogDescription.vue +23 -0
- package/src/components/ui/alert-dialog/AlertDialogFooter.vue +22 -0
- package/src/components/ui/alert-dialog/AlertDialogHeader.vue +17 -0
- package/src/components/ui/alert-dialog/AlertDialogTitle.vue +21 -0
- package/src/components/ui/alert-dialog/AlertDialogTrigger.vue +12 -0
- package/src/components/ui/aspect-ratio/AspectRatio.vue +16 -0
- package/src/components/ui/avatar/Avatar.vue +18 -0
- package/src/components/ui/avatar/AvatarFallback.vue +21 -0
- package/src/components/ui/avatar/AvatarImage.vue +16 -0
- package/src/components/ui/breadcrumb/Breadcrumb.vue +17 -0
- package/src/components/ui/breadcrumb/BreadcrumbEllipsis.vue +23 -0
- package/src/components/ui/breadcrumb/BreadcrumbItem.vue +17 -0
- package/src/components/ui/breadcrumb/BreadcrumbLink.vue +21 -0
- package/src/components/ui/breadcrumb/BreadcrumbList.vue +17 -0
- package/src/components/ui/breadcrumb/BreadcrumbPage.vue +20 -0
- package/src/components/ui/breadcrumb/BreadcrumbSeparator.vue +22 -0
- package/src/components/ui/button/Button.vue +2 -0
- package/src/components/ui/button-group/ButtonGroup.vue +22 -0
- package/src/components/ui/button-group/ButtonGroupSeparator.vue +24 -0
- package/src/components/ui/button-group/ButtonGroupText.vue +29 -0
- package/src/components/ui/calendar/Calendar.vue +160 -0
- package/src/components/ui/calendar/CalendarCell.vue +23 -0
- package/src/components/ui/calendar/CalendarCellTrigger.vue +39 -0
- package/src/components/ui/calendar/CalendarGrid.vue +23 -0
- package/src/components/ui/calendar/CalendarGridBody.vue +15 -0
- package/src/components/ui/calendar/CalendarGridHead.vue +16 -0
- package/src/components/ui/calendar/CalendarGridRow.vue +22 -0
- package/src/components/ui/calendar/CalendarHeadCell.vue +23 -0
- package/src/components/ui/calendar/CalendarHeader.vue +23 -0
- package/src/components/ui/calendar/CalendarHeading.vue +30 -0
- package/src/components/ui/calendar/CalendarNextButton.vue +31 -0
- package/src/components/ui/calendar/CalendarPrevButton.vue +31 -0
- package/src/components/ui/card/Card.vue +1 -1
- package/src/components/ui/card/CardAction.vue +1 -1
- package/src/components/ui/card/CardContent.vue +1 -1
- package/src/components/ui/card/CardDescription.vue +1 -1
- package/src/components/ui/card/CardFooter.vue +1 -1
- package/src/components/ui/card/CardHeader.vue +1 -1
- package/src/components/ui/card/CardTitle.vue +1 -1
- package/src/components/ui/carousel/Carousel.vue +53 -0
- package/src/components/ui/carousel/CarouselContent.vue +33 -0
- package/src/components/ui/carousel/CarouselItem.vue +24 -0
- package/src/components/ui/carousel/CarouselNext.vue +41 -0
- package/src/components/ui/carousel/CarouselPrevious.vue +41 -0
- package/src/components/ui/checkbox/Checkbox.vue +35 -0
- package/src/components/ui/collapsible/Collapsible.vue +19 -0
- package/src/components/ui/collapsible/CollapsibleContent.vue +15 -0
- package/src/components/ui/collapsible/CollapsibleTrigger.vue +15 -0
- package/src/components/ui/combobox/Combobox.vue +19 -0
- package/src/components/ui/combobox/ComboboxAnchor.vue +23 -0
- package/src/components/ui/combobox/ComboboxEmpty.vue +21 -0
- package/src/components/ui/combobox/ComboboxGroup.vue +27 -0
- package/src/components/ui/combobox/ComboboxInput.vue +42 -0
- package/src/components/ui/combobox/ComboboxItem.vue +24 -0
- package/src/components/ui/combobox/ComboboxItemIndicator.vue +23 -0
- package/src/components/ui/combobox/ComboboxList.vue +33 -0
- package/src/components/ui/combobox/ComboboxSeparator.vue +21 -0
- package/src/components/ui/combobox/ComboboxTrigger.vue +24 -0
- package/src/components/ui/combobox/ComboboxViewport.vue +23 -0
- package/src/components/ui/command/Command.vue +87 -0
- package/src/components/ui/command/CommandDialog.vue +31 -0
- package/src/components/ui/command/CommandEmpty.vue +27 -0
- package/src/components/ui/command/CommandGroup.vue +45 -0
- package/src/components/ui/command/CommandInput.vue +39 -0
- package/src/components/ui/command/CommandItem.vue +76 -0
- package/src/components/ui/command/CommandList.vue +25 -0
- package/src/components/ui/command/CommandSeparator.vue +21 -0
- package/src/components/ui/command/CommandShortcut.vue +17 -0
- package/src/components/ui/context-menu/ContextMenu.vue +18 -0
- package/src/components/ui/context-menu/ContextMenuCheckboxItem.vue +39 -0
- package/src/components/ui/context-menu/ContextMenuContent.vue +37 -0
- package/src/components/ui/context-menu/ContextMenuGroup.vue +15 -0
- package/src/components/ui/context-menu/ContextMenuItem.vue +38 -0
- package/src/components/ui/context-menu/ContextMenuLabel.vue +22 -0
- package/src/components/ui/context-menu/ContextMenuPortal.vue +15 -0
- package/src/components/ui/context-menu/ContextMenuRadioGroup.vue +21 -0
- package/src/components/ui/context-menu/ContextMenuRadioItem.vue +39 -0
- package/src/components/ui/context-menu/ContextMenuSeparator.vue +21 -0
- package/src/components/ui/context-menu/ContextMenuShortcut.vue +17 -0
- package/src/components/ui/context-menu/ContextMenuSub.vue +21 -0
- package/src/components/ui/context-menu/ContextMenuSubContent.vue +32 -0
- package/src/components/ui/context-menu/ContextMenuSubTrigger.vue +32 -0
- package/src/components/ui/context-menu/ContextMenuTrigger.vue +17 -0
- package/src/components/ui/dialog/Dialog.vue +15 -64
- package/src/components/ui/dialog/DialogClose.vue +15 -0
- package/src/components/ui/dialog/DialogContent.vue +62 -0
- package/src/components/ui/dialog/DialogDescription.vue +23 -0
- package/src/components/ui/dialog/DialogFooter.vue +27 -0
- package/src/components/ui/dialog/DialogHeader.vue +17 -0
- package/src/components/ui/dialog/DialogOverlay.vue +21 -0
- package/src/components/ui/dialog/DialogScrollContent.vue +59 -0
- package/src/components/ui/dialog/DialogTitle.vue +23 -0
- package/src/components/ui/dialog/DialogTrigger.vue +15 -0
- package/src/components/ui/drawer/Drawer.vue +23 -0
- package/src/components/ui/drawer/DrawerClose.vue +15 -0
- package/src/components/ui/drawer/DrawerContent.vue +38 -0
- package/src/components/ui/drawer/DrawerDescription.vue +21 -0
- package/src/components/ui/drawer/DrawerFooter.vue +17 -0
- package/src/components/ui/drawer/DrawerHeader.vue +17 -0
- package/src/components/ui/drawer/DrawerOverlay.vue +19 -0
- package/src/components/ui/drawer/DrawerTitle.vue +21 -0
- package/src/components/ui/drawer/DrawerTrigger.vue +15 -0
- package/src/components/ui/dropdown-menu/DropdownMenu.vue +19 -0
- package/src/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +39 -0
- package/src/components/ui/dropdown-menu/DropdownMenuContent.vue +39 -0
- package/src/components/ui/dropdown-menu/DropdownMenuGroup.vue +15 -0
- package/src/components/ui/dropdown-menu/DropdownMenuItem.vue +31 -0
- package/src/components/ui/dropdown-menu/DropdownMenuLabel.vue +23 -0
- package/src/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue +21 -0
- package/src/components/ui/dropdown-menu/DropdownMenuRadioItem.vue +40 -0
- package/src/components/ui/dropdown-menu/DropdownMenuSeparator.vue +23 -0
- package/src/components/ui/dropdown-menu/DropdownMenuShortcut.vue +17 -0
- package/src/components/ui/dropdown-menu/DropdownMenuSub.vue +18 -0
- package/src/components/ui/dropdown-menu/DropdownMenuSubContent.vue +27 -0
- package/src/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue +31 -0
- package/src/components/ui/dropdown-menu/DropdownMenuTrigger.vue +17 -0
- package/src/components/ui/empty/Empty.vue +20 -0
- package/src/components/ui/empty/EmptyContent.vue +20 -0
- package/src/components/ui/empty/EmptyDescription.vue +20 -0
- package/src/components/ui/empty/EmptyHeader.vue +20 -0
- package/src/components/ui/empty/EmptyMedia.vue +21 -0
- package/src/components/ui/empty/EmptyTitle.vue +17 -0
- package/src/components/ui/field/Field.vue +25 -0
- package/src/components/ui/field/FieldContent.vue +20 -0
- package/src/components/ui/field/FieldDescription.vue +22 -0
- package/src/components/ui/field/FieldError.vue +53 -0
- package/src/components/ui/field/FieldGroup.vue +20 -0
- package/src/components/ui/field/FieldLabel.vue +23 -0
- package/src/components/ui/field/FieldLegend.vue +24 -0
- package/src/components/ui/field/FieldSeparator.vue +29 -0
- package/src/components/ui/field/FieldSet.vue +21 -0
- package/src/components/ui/field/FieldTitle.vue +20 -0
- package/src/components/ui/form/FormControl.vue +17 -0
- package/src/components/ui/form/FormDescription.vue +21 -0
- package/src/components/ui/form/FormItem.vue +23 -0
- package/src/components/ui/form/FormLabel.vue +25 -0
- package/src/components/ui/form/FormMessage.vue +23 -0
- package/src/components/ui/hover-card/HoverCard.vue +19 -0
- package/src/components/ui/hover-card/HoverCardContent.vue +43 -0
- package/src/components/ui/hover-card/HoverCardTrigger.vue +15 -0
- package/src/components/ui/input/Input.vue +3 -3
- package/src/components/ui/input-group/InputGroup.vue +8 -8
- package/src/components/ui/input-group/InputGroupButton.vue +9 -1
- package/src/components/ui/input-group/InputGroupInput.vue +1 -1
- package/src/components/ui/input-group/InputGroupText.vue +1 -1
- package/src/components/ui/input-group/InputGroupTextarea.vue +1 -1
- package/src/components/ui/input-otp/InputOTP.vue +28 -0
- package/src/components/ui/input-otp/InputOTPGroup.vue +22 -0
- package/src/components/ui/input-otp/InputOTPSeparator.vue +21 -0
- package/src/components/ui/input-otp/InputOTPSlot.vue +32 -0
- package/src/components/ui/item/Item.vue +2 -0
- package/src/components/ui/item/ItemActions.vue +1 -1
- package/src/components/ui/item/ItemContent.vue +1 -1
- package/src/components/ui/item/ItemDescription.vue +2 -2
- package/src/components/ui/item/ItemFooter.vue +1 -1
- package/src/components/ui/item/ItemGroup.vue +1 -1
- package/src/components/ui/item/ItemHeader.vue +1 -1
- package/src/components/ui/item/ItemSeparator.vue +1 -1
- package/src/components/ui/item/ItemTitle.vue +1 -1
- package/src/components/ui/kbd/Kbd.vue +21 -0
- package/src/components/ui/kbd/KbdGroup.vue +17 -0
- package/src/components/ui/label/Label.vue +1 -1
- package/src/components/ui/menubar/Menubar.vue +33 -0
- package/src/components/ui/menubar/MenubarCheckboxItem.vue +39 -0
- package/src/components/ui/menubar/MenubarContent.vue +45 -0
- package/src/components/ui/menubar/MenubarGroup.vue +15 -0
- package/src/components/ui/menubar/MenubarItem.vue +36 -0
- package/src/components/ui/menubar/MenubarLabel.vue +20 -0
- package/src/components/ui/menubar/MenubarMenu.vue +15 -0
- package/src/components/ui/menubar/MenubarRadioGroup.vue +21 -0
- package/src/components/ui/menubar/MenubarRadioItem.vue +39 -0
- package/src/components/ui/menubar/MenubarSeparator.vue +21 -0
- package/src/components/ui/menubar/MenubarShortcut.vue +17 -0
- package/src/components/ui/menubar/MenubarSub.vue +24 -0
- package/src/components/ui/menubar/MenubarSubContent.vue +39 -0
- package/src/components/ui/menubar/MenubarSubTrigger.vue +28 -0
- package/src/components/ui/menubar/MenubarTrigger.vue +28 -0
- package/src/components/ui/native-select/NativeSelect.vue +50 -0
- package/src/components/ui/native-select/NativeSelectOptGroup.vue +15 -0
- package/src/components/ui/native-select/NativeSelectOption.vue +15 -0
- package/src/components/ui/navigation-menu/NavigationMenu.vue +35 -0
- package/src/components/ui/navigation-menu/NavigationMenuContent.vue +31 -0
- package/src/components/ui/navigation-menu/NavigationMenuIndicator.vue +23 -0
- package/src/components/ui/navigation-menu/NavigationMenuItem.vue +21 -0
- package/src/components/ui/navigation-menu/NavigationMenuLink.vue +26 -0
- package/src/components/ui/navigation-menu/NavigationMenuList.vue +28 -0
- package/src/components/ui/navigation-menu/NavigationMenuTrigger.vue +32 -0
- package/src/components/ui/navigation-menu/NavigationMenuViewport.vue +31 -0
- package/src/components/ui/number-field/NumberField.vue +20 -0
- package/src/components/ui/number-field/NumberFieldContent.vue +14 -0
- package/src/components/ui/number-field/NumberFieldDecrement.vue +22 -0
- package/src/components/ui/number-field/NumberFieldIncrement.vue +22 -0
- package/src/components/ui/number-field/NumberFieldInput.vue +16 -0
- package/src/components/ui/pagination/Pagination.vue +26 -0
- package/src/components/ui/pagination/PaginationContent.vue +22 -0
- package/src/components/ui/pagination/PaginationEllipsis.vue +25 -0
- package/src/components/ui/pagination/PaginationFirst.vue +33 -0
- package/src/components/ui/pagination/PaginationItem.vue +34 -0
- package/src/components/ui/pagination/PaginationLast.vue +33 -0
- package/src/components/ui/pagination/PaginationNext.vue +33 -0
- package/src/components/ui/pagination/PaginationPrevious.vue +33 -0
- package/src/components/ui/pin-input/PinInput.vue +26 -0
- package/src/components/ui/pin-input/PinInputGroup.vue +21 -0
- package/src/components/ui/pin-input/PinInputSeparator.vue +19 -0
- package/src/components/ui/pin-input/PinInputSlot.vue +21 -0
- package/src/components/ui/popover/Popover.vue +19 -0
- package/src/components/ui/popover/PopoverAnchor.vue +15 -0
- package/src/components/ui/popover/PopoverContent.vue +45 -0
- package/src/components/ui/popover/PopoverTrigger.vue +15 -0
- package/src/components/ui/progress/Progress.vue +9 -12
- package/src/components/ui/radio-group/RadioGroup.vue +25 -0
- package/src/components/ui/radio-group/RadioGroupItem.vue +40 -0
- package/src/components/ui/range-calendar/RangeCalendar.vue +62 -0
- package/src/components/ui/range-calendar/RangeCalendarCell.vue +23 -0
- package/src/components/ui/range-calendar/RangeCalendarCellTrigger.vue +41 -0
- package/src/components/ui/range-calendar/RangeCalendarGrid.vue +23 -0
- package/src/components/ui/range-calendar/RangeCalendarGridBody.vue +15 -0
- package/src/components/ui/range-calendar/RangeCalendarGridHead.vue +15 -0
- package/src/components/ui/range-calendar/RangeCalendarGridRow.vue +22 -0
- package/src/components/ui/range-calendar/RangeCalendarHeadCell.vue +23 -0
- package/src/components/ui/range-calendar/RangeCalendarHeader.vue +23 -0
- package/src/components/ui/range-calendar/RangeCalendarHeading.vue +30 -0
- package/src/components/ui/range-calendar/RangeCalendarNextButton.vue +32 -0
- package/src/components/ui/range-calendar/RangeCalendarPrevButton.vue +32 -0
- package/src/components/ui/resizable/ResizableHandle.vue +30 -0
- package/src/components/ui/resizable/ResizablePanel.vue +21 -0
- package/src/components/ui/resizable/ResizablePanelGroup.vue +25 -0
- package/src/components/ui/scroll-area/ScrollArea.vue +2 -2
- package/src/components/ui/scroll-area/ScrollBar.vue +22 -16
- package/src/components/ui/select/SelectContent.vue +27 -18
- package/src/components/ui/select/SelectItem.vue +3 -3
- package/src/components/ui/select/SelectLabel.vue +1 -1
- package/src/components/ui/select/SelectScrollDownButton.vue +2 -2
- package/src/components/ui/select/SelectScrollUpButton.vue +2 -2
- package/src/components/ui/select/SelectSeparator.vue +1 -1
- package/src/components/ui/select/SelectTrigger.vue +2 -2
- package/src/components/ui/separator/Separator.vue +1 -1
- package/src/components/ui/sheet/SheetContent.vue +31 -28
- package/src/components/ui/sheet/SheetDescription.vue +1 -1
- package/src/components/ui/sheet/SheetFooter.vue +1 -1
- package/src/components/ui/sheet/SheetHeader.vue +1 -1
- package/src/components/ui/sheet/SheetOverlay.vue +1 -1
- package/src/components/ui/sheet/SheetTitle.vue +1 -1
- package/src/components/ui/sidebar/Sidebar.vue +16 -16
- package/src/components/ui/sidebar/SidebarContent.vue +1 -1
- package/src/components/ui/sidebar/SidebarFooter.vue +1 -1
- package/src/components/ui/sidebar/SidebarGroup.vue +1 -1
- package/src/components/ui/sidebar/SidebarGroupAction.vue +3 -3
- package/src/components/ui/sidebar/SidebarGroupContent.vue +1 -1
- package/src/components/ui/sidebar/SidebarGroupLabel.vue +2 -2
- package/src/components/ui/sidebar/SidebarHeader.vue +1 -1
- package/src/components/ui/sidebar/SidebarInput.vue +1 -1
- package/src/components/ui/sidebar/SidebarInset.vue +2 -2
- package/src/components/ui/sidebar/SidebarMenu.vue +1 -1
- package/src/components/ui/sidebar/SidebarMenuAction.vue +7 -7
- package/src/components/ui/sidebar/SidebarMenuBadge.vue +6 -6
- package/src/components/ui/sidebar/SidebarMenuItem.vue +1 -1
- package/src/components/ui/sidebar/SidebarMenuSkeleton.vue +3 -3
- package/src/components/ui/sidebar/SidebarMenuSub.vue +2 -2
- package/src/components/ui/sidebar/SidebarMenuSubButton.vue +5 -5
- package/src/components/ui/sidebar/SidebarMenuSubItem.vue +1 -1
- package/src/components/ui/sidebar/SidebarProvider.vue +1 -1
- package/src/components/ui/sidebar/SidebarRail.vue +6 -6
- package/src/components/ui/sidebar/SidebarSeparator.vue +1 -1
- package/src/components/ui/sidebar/SidebarTrigger.vue +2 -2
- package/src/components/ui/skeleton/Skeleton.vue +1 -1
- package/src/components/ui/slider/Slider.vue +43 -0
- package/src/components/ui/sonner/Sonner.vue +7 -7
- package/src/components/ui/spinner/Spinner.vue +17 -0
- package/src/components/ui/stepper/Stepper.vue +27 -0
- package/src/components/ui/stepper/StepperDescription.vue +19 -0
- package/src/components/ui/stepper/StepperIndicator.vue +32 -0
- package/src/components/ui/stepper/StepperItem.vue +23 -0
- package/src/components/ui/stepper/StepperSeparator.vue +27 -0
- package/src/components/ui/stepper/StepperTitle.vue +19 -0
- package/src/components/ui/stepper/StepperTrigger.vue +22 -0
- package/src/components/ui/switch/Switch.vue +2 -2
- package/src/components/ui/table/Table.vue +12 -6
- package/src/components/ui/table/TableBody.vue +1 -1
- package/src/components/ui/table/TableCaption.vue +1 -1
- package/src/components/ui/table/TableCell.vue +1 -1
- package/src/components/ui/table/TableEmpty.vue +17 -14
- package/src/components/ui/table/TableFooter.vue +1 -1
- package/src/components/ui/table/TableHead.vue +1 -1
- package/src/components/ui/table/TableHeader.vue +1 -1
- package/src/components/ui/table/TableRow.vue +1 -1
- package/src/components/ui/tabs/Tabs.vue +1 -1
- package/src/components/ui/tabs/TabsContent.vue +1 -1
- package/src/components/ui/tabs/TabsList.vue +1 -1
- package/src/components/ui/tabs/TabsTrigger.vue +1 -1
- package/src/components/ui/tags-input/TagsInput.vue +26 -0
- package/src/components/ui/tags-input/TagsInputInput.vue +17 -0
- package/src/components/ui/tags-input/TagsInputItem.vue +20 -0
- package/src/components/ui/tags-input/TagsInputItemDelete.vue +22 -0
- package/src/components/ui/tags-input/TagsInputItemText.vue +19 -0
- package/src/components/ui/textarea/Textarea.vue +1 -1
- package/src/components/ui/toggle/Toggle.vue +35 -0
- package/src/components/ui/toggle-group/ToggleGroup.vue +49 -0
- package/src/components/ui/toggle-group/ToggleGroupItem.vue +46 -0
- package/src/components/ui/tooltip/TooltipContent.vue +2 -2
- package/dist/src/components/NS/lottie-animation/NSLottieAnimation.vue.d.ts +0 -75
- package/dist/src/components/ui/checkbox/NsCheckbox.vue.d.ts +0 -49
- package/dist/src/components/ui/toggle/NsToggle.vue.d.ts +0 -54
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { AlertDialogTriggerProps } from "reka-ui"
|
|
3
|
+
import { AlertDialogTrigger } from "reka-ui"
|
|
4
|
+
|
|
5
|
+
const props = defineProps<AlertDialogTriggerProps>()
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<template>
|
|
9
|
+
<AlertDialogTrigger data-slot="alert-dialog-trigger" v-bind="props">
|
|
10
|
+
<slot />
|
|
11
|
+
</AlertDialogTrigger>
|
|
12
|
+
</template>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { AspectRatioProps } from "reka-ui"
|
|
3
|
+
import { AspectRatio } from "reka-ui"
|
|
4
|
+
|
|
5
|
+
const props = defineProps<AspectRatioProps>()
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<template>
|
|
9
|
+
<AspectRatio
|
|
10
|
+
v-slot="slotProps"
|
|
11
|
+
data-slot="aspect-ratio"
|
|
12
|
+
v-bind="props"
|
|
13
|
+
>
|
|
14
|
+
<slot v-bind="slotProps" />
|
|
15
|
+
</AspectRatio>
|
|
16
|
+
</template>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from "vue"
|
|
3
|
+
import { AvatarRoot } from "reka-ui"
|
|
4
|
+
import { cn } from "@/lib/utils"
|
|
5
|
+
|
|
6
|
+
const props = defineProps<{
|
|
7
|
+
class?: HTMLAttributes["class"]
|
|
8
|
+
}>()
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<template>
|
|
12
|
+
<AvatarRoot
|
|
13
|
+
data-slot="avatar"
|
|
14
|
+
:class="cn('tw:relative tw:flex tw:size-8 tw:shrink-0 tw:overflow-hidden tw:rounded-full', props.class)"
|
|
15
|
+
>
|
|
16
|
+
<slot />
|
|
17
|
+
</AvatarRoot>
|
|
18
|
+
</template>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { AvatarFallbackProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
+
import { AvatarFallback } from "reka-ui"
|
|
6
|
+
import { cn } from "@/lib/utils"
|
|
7
|
+
|
|
8
|
+
const props = defineProps<AvatarFallbackProps & { class?: HTMLAttributes["class"] }>()
|
|
9
|
+
|
|
10
|
+
const delegatedProps = reactiveOmit(props, "class")
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<template>
|
|
14
|
+
<AvatarFallback
|
|
15
|
+
data-slot="avatar-fallback"
|
|
16
|
+
v-bind="delegatedProps"
|
|
17
|
+
:class="cn('tw:bg-muted tw:flex tw:size-full tw:items-center tw:justify-center tw:rounded-full', props.class)"
|
|
18
|
+
>
|
|
19
|
+
<slot />
|
|
20
|
+
</AvatarFallback>
|
|
21
|
+
</template>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { AvatarImageProps } from "reka-ui"
|
|
3
|
+
import { AvatarImage } from "reka-ui"
|
|
4
|
+
|
|
5
|
+
const props = defineProps<AvatarImageProps>()
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<template>
|
|
9
|
+
<AvatarImage
|
|
10
|
+
data-slot="avatar-image"
|
|
11
|
+
v-bind="props"
|
|
12
|
+
class=""tw:aspect-square tw:size-full""
|
|
13
|
+
>
|
|
14
|
+
<slot />
|
|
15
|
+
</AvatarImage>
|
|
16
|
+
</template>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import type { HTMLAttributes } from "vue"
|
|
3
|
+
|
|
4
|
+
const props = defineProps<{
|
|
5
|
+
class?: HTMLAttributes["class"]
|
|
6
|
+
}>()
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<template>
|
|
10
|
+
<nav
|
|
11
|
+
aria-label="breadcrumb"
|
|
12
|
+
data-slot="breadcrumb"
|
|
13
|
+
:class="props.class"
|
|
14
|
+
>
|
|
15
|
+
<slot />
|
|
16
|
+
</nav>
|
|
17
|
+
</template>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import type { HTMLAttributes } from "vue"
|
|
3
|
+
import { MoreHorizontal } from "lucide-vue-next"
|
|
4
|
+
import { cn } from "@/lib/utils"
|
|
5
|
+
|
|
6
|
+
const props = defineProps<{
|
|
7
|
+
class?: HTMLAttributes["class"]
|
|
8
|
+
}>()
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<template>
|
|
12
|
+
<span
|
|
13
|
+
data-slot="breadcrumb-ellipsis"
|
|
14
|
+
role="presentation"
|
|
15
|
+
aria-hidden="true"
|
|
16
|
+
:class="cn('tw:flex tw:size-9 tw:items-center tw:justify-center', props.class)"
|
|
17
|
+
>
|
|
18
|
+
<slot>
|
|
19
|
+
<MoreHorizontal class=""tw:size-4"" />
|
|
20
|
+
</slot>
|
|
21
|
+
<span class=""tw:sr-only"">More</span>
|
|
22
|
+
</span>
|
|
23
|
+
</template>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import type { HTMLAttributes } from "vue"
|
|
3
|
+
import { cn } from "@/lib/utils"
|
|
4
|
+
|
|
5
|
+
const props = defineProps<{
|
|
6
|
+
class?: HTMLAttributes["class"]
|
|
7
|
+
}>()
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<li
|
|
12
|
+
data-slot="breadcrumb-item"
|
|
13
|
+
:class="cn('tw:inline-flex tw:items-center tw:gap-1.5', props.class)"
|
|
14
|
+
>
|
|
15
|
+
<slot />
|
|
16
|
+
</li>
|
|
17
|
+
</template>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import type { PrimitiveProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import { Primitive } from "reka-ui"
|
|
5
|
+
import { cn } from "@/lib/utils"
|
|
6
|
+
|
|
7
|
+
const props = withDefaults(defineProps<PrimitiveProps & { class?: HTMLAttributes["class"] }>(), {
|
|
8
|
+
as: "a",
|
|
9
|
+
})
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<template>
|
|
13
|
+
<Primitive
|
|
14
|
+
data-slot="breadcrumb-link"
|
|
15
|
+
:as="as"
|
|
16
|
+
:as-child="asChild"
|
|
17
|
+
:class="cn('tw:hover:text-foreground tw:transition-colors', props.class)"
|
|
18
|
+
>
|
|
19
|
+
<slot />
|
|
20
|
+
</Primitive>
|
|
21
|
+
</template>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import type { HTMLAttributes } from "vue"
|
|
3
|
+
import { cn } from "@/lib/utils"
|
|
4
|
+
|
|
5
|
+
const props = defineProps<{
|
|
6
|
+
class?: HTMLAttributes["class"]
|
|
7
|
+
}>()
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<ol
|
|
12
|
+
data-slot="breadcrumb-list"
|
|
13
|
+
:class="cn('tw:text-muted-foreground tw:flex tw:flex-wrap tw:items-center tw:gap-1.5 tw:text-sm tw:break-words tw:sm:gap-2.5', props.class)"
|
|
14
|
+
>
|
|
15
|
+
<slot />
|
|
16
|
+
</ol>
|
|
17
|
+
</template>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import type { HTMLAttributes } from "vue"
|
|
3
|
+
import { cn } from "@/lib/utils"
|
|
4
|
+
|
|
5
|
+
const props = defineProps<{
|
|
6
|
+
class?: HTMLAttributes["class"]
|
|
7
|
+
}>()
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<span
|
|
12
|
+
data-slot="breadcrumb-page"
|
|
13
|
+
role="link"
|
|
14
|
+
aria-disabled="true"
|
|
15
|
+
aria-current="page"
|
|
16
|
+
:class="cn('tw:text-foreground tw:font-normal', props.class)"
|
|
17
|
+
>
|
|
18
|
+
<slot />
|
|
19
|
+
</span>
|
|
20
|
+
</template>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import type { HTMLAttributes } from "vue"
|
|
3
|
+
import { ChevronRight } from "lucide-vue-next"
|
|
4
|
+
import { cn } from "@/lib/utils"
|
|
5
|
+
|
|
6
|
+
const props = defineProps<{
|
|
7
|
+
class?: HTMLAttributes["class"]
|
|
8
|
+
}>()
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<template>
|
|
12
|
+
<li
|
|
13
|
+
data-slot="breadcrumb-separator"
|
|
14
|
+
role="presentation"
|
|
15
|
+
aria-hidden="true"
|
|
16
|
+
:class="cn('tw:[&>svg]:size-3.5', props.class)"
|
|
17
|
+
>
|
|
18
|
+
<slot>
|
|
19
|
+
<ChevronRight />
|
|
20
|
+
</slot>
|
|
21
|
+
</li>
|
|
22
|
+
</template>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from "vue"
|
|
3
|
+
import type { ButtonGroupVariants } from "."
|
|
4
|
+
import { cn } from "@/lib/utils"
|
|
5
|
+
import { buttonGroupVariants } from "."
|
|
6
|
+
|
|
7
|
+
const props = defineProps<{
|
|
8
|
+
class?: HTMLAttributes["class"]
|
|
9
|
+
orientation?: ButtonGroupVariants["orientation"]
|
|
10
|
+
}>()
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<template>
|
|
14
|
+
<div
|
|
15
|
+
role="group"
|
|
16
|
+
data-slot="button-group"
|
|
17
|
+
:data-orientation="props.orientation"
|
|
18
|
+
:class="cn(buttonGroupVariants({ orientation: props.orientation }), props.class)"
|
|
19
|
+
>
|
|
20
|
+
<slot />
|
|
21
|
+
</div>
|
|
22
|
+
</template>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { SeparatorProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
+
import { cn } from "@/lib/utils"
|
|
6
|
+
import { Separator } from '@/components/ui/separator'
|
|
7
|
+
|
|
8
|
+
const props = withDefaults(defineProps<SeparatorProps & { class?: HTMLAttributes["class"] }>(), {
|
|
9
|
+
orientation: "vertical",
|
|
10
|
+
})
|
|
11
|
+
const delegatedProps = reactiveOmit(props, "class")
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<template>
|
|
15
|
+
<Separator
|
|
16
|
+
data-slot="button-group-separator"
|
|
17
|
+
v-bind="delegatedProps"
|
|
18
|
+
:orientation="props.orientation"
|
|
19
|
+
:class="cn(
|
|
20
|
+
'tw:bg-input tw:relative tw:!m-0 tw:self-stretch tw:data-[orientation=vertical]:h-auto',
|
|
21
|
+
props.class,
|
|
22
|
+
)"
|
|
23
|
+
/>
|
|
24
|
+
</template>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { PrimitiveProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import type { ButtonGroupVariants } from "."
|
|
5
|
+
import { Primitive } from "reka-ui"
|
|
6
|
+
import { cn } from "@/lib/utils"
|
|
7
|
+
|
|
8
|
+
interface Props extends PrimitiveProps {
|
|
9
|
+
class?: HTMLAttributes["class"]
|
|
10
|
+
orientation?: ButtonGroupVariants["orientation"]
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const props = withDefaults(defineProps<Props>(), {
|
|
14
|
+
as: "div",
|
|
15
|
+
})
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<template>
|
|
19
|
+
<Primitive
|
|
20
|
+
role="group"
|
|
21
|
+
data-slot="button-group"
|
|
22
|
+
:data-orientation="props.orientation"
|
|
23
|
+
:as="as"
|
|
24
|
+
:as-child="asChild"
|
|
25
|
+
:class="cn('tw:bg-muted tw:flex tw:items-center tw:gap-2 tw:rounded-md tw:border tw:px-4 tw:text-sm tw:font-medium tw:shadow-xs tw:[&_svg]:pointer-events-none tw:[&_svg:not([class*=\'size-\'])]:size-4', props.class)"
|
|
26
|
+
>
|
|
27
|
+
<slot />
|
|
28
|
+
</Primitive>
|
|
29
|
+
</template>
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import type { CalendarRootEmits, CalendarRootProps, DateValue } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes, Ref } from "vue"
|
|
4
|
+
import type { LayoutTypes } from "."
|
|
5
|
+
import { getLocalTimeZone, today } from "@internationalized/date"
|
|
6
|
+
import { createReusableTemplate, reactiveOmit, useVModel } from "@vueuse/core"
|
|
7
|
+
import { CalendarRoot, useDateFormatter, useForwardPropsEmits } from "reka-ui"
|
|
8
|
+
import { createYear, createYearRange, toDate } from "reka-ui/date"
|
|
9
|
+
import { computed, toRaw } from "vue"
|
|
10
|
+
import { cn } from "@/lib/utils"
|
|
11
|
+
import { NativeSelect, NativeSelectOption } from '@/components/ui/native-select'
|
|
12
|
+
import { CalendarCell, CalendarCellTrigger, CalendarGrid, CalendarGridBody, CalendarGridHead, CalendarGridRow, CalendarHeadCell, CalendarHeader, CalendarHeading, CalendarNextButton, CalendarPrevButton } from "."
|
|
13
|
+
|
|
14
|
+
const props = withDefaults(defineProps<CalendarRootProps & { class?: HTMLAttributes["class"], layout?: LayoutTypes, yearRange?: DateValue[] }>(), {
|
|
15
|
+
modelValue: undefined,
|
|
16
|
+
layout: undefined,
|
|
17
|
+
})
|
|
18
|
+
const emits = defineEmits<CalendarRootEmits>()
|
|
19
|
+
|
|
20
|
+
const delegatedProps = reactiveOmit(props, "class", "layout", "placeholder")
|
|
21
|
+
|
|
22
|
+
const placeholder = useVModel(props, "placeholder", emits, {
|
|
23
|
+
passive: true,
|
|
24
|
+
defaultValue: props.defaultPlaceholder ?? today(getLocalTimeZone()),
|
|
25
|
+
}) as Ref<DateValue>
|
|
26
|
+
|
|
27
|
+
const formatter = useDateFormatter(props.locale ?? "en")
|
|
28
|
+
|
|
29
|
+
const yearRange = computed(() => {
|
|
30
|
+
return props.yearRange ?? createYearRange({
|
|
31
|
+
start: props?.minValue ?? (toRaw(props.placeholder) ?? props.defaultPlaceholder ?? today(getLocalTimeZone()))
|
|
32
|
+
.cycle("year", -100),
|
|
33
|
+
|
|
34
|
+
end: props?.maxValue ?? (toRaw(props.placeholder) ?? props.defaultPlaceholder ?? today(getLocalTimeZone()))
|
|
35
|
+
.cycle("year", 10),
|
|
36
|
+
})
|
|
37
|
+
})
|
|
38
|
+
|
|
39
|
+
const [DefineMonthTemplate, ReuseMonthTemplate] = createReusableTemplate<{ date: DateValue }>()
|
|
40
|
+
const [DefineYearTemplate, ReuseYearTemplate] = createReusableTemplate<{ date: DateValue }>()
|
|
41
|
+
|
|
42
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
43
|
+
</script>
|
|
44
|
+
|
|
45
|
+
<template>
|
|
46
|
+
<DefineMonthTemplate v-slot="{ date }">
|
|
47
|
+
<div class=""tw:**:data-[slot=native-select-icon]:right-1"">
|
|
48
|
+
<div class=""tw:relative"">
|
|
49
|
+
<div class=""tw:absolute tw:inset-0 tw:flex tw:h-full tw:items-center tw:text-sm tw:pl-2 tw:pointer-events-none"">
|
|
50
|
+
{{ formatter.custom(toDate(date), { month: 'short' }) }}
|
|
51
|
+
</div>
|
|
52
|
+
<NativeSelect
|
|
53
|
+
class=""tw:text-xs tw:h-8 tw:pr-6 tw:pl-2 tw:text-transparent tw:relative""
|
|
54
|
+
@change="(e: Event) => {
|
|
55
|
+
placeholder = placeholder.set({
|
|
56
|
+
month: Number((e?.target as any)?.value),
|
|
57
|
+
})
|
|
58
|
+
}"
|
|
59
|
+
>
|
|
60
|
+
<NativeSelectOption v-for="(month) in createYear({ dateObj: date })" :key="month.toString()" :value="month.month" :selected="date.month === month.month">
|
|
61
|
+
{{ formatter.custom(toDate(month), { month: 'short' }) }}
|
|
62
|
+
</NativeSelectOption>
|
|
63
|
+
</NativeSelect>
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
</DefineMonthTemplate>
|
|
67
|
+
|
|
68
|
+
<DefineYearTemplate v-slot="{ date }">
|
|
69
|
+
<div class=""tw:**:data-[slot=native-select-icon]:right-1"">
|
|
70
|
+
<div class=""tw:relative"">
|
|
71
|
+
<div class=""tw:absolute tw:inset-0 tw:flex tw:h-full tw:items-center tw:text-sm tw:pl-2 tw:pointer-events-none"">
|
|
72
|
+
{{ formatter.custom(toDate(date), { year: 'numeric' }) }}
|
|
73
|
+
</div>
|
|
74
|
+
<NativeSelect
|
|
75
|
+
class=""tw:text-xs tw:h-8 tw:pr-6 tw:pl-2 tw:text-transparent tw:relative""
|
|
76
|
+
@change="(e: Event) => {
|
|
77
|
+
placeholder = placeholder.set({
|
|
78
|
+
year: Number((e?.target as any)?.value),
|
|
79
|
+
})
|
|
80
|
+
}"
|
|
81
|
+
>
|
|
82
|
+
<NativeSelectOption v-for="(year) in yearRange" :key="year.toString()" :value="year.year" :selected="date.year === year.year">
|
|
83
|
+
{{ formatter.custom(toDate(year), { year: 'numeric' }) }}
|
|
84
|
+
</NativeSelectOption>
|
|
85
|
+
</NativeSelect>
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
88
|
+
</DefineYearTemplate>
|
|
89
|
+
|
|
90
|
+
<CalendarRoot
|
|
91
|
+
v-slot="{ grid, weekDays, date }"
|
|
92
|
+
v-bind="forwarded"
|
|
93
|
+
v-model:placeholder="placeholder"
|
|
94
|
+
data-slot="calendar"
|
|
95
|
+
:class="cn('tw:p-3', props.class)"
|
|
96
|
+
>
|
|
97
|
+
<CalendarHeader class=""tw:pt-0"">
|
|
98
|
+
<nav class=""tw:flex tw:items-center tw:gap-1 tw:absolute tw:top-0 tw:inset-x-0 tw:justify-between"">
|
|
99
|
+
<CalendarPrevButton>
|
|
100
|
+
<slot name="calendar-prev-icon" />
|
|
101
|
+
</CalendarPrevButton>
|
|
102
|
+
<CalendarNextButton>
|
|
103
|
+
<slot name="calendar-next-icon" />
|
|
104
|
+
</CalendarNextButton>
|
|
105
|
+
</nav>
|
|
106
|
+
|
|
107
|
+
<slot name="calendar-heading" :date="date" :month="ReuseMonthTemplate" :year="ReuseYearTemplate">
|
|
108
|
+
<template v-if="layout === 'month-and-year'">
|
|
109
|
+
<div class=""tw:flex tw:items-center tw:justify-center tw:gap-1"">
|
|
110
|
+
<ReuseMonthTemplate :date="date" />
|
|
111
|
+
<ReuseYearTemplate :date="date" />
|
|
112
|
+
</div>
|
|
113
|
+
</template>
|
|
114
|
+
<template v-else-if="layout === 'month-only'">
|
|
115
|
+
<div class=""tw:flex tw:items-center tw:justify-center tw:gap-1"">
|
|
116
|
+
<ReuseMonthTemplate :date="date" />
|
|
117
|
+
{{ formatter.custom(toDate(date), { year: 'numeric' }) }}
|
|
118
|
+
</div>
|
|
119
|
+
</template>
|
|
120
|
+
<template v-else-if="layout === 'year-only'">
|
|
121
|
+
<div class=""tw:flex tw:items-center tw:justify-center tw:gap-1"">
|
|
122
|
+
{{ formatter.custom(toDate(date), { month: 'short' }) }}
|
|
123
|
+
<ReuseYearTemplate :date="date" />
|
|
124
|
+
</div>
|
|
125
|
+
</template>
|
|
126
|
+
<template v-else>
|
|
127
|
+
<CalendarHeading />
|
|
128
|
+
</template>
|
|
129
|
+
</slot>
|
|
130
|
+
</CalendarHeader>
|
|
131
|
+
|
|
132
|
+
<div class=""tw:flex tw:flex-col tw:gap-y-4 tw:mt-4 tw:sm:flex-row tw:sm:gap-x-4 tw:sm:gap-y-0"">
|
|
133
|
+
<CalendarGrid v-for="month in grid" :key="month.value.toString()">
|
|
134
|
+
<CalendarGridHead>
|
|
135
|
+
<CalendarGridRow>
|
|
136
|
+
<CalendarHeadCell
|
|
137
|
+
v-for="day in weekDays" :key="day"
|
|
138
|
+
>
|
|
139
|
+
{{ day }}
|
|
140
|
+
</CalendarHeadCell>
|
|
141
|
+
</CalendarGridRow>
|
|
142
|
+
</CalendarGridHead>
|
|
143
|
+
<CalendarGridBody>
|
|
144
|
+
<CalendarGridRow v-for="(weekDates, index) in month.rows" :key="`weekDate-${index}`" class=""tw:mt-2 tw:w-full"">
|
|
145
|
+
<CalendarCell
|
|
146
|
+
v-for="weekDate in weekDates"
|
|
147
|
+
:key="weekDate.toString()"
|
|
148
|
+
:date="weekDate"
|
|
149
|
+
>
|
|
150
|
+
<CalendarCellTrigger
|
|
151
|
+
:day="weekDate"
|
|
152
|
+
:month="month.value"
|
|
153
|
+
/>
|
|
154
|
+
</CalendarCell>
|
|
155
|
+
</CalendarGridRow>
|
|
156
|
+
</CalendarGridBody>
|
|
157
|
+
</CalendarGrid>
|
|
158
|
+
</div>
|
|
159
|
+
</CalendarRoot>
|
|
160
|
+
</template>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import type { CalendarCellProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
+
import { CalendarCell, useForwardProps } from "reka-ui"
|
|
6
|
+
import { cn } from "@/lib/utils"
|
|
7
|
+
|
|
8
|
+
const props = defineProps<CalendarCellProps & { class?: HTMLAttributes["class"] }>()
|
|
9
|
+
|
|
10
|
+
const delegatedProps = reactiveOmit(props, "class")
|
|
11
|
+
|
|
12
|
+
const forwardedProps = useForwardProps(delegatedProps)
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<template>
|
|
16
|
+
<CalendarCell
|
|
17
|
+
data-slot="calendar-cell"
|
|
18
|
+
:class="cn('tw:relative tw:p-0 tw:text-center tw:text-sm tw:focus-within:relative tw:focus-within:z-20 tw:flex-1 tw:[&:has([data-selected])]:rounded-md tw:[&:has([data-selected])]:bg-accent', props.class)"
|
|
19
|
+
v-bind="forwardedProps"
|
|
20
|
+
>
|
|
21
|
+
<slot />
|
|
22
|
+
</CalendarCell>
|
|
23
|
+
</template>
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import type { CalendarCellTriggerProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
+
import { CalendarCellTrigger, useForwardProps } from "reka-ui"
|
|
6
|
+
import { cn } from "@/lib/utils"
|
|
7
|
+
import { buttonVariants } from '@/components/ui/button'
|
|
8
|
+
|
|
9
|
+
const props = withDefaults(defineProps<CalendarCellTriggerProps & { class?: HTMLAttributes["class"] }>(), {
|
|
10
|
+
as: "button",
|
|
11
|
+
})
|
|
12
|
+
|
|
13
|
+
const delegatedProps = reactiveOmit(props, "class")
|
|
14
|
+
|
|
15
|
+
const forwardedProps = useForwardProps(delegatedProps)
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<template>
|
|
19
|
+
<CalendarCellTrigger
|
|
20
|
+
data-slot="calendar-cell-trigger"
|
|
21
|
+
:class="cn(
|
|
22
|
+
buttonVariants({ variant: 'ghost' }),
|
|
23
|
+
'tw:size-8 tw:p-0 tw:font-normal tw:aria-selected:opacity-100 tw:cursor-default',
|
|
24
|
+
'tw:[&[data-today]:not([data-selected])]:bg-accent tw:[&[data-today]:not([data-selected])]:text-accent-foreground',
|
|
25
|
+
// Selected
|
|
26
|
+
'tw:data-[selected]:bg-primary tw:data-[selected]:text-primary-foreground tw:data-[selected]:opacity-100 tw:data-[selected]:hover:bg-primary tw:data-[selected]:hover:text-primary-foreground tw:data-[selected]:focus:bg-primary tw:data-[selected]:focus:text-primary-foreground',
|
|
27
|
+
// Disabled
|
|
28
|
+
'tw:data-[disabled]:text-muted-foreground tw:data-[disabled]:opacity-50',
|
|
29
|
+
// Unavailable
|
|
30
|
+
'tw:data-[unavailable]:text-destructive-foreground tw:data-[unavailable]:line-through',
|
|
31
|
+
// Outside months
|
|
32
|
+
'tw:data-[outside-view]:text-muted-foreground',
|
|
33
|
+
props.class,
|
|
34
|
+
)"
|
|
35
|
+
v-bind="forwardedProps"
|
|
36
|
+
>
|
|
37
|
+
<slot />
|
|
38
|
+
</CalendarCellTrigger>
|
|
39
|
+
</template>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import type { CalendarGridProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
+
import { CalendarGrid, useForwardProps } from "reka-ui"
|
|
6
|
+
import { cn } from "@/lib/utils"
|
|
7
|
+
|
|
8
|
+
const props = defineProps<CalendarGridProps & { class?: HTMLAttributes["class"] }>()
|
|
9
|
+
|
|
10
|
+
const delegatedProps = reactiveOmit(props, "class")
|
|
11
|
+
|
|
12
|
+
const forwardedProps = useForwardProps(delegatedProps)
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<template>
|
|
16
|
+
<CalendarGrid
|
|
17
|
+
data-slot="calendar-grid"
|
|
18
|
+
:class="cn('tw:w-full tw:border-collapse tw:space-x-1', props.class)"
|
|
19
|
+
v-bind="forwardedProps"
|
|
20
|
+
>
|
|
21
|
+
<slot />
|
|
22
|
+
</CalendarGrid>
|
|
23
|
+
</template>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import type { CalendarGridBodyProps } from "reka-ui"
|
|
3
|
+
import { CalendarGridBody } from "reka-ui"
|
|
4
|
+
|
|
5
|
+
const props = defineProps<CalendarGridBodyProps>()
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<template>
|
|
9
|
+
<CalendarGridBody
|
|
10
|
+
data-slot="calendar-grid-body"
|
|
11
|
+
v-bind="props"
|
|
12
|
+
>
|
|
13
|
+
<slot />
|
|
14
|
+
</CalendarGridBody>
|
|
15
|
+
</template>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import type { CalendarGridHeadProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import { CalendarGridHead } from "reka-ui"
|
|
5
|
+
|
|
6
|
+
const props = defineProps<CalendarGridHeadProps & { class?: HTMLAttributes["class"] }>()
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<template>
|
|
10
|
+
<CalendarGridHead
|
|
11
|
+
data-slot="calendar-grid-head"
|
|
12
|
+
v-bind="props"
|
|
13
|
+
>
|
|
14
|
+
<slot />
|
|
15
|
+
</CalendarGridHead>
|
|
16
|
+
</template>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import type { CalendarGridRowProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
+
import { CalendarGridRow, useForwardProps } from "reka-ui"
|
|
6
|
+
import { cn } from "@/lib/utils"
|
|
7
|
+
|
|
8
|
+
const props = defineProps<CalendarGridRowProps & { class?: HTMLAttributes["class"] }>()
|
|
9
|
+
|
|
10
|
+
const delegatedProps = reactiveOmit(props, "class")
|
|
11
|
+
|
|
12
|
+
const forwardedProps = useForwardProps(delegatedProps)
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<template>
|
|
16
|
+
<CalendarGridRow
|
|
17
|
+
data-slot="calendar-grid-row"
|
|
18
|
+
:class="cn('tw:flex', props.class)" v-bind="forwardedProps"
|
|
19
|
+
>
|
|
20
|
+
<slot />
|
|
21
|
+
</CalendarGridRow>
|
|
22
|
+
</template>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import type { CalendarHeadCellProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
+
import { CalendarHeadCell, useForwardProps } from "reka-ui"
|
|
6
|
+
import { cn } from "@/lib/utils"
|
|
7
|
+
|
|
8
|
+
const props = defineProps<CalendarHeadCellProps & { class?: HTMLAttributes["class"] }>()
|
|
9
|
+
|
|
10
|
+
const delegatedProps = reactiveOmit(props, "class")
|
|
11
|
+
|
|
12
|
+
const forwardedProps = useForwardProps(delegatedProps)
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<template>
|
|
16
|
+
<CalendarHeadCell
|
|
17
|
+
data-slot="calendar-head-cell"
|
|
18
|
+
:class="cn('tw:text-muted-foreground tw:rounded-md tw:flex-1 tw:font-normal tw:text-[0.8rem]', props.class)"
|
|
19
|
+
v-bind="forwardedProps"
|
|
20
|
+
>
|
|
21
|
+
<slot />
|
|
22
|
+
</CalendarHeadCell>
|
|
23
|
+
</template>
|