openadmin-dev 0.7.8__tar.gz → 0.7.11__tar.gz

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 (277) hide show
  1. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/.github/actions/format/action.yml +3 -0
  2. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/.github/actions/lint/action.yml +3 -0
  3. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/Makefile +6 -0
  4. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/PKG-INFO +2 -1
  5. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/REUSE.toml +1 -0
  6. openadmin_dev-0.7.11/client/.claude/skills/shadcn-vue/SKILL.md +231 -0
  7. openadmin_dev-0.7.11/client/.claude/skills/shadcn-vue/cli.md +225 -0
  8. openadmin_dev-0.7.11/client/.claude/skills/shadcn-vue/customization.md +205 -0
  9. openadmin_dev-0.7.11/client/.claude/skills/shadcn-vue/mcp.md +92 -0
  10. openadmin_dev-0.7.11/client/.claude/skills/shadcn-vue/rules/composition.md +197 -0
  11. openadmin_dev-0.7.11/client/.claude/skills/shadcn-vue/rules/forms.md +207 -0
  12. openadmin_dev-0.7.11/client/.claude/skills/shadcn-vue/rules/icons.md +111 -0
  13. openadmin_dev-0.7.11/client/.claude/skills/shadcn-vue/rules/styling.md +166 -0
  14. openadmin_dev-0.7.11/client/.gitignore +24 -0
  15. openadmin_dev-0.7.11/client/DESIGN.md +498 -0
  16. openadmin_dev-0.7.11/client/README.md +5 -0
  17. openadmin_dev-0.7.11/client/biome.json +70 -0
  18. openadmin_dev-0.7.11/client/bun.lock +717 -0
  19. openadmin_dev-0.7.11/client/components.json +24 -0
  20. openadmin_dev-0.7.11/client/index.html +13 -0
  21. openadmin_dev-0.7.11/client/package.json +42 -0
  22. openadmin_dev-0.7.11/client/public/favicon.svg +1 -0
  23. openadmin_dev-0.7.11/client/public/icons.svg +24 -0
  24. openadmin_dev-0.7.11/client/skills-lock.json +11 -0
  25. openadmin_dev-0.7.11/client/src/App.vue +18 -0
  26. openadmin_dev-0.7.11/client/src/components/ui/avatar/Avatar.vue +24 -0
  27. openadmin_dev-0.7.11/client/src/components/ui/avatar/AvatarFallback.vue +27 -0
  28. openadmin_dev-0.7.11/client/src/components/ui/avatar/AvatarImage.vue +18 -0
  29. openadmin_dev-0.7.11/client/src/components/ui/avatar/index.ts +7 -0
  30. openadmin_dev-0.7.11/client/src/components/ui/badge/Badge.vue +34 -0
  31. openadmin_dev-0.7.11/client/src/components/ui/badge/index.ts +27 -0
  32. openadmin_dev-0.7.11/client/src/components/ui/button/Button.vue +37 -0
  33. openadmin_dev-0.7.11/client/src/components/ui/button/index.ts +41 -0
  34. openadmin_dev-0.7.11/client/src/components/ui/card/Card.vue +28 -0
  35. openadmin_dev-0.7.11/client/src/components/ui/card/CardAction.vue +23 -0
  36. openadmin_dev-0.7.11/client/src/components/ui/card/CardContent.vue +20 -0
  37. openadmin_dev-0.7.11/client/src/components/ui/card/CardDescription.vue +20 -0
  38. openadmin_dev-0.7.11/client/src/components/ui/card/CardFooter.vue +20 -0
  39. openadmin_dev-0.7.11/client/src/components/ui/card/CardHeader.vue +23 -0
  40. openadmin_dev-0.7.11/client/src/components/ui/card/CardTitle.vue +20 -0
  41. openadmin_dev-0.7.11/client/src/components/ui/card/index.ts +11 -0
  42. openadmin_dev-0.7.11/client/src/components/ui/chart/ChartContainer.vue +65 -0
  43. openadmin_dev-0.7.11/client/src/components/ui/chart/ChartLegendContent.vue +71 -0
  44. openadmin_dev-0.7.11/client/src/components/ui/chart/ChartStyle.vue +43 -0
  45. openadmin_dev-0.7.11/client/src/components/ui/chart/ChartTooltipContent.vue +121 -0
  46. openadmin_dev-0.7.11/client/src/components/ui/chart/index.ts +33 -0
  47. openadmin_dev-0.7.11/client/src/components/ui/chart/utils.ts +48 -0
  48. openadmin_dev-0.7.11/client/src/components/ui/dialog/Dialog.vue +21 -0
  49. openadmin_dev-0.7.11/client/src/components/ui/dialog/DialogClose.vue +18 -0
  50. openadmin_dev-0.7.11/client/src/components/ui/dialog/DialogContent.vue +59 -0
  51. openadmin_dev-0.7.11/client/src/components/ui/dialog/DialogDescription.vue +29 -0
  52. openadmin_dev-0.7.11/client/src/components/ui/dialog/DialogFooter.vue +34 -0
  53. openadmin_dev-0.7.11/client/src/components/ui/dialog/DialogHeader.vue +23 -0
  54. openadmin_dev-0.7.11/client/src/components/ui/dialog/DialogOverlay.vue +27 -0
  55. openadmin_dev-0.7.11/client/src/components/ui/dialog/DialogScrollContent.vue +65 -0
  56. openadmin_dev-0.7.11/client/src/components/ui/dialog/DialogTitle.vue +29 -0
  57. openadmin_dev-0.7.11/client/src/components/ui/dialog/DialogTrigger.vue +18 -0
  58. openadmin_dev-0.7.11/client/src/components/ui/dialog/index.ts +14 -0
  59. openadmin_dev-0.7.11/client/src/components/ui/dropdown-menu/DropdownMenu.vue +21 -0
  60. openadmin_dev-0.7.11/client/src/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +41 -0
  61. openadmin_dev-0.7.11/client/src/components/ui/dropdown-menu/DropdownMenuContent.vue +41 -0
  62. openadmin_dev-0.7.11/client/src/components/ui/dropdown-menu/DropdownMenuGroup.vue +18 -0
  63. openadmin_dev-0.7.11/client/src/components/ui/dropdown-menu/DropdownMenuItem.vue +42 -0
  64. openadmin_dev-0.7.11/client/src/components/ui/dropdown-menu/DropdownMenuLabel.vue +31 -0
  65. openadmin_dev-0.7.11/client/src/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue +21 -0
  66. openadmin_dev-0.7.11/client/src/components/ui/dropdown-menu/DropdownMenuRadioItem.vue +42 -0
  67. openadmin_dev-0.7.11/client/src/components/ui/dropdown-menu/DropdownMenuSeparator.vue +29 -0
  68. openadmin_dev-0.7.11/client/src/components/ui/dropdown-menu/DropdownMenuShortcut.vue +23 -0
  69. openadmin_dev-0.7.11/client/src/components/ui/dropdown-menu/DropdownMenuSub.vue +21 -0
  70. openadmin_dev-0.7.11/client/src/components/ui/dropdown-menu/DropdownMenuSubContent.vue +30 -0
  71. openadmin_dev-0.7.11/client/src/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue +36 -0
  72. openadmin_dev-0.7.11/client/src/components/ui/dropdown-menu/DropdownMenuTrigger.vue +20 -0
  73. openadmin_dev-0.7.11/client/src/components/ui/dropdown-menu/index.ts +20 -0
  74. openadmin_dev-0.7.11/client/src/components/ui/field/Field.vue +31 -0
  75. openadmin_dev-0.7.11/client/src/components/ui/field/FieldContent.vue +26 -0
  76. openadmin_dev-0.7.11/client/src/components/ui/field/FieldDescription.vue +28 -0
  77. openadmin_dev-0.7.11/client/src/components/ui/field/FieldError.vue +56 -0
  78. openadmin_dev-0.7.11/client/src/components/ui/field/FieldGroup.vue +26 -0
  79. openadmin_dev-0.7.11/client/src/components/ui/field/FieldLabel.vue +29 -0
  80. openadmin_dev-0.7.11/client/src/components/ui/field/FieldLegend.vue +30 -0
  81. openadmin_dev-0.7.11/client/src/components/ui/field/FieldSeparator.vue +35 -0
  82. openadmin_dev-0.7.11/client/src/components/ui/field/FieldSet.vue +27 -0
  83. openadmin_dev-0.7.11/client/src/components/ui/field/FieldTitle.vue +26 -0
  84. openadmin_dev-0.7.11/client/src/components/ui/field/index.ts +43 -0
  85. openadmin_dev-0.7.11/client/src/components/ui/input/Input.vue +39 -0
  86. openadmin_dev-0.7.11/client/src/components/ui/input/index.ts +5 -0
  87. openadmin_dev-0.7.11/client/src/components/ui/label/Label.vue +32 -0
  88. openadmin_dev-0.7.11/client/src/components/ui/label/index.ts +5 -0
  89. openadmin_dev-0.7.11/client/src/components/ui/pagination/Pagination.vue +34 -0
  90. openadmin_dev-0.7.11/client/src/components/ui/pagination/PaginationContent.vue +28 -0
  91. openadmin_dev-0.7.11/client/src/components/ui/pagination/PaginationEllipsis.vue +31 -0
  92. openadmin_dev-0.7.11/client/src/components/ui/pagination/PaginationFirst.vue +44 -0
  93. openadmin_dev-0.7.11/client/src/components/ui/pagination/PaginationItem.vue +45 -0
  94. openadmin_dev-0.7.11/client/src/components/ui/pagination/PaginationLast.vue +44 -0
  95. openadmin_dev-0.7.11/client/src/components/ui/pagination/PaginationNext.vue +44 -0
  96. openadmin_dev-0.7.11/client/src/components/ui/pagination/PaginationPrevious.vue +44 -0
  97. openadmin_dev-0.7.11/client/src/components/ui/pagination/index.ts +12 -0
  98. openadmin_dev-0.7.11/client/src/components/ui/separator/Separator.vue +33 -0
  99. openadmin_dev-0.7.11/client/src/components/ui/separator/index.ts +5 -0
  100. openadmin_dev-0.7.11/client/src/components/ui/sheet/Sheet.vue +21 -0
  101. openadmin_dev-0.7.11/client/src/components/ui/sheet/SheetClose.vue +18 -0
  102. openadmin_dev-0.7.11/client/src/components/ui/sheet/SheetContent.vue +63 -0
  103. openadmin_dev-0.7.11/client/src/components/ui/sheet/SheetDescription.vue +27 -0
  104. openadmin_dev-0.7.11/client/src/components/ui/sheet/SheetFooter.vue +22 -0
  105. openadmin_dev-0.7.11/client/src/components/ui/sheet/SheetHeader.vue +18 -0
  106. openadmin_dev-0.7.11/client/src/components/ui/sheet/SheetOverlay.vue +27 -0
  107. openadmin_dev-0.7.11/client/src/components/ui/sheet/SheetTitle.vue +27 -0
  108. openadmin_dev-0.7.11/client/src/components/ui/sheet/SheetTrigger.vue +18 -0
  109. openadmin_dev-0.7.11/client/src/components/ui/sheet/index.ts +12 -0
  110. openadmin_dev-0.7.11/client/src/components/ui/sidebar/Sidebar.vue +102 -0
  111. openadmin_dev-0.7.11/client/src/components/ui/sidebar/SidebarContent.vue +24 -0
  112. openadmin_dev-0.7.11/client/src/components/ui/sidebar/SidebarFooter.vue +24 -0
  113. openadmin_dev-0.7.11/client/src/components/ui/sidebar/SidebarGroup.vue +24 -0
  114. openadmin_dev-0.7.11/client/src/components/ui/sidebar/SidebarGroupAction.vue +35 -0
  115. openadmin_dev-0.7.11/client/src/components/ui/sidebar/SidebarGroupContent.vue +24 -0
  116. openadmin_dev-0.7.11/client/src/components/ui/sidebar/SidebarGroupLabel.vue +33 -0
  117. openadmin_dev-0.7.11/client/src/components/ui/sidebar/SidebarHeader.vue +24 -0
  118. openadmin_dev-0.7.11/client/src/components/ui/sidebar/SidebarInput.vue +28 -0
  119. openadmin_dev-0.7.11/client/src/components/ui/sidebar/SidebarInset.vue +27 -0
  120. openadmin_dev-0.7.11/client/src/components/ui/sidebar/SidebarMenu.vue +24 -0
  121. openadmin_dev-0.7.11/client/src/components/ui/sidebar/SidebarMenuAction.vue +46 -0
  122. openadmin_dev-0.7.11/client/src/components/ui/sidebar/SidebarMenuBadge.vue +32 -0
  123. openadmin_dev-0.7.11/client/src/components/ui/sidebar/SidebarMenuButton.vue +55 -0
  124. openadmin_dev-0.7.11/client/src/components/ui/sidebar/SidebarMenuButtonChild.vue +42 -0
  125. openadmin_dev-0.7.11/client/src/components/ui/sidebar/SidebarMenuItem.vue +24 -0
  126. openadmin_dev-0.7.11/client/src/components/ui/sidebar/SidebarMenuSkeleton.vue +37 -0
  127. openadmin_dev-0.7.11/client/src/components/ui/sidebar/SidebarMenuSub.vue +28 -0
  128. openadmin_dev-0.7.11/client/src/components/ui/sidebar/SidebarMenuSubButton.vue +47 -0
  129. openadmin_dev-0.7.11/client/src/components/ui/sidebar/SidebarMenuSubItem.vue +24 -0
  130. openadmin_dev-0.7.11/client/src/components/ui/sidebar/SidebarProvider.vue +98 -0
  131. openadmin_dev-0.7.11/client/src/components/ui/sidebar/SidebarRail.vue +39 -0
  132. openadmin_dev-0.7.11/client/src/components/ui/sidebar/SidebarSeparator.vue +25 -0
  133. openadmin_dev-0.7.11/client/src/components/ui/sidebar/SidebarTrigger.vue +33 -0
  134. openadmin_dev-0.7.11/client/src/components/ui/sidebar/index.ts +64 -0
  135. openadmin_dev-0.7.11/client/src/components/ui/sidebar/utils.ts +23 -0
  136. openadmin_dev-0.7.11/client/src/components/ui/skeleton/Skeleton.vue +20 -0
  137. openadmin_dev-0.7.11/client/src/components/ui/skeleton/index.ts +5 -0
  138. openadmin_dev-0.7.11/client/src/components/ui/sonner/Sonner.vue +55 -0
  139. openadmin_dev-0.7.11/client/src/components/ui/sonner/index.ts +5 -0
  140. openadmin_dev-0.7.11/client/src/components/ui/table/Table.vue +22 -0
  141. openadmin_dev-0.7.11/client/src/components/ui/table/TableBody.vue +20 -0
  142. openadmin_dev-0.7.11/client/src/components/ui/table/TableCaption.vue +20 -0
  143. openadmin_dev-0.7.11/client/src/components/ui/table/TableCell.vue +28 -0
  144. openadmin_dev-0.7.11/client/src/components/ui/table/TableEmpty.vue +43 -0
  145. openadmin_dev-0.7.11/client/src/components/ui/table/TableFooter.vue +23 -0
  146. openadmin_dev-0.7.11/client/src/components/ui/table/TableHead.vue +23 -0
  147. openadmin_dev-0.7.11/client/src/components/ui/table/TableHeader.vue +20 -0
  148. openadmin_dev-0.7.11/client/src/components/ui/table/TableRow.vue +23 -0
  149. openadmin_dev-0.7.11/client/src/components/ui/table/index.ts +13 -0
  150. openadmin_dev-0.7.11/client/src/components/ui/tabs/Tabs.vue +30 -0
  151. openadmin_dev-0.7.11/client/src/components/ui/tabs/TabsContent.vue +27 -0
  152. openadmin_dev-0.7.11/client/src/components/ui/tabs/TabsList.vue +30 -0
  153. openadmin_dev-0.7.11/client/src/components/ui/tabs/TabsTrigger.vue +32 -0
  154. openadmin_dev-0.7.11/client/src/components/ui/tabs/index.ts +8 -0
  155. openadmin_dev-0.7.11/client/src/components/ui/textarea/Textarea.vue +34 -0
  156. openadmin_dev-0.7.11/client/src/components/ui/textarea/index.ts +5 -0
  157. openadmin_dev-0.7.11/client/src/components/ui/tooltip/Tooltip.vue +21 -0
  158. openadmin_dev-0.7.11/client/src/components/ui/tooltip/TooltipContent.vue +45 -0
  159. openadmin_dev-0.7.11/client/src/components/ui/tooltip/TooltipProvider.vue +20 -0
  160. openadmin_dev-0.7.11/client/src/components/ui/tooltip/TooltipTrigger.vue +18 -0
  161. openadmin_dev-0.7.11/client/src/components/ui/tooltip/index.ts +8 -0
  162. openadmin_dev-0.7.11/client/src/composables/openadmin-spec.ts +43 -0
  163. openadmin_dev-0.7.11/client/src/lib/utils.ts +11 -0
  164. openadmin_dev-0.7.11/client/src/main.ts +10 -0
  165. openadmin_dev-0.7.11/client/src/schemas/action.ts +39 -0
  166. openadmin_dev-0.7.11/client/src/schemas/area-chart.ts +24 -0
  167. openadmin_dev-0.7.11/client/src/schemas/bar-chart.ts +58 -0
  168. openadmin_dev-0.7.11/client/src/schemas/color.ts +36 -0
  169. openadmin_dev-0.7.11/client/src/schemas/component.ts +28 -0
  170. openadmin_dev-0.7.11/client/src/schemas/error.ts +11 -0
  171. openadmin_dev-0.7.11/client/src/schemas/form.ts +49 -0
  172. openadmin_dev-0.7.11/client/src/schemas/http-method.ts +11 -0
  173. openadmin_dev-0.7.11/client/src/schemas/icon.ts +2007 -0
  174. openadmin_dev-0.7.11/client/src/schemas/json-schema.ts +73 -0
  175. openadmin_dev-0.7.11/client/src/schemas/line-chart.ts +24 -0
  176. openadmin_dev-0.7.11/client/src/schemas/markdown.ts +40 -0
  177. openadmin_dev-0.7.11/client/src/schemas/page.ts +17 -0
  178. openadmin_dev-0.7.11/client/src/schemas/pie-chart.ts +59 -0
  179. openadmin_dev-0.7.11/client/src/schemas/section.ts +17 -0
  180. openadmin_dev-0.7.11/client/src/schemas/spec.ts +16 -0
  181. openadmin_dev-0.7.11/client/src/schemas/stat.ts +40 -0
  182. openadmin_dev-0.7.11/client/src/schemas/table.ts +45 -0
  183. openadmin_dev-0.7.11/client/src/style.css +162 -0
  184. openadmin_dev-0.7.11/client/tsconfig.app.json +18 -0
  185. openadmin_dev-0.7.11/client/tsconfig.json +10 -0
  186. openadmin_dev-0.7.11/client/tsconfig.node.json +23 -0
  187. openadmin_dev-0.7.11/client/vite.config.ts +14 -0
  188. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/examples/admin/analytics.py +0 -44
  189. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/examples/admin/authors.py +31 -9
  190. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/examples/admin/books.py +30 -10
  191. openadmin_dev-0.7.11/examples/admin/control_panel.py +213 -0
  192. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/examples/admin/genres.py +3 -3
  193. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/examples/admin/health.py +0 -35
  194. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/examples/admin/overview.py +8 -3
  195. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/examples/admin/publishers.py +14 -5
  196. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/examples/admin/reports.py +5 -38
  197. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/examples/admin/tags.py +20 -6
  198. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/examples/admin/weekdays.py +1 -1
  199. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/examples/main.py +5 -2
  200. openadmin_dev-0.7.11/openadmin/fastapi/admin_page.py +572 -0
  201. openadmin_dev-0.7.11/openadmin/fastapi/admin_panel.py +73 -0
  202. openadmin_dev-0.7.11/openadmin/fastapi/counter.py +19 -0
  203. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/openadmin/fastapi/deps.py +2 -2
  204. openadmin_dev-0.7.11/openadmin/fastapi/exc_handler.py +29 -0
  205. openadmin_dev-0.7.11/openadmin/fastapi/field_config.py +15 -0
  206. openadmin_dev-0.7.11/openadmin/fastapi/utils.py +102 -0
  207. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/openadmin/spec/__init__.py +15 -8
  208. openadmin_dev-0.7.11/openadmin/spec/action.py +35 -0
  209. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/openadmin/spec/area_chart.py +9 -7
  210. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/openadmin/spec/bar_chart.py +5 -6
  211. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/openadmin/spec/component.py +8 -8
  212. openadmin_dev-0.7.11/openadmin/spec/error.py +9 -0
  213. openadmin_dev-0.7.11/openadmin/spec/form.py +43 -0
  214. openadmin_dev-0.7.11/openadmin/spec/json_schema.py +49 -0
  215. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/openadmin/spec/line_chart.py +9 -7
  216. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/openadmin/spec/markdown.py +5 -6
  217. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/openadmin/spec/page.py +2 -2
  218. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/openadmin/spec/pie_chart.py +5 -6
  219. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/openadmin/spec/section.py +2 -2
  220. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/openadmin/spec/spec.py +4 -3
  221. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/openadmin/spec/stat.py +5 -6
  222. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/openadmin/spec/table.py +20 -13
  223. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/pyproject.toml +5 -3
  224. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/uv.lock +6 -2
  225. openadmin_dev-0.7.8/openadmin/fastapi/action.py +0 -21
  226. openadmin_dev-0.7.8/openadmin/fastapi/admin_page.py +0 -691
  227. openadmin_dev-0.7.8/openadmin/fastapi/admin_panel.py +0 -93
  228. openadmin_dev-0.7.8/openadmin/fastapi/area_chart.py +0 -18
  229. openadmin_dev-0.7.8/openadmin/fastapi/bar_chart.py +0 -25
  230. openadmin_dev-0.7.8/openadmin/fastapi/component.py +0 -26
  231. openadmin_dev-0.7.8/openadmin/fastapi/counters.py +0 -17
  232. openadmin_dev-0.7.8/openadmin/fastapi/form.py +0 -21
  233. openadmin_dev-0.7.8/openadmin/fastapi/line_chart.py +0 -18
  234. openadmin_dev-0.7.8/openadmin/fastapi/markdown.py +0 -20
  235. openadmin_dev-0.7.8/openadmin/fastapi/page_protocol.py +0 -12
  236. openadmin_dev-0.7.8/openadmin/fastapi/pie_chart.py +0 -26
  237. openadmin_dev-0.7.8/openadmin/fastapi/section.py +0 -19
  238. openadmin_dev-0.7.8/openadmin/fastapi/stat.py +0 -20
  239. openadmin_dev-0.7.8/openadmin/fastapi/table.py +0 -21
  240. openadmin_dev-0.7.8/openadmin/fastapi/utils.py +0 -184
  241. openadmin_dev-0.7.8/openadmin/spec/action.py +0 -27
  242. openadmin_dev-0.7.8/openadmin/spec/form.py +0 -27
  243. openadmin_dev-0.7.8/openadmin/spec/property.py +0 -16
  244. openadmin_dev-0.7.8/openadmin/spec/property_type.py +0 -18
  245. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/.github/ISSUE_TEMPLATE/bug.md +0 -0
  246. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/.github/ISSUE_TEMPLATE/chore.md +0 -0
  247. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/.github/ISSUE_TEMPLATE/feature.md +0 -0
  248. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/.github/actions/branch-name/action.yml +0 -0
  249. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/.github/actions/dependency-cves/action.yml +0 -0
  250. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/.github/actions/license/action.yml +0 -0
  251. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/.github/actions/security/action.yml +0 -0
  252. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/.github/actions/spell-check/action.yml +0 -0
  253. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/.github/actions/test/action.yml +0 -0
  254. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/.github/actions/typecheck/action.yml +0 -0
  255. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/.github/actions/unused-code/action.yml +0 -0
  256. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/.github/workflows/ci.yml +0 -0
  257. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/.github/workflows/publish.yml +0 -0
  258. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/.gitignore +0 -0
  259. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/.python-version +0 -0
  260. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/LICENSE +0 -0
  261. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/LICENSES/AGPL-3.0-or-later.txt +0 -0
  262. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/README.md +0 -0
  263. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/docs/assets/logo.png +0 -0
  264. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/examples/__init__.py +0 -0
  265. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/examples/admin/__init__.py +0 -0
  266. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/examples/admin/docs.py +0 -0
  267. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/examples/lib/__init__.py +0 -0
  268. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/examples/lib/database.py +0 -0
  269. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/examples/lib/lifespan.py +0 -0
  270. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/examples/lib/models.py +0 -0
  271. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/examples/lib/seed.py +0 -0
  272. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/openadmin/fastapi/__init__.py +0 -0
  273. /openadmin_dev-0.7.8/openadmin/fastapi/pagination_params.py → /openadmin_dev-0.7.11/openadmin/fastapi/req.py +0 -0
  274. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/openadmin/spec/colors.py +0 -0
  275. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/openadmin/spec/http_methods.py +0 -0
  276. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/openadmin/spec/icons.py +0 -0
  277. {openadmin_dev-0.7.8 → openadmin_dev-0.7.11}/tests/test_hello.py +0 -0
