@krizaka/ui 3.64.0 → 3.65.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 (455) hide show
  1. package/dist/account-menu.d.ts +7 -3
  2. package/dist/account-menu.js +14 -10
  3. package/dist/account-menu.js.map +1 -1
  4. package/dist/app-frame/server.d.ts +123 -0
  5. package/dist/app-frame/server.js +109 -0
  6. package/dist/app-frame/server.js.map +1 -0
  7. package/dist/app-frame.d.ts +210 -0
  8. package/dist/app-frame.js +220 -0
  9. package/dist/app-frame.js.map +1 -0
  10. package/dist/app-header.d.ts +3 -3
  11. package/dist/blocks.css +41 -0
  12. package/dist/chunk-5D7NMUF6.js +35 -0
  13. package/dist/chunk-5D7NMUF6.js.map +1 -0
  14. package/dist/chunk-A7MQPIEG.js +31 -0
  15. package/dist/chunk-A7MQPIEG.js.map +1 -0
  16. package/dist/chunk-B47WSPMP.js +60 -0
  17. package/dist/chunk-B47WSPMP.js.map +1 -0
  18. package/dist/chunk-HKEAYSFS.js +19 -0
  19. package/dist/chunk-HKEAYSFS.js.map +1 -0
  20. package/dist/chunk-ZYHWJ7U5.js +20 -0
  21. package/dist/chunk-ZYHWJ7U5.js.map +1 -0
  22. package/dist/cover-hero.d.ts +4 -0
  23. package/dist/cover-hero.js +5 -2
  24. package/dist/cover-hero.js.map +1 -1
  25. package/dist/desktop-window.d.ts +223 -0
  26. package/dist/desktop-window.js +261 -0
  27. package/dist/desktop-window.js.map +1 -0
  28. package/dist/filter-bar.d.ts +3 -3
  29. package/dist/frame-D6Xv83t8.d.ts +52 -0
  30. package/dist/native.d.ts +218 -3
  31. package/dist/native.js +1638 -1450
  32. package/dist/native.js.map +1 -1
  33. package/dist/service-card.d.ts +25 -1
  34. package/dist/service-card.js +7 -3
  35. package/dist/service-card.js.map +1 -1
  36. package/dist/shop/booking.d.ts +36 -0
  37. package/dist/shop/booking.js +37 -0
  38. package/dist/shop/booking.js.map +1 -0
  39. package/dist/shop/bulletin.d.ts +28 -0
  40. package/dist/shop/bulletin.js +29 -0
  41. package/dist/shop/bulletin.js.map +1 -0
  42. package/dist/shop/demo.d.ts +135 -0
  43. package/dist/shop/demo.js +141 -0
  44. package/dist/shop/demo.js.map +1 -0
  45. package/dist/shop/faq.d.ts +20 -0
  46. package/dist/shop/faq.js +33 -0
  47. package/dist/shop/faq.js.map +1 -0
  48. package/dist/shop/gallery.d.ts +46 -0
  49. package/dist/shop/gallery.js +76 -0
  50. package/dist/shop/gallery.js.map +1 -0
  51. package/dist/shop/hero.d.ts +36 -0
  52. package/dist/shop/hero.js +70 -0
  53. package/dist/shop/hero.js.map +1 -0
  54. package/dist/shop/map-gate.d.ts +22 -0
  55. package/dist/shop/map-gate.js +34 -0
  56. package/dist/shop/map-gate.js.map +1 -0
  57. package/dist/shop/policies.d.ts +18 -0
  58. package/dist/shop/policies.js +16 -0
  59. package/dist/shop/policies.js.map +1 -0
  60. package/dist/shop/reviews.d.ts +25 -0
  61. package/dist/shop/reviews.js +47 -0
  62. package/dist/shop/reviews.js.map +1 -0
  63. package/dist/shop/services.d.ts +57 -0
  64. package/dist/shop/services.js +118 -0
  65. package/dist/shop/services.js.map +1 -0
  66. package/dist/shop/social.d.ts +27 -0
  67. package/dist/shop/social.js +27 -0
  68. package/dist/shop/social.js.map +1 -0
  69. package/dist/shop/story.d.ts +24 -0
  70. package/dist/shop/story.js +26 -0
  71. package/dist/shop/story.js.map +1 -0
  72. package/dist/shop/team.d.ts +24 -0
  73. package/dist/shop/team.js +26 -0
  74. package/dist/shop/team.js.map +1 -0
  75. package/dist/shop/video.d.ts +40 -0
  76. package/dist/shop/video.js +33 -0
  77. package/dist/shop/video.js.map +1 -0
  78. package/dist/shop/visit.d.ts +29 -0
  79. package/dist/shop/visit.js +38 -0
  80. package/dist/shop/visit.js.map +1 -0
  81. package/dist/shop-composer.d.ts +490 -0
  82. package/dist/shop-composer.js +2061 -0
  83. package/dist/shop-composer.js.map +1 -0
  84. package/dist/shop.d.ts +316 -0
  85. package/dist/shop.js +389 -0
  86. package/dist/shop.js.map +1 -0
  87. package/dist/theme.d.ts +3 -1
  88. package/dist/theme.js +4 -0
  89. package/dist/theme.js.map +1 -1
  90. package/package.json +305 -5
  91. package/registry/account-menu.json +22 -8
  92. package/registry/account-settings.json +1 -1
  93. package/registry/achievement.json +1 -1
  94. package/registry/action-bar.json +1 -1
  95. package/registry/activity-feed.json +1 -1
  96. package/registry/agenda.json +1 -1
  97. package/registry/alert.json +1 -1
  98. package/registry/analysis-report.json +1 -1
  99. package/registry/anatomy-plate.json +1 -1
  100. package/registry/app-frame.json +564 -0
  101. package/registry/app-header.json +1 -1
  102. package/registry/app-shell.json +1 -1
  103. package/registry/argument-card.json +1 -1
  104. package/registry/audio-player.json +1 -1
  105. package/registry/auth-layout.json +1 -1
  106. package/registry/avatar.json +1 -1
  107. package/registry/badge.json +1 -1
  108. package/registry/bird-plate.json +1 -1
  109. package/registry/button.json +1 -1
  110. package/registry/captcha.json +1 -1
  111. package/registry/card-grid.json +1 -1
  112. package/registry/card.json +1 -1
  113. package/registry/catalogue-page.json +1 -1
  114. package/registry/changelog-page.json +1 -1
  115. package/registry/chapter.json +1 -1
  116. package/registry/chat.json +1 -1
  117. package/registry/checkbox.json +1 -1
  118. package/registry/chip-link.json +1 -1
  119. package/registry/chip-row.json +1 -1
  120. package/registry/chip.json +1 -1
  121. package/registry/choice-grid.json +1 -1
  122. package/registry/code-block.json +1 -1
  123. package/registry/combobox.json +1 -1
  124. package/registry/command.json +1 -1
  125. package/registry/comparison-table.json +1 -1
  126. package/registry/component-page.json +1 -1
  127. package/registry/confirm-button.json +1 -1
  128. package/registry/contact-page.json +1 -1
  129. package/registry/continue-prompt.json +1 -1
  130. package/registry/countdown.json +1 -1
  131. package/registry/cover-hero.json +2 -2
  132. package/registry/cta-panel.json +1 -1
  133. package/registry/dashboard-layout.json +1 -1
  134. package/registry/data-table.json +1 -1
  135. package/registry/date-picker.json +3 -3
  136. package/registry/decision-list.json +1 -1
  137. package/registry/description-list.json +1 -1
  138. package/registry/desktop-window.json +407 -0
  139. package/registry/detail-layout.json +1 -1
  140. package/registry/dialog.json +1 -1
  141. package/registry/docs-article-page.json +1 -1
  142. package/registry/docs-hub-page.json +1 -1
  143. package/registry/docs-layout.json +1 -1
  144. package/registry/docs-nav.json +1 -1
  145. package/registry/document-viewer.json +1 -1
  146. package/registry/doodle.json +1 -1
  147. package/registry/drop-overlay.json +1 -1
  148. package/registry/dropdown-menu.json +1 -1
  149. package/registry/elephant.json +2 -2
  150. package/registry/embed-facade.json +1 -1
  151. package/registry/empty-state.json +1 -1
  152. package/registry/engine-flow.json +1 -1
  153. package/registry/environment-notice.json +1 -1
  154. package/registry/error-page.json +1 -1
  155. package/registry/examples/app-frame/admin.d.ts +4 -0
  156. package/registry/examples/app-frame/admin.js +32 -0
  157. package/registry/examples/app-frame/admin.tsx +33 -0
  158. package/registry/examples/app-frame/app.d.ts +4 -0
  159. package/registry/examples/app-frame/app.js +53 -0
  160. package/registry/examples/app-frame/app.tsx +56 -0
  161. package/registry/examples/desktop-window/library.d.ts +4 -0
  162. package/registry/examples/desktop-window/library.js +49 -0
  163. package/registry/examples/desktop-window/library.tsx +58 -0
  164. package/registry/examples/form-flow/native/signup.d.ts +4 -0
  165. package/registry/examples/form-flow/native/signup.dark.png +0 -0
  166. package/registry/examples/form-flow/native/signup.js +26 -0
  167. package/registry/examples/form-flow/native/signup.light.png +0 -0
  168. package/registry/examples/form-flow/native/signup.tsx +23 -0
  169. package/registry/examples/grid/native/columns.d.ts +4 -0
  170. package/registry/examples/grid/native/columns.dark.png +0 -0
  171. package/registry/examples/grid/native/columns.js +23 -0
  172. package/registry/examples/grid/native/columns.light.png +0 -0
  173. package/registry/examples/grid/native/columns.tsx +20 -0
  174. package/registry/examples/grid/native/photos.d.ts +4 -0
  175. package/registry/examples/grid/native/photos.dark.png +0 -0
  176. package/registry/examples/grid/native/photos.js +14 -0
  177. package/registry/examples/grid/native/photos.light.png +0 -0
  178. package/registry/examples/grid/native/photos.tsx +18 -0
  179. package/registry/examples/grid/native/stats.d.ts +4 -0
  180. package/registry/examples/grid/native/stats.dark.png +0 -0
  181. package/registry/examples/grid/native/stats.js +22 -0
  182. package/registry/examples/grid/native/stats.light.png +0 -0
  183. package/registry/examples/grid/native/stats.tsx +24 -0
  184. package/registry/examples/list-detail/native/inbox.d.ts +4 -0
  185. package/registry/examples/list-detail/native/inbox.dark.png +0 -0
  186. package/registry/examples/list-detail/native/inbox.js +35 -0
  187. package/registry/examples/list-detail/native/inbox.light.png +0 -0
  188. package/registry/examples/list-detail/native/inbox.tsx +35 -0
  189. package/registry/examples/screen/native/dashboard.d.ts +4 -0
  190. package/registry/examples/screen/native/dashboard.dark.png +0 -0
  191. package/registry/examples/screen/native/dashboard.js +48 -0
  192. package/registry/examples/screen/native/dashboard.light.png +0 -0
  193. package/registry/examples/screen/native/dashboard.tsx +52 -0
  194. package/registry/examples/screen/native/settings-home.d.ts +4 -0
  195. package/registry/examples/screen/native/settings-home.dark.png +0 -0
  196. package/registry/examples/screen/native/settings-home.js +26 -0
  197. package/registry/examples/screen/native/settings-home.light.png +0 -0
  198. package/registry/examples/screen/native/settings-home.tsx +25 -0
  199. package/registry/examples/shop/booking-panel.d.ts +4 -0
  200. package/registry/examples/shop/booking-panel.js +12 -0
  201. package/registry/examples/shop/booking-panel.tsx +11 -0
  202. package/registry/examples/shop/booking-sticky.d.ts +4 -0
  203. package/registry/examples/shop/booking-sticky.js +15 -0
  204. package/registry/examples/shop/booking-sticky.tsx +12 -0
  205. package/registry/examples/shop/booking-strip.d.ts +4 -0
  206. package/registry/examples/shop/booking-strip.js +13 -0
  207. package/registry/examples/shop/booking-strip.tsx +12 -0
  208. package/registry/examples/shop/bulletin-banner.d.ts +4 -0
  209. package/registry/examples/shop/bulletin-banner.js +13 -0
  210. package/registry/examples/shop/bulletin-banner.tsx +12 -0
  211. package/registry/examples/shop/bulletin-board.d.ts +4 -0
  212. package/registry/examples/shop/bulletin-board.js +13 -0
  213. package/registry/examples/shop/bulletin-board.tsx +12 -0
  214. package/registry/examples/shop/cards.d.ts +4 -0
  215. package/registry/examples/shop/cards.js +13 -0
  216. package/registry/examples/shop/cards.tsx +12 -0
  217. package/registry/examples/shop/carousel.d.ts +4 -0
  218. package/registry/examples/shop/carousel.js +13 -0
  219. package/registry/examples/shop/carousel.tsx +12 -0
  220. package/registry/examples/shop/document.d.ts +4 -0
  221. package/registry/examples/shop/document.js +20 -0
  222. package/registry/examples/shop/document.tsx +13 -0
  223. package/registry/examples/shop/faq.d.ts +4 -0
  224. package/registry/examples/shop/faq.js +13 -0
  225. package/registry/examples/shop/faq.tsx +12 -0
  226. package/registry/examples/shop/gallery-filmstrip.d.ts +4 -0
  227. package/registry/examples/shop/gallery-filmstrip.js +13 -0
  228. package/registry/examples/shop/gallery-filmstrip.tsx +12 -0
  229. package/registry/examples/shop/gallery-grid.d.ts +4 -0
  230. package/registry/examples/shop/gallery-grid.js +13 -0
  231. package/registry/examples/shop/gallery-grid.tsx +12 -0
  232. package/registry/examples/shop/gallery-mosaic.d.ts +4 -0
  233. package/registry/examples/shop/gallery-mosaic.js +13 -0
  234. package/registry/examples/shop/gallery-mosaic.tsx +12 -0
  235. package/registry/examples/shop/gallery-wall.d.ts +4 -0
  236. package/registry/examples/shop/gallery-wall.js +13 -0
  237. package/registry/examples/shop/gallery-wall.tsx +12 -0
  238. package/registry/examples/shop/hero-banner.d.ts +4 -0
  239. package/registry/examples/shop/hero-banner.js +15 -0
  240. package/registry/examples/shop/hero-banner.tsx +14 -0
  241. package/registry/examples/shop/hero-poster.d.ts +4 -0
  242. package/registry/examples/shop/hero-poster.js +15 -0
  243. package/registry/examples/shop/hero-poster.tsx +14 -0
  244. package/registry/examples/shop/hero-split.d.ts +4 -0
  245. package/registry/examples/shop/hero-split.js +15 -0
  246. package/registry/examples/shop/hero-split.tsx +14 -0
  247. package/registry/examples/shop/hero-tv.d.ts +4 -0
  248. package/registry/examples/shop/hero-tv.js +15 -0
  249. package/registry/examples/shop/hero-tv.tsx +14 -0
  250. package/registry/examples/shop/index.d.ts +4 -0
  251. package/registry/examples/shop/index.js +13 -0
  252. package/registry/examples/shop/index.tsx +12 -0
  253. package/registry/examples/shop/menu-columns.d.ts +4 -0
  254. package/registry/examples/shop/menu-columns.js +13 -0
  255. package/registry/examples/shop/menu-columns.tsx +12 -0
  256. package/registry/examples/shop/menu.d.ts +4 -0
  257. package/registry/examples/shop/menu.js +25 -0
  258. package/registry/examples/shop/menu.tsx +21 -0
  259. package/registry/examples/shop/page.d.ts +4 -0
  260. package/registry/examples/shop/page.js +32 -0
  261. package/registry/examples/shop/page.tsx +27 -0
  262. package/registry/examples/shop/policies.d.ts +4 -0
  263. package/registry/examples/shop/policies.js +13 -0
  264. package/registry/examples/shop/policies.tsx +12 -0
  265. package/registry/examples/shop/reviews-quote.d.ts +4 -0
  266. package/registry/examples/shop/reviews-quote.js +13 -0
  267. package/registry/examples/shop/reviews-quote.tsx +12 -0
  268. package/registry/examples/shop/reviews-strip.d.ts +4 -0
  269. package/registry/examples/shop/reviews-strip.js +13 -0
  270. package/registry/examples/shop/reviews-strip.tsx +12 -0
  271. package/registry/examples/shop/reviews-summary-cards.d.ts +4 -0
  272. package/registry/examples/shop/reviews-summary-cards.js +13 -0
  273. package/registry/examples/shop/reviews-summary-cards.tsx +12 -0
  274. package/registry/examples/shop/social-facade.d.ts +4 -0
  275. package/registry/examples/shop/social-facade.js +13 -0
  276. package/registry/examples/shop/social-facade.tsx +12 -0
  277. package/registry/examples/shop/social-links.d.ts +4 -0
  278. package/registry/examples/shop/social-links.js +12 -0
  279. package/registry/examples/shop/social-links.tsx +11 -0
  280. package/registry/examples/shop/story-owner.d.ts +4 -0
  281. package/registry/examples/shop/story-owner.js +13 -0
  282. package/registry/examples/shop/story-owner.tsx +12 -0
  283. package/registry/examples/shop/story-quote.d.ts +4 -0
  284. package/registry/examples/shop/story-quote.js +13 -0
  285. package/registry/examples/shop/story-quote.tsx +12 -0
  286. package/registry/examples/shop/team-cards.d.ts +4 -0
  287. package/registry/examples/shop/team-cards.js +13 -0
  288. package/registry/examples/shop/team-cards.tsx +12 -0
  289. package/registry/examples/shop/team-row.d.ts +4 -0
  290. package/registry/examples/shop/team-row.js +13 -0
  291. package/registry/examples/shop/team-row.tsx +12 -0
  292. package/registry/examples/shop/video-shorts.d.ts +4 -0
  293. package/registry/examples/shop/video-shorts.js +14 -0
  294. package/registry/examples/shop/video-shorts.tsx +13 -0
  295. package/registry/examples/shop/video-tv.d.ts +4 -0
  296. package/registry/examples/shop/video-tv.js +13 -0
  297. package/registry/examples/shop/video-tv.tsx +12 -0
  298. package/registry/examples/shop/visit-card.d.ts +4 -0
  299. package/registry/examples/shop/visit-card.js +13 -0
  300. package/registry/examples/shop/visit-card.tsx +12 -0
  301. package/registry/examples/shop/visit-map.d.ts +4 -0
  302. package/registry/examples/shop/visit-map.js +13 -0
  303. package/registry/examples/shop/visit-map.tsx +12 -0
  304. package/registry/examples/shop/visit-split.d.ts +4 -0
  305. package/registry/examples/shop/visit-split.js +13 -0
  306. package/registry/examples/shop/visit-split.tsx +12 -0
  307. package/registry/examples/shop-composer/composer.d.ts +4 -0
  308. package/registry/examples/shop-composer/composer.js +17 -0
  309. package/registry/examples/shop-composer/composer.tsx +21 -0
  310. package/registry/examples/state-screen/native/empty.d.ts +4 -0
  311. package/registry/examples/state-screen/native/empty.dark.png +0 -0
  312. package/registry/examples/state-screen/native/empty.js +12 -0
  313. package/registry/examples/state-screen/native/empty.light.png +0 -0
  314. package/registry/examples/state-screen/native/empty.tsx +11 -0
  315. package/registry/examples/state-screen/native/error.d.ts +4 -0
  316. package/registry/examples/state-screen/native/error.dark.png +0 -0
  317. package/registry/examples/state-screen/native/error.js +21 -0
  318. package/registry/examples/state-screen/native/error.light.png +0 -0
  319. package/registry/examples/state-screen/native/error.tsx +17 -0
  320. package/registry/examples/state-screen/native/offline.d.ts +4 -0
  321. package/registry/examples/state-screen/native/offline.dark.png +0 -0
  322. package/registry/examples/state-screen/native/offline.js +15 -0
  323. package/registry/examples/state-screen/native/offline.light.png +0 -0
  324. package/registry/examples/state-screen/native/offline.tsx +12 -0
  325. package/registry/field.json +1 -1
  326. package/registry/file-upload.json +1 -1
  327. package/registry/filter-bar.json +1 -1
  328. package/registry/flock.json +1 -1
  329. package/registry/footnote.json +1 -1
  330. package/registry/force-update-screen.json +1 -1
  331. package/registry/form-flow.json +152 -0
  332. package/registry/form.json +1 -1
  333. package/registry/gallery-page.json +1 -1
  334. package/registry/genui.json +1 -1
  335. package/registry/glossary-term.json +1 -1
  336. package/registry/glossary.json +1 -1
  337. package/registry/glow-card.json +1 -1
  338. package/registry/goal-gauge.json +1 -1
  339. package/registry/grade-stamp.json +1 -1
  340. package/registry/grid.json +262 -0
  341. package/registry/how-it-works-page.json +1 -1
  342. package/registry/image-cropper.json +1 -1
  343. package/registry/index.json +403 -11
  344. package/registry/iso.json +1 -1
  345. package/registry/kanban.json +1 -1
  346. package/registry/kbd.json +1 -1
  347. package/registry/kind-config-editor.json +1 -1
  348. package/registry/kpi-explained.json +1 -1
  349. package/registry/landing-page.json +1 -1
  350. package/registry/landscape.json +1 -1
  351. package/registry/language-switch.json +1 -1
  352. package/registry/legal-page.json +1 -1
  353. package/registry/link-card.json +1 -1
  354. package/registry/list-detail.json +188 -0
  355. package/registry/list.json +1 -1
  356. package/registry/loader.json +1 -1
  357. package/registry/longform-page.json +1 -1
  358. package/registry/maintenance-screen.json +1 -1
  359. package/registry/map.json +2 -2
  360. package/registry/margin-layout.json +1 -1
  361. package/registry/markdown.json +1 -1
  362. package/registry/marketing-layout.json +1 -1
  363. package/registry/marquee.json +1 -1
  364. package/registry/mascot-quote.json +1 -1
  365. package/registry/mascot-state.json +1 -1
  366. package/registry/mascots.json +1 -1
  367. package/registry/match-dialog.json +1 -1
  368. package/registry/media-capture.json +1 -1
  369. package/registry/media-gallery.json +1 -1
  370. package/registry/media-grid.json +1 -1
  371. package/registry/meta-row.json +1 -1
  372. package/registry/meter.json +1 -1
  373. package/registry/nav-bar.json +2 -2
  374. package/registry/next-actions.json +1 -1
  375. package/registry/notification-preferences.json +1 -1
  376. package/registry/number-ticker.json +1 -1
  377. package/registry/onboarding.json +3 -0
  378. package/registry/opening-hours.json +1 -1
  379. package/registry/page-header.json +1 -1
  380. package/registry/page-hero.json +1 -1
  381. package/registry/page-index.json +1 -1
  382. package/registry/page.json +1 -1
  383. package/registry/pagination.json +1 -1
  384. package/registry/photo-grid.json +1 -1
  385. package/registry/pointer-light.json +1 -1
  386. package/registry/popover.json +1 -1
  387. package/registry/pricing-page.json +1 -1
  388. package/registry/product-page.json +1 -1
  389. package/registry/profile-card.json +1 -1
  390. package/registry/progress.json +1 -1
  391. package/registry/promise-card.json +1 -1
  392. package/registry/quota-meter.json +1 -1
  393. package/registry/radio-group.json +1 -1
  394. package/registry/rail-nav.json +2 -2
  395. package/registry/recipes.json +1 -1
  396. package/registry/retro-tv.json +1 -1
  397. package/registry/reviews.json +1 -1
  398. package/registry/router.json +1 -1
  399. package/registry/screen.json +68 -4
  400. package/registry/scroll-stage.json +1 -1
  401. package/registry/search-field.json +1 -1
  402. package/registry/section-backdrop.json +1 -1
  403. package/registry/separator.json +1 -1
  404. package/registry/service-card.json +24 -6
  405. package/registry/settings-layout.json +5 -2
  406. package/registry/shop-composer.json +424 -0
  407. package/registry/shop.json +776 -0
  408. package/registry/showcase.json +1 -1
  409. package/registry/signature.json +1 -1
  410. package/registry/site-cahier.json +1 -1
  411. package/registry/site-footer.json +4 -4
  412. package/registry/sites.json +1 -1
  413. package/registry/skeleton.json +1 -1
  414. package/registry/skip-link.json +1 -1
  415. package/registry/slider.json +1 -1
  416. package/registry/slot-picker.json +1 -1
  417. package/registry/slot.json +1 -1
  418. package/registry/specimen-tag.json +1 -1
  419. package/registry/speed-lines.json +1 -1
  420. package/registry/spinner.json +1 -1
  421. package/registry/split-view.json +1 -1
  422. package/registry/stage-banner.json +1 -1
  423. package/registry/stat.json +1 -1
  424. package/registry/state-screen.json +224 -0
  425. package/registry/status-chip.json +1 -1
  426. package/registry/status-page.json +1 -1
  427. package/registry/step-progress.json +1 -1
  428. package/registry/step-showcase.json +1 -1
  429. package/registry/stepper.json +1 -1
  430. package/registry/sticky-action.json +1 -1
  431. package/registry/stuck.json +1 -1
  432. package/registry/swipe-deck.json +1 -1
  433. package/registry/switch.json +1 -1
  434. package/registry/tabs.json +1 -1
  435. package/registry/tag-input.json +1 -1
  436. package/registry/tag-selector.json +1 -1
  437. package/registry/taped-photo.json +1 -1
  438. package/registry/terminal-replay.json +1 -1
  439. package/registry/text-style.json +1 -1
  440. package/registry/theme.json +3 -3
  441. package/registry/toast.json +1 -1
  442. package/registry/toc.json +1 -1
  443. package/registry/tooltip.json +1 -1
  444. package/registry/tree-view.json +1 -1
  445. package/registry/update-prompt.json +1 -1
  446. package/registry/upload-queue.json +1 -1
  447. package/registry/usage.json +1 -1
  448. package/registry/verified-badge.json +1 -1
  449. package/registry/versus-card.json +1 -1
  450. package/registry/vertical-video.json +1 -1
  451. package/registry/video-player.json +1 -1
  452. package/registry/video-trimmer.json +1 -1
  453. package/registry/virtual.json +1 -1
  454. package/registry/wall.json +3 -3
  455. package/registry/waveform.json +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krizaka/ui",
