softricity-ui 0.0.0-stage → 0.1.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 (341) hide show
  1. package/README.md +82 -2
  2. package/lib/cli.mjs +322 -0
  3. package/lib/prompt-lib.mjs +215 -0
  4. package/package.json +33 -4
  5. package/registry/assets/fonts/Urbanist_500Medium.ttf +0 -0
  6. package/registry/assets/fonts/Urbanist_600SemiBold.ttf +0 -0
  7. package/registry/assets/fonts/Urbanist_700Bold.ttf +0 -0
  8. package/registry/assets/fonts/urbanist-latin.woff2 +0 -0
  9. package/registry/catalog.md +122 -0
  10. package/registry/components/charts/area-chart/AreaChart.tsx +153 -0
  11. package/registry/components/charts/area-chart/demo.tsx +18 -0
  12. package/registry/components/charts/area-chart/meta.json +17 -0
  13. package/registry/components/charts/bar-chart/BarChart.tsx +76 -0
  14. package/registry/components/charts/bar-chart/demo.tsx +18 -0
  15. package/registry/components/charts/bar-chart/meta.json +19 -0
  16. package/registry/components/charts/candlestick-chart/CandlestickChart.tsx +196 -0
  17. package/registry/components/charts/candlestick-chart/demo.tsx +39 -0
  18. package/registry/components/charts/candlestick-chart/meta.json +16 -0
  19. package/registry/components/charts/capsule-chart/CapsuleChart.tsx +89 -0
  20. package/registry/components/charts/capsule-chart/demo.tsx +15 -0
  21. package/registry/components/charts/capsule-chart/meta.json +17 -0
  22. package/registry/components/charts/funnel-chart/FunnelChart.tsx +59 -0
  23. package/registry/components/charts/funnel-chart/demo.tsx +14 -0
  24. package/registry/components/charts/funnel-chart/meta.json +16 -0
  25. package/registry/components/charts/gauge-chart/GaugeChart.tsx +89 -0
  26. package/registry/components/charts/gauge-chart/demo.tsx +12 -0
  27. package/registry/components/charts/gauge-chart/meta.json +17 -0
  28. package/registry/components/charts/ring/Ring.tsx +52 -0
  29. package/registry/components/charts/ring/demo.tsx +13 -0
  30. package/registry/components/charts/ring/meta.json +18 -0
  31. package/registry/components/charts/sparkline/Sparkline.tsx +41 -0
  32. package/registry/components/charts/sparkline/demo.tsx +12 -0
  33. package/registry/components/charts/sparkline/meta.json +18 -0
  34. package/registry/components/data-display/accordion/Accordion.tsx +68 -0
  35. package/registry/components/data-display/accordion/demo.tsx +13 -0
  36. package/registry/components/data-display/accordion/meta.json +18 -0
  37. package/registry/components/data-display/action-list/ActionList.tsx +55 -0
  38. package/registry/components/data-display/action-list/demo.tsx +24 -0
  39. package/registry/components/data-display/action-list/meta.json +17 -0
  40. package/registry/components/data-display/activity-feed/ActivityFeed.tsx +56 -0
  41. package/registry/components/data-display/activity-feed/demo.tsx +17 -0
  42. package/registry/components/data-display/activity-feed/meta.json +14 -0
  43. package/registry/components/data-display/breakdown-list/BreakdownList.tsx +58 -0
  44. package/registry/components/data-display/breakdown-list/demo.tsx +14 -0
  45. package/registry/components/data-display/breakdown-list/meta.json +17 -0
  46. package/registry/components/data-display/card/Card.tsx +51 -0
  47. package/registry/components/data-display/card/demo.tsx +16 -0
  48. package/registry/components/data-display/card/meta.json +19 -0
  49. package/registry/components/data-display/change/Change.tsx +35 -0
  50. package/registry/components/data-display/change/demo.tsx +12 -0
  51. package/registry/components/data-display/change/meta.json +17 -0
  52. package/registry/components/data-display/count-number/CountNumber.tsx +12 -0
  53. package/registry/components/data-display/count-number/demo.tsx +16 -0
  54. package/registry/components/data-display/count-number/meta.json +16 -0
  55. package/registry/components/data-display/data-table/DataTable.tsx +83 -0
  56. package/registry/components/data-display/data-table/demo.tsx +30 -0
  57. package/registry/components/data-display/data-table/meta.json +18 -0
  58. package/registry/components/data-display/description-list/DescriptionList.tsx +16 -0
  59. package/registry/components/data-display/description-list/demo.tsx +10 -0
  60. package/registry/components/data-display/description-list/meta.json +13 -0
  61. package/registry/components/data-display/empty-state/EmptyState.tsx +14 -0
  62. package/registry/components/data-display/empty-state/demo.tsx +13 -0
  63. package/registry/components/data-display/empty-state/meta.json +18 -0
  64. package/registry/components/data-display/goal-card/GoalCard.tsx +33 -0
  65. package/registry/components/data-display/goal-card/demo.tsx +7 -0
  66. package/registry/components/data-display/goal-card/meta.json +16 -0
  67. package/registry/components/data-display/heatmap/Heatmap.tsx +56 -0
  68. package/registry/components/data-display/heatmap/demo.tsx +17 -0
  69. package/registry/components/data-display/heatmap/meta.json +17 -0
  70. package/registry/components/data-display/kpi-card/KpiCard.tsx +47 -0
  71. package/registry/components/data-display/kpi-card/demo.tsx +20 -0
  72. package/registry/components/data-display/kpi-card/meta.json +18 -0
  73. package/registry/components/data-display/leaderboard-card/LeaderboardCard.tsx +40 -0
  74. package/registry/components/data-display/leaderboard-card/demo.tsx +13 -0
  75. package/registry/components/data-display/leaderboard-card/meta.json +16 -0
  76. package/registry/components/data-display/legend/Legend.tsx +19 -0
  77. package/registry/components/data-display/legend/demo.tsx +5 -0
  78. package/registry/components/data-display/legend/meta.json +13 -0
  79. package/registry/components/data-display/meter/Meter.tsx +33 -0
  80. package/registry/components/data-display/meter/demo.tsx +14 -0
  81. package/registry/components/data-display/meter/meta.json +19 -0
  82. package/registry/components/data-display/notice-list/NoticeList.tsx +30 -0
  83. package/registry/components/data-display/notice-list/demo.tsx +22 -0
  84. package/registry/components/data-display/notice-list/meta.json +17 -0
  85. package/registry/components/data-display/odometer/Odometer.tsx +37 -0
  86. package/registry/components/data-display/odometer/demo.tsx +15 -0
  87. package/registry/components/data-display/odometer/meta.json +14 -0
  88. package/registry/components/data-display/permission-matrix/PermissionMatrix.tsx +77 -0
  89. package/registry/components/data-display/permission-matrix/demo.tsx +20 -0
  90. package/registry/components/data-display/permission-matrix/meta.json +16 -0
  91. package/registry/components/data-display/pricing-card/PricingCard.tsx +108 -0
  92. package/registry/components/data-display/pricing-card/demo.tsx +33 -0
  93. package/registry/components/data-display/pricing-card/meta.json +16 -0
  94. package/registry/components/data-display/segment-bar/SegmentBar.tsx +46 -0
  95. package/registry/components/data-display/segment-bar/demo.tsx +12 -0
  96. package/registry/components/data-display/segment-bar/meta.json +17 -0
  97. package/registry/components/data-display/settings-row/SettingsRow.tsx +14 -0
  98. package/registry/components/data-display/settings-row/demo.tsx +18 -0
  99. package/registry/components/data-display/settings-row/meta.json +13 -0
  100. package/registry/components/data-display/split-bar/SplitBar.tsx +23 -0
  101. package/registry/components/data-display/split-bar/demo.tsx +13 -0
  102. package/registry/components/data-display/split-bar/meta.json +13 -0
  103. package/registry/components/data-display/stat/Stat.tsx +33 -0
  104. package/registry/components/data-display/stat/demo.tsx +12 -0
  105. package/registry/components/data-display/stat/meta.json +13 -0
  106. package/registry/components/data-display/stat-strip/StatStrip.tsx +40 -0
  107. package/registry/components/data-display/stat-strip/demo.tsx +15 -0
  108. package/registry/components/data-display/stat-strip/meta.json +16 -0
  109. package/registry/components/data-display/theme-picker/ThemePicker.tsx +82 -0
  110. package/registry/components/data-display/theme-picker/demo.tsx +21 -0
  111. package/registry/components/data-display/theme-picker/meta.json +18 -0
  112. package/registry/components/data-display/tick-value/TickValue.tsx +19 -0
  113. package/registry/components/data-display/tick-value/demo.tsx +12 -0
  114. package/registry/components/data-display/tick-value/meta.json +13 -0
  115. package/registry/components/data-display/ticker/Ticker.tsx +32 -0
  116. package/registry/components/data-display/ticker/demo.tsx +12 -0
  117. package/registry/components/data-display/ticker/meta.json +13 -0
  118. package/registry/components/data-display/timeline/Timeline.tsx +72 -0
  119. package/registry/components/data-display/timeline/demo.tsx +19 -0
  120. package/registry/components/data-display/timeline/meta.json +17 -0
  121. package/registry/components/data-display/token-icon/TokenIcon.tsx +38 -0
  122. package/registry/components/data-display/token-icon/demo.tsx +13 -0
  123. package/registry/components/data-display/token-icon/meta.json +17 -0
  124. package/registry/components/data-display/transaction-row/TransactionRow.tsx +54 -0
  125. package/registry/components/data-display/transaction-row/demo.tsx +20 -0
  126. package/registry/components/data-display/transaction-row/meta.json +14 -0
  127. package/registry/components/data-display/uptime-strip/UptimeStrip.tsx +52 -0
  128. package/registry/components/data-display/uptime-strip/demo.tsx +15 -0
  129. package/registry/components/data-display/uptime-strip/meta.json +17 -0
  130. package/registry/components/domain-blocks/auction-lot-card/AuctionLotCard.tsx +123 -0
  131. package/registry/components/domain-blocks/auction-lot-card/demo.tsx +26 -0
  132. package/registry/components/domain-blocks/auction-lot-card/meta.json +23 -0
  133. package/registry/components/domain-blocks/balance-card/BalanceCard.tsx +80 -0
  134. package/registry/components/domain-blocks/balance-card/demo.tsx +16 -0
  135. package/registry/components/domain-blocks/balance-card/meta.json +14 -0
  136. package/registry/components/domain-blocks/calendar/Calendar.tsx +376 -0
  137. package/registry/components/domain-blocks/calendar/demo.tsx +53 -0
  138. package/registry/components/domain-blocks/calendar/meta.json +23 -0
  139. package/registry/components/domain-blocks/call-bar/CallBar.tsx +45 -0
  140. package/registry/components/domain-blocks/call-bar/demo.tsx +23 -0
  141. package/registry/components/domain-blocks/call-bar/meta.json +14 -0
  142. package/registry/components/domain-blocks/card-stack/CardStack.tsx +65 -0
  143. package/registry/components/domain-blocks/card-stack/demo.tsx +12 -0
  144. package/registry/components/domain-blocks/card-stack/meta.json +16 -0
  145. package/registry/components/domain-blocks/contact-profile-card/ContactProfileCard.tsx +216 -0
  146. package/registry/components/domain-blocks/contact-profile-card/demo.tsx +38 -0
  147. package/registry/components/domain-blocks/contact-profile-card/meta.json +16 -0
  148. package/registry/components/domain-blocks/customer-card/CustomerCard.tsx +112 -0
  149. package/registry/components/domain-blocks/customer-card/demo.tsx +40 -0
  150. package/registry/components/domain-blocks/customer-card/meta.json +30 -0
  151. package/registry/components/domain-blocks/invoice-preview/InvoicePreview.tsx +100 -0
  152. package/registry/components/domain-blocks/invoice-preview/demo.tsx +22 -0
  153. package/registry/components/domain-blocks/invoice-preview/meta.json +17 -0
  154. package/registry/components/domain-blocks/kanban-board/KanbanBoard.tsx +221 -0
  155. package/registry/components/domain-blocks/kanban-board/demo.tsx +48 -0
  156. package/registry/components/domain-blocks/kanban-board/meta.json +24 -0
  157. package/registry/components/domain-blocks/keypad/Keypad.tsx +67 -0
  158. package/registry/components/domain-blocks/keypad/demo.tsx +15 -0
  159. package/registry/components/domain-blocks/keypad/meta.json +13 -0
  160. package/registry/components/domain-blocks/node-canvas/NodeCanvas.tsx +120 -0
  161. package/registry/components/domain-blocks/node-canvas/demo.tsx +18 -0
  162. package/registry/components/domain-blocks/node-canvas/meta.json +16 -0
  163. package/registry/components/domain-blocks/onboarding-carousel/OnboardingCarousel.tsx +100 -0
  164. package/registry/components/domain-blocks/onboarding-carousel/demo.tsx +13 -0
  165. package/registry/components/domain-blocks/onboarding-carousel/meta.json +16 -0
  166. package/registry/components/domain-blocks/pay-card/PayCard.tsx +51 -0
  167. package/registry/components/domain-blocks/pay-card/demo.tsx +25 -0
  168. package/registry/components/domain-blocks/pay-card/meta.json +14 -0
  169. package/registry/components/domain-blocks/project-card/ProjectCard.tsx +59 -0
  170. package/registry/components/domain-blocks/project-card/demo.tsx +34 -0
  171. package/registry/components/domain-blocks/project-card/meta.json +16 -0
  172. package/registry/components/domain-blocks/quick-actions/QuickActions.tsx +58 -0
  173. package/registry/components/domain-blocks/quick-actions/demo.tsx +31 -0
  174. package/registry/components/domain-blocks/quick-actions/meta.json +28 -0
  175. package/registry/components/domain-blocks/quota-card/QuotaCard.tsx +48 -0
  176. package/registry/components/domain-blocks/quota-card/demo.tsx +20 -0
  177. package/registry/components/domain-blocks/quota-card/meta.json +16 -0
  178. package/registry/components/domain-blocks/recipient-picker/RecipientPicker.tsx +42 -0
  179. package/registry/components/domain-blocks/recipient-picker/demo.tsx +16 -0
  180. package/registry/components/domain-blocks/recipient-picker/meta.json +16 -0
  181. package/registry/components/domain-blocks/sign-in/SignIn.tsx +77 -0
  182. package/registry/components/domain-blocks/sign-in/demo.tsx +20 -0
  183. package/registry/components/domain-blocks/sign-in/meta.json +18 -0
  184. package/registry/components/domain-blocks/task-checklist/TaskChecklist.tsx +116 -0
  185. package/registry/components/domain-blocks/task-checklist/demo.tsx +23 -0
  186. package/registry/components/domain-blocks/task-checklist/meta.json +16 -0
  187. package/registry/components/layout/app-shell/AppShell.tsx +50 -0
  188. package/registry/components/layout/app-shell/demo.tsx +37 -0
  189. package/registry/components/layout/app-shell/meta.json +18 -0
  190. package/registry/components/layout/mesh-background/MeshBackground.tsx +39 -0
  191. package/registry/components/layout/mesh-background/demo.tsx +14 -0
  192. package/registry/components/layout/mesh-background/meta.json +14 -0
  193. package/registry/components/layout/page-header/PageHeader.tsx +19 -0
  194. package/registry/components/layout/page-header/demo.tsx +13 -0
  195. package/registry/components/layout/page-header/meta.json +18 -0
  196. package/registry/components/layout/section-label/SectionLabel.tsx +6 -0
  197. package/registry/components/layout/section-label/demo.tsx +12 -0
  198. package/registry/components/layout/section-label/meta.json +13 -0
  199. package/registry/components/layout/toolbar/Toolbar.tsx +7 -0
  200. package/registry/components/layout/toolbar/demo.tsx +21 -0
  201. package/registry/components/layout/toolbar/meta.json +13 -0
  202. package/registry/components/navigation/breadcrumbs/Breadcrumbs.tsx +22 -0
  203. package/registry/components/navigation/breadcrumbs/demo.tsx +10 -0
  204. package/registry/components/navigation/breadcrumbs/meta.json +13 -0
  205. package/registry/components/navigation/command-finder/CommandFinder.tsx +135 -0
  206. package/registry/components/navigation/command-finder/demo.tsx +28 -0
  207. package/registry/components/navigation/command-finder/meta.json +18 -0
  208. package/registry/components/navigation/command-trigger/CommandTrigger.tsx +66 -0
  209. package/registry/components/navigation/command-trigger/demo.tsx +12 -0
  210. package/registry/components/navigation/command-trigger/meta.json +16 -0
  211. package/registry/components/navigation/dock/Dock.tsx +64 -0
  212. package/registry/components/navigation/dock/demo.tsx +22 -0
  213. package/registry/components/navigation/dock/meta.json +14 -0
  214. package/registry/components/navigation/mega-menu/MegaMenu.tsx +111 -0
  215. package/registry/components/navigation/mega-menu/demo.tsx +26 -0
  216. package/registry/components/navigation/mega-menu/meta.json +16 -0
  217. package/registry/components/navigation/pill-nav/PillNav.tsx +45 -0
  218. package/registry/components/navigation/pill-nav/demo.tsx +14 -0
  219. package/registry/components/navigation/pill-nav/meta.json +14 -0
  220. package/registry/components/navigation/segmented/Segmented.tsx +60 -0
  221. package/registry/components/navigation/segmented/demo.tsx +16 -0
  222. package/registry/components/navigation/segmented/meta.json +19 -0
  223. package/registry/components/navigation/sidebar-nav/SidebarNav.tsx +147 -0
  224. package/registry/components/navigation/sidebar-nav/demo.tsx +30 -0
  225. package/registry/components/navigation/sidebar-nav/meta.json +18 -0
  226. package/registry/components/navigation/steps/Steps.tsx +43 -0
  227. package/registry/components/navigation/steps/demo.tsx +19 -0
  228. package/registry/components/navigation/steps/meta.json +17 -0
  229. package/registry/components/navigation/tabbar/Tabbar.tsx +33 -0
  230. package/registry/components/navigation/tabbar/demo.tsx +16 -0
  231. package/registry/components/navigation/tabbar/meta.json +18 -0
  232. package/registry/components/navigation/tabs/Tabs.tsx +50 -0
  233. package/registry/components/navigation/tabs/demo.tsx +15 -0
  234. package/registry/components/navigation/tabs/meta.json +18 -0
  235. package/registry/components/navigation/topbar/Topbar.tsx +39 -0
  236. package/registry/components/navigation/topbar/demo.tsx +26 -0
  237. package/registry/components/navigation/topbar/meta.json +17 -0
  238. package/registry/components/overlays/overlay-system/demo.tsx +52 -0
  239. package/registry/components/overlays/overlay-system/meta.json +20 -0
  240. package/registry/components/overlays/overlay-system/overlays.tsx +360 -0
  241. package/registry/components/overlays/success-check/SuccessCheck.tsx +42 -0
  242. package/registry/components/overlays/success-check/demo.tsx +19 -0
  243. package/registry/components/overlays/success-check/meta.json +28 -0
  244. package/registry/components/primitives/avatar/Avatar.tsx +46 -0
  245. package/registry/components/primitives/avatar/demo.tsx +20 -0
  246. package/registry/components/primitives/avatar/meta.json +19 -0
  247. package/registry/components/primitives/badge/Badge.tsx +15 -0
  248. package/registry/components/primitives/badge/demo.tsx +9 -0
  249. package/registry/components/primitives/badge/meta.json +13 -0
  250. package/registry/components/primitives/button/Button.tsx +53 -0
  251. package/registry/components/primitives/button/demo.tsx +28 -0
  252. package/registry/components/primitives/button/meta.json +17 -0
  253. package/registry/components/primitives/checkbox/Checkbox.tsx +30 -0
  254. package/registry/components/primitives/checkbox/demo.tsx +16 -0
  255. package/registry/components/primitives/checkbox/meta.json +18 -0
  256. package/registry/components/primitives/chip/Chip.tsx +35 -0
  257. package/registry/components/primitives/chip/demo.tsx +15 -0
  258. package/registry/components/primitives/chip/meta.json +13 -0
  259. package/registry/components/primitives/copy-button/CopyButton.tsx +49 -0
  260. package/registry/components/primitives/copy-button/demo.tsx +15 -0
  261. package/registry/components/primitives/copy-button/meta.json +31 -0
  262. package/registry/components/primitives/field/Field.tsx +81 -0
  263. package/registry/components/primitives/field/demo.tsx +21 -0
  264. package/registry/components/primitives/field/meta.json +19 -0
  265. package/registry/components/primitives/icon/Icon.tsx +26 -0
  266. package/registry/components/primitives/icon/demo.tsx +25 -0
  267. package/registry/components/primitives/icon/icons.ts +208 -0
  268. package/registry/components/primitives/icon/meta.json +17 -0
  269. package/registry/components/primitives/icon-button/IconButton.tsx +42 -0
  270. package/registry/components/primitives/icon-button/demo.tsx +14 -0
  271. package/registry/components/primitives/icon-button/meta.json +17 -0
  272. package/registry/components/primitives/icon-tile/IconTile.tsx +37 -0
  273. package/registry/components/primitives/icon-tile/demo.tsx +16 -0
  274. package/registry/components/primitives/icon-tile/meta.json +17 -0
  275. package/registry/components/primitives/kbd/Kbd.tsx +11 -0
  276. package/registry/components/primitives/kbd/demo.tsx +9 -0
  277. package/registry/components/primitives/kbd/meta.json +13 -0
  278. package/registry/components/primitives/live-dot/LiveDot.tsx +15 -0
  279. package/registry/components/primitives/live-dot/demo.tsx +11 -0
  280. package/registry/components/primitives/live-dot/meta.json +13 -0
  281. package/registry/components/primitives/pill/Pill.tsx +52 -0
  282. package/registry/components/primitives/pill/demo.tsx +24 -0
  283. package/registry/components/primitives/pill/meta.json +38 -0
  284. package/registry/components/primitives/search-input/SearchInput.tsx +23 -0
  285. package/registry/components/primitives/search-input/demo.tsx +13 -0
  286. package/registry/components/primitives/search-input/meta.json +17 -0
  287. package/registry/components/primitives/skeleton/Skeleton.tsx +21 -0
  288. package/registry/components/primitives/skeleton/demo.tsx +11 -0
  289. package/registry/components/primitives/skeleton/meta.json +13 -0
  290. package/registry/components/primitives/slide-to-confirm/SlideToConfirm.tsx +60 -0
  291. package/registry/components/primitives/slide-to-confirm/demo.tsx +16 -0
  292. package/registry/components/primitives/slide-to-confirm/meta.json +13 -0
  293. package/registry/components/primitives/slider/Slider.tsx +155 -0
  294. package/registry/components/primitives/slider/demo.tsx +33 -0
  295. package/registry/components/primitives/slider/meta.json +16 -0
  296. package/registry/components/primitives/spinner/Spinner.tsx +6 -0
  297. package/registry/components/primitives/spinner/demo.tsx +10 -0
  298. package/registry/components/primitives/spinner/meta.json +13 -0
  299. package/registry/components/primitives/stepper/Stepper.tsx +36 -0
  300. package/registry/components/primitives/stepper/demo.tsx +14 -0
  301. package/registry/components/primitives/stepper/meta.json +17 -0
  302. package/registry/components/primitives/switch/Switch.tsx +37 -0
  303. package/registry/components/primitives/switch/demo.tsx +15 -0
  304. package/registry/components/primitives/switch/meta.json +19 -0
  305. package/registry/index.json +3303 -0
  306. package/registry/lib/chart-math.ts +23 -0
  307. package/registry/lib/cn.ts +41 -0
  308. package/registry/lib/motion.ts +104 -0
  309. package/registry/package.json +16 -0
  310. package/registry/templates/brisko/Template.tsx +149 -0
  311. package/registry/templates/brisko/data.ts +32 -0
  312. package/registry/templates/brisko/template.json +11 -0
  313. package/registry/templates/kavora/Template.tsx +44 -0
  314. package/registry/templates/kavora/data.ts +21 -0
  315. package/registry/templates/kavora/pages/Orders.tsx +58 -0
  316. package/registry/templates/kavora/pages/Overview.tsx +78 -0
  317. package/registry/templates/kavora/template.json +12 -0
  318. package/registry/templates/kestro-desk/Template.tsx +61 -0
  319. package/registry/templates/kestro-desk/data.ts +31 -0
  320. package/registry/templates/kestro-desk/pages/History.tsx +64 -0
  321. package/registry/templates/kestro-desk/pages/Overview.tsx +91 -0
  322. package/registry/templates/kestro-desk/template.json +12 -0
  323. package/registry/templates/rapport/Template.tsx +36 -0
  324. package/registry/templates/rapport/data.ts +28 -0
  325. package/registry/templates/rapport/pages/Customers.tsx +49 -0
  326. package/registry/templates/rapport/pages/Pipeline.tsx +92 -0
  327. package/registry/templates/rapport/template.json +12 -0
  328. package/registry/templates/sagewell/Template.tsx +21 -0
  329. package/registry/templates/sagewell/pages/Cards.tsx +49 -0
  330. package/registry/templates/sagewell/pages/Home.tsx +53 -0
  331. package/registry/templates/sagewell/pages/Send.tsx +37 -0
  332. package/registry/templates/sagewell/template.json +13 -0
  333. package/registry/tokens/base.css +37 -0
  334. package/registry/tokens/index.css +8 -0
  335. package/registry/tokens/tailwind.css +83 -0
  336. package/registry/tokens/themes/brisko.css +34 -0
  337. package/registry/tokens/themes/kavora.css +32 -0
  338. package/registry/tokens/themes/kestro.css +32 -0
  339. package/registry/tokens/themes/rapport.css +35 -0
  340. package/registry/tokens/themes/sagewell.css +34 -0
  341. package/server.mjs +358 -0
