@slexn/codecenter-ui 1.0.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/LICENSE +34 -0
- package/README.md +148 -0
- package/components.json +20 -0
- package/dist/codecenter-ui.cjs +10 -0
- package/dist/codecenter-ui.js +17995 -0
- package/dist/components/ui/accordion/Accordion.vue.d.ts +28 -0
- package/dist/components/ui/accordion/AccordionContent.vue.d.ts +22 -0
- package/dist/components/ui/accordion/AccordionItem.vue.d.ts +24 -0
- package/dist/components/ui/accordion/AccordionTrigger.vue.d.ts +22 -0
- package/dist/components/ui/accordion/index.d.ts +4 -0
- package/dist/components/ui/alert/Alert.vue.d.ts +32 -0
- package/dist/components/ui/alert/AlertDescription.vue.d.ts +24 -0
- package/dist/components/ui/alert/AlertTitle.vue.d.ts +24 -0
- package/dist/components/ui/alert/index.d.ts +4 -0
- package/dist/components/ui/alert/variants.d.ts +5 -0
- package/dist/components/ui/button/Button.vue.d.ts +27 -0
- package/dist/components/ui/button/index.d.ts +2 -0
- package/dist/components/ui/button/variants.d.ts +6 -0
- package/dist/components/ui/button-group/ButtonGroup.vue.d.ts +25 -0
- package/dist/components/ui/button-group/index.d.ts +2 -0
- package/dist/components/ui/card/Card.vue.d.ts +21 -0
- package/dist/components/ui/card/CardContent.vue.d.ts +21 -0
- package/dist/components/ui/card/CardDescription.vue.d.ts +21 -0
- package/dist/components/ui/card/CardFooter.vue.d.ts +21 -0
- package/dist/components/ui/card/CardHeader.vue.d.ts +21 -0
- package/dist/components/ui/card/CardTitle.vue.d.ts +21 -0
- package/dist/components/ui/card/index.d.ts +6 -0
- package/dist/components/ui/chart/Chart.vue.d.ts +92 -0
- package/dist/components/ui/chart/index.d.ts +2 -0
- package/dist/components/ui/chat/Chat.vue.d.ts +190 -0
- package/dist/components/ui/chat/ChatAttachments.vue.d.ts +11 -0
- package/dist/components/ui/chat/ChatCodeBlock.vue.d.ts +16 -0
- package/dist/components/ui/chat/code-block.d.ts +27 -0
- package/dist/components/ui/chat/index.d.ts +6 -0
- package/dist/components/ui/chat/types.d.ts +15 -0
- package/dist/components/ui/checkbox/Checkbox.vue.d.ts +29 -0
- package/dist/components/ui/checkbox/index.d.ts +1 -0
- package/dist/components/ui/commit/Commit.vue.d.ts +62 -0
- package/dist/components/ui/commit/index.d.ts +2 -0
- package/dist/components/ui/contribution-graph/ContributionGraph.vue.d.ts +87 -0
- package/dist/components/ui/contribution-graph/index.d.ts +2 -0
- package/dist/components/ui/data-table/DataTable.vue.d.ts +109 -0
- package/dist/components/ui/data-table/index.d.ts +2 -0
- package/dist/components/ui/date-picker/DatePicker.vue.d.ts +37 -0
- package/dist/components/ui/date-picker/index.d.ts +2 -0
- package/dist/components/ui/dialog/Dialog.vue.d.ts +25 -0
- package/dist/components/ui/dialog/DialogClose.vue.d.ts +18 -0
- package/dist/components/ui/dialog/DialogContent.vue.d.ts +39 -0
- package/dist/components/ui/dialog/DialogDescription.vue.d.ts +22 -0
- package/dist/components/ui/dialog/DialogFooter.vue.d.ts +21 -0
- package/dist/components/ui/dialog/DialogHeader.vue.d.ts +21 -0
- package/dist/components/ui/dialog/DialogOverlay.vue.d.ts +22 -0
- package/dist/components/ui/dialog/DialogScrollContent.vue.d.ts +36 -0
- package/dist/components/ui/dialog/DialogTitle.vue.d.ts +22 -0
- package/dist/components/ui/dialog/DialogTrigger.vue.d.ts +18 -0
- package/dist/components/ui/dialog/index.d.ts +10 -0
- package/dist/components/ui/diff/DiffTool.vue.d.ts +21 -0
- package/dist/components/ui/diff/diff-parser.d.ts +30 -0
- package/dist/components/ui/diff/diff-tool.d.ts +36 -0
- package/dist/components/ui/diff/index.d.ts +2 -0
- package/dist/components/ui/dropdown-menu/DropdownMenu.vue.d.ts +24 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +29 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +36 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts +18 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +26 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +23 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +22 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +27 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts +7 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts +21 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuSub.vue.d.ts +22 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +38 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +23 -0
- package/dist/components/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +18 -0
- package/dist/components/ui/dropdown-menu/index.d.ts +15 -0
- package/dist/components/ui/gauge/Gauge.vue.d.ts +62 -0
- package/dist/components/ui/gauge/index.d.ts +2 -0
- package/dist/components/ui/git-graph/GitGraph.vue.d.ts +59 -0
- package/dist/components/ui/git-graph/index.d.ts +2 -0
- package/dist/components/ui/incident-timeline/IncidentTimeline.vue.d.ts +50 -0
- package/dist/components/ui/incident-timeline/index.d.ts +2 -0
- package/dist/components/ui/input/Input.vue.d.ts +14 -0
- package/dist/components/ui/input/InputControl.vue.d.ts +14 -0
- package/dist/components/ui/input/InputFieldGroup.vue.d.ts +21 -0
- package/dist/components/ui/input/index.d.ts +4 -0
- package/dist/components/ui/input/types.d.ts +31 -0
- package/dist/components/ui/kpi-card/KpiCard.vue.d.ts +46 -0
- package/dist/components/ui/kpi-card/index.d.ts +2 -0
- package/dist/components/ui/kpi-line-card/KpiLineCard.vue.d.ts +66 -0
- package/dist/components/ui/kpi-line-card/index.d.ts +2 -0
- package/dist/components/ui/model-selector/ModelSelector.vue.d.ts +41 -0
- package/dist/components/ui/model-selector/index.d.ts +2 -0
- package/dist/components/ui/model-selector/types.d.ts +12 -0
- package/dist/components/ui/network-graph/NetworkGraph.vue.d.ts +75 -0
- package/dist/components/ui/network-graph/index.d.ts +2 -0
- package/dist/components/ui/pagination/Pagination.vue.d.ts +29 -0
- package/dist/components/ui/pagination/PaginationContent.vue.d.ts +29 -0
- package/dist/components/ui/pagination/PaginationEllipsis.vue.d.ts +22 -0
- package/dist/components/ui/pagination/PaginationFirst.vue.d.ts +26 -0
- package/dist/components/ui/pagination/PaginationItem.vue.d.ts +28 -0
- package/dist/components/ui/pagination/PaginationLast.vue.d.ts +26 -0
- package/dist/components/ui/pagination/PaginationNext.vue.d.ts +26 -0
- package/dist/components/ui/pagination/PaginationPrevious.vue.d.ts +26 -0
- package/dist/components/ui/pagination/index.d.ts +8 -0
- package/dist/components/ui/profile/Profile.vue.d.ts +30 -0
- package/dist/components/ui/profile/ProfileGroup.vue.d.ts +37 -0
- package/dist/components/ui/profile/index.d.ts +4 -0
- package/dist/components/ui/progress/Progress.vue.d.ts +36 -0
- package/dist/components/ui/progress/index.d.ts +2 -0
- package/dist/components/ui/prompt-input/PromptInput.vue.d.ts +150 -0
- package/dist/components/ui/prompt-input/index.d.ts +2 -0
- package/dist/components/ui/prompt-input/types.d.ts +61 -0
- package/dist/components/ui/radio-group/RadioGroup.vue.d.ts +30 -0
- package/dist/components/ui/radio-group/RadioGroupItem.vue.d.ts +12 -0
- package/dist/components/ui/radio-group/RadioGroupOption.vue.d.ts +28 -0
- package/dist/components/ui/radio-group/index.d.ts +3 -0
- package/dist/components/ui/reasoning/Reasoning.vue.d.ts +40 -0
- package/dist/components/ui/reasoning/index.d.ts +2 -0
- package/dist/components/ui/reasoning/types.d.ts +26 -0
- package/dist/components/ui/select/Select.vue.d.ts +28 -0
- package/dist/components/ui/select/SelectContent.vue.d.ts +46 -0
- package/dist/components/ui/select/SelectGroup.vue.d.ts +18 -0
- package/dist/components/ui/select/SelectItem.vue.d.ts +26 -0
- package/dist/components/ui/select/SelectItemText.vue.d.ts +18 -0
- package/dist/components/ui/select/SelectLabel.vue.d.ts +22 -0
- package/dist/components/ui/select/SelectScrollDownButton.vue.d.ts +22 -0
- package/dist/components/ui/select/SelectScrollUpButton.vue.d.ts +22 -0
- package/dist/components/ui/select/SelectSeparator.vue.d.ts +7 -0
- package/dist/components/ui/select/SelectTrigger.vue.d.ts +25 -0
- package/dist/components/ui/select/SelectValue.vue.d.ts +18 -0
- package/dist/components/ui/select/index.d.ts +11 -0
- package/dist/components/ui/select/search.d.ts +18 -0
- package/dist/components/ui/separator/Separator.vue.d.ts +6 -0
- package/dist/components/ui/separator/index.d.ts +2 -0
- package/dist/components/ui/separator/types.d.ts +7 -0
- package/dist/components/ui/shimmer/Shimmer.vue.d.ts +37 -0
- package/dist/components/ui/shimmer/index.d.ts +2 -0
- package/dist/components/ui/sidebar/Sidebar.vue.d.ts +24 -0
- package/dist/components/ui/sidebar/SidebarContent.vue.d.ts +21 -0
- package/dist/components/ui/sidebar/SidebarFooter.vue.d.ts +21 -0
- package/dist/components/ui/sidebar/SidebarGroup.vue.d.ts +21 -0
- package/dist/components/ui/sidebar/SidebarGroupAction.vue.d.ts +24 -0
- package/dist/components/ui/sidebar/SidebarGroupContent.vue.d.ts +21 -0
- package/dist/components/ui/sidebar/SidebarGroupLabel.vue.d.ts +24 -0
- package/dist/components/ui/sidebar/SidebarHeader.vue.d.ts +21 -0
- package/dist/components/ui/sidebar/SidebarInput.vue.d.ts +6 -0
- package/dist/components/ui/sidebar/SidebarInset.vue.d.ts +21 -0
- package/dist/components/ui/sidebar/SidebarMenu.vue.d.ts +21 -0
- package/dist/components/ui/sidebar/SidebarMenuAction.vue.d.ts +25 -0
- package/dist/components/ui/sidebar/SidebarMenuBadge.vue.d.ts +21 -0
- package/dist/components/ui/sidebar/SidebarMenuButton.vue.d.ts +25 -0
- package/dist/components/ui/sidebar/SidebarMenuButtonChild.vue.d.ts +30 -0
- package/dist/components/ui/sidebar/SidebarMenuItem.vue.d.ts +21 -0
- package/dist/components/ui/sidebar/SidebarMenuSub.vue.d.ts +21 -0
- package/dist/components/ui/sidebar/SidebarMenuSubButton.vue.d.ts +27 -0
- package/dist/components/ui/sidebar/SidebarMenuSubItem.vue.d.ts +21 -0
- package/dist/components/ui/sidebar/SidebarProvider.vue.d.ts +36 -0
- package/dist/components/ui/sidebar/SidebarRail.vue.d.ts +21 -0
- package/dist/components/ui/sidebar/SidebarSeparator.vue.d.ts +6 -0
- package/dist/components/ui/sidebar/SidebarTrigger.vue.d.ts +6 -0
- package/dist/components/ui/sidebar/context.d.ts +19 -0
- package/dist/components/ui/sidebar/index.d.ts +26 -0
- package/dist/components/ui/sidebar/types.d.ts +11 -0
- package/dist/components/ui/sidebar/variants.d.ts +6 -0
- package/dist/components/ui/skeleton/Skeleton.vue.d.ts +18 -0
- package/dist/components/ui/skeleton/index.d.ts +2 -0
- package/dist/components/ui/sonner/Sonner.vue.d.ts +5 -0
- package/dist/components/ui/sonner/index.d.ts +2 -0
- package/dist/components/ui/spinner/Spinner.vue.d.ts +11 -0
- package/dist/components/ui/spinner/index.d.ts +1 -0
- package/dist/components/ui/stepper/Stepper.vue.d.ts +38 -0
- package/dist/components/ui/stepper/StepperDescription.vue.d.ts +22 -0
- package/dist/components/ui/stepper/StepperIndicator.vue.d.ts +30 -0
- package/dist/components/ui/stepper/StepperItem.vue.d.ts +24 -0
- package/dist/components/ui/stepper/StepperSeparator.vue.d.ts +7 -0
- package/dist/components/ui/stepper/StepperTitle.vue.d.ts +22 -0
- package/dist/components/ui/stepper/StepperTrigger.vue.d.ts +22 -0
- package/dist/components/ui/stepper/index.d.ts +7 -0
- package/dist/components/ui/switch/Switch.vue.d.ts +12 -0
- package/dist/components/ui/switch/index.d.ts +1 -0
- package/dist/components/ui/table/Table.vue.d.ts +22 -0
- package/dist/components/ui/table/TableBody.vue.d.ts +21 -0
- package/dist/components/ui/table/TableCaption.vue.d.ts +21 -0
- package/dist/components/ui/table/TableCell.vue.d.ts +22 -0
- package/dist/components/ui/table/TableEmpty.vue.d.ts +24 -0
- package/dist/components/ui/table/TableFooter.vue.d.ts +21 -0
- package/dist/components/ui/table/TableHead.vue.d.ts +21 -0
- package/dist/components/ui/table/TableHeader.vue.d.ts +21 -0
- package/dist/components/ui/table/TableRow.vue.d.ts +21 -0
- package/dist/components/ui/table/index.d.ts +9 -0
- package/dist/components/ui/tabs/Tabs.vue.d.ts +28 -0
- package/dist/components/ui/tabs/TabsContent.vue.d.ts +22 -0
- package/dist/components/ui/tabs/TabsList.vue.d.ts +22 -0
- package/dist/components/ui/tabs/TabsTrigger.vue.d.ts +22 -0
- package/dist/components/ui/tabs/index.d.ts +4 -0
- package/dist/components/ui/tag/Tag.vue.d.ts +35 -0
- package/dist/components/ui/tag/index.d.ts +2 -0
- package/dist/components/ui/tag/variants.d.ts +6 -0
- package/dist/components/ui/textarea/Textarea.vue.d.ts +14 -0
- package/dist/components/ui/textarea/TextareaControl.vue.d.ts +14 -0
- package/dist/components/ui/textarea/TextareaFieldGroup.vue.d.ts +21 -0
- package/dist/components/ui/textarea/index.d.ts +4 -0
- package/dist/components/ui/textarea/types.d.ts +32 -0
- package/dist/components/ui/tool/Tool.vue.d.ts +61 -0
- package/dist/components/ui/tool/index.d.ts +2 -0
- package/dist/components/ui/tooltip/Tooltip.vue.d.ts +24 -0
- package/dist/components/ui/tooltip/TooltipContent.vue.d.ts +32 -0
- package/dist/components/ui/tooltip/TooltipProvider.vue.d.ts +20 -0
- package/dist/components/ui/tooltip/TooltipTrigger.vue.d.ts +18 -0
- package/dist/components/ui/tooltip/index.d.ts +4 -0
- package/dist/docs/component-docs.d.ts +18 -0
- package/dist/docs/markdown.d.ts +27 -0
- package/dist/index.d.ts +45 -0
- package/dist/lib/code-highlight.d.ts +11 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/styles.css +3 -0
- package/package.json +76 -0
- package/public/r/accordion.json +52 -0
- package/public/r/alert.json +51 -0
- package/public/r/button-group.json +31 -0
- package/public/r/button.json +39 -0
- package/public/r/card.json +61 -0
- package/public/r/chart.json +31 -0
- package/public/r/chat.json +186 -0
- package/public/r/checkbox.json +34 -0
- package/public/r/commit.json +32 -0
- package/public/r/contribution-graph.json +63 -0
- package/public/r/data-table.json +197 -0
- package/public/r/date-picker.json +33 -0
- package/public/r/dialog.json +88 -0
- package/public/r/diff.json +71 -0
- package/public/r/dropdown-menu.json +112 -0
- package/public/r/gauge.json +31 -0
- package/public/r/git-graph.json +32 -0
- package/public/r/incident-timeline.json +64 -0
- package/public/r/input.json +49 -0
- package/public/r/kpi-card.json +32 -0
- package/public/r/kpi-line-card.json +32 -0
- package/public/r/model-selector.json +148 -0
- package/public/r/network-graph.json +33 -0
- package/public/r/pagination.json +95 -0
- package/public/r/profile.json +37 -0
- package/public/r/progress.json +31 -0
- package/public/r/prompt-input.json +293 -0
- package/public/r/radio-group.json +45 -0
- package/public/r/reasoning.json +38 -0
- package/public/r/registry.json +2512 -0
- package/public/r/select.json +100 -0
- package/public/r/separator.json +37 -0
- package/public/r/shimmer.json +31 -0
- package/public/r/sidebar.json +221 -0
- package/public/r/skeleton.json +31 -0
- package/public/r/sonner.json +33 -0
- package/public/r/spinner.json +31 -0
- package/public/r/stepper.json +70 -0
- package/public/r/switch.json +33 -0
- package/public/r/table.json +79 -0
- package/public/r/tabs.json +51 -0
- package/public/r/tag.json +39 -0
- package/public/r/textarea.json +49 -0
- package/public/r/tool.json +32 -0
- package/public/r/tooltip.json +51 -0
- package/registry.json +2512 -0
- package/src/components/docs/MarkdownContent.vue +106 -0
- package/src/components/ui/accordion/Accordion.vue +24 -0
- package/src/components/ui/accordion/AccordionContent.vue +62 -0
- package/src/components/ui/accordion/AccordionItem.vue +23 -0
- package/src/components/ui/accordion/AccordionTrigger.vue +38 -0
- package/src/components/ui/accordion/index.ts +4 -0
- package/src/components/ui/alert/Alert.vue +40 -0
- package/src/components/ui/alert/AlertDescription.vue +24 -0
- package/src/components/ui/alert/AlertTitle.vue +24 -0
- package/src/components/ui/alert/index.ts +4 -0
- package/src/components/ui/alert/variants.ts +19 -0
- package/src/components/ui/button/Button.vue +27 -0
- package/src/components/ui/button/index.ts +2 -0
- package/src/components/ui/button/variants.ts +32 -0
- package/src/components/ui/button-group/ButtonGroup.vue +31 -0
- package/src/components/ui/button-group/index.ts +2 -0
- package/src/components/ui/card/Card.vue +17 -0
- package/src/components/ui/card/CardContent.vue +14 -0
- package/src/components/ui/card/CardDescription.vue +14 -0
- package/src/components/ui/card/CardFooter.vue +14 -0
- package/src/components/ui/card/CardHeader.vue +17 -0
- package/src/components/ui/card/CardTitle.vue +14 -0
- package/src/components/ui/card/index.ts +6 -0
- package/src/components/ui/chart/Chart.vue +1042 -0
- package/src/components/ui/chart/index.ts +13 -0
- package/src/components/ui/chat/Chat.vue +1297 -0
- package/src/components/ui/chat/ChatAttachments.vue +278 -0
- package/src/components/ui/chat/ChatCodeBlock.vue +283 -0
- package/src/components/ui/chat/code-block.ts +30 -0
- package/src/components/ui/chat/index.ts +24 -0
- package/src/components/ui/chat/types.ts +23 -0
- package/src/components/ui/checkbox/Checkbox.vue +38 -0
- package/src/components/ui/checkbox/index.ts +1 -0
- package/src/components/ui/commit/Commit.vue +423 -0
- package/src/components/ui/commit/index.ts +9 -0
- package/src/components/ui/contribution-graph/ContributionGraph.vue +719 -0
- package/src/components/ui/contribution-graph/index.ts +9 -0
- package/src/components/ui/data-table/DataTable.vue +534 -0
- package/src/components/ui/data-table/index.ts +9 -0
- package/src/components/ui/date-picker/DatePicker.vue +649 -0
- package/src/components/ui/date-picker/index.ts +7 -0
- package/src/components/ui/dialog/Dialog.vue +19 -0
- package/src/components/ui/dialog/DialogClose.vue +17 -0
- package/src/components/ui/dialog/DialogContent.vue +60 -0
- package/src/components/ui/dialog/DialogDescription.vue +23 -0
- package/src/components/ui/dialog/DialogFooter.vue +17 -0
- package/src/components/ui/dialog/DialogHeader.vue +17 -0
- package/src/components/ui/dialog/DialogOverlay.vue +23 -0
- package/src/components/ui/dialog/DialogScrollContent.vue +69 -0
- package/src/components/ui/dialog/DialogTitle.vue +23 -0
- package/src/components/ui/dialog/DialogTrigger.vue +17 -0
- package/src/components/ui/dialog/index.ts +10 -0
- package/src/components/ui/diff/DiffTool.vue +513 -0
- package/src/components/ui/diff/diff-parser.ts +423 -0
- package/src/components/ui/diff/diff-tool.ts +39 -0
- package/src/components/ui/diff/index.ts +5 -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/dropdown-menu/index.ts +16 -0
- package/src/components/ui/gauge/Gauge.vue +725 -0
- package/src/components/ui/gauge/index.ts +9 -0
- package/src/components/ui/git-graph/GitGraph.vue +715 -0
- package/src/components/ui/git-graph/index.ts +9 -0
- package/src/components/ui/incident-timeline/IncidentTimeline.vue +360 -0
- package/src/components/ui/incident-timeline/index.ts +7 -0
- package/src/components/ui/input/Input.vue +159 -0
- package/src/components/ui/input/InputControl.vue +135 -0
- package/src/components/ui/input/InputFieldGroup.vue +14 -0
- package/src/components/ui/input/index.ts +9 -0
- package/src/components/ui/input/types.ts +34 -0
- package/src/components/ui/kpi-card/KpiCard.vue +268 -0
- package/src/components/ui/kpi-card/index.ts +9 -0
- package/src/components/ui/kpi-line-card/KpiLineCard.vue +622 -0
- package/src/components/ui/kpi-line-card/index.ts +11 -0
- package/src/components/ui/model-selector/ModelSelector.vue +328 -0
- package/src/components/ui/model-selector/index.ts +6 -0
- package/src/components/ui/model-selector/types.ts +15 -0
- package/src/components/ui/network-graph/NetworkGraph.vue +902 -0
- package/src/components/ui/network-graph/index.ts +7 -0
- package/src/components/ui/pagination/Pagination.vue +26 -0
- package/src/components/ui/pagination/PaginationContent.vue +24 -0
- package/src/components/ui/pagination/PaginationEllipsis.vue +27 -0
- package/src/components/ui/pagination/PaginationFirst.vue +33 -0
- package/src/components/ui/pagination/PaginationItem.vue +39 -0
- package/src/components/ui/pagination/PaginationLast.vue +33 -0
- package/src/components/ui/pagination/PaginationNext.vue +33 -0
- package/src/components/ui/pagination/PaginationPrevious.vue +33 -0
- package/src/components/ui/pagination/index.ts +8 -0
- package/src/components/ui/profile/Profile.vue +226 -0
- package/src/components/ui/profile/ProfileGroup.vue +96 -0
- package/src/components/ui/profile/index.ts +8 -0
- package/src/components/ui/progress/Progress.vue +271 -0
- package/src/components/ui/progress/index.ts +9 -0
- package/src/components/ui/prompt-input/PromptInput.vue +1094 -0
- package/src/components/ui/prompt-input/index.ts +14 -0
- package/src/components/ui/prompt-input/types.ts +78 -0
- package/src/components/ui/radio-group/RadioGroup.vue +36 -0
- package/src/components/ui/radio-group/RadioGroupItem.vue +45 -0
- package/src/components/ui/radio-group/RadioGroupOption.vue +80 -0
- package/src/components/ui/radio-group/index.ts +3 -0
- package/src/components/ui/reasoning/Reasoning.vue +278 -0
- package/src/components/ui/reasoning/index.ts +8 -0
- package/src/components/ui/reasoning/types.ts +29 -0
- package/src/components/ui/select/Select.vue +19 -0
- package/src/components/ui/select/SelectContent.vue +166 -0
- package/src/components/ui/select/SelectGroup.vue +23 -0
- package/src/components/ui/select/SelectItem.vue +97 -0
- package/src/components/ui/select/SelectItemText.vue +15 -0
- package/src/components/ui/select/SelectLabel.vue +17 -0
- package/src/components/ui/select/SelectScrollDownButton.vue +26 -0
- package/src/components/ui/select/SelectScrollUpButton.vue +26 -0
- package/src/components/ui/select/SelectSeparator.vue +19 -0
- package/src/components/ui/select/SelectTrigger.vue +33 -0
- package/src/components/ui/select/SelectValue.vue +15 -0
- package/src/components/ui/select/index.ts +11 -0
- package/src/components/ui/select/search.ts +26 -0
- package/src/components/ui/separator/Separator.vue +30 -0
- package/src/components/ui/separator/index.ts +5 -0
- package/src/components/ui/separator/types.ts +9 -0
- package/src/components/ui/shimmer/Shimmer.vue +110 -0
- package/src/components/ui/shimmer/index.ts +5 -0
- package/src/components/ui/sidebar/Sidebar.vue +142 -0
- package/src/components/ui/sidebar/SidebarContent.vue +18 -0
- package/src/components/ui/sidebar/SidebarFooter.vue +18 -0
- package/src/components/ui/sidebar/SidebarGroup.vue +18 -0
- package/src/components/ui/sidebar/SidebarGroupAction.vue +31 -0
- package/src/components/ui/sidebar/SidebarGroupContent.vue +18 -0
- package/src/components/ui/sidebar/SidebarGroupLabel.vue +30 -0
- package/src/components/ui/sidebar/SidebarHeader.vue +18 -0
- package/src/components/ui/sidebar/SidebarInput.vue +26 -0
- package/src/components/ui/sidebar/SidebarInset.vue +23 -0
- package/src/components/ui/sidebar/SidebarMenu.vue +18 -0
- package/src/components/ui/sidebar/SidebarMenuAction.vue +34 -0
- package/src/components/ui/sidebar/SidebarMenuBadge.vue +25 -0
- package/src/components/ui/sidebar/SidebarMenuButton.vue +37 -0
- package/src/components/ui/sidebar/SidebarMenuButtonChild.vue +38 -0
- package/src/components/ui/sidebar/SidebarMenuItem.vue +18 -0
- package/src/components/ui/sidebar/SidebarMenuSub.vue +18 -0
- package/src/components/ui/sidebar/SidebarMenuSubButton.vue +36 -0
- package/src/components/ui/sidebar/SidebarMenuSubItem.vue +18 -0
- package/src/components/ui/sidebar/SidebarProvider.vue +119 -0
- package/src/components/ui/sidebar/SidebarRail.vue +35 -0
- package/src/components/ui/sidebar/SidebarSeparator.vue +18 -0
- package/src/components/ui/sidebar/SidebarTrigger.vue +28 -0
- package/src/components/ui/sidebar/context.ts +39 -0
- package/src/components/ui/sidebar/index.ts +43 -0
- package/src/components/ui/sidebar/types.ts +13 -0
- package/src/components/ui/sidebar/variants.ts +25 -0
- package/src/components/ui/skeleton/Skeleton.vue +53 -0
- package/src/components/ui/skeleton/index.ts +5 -0
- package/src/components/ui/sonner/Sonner.vue +69 -0
- package/src/components/ui/sonner/index.ts +12 -0
- package/src/components/ui/spinner/Spinner.vue +33 -0
- package/src/components/ui/spinner/index.ts +1 -0
- package/src/components/ui/stepper/Stepper.vue +29 -0
- package/src/components/ui/stepper/StepperDescription.vue +30 -0
- package/src/components/ui/stepper/StepperIndicator.vue +50 -0
- package/src/components/ui/stepper/StepperItem.vue +28 -0
- package/src/components/ui/stepper/StepperSeparator.vue +25 -0
- package/src/components/ui/stepper/StepperTitle.vue +27 -0
- package/src/components/ui/stepper/StepperTrigger.vue +27 -0
- package/src/components/ui/stepper/index.ts +7 -0
- package/src/components/ui/switch/Switch.vue +41 -0
- package/src/components/ui/switch/index.ts +1 -0
- package/src/components/ui/table/Table.vue +23 -0
- package/src/components/ui/table/TableBody.vue +17 -0
- package/src/components/ui/table/TableCaption.vue +17 -0
- package/src/components/ui/table/TableCell.vue +24 -0
- package/src/components/ui/table/TableEmpty.vue +31 -0
- package/src/components/ui/table/TableFooter.vue +17 -0
- package/src/components/ui/table/TableHead.vue +22 -0
- package/src/components/ui/table/TableHeader.vue +17 -0
- package/src/components/ui/table/TableRow.vue +22 -0
- package/src/components/ui/table/index.ts +9 -0
- package/src/components/ui/tabs/Tabs.vue +24 -0
- package/src/components/ui/tabs/TabsContent.vue +22 -0
- package/src/components/ui/tabs/TabsList.vue +27 -0
- package/src/components/ui/tabs/TabsTrigger.vue +27 -0
- package/src/components/ui/tabs/index.ts +4 -0
- package/src/components/ui/tag/Tag.vue +55 -0
- package/src/components/ui/tag/index.ts +2 -0
- package/src/components/ui/tag/variants.ts +29 -0
- package/src/components/ui/textarea/Textarea.vue +159 -0
- package/src/components/ui/textarea/TextareaControl.vue +120 -0
- package/src/components/ui/textarea/TextareaFieldGroup.vue +14 -0
- package/src/components/ui/textarea/index.ts +10 -0
- package/src/components/ui/textarea/types.ts +35 -0
- package/src/components/ui/tool/Tool.vue +304 -0
- package/src/components/ui/tool/index.ts +7 -0
- package/src/components/ui/tooltip/Tooltip.vue +19 -0
- package/src/components/ui/tooltip/TooltipContent.vue +44 -0
- package/src/components/ui/tooltip/TooltipProvider.vue +14 -0
- package/src/components/ui/tooltip/TooltipTrigger.vue +15 -0
- package/src/components/ui/tooltip/index.ts +4 -0
- package/src/lib/code-highlight.ts +220 -0
- package/src/lib/utils.ts +6 -0
- package/src/styles.css +684 -0
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from "vue"
|
|
3
|
+
import { computed, onMounted, ref, watch } from "vue"
|
|
4
|
+
import { useEventListener, useMediaQuery } from "@vueuse/core"
|
|
5
|
+
import { cn } from "@/lib/utils"
|
|
6
|
+
import {
|
|
7
|
+
provideSidebarContext,
|
|
8
|
+
SIDEBAR_KEYBOARD_SHORTCUT,
|
|
9
|
+
SIDEBAR_STORAGE_KEY,
|
|
10
|
+
SIDEBAR_WIDTH,
|
|
11
|
+
SIDEBAR_WIDTH_ICON,
|
|
12
|
+
SIDEBAR_WIDTH_MOBILE,
|
|
13
|
+
} from "./context"
|
|
14
|
+
|
|
15
|
+
export interface SidebarProviderProps {
|
|
16
|
+
class?: HTMLAttributes["class"]
|
|
17
|
+
defaultOpen?: boolean
|
|
18
|
+
keyboardShortcut?: string
|
|
19
|
+
open?: boolean
|
|
20
|
+
persist?: boolean
|
|
21
|
+
storageKey?: string
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const props = withDefaults(defineProps<SidebarProviderProps>(), {
|
|
25
|
+
defaultOpen: true,
|
|
26
|
+
keyboardShortcut: SIDEBAR_KEYBOARD_SHORTCUT,
|
|
27
|
+
open: undefined,
|
|
28
|
+
persist: false,
|
|
29
|
+
storageKey: SIDEBAR_STORAGE_KEY,
|
|
30
|
+
})
|
|
31
|
+
|
|
32
|
+
const emits = defineEmits<{
|
|
33
|
+
"update:open": [open: boolean]
|
|
34
|
+
}>()
|
|
35
|
+
|
|
36
|
+
const isMobile = useMediaQuery("(max-width: 768px)")
|
|
37
|
+
const openMobile = ref(false)
|
|
38
|
+
const uncontrolledOpen = ref(props.defaultOpen)
|
|
39
|
+
const open = computed({
|
|
40
|
+
get: () => props.open ?? uncontrolledOpen.value,
|
|
41
|
+
set: (value: boolean) => {
|
|
42
|
+
uncontrolledOpen.value = value
|
|
43
|
+
emits("update:open", value)
|
|
44
|
+
},
|
|
45
|
+
})
|
|
46
|
+
|
|
47
|
+
const state = computed(() => open.value ? "expanded" : "collapsed")
|
|
48
|
+
|
|
49
|
+
function setOpen(value: boolean) {
|
|
50
|
+
open.value = value
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
function setOpenMobile(value: boolean) {
|
|
54
|
+
openMobile.value = value
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
function toggleSidebar() {
|
|
58
|
+
if (isMobile.value) {
|
|
59
|
+
setOpenMobile(!openMobile.value)
|
|
60
|
+
return
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
setOpen(!open.value)
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
function isSidebarShortcut(event: KeyboardEvent) {
|
|
67
|
+
if (!props.keyboardShortcut) return false
|
|
68
|
+
|
|
69
|
+
return event.key.toLowerCase() === props.keyboardShortcut.toLowerCase()
|
|
70
|
+
&& (event.metaKey || event.ctrlKey)
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
onMounted(() => {
|
|
74
|
+
if (!props.persist || props.open !== undefined) return
|
|
75
|
+
|
|
76
|
+
const storedValue = window.localStorage.getItem(props.storageKey)
|
|
77
|
+
|
|
78
|
+
if (storedValue === "true" || storedValue === "false") {
|
|
79
|
+
setOpen(storedValue === "true")
|
|
80
|
+
}
|
|
81
|
+
})
|
|
82
|
+
|
|
83
|
+
watch(open, (value) => {
|
|
84
|
+
if (!props.persist) return
|
|
85
|
+
|
|
86
|
+
window.localStorage.setItem(props.storageKey, String(value))
|
|
87
|
+
})
|
|
88
|
+
|
|
89
|
+
useEventListener("keydown", (event: KeyboardEvent) => {
|
|
90
|
+
if (!isSidebarShortcut(event)) return
|
|
91
|
+
|
|
92
|
+
event.preventDefault()
|
|
93
|
+
toggleSidebar()
|
|
94
|
+
})
|
|
95
|
+
|
|
96
|
+
provideSidebarContext({
|
|
97
|
+
isMobile,
|
|
98
|
+
open,
|
|
99
|
+
openMobile,
|
|
100
|
+
setOpen,
|
|
101
|
+
setOpenMobile,
|
|
102
|
+
state,
|
|
103
|
+
toggleSidebar,
|
|
104
|
+
})
|
|
105
|
+
</script>
|
|
106
|
+
|
|
107
|
+
<template>
|
|
108
|
+
<div
|
|
109
|
+
data-slot="sidebar-wrapper"
|
|
110
|
+
:style="{
|
|
111
|
+
'--sidebar-width': SIDEBAR_WIDTH,
|
|
112
|
+
'--sidebar-width-icon': SIDEBAR_WIDTH_ICON,
|
|
113
|
+
'--sidebar-width-mobile': SIDEBAR_WIDTH_MOBILE,
|
|
114
|
+
}"
|
|
115
|
+
:class="cn('group/sidebar-wrapper flex min-h-svh w-full bg-background text-foreground', props.class)"
|
|
116
|
+
>
|
|
117
|
+
<slot />
|
|
118
|
+
</div>
|
|
119
|
+
</template>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from "vue"
|
|
3
|
+
import { cn } from "@/lib/utils"
|
|
4
|
+
import { useSidebar } from "./context"
|
|
5
|
+
|
|
6
|
+
const props = defineProps<{
|
|
7
|
+
class?: HTMLAttributes["class"]
|
|
8
|
+
}>()
|
|
9
|
+
|
|
10
|
+
const { toggleSidebar } = useSidebar()
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<template>
|
|
14
|
+
<button
|
|
15
|
+
data-slot="sidebar-rail"
|
|
16
|
+
data-sidebar="rail"
|
|
17
|
+
type="button"
|
|
18
|
+
aria-label="Toggle sidebar"
|
|
19
|
+
title="Toggle sidebar"
|
|
20
|
+
tabindex="-1"
|
|
21
|
+
:class="
|
|
22
|
+
cn(
|
|
23
|
+
'absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-0.5 hover:after:bg-border sm:flex',
|
|
24
|
+
'group-data-[side=left]:-right-4 group-data-[side=right]:left-0',
|
|
25
|
+
'group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full',
|
|
26
|
+
'[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize',
|
|
27
|
+
'in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize',
|
|
28
|
+
props.class,
|
|
29
|
+
)
|
|
30
|
+
"
|
|
31
|
+
@click="toggleSidebar"
|
|
32
|
+
>
|
|
33
|
+
<slot />
|
|
34
|
+
</button>
|
|
35
|
+
</template>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from "vue"
|
|
3
|
+
import { cn } from "@/lib/utils"
|
|
4
|
+
import { Separator } from "../separator"
|
|
5
|
+
|
|
6
|
+
const props = defineProps<{
|
|
7
|
+
class?: HTMLAttributes["class"]
|
|
8
|
+
}>()
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<template>
|
|
12
|
+
<Separator
|
|
13
|
+
data-slot="sidebar-separator"
|
|
14
|
+
data-sidebar="separator"
|
|
15
|
+
decorative
|
|
16
|
+
:class="cn('mx-2 w-auto', props.class)"
|
|
17
|
+
/>
|
|
18
|
+
</template>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from "vue"
|
|
3
|
+
import { PanelLeftIcon } from "@lucide/vue"
|
|
4
|
+
import { cn } from "@/lib/utils"
|
|
5
|
+
import { Button } from "../button"
|
|
6
|
+
import { useSidebar } from "./context"
|
|
7
|
+
|
|
8
|
+
const props = defineProps<{
|
|
9
|
+
class?: HTMLAttributes["class"]
|
|
10
|
+
}>()
|
|
11
|
+
|
|
12
|
+
const { toggleSidebar } = useSidebar()
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<template>
|
|
16
|
+
<Button
|
|
17
|
+
data-slot="sidebar-trigger"
|
|
18
|
+
data-sidebar="trigger"
|
|
19
|
+
type="button"
|
|
20
|
+
variant="ghost"
|
|
21
|
+
size="icon-sm"
|
|
22
|
+
:class="cn(props.class)"
|
|
23
|
+
@click="toggleSidebar"
|
|
24
|
+
>
|
|
25
|
+
<PanelLeftIcon aria-hidden="true" />
|
|
26
|
+
<span class="sr-only">Toggle sidebar</span>
|
|
27
|
+
</Button>
|
|
28
|
+
</template>
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { ComputedRef, InjectionKey, Ref } from "vue"
|
|
2
|
+
import { inject, provide } from "vue"
|
|
3
|
+
import type { SidebarState } from "./types"
|
|
4
|
+
|
|
5
|
+
export const SIDEBAR_KEYBOARD_SHORTCUT = "b"
|
|
6
|
+
export const SIDEBAR_STORAGE_KEY = "sidebar_state"
|
|
7
|
+
export const SIDEBAR_WIDTH = "16rem"
|
|
8
|
+
export const SIDEBAR_WIDTH_ICON = "3.25rem"
|
|
9
|
+
export const SIDEBAR_WIDTH_MOBILE = "18rem"
|
|
10
|
+
|
|
11
|
+
export interface SidebarContext {
|
|
12
|
+
isMobile: Ref<boolean>
|
|
13
|
+
open: Ref<boolean>
|
|
14
|
+
openMobile: Ref<boolean>
|
|
15
|
+
setOpen: (value: boolean) => void
|
|
16
|
+
setOpenMobile: (value: boolean) => void
|
|
17
|
+
state: ComputedRef<SidebarState>
|
|
18
|
+
toggleSidebar: () => void
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const sidebarContextKey: InjectionKey<SidebarContext> = Symbol("SidebarContext")
|
|
22
|
+
|
|
23
|
+
export function provideSidebarContext(context: SidebarContext) {
|
|
24
|
+
provide(sidebarContextKey, context)
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export function useOptionalSidebar() {
|
|
28
|
+
return inject(sidebarContextKey, null)
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export function useSidebar() {
|
|
32
|
+
const context = useOptionalSidebar()
|
|
33
|
+
|
|
34
|
+
if (!context) {
|
|
35
|
+
throw new Error("Sidebar components must be used within a SidebarProvider.")
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
return context
|
|
39
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export { default as Sidebar } from "./Sidebar.vue"
|
|
2
|
+
export { default as SidebarContent } from "./SidebarContent.vue"
|
|
3
|
+
export { default as SidebarFooter } from "./SidebarFooter.vue"
|
|
4
|
+
export { default as SidebarGroup } from "./SidebarGroup.vue"
|
|
5
|
+
export { default as SidebarGroupAction } from "./SidebarGroupAction.vue"
|
|
6
|
+
export { default as SidebarGroupContent } from "./SidebarGroupContent.vue"
|
|
7
|
+
export { default as SidebarGroupLabel } from "./SidebarGroupLabel.vue"
|
|
8
|
+
export { default as SidebarHeader } from "./SidebarHeader.vue"
|
|
9
|
+
export { default as SidebarInput } from "./SidebarInput.vue"
|
|
10
|
+
export { default as SidebarInset } from "./SidebarInset.vue"
|
|
11
|
+
export { default as SidebarMenu } from "./SidebarMenu.vue"
|
|
12
|
+
export { default as SidebarMenuAction } from "./SidebarMenuAction.vue"
|
|
13
|
+
export { default as SidebarMenuBadge } from "./SidebarMenuBadge.vue"
|
|
14
|
+
export { default as SidebarMenuButton } from "./SidebarMenuButton.vue"
|
|
15
|
+
export { default as SidebarMenuButtonChild } from "./SidebarMenuButtonChild.vue"
|
|
16
|
+
export { default as SidebarMenuItem } from "./SidebarMenuItem.vue"
|
|
17
|
+
export { default as SidebarMenuSub } from "./SidebarMenuSub.vue"
|
|
18
|
+
export { default as SidebarMenuSubButton } from "./SidebarMenuSubButton.vue"
|
|
19
|
+
export { default as SidebarMenuSubItem } from "./SidebarMenuSubItem.vue"
|
|
20
|
+
export { default as SidebarProvider } from "./SidebarProvider.vue"
|
|
21
|
+
export { default as SidebarRail } from "./SidebarRail.vue"
|
|
22
|
+
export { default as SidebarSeparator } from "./SidebarSeparator.vue"
|
|
23
|
+
export { default as SidebarTrigger } from "./SidebarTrigger.vue"
|
|
24
|
+
export {
|
|
25
|
+
SIDEBAR_KEYBOARD_SHORTCUT,
|
|
26
|
+
SIDEBAR_STORAGE_KEY,
|
|
27
|
+
SIDEBAR_WIDTH,
|
|
28
|
+
SIDEBAR_WIDTH_ICON,
|
|
29
|
+
SIDEBAR_WIDTH_MOBILE,
|
|
30
|
+
useOptionalSidebar,
|
|
31
|
+
useSidebar,
|
|
32
|
+
} from "./context"
|
|
33
|
+
export {
|
|
34
|
+
sidebarMenuButtonVariants,
|
|
35
|
+
type SidebarMenuButtonVariants,
|
|
36
|
+
} from "./variants"
|
|
37
|
+
export type {
|
|
38
|
+
SidebarCollapsible,
|
|
39
|
+
SidebarProps,
|
|
40
|
+
SidebarSide,
|
|
41
|
+
SidebarState,
|
|
42
|
+
SidebarVariant,
|
|
43
|
+
} from "./types"
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { HTMLAttributes } from "vue"
|
|
2
|
+
|
|
3
|
+
export type SidebarCollapsible = "offcanvas" | "icon" | "none"
|
|
4
|
+
export type SidebarSide = "left" | "right"
|
|
5
|
+
export type SidebarState = "collapsed" | "expanded"
|
|
6
|
+
export type SidebarVariant = "floating" | "inset" | "sidebar"
|
|
7
|
+
|
|
8
|
+
export interface SidebarProps {
|
|
9
|
+
class?: HTMLAttributes["class"]
|
|
10
|
+
collapsible?: SidebarCollapsible
|
|
11
|
+
side?: SidebarSide
|
|
12
|
+
variant?: SidebarVariant
|
|
13
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { cva, type VariantProps } from "class-variance-authority"
|
|
2
|
+
|
|
3
|
+
export const sidebarMenuButtonVariants = cva(
|
|
4
|
+
"peer/menu-button flex w-full min-w-0 items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-ring transition-[background-color,color,width,height,padding] hover:bg-accent hover:text-accent-foreground focus-visible:ring-2 active:bg-accent active:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-accent data-[active=true]:font-medium data-[active=true]:text-accent-foreground group-data-[collapsible=icon]:size-9 group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:p-0 group-data-[collapsible=icon]:[&>span:last-child]:hidden [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
|
|
5
|
+
{
|
|
6
|
+
variants: {
|
|
7
|
+
size: {
|
|
8
|
+
default: "h-8 text-sm",
|
|
9
|
+
lg: "h-11 text-sm group-data-[collapsible=icon]:p-0",
|
|
10
|
+
sm: "h-7 text-xs",
|
|
11
|
+
},
|
|
12
|
+
variant: {
|
|
13
|
+
default: "hover:bg-accent hover:text-accent-foreground",
|
|
14
|
+
outline:
|
|
15
|
+
"bg-background shadow-[0_0_0_1px_var(--border)] hover:bg-accent hover:text-accent-foreground hover:shadow-[0_0_0_1px_var(--accent)]",
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
defaultVariants: {
|
|
19
|
+
size: "default",
|
|
20
|
+
variant: "default",
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
export type SidebarMenuButtonVariants = VariantProps<typeof sidebarMenuButtonVariants>
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed } from "vue"
|
|
3
|
+
import type { HTMLAttributes } from "vue"
|
|
4
|
+
import { cn } from "@/lib/utils"
|
|
5
|
+
|
|
6
|
+
export type SkeletonVariant = "block" | "text" | "circle"
|
|
7
|
+
|
|
8
|
+
export interface SkeletonProps {
|
|
9
|
+
animated?: boolean
|
|
10
|
+
as?: string
|
|
11
|
+
class?: HTMLAttributes["class"]
|
|
12
|
+
decorative?: boolean
|
|
13
|
+
label?: string
|
|
14
|
+
variant?: SkeletonVariant
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const props = withDefaults(defineProps<SkeletonProps>(), {
|
|
18
|
+
animated: true,
|
|
19
|
+
as: "div",
|
|
20
|
+
decorative: true,
|
|
21
|
+
label: "Loading",
|
|
22
|
+
variant: "block",
|
|
23
|
+
})
|
|
24
|
+
|
|
25
|
+
const variantClass = computed(() => {
|
|
26
|
+
if (props.variant === "circle") return "size-10 rounded-full"
|
|
27
|
+
if (props.variant === "text") return "h-4 w-full rounded"
|
|
28
|
+
|
|
29
|
+
return "h-24 w-full rounded-md"
|
|
30
|
+
})
|
|
31
|
+
</script>
|
|
32
|
+
|
|
33
|
+
<template>
|
|
34
|
+
<component
|
|
35
|
+
:is="props.as"
|
|
36
|
+
data-slot="skeleton"
|
|
37
|
+
:data-animated="props.animated ? 'true' : 'false'"
|
|
38
|
+
:data-variant="props.variant"
|
|
39
|
+
:aria-hidden="props.decorative ? 'true' : undefined"
|
|
40
|
+
:aria-label="props.decorative ? undefined : props.label"
|
|
41
|
+
:class="
|
|
42
|
+
cn(
|
|
43
|
+
'block shrink-0 bg-muted',
|
|
44
|
+
variantClass,
|
|
45
|
+
props.animated && 'animate-pulse',
|
|
46
|
+
props.class,
|
|
47
|
+
)
|
|
48
|
+
"
|
|
49
|
+
:role="props.decorative ? undefined : 'status'"
|
|
50
|
+
>
|
|
51
|
+
<span v-if="!props.decorative" class="sr-only">{{ props.label }}</span>
|
|
52
|
+
</component>
|
|
53
|
+
</template>
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import type { ToasterProps } from "vue-sonner"
|
|
3
|
+
import { CircleCheckIcon, InfoIcon, Loader2Icon, OctagonXIcon, TriangleAlertIcon, XIcon } from "@lucide/vue"
|
|
4
|
+
import { Toaster as Sonner } from "vue-sonner"
|
|
5
|
+
import { cn } from "@/lib/utils"
|
|
6
|
+
|
|
7
|
+
const props = withDefaults(defineProps<ToasterProps>(), {
|
|
8
|
+
closeButtonPosition: "top-right",
|
|
9
|
+
})
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<template>
|
|
13
|
+
<Sonner
|
|
14
|
+
:class="cn('toaster group', props.class)"
|
|
15
|
+
:style="{
|
|
16
|
+
'--normal-bg': 'var(--popover)',
|
|
17
|
+
'--normal-text': 'var(--popover-foreground)',
|
|
18
|
+
'--normal-border': 'var(--border)',
|
|
19
|
+
'--border-radius': 'var(--radius)',
|
|
20
|
+
}"
|
|
21
|
+
v-bind="props"
|
|
22
|
+
>
|
|
23
|
+
<template #success-icon>
|
|
24
|
+
<CircleCheckIcon class="size-4" />
|
|
25
|
+
</template>
|
|
26
|
+
<template #info-icon>
|
|
27
|
+
<InfoIcon class="size-4" />
|
|
28
|
+
</template>
|
|
29
|
+
<template #warning-icon>
|
|
30
|
+
<TriangleAlertIcon class="size-4" />
|
|
31
|
+
</template>
|
|
32
|
+
<template #error-icon>
|
|
33
|
+
<OctagonXIcon class="size-4" />
|
|
34
|
+
</template>
|
|
35
|
+
<template #loading-icon>
|
|
36
|
+
<div>
|
|
37
|
+
<Loader2Icon class="size-4 animate-spin" />
|
|
38
|
+
</div>
|
|
39
|
+
</template>
|
|
40
|
+
<template #close-icon>
|
|
41
|
+
<XIcon class="size-4" />
|
|
42
|
+
</template>
|
|
43
|
+
</Sonner>
|
|
44
|
+
</template>
|
|
45
|
+
|
|
46
|
+
<style>
|
|
47
|
+
[data-sonner-toaster] [data-close-button-position="top-right"] {
|
|
48
|
+
--toast-close-button-right: 0.625rem;
|
|
49
|
+
--toast-close-button-top: 0.625rem;
|
|
50
|
+
--toast-close-button-transform: none;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
[data-sonner-toast][data-styled="true"]:has([data-close-button]) {
|
|
54
|
+
padding-right: 2.75rem;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
[data-sonner-toast][data-styled="true"] [data-close-button] {
|
|
58
|
+
background: transparent;
|
|
59
|
+
border-color: transparent;
|
|
60
|
+
border-radius: 0;
|
|
61
|
+
color: currentColor;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
[data-sonner-toast][data-styled="true"]:hover [data-close-button]:hover,
|
|
65
|
+
[data-sonner-toaster][data-sonner-theme="dark"] [data-sonner-toast] [data-close-button]:hover {
|
|
66
|
+
background: transparent;
|
|
67
|
+
border-color: transparent;
|
|
68
|
+
}
|
|
69
|
+
</style>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { default as Toaster } from "./Sonner.vue"
|
|
2
|
+
export {
|
|
3
|
+
toast,
|
|
4
|
+
useVueSonner,
|
|
5
|
+
type Action,
|
|
6
|
+
type ExternalToast,
|
|
7
|
+
type PromiseIExtendedResult,
|
|
8
|
+
type ToastClasses,
|
|
9
|
+
type ToastT,
|
|
10
|
+
type ToastToDismiss,
|
|
11
|
+
type ToasterProps,
|
|
12
|
+
} from "vue-sonner"
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from "vue"
|
|
3
|
+
import { cn } from "@/lib/utils"
|
|
4
|
+
|
|
5
|
+
const props = withDefaults(
|
|
6
|
+
defineProps<{
|
|
7
|
+
class?: HTMLAttributes["class"]
|
|
8
|
+
label?: string
|
|
9
|
+
decorative?: boolean
|
|
10
|
+
}>(),
|
|
11
|
+
{
|
|
12
|
+
label: "Loading",
|
|
13
|
+
decorative: false,
|
|
14
|
+
},
|
|
15
|
+
)
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<template>
|
|
19
|
+
<span
|
|
20
|
+
data-slot="spinner"
|
|
21
|
+
:aria-hidden="props.decorative ? 'true' : undefined"
|
|
22
|
+
:aria-label="props.decorative ? undefined : props.label"
|
|
23
|
+
:class="
|
|
24
|
+
cn(
|
|
25
|
+
'inline-block size-4 shrink-0 animate-spin rounded-full border-2 border-current border-r-transparent align-[-0.125em]',
|
|
26
|
+
props.class,
|
|
27
|
+
)
|
|
28
|
+
"
|
|
29
|
+
:role="props.decorative ? undefined : 'status'"
|
|
30
|
+
>
|
|
31
|
+
<span v-if="!props.decorative" class="sr-only">{{ props.label }}</span>
|
|
32
|
+
</span>
|
|
33
|
+
</template>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Spinner } from "./Spinner.vue"
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from "vue"
|
|
3
|
+
import type { StepperRootEmits, StepperRootProps } from "reka-ui"
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
+
import { StepperRoot as StepperPrimitiveRoot, 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
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits)
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<template>
|
|
16
|
+
<StepperPrimitiveRoot
|
|
17
|
+
v-slot="slotProps"
|
|
18
|
+
data-slot="stepper"
|
|
19
|
+
v-bind="forwarded"
|
|
20
|
+
:class="
|
|
21
|
+
cn(
|
|
22
|
+
'flex w-full items-start gap-2 data-[orientation=vertical]:flex-col data-[orientation=vertical]:items-stretch',
|
|
23
|
+
props.class,
|
|
24
|
+
)
|
|
25
|
+
"
|
|
26
|
+
>
|
|
27
|
+
<slot v-bind="slotProps" />
|
|
28
|
+
</StepperPrimitiveRoot>
|
|
29
|
+
</template>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from "vue"
|
|
3
|
+
import type { StepperDescriptionProps } from "reka-ui"
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
+
import {
|
|
6
|
+
StepperDescription as StepperPrimitiveDescription,
|
|
7
|
+
useForwardProps,
|
|
8
|
+
} from "reka-ui"
|
|
9
|
+
import { cn } from "@/lib/utils"
|
|
10
|
+
|
|
11
|
+
const props = defineProps<StepperDescriptionProps & { class?: HTMLAttributes["class"] }>()
|
|
12
|
+
|
|
13
|
+
const delegatedProps = reactiveOmit(props, "class")
|
|
14
|
+
const forwardedProps = useForwardProps(delegatedProps)
|
|
15
|
+
</script>
|
|
16
|
+
|
|
17
|
+
<template>
|
|
18
|
+
<StepperPrimitiveDescription
|
|
19
|
+
data-slot="stepper-description"
|
|
20
|
+
v-bind="forwardedProps"
|
|
21
|
+
:class="
|
|
22
|
+
cn(
|
|
23
|
+
'text-xs leading-relaxed text-muted-foreground transition-colors group-data-[state=active]:text-foreground group-data-[disabled]:text-muted-foreground',
|
|
24
|
+
props.class,
|
|
25
|
+
)
|
|
26
|
+
"
|
|
27
|
+
>
|
|
28
|
+
<slot />
|
|
29
|
+
</StepperPrimitiveDescription>
|
|
30
|
+
</template>
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from "vue"
|
|
3
|
+
import type { StepperIndicatorProps } from "reka-ui"
|
|
4
|
+
import { computed } from "vue"
|
|
5
|
+
import { Check } from "@lucide/vue"
|
|
6
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
7
|
+
import {
|
|
8
|
+
injectStepperItemContext,
|
|
9
|
+
StepperIndicator as StepperPrimitiveIndicator,
|
|
10
|
+
useForwardProps,
|
|
11
|
+
} from "reka-ui"
|
|
12
|
+
import { cn } from "@/lib/utils"
|
|
13
|
+
|
|
14
|
+
const props = defineProps<StepperIndicatorProps & { class?: HTMLAttributes["class"] }>()
|
|
15
|
+
|
|
16
|
+
defineSlots<{
|
|
17
|
+
default?: (props: { state: "active" | "completed" | "inactive"; step: number }) => unknown
|
|
18
|
+
}>()
|
|
19
|
+
|
|
20
|
+
const itemContext = injectStepperItemContext()
|
|
21
|
+
const delegatedProps = reactiveOmit(props, "class")
|
|
22
|
+
const forwardedProps = useForwardProps(delegatedProps)
|
|
23
|
+
const step = computed(() => itemContext.step.value)
|
|
24
|
+
const state = computed(() => itemContext.state.value)
|
|
25
|
+
</script>
|
|
26
|
+
|
|
27
|
+
<template>
|
|
28
|
+
<StepperPrimitiveIndicator
|
|
29
|
+
data-slot="stepper-indicator"
|
|
30
|
+
v-bind="forwardedProps"
|
|
31
|
+
:class="
|
|
32
|
+
cn(
|
|
33
|
+
'border-input bg-background text-muted-foreground relative z-10 flex size-8 shrink-0 items-center justify-center rounded-full border text-sm font-medium transition-[background-color,border-color,color,box-shadow] group-data-[state=active]:border-primary group-data-[state=active]:bg-primary group-data-[state=active]:text-primary-foreground group-data-[state=completed]:border-primary group-data-[state=completed]:bg-primary group-data-[state=completed]:text-primary-foreground group-data-[disabled]:opacity-50',
|
|
34
|
+
props.class,
|
|
35
|
+
)
|
|
36
|
+
"
|
|
37
|
+
>
|
|
38
|
+
<slot
|
|
39
|
+
:state="state"
|
|
40
|
+
:step="step"
|
|
41
|
+
>
|
|
42
|
+
<Check
|
|
43
|
+
v-if="state === 'completed'"
|
|
44
|
+
aria-hidden="true"
|
|
45
|
+
class="size-4"
|
|
46
|
+
/>
|
|
47
|
+
<span v-else>{{ step }}</span>
|
|
48
|
+
</slot>
|
|
49
|
+
</StepperPrimitiveIndicator>
|
|
50
|
+
</template>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from "vue"
|
|
3
|
+
import type { StepperItemProps } from "reka-ui"
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
+
import { StepperItem as StepperPrimitiveItem, 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
|
+
const forwardedProps = useForwardProps(delegatedProps)
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<template>
|
|
15
|
+
<StepperPrimitiveItem
|
|
16
|
+
v-slot="slotProps"
|
|
17
|
+
data-slot="stepper-item"
|
|
18
|
+
v-bind="forwardedProps"
|
|
19
|
+
:class="
|
|
20
|
+
cn(
|
|
21
|
+
'group relative flex min-w-0 flex-1 flex-col items-center text-center data-[orientation=vertical]:flex-row data-[orientation=vertical]:items-start data-[orientation=vertical]:text-left',
|
|
22
|
+
props.class,
|
|
23
|
+
)
|
|
24
|
+
"
|
|
25
|
+
>
|
|
26
|
+
<slot v-bind="slotProps" />
|
|
27
|
+
</StepperPrimitiveItem>
|
|
28
|
+
</template>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from "vue"
|
|
3
|
+
import type { StepperSeparatorProps } from "reka-ui"
|
|
4
|
+
import { reactiveOmit } from "@vueuse/core"
|
|
5
|
+
import { StepperSeparator as StepperPrimitiveSeparator, 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
|
+
const forwardedProps = useForwardProps(delegatedProps)
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<template>
|
|
15
|
+
<StepperPrimitiveSeparator
|
|
16
|
+
data-slot="stepper-separator"
|
|
17
|
+
v-bind="forwardedProps"
|
|
18
|
+
:class="
|
|
19
|
+
cn(
|
|
20
|
+
'bg-muted pointer-events-none z-0 transition-colors data-[orientation=horizontal]:h-0.5 data-[orientation=horizontal]:flex-1 data-[orientation=vertical]:w-0.5 data-[orientation=vertical]:self-stretch group-data-[state=completed]:bg-primary',
|
|
21
|
+
props.class,
|
|
22
|
+
)
|
|
23
|
+
"
|
|
24
|
+
/>
|
|
25
|
+
</template>
|