@nanisoft/prism-ui 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (303) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +81 -0
  3. package/THIRD-PARTY-NOTICES.md +48 -0
  4. package/dist/.tsbuildinfo +1 -0
  5. package/dist/blocks/app-shell-01/app-shell.d.ts +38 -0
  6. package/dist/blocks/app-shell-01/app-shell.d.ts.map +1 -0
  7. package/dist/blocks/app-shell-01/app-shell.js +27 -0
  8. package/dist/blocks/app-shell-01/index.d.ts +3 -0
  9. package/dist/blocks/app-shell-01/index.d.ts.map +1 -0
  10. package/dist/blocks/app-shell-01/index.js +1 -0
  11. package/dist/blocks/auth-form-01/auth-form.d.ts +52 -0
  12. package/dist/blocks/auth-form-01/auth-form.d.ts.map +1 -0
  13. package/dist/blocks/auth-form-01/auth-form.js +23 -0
  14. package/dist/blocks/auth-form-01/index.d.ts +3 -0
  15. package/dist/blocks/auth-form-01/index.d.ts.map +1 -0
  16. package/dist/blocks/auth-form-01/index.js +1 -0
  17. package/dist/blocks/cta-01/cta.d.ts +83 -0
  18. package/dist/blocks/cta-01/cta.d.ts.map +1 -0
  19. package/dist/blocks/cta-01/cta.js +29 -0
  20. package/dist/blocks/cta-01/index.d.ts +3 -0
  21. package/dist/blocks/cta-01/index.d.ts.map +1 -0
  22. package/dist/blocks/cta-01/index.js +1 -0
  23. package/dist/blocks/data-table-01/data-table.d.ts +102 -0
  24. package/dist/blocks/data-table-01/data-table.d.ts.map +1 -0
  25. package/dist/blocks/data-table-01/data-table.js +116 -0
  26. package/dist/blocks/data-table-01/index.d.ts +3 -0
  27. package/dist/blocks/data-table-01/index.d.ts.map +1 -0
  28. package/dist/blocks/data-table-01/index.js +1 -0
  29. package/dist/blocks/feature-grid-01/feature-grid.d.ts +78 -0
  30. package/dist/blocks/feature-grid-01/feature-grid.d.ts.map +1 -0
  31. package/dist/blocks/feature-grid-01/feature-grid.js +24 -0
  32. package/dist/blocks/feature-grid-01/index.d.ts +3 -0
  33. package/dist/blocks/feature-grid-01/index.d.ts.map +1 -0
  34. package/dist/blocks/feature-grid-01/index.js +1 -0
  35. package/dist/blocks/hero-01/hero.d.ts +59 -0
  36. package/dist/blocks/hero-01/hero.d.ts.map +1 -0
  37. package/dist/blocks/hero-01/hero.js +24 -0
  38. package/dist/blocks/hero-01/index.d.ts +2 -0
  39. package/dist/blocks/hero-01/index.d.ts.map +1 -0
  40. package/dist/blocks/hero-01/index.js +1 -0
  41. package/dist/blocks/index.d.ts +28 -0
  42. package/dist/blocks/index.d.ts.map +1 -0
  43. package/dist/blocks/index.js +26 -0
  44. package/dist/blocks/instrument-panel-01/index.d.ts +3 -0
  45. package/dist/blocks/instrument-panel-01/index.d.ts.map +1 -0
  46. package/dist/blocks/instrument-panel-01/index.js +1 -0
  47. package/dist/blocks/instrument-panel-01/instrument-panel.d.ts +114 -0
  48. package/dist/blocks/instrument-panel-01/instrument-panel.d.ts.map +1 -0
  49. package/dist/blocks/instrument-panel-01/instrument-panel.js +64 -0
  50. package/dist/blocks/logo-strip-01/index.d.ts +3 -0
  51. package/dist/blocks/logo-strip-01/index.d.ts.map +1 -0
  52. package/dist/blocks/logo-strip-01/index.js +1 -0
  53. package/dist/blocks/logo-strip-01/logo-strip.d.ts +84 -0
  54. package/dist/blocks/logo-strip-01/logo-strip.d.ts.map +1 -0
  55. package/dist/blocks/logo-strip-01/logo-strip.js +40 -0
  56. package/dist/blocks/note-grid-01/index.d.ts +3 -0
  57. package/dist/blocks/note-grid-01/index.d.ts.map +1 -0
  58. package/dist/blocks/note-grid-01/index.js +1 -0
  59. package/dist/blocks/note-grid-01/note-grid.d.ts +79 -0
  60. package/dist/blocks/note-grid-01/note-grid.d.ts.map +1 -0
  61. package/dist/blocks/note-grid-01/note-grid.js +37 -0
  62. package/dist/blocks/page-header-01/index.d.ts +3 -0
  63. package/dist/blocks/page-header-01/index.d.ts.map +1 -0
  64. package/dist/blocks/page-header-01/index.js +1 -0
  65. package/dist/blocks/page-header-01/page-header.d.ts +48 -0
  66. package/dist/blocks/page-header-01/page-header.d.ts.map +1 -0
  67. package/dist/blocks/page-header-01/page-header.js +27 -0
  68. package/dist/blocks/pricing-01/index.d.ts +2 -0
  69. package/dist/blocks/pricing-01/index.d.ts.map +1 -0
  70. package/dist/blocks/pricing-01/index.js +1 -0
  71. package/dist/blocks/pricing-01/pricing.d.ts +35 -0
  72. package/dist/blocks/pricing-01/pricing.d.ts.map +1 -0
  73. package/dist/blocks/pricing-01/pricing.js +20 -0
  74. package/dist/blocks/process-rail-01/index.d.ts +3 -0
  75. package/dist/blocks/process-rail-01/index.d.ts.map +1 -0
  76. package/dist/blocks/process-rail-01/index.js +1 -0
  77. package/dist/blocks/process-rail-01/process-rail.d.ts +99 -0
  78. package/dist/blocks/process-rail-01/process-rail.d.ts.map +1 -0
  79. package/dist/blocks/process-rail-01/process-rail.js +58 -0
  80. package/dist/blocks/product-grid-01/index.d.ts +3 -0
  81. package/dist/blocks/product-grid-01/index.d.ts.map +1 -0
  82. package/dist/blocks/product-grid-01/index.js +1 -0
  83. package/dist/blocks/product-grid-01/product-grid.d.ts +114 -0
  84. package/dist/blocks/product-grid-01/product-grid.d.ts.map +1 -0
  85. package/dist/blocks/product-grid-01/product-grid.js +51 -0
  86. package/dist/blocks/settings-panel-01/index.d.ts +3 -0
  87. package/dist/blocks/settings-panel-01/index.d.ts.map +1 -0
  88. package/dist/blocks/settings-panel-01/index.js +1 -0
  89. package/dist/blocks/settings-panel-01/settings-panel.d.ts +71 -0
  90. package/dist/blocks/settings-panel-01/settings-panel.d.ts.map +1 -0
  91. package/dist/blocks/settings-panel-01/settings-panel.js +38 -0
  92. package/dist/blocks/site-footer/index.d.ts +3 -0
  93. package/dist/blocks/site-footer/index.d.ts.map +1 -0
  94. package/dist/blocks/site-footer/index.js +1 -0
  95. package/dist/blocks/site-footer/site-footer.d.ts +135 -0
  96. package/dist/blocks/site-footer/site-footer.d.ts.map +1 -0
  97. package/dist/blocks/site-footer/site-footer.js +41 -0
  98. package/dist/blocks/site-header/index.d.ts +3 -0
  99. package/dist/blocks/site-header/index.d.ts.map +1 -0
  100. package/dist/blocks/site-header/index.js +1 -0
  101. package/dist/blocks/site-header/site-header.d.ts +142 -0
  102. package/dist/blocks/site-header/site-header.d.ts.map +1 -0
  103. package/dist/blocks/site-header/site-header.js +46 -0
  104. package/dist/blocks/stack-grid-01/index.d.ts +3 -0
  105. package/dist/blocks/stack-grid-01/index.d.ts.map +1 -0
  106. package/dist/blocks/stack-grid-01/index.js +1 -0
  107. package/dist/blocks/stack-grid-01/stack-grid.d.ts +118 -0
  108. package/dist/blocks/stack-grid-01/stack-grid.d.ts.map +1 -0
  109. package/dist/blocks/stack-grid-01/stack-grid.js +49 -0
  110. package/dist/blocks/stats-01/index.d.ts +2 -0
  111. package/dist/blocks/stats-01/index.d.ts.map +1 -0
  112. package/dist/blocks/stats-01/index.js +1 -0
  113. package/dist/blocks/stats-01/stats.d.ts +28 -0
  114. package/dist/blocks/stats-01/stats.d.ts.map +1 -0
  115. package/dist/blocks/stats-01/stats.js +27 -0
  116. package/dist/blocks/status-ledger-01/index.d.ts +3 -0
  117. package/dist/blocks/status-ledger-01/index.d.ts.map +1 -0
  118. package/dist/blocks/status-ledger-01/index.js +1 -0
  119. package/dist/blocks/status-ledger-01/status-ledger.d.ts +131 -0
  120. package/dist/blocks/status-ledger-01/status-ledger.d.ts.map +1 -0
  121. package/dist/blocks/status-ledger-01/status-ledger.js +80 -0
  122. package/dist/catalog.d.ts +28 -0
  123. package/dist/catalog.d.ts.map +1 -0
  124. package/dist/catalog.js +672 -0
  125. package/dist/components/index.d.ts +64 -0
  126. package/dist/components/index.d.ts.map +1 -0
  127. package/dist/components/index.js +43 -0
  128. package/dist/components/ui/accordion.d.ts +65 -0
  129. package/dist/components/ui/accordion.d.ts.map +1 -0
  130. package/dist/components/ui/accordion.js +30 -0
  131. package/dist/components/ui/alert.d.ts +19 -0
  132. package/dist/components/ui/alert.d.ts.map +1 -0
  133. package/dist/components/ui/alert.js +31 -0
  134. package/dist/components/ui/avatar.d.ts +47 -0
  135. package/dist/components/ui/avatar.d.ts.map +1 -0
  136. package/dist/components/ui/avatar.js +30 -0
  137. package/dist/components/ui/badge.d.ts +14 -0
  138. package/dist/components/ui/badge.d.ts.map +1 -0
  139. package/dist/components/ui/badge.js +26 -0
  140. package/dist/components/ui/breadcrumb.d.ts +35 -0
  141. package/dist/components/ui/breadcrumb.d.ts.map +1 -0
  142. package/dist/components/ui/breadcrumb.js +48 -0
  143. package/dist/components/ui/button.d.ts +16 -0
  144. package/dist/components/ui/button.d.ts.map +1 -0
  145. package/dist/components/ui/button.js +63 -0
  146. package/dist/components/ui/card.d.ts +41 -0
  147. package/dist/components/ui/card.d.ts.map +1 -0
  148. package/dist/components/ui/card.js +53 -0
  149. package/dist/components/ui/checkbox.d.ts +43 -0
  150. package/dist/components/ui/checkbox.d.ts.map +1 -0
  151. package/dist/components/ui/checkbox.js +18 -0
  152. package/dist/components/ui/cta-link.d.ts +45 -0
  153. package/dist/components/ui/cta-link.d.ts.map +1 -0
  154. package/dist/components/ui/cta-link.js +81 -0
  155. package/dist/components/ui/diagram.d.ts +154 -0
  156. package/dist/components/ui/diagram.d.ts.map +1 -0
  157. package/dist/components/ui/diagram.js +150 -0
  158. package/dist/components/ui/dialog.d.ts +81 -0
  159. package/dist/components/ui/dialog.d.ts.map +1 -0
  160. package/dist/components/ui/dialog.js +60 -0
  161. package/dist/components/ui/dropdown-menu.d.ts +189 -0
  162. package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
  163. package/dist/components/ui/dropdown-menu.js +67 -0
  164. package/dist/components/ui/fact-list.d.ts +90 -0
  165. package/dist/components/ui/fact-list.d.ts.map +1 -0
  166. package/dist/components/ui/fact-list.js +38 -0
  167. package/dist/components/ui/field.d.ts +36 -0
  168. package/dist/components/ui/field.d.ts.map +1 -0
  169. package/dist/components/ui/field.js +46 -0
  170. package/dist/components/ui/input.d.ts +12 -0
  171. package/dist/components/ui/input.d.ts.map +1 -0
  172. package/dist/components/ui/input.js +14 -0
  173. package/dist/components/ui/kbd.d.ts +10 -0
  174. package/dist/components/ui/kbd.d.ts.map +1 -0
  175. package/dist/components/ui/kbd.js +12 -0
  176. package/dist/components/ui/pagination.d.ts +40 -0
  177. package/dist/components/ui/pagination.d.ts.map +1 -0
  178. package/dist/components/ui/pagination.js +49 -0
  179. package/dist/components/ui/popover.d.ts +56 -0
  180. package/dist/components/ui/popover.d.ts.map +1 -0
  181. package/dist/components/ui/popover.js +25 -0
  182. package/dist/components/ui/product-mark.d.ts +115 -0
  183. package/dist/components/ui/product-mark.d.ts.map +1 -0
  184. package/dist/components/ui/product-mark.js +82 -0
  185. package/dist/components/ui/product-switcher.d.ts +108 -0
  186. package/dist/components/ui/product-switcher.d.ts.map +1 -0
  187. package/dist/components/ui/product-switcher.js +47 -0
  188. package/dist/components/ui/progress.d.ts +38 -0
  189. package/dist/components/ui/progress.d.ts.map +1 -0
  190. package/dist/components/ui/progress.js +17 -0
  191. package/dist/components/ui/prose.d.ts +88 -0
  192. package/dist/components/ui/prose.d.ts.map +1 -0
  193. package/dist/components/ui/prose.js +53 -0
  194. package/dist/components/ui/radio-group.d.ts +66 -0
  195. package/dist/components/ui/radio-group.d.ts.map +1 -0
  196. package/dist/components/ui/radio-group.js +30 -0
  197. package/dist/components/ui/section.d.ts +60 -0
  198. package/dist/components/ui/section.d.ts.map +1 -0
  199. package/dist/components/ui/section.js +21 -0
  200. package/dist/components/ui/select.d.ts +124 -0
  201. package/dist/components/ui/select.d.ts.map +1 -0
  202. package/dist/components/ui/select.js +47 -0
  203. package/dist/components/ui/separator.d.ts +16 -0
  204. package/dist/components/ui/separator.d.ts.map +1 -0
  205. package/dist/components/ui/separator.js +15 -0
  206. package/dist/components/ui/skeleton.d.ts +12 -0
  207. package/dist/components/ui/skeleton.d.ts.map +1 -0
  208. package/dist/components/ui/skeleton.js +14 -0
  209. package/dist/components/ui/slider.d.ts +43 -0
  210. package/dist/components/ui/slider.d.ts.map +1 -0
  211. package/dist/components/ui/slider.js +23 -0
  212. package/dist/components/ui/switch.d.ts +42 -0
  213. package/dist/components/ui/switch.d.ts.map +1 -0
  214. package/dist/components/ui/switch.js +16 -0
  215. package/dist/components/ui/table.d.ts +27 -0
  216. package/dist/components/ui/table.d.ts.map +1 -0
  217. package/dist/components/ui/table.js +43 -0
  218. package/dist/components/ui/tabs.d.ts +66 -0
  219. package/dist/components/ui/tabs.d.ts.map +1 -0
  220. package/dist/components/ui/tabs.js +29 -0
  221. package/dist/components/ui/textarea.d.ts +11 -0
  222. package/dist/components/ui/textarea.d.ts.map +1 -0
  223. package/dist/components/ui/textarea.js +13 -0
  224. package/dist/components/ui/tooltip.d.ts +63 -0
  225. package/dist/components/ui/tooltip.d.ts.map +1 -0
  226. package/dist/components/ui/tooltip.js +25 -0
  227. package/dist/components/ui/typography.d.ts +32 -0
  228. package/dist/components/ui/typography.d.ts.map +1 -0
  229. package/dist/components/ui/typography.js +51 -0
  230. package/dist/index.d.ts +79 -0
  231. package/dist/index.d.ts.map +1 -0
  232. package/dist/index.js +68 -0
  233. package/dist/lib/utils.d.ts +3 -0
  234. package/dist/lib/utils.d.ts.map +1 -0
  235. package/dist/lib/utils.js +5 -0
  236. package/dist/pages/auth-page/index.d.ts +36 -0
  237. package/dist/pages/auth-page/index.d.ts.map +1 -0
  238. package/dist/pages/auth-page/index.js +23 -0
  239. package/dist/pages/blog-post-page/index.d.ts +174 -0
  240. package/dist/pages/blog-post-page/index.d.ts.map +1 -0
  241. package/dist/pages/blog-post-page/index.js +49 -0
  242. package/dist/pages/dashboard-page/index.d.ts +36 -0
  243. package/dist/pages/dashboard-page/index.d.ts.map +1 -0
  244. package/dist/pages/dashboard-page/index.js +24 -0
  245. package/dist/pages/index.d.ts +21 -0
  246. package/dist/pages/index.d.ts.map +1 -0
  247. package/dist/pages/index.js +14 -0
  248. package/dist/pages/marketing-page/index.d.ts +43 -0
  249. package/dist/pages/marketing-page/index.d.ts.map +1 -0
  250. package/dist/pages/marketing-page/index.js +25 -0
  251. package/dist/pages/not-found-page/index.d.ts +112 -0
  252. package/dist/pages/not-found-page/index.d.ts.map +1 -0
  253. package/dist/pages/not-found-page/index.js +46 -0
  254. package/dist/pages/settings-page/index.d.ts +47 -0
  255. package/dist/pages/settings-page/index.d.ts.map +1 -0
  256. package/dist/pages/settings-page/index.js +24 -0
  257. package/dist/provider/index.d.ts +12 -0
  258. package/dist/provider/index.d.ts.map +1 -0
  259. package/dist/provider/index.js +9 -0
  260. package/dist/provider/provider.d.ts +42 -0
  261. package/dist/provider/provider.d.ts.map +1 -0
  262. package/dist/provider/provider.js +178 -0
  263. package/dist/provider/theme-script.d.ts +55 -0
  264. package/dist/provider/theme-script.d.ts.map +1 -0
  265. package/dist/provider/theme-script.js +79 -0
  266. package/dist/styles.css +2894 -0
  267. package/dist/theming/index.d.ts +173 -0
  268. package/dist/theming/index.d.ts.map +1 -0
  269. package/dist/theming/index.js +186 -0
  270. package/package.json +89 -18
  271. package/components.json +0 -21
  272. package/public/r/badge.json +0 -26
  273. package/public/r/button.json +0 -26
  274. package/public/r/card.json +0 -25
  275. package/public/r/cta-01.json +0 -44
  276. package/public/r/feature-grid-01.json +0 -44
  277. package/public/r/hero-01.json +0 -44
  278. package/public/r/pricing-01.json +0 -46
  279. package/public/r/registry.json +0 -294
  280. package/public/r/section.json +0 -25
  281. package/public/r/stats-01.json +0 -44
  282. package/registry.json +0 -294
  283. package/src/components/ds/blocks/cta-01/block.json +0 -8
  284. package/src/components/ds/blocks/cta-01/cta.tsx +0 -62
  285. package/src/components/ds/blocks/cta-01/index.tsx +0 -1
  286. package/src/components/ds/blocks/feature-grid-01/block.json +0 -8
  287. package/src/components/ds/blocks/feature-grid-01/feature-grid.tsx +0 -69
  288. package/src/components/ds/blocks/feature-grid-01/index.tsx +0 -1
  289. package/src/components/ds/blocks/hero-01/block.json +0 -8
  290. package/src/components/ds/blocks/hero-01/hero.tsx +0 -85
  291. package/src/components/ds/blocks/hero-01/index.tsx +0 -1
  292. package/src/components/ds/blocks/pricing-01/block.json +0 -8
  293. package/src/components/ds/blocks/pricing-01/index.tsx +0 -1
  294. package/src/components/ds/blocks/pricing-01/pricing.tsx +0 -122
  295. package/src/components/ds/blocks/section.meta.json +0 -6
  296. package/src/components/ds/blocks/section.tsx +0 -86
  297. package/src/components/ds/blocks/stats-01/block.json +0 -8
  298. package/src/components/ds/blocks/stats-01/index.tsx +0 -1
  299. package/src/components/ds/blocks/stats-01/stats.tsx +0 -92
  300. package/src/components/ui/badge.tsx +0 -37
  301. package/src/components/ui/button.tsx +0 -77
  302. package/src/components/ui/card.tsx +0 -65
  303. package/src/lib/utils.ts +0 -6
