@matta-trade/ui 0.0.0-stage → 0.2.1
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/DESIGN.md +217 -0
- package/README.md +91 -2
- package/dist/alert/Alert.vue.d.ts +19 -0
- package/dist/alert/AlertDescription.vue.d.ts +17 -0
- package/dist/alert/AlertTitle.vue.d.ts +17 -0
- package/dist/alert/index.d.ts +8 -0
- package/dist/alert/index.js +62 -0
- package/dist/alert-dialog/AlertDialog.vue.d.ts +18 -0
- package/dist/alert-dialog/AlertDialogAction.vue.d.ts +18 -0
- package/dist/alert-dialog/AlertDialogCancel.vue.d.ts +18 -0
- package/dist/alert-dialog/AlertDialogContent.vue.d.ts +32 -0
- package/dist/alert-dialog/AlertDialogDescription.vue.d.ts +18 -0
- package/dist/alert-dialog/AlertDialogFooter.vue.d.ts +17 -0
- package/dist/alert-dialog/AlertDialogHeader.vue.d.ts +17 -0
- package/dist/alert-dialog/AlertDialogTitle.vue.d.ts +18 -0
- package/dist/alert-dialog/AlertDialogTrigger.vue.d.ts +14 -0
- package/dist/alert-dialog/index.d.ts +9 -0
- package/dist/alert-dialog/index.js +177 -0
- package/dist/avatar/Avatar.vue.d.ts +27 -0
- package/dist/avatar/AvatarFallback.vue.d.ts +18 -0
- package/dist/avatar/AvatarImage.vue.d.ts +14 -0
- package/dist/avatar/index.d.ts +9 -0
- package/dist/avatar/index.js +120 -0
- package/dist/avatar-colors.d.ts +51 -0
- package/dist/badge/Badge.vue.d.ts +20 -0
- package/dist/badge/index.d.ts +6 -0
- package/dist/badge/index.js +58 -0
- package/dist/breadcrumb/Breadcrumb.vue.d.ts +17 -0
- package/dist/breadcrumb/BreadcrumbEllipsis.vue.d.ts +17 -0
- package/dist/breadcrumb/BreadcrumbItem.vue.d.ts +17 -0
- package/dist/breadcrumb/BreadcrumbLink.vue.d.ts +20 -0
- package/dist/breadcrumb/BreadcrumbList.vue.d.ts +17 -0
- package/dist/breadcrumb/BreadcrumbPage.vue.d.ts +17 -0
- package/dist/breadcrumb/BreadcrumbSeparator.vue.d.ts +17 -0
- package/dist/breadcrumb/index.d.ts +7 -0
- package/dist/breadcrumb/index.js +131 -0
- package/dist/button/Button.vue.d.ts +36 -0
- package/dist/button/index.d.ts +7 -0
- package/dist/button/index.js +2 -0
- package/dist/button-group/ButtonGroup.vue.d.ts +19 -0
- package/dist/button-group/ButtonGroupSeparator.vue.d.ts +10 -0
- package/dist/button-group/ButtonGroupText.vue.d.ts +22 -0
- package/dist/button-group/index.d.ts +8 -0
- package/dist/button-group/index.js +92 -0
- package/dist/calendar/Calendar.vue.d.ts +14 -0
- package/dist/calendar/CalendarCell.vue.d.ts +18 -0
- package/dist/calendar/CalendarCellTrigger.vue.d.ts +18 -0
- package/dist/calendar/CalendarGrid.vue.d.ts +18 -0
- package/dist/calendar/CalendarGridBody.vue.d.ts +14 -0
- package/dist/calendar/CalendarGridHead.vue.d.ts +14 -0
- package/dist/calendar/CalendarGridRow.vue.d.ts +18 -0
- package/dist/calendar/CalendarHeadCell.vue.d.ts +18 -0
- package/dist/calendar/CalendarHeader.vue.d.ts +18 -0
- package/dist/calendar/CalendarHeading.vue.d.ts +19 -0
- package/dist/calendar/CalendarNextButton.vue.d.ts +18 -0
- package/dist/calendar/CalendarPrevButton.vue.d.ts +18 -0
- package/dist/calendar/index.d.ts +12 -0
- package/dist/calendar/index.js +303 -0
- package/dist/card/Card.vue.d.ts +17 -0
- package/dist/card/CardContent.vue.d.ts +17 -0
- package/dist/card/CardDescription.vue.d.ts +17 -0
- package/dist/card/CardFooter.vue.d.ts +17 -0
- package/dist/card/CardHeader.vue.d.ts +17 -0
- package/dist/card/CardTitle.vue.d.ts +17 -0
- package/dist/card/index.d.ts +6 -0
- package/dist/card/index.js +2 -0
- package/dist/chart/ChartCrosshair.vue.d.ts +13 -0
- package/dist/chart/ChartLegend.vue.d.ts +15 -0
- package/dist/chart/ChartSingleTooltip.vue.d.ts +12 -0
- package/dist/chart/ChartTooltip.vue.d.ts +11 -0
- package/dist/chart/index.d.ts +6 -0
- package/dist/chart/index.js +177 -0
- package/dist/chart/interface.d.ts +63 -0
- package/dist/checkbox/Checkbox.vue.d.ts +22 -0
- package/dist/checkbox/index.d.ts +1 -0
- package/dist/checkbox/index.js +43 -0
- package/dist/chunks/avatar-colors-CCGh54Ve.js +37 -0
- package/dist/chunks/button-DcaKfSRM.js +100 -0
- package/dist/chunks/card-B9Fm3-hL.js +85 -0
- package/dist/chunks/dialog-Df5vNbNz.js +196 -0
- package/dist/chunks/input-BgkMak31.js +44 -0
- package/dist/chunks/scroll-area-COtrGbKj.js +68 -0
- package/dist/chunks/separator-DAL7ppX1.js +31 -0
- package/dist/chunks/sheet-tX6r4wAA.js +150 -0
- package/dist/chunks/tooltip-C80qPEs9.js +102 -0
- package/dist/chunks/utils-CX-Pz5p6.js +8 -0
- package/dist/combobox/Combobox.vue.d.ts +29 -0
- package/dist/combobox/ComboboxAnchor.vue.d.ts +18 -0
- package/dist/combobox/ComboboxEmpty.vue.d.ts +18 -0
- package/dist/combobox/ComboboxGroup.vue.d.ts +19 -0
- package/dist/combobox/ComboboxInput.vue.d.ts +22 -0
- package/dist/combobox/ComboboxItem.vue.d.ts +22 -0
- package/dist/combobox/ComboboxList.vue.d.ts +32 -0
- package/dist/combobox/ComboboxSeparator.vue.d.ts +18 -0
- package/dist/combobox/ComboboxTrigger.vue.d.ts +18 -0
- package/dist/combobox/index.d.ts +10 -0
- package/dist/combobox/index.js +262 -0
- package/dist/command/Command.vue.d.ts +36 -0
- package/dist/command/CommandDialog.vue.d.ts +18 -0
- package/dist/command/CommandEmpty.vue.d.ts +18 -0
- package/dist/command/CommandGroup.vue.d.ts +19 -0
- package/dist/command/CommandInput.vue.d.ts +8 -0
- package/dist/command/CommandItem.vue.d.ts +22 -0
- package/dist/command/CommandList.vue.d.ts +18 -0
- package/dist/command/CommandSeparator.vue.d.ts +18 -0
- package/dist/command/CommandShortcut.vue.d.ts +17 -0
- package/dist/command/index.d.ts +90 -0
- package/dist/command/index.js +297 -0
- package/dist/dialog/Dialog.vue.d.ts +18 -0
- package/dist/dialog/DialogClose.vue.d.ts +14 -0
- package/dist/dialog/DialogContent.vue.d.ts +32 -0
- package/dist/dialog/DialogDescription.vue.d.ts +18 -0
- package/dist/dialog/DialogFooter.vue.d.ts +17 -0
- package/dist/dialog/DialogHeader.vue.d.ts +17 -0
- package/dist/dialog/DialogScrollContent.vue.d.ts +32 -0
- package/dist/dialog/DialogTitle.vue.d.ts +18 -0
- package/dist/dialog/DialogTrigger.vue.d.ts +14 -0
- package/dist/dialog/index.d.ts +9 -0
- package/dist/dialog/index.js +2 -0
- package/dist/drawer/Drawer.vue.d.ts +30 -0
- package/dist/drawer/DrawerContent.vue.d.ts +32 -0
- package/dist/drawer/DrawerDescription.vue.d.ts +18 -0
- package/dist/drawer/DrawerFooter.vue.d.ts +17 -0
- package/dist/drawer/DrawerHeader.vue.d.ts +17 -0
- package/dist/drawer/DrawerOverlay.vue.d.ts +8 -0
- package/dist/drawer/DrawerTitle.vue.d.ts +18 -0
- package/dist/drawer/index.d.ts +8 -0
- package/dist/drawer/index.js +166 -0
- package/dist/dropdown-menu/DropdownMenu.vue.d.ts +18 -0
- package/dist/dropdown-menu/DropdownMenuContent.vue.d.ts +32 -0
- package/dist/dropdown-menu/DropdownMenuItem.vue.d.ts +22 -0
- package/dist/dropdown-menu/DropdownMenuLabel.vue.d.ts +18 -0
- package/dist/dropdown-menu/DropdownMenuSeparator.vue.d.ts +8 -0
- package/dist/dropdown-menu/DropdownMenuTrigger.vue.d.ts +14 -0
- package/dist/dropdown-menu/index.d.ts +6 -0
- package/dist/dropdown-menu/index.js +149 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -0
- package/dist/input/Input.vue.d.ts +19 -0
- package/dist/input/index.d.ts +1 -0
- package/dist/input/index.js +2 -0
- package/dist/label/Label.vue.d.ts +18 -0
- package/dist/label/index.d.ts +1 -0
- package/dist/label/index.js +29 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/popover/Popover.vue.d.ts +18 -0
- package/dist/popover/PopoverContent.vue.d.ts +35 -0
- package/dist/popover/PopoverTrigger.vue.d.ts +14 -0
- package/dist/popover/index.d.ts +3 -0
- package/dist/popover/index.js +96 -0
- package/dist/range-calendar/RangeCalendar.vue.d.ts +18 -0
- package/dist/range-calendar/RangeCalendarCell.vue.d.ts +18 -0
- package/dist/range-calendar/RangeCalendarCellTrigger.vue.d.ts +18 -0
- package/dist/range-calendar/RangeCalendarGrid.vue.d.ts +18 -0
- package/dist/range-calendar/RangeCalendarGridBody.vue.d.ts +14 -0
- package/dist/range-calendar/RangeCalendarGridHead.vue.d.ts +14 -0
- package/dist/range-calendar/RangeCalendarGridRow.vue.d.ts +18 -0
- package/dist/range-calendar/RangeCalendarHeadCell.vue.d.ts +18 -0
- package/dist/range-calendar/RangeCalendarHeader.vue.d.ts +18 -0
- package/dist/range-calendar/RangeCalendarHeading.vue.d.ts +19 -0
- package/dist/range-calendar/RangeCalendarNextButton.vue.d.ts +18 -0
- package/dist/range-calendar/RangeCalendarPrevButton.vue.d.ts +18 -0
- package/dist/range-calendar/index.d.ts +12 -0
- package/dist/range-calendar/index.js +311 -0
- package/dist/scroll-area/ScrollArea.vue.d.ts +19 -0
- package/dist/scroll-area/ScrollBar.vue.d.ts +10 -0
- package/dist/scroll-area/index.d.ts +2 -0
- package/dist/scroll-area/index.js +2 -0
- package/dist/select/Select.vue.d.ts +21 -0
- package/dist/select/SelectContent.vue.d.ts +28 -0
- package/dist/select/SelectGroup.vue.d.ts +18 -0
- package/dist/select/SelectItem.vue.d.ts +18 -0
- package/dist/select/SelectItemText.vue.d.ts +14 -0
- package/dist/select/SelectLabel.vue.d.ts +18 -0
- package/dist/select/SelectScrollDownButton.vue.d.ts +18 -0
- package/dist/select/SelectScrollUpButton.vue.d.ts +18 -0
- package/dist/select/SelectSeparator.vue.d.ts +8 -0
- package/dist/select/SelectTrigger.vue.d.ts +18 -0
- package/dist/select/SelectValue.vue.d.ts +14 -0
- package/dist/select/index.d.ts +11 -0
- package/dist/select/index.js +276 -0
- package/dist/separator/Separator.vue.d.ts +11 -0
- package/dist/separator/index.d.ts +1 -0
- package/dist/separator/index.js +2 -0
- package/dist/sheet/Sheet.vue.d.ts +18 -0
- package/dist/sheet/SheetClose.vue.d.ts +14 -0
- package/dist/sheet/SheetContent.vue.d.ts +39 -0
- package/dist/sheet/SheetDescription.vue.d.ts +18 -0
- package/dist/sheet/SheetHeader.vue.d.ts +17 -0
- package/dist/sheet/SheetTitle.vue.d.ts +18 -0
- package/dist/sheet/SheetTrigger.vue.d.ts +14 -0
- package/dist/sheet/index.d.ts +7 -0
- package/dist/sheet/index.js +2 -0
- package/dist/sidebar/Sidebar.vue.d.ts +28 -0
- package/dist/sidebar/SidebarContent.vue.d.ts +17 -0
- package/dist/sidebar/SidebarFooter.vue.d.ts +17 -0
- package/dist/sidebar/SidebarGroup.vue.d.ts +17 -0
- package/dist/sidebar/SidebarGroupAction.vue.d.ts +20 -0
- package/dist/sidebar/SidebarGroupContent.vue.d.ts +17 -0
- package/dist/sidebar/SidebarGroupLabel.vue.d.ts +20 -0
- package/dist/sidebar/SidebarHeader.vue.d.ts +17 -0
- package/dist/sidebar/SidebarInput.vue.d.ts +17 -0
- package/dist/sidebar/SidebarInset.vue.d.ts +17 -0
- package/dist/sidebar/SidebarMenu.vue.d.ts +17 -0
- package/dist/sidebar/SidebarMenuAction.vue.d.ts +21 -0
- package/dist/sidebar/SidebarMenuBadge.vue.d.ts +17 -0
- package/dist/sidebar/SidebarMenuButton.vue.d.ts +29 -0
- package/dist/sidebar/SidebarMenuItem.vue.d.ts +17 -0
- package/dist/sidebar/SidebarMenuSub.vue.d.ts +17 -0
- package/dist/sidebar/SidebarMenuSubButton.vue.d.ts +23 -0
- package/dist/sidebar/SidebarMenuSubItem.vue.d.ts +17 -0
- package/dist/sidebar/SidebarProvider.vue.d.ts +26 -0
- package/dist/sidebar/SidebarRail.vue.d.ts +7 -0
- package/dist/sidebar/SidebarSeparator.vue.d.ts +7 -0
- package/dist/sidebar/SidebarTrigger.vue.d.ts +7 -0
- package/dist/sidebar/index.d.ts +45 -0
- package/dist/sidebar/index.js +595 -0
- package/dist/sonner/Sonner.vue.d.ts +4 -0
- package/dist/sonner/index.d.ts +1 -0
- package/dist/sonner/index.js +59 -0
- package/dist/stepper/Stepper.vue.d.ts +17 -0
- package/dist/stepper/index.d.ts +1 -0
- package/dist/stepper/index.js +57 -0
- package/dist/switch/Switch.vue.d.ts +12 -0
- package/dist/switch/index.d.ts +1 -0
- package/dist/switch/index.js +46 -0
- package/dist/table/Table.vue.d.ts +17 -0
- package/dist/table/TableBody.vue.d.ts +17 -0
- package/dist/table/TableCell.vue.d.ts +17 -0
- package/dist/table/TableHead.vue.d.ts +17 -0
- package/dist/table/TableHeader.vue.d.ts +17 -0
- package/dist/table/TableRow.vue.d.ts +17 -0
- package/dist/table/index.d.ts +6 -0
- package/dist/table/index.js +84 -0
- package/dist/tabs/Tabs.vue.d.ts +19 -0
- package/dist/tabs/TabsContent.vue.d.ts +18 -0
- package/dist/tabs/TabsList.vue.d.ts +18 -0
- package/dist/tabs/TabsTrigger.vue.d.ts +18 -0
- package/dist/tabs/index.d.ts +4 -0
- package/dist/tabs/index.js +93 -0
- package/dist/tags-input/TagsInput.vue.d.ts +28 -0
- package/dist/tags-input/TagsInputInput.vue.d.ts +8 -0
- package/dist/tags-input/TagsInputItem.vue.d.ts +18 -0
- package/dist/tags-input/TagsInputItemDelete.vue.d.ts +18 -0
- package/dist/tags-input/TagsInputItemText.vue.d.ts +8 -0
- package/dist/tags-input/index.d.ts +5 -0
- package/dist/tags-input/index.js +130 -0
- package/dist/textarea/Textarea.vue.d.ts +19 -0
- package/dist/textarea/index.d.ts +1 -0
- package/dist/textarea/index.js +43 -0
- package/dist/tooltip/Tooltip.vue.d.ts +18 -0
- package/dist/tooltip/TooltipContent.vue.d.ts +26 -0
- package/dist/tooltip/TooltipProvider.vue.d.ts +14 -0
- package/dist/tooltip/TooltipRoot.vue.d.ts +18 -0
- package/dist/tooltip/TooltipTrigger.vue.d.ts +14 -0
- package/dist/tooltip/index.d.ts +4 -0
- package/dist/tooltip/index.js +2 -0
- package/package.json +89 -5
- package/src/alert/Alert.vue +17 -0
- package/src/alert/AlertDescription.vue +14 -0
- package/src/alert/AlertTitle.vue +14 -0
- package/src/alert/index.ts +29 -0
- package/src/alert-dialog/AlertDialog.vue +15 -0
- package/src/alert-dialog/AlertDialogAction.vue +18 -0
- package/src/alert-dialog/AlertDialogCancel.vue +18 -0
- package/src/alert-dialog/AlertDialogContent.vue +33 -0
- package/src/alert-dialog/AlertDialogDescription.vue +17 -0
- package/src/alert-dialog/AlertDialogFooter.vue +14 -0
- package/src/alert-dialog/AlertDialogHeader.vue +14 -0
- package/src/alert-dialog/AlertDialogTitle.vue +17 -0
- package/src/alert-dialog/AlertDialogTrigger.vue +12 -0
- package/src/alert-dialog/index.ts +9 -0
- package/src/avatar/Avatar.vue +76 -0
- package/src/avatar/AvatarFallback.vue +18 -0
- package/src/avatar/AvatarImage.vue +12 -0
- package/src/avatar/index.ts +30 -0
- package/src/avatar-colors.ts +24 -0
- package/src/badge/Badge.vue +44 -0
- package/src/badge/index.ts +33 -0
- package/src/breadcrumb/Breadcrumb.vue +13 -0
- package/src/breadcrumb/BreadcrumbEllipsis.vue +18 -0
- package/src/breadcrumb/BreadcrumbItem.vue +14 -0
- package/src/breadcrumb/BreadcrumbLink.vue +16 -0
- package/src/breadcrumb/BreadcrumbList.vue +14 -0
- package/src/breadcrumb/BreadcrumbPage.vue +14 -0
- package/src/breadcrumb/BreadcrumbSeparator.vue +17 -0
- package/src/breadcrumb/index.ts +7 -0
- package/src/button/Button.vue +64 -0
- package/src/button/index.ts +40 -0
- package/src/button-group/ButtonGroup.vue +22 -0
- package/src/button-group/ButtonGroupSeparator.vue +21 -0
- package/src/button-group/ButtonGroupText.vue +34 -0
- package/src/button-group/index.ts +23 -0
- package/src/calendar/Calendar.vue +57 -0
- package/src/calendar/CalendarCell.vue +27 -0
- package/src/calendar/CalendarCellTrigger.vue +38 -0
- package/src/calendar/CalendarGrid.vue +19 -0
- package/src/calendar/CalendarGridBody.vue +12 -0
- package/src/calendar/CalendarGridHead.vue +12 -0
- package/src/calendar/CalendarGridRow.vue +19 -0
- package/src/calendar/CalendarHeadCell.vue +19 -0
- package/src/calendar/CalendarHeader.vue +19 -0
- package/src/calendar/CalendarHeading.vue +25 -0
- package/src/calendar/CalendarNextButton.vue +26 -0
- package/src/calendar/CalendarPrevButton.vue +26 -0
- package/src/calendar/index.ts +12 -0
- package/src/card/Card.vue +14 -0
- package/src/card/CardContent.vue +14 -0
- package/src/card/CardDescription.vue +14 -0
- package/src/card/CardFooter.vue +14 -0
- package/src/card/CardHeader.vue +14 -0
- package/src/card/CardTitle.vue +14 -0
- package/src/card/index.ts +6 -0
- package/src/chart/ChartCrosshair.vue +47 -0
- package/src/chart/ChartLegend.vue +63 -0
- package/src/chart/ChartSingleTooltip.vue +61 -0
- package/src/chart/ChartTooltip.vue +35 -0
- package/src/chart/index.ts +18 -0
- package/src/chart/interface.ts +64 -0
- package/src/checkbox/Checkbox.vue +33 -0
- package/src/checkbox/index.ts +1 -0
- package/src/combobox/Combobox.vue +15 -0
- package/src/combobox/ComboboxAnchor.vue +19 -0
- package/src/combobox/ComboboxEmpty.vue +17 -0
- package/src/combobox/ComboboxGroup.vue +33 -0
- package/src/combobox/ComboboxInput.vue +33 -0
- package/src/combobox/ComboboxItem.vue +28 -0
- package/src/combobox/ComboboxList.vue +36 -0
- package/src/combobox/ComboboxSeparator.vue +17 -0
- package/src/combobox/ComboboxTrigger.vue +23 -0
- package/src/combobox/index.ts +11 -0
- package/src/command/Command.vue +85 -0
- package/src/command/CommandDialog.vue +23 -0
- package/src/command/CommandEmpty.vue +22 -0
- package/src/command/CommandGroup.vue +50 -0
- package/src/command/CommandInput.vue +42 -0
- package/src/command/CommandItem.vue +79 -0
- package/src/command/CommandList.vue +25 -0
- package/src/command/CommandSeparator.vue +17 -0
- package/src/command/CommandShortcut.vue +14 -0
- package/src/command/index.ts +25 -0
- package/src/dialog/Dialog.vue +15 -0
- package/src/dialog/DialogClose.vue +12 -0
- package/src/dialog/DialogContent.vue +41 -0
- package/src/dialog/DialogDescription.vue +19 -0
- package/src/dialog/DialogFooter.vue +12 -0
- package/src/dialog/DialogHeader.vue +14 -0
- package/src/dialog/DialogScrollContent.vue +49 -0
- package/src/dialog/DialogTitle.vue +19 -0
- package/src/dialog/DialogTrigger.vue +12 -0
- package/src/dialog/index.ts +9 -0
- package/src/drawer/Drawer.vue +20 -0
- package/src/drawer/DrawerContent.vue +31 -0
- package/src/drawer/DrawerDescription.vue +17 -0
- package/src/drawer/DrawerFooter.vue +14 -0
- package/src/drawer/DrawerHeader.vue +14 -0
- package/src/drawer/DrawerOverlay.vue +15 -0
- package/src/drawer/DrawerTitle.vue +17 -0
- package/src/drawer/index.ts +8 -0
- package/src/dropdown-menu/DropdownMenu.vue +26 -0
- package/src/dropdown-menu/DropdownMenuContent.vue +28 -0
- package/src/dropdown-menu/DropdownMenuItem.vue +23 -0
- package/src/dropdown-menu/DropdownMenuLabel.vue +13 -0
- package/src/dropdown-menu/DropdownMenuSeparator.vue +11 -0
- package/src/dropdown-menu/DropdownMenuTrigger.vue +11 -0
- package/src/dropdown-menu/index.ts +6 -0
- package/src/index.ts +2 -0
- package/src/input/Input.vue +43 -0
- package/src/input/index.ts +1 -0
- package/src/label/Label.vue +16 -0
- package/src/label/index.ts +1 -0
- package/src/lib/utils.ts +6 -0
- package/src/popover/Popover.vue +15 -0
- package/src/popover/PopoverContent.vue +39 -0
- package/src/popover/PopoverTrigger.vue +11 -0
- package/src/popover/index.ts +3 -0
- package/src/range-calendar/RangeCalendar.vue +57 -0
- package/src/range-calendar/RangeCalendarCell.vue +27 -0
- package/src/range-calendar/RangeCalendarCellTrigger.vue +40 -0
- package/src/range-calendar/RangeCalendarGrid.vue +19 -0
- package/src/range-calendar/RangeCalendarGridBody.vue +12 -0
- package/src/range-calendar/RangeCalendarGridHead.vue +12 -0
- package/src/range-calendar/RangeCalendarGridRow.vue +19 -0
- package/src/range-calendar/RangeCalendarHeadCell.vue +19 -0
- package/src/range-calendar/RangeCalendarHeader.vue +19 -0
- package/src/range-calendar/RangeCalendarHeading.vue +25 -0
- package/src/range-calendar/RangeCalendarNextButton.vue +26 -0
- package/src/range-calendar/RangeCalendarPrevButton.vue +26 -0
- package/src/range-calendar/index.ts +12 -0
- package/src/scroll-area/ScrollArea.vue +22 -0
- package/src/scroll-area/ScrollBar.vue +29 -0
- package/src/scroll-area/index.ts +2 -0
- package/src/select/Select.vue +15 -0
- package/src/select/SelectContent.vue +43 -0
- package/src/select/SelectGroup.vue +17 -0
- package/src/select/SelectItem.vue +36 -0
- package/src/select/SelectItemText.vue +12 -0
- package/src/select/SelectLabel.vue +14 -0
- package/src/select/SelectScrollDownButton.vue +22 -0
- package/src/select/SelectScrollUpButton.vue +22 -0
- package/src/select/SelectSeparator.vue +15 -0
- package/src/select/SelectTrigger.vue +31 -0
- package/src/select/SelectValue.vue +12 -0
- package/src/select/index.ts +11 -0
- package/src/separator/Separator.vue +21 -0
- package/src/separator/index.ts +1 -0
- package/src/sheet/Sheet.vue +15 -0
- package/src/sheet/SheetClose.vue +11 -0
- package/src/sheet/SheetContent.vue +54 -0
- package/src/sheet/SheetDescription.vue +13 -0
- package/src/sheet/SheetHeader.vue +14 -0
- package/src/sheet/SheetTitle.vue +13 -0
- package/src/sheet/SheetTrigger.vue +11 -0
- package/src/sheet/index.ts +7 -0
- package/src/sidebar/Sidebar.vue +101 -0
- package/src/sidebar/SidebarContent.vue +21 -0
- package/src/sidebar/SidebarFooter.vue +16 -0
- package/src/sidebar/SidebarGroup.vue +16 -0
- package/src/sidebar/SidebarGroupAction.vue +31 -0
- package/src/sidebar/SidebarGroupContent.vue +16 -0
- package/src/sidebar/SidebarGroupLabel.vue +31 -0
- package/src/sidebar/SidebarHeader.vue +16 -0
- package/src/sidebar/SidebarInput.vue +20 -0
- package/src/sidebar/SidebarInset.vue +25 -0
- package/src/sidebar/SidebarMenu.vue +16 -0
- package/src/sidebar/SidebarMenuAction.vue +37 -0
- package/src/sidebar/SidebarMenuBadge.vue +29 -0
- package/src/sidebar/SidebarMenuButton.vue +64 -0
- package/src/sidebar/SidebarMenuItem.vue +16 -0
- package/src/sidebar/SidebarMenuSub.vue +25 -0
- package/src/sidebar/SidebarMenuSubButton.vue +39 -0
- package/src/sidebar/SidebarMenuSubItem.vue +16 -0
- package/src/sidebar/SidebarProvider.vue +74 -0
- package/src/sidebar/SidebarRail.vue +34 -0
- package/src/sidebar/SidebarSeparator.vue +15 -0
- package/src/sidebar/SidebarTrigger.vue +28 -0
- package/src/sidebar/index.ts +70 -0
- package/src/sonner/Sonner.vue +54 -0
- package/src/sonner/index.ts +1 -0
- package/src/stepper/Stepper.vue +58 -0
- package/src/stepper/index.ts +1 -0
- package/src/switch/Switch.vue +41 -0
- package/src/switch/index.ts +1 -0
- package/src/table/Table.vue +16 -0
- package/src/table/TableBody.vue +14 -0
- package/src/table/TableCell.vue +14 -0
- package/src/table/TableHead.vue +14 -0
- package/src/table/TableHeader.vue +14 -0
- package/src/table/TableRow.vue +14 -0
- package/src/table/index.ts +6 -0
- package/src/tabs/Tabs.vue +15 -0
- package/src/tabs/TabsContent.vue +16 -0
- package/src/tabs/TabsList.vue +16 -0
- package/src/tabs/TabsTrigger.vue +21 -0
- package/src/tabs/index.ts +4 -0
- package/src/tags-input/TagsInput.vue +23 -0
- package/src/tags-input/TagsInputInput.vue +17 -0
- package/src/tags-input/TagsInputItem.vue +27 -0
- package/src/tags-input/TagsInputItemDelete.vue +22 -0
- package/src/tags-input/TagsInputItemText.vue +17 -0
- package/src/tags-input/index.ts +5 -0
- package/src/textarea/Textarea.vue +41 -0
- package/src/textarea/index.ts +1 -0
- package/src/tooltip/Tooltip.vue +15 -0
- package/src/tooltip/TooltipContent.vue +37 -0
- package/src/tooltip/TooltipProvider.vue +12 -0
- package/src/tooltip/TooltipRoot.vue +14 -0
- package/src/tooltip/TooltipTrigger.vue +12 -0
- package/src/tooltip/index.ts +4 -0
- package/styles/kit.css +100 -0
- package/styles/theme.css +950 -0
- package/styles/typography.css +430 -0
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { t as e } from "../chunks/utils-CX-Pz5p6.js";
|
|
2
|
+
import { t } from "../chunks/button-DcaKfSRM.js";
|
|
3
|
+
import { createBlock as n, createElementBlock as r, createVNode as i, defineComponent as a, guardReactiveProps as o, mergeProps as s, normalizeClass as c, normalizeProps as l, openBlock as u, renderSlot as d, unref as f, withCtx as p } from "vue";
|
|
4
|
+
import { AlertDialogAction as m, AlertDialogCancel as h, AlertDialogContent as g, AlertDialogDescription as _, AlertDialogOverlay as v, AlertDialogPortal as y, AlertDialogRoot as b, AlertDialogTitle as x, AlertDialogTrigger as S, useForwardPropsEmits as C } from "reka-ui";
|
|
5
|
+
import { reactiveOmit as w } from "@vueuse/core";
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region src/alert-dialog/AlertDialog.vue
|
|
8
|
+
var T = /* @__PURE__ */ a({
|
|
9
|
+
__name: "AlertDialog",
|
|
10
|
+
props: {
|
|
11
|
+
open: { type: Boolean },
|
|
12
|
+
defaultOpen: { type: Boolean },
|
|
13
|
+
unmountOnHide: { type: Boolean }
|
|
14
|
+
},
|
|
15
|
+
emits: ["update:open"],
|
|
16
|
+
setup(e, { emit: t }) {
|
|
17
|
+
let r = C(e, t);
|
|
18
|
+
return (e, t) => (u(), n(f(b), l(o(f(r))), {
|
|
19
|
+
default: p(() => [d(e.$slots, "default")]),
|
|
20
|
+
_: 3
|
|
21
|
+
}, 16));
|
|
22
|
+
}
|
|
23
|
+
}), E = /* @__PURE__ */ a({
|
|
24
|
+
__name: "AlertDialogAction",
|
|
25
|
+
props: {
|
|
26
|
+
asChild: { type: Boolean },
|
|
27
|
+
as: {},
|
|
28
|
+
class: { type: [
|
|
29
|
+
Boolean,
|
|
30
|
+
null,
|
|
31
|
+
String,
|
|
32
|
+
Object,
|
|
33
|
+
Array
|
|
34
|
+
] }
|
|
35
|
+
},
|
|
36
|
+
setup(r) {
|
|
37
|
+
let i = r, a = w(i, "class");
|
|
38
|
+
return (r, o) => (u(), n(f(m), s(f(a), { class: f(e)(f(t)(), i.class) }), {
|
|
39
|
+
default: p(() => [d(r.$slots, "default")]),
|
|
40
|
+
_: 3
|
|
41
|
+
}, 16, ["class"]));
|
|
42
|
+
}
|
|
43
|
+
}), D = /* @__PURE__ */ a({
|
|
44
|
+
__name: "AlertDialogCancel",
|
|
45
|
+
props: {
|
|
46
|
+
asChild: { type: Boolean },
|
|
47
|
+
as: {},
|
|
48
|
+
class: { type: [
|
|
49
|
+
Boolean,
|
|
50
|
+
null,
|
|
51
|
+
String,
|
|
52
|
+
Object,
|
|
53
|
+
Array
|
|
54
|
+
] }
|
|
55
|
+
},
|
|
56
|
+
setup(r) {
|
|
57
|
+
let i = r, a = w(i, "class");
|
|
58
|
+
return (r, o) => (u(), n(f(h), s(f(a), { class: f(e)(f(t)({ variant: "outline" }), "mt-2 sm:mt-0", i.class) }), {
|
|
59
|
+
default: p(() => [d(r.$slots, "default")]),
|
|
60
|
+
_: 3
|
|
61
|
+
}, 16, ["class"]));
|
|
62
|
+
}
|
|
63
|
+
}), O = /* @__PURE__ */ a({
|
|
64
|
+
__name: "AlertDialogContent",
|
|
65
|
+
props: {
|
|
66
|
+
forceMount: { type: Boolean },
|
|
67
|
+
disableOutsidePointerEvents: { type: Boolean },
|
|
68
|
+
asChild: { type: Boolean },
|
|
69
|
+
as: {},
|
|
70
|
+
class: { type: [
|
|
71
|
+
Boolean,
|
|
72
|
+
null,
|
|
73
|
+
String,
|
|
74
|
+
Object,
|
|
75
|
+
Array
|
|
76
|
+
] }
|
|
77
|
+
},
|
|
78
|
+
emits: [
|
|
79
|
+
"escapeKeyDown",
|
|
80
|
+
"pointerDownOutside",
|
|
81
|
+
"focusOutside",
|
|
82
|
+
"interactOutside",
|
|
83
|
+
"openAutoFocus",
|
|
84
|
+
"closeAutoFocus"
|
|
85
|
+
],
|
|
86
|
+
setup(t, { emit: r }) {
|
|
87
|
+
let a = t, o = r, c = w(a, "class"), l = C(c, o);
|
|
88
|
+
return (t, r) => (u(), n(f(y), null, {
|
|
89
|
+
default: p(() => [i(f(v), { class: "inset-0 backdrop-blur-xs fixed z-50 bg-black/40 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0" }), i(f(g), s(f(l), { class: f(e)("max-w-lg gap-4 p-6 fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 rounded-xl border border-border-secondary bg-primary shadow-2xl duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] data-[state=open]:zoom-in-95", a.class) }), {
|
|
90
|
+
default: p(() => [d(t.$slots, "default")]),
|
|
91
|
+
_: 3
|
|
92
|
+
}, 16, ["class"])]),
|
|
93
|
+
_: 3
|
|
94
|
+
}));
|
|
95
|
+
}
|
|
96
|
+
}), k = /* @__PURE__ */ a({
|
|
97
|
+
__name: "AlertDialogDescription",
|
|
98
|
+
props: {
|
|
99
|
+
asChild: { type: Boolean },
|
|
100
|
+
as: {},
|
|
101
|
+
class: { type: [
|
|
102
|
+
Boolean,
|
|
103
|
+
null,
|
|
104
|
+
String,
|
|
105
|
+
Object,
|
|
106
|
+
Array
|
|
107
|
+
] }
|
|
108
|
+
},
|
|
109
|
+
setup(t) {
|
|
110
|
+
let r = t, i = w(r, "class");
|
|
111
|
+
return (t, a) => (u(), n(f(_), s(f(i), { class: f(e)("text-sm text-tertiary", r.class) }), {
|
|
112
|
+
default: p(() => [d(t.$slots, "default")]),
|
|
113
|
+
_: 3
|
|
114
|
+
}, 16, ["class"]));
|
|
115
|
+
}
|
|
116
|
+
}), A = /* @__PURE__ */ a({
|
|
117
|
+
__name: "AlertDialogFooter",
|
|
118
|
+
props: { class: { type: [
|
|
119
|
+
Boolean,
|
|
120
|
+
null,
|
|
121
|
+
String,
|
|
122
|
+
Object,
|
|
123
|
+
Array
|
|
124
|
+
] } },
|
|
125
|
+
setup(t) {
|
|
126
|
+
let n = t;
|
|
127
|
+
return (t, i) => (u(), r("div", { class: c(f(e)("sm:flex-row sm:justify-end sm:gap-x-2 flex flex-col-reverse", n.class)) }, [d(t.$slots, "default")], 2));
|
|
128
|
+
}
|
|
129
|
+
}), j = /* @__PURE__ */ a({
|
|
130
|
+
__name: "AlertDialogHeader",
|
|
131
|
+
props: { class: { type: [
|
|
132
|
+
Boolean,
|
|
133
|
+
null,
|
|
134
|
+
String,
|
|
135
|
+
Object,
|
|
136
|
+
Array
|
|
137
|
+
] } },
|
|
138
|
+
setup(t) {
|
|
139
|
+
let n = t;
|
|
140
|
+
return (t, i) => (u(), r("div", { class: c(f(e)("gap-y-2 sm:text-left flex flex-col text-center", n.class)) }, [d(t.$slots, "default")], 2));
|
|
141
|
+
}
|
|
142
|
+
}), M = /* @__PURE__ */ a({
|
|
143
|
+
__name: "AlertDialogTitle",
|
|
144
|
+
props: {
|
|
145
|
+
asChild: { type: Boolean },
|
|
146
|
+
as: {},
|
|
147
|
+
class: { type: [
|
|
148
|
+
Boolean,
|
|
149
|
+
null,
|
|
150
|
+
String,
|
|
151
|
+
Object,
|
|
152
|
+
Array
|
|
153
|
+
] }
|
|
154
|
+
},
|
|
155
|
+
setup(t) {
|
|
156
|
+
let r = t, i = w(r, "class");
|
|
157
|
+
return (t, a) => (u(), n(f(x), s(f(i), { class: f(e)("font-semibold text-lg", r.class) }), {
|
|
158
|
+
default: p(() => [d(t.$slots, "default")]),
|
|
159
|
+
_: 3
|
|
160
|
+
}, 16, ["class"]));
|
|
161
|
+
}
|
|
162
|
+
}), N = /* @__PURE__ */ a({
|
|
163
|
+
__name: "AlertDialogTrigger",
|
|
164
|
+
props: {
|
|
165
|
+
asChild: { type: Boolean },
|
|
166
|
+
as: {}
|
|
167
|
+
},
|
|
168
|
+
setup(e) {
|
|
169
|
+
let t = e;
|
|
170
|
+
return (e, r) => (u(), n(f(S), l(o(t)), {
|
|
171
|
+
default: p(() => [d(e.$slots, "default")]),
|
|
172
|
+
_: 3
|
|
173
|
+
}, 16));
|
|
174
|
+
}
|
|
175
|
+
});
|
|
176
|
+
//#endregion
|
|
177
|
+
export { T as AlertDialog, E as AlertDialogAction, D as AlertDialogCancel, O as AlertDialogContent, k as AlertDialogDescription, A as AlertDialogFooter, j as AlertDialogHeader, M as AlertDialogTitle, N as AlertDialogTrigger };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { AvatarVariants } from '.';
|
|
2
|
+
import { HTMLAttributes } from 'vue';
|
|
3
|
+
export interface AvatarProps {
|
|
4
|
+
class?: HTMLAttributes["class"];
|
|
5
|
+
size?: AvatarVariants["size"];
|
|
6
|
+
shape?: AvatarVariants["shape"];
|
|
7
|
+
src?: string;
|
|
8
|
+
alt?: string;
|
|
9
|
+
initials?: string;
|
|
10
|
+
status?: "online" | "offline" | "busy" | "away";
|
|
11
|
+
}
|
|
12
|
+
declare var __VLS_7: {};
|
|
13
|
+
type __VLS_Slots = {} & {
|
|
14
|
+
default?: (props: typeof __VLS_7) => any;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_base: import('vue').DefineComponent<AvatarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AvatarProps> & Readonly<{}>, {
|
|
17
|
+
size: "base" | "sm" | "md" | "lg" | "xl" | "xs" | "2xl" | null;
|
|
18
|
+
shape: "circle" | "square" | null;
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
import { AvatarFallbackProps } from 'reka-ui';
|
|
3
|
+
interface Props extends AvatarFallbackProps {
|
|
4
|
+
class?: HTMLAttributes["class"];
|
|
5
|
+
}
|
|
6
|
+
declare var __VLS_8: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_8) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AvatarImageProps } from 'reka-ui';
|
|
2
|
+
declare var __VLS_8: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
default?: (props: typeof __VLS_8) => any;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_base: import('vue').DefineComponent<AvatarImageProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AvatarImageProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
11
|
+
new (): {
|
|
12
|
+
$slots: S;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
export { default as Avatar } from './Avatar.vue';
|
|
3
|
+
export { default as AvatarFallback } from './AvatarFallback.vue';
|
|
4
|
+
export { default as AvatarImage } from './AvatarImage.vue';
|
|
5
|
+
export declare const avatarVariant: (props?: ({
|
|
6
|
+
size?: "base" | "sm" | "md" | "lg" | "xl" | "xs" | "2xl" | null | undefined;
|
|
7
|
+
shape?: "circle" | "square" | null | undefined;
|
|
8
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
9
|
+
export type AvatarVariants = VariantProps<typeof avatarVariant>;
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { t as e } from "../chunks/utils-CX-Pz5p6.js";
|
|
2
|
+
import { n as t } from "../chunks/avatar-colors-CCGh54Ve.js";
|
|
3
|
+
import { cva as n } from "class-variance-authority";
|
|
4
|
+
import { computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createTextVNode as s, createVNode as c, defineComponent as l, mergeProps as u, normalizeClass as d, openBlock as f, renderSlot as p, toDisplayString as m, unref as h, withCtx as g } from "vue";
|
|
5
|
+
import { AvatarFallback as _, AvatarImage as v, AvatarRoot as y } from "reka-ui";
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region src/avatar/AvatarFallback.vue
|
|
8
|
+
var b = /* @__PURE__ */ l({
|
|
9
|
+
__name: "AvatarFallback",
|
|
10
|
+
props: {
|
|
11
|
+
class: { type: [
|
|
12
|
+
Boolean,
|
|
13
|
+
null,
|
|
14
|
+
String,
|
|
15
|
+
Object,
|
|
16
|
+
Array
|
|
17
|
+
] },
|
|
18
|
+
delayMs: {},
|
|
19
|
+
asChild: { type: Boolean },
|
|
20
|
+
as: {}
|
|
21
|
+
},
|
|
22
|
+
setup(t) {
|
|
23
|
+
let n = t;
|
|
24
|
+
return (t, r) => (f(), i(h(_), u(n, { class: h(e)("font-semibold flex size-full items-center justify-center text-secondary select-none", n.class) }), {
|
|
25
|
+
default: g(() => [p(t.$slots, "default")]),
|
|
26
|
+
_: 3
|
|
27
|
+
}, 16, ["class"]));
|
|
28
|
+
}
|
|
29
|
+
}), x = /* @__PURE__ */ l({
|
|
30
|
+
__name: "AvatarImage",
|
|
31
|
+
props: {
|
|
32
|
+
src: {},
|
|
33
|
+
referrerPolicy: {},
|
|
34
|
+
crossOrigin: {},
|
|
35
|
+
asChild: { type: Boolean },
|
|
36
|
+
as: {}
|
|
37
|
+
},
|
|
38
|
+
setup(e) {
|
|
39
|
+
let t = e;
|
|
40
|
+
return (e, n) => (f(), i(h(v), u(t, { class: "h-full w-full object-cover" }), {
|
|
41
|
+
default: g(() => [p(e.$slots, "default")]),
|
|
42
|
+
_: 3
|
|
43
|
+
}, 16));
|
|
44
|
+
}
|
|
45
|
+
}), S = { class: "relative inline-flex shrink-0" }, C = /* @__PURE__ */ l({
|
|
46
|
+
__name: "Avatar",
|
|
47
|
+
props: {
|
|
48
|
+
class: { type: [
|
|
49
|
+
Boolean,
|
|
50
|
+
null,
|
|
51
|
+
String,
|
|
52
|
+
Object,
|
|
53
|
+
Array
|
|
54
|
+
] },
|
|
55
|
+
size: { default: "md" },
|
|
56
|
+
shape: { default: "circle" },
|
|
57
|
+
src: {},
|
|
58
|
+
alt: {},
|
|
59
|
+
initials: {},
|
|
60
|
+
status: {}
|
|
61
|
+
},
|
|
62
|
+
setup(n) {
|
|
63
|
+
let l = n, u = r(() => t(l.alt || l.initials || "User")), _ = r(() => {
|
|
64
|
+
switch (l.size) {
|
|
65
|
+
case "xs": return "size-1.5 ring-1";
|
|
66
|
+
case "sm": return "size-2 ring-1.5";
|
|
67
|
+
case "lg": return "size-3 ring-2";
|
|
68
|
+
case "xl": return "size-3.5 ring-2";
|
|
69
|
+
case "2xl": return "size-4 ring-2";
|
|
70
|
+
default: return "size-2.5 ring-2";
|
|
71
|
+
}
|
|
72
|
+
}), v = r(() => {
|
|
73
|
+
switch (l.status) {
|
|
74
|
+
case "online": return "bg-utility-success-500";
|
|
75
|
+
case "busy": return "bg-utility-red-500";
|
|
76
|
+
case "away": return "bg-utility-warning-500";
|
|
77
|
+
default: return "bg-utility-gray-400";
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
return (t, r) => (f(), o("div", S, [c(h(y), { class: d(h(e)(h(w)({
|
|
81
|
+
size: n.size,
|
|
82
|
+
shape: n.shape
|
|
83
|
+
}), l.class)) }, {
|
|
84
|
+
default: g(() => [p(t.$slots, "default", {}, () => [n.src ? (f(), i(x, {
|
|
85
|
+
key: 0,
|
|
86
|
+
src: n.src,
|
|
87
|
+
alt: n.alt || n.initials
|
|
88
|
+
}, null, 8, ["src", "alt"])) : a("", !0), c(b, { class: d(h(e)(u.value.bg, u.value.text, "font-semibold")) }, {
|
|
89
|
+
default: g(() => [s(m(n.initials || (n.alt ? n.alt.slice(0, 2).toUpperCase() : "U")), 1)]),
|
|
90
|
+
_: 1
|
|
91
|
+
}, 8, ["class"])])]),
|
|
92
|
+
_: 3
|
|
93
|
+
}, 8, ["class"]), n.status ? (f(), o("span", {
|
|
94
|
+
key: 0,
|
|
95
|
+
class: d(h(e)("bottom-0 right-0 dark:ring-gray-950 absolute rounded-full ring-2 ring-white", _.value, v.value))
|
|
96
|
+
}, null, 2)) : a("", !0)]));
|
|
97
|
+
}
|
|
98
|
+
}), w = n("font-medium relative inline-flex shrink-0 items-center justify-center overflow-hidden bg-secondary select-none", {
|
|
99
|
+
variants: {
|
|
100
|
+
size: {
|
|
101
|
+
xs: "size-6 text-[10px]",
|
|
102
|
+
sm: "size-8 text-xs",
|
|
103
|
+
md: "size-10 text-sm",
|
|
104
|
+
base: "size-10 text-sm",
|
|
105
|
+
lg: "size-12 text-base",
|
|
106
|
+
xl: "size-14 text-lg",
|
|
107
|
+
"2xl": "size-16 text-xl"
|
|
108
|
+
},
|
|
109
|
+
shape: {
|
|
110
|
+
circle: "rounded-full",
|
|
111
|
+
square: "rounded-xl"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
defaultVariants: {
|
|
115
|
+
size: "md",
|
|
116
|
+
shape: "circle"
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
//#endregion
|
|
120
|
+
export { C as Avatar, b as AvatarFallback, x as AvatarImage, w as avatarVariant };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Accessible background/text pairs for identity avatars that fall back to initials.
|
|
3
|
+
* Reuses the same `utility-*` color tokens `Badge` uses (already carry correct dark-mode
|
|
4
|
+
* swaps), excluding gray/brand/error/warning/success since those carry semantic meaning
|
|
5
|
+
* elsewhere in the system.
|
|
6
|
+
*/
|
|
7
|
+
export declare const AVATAR_INITIALS_COLORS: readonly [{
|
|
8
|
+
readonly bg: "bg-utility-slate-50";
|
|
9
|
+
readonly text: "text-utility-slate-700";
|
|
10
|
+
}, {
|
|
11
|
+
readonly bg: "bg-utility-sky-50";
|
|
12
|
+
readonly text: "text-utility-sky-700";
|
|
13
|
+
}, {
|
|
14
|
+
readonly bg: "bg-utility-blue-50";
|
|
15
|
+
readonly text: "text-utility-blue-700";
|
|
16
|
+
}, {
|
|
17
|
+
readonly bg: "bg-utility-indigo-50";
|
|
18
|
+
readonly text: "text-utility-indigo-700";
|
|
19
|
+
}, {
|
|
20
|
+
readonly bg: "bg-utility-purple-50";
|
|
21
|
+
readonly text: "text-utility-purple-700";
|
|
22
|
+
}, {
|
|
23
|
+
readonly bg: "bg-utility-pink-50";
|
|
24
|
+
readonly text: "text-utility-pink-700";
|
|
25
|
+
}, {
|
|
26
|
+
readonly bg: "bg-utility-orange-50";
|
|
27
|
+
readonly text: "text-utility-orange-700";
|
|
28
|
+
}];
|
|
29
|
+
/** Deterministic pick so the same identity always renders the same color, no flicker on re-render. */
|
|
30
|
+
export declare const getAvatarInitialsColor: (seed: string) => {
|
|
31
|
+
readonly bg: "bg-utility-slate-50";
|
|
32
|
+
readonly text: "text-utility-slate-700";
|
|
33
|
+
} | {
|
|
34
|
+
readonly bg: "bg-utility-sky-50";
|
|
35
|
+
readonly text: "text-utility-sky-700";
|
|
36
|
+
} | {
|
|
37
|
+
readonly bg: "bg-utility-blue-50";
|
|
38
|
+
readonly text: "text-utility-blue-700";
|
|
39
|
+
} | {
|
|
40
|
+
readonly bg: "bg-utility-indigo-50";
|
|
41
|
+
readonly text: "text-utility-indigo-700";
|
|
42
|
+
} | {
|
|
43
|
+
readonly bg: "bg-utility-purple-50";
|
|
44
|
+
readonly text: "text-utility-purple-700";
|
|
45
|
+
} | {
|
|
46
|
+
readonly bg: "bg-utility-pink-50";
|
|
47
|
+
readonly text: "text-utility-pink-700";
|
|
48
|
+
} | {
|
|
49
|
+
readonly bg: "bg-utility-orange-50";
|
|
50
|
+
readonly text: "text-utility-orange-700";
|
|
51
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { BadgeVariants } from '.';
|
|
2
|
+
import { HTMLAttributes } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
variant?: BadgeVariants["variant"];
|
|
5
|
+
class?: HTMLAttributes["class"];
|
|
6
|
+
dot?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare var __VLS_1: {};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
default?: (props: typeof __VLS_1) => any;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
export { default as Badge } from './Badge.vue';
|
|
3
|
+
export declare const badgeVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "destructive" | "success" | "warning" | "secondary" | "outline" | "brand" | "error" | "indigo" | "purple" | "pink" | "gray" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
export type BadgeVariants = VariantProps<typeof badgeVariants>;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { t as e } from "../chunks/utils-CX-Pz5p6.js";
|
|
2
|
+
import { cva as t } from "class-variance-authority";
|
|
3
|
+
import { computed as n, createCommentVNode as r, createElementBlock as i, defineComponent as a, normalizeClass as o, openBlock as s, renderSlot as c, unref as l } from "vue";
|
|
4
|
+
//#endregion
|
|
5
|
+
//#region src/badge/Badge.vue
|
|
6
|
+
var u = /* @__PURE__ */ a({
|
|
7
|
+
__name: "Badge",
|
|
8
|
+
props: {
|
|
9
|
+
variant: {},
|
|
10
|
+
class: { type: [
|
|
11
|
+
Boolean,
|
|
12
|
+
null,
|
|
13
|
+
String,
|
|
14
|
+
Object,
|
|
15
|
+
Array
|
|
16
|
+
] },
|
|
17
|
+
dot: { type: Boolean }
|
|
18
|
+
},
|
|
19
|
+
setup(t) {
|
|
20
|
+
let a = t, u = n(() => {
|
|
21
|
+
switch (a.variant) {
|
|
22
|
+
case "brand": return "bg-utility-brand-500";
|
|
23
|
+
case "success": return "bg-utility-green-500";
|
|
24
|
+
case "warning": return "bg-utility-orange-500";
|
|
25
|
+
case "error":
|
|
26
|
+
case "destructive": return "bg-utility-red-500";
|
|
27
|
+
case "indigo": return "bg-utility-indigo-500";
|
|
28
|
+
case "purple": return "bg-utility-purple-500";
|
|
29
|
+
case "pink": return "bg-utility-pink-500";
|
|
30
|
+
case "gray":
|
|
31
|
+
case "secondary": return "bg-utility-gray-500";
|
|
32
|
+
default: return "bg-primary";
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
return (n, f) => (s(), i("div", { class: o(l(e)(l(d)({ variant: t.variant }), a.class)) }, [t.dot ? (s(), i("span", {
|
|
36
|
+
key: 0,
|
|
37
|
+
class: o(l(e)("size-1.5 shrink-0 rounded-full", u.value))
|
|
38
|
+
}, null, 2)) : r("", !0), c(n.$slots, "default")], 2));
|
|
39
|
+
}
|
|
40
|
+
}), d = t("gap-1.5 px-2.5 py-0.5 font-semibold focus:ring-ring inline-flex items-center rounded-full border text-xs transition-colors focus:ring-2 focus:ring-offset-2 focus:outline-none", {
|
|
41
|
+
variants: { variant: {
|
|
42
|
+
default: "text-primary-foreground border-transparent bg-primary hover:bg-primary/80",
|
|
43
|
+
secondary: "text-secondary-foreground border-transparent bg-secondary hover:bg-secondary/80",
|
|
44
|
+
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/80 border-transparent",
|
|
45
|
+
outline: "text-foreground border-border-secondary",
|
|
46
|
+
brand: "dark:bg-utility-brand-950 border-border-brand/30 bg-utility-brand-50 text-utility-brand-700 dark:text-utility-brand-300",
|
|
47
|
+
success: "dark:bg-utility-green-950 dark:border-utility-green-800 border-utility-green-200 bg-utility-green-50 text-utility-green-700 dark:text-utility-green-300",
|
|
48
|
+
warning: "dark:bg-utility-orange-950 dark:border-utility-orange-800 border-utility-orange-200 bg-utility-orange-50 text-utility-orange-700 dark:text-utility-orange-300",
|
|
49
|
+
error: "dark:bg-utility-red-950 dark:border-utility-red-800 border-utility-red-200 bg-utility-red-50 text-utility-red-700 dark:text-utility-red-300",
|
|
50
|
+
indigo: "dark:bg-utility-indigo-950 dark:border-utility-indigo-800 border-utility-indigo-200 bg-utility-indigo-50 text-utility-indigo-700 dark:text-utility-indigo-300",
|
|
51
|
+
purple: "dark:bg-utility-purple-950 dark:border-utility-purple-800 border-utility-purple-200 bg-utility-purple-50 text-utility-purple-700 dark:text-utility-purple-300",
|
|
52
|
+
pink: "dark:bg-utility-pink-950 dark:border-utility-pink-800 border-utility-pink-200 bg-utility-pink-50 text-utility-pink-700 dark:text-utility-pink-300",
|
|
53
|
+
gray: "border-border-secondary bg-secondary text-secondary hover:bg-secondary/80"
|
|
54
|
+
} },
|
|
55
|
+
defaultVariants: { variant: "default" }
|
|
56
|
+
});
|
|
57
|
+
//#endregion
|
|
58
|
+
export { u as Badge, d as badgeVariants };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
class?: HTMLAttributes["class"];
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_1: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_1) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
class?: HTMLAttributes["class"];
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_1: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_1) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
class?: HTMLAttributes["class"];
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_1: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_1) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
import { PrimitiveProps } from 'reka-ui';
|
|
3
|
+
type __VLS_Props = PrimitiveProps & {
|
|
4
|
+
class?: HTMLAttributes["class"];
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_8: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_8) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
11
|
+
as: import('reka-ui').AsTag | import('vue').Component;
|
|
12
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
class?: HTMLAttributes["class"];
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_1: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_1) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
class?: HTMLAttributes["class"];
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_1: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_1) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
class?: HTMLAttributes["class"];
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_1: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_1) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { default as Breadcrumb } from './Breadcrumb.vue';
|
|
2
|
+
export { default as BreadcrumbEllipsis } from './BreadcrumbEllipsis.vue';
|
|
3
|
+
export { default as BreadcrumbItem } from './BreadcrumbItem.vue';
|
|
4
|
+
export { default as BreadcrumbLink } from './BreadcrumbLink.vue';
|
|
5
|
+
export { default as BreadcrumbList } from './BreadcrumbList.vue';
|
|
6
|
+
export { default as BreadcrumbPage } from './BreadcrumbPage.vue';
|
|
7
|
+
export { default as BreadcrumbSeparator } from './BreadcrumbSeparator.vue';
|