@krizaka/ui 3.54.0 → 3.59.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 (814) hide show
  1. package/README.md +1 -0
  2. package/dist/{RotatingWord-D9s7FXFD.d.ts → RotatingWord-COSabR2c.d.ts} +2 -1
  3. package/dist/account-menu.d.ts +8 -3
  4. package/dist/account-menu.js +8 -1
  5. package/dist/account-menu.js.map +1 -1
  6. package/dist/account-settings.d.ts +153 -61
  7. package/dist/account-settings.js +243 -160
  8. package/dist/account-settings.js.map +1 -1
  9. package/dist/achievement.d.ts +2 -1
  10. package/dist/action-bar.d.ts +3 -2
  11. package/dist/activity-feed.d.ts +2 -1
  12. package/dist/agenda.d.ts +2 -1
  13. package/dist/alert.d.ts +2 -1
  14. package/dist/anatomy-plate.d.ts +6 -2
  15. package/dist/anatomy-plate.js +4 -0
  16. package/dist/anatomy-plate.js.map +1 -1
  17. package/dist/app-header/search.d.ts +64 -0
  18. package/dist/app-header/search.js +70 -0
  19. package/dist/app-header/search.js.map +1 -0
  20. package/dist/app-header.d.ts +89 -4
  21. package/dist/app-header.js +63 -5
  22. package/dist/app-header.js.map +1 -1
  23. package/dist/app-shell.d.ts +26 -25
  24. package/dist/app-shell.js +31 -40
  25. package/dist/app-shell.js.map +1 -1
  26. package/dist/argument-card.d.ts +3 -2
  27. package/dist/argument-card.js +3 -3
  28. package/dist/audio-player.d.ts +2 -1
  29. package/dist/auth-layout.d.ts +11 -10
  30. package/dist/avatar/defaults.d.ts +2 -1
  31. package/dist/avatar.d.ts +2 -1
  32. package/dist/badge.d.ts +2 -1
  33. package/dist/bird-plate.d.ts +7 -3
  34. package/dist/bird-plate.js +2 -2
  35. package/dist/bird-plate.js.map +1 -1
  36. package/dist/blocks.css +235 -27
  37. package/dist/button.d.ts +2 -1
  38. package/dist/captcha.d.ts +2 -1
  39. package/dist/captcha.js +1 -0
  40. package/dist/captcha.js.map +1 -1
  41. package/dist/card-grid.d.ts +2 -1
  42. package/dist/card.d.ts +2 -1
  43. package/dist/catalogue-page.d.ts +82 -2
  44. package/dist/catalogue-page.js +156 -13
  45. package/dist/catalogue-page.js.map +1 -1
  46. package/dist/changelog-page.d.ts +2 -1
  47. package/dist/chapter.d.ts +2 -1
  48. package/dist/chat.d.ts +14 -13
  49. package/dist/chat.js +2 -2
  50. package/dist/chat.js.map +1 -1
  51. package/dist/checkbox.d.ts +2 -1
  52. package/dist/checkbox.js +1 -1
  53. package/dist/checkbox.js.map +1 -1
  54. package/dist/chip-link.d.ts +2 -1
  55. package/dist/chip-row.d.ts +8 -7
  56. package/dist/chip.d.ts +55 -1
  57. package/dist/chip.js +14 -98
  58. package/dist/chip.js.map +1 -1
  59. package/dist/choice-grid.d.ts +3 -2
  60. package/dist/choice-grid.js +28 -88
  61. package/dist/choice-grid.js.map +1 -1
  62. package/dist/chunk-27AWSJTK.js +46 -0
  63. package/dist/chunk-27AWSJTK.js.map +1 -0
  64. package/dist/{chunk-YGIN2YIY.js → chunk-3X3OF4TI.js} +2 -2
  65. package/dist/chunk-3X3OF4TI.js.map +1 -0
  66. package/dist/{chunk-KBQD6HE3.js → chunk-4GQH27IT.js} +3 -3
  67. package/dist/{chunk-KBQD6HE3.js.map → chunk-4GQH27IT.js.map} +1 -1
  68. package/dist/{chunk-YHKTYFOQ.js → chunk-5LANVCK7.js} +383 -107
  69. package/dist/chunk-5LANVCK7.js.map +1 -0
  70. package/dist/{chunk-KDXRYUD3.js → chunk-5QEXOGO2.js} +3 -1
  71. package/dist/{chunk-KDXRYUD3.js.map → chunk-5QEXOGO2.js.map} +1 -1
  72. package/dist/chunk-5VEVYDVC.js +11 -0
  73. package/dist/chunk-5VEVYDVC.js.map +1 -0
  74. package/dist/chunk-7J2L4HOD.js +340 -0
  75. package/dist/chunk-7J2L4HOD.js.map +1 -0
  76. package/dist/chunk-BDIU5LZB.js +18 -0
  77. package/dist/chunk-BDIU5LZB.js.map +1 -0
  78. package/dist/chunk-BQ4EOR2O.js +177 -0
  79. package/dist/chunk-BQ4EOR2O.js.map +1 -0
  80. package/dist/chunk-CSRKYZ53.js +39 -0
  81. package/dist/chunk-CSRKYZ53.js.map +1 -0
  82. package/dist/chunk-F6JTHPHE.js +399 -0
  83. package/dist/chunk-F6JTHPHE.js.map +1 -0
  84. package/dist/chunk-HEKDKM5Y.js +128 -0
  85. package/dist/chunk-HEKDKM5Y.js.map +1 -0
  86. package/dist/chunk-KGLRZMCY.js +16 -0
  87. package/dist/chunk-KGLRZMCY.js.map +1 -0
  88. package/dist/chunk-KID32IRJ.js +18 -0
  89. package/dist/chunk-KID32IRJ.js.map +1 -0
  90. package/dist/chunk-OGWB76BR.js +90 -0
  91. package/dist/chunk-OGWB76BR.js.map +1 -0
  92. package/dist/{chunk-4LYKBSOG.js → chunk-USPOIQV5.js} +2 -2
  93. package/dist/chunk-USPOIQV5.js.map +1 -0
  94. package/dist/chunk-UYGUSYIC.js +173 -0
  95. package/dist/chunk-UYGUSYIC.js.map +1 -0
  96. package/dist/{chunk-7NRSPHAF.js → chunk-VB7MWE2N.js} +2 -2
  97. package/dist/{chunk-7NRSPHAF.js.map → chunk-VB7MWE2N.js.map} +1 -1
  98. package/dist/chunk-WOZP3JLW.js +51 -0
  99. package/dist/chunk-WOZP3JLW.js.map +1 -0
  100. package/dist/chunk-XVXFMVG3.js +27 -0
  101. package/dist/chunk-XVXFMVG3.js.map +1 -0
  102. package/dist/chunk-YCZ7N6Q6.js +385 -0
  103. package/dist/chunk-YCZ7N6Q6.js.map +1 -0
  104. package/dist/code-block.d.ts +2 -1
  105. package/dist/code-block.js +81 -98
  106. package/dist/code-block.js.map +1 -1
  107. package/dist/combobox.d.ts +20 -19
  108. package/dist/combobox.js +3 -2
  109. package/dist/command.d.ts +21 -20
  110. package/dist/comparison-table.d.ts +2 -1
  111. package/dist/component-page.d.ts +6 -2
  112. package/dist/component-page.js +5 -0
  113. package/dist/component-page.js.map +1 -1
  114. package/dist/confirm-button.d.ts +2 -1
  115. package/dist/contact-page.d.ts +2 -1
  116. package/dist/continue-prompt.d.ts +6 -2
  117. package/dist/continue-prompt.js +4 -0
  118. package/dist/continue-prompt.js.map +1 -1
  119. package/dist/countdown.d.ts +2 -1
  120. package/dist/cover-hero.d.ts +20 -19
  121. package/dist/cover-hero.js +25 -42
  122. package/dist/cover-hero.js.map +1 -1
  123. package/dist/cta-panel.d.ts +2 -1
  124. package/dist/dashboard-layout.d.ts +50 -2
  125. package/dist/dashboard-layout.js +66 -11
  126. package/dist/dashboard-layout.js.map +1 -1
  127. package/dist/data-table.d.ts +103 -4
  128. package/dist/data-table.js +23 -7
  129. package/dist/date-picker.d.ts +29 -28
  130. package/dist/date-picker.js +2 -2
  131. package/dist/date-picker.js.map +1 -1
  132. package/dist/decision-list.d.ts +2 -1
  133. package/dist/description-list.d.ts +2 -1
  134. package/dist/detail-layout.d.ts +147 -3
  135. package/dist/detail-layout.js +143 -17
  136. package/dist/detail-layout.js.map +1 -1
  137. package/dist/{dialog-D42QwYb_.d.ts → dialog-DpUwec2g.d.ts} +2 -1
  138. package/dist/dialog.d.ts +3 -2
  139. package/dist/docs-article-page.d.ts +2 -1
  140. package/dist/docs-hub-page.d.ts +2 -1
  141. package/dist/docs-layout.d.ts +2 -1
  142. package/dist/docs-nav.d.ts +3 -10
  143. package/dist/document-viewer.d.ts +5 -4
  144. package/dist/doodle.d.ts +32 -0
  145. package/dist/doodle.js +70 -0
  146. package/dist/doodle.js.map +1 -0
  147. package/dist/drop-overlay.d.ts +14 -5
  148. package/dist/drop-overlay.js +16 -6
  149. package/dist/drop-overlay.js.map +1 -1
  150. package/dist/dropdown-menu.d.ts +2 -1
  151. package/dist/dropdown-menu.js +13 -74
  152. package/dist/dropdown-menu.js.map +1 -1
  153. package/dist/elephant.d.ts +4 -1
  154. package/dist/elephant.js +4 -0
  155. package/dist/elephant.js.map +1 -1
  156. package/dist/empty-state.d.ts +2 -1
  157. package/dist/engine-flow.d.ts +2 -1
  158. package/dist/error-page.d.ts +2 -1
  159. package/dist/field.js +1 -1
  160. package/dist/field.js.map +1 -1
  161. package/dist/file-upload.d.ts +14 -13
  162. package/dist/filter-bar.d.ts +84 -11
  163. package/dist/filter-bar.js +6 -2
  164. package/dist/flock.d.ts +3 -2
  165. package/dist/footnote.d.ts +2 -1
  166. package/dist/force-update-screen.d.ts +13 -8
  167. package/dist/force-update-screen.js +4 -0
  168. package/dist/force-update-screen.js.map +1 -1
  169. package/dist/form/server.d.ts +2 -1
  170. package/dist/form.d.ts +2 -1
  171. package/dist/gallery-page.d.ts +6 -2
  172. package/dist/gallery-page.js +4 -0
  173. package/dist/gallery-page.js.map +1 -1
  174. package/dist/genui.d.ts +2 -1
  175. package/dist/genui.js +5 -5
  176. package/dist/{geometry-DX-W-Yyf.d.ts → geometry-DZ4Q3hDQ.d.ts} +2 -1
  177. package/dist/glossary-term.d.ts +2 -1
  178. package/dist/glossary.d.ts +2 -1
  179. package/dist/glow-card.d.ts +2 -1
  180. package/dist/goal-gauge.d.ts +2 -1
  181. package/dist/grade-stamp.d.ts +23 -0
  182. package/dist/grade-stamp.js +42 -0
  183. package/dist/grade-stamp.js.map +1 -0
  184. package/dist/how-it-works-page.d.ts +2 -1
  185. package/dist/image-cropper.d.ts +15 -6
  186. package/dist/image-cropper.js +4 -0
  187. package/dist/image-cropper.js.map +1 -1
  188. package/dist/index.d.ts +3 -2
  189. package/dist/index.js +4 -4
  190. package/dist/iso.d.ts +2 -1
  191. package/dist/kanban.d.ts +5 -1
  192. package/dist/kanban.js +4 -0
  193. package/dist/kanban.js.map +1 -1
  194. package/dist/kbd.d.ts +2 -1
  195. package/dist/kind-config-editor.d.ts +152 -0
  196. package/dist/kind-config-editor.js +574 -0
  197. package/dist/kind-config-editor.js.map +1 -0
  198. package/dist/kpi-explained.d.ts +2 -1
  199. package/dist/landing-page.d.ts +2 -1
  200. package/dist/landscape.d.ts +6 -2
  201. package/dist/landscape.js +4 -0
  202. package/dist/landscape.js.map +1 -1
  203. package/dist/language-switch/server.d.ts +2 -1
  204. package/dist/language-switch.d.ts +11 -10
  205. package/dist/legal-page.d.ts +2 -1
  206. package/dist/link-card.d.ts +2 -1
  207. package/dist/list.d.ts +2 -1
  208. package/dist/list.js +1 -1
  209. package/dist/loader.d.ts +2 -1
  210. package/dist/longform-page.d.ts +2 -1
  211. package/dist/maintenance-screen.d.ts +10 -5
  212. package/dist/maintenance-screen.js +4 -0
  213. package/dist/maintenance-screen.js.map +1 -1
  214. package/dist/map.d.ts +8 -7
  215. package/dist/map.js +30 -0
  216. package/dist/map.js.map +1 -1
  217. package/dist/markdown.d.ts +7 -2
  218. package/dist/markdown.js +12 -5
  219. package/dist/markdown.js.map +1 -1
  220. package/dist/marketing-layout.d.ts +5 -4
  221. package/dist/marquee.d.ts +2 -1
  222. package/dist/mascot-quote.d.ts +2 -1
  223. package/dist/mascot-state.d.ts +3 -2
  224. package/dist/mascots.d.ts +4 -3
  225. package/dist/match-dialog.d.ts +6 -2
  226. package/dist/match-dialog.js +4 -0
  227. package/dist/match-dialog.js.map +1 -1
  228. package/dist/media-capture.d.ts +11 -5
  229. package/dist/media-capture.js +4 -0
  230. package/dist/media-capture.js.map +1 -1
  231. package/dist/media-gallery.d.ts +2 -1
  232. package/dist/media-grid.d.ts +3 -10
  233. package/dist/meta-row.d.ts +2 -1
  234. package/dist/meter.d.ts +2 -1
  235. package/dist/meter.js +5 -121
  236. package/dist/meter.js.map +1 -1
  237. package/dist/motion.d.ts +3 -2
  238. package/dist/native/form.d.ts +2 -1
  239. package/dist/native/list.d.ts +2 -1
  240. package/dist/native/map.d.ts +2 -1
  241. package/dist/native/map.js +30 -0
  242. package/dist/native/map.js.map +1 -1
  243. package/dist/native/markdown.d.ts +11 -3
  244. package/dist/native/markdown.js +46 -7
  245. package/dist/native/markdown.js.map +1 -1
  246. package/dist/native/media-capture.d.ts +3 -1
  247. package/dist/native/media-capture.js +5 -0
  248. package/dist/native/media-capture.js.map +1 -1
  249. package/dist/native/media-picker.d.ts +2 -1
  250. package/dist/native/vertical-video.d.ts +10 -3
  251. package/dist/native/vertical-video.js +6 -0
  252. package/dist/native/vertical-video.js.map +1 -1
  253. package/dist/native/video-player.d.ts +2 -1
  254. package/dist/native.d.ts +323 -4
  255. package/dist/native.js +1974 -1348
  256. package/dist/native.js.map +1 -1
  257. package/dist/nav-bar/me.d.ts +33 -0
  258. package/dist/nav-bar/me.js +23 -0
  259. package/dist/nav-bar/me.js.map +1 -0
  260. package/dist/nav-bar.d.ts +61 -2
  261. package/dist/nav-bar.js +92 -48
  262. package/dist/nav-bar.js.map +1 -1
  263. package/dist/next-actions.d.ts +2 -1
  264. package/dist/notification-preferences.d.ts +152 -0
  265. package/dist/notification-preferences.js +78 -0
  266. package/dist/notification-preferences.js.map +1 -0
  267. package/dist/number-ticker.d.ts +2 -1
  268. package/dist/opening-hours.d.ts +2 -1
  269. package/dist/page-header.d.ts +2 -1
  270. package/dist/page-header.js +1 -1
  271. package/dist/page-header.js.map +1 -1
  272. package/dist/page-hero.d.ts +2 -1
  273. package/dist/page-index.d.ts +2 -1
  274. package/dist/page.d.ts +2 -1
  275. package/dist/pagination.d.ts +2 -1
  276. package/dist/photo-grid.d.ts +2 -1
  277. package/dist/pointer-light.d.ts +2 -1
  278. package/dist/pointer-light.js +5 -0
  279. package/dist/pointer-light.js.map +1 -1
  280. package/dist/popover.d.ts +2 -1
  281. package/dist/pricing-page.d.ts +2 -1
  282. package/dist/product-page.d.ts +6 -2
  283. package/dist/product-page.js +4 -0
  284. package/dist/product-page.js.map +1 -1
  285. package/dist/profile-card.d.ts +120 -1
  286. package/dist/profile-card.js +68 -21
  287. package/dist/profile-card.js.map +1 -1
  288. package/dist/progress.d.ts +2 -1
  289. package/dist/promise-card.d.ts +6 -2
  290. package/dist/promise-card.js +4 -0
  291. package/dist/promise-card.js.map +1 -1
  292. package/dist/quota-meter.d.ts +114 -0
  293. package/dist/quota-meter.js +58 -0
  294. package/dist/quota-meter.js.map +1 -0
  295. package/dist/radio-group.d.ts +2 -1
  296. package/dist/radio-group.js +7 -9
  297. package/dist/radio-group.js.map +1 -1
  298. package/dist/rail-nav.d.ts +35 -18
  299. package/dist/rail-nav.js +45 -56
  300. package/dist/rail-nav.js.map +1 -1
  301. package/dist/recipes.d.ts +2 -1
  302. package/dist/retro-tv.d.ts +31 -0
  303. package/dist/retro-tv.js +124 -0
  304. package/dist/retro-tv.js.map +1 -0
  305. package/dist/router.d.ts +13 -1
  306. package/dist/router.js +85 -8
  307. package/dist/router.js.map +1 -1
  308. package/dist/scroll-stage.d.ts +7 -2
  309. package/dist/scroll-stage.js +5 -0
  310. package/dist/scroll-stage.js.map +1 -1
  311. package/dist/search-field.d.ts +2 -1
  312. package/dist/search-field.js +1 -1
  313. package/dist/section-backdrop.d.ts +2 -1
  314. package/dist/separator.d.ts +2 -1
  315. package/dist/service-card.d.ts +9 -8
  316. package/dist/settings-layout.d.ts +2 -1
  317. package/dist/settings-layout.js +10 -324
  318. package/dist/settings-layout.js.map +1 -1
  319. package/dist/showcase.d.ts +11 -3
  320. package/dist/showcase.js +5 -0
  321. package/dist/showcase.js.map +1 -1
  322. package/dist/signature.d.ts +20 -0
  323. package/dist/signature.js +39 -0
  324. package/dist/signature.js.map +1 -0
  325. package/dist/site-cahier.d.ts +187 -0
  326. package/dist/site-cahier.js +844 -0
  327. package/dist/site-cahier.js.map +1 -0
  328. package/dist/site-footer.d.ts +2 -1
  329. package/dist/site-footer.js +1 -1
  330. package/dist/sites.d.ts +2 -1
  331. package/dist/sites.js +1 -1
  332. package/dist/sites.js.map +1 -1
  333. package/dist/skeleton.d.ts +2 -1
  334. package/dist/skip-link.d.ts +2 -1
  335. package/dist/slider.d.ts +2 -1
  336. package/dist/slot-picker.d.ts +86 -13
  337. package/dist/slot-picker.js +98 -16
  338. package/dist/slot-picker.js.map +1 -1
  339. package/dist/slot.d.ts +1 -1
  340. package/dist/specimen-tag.d.ts +2 -1
  341. package/dist/speed-lines.d.ts +19 -0
  342. package/dist/speed-lines.js +45 -0
  343. package/dist/speed-lines.js.map +1 -0
  344. package/dist/spinner.d.ts +2 -1
  345. package/dist/split-view.d.ts +2 -1
  346. package/dist/stage-banner.d.ts +2 -1
  347. package/dist/stat.d.ts +2 -1
  348. package/dist/stat.js +1 -1
  349. package/dist/stat.js.map +1 -1
  350. package/dist/status-chip.d.ts +44 -0
  351. package/dist/status-chip.js +137 -0
  352. package/dist/status-chip.js.map +1 -0
  353. package/dist/status-page.d.ts +6 -2
  354. package/dist/status-page.js +5 -0
  355. package/dist/status-page.js.map +1 -1
  356. package/dist/step-progress.d.ts +2 -1
  357. package/dist/step-showcase.d.ts +2 -1
  358. package/dist/stepper.d.ts +2 -1
  359. package/dist/sticky-action.d.ts +28 -5
  360. package/dist/sticky-action.js +10 -4
  361. package/dist/sticky-action.js.map +1 -1
  362. package/dist/stuck.d.ts +28 -0
  363. package/dist/stuck.js +26 -0
  364. package/dist/stuck.js.map +1 -0
  365. package/dist/swipe-deck.d.ts +11 -3
  366. package/dist/swipe-deck.js +5 -0
  367. package/dist/swipe-deck.js.map +1 -1
  368. package/dist/switch.d.ts +2 -1
  369. package/dist/switch.js +4 -32
  370. package/dist/switch.js.map +1 -1
  371. package/dist/tabs.d.ts +48 -8
  372. package/dist/tabs.js +62 -12
  373. package/dist/tabs.js.map +1 -1
  374. package/dist/tag-input.d.ts +2 -1
  375. package/dist/tag-input.js +3 -2
  376. package/dist/tag-input.js.map +1 -1
  377. package/dist/tag-selector.d.ts +30 -4
  378. package/dist/tag-selector.js +90 -8
  379. package/dist/tag-selector.js.map +1 -1
  380. package/dist/taped-photo.d.ts +2 -1
  381. package/dist/taped-photo.js +3 -20
  382. package/dist/taped-photo.js.map +1 -1
  383. package/dist/terminal-replay.d.ts +6 -2
  384. package/dist/terminal-replay.js +5 -1
  385. package/dist/terminal-replay.js.map +1 -1
  386. package/dist/text-style/server.d.ts +2 -1
  387. package/dist/text-style.d.ts +2 -1
  388. package/dist/theme.d.ts +21 -1
  389. package/dist/theme.js +37 -1
  390. package/dist/theme.js.map +1 -1
  391. package/dist/toast.d.ts +2 -1
  392. package/dist/toc.d.ts +2 -1
  393. package/dist/tooltip.d.ts +2 -1
  394. package/dist/tree-view.d.ts +2 -1
  395. package/dist/tree-view.js +4 -0
  396. package/dist/tree-view.js.map +1 -1
  397. package/dist/update-prompt.d.ts +16 -11
  398. package/dist/update-prompt.js +4 -0
  399. package/dist/update-prompt.js.map +1 -1
  400. package/dist/upload-queue.d.ts +2 -1
  401. package/dist/verified-badge.d.ts +2 -1
  402. package/dist/versus-card.d.ts +40 -0
  403. package/dist/versus-card.js +40 -0
  404. package/dist/versus-card.js.map +1 -0
  405. package/dist/vertical-video.d.ts +2 -1
  406. package/dist/video-player.d.ts +20 -19
  407. package/dist/video-player.js +7 -376
  408. package/dist/video-player.js.map +1 -1
  409. package/dist/video-trimmer.d.ts +8 -2
  410. package/dist/video-trimmer.js +4 -0
  411. package/dist/video-trimmer.js.map +1 -1
  412. package/dist/virtual.d.ts +8 -7
  413. package/dist/waveform.d.ts +2 -1
  414. package/package.json +249 -52
  415. package/registry/account-menu.json +9 -8
  416. package/registry/account-settings.json +258 -6
  417. package/registry/achievement.json +3 -4
  418. package/registry/action-bar.json +3 -3
  419. package/registry/action-sheet.json +1 -0
  420. package/registry/activity-feed.json +2 -1
  421. package/registry/agenda.json +1 -1
  422. package/registry/alert.json +1 -1
  423. package/registry/anatomy-plate.json +13 -5
  424. package/registry/app-header.json +470 -23
  425. package/registry/app-shell.json +2 -2
  426. package/registry/argument-card.json +1 -1
  427. package/registry/audio-player.json +1 -1
  428. package/registry/auth-layout.json +1 -1
  429. package/registry/avatar.json +3 -2
  430. package/registry/badge.json +2 -1
  431. package/registry/bird-plate.json +16 -2
  432. package/registry/button.json +7 -6
  433. package/registry/captcha.json +1 -1
  434. package/registry/card-grid.json +1 -1
  435. package/registry/card.json +7 -6
  436. package/registry/catalogue-page.json +117 -8
  437. package/registry/changelog-page.json +3 -5
  438. package/registry/chapter.json +1 -1
  439. package/registry/chat.json +3 -2
  440. package/registry/checkbox.json +4 -3
  441. package/registry/chip-link.json +2 -2
  442. package/registry/chip-row.json +2 -2
  443. package/registry/chip.json +388 -12
  444. package/registry/choice-grid.json +3 -4
  445. package/registry/code-block.json +1 -1
  446. package/registry/combobox.json +3 -2
  447. package/registry/command.json +2 -2
  448. package/registry/comparison-table.json +1 -1
  449. package/registry/component-page.json +14 -5
  450. package/registry/confirm-button.json +4 -4
  451. package/registry/contact-page.json +1 -1
  452. package/registry/continue-prompt.json +13 -5
  453. package/registry/countdown.json +4 -3
  454. package/registry/cover-hero.json +3 -4
  455. package/registry/cta-panel.json +1 -1
  456. package/registry/dashboard-layout.json +91 -5
  457. package/registry/data-table.json +215 -8
  458. package/registry/date-picker.json +5 -4
  459. package/registry/decision-list.json +1 -1
  460. package/registry/description-list.json +2 -1
  461. package/registry/detail-layout.json +226 -8
  462. package/registry/dialog.json +7 -6
  463. package/registry/docs-article-page.json +3 -4
  464. package/registry/docs-hub-page.json +1 -1
  465. package/registry/docs-layout.json +1 -1
  466. package/registry/docs-nav.json +1 -1
  467. package/registry/document-viewer.json +3 -5
  468. package/registry/doodle.json +302 -0
  469. package/registry/drop-overlay.json +30 -16
  470. package/registry/dropdown-menu.json +2 -2
  471. package/registry/elephant.json +15 -7
  472. package/registry/empty-state.json +2 -1
  473. package/registry/engine-flow.json +1 -1
  474. package/registry/error-page.json +3 -5
  475. package/registry/examples/account-settings/appearance.d.ts +4 -0
  476. package/registry/examples/account-settings/appearance.js +40 -0
  477. package/registry/examples/account-settings/appearance.tsx +30 -0
  478. package/registry/examples/app-header/family.d.ts +4 -0
  479. package/registry/examples/app-header/family.js +41 -0
  480. package/registry/examples/app-header/family.tsx +37 -0
  481. package/registry/examples/app-header/native/family.d.ts +4 -0
  482. package/registry/examples/app-header/native/family.dark.png +0 -0
  483. package/registry/examples/app-header/native/family.js +25 -0
  484. package/registry/examples/app-header/native/family.light.png +0 -0
  485. package/registry/examples/app-header/native/family.tsx +33 -0
  486. package/registry/examples/catalogue-page/clients.d.ts +4 -0
  487. package/registry/examples/catalogue-page/clients.js +49 -0
  488. package/registry/examples/catalogue-page/clients.tsx +61 -0
  489. package/registry/examples/chip/marker-picker.d.ts +4 -0
  490. package/registry/examples/chip/marker-picker.js +17 -0
  491. package/registry/examples/chip/marker-picker.tsx +17 -0
  492. package/registry/examples/chip/native/marker-picker.d.ts +4 -0
  493. package/registry/examples/chip/native/marker-picker.dark.png +0 -0
  494. package/registry/examples/chip/native/marker-picker.js +18 -0
  495. package/registry/examples/chip/native/marker-picker.light.png +0 -0
  496. package/registry/examples/chip/native/marker-picker.tsx +16 -0
  497. package/registry/examples/chip/native/tags.d.ts +4 -0
  498. package/registry/examples/chip/native/tags.dark.png +0 -0
  499. package/registry/examples/chip/native/tags.js +22 -0
  500. package/registry/examples/chip/native/tags.light.png +0 -0
  501. package/registry/examples/chip/native/tags.tsx +20 -0
  502. package/registry/examples/chip/tags.d.ts +4 -0
  503. package/registry/examples/chip/tags.js +26 -0
  504. package/registry/examples/chip/tags.tsx +23 -0
  505. package/registry/examples/dashboard-layout/today.d.ts +4 -0
  506. package/registry/examples/dashboard-layout/today.js +54 -0
  507. package/registry/examples/dashboard-layout/today.tsx +63 -0
  508. package/registry/examples/data-table/applicant-files.d.ts +4 -0
  509. package/registry/examples/data-table/applicant-files.js +24 -0
  510. package/registry/examples/data-table/applicant-files.tsx +23 -0
  511. package/registry/examples/data-table/bulk.d.ts +4 -0
  512. package/registry/examples/data-table/bulk.js +45 -0
  513. package/registry/examples/data-table/bulk.tsx +34 -0
  514. package/registry/examples/data-table/checks.d.ts +4 -0
  515. package/registry/examples/data-table/checks.js +25 -0
  516. package/registry/examples/data-table/checks.tsx +24 -0
  517. package/registry/examples/detail-layout/client.d.ts +4 -0
  518. package/registry/examples/detail-layout/client.js +40 -0
  519. package/registry/examples/detail-layout/client.tsx +39 -0
  520. package/registry/examples/detail-layout/new-invoice.d.ts +4 -0
  521. package/registry/examples/detail-layout/new-invoice.js +44 -0
  522. package/registry/examples/detail-layout/new-invoice.tsx +34 -0
  523. package/registry/examples/detail-layout/profile.d.ts +4 -0
  524. package/registry/examples/detail-layout/profile.js +26 -0
  525. package/registry/examples/detail-layout/profile.tsx +21 -0
  526. package/registry/examples/doodle/bird-sketch.d.ts +4 -0
  527. package/registry/examples/doodle/bird-sketch.js +11 -0
  528. package/registry/examples/doodle/bird-sketch.tsx +12 -0
  529. package/registry/examples/doodle/kinds.d.ts +4 -0
  530. package/registry/examples/doodle/kinds.js +17 -0
  531. package/registry/examples/doodle/kinds.tsx +14 -0
  532. package/registry/examples/doodle/margin-marks.d.ts +4 -0
  533. package/registry/examples/doodle/margin-marks.js +27 -0
  534. package/registry/examples/doodle/margin-marks.tsx +19 -0
  535. package/registry/examples/doodle/margin.d.ts +4 -0
  536. package/registry/examples/doodle/margin.js +17 -0
  537. package/registry/examples/doodle/margin.tsx +17 -0
  538. package/registry/examples/filter-bar/views.d.ts +4 -0
  539. package/registry/examples/filter-bar/views.js +39 -0
  540. package/registry/examples/filter-bar/views.tsx +30 -0
  541. package/registry/examples/grade-stamp/coverage.d.ts +4 -0
  542. package/registry/examples/grade-stamp/coverage.js +12 -0
  543. package/registry/examples/grade-stamp/coverage.tsx +8 -0
  544. package/registry/examples/grade-stamp/lighthouse.d.ts +4 -0
  545. package/registry/examples/grade-stamp/lighthouse.js +12 -0
  546. package/registry/examples/grade-stamp/lighthouse.tsx +14 -0
  547. package/registry/examples/kind-config-editor/derived.d.ts +4 -0
  548. package/registry/examples/kind-config-editor/derived.js +26 -0
  549. package/registry/examples/kind-config-editor/derived.tsx +16 -0
  550. package/registry/examples/kind-config-editor/native/status-set.d.ts +4 -0
  551. package/registry/examples/kind-config-editor/native/status-set.dark.png +0 -0
  552. package/registry/examples/kind-config-editor/native/status-set.js +22 -0
  553. package/registry/examples/kind-config-editor/native/status-set.light.png +0 -0
  554. package/registry/examples/kind-config-editor/native/status-set.tsx +19 -0
  555. package/registry/examples/kind-config-editor/native/tag-set.d.ts +4 -0
  556. package/registry/examples/kind-config-editor/native/tag-set.dark.png +0 -0
  557. package/registry/examples/kind-config-editor/native/tag-set.js +20 -0
  558. package/registry/examples/kind-config-editor/native/tag-set.light.png +0 -0
  559. package/registry/examples/kind-config-editor/native/tag-set.tsx +18 -0
  560. package/registry/examples/kind-config-editor/status-set.d.ts +4 -0
  561. package/registry/examples/kind-config-editor/status-set.js +29 -0
  562. package/registry/examples/kind-config-editor/status-set.tsx +25 -0
  563. package/registry/examples/kind-config-editor/tag-set.d.ts +4 -0
  564. package/registry/examples/kind-config-editor/tag-set.js +20 -0
  565. package/registry/examples/kind-config-editor/tag-set.tsx +18 -0
  566. package/registry/examples/markdown/native/basic.dark.png +0 -0
  567. package/registry/examples/markdown/native/basic.light.png +0 -0
  568. package/registry/examples/markdown/native/wide-table.d.ts +4 -0
  569. package/registry/examples/markdown/native/wide-table.dark.png +0 -0
  570. package/registry/examples/markdown/native/wide-table.js +23 -0
  571. package/registry/examples/markdown/native/wide-table.light.png +0 -0
  572. package/registry/examples/markdown/native/wide-table.tsx +22 -0
  573. package/registry/examples/markdown/wide-table.d.ts +4 -0
  574. package/registry/examples/markdown/wide-table.js +28 -0
  575. package/registry/examples/markdown/wide-table.tsx +23 -0
  576. package/registry/examples/nav-bar/family-product.js +2 -4
  577. package/registry/examples/nav-bar/family-product.tsx +3 -5
  578. package/registry/examples/notification-preferences/default.d.ts +4 -0
  579. package/registry/examples/notification-preferences/default.js +29 -0
  580. package/registry/examples/notification-preferences/default.tsx +28 -0
  581. package/registry/examples/profile-card/banner.d.ts +4 -0
  582. package/registry/examples/profile-card/banner.js +28 -0
  583. package/registry/examples/profile-card/banner.tsx +24 -0
  584. package/registry/examples/profile-card/native/banner.d.ts +4 -0
  585. package/registry/examples/profile-card/native/banner.dark.png +0 -0
  586. package/registry/examples/profile-card/native/banner.js +22 -0
  587. package/registry/examples/profile-card/native/banner.light.png +0 -0
  588. package/registry/examples/profile-card/native/banner.tsx +18 -0
  589. package/registry/examples/quota-meter/default.d.ts +4 -0
  590. package/registry/examples/quota-meter/default.js +26 -0
  591. package/registry/examples/quota-meter/default.tsx +20 -0
  592. package/registry/examples/quota-meter/full.d.ts +4 -0
  593. package/registry/examples/quota-meter/full.js +25 -0
  594. package/registry/examples/quota-meter/full.tsx +18 -0
  595. package/registry/examples/rail-nav/shortcuts.d.ts +4 -0
  596. package/registry/examples/rail-nav/shortcuts.js +49 -0
  597. package/registry/examples/rail-nav/shortcuts.tsx +40 -0
  598. package/registry/examples/retro-tv/cabinet.d.ts +4 -0
  599. package/registry/examples/retro-tv/cabinet.js +12 -0
  600. package/registry/examples/retro-tv/cabinet.tsx +7 -0
  601. package/registry/examples/retro-tv/portable.d.ts +4 -0
  602. package/registry/examples/retro-tv/portable.js +12 -0
  603. package/registry/examples/retro-tv/portable.tsx +7 -0
  604. package/registry/examples/signature/both.d.ts +4 -0
  605. package/registry/examples/signature/both.js +11 -0
  606. package/registry/examples/signature/both.tsx +6 -0
  607. package/registry/examples/signature/variants.d.ts +4 -0
  608. package/registry/examples/signature/variants.js +14 -0
  609. package/registry/examples/signature/variants.tsx +11 -0
  610. package/registry/examples/site-cahier/java-releases.d.ts +4 -0
  611. package/registry/examples/site-cahier/java-releases.js +33 -0
  612. package/registry/examples/site-cahier/java-releases.tsx +32 -0
  613. package/registry/examples/site-cahier/motion-lab.d.ts +4 -0
  614. package/registry/examples/site-cahier/motion-lab.js +32 -0
  615. package/registry/examples/site-cahier/motion-lab.tsx +29 -0
  616. package/registry/examples/site-cahier/ts-changelog.d.ts +4 -0
  617. package/registry/examples/site-cahier/ts-changelog.js +24 -0
  618. package/registry/examples/site-cahier/ts-changelog.tsx +20 -0
  619. package/registry/examples/site-cahier/ts-doc.d.ts +4 -0
  620. package/registry/examples/site-cahier/ts-doc.js +38 -0
  621. package/registry/examples/site-cahier/ts-doc.tsx +27 -0
  622. package/registry/examples/site-cahier/ui-home.d.ts +4 -0
  623. package/registry/examples/site-cahier/ui-home.js +46 -0
  624. package/registry/examples/site-cahier/ui-home.tsx +40 -0
  625. package/registry/examples/slot-picker/weeks.d.ts +4 -0
  626. package/registry/examples/slot-picker/weeks.js +45 -0
  627. package/registry/examples/slot-picker/weeks.tsx +28 -0
  628. package/registry/examples/speed-lines/hero.d.ts +4 -0
  629. package/registry/examples/speed-lines/hero.js +11 -0
  630. package/registry/examples/speed-lines/hero.tsx +12 -0
  631. package/registry/examples/speed-lines/streaks.d.ts +4 -0
  632. package/registry/examples/speed-lines/streaks.js +11 -0
  633. package/registry/examples/speed-lines/streaks.tsx +12 -0
  634. package/registry/examples/status-chip/default.d.ts +4 -0
  635. package/registry/examples/status-chip/default.js +35 -0
  636. package/registry/examples/status-chip/default.tsx +32 -0
  637. package/registry/examples/status-chip/native/default.d.ts +4 -0
  638. package/registry/examples/status-chip/native/default.dark.png +0 -0
  639. package/registry/examples/status-chip/native/default.js +26 -0
  640. package/registry/examples/status-chip/native/default.light.png +0 -0
  641. package/registry/examples/status-chip/native/default.tsx +20 -0
  642. package/registry/examples/stuck/card.d.ts +4 -0
  643. package/registry/examples/stuck/card.js +13 -0
  644. package/registry/examples/stuck/card.tsx +14 -0
  645. package/registry/examples/stuck/holds.d.ts +4 -0
  646. package/registry/examples/stuck/holds.js +12 -0
  647. package/registry/examples/stuck/holds.tsx +16 -0
  648. package/registry/examples/stuck/tag.d.ts +4 -0
  649. package/registry/examples/stuck/tag.js +12 -0
  650. package/registry/examples/stuck/tag.tsx +13 -0
  651. package/registry/examples/tabs/binder.d.ts +4 -0
  652. package/registry/examples/tabs/binder.js +22 -0
  653. package/registry/examples/tabs/binder.tsx +20 -0
  654. package/registry/examples/tabs/native/binder.d.ts +4 -0
  655. package/registry/examples/tabs/native/binder.dark.png +0 -0
  656. package/registry/examples/tabs/native/binder.js +26 -0
  657. package/registry/examples/tabs/native/binder.light.png +0 -0
  658. package/registry/examples/tabs/native/binder.tsx +22 -0
  659. package/registry/examples/tag-selector/creatable.d.ts +4 -0
  660. package/registry/examples/tag-selector/creatable.js +41 -0
  661. package/registry/examples/tag-selector/creatable.tsx +29 -0
  662. package/registry/examples/tag-selector/native/tags.d.ts +4 -0
  663. package/registry/examples/tag-selector/native/tags.dark.png +0 -0
  664. package/registry/examples/tag-selector/native/tags.js +19 -0
  665. package/registry/examples/tag-selector/native/tags.light.png +0 -0
  666. package/registry/examples/tag-selector/native/tags.tsx +19 -0
  667. package/registry/examples/versus-card/alternatives.d.ts +4 -0
  668. package/registry/examples/versus-card/alternatives.js +20 -0
  669. package/registry/examples/versus-card/alternatives.tsx +14 -0
  670. package/registry/examples/versus-card/releases.d.ts +4 -0
  671. package/registry/examples/versus-card/releases.js +35 -0
  672. package/registry/examples/versus-card/releases.tsx +29 -0
  673. package/registry/fab.json +1 -0
  674. package/registry/field.json +3 -2
  675. package/registry/file-upload.json +6 -11
  676. package/registry/filter-bar.json +209 -9
  677. package/registry/flock.json +3 -4
  678. package/registry/footnote.json +2 -3
  679. package/registry/force-update-screen.json +14 -5
  680. package/registry/form.json +5 -4
  681. package/registry/gallery-page.json +14 -5
  682. package/registry/genui.json +2 -2
  683. package/registry/glossary-term.json +1 -1
  684. package/registry/glossary.json +1 -1
  685. package/registry/glow-card.json +2 -2
  686. package/registry/goal-gauge.json +2 -1
  687. package/registry/grade-stamp.json +227 -0
  688. package/registry/header.json +1 -0
  689. package/registry/how-it-works-page.json +3 -5
  690. package/registry/image-cropper.json +13 -5
  691. package/registry/image-viewer.json +3 -4
  692. package/registry/index.json +612 -105
  693. package/registry/iso.json +1 -1
  694. package/registry/kanban.json +13 -5
  695. package/registry/kbd.json +1 -1
  696. package/registry/kind-config-editor.json +565 -0
  697. package/registry/kpi-explained.json +2 -2
  698. package/registry/landing-page.json +3 -5
  699. package/registry/landscape.json +13 -5
  700. package/registry/language-switch.json +1 -1
  701. package/registry/legal-page.json +1 -1
  702. package/registry/link-card.json +1 -1
  703. package/registry/list.json +2 -1
  704. package/registry/loader.json +2 -1
  705. package/registry/longform-page.json +1 -1
  706. package/registry/maintenance-screen.json +14 -5
  707. package/registry/map.json +3 -2
  708. package/registry/markdown.json +86 -9
  709. package/registry/marketing-layout.json +1 -1
  710. package/registry/marquee.json +1 -1
  711. package/registry/mascot-quote.json +1 -1
  712. package/registry/mascot-state.json +12 -11
  713. package/registry/mascots.json +2 -1
  714. package/registry/match-dialog.json +14 -5
  715. package/registry/media-capture.json +14 -5
  716. package/registry/media-gallery.json +3 -5
  717. package/registry/media-grid.json +1 -1
  718. package/registry/media-picker.json +2 -3
  719. package/registry/meta-row.json +2 -1
  720. package/registry/meter.json +4 -3
  721. package/registry/nav-bar.json +100 -9
  722. package/registry/next-actions.json +1 -1
  723. package/registry/notification-preferences.json +250 -0
  724. package/registry/number-ticker.json +2 -1
  725. package/registry/onboarding.json +1 -0
  726. package/registry/opening-hours.json +1 -1
  727. package/registry/otp-input.json +1 -0
  728. package/registry/page-header.json +2 -2
  729. package/registry/page-hero.json +1 -1
  730. package/registry/page-index.json +1 -1
  731. package/registry/page.json +3 -3
  732. package/registry/pagination.json +2 -1
  733. package/registry/permission-prompt.json +2 -2
  734. package/registry/photo-grid.json +4 -4
  735. package/registry/pointer-light.json +6 -2
  736. package/registry/popover.json +2 -2
  737. package/registry/pricing-page.json +4 -6
  738. package/registry/product-page.json +14 -5
  739. package/registry/profile-card.json +232 -8
  740. package/registry/progress.json +4 -3
  741. package/registry/promise-card.json +13 -5
  742. package/registry/pull-to-refresh.json +1 -0
  743. package/registry/quota-meter.json +308 -0
  744. package/registry/radio-group.json +4 -3
  745. package/registry/rail-nav.json +48 -10
  746. package/registry/recipes.json +1 -1
  747. package/registry/retro-tv.json +478 -0
  748. package/registry/router.json +3 -3
  749. package/registry/screen.json +1 -0
  750. package/registry/scroll-stage.json +14 -5
  751. package/registry/search-field.json +3 -2
  752. package/registry/section-backdrop.json +1 -1
  753. package/registry/segmented.json +1 -0
  754. package/registry/separator.json +2 -2
  755. package/registry/service-card.json +1 -1
  756. package/registry/settings-layout.json +2 -1
  757. package/registry/showcase.json +14 -5
  758. package/registry/signature.json +185 -0
  759. package/registry/site-cahier.json +548 -0
  760. package/registry/site-footer.json +3 -3
  761. package/registry/sites.json +2 -2
  762. package/registry/skeleton.json +2 -1
  763. package/registry/skip-link.json +1 -1
  764. package/registry/slider.json +5 -4
  765. package/registry/slot-picker.json +156 -10
  766. package/registry/slot.json +2 -2
  767. package/registry/specimen-tag.json +1 -1
  768. package/registry/speed-lines.json +174 -0
  769. package/registry/spinner.json +4 -3
  770. package/registry/splash-handoff.json +1 -0
  771. package/registry/split-view.json +1 -1
  772. package/registry/stage-banner.json +2 -3
  773. package/registry/stat.json +2 -2
  774. package/registry/status-chip.json +350 -0
  775. package/registry/status-page.json +13 -5
  776. package/registry/step-progress.json +2 -1
  777. package/registry/step-showcase.json +3 -5
  778. package/registry/stepper.json +2 -1
  779. package/registry/sticky-action.json +38 -8
  780. package/registry/stuck.json +219 -0
  781. package/registry/swipe-deck.json +14 -5
  782. package/registry/swipeable-row.json +1 -0
  783. package/registry/switch.json +3 -2
  784. package/registry/tab-bar.json +1 -0
  785. package/registry/tabs.json +154 -22
  786. package/registry/tag-input.json +1 -1
  787. package/registry/tag-selector.json +190 -12
  788. package/registry/taped-photo.json +1 -1
  789. package/registry/terminal-replay.json +14 -5
  790. package/registry/text-style.json +5 -5
  791. package/registry/theme.json +4 -3
  792. package/registry/toast.json +2 -1
  793. package/registry/toc.json +1 -1
  794. package/registry/tooltip.json +2 -2
  795. package/registry/tree-view.json +6 -2
  796. package/registry/txt.json +1 -0
  797. package/registry/update-prompt.json +14 -5
  798. package/registry/upload-queue.json +1 -1
  799. package/registry/verified-badge.json +6 -6
  800. package/registry/versus-card.json +194 -0
  801. package/registry/vertical-video.json +8 -3
  802. package/registry/video-player.json +5 -6
  803. package/registry/video-trimmer.json +13 -5
  804. package/registry/virtual.json +2 -2
  805. package/registry/waveform.json +4 -3
  806. package/dist/chunk-4LYKBSOG.js.map +0 -1
  807. package/dist/chunk-HHFWK2HH.js +0 -163
  808. package/dist/chunk-HHFWK2HH.js.map +0 -1
  809. package/dist/chunk-R3LTSMS5.js +0 -75
  810. package/dist/chunk-R3LTSMS5.js.map +0 -1
  811. package/dist/chunk-YGIN2YIY.js.map +0 -1
  812. package/dist/chunk-YHKTYFOQ.js.map +0 -1
  813. package/dist/chunk-ZQW7LF4Y.js +0 -179
  814. package/dist/chunk-ZQW7LF4Y.js.map +0 -1
