@polymarbot/nuxt-layer-shadcn-ui 0.1.0
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/app/assets/styles/animate.css +71 -0
- package/app/assets/styles/colors.css +116 -0
- package/app/assets/styles/globals.css +43 -0
- package/app/assets/styles/index.stories.ts +211 -0
- package/app/assets/styles/transition.css +34 -0
- package/app/assets/styles/utilities.css +26 -0
- package/app/components/shadcn/accordion/Accordion.vue +18 -0
- package/app/components/shadcn/accordion/AccordionContent.vue +23 -0
- package/app/components/shadcn/accordion/AccordionItem.vue +24 -0
- package/app/components/shadcn/accordion/AccordionTrigger.vue +37 -0
- package/app/components/shadcn/accordion/index.ts +4 -0
- package/app/components/shadcn/alert/Alert.vue +21 -0
- package/app/components/shadcn/alert/AlertDescription.vue +17 -0
- package/app/components/shadcn/alert/AlertTitle.vue +17 -0
- package/app/components/shadcn/alert/index.ts +24 -0
- package/app/components/shadcn/avatar/Avatar.vue +18 -0
- package/app/components/shadcn/avatar/AvatarFallback.vue +21 -0
- package/app/components/shadcn/avatar/AvatarImage.vue +16 -0
- package/app/components/shadcn/avatar/index.ts +3 -0
- package/app/components/shadcn/badge/Badge.vue +26 -0
- package/app/components/shadcn/badge/index.ts +26 -0
- package/app/components/shadcn/breadcrumb/Breadcrumb.vue +17 -0
- package/app/components/shadcn/breadcrumb/BreadcrumbEllipsis.vue +23 -0
- package/app/components/shadcn/breadcrumb/BreadcrumbItem.vue +17 -0
- package/app/components/shadcn/breadcrumb/BreadcrumbLink.vue +21 -0
- package/app/components/shadcn/breadcrumb/BreadcrumbList.vue +17 -0
- package/app/components/shadcn/breadcrumb/BreadcrumbPage.vue +20 -0
- package/app/components/shadcn/breadcrumb/BreadcrumbSeparator.vue +22 -0
- package/app/components/shadcn/breadcrumb/index.ts +7 -0
- package/app/components/shadcn/button/Button.vue +31 -0
- package/app/components/shadcn/button/index.ts +38 -0
- package/app/components/shadcn/card/Card.vue +22 -0
- package/app/components/shadcn/card/CardAction.vue +17 -0
- package/app/components/shadcn/card/CardContent.vue +17 -0
- package/app/components/shadcn/card/CardDescription.vue +17 -0
- package/app/components/shadcn/card/CardFooter.vue +17 -0
- package/app/components/shadcn/card/CardHeader.vue +17 -0
- package/app/components/shadcn/card/CardTitle.vue +17 -0
- package/app/components/shadcn/card/index.ts +7 -0
- package/app/components/shadcn/checkbox/Checkbox.vue +35 -0
- package/app/components/shadcn/checkbox/index.ts +1 -0
- package/app/components/shadcn/collapsible/Collapsible.vue +19 -0
- package/app/components/shadcn/collapsible/CollapsibleContent.vue +15 -0
- package/app/components/shadcn/collapsible/CollapsibleTrigger.vue +15 -0
- package/app/components/shadcn/collapsible/index.ts +3 -0
- package/app/components/shadcn/command/Command.vue +87 -0
- package/app/components/shadcn/command/CommandDialog.vue +31 -0
- package/app/components/shadcn/command/CommandEmpty.vue +27 -0
- package/app/components/shadcn/command/CommandGroup.vue +45 -0
- package/app/components/shadcn/command/CommandInput.vue +39 -0
- package/app/components/shadcn/command/CommandItem.vue +76 -0
- package/app/components/shadcn/command/CommandList.vue +25 -0
- package/app/components/shadcn/command/CommandSeparator.vue +21 -0
- package/app/components/shadcn/command/CommandShortcut.vue +17 -0
- package/app/components/shadcn/command/index.ts +25 -0
- package/app/components/shadcn/dialog/Dialog.vue +19 -0
- package/app/components/shadcn/dialog/DialogClose.vue +15 -0
- package/app/components/shadcn/dialog/DialogContent.vue +53 -0
- package/app/components/shadcn/dialog/DialogDescription.vue +23 -0
- package/app/components/shadcn/dialog/DialogFooter.vue +27 -0
- package/app/components/shadcn/dialog/DialogHeader.vue +17 -0
- package/app/components/shadcn/dialog/DialogOverlay.vue +21 -0
- package/app/components/shadcn/dialog/DialogScrollContent.vue +59 -0
- package/app/components/shadcn/dialog/DialogTitle.vue +23 -0
- package/app/components/shadcn/dialog/DialogTrigger.vue +15 -0
- package/app/components/shadcn/dialog/index.ts +10 -0
- package/app/components/shadcn/dropdown-menu/DropdownMenu.vue +19 -0
- package/app/components/shadcn/dropdown-menu/DropdownMenuCheckboxItem.vue +39 -0
- package/app/components/shadcn/dropdown-menu/DropdownMenuContent.vue +39 -0
- package/app/components/shadcn/dropdown-menu/DropdownMenuGroup.vue +15 -0
- package/app/components/shadcn/dropdown-menu/DropdownMenuItem.vue +31 -0
- package/app/components/shadcn/dropdown-menu/DropdownMenuLabel.vue +23 -0
- package/app/components/shadcn/dropdown-menu/DropdownMenuRadioGroup.vue +21 -0
- package/app/components/shadcn/dropdown-menu/DropdownMenuRadioItem.vue +40 -0
- package/app/components/shadcn/dropdown-menu/DropdownMenuSeparator.vue +23 -0
- package/app/components/shadcn/dropdown-menu/DropdownMenuShortcut.vue +17 -0
- package/app/components/shadcn/dropdown-menu/DropdownMenuSub.vue +18 -0
- package/app/components/shadcn/dropdown-menu/DropdownMenuSubContent.vue +27 -0
- package/app/components/shadcn/dropdown-menu/DropdownMenuSubTrigger.vue +31 -0
- package/app/components/shadcn/dropdown-menu/DropdownMenuTrigger.vue +17 -0
- package/app/components/shadcn/dropdown-menu/index.ts +16 -0
- package/app/components/shadcn/field/Field.vue +25 -0
- package/app/components/shadcn/field/FieldContent.vue +20 -0
- package/app/components/shadcn/field/FieldDescription.vue +22 -0
- package/app/components/shadcn/field/FieldError.vue +53 -0
- package/app/components/shadcn/field/FieldGroup.vue +20 -0
- package/app/components/shadcn/field/FieldLabel.vue +23 -0
- package/app/components/shadcn/field/FieldLegend.vue +24 -0
- package/app/components/shadcn/field/FieldSeparator.vue +29 -0
- package/app/components/shadcn/field/FieldSet.vue +21 -0
- package/app/components/shadcn/field/FieldTitle.vue +20 -0
- package/app/components/shadcn/field/index.ts +39 -0
- package/app/components/shadcn/input/Input.vue +33 -0
- package/app/components/shadcn/input/index.ts +1 -0
- package/app/components/shadcn/input-group/InputGroup.vue +35 -0
- package/app/components/shadcn/input-group/InputGroupAddon.vue +36 -0
- package/app/components/shadcn/input-group/InputGroupButton.vue +29 -0
- package/app/components/shadcn/input-group/InputGroupInput.vue +19 -0
- package/app/components/shadcn/input-group/InputGroupText.vue +19 -0
- package/app/components/shadcn/input-group/InputGroupTextarea.vue +19 -0
- package/app/components/shadcn/input-group/index.ts +51 -0
- package/app/components/shadcn/label/Label.vue +26 -0
- package/app/components/shadcn/label/index.ts +1 -0
- package/app/components/shadcn/number-field/NumberField.vue +20 -0
- package/app/components/shadcn/number-field/NumberFieldContent.vue +14 -0
- package/app/components/shadcn/number-field/NumberFieldDecrement.vue +22 -0
- package/app/components/shadcn/number-field/NumberFieldIncrement.vue +22 -0
- package/app/components/shadcn/number-field/NumberFieldInput.vue +16 -0
- package/app/components/shadcn/number-field/index.ts +5 -0
- package/app/components/shadcn/pagination/Pagination.vue +26 -0
- package/app/components/shadcn/pagination/PaginationContent.vue +22 -0
- package/app/components/shadcn/pagination/PaginationEllipsis.vue +25 -0
- package/app/components/shadcn/pagination/PaginationFirst.vue +33 -0
- package/app/components/shadcn/pagination/PaginationItem.vue +34 -0
- package/app/components/shadcn/pagination/PaginationLast.vue +33 -0
- package/app/components/shadcn/pagination/PaginationNext.vue +33 -0
- package/app/components/shadcn/pagination/PaginationPrevious.vue +33 -0
- package/app/components/shadcn/pagination/index.ts +8 -0
- package/app/components/shadcn/pin-input/PinInput.vue +26 -0
- package/app/components/shadcn/pin-input/PinInputGroup.vue +21 -0
- package/app/components/shadcn/pin-input/PinInputSeparator.vue +19 -0
- package/app/components/shadcn/pin-input/PinInputSlot.vue +21 -0
- package/app/components/shadcn/pin-input/index.ts +4 -0
- package/app/components/shadcn/popover/Popover.vue +19 -0
- package/app/components/shadcn/popover/PopoverAnchor.vue +15 -0
- package/app/components/shadcn/popover/PopoverContent.vue +45 -0
- package/app/components/shadcn/popover/PopoverTrigger.vue +15 -0
- package/app/components/shadcn/popover/index.ts +4 -0
- package/app/components/shadcn/progress/Progress.vue +38 -0
- package/app/components/shadcn/progress/index.ts +1 -0
- package/app/components/shadcn/radio-group/RadioGroup.vue +25 -0
- package/app/components/shadcn/radio-group/RadioGroupItem.vue +40 -0
- package/app/components/shadcn/radio-group/index.ts +2 -0
- package/app/components/shadcn/scroll-area/ScrollArea.vue +33 -0
- package/app/components/shadcn/scroll-area/ScrollBar.vue +32 -0
- package/app/components/shadcn/scroll-area/index.ts +2 -0
- package/app/components/shadcn/select/Select.vue +19 -0
- package/app/components/shadcn/select/SelectContent.vue +51 -0
- package/app/components/shadcn/select/SelectGroup.vue +15 -0
- package/app/components/shadcn/select/SelectItem.vue +44 -0
- package/app/components/shadcn/select/SelectItemText.vue +15 -0
- package/app/components/shadcn/select/SelectLabel.vue +17 -0
- package/app/components/shadcn/select/SelectScrollDownButton.vue +26 -0
- package/app/components/shadcn/select/SelectScrollUpButton.vue +26 -0
- package/app/components/shadcn/select/SelectSeparator.vue +19 -0
- package/app/components/shadcn/select/SelectTrigger.vue +33 -0
- package/app/components/shadcn/select/SelectValue.vue +15 -0
- package/app/components/shadcn/select/index.ts +11 -0
- package/app/components/shadcn/separator/Separator.vue +29 -0
- package/app/components/shadcn/separator/index.ts +1 -0
- package/app/components/shadcn/sheet/Sheet.vue +19 -0
- package/app/components/shadcn/sheet/SheetClose.vue +15 -0
- package/app/components/shadcn/sheet/SheetContent.vue +62 -0
- package/app/components/shadcn/sheet/SheetDescription.vue +21 -0
- package/app/components/shadcn/sheet/SheetFooter.vue +16 -0
- package/app/components/shadcn/sheet/SheetHeader.vue +15 -0
- package/app/components/shadcn/sheet/SheetOverlay.vue +21 -0
- package/app/components/shadcn/sheet/SheetTitle.vue +21 -0
- package/app/components/shadcn/sheet/SheetTrigger.vue +15 -0
- package/app/components/shadcn/sheet/index.ts +8 -0
- package/app/components/shadcn/sidebar/Sidebar.vue +96 -0
- package/app/components/shadcn/sidebar/SidebarContent.vue +18 -0
- package/app/components/shadcn/sidebar/SidebarFooter.vue +18 -0
- package/app/components/shadcn/sidebar/SidebarGroup.vue +18 -0
- package/app/components/shadcn/sidebar/SidebarGroupAction.vue +27 -0
- package/app/components/shadcn/sidebar/SidebarGroupContent.vue +18 -0
- package/app/components/shadcn/sidebar/SidebarGroupLabel.vue +25 -0
- package/app/components/shadcn/sidebar/SidebarHeader.vue +18 -0
- package/app/components/shadcn/sidebar/SidebarInput.vue +22 -0
- package/app/components/shadcn/sidebar/SidebarInset.vue +21 -0
- package/app/components/shadcn/sidebar/SidebarMenu.vue +18 -0
- package/app/components/shadcn/sidebar/SidebarMenuAction.vue +35 -0
- package/app/components/shadcn/sidebar/SidebarMenuBadge.vue +26 -0
- package/app/components/shadcn/sidebar/SidebarMenuButton.vue +48 -0
- package/app/components/shadcn/sidebar/SidebarMenuButtonChild.vue +36 -0
- package/app/components/shadcn/sidebar/SidebarMenuItem.vue +18 -0
- package/app/components/shadcn/sidebar/SidebarMenuSkeleton.vue +35 -0
- package/app/components/shadcn/sidebar/SidebarMenuSub.vue +22 -0
- package/app/components/shadcn/sidebar/SidebarMenuSubButton.vue +36 -0
- package/app/components/shadcn/sidebar/SidebarMenuSubItem.vue +18 -0
- package/app/components/shadcn/sidebar/SidebarProvider.vue +82 -0
- package/app/components/shadcn/sidebar/SidebarRail.vue +33 -0
- package/app/components/shadcn/sidebar/SidebarSeparator.vue +19 -0
- package/app/components/shadcn/sidebar/SidebarTrigger.vue +27 -0
- package/app/components/shadcn/sidebar/index.ts +60 -0
- package/app/components/shadcn/sidebar/utils.ts +19 -0
- package/app/components/shadcn/skeleton/Skeleton.vue +17 -0
- package/app/components/shadcn/skeleton/index.ts +1 -0
- package/app/components/shadcn/slider/Slider.vue +43 -0
- package/app/components/shadcn/slider/index.ts +1 -0
- package/app/components/shadcn/sonner/Sonner.vue +42 -0
- package/app/components/shadcn/sonner/index.ts +1 -0
- package/app/components/shadcn/switch/Switch.vue +38 -0
- package/app/components/shadcn/switch/index.ts +1 -0
- package/app/components/shadcn/table/Table.vue +16 -0
- package/app/components/shadcn/table/TableBody.vue +17 -0
- package/app/components/shadcn/table/TableCaption.vue +17 -0
- package/app/components/shadcn/table/TableCell.vue +22 -0
- package/app/components/shadcn/table/TableEmpty.vue +34 -0
- package/app/components/shadcn/table/TableFooter.vue +17 -0
- package/app/components/shadcn/table/TableHead.vue +17 -0
- package/app/components/shadcn/table/TableHeader.vue +17 -0
- package/app/components/shadcn/table/TableRow.vue +17 -0
- package/app/components/shadcn/table/index.ts +9 -0
- package/app/components/shadcn/table/utils.ts +10 -0
- package/app/components/shadcn/tabs/Tabs.vue +24 -0
- package/app/components/shadcn/tabs/TabsContent.vue +21 -0
- package/app/components/shadcn/tabs/TabsList.vue +24 -0
- package/app/components/shadcn/tabs/TabsTrigger.vue +26 -0
- package/app/components/shadcn/tabs/index.ts +4 -0
- package/app/components/shadcn/textarea/Textarea.vue +28 -0
- package/app/components/shadcn/textarea/index.ts +1 -0
- package/app/components/shadcn/toggle/Toggle.vue +35 -0
- package/app/components/shadcn/toggle/index.ts +28 -0
- package/app/components/shadcn/toggle-group/ToggleGroup.vue +49 -0
- package/app/components/shadcn/toggle-group/ToggleGroupItem.vue +46 -0
- package/app/components/shadcn/toggle-group/index.ts +2 -0
- package/app/components/shadcn/tooltip/Tooltip.vue +19 -0
- package/app/components/shadcn/tooltip/TooltipContent.vue +34 -0
- package/app/components/shadcn/tooltip/TooltipProvider.vue +14 -0
- package/app/components/shadcn/tooltip/TooltipTrigger.vue +15 -0
- package/app/components/shadcn/tooltip/index.ts +4 -0
- package/app/components/ui/Accordion/index.stories.ts +108 -0
- package/app/components/ui/Accordion/index.vue +80 -0
- package/app/components/ui/Accordion/types.ts +27 -0
- package/app/components/ui/Alert/index.stories.ts +53 -0
- package/app/components/ui/Alert/index.vue +61 -0
- package/app/components/ui/Alert/types.ts +9 -0
- package/app/components/ui/AlertDialog/index.stories.ts +108 -0
- package/app/components/ui/AlertDialog/index.vue +25 -0
- package/app/components/ui/AsyncDataTable/en.json +3 -0
- package/app/components/ui/AsyncDataTable/index.stories.ts +141 -0
- package/app/components/ui/AsyncDataTable/index.vue +312 -0
- package/app/components/ui/AsyncDataTable/types.ts +53 -0
- package/app/components/ui/Avatar/index.stories.ts +84 -0
- package/app/components/ui/Avatar/index.vue +52 -0
- package/app/components/ui/Avatar/types.ts +8 -0
- package/app/components/ui/Badge/index.stories.ts +67 -0
- package/app/components/ui/Badge/index.vue +12 -0
- package/app/components/ui/Badge/types.ts +3 -0
- package/app/components/ui/Breadcrumb/index.stories.ts +52 -0
- package/app/components/ui/Breadcrumb/index.vue +61 -0
- package/app/components/ui/Breadcrumb/types.ts +11 -0
- package/app/components/ui/Button/index.stories.ts +145 -0
- package/app/components/ui/Button/index.vue +63 -0
- package/app/components/ui/Button/types.ts +14 -0
- package/app/components/ui/ButtonGroup/index.stories.ts +75 -0
- package/app/components/ui/ButtonGroup/index.vue +22 -0
- package/app/components/ui/ButtonGroup/types.ts +3 -0
- package/app/components/ui/Card/index.stories.ts +65 -0
- package/app/components/ui/Card/index.vue +28 -0
- package/app/components/ui/Card/types.ts +3 -0
- package/app/components/ui/Checkbox/index.stories.ts +68 -0
- package/app/components/ui/Checkbox/index.vue +23 -0
- package/app/components/ui/Checkbox/types.ts +3 -0
- package/app/components/ui/CopyButton/en.json +4 -0
- package/app/components/ui/CopyButton/index.stories.ts +55 -0
- package/app/components/ui/CopyButton/index.vue +98 -0
- package/app/components/ui/CopyButton/types.ts +10 -0
- package/app/components/ui/DataTable/en.json +3 -0
- package/app/components/ui/DataTable/index.stories.ts +231 -0
- package/app/components/ui/DataTable/index.vue +505 -0
- package/app/components/ui/DataTable/types.ts +42 -0
- package/app/components/ui/DatePicker/en.json +9 -0
- package/app/components/ui/DatePicker/index.stories.ts +70 -0
- package/app/components/ui/DatePicker/index.vue +127 -0
- package/app/components/ui/DatePicker/style.css +88 -0
- package/app/components/ui/DatePicker/types.ts +41 -0
- package/app/components/ui/DateRangePicker/en.json +5 -0
- package/app/components/ui/DateRangePicker/index.stories.ts +67 -0
- package/app/components/ui/DateRangePicker/index.vue +138 -0
- package/app/components/ui/DateRangePicker/types.ts +31 -0
- package/app/components/ui/Divider/index.stories.ts +42 -0
- package/app/components/ui/Divider/index.vue +16 -0
- package/app/components/ui/Divider/types.ts +3 -0
- package/app/components/ui/Drawer/index.stories.ts +124 -0
- package/app/components/ui/Drawer/index.vue +197 -0
- package/app/components/ui/Drawer/types.ts +22 -0
- package/app/components/ui/Dropdown/index.stories.ts +145 -0
- package/app/components/ui/Dropdown/index.vue +258 -0
- package/app/components/ui/Dropdown/types.ts +87 -0
- package/app/components/ui/FormItem/index.stories.ts +70 -0
- package/app/components/ui/FormItem/index.vue +56 -0
- package/app/components/ui/FormItem/types.ts +14 -0
- package/app/components/ui/Help/index.stories.ts +54 -0
- package/app/components/ui/Help/index.vue +35 -0
- package/app/components/ui/Help/types.ts +8 -0
- package/app/components/ui/Icon/index.stories.ts +68 -0
- package/app/components/ui/Icon/index.vue +30 -0
- package/app/components/ui/Icon/types.ts +5 -0
- package/app/components/ui/Input/index.stories.ts +73 -0
- package/app/components/ui/Input/index.vue +92 -0
- package/app/components/ui/Input/types.ts +9 -0
- package/app/components/ui/InputCurrency/index.stories.ts +75 -0
- package/app/components/ui/InputCurrency/index.vue +31 -0
- package/app/components/ui/InputCurrency/types.ts +4 -0
- package/app/components/ui/InputNumber/index.stories.ts +56 -0
- package/app/components/ui/InputNumber/index.vue +76 -0
- package/app/components/ui/InputNumber/types.ts +10 -0
- package/app/components/ui/InputOtp/index.stories.ts +39 -0
- package/app/components/ui/InputOtp/index.vue +45 -0
- package/app/components/ui/InputOtp/types.ts +5 -0
- package/app/components/ui/InputPercent/index.stories.ts +32 -0
- package/app/components/ui/InputPercent/index.vue +8 -0
- package/app/components/ui/InputRange/index.stories.ts +37 -0
- package/app/components/ui/InputRange/index.vue +49 -0
- package/app/components/ui/InputRange/types.ts +8 -0
- package/app/components/ui/Loading/index.stories.ts +36 -0
- package/app/components/ui/Loading/index.vue +15 -0
- package/app/components/ui/Loading/types.ts +3 -0
- package/app/components/ui/Markdown/index.stories.ts +52 -0
- package/app/components/ui/Markdown/index.vue +22 -0
- package/app/components/ui/Markdown/themes/github.css +1248 -0
- package/app/components/ui/Markdown/types.ts +3 -0
- package/app/components/ui/Modal/index.stories.ts +124 -0
- package/app/components/ui/Modal/index.vue +202 -0
- package/app/components/ui/Modal/types.ts +23 -0
- package/app/components/ui/ModalContent/index.stories.ts +47 -0
- package/app/components/ui/ModalContent/index.vue +79 -0
- package/app/components/ui/ModalContent/types.ts +9 -0
- package/app/components/ui/PageCard/index.stories.ts +106 -0
- package/app/components/ui/PageCard/index.vue +135 -0
- package/app/components/ui/PageCard/types.ts +16 -0
- package/app/components/ui/Pagination/en.json +3 -0
- package/app/components/ui/Pagination/index.stories.ts +82 -0
- package/app/components/ui/Pagination/index.vue +173 -0
- package/app/components/ui/Pagination/types.ts +18 -0
- package/app/components/ui/Popover/index.stories.ts +67 -0
- package/app/components/ui/Popover/index.vue +21 -0
- package/app/components/ui/Popover/types.ts +5 -0
- package/app/components/ui/Qrcode/index.stories.ts +57 -0
- package/app/components/ui/Qrcode/index.vue +40 -0
- package/app/components/ui/Qrcode/types.ts +3 -0
- package/app/components/ui/Radio/index.stories.ts +71 -0
- package/app/components/ui/Radio/index.vue +10 -0
- package/app/components/ui/Radio/types.ts +3 -0
- package/app/components/ui/RadioCardGroup/index.stories.ts +90 -0
- package/app/components/ui/RadioCardGroup/index.vue +64 -0
- package/app/components/ui/RadioCardGroup/types.ts +13 -0
- package/app/components/ui/ScrollArea/index.stories.ts +66 -0
- package/app/components/ui/ScrollArea/index.vue +64 -0
- package/app/components/ui/ScrollArea/types.ts +5 -0
- package/app/components/ui/SearchSelect/en.json +5 -0
- package/app/components/ui/SearchSelect/index.stories.ts +126 -0
- package/app/components/ui/SearchSelect/index.vue +259 -0
- package/app/components/ui/SearchSelect/types.ts +39 -0
- package/app/components/ui/Select/en.json +6 -0
- package/app/components/ui/Select/index.stories.ts +128 -0
- package/app/components/ui/Select/index.vue +267 -0
- package/app/components/ui/Select/types.ts +34 -0
- package/app/components/ui/Skeleton/index.stories.ts +56 -0
- package/app/components/ui/Skeleton/index.vue +12 -0
- package/app/components/ui/Skeleton/types.ts +4 -0
- package/app/components/ui/Slider/index.stories.ts +60 -0
- package/app/components/ui/Slider/index.vue +27 -0
- package/app/components/ui/Slider/types.ts +5 -0
- package/app/components/ui/Surface/index.stories.ts +50 -0
- package/app/components/ui/Surface/index.vue +108 -0
- package/app/components/ui/Surface/types.ts +8 -0
- package/app/components/ui/Switch/index.stories.ts +32 -0
- package/app/components/ui/Switch/index.vue +10 -0
- package/app/components/ui/Switch/types.ts +3 -0
- package/app/components/ui/Tabs/index.stories.ts +116 -0
- package/app/components/ui/Tabs/index.vue +94 -0
- package/app/components/ui/Tabs/types.ts +19 -0
- package/app/components/ui/Tag/index.stories.ts +51 -0
- package/app/components/ui/Tag/index.vue +108 -0
- package/app/components/ui/Tag/types.ts +8 -0
- package/app/components/ui/Textarea/index.stories.ts +35 -0
- package/app/components/ui/Textarea/index.vue +50 -0
- package/app/components/ui/Textarea/types.ts +8 -0
- package/app/components/ui/Toast/index.stories.ts +48 -0
- package/app/components/ui/Toast/index.vue +21 -0
- package/app/components/ui/Toast/types.ts +5 -0
- package/app/components/ui/Tooltip/index.stories.ts +62 -0
- package/app/components/ui/Tooltip/index.vue +72 -0
- package/app/components/ui/Tooltip/types.ts +7 -0
- package/app/components/ui/WebLink/index.stories.ts +59 -0
- package/app/components/ui/WebLink/index.vue +61 -0
- package/app/components/ui/WebLink/types.ts +11 -0
- package/app/composables/index.ts +9 -0
- package/app/composables/useDialog.ts +76 -0
- package/app/composables/useToast.ts +49 -0
- package/app/en.json +23 -0
- package/app/types/index.ts +7 -0
- package/app/utils/index.ts +6 -0
- package/i18n/messages/ar.json +65 -0
- package/i18n/messages/de.json +65 -0
- package/i18n/messages/en.json +65 -0
- package/i18n/messages/es.json +65 -0
- package/i18n/messages/fr.json +65 -0
- package/i18n/messages/hi.json +65 -0
- package/i18n/messages/id.json +65 -0
- package/i18n/messages/it.json +65 -0
- package/i18n/messages/ja.json +65 -0
- package/i18n/messages/ko.json +65 -0
- package/i18n/messages/nl.json +65 -0
- package/i18n/messages/pl.json +65 -0
- package/i18n/messages/pt.json +65 -0
- package/i18n/messages/ru.json +65 -0
- package/i18n/messages/th.json +65 -0
- package/i18n/messages/tr.json +65 -0
- package/i18n/messages/vi.json +65 -0
- package/i18n/messages/zh-CN.json +65 -0
- package/i18n/messages/zh-TW.json +65 -0
- package/i18n.config.ts +19 -0
- package/nuxt.config.ts +62 -0
- package/package.json +46 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
@keyframes slideIn {
|
|
2
|
+
from {
|
|
3
|
+
transform: translateX(calc(100% + var(--viewport-padding)));
|
|
4
|
+
}
|
|
5
|
+
to {
|
|
6
|
+
transform: translateX(0);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@keyframes hide {
|
|
11
|
+
from {
|
|
12
|
+
opacity: 1;
|
|
13
|
+
}
|
|
14
|
+
to {
|
|
15
|
+
opacity: 0;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@keyframes swipeOut {
|
|
20
|
+
from {
|
|
21
|
+
transform: translateX(var(--radix-toast-swipe-end-x));
|
|
22
|
+
}
|
|
23
|
+
to {
|
|
24
|
+
transform: translateX(calc(100% + var(--viewport-padding)));
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@keyframes shake {
|
|
29
|
+
0%, 100% {
|
|
30
|
+
transform: translateX(0);
|
|
31
|
+
}
|
|
32
|
+
10%, 30%, 50%, 70%, 90% {
|
|
33
|
+
transform: translateX(-4px);
|
|
34
|
+
}
|
|
35
|
+
20%, 40%, 60%, 80% {
|
|
36
|
+
transform: translateX(4px);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@keyframes pop {
|
|
41
|
+
from {
|
|
42
|
+
transform: scale(0);
|
|
43
|
+
opacity: 0;
|
|
44
|
+
}
|
|
45
|
+
to {
|
|
46
|
+
transform: scale(1);
|
|
47
|
+
opacity: 1;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@layer utilities {
|
|
52
|
+
.animate-slideIn {
|
|
53
|
+
animation: slideIn 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.animate-hide {
|
|
57
|
+
animation: hide 100ms ease-in;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.animate-swipeOut {
|
|
61
|
+
animation: swipeOut 100ms ease-out;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.animate-shake {
|
|
65
|
+
animation: shake 0.5s ease-in-out;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.animate-pop {
|
|
69
|
+
animation: pop 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/* shadcn-vue color tokens (Zinc base, oklch format) */
|
|
2
|
+
/* Reference: https://www.shadcn-vue.com/themes */
|
|
3
|
+
|
|
4
|
+
:root {
|
|
5
|
+
/* Background scale — base / surface / muted / accent */
|
|
6
|
+
--background: oklch(1 0 0);
|
|
7
|
+
--background-surface: oklch(0.98 0 0);
|
|
8
|
+
--background-muted: oklch(0.95 0 0);
|
|
9
|
+
--background-accent: oklch(0.93 0 0);
|
|
10
|
+
|
|
11
|
+
/* Foreground scale — base / muted / accent */
|
|
12
|
+
--foreground: oklch(0.145 0 0);
|
|
13
|
+
--foreground-muted: oklch(0.556 0 0);
|
|
14
|
+
--foreground-accent: oklch(0.35 0 0);
|
|
15
|
+
|
|
16
|
+
/* Brand */
|
|
17
|
+
--primary: oklch(0.205 0 0);
|
|
18
|
+
--primary-foreground: oklch(0.985 0 0);
|
|
19
|
+
|
|
20
|
+
/* Border */
|
|
21
|
+
--border: oklch(0.922 0 0);
|
|
22
|
+
--input: oklch(0.922 0 0);
|
|
23
|
+
--ring: oklch(0.708 0 0);
|
|
24
|
+
|
|
25
|
+
/* Semantic status */
|
|
26
|
+
--status-foreground: oklch(0.985 0 0);
|
|
27
|
+
--success: oklch(0.58 0.17 163.225);
|
|
28
|
+
--info: oklch(0.58 0.15 221.723);
|
|
29
|
+
--help: oklch(0.53 0.21 293.541);
|
|
30
|
+
--warn: oklch(0.55 0.18 62.823);
|
|
31
|
+
--danger: oklch(0.56 0.25 27.325);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.dark {
|
|
35
|
+
/* Background scale */
|
|
36
|
+
--background: oklch(0.12 0 0);
|
|
37
|
+
--background-surface: oklch(0.18 0 0);
|
|
38
|
+
--background-muted: oklch(0.25 0 0);
|
|
39
|
+
--background-accent: oklch(0.3 0 0);
|
|
40
|
+
|
|
41
|
+
/* Foreground scale */
|
|
42
|
+
--foreground: oklch(0.985 0 0);
|
|
43
|
+
--foreground-muted: oklch(0.708 0 0);
|
|
44
|
+
--foreground-accent: oklch(0.85 0 0);
|
|
45
|
+
|
|
46
|
+
/* Brand */
|
|
47
|
+
--primary: oklch(0.985 0 0);
|
|
48
|
+
--primary-foreground: oklch(0.205 0 0);
|
|
49
|
+
|
|
50
|
+
/* Border */
|
|
51
|
+
--border: oklch(0.269 0 0);
|
|
52
|
+
--input: oklch(1 0 0 / 15%);
|
|
53
|
+
--ring: oklch(0.439 0 0);
|
|
54
|
+
|
|
55
|
+
/* Semantic status */
|
|
56
|
+
--status-foreground: oklch(0.145 0 0);
|
|
57
|
+
--success: oklch(0.696 0.17 162.48);
|
|
58
|
+
--info: oklch(0.685 0.121 220.7);
|
|
59
|
+
--help: oklch(0.627 0.22 293.541);
|
|
60
|
+
--warn: oklch(0.762 0.148 62.823);
|
|
61
|
+
--danger: oklch(0.637 0.237 25.331);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/* Register colors in Tailwind v4 theme (supports opacity modifier) */
|
|
65
|
+
@theme inline {
|
|
66
|
+
/* Base */
|
|
67
|
+
--color-background: var(--background);
|
|
68
|
+
--color-foreground: var(--foreground);
|
|
69
|
+
|
|
70
|
+
/* Components — surface elevation */
|
|
71
|
+
--color-card: var(--background);
|
|
72
|
+
--color-card-foreground: var(--foreground);
|
|
73
|
+
--color-popover: var(--background);
|
|
74
|
+
--color-popover-foreground: var(--foreground);
|
|
75
|
+
|
|
76
|
+
/* Brand */
|
|
77
|
+
--color-primary: var(--primary);
|
|
78
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
79
|
+
--color-secondary: var(--background-muted);
|
|
80
|
+
--color-secondary-foreground: var(--foreground);
|
|
81
|
+
|
|
82
|
+
/* State */
|
|
83
|
+
--color-muted: var(--background-muted);
|
|
84
|
+
--color-muted-foreground: var(--foreground-muted);
|
|
85
|
+
--color-accent: var(--background-accent);
|
|
86
|
+
--color-accent-foreground: var(--foreground-accent);
|
|
87
|
+
--color-destructive: var(--danger);
|
|
88
|
+
--color-destructive-foreground: var(--status-foreground);
|
|
89
|
+
|
|
90
|
+
/* Form & Border */
|
|
91
|
+
--color-border: var(--border);
|
|
92
|
+
--color-input: var(--input);
|
|
93
|
+
--color-ring: var(--ring);
|
|
94
|
+
|
|
95
|
+
/* Sidebar — inherits from main theme */
|
|
96
|
+
--color-sidebar: var(--background-surface);
|
|
97
|
+
--color-sidebar-foreground: var(--foreground);
|
|
98
|
+
--color-sidebar-primary: var(--primary);
|
|
99
|
+
--color-sidebar-primary-foreground: var(--primary-foreground);
|
|
100
|
+
--color-sidebar-accent: var(--background-accent);
|
|
101
|
+
--color-sidebar-accent-foreground: var(--foreground-accent);
|
|
102
|
+
--color-sidebar-border: var(--border);
|
|
103
|
+
--color-sidebar-ring: var(--ring);
|
|
104
|
+
|
|
105
|
+
/* Semantic status */
|
|
106
|
+
--color-success: var(--success);
|
|
107
|
+
--color-success-foreground: var(--status-foreground);
|
|
108
|
+
--color-info: var(--info);
|
|
109
|
+
--color-info-foreground: var(--status-foreground);
|
|
110
|
+
--color-help: var(--help);
|
|
111
|
+
--color-help-foreground: var(--status-foreground);
|
|
112
|
+
--color-warn: var(--warn);
|
|
113
|
+
--color-warn-foreground: var(--status-foreground);
|
|
114
|
+
--color-danger: var(--danger);
|
|
115
|
+
--color-danger-foreground: var(--status-foreground);
|
|
116
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
@import 'tailwindcss';
|
|
2
|
+
@import 'tw-animate-css';
|
|
3
|
+
@import './colors.css';
|
|
4
|
+
@import './utilities.css';
|
|
5
|
+
@import './animate.css';
|
|
6
|
+
@import './transition.css';
|
|
7
|
+
|
|
8
|
+
/* Ensure Tailwind scans all source files in this app */
|
|
9
|
+
@source '../../../..';
|
|
10
|
+
|
|
11
|
+
/* Dark mode configuration for Tailwind v4 */
|
|
12
|
+
@custom-variant dark (&:where(.dark, .dark *));
|
|
13
|
+
|
|
14
|
+
@layer base {
|
|
15
|
+
* {
|
|
16
|
+
@apply border-border outline-ring/50;
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
}
|
|
19
|
+
html {
|
|
20
|
+
font-size: 16px;
|
|
21
|
+
}
|
|
22
|
+
body {
|
|
23
|
+
@apply bg-background text-foreground;
|
|
24
|
+
margin: 0;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* Prevent accidental text selection on touch devices */
|
|
29
|
+
@media (pointer: coarse) {
|
|
30
|
+
body {
|
|
31
|
+
-webkit-user-select: none;
|
|
32
|
+
user-select: none;
|
|
33
|
+
}
|
|
34
|
+
input,
|
|
35
|
+
textarea,
|
|
36
|
+
[contenteditable='true'],
|
|
37
|
+
pre,
|
|
38
|
+
code,
|
|
39
|
+
.selectable {
|
|
40
|
+
-webkit-user-select: text;
|
|
41
|
+
user-select: text;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/vue3'
|
|
2
|
+
|
|
3
|
+
type Swatch = {
|
|
4
|
+
name: string
|
|
5
|
+
token: string
|
|
6
|
+
bg: string
|
|
7
|
+
fg?: string
|
|
8
|
+
border?: boolean
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
type Group = {
|
|
12
|
+
title: string
|
|
13
|
+
description?: string
|
|
14
|
+
swatches: Swatch[]
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const groups: Group[] = [
|
|
18
|
+
{
|
|
19
|
+
title: 'Surface',
|
|
20
|
+
description: 'Page, card and popover backgrounds — pair each with its matching foreground.',
|
|
21
|
+
swatches: [
|
|
22
|
+
{ name: 'background', token: '--color-background', bg: 'bg-background', fg: 'text-foreground', border: true },
|
|
23
|
+
{ name: 'card', token: '--color-card', bg: 'bg-card', fg: 'text-card-foreground', border: true },
|
|
24
|
+
{ name: 'popover', token: '--color-popover', bg: 'bg-popover', fg: 'text-popover-foreground', border: true },
|
|
25
|
+
{ name: 'muted', token: '--color-muted', bg: 'bg-muted', fg: 'text-muted-foreground' },
|
|
26
|
+
{ name: 'accent', token: '--color-accent', bg: 'bg-accent', fg: 'text-accent-foreground' },
|
|
27
|
+
],
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
title: 'Brand',
|
|
31
|
+
description: 'Primary and secondary colors for buttons, links and emphasis.',
|
|
32
|
+
swatches: [
|
|
33
|
+
{ name: 'primary', token: '--color-primary', bg: 'bg-primary', fg: 'text-primary-foreground' },
|
|
34
|
+
{ name: 'secondary', token: '--color-secondary', bg: 'bg-secondary', fg: 'text-secondary-foreground' },
|
|
35
|
+
],
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
title: 'Status',
|
|
39
|
+
description: 'Semantic feedback colors for success, info, warn, danger, etc.',
|
|
40
|
+
swatches: [
|
|
41
|
+
{ name: 'success', token: '--color-success', bg: 'bg-success', fg: 'text-success-foreground' },
|
|
42
|
+
{ name: 'info', token: '--color-info', bg: 'bg-info', fg: 'text-info-foreground' },
|
|
43
|
+
{ name: 'help', token: '--color-help', bg: 'bg-help', fg: 'text-help-foreground' },
|
|
44
|
+
{ name: 'warn', token: '--color-warn', bg: 'bg-warn', fg: 'text-warn-foreground' },
|
|
45
|
+
{ name: 'danger', token: '--color-danger', bg: 'bg-danger', fg: 'text-danger-foreground' },
|
|
46
|
+
{ name: 'destructive', token: '--color-destructive', bg: 'bg-destructive', fg: 'text-destructive-foreground' },
|
|
47
|
+
],
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
title: 'Sidebar',
|
|
51
|
+
description: 'Dedicated sidebar palette so the nav can visually separate from main content.',
|
|
52
|
+
swatches: [
|
|
53
|
+
{ name: 'sidebar', token: '--color-sidebar', bg: 'bg-sidebar', fg: 'text-sidebar-foreground', border: true },
|
|
54
|
+
{ name: 'sidebar-primary', token: '--color-sidebar-primary', bg: 'bg-sidebar-primary', fg: 'text-sidebar-primary-foreground' },
|
|
55
|
+
{ name: 'sidebar-accent', token: '--color-sidebar-accent', bg: 'bg-sidebar-accent', fg: 'text-sidebar-accent-foreground' },
|
|
56
|
+
],
|
|
57
|
+
},
|
|
58
|
+
]
|
|
59
|
+
|
|
60
|
+
const borders = [
|
|
61
|
+
{ name: 'border', token: '--color-border', class: 'border-border' },
|
|
62
|
+
{ name: 'input', token: '--color-input', class: 'border-input' },
|
|
63
|
+
{ name: 'ring', token: '--color-ring', class: 'border-ring' },
|
|
64
|
+
]
|
|
65
|
+
|
|
66
|
+
const foregrounds = [
|
|
67
|
+
{ name: 'foreground', token: '--foreground', class: 'text-foreground' },
|
|
68
|
+
{ name: 'foreground-muted', token: '--foreground-muted', class: 'text-muted-foreground' },
|
|
69
|
+
{ name: 'foreground-accent', token: '--foreground-accent', class: 'text-accent-foreground' },
|
|
70
|
+
]
|
|
71
|
+
|
|
72
|
+
const meta = {
|
|
73
|
+
title: 'Foundations/Colors',
|
|
74
|
+
parameters: {
|
|
75
|
+
layout: 'padded',
|
|
76
|
+
docs: {
|
|
77
|
+
description: {
|
|
78
|
+
component: 'Design tokens from the shadcn-vue Zinc palette, registered via Tailwind v4 `@theme`. Toggle the Storybook backgrounds to preview Light and Dark modes.',
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
} satisfies Meta
|
|
83
|
+
|
|
84
|
+
export default meta
|
|
85
|
+
type Story = StoryObj<typeof meta>
|
|
86
|
+
|
|
87
|
+
export const Palette: Story = {
|
|
88
|
+
render: () => ({
|
|
89
|
+
setup: () => ({ groups, borders, foregrounds }),
|
|
90
|
+
template: `
|
|
91
|
+
<div class="space-y-10">
|
|
92
|
+
<section v-for="group in groups" :key="group.title">
|
|
93
|
+
<header class="mb-4">
|
|
94
|
+
<h3 class="text-lg font-medium">{{ group.title }}</h3>
|
|
95
|
+
<p v-if="group.description" class="mt-1 text-sm text-muted-foreground">{{ group.description }}</p>
|
|
96
|
+
</header>
|
|
97
|
+
<div class="grid grid-cols-1 gap-3 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4">
|
|
98
|
+
<div
|
|
99
|
+
v-for="swatch in group.swatches"
|
|
100
|
+
:key="swatch.name"
|
|
101
|
+
:class="[
|
|
102
|
+
'flex h-24 flex-col justify-between rounded-md p-3 shadow-sm',
|
|
103
|
+
swatch.bg,
|
|
104
|
+
swatch.fg,
|
|
105
|
+
swatch.border ? 'border border-border' : '',
|
|
106
|
+
]"
|
|
107
|
+
>
|
|
108
|
+
<span class="font-mono text-xs font-medium">{{ swatch.name }}</span>
|
|
109
|
+
<div class="flex items-end justify-between">
|
|
110
|
+
<span class="font-mono text-[10px] opacity-70">{{ swatch.token }}</span>
|
|
111
|
+
<span class="text-lg font-semibold">Aa</span>
|
|
112
|
+
</div>
|
|
113
|
+
</div>
|
|
114
|
+
</div>
|
|
115
|
+
</section>
|
|
116
|
+
|
|
117
|
+
<section>
|
|
118
|
+
<header class="mb-4">
|
|
119
|
+
<h3 class="text-lg font-medium">Foreground</h3>
|
|
120
|
+
<p class="mt-1 text-sm text-muted-foreground">Three-level contrast hierarchy for body text.</p>
|
|
121
|
+
</header>
|
|
122
|
+
<div class="space-y-2 rounded-md border border-border bg-background p-4">
|
|
123
|
+
<p v-for="fg in foregrounds" :key="fg.name" :class="fg.class">
|
|
124
|
+
<span class="font-mono text-xs mr-2">{{ fg.class }}</span>
|
|
125
|
+
The quick brown fox jumps over the lazy dog.
|
|
126
|
+
</p>
|
|
127
|
+
</div>
|
|
128
|
+
</section>
|
|
129
|
+
|
|
130
|
+
<section>
|
|
131
|
+
<header class="mb-4">
|
|
132
|
+
<h3 class="text-lg font-medium">Border & Ring</h3>
|
|
133
|
+
<p class="mt-1 text-sm text-muted-foreground">Dividers, input borders and focus ring highlights.</p>
|
|
134
|
+
</header>
|
|
135
|
+
<div class="flex flex-wrap gap-3">
|
|
136
|
+
<div
|
|
137
|
+
v-for="b in borders"
|
|
138
|
+
:key="b.name"
|
|
139
|
+
:class="['rounded-md border-2 px-5 py-6 bg-background', b.class]"
|
|
140
|
+
>
|
|
141
|
+
<div class="font-mono text-xs font-medium">{{ b.name }}</div>
|
|
142
|
+
<div class="font-mono text-[10px] text-muted-foreground">{{ b.token }}</div>
|
|
143
|
+
</div>
|
|
144
|
+
</div>
|
|
145
|
+
</section>
|
|
146
|
+
</div>
|
|
147
|
+
`,
|
|
148
|
+
}),
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export const LightVsDark: Story = {
|
|
152
|
+
parameters: {
|
|
153
|
+
docs: {
|
|
154
|
+
description: {
|
|
155
|
+
story: 'Side-by-side comparison of Light and Dark palettes, independent of the top-level background toggle.',
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
render: () => ({
|
|
160
|
+
setup: () => ({ groups }),
|
|
161
|
+
template: `
|
|
162
|
+
<div class="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
163
|
+
<div class="rounded-lg border border-border bg-background p-6">
|
|
164
|
+
<div class="mb-4 font-mono text-xs uppercase tracking-wide text-muted-foreground">Light</div>
|
|
165
|
+
<div class="space-y-6">
|
|
166
|
+
<div v-for="group in groups" :key="group.title">
|
|
167
|
+
<div class="mb-2 text-sm font-medium">{{ group.title }}</div>
|
|
168
|
+
<div class="grid grid-cols-2 gap-2">
|
|
169
|
+
<div
|
|
170
|
+
v-for="swatch in group.swatches"
|
|
171
|
+
:key="swatch.name"
|
|
172
|
+
:class="[
|
|
173
|
+
'flex h-14 items-center justify-center rounded border',
|
|
174
|
+
swatch.bg,
|
|
175
|
+
swatch.fg || 'text-foreground',
|
|
176
|
+
swatch.border ? 'border-border' : 'border-transparent',
|
|
177
|
+
]"
|
|
178
|
+
>
|
|
179
|
+
<span class="font-mono text-xs">{{ swatch.name }}</span>
|
|
180
|
+
</div>
|
|
181
|
+
</div>
|
|
182
|
+
</div>
|
|
183
|
+
</div>
|
|
184
|
+
</div>
|
|
185
|
+
|
|
186
|
+
<div class="dark rounded-lg border border-border bg-background p-6 text-foreground">
|
|
187
|
+
<div class="mb-4 font-mono text-xs uppercase tracking-wide text-muted-foreground">Dark</div>
|
|
188
|
+
<div class="space-y-6">
|
|
189
|
+
<div v-for="group in groups" :key="group.title">
|
|
190
|
+
<div class="mb-2 text-sm font-medium">{{ group.title }}</div>
|
|
191
|
+
<div class="grid grid-cols-2 gap-2">
|
|
192
|
+
<div
|
|
193
|
+
v-for="swatch in group.swatches"
|
|
194
|
+
:key="swatch.name"
|
|
195
|
+
:class="[
|
|
196
|
+
'flex h-14 items-center justify-center rounded border',
|
|
197
|
+
swatch.bg,
|
|
198
|
+
swatch.fg || 'text-foreground',
|
|
199
|
+
swatch.border ? 'border-border' : 'border-transparent',
|
|
200
|
+
]"
|
|
201
|
+
>
|
|
202
|
+
<span class="font-mono text-xs">{{ swatch.name }}</span>
|
|
203
|
+
</div>
|
|
204
|
+
</div>
|
|
205
|
+
</div>
|
|
206
|
+
</div>
|
|
207
|
+
</div>
|
|
208
|
+
</div>
|
|
209
|
+
`,
|
|
210
|
+
}),
|
|
211
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/* Layout transition (fade only) */
|
|
2
|
+
.layout-enter-active,
|
|
3
|
+
.layout-leave-active {
|
|
4
|
+
transition: opacity .2s;
|
|
5
|
+
}
|
|
6
|
+
.layout-enter-from,
|
|
7
|
+
.layout-leave-to {
|
|
8
|
+
opacity: 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/* Page transition */
|
|
12
|
+
.page-enter-active,
|
|
13
|
+
.page-leave-active {
|
|
14
|
+
transition: all .2s;
|
|
15
|
+
}
|
|
16
|
+
.page-enter-from,
|
|
17
|
+
.page-leave-to {
|
|
18
|
+
opacity: 0;
|
|
19
|
+
transform: translateX(30px);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* Tab transition */
|
|
23
|
+
.tab-enter-active,
|
|
24
|
+
.tab-leave-active {
|
|
25
|
+
transition: all .2s;
|
|
26
|
+
}
|
|
27
|
+
.tab-enter-from {
|
|
28
|
+
opacity: 0;
|
|
29
|
+
transform: translateX(30px);
|
|
30
|
+
}
|
|
31
|
+
.tab-leave-to {
|
|
32
|
+
opacity: 0;
|
|
33
|
+
transform: translateX(-30px);
|
|
34
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--radius: 0.5rem;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
/* Radius & animation tokens */
|
|
6
|
+
@theme inline {
|
|
7
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
8
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
9
|
+
--radius-lg: var(--radius);
|
|
10
|
+
--radius-xl: calc(var(--radius) + 4px);
|
|
11
|
+
|
|
12
|
+
--animate-accordion-down: accordion-down 0.2s ease-out;
|
|
13
|
+
--animate-accordion-up: accordion-up 0.2s ease-out;
|
|
14
|
+
|
|
15
|
+
@keyframes accordion-down {
|
|
16
|
+
from { height: 0; }
|
|
17
|
+
to { height: var(--reka-accordion-content-height); }
|
|
18
|
+
}
|
|
19
|
+
@keyframes accordion-up {
|
|
20
|
+
from { height: var(--reka-accordion-content-height); }
|
|
21
|
+
to { height: 0; }
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* Safe area utilities */
|
|
26
|
+
@utility pb-safe { padding-bottom: env(safe-area-inset-bottom); }
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { AccordionRootEmits, AccordionRootProps } from "reka-ui"
|
|
3
|
+
import {
|
|
4
|
+
AccordionRoot,
|
|
5
|
+
useForwardPropsEmits,
|
|
6
|
+
} from "reka-ui"
|
|
7
|
+
|
|
8
|
+
const props = defineProps<AccordionRootProps>()
|
|
9
|
+
const emits = defineEmits<AccordionRootEmits>()
|
|
10
|
+
|
|
11
|
+
const forwarded = useForwardPropsEmits(props, emits)
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<template>
|
|
15
|
+
<AccordionRoot v-slot="slotProps" data-slot="accordion" v-bind="forwarded">
|
|
16
|
+
<slot v-bind="slotProps" />
|
|
17
|
+
</AccordionRoot>
|
|
18
|
+
</template>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { AccordionContentProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
+
import { AccordionContent } from "reka-ui"
|
|
6
|
+
import { cn } from '@polymarbot/nuxt-layer-shadcn-ui/app/utils'
|
|
7
|
+
|
|
8
|
+
const props = defineProps<AccordionContentProps & { class?: HTMLAttributes["class"] }>()
|
|
9
|
+
|
|
10
|
+
const delegatedProps = reactiveOmit(props, "class")
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<template>
|
|
14
|
+
<AccordionContent
|
|
15
|
+
data-slot="accordion-content"
|
|
16
|
+
v-bind="delegatedProps"
|
|
17
|
+
class="data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm"
|
|
18
|
+
>
|
|
19
|
+
<div :class="cn('pt-0 pb-4', props.class)">
|
|
20
|
+
<slot />
|
|
21
|
+
</div>
|
|
22
|
+
</AccordionContent>
|
|
23
|
+
</template>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { AccordionItemProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
+
import { AccordionItem, useForwardProps } from "reka-ui"
|
|
6
|
+
import { cn } from '@polymarbot/nuxt-layer-shadcn-ui/app/utils'
|
|
7
|
+
|
|
8
|
+
const props = defineProps<AccordionItemProps & { class?: HTMLAttributes["class"] }>()
|
|
9
|
+
|
|
10
|
+
const delegatedProps = reactiveOmit(props, "class")
|
|
11
|
+
|
|
12
|
+
const forwardedProps = useForwardProps(delegatedProps)
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<template>
|
|
16
|
+
<AccordionItem
|
|
17
|
+
v-slot="slotProps"
|
|
18
|
+
data-slot="accordion-item"
|
|
19
|
+
v-bind="forwardedProps"
|
|
20
|
+
:class="cn('border-b last:border-b-0', props.class)"
|
|
21
|
+
>
|
|
22
|
+
<slot v-bind="slotProps" />
|
|
23
|
+
</AccordionItem>
|
|
24
|
+
</template>
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { AccordionTriggerProps } from "reka-ui"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
+
import { ChevronDown } from "lucide-vue-next"
|
|
6
|
+
import {
|
|
7
|
+
AccordionHeader,
|
|
8
|
+
AccordionTrigger,
|
|
9
|
+
} from "reka-ui"
|
|
10
|
+
import { cn } from '@polymarbot/nuxt-layer-shadcn-ui/app/utils'
|
|
11
|
+
|
|
12
|
+
const props = defineProps<AccordionTriggerProps & { class?: HTMLAttributes["class"] }>()
|
|
13
|
+
|
|
14
|
+
const delegatedProps = reactiveOmit(props, "class")
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
<template>
|
|
18
|
+
<AccordionHeader class="flex">
|
|
19
|
+
<AccordionTrigger
|
|
20
|
+
data-slot="accordion-trigger"
|
|
21
|
+
v-bind="delegatedProps"
|
|
22
|
+
:class="
|
|
23
|
+
cn(
|
|
24
|
+
'focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180',
|
|
25
|
+
props.class,
|
|
26
|
+
)
|
|
27
|
+
"
|
|
28
|
+
>
|
|
29
|
+
<slot />
|
|
30
|
+
<slot name="icon">
|
|
31
|
+
<ChevronDown
|
|
32
|
+
class="text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"
|
|
33
|
+
/>
|
|
34
|
+
</slot>
|
|
35
|
+
</AccordionTrigger>
|
|
36
|
+
</AccordionHeader>
|
|
37
|
+
</template>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from "vue"
|
|
3
|
+
import type { AlertVariants } from "."
|
|
4
|
+
import { cn } from '@polymarbot/nuxt-layer-shadcn-ui/app/utils'
|
|
5
|
+
import { alertVariants } from "."
|
|
6
|
+
|
|
7
|
+
const props = defineProps<{
|
|
8
|
+
class?: HTMLAttributes["class"]
|
|
9
|
+
variant?: AlertVariants["variant"]
|
|
10
|
+
}>()
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<template>
|
|
14
|
+
<div
|
|
15
|
+
data-slot="alert"
|
|
16
|
+
:class="cn(alertVariants({ variant }), props.class)"
|
|
17
|
+
role="alert"
|
|
18
|
+
>
|
|
19
|
+
<slot />
|
|
20
|
+
</div>
|
|
21
|
+
</template>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from "vue"
|
|
3
|
+
import { cn } from '@polymarbot/nuxt-layer-shadcn-ui/app/utils'
|
|
4
|
+
|
|
5
|
+
const props = defineProps<{
|
|
6
|
+
class?: HTMLAttributes["class"]
|
|
7
|
+
}>()
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<div
|
|
12
|
+
data-slot="alert-description"
|
|
13
|
+
:class="cn('text-muted-foreground col-start-2 text-sm [&_p]:leading-relaxed', props.class)"
|
|
14
|
+
>
|
|
15
|
+
<slot />
|
|
16
|
+
</div>
|
|
17
|
+
</template>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from "vue"
|
|
3
|
+
import { cn } from '@polymarbot/nuxt-layer-shadcn-ui/app/utils'
|
|
4
|
+
|
|
5
|
+
const props = defineProps<{
|
|
6
|
+
class?: HTMLAttributes["class"]
|
|
7
|
+
}>()
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<div
|
|
12
|
+
data-slot="alert-title"
|
|
13
|
+
:class="cn('col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight', props.class)"
|
|
14
|
+
>
|
|
15
|
+
<slot />
|
|
16
|
+
</div>
|
|
17
|
+
</template>
|