3
- "version": "3.64.0",
3
+ "version": "3.65.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, Orazaka, Yomizaka, Akinaza) and the motion signature — web and /native.",
5
5
  "keywords": [
6
6
  "krizaka",
@@ -862,6 +862,86 @@
862
862
  "./maintenance-screen": {
863
863
  "types": "./dist/maintenance-screen.d.ts",
864
864
  "import": "./dist/maintenance-screen.js"
865
+ },
866
+ "./shop": {
867
+ "types": "./dist/shop.d.ts",
868
+ "import": "./dist/shop.js"
869
+ },
870
+ "./shop/hero": {
871
+ "types": "./dist/shop/hero.d.ts",
872
+ "import": "./dist/shop/hero.js"
873
+ },
874
+ "./shop/services": {
875
+ "types": "./dist/shop/services.d.ts",
876
+ "import": "./dist/shop/services.js"
877
+ },
878
+ "./shop/booking": {
879
+ "types": "./dist/shop/booking.d.ts",
880
+ "import": "./dist/shop/booking.js"
881
+ },
882
+ "./shop/gallery": {
883
+ "types": "./dist/shop/gallery.d.ts",
884
+ "import": "./dist/shop/gallery.js"
885
+ },
886
+ "./shop/demo": {
887
+ "types": "./dist/shop/demo.d.ts",
888
+ "import": "./dist/shop/demo.js"
889
+ },
890
+ "./shop/video": {
891
+ "types": "./dist/shop/video.d.ts",
892
+ "import": "./dist/shop/video.js"
893
+ },
894
+ "./shop/reviews": {
895
+ "types": "./dist/shop/reviews.d.ts",
896
+ "import": "./dist/shop/reviews.js"
897
+ },
898
+ "./shop/bulletin": {
899
+ "types": "./dist/shop/bulletin.d.ts",
900
+ "import": "./dist/shop/bulletin.js"
901
+ },
902
+ "./shop/team": {
903
+ "types": "./dist/shop/team.d.ts",
904
+ "import": "./dist/shop/team.js"
905
+ },
906
+ "./shop/visit": {
907
+ "types": "./dist/shop/visit.d.ts",
908
+ "import": "./dist/shop/visit.js"
909
+ },
910
+ "./shop/story": {
911
+ "types": "./dist/shop/story.d.ts",
912
+ "import": "./dist/shop/story.js"
913
+ },
914
+ "./shop/social": {
915
+ "types": "./dist/shop/social.d.ts",
916
+ "import": "./dist/shop/social.js"
917
+ },
918
+ "./shop/faq": {
919
+ "types": "./dist/shop/faq.d.ts",
920
+ "import": "./dist/shop/faq.js"
921
+ },
922
+ "./shop/policies": {
923
+ "types": "./dist/shop/policies.d.ts",
924
+ "import": "./dist/shop/policies.js"
925
+ },
926
+ "./shop/map-gate": {
927
+ "types": "./dist/shop/map-gate.d.ts",
928
+ "import": "./dist/shop/map-gate.js"
929
+ },
930
+ "./app-frame": {
931
+ "types": "./dist/app-frame.d.ts",
932
+ "import": "./dist/app-frame.js"
933
+ },
934
+ "./app-frame/server": {
935
+ "types": "./dist/app-frame/server.d.ts",
936
+ "import": "./dist/app-frame/server.js"
937
+ },
938
+ "./desktop-window": {
939
+ "types": "./dist/desktop-window.d.ts",
940
+ "import": "./dist/desktop-window.js"
941
+ },
942
+ "./shop-composer": {
943
+ "types": "./dist/shop-composer.d.ts",
944
+ "import": "./dist/shop-composer.js"
865
945
  }
866
946
  },
