una-nuxt-module 2.1.2 → 2.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.nuxt/unaxt/accordion.ts +4 -0
- package/.nuxt/unaxt/alert-dialog.ts +9 -0
- package/.nuxt/unaxt/alert.ts +23 -0
- package/.nuxt/unaxt/aspect-ratio.ts +1 -0
- package/.nuxt/unaxt/auto-form.ts +15 -0
- package/.nuxt/unaxt/avatar.ts +3 -0
- package/.nuxt/unaxt/badge.ts +25 -0
- package/.nuxt/unaxt/breadcrumb.ts +7 -0
- package/.nuxt/unaxt/calendar.ts +12 -0
- package/.nuxt/unaxt/card.ts +7 -0
- package/.nuxt/unaxt/carousel.ts +10 -0
- package/.nuxt/unaxt/checkbox.ts +1 -0
- package/.nuxt/unaxt/collapsible.ts +3 -0
- package/.nuxt/unaxt/combobox.ts +12 -0
- package/.nuxt/unaxt/command.ts +25 -0
- package/.nuxt/unaxt/context-menu.ts +14 -0
- package/.nuxt/unaxt/dialog.ts +10 -0
- package/.nuxt/unaxt/drawer.ts +9 -0
- package/.nuxt/unaxt/dropdown-menu.ts +16 -0
- package/.nuxt/unaxt/form.ts +7 -0
- package/.nuxt/unaxt/hover-card.ts +3 -0
- package/.nuxt/unaxt/input.ts +1 -0
- package/.nuxt/unaxt/label.ts +1 -0
- package/.nuxt/unaxt/menubar.ts +15 -0
- package/.nuxt/unaxt/navigation-menu.ts +14 -0
- package/.nuxt/unaxt/number-field.ts +5 -0
- package/.nuxt/unaxt/pagination.ts +8 -0
- package/.nuxt/unaxt/pin-input.ts +4 -0
- package/.nuxt/unaxt/popover.ts +4 -0
- package/.nuxt/unaxt/progress.ts +1 -0
- package/.nuxt/unaxt/radio-group.ts +2 -0
- package/.nuxt/unaxt/range-calendar.ts +12 -0
- package/.nuxt/unaxt/resizable.ts +3 -0
- package/.nuxt/unaxt/scroll-area.ts +2 -0
- package/.nuxt/unaxt/select.ts +11 -0
- package/.nuxt/unaxt/separator.ts +1 -0
- package/.nuxt/unaxt/sheet.ts +8 -0
- package/.nuxt/unaxt/sidebar.ts +60 -0
- package/.nuxt/unaxt/skeleton.ts +1 -0
- package/.nuxt/unaxt/slider.ts +1 -0
- package/.nuxt/unaxt/sonner.ts +1 -0
- package/.nuxt/unaxt/stepper.ts +7 -0
- package/.nuxt/unaxt/switch.ts +1 -0
- package/.nuxt/unaxt/table.ts +9 -0
- package/.nuxt/unaxt/tabs.ts +4 -0
- package/.nuxt/unaxt/tags-input.ts +5 -0
- package/.nuxt/unaxt/textarea.ts +1 -0
- package/.nuxt/unaxt/toggle-group.ts +2 -0
- package/.nuxt/unaxt/toggle.ts +27 -0
- package/.nuxt/unaxt/tooltip.ts +4 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/ui/accordion/Accordion.vue +26 -0
- package/dist/runtime/components/ui/accordion/Accordion.vue.d.ts +26 -0
- package/dist/runtime/components/ui/accordion/AccordionContent.vue +24 -0
- package/dist/runtime/components/ui/accordion/AccordionContent.vue.d.ts +31 -0
- package/dist/runtime/components/ui/accordion/AccordionItem.vue +28 -0
- package/dist/runtime/components/ui/accordion/AccordionItem.vue.d.ts +31 -0
- package/dist/runtime/components/ui/accordion/AccordionTrigger.vue +37 -0
- package/dist/runtime/components/ui/accordion/AccordionTrigger.vue.d.ts +32 -0
- package/dist/runtime/components/ui/accordion/index.d.ts +4 -0
- package/dist/runtime/components/ui/accordion/index.js +4 -0
- package/dist/runtime/components/ui/alert/Alert.vue +18 -0
- package/dist/runtime/components/ui/alert/Alert.vue.d.ts +33 -0
- package/dist/runtime/components/ui/alert/AlertDescription.vue +20 -0
- package/dist/runtime/components/ui/alert/AlertDescription.vue.d.ts +30 -0
- package/dist/runtime/components/ui/alert/AlertTitle.vue +20 -0
- package/dist/runtime/components/ui/alert/AlertTitle.vue.d.ts +30 -0
- package/dist/runtime/components/ui/alert/index.d.ts +8 -0
- package/dist/runtime/components/ui/alert/index.js +18 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialog.vue +15 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialog.vue.d.ts +26 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogAction.vue +21 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogAction.vue.d.ts +31 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogCancel.vue +23 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogCancel.vue.d.ts +31 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogContent.vue +42 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogContent.vue.d.ts +29 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogDescription.vue +23 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogDescription.vue.d.ts +31 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogFooter.vue +17 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogFooter.vue.d.ts +30 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogHeader.vue +15 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogHeader.vue.d.ts +30 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogTitle.vue +21 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogTitle.vue.d.ts +31 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogTrigger.vue +13 -0
- package/dist/runtime/components/ui/alert-dialog/AlertDialogTrigger.vue.d.ts +26 -0
- package/dist/runtime/components/ui/alert-dialog/index.d.ts +9 -0
- package/dist/runtime/components/ui/alert-dialog/index.js +9 -0
- package/dist/runtime/components/ui/aspect-ratio/AspectRatio.vue +17 -0
- package/dist/runtime/components/ui/aspect-ratio/AspectRatio.vue.d.ts +26 -0
- package/dist/runtime/components/ui/aspect-ratio/index.d.ts +1 -0
- package/dist/runtime/components/ui/aspect-ratio/index.js +1 -0
- package/dist/runtime/components/ui/auto-form/AutoForm.vue +90 -0
- package/dist/runtime/components/ui/auto-form/AutoForm.vue.d.ts +35 -0
- package/dist/runtime/components/ui/auto-form/AutoFormField.vue +35 -0
- package/dist/runtime/components/ui/auto-form/AutoFormField.vue.d.ts +23 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldArray.vue +92 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldArray.vue.d.ts +0 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldBoolean.vue +44 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldBoolean.vue.d.ts +26 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldDate.vue +82 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldDate.vue.d.ts +26 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldEnum.vue +52 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldEnum.vue.d.ts +30 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldFile.vue +77 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldFile.vue.d.ts +26 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldInput.vue +40 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldInput.vue.d.ts +26 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldNumber.vue +35 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldNumber.vue.d.ts +26 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldObject.vue +69 -0
- package/dist/runtime/components/ui/auto-form/AutoFormFieldObject.vue.d.ts +0 -0
- package/dist/runtime/components/ui/auto-form/AutoFormLabel.vue +13 -0
- package/dist/runtime/components/ui/auto-form/AutoFormLabel.vue.d.ts +29 -0
- package/dist/runtime/components/ui/auto-form/constant.d.ts +9 -0
- package/dist/runtime/components/ui/auto-form/constant.js +31 -0
- package/dist/runtime/components/ui/auto-form/dependencies.d.ts +33 -0
- package/dist/runtime/components/ui/auto-form/dependencies.js +70 -0
- package/dist/runtime/components/ui/auto-form/index.d.ts +13 -0
- package/dist/runtime/components/ui/auto-form/index.js +12 -0
- package/dist/runtime/components/ui/auto-form/interface.d.ts +67 -0
- package/dist/runtime/components/ui/auto-form/interface.js +7 -0
- package/dist/runtime/components/ui/auto-form/utils.d.ts +48 -0
- package/dist/runtime/components/ui/auto-form/utils.js +103 -0
- package/dist/runtime/components/ui/avatar/Avatar.vue +21 -0
- package/dist/runtime/components/ui/avatar/Avatar.vue.d.ts +30 -0
- package/dist/runtime/components/ui/avatar/AvatarFallback.vue +27 -0
- package/dist/runtime/components/ui/avatar/AvatarFallback.vue.d.ts +31 -0
- package/dist/runtime/components/ui/avatar/AvatarImage.vue +20 -0
- package/dist/runtime/components/ui/avatar/AvatarImage.vue.d.ts +26 -0
- package/dist/runtime/components/ui/avatar/index.d.ts +3 -0
- package/dist/runtime/components/ui/avatar/index.js +3 -0
- package/dist/runtime/components/ui/badge/Badge.vue +23 -0
- package/dist/runtime/components/ui/badge/Badge.vue.d.ts +34 -0
- package/dist/runtime/components/ui/badge/index.d.ts +6 -0
- package/dist/runtime/components/ui/badge/index.js +18 -0
- package/dist/runtime/components/ui/breadcrumb/Breadcrumb.vue +15 -0
- package/dist/runtime/components/ui/breadcrumb/Breadcrumb.vue.d.ts +30 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbEllipsis.vue +21 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbEllipsis.vue.d.ts +30 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbItem.vue +15 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbItem.vue.d.ts +30 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbLink.vue +20 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbLink.vue.d.ts +45 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbList.vue +20 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbList.vue.d.ts +30 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbPage.vue +18 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbPage.vue.d.ts +30 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbSeparator.vue +20 -0
- package/dist/runtime/components/ui/breadcrumb/BreadcrumbSeparator.vue.d.ts +30 -0
- package/dist/runtime/components/ui/breadcrumb/index.d.ts +7 -0
- package/dist/runtime/components/ui/breadcrumb/index.js +7 -0
- package/dist/runtime/components/ui/calendar/Calendar.vue +98 -0
- package/dist/runtime/components/ui/calendar/Calendar.vue.d.ts +15 -0
- package/dist/runtime/components/ui/calendar/CalendarCell.vue +28 -0
- package/dist/runtime/components/ui/calendar/CalendarCell.vue.d.ts +31 -0
- package/dist/runtime/components/ui/calendar/CalendarCellTrigger.vue +43 -0
- package/dist/runtime/components/ui/calendar/CalendarCellTrigger.vue.d.ts +45 -0
- package/dist/runtime/components/ui/calendar/CalendarGrid.vue +22 -0
- package/dist/runtime/components/ui/calendar/CalendarGrid.vue.d.ts +31 -0
- package/dist/runtime/components/ui/calendar/CalendarGridBody.vue +16 -0
- package/dist/runtime/components/ui/calendar/CalendarGridBody.vue.d.ts +26 -0
- package/dist/runtime/components/ui/calendar/CalendarGridHead.vue +17 -0
- package/dist/runtime/components/ui/calendar/CalendarGridHead.vue.d.ts +31 -0
- package/dist/runtime/components/ui/calendar/CalendarGridRow.vue +25 -0
- package/dist/runtime/components/ui/calendar/CalendarGridRow.vue.d.ts +31 -0
- package/dist/runtime/components/ui/calendar/CalendarHeadCell.vue +30 -0
- package/dist/runtime/components/ui/calendar/CalendarHeadCell.vue.d.ts +31 -0
- package/dist/runtime/components/ui/calendar/CalendarHeader.vue +27 -0
- package/dist/runtime/components/ui/calendar/CalendarHeader.vue.d.ts +31 -0
- package/dist/runtime/components/ui/calendar/CalendarHeading.vue +29 -0
- package/dist/runtime/components/ui/calendar/CalendarHeading.vue.d.ts +37 -0
- package/dist/runtime/components/ui/calendar/CalendarNextButton.vue +34 -0
- package/dist/runtime/components/ui/calendar/CalendarNextButton.vue.d.ts +31 -0
- package/dist/runtime/components/ui/calendar/CalendarPrevButton.vue +34 -0
- package/dist/runtime/components/ui/calendar/CalendarPrevButton.vue.d.ts +31 -0
- package/dist/runtime/components/ui/calendar/index.d.ts +12 -0
- package/dist/runtime/components/ui/calendar/index.js +12 -0
- package/dist/runtime/components/ui/card/Card.vue +20 -0
- package/dist/runtime/components/ui/card/Card.vue.d.ts +30 -0
- package/dist/runtime/components/ui/card/CardAction.vue +20 -0
- package/dist/runtime/components/ui/card/CardAction.vue.d.ts +30 -0
- package/dist/runtime/components/ui/card/CardContent.vue +12 -0
- package/dist/runtime/components/ui/card/CardContent.vue.d.ts +30 -0
- package/dist/runtime/components/ui/card/CardDescription.vue +15 -0
- package/dist/runtime/components/ui/card/CardDescription.vue.d.ts +30 -0
- package/dist/runtime/components/ui/card/CardFooter.vue +15 -0
- package/dist/runtime/components/ui/card/CardFooter.vue.d.ts +30 -0
- package/dist/runtime/components/ui/card/CardHeader.vue +20 -0
- package/dist/runtime/components/ui/card/CardHeader.vue.d.ts +30 -0
- package/dist/runtime/components/ui/card/CardTitle.vue +15 -0
- package/dist/runtime/components/ui/card/CardTitle.vue.d.ts +30 -0
- package/dist/runtime/components/ui/card/index.d.ts +7 -0
- package/dist/runtime/components/ui/card/index.js +7 -0
- package/dist/runtime/components/ui/carousel/Carousel.vue +63 -0
- package/dist/runtime/components/ui/carousel/Carousel.vue.d.ts +0 -0
- package/dist/runtime/components/ui/carousel/CarouselContent.vue +28 -0
- package/dist/runtime/components/ui/carousel/CarouselContent.vue.d.ts +28 -0
- package/dist/runtime/components/ui/carousel/CarouselItem.vue +25 -0
- package/dist/runtime/components/ui/carousel/CarouselItem.vue.d.ts +26 -0
- package/dist/runtime/components/ui/carousel/CarouselNext.vue +36 -0
- package/dist/runtime/components/ui/carousel/CarouselNext.vue.d.ts +50 -0
- package/dist/runtime/components/ui/carousel/CarouselPrevious.vue +36 -0
- package/dist/runtime/components/ui/carousel/CarouselPrevious.vue.d.ts +50 -0
- package/dist/runtime/components/ui/carousel/index.d.ts +7 -0
- package/dist/runtime/components/ui/carousel/index.js +6 -0
- package/dist/runtime/components/ui/carousel/interface.d.ts +20 -0
- package/dist/runtime/components/ui/carousel/interface.js +0 -0
- package/dist/runtime/components/ui/carousel/useCarousel.d.ts +0 -0
- package/dist/runtime/components/ui/carousel/useCarousel.js +43 -0
- package/dist/runtime/components/ui/checkbox/Checkbox.vue +43 -0
- package/dist/runtime/components/ui/checkbox/Checkbox.vue.d.ts +29 -0
- package/dist/runtime/components/ui/checkbox/index.d.ts +1 -0
- package/dist/runtime/components/ui/checkbox/index.js +1 -0
- package/dist/runtime/components/ui/collapsible/Collapsible.vue +23 -0
- package/dist/runtime/components/ui/collapsible/Collapsible.vue.d.ts +28 -0
- package/dist/runtime/components/ui/collapsible/CollapsibleContent.vue +17 -0
- package/dist/runtime/components/ui/collapsible/CollapsibleContent.vue.d.ts +26 -0
- package/dist/runtime/components/ui/collapsible/CollapsibleTrigger.vue +16 -0
- package/dist/runtime/components/ui/collapsible/CollapsibleTrigger.vue.d.ts +26 -0
- package/dist/runtime/components/ui/collapsible/index.d.ts +3 -0
- package/dist/runtime/components/ui/collapsible/index.js +3 -0
- package/dist/runtime/components/ui/combobox/Combobox.vue +32 -0
- package/dist/runtime/components/ui/combobox/Combobox.vue.d.ts +26 -0
- package/dist/runtime/components/ui/combobox/ComboboxAnchor.vue +23 -0
- package/dist/runtime/components/ui/combobox/ComboboxAnchor.vue.d.ts +31 -0
- package/dist/runtime/components/ui/combobox/ComboboxEmpty.vue +21 -0
- package/dist/runtime/components/ui/combobox/ComboboxEmpty.vue.d.ts +31 -0
- package/dist/runtime/components/ui/combobox/ComboboxGroup.vue +28 -0
- package/dist/runtime/components/ui/combobox/ComboboxGroup.vue.d.ts +33 -0
- package/dist/runtime/components/ui/combobox/ComboboxInput.vue +45 -0
- package/dist/runtime/components/ui/combobox/ComboboxInput.vue.d.ts +29 -0
- package/dist/runtime/components/ui/combobox/ComboboxItem.vue +31 -0
- package/dist/runtime/components/ui/combobox/ComboboxItem.vue.d.ts +29 -0
- package/dist/runtime/components/ui/combobox/ComboboxItemIndicator.vue +22 -0
- package/dist/runtime/components/ui/combobox/ComboboxItemIndicator.vue.d.ts +31 -0
- package/dist/runtime/components/ui/combobox/ComboboxList.vue +49 -0
- package/dist/runtime/components/ui/combobox/ComboboxList.vue.d.ts +45 -0
- package/dist/runtime/components/ui/combobox/ComboboxSeparator.vue +21 -0
- package/dist/runtime/components/ui/combobox/ComboboxSeparator.vue.d.ts +31 -0
- package/dist/runtime/components/ui/combobox/ComboboxTrigger.vue +24 -0
- package/dist/runtime/components/ui/combobox/ComboboxTrigger.vue.d.ts +31 -0
- package/dist/runtime/components/ui/combobox/ComboboxViewport.vue +28 -0
- package/dist/runtime/components/ui/combobox/ComboboxViewport.vue.d.ts +31 -0
- package/dist/runtime/components/ui/combobox/index.d.ts +11 -0
- package/dist/runtime/components/ui/combobox/index.js +11 -0
- package/dist/runtime/components/ui/command/Command.vue +91 -0
- package/dist/runtime/components/ui/command/Command.vue.d.ts +41 -0
- package/dist/runtime/components/ui/command/CommandDialog.vue +28 -0
- package/dist/runtime/components/ui/command/CommandDialog.vue.d.ts +43 -0
- package/dist/runtime/components/ui/command/CommandEmpty.vue +28 -0
- package/dist/runtime/components/ui/command/CommandEmpty.vue.d.ts +31 -0
- package/dist/runtime/components/ui/command/CommandGroup.vue +44 -0
- package/dist/runtime/components/ui/command/CommandGroup.vue.d.ts +33 -0
- package/dist/runtime/components/ui/command/CommandInput.vue +45 -0
- package/dist/runtime/components/ui/command/CommandInput.vue.d.ts +17 -0
- package/dist/runtime/components/ui/command/CommandItem.vue +79 -0
- package/dist/runtime/components/ui/command/CommandItem.vue.d.ts +31 -0
- package/dist/runtime/components/ui/command/CommandList.vue +29 -0
- package/dist/runtime/components/ui/command/CommandList.vue.d.ts +31 -0
- package/dist/runtime/components/ui/command/CommandSeparator.vue +23 -0
- package/dist/runtime/components/ui/command/CommandSeparator.vue.d.ts +31 -0
- package/dist/runtime/components/ui/command/CommandShortcut.vue +17 -0
- package/dist/runtime/components/ui/command/CommandShortcut.vue.d.ts +30 -0
- package/dist/runtime/components/ui/command/index.d.ts +90 -0
- package/dist/runtime/components/ui/command/index.js +12 -0
- package/dist/runtime/components/ui/context-menu/ContextMenu.vue +18 -0
- package/dist/runtime/components/ui/context-menu/ContextMenu.vue.d.ts +26 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuCheckboxItem.vue +43 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuCheckboxItem.vue.d.ts +29 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuContent.vue +46 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuContent.vue.d.ts +29 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuGroup.vue +16 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuGroup.vue.d.ts +26 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuItem.vue +37 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuItem.vue.d.ts +43 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuLabel.vue +28 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuLabel.vue.d.ts +33 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuPortal.vue +18 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuPortal.vue.d.ts +26 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuRadioGroup.vue +22 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuRadioGroup.vue.d.ts +26 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuRadioItem.vue +43 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuRadioItem.vue.d.ts +29 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuSeparator.vue +19 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuSeparator.vue.d.ts +17 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuShortcut.vue +17 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuShortcut.vue.d.ts +30 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuSub.vue +21 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuSub.vue.d.ts +26 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuSubContent.vue +46 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuSubContent.vue.d.ts +29 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuSubTrigger.vue +36 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuSubTrigger.vue.d.ts +33 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuTrigger.vue +18 -0
- package/dist/runtime/components/ui/context-menu/ContextMenuTrigger.vue.d.ts +26 -0
- package/dist/runtime/components/ui/context-menu/index.d.ts +14 -0
- package/dist/runtime/components/ui/context-menu/index.js +14 -0
- package/dist/runtime/components/ui/dialog/Dialog.vue +19 -0
- package/dist/runtime/components/ui/dialog/Dialog.vue.d.ts +26 -0
- package/dist/runtime/components/ui/dialog/DialogClose.vue +16 -0
- package/dist/runtime/components/ui/dialog/DialogClose.vue.d.ts +26 -0
- package/dist/runtime/components/ui/dialog/DialogContent.vue +48 -0
- package/dist/runtime/components/ui/dialog/DialogContent.vue.d.ts +29 -0
- package/dist/runtime/components/ui/dialog/DialogDescription.vue +25 -0
- package/dist/runtime/components/ui/dialog/DialogDescription.vue.d.ts +31 -0
- package/dist/runtime/components/ui/dialog/DialogFooter.vue +17 -0
- package/dist/runtime/components/ui/dialog/DialogFooter.vue.d.ts +30 -0
- package/dist/runtime/components/ui/dialog/DialogHeader.vue +15 -0
- package/dist/runtime/components/ui/dialog/DialogHeader.vue.d.ts +30 -0
- package/dist/runtime/components/ui/dialog/DialogOverlay.vue +27 -0
- package/dist/runtime/components/ui/dialog/DialogOverlay.vue.d.ts +31 -0
- package/dist/runtime/components/ui/dialog/DialogScrollContent.vue +57 -0
- package/dist/runtime/components/ui/dialog/DialogScrollContent.vue.d.ts +29 -0
- package/dist/runtime/components/ui/dialog/DialogTitle.vue +22 -0
- package/dist/runtime/components/ui/dialog/DialogTitle.vue.d.ts +31 -0
- package/dist/runtime/components/ui/dialog/DialogTrigger.vue +16 -0
- package/dist/runtime/components/ui/dialog/DialogTrigger.vue.d.ts +26 -0
- package/dist/runtime/components/ui/dialog/index.d.ts +10 -0
- package/dist/runtime/components/ui/dialog/index.js +10 -0
- package/dist/runtime/components/ui/drawer/Drawer.vue +34 -0
- package/dist/runtime/components/ui/drawer/Drawer.vue.d.ts +38 -0
- package/dist/runtime/components/ui/drawer/DrawerClose.vue +16 -0
- package/dist/runtime/components/ui/drawer/DrawerClose.vue.d.ts +26 -0
- package/dist/runtime/components/ui/drawer/DrawerContent.vue +41 -0
- package/dist/runtime/components/ui/drawer/DrawerContent.vue.d.ts +29 -0
- package/dist/runtime/components/ui/drawer/DrawerDescription.vue +21 -0
- package/dist/runtime/components/ui/drawer/DrawerDescription.vue.d.ts +31 -0
- package/dist/runtime/components/ui/drawer/DrawerFooter.vue +15 -0
- package/dist/runtime/components/ui/drawer/DrawerFooter.vue.d.ts +30 -0
- package/dist/runtime/components/ui/drawer/DrawerHeader.vue +15 -0
- package/dist/runtime/components/ui/drawer/DrawerHeader.vue.d.ts +30 -0
- package/dist/runtime/components/ui/drawer/DrawerOverlay.vue +25 -0
- package/dist/runtime/components/ui/drawer/DrawerOverlay.vue.d.ts +17 -0
- package/dist/runtime/components/ui/drawer/DrawerTitle.vue +21 -0
- package/dist/runtime/components/ui/drawer/DrawerTitle.vue.d.ts +31 -0
- package/dist/runtime/components/ui/drawer/DrawerTrigger.vue +16 -0
- package/dist/runtime/components/ui/drawer/DrawerTrigger.vue.d.ts +26 -0
- package/dist/runtime/components/ui/drawer/index.d.ts +9 -0
- package/dist/runtime/components/ui/drawer/index.js +9 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenu.vue +20 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenu.vue.d.ts +26 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +43 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +29 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuContent.vue +51 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +41 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuGroup.vue +16 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts +26 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuItem.vue +36 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +49 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuLabel.vue +29 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +33 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue +22 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +26 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuRadioItem.vue +43 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +29 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSeparator.vue +21 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts +17 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuShortcut.vue +17 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts +30 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSub.vue +18 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSub.vue.d.ts +26 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubContent.vue +46 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +29 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue +35 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +33 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuTrigger.vue +18 -0
- package/dist/runtime/components/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +26 -0
- package/dist/runtime/components/ui/dropdown-menu/index.d.ts +15 -0
- package/dist/runtime/components/ui/dropdown-menu/index.js +15 -0
- package/dist/runtime/components/ui/form/FormControl.vue +16 -0
- package/dist/runtime/components/ui/form/FormControl.vue.d.ts +16 -0
- package/dist/runtime/components/ui/form/FormDescription.vue +18 -0
- package/dist/runtime/components/ui/form/FormDescription.vue.d.ts +30 -0
- package/dist/runtime/components/ui/form/FormItem.vue +17 -0
- package/dist/runtime/components/ui/form/FormItem.vue.d.ts +30 -0
- package/dist/runtime/components/ui/form/FormLabel.vue +23 -0
- package/dist/runtime/components/ui/form/FormLabel.vue.d.ts +31 -0
- package/dist/runtime/components/ui/form/FormMessage.vue +20 -0
- package/dist/runtime/components/ui/form/FormMessage.vue.d.ts +16 -0
- package/dist/runtime/components/ui/form/index.d.ts +7 -0
- package/dist/runtime/components/ui/form/index.js +7 -0
- package/dist/runtime/components/ui/form/injectionKeys.d.ts +2 -0
- package/dist/runtime/components/ui/form/injectionKeys.js +1 -0
- package/dist/runtime/components/ui/form/useFormField.d.ts +11 -0
- package/dist/runtime/components/ui/form/useFormField.js +25 -0
- package/dist/runtime/components/ui/hover-card/HoverCard.vue +20 -0
- package/dist/runtime/components/ui/hover-card/HoverCard.vue.d.ts +26 -0
- package/dist/runtime/components/ui/hover-card/HoverCardContent.vue +49 -0
- package/dist/runtime/components/ui/hover-card/HoverCardContent.vue.d.ts +45 -0
- package/dist/runtime/components/ui/hover-card/HoverCardTrigger.vue +17 -0
- package/dist/runtime/components/ui/hover-card/HoverCardTrigger.vue.d.ts +26 -0
- package/dist/runtime/components/ui/hover-card/index.d.ts +3 -0
- package/dist/runtime/components/ui/hover-card/index.js +3 -0
- package/dist/runtime/components/ui/input/Input.vue +29 -0
- package/dist/runtime/components/ui/input/Input.vue.d.ts +16 -0
- package/dist/runtime/components/ui/input/index.d.ts +1 -0
- package/dist/runtime/components/ui/input/index.js +1 -0
- package/dist/runtime/components/ui/label/Label.vue +27 -0
- package/dist/runtime/components/ui/label/Label.vue.d.ts +31 -0
- package/dist/runtime/components/ui/label/index.d.ts +1 -0
- package/dist/runtime/components/ui/label/index.js +1 -0
- package/dist/runtime/components/ui/menubar/Menubar.vue +33 -0
- package/dist/runtime/components/ui/menubar/Menubar.vue.d.ts +29 -0
- package/dist/runtime/components/ui/menubar/MenubarCheckboxItem.vue +43 -0
- package/dist/runtime/components/ui/menubar/MenubarCheckboxItem.vue.d.ts +29 -0
- package/dist/runtime/components/ui/menubar/MenubarContent.vue +50 -0
- package/dist/runtime/components/ui/menubar/MenubarContent.vue.d.ts +51 -0
- package/dist/runtime/components/ui/menubar/MenubarGroup.vue +16 -0
- package/dist/runtime/components/ui/menubar/MenubarGroup.vue.d.ts +26 -0
- package/dist/runtime/components/ui/menubar/MenubarItem.vue +37 -0
- package/dist/runtime/components/ui/menubar/MenubarItem.vue.d.ts +31 -0
- package/dist/runtime/components/ui/menubar/MenubarLabel.vue +24 -0
- package/dist/runtime/components/ui/menubar/MenubarLabel.vue.d.ts +33 -0
- package/dist/runtime/components/ui/menubar/MenubarMenu.vue +15 -0
- package/dist/runtime/components/ui/menubar/MenubarMenu.vue.d.ts +26 -0
- package/dist/runtime/components/ui/menubar/MenubarRadioGroup.vue +22 -0
- package/dist/runtime/components/ui/menubar/MenubarRadioGroup.vue.d.ts +26 -0
- package/dist/runtime/components/ui/menubar/MenubarRadioItem.vue +43 -0
- package/dist/runtime/components/ui/menubar/MenubarRadioItem.vue.d.ts +29 -0
- package/dist/runtime/components/ui/menubar/MenubarSeparator.vue +23 -0
- package/dist/runtime/components/ui/menubar/MenubarSeparator.vue.d.ts +17 -0
- package/dist/runtime/components/ui/menubar/MenubarShortcut.vue +17 -0
- package/dist/runtime/components/ui/menubar/MenubarShortcut.vue.d.ts +30 -0
- package/dist/runtime/components/ui/menubar/MenubarSub.vue +18 -0
- package/dist/runtime/components/ui/menubar/MenubarSub.vue.d.ts +29 -0
- package/dist/runtime/components/ui/menubar/MenubarSubContent.vue +49 -0
- package/dist/runtime/components/ui/menubar/MenubarSubContent.vue.d.ts +29 -0
- package/dist/runtime/components/ui/menubar/MenubarSubTrigger.vue +36 -0
- package/dist/runtime/components/ui/menubar/MenubarSubTrigger.vue.d.ts +33 -0
- package/dist/runtime/components/ui/menubar/MenubarTrigger.vue +31 -0
- package/dist/runtime/components/ui/menubar/MenubarTrigger.vue.d.ts +31 -0
- package/dist/runtime/components/ui/menubar/index.d.ts +15 -0
- package/dist/runtime/components/ui/menubar/index.js +15 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenu.vue +45 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenu.vue.d.ts +42 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuContent.vue +34 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuContent.vue.d.ts +29 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuIndicator.vue +33 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuIndicator.vue.d.ts +17 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuItem.vue +22 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuItem.vue.d.ts +31 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuLink.vue +32 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuLink.vue.d.ts +29 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuList.vue +30 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuList.vue.d.ts +31 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuTrigger.vue +32 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuTrigger.vue.d.ts +31 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuViewport.vue +32 -0
- package/dist/runtime/components/ui/navigation-menu/NavigationMenuViewport.vue.d.ts +17 -0
- package/dist/runtime/components/ui/navigation-menu/index.d.ts +9 -0
- package/dist/runtime/components/ui/navigation-menu/index.js +12 -0
- package/dist/runtime/components/ui/number-field/NumberField.vue +33 -0
- package/dist/runtime/components/ui/number-field/NumberField.vue.d.ts +29 -0
- package/dist/runtime/components/ui/number-field/NumberFieldContent.vue +19 -0
- package/dist/runtime/components/ui/number-field/NumberFieldContent.vue.d.ts +30 -0
- package/dist/runtime/components/ui/number-field/NumberFieldDecrement.vue +31 -0
- package/dist/runtime/components/ui/number-field/NumberFieldDecrement.vue.d.ts +31 -0
- package/dist/runtime/components/ui/number-field/NumberFieldIncrement.vue +31 -0
- package/dist/runtime/components/ui/number-field/NumberFieldIncrement.vue.d.ts +31 -0
- package/dist/runtime/components/ui/number-field/NumberFieldInput.vue +19 -0
- package/dist/runtime/components/ui/number-field/NumberFieldInput.vue.d.ts +16 -0
- package/dist/runtime/components/ui/number-field/index.d.ts +5 -0
- package/dist/runtime/components/ui/number-field/index.js +5 -0
- package/dist/runtime/components/ui/pagination/Pagination.vue +34 -0
- package/dist/runtime/components/ui/pagination/Pagination.vue.d.ts +29 -0
- package/dist/runtime/components/ui/pagination/PaginationContent.vue +22 -0
- package/dist/runtime/components/ui/pagination/PaginationContent.vue.d.ts +31 -0
- package/dist/runtime/components/ui/pagination/PaginationEllipsis.vue +25 -0
- package/dist/runtime/components/ui/pagination/PaginationEllipsis.vue.d.ts +31 -0
- package/dist/runtime/components/ui/pagination/PaginationFirst.vue +36 -0
- package/dist/runtime/components/ui/pagination/PaginationFirst.vue.d.ts +48 -0
- package/dist/runtime/components/ui/pagination/PaginationItem.vue +35 -0
- package/dist/runtime/components/ui/pagination/PaginationItem.vue.d.ts +50 -0
- package/dist/runtime/components/ui/pagination/PaginationLast.vue +36 -0
- package/dist/runtime/components/ui/pagination/PaginationLast.vue.d.ts +48 -0
- package/dist/runtime/components/ui/pagination/PaginationNext.vue +36 -0
- package/dist/runtime/components/ui/pagination/PaginationNext.vue.d.ts +48 -0
- package/dist/runtime/components/ui/pagination/PaginationPrevious.vue +36 -0
- package/dist/runtime/components/ui/pagination/PaginationPrevious.vue.d.ts +48 -0
- package/dist/runtime/components/ui/pagination/index.d.ts +8 -0
- package/dist/runtime/components/ui/pagination/index.js +8 -0
- package/dist/runtime/components/ui/pin-input/PinInput.vue +42 -0
- package/dist/runtime/components/ui/pin-input/PinInput.vue.d.ts +41 -0
- package/dist/runtime/components/ui/pin-input/PinInputGroup.vue +22 -0
- package/dist/runtime/components/ui/pin-input/PinInputGroup.vue.d.ts +31 -0
- package/dist/runtime/components/ui/pin-input/PinInputSeparator.vue +20 -0
- package/dist/runtime/components/ui/pin-input/PinInputSeparator.vue.d.ts +26 -0
- package/dist/runtime/components/ui/pin-input/PinInputSlot.vue +30 -0
- package/dist/runtime/components/ui/pin-input/PinInputSlot.vue.d.ts +17 -0
- package/dist/runtime/components/ui/pin-input/index.d.ts +4 -0
- package/dist/runtime/components/ui/pin-input/index.js +4 -0
- package/dist/runtime/components/ui/popover/Popover.vue +19 -0
- package/dist/runtime/components/ui/popover/Popover.vue.d.ts +26 -0
- package/dist/runtime/components/ui/popover/PopoverAnchor.vue +17 -0
- package/dist/runtime/components/ui/popover/PopoverAnchor.vue.d.ts +26 -0
- package/dist/runtime/components/ui/popover/PopoverContent.vue +54 -0
- package/dist/runtime/components/ui/popover/PopoverContent.vue.d.ts +43 -0
- package/dist/runtime/components/ui/popover/PopoverTrigger.vue +16 -0
- package/dist/runtime/components/ui/popover/PopoverTrigger.vue.d.ts +26 -0
- package/dist/runtime/components/ui/popover/index.d.ts +4 -0
- package/dist/runtime/components/ui/popover/index.js +4 -0
- package/dist/runtime/components/ui/progress/Progress.vue +37 -0
- package/dist/runtime/components/ui/progress/Progress.vue.d.ts +31 -0
- package/dist/runtime/components/ui/progress/index.d.ts +1 -0
- package/dist/runtime/components/ui/progress/index.js +1 -0
- package/dist/runtime/components/ui/radio-group/RadioGroup.vue +34 -0
- package/dist/runtime/components/ui/radio-group/RadioGroup.vue.d.ts +29 -0
- package/dist/runtime/components/ui/radio-group/RadioGroupItem.vue +40 -0
- package/dist/runtime/components/ui/radio-group/RadioGroupItem.vue.d.ts +17 -0
- package/dist/runtime/components/ui/radio-group/index.d.ts +2 -0
- package/dist/runtime/components/ui/radio-group/index.js +2 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendar.vue +101 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendar.vue.d.ts +15 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarCell.vue +31 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarCell.vue.d.ts +31 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarCellTrigger.vue +45 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarCellTrigger.vue.d.ts +45 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarGrid.vue +25 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarGrid.vue.d.ts +31 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarGridBody.vue +16 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarGridBody.vue.d.ts +26 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarGridHead.vue +16 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarGridHead.vue.d.ts +26 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarGridRow.vue +25 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarGridRow.vue.d.ts +31 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarHeadCell.vue +30 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarHeadCell.vue.d.ts +31 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarHeader.vue +27 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarHeader.vue.d.ts +31 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarHeading.vue +29 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarHeading.vue.d.ts +37 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarNextButton.vue +37 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarNextButton.vue.d.ts +31 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarPrevButton.vue +37 -0
- package/dist/runtime/components/ui/range-calendar/RangeCalendarPrevButton.vue.d.ts +31 -0
- package/dist/runtime/components/ui/range-calendar/index.d.ts +12 -0
- package/dist/runtime/components/ui/range-calendar/index.js +12 -0
- package/dist/runtime/components/ui/resizable/ResizableHandle.vue +43 -0
- package/dist/runtime/components/ui/resizable/ResizableHandle.vue.d.ts +16 -0
- package/dist/runtime/components/ui/resizable/ResizablePanel.vue +25 -0
- package/dist/runtime/components/ui/resizable/ResizablePanel.vue.d.ts +26 -0
- package/dist/runtime/components/ui/resizable/ResizablePanelGroup.vue +33 -0
- package/dist/runtime/components/ui/resizable/ResizablePanelGroup.vue.d.ts +29 -0
- package/dist/runtime/components/ui/resizable/index.d.ts +3 -0
- package/dist/runtime/components/ui/resizable/index.js +3 -0
- package/dist/runtime/components/ui/scroll-area/ScrollArea.vue +36 -0
- package/dist/runtime/components/ui/scroll-area/ScrollArea.vue.d.ts +31 -0
- package/dist/runtime/components/ui/scroll-area/ScrollBar.vue +36 -0
- package/dist/runtime/components/ui/scroll-area/ScrollBar.vue.d.ts +31 -0
- package/dist/runtime/components/ui/scroll-area/index.d.ts +2 -0
- package/dist/runtime/components/ui/scroll-area/index.js +2 -0
- package/dist/runtime/components/ui/select/Select.vue +27 -0
- package/dist/runtime/components/ui/select/Select.vue.d.ts +26 -0
- package/dist/runtime/components/ui/select/SelectContent.vue +69 -0
- package/dist/runtime/components/ui/select/SelectContent.vue.d.ts +41 -0
- package/dist/runtime/components/ui/select/SelectGroup.vue +16 -0
- package/dist/runtime/components/ui/select/SelectGroup.vue.d.ts +26 -0
- package/dist/runtime/components/ui/select/SelectItem.vue +44 -0
- package/dist/runtime/components/ui/select/SelectItem.vue.d.ts +31 -0
- package/dist/runtime/components/ui/select/SelectItemText.vue +16 -0
- package/dist/runtime/components/ui/select/SelectItemText.vue.d.ts +26 -0
- package/dist/runtime/components/ui/select/SelectLabel.vue +19 -0
- package/dist/runtime/components/ui/select/SelectLabel.vue.d.ts +31 -0
- package/dist/runtime/components/ui/select/SelectScrollDownButton.vue +30 -0
- package/dist/runtime/components/ui/select/SelectScrollDownButton.vue.d.ts +31 -0
- package/dist/runtime/components/ui/select/SelectScrollUpButton.vue +30 -0
- package/dist/runtime/components/ui/select/SelectScrollUpButton.vue.d.ts +31 -0
- package/dist/runtime/components/ui/select/SelectSeparator.vue +19 -0
- package/dist/runtime/components/ui/select/SelectSeparator.vue.d.ts +17 -0
- package/dist/runtime/components/ui/select/SelectTrigger.vue +39 -0
- package/dist/runtime/components/ui/select/SelectTrigger.vue.d.ts +47 -0
- package/dist/runtime/components/ui/select/SelectValue.vue +17 -0
- package/dist/runtime/components/ui/select/SelectValue.vue.d.ts +26 -0
- package/dist/runtime/components/ui/select/index.d.ts +11 -0
- package/dist/runtime/components/ui/select/index.js +11 -0
- package/dist/runtime/components/ui/separator/Separator.vue +26 -0
- package/dist/runtime/components/ui/separator/Separator.vue.d.ts +34 -0
- package/dist/runtime/components/ui/separator/index.d.ts +1 -0
- package/dist/runtime/components/ui/separator/index.js +1 -0
- package/dist/runtime/components/ui/sheet/Sheet.vue +19 -0
- package/dist/runtime/components/ui/sheet/Sheet.vue.d.ts +26 -0
- package/dist/runtime/components/ui/sheet/SheetClose.vue +16 -0
- package/dist/runtime/components/ui/sheet/SheetClose.vue.d.ts +26 -0
- package/dist/runtime/components/ui/sheet/SheetContent.vue +56 -0
- package/dist/runtime/components/ui/sheet/SheetContent.vue.d.ts +43 -0
- package/dist/runtime/components/ui/sheet/SheetDescription.vue +21 -0
- package/dist/runtime/components/ui/sheet/SheetDescription.vue.d.ts +31 -0
- package/dist/runtime/components/ui/sheet/SheetFooter.vue +15 -0
- package/dist/runtime/components/ui/sheet/SheetFooter.vue.d.ts +30 -0
- package/dist/runtime/components/ui/sheet/SheetHeader.vue +15 -0
- package/dist/runtime/components/ui/sheet/SheetHeader.vue.d.ts +30 -0
- package/dist/runtime/components/ui/sheet/SheetOverlay.vue +27 -0
- package/dist/runtime/components/ui/sheet/SheetOverlay.vue.d.ts +31 -0
- package/dist/runtime/components/ui/sheet/SheetTitle.vue +21 -0
- package/dist/runtime/components/ui/sheet/SheetTitle.vue.d.ts +31 -0
- package/dist/runtime/components/ui/sheet/SheetTrigger.vue +16 -0
- package/dist/runtime/components/ui/sheet/SheetTrigger.vue.d.ts +26 -0
- package/dist/runtime/components/ui/sheet/index.d.ts +8 -0
- package/dist/runtime/components/ui/sheet/index.js +8 -0
- package/dist/runtime/components/ui/sidebar/Sidebar.vue +101 -0
- package/dist/runtime/components/ui/sidebar/Sidebar.vue.d.ts +48 -0
- package/dist/runtime/components/ui/sidebar/SidebarContent.vue +21 -0
- package/dist/runtime/components/ui/sidebar/SidebarContent.vue.d.ts +30 -0
- package/dist/runtime/components/ui/sidebar/SidebarFooter.vue +16 -0
- package/dist/runtime/components/ui/sidebar/SidebarFooter.vue.d.ts +30 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroup.vue +16 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroup.vue.d.ts +30 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroupAction.vue +28 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroupAction.vue.d.ts +31 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroupContent.vue +16 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroupContent.vue.d.ts +30 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroupLabel.vue +27 -0
- package/dist/runtime/components/ui/sidebar/SidebarGroupLabel.vue.d.ts +31 -0
- package/dist/runtime/components/ui/sidebar/SidebarHeader.vue +16 -0
- package/dist/runtime/components/ui/sidebar/SidebarHeader.vue.d.ts +30 -0
- package/dist/runtime/components/ui/sidebar/SidebarInput.vue +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarInput.vue.d.ts +30 -0
- package/dist/runtime/components/ui/sidebar/SidebarInset.vue +21 -0
- package/dist/runtime/components/ui/sidebar/SidebarInset.vue.d.ts +30 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenu.vue +16 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenu.vue.d.ts +30 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuAction.vue +33 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuAction.vue.d.ts +47 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuBadge.vue +26 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuBadge.vue.d.ts +30 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuButton.vue +44 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuButton.vue.d.ts +52 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuButtonChild.vue +28 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuButtonChild.vue.d.ts +54 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuItem.vue +16 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuItem.vue.d.ts +30 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSkeleton.vue +32 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSkeleton.vue.d.ts +18 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSub.vue +22 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSub.vue.d.ts +30 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSubButton.vue +34 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSubButton.vue.d.ts +52 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSubItem.vue +16 -0
- package/dist/runtime/components/ui/sidebar/SidebarMenuSubItem.vue.d.ts +30 -0
- package/dist/runtime/components/ui/sidebar/SidebarProvider.vue +73 -0
- package/dist/runtime/components/ui/sidebar/SidebarProvider.vue.d.ts +44 -0
- package/dist/runtime/components/ui/sidebar/SidebarRail.vue +32 -0
- package/dist/runtime/components/ui/sidebar/SidebarRail.vue.d.ts +30 -0
- package/dist/runtime/components/ui/sidebar/SidebarSeparator.vue +17 -0
- package/dist/runtime/components/ui/sidebar/SidebarSeparator.vue.d.ts +30 -0
- package/dist/runtime/components/ui/sidebar/SidebarTrigger.vue +24 -0
- package/dist/runtime/components/ui/sidebar/SidebarTrigger.vue.d.ts +16 -0
- package/dist/runtime/components/ui/sidebar/index.d.ts +37 -0
- package/dist/runtime/components/ui/sidebar/index.js +45 -0
- package/dist/runtime/components/ui/sidebar/utils.d.ts +56 -0
- package/dist/runtime/components/ui/sidebar/utils.js +8 -0
- package/dist/runtime/components/ui/skeleton/Skeleton.vue +13 -0
- package/dist/runtime/components/ui/skeleton/Skeleton.vue.d.ts +15 -0
- package/dist/runtime/components/ui/skeleton/index.d.ts +1 -0
- package/dist/runtime/components/ui/skeleton/index.js +1 -0
- package/dist/runtime/components/ui/slider/Slider.vue +63 -0
- package/dist/runtime/components/ui/slider/Slider.vue.d.ts +15 -0
- package/dist/runtime/components/ui/slider/index.d.ts +1 -0
- package/dist/runtime/components/ui/slider/index.js +1 -0
- package/dist/runtime/components/ui/sonner/Sonner.vue +36 -0
- package/dist/runtime/components/ui/sonner/Sonner.vue.d.ts +12 -0
- package/dist/runtime/components/ui/sonner/index.d.ts +1 -0
- package/dist/runtime/components/ui/sonner/index.js +1 -0
- package/dist/runtime/components/ui/stepper/Stepper.vue +28 -0
- package/dist/runtime/components/ui/stepper/Stepper.vue.d.ts +29 -0
- package/dist/runtime/components/ui/stepper/StepperDescription.vue +22 -0
- package/dist/runtime/components/ui/stepper/StepperDescription.vue.d.ts +31 -0
- package/dist/runtime/components/ui/stepper/StepperIndicator.vue +32 -0
- package/dist/runtime/components/ui/stepper/StepperIndicator.vue.d.ts +31 -0
- package/dist/runtime/components/ui/stepper/StepperItem.vue +30 -0
- package/dist/runtime/components/ui/stepper/StepperItem.vue.d.ts +31 -0
- package/dist/runtime/components/ui/stepper/StepperSeparator.vue +30 -0
- package/dist/runtime/components/ui/stepper/StepperSeparator.vue.d.ts +17 -0
- package/dist/runtime/components/ui/stepper/StepperTitle.vue +21 -0
- package/dist/runtime/components/ui/stepper/StepperTitle.vue.d.ts +31 -0
- package/dist/runtime/components/ui/stepper/StepperTrigger.vue +26 -0
- package/dist/runtime/components/ui/stepper/StepperTrigger.vue.d.ts +31 -0
- package/dist/runtime/components/ui/stepper/index.d.ts +7 -0
- package/dist/runtime/components/ui/stepper/index.js +7 -0
- package/dist/runtime/components/ui/switch/Switch.vue +48 -0
- package/dist/runtime/components/ui/switch/Switch.vue.d.ts +29 -0
- package/dist/runtime/components/ui/switch/index.d.ts +1 -0
- package/dist/runtime/components/ui/switch/index.js +1 -0
- package/dist/runtime/components/ui/table/Table.vue +17 -0
- package/dist/runtime/components/ui/table/Table.vue.d.ts +30 -0
- package/dist/runtime/components/ui/table/TableBody.vue +15 -0
- package/dist/runtime/components/ui/table/TableBody.vue.d.ts +30 -0
- package/dist/runtime/components/ui/table/TableCaption.vue +15 -0
- package/dist/runtime/components/ui/table/TableCaption.vue.d.ts +30 -0
- package/dist/runtime/components/ui/table/TableCell.vue +20 -0
- package/dist/runtime/components/ui/table/TableCell.vue.d.ts +30 -0
- package/dist/runtime/components/ui/table/TableEmpty.vue +29 -0
- package/dist/runtime/components/ui/table/TableEmpty.vue.d.ts +46 -0
- package/dist/runtime/components/ui/table/TableFooter.vue +17 -0
- package/dist/runtime/components/ui/table/TableFooter.vue.d.ts +30 -0
- package/dist/runtime/components/ui/table/TableHead.vue +20 -0
- package/dist/runtime/components/ui/table/TableHead.vue.d.ts +30 -0
- package/dist/runtime/components/ui/table/TableHeader.vue +12 -0
- package/dist/runtime/components/ui/table/TableHeader.vue.d.ts +30 -0
- package/dist/runtime/components/ui/table/TableRow.vue +20 -0
- package/dist/runtime/components/ui/table/TableRow.vue.d.ts +30 -0
- package/dist/runtime/components/ui/table/index.d.ts +9 -0
- package/dist/runtime/components/ui/table/index.js +9 -0
- package/dist/runtime/components/ui/table/utils.d.ts +3 -0
- package/dist/runtime/components/ui/table/utils.js +3 -0
- package/dist/runtime/components/ui/tabs/Tabs.vue +29 -0
- package/dist/runtime/components/ui/tabs/Tabs.vue.d.ts +29 -0
- package/dist/runtime/components/ui/tabs/TabsContent.vue +23 -0
- package/dist/runtime/components/ui/tabs/TabsContent.vue.d.ts +31 -0
- package/dist/runtime/components/ui/tabs/TabsList.vue +27 -0
- package/dist/runtime/components/ui/tabs/TabsList.vue.d.ts +31 -0
- package/dist/runtime/components/ui/tabs/TabsTrigger.vue +29 -0
- package/dist/runtime/components/ui/tabs/TabsTrigger.vue.d.ts +31 -0
- package/dist/runtime/components/ui/tabs/index.d.ts +4 -0
- package/dist/runtime/components/ui/tabs/index.js +4 -0
- package/dist/runtime/components/ui/tags-input/TagsInput.vue +45 -0
- package/dist/runtime/components/ui/tags-input/TagsInput.vue.d.ts +29 -0
- package/dist/runtime/components/ui/tags-input/TagsInputInput.vue +30 -0
- package/dist/runtime/components/ui/tags-input/TagsInputInput.vue.d.ts +17 -0
- package/dist/runtime/components/ui/tags-input/TagsInputItem.vue +31 -0
- package/dist/runtime/components/ui/tags-input/TagsInputItem.vue.d.ts +31 -0
- package/dist/runtime/components/ui/tags-input/TagsInputItemDelete.vue +27 -0
- package/dist/runtime/components/ui/tags-input/TagsInputItemDelete.vue.d.ts +31 -0
- package/dist/runtime/components/ui/tags-input/TagsInputItemText.vue +22 -0
- package/dist/runtime/components/ui/tags-input/TagsInputItemText.vue.d.ts +17 -0
- package/dist/runtime/components/ui/tags-input/index.d.ts +5 -0
- package/dist/runtime/components/ui/tags-input/index.js +5 -0
- package/dist/runtime/components/ui/textarea/Textarea.vue +27 -0
- package/dist/runtime/components/ui/textarea/Textarea.vue.d.ts +16 -0
- package/dist/runtime/components/ui/textarea/index.d.ts +1 -0
- package/dist/runtime/components/ui/textarea/index.js +1 -0
- package/dist/runtime/components/ui/toggle/Toggle.vue +35 -0
- package/dist/runtime/components/ui/toggle/Toggle.vue.d.ts +48 -0
- package/dist/runtime/components/ui/toggle/index.d.ts +7 -0
- package/dist/runtime/components/ui/toggle/index.js +22 -0
- package/dist/runtime/components/ui/toggle-group/ToggleGroup.vue +51 -0
- package/dist/runtime/components/ui/toggle-group/ToggleGroup.vue.d.ts +34 -0
- package/dist/runtime/components/ui/toggle-group/ToggleGroupItem.vue +44 -0
- package/dist/runtime/components/ui/toggle-group/ToggleGroupItem.vue.d.ts +38 -0
- package/dist/runtime/components/ui/toggle-group/index.d.ts +2 -0
- package/dist/runtime/components/ui/toggle-group/index.js +2 -0
- package/dist/runtime/components/ui/tooltip/Tooltip.vue +23 -0
- package/dist/runtime/components/ui/tooltip/Tooltip.vue.d.ts +26 -0
- package/dist/runtime/components/ui/tooltip/TooltipContent.vue +56 -0
- package/dist/runtime/components/ui/tooltip/TooltipContent.vue.d.ts +41 -0
- package/dist/runtime/components/ui/tooltip/TooltipProvider.vue +17 -0
- package/dist/runtime/components/ui/tooltip/TooltipProvider.vue.d.ts +40 -0
- package/dist/runtime/components/ui/tooltip/TooltipTrigger.vue +17 -0
- package/dist/runtime/components/ui/tooltip/TooltipTrigger.vue.d.ts +26 -0
- package/dist/runtime/components/ui/tooltip/index.d.ts +4 -0
- package/dist/runtime/components/ui/tooltip/index.js +4 -0
- package/dist/runtime/composables/useAuthorization.d.ts +2 -2
- package/dist/runtime/composables/useAuthorization.js +3 -7
- package/dist/runtime/composables/useFormState.d.ts +1 -1
- package/dist/runtime/composables/useFormState.js +1 -1
- package/dist/runtime/composables/useTableState.d.ts +2 -2
- package/dist/runtime/composables/useTableState.js +1 -1
- package/dist/runtime/i18n/i18n.config.d.ts +0 -5
- package/dist/runtime/index.css +1 -1
- package/dist/runtime/middleware/authentication.d.ts +1 -1
- package/dist/runtime/middleware/authentication.js +3 -1
- package/dist/runtime/middleware/authorization.d.ts +1 -1
- package/dist/runtime/middleware/authorization.js +4 -6
- package/dist/runtime/plugins/auth.d.ts +59 -1
- package/dist/runtime/plugins/auth.js +2 -1
- package/dist/runtime/plugins/vue-json.d.ts +1 -1
- package/dist/runtime/utils/buildSortQuery.d.ts +1 -1
- package/dist/runtime/utils/getFromLocalStorage.js +1 -1
- package/package.json +8 -2
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { createContext } from "reka-ui";
|
|
2
|
+
import { useFieldValue, useFormValues } from "vee-validate";
|
|
3
|
+
import { computed, ref, watch } from "vue";
|
|
4
|
+
import { DependencyType } from "./interface.js";
|
|
5
|
+
import { getFromPath, getIndexIfArray } from "./utils.js";
|
|
6
|
+
export const [injectDependencies, provideDependencies] = createContext("AutoFormDependencies");
|
|
7
|
+
export default function useDependencies(fieldName) {
|
|
8
|
+
const form = useFormValues();
|
|
9
|
+
const currentFieldName = fieldName.replace(/\[\d+\]/g, "");
|
|
10
|
+
const currentFieldValue = useFieldValue(fieldName);
|
|
11
|
+
if (!form)
|
|
12
|
+
throw new Error("useDependencies should be used within <AutoForm>");
|
|
13
|
+
const dependencies = injectDependencies();
|
|
14
|
+
const isDisabled = ref(false);
|
|
15
|
+
const isHidden = ref(false);
|
|
16
|
+
const isRequired = ref(false);
|
|
17
|
+
const overrideOptions = ref();
|
|
18
|
+
const currentFieldDependencies = computed(() => dependencies.value?.filter(
|
|
19
|
+
(dependency) => dependency.targetField === currentFieldName
|
|
20
|
+
));
|
|
21
|
+
function getSourceValue(dep) {
|
|
22
|
+
const source = dep.sourceField;
|
|
23
|
+
const index = getIndexIfArray(fieldName) ?? -1;
|
|
24
|
+
const [sourceLast, ...sourceInitial] = source.split(".").toReversed();
|
|
25
|
+
const [_targetLast, ...targetInitial] = dep.targetField.split(".").toReversed();
|
|
26
|
+
if (index >= 0 && sourceInitial.join(",") === targetInitial.join(",")) {
|
|
27
|
+
const [_currentLast, ...currentInitial] = fieldName.split(".").toReversed();
|
|
28
|
+
return getFromPath(form.value, currentInitial.join(".") + sourceLast);
|
|
29
|
+
}
|
|
30
|
+
return getFromPath(form.value, source);
|
|
31
|
+
}
|
|
32
|
+
const sourceFieldValues = computed(() => currentFieldDependencies.value?.map((dep) => getSourceValue(dep)));
|
|
33
|
+
const resetConditionState = () => {
|
|
34
|
+
isDisabled.value = false;
|
|
35
|
+
isHidden.value = false;
|
|
36
|
+
isRequired.value = false;
|
|
37
|
+
overrideOptions.value = void 0;
|
|
38
|
+
};
|
|
39
|
+
watch([sourceFieldValues, dependencies], () => {
|
|
40
|
+
resetConditionState();
|
|
41
|
+
currentFieldDependencies.value?.forEach((dep) => {
|
|
42
|
+
const sourceValue = getSourceValue(dep);
|
|
43
|
+
const conditionMet = dep.when(sourceValue, currentFieldValue.value);
|
|
44
|
+
switch (dep.type) {
|
|
45
|
+
case DependencyType.DISABLES:
|
|
46
|
+
if (conditionMet)
|
|
47
|
+
isDisabled.value = true;
|
|
48
|
+
break;
|
|
49
|
+
case DependencyType.REQUIRES:
|
|
50
|
+
if (conditionMet)
|
|
51
|
+
isRequired.value = true;
|
|
52
|
+
break;
|
|
53
|
+
case DependencyType.HIDES:
|
|
54
|
+
if (conditionMet)
|
|
55
|
+
isHidden.value = true;
|
|
56
|
+
break;
|
|
57
|
+
case DependencyType.SETS_OPTIONS:
|
|
58
|
+
if (conditionMet)
|
|
59
|
+
overrideOptions.value = dep.options;
|
|
60
|
+
break;
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
}, { immediate: true, deep: true });
|
|
64
|
+
return {
|
|
65
|
+
isDisabled,
|
|
66
|
+
isHidden,
|
|
67
|
+
isRequired,
|
|
68
|
+
overrideOptions
|
|
69
|
+
};
|
|
70
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export { default as AutoForm } from './AutoForm.vue.js';
|
|
2
|
+
export { default as AutoFormField } from './AutoFormField.vue.js';
|
|
3
|
+
export { default as AutoFormFieldArray } from './AutoFormFieldArray.vue.js';
|
|
4
|
+
export { default as AutoFormFieldBoolean } from './AutoFormFieldBoolean.vue.js';
|
|
5
|
+
export { default as AutoFormFieldDate } from './AutoFormFieldDate.vue.js';
|
|
6
|
+
export { default as AutoFormFieldEnum } from './AutoFormFieldEnum.vue.js';
|
|
7
|
+
export { default as AutoFormFieldFile } from './AutoFormFieldFile.vue.js';
|
|
8
|
+
export { default as AutoFormFieldInput } from './AutoFormFieldInput.vue.js';
|
|
9
|
+
export { default as AutoFormFieldNumber } from './AutoFormFieldNumber.vue.js';
|
|
10
|
+
export { default as AutoFormFieldObject } from './AutoFormFieldObject.vue.js';
|
|
11
|
+
export { default as AutoFormLabel } from './AutoFormLabel.vue.js';
|
|
12
|
+
export type { Config, ConfigItem, FieldProps } from './interface.js';
|
|
13
|
+
export { getBaseSchema, getBaseType, getObjectFormSchema } from './utils.js';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { default as AutoForm } from "./AutoForm.vue";
|
|
2
|
+
export { default as AutoFormField } from "./AutoFormField.vue";
|
|
3
|
+
export { default as AutoFormFieldArray } from "./AutoFormFieldArray.vue";
|
|
4
|
+
export { default as AutoFormFieldBoolean } from "./AutoFormFieldBoolean.vue";
|
|
5
|
+
export { default as AutoFormFieldDate } from "./AutoFormFieldDate.vue";
|
|
6
|
+
export { default as AutoFormFieldEnum } from "./AutoFormFieldEnum.vue";
|
|
7
|
+
export { default as AutoFormFieldFile } from "./AutoFormFieldFile.vue";
|
|
8
|
+
export { default as AutoFormFieldInput } from "./AutoFormFieldInput.vue";
|
|
9
|
+
export { default as AutoFormFieldNumber } from "./AutoFormFieldNumber.vue";
|
|
10
|
+
export { default as AutoFormFieldObject } from "./AutoFormFieldObject.vue";
|
|
11
|
+
export { default as AutoFormLabel } from "./AutoFormLabel.vue";
|
|
12
|
+
export { getBaseSchema, getBaseType, getObjectFormSchema } from "./utils.js";
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { Component, InputHTMLAttributes } from 'vue';
|
|
2
|
+
import type { z, ZodAny } from 'zod';
|
|
3
|
+
import type { INPUT_COMPONENTS } from './constant.js';
|
|
4
|
+
export interface FieldProps {
|
|
5
|
+
fieldName: string;
|
|
6
|
+
label?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
config?: ConfigItem;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface Shape {
|
|
12
|
+
type: string;
|
|
13
|
+
default?: any;
|
|
14
|
+
required?: boolean;
|
|
15
|
+
options?: string[];
|
|
16
|
+
schema?: ZodAny;
|
|
17
|
+
}
|
|
18
|
+
export interface InputComponents {
|
|
19
|
+
date: Component;
|
|
20
|
+
select: Component;
|
|
21
|
+
radio: Component;
|
|
22
|
+
checkbox: Component;
|
|
23
|
+
switch: Component;
|
|
24
|
+
textarea: Component;
|
|
25
|
+
number: Component;
|
|
26
|
+
string: Component;
|
|
27
|
+
file: Component;
|
|
28
|
+
array: Component;
|
|
29
|
+
object: Component;
|
|
30
|
+
}
|
|
31
|
+
export interface ConfigItem {
|
|
32
|
+
/** Value for the `FormLabel` */
|
|
33
|
+
label?: string;
|
|
34
|
+
/** Value for the `FormDescription` */
|
|
35
|
+
description?: string;
|
|
36
|
+
/** Pick which component to be rendered. */
|
|
37
|
+
component?: keyof typeof INPUT_COMPONENTS | Component;
|
|
38
|
+
/** Hide `FormLabel`. */
|
|
39
|
+
hideLabel?: boolean;
|
|
40
|
+
inputProps?: InputHTMLAttributes;
|
|
41
|
+
}
|
|
42
|
+
type UnwrapArray<T> = T extends (infer U)[] ? U : never;
|
|
43
|
+
export type Config<SchemaType extends object> = {
|
|
44
|
+
[Key in keyof SchemaType]?: SchemaType[Key] extends any[] ? UnwrapArray<Config<SchemaType[Key]>> : SchemaType[Key] extends object ? Config<SchemaType[Key]> : ConfigItem;
|
|
45
|
+
};
|
|
46
|
+
export declare enum DependencyType {
|
|
47
|
+
DISABLES = 0,
|
|
48
|
+
REQUIRES = 1,
|
|
49
|
+
HIDES = 2,
|
|
50
|
+
SETS_OPTIONS = 3
|
|
51
|
+
}
|
|
52
|
+
interface BaseDependency<SchemaType extends z.infer<z.ZodObject<any, any>>> {
|
|
53
|
+
sourceField: keyof SchemaType;
|
|
54
|
+
type: DependencyType;
|
|
55
|
+
targetField: keyof SchemaType;
|
|
56
|
+
when: (sourceFieldValue: any, targetFieldValue: any) => boolean;
|
|
57
|
+
}
|
|
58
|
+
export type ValueDependency<SchemaType extends z.infer<z.ZodObject<any, any>>> = BaseDependency<SchemaType> & {
|
|
59
|
+
type: DependencyType.DISABLES | DependencyType.REQUIRES | DependencyType.HIDES;
|
|
60
|
+
};
|
|
61
|
+
export type EnumValues = readonly [string, ...string[]];
|
|
62
|
+
export type OptionsDependency<SchemaType extends z.infer<z.ZodObject<any, any>>> = BaseDependency<SchemaType> & {
|
|
63
|
+
type: DependencyType.SETS_OPTIONS;
|
|
64
|
+
options: EnumValues;
|
|
65
|
+
};
|
|
66
|
+
export type Dependency<SchemaType extends z.infer<z.ZodObject<any, any>>> = ValueDependency<SchemaType> | OptionsDependency<SchemaType>;
|
|
67
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export var DependencyType = /* @__PURE__ */ ((DependencyType2) => {
|
|
2
|
+
DependencyType2[DependencyType2["DISABLES"] = 0] = "DISABLES";
|
|
3
|
+
DependencyType2[DependencyType2["REQUIRES"] = 1] = "REQUIRES";
|
|
4
|
+
DependencyType2[DependencyType2["HIDES"] = 2] = "HIDES";
|
|
5
|
+
DependencyType2[DependencyType2["SETS_OPTIONS"] = 3] = "SETS_OPTIONS";
|
|
6
|
+
return DependencyType2;
|
|
7
|
+
})(DependencyType || {});
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { z } from 'zod';
|
|
2
|
+
export type ZodObjectOrWrapped = z.ZodObject<any, any> | z.ZodEffects<z.ZodObject<any, any>>;
|
|
3
|
+
/**
|
|
4
|
+
* Beautify a camelCase string.
|
|
5
|
+
* e.g. "myString" -> "My String"
|
|
6
|
+
*/
|
|
7
|
+
export declare function beautifyObjectName(string: string): string;
|
|
8
|
+
/**
|
|
9
|
+
* Parse string and extract the index
|
|
10
|
+
* @param string
|
|
11
|
+
* @returns index or undefined
|
|
12
|
+
*/
|
|
13
|
+
export declare function getIndexIfArray(string: string): number | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* Get the lowest level Zod type.
|
|
16
|
+
* This will unpack optionals, refinements, etc.
|
|
17
|
+
*/
|
|
18
|
+
export declare function getBaseSchema<ChildType extends z.ZodAny | z.AnyZodObject = z.ZodAny>(schema: ChildType | z.ZodEffects<ChildType>): ChildType | null;
|
|
19
|
+
/**
|
|
20
|
+
* Get the type name of the lowest level Zod type.
|
|
21
|
+
* This will unpack optionals, refinements, etc.
|
|
22
|
+
*/
|
|
23
|
+
export declare function getBaseType(schema: z.ZodAny): "" | z.ZodFirstPartyTypeKind.ZodAny;
|
|
24
|
+
/**
|
|
25
|
+
* Search for a "ZodDefault" in the Zod stack and return its value.
|
|
26
|
+
*/
|
|
27
|
+
export declare function getDefaultValueInZodStack(schema: z.ZodAny): any;
|
|
28
|
+
export declare function getObjectFormSchema(schema: ZodObjectOrWrapped): z.ZodObject<any, any>;
|
|
29
|
+
/**
|
|
30
|
+
* Constructs a path with dot paths for arrays to use brackets to be compatible with vee-validate path syntax
|
|
31
|
+
*/
|
|
32
|
+
export declare function normalizeFormPath(path: string): string;
|
|
33
|
+
type NestedRecord = Record<string, unknown> | {
|
|
34
|
+
[k: string]: NestedRecord;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Checks if the path opted out of nested fields using `[fieldName]` syntax
|
|
38
|
+
*/
|
|
39
|
+
export declare function isNotNestedPath(path: string): boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Gets a nested property value from an object
|
|
42
|
+
*/
|
|
43
|
+
export declare function getFromPath<TValue = unknown>(object: NestedRecord | undefined, path: string): TValue | undefined;
|
|
44
|
+
export declare function getFromPath<TValue = unknown, TFallback = TValue>(object: NestedRecord | undefined, path: string, fallback?: TFallback): TValue | TFallback;
|
|
45
|
+
type Booleanish = boolean | 'true' | 'false';
|
|
46
|
+
export declare function booleanishToBoolean(value: Booleanish): boolean;
|
|
47
|
+
export declare function maybeBooleanishToBoolean(value?: Booleanish): boolean | undefined;
|
|
48
|
+
export {};
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
export function beautifyObjectName(string) {
|
|
2
|
+
let output = string.replace(/\[\d+\]/g, "").replace(/([A-Z])/g, " $1");
|
|
3
|
+
output = output.charAt(0).toUpperCase() + output.slice(1);
|
|
4
|
+
return output;
|
|
5
|
+
}
|
|
6
|
+
export function getIndexIfArray(string) {
|
|
7
|
+
const indexRegex = /\[(\d+)\]/;
|
|
8
|
+
const match = string.match(indexRegex);
|
|
9
|
+
const index = match ? Number.parseInt(match[1]) : void 0;
|
|
10
|
+
return index;
|
|
11
|
+
}
|
|
12
|
+
export function getBaseSchema(schema) {
|
|
13
|
+
if (!schema)
|
|
14
|
+
return null;
|
|
15
|
+
if ("innerType" in schema._def)
|
|
16
|
+
return getBaseSchema(schema._def.innerType);
|
|
17
|
+
if ("schema" in schema._def)
|
|
18
|
+
return getBaseSchema(schema._def.schema);
|
|
19
|
+
return schema;
|
|
20
|
+
}
|
|
21
|
+
export function getBaseType(schema) {
|
|
22
|
+
const baseSchema = getBaseSchema(schema);
|
|
23
|
+
return baseSchema ? baseSchema._def.typeName : "";
|
|
24
|
+
}
|
|
25
|
+
export function getDefaultValueInZodStack(schema) {
|
|
26
|
+
const typedSchema = schema;
|
|
27
|
+
if (typedSchema._def.typeName === "ZodDefault")
|
|
28
|
+
return typedSchema._def.defaultValue();
|
|
29
|
+
if ("innerType" in typedSchema._def) {
|
|
30
|
+
return getDefaultValueInZodStack(
|
|
31
|
+
typedSchema._def.innerType
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
if ("schema" in typedSchema._def) {
|
|
35
|
+
return getDefaultValueInZodStack(
|
|
36
|
+
typedSchema._def.schema
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
return void 0;
|
|
40
|
+
}
|
|
41
|
+
export function getObjectFormSchema(schema) {
|
|
42
|
+
if (schema?._def.typeName === "ZodEffects") {
|
|
43
|
+
const typedSchema = schema;
|
|
44
|
+
return getObjectFormSchema(typedSchema._def.schema);
|
|
45
|
+
}
|
|
46
|
+
return schema;
|
|
47
|
+
}
|
|
48
|
+
function isIndex(value) {
|
|
49
|
+
return Number(value) >= 0;
|
|
50
|
+
}
|
|
51
|
+
export function normalizeFormPath(path) {
|
|
52
|
+
const pathArr = path.split(".");
|
|
53
|
+
if (!pathArr.length)
|
|
54
|
+
return "";
|
|
55
|
+
let fullPath = String(pathArr[0]);
|
|
56
|
+
for (let i = 1; i < pathArr.length; i++) {
|
|
57
|
+
if (isIndex(pathArr[i])) {
|
|
58
|
+
fullPath += `[${pathArr[i]}]`;
|
|
59
|
+
continue;
|
|
60
|
+
}
|
|
61
|
+
fullPath += `.${pathArr[i]}`;
|
|
62
|
+
}
|
|
63
|
+
return fullPath;
|
|
64
|
+
}
|
|
65
|
+
export function isNotNestedPath(path) {
|
|
66
|
+
return /^\[.+\]$/.test(path);
|
|
67
|
+
}
|
|
68
|
+
function isObject(obj) {
|
|
69
|
+
return obj !== null && !!obj && typeof obj === "object" && !Array.isArray(obj);
|
|
70
|
+
}
|
|
71
|
+
function isContainerValue(value) {
|
|
72
|
+
return isObject(value) || Array.isArray(value);
|
|
73
|
+
}
|
|
74
|
+
function cleanupNonNestedPath(path) {
|
|
75
|
+
if (isNotNestedPath(path))
|
|
76
|
+
return path.replace(/\[|\]/g, "");
|
|
77
|
+
return path;
|
|
78
|
+
}
|
|
79
|
+
export function getFromPath(object, path, fallback) {
|
|
80
|
+
if (!object)
|
|
81
|
+
return fallback;
|
|
82
|
+
if (isNotNestedPath(path))
|
|
83
|
+
return object[cleanupNonNestedPath(path)];
|
|
84
|
+
const resolvedValue = (path || "").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((acc, propKey) => {
|
|
85
|
+
if (isContainerValue(acc) && propKey in acc)
|
|
86
|
+
return acc[propKey];
|
|
87
|
+
return fallback;
|
|
88
|
+
}, object);
|
|
89
|
+
return resolvedValue;
|
|
90
|
+
}
|
|
91
|
+
export function booleanishToBoolean(value) {
|
|
92
|
+
switch (value) {
|
|
93
|
+
case "true":
|
|
94
|
+
case true:
|
|
95
|
+
return true;
|
|
96
|
+
case "false":
|
|
97
|
+
case false:
|
|
98
|
+
return false;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
export function maybeBooleanishToBoolean(value) {
|
|
102
|
+
return value ? booleanishToBoolean(value) : void 0;
|
|
103
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { AvatarRoot } from "reka-ui";
|
|
3
|
+
import { cn } from "../../../lib/utils";
|
|
4
|
+
const props = defineProps({
|
|
5
|
+
class: { type: null, required: false }
|
|
6
|
+
});
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<template>
|
|
10
|
+
<AvatarRoot
|
|
11
|
+
data-slot="avatar"
|
|
12
|
+
:class="
|
|
13
|
+
cn(
|
|
14
|
+
'relative flex size-8 shrink-0 overflow-hidden rounded-full',
|
|
15
|
+
props.class
|
|
16
|
+
)
|
|
17
|
+
"
|
|
18
|
+
>
|
|
19
|
+
<slot />
|
|
20
|
+
</AvatarRoot>
|
|
21
|
+
</template>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { HTMLAttributes } from "vue";
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
11
|
+
class?: HTMLAttributes["class"];
|
|
12
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
13
|
+
class?: HTMLAttributes["class"];
|
|
14
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
18
|
+
type __VLS_TypePropsToOption<T> = {
|
|
19
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
20
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
21
|
+
} : {
|
|
22
|
+
type: import('vue').PropType<T[K]>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
3
|
+
import { AvatarFallback } from "reka-ui";
|
|
4
|
+
import { cn } from "../../../lib/utils";
|
|
5
|
+
const props = defineProps({
|
|
6
|
+
delayMs: { type: Number, required: false },
|
|
7
|
+
asChild: { type: Boolean, required: false },
|
|
8
|
+
as: { type: [String, Object, Function], required: false },
|
|
9
|
+
class: { type: null, required: false }
|
|
10
|
+
});
|
|
11
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<template>
|
|
15
|
+
<AvatarFallback
|
|
16
|
+
data-slot="avatar-fallback"
|
|
17
|
+
v-bind="delegatedProps"
|
|
18
|
+
:class="
|
|
19
|
+
cn(
|
|
20
|
+
'bg-muted flex size-full items-center justify-center rounded-full',
|
|
21
|
+
props.class
|
|
22
|
+
)
|
|
23
|
+
"
|
|
24
|
+
>
|
|
25
|
+
<slot />
|
|
26
|
+
</AvatarFallback>
|
|
27
|
+
</template>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { HTMLAttributes } from "vue";
|
|
2
|
+
import { type AvatarFallbackProps } from "reka-ui";
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
attrs: Partial<{}>;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<AvatarFallbackProps & {
|
|
12
|
+
class?: HTMLAttributes["class"];
|
|
13
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<AvatarFallbackProps & {
|
|
14
|
+
class?: HTMLAttributes["class"];
|
|
15
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
16
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
19
|
+
type __VLS_TypePropsToOption<T> = {
|
|
20
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
21
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
22
|
+
} : {
|
|
23
|
+
type: import('vue').PropType<T[K]>;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { AvatarImage } from "reka-ui";
|
|
3
|
+
const props = defineProps({
|
|
4
|
+
src: { type: String, required: true },
|
|
5
|
+
referrerPolicy: { type: null, required: false },
|
|
6
|
+
crossOrigin: { type: null, required: false },
|
|
7
|
+
asChild: { type: Boolean, required: false },
|
|
8
|
+
as: { type: [String, Object, Function], required: false }
|
|
9
|
+
});
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<template>
|
|
13
|
+
<AvatarImage
|
|
14
|
+
data-slot="avatar-image"
|
|
15
|
+
v-bind="props"
|
|
16
|
+
class="aspect-square size-full"
|
|
17
|
+
>
|
|
18
|
+
<slot />
|
|
19
|
+
</AvatarImage>
|
|
20
|
+
</template>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { AvatarImageProps } from 'reka-ui';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<AvatarImageProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<AvatarImageProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
11
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
14
|
+
type __VLS_TypePropsToOption<T> = {
|
|
15
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
16
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
17
|
+
} : {
|
|
18
|
+
type: import('vue').PropType<T[K]>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
3
|
+
import { Primitive } from "reka-ui";
|
|
4
|
+
import { cn } from "../../../lib/utils";
|
|
5
|
+
import { badgeVariants } from ".";
|
|
6
|
+
const props = defineProps({
|
|
7
|
+
asChild: { type: Boolean, required: false },
|
|
8
|
+
as: { type: [String, Object, Function], required: false },
|
|
9
|
+
variant: { type: null, required: false },
|
|
10
|
+
class: { type: null, required: false }
|
|
11
|
+
});
|
|
12
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<template>
|
|
16
|
+
<Primitive
|
|
17
|
+
data-slot="badge"
|
|
18
|
+
:class="cn(badgeVariants({ variant }), props.class)"
|
|
19
|
+
v-bind="delegatedProps"
|
|
20
|
+
>
|
|
21
|
+
<slot />
|
|
22
|
+
</Primitive>
|
|
23
|
+
</template>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { PrimitiveProps } from "reka-ui";
|
|
2
|
+
import type { HTMLAttributes } from "vue";
|
|
3
|
+
import { type BadgeVariants } from ".";
|
|
4
|
+
declare function __VLS_template(): {
|
|
5
|
+
slots: {
|
|
6
|
+
default?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
attrs: Partial<{}>;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<PrimitiveProps & {
|
|
13
|
+
variant?: BadgeVariants["variant"];
|
|
14
|
+
class?: HTMLAttributes["class"];
|
|
15
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<PrimitiveProps & {
|
|
16
|
+
variant?: BadgeVariants["variant"];
|
|
17
|
+
class?: HTMLAttributes["class"];
|
|
18
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
19
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
22
|
+
type __VLS_TypePropsToOption<T> = {
|
|
23
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
24
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
25
|
+
} : {
|
|
26
|
+
type: import('vue').PropType<T[K]>;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
31
|
+
new (): {
|
|
32
|
+
$slots: S;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
export { default as Badge } from './Badge.vue.js';
|
|
3
|
+
export declare const badgeVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
export type BadgeVariants = VariantProps<typeof badgeVariants>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { cva } from "class-variance-authority";
|
|
2
|
+
export { default as Badge } from "./Badge.vue";
|
|
3
|
+
export const badgeVariants = cva(
|
|
4
|
+
"inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
|
|
5
|
+
{
|
|
6
|
+
variants: {
|
|
7
|
+
variant: {
|
|
8
|
+
default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
|
|
9
|
+
secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
|
|
10
|
+
destructive: "border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
11
|
+
outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
defaultVariants: {
|
|
15
|
+
variant: "default"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
);
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'vue';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
};
|
|
6
|
+
refs: {};
|
|
7
|
+
attrs: Partial<{}>;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
11
|
+
class?: HTMLAttributes["class"];
|
|
12
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
13
|
+
class?: HTMLAttributes["class"];
|
|
14
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
18
|
+
type __VLS_TypePropsToOption<T> = {
|
|
19
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
20
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
21
|
+
} : {
|
|
22
|
+
type: import('vue').PropType<T[K]>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { MoreHorizontal } from "lucide-vue-next";
|
|
3
|
+
import { cn } from "../../../lib/utils";
|
|
4
|
+
const props = defineProps({
|
|
5
|
+
class: { type: null, required: false }
|
|
6
|
+
});
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<template>
|
|
10
|
+
<span
|
|
11
|
+
data-slot="breadcrumb-ellipsis"
|
|
12
|
+
role="presentation"
|
|
13
|
+
aria-hidden="true"
|
|
14
|
+
:class="cn('flex size-9 items-center justify-center', props.class)"
|
|
15
|
+
>
|
|
16
|
+
<slot>
|
|
17
|
+
<MoreHorizontal class="size-4" />
|
|
18
|
+
</slot>
|
|
19
|
+
<span class="sr-only">More</span>
|
|
20
|
+
</span>
|
|
21
|
+
</template>
|