@empathyds/vue 0.0.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/CHANGELOG.md +18 -0
- package/LICENSE +21 -0
- package/README.md +83 -0
- package/dist/blocks/index.d.ts +1 -0
- package/dist/blocks/login-form/LoginForm.vue.d.ts +2 -0
- package/dist/blocks/login-form/index.d.ts +1 -0
- package/dist/components/index.d.ts +60 -0
- package/dist/components/ui/accordion/Accordion.vue.d.ts +25 -0
- package/dist/components/ui/accordion/AccordionContent.vue.d.ts +22 -0
- package/dist/components/ui/accordion/AccordionItem.vue.d.ts +22 -0
- package/dist/components/ui/accordion/AccordionTrigger.vue.d.ts +23 -0
- package/dist/components/ui/accordion/index.d.ts +4 -0
- package/dist/components/ui/alert/Alert.vue.d.ts +23 -0
- package/dist/components/ui/alert/AlertDescription.vue.d.ts +21 -0
- package/dist/components/ui/alert/AlertTitle.vue.d.ts +21 -0
- package/dist/components/ui/alert/index.d.ts +8 -0
- package/dist/components/ui/alert-dialog/AlertDialog.vue.d.ts +25 -0
- package/dist/components/ui/alert-dialog/AlertDialogAction.vue.d.ts +22 -0
- package/dist/components/ui/alert-dialog/AlertDialogCancel.vue.d.ts +22 -0
- package/dist/components/ui/alert-dialog/AlertDialogContent.vue.d.ts +36 -0
- package/dist/components/ui/alert-dialog/AlertDialogDescription.vue.d.ts +22 -0
- package/dist/components/ui/alert-dialog/AlertDialogFooter.vue.d.ts +21 -0
- package/dist/components/ui/alert-dialog/AlertDialogHeader.vue.d.ts +21 -0
- package/dist/components/ui/alert-dialog/AlertDialogTitle.vue.d.ts +22 -0
- package/dist/components/ui/alert-dialog/AlertDialogTrigger.vue.d.ts +18 -0
- package/dist/components/ui/alert-dialog/index.d.ts +9 -0
- package/dist/components/ui/aspect-ratio/AspectRatio.vue.d.ts +18 -0
- package/dist/components/ui/aspect-ratio/index.d.ts +1 -0
- package/dist/components/ui/avatar/Avatar.vue.d.ts +21 -0
- package/dist/components/ui/avatar/AvatarFallback.vue.d.ts +22 -0
- package/dist/components/ui/avatar/AvatarImage.vue.d.ts +18 -0
- package/dist/components/ui/avatar/index.d.ts +3 -0
- package/dist/components/ui/badge/Badge.vue.d.ts +24 -0
- package/dist/components/ui/badge/index.d.ts +6 -0
- package/dist/components/ui/breadcrumb/Breadcrumb.vue.d.ts +21 -0
- package/dist/components/ui/breadcrumb/BreadcrumbEllipsis.vue.d.ts +21 -0
- package/dist/components/ui/breadcrumb/BreadcrumbItem.vue.d.ts +21 -0
- package/dist/components/ui/breadcrumb/BreadcrumbLink.vue.d.ts +24 -0
- package/dist/components/ui/breadcrumb/BreadcrumbList.vue.d.ts +21 -0
- package/dist/components/ui/breadcrumb/BreadcrumbPage.vue.d.ts +21 -0
- package/dist/components/ui/breadcrumb/BreadcrumbSeparator.vue.d.ts +21 -0
- package/dist/components/ui/breadcrumb/index.d.ts +7 -0
- package/dist/components/ui/button/Button.vue.d.ts +27 -0
- package/dist/components/ui/button/index.d.ts +7 -0
- package/dist/components/ui/button-group/ButtonGroup.vue.d.ts +23 -0
- package/dist/components/ui/button-group/ButtonGroupSeparator.vue.d.ts +9 -0
- package/dist/components/ui/button-group/ButtonGroupText.vue.d.ts +26 -0
- package/dist/components/ui/button-group/index.d.ts +8 -0
- package/dist/components/ui/calendar/Calendar.vue.d.ts +44 -0
- package/dist/components/ui/calendar/CalendarCell.vue.d.ts +22 -0
- package/dist/components/ui/calendar/CalendarCellTrigger.vue.d.ts +24 -0
- package/dist/components/ui/calendar/CalendarGrid.vue.d.ts +22 -0
- package/dist/components/ui/calendar/CalendarGridBody.vue.d.ts +18 -0
- package/dist/components/ui/calendar/CalendarGridHead.vue.d.ts +22 -0
- package/dist/components/ui/calendar/CalendarGridRow.vue.d.ts +22 -0
- package/dist/components/ui/calendar/CalendarHeadCell.vue.d.ts +22 -0
- package/dist/components/ui/calendar/CalendarHeader.vue.d.ts +22 -0
- package/dist/components/ui/calendar/CalendarHeading.vue.d.ts +28 -0
- package/dist/components/ui/calendar/CalendarNextButton.vue.d.ts +22 -0
- package/dist/components/ui/calendar/CalendarPrevButton.vue.d.ts +22 -0
- package/dist/components/ui/calendar/index.d.ts +13 -0
- package/dist/components/ui/card/Card.vue.d.ts +21 -0
- package/dist/components/ui/card/CardAction.vue.d.ts +21 -0
- package/dist/components/ui/card/CardContent.vue.d.ts +21 -0
- package/dist/components/ui/card/CardDescription.vue.d.ts +21 -0
- package/dist/components/ui/card/CardFooter.vue.d.ts +21 -0
- package/dist/components/ui/card/CardHeader.vue.d.ts +21 -0
- package/dist/components/ui/card/CardTitle.vue.d.ts +21 -0
- package/dist/components/ui/card/index.d.ts +7 -0
- package/dist/components/ui/carousel/CarouselContent.vue.d.ts +22 -0
- package/dist/components/ui/carousel/CarouselItem.vue.d.ts +18 -0
- package/dist/components/ui/carousel/CarouselNext.vue.d.ts +26 -0
- package/dist/components/ui/carousel/CarouselPrevious.vue.d.ts +26 -0
- package/dist/components/ui/carousel/index.d.ts +7 -0
- package/dist/components/ui/carousel/interface.d.ts +19 -0
- package/dist/components/ui/chart/ChartContainer.vue.d.ts +29 -0
- package/dist/components/ui/chart/ChartLegendContent.vue.d.ts +11 -0
- package/dist/components/ui/chart/ChartStyle.vue.d.ts +6 -0
- package/dist/components/ui/chart/ChartTooltipContent.vue.d.ts +36 -0
- package/dist/components/ui/chart/index.d.ts +27 -0
- package/dist/components/ui/chart/utils.d.ts +11 -0
- package/dist/components/ui/checkbox/Checkbox.vue.d.ts +29 -0
- package/dist/components/ui/checkbox/index.d.ts +1 -0
- package/dist/components/ui/collapsible/Collapsible.vue.d.ts +24 -0
- package/dist/components/ui/collapsible/CollapsibleContent.vue.d.ts +18 -0
- package/dist/components/ui/collapsible/CollapsibleTrigger.vue.d.ts +18 -0
- package/dist/components/ui/collapsible/index.d.ts +3 -0
- package/dist/components/ui/combobox/Combobox.vue.d.ts +36 -0
- package/dist/components/ui/combobox/ComboboxAnchor.vue.d.ts +22 -0
- package/dist/components/ui/combobox/ComboboxEmpty.vue.d.ts +22 -0
- package/dist/components/ui/combobox/ComboboxGroup.vue.d.ts +23 -0
- package/dist/components/ui/combobox/ComboboxInput.vue.d.ts +26 -0
- package/dist/components/ui/combobox/ComboboxItem.vue.d.ts +26 -0
- package/dist/components/ui/combobox/ComboboxItemIndicator.vue.d.ts +22 -0
- package/dist/components/ui/combobox/ComboboxList.vue.d.ts +36 -0
- package/dist/components/ui/combobox/ComboboxSeparator.vue.d.ts +22 -0
- package/dist/components/ui/combobox/ComboboxViewport.vue.d.ts +22 -0
- package/dist/components/ui/combobox/index.d.ts +11 -0
- package/dist/components/ui/command/Command.vue.d.ts +40 -0
- package/dist/components/ui/command/CommandDialog.vue.d.ts +32 -0
- package/dist/components/ui/command/CommandEmpty.vue.d.ts +22 -0
- package/dist/components/ui/command/CommandGroup.vue.d.ts +23 -0
- package/dist/components/ui/command/CommandInput.vue.d.ts +7 -0
- package/dist/components/ui/command/CommandItem.vue.d.ts +30 -0
- package/dist/components/ui/command/CommandList.vue.d.ts +22 -0
- package/dist/components/ui/command/CommandSeparator.vue.d.ts +22 -0
- package/dist/components/ui/command/CommandShortcut.vue.d.ts +21 -0
- package/dist/components/ui/command/index.d.ts +90 -0
- package/dist/components/ui/context-menu/ContextMenu.vue.d.ts +22 -0
- package/dist/components/ui/context-menu/ContextMenuCheckboxItem.vue.d.ts +29 -0
- package/dist/components/ui/context-menu/ContextMenuContent.vue.d.ts +34 -0
- package/dist/components/ui/context-menu/ContextMenuGroup.vue.d.ts +18 -0
- package/dist/components/ui/context-menu/ContextMenuItem.vue.d.ts +30 -0
- package/dist/components/ui/context-menu/ContextMenuLabel.vue.d.ts +23 -0
- package/dist/components/ui/context-menu/ContextMenuRadioGroup.vue.d.ts +22 -0
- package/dist/components/ui/context-menu/ContextMenuRadioItem.vue.d.ts +27 -0
- package/dist/components/ui/context-menu/ContextMenuSeparator.vue.d.ts +7 -0
- package/dist/components/ui/context-menu/ContextMenuShortcut.vue.d.ts +21 -0
- package/dist/components/ui/context-menu/ContextMenuSub.vue.d.ts +22 -0
- package/dist/components/ui/context-menu/ContextMenuSubContent.vue.d.ts +38 -0
- package/dist/components/ui/context-menu/ContextMenuSubTrigger.vue.d.ts +23 -0
- package/dist/components/ui/context-menu/ContextMenuTrigger.vue.d.ts +18 -0
- package/dist/components/ui/context-menu/index.d.ts +14 -0
- package/dist/components/ui/dialog/Dialog.vue.d.ts +25 -0
- package/dist/components/ui/dialog/DialogClose.vue.d.ts +18 -0
- package/dist/components/ui/dialog/DialogContent.vue.d.ts +39 -0
- package/dist/components/ui/dialog/DialogDescription.vue.d.ts +22 -0
- package/dist/components/ui/dialog/DialogFooter.vue.d.ts +21 -0
- package/dist/components/ui/dialog/DialogHeader.vue.d.ts +21 -0
- package/dist/components/ui/dialog/DialogOverlay.vue.d.ts +22 -0
- package/dist/components/ui/dialog/DialogScrollContent.vue.d.ts +36 -0
- package/dist/components/ui/dialog/DialogTitle.vue.d.ts +22 -0
- package/dist/components/ui/dialog/DialogTrigger.vue.d.ts +18 -0
- package/dist/components/ui/dialog/index.d.ts +10 -0
- package/dist/components/ui/drawer/Drawer.vue.d.ts +36 -0
- package/dist/components/ui/drawer/DrawerClose.vue.d.ts +18 -0
- package/dist/components/ui/drawer/DrawerContent.vue.d.ts +36 -0
- package/dist/components/ui/drawer/DrawerDescription.vue.d.ts +22 -0
- package/dist/components/ui/drawer/DrawerFooter.vue.d.ts +21 -0
- package/dist/components/ui/drawer/DrawerHeader.vue.d.ts +21 -0
- package/dist/components/ui/drawer/DrawerOverlay.vue.d.ts +7 -0
- package/dist/components/ui/drawer/DrawerTitle.vue.d.ts +22 -0
- package/dist/components/ui/drawer/DrawerTrigger.vue.d.ts +18 -0
- package/dist/components/ui/drawer/index.d.ts +9 -0
- package/dist/components/ui/dropdown-menu/DropdownMenu.vue.d.ts +24 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +29 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +36 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts +18 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +26 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +23 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +22 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +27 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts +7 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts +21 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuSub.vue.d.ts +22 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +38 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +23 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +18 -0
- package/dist/components/ui/dropdown-menu/index.d.ts +15 -0
- package/dist/components/ui/empty/Empty.vue.d.ts +21 -0
- package/dist/components/ui/empty/EmptyContent.vue.d.ts +21 -0
- package/dist/components/ui/empty/EmptyDescription.vue.d.ts +21 -0
- package/dist/components/ui/empty/EmptyHeader.vue.d.ts +21 -0
- package/dist/components/ui/empty/EmptyMedia.vue.d.ts +23 -0
- package/dist/components/ui/empty/EmptyTitle.vue.d.ts +21 -0
- package/dist/components/ui/empty/index.d.ts +11 -0
- package/dist/components/ui/field/Field.vue.d.ts +23 -0
- package/dist/components/ui/field/FieldContent.vue.d.ts +21 -0
- package/dist/components/ui/field/FieldDescription.vue.d.ts +21 -0
- package/dist/components/ui/field/FieldError.vue.d.ts +24 -0
- package/dist/components/ui/field/FieldGroup.vue.d.ts +21 -0
- package/dist/components/ui/field/FieldLabel.vue.d.ts +21 -0
- package/dist/components/ui/field/FieldLegend.vue.d.ts +22 -0
- package/dist/components/ui/field/FieldSeparator.vue.d.ts +21 -0
- package/dist/components/ui/field/FieldSet.vue.d.ts +21 -0
- package/dist/components/ui/field/FieldTitle.vue.d.ts +21 -0
- package/dist/components/ui/field/index.d.ts +15 -0
- package/dist/components/ui/form/FormControl.vue.d.ts +17 -0
- package/dist/components/ui/form/FormDescription.vue.d.ts +21 -0
- package/dist/components/ui/form/FormItem.vue.d.ts +21 -0
- package/dist/components/ui/form/FormLabel.vue.d.ts +22 -0
- package/dist/components/ui/form/FormMessage.vue.d.ts +6 -0
- package/dist/components/ui/form/index.d.ts +7 -0
- package/dist/components/ui/form/injectionKeys.d.ts +2 -0
- package/dist/components/ui/form/useFormField.d.ts +11 -0
- package/dist/components/ui/hover-card/HoverCard.vue.d.ts +24 -0
- package/dist/components/ui/hover-card/HoverCardContent.vue.d.ts +24 -0
- package/dist/components/ui/hover-card/HoverCardTrigger.vue.d.ts +18 -0
- package/dist/components/ui/hover-card/index.d.ts +3 -0
- package/dist/components/ui/input/Input.vue.d.ts +12 -0
- package/dist/components/ui/input/index.d.ts +1 -0
- package/dist/components/ui/input-group/InputGroup.vue.d.ts +21 -0
- package/dist/components/ui/input-group/InputGroupAddon.vue.d.ts +25 -0
- package/dist/components/ui/input-group/InputGroupButton.vue.d.ts +21 -0
- package/dist/components/ui/input-group/InputGroupInput.vue.d.ts +6 -0
- package/dist/components/ui/input-group/InputGroupText.vue.d.ts +21 -0
- package/dist/components/ui/input-group/InputGroupTextarea.vue.d.ts +6 -0
- package/dist/components/ui/input-group/index.d.ts +22 -0
- package/dist/components/ui/input-otp/InputOTP.vue.d.ts +46 -0
- package/dist/components/ui/input-otp/InputOTPGroup.vue.d.ts +21 -0
- package/dist/components/ui/input-otp/InputOTPSeparator.vue.d.ts +21 -0
- package/dist/components/ui/input-otp/InputOTPSlot.vue.d.ts +7 -0
- package/dist/components/ui/input-otp/index.d.ts +4 -0
- package/dist/components/ui/item/Item.vue.d.ts +27 -0
- package/dist/components/ui/item/ItemActions.vue.d.ts +21 -0
- package/dist/components/ui/item/ItemContent.vue.d.ts +21 -0
- package/dist/components/ui/item/ItemDescription.vue.d.ts +21 -0
- package/dist/components/ui/item/ItemFooter.vue.d.ts +21 -0
- package/dist/components/ui/item/ItemGroup.vue.d.ts +21 -0
- package/dist/components/ui/item/ItemHeader.vue.d.ts +21 -0
- package/dist/components/ui/item/ItemMedia.vue.d.ts +23 -0
- package/dist/components/ui/item/ItemSeparator.vue.d.ts +7 -0
- package/dist/components/ui/item/ItemTitle.vue.d.ts +21 -0
- package/dist/components/ui/item/index.d.ts +20 -0
- package/dist/components/ui/kbd/Kbd.vue.d.ts +21 -0
- package/dist/components/ui/kbd/KbdGroup.vue.d.ts +21 -0
- package/dist/components/ui/kbd/index.d.ts +2 -0
- package/dist/components/ui/label/Label.vue.d.ts +22 -0
- package/dist/components/ui/label/index.d.ts +1 -0
- package/dist/components/ui/menubar/Menubar.vue.d.ts +28 -0
- package/dist/components/ui/menubar/MenubarCheckboxItem.vue.d.ts +29 -0
- package/dist/components/ui/menubar/MenubarContent.vue.d.ts +26 -0
- package/dist/components/ui/menubar/MenubarGroup.vue.d.ts +18 -0
- package/dist/components/ui/menubar/MenubarItem.vue.d.ts +28 -0
- package/dist/components/ui/menubar/MenubarLabel.vue.d.ts +23 -0
- package/dist/components/ui/menubar/MenubarMenu.vue.d.ts +18 -0
- package/dist/components/ui/menubar/MenubarRadioGroup.vue.d.ts +22 -0
- package/dist/components/ui/menubar/MenubarRadioItem.vue.d.ts +27 -0
- package/dist/components/ui/menubar/MenubarSeparator.vue.d.ts +7 -0
- package/dist/components/ui/menubar/MenubarShortcut.vue.d.ts +21 -0
- package/dist/components/ui/menubar/MenubarSub.vue.d.ts +25 -0
- package/dist/components/ui/menubar/MenubarSubContent.vue.d.ts +38 -0
- package/dist/components/ui/menubar/MenubarSubTrigger.vue.d.ts +23 -0
- package/dist/components/ui/menubar/MenubarTrigger.vue.d.ts +22 -0
- package/dist/components/ui/menubar/index.d.ts +15 -0
- package/dist/components/ui/native-select/NativeSelect.vue.d.ts +27 -0
- package/dist/components/ui/native-select/NativeSelectOptGroup.vue.d.ts +405 -0
- package/dist/components/ui/native-select/NativeSelectOption.vue.d.ts +409 -0
- package/dist/components/ui/native-select/index.d.ts +3 -0
- package/dist/components/ui/navigation-menu/NavigationMenu.vue.d.ts +31 -0
- package/dist/components/ui/navigation-menu/NavigationMenuContent.vue.d.ts +32 -0
- package/dist/components/ui/navigation-menu/NavigationMenuIndicator.vue.d.ts +7 -0
- package/dist/components/ui/navigation-menu/NavigationMenuItem.vue.d.ts +22 -0
- package/dist/components/ui/navigation-menu/NavigationMenuLink.vue.d.ts +30 -0
- package/dist/components/ui/navigation-menu/NavigationMenuList.vue.d.ts +22 -0
- package/dist/components/ui/navigation-menu/NavigationMenuTrigger.vue.d.ts +22 -0
- package/dist/components/ui/navigation-menu/NavigationMenuViewport.vue.d.ts +7 -0
- package/dist/components/ui/navigation-menu/index.d.ts +9 -0
- package/dist/components/ui/number-field/NumberField.vue.d.ts +29 -0
- package/dist/components/ui/number-field/NumberFieldContent.vue.d.ts +21 -0
- package/dist/components/ui/number-field/NumberFieldDecrement.vue.d.ts +22 -0
- package/dist/components/ui/number-field/NumberFieldIncrement.vue.d.ts +22 -0
- package/dist/components/ui/number-field/NumberFieldInput.vue.d.ts +6 -0
- package/dist/components/ui/number-field/index.d.ts +5 -0
- package/dist/components/ui/pagination/Pagination.vue.d.ts +29 -0
- package/dist/components/ui/pagination/PaginationContent.vue.d.ts +29 -0
- package/dist/components/ui/pagination/PaginationEllipsis.vue.d.ts +22 -0
- package/dist/components/ui/pagination/PaginationFirst.vue.d.ts +26 -0
- package/dist/components/ui/pagination/PaginationItem.vue.d.ts +27 -0
- package/dist/components/ui/pagination/PaginationLast.vue.d.ts +26 -0
- package/dist/components/ui/pagination/PaginationNext.vue.d.ts +26 -0
- package/dist/components/ui/pagination/PaginationPrevious.vue.d.ts +26 -0
- package/dist/components/ui/pagination/index.d.ts +8 -0
- package/dist/components/ui/pin-input/PinInput.vue.d.ts +22 -0
- package/dist/components/ui/pin-input/PinInputGroup.vue.d.ts +22 -0
- package/dist/components/ui/pin-input/PinInputSeparator.vue.d.ts +18 -0
- package/dist/components/ui/pin-input/PinInputSlot.vue.d.ts +7 -0
- package/dist/components/ui/pin-input/index.d.ts +4 -0
- package/dist/components/ui/popover/Popover.vue.d.ts +25 -0
- package/dist/components/ui/popover/PopoverAnchor.vue.d.ts +18 -0
- package/dist/components/ui/popover/PopoverContent.vue.d.ts +39 -0
- package/dist/components/ui/popover/PopoverTrigger.vue.d.ts +18 -0
- package/dist/components/ui/popover/index.d.ts +4 -0
- package/dist/components/ui/progress/Progress.vue.d.ts +9 -0
- package/dist/components/ui/progress/index.d.ts +1 -0
- package/dist/components/ui/radio-group/RadioGroup.vue.d.ts +28 -0
- package/dist/components/ui/radio-group/RadioGroupItem.vue.d.ts +22 -0
- package/dist/components/ui/radio-group/index.d.ts +2 -0
- package/dist/components/ui/range-calendar/RangeCalendar.vue.d.ts +17 -0
- package/dist/components/ui/range-calendar/RangeCalendarCell.vue.d.ts +22 -0
- package/dist/components/ui/range-calendar/RangeCalendarCellTrigger.vue.d.ts +24 -0
- package/dist/components/ui/range-calendar/RangeCalendarGrid.vue.d.ts +22 -0
- package/dist/components/ui/range-calendar/RangeCalendarGridBody.vue.d.ts +18 -0
- package/dist/components/ui/range-calendar/RangeCalendarGridHead.vue.d.ts +18 -0
- package/dist/components/ui/range-calendar/RangeCalendarGridRow.vue.d.ts +22 -0
- package/dist/components/ui/range-calendar/RangeCalendarHeadCell.vue.d.ts +22 -0
- package/dist/components/ui/range-calendar/RangeCalendarHeader.vue.d.ts +22 -0
- package/dist/components/ui/range-calendar/RangeCalendarHeading.vue.d.ts +28 -0
- package/dist/components/ui/range-calendar/RangeCalendarNextButton.vue.d.ts +22 -0
- package/dist/components/ui/range-calendar/RangeCalendarPrevButton.vue.d.ts +22 -0
- package/dist/components/ui/range-calendar/index.d.ts +12 -0
- package/dist/components/ui/resizable/ResizableHandle.vue.d.ts +27 -0
- package/dist/components/ui/resizable/ResizablePanel.vue.d.ts +32 -0
- package/dist/components/ui/resizable/ResizablePanelGroup.vue.d.ts +28 -0
- package/dist/components/ui/resizable/index.d.ts +3 -0
- package/dist/components/ui/scroll-area/ScrollArea.vue.d.ts +22 -0
- package/dist/components/ui/scroll-area/ScrollBar.vue.d.ts +9 -0
- package/dist/components/ui/scroll-area/index.d.ts +2 -0
- package/dist/components/ui/select/Select.vue.d.ts +28 -0
- package/dist/components/ui/select/SelectContent.vue.d.ts +32 -0
- package/dist/components/ui/select/SelectGroup.vue.d.ts +18 -0
- package/dist/components/ui/select/SelectItem.vue.d.ts +23 -0
- package/dist/components/ui/select/SelectItemText.vue.d.ts +18 -0
- package/dist/components/ui/select/SelectLabel.vue.d.ts +22 -0
- package/dist/components/ui/select/SelectScrollDownButton.vue.d.ts +22 -0
- package/dist/components/ui/select/SelectScrollUpButton.vue.d.ts +22 -0
- package/dist/components/ui/select/SelectSeparator.vue.d.ts +7 -0
- package/dist/components/ui/select/SelectTrigger.vue.d.ts +25 -0
- package/dist/components/ui/select/SelectValue.vue.d.ts +18 -0
- package/dist/components/ui/select/index.d.ts +11 -0
- package/dist/components/ui/separator/Separator.vue.d.ts +10 -0
- package/dist/components/ui/separator/index.d.ts +1 -0
- package/dist/components/ui/sheet/Sheet.vue.d.ts +25 -0
- package/dist/components/ui/sheet/SheetClose.vue.d.ts +18 -0
- package/dist/components/ui/sheet/SheetContent.vue.d.ts +39 -0
- package/dist/components/ui/sheet/SheetDescription.vue.d.ts +22 -0
- package/dist/components/ui/sheet/SheetFooter.vue.d.ts +21 -0
- package/dist/components/ui/sheet/SheetHeader.vue.d.ts +21 -0
- package/dist/components/ui/sheet/SheetOverlay.vue.d.ts +22 -0
- package/dist/components/ui/sheet/SheetTitle.vue.d.ts +22 -0
- package/dist/components/ui/sheet/SheetTrigger.vue.d.ts +18 -0
- package/dist/components/ui/sheet/index.d.ts +8 -0
- package/dist/components/ui/sidebar/Sidebar.vue.d.ts +24 -0
- package/dist/components/ui/sidebar/SidebarContent.vue.d.ts +21 -0
- package/dist/components/ui/sidebar/SidebarFooter.vue.d.ts +21 -0
- package/dist/components/ui/sidebar/SidebarGroup.vue.d.ts +21 -0
- package/dist/components/ui/sidebar/SidebarGroupAction.vue.d.ts +22 -0
- package/dist/components/ui/sidebar/SidebarGroupContent.vue.d.ts +21 -0
- package/dist/components/ui/sidebar/SidebarGroupLabel.vue.d.ts +22 -0
- package/dist/components/ui/sidebar/SidebarHeader.vue.d.ts +21 -0
- package/dist/components/ui/sidebar/SidebarInput.vue.d.ts +21 -0
- package/dist/components/ui/sidebar/SidebarInset.vue.d.ts +21 -0
- package/dist/components/ui/sidebar/SidebarMenu.vue.d.ts +21 -0
- package/dist/components/ui/sidebar/SidebarMenuAction.vue.d.ts +25 -0
- package/dist/components/ui/sidebar/SidebarMenuBadge.vue.d.ts +21 -0
- package/dist/components/ui/sidebar/SidebarMenuButton.vue.d.ts +27 -0
- package/dist/components/ui/sidebar/SidebarMenuButtonChild.vue.d.ts +30 -0
- package/dist/components/ui/sidebar/SidebarMenuItem.vue.d.ts +21 -0
- package/dist/components/ui/sidebar/SidebarMenuSkeleton.vue.d.ts +7 -0
- package/dist/components/ui/sidebar/SidebarMenuSub.vue.d.ts +21 -0
- package/dist/components/ui/sidebar/SidebarMenuSubButton.vue.d.ts +27 -0
- package/dist/components/ui/sidebar/SidebarMenuSubItem.vue.d.ts +21 -0
- package/dist/components/ui/sidebar/SidebarProvider.vue.d.ts +30 -0
- package/dist/components/ui/sidebar/SidebarRail.vue.d.ts +21 -0
- package/dist/components/ui/sidebar/SidebarSeparator.vue.d.ts +21 -0
- package/dist/components/ui/sidebar/SidebarTrigger.vue.d.ts +6 -0
- package/dist/components/ui/sidebar/index.d.ts +37 -0
- package/dist/components/ui/sidebar/utils.d.ts +56 -0
- package/dist/components/ui/skeleton/Skeleton.vue.d.ts +6 -0
- package/dist/components/ui/skeleton/index.d.ts +1 -0
- package/dist/components/ui/slider/Slider.vue.d.ts +13 -0
- package/dist/components/ui/slider/index.d.ts +1 -0
- package/dist/components/ui/sonner/Sonner.vue.d.ts +3 -0
- package/dist/components/ui/sonner/index.d.ts +1 -0
- package/dist/components/ui/spinner/Spinner.vue.d.ts +6 -0
- package/dist/components/ui/spinner/index.d.ts +1 -0
- package/dist/components/ui/stepper/Stepper.vue.d.ts +38 -0
- package/dist/components/ui/stepper/StepperDescription.vue.d.ts +22 -0
- package/dist/components/ui/stepper/StepperIndicator.vue.d.ts +22 -0
- package/dist/components/ui/stepper/StepperItem.vue.d.ts +22 -0
- package/dist/components/ui/stepper/StepperSeparator.vue.d.ts +7 -0
- package/dist/components/ui/stepper/StepperTitle.vue.d.ts +22 -0
- package/dist/components/ui/stepper/StepperTrigger.vue.d.ts +22 -0
- package/dist/components/ui/stepper/index.d.ts +7 -0
- package/dist/components/ui/switch/Switch.vue.d.ts +28 -0
- package/dist/components/ui/switch/index.d.ts +1 -0
- package/dist/components/ui/table/Table.vue.d.ts +21 -0
- package/dist/components/ui/table/TableBody.vue.d.ts +21 -0
- package/dist/components/ui/table/TableCaption.vue.d.ts +21 -0
- package/dist/components/ui/table/TableCell.vue.d.ts +21 -0
- package/dist/components/ui/table/TableEmpty.vue.d.ts +24 -0
- package/dist/components/ui/table/TableFooter.vue.d.ts +21 -0
- package/dist/components/ui/table/TableHead.vue.d.ts +21 -0
- package/dist/components/ui/table/TableHeader.vue.d.ts +21 -0
- package/dist/components/ui/table/TableRow.vue.d.ts +21 -0
- package/dist/components/ui/table/index.d.ts +9 -0
- package/dist/components/ui/table/utils.d.ts +3 -0
- package/dist/components/ui/tabs/Tabs.vue.d.ts +28 -0
- package/dist/components/ui/tabs/TabsContent.vue.d.ts +22 -0
- package/dist/components/ui/tabs/TabsList.vue.d.ts +22 -0
- package/dist/components/ui/tabs/TabsTrigger.vue.d.ts +22 -0
- package/dist/components/ui/tabs/index.d.ts +4 -0
- package/dist/components/ui/tags-input/TagsInput.vue.d.ts +34 -0
- package/dist/components/ui/tags-input/TagsInputInput.vue.d.ts +7 -0
- package/dist/components/ui/tags-input/TagsInputItem.vue.d.ts +22 -0
- package/dist/components/ui/tags-input/TagsInputItemDelete.vue.d.ts +22 -0
- package/dist/components/ui/tags-input/TagsInputItemText.vue.d.ts +7 -0
- package/dist/components/ui/tags-input/index.d.ts +5 -0
- package/dist/components/ui/textarea/Textarea.vue.d.ts +12 -0
- package/dist/components/ui/textarea/index.d.ts +1 -0
- package/dist/components/ui/toggle/Toggle.vue.d.ts +33 -0
- package/dist/components/ui/toggle/index.d.ts +7 -0
- package/dist/components/ui/toggle-group/ToggleGroup.vue.d.ts +36 -0
- package/dist/components/ui/toggle-group/ToggleGroupItem.vue.d.ts +29 -0
- package/dist/components/ui/toggle-group/index.d.ts +2 -0
- package/dist/components/ui/tooltip/Tooltip.vue.d.ts +24 -0
- package/dist/components/ui/tooltip/TooltipContent.vue.d.ts +30 -0
- package/dist/components/ui/tooltip/TooltipProvider.vue.d.ts +20 -0
- package/dist/components/ui/tooltip/TooltipTrigger.vue.d.ts +18 -0
- package/dist/components/ui/tooltip/index.d.ts +4 -0
- package/dist/empathy-ds.es.js +44883 -0
- package/dist/index-fvsvtz59.js +3431 -0
- package/dist/index.d.ts +3 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/style.css +1 -0
- package/package.json +91 -0
- package/src/blocks/index.ts +3 -0
- package/src/blocks/login-form/LoginForm.vue +42 -0
- package/src/blocks/login-form/index.ts +1 -0
- package/src/components/index.ts +60 -0
- 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/accordion/index.ts +4 -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/index.ts +24 -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/alert-dialog/index.ts +9 -0
- package/src/components/ui/aspect-ratio/AspectRatio.vue +16 -0
- package/src/components/ui/aspect-ratio/index.ts +1 -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/avatar/index.ts +3 -0
- package/src/components/ui/badge/Badge.vue +26 -0
- package/src/components/ui/badge/index.ts +26 -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/breadcrumb/index.ts +7 -0
- package/src/components/ui/button/Button.vue +29 -0
- package/src/components/ui/button/index.ts +38 -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/button-group/index.ts +25 -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/calendar/index.ts +14 -0
- package/src/components/ui/card/Card.vue +22 -0
- package/src/components/ui/card/CardAction.vue +17 -0
- package/src/components/ui/card/CardContent.vue +17 -0
- package/src/components/ui/card/CardDescription.vue +17 -0
- package/src/components/ui/card/CardFooter.vue +17 -0
- package/src/components/ui/card/CardHeader.vue +17 -0
- package/src/components/ui/card/CardTitle.vue +17 -0
- package/src/components/ui/card/index.ts +7 -0
- 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/carousel/index.ts +10 -0
- package/src/components/ui/carousel/interface.ts +26 -0
- package/src/components/ui/carousel/useCarousel.ts +56 -0
- package/src/components/ui/chart/ChartContainer.vue +59 -0
- package/src/components/ui/chart/ChartLegendContent.vue +60 -0
- package/src/components/ui/chart/ChartStyle.vue +42 -0
- package/src/components/ui/chart/ChartTooltipContent.vue +105 -0
- package/src/components/ui/chart/index.ts +29 -0
- package/src/components/ui/chart/utils.ts +44 -0
- package/src/components/ui/checkbox/Checkbox.vue +35 -0
- package/src/components/ui/checkbox/index.ts +1 -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/collapsible/index.ts +3 -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/combobox/index.ts +12 -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/command/index.ts +25 -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/context-menu/index.ts +14 -0
- package/src/components/ui/dialog/Dialog.vue +19 -0
- package/src/components/ui/dialog/DialogClose.vue +15 -0
- package/src/components/ui/dialog/DialogContent.vue +53 -0
- package/src/components/ui/dialog/DialogDescription.vue +23 -0
- package/src/components/ui/dialog/DialogFooter.vue +15 -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/dialog/index.ts +10 -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/drawer/index.ts +9 -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 +30 -0
- package/src/components/ui/dropdown-menu/DropdownMenuTrigger.vue +17 -0
- package/src/components/ui/dropdown-menu/index.ts +16 -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/empty/index.ts +26 -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/field/index.ts +39 -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/form/index.ts +7 -0
- package/src/components/ui/form/injectionKeys.ts +4 -0
- package/src/components/ui/form/useFormField.ts +30 -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/hover-card/index.ts +3 -0
- package/src/components/ui/input/Input.vue +33 -0
- package/src/components/ui/input/index.ts +1 -0
- package/src/components/ui/input-group/InputGroup.vue +35 -0
- package/src/components/ui/input-group/InputGroupAddon.vue +36 -0
- package/src/components/ui/input-group/InputGroupButton.vue +21 -0
- package/src/components/ui/input-group/InputGroupInput.vue +19 -0
- package/src/components/ui/input-group/InputGroupText.vue +19 -0
- package/src/components/ui/input-group/InputGroupTextarea.vue +19 -0
- package/src/components/ui/input-group/index.ts +59 -0
- 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/input-otp/index.ts +4 -0
- package/src/components/ui/item/Item.vue +27 -0
- package/src/components/ui/item/ItemActions.vue +17 -0
- package/src/components/ui/item/ItemContent.vue +17 -0
- package/src/components/ui/item/ItemDescription.vue +21 -0
- package/src/components/ui/item/ItemFooter.vue +17 -0
- package/src/components/ui/item/ItemGroup.vue +18 -0
- package/src/components/ui/item/ItemHeader.vue +17 -0
- package/src/components/ui/item/ItemMedia.vue +21 -0
- package/src/components/ui/item/ItemSeparator.vue +18 -0
- package/src/components/ui/item/ItemTitle.vue +17 -0
- package/src/components/ui/item/index.ts +54 -0
- package/src/components/ui/kbd/Kbd.vue +21 -0
- package/src/components/ui/kbd/KbdGroup.vue +17 -0
- package/src/components/ui/kbd/index.ts +2 -0
- package/src/components/ui/label/Label.vue +26 -0
- package/src/components/ui/label/index.ts +1 -0
- 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/menubar/index.ts +15 -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/native-select/index.ts +3 -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/navigation-menu/index.ts +14 -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/number-field/index.ts +5 -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/pagination/index.ts +8 -0
- package/src/components/ui/pin-input/PinInput.vue +25 -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/pin-input/index.ts +4 -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/popover/index.ts +4 -0
- package/src/components/ui/progress/Progress.vue +38 -0
- package/src/components/ui/progress/index.ts +1 -0
- package/src/components/ui/radio-group/RadioGroup.vue +25 -0
- package/src/components/ui/radio-group/RadioGroupItem.vue +40 -0
- package/src/components/ui/radio-group/index.ts +2 -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/range-calendar/index.ts +12 -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/resizable/index.ts +3 -0
- package/src/components/ui/scroll-area/ScrollArea.vue +33 -0
- package/src/components/ui/scroll-area/ScrollBar.vue +32 -0
- package/src/components/ui/scroll-area/index.ts +2 -0
- package/src/components/ui/select/Select.vue +19 -0
- package/src/components/ui/select/SelectContent.vue +51 -0
- package/src/components/ui/select/SelectGroup.vue +15 -0
- package/src/components/ui/select/SelectItem.vue +44 -0
- package/src/components/ui/select/SelectItemText.vue +15 -0
- package/src/components/ui/select/SelectLabel.vue +17 -0
- package/src/components/ui/select/SelectScrollDownButton.vue +26 -0
- package/src/components/ui/select/SelectScrollUpButton.vue +26 -0
- package/src/components/ui/select/SelectSeparator.vue +19 -0
- package/src/components/ui/select/SelectTrigger.vue +33 -0
- package/src/components/ui/select/SelectValue.vue +15 -0
- package/src/components/ui/select/index.ts +11 -0
- package/src/components/ui/separator/Separator.vue +29 -0
- package/src/components/ui/separator/index.ts +1 -0
- package/src/components/ui/sheet/Sheet.vue +19 -0
- package/src/components/ui/sheet/SheetClose.vue +15 -0
- package/src/components/ui/sheet/SheetContent.vue +62 -0
- package/src/components/ui/sheet/SheetDescription.vue +21 -0
- package/src/components/ui/sheet/SheetFooter.vue +16 -0
- package/src/components/ui/sheet/SheetHeader.vue +15 -0
- package/src/components/ui/sheet/SheetOverlay.vue +21 -0
- package/src/components/ui/sheet/SheetTitle.vue +21 -0
- package/src/components/ui/sheet/SheetTrigger.vue +15 -0
- package/src/components/ui/sheet/index.ts +8 -0
- package/src/components/ui/sidebar/Sidebar.vue +96 -0
- package/src/components/ui/sidebar/SidebarContent.vue +18 -0
- package/src/components/ui/sidebar/SidebarFooter.vue +18 -0
- package/src/components/ui/sidebar/SidebarGroup.vue +18 -0
- package/src/components/ui/sidebar/SidebarGroupAction.vue +27 -0
- package/src/components/ui/sidebar/SidebarGroupContent.vue +18 -0
- package/src/components/ui/sidebar/SidebarGroupLabel.vue +25 -0
- package/src/components/ui/sidebar/SidebarHeader.vue +18 -0
- package/src/components/ui/sidebar/SidebarInput.vue +22 -0
- package/src/components/ui/sidebar/SidebarInset.vue +21 -0
- package/src/components/ui/sidebar/SidebarMenu.vue +18 -0
- package/src/components/ui/sidebar/SidebarMenuAction.vue +35 -0
- package/src/components/ui/sidebar/SidebarMenuBadge.vue +26 -0
- package/src/components/ui/sidebar/SidebarMenuButton.vue +48 -0
- package/src/components/ui/sidebar/SidebarMenuButtonChild.vue +36 -0
- package/src/components/ui/sidebar/SidebarMenuItem.vue +18 -0
- package/src/components/ui/sidebar/SidebarMenuSkeleton.vue +35 -0
- package/src/components/ui/sidebar/SidebarMenuSub.vue +22 -0
- package/src/components/ui/sidebar/SidebarMenuSubButton.vue +36 -0
- package/src/components/ui/sidebar/SidebarMenuSubItem.vue +18 -0
- package/src/components/ui/sidebar/SidebarProvider.vue +82 -0
- package/src/components/ui/sidebar/SidebarRail.vue +33 -0
- package/src/components/ui/sidebar/SidebarSeparator.vue +19 -0
- package/src/components/ui/sidebar/SidebarTrigger.vue +27 -0
- package/src/components/ui/sidebar/index.ts +60 -0
- package/src/components/ui/sidebar/utils.ts +19 -0
- package/src/components/ui/skeleton/Skeleton.vue +17 -0
- package/src/components/ui/skeleton/index.ts +1 -0
- package/src/components/ui/slider/Slider.vue +43 -0
- package/src/components/ui/slider/index.ts +1 -0
- package/src/components/ui/sonner/Sonner.vue +42 -0
- package/src/components/ui/sonner/index.ts +1 -0
- package/src/components/ui/spinner/Spinner.vue +17 -0
- package/src/components/ui/spinner/index.ts +1 -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/stepper/index.ts +7 -0
- package/src/components/ui/switch/Switch.vue +38 -0
- package/src/components/ui/switch/index.ts +1 -0
- package/src/components/ui/table/Table.vue +16 -0
- package/src/components/ui/table/TableBody.vue +17 -0
- package/src/components/ui/table/TableCaption.vue +17 -0
- package/src/components/ui/table/TableCell.vue +22 -0
- package/src/components/ui/table/TableEmpty.vue +34 -0
- package/src/components/ui/table/TableFooter.vue +17 -0
- package/src/components/ui/table/TableHead.vue +17 -0
- package/src/components/ui/table/TableHeader.vue +17 -0
- package/src/components/ui/table/TableRow.vue +17 -0
- package/src/components/ui/table/index.ts +9 -0
- package/src/components/ui/table/utils.ts +10 -0
- package/src/components/ui/tabs/Tabs.vue +24 -0
- package/src/components/ui/tabs/TabsContent.vue +21 -0
- package/src/components/ui/tabs/TabsList.vue +24 -0
- package/src/components/ui/tabs/TabsTrigger.vue +26 -0
- package/src/components/ui/tabs/index.ts +4 -0
- 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 +17 -0
- package/src/components/ui/tags-input/index.ts +5 -0
- package/src/components/ui/textarea/Textarea.vue +28 -0
- package/src/components/ui/textarea/index.ts +1 -0
- package/src/components/ui/toggle/Toggle.vue +35 -0
- package/src/components/ui/toggle/index.ts +28 -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/toggle-group/index.ts +2 -0
- package/src/components/ui/tooltip/Tooltip.vue +19 -0
- package/src/components/ui/tooltip/TooltipContent.vue +34 -0
- package/src/components/ui/tooltip/TooltipProvider.vue +14 -0
- package/src/components/ui/tooltip/TooltipTrigger.vue +15 -0
- package/src/components/ui/tooltip/index.ts +4 -0
- package/src/index.ts +14 -0
- package/src/lib/utils.ts +7 -0
- package/src/style.css +132 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { CarouselEmits, CarouselProps, WithClassAsProps } from "./interface"
|
|
3
|
+
import { cn } from "@/lib/utils"
|
|
4
|
+
import { useProvideCarousel } from "./useCarousel"
|
|
5
|
+
|
|
6
|
+
const props = withDefaults(defineProps<CarouselProps & WithClassAsProps>(), {
|
|
7
|
+
orientation: "horizontal",
|
|
8
|
+
})
|
|
9
|
+
|
|
10
|
+
const emits = defineEmits<CarouselEmits>()
|
|
11
|
+
|
|
12
|
+
const { canScrollNext, canScrollPrev, carouselApi, carouselRef, orientation, scrollNext, scrollPrev } = useProvideCarousel(props, emits)
|
|
13
|
+
|
|
14
|
+
defineExpose({
|
|
15
|
+
canScrollNext,
|
|
16
|
+
canScrollPrev,
|
|
17
|
+
carouselApi,
|
|
18
|
+
carouselRef,
|
|
19
|
+
orientation,
|
|
20
|
+
scrollNext,
|
|
21
|
+
scrollPrev,
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
function onKeyDown(event: KeyboardEvent) {
|
|
25
|
+
const prevKey = props.orientation === "vertical" ? "ArrowUp" : "ArrowLeft"
|
|
26
|
+
const nextKey = props.orientation === "vertical" ? "ArrowDown" : "ArrowRight"
|
|
27
|
+
|
|
28
|
+
if (event.key === prevKey) {
|
|
29
|
+
event.preventDefault()
|
|
30
|
+
scrollPrev()
|
|
31
|
+
|
|
32
|
+
return
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
if (event.key === nextKey) {
|
|
36
|
+
event.preventDefault()
|
|
37
|
+
scrollNext()
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
</script>
|
|
41
|
+
|
|
42
|
+
<template>
|
|
43
|
+
<div
|
|
44
|
+
data-slot="carousel"
|
|
45
|
+
:class="cn('relative', props.class)"
|
|
46
|
+
role="region"
|
|
47
|
+
aria-roledescription="carousel"
|
|
48
|
+
tabindex="0"
|
|
49
|
+
@keydown="onKeyDown"
|
|
50
|
+
>
|
|
51
|
+
<slot :can-scroll-next :can-scroll-prev :carousel-api :carousel-ref :orientation :scroll-next :scroll-prev />
|
|
52
|
+
</div>
|
|
53
|
+
</template>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { WithClassAsProps } from "./interface"
|
|
3
|
+
import { cn } from "@/lib/utils"
|
|
4
|
+
import { useCarousel } from "./useCarousel"
|
|
5
|
+
|
|
6
|
+
defineOptions({
|
|
7
|
+
inheritAttrs: false,
|
|
8
|
+
})
|
|
9
|
+
|
|
10
|
+
const props = defineProps<WithClassAsProps>()
|
|
11
|
+
|
|
12
|
+
const { carouselRef, orientation } = useCarousel()
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<template>
|
|
16
|
+
<div
|
|
17
|
+
ref="carouselRef"
|
|
18
|
+
data-slot="carousel-content"
|
|
19
|
+
class="overflow-hidden"
|
|
20
|
+
>
|
|
21
|
+
<div
|
|
22
|
+
:class="
|
|
23
|
+
cn(
|
|
24
|
+
'flex',
|
|
25
|
+
orientation === 'horizontal' ? '-ml-4' : '-mt-4 flex-col',
|
|
26
|
+
props.class,
|
|
27
|
+
)"
|
|
28
|
+
v-bind="$attrs"
|
|
29
|
+
>
|
|
30
|
+
<slot />
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</template>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { WithClassAsProps } from "./interface"
|
|
3
|
+
import { cn } from "@/lib/utils"
|
|
4
|
+
import { useCarousel } from "./useCarousel"
|
|
5
|
+
|
|
6
|
+
const props = defineProps<WithClassAsProps>()
|
|
7
|
+
|
|
8
|
+
const { orientation } = useCarousel()
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<template>
|
|
12
|
+
<div
|
|
13
|
+
data-slot="carousel-item"
|
|
14
|
+
role="group"
|
|
15
|
+
aria-roledescription="slide"
|
|
16
|
+
:class="cn(
|
|
17
|
+
'min-w-0 shrink-0 grow-0 basis-full',
|
|
18
|
+
orientation === 'horizontal' ? 'pl-4' : 'pt-4',
|
|
19
|
+
props.class,
|
|
20
|
+
)"
|
|
21
|
+
>
|
|
22
|
+
<slot />
|
|
23
|
+
</div>
|
|
24
|
+
</template>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { WithClassAsProps } from "./interface"
|
|
3
|
+
import type { ButtonVariants } from '@/components/ui/button'
|
|
4
|
+
import { ArrowRight } from "lucide-vue-next"
|
|
5
|
+
import { cn } from "@/lib/utils"
|
|
6
|
+
import { Button } from '@/components/ui/button'
|
|
7
|
+
import { useCarousel } from "./useCarousel"
|
|
8
|
+
|
|
9
|
+
const props = withDefaults(defineProps<{
|
|
10
|
+
variant?: ButtonVariants["variant"]
|
|
11
|
+
size?: ButtonVariants["size"]
|
|
12
|
+
}
|
|
13
|
+
& WithClassAsProps>(), {
|
|
14
|
+
variant: "outline",
|
|
15
|
+
size: "icon",
|
|
16
|
+
})
|
|
17
|
+
|
|
18
|
+
const { orientation, canScrollNext, scrollNext } = useCarousel()
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<template>
|
|
22
|
+
<Button
|
|
23
|
+
data-slot="carousel-next"
|
|
24
|
+
:disabled="!canScrollNext"
|
|
25
|
+
:class="cn(
|
|
26
|
+
'absolute size-8 rounded-full',
|
|
27
|
+
orientation === 'horizontal'
|
|
28
|
+
? 'top-1/2 -right-12 -translate-y-1/2'
|
|
29
|
+
: '-bottom-12 left-1/2 -translate-x-1/2 rotate-90',
|
|
30
|
+
props.class,
|
|
31
|
+
)"
|
|
32
|
+
:variant="variant"
|
|
33
|
+
:size="size"
|
|
34
|
+
@click="scrollNext"
|
|
35
|
+
>
|
|
36
|
+
<slot>
|
|
37
|
+
<ArrowRight />
|
|
38
|
+
<span class="sr-only">Next Slide</span>
|
|
39
|
+
</slot>
|
|
40
|
+
</Button>
|
|
41
|
+
</template>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { WithClassAsProps } from "./interface"
|
|
3
|
+
import type { ButtonVariants } from '@/components/ui/button'
|
|
4
|
+
import { ArrowLeft } from "lucide-vue-next"
|
|
5
|
+
import { cn } from "@/lib/utils"
|
|
6
|
+
import { Button } from '@/components/ui/button'
|
|
7
|
+
import { useCarousel } from "./useCarousel"
|
|
8
|
+
|
|
9
|
+
const props = withDefaults(defineProps<{
|
|
10
|
+
variant?: ButtonVariants["variant"]
|
|
11
|
+
size?: ButtonVariants["size"]
|
|
12
|
+
}
|
|
13
|
+
& WithClassAsProps>(), {
|
|
14
|
+
variant: "outline",
|
|
15
|
+
size: "icon",
|
|
16
|
+
})
|
|
17
|
+
|
|
18
|
+
const { orientation, canScrollPrev, scrollPrev } = useCarousel()
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<template>
|
|
22
|
+
<Button
|
|
23
|
+
data-slot="carousel-previous"
|
|
24
|
+
:disabled="!canScrollPrev"
|
|
25
|
+
:class="cn(
|
|
26
|
+
'absolute size-8 rounded-full',
|
|
27
|
+
orientation === 'horizontal'
|
|
28
|
+
? 'top-1/2 -left-12 -translate-y-1/2'
|
|
29
|
+
: '-top-12 left-1/2 -translate-x-1/2 rotate-90',
|
|
30
|
+
props.class,
|
|
31
|
+
)"
|
|
32
|
+
:variant="variant"
|
|
33
|
+
:size="size"
|
|
34
|
+
@click="scrollPrev"
|
|
35
|
+
>
|
|
36
|
+
<slot>
|
|
37
|
+
<ArrowLeft />
|
|
38
|
+
<span class="sr-only">Previous Slide</span>
|
|
39
|
+
</slot>
|
|
40
|
+
</Button>
|
|
41
|
+
</template>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { default as Carousel } from "./Carousel.vue"
|
|
2
|
+
export { default as CarouselContent } from "./CarouselContent.vue"
|
|
3
|
+
export { default as CarouselItem } from "./CarouselItem.vue"
|
|
4
|
+
export { default as CarouselNext } from "./CarouselNext.vue"
|
|
5
|
+
export { default as CarouselPrevious } from "./CarouselPrevious.vue"
|
|
6
|
+
export type {
|
|
7
|
+
UnwrapRefCarouselApi as CarouselApi,
|
|
8
|
+
} from "./interface"
|
|
9
|
+
|
|
10
|
+
export { useCarousel } from "./useCarousel"
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type useEmblaCarousel from "embla-carousel-vue"
|
|
2
|
+
import type {
|
|
3
|
+
EmblaCarouselVueType,
|
|
4
|
+
} from "embla-carousel-vue"
|
|
5
|
+
import type { HTMLAttributes, UnwrapRef } from "vue"
|
|
6
|
+
|
|
7
|
+
type CarouselApi = EmblaCarouselVueType[1]
|
|
8
|
+
type UseCarouselParameters = Parameters<typeof useEmblaCarousel>
|
|
9
|
+
type CarouselOptions = UseCarouselParameters[0]
|
|
10
|
+
type CarouselPlugin = UseCarouselParameters[1]
|
|
11
|
+
|
|
12
|
+
export type UnwrapRefCarouselApi = UnwrapRef<CarouselApi>
|
|
13
|
+
|
|
14
|
+
export interface CarouselProps {
|
|
15
|
+
opts?: CarouselOptions
|
|
16
|
+
plugins?: CarouselPlugin
|
|
17
|
+
orientation?: "horizontal" | "vertical"
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface CarouselEmits {
|
|
21
|
+
(e: "init-api", payload: UnwrapRefCarouselApi): void
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface WithClassAsProps {
|
|
25
|
+
class?: HTMLAttributes["class"]
|
|
26
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { UnwrapRefCarouselApi as CarouselApi, CarouselEmits, CarouselProps } from "./interface"
|
|
2
|
+
import { createInjectionState } from "@vueuse/core"
|
|
3
|
+
import emblaCarouselVue from "embla-carousel-vue"
|
|
4
|
+
import { onMounted, ref } from "vue"
|
|
5
|
+
|
|
6
|
+
const [useProvideCarousel, useInjectCarousel] = createInjectionState(
|
|
7
|
+
({
|
|
8
|
+
opts,
|
|
9
|
+
orientation,
|
|
10
|
+
plugins,
|
|
11
|
+
}: CarouselProps, emits: CarouselEmits) => {
|
|
12
|
+
const [emblaNode, emblaApi] = emblaCarouselVue({
|
|
13
|
+
...opts,
|
|
14
|
+
axis: orientation === "horizontal" ? "x" : "y",
|
|
15
|
+
}, plugins)
|
|
16
|
+
|
|
17
|
+
function scrollPrev() {
|
|
18
|
+
emblaApi.value?.scrollPrev()
|
|
19
|
+
}
|
|
20
|
+
function scrollNext() {
|
|
21
|
+
emblaApi.value?.scrollNext()
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const canScrollNext = ref(false)
|
|
25
|
+
const canScrollPrev = ref(false)
|
|
26
|
+
|
|
27
|
+
function onSelect(api: CarouselApi) {
|
|
28
|
+
canScrollNext.value = api?.canScrollNext() || false
|
|
29
|
+
canScrollPrev.value = api?.canScrollPrev() || false
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
onMounted(() => {
|
|
33
|
+
if (!emblaApi.value)
|
|
34
|
+
return
|
|
35
|
+
|
|
36
|
+
emblaApi.value?.on("init", onSelect)
|
|
37
|
+
emblaApi.value?.on("reInit", onSelect)
|
|
38
|
+
emblaApi.value?.on("select", onSelect)
|
|
39
|
+
|
|
40
|
+
emits("init-api", emblaApi.value)
|
|
41
|
+
})
|
|
42
|
+
|
|
43
|
+
return { carouselRef: emblaNode, carouselApi: emblaApi, canScrollPrev, canScrollNext, scrollPrev, scrollNext, orientation }
|
|
44
|
+
},
|
|
45
|
+
)
|
|
46
|
+
|
|
47
|
+
function useCarousel() {
|
|
48
|
+
const carouselState = useInjectCarousel()
|
|
49
|
+
|
|
50
|
+
if (!carouselState)
|
|
51
|
+
throw new Error("useCarousel must be used within a <Carousel />")
|
|
52
|
+
|
|
53
|
+
return carouselState
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export { useCarousel, useProvideCarousel }
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from "vue"
|
|
3
|
+
import type { ChartConfig } from "."
|
|
4
|
+
import { useId } from "reka-ui"
|
|
5
|
+
import { computed, toRefs } from "vue"
|
|
6
|
+
import { cn } from "@/lib/utils"
|
|
7
|
+
import { provideChartContext } from "."
|
|
8
|
+
import ChartStyle from "./ChartStyle.vue"
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<script setup lang="ts">
|
|
12
|
+
const props = defineProps<{
|
|
13
|
+
id?: HTMLAttributes["id"]
|
|
14
|
+
class?: HTMLAttributes["class"]
|
|
15
|
+
config: ChartConfig
|
|
16
|
+
cursor?: boolean
|
|
17
|
+
}>()
|
|
18
|
+
|
|
19
|
+
defineSlots<{
|
|
20
|
+
default: {
|
|
21
|
+
id: string
|
|
22
|
+
config: ChartConfig
|
|
23
|
+
}
|
|
24
|
+
}>()
|
|
25
|
+
|
|
26
|
+
const { config } = toRefs(props)
|
|
27
|
+
const uniqueId = useId()
|
|
28
|
+
const chartId = computed(() => `chart-${props.id || uniqueId.replace(/:/g, "")}`)
|
|
29
|
+
|
|
30
|
+
provideChartContext({
|
|
31
|
+
id: uniqueId,
|
|
32
|
+
config,
|
|
33
|
+
})
|
|
34
|
+
</script>
|
|
35
|
+
|
|
36
|
+
<template>
|
|
37
|
+
<div
|
|
38
|
+
data-slot="chart"
|
|
39
|
+
:data-chart="chartId"
|
|
40
|
+
:class="cn(
|
|
41
|
+
`[&_.tick_text]:!fill-muted-foreground [&_.tick_line]:!stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border flex flex-col aspect-video justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden [&_[data-vis-xy-container]]:h-full [&_[data-vis-single-container]]:h-full h-full [&_[data-vis-xy-container]]:w-full [&_[data-vis-single-container]]:w-full w-full `,
|
|
42
|
+
props.class,
|
|
43
|
+
)"
|
|
44
|
+
:style="{
|
|
45
|
+
'--vis-tooltip-padding': '0px',
|
|
46
|
+
'--vis-tooltip-background-color': 'transparent',
|
|
47
|
+
'--vis-tooltip-border-color': 'transparent',
|
|
48
|
+
'--vis-tooltip-text-color': 'none',
|
|
49
|
+
'--vis-tooltip-shadow-color': 'none',
|
|
50
|
+
'--vis-tooltip-backdrop-filter': 'none',
|
|
51
|
+
'--vis-crosshair-circle-stroke-color': '#0000',
|
|
52
|
+
'--vis-crosshair-line-stroke-width': cursor ? '1px' : '0px',
|
|
53
|
+
'--vis-font-family': 'var(--font-sans)',
|
|
54
|
+
}"
|
|
55
|
+
>
|
|
56
|
+
<slot :id="uniqueId" :config="config" />
|
|
57
|
+
<ChartStyle :id="chartId" />
|
|
58
|
+
</div>
|
|
59
|
+
</template>
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from "vue"
|
|
3
|
+
import { computed, onMounted, ref } from "vue"
|
|
4
|
+
import { cn } from "@/lib/utils"
|
|
5
|
+
import { useChart } from "."
|
|
6
|
+
|
|
7
|
+
const props = withDefaults(defineProps<{
|
|
8
|
+
hideIcon?: boolean
|
|
9
|
+
nameKey?: string
|
|
10
|
+
verticalAlign?: "bottom" | "top"
|
|
11
|
+
// payload?: any[]
|
|
12
|
+
class?: HTMLAttributes["class"]
|
|
13
|
+
}>(), {
|
|
14
|
+
verticalAlign: "bottom",
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
const { id, config } = useChart()
|
|
18
|
+
|
|
19
|
+
const payload = computed(() => Object.entries(config.value).map(([key, value]) => {
|
|
20
|
+
return {
|
|
21
|
+
key: props.nameKey || key,
|
|
22
|
+
itemConfig: config.value[key],
|
|
23
|
+
}
|
|
24
|
+
}))
|
|
25
|
+
|
|
26
|
+
const containerSelector = ref("")
|
|
27
|
+
onMounted(() => {
|
|
28
|
+
containerSelector.value = `[data-chart="chart-${id}"]>[data-vis-xy-container]`
|
|
29
|
+
})
|
|
30
|
+
</script>
|
|
31
|
+
|
|
32
|
+
<template>
|
|
33
|
+
<div
|
|
34
|
+
v-if="containerSelector"
|
|
35
|
+
:class="cn(
|
|
36
|
+
'flex items-center justify-center gap-4',
|
|
37
|
+
verticalAlign === 'top' ? 'pb-3' : 'pt-3',
|
|
38
|
+
props.class,
|
|
39
|
+
)"
|
|
40
|
+
>
|
|
41
|
+
<div
|
|
42
|
+
v-for="{ key, itemConfig } in payload"
|
|
43
|
+
:key="key"
|
|
44
|
+
:class="cn(
|
|
45
|
+
'[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3',
|
|
46
|
+
)"
|
|
47
|
+
>
|
|
48
|
+
<component :is="itemConfig.icon" v-if="itemConfig?.icon" />
|
|
49
|
+
<div
|
|
50
|
+
v-else
|
|
51
|
+
class="h-2 w-2 shrink-0 rounded-[2px]"
|
|
52
|
+
:style="{
|
|
53
|
+
backgroundColor: itemConfig.color,
|
|
54
|
+
}"
|
|
55
|
+
/>
|
|
56
|
+
|
|
57
|
+
{{ itemConfig?.label }}
|
|
58
|
+
</div>
|
|
59
|
+
</div>
|
|
60
|
+
</template>
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from "vue"
|
|
3
|
+
import { Primitive } from "reka-ui"
|
|
4
|
+
import { computed } from "vue"
|
|
5
|
+
import { THEMES, useChart } from "."
|
|
6
|
+
|
|
7
|
+
defineProps<{
|
|
8
|
+
id?: HTMLAttributes["id"]
|
|
9
|
+
}>()
|
|
10
|
+
|
|
11
|
+
const { config } = useChart()
|
|
12
|
+
|
|
13
|
+
const colorConfig = computed(() => {
|
|
14
|
+
return Object.entries(config.value).filter(
|
|
15
|
+
([, config]) => config.theme || config.color,
|
|
16
|
+
)
|
|
17
|
+
})
|
|
18
|
+
</script>
|
|
19
|
+
|
|
20
|
+
<template>
|
|
21
|
+
<Primitive
|
|
22
|
+
v-if="colorConfig.length"
|
|
23
|
+
as="style"
|
|
24
|
+
>
|
|
25
|
+
{{ Object.entries(THEMES)
|
|
26
|
+
.map(
|
|
27
|
+
([theme, prefix]) => `
|
|
28
|
+
${prefix} [data-chart=${id}] {
|
|
29
|
+
${colorConfig
|
|
30
|
+
.map(([key, itemConfig]) => {
|
|
31
|
+
const color
|
|
32
|
+
= itemConfig.theme?.[theme as keyof typeof itemConfig.theme]
|
|
33
|
+
|| itemConfig.color
|
|
34
|
+
return color ? ` --color-${key}: ${color};` : null
|
|
35
|
+
})
|
|
36
|
+
.join("\n")}
|
|
37
|
+
}
|
|
38
|
+
`,
|
|
39
|
+
)
|
|
40
|
+
.join("\n") }}
|
|
41
|
+
</Primitive>
|
|
42
|
+
</template>
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from "vue"
|
|
3
|
+
import type { ChartConfig } from "."
|
|
4
|
+
import { computed } from "vue"
|
|
5
|
+
import { cn } from "@/lib/utils"
|
|
6
|
+
|
|
7
|
+
const props = withDefaults(defineProps<{
|
|
8
|
+
hideLabel?: boolean
|
|
9
|
+
hideIndicator?: boolean
|
|
10
|
+
indicator?: "line" | "dot" | "dashed"
|
|
11
|
+
nameKey?: string
|
|
12
|
+
labelKey?: string
|
|
13
|
+
labelFormatter?: (d: number | Date) => string
|
|
14
|
+
payload?: Record<string, any>
|
|
15
|
+
config?: ChartConfig
|
|
16
|
+
class?: HTMLAttributes["class"]
|
|
17
|
+
color?: string
|
|
18
|
+
x?: number | Date
|
|
19
|
+
}>(), {
|
|
20
|
+
payload: () => ({}),
|
|
21
|
+
config: () => ({}),
|
|
22
|
+
indicator: "dot",
|
|
23
|
+
})
|
|
24
|
+
|
|
25
|
+
// TODO: currently we use `createElement` and `render` to render the
|
|
26
|
+
// const chartContext = useChart(null)
|
|
27
|
+
|
|
28
|
+
const payload = computed(() => {
|
|
29
|
+
return Object.entries(props.payload).map(([key, value]) => {
|
|
30
|
+
// const key = `${props.nameKey || item.name || item.dataKey || "value"}`
|
|
31
|
+
const itemConfig = props.config[key]
|
|
32
|
+
const indicatorColor = props.config[key]?.color ?? props.payload.fill
|
|
33
|
+
|
|
34
|
+
return { key, value, itemConfig, indicatorColor }
|
|
35
|
+
}).filter(i => i.itemConfig)
|
|
36
|
+
})
|
|
37
|
+
|
|
38
|
+
const nestLabel = computed(() => Object.keys(props.payload).length === 1 && props.indicator !== "dot")
|
|
39
|
+
const tooltipLabel = computed(() => {
|
|
40
|
+
if (props.hideLabel)
|
|
41
|
+
return null
|
|
42
|
+
if (props.labelFormatter && props.x !== undefined) {
|
|
43
|
+
return props.labelFormatter(props.x)
|
|
44
|
+
}
|
|
45
|
+
return props.labelKey ? props.config[props.labelKey]?.label || props.payload[props.labelKey] : props.x
|
|
46
|
+
})
|
|
47
|
+
</script>
|
|
48
|
+
|
|
49
|
+
<template>
|
|
50
|
+
<div
|
|
51
|
+
:class="cn(
|
|
52
|
+
'border-border/50 bg-background grid min-w-[8rem] items-start gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl',
|
|
53
|
+
props.class,
|
|
54
|
+
)"
|
|
55
|
+
>
|
|
56
|
+
<slot>
|
|
57
|
+
<div v-if="!nestLabel && tooltipLabel" class="font-medium">
|
|
58
|
+
{{ tooltipLabel }}
|
|
59
|
+
</div>
|
|
60
|
+
<div class="grid gap-1.5">
|
|
61
|
+
<div
|
|
62
|
+
v-for="{ value, itemConfig, indicatorColor, key } in payload"
|
|
63
|
+
:key="key"
|
|
64
|
+
:class="
|
|
65
|
+
cn('[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5',
|
|
66
|
+
indicator === 'dot' && 'items-center')"
|
|
67
|
+
>
|
|
68
|
+
<component :is="itemConfig.icon" v-if="itemConfig?.icon" />
|
|
69
|
+
<template v-else-if="!hideIndicator">
|
|
70
|
+
<div
|
|
71
|
+
:class="cn(
|
|
72
|
+
'shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)',
|
|
73
|
+
{
|
|
74
|
+
'h-2.5 w-2.5': indicator === 'dot',
|
|
75
|
+
'w-1': indicator === 'line',
|
|
76
|
+
'w-0 border-[1.5px] border-dashed bg-transparent':
|
|
77
|
+
indicator === 'dashed',
|
|
78
|
+
'my-0.5': nestLabel && indicator === 'dashed',
|
|
79
|
+
},
|
|
80
|
+
)"
|
|
81
|
+
:style="{
|
|
82
|
+
'--color-bg': indicatorColor,
|
|
83
|
+
'--color-border': indicatorColor,
|
|
84
|
+
}"
|
|
85
|
+
/>
|
|
86
|
+
</template>
|
|
87
|
+
|
|
88
|
+
<div :class="cn('flex flex-1 justify-between leading-none', nestLabel ? 'items-end' : 'items-center')">
|
|
89
|
+
<div class="grid gap-1.5">
|
|
90
|
+
<div v-if="nestLabel" class="font-medium">
|
|
91
|
+
{{ tooltipLabel }}
|
|
92
|
+
</div>
|
|
93
|
+
<span class="text-muted-foreground">
|
|
94
|
+
{{ itemConfig?.label || value }}
|
|
95
|
+
</span>
|
|
96
|
+
</div>
|
|
97
|
+
<span v-if="value" class="text-foreground font-mono font-medium tabular-nums">
|
|
98
|
+
{{ value.toLocaleString() }}
|
|
99
|
+
</span>
|
|
100
|
+
</div>
|
|
101
|
+
</div>
|
|
102
|
+
</div>
|
|
103
|
+
</slot>
|
|
104
|
+
</div>
|
|
105
|
+
</template>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { Component, Ref } from "vue"
|
|
2
|
+
import { createContext } from "reka-ui"
|
|
3
|
+
|
|
4
|
+
export { default as ChartContainer } from "./ChartContainer.vue"
|
|
5
|
+
export { default as ChartLegendContent } from "./ChartLegendContent.vue"
|
|
6
|
+
export { default as ChartTooltipContent } from "./ChartTooltipContent.vue"
|
|
7
|
+
export { componentToString } from "./utils"
|
|
8
|
+
|
|
9
|
+
// Format: { THEME_NAME: CSS_SELECTOR }
|
|
10
|
+
export const THEMES = { light: "", dark: ".dark" } as const
|
|
11
|
+
|
|
12
|
+
export type ChartConfig = {
|
|
13
|
+
[k in string]: {
|
|
14
|
+
label?: string | Component
|
|
15
|
+
icon?: string | Component
|
|
16
|
+
} & (
|
|
17
|
+
| { color?: string, theme?: never }
|
|
18
|
+
| { color?: never, theme: Record<keyof typeof THEMES, string> }
|
|
19
|
+
)
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
interface ChartContextProps {
|
|
23
|
+
id: string
|
|
24
|
+
config: Ref<ChartConfig>
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export const [useChart, provideChartContext] = createContext<ChartContextProps>("Chart")
|
|
28
|
+
|
|
29
|
+
export { VisCrosshair as ChartCrosshair, VisTooltip as ChartTooltip } from "@unovis/vue"
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { ChartConfig } from "."
|
|
2
|
+
import { isClient } from "@vueuse/core"
|
|
3
|
+
import { useId } from "reka-ui"
|
|
4
|
+
import { h, render } from "vue"
|
|
5
|
+
|
|
6
|
+
// Simple cache using a Map to store serialized object keys
|
|
7
|
+
const cache = new Map<string, string>()
|
|
8
|
+
|
|
9
|
+
// Convert object to a consistent string key
|
|
10
|
+
function serializeKey(key: Record<string, any>): string {
|
|
11
|
+
return JSON.stringify(key, Object.keys(key).sort())
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
interface Constructor<P = any> {
|
|
15
|
+
__isFragment?: never
|
|
16
|
+
__isTeleport?: never
|
|
17
|
+
__isSuspense?: never
|
|
18
|
+
new (...args: any[]): {
|
|
19
|
+
$props: P
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export function componentToString<P>(config: ChartConfig, component: Constructor<P>, props?: P) {
|
|
24
|
+
if (!isClient)
|
|
25
|
+
return
|
|
26
|
+
|
|
27
|
+
// This function will be called once during mount lifecycle
|
|
28
|
+
const id = useId()
|
|
29
|
+
|
|
30
|
+
// https://unovis.dev/docs/auxiliary/Crosshair#component-props
|
|
31
|
+
return (_data: any, x: number | Date) => {
|
|
32
|
+
const data = "data" in _data ? _data.data : _data
|
|
33
|
+
const serializedKey = `${id}-${serializeKey(data)}`
|
|
34
|
+
const cachedContent = cache.get(serializedKey)
|
|
35
|
+
if (cachedContent)
|
|
36
|
+
return cachedContent
|
|
37
|
+
|
|
38
|
+
const vnode = h<unknown>(component, { ...props, payload: data, config, x })
|
|
39
|
+
const div = document.createElement("div")
|
|
40
|
+
render(vnode, div)
|
|
41
|
+
cache.set(serializedKey, div.innerHTML)
|
|
42
|
+
return div.innerHTML
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { CheckboxRootEmits, CheckboxRootProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
+
import { Check } from "lucide-vue-next"
|
|
6
|
+
import { CheckboxIndicator, CheckboxRoot, useForwardPropsEmits } from "reka-ui"
|
|
7
|
+
import { cn } from "@/lib/utils"
|
|
8
|
+
|
|
9
|
+
const props = defineProps<CheckboxRootProps & { class?: HTMLAttributes["class"] }>()
|
|
10
|
+
const emits = defineEmits<CheckboxRootEmits>()
|
|
11
|
+
|
|
12
|
+
const delegatedProps = reactiveOmit(props, "class")
|
|
13
|
+
|
|
14
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
<template>
|
|
18
|
+
<CheckboxRoot
|
|
19
|
+
v-slot="slotProps"
|
|
20
|
+
data-slot="checkbox"
|
|
21
|
+
v-bind="forwarded"
|
|
22
|
+
:class="
|
|
23
|
+
cn('peer border-input data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50',
|
|
24
|
+
props.class)"
|
|
25
|
+
>
|
|
26
|
+
<CheckboxIndicator
|
|
27
|
+
data-slot="checkbox-indicator"
|
|
28
|
+
class="grid place-content-center text-current transition-none"
|
|
29
|
+
>
|
|
30
|
+
<slot v-bind="slotProps">
|
|
31
|
+
<Check class="size-3.5" />
|
|
32
|
+
</slot>
|
|
33
|
+
</CheckboxIndicator>
|
|
34
|
+
</CheckboxRoot>
|
|
35
|
+
</template>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Checkbox } from "./Checkbox.vue"
|