@krizaka/ui 4.4.0 → 4.5.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 (408) hide show
  1. package/README.md +1 -0
  2. package/dist/account-menu.d.ts +1 -1
  3. package/dist/account-menu.js +1 -1
  4. package/dist/account-menu.js.map +1 -1
  5. package/dist/account-settings.d.ts +1 -1
  6. package/dist/account-settings.js +13 -6
  7. package/dist/account-settings.js.map +1 -1
  8. package/dist/agenda.d.ts +1 -1
  9. package/dist/agenda.js +2 -1
  10. package/dist/agenda.js.map +1 -1
  11. package/dist/analysis-report.js +19 -11
  12. package/dist/analysis-report.js.map +1 -1
  13. package/dist/app-frame.d.ts +1 -1
  14. package/dist/app-frame.js.map +1 -1
  15. package/dist/app-header/search.js +2 -2
  16. package/dist/app-header/search.js.map +1 -1
  17. package/dist/avatar/defaults.js +3 -1
  18. package/dist/avatar/defaults.js.map +1 -1
  19. package/dist/avatar.js +3 -1
  20. package/dist/avatar.js.map +1 -1
  21. package/dist/bird-plate.js +8 -2
  22. package/dist/bird-plate.js.map +1 -1
  23. package/dist/chapter.js +7 -4
  24. package/dist/chapter.js.map +1 -1
  25. package/dist/chat.js +1 -1
  26. package/dist/chip.d.ts +1 -1
  27. package/dist/chip.js +1 -1
  28. package/dist/{chunk-SNSQLGGS.js → chunk-5VZ37TY3.js} +1 -1
  29. package/dist/{chunk-XWJDBQU7.js.map → chunk-5VZ37TY3.js.map} +1 -1
  30. package/dist/{chunk-MTVX4RRF.js → chunk-HP7BDMVK.js} +11 -3
  31. package/dist/chunk-HP7BDMVK.js.map +1 -0
  32. package/dist/{chunk-PK3L6WQT.js → chunk-LNAAWT4Y.js} +4 -2
  33. package/dist/{chunk-PK3L6WQT.js.map → chunk-LNAAWT4Y.js.map} +1 -1
  34. package/dist/{chunk-UIP3WX5O.js → chunk-MDSP7DJR.js} +2 -2
  35. package/dist/chunk-MDSP7DJR.js.map +1 -0
  36. package/dist/{chunk-IEGTRCDI.js → chunk-NQENOT6L.js} +2 -2
  37. package/dist/{chunk-IEGTRCDI.js.map → chunk-NQENOT6L.js.map} +1 -1
  38. package/dist/{chunk-FM42KOAU.js → chunk-P7AFIKWG.js} +5 -3
  39. package/dist/chunk-P7AFIKWG.js.map +1 -0
  40. package/dist/{chunk-BCD2CRFG.js → chunk-PJNR4NTS.js} +2 -2
  41. package/dist/chunk-PJNR4NTS.js.map +1 -0
  42. package/dist/{chunk-ZFR6ZNXD.js → chunk-PVQ2KKPZ.js} +1 -1
  43. package/dist/chunk-PVQ2KKPZ.js.map +1 -0
  44. package/dist/{chunk-U4XTZMB7.js → chunk-QA3WETWT.js} +1 -1
  45. package/dist/{chunk-U4XTZMB7.js.map → chunk-QA3WETWT.js.map} +1 -1
  46. package/dist/{chunk-YXETEQQJ.js → chunk-SG2RKUVJ.js} +2 -2
  47. package/dist/{chunk-EOWV6BNQ.js → chunk-TXFX4PMN.js} +4 -2
  48. package/dist/{chunk-EOWV6BNQ.js.map → chunk-TXFX4PMN.js.map} +1 -1
  49. package/dist/{chunk-XWJDBQU7.js → chunk-V5RO6JYI.js} +1 -1
  50. package/dist/{chunk-SNSQLGGS.js.map → chunk-V5RO6JYI.js.map} +1 -1
  51. package/dist/{chunk-VUD4IEVJ.js → chunk-VZ6ZALIJ.js} +1 -1
  52. package/dist/chunk-VZ6ZALIJ.js.map +1 -0
  53. package/dist/{chunk-2DHL7NJW.js → chunk-XVRKKYWU.js} +5 -3
  54. package/dist/{chunk-2DHL7NJW.js.map → chunk-XVRKKYWU.js.map} +1 -1
  55. package/dist/{chunk-CDNOT2KR.js → chunk-YTYNKMNS.js} +1 -1
  56. package/dist/chunk-YTYNKMNS.js.map +1 -0
  57. package/dist/code-block.js.map +1 -1
  58. package/dist/columns.d.ts +132 -0
  59. package/dist/columns.js +89 -0
  60. package/dist/columns.js.map +1 -0
  61. package/dist/combobox.js +2 -2
  62. package/dist/copy-button.js +2 -2
  63. package/dist/copy-button.js.map +1 -1
  64. package/dist/data-table.js +3 -3
  65. package/dist/desktop-window.d.ts +1 -1
  66. package/dist/desktop-window.js +3 -1
  67. package/dist/desktop-window.js.map +1 -1
  68. package/dist/drop-overlay.js +8 -8
  69. package/dist/drop-overlay.js.map +1 -1
  70. package/dist/elephant.d.ts +1 -1
  71. package/dist/elephant.js.map +1 -1
  72. package/dist/embed-facade.d.ts +1 -1
  73. package/dist/embed-facade.js +3 -1
  74. package/dist/embed-facade.js.map +1 -1
  75. package/dist/engine-flow.js +7 -2
  76. package/dist/engine-flow.js.map +1 -1
  77. package/dist/entity-header.js +9 -3
  78. package/dist/entity-header.js.map +1 -1
  79. package/dist/file-upload.d.ts +1 -1
  80. package/dist/file-upload.js.map +1 -1
  81. package/dist/filter-bar.d.ts +4 -4
  82. package/dist/filter-bar.js +2 -2
  83. package/dist/flock.js +9 -6
  84. package/dist/flock.js.map +1 -1
  85. package/dist/form.d.ts +3 -3
  86. package/dist/form.js.map +1 -1
  87. package/dist/genui.js +3 -3
  88. package/dist/glossary-term.d.ts +1 -1
  89. package/dist/glossary-term.js.map +1 -1
  90. package/dist/glossary.d.ts +1 -1
  91. package/dist/glossary.js.map +1 -1
  92. package/dist/identity-card.js +1 -1
  93. package/dist/index.js +1 -1
  94. package/dist/kind-config-editor.d.ts +2 -2
  95. package/dist/kind-config-editor.js +1 -1
  96. package/dist/kind-config-editor.js.map +1 -1
  97. package/dist/kpi-explained.d.ts +1 -1
  98. package/dist/kpi-explained.js +4 -4
  99. package/dist/kpi-explained.js.map +1 -1
  100. package/dist/landing-page.js +1 -1
  101. package/dist/{lightbox-Q45BZ3HW.js → lightbox-MRB2YZEP.js} +1 -1
  102. package/dist/lightbox-MRB2YZEP.js.map +1 -0
  103. package/dist/map/cards.js +4 -2
  104. package/dist/map/cards.js.map +1 -1
  105. package/dist/map/pin.js +2 -1
  106. package/dist/map/pin.js.map +1 -1
  107. package/dist/map.d.ts +1 -1
  108. package/dist/map.js.map +1 -1
  109. package/dist/mascot-quote.js +1 -1
  110. package/dist/mascot-state.js +1 -1
  111. package/dist/mascots.js +1 -1
  112. package/dist/match-dialog.js +1 -1
  113. package/dist/motion.d.ts +1 -1
  114. package/dist/motion.js.map +1 -1
  115. package/dist/native/form.d.ts +3 -3
  116. package/dist/native/form.js.map +1 -1
  117. package/dist/native/markdown.d.ts +1 -1
  118. package/dist/native/markdown.js.map +1 -1
  119. package/dist/native/vertical-video.js.map +1 -1
  120. package/dist/native.d.ts +12 -12
  121. package/dist/native.js +12 -7
  122. package/dist/native.js.map +1 -1
  123. package/dist/nav-bar.d.ts +2 -2
  124. package/dist/nav-bar.js +1 -1
  125. package/dist/nav-bar.js.map +1 -1
  126. package/dist/next-actions.d.ts +1 -1
  127. package/dist/next-actions.js.map +1 -1
  128. package/dist/notification-preferences.d.ts +1 -1
  129. package/dist/notification-preferences.js +5 -2
  130. package/dist/notification-preferences.js.map +1 -1
  131. package/dist/page-index.js +2 -2
  132. package/dist/page-index.js.map +1 -1
  133. package/dist/product-page.js +1 -1
  134. package/dist/promo-code-field.d.ts +1 -1
  135. package/dist/promo-code-field.js.map +1 -1
  136. package/dist/qr-code.d.ts +1 -1
  137. package/dist/qr-code.js +1 -1
  138. package/dist/rail-nav.js +3 -3
  139. package/dist/rail-nav.js.map +1 -1
  140. package/dist/retro-tv.d.ts +1 -1
  141. package/dist/retro-tv.js.map +1 -1
  142. package/dist/reviews.d.ts +2 -2
  143. package/dist/reviews.js.map +1 -1
  144. package/dist/router.d.ts +1 -1
  145. package/dist/router.js +8 -8
  146. package/dist/router.js.map +1 -1
  147. package/dist/{schema-CL7t7xqb.d.ts → schema-Dd05m48Q.d.ts} +9 -9
  148. package/dist/service-card.js +22 -13
  149. package/dist/service-card.js.map +1 -1
  150. package/dist/settings-layout.js +1 -1
  151. package/dist/shop/booking.js.map +1 -1
  152. package/dist/shop/gallery.js +7 -6
  153. package/dist/shop/gallery.js.map +1 -1
  154. package/dist/shop/hero.js.map +1 -1
  155. package/dist/shop/look.d.ts +2 -2
  156. package/dist/shop/look.js +1 -1
  157. package/dist/shop/look.js.map +1 -1
  158. package/dist/shop/map-gate.d.ts +1 -1
  159. package/dist/shop/map-gate.js +2 -2
  160. package/dist/shop/map-gate.js.map +1 -1
  161. package/dist/shop/services.js.map +1 -1
  162. package/dist/shop-composer.d.ts +10 -10
  163. package/dist/shop-composer.js +27 -14
  164. package/dist/shop-composer.js.map +1 -1
  165. package/dist/shop-gallery.js +1 -1
  166. package/dist/shop.d.ts +2 -2
  167. package/dist/shop.js +2 -2
  168. package/dist/shop.js.map +1 -1
  169. package/dist/signature.js +2 -1
  170. package/dist/signature.js.map +1 -1
  171. package/dist/site-cahier.js +7 -3
  172. package/dist/site-cahier.js.map +1 -1
  173. package/dist/site-footer.js +6 -2
  174. package/dist/site-footer.js.map +1 -1
  175. package/dist/slot-picker.js +5 -2
  176. package/dist/slot-picker.js.map +1 -1
  177. package/dist/stat.js +1 -1
  178. package/dist/status-chip.d.ts +1 -1
  179. package/dist/status-chip.js.map +1 -1
  180. package/dist/tabs.js.map +1 -1
  181. package/dist/tag-input.js +2 -2
  182. package/dist/tag-selector.js +1 -1
  183. package/dist/text-style.js +4 -3
  184. package/dist/text-style.js.map +1 -1
  185. package/dist/usage.js +8 -3
  186. package/dist/usage.js.map +1 -1
  187. package/dist/versus-card.js +1 -1
  188. package/dist/versus-card.js.map +1 -1
  189. package/dist/vertical-video.js +1 -1
  190. package/dist/vertical-video.js.map +1 -1
  191. package/dist/virtual.d.ts +3 -3
  192. package/dist/wall.d.ts +4 -4
  193. package/dist/wall.js +1 -1
  194. package/dist/wall.js.map +1 -1
  195. package/package.json +20 -6
  196. package/registry/account-menu.json +2 -2
  197. package/registry/account-settings.json +3 -3
  198. package/registry/achievement.json +1 -1
  199. package/registry/action-bar.json +1 -1
  200. package/registry/activity-feed.json +1 -1
  201. package/registry/agenda.json +2 -2
  202. package/registry/alert.json +1 -1
  203. package/registry/analysis-report.json +3 -3
  204. package/registry/anatomy-plate.json +1 -1
  205. package/registry/app-frame.json +4 -4
  206. package/registry/app-header.json +2 -2
  207. package/registry/app-shell.json +1 -1
  208. package/registry/argument-card.json +1 -1
  209. package/registry/auth-layout.json +1 -1
  210. package/registry/avatar.json +2 -2
  211. package/registry/badge.json +3 -3
  212. package/registry/bird-plate.json +2 -2
  213. package/registry/button.json +1 -1
  214. package/registry/captcha.json +1 -1
  215. package/registry/card-grid.json +1 -1
  216. package/registry/card.json +1 -1
  217. package/registry/catalogue-page.json +1 -1
  218. package/registry/changelog-page.json +1 -1
  219. package/registry/chapter.json +2 -2
  220. package/registry/chat.json +1 -1
  221. package/registry/checkbox.json +1 -1
  222. package/registry/chip-link.json +1 -1
  223. package/registry/chip-row.json +1 -1
  224. package/registry/chip.json +2 -2
  225. package/registry/choice-grid.json +1 -1
  226. package/registry/code-block.json +1 -1
  227. package/registry/collection-switcher.json +1 -1
  228. package/registry/columns.json +319 -0
  229. package/registry/combobox.json +1 -1
  230. package/registry/command.json +1 -1
  231. package/registry/comparison-table.json +1 -1
  232. package/registry/component-page.json +1 -1
  233. package/registry/confirm-button.json +1 -1
  234. package/registry/contact-page.json +1 -1
  235. package/registry/continue-prompt.json +1 -1
  236. package/registry/copy-button.json +2 -2
  237. package/registry/countdown.json +1 -1
  238. package/registry/cover-hero.json +1 -1
  239. package/registry/cta-panel.json +1 -1
  240. package/registry/dashboard-layout.json +1 -1
  241. package/registry/data-table.json +2 -2
  242. package/registry/date-picker.json +1 -1
  243. package/registry/decision-list.json +1 -1
  244. package/registry/description-list.json +1 -1
  245. package/registry/desktop-window.json +2 -2
  246. package/registry/detail-layout.json +1 -1
  247. package/registry/dialog.json +1 -1
  248. package/registry/docs-article-page.json +1 -1
  249. package/registry/docs-hub-page.json +1 -1
  250. package/registry/docs-layout.json +1 -1
  251. package/registry/docs-nav.json +1 -1
  252. package/registry/document-viewer.json +1 -1
  253. package/registry/doodle.json +1 -1
  254. package/registry/drop-overlay.json +2 -2
  255. package/registry/dropdown-menu.json +1 -1
  256. package/registry/elephant.json +2 -2
  257. package/registry/embed-facade.json +3 -3
  258. package/registry/empty-state.json +1 -1
  259. package/registry/engine-flow.json +3 -3
  260. package/registry/entity-header.json +2 -2
  261. package/registry/environment-notice.json +1 -1
  262. package/registry/error-page.json +1 -1
  263. package/registry/examples/columns/columns.d.ts +4 -0
  264. package/registry/examples/columns/columns.js +21 -0
  265. package/registry/examples/columns/columns.tsx +18 -0
  266. package/registry/examples/columns/photos.d.ts +4 -0
  267. package/registry/examples/columns/photos.js +12 -0
  268. package/registry/examples/columns/photos.tsx +16 -0
  269. package/registry/examples/columns/stats.d.ts +4 -0
  270. package/registry/examples/columns/stats.js +20 -0
  271. package/registry/examples/columns/stats.tsx +22 -0
  272. package/registry/field.json +1 -1
  273. package/registry/file-upload.json +2 -2
  274. package/registry/filter-bar.json +2 -2
  275. package/registry/flock.json +3 -3
  276. package/registry/footnote.json +1 -1
  277. package/registry/force-update-screen.json +1 -1
  278. package/registry/form.json +8 -8
  279. package/registry/gallery-page.json +1 -1
  280. package/registry/genui.json +1 -1
  281. package/registry/glossary-term.json +2 -2
  282. package/registry/glossary.json +2 -2
  283. package/registry/glow-card.json +1 -1
  284. package/registry/goal-gauge.json +1 -1
  285. package/registry/grade-stamp.json +1 -1
  286. package/registry/grid.json +4 -3
  287. package/registry/identity-card.json +1 -1
  288. package/registry/image-cropper.json +1 -1
  289. package/registry/index.json +40 -9
  290. package/registry/kanban.json +1 -1
  291. package/registry/kbd.json +1 -1
  292. package/registry/kind-config-editor.json +2 -2
  293. package/registry/kpi-explained.json +2 -2
  294. package/registry/landing-page.json +1 -1
  295. package/registry/landscape.json +1 -1
  296. package/registry/language-switch.json +1 -1
  297. package/registry/legal-page.json +1 -1
  298. package/registry/link-card.json +1 -1
  299. package/registry/list.json +1 -1
  300. package/registry/loader.json +1 -1
  301. package/registry/longform-page.json +1 -1
  302. package/registry/maintenance-screen.json +1 -1
  303. package/registry/map.json +5 -5
  304. package/registry/margin-layout.json +1 -1
  305. package/registry/markdown.json +1 -1
  306. package/registry/marketing-layout.json +1 -1
  307. package/registry/mascot-quote.json +1 -1
  308. package/registry/mascot-state.json +2 -2
  309. package/registry/mascots.json +3 -3
  310. package/registry/match-dialog.json +1 -1
  311. package/registry/media-capture.json +1 -1
  312. package/registry/media-gallery.json +1 -1
  313. package/registry/meter.json +1 -1
  314. package/registry/money-input.json +1 -1
  315. package/registry/nav-bar.json +5 -5
  316. package/registry/next-actions.json +2 -2
  317. package/registry/notification-preferences.json +2 -2
  318. package/registry/number-ticker.json +1 -1
  319. package/registry/opening-hours.json +1 -1
  320. package/registry/page-header.json +1 -1
  321. package/registry/page-hero.json +1 -1
  322. package/registry/page-index.json +2 -2
  323. package/registry/page.json +2 -2
  324. package/registry/pagination.json +1 -1
  325. package/registry/pointer-light.json +1 -1
  326. package/registry/popover.json +1 -1
  327. package/registry/price-catalogue-editor.json +1 -1
  328. package/registry/pricing-page.json +1 -1
  329. package/registry/product-page.json +1 -1
  330. package/registry/profile-card.json +1 -1
  331. package/registry/progress.json +1 -1
  332. package/registry/promise-card.json +1 -1
  333. package/registry/promo-code-field.json +2 -2
  334. package/registry/proposal.json +1 -1
  335. package/registry/qr-code.json +3 -3
  336. package/registry/quota-meter.json +1 -1
  337. package/registry/radio-group.json +1 -1
  338. package/registry/rail-nav.json +4 -4
  339. package/registry/recipes.json +1 -1
  340. package/registry/retro-tv.json +2 -2
  341. package/registry/reviews.json +2 -2
  342. package/registry/router.json +2 -2
  343. package/registry/schema-form.json +1 -1
  344. package/registry/scroll-stage.json +1 -1
  345. package/registry/search-field.json +1 -1
  346. package/registry/section-backdrop.json +1 -1
  347. package/registry/separator.json +1 -1
  348. package/registry/service-card.json +2 -2
  349. package/registry/settings-layout.json +2 -2
  350. package/registry/shop-composer.json +8 -8
  351. package/registry/shop-gallery.json +2 -2
  352. package/registry/shop.json +12 -12
  353. package/registry/showcase.json +1 -1
  354. package/registry/signature.json +2 -2
  355. package/registry/site-cahier.json +2 -2
  356. package/registry/site-footer.json +4 -4
  357. package/registry/sites.json +1 -1
  358. package/registry/skeleton.json +1 -1
  359. package/registry/skip-link.json +1 -1
  360. package/registry/slider.json +1 -1
  361. package/registry/slot-picker.json +2 -2
  362. package/registry/slot.json +1 -1
  363. package/registry/specimen-tag.json +1 -1
  364. package/registry/speed-lines.json +1 -1
  365. package/registry/spinner.json +1 -1
  366. package/registry/split-view.json +1 -1
  367. package/registry/stage-banner.json +1 -1
  368. package/registry/stat.json +2 -2
  369. package/registry/status-chip.json +2 -2
  370. package/registry/status-page.json +1 -1
  371. package/registry/step-progress.json +1 -1
  372. package/registry/step-showcase.json +1 -1
  373. package/registry/stepper.json +1 -1
  374. package/registry/sticky-action.json +1 -1
  375. package/registry/stuck.json +1 -1
  376. package/registry/swipe-deck.json +1 -1
  377. package/registry/switch.json +1 -1
  378. package/registry/tabs.json +2 -2
  379. package/registry/tag-input.json +1 -1
  380. package/registry/tag-selector.json +1 -1
  381. package/registry/taped-photo.json +1 -1
  382. package/registry/terminal-replay.json +1 -1
  383. package/registry/text-style.json +2 -2
  384. package/registry/theme.json +1 -1
  385. package/registry/toast.json +1 -1
  386. package/registry/toc.json +1 -1
  387. package/registry/tooltip.json +1 -1
  388. package/registry/tree-view.json +1 -1
  389. package/registry/update-prompt.json +1 -1
  390. package/registry/upload-queue.json +1 -1
  391. package/registry/usage.json +3 -3
  392. package/registry/verified-badge.json +1 -1
  393. package/registry/versus-card.json +2 -2
  394. package/registry/vertical-video.json +2 -2
  395. package/registry/video-player.json +1 -1
  396. package/registry/video-trimmer.json +1 -1
  397. package/registry/virtual.json +1 -1
  398. package/registry/wall.json +6 -6
  399. package/registry/waveform.json +3 -3
  400. package/dist/chunk-BCD2CRFG.js.map +0 -1
  401. package/dist/chunk-CDNOT2KR.js.map +0 -1
  402. package/dist/chunk-FM42KOAU.js.map +0 -1
  403. package/dist/chunk-MTVX4RRF.js.map +0 -1
  404. package/dist/chunk-UIP3WX5O.js.map +0 -1
  405. package/dist/chunk-VUD4IEVJ.js.map +0 -1
  406. package/dist/chunk-ZFR6ZNXD.js.map +0 -1
  407. package/dist/lightbox-Q45BZ3HW.js.map +0 -1
  408. /package/dist/{chunk-YXETEQQJ.js.map → chunk-SG2RKUVJ.js.map} +0 -0