package/package.json CHANGED
@@ -1,6 +1,35 @@
1
1
  {
2
2
  "name": "softricity-ui",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "description": "Dashboard UI components and templates for Next.js + Tailwind v4 — as an MCP server for your AI (Claude, Cursor, VS Code, Windsurf) and a CLI.",
5
+ "type": "module",
6
+ "bin": {
7
+ "softricity-ui": "server.mjs"
8
+ },
9
+ "files": [
10
+ "server.mjs",
11
+ "lib/",
12
+ "registry/",
13
+ "README.md"
14
+ ],
15
+ "engines": {
16
+ "node": ">=18.17"
17
+ },
18
+ "keywords": [
19
+ "mcp",
20
+ "model-context-protocol",
21
+ "ui",
22
+ "components",
23
+ "dashboard",
24
+ "nextjs",
25
+ "tailwindcss",
26
+ "react",
27
+ "claude",
28
+ "cursor"
29
+ ],
30
+ "license": "UNLICENSED",
31
+ "dependencies": {
32
+ "@modelcontextprotocol/sdk": "^1.32.2",
33
+ "zod": "^4.6.7"
34
+ }
35
+ }
@@ -0,0 +1,122 @@
1
+ # Catalog
2
+
3
+ 98 components. Read this first; open meta.json only for the ones you need.
4
+
5
+ ## primitives
6
+ - `primitives/avatar` **Avatar** — Initials or photo avatar with hue token, 4 sizes, online dot; AvatarStack with +N. _aliases:_ .av, .av--staff, .av-stack _src:_ kestro, kavora, brisko, rapport, sagewell
7
+ - `primitives/badge` **Badge** — Round count badge, neutral or accent. _aliases:_ .badge, .snav__count _src:_ kestro, kavora
8
+ - `primitives/button` **Button** — Text button with tone variants, 3 sizes, block and busy states. Plus LinkButton. _aliases:_ .btn, .linkbtn, Button (sagewell) _src:_ kestro, kavora, sagewell
9
+ - `primitives/checkbox` **Checkbox** — Square checkbox button with accent fill and check mark. _aliases:_ .check, RadioTick (sagewell) _src:_ kestro, kavora, brisko, rapport
10
+ - `primitives/chip` **Chip** — Pressable filter chip with optional icon and count; ChipGroup wrapper. _aliases:_ .chip, .chips _src:_ kestro, kavora
11
+ - `primitives/copy-button` **CopyButton** — Inline copy-to-clipboard button with transient copied state and callback. _aliases:_ .copybtn, copyText _src:_ kestro, kavora, brisko
12
+ - `primitives/field` **Field** — Form field wrapper (label/hint/error) plus Input, Textarea, Select, PasswordInput and FormGrid. _aliases:_ .field, .input, .select, .textarea, .pw, .formgrid, Field (sagewell) _src:_ kestro, kavora, brisko, rapport, sagewell
13
+ - `primitives/icon` **Icon** — 24x24 stroked line icon set (201 icons) rendered as inline SVG. _aliases:_ Icons, ICONS, iconNodes _src:_ kestro, kavora, sagewell
14
+ - `primitives/icon-button` **IconButton** — Square icon-only button with press bounce, flat/raised, sm/md and count badge. _aliases:_ .ibtn, IconButton (sagewell) _src:_ kestro, kavora, sagewell
15
+ - `primitives/icon-tile` **IconTile** — Rounded or circular icon badge with semantic tone background. _aliases:_ iconTile, TxIcon _src:_ brisko, kestro
16
+ - `primitives/kbd` **Kbd** — Keyboard key hint chip. _aliases:_ .kbd _src:_ kestro, kavora
17
+ - `primitives/live-dot` **LiveDot** — Breathing status dot for live/degraded/offline. _aliases:_ .live, .netpill__dot _src:_ kestro, kavora
18
+ - `primitives/pill` **Pill** — Status pill with tone (plain/good/warn/bad/info/accent), square dot or round Rapport style. Exports toneClass helper. _aliases:_ .pill, .tone--*, .status, .status--*, .spill (rapport) _src:_ kestro, kavora, rapport
19
+ - `primitives/search-input` **SearchInput** — Search field with leading icon, controlled value. _aliases:_ SearchBox, SearchInput, .inwrap, .search (rapport) _src:_ kestro, kavora, brisko
20
+ - `primitives/skeleton` **Skeleton** — Loading placeholders: Bone (any size/radius) and SkeletonRows (icon + two lines + value). _aliases:_ Bone, SkeletonRows, .card-ph (rapport) _src:_ sagewell
21
+ - `primitives/slider` **Slider** — Single-thumb Slider with quick marks and dual-handle RangeSlider with optional histogram. _aliases:_ Slider, .tm-slider, .pl-range _src:_ kestro
22
+ - `primitives/slide-to-confirm` **SlideToConfirm** — Drag-to-confirm track: knob follows pointer, confirms past 80%, springs back otherwise, label fades; keyboard Enter/Space; resetKey. _aliases:_ SlideToConfirm _src:_ sagewell
23
+ - `primitives/spinner` **Spinner** — Small ring spinner using currentColor. _aliases:_ .spin, Spinner (sagewell) _src:_ kestro, sagewell
24
+ - `primitives/stepper` **Stepper** — Minus/value/plus counter with min/max/step and animated number. _aliases:_ .stepper _src:_ kestro, kavora, brisko
25
+ - `primitives/switch` **Switch** — Accessible on/off switch with springy knob. _aliases:_ .switch, Toggle (sagewell) _src:_ kestro, kavora, brisko, rapport, sagewell
26
+
27
+ ## navigation
28
+ - `navigation/breadcrumbs` **Breadcrumbs** — Chevron breadcrumb trail; last item is current page. _aliases:_ .crumbs _src:_ kestro, kavora
29
+ - `navigation/command-finder` **CommandFinder** — ⌘K command palette: grouped results, keyboard nav, focus trap, empty state; you supply search(q). _aliases:_ Finder, SearchModal, .finder, .finder__opt (rapport) _src:_ kestro, kavora, brisko, rapport
30
+ - `navigation/command-trigger` **CommandTrigger** — Pill-shaped command-palette search trigger with Kbd hint and WorkspacePill switcher. _aliases:_ wsbtn _src:_ brisko
31
+ - `navigation/dock` **Dock** — Floating pill dock of round icon buttons with hover tooltips (+kbd), active dot, separators; left, bottom or auto (moves to bottom on phones). _aliases:_ .dock, .dock__btn, .dock__tip, .dock__sep _src:_ rapport
32
+ - `navigation/mega-menu` **MegaMenu** — Animated multi-column dropdown panel with icon links, badges, summary stats, and footer CTA. _aliases:_ MegaMenu, .mega _src:_ kavora
33
+ - `navigation/pill-nav` **PillNav** — Top navigation as separate pills: ink active pill, accent count badges, overflow items in a More menu. Horizontal scroll on small screens. _aliases:_ Header tabs (kavora), MegaMenu trigger (kavora), pill-tabs _src:_ kavora
34
+ - `navigation/segmented` **Segmented** — Segmented control with gliding thumb; text, icon or accent options. Generic typed value. _aliases:_ Seg, Segmented, .seg, .seg__btn (rapport) _src:_ kestro, kavora, brisko, rapport, sagewell
35
+ - `navigation/sidebar-nav` **SidebarNav** — App sidebar: brand, search button, grouped nav with gliding pill, counts, rail (collapsed) mode, footer slot; panel or floating (dark Brisko rail) variant; SidebarAccount. _aliases:_ Sidebar, .side, .snav, .rail, .rail__item, .rail__pill, Header rail (kavora) _src:_ kestro, kavora, brisko
36
+ - `navigation/steps` **Steps** — Horizontal progress steps with animated fill bars and current-step dot. _aliases:_ .steps, Steps _src:_ kestro, kavora, brisko
37
+ - `navigation/tabbar` **Tabbar** — Phone bottom tab bar with gliding active pill and safe-area padding. _aliases:_ .tabbar, Tabbar, Tabs screen bar (sagewell) _src:_ kestro, kavora, brisko, sagewell
38
+ - `navigation/tabs` **Tabs** — Underline tabs with gliding accent line and optional counts; link or button mode. _aliases:_ Tabs, SubTabs, .tabs, .tabs__pill (rapport) _src:_ kestro, kavora, brisko, rapport
39
+ - `navigation/topbar` **Topbar** — Sticky top bar with left (crumbs) / right (tools) slots, hairline when scrolled; TopbarPill. _aliases:_ .top, .top__in, .netpill, .walletbtn, Header (kavora), .head (rapport) _src:_ kestro, kavora, brisko
40
+
41
+ ## data-display
42
+ - `data-display/accordion` **Accordion** — Collapsible FAQ / section list with animated chevron rotation and content reveal. _aliases:_ Question, .hp-q, .faq, .faqs _src:_ kestro, kavora, brisko
43
+ - `data-display/action-list` **ActionList** — Compact list of items with IconTile or custom lead, title/subtitle, and trailing action or value. _aliases:_ NeedsList, RunList _src:_ brisko, kestro
44
+ - `data-display/activity-feed` **ActivityFeed** — Activity log list: channel icon (email/slack/linkedin/…) or custom lead, rich text with links, timestamp; ChannelIcon + CHANNEL map. _aliases:_ .feed, .feed__item, .src, .src--* _src:_ rapport
45
+ - `data-display/breakdown-list` **BreakdownList** — Ranked category or regional share list with proportional Meter bars. _aliases:_ GeoCard, Breakdown, .geo _src:_ kavora, sagewell
46
+ - `data-display/card` **Card** — Base surface card (default/flush/well), CardHeader with actions, responsive Grid. _aliases:_ .card, .chead, .grid2, .grid3, Panel (sagewell), Section (sagewell) _src:_ kestro, kavora, brisko, rapport, sagewell
47
+ - `data-display/change` **Change** — Signed % change text or pill (up/down/flat) and Delta arrow chip (plain or on colored tile). _aliases:_ Chg, Delta, .chg, .delta _src:_ kestro, kavora, brisko
48
+ - `data-display/count-number` **CountNumber** — Animated counting number with custom format. _aliases:_ Count, CountNumber, Odometer (sagewell, rolling digits — not merged) _src:_ kestro, kavora
49
+ - `data-display/data-table` **DataTable** — Generic typed table: column defs, sortable headers, clickable rows, right-aligned numbers; Cell two-line helper. _aliases:_ .table, .table-wrap, .cell, .cell-person (rapport), TransactionRow (sagewell, list variant) _src:_ kestro, kavora, brisko, rapport
50
+ - `data-display/description-list` **DescriptionList** — Two-column key/value list for summaries and drawers. _aliases:_ .dl _src:_ kestro, kavora, brisko
51
+ - `data-display/empty-state` **EmptyState** — Centered empty/no-results state with icon tile, title, body and action slot. _aliases:_ Empty, EmptyState, .empty _src:_ kestro, kavora, brisko, rapport
52
+ - `data-display/goal-card` **GoalCard** — Savings or target progress card with percentage, Meter, and current/target amounts. _aliases:_ Goals _src:_ sagewell
53
+ - `data-display/heatmap` **Heatmap** — 2D row-by-column intensity matrix for activity and frequency heatmaps. _aliases:_ .heat, FrequencyCard _src:_ kavora, brisko
54
+ - `data-display/kpi-card` **KpiCard** — KPI tile with icon label, counting value, delta chip, foot text and sparkline; 4 tile tones or plain; KpiRow grid. _aliases:_ .kpi, .kpis, stat (rapport), BalanceCard (sagewell, domain variant) _src:_ kestro, kavora, brisko, rapport
55
+ - `data-display/leaderboard-card` **LeaderboardCard** — Ranked team/member leaderboard card with AvatarStack and Meter bars. _aliases:_ TeamCard, .crew _src:_ kavora
56
+ - `data-display/legend` **Legend** — Chart legend with swatches or dashed line; auto palette --c1…--c6. _aliases:_ .legend _src:_ kestro, kavora, brisko, rapport
57
+ - `data-display/meter` **Meter** — Animated fill bar (accent/good/warn/bad, 8px or thin 6px level) + levelTone helper. _aliases:_ Meter, Level, .meter, .level, Progress (sagewell), Goals (sagewell) _src:_ kestro, kavora, brisko, rapport, sagewell
58
+ - `data-display/notice-list` **NoticeList** — Notification list with tone icon tiles, unread dot, mark-all-read; drop into a popover. _aliases:_ .notices, .notice, NoticesModal (kavora), .feed__item (rapport) _src:_ kestro, kavora, brisko
59
+ - `data-display/odometer` **Odometer** — Rolling-digit number: each digit reel slides into place right-to-left; em-sized so font-size drives it. CSS only. _aliases:_ Odometer _src:_ sagewell
60
+ - `data-display/permission-matrix` **PermissionMatrix** — Role-by-capability checkmark matrix table with optional interactive toggling. _aliases:_ .perm, .perm__yes _src:_ brisko
61
+ - `data-display/pricing-card` **PricingCard** — Subscription plan card with highlighted tier and UsageMeterRow quota bars. _aliases:_ .plancard, .usage, .addon _src:_ brisko
62
+ - `data-display/segment-bar` **SegmentBar** — Discrete N-segment progress or quota bar in sm (pill) or lg (tile) height. _aliases:_ .segs, reserve hit rate _src:_ brisko, kavora
63
+ - `data-display/settings-row` **SettingsRow** — Settings list row: title + hint left, control right, hairline between rows. _aliases:_ .row-set, .keys _src:_ kestro, kavora, brisko
64
+ - `data-display/split-bar` **SplitBar** — Horizontal allocation bar of proportional segments with grow-in. _aliases:_ .split, .split__seg _src:_ kestro, kavora
65
+ - `data-display/stat` **Stat** — Inline header stat: round glass icon, big value with extra slot, short label; StatRow. Lighter than KpiCard (no tile). _aliases:_ .stat, .stat__ico, .stat__value, .stat__label, .head__stats, Stat (sagewell balance card, on-brand variant) _src:_ rapport, sagewell
66
+ - `data-display/stat-strip` **StatStrip** — Compact multi-column metric strip with optional dark highlight cell and warn state. _aliases:_ STRIP _src:_ brisko
67
+ - `data-display/theme-picker` **ThemePicker** — Accent swatch grid or theme preview card selector. _aliases:_ .set-swatches, .st-themes, .themeprev _src:_ rapport, kestro, brisko
68
+ - `data-display/ticker` **Ticker** — Live marquee strip: LIVE badge, endless scrolling chips (pause on hover, off for reduced motion), right note. _aliases:_ live bids strip (kavora), .ticker _src:_ kavora
69
+ - `data-display/tick-value` **TickValue** — Live value that flashes up/down color on change. _aliases:_ Tick, .tick-up, .tick-down _src:_ kestro
70
+ - `data-display/timeline` **Timeline** — Vertical route/step-log timeline and horizontal run timeline with state indicators. _aliases:_ .route, .stops, .steplog, .tl _src:_ kavora, brisko
71
+ - `data-display/token-icon` **TokenIcon** — Round tinted code badge (token/currency/lot) with corner marker; PairIcon overlap. _aliases:_ Tok, PairIcon, LotMark (kavora), MerchantIcon (sagewell), .tok, .pairico _src:_ kestro, kavora, sagewell
72
+ - `data-display/transaction-row` **TransactionRow** — Money list row: category MerchantIcon (accent when incoming), title/sub, signed amount (green in), date/pending; link, button or static. _aliases:_ TransactionRow, MerchantIcon, TxIcon (kestro, similar) _src:_ sagewell
73
+ - `data-display/uptime-strip` **UptimeStrip** — Segmented N-day uptime bar with status tone indicators for service health. _aliases:_ Status, .hp-up, .svc _src:_ kestro, brisko
74
+
75
+ ## charts
76
+ - `charts/area-chart` **AreaChart** — Responsive smooth area chart with gradient, compare series, morph animation, cursor + tooltip. _aliases:_ AreaChart, .area _src:_ kestro, kavora, brisko
77
+ - `charts/bar-chart` **BarChart** — Column chart: nice ticks, grow-in + morph animation, hover tooltip, highlight, ghost/target series, compact. _aliases:_ Bars, BarsChart, BarChart (sagewell), .bars _src:_ kestro, kavora, brisko, rapport, sagewell
78
+ - `charts/candlestick-chart` **CandlestickChart** — Canvas OHLC candlestick chart with volume bars, line mode toggle, and hover crosshair. _aliases:_ CandleChart, .cchart _src:_ kestro
79
+ - `charts/capsule-chart` **CapsuleChart** — Rounded capsule columns: single (striped current, prev dashes — Kavora) or stacked two-tone with dot caps and limit line (Brisko); tooltip, grow-in. _aliases:_ CapsChart, .caps, .caps__bar, operations chart (brisko) _src:_ kavora, brisko
80
+ - `charts/funnel-chart` **FunnelChart** — Conversion funnel bars with animated grow-in and stage-to-stage conversion percentages. _aliases:_ .fun, .fun__sum _src:_ rapport
81
+ - `charts/gauge-chart` **GaugeChart** — Semi-circular arc gauge and split buy/sell pressure gauge. _aliases:_ .g-arc, Pressure, .tm-gauge _src:_ rapport, kestro
82
+ - `charts/ring` **Ring** — Animated progress Ring (0–1) and multi-slice Donut using --c1…--c6, both with center slot. _aliases:_ Ring, RingChart, Donut (sagewell), .donut (rapport), CapsChart (kavora, not merged) _src:_ kestro, kavora, rapport, sagewell
83
+ - `charts/sparkline` **Sparkline** — Tiny smooth SVG trend line with soft area, draw-in animation, up/down color tokens. _aliases:_ Spark, SparkChart, .spark _src:_ kestro, kavora, brisko, rapport
84
+
85
+ ## overlays
86
+ - `overlays/overlay-system` **Overlay system** — Imperative stack: openDrawer, openModal, openPopover, openMenu, confirmDialog, showToast + focus trap; mount <OverlayHost/> once. _aliases:_ layers.jsx, OverlaySystem.jsx, Layers, OverlayHost, ModalShell (sagewell), .drawer, .modal, .pop, .toast _src:_ kestro, kavora, brisko, rapport, sagewell
87
+ - `overlays/success-check` **SuccessCheck** — Animated success mark (ring draws, disc pops, tick wipes) and SuccessView (check + title + body + action) for end of flows. _aliases:_ SuccessCheck, SuccessView _src:_ sagewell
88
+
89
+ ## layout
90
+ - `layout/app-shell` **AppShell** — Dashboard frame: fixed sidebar (wide/rail, remembered, forced rail 761–1279px; panel or floating inset), topbar slot, main column, phone tabbar slot. _aliases:_ App, .app, .main, .content, shell/App.jsx _src:_ kestro, kavora, brisko
91
+ - `layout/mesh-background` **MeshBackground** — Three blurred radial color blobs behind the app that drift slowly (GSAP); fixed or inside a parent. _aliases:_ .mesh, .mesh__a, .mesh__b, .mesh__c _src:_ rapport
92
+ - `layout/page-header` **PageHeader** — Page title with letter-rise animation, sub text and action slot. _aliases:_ PageHead, PageHeader, ScreenHeader (sagewell), .phead, .head (rapport) _src:_ kestro, kavora, brisko, sagewell
93
+ - `layout/section-label` **SectionLabel** — Uppercase tracking label for content groups. _aliases:_ .section-label, .side__group, .menu__label _src:_ kestro, kavora
94
+ - `layout/toolbar` **Toolbar** — Wrap row for search/filters/actions above tables; ToolbarSpacer. _aliases:_ .toolbar, .toolbar__spacer _src:_ kestro, kavora, brisko, rapport
95
+
96
+ ## domain-blocks
97
+ - `domain-blocks/auction-lot-card` **AuctionLotCard** — Live auction spotlight card with numbered lot selector, price sparkline, and selectable lot stack. _aliases:_ OnTheBlockCard, RoomLadder _src:_ kavora
98
+ - `domain-blocks/balance-card` **BalanceCard** — Hero balance on accent gradient: hide/show toggle, rolling-digit amount + cents, trend chip, mini bar button, two stats. _aliases:_ BalanceCard _src:_ sagewell
99
+ - `domain-blocks/calendar` **Calendar** — Calendar with month, rhythm (Kavora intensity bars), and schedule (Rapport week time-grid) variants. _aliases:_ .cal, .cal__bar, .sch-grid, .sch-agenda, AgendaSidebar, ScheduleGrid _src:_ kavora, rapport
100
+ - `domain-blocks/call-bar` **CallBar** — Floating in-call pill: ringed avatar, name + live mm:ss timer, toggle controls (mute/hold), red end button. _aliases:_ .callbar, .callbar__who, .callbar__ring, .callbar__end _src:_ rapport
101
+ - `domain-blocks/card-stack` **CardStack** — Interactive overlapping deck of PayCards with click-to-front selection. _aliases:_ CardStack, CardBack _src:_ sagewell
102
+ - `domain-blocks/contact-profile-card` **ContactProfileCard** — Rapport-style contact profile card with ringed avatar score + DetailFieldList editable rows. _aliases:_ Detailed Information _src:_ rapport
103
+ - `domain-blocks/customer-card` **CustomerCard** — Rapport-style frosted glass customer card with health meter, LTV/touch facts, favorite toggle, and quick actions. _aliases:_ .cx-card, .cx-hmeter _src:_ rapport
104
+ - `domain-blocks/invoice-preview` **InvoicePreview** — Formatted invoice/receipt sheet with line items, metadata, total, and status stamp. _aliases:_ .fin-paper, .fin-stamp, .receipt, .receipt__stamp _src:_ rapport, brisko
105
+ - `domain-blocks/kanban-board` **KanbanBoard** — Multi-column Kanban board with default, glass (Rapport), and orders (Kavora) variants. _aliases:_ .pl-board, .oboard, .ocard, .ocol _src:_ rapport, kavora
106
+ - `domain-blocks/keypad` **Keypad** — Money entry: 3×4 Keypad (press glow, hold-delete clears, keyboard input), applyKey reducer and big AmountDisplay with per-char fade. _aliases:_ Keypad, AmountDisplay, Key _src:_ sagewell
107
+ - `domain-blocks/node-canvas` **NodeCanvas** — Draggable node graph canvas with SVG bezier edges for scenario and workflow editors. _aliases:_ .cv, .cv__plane, .cv__svg _src:_ brisko
108
+ - `domain-blocks/onboarding-carousel` **OnboardingCarousel** — Scroll-snap onboarding slides with segmented progress bar and skip/next controls. _aliases:_ Onboarding, Slide, Segment _src:_ sagewell
109
+ - `domain-blocks/pay-card` **PayCard** — Payment card visual at 1.586 ratio: skins (forest/mint/sand/theme accent), chip + NFC, masked or revealed number/CVV, frozen overlay. _aliases:_ PayCard, CARD_RATIO _src:_ sagewell
110
+ - `domain-blocks/project-card` **ProjectCard** — Rapport-style frosted glass project card with progress Ring, milestone count, due pill, and AvatarStack. _aliases:_ .pj-card, .pj-ring _src:_ rapport
111
+ - `domain-blocks/quick-actions` **QuickActions** — Pressable 3- or 4-column grid of quick-action icon tiles or cards. _aliases:_ QuickBtn _src:_ sagewell
112
+ - `domain-blocks/quota-card` **QuotaCard** — Rapport-style frosted glass quota Ring card with pace status Pill and target/closed facts. _aliases:_ .ov-quota, .ov-ring _src:_ rapport
113
+ - `domain-blocks/recipient-picker` **RecipientPicker** — Horizontal scrollable avatar selector for money transfer recipients. _aliases:_ PickPerson _src:_ sagewell
114
+ - `domain-blocks/sign-in` **SignIn** — Sign-in card/screen: brand mark, provider (wallet/SSO) buttons, divider, email+password, remember, error shake. _aliases:_ SignIn, .signin, SignIn screen (sagewell) _src:_ kestro, kavora, brisko, sagewell
115
+ - `domain-blocks/task-checklist` **TaskChecklist** — Rapport-style frosted glass task and milestone checklist card with inline add. _aliases:_ .ov-tasks, .ov-next, .pjd-check _src:_ rapport
116
+
117
+ ## templates
118
+ - `brisko` **Brisko** (desktop, theme brisko) — pages: overview — uses 18 parts
119
+ - `kavora` **Kavora** (desktop, theme kavora) — pages: overview, orders — uses 27 parts
120
+ - `kestro-desk` **Kestro Desk** (desktop, theme kestro) — pages: overview, history — uses 32 parts
121
+ - `rapport` **Rapport** (desktop, theme rapport) — pages: pipeline, customers — uses 21 parts
122
+ - `sagewell` **Sagewell** (phone, theme sagewell) — pages: home, send, cards — uses 20 parts
@@ -0,0 +1,153 @@
1
+ 'use client';
2
+ import { useEffect, useId, useLayoutEffect, useRef, useState } from 'react';
3
+ import { gsap, T, reduced } from '@ui/lib/motion';
4
+ import { niceTicks, smoothPath } from '@ui/lib/chart-math';
5
+
6
+ export interface AreaChartProps {
7
+ values: number[];
8
+ labels: string[];
9
+ format?: (n: number) => string;
10
+ height?: number;
11
+ /** Dashed comparison series. */
12
+ compare?: number[];
13
+ compareLabel?: string;
14
+ valueLabel?: string;
15
+ /** Y axis starts at 0 (default) or near the data min. */
16
+ fromZero?: boolean;
17
+ /** Optional horizontal dashed target line. */
18
+ target?: number;
19
+ }
20
+
21
+ /** Smooth area line chart: responsive width, draw-in, morph on data change, hover cursor + tooltip. */
22
+ export function AreaChart({ values, labels, format = (n) => String(Math.round(n)), height = 240, compare, compareLabel = 'Compare', valueLabel, fromZero = true, target }: AreaChartProps) {
23
+ const gid = useId().replace(/:/g, '');
24
+ const box = useRef<HTMLDivElement>(null);
25
+ const svg = useRef<SVGSVGElement>(null);
26
+ const line = useRef<SVGPathElement>(null);
27
+ const fill = useRef<SVGPathElement>(null);
28
+ const cmp = useRef<SVGPathElement>(null);
29
+ const [width, setWidth] = useState(600);
30
+ const [hover, setHover] = useState<number | null>(null);
31
+ const shown = useRef<{ v: number[]; c: number[]; top: number; base: number } | null>(null);
32
+ const H = height;
33
+ const all = [...values, ...(compare ?? []), ...(target !== undefined ? [target] : [])];
34
+ const maxV = Math.max(...all) * 1.1 || 1;
35
+ const minV = Math.min(...all);
36
+ const step = niceTicks(Math.max(1e-12, maxV - minV * 0.92))[1];
37
+ const base = fromZero ? 0 : Math.max(0, Math.floor((minV * 0.96) / step) * step);
38
+ const ticks = fromZero ? niceTicks(maxV) : niceTicks(maxV - base).map((t) => t + base);
39
+ const top = ticks[ticks.length - 1];
40
+
41
+ useEffect(() => {
42
+ const ro = new ResizeObserver(([e]) => setWidth(Math.max(200, Math.round(e.contentRect.width))));
43
+ if (box.current) ro.observe(box.current);
44
+ return () => ro.disconnect();
45
+ }, []);
46
+
47
+ const paint = () => {
48
+ const s = shown.current!;
49
+ const ys = (arr: number[]) => arr.map((v) => ((v - s.base) / (s.top - s.base || 1)) * (H - 12 - 26));
50
+ const pts = (arr: number[]) => ys(arr).map((y, i, a) => [(i / Math.max(1, a.length - 1)) * width, H - 26 - y] as [number, number]);
51
+ const d = smoothPath(pts(s.v));
52
+ line.current?.setAttribute('d', d);
53
+ fill.current?.setAttribute('d', `${d} L${width},${H - 26} L0,${H - 26} Z`);
54
+ if (cmp.current && s.c.length) cmp.current.setAttribute('d', smoothPath(pts(s.c)));
55
+ };
56
+
57
+ useLayoutEffect(() => {
58
+ const prev = shown.current;
59
+ const next = { v: values.slice(), c: (compare ?? []).slice(), top, base };
60
+ if (!prev || prev.v.length !== values.length) {
61
+ shown.current = next;
62
+ paint();
63
+ if (!reduced() && line.current) {
64
+ const len = line.current.getTotalLength();
65
+ gsap.fromTo(line.current, { strokeDasharray: len, strokeDashoffset: len }, { strokeDashoffset: 0, duration: 1.2, ease: 'power2.inOut', clearProps: 'strokeDasharray,strokeDashoffset' });
66
+ gsap.fromTo(fill.current, { opacity: 0 }, { opacity: 1, duration: 0.9, delay: 0.3, clearProps: 'opacity' });
67
+ if (cmp.current) gsap.fromTo(cmp.current, { opacity: 0 }, { opacity: 0.7, duration: 0.6, delay: 0.6 });
68
+ }
69
+ return;
70
+ }
71
+ const k = { t: 0 };
72
+ gsap.to(k, {
73
+ t: 1, duration: T(0.9), ease: 'expo.inOut',
74
+ onUpdate: () => {
75
+ shown.current = {
76
+ v: next.v.map((v, i) => (prev.v[i] ?? v) + (v - (prev.v[i] ?? v)) * k.t),
77
+ c: next.c.map((v, i) => (prev.c[i] ?? v) + (v - (prev.c[i] ?? v)) * k.t),
78
+ top: prev.top + (next.top - prev.top) * k.t,
79
+ base: prev.base + (next.base - prev.base) * k.t,
80
+ };
81
+ paint();
82
+ },
83
+ onComplete: () => { shown.current = next; paint(); },
84
+ });
85
+ }, [values.join(','), (compare ?? []).join(','), top, base]);
86
+ useLayoutEffect(() => { if (shown.current) paint(); }, [width]);
87
+
88
+ const n = values.length;
89
+ const onMove = (e: React.PointerEvent) => {
90
+ const r = svg.current!.getBoundingClientRect();
91
+ setHover(Math.max(0, Math.min(n - 1, Math.round(((e.clientX - r.left) / r.width) * (n - 1)))));
92
+ };
93
+ const hx = hover === null ? 0 : (hover / Math.max(1, n - 1)) * width;
94
+ const hy = hover === null ? 0 : H - 26 - (((values[hover] ?? 0) - base) / (top - base || 1)) * (H - 12 - 26);
95
+ const every = Math.ceil(n / Math.max(2, Math.floor(width / 70)));
96
+ return (
97
+ <div className="relative pl-[46px]" style={{ height: H }}>
98
+ <div aria-hidden="true" className="pointer-events-none absolute inset-x-0 top-3 bottom-[26px] flex flex-col justify-between">
99
+ {ticks.slice().reverse().map((t) => (
100
+ <div key={t} className="relative h-0 border-t border-dashed border-line-2 last:border-solid">
101
+ <span className="absolute -top-2 left-0 text-2xs font-semibold text-muted">{format(t)}</span>
102
+ </div>
103
+ ))}
104
+ </div>
105
+ <div ref={box} className="relative h-full">
106
+ <svg ref={svg} width={width} height={H} viewBox={`0 0 ${width} ${H}`} onPointerMove={onMove} onPointerLeave={() => setHover(null)}
107
+ role="img" aria-label={`${valueLabel ?? 'Values'} from ${labels[0]} to ${labels[n - 1]}, peaking at ${format(Math.max(...values))}`}
108
+ className="relative block touch-pan-y overflow-visible">
109
+ <defs>
110
+ <linearGradient id={gid} x1="0" y1="0" x2="0" y2="1">
111
+ <stop offset="0" stopColor="var(--data)" stopOpacity=".26" />
112
+ <stop offset="1" stopColor="var(--data)" stopOpacity="0" />
113
+ </linearGradient>
114
+ </defs>
115
+ <path ref={fill} fill={`url(#${gid})`} />
116
+ {compare && <path ref={cmp} fill="none" stroke="var(--muted)" strokeWidth={1.6} strokeDasharray="4 5" opacity={0.7} />}
117
+ {target !== undefined && (
118
+ <line
119
+ x1={0}
120
+ x2={width}
121
+ y1={H - 26 - ((target - base) / (top - base || 1)) * (H - 12 - 26)}
122
+ y2={H - 26 - ((target - base) / (top - base || 1)) * (H - 12 - 26)}
123
+ stroke="var(--ink)"
124
+ strokeWidth={1.6}
125
+ strokeDasharray="6 5"
126
+ opacity={0.75}
127
+ />
128
+ )}
129
+ <path ref={line} fill="none" stroke="var(--data)" strokeWidth={2.2} strokeLinecap="round" strokeLinejoin="round" />
130
+ {hover !== null && (
131
+ <>
132
+ <line x1={hx} x2={hx} y1={12} y2={H - 26} stroke="var(--line-2)" />
133
+ <circle cx={hx} cy={hy} r={5} fill="var(--paper)" stroke="var(--data)" strokeWidth={2.5} />
134
+ </>
135
+ )}
136
+ </svg>
137
+ <div aria-hidden="true" className="absolute inset-x-0 bottom-0 h-5">
138
+ {labels.map((l, i) => ((i % every === 0 && n - 1 - i >= every * 0.8) || i === n - 1) && (
139
+ <span key={i} className="absolute -translate-x-1/2 text-2xs font-semibold whitespace-nowrap text-muted first:translate-x-0 last:-translate-x-full" style={{ left: `${(i / Math.max(1, n - 1)) * 100}%` }}>{l}</span>
140
+ ))}
141
+ </div>
142
+ {hover !== null && (
143
+ <span className="pointer-events-none absolute z-5 flex -translate-x-1/2 flex-col gap-px rounded-[9px] bg-ink px-2.5 py-[7px] whitespace-nowrap text-bg shadow-card"
144
+ style={{ left: Math.max(60, Math.min(width - 60, hx)), top: Math.max(0, hy - 64) }}>
145
+ <b className="text-md font-bold">{format(values[hover] ?? 0)}</b>
146
+ <small className="text-2xs font-semibold opacity-75">{labels[hover]}</small>
147
+ {compare && <small className="text-2xs font-semibold opacity-75">{compareLabel}: {format(compare[hover] ?? 0)}</small>}
148
+ </span>
149
+ )}
150
+ </div>
151
+ </div>
152
+ );
153
+ }
@@ -0,0 +1,18 @@
1
+ 'use client';
2
+ import { useState } from 'react';
3
+ import { AreaChart } from './AreaChart';
4
+ import { Segmented } from '@ui/components/navigation/segmented/Segmented';
5
+
6
+ const L = Array.from({ length: 30 }, (_, i) => `Nov ${i + 1}`);
7
+ const series = (seed: number) => L.map((_, i) => Math.round(9000 + Math.sin(i / 3 + seed) * 2500 + i * 180 + seed * 400));
8
+
9
+ export default function Demo() {
10
+ const [r, setR] = useState<'a' | 'b'>('a');
11
+ const usdK = (n: number) => `$${(n / 1000).toFixed(1)}k`;
12
+ return (
13
+ <div className="flex flex-col gap-4">
14
+ <Segmented label="Series" value={r} onChange={setR} options={[{ id: 'a', label: 'Revenue' }, { id: 'b', label: 'Orders value' }]} />
15
+ <AreaChart values={series(r === 'a' ? 1 : 3)} compare={series(0)} compareLabel="Last month" labels={L} format={usdK} valueLabel="Revenue" fromZero={false} />
16
+ </div>
17
+ );
18
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "id": "area-chart",
3
+ "name": "AreaChart",
4
+ "category": "charts",
5
+ "description": "Responsive smooth area chart with gradient, compare series, morph animation, cursor + tooltip.",
6
+ "exports": ["AreaChart"],
7
+ "files": ["AreaChart.tsx"],
8
+ "variants": ["from-zero", "auto-base", "compare"],
9
+ "registryDeps": [],
10
+ "npmDeps": ["gsap"],
11
+ "aliases": ["AreaChart", ".area"],
12
+ "sources": {
13
+ "kestro": "template/app/src/ui/charts.jsx AreaChart",
14
+ "kavora": "Kavora/app/src/components/Charts.jsx AreaChart",
15
+ "brisko": "Dashboard source css .area"
16
+ }
17
+ }
@@ -0,0 +1,76 @@
1
+ 'use client';
2
+ import { useLayoutEffect, useRef, useState } from 'react';
3
+ import { cn } from '@ui/lib/cn';
4
+ import { gsap, T } from '@ui/lib/motion';
5
+ import { niceTicks } from '@ui/lib/chart-math';
6
+
7
+ export interface BarChartProps {
8
+ labels: string[];
9
+ values: number[];
10
+ /** Optional wider "ghost" series behind bars (e.g. last period / target). */
11
+ ghost?: number[];
12
+ ghostLabel?: string;
13
+ valueLabel?: string;
14
+ format?: (n: number) => string;
15
+ height?: number;
16
+ /** Index to highlight. */
17
+ highlight?: number;
18
+ /** Hide y-axis labels. */
19
+ compact?: boolean;
20
+ }
21
+
22
+ /** Column chart with nice ticks, grow-in, hover tooltip and optional ghost series. */
23
+ export function BarChart({ labels, values, ghost, ghostLabel = 'Before', valueLabel, format = (n) => String(Math.round(n)), height = 200, highlight = -1, compact }: BarChartProps) {
24
+ const ref = useRef<HTMLDivElement>(null);
25
+ const [tip, setTip] = useState<number | null>(null);
26
+ const ticks = niceTicks(Math.max(...values, ...(ghost ?? []), 1) * 1.08);
27
+ const top = ticks[ticks.length - 1];
28
+ const firstRun = useRef(true);
29
+ useLayoutEffect(() => {
30
+ const el = ref.current!;
31
+ el.querySelectorAll('[data-bar]').forEach((b, i) => {
32
+ const k = (values[i] ?? 0) / top;
33
+ if (firstRun.current) gsap.fromTo(b, { scaleY: 0 }, { scaleY: k, duration: T(1), delay: T(0.15 + i * 0.04), ease: 'expo.out' });
34
+ else gsap.to(b, { scaleY: k, duration: T(0.75), delay: T(i * 0.02), ease: 'expo.inOut' });
35
+ });
36
+ el.querySelectorAll('[data-ghost]').forEach((g, i) => {
37
+ const k = ((ghost ?? [])[i] ?? 0) / top;
38
+ if (firstRun.current) gsap.fromTo(g, { scaleY: 0 }, { scaleY: k, duration: T(1.1), delay: T(0.05 + i * 0.04), ease: 'expo.out' });
39
+ else gsap.to(g, { scaleY: k, duration: T(0.75), ease: 'expo.inOut' });
40
+ });
41
+ firstRun.current = false;
42
+ }, [values.join(','), (ghost ?? []).join(','), top]);
43
+ return (
44
+ <div ref={ref} className={cn('relative pt-1 pb-[26px]', compact ? 'pl-0' : 'pl-11')} style={{ height }} onPointerLeave={() => setTip(null)}>
45
+ <div aria-hidden="true" className="pointer-events-none absolute inset-x-0 top-1 bottom-[26px] flex flex-col justify-between">
46
+ {ticks.slice().reverse().map((t) => (
47
+ <div key={t} className="relative h-0 border-t border-dashed border-line-2 last:border-solid">
48
+ {!compact && <span className="absolute -top-2 left-0 text-2xs font-semibold text-muted">{format(t)}</span>}
49
+ </div>
50
+ ))}
51
+ </div>
52
+ <div role="img" aria-label={`${valueLabel ?? 'Values'}: ${labels.map((l, i) => `${l} ${format(values[i] ?? 0)}`).join(', ')}`} className="relative flex h-full items-stretch gap-1.5">
53
+ {labels.map((l, i) => {
54
+ const hi = i === highlight, on = tip === i;
55
+ return (
56
+ <div key={l + i} onPointerEnter={() => setTip(i)} className="relative flex min-w-0 flex-1 flex-col items-center">
57
+ <div className="relative flex w-full max-w-[46px] flex-1 items-end justify-center">
58
+ {ghost && <span data-ghost className="absolute inset-x-[4%] bottom-0 h-full origin-bottom scale-y-0 rounded-[6px_6px_2px_2px] bg-card-3" />}
59
+ <span data-bar className={cn('absolute inset-x-[18%] bottom-0 h-full origin-bottom scale-y-0 rounded-[6px_6px_2px_2px]', hi || on ? 'bg-data' : 'bg-[color-mix(in_oklab,var(--data)_62%,var(--card))]')} />
60
+ </div>
61
+ <span className={cn('absolute -bottom-[22px] max-w-full truncate text-2xs font-semibold', hi ? 'font-bold text-accent-text' : 'text-muted')}>{l}</span>
62
+ {on && (
63
+ <span className="pointer-events-none absolute left-1/2 z-5 flex -translate-x-1/2 flex-col gap-px rounded-[9px] bg-ink px-2.5 py-[7px] whitespace-nowrap text-bg shadow-card"
64
+ style={{ bottom: `calc(${(Math.max(values[i] ?? 0, ghost?.[i] ?? 0) / top) * 100}% + 34px)` }}>
65
+ <b className="text-md font-bold">{format(values[i] ?? 0)}</b>
66
+ {valueLabel && <small className="text-2xs font-semibold opacity-75">{valueLabel}</small>}
67
+ {ghost && <small className="text-2xs font-semibold opacity-75">{ghostLabel}: {format(ghost[i] ?? 0)}</small>}
68
+ </span>
69
+ )}
70
+ </div>
71
+ );
72
+ })}
73
+ </div>
74
+ </div>
75
+ );
76
+ }
@@ -0,0 +1,18 @@
1
+ 'use client';
2
+ import { useState } from 'react';
3
+ import { BarChart } from './BarChart';
4
+ import { Button } from '@ui/components/primitives/button/Button';
5
+
6
+ const L = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'];
7
+ const rand = () => L.map(() => Math.round(20 + Math.random() * 80));
8
+
9
+ export default function Demo() {
10
+ const [v, setV] = useState([42, 58, 71, 49, 88, 64, 35]);
11
+ return (
12
+ <div className="flex flex-col gap-6">
13
+ <BarChart labels={L} values={v} ghost={[50, 50, 60, 60, 70, 70, 40]} ghostLabel="Target" valueLabel="Bags sold" highlight={4} height={220} />
14
+ <div className="max-w-xs"><BarChart labels={L} values={v} compact height={110} /></div>
15
+ <div><Button size="sm" onClick={() => setV(rand())}>New data</Button></div>
16
+ </div>
17
+ );
18
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "id": "bar-chart",
3
+ "name": "BarChart",
4
+ "category": "charts",
5
+ "description": "Column chart: nice ticks, grow-in + morph animation, hover tooltip, highlight, ghost/target series, compact.",
6
+ "exports": ["BarChart"],
7
+ "files": ["BarChart.tsx"],
8
+ "variants": ["default", "ghost", "highlight", "compact"],
9
+ "registryDeps": [],
10
+ "npmDeps": ["gsap"],
11
+ "aliases": ["Bars", "BarsChart", "BarChart (sagewell)", ".bars"],
12
+ "sources": {
13
+ "kestro": "template/app/src/ui/charts.jsx Bars",
14
+ "kavora": "Kavora/app/src/components/Charts.jsx BarsChart",
15
+ "brisko": "Dashboard source css .bars",
16
+ "rapport": "rapport/app/src/style.css .bars",
17
+ "sagewell": "app-ui/app/src/widgets.jsx BarChart"
18
+ }
19
+ }