867
947
  "files": [
@@ -881,7 +961,7 @@
881
961
  ],
882
962
  "peerDependencies": {
883
963
  "@krizaka/query": ">=0.2.2",
884
- "@krizaka/tailwind": ">=3.64.0",
964
+ "@krizaka/tailwind": ">=3.65.0",
885
965
  "@maplibre/maplibre-react-native": ">=11",
886
966
  "@shopify/flash-list": ">=2",
887
967
  "expo-camera": ">=16",
@@ -1004,7 +1084,7 @@
1004
1084
  {
1005
1085
  "name": "./native (bundled into the app by Metro, never downloaded: a regression guard, not a budget)",
1006
1086
  "path": "dist/native.js",
1007
- "limit": "67.5 kB",
1087
+ "limit": "69.6 kB",
1008
1088
  "gzip": true
1009
1089
  },
1010
1090
  {
@@ -2480,7 +2560,7 @@
2480
2560
  {
2481
2561
  "name": "./account-menu",
2482
2562
  "path": "dist/account-menu.js",
2483
- "limit": "4 kB",
2563
+ "limit": "4.2 kB",
2484
2564
  "gzip": true,
2485
2565
  "ignore": [
2486
2566
  "tailwind-variants",
@@ -2976,6 +3056,226 @@
2976
3056
  "tailwind-variants",
2977
3057
  "clsx"
2978
3058
  ]
3059
+ },
3060
+ {
3061
+ "name": "./shop",
3062
+ "path": "dist/shop.js",
3063
+ "limit": "4.3 kB",
3064
+ "gzip": true,
3065
+ "ignore": [
3066
+ "tailwind-variants",
3067
+ "clsx",
3068
+ "zod",
3069
+ "zod/mini"
3070
+ ]
3071
+ },
3072
+ {
3073
+ "name": "./shop/hero",
3074
+ "path": "dist/shop/hero.js",
3075
+ "limit": "1.6 kB",
3076
+ "gzip": true,
3077
+ "ignore": [
3078
+ "tailwind-variants",
3079
+ "clsx",
3080
+ "@krizaka/ui"
3081
+ ]
3082
+ },
3083
+ {
3084
+ "name": "./shop/services",
3085
+ "path": "dist/shop/services.js",
3086
+ "limit": "3 kB",
3087
+ "gzip": true,
3088
+ "ignore": [
3089
+ "tailwind-variants",
3090
+ "clsx",
3091
+ "@krizaka/ui"
3092
+ ]
3093
+ },
3094
+ {
3095
+ "name": "./shop/booking",
3096
+ "path": "dist/shop/booking.js",
3097
+ "limit": "1.7 kB",
3098
+ "gzip": true,
3099
+ "ignore": [
3100
+ "tailwind-variants",
3101
+ "clsx",
3102
+ "@krizaka/ui"
3103
+ ]
3104
+ },
3105
+ {
3106
+ "name": "./shop/gallery",
3107
+ "path": "dist/shop/gallery.js",
3108
+ "limit": "2.5 kB",
3109
+ "gzip": true,
3110
+ "ignore": [
3111
+ "tailwind-variants",
3112
+ "clsx",
3113
+ "@krizaka/ui"
3114
+ ]
3115
+ },
3116
+ {
3117
+ "name": "./shop/demo",
3118
+ "path": "dist/shop/demo.js",
3119
+ "limit": "3.3 kB",
3120
+ "gzip": true,
3121
+ "ignore": [
3122
+ "tailwind-variants",
3123
+ "clsx",
3124
+ "@krizaka/ui"
3125
+ ]
3126
+ },
3127
+ {
3128
+ "name": "./shop/video",
3129
+ "path": "dist/shop/video.js",
3130
+ "limit": "1.5 kB",
3131
+ "gzip": true,
3132
+ "ignore": [
3133
+ "tailwind-variants",
3134
+ "clsx",
3135
+ "@krizaka/ui"
3136
+ ]
3137
+ },
3138
+ {
3139
+ "name": "./shop/reviews",
3140
+ "path": "dist/shop/reviews.js",
3141
+ "limit": "1.5 kB",
3142
+ "gzip": true,
3143
+ "ignore": [
3144
+ "tailwind-variants",
3145
+ "clsx",
3146
+ "@krizaka/ui"
3147
+ ]
3148
+ },
3149
+ {
3150
+ "name": "./shop/bulletin",
3151
+ "path": "dist/shop/bulletin.js",
3152
+ "limit": "1.5 kB",
3153
+ "gzip": true,
3154
+ "ignore": [
3155
+ "tailwind-variants",
3156
+ "clsx",
3157
+ "@krizaka/ui"
3158
+ ]
3159
+ },
3160
+ {
3161
+ "name": "./shop/team",
3162
+ "path": "dist/shop/team.js",
3163
+ "limit": "1.5 kB",
3164
+ "gzip": true,
3165
+ "ignore": [
3166
+ "tailwind-variants",
3167
+ "clsx",
3168
+ "@krizaka/ui"
3169
+ ]
3170
+ },
3171
+ {
3172
+ "name": "./shop/visit",
3173
+ "path": "dist/shop/visit.js",
3174
+ "limit": "1.5 kB",
3175
+ "gzip": true,
3176
+ "ignore": [
3177
+ "tailwind-variants",
3178
+ "clsx",
3179
+ "@krizaka/ui"
3180
+ ]
3181
+ },
3182
+ {
3183
+ "name": "./shop/story",
3184
+ "path": "dist/shop/story.js",
3185
+ "limit": "1.5 kB",
3186
+ "gzip": true,
3187
+ "ignore": [
3188
+ "tailwind-variants",
3189
+ "clsx",
3190
+ "@krizaka/ui"
3191
+ ]
3192
+ },
3193
+ {
3194
+ "name": "./shop/social",
3195
+ "path": "dist/shop/social.js",
3196
+ "limit": "1.5 kB",
3197
+ "gzip": true,
3198
+ "ignore": [
3199
+ "tailwind-variants",
3200
+ "clsx",
3201
+ "@krizaka/ui"
3202
+ ]
3203
+ },
3204
+ {
3205
+ "name": "./shop/faq",
3206
+ "path": "dist/shop/faq.js",
3207
+ "limit": "1.5 kB",
3208
+ "gzip": true,
3209
+ "ignore": [
3210
+ "tailwind-variants",
3211
+ "clsx",
3212
+ "@krizaka/ui"
3213
+ ]
3214
+ },
3215
+ {
3216
+ "name": "./shop/policies",
3217
+ "path": "dist/shop/policies.js",
3218
+ "limit": "1.5 kB",
3219
+ "gzip": true,
3220
+ "ignore": [
3221
+ "tailwind-variants",
3222
+ "clsx",
3223
+ "@krizaka/ui"
3224
+ ]
3225
+ },
3226
+ {
3227
+ "name": "./shop/map-gate",
3228
+ "path": "dist/shop/map-gate.js",
3229
+ "limit": "1.5 kB",
3230
+ "gzip": true,
3231
+ "ignore": [
3232
+ "tailwind-variants",
3233
+ "clsx",
3234
+ "@krizaka/ui"
3235
+ ]
3236
+ },
3237
+ {
3238
+ "name": "./app-frame",
3239
+ "path": "dist/app-frame.js",
3240
+ "limit": "2.3 kB",
3241
+ "gzip": true,
3242
+ "ignore": [
3243
+ "tailwind-variants",
3244
+ "clsx",
3245
+ "radix-ui",
3246
+ "@krizaka/ui"
3247
+ ]
3248
+ },
3249
+ {
3250
+ "name": "./app-frame/server",
3251
+ "path": "dist/app-frame/server.js",
3252
+ "limit": "1.3 kB",
3253
+ "gzip": true
3254
+ },
3255
+ {
3256
+ "name": "./desktop-window",
3257
+ "path": "dist/desktop-window.js",
3258
+ "limit": "3.5 kB",
3259
+ "gzip": true,
3260
+ "ignore": [
3261
+ "tailwind-variants",
3262
+ "clsx",
3263
+ "radix-ui",
3264
+ "@krizaka/ui"
3265
+ ]
3266
+ },
3267
+ {
3268
+ "name": "./shop-composer",
3269
+ "path": "dist/shop-composer.js",
3270
+ "limit": "24 kB",
3271
+ "gzip": true,
3272
+ "ignore": [
3273
+ "tailwind-variants",
3274
+ "clsx",
3275
+ "@krizaka/ui",
3276
+ "zod",
3277
+ "zod/mini"
3278
+ ]
2979
3279
  }
2980
3280
  ],
2981
3281
  "dependencies": {
@@ -2996,7 +3296,7 @@
2996
3296
  "zod": "^4.6.7",
2997
3297
  "@krizaka/intl": "^0.4.1",
2998
3298
  "@krizaka/pacer": "^0.1.0",
2999
- "@krizaka/tokens": "^3.64.0"
3299
+ "@krizaka/tokens": "^3.65.0"
3000
3300
  },
3001
3301
  "scripts": {
3002
3302
  "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",
@@ -2,8 +2,8 @@
2
2
  "name": "account-menu",
3
3
  "type": "primitive",
4
4
  "title": "Account menu",
5
- "summary": "The menu under a signed-in person's avatar: who they are, their profile and settings, the language as a compact submenu, Sign out.",
6
- "description": "The menu under a signed-in person's avatar: who they are, their profile and settings, the language as a compact submenu, Sign out.",
5
+ "summary": "The menu under a signed-in person's avatar: who they are, their profile and settings, the language and the theme as compact submenus, Sign out.",
6
+ "description": "The menu under a signed-in person's avatar: who they are, their profile and settings, the language and the theme as compact submenus, Sign out.",
7
7
  "status": "beta",
8
8
  "deprecated": null,
9
9
  "category": "navigation",
@@ -98,7 +98,7 @@
98
98
  "name": "children",
99
99
  "type": "ReactNode",
100
100
  "default": null,
101
- "description": "Extra rows between the language and Sign out (a theme switch…).",
101
+ "description": "Extra rows between the preferences and Sign out.",
102
102
  "required": false
103
103
  },
104
104
  {
@@ -149,6 +149,13 @@
149
149
  "default": "true",
150
150
  "description": "Show the name beside the avatar in the trigger: `true` or `\"sm\"` from 640 px, `\"lg\"` from 1024 px (the family's top\nbar, where search and the counts take the room below it), `false` never.",
151
151
  "required": false
152
+ },
153
+ {
154
+ "name": "theme",
155
+ "type": "AccountMenuLanguage",
156
+ "default": null,
157
+ "description": "The theme (light, dark, system), as a submenu under the language: the family keeps preferences in the account menu.",
158
+ "required": false
152
159
  }
153
160
  ]