@@ -184,7 +184,7 @@
184
184
  "files": [
185
185
  {
186
186
  "path": "meta.ts",
187
- "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 | \"agenda\"\n | \"account-settings\"\n | \"drop-overlay\"\n | \"upload-queue\"\n | \"achievement\"\n | \"anatomy-plate\"\n | \"bird-plate\"\n | \"taped-photo\"\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 | \"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\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}\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"
187
+ "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 | \"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\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"
188
188
  },
189
189
  {
190
190
  "path": "stat/index.ts",
@@ -196,7 +196,7 @@
196
196
  },
197
197
  {
198
198
  "path": "stat/stat.tsx",
199
- "content": "// Server-safe. A key figure: a label, the value in tabular digits, a hint, a trend. Every word is a prop.\nimport type * as React from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nexport const stat = tv({\n slots: {\n root: \"flex min-w-0 flex-col gap-1\",\n label: \"text-xs font-semibold text-fg-secondary\",\n value: \"font-display text-2xl font-black tabular-nums text-fg\",\n meta: \"flex flex-wrap items-center gap-x-2 gap-y-1 text-xs\",\n // The status tokens are too light for small text on a light surface: the words stay a text role, the arrow carries\n // the direction's colour.\n trend: \"inline-flex items-center gap-1 font-semibold text-fg [&>svg]:h-3.5 [&>svg]:w-3.5 [&>svg]:shrink-0\",\n hint: \"text-fg-secondary\",\n chart: \"mt-2 h-10 w-full min-w-0\",\n },\n variants: {\n trend: {\n up: { trend: \"[&>svg]:text-success\" },\n down: { trend: \"[&>svg]:text-danger\" },\n flat: { trend: \"[&>svg]:text-fg-secondary\" },\n },\n },\n});\n\nexport type StatTrend = \"up\" | \"down\" | \"flat\";\n\nconst ARROW: Record<StatTrend, string> = { up: \"M7 17 17 7M8 7h9v9\", down: \"M7 7l10 10M17 8v9H8\", flat: \"M5 12h14M13 6l6 6-6 6\" };\n\nexport type StatProps = Omit<React.ComponentProps<\"div\">, \"children\"> & {\n /** What the figure is (\"Revenue\"), above it. */\n label: React.ReactNode;\n /** The figure, formatted by the app, in tabular digits. */\n value: React.ReactNode;\n /** A line under the value: the period, the comparison. */\n hint?: React.ReactNode;\n /** The direction of the change; its arrow is decorative. */\n trend?: StatTrend;\n /** The change, in words, as read and shown (e.g. \"+12 % vs last week\") — the arrow alone says nothing. */\n trendLabel?: React.ReactNode;\n /** Under the figure: a `Sparkline` of @krizaka/charts (its own accessible summary), a `Meter`. */\n chart?: React.ReactNode;\n};\n\nexport function Stat({ label, value, hint, trend, trendLabel, chart, className, ...props }: StatProps) {\n const s = stat({ trend });\n return (\n <div data-trend={trend} className={s.root({ className })} {...props}>\n <p className={s.label()}>{label}</p>\n <p className={s.value()}>{value}</p>\n {(trendLabel || hint) && (\n <p className={s.meta()}>\n {trend && trendLabel && (\n <span className={s.trend()}>\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2.5\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden>\n <path d={ARROW[trend]} />\n </svg>\n {trendLabel}\n </span>\n )}\n {hint && <span className={s.hint()}>{hint}</span>}\n </p>\n )}\n {chart ? <div className={s.chart()}>{chart}</div> : null}\n </div>\n );\n}\n\nexport const statGrid = tv({\n base: \"grid w-full grid-cols-[repeat(auto-fit,minmax(var(--kz-stat-min,11rem),1fr))] overflow-hidden rounded-xl border border-border-default bg-surface-1\",\n variants: {\n divided: {\n true: \"gap-px bg-border-subtle [&>*]:bg-surface-1 [&>*]:p-5\",\n false: \"gap-6 p-5\",\n },\n },\n defaultVariants: { divided: true },\n});\n\nexport type StatGridProps = React.ComponentProps<\"div\"> & {\n /** Hairlines between the stats (default) or space only. */\n divided?: boolean;\n /** The narrowest a stat may be before the row wraps, in rem. Default 11. */\n minWidth?: number;\n};\n\n/** A row of key figures that wraps with the width: a dashboard's head. The stats are its children. */\nexport function StatGrid({ divided, minWidth = 11, className, style, ...props }: StatGridProps) {\n return <div className={statGrid({ divided, className })} style={{ ...style, [\"--kz-stat-min\" as string]: `${minWidth}rem` }} {...props} />;\n}\n"
199
+ "content": "// Server-safe. A key figure: a label, the value in tabular digits, a hint, a trend. Every word is a prop.\nimport type * as React from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nexport const stat = tv({\n slots: {\n root: \"flex min-w-0 flex-col gap-1\",\n label: \"text-xs font-semibold text-fg-secondary\",\n value: \"kz-stat-value font-display text-2xl font-black tabular-nums text-fg\",\n meta: \"flex flex-wrap items-center gap-x-2 gap-y-1 text-xs\",\n // The status tokens are too light for small text on a light surface: the words stay a text role, the arrow carries\n // the direction's colour.\n trend: \"inline-flex items-center gap-1 font-semibold text-fg [&>svg]:h-3.5 [&>svg]:w-3.5 [&>svg]:shrink-0\",\n hint: \"text-fg-secondary\",\n chart: \"mt-2 h-10 w-full min-w-0\",\n },\n variants: {\n trend: {\n up: { trend: \"[&>svg]:text-success\" },\n down: { trend: \"[&>svg]:text-danger\" },\n flat: { trend: \"[&>svg]:text-fg-secondary\" },\n },\n },\n});\n\nexport type StatTrend = \"up\" | \"down\" | \"flat\";\n\nconst ARROW: Record<StatTrend, string> = { up: \"M7 17 17 7M8 7h9v9\", down: \"M7 7l10 10M17 8v9H8\", flat: \"M5 12h14M13 6l6 6-6 6\" };\n\nexport type StatProps = Omit<React.ComponentProps<\"div\">, \"children\"> & {\n /** What the figure is (\"Revenue\"), above it. */\n label: React.ReactNode;\n /** The figure, formatted by the app, in tabular digits. */\n value: React.ReactNode;\n /** A line under the value: the period, the comparison. */\n hint?: React.ReactNode;\n /** The direction of the change; its arrow is decorative. */\n trend?: StatTrend;\n /** The change, in words, as read and shown (e.g. \"+12 % vs last week\") — the arrow alone says nothing. */\n trendLabel?: React.ReactNode;\n /** Under the figure: a `Sparkline` of @krizaka/charts (its own accessible summary), a `Meter`. */\n chart?: React.ReactNode;\n};\n\nexport function Stat({ label, value, hint, trend, trendLabel, chart, className, ...props }: StatProps) {\n const s = stat({ trend });\n return (\n <div data-trend={trend} className={s.root({ className })} {...props}>\n <p className={s.label()}>{label}</p>\n <p className={s.value()}>{value}</p>\n {(trendLabel || hint) && (\n <p className={s.meta()}>\n {trend && trendLabel && (\n <span className={s.trend()}>\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2.5\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden>\n <path d={ARROW[trend]} />\n </svg>\n {trendLabel}\n </span>\n )}\n {hint && <span className={s.hint()}>{hint}</span>}\n </p>\n )}\n {chart ? <div className={s.chart()}>{chart}</div> : null}\n </div>\n );\n}\n\nexport const statGrid = tv({\n base: \"grid w-full grid-cols-[repeat(auto-fit,minmax(var(--kz-stat-min,11rem),1fr))] overflow-hidden rounded-xl border border-border-default bg-surface-1\",\n variants: {\n divided: {\n true: \"gap-px bg-border-subtle [&>*]:bg-surface-1 [&>*]:p-5\",\n false: \"gap-6 p-5\",\n },\n },\n defaultVariants: { divided: true },\n});\n\nexport type StatGridProps = React.ComponentProps<\"div\"> & {\n /** Hairlines between the stats (default) or space only. */\n divided?: boolean;\n /** The narrowest a stat may be before the row wraps, in rem. Default 11. */\n minWidth?: number;\n};\n\n/** A row of key figures that wraps with the width: a dashboard's head. The stats are its children. */\nexport function StatGrid({ divided, minWidth = 11, className, style, ...props }: StatGridProps) {\n return <div className={statGrid({ divided, className })} style={{ ...style, [\"--kz-stat-min\" as string]: `${minWidth}rem` }} {...props} />;\n}\n"
200
200
  }
201
201
  ],