@@ -1,44 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "cta-01",
4
- "title": "CTA 01 - Filled Banner",
5
- "description": "A closing call to action on a filled primary surface. Headline, supporting line and the action are passed in as props.",
6
- "dependencies": [
7
- "clsx",
8
- "lucide-react",
9
- "tailwind-merge"
10
- ],
11
- "registryDependencies": [
12
- "button"
13
- ],
14
- "files": [
15
- {
16
- "path": "src/components/ds/blocks/cta-01/cta.tsx",
17
- "content": "import { ArrowRight } from 'lucide-react'\n\nimport { Button } from '@/components/ui/button'\nimport { Section, type HeadingLevel } from '@/components/ds/blocks/section'\n\nexport type Cta01Props = {\n title: string\n description?: string\n action?: { label: string; href?: string; variant?: 'default' | 'secondary' | 'outline' }\n /** Heading level for the headline. See `HeadingLevel`. */\n headingLevel?: HeadingLevel\n}\n\n/**\n * A closing call to action on a filled primary surface.\n *\n * The copy and the action are props. It previously shipped the catalog's own\n * pitch (\"Start with one block, keep the tokens\") and a hardcoded \"Browse the\n * catalog\" button, both of which described the library rather than whatever\n * product installed the block.\n */\nexport function Cta01({ title, description, action, headingLevel = 'h2' }: Cta01Props) {\n /*\n * The same mechanism `SectionHeading` uses for its own `as` prop, which this\n * block cannot borrow: its copy sits on a filled `bg-primary` surface, where\n * `SectionHeading`'s muted-surface description colour and `gap-4` would be\n * wrong. So the tag is resolved here and the classes stay surface-specific\n * rather than the heading level being the reason the markup stays hardcoded.\n */\n const Heading = headingLevel\n\n return (\n <Section className=\"py-20\">\n <div className=\"bg-primary text-primary-foreground relative overflow-hidden rounded-2xl px-8 py-16 text-center\">\n <div\n aria-hidden\n className=\"from-primary-foreground/15 pointer-events-none absolute inset-0 bg-gradient-to-tr to-transparent\"\n />\n <div className=\"relative flex flex-col items-center gap-6\">\n <Heading className=\"max-w-2xl text-3xl font-semibold tracking-tight text-balance sm:text-4xl\">\n {title}\n </Heading>\n {description ? (\n <p className=\"max-w-xl text-lg text-pretty opacity-90\">{description}</p>\n ) : null}\n {action ? (\n <Button\n size=\"lg\"\n variant={action.variant ?? 'secondary'}\n className=\"group\"\n >\n {action.label}\n <ArrowRight className=\"motion-safe:transition-transform size-4 group-hover:translate-x-0.5\" />\n </Button>\n ) : null}\n </div>\n </div>\n </Section>\n )\n}\n\nexport default Cta01\n",
18
- "type": "registry:component",
19
- "target": "components/ds/blocks/cta-01/cta.tsx"
20
- },
21
- {
22
- "path": "src/components/ds/blocks/cta-01/index.tsx",
23
- "content": "export { Cta01, default } from './cta'\r\n",
24
- "type": "registry:component",
25
- "target": "components/ds/blocks/cta-01/index.tsx"
26
- },
27
- {
28
- "path": "src/components/ds/blocks/section.tsx",
29
- "content": "import type { ReactNode } from 'react'\nimport { cn } from '@/lib/utils'\n\n/**\n * Container primitive. Every block composes its own section from this so vertical\n * rhythm stays consistent across the catalog instead of being re-invented per block.\n */\nexport function Section({\n className,\n children,\n ...props\n}: React.ComponentProps<'section'>) {\n return (\n <section\n className={cn('py-16 sm:py-24', className)}\n {...props}\n >\n <div className=\"mx-auto w-full max-w-6xl px-6 lg:px-8\">\n {children}\n </div>\n </section>\n )\n}\n\n/**\n * The six heading levels a block can be composed at.\n *\n * Every block takes a `headingLevel` prop typed with this and forwards it to the\n * one heading it renders, so the surrounding document decides where the block\n * sits in the outline rather than the block deciding for itself. `h2` is the\n * default because a block is composed, not a page.\n *\n * A block rendered where the document *already* owns a heading for the same\n * content passes one level deeper. A catalog card already names the block in its\n * own `h2`, so the copy of the block embedded inside that card passes `h3`: the\n * embedded heading then reads as a child of the card that introduces it instead\n * of as a second, competing sibling. This is a fact about where the block was\n * placed, not about the block, which is why it is a prop and not a default.\n */\nexport type HeadingLevel = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'\n\nexport function SectionHeading({\n eyebrow,\n title,\n as: Heading = 'h2',\n description,\n align = 'center',\n className,\n}: {\n eyebrow?: ReactNode\n title: ReactNode\n description?: ReactNode\n align?: 'center' | 'left'\n /**\n * Heading level. Defaults to `h2` because blocks compose under a page heading.\n * A page that renders a block as its primary heading passes `as=\"h1\"` — a\n * document with no `h1` gives screen-reader and search engines no top-level\n * entry point.\n */\n as?: HeadingLevel\n className?: string\n}) {\n return (\n <div\n className={cn(\n 'flex flex-col gap-4',\n align === 'center' ? 'items-center text-center' : 'items-start text-left',\n className,\n )}\n >\n {eyebrow ? (\n <span className=\"text-muted-foreground text-sm font-medium tracking-wide uppercase\">\n {eyebrow}\n </span>\n ) : null}\n <Heading className=\"text-3xl font-semibold tracking-tight text-balance sm:text-4xl\">\n {title}\n </Heading>\n {description ? (\n <p className=\"text-muted-foreground max-w-2xl text-lg text-pretty\">\n {description}\n </p>\n ) : null}\n </div>\n )\n}\n",
30
- "type": "registry:component",
31
- "target": "components/ds/blocks/section.tsx"
32
- },
33
- {
34
- "path": "src/lib/utils.ts",
35
- "content": "import { type ClassValue, clsx } from 'clsx'\nimport { twMerge } from 'tailwind-merge'\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs))\n}\n",
36
- "type": "registry:lib",
37
- "target": "lib/utils.ts"
38
- }
39
- ],
40
- "categories": [
41
- "marketing"
42
- ],
43
- "type": "registry:block"
44
- }
@@ -1,44 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "feature-grid-01",
4
- "title": "Feature Grid 01 - Four Up With Icons",
5
- "description": "A four-up feature grid with icon tiles. Pass the items in; the section heading is optional.",
6
- "dependencies": [
7
- "clsx",
8
- "lucide-react",
9
- "tailwind-merge"
10
- ],
11
- "registryDependencies": [
12
- "card"
13
- ],
14
- "files": [
15
- {
16
- "path": "src/components/ds/blocks/feature-grid-01/feature-grid.tsx",
17
- "content": "import type { LucideIcon } from 'lucide-react'\n\nimport { Card, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'\nimport { Section, SectionHeading, type HeadingLevel } from '@/components/ds/blocks/section'\n\nexport type Feature = {\n icon: LucideIcon\n title: string\n body: string\n}\n\nexport type FeatureGrid01Props = {\n eyebrow?: string\n title?: string\n description?: string\n features: Feature[]\n /** `icon` tiles read well at 2-up; `bare` leans on the type alone. */\n variant?: 'icon' | 'bare'\n /** Heading level for the section title. See `HeadingLevel`. */\n headingLevel?: HeadingLevel\n}\n\n/**\n * A grid of short feature blurbs.\n *\n * The feature list is a prop. It previously hardcoded the catalog's own selling\n * points under the heading \"Why this catalog\", so an installed block argued for\n * the library inside the consumer's product.\n */\nexport function FeatureGrid01({\n eyebrow,\n title,\n description,\n features,\n variant = 'icon',\n headingLevel = 'h2',\n}: FeatureGrid01Props) {\n return (\n <Section>\n {title ? (\n <SectionHeading\n as={headingLevel}\n eyebrow={eyebrow}\n title={title}\n description={description}\n className=\"mb-12\"\n />\n ) : null}\n\n <div className=\"grid gap-6 sm:grid-cols-2\">\n {features.map((feature) => (\n <Card key={feature.title} className=\"gap-4 py-6\">\n <CardHeader>\n {variant === 'icon' ? (\n <span className=\"bg-accent text-accent-foreground mb-2 flex size-10 items-center justify-center rounded-lg\">\n <feature.icon className=\"size-5\" />\n </span>\n ) : null}\n <CardTitle>{feature.title}</CardTitle>\n <CardDescription>{feature.body}</CardDescription>\n </CardHeader>\n </Card>\n ))}\n </div>\n </Section>\n )\n}\n\nexport default FeatureGrid01\n",
18
- "type": "registry:component",
19
- "target": "components/ds/blocks/feature-grid-01/feature-grid.tsx"
20
- },
21
- {
22
- "path": "src/components/ds/blocks/feature-grid-01/index.tsx",
23
- "content": "export { FeatureGrid01, default } from './feature-grid'\r\n",
24
- "type": "registry:component",
25
- "target": "components/ds/blocks/feature-grid-01/index.tsx"
26
- },
27
- {
28
- "path": "src/components/ds/blocks/section.tsx",
29
- "content": "import type { ReactNode } from 'react'\nimport { cn } from '@/lib/utils'\n\n/**\n * Container primitive. Every block composes its own section from this so vertical\n * rhythm stays consistent across the catalog instead of being re-invented per block.\n */\nexport function Section({\n className,\n children,\n ...props\n}: React.ComponentProps<'section'>) {\n return (\n <section\n className={cn('py-16 sm:py-24', className)}\n {...props}\n >\n <div className=\"mx-auto w-full max-w-6xl px-6 lg:px-8\">\n {children}\n </div>\n </section>\n )\n}\n\n/**\n * The six heading levels a block can be composed at.\n *\n * Every block takes a `headingLevel` prop typed with this and forwards it to the\n * one heading it renders, so the surrounding document decides where the block\n * sits in the outline rather than the block deciding for itself. `h2` is the\n * default because a block is composed, not a page.\n *\n * A block rendered where the document *already* owns a heading for the same\n * content passes one level deeper. A catalog card already names the block in its\n * own `h2`, so the copy of the block embedded inside that card passes `h3`: the\n * embedded heading then reads as a child of the card that introduces it instead\n * of as a second, competing sibling. This is a fact about where the block was\n * placed, not about the block, which is why it is a prop and not a default.\n */\nexport type HeadingLevel = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'\n\nexport function SectionHeading({\n eyebrow,\n title,\n as: Heading = 'h2',\n description,\n align = 'center',\n className,\n}: {\n eyebrow?: ReactNode\n title: ReactNode\n description?: ReactNode\n align?: 'center' | 'left'\n /**\n * Heading level. Defaults to `h2` because blocks compose under a page heading.\n * A page that renders a block as its primary heading passes `as=\"h1\"` — a\n * document with no `h1` gives screen-reader and search engines no top-level\n * entry point.\n */\n as?: HeadingLevel\n className?: string\n}) {\n return (\n <div\n className={cn(\n 'flex flex-col gap-4',\n align === 'center' ? 'items-center text-center' : 'items-start text-left',\n className,\n )}\n >\n {eyebrow ? (\n <span className=\"text-muted-foreground text-sm font-medium tracking-wide uppercase\">\n {eyebrow}\n </span>\n ) : null}\n <Heading className=\"text-3xl font-semibold tracking-tight text-balance sm:text-4xl\">\n {title}\n </Heading>\n {description ? (\n <p className=\"text-muted-foreground max-w-2xl text-lg text-pretty\">\n {description}\n </p>\n ) : null}\n </div>\n )\n}\n",
30
- "type": "registry:component",
31
- "target": "components/ds/blocks/section.tsx"
32
- },
33
- {
34
- "path": "src/lib/utils.ts",
35
- "content": "import { type ClassValue, clsx } from 'clsx'\nimport { twMerge } from 'tailwind-merge'\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs))\n}\n",
36
- "type": "registry:lib",
37
- "target": "lib/utils.ts"
38
- }
39
- ],
40
- "categories": [
41
- "marketing"
42
- ],
43
- "type": "registry:block"
44
- }
@@ -1,44 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "hero-01",
4
- "title": "Hero 01 - Centered Marketing Hero",
5
- "description": "A centered hero with an optional eyebrow, headline, supporting line and one or two actions. All copy is passed in as props.",
6
- "dependencies": [
7
- "clsx",
8
- "lucide-react",
9
- "tailwind-merge"
10
- ],
11
- "registryDependencies": [
12
- "button"
13
- ],
14
- "files": [
15
- {
16
- "path": "src/components/ds/blocks/hero-01/hero.tsx",
17
- "content": "import { ArrowRight } from 'lucide-react'\n\nimport { Button } from '@/components/ui/button'\nimport { Section, SectionHeading, type HeadingLevel } from '@/components/ds/blocks/section'\n\nexport type HeroAction = {\n label: string\n href?: string\n variant?: 'default' | 'outline' | 'secondary' | 'ghost'\n}\n\nexport type Hero01Props = {\n /**\n * Optional label above the headline. Intentionally has no default: an earlier\n * version shipped a hardcoded \"Now in open beta\" pill, which meant every\n * consumer who installed this block inherited a status badge making a claim\n * about their product. Pass one if you mean it.\n */\n eyebrow?: string\n title: string\n description?: string\n actions?: HeroAction[]\n /**\n * Heading level for the title. Defaults to `h2` because a block is composed,\n * not a page: it installs into a consumer's layout via `shadcn add` and renders\n * inside catalog previews, so the surrounding document already owns the `h1`.\n * A page that uses this block as its top-level heading opts in with\n * `headingLevel=\"h1\"`; a document that already names this section in its own\n * heading passes one level deeper. See `HeadingLevel`.\n */\n headingLevel?: HeadingLevel\n}\n\nexport function Hero01({\n eyebrow,\n title,\n description,\n actions = [],\n headingLevel = 'h2',\n}: Hero01Props) {\n return (\n <Section className=\"relative overflow-hidden\">\n <div\n aria-hidden\n className=\"from-primary/5 pointer-events-none absolute inset-0 -z-10 bg-gradient-to-b to-transparent\"\n />\n <div className=\"flex flex-col items-center gap-10 text-center\">\n {eyebrow ? (\n <span className=\"bg-muted text-muted-foreground rounded-full px-3 py-1 text-xs font-medium\">\n {eyebrow}\n </span>\n ) : null}\n\n <SectionHeading\n as={headingLevel}\n title={title}\n description={description}\n />\n\n {actions.length ? (\n <div className=\"flex flex-col gap-3 sm:flex-row\">\n {actions.map((action, index) => (\n // Positional, for the same reason as `pricing-01`'s feature list:\n // the label is display content, and two actions may share one.\n // Safe here because the list is static and never reordered.\n <Button\n key={index}\n size=\"lg\"\n variant={action.variant ?? (index === 0 ? 'default' : 'outline')}\n className=\"group\"\n >\n {action.label}\n {index === 0 ? (\n <ArrowRight className=\"motion-safe:transition-transform size-4 group-hover:translate-x-0.5\" />\n ) : null}\n </Button>\n ))}\n </div>\n ) : null}\n </div>\n </Section>\n )\n}\n\nexport default Hero01\n",
18
- "type": "registry:component",
19
- "target": "components/ds/blocks/hero-01/hero.tsx"
20
- },
21
- {
22
- "path": "src/components/ds/blocks/hero-01/index.tsx",
23
- "content": "export { Hero01, default } from './hero'\n",
24
- "type": "registry:component",
25
- "target": "components/ds/blocks/hero-01/index.tsx"
26
- },
27
- {
28
- "path": "src/components/ds/blocks/section.tsx",
29
- "content": "import type { ReactNode } from 'react'\nimport { cn } from '@/lib/utils'\n\n/**\n * Container primitive. Every block composes its own section from this so vertical\n * rhythm stays consistent across the catalog instead of being re-invented per block.\n */\nexport function Section({\n className,\n children,\n ...props\n}: React.ComponentProps<'section'>) {\n return (\n <section\n className={cn('py-16 sm:py-24', className)}\n {...props}\n >\n <div className=\"mx-auto w-full max-w-6xl px-6 lg:px-8\">\n {children}\n </div>\n </section>\n )\n}\n\n/**\n * The six heading levels a block can be composed at.\n *\n * Every block takes a `headingLevel` prop typed with this and forwards it to the\n * one heading it renders, so the surrounding document decides where the block\n * sits in the outline rather than the block deciding for itself. `h2` is the\n * default because a block is composed, not a page.\n *\n * A block rendered where the document *already* owns a heading for the same\n * content passes one level deeper. A catalog card already names the block in its\n * own `h2`, so the copy of the block embedded inside that card passes `h3`: the\n * embedded heading then reads as a child of the card that introduces it instead\n * of as a second, competing sibling. This is a fact about where the block was\n * placed, not about the block, which is why it is a prop and not a default.\n */\nexport type HeadingLevel = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'\n\nexport function SectionHeading({\n eyebrow,\n title,\n as: Heading = 'h2',\n description,\n align = 'center',\n className,\n}: {\n eyebrow?: ReactNode\n title: ReactNode\n description?: ReactNode\n align?: 'center' | 'left'\n /**\n * Heading level. Defaults to `h2` because blocks compose under a page heading.\n * A page that renders a block as its primary heading passes `as=\"h1\"` — a\n * document with no `h1` gives screen-reader and search engines no top-level\n * entry point.\n */\n as?: HeadingLevel\n className?: string\n}) {\n return (\n <div\n className={cn(\n 'flex flex-col gap-4',\n align === 'center' ? 'items-center text-center' : 'items-start text-left',\n className,\n )}\n >\n {eyebrow ? (\n <span className=\"text-muted-foreground text-sm font-medium tracking-wide uppercase\">\n {eyebrow}\n </span>\n ) : null}\n <Heading className=\"text-3xl font-semibold tracking-tight text-balance sm:text-4xl\">\n {title}\n </Heading>\n {description ? (\n <p className=\"text-muted-foreground max-w-2xl text-lg text-pretty\">\n {description}\n </p>\n ) : null}\n </div>\n )\n}\n",
30
- "type": "registry:component",
31
- "target": "components/ds/blocks/section.tsx"
32
- },
33
- {
34
- "path": "src/lib/utils.ts",
35
- "content": "import { type ClassValue, clsx } from 'clsx'\nimport { twMerge } from 'tailwind-merge'\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs))\n}\n",
36
- "type": "registry:lib",
37
- "target": "lib/utils.ts"
38
- }
39
- ],
40
- "categories": [
41
- "marketing"
42
- ],
43
- "type": "registry:block"
44
- }
@@ -1,46 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "pricing-01",
4
- "title": "Pricing 01 - Three Tier With Highlight",
5
- "description": "A three-up plan comparison with one plan lifted. Plans, prices, features and actions are all passed in as props.",
6
- "dependencies": [
7
- "clsx",
8
- "lucide-react",
9
- "tailwind-merge"
10
- ],
11
- "registryDependencies": [
12
- "button",
13
- "badge",
14
- "card"
15
- ],
16
- "files": [
17
- {
18
- "path": "src/components/ds/blocks/pricing-01/index.tsx",
19
- "content": "export { Pricing01, default } from './pricing'\r\n",
20
- "type": "registry:component",
21
- "target": "components/ds/blocks/pricing-01/index.tsx"
22
- },
23
- {
24
- "path": "src/components/ds/blocks/pricing-01/pricing.tsx",
25
- "content": "import { Check } from 'lucide-react'\n\nimport { Badge } from '@/components/ui/badge'\nimport { Button } from '@/components/ui/button'\nimport {\n Card,\n CardContent,\n CardDescription,\n CardFooter,\n CardHeader,\n CardTitle,\n} from '@/components/ui/card'\nimport { Section, SectionHeading, type HeadingLevel } from '@/components/ds/blocks/section'\n\nexport type Plan = {\n name: string\n price: string\n /** Rendered after the price, e.g. \" / month\". Omit for a one-off figure. */\n period?: string\n body?: string\n features: string[]\n cta: string\n /** Lifts the plan with a primary border and a filled button. */\n featured?: boolean\n /** Overrides the \"Popular\" badge on the featured plan. */\n badge?: string\n}\n\nexport type Pricing01Props = {\n eyebrow?: string\n title?: string\n description?: string\n plans: Plan[]\n /** Heading level for the section title. See `HeadingLevel`. */\n headingLevel?: HeadingLevel\n}\n\n/**\n * A three-up plan comparison.\n *\n * Every plan is a prop, including the price and the call to action. It previously\n * hardcoded \"$0 / $24 / $68\", \"Talk to us\", \"MIT licence\" and \"Figma library\",\n * and shipped a heading reading \"Pricing\" above a title already reading \"Pick a\n * plan\". A shared library has no plans to sell, so those strings described a\n * business that does not exist here, and every consumer who installed the block\n * inherited them.\n */\nexport function Pricing01({\n eyebrow,\n title,\n description,\n plans,\n headingLevel = 'h2',\n}: Pricing01Props) {\n return (\n <Section>\n {title ? (\n <SectionHeading\n as={headingLevel}\n eyebrow={eyebrow}\n title={title}\n description={description}\n className=\"mb-12\"\n />\n ) : null}\n\n <div className=\"grid gap-6 lg:grid-cols-3\">\n {plans.map((plan) => (\n <Card\n key={plan.name}\n className={plan.featured ? 'border-primary shadow-md' : undefined}\n >\n <CardHeader>\n <div className=\"flex items-center justify-between\">\n <CardTitle>{plan.name}</CardTitle>\n {plan.featured ? <Badge>{plan.badge ?? 'Popular'}</Badge> : null}\n </div>\n {plan.body ? <CardDescription>{plan.body}</CardDescription> : null}\n <p className=\"mt-2 text-3xl font-semibold tracking-tight\">\n {plan.price}\n {plan.period ? (\n <span className=\"text-muted-foreground text-sm font-normal\">\n {plan.period}\n </span>\n ) : null}\n </p>\n </CardHeader>\n\n <CardContent className=\"flex flex-col gap-3\">\n {/*\n Keyed by position, not by the feature string. The string is display\n content rather than identity, and a plan is free to list the same\n line twice; keying on it logged React's duplicate-key error and let\n React drop and reorder rows. `key={index}` is correct here because\n this list is static: it is rendered once from props and never\n reordered, filtered or appended to, so there is no state to\n preserve across a reorder that a positional key could lose.\n */}\n {plan.features.map((feature, index) => (\n <p key={index} className=\"flex items-start gap-2 text-sm\">\n <Check className=\"text-success mt-0.5 size-4 shrink-0\" />\n {feature}\n </p>\n ))}\n </CardContent>\n\n <CardFooter className=\"mt-auto\">\n <Button\n className=\"w-full\"\n variant={plan.featured ? 'default' : 'outline'}\n >\n {plan.cta}\n </Button>\n </CardFooter>\n </Card>\n ))}\n </div>\n </Section>\n )\n}\n\nexport default Pricing01\n",
26
- "type": "registry:component",
27
- "target": "components/ds/blocks/pricing-01/pricing.tsx"
28
- },
29
- {
30
- "path": "src/components/ds/blocks/section.tsx",
31
- "content": "import type { ReactNode } from 'react'\nimport { cn } from '@/lib/utils'\n\n/**\n * Container primitive. Every block composes its own section from this so vertical\n * rhythm stays consistent across the catalog instead of being re-invented per block.\n */\nexport function Section({\n className,\n children,\n ...props\n}: React.ComponentProps<'section'>) {\n return (\n <section\n className={cn('py-16 sm:py-24', className)}\n {...props}\n >\n <div className=\"mx-auto w-full max-w-6xl px-6 lg:px-8\">\n {children}\n </div>\n </section>\n )\n}\n\n/**\n * The six heading levels a block can be composed at.\n *\n * Every block takes a `headingLevel` prop typed with this and forwards it to the\n * one heading it renders, so the surrounding document decides where the block\n * sits in the outline rather than the block deciding for itself. `h2` is the\n * default because a block is composed, not a page.\n *\n * A block rendered where the document *already* owns a heading for the same\n * content passes one level deeper. A catalog card already names the block in its\n * own `h2`, so the copy of the block embedded inside that card passes `h3`: the\n * embedded heading then reads as a child of the card that introduces it instead\n * of as a second, competing sibling. This is a fact about where the block was\n * placed, not about the block, which is why it is a prop and not a default.\n */\nexport type HeadingLevel = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'\n\nexport function SectionHeading({\n eyebrow,\n title,\n as: Heading = 'h2',\n description,\n align = 'center',\n className,\n}: {\n eyebrow?: ReactNode\n title: ReactNode\n description?: ReactNode\n align?: 'center' | 'left'\n /**\n * Heading level. Defaults to `h2` because blocks compose under a page heading.\n * A page that renders a block as its primary heading passes `as=\"h1\"` — a\n * document with no `h1` gives screen-reader and search engines no top-level\n * entry point.\n */\n as?: HeadingLevel\n className?: string\n}) {\n return (\n <div\n className={cn(\n 'flex flex-col gap-4',\n align === 'center' ? 'items-center text-center' : 'items-start text-left',\n className,\n )}\n >\n {eyebrow ? (\n <span className=\"text-muted-foreground text-sm font-medium tracking-wide uppercase\">\n {eyebrow}\n </span>\n ) : null}\n <Heading className=\"text-3xl font-semibold tracking-tight text-balance sm:text-4xl\">\n {title}\n </Heading>\n {description ? (\n <p className=\"text-muted-foreground max-w-2xl text-lg text-pretty\">\n {description}\n </p>\n ) : null}\n </div>\n )\n}\n",
32
- "type": "registry:component",
33
- "target": "components/ds/blocks/section.tsx"
34
- },
35
- {
36
- "path": "src/lib/utils.ts",
37
- "content": "import { type ClassValue, clsx } from 'clsx'\nimport { twMerge } from 'tailwind-merge'\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs))\n}\n",
38
- "type": "registry:lib",
39
- "target": "lib/utils.ts"
40
- }
41
- ],
42
- "categories": [
43
- "marketing"
44
- ],
45
- "type": "registry:block"
46
- }
@@ -1,294 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry.json",
3
- "name": "nanisoft",
4
- "homepage": "https://prism.nanisoft.com",
5
- "items": [
6
- {
7
- "name": "badge",
8
- "title": "Badge",
9
- "description": "Shared badge primitive. Installed automatically as a dependency of any block that uses it.",
10
- "type": "registry:component",
11
- "dependencies": [
12
- "class-variance-authority",
13
- "clsx",
14
- "tailwind-merge"
15
- ],
16
- "files": [
17
- {
18
- "path": "src/components/ui/badge.tsx",
19
- "type": "registry:component",
20
- "target": "components/ui/badge.tsx"
21
- },
22
- {
23
- "path": "src/lib/utils.ts",
24
- "type": "registry:lib",
25
- "target": "lib/utils.ts"
26
- }
27
- ]
28
- },
29
- {
30
- "name": "button",
31
- "title": "Button",
32
- "description": "Shared button primitive. Installed automatically as a dependency of any block that uses it.",
33
- "type": "registry:component",
34
- "dependencies": [
35
- "class-variance-authority",
36
- "clsx",
37
- "tailwind-merge"
38
- ],
39
- "files": [
40
- {
41
- "path": "src/components/ui/button.tsx",
42
- "type": "registry:component",
43
- "target": "components/ui/button.tsx"
44
- },
45
- {
46
- "path": "src/lib/utils.ts",
47
- "type": "registry:lib",
48
- "target": "lib/utils.ts"
49
- }
50
- ]
51
- },
52
- {
53
- "name": "card",
54
- "title": "Card",
55
- "description": "Shared card primitive. Installed automatically as a dependency of any block that uses it.",
56
- "type": "registry:component",
57
- "dependencies": [
58
- "clsx",
59
- "tailwind-merge"
60
- ],
61
- "files": [
62
- {
63
- "path": "src/components/ui/card.tsx",
64
- "type": "registry:component",
65
- "target": "components/ui/card.tsx"
66
- },
67
- {
68
- "path": "src/lib/utils.ts",
69
- "type": "registry:lib",
70
- "target": "lib/utils.ts"
71
- }
72
- ]
73
- },
74
- {
75
- "name": "cta-01",
76
- "title": "CTA 01 - Filled Banner",
77
- "description": "A closing call to action on a filled primary surface. Headline, supporting line and the action are passed in as props.",
78
- "type": "registry:block",
79
- "categories": [
80
- "marketing"
81
- ],
82
- "registryDependencies": [
83
- "button"
84
- ],
85
- "dependencies": [
86
- "clsx",
87
- "lucide-react",
88
- "tailwind-merge"
89
- ],
90
- "files": [
91
- {
92
- "path": "src/components/ds/blocks/cta-01/cta.tsx",
93
- "type": "registry:component",
94
- "target": "components/ds/blocks/cta-01/cta.tsx"
95
- },
96
- {
97
- "path": "src/components/ds/blocks/cta-01/index.tsx",
98
- "type": "registry:component",
99
- "target": "components/ds/blocks/cta-01/index.tsx"
100
- },
101
- {
102
- "path": "src/components/ds/blocks/section.tsx",
103
- "type": "registry:component",
104
- "target": "components/ds/blocks/section.tsx"
105
- },
106
- {
107
- "path": "src/lib/utils.ts",
108
- "type": "registry:lib",
109
- "target": "lib/utils.ts"
110
- }
111
- ]
112
- },
113
- {
114
- "name": "feature-grid-01",
115
- "title": "Feature Grid 01 - Four Up With Icons",
116
- "description": "A four-up feature grid with icon tiles. Pass the items in; the section heading is optional.",
117
- "type": "registry:block",
118
- "categories": [
119
- "marketing"
120
- ],
121
- "registryDependencies": [
122
- "card"
123
- ],
124
- "dependencies": [
125
- "clsx",
126
- "lucide-react",
127
- "tailwind-merge"
128
- ],
129
- "files": [
130
- {
131
- "path": "src/components/ds/blocks/feature-grid-01/feature-grid.tsx",
132
- "type": "registry:component",
133
- "target": "components/ds/blocks/feature-grid-01/feature-grid.tsx"
134
- },
135
- {
136
- "path": "src/components/ds/blocks/feature-grid-01/index.tsx",
137
- "type": "registry:component",
138
- "target": "components/ds/blocks/feature-grid-01/index.tsx"
139
- },
140
- {
141
- "path": "src/components/ds/blocks/section.tsx",
142
- "type": "registry:component",
143
- "target": "components/ds/blocks/section.tsx"
144
- },
145
- {
146
- "path": "src/lib/utils.ts",
147
- "type": "registry:lib",
148
- "target": "lib/utils.ts"
149
- }
150
- ]
151
- },
152
- {
153
- "name": "hero-01",
154
- "title": "Hero 01 - Centered Marketing Hero",
155
- "description": "A centered hero with an optional eyebrow, headline, supporting line and one or two actions. All copy is passed in as props.",
156
- "type": "registry:block",
157
- "categories": [
158
- "marketing"
159
- ],
160
- "registryDependencies": [
161
- "button"
162
- ],
163
- "dependencies": [
164
- "clsx",
165
- "lucide-react",
166
- "tailwind-merge"
167
- ],
168
- "files": [
169
- {
170
- "path": "src/components/ds/blocks/hero-01/hero.tsx",
171
- "type": "registry:component",
172
- "target": "components/ds/blocks/hero-01/hero.tsx"
173
- },
174
- {
175
- "path": "src/components/ds/blocks/hero-01/index.tsx",
176
- "type": "registry:component",
177
- "target": "components/ds/blocks/hero-01/index.tsx"
178
- },
179
- {
180
- "path": "src/components/ds/blocks/section.tsx",
181
- "type": "registry:component",
182
- "target": "components/ds/blocks/section.tsx"
183
- },
184
- {
185
- "path": "src/lib/utils.ts",
186
- "type": "registry:lib",
187
- "target": "lib/utils.ts"
188
- }
189
- ]
190
- },
191
- {
192
- "name": "pricing-01",
193
- "title": "Pricing 01 - Three Tier With Highlight",
194
- "description": "A three-up plan comparison with one plan lifted. Plans, prices, features and actions are all passed in as props.",
195
- "type": "registry:block",
196
- "categories": [
197
- "marketing"
198
- ],
199
- "registryDependencies": [
200
- "button",
201
- "badge",
202
- "card"
203
- ],
204
- "dependencies": [
205
- "clsx",
206
- "lucide-react",
207
- "tailwind-merge"
208
- ],
209
- "files": [
210
- {
211
- "path": "src/components/ds/blocks/pricing-01/index.tsx",
212
- "type": "registry:component",
213
- "target": "components/ds/blocks/pricing-01/index.tsx"
214
- },
215
- {
216
- "path": "src/components/ds/blocks/pricing-01/pricing.tsx",
217
- "type": "registry:component",
218
- "target": "components/ds/blocks/pricing-01/pricing.tsx"
219
- },
220
- {
221
- "path": "src/components/ds/blocks/section.tsx",
222
- "type": "registry:component",
223
- "target": "components/ds/blocks/section.tsx"
224
- },
225
- {
226
- "path": "src/lib/utils.ts",
227
- "type": "registry:lib",
228
- "target": "lib/utils.ts"
229
- }
230
- ]
231
- },
232
- {
233
- "name": "section",
234
- "title": "Section",
235
- "description": "Container and heading primitives that give every block a consistent vertical rhythm.",
236
- "type": "registry:component",
237
- "dependencies": [
238
- "clsx",
239
- "tailwind-merge"
240
- ],
241
- "files": [
242
- {
243
- "path": "src/components/ds/blocks/section.tsx",
244
- "type": "registry:component",
245
- "target": "components/ds/blocks/section.tsx"
246
- },
247
- {
248
- "path": "src/lib/utils.ts",
249
- "type": "registry:lib",
250
- "target": "lib/utils.ts"
251
- }
252
- ]
253
- },
254
- {
255
- "name": "stats-01",
256
- "title": "Stats 01 - KPI Row With Trend",
257
- "description": "A four-up KPI row with optional directional deltas. Every metric is passed in; the block ships no sample data.",
258
- "type": "registry:block",
259
- "categories": [
260
- "application"
261
- ],
262
- "registryDependencies": [
263
- "card"
264
- ],
265
- "dependencies": [
266
- "clsx",
267
- "lucide-react",
268
- "tailwind-merge"
269
- ],
270
- "files": [
271
- {
272
- "path": "src/components/ds/blocks/stats-01/index.tsx",
273
- "type": "registry:component",
274
- "target": "components/ds/blocks/stats-01/index.tsx"
275
- },
276
- {
277
- "path": "src/components/ds/blocks/stats-01/stats.tsx",
278
- "type": "registry:component",
279
- "target": "components/ds/blocks/stats-01/stats.tsx"
280
- },
281
- {
282
- "path": "src/components/ds/blocks/section.tsx",
283
- "type": "registry:component",
284
- "target": "components/ds/blocks/section.tsx"
285
- },
286
- {
287
- "path": "src/lib/utils.ts",
288
- "type": "registry:lib",
289
- "target": "lib/utils.ts"
290
- }
291
- ]
292
- }
293
- ]
294
- }
@@ -1,25 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "section",
4
- "title": "Section",
5
- "description": "Container and heading primitives that give every block a consistent vertical rhythm.",
6
- "dependencies": [
7
- "clsx",
8
- "tailwind-merge"
9
- ],
10
- "files": [
11
- {
12
- "path": "src/components/ds/blocks/section.tsx",
13
- "content": "import type { ReactNode } from 'react'\nimport { cn } from '@/lib/utils'\n\n/**\n * Container primitive. Every block composes its own section from this so vertical\n * rhythm stays consistent across the catalog instead of being re-invented per block.\n */\nexport function Section({\n className,\n children,\n ...props\n}: React.ComponentProps<'section'>) {\n return (\n <section\n className={cn('py-16 sm:py-24', className)}\n {...props}\n >\n <div className=\"mx-auto w-full max-w-6xl px-6 lg:px-8\">\n {children}\n </div>\n </section>\n )\n}\n\n/**\n * The six heading levels a block can be composed at.\n *\n * Every block takes a `headingLevel` prop typed with this and forwards it to the\n * one heading it renders, so the surrounding document decides where the block\n * sits in the outline rather than the block deciding for itself. `h2` is the\n * default because a block is composed, not a page.\n *\n * A block rendered where the document *already* owns a heading for the same\n * content passes one level deeper. A catalog card already names the block in its\n * own `h2`, so the copy of the block embedded inside that card passes `h3`: the\n * embedded heading then reads as a child of the card that introduces it instead\n * of as a second, competing sibling. This is a fact about where the block was\n * placed, not about the block, which is why it is a prop and not a default.\n */\nexport type HeadingLevel = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'\n\nexport function SectionHeading({\n eyebrow,\n title,\n as: Heading = 'h2',\n description,\n align = 'center',\n className,\n}: {\n eyebrow?: ReactNode\n title: ReactNode\n description?: ReactNode\n align?: 'center' | 'left'\n /**\n * Heading level. Defaults to `h2` because blocks compose under a page heading.\n * A page that renders a block as its primary heading passes `as=\"h1\"` — a\n * document with no `h1` gives screen-reader and search engines no top-level\n * entry point.\n */\n as?: HeadingLevel\n className?: string\n}) {\n return (\n <div\n className={cn(\n 'flex flex-col gap-4',\n align === 'center' ? 'items-center text-center' : 'items-start text-left',\n className,\n )}\n >\n {eyebrow ? (\n <span className=\"text-muted-foreground text-sm font-medium tracking-wide uppercase\">\n {eyebrow}\n </span>\n ) : null}\n <Heading className=\"text-3xl font-semibold tracking-tight text-balance sm:text-4xl\">\n {title}\n </Heading>\n {description ? (\n <p className=\"text-muted-foreground max-w-2xl text-lg text-pretty\">\n {description}\n </p>\n ) : null}\n </div>\n )\n}\n",
14
- "type": "registry:component",
15
- "target": "components/ds/blocks/section.tsx"
16
- },
17
- {
18
- "path": "src/lib/utils.ts",
19
- "content": "import { type ClassValue, clsx } from 'clsx'\nimport { twMerge } from 'tailwind-merge'\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs))\n}\n",
20
- "type": "registry:lib",
21
- "target": "lib/utils.ts"
22
- }
23
- ],
24
- "type": "registry:component"
25
- }
@@ -1,44 +0,0 @@
1
- {
2
- "$schema": "https://ui.shadcn.com/schema/registry-item.json",
3
- "name": "stats-01",
4
- "title": "Stats 01 - KPI Row With Trend",
5
- "description": "A four-up KPI row with optional directional deltas. Every metric is passed in; the block ships no sample data.",
6
- "dependencies": [
7
- "clsx",
8
- "lucide-react",
9
- "tailwind-merge"
10
- ],
11
- "registryDependencies": [
12
- "card"
13
- ],
14
- "files": [
15
- {
16
- "path": "src/components/ds/blocks/stats-01/index.tsx",
17
- "content": "export { Stats01, default } from './stats'\r\n",
18
- "type": "registry:component",
19
- "target": "components/ds/blocks/stats-01/index.tsx"
20
- },
21
- {
22
- "path": "src/components/ds/blocks/stats-01/stats.tsx",
23
- "content": "import { ArrowDownRight, ArrowUpRight, Minus } from 'lucide-react'\n\nimport { Card, CardContent } from '@/components/ui/card'\nimport { Section, SectionHeading, type HeadingLevel } from '@/components/ds/blocks/section'\n\nexport type Stat = {\n label: string\n value: string\n /** Percentage change. Positive reads as growth, negative as decline. */\n delta?: number\n /** Period the delta compares against, e.g. \"vs last month\". */\n hint?: string\n}\n\nexport type Stats01Props = {\n eyebrow?: string\n title?: string\n stats: Stat[]\n /** Heading level for the section title. See `HeadingLevel`. */\n headingLevel?: HeadingLevel\n}\n\nfunction Delta({ value }: { value: number }) {\n if (value === 0) {\n return (\n <span className=\"text-muted-foreground flex items-center gap-1 text-xs\">\n <Minus className=\"size-3\" />\n 0%\n </span>\n )\n }\n const up = value > 0\n const Icon = up ? ArrowUpRight : ArrowDownRight\n return (\n <span\n className={\n up\n ? 'text-success flex items-center gap-1 text-xs'\n : 'text-destructive flex items-center gap-1 text-xs'\n }\n >\n <Icon className=\"size-3\" />\n {Math.abs(value)}%\n </span>\n )\n}\n\n/**\n * A KPI row. Every number is a prop.\n *\n * This block used to carry a hardcoded set reading \"128 blocks shipped\" and \"9.4k\n * weekly installs\". Those were invented figures about a library nobody installs\n * yet, and because they lived in the component rather than at the call site, a\n * consumer who installed the block shipped fabricated metrics into their own\n * dashboard. A stat block with invented stats in it is worse than no stat block.\n */\nexport function Stats01({ eyebrow, title, stats, headingLevel = 'h2' }: Stats01Props) {\n return (\n <Section>\n {title ? (\n <SectionHeading\n as={headingLevel}\n eyebrow={eyebrow}\n title={title}\n align=\"left\"\n className=\"mb-10\"\n />\n ) : null}\n\n <div className=\"grid gap-4 sm:grid-cols-2 lg:grid-cols-4\">\n {stats.map((stat) => (\n <Card key={stat.label} className=\"gap-2 py-5\">\n <CardContent className=\"flex flex-col gap-1\">\n <span className=\"text-muted-foreground text-sm\">{stat.label}</span>\n <span className=\"text-2xl font-semibold tracking-tight\">{stat.value}</span>\n {stat.delta === undefined && !stat.hint ? null : (\n <div className=\"flex items-center gap-2\">\n {stat.delta === undefined ? null : <Delta value={stat.delta} />}\n {stat.hint ? (\n <span className=\"text-muted-foreground text-xs\">{stat.hint}</span>\n ) : null}\n </div>\n )}\n </CardContent>\n </Card>\n ))}\n </div>\n </Section>\n )\n}\n\nexport default Stats01\n",
24
- "type": "registry:component",
25
- "target": "components/ds/blocks/stats-01/stats.tsx"
26
- },
27
- {
28
- "path": "src/components/ds/blocks/section.tsx",
29
- "content": "import type { ReactNode } from 'react'\nimport { cn } from '@/lib/utils'\n\n/**\n * Container primitive. Every block composes its own section from this so vertical\n * rhythm stays consistent across the catalog instead of being re-invented per block.\n */\nexport function Section({\n className,\n children,\n ...props\n}: React.ComponentProps<'section'>) {\n return (\n <section\n className={cn('py-16 sm:py-24', className)}\n {...props}\n >\n <div className=\"mx-auto w-full max-w-6xl px-6 lg:px-8\">\n {children}\n </div>\n </section>\n )\n}\n\n/**\n * The six heading levels a block can be composed at.\n *\n * Every block takes a `headingLevel` prop typed with this and forwards it to the\n * one heading it renders, so the surrounding document decides where the block\n * sits in the outline rather than the block deciding for itself. `h2` is the\n * default because a block is composed, not a page.\n *\n * A block rendered where the document *already* owns a heading for the same\n * content passes one level deeper. A catalog card already names the block in its\n * own `h2`, so the copy of the block embedded inside that card passes `h3`: the\n * embedded heading then reads as a child of the card that introduces it instead\n * of as a second, competing sibling. This is a fact about where the block was\n * placed, not about the block, which is why it is a prop and not a default.\n */\nexport type HeadingLevel = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'\n\nexport function SectionHeading({\n eyebrow,\n title,\n as: Heading = 'h2',\n description,\n align = 'center',\n className,\n}: {\n eyebrow?: ReactNode\n title: ReactNode\n description?: ReactNode\n align?: 'center' | 'left'\n /**\n * Heading level. Defaults to `h2` because blocks compose under a page heading.\n * A page that renders a block as its primary heading passes `as=\"h1\"` — a\n * document with no `h1` gives screen-reader and search engines no top-level\n * entry point.\n */\n as?: HeadingLevel\n className?: string\n}) {\n return (\n <div\n className={cn(\n 'flex flex-col gap-4',\n align === 'center' ? 'items-center text-center' : 'items-start text-left',\n className,\n )}\n >\n {eyebrow ? (\n <span className=\"text-muted-foreground text-sm font-medium tracking-wide uppercase\">\n {eyebrow}\n </span>\n ) : null}\n <Heading className=\"text-3xl font-semibold tracking-tight text-balance sm:text-4xl\">\n {title}\n </Heading>\n {description ? (\n <p className=\"text-muted-foreground max-w-2xl text-lg text-pretty\">\n {description}\n </p>\n ) : null}\n </div>\n )\n}\n",
30
- "type": "registry:component",
31
- "target": "components/ds/blocks/section.tsx"
32
- },
33
- {
34
- "path": "src/lib/utils.ts",
35
- "content": "import { type ClassValue, clsx } from 'clsx'\nimport { twMerge } from 'tailwind-merge'\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs))\n}\n",
36
- "type": "registry:lib",
37
- "target": "lib/utils.ts"
38
- }
39
- ],
40
- "categories": [
41
- "application"
42
- ],
43
- "type": "registry:block"
44
- }