@@ -6,5 +6,8 @@ runs:
6
6
  - uses: astral-sh/setup-uv@v4
7
7
  with:
8
8
  enable-cache: true
9
+ - uses: oven-sh/setup-bun@v2
10
+ - shell: bash
11
+ run: cd client && bun install --frozen-lockfile
9
12
  - shell: bash
10
13
  run: make check/format
@@ -6,5 +6,8 @@ runs:
6
6
  - uses: astral-sh/setup-uv@v4
7
7
  with:
8
8
  enable-cache: true
9
+ - uses: oven-sh/setup-bun@v2
10
+ - shell: bash
11
+ run: cd client && bun install --frozen-lockfile
9
12
  - shell: bash
10
13
  run: make check/lint
@@ -3,19 +3,24 @@ fix/license:
3
3
  @ uv run reuse annotate --license AGPL-3.0-or-later --copyright "OpenAdmin" --recursive --skip-unrecognised openadmin/
4
4
  @ uv run reuse annotate --license AGPL-3.0-or-later --copyright "OpenAdmin" --recursive --skip-unrecognised tests/
5
5
  @ uv run reuse annotate --license AGPL-3.0-or-later --copyright "OpenAdmin" --recursive --skip-unrecognised examples/
6
+ @ uv run reuse annotate --license AGPL-3.0-or-later --copyright "OpenAdmin" --recursive --skip-unrecognised $$(find client/src -mindepth 1 -maxdepth 1 ! -name assets)
6
7
 
