@geniusdynamics/ns8-ui-lib 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ns8-ui-lib.css +3 -1
- package/dist/ns8-ui-lib.es.js +36815 -19727
- package/dist/ns8-ui-lib.es.js.map +1 -1
- package/dist/ns8-ui-lib.umd.js +24 -11
- package/dist/ns8-ui-lib.umd.js.map +1 -1
- package/package.json +25 -19
- package/src/App.vue +7 -3
- package/src/components/HelloWorld.vue +2 -2
- package/src/components/NS/CompleteDemo.vue +49 -49
- package/src/components/NS/Demo.vue +20 -20
- package/src/components/NS/cards/NSBackupCard.vue +59 -41
- package/src/components/NS/cards/NSSystemInfoCard.vue +164 -136
- package/src/components/NS/cards/NSSystemdServiceCard.vue +27 -27
- package/src/components/NS/checkbox/NSCheckbox.vue +6 -8
- package/src/components/NS/data-table/NSDataTable.vue +34 -40
- package/src/components/NS/empty-state/NSEmptyState.vue +3 -3
- package/src/components/NS/inline-notification/NSInlineNotification.vue +9 -9
- package/src/components/NS/lottie-animation/NSLottieAnimation.vue +140 -116
- package/src/components/NS/modal/NSModal.vue +12 -14
- package/src/components/NS/modal/NSModalTrigger.vue +1 -1
- package/src/components/NS/pagination/NSPagination.vue +10 -10
- package/src/components/NS/progress/NSProgress.vue +3 -3
- package/src/components/NS/progress/NSProgressBar.vue +4 -4
- package/src/components/NS/slider/NSByteSlider.vue +3 -3
- package/src/components/NS/slider/NSSlider.vue +2 -2
- package/src/components/NS/tag/NSTag.vue +6 -7
- package/src/components/NS/text-input/NSTextInput.vue +9 -13
- package/src/components/NS/toast-notification/NSToastNotification.vue +9 -11
- package/src/components/NS/toggle/NSToggle.vue +5 -8
- package/src/components/NS/wizard/NSWizard.vue +21 -21
- package/src/components/ui/accordion/Accordion.vue +18 -0
- package/src/components/ui/accordion/AccordionContent.vue +23 -0
- package/src/components/ui/accordion/AccordionItem.vue +24 -0
- package/src/components/ui/accordion/AccordionTrigger.vue +37 -0
- package/src/components/ui/alert/Alert.vue +21 -0
- package/src/components/ui/alert/AlertDescription.vue +17 -0
- package/src/components/ui/alert/AlertTitle.vue +17 -0
- package/src/components/ui/alert-dialog/AlertDialog.vue +15 -0
- package/src/components/ui/alert-dialog/AlertDialogAction.vue +18 -0
- package/src/components/ui/alert-dialog/AlertDialogCancel.vue +25 -0
- package/src/components/ui/alert-dialog/AlertDialogContent.vue +44 -0
- package/src/components/ui/alert-dialog/AlertDialogDescription.vue +23 -0
- package/src/components/ui/alert-dialog/AlertDialogFooter.vue +22 -0
- package/src/components/ui/alert-dialog/AlertDialogHeader.vue +17 -0
- package/src/components/ui/alert-dialog/AlertDialogTitle.vue +21 -0
- package/src/components/ui/alert-dialog/AlertDialogTrigger.vue +12 -0
- package/src/components/ui/aspect-ratio/AspectRatio.vue +16 -0
- package/src/components/ui/avatar/Avatar.vue +18 -0
- package/src/components/ui/avatar/AvatarFallback.vue +21 -0
- package/src/components/ui/avatar/AvatarImage.vue +16 -0
- package/src/components/ui/breadcrumb/Breadcrumb.vue +17 -0
- package/src/components/ui/breadcrumb/BreadcrumbEllipsis.vue +23 -0
- package/src/components/ui/breadcrumb/BreadcrumbItem.vue +17 -0
- package/src/components/ui/breadcrumb/BreadcrumbLink.vue +21 -0
- package/src/components/ui/breadcrumb/BreadcrumbList.vue +17 -0
- package/src/components/ui/breadcrumb/BreadcrumbPage.vue +20 -0
- package/src/components/ui/breadcrumb/BreadcrumbSeparator.vue +22 -0
- package/src/components/ui/button/Button.vue +2 -0
- package/src/components/ui/button-group/ButtonGroup.vue +22 -0
- package/src/components/ui/button-group/ButtonGroupSeparator.vue +24 -0
- package/src/components/ui/button-group/ButtonGroupText.vue +29 -0
- package/src/components/ui/calendar/Calendar.vue +160 -0
- package/src/components/ui/calendar/CalendarCell.vue +23 -0
- package/src/components/ui/calendar/CalendarCellTrigger.vue +39 -0
- package/src/components/ui/calendar/CalendarGrid.vue +23 -0
- package/src/components/ui/calendar/CalendarGridBody.vue +15 -0
- package/src/components/ui/calendar/CalendarGridHead.vue +16 -0
- package/src/components/ui/calendar/CalendarGridRow.vue +22 -0
- package/src/components/ui/calendar/CalendarHeadCell.vue +23 -0
- package/src/components/ui/calendar/CalendarHeader.vue +23 -0
- package/src/components/ui/calendar/CalendarHeading.vue +30 -0
- package/src/components/ui/calendar/CalendarNextButton.vue +31 -0
- package/src/components/ui/calendar/CalendarPrevButton.vue +31 -0
- package/src/components/ui/card/Card.vue +1 -1
- package/src/components/ui/card/CardAction.vue +1 -1
- package/src/components/ui/card/CardContent.vue +1 -1
- package/src/components/ui/card/CardDescription.vue +1 -1
- package/src/components/ui/card/CardFooter.vue +1 -1
- package/src/components/ui/card/CardHeader.vue +1 -1
- package/src/components/ui/card/CardTitle.vue +1 -1
- package/src/components/ui/carousel/Carousel.vue +53 -0
- package/src/components/ui/carousel/CarouselContent.vue +33 -0
- package/src/components/ui/carousel/CarouselItem.vue +24 -0
- package/src/components/ui/carousel/CarouselNext.vue +41 -0
- package/src/components/ui/carousel/CarouselPrevious.vue +41 -0
- package/src/components/ui/checkbox/Checkbox.vue +35 -0
- package/src/components/ui/collapsible/Collapsible.vue +19 -0
- package/src/components/ui/collapsible/CollapsibleContent.vue +15 -0
- package/src/components/ui/collapsible/CollapsibleTrigger.vue +15 -0
- package/src/components/ui/combobox/Combobox.vue +19 -0
- package/src/components/ui/combobox/ComboboxAnchor.vue +23 -0
- package/src/components/ui/combobox/ComboboxEmpty.vue +21 -0
- package/src/components/ui/combobox/ComboboxGroup.vue +27 -0
- package/src/components/ui/combobox/ComboboxInput.vue +42 -0
- package/src/components/ui/combobox/ComboboxItem.vue +24 -0
- package/src/components/ui/combobox/ComboboxItemIndicator.vue +23 -0
- package/src/components/ui/combobox/ComboboxList.vue +33 -0
- package/src/components/ui/combobox/ComboboxSeparator.vue +21 -0
- package/src/components/ui/combobox/ComboboxTrigger.vue +24 -0
- package/src/components/ui/combobox/ComboboxViewport.vue +23 -0
- package/src/components/ui/command/Command.vue +87 -0
- package/src/components/ui/command/CommandDialog.vue +31 -0
- package/src/components/ui/command/CommandEmpty.vue +27 -0
- package/src/components/ui/command/CommandGroup.vue +45 -0
- package/src/components/ui/command/CommandInput.vue +39 -0
- package/src/components/ui/command/CommandItem.vue +76 -0
- package/src/components/ui/command/CommandList.vue +25 -0
- package/src/components/ui/command/CommandSeparator.vue +21 -0
- package/src/components/ui/command/CommandShortcut.vue +17 -0
- package/src/components/ui/context-menu/ContextMenu.vue +18 -0
- package/src/components/ui/context-menu/ContextMenuCheckboxItem.vue +39 -0
- package/src/components/ui/context-menu/ContextMenuContent.vue +37 -0
- package/src/components/ui/context-menu/ContextMenuGroup.vue +15 -0
- package/src/components/ui/context-menu/ContextMenuItem.vue +38 -0
- package/src/components/ui/context-menu/ContextMenuLabel.vue +22 -0
- package/src/components/ui/context-menu/ContextMenuPortal.vue +15 -0
- package/src/components/ui/context-menu/ContextMenuRadioGroup.vue +21 -0
- package/src/components/ui/context-menu/ContextMenuRadioItem.vue +39 -0
- package/src/components/ui/context-menu/ContextMenuSeparator.vue +21 -0
- package/src/components/ui/context-menu/ContextMenuShortcut.vue +17 -0
- package/src/components/ui/context-menu/ContextMenuSub.vue +21 -0
- package/src/components/ui/context-menu/ContextMenuSubContent.vue +32 -0
- package/src/components/ui/context-menu/ContextMenuSubTrigger.vue +32 -0
- package/src/components/ui/context-menu/ContextMenuTrigger.vue +17 -0
- package/src/components/ui/dialog/Dialog.vue +15 -64
- package/src/components/ui/dialog/DialogClose.vue +15 -0
- package/src/components/ui/dialog/DialogContent.vue +62 -0
- package/src/components/ui/dialog/DialogDescription.vue +23 -0
- package/src/components/ui/dialog/DialogFooter.vue +27 -0
- package/src/components/ui/dialog/DialogHeader.vue +17 -0
- package/src/components/ui/dialog/DialogOverlay.vue +21 -0
- package/src/components/ui/dialog/DialogScrollContent.vue +59 -0
- package/src/components/ui/dialog/DialogTitle.vue +23 -0
- package/src/components/ui/dialog/DialogTrigger.vue +15 -0
- package/src/components/ui/drawer/Drawer.vue +23 -0
- package/src/components/ui/drawer/DrawerClose.vue +15 -0
- package/src/components/ui/drawer/DrawerContent.vue +38 -0
- package/src/components/ui/drawer/DrawerDescription.vue +21 -0
- package/src/components/ui/drawer/DrawerFooter.vue +17 -0
- package/src/components/ui/drawer/DrawerHeader.vue +17 -0
- package/src/components/ui/drawer/DrawerOverlay.vue +19 -0
- package/src/components/ui/drawer/DrawerTitle.vue +21 -0
- package/src/components/ui/drawer/DrawerTrigger.vue +15 -0
- package/src/components/ui/dropdown-menu/DropdownMenu.vue +19 -0
- package/src/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +39 -0
- package/src/components/ui/dropdown-menu/DropdownMenuContent.vue +39 -0
- package/src/components/ui/dropdown-menu/DropdownMenuGroup.vue +15 -0
- package/src/components/ui/dropdown-menu/DropdownMenuItem.vue +31 -0
- package/src/components/ui/dropdown-menu/DropdownMenuLabel.vue +23 -0
- package/src/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue +21 -0
- package/src/components/ui/dropdown-menu/DropdownMenuRadioItem.vue +40 -0
- package/src/components/ui/dropdown-menu/DropdownMenuSeparator.vue +23 -0
- package/src/components/ui/dropdown-menu/DropdownMenuShortcut.vue +17 -0
- package/src/components/ui/dropdown-menu/DropdownMenuSub.vue +18 -0
- package/src/components/ui/dropdown-menu/DropdownMenuSubContent.vue +27 -0
- package/src/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue +31 -0
- package/src/components/ui/dropdown-menu/DropdownMenuTrigger.vue +17 -0
- package/src/components/ui/empty/Empty.vue +20 -0
- package/src/components/ui/empty/EmptyContent.vue +20 -0
- package/src/components/ui/empty/EmptyDescription.vue +20 -0
- package/src/components/ui/empty/EmptyHeader.vue +20 -0
- package/src/components/ui/empty/EmptyMedia.vue +21 -0
- package/src/components/ui/empty/EmptyTitle.vue +17 -0
- package/src/components/ui/field/Field.vue +25 -0
- package/src/components/ui/field/FieldContent.vue +20 -0
- package/src/components/ui/field/FieldDescription.vue +22 -0
- package/src/components/ui/field/FieldError.vue +53 -0
- package/src/components/ui/field/FieldGroup.vue +20 -0
- package/src/components/ui/field/FieldLabel.vue +23 -0
- package/src/components/ui/field/FieldLegend.vue +24 -0
- package/src/components/ui/field/FieldSeparator.vue +29 -0
- package/src/components/ui/field/FieldSet.vue +21 -0
- package/src/components/ui/field/FieldTitle.vue +20 -0
- package/src/components/ui/form/FormControl.vue +17 -0
- package/src/components/ui/form/FormDescription.vue +21 -0
- package/src/components/ui/form/FormItem.vue +23 -0
- package/src/components/ui/form/FormLabel.vue +25 -0
- package/src/components/ui/form/FormMessage.vue +23 -0
- package/src/components/ui/hover-card/HoverCard.vue +19 -0
- package/src/components/ui/hover-card/HoverCardContent.vue +43 -0
- package/src/components/ui/hover-card/HoverCardTrigger.vue +15 -0
- package/src/components/ui/input/Input.vue +3 -3
- package/src/components/ui/input-group/InputGroup.vue +8 -8
- package/src/components/ui/input-group/InputGroupButton.vue +9 -1
- package/src/components/ui/input-group/InputGroupInput.vue +1 -1
- package/src/components/ui/input-group/InputGroupText.vue +1 -1
- package/src/components/ui/input-group/InputGroupTextarea.vue +1 -1
- package/src/components/ui/input-otp/InputOTP.vue +28 -0
- package/src/components/ui/input-otp/InputOTPGroup.vue +22 -0
- package/src/components/ui/input-otp/InputOTPSeparator.vue +21 -0
- package/src/components/ui/input-otp/InputOTPSlot.vue +32 -0
- package/src/components/ui/item/Item.vue +2 -0
- package/src/components/ui/item/ItemActions.vue +1 -1
- package/src/components/ui/item/ItemContent.vue +1 -1
- package/src/components/ui/item/ItemDescription.vue +2 -2
- package/src/components/ui/item/ItemFooter.vue +1 -1
- package/src/components/ui/item/ItemGroup.vue +1 -1
- package/src/components/ui/item/ItemHeader.vue +1 -1
- package/src/components/ui/item/ItemSeparator.vue +1 -1
- package/src/components/ui/item/ItemTitle.vue +1 -1
- package/src/components/ui/kbd/Kbd.vue +21 -0
- package/src/components/ui/kbd/KbdGroup.vue +17 -0
- package/src/components/ui/label/Label.vue +1 -1
- package/src/components/ui/menubar/Menubar.vue +33 -0
- package/src/components/ui/menubar/MenubarCheckboxItem.vue +39 -0
- package/src/components/ui/menubar/MenubarContent.vue +45 -0
- package/src/components/ui/menubar/MenubarGroup.vue +15 -0
- package/src/components/ui/menubar/MenubarItem.vue +36 -0
- package/src/components/ui/menubar/MenubarLabel.vue +20 -0
- package/src/components/ui/menubar/MenubarMenu.vue +15 -0
- package/src/components/ui/menubar/MenubarRadioGroup.vue +21 -0
- package/src/components/ui/menubar/MenubarRadioItem.vue +39 -0
- package/src/components/ui/menubar/MenubarSeparator.vue +21 -0
- package/src/components/ui/menubar/MenubarShortcut.vue +17 -0
- package/src/components/ui/menubar/MenubarSub.vue +24 -0
- package/src/components/ui/menubar/MenubarSubContent.vue +39 -0
- package/src/components/ui/menubar/MenubarSubTrigger.vue +28 -0
- package/src/components/ui/menubar/MenubarTrigger.vue +28 -0
- package/src/components/ui/native-select/NativeSelect.vue +50 -0
- package/src/components/ui/native-select/NativeSelectOptGroup.vue +15 -0
- package/src/components/ui/native-select/NativeSelectOption.vue +15 -0
- package/src/components/ui/navigation-menu/NavigationMenu.vue +35 -0
- package/src/components/ui/navigation-menu/NavigationMenuContent.vue +31 -0
- package/src/components/ui/navigation-menu/NavigationMenuIndicator.vue +23 -0
- package/src/components/ui/navigation-menu/NavigationMenuItem.vue +21 -0
- package/src/components/ui/navigation-menu/NavigationMenuLink.vue +26 -0
- package/src/components/ui/navigation-menu/NavigationMenuList.vue +28 -0
- package/src/components/ui/navigation-menu/NavigationMenuTrigger.vue +32 -0
- package/src/components/ui/navigation-menu/NavigationMenuViewport.vue +31 -0
- package/src/components/ui/number-field/NumberField.vue +20 -0
- package/src/components/ui/number-field/NumberFieldContent.vue +14 -0
- package/src/components/ui/number-field/NumberFieldDecrement.vue +22 -0
- package/src/components/ui/number-field/NumberFieldIncrement.vue +22 -0
- package/src/components/ui/number-field/NumberFieldInput.vue +16 -0
- package/src/components/ui/pagination/Pagination.vue +26 -0
- package/src/components/ui/pagination/PaginationContent.vue +22 -0
- package/src/components/ui/pagination/PaginationEllipsis.vue +25 -0
- package/src/components/ui/pagination/PaginationFirst.vue +33 -0
- package/src/components/ui/pagination/PaginationItem.vue +34 -0
- package/src/components/ui/pagination/PaginationLast.vue +33 -0
- package/src/components/ui/pagination/PaginationNext.vue +33 -0
- package/src/components/ui/pagination/PaginationPrevious.vue +33 -0
- package/src/components/ui/pin-input/PinInput.vue +26 -0
- package/src/components/ui/pin-input/PinInputGroup.vue +21 -0
- package/src/components/ui/pin-input/PinInputSeparator.vue +19 -0
- package/src/components/ui/pin-input/PinInputSlot.vue +21 -0
- package/src/components/ui/popover/Popover.vue +19 -0
- package/src/components/ui/popover/PopoverAnchor.vue +15 -0
- package/src/components/ui/popover/PopoverContent.vue +45 -0
- package/src/components/ui/popover/PopoverTrigger.vue +15 -0
- package/src/components/ui/progress/Progress.vue +9 -12
- package/src/components/ui/radio-group/RadioGroup.vue +25 -0
- package/src/components/ui/radio-group/RadioGroupItem.vue +40 -0
- package/src/components/ui/range-calendar/RangeCalendar.vue +62 -0
- package/src/components/ui/range-calendar/RangeCalendarCell.vue +23 -0
- package/src/components/ui/range-calendar/RangeCalendarCellTrigger.vue +41 -0
- package/src/components/ui/range-calendar/RangeCalendarGrid.vue +23 -0
- package/src/components/ui/range-calendar/RangeCalendarGridBody.vue +15 -0
- package/src/components/ui/range-calendar/RangeCalendarGridHead.vue +15 -0
- package/src/components/ui/range-calendar/RangeCalendarGridRow.vue +22 -0
- package/src/components/ui/range-calendar/RangeCalendarHeadCell.vue +23 -0
- package/src/components/ui/range-calendar/RangeCalendarHeader.vue +23 -0
- package/src/components/ui/range-calendar/RangeCalendarHeading.vue +30 -0
- package/src/components/ui/range-calendar/RangeCalendarNextButton.vue +32 -0
- package/src/components/ui/range-calendar/RangeCalendarPrevButton.vue +32 -0
- package/src/components/ui/resizable/ResizableHandle.vue +30 -0
- package/src/components/ui/resizable/ResizablePanel.vue +21 -0
- package/src/components/ui/resizable/ResizablePanelGroup.vue +25 -0
- package/src/components/ui/scroll-area/ScrollArea.vue +2 -2
- package/src/components/ui/scroll-area/ScrollBar.vue +22 -16
- package/src/components/ui/select/SelectContent.vue +27 -18
- package/src/components/ui/select/SelectItem.vue +3 -3
- package/src/components/ui/select/SelectLabel.vue +1 -1
- package/src/components/ui/select/SelectScrollDownButton.vue +2 -2
- package/src/components/ui/select/SelectScrollUpButton.vue +2 -2
- package/src/components/ui/select/SelectSeparator.vue +1 -1
- package/src/components/ui/select/SelectTrigger.vue +2 -2
- package/src/components/ui/separator/Separator.vue +1 -1
- package/src/components/ui/sheet/SheetContent.vue +31 -28
- package/src/components/ui/sheet/SheetDescription.vue +1 -1
- package/src/components/ui/sheet/SheetFooter.vue +1 -1
- package/src/components/ui/sheet/SheetHeader.vue +1 -1
- package/src/components/ui/sheet/SheetOverlay.vue +1 -1
- package/src/components/ui/sheet/SheetTitle.vue +1 -1
- package/src/components/ui/sidebar/Sidebar.vue +16 -16
- package/src/components/ui/sidebar/SidebarContent.vue +1 -1
- package/src/components/ui/sidebar/SidebarFooter.vue +1 -1
- package/src/components/ui/sidebar/SidebarGroup.vue +1 -1
- package/src/components/ui/sidebar/SidebarGroupAction.vue +3 -3
- package/src/components/ui/sidebar/SidebarGroupContent.vue +1 -1
- package/src/components/ui/sidebar/SidebarGroupLabel.vue +2 -2
- package/src/components/ui/sidebar/SidebarHeader.vue +1 -1
- package/src/components/ui/sidebar/SidebarInput.vue +1 -1
- package/src/components/ui/sidebar/SidebarInset.vue +2 -2
- package/src/components/ui/sidebar/SidebarMenu.vue +1 -1
- package/src/components/ui/sidebar/SidebarMenuAction.vue +7 -7
- package/src/components/ui/sidebar/SidebarMenuBadge.vue +6 -6
- package/src/components/ui/sidebar/SidebarMenuItem.vue +1 -1
- package/src/components/ui/sidebar/SidebarMenuSkeleton.vue +3 -3
- package/src/components/ui/sidebar/SidebarMenuSub.vue +2 -2
- package/src/components/ui/sidebar/SidebarMenuSubButton.vue +5 -5
- package/src/components/ui/sidebar/SidebarMenuSubItem.vue +1 -1
- package/src/components/ui/sidebar/SidebarProvider.vue +1 -1
- package/src/components/ui/sidebar/SidebarRail.vue +6 -6
- package/src/components/ui/sidebar/SidebarSeparator.vue +1 -1
- package/src/components/ui/sidebar/SidebarTrigger.vue +2 -2
- package/src/components/ui/skeleton/Skeleton.vue +1 -1
- package/src/components/ui/slider/Slider.vue +43 -0
- package/src/components/ui/sonner/Sonner.vue +7 -7
- package/src/components/ui/spinner/Spinner.vue +17 -0
- package/src/components/ui/stepper/Stepper.vue +27 -0
- package/src/components/ui/stepper/StepperDescription.vue +19 -0
- package/src/components/ui/stepper/StepperIndicator.vue +32 -0
- package/src/components/ui/stepper/StepperItem.vue +23 -0
- package/src/components/ui/stepper/StepperSeparator.vue +27 -0
- package/src/components/ui/stepper/StepperTitle.vue +19 -0
- package/src/components/ui/stepper/StepperTrigger.vue +22 -0
- package/src/components/ui/switch/Switch.vue +2 -2
- package/src/components/ui/table/Table.vue +12 -6
- package/src/components/ui/table/TableBody.vue +1 -1
- package/src/components/ui/table/TableCaption.vue +1 -1
- package/src/components/ui/table/TableCell.vue +1 -1
- package/src/components/ui/table/TableEmpty.vue +17 -14
- package/src/components/ui/table/TableFooter.vue +1 -1
- package/src/components/ui/table/TableHead.vue +1 -1
- package/src/components/ui/table/TableHeader.vue +1 -1
- package/src/components/ui/table/TableRow.vue +1 -1
- package/src/components/ui/tabs/Tabs.vue +1 -1
- package/src/components/ui/tabs/TabsContent.vue +1 -1
- package/src/components/ui/tabs/TabsList.vue +1 -1
- package/src/components/ui/tabs/TabsTrigger.vue +1 -1
- package/src/components/ui/tags-input/TagsInput.vue +26 -0
- package/src/components/ui/tags-input/TagsInputInput.vue +17 -0
- package/src/components/ui/tags-input/TagsInputItem.vue +20 -0
- package/src/components/ui/tags-input/TagsInputItemDelete.vue +22 -0
- package/src/components/ui/tags-input/TagsInputItemText.vue +19 -0
- package/src/components/ui/textarea/Textarea.vue +1 -1
- package/src/components/ui/toggle/Toggle.vue +35 -0
- package/src/components/ui/toggle-group/ToggleGroup.vue +49 -0
- package/src/components/ui/toggle-group/ToggleGroupItem.vue +46 -0
- package/src/components/ui/tooltip/TooltipContent.vue +2 -2
- package/dist/index.d.ts +0 -23
- package/dist/src/App.vue.d.ts +0 -2
- package/dist/src/components/HelloWorld.vue.d.ts +0 -5
- package/dist/src/components/NS/cards/NSBackupCard.vue.d.ts +0 -51
- package/dist/src/components/NS/cards/NSSystemInfoCard.vue.d.ts +0 -58
- package/dist/src/components/NS/cards/NSSystemdServiceCard.vue.d.ts +0 -47
- package/dist/src/components/NS/cards/index.d.ts +0 -3
- package/dist/src/components/NS/checkbox/NSCheckbox.vue.d.ts +0 -37
- package/dist/src/components/NS/checkbox/index.d.ts +0 -1
- package/dist/src/components/NS/data-table/NSDataTable.vue.d.ts +0 -98
- package/dist/src/components/NS/data-table/index.d.ts +0 -1
- package/dist/src/components/NS/empty-state/NSEmptyState.vue.d.ts +0 -45
- package/dist/src/components/NS/empty-state/index.d.ts +0 -1
- package/dist/src/components/NS/index.d.ts +0 -35
- package/dist/src/components/NS/inline-notification/NSInlineNotification.vue.d.ts +0 -44
- package/dist/src/components/NS/inline-notification/index.d.ts +0 -1
- package/dist/src/components/NS/lottie-animation/NSLottieAnimation.vue.d.ts +0 -75
- package/dist/src/components/NS/lottie-animation/index.d.ts +0 -1
- package/dist/src/components/NS/modal/NSModal.vue.d.ts +0 -56
- package/dist/src/components/NS/modal/NSModalTrigger.vue.d.ts +0 -64
- package/dist/src/components/NS/modal/index.d.ts +0 -2
- package/dist/src/components/NS/pagination/NSPagination.vue.d.ts +0 -36
- package/dist/src/components/NS/pagination/index.d.ts +0 -1
- package/dist/src/components/NS/progress/NSProgress.vue.d.ts +0 -37
- package/dist/src/components/NS/progress/NSProgressBar.vue.d.ts +0 -39
- package/dist/src/components/NS/progress/index.d.ts +0 -2
- package/dist/src/components/NS/slider/NSByteSlider.vue.d.ts +0 -50
- package/dist/src/components/NS/slider/NSSlider.vue.d.ts +0 -49
- package/dist/src/components/NS/slider/index.d.ts +0 -2
- package/dist/src/components/NS/tag/NSTag.vue.d.ts +0 -41
- package/dist/src/components/NS/tag/index.d.ts +0 -1
- package/dist/src/components/NS/text-input/NSTextInput.vue.d.ts +0 -67
- package/dist/src/components/NS/text-input/index.d.ts +0 -1
- package/dist/src/components/NS/toast-notification/NSToastNotification.vue.d.ts +0 -44
- package/dist/src/components/NS/toast-notification/index.d.ts +0 -1
- package/dist/src/components/NS/toggle/NSToggle.vue.d.ts +0 -51
- package/dist/src/components/NS/toggle/index.d.ts +0 -1
- package/dist/src/components/NS/wizard/NSWizard.vue.d.ts +0 -86
- package/dist/src/components/NS/wizard/index.d.ts +0 -1
- package/dist/src/components/ui/badge/Badge.vue.d.ts +0 -24
- package/dist/src/components/ui/badge/index.d.ts +0 -6
- package/dist/src/components/ui/button/Button.vue.d.ts +0 -27
- package/dist/src/components/ui/button/index.d.ts +0 -7
- package/dist/src/components/ui/card/Card.vue.d.ts +0 -21
- package/dist/src/components/ui/card/CardAction.vue.d.ts +0 -21
- package/dist/src/components/ui/card/CardContent.vue.d.ts +0 -21
- package/dist/src/components/ui/card/CardDescription.vue.d.ts +0 -21
- package/dist/src/components/ui/card/CardFooter.vue.d.ts +0 -21
- package/dist/src/components/ui/card/CardHeader.vue.d.ts +0 -21
- package/dist/src/components/ui/card/CardTitle.vue.d.ts +0 -21
- package/dist/src/components/ui/card/index.d.ts +0 -7
- package/dist/src/components/ui/checkbox/NsCheckbox.vue.d.ts +0 -49
- package/dist/src/components/ui/checkbox/index.d.ts +0 -11
- package/dist/src/components/ui/dialog/Dialog.vue.d.ts +0 -28
- package/dist/src/components/ui/dialog/index.d.ts +0 -1
- package/dist/src/components/ui/empty-state/NsEmptyState.vue.d.ts +0 -45
- package/dist/src/components/ui/empty-state/index.d.ts +0 -11
- package/dist/src/components/ui/inline-notification/NsInlineNotification.vue.d.ts +0 -45
- package/dist/src/components/ui/inline-notification/index.d.ts +0 -6
- package/dist/src/components/ui/input/Input.vue.d.ts +0 -12
- package/dist/src/components/ui/input/index.d.ts +0 -1
- package/dist/src/components/ui/input-group/InputGroup.vue.d.ts +0 -21
- package/dist/src/components/ui/input-group/InputGroupAddon.vue.d.ts +0 -25
- package/dist/src/components/ui/input-group/InputGroupButton.vue.d.ts +0 -22
- package/dist/src/components/ui/input-group/InputGroupInput.vue.d.ts +0 -6
- package/dist/src/components/ui/input-group/InputGroupText.vue.d.ts +0 -21
- package/dist/src/components/ui/input-group/InputGroupTextarea.vue.d.ts +0 -6
- package/dist/src/components/ui/input-group/index.d.ts +0 -22
- package/dist/src/components/ui/item/Item.vue.d.ts +0 -27
- package/dist/src/components/ui/item/ItemActions.vue.d.ts +0 -21
- package/dist/src/components/ui/item/ItemContent.vue.d.ts +0 -21
- package/dist/src/components/ui/item/ItemDescription.vue.d.ts +0 -21
- package/dist/src/components/ui/item/ItemFooter.vue.d.ts +0 -21
- package/dist/src/components/ui/item/ItemGroup.vue.d.ts +0 -21
- package/dist/src/components/ui/item/ItemHeader.vue.d.ts +0 -21
- package/dist/src/components/ui/item/ItemMedia.vue.d.ts +0 -23
- package/dist/src/components/ui/item/ItemSeparator.vue.d.ts +0 -7
- package/dist/src/components/ui/item/ItemTitle.vue.d.ts +0 -21
- package/dist/src/components/ui/item/index.d.ts +0 -20
- package/dist/src/components/ui/label/Label.vue.d.ts +0 -22
- package/dist/src/components/ui/label/index.d.ts +0 -1
- package/dist/src/components/ui/progress/Progress.vue.d.ts +0 -9
- package/dist/src/components/ui/progress/index.d.ts +0 -1
- package/dist/src/components/ui/scroll-area/ScrollArea.vue.d.ts +0 -22
- package/dist/src/components/ui/scroll-area/ScrollBar.vue.d.ts +0 -9
- package/dist/src/components/ui/scroll-area/index.d.ts +0 -2
- package/dist/src/components/ui/select/Select.vue.d.ts +0 -28
- package/dist/src/components/ui/select/SelectContent.vue.d.ts +0 -32
- package/dist/src/components/ui/select/SelectGroup.vue.d.ts +0 -18
- package/dist/src/components/ui/select/SelectItem.vue.d.ts +0 -23
- package/dist/src/components/ui/select/SelectItemText.vue.d.ts +0 -18
- package/dist/src/components/ui/select/SelectLabel.vue.d.ts +0 -22
- package/dist/src/components/ui/select/SelectScrollDownButton.vue.d.ts +0 -22
- package/dist/src/components/ui/select/SelectScrollUpButton.vue.d.ts +0 -22
- package/dist/src/components/ui/select/SelectSeparator.vue.d.ts +0 -7
- package/dist/src/components/ui/select/SelectTrigger.vue.d.ts +0 -25
- package/dist/src/components/ui/select/SelectValue.vue.d.ts +0 -18
- package/dist/src/components/ui/select/index.d.ts +0 -11
- package/dist/src/components/ui/separator/Separator.vue.d.ts +0 -10
- package/dist/src/components/ui/separator/index.d.ts +0 -1
- package/dist/src/components/ui/sheet/Sheet.vue.d.ts +0 -25
- package/dist/src/components/ui/sheet/SheetClose.vue.d.ts +0 -18
- package/dist/src/components/ui/sheet/SheetContent.vue.d.ts +0 -39
- package/dist/src/components/ui/sheet/SheetDescription.vue.d.ts +0 -22
- package/dist/src/components/ui/sheet/SheetFooter.vue.d.ts +0 -21
- package/dist/src/components/ui/sheet/SheetHeader.vue.d.ts +0 -21
- package/dist/src/components/ui/sheet/SheetOverlay.vue.d.ts +0 -22
- package/dist/src/components/ui/sheet/SheetTitle.vue.d.ts +0 -22
- package/dist/src/components/ui/sheet/SheetTrigger.vue.d.ts +0 -18
- package/dist/src/components/ui/sheet/index.d.ts +0 -8
- package/dist/src/components/ui/sidebar/Sidebar.vue.d.ts +0 -24
- package/dist/src/components/ui/sidebar/SidebarContent.vue.d.ts +0 -21
- package/dist/src/components/ui/sidebar/SidebarFooter.vue.d.ts +0 -21
- package/dist/src/components/ui/sidebar/SidebarGroup.vue.d.ts +0 -21
- package/dist/src/components/ui/sidebar/SidebarGroupAction.vue.d.ts +0 -22
- package/dist/src/components/ui/sidebar/SidebarGroupContent.vue.d.ts +0 -21
- package/dist/src/components/ui/sidebar/SidebarGroupLabel.vue.d.ts +0 -22
- package/dist/src/components/ui/sidebar/SidebarHeader.vue.d.ts +0 -21
- package/dist/src/components/ui/sidebar/SidebarInput.vue.d.ts +0 -21
- package/dist/src/components/ui/sidebar/SidebarInset.vue.d.ts +0 -21
- package/dist/src/components/ui/sidebar/SidebarMenu.vue.d.ts +0 -21
- package/dist/src/components/ui/sidebar/SidebarMenuAction.vue.d.ts +0 -25
- package/dist/src/components/ui/sidebar/SidebarMenuBadge.vue.d.ts +0 -21
- package/dist/src/components/ui/sidebar/SidebarMenuButton.vue.d.ts +0 -27
- package/dist/src/components/ui/sidebar/SidebarMenuButtonChild.vue.d.ts +0 -30
- package/dist/src/components/ui/sidebar/SidebarMenuItem.vue.d.ts +0 -21
- package/dist/src/components/ui/sidebar/SidebarMenuSkeleton.vue.d.ts +0 -7
- package/dist/src/components/ui/sidebar/SidebarMenuSub.vue.d.ts +0 -21
- package/dist/src/components/ui/sidebar/SidebarMenuSubButton.vue.d.ts +0 -27
- package/dist/src/components/ui/sidebar/SidebarMenuSubItem.vue.d.ts +0 -21
- package/dist/src/components/ui/sidebar/SidebarProvider.vue.d.ts +0 -30
- package/dist/src/components/ui/sidebar/SidebarRail.vue.d.ts +0 -21
- package/dist/src/components/ui/sidebar/SidebarSeparator.vue.d.ts +0 -21
- package/dist/src/components/ui/sidebar/SidebarTrigger.vue.d.ts +0 -6
- package/dist/src/components/ui/sidebar/index.d.ts +0 -37
- package/dist/src/components/ui/sidebar/utils.d.ts +0 -56
- package/dist/src/components/ui/skeleton/Skeleton.vue.d.ts +0 -6
- package/dist/src/components/ui/skeleton/index.d.ts +0 -1
- package/dist/src/components/ui/sonner/Sonner.vue.d.ts +0 -3
- package/dist/src/components/ui/sonner/index.d.ts +0 -1
- package/dist/src/components/ui/switch/Switch.vue.d.ts +0 -28
- package/dist/src/components/ui/switch/index.d.ts +0 -1
- package/dist/src/components/ui/table/Table.vue.d.ts +0 -21
- package/dist/src/components/ui/table/TableBody.vue.d.ts +0 -21
- package/dist/src/components/ui/table/TableCaption.vue.d.ts +0 -21
- package/dist/src/components/ui/table/TableCell.vue.d.ts +0 -21
- package/dist/src/components/ui/table/TableEmpty.vue.d.ts +0 -24
- package/dist/src/components/ui/table/TableFooter.vue.d.ts +0 -21
- package/dist/src/components/ui/table/TableHead.vue.d.ts +0 -21
- package/dist/src/components/ui/table/TableHeader.vue.d.ts +0 -21
- package/dist/src/components/ui/table/TableRow.vue.d.ts +0 -21
- package/dist/src/components/ui/table/index.d.ts +0 -9
- package/dist/src/components/ui/table/utils.d.ts +0 -3
- package/dist/src/components/ui/tabs/Tabs.vue.d.ts +0 -28
- package/dist/src/components/ui/tabs/TabsContent.vue.d.ts +0 -22
- package/dist/src/components/ui/tabs/TabsList.vue.d.ts +0 -22
- package/dist/src/components/ui/tabs/TabsTrigger.vue.d.ts +0 -22
- package/dist/src/components/ui/tabs/index.d.ts +0 -4
- package/dist/src/components/ui/tag/NsTag.vue.d.ts +0 -42
- package/dist/src/components/ui/tag/index.d.ts +0 -8
- package/dist/src/components/ui/text-input/NsTextInput.vue.d.ts +0 -79
- package/dist/src/components/ui/text-input/index.d.ts +0 -15
- package/dist/src/components/ui/textarea/Textarea.vue.d.ts +0 -12
- package/dist/src/components/ui/textarea/index.d.ts +0 -1
- package/dist/src/components/ui/toggle/NsToggle.vue.d.ts +0 -54
- package/dist/src/components/ui/toggle/index.d.ts +0 -15
- package/dist/src/components/ui/tooltip/Tooltip.vue.d.ts +0 -24
- package/dist/src/components/ui/tooltip/TooltipContent.vue.d.ts +0 -30
- package/dist/src/components/ui/tooltip/TooltipProvider.vue.d.ts +0 -20
- package/dist/src/components/ui/tooltip/TooltipTrigger.vue.d.ts +0 -18
- package/dist/src/components/ui/tooltip/index.d.ts +0 -4
- package/dist/src/composables/index.d.ts +0 -8
- package/dist/src/composables/useDateTimeService.d.ts +0 -10
- package/dist/src/composables/useFilterService.d.ts +0 -8
- package/dist/src/composables/useIconService.d.ts +0 -153
- package/dist/src/composables/usePageTitleService.d.ts +0 -3
- package/dist/src/composables/useQueryParamService.d.ts +0 -13
- package/dist/src/composables/useStorageService.d.ts +0 -5
- package/dist/src/composables/useTaskService.d.ts +0 -18
- package/dist/src/composables/useUtilService.d.ts +0 -27
- package/dist/src/lib/utils.d.ts +0 -2
- package/dist/src/main.d.ts +0 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { SliderRootEmits, SliderRootProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
+
import { SliderRange, SliderRoot, SliderThumb, SliderTrack, useForwardPropsEmits } from "reka-ui"
|
|
6
|
+
import { cn } from "@/lib/utils"
|
|
7
|
+
|
|
8
|
+
const props = defineProps<SliderRootProps & { class?: HTMLAttributes["class"] }>()
|
|
9
|
+
const emits = defineEmits<SliderRootEmits>()
|
|
10
|
+
|
|
11
|
+
const delegatedProps = reactiveOmit(props, "class")
|
|
12
|
+
|
|
13
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<template>
|
|
17
|
+
<SliderRoot
|
|
18
|
+
v-slot="{ modelValue }"
|
|
19
|
+
data-slot="slider"
|
|
20
|
+
:class="cn(
|
|
21
|
+
'tw:relative tw:flex tw:w-full tw:touch-none tw:items-center tw:select-none tw:data-[disabled]:opacity-50 tw:data-[orientation=vertical]:h-full tw:data-[orientation=vertical]:min-h-44 tw:data-[orientation=vertical]:w-auto tw:data-[orientation=vertical]:flex-col',
|
|
22
|
+
props.class,
|
|
23
|
+
)"
|
|
24
|
+
v-bind="forwarded"
|
|
25
|
+
>
|
|
26
|
+
<SliderTrack
|
|
27
|
+
data-slot="slider-track"
|
|
28
|
+
class=""tw:bg-muted tw:relative tw:grow tw:overflow-hidden tw:rounded-full tw:data-[orientation=horizontal]:h-1.5 tw:data-[orientation=horizontal]:w-full tw:data-[orientation=vertical]:h-full tw:data-[orientation=vertical]:w-1.5""
|
|
29
|
+
>
|
|
30
|
+
<SliderRange
|
|
31
|
+
data-slot="slider-range"
|
|
32
|
+
class=""tw:bg-primary tw:absolute tw:data-[orientation=horizontal]:h-full tw:data-[orientation=vertical]:w-full""
|
|
33
|
+
/>
|
|
34
|
+
</SliderTrack>
|
|
35
|
+
|
|
36
|
+
<SliderThumb
|
|
37
|
+
v-for="(_, key) in modelValue"
|
|
38
|
+
:key="key"
|
|
39
|
+
data-slot="slider-thumb"
|
|
40
|
+
class=""tw:bg-white tw:border-primary tw:ring-ring/50 tw:block tw:size-4 tw:shrink-0 tw:rounded-full tw:border tw:shadow-sm tw:transition-[color,box-shadow] tw:hover:ring-4 tw:focus-visible:ring-4 tw:focus-visible:outline-hidden tw:disabled:pointer-events-none tw:disabled:opacity-50""
|
|
41
|
+
/>
|
|
42
|
+
</SliderRoot>
|
|
43
|
+
</template>
|
|
@@ -9,7 +9,7 @@ const props = defineProps<ToasterProps>()
|
|
|
9
9
|
|
|
10
10
|
<template>
|
|
11
11
|
<Sonner
|
|
12
|
-
:class="cn('toaster group', props.class)"
|
|
12
|
+
:class="cn('tw:toaster tw:group', props.class)"
|
|
13
13
|
:style="{
|
|
14
14
|
'--normal-bg': 'var(--popover)',
|
|
15
15
|
'--normal-text': 'var(--popover-foreground)',
|
|
@@ -19,24 +19,24 @@ const props = defineProps<ToasterProps>()
|
|
|
19
19
|
v-bind="props"
|
|
20
20
|
>
|
|
21
21
|
<template #success-icon>
|
|
22
|
-
<CircleCheckIcon class="size-4" />
|
|
22
|
+
<CircleCheckIcon class=""tw:size-4"" />
|
|
23
23
|
</template>
|
|
24
24
|
<template #info-icon>
|
|
25
|
-
<InfoIcon class="size-4" />
|
|
25
|
+
<InfoIcon class=""tw:size-4"" />
|
|
26
26
|
</template>
|
|
27
27
|
<template #warning-icon>
|
|
28
|
-
<TriangleAlertIcon class="size-4" />
|
|
28
|
+
<TriangleAlertIcon class=""tw:size-4"" />
|
|
29
29
|
</template>
|
|
30
30
|
<template #error-icon>
|
|
31
|
-
<OctagonXIcon class="size-4" />
|
|
31
|
+
<OctagonXIcon class=""tw:size-4"" />
|
|
32
32
|
</template>
|
|
33
33
|
<template #loading-icon>
|
|
34
34
|
<div>
|
|
35
|
-
<Loader2Icon class="size-4 animate-spin" />
|
|
35
|
+
<Loader2Icon class=""tw:size-4 tw:animate-spin"" />
|
|
36
36
|
</div>
|
|
37
37
|
</template>
|
|
38
38
|
<template #close-icon>
|
|
39
|
-
<XIcon class="size-4" />
|
|
39
|
+
<XIcon class=""tw:size-4"" />
|
|
40
40
|
</template>
|
|
41
41
|
</Sonner>
|
|
42
42
|
</template>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from "vue"
|
|
3
|
+
import { Loader2Icon } from "lucide-vue-next"
|
|
4
|
+
import { cn } from "@/lib/utils"
|
|
5
|
+
|
|
6
|
+
const props = defineProps<{
|
|
7
|
+
class?: HTMLAttributes["class"]
|
|
8
|
+
}>()
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<template>
|
|
12
|
+
<Loader2Icon
|
|
13
|
+
role="status"
|
|
14
|
+
aria-label="Loading"
|
|
15
|
+
:class="cn('tw:size-4 tw:animate-spin', props.class)"
|
|
16
|
+
/>
|
|
17
|
+
</template>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import type { StepperRootEmits, StepperRootProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
+
import { StepperRoot, useForwardPropsEmits } from "reka-ui"
|
|
6
|
+
import { cn } from "@/lib/utils"
|
|
7
|
+
|
|
8
|
+
const props = defineProps<StepperRootProps & { class?: HTMLAttributes["class"] }>()
|
|
9
|
+
const emits = defineEmits<StepperRootEmits>()
|
|
10
|
+
|
|
11
|
+
const delegatedProps = reactiveOmit(props, "class")
|
|
12
|
+
|
|
13
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<template>
|
|
17
|
+
<StepperRoot
|
|
18
|
+
v-slot="slotProps"
|
|
19
|
+
:class="cn(
|
|
20
|
+
'tw:flex tw:gap-2',
|
|
21
|
+
props.class,
|
|
22
|
+
)"
|
|
23
|
+
v-bind="forwarded"
|
|
24
|
+
>
|
|
25
|
+
<slot v-bind="slotProps" />
|
|
26
|
+
</StepperRoot>
|
|
27
|
+
</template>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import type { StepperDescriptionProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
+
import { StepperDescription, useForwardProps } from "reka-ui"
|
|
6
|
+
import { cn } from "@/lib/utils"
|
|
7
|
+
|
|
8
|
+
const props = defineProps<StepperDescriptionProps & { class?: HTMLAttributes["class"] }>()
|
|
9
|
+
|
|
10
|
+
const delegatedProps = reactiveOmit(props, "class")
|
|
11
|
+
|
|
12
|
+
const forwarded = useForwardProps(delegatedProps)
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<template>
|
|
16
|
+
<StepperDescription v-slot="slotProps" v-bind="forwarded" :class="cn('tw:text-xs tw:text-muted-foreground', props.class)">
|
|
17
|
+
<slot v-bind="slotProps" />
|
|
18
|
+
</StepperDescription>
|
|
19
|
+
</template>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import type { StepperIndicatorProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
+
import { StepperIndicator, useForwardProps } from "reka-ui"
|
|
6
|
+
import { cn } from "@/lib/utils"
|
|
7
|
+
|
|
8
|
+
const props = defineProps<StepperIndicatorProps & { class?: HTMLAttributes["class"] }>()
|
|
9
|
+
|
|
10
|
+
const delegatedProps = reactiveOmit(props, "class")
|
|
11
|
+
|
|
12
|
+
const forwarded = useForwardProps(delegatedProps)
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<template>
|
|
16
|
+
<StepperIndicator
|
|
17
|
+
v-slot="slotProps"
|
|
18
|
+
v-bind="forwarded"
|
|
19
|
+
:class="cn(
|
|
20
|
+
'tw:inline-flex tw:items-center tw:justify-center tw:rounded-full tw:text-muted-foreground/50 tw:w-8 tw:h-8',
|
|
21
|
+
// Disabled
|
|
22
|
+
'tw:group-data-[disabled]:text-muted-foreground tw:group-data-[disabled]:opacity-50',
|
|
23
|
+
// Active
|
|
24
|
+
'tw:group-data-[state=active]:bg-primary tw:group-data-[state=active]:text-primary-foreground',
|
|
25
|
+
// Completed
|
|
26
|
+
'tw:group-data-[state=completed]:bg-accent tw:group-data-[state=completed]:text-accent-foreground',
|
|
27
|
+
props.class,
|
|
28
|
+
)"
|
|
29
|
+
>
|
|
30
|
+
<slot v-bind="slotProps" />
|
|
31
|
+
</StepperIndicator>
|
|
32
|
+
</template>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import type { StepperItemProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
+
import { StepperItem, useForwardProps } from "reka-ui"
|
|
6
|
+
import { cn } from "@/lib/utils"
|
|
7
|
+
|
|
8
|
+
const props = defineProps<StepperItemProps & { class?: HTMLAttributes["class"] }>()
|
|
9
|
+
|
|
10
|
+
const delegatedProps = reactiveOmit(props, "class")
|
|
11
|
+
|
|
12
|
+
const forwarded = useForwardProps(delegatedProps)
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<template>
|
|
16
|
+
<StepperItem
|
|
17
|
+
v-slot="slotProps"
|
|
18
|
+
v-bind="forwarded"
|
|
19
|
+
:class="cn('tw:flex tw:items-center tw:gap-2 tw:group tw:data-[disabled]:pointer-events-none', props.class)"
|
|
20
|
+
>
|
|
21
|
+
<slot v-bind="slotProps" />
|
|
22
|
+
</StepperItem>
|
|
23
|
+
</template>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import type { StepperSeparatorProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
+
import { StepperSeparator, useForwardProps } from "reka-ui"
|
|
6
|
+
import { cn } from "@/lib/utils"
|
|
7
|
+
|
|
8
|
+
const props = defineProps<StepperSeparatorProps & { class?: HTMLAttributes["class"] }>()
|
|
9
|
+
|
|
10
|
+
const delegatedProps = reactiveOmit(props, "class")
|
|
11
|
+
|
|
12
|
+
const forwarded = useForwardProps(delegatedProps)
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<template>
|
|
16
|
+
<StepperSeparator
|
|
17
|
+
v-bind="forwarded"
|
|
18
|
+
:class="cn(
|
|
19
|
+
'tw:bg-muted',
|
|
20
|
+
// Disabled
|
|
21
|
+
'tw:group-data-[disabled]:bg-muted tw:group-data-[disabled]:opacity-50',
|
|
22
|
+
// Completed
|
|
23
|
+
'tw:group-data-[state=completed]:bg-accent',
|
|
24
|
+
props.class,
|
|
25
|
+
)"
|
|
26
|
+
/>
|
|
27
|
+
</template>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import type { StepperTitleProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
+
import { StepperTitle, useForwardProps } from "reka-ui"
|
|
6
|
+
import { cn } from "@/lib/utils"
|
|
7
|
+
|
|
8
|
+
const props = defineProps<StepperTitleProps & { class?: HTMLAttributes["class"] }>()
|
|
9
|
+
|
|
10
|
+
const delegatedProps = reactiveOmit(props, "class")
|
|
11
|
+
|
|
12
|
+
const forwarded = useForwardProps(delegatedProps)
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<template>
|
|
16
|
+
<StepperTitle v-bind="forwarded" :class="cn('tw:text-md tw:font-semibold tw:whitespace-nowrap', props.class)">
|
|
17
|
+
<slot />
|
|
18
|
+
</StepperTitle>
|
|
19
|
+
</template>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import type { StepperTriggerProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
+
import { StepperTrigger, useForwardProps } from "reka-ui"
|
|
6
|
+
import { cn } from "@/lib/utils"
|
|
7
|
+
|
|
8
|
+
const props = defineProps<StepperTriggerProps & { class?: HTMLAttributes["class"] }>()
|
|
9
|
+
|
|
10
|
+
const delegatedProps = reactiveOmit(props, "class")
|
|
11
|
+
|
|
12
|
+
const forwarded = useForwardProps(delegatedProps)
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<template>
|
|
16
|
+
<StepperTrigger
|
|
17
|
+
v-bind="forwarded"
|
|
18
|
+
:class="cn('tw:p-1 tw:flex tw:flex-col tw:items-center tw:text-center tw:gap-1 tw:rounded-md', props.class)"
|
|
19
|
+
>
|
|
20
|
+
<slot />
|
|
21
|
+
</StepperTrigger>
|
|
22
|
+
</template>
|
|
@@ -24,13 +24,13 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
|
24
24
|
data-slot="switch"
|
|
25
25
|
v-bind="forwarded"
|
|
26
26
|
:class="cn(
|
|
27
|
-
'peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50',
|
|
27
|
+
'tw:peer tw:data-[state=checked]:bg-primary tw:data-[state=unchecked]:bg-input tw:focus-visible:border-ring tw:focus-visible:ring-ring/50 tw:dark:data-[state=unchecked]:bg-input/80 tw:inline-flex tw:h-[1.15rem] tw:w-8 tw:shrink-0 tw:items-center tw:rounded-full tw:border tw:border-transparent tw:shadow-xs tw:transition-all tw:outline-none tw:focus-visible:ring-[3px] tw:disabled:cursor-not-allowed tw:disabled:opacity-50',
|
|
28
28
|
props.class,
|
|
29
29
|
)"
|
|
30
30
|
>
|
|
31
31
|
<SwitchThumb
|
|
32
32
|
data-slot="switch-thumb"
|
|
33
|
-
:class="cn('bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0')"
|
|
33
|
+
:class="cn('tw:bg-background tw:dark:data-[state=unchecked]:bg-foreground tw:dark:data-[state=checked]:bg-primary-foreground tw:pointer-events-none tw:block tw:size-4 tw:rounded-full tw:ring-0 tw:transition-transform tw:data-[state=checked]:translate-x-[calc(100%-2px)] tw:data-[state=unchecked]:translate-x-0')"
|
|
34
34
|
>
|
|
35
35
|
<slot name="thumb" v-bind="slotProps" />
|
|
36
36
|
</SwitchThumb>
|
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from "vue"
|
|
3
|
-
import { cn } from "@/lib/utils"
|
|
2
|
+
import type { HTMLAttributes } from "vue";
|
|
3
|
+
import { cn } from "@/lib/utils";
|
|
4
4
|
|
|
5
5
|
const props = defineProps<{
|
|
6
|
-
class?: HTMLAttributes["class"]
|
|
7
|
-
}>()
|
|
6
|
+
class?: HTMLAttributes["class"];
|
|
7
|
+
}>();
|
|
8
8
|
</script>
|
|
9
9
|
|
|
10
10
|
<template>
|
|
11
|
-
<div
|
|
12
|
-
|
|
11
|
+
<div
|
|
12
|
+
data-slot="table-container"
|
|
13
|
+
class="tw:relative tw:w-full tw:overflow-auto"
|
|
14
|
+
>
|
|
15
|
+
<table
|
|
16
|
+
data-slot="table"
|
|
17
|
+
:class="cn('tw:w-full tw:caption-bottom tw:text-sm', props.class)"
|
|
18
|
+
>
|
|
13
19
|
<slot />
|
|
14
20
|
</table>
|
|
15
21
|
</div>
|
|
@@ -12,7 +12,7 @@ const props = defineProps<{
|
|
|
12
12
|
data-slot="table-cell"
|
|
13
13
|
:class="
|
|
14
14
|
cn(
|
|
15
|
-
'p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]',
|
|
15
|
+
'tw:p-2 tw:align-middle tw:whitespace-nowrap tw:[&:has([role=checkbox])]:pr-0 tw:[&>[role=checkbox]]:translate-y-[2px]',
|
|
16
16
|
props.class,
|
|
17
17
|
)
|
|
18
18
|
"
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import type { HTMLAttributes } from "vue"
|
|
3
|
-
import { reactiveOmit } from "@vueuse/core"
|
|
4
|
-
import { cn } from "@/lib/utils"
|
|
5
|
-
import TableCell from "./TableCell.vue"
|
|
6
|
-
import TableRow from "./TableRow.vue"
|
|
2
|
+
import type { HTMLAttributes } from "vue";
|
|
3
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
4
|
+
import { cn } from "@/lib/utils";
|
|
5
|
+
import TableCell from "./TableCell.vue";
|
|
6
|
+
import TableRow from "./TableRow.vue";
|
|
7
7
|
|
|
8
|
-
const props = withDefaults(
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
const props = withDefaults(
|
|
9
|
+
defineProps<{
|
|
10
|
+
class?: HTMLAttributes["class"];
|
|
11
|
+
colspan?: number;
|
|
12
|
+
}>(),
|
|
13
|
+
{
|
|
14
|
+
colspan: 1,
|
|
15
|
+
},
|
|
16
|
+
);
|
|
14
17
|
|
|
15
|
-
const delegatedProps = reactiveOmit(props, "class")
|
|
18
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
16
19
|
</script>
|
|
17
20
|
|
|
18
21
|
<template>
|
|
@@ -20,13 +23,13 @@ const delegatedProps = reactiveOmit(props, "class")
|
|
|
20
23
|
<TableCell
|
|
21
24
|
:class="
|
|
22
25
|
cn(
|
|
23
|
-
'p-4 whitespace-nowrap align-middle text-sm text-foreground',
|
|
26
|
+
'tw:p-4 tw:whitespace-nowrap tw:align-middle tw:text-sm tw:text-foreground',
|
|
24
27
|
props.class,
|
|
25
28
|
)
|
|
26
29
|
"
|
|
27
30
|
v-bind="delegatedProps"
|
|
28
31
|
>
|
|
29
|
-
<div class="flex items-center justify-center py-10">
|
|
32
|
+
<div class="tw:flex tw:items-center tw:justify-center tw:py-10">
|
|
30
33
|
<slot />
|
|
31
34
|
</div>
|
|
32
35
|
</TableCell>
|
|
@@ -10,7 +10,7 @@ const props = defineProps<{
|
|
|
10
10
|
<template>
|
|
11
11
|
<tfoot
|
|
12
12
|
data-slot="table-footer"
|
|
13
|
-
:class="cn('bg-muted/50 border-t font-medium [&>tr]:last:border-b-0', props.class)"
|
|
13
|
+
:class="cn('tw:bg-muted/50 tw:border-t tw:font-medium tw:[&>tr]:last:border-b-0', props.class)"
|
|
14
14
|
>
|
|
15
15
|
<slot />
|
|
16
16
|
</tfoot>
|
|
@@ -10,7 +10,7 @@ const props = defineProps<{
|
|
|
10
10
|
<template>
|
|
11
11
|
<th
|
|
12
12
|
data-slot="table-head"
|
|
13
|
-
:class="cn('text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]', props.class)"
|
|
13
|
+
:class="cn('tw:text-foreground tw:h-10 tw:px-2 tw:text-left tw:align-middle tw:font-medium tw:whitespace-nowrap tw:[&:has([role=checkbox])]:pr-0 tw:[&>[role=checkbox]]:translate-y-[2px]', props.class)"
|
|
14
14
|
>
|
|
15
15
|
<slot />
|
|
16
16
|
</th>
|
|
@@ -10,7 +10,7 @@ const props = defineProps<{
|
|
|
10
10
|
<template>
|
|
11
11
|
<tr
|
|
12
12
|
data-slot="table-row"
|
|
13
|
-
:class="cn('hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors', props.class)"
|
|
13
|
+
:class="cn('tw:hover:bg-muted/50 tw:data-[state=selected]:bg-muted tw:border-b tw:transition-colors', props.class)"
|
|
14
14
|
>
|
|
15
15
|
<slot />
|
|
16
16
|
</tr>
|
|
@@ -17,7 +17,7 @@ const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
|
17
17
|
v-slot="slotProps"
|
|
18
18
|
data-slot="tabs"
|
|
19
19
|
v-bind="forwarded"
|
|
20
|
-
:class="cn('flex flex-col gap-2', props.class)"
|
|
20
|
+
:class="cn('tw:flex tw:flex-col tw:gap-2', props.class)"
|
|
21
21
|
>
|
|
22
22
|
<slot v-bind="slotProps" />
|
|
23
23
|
</TabsRoot>
|
|
@@ -13,7 +13,7 @@ const delegatedProps = reactiveOmit(props, "class")
|
|
|
13
13
|
<template>
|
|
14
14
|
<TabsContent
|
|
15
15
|
data-slot="tabs-content"
|
|
16
|
-
:class="cn('flex-1 outline-none', props.class)"
|
|
16
|
+
:class="cn('tw:flex-1 tw:outline-none', props.class)"
|
|
17
17
|
v-bind="delegatedProps"
|
|
18
18
|
>
|
|
19
19
|
<slot />
|
|
@@ -15,7 +15,7 @@ const delegatedProps = reactiveOmit(props, "class")
|
|
|
15
15
|
data-slot="tabs-list"
|
|
16
16
|
v-bind="delegatedProps"
|
|
17
17
|
:class="cn(
|
|
18
|
-
'bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]',
|
|
18
|
+
'tw:bg-muted tw:text-muted-foreground tw:inline-flex tw:h-9 tw:w-fit tw:items-center tw:justify-center tw:rounded-lg tw:p-[3px]',
|
|
19
19
|
props.class,
|
|
20
20
|
)"
|
|
21
21
|
>
|
|
@@ -16,7 +16,7 @@ const forwardedProps = useForwardProps(delegatedProps)
|
|
|
16
16
|
<TabsTrigger
|
|
17
17
|
data-slot="tabs-trigger"
|
|
18
18
|
:class="cn(
|
|
19
|
-
'data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=\'size-\'])]:size-4',
|
|
19
|
+
'tw:data-[state=active]:bg-background tw:dark:data-[state=active]:text-foreground tw:focus-visible:border-ring tw:focus-visible:ring-ring/50 tw:focus-visible:outline-ring tw:dark:data-[state=active]:border-input tw:dark:data-[state=active]:bg-input/30 tw:text-foreground tw:dark:text-muted-foreground tw:inline-flex tw:h-[calc(100%-1px)] tw:flex-1 tw:items-center tw:justify-center tw:gap-1.5 tw:rounded-md tw:border tw:border-transparent tw:px-2 tw:py-1 tw:text-sm tw:font-medium tw:whitespace-nowrap tw:transition-[color,box-shadow] tw:focus-visible:ring-[3px] tw:focus-visible:outline-1 tw:disabled:pointer-events-none tw:disabled:opacity-50 tw:data-[state=active]:shadow-sm tw:[&_svg]:pointer-events-none tw:[&_svg]:shrink-0 tw:[&_svg:not([class*=\'size-\'])]:size-4',
|
|
20
20
|
props.class,
|
|
21
21
|
)"
|
|
22
22
|
v-bind="forwardedProps"
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { TagsInputRootEmits, TagsInputRootProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
+
import { TagsInputRoot, useForwardPropsEmits } from "reka-ui"
|
|
6
|
+
import { cn } from "@/lib/utils"
|
|
7
|
+
|
|
8
|
+
const props = defineProps<TagsInputRootProps & { class?: HTMLAttributes["class"] }>()
|
|
9
|
+
const emits = defineEmits<TagsInputRootEmits>()
|
|
10
|
+
|
|
11
|
+
const delegatedProps = reactiveOmit(props, "class")
|
|
12
|
+
|
|
13
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<template>
|
|
17
|
+
<TagsInputRoot
|
|
18
|
+
v-slot="slotProps" v-bind="forwarded" :class="cn(
|
|
19
|
+
'tw:flex tw:flex-wrap tw:gap-2 tw:items-center tw:rounded-md tw:border tw:border-input tw:bg-background tw:px-2 tw:py-1 tw:text-sm tw:shadow-xs tw:transition-[color,box-shadow] tw:outline-none',
|
|
20
|
+
'tw:focus-within:border-ring tw:focus-within:ring-ring/50 tw:focus-within:ring-[3px]',
|
|
21
|
+
'tw:aria-invalid:ring-destructive/20 tw:dark:aria-invalid:ring-destructive/40 tw:aria-invalid:border-destructive',
|
|
22
|
+
props.class)"
|
|
23
|
+
>
|
|
24
|
+
<slot v-bind="slotProps" />
|
|
25
|
+
</TagsInputRoot>
|
|
26
|
+
</template>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { TagsInputInputProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
+
import { TagsInputInput, useForwardProps } from "reka-ui"
|
|
6
|
+
import { cn } from "@/lib/utils"
|
|
7
|
+
|
|
8
|
+
const props = defineProps<TagsInputInputProps & { class?: HTMLAttributes["class"] }>()
|
|
9
|
+
|
|
10
|
+
const delegatedProps = reactiveOmit(props, "class")
|
|
11
|
+
|
|
12
|
+
const forwardedProps = useForwardProps(delegatedProps)
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<template>
|
|
16
|
+
<TagsInputInput v-bind="forwardedProps" :class="cn('tw:text-sm tw:min-h-5 tw:focus:outline-none tw:flex-1 tw:bg-transparent tw:px-1', props.class)" />
|
|
17
|
+
</template>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { TagsInputItemProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
|
|
5
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
6
|
+
import { TagsInputItem, useForwardProps } from "reka-ui"
|
|
7
|
+
import { cn } from "@/lib/utils"
|
|
8
|
+
|
|
9
|
+
const props = defineProps<TagsInputItemProps & { class?: HTMLAttributes["class"] }>()
|
|
10
|
+
|
|
11
|
+
const delegatedProps = reactiveOmit(props, "class")
|
|
12
|
+
|
|
13
|
+
const forwardedProps = useForwardProps(delegatedProps)
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<template>
|
|
17
|
+
<TagsInputItem v-bind="forwardedProps" :class="cn('tw:flex tw:h-5 tw:items-center tw:rounded-md tw:bg-secondary tw:data-[state=active]:ring-ring tw:data-[state=active]:ring-2 tw:data-[state=active]:ring-offset-2 tw:ring-offset-background', props.class)">
|
|
18
|
+
<slot />
|
|
19
|
+
</TagsInputItem>
|
|
20
|
+
</template>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { TagsInputItemDeleteProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
+
import { X } from "lucide-vue-next"
|
|
6
|
+
import { TagsInputItemDelete, useForwardProps } from "reka-ui"
|
|
7
|
+
import { cn } from "@/lib/utils"
|
|
8
|
+
|
|
9
|
+
const props = defineProps<TagsInputItemDeleteProps & { class?: HTMLAttributes["class"] }>()
|
|
10
|
+
|
|
11
|
+
const delegatedProps = reactiveOmit(props, "class")
|
|
12
|
+
|
|
13
|
+
const forwardedProps = useForwardProps(delegatedProps)
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<template>
|
|
17
|
+
<TagsInputItemDelete v-bind="forwardedProps" :class="cn('tw:flex tw:rounded tw:bg-transparent tw:mr-1', props.class)">
|
|
18
|
+
<slot>
|
|
19
|
+
<X class=""tw:w-4 tw:h-4"" />
|
|
20
|
+
</slot>
|
|
21
|
+
</TagsInputItemDelete>
|
|
22
|
+
</template>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { TagsInputItemTextProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
+
import { TagsInputItemText, useForwardProps } from "reka-ui"
|
|
6
|
+
import { cn } from "@/lib/utils"
|
|
7
|
+
|
|
8
|
+
const props = defineProps<TagsInputItemTextProps & { class?: HTMLAttributes["class"] }>()
|
|
9
|
+
|
|
10
|
+
const delegatedProps = reactiveOmit(props, "class")
|
|
11
|
+
|
|
12
|
+
const forwardedProps = useForwardProps(delegatedProps)
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<template>
|
|
16
|
+
<TagsInputItemText v-bind="forwardedProps" :class="cn('tw:py-0.5 tw:px-2 tw:text-sm tw:rounded tw:bg-transparent', props.class)">
|
|
17
|
+
<slot />
|
|
18
|
+
</TagsInputItemText>
|
|
19
|
+
</template>
|
|
@@ -23,6 +23,6 @@ const modelValue = useVModel(props, "modelValue", emits, {
|
|
|
23
23
|
<textarea
|
|
24
24
|
v-model="modelValue"
|
|
25
25
|
data-slot="textarea"
|
|
26
|
-
:class="cn('border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm', props.class)"
|
|
26
|
+
:class="cn('tw:border-input tw:placeholder:text-muted-foreground tw:focus-visible:border-ring tw:focus-visible:ring-ring/50 tw:aria-invalid:ring-destructive/20 tw:dark:aria-invalid:ring-destructive/40 tw:aria-invalid:border-destructive tw:dark:bg-input/30 tw:flex tw:field-sizing-content tw:min-h-16 tw:w-full tw:rounded-md tw:border tw:bg-transparent tw:px-3 tw:py-2 tw:text-base tw:shadow-xs tw:transition-[color,box-shadow] tw:outline-none tw:focus-visible:ring-[3px] tw:disabled:cursor-not-allowed tw:disabled:opacity-50 tw:md:text-sm', props.class)"
|
|
27
27
|
/>
|
|
28
28
|
</template>
|