@krizaka/ui 3.63.0 → 3.64.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 (406) hide show
  1. package/dist/account-menu.d.ts +1 -1
  2. package/dist/account-menu.js +1 -1
  3. package/dist/account-settings.d.ts +61 -4
  4. package/dist/account-settings.js +207 -45
  5. package/dist/account-settings.js.map +1 -1
  6. package/dist/action-bar.js +4 -4
  7. package/dist/analysis-report.d.ts +274 -0
  8. package/dist/analysis-report.js +207 -0
  9. package/dist/analysis-report.js.map +1 -0
  10. package/dist/app-header.d.ts +3 -3
  11. package/dist/argument-card.d.ts +1 -1
  12. package/dist/argument-card.js +5 -5
  13. package/dist/avatar/defaults.d.ts +16 -5
  14. package/dist/avatar/defaults.js +15 -1
  15. package/dist/avatar/defaults.js.map +1 -1
  16. package/dist/{avatar-BL2iG_Js.d.ts → avatar-BdZcfkWR.d.ts} +11 -4
  17. package/dist/avatar.d.ts +16 -5
  18. package/dist/avatar.js +15 -1
  19. package/dist/avatar.js.map +1 -1
  20. package/dist/badge.js +4 -34
  21. package/dist/badge.js.map +1 -1
  22. package/dist/blocks.css +99 -8
  23. package/dist/button.js +1 -1
  24. package/dist/captcha.js +1 -1
  25. package/dist/chat.js +1 -1
  26. package/dist/chunk-5PFCELGW.js +41 -0
  27. package/dist/chunk-5PFCELGW.js.map +1 -0
  28. package/dist/chunk-5RWHDX5J.js +37 -0
  29. package/dist/chunk-5RWHDX5J.js.map +1 -0
  30. package/dist/{chunk-5LANVCK7.js → chunk-BG5APGX6.js} +2 -2
  31. package/dist/{chunk-WOZP3JLW.js → chunk-DJ5ZPPWL.js} +1 -1
  32. package/dist/chunk-DJ5ZPPWL.js.map +1 -0
  33. package/dist/{chunk-UV4HBVH7.js → chunk-EB45EVPJ.js} +2 -2
  34. package/dist/{chunk-SJS6RJIT.js.map → chunk-EB45EVPJ.js.map} +1 -1
  35. package/dist/chunk-EUJ7337V.js +137 -0
  36. package/dist/chunk-EUJ7337V.js.map +1 -0
  37. package/dist/{chunk-6EAHUURY.js → chunk-GHAN7OOE.js} +2 -2
  38. package/dist/chunk-HK525THY.js +139 -0
  39. package/dist/chunk-HK525THY.js.map +1 -0
  40. package/dist/chunk-JT7ZKZT5.js +1 -0
  41. package/dist/chunk-JT7ZKZT5.js.map +1 -0
  42. package/dist/{chunk-3DHNN5V7.js → chunk-M3GEYLMR.js} +2 -2
  43. package/dist/{chunk-3DHNN5V7.js.map → chunk-M3GEYLMR.js.map} +1 -1
  44. package/dist/{chunk-7J2L4HOD.js → chunk-MTVX4RRF.js} +2 -2
  45. package/dist/{chunk-7J2L4HOD.js.map → chunk-MTVX4RRF.js.map} +1 -1
  46. package/dist/{chunk-YKEIOYJ5.js → chunk-NPMGYLJV.js} +1 -1
  47. package/dist/chunk-NPMGYLJV.js.map +1 -0
  48. package/dist/{chunk-HEKDKM5Y.js → chunk-QVHSV6RA.js} +1 -1
  49. package/dist/{chunk-7JG3VR4C.js → chunk-RCKXJEDQ.js} +5 -5
  50. package/dist/{chunk-3D2YI63L.js → chunk-SHBYNQFS.js} +7 -2
  51. package/dist/{chunk-3D2YI63L.js.map → chunk-SHBYNQFS.js.map} +1 -1
  52. package/dist/chunk-U4XTZMB7.js +103 -0
  53. package/dist/chunk-U4XTZMB7.js.map +1 -0
  54. package/dist/{chunk-SJS6RJIT.js → chunk-V7W4RLRW.js} +2 -2
  55. package/dist/{chunk-UV4HBVH7.js.map → chunk-V7W4RLRW.js.map} +1 -1
  56. package/dist/command.js +2 -2
  57. package/dist/confirm-button.js +1 -1
  58. package/dist/continue-prompt.js +1 -1
  59. package/dist/continue-prompt.js.map +1 -1
  60. package/dist/cover-hero.js +1 -1
  61. package/dist/dashboard-layout.js +2 -1
  62. package/dist/dashboard-layout.js.map +1 -1
  63. package/dist/data-table.js +2 -2
  64. package/dist/date-picker.d.ts +15 -15
  65. package/dist/dialog.js +2 -2
  66. package/dist/docs-layout.js +1 -1
  67. package/dist/embed-facade.d.ts +37 -0
  68. package/dist/embed-facade.js +96 -0
  69. package/dist/embed-facade.js.map +1 -0
  70. package/dist/file-upload.d.ts +2 -2
  71. package/dist/force-update-screen.js +1 -1
  72. package/dist/genui.js +2 -2
  73. package/dist/kind-config-editor.js +1 -1
  74. package/dist/link-card.js +2 -2
  75. package/dist/maintenance-screen.js +1 -1
  76. package/dist/map.js +6 -0
  77. package/dist/map.js.map +1 -1
  78. package/dist/margin-layout.d.ts +71 -0
  79. package/dist/margin-layout.js +29 -0
  80. package/dist/margin-layout.js.map +1 -0
  81. package/dist/match-dialog.js +2 -2
  82. package/dist/media-grid.d.ts +8 -3
  83. package/dist/media-grid.js +2 -2
  84. package/dist/meter.js +2 -1
  85. package/dist/native/map.js +6 -0
  86. package/dist/native/map.js.map +1 -1
  87. package/dist/native.d.ts +96 -5
  88. package/dist/native.js +1718 -1529
  89. package/dist/native.js.map +1 -1
  90. package/dist/nav-bar.js +1 -1
  91. package/dist/page-DPHDmDAQ.d.ts +131 -0
  92. package/dist/page-hero.js +4 -4
  93. package/dist/page.d.ts +7 -125
  94. package/dist/page.js +13 -1
  95. package/dist/page.js.map +1 -1
  96. package/dist/quota-meter.js +2 -1
  97. package/dist/quota-meter.js.map +1 -1
  98. package/dist/retro-tv.d.ts +6 -3
  99. package/dist/retro-tv.js +6 -5
  100. package/dist/retro-tv.js.map +1 -1
  101. package/dist/reviews.d.ts +49 -0
  102. package/dist/reviews.js +66 -0
  103. package/dist/reviews.js.map +1 -0
  104. package/dist/separator.d.ts +26 -3
  105. package/dist/separator.js +19 -1
  106. package/dist/separator.js.map +1 -1
  107. package/dist/service-card.d.ts +56 -63
  108. package/dist/service-card.js +49 -10
  109. package/dist/service-card.js.map +1 -1
  110. package/dist/settings-layout.js +1 -1
  111. package/dist/site-cahier.js +1 -1
  112. package/dist/specimen-tag.d.ts +15 -3
  113. package/dist/specimen-tag.js +4 -27
  114. package/dist/specimen-tag.js.map +1 -1
  115. package/dist/stat.d.ts +87 -5
  116. package/dist/stat.js +9 -53
  117. package/dist/stat.js.map +1 -1
  118. package/dist/sticky-action.d.ts +7 -2
  119. package/dist/sticky-action.js +24 -3
  120. package/dist/sticky-action.js.map +1 -1
  121. package/dist/theme.js +1 -1
  122. package/dist/update-prompt.js +1 -1
  123. package/dist/usage.d.ts +229 -0
  124. package/dist/usage.js +189 -0
  125. package/dist/usage.js.map +1 -0
  126. package/dist/vertical-video.js +2 -2
  127. package/dist/wall.d.ts +24 -12
  128. package/dist/wall.js +106 -43
  129. package/dist/wall.js.map +1 -1
  130. package/package.json +92 -13
  131. package/registry/account-menu.json +1 -1
  132. package/registry/account-settings.json +67 -6
  133. package/registry/achievement.json +1 -1
  134. package/registry/action-bar.json +1 -1
  135. package/registry/activity-feed.json +1 -1
  136. package/registry/agenda.json +1 -1
  137. package/registry/alert.json +1 -1
  138. package/registry/analysis-report.json +445 -0
  139. package/registry/anatomy-plate.json +1 -1
  140. package/registry/app-header.json +1 -1
  141. package/registry/app-shell.json +1 -1
  142. package/registry/argument-card.json +3 -3
  143. package/registry/audio-player.json +1 -1
  144. package/registry/auth-layout.json +1 -1
  145. package/registry/avatar.json +6 -5
  146. package/registry/badge.json +1 -1
  147. package/registry/bird-plate.json +1 -1
  148. package/registry/button.json +2 -2
  149. package/registry/captcha.json +1 -1
  150. package/registry/card-grid.json +1 -1
  151. package/registry/card.json +1 -1
  152. package/registry/catalogue-page.json +1 -1
  153. package/registry/changelog-page.json +1 -1
  154. package/registry/chapter.json +1 -1
  155. package/registry/chat.json +1 -1
  156. package/registry/checkbox.json +1 -1
  157. package/registry/chip-link.json +1 -1
  158. package/registry/chip-row.json +1 -1
  159. package/registry/chip.json +1 -1
  160. package/registry/choice-grid.json +1 -1
  161. package/registry/code-block.json +1 -1
  162. package/registry/combobox.json +1 -1
  163. package/registry/command.json +1 -1
  164. package/registry/comparison-table.json +1 -1
  165. package/registry/component-page.json +1 -1
  166. package/registry/confirm-button.json +1 -1
  167. package/registry/contact-page.json +1 -1
  168. package/registry/continue-prompt.json +1 -1
  169. package/registry/countdown.json +1 -1
  170. package/registry/cover-hero.json +1 -1
  171. package/registry/cta-panel.json +1 -1
  172. package/registry/dashboard-layout.json +2 -2
  173. package/registry/data-table.json +1 -1
  174. package/registry/date-picker.json +1 -1
  175. package/registry/decision-list.json +1 -1
  176. package/registry/description-list.json +1 -1
  177. package/registry/detail-layout.json +1 -1
  178. package/registry/dialog.json +1 -1
  179. package/registry/docs-article-page.json +1 -1
  180. package/registry/docs-hub-page.json +1 -1
  181. package/registry/docs-layout.json +1 -1
  182. package/registry/docs-nav.json +1 -1
  183. package/registry/document-viewer.json +1 -1
  184. package/registry/doodle.json +1 -1
  185. package/registry/drop-overlay.json +1 -1
  186. package/registry/dropdown-menu.json +1 -1
  187. package/registry/elephant.json +2 -2
  188. package/registry/embed-facade.json +243 -0
  189. package/registry/empty-state.json +1 -1
  190. package/registry/engine-flow.json +1 -1
  191. package/registry/environment-notice.json +1 -1
  192. package/registry/error-page.json +1 -1
  193. package/registry/examples/account-settings/avatar-picker-folder.d.ts +4 -0
  194. package/registry/examples/account-settings/avatar-picker-folder.js +27 -0
  195. package/registry/examples/account-settings/avatar-picker-folder.tsx +23 -0
  196. package/registry/examples/analysis-report/document-validation.d.ts +4 -0
  197. package/registry/examples/analysis-report/document-validation.js +47 -0
  198. package/registry/examples/analysis-report/document-validation.tsx +29 -0
  199. package/registry/examples/analysis-report/native/document-validation.d.ts +4 -0
  200. package/registry/examples/analysis-report/native/document-validation.dark.png +0 -0
  201. package/registry/examples/analysis-report/native/document-validation.js +48 -0
  202. package/registry/examples/analysis-report/native/document-validation.light.png +0 -0
  203. package/registry/examples/analysis-report/native/document-validation.tsx +32 -0
  204. package/registry/examples/analysis-report/streaming.d.ts +4 -0
  205. package/registry/examples/analysis-report/streaming.js +42 -0
  206. package/registry/examples/analysis-report/streaming.tsx +23 -0
  207. package/registry/examples/embed-facade/tiktok.d.ts +4 -0
  208. package/registry/examples/embed-facade/tiktok.js +20 -0
  209. package/registry/examples/embed-facade/tiktok.tsx +16 -0
  210. package/registry/examples/embed-facade/youtube.d.ts +4 -0
  211. package/registry/examples/embed-facade/youtube.js +22 -0
  212. package/registry/examples/embed-facade/youtube.tsx +20 -0
  213. package/registry/examples/margin-layout/findings.d.ts +4 -0
  214. package/registry/examples/margin-layout/findings.js +15 -0
  215. package/registry/examples/margin-layout/findings.tsx +18 -0
  216. package/registry/examples/margin-layout/steps.d.ts +4 -0
  217. package/registry/examples/margin-layout/steps.js +15 -0
  218. package/registry/examples/margin-layout/steps.tsx +16 -0
  219. package/registry/examples/page/kraft.d.ts +4 -0
  220. package/registry/examples/page/kraft.js +14 -0
  221. package/registry/examples/page/kraft.tsx +12 -0
  222. package/registry/examples/page/papers.d.ts +4 -0
  223. package/registry/examples/page/papers.js +14 -0
  224. package/registry/examples/page/papers.tsx +13 -0
  225. package/registry/examples/retro-tv/facade.d.ts +4 -0
  226. package/registry/examples/retro-tv/facade.js +12 -0
  227. package/registry/examples/retro-tv/facade.tsx +13 -0
  228. package/registry/examples/reviews/card.d.ts +4 -0
  229. package/registry/examples/reviews/card.js +23 -0
  230. package/registry/examples/reviews/card.tsx +19 -0
  231. package/registry/examples/reviews/summary.d.ts +4 -0
  232. package/registry/examples/reviews/summary.js +23 -0
  233. package/registry/examples/reviews/summary.tsx +17 -0
  234. package/registry/examples/separator/hand.d.ts +4 -0
  235. package/registry/examples/separator/hand.js +19 -0
  236. package/registry/examples/separator/hand.tsx +16 -0
  237. package/registry/examples/service-card/index-card.d.ts +4 -0
  238. package/registry/examples/service-card/index-card.js +15 -0
  239. package/registry/examples/service-card/index-card.tsx +12 -0
  240. package/registry/examples/service-card/index-list.d.ts +4 -0
  241. package/registry/examples/service-card/index-list.js +14 -0
  242. package/registry/examples/service-card/index-list.tsx +11 -0
  243. package/registry/examples/specimen-tag/facts.d.ts +4 -0
  244. package/registry/examples/specimen-tag/facts.js +23 -0
  245. package/registry/examples/specimen-tag/facts.tsx +18 -0
  246. package/registry/examples/stat/strip.d.ts +4 -0
  247. package/registry/examples/stat/strip.js +25 -0
  248. package/registry/examples/stat/strip.tsx +25 -0
  249. package/registry/examples/sticky-action/hide-while-visible.d.ts +4 -0
  250. package/registry/examples/sticky-action/hide-while-visible.js +16 -0
  251. package/registry/examples/sticky-action/hide-while-visible.tsx +17 -0
  252. package/registry/examples/usage/credits-page.d.ts +4 -0
  253. package/registry/examples/usage/credits-page.js +45 -0
  254. package/registry/examples/usage/credits-page.tsx +40 -0
  255. package/registry/examples/usage/empty.d.ts +4 -0
  256. package/registry/examples/usage/empty.js +15 -0
  257. package/registry/examples/usage/empty.tsx +12 -0
  258. package/registry/examples/wall/brick.js +1 -1
  259. package/registry/examples/wall/brick.tsx +1 -1
  260. package/registry/examples/wall/composition-fr.js +1 -1
  261. package/registry/examples/wall/composition-fr.tsx +1 -1
  262. package/registry/examples/wall/composition.js +1 -1
  263. package/registry/examples/wall/composition.tsx +1 -1
  264. package/registry/examples/wall/pinned-note.js +2 -2
  265. package/registry/examples/wall/pinned-note.tsx +3 -2
  266. package/registry/examples/wall/plaster.js +1 -1
  267. package/registry/examples/wall/plaster.tsx +1 -1
  268. package/registry/examples/wall/ridge.js +1 -1
  269. package/registry/examples/wall/ridge.tsx +1 -1
  270. package/registry/examples/wall/shop-sign.js +5 -4
  271. package/registry/examples/wall/shop-sign.tsx +7 -4
  272. package/registry/examples/wall/zellige.js +1 -1
  273. package/registry/examples/wall/zellige.tsx +1 -1
  274. package/registry/field.json +1 -1
  275. package/registry/file-upload.json +1 -1
  276. package/registry/filter-bar.json +1 -1
  277. package/registry/flock.json +1 -1
  278. package/registry/footnote.json +1 -1
  279. package/registry/force-update-screen.json +1 -1
  280. package/registry/form.json +1 -1
  281. package/registry/gallery-page.json +1 -1
  282. package/registry/genui.json +1 -1
  283. package/registry/glossary-term.json +1 -1
  284. package/registry/glossary.json +1 -1
  285. package/registry/glow-card.json +1 -1
  286. package/registry/goal-gauge.json +1 -1
  287. package/registry/grade-stamp.json +1 -1
  288. package/registry/how-it-works-page.json +1 -1
  289. package/registry/image-cropper.json +1 -1
  290. package/registry/index.json +186 -18
  291. package/registry/iso.json +1 -1
  292. package/registry/kanban.json +1 -1
  293. package/registry/kbd.json +1 -1
  294. package/registry/kind-config-editor.json +1 -1
  295. package/registry/kpi-explained.json +1 -1
  296. package/registry/landing-page.json +1 -1
  297. package/registry/landscape.json +1 -1
  298. package/registry/language-switch.json +1 -1
  299. package/registry/legal-page.json +1 -1
  300. package/registry/link-card.json +1 -1
  301. package/registry/list.json +1 -1
  302. package/registry/loader.json +1 -1
  303. package/registry/longform-page.json +1 -1
  304. package/registry/maintenance-screen.json +1 -1
  305. package/registry/map.json +2 -2
  306. package/registry/margin-layout.json +200 -0
  307. package/registry/markdown.json +1 -1
  308. package/registry/marketing-layout.json +1 -1
  309. package/registry/marquee.json +1 -1
  310. package/registry/mascot-quote.json +1 -1
  311. package/registry/mascot-state.json +1 -1
  312. package/registry/mascots.json +1 -1
  313. package/registry/match-dialog.json +1 -1
  314. package/registry/media-capture.json +1 -1
  315. package/registry/media-gallery.json +1 -1
  316. package/registry/media-grid.json +1 -1
  317. package/registry/meta-row.json +1 -1
  318. package/registry/meter.json +1 -1
  319. package/registry/nav-bar.json +2 -2
  320. package/registry/next-actions.json +1 -1
  321. package/registry/notification-preferences.json +1 -1
  322. package/registry/number-ticker.json +1 -1
  323. package/registry/opening-hours.json +1 -1
  324. package/registry/page-header.json +1 -1
  325. package/registry/page-hero.json +1 -1
  326. package/registry/page-index.json +1 -1
  327. package/registry/page.json +53 -11
  328. package/registry/pagination.json +1 -1
  329. package/registry/photo-grid.json +1 -1
  330. package/registry/pointer-light.json +1 -1
  331. package/registry/popover.json +1 -1
  332. package/registry/pricing-page.json +1 -1
  333. package/registry/product-page.json +1 -1
  334. package/registry/profile-card.json +1 -1
  335. package/registry/progress.json +1 -1
  336. package/registry/promise-card.json +1 -1
  337. package/registry/quota-meter.json +1 -1
  338. package/registry/radio-group.json +1 -1
  339. package/registry/rail-nav.json +2 -2
  340. package/registry/recipes.json +1 -1
  341. package/registry/retro-tv.json +45 -29
  342. package/registry/reviews.json +361 -0
  343. package/registry/router.json +1 -1
  344. package/registry/scroll-stage.json +1 -1
  345. package/registry/search-field.json +1 -1
  346. package/registry/section-backdrop.json +1 -1
  347. package/registry/separator.json +71 -6
  348. package/registry/service-card.json +55 -6
  349. package/registry/settings-layout.json +1 -1
  350. package/registry/showcase.json +1 -1
  351. package/registry/signature.json +1 -1
  352. package/registry/site-cahier.json +1 -1
  353. package/registry/site-footer.json +2 -2
  354. package/registry/sites.json +1 -1
  355. package/registry/skeleton.json +1 -1
  356. package/registry/skip-link.json +1 -1
  357. package/registry/slider.json +1 -1
  358. package/registry/slot-picker.json +1 -1
  359. package/registry/slot.json +1 -1
  360. package/registry/specimen-tag.json +57 -5
  361. package/registry/speed-lines.json +1 -1
  362. package/registry/spinner.json +1 -1
  363. package/registry/split-view.json +1 -1
  364. package/registry/stage-banner.json +1 -1
  365. package/registry/stat.json +61 -9
  366. package/registry/status-chip.json +1 -1
  367. package/registry/status-page.json +1 -1
  368. package/registry/step-progress.json +1 -1
  369. package/registry/step-showcase.json +1 -1
  370. package/registry/stepper.json +1 -1
  371. package/registry/sticky-action.json +27 -4
  372. package/registry/stuck.json +1 -1
  373. package/registry/swipe-deck.json +1 -1
  374. package/registry/switch.json +1 -1
  375. package/registry/tabs.json +1 -1
  376. package/registry/tag-input.json +1 -1
  377. package/registry/tag-selector.json +1 -1
  378. package/registry/taped-photo.json +1 -1
  379. package/registry/terminal-replay.json +1 -1
  380. package/registry/text-style.json +1 -1
  381. package/registry/theme.json +1 -1
  382. package/registry/toast.json +1 -1
  383. package/registry/toc.json +1 -1
  384. package/registry/tooltip.json +1 -1
  385. package/registry/tree-view.json +1 -1
  386. package/registry/update-prompt.json +1 -1
  387. package/registry/upload-queue.json +1 -1
  388. package/registry/usage.json +542 -0
  389. package/registry/verified-badge.json +1 -1
  390. package/registry/versus-card.json +1 -1
  391. package/registry/vertical-video.json +1 -1
  392. package/registry/video-player.json +1 -1
  393. package/registry/video-trimmer.json +3 -3
  394. package/registry/virtual.json +1 -1
  395. package/registry/wall.json +128 -40
  396. package/registry/waveform.json +1 -1
  397. package/dist/chunk-7AZ23BUX.js +0 -88
  398. package/dist/chunk-7AZ23BUX.js.map +0 -1
  399. package/dist/chunk-PW2FVPTV.js +0 -85
  400. package/dist/chunk-PW2FVPTV.js.map +0 -1
  401. package/dist/chunk-WOZP3JLW.js.map +0 -1
  402. package/dist/chunk-YKEIOYJ5.js.map +0 -1
  403. /package/dist/{chunk-5LANVCK7.js.map → chunk-BG5APGX6.js.map} +0 -0
  404. /package/dist/{chunk-6EAHUURY.js.map → chunk-GHAN7OOE.js.map} +0 -0
  405. /package/dist/{chunk-HEKDKM5Y.js.map → chunk-QVHSV6RA.js.map} +0 -0
  406. /package/dist/{chunk-7JG3VR4C.js.map → chunk-RCKXJEDQ.js.map} +0 -0
