@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.
Files changed (472) hide show
  1. package/DESIGN.md +217 -0
  2. package/README.md +91 -2
  3. package/dist/alert/Alert.vue.d.ts +19 -0
  4. package/dist/alert/AlertDescription.vue.d.ts +17 -0
  5. package/dist/alert/AlertTitle.vue.d.ts +17 -0
  6. package/dist/alert/index.d.ts +8 -0
  7. package/dist/alert/index.js +62 -0
  8. package/dist/alert-dialog/AlertDialog.vue.d.ts +18 -0
  9. package/dist/alert-dialog/AlertDialogAction.vue.d.ts +18 -0
  10. package/dist/alert-dialog/AlertDialogCancel.vue.d.ts +18 -0
  11. package/dist/alert-dialog/AlertDialogContent.vue.d.ts +32 -0
  12. package/dist/alert-dialog/AlertDialogDescription.vue.d.ts +18 -0
  13. package/dist/alert-dialog/AlertDialogFooter.vue.d.ts +17 -0
  14. package/dist/alert-dialog/AlertDialogHeader.vue.d.ts +17 -0
  15. package/dist/alert-dialog/AlertDialogTitle.vue.d.ts +18 -0
  16. package/dist/alert-dialog/AlertDialogTrigger.vue.d.ts +14 -0
  17. package/dist/alert-dialog/index.d.ts +9 -0
  18. package/dist/alert-dialog/index.js +177 -0
  19. package/dist/avatar/Avatar.vue.d.ts +27 -0
  20. package/dist/avatar/AvatarFallback.vue.d.ts +18 -0
  21. package/dist/avatar/AvatarImage.vue.d.ts +14 -0
  22. package/dist/avatar/index.d.ts +9 -0
  23. package/dist/avatar/index.js +120 -0
  24. package/dist/avatar-colors.d.ts +51 -0
  25. package/dist/badge/Badge.vue.d.ts +20 -0
  26. package/dist/badge/index.d.ts +6 -0
  27. package/dist/badge/index.js +58 -0
  28. package/dist/breadcrumb/Breadcrumb.vue.d.ts +17 -0
  29. package/dist/breadcrumb/BreadcrumbEllipsis.vue.d.ts +17 -0
  30. package/dist/breadcrumb/BreadcrumbItem.vue.d.ts +17 -0
  31. package/dist/breadcrumb/BreadcrumbLink.vue.d.ts +20 -0
  32. package/dist/breadcrumb/BreadcrumbList.vue.d.ts +17 -0
  33. package/dist/breadcrumb/BreadcrumbPage.vue.d.ts +17 -0
  34. package/dist/breadcrumb/BreadcrumbSeparator.vue.d.ts +17 -0
  35. package/dist/breadcrumb/index.d.ts +7 -0
  36. package/dist/breadcrumb/index.js +131 -0
  37. package/dist/button/Button.vue.d.ts +36 -0
  38. package/dist/button/index.d.ts +7 -0
  39. package/dist/button/index.js +2 -0
  40. package/dist/button-group/ButtonGroup.vue.d.ts +19 -0
  41. package/dist/button-group/ButtonGroupSeparator.vue.d.ts +10 -0
  42. package/dist/button-group/ButtonGroupText.vue.d.ts +22 -0
  43. package/dist/button-group/index.d.ts +8 -0
  44. package/dist/button-group/index.js +92 -0
  45. package/dist/calendar/Calendar.vue.d.ts +14 -0
  46. package/dist/calendar/CalendarCell.vue.d.ts +18 -0
  47. package/dist/calendar/CalendarCellTrigger.vue.d.ts +18 -0
  48. package/dist/calendar/CalendarGrid.vue.d.ts +18 -0
  49. package/dist/calendar/CalendarGridBody.vue.d.ts +14 -0
  50. package/dist/calendar/CalendarGridHead.vue.d.ts +14 -0
  51. package/dist/calendar/CalendarGridRow.vue.d.ts +18 -0
  52. package/dist/calendar/CalendarHeadCell.vue.d.ts +18 -0
  53. package/dist/calendar/CalendarHeader.vue.d.ts +18 -0
  54. package/dist/calendar/CalendarHeading.vue.d.ts +19 -0
  55. package/dist/calendar/CalendarNextButton.vue.d.ts +18 -0
  56. package/dist/calendar/CalendarPrevButton.vue.d.ts +18 -0
  57. package/dist/calendar/index.d.ts +12 -0
  58. package/dist/calendar/index.js +303 -0
  59. package/dist/card/Card.vue.d.ts +17 -0
  60. package/dist/card/CardContent.vue.d.ts +17 -0
  61. package/dist/card/CardDescription.vue.d.ts +17 -0
  62. package/dist/card/CardFooter.vue.d.ts +17 -0
  63. package/dist/card/CardHeader.vue.d.ts +17 -0
  64. package/dist/card/CardTitle.vue.d.ts +17 -0
  65. package/dist/card/index.d.ts +6 -0
  66. package/dist/card/index.js +2 -0
  67. package/dist/chart/ChartCrosshair.vue.d.ts +13 -0
  68. package/dist/chart/ChartLegend.vue.d.ts +15 -0
  69. package/dist/chart/ChartSingleTooltip.vue.d.ts +12 -0
  70. package/dist/chart/ChartTooltip.vue.d.ts +11 -0
  71. package/dist/chart/index.d.ts +6 -0
  72. package/dist/chart/index.js +177 -0
  73. package/dist/chart/interface.d.ts +63 -0
  74. package/dist/checkbox/Checkbox.vue.d.ts +22 -0
  75. package/dist/checkbox/index.d.ts +1 -0
  76. package/dist/checkbox/index.js +43 -0
  77. package/dist/chunks/avatar-colors-CCGh54Ve.js +37 -0
  78. package/dist/chunks/button-DcaKfSRM.js +100 -0
  79. package/dist/chunks/card-B9Fm3-hL.js +85 -0
  80. package/dist/chunks/dialog-Df5vNbNz.js +196 -0
  81. package/dist/chunks/input-BgkMak31.js +44 -0
  82. package/dist/chunks/scroll-area-COtrGbKj.js +68 -0
  83. package/dist/chunks/separator-DAL7ppX1.js +31 -0
  84. package/dist/chunks/sheet-tX6r4wAA.js +150 -0
  85. package/dist/chunks/tooltip-C80qPEs9.js +102 -0
  86. package/dist/chunks/utils-CX-Pz5p6.js +8 -0
  87. package/dist/combobox/Combobox.vue.d.ts +29 -0
  88. package/dist/combobox/ComboboxAnchor.vue.d.ts +18 -0
  89. package/dist/combobox/ComboboxEmpty.vue.d.ts +18 -0
  90. package/dist/combobox/ComboboxGroup.vue.d.ts +19 -0
  91. package/dist/combobox/ComboboxInput.vue.d.ts +22 -0
  92. package/dist/combobox/ComboboxItem.vue.d.ts +22 -0
  93. package/dist/combobox/ComboboxList.vue.d.ts +32 -0
  94. package/dist/combobox/ComboboxSeparator.vue.d.ts +18 -0
  95. package/dist/combobox/ComboboxTrigger.vue.d.ts +18 -0
  96. package/dist/combobox/index.d.ts +10 -0
  97. package/dist/combobox/index.js +262 -0
  98. package/dist/command/Command.vue.d.ts +36 -0
  99. package/dist/command/CommandDialog.vue.d.ts +18 -0
  100. package/dist/command/CommandEmpty.vue.d.ts +18 -0
  101. package/dist/command/CommandGroup.vue.d.ts +19 -0
  102. package/dist/command/CommandInput.vue.d.ts +8 -0
  103. package/dist/command/CommandItem.vue.d.ts +22 -0
  104. package/dist/command/CommandList.vue.d.ts +18 -0
  105. package/dist/command/CommandSeparator.vue.d.ts +18 -0
  106. package/dist/command/CommandShortcut.vue.d.ts +17 -0
  107. package/dist/command/index.d.ts +90 -0
  108. package/dist/command/index.js +297 -0
  109. package/dist/dialog/Dialog.vue.d.ts +18 -0
  110. package/dist/dialog/DialogClose.vue.d.ts +14 -0
  111. package/dist/dialog/DialogContent.vue.d.ts +32 -0
  112. package/dist/dialog/DialogDescription.vue.d.ts +18 -0
  113. package/dist/dialog/DialogFooter.vue.d.ts +17 -0
  114. package/dist/dialog/DialogHeader.vue.d.ts +17 -0
  115. package/dist/dialog/DialogScrollContent.vue.d.ts +32 -0
  116. package/dist/dialog/DialogTitle.vue.d.ts +18 -0
  117. package/dist/dialog/DialogTrigger.vue.d.ts +14 -0
  118. package/dist/dialog/index.d.ts +9 -0
  119. package/dist/dialog/index.js +2 -0
  120. package/dist/drawer/Drawer.vue.d.ts +30 -0
  121. package/dist/drawer/DrawerContent.vue.d.ts +32 -0
  122. package/dist/drawer/DrawerDescription.vue.d.ts +18 -0
  123. package/dist/drawer/DrawerFooter.vue.d.ts +17 -0
  124. package/dist/drawer/DrawerHeader.vue.d.ts +17 -0
  125. package/dist/drawer/DrawerOverlay.vue.d.ts +8 -0
  126. package/dist/drawer/DrawerTitle.vue.d.ts +18 -0
  127. package/dist/drawer/index.d.ts +8 -0
  128. package/dist/drawer/index.js +166 -0
  129. package/dist/dropdown-menu/DropdownMenu.vue.d.ts +18 -0
  130. package/dist/dropdown-menu/DropdownMenuContent.vue.d.ts +32 -0
  131. package/dist/dropdown-menu/DropdownMenuItem.vue.d.ts +22 -0
  132. package/dist/dropdown-menu/DropdownMenuLabel.vue.d.ts +18 -0
  133. package/dist/dropdown-menu/DropdownMenuSeparator.vue.d.ts +8 -0
  134. package/dist/dropdown-menu/DropdownMenuTrigger.vue.d.ts +14 -0
  135. package/dist/dropdown-menu/index.d.ts +6 -0
  136. package/dist/dropdown-menu/index.js +149 -0
  137. package/dist/index.d.ts +2 -0
  138. package/dist/index.js +3 -0
  139. package/dist/input/Input.vue.d.ts +19 -0
  140. package/dist/input/index.d.ts +1 -0
  141. package/dist/input/index.js +2 -0
  142. package/dist/label/Label.vue.d.ts +18 -0
  143. package/dist/label/index.d.ts +1 -0
  144. package/dist/label/index.js +29 -0
  145. package/dist/lib/utils.d.ts +2 -0
  146. package/dist/popover/Popover.vue.d.ts +18 -0
  147. package/dist/popover/PopoverContent.vue.d.ts +35 -0
  148. package/dist/popover/PopoverTrigger.vue.d.ts +14 -0
  149. package/dist/popover/index.d.ts +3 -0
  150. package/dist/popover/index.js +96 -0
  151. package/dist/range-calendar/RangeCalendar.vue.d.ts +18 -0
  152. package/dist/range-calendar/RangeCalendarCell.vue.d.ts +18 -0
  153. package/dist/range-calendar/RangeCalendarCellTrigger.vue.d.ts +18 -0
  154. package/dist/range-calendar/RangeCalendarGrid.vue.d.ts +18 -0
  155. package/dist/range-calendar/RangeCalendarGridBody.vue.d.ts +14 -0
  156. package/dist/range-calendar/RangeCalendarGridHead.vue.d.ts +14 -0
  157. package/dist/range-calendar/RangeCalendarGridRow.vue.d.ts +18 -0
  158. package/dist/range-calendar/RangeCalendarHeadCell.vue.d.ts +18 -0
  159. package/dist/range-calendar/RangeCalendarHeader.vue.d.ts +18 -0
  160. package/dist/range-calendar/RangeCalendarHeading.vue.d.ts +19 -0
  161. package/dist/range-calendar/RangeCalendarNextButton.vue.d.ts +18 -0
  162. package/dist/range-calendar/RangeCalendarPrevButton.vue.d.ts +18 -0
  163. package/dist/range-calendar/index.d.ts +12 -0
  164. package/dist/range-calendar/index.js +311 -0
  165. package/dist/scroll-area/ScrollArea.vue.d.ts +19 -0
  166. package/dist/scroll-area/ScrollBar.vue.d.ts +10 -0
  167. package/dist/scroll-area/index.d.ts +2 -0
  168. package/dist/scroll-area/index.js +2 -0
  169. package/dist/select/Select.vue.d.ts +21 -0
  170. package/dist/select/SelectContent.vue.d.ts +28 -0
  171. package/dist/select/SelectGroup.vue.d.ts +18 -0
  172. package/dist/select/SelectItem.vue.d.ts +18 -0
  173. package/dist/select/SelectItemText.vue.d.ts +14 -0
  174. package/dist/select/SelectLabel.vue.d.ts +18 -0
  175. package/dist/select/SelectScrollDownButton.vue.d.ts +18 -0
  176. package/dist/select/SelectScrollUpButton.vue.d.ts +18 -0
  177. package/dist/select/SelectSeparator.vue.d.ts +8 -0
  178. package/dist/select/SelectTrigger.vue.d.ts +18 -0
  179. package/dist/select/SelectValue.vue.d.ts +14 -0
  180. package/dist/select/index.d.ts +11 -0
  181. package/dist/select/index.js +276 -0
  182. package/dist/separator/Separator.vue.d.ts +11 -0
  183. package/dist/separator/index.d.ts +1 -0
  184. package/dist/separator/index.js +2 -0
  185. package/dist/sheet/Sheet.vue.d.ts +18 -0
  186. package/dist/sheet/SheetClose.vue.d.ts +14 -0
  187. package/dist/sheet/SheetContent.vue.d.ts +39 -0
  188. package/dist/sheet/SheetDescription.vue.d.ts +18 -0
  189. package/dist/sheet/SheetHeader.vue.d.ts +17 -0
  190. package/dist/sheet/SheetTitle.vue.d.ts +18 -0
  191. package/dist/sheet/SheetTrigger.vue.d.ts +14 -0
  192. package/dist/sheet/index.d.ts +7 -0
  193. package/dist/sheet/index.js +2 -0
  194. package/dist/sidebar/Sidebar.vue.d.ts +28 -0
  195. package/dist/sidebar/SidebarContent.vue.d.ts +17 -0
  196. package/dist/sidebar/SidebarFooter.vue.d.ts +17 -0
  197. package/dist/sidebar/SidebarGroup.vue.d.ts +17 -0
  198. package/dist/sidebar/SidebarGroupAction.vue.d.ts +20 -0
  199. package/dist/sidebar/SidebarGroupContent.vue.d.ts +17 -0
  200. package/dist/sidebar/SidebarGroupLabel.vue.d.ts +20 -0
  201. package/dist/sidebar/SidebarHeader.vue.d.ts +17 -0
  202. package/dist/sidebar/SidebarInput.vue.d.ts +17 -0
  203. package/dist/sidebar/SidebarInset.vue.d.ts +17 -0
  204. package/dist/sidebar/SidebarMenu.vue.d.ts +17 -0
  205. package/dist/sidebar/SidebarMenuAction.vue.d.ts +21 -0
  206. package/dist/sidebar/SidebarMenuBadge.vue.d.ts +17 -0
  207. package/dist/sidebar/SidebarMenuButton.vue.d.ts +29 -0
  208. package/dist/sidebar/SidebarMenuItem.vue.d.ts +17 -0
  209. package/dist/sidebar/SidebarMenuSub.vue.d.ts +17 -0
  210. package/dist/sidebar/SidebarMenuSubButton.vue.d.ts +23 -0
  211. package/dist/sidebar/SidebarMenuSubItem.vue.d.ts +17 -0
  212. package/dist/sidebar/SidebarProvider.vue.d.ts +26 -0
  213. package/dist/sidebar/SidebarRail.vue.d.ts +7 -0
  214. package/dist/sidebar/SidebarSeparator.vue.d.ts +7 -0
  215. package/dist/sidebar/SidebarTrigger.vue.d.ts +7 -0
  216. package/dist/sidebar/index.d.ts +45 -0
  217. package/dist/sidebar/index.js +595 -0
  218. package/dist/sonner/Sonner.vue.d.ts +4 -0
  219. package/dist/sonner/index.d.ts +1 -0
  220. package/dist/sonner/index.js +59 -0
  221. package/dist/stepper/Stepper.vue.d.ts +17 -0
  222. package/dist/stepper/index.d.ts +1 -0
  223. package/dist/stepper/index.js +57 -0
  224. package/dist/switch/Switch.vue.d.ts +12 -0
  225. package/dist/switch/index.d.ts +1 -0
  226. package/dist/switch/index.js +46 -0
  227. package/dist/table/Table.vue.d.ts +17 -0
  228. package/dist/table/TableBody.vue.d.ts +17 -0
  229. package/dist/table/TableCell.vue.d.ts +17 -0
  230. package/dist/table/TableHead.vue.d.ts +17 -0
  231. package/dist/table/TableHeader.vue.d.ts +17 -0
  232. package/dist/table/TableRow.vue.d.ts +17 -0
  233. package/dist/table/index.d.ts +6 -0
  234. package/dist/table/index.js +84 -0
  235. package/dist/tabs/Tabs.vue.d.ts +19 -0
  236. package/dist/tabs/TabsContent.vue.d.ts +18 -0
  237. package/dist/tabs/TabsList.vue.d.ts +18 -0
  238. package/dist/tabs/TabsTrigger.vue.d.ts +18 -0
  239. package/dist/tabs/index.d.ts +4 -0
  240. package/dist/tabs/index.js +93 -0
  241. package/dist/tags-input/TagsInput.vue.d.ts +28 -0
  242. package/dist/tags-input/TagsInputInput.vue.d.ts +8 -0
  243. package/dist/tags-input/TagsInputItem.vue.d.ts +18 -0
  244. package/dist/tags-input/TagsInputItemDelete.vue.d.ts +18 -0
  245. package/dist/tags-input/TagsInputItemText.vue.d.ts +8 -0
  246. package/dist/tags-input/index.d.ts +5 -0
  247. package/dist/tags-input/index.js +130 -0
  248. package/dist/textarea/Textarea.vue.d.ts +19 -0
  249. package/dist/textarea/index.d.ts +1 -0
  250. package/dist/textarea/index.js +43 -0
  251. package/dist/tooltip/Tooltip.vue.d.ts +18 -0
  252. package/dist/tooltip/TooltipContent.vue.d.ts +26 -0
  253. package/dist/tooltip/TooltipProvider.vue.d.ts +14 -0
  254. package/dist/tooltip/TooltipRoot.vue.d.ts +18 -0
  255. package/dist/tooltip/TooltipTrigger.vue.d.ts +14 -0
  256. package/dist/tooltip/index.d.ts +4 -0
  257. package/dist/tooltip/index.js +2 -0
  258. package/package.json +89 -5
  259. package/src/alert/Alert.vue +17 -0
  260. package/src/alert/AlertDescription.vue +14 -0
  261. package/src/alert/AlertTitle.vue +14 -0
  262. package/src/alert/index.ts +29 -0
  263. package/src/alert-dialog/AlertDialog.vue +15 -0
  264. package/src/alert-dialog/AlertDialogAction.vue +18 -0
  265. package/src/alert-dialog/AlertDialogCancel.vue +18 -0
  266. package/src/alert-dialog/AlertDialogContent.vue +33 -0
  267. package/src/alert-dialog/AlertDialogDescription.vue +17 -0
  268. package/src/alert-dialog/AlertDialogFooter.vue +14 -0
  269. package/src/alert-dialog/AlertDialogHeader.vue +14 -0
  270. package/src/alert-dialog/AlertDialogTitle.vue +17 -0
  271. package/src/alert-dialog/AlertDialogTrigger.vue +12 -0
  272. package/src/alert-dialog/index.ts +9 -0
  273. package/src/avatar/Avatar.vue +76 -0
  274. package/src/avatar/AvatarFallback.vue +18 -0
  275. package/src/avatar/AvatarImage.vue +12 -0
  276. package/src/avatar/index.ts +30 -0
  277. package/src/avatar-colors.ts +24 -0
  278. package/src/badge/Badge.vue +44 -0
  279. package/src/badge/index.ts +33 -0
  280. package/src/breadcrumb/Breadcrumb.vue +13 -0
  281. package/src/breadcrumb/BreadcrumbEllipsis.vue +18 -0
  282. package/src/breadcrumb/BreadcrumbItem.vue +14 -0
  283. package/src/breadcrumb/BreadcrumbLink.vue +16 -0
  284. package/src/breadcrumb/BreadcrumbList.vue +14 -0
  285. package/src/breadcrumb/BreadcrumbPage.vue +14 -0
  286. package/src/breadcrumb/BreadcrumbSeparator.vue +17 -0
  287. package/src/breadcrumb/index.ts +7 -0
  288. package/src/button/Button.vue +64 -0
  289. package/src/button/index.ts +40 -0
  290. package/src/button-group/ButtonGroup.vue +22 -0
  291. package/src/button-group/ButtonGroupSeparator.vue +21 -0
  292. package/src/button-group/ButtonGroupText.vue +34 -0
  293. package/src/button-group/index.ts +23 -0
  294. package/src/calendar/Calendar.vue +57 -0
  295. package/src/calendar/CalendarCell.vue +27 -0
  296. package/src/calendar/CalendarCellTrigger.vue +38 -0
  297. package/src/calendar/CalendarGrid.vue +19 -0
  298. package/src/calendar/CalendarGridBody.vue +12 -0
  299. package/src/calendar/CalendarGridHead.vue +12 -0
  300. package/src/calendar/CalendarGridRow.vue +19 -0
  301. package/src/calendar/CalendarHeadCell.vue +19 -0
  302. package/src/calendar/CalendarHeader.vue +19 -0
  303. package/src/calendar/CalendarHeading.vue +25 -0
  304. package/src/calendar/CalendarNextButton.vue +26 -0
  305. package/src/calendar/CalendarPrevButton.vue +26 -0
  306. package/src/calendar/index.ts +12 -0
  307. package/src/card/Card.vue +14 -0
  308. package/src/card/CardContent.vue +14 -0
  309. package/src/card/CardDescription.vue +14 -0
  310. package/src/card/CardFooter.vue +14 -0
  311. package/src/card/CardHeader.vue +14 -0
  312. package/src/card/CardTitle.vue +14 -0
  313. package/src/card/index.ts +6 -0
  314. package/src/chart/ChartCrosshair.vue +47 -0
  315. package/src/chart/ChartLegend.vue +63 -0
  316. package/src/chart/ChartSingleTooltip.vue +61 -0
  317. package/src/chart/ChartTooltip.vue +35 -0
  318. package/src/chart/index.ts +18 -0
  319. package/src/chart/interface.ts +64 -0
  320. package/src/checkbox/Checkbox.vue +33 -0
  321. package/src/checkbox/index.ts +1 -0
  322. package/src/combobox/Combobox.vue +15 -0
  323. package/src/combobox/ComboboxAnchor.vue +19 -0
  324. package/src/combobox/ComboboxEmpty.vue +17 -0
  325. package/src/combobox/ComboboxGroup.vue +33 -0
  326. package/src/combobox/ComboboxInput.vue +33 -0
  327. package/src/combobox/ComboboxItem.vue +28 -0
  328. package/src/combobox/ComboboxList.vue +36 -0
  329. package/src/combobox/ComboboxSeparator.vue +17 -0
  330. package/src/combobox/ComboboxTrigger.vue +23 -0
  331. package/src/combobox/index.ts +11 -0
  332. package/src/command/Command.vue +85 -0
  333. package/src/command/CommandDialog.vue +23 -0
  334. package/src/command/CommandEmpty.vue +22 -0
  335. package/src/command/CommandGroup.vue +50 -0
  336. package/src/command/CommandInput.vue +42 -0
  337. package/src/command/CommandItem.vue +79 -0
  338. package/src/command/CommandList.vue +25 -0
  339. package/src/command/CommandSeparator.vue +17 -0
  340. package/src/command/CommandShortcut.vue +14 -0
  341. package/src/command/index.ts +25 -0
  342. package/src/dialog/Dialog.vue +15 -0
  343. package/src/dialog/DialogClose.vue +12 -0
  344. package/src/dialog/DialogContent.vue +41 -0
  345. package/src/dialog/DialogDescription.vue +19 -0
  346. package/src/dialog/DialogFooter.vue +12 -0
  347. package/src/dialog/DialogHeader.vue +14 -0
  348. package/src/dialog/DialogScrollContent.vue +49 -0
  349. package/src/dialog/DialogTitle.vue +19 -0
  350. package/src/dialog/DialogTrigger.vue +12 -0
  351. package/src/dialog/index.ts +9 -0
  352. package/src/drawer/Drawer.vue +20 -0
  353. package/src/drawer/DrawerContent.vue +31 -0
  354. package/src/drawer/DrawerDescription.vue +17 -0
  355. package/src/drawer/DrawerFooter.vue +14 -0
  356. package/src/drawer/DrawerHeader.vue +14 -0
  357. package/src/drawer/DrawerOverlay.vue +15 -0
  358. package/src/drawer/DrawerTitle.vue +17 -0
  359. package/src/drawer/index.ts +8 -0
  360. package/src/dropdown-menu/DropdownMenu.vue +26 -0
  361. package/src/dropdown-menu/DropdownMenuContent.vue +28 -0
  362. package/src/dropdown-menu/DropdownMenuItem.vue +23 -0
  363. package/src/dropdown-menu/DropdownMenuLabel.vue +13 -0
  364. package/src/dropdown-menu/DropdownMenuSeparator.vue +11 -0
  365. package/src/dropdown-menu/DropdownMenuTrigger.vue +11 -0
  366. package/src/dropdown-menu/index.ts +6 -0
  367. package/src/index.ts +2 -0
  368. package/src/input/Input.vue +43 -0
  369. package/src/input/index.ts +1 -0
  370. package/src/label/Label.vue +16 -0
  371. package/src/label/index.ts +1 -0
  372. package/src/lib/utils.ts +6 -0
  373. package/src/popover/Popover.vue +15 -0
  374. package/src/popover/PopoverContent.vue +39 -0
  375. package/src/popover/PopoverTrigger.vue +11 -0
  376. package/src/popover/index.ts +3 -0
  377. package/src/range-calendar/RangeCalendar.vue +57 -0
  378. package/src/range-calendar/RangeCalendarCell.vue +27 -0
  379. package/src/range-calendar/RangeCalendarCellTrigger.vue +40 -0
  380. package/src/range-calendar/RangeCalendarGrid.vue +19 -0
  381. package/src/range-calendar/RangeCalendarGridBody.vue +12 -0
  382. package/src/range-calendar/RangeCalendarGridHead.vue +12 -0
  383. package/src/range-calendar/RangeCalendarGridRow.vue +19 -0
  384. package/src/range-calendar/RangeCalendarHeadCell.vue +19 -0
  385. package/src/range-calendar/RangeCalendarHeader.vue +19 -0
  386. package/src/range-calendar/RangeCalendarHeading.vue +25 -0
  387. package/src/range-calendar/RangeCalendarNextButton.vue +26 -0
  388. package/src/range-calendar/RangeCalendarPrevButton.vue +26 -0
  389. package/src/range-calendar/index.ts +12 -0
  390. package/src/scroll-area/ScrollArea.vue +22 -0
  391. package/src/scroll-area/ScrollBar.vue +29 -0
  392. package/src/scroll-area/index.ts +2 -0
  393. package/src/select/Select.vue +15 -0
  394. package/src/select/SelectContent.vue +43 -0
  395. package/src/select/SelectGroup.vue +17 -0
  396. package/src/select/SelectItem.vue +36 -0
  397. package/src/select/SelectItemText.vue +12 -0
  398. package/src/select/SelectLabel.vue +14 -0
  399. package/src/select/SelectScrollDownButton.vue +22 -0
  400. package/src/select/SelectScrollUpButton.vue +22 -0
  401. package/src/select/SelectSeparator.vue +15 -0
  402. package/src/select/SelectTrigger.vue +31 -0
  403. package/src/select/SelectValue.vue +12 -0
  404. package/src/select/index.ts +11 -0
  405. package/src/separator/Separator.vue +21 -0
  406. package/src/separator/index.ts +1 -0
  407. package/src/sheet/Sheet.vue +15 -0
  408. package/src/sheet/SheetClose.vue +11 -0
  409. package/src/sheet/SheetContent.vue +54 -0
  410. package/src/sheet/SheetDescription.vue +13 -0
  411. package/src/sheet/SheetHeader.vue +14 -0
  412. package/src/sheet/SheetTitle.vue +13 -0
  413. package/src/sheet/SheetTrigger.vue +11 -0
  414. package/src/sheet/index.ts +7 -0
  415. package/src/sidebar/Sidebar.vue +101 -0
  416. package/src/sidebar/SidebarContent.vue +21 -0
  417. package/src/sidebar/SidebarFooter.vue +16 -0
  418. package/src/sidebar/SidebarGroup.vue +16 -0
  419. package/src/sidebar/SidebarGroupAction.vue +31 -0
  420. package/src/sidebar/SidebarGroupContent.vue +16 -0
  421. package/src/sidebar/SidebarGroupLabel.vue +31 -0
  422. package/src/sidebar/SidebarHeader.vue +16 -0
  423. package/src/sidebar/SidebarInput.vue +20 -0
  424. package/src/sidebar/SidebarInset.vue +25 -0
  425. package/src/sidebar/SidebarMenu.vue +16 -0
  426. package/src/sidebar/SidebarMenuAction.vue +37 -0
  427. package/src/sidebar/SidebarMenuBadge.vue +29 -0
  428. package/src/sidebar/SidebarMenuButton.vue +64 -0
  429. package/src/sidebar/SidebarMenuItem.vue +16 -0
  430. package/src/sidebar/SidebarMenuSub.vue +25 -0
  431. package/src/sidebar/SidebarMenuSubButton.vue +39 -0
  432. package/src/sidebar/SidebarMenuSubItem.vue +16 -0
  433. package/src/sidebar/SidebarProvider.vue +74 -0
  434. package/src/sidebar/SidebarRail.vue +34 -0
  435. package/src/sidebar/SidebarSeparator.vue +15 -0
  436. package/src/sidebar/SidebarTrigger.vue +28 -0
  437. package/src/sidebar/index.ts +70 -0
  438. package/src/sonner/Sonner.vue +54 -0
  439. package/src/sonner/index.ts +1 -0
  440. package/src/stepper/Stepper.vue +58 -0
  441. package/src/stepper/index.ts +1 -0
  442. package/src/switch/Switch.vue +41 -0
  443. package/src/switch/index.ts +1 -0
  444. package/src/table/Table.vue +16 -0
  445. package/src/table/TableBody.vue +14 -0
  446. package/src/table/TableCell.vue +14 -0
  447. package/src/table/TableHead.vue +14 -0
  448. package/src/table/TableHeader.vue +14 -0
  449. package/src/table/TableRow.vue +14 -0
  450. package/src/table/index.ts +6 -0
  451. package/src/tabs/Tabs.vue +15 -0
  452. package/src/tabs/TabsContent.vue +16 -0
  453. package/src/tabs/TabsList.vue +16 -0
  454. package/src/tabs/TabsTrigger.vue +21 -0
  455. package/src/tabs/index.ts +4 -0
  456. package/src/tags-input/TagsInput.vue +23 -0
  457. package/src/tags-input/TagsInputInput.vue +17 -0
  458. package/src/tags-input/TagsInputItem.vue +27 -0
  459. package/src/tags-input/TagsInputItemDelete.vue +22 -0
  460. package/src/tags-input/TagsInputItemText.vue +17 -0
  461. package/src/tags-input/index.ts +5 -0
  462. package/src/textarea/Textarea.vue +41 -0
  463. package/src/textarea/index.ts +1 -0
  464. package/src/tooltip/Tooltip.vue +15 -0
  465. package/src/tooltip/TooltipContent.vue +37 -0
  466. package/src/tooltip/TooltipProvider.vue +12 -0
  467. package/src/tooltip/TooltipRoot.vue +14 -0
  468. package/src/tooltip/TooltipTrigger.vue +12 -0
  469. package/src/tooltip/index.ts +4 -0
  470. package/styles/kit.css +100 -0
  471. package/styles/theme.css +950 -0
  472. package/styles/typography.css +430 -0