154
161
  }
@@ -168,19 +175,19 @@
168
175
  "files": [
169
176
  {
170
177
  "path": "account-menu/account-menu.tsx",
171
- "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\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 /** Extra rows between the language and Sign out (a theme switch…). */\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, children, signOut, className }: AccountMenuProps) {\n const title = name || email || \"\";\n const current = language?.options.find((o) => o.value === language.value)?.label;\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 || children) && <DropdownMenu.Separator />}\n {language && (\n <DropdownMenu.Sub>\n <DropdownMenu.SubTrigger>\n {language.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={language.value} onValueChange={language.onChange}>\n {language.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 {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"
178
+ "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"
172
179
  },
173
180
  {
174
181
  "path": "account-menu/index.ts",
175
- "content": "/** @krizaka/ui/account-menu — `AccountMenu`: the avatar menu of a signed-in app (identity, links, language submenu, Sign out). Client (\"use client\"). */\nexport { AccountMenu, type AccountMenuLanguage, type AccountMenuLink, type AccountMenuProps } from \"./account-menu\";\n"
182
+ "content": "/** @krizaka/ui/account-menu — `AccountMenu`: the avatar menu of a signed-in app (identity, links, language submenu, Sign out). Client (\"use client\"). */\nexport { AccountMenu, type AccountMenuLanguage, type AccountMenuLink, type AccountMenuProps, type AccountMenuTheme } from \"./account-menu\";\n"
176
183
  },
177
184
  {
178
185
  "path": "account-menu/meta.ts",
179
- "content": "import type { ComponentMeta } from \"../meta\";\n\nexport const meta = {\n title: \"Account menu\",\n summary: \"The menu under a signed-in person's avatar: who they are, their profile and settings, the language as a compact submenu, Sign out.\",\n status: \"beta\",\n category: \"navigation\",\n platforms: \"web\",\n parity: { native: { status: \"n/a\", reason: \"On a phone the account is a screen of the tab bar, not a menu.\", use: \"settings-layout\" }, desktop: \"web\" },\n whenToUse: [\"The top bar of a signed-in web app, at the right.\", \"Any app that offers profile, settings, language and Sign out in one place.\"],\n whenNotToUse: [\n { when: \"For the actions of an item (edit, share, delete).\", use: \"dropdown-menu\" },\n { when: \"For the navigation between the app's sections.\", use: \"nav-bar\" },\n ],\n bestPractices: [\n \"Identity first (picture, name, e-mail), then places, then preferences, then Sign out last.\",\n \"Use the product's `defaultAvatar` (`{ brand, seed }`) when there is no photo; never a grey silhouette or an initials tile.\",\n \"Sign out is a quiet item: it is not a destructive action, so it is not red.\",\n \"In the family's top bar (`AppHeader` `account`), `showName=\\\"lg\\\"`: the name from 1024 px, where search and the counts no longer need the room.\",\n ],\n accessibility: {\n keyboard: [\n { keys: \"Enter / Space / Arrow down\", action: \"Opens the menu from the avatar.\" },\n { keys: \"Arrow right / Enter on Language\", action: \"Opens the language choices; Arrow left or Esc goes back.\" },\n { keys: \"Esc\", action: \"Closes the menu and returns the focus to the avatar.\" },\n ],\n notes: [\"The trigger is named by `label`; the menu is a Radix menu (roving focus, typeahead).\"],\n },\n related: [\"dropdown-menu\", \"avatar\", \"nav-bar\"],\n web: {\n imports: [\"AccountMenu\"],\n examples: [{ name: \"default\", title: \"Account menu\", description: \"Identity, profile and settings links, a language submenu and Sign out.\" }],\n },\n} satisfies ComponentMeta;\n"
186
+ "content": "import type { ComponentMeta } from \"../meta\";\n\nexport const meta = {\n title: \"Account menu\",\n summary: \"The menu under a signed-in person's avatar: who they are, their profile and settings, the language and the theme as compact submenus, Sign out.\",\n status: \"beta\",\n category: \"navigation\",\n platforms: \"web\",\n parity: { native: { status: \"n/a\", reason: \"On a phone the account is a screen of the tab bar, not a menu.\", use: \"settings-layout\" }, desktop: \"web\" },\n whenToUse: [\"The top bar of a signed-in web app, at the right.\", \"Any app that offers profile, settings, language and Sign out in one place.\"],\n whenNotToUse: [\n { when: \"For the actions of an item (edit, share, delete).\", use: \"dropdown-menu\" },\n { when: \"For the navigation between the app's sections.\", use: \"nav-bar\" },\n ],\n bestPractices: [\n \"Identity first (picture, name, e-mail), then places, then preferences, then Sign out last.\",\n \"Use the product's `defaultAvatar` (`{ brand, seed }`) when there is no photo; never a grey silhouette or an initials tile.\",\n \"Sign out is a quiet item: it is not a destructive action, so it is not red.\",\n \"In the family's top bar (`AppHeader` `account`), `showName=\\\"lg\\\"`: the name from 1024 px, where search and the counts no longer need the room.\",\n ],\n accessibility: {\n keyboard: [\n { keys: \"Enter / Space / Arrow down\", action: \"Opens the menu from the avatar.\" },\n { keys: \"Arrow right / Enter on Language\", action: \"Opens the language choices; Arrow left or Esc goes back.\" },\n { keys: \"Esc\", action: \"Closes the menu and returns the focus to the avatar.\" },\n ],\n notes: [\"The trigger is named by `label`; the menu is a Radix menu (roving focus, typeahead).\"],\n },\n related: [\"dropdown-menu\", \"avatar\", \"nav-bar\"],\n web: {\n imports: [\"AccountMenu\"],\n examples: [{ name: \"default\", title: \"Account menu\", description: \"Identity, profile and settings links, a language submenu and Sign out.\" }],\n },\n} satisfies ComponentMeta;\n"
180
187
  },
181
188
  {
182
189
  "path": "meta.ts",
183
- "content": "// The documentation of a component, carried by its code: each primitive has a `meta.ts` beside its source\n// (`src/<name>/meta.ts`; a component that exists only in React Native: `src/native/meta/<name>.ts`). Never built into\n// the package: `scripts/build-registry.mjs` reads them into `registry/<name>.json`, which ui.krizaka.com (apps/site) renders as\n// ui.krizaka.com/components/<name>, and `scripts/registry.test.mjs` fails when one is missing or incomplete.\n//\n// Why a typed module and not JSDoc tags: the fields are lists and links (`related`, `whenNotToUse[].use`, examples),\n// which a type checks and a comment does not; the file is plain data (erasable TypeScript), so Node reads it without a\n// compiler, and an editor completes it.\n\n/** Every documented component: the web primitives (one entry of the package each) and the native-only ones. */\nexport type ComponentName =\n | \"notification-preferences\"\n | \"quota-meter\"\n | \"environment-notice\"\n | \"embed-facade\"\n | \"reviews\"\n | \"margin-layout\"\n | \"analysis-report\"\n | \"status-chip\"\n | \"kind-config-editor\"\n | \"agenda\"\n | \"account-settings\"\n | \"drop-overlay\"\n | \"upload-queue\"\n | \"achievement\"\n | \"anatomy-plate\"\n | \"bird-plate\"\n | \"taped-photo\"\n | \"stuck\"\n | \"doodle\"\n | \"signature\"\n | \"grade-stamp\"\n | \"versus-card\"\n | \"speed-lines\"\n | \"site-cahier\"\n | \"text-style\"\n | \"flock\"\n | \"elephant\"\n | \"footnote\"\n | \"page-index\"\n | \"chapter\"\n | \"specimen-tag\"\n | \"action-bar\"\n | \"action-sheet\"\n | \"activity-feed\"\n | \"alert\"\n | \"app-header\"\n | \"app-shell\"\n | \"argument-card\"\n | \"audio-player\"\n | \"auth-layout\"\n | \"avatar\"\n | \"badge\"\n | \"button\"\n | \"captcha\"\n | \"card\"\n | \"card-grid\"\n | \"catalogue-page\"\n | \"changelog-page\"\n | \"chat\"\n | \"checkbox\"\n | \"chip\"\n | \"chip-link\"\n | \"chip-row\"\n | \"choice-grid\"\n | \"cn\"\n | \"code-block\"\n | \"combobox\"\n | \"comparison-table\"\n | \"command\"\n | \"component-page\"\n | \"confirm-button\"\n | \"contact-page\"\n | \"continue-prompt\"\n | \"countdown\"\n | \"cover-hero\"\n | \"cta-panel\"\n | \"dashboard-layout\"\n | \"data-table\"\n | \"date-picker\"\n | \"decision-list\"\n | \"description-list\"\n | \"detail-layout\"\n | \"dialog\"\n | \"docs-article-page\"\n | \"docs-hub-page\"\n | \"docs-layout\"\n | \"docs-nav\"\n | \"document-viewer\"\n | \"dropdown-menu\"\n | \"empty-state\"\n | \"engine-flow\"\n | \"error-page\"\n | \"fab\"\n | \"field\"\n | \"file-upload\"\n | \"filter-bar\"\n | \"force-update-screen\"\n | \"form\"\n | \"gallery-page\"\n | \"genui\"\n | \"glossary\"\n | \"glossary-term\"\n | \"glow-card\"\n | \"goal-gauge\"\n | \"header\"\n | \"how-it-works-page\"\n | \"image-cropper\"\n | \"image-viewer\"\n | \"iso\"\n | \"kanban\"\n | \"kbd\"\n | \"kpi-explained\"\n | \"landing-page\"\n | \"landscape\"\n | \"legal-page\"\n | \"link-card\"\n | \"list\"\n | \"loader\"\n | \"longform-page\"\n | \"maintenance-screen\"\n | \"map\"\n | \"markdown\"\n | \"meta-row\"\n | \"waveform\"\n | \"marketing-layout\"\n | \"marquee\"\n | \"mascot-quote\"\n | \"mascot-state\"\n | \"mascots\"\n | \"match-dialog\"\n | \"media-capture\"\n | \"media-grid\"\n | \"language-switch\"\n | \"media-gallery\"\n | \"media-picker\"\n | \"meter\"\n | \"nav-bar\"\n | \"number-ticker\"\n | \"onboarding\"\n | \"opening-hours\"\n | \"otp-input\"\n | \"page\"\n | \"page-header\"\n | \"page-hero\"\n | \"pagination\"\n | \"permission-prompt\"\n | \"photo-grid\"\n | \"pointer-light\"\n | \"popover\"\n | \"pricing-page\"\n | \"product-page\"\n | \"profile-card\"\n | \"progress\"\n | \"promise-card\"\n | \"pull-to-refresh\"\n | \"retro-tv\"\n | \"radio-group\"\n | \"router\"\n | \"rail-nav\"\n | \"recipes\"\n | \"screen\"\n | \"scroll-stage\"\n | \"search-field\"\n | \"section-backdrop\"\n | \"segmented\"\n | \"separator\"\n | \"service-card\"\n | \"settings-layout\"\n | \"account-menu\"\n | \"showcase\"\n | \"step-showcase\"\n | \"site-footer\"\n | \"sites\"\n | \"skeleton\"\n | \"skip-link\"\n | \"slider\"\n | \"slot-picker\"\n | \"slot\"\n | \"spinner\"\n | \"sticky-action\"\n | \"splash-handoff\"\n | \"split-view\"\n | \"stage-banner\"\n | \"stat\"\n | \"usage\"\n | \"status-page\"\n | \"step-progress\"\n | \"stepper\"\n | \"swipe-deck\"\n | \"swipeable-row\"\n | \"switch\"\n | \"tab-bar\"\n | \"tabs\"\n | \"tag-input\"\n | \"tag-selector\"\n | \"terminal-replay\"\n | \"theme\"\n | \"toast\"\n | \"toc\"\n | \"tooltip\"\n | \"tree-view\"\n | \"txt\"\n | \"update-prompt\"\n | \"verified-badge\"\n | \"vertical-video\"\n | \"video-player\"\n | \"video-trimmer\"\n | \"virtual\"\n | \"wall\";\n\n/** Where a component exists: `@krizaka/ui/<name>` (web), `@krizaka/ui/native` (React Native), or both. */\nexport type Platform = \"web\" | \"native\" | \"both\";\n\n/**\n * Why a component is not on a platform — a decision, never a silence (the parity matrix of ui.krizaka.com/platforms):\n * - `gap` (✗): it belongs there and is not built yet; `issue` is the issue that tracks it (`krizaka/krizaka-ui#275`);\n * - `n/a`: it is not meant for that platform (a site's page block on a phone, a swipe on a desktop); `use` names the\n * component that answers there, when one does.\n */\nexport type Absence =\n | { readonly status: \"gap\"; readonly issue: string; readonly reason: string; readonly use?: undefined }\n | { readonly status: \"n/a\"; readonly reason: string; readonly use?: ComponentName; readonly issue?: undefined };\n\n/**\n * Desktop is the Orazaka Mac app (Tauri 2: the system WebView renders the web components — ADR-002). `web`: the web\n * component runs there as it is; `desktop`: it also has a desktop form (a window's title bar, a denser layout…), said in\n * its documentation; otherwise the absence and why.\n */\nexport type DesktopSupport = \"web\" | \"desktop\" | Absence;\n\n/**\n * The three platforms of Krizaka UI — web · native (React Native, Expo) · desktop — for one component. The side a\n * component has is `platforms`; the side it lacks says why here: `native` is required for (and only for) a web-only\n * component, `web` for a native-only one; `desktop` always. `scripts/registry.test.mjs` fails on a missing decision.\n */\nexport interface Parity {\n readonly web?: Absence;\n readonly native?: Absence;\n readonly desktop: DesktopSupport;\n}\n\n/**\n * `stable`: its API only changes in a major. `beta`: it may still change in a minor. `deprecated`: no product uses it and\n * no work plans to — it still works, says what replaces it, and goes in the major named by `deprecated.removedIn`.\n */\nexport type Status = \"stable\" | \"beta\" | \"deprecated\";\n\n/** What a deprecated component says (required when `status` is `deprecated`, absent otherwise). */\nexport interface Deprecation {\n /** The version that deprecated it (`3.6.0`). */\n readonly since: string;\n /** The major that removes it (`4.0.0`). */\n readonly removedIn: string;\n /** What replaces it, when a component does. */\n readonly use?: ComponentName;\n /** Why it goes: no product uses it, no planned work needs it. */\n readonly reason: string;\n}\n\n/**\n * The group of the catalogue. `media`: video, sound, camera, files, cropping. `blocks`: the page blocks — the frame,\n * the hero, sections, cards that lead or argue, decisions, code, calls to act — that every page of a site is made of.\n * `layouts`: the shells of whole screens — an application, a dashboard, settings, sign-in, an object, a list and its\n * item, a site's page, a documentation page — each with its screens. `templates`: the page templates — whole pages of a\n * site (a landing, a product, a docs hub, a long read, a changelog, pricing, status, an error…), each a distinct\n * composition of the blocks, words and content as props.\n */\nexport type Category = \"actions\" | \"forms\" | \"navigation\" | \"overlays\" | \"feedback\" | \"data-display\" | \"media\" | \"blocks\" | \"layouts\" | \"templates\" | \"layout\" | \"foundations\";\n\n/** Why a reader needs a template: the seven intents the templates are grouped by (sidebar sub-headings, catalogue filter). */\nexport type TemplatePurpose = \"convince\" | \"explain\" | \"show\" | \"act\" | \"operate\" | \"converse\" | \"recover\";\n\n/** The groups of templates, in reading order: the title, and the one line that says when to come to that group. */\nexport const templatePurposes = {\n convince: { title: \"Convince\", useWhen: \"You come here when a visitor must decide: a landing, a product, a price, a comparison, a proof.\" },\n explain: { title: \"Explain\", useWhen: \"You come here when a reader must understand: how it works, a documentation hub or article, a changelog, a FAQ, a policy.\" },\n show: { title: \"Show\", useWhen: \"You come here when the work itself is the argument: a gallery, a story, a case study, an object and its details.\" },\n act: { title: \"Act\", useWhen: \"You come here when a person must do something once: reach the team, sign in or up, set up, pay.\" },\n operate: { title: \"Operate\", useWhen: \"You come here when a person works every day: a dashboard, a console with a table, settings, an app shell.\" },\n converse: { title: \"Converse\", useWhen: \"You come here when people talk: an inbox, a chat, comments, a notifications centre.\" },\n recover: { title: \"Recover\", useWhen: \"You come here when the way is blocked: an empty list, an error, a missing page, maintenance, a product still being built.\" },\n} as const satisfies Record<TemplatePurpose, { readonly title: string; readonly useWhen: string }>;\n\n/**\n * A named example: the file `registry/examples/<component>/<name>.tsx` (web) or\n * `registry/examples/<component>/native/<name>.tsx` (React Native) — at most 40 lines, imported by the stories and\n * shown (live, with its code) by the documentation.\n */\ninterface ExampleBase {\n /** The file name, kebab-case (`primary`, `icon-button`). */\n readonly name: string;\n /** A short title (`Primary`, `Icon button`). */\n readonly title: string;\n /** One or two sentences: when this variant is the right one. */\n readonly description: string;\n}\n\n/** A plain example, or a template: a whole screen with its intent (`purpose`) and the user goal its layout serves (`why`). */\nexport type Example =\n | (ExampleBase & { readonly template?: false; readonly purpose?: undefined; readonly why?: undefined })\n | (ExampleBase & {\n /**\n * A template: a whole screen of a product composed from the platform (a layout and its blocks, real words, its\n * phone version thought out), copied as a starting point — at most 160 lines, listed on ui.krizaka.com/templates.\n */\n readonly template: true;\n /** The intent that groups it: why you need this block. */\n readonly purpose: TemplatePurpose;\n /** Why this layout: the user goal it serves, in one sentence. */\n readonly why: string;\n });\n\n/** One platform's side of a component. */\nexport interface PlatformDocs {\n /** The names to import (`[\"Button\", \"IconButton\"]`): from `@krizaka/ui/<name>` on the web, `@krizaka/ui/native` in React Native. */\n readonly imports: readonly string[];\n /** The examples, in reading order; the first one is the component's preview. */\n readonly examples: readonly Example[];\n}\n\n/** The React Native side: the same concept, and what differs from the web API. */\nexport interface NativeDocs extends PlatformDocs {\n /**\n * The entry to import from when it is not `@krizaka/ui/native`: a component that needs an Expo module (an optional\n * peer) has its own, `@krizaka/ui/native/<name>`, so an app that does not use it never installs the module.\n */\n readonly entry?: string;\n /** What differs from the web API (`label` instead of children…); empty for a native-only component. */\n readonly differences: readonly string[];\n /** The React Native entry alone is deprecated while the web one stays (ADR-006 §7); a deprecated component says it once, above. */\n readonly deprecated?: Deprecation;\n}\n\nexport interface KeyboardInteraction {\n /** The keys, as written on a keyboard: `Space`, `Enter`, `Arrow keys`, `Esc`, `Tab`. */\n readonly keys: string;\n /** What they do. */\n readonly action: string;\n}\n\nexport interface ComponentMeta {\n /** The display name: `Button`, `Dropdown menu`. */\n readonly title: string;\n /** One sentence: what it is. */\n readonly summary: string;\n readonly status: Status;\n /** Required for, and only for, a `deprecated` component. */\n readonly deprecated?: Deprecation;\n readonly category: Category;\n /** Must match the sides below: `both` ⇔ `web` and `native`. */\n readonly platforms: Platform;\n /** The platforms it is not on, and why; and its desktop form (see `Parity`). */\n readonly parity: Parity;\n /** When to reach for it: concrete situations, one per item. */\n readonly whenToUse: readonly string[];\n /** When not to — and what to use instead (`use`), when another component is the answer. */\n readonly whenNotToUse: readonly { readonly when: string; readonly use?: ComponentName }[];\n /** How to use it well: wording, placement, composition. */\n readonly bestPractices: readonly string[];\n readonly accessibility: {\n /** The keyboard, when it does more than Tab and Enter. */\n readonly keyboard: readonly KeyboardInteraction[];\n /** Roles, names and announcements: what the component does, what the app must provide. */\n readonly notes: readonly string[];\n };\n /** The components a reader of this page should know about. */\n readonly related: readonly ComponentName[];\n readonly web?: PlatformDocs;\n readonly native?: NativeDocs;\n}\n"
190
+ "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 | \"audio-player\"\n | \"auth-layout\"\n | \"avatar\"\n | \"badge\"\n | \"button\"\n | \"captcha\"\n | \"card\"\n | \"card-grid\"\n | \"catalogue-page\"\n | \"changelog-page\"\n | \"chat\"\n | \"checkbox\"\n | \"chip\"\n | \"chip-link\"\n | \"chip-row\"\n | \"choice-grid\"\n | \"cn\"\n | \"code-block\"\n | \"combobox\"\n | \"comparison-table\"\n | \"command\"\n | \"component-page\"\n | \"confirm-button\"\n | \"contact-page\"\n | \"continue-prompt\"\n | \"countdown\"\n | \"cover-hero\"\n | \"cta-panel\"\n | \"dashboard-layout\"\n | \"data-table\"\n | \"date-picker\"\n | \"decision-list\"\n | \"description-list\"\n | \"detail-layout\"\n | \"dialog\"\n | \"docs-article-page\"\n | \"docs-hub-page\"\n | \"docs-layout\"\n | \"docs-nav\"\n | \"document-viewer\"\n | \"dropdown-menu\"\n | \"empty-state\"\n | \"engine-flow\"\n | \"error-page\"\n | \"fab\"\n | \"field\"\n | \"file-upload\"\n | \"filter-bar\"\n | \"force-update-screen\"\n | \"form\"\n | \"gallery-page\"\n | \"genui\"\n | \"glossary\"\n | \"glossary-term\"\n | \"glow-card\"\n | \"goal-gauge\"\n | \"header\"\n | \"how-it-works-page\"\n | \"image-cropper\"\n | \"image-viewer\"\n | \"iso\"\n | \"kanban\"\n | \"kbd\"\n | \"kpi-explained\"\n | \"landing-page\"\n | \"landscape\"\n | \"legal-page\"\n | \"link-card\"\n | \"list\"\n | \"loader\"\n | \"longform-page\"\n | \"maintenance-screen\"\n | \"map\"\n | \"markdown\"\n | \"meta-row\"\n | \"waveform\"\n | \"marketing-layout\"\n | \"marquee\"\n | \"mascot-quote\"\n | \"mascot-state\"\n | \"mascots\"\n | \"match-dialog\"\n | \"media-capture\"\n | \"media-grid\"\n | \"language-switch\"\n | \"media-gallery\"\n | \"media-picker\"\n | \"meter\"\n | \"nav-bar\"\n | \"number-ticker\"\n | \"onboarding\"\n | \"opening-hours\"\n | \"otp-input\"\n | \"page\"\n | \"page-header\"\n | \"page-hero\"\n | \"pagination\"\n | \"permission-prompt\"\n | \"photo-grid\"\n | \"pointer-light\"\n | \"popover\"\n | \"pricing-page\"\n | \"product-page\"\n | \"profile-card\"\n | \"progress\"\n | \"promise-card\"\n | \"pull-to-refresh\"\n | \"retro-tv\"\n | \"radio-group\"\n | \"router\"\n | \"rail-nav\"\n | \"recipes\"\n | \"screen\"\n | \"scroll-stage\"\n | \"search-field\"\n | \"section-backdrop\"\n | \"segmented\"\n | \"separator\"\n | \"service-card\"\n | \"shop\"\n | \"shop-composer\"\n | \"settings-layout\"\n | \"account-menu\"\n | \"showcase\"\n | \"step-showcase\"\n | \"site-footer\"\n | \"sites\"\n | \"skeleton\"\n | \"skip-link\"\n | \"slider\"\n | \"slot-picker\"\n | \"slot\"\n | \"spinner\"\n | \"sticky-action\"\n | \"splash-handoff\"\n | \"split-view\"\n | \"stage-banner\"\n | \"stat\"\n | \"usage\"\n | \"status-page\"\n | \"step-progress\"\n | \"stepper\"\n | \"swipe-deck\"\n | \"swipeable-row\"\n | \"switch\"\n | \"tab-bar\"\n | \"tabs\"\n | \"tag-input\"\n | \"tag-selector\"\n | \"terminal-replay\"\n | \"theme\"\n | \"toast\"\n | \"toc\"\n | \"tooltip\"\n | \"tree-view\"\n | \"txt\"\n | \"update-prompt\"\n | \"verified-badge\"\n | \"vertical-video\"\n | \"video-player\"\n | \"video-trimmer\"\n | \"virtual\"\n | \"wall\";\n\n/** Where a component exists: `@krizaka/ui/<name>` (web), `@krizaka/ui/native` (React Native), or both. */\nexport type Platform = \"web\" | \"native\" | \"both\";\n\n/**\n * Why a component is not on a platform — a decision, never a silence (the parity matrix of ui.krizaka.com/platforms):\n * - `gap` (✗): it belongs there and is not built yet; `issue` is the issue that tracks it (`krizaka/krizaka-ui#275`);\n * - `n/a`: it is not meant for that platform (a site's page block on a phone, a swipe on a desktop); `use` names the\n * component that answers there, when one does.\n */\nexport type Absence =\n | { readonly status: \"gap\"; readonly issue: string; readonly reason: string; readonly use?: undefined }\n | { readonly status: \"n/a\"; readonly reason: string; readonly use?: ComponentName; readonly issue?: undefined };\n\n/**\n * Desktop is the Orazaka Mac app (Tauri 2: the system WebView renders the web components — ADR-002). `web`: the web\n * component runs there as it is; `desktop`: it also has a desktop form (a window's title bar, a denser layout…), said in\n * its documentation; otherwise the absence and why.\n */\nexport type DesktopSupport = \"web\" | \"desktop\" | Absence;\n\n/**\n * The three platforms of Krizaka UI — web · native (React Native, Expo) · desktop — for one component. The side a\n * component has is `platforms`; the side it lacks says why here: `native` is required for (and only for) a web-only\n * component, `web` for a native-only one; `desktop` always. `scripts/registry.test.mjs` fails on a missing decision.\n */\nexport interface Parity {\n readonly web?: Absence;\n readonly native?: Absence;\n readonly desktop: DesktopSupport;\n}\n\n/**\n * `stable`: its API only changes in a major. `beta`: it may still change in a minor. `deprecated`: no product uses it and\n * no work plans to — it still works, says what replaces it, and goes in the major named by `deprecated.removedIn`.\n */\nexport type Status = \"stable\" | \"beta\" | \"deprecated\";\n\n/** What a deprecated component says (required when `status` is `deprecated`, absent otherwise). */\nexport interface Deprecation {\n /** The version that deprecated it (`3.6.0`). */\n readonly since: string;\n /** The major that removes it (`4.0.0`). */\n readonly removedIn: string;\n /** What replaces it, when a component does. */\n readonly use?: ComponentName;\n /** Why it goes: no product uses it, no planned work needs it. */\n readonly reason: string;\n}\n\n/**\n * The group of the catalogue. `media`: video, sound, camera, files, cropping. `blocks`: the page blocks — the frame,\n * the hero, sections, cards that lead or argue, decisions, code, calls to act — that every page of a site is made of.\n * `layouts`: the shells of whole screens — an application, a dashboard, settings, sign-in, an object, a list and its\n * item, a site's page, a documentation page — each with its screens. `templates`: the page templates — whole pages of a\n * site (a landing, a product, a docs hub, a long read, a changelog, pricing, status, an error…), each a distinct\n * composition of the blocks, words and content as props.\n */\nexport type Category = \"actions\" | \"forms\" | \"navigation\" | \"overlays\" | \"feedback\" | \"data-display\" | \"media\" | \"blocks\" | \"layouts\" | \"templates\" | \"layout\" | \"foundations\";\n\n/** Why a reader needs a template: the seven intents the templates are grouped by (sidebar sub-headings, catalogue filter). */\nexport type TemplatePurpose = \"convince\" | \"explain\" | \"show\" | \"act\" | \"operate\" | \"converse\" | \"recover\";\n\n/** The groups of templates, in reading order: the title, and the one line that says when to come to that group. */\nexport const templatePurposes = {\n convince: { title: \"Convince\", useWhen: \"You come here when a visitor must decide: a landing, a product, a price, a comparison, a proof.\" },\n explain: { title: \"Explain\", useWhen: \"You come here when a reader must understand: how it works, a documentation hub or article, a changelog, a FAQ, a policy.\" },\n show: { title: \"Show\", useWhen: \"You come here when the work itself is the argument: a gallery, a story, a case study, an object and its details.\" },\n act: { title: \"Act\", useWhen: \"You come here when a person must do something once: reach the team, sign in or up, set up, pay.\" },\n operate: { title: \"Operate\", useWhen: \"You come here when a person works every day: a dashboard, a console with a table, settings, an app shell.\" },\n converse: { title: \"Converse\", useWhen: \"You come here when people talk: an inbox, a chat, comments, a notifications centre.\" },\n recover: { title: \"Recover\", useWhen: \"You come here when the way is blocked: an empty list, an error, a missing page, maintenance, a product still being built.\" },\n} as const satisfies Record<TemplatePurpose, { readonly title: string; readonly useWhen: string }>;\n\n/**\n * A named example: the file `registry/examples/<component>/<name>.tsx` (web) or\n * `registry/examples/<component>/native/<name>.tsx` (React Native) — at most 40 lines, imported by the stories and\n * shown (live, with its code) by the documentation.\n */\ninterface ExampleBase {\n /** The file name, kebab-case (`primary`, `icon-button`). */\n readonly name: string;\n /** A short title (`Primary`, `Icon button`). */\n readonly title: string;\n /** One or two sentences: when this variant is the right one. */\n readonly description: string;\n}\n\n/** A plain example, or a template: a whole screen with its intent (`purpose`) and the user goal its layout serves (`why`). */\nexport type Example =\n | (ExampleBase & { readonly template?: false; readonly purpose?: undefined; readonly why?: undefined })\n | (ExampleBase & {\n /**\n * A template: a whole screen of a product composed from the platform (a layout and its blocks, real words, its\n * phone version thought out), copied as a starting point — at most 160 lines, listed on ui.krizaka.com/templates.\n */\n readonly template: true;\n /** The intent that groups it: why you need this block. */\n readonly purpose: TemplatePurpose;\n /** Why this layout: the user goal it serves, in one sentence. */\n readonly why: string;\n });\n\n/** One platform's side of a component. */\nexport interface PlatformDocs {\n /** The names to import (`[\"Button\", \"IconButton\"]`): from `@krizaka/ui/<name>` on the web, `@krizaka/ui/native` in React Native. */\n readonly imports: readonly string[];\n /** The examples, in reading order; the first one is the component's preview. */\n readonly examples: readonly Example[];\n}\n\n/** The React Native side: the same concept, and what differs from the web API. */\nexport interface NativeDocs extends PlatformDocs {\n /**\n * The entry to import from when it is not `@krizaka/ui/native`: a component that needs an Expo module (an optional\n * peer) has its own, `@krizaka/ui/native/<name>`, so an app that does not use it never installs the module.\n */\n readonly entry?: string;\n /** What differs from the web API (`label` instead of children…); empty for a native-only component. */\n readonly differences: readonly string[];\n /** The React Native entry alone is deprecated while the web one stays (ADR-006 §7); a deprecated component says it once, above. */\n readonly deprecated?: Deprecation;\n}\n\nexport interface KeyboardInteraction {\n /** The keys, as written on a keyboard: `Space`, `Enter`, `Arrow keys`, `Esc`, `Tab`. */\n readonly keys: string;\n /** What they do. */\n readonly action: string;\n}\n\nexport interface ComponentMeta {\n /** The display name: `Button`, `Dropdown menu`. */\n readonly title: string;\n /** One sentence: what it is. */\n readonly summary: string;\n readonly status: Status;\n /** Required for, and only for, a `deprecated` component. */\n readonly deprecated?: Deprecation;\n readonly category: Category;\n /** Must match the sides below: `both` ⇔ `web` and `native`. */\n readonly platforms: Platform;\n /** The platforms it is not on, and why; and its desktop form (see `Parity`). */\n readonly parity: Parity;\n /** When to reach for it: concrete situations, one per item. */\n readonly whenToUse: readonly string[];\n /** When not to — and what to use instead (`use`), when another component is the answer. */\n readonly whenNotToUse: readonly { readonly when: string; readonly use?: ComponentName }[];\n /** How to use it well: wording, placement, composition. */\n readonly bestPractices: readonly string[];\n readonly accessibility: {\n /** The keyboard, when it does more than Tab and Enter. */\n readonly keyboard: readonly KeyboardInteraction[];\n /** Roles, names and announcements: what the component does, what the app must provide. */\n readonly notes: readonly string[];\n };\n /** The components a reader of this page should know about. */\n readonly related: readonly ComponentName[];\n readonly web?: PlatformDocs;\n readonly native?: NativeDocs;\n}\n"
184
191
  }
185
192
  ],
