From 0ea0f204cb4fdb11e2607109138038001a7eb314 Mon Sep 17 00:00:00 2001 From: Vben Date: Sun, 13 Oct 2024 10:58:09 +0800 Subject: [PATCH] refactor: change the shadcn-ui directory and remove rarely used components (#4626) --- .../ui-kit/menu-ui/src/components/index.ts | 1 + .../src/components}/menu-badge-dot.vue | 0 .../src/components}/menu-badge.vue | 0 .../menu-ui/src/components/menu-item.vue | 5 +- .../@core/ui-kit/menu-ui/src/sub-menu.vue | 6 +- .../src/components/avatar/avatar.vue | 2 +- .../src/components/breadcrumb/breadcrumb.vue | 6 +- .../shadcn-ui/src/components/button/button.ts | 2 +- .../src/components/button/button.vue | 2 +- .../src/components/button/icon-button.vue | 2 +- .../src/components/checkbox/checkbox.vue | 2 +- .../components/context-menu/context-menu.vue | 2 +- .../dropdown-menu/dropdown-menu.vue | 2 +- .../dropdown-menu/dropdown-radio-menu.vue | 2 +- .../src/components/hover-card/hover-card.vue | 6 +- .../ui-kit/shadcn-ui/src/components/index.ts | 33 ----- .../input-password/input-password.vue | 2 +- .../shadcn-ui/src/components/link/index.ts | 1 - .../shadcn-ui/src/components/link/link.vue | 28 ---- .../src/components/menu-badge/index.ts | 1 - .../src/components/pagination/index.ts | 2 - .../src/components/pagination/pagination.ts | 41 ------ .../src/components/pagination/pagination.vue | 121 ----------------- .../src/components/pin-input/input.vue | 2 +- .../src/components/popover/popover.vue | 2 +- .../src/components/scrollbar/scrollbar.vue | 2 +- .../src/components/segmented/segmented.vue | 2 +- .../src/components/select/select.vue | 2 +- .../shadcn-ui/src/components/swap/index.ts | 1 - .../shadcn-ui/src/components/swap/swap.vue | 126 ------------------ .../src/components/tooltip/tooltip.vue | 2 +- packages/@core/ui-kit/shadcn-ui/src/index.ts | 1 + .../ui/accordion/Accordion.vue | 0 .../ui/accordion/AccordionContent.vue | 0 .../ui/accordion/AccordionItem.vue | 0 .../ui/accordion/AccordionTrigger.vue | 0 .../{components => }/ui/accordion/index.ts | 0 .../src/{components => }/ui/avatar/Avatar.vue | 0 .../ui/avatar/AvatarFallback.vue | 0 .../ui/avatar/AvatarImage.vue | 0 .../src/{components => }/ui/avatar/avatar.ts | 0 .../src/{components => }/ui/avatar/index.ts | 0 .../src/{components => }/ui/badge/Badge.vue | 0 .../src/{components => }/ui/badge/badge.ts | 0 .../src/{components => }/ui/badge/index.ts | 0 .../ui/breadcrumb/Breadcrumb.vue | 0 .../ui/breadcrumb/BreadcrumbEllipsis.vue | 0 .../ui/breadcrumb/BreadcrumbItem.vue | 0 .../ui/breadcrumb/BreadcrumbLink.vue | 0 .../ui/breadcrumb/BreadcrumbList.vue | 0 .../ui/breadcrumb/BreadcrumbPage.vue | 0 .../ui/breadcrumb/BreadcrumbSeparator.vue | 0 .../{components => }/ui/breadcrumb/index.ts | 0 .../src/{components => }/ui/button/Button.vue | 0 .../src/{components => }/ui/button/button.ts | 0 .../src/{components => }/ui/button/index.ts | 0 .../src/{components => }/ui/button/types.ts | 0 .../src/{components => }/ui/card/Card.vue | 0 .../{components => }/ui/card/CardContent.vue | 0 .../ui/card/CardDescription.vue | 0 .../{components => }/ui/card/CardFooter.vue | 0 .../{components => }/ui/card/CardHeader.vue | 0 .../{components => }/ui/card/CardTitle.vue | 0 .../src/{components => }/ui/card/index.ts | 0 .../{components => }/ui/checkbox/Checkbox.vue | 0 .../src/{components => }/ui/checkbox/index.ts | 0 .../ui/context-menu/ContextMenu.vue | 0 .../context-menu/ContextMenuCheckboxItem.vue | 0 .../ui/context-menu/ContextMenuContent.vue | 0 .../ui/context-menu/ContextMenuGroup.vue | 0 .../ui/context-menu/ContextMenuItem.vue | 0 .../ui/context-menu/ContextMenuLabel.vue | 0 .../ui/context-menu/ContextMenuPortal.vue | 0 .../ui/context-menu/ContextMenuRadioGroup.vue | 0 .../ui/context-menu/ContextMenuRadioItem.vue | 0 .../ui/context-menu/ContextMenuSeparator.vue | 0 .../ui/context-menu/ContextMenuShortcut.vue | 0 .../ui/context-menu/ContextMenuSub.vue | 0 .../ui/context-menu/ContextMenuSubContent.vue | 0 .../ui/context-menu/ContextMenuSubTrigger.vue | 0 .../ui/context-menu/ContextMenuTrigger.vue | 0 .../{components => }/ui/context-menu/index.ts | 0 .../src/{components => }/ui/dialog/Dialog.vue | 0 .../ui/dialog/DialogClose.vue | 0 .../ui/dialog/DialogContent.vue | 0 .../ui/dialog/DialogDescription.vue | 0 .../ui/dialog/DialogFooter.vue | 0 .../ui/dialog/DialogHeader.vue | 0 .../ui/dialog/DialogOverlay.vue | 0 .../ui/dialog/DialogScrollContent.vue | 0 .../ui/dialog/DialogTitle.vue | 0 .../ui/dialog/DialogTrigger.vue | 0 .../src/{components => }/ui/dialog/index.ts | 0 .../ui/dropdown-menu/DropdownMenu.vue | 0 .../DropdownMenuCheckboxItem.vue | 0 .../ui/dropdown-menu/DropdownMenuContent.vue | 0 .../ui/dropdown-menu/DropdownMenuGroup.vue | 0 .../ui/dropdown-menu/DropdownMenuItem.vue | 0 .../ui/dropdown-menu/DropdownMenuLabel.vue | 0 .../dropdown-menu/DropdownMenuRadioGroup.vue | 0 .../dropdown-menu/DropdownMenuRadioItem.vue | 0 .../dropdown-menu/DropdownMenuSeparator.vue | 0 .../ui/dropdown-menu/DropdownMenuShortcut.vue | 0 .../ui/dropdown-menu/DropdownMenuSub.vue | 0 .../dropdown-menu/DropdownMenuSubContent.vue | 0 .../dropdown-menu/DropdownMenuSubTrigger.vue | 0 .../ui/dropdown-menu/DropdownMenuTrigger.vue | 0 .../ui/dropdown-menu/index.ts | 0 .../{components => }/ui/form/FormControl.vue | 0 .../ui/form/FormDescription.vue | 0 .../src/{components => }/ui/form/FormItem.vue | 0 .../{components => }/ui/form/FormLabel.vue | 0 .../{components => }/ui/form/FormMessage.vue | 0 .../src/{components => }/ui/form/index.ts | 0 .../{components => }/ui/form/injectionKeys.ts | 0 .../{components => }/ui/form/useFormField.ts | 0 .../ui/hover-card/HoverCard.vue | 0 .../ui/hover-card/HoverCardContent.vue | 0 .../ui/hover-card/HoverCardTrigger.vue | 0 .../{components => }/ui/hover-card/index.ts | 0 .../@core/ui-kit/shadcn-ui/src/ui/index.ts | 29 ++++ .../src/{components => }/ui/input/Input.vue | 0 .../src/{components => }/ui/input/index.ts | 0 .../src/{components => }/ui/label/Label.vue | 0 .../src/{components => }/ui/label/index.ts | 0 .../ui/number-field/NumberField.vue | 0 .../ui/number-field/NumberFieldContent.vue | 0 .../ui/number-field/NumberFieldDecrement.vue | 0 .../ui/number-field/NumberFieldIncrement.vue | 0 .../ui/number-field/NumberFieldInput.vue | 0 .../{components => }/ui/number-field/index.ts | 0 .../ui/pagination/PaginationEllipsis.vue | 0 .../ui/pagination/PaginationFirst.vue | 0 .../ui/pagination/PaginationLast.vue | 0 .../ui/pagination/PaginationNext.vue | 0 .../ui/pagination/PaginationPrev.vue | 0 .../{components => }/ui/pagination/index.ts | 0 .../ui/pin-input/PinInput.vue | 0 .../ui/pin-input/PinInputGroup.vue | 0 .../ui/pin-input/PinInputInput.vue | 0 .../ui/pin-input/PinInputSeparator.vue | 0 .../{components => }/ui/pin-input/index.ts | 0 .../{components => }/ui/popover/Popover.vue | 0 .../ui/popover/PopoverContent.vue | 0 .../ui/popover/PopoverTrigger.vue | 0 .../src/{components => }/ui/popover/index.ts | 0 .../ui/radio-group/RadioGroup.vue | 0 .../ui/radio-group/RadioGroupItem.vue | 0 .../{components => }/ui/radio-group/index.ts | 0 .../ui/scroll-area/ScrollArea.vue | 0 .../ui/scroll-area/ScrollBar.vue | 0 .../{components => }/ui/scroll-area/index.ts | 0 .../src/{components => }/ui/select/Select.vue | 0 .../ui/select/SelectContent.vue | 0 .../ui/select/SelectGroup.vue | 0 .../{components => }/ui/select/SelectItem.vue | 0 .../ui/select/SelectItemText.vue | 0 .../ui/select/SelectLabel.vue | 0 .../ui/select/SelectScrollDownButton.vue | 0 .../ui/select/SelectScrollUpButton.vue | 0 .../ui/select/SelectSeparator.vue | 0 .../ui/select/SelectTrigger.vue | 0 .../ui/select/SelectValue.vue | 0 .../src/{components => }/ui/select/index.ts | 0 .../ui/separator/Separator.vue | 0 .../{components => }/ui/separator/index.ts | 0 .../src/{components => }/ui/sheet/Sheet.vue | 0 .../{components => }/ui/sheet/SheetClose.vue | 0 .../ui/sheet/SheetContent.vue | 0 .../ui/sheet/SheetDescription.vue | 0 .../{components => }/ui/sheet/SheetFooter.vue | 0 .../{components => }/ui/sheet/SheetHeader.vue | 0 .../ui/sheet/SheetOverlay.vue | 0 .../{components => }/ui/sheet/SheetTitle.vue | 0 .../ui/sheet/SheetTrigger.vue | 0 .../src/{components => }/ui/sheet/index.ts | 0 .../src/{components => }/ui/sheet/sheet.ts | 0 .../src/{components => }/ui/switch/Switch.vue | 0 .../src/{components => }/ui/switch/index.ts | 0 .../src/{components => }/ui/tabs/Tabs.vue | 0 .../{components => }/ui/tabs/TabsContent.vue | 0 .../src/{components => }/ui/tabs/TabsList.vue | 0 .../{components => }/ui/tabs/TabsTrigger.vue | 0 .../src/{components => }/ui/tabs/index.ts | 0 .../{components => }/ui/textarea/Textarea.vue | 0 .../src/{components => }/ui/textarea/index.ts | 0 .../src/{components => }/ui/toast/Toast.vue | 0 .../{components => }/ui/toast/ToastAction.vue | 0 .../{components => }/ui/toast/ToastClose.vue | 0 .../ui/toast/ToastDescription.vue | 0 .../ui/toast/ToastProvider.vue | 0 .../{components => }/ui/toast/ToastTitle.vue | 0 .../ui/toast/ToastViewport.vue | 0 .../src/{components => }/ui/toast/Toaster.vue | 0 .../src/{components => }/ui/toast/index.ts | 0 .../src/{components => }/ui/toast/toast.ts | 0 .../{components => }/ui/toast/use-toast.ts | 0 .../ui/toggle-group/ToggleGroup.vue | 0 .../ui/toggle-group/ToggleGroupItem.vue | 0 .../{components => }/ui/toggle-group/index.ts | 0 .../src/{components => }/ui/toggle/Toggle.vue | 0 .../src/{components => }/ui/toggle/index.ts | 0 .../src/{components => }/ui/toggle/toggle.ts | 0 .../{components => }/ui/tooltip/Tooltip.vue | 0 .../ui/tooltip/TooltipContent.vue | 0 .../ui/tooltip/TooltipProvider.vue | 0 .../ui/tooltip/TooltipTrigger.vue | 0 .../src/{components => }/ui/tooltip/index.ts | 0 .../effects/common-ui/src/ui/about/about.vue | 45 +++---- playground/package.json | 2 +- 210 files changed, 75 insertions(+), 410 deletions(-) rename packages/@core/ui-kit/{shadcn-ui/src/components/menu-badge => menu-ui/src/components}/menu-badge-dot.vue (100%) rename packages/@core/ui-kit/{shadcn-ui/src/components/menu-badge => menu-ui/src/components}/menu-badge.vue (100%) delete mode 100644 packages/@core/ui-kit/shadcn-ui/src/components/link/index.ts delete mode 100644 packages/@core/ui-kit/shadcn-ui/src/components/link/link.vue delete mode 100644 packages/@core/ui-kit/shadcn-ui/src/components/menu-badge/index.ts delete mode 100644 packages/@core/ui-kit/shadcn-ui/src/components/pagination/index.ts delete mode 100644 packages/@core/ui-kit/shadcn-ui/src/components/pagination/pagination.ts delete mode 100644 packages/@core/ui-kit/shadcn-ui/src/components/pagination/pagination.vue delete mode 100644 packages/@core/ui-kit/shadcn-ui/src/components/swap/index.ts delete mode 100644 packages/@core/ui-kit/shadcn-ui/src/components/swap/swap.vue rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/accordion/Accordion.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/accordion/AccordionContent.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/accordion/AccordionItem.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/accordion/AccordionTrigger.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/accordion/index.ts (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/avatar/Avatar.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/avatar/AvatarFallback.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/avatar/AvatarImage.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/avatar/avatar.ts (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/avatar/index.ts (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/badge/Badge.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/badge/badge.ts (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/badge/index.ts (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/breadcrumb/Breadcrumb.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/breadcrumb/BreadcrumbEllipsis.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/breadcrumb/BreadcrumbItem.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/breadcrumb/BreadcrumbLink.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/breadcrumb/BreadcrumbList.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/breadcrumb/BreadcrumbPage.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/breadcrumb/BreadcrumbSeparator.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/breadcrumb/index.ts (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/button/Button.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/button/button.ts (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/button/index.ts (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/button/types.ts (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/card/Card.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/card/CardContent.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/card/CardDescription.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/card/CardFooter.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/card/CardHeader.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/card/CardTitle.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/card/index.ts (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/checkbox/Checkbox.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/checkbox/index.ts (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/context-menu/ContextMenu.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/context-menu/ContextMenuCheckboxItem.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/context-menu/ContextMenuContent.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/context-menu/ContextMenuGroup.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/context-menu/ContextMenuItem.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/context-menu/ContextMenuLabel.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/context-menu/ContextMenuPortal.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/context-menu/ContextMenuRadioGroup.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/context-menu/ContextMenuRadioItem.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/context-menu/ContextMenuSeparator.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/context-menu/ContextMenuShortcut.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/context-menu/ContextMenuSub.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/context-menu/ContextMenuSubContent.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/context-menu/ContextMenuSubTrigger.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/context-menu/ContextMenuTrigger.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/context-menu/index.ts (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/dialog/Dialog.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/dialog/DialogClose.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/dialog/DialogContent.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/dialog/DialogDescription.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/dialog/DialogFooter.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/dialog/DialogHeader.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/dialog/DialogOverlay.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/dialog/DialogScrollContent.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/dialog/DialogTitle.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/dialog/DialogTrigger.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/dialog/index.ts (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/dropdown-menu/DropdownMenu.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/dropdown-menu/DropdownMenuCheckboxItem.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/dropdown-menu/DropdownMenuContent.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/dropdown-menu/DropdownMenuGroup.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/dropdown-menu/DropdownMenuItem.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/dropdown-menu/DropdownMenuLabel.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/dropdown-menu/DropdownMenuRadioGroup.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/dropdown-menu/DropdownMenuRadioItem.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/dropdown-menu/DropdownMenuSeparator.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/dropdown-menu/DropdownMenuShortcut.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/dropdown-menu/DropdownMenuSub.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/dropdown-menu/DropdownMenuSubContent.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/dropdown-menu/DropdownMenuSubTrigger.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/dropdown-menu/DropdownMenuTrigger.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/dropdown-menu/index.ts (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/form/FormControl.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/form/FormDescription.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/form/FormItem.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/form/FormLabel.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/form/FormMessage.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/form/index.ts (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/form/injectionKeys.ts (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/form/useFormField.ts (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/hover-card/HoverCard.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/hover-card/HoverCardContent.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/hover-card/HoverCardTrigger.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/hover-card/index.ts (100%) create mode 100644 packages/@core/ui-kit/shadcn-ui/src/ui/index.ts rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/input/Input.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/input/index.ts (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/label/Label.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/label/index.ts (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/number-field/NumberField.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/number-field/NumberFieldContent.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/number-field/NumberFieldDecrement.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/number-field/NumberFieldIncrement.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/number-field/NumberFieldInput.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/number-field/index.ts (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/pagination/PaginationEllipsis.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/pagination/PaginationFirst.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/pagination/PaginationLast.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/pagination/PaginationNext.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/pagination/PaginationPrev.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/pagination/index.ts (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/pin-input/PinInput.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/pin-input/PinInputGroup.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/pin-input/PinInputInput.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/pin-input/PinInputSeparator.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/pin-input/index.ts (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/popover/Popover.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/popover/PopoverContent.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/popover/PopoverTrigger.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/popover/index.ts (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/radio-group/RadioGroup.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/radio-group/RadioGroupItem.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/radio-group/index.ts (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/scroll-area/ScrollArea.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/scroll-area/ScrollBar.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/scroll-area/index.ts (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/select/Select.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/select/SelectContent.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/select/SelectGroup.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/select/SelectItem.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/select/SelectItemText.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/select/SelectLabel.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/select/SelectScrollDownButton.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/select/SelectScrollUpButton.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/select/SelectSeparator.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/select/SelectTrigger.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/select/SelectValue.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/select/index.ts (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/separator/Separator.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/separator/index.ts (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/sheet/Sheet.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/sheet/SheetClose.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/sheet/SheetContent.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/sheet/SheetDescription.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/sheet/SheetFooter.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/sheet/SheetHeader.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/sheet/SheetOverlay.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/sheet/SheetTitle.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/sheet/SheetTrigger.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/sheet/index.ts (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/sheet/sheet.ts (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/switch/Switch.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/switch/index.ts (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/tabs/Tabs.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/tabs/TabsContent.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/tabs/TabsList.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/tabs/TabsTrigger.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/tabs/index.ts (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/textarea/Textarea.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/textarea/index.ts (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/toast/Toast.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/toast/ToastAction.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/toast/ToastClose.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/toast/ToastDescription.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/toast/ToastProvider.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/toast/ToastTitle.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/toast/ToastViewport.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/toast/Toaster.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/toast/index.ts (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/toast/toast.ts (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/toast/use-toast.ts (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/toggle-group/ToggleGroup.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/toggle-group/ToggleGroupItem.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/toggle-group/index.ts (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/toggle/Toggle.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/toggle/index.ts (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/toggle/toggle.ts (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/tooltip/Tooltip.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/tooltip/TooltipContent.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/tooltip/TooltipProvider.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/tooltip/TooltipTrigger.vue (100%) rename packages/@core/ui-kit/shadcn-ui/src/{components => }/ui/tooltip/index.ts (100%) diff --git a/packages/@core/ui-kit/menu-ui/src/components/index.ts b/packages/@core/ui-kit/menu-ui/src/components/index.ts index 3d6dfce2..7c697dc1 100644 --- a/packages/@core/ui-kit/menu-ui/src/components/index.ts +++ b/packages/@core/ui-kit/menu-ui/src/components/index.ts @@ -1,3 +1,4 @@ export { default as Menu } from './menu.vue'; +export { default as MenuBadge } from './menu-badge.vue'; export { default as MenuItem } from './menu-item.vue'; export { default as SubMenu } from './sub-menu.vue'; diff --git a/packages/@core/ui-kit/shadcn-ui/src/components/menu-badge/menu-badge-dot.vue b/packages/@core/ui-kit/menu-ui/src/components/menu-badge-dot.vue similarity index 100% rename from packages/@core/ui-kit/shadcn-ui/src/components/menu-badge/menu-badge-dot.vue rename to packages/@core/ui-kit/menu-ui/src/components/menu-badge-dot.vue diff --git a/packages/@core/ui-kit/shadcn-ui/src/components/menu-badge/menu-badge.vue b/packages/@core/ui-kit/menu-ui/src/components/menu-badge.vue similarity index 100% rename from packages/@core/ui-kit/shadcn-ui/src/components/menu-badge/menu-badge.vue rename to packages/@core/ui-kit/menu-ui/src/components/menu-badge.vue diff --git a/packages/@core/ui-kit/menu-ui/src/components/menu-item.vue b/packages/@core/ui-kit/menu-ui/src/components/menu-item.vue index 53152661..691c25cd 100644 --- a/packages/@core/ui-kit/menu-ui/src/components/menu-item.vue +++ b/packages/@core/ui-kit/menu-ui/src/components/menu-item.vue @@ -4,8 +4,9 @@ import type { MenuItemProps, MenuItemRegistered } from '../types'; import { computed, onBeforeUnmount, onMounted, reactive, useSlots } from 'vue'; import { useNamespace } from '@vben-core/composables'; -import { VbenIcon, VbenMenuBadge, VbenTooltip } from '@vben-core/shadcn-ui'; +import { VbenIcon, VbenTooltip } from '@vben-core/shadcn-ui'; +import { MenuBadge } from '../components'; import { useMenu, useMenuContext, useSubMenuContext } from '../hooks'; interface Props extends MenuItemProps {} @@ -108,7 +109,7 @@ onBeforeUnmount(() => {
- { :path="menu.path" >