7
8
  fix/format:
9
+ @ cd client && bun run fix:format
8
10
  @ uv run ruff format .
9
11
 
10
12
  fix/lint:
13
+ @ cd client && bun run fix:lint
11
14
  @ uv run ruff check --fix .
12
15
 
13
16
  fix: fix/license fix/format fix/lint
14
17
 
15
18
  check/format:
19
+ @ cd client && bun run check:format
16
20
  @ uv run ruff format --check .
17
21
 
18
22
  check/lint:
23
+ @ cd client && bun run check:lint
19
24
  @ uv run ruff check .
20
25
 
21
26
  check/typing:
@@ -42,4 +47,5 @@ check/test:
42
47
  check: check/format check/lint check/typing check/cves check/security check/unused check/spell check/license check/test
43
48
 
44
49
  dev/run:
50
+ @ cd client && bun run build
45
51
  @ PYTHONPATH=. uv run fastapi dev examples/main.py --host 0.0.0.0 --port $${PORT:-8000} --reload
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: openadmin-dev
3
- Version: 0.7.8
3
+ Version: 0.7.11
4
4
  Summary: Add your description here
5
5
  Project-URL: Homepage, https://github.com/openadmin-team/openadmin-py
6
6
  Project-URL: Issues, https://github.com/openadmin-team/openadmin-py/issues