186
193
  "dependencies": [],
@@ -223,7 +230,7 @@
223
230
  "name": "children",
224
231
  "type": "ReactNode",
225
232
  "default": null,
226
- "description": "Extra rows between the language and Sign out (a theme switch…).",
233
+ "description": "Extra rows between the preferences and Sign out.",
227
234
  "required": false
228
235
  },
229
236
  {
@@ -274,6 +281,13 @@
274
281
  "default": "true",
275
282
  "description": "Show the name beside the avatar in the trigger: `true` or `\"sm\"` from 640 px, `\"lg\"` from 1024 px (the family's top\nbar, where search and the counts take the room below it), `false` never.",
276
283
  "required": false
284
+ },
285
+ {
286
+ "name": "theme",
287
+ "type": "AccountMenuLanguage",
288
+ "default": null,
289
+ "description": "The theme (light, dark, system), as a submenu under the language: the family keeps preferences in the account menu.",
290
+ "required": false
277
291
  }
278
292
  ]
279
293
  }
@@ -596,7 +596,7 @@
596
596
  },
597
597
  {
598
598
  "path": "meta.ts",
599
- "content": "// The documentation of a component, carried by its code: each primitive has a `meta.ts` beside its source\n// (`src/<name>/meta.ts`; a component that exists only in React Native: `src/native/meta/<name>.ts`). Never built into\n// the package: `scripts/build-registry.mjs` reads them into `registry/<name>.json`, which ui.krizaka.com (apps/site) renders as\n// ui.krizaka.com/components/<name>, and `scripts/registry.test.mjs` fails when one is missing or incomplete.\n//\n// Why a typed module and not JSDoc tags: the fields are lists and links (`related`, `whenNotToUse[].use`, examples),\n// which a type checks and a comment does not; the file is plain data (erasable TypeScript), so Node reads it without a\n// compiler, and an editor completes it.\n\n/** Every documented component: the web primitives (one entry of the package each) and the native-only ones. */\nexport type ComponentName =\n | \"notification-preferences\"\n | \"quota-meter\"\n | \"environment-notice\"\n | \"embed-facade\"\n | \"reviews\"\n | \"margin-layout\"\n | \"analysis-report\"\n | \"status-chip\"\n | \"kind-config-editor\"\n | \"agenda\"\n | \"account-settings\"\n | \"drop-overlay\"\n | \"upload-queue\"\n | \"achievement\"\n | \"anatomy-plate\"\n | \"bird-plate\"\n | \"taped-photo\"\n | \"stuck\"\n | \"doodle\"\n | \"signature\"\n | \"grade-stamp\"\n | \"versus-card\"\n | \"speed-lines\"\n | \"site-cahier\"\n | \"text-style\"\n | \"flock\"\n | \"elephant\"\n | \"footnote\"\n | \"page-index\"\n | \"chapter\"\n | \"specimen-tag\"\n | \"action-bar\"\n | \"action-sheet\"\n | \"activity-feed\"\n | \"alert\"\n | \"app-header\"\n | \"app-shell\"\n | \"argument-card\"\n | \"audio-player\"\n | \"auth-layout\"\n | \"avatar\"\n | \"badge\"\n | \"button\"\n | \"captcha\"\n | \"card\"\n | \"card-grid\"\n | \"catalogue-page\"\n | \"changelog-page\"\n | \"chat\"\n | \"checkbox\"\n | \"chip\"\n | \"chip-link\"\n | \"chip-row\"\n | \"choice-grid\"\n | \"cn\"\n | \"code-block\"\n | \"combobox\"\n | \"comparison-table\"\n | \"command\"\n | \"component-page\"\n | \"confirm-button\"\n | \"contact-page\"\n | \"continue-prompt\"\n | \"countdown\"\n | \"cover-hero\"\n | \"cta-panel\"\n | \"dashboard-layout\"\n | \"data-table\"\n | \"date-picker\"\n | \"decision-list\"\n | \"description-list\"\n | \"detail-layout\"\n | \"dialog\"\n | \"docs-article-page\"\n | \"docs-hub-page\"\n | \"docs-layout\"\n | \"docs-nav\"\n | \"document-viewer\"\n | \"dropdown-menu\"\n | \"empty-state\"\n | \"engine-flow\"\n | \"error-page\"\n | \"fab\"\n | \"field\"\n | \"file-upload\"\n | \"filter-bar\"\n | \"force-update-screen\"\n | \"form\"\n | \"gallery-page\"\n | \"genui\"\n | \"glossary\"\n | \"glossary-term\"\n | \"glow-card\"\n | \"goal-gauge\"\n | \"header\"\n | \"how-it-works-page\"\n | \"image-cropper\"\n | \"image-viewer\"\n | \"iso\"\n | \"kanban\"\n | \"kbd\"\n | \"kpi-explained\"\n | \"landing-page\"\n | \"landscape\"\n | \"legal-page\"\n | \"link-card\"\n | \"list\"\n | \"loader\"\n | \"longform-page\"\n | \"maintenance-screen\"\n | \"map\"\n | \"markdown\"\n | \"meta-row\"\n | \"waveform\"\n | \"marketing-layout\"\n | \"marquee\"\n | \"mascot-quote\"\n | \"mascot-state\"\n | \"mascots\"\n | \"match-dialog\"\n | \"media-capture\"\n | \"media-grid\"\n | \"language-switch\"\n | \"media-gallery\"\n | \"media-picker\"\n | \"meter\"\n | \"nav-bar\"\n | \"number-ticker\"\n | \"onboarding\"\n | \"opening-hours\"\n | \"otp-input\"\n | \"page\"\n | \"page-header\"\n | \"page-hero\"\n | \"pagination\"\n | \"permission-prompt\"\n | \"photo-grid\"\n | \"pointer-light\"\n | \"popover\"\n | \"pricing-page\"\n | \"product-page\"\n | \"profile-card\"\n | \"progress\"\n | \"promise-card\"\n | \"pull-to-refresh\"\n | \"retro-tv\"\n | \"radio-group\"\n | \"router\"\n | \"rail-nav\"\n | \"recipes\"\n | \"screen\"\n | \"scroll-stage\"\n | \"search-field\"\n | \"section-backdrop\"\n | \"segmented\"\n | \"separator\"\n | \"service-card\"\n | \"settings-layout\"\n | \"account-menu\"\n | \"showcase\"\n | \"step-showcase\"\n | \"site-footer\"\n | \"sites\"\n | \"skeleton\"\n | \"skip-link\"\n | \"slider\"\n | \"slot-picker\"\n | \"slot\"\n | \"spinner\"\n | \"sticky-action\"\n | \"splash-handoff\"\n | \"split-view\"\n | \"stage-banner\"\n | \"stat\"\n | \"usage\"\n | \"status-page\"\n | \"step-progress\"\n | \"stepper\"\n | \"swipe-deck\"\n | \"swipeable-row\"\n | \"switch\"\n | \"tab-bar\"\n | \"tabs\"\n | \"tag-input\"\n | \"tag-selector\"\n | \"terminal-replay\"\n | \"theme\"\n | \"toast\"\n | \"toc\"\n | \"tooltip\"\n | \"tree-view\"\n | \"txt\"\n | \"update-prompt\"\n | \"verified-badge\"\n | \"vertical-video\"\n | \"video-player\"\n | \"video-trimmer\"\n | \"virtual\"\n | \"wall\";\n\n/** Where a component exists: `@krizaka/ui/<name>` (web), `@krizaka/ui/native` (React Native), or both. */\nexport type Platform = \"web\" | \"native\" | \"both\";\n\n/**\n * Why a component is not on a platform — a decision, never a silence (the parity matrix of ui.krizaka.com/platforms):\n * - `gap` (✗): it belongs there and is not built yet; `issue` is the issue that tracks it (`krizaka/krizaka-ui#275`);\n * - `n/a`: it is not meant for that platform (a site's page block on a phone, a swipe on a desktop); `use` names the\n * component that answers there, when one does.\n */\nexport type Absence =\n | { readonly status: \"gap\"; readonly issue: string; readonly reason: string; readonly use?: undefined }\n | { readonly status: \"n/a\"; readonly reason: string; readonly use?: ComponentName; readonly issue?: undefined };\n\n/**\n * Desktop is the Orazaka Mac app (Tauri 2: the system WebView renders the web components — ADR-002). `web`: the web\n * component runs there as it is; `desktop`: it also has a desktop form (a window's title bar, a denser layout…), said in\n * its documentation; otherwise the absence and why.\n */\nexport type DesktopSupport = \"web\" | \"desktop\" | Absence;\n\n/**\n * The three platforms of Krizaka UI — web · native (React Native, Expo) · desktop — for one component. The side a\n * component has is `platforms`; the side it lacks says why here: `native` is required for (and only for) a web-only\n * component, `web` for a native-only one; `desktop` always. `scripts/registry.test.mjs` fails on a missing decision.\n */\nexport interface Parity {\n readonly web?: Absence;\n readonly native?: Absence;\n readonly desktop: DesktopSupport;\n}\n\n/**\n * `stable`: its API only changes in a major. `beta`: it may still change in a minor. `deprecated`: no product uses it and\n * no work plans to — it still works, says what replaces it, and goes in the major named by `deprecated.removedIn`.\n */\nexport type Status = \"stable\" | \"beta\" | \"deprecated\";\n\n/** What a deprecated component says (required when `status` is `deprecated`, absent otherwise). */\nexport interface Deprecation {\n /** The version that deprecated it (`3.6.0`). */\n readonly since: string;\n /** The major that removes it (`4.0.0`). */\n readonly removedIn: string;\n /** What replaces it, when a component does. */\n readonly use?: ComponentName;\n /** Why it goes: no product uses it, no planned work needs it. */\n readonly reason: string;\n}\n\n/**\n * The group of the catalogue. `media`: video, sound, camera, files, cropping. `blocks`: the page blocks — the frame,\n * the hero, sections, cards that lead or argue, decisions, code, calls to act — that every page of a site is made of.\n * `layouts`: the shells of whole screens — an application, a dashboard, settings, sign-in, an object, a list and its\n * item, a site's page, a documentation page — each with its screens. `templates`: the page templates — whole pages of a\n * site (a landing, a product, a docs hub, a long read, a changelog, pricing, status, an error…), each a distinct\n * composition of the blocks, words and content as props.\n */\nexport type Category = \"actions\" | \"forms\" | \"navigation\" | \"overlays\" | \"feedback\" | \"data-display\" | \"media\" | \"blocks\" | \"layouts\" | \"templates\" | \"layout\" | \"foundations\";\n\n/** Why a reader needs a template: the seven intents the templates are grouped by (sidebar sub-headings, catalogue filter). */\nexport type TemplatePurpose = \"convince\" | \"explain\" | \"show\" | \"act\" | \"operate\" | \"converse\" | \"recover\";\n\n/** The groups of templates, in reading order: the title, and the one line that says when to come to that group. */\nexport const templatePurposes = {\n convince: { title: \"Convince\", useWhen: \"You come here when a visitor must decide: a landing, a product, a price, a comparison, a proof.\" },\n explain: { title: \"Explain\", useWhen: \"You come here when a reader must understand: how it works, a documentation hub or article, a changelog, a FAQ, a policy.\" },\n show: { title: \"Show\", useWhen: \"You come here when the work itself is the argument: a gallery, a story, a case study, an object and its details.\" },\n act: { title: \"Act\", useWhen: \"You come here when a person must do something once: reach the team, sign in or up, set up, pay.\" },\n operate: { title: \"Operate\", useWhen: \"You come here when a person works every day: a dashboard, a console with a table, settings, an app shell.\" },\n converse: { title: \"Converse\", useWhen: \"You come here when people talk: an inbox, a chat, comments, a notifications centre.\" },\n recover: { title: \"Recover\", useWhen: \"You come here when the way is blocked: an empty list, an error, a missing page, maintenance, a product still being built.\" },\n} as const satisfies Record<TemplatePurpose, { readonly title: string; readonly useWhen: string }>;\n\n/**\n * A named example: the file `registry/examples/<component>/<name>.tsx` (web) or\n * `registry/examples/<component>/native/<name>.tsx` (React Native) — at most 40 lines, imported by the stories and\n * shown (live, with its code) by the documentation.\n */\ninterface ExampleBase {\n /** The file name, kebab-case (`primary`, `icon-button`). */\n readonly name: string;\n /** A short title (`Primary`, `Icon button`). */\n readonly title: string;\n /** One or two sentences: when this variant is the right one. */\n readonly description: string;\n}\n\n/** A plain example, or a template: a whole screen with its intent (`purpose`) and the user goal its layout serves (`why`). */\nexport type Example =\n | (ExampleBase & { readonly template?: false; readonly purpose?: undefined; readonly why?: undefined })\n | (ExampleBase & {\n /**\n * A template: a whole screen of a product composed from the platform (a layout and its blocks, real words, its\n * phone version thought out), copied as a starting point — at most 160 lines, listed on ui.krizaka.com/templates.\n */\n readonly template: true;\n /** The intent that groups it: why you need this block. */\n readonly purpose: TemplatePurpose;\n /** Why this layout: the user goal it serves, in one sentence. */\n readonly why: string;\n });\n\n/** One platform's side of a component. */\nexport interface PlatformDocs {\n /** The names to import (`[\"Button\", \"IconButton\"]`): from `@krizaka/ui/<name>` on the web, `@krizaka/ui/native` in React Native. */\n readonly imports: readonly string[];\n /** The examples, in reading order; the first one is the component's preview. */\n readonly examples: readonly Example[];\n}\n\n/** The React Native side: the same concept, and what differs from the web API. */\nexport interface NativeDocs extends PlatformDocs {\n /**\n * The entry to import from when it is not `@krizaka/ui/native`: a component that needs an Expo module (an optional\n * peer) has its own, `@krizaka/ui/native/<name>`, so an app that does not use it never installs the module.\n */\n readonly entry?: string;\n /** What differs from the web API (`label` instead of children…); empty for a native-only component. */\n readonly differences: readonly string[];\n /** The React Native entry alone is deprecated while the web one stays (ADR-006 §7); a deprecated component says it once, above. */\n readonly deprecated?: Deprecation;\n}\n\nexport interface KeyboardInteraction {\n /** The keys, as written on a keyboard: `Space`, `Enter`, `Arrow keys`, `Esc`, `Tab`. */\n readonly keys: string;\n /** What they do. */\n readonly action: string;\n}\n\nexport interface ComponentMeta {\n /** The display name: `Button`, `Dropdown menu`. */\n readonly title: string;\n /** One sentence: what it is. */\n readonly summary: string;\n readonly status: Status;\n /** Required for, and only for, a `deprecated` component. */\n readonly deprecated?: Deprecation;\n readonly category: Category;\n /** Must match the sides below: `both` ⇔ `web` and `native`. */\n readonly platforms: Platform;\n /** The platforms it is not on, and why; and its desktop form (see `Parity`). */\n readonly parity: Parity;\n /** When to reach for it: concrete situations, one per item. */\n readonly whenToUse: readonly string[];\n /** When not to — and what to use instead (`use`), when another component is the answer. */\n readonly whenNotToUse: readonly { readonly when: string; readonly use?: ComponentName }[];\n /** How to use it well: wording, placement, composition. */\n readonly bestPractices: readonly string[];\n readonly accessibility: {\n /** The keyboard, when it does more than Tab and Enter. */\n readonly keyboard: readonly KeyboardInteraction[];\n /** Roles, names and announcements: what the component does, what the app must provide. */\n readonly notes: readonly string[];\n };\n /** The components a reader of this page should know about. */\n readonly related: readonly ComponentName[];\n readonly web?: PlatformDocs;\n readonly native?: NativeDocs;\n}\n"
599
+ "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 | \"audio-player\"\n | \"auth-layout\"\n | \"avatar\"\n | \"badge\"\n | \"button\"\n | \"captcha\"\n | \"card\"\n | \"card-grid\"\n | \"catalogue-page\"\n | \"changelog-page\"\n | \"chat\"\n | \"checkbox\"\n | \"chip\"\n | \"chip-link\"\n | \"chip-row\"\n | \"choice-grid\"\n | \"cn\"\n | \"code-block\"\n | \"combobox\"\n | \"comparison-table\"\n | \"command\"\n | \"component-page\"\n | \"confirm-button\"\n | \"contact-page\"\n | \"continue-prompt\"\n | \"countdown\"\n | \"cover-hero\"\n | \"cta-panel\"\n | \"dashboard-layout\"\n | \"data-table\"\n | \"date-picker\"\n | \"decision-list\"\n | \"description-list\"\n | \"detail-layout\"\n | \"dialog\"\n | \"docs-article-page\"\n | \"docs-hub-page\"\n | \"docs-layout\"\n | \"docs-nav\"\n | \"document-viewer\"\n | \"dropdown-menu\"\n | \"empty-state\"\n | \"engine-flow\"\n | \"error-page\"\n | \"fab\"\n | \"field\"\n | \"file-upload\"\n | \"filter-bar\"\n | \"force-update-screen\"\n | \"form\"\n | \"gallery-page\"\n | \"genui\"\n | \"glossary\"\n | \"glossary-term\"\n | \"glow-card\"\n | \"goal-gauge\"\n | \"header\"\n | \"how-it-works-page\"\n | \"image-cropper\"\n | \"image-viewer\"\n | \"iso\"\n | \"kanban\"\n | \"kbd\"\n | \"kpi-explained\"\n | \"landing-page\"\n | \"landscape\"\n | \"legal-page\"\n | \"link-card\"\n | \"list\"\n | \"loader\"\n | \"longform-page\"\n | \"maintenance-screen\"\n | \"map\"\n | \"markdown\"\n | \"meta-row\"\n | \"waveform\"\n | \"marketing-layout\"\n | \"marquee\"\n | \"mascot-quote\"\n | \"mascot-state\"\n | \"mascots\"\n | \"match-dialog\"\n | \"media-capture\"\n | \"media-grid\"\n | \"language-switch\"\n | \"media-gallery\"\n | \"media-picker\"\n | \"meter\"\n | \"nav-bar\"\n | \"number-ticker\"\n | \"onboarding\"\n | \"opening-hours\"\n | \"otp-input\"\n | \"page\"\n | \"page-header\"\n | \"page-hero\"\n | \"pagination\"\n | \"permission-prompt\"\n | \"photo-grid\"\n | \"pointer-light\"\n | \"popover\"\n | \"pricing-page\"\n | \"product-page\"\n | \"profile-card\"\n | \"progress\"\n | \"promise-card\"\n | \"pull-to-refresh\"\n | \"retro-tv\"\n | \"radio-group\"\n | \"router\"\n | \"rail-nav\"\n | \"recipes\"\n | \"screen\"\n | \"scroll-stage\"\n | \"search-field\"\n | \"section-backdrop\"\n | \"segmented\"\n | \"separator\"\n | \"service-card\"\n | \"shop\"\n | \"shop-composer\"\n | \"settings-layout\"\n | \"account-menu\"\n | \"showcase\"\n | \"step-showcase\"\n | \"site-footer\"\n | \"sites\"\n | \"skeleton\"\n | \"skip-link\"\n | \"slider\"\n | \"slot-picker\"\n | \"slot\"\n | \"spinner\"\n | \"sticky-action\"\n | \"splash-handoff\"\n | \"split-view\"\n | \"stage-banner\"\n | \"stat\"\n | \"usage\"\n | \"status-page\"\n | \"step-progress\"\n | \"stepper\"\n | \"swipe-deck\"\n | \"swipeable-row\"\n | \"switch\"\n | \"tab-bar\"\n | \"tabs\"\n | \"tag-input\"\n | \"tag-selector\"\n | \"terminal-replay\"\n | \"theme\"\n | \"toast\"\n | \"toc\"\n | \"tooltip\"\n | \"tree-view\"\n | \"txt\"\n | \"update-prompt\"\n | \"verified-badge\"\n | \"vertical-video\"\n | \"video-player\"\n | \"video-trimmer\"\n | \"virtual\"\n | \"wall\";\n\n/** Where a component exists: `@krizaka/ui/<name>` (web), `@krizaka/ui/native` (React Native), or both. */\nexport type Platform = \"web\" | \"native\" | \"both\";\n\n/**\n * Why a component is not on a platform — a decision, never a silence (the parity matrix of ui.krizaka.com/platforms):\n * - `gap` (✗): it belongs there and is not built yet; `issue` is the issue that tracks it (`krizaka/krizaka-ui#275`);\n * - `n/a`: it is not meant for that platform (a site's page block on a phone, a swipe on a desktop); `use` names the\n * component that answers there, when one does.\n */\nexport type Absence =\n | { readonly status: \"gap\"; readonly issue: string; readonly reason: string; readonly use?: undefined }\n | { readonly status: \"n/a\"; readonly reason: string; readonly use?: ComponentName; readonly issue?: undefined };\n\n/**\n * Desktop is the Orazaka Mac app (Tauri 2: the system WebView renders the web components — ADR-002). `web`: the web\n * component runs there as it is; `desktop`: it also has a desktop form (a window's title bar, a denser layout…), said in\n * its documentation; otherwise the absence and why.\n */\nexport type DesktopSupport = \"web\" | \"desktop\" | Absence;\n\n/**\n * The three platforms of Krizaka UI — web · native (React Native, Expo) · desktop — for one component. The side a\n * component has is `platforms`; the side it lacks says why here: `native` is required for (and only for) a web-only\n * component, `web` for a native-only one; `desktop` always. `scripts/registry.test.mjs` fails on a missing decision.\n */\nexport interface Parity {\n readonly web?: Absence;\n readonly native?: Absence;\n readonly desktop: DesktopSupport;\n}\n\n/**\n * `stable`: its API only changes in a major. `beta`: it may still change in a minor. `deprecated`: no product uses it and\n * no work plans to — it still works, says what replaces it, and goes in the major named by `deprecated.removedIn`.\n */\nexport type Status = \"stable\" | \"beta\" | \"deprecated\";\n\n/** What a deprecated component says (required when `status` is `deprecated`, absent otherwise). */\nexport interface Deprecation {\n /** The version that deprecated it (`3.6.0`). */\n readonly since: string;\n /** The major that removes it (`4.0.0`). */\n readonly removedIn: string;\n /** What replaces it, when a component does. */\n readonly use?: ComponentName;\n /** Why it goes: no product uses it, no planned work needs it. */\n readonly reason: string;\n}\n\n/**\n * The group of the catalogue. `media`: video, sound, camera, files, cropping. `blocks`: the page blocks — the frame,\n * the hero, sections, cards that lead or argue, decisions, code, calls to act — that every page of a site is made of.\n * `layouts`: the shells of whole screens — an application, a dashboard, settings, sign-in, an object, a list and its\n * item, a site's page, a documentation page — each with its screens. `templates`: the page templates — whole pages of a\n * site (a landing, a product, a docs hub, a long read, a changelog, pricing, status, an error…), each a distinct\n * composition of the blocks, words and content as props.\n */\nexport type Category = \"actions\" | \"forms\" | \"navigation\" | \"overlays\" | \"feedback\" | \"data-display\" | \"media\" | \"blocks\" | \"layouts\" | \"templates\" | \"layout\" | \"foundations\";\n\n/** Why a reader needs a template: the seven intents the templates are grouped by (sidebar sub-headings, catalogue filter). */\nexport type TemplatePurpose = \"convince\" | \"explain\" | \"show\" | \"act\" | \"operate\" | \"converse\" | \"recover\";\n\n/** The groups of templates, in reading order: the title, and the one line that says when to come to that group. */\nexport const templatePurposes = {\n convince: { title: \"Convince\", useWhen: \"You come here when a visitor must decide: a landing, a product, a price, a comparison, a proof.\" },\n explain: { title: \"Explain\", useWhen: \"You come here when a reader must understand: how it works, a documentation hub or article, a changelog, a FAQ, a policy.\" },\n show: { title: \"Show\", useWhen: \"You come here when the work itself is the argument: a gallery, a story, a case study, an object and its details.\" },\n act: { title: \"Act\", useWhen: \"You come here when a person must do something once: reach the team, sign in or up, set up, pay.\" },\n operate: { title: \"Operate\", useWhen: \"You come here when a person works every day: a dashboard, a console with a table, settings, an app shell.\" },\n converse: { title: \"Converse\", useWhen: \"You come here when people talk: an inbox, a chat, comments, a notifications centre.\" },\n recover: { title: \"Recover\", useWhen: \"You come here when the way is blocked: an empty list, an error, a missing page, maintenance, a product still being built.\" },\n} as const satisfies Record<TemplatePurpose, { readonly title: string; readonly useWhen: string }>;\n\n/**\n * A named example: the file `registry/examples/<component>/<name>.tsx` (web) or\n * `registry/examples/<component>/native/<name>.tsx` (React Native) — at most 40 lines, imported by the stories and\n * shown (live, with its code) by the documentation.\n */\ninterface ExampleBase {\n /** The file name, kebab-case (`primary`, `icon-button`). */\n readonly name: string;\n /** A short title (`Primary`, `Icon button`). */\n readonly title: string;\n /** One or two sentences: when this variant is the right one. */\n readonly description: string;\n}\n\n/** A plain example, or a template: a whole screen with its intent (`purpose`) and the user goal its layout serves (`why`). */\nexport type Example =\n | (ExampleBase & { readonly template?: false; readonly purpose?: undefined; readonly why?: undefined })\n | (ExampleBase & {\n /**\n * A template: a whole screen of a product composed from the platform (a layout and its blocks, real words, its\n * phone version thought out), copied as a starting point — at most 160 lines, listed on ui.krizaka.com/templates.\n */\n readonly template: true;\n /** The intent that groups it: why you need this block. */\n readonly purpose: TemplatePurpose;\n /** Why this layout: the user goal it serves, in one sentence. */\n readonly why: string;\n });\n\n/** One platform's side of a component. */\nexport interface PlatformDocs {\n /** The names to import (`[\"Button\", \"IconButton\"]`): from `@krizaka/ui/<name>` on the web, `@krizaka/ui/native` in React Native. */\n readonly imports: readonly string[];\n /** The examples, in reading order; the first one is the component's preview. */\n readonly examples: readonly Example[];\n}\n\n/** The React Native side: the same concept, and what differs from the web API. */\nexport interface NativeDocs extends PlatformDocs {\n /**\n * The entry to import from when it is not `@krizaka/ui/native`: a component that needs an Expo module (an optional\n * peer) has its own, `@krizaka/ui/native/<name>`, so an app that does not use it never installs the module.\n */\n readonly entry?: string;\n /** What differs from the web API (`label` instead of children…); empty for a native-only component. */\n readonly differences: readonly string[];\n /** The React Native entry alone is deprecated while the web one stays (ADR-006 §7); a deprecated component says it once, above. */\n readonly deprecated?: Deprecation;\n}\n\nexport interface KeyboardInteraction {\n /** The keys, as written on a keyboard: `Space`, `Enter`, `Arrow keys`, `Esc`, `Tab`. */\n readonly keys: string;\n /** What they do. */\n readonly action: string;\n}\n\nexport interface ComponentMeta {\n /** The display name: `Button`, `Dropdown menu`. */\n readonly title: string;\n /** One sentence: what it is. */\n readonly summary: string;\n readonly status: Status;\n /** Required for, and only for, a `deprecated` component. */\n readonly deprecated?: Deprecation;\n readonly category: Category;\n /** Must match the sides below: `both` ⇔ `web` and `native`. */\n readonly platforms: Platform;\n /** The platforms it is not on, and why; and its desktop form (see `Parity`). */\n readonly parity: Parity;\n /** When to reach for it: concrete situations, one per item. */\n readonly whenToUse: readonly string[];\n /** When not to — and what to use instead (`use`), when another component is the answer. */\n readonly whenNotToUse: readonly { readonly when: string; readonly use?: ComponentName }[];\n /** How to use it well: wording, placement, composition. */\n readonly bestPractices: readonly string[];\n readonly accessibility: {\n /** The keyboard, when it does more than Tab and Enter. */\n readonly keyboard: readonly KeyboardInteraction[];\n /** Roles, names and announcements: what the component does, what the app must provide. */\n readonly notes: readonly string[];\n };\n /** The components a reader of this page should know about. */\n readonly related: readonly ComponentName[];\n readonly web?: PlatformDocs;\n readonly native?: NativeDocs;\n}\n"
600
600
  }
601
601
  ],
602
602
  "dependencies": [