@@ -0,0 +1,361 @@
1
+ {
2
+ "name": "reviews",
3
+ "type": "primitive",
4
+ "title": "Reviews",
5
+ "summary": "A score you can trust: `ReviewSummary` shows the shop's score as a stamp with the verified count, five meters for the distribution and its text equivalent — nothing under the host's minimum — and `ReviewCard` one review with the owner's reply indented.",
6
+ "description": "A score you can trust: `ReviewSummary` shows the shop's score as a stamp with the verified count, five meters for the distribution and its text equivalent — nothing under the host's minimum — and `ReviewCard` one review with the owner's reply indented.",
7
+ "status": "beta",
8
+ "deprecated": null,
9
+ "category": "blocks",
10
+ "platforms": "web",
11
+ "parity": {
12
+ "web": {
13
+ "state": "yes"
14
+ },
15
+ "native": {
16
+ "state": "n/a",
17
+ "reason": "A public storefront's block; the native apps read reviews in their own lists.",
18
+ "use": "card"
19
+ },
20
+ "desktop": {
21
+ "state": "yes"
22
+ }
23
+ },
24
+ "whenToUse": [
25
+ "A shop's page: the clients' word as verified reviews (only a completed appointment may review), with a fair score.",
26
+ "Any place that rates a place, a person or a service with a 1 to 5 scale and wants the distribution visible."
27
+ ],
28
+ "whenNotToUse": [
29
+ {
30
+ "when": "A school-style mark out of 20 (a teacher's red): that is the tool sites' register.",
31
+ "use": "grade-stamp"
32
+ },
33
+ {
34
+ "when": "A measure within a range that is not a rating (a quota, a balance).",
35
+ "use": "meter"
36
+ }
37
+ ],
38
+ "bestPractices": [
39
+ "The host computes the score (a Bayesian average of the verified reviews) and formats every word: `scoreText`, `countText`, `summaryText`, `starText`, the dates.",
40
+ "Set `minCount` (the shop's minimum): `ReviewSummary` renders nothing under it, so a new shop shows no score rather than a lonely « 5,0 ».",
41
+ "Show only verified reviews and say so (« 27 avis vérifiés »); the owner's reply is a `reply`, never an edit of the review.",
42
+ "Three cards and a link to all of them, not a wall of text."
43
+ ],
44
+ "accessibility": {
45
+ "keyboard": [],
46
+ "notes": [
47
+ "`ReviewSummary` is a group named by its text equivalent (« 4,8 sur 5, 27 avis vérifiés »); the stamp and the count are hidden from assistive technology so nothing is read twice.",
48
+ "The distribution is five real `meter`s, each named (« 5 étoiles : 20 avis »); the rating of a card is read in words and its stars are decorative.",
49
+ "A review's date is a `time` with its machine-readable value."
50
+ ]
51
+ },
52
+ "related": [
53
+ "meter",
54
+ "specimen-tag",
55
+ "grade-stamp",
56
+ "description-list"
57
+ ],
58
+ "web": {
59
+ "entry": "@krizaka/ui/reviews",
60
+ "import": "import { ReviewSummary, ReviewCard } from \"@krizaka/ui/reviews\";",
61
+ "props": [
62
+ {
63
+ "component": "ReviewCard",
64
+ "description": "One review: who, when, which service, the rating and the words — and the owner's reply.",
65
+ "props": [
66
+ {
67
+ "name": "author",
68
+ "type": "string",
69
+ "default": null,
70
+ "description": "First name and initial (\"Camille L.\").",
71
+ "required": true
72
+ },
73
+ {
74
+ "name": "date",
75
+ "type": "string",
76
+ "default": null,
77
+ "description": "The month, formatted for the reader (\"octobre 2026\").",
78
+ "required": true
79
+ },
80
+ {
81
+ "name": "dateTime",
82
+ "type": "string",
83
+ "default": null,
84
+ "description": "The machine-readable date of `date` (\"2026-10\").",
85
+ "required": true
86
+ },
87
+ {
88
+ "name": "rating",
89
+ "type": "number",
90
+ "default": null,
91
+ "description": "The rating, 1 to 5.",
92
+ "required": true
93
+ },
94
+ {
95
+ "name": "ratingText",
96
+ "type": "string",
97
+ "default": null,
98
+ "description": "The rating in words (\"5 sur 5\").",
99
+ "required": true
100
+ },
101
+ {
102
+ "name": "text",
103
+ "type": "string",
104
+ "default": null,
105
+ "description": "The review.",
106
+ "required": true
107
+ },
108
+ {
109
+ "name": "reply",
110
+ "type": "{ label: string; author: string; text: string; }",
111
+ "default": null,
112
+ "description": "The owner's reply, indented under the review.",
113
+ "required": false
114
+ },
115
+ {
116
+ "name": "service",
117
+ "type": "string",
118
+ "default": null,
119
+ "description": "The service reviewed.",
120
+ "required": false
121
+ }
122
+ ]
123
+ },
124
+ {
125
+ "component": "ReviewSummary",
126
+ "description": "The score of a shop as a stamp, with the distribution of its verified reviews: nothing under the host's minimum.",
127
+ "props": [
128
+ {
129
+ "name": "count",
130
+ "type": "number",
131
+ "default": null,
132
+ "description": "How many verified reviews stand behind it.",
133
+ "required": true
134
+ },
135
+ {
136
+ "name": "countText",
137
+ "type": "string",
138
+ "default": null,
139
+ "description": "The count with its « verified » (\"27 avis vérifiés\").",
140
+ "required": true
141
+ },
142
+ {
143
+ "name": "distribution",
144
+ "type": "readonly [number, number, number, number, number]",
145
+ "default": null,
146
+ "description": "How many reviews per rating, `[1 star … 5 stars]`.",
147
+ "required": true
148
+ },
149
+ {
150
+ "name": "score",
151
+ "type": "number",
152
+ "default": null,
153
+ "description": "The score, 0 to 5 (the host's, already fair: the Bayesian average of the verified reviews). Drawn by `scoreText`.",
154
+ "required": true
155
+ },
156
+ {
157
+ "name": "scoreText",
158
+ "type": "string",
159
+ "default": null,
160
+ "description": "The stamp's text, formatted for the reader (\"4,8 / 5\").",
161
+ "required": true
162
+ },
163
+ {
164
+ "name": "starText",
165
+ "type": "(stars: number, count: number) => string",
166
+ "default": null,
167
+ "description": "The name and value of one distribution meter (\"5 étoiles : 20 avis\").",
168
+ "required": true
169
+ },
170
+ {
171
+ "name": "summaryText",
172
+ "type": "string",
173
+ "default": null,
174
+ "description": "The whole thing in one sentence, for assistive technology (\"4,8 sur 5, 27 avis vérifiés\").",
175
+ "required": true
176
+ },
177
+ {
178
+ "name": "minCount",
179
+ "type": "number",
180
+ "default": "1",
181
+ "description": "Renders nothing under this many reviews: a score from two people is not a score.",
182
+ "required": false
183
+ }
184
+ ]
185
+ }
186
+ ],
187
+ "examples": [
188
+ {
189
+ "name": "summary",
190
+ "title": "The score",
191
+ "description": "A stamp, the verified count, five meters and the text equivalent.",
192
+ "path": "examples/reviews/summary.tsx",
193
+ "module": "@krizaka/ui/registry/examples/reviews/summary",
194
+ "code": "import { ReviewSummary } from \"@krizaka/ui/reviews\";\n\n// The shop's score as a stamp, the verified count and five meters. Nothing is drawn under the host's `minCount`.\nexport default function ReviewsSummary() {\n return (\n <ReviewSummary\n score={4.8}\n count={27}\n distribution={[0, 1, 2, 4, 20]}\n minCount={5}\n scoreText=\"4,8 / 5\"\n countText=\"27 avis vérifiés\"\n summaryText=\"4,8 sur 5, 27 avis vérifiés\"\n starText={(stars, n) => `${stars} étoiles : ${n} avis`}\n />\n );\n}\n"
195
+ },
196
+ {
197
+ "name": "card",
198
+ "title": "A review",
199
+ "description": "First name and initial, the month, the service, the words and the owner's indented reply.",
200
+ "path": "examples/reviews/card.tsx",
201
+ "module": "@krizaka/ui/registry/examples/reviews/card",
202
+ "code": "import { ReviewCard } from \"@krizaka/ui/reviews\";\n\n// One review: first name and initial, the month, the service, the rating, the words — and the owner's reply, indented.\nexport default function ReviewsCard() {\n return (\n <div className=\"max-w-md\">\n <ReviewCard\n author=\"Camille L.\"\n date=\"octobre 2026\"\n dateTime=\"2026-10\"\n service=\"Coupe femme\"\n rating={5}\n ratingText=\"5 sur 5\"\n text=\"Une coupe exactement comme je l'imaginais, et un salon où l'on se sent chez soi.\"\n reply={{ label: \"Réponse du salon\", author: \"Maëlle\", text: \"Merci Camille, à très bientôt !\" }}\n />\n </div>\n );\n}\n"
203
+ }
204
+ ]
205
+ },
206
+ "native": null,
207
+ "files": [
208
+ {
209
+ "path": "meta.ts",
210
+ "content": "// The documentation of a component, carried by its code: each primitive has a `meta.ts` beside its source\n// (`src/<name>/meta.ts`; a component that exists only in React Native: `src/native/meta/<name>.ts`). Never built into\n// the package: `scripts/build-registry.mjs` reads them into `registry/<name>.json`, which ui.krizaka.com (apps/site) renders as\n// ui.krizaka.com/components/<name>, and `scripts/registry.test.mjs` fails when one is missing or incomplete.\n//\n// Why a typed module and not JSDoc tags: the fields are lists and links (`related`, `whenNotToUse[].use`, examples),\n// which a type checks and a comment does not; the file is plain data (erasable TypeScript), so Node reads it without a\n// compiler, and an editor completes it.\n\n/** Every documented component: the web primitives (one entry of the package each) and the native-only ones. */\nexport type ComponentName =\n | \"notification-preferences\"\n | \"quota-meter\"\n | \"environment-notice\"\n | \"embed-facade\"\n | \"reviews\"\n | \"margin-layout\"\n | \"analysis-report\"\n | \"status-chip\"\n | \"kind-config-editor\"\n | \"agenda\"\n | \"account-settings\"\n | \"drop-overlay\"\n | \"upload-queue\"\n | \"achievement\"\n | \"anatomy-plate\"\n | \"bird-plate\"\n | \"taped-photo\"\n | \"stuck\"\n | \"doodle\"\n | \"signature\"\n | \"grade-stamp\"\n | \"versus-card\"\n | \"speed-lines\"\n | \"site-cahier\"\n | \"text-style\"\n | \"flock\"\n | \"elephant\"\n | \"footnote\"\n | \"page-index\"\n | \"chapter\"\n | \"specimen-tag\"\n | \"action-bar\"\n | \"action-sheet\"\n | \"activity-feed\"\n | \"alert\"\n | \"app-header\"\n | \"app-shell\"\n | \"argument-card\"\n | \"audio-player\"\n | \"auth-layout\"\n | \"avatar\"\n | \"badge\"\n | \"button\"\n | \"captcha\"\n | \"card\"\n | \"card-grid\"\n | \"catalogue-page\"\n | \"changelog-page\"\n | \"chat\"\n | \"checkbox\"\n | \"chip\"\n | \"chip-link\"\n | \"chip-row\"\n | \"choice-grid\"\n | \"cn\"\n | \"code-block\"\n | \"combobox\"\n | \"comparison-table\"\n | \"command\"\n | \"component-page\"\n | \"confirm-button\"\n | \"contact-page\"\n | \"continue-prompt\"\n | \"countdown\"\n | \"cover-hero\"\n | \"cta-panel\"\n | \"dashboard-layout\"\n | \"data-table\"\n | \"date-picker\"\n | \"decision-list\"\n | \"description-list\"\n | \"detail-layout\"\n | \"dialog\"\n | \"docs-article-page\"\n | \"docs-hub-page\"\n | \"docs-layout\"\n | \"docs-nav\"\n | \"document-viewer\"\n | \"dropdown-menu\"\n | \"empty-state\"\n | \"engine-flow\"\n | \"error-page\"\n | \"fab\"\n | \"field\"\n | \"file-upload\"\n | \"filter-bar\"\n | \"force-update-screen\"\n | \"form\"\n | \"gallery-page\"\n | \"genui\"\n | \"glossary\"\n | \"glossary-term\"\n | \"glow-card\"\n | \"goal-gauge\"\n | \"header\"\n | \"how-it-works-page\"\n | \"image-cropper\"\n | \"image-viewer\"\n | \"iso\"\n | \"kanban\"\n | \"kbd\"\n | \"kpi-explained\"\n | \"landing-page\"\n | \"landscape\"\n | \"legal-page\"\n | \"link-card\"\n | \"list\"\n | \"loader\"\n | \"longform-page\"\n | \"maintenance-screen\"\n | \"map\"\n | \"markdown\"\n | \"meta-row\"\n | \"waveform\"\n | \"marketing-layout\"\n | \"marquee\"\n | \"mascot-quote\"\n | \"mascot-state\"\n | \"mascots\"\n | \"match-dialog\"\n | \"media-capture\"\n | \"media-grid\"\n | \"language-switch\"\n | \"media-gallery\"\n | \"media-picker\"\n | \"meter\"\n | \"nav-bar\"\n | \"number-ticker\"\n | \"onboarding\"\n | \"opening-hours\"\n | \"otp-input\"\n | \"page\"\n | \"page-header\"\n | \"page-hero\"\n | \"pagination\"\n | \"permission-prompt\"\n | \"photo-grid\"\n | \"pointer-light\"\n | \"popover\"\n | \"pricing-page\"\n | \"product-page\"\n | \"profile-card\"\n | \"progress\"\n | \"promise-card\"\n | \"pull-to-refresh\"\n | \"retro-tv\"\n | \"radio-group\"\n | \"router\"\n | \"rail-nav\"\n | \"recipes\"\n | \"screen\"\n | \"scroll-stage\"\n | \"search-field\"\n | \"section-backdrop\"\n | \"segmented\"\n | \"separator\"\n | \"service-card\"\n | \"settings-layout\"\n | \"account-menu\"\n | \"showcase\"\n | \"step-showcase\"\n | \"site-footer\"\n | \"sites\"\n | \"skeleton\"\n | \"skip-link\"\n | \"slider\"\n | \"slot-picker\"\n | \"slot\"\n | \"spinner\"\n | \"sticky-action\"\n | \"splash-handoff\"\n | \"split-view\"\n | \"stage-banner\"\n | \"stat\"\n | \"usage\"\n | \"status-page\"\n | \"step-progress\"\n | \"stepper\"\n | \"swipe-deck\"\n | \"swipeable-row\"\n | \"switch\"\n | \"tab-bar\"\n | \"tabs\"\n | \"tag-input\"\n | \"tag-selector\"\n | \"terminal-replay\"\n | \"theme\"\n | \"toast\"\n | \"toc\"\n | \"tooltip\"\n | \"tree-view\"\n | \"txt\"\n | \"update-prompt\"\n | \"verified-badge\"\n | \"vertical-video\"\n | \"video-player\"\n | \"video-trimmer\"\n | \"virtual\"\n | \"wall\";\n\n/** Where a component exists: `@krizaka/ui/<name>` (web), `@krizaka/ui/native` (React Native), or both. */\nexport type Platform = \"web\" | \"native\" | \"both\";\n\n/**\n * Why a component is not on a platform — a decision, never a silence (the parity matrix of ui.krizaka.com/platforms):\n * - `gap` (✗): it belongs there and is not built yet; `issue` is the issue that tracks it (`krizaka/krizaka-ui#275`);\n * - `n/a`: it is not meant for that platform (a site's page block on a phone, a swipe on a desktop); `use` names the\n * component that answers there, when one does.\n */\nexport type Absence =\n | { readonly status: \"gap\"; readonly issue: string; readonly reason: string; readonly use?: undefined }\n | { readonly status: \"n/a\"; readonly reason: string; readonly use?: ComponentName; readonly issue?: undefined };\n\n/**\n * Desktop is the Orazaka Mac app (Tauri 2: the system WebView renders the web components — ADR-002). `web`: the web\n * component runs there as it is; `desktop`: it also has a desktop form (a window's title bar, a denser layout…), said in\n * its documentation; otherwise the absence and why.\n */\nexport type DesktopSupport = \"web\" | \"desktop\" | Absence;\n\n/**\n * The three platforms of Krizaka UI — web · native (React Native, Expo) · desktop — for one component. The side a\n * component has is `platforms`; the side it lacks says why here: `native` is required for (and only for) a web-only\n * component, `web` for a native-only one; `desktop` always. `scripts/registry.test.mjs` fails on a missing decision.\n */\nexport interface Parity {\n readonly web?: Absence;\n readonly native?: Absence;\n readonly desktop: DesktopSupport;\n}\n\n/**\n * `stable`: its API only changes in a major. `beta`: it may still change in a minor. `deprecated`: no product uses it and\n * no work plans to — it still works, says what replaces it, and goes in the major named by `deprecated.removedIn`.\n */\nexport type Status = \"stable\" | \"beta\" | \"deprecated\";\n\n/** What a deprecated component says (required when `status` is `deprecated`, absent otherwise). */\nexport interface Deprecation {\n /** The version that deprecated it (`3.6.0`). */\n readonly since: string;\n /** The major that removes it (`4.0.0`). */\n readonly removedIn: string;\n /** What replaces it, when a component does. */\n readonly use?: ComponentName;\n /** Why it goes: no product uses it, no planned work needs it. */\n readonly reason: string;\n}\n\n/**\n * The group of the catalogue. `media`: video, sound, camera, files, cropping. `blocks`: the page blocks — the frame,\n * the hero, sections, cards that lead or argue, decisions, code, calls to act — that every page of a site is made of.\n * `layouts`: the shells of whole screens — an application, a dashboard, settings, sign-in, an object, a list and its\n * item, a site's page, a documentation page — each with its screens. `templates`: the page templates — whole pages of a\n * site (a landing, a product, a docs hub, a long read, a changelog, pricing, status, an error…), each a distinct\n * composition of the blocks, words and content as props.\n */\nexport type Category = \"actions\" | \"forms\" | \"navigation\" | \"overlays\" | \"feedback\" | \"data-display\" | \"media\" | \"blocks\" | \"layouts\" | \"templates\" | \"layout\" | \"foundations\";\n\n/** Why a reader needs a template: the seven intents the templates are grouped by (sidebar sub-headings, catalogue filter). */\nexport type TemplatePurpose = \"convince\" | \"explain\" | \"show\" | \"act\" | \"operate\" | \"converse\" | \"recover\";\n\n/** The groups of templates, in reading order: the title, and the one line that says when to come to that group. */\nexport const templatePurposes = {\n convince: { title: \"Convince\", useWhen: \"You come here when a visitor must decide: a landing, a product, a price, a comparison, a proof.\" },\n explain: { title: \"Explain\", useWhen: \"You come here when a reader must understand: how it works, a documentation hub or article, a changelog, a FAQ, a policy.\" },\n show: { title: \"Show\", useWhen: \"You come here when the work itself is the argument: a gallery, a story, a case study, an object and its details.\" },\n act: { title: \"Act\", useWhen: \"You come here when a person must do something once: reach the team, sign in or up, set up, pay.\" },\n operate: { title: \"Operate\", useWhen: \"You come here when a person works every day: a dashboard, a console with a table, settings, an app shell.\" },\n converse: { title: \"Converse\", useWhen: \"You come here when people talk: an inbox, a chat, comments, a notifications centre.\" },\n recover: { title: \"Recover\", useWhen: \"You come here when the way is blocked: an empty list, an error, a missing page, maintenance, a product still being built.\" },\n} as const satisfies Record<TemplatePurpose, { readonly title: string; readonly useWhen: string }>;\n\n/**\n * A named example: the file `registry/examples/<component>/<name>.tsx` (web) or\n * `registry/examples/<component>/native/<name>.tsx` (React Native) — at most 40 lines, imported by the stories and\n * shown (live, with its code) by the documentation.\n */\ninterface ExampleBase {\n /** The file name, kebab-case (`primary`, `icon-button`). */\n readonly name: string;\n /** A short title (`Primary`, `Icon button`). */\n readonly title: string;\n /** One or two sentences: when this variant is the right one. */\n readonly description: string;\n}\n\n/** A plain example, or a template: a whole screen with its intent (`purpose`) and the user goal its layout serves (`why`). */\nexport type Example =\n | (ExampleBase & { readonly template?: false; readonly purpose?: undefined; readonly why?: undefined })\n | (ExampleBase & {\n /**\n * A template: a whole screen of a product composed from the platform (a layout and its blocks, real words, its\n * phone version thought out), copied as a starting point — at most 160 lines, listed on ui.krizaka.com/templates.\n */\n readonly template: true;\n /** The intent that groups it: why you need this block. */\n readonly purpose: TemplatePurpose;\n /** Why this layout: the user goal it serves, in one sentence. */\n readonly why: string;\n });\n\n/** One platform's side of a component. */\nexport interface PlatformDocs {\n /** The names to import (`[\"Button\", \"IconButton\"]`): from `@krizaka/ui/<name>` on the web, `@krizaka/ui/native` in React Native. */\n readonly imports: readonly string[];\n /** The examples, in reading order; the first one is the component's preview. */\n readonly examples: readonly Example[];\n}\n\n/** The React Native side: the same concept, and what differs from the web API. */\nexport interface NativeDocs extends PlatformDocs {\n /**\n * The entry to import from when it is not `@krizaka/ui/native`: a component that needs an Expo module (an optional\n * peer) has its own, `@krizaka/ui/native/<name>`, so an app that does not use it never installs the module.\n */\n readonly entry?: string;\n /** What differs from the web API (`label` instead of children…); empty for a native-only component. */\n readonly differences: readonly string[];\n /** The React Native entry alone is deprecated while the web one stays (ADR-006 §7); a deprecated component says it once, above. */\n readonly deprecated?: Deprecation;\n}\n\nexport interface KeyboardInteraction {\n /** The keys, as written on a keyboard: `Space`, `Enter`, `Arrow keys`, `Esc`, `Tab`. */\n readonly keys: string;\n /** What they do. */\n readonly action: string;\n}\n\nexport interface ComponentMeta {\n /** The display name: `Button`, `Dropdown menu`. */\n readonly title: string;\n /** One sentence: what it is. */\n readonly summary: string;\n readonly status: Status;\n /** Required for, and only for, a `deprecated` component. */\n readonly deprecated?: Deprecation;\n readonly category: Category;\n /** Must match the sides below: `both` ⇔ `web` and `native`. */\n readonly platforms: Platform;\n /** The platforms it is not on, and why; and its desktop form (see `Parity`). */\n readonly parity: Parity;\n /** When to reach for it: concrete situations, one per item. */\n readonly whenToUse: readonly string[];\n /** When not to — and what to use instead (`use`), when another component is the answer. */\n readonly whenNotToUse: readonly { readonly when: string; readonly use?: ComponentName }[];\n /** How to use it well: wording, placement, composition. */\n readonly bestPractices: readonly string[];\n readonly accessibility: {\n /** The keyboard, when it does more than Tab and Enter. */\n readonly keyboard: readonly KeyboardInteraction[];\n /** Roles, names and announcements: what the component does, what the app must provide. */\n readonly notes: readonly string[];\n };\n /** The components a reader of this page should know about. */\n readonly related: readonly ComponentName[];\n readonly web?: PlatformDocs;\n readonly native?: NativeDocs;\n}\n"
211
+ },
212
+ {
213
+ "path": "reviews/index.ts",
214
+ "content": "/** @krizaka/ui/reviews — `ReviewSummary` (the score as a stamp, the verified count, five meters, the text equivalent) and `ReviewCard` (one review, the owner's reply indented). Server-safe. */\nexport { ReviewCard, type ReviewCardProps, ReviewSummary, type ReviewSummaryProps } from \"./reviews\";\n"
215
+ },
216
+ {
217
+ "path": "reviews/meta.ts",
218
+ "content": "import type { ComponentMeta } from \"../meta\";\n\nexport const meta = {\n title: \"Reviews\",\n summary: \"A score you can trust: `ReviewSummary` shows the shop's score as a stamp with the verified count, five meters for the distribution and its text equivalent — nothing under the host's minimum — and `ReviewCard` one review with the owner's reply indented.\",\n status: \"beta\",\n category: \"blocks\",\n platforms: \"web\",\n parity: { native: { status: \"n/a\", reason: \"A public storefront's block; the native apps read reviews in their own lists.\", use: \"card\" }, desktop: \"web\" },\n whenToUse: [\n \"A shop's page: the clients' word as verified reviews (only a completed appointment may review), with a fair score.\",\n \"Any place that rates a place, a person or a service with a 1 to 5 scale and wants the distribution visible.\",\n ],\n whenNotToUse: [\n { when: \"A school-style mark out of 20 (a teacher's red): that is the tool sites' register.\", use: \"grade-stamp\" },\n { when: \"A measure within a range that is not a rating (a quota, a balance).\", use: \"meter\" },\n ],\n bestPractices: [\n \"The host computes the score (a Bayesian average of the verified reviews) and formats every word: `scoreText`, `countText`, `summaryText`, `starText`, the dates.\",\n \"Set `minCount` (the shop's minimum): `ReviewSummary` renders nothing under it, so a new shop shows no score rather than a lonely « 5,0 ».\",\n \"Show only verified reviews and say so (« 27 avis vérifiés »); the owner's reply is a `reply`, never an edit of the review.\",\n \"Three cards and a link to all of them, not a wall of text.\",\n ],\n accessibility: {\n keyboard: [],\n notes: [\n \"`ReviewSummary` is a group named by its text equivalent (« 4,8 sur 5, 27 avis vérifiés »); the stamp and the count are hidden from assistive technology so nothing is read twice.\",\n \"The distribution is five real `meter`s, each named (« 5 étoiles : 20 avis »); the rating of a card is read in words and its stars are decorative.\",\n \"A review's date is a `time` with its machine-readable value.\",\n ],\n },\n related: [\"meter\", \"specimen-tag\", \"grade-stamp\", \"description-list\"],\n web: {\n imports: [\"ReviewSummary\", \"ReviewCard\"],\n examples: [\n { name: \"summary\", title: \"The score\", description: \"A stamp, the verified count, five meters and the text equivalent.\" },\n { name: \"card\", title: \"A review\", description: \"First name and initial, the month, the service, the words and the owner's indented reply.\" },\n ],\n },\n} satisfies ComponentMeta;\n"
219
+ },
220
+ {
221
+ "path": "reviews/reviews.tsx",
222
+ "content": "// Server-safe. The clients' word on a shop (krizaka-ui#606): a score you can trust. `ReviewSummary` — the score as a stamp,\n// the count with « verified », five meters for the distribution and the text equivalent — and `ReviewCard`, one review with\n// the owner's reply indented. All words are props. Never a « /20 »: that is `GradeStamp`'s school register.\nimport * as React from \"react\";\n\nimport { cn } from \"../cn\";\nimport { Meter } from \"../meter/meter\";\nimport { Stamp } from \"../specimen-tag/specimen-tag\";\n\nexport interface ReviewSummaryProps extends Omit<React.ComponentProps<\"div\">, \"children\"> {\n /** The score, 0 to 5 (the host's, already fair: the Bayesian average of the verified reviews). Drawn by `scoreText`. */\n score: number;\n /** How many verified reviews stand behind it. */\n count: number;\n /** How many reviews per rating, `[1 star … 5 stars]`. */\n distribution: readonly [number, number, number, number, number];\n /** Renders nothing under this many reviews: a score from two people is not a score. @default 1 */\n minCount?: number;\n /** The stamp's text, formatted for the reader (\"4,8 / 5\"). */\n scoreText: string;\n /** The count with its « verified » (\"27 avis vérifiés\"). */\n countText: string;\n /** The whole thing in one sentence, for assistive technology (\"4,8 sur 5, 27 avis vérifiés\"). */\n summaryText: string;\n /** The name and value of one distribution meter (\"5 étoiles : 20 avis\"). */\n starText: (stars: number, count: number) => string;\n}\n\n/** The score of a shop as a stamp, with the distribution of its verified reviews: nothing under the host's minimum. */\nexport function ReviewSummary({ score, count, distribution, minCount = 1, scoreText, countText, summaryText, starText, className, ...props }: ReviewSummaryProps) {\n const id = React.useId();\n if (count < Math.max(1, minCount) || Number.isNaN(count)) return null;\n return (\n <div role=\"group\" aria-labelledby={id} data-score={score} className={cn(\"kz-reviews\", className)} {...props}>\n <span id={id} className=\"sr-only\">{summaryText}</span>\n <p className=\"kz-reviews-visual\" aria-hidden=\"true\">\n <Stamp tone=\"ink\" data-figure=\"\">{scoreText}</Stamp>\n <span className=\"kz-reviews-count\">{countText}</span>\n </p>\n <ul className=\"kz-reviews-bars\">\n {[5, 4, 3, 2, 1].map((stars) => {\n const n = distribution[stars - 1] ?? 0;\n return (\n <li key={stars}>\n <span className=\"kz-reviews-rank\" aria-hidden=\"true\">{stars} ★</span>\n <Meter label={starText(stars, n)} value={n} min={0} max={count} valueText={starText(stars, n)} size=\"sm\" />\n <span className=\"kz-reviews-n\" aria-hidden=\"true\">{n}</span>\n </li>\n );\n })}\n </ul>\n </div>\n );\n}\n\nexport interface ReviewCardProps extends Omit<React.ComponentProps<\"article\">, \"children\"> {\n /** First name and initial (\"Camille L.\"). */\n author: string;\n /** The month, formatted for the reader (\"octobre 2026\"). */\n date: string;\n /** The machine-readable date of `date` (\"2026-10\"). */\n dateTime: string;\n /** The service reviewed. */\n service?: string;\n /** The rating, 1 to 5. */\n rating: number;\n /** The rating in words (\"5 sur 5\"). */\n ratingText: string;\n /** The review. */\n text: string;\n /** The owner's reply, indented under the review. */\n reply?: { label: string; author: string; text: string };\n}\n\nconst STAR = \"M8 1.6l1.9 4.1 4.5.5-3.3 3 .9 4.4L8 11.4 4 13.6l.9-4.4-3.3-3 4.5-.5Z\";\n\n/** One review: who, when, which service, the rating and the words — and the owner's reply. */\nexport function ReviewCard({ author, date, dateTime, service, rating, ratingText, text, reply, className, ...props }: ReviewCardProps) {\n const filled = Math.min(5, Math.max(0, Math.round(rating)));\n return (\n <article className={cn(\"kz-review\", className)} {...props}>\n <header className=\"kz-review-head\">\n <p className=\"kz-review-author\">{author}</p>\n <p className=\"kz-review-meta\">\n <time dateTime={dateTime}>{date}</time>\n {service && <span>{service}</span>}\n </p>\n <p className=\"kz-review-rating\">\n <span className=\"kz-review-stars\" aria-hidden=\"true\">\n {[1, 2, 3, 4, 5].map((n) => (\n <svg key={n} viewBox=\"0 0 16 16\" width=\"16\" height=\"16\" focusable=\"false\" data-filled={n <= filled ? \"\" : undefined}><path d={STAR} /></svg>\n ))}\n </span>\n <span className=\"sr-only\">{ratingText}</span>\n </p>\n </header>\n <p className=\"kz-review-text\">{text}</p>\n {reply && (\n <div className=\"kz-review-reply\">\n <p className=\"kz-review-reply-label\">{reply.label} · {reply.author}</p>\n <p className=\"kz-review-reply-text\">{reply.text}</p>\n </div>\n )}\n </article>\n );\n}\n"
223
+ }
224
+ ],
225
+ "dependencies": [],
226
+ "registryDependencies": [
227
+ "cn",
228
+ "meter",
229
+ "specimen-tag"
230
+ ],
231
+ "demo": {
232
+ "path": "examples/reviews/summary.tsx",
233
+ "content": "import { ReviewSummary } from \"@krizaka/ui/reviews\";\n\n// The shop's score as a stamp, the verified count and five meters. Nothing is drawn under the host's `minCount`.\nexport default function ReviewsSummary() {\n return (\n <ReviewSummary\n score={4.8}\n count={27}\n distribution={[0, 1, 2, 4, 20]}\n minCount={5}\n scoreText=\"4,8 / 5\"\n countText=\"27 avis vérifiés\"\n summaryText=\"4,8 sur 5, 27 avis vérifiés\"\n starText={(stars, n) => `${stars} étoiles : ${n} avis`}\n />\n );\n}\n"
234
+ },
235
+ "props": [
236
+ {
237
+ "component": "ReviewCard",
238
+ "description": "One review: who, when, which service, the rating and the words — and the owner's reply.",
239
+ "props": [
240
+ {
241
+ "name": "author",
242
+ "type": "string",
243
+ "default": null,
244
+ "description": "First name and initial (\"Camille L.\").",
245
+ "required": true
246
+ },
247
+ {
248
+ "name": "date",
249
+ "type": "string",
250
+ "default": null,
251
+ "description": "The month, formatted for the reader (\"octobre 2026\").",
252
+ "required": true
253
+ },
254
+ {
255
+ "name": "dateTime",
256
+ "type": "string",
257
+ "default": null,
258
+ "description": "The machine-readable date of `date` (\"2026-10\").",
259
+ "required": true
260
+ },
261
+ {
262
+ "name": "rating",
263
+ "type": "number",
264
+ "default": null,
265
+ "description": "The rating, 1 to 5.",
266
+ "required": true
267
+ },
268
+ {
269
+ "name": "ratingText",
270
+ "type": "string",
271
+ "default": null,
272
+ "description": "The rating in words (\"5 sur 5\").",
273
+ "required": true
274
+ },
275
+ {
276
+ "name": "text",
277
+ "type": "string",
278
+ "default": null,
279
+ "description": "The review.",
280
+ "required": true
281
+ },
282
+ {
283
+ "name": "reply",
284
+ "type": "{ label: string; author: string; text: string; }",
285
+ "default": null,
286
+ "description": "The owner's reply, indented under the review.",
287
+ "required": false
288
+ },
289
+ {
290
+ "name": "service",
291
+ "type": "string",
292
+ "default": null,
293
+ "description": "The service reviewed.",
294
+ "required": false
295
+ }
296
+ ]
297
+ },
298
+ {
299
+ "component": "ReviewSummary",
300
+ "description": "The score of a shop as a stamp, with the distribution of its verified reviews: nothing under the host's minimum.",
301
+ "props": [
302
+ {
303
+ "name": "count",
304
+ "type": "number",
305
+ "default": null,
306
+ "description": "How many verified reviews stand behind it.",
307
+ "required": true
308
+ },
309
+ {
310
+ "name": "countText",
311
+ "type": "string",
312
+ "default": null,
313
+ "description": "The count with its « verified » (\"27 avis vérifiés\").",
314
+ "required": true
315
+ },
316
+ {
317
+ "name": "distribution",
318
+ "type": "readonly [number, number, number, number, number]",
319
+ "default": null,
320
+ "description": "How many reviews per rating, `[1 star … 5 stars]`.",
321
+ "required": true
322
+ },
323
+ {
324
+ "name": "score",
325
+ "type": "number",
326
+ "default": null,
327
+ "description": "The score, 0 to 5 (the host's, already fair: the Bayesian average of the verified reviews). Drawn by `scoreText`.",
328
+ "required": true
329
+ },
330
+ {
331
+ "name": "scoreText",
332
+ "type": "string",
333
+ "default": null,
334
+ "description": "The stamp's text, formatted for the reader (\"4,8 / 5\").",
335
+ "required": true
336
+ },
337
+ {
338
+ "name": "starText",
339
+ "type": "(stars: number, count: number) => string",
340
+ "default": null,
341
+ "description": "The name and value of one distribution meter (\"5 étoiles : 20 avis\").",
342
+ "required": true
343
+ },
344
+ {
345
+ "name": "summaryText",
346
+ "type": "string",
347
+ "default": null,
348
+ "description": "The whole thing in one sentence, for assistive technology (\"4,8 sur 5, 27 avis vérifiés\").",
349
+ "required": true
350
+ },
351
+ {
352
+ "name": "minCount",
353
+ "type": "number",
354
+ "default": "1",
355
+ "description": "Renders nothing under this many reviews: a score from two people is not a score.",
356
+ "required": false
357
+ }
358
+ ]
359
+ }
360
+ ]
361
+ }
@@ -84,7 +84,7 @@
84
84
  "files": [
85
85
  {
86
86
  "path": "meta.ts",
87
- "content": "// The documentation of a component, carried by its code: each primitive has a `meta.ts` beside its source\n// (`src/<name>/meta.ts`; a component that exists only in React Native: `src/native/meta/<name>.ts`). Never built into\n// the package: `scripts/build-registry.mjs` reads them into `registry/<name>.json`, which ui.krizaka.com (apps/site) renders as\n// ui.krizaka.com/components/<name>, and `scripts/registry.test.mjs` fails when one is missing or incomplete.\n//\n// Why a typed module and not JSDoc tags: the fields are lists and links (`related`, `whenNotToUse[].use`, examples),\n// which a type checks and a comment does not; the file is plain data (erasable TypeScript), so Node reads it without a\n// compiler, and an editor completes it.\n\n/** Every documented component: the web primitives (one entry of the package each) and the native-only ones. */\nexport type ComponentName =\n | \"notification-preferences\"\n | \"quota-meter\"\n | \"environment-notice\"\n | \"status-chip\"\n | \"kind-config-editor\"\n | \"agenda\"\n | \"account-settings\"\n | \"drop-overlay\"\n | \"upload-queue\"\n | \"achievement\"\n | \"anatomy-plate\"\n | \"bird-plate\"\n | \"taped-photo\"\n | \"stuck\"\n | \"doodle\"\n | \"signature\"\n | \"grade-stamp\"\n | \"versus-card\"\n | \"speed-lines\"\n | \"site-cahier\"\n | \"text-style\"\n | \"flock\"\n | \"elephant\"\n | \"footnote\"\n | \"page-index\"\n | \"chapter\"\n | \"specimen-tag\"\n | \"action-bar\"\n | \"action-sheet\"\n | \"activity-feed\"\n | \"alert\"\n | \"app-header\"\n | \"app-shell\"\n | \"argument-card\"\n | \"audio-player\"\n | \"auth-layout\"\n | \"avatar\"\n | \"badge\"\n | \"button\"\n | \"captcha\"\n | \"card\"\n | \"card-grid\"\n | \"catalogue-page\"\n | \"changelog-page\"\n | \"chat\"\n | \"checkbox\"\n | \"chip\"\n | \"chip-link\"\n | \"chip-row\"\n | \"choice-grid\"\n | \"cn\"\n | \"code-block\"\n | \"combobox\"\n | \"comparison-table\"\n | \"command\"\n | \"component-page\"\n | \"confirm-button\"\n | \"contact-page\"\n | \"continue-prompt\"\n | \"countdown\"\n | \"cover-hero\"\n | \"cta-panel\"\n | \"dashboard-layout\"\n | \"data-table\"\n | \"date-picker\"\n | \"decision-list\"\n | \"description-list\"\n | \"detail-layout\"\n | \"dialog\"\n | \"docs-article-page\"\n | \"docs-hub-page\"\n | \"docs-layout\"\n | \"docs-nav\"\n | \"document-viewer\"\n | \"dropdown-menu\"\n | \"empty-state\"\n | \"engine-flow\"\n | \"error-page\"\n | \"fab\"\n | \"field\"\n | \"file-upload\"\n | \"filter-bar\"\n | \"force-update-screen\"\n | \"form\"\n | \"gallery-page\"\n | \"genui\"\n | \"glossary\"\n | \"glossary-term\"\n | \"glow-card\"\n | \"goal-gauge\"\n | \"header\"\n | \"how-it-works-page\"\n | \"image-cropper\"\n | \"image-viewer\"\n | \"iso\"\n | \"kanban\"\n | \"kbd\"\n | \"kpi-explained\"\n | \"landing-page\"\n | \"landscape\"\n | \"legal-page\"\n | \"link-card\"\n | \"list\"\n | \"loader\"\n | \"longform-page\"\n | \"maintenance-screen\"\n | \"map\"\n | \"markdown\"\n | \"meta-row\"\n | \"waveform\"\n | \"marketing-layout\"\n | \"marquee\"\n | \"mascot-quote\"\n | \"mascot-state\"\n | \"mascots\"\n | \"match-dialog\"\n | \"media-capture\"\n | \"media-grid\"\n | \"language-switch\"\n | \"media-gallery\"\n | \"media-picker\"\n | \"meter\"\n | \"nav-bar\"\n | \"number-ticker\"\n | \"onboarding\"\n | \"opening-hours\"\n | \"otp-input\"\n | \"page\"\n | \"page-header\"\n | \"page-hero\"\n | \"pagination\"\n | \"permission-prompt\"\n | \"photo-grid\"\n | \"pointer-light\"\n | \"popover\"\n | \"pricing-page\"\n | \"product-page\"\n | \"profile-card\"\n | \"progress\"\n | \"promise-card\"\n | \"pull-to-refresh\"\n | \"retro-tv\"\n | \"radio-group\"\n | \"router\"\n | \"rail-nav\"\n | \"recipes\"\n | \"screen\"\n | \"scroll-stage\"\n | \"search-field\"\n | \"section-backdrop\"\n | \"segmented\"\n | \"separator\"\n | \"service-card\"\n | \"settings-layout\"\n | \"account-menu\"\n | \"showcase\"\n | \"step-showcase\"\n | \"site-footer\"\n | \"sites\"\n | \"skeleton\"\n | \"skip-link\"\n | \"slider\"\n | \"slot-picker\"\n | \"slot\"\n | \"spinner\"\n | \"sticky-action\"\n | \"splash-handoff\"\n | \"split-view\"\n | \"stage-banner\"\n | \"stat\"\n | \"status-page\"\n | \"step-progress\"\n | \"stepper\"\n | \"swipe-deck\"\n | \"swipeable-row\"\n | \"switch\"\n | \"tab-bar\"\n | \"tabs\"\n | \"tag-input\"\n | \"tag-selector\"\n | \"terminal-replay\"\n | \"theme\"\n | \"toast\"\n | \"toc\"\n | \"tooltip\"\n | \"tree-view\"\n | \"txt\"\n | \"update-prompt\"\n | \"verified-badge\"\n | \"vertical-video\"\n | \"video-player\"\n | \"video-trimmer\"\n | \"virtual\"\n | \"wall\";\n\n/** Where a component exists: `@krizaka/ui/<name>` (web), `@krizaka/ui/native` (React Native), or both. */\nexport type Platform = \"web\" | \"native\" | \"both\";\n\n/**\n * Why a component is not on a platform — a decision, never a silence (the parity matrix of ui.krizaka.com/platforms):\n * - `gap` (✗): it belongs there and is not built yet; `issue` is the issue that tracks it (`krizaka/krizaka-ui#275`);\n * - `n/a`: it is not meant for that platform (a site's page block on a phone, a swipe on a desktop); `use` names the\n * component that answers there, when one does.\n */\nexport type Absence =\n | { readonly status: \"gap\"; readonly issue: string; readonly reason: string; readonly use?: undefined }\n | { readonly status: \"n/a\"; readonly reason: string; readonly use?: ComponentName; readonly issue?: undefined };\n\n/**\n * Desktop is the Orazaka Mac app (Tauri 2: the system WebView renders the web components — ADR-002). `web`: the web\n * component runs there as it is; `desktop`: it also has a desktop form (a window's title bar, a denser layout…), said in\n * its documentation; otherwise the absence and why.\n */\nexport type DesktopSupport = \"web\" | \"desktop\" | Absence;\n\n/**\n * The three platforms of Krizaka UI — web · native (React Native, Expo) · desktop — for one component. The side a\n * component has is `platforms`; the side it lacks says why here: `native` is required for (and only for) a web-only\n * component, `web` for a native-only one; `desktop` always. `scripts/registry.test.mjs` fails on a missing decision.\n */\nexport interface Parity {\n readonly web?: Absence;\n readonly native?: Absence;\n readonly desktop: DesktopSupport;\n}\n\n/**\n * `stable`: its API only changes in a major. `beta`: it may still change in a minor. `deprecated`: no product uses it and\n * no work plans to — it still works, says what replaces it, and goes in the major named by `deprecated.removedIn`.\n */\nexport type Status = \"stable\" | \"beta\" | \"deprecated\";\n\n/** What a deprecated component says (required when `status` is `deprecated`, absent otherwise). */\nexport interface Deprecation {\n /** The version that deprecated it (`3.6.0`). */\n readonly since: string;\n /** The major that removes it (`4.0.0`). */\n readonly removedIn: string;\n /** What replaces it, when a component does. */\n readonly use?: ComponentName;\n /** Why it goes: no product uses it, no planned work needs it. */\n readonly reason: string;\n}\n\n/**\n * The group of the catalogue. `media`: video, sound, camera, files, cropping. `blocks`: the page blocks — the frame,\n * the hero, sections, cards that lead or argue, decisions, code, calls to act — that every page of a site is made of.\n * `layouts`: the shells of whole screens — an application, a dashboard, settings, sign-in, an object, a list and its\n * item, a site's page, a documentation page — each with its screens. `templates`: the page templates — whole pages of a\n * site (a landing, a product, a docs hub, a long read, a changelog, pricing, status, an error…), each a distinct\n * composition of the blocks, words and content as props.\n */\nexport type Category = \"actions\" | \"forms\" | \"navigation\" | \"overlays\" | \"feedback\" | \"data-display\" | \"media\" | \"blocks\" | \"layouts\" | \"templates\" | \"layout\" | \"foundations\";\n\n/** Why a reader needs a template: the seven intents the templates are grouped by (sidebar sub-headings, catalogue filter). */\nexport type TemplatePurpose = \"convince\" | \"explain\" | \"show\" | \"act\" | \"operate\" | \"converse\" | \"recover\";\n\n/** The groups of templates, in reading order: the title, and the one line that says when to come to that group. */\nexport const templatePurposes = {\n convince: { title: \"Convince\", useWhen: \"You come here when a visitor must decide: a landing, a product, a price, a comparison, a proof.\" },\n explain: { title: \"Explain\", useWhen: \"You come here when a reader must understand: how it works, a documentation hub or article, a changelog, a FAQ, a policy.\" },\n show: { title: \"Show\", useWhen: \"You come here when the work itself is the argument: a gallery, a story, a case study, an object and its details.\" },\n act: { title: \"Act\", useWhen: \"You come here when a person must do something once: reach the team, sign in or up, set up, pay.\" },\n operate: { title: \"Operate\", useWhen: \"You come here when a person works every day: a dashboard, a console with a table, settings, an app shell.\" },\n converse: { title: \"Converse\", useWhen: \"You come here when people talk: an inbox, a chat, comments, a notifications centre.\" },\n recover: { title: \"Recover\", useWhen: \"You come here when the way is blocked: an empty list, an error, a missing page, maintenance, a product still being built.\" },\n} as const satisfies Record<TemplatePurpose, { readonly title: string; readonly useWhen: string }>;\n\n/**\n * A named example: the file `registry/examples/<component>/<name>.tsx` (web) or\n * `registry/examples/<component>/native/<name>.tsx` (React Native) — at most 40 lines, imported by the stories and\n * shown (live, with its code) by the documentation.\n */\ninterface ExampleBase {\n /** The file name, kebab-case (`primary`, `icon-button`). */\n readonly name: string;\n /** A short title (`Primary`, `Icon button`). */\n readonly title: string;\n /** One or two sentences: when this variant is the right one. */\n readonly description: string;\n}\n\n/** A plain example, or a template: a whole screen with its intent (`purpose`) and the user goal its layout serves (`why`). */\nexport type Example =\n | (ExampleBase & { readonly template?: false; readonly purpose?: undefined; readonly why?: undefined })\n | (ExampleBase & {\n /**\n * A template: a whole screen of a product composed from the platform (a layout and its blocks, real words, its\n * phone version thought out), copied as a starting point — at most 160 lines, listed on ui.krizaka.com/templates.\n */\n readonly template: true;\n /** The intent that groups it: why you need this block. */\n readonly purpose: TemplatePurpose;\n /** Why this layout: the user goal it serves, in one sentence. */\n readonly why: string;\n });\n\n/** One platform's side of a component. */\nexport interface PlatformDocs {\n /** The names to import (`[\"Button\", \"IconButton\"]`): from `@krizaka/ui/<name>` on the web, `@krizaka/ui/native` in React Native. */\n readonly imports: readonly string[];\n /** The examples, in reading order; the first one is the component's preview. */\n readonly examples: readonly Example[];\n}\n\n/** The React Native side: the same concept, and what differs from the web API. */\nexport interface NativeDocs extends PlatformDocs {\n /**\n * The entry to import from when it is not `@krizaka/ui/native`: a component that needs an Expo module (an optional\n * peer) has its own, `@krizaka/ui/native/<name>`, so an app that does not use it never installs the module.\n */\n readonly entry?: string;\n /** What differs from the web API (`label` instead of children…); empty for a native-only component. */\n readonly differences: readonly string[];\n /** The React Native entry alone is deprecated while the web one stays (ADR-006 §7); a deprecated component says it once, above. */\n readonly deprecated?: Deprecation;\n}\n\nexport interface KeyboardInteraction {\n /** The keys, as written on a keyboard: `Space`, `Enter`, `Arrow keys`, `Esc`, `Tab`. */\n readonly keys: string;\n /** What they do. */\n readonly action: string;\n}\n\nexport interface ComponentMeta {\n /** The display name: `Button`, `Dropdown menu`. */\n readonly title: string;\n /** One sentence: what it is. */\n readonly summary: string;\n readonly status: Status;\n /** Required for, and only for, a `deprecated` component. */\n readonly deprecated?: Deprecation;\n readonly category: Category;\n /** Must match the sides below: `both` ⇔ `web` and `native`. */\n readonly platforms: Platform;\n /** The platforms it is not on, and why; and its desktop form (see `Parity`). */\n readonly parity: Parity;\n /** When to reach for it: concrete situations, one per item. */\n readonly whenToUse: readonly string[];\n /** When not to — and what to use instead (`use`), when another component is the answer. */\n readonly whenNotToUse: readonly { readonly when: string; readonly use?: ComponentName }[];\n /** How to use it well: wording, placement, composition. */\n readonly bestPractices: readonly string[];\n readonly accessibility: {\n /** The keyboard, when it does more than Tab and Enter. */\n readonly keyboard: readonly KeyboardInteraction[];\n /** Roles, names and announcements: what the component does, what the app must provide. */\n readonly notes: readonly string[];\n };\n /** The components a reader of this page should know about. */\n readonly related: readonly ComponentName[];\n readonly web?: PlatformDocs;\n readonly native?: NativeDocs;\n}\n"
87
+ "content": "// The documentation of a component, carried by its code: each primitive has a `meta.ts` beside its source\n// (`src/<name>/meta.ts`; a component that exists only in React Native: `src/native/meta/<name>.ts`). Never built into\n// the package: `scripts/build-registry.mjs` reads them into `registry/<name>.json`, which ui.krizaka.com (apps/site) renders as\n// ui.krizaka.com/components/<name>, and `scripts/registry.test.mjs` fails when one is missing or incomplete.\n//\n// Why a typed module and not JSDoc tags: the fields are lists and links (`related`, `whenNotToUse[].use`, examples),\n// which a type checks and a comment does not; the file is plain data (erasable TypeScript), so Node reads it without a\n// compiler, and an editor completes it.\n\n/** Every documented component: the web primitives (one entry of the package each) and the native-only ones. */\nexport type ComponentName =\n | \"notification-preferences\"\n | \"quota-meter\"\n | \"environment-notice\"\n | \"embed-facade\"\n | \"reviews\"\n | \"margin-layout\"\n | \"analysis-report\"\n | \"status-chip\"\n | \"kind-config-editor\"\n | \"agenda\"\n | \"account-settings\"\n | \"drop-overlay\"\n | \"upload-queue\"\n | \"achievement\"\n | \"anatomy-plate\"\n | \"bird-plate\"\n | \"taped-photo\"\n | \"stuck\"\n | \"doodle\"\n | \"signature\"\n | \"grade-stamp\"\n | \"versus-card\"\n | \"speed-lines\"\n | \"site-cahier\"\n | \"text-style\"\n | \"flock\"\n | \"elephant\"\n | \"footnote\"\n | \"page-index\"\n | \"chapter\"\n | \"specimen-tag\"\n | \"action-bar\"\n | \"action-sheet\"\n | \"activity-feed\"\n | \"alert\"\n | \"app-header\"\n | \"app-shell\"\n | \"argument-card\"\n | \"audio-player\"\n | \"auth-layout\"\n | \"avatar\"\n | \"badge\"\n | \"button\"\n | \"captcha\"\n | \"card\"\n | \"card-grid\"\n | \"catalogue-page\"\n | \"changelog-page\"\n | \"chat\"\n | \"checkbox\"\n | \"chip\"\n | \"chip-link\"\n | \"chip-row\"\n | \"choice-grid\"\n | \"cn\"\n | \"code-block\"\n | \"combobox\"\n | \"comparison-table\"\n | \"command\"\n | \"component-page\"\n | \"confirm-button\"\n | \"contact-page\"\n | \"continue-prompt\"\n | \"countdown\"\n | \"cover-hero\"\n | \"cta-panel\"\n | \"dashboard-layout\"\n | \"data-table\"\n | \"date-picker\"\n | \"decision-list\"\n | \"description-list\"\n | \"detail-layout\"\n | \"dialog\"\n | \"docs-article-page\"\n | \"docs-hub-page\"\n | \"docs-layout\"\n | \"docs-nav\"\n | \"document-viewer\"\n | \"dropdown-menu\"\n | \"empty-state\"\n | \"engine-flow\"\n | \"error-page\"\n | \"fab\"\n | \"field\"\n | \"file-upload\"\n | \"filter-bar\"\n | \"force-update-screen\"\n | \"form\"\n | \"gallery-page\"\n | \"genui\"\n | \"glossary\"\n | \"glossary-term\"\n | \"glow-card\"\n | \"goal-gauge\"\n | \"header\"\n | \"how-it-works-page\"\n | \"image-cropper\"\n | \"image-viewer\"\n | \"iso\"\n | \"kanban\"\n | \"kbd\"\n | \"kpi-explained\"\n | \"landing-page\"\n | \"landscape\"\n | \"legal-page\"\n | \"link-card\"\n | \"list\"\n | \"loader\"\n | \"longform-page\"\n | \"maintenance-screen\"\n | \"map\"\n | \"markdown\"\n | \"meta-row\"\n | \"waveform\"\n | \"marketing-layout\"\n | \"marquee\"\n | \"mascot-quote\"\n | \"mascot-state\"\n | \"mascots\"\n | \"match-dialog\"\n | \"media-capture\"\n | \"media-grid\"\n | \"language-switch\"\n | \"media-gallery\"\n | \"media-picker\"\n | \"meter\"\n | \"nav-bar\"\n | \"number-ticker\"\n | \"onboarding\"\n | \"opening-hours\"\n | \"otp-input\"\n | \"page\"\n | \"page-header\"\n | \"page-hero\"\n | \"pagination\"\n | \"permission-prompt\"\n | \"photo-grid\"\n | \"pointer-light\"\n | \"popover\"\n | \"pricing-page\"\n | \"product-page\"\n | \"profile-card\"\n | \"progress\"\n | \"promise-card\"\n | \"pull-to-refresh\"\n | \"retro-tv\"\n | \"radio-group\"\n | \"router\"\n | \"rail-nav\"\n | \"recipes\"\n | \"screen\"\n | \"scroll-stage\"\n | \"search-field\"\n | \"section-backdrop\"\n | \"segmented\"\n | \"separator\"\n | \"service-card\"\n | \"settings-layout\"\n | \"account-menu\"\n | \"showcase\"\n | \"step-showcase\"\n | \"site-footer\"\n | \"sites\"\n | \"skeleton\"\n | \"skip-link\"\n | \"slider\"\n | \"slot-picker\"\n | \"slot\"\n | \"spinner\"\n | \"sticky-action\"\n | \"splash-handoff\"\n | \"split-view\"\n | \"stage-banner\"\n | \"stat\"\n | \"usage\"\n | \"status-page\"\n | \"step-progress\"\n | \"stepper\"\n | \"swipe-deck\"\n | \"swipeable-row\"\n | \"switch\"\n | \"tab-bar\"\n | \"tabs\"\n | \"tag-input\"\n | \"tag-selector\"\n | \"terminal-replay\"\n | \"theme\"\n | \"toast\"\n | \"toc\"\n | \"tooltip\"\n | \"tree-view\"\n | \"txt\"\n | \"update-prompt\"\n | \"verified-badge\"\n | \"vertical-video\"\n | \"video-player\"\n | \"video-trimmer\"\n | \"virtual\"\n | \"wall\";\n\n/** Where a component exists: `@krizaka/ui/<name>` (web), `@krizaka/ui/native` (React Native), or both. */\nexport type Platform = \"web\" | \"native\" | \"both\";\n\n/**\n * Why a component is not on a platform — a decision, never a silence (the parity matrix of ui.krizaka.com/platforms):\n * - `gap` (✗): it belongs there and is not built yet; `issue` is the issue that tracks it (`krizaka/krizaka-ui#275`);\n * - `n/a`: it is not meant for that platform (a site's page block on a phone, a swipe on a desktop); `use` names the\n * component that answers there, when one does.\n */\nexport type Absence =\n | { readonly status: \"gap\"; readonly issue: string; readonly reason: string; readonly use?: undefined }\n | { readonly status: \"n/a\"; readonly reason: string; readonly use?: ComponentName; readonly issue?: undefined };\n\n/**\n * Desktop is the Orazaka Mac app (Tauri 2: the system WebView renders the web components — ADR-002). `web`: the web\n * component runs there as it is; `desktop`: it also has a desktop form (a window's title bar, a denser layout…), said in\n * its documentation; otherwise the absence and why.\n */\nexport type DesktopSupport = \"web\" | \"desktop\" | Absence;\n\n/**\n * The three platforms of Krizaka UI — web · native (React Native, Expo) · desktop — for one component. The side a\n * component has is `platforms`; the side it lacks says why here: `native` is required for (and only for) a web-only\n * component, `web` for a native-only one; `desktop` always. `scripts/registry.test.mjs` fails on a missing decision.\n */\nexport interface Parity {\n readonly web?: Absence;\n readonly native?: Absence;\n readonly desktop: DesktopSupport;\n}\n\n/**\n * `stable`: its API only changes in a major. `beta`: it may still change in a minor. `deprecated`: no product uses it and\n * no work plans to — it still works, says what replaces it, and goes in the major named by `deprecated.removedIn`.\n */\nexport type Status = \"stable\" | \"beta\" | \"deprecated\";\n\n/** What a deprecated component says (required when `status` is `deprecated`, absent otherwise). */\nexport interface Deprecation {\n /** The version that deprecated it (`3.6.0`). */\n readonly since: string;\n /** The major that removes it (`4.0.0`). */\n readonly removedIn: string;\n /** What replaces it, when a component does. */\n readonly use?: ComponentName;\n /** Why it goes: no product uses it, no planned work needs it. */\n readonly reason: string;\n}\n\n/**\n * The group of the catalogue. `media`: video, sound, camera, files, cropping. `blocks`: the page blocks — the frame,\n * the hero, sections, cards that lead or argue, decisions, code, calls to act — that every page of a site is made of.\n * `layouts`: the shells of whole screens — an application, a dashboard, settings, sign-in, an object, a list and its\n * item, a site's page, a documentation page — each with its screens. `templates`: the page templates — whole pages of a\n * site (a landing, a product, a docs hub, a long read, a changelog, pricing, status, an error…), each a distinct\n * composition of the blocks, words and content as props.\n */\nexport type Category = \"actions\" | \"forms\" | \"navigation\" | \"overlays\" | \"feedback\" | \"data-display\" | \"media\" | \"blocks\" | \"layouts\" | \"templates\" | \"layout\" | \"foundations\";\n\n/** Why a reader needs a template: the seven intents the templates are grouped by (sidebar sub-headings, catalogue filter). */\nexport type TemplatePurpose = \"convince\" | \"explain\" | \"show\" | \"act\" | \"operate\" | \"converse\" | \"recover\";\n\n/** The groups of templates, in reading order: the title, and the one line that says when to come to that group. */\nexport const templatePurposes = {\n convince: { title: \"Convince\", useWhen: \"You come here when a visitor must decide: a landing, a product, a price, a comparison, a proof.\" },\n explain: { title: \"Explain\", useWhen: \"You come here when a reader must understand: how it works, a documentation hub or article, a changelog, a FAQ, a policy.\" },\n show: { title: \"Show\", useWhen: \"You come here when the work itself is the argument: a gallery, a story, a case study, an object and its details.\" },\n act: { title: \"Act\", useWhen: \"You come here when a person must do something once: reach the team, sign in or up, set up, pay.\" },\n operate: { title: \"Operate\", useWhen: \"You come here when a person works every day: a dashboard, a console with a table, settings, an app shell.\" },\n converse: { title: \"Converse\", useWhen: \"You come here when people talk: an inbox, a chat, comments, a notifications centre.\" },\n recover: { title: \"Recover\", useWhen: \"You come here when the way is blocked: an empty list, an error, a missing page, maintenance, a product still being built.\" },\n} as const satisfies Record<TemplatePurpose, { readonly title: string; readonly useWhen: string }>;\n\n/**\n * A named example: the file `registry/examples/<component>/<name>.tsx` (web) or\n * `registry/examples/<component>/native/<name>.tsx` (React Native) — at most 40 lines, imported by the stories and\n * shown (live, with its code) by the documentation.\n */\ninterface ExampleBase {\n /** The file name, kebab-case (`primary`, `icon-button`). */\n readonly name: string;\n /** A short title (`Primary`, `Icon button`). */\n readonly title: string;\n /** One or two sentences: when this variant is the right one. */\n readonly description: string;\n}\n\n/** A plain example, or a template: a whole screen with its intent (`purpose`) and the user goal its layout serves (`why`). */\nexport type Example =\n | (ExampleBase & { readonly template?: false; readonly purpose?: undefined; readonly why?: undefined })\n | (ExampleBase & {\n /**\n * A template: a whole screen of a product composed from the platform (a layout and its blocks, real words, its\n * phone version thought out), copied as a starting point — at most 160 lines, listed on ui.krizaka.com/templates.\n */\n readonly template: true;\n /** The intent that groups it: why you need this block. */\n readonly purpose: TemplatePurpose;\n /** Why this layout: the user goal it serves, in one sentence. */\n readonly why: string;\n });\n\n/** One platform's side of a component. */\nexport interface PlatformDocs {\n /** The names to import (`[\"Button\", \"IconButton\"]`): from `@krizaka/ui/<name>` on the web, `@krizaka/ui/native` in React Native. */\n readonly imports: readonly string[];\n /** The examples, in reading order; the first one is the component's preview. */\n readonly examples: readonly Example[];\n}\n\n/** The React Native side: the same concept, and what differs from the web API. */\nexport interface NativeDocs extends PlatformDocs {\n /**\n * The entry to import from when it is not `@krizaka/ui/native`: a component that needs an Expo module (an optional\n * peer) has its own, `@krizaka/ui/native/<name>`, so an app that does not use it never installs the module.\n */\n readonly entry?: string;\n /** What differs from the web API (`label` instead of children…); empty for a native-only component. */\n readonly differences: readonly string[];\n /** The React Native entry alone is deprecated while the web one stays (ADR-006 §7); a deprecated component says it once, above. */\n readonly deprecated?: Deprecation;\n}\n\nexport interface KeyboardInteraction {\n /** The keys, as written on a keyboard: `Space`, `Enter`, `Arrow keys`, `Esc`, `Tab`. */\n readonly keys: string;\n /** What they do. */\n readonly action: string;\n}\n\nexport interface ComponentMeta {\n /** The display name: `Button`, `Dropdown menu`. */\n readonly title: string;\n /** One sentence: what it is. */\n readonly summary: string;\n readonly status: Status;\n /** Required for, and only for, a `deprecated` component. */\n readonly deprecated?: Deprecation;\n readonly category: Category;\n /** Must match the sides below: `both` ⇔ `web` and `native`. */\n readonly platforms: Platform;\n /** The platforms it is not on, and why; and its desktop form (see `Parity`). */\n readonly parity: Parity;\n /** When to reach for it: concrete situations, one per item. */\n readonly whenToUse: readonly string[];\n /** When not to — and what to use instead (`use`), when another component is the answer. */\n readonly whenNotToUse: readonly { readonly when: string; readonly use?: ComponentName }[];\n /** How to use it well: wording, placement, composition. */\n readonly bestPractices: readonly string[];\n readonly accessibility: {\n /** The keyboard, when it does more than Tab and Enter. */\n readonly keyboard: readonly KeyboardInteraction[];\n /** Roles, names and announcements: what the component does, what the app must provide. */\n readonly notes: readonly string[];\n };\n /** The components a reader of this page should know about. */\n readonly related: readonly ComponentName[];\n readonly web?: PlatformDocs;\n readonly native?: NativeDocs;\n}\n"
88
88
  },
89
89
  {
90
90
  "path": "router/index.ts",
@@ -141,7 +141,7 @@
141
141
  },
142
142
  {
143
143
  "path": "meta.ts",
144
- "content": "// The documentation of a component, carried by its code: each primitive has a `meta.ts` beside its source\n// (`src/<name>/meta.ts`; a component that exists only in React Native: `src/native/meta/<name>.ts`). Never built into\n// the package: `scripts/build-registry.mjs` reads them into `registry/<name>.json`, which ui.krizaka.com (apps/site) renders as\n// ui.krizaka.com/components/<name>, and `scripts/registry.test.mjs` fails when one is missing or incomplete.\n//\n// Why a typed module and not JSDoc tags: the fields are lists and links (`related`, `whenNotToUse[].use`, examples),\n// which a type checks and a comment does not; the file is plain data (erasable TypeScript), so Node reads it without a\n// compiler, and an editor completes it.\n\n/** Every documented component: the web primitives (one entry of the package each) and the native-only ones. */\nexport type ComponentName =\n | \"notification-preferences\"\n | \"quota-meter\"\n | \"environment-notice\"\n | \"status-chip\"\n | \"kind-config-editor\"\n | \"agenda\"\n | \"account-settings\"\n | \"drop-overlay\"\n | \"upload-queue\"\n | \"achievement\"\n | \"anatomy-plate\"\n | \"bird-plate\"\n | \"taped-photo\"\n | \"stuck\"\n | \"doodle\"\n | \"signature\"\n | \"grade-stamp\"\n | \"versus-card\"\n | \"speed-lines\"\n | \"site-cahier\"\n | \"text-style\"\n | \"flock\"\n | \"elephant\"\n | \"footnote\"\n | \"page-index\"\n | \"chapter\"\n | \"specimen-tag\"\n | \"action-bar\"\n | \"action-sheet\"\n | \"activity-feed\"\n | \"alert\"\n | \"app-header\"\n | \"app-shell\"\n | \"argument-card\"\n | \"audio-player\"\n | \"auth-layout\"\n | \"avatar\"\n | \"badge\"\n | \"button\"\n | \"captcha\"\n | \"card\"\n | \"card-grid\"\n | \"catalogue-page\"\n | \"changelog-page\"\n | \"chat\"\n | \"checkbox\"\n | \"chip\"\n | \"chip-link\"\n | \"chip-row\"\n | \"choice-grid\"\n | \"cn\"\n | \"code-block\"\n | \"combobox\"\n | \"comparison-table\"\n | \"command\"\n | \"component-page\"\n | \"confirm-button\"\n | \"contact-page\"\n | \"continue-prompt\"\n | \"countdown\"\n | \"cover-hero\"\n | \"cta-panel\"\n | \"dashboard-layout\"\n | \"data-table\"\n | \"date-picker\"\n | \"decision-list\"\n | \"description-list\"\n | \"detail-layout\"\n | \"dialog\"\n | \"docs-article-page\"\n | \"docs-hub-page\"\n | \"docs-layout\"\n | \"docs-nav\"\n | \"document-viewer\"\n | \"dropdown-menu\"\n | \"empty-state\"\n | \"engine-flow\"\n | \"error-page\"\n | \"fab\"\n | \"field\"\n | \"file-upload\"\n | \"filter-bar\"\n | \"force-update-screen\"\n | \"form\"\n | \"gallery-page\"\n | \"genui\"\n | \"glossary\"\n | \"glossary-term\"\n | \"glow-card\"\n | \"goal-gauge\"\n | \"header\"\n | \"how-it-works-page\"\n | \"image-cropper\"\n | \"image-viewer\"\n | \"iso\"\n | \"kanban\"\n | \"kbd\"\n | \"kpi-explained\"\n | \"landing-page\"\n | \"landscape\"\n | \"legal-page\"\n | \"link-card\"\n | \"list\"\n | \"loader\"\n | \"longform-page\"\n | \"maintenance-screen\"\n | \"map\"\n | \"markdown\"\n | \"meta-row\"\n | \"waveform\"\n | \"marketing-layout\"\n | \"marquee\"\n | \"mascot-quote\"\n | \"mascot-state\"\n | \"mascots\"\n | \"match-dialog\"\n | \"media-capture\"\n | \"media-grid\"\n | \"language-switch\"\n | \"media-gallery\"\n | \"media-picker\"\n | \"meter\"\n | \"nav-bar\"\n | \"number-ticker\"\n | \"onboarding\"\n | \"opening-hours\"\n | \"otp-input\"\n | \"page\"\n | \"page-header\"\n | \"page-hero\"\n | \"pagination\"\n | \"permission-prompt\"\n | \"photo-grid\"\n | \"pointer-light\"\n | \"popover\"\n | \"pricing-page\"\n | \"product-page\"\n | \"profile-card\"\n | \"progress\"\n | \"promise-card\"\n | \"pull-to-refresh\"\n | \"retro-tv\"\n | \"radio-group\"\n | \"router\"\n | \"rail-nav\"\n | \"recipes\"\n | \"screen\"\n | \"scroll-stage\"\n | \"search-field\"\n | \"section-backdrop\"\n | \"segmented\"\n | \"separator\"\n | \"service-card\"\n | \"settings-layout\"\n | \"account-menu\"\n | \"showcase\"\n | \"step-showcase\"\n | \"site-footer\"\n | \"sites\"\n | \"skeleton\"\n | \"skip-link\"\n | \"slider\"\n | \"slot-picker\"\n | \"slot\"\n | \"spinner\"\n | \"sticky-action\"\n | \"splash-handoff\"\n | \"split-view\"\n | \"stage-banner\"\n | \"stat\"\n | \"status-page\"\n | \"step-progress\"\n | \"stepper\"\n | \"swipe-deck\"\n | \"swipeable-row\"\n | \"switch\"\n | \"tab-bar\"\n | \"tabs\"\n | \"tag-input\"\n | \"tag-selector\"\n | \"terminal-replay\"\n | \"theme\"\n | \"toast\"\n | \"toc\"\n | \"tooltip\"\n | \"tree-view\"\n | \"txt\"\n | \"update-prompt\"\n | \"verified-badge\"\n | \"vertical-video\"\n | \"video-player\"\n | \"video-trimmer\"\n | \"virtual\"\n | \"wall\";\n\n/** Where a component exists: `@krizaka/ui/<name>` (web), `@krizaka/ui/native` (React Native), or both. */\nexport type Platform = \"web\" | \"native\" | \"both\";\n\n/**\n * Why a component is not on a platform — a decision, never a silence (the parity matrix of ui.krizaka.com/platforms):\n * - `gap` (✗): it belongs there and is not built yet; `issue` is the issue that tracks it (`krizaka/krizaka-ui#275`);\n * - `n/a`: it is not meant for that platform (a site's page block on a phone, a swipe on a desktop); `use` names the\n * component that answers there, when one does.\n */\nexport type Absence =\n | { readonly status: \"gap\"; readonly issue: string; readonly reason: string; readonly use?: undefined }\n | { readonly status: \"n/a\"; readonly reason: string; readonly use?: ComponentName; readonly issue?: undefined };\n\n/**\n * Desktop is the Orazaka Mac app (Tauri 2: the system WebView renders the web components — ADR-002). `web`: the web\n * component runs there as it is; `desktop`: it also has a desktop form (a window's title bar, a denser layout…), said in\n * its documentation; otherwise the absence and why.\n */\nexport type DesktopSupport = \"web\" | \"desktop\" | Absence;\n\n/**\n * The three platforms of Krizaka UI — web · native (React Native, Expo) · desktop — for one component. The side a\n * component has is `platforms`; the side it lacks says why here: `native` is required for (and only for) a web-only\n * component, `web` for a native-only one; `desktop` always. `scripts/registry.test.mjs` fails on a missing decision.\n */\nexport interface Parity {\n readonly web?: Absence;\n readonly native?: Absence;\n readonly desktop: DesktopSupport;\n}\n\n/**\n * `stable`: its API only changes in a major. `beta`: it may still change in a minor. `deprecated`: no product uses it and\n * no work plans to — it still works, says what replaces it, and goes in the major named by `deprecated.removedIn`.\n */\nexport type Status = \"stable\" | \"beta\" | \"deprecated\";\n\n/** What a deprecated component says (required when `status` is `deprecated`, absent otherwise). */\nexport interface Deprecation {\n /** The version that deprecated it (`3.6.0`). */\n readonly since: string;\n /** The major that removes it (`4.0.0`). */\n readonly removedIn: string;\n /** What replaces it, when a component does. */\n readonly use?: ComponentName;\n /** Why it goes: no product uses it, no planned work needs it. */\n readonly reason: string;\n}\n\n/**\n * The group of the catalogue. `media`: video, sound, camera, files, cropping. `blocks`: the page blocks — the frame,\n * the hero, sections, cards that lead or argue, decisions, code, calls to act — that every page of a site is made of.\n * `layouts`: the shells of whole screens — an application, a dashboard, settings, sign-in, an object, a list and its\n * item, a site's page, a documentation page — each with its screens. `templates`: the page templates — whole pages of a\n * site (a landing, a product, a docs hub, a long read, a changelog, pricing, status, an error…), each a distinct\n * composition of the blocks, words and content as props.\n */\nexport type Category = \"actions\" | \"forms\" | \"navigation\" | \"overlays\" | \"feedback\" | \"data-display\" | \"media\" | \"blocks\" | \"layouts\" | \"templates\" | \"layout\" | \"foundations\";\n\n/** Why a reader needs a template: the seven intents the templates are grouped by (sidebar sub-headings, catalogue filter). */\nexport type TemplatePurpose = \"convince\" | \"explain\" | \"show\" | \"act\" | \"operate\" | \"converse\" | \"recover\";\n\n/** The groups of templates, in reading order: the title, and the one line that says when to come to that group. */\nexport const templatePurposes = {\n convince: { title: \"Convince\", useWhen: \"You come here when a visitor must decide: a landing, a product, a price, a comparison, a proof.\" },\n explain: { title: \"Explain\", useWhen: \"You come here when a reader must understand: how it works, a documentation hub or article, a changelog, a FAQ, a policy.\" },\n show: { title: \"Show\", useWhen: \"You come here when the work itself is the argument: a gallery, a story, a case study, an object and its details.\" },\n act: { title: \"Act\", useWhen: \"You come here when a person must do something once: reach the team, sign in or up, set up, pay.\" },\n operate: { title: \"Operate\", useWhen: \"You come here when a person works every day: a dashboard, a console with a table, settings, an app shell.\" },\n converse: { title: \"Converse\", useWhen: \"You come here when people talk: an inbox, a chat, comments, a notifications centre.\" },\n recover: { title: \"Recover\", useWhen: \"You come here when the way is blocked: an empty list, an error, a missing page, maintenance, a product still being built.\" },\n} as const satisfies Record<TemplatePurpose, { readonly title: string; readonly useWhen: string }>;\n\n/**\n * A named example: the file `registry/examples/<component>/<name>.tsx` (web) or\n * `registry/examples/<component>/native/<name>.tsx` (React Native) — at most 40 lines, imported by the stories and\n * shown (live, with its code) by the documentation.\n */\ninterface ExampleBase {\n /** The file name, kebab-case (`primary`, `icon-button`). */\n readonly name: string;\n /** A short title (`Primary`, `Icon button`). */\n readonly title: string;\n /** One or two sentences: when this variant is the right one. */\n readonly description: string;\n}\n\n/** A plain example, or a template: a whole screen with its intent (`purpose`) and the user goal its layout serves (`why`). */\nexport type Example =\n | (ExampleBase & { readonly template?: false; readonly purpose?: undefined; readonly why?: undefined })\n | (ExampleBase & {\n /**\n * A template: a whole screen of a product composed from the platform (a layout and its blocks, real words, its\n * phone version thought out), copied as a starting point — at most 160 lines, listed on ui.krizaka.com/templates.\n */\n readonly template: true;\n /** The intent that groups it: why you need this block. */\n readonly purpose: TemplatePurpose;\n /** Why this layout: the user goal it serves, in one sentence. */\n readonly why: string;\n });\n\n/** One platform's side of a component. */\nexport interface PlatformDocs {\n /** The names to import (`[\"Button\", \"IconButton\"]`): from `@krizaka/ui/<name>` on the web, `@krizaka/ui/native` in React Native. */\n readonly imports: readonly string[];\n /** The examples, in reading order; the first one is the component's preview. */\n readonly examples: readonly Example[];\n}\n\n/** The React Native side: the same concept, and what differs from the web API. */\nexport interface NativeDocs extends PlatformDocs {\n /**\n * The entry to import from when it is not `@krizaka/ui/native`: a component that needs an Expo module (an optional\n * peer) has its own, `@krizaka/ui/native/<name>`, so an app that does not use it never installs the module.\n */\n readonly entry?: string;\n /** What differs from the web API (`label` instead of children…); empty for a native-only component. */\n readonly differences: readonly string[];\n /** The React Native entry alone is deprecated while the web one stays (ADR-006 §7); a deprecated component says it once, above. */\n readonly deprecated?: Deprecation;\n}\n\nexport interface KeyboardInteraction {\n /** The keys, as written on a keyboard: `Space`, `Enter`, `Arrow keys`, `Esc`, `Tab`. */\n readonly keys: string;\n /** What they do. */\n readonly action: string;\n}\n\nexport interface ComponentMeta {\n /** The display name: `Button`, `Dropdown menu`. */\n readonly title: string;\n /** One sentence: what it is. */\n readonly summary: string;\n readonly status: Status;\n /** Required for, and only for, a `deprecated` component. */\n readonly deprecated?: Deprecation;\n readonly category: Category;\n /** Must match the sides below: `both` ⇔ `web` and `native`. */\n readonly platforms: Platform;\n /** The platforms it is not on, and why; and its desktop form (see `Parity`). */\n readonly parity: Parity;\n /** When to reach for it: concrete situations, one per item. */\n readonly whenToUse: readonly string[];\n /** When not to — and what to use instead (`use`), when another component is the answer. */\n readonly whenNotToUse: readonly { readonly when: string; readonly use?: ComponentName }[];\n /** How to use it well: wording, placement, composition. */\n readonly bestPractices: readonly string[];\n readonly accessibility: {\n /** The keyboard, when it does more than Tab and Enter. */\n readonly keyboard: readonly KeyboardInteraction[];\n /** Roles, names and announcements: what the component does, what the app must provide. */\n readonly notes: readonly string[];\n };\n /** The components a reader of this page should know about. */\n readonly related: readonly ComponentName[];\n readonly web?: PlatformDocs;\n readonly native?: NativeDocs;\n}\n"
144
+ "content": "// The documentation of a component, carried by its code: each primitive has a `meta.ts` beside its source\n// (`src/<name>/meta.ts`; a component that exists only in React Native: `src/native/meta/<name>.ts`). Never built into\n// the package: `scripts/build-registry.mjs` reads them into `registry/<name>.json`, which ui.krizaka.com (apps/site) renders as\n// ui.krizaka.com/components/<name>, and `scripts/registry.test.mjs` fails when one is missing or incomplete.\n//\n// Why a typed module and not JSDoc tags: the fields are lists and links (`related`, `whenNotToUse[].use`, examples),\n// which a type checks and a comment does not; the file is plain data (erasable TypeScript), so Node reads it without a\n// compiler, and an editor completes it.\n\n/** Every documented component: the web primitives (one entry of the package each) and the native-only ones. */\nexport type ComponentName =\n | \"notification-preferences\"\n | \"quota-meter\"\n | \"environment-notice\"\n | \"embed-facade\"\n | \"reviews\"\n | \"margin-layout\"\n | \"analysis-report\"\n | \"status-chip\"\n | \"kind-config-editor\"\n | \"agenda\"\n | \"account-settings\"\n | \"drop-overlay\"\n | \"upload-queue\"\n | \"achievement\"\n | \"anatomy-plate\"\n | \"bird-plate\"\n | \"taped-photo\"\n | \"stuck\"\n | \"doodle\"\n | \"signature\"\n | \"grade-stamp\"\n | \"versus-card\"\n | \"speed-lines\"\n | \"site-cahier\"\n | \"text-style\"\n | \"flock\"\n | \"elephant\"\n | \"footnote\"\n | \"page-index\"\n | \"chapter\"\n | \"specimen-tag\"\n | \"action-bar\"\n | \"action-sheet\"\n | \"activity-feed\"\n | \"alert\"\n | \"app-header\"\n | \"app-shell\"\n | \"argument-card\"\n | \"audio-player\"\n | \"auth-layout\"\n | \"avatar\"\n | \"badge\"\n | \"button\"\n | \"captcha\"\n | \"card\"\n | \"card-grid\"\n | \"catalogue-page\"\n | \"changelog-page\"\n | \"chat\"\n | \"checkbox\"\n | \"chip\"\n | \"chip-link\"\n | \"chip-row\"\n | \"choice-grid\"\n | \"cn\"\n | \"code-block\"\n | \"combobox\"\n | \"comparison-table\"\n | \"command\"\n | \"component-page\"\n | \"confirm-button\"\n | \"contact-page\"\n | \"continue-prompt\"\n | \"countdown\"\n | \"cover-hero\"\n | \"cta-panel\"\n | \"dashboard-layout\"\n | \"data-table\"\n | \"date-picker\"\n | \"decision-list\"\n | \"description-list\"\n | \"detail-layout\"\n | \"dialog\"\n | \"docs-article-page\"\n | \"docs-hub-page\"\n | \"docs-layout\"\n | \"docs-nav\"\n | \"document-viewer\"\n | \"dropdown-menu\"\n | \"empty-state\"\n | \"engine-flow\"\n | \"error-page\"\n | \"fab\"\n | \"field\"\n | \"file-upload\"\n | \"filter-bar\"\n | \"force-update-screen\"\n | \"form\"\n | \"gallery-page\"\n | \"genui\"\n | \"glossary\"\n | \"glossary-term\"\n | \"glow-card\"\n | \"goal-gauge\"\n | \"header\"\n | \"how-it-works-page\"\n | \"image-cropper\"\n | \"image-viewer\"\n | \"iso\"\n | \"kanban\"\n | \"kbd\"\n | \"kpi-explained\"\n | \"landing-page\"\n | \"landscape\"\n | \"legal-page\"\n | \"link-card\"\n | \"list\"\n | \"loader\"\n | \"longform-page\"\n | \"maintenance-screen\"\n | \"map\"\n | \"markdown\"\n | \"meta-row\"\n | \"waveform\"\n | \"marketing-layout\"\n | \"marquee\"\n | \"mascot-quote\"\n | \"mascot-state\"\n | \"mascots\"\n | \"match-dialog\"\n | \"media-capture\"\n | \"media-grid\"\n | \"language-switch\"\n | \"media-gallery\"\n | \"media-picker\"\n | \"meter\"\n | \"nav-bar\"\n | \"number-ticker\"\n | \"onboarding\"\n | \"opening-hours\"\n | \"otp-input\"\n | \"page\"\n | \"page-header\"\n | \"page-hero\"\n | \"pagination\"\n | \"permission-prompt\"\n | \"photo-grid\"\n | \"pointer-light\"\n | \"popover\"\n | \"pricing-page\"\n | \"product-page\"\n | \"profile-card\"\n | \"progress\"\n | \"promise-card\"\n | \"pull-to-refresh\"\n | \"retro-tv\"\n | \"radio-group\"\n | \"router\"\n | \"rail-nav\"\n | \"recipes\"\n | \"screen\"\n | \"scroll-stage\"\n | \"search-field\"\n | \"section-backdrop\"\n | \"segmented\"\n | \"separator\"\n | \"service-card\"\n | \"settings-layout\"\n | \"account-menu\"\n | \"showcase\"\n | \"step-showcase\"\n | \"site-footer\"\n | \"sites\"\n | \"skeleton\"\n | \"skip-link\"\n | \"slider\"\n | \"slot-picker\"\n | \"slot\"\n | \"spinner\"\n | \"sticky-action\"\n | \"splash-handoff\"\n | \"split-view\"\n | \"stage-banner\"\n | \"stat\"\n | \"usage\"\n | \"status-page\"\n | \"step-progress\"\n | \"stepper\"\n | \"swipe-deck\"\n | \"swipeable-row\"\n | \"switch\"\n | \"tab-bar\"\n | \"tabs\"\n | \"tag-input\"\n | \"tag-selector\"\n | \"terminal-replay\"\n | \"theme\"\n | \"toast\"\n | \"toc\"\n | \"tooltip\"\n | \"tree-view\"\n | \"txt\"\n | \"update-prompt\"\n | \"verified-badge\"\n | \"vertical-video\"\n | \"video-player\"\n | \"video-trimmer\"\n | \"virtual\"\n | \"wall\";\n\n/** Where a component exists: `@krizaka/ui/<name>` (web), `@krizaka/ui/native` (React Native), or both. */\nexport type Platform = \"web\" | \"native\" | \"both\";\n\n/**\n * Why a component is not on a platform — a decision, never a silence (the parity matrix of ui.krizaka.com/platforms):\n * - `gap` (✗): it belongs there and is not built yet; `issue` is the issue that tracks it (`krizaka/krizaka-ui#275`);\n * - `n/a`: it is not meant for that platform (a site's page block on a phone, a swipe on a desktop); `use` names the\n * component that answers there, when one does.\n */\nexport type Absence =\n | { readonly status: \"gap\"; readonly issue: string; readonly reason: string; readonly use?: undefined }\n | { readonly status: \"n/a\"; readonly reason: string; readonly use?: ComponentName; readonly issue?: undefined };\n\n/**\n * Desktop is the Orazaka Mac app (Tauri 2: the system WebView renders the web components — ADR-002). `web`: the web\n * component runs there as it is; `desktop`: it also has a desktop form (a window's title bar, a denser layout…), said in\n * its documentation; otherwise the absence and why.\n */\nexport type DesktopSupport = \"web\" | \"desktop\" | Absence;\n\n/**\n * The three platforms of Krizaka UI — web · native (React Native, Expo) · desktop — for one component. The side a\n * component has is `platforms`; the side it lacks says why here: `native` is required for (and only for) a web-only\n * component, `web` for a native-only one; `desktop` always. `scripts/registry.test.mjs` fails on a missing decision.\n */\nexport interface Parity {\n readonly web?: Absence;\n readonly native?: Absence;\n readonly desktop: DesktopSupport;\n}\n\n/**\n * `stable`: its API only changes in a major. `beta`: it may still change in a minor. `deprecated`: no product uses it and\n * no work plans to — it still works, says what replaces it, and goes in the major named by `deprecated.removedIn`.\n */\nexport type Status = \"stable\" | \"beta\" | \"deprecated\";\n\n/** What a deprecated component says (required when `status` is `deprecated`, absent otherwise). */\nexport interface Deprecation {\n /** The version that deprecated it (`3.6.0`). */\n readonly since: string;\n /** The major that removes it (`4.0.0`). */\n readonly removedIn: string;\n /** What replaces it, when a component does. */\n readonly use?: ComponentName;\n /** Why it goes: no product uses it, no planned work needs it. */\n readonly reason: string;\n}\n\n/**\n * The group of the catalogue. `media`: video, sound, camera, files, cropping. `blocks`: the page blocks — the frame,\n * the hero, sections, cards that lead or argue, decisions, code, calls to act — that every page of a site is made of.\n * `layouts`: the shells of whole screens — an application, a dashboard, settings, sign-in, an object, a list and its\n * item, a site's page, a documentation page — each with its screens. `templates`: the page templates — whole pages of a\n * site (a landing, a product, a docs hub, a long read, a changelog, pricing, status, an error…), each a distinct\n * composition of the blocks, words and content as props.\n */\nexport type Category = \"actions\" | \"forms\" | \"navigation\" | \"overlays\" | \"feedback\" | \"data-display\" | \"media\" | \"blocks\" | \"layouts\" | \"templates\" | \"layout\" | \"foundations\";\n\n/** Why a reader needs a template: the seven intents the templates are grouped by (sidebar sub-headings, catalogue filter). */\nexport type TemplatePurpose = \"convince\" | \"explain\" | \"show\" | \"act\" | \"operate\" | \"converse\" | \"recover\";\n\n/** The groups of templates, in reading order: the title, and the one line that says when to come to that group. */\nexport const templatePurposes = {\n convince: { title: \"Convince\", useWhen: \"You come here when a visitor must decide: a landing, a product, a price, a comparison, a proof.\" },\n explain: { title: \"Explain\", useWhen: \"You come here when a reader must understand: how it works, a documentation hub or article, a changelog, a FAQ, a policy.\" },\n show: { title: \"Show\", useWhen: \"You come here when the work itself is the argument: a gallery, a story, a case study, an object and its details.\" },\n act: { title: \"Act\", useWhen: \"You come here when a person must do something once: reach the team, sign in or up, set up, pay.\" },\n operate: { title: \"Operate\", useWhen: \"You come here when a person works every day: a dashboard, a console with a table, settings, an app shell.\" },\n converse: { title: \"Converse\", useWhen: \"You come here when people talk: an inbox, a chat, comments, a notifications centre.\" },\n recover: { title: \"Recover\", useWhen: \"You come here when the way is blocked: an empty list, an error, a missing page, maintenance, a product still being built.\" },\n} as const satisfies Record<TemplatePurpose, { readonly title: string; readonly useWhen: string }>;\n\n/**\n * A named example: the file `registry/examples/<component>/<name>.tsx` (web) or\n * `registry/examples/<component>/native/<name>.tsx` (React Native) — at most 40 lines, imported by the stories and\n * shown (live, with its code) by the documentation.\n */\ninterface ExampleBase {\n /** The file name, kebab-case (`primary`, `icon-button`). */\n readonly name: string;\n /** A short title (`Primary`, `Icon button`). */\n readonly title: string;\n /** One or two sentences: when this variant is the right one. */\n readonly description: string;\n}\n\n/** A plain example, or a template: a whole screen with its intent (`purpose`) and the user goal its layout serves (`why`). */\nexport type Example =\n | (ExampleBase & { readonly template?: false; readonly purpose?: undefined; readonly why?: undefined })\n | (ExampleBase & {\n /**\n * A template: a whole screen of a product composed from the platform (a layout and its blocks, real words, its\n * phone version thought out), copied as a starting point — at most 160 lines, listed on ui.krizaka.com/templates.\n */\n readonly template: true;\n /** The intent that groups it: why you need this block. */\n readonly purpose: TemplatePurpose;\n /** Why this layout: the user goal it serves, in one sentence. */\n readonly why: string;\n });\n\n/** One platform's side of a component. */\nexport interface PlatformDocs {\n /** The names to import (`[\"Button\", \"IconButton\"]`): from `@krizaka/ui/<name>` on the web, `@krizaka/ui/native` in React Native. */\n readonly imports: readonly string[];\n /** The examples, in reading order; the first one is the component's preview. */\n readonly examples: readonly Example[];\n}\n\n/** The React Native side: the same concept, and what differs from the web API. */\nexport interface NativeDocs extends PlatformDocs {\n /**\n * The entry to import from when it is not `@krizaka/ui/native`: a component that needs an Expo module (an optional\n * peer) has its own, `@krizaka/ui/native/<name>`, so an app that does not use it never installs the module.\n */\n readonly entry?: string;\n /** What differs from the web API (`label` instead of children…); empty for a native-only component. */\n readonly differences: readonly string[];\n /** The React Native entry alone is deprecated while the web one stays (ADR-006 §7); a deprecated component says it once, above. */\n readonly deprecated?: Deprecation;\n}\n\nexport interface KeyboardInteraction {\n /** The keys, as written on a keyboard: `Space`, `Enter`, `Arrow keys`, `Esc`, `Tab`. */\n readonly keys: string;\n /** What they do. */\n readonly action: string;\n}\n\nexport interface ComponentMeta {\n /** The display name: `Button`, `Dropdown menu`. */\n readonly title: string;\n /** One sentence: what it is. */\n readonly summary: string;\n readonly status: Status;\n /** Required for, and only for, a `deprecated` component. */\n readonly deprecated?: Deprecation;\n readonly category: Category;\n /** Must match the sides below: `both` ⇔ `web` and `native`. */\n readonly platforms: Platform;\n /** The platforms it is not on, and why; and its desktop form (see `Parity`). */\n readonly parity: Parity;\n /** When to reach for it: concrete situations, one per item. */\n readonly whenToUse: readonly string[];\n /** When not to — and what to use instead (`use`), when another component is the answer. */\n readonly whenNotToUse: readonly { readonly when: string; readonly use?: ComponentName }[];\n /** How to use it well: wording, placement, composition. */\n readonly bestPractices: readonly string[];\n readonly accessibility: {\n /** The keyboard, when it does more than Tab and Enter. */\n readonly keyboard: readonly KeyboardInteraction[];\n /** Roles, names and announcements: what the component does, what the app must provide. */\n readonly notes: readonly string[];\n };\n /** The components a reader of this page should know about. */\n readonly related: readonly ComponentName[];\n readonly web?: PlatformDocs;\n readonly native?: NativeDocs;\n}\n"
145
145
  },
146
146
  {
147
147
  "path": "scroll-stage/index.ts",