@pylonsync/create-pylon 0.22.74 → 0.22.76

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 (595) hide show
  1. package/bin/create-pylon.js +24 -74
  2. package/package.json +1 -1
  3. package/skill/SKILL.md +8 -11
  4. package/templates/_root/README.md +2 -8
  5. package/templates/agency/AGENTS.md +17 -0
  6. package/templates/agency/app/globals.css +5 -1
  7. package/templates/agency/app/internal/components/page.tsx +248 -0
  8. package/templates/agency/app/internal/design/page.tsx +169 -0
  9. package/templates/agency/app/internal/layout.tsx +89 -0
  10. package/templates/agency/app/internal/sections.ts +26 -0
  11. package/templates/agency/app/internal/showcase.tsx +43 -0
  12. package/templates/agency/app/robots.ts +1 -1
  13. package/templates/agency/components/ui/button.tsx +22 -20
  14. package/templates/agency/components/ui/dialog.tsx +77 -64
  15. package/templates/agency/components/ui/input.tsx +5 -5
  16. package/templates/agency/components/ui/label.tsx +5 -3
  17. package/templates/agency/components/ui/select.tsx +81 -19
  18. package/templates/agency/components/ui/textarea.tsx +5 -3
  19. package/templates/agency/lib/utils.ts +4 -4
  20. package/templates/agency/package.json +3 -3
  21. package/templates/ai-chat/AGENTS.md +17 -0
  22. package/templates/ai-chat/app/globals.css +5 -1
  23. package/templates/ai-chat/app/internal/components/page.tsx +248 -0
  24. package/templates/ai-chat/app/internal/design/page.tsx +173 -0
  25. package/templates/ai-chat/app/internal/layout.tsx +89 -0
  26. package/templates/ai-chat/app/internal/sections.ts +26 -0
  27. package/templates/ai-chat/app/internal/showcase.tsx +43 -0
  28. package/templates/ai-chat/app/robots.ts +1 -1
  29. package/templates/ai-chat/components/ui/button.tsx +22 -20
  30. package/templates/ai-chat/components/ui/dialog.tsx +77 -64
  31. package/templates/ai-chat/components/ui/input.tsx +5 -5
  32. package/templates/ai-chat/components/ui/label.tsx +5 -3
  33. package/templates/ai-chat/components/ui/select.tsx +81 -19
  34. package/templates/ai-chat/components/ui/textarea.tsx +5 -3
  35. package/templates/ai-chat/lib/utils.ts +4 -4
  36. package/templates/ai-chat/package.json +4 -4
  37. package/templates/ai-studio/AGENTS.md +17 -0
  38. package/templates/ai-studio/app/globals.css +5 -1
  39. package/templates/ai-studio/app/internal/components/page.tsx +248 -0
  40. package/templates/ai-studio/app/internal/design/page.tsx +168 -0
  41. package/templates/ai-studio/app/internal/layout.tsx +89 -0
  42. package/templates/ai-studio/app/internal/sections.ts +26 -0
  43. package/templates/ai-studio/app/internal/showcase.tsx +43 -0
  44. package/templates/ai-studio/app/robots.ts +1 -1
  45. package/templates/ai-studio/components/ui/button.tsx +22 -20
  46. package/templates/ai-studio/components/ui/dialog.tsx +77 -64
  47. package/templates/ai-studio/components/ui/input.tsx +5 -5
  48. package/templates/ai-studio/components/ui/label.tsx +5 -3
  49. package/templates/ai-studio/components/ui/select.tsx +81 -19
  50. package/templates/ai-studio/components/ui/textarea.tsx +5 -3
  51. package/templates/ai-studio/lib/utils.ts +4 -4
  52. package/templates/ai-studio/package.json +4 -4
  53. package/templates/barebones/AGENTS.md +17 -0
  54. package/templates/barebones/README.md +6 -3
  55. package/templates/barebones/app/(app)/layout.tsx +16 -0
  56. package/templates/barebones/app/{page.tsx → (app)/page.tsx} +2 -2
  57. package/templates/barebones/app/error.tsx +1 -1
  58. package/templates/barebones/app/globals.css +9 -7
  59. package/templates/barebones/app/internal/components/page.tsx +248 -0
  60. package/templates/barebones/app/internal/design/page.tsx +165 -0
  61. package/templates/barebones/app/internal/layout.tsx +89 -0
  62. package/templates/barebones/app/internal/sections.ts +26 -0
  63. package/templates/barebones/app/internal/showcase.tsx +43 -0
  64. package/templates/barebones/app/layout.tsx +4 -6
  65. package/templates/barebones/app/not-found.tsx +2 -4
  66. package/templates/barebones/app/robots.ts +1 -1
  67. package/templates/barebones/components/ui/button.tsx +22 -20
  68. package/templates/barebones/components/ui/dialog.tsx +77 -64
  69. package/templates/barebones/components/ui/input.tsx +5 -5
  70. package/templates/barebones/components/ui/label.tsx +5 -3
  71. package/templates/barebones/components/ui/select.tsx +81 -19
  72. package/templates/barebones/components/ui/textarea.tsx +5 -3
  73. package/templates/barebones/lib/utils.ts +4 -4
  74. package/templates/barebones/package.json +3 -3
  75. package/templates/chat/AGENTS.md +17 -0
  76. package/templates/chat/app/globals.css +7 -5
  77. package/templates/chat/app/internal/components/page.tsx +248 -0
  78. package/templates/chat/app/internal/design/page.tsx +170 -0
  79. package/templates/chat/app/internal/layout.tsx +89 -0
  80. package/templates/chat/app/internal/sections.ts +26 -0
  81. package/templates/chat/app/internal/showcase.tsx +43 -0
  82. package/templates/chat/app/not-found.tsx +1 -3
  83. package/templates/chat/app/robots.ts +1 -1
  84. package/templates/chat/components/ui/button.tsx +22 -20
  85. package/templates/chat/components/ui/dialog.tsx +77 -64
  86. package/templates/chat/components/ui/input.tsx +5 -5
  87. package/templates/chat/components/ui/label.tsx +5 -3
  88. package/templates/chat/components/ui/select.tsx +81 -19
  89. package/templates/chat/components/ui/textarea.tsx +5 -3
  90. package/templates/chat/lib/utils.ts +4 -4
  91. package/templates/chat/package.json +4 -4
  92. package/templates/consumer/AGENTS.md +17 -0
  93. package/templates/consumer/app/globals.css +9 -7
  94. package/templates/consumer/app/internal/components/page.tsx +248 -0
  95. package/templates/consumer/app/internal/design/page.tsx +167 -0
  96. package/templates/consumer/app/internal/layout.tsx +89 -0
  97. package/templates/consumer/app/internal/sections.ts +26 -0
  98. package/templates/consumer/app/internal/showcase.tsx +43 -0
  99. package/templates/consumer/app/robots.ts +1 -1
  100. package/templates/consumer/components/ui/button.tsx +22 -20
  101. package/templates/consumer/components/ui/dialog.tsx +77 -64
  102. package/templates/consumer/components/ui/input.tsx +5 -5
  103. package/templates/consumer/components/ui/label.tsx +5 -3
  104. package/templates/consumer/components/ui/select.tsx +81 -19
  105. package/templates/consumer/components/ui/textarea.tsx +5 -3
  106. package/templates/consumer/lib/utils.ts +4 -4
  107. package/templates/consumer/package.json +4 -4
  108. package/templates/creator/AGENTS.md +17 -0
  109. package/templates/creator/app/globals.css +5 -1
  110. package/templates/creator/app/internal/components/page.tsx +248 -0
  111. package/templates/creator/app/internal/design/page.tsx +171 -0
  112. package/templates/creator/app/internal/layout.tsx +89 -0
  113. package/templates/creator/app/internal/sections.ts +26 -0
  114. package/templates/creator/app/internal/showcase.tsx +43 -0
  115. package/templates/creator/app/robots.ts +1 -1
  116. package/templates/creator/components/ui/button.tsx +22 -20
  117. package/templates/creator/components/ui/dialog.tsx +77 -64
  118. package/templates/creator/components/ui/input.tsx +5 -5
  119. package/templates/creator/components/ui/label.tsx +5 -3
  120. package/templates/creator/components/ui/select.tsx +81 -19
  121. package/templates/creator/components/ui/textarea.tsx +5 -3
  122. package/templates/creator/lib/utils.ts +4 -4
  123. package/templates/creator/package.json +4 -4
  124. package/templates/crm/AGENTS.md +17 -0
  125. package/templates/crm/README.md +3 -4
  126. package/templates/crm/app/deals/[id]/deal-view.tsx +9 -14
  127. package/templates/crm/app/globals.css +5 -2
  128. package/templates/crm/app/internal/components/page.tsx +282 -0
  129. package/templates/crm/app/internal/design/page.tsx +163 -0
  130. package/templates/crm/app/internal/layout.tsx +89 -0
  131. package/templates/crm/app/internal/sections.ts +27 -0
  132. package/templates/crm/app/internal/showcase.tsx +43 -0
  133. package/templates/crm/app/not-found.tsx +1 -3
  134. package/templates/crm/app/robots.ts +1 -1
  135. package/templates/crm/components/activity-timeline.tsx +6 -8
  136. package/templates/crm/components/app-shell.tsx +25 -26
  137. package/templates/crm/components/deal-dialog.tsx +15 -17
  138. package/templates/crm/components/record-dialog.tsx +10 -11
  139. package/templates/crm/components/ui/button.tsx +22 -20
  140. package/templates/crm/components/ui/dialog.tsx +77 -64
  141. package/templates/crm/components/ui/input.tsx +5 -5
  142. package/templates/crm/components/ui/label.tsx +5 -3
  143. package/templates/crm/components/ui/select.tsx +81 -19
  144. package/templates/crm/components/ui/sheet.tsx +64 -0
  145. package/templates/crm/components/ui/textarea.tsx +5 -3
  146. package/templates/crm/lib/utils.ts +4 -4
  147. package/templates/crm/package.json +4 -4
  148. package/templates/directory/AGENTS.md +17 -0
  149. package/templates/directory/app/globals.css +5 -1
  150. package/templates/directory/app/internal/components/page.tsx +248 -0
  151. package/templates/directory/app/internal/design/page.tsx +168 -0
  152. package/templates/directory/app/internal/layout.tsx +89 -0
  153. package/templates/directory/app/internal/sections.ts +26 -0
  154. package/templates/directory/app/internal/showcase.tsx +43 -0
  155. package/templates/directory/app/robots.ts +1 -1
  156. package/templates/directory/components/ui/button.tsx +22 -20
  157. package/templates/directory/components/ui/dialog.tsx +77 -64
  158. package/templates/directory/components/ui/input.tsx +5 -5
  159. package/templates/directory/components/ui/label.tsx +5 -3
  160. package/templates/directory/components/ui/select.tsx +81 -19
  161. package/templates/directory/components/ui/textarea.tsx +5 -3
  162. package/templates/directory/lib/utils.ts +4 -4
  163. package/templates/directory/package.json +4 -4
  164. package/templates/helpdesk/AGENTS.md +17 -0
  165. package/templates/helpdesk/README.md +1 -1
  166. package/templates/helpdesk/app/globals.css +5 -2
  167. package/templates/helpdesk/app/internal/components/page.tsx +282 -0
  168. package/templates/helpdesk/app/internal/design/page.tsx +163 -0
  169. package/templates/helpdesk/app/internal/layout.tsx +89 -0
  170. package/templates/helpdesk/app/internal/sections.ts +27 -0
  171. package/templates/helpdesk/app/internal/showcase.tsx +43 -0
  172. package/templates/helpdesk/app/not-found.tsx +1 -3
  173. package/templates/helpdesk/app/robots.ts +1 -1
  174. package/templates/helpdesk/app/tickets/[id]/ticket-view.tsx +22 -29
  175. package/templates/helpdesk/components/app-shell.tsx +25 -26
  176. package/templates/helpdesk/components/new-ticket-dialog.tsx +15 -17
  177. package/templates/helpdesk/components/record-dialog.tsx +10 -11
  178. package/templates/helpdesk/components/ui/button.tsx +22 -20
  179. package/templates/helpdesk/components/ui/dialog.tsx +77 -64
  180. package/templates/helpdesk/components/ui/input.tsx +5 -5
  181. package/templates/helpdesk/components/ui/label.tsx +5 -3
  182. package/templates/helpdesk/components/ui/select.tsx +81 -19
  183. package/templates/helpdesk/components/ui/sheet.tsx +64 -0
  184. package/templates/helpdesk/components/ui/textarea.tsx +5 -3
  185. package/templates/helpdesk/lib/utils.ts +4 -4
  186. package/templates/helpdesk/package.json +4 -4
  187. package/templates/imessage/AGENTS.md +17 -0
  188. package/templates/imessage/app/globals.css +4 -0
  189. package/templates/imessage/app/internal/components/page.tsx +248 -0
  190. package/templates/imessage/app/internal/design/page.tsx +163 -0
  191. package/templates/imessage/app/internal/layout.tsx +89 -0
  192. package/templates/imessage/app/internal/sections.ts +26 -0
  193. package/templates/imessage/app/internal/showcase.tsx +43 -0
  194. package/templates/imessage/components/ui/button.tsx +22 -20
  195. package/templates/imessage/components/ui/dialog.tsx +77 -64
  196. package/templates/imessage/components/ui/input.tsx +5 -5
  197. package/templates/imessage/components/ui/label.tsx +5 -3
  198. package/templates/imessage/components/ui/select.tsx +81 -19
  199. package/templates/imessage/components/ui/textarea.tsx +5 -3
  200. package/templates/imessage/lib/utils.ts +4 -4
  201. package/templates/imessage/package.json +4 -4
  202. package/templates/inventory/AGENTS.md +17 -0
  203. package/templates/inventory/README.md +1 -1
  204. package/templates/inventory/app/globals.css +5 -2
  205. package/templates/inventory/app/internal/components/page.tsx +282 -0
  206. package/templates/inventory/app/internal/design/page.tsx +163 -0
  207. package/templates/inventory/app/internal/layout.tsx +89 -0
  208. package/templates/inventory/app/internal/sections.ts +27 -0
  209. package/templates/inventory/app/internal/showcase.tsx +43 -0
  210. package/templates/inventory/app/not-found.tsx +1 -3
  211. package/templates/inventory/app/products/[id]/product-view.tsx +1 -3
  212. package/templates/inventory/app/robots.ts +1 -1
  213. package/templates/inventory/components/app-shell.tsx +25 -26
  214. package/templates/inventory/components/movement-dialog.tsx +15 -17
  215. package/templates/inventory/components/record-dialog.tsx +10 -11
  216. package/templates/inventory/components/ui/button.tsx +22 -20
  217. package/templates/inventory/components/ui/dialog.tsx +77 -64
  218. package/templates/inventory/components/ui/input.tsx +5 -5
  219. package/templates/inventory/components/ui/label.tsx +5 -3
  220. package/templates/inventory/components/ui/select.tsx +81 -19
  221. package/templates/inventory/components/ui/sheet.tsx +64 -0
  222. package/templates/inventory/components/ui/textarea.tsx +5 -3
  223. package/templates/inventory/lib/utils.ts +4 -4
  224. package/templates/inventory/package.json +4 -4
  225. package/templates/inventory/tests/components.test.tsx +27 -14
  226. package/templates/invoices/AGENTS.md +17 -0
  227. package/templates/invoices/README.md +1 -1
  228. package/templates/invoices/app/globals.css +5 -2
  229. package/templates/invoices/app/internal/components/page.tsx +282 -0
  230. package/templates/invoices/app/internal/design/page.tsx +163 -0
  231. package/templates/invoices/app/internal/layout.tsx +89 -0
  232. package/templates/invoices/app/internal/sections.ts +27 -0
  233. package/templates/invoices/app/internal/showcase.tsx +43 -0
  234. package/templates/invoices/app/invoices/[id]/invoice-view.tsx +20 -26
  235. package/templates/invoices/app/not-found.tsx +1 -3
  236. package/templates/invoices/app/robots.ts +1 -1
  237. package/templates/invoices/components/app-shell.tsx +25 -26
  238. package/templates/invoices/components/payment-dialog.tsx +6 -8
  239. package/templates/invoices/components/record-dialog.tsx +10 -11
  240. package/templates/invoices/components/ui/button.tsx +22 -20
  241. package/templates/invoices/components/ui/dialog.tsx +77 -64
  242. package/templates/invoices/components/ui/input.tsx +5 -5
  243. package/templates/invoices/components/ui/label.tsx +5 -3
  244. package/templates/invoices/components/ui/select.tsx +81 -19
  245. package/templates/invoices/components/ui/sheet.tsx +64 -0
  246. package/templates/invoices/components/ui/textarea.tsx +5 -3
  247. package/templates/invoices/lib/utils.ts +4 -4
  248. package/templates/invoices/package.json +4 -4
  249. package/templates/local-service/AGENTS.md +17 -0
  250. package/templates/local-service/app/globals.css +5 -1
  251. package/templates/local-service/app/internal/components/page.tsx +248 -0
  252. package/templates/local-service/app/internal/design/page.tsx +170 -0
  253. package/templates/local-service/app/internal/layout.tsx +89 -0
  254. package/templates/local-service/app/internal/sections.ts +26 -0
  255. package/templates/local-service/app/internal/showcase.tsx +43 -0
  256. package/templates/local-service/app/robots.ts +1 -1
  257. package/templates/local-service/components/ui/button.tsx +22 -20
  258. package/templates/local-service/components/ui/dialog.tsx +77 -64
  259. package/templates/local-service/components/ui/input.tsx +5 -5
  260. package/templates/local-service/components/ui/label.tsx +5 -3
  261. package/templates/local-service/components/ui/select.tsx +81 -19
  262. package/templates/local-service/components/ui/textarea.tsx +5 -3
  263. package/templates/local-service/lib/utils.ts +4 -4
  264. package/templates/local-service/package.json +4 -4
  265. package/templates/marketplace/AGENTS.md +17 -0
  266. package/templates/marketplace/README.md +8 -5
  267. package/templates/marketplace/app/(market)/layout.tsx +113 -0
  268. package/templates/marketplace/app/{listing → (market)/listing}/[id]/page.tsx +7 -7
  269. package/templates/marketplace/app/{me → (market)/me}/page.tsx +1 -1
  270. package/templates/marketplace/app/{not-found.tsx → (market)/not-found.tsx} +1 -3
  271. package/templates/marketplace/app/{page.tsx → (market)/page.tsx} +5 -5
  272. package/templates/marketplace/app/{sell → (market)/sell}/page.tsx +1 -1
  273. package/templates/marketplace/app/error.tsx +1 -3
  274. package/templates/marketplace/app/globals.css +4 -0
  275. package/templates/marketplace/app/internal/components/page.tsx +335 -0
  276. package/templates/marketplace/app/internal/design/page.tsx +158 -0
  277. package/templates/marketplace/app/internal/layout.tsx +89 -0
  278. package/templates/marketplace/app/internal/sections.ts +30 -0
  279. package/templates/marketplace/app/internal/showcase.tsx +43 -0
  280. package/templates/marketplace/app/layout.tsx +4 -100
  281. package/templates/marketplace/app/robots.ts +1 -1
  282. package/templates/marketplace/client/ListingCard.tsx +1 -1
  283. package/templates/marketplace/components/ui/button.tsx +22 -21
  284. package/templates/marketplace/components/ui/dialog.tsx +77 -64
  285. package/templates/marketplace/components/ui/input.tsx +5 -5
  286. package/templates/marketplace/components/ui/label.tsx +5 -4
  287. package/templates/marketplace/components/ui/select.tsx +101 -0
  288. package/templates/marketplace/components/ui/separator.tsx +5 -8
  289. package/templates/marketplace/components/ui/textarea.tsx +5 -3
  290. package/templates/marketplace/lib/utils.ts +4 -4
  291. package/templates/marketplace/package.json +3 -5
  292. package/templates/projects/AGENTS.md +17 -0
  293. package/templates/projects/README.md +1 -1
  294. package/templates/projects/app/globals.css +5 -2
  295. package/templates/projects/app/internal/components/page.tsx +282 -0
  296. package/templates/projects/app/internal/design/page.tsx +163 -0
  297. package/templates/projects/app/internal/layout.tsx +89 -0
  298. package/templates/projects/app/internal/sections.ts +27 -0
  299. package/templates/projects/app/internal/showcase.tsx +43 -0
  300. package/templates/projects/app/not-found.tsx +1 -3
  301. package/templates/projects/app/projects/[id]/project-view.tsx +9 -14
  302. package/templates/projects/app/robots.ts +1 -1
  303. package/templates/projects/components/app-shell.tsx +25 -26
  304. package/templates/projects/components/record-dialog.tsx +10 -11
  305. package/templates/projects/components/time-dialog.tsx +6 -8
  306. package/templates/projects/components/ui/button.tsx +22 -20
  307. package/templates/projects/components/ui/dialog.tsx +77 -64
  308. package/templates/projects/components/ui/input.tsx +5 -5
  309. package/templates/projects/components/ui/label.tsx +5 -3
  310. package/templates/projects/components/ui/select.tsx +81 -19
  311. package/templates/projects/components/ui/sheet.tsx +64 -0
  312. package/templates/projects/components/ui/textarea.tsx +5 -3
  313. package/templates/projects/lib/utils.ts +4 -4
  314. package/templates/projects/package.json +4 -4
  315. package/templates/restaurant/AGENTS.md +17 -0
  316. package/templates/restaurant/app/globals.css +5 -1
  317. package/templates/restaurant/app/internal/components/page.tsx +248 -0
  318. package/templates/restaurant/app/internal/design/page.tsx +168 -0
  319. package/templates/restaurant/app/internal/layout.tsx +89 -0
  320. package/templates/restaurant/app/internal/sections.ts +26 -0
  321. package/templates/restaurant/app/internal/showcase.tsx +43 -0
  322. package/templates/restaurant/app/robots.ts +1 -1
  323. package/templates/restaurant/components/ui/button.tsx +22 -20
  324. package/templates/restaurant/components/ui/dialog.tsx +77 -64
  325. package/templates/restaurant/components/ui/input.tsx +5 -5
  326. package/templates/restaurant/components/ui/label.tsx +5 -3
  327. package/templates/restaurant/components/ui/select.tsx +81 -19
  328. package/templates/restaurant/components/ui/textarea.tsx +5 -3
  329. package/templates/restaurant/lib/utils.ts +4 -4
  330. package/templates/restaurant/package.json +4 -4
  331. package/templates/saas/AGENTS.md +17 -0
  332. package/templates/saas/README.md +1 -1
  333. package/templates/saas/app/(marketing)/not-found.tsx +1 -3
  334. package/templates/saas/app/dashboard/board-client.tsx +32 -42
  335. package/templates/saas/app/globals.css +9 -7
  336. package/templates/saas/app/internal/components/page.tsx +282 -0
  337. package/templates/saas/app/internal/design/page.tsx +168 -0
  338. package/templates/saas/app/internal/layout.tsx +89 -0
  339. package/templates/saas/app/internal/sections.ts +27 -0
  340. package/templates/saas/app/internal/showcase.tsx +43 -0
  341. package/templates/saas/app/robots.ts +1 -1
  342. package/templates/saas/components/dashboard-shell.tsx +28 -21
  343. package/templates/saas/components/ui/button.tsx +22 -20
  344. package/templates/saas/components/ui/dialog.tsx +77 -64
  345. package/templates/saas/components/ui/input.tsx +5 -5
  346. package/templates/saas/components/ui/label.tsx +5 -3
  347. package/templates/saas/components/ui/select.tsx +81 -19
  348. package/templates/saas/components/ui/sheet.tsx +64 -0
  349. package/templates/saas/components/ui/textarea.tsx +5 -3
  350. package/templates/saas/lib/utils.ts +4 -4
  351. package/templates/saas/package.json +4 -4
  352. package/templates/shop/AGENTS.md +17 -0
  353. package/templates/shop/app/globals.css +5 -1
  354. package/templates/shop/app/internal/components/page.tsx +248 -0
  355. package/templates/shop/app/internal/design/page.tsx +173 -0
  356. package/templates/shop/app/internal/layout.tsx +89 -0
  357. package/templates/shop/app/internal/sections.ts +26 -0
  358. package/templates/shop/app/internal/showcase.tsx +43 -0
  359. package/templates/shop/app/robots.ts +1 -1
  360. package/templates/shop/components/ui/button.tsx +22 -20
  361. package/templates/shop/components/ui/dialog.tsx +77 -64
  362. package/templates/shop/components/ui/input.tsx +5 -5
  363. package/templates/shop/components/ui/label.tsx +5 -3
  364. package/templates/shop/components/ui/select.tsx +81 -19
  365. package/templates/shop/components/ui/textarea.tsx +5 -3
  366. package/templates/shop/functions/checkout.ts +9 -8
  367. package/templates/shop/lib/utils.ts +4 -4
  368. package/templates/shop/package.json +4 -4
  369. package/templates/todo/AGENTS.md +17 -0
  370. package/templates/todo/README.md +7 -4
  371. package/templates/todo/app/(app)/layout.tsx +16 -0
  372. package/templates/todo/app/{page.tsx → (app)/page.tsx} +2 -2
  373. package/templates/todo/app/error.tsx +1 -1
  374. package/templates/todo/app/globals.css +9 -7
  375. package/templates/todo/app/internal/components/page.tsx +248 -0
  376. package/templates/todo/app/internal/design/page.tsx +165 -0
  377. package/templates/todo/app/internal/layout.tsx +89 -0
  378. package/templates/todo/app/internal/sections.ts +26 -0
  379. package/templates/todo/app/internal/showcase.tsx +43 -0
  380. package/templates/todo/app/layout.tsx +5 -7
  381. package/templates/todo/app/not-found.tsx +2 -4
  382. package/templates/todo/app/robots.ts +1 -1
  383. package/templates/todo/components/ui/button.tsx +22 -20
  384. package/templates/todo/components/ui/dialog.tsx +77 -64
  385. package/templates/todo/components/ui/input.tsx +5 -5
  386. package/templates/todo/components/ui/label.tsx +5 -3
  387. package/templates/todo/components/ui/select.tsx +81 -19
  388. package/templates/todo/components/ui/textarea.tsx +5 -3
  389. package/templates/todo/lib/utils.ts +4 -4
  390. package/templates/todo/package.json +4 -4
  391. package/templates/waitlist/AGENTS.md +17 -0
  392. package/templates/waitlist/app/globals.css +5 -1
  393. package/templates/waitlist/app/internal/components/page.tsx +248 -0
  394. package/templates/waitlist/app/internal/design/page.tsx +173 -0
  395. package/templates/waitlist/app/internal/layout.tsx +89 -0
  396. package/templates/waitlist/app/internal/sections.ts +26 -0
  397. package/templates/waitlist/app/internal/showcase.tsx +43 -0
  398. package/templates/waitlist/app/robots.ts +1 -1
  399. package/templates/waitlist/components/ui/button.tsx +22 -20
  400. package/templates/waitlist/components/ui/dialog.tsx +77 -64
  401. package/templates/waitlist/components/ui/input.tsx +5 -5
  402. package/templates/waitlist/components/ui/label.tsx +5 -3
  403. package/templates/waitlist/components/ui/select.tsx +81 -19
  404. package/templates/waitlist/components/ui/textarea.tsx +5 -3
  405. package/templates/waitlist/lib/utils.ts +4 -4
  406. package/templates/waitlist/package.json +4 -4
  407. package/templates/agency/components.json +0 -20
  408. package/templates/ai-chat/components.json +0 -20
  409. package/templates/ai-studio/components.json +0 -20
  410. package/templates/backend/b2b/apps/api/functions/archiveProject.ts +0 -13
  411. package/templates/backend/b2b/apps/api/functions/createOrg.ts +0 -44
  412. package/templates/backend/b2b/apps/api/functions/createProject.ts +0 -22
  413. package/templates/backend/b2b/apps/api/functions/inviteMember.ts +0 -41
  414. package/templates/backend/b2b/apps/api/functions/myOrgs.ts +0 -37
  415. package/templates/backend/b2b/apps/api/functions/orgMembers.ts +0 -13
  416. package/templates/backend/b2b/apps/api/functions/orgProjects.ts +0 -15
  417. package/templates/backend/b2b/apps/api/functions/removeMember.ts +0 -25
  418. package/templates/backend/b2b/apps/api/functions/setMemberRole.ts +0 -33
  419. package/templates/backend/b2b/apps/api/package.json +0 -20
  420. package/templates/backend/b2b/apps/api/schema.ts +0 -182
  421. package/templates/backend/b2b/apps/api/tsconfig.json +0 -13
  422. package/templates/backend/barebones/apps/api/functions/createWidget.ts +0 -26
  423. package/templates/backend/barebones/apps/api/functions/listWidgets.ts +0 -19
  424. package/templates/backend/barebones/apps/api/package.json +0 -20
  425. package/templates/backend/barebones/apps/api/schema.ts +0 -64
  426. package/templates/backend/barebones/apps/api/tsconfig.json +0 -13
  427. package/templates/backend/chat/apps/api/functions/createRoom.ts +0 -32
  428. package/templates/backend/chat/apps/api/functions/listRooms.ts +0 -15
  429. package/templates/backend/chat/apps/api/functions/roomMessages.ts +0 -20
  430. package/templates/backend/chat/apps/api/functions/sendMessage.ts +0 -37
  431. package/templates/backend/chat/apps/api/package.json +0 -20
  432. package/templates/backend/chat/apps/api/schema.ts +0 -99
  433. package/templates/backend/chat/apps/api/tsconfig.json +0 -13
  434. package/templates/backend/todo/apps/api/functions/addTodo.ts +0 -31
  435. package/templates/backend/todo/apps/api/functions/deleteTodo.ts +0 -15
  436. package/templates/backend/todo/apps/api/functions/editTodo.ts +0 -17
  437. package/templates/backend/todo/apps/api/functions/listTodos.ts +0 -25
  438. package/templates/backend/todo/apps/api/functions/reorderTodo.ts +0 -15
  439. package/templates/backend/todo/apps/api/functions/toggleTodo.ts +0 -14
  440. package/templates/backend/todo/apps/api/package.json +0 -20
  441. package/templates/backend/todo/apps/api/schema.ts +0 -88
  442. package/templates/backend/todo/apps/api/tsconfig.json +0 -13
  443. package/templates/barebones/components.json +0 -20
  444. package/templates/chat/components.json +0 -20
  445. package/templates/consumer/components.json +0 -20
  446. package/templates/creator/components.json +0 -20
  447. package/templates/crm/components.json +0 -20
  448. package/templates/directory/components.json +0 -20
  449. package/templates/expo/barebones/apps/expo/App.tsx +0 -166
  450. package/templates/expo/barebones/apps/expo/app.json +0 -31
  451. package/templates/expo/barebones/apps/expo/babel.config.js +0 -6
  452. package/templates/expo/barebones/apps/expo/package.json +0 -31
  453. package/templates/expo/barebones/apps/expo/tsconfig.json +0 -16
  454. package/templates/expo/chat/apps/expo/App.tsx +0 -391
  455. package/templates/expo/chat/apps/expo/app.json +0 -25
  456. package/templates/expo/chat/apps/expo/babel.config.js +0 -6
  457. package/templates/expo/chat/apps/expo/package.json +0 -32
  458. package/templates/expo/chat/apps/expo/tsconfig.json +0 -16
  459. package/templates/expo/todo/apps/expo/App.tsx +0 -287
  460. package/templates/expo/todo/apps/expo/app.json +0 -25
  461. package/templates/expo/todo/apps/expo/babel.config.js +0 -6
  462. package/templates/expo/todo/apps/expo/package.json +0 -31
  463. package/templates/expo/todo/apps/expo/tsconfig.json +0 -16
  464. package/templates/helpdesk/components.json +0 -20
  465. package/templates/imessage/components.json +0 -20
  466. package/templates/inventory/components.json +0 -20
  467. package/templates/invoices/components.json +0 -20
  468. package/templates/ios/barebones/apps/ios/Package.swift +0 -34
  469. package/templates/ios/barebones/apps/ios/Sources/__APP_NAME_PASCAL__/ContentView.swift +0 -98
  470. package/templates/ios/barebones/apps/ios/Sources/__APP_NAME_PASCAL__/Models.swift +0 -17
  471. package/templates/ios/barebones/apps/ios/Sources/__APP_NAME_PASCAL__/__APP_NAME_PASCAL__App.swift +0 -34
  472. package/templates/ios/barebones/apps/ios/project.yml +0 -42
  473. package/templates/ios/chat/apps/ios/Package.swift +0 -24
  474. package/templates/ios/chat/apps/ios/Sources/__APP_NAME_PASCAL__/ChatRootView.swift +0 -116
  475. package/templates/ios/chat/apps/ios/Sources/__APP_NAME_PASCAL__/Models.swift +0 -26
  476. package/templates/ios/chat/apps/ios/Sources/__APP_NAME_PASCAL__/RoomView.swift +0 -136
  477. package/templates/ios/chat/apps/ios/Sources/__APP_NAME_PASCAL__/__APP_NAME_PASCAL__App.swift +0 -58
  478. package/templates/ios/chat/apps/ios/project.yml +0 -44
  479. package/templates/ios/todo/apps/ios/Package.swift +0 -23
  480. package/templates/ios/todo/apps/ios/Sources/__APP_NAME_PASCAL__/Models.swift +0 -18
  481. package/templates/ios/todo/apps/ios/Sources/__APP_NAME_PASCAL__/TodoListView.swift +0 -230
  482. package/templates/ios/todo/apps/ios/Sources/__APP_NAME_PASCAL__/__APP_NAME_PASCAL__App.swift +0 -28
  483. package/templates/ios/todo/apps/ios/project.yml +0 -32
  484. package/templates/local-service/components.json +0 -20
  485. package/templates/mac/b2b/apps/mac/Package.swift +0 -22
  486. package/templates/mac/b2b/apps/mac/Sources/__APP_NAME_PASCAL__/Models.swift +0 -15
  487. package/templates/mac/b2b/apps/mac/Sources/__APP_NAME_PASCAL__/OrgPickerView.swift +0 -178
  488. package/templates/mac/b2b/apps/mac/Sources/__APP_NAME_PASCAL__/__APP_NAME_PASCAL__App.swift +0 -30
  489. package/templates/mac/b2b/apps/mac/__APP_NAME_PASCAL__.entitlements +0 -13
  490. package/templates/mac/b2b/apps/mac/project.yml +0 -34
  491. package/templates/mac/barebones/apps/mac/Package.swift +0 -33
  492. package/templates/mac/barebones/apps/mac/Sources/__APP_NAME_PASCAL__/ContentView.swift +0 -104
  493. package/templates/mac/barebones/apps/mac/Sources/__APP_NAME_PASCAL__/Models.swift +0 -17
  494. package/templates/mac/barebones/apps/mac/Sources/__APP_NAME_PASCAL__/__APP_NAME_PASCAL__App.swift +0 -30
  495. package/templates/mac/barebones/apps/mac/__APP_NAME_PASCAL__.entitlements +0 -13
  496. package/templates/mac/barebones/apps/mac/project.yml +0 -34
  497. package/templates/mac/chat/apps/mac/Package.swift +0 -34
  498. package/templates/mac/chat/apps/mac/Sources/__APP_NAME_PASCAL__/ChatRootView.swift +0 -143
  499. package/templates/mac/chat/apps/mac/Sources/__APP_NAME_PASCAL__/Models.swift +0 -26
  500. package/templates/mac/chat/apps/mac/Sources/__APP_NAME_PASCAL__/RoomView.swift +0 -136
  501. package/templates/mac/chat/apps/mac/Sources/__APP_NAME_PASCAL__/__APP_NAME_PASCAL__App.swift +0 -58
  502. package/templates/mac/chat/apps/mac/__APP_NAME_PASCAL__.entitlements +0 -13
  503. package/templates/mac/chat/apps/mac/project.yml +0 -36
  504. package/templates/mac/consumer/apps/mac/Package.swift +0 -34
  505. package/templates/mac/consumer/apps/mac/Sources/__APP_NAME_PASCAL__/FeedView.swift +0 -199
  506. package/templates/mac/consumer/apps/mac/Sources/__APP_NAME_PASCAL__/Models.swift +0 -34
  507. package/templates/mac/consumer/apps/mac/Sources/__APP_NAME_PASCAL__/ProfileSetupView.swift +0 -68
  508. package/templates/mac/consumer/apps/mac/Sources/__APP_NAME_PASCAL__/RootView.swift +0 -40
  509. package/templates/mac/consumer/apps/mac/Sources/__APP_NAME_PASCAL__/__APP_NAME_PASCAL__App.swift +0 -59
  510. package/templates/mac/consumer/apps/mac/__APP_NAME_PASCAL__.entitlements +0 -13
  511. package/templates/mac/consumer/apps/mac/project.yml +0 -36
  512. package/templates/mac/todo/apps/mac/Package.swift +0 -33
  513. package/templates/mac/todo/apps/mac/Sources/__APP_NAME_PASCAL__/Models.swift +0 -19
  514. package/templates/mac/todo/apps/mac/Sources/__APP_NAME_PASCAL__/TodoListView.swift +0 -244
  515. package/templates/mac/todo/apps/mac/Sources/__APP_NAME_PASCAL__/__APP_NAME_PASCAL__App.swift +0 -30
  516. package/templates/mac/todo/apps/mac/__APP_NAME_PASCAL__.entitlements +0 -13
  517. package/templates/mac/todo/apps/mac/project.yml +0 -34
  518. package/templates/marketplace/components/ui/native-select.tsx +0 -62
  519. package/templates/marketplace/components.json +0 -20
  520. package/templates/projects/components.json +0 -20
  521. package/templates/restaurant/components.json +0 -20
  522. package/templates/saas/components.json +0 -20
  523. package/templates/shop/components.json +0 -20
  524. package/templates/todo/components.json +0 -20
  525. package/templates/ui/packages/ui/package.json +0 -26
  526. package/templates/ui/packages/ui/src/button.tsx +0 -44
  527. package/templates/ui/packages/ui/src/card.tsx +0 -39
  528. package/templates/ui/packages/ui/src/cn.ts +0 -12
  529. package/templates/ui/packages/ui/src/index.ts +0 -4
  530. package/templates/ui/packages/ui/src/input.tsx +0 -19
  531. package/templates/ui/packages/ui/tsconfig.json +0 -15
  532. package/templates/vite/todo/apps/web/index.html +0 -12
  533. package/templates/vite/todo/apps/web/package.json +0 -31
  534. package/templates/vite/todo/apps/web/src/App.tsx +0 -16
  535. package/templates/vite/todo/apps/web/src/components/TodoList.tsx +0 -281
  536. package/templates/vite/todo/apps/web/src/index.css +0 -14
  537. package/templates/vite/todo/apps/web/src/main.tsx +0 -20
  538. package/templates/vite/todo/apps/web/tsconfig.json +0 -24
  539. package/templates/vite/todo/apps/web/vite.config.ts +0 -41
  540. package/templates/waitlist/components.json +0 -20
  541. package/templates/web/b2b/apps/web/next-env.d.ts +0 -2
  542. package/templates/web/b2b/apps/web/next.config.ts +0 -24
  543. package/templates/web/b2b/apps/web/package.json +0 -27
  544. package/templates/web/b2b/apps/web/postcss.config.mjs +0 -3
  545. package/templates/web/b2b/apps/web/src/app/components/OrgPicker.tsx +0 -171
  546. package/templates/web/b2b/apps/web/src/app/globals.css +0 -6
  547. package/templates/web/b2b/apps/web/src/app/layout.tsx +0 -21
  548. package/templates/web/b2b/apps/web/src/app/page.tsx +0 -39
  549. package/templates/web/b2b/apps/web/src/lib/pylon.ts +0 -5
  550. package/templates/web/b2b/apps/web/tsconfig.json +0 -26
  551. package/templates/web/barebones/apps/web/next-env.d.ts +0 -2
  552. package/templates/web/barebones/apps/web/next.config.ts +0 -40
  553. package/templates/web/barebones/apps/web/package.json +0 -27
  554. package/templates/web/barebones/apps/web/postcss.config.mjs +0 -3
  555. package/templates/web/barebones/apps/web/src/app/components/WidgetList.tsx +0 -81
  556. package/templates/web/barebones/apps/web/src/app/globals.css +0 -6
  557. package/templates/web/barebones/apps/web/src/app/layout.tsx +0 -21
  558. package/templates/web/barebones/apps/web/src/app/page.tsx +0 -43
  559. package/templates/web/barebones/apps/web/src/lib/pylon.ts +0 -14
  560. package/templates/web/barebones/apps/web/tsconfig.json +0 -26
  561. package/templates/web/chat/apps/web/next-env.d.ts +0 -2
  562. package/templates/web/chat/apps/web/next.config.ts +0 -24
  563. package/templates/web/chat/apps/web/package.json +0 -27
  564. package/templates/web/chat/apps/web/postcss.config.mjs +0 -3
  565. package/templates/web/chat/apps/web/src/app/components/ChatRoom.tsx +0 -231
  566. package/templates/web/chat/apps/web/src/app/globals.css +0 -6
  567. package/templates/web/chat/apps/web/src/app/layout.tsx +0 -22
  568. package/templates/web/chat/apps/web/src/app/page.tsx +0 -12
  569. package/templates/web/chat/apps/web/src/app/providers.tsx +0 -25
  570. package/templates/web/chat/apps/web/src/lib/pylon.ts +0 -5
  571. package/templates/web/chat/apps/web/tsconfig.json +0 -26
  572. package/templates/web/consumer/apps/web/next-env.d.ts +0 -2
  573. package/templates/web/consumer/apps/web/next.config.ts +0 -24
  574. package/templates/web/consumer/apps/web/package.json +0 -27
  575. package/templates/web/consumer/apps/web/postcss.config.mjs +0 -3
  576. package/templates/web/consumer/apps/web/src/app/components/Feed.tsx +0 -315
  577. package/templates/web/consumer/apps/web/src/app/globals.css +0 -6
  578. package/templates/web/consumer/apps/web/src/app/layout.tsx +0 -22
  579. package/templates/web/consumer/apps/web/src/app/page.tsx +0 -21
  580. package/templates/web/consumer/apps/web/src/app/providers.tsx +0 -25
  581. package/templates/web/consumer/apps/web/src/lib/pylon.ts +0 -5
  582. package/templates/web/consumer/apps/web/tsconfig.json +0 -26
  583. package/templates/web/todo/apps/web/next-env.d.ts +0 -2
  584. package/templates/web/todo/apps/web/next.config.ts +0 -26
  585. package/templates/web/todo/apps/web/package.json +0 -30
  586. package/templates/web/todo/apps/web/postcss.config.mjs +0 -3
  587. package/templates/web/todo/apps/web/src/app/components/TodoList.tsx +0 -310
  588. package/templates/web/todo/apps/web/src/app/globals.css +0 -6
  589. package/templates/web/todo/apps/web/src/app/layout.tsx +0 -21
  590. package/templates/web/todo/apps/web/src/app/page.tsx +0 -36
  591. package/templates/web/todo/apps/web/src/lib/pylon.ts +0 -5
  592. package/templates/web/todo/apps/web/tsconfig.json +0 -26
  593. /package/templates/barebones/app/{items-client.tsx → (app)/items-client.tsx} +0 -0
  594. /package/templates/marketplace/{app/_components → components}/CategoryIcon.tsx +0 -0
  595. /package/templates/todo/app/{todo-app.tsx → (app)/todo-app.tsx} +0 -0
