@matta-trade/ui 0.0.0-stage → 0.2.2
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,130 @@
|
|
|
1
|
+
import { t as e } from "../chunks/utils-CX-Pz5p6.js";
|
|
2
|
+
import { createBlock as t, createVNode as n, defineComponent as r, mergeProps as i, openBlock as a, renderSlot as o, unref as s, withCtx as c } from "vue";
|
|
3
|
+
import { TagsInputInput as l, TagsInputItem as u, TagsInputItemDelete as d, TagsInputItemText as f, TagsInputRoot as p, useForwardProps as m, useForwardPropsEmits as h } from "reka-ui";
|
|
4
|
+
import { reactiveOmit as g } from "@vueuse/core";
|
|
5
|
+
import { X as _ } from "lucide-vue-next";
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region src/tags-input/TagsInput.vue
|
|
8
|
+
var v = /* @__PURE__ */ r({
|
|
9
|
+
__name: "TagsInput",
|
|
10
|
+
props: {
|
|
11
|
+
modelValue: {},
|
|
12
|
+
defaultValue: {},
|
|
13
|
+
addOnPaste: { type: Boolean },
|
|
14
|
+
addOnTab: { type: Boolean },
|
|
15
|
+
addOnBlur: { type: Boolean },
|
|
16
|
+
duplicate: { type: Boolean },
|
|
17
|
+
disabled: { type: Boolean },
|
|
18
|
+
delimiter: {},
|
|
19
|
+
dir: {},
|
|
20
|
+
max: {},
|
|
21
|
+
id: {},
|
|
22
|
+
convertValue: { type: Function },
|
|
23
|
+
displayValue: { type: Function },
|
|
24
|
+
asChild: { type: Boolean },
|
|
25
|
+
as: {},
|
|
26
|
+
name: {},
|
|
27
|
+
required: { type: Boolean },
|
|
28
|
+
class: { type: [
|
|
29
|
+
Boolean,
|
|
30
|
+
null,
|
|
31
|
+
String,
|
|
32
|
+
Object,
|
|
33
|
+
Array
|
|
34
|
+
] }
|
|
35
|
+
},
|
|
36
|
+
emits: [
|
|
37
|
+
"update:modelValue",
|
|
38
|
+
"invalid",
|
|
39
|
+
"addTag",
|
|
40
|
+
"removeTag"
|
|
41
|
+
],
|
|
42
|
+
setup(n, { emit: r }) {
|
|
43
|
+
let l = n, u = r, d = g(l, "class"), f = h(d, u);
|
|
44
|
+
return (n, r) => (a(), t(s(p), i(s(f), { class: s(e)("gap-2 border-input bg-background px-3 py-2 flex flex-wrap items-center rounded-md border text-sm", l.class) }), {
|
|
45
|
+
default: c(() => [o(n.$slots, "default")]),
|
|
46
|
+
_: 3
|
|
47
|
+
}, 16, ["class"]));
|
|
48
|
+
}
|
|
49
|
+
}), y = /* @__PURE__ */ r({
|
|
50
|
+
__name: "TagsInputInput",
|
|
51
|
+
props: {
|
|
52
|
+
placeholder: {},
|
|
53
|
+
autoFocus: { type: Boolean },
|
|
54
|
+
maxLength: {},
|
|
55
|
+
asChild: { type: Boolean },
|
|
56
|
+
as: {},
|
|
57
|
+
class: { type: [
|
|
58
|
+
Boolean,
|
|
59
|
+
null,
|
|
60
|
+
String,
|
|
61
|
+
Object,
|
|
62
|
+
Array
|
|
63
|
+
] }
|
|
64
|
+
},
|
|
65
|
+
setup(n) {
|
|
66
|
+
let r = n, o = g(r, "class"), c = m(o);
|
|
67
|
+
return (n, o) => (a(), t(s(l), i(s(c), { class: s(e)("min-h-6 px-1 flex-1 bg-transparent text-sm focus:outline-none", r.class) }), null, 16, ["class"]));
|
|
68
|
+
}
|
|
69
|
+
}), b = /* @__PURE__ */ r({
|
|
70
|
+
__name: "TagsInputItem",
|
|
71
|
+
props: {
|
|
72
|
+
value: {},
|
|
73
|
+
disabled: { type: Boolean },
|
|
74
|
+
asChild: { type: Boolean },
|
|
75
|
+
as: {},
|
|
76
|
+
class: { type: [
|
|
77
|
+
Boolean,
|
|
78
|
+
null,
|
|
79
|
+
String,
|
|
80
|
+
Object,
|
|
81
|
+
Array
|
|
82
|
+
] }
|
|
83
|
+
},
|
|
84
|
+
setup(n) {
|
|
85
|
+
let r = n, l = g(r, "class"), d = m(l);
|
|
86
|
+
return (n, l) => (a(), t(s(u), i(s(d), { class: s(e)("h-6 rounded data-[state=active]:ring-ring ring-offset-background flex items-center bg-secondary data-[state=active]:ring-2 data-[state=active]:ring-offset-2", r.class) }), {
|
|
87
|
+
default: c(() => [o(n.$slots, "default")]),
|
|
88
|
+
_: 3
|
|
89
|
+
}, 16, ["class"]));
|
|
90
|
+
}
|
|
91
|
+
}), x = /* @__PURE__ */ r({
|
|
92
|
+
__name: "TagsInputItemDelete",
|
|
93
|
+
props: {
|
|
94
|
+
asChild: { type: Boolean },
|
|
95
|
+
as: {},
|
|
96
|
+
class: { type: [
|
|
97
|
+
Boolean,
|
|
98
|
+
null,
|
|
99
|
+
String,
|
|
100
|
+
Object,
|
|
101
|
+
Array
|
|
102
|
+
] }
|
|
103
|
+
},
|
|
104
|
+
setup(r) {
|
|
105
|
+
let l = r, u = g(l, "class"), f = m(u);
|
|
106
|
+
return (r, u) => (a(), t(s(d), i(s(f), { class: s(e)("rounded mr-1 flex bg-transparent", l.class) }), {
|
|
107
|
+
default: c(() => [o(r.$slots, "default", {}, () => [n(s(_), { class: "w-4 h-4" })])]),
|
|
108
|
+
_: 3
|
|
109
|
+
}, 16, ["class"]));
|
|
110
|
+
}
|
|
111
|
+
}), S = /* @__PURE__ */ r({
|
|
112
|
+
__name: "TagsInputItemText",
|
|
113
|
+
props: {
|
|
114
|
+
asChild: { type: Boolean },
|
|
115
|
+
as: {},
|
|
116
|
+
class: { type: [
|
|
117
|
+
Boolean,
|
|
118
|
+
null,
|
|
119
|
+
String,
|
|
120
|
+
Object,
|
|
121
|
+
Array
|
|
122
|
+
] }
|
|
123
|
+
},
|
|
124
|
+
setup(n) {
|
|
125
|
+
let r = n, o = g(r, "class"), c = m(o);
|
|
126
|
+
return (n, o) => (a(), t(s(f), i(s(c), { class: s(e)("py-1 px-2 rounded bg-transparent text-sm", r.class) }), null, 16, ["class"]));
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
//#endregion
|
|
130
|
+
export { v as TagsInput, y as TagsInputInput, b as TagsInputItem, x as TagsInputItemDelete, S as TagsInputItemText };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
interface Props {
|
|
3
|
+
modelValue?: string;
|
|
4
|
+
class?: HTMLAttributes["class"];
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
rows?: number;
|
|
7
|
+
maxlength?: number;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const __VLS_export: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
11
|
+
"update:modelValue": (payload: string) => any;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
13
|
+
"onUpdate:modelValue"?: ((payload: string) => any) | undefined;
|
|
14
|
+
}>, {
|
|
15
|
+
disabled: boolean;
|
|
16
|
+
rows: number;
|
|
17
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Textarea } from './Textarea.vue';
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { t as e } from "../chunks/utils-CX-Pz5p6.js";
|
|
2
|
+
import { createElementBlock as t, defineComponent as n, isRef as r, normalizeClass as i, openBlock as a, unref as o, vModelText as s, withDirectives as c } from "vue";
|
|
3
|
+
import { useVModel as l } from "@vueuse/core";
|
|
4
|
+
//#region src/textarea/Textarea.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var u = [
|
|
6
|
+
"rows",
|
|
7
|
+
"placeholder",
|
|
8
|
+
"maxlength",
|
|
9
|
+
"disabled"
|
|
10
|
+
], d = /* @__PURE__ */ n({
|
|
11
|
+
__name: "Textarea",
|
|
12
|
+
props: {
|
|
13
|
+
modelValue: {},
|
|
14
|
+
class: { type: [
|
|
15
|
+
Boolean,
|
|
16
|
+
null,
|
|
17
|
+
String,
|
|
18
|
+
Object,
|
|
19
|
+
Array
|
|
20
|
+
] },
|
|
21
|
+
placeholder: {},
|
|
22
|
+
rows: { default: 4 },
|
|
23
|
+
maxlength: {},
|
|
24
|
+
disabled: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: !1
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
emits: ["update:modelValue"],
|
|
30
|
+
setup(n, { emit: d }) {
|
|
31
|
+
let f = n, p = l(f, "modelValue", d, { passive: !0 });
|
|
32
|
+
return (n, l) => c((a(), t("textarea", {
|
|
33
|
+
"onUpdate:modelValue": l[0] ||= (e) => r(p) ? p.value = e : null,
|
|
34
|
+
rows: f.rows,
|
|
35
|
+
placeholder: f.placeholder,
|
|
36
|
+
maxlength: f.maxlength,
|
|
37
|
+
disabled: f.disabled,
|
|
38
|
+
class: i(o(e)("px-3 py-2 ring-offset-primary flex w-full resize-none rounded-lg border border-border-primary bg-primary text-sm text-primary shadow-xs transition-colors placeholder:text-placeholder focus-visible:border-border-brand focus-visible:ring-2 focus-visible:ring-brand-500/20 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50", f.class))
|
|
39
|
+
}, null, 10, u)), [[s, o(p)]]);
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
//#endregion
|
|
43
|
+
export { d as Textarea };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { TooltipRootProps } 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<TooltipRootProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
+
"update:open": (value: boolean) => any;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<TooltipRootProps> & Readonly<{
|
|
9
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, 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,26 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
import { TooltipContentProps } from 'reka-ui';
|
|
3
|
+
type __VLS_Props = TooltipContentProps & {
|
|
4
|
+
class?: HTMLAttributes["class"];
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_14: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_14) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
+
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
12
|
+
pointerDownOutside: (event: Event) => any;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
15
|
+
onPointerDownOutside?: ((event: Event) => any) | undefined;
|
|
16
|
+
}>, {
|
|
17
|
+
sideOffset: number;
|
|
18
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
|
+
declare const _default: typeof __VLS_export;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { TooltipProviderProps } 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<TooltipProviderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TooltipProviderProps> & 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,18 @@
|
|
|
1
|
+
import { TooltipRootProps } 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<TooltipRootProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
+
"update:open": (value: boolean) => any;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<TooltipRootProps> & Readonly<{
|
|
9
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, 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 { TooltipTriggerProps } 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<TooltipTriggerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TooltipTriggerProps> & 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
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,90 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
"name": "@matta-trade/ui",
|
|
3
|
+
"version": "0.2.2",
|
|
4
|
+
"description": "Matta design system - Vue 3 + shadcn-vue primitives, design tokens and house style. Consumed by the Matta admin apps.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "UNLICENSED",
|
|
7
|
+
"main": "./dist/index.js",
|
|
8
|
+
"module": "./dist/index.js",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"files": [
|
|
11
|
+
"dist",
|
|
12
|
+
"src",
|
|
13
|
+
"styles",
|
|
14
|
+
"DESIGN.md",
|
|
15
|
+
"README.md"
|
|
16
|
+
],
|
|
17
|
+
"publishConfig": {
|
|
18
|
+
"access": "public"
|
|
19
|
+
},
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "https://github.com/Matta-Trade/Matta.Trade.UI.git"
|
|
23
|
+
},
|
|
24
|
+
"exports": {
|
|
25
|
+
".": {
|
|
26
|
+
"types": "./dist/index.d.ts",
|
|
27
|
+
"import": "./dist/index.js"
|
|
28
|
+
},
|
|
29
|
+
"./styles/kit.css": "./styles/kit.css",
|
|
30
|
+
"./styles/theme.css": "./styles/theme.css",
|
|
31
|
+
"./styles/typography.css": "./styles/typography.css",
|
|
32
|
+
"./*": {
|
|
33
|
+
"types": "./dist/*/index.d.ts",
|
|
34
|
+
"import": "./dist/*/index.js"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"peerDependencies": {
|
|
38
|
+
"reka-ui": "^2.10.5",
|
|
39
|
+
"tailwindcss": "^4.2.2",
|
|
40
|
+
"vue": "^3.5.43",
|
|
41
|
+
"vue-sonner": "^2.0.9"
|
|
42
|
+
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"@tailwindcss/typography": "^0.5.20",
|
|
45
|
+
"@unovis/ts": "^1.7.0",
|
|
46
|
+
"@unovis/vue": "^1.7.0",
|
|
47
|
+
"@vueuse/core": "^15.0.0",
|
|
48
|
+
"class-variance-authority": "^0.7.1",
|
|
49
|
+
"clsx": "^2.1.1",
|
|
50
|
+
"lucide-vue-next": "^1.0.0",
|
|
51
|
+
"tailwind-merge": "^3.7.0",
|
|
52
|
+
"tailwindcss-animate": "^1.0.7",
|
|
53
|
+
"vaul-vue": "^0.4.1"
|
|
54
|
+
},
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"@tailwindcss/vite": "^4.2.2",
|
|
57
|
+
"@trivago/prettier-plugin-sort-imports": "^6.0.2",
|
|
58
|
+
"@vitejs/plugin-vue": "^6.0.9",
|
|
59
|
+
"prettier": "^3.8.1",
|
|
60
|
+
"prettier-plugin-tailwindcss": "^0.7.2",
|
|
61
|
+
"typescript": "^5.9.3",
|
|
62
|
+
"vite": "^8.0.2",
|
|
63
|
+
"vite-plugin-dts": "^5.1.2",
|
|
64
|
+
"vue-tsc": "^3.1.1"
|
|
65
|
+
},
|
|
66
|
+
"scripts": {
|
|
67
|
+
"dev": "vite",
|
|
68
|
+
"build": "vite build --config vite.config.lib.ts",
|
|
69
|
+
"prepublishOnly": "npm run check && npm run build",
|
|
70
|
+
"check": "vue-tsc --noEmit -p tsconfig.json",
|
|
71
|
+
"format": "prettier --write \"src/**/*.{ts,vue}\" \"styles/*.css\" \"preview/**/*.{ts,vue}\" \"*.md\"",
|
|
72
|
+
"release:patch": "npm version patch && git push origin main --follow-tags",
|
|
73
|
+
"release:minor": "npm version minor && git push origin main --follow-tags",
|
|
74
|
+
"release:major": "npm version major && git push origin main --follow-tags"
|
|
75
|
+
},
|
|
76
|
+
"peerDependenciesMeta": {
|
|
77
|
+
"tailwindcss": {
|
|
78
|
+
"optional": false
|
|
79
|
+
},
|
|
80
|
+
"vue": {
|
|
81
|
+
"optional": false
|
|
82
|
+
},
|
|
83
|
+
"reka-ui": {
|
|
84
|
+
"optional": false
|
|
85
|
+
},
|
|
86
|
+
"vue-sonner": {
|
|
87
|
+
"optional": false
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { AlertVariants } from ".";
|
|
3
|
+
import { alertVariants } from ".";
|
|
4
|
+
import type { HTMLAttributes } from "vue";
|
|
5
|
+
import { cn } from "../lib/utils";
|
|
6
|
+
|
|
7
|
+
const props = defineProps<{
|
|
8
|
+
class?: HTMLAttributes["class"];
|
|
9
|
+
variant?: AlertVariants["variant"];
|
|
10
|
+
}>();
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<template>
|
|
14
|
+
<div :class="cn(alertVariants({ variant }), props.class)" role="alert">
|
|
15
|
+
<slot />
|
|
16
|
+
</div>
|
|
17
|
+
</template>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from "vue";
|
|
3
|
+
import { cn } from "../lib/utils";
|
|
4
|
+
|
|
5
|
+
const props = defineProps<{
|
|
6
|
+
class?: HTMLAttributes["class"];
|
|
7
|
+
}>();
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<div :class="cn('[&_p]:leading-relaxed text-sm', props.class)">
|
|
12
|
+
<slot />
|
|
13
|
+
</div>
|
|
14
|
+
</template>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from "vue";
|
|
3
|
+
import { cn } from "../lib/utils";
|
|
4
|
+
|
|
5
|
+
const props = defineProps<{
|
|
6
|
+
class?: HTMLAttributes["class"];
|
|
7
|
+
}>();
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<h5 :class="cn('mb-1 font-medium tracking-tight leading-none', props.class)">
|
|
12
|
+
<slot />
|
|
13
|
+
</h5>
|
|
14
|
+
</template>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { VariantProps } from "class-variance-authority";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
|
|
4
|
+
export { default as Alert } from "./Alert.vue";
|
|
5
|
+
export { default as AlertDescription } from "./AlertDescription.vue";
|
|
6
|
+
export { default as AlertTitle } from "./AlertTitle.vue";
|
|
7
|
+
|
|
8
|
+
export const alertVariants = cva(
|
|
9
|
+
"p-4 [&>svg~*]:pl-7 [&>svg]:left-4 [&>svg]:top-4 [&>svg]:size-4 relative w-full rounded-xl border text-sm [&>svg]:absolute [&>svg+div]:translate-y-[-2px]",
|
|
10
|
+
{
|
|
11
|
+
variants: {
|
|
12
|
+
variant: {
|
|
13
|
+
default: "border-border-secondary bg-primary text-primary [&>svg]:text-primary",
|
|
14
|
+
destructive:
|
|
15
|
+
"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 [&>svg]:text-utility-red-600 dark:[&>svg]:text-utility-red-400",
|
|
16
|
+
success:
|
|
17
|
+
"border-utility-success-200 bg-utility-success-50 text-utility-success-700 dark:border-utility-success-800 dark:bg-utility-success-950 dark:text-utility-success-300 [&>svg]:text-utility-success-600 dark:[&>svg]:text-utility-success-400",
|
|
18
|
+
warning:
|
|
19
|
+
"border-utility-warning-200 bg-utility-warning-50 text-utility-warning-700 dark:border-utility-warning-800 dark:bg-utility-warning-950 dark:text-utility-warning-300 [&>svg]:text-utility-warning-600 dark:[&>svg]:text-utility-warning-400",
|
|
20
|
+
info: "dark:bg-utility-brand-950 border-utility-brand-200 bg-utility-brand-50 text-utility-brand-700 dark:border-utility-brand-800 dark:text-utility-brand-300 [&>svg]:text-utility-brand-600 dark:[&>svg]:text-utility-brand-400",
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
defaultVariants: {
|
|
24
|
+
variant: "default",
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
export type AlertVariants = VariantProps<typeof alertVariants>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { AlertDialogEmits, AlertDialogProps } from "reka-ui";
|
|
3
|
+
import { AlertDialogRoot, useForwardPropsEmits } from "reka-ui";
|
|
4
|
+
|
|
5
|
+
const props = defineProps<AlertDialogProps>();
|
|
6
|
+
const emits = defineEmits<AlertDialogEmits>();
|
|
7
|
+
|
|
8
|
+
const forwarded = useForwardPropsEmits(props, emits);
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<template>
|
|
12
|
+
<AlertDialogRoot v-bind="forwarded">
|
|
13
|
+
<slot />
|
|
14
|
+
</AlertDialogRoot>
|
|
15
|
+
</template>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from "vue";
|
|
3
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
4
|
+
import type { AlertDialogActionProps } from "reka-ui";
|
|
5
|
+
import { AlertDialogAction } from "reka-ui";
|
|
6
|
+
import { buttonVariants } from "../button";
|
|
7
|
+
import { cn } from "../lib/utils";
|
|
8
|
+
|
|
9
|
+
const props = defineProps<AlertDialogActionProps & { class?: HTMLAttributes["class"] }>();
|
|
10
|
+
|
|
11
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<template>
|
|
15
|
+
<AlertDialogAction v-bind="delegatedProps" :class="cn(buttonVariants(), props.class)">
|
|
16
|
+
<slot />
|
|
17
|
+
</AlertDialogAction>
|
|
18
|
+
</template>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from "vue";
|
|
3
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
4
|
+
import type { AlertDialogCancelProps } from "reka-ui";
|
|
5
|
+
import { AlertDialogCancel } from "reka-ui";
|
|
6
|
+
import { buttonVariants } from "../button";
|
|
7
|
+
import { cn } from "../lib/utils";
|
|
8
|
+
|
|
9
|
+
const props = defineProps<AlertDialogCancelProps & { class?: HTMLAttributes["class"] }>();
|
|
10
|
+
|
|
11
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
12
|
+
</script>
|
|
13
|
+
|
|
14
|
+
<template>
|
|
15
|
+
<AlertDialogCancel v-bind="delegatedProps" :class="cn(buttonVariants({ variant: 'outline' }), 'mt-2 sm:mt-0', props.class)">
|
|
16
|
+
<slot />
|
|
17
|
+
</AlertDialogCancel>
|
|
18
|
+
</template>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from "vue";
|
|
3
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
4
|
+
import type { AlertDialogContentEmits, AlertDialogContentProps } from "reka-ui";
|
|
5
|
+
import { AlertDialogContent, AlertDialogOverlay, AlertDialogPortal, useForwardPropsEmits } from "reka-ui";
|
|
6
|
+
import { cn } from "../lib/utils";
|
|
7
|
+
|
|
8
|
+
const props = defineProps<AlertDialogContentProps & { class?: HTMLAttributes["class"] }>();
|
|
9
|
+
const emits = defineEmits<AlertDialogContentEmits>();
|
|
10
|
+
|
|
11
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
12
|
+
|
|
13
|
+
const forwarded = useForwardPropsEmits(delegatedProps, emits);
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<template>
|
|
17
|
+
<AlertDialogPortal>
|
|
18
|
+
<AlertDialogOverlay
|
|
19
|
+
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"
|
|
20
|
+
/>
|
|
21
|
+
<AlertDialogContent
|
|
22
|
+
v-bind="forwarded"
|
|
23
|
+
:class="
|
|
24
|
+
cn(
|
|
25
|
+
'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',
|
|
26
|
+
props.class,
|
|
27
|
+
)
|
|
28
|
+
"
|
|
29
|
+
>
|
|
30
|
+
<slot />
|
|
31
|
+
</AlertDialogContent>
|
|
32
|
+
</AlertDialogPortal>
|
|
33
|
+
</template>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from "vue";
|
|
3
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
4
|
+
import type { AlertDialogDescriptionProps } from "reka-ui";
|
|
5
|
+
import { AlertDialogDescription } from "reka-ui";
|
|
6
|
+
import { cn } from "../lib/utils";
|
|
7
|
+
|
|
8
|
+
const props = defineProps<AlertDialogDescriptionProps & { class?: HTMLAttributes["class"] }>();
|
|
9
|
+
|
|
10
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<template>
|
|
14
|
+
<AlertDialogDescription v-bind="delegatedProps" :class="cn('text-sm text-tertiary', props.class)">
|
|
15
|
+
<slot />
|
|
16
|
+
</AlertDialogDescription>
|
|
17
|
+
</template>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from "vue";
|
|
3
|
+
import { cn } from "../lib/utils";
|
|
4
|
+
|
|
5
|
+
const props = defineProps<{
|
|
6
|
+
class?: HTMLAttributes["class"];
|
|
7
|
+
}>();
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<div :class="cn('sm:flex-row sm:justify-end sm:gap-x-2 flex flex-col-reverse', props.class)">
|
|
12
|
+
<slot />
|
|
13
|
+
</div>
|
|
14
|
+
</template>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from "vue";
|
|
3
|
+
import { cn } from "../lib/utils";
|
|
4
|
+
|
|
5
|
+
const props = defineProps<{
|
|
6
|
+
class?: HTMLAttributes["class"];
|
|
7
|
+
}>();
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<div :class="cn('gap-y-2 sm:text-left flex flex-col text-center', props.class)">
|
|
12
|
+
<slot />
|
|
13
|
+
</div>
|
|
14
|
+
</template>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { HTMLAttributes } from "vue";
|
|
3
|
+
import { reactiveOmit } from "@vueuse/core";
|
|
4
|
+
import type { AlertDialogTitleProps } from "reka-ui";
|
|
5
|
+
import { AlertDialogTitle } from "reka-ui";
|
|
6
|
+
import { cn } from "../lib/utils";
|
|
7
|
+
|
|
8
|
+
const props = defineProps<AlertDialogTitleProps & { class?: HTMLAttributes["class"] }>();
|
|
9
|
+
|
|
10
|
+
const delegatedProps = reactiveOmit(props, "class");
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<template>
|
|
14
|
+
<AlertDialogTitle v-bind="delegatedProps" :class="cn('font-semibold text-lg', props.class)">
|
|
15
|
+
<slot />
|
|
16
|
+
</AlertDialogTitle>
|
|
17
|
+
</template>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import type { AlertDialogTriggerProps } from "reka-ui";
|
|
3
|
+
import { AlertDialogTrigger } from "reka-ui";
|
|
4
|
+
|
|
5
|
+
const props = defineProps<AlertDialogTriggerProps>();
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<template>
|
|
9
|
+
<AlertDialogTrigger v-bind="props">
|
|
10
|
+
<slot />
|
|
11
|
+
</AlertDialogTrigger>
|
|
12
|
+
</template>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { default as AlertDialog } from "./AlertDialog.vue";
|
|
2
|
+
export { default as AlertDialogAction } from "./AlertDialogAction.vue";
|
|
3
|
+
export { default as AlertDialogCancel } from "./AlertDialogCancel.vue";
|
|
4
|
+
export { default as AlertDialogContent } from "./AlertDialogContent.vue";
|
|
5
|
+
export { default as AlertDialogDescription } from "./AlertDialogDescription.vue";
|
|
6
|
+
export { default as AlertDialogFooter } from "./AlertDialogFooter.vue";
|
|
7
|
+
export { default as AlertDialogHeader } from "./AlertDialogHeader.vue";
|
|
8
|
+
export { default as AlertDialogTitle } from "./AlertDialogTitle.vue";
|
|
9
|
+
export { default as AlertDialogTrigger } from "./AlertDialogTrigger.vue";
|