202
202
  "dependencies": [
@@ -0,0 +1,350 @@
1
+ {
2
+ "name": "status-chip",
3
+ "type": "primitive",
4
+ "title": "Status chip",
5
+ "summary": "A state of a status set (`@krizaka/organize`, krizaka-ts#89): its label in the person's language and its tone as a badge; read-only, or a menu of the moves the role may make — a second press to confirm, a reason picked from a list.",
6
+ "description": "A state of a status set (`@krizaka/organize`, krizaka-ts#89): its label in the person's language and its tone as a badge; read-only, or a menu of the moves the role may make — a second press to confirm, a reason picked from a list.",
7
+ "status": "beta",
8
+ "deprecated": null,
9
+ "category": "data-display",
10
+ "platforms": "both",
11
+ "parity": {
12
+ "web": {
13
+ "state": "yes"
14
+ },
15
+ "native": {
16
+ "state": "yes"
17
+ },
18
+ "desktop": {
19
+ "state": "yes"
20
+ }
21
+ },
22
+ "whenToUse": [
23
+ "The state of an entity whose kind has a status set the admin configures: an applicant file (« To decide → Selected | Declined »), a client, an invoice.",
24
+ "In a table column or a detail header: read-only for a derived set (an invoice's « Paid » comes from the ledger), editable where the role may move it."
25
+ ],
26
+ "whenNotToUse": [
27
+ {
28
+ "when": "For a status that is not a set of the product (an upload, a build, a plan).",
29
+ "use": "badge"
30
+ },
31
+ {
32
+ "when": "For a tag the person puts on a file (a category of their own).",
33
+ "use": "chip"
34
+ },
35
+ {
36
+ "when": "To choose among views of a list.",
37
+ "use": "tabs"
38
+ }
39
+ ],
40
+ "bestPractices": [
41
+ "Pass the kind's `StatusSet` as it is (`KindConfig.status`), the entity's state key and the person's role: the menu is `movesFrom(set, state, role)`, in the set's order — never your own list of moves.",
42
+ "A move that asks to be confirmed (`transition.confirm`) turns into « Confirm: … » on the first press. A move with `reasons` opens the list to pick from: there is never a free-text reason.",
43
+ "After a move that is not to a final state, offer an undo (a toast) with `undoOf(set, move, role)`; after a final state there is none.",
44
+ "A status never takes a tag's colour: the tone (neutral · accent · success · warning · danger) is a tint and a dot, and the label always says the state.",
45
+ "A status column sorts by `statusOrder(set)`, never alphabetically."
46
+ ],
47
+ "accessibility": {
48
+ "keyboard": [
49
+ {
50
+ "keys": "Enter / Space / Arrow Down",
51
+ "action": "Opens the menu of moves."
52
+ },
53
+ {
54
+ "keys": "Arrow keys",
55
+ "action": "Move between the moves; Arrow Right opens the reasons of a move."
56
+ },
57
+ {
58
+ "keys": "Enter",
59
+ "action": "Makes the move, or on a move to confirm, asks « Confirm: … » first."
60
+ },
61
+ {
62
+ "keys": "Esc",
63
+ "action": "Closes the menu and returns to the chip."
64
+ }
65
+ ],
66
+ "notes": [
67
+ "Read-only, it is plain text with a dot: the label says the state, the tone is never the only signal.",
68
+ "With moves it is a button named « Change the status, now … » that opens a Radix menu (arrows, typeahead, focus return).",
69
+ "The « Confirm: … » text is a polite live region."
70
+ ]
71
+ },
72
+ "related": [
73
+ "chip",
74
+ "badge",
75
+ "dropdown-menu",
76
+ "data-table",
77
+ "filter-bar"
78
+ ],
79
+ "web": {
80
+ "entry": "@krizaka/ui/status-chip",
81
+ "import": "import { StatusChip } from \"@krizaka/ui/status-chip\";",
82
+ "props": [
83
+ {
84
+ "component": "StatusChip",
85
+ "description": "The state of a status set as a badge; a menu of the allowed moves when the set, the role and `onMove` allow it.",
86
+ "props": [
87
+ {
88
+ "name": "locale",
89
+ "type": "\"fr\" | \"en\"",
90
+ "default": null,
91
+ "description": "The language the labels are read in.",
92
+ "required": true
93
+ },
94
+ {
95
+ "name": "role",
96
+ "type": "string",
97
+ "default": null,
98
+ "description": "The role of the person: the moves are the ones this role may make.",
99
+ "required": true
100
+ },
101
+ {
102
+ "name": "set",
103
+ "type": "StatusSet",
104
+ "default": null,
105
+ "description": "The kind's status set (`KindConfig.status`).",
106
+ "required": true
107
+ },
108
+ {
109
+ "name": "state",
110
+ "type": "string",
111
+ "default": null,
112
+ "description": "The key of the entity's state.",
113
+ "required": true
114
+ },
115
+ {
116
+ "name": "className",
117
+ "type": "string",
118
+ "default": null,
119
+ "description": "Classes merged on the badge.",
120
+ "required": false
121
+ },
122
+ {
123
+ "name": "labels",
124
+ "type": "Partial<StatusChipLabels>",
125
+ "default": null,
126
+ "description": "The words of the menu, passed translated.",
127
+ "required": false
128
+ },
129
+ {
130
+ "name": "onMove",
131
+ "type": "((move: StatusMove) => void)",
132
+ "default": null,
133
+ "description": "Called when a move is chosen (confirmed, with its reason when it asks for one). Without it the chip is read-only.",
134
+ "required": false
135
+ },
136
+ {
137
+ "name": "size",
138
+ "type": "\"sm\" | \"md\"",
139
+ "default": "sm",
140
+ "description": "sm · md.",
141
+ "required": false
142
+ }
143
+ ]
144
+ }
145
+ ],
146
+ "examples": [
147
+ {
148
+ "name": "default",
149
+ "title": "Status of an applicant file",
150
+ "description": "« To decide » with its moves for the owner (a second press for « Selected », a reason picked for « Declined »), the same state read-only for another role, and a derived status.",
151
+ "path": "examples/status-chip/default.tsx",
152
+ "module": "@krizaka/ui/registry/examples/status-chip/default",
153
+ "code": "\"use client\";\n\nimport { StatusChip, type StatusSet } from \"@krizaka/ui/status-chip\";\nimport * as React from \"react\";\n\nconst label = (fr: string, en: string) => ({ fr, en });\n// Applicant files of a fictitious landlord (« To decide → Selected | Declined »): a declined file is final, the reason is picked.\nconst files: StatusSet = {\n key: \"applicant-file\", label: label(\"Dossier\", \"File\"), mode: \"editable\", initial: \"to-decide\",\n states: [\n { key: \"to-decide\", label: label(\"À décider\", \"To decide\"), tone: \"accent\" },\n { key: \"selected\", label: label(\"Retenu\", \"Selected\"), tone: \"success\", final: true },\n { key: \"declined\", label: label(\"Non retenu\", \"Declined\"), tone: \"neutral\", final: true },\n ],\n transitions: [\n { from: \"to-decide\", to: \"selected\", roles: [\"owner\"], confirm: true },\n { from: \"to-decide\", to: \"declined\", roles: [\"owner\"], reasons: [{ key: \"incomplete\", label: label(\"Dossier incomplet\", \"Incomplete file\") }, { key: \"other\", label: label(\"Autre candidat\", \"Another applicant\") }] },\n ],\n};\nconst paid: StatusSet = { ...files, key: \"invoice\", mode: \"derived\", states: [{ key: \"paid\", label: label(\"Payée\", \"Paid\"), tone: \"success\" }], transitions: [] };\n\nexport default function StatusChipDefault() {\n const [state, setState] = React.useState(\"to-decide\");\n const move = ({ transition }: { transition: { to: string } }) => setState(transition.to);\n return (\n <div className=\"flex flex-wrap items-center gap-3\">\n <StatusChip set={files} state={state} role=\"owner\" locale=\"en\" onMove={move} />\n <StatusChip set={files} state=\"to-decide\" role=\"viewer\" locale=\"en\" onMove={move} />\n <StatusChip set={paid} state=\"paid\" role=\"owner\" locale=\"en\" onMove={move} />\n </div>\n );\n}\n"
154
+ }
155
+ ]
156
+ },
157
+ "native": {
158
+ "entry": "@krizaka/ui/native",
159
+ "import": "import { StatusChip } from \"@krizaka/ui/native\";",
160
+ "differences": [
161
+ "It takes the state's label, tone and moves already resolved (`movesFrom` of `@krizaka/organize/contract`, in the person's language): /native adds no dependency.",
162
+ "The menu is an action sheet; a reason is a second sheet."
163
+ ],
164
+ "deprecated": null,
165
+ "props": [
166
+ {
167
+ "component": "StatusChip",
168
+ "description": "The state of a status set; a sheet of the allowed moves when there are some.",
169
+ "props": [
170
+ {
171
+ "name": "label",
172
+ "type": "string",
173
+ "default": null,
174
+ "description": "The state's label, in the language of the person.",
175
+ "required": true
176
+ },
177
+ {
178
+ "name": "cancelLabel",
179
+ "type": "string",
180
+ "default": "Cancel",
181
+ "description": "The sheet's cancel button (\"Cancel\").",
182
+ "required": false
183
+ },
184
+ {
185
+ "name": "confirmLabel",
186
+ "type": "((target: string) => string)",
187
+ "default": "(target) => `Confirm: ${target}`",
188
+ "description": "The second press: `(target) => \"Confirm: \" + target`.",
189
+ "required": false
190
+ },
191
+ {
192
+ "name": "menuLabel",
193
+ "type": "((state: string) => string)",
194
+ "default": "(state) => `Change the status, now ${state}`",
195
+ "description": "The sheet's title and the button's name: `(state) => \"Change the status, now \" + state`.",
196
+ "required": false
197
+ },
198
+ {
199
+ "name": "moves",
200
+ "type": "readonly StatusMoveOption[]",
201
+ "default": "[]",
202
+ "description": "The moves the role may make from this state (empty or missing: the chip is read-only).",
203
+ "required": false
204
+ },
205
+ {
206
+ "name": "onMove",
207
+ "type": "((to: string, reason: string | null) => void)",
208
+ "default": null,
209
+ "description": "Called with the target and the reason picked (or null).",
210
+ "required": false
211
+ },
212
+ {
213
+ "name": "reasonLabel",
214
+ "type": "((target: string) => string)",
215
+ "default": "(target) => `${target} — pick a reason`",
216
+ "description": "The sheet of reasons: `(target) => target + \" — pick a reason\"`.",
217
+ "required": false
218
+ },
219
+ {
220
+ "name": "size",
221
+ "type": "\"sm\" | \"md\"",
222
+ "default": "sm",
223
+ "description": "sm (default) · md.",
224
+ "required": false
225
+ },
226
+ {
227
+ "name": "tone",
228
+ "type": "\"neutral\" | \"accent\" | \"success\" | \"warning\" | \"danger\"",
229
+ "default": "neutral",
230
+ "description": "The state's tone: a badge tone.",
231
+ "required": false
232
+ }
233
+ ]
234
+ }
235
+ ],
236
+ "examples": [
237
+ {
238
+ "name": "default",
239
+ "title": "Status of an applicant file",
240
+ "description": "A state and the sheet of its moves (confirm, reason); a derived status read-only.",
241
+ "path": "examples/status-chip/native/default.tsx",
242
+ "module": "@krizaka/ui/registry/examples/status-chip/native/default",
243
+ "code": "import { StatusChip } from \"@krizaka/ui/native\";\nimport { useState } from \"react\";\nimport { View } from \"react-native\";\n\n// Applicant files of a fictitious landlord: « To decide » opens the moves of the role; a derived status is read-only.\nexport default function NativeStatusChipDefault() {\n const [state, setState] = useState<\"to-decide\" | \"selected\" | \"declined\">(\"to-decide\");\n const open = state === \"to-decide\";\n return (\n <View style={{ gap: 12, alignItems: \"flex-start\" }}>\n <StatusChip\n label={{ \"to-decide\": \"To decide\", selected: \"Selected\", declined: \"Declined\" }[state]}\n tone={open ? \"accent\" : state === \"selected\" ? \"success\" : \"neutral\"}\n moves={open ? [{ key: \"selected\", label: \"Selected\", confirm: true }, { key: \"declined\", label: \"Declined\", reasons: [{ key: \"incomplete\", label: \"Incomplete file\" }] }] : []}\n onMove={(to) => setState(to as typeof state)}\n />\n <StatusChip label=\"Paid\" tone=\"success\" />\n </View>\n );\n}\n",
244
+ "screenshots": {
245
+ "dark": "examples/status-chip/native/default.dark.png",
246
+ "light": "examples/status-chip/native/default.light.png"
247
+ }
248
+ }
249
+ ]
250
+ },
251
+ "files": [
252
+ {
253
+ "path": "glyphs.tsx",
254
+ "content": "// The small line glyphs the data and media primitives draw (play, volume, search, chevrons…): decorative, 24-unit\n// box, `currentColor`, sized by the caller's class. Shared by the entries that need them; never exported on its own —\n// a product draws its own icons with @krizaka/icons.\nimport type * as React from \"react\";\n\ntype GlyphProps = { className?: string };\n\nfunction Glyph({ className = \"h-4 w-4\", fill, children }: GlyphProps & { fill?: boolean; children: React.ReactNode }) {\n return (\n <svg\n viewBox=\"0 0 24 24\"\n className={className}\n fill={fill ? \"currentColor\" : \"none\"}\n stroke={fill ? \"none\" : \"currentColor\"}\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden\n focusable=\"false\"\n >\n {children}\n </svg>\n );\n}\n\nexport const PlayGlyph = (p: GlyphProps) => (\n <Glyph {...p} fill>\n <path d=\"M8 5.5v13a1 1 0 0 0 1.5.86l10.4-6.5a1 1 0 0 0 0-1.72L9.5 4.64A1 1 0 0 0 8 5.5Z\" />\n </Glyph>\n);\nexport const PauseGlyph = (p: GlyphProps) => (\n <Glyph {...p} fill>\n <rect x=\"6\" y=\"5\" width=\"4\" height=\"14\" rx=\"1\" />\n <rect x=\"14\" y=\"5\" width=\"4\" height=\"14\" rx=\"1\" />\n </Glyph>\n);\nexport const VolumeGlyph = ({ muted, ...p }: GlyphProps & { muted?: boolean }) => (\n <Glyph {...p}>\n <path d=\"M11 5 6 9H3v6h3l5 4V5Z\" />\n {muted ? <path d=\"m22 9-6 6m0-6 6 6\" /> : <path d=\"M15.5 8.5a5 5 0 0 1 0 7M18.5 5.5a9 9 0 0 1 0 13\" />}\n </Glyph>\n);\nexport const FullscreenGlyph = ({ exit, ...p }: GlyphProps & { exit?: boolean }) => (\n <Glyph {...p}>\n {exit ? <path d=\"M9 4v5H4m11-5v5h5M9 20v-5H4m11 5v-5h5\" /> : <path d=\"M4 9V4h5m6 0h5v5M4 15v5h5m11-5v5h-5\" />}\n </Glyph>\n);\nexport const CaptionsGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <rect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"2\" />\n <path d=\"M10 10.5a2 2 0 1 0 0 3M17 10.5a2 2 0 1 0 0 3\" />\n </Glyph>\n);\nexport const PipGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <rect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"2\" />\n <rect x=\"12\" y=\"12\" width=\"6\" height=\"4\" rx=\"1\" />\n </Glyph>\n);\nexport const SearchGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <circle cx=\"11\" cy=\"11\" r=\"7\" />\n <path d=\"m20 20-3.5-3.5\" />\n </Glyph>\n);\nexport const CloseGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <path d=\"M18 6 6 18M6 6l12 12\" />\n </Glyph>\n);\nexport const ChevronGlyph = ({ direction = \"down\", ...p }: GlyphProps & { direction?: \"left\" | \"right\" | \"up\" | \"down\" }) => (\n <Glyph {...p}>\n <path d={{ left: \"m15 6-6 6 6 6\", right: \"m9 6 6 6-6 6\", up: \"m6 15 6-6 6 6\", down: \"m6 9 6 6 6-6\" }[direction]} />\n </Glyph>\n);\nexport const CheckGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <path d=\"M20 6 9 17l-5-5\" />\n </Glyph>\n);\nexport const PlusGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <path d=\"M12 5v14M5 12h14\" />\n </Glyph>\n);\nexport const CalendarGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <rect x=\"3\" y=\"5\" width=\"18\" height=\"16\" rx=\"2\" />\n <path d=\"M3 10h18M8 3v4M16 3v4\" />\n </Glyph>\n);\nexport const UploadGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <path d=\"M12 16V4m0 0L7 9m5-5 5 5\" />\n <path d=\"M4 16v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2\" />\n </Glyph>\n);\nexport const FileGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <path d=\"M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8l-5-5Z\" />\n <path d=\"M14 3v5h5\" />\n </Glyph>\n);\nexport const CameraGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <path d=\"M4 8h3l2-3h6l2 3h3a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1Z\" />\n <circle cx=\"12\" cy=\"13.5\" r=\"3.5\" />\n </Glyph>\n);\nexport const FlipGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <path d=\"M4 12a8 8 0 0 1 14-5.3M20 12a8 8 0 0 1-14 5.3\" />\n <path d=\"M18 3v4h-4M6 21v-4h4\" />\n </Glyph>\n);\nexport const RetryGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <path d=\"M4 12a8 8 0 1 0 2.3-5.7L4 8.5\" />\n <path d=\"M4 4v4.5h4.5\" />\n </Glyph>\n);\nexport const SortGlyph = ({ direction, ...p }: GlyphProps & { direction?: \"ascending\" | \"descending\" }) => (\n <Glyph {...p}>\n {direction === \"ascending\" ? <path d=\"m7 14 5-5 5 5\" /> : direction === \"descending\" ? <path d=\"m7 10 5 5 5-5\" /> : <path d=\"m8 9 4-4 4 4M8 15l4 4 4-4\" />}\n </Glyph>\n);\nexport const ArrowGlyph = ({ direction = \"right\", ...p }: GlyphProps & { direction?: \"left\" | \"right\" }) => (\n <Glyph {...p}>\n <path d={direction === \"left\" ? \"M19 12H5m0 0 6-6m-6 6 6 6\" : \"M5 12h14m0 0-6-6m6 6-6 6\"} />\n </Glyph>\n);\nexport const ExternalGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <path d=\"M14 4h6v6M20 4l-9 9\" />\n <path d=\"M18 14v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4\" />\n </Glyph>\n);\nexport const WarningGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <path d=\"M12 4 2.5 20h19L12 4Z\" />\n <path d=\"M12 10v4M12 17.2v.1\" />\n </Glyph>\n);\nexport const CopyGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <rect x=\"9\" y=\"9\" width=\"11\" height=\"11\" rx=\"2\" />\n <path d=\"M15 9V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h3\" />\n </Glyph>\n);\n"
255
+ },
256
+ {
257
+ "path": "meta.ts",
258
+ "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 | \"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\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"
259
+ },
260
+ {
261
+ "path": "status-chip/index.ts",
262
+ "content": "/** @krizaka/ui/status-chip — `StatusChip`: a state of a status set (`@krizaka/organize`), read-only or a menu of the moves the role may make. Client (\"use client\"). */\nexport { StatusChip, type StatusChipLabels, type StatusChipProps, type StatusMove, type StatusSet, type StatusTone, type StatusTransition } from \"./status-chip\";\n"
263
+ },
264
+ {
265
+ "path": "status-chip/meta.ts",
266
+ "content": "import type { ComponentMeta } from \"../meta\";\n\nexport const meta = {\n title: \"Status chip\",\n summary:\n \"A state of a status set (`@krizaka/organize`, krizaka-ts#89): its label in the person's language and its tone as a badge; read-only, or a menu of the moves the role may make — a second press to confirm, a reason picked from a list.\",\n status: \"beta\",\n category: \"data-display\",\n platforms: \"both\",\n parity: { desktop: \"web\" },\n whenToUse: [\n \"The state of an entity whose kind has a status set the admin configures: an applicant file (« To decide → Selected | Declined »), a client, an invoice.\",\n \"In a table column or a detail header: read-only for a derived set (an invoice's « Paid » comes from the ledger), editable where the role may move it.\",\n ],\n whenNotToUse: [\n { when: \"For a status that is not a set of the product (an upload, a build, a plan).\", use: \"badge\" },\n { when: \"For a tag the person puts on a file (a category of their own).\", use: \"chip\" },\n { when: \"To choose among views of a list.\", use: \"tabs\" },\n ],\n bestPractices: [\n \"Pass the kind's `StatusSet` as it is (`KindConfig.status`), the entity's state key and the person's role: the menu is `movesFrom(set, state, role)`, in the set's order — never your own list of moves.\",\n \"A move that asks to be confirmed (`transition.confirm`) turns into « Confirm: … » on the first press. A move with `reasons` opens the list to pick from: there is never a free-text reason.\",\n \"After a move that is not to a final state, offer an undo (a toast) with `undoOf(set, move, role)`; after a final state there is none.\",\n \"A status never takes a tag's colour: the tone (neutral · accent · success · warning · danger) is a tint and a dot, and the label always says the state.\",\n \"A status column sorts by `statusOrder(set)`, never alphabetically.\",\n ],\n accessibility: {\n keyboard: [\n { keys: \"Enter / Space / Arrow Down\", action: \"Opens the menu of moves.\" },\n { keys: \"Arrow keys\", action: \"Move between the moves; Arrow Right opens the reasons of a move.\" },\n { keys: \"Enter\", action: \"Makes the move, or on a move to confirm, asks « Confirm: … » first.\" },\n { keys: \"Esc\", action: \"Closes the menu and returns to the chip.\" },\n ],\n notes: [\n \"Read-only, it is plain text with a dot: the label says the state, the tone is never the only signal.\",\n \"With moves it is a button named « Change the status, now … » that opens a Radix menu (arrows, typeahead, focus return).\",\n \"The « Confirm: … » text is a polite live region.\",\n ],\n },\n related: [\"chip\", \"badge\", \"dropdown-menu\", \"data-table\", \"filter-bar\"],\n web: {\n imports: [\"StatusChip\"],\n examples: [\n { name: \"default\", title: \"Status of an applicant file\", description: \"« To decide » with its moves for the owner (a second press for « Selected », a reason picked for « Declined »), the same state read-only for another role, and a derived status.\" },\n ],\n },\n native: {\n imports: [\"StatusChip\"],\n differences: [\n \"It takes the state's label, tone and moves already resolved (`movesFrom` of `@krizaka/organize/contract`, in the person's language): /native adds no dependency.\",\n \"The menu is an action sheet; a reason is a second sheet.\",\n ],\n examples: [{ name: \"default\", title: \"Status of an applicant file\", description: \"A state and the sheet of its moves (confirm, reason); a derived status read-only.\" }],\n },\n} satisfies ComponentMeta;\n"
267
+ },
268
+ {
269
+ "path": "status-chip/status-chip.tsx",
270
+ "content": "// Client (a Radix menu). A state of a status set (krizaka-ts#89, `@krizaka/organize`): the set says the states (label in\n// both languages, tone, final) and the transitions (who may move, whether a second press confirms, which reasons may be\n// picked). Read-only when the set is derived (an invoice's « paid » comes from the ledger), when no move is allowed to\n// the role, or when nobody listens (`onMove`); otherwise a menu of the moves the role may make, in the set's order. A\n// reason is picked from a list, never typed. The tone is a tint and a dot: the label always says the state.\nimport { movesFrom, stateOf,type StatusSet, type StatusTone, type StatusTransition } from \"@krizaka/organize/contract\";\nimport { DropdownMenu as MenuPrimitive } from \"radix-ui\";\nimport * as React from \"react\";\n\nimport { badgeVariants } from \"../badge\";\nimport { cn } from \"../cn\";\nimport { DropdownMenu } from \"../dropdown-menu\";\nimport { ChevronGlyph } from \"../glyphs\";\n\nexport type { StatusSet, StatusTone, StatusTransition };\n\nexport type StatusMove = {\n /** The transition the person chose. */\n transition: StatusTransition;\n /** The key of the reason picked from the transition's list, or null when it has none. */\n reason: string | null;\n};\n\nexport type StatusChipLabels = {\n /** The menu's accessible name: `(state) => \"Change the status, now \" + state`. */\n menu: (state: string) => string;\n /** The item that waits for a second press: `(target) => \"Confirm: \" + target`. */\n confirm: (target: string) => string;\n /** The submenu that asks for a reason: `(target) => target + \" — pick a reason\"`. */\n reason: (target: string) => string;\n};\n\nconst defaultLabels: StatusChipLabels = {\n menu: (state) => `Change the status, now ${state}`,\n confirm: (target) => `Confirm: ${target}`,\n reason: (target) => `${target} — pick a reason`,\n};\n\nexport type StatusChipProps = {\n /** The kind's status set (`KindConfig.status`). */\n set: StatusSet;\n /** The key of the entity's state. */\n state: string;\n /** The role of the person: the moves are the ones this role may make. */\n role: string;\n /** The language the labels are read in. */\n locale: \"fr\" | \"en\";\n /** Called when a move is chosen (confirmed, with its reason when it asks for one). Without it the chip is read-only. */\n onMove?: (move: StatusMove) => void;\n /** The words of the menu, passed translated. */\n labels?: Partial<StatusChipLabels>;\n /**\n * sm · md.\n * @default \"sm\"\n */\n size?: \"sm\" | \"md\";\n /** Classes merged on the badge. */\n className?: string;\n};\n\n/** The state of a status set as a badge; a menu of the allowed moves when the set, the role and `onMove` allow it. */\nexport function StatusChip({ set, state, role, locale, onMove, labels: given, size = \"sm\", className }: StatusChipProps) {\n const labels = { ...defaultLabels, ...given };\n const current = stateOf(set, state);\n const text = current ? current.label[locale] : state;\n const tone = current?.tone ?? \"neutral\";\n const moves = onMove && set.mode === \"editable\" ? movesFrom(set, state, role) : [];\n const [armed, setArmed] = React.useState<string | null>(null);\n const [open, setOpen] = React.useState(false);\n const label = (key: string) => stateOf(set, key)?.label[locale] ?? key;\n\n if (moves.length === 0) {\n return (\n <span data-status={state} data-tone={tone} className={badgeVariants({ tone, size, className })}>\n <span data-dot=\"\" aria-hidden className=\"h-1.5 w-1.5 rounded-full bg-current\" />\n {text}\n </span>\n );\n }\n\n const choose = (move: StatusTransition, reason: string | null) => {\n setArmed(null);\n setOpen(false);\n onMove?.({ transition: move, reason });\n };\n\n return (\n <MenuPrimitive.Root\n open={open}\n onOpenChange={(next) => {\n setOpen(next);\n if (!next) setArmed(null);\n }}\n modal={false}\n >\n <MenuPrimitive.Trigger\n aria-label={labels.menu(text)}\n data-status={state}\n data-tone={tone}\n className={cn(\n badgeVariants({ tone, size }),\n \"cursor-pointer transition-colors hover:brightness-110 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring\",\n className,\n )}\n >\n <span data-dot=\"\" aria-hidden className=\"h-1.5 w-1.5 rounded-full bg-current\" />\n {text}\n <ChevronGlyph className=\"-mr-0.5 h-3.5 w-3.5\" />\n </MenuPrimitive.Trigger>\n <DropdownMenu.Content align=\"start\" aria-label={labels.menu(text)}>\n {moves.map((move) => {\n const target = label(move.to);\n const reasons = move.reasons ?? [];\n if (reasons.length > 0) {\n return (\n <DropdownMenu.Sub key={move.to}>\n <DropdownMenu.SubTrigger aria-label={labels.reason(target)}>{target}</DropdownMenu.SubTrigger>\n <DropdownMenu.SubContent>\n {reasons.map((reason) => (\n <DropdownMenu.Item key={reason.key} onSelect={() => choose(move, reason.key)}>\n {reason.label[locale]}\n </DropdownMenu.Item>\n ))}\n </DropdownMenu.SubContent>\n </DropdownMenu.Sub>\n );\n }\n const waiting = move.confirm && armed === move.to;\n return (\n <DropdownMenu.Item\n key={move.to}\n data-armed={waiting ? \"\" : undefined}\n className={waiting ? \"font-semibold text-fg-accent\" : undefined}\n onSelect={(event) => {\n if (move.confirm && !waiting) {\n // The first press asks, the second one moves: the menu stays open and says so.\n event.preventDefault();\n setArmed(move.to);\n return;\n }\n choose(move, null);\n }}\n >\n <span aria-live=\"polite\">{waiting ? labels.confirm(target) : target}</span>\n </DropdownMenu.Item>\n );\n })}\n </DropdownMenu.Content>\n </MenuPrimitive.Root>\n );\n}\n"
271
+ }
272
+ ],
273
+ "dependencies": [
274
+ "@krizaka/organize@^0.4.0",
275
+ "radix-ui@^1.8.1"
276
+ ],
277
+ "registryDependencies": [
278
+ "badge",
279
+ "cn",
280
+ "dropdown-menu"
281
+ ],
282
+ "demo": {
283
+ "path": "examples/status-chip/default.tsx",
284
+ "content": "\"use client\";\n\nimport { StatusChip, type StatusSet } from \"@krizaka/ui/status-chip\";\nimport * as React from \"react\";\n\nconst label = (fr: string, en: string) => ({ fr, en });\n// Applicant files of a fictitious landlord (« To decide → Selected | Declined »): a declined file is final, the reason is picked.\nconst files: StatusSet = {\n key: \"applicant-file\", label: label(\"Dossier\", \"File\"), mode: \"editable\", initial: \"to-decide\",\n states: [\n { key: \"to-decide\", label: label(\"À décider\", \"To decide\"), tone: \"accent\" },\n { key: \"selected\", label: label(\"Retenu\", \"Selected\"), tone: \"success\", final: true },\n { key: \"declined\", label: label(\"Non retenu\", \"Declined\"), tone: \"neutral\", final: true },\n ],\n transitions: [\n { from: \"to-decide\", to: \"selected\", roles: [\"owner\"], confirm: true },\n { from: \"to-decide\", to: \"declined\", roles: [\"owner\"], reasons: [{ key: \"incomplete\", label: label(\"Dossier incomplet\", \"Incomplete file\") }, { key: \"other\", label: label(\"Autre candidat\", \"Another applicant\") }] },\n ],\n};\nconst paid: StatusSet = { ...files, key: \"invoice\", mode: \"derived\", states: [{ key: \"paid\", label: label(\"Payée\", \"Paid\"), tone: \"success\" }], transitions: [] };\n\nexport default function StatusChipDefault() {\n const [state, setState] = React.useState(\"to-decide\");\n const move = ({ transition }: { transition: { to: string } }) => setState(transition.to);\n return (\n <div className=\"flex flex-wrap items-center gap-3\">\n <StatusChip set={files} state={state} role=\"owner\" locale=\"en\" onMove={move} />\n <StatusChip set={files} state=\"to-decide\" role=\"viewer\" locale=\"en\" onMove={move} />\n <StatusChip set={paid} state=\"paid\" role=\"owner\" locale=\"en\" onMove={move} />\n </div>\n );\n}\n"
285
+ },
286
+ "props": [
287
+ {
288
+ "component": "StatusChip",
289
+ "description": "The state of a status set as a badge; a menu of the allowed moves when the set, the role and `onMove` allow it.",
290
+ "props": [
291
+ {
292
+ "name": "locale",
293
+ "type": "\"fr\" | \"en\"",
294
+ "default": null,
295
+ "description": "The language the labels are read in.",
296
+ "required": true
297
+ },
298
+ {
299
+ "name": "role",
300
+ "type": "string",
301
+ "default": null,
302
+ "description": "The role of the person: the moves are the ones this role may make.",
303
+ "required": true
304
+ },
305
+ {
306
+ "name": "set",
307
+ "type": "StatusSet",
308
+ "default": null,
309
+ "description": "The kind's status set (`KindConfig.status`).",
310
+ "required": true
311
+ },
312
+ {
313
+ "name": "state",
314
+ "type": "string",
315
+ "default": null,
316
+ "description": "The key of the entity's state.",
317
+ "required": true
318
+ },
319
+ {
320
+ "name": "className",
321
+ "type": "string",
322
+ "default": null,
323
+ "description": "Classes merged on the badge.",
324
+ "required": false
325
+ },
326
+ {
327
+ "name": "labels",
328
+ "type": "Partial<StatusChipLabels>",
329
+ "default": null,
330
+ "description": "The words of the menu, passed translated.",
331
+ "required": false
332
+ },
333
+ {
334
+ "name": "onMove",
335
+ "type": "((move: StatusMove) => void)",
336
+ "default": null,
337
+ "description": "Called when a move is chosen (confirmed, with its reason when it asks for one). Without it the chip is read-only.",
338
+ "required": false
339
+ },
340
+ {
341
+ "name": "size",
342
+ "type": "\"sm\" | \"md\"",
343
+ "default": "sm",
344
+ "description": "sm · md.",
345
+ "required": false
346
+ }
347
+ ]
348
+ }
349
+ ]
350
+ }