@@ -0,0 +1,303 @@
1
+ import { t as e } from "../chunks/utils-CX-Pz5p6.js";
2
+ import { t } from "../chunks/button-DcaKfSRM.js";
3
+ import { Fragment as n, createBlock as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, createVNode as s, defineComponent as c, guardReactiveProps as l, mergeProps as u, normalizeProps as d, openBlock as f, renderList as p, renderSlot as m, toDisplayString as h, unref as g, withCtx as _ } from "vue";
4
+ import { CalendarCell as v, CalendarCellTrigger as y, CalendarGrid as b, CalendarGridBody as x, CalendarGridHead as S, CalendarGridRow as C, CalendarHeadCell as w, CalendarHeader as T, CalendarHeading as E, CalendarNext as D, CalendarPrev as O, CalendarRoot as k, useForwardProps as A, useForwardPropsEmits as j } from "reka-ui";
5
+ import { reactiveOmit as M } from "@vueuse/core";
6
+ import { ChevronLeft as N, ChevronRight as P } from "lucide-vue-next";
7
+ //#region src/calendar/Calendar.vue?vue&type=script&setup=true&lang.ts
8
+ var F = { class: "gap-y-4 mt-4 sm:flex-row sm:gap-x-4 sm:gap-y-0 flex flex-col" }, I = /* @__PURE__ */ c({
9
+ __name: "Calendar",
10
+ props: {
11
+ defaultValue: {},
12
+ defaultPlaceholder: {},
13
+ placeholder: {},
14
+ pagedNavigation: { type: Boolean },
15
+ preventDeselect: { type: Boolean },
16
+ weekStartsOn: {},
17
+ weekdayFormat: {},
18
+ calendarLabel: {},
19
+ fixedWeeks: { type: Boolean },
20
+ maxValue: {},
21
+ minValue: {},
22
+ locale: {},
23
+ numberOfMonths: {},
24
+ disabled: { type: Boolean },
25
+ readonly: { type: Boolean },
26
+ initialFocus: { type: Boolean },
27
+ isDateDisabled: { type: Function },
28
+ isDateUnavailable: { type: Function },
29
+ dir: {},
30
+ nextPage: { type: Function },
31
+ prevPage: { type: Function },
32
+ modelValue: {},
33
+ multiple: { type: Boolean },
34
+ disableDaysOutsideCurrentView: { type: Boolean },
35
+ asChild: { type: Boolean },
36
+ as: {},
37
+ class: { type: [
38
+ Boolean,
39
+ null,
40
+ String,
41
+ Object,
42
+ Array
43
+ ] }
44
+ },
45
+ emits: ["update:modelValue", "update:placeholder"],
46
+ setup(t, { emit: c }) {
47
+ let l = t, d = c, m = M(l, "class"), v = j(m, d);
48
+ return (t, c) => (f(), r(g(k), u({ class: g(e)("p-3", l.class) }, g(v)), {
49
+ default: _(({ grid: e, weekDays: t }) => [s(g(W), null, {
50
+ default: _(() => [
51
+ s(g(q)),
52
+ s(g(G)),
53
+ s(g(K))
54
+ ]),
55
+ _: 1
56
+ }), a("div", F, [(f(!0), i(n, null, p(e, (e) => (f(), r(g(z), { key: e.value.toString() }, {
57
+ default: _(() => [s(g(V), null, {
58
+ default: _(() => [s(g(H), null, {
59
+ default: _(() => [(f(!0), i(n, null, p(t, (e) => (f(), r(g(U), { key: e }, {
60
+ default: _(() => [o(h(e), 1)]),
61
+ _: 2
62
+ }, 1024))), 128))]),
63
+ _: 2
64
+ }, 1024)]),
65
+ _: 2
66
+ }, 1024), s(g(B), null, {
67
+ default: _(() => [(f(!0), i(n, null, p(e.rows, (t, a) => (f(), r(g(H), {
68
+ key: `weekDate-${a}`,
69
+ class: "mt-2 w-full"
70
+ }, {
71
+ default: _(() => [(f(!0), i(n, null, p(t, (t) => (f(), r(g(L), {
72
+ key: t.toString(),
73
+ date: t
74
+ }, {
75
+ default: _(() => [s(g(R), {
76
+ day: t,
77
+ month: e.value
78
+ }, null, 8, ["day", "month"])]),
79
+ _: 2
80
+ }, 1032, ["date"]))), 128))]),
81
+ _: 2
82
+ }, 1024))), 128))]),
83
+ _: 2
84
+ }, 1024)]),
85
+ _: 2
86
+ }, 1024))), 128))])]),
87
+ _: 1
88
+ }, 16, ["class"]));
89
+ }
90
+ }), L = /* @__PURE__ */ c({
91
+ __name: "CalendarCell",
92
+ props: {
93
+ date: {},
94
+ asChild: { type: Boolean },
95
+ as: {},
96
+ class: { type: [
97
+ Boolean,
98
+ null,
99
+ String,
100
+ Object,
101
+ Array
102
+ ] }
103
+ },
104
+ setup(t) {
105
+ let n = t, i = M(n, "class"), a = A(i);
106
+ return (t, i) => (f(), r(g(v), u({ class: g(e)("h-9 w-9 p-0 [&:has([data-selected])]:bg-accent [&:has([data-selected][data-outside-view])]:bg-accent/50 relative text-center text-sm focus-within:relative focus-within:z-20 [&:has([data-selected])]:rounded-md", n.class) }, g(a)), {
107
+ default: _(() => [m(t.$slots, "default")]),
108
+ _: 3
109
+ }, 16, ["class"]));
110
+ }
111
+ }), R = /* @__PURE__ */ c({
112
+ __name: "CalendarCellTrigger",
113
+ props: {
114
+ day: {},
115
+ month: {},
116
+ asChild: { type: Boolean },
117
+ as: {},
118
+ class: { type: [
119
+ Boolean,
120
+ null,
121
+ String,
122
+ Object,
123
+ Array
124
+ ] }
125
+ },
126
+ setup(n) {
127
+ let i = n, a = M(i, "class"), o = A(a);
128
+ return (n, a) => (f(), r(g(y), u({ class: g(e)(g(t)({ variant: "ghost" }), "h-9 w-9 p-0 font-normal", "[&[data-today]:not([data-selected])]:bg-accent [&[data-today]:not([data-selected])]:text-accent-foreground", "data-[selected]:text-primary-foreground data-[selected]:hover:text-primary-foreground data-[selected]:focus:text-primary-foreground data-[selected]:bg-primary data-[selected]:opacity-100 data-[selected]:hover:bg-primary data-[selected]:focus:bg-primary", "data-[disabled]:text-muted-foreground data-[disabled]:opacity-50", "data-[unavailable]:text-destructive-foreground data-[unavailable]:line-through", "data-[outside-view]:text-muted-foreground [&[data-outside-view][data-selected]]:bg-accent/50 [&[data-outside-view][data-selected]]:text-muted-foreground data-[outside-view]:opacity-50 [&[data-outside-view][data-selected]]:opacity-30", i.class) }, g(o)), {
129
+ default: _(() => [m(n.$slots, "default")]),
130
+ _: 3
131
+ }, 16, ["class"]));
132
+ }
133
+ }), z = /* @__PURE__ */ c({
134
+ __name: "CalendarGrid",
135
+ props: {
136
+ asChild: { type: Boolean },
137
+ as: {},
138
+ class: { type: [
139
+ Boolean,
140
+ null,
141
+ String,
142
+ Object,
143
+ Array
144
+ ] }
145
+ },
146
+ setup(t) {
147
+ let n = t, i = M(n, "class"), a = A(i);
148
+ return (t, i) => (f(), r(g(b), u({ class: g(e)("space-y-1 w-full border-collapse", n.class) }, g(a)), {
149
+ default: _(() => [m(t.$slots, "default")]),
150
+ _: 3
151
+ }, 16, ["class"]));
152
+ }
153
+ }), B = /* @__PURE__ */ c({
154
+ __name: "CalendarGridBody",
155
+ props: {
156
+ asChild: { type: Boolean },
157
+ as: {}
158
+ },
159
+ setup(e) {
160
+ let t = e;
161
+ return (e, n) => (f(), r(g(x), d(l(t)), {
162
+ default: _(() => [m(e.$slots, "default")]),
163
+ _: 3
164
+ }, 16));
165
+ }
166
+ }), V = /* @__PURE__ */ c({
167
+ __name: "CalendarGridHead",
168
+ props: {
169
+ asChild: { type: Boolean },
170
+ as: {}
171
+ },
172
+ setup(e) {
173
+ let t = e;
174
+ return (e, n) => (f(), r(g(S), d(l(t)), {
175
+ default: _(() => [m(e.$slots, "default")]),
176
+ _: 3
177
+ }, 16));
178
+ }
179
+ }), H = /* @__PURE__ */ c({
180
+ __name: "CalendarGridRow",
181
+ props: {
182
+ asChild: { type: Boolean },
183
+ as: {},
184
+ class: { type: [
185
+ Boolean,
186
+ null,
187
+ String,
188
+ Object,
189
+ Array
190
+ ] }
191
+ },
192
+ setup(t) {
193
+ let n = t, i = M(n, "class"), a = A(i);
194
+ return (t, i) => (f(), r(g(C), u({ class: g(e)("flex", n.class) }, g(a)), {
195
+ default: _(() => [m(t.$slots, "default")]),
196
+ _: 3
197
+ }, 16, ["class"]));
198
+ }
199
+ }), U = /* @__PURE__ */ c({
200
+ __name: "CalendarHeadCell",
201
+ props: {
202
+ asChild: { type: Boolean },
203
+ as: {},
204
+ class: { type: [
205
+ Boolean,
206
+ null,
207
+ String,
208
+ Object,
209
+ Array
210
+ ] }
211
+ },
212
+ setup(t) {
213
+ let n = t, i = M(n, "class"), a = A(i);
214
+ return (t, i) => (f(), r(g(w), u({ class: g(e)("w-9 font-normal text-muted-foreground rounded-md text-[0.8rem]", n.class) }, g(a)), {
215
+ default: _(() => [m(t.$slots, "default")]),
216
+ _: 3
217
+ }, 16, ["class"]));
218
+ }
219
+ }), W = /* @__PURE__ */ c({
220
+ __name: "CalendarHeader",
221
+ props: {
222
+ asChild: { type: Boolean },
223
+ as: {},
224
+ class: { type: [
225
+ Boolean,
226
+ null,
227
+ String,
228
+ Object,
229
+ Array
230
+ ] }
231
+ },
232
+ setup(t) {
233
+ let n = t, i = M(n, "class"), a = A(i);
234
+ return (t, i) => (f(), r(g(T), u({ class: g(e)("pt-1 relative flex w-full items-center justify-between", n.class) }, g(a)), {
235
+ default: _(() => [m(t.$slots, "default")]),
236
+ _: 3
237
+ }, 16, ["class"]));
238
+ }
239
+ }), G = /* @__PURE__ */ c({
240
+ __name: "CalendarHeading",
241
+ props: {
242
+ asChild: { type: Boolean },
243
+ as: {},
244
+ class: { type: [
245
+ Boolean,
246
+ null,
247
+ String,
248
+ Object,
249
+ Array
250
+ ] }
251
+ },
252
+ setup(t) {
253
+ let n = t, i = M(n, "class"), a = A(i);
254
+ return (t, i) => (f(), r(g(E), u({ class: g(e)("font-medium text-sm", n.class) }, g(a)), {
255
+ default: _(({ headingValue: e }) => [m(t.$slots, "default", { headingValue: e }, () => [o(h(e), 1)])]),
256
+ _: 3
257
+ }, 16, ["class"]));
258
+ }
259
+ }), K = /* @__PURE__ */ c({
260
+ __name: "CalendarNextButton",
261
+ props: {
262
+ nextPage: { type: Function },
263
+ asChild: { type: Boolean },
264
+ as: {},
265
+ class: { type: [
266
+ Boolean,
267
+ null,
268
+ String,
269
+ Object,
270
+ Array
271
+ ] }
272
+ },
273
+ setup(n) {
274
+ let i = n, a = M(i, "class"), o = A(a);
275
+ return (n, a) => (f(), r(g(D), u({ class: g(e)(g(t)({ variant: "outline" }), "h-7 w-7 p-0 bg-transparent opacity-50 hover:opacity-100", i.class) }, g(o)), {
276
+ default: _(() => [m(n.$slots, "default", {}, () => [s(g(P), { class: "h-4 w-4" })])]),
277
+ _: 3
278
+ }, 16, ["class"]));
279
+ }
280
+ }), q = /* @__PURE__ */ c({
281
+ __name: "CalendarPrevButton",
282
+ props: {
283
+ prevPage: { type: Function },
284
+ asChild: { type: Boolean },
285
+ as: {},
286
+ class: { type: [
287
+ Boolean,
288
+ null,
289
+ String,
290
+ Object,
291
+ Array
292
+ ] }
293
+ },
294
+ setup(n) {
295
+ let i = n, a = M(i, "class"), o = A(a);
296
+ return (n, a) => (f(), r(g(O), u({ class: g(e)(g(t)({ variant: "outline" }), "h-7 w-7 p-0 bg-transparent opacity-50 hover:opacity-100", i.class) }, g(o)), {
297
+ default: _(() => [m(n.$slots, "default", {}, () => [s(g(N), { class: "h-4 w-4" })])]),
298
+ _: 3
299
+ }, 16, ["class"]));
300
+ }
301
+ });
302
+ //#endregion
303
+ export { I as Calendar, L as CalendarCell, R as CalendarCellTrigger, z as CalendarGrid, B as CalendarGridBody, V as CalendarGridHead, H as CalendarGridRow, U as CalendarHeadCell, W as CalendarHeader, G as CalendarHeading, K as CalendarNextButton, q as CalendarPrevButton };
@@ -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,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,6 @@
1
+ export { default as Card } from './Card.vue';
2
+ export { default as CardContent } from './CardContent.vue';
3
+ export { default as CardDescription } from './CardDescription.vue';
4
+ export { default as CardFooter } from './CardFooter.vue';
5
+ export { default as CardHeader } from './CardHeader.vue';
6
+ export { default as CardTitle } from './CardTitle.vue';
@@ -0,0 +1,2 @@
1
+ import { a as e, i as t, n, o as r, r as i, t as a } from "../chunks/card-B9Fm3-hL.js";
2
+ export { r as Card, e as CardContent, t as CardDescription, i as CardFooter, n as CardHeader, a as CardTitle };
@@ -0,0 +1,13 @@
1
+ import { Component } from 'vue';
2
+ import { BulletLegendItemInterface } from '@unovis/ts';
3
+ type __VLS_Props = {
4
+ colors: string[];
5
+ index: string;
6
+ items: BulletLegendItemInterface[];
7
+ customTooltip?: Component;
8
+ };
9
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
10
+ colors: string[];
11
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import { BulletLegendItemInterface } from '@unovis/ts';
2
+ type __VLS_Props = {
3
+ items: BulletLegendItemInterface[];
4
+ };
5
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
+ legendItemClick: (d: BulletLegendItemInterface, i: number) => any;
7
+ "update:items": (payload: BulletLegendItemInterface[]) => any;
8
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
9
+ onLegendItemClick?: ((d: BulletLegendItemInterface, i: number) => any) | undefined;
10
+ "onUpdate:items"?: ((payload: BulletLegendItemInterface[]) => any) | undefined;
11
+ }>, {
12
+ items: BulletLegendItemInterface[];
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import { Component } from 'vue';
2
+ import { BulletLegendItemInterface } from '@unovis/ts';
3
+ type __VLS_Props = {
4
+ selector: string;
5
+ index: string;
6
+ items?: BulletLegendItemInterface[];
7
+ valueFormatter?: (tick: number, i?: number, ticks?: number[]) => string;
8
+ customTooltip?: Component;
9
+ };
10
+ declare const __VLS_export: 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>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
@@ -0,0 +1,11 @@
1
+ type __VLS_Props = {
2
+ title?: string;
3
+ data: {
4
+ name: string;
5
+ color: string;
6
+ value: any;
7
+ }[];
8
+ };
9
+ declare const __VLS_export: 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 _default: typeof __VLS_export;
11
+ export default _default;
@@ -0,0 +1,6 @@
1
+ export { default as ChartCrosshair } from './ChartCrosshair.vue';
2
+ export { default as ChartLegend } from './ChartLegend.vue';
3
+ export { default as ChartSingleTooltip } from './ChartSingleTooltip.vue';
4
+ export { default as ChartTooltip } from './ChartTooltip.vue';
5
+ export declare function defaultColors(count?: number): string[];
6
+ export * from './interface';
@@ -0,0 +1,177 @@
1
+ import { t as e } from "../chunks/button-DcaKfSRM.js";
2
+ import { a as t, n, o as r, t as i } from "../chunks/card-B9Fm3-hL.js";
3
+ import { Fragment as a, createApp as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, nextTick as m, onMounted as h, openBlock as g, ref as _, renderList as v, toDisplayString as y, unref as b, withCtx as x } from "vue";
4
+ import { BulletLegend as S, omit as C } from "@unovis/ts";
5
+ import { VisBulletLegend as w, VisCrosshair as T, VisTooltip as E } from "@unovis/vue";
6
+ //#endregion
7
+ //#region src/chart/ChartCrosshair.vue
8
+ var D = /* @__PURE__ */ p({
9
+ __name: "ChartCrosshair",
10
+ props: {
11
+ colors: { default: () => [] },
12
+ index: {},
13
+ items: {},
14
+ customTooltip: {}
15
+ },
16
+ setup(e) {
17
+ let t = e, n = /* @__PURE__ */ new WeakMap();
18
+ function r(e) {
19
+ if (n.has(e)) return n.get(e);
20
+ {
21
+ let r = document.createElement("div"), i = Object.entries(C(e, [t.index])).map(([e, n]) => ({
22
+ ...t.items.find((t) => t.name === e),
23
+ value: n
24
+ })), a = t.customTooltip ?? F;
25
+ return o(a, {
26
+ title: e[t.index].toString(),
27
+ data: i
28
+ }).mount(r), n.set(e, r.innerHTML), r.innerHTML;
29
+ }
30
+ }
31
+ function i(e, n) {
32
+ return t.colors[n] ?? "transparent";
33
+ }
34
+ return (e, t) => (g(), l(a, null, [f(b(E), {
35
+ "horizontal-shift": 20,
36
+ "vertical-shift": 20
37
+ }), f(b(T), {
38
+ template: r,
39
+ color: i
40
+ })], 64));
41
+ }
42
+ }), O = /* @__PURE__ */ p({
43
+ __name: "ChartLegend",
44
+ props: { items: { default: () => [] } },
45
+ emits: ["legendItemClick", "update:items"],
46
+ setup(t, { emit: n }) {
47
+ let r = t, i = n, a = _();
48
+ function o() {
49
+ let t = `.${S.selectors.item}`;
50
+ m(() => {
51
+ let n = a.value?.querySelectorAll(t), r = e({
52
+ variant: "ghost",
53
+ size: "sm"
54
+ }).split(" ");
55
+ n?.forEach((e) => e.classList.add(...r, "!inline-flex", "!mr-2"));
56
+ });
57
+ }
58
+ h(() => {
59
+ o();
60
+ });
61
+ function s(e, t) {
62
+ i("legendItemClick", e, t);
63
+ let n = !r.items[t].inactive;
64
+ r.items.some((e) => e.inactive) && n ? i("update:items", r.items.map((e) => ({
65
+ ...e,
66
+ inactive: !1
67
+ }))) : i("update:items", r.items.map((t) => t.name === e.name ? {
68
+ ...e,
69
+ inactive: !1
70
+ } : {
71
+ ...t,
72
+ inactive: !0
73
+ })), o();
74
+ }
75
+ return (e, n) => (g(), l("div", {
76
+ ref_key: "elRef",
77
+ ref: a,
78
+ class: "w-max",
79
+ style: { "--vis-legend-bullet-size": "16px" }
80
+ }, [f(b(w), {
81
+ items: t.items,
82
+ "on-legend-item-click": s
83
+ }, null, 8, ["items"])], 512));
84
+ }
85
+ }), k = /* @__PURE__ */ p({
86
+ __name: "ChartSingleTooltip",
87
+ props: {
88
+ selector: {},
89
+ index: {},
90
+ items: {},
91
+ valueFormatter: { type: Function },
92
+ customTooltip: {}
93
+ },
94
+ setup(e) {
95
+ let t = e, n = /* @__PURE__ */ new WeakMap();
96
+ function r(e, r, i) {
97
+ let a = t.valueFormatter ?? ((e) => `${e}`);
98
+ if (t.index in e) {
99
+ if (n.has(e)) return n.get(e);
100
+ {
101
+ let r = document.createElement("div"), i = Object.entries(C(e, [t.index])).map(([e, n]) => ({
102
+ ...t.items?.find((t) => t.name === e),
103
+ value: a(n)
104
+ })), s = t.customTooltip ?? F;
105
+ return o(s, {
106
+ title: e[t.index],
107
+ data: i
108
+ }).mount(r), n.set(e, r.innerHTML), r.innerHTML;
109
+ }
110
+ }
111
+ {
112
+ let s = e.data;
113
+ if (n.has(s)) return n.get(s);
114
+ {
115
+ let c = getComputedStyle(i[r]), l = [{
116
+ name: s.name,
117
+ value: a(s[t.index]),
118
+ color: c.fill
119
+ }], u = document.createElement("div"), d = t.customTooltip ?? F;
120
+ return o(d, {
121
+ title: e[t.index],
122
+ data: l
123
+ }).mount(u), n.set(e, u.innerHTML), u.innerHTML;
124
+ }
125
+ }
126
+ }
127
+ return (t, n) => (g(), s(b(E), {
128
+ "horizontal-shift": 20,
129
+ "vertical-shift": 20,
130
+ triggers: { [e.selector]: r }
131
+ }, null, 8, ["triggers"]));
132
+ }
133
+ }), A = { class: "flex items-center" }, j = { class: "w-2.5 h-2.5 mr-2" }, M = {
134
+ width: "100%",
135
+ height: "100%",
136
+ viewBox: "0 0 30 30"
137
+ }, N = ["stroke", "fill"], P = { class: "font-semibold ml-4" }, F = /* @__PURE__ */ p({
138
+ __name: "ChartTooltip",
139
+ props: {
140
+ title: {},
141
+ data: {}
142
+ },
143
+ setup(e) {
144
+ return (o, p) => (g(), s(b(r), { class: "text-sm" }, {
145
+ default: x(() => [e.title ? (g(), s(b(n), {
146
+ key: 0,
147
+ class: "p-3 border-b"
148
+ }, {
149
+ default: x(() => [f(b(i), null, {
150
+ default: x(() => [d(y(e.title), 1)]),
151
+ _: 1
152
+ })]),
153
+ _: 1
154
+ })) : c("", !0), f(b(t), { class: "p-3 gap-1 flex min-w-[180px] flex-col" }, {
155
+ default: x(() => [(g(!0), l(a, null, v(e.data, (e, t) => (g(), l("div", {
156
+ key: t,
157
+ class: "flex justify-between"
158
+ }, [u("div", A, [u("span", j, [(g(), l("svg", M, [u("path", {
159
+ d: " M 15 15 m -14, 0 a 14,14 0 1,1 28,0 a 14,14 0 1,1 -28,0",
160
+ stroke: e.color,
161
+ fill: e.color,
162
+ "stroke-width": "1"
163
+ }, null, 8, N)]))]), u("span", null, y(e.name), 1)]), u("span", P, y(e.value), 1)]))), 128))]),
164
+ _: 1
165
+ })]),
166
+ _: 1
167
+ }));
168
+ }
169
+ });
170
+ //#endregion
171
+ //#region src/chart/index.ts
172
+ function I(e = 3) {
173
+ let t = Math.floor(e / 2), n = t + e % 2, r = t;
174
+ return [...Array.from(Array(n).keys()).map((e) => `hsl(var(--vis-primary-color) / ${1 - 1 / n * e})`), ...Array.from(Array(r).keys()).map((e) => `hsl(var(--vis-secondary-color) / ${1 - 1 / r * e})`)];
175
+ }
176
+ //#endregion
177
+ export { D as ChartCrosshair, O as ChartLegend, k as ChartSingleTooltip, F as ChartTooltip, I as defaultColors };