@@ -1,55 +1,69 @@
1
1
  "use client";
2
2
 
3
3
  import * as React from "react";
4
- import * as DialogPrimitive from "@radix-ui/react-dialog";
4
+ import {
5
+ Dialog,
6
+ DialogBackdrop as DialogBackdropPart,
7
+ DialogClose,
8
+ DialogContent as DialogContentPart,
9
+ DialogDescription as DialogDescriptionPart,
10
+ DialogTitle as DialogTitlePart,
11
+ DialogTrigger,
12
+ } from "@ui-sdk/react/dialog";
5
13
  import { X } from "lucide-react";
6
14
 
7
15
  import { cn } from "@/lib/utils";
8
16
 
9
- const Dialog = DialogPrimitive.Root;
10
- const DialogTrigger = DialogPrimitive.Trigger;
11
- const DialogPortal = DialogPrimitive.Portal;
12
- const DialogClose = DialogPrimitive.Close;
13
-
14
- const DialogOverlay = React.forwardRef<
15
- React.ElementRef<typeof DialogPrimitive.Overlay>,
16
- React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>
17
- >(({ className, ...props }, ref) => (
18
- <DialogPrimitive.Overlay
19
- ref={ref}
20
- className={cn(
21
- "fixed inset-0 z-50 bg-black/50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
22
- className,
23
- )}
24
- {...props}
25
- />
26
- ));
27
- DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
17
+ type StringClassName<T> = Omit<T, "className"> & { className?: string };
28
18
 