package/dist/virtual.d.ts CHANGED
@@ -6,8 +6,8 @@ import * as React from 'react';
6
6
  declare const virtual: tailwind_variants.TVReturnType<{
7
7
  [key: string]: {
8
8
  [key: string]: tailwind_variants.ClassValue | {
9
- list?: tailwind_variants.ClassValue;
10
9
  viewport?: tailwind_variants.ClassValue;
10
+ list?: tailwind_variants.ClassValue;
11
11
  item?: tailwind_variants.ClassValue;
12
12
  row?: tailwind_variants.ClassValue;
13
13
  empty?: tailwind_variants.ClassValue;
@@ -16,8 +16,8 @@ declare const virtual: tailwind_variants.TVReturnType<{
16
16
  } | {
17
17
  [x: string]: {
18
18
  [x: string]: tailwind_variants.ClassValue | {
19
- list?: tailwind_variants.ClassValue;
20
19
  viewport?: tailwind_variants.ClassValue;
20
+ list?: tailwind_variants.ClassValue;
21
21
  item?: tailwind_variants.ClassValue;
22
22
  row?: tailwind_variants.ClassValue;
23
23
  empty?: tailwind_variants.ClassValue;
@@ -32,8 +32,8 @@ declare const virtual: tailwind_variants.TVReturnType<{
32
32
  }, undefined, {
33
33
  [key: string]: {
34
34
  [key: string]: tailwind_variants.ClassValue | {
35
- list?: tailwind_variants.ClassValue;
36
35
  viewport?: tailwind_variants.ClassValue;
36
+ list?: tailwind_variants.ClassValue;
37
37
  item?: tailwind_variants.ClassValue;
38
38
  row?: tailwind_variants.ClassValue;
39
39
  empty?: tailwind_variants.ClassValue;
package/dist/wall.d.ts CHANGED
@@ -28,7 +28,7 @@ interface PinnedNoteProps extends Omit<React.ComponentProps<"article">, "childre
28
28
  lines?: number;
29
29
  }
30
30
  /** A short word on a cut-corner card, stuck into the notebook. */
31
- declare function PinnedNote({ text, signature, rotation, attachment, attachmentRotation: _attachmentRotation, ink, paper, action, limit, hold, lines, className, ...props }: PinnedNoteProps): React.JSX.Element;
31
+ declare function PinnedNote({ text, signature, rotation, attachment, attachmentRotation: _attachmentRotation, ink, paper, action, limit, hold, lines, className, ...props }: Readonly<PinnedNoteProps>): React.JSX.Element;
32
32
 
33
33
  interface PolaroidProps extends Omit<React.ComponentProps<"figure">, "children" | "style">, WallObjectProps {
34
34
  /** The photo slot: an img or next/image, including fill inside this positioned frame. Supply its alt text. */
@@ -39,7 +39,7 @@ interface PolaroidProps extends Omit<React.ComponentProps<"figure">, "children"
39
39
  develop?: boolean;
40
40
  }
41
41
  /** A photo held to the wall by tape or a pin, with a handwritten caption. */
42
- declare function Polaroid({ img, caption, rotation, attachment, attachmentRotation, develop, className, ...props }: PolaroidProps): React.JSX.Element;
42
+ declare function Polaroid({ img, caption, rotation, attachment, attachmentRotation, develop, className, ...props }: Readonly<PolaroidProps>): React.JSX.Element;
43
43
 
44
44
  interface ShopSignProps extends Omit<React.ComponentProps<"div">, "style"> {
45
45
  /** The shop's name as live text, in the sign's lettering: the page's heading (`as`). Prefer it to an image of the name. */
@@ -56,7 +56,7 @@ interface ShopSignProps extends Omit<React.ComponentProps<"div">, "style"> {
56
56
  animated?: boolean;
57
57
  }
58
58
  /** A shop's own mark, as a plate, a neon, a painted sign, or the name alone. */
59
- declare function ShopSign({ children, as: Name, logo, variant, rotation, animated, className, ...props }: ShopSignProps): React.JSX.Element;
59
+ declare function ShopSign({ children, as: Name, logo, variant, rotation, animated, className, ...props }: Readonly<ShopSignProps>): React.JSX.Element;
60
60
 
61
61
  interface WallPosition {
62
62
  /** Stable identity for this object. */
@@ -96,7 +96,7 @@ interface WallProps extends Omit<React.ComponentProps<"ul">, "children" | "style
96
96
  layout?: "pinned" | "tidy";
97
97
  }
98
98
  /** A decorative textured surface over a real keyboard-reachable list; never an editor. */
99
- declare function Wall({ items, texture, max, height, itemWidth, layout, className, ...props }: WallProps): React.JSX.Element;
99
+ declare function Wall({ items, texture, max, height, itemWidth, layout, className, ...props }: Readonly<WallProps>): React.JSX.Element;
100
100
 
101
101
  export { PinnedNote, Polaroid, ShopSign, Wall };
102
102
  export type { PinnedNoteProps, PolaroidProps, ShopSignProps, WallItem, WallPosition, WallProps };
package/dist/wall.js CHANGED
@@ -161,7 +161,7 @@ function WallObject({ item }) {
161
161
  return /* @__PURE__ */ jsx6(ShopSign, { ...item, as: item.as ?? "p", rotation: 0 });
162
162
  }
163
163
  function Wall({ items, texture = "plaster", max = 12, height, itemWidth = 240, layout = "pinned", className, ...props }) {
164
- const patternId = React3.useId().replace(/:/g, "");
164
+ const patternId = React3.useId().replaceAll(":", "");
165
165
  const drawn = Math.max(0, Math.floor(finite(max)));
166
166
  return /* @__PURE__ */ jsxs5("ul", { ...props, role: "list", className: cn("kz-wall", className), "data-texture": texture, "data-layout": layout === "tidy" ? "tidy" : void 0, "data-count": Math.min(items.length, drawn), "data-fixed-height": height === void 0 ? void 0 : "", style: { ...height === void 0 ? null : { "--kz-wall-height": `${Math.max(320, finite(height))}px` }, "--kz-wall-item-width": `${Math.max(120, finite(itemWidth))}px` }, children: [
167
167
  [...items].sort((a, b) => finite(a.z) - finite(b.z)).slice(0, drawn).map(({ id, x = 0, y = 0, rotation, z: _z, ...item }, rank) => /* @__PURE__ */ jsx6("li", { className: "kz-wall-item", tabIndex: 0, "data-span": layout === "tidy" && item.kind === "note" ? "2" : void 0, style: {
package/dist/wall.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/cahier-seed.ts","../src/stuck/stuck.tsx","../src/wall/pinned-note.tsx","../src/wall/polaroid.tsx","../src/wall/attachment.tsx","../src/wall/shop-sign.tsx","../src/wall/wall.tsx"],"sourcesContent":["// The Cahier's small deterministic randomness: a string (an id, a slug, a title) becomes a number in [-1, 1], always the\n// same one, so a tilt or a wobble drawn \"by hand\" is the same on the server, on the client and in every screenshot.\nexport function seedUnit(seed: string): number {\n let h = 2166136261;\n for (let i = 0; i < seed.length; i++) h = Math.imul(h ^ seed.charCodeAt(i), 16777619);\n return ((h >>> 0) % 2001) / 1000 - 1;\n}\n","// Server-safe. A block stuck into the notebook (ADR-004, blocks.css): a figure, a specimen tag, a card, a print — held by\n// tape, a pin, photo corners or a lifted edge, slightly tilted (from data, never random), on the Cahier's hard paper\n// shadow. The tape is TapedPhoto's own (the same rule in blocks.css). The tilt is a transform: nothing shifts.\nimport type * as React from \"react\";\n\nimport { seedUnit } from \"../cahier-seed\";\nimport { cn } from \"../cn\";\n\nexport type StuckHold = \"tape\" | \"tape-corners\" | \"pin\" | \"corner\" | \"glue\";\n\nexport type StuckProps = Omit<React.HTMLAttributes<HTMLElement>, \"children\"> & {\n /** What is stuck: a figure, a `SpecimenTag`, a card, a `TapedPhoto`. */\n children: React.ReactNode;\n /**\n * How it is held: `tape` (one strip), `tape-corners` (two opposite corners), `pin` (a drawing pin), `corner` (photo\n * corners) or `glue` (a slightly lifted edge).\n * @default \"tape\"\n */\n hold?: StuckHold;\n /** The tilt in degrees (negative leans left). Without it, the tilt comes from `seed`. */\n tilt?: number;\n /** Where the tilt comes from when `tilt` is not given: the same string always leans the same way (±2°). @default \"\" */\n seed?: string;\n /** Margin doodles (`Doodle`) drawn beside the block; they leave with the margin on a narrow screen. */\n doodle?: React.ReactNode;\n /** The element of the wrapper. A `figure` goes inside, never here. @default \"div\" */\n as?: \"div\" | \"li\" | \"aside\";\n};\n\n/** The tilt of a stuck block: `tilt` when given, otherwise a steady lean (−2° to 2°) read from `seed`, rounded to a tenth. */\nexport function stuckTilt(seed: string, tilt?: number): number {\n return tilt ?? Math.round(seedUnit(seed) * 20) / 10;\n}\n\n/** A block stuck into the notebook: held by tape, a pin, photo corners or glue; tilted from data; a hard paper shadow. */\nexport function Stuck({ children, hold = \"tape\", tilt, seed = \"\", doodle, as: Tag = \"div\", className, style, ...props }: StuckProps) {\n return (\n <Tag className={cn(\"kz-stuck\", className)} style={style} {...props}>\n <div className=\"kz-stuck-body\" data-hold={hold} style={{ [\"--kz-stuck-tilt\" as string]: `${stuckTilt(seed, tilt)}deg` }}>\n {hold === \"pin\" ? <span className=\"kz-stuck-pin\" aria-hidden /> : null}\n {children}\n </div>\n {doodle}\n </Tag>\n );\n}\n","import type * as React from \"react\";\n\nimport { cn } from \"../cn\";\nimport { Stuck } from \"../stuck\";\nimport type { WallObjectProps } from \"./attachment\";\n\nexport interface PinnedNoteProps extends Omit<React.ComponentProps<\"article\">, \"children\" | \"style\">, WallObjectProps {\n /** The short message; capped at 140 Unicode code points without an ellipsis. */\n text: string;\n /** The optional author's signature, written in the handwriting role. */\n signature?: string;\n /** The ink of the pen: blue ink, the margin's red, or the page's hue. @default \"blue\" */\n ink?: \"blue\" | \"margin\" | \"hue\";\n /** How the note is held, through `Stuck`: a strip of tape or a pin. Takes over `attachment`. @default \"tape\" */\n hold?: \"tape\" | \"pin\";\n /** The colour of the paper: the page's own, or a real post-it (butter, rose, mint, sky), pale in both themes with the pen dark on it. @default \"plain\" */\n paper?: \"plain\" | \"butter\" | \"rose\" | \"mint\" | \"sky\";\n /** A small action under the words (a link, a button) kept inside the note and reachable by keyboard; it is never part of the capped text. */\n action?: React.ReactNode;\n /** How many Unicode code points of `text` are kept (a flyer longer than a word is read whole). @default 140 */\n limit?: number;\n /** The lines of the text box, fixed so a late font never shifts the page (the text is read in full by assistive technology). @default 4 */\n lines?: number;\n}\n\n/** A short word on a cut-corner card, stuck into the notebook. */\nexport function PinnedNote({ text, signature, rotation = 0, attachment, attachmentRotation: _attachmentRotation, ink = \"blue\", paper = \"plain\", action, limit = 140, hold, lines = 4, className, ...props }: PinnedNoteProps) {\n const rows = Math.max(1, Math.round(Number.isFinite(lines) ? lines : 4));\n return (\n <Stuck hold={hold ?? attachment ?? \"tape\"} tilt={Number.isFinite(rotation) ? rotation : 0} className=\"kz-wall-object kz-pinned-stuck\">\n <article {...props} className={cn(\"kz-pinned-note\", className)} data-shape=\"cut\" data-ink={ink} data-paper={paper === \"plain\" ? undefined : paper} style={{ \"--kz-note-lines\": rows } as React.CSSProperties}>\n <div className=\"kz-pinned-note-paper\">\n <p className=\"kz-pinned-note-text\">{Array.from(text).slice(0, Number.isFinite(limit) ? Math.max(0, Math.floor(limit)) : 140).join(\"\")}</p>\n {signature && <p className=\"kz-pinned-note-signature\">{signature}</p>}\n {action && <div className=\"kz-pinned-note-action\">{action}</div>}\n </div>\n </article>\n </Stuck>\n );\n}\n","\"use client\";\n\nimport * as React from \"react\";\n\nimport { cn } from \"../cn\";\nimport { TapedPhoto } from \"../taped-photo\";\nimport { Attachment, finite, type WallObjectProps } from \"./attachment\";\n\nexport interface PolaroidProps extends Omit<React.ComponentProps<\"figure\">, \"children\" | \"style\">, WallObjectProps {\n /** The photo slot: an img or next/image, including fill inside this positioned frame. Supply its alt text. */\n img: React.ReactNode;\n /** A short handwritten caption, using the --kz-font-cahier role. */\n caption?: React.ReactNode;\n /** Enable the first-view develop effect; defaults to true, never runs under reduced motion. */\n develop?: boolean;\n}\n\n/** A photo held to the wall by tape or a pin, with a handwritten caption. */\nexport function Polaroid({ img, caption, rotation = 0, attachment = \"tape\", attachmentRotation = 0, develop = true, className, ...props }: PolaroidProps) {\n const ref = React.useRef<HTMLDivElement>(null);\n const [state, setState] = React.useState<\"waiting\" | \"ready\" | undefined>();\n React.useEffect(() => {\n if (!develop || !ref.current || typeof IntersectionObserver === \"undefined\" || typeof matchMedia === \"undefined\") return;\n const preference = matchMedia(\"(prefers-reduced-motion: reduce)\");\n let seen = false;\n let observer: IntersectionObserver | undefined;\n const sync = () => {\n observer?.disconnect();\n if (preference.matches) {\n seen = true;\n setState(undefined);\n } else if (!seen) {\n setState(\"waiting\");\n observer = new IntersectionObserver((entries) => {\n if (seen || !entries.some((entry) => entry.isIntersecting)) return;\n seen = true;\n setState(\"ready\");\n observer?.disconnect();\n }, { threshold: 0.15 });\n observer.observe(ref.current!);\n }\n };\n sync();\n preference.addEventListener(\"change\", sync);\n return () => { observer?.disconnect(); preference.removeEventListener(\"change\", sync); };\n }, [develop]);\n return (\n <TapedPhoto {...props} className={cn(\"kz-polaroid\", className)} tilt={finite(rotation)} tape={attachment === \"pin\" ? \"none\" : \"top\"} caption={caption}\n style={{ \"--kz-wall-attachment-rotation\": `${finite(attachmentRotation)}deg` } as React.CSSProperties} data-develop={develop ? state : undefined}>\n {attachment === \"pin\" && <Attachment attachment=\"pin\" attachmentRotation={attachmentRotation} />}\n <div ref={ref} className=\"kz-polaroid-photo\">{img}</div>\n </TapedPhoto>\n );\n}\n","import type { CSSProperties } from \"react\";\n\nimport { cn } from \"../cn\";\n\nexport interface WallObjectProps {\n /** Tilt in degrees, deterministic; defaults to zero. */\n rotation?: number;\n /** A tape strip or a pin; defaults to tape. */\n attachment?: \"tape\" | \"pin\";\n /** The tape or pin's tilt in degrees; defaults to zero. */\n attachmentRotation?: number;\n}\n\nexport const finite = (value: number) => Number.isFinite(value) ? value : 0;\nexport const rotationStyle = (rotation: number): CSSProperties =>\n ({ \"--kz-wall-rotation\": `${finite(rotation)}deg` }) as CSSProperties;\n\nexport function Attachment({ attachment = \"tape\", attachmentRotation = 0 }: WallObjectProps) {\n return <span aria-hidden=\"true\" className={cn(\"kz-wall-attachment\", attachment === \"pin\" ? \"kz-wall-pin\" : \"kz-wall-tape\")} style={{ transform: `rotate(${finite(attachmentRotation)}deg)` }} />;\n}\n","\"use client\";\n\nimport * as React from \"react\";\n\nimport { cn } from \"../cn\";\nimport { rotationStyle } from \"./attachment\";\n\nexport interface ShopSignProps extends Omit<React.ComponentProps<\"div\">, \"style\"> {\n /** The shop's name as live text, in the sign's lettering: the page's heading (`as`). Prefer it to an image of the name. */\n children?: React.ReactNode;\n /** The element of the name: the page's `h1` by default, `h2`/`h3` for a second sign, `p` for none. A sign on a `Wall` is a `p` unless told otherwise. */\n as?: \"h1\" | \"h2\" | \"h3\" | \"p\";\n /** The owner's logo or wordmark, optional beside the name. Name an SVG/image accessibly, or use readable text. */\n logo?: React.ReactNode;\n /** Enamel plate and screws, softly glowing neon, a time-worn painted sign, or `none` (the name alone on paper). */\n variant?: \"enamel\" | \"neon\" | \"painted\" | \"none\";\n /** Deterministic tilt in degrees; defaults to zero. */\n rotation?: number;\n /** Allow one soft neon flicker the first time the sign is seen; defaults to true, never loops, respects reduced motion. */\n animated?: boolean;\n}\n\n/** The neon's first view: `waiting` until it is on screen, then `ready` once. Nothing under reduced motion or without observers. */\nfunction useFirstView(enabled: boolean) {\n const ref = React.useRef<HTMLDivElement>(null);\n const [state, setState] = React.useState<\"waiting\" | \"ready\" | undefined>();\n React.useEffect(() => {\n if (!enabled || !ref.current || typeof IntersectionObserver === \"undefined\" || typeof matchMedia === \"undefined\") return;\n const preference = matchMedia(\"(prefers-reduced-motion: reduce)\");\n let seen = false;\n let observer: IntersectionObserver | undefined;\n const sync = () => {\n observer?.disconnect();\n if (preference.matches) {\n setState(undefined);\n } else if (!seen) {\n setState(\"waiting\");\n observer = new IntersectionObserver((entries) => {\n if (seen || !entries.some((entry) => entry.isIntersecting)) return;\n seen = true;\n setState(\"ready\");\n observer?.disconnect();\n }, { threshold: 0.3 });\n observer.observe(ref.current!);\n }\n };\n sync();\n preference.addEventListener(\"change\", sync);\n return () => { observer?.disconnect(); preference.removeEventListener(\"change\", sync); };\n }, [enabled]);\n return [ref, state] as const;\n}\n\n/** A shop's own mark, as a plate, a neon, a painted sign, or the name alone. */\nexport function ShopSign({ children, as: Name = \"h1\", logo, variant = \"enamel\", rotation = 0, animated = true, className, ...props }: ShopSignProps) {\n const [ref, lit] = useFirstView(variant === \"neon\" && animated);\n return (\n <div {...props} ref={ref} className={cn(\"kz-shop-sign kz-wall-object\", className)} style={rotationStyle(rotation)} data-variant={variant} data-animated={animated ? \"\" : undefined} data-lit={lit}>\n {variant === \"enamel\" && [0, 1, 2, 3].map((corner) => <span key={corner} aria-hidden=\"true\" className=\"kz-shop-sign-screw\" data-corner={corner} />)}\n {logo && <div className=\"kz-shop-sign-logo\">{logo}</div>}\n {children && <Name className=\"kz-shop-sign-name\">{children}</Name>}\n </div>\n );\n}\n","\"use client\";\n\nimport * as React from \"react\";\n\nimport { cn } from \"../cn\";\nimport { finite } from \"./attachment\";\nimport { PinnedNote, type PinnedNoteProps } from \"./pinned-note\";\nimport { Polaroid, type PolaroidProps } from \"./polaroid\";\nimport { ShopSign, type ShopSignProps } from \"./shop-sign\";\n\nexport interface WallPosition {\n /** Stable identity for this object. */\n id: string;\n /** Horizontal placement as a percentage (0–100); clamped to the wall. Unused by the tidy layout. */\n x?: number;\n /** Vertical placement as a percentage (0–100); clamped to the wall. Unused by the tidy layout. */\n y?: number;\n /** Tilt in degrees; defaults to zero. */\n rotation?: number;\n /** Stacking and reading order, ascending; ties preserve input order. */\n z: number;\n}\n\n/** The item's kind chooses its component; its remaining fields are that component's props. */\nexport type WallItem = WallPosition & (\n | ({ /** A framed photo. */ kind: \"polaroid\" } & PolaroidProps)\n | ({ /** A short pinned message. */ kind: \"note\" } & PinnedNoteProps)\n | ({ /** The owner's sign. */ kind: \"sign\" } & ShopSignProps)\n);\n\ntype DistributiveOmit<T, K extends PropertyKey> = T extends unknown ? Omit<T, K> : never;\n\nexport interface WallProps extends Omit<React.ComponentProps<\"ul\">, \"children\" | \"style\" | \"role\"> {\n /** The read-only objects; never mutated. Sorted by z for reading, keyboard and phone order. */\n items: readonly WallItem[];\n /** CSS/SVG texture; no image download. Defaults to plaster. */\n texture?: \"brick\" | \"zellige\" | \"ridge\" | \"plaster\";\n /** Draws at most this many items (the first in z order); defaults to 12. The rest belongs to the host's « see the whole wall ». */\n max?: number;\n /** A fixed desktop surface height in pixels (minimum 320). Absent, the surface is a fixed 16:9 box. Phones grow with content. */\n height?: number;\n /** Desktop object width in pixels (minimum 120); defaults to 240 and never exceeds the surface. */\n itemWidth?: number;\n /**\n * `pinned` (default): objects placed at x / y on a fixed surface. `tidy`: the Cahier pinboard — a dense CSS grid (3 columns,\n * 2 on a phone, 1 on a very small one), a note may span two, each tilted 1–2° by its id (no random position), no JS layout.\n */\n layout?: \"pinned\" | \"tidy\";\n}\n\n/** A tilt of 1 to 2 degrees, either way, derived from the id: the same wall draws the same everywhere (server and client). */\nexport function tidyTilt(id: string): number {\n let h = 2166136261;\n for (let i = 0; i < id.length; i += 1) h = Math.imul(h ^ id.charCodeAt(i), 16777619);\n const n = (h >>> 0) % 4; // 0..3\n return [-2, -1, 1, 2][n]!;\n}\n\n/** The object of one item, straight: the wall places and tilts it. A sign on a wall is a paragraph, not a second h1. */\nfunction WallObject({ item }: { readonly item: DistributiveOmit<WallItem, keyof WallPosition> }) {\n if (item.kind === \"polaroid\") return <Polaroid {...item} rotation={0} />;\n if (item.kind === \"note\") return <PinnedNote {...item} rotation={0} />;\n return <ShopSign {...item} as={item.as ?? \"p\"} rotation={0} />;\n}\n\n/** A decorative textured surface over a real keyboard-reachable list; never an editor. */\nexport function Wall({ items, texture = \"plaster\", max = 12, height, itemWidth = 240, layout = \"pinned\", className, ...props }: WallProps) {\n const patternId = React.useId().replace(/:/g, \"\");\n const drawn = Math.max(0, Math.floor(finite(max)));\n return (\n <ul {...props} role=\"list\" className={cn(\"kz-wall\", className)} data-texture={texture} data-layout={layout === \"tidy\" ? \"tidy\" : undefined} data-count={Math.min(items.length, drawn)} data-fixed-height={height === undefined ? undefined : \"\"} style={{ ...(height === undefined ? null : { \"--kz-wall-height\": `${Math.max(320, finite(height))}px` }), \"--kz-wall-item-width\": `${Math.max(120, finite(itemWidth))}px` } as React.CSSProperties}>\n {[...items].sort((a, b) => finite(a.z) - finite(b.z)).slice(0, drawn).map(({ id, x = 0, y = 0, rotation, z: _z, ...item }, rank) => (\n <li key={id} className=\"kz-wall-item\" tabIndex={0} data-span={layout === \"tidy\" && item.kind === \"note\" ? \"2\" : undefined} style={{\n \"--kz-wall-x\": `${Math.min(100, Math.max(0, finite(x)))}%`,\n \"--kz-wall-y\": `${Math.min(100, Math.max(0, finite(y)))}%`,\n \"--kz-wall-rotation\": `${layout === \"tidy\" ? tidyTilt(id) : finite(rotation ?? 0)}deg`,\n zIndex: rank,\n } as React.CSSProperties}>\n <WallObject item={item} />\n </li>\n ))}\n {texture === \"brick\" && <li className=\"kz-wall-decoration\" aria-hidden=\"true\" role=\"presentation\"><svg width=\"100%\" height=\"100%\" aria-hidden=\"true\">\n <defs><pattern id={patternId} width=\"96\" height=\"48\" patternUnits=\"userSpaceOnUse\">\n <path d=\"M0 0H96M0 24H96M0 48H96M48 0V24M0 24V48M96 24V48\" fill=\"none\" stroke=\"var(--kz-border-default)\" strokeWidth=\"2\" />\n </pattern></defs><rect width=\"100%\" height=\"100%\" fill={`url(#${patternId})`} />\n </svg></li>}\n {texture === \"zellige\" && <li className=\"kz-wall-decoration\" aria-hidden=\"true\" role=\"presentation\"><svg width=\"100%\" height=\"100%\" aria-hidden=\"true\">\n <defs><pattern id={patternId} width=\"64\" height=\"64\" patternUnits=\"userSpaceOnUse\">\n <path d=\"M32 3 39 15 52 12 49 25 61 32 49 39 52 52 39 49 32 61 25 49 12 52 15 39 3 32 15 25 12 12 25 15Z\" fill=\"var(--kz-accent-soft)\" stroke=\"var(--kz-border-default)\" />\n <path d=\"m32 18 14 14-14 14-14-14Z\" fill=\"var(--kz-surface-2)\" stroke=\"var(--kz-accent-2)\" />\n </pattern></defs><rect width=\"100%\" height=\"100%\" fill={`url(#${patternId})`} />\n </svg></li>}\n {texture === \"ridge\" && <li className=\"kz-wall-decoration\" aria-hidden=\"true\" role=\"presentation\"><svg viewBox=\"0 0 1000 600\" preserveAspectRatio=\"none\" width=\"100%\" height=\"100%\" aria-hidden=\"true\">\n <path d=\"M0 380 170 100 290 300 450 70 620 330 790 120 1000 350V600H0Z\" fill=\"var(--kz-accent-soft)\" />\n <path d=\"M0 470 200 280 370 440 600 190 760 400 920 260 1000 390V600H0Z\" fill=\"var(--kz-surface-2)\" />\n <path d=\"M0 540 180 430 360 520 540 390 760 520 900 410 1000 480V600H0Z\" fill=\"var(--kz-surface-3)\" />\n </svg></li>}\n </ul>\n );\n}\n"],"mappings":";;;;;;;;;;AAEO,SAAS,SAAS,MAAsB;AAC7C,M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BAAAC,MAAC,SAAI,OAAM,QAAO,QAAO,QAAO,eAAY,QAC9I;AAAA,sBAAAD,KAAC,UAAK,0BAAAC,MAAC,aAAQ,IAAI,WAAW,OAAM,MAAK,QAAO,MAAK,cAAa,kBAChE;AAAA,wBAAAD,KAAC,UAAK,GAAE,mGAAkG,MAAK,yBAAwB,QAAO,4BAA2B;AAAA,QACzK,gBAAAA,KAAC,UAAK,GAAE,6BAA4B,MAAK,uBAAsB,QAAO,sBAAqB;AAAA,SAC7F,GAAU;AAAA,MAAO,gBAAAA,KAAC,UAAK,OAAM,QAAO,QAAO,QAAO,MAAM,QAAQ,SAAS,KAAK;AAAA,OAChF,GAAM;AAAA,IACL,YAAY,WAAW,gBAAAA,KAAC,QAAG,WAAU,sBAAqB,eAAY,QAAO,MAAK,gBAAe,0BAAAC,MAAC,SAAI,SAAQ,gBAAe,qBAAoB,QAAO,OAAM,QAAO,QAAO,QAAO,eAAY,QAC9L;AAAA,sBAAAD,KAAC,UAAK,GAAE,iEAAgE,MAAK,yBAAwB;AAAA,MACrG,gBAAAA,KAAC,UAAK,GAAE,kEAAiE,MAAK,uBAAsB;AAAA,MACpG,gBAAAA,KAAC,UAAK,GAAE,kEAAiE,MAAK,uBAAsB;AAAA,OACtG,GAAM;AAAA,KACR;AAEJ;","names":["jsx","jsxs","jsx","jsx","jsxs","React","jsx","jsxs","React","jsx","jsxs"]}
1
+ {"version":3,"sources":["../src/cahier-seed.ts","../src/stuck/stuck.tsx","../src/wall/pinned-note.tsx","../src/wall/polaroid.tsx","../src/wall/attachment.tsx","../src/wall/shop-sign.tsx","../src/wall/wall.tsx"],"sourcesContent":["// The Cahier's small deterministic randomness: a string (an id, a slug, a title) becomes a number in [-1, 1], always the\n// same one, so a tilt or a wobble drawn \"by hand\" is the same on the server, on the client and in every screenshot.\nexport function seedUnit(seed: string): number {\n let h = 2166136261;\n for (let i = 0; i < seed.length; i++) h = Math.imul(h ^ seed.charCodeAt(i), 16777619);\n return ((h >>> 0) % 2001) / 1000 - 1;\n}\n","// Server-safe. A block stuck into the notebook (ADR-004, blocks.css): a figure, a specimen tag, a card, a print — held by\n// tape, a pin, photo corners or a lifted edge, slightly tilted (from data, never random), on the Cahier's hard paper\n// shadow. The tape is TapedPhoto's own (the same rule in blocks.css). The tilt is a transform: nothing shifts.\nimport type * as React from \"react\";\n\nimport { seedUnit } from \"../cahier-seed\";\nimport { cn } from \"../cn\";\n\nexport type StuckHold = \"tape\" | \"tape-corners\" | \"pin\" | \"corner\" | \"glue\";\n\nexport type StuckProps = Omit<React.HTMLAttributes<HTMLElement>, \"children\"> & {\n /** What is stuck: a figure, a `SpecimenTag`, a card, a `TapedPhoto`. */\n children: React.ReactNode;\n /**\n * How it is held: `tape` (one strip), `tape-corners` (two opposite corners), `pin` (a drawing pin), `corner` (photo\n * corners) or `glue` (a slightly lifted edge).\n * @default \"tape\"\n */\n hold?: StuckHold;\n /** The tilt in degrees (negative leans left). Without it, the tilt comes from `seed`. */\n tilt?: number;\n /** Where the tilt comes from when `tilt` is not given: the same string always leans the same way (±2°). @default \"\" */\n seed?: string;\n /** Margin doodles (`Doodle`) drawn beside the block; they leave with the margin on a narrow screen. */\n doodle?: React.ReactNode;\n /** The element of the wrapper. A `figure` goes inside, never here. @default \"div\" */\n as?: \"div\" | \"li\" | \"aside\";\n};\n\n/** The tilt of a stuck block: `tilt` when given, otherwise a steady lean (−2° to 2°) read from `seed`, rounded to a tenth. */\nexport function stuckTilt(seed: string, tilt?: number): number {\n return tilt ?? Math.round(seedUnit(seed) * 20) / 10;\n}\n\n/** A block stuck into the notebook: held by tape, a pin, photo corners or glue; tilted from data; a hard paper shadow. */\nexport function Stuck({ children, hold = \"tape\", tilt, seed = \"\", doodle, as: Tag = \"div\", className, style, ...props }: StuckProps) {\n return (\n <Tag className={cn(\"kz-stuck\", className)} style={style} {...props}>\n <div className=\"kz-stuck-body\" data-hold={hold} style={{ [\"--kz-stuck-tilt\" as string]: `${stuckTilt(seed, tilt)}deg` }}>\n {hold === \"pin\" ? <span className=\"kz-stuck-pin\" aria-hidden /> : null}\n {children}\n </div>\n {doodle}\n </Tag>\n );\n}\n","import type * as React from \"react\";\n\nimport { cn } from \"../cn\";\nimport { Stuck } from \"../stuck\";\nimport type { WallObjectProps } from \"./attachment\";\n\nexport interface PinnedNoteProps extends Omit<React.ComponentProps<\"article\">, \"children\" | \"style\">, WallObjectProps {\n /** The short message; capped at 140 Unicode code points without an ellipsis. */\n text: string;\n /** The optional author's signature, written in the handwriting role. */\n signature?: string;\n /** The ink of the pen: blue ink, the margin's red, or the page's hue. @default \"blue\" */\n ink?: \"blue\" | \"margin\" | \"hue\";\n /** How the note is held, through `Stuck`: a strip of tape or a pin. Takes over `attachment`. @default \"tape\" */\n hold?: \"tape\" | \"pin\";\n /** The colour of the paper: the page's own, or a real post-it (butter, rose, mint, sky), pale in both themes with the pen dark on it. @default \"plain\" */\n paper?: \"plain\" | \"butter\" | \"rose\" | \"mint\" | \"sky\";\n /** A small action under the words (a link, a button) kept inside the note and reachable by keyboard; it is never part of the capped text. */\n action?: React.ReactNode;\n /** How many Unicode code points of `text` are kept (a flyer longer than a word is read whole). @default 140 */\n limit?: number;\n /** The lines of the text box, fixed so a late font never shifts the page (the text is read in full by assistive technology). @default 4 */\n lines?: number;\n}\n\n/** A short word on a cut-corner card, stuck into the notebook. */\nexport function PinnedNote({ text, signature, rotation = 0, attachment, attachmentRotation: _attachmentRotation, ink = \"blue\", paper = \"plain\", action, limit = 140, hold, lines = 4, className, ...props }: Readonly<PinnedNoteProps>) {\n const rows = Math.max(1, Math.round(Number.isFinite(lines) ? lines : 4));\n return (\n <Stuck hold={hold ?? attachment ?? \"tape\"} tilt={Number.isFinite(rotation) ? rotation : 0} className=\"kz-wall-object kz-pinned-stuck\">\n <article {...props} className={cn(\"kz-pinned-note\", className)} data-shape=\"cut\" data-ink={ink} data-paper={paper === \"plain\" ? undefined : paper} style={{ \"--kz-note-lines\": rows } as React.CSSProperties}>\n <div className=\"kz-pinned-note-paper\">\n <p className=\"kz-pinned-note-text\">{Array.from(text).slice(0, Number.isFinite(limit) ? Math.max(0, Math.floor(limit)) : 140).join(\"\")}</p>\n {signature && <p className=\"kz-pinned-note-signature\">{signature}</p>}\n {action && <div className=\"kz-pinned-note-action\">{action}</div>}\n </div>\n </article>\n </Stuck>\n );\n}\n","\"use client\";\n\nimport * as React from \"react\";\n\nimport { cn } from \"../cn\";\nimport { TapedPhoto } from \"../taped-photo\";\nimport { Attachment, finite, type WallObjectProps } from \"./attachment\";\n\nexport interface PolaroidProps extends Omit<React.ComponentProps<\"figure\">, \"children\" | \"style\">, WallObjectProps {\n /** The photo slot: an img or next/image, including fill inside this positioned frame. Supply its alt text. */\n img: React.ReactNode;\n /** A short handwritten caption, using the --kz-font-cahier role. */\n caption?: React.ReactNode;\n /** Enable the first-view develop effect; defaults to true, never runs under reduced motion. */\n develop?: boolean;\n}\n\n/** A photo held to the wall by tape or a pin, with a handwritten caption. */\nexport function Polaroid({ img, caption, rotation = 0, attachment = \"tape\", attachmentRotation = 0, develop = true, className, ...props }: Readonly<PolaroidProps>) {\n const ref = React.useRef<HTMLDivElement>(null);\n const [state, setState] = React.useState<\"waiting\" | \"ready\" | undefined>();\n React.useEffect(() => {\n if (!develop || !ref.current || typeof IntersectionObserver === \"undefined\" || typeof matchMedia === \"undefined\") return;\n const preference = matchMedia(\"(prefers-reduced-motion: reduce)\");\n let seen = false;\n let observer: IntersectionObserver | undefined;\n const sync = () => {\n observer?.disconnect();\n if (preference.matches) {\n seen = true;\n setState(undefined);\n } else if (!seen) {\n setState(\"waiting\");\n observer = new IntersectionObserver((entries) => {\n if (seen || !entries.some((entry) => entry.isIntersecting)) return;\n seen = true;\n setState(\"ready\");\n observer?.disconnect();\n }, { threshold: 0.15 });\n observer.observe(ref.current!);\n }\n };\n sync();\n preference.addEventListener(\"change\", sync);\n return () => { observer?.disconnect(); preference.removeEventListener(\"change\", sync); };\n }, [develop]);\n return (\n <TapedPhoto {...props} className={cn(\"kz-polaroid\", className)} tilt={finite(rotation)} tape={attachment === \"pin\" ? \"none\" : \"top\"} caption={caption}\n style={{ \"--kz-wall-attachment-rotation\": `${finite(attachmentRotation)}deg` } as React.CSSProperties} data-develop={develop ? state : undefined}>\n {attachment === \"pin\" && <Attachment attachment=\"pin\" attachmentRotation={attachmentRotation} />}\n <div ref={ref} className=\"kz-polaroid-photo\">{img}</div>\n </TapedPhoto>\n );\n}\n","import type { CSSProperties } from \"react\";\n\nimport { cn } from \"../cn\";\n\nexport interface WallObjectProps {\n /** Tilt in degrees, deterministic; defaults to zero. */\n rotation?: number;\n /** A tape strip or a pin; defaults to tape. */\n attachment?: \"tape\" | \"pin\";\n /** The tape or pin's tilt in degrees; defaults to zero. */\n attachmentRotation?: number;\n}\n\nexport const finite = (value: number) => Number.isFinite(value) ? value : 0;\nexport const rotationStyle = (rotation: number): CSSProperties =>\n ({ \"--kz-wall-rotation\": `${finite(rotation)}deg` }) as CSSProperties;\n\nexport function Attachment({ attachment = \"tape\", attachmentRotation = 0 }: Readonly<WallObjectProps>) {\n return <span aria-hidden=\"true\" className={cn(\"kz-wall-attachment\", attachment === \"pin\" ? \"kz-wall-pin\" : \"kz-wall-tape\")} style={{ transform: `rotate(${finite(attachmentRotation)}deg)` }} />;\n}\n","\"use client\";\n\nimport * as React from \"react\";\n\nimport { cn } from \"../cn\";\nimport { rotationStyle } from \"./attachment\";\n\nexport interface ShopSignProps extends Omit<React.ComponentProps<\"div\">, \"style\"> {\n /** The shop's name as live text, in the sign's lettering: the page's heading (`as`). Prefer it to an image of the name. */\n children?: React.ReactNode;\n /** The element of the name: the page's `h1` by default, `h2`/`h3` for a second sign, `p` for none. A sign on a `Wall` is a `p` unless told otherwise. */\n as?: \"h1\" | \"h2\" | \"h3\" | \"p\";\n /** The owner's logo or wordmark, optional beside the name. Name an SVG/image accessibly, or use readable text. */\n logo?: React.ReactNode;\n /** Enamel plate and screws, softly glowing neon, a time-worn painted sign, or `none` (the name alone on paper). */\n variant?: \"enamel\" | \"neon\" | \"painted\" | \"none\";\n /** Deterministic tilt in degrees; defaults to zero. */\n rotation?: number;\n /** Allow one soft neon flicker the first time the sign is seen; defaults to true, never loops, respects reduced motion. */\n animated?: boolean;\n}\n\n/** The neon's first view: `waiting` until it is on screen, then `ready` once. Nothing under reduced motion or without observers. */\nfunction useFirstView(enabled: boolean) {\n const ref = React.useRef<HTMLDivElement>(null);\n const [state, setState] = React.useState<\"waiting\" | \"ready\" | undefined>();\n React.useEffect(() => {\n if (!enabled || !ref.current || typeof IntersectionObserver === \"undefined\" || typeof matchMedia === \"undefined\") return;\n const preference = matchMedia(\"(prefers-reduced-motion: reduce)\");\n let seen = false;\n let observer: IntersectionObserver | undefined;\n const sync = () => {\n observer?.disconnect();\n if (preference.matches) {\n setState(undefined);\n } else if (!seen) {\n setState(\"waiting\");\n observer = new IntersectionObserver((entries) => {\n if (seen || !entries.some((entry) => entry.isIntersecting)) return;\n seen = true;\n setState(\"ready\");\n observer?.disconnect();\n }, { threshold: 0.3 });\n observer.observe(ref.current!);\n }\n };\n sync();\n preference.addEventListener(\"change\", sync);\n return () => { observer?.disconnect(); preference.removeEventListener(\"change\", sync); };\n }, [enabled]);\n return [ref, state] as const;\n}\n\n/** A shop's own mark, as a plate, a neon, a painted sign, or the name alone. */\nexport function ShopSign({ children, as: Name = \"h1\", logo, variant = \"enamel\", rotation = 0, animated = true, className, ...props }: Readonly<ShopSignProps>) {\n const [ref, lit] = useFirstView(variant === \"neon\" && animated);\n return (\n <div {...props} ref={ref} className={cn(\"kz-shop-sign kz-wall-object\", className)} style={rotationStyle(rotation)} data-variant={variant} data-animated={animated ? \"\" : undefined} data-lit={lit}>\n {variant === \"enamel\" && [0, 1, 2, 3].map((corner) => <span key={corner} aria-hidden=\"true\" className=\"kz-shop-sign-screw\" data-corner={corner} />)}\n {logo && <div className=\"kz-shop-sign-logo\">{logo}</div>}\n {children && <Name className=\"kz-shop-sign-name\">{children}</Name>}\n </div>\n );\n}\n","\"use client\";\n\nimport * as React from \"react\";\n\nimport { cn } from \"../cn\";\nimport { finite } from \"./attachment\";\nimport { PinnedNote, type PinnedNoteProps } from \"./pinned-note\";\nimport { Polaroid, type PolaroidProps } from \"./polaroid\";\nimport { ShopSign, type ShopSignProps } from \"./shop-sign\";\n\nexport interface WallPosition {\n /** Stable identity for this object. */\n id: string;\n /** Horizontal placement as a percentage (0–100); clamped to the wall. Unused by the tidy layout. */\n x?: number;\n /** Vertical placement as a percentage (0–100); clamped to the wall. Unused by the tidy layout. */\n y?: number;\n /** Tilt in degrees; defaults to zero. */\n rotation?: number;\n /** Stacking and reading order, ascending; ties preserve input order. */\n z: number;\n}\n\n/** The item's kind chooses its component; its remaining fields are that component's props. */\nexport type WallItem = WallPosition & (\n | ({ /** A framed photo. */ kind: \"polaroid\" } & PolaroidProps)\n | ({ /** A short pinned message. */ kind: \"note\" } & PinnedNoteProps)\n | ({ /** The owner's sign. */ kind: \"sign\" } & ShopSignProps)\n);\n\ntype DistributiveOmit<T, K extends PropertyKey> = T extends unknown ? Omit<T, K> : never;\n\nexport interface WallProps extends Omit<React.ComponentProps<\"ul\">, \"children\" | \"style\" | \"role\"> {\n /** The read-only objects; never mutated. Sorted by z for reading, keyboard and phone order. */\n items: readonly WallItem[];\n /** CSS/SVG texture; no image download. Defaults to plaster. */\n texture?: \"brick\" | \"zellige\" | \"ridge\" | \"plaster\";\n /** Draws at most this many items (the first in z order); defaults to 12. The rest belongs to the host's « see the whole wall ». */\n max?: number;\n /** A fixed desktop surface height in pixels (minimum 320). Absent, the surface is a fixed 16:9 box. Phones grow with content. */\n height?: number;\n /** Desktop object width in pixels (minimum 120); defaults to 240 and never exceeds the surface. */\n itemWidth?: number;\n /**\n * `pinned` (default): objects placed at x / y on a fixed surface. `tidy`: the Cahier pinboard — a dense CSS grid (3 columns,\n * 2 on a phone, 1 on a very small one), a note may span two, each tilted 1–2° by its id (no random position), no JS layout.\n */\n layout?: \"pinned\" | \"tidy\";\n}\n\n/** A tilt of 1 to 2 degrees, either way, derived from the id: the same wall draws the same everywhere (server and client). */\nexport function tidyTilt(id: string): number {\n let h = 2166136261;\n for (let i = 0; i < id.length; i += 1) h = Math.imul(h ^ id.charCodeAt(i), 16777619);\n const n = (h >>> 0) % 4; // 0..3\n return [-2, -1, 1, 2][n]!;\n}\n\n/** The object of one item, straight: the wall places and tilts it. A sign on a wall is a paragraph, not a second h1. */\nfunction WallObject({ item }: { readonly item: DistributiveOmit<WallItem, keyof WallPosition> }) {\n if (item.kind === \"polaroid\") return <Polaroid {...item} rotation={0} />;\n if (item.kind === \"note\") return <PinnedNote {...item} rotation={0} />;\n return <ShopSign {...item} as={item.as ?? \"p\"} rotation={0} />;\n}\n\n/** A decorative textured surface over a real keyboard-reachable list; never an editor. */\nexport function Wall({ items, texture = \"plaster\", max = 12, height, itemWidth = 240, layout = \"pinned\", className, ...props }: Readonly<WallProps>) {\n const patternId = React.useId().replaceAll(\":\", \"\");\n const drawn = Math.max(0, Math.floor(finite(max)));\n return (\n <ul {...props} role=\"list\" className={cn(\"kz-wall\", className)} data-texture={texture} data-layout={layout === \"tidy\" ? \"tidy\" : undefined} data-count={Math.min(items.length, drawn)} data-fixed-height={height === undefined ? undefined : \"\"} style={{ ...(height === undefined ? null : { \"--kz-wall-height\": `${Math.max(320, finite(height))}px` }), \"--kz-wall-item-width\": `${Math.max(120, finite(itemWidth))}px` } as React.CSSProperties}>\n {[...items].sort((a, b) => finite(a.z) - finite(b.z)).slice(0, drawn).map(({ id, x = 0, y = 0, rotation, z: _z, ...item }, rank) => (\n <li key={id} className=\"kz-wall-item\" tabIndex={0} data-span={layout === \"tidy\" && item.kind === \"note\" ? \"2\" : undefined} style={{\n \"--kz-wall-x\": `${Math.min(100, Math.max(0, finite(x)))}%`,\n \"--kz-wall-y\": `${Math.min(100, Math.max(0, finite(y)))}%`,\n \"--kz-wall-rotation\": `${layout === \"tidy\" ? tidyTilt(id) : finite(rotation ?? 0)}deg`,\n zIndex: rank,\n } as React.CSSProperties}>\n <WallObject item={item} />\n </li>\n ))}\n {texture === \"brick\" && <li className=\"kz-wall-decoration\" aria-hidden=\"true\" role=\"presentation\"><svg width=\"100%\" height=\"100%\" aria-hidden=\"true\">\n <defs><pattern id={patternId} width=\"96\" height=\"48\" patternUnits=\"userSpaceOnUse\">\n <path d=\"M0 0H96M0 24H96M0 48H96M48 0V24M0 24V48M96 24V48\" fill=\"none\" stroke=\"var(--kz-border-default)\" strokeWidth=\"2\" />\n </pattern></defs><rect width=\"100%\" height=\"100%\" fill={`url(#${patternId})`} />\n </svg></li>}\n {texture === \"zellige\" && <li className=\"kz-wall-decoration\" aria-hidden=\"true\" role=\"presentation\"><svg width=\"100%\" height=\"100%\" aria-hidden=\"true\">\n <defs><pattern id={patternId} width=\"64\" height=\"64\" patternUnits=\"userSpaceOnUse\">\n <path d=\"M32 3 39 15 52 12 49 25 61 32 49 39 52 52 39 49 32 61 25 49 12 52 15 39 3 32 15 25 12 12 25 15Z\" fill=\"var(--kz-accent-soft)\" stroke=\"var(--kz-border-default)\" />\n <path d=\"m32 18 14 14-14 14-14-14Z\" fill=\"var(--kz-surface-2)\" stroke=\"var(--kz-accent-2)\" />\n </pattern></defs><rect width=\"100%\" height=\"100%\" fill={`url(#${patternId})`} />\n </svg></li>}\n {texture === \"ridge\" && <li className=\"kz-wall-decoration\" aria-hidden=\"true\" role=\"presentation\"><svg viewBox=\"0 0 1000 600\" preserveAspectRatio=\"none\" width=\"100%\" height=\"100%\" aria-hidden=\"true\">\n <path d=\"M0 380 170 100 290 300 450 70 620 330 790 120 1000 350V600H0Z\" fill=\"var(--kz-accent-soft)\" />\n <path d=\"M0 470 200 280 370 440 600 190 760 400 920 260 1000 390V600H0Z\" fill=\"var(--kz-surface-2)\" />\n <path d=\"M0 540 180 430 360 520 540 390 760 520 900 410 1000 480V600H0Z\" fill=\"var(--kz-surface-3)\" />\n </svg></li>}\n </ul>\n );\n}\n"],"mappings":";;;;;;;;;;AAEO,SAAS,SAAS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MAAK,gBAAe,0BAAAC,MAAC,SAAI,OAAM,QAAO,QAAO,QAAO,eAAY,QAC9I;AAAA,sBAAAD,KAAC,UAAK,0BAAAC,MAAC,aAAQ,IAAI,WAAW,OAAM,MAAK,QAAO,MAAK,cAAa,kBAChE;AAAA,wBAAAD,KAAC,UAAK,GAAE,mGAAkG,MAAK,yBAAwB,QAAO,4BAA2B;AAAA,QACzK,gBAAAA,KAAC,UAAK,GAAE,6BAA4B,MAAK,uBAAsB,QAAO,sBAAqB;AAAA,SAC7F,GAAU;AAAA,MAAO,gBAAAA,KAAC,UAAK,OAAM,QAAO,QAAO,QAAO,MAAM,QAAQ,SAAS,KAAK;AAAA,OAChF,GAAM;AAAA,IACL,YAAY,WAAW,gBAAAA,KAAC,QAAG,WAAU,sBAAqB,eAAY,QAAO,MAAK,gBAAe,0BAAAC,MAAC,SAAI,SAAQ,gBAAe,qBAAoB,QAAO,OAAM,QAAO,QAAO,QAAO,eAAY,QAC9L;AAAA,sBAAAD,KAAC,UAAK,GAAE,iEAAgE,MAAK,yBAAwB;AAAA,MACrG,gBAAAA,KAAC,UAAK,GAAE,kEAAiE,MAAK,uBAAsB;AAAA,MACpG,gBAAAA,KAAC,UAAK,GAAE,kEAAiE,MAAK,uBAAsB;AAAA,OACtG,GAAM;AAAA,KACR;AAEJ;","names":["jsx","jsxs","jsx","jsx","jsxs","React","jsx","jsxs","React","jsx","jsxs"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krizaka/ui",
3
- "version": "4.4.0",
3
+ "version": "4.5.0",
4
4
  "description": "The Krizaka front-end platform's components: the primitives (button, card, dialog, toast, menu, field, tabs, chip, switch, slider, command palette, theme, countdown…) on the semantic --kz-* tokens, the animated marks (Krizaka, Sovkora, Verikora, Folioviv) and the motion signature — web and /native.",
5
5
  "keywords": [
6
6
  "krizaka",
@@ -216,6 +216,10 @@
216
216
  "types": "./dist/chip-row.d.ts",
217
217
  "import": "./dist/chip-row.js"
218
218
  },
219
+ "./columns": {
220
+ "types": "./dist/columns.d.ts",
221
+ "import": "./dist/columns.js"
222
+ },
219
223
  "./switch": {
220
224
  "types": "./dist/switch.d.ts",
221
225
  "import": "./dist/switch.js"
@@ -1012,7 +1016,7 @@
1012
1016
  ],
1013
1017
  "peerDependencies": {
1014
1018
  "@krizaka/query": ">=0.3.0",
1015
- "@krizaka/tailwind": ">=4.4.0",
1019
+ "@krizaka/tailwind": ">=4.5.0",
1016
1020
  "@maplibre/maplibre-react-native": ">=11",
1017
1021
  "@shopify/flash-list": ">=2",
1018
1022
  "expo-camera": ">=16",
@@ -1844,6 +1848,16 @@
1844
1848
  "clsx"
1845
1849
  ]
1846
1850
  },
1851
+ {
1852
+ "name": "./columns",
1853
+ "path": "dist/columns.js",
1854
+ "limit": "1.3 kB",
1855
+ "gzip": true,
1856
+ "ignore": [
1857
+ "tailwind-variants",
1858
+ "clsx"
1859
+ ]
1860
+ },
1847
1861
  {
1848
1862
  "name": "./pagination",
1849
1863
  "path": "dist/pagination.js",
@@ -3480,16 +3494,16 @@
3480
3494
  "sonner": "^2.0.8",
3481
3495
  "tailwind-variants": "^3.3.1",
3482
3496
  "zod": "^4.6.7",
3483
- "@krizaka/icons": "^0.10.0",
3484
3497
  "@krizaka/intl": "^0.4.1",
3485
- "@krizaka/pacer": "^0.2.0",
3486
- "@krizaka/tokens": "^4.4.0"
3498
+ "@krizaka/tokens": "^4.5.0",
3499
+ "@krizaka/icons": "^0.10.0",
3500
+ "@krizaka/pacer": "^0.2.0"
3487
3501
  },
3488
3502
  "scripts": {
3489
3503
  "build": "node -e \"const fs=require('node:fs');fs.rmSync('dist',{recursive:true,force:true});for(const f of fs.readdirSync('registry/examples',{recursive:true}))if(/\\.(js|d\\.ts)$/.test(f))fs.rmSync('registry/examples/'+f)\" && tsup && node -e \"require('node:fs').copyFileSync('src/motion.css','dist/motion.css');require('node:fs').copyFileSync('src/blocks.css','dist/blocks.css');require('node:fs').copyFileSync('src/story.css','dist/story.css')\" && node scripts/build-registry.mjs",
3490
3504
  "lint": "eslint . --max-warnings 0 && tsc --noEmit --noUnusedParameters --noFallthroughCasesInSwitch --noImplicitReturns",
3491
3505
  "typecheck": "tsc --noEmit",
3492
- "test": "vitest run --coverage && jest",
3506
+ "test": "vitest run --coverage && jest --coverage",
3493
3507
  "size": "size-limit && node ../../tools/usage-inventory.mjs --budgets",
3494
3508
  "publint": "publint && attw --pack . --profile esm-only --exclude-entrypoints ./motion.css ./blocks.css ./story.css ./tailwind.css && node scripts/consumer.mjs && node scripts/native-dist.mjs"
3495
3509
  }
@@ -177,7 +177,7 @@
177
177
  "files": [
178
178
  {
179
179
  "path": "account-menu/account-menu.tsx",
180
- "content": "// Client (a portal). The signed-in person's menu under their avatar — who you are first (picture, name, e-mail), then\n// the places (profile, settings), the language as a compact submenu, the extras, and Sign out (a quiet item, not a\n// red alert). Built on DropdownMenu, so the keyboard, the focus return and the collisions are Radix's.\nimport * as React from \"react\";\n\nimport { Avatar, type AvatarProps } from \"../avatar/avatar\";\nimport { cn } from \"../cn\";\nimport { DropdownMenu } from \"../dropdown-menu/dropdown-menu\";\n\nexport interface AccountMenuLink {\n id: string;\n label: string;\n href: string;\n /** A signature icon. */\n icon?: React.ReactNode;\n}\n\nexport interface AccountMenuLanguage {\n /** The row's words (`Language`). */\n label: string;\n /** The current value (`en`). */\n value: string;\n options: readonly { value: string; label: string }[];\n onChange: (value: string) => void;\n}\n\n/** The theme row: the same shape as the language's (a submenu that shows the current choice). */\nexport type AccountMenuTheme = AccountMenuLanguage;\n\nexport interface AccountMenuProps {\n /** The trigger's accessible name (`Account`). */\n label: string;\n /** Their name; falls back to the e-mail. */\n name?: string;\n /** Their e-mail, shown under the name. */\n email?: string;\n /** The picture: `src`, or `defaultAvatar` (`{ brand, seed }`) for the product's default person. */\n avatar?: Omit<AvatarProps, \"size\">;\n /**\n * Show the name beside the avatar in the trigger: `true` or `\"sm\"` from 640 px, `\"lg\"` from 1024 px (the family's top\n * bar, where search and the counts take the room below it), `false` never.\n * @default true\n */\n showName?: boolean | \"sm\" | \"lg\";\n /** Where to go: profile, settings… */\n links?: readonly AccountMenuLink[];\n /** The app's link component (Next's `Link`); an `<a>` otherwise. */\n linkAs?: React.ElementType;\n /** The language, as a submenu that shows the current one. */\n language?: AccountMenuLanguage;\n /** The theme (light, dark, system), as a submenu under the language: the family keeps preferences in the account menu. */\n theme?: AccountMenuTheme;\n /** Extra rows between the preferences and Sign out. */\n children?: React.ReactNode;\n /** The last row: its words, what it does, an optional icon. */\n signOut: { label: string; onSelect: () => void; icon?: React.ReactNode };\n /** Classes for the trigger. */\n className?: string;\n}\n\n/** The account menu: avatar trigger → identity header, links, language submenu, Sign out. */\nexport function AccountMenu({ label, name, email, avatar, showName = true, links = [], linkAs: Link = \"a\", language, theme, children, signOut, className }: AccountMenuProps) {\n const title = name || email || \"\";\n return (\n <DropdownMenu.Root>\n <DropdownMenu.Trigger\n aria-label={label}\n className={cn(\"flex items-center gap-2.5 rounded-lg p-1 transition-colors duration-150 hover:bg-surface-2 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring\", className)}\n >\n <Avatar size=\"sm\" fallback={title.charAt(0).toUpperCase() || \"?\"} {...avatar} />\n {/* Drawn by CSS: the name is not text of the button, so its accessible name stays `label` with no label-content-name-mismatch. */}\n {showName && title && (\n <span\n aria-hidden\n data-name={title}\n className={cn(\"hidden max-w-40 truncate text-sm font-medium text-fg-secondary after:content-[attr(data-name)]\", showName === \"lg\" ? \"lg:inline-block\" : \"sm:inline-block\")}\n />\n )}\n </DropdownMenu.Trigger>\n <DropdownMenu.Content align=\"end\" className=\"w-64\">\n <DropdownMenu.Label className=\"flex items-center gap-3 py-2 normal-case tracking-normal\">\n <Avatar size=\"md\" fallback={title.charAt(0).toUpperCase() || \"?\"} {...avatar} />\n <span className=\"min-w-0\">\n <span className=\"block truncate text-sm font-semibold text-fg\">{title}</span>\n {name && email && name !== email && <span className=\"block truncate text-xs font-normal text-fg-secondary\">{email}</span>}\n </span>\n </DropdownMenu.Label>\n {links.length > 0 && <DropdownMenu.Separator />}\n {links.map((link) => (\n <DropdownMenu.Item key={link.id} asChild>\n <Link href={link.href}>\n {link.icon}\n {link.label}\n </Link>\n </DropdownMenu.Item>\n ))}\n {(language || theme || children) && <DropdownMenu.Separator />}\n {language && <Choice {...language} />}\n {theme && <Choice {...theme} />}\n {children}\n <DropdownMenu.Separator />\n <DropdownMenu.Item onSelect={() => signOut.onSelect()}>\n {signOut.icon}\n {signOut.label}\n </DropdownMenu.Item>\n </DropdownMenu.Content>\n </DropdownMenu.Root>\n );\n}\n\n/** A preference as a submenu that names the current choice. */\nfunction Choice({ label, value, options, onChange }: AccountMenuLanguage) {\n const current = options.find((o) => o.value === value)?.label;\n return (\n <DropdownMenu.Sub>\n <DropdownMenu.SubTrigger>\n {label}\n {current && <span className=\"ml-auto mr-1 text-xs text-fg-secondary\">{current}</span>}\n </DropdownMenu.SubTrigger>\n <DropdownMenu.SubContent>\n <DropdownMenu.RadioGroup value={value} onValueChange={onChange}>\n {options.map((o) => (\n <DropdownMenu.RadioItem key={o.value} value={o.value}>\n {o.label}\n </DropdownMenu.RadioItem>\n ))}\n </DropdownMenu.RadioGroup>\n </DropdownMenu.SubContent>\n </DropdownMenu.Sub>\n );\n}\n"
180
+ "content": "// Client (a portal). The signed-in person's menu under their avatar — who you are first (picture, name, e-mail), then\n// the places (profile, settings), the language as a compact submenu, the extras, and Sign out (a quiet item, not a\n// red alert). Built on DropdownMenu, so the keyboard, the focus return and the collisions are Radix's.\nimport * as React from \"react\";\n\nimport { Avatar, type AvatarProps } from \"../avatar/avatar\";\nimport { cn } from \"../cn\";\nimport { DropdownMenu } from \"../dropdown-menu/dropdown-menu\";\n\nexport interface AccountMenuLink {\n id: string;\n label: string;\n href: string;\n /** A signature icon. */\n icon?: React.ReactNode;\n}\n\nexport interface AccountMenuLanguage {\n /** The row's words (`Language`). */\n label: string;\n /** The current value (`en`). */\n value: string;\n options: readonly { value: string; label: string }[];\n onChange: (value: string) => void;\n}\n\n/** The theme row: the same shape as the language's (a submenu that shows the current choice). */\nexport type AccountMenuTheme = AccountMenuLanguage;\n\nexport interface AccountMenuProps {\n /** The trigger's accessible name (`Account`). */\n label: string;\n /** Their name; falls back to the e-mail. */\n name?: string;\n /** Their e-mail, shown under the name. */\n email?: string;\n /** The picture: `src`, or `defaultAvatar` (`{ brand, seed }`) for the product's default person. */\n avatar?: Omit<AvatarProps, \"size\">;\n /**\n * Show the name beside the avatar in the trigger: `true` or `\"sm\"` from 640 px, `\"lg\"` from 1024 px (the family's top\n * bar, where search and the counts take the room below it), `false` never.\n * @default true\n */\n showName?: boolean | \"sm\" | \"lg\";\n /** Where to go: profile, settings… */\n links?: readonly AccountMenuLink[];\n /** The app's link component (Next's `Link`); an `<a>` otherwise. */\n linkAs?: React.ElementType;\n /** The language, as a submenu that shows the current one. */\n language?: AccountMenuLanguage;\n /** The theme (light, dark, system), as a submenu under the language: the family keeps preferences in the account menu. */\n theme?: AccountMenuTheme;\n /** Extra rows between the preferences and Sign out. */\n children?: React.ReactNode;\n /** The last row: its words, what it does, an optional icon. */\n signOut: { label: string; onSelect: () => void; icon?: React.ReactNode };\n /** Classes for the trigger. */\n className?: string;\n}\n\n/** The account menu: avatar trigger → identity header, links, language submenu, Sign out. */\nexport function AccountMenu({ label, name, email, avatar, showName = true, links = [], linkAs: Link = \"a\", language, theme, children, signOut, className }: Readonly<AccountMenuProps>) {\n const title = name || email || \"\";\n return (\n <DropdownMenu.Root>\n <DropdownMenu.Trigger\n aria-label={label}\n className={cn(\"flex items-center gap-2.5 rounded-lg p-1 transition-colors duration-150 hover:bg-surface-2 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring\", className)}\n >\n <Avatar size=\"sm\" fallback={title.charAt(0).toUpperCase() || \"?\"} {...avatar} />\n {/* Drawn by CSS: the name is not text of the button, so its accessible name stays `label` with no label-content-name-mismatch. */}\n {showName && title && (\n <span\n aria-hidden\n data-name={title}\n className={cn(\"hidden max-w-40 truncate text-sm font-medium text-fg-secondary after:content-[attr(data-name)]\", showName === \"lg\" ? \"lg:inline-block\" : \"sm:inline-block\")}\n />\n )}\n </DropdownMenu.Trigger>\n <DropdownMenu.Content align=\"end\" className=\"w-64\">\n <DropdownMenu.Label className=\"flex items-center gap-3 py-2 normal-case tracking-normal\">\n <Avatar size=\"md\" fallback={title.charAt(0).toUpperCase() || \"?\"} {...avatar} />\n <span className=\"min-w-0\">\n <span className=\"block truncate text-sm font-semibold text-fg\">{title}</span>\n {name && email && name !== email && <span className=\"block truncate text-xs font-normal text-fg-secondary\">{email}</span>}\n </span>\n </DropdownMenu.Label>\n {links.length > 0 && <DropdownMenu.Separator />}\n {links.map((link) => (\n <DropdownMenu.Item key={link.id} asChild>\n <Link href={link.href}>\n {link.icon}\n {link.label}\n </Link>\n </DropdownMenu.Item>\n ))}\n {(language || theme || children) && <DropdownMenu.Separator />}\n {language && <Choice {...language} />}\n {theme && <Choice {...theme} />}\n {children}\n <DropdownMenu.Separator />\n <DropdownMenu.Item onSelect={() => signOut.onSelect()}>\n {signOut.icon}\n {signOut.label}\n </DropdownMenu.Item>\n </DropdownMenu.Content>\n </DropdownMenu.Root>\n );\n}\n\n/** A preference as a submenu that names the current choice. */\nfunction Choice({ label, value, options, onChange }: Readonly<AccountMenuLanguage>) {\n const current = options.find((o) => o.value === value)?.label;\n return (\n <DropdownMenu.Sub>\n <DropdownMenu.SubTrigger>\n {label}\n {current && <span className=\"ml-auto mr-1 text-xs text-fg-secondary\">{current}</span>}\n </DropdownMenu.SubTrigger>\n <DropdownMenu.SubContent>\n <DropdownMenu.RadioGroup value={value} onValueChange={onChange}>\n {options.map((o) => (\n <DropdownMenu.RadioItem key={o.value} value={o.value}>\n {o.label}\n </DropdownMenu.RadioItem>\n ))}\n </DropdownMenu.RadioGroup>\n </DropdownMenu.SubContent>\n </DropdownMenu.Sub>\n );\n}\n"
181
181
  },
182
182
  {
183
183
  "path": "account-menu/index.ts",
@@ -189,7 +189,7 @@
189
189
  },
190
190
  {
191
191
  "path": "meta.ts",
192
- "content": "// The documentation of a component, carried by its code: each primitive has a `meta.ts` beside its source\n// (`src/<name>/meta.ts`; a component that exists only in React Native: `src/native/meta/<name>.ts`). Never built into\n// the package: `scripts/build-registry.mjs` reads them into `registry/<name>.json`, which ui.krizaka.com (apps/site) renders as\n// ui.krizaka.com/components/<name>, and `scripts/registry.test.mjs` fails when one is missing or incomplete.\n//\n// Why a typed module and not JSDoc tags: the fields are lists and links (`related`, `whenNotToUse[].use`, examples),\n// which a type checks and a comment does not; the file is plain data (erasable TypeScript), so Node reads it without a\n// compiler, and an editor completes it.\n\n/** Every documented component: the web primitives (one entry of the package each) and the native-only ones. */\nexport type ComponentName =\n | \"notification-preferences\"\n | \"quota-meter\"\n | \"environment-notice\"\n | \"embed-facade\"\n | \"reviews\"\n | \"margin-layout\"\n | \"analysis-report\"\n | \"status-chip\"\n | \"kind-config-editor\"\n | \"agenda\"\n | \"account-settings\"\n | \"drop-overlay\"\n | \"upload-queue\"\n | \"achievement\"\n | \"anatomy-plate\"\n | \"bird-plate\"\n | \"taped-photo\"\n | \"stuck\"\n | \"doodle\"\n | \"signature\"\n | \"grade-stamp\"\n | \"versus-card\"\n | \"speed-lines\"\n | \"site-cahier\"\n | \"text-style\"\n | \"flock\"\n | \"elephant\"\n | \"footnote\"\n | \"page-index\"\n | \"chapter\"\n | \"specimen-tag\"\n | \"action-bar\"\n | \"action-sheet\"\n | \"activity-feed\"\n | \"alert\"\n | \"app-frame\"\n | \"desktop-window\"\n | \"form-flow\"\n | \"grid\"\n | \"list-detail\"\n | \"state-screen\"\n | \"app-header\"\n | \"app-shell\"\n | \"argument-card\"\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 | \"copy-button\"\n | \"money-input\"\n | \"price-catalogue-editor\"\n | \"promo-code-field\"\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 | \"image-cropper\"\n | \"image-viewer\"\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 | \"waveform\"\n | \"proposal\"\n | \"qr-code\"\n | \"identity-card\"\n | \"entity-header\"\n | \"collection-switcher\"\n | \"marketing-layout\"\n | \"mascot-quote\"\n | \"mascot-state\"\n | \"mascots\"\n | \"match-dialog\"\n | \"media-capture\"\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 | \"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 | \"shop-gallery\"\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 | \"shop\"\n | \"shop-composer\"\n | \"schema-form\"\n | \"settings-layout\"\n | \"account-menu\"\n | \"showcase\"\n | \"step-showcase\"\n | \"site-footer\"\n | \"sites\"\n | \"skeleton\"\n | \"skip-link\"\n | \"slider\"\n | \"slot-picker\"\n | \"slot\"\n | \"spinner\"\n | \"sticky-action\"\n | \"splash-handoff\"\n | \"split-view\"\n | \"stage-banner\"\n | \"stat\"\n | \"usage\"\n | \"status-page\"\n | \"step-progress\"\n | \"stepper\"\n | \"swipe-deck\"\n | \"swipeable-row\"\n | \"switch\"\n | \"tab-bar\"\n | \"tabs\"\n | \"tag-input\"\n | \"tag-selector\"\n | \"terminal-replay\"\n | \"theme\"\n | \"toast\"\n | \"toc\"\n | \"tooltip\"\n | \"tree-view\"\n | \"txt\"\n | \"update-prompt\"\n | \"verified-badge\"\n | \"vertical-video\"\n | \"video-player\"\n | \"video-trimmer\"\n | \"virtual\"\n | \"wall\";\n\n/** Where a component exists: `@krizaka/ui/<name>` (web), `@krizaka/ui/native` (React Native), or both. */\nexport type Platform = \"web\" | \"native\" | \"both\";\n\n/**\n * Why a component is not on a platform — a decision, never a silence (the parity matrix of ui.krizaka.com/platforms):\n * - `gap` (✗): it belongs there and is not built yet; `issue` is the issue that tracks it (`krizaka/krizaka-ui#275`);\n * - `n/a`: it is not meant for that platform (a site's page block on a phone, a swipe on a desktop); `use` names the\n * component that answers there, when one does.\n */\nexport type Absence =\n | { readonly status: \"gap\"; readonly issue: string; readonly reason: string; readonly use?: undefined }\n | { readonly status: \"n/a\"; readonly reason: string; readonly use?: ComponentName; readonly issue?: undefined };\n\n/**\n * Desktop is the Sovkora 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 * `experimental`: created for a filed need (ADR-008 §4), it may change or go in any minor until its first consumer imports it; `adoption`\n * names that consumer's issue. `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 = \"experimental\" | \"stable\" | \"beta\" | \"deprecated\";\n\n/**\n * What a component is for (ADR-008 §3): the thirteen domains the documentation, the size budgets and the guards are\n * organised by. The domain is metadata: the entries stay flat (`@krizaka/ui/<name>`). `cahier` is the sites' register\n * (ADR-004): a product never imports it.\n */\nexport type Domain =\n | \"foundations\"\n | \"forms\"\n | \"data-display\"\n | \"navigation-shell\"\n | \"feedback\"\n | \"maps\"\n | \"media\"\n | \"commerce\"\n | \"identity\"\n | \"abuse\"\n | \"conversation\"\n | \"page-blocks\"\n | \"cahier\";\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 /** What it is for: one of the twelve domains (ADR-008 §3). */\n readonly domain: Domain;\n /** The `<repo>#<n>` issue of its first consumer: required for, and only for, an `experimental` component. */\n readonly adoption?: string;\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"
192
+ "content": "// The documentation of a component, carried by its code: each primitive has a `meta.ts` beside its source\n// (`src/<name>/meta.ts`; a component that exists only in React Native: `src/native/meta/<name>.ts`). Never built into\n// the package: `scripts/build-registry.mjs` reads them into `registry/<name>.json`, which ui.krizaka.com (apps/site) renders as\n// ui.krizaka.com/components/<name>, and `scripts/registry.test.mjs` fails when one is missing or incomplete.\n//\n// Why a typed module and not JSDoc tags: the fields are lists and links (`related`, `whenNotToUse[].use`, examples),\n// which a type checks and a comment does not; the file is plain data (erasable TypeScript), so Node reads it without a\n// compiler, and an editor completes it.\n\n/** Every documented component: the web primitives (one entry of the package each) and the native-only ones. */\nexport type ComponentName =\n | \"notification-preferences\"\n | \"quota-meter\"\n | \"environment-notice\"\n | \"embed-facade\"\n | \"reviews\"\n | \"margin-layout\"\n | \"analysis-report\"\n | \"status-chip\"\n | \"kind-config-editor\"\n | \"agenda\"\n | \"account-settings\"\n | \"drop-overlay\"\n | \"upload-queue\"\n | \"achievement\"\n | \"anatomy-plate\"\n | \"bird-plate\"\n | \"taped-photo\"\n | \"stuck\"\n | \"doodle\"\n | \"signature\"\n | \"grade-stamp\"\n | \"versus-card\"\n | \"speed-lines\"\n | \"site-cahier\"\n | \"text-style\"\n | \"flock\"\n | \"elephant\"\n | \"footnote\"\n | \"page-index\"\n | \"chapter\"\n | \"specimen-tag\"\n | \"action-bar\"\n | \"action-sheet\"\n | \"activity-feed\"\n | \"alert\"\n | \"app-frame\"\n | \"desktop-window\"\n | \"form-flow\"\n | \"grid\"\n | \"list-detail\"\n | \"state-screen\"\n | \"app-header\"\n | \"app-shell\"\n | \"argument-card\"\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 | \"columns\"\n | \"choice-grid\"\n | \"cn\"\n | \"code-block\"\n | \"combobox\"\n | \"comparison-table\"\n | \"command\"\n | \"component-page\"\n | \"confirm-button\"\n | \"copy-button\"\n | \"money-input\"\n | \"price-catalogue-editor\"\n | \"promo-code-field\"\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 | \"image-cropper\"\n | \"image-viewer\"\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 | \"waveform\"\n | \"proposal\"\n | \"qr-code\"\n | \"identity-card\"\n | \"entity-header\"\n | \"collection-switcher\"\n | \"marketing-layout\"\n | \"mascot-quote\"\n | \"mascot-state\"\n | \"mascots\"\n | \"match-dialog\"\n | \"media-capture\"\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 | \"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 | \"shop-gallery\"\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 | \"shop\"\n | \"shop-composer\"\n | \"schema-form\"\n | \"settings-layout\"\n | \"account-menu\"\n | \"showcase\"\n | \"step-showcase\"\n | \"site-footer\"\n | \"sites\"\n | \"skeleton\"\n | \"skip-link\"\n | \"slider\"\n | \"slot-picker\"\n | \"slot\"\n | \"spinner\"\n | \"sticky-action\"\n | \"splash-handoff\"\n | \"split-view\"\n | \"stage-banner\"\n | \"stat\"\n | \"usage\"\n | \"status-page\"\n | \"step-progress\"\n | \"stepper\"\n | \"swipe-deck\"\n | \"swipeable-row\"\n | \"switch\"\n | \"tab-bar\"\n | \"tabs\"\n | \"tag-input\"\n | \"tag-selector\"\n | \"terminal-replay\"\n | \"theme\"\n | \"toast\"\n | \"toc\"\n | \"tooltip\"\n | \"tree-view\"\n | \"txt\"\n | \"update-prompt\"\n | \"verified-badge\"\n | \"vertical-video\"\n | \"video-player\"\n | \"video-trimmer\"\n | \"virtual\"\n | \"wall\";\n\n/** Where a component exists: `@krizaka/ui/<name>` (web), `@krizaka/ui/native` (React Native), or both. */\nexport type Platform = \"web\" | \"native\" | \"both\";\n\n/**\n * Why a component is not on a platform — a decision, never a silence (the parity matrix of ui.krizaka.com/platforms):\n * - `gap` (✗): it belongs there and is not built yet; `issue` is the issue that tracks it (`krizaka/krizaka-ui#275`);\n * - `n/a`: it is not meant for that platform (a site's page block on a phone, a swipe on a desktop); `use` names the\n * component that answers there, when one does.\n */\nexport type Absence =\n | { readonly status: \"gap\"; readonly issue: string; readonly reason: string; readonly use?: undefined }\n | { readonly status: \"n/a\"; readonly reason: string; readonly use?: ComponentName; readonly issue?: undefined };\n\n/**\n * Desktop is the Sovkora 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 * `experimental`: created for a filed need (ADR-008 §4), it may change or go in any minor until its first consumer imports it; `adoption`\n * names that consumer's issue. `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 = \"experimental\" | \"stable\" | \"beta\" | \"deprecated\";\n\n/**\n * What a component is for (ADR-008 §3): the thirteen domains the documentation, the size budgets and the guards are\n * organised by. The domain is metadata: the entries stay flat (`@krizaka/ui/<name>`). `cahier` is the sites' register\n * (ADR-004): a product never imports it.\n */\nexport type Domain =\n | \"foundations\"\n | \"forms\"\n | \"data-display\"\n | \"navigation-shell\"\n | \"feedback\"\n | \"maps\"\n | \"media\"\n | \"commerce\"\n | \"identity\"\n | \"abuse\"\n | \"conversation\"\n | \"page-blocks\"\n | \"cahier\";\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 /** What it is for: one of the twelve domains (ADR-008 §3). */\n readonly domain: Domain;\n /** The `<repo>#<n>` issue of its first consumer: required for, and only for, an `experimental` component. */\n readonly adoption?: string;\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"
193
193
  }
194
194
  ],
195
195
  "dependencies": [],
@@ -566,7 +566,7 @@
566
566
  },
567
567
  {
568
568
  "path": "account-settings/appearance-settings.tsx",
569
- "content": "// Client (radio groups). How the workspace looks (ADR-006 §4, krizaka-ui#657): theme cards — a radio group of live miniatures\n// drawn from the tokens' own colours, one check on the chosen card —, then rows for the accent, the density, the language and, when the\n// product offers it, the sound (off by default, never under reduced motion). Driven by data: the product passes the themes it offers\n// (a subset of `appearance.themes` of @krizaka/tokens, at least system · light · dark), the accents that read on all of them, the values\n// and `onChange`s. It changes nothing by itself: `useAppearance()` of `@krizaka/ui/theme` applies the choice at once and keeps it in\n// the browser; the product saves it in the account too. Paper themes never belong here.\nimport * as React from \"react\";\n\nimport { Field } from \"../field\";\nimport { RadioGroup } from \"../radio-group\";\nimport { SettingsRow } from \"../settings-layout\";\nimport { Switch } from \"../switch\";\nimport { type LanguageOption, LanguagePicker } from \"./language-picker\";\n\n/** The colours a theme's miniature is drawn with (`appearance.themes[i].preview` of @krizaka/tokens). */\nexport type ThemePreview = { surface0: string; surface1: string; surface2: string; text: string; muted: string };\n\nexport type ThemeCardOption = {\n /** `system`, `light`, `dark`, `blueprint`, `carbone`. */\n id: string;\n /** Its name, passed translated. */\n label: string;\n /** One line: what it is, passed translated. */\n description?: string;\n /** Its colours; null for `system`, whose miniature is half light, half dark. */\n preview: ThemePreview | null;\n /** The two halves of the System miniature (`appearance.themes` light and dark previews). */\n halves?: readonly [ThemePreview, ThemePreview];\n};\n\nexport type AccentOption = {\n /** The brand id (`data-accent`). */\n id: string;\n /** Its name, passed translated (\"Forest green\"). */\n label: string;\n /** Its fill, for the swatch (`appearance.accents[i].dark.accent`). */\n color: string;\n};\n\nexport type AppearanceLabels = {\n /** The theme row: its name. */\n theme: string;\n /** One line under it. */\n themeHint: string;\n /** The accent row: its name. */\n accent: string;\n /** One line under it. */\n accentHint: string;\n /** The density row: its name. */\n density: string;\n /** One line under it. */\n densityHint: string;\n /** The language row: its name. */\n language: string;\n /** One line under it. */\n languageHint: string;\n /** The sound row: its name. */\n sound: string;\n /** One line under it. */\n soundHint: string;\n};\n\nexport const appearanceLabels: AppearanceLabels = {\n theme: \"Theme\",\n themeHint: \"The look of the workspace. System follows your device.\",\n accent: \"Accent colour\",\n accentHint: \"The colour of buttons and highlights.\",\n density: \"Density\",\n densityHint: \"How much fits on a screen.\",\n language: \"Language\",\n languageHint: \"The whole interface.\",\n sound: \"Sound\",\n soundHint: \"Small sounds when something is done. Off unless you turn it on, and never with reduced motion.\",\n};\n\nexport type AppearanceSettingsProps = {\n /** The themes offered: at least system, light and dark. */\n themes: readonly ThemeCardOption[];\n /** The id of the theme chosen. */\n theme: string;\n /** Called with the id chosen. */\n onThemeChange: (id: string) => void;\n /** The accents offered (the product's own first). Without it the row is not shown. */\n accents?: readonly AccentOption[];\n /** The id of the accent chosen; null for the product's own. */\n accent?: string | null;\n /** Called with the id chosen. */\n onAccentChange?: (id: string) => void;\n /** The densities offered, with their names (`standard`, `compact`). */\n densities?: readonly { value: string; label: string }[];\n /** The density chosen. */\n density?: string;\n /** Called with the density chosen. */\n onDensityChange?: (density: string) => void;\n /** The languages offered, each named in its own language. */\n languages?: readonly LanguageOption[];\n /** The code of the language chosen. */\n language?: string;\n /** Called with the code chosen. */\n onLanguageChange?: (code: string) => void;\n /** Shown only when given: the sound is opt-in. */\n sound?: boolean;\n /** Called with the new state. */\n onSoundChange?: (on: boolean) => void;\n /** The words, passed translated (English by default). */\n labels?: Partial<AppearanceLabels>;\n /** Classes merged on the root. */\n className?: string;\n};\n\nfunction Miniature({ preview }: { preview: ThemePreview }) {\n return (\n <span\n aria-hidden\n className=\"flex h-16 w-full overflow-hidden rounded-md border border-border-default\"\n style={{ background: preview.surface0 }}\n >\n <span className=\"m-1.5 flex w-1/3 flex-col gap-1 rounded-sm p-1\" style={{ background: preview.surface1 }}>\n <span className=\"h-1 w-3/4 rounded-full\" style={{ background: preview.text }} />\n <span className=\"h-1 w-1/2 rounded-full\" style={{ background: preview.muted }} />\n </span>\n <span className=\"my-1.5 mr-1.5 flex flex-1 flex-col gap-1 rounded-sm p-1.5\" style={{ background: preview.surface2 }}>\n <span className=\"h-1.5 w-2/3 rounded-full\" style={{ background: preview.text }} />\n <span className=\"h-1 w-full rounded-full\" style={{ background: preview.muted }} />\n <span className=\"h-1 w-5/6 rounded-full\" style={{ background: preview.muted }} />\n <span className=\"mt-auto h-2 w-1/3 rounded-sm bg-accent\" />\n </span>\n </span>\n );\n}\n\n/** The appearance rows of a settings page: theme cards, accent, density, language, sound. */\nexport function AppearanceSettings({\n themes,\n theme,\n onThemeChange,\n accents,\n accent,\n onAccentChange,\n densities,\n density,\n onDensityChange,\n languages,\n language,\n onLanguageChange,\n sound,\n onSoundChange,\n labels: given,\n className,\n}: AppearanceSettingsProps) {\n const labels = { ...appearanceLabels, ...given };\n const id = React.useId();\n return (\n <div className={className}>\n <SettingsRow label={labels.theme} description={labels.themeHint}>\n <RadioGroup.Root variant=\"cards\" label={labels.theme} value={theme} onValueChange={onThemeChange} className=\"grid w-full grid-cols-2 gap-3 sm:grid-cols-3\">\n {themes.map((option) => (\n <RadioGroup.Card key={option.id} value={option.id} aria-describedby={option.description ? `${id}-${option.id}` : undefined}>\n {option.preview ? (\n <Miniature preview={option.preview} />\n ) : option.halves ? (\n <span aria-hidden className=\"grid h-16 w-full grid-cols-2 overflow-hidden rounded-md border border-border-default\">\n <Miniature preview={option.halves[0]} />\n <Miniature preview={option.halves[1]} />\n </span>\n ) : null}\n <span className=\"font-semibold text-fg\">{option.label}</span>\n {option.description ? (\n <span id={`${id}-${option.id}`} className=\"text-xs font-normal text-fg-secondary\">\n {option.description}\n </span>\n ) : null}\n </RadioGroup.Card>\n ))}\n </RadioGroup.Root>\n </SettingsRow>\n {accents && accents.length > 0 && onAccentChange ? (\n <SettingsRow label={labels.accent} description={labels.accentHint} htmlFor={`${id}-accent`}>\n <span className=\"flex items-center gap-2\">\n <span aria-hidden className=\"h-4 w-4 rounded-full border border-border-default\" style={{ background: accents.find((a) => a.id === accent)?.color ?? accents[0]?.color }} />\n <Field.Root>\n <select\n id={`${id}-accent`}\n value={accent ?? accents[0]?.id}\n onChange={(event) => onAccentChange(event.target.value)}\n className=\"h-10 rounded-lg border border-border-control bg-surface-2 px-3 text-sm text-fg focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring\"\n >\n {accents.map((option) => (\n <option key={option.id} value={option.id}>\n {option.label}\n </option>\n ))}\n </select>\n </Field.Root>\n </span>\n </SettingsRow>\n ) : null}\n {densities && densities.length > 0 && onDensityChange ? (\n <SettingsRow label={labels.density} description={labels.densityHint}>\n <RadioGroup.Root variant=\"segmented\" label={labels.density} value={density} onValueChange={onDensityChange}>\n {densities.map((option) => (\n <RadioGroup.Segment key={option.value} value={option.value}>\n {option.label}\n </RadioGroup.Segment>\n ))}\n </RadioGroup.Root>\n </SettingsRow>\n ) : null}\n {languages && languages.length > 0 && onLanguageChange ? (\n <SettingsRow label={labels.language} description={labels.languageHint}>\n <LanguagePicker label={labels.language} showLabel={false} languages={languages} value={language ?? \"\"} onValueChange={onLanguageChange} />\n </SettingsRow>\n ) : null}\n {onSoundChange ? (\n <SettingsRow label={labels.sound} description={labels.soundHint}>\n <Switch label={labels.sound} checked={Boolean(sound)} onCheckedChange={onSoundChange} />\n </SettingsRow>\n ) : null}\n </div>\n );\n}\n"
569
+ "content": "// Client (radio groups). How the workspace looks (ADR-006 §4, krizaka-ui#657): theme cards — a radio group of live miniatures\n// drawn from the tokens' own colours, one check on the chosen card —, then rows for the accent, the density, the language and, when the\n// product offers it, the sound (off by default, never under reduced motion). Driven by data: the product passes the themes it offers\n// (a subset of `appearance.themes` of @krizaka/tokens, at least system · light · dark), the accents that read on all of them, the values\n// and `onChange`s. It changes nothing by itself: `useAppearance()` of `@krizaka/ui/theme` applies the choice at once and keeps it in\n// the browser; the product saves it in the account too. Paper themes never belong here.\nimport * as React from \"react\";\n\nimport { Field } from \"../field\";\nimport { RadioGroup } from \"../radio-group\";\nimport { SettingsRow } from \"../settings-layout\";\nimport { Switch } from \"../switch\";\nimport { type LanguageOption, LanguagePicker } from \"./language-picker\";\n\n/** The colours a theme's miniature is drawn with (`appearance.themes[i].preview` of @krizaka/tokens). */\nexport type ThemePreview = { surface0: string; surface1: string; surface2: string; text: string; muted: string };\n\nexport type ThemeCardOption = {\n /** `system`, `light`, `dark`, `blueprint`, `carbone`. */\n id: string;\n /** Its name, passed translated. */\n label: string;\n /** One line: what it is, passed translated. */\n description?: string;\n /** Its colours; null for `system`, whose miniature is half light, half dark. */\n preview: ThemePreview | null;\n /** The two halves of the System miniature (`appearance.themes` light and dark previews). */\n halves?: readonly [ThemePreview, ThemePreview];\n};\n\nexport type AccentOption = {\n /** The brand id (`data-accent`). */\n id: string;\n /** Its name, passed translated (\"Forest green\"). */\n label: string;\n /** Its fill, for the swatch (`appearance.accents[i].dark.accent`). */\n color: string;\n};\n\nexport type AppearanceLabels = {\n /** The theme row: its name. */\n theme: string;\n /** One line under it. */\n themeHint: string;\n /** The accent row: its name. */\n accent: string;\n /** One line under it. */\n accentHint: string;\n /** The density row: its name. */\n density: string;\n /** One line under it. */\n densityHint: string;\n /** The language row: its name. */\n language: string;\n /** One line under it. */\n languageHint: string;\n /** The sound row: its name. */\n sound: string;\n /** One line under it. */\n soundHint: string;\n};\n\nexport const appearanceLabels: AppearanceLabels = {\n theme: \"Theme\",\n themeHint: \"The look of the workspace. System follows your device.\",\n accent: \"Accent colour\",\n accentHint: \"The colour of buttons and highlights.\",\n density: \"Density\",\n densityHint: \"How much fits on a screen.\",\n language: \"Language\",\n languageHint: \"The whole interface.\",\n sound: \"Sound\",\n soundHint: \"Small sounds when something is done. Off unless you turn it on, and never with reduced motion.\",\n};\n\nexport type AppearanceSettingsProps = {\n /** The themes offered: at least system, light and dark. */\n themes: readonly ThemeCardOption[];\n /** The id of the theme chosen. */\n theme: string;\n /** Called with the id chosen. */\n onThemeChange: (id: string) => void;\n /** The accents offered (the product's own first). Without it the row is not shown. */\n accents?: readonly AccentOption[];\n /** The id of the accent chosen; null for the product's own. */\n accent?: string | null;\n /** Called with the id chosen. */\n onAccentChange?: (id: string) => void;\n /** The densities offered, with their names (`standard`, `compact`). */\n densities?: readonly { value: string; label: string }[];\n /** The density chosen. */\n density?: string;\n /** Called with the density chosen. */\n onDensityChange?: (density: string) => void;\n /** The languages offered, each named in its own language. */\n languages?: readonly LanguageOption[];\n /** The code of the language chosen. */\n language?: string;\n /** Called with the code chosen. */\n onLanguageChange?: (code: string) => void;\n /** Shown only when given: the sound is opt-in. */\n sound?: boolean;\n /** Called with the new state. */\n onSoundChange?: (on: boolean) => void;\n /** The words, passed translated (English by default). */\n labels?: Partial<AppearanceLabels>;\n /** Classes merged on the root. */\n className?: string;\n};\n\nfunction Miniature({ preview }: Readonly<{ preview: ThemePreview }>) {\n return (\n <span\n aria-hidden\n className=\"flex h-16 w-full overflow-hidden rounded-md border border-border-default\"\n style={{ background: preview.surface0 }}\n >\n <span className=\"m-1.5 flex w-1/3 flex-col gap-1 rounded-sm p-1\" style={{ background: preview.surface1 }}>\n <span className=\"h-1 w-3/4 rounded-full\" style={{ background: preview.text }} />\n <span className=\"h-1 w-1/2 rounded-full\" style={{ background: preview.muted }} />\n </span>\n <span className=\"my-1.5 mr-1.5 flex flex-1 flex-col gap-1 rounded-sm p-1.5\" style={{ background: preview.surface2 }}>\n <span className=\"h-1.5 w-2/3 rounded-full\" style={{ background: preview.text }} />\n <span className=\"h-1 w-full rounded-full\" style={{ background: preview.muted }} />\n <span className=\"h-1 w-5/6 rounded-full\" style={{ background: preview.muted }} />\n <span className=\"mt-auto h-2 w-1/3 rounded-sm bg-accent\" />\n </span>\n </span>\n );\n}\n\n/** The picture of a theme card: its miniature, or the two halves of the System one. */\nfunction themeArt(option: ThemeCardOption) {\n if (option.preview) return <Miniature preview={option.preview} />;\n if (option.halves) {\n return (\n <span aria-hidden className=\"grid h-16 w-full grid-cols-2 overflow-hidden rounded-md border border-border-default\">\n <Miniature preview={option.halves[0]} />\n <Miniature preview={option.halves[1]} />\n </span>\n );\n }\n return null;\n}\n\n/** The appearance rows of a settings page: theme cards, accent, density, language, sound. */\nexport function AppearanceSettings({\n themes,\n theme,\n onThemeChange,\n accents,\n accent,\n onAccentChange,\n densities,\n density,\n onDensityChange,\n languages,\n language,\n onLanguageChange,\n sound,\n onSoundChange,\n labels: given,\n className,\n}: Readonly<AppearanceSettingsProps>) {\n const labels = { ...appearanceLabels, ...given };\n const id = React.useId();\n return (\n <div className={className}>\n <SettingsRow label={labels.theme} description={labels.themeHint}>\n <RadioGroup.Root variant=\"cards\" label={labels.theme} value={theme} onValueChange={onThemeChange} className=\"grid w-full grid-cols-2 gap-3 sm:grid-cols-3\">\n {themes.map((option) => (\n <RadioGroup.Card key={option.id} value={option.id} aria-describedby={option.description ? `${id}-${option.id}` : undefined}>\n {themeArt(option)}\n <span className=\"font-semibold text-fg\">{option.label}</span>\n {option.description ? (\n <span id={`${id}-${option.id}`} className=\"text-xs font-normal text-fg-secondary\">\n {option.description}\n </span>\n ) : null}\n </RadioGroup.Card>\n ))}\n </RadioGroup.Root>\n </SettingsRow>\n {accents && accents.length > 0 && onAccentChange ? (\n <SettingsRow label={labels.accent} description={labels.accentHint} htmlFor={`${id}-accent`}>\n <span className=\"flex items-center gap-2\">\n <span aria-hidden className=\"h-4 w-4 rounded-full border border-border-default\" style={{ background: accents.find((a) => a.id === accent)?.color ?? accents[0]?.color }} />\n <Field.Root>\n <select\n id={`${id}-accent`}\n value={accent ?? accents[0]?.id}\n onChange={(event) => onAccentChange(event.target.value)}\n className=\"h-10 rounded-lg border border-border-control bg-surface-2 px-3 text-sm text-fg focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring\"\n >\n {accents.map((option) => (\n <option key={option.id} value={option.id}>\n {option.label}\n </option>\n ))}\n </select>\n </Field.Root>\n </span>\n </SettingsRow>\n ) : null}\n {densities && densities.length > 0 && onDensityChange ? (\n <SettingsRow label={labels.density} description={labels.densityHint}>\n <RadioGroup.Root variant=\"segmented\" label={labels.density} value={density} onValueChange={onDensityChange}>\n {densities.map((option) => (\n <RadioGroup.Segment key={option.value} value={option.value}>\n {option.label}\n </RadioGroup.Segment>\n ))}\n </RadioGroup.Root>\n </SettingsRow>\n ) : null}\n {languages && languages.length > 0 && onLanguageChange ? (\n <SettingsRow label={labels.language} description={labels.languageHint}>\n <LanguagePicker label={labels.language} showLabel={false} languages={languages} value={language ?? \"\"} onValueChange={onLanguageChange} />\n </SettingsRow>\n ) : null}\n {onSoundChange ? (\n <SettingsRow label={labels.sound} description={labels.soundHint}>\n <Switch label={labels.sound} checked={Boolean(sound)} onCheckedChange={onSoundChange} />\n </SettingsRow>\n ) : null}\n </div>\n );\n}\n"
570
570
  },
571
571
  {
572
572
  "path": "account-settings/avatar-picker.tsx",
@@ -578,7 +578,7 @@
578
578
  },
579
579
  {
580
580
  "path": "account-settings/group-head.tsx",
581
- "content": "import type * as React from \"react\";\n\n/** The visible label (and one line of help) of a radio group: the group's `aria-labelledby` points at it. */\nexport function GroupHead({ id, label, description }: { id: string; label: React.ReactNode; description?: React.ReactNode }) {\n return (\n <div className=\"flex flex-col gap-0.5\">\n <span id={id} className=\"text-sm font-medium text-fg\">\n {label}\n </span>\n {description ? <span className=\"text-sm text-fg-secondary\">{description}</span> : null}\n </div>\n );\n}\n"
581
+ "content": "import type * as React from \"react\";\n\n/** The visible label (and one line of help) of a radio group: the group's `aria-labelledby` points at it. */\nexport function GroupHead({ id, label, description }: Readonly<{ id: string; label: React.ReactNode; description?: React.ReactNode }>) {\n return (\n <div className=\"flex flex-col gap-0.5\">\n <span id={id} className=\"text-sm font-medium text-fg\">\n {label}\n </span>\n {description ? <span className=\"text-sm text-fg-secondary\">{description}</span> : null}\n </div>\n );\n}\n"
582
582
  },
583
583
  {
584
584
  "path": "account-settings/index.ts",
@@ -598,7 +598,7 @@
598
598
  },
599
599
  {
600
600
  "path": "meta.ts",
601
- "content": "// The documentation of a component, carried by its code: each primitive has a `meta.ts` beside its source\n// (`src/<name>/meta.ts`; a component that exists only in React Native: `src/native/meta/<name>.ts`). Never built into\n// the package: `scripts/build-registry.mjs` reads them into `registry/<name>.json`, which ui.krizaka.com (apps/site) renders as\n// ui.krizaka.com/components/<name>, and `scripts/registry.test.mjs` fails when one is missing or incomplete.\n//\n// Why a typed module and not JSDoc tags: the fields are lists and links (`related`, `whenNotToUse[].use`, examples),\n// which a type checks and a comment does not; the file is plain data (erasable TypeScript), so Node reads it without a\n// compiler, and an editor completes it.\n\n/** Every documented component: the web primitives (one entry of the package each) and the native-only ones. */\nexport type ComponentName =\n | \"notification-preferences\"\n | \"quota-meter\"\n | \"environment-notice\"\n | \"embed-facade\"\n | \"reviews\"\n | \"margin-layout\"\n | \"analysis-report\"\n | \"status-chip\"\n | \"kind-config-editor\"\n | \"agenda\"\n | \"account-settings\"\n | \"drop-overlay\"\n | \"upload-queue\"\n | \"achievement\"\n | \"anatomy-plate\"\n | \"bird-plate\"\n | \"taped-photo\"\n | \"stuck\"\n | \"doodle\"\n | \"signature\"\n | \"grade-stamp\"\n | \"versus-card\"\n | \"speed-lines\"\n | \"site-cahier\"\n | \"text-style\"\n | \"flock\"\n | \"elephant\"\n | \"footnote\"\n | \"page-index\"\n | \"chapter\"\n | \"specimen-tag\"\n | \"action-bar\"\n | \"action-sheet\"\n | \"activity-feed\"\n | \"alert\"\n | \"app-frame\"\n | \"desktop-window\"\n | \"form-flow\"\n | \"grid\"\n | \"list-detail\"\n | \"state-screen\"\n | \"app-header\"\n | \"app-shell\"\n | \"argument-card\"\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 | \"copy-button\"\n | \"money-input\"\n | \"price-catalogue-editor\"\n | \"promo-code-field\"\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 | \"image-cropper\"\n | \"image-viewer\"\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 | \"waveform\"\n | \"proposal\"\n | \"qr-code\"\n | \"identity-card\"\n | \"entity-header\"\n | \"collection-switcher\"\n | \"marketing-layout\"\n | \"mascot-quote\"\n | \"mascot-state\"\n | \"mascots\"\n | \"match-dialog\"\n | \"media-capture\"\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 | \"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 | \"shop-gallery\"\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 | \"shop\"\n | \"shop-composer\"\n | \"schema-form\"\n | \"settings-layout\"\n | \"account-menu\"\n | \"showcase\"\n | \"step-showcase\"\n | \"site-footer\"\n | \"sites\"\n | \"skeleton\"\n | \"skip-link\"\n | \"slider\"\n | \"slot-picker\"\n | \"slot\"\n | \"spinner\"\n | \"sticky-action\"\n | \"splash-handoff\"\n | \"split-view\"\n | \"stage-banner\"\n | \"stat\"\n | \"usage\"\n | \"status-page\"\n | \"step-progress\"\n | \"stepper\"\n | \"swipe-deck\"\n | \"swipeable-row\"\n | \"switch\"\n | \"tab-bar\"\n | \"tabs\"\n | \"tag-input\"\n | \"tag-selector\"\n | \"terminal-replay\"\n | \"theme\"\n | \"toast\"\n | \"toc\"\n | \"tooltip\"\n | \"tree-view\"\n | \"txt\"\n | \"update-prompt\"\n | \"verified-badge\"\n | \"vertical-video\"\n | \"video-player\"\n | \"video-trimmer\"\n | \"virtual\"\n | \"wall\";\n\n/** Where a component exists: `@krizaka/ui/<name>` (web), `@krizaka/ui/native` (React Native), or both. */\nexport type Platform = \"web\" | \"native\" | \"both\";\n\n/**\n * Why a component is not on a platform — a decision, never a silence (the parity matrix of ui.krizaka.com/platforms):\n * - `gap` (✗): it belongs there and is not built yet; `issue` is the issue that tracks it (`krizaka/krizaka-ui#275`);\n * - `n/a`: it is not meant for that platform (a site's page block on a phone, a swipe on a desktop); `use` names the\n * component that answers there, when one does.\n */\nexport type Absence =\n | { readonly status: \"gap\"; readonly issue: string; readonly reason: string; readonly use?: undefined }\n | { readonly status: \"n/a\"; readonly reason: string; readonly use?: ComponentName; readonly issue?: undefined };\n\n/**\n * Desktop is the Sovkora 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 * `experimental`: created for a filed need (ADR-008 §4), it may change or go in any minor until its first consumer imports it; `adoption`\n * names that consumer's issue. `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 = \"experimental\" | \"stable\" | \"beta\" | \"deprecated\";\n\n/**\n * What a component is for (ADR-008 §3): the thirteen domains the documentation, the size budgets and the guards are\n * organised by. The domain is metadata: the entries stay flat (`@krizaka/ui/<name>`). `cahier` is the sites' register\n * (ADR-004): a product never imports it.\n */\nexport type Domain =\n | \"foundations\"\n | \"forms\"\n | \"data-display\"\n | \"navigation-shell\"\n | \"feedback\"\n | \"maps\"\n | \"media\"\n | \"commerce\"\n | \"identity\"\n | \"abuse\"\n | \"conversation\"\n | \"page-blocks\"\n | \"cahier\";\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 /** What it is for: one of the twelve domains (ADR-008 §3). */\n readonly domain: Domain;\n /** The `<repo>#<n>` issue of its first consumer: required for, and only for, an `experimental` component. */\n readonly adoption?: string;\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"
601
+ "content": "// The documentation of a component, carried by its code: each primitive has a `meta.ts` beside its source\n// (`src/<name>/meta.ts`; a component that exists only in React Native: `src/native/meta/<name>.ts`). Never built into\n// the package: `scripts/build-registry.mjs` reads them into `registry/<name>.json`, which ui.krizaka.com (apps/site) renders as\n// ui.krizaka.com/components/<name>, and `scripts/registry.test.mjs` fails when one is missing or incomplete.\n//\n// Why a typed module and not JSDoc tags: the fields are lists and links (`related`, `whenNotToUse[].use`, examples),\n// which a type checks and a comment does not; the file is plain data (erasable TypeScript), so Node reads it without a\n// compiler, and an editor completes it.\n\n/** Every documented component: the web primitives (one entry of the package each) and the native-only ones. */\nexport type ComponentName =\n | \"notification-preferences\"\n | \"quota-meter\"\n | \"environment-notice\"\n | \"embed-facade\"\n | \"reviews\"\n | \"margin-layout\"\n | \"analysis-report\"\n | \"status-chip\"\n | \"kind-config-editor\"\n | \"agenda\"\n | \"account-settings\"\n | \"drop-overlay\"\n | \"upload-queue\"\n | \"achievement\"\n | \"anatomy-plate\"\n | \"bird-plate\"\n | \"taped-photo\"\n | \"stuck\"\n | \"doodle\"\n | \"signature\"\n | \"grade-stamp\"\n | \"versus-card\"\n | \"speed-lines\"\n | \"site-cahier\"\n | \"text-style\"\n | \"flock\"\n | \"elephant\"\n | \"footnote\"\n | \"page-index\"\n | \"chapter\"\n | \"specimen-tag\"\n | \"action-bar\"\n | \"action-sheet\"\n | \"activity-feed\"\n | \"alert\"\n | \"app-frame\"\n | \"desktop-window\"\n | \"form-flow\"\n | \"grid\"\n | \"list-detail\"\n | \"state-screen\"\n | \"app-header\"\n | \"app-shell\"\n | \"argument-card\"\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 | \"columns\"\n | \"choice-grid\"\n | \"cn\"\n | \"code-block\"\n | \"combobox\"\n | \"comparison-table\"\n | \"command\"\n | \"component-page\"\n | \"confirm-button\"\n | \"copy-button\"\n | \"money-input\"\n | \"price-catalogue-editor\"\n | \"promo-code-field\"\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 | \"image-cropper\"\n | \"image-viewer\"\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 | \"waveform\"\n | \"proposal\"\n | \"qr-code\"\n | \"identity-card\"\n | \"entity-header\"\n | \"collection-switcher\"\n | \"marketing-layout\"\n | \"mascot-quote\"\n | \"mascot-state\"\n | \"mascots\"\n | \"match-dialog\"\n | \"media-capture\"\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 | \"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 | \"shop-gallery\"\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 | \"shop\"\n | \"shop-composer\"\n | \"schema-form\"\n | \"settings-layout\"\n | \"account-menu\"\n | \"showcase\"\n | \"step-showcase\"\n | \"site-footer\"\n | \"sites\"\n | \"skeleton\"\n | \"skip-link\"\n | \"slider\"\n | \"slot-picker\"\n | \"slot\"\n | \"spinner\"\n | \"sticky-action\"\n | \"splash-handoff\"\n | \"split-view\"\n | \"stage-banner\"\n | \"stat\"\n | \"usage\"\n | \"status-page\"\n | \"step-progress\"\n | \"stepper\"\n | \"swipe-deck\"\n | \"swipeable-row\"\n | \"switch\"\n | \"tab-bar\"\n | \"tabs\"\n | \"tag-input\"\n | \"tag-selector\"\n | \"terminal-replay\"\n | \"theme\"\n | \"toast\"\n | \"toc\"\n | \"tooltip\"\n | \"tree-view\"\n | \"txt\"\n | \"update-prompt\"\n | \"verified-badge\"\n | \"vertical-video\"\n | \"video-player\"\n | \"video-trimmer\"\n | \"virtual\"\n | \"wall\";\n\n/** Where a component exists: `@krizaka/ui/<name>` (web), `@krizaka/ui/native` (React Native), or both. */\nexport type Platform = \"web\" | \"native\" | \"both\";\n\n/**\n * Why a component is not on a platform — a decision, never a silence (the parity matrix of ui.krizaka.com/platforms):\n * - `gap` (✗): it belongs there and is not built yet; `issue` is the issue that tracks it (`krizaka/krizaka-ui#275`);\n * - `n/a`: it is not meant for that platform (a site's page block on a phone, a swipe on a desktop); `use` names the\n * component that answers there, when one does.\n */\nexport type Absence =\n | { readonly status: \"gap\"; readonly issue: string; readonly reason: string; readonly use?: undefined }\n | { readonly status: \"n/a\"; readonly reason: string; readonly use?: ComponentName; readonly issue?: undefined };\n\n/**\n * Desktop is the Sovkora 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 * `experimental`: created for a filed need (ADR-008 §4), it may change or go in any minor until its first consumer imports it; `adoption`\n * names that consumer's issue. `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 = \"experimental\" | \"stable\" | \"beta\" | \"deprecated\";\n\n/**\n * What a component is for (ADR-008 §3): the thirteen domains the documentation, the size budgets and the guards are\n * organised by. The domain is metadata: the entries stay flat (`@krizaka/ui/<name>`). `cahier` is the sites' register\n * (ADR-004): a product never imports it.\n */\nexport type Domain =\n | \"foundations\"\n | \"forms\"\n | \"data-display\"\n | \"navigation-shell\"\n | \"feedback\"\n | \"maps\"\n | \"media\"\n | \"commerce\"\n | \"identity\"\n | \"abuse\"\n | \"conversation\"\n | \"page-blocks\"\n | \"cahier\";\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 /** What it is for: one of the twelve domains (ADR-008 §3). */\n readonly domain: Domain;\n /** The `<repo>#<n>` issue of its first consumer: required for, and only for, an `experimental` component. */\n readonly adoption?: string;\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"
602
602
  }
603
603
  ],
604
604
  "dependencies": [