@@ -11,6 +11,7 @@ Classifier: Operating System :: OS Independent
11
11
  Classifier: Programming Language :: Python :: 3
12
12
  Requires-Python: >=3.14
13
13
  Requires-Dist: fastapi[standard]>=0.136.3
14
+ Requires-Dist: typing-extensions>=4.12.0
14
15
  Description-Content-Type: text/markdown
15
16
 
16
17
  <!-- <div align="center">
@@ -12,6 +12,7 @@ path = [
12
12
  "LICENSE",
13
13
  "**/__pycache__",
14
14
  "docs/**",
15
+ "client/**",
15
16
  ]
16
17
  SPDX-FileCopyrightText = "OpenAdmin"
17
18
  SPDX-License-Identifier = "AGPL-3.0-or-later"
@@ -0,0 +1,231 @@
1
+ ---
2
+ name: shadcn-vue
3
+ description: Manages shadcn-vue components and projects — adding, searching, fixing, debugging, styling, and composing UI. Provides project context, component docs, and usage examples. Applies when working with shadcn-vue, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for "shadcn-vue init", "create an app with --preset", or "switch to --preset".
4
+ user-invocable: false
5
+ allowed-tools: Bash(npx shadcn-vue@latest *), Bash(pnpm dlx shadcn-vue@latest *), Bash(bunx --bun shadcn-vue@latest *)
6
+ ---
7
+
8
+ # shadcn-vue
9
+
10
+ A framework for building ui, components and design systems. Components are added as source code to the user's project via the CLI.
11
+
12
+ > **IMPORTANT:** Run all CLI commands using the project's package runner: `npx shadcn-vue@latest`, `pnpm dlx shadcn-vue@latest`, or `bunx --bun shadcn-vue@latest` — based on the project's `packageManager`. Examples below use `npx shadcn-vue@latest` but substitute the correct runner for the project.
13
+
14
+ ## Current Project Context
15
+
16
+ ```json
17
+ !`npx shadcn-vue@latest info --json`
18
+ ```
19
+
20
+ The JSON above contains the project config and installed components. Use `npx shadcn-vue@latest docs <component>` to get documentation and example URLs for any component.
21
+
22
+ ## Principles
23
+
24
+ 1. **Use existing components first.** Use `npx shadcn-vue@latest search` to check registries before writing custom UI. Check community registries too.
25
+ 2. **Compose, don't reinvent.** Settings page = Tabs + Card + form controls. Dashboard = Sidebar + Card + Chart + Table.
26
+ 3. **Use built-in variants before custom styles.** `variant="outline"`, `size="sm"`, etc.
27
+ 4. **Use semantic colors.** `bg-primary`, `text-muted-foreground` — never raw values like `bg-blue-500`.
28
+
29
+ ## Critical Rules
30
+
31
+ These rules are **always enforced**. Each links to a file with Incorrect/Correct code pairs.
32
+
33
+ ### Styling & Tailwind → [styling.md](./rules/styling.md)
34
+
35
+ - **`class` for layout, not styling.** Never override component colors or typography.
36
+ - **No `space-x-*` or `space-y-*`.** Use `flex` with `gap-*`. For vertical stacks, `flex flex-col gap-*`.
37
+ - **Use `size-*` when width and height are equal.** `size-10` not `w-10 h-10`.
38
+ - **Use `truncate` shorthand.** Not `overflow-hidden text-ellipsis whitespace-nowrap`.
39
+ - **No manual `dark:` color overrides.** Use semantic tokens (`bg-background`, `text-muted-foreground`).
40
+ - **Use `cn()` for conditional classes.** Don't write manual template literal ternaries.
41
+ - **No manual `z-index` on overlay components.** Dialog, Sheet, Popover, etc. handle their own stacking.
42
+
43
+ ### Forms & Inputs → [forms.md](./rules/forms.md)
44
+
45
+ - **Forms use `FieldGroup` + `Field`.** Never use raw `div` with `space-y-*` or `grid gap-*` for form layout.
46
+ - **`InputGroup` uses `InputGroupInput`/`InputGroupTextarea`.** Never raw `Input`/`Textarea` inside `InputGroup`.
47
+ - **Buttons inside inputs use `InputGroup` + `InputGroupAddon`.**
48
+ - **Option sets (2–7 choices) use `ToggleGroup`.** Don't loop `Button` with manual active state.
49
+ - **`FieldSet` + `FieldLegend` for grouping related checkboxes/radios.** Don't use a `div` with a heading.
50
+ - **Field validation uses `data-invalid` + `aria-invalid`.** `data-invalid` on `Field`, `aria-invalid` on the control. For disabled: `data-disabled` on `Field`, `disabled` on the control.
51
+
52
+ ### Component Structure → [composition.md](./rules/composition.md)
53
+
54
+ - **Items always inside their Group.** `SelectItem` → `SelectGroup`. `DropdownMenuItem` → `DropdownMenuGroup`. `CommandItem` → `CommandGroup`.
55
+ - **Dialog, Sheet, and Drawer always need a Title.** `DialogTitle`, `SheetTitle`, `DrawerTitle` required for accessibility. Use `class="sr-only"` if visually hidden.
56
+ - **Use full Card composition.** `CardHeader`/`CardTitle`/`CardDescription`/`CardContent`/`CardFooter`. Don't dump everything in `CardContent`.
57
+ - **Button has no `isPending`/`isLoading`.** Compose with `Spinner` + `data-icon` + `disabled`.
58
+ - **`TabsTrigger` must be inside `TabsList`.** Never render triggers directly in `Tabs`.
59
+ - **`Avatar` always needs `AvatarFallback`.** For when the image fails to load.
60
+
61
+ ### Use Components, Not Custom Markup → [composition.md](./rules/composition.md)
62
+
63
+ - **Use existing components before custom markup.** Check if a component exists before writing a styled `div`.
64
+ - **Callouts use `Alert`.** Don't build custom styled divs.
65
+ - **Empty states use `Empty`.** Don't build custom empty state markup.
66
+ - **Toast via `vue-sonner`.** Use `toast()` from `vue-sonner`.
67
+ - **Use `Separator`** instead of `<hr>` or `<div class="border-t">`.
68
+ - **Use `Skeleton`** for loading placeholders. No custom `animate-pulse` divs.
69
+ - **Use `Badge`** instead of custom styled spans.
70
+
71
+ ### Icons → [icons.md](./rules/icons.md)
72
+
73
+ - **Icons in `Button` use `data-icon`.** `data-icon="inline-start"` or `data-icon="inline-end"` on the icon.
74
+ - **No sizing classes on icons inside components.** Components handle icon sizing via CSS. No `size-4` or `w-4 h-4`.
75
+ - **Pass icons as objects, not string keys.** `:icon="CheckIcon"`, not a string lookup.
76
+
77
+ ### CLI
78
+
79
+ - **Apply preset codes directly with the CLI.** Use `npx shadcn-vue@latest apply <code>` for existing projects, or `npx shadcn-vue@latest init --preset <code>` when initializing.
80
+
81
+ ## Key Patterns
82
+
83
+ These are the most common patterns that differentiate correct shadcn-vue code. For edge cases, see the linked rule files above.
84
+
85
+ ```html
86
+ <!-- Form layout: FieldGroup + Field, not div + Label. -->
87
+ <FieldGroup>
88
+ <Field>
89
+ <FieldLabel for="email">Email</FieldLabel>
90
+ <Input id="email" />
91
+ </Field>
92
+ </FieldGroup>
93
+
94
+ <!-- Validation: data-invalid on Field, aria-invalid on the control. -->
95
+ <Field data-invalid>
96
+ <FieldLabel>Email</FieldLabel>
97
+ <Input aria-invalid />
98
+ <FieldDescription>Invalid email.</FieldDescription>
99
+ </Field>
100
+
101
+ <!-- Icons in buttons: data-icon, no sizing classes. -->
102
+ <Button>
103
+ <SearchIcon data-icon="inline-start" />
104
+ Search
105
+ </Button>
106
+
107
+ <!-- Spacing: gap-*, not space-y-*. -->
108
+ <div class="flex flex-col gap-4"> <!-- correct -->
109
+ <div class="space-y-4"> <!-- wrong -->
110
+
111
+ <!-- Equal dimensions: size-*, not w-* h-*. -->
112
+ <Avatar class="size-10"> <!-- correct -->
113
+ <Avatar class="w-10 h-10"> <!-- wrong -->
114
+
115
+ <!-- Status colors: Badge variants or semantic tokens, not raw colors. -->
116
+ <Badge variant="secondary">+20.1%</Badge> <!-- correct -->
117
+ <span class="text-emerald-600">+20.1%</span> <!-- wrong -->
118
+ ```
119
+
120
+ ## Component Selection
121
+
122
+ | Need | Use |
123
+ | -------------------------- | --------------------------------------------------------------------------------------------------- |
124
+ | Button/action | `Button` with appropriate variant |
125
+ | Form inputs | `Input`, `Select`, `Combobox`, `Switch`, `Checkbox`, `RadioGroup`, `Textarea`, `InputOTP`, `Slider` |
126
+ | Toggle between 2–7 options | `ToggleGroup` + `ToggleGroupItem` |
127
+ | Data display | `Table`, `Card`, `Badge`, `Avatar` |
128
+ | Navigation | `Sidebar`, `NavigationMenu`, `Breadcrumb`, `Tabs`, `Pagination` |
129
+ | Overlays | `Dialog` (modal), `Sheet` (side panel), `Drawer` (bottom sheet), `AlertDialog` (confirmation) |
130
+ | Feedback | `vue-sonner` (toast), `Alert`, `Progress`, `Skeleton`, `Spinner` |
131
+ | Command palette | `Command` inside `Dialog` |
132
+ | Charts | `Chart` (wraps Unovis) |
133
+ | Layout | `Card`, `Separator`, `Resizable`, `ScrollArea`, `Accordion`, `Collapsible` |
134
+ | Empty states | `Empty` |
135
+ | Menus | `DropdownMenu`, `ContextMenu`, `Menubar` |
136
+ | Tooltips/info | `Tooltip`, `HoverCard`, `Popover` |
137
+
138
+ ## Key Fields
139
+
140
+ The injected project context contains these key fields:
141
+
142
+ - **`aliases`** → use the actual alias prefix for imports (e.g. `@/`, `~/`), never hardcode.
143
+ - **`tailwindVersion`** → `"v4"` uses `@theme inline` blocks; `"v3"` uses `tailwind.config.js`.
144
+ - **`tailwindCssFile`** → the global CSS file where custom CSS variables are defined. Always edit this file, never create a new one.
145
+ - **`style`** → component visual treatment (e.g. `nova`, `vega`).
146
+ - **`base`** → primitive library (`reka`). Affects component APIs and available props.
147
+ - **`iconLibrary`** → determines icon imports. Use `@lucide/vue` for `lucide`, `@tabler/icons-vue` for `tabler`, etc. Never assume `@lucide/vue`.
148
+ - **`resolvedPaths`** → exact file-system destinations for components, utils, hooks, etc.
149
+ - **`framework`** → routing and file conventions (e.g. Nuxt vs Vite SPA).
150
+ - **`packageManager`** → use this for any non-shadcn-vue dependency installs (e.g. `pnpm add date-fns` vs `npm install date-fns`).
151
+
152
+ See [cli.md — `info` command](./cli.md) for the full field reference.
153
+
154
+ ## Component Docs, Examples, and Usage
155
+
156
+ Run `npx shadcn-vue@latest docs <component>` to get the URLs for a component's documentation, examples, and API reference. Fetch these URLs to get the actual content.
157
+
158
+ ```bash
159
+ npx shadcn-vue@latest docs button dialog select
160
+ ```
161
+
162
+ **When creating, fixing, debugging, or using a component, always run `npx shadcn-vue@latest docs` and fetch the URLs first.** This ensures you're working with the correct API and usage patterns rather than guessing.
163
+
164
+ ## Workflow
165
+
166
+ 1. **Get project context** — already injected above. Run `npx shadcn-vue@latest info` again if you need to refresh.
167
+ 2. **Check installed components first** — before running `add`, always check the `components` list from project context or list the `resolvedPaths.ui` directory. Don't import components that haven't been added, and don't re-add ones already installed.
168
+ 3. **Find components** — `npx shadcn-vue@latest search`.
169
+ 4. **Get docs and examples** — run `npx shadcn-vue@latest docs <component>` to get URLs, then fetch them. Use `npx shadcn-vue@latest view` to browse registry items you haven't installed. To preview changes to installed components, use `npx shadcn-vue@latest add --diff`.
170
+ 5. **Install or update** — `npx shadcn-vue@latest add`. When updating existing components, use `--dry-run` and `--diff` to preview changes first (see [Updating Components](#updating-components) below).
171
+ 6. **Fix imports in third-party components** — After adding components from community registries, check the added non-UI files for hardcoded import paths like `@/components/ui/...`. These won't match the project's actual aliases. Use `npx shadcn-vue@latest info` to get the correct `ui` alias (e.g. `@workspace/ui/components`) and rewrite the imports accordingly. The CLI rewrites imports for its own UI files, but third-party registry components may use default paths that don't match the project.
172
+ 7. **Review added components** — After adding a component or block from any registry, **always read the added files and verify they are correct**. Check for missing sub-components (e.g. `SelectItem` without `SelectGroup`), missing imports, incorrect composition, or violations of the [Critical Rules](#critical-rules). Also replace any icon imports with the project's `iconLibrary` from the project context (e.g. if the registry item uses `@lucide/vue` but the project uses `hugeicons`, swap the imports and icon names accordingly). Fix all issues before moving on.
173
+ 8. **Registry must be explicit** — When the user asks to add a block or component, **do not guess the registry**. If no registry is specified (e.g. user says "add a login block" without specifying `@shadcn`, etc.), ask which registry to use. Never default to a registry on behalf of the user.
174
+ 9. **Switching presets** — Ask the user first: **overwrite**, **merge**, or **skip**?
175
+ - **Overwrite**: `npx shadcn-vue@latest apply <code>`. Overwrites detected components, fonts, and CSS variables.
176
+ - **Merge**: `npx shadcn-vue@latest init --preset <code> --force --no-reinstall`, then run `npx shadcn-vue@latest info` to list installed components, then for each installed component use `--dry-run` and `--diff` to [smart merge](#updating-components) it individually.
177
+ - **Skip**: `npx shadcn-vue@latest init --preset <code> --force --no-reinstall`. Only updates config and CSS, leaves components as-is.
178
+ - **Important**: Always run preset commands inside the user's project directory. `apply` only works in an existing project with a `components.json` file. The CLI automatically preserves the current base (`reka`) from `components.json`. If you must use a scratch/temp directory (e.g. for `--dry-run` comparisons), pass `--base <current-base>` explicitly — preset codes do not encode the base.
179
+
180
+ ## Updating Components
181
+
182
+ When the user asks to update a component from upstream while keeping their local changes, use `--dry-run` and `--diff` to intelligently merge. **NEVER fetch raw files from GitHub manually — always use the CLI.**
183
+
184
+ 1. Run `npx shadcn-vue@latest add <component> --dry-run` to see all files that would be affected.
185
+ 2. For each file, run `npx shadcn-vue@latest add <component> --diff <file>` to see what changed upstream vs local.
186
+ 3. Decide per file based on the diff:
187
+ - No local changes → safe to overwrite.
188
+ - Has local changes → read the local file, analyze the diff, and apply upstream updates while preserving local modifications.
189
+ - User says "just update everything" → use `--overwrite`, but confirm first.
190
+ 4. **Never use `--overwrite` without the user's explicit approval.**
191
+
192
+ ## Quick Reference
193
+
194
+ ```bash
195
+ # Create a new project.
196
+ npx shadcn-vue@latest init --name my-app --preset nova
197
+ npx shadcn-vue@latest init --name my-app --preset a2r6bw --template vite
198
+
199
+ # Initialize existing project.
200
+ npx shadcn-vue@latest init --preset nova
201
+ npx shadcn-vue@latest init --defaults # shortcut: --template=nuxt --preset=nova (base style implied)
202
+
203
+ # Apply a preset to an existing project.
204
+ npx shadcn-vue@latest apply a2r6bw
205
+
206
+ # Add components.
207
+ npx shadcn-vue@latest add button card dialog
208
+ npx shadcn-vue@latest add --all
209
+
210
+ # Search registries.
211
+ npx shadcn-vue@latest search @shadcn -q "sidebar"
212
+
213
+ # Get component docs and example URLs.
214
+ npx shadcn-vue@latest docs button dialog select
215
+
216
+ # View registry item details (for items not yet installed).
217
+ npx shadcn-vue@latest view @shadcn/button
218
+ ```
219
+
220
+ **Named presets:** `nova`, `vega`, `maia`, `lyra`, `mira`, `luma`
221
+ **Templates:** `nuxt`, `vite`, `astro` and `laravel`
222
+ **Preset codes:** Version-prefixed base62 strings (e.g. `a2r6bw`), from [shadcn-vue.com](https://shadcn-vue.com).
223
+
224
+ ## Detailed References
225
+
226
+ - [rules/forms.md](./rules/forms.md) — FieldGroup, Field, InputGroup, ToggleGroup, FieldSet, validation states
227
+ - [rules/composition.md](./rules/composition.md) — Groups, overlays, Card, Tabs, Avatar, Alert, Empty, Toast, Separator, Skeleton, Badge, Button loading
228
+ - [rules/icons.md](./rules/icons.md) — data-icon, icon sizing, passing icons as objects
229
+ - [rules/styling.md](./rules/styling.md) — Semantic colors, variants, class, spacing, size, truncate, dark mode, cn(), z-index
230
+ - [cli.md](./cli.md) — Commands, flags, presets, templates
231
+ - [customization.md](./customization.md) — Theming, CSS variables, extending components
@@ -0,0 +1,225 @@
1
+ # shadcn-vue CLI Reference
2
+
3
+ Configuration is read from `components.json`.
4
+
5
+ > **IMPORTANT:** Always run commands using the project's package runner: `npx shadcn-vue@latest`, `pnpm dlx shadcn-vue@latest`, or `bunx --bun shadcn-vue@latest`. Check `packageManager` from project context to choose the right one. Examples below use `npx shadcn-vue@latest` but substitute the correct runner for the project.
6
+ > **IMPORTANT:** Only use the flags documented below. Do not invent or guess flags — if a flag isn't listed here, it doesn't exist. The CLI auto-detects the package manager from the project's lockfile; there is no `--package-manager` flag.
7
+
8
+ ## Contents
9
+
10
+ - Commands: init, apply, add (smart merge), search, view, docs, info, build
11
+ - Templates: nuxt, vite, astro, laravel
12
+ - Presets: named, code, URL formats and fields
13
+ - Switching presets
14
+
15
+ ---
16
+
17
+ ## Commands
18
+
19
+ ### `init` — Initialize or create a project
20
+
21
+ ```bash
22
+ npx shadcn-vue@latest init [components...] [options]
23
+ ```
24
+
25
+ Initializes shadcn-vue in an existing project or creates a new project (when `--name` is provided). Optionally installs components in the same step.
26
+
27
+ | Flag | Short | Description | Default |
28
+ | ----------------------- | ----- | --------------------------------------------------- | ------- |
29
+ | `--template <template>` | `-t` | Template (nuxt, vite, astro, laravel) | — |
30
+ | `--preset [name]` | `-p` | Preset configuration (named, code, or URL) | — |
31
+ | `--yes` | `-y` | Skip confirmation prompt | `true` |
32
+ | `--defaults` | `-d` | Use defaults (`--template=nuxt --preset=nova`) | `false` |
33
+ | `--force` | `-f` | Force overwrite existing configuration | `false` |
34
+ | `--cwd <cwd>` | `-c` | Working directory | current |
35
+ | `--name <name>` | `-n` | Name for new project | — |
36
+ | `--silent` | `-s` | Mute output | `false` |
37
+ | `--rtl` | | Enable RTL support | — |
38
+ | `--reinstall` | | Re-install existing UI components | `false` |
39
+
40
+ `npx shadcn-vue@latest create` is an alias for `npx shadcn-vue@latest init`.
41
+
42
+ ### `apply` — Apply a preset to an existing project
43
+
44
+ ```bash
45
+ npx shadcn-vue@latest apply [preset] [options]
46
+ ```
47
+
48
+ Applies a preset to an existing project, overwriting preset-driven config, fonts, CSS variables, and detected UI components.
49
+
50
+ | Flag | Short | Description | Default |
51
+ | ------------------- | ----- | ------------------------------------------ | ------- |
52
+ | `--preset <preset>` | — | Preset configuration (named, code, or URL) | — |
53
+ | `--yes` | `-y` | Skip confirmation prompt | `false` |
54
+ | `--cwd <cwd>` | `-c` | Working directory | current |
55
+ | `--silent` | `-s` | Mute output | `false` |
56
+
57
+ `[preset]` is a shorthand for `--preset <preset>`. If both are provided, they must match.
58
+ If no preset is provided, the CLI offers to open the custom preset builder on `shadcn-vue.com/create`.
59
+
60
+ ### `add` — Add components
61
+
62
+ > **IMPORTANT:** NEVER fetch raw files from GitHub or other sources manually. The CLI handles registry resolution, file paths, and CSS diffing automatically.
63
+
64
+ ```bash
65
+ npx shadcn-vue@latest add [components...] [options]
66
+ ```
67
+
68
+ Accepts component names, registry-prefixed names (`@magicui/shimmer-button`), URLs, or local paths.
69
+
70
+ | Flag | Short | Description | Default |
71
+ | --------------- | ----- | -------------------------------------------------------------------------------------------------------------------- | ------- |
72
+ | `--yes` | `-y` | Skip confirmation prompt | `false` |
73
+ | `--overwrite` | `-o` | Overwrite existing files | `false` |
74
+ | `--cwd <cwd>` | `-c` | Working directory | current |
75
+ | `--all` | `-a` | Add all available components | `false` |
76
+ | `--path <path>` | `-p` | Target path for the component | — |
77
+ | `--silent` | `-s` | Mute output | `false` |
78
+
79
+ #### Smart Merge from Upstream
80
+
81
+ See [Updating Components in SKILL.md](./SKILL.md#updating-components) for the full workflow.
82
+
83
+ ### `search` — Search registries
84
+
85
+ ```bash
86
+ npx shadcn-vue@latest search <registries...> [options]
87
+ ```
88
+
89
+ Fuzzy search across registries. Also aliased as `npx shadcn-vue@latest list`. Without `-q`, lists all items.
90
+
91
+ | Flag | Short | Description | Default |
92
+ | ------------------- | ----- | ---------------------- | ------- |
93
+ | `--query <query>` | `-q` | Search query | — |
94
+ | `--limit <number>` | `-l` | Max items per registry | `100` |
95
+ | `--offset <number>` | `-o` | Items to skip | `0` |
96
+ | `--cwd <cwd>` | `-c` | Working directory | current |
97
+
98
+ ### `view` — View item details
99
+
100
+ ```bash
101
+ npx shadcn-vue@latest view <items...> [options]
102
+ ```
103
+
104
+ Displays item info including file contents. Example: `npx shadcn-vue@latest view @shadcn/button`.
105
+
106
+ ### `docs` — Get component documentation URLs
107
+
108
+ ```bash
109
+ npx shadcn-vue@latest docs <components...> [options]
110
+ ```
111
+
112
+ Outputs resolved URLs for component documentation, examples, and API references. Accepts one or more component names. Fetch the URLs to get the actual content.
113
+
114
+ Example output for `npx shadcn-vue@latest docs input button`:
115
+
116
+ ```text
117
+ input
118
+ docs https://shadcn-vue.com/docs/components/input
119
+ examples https://raw.githubusercontent.com/.../examples/InputExample.vue
120
+
121
+ button
122
+ docs https://shadcn-vue.com/docs/components/button
123
+ examples https://raw.githubusercontent.com/.../examples/ButtonExample.vue
124
+ ```
125
+
126
+ Some components include an `api` link to the underlying library (e.g. `reka-ui` for the primitive components).
127
+
128
+ ### `diff` — Check for updates
129
+
130
+ Do not use this command. Use `npx shadcn-vue@latest add --diff` instead.
131
+
132
+ ### `info` — Project information
133
+
134
+ ```bash
135
+ npx shadcn-vue@latest info [options]
136
+ ```
137
+
138
+ Displays project info and `components.json` configuration. Run this first to discover the project's framework, aliases, Tailwind version, and resolved paths.
139
+
140
+ | Flag | Short | Description | Default |
141
+ | ------------- | ----- | ----------------- | ------- |
142
+ | `--cwd <cwd>` | `-c` | Working directory | current |
143
+
144
+ **Project Info fields:**
145
+
146
+ | Field | Type | Meaning |
147
+ | -------------------- | --------- | ------------------------------------------------------- |
148
+ | `framework` | `string` | Detected framework (`nuxt`, `vite`, `astro`, `laravel`) |
149
+ | `frameworkVersion` | `string` | Framework version (e.g. `3.15.0`) |
150
+ | `isSrcDir` | `boolean` | Whether the project uses a `src/` directory |
151
+ | `isTs` | `boolean` | Whether the project uses TypeScript |
152
+ | `tailwindVersion` | `string` | `"v3"` or `"v4"` |
153
+ | `tailwindConfigFile` | `string` | Path to the Tailwind config file |
154
+ | `tailwindCssFile` | `string` | Path to the global CSS file |
155
+ | `aliasPrefix` | `string` | Import alias prefix (e.g. `@`, `~`, `@/`) |
156
+ | `packageManager` | `string` | Detected package manager (`npm`, `pnpm`, `yarn`, `bun`) |
157
+
158
+ **Components.json fields:**
159
+
160
+ | Field | Type | Meaning |
161
+ | -------------------- | --------- | --------------------------------------------------------------------------------------------|
162
+ | `base` | `string` | Primitive library (`reka`) — determines component APIs and available props |
163
+ | `style` | `string` | Visual style (e.g. `nova`, `vega`) |
164
+ | `typescript` | `boolean` | TypeScript flag |
165
+ | `tailwind.config` | `string` | Tailwind config path |
166
+ | `tailwind.css` | `string` | Global CSS path — this is where custom CSS variables go |
167
+ | `iconLibrary` | `string` | Icon library — determines icon import package (e.g. `@lucide/vue`, `@tabler/icons-vue`) |
168
+ | `aliases.components` | `string` | Component import alias (e.g. `@/components`) |
169
+ | `aliases.utils` | `string` | Utils import alias (e.g. `@/lib/utils`) |
170
+ | `aliases.ui` | `string` | UI component alias (e.g. `@/components/ui`) |
171
+ | `aliases.lib` | `string` | Lib alias (e.g. `@/lib`) |
172
+ | `aliases.composables`| `string` | Composables/Hooks alias (e.g. `@/composables`) |
173
+ | `resolvedPaths` | `object` | Absolute file-system paths for each alias |
174
+ | `registries` | `object` | Configured custom registries |
175
+
176
+ **Links fields:**
177
+
178
+ The `info` output includes a **Links** section with templated URLs for component docs, source, and examples. For resolved URLs, use `npx shadcn-vue@latest docs <component>` instead.
179
+
180
+ ### `build` — Build a custom registry
181
+
182
+ ```bash
183
+ npx shadcn-vue@latest build [registry] [options]
184
+ ```
185
+
186
+ Builds `registry.json` into individual JSON files for distribution. Default input: `./registry.json`, default output: `./public/r`.
187
+
188
+ | Flag | Short | Description | Default |
189
+ | ----------------- | ----- | ----------------- | ------------ |
190
+ | `--output <path>` | `-o` | Output directory | `./public/r` |
191
+ | `--cwd <cwd>` | `-c` | Working directory | current |
192
+
193
+ ---
194
+
195
+ ## Templates
196
+
197
+ | Value | Framework |
198
+ | ------- | --------- |
199
+ | `nuxt` | Nuxt |
200
+ | `vite` | Vite |
201
+ | `astro` | Astro |
202
+ | `laravel` | Laravel |
203
+
204
+ ---
205
+
206
+ ## Presets
207
+
208
+ Three ways to specify a preset via `--preset`:
209
+
210
+ 1. **Named:** `--preset nova` or `--preset lyra`
211
+ 2. **Code:** `--preset a2r6bw` (version-prefixed base62 string, e.g. `a2r6bw`)
212
+ 3. **URL:** `--preset "https://shadcn-vue.com/init?base=reka&style=nova&..."`
213
+
214
+ > **IMPORTANT:** Never try to decode, fetch, or resolve preset codes manually. Preset codes are opaque — pass them directly to `npx shadcn-vue@latest init --preset <code>` and let the CLI handle resolution.
215
+ > Use `npx shadcn-vue@latest apply --preset <code>` when overwriting an existing project's preset.
216
+
217
+ ## Switching Presets
218
+
219
+ Ask the user first: **overwrite**, **merge**, or **skip** existing components?
220
+
221
+ - **Overwrite / Re-install** → `npx shadcn-vue@latest apply --preset <code>`. Overwrites all detected component files with the new preset styles. Use when the user hasn't customized components.
222
+ - **Merge** → `npx shadcn-vue@latest init --preset <code> --force --no-reinstall`, then run `npx shadcn-vue@latest info` to get the list of installed components and use the [smart merge workflow](./SKILL.md#updating-components) to update them one by one, preserving local changes. Use when the user has customized components.
223
+ - **Skip** → `npx shadcn-vue@latest init --preset <code> --force --no-reinstall`. Only updates config and CSS variables, leaves existing components as-is.
224
+
225
+ Always run preset commands inside the user's project directory. `apply` only works in an existing project with a `components.json` file. The CLI automatically preserves the current base (`base`) from `components.json`. If you must use a scratch/temp directory (e.g. for `--dry-run` comparisons), pass `--base <current-base>` explicitly — preset codes do not encode the base.