29
- const DialogContent = React.forwardRef<
30
- React.ElementRef<typeof DialogPrimitive.Content>,
31
- React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>
32
- >(({ className, children, ...props }, ref) => (
33
- <DialogPortal>
34
- <DialogOverlay />
35
- <DialogPrimitive.Content
36
- ref={ref}
19
+ function DialogBackdrop({
20
+ className,
21
+ ...props
22
+ }: StringClassName<React.ComponentProps<typeof DialogBackdropPart>>) {
23
+ return (
24
+ <DialogBackdropPart
37
25
  className={cn(
38
- "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 rounded-xl border bg-background p-6 shadow-lg duration-200",
39
- "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",
26
+ "fixed inset-0 z-50 bg-black/50 transition-opacity duration-200 data-starting-style:opacity-0 data-ending-style:opacity-0 motion-reduce:transition-none",
40
27
  className,
41
28
  )}
42
29
  {...props}
43
- >
44
- {children}
45
- <DialogPrimitive.Close className="absolute right-3 top-3 rounded-md p-1 text-muted-foreground opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-ring">
46
- <X className="size-4" />
47
- <span className="sr-only">Close</span>
48
- </DialogPrimitive.Close>
49
- </DialogPrimitive.Content>
50
- </DialogPortal>
51
- ));
52
- DialogContent.displayName = DialogPrimitive.Content.displayName;
30
+ />
31
+ );
32
+ }
33
+
34
+ /**
35
+ * The dialog panel. It renders its own backdrop and a close button, so a
36
+ * caller writes only the title, the description and the body.
37
+ */
38
+ function DialogContent({
39
+ className,
40
+ children,
41
+ ...props
42
+ }: Omit<StringClassName<React.ComponentProps<typeof DialogContentPart>>, "children"> & {
43
+ children?: React.ReactNode;
44
+ }) {
45
+ return (
46
+ <>
47
+ <DialogBackdrop />
48
+ <DialogContentPart
49
+ className={cn(
50
+ "fixed inset-0 z-50 m-auto grid h-fit max-h-[calc(100dvh-2rem)] w-[calc(100%-2rem)] max-w-lg gap-4 overflow-y-auto overscroll-contain rounded-xl border bg-background p-6 text-foreground shadow-lg outline-none",
51
+ "transition-[opacity,scale] duration-200 data-starting-style:scale-95 data-starting-style:opacity-0 data-ending-style:scale-95 data-ending-style:opacity-0 motion-reduce:transition-none",
52
+ className,
53
+ )}
54
+ {...props}
55
+ >
56
+ {children}
57
+ <DialogClose
58
+ aria-label="Close"
59
+ className="absolute right-3 top-3 rounded-md p-1 text-muted-foreground opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-ring"
60
+ >
61
+ <X className="size-4" />
62
+ </DialogClose>
63
+ </DialogContentPart>
64
+ </>
65
+ );
66
+ }
53
67
 
54
68
  function DialogHeader({
55
69
  className,
@@ -72,39 +86,38 @@ function DialogFooter({
72
86
  );
73
87
  }
74
88
 
75
- const DialogTitle = React.forwardRef<
76
- React.ElementRef<typeof DialogPrimitive.Title>,
77
- React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>
78
- >(({ className, ...props }, ref) => (
79
- <DialogPrimitive.Title
80
- ref={ref}
81
- className={cn("text-base font-semibold leading-none tracking-tight", className)}
82
- {...props}
83
- />
84
- ));
85
- DialogTitle.displayName = DialogPrimitive.Title.displayName;
89
+ function DialogTitle({
90
+ className,
91
+ ...props
92
+ }: StringClassName<React.ComponentProps<typeof DialogTitlePart>>) {
93
+ return (
94
+ <DialogTitlePart
95
+ className={cn("text-base font-semibold leading-none tracking-tight", className)}
96
+ {...props}
97
+ />
98
+ );
99
+ }
86
100
 
87
- const DialogDescription = React.forwardRef<
88
- React.ElementRef<typeof DialogPrimitive.Description>,
89
- React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>
90
- >(({ className, ...props }, ref) => (
91
- <DialogPrimitive.Description
92
- ref={ref}
93
- className={cn("text-sm text-muted-foreground", className)}
94
- {...props}
95
- />
96
- ));
97
- DialogDescription.displayName = DialogPrimitive.Description.displayName;
101
+ function DialogDescription({
102
+ className,
103
+ ...props
104
+ }: StringClassName<React.ComponentProps<typeof DialogDescriptionPart>>) {
105
+ return (
106
+ <DialogDescriptionPart
107
+ className={cn("text-sm text-muted-foreground", className)}
108
+ {...props}
109
+ />
110
+ );
111
+ }
98
112
 
99
113
  export {
100
114
  Dialog,
115
+ DialogBackdrop,
101
116
  DialogClose,
102
117
  DialogContent,
103
118
  DialogDescription,
104
119
  DialogFooter,
105
120
  DialogHeader,
106
- DialogOverlay,
107
- DialogPortal,
108
121
  DialogTitle,
109
122
  DialogTrigger,
110
123
  };
@@ -1,16 +1,16 @@
1
1
  import * as React from "react";
2
+ import { Input as InputPart } from "@ui-sdk/react/input";
2
3
 
3
4
  import { cn } from "@/lib/utils";
4
5
 
5
6
  function Input({
6
7
  className,
7
- type,
8
8
  ...props
9
- }: React.InputHTMLAttributes<HTMLInputElement>) {
9
+ }: Omit<React.ComponentProps<typeof InputPart>, "className"> & {
10
+ className?: string;
11
+ }) {
10
12
  return (
11
- <input
12
- type={type}
13
- data-slot="input"
13
+ <InputPart
14
14
  className={cn(
15
15
  "flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors",
16
16
  "placeholder:text-muted-foreground",
@@ -1,14 +1,16 @@
1
1
  import * as React from "react";
2
+ import { Label as LabelPart } from "@ui-sdk/react/label";
2
3
 
3
4
  import { cn } from "@/lib/utils";
4
5
 
5
6
  function Label({
6
7
  className,
7
8
  ...props
8
- }: React.LabelHTMLAttributes<HTMLLabelElement>) {
9
+ }: Omit<React.ComponentProps<typeof LabelPart>, "className"> & {
10
+ className?: string;
11
+ }) {
9
12
  return (
10
- <label
11
- data-slot="label"
13
+ <LabelPart
12
14
  className={cn(
13
15
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
14
16
  className,
@@ -1,38 +1,100 @@
1
+ "use client";
2
+
1
3
  import * as React from "react";
2
- import { ChevronDown } from "lucide-react";
4
+ import {
5
+ Select as SelectRoot,
6
+ SelectContent,
7
+ SelectItem,
8
+ SelectItemIndicator,
9
+ SelectItemText,
10
+ SelectTrigger,
11
+ SelectValue,
12
+ } from "@ui-sdk/react/select";
13
+ import { Check, ChevronDown } from "lucide-react";
3
14
 
4
15
  import { cn } from "@/lib/utils";
5
16
 
17
+ export interface SelectOption {
18
+ value: string;
19
+ label: string;
20
+ disabled?: boolean;
21
+ }
22
+
23
+ export interface SelectProps {
24
+ /** The options, in display order. */
25
+ items: SelectOption[];
26
+ /** The selected value. Pass it with `onValueChange` to control the select. */
27
+ value?: string | null;
28
+ defaultValue?: string | null;
29
+ onValueChange?: (value: string) => void;
30
+ /** The text the trigger shows while nothing is selected. */
31
+ placeholder?: string;
32
+ /** The form field name. Without a name the select submits nothing. */
33
+ name?: string;
34
+ required?: boolean;
35
+ disabled?: boolean;
36
+ id?: string;
37
+ "aria-label"?: string;
38
+ /** Classes for the trigger. */
39
+ className?: string;
40
+ }
41
+
6
42
  /**
7
- * A styled native `<select>`.
43
+ * Pick one value from a list. Give it the options as data; it renders the
44
+ * trigger, the list, keyboard navigation and typeahead.
8
45
  *
9
- * shadcn's Select is a Radix listbox; this deliberately isn't. A native select
10
- * needs no extra dependency, is keyboard- and screen-reader-correct for free,
11
- * and opens as the platform picker on mobile — which is what you want for the
12
- * plain "pick one value" case that scaffolded forms are full of. Reach for
13
- * `npx shadcn add select` when you need custom option rendering or search.
46
+ * For custom option content, groups or search, compose the parts from
47
+ * `@ui-sdk/react/select` in a new component next to this one.
14
48
  */
15
49
  function Select({
50
+ items,
51
+ onValueChange,
52
+ id,
53
+ "aria-label": ariaLabel,
16
54
  className,
17
- children,
18
55
  ...props
19
- }: React.SelectHTMLAttributes<HTMLSelectElement>) {
56
+ }: SelectProps) {
20
57
  return (
21
- <div className="relative">
22
- <select
23
- data-slot="select"
58
+ <SelectRoot
59
+ items={items}
60
+ onValueChange={(value) => onValueChange?.(value ?? "")}
61
+ {...props}
62
+ >
63
+ <SelectTrigger
64
+ id={id}
65
+ aria-label={ariaLabel}
24
66
  className={cn(
25
- "flex h-9 w-full appearance-none rounded-md border border-input bg-transparent py-1 pl-3 pr-8 text-sm shadow-sm transition-colors",
67
+ "flex h-9 w-full items-center justify-between gap-2 rounded-md border border-input bg-transparent py-1 pl-3 pr-2.5 text-left text-sm shadow-sm transition-colors",
26
68
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
27
- "disabled:cursor-not-allowed disabled:opacity-50",
69
+ "data-disabled:cursor-not-allowed data-disabled:opacity-50 data-placeholder:text-muted-foreground",
28
70
  className,
29
71
  )}
30
- {...props}
31
72
  >
32
- {children}
33
- </select>
34
- <ChevronDown className="pointer-events-none absolute right-2.5 top-1/2 size-4 -translate-y-1/2 opacity-50" />
35
- </div>
73
+ <SelectValue className="truncate" />
74
+ <ChevronDown className="size-4 shrink-0 opacity-50" />
75
+ </SelectTrigger>
76
+ <SelectContent
77
+ sideOffset={4}
78
+ className={cn(
79
+ "z-50 max-h-(--available-height) min-w-(--anchor-width) overflow-y-auto rounded-md border bg-popover p-1 text-popover-foreground shadow-md outline-none",
80
+ "origin-(--transform-origin) transition-[opacity,scale] duration-150 data-starting-style:scale-95 data-starting-style:opacity-0 data-ending-style:scale-95 data-ending-style:opacity-0 motion-reduce:transition-none",
81
+ )}
82
+ >
83
+ {items.map((item) => (
84
+ <SelectItem
85
+ key={item.value}
86
+ value={item.value}
87
+ disabled={item.disabled}
88
+ className="flex cursor-default select-none items-center justify-between gap-2 rounded-sm px-2 py-1.5 text-sm outline-none data-highlighted:bg-accent data-highlighted:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50"
89
+ >
90
+ <SelectItemText>{item.label}</SelectItemText>
91
+ <SelectItemIndicator>
92
+ <Check className="size-4" />
93
+ </SelectItemIndicator>
94
+ </SelectItem>
95
+ ))}
96
+ </SelectContent>
97
+ </SelectRoot>
36
98
  );
37
99
  }
38
100
 
@@ -1,14 +1,16 @@
1
1
  import * as React from "react";
2
+ import { Textarea as TextareaPart } from "@ui-sdk/react/textarea";
2
3
 
3
4
  import { cn } from "@/lib/utils";
4
5
 
5
6
  function Textarea({
6
7
  className,
7
8
  ...props
8
- }: React.TextareaHTMLAttributes<HTMLTextAreaElement>) {
9
+ }: Omit<React.ComponentProps<typeof TextareaPart>, "className"> & {
10
+ className?: string;
11
+ }) {
9
12
  return (
10
- <textarea
11
- data-slot="textarea"
13
+ <TextareaPart
12
14
  className={cn(
13
15
  "flex min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm transition-colors",
14
16
  "placeholder:text-muted-foreground",
@@ -1,10 +1,10 @@
1
1
  import { type ClassValue, clsx } from "clsx";
2
2
  import { twMerge } from "tailwind-merge";
3
3
 
4
- // `cn` — the shadcn class merger. clsx resolves conditional/array class
5
- // inputs; tailwind-merge then dedupes conflicting Tailwind utilities so
6
- // the last one wins (e.g. `cn("px-2", "px-4")` → "px-4"). Every shadcn
7
- // component routes its className through this.
4
+ // `cn` merges class names. clsx resolves conditional and array inputs, then
5
+ // tailwind-merge removes conflicting Tailwind utilities so the last one wins:
6
+ // `cn("px-2", "px-4")` is "px-4". Every component passes its `className`
7
+ // through this, so a caller can override a default style.
8
8
  export function cn(...inputs: ClassValue[]) {
9
9
  return twMerge(clsx(inputs));
10
10
  }
@@ -16,15 +16,15 @@
16
16
  "@pylonsync/client": "^__PYLON_VERSION__",
17
17
  "react": "^19.0.0",
18
18
  "react-dom": "^19.0.0",
19
+ "@ui-sdk/core": "0.1.0-beta.12",
20
+ "@ui-sdk/react": "0.1.0-beta.12",
19
21
  "tailwindcss": "^4.3.0",
20
22
  "@tailwindcss/cli": "^4.3.0",
21
23
  "tw-animate-css": "^1.2.0",
22
24
  "class-variance-authority": "^0.7.1",
23
25
  "clsx": "^2.1.1",
24
26
  "tailwind-merge": "^2.5.0",
25
- "lucide-react": "^0.460.0",
26
- "@radix-ui/react-dialog": "^1.1.4",
27
- "@radix-ui/react-slot": "^1.1.0"
27
+ "lucide-react": "^0.460.0"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@pylonsync/cli": "^__PYLON_VERSION__",
@@ -32,7 +32,7 @@
32
32
  "@testing-library/dom": "^10.4.0",
33
33
  "@testing-library/react": "^16.3.0",
34
34
  "@types/node": "^22.0.0",
35
- "@types/react": "^19.0.0",
35
+ "@types/react": "^19.2.10",
36
36
  "@types/react-dom": "^19.0.0",
37
37
  "typescript": "^5.6.0"
38
38
  }
@@ -25,6 +25,8 @@ this pass before the user has to ask.
25
25
  - `app.ts`: data model + manifest (`entity()` + `field.*`, queries/actions/policies, `routes: await discoverAppRoutes()`). Ends with `console.log(JSON.stringify(manifest))` — that line is the manifest handoff (the CLI parses this file's stdout), not debug output. Never remove it.
26
26
  - `app/`: file-based SSR routes. `app/page.tsx` → `/`, `app/about/page.tsx` → `/about`, `app/blog/[slug]/page.tsx` → `/blog/:slug`. A `(group)` directory is stripped from the URL — `app/(marketing)/about/page.tsx` still serves `/about` — so a group's `layout.tsx` gives one section its own chrome (nav, footer) without changing any path; routes outside the group render without it. `app/layout.tsx` is the document shell; `app/error.tsx` / `app/not-found.tsx` are boundaries.
27
27
  - `app/globals.css`: Tailwind v4 entrypoint (auto-compiled and injected).
28
+ - `components/`: reusable React components. `components/ui/` holds the primitives, built on `@ui-sdk/react`.
29
+ - `app/internal/`: `/internal/design` shows the design tokens and `/internal/components` shows every component. See "UI: design tokens and components".
28
30
  - `functions/`: server functions, one per file, `default`-exported.
29
31
  - `.pylon/`: local dev state (SQLite, jobs, sessions, uploads). Created by `pylon dev`. Do not commit.
30
32
 
@@ -68,6 +70,21 @@ this pass before the user has to ask.
68
70
  - **It's `db.useQueryOne`, not `useOne`.** Validators and field types have aliases: `v.bool`/`v.boolean`, `v.float`/`v.number`.
69
71
  - **Use the supported file and scheduling APIs.** Files go through `<FileUpload>` and `/api/files/*`; an upload is readable by its uploader only, so pass `visibility: "public"` to `uploadFile` or `<FileUpload>` for files every visitor sees; there is no `ctx.files`. One-shot work uses `ctx.scheduler.runAfter`, `runAt`, or `cancel`; there is no `defineWorkflow` or `defineJob`. Recurring work uses `cron("0 * * * *", "fnName")` in `buildManifest({ crons: [...] })`, imported from `@pylonsync/sdk`. Make the target function `internal: true`. It runs with anonymous auth, but its own `ctx.db.*` calls are server-side and bypass policies. Use `ctx.auth.elevate({ admin: true, reason: "..." })`, with a mandatory reason, only when chaining another internal function through `ctx.scheduler`.
70
72
 
73
+ ## UI: design tokens and components
74
+
75
+ Every screen is built from reusable components. Before you write UI, open `/internal/components` (the component gallery) and `/internal/design` (the design tokens) in the running app.
76
+
77
+ - **Reuse first.** Look in `components/` and on `/internal/components` before you write markup. If a component exists, use it. If it almost fits, extend it with a variant or a prop. Do not copy its markup into a page.
78
+ - **A page composes components.** A `page.tsx` holds data loading and layout. When the same markup appears a second time, move it into a component.
79
+ - **Two levels.** `components/ui/` holds primitives (Button, Dialog, Select). A primitive has no app data and makes no `db.*` or `callFn` call. `components/` holds the components of this product, built from the primitives.
80
+ - **Compose, do not configure.** Build a component from small parts that nest (`Card`, `CardHeader`, `CardTitle`) and accept `children`. Do not add a boolean prop for each layout variation. Each component accepts `className` and passes its other props to its root element. A visual variation is a `cva` variant.
81
+ - **Behavior comes from ui-sdk.** Build interactive primitives (dialogs, menus, selects, tabs, tooltips, comboboxes) on `@ui-sdk/react` parts. Do not write focus handling, keyboard navigation or ARIA attributes by hand, and do not add a second component library. Read `node_modules/@ui-sdk/react/docs/llms.txt` first, then the page of each component you use in `node_modules/@ui-sdk/react/docs/components/`. For a behavior with no ready-made component, read `core.md` and `rendering.md` in the same `docs/` directory.
82
+ - **ui-sdk conventions.** Import each component from its own entry (`@ui-sdk/react/dialog`). The parts have no styles. Style them with Tailwind classes and their state attributes (`data-open`, `data-disabled`, `data-highlighted`, `data-starting-style`, `data-ending-style`). To render a part as a different element, pass the element to `render`: `<Button render={<Link href="/" />}>Home</Button>`. There is no `asChild` prop. `@layer ui-sdk;` stays the first line of `app/globals.css`.
83
+ - **Tokens only.** Colors, radii and shadows come from the tokens in `app/globals.css` (`bg-primary`, `text-muted-foreground`, `rounded-lg`). Do not write a hex color in a new component. To add a token, add it to `app/globals.css` and to `app/internal/design/page.tsx`.
84
+ - **Keep the gallery current.** When you add or change a component, update its `Showcase` in `app/internal/components/page.tsx` and its entry in `app/internal/sections.ts` in the same change. Show each variant and each state.
85
+
86
+ The product does not link to `/internal/*`, and `app/robots.ts` and the page metadata keep search engines out. The pages are open to anyone who has the URL. To restrict them, read `auth` in `app/internal/layout.tsx` and call `response.notFound()`.
87
+
71
88
  ## Testing
72
89
 
73
90
  `pylon test` discovers every `*.test.ts` / `*.test.tsx` file under `tests/` (or `functions/`) and runs it with **Bun's test runner** (`import { test, expect } from "bun:test"`). Run the suite with `pylon test` (or `npm test`); filter with `pylon test <substring>`. This template ships `bunfig.toml` + `tests/setup.ts` (registers happy-dom) so component tests render out of the box, plus starter tests under `tests/`; replace them with your own.
@@ -64,7 +64,7 @@ app/
64
64
  deals/[id]/ deal detail + activity timeline
65
65
  login/ email/password auth
66
66
  components/ presentational — props in, callbacks out
67
- ui/ shadcn primitives
67
+ ui/ primitives built on @ui-sdk/react
68
68
  lib/pipeline.ts stages, money, metrics — pure
69
69
  lib/search.ts ⌘K ranking — pure
70
70
  functions/ server functions
@@ -94,9 +94,8 @@ no policy allows an anonymous read — keep it that way if you add one.
94
94
 
95
95
  Light by default. The dark tokens in `app/globals.css` are complete, so adding
96
96
  `className="dark"` to the `<html>` in `app/layout.tsx` flips the whole app —
97
- wire it to a stored preference or `prefers-color-scheme` for a toggle. Both use
98
- the standard shadcn variables, so `npx shadcn@latest add <component>` drops in
99
- already themed.
97
+ wire it to a stored preference or `prefers-color-scheme` for a toggle. `/internal/design`
98
+ shows every token.
100
99
 
101
100
  ## Grow it
102
101
 
@@ -36,9 +36,7 @@ export function DealView({ dealId }: { dealId: string }) {
36
36
  }
37
37
  action={
38
38
  data.loading ? undefined : (
39
- <Button size="sm" variant="secondary" asChild>
40
- <Link href="/">Back to pipeline</Link>
41
- </Button>
39
+ <Button size="sm" variant="secondary" render={<Link href="/" />}>Back to pipeline</Button>
42
40
  )
43
41
  }
44
42
  />
@@ -132,19 +130,16 @@ export function DealView({ dealId }: { dealId: string }) {
132
130
  aria-label="Stage"
133
131
  value={deal.stage}
134
132
  className="h-8 bg-background md:h-7.5"
135
- onChange={(event) =>
133
+ onValueChange={(value) =>
136
134
  void callFn("moveDeal", {
137
135
  dealId: deal.id,
138
- stage: event.target.value,
139
- })
140
- }
141
- >
142
- {PIPELINE.map((stage) => (
143
- <option key={stage.id} value={stage.id}>
144
- {stage.label}
145
- </option>
146
- ))}
147
- </Select>
136
+ stage: value,
137
+ })}
138
+ items={PIPELINE.map((stage) => ({
139
+ value: stage.id,
140
+ label: stage.label,
141
+ }))}
142
+ />
148
143
  </Field>
149
144
 
150
145
  <Field label="Owner">
@@ -1,3 +1,7 @@
1
+ /* ui-sdk adds a small amount of CSS in this layer. The layer is declared
2
+ first so that every style in this file wins over it. */
3
+ @layer ui-sdk;
4
+
1
5
  @import "tailwindcss";
2
6
  @import "tw-animate-css";
3
7
 
@@ -14,8 +18,7 @@
14
18
  still means something. Light is the default; `.dark` holds a complete dark
15
19
  set (add `class="dark"` to <html> in app/layout.tsx to switch).
16
20
 
17
- These are the variable names shadcn/ui generates against, so
18
- `npx shadcn@latest add <component>` drops in already themed.
21
+ `/internal/design` shows every token.
19
22
  --------------------------------------------------------------------------- */
20
23
  :root {
21
24
  /* The brand accent: primary buttons, the brand mark, focus rings, and the