@krizaka/ui 4.7.0 → 4.7.1

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 (933) hide show
  1. package/dist/{RotatingWord-D3tpDLE4.d.ts → RotatingWord-CkDcPH9x.d.ts} +2 -2
  2. package/dist/account-menu.js +2 -2
  3. package/dist/account-menu.js.map +1 -1
  4. package/dist/account-settings.d.ts +9 -9
  5. package/dist/account-settings.js +4 -4
  6. package/dist/account-settings.js.map +1 -1
  7. package/dist/achievement.d.ts +3 -3
  8. package/dist/achievement.js +1 -1
  9. package/dist/achievement.js.map +1 -1
  10. package/dist/action-bar.d.ts +1 -1
  11. package/dist/action-bar.js +5 -5
  12. package/dist/action-bar.js.map +1 -1
  13. package/dist/activity-feed.d.ts +2 -2
  14. package/dist/activity-feed.js +1 -1
  15. package/dist/activity-feed.js.map +1 -1
  16. package/dist/alert.d.ts +1 -1
  17. package/dist/alert.js.map +1 -1
  18. package/dist/analysis-report.d.ts +1 -1
  19. package/dist/analysis-report.js +4 -4
  20. package/dist/analysis-report.js.map +1 -1
  21. package/dist/anatomy-plate.d.ts +1 -1
  22. package/dist/anatomy-plate.js +1 -1
  23. package/dist/anatomy-plate.js.map +1 -1
  24. package/dist/app-header/search.d.ts +1 -1
  25. package/dist/app-header/search.js +2 -2
  26. package/dist/app-header/search.js.map +1 -1
  27. package/dist/app-header.d.ts +2 -2
  28. package/dist/app-header.js.map +1 -1
  29. package/dist/app-shell.d.ts +8 -8
  30. package/dist/app-shell.js +4 -4
  31. package/dist/app-shell.js.map +1 -1
  32. package/dist/architecture-diagram.d.ts +1 -1
  33. package/dist/architecture-diagram.js.map +1 -1
  34. package/dist/argument-card.d.ts +2 -2
  35. package/dist/argument-card.js +6 -6
  36. package/dist/argument-card.js.map +1 -1
  37. package/dist/auth-layout.d.ts +1 -1
  38. package/dist/auth-layout.js.map +1 -1
  39. package/dist/avatar.d.ts +2 -2
  40. package/dist/avatar.js.map +1 -1
  41. package/dist/badge.d.ts +1 -1
  42. package/dist/badge.js +1 -1
  43. package/dist/bird-plate.d.ts +1 -1
  44. package/dist/bird-plate.js +2 -2
  45. package/dist/bird-plate.js.map +1 -1
  46. package/dist/button.d.ts +2 -2
  47. package/dist/button.js +3 -3
  48. package/dist/captcha.d.ts +2 -2
  49. package/dist/captcha.js +3 -3
  50. package/dist/captcha.js.map +1 -1
  51. package/dist/card-grid.d.ts +1 -1
  52. package/dist/card-grid.js +1 -1
  53. package/dist/card-grid.js.map +1 -1
  54. package/dist/card.d.ts +9 -9
  55. package/dist/card.js +1 -1
  56. package/dist/card.js.map +1 -1
  57. package/dist/catalogue-page.d.ts +2 -2
  58. package/dist/catalogue-page.js.map +1 -1
  59. package/dist/changelog-page.d.ts +1 -1
  60. package/dist/changelog-page.js +2 -2
  61. package/dist/changelog-page.js.map +1 -1
  62. package/dist/chapter.d.ts +3 -3
  63. package/dist/chapter.js +2 -2
  64. package/dist/chapter.js.map +1 -1
  65. package/dist/chat.d.ts +3 -3
  66. package/dist/chat.js +1 -1
  67. package/dist/chat.js.map +1 -1
  68. package/dist/checkbox.d.ts +1 -1
  69. package/dist/checkbox.js.map +1 -1
  70. package/dist/chip-link.d.ts +1 -1
  71. package/dist/chip-link.js +1 -1
  72. package/dist/chip-row.d.ts +2 -2
  73. package/dist/chip-row.js +1 -1
  74. package/dist/chip-row.js.map +1 -1
  75. package/dist/chip.d.ts +4 -5
  76. package/dist/chip.js +2 -2
  77. package/dist/choice-grid.d.ts +1 -1
  78. package/dist/choice-grid.js +2 -2
  79. package/dist/choice-grid.js.map +1 -1
  80. package/dist/{chunk-S6NYGOJT.js → chunk-22IORLB5.js} +1 -1
  81. package/dist/chunk-22IORLB5.js.map +1 -0
  82. package/dist/{chunk-QA3WETWT.js → chunk-2P7Y3LNN.js} +1 -1
  83. package/dist/chunk-2P7Y3LNN.js.map +1 -0
  84. package/dist/{chunk-OGWB76BR.js → chunk-3CEMOJBL.js} +2 -2
  85. package/dist/chunk-3CEMOJBL.js.map +1 -0
  86. package/dist/{chunk-WC3SO4CE.js → chunk-3SWWUJJL.js} +2 -2
  87. package/dist/chunk-3SWWUJJL.js.map +1 -0
  88. package/dist/{chunk-S2O4NSN5.js → chunk-3TCHVNNB.js} +1 -1
  89. package/dist/chunk-3TCHVNNB.js.map +1 -0
  90. package/dist/{chunk-7P7I5OQV.js → chunk-5KBYZLU4.js} +2 -2
  91. package/dist/chunk-5KBYZLU4.js.map +1 -0
  92. package/dist/{chunk-WKQ5CB3I.js → chunk-6ARAO3TR.js} +1 -1
  93. package/dist/{chunk-WKQ5CB3I.js.map → chunk-6ARAO3TR.js.map} +1 -1
  94. package/dist/{chunk-QHVV2JGF.js → chunk-6LF6IZZM.js} +2 -2
  95. package/dist/chunk-6LF6IZZM.js.map +1 -0
  96. package/dist/{chunk-HP7BDMVK.js → chunk-7B5Q76JR.js} +2 -2
  97. package/dist/chunk-7B5Q76JR.js.map +1 -0
  98. package/dist/{chunk-F2UZ2WWL.js → chunk-7KIIAOQH.js} +1 -1
  99. package/dist/{chunk-F2UZ2WWL.js.map → chunk-7KIIAOQH.js.map} +1 -1
  100. package/dist/{chunk-ADRUEPYC.js → chunk-7MA3UODW.js} +2 -2
  101. package/dist/{chunk-ADRUEPYC.js.map → chunk-7MA3UODW.js.map} +1 -1
  102. package/dist/{chunk-KH3JOEPY.js → chunk-7PVLEALV.js} +1 -1
  103. package/dist/chunk-7PVLEALV.js.map +1 -0
  104. package/dist/{chunk-QVHSV6RA.js → chunk-7UBLUGNW.js} +1 -1
  105. package/dist/chunk-7UBLUGNW.js.map +1 -0
  106. package/dist/{chunk-YTYNKMNS.js → chunk-BKMHN4UA.js} +5 -5
  107. package/dist/chunk-BKMHN4UA.js.map +1 -0
  108. package/dist/{chunk-4QH6CP2Y.js → chunk-BRYRZWLV.js} +1 -1
  109. package/dist/{chunk-4QH6CP2Y.js.map → chunk-BRYRZWLV.js.map} +1 -1
  110. package/dist/{chunk-43PTCDTL.js → chunk-BVN7JFOP.js} +1 -1
  111. package/dist/chunk-BVN7JFOP.js.map +1 -0
  112. package/dist/{chunk-5RWHDX5J.js → chunk-BYKA3FHX.js} +2 -2
  113. package/dist/chunk-BYKA3FHX.js.map +1 -0
  114. package/dist/{chunk-5PFCELGW.js → chunk-DIOAQOR5.js} +1 -1
  115. package/dist/chunk-DIOAQOR5.js.map +1 -0
  116. package/dist/{chunk-HJFRHYCI.js → chunk-DTGRZXYO.js} +2 -2
  117. package/dist/{chunk-P7AFIKWG.js → chunk-DVC4YQI2.js} +2 -2
  118. package/dist/chunk-DVC4YQI2.js.map +1 -0
  119. package/dist/{chunk-V5RO6JYI.js → chunk-E3LFHTUV.js} +2 -2
  120. package/dist/chunk-E3LFHTUV.js.map +1 -0
  121. package/dist/{chunk-WEVYKZIF.js → chunk-EAXIDRMB.js} +1 -1
  122. package/dist/chunk-EAXIDRMB.js.map +1 -0
  123. package/dist/{chunk-WU4VLSEA.js → chunk-EYMS6VRF.js} +1 -1
  124. package/dist/chunk-EYMS6VRF.js.map +1 -0
  125. package/dist/{chunk-LH5J3VLZ.js → chunk-F7EJZV53.js} +1 -1
  126. package/dist/chunk-F7EJZV53.js.map +1 -0
  127. package/dist/{chunk-VPO27AFS.js → chunk-G3L7AKZJ.js} +1 -1
  128. package/dist/chunk-G3L7AKZJ.js.map +1 -0
  129. package/dist/{chunk-EB45EVPJ.js → chunk-G5NROYGK.js} +3 -3
  130. package/dist/chunk-G5NROYGK.js.map +1 -0
  131. package/dist/{chunk-HKEAYSFS.js → chunk-GQMINKT3.js} +1 -1
  132. package/dist/{chunk-ENOS6ETI.js.map → chunk-GQMINKT3.js.map} +1 -1
  133. package/dist/{chunk-3X3OF4TI.js → chunk-H4NXYAL7.js} +1 -1
  134. package/dist/{chunk-3X3OF4TI.js.map → chunk-H4NXYAL7.js.map} +1 -1
  135. package/dist/{chunk-KR2W4ONJ.js → chunk-H7I6YLI6.js} +1 -1
  136. package/dist/chunk-H7I6YLI6.js.map +1 -0
  137. package/dist/{chunk-PJNR4NTS.js → chunk-HC2TY45B.js} +4 -4
  138. package/dist/{chunk-NSLXEDIS.js → chunk-HHBTM4AU.js} +1 -1
  139. package/dist/chunk-HHBTM4AU.js.map +1 -0
  140. package/dist/{chunk-XVRKKYWU.js → chunk-HVUR3UNK.js} +2 -2
  141. package/dist/{chunk-XVRKKYWU.js.map → chunk-HVUR3UNK.js.map} +1 -1
  142. package/dist/{chunk-V7W4RLRW.js → chunk-HWIDTLLO.js} +3 -3
  143. package/dist/chunk-HWIDTLLO.js.map +1 -0
  144. package/dist/{chunk-W675RFOA.js → chunk-ISC2QBXJ.js} +1 -1
  145. package/dist/chunk-ISC2QBXJ.js.map +1 -0
  146. package/dist/{chunk-7DYZTEE3.js → chunk-IWPB6SSW.js} +1 -1
  147. package/dist/chunk-IWPB6SSW.js.map +1 -0
  148. package/dist/{chunk-TVLRE7S3.js → chunk-JDVWUF5W.js} +2 -2
  149. package/dist/{chunk-TVLRE7S3.js.map → chunk-JDVWUF5W.js.map} +1 -1
  150. package/dist/{chunk-757ZTGU5.js → chunk-JE2NY4XE.js} +4 -4
  151. package/dist/chunk-JE2NY4XE.js.map +1 -0
  152. package/dist/{chunk-HLEBSAGC.js → chunk-KBSZ6JRF.js} +2 -2
  153. package/dist/chunk-KBSZ6JRF.js.map +1 -0
  154. package/dist/{chunk-Y3P5B4XS.js → chunk-KCU45KQ3.js} +3 -3
  155. package/dist/chunk-KCU45KQ3.js.map +1 -0
  156. package/dist/{chunk-ST5P5HNI.js → chunk-L4YBG5US.js} +4 -4
  157. package/dist/{chunk-ST5P5HNI.js.map → chunk-L4YBG5US.js.map} +1 -1
  158. package/dist/{chunk-NG6G6V5E.js → chunk-LFH3LEWR.js} +1 -1
  159. package/dist/chunk-LFH3LEWR.js.map +1 -0
  160. package/dist/{chunk-YATTFMDV.js → chunk-LSQQSJ6J.js} +2 -2
  161. package/dist/{chunk-YATTFMDV.js.map → chunk-LSQQSJ6J.js.map} +1 -1
  162. package/dist/{chunk-LNAAWT4Y.js → chunk-MJWOZ3JI.js} +1 -1
  163. package/dist/chunk-MJWOZ3JI.js.map +1 -0
  164. package/dist/{chunk-KID32IRJ.js → chunk-MXHJMTZ5.js} +1 -1
  165. package/dist/{chunk-KID32IRJ.js.map → chunk-MXHJMTZ5.js.map} +1 -1
  166. package/dist/{chunk-GHAN7OOE.js → chunk-N6LAWI4F.js} +2 -2
  167. package/dist/chunk-N6LAWI4F.js.map +1 -0
  168. package/dist/{chunk-5VZ37TY3.js → chunk-NFJWD5BT.js} +2 -2
  169. package/dist/chunk-NFJWD5BT.js.map +1 -0
  170. package/dist/{chunk-ZPOVOEO3.js → chunk-NJLIHGU4.js} +2 -2
  171. package/dist/chunk-NJLIHGU4.js.map +1 -0
  172. package/dist/{chunk-PRD7JRQX.js → chunk-ONCQWOTH.js} +4 -4
  173. package/dist/{chunk-PRD7JRQX.js.map → chunk-ONCQWOTH.js.map} +1 -1
  174. package/dist/{chunk-ENOS6ETI.js → chunk-OZC6CDZF.js} +1 -1
  175. package/dist/{chunk-HKEAYSFS.js.map → chunk-OZC6CDZF.js.map} +1 -1
  176. package/dist/{chunk-TXFX4PMN.js → chunk-OZY4C4W5.js} +1 -1
  177. package/dist/{chunk-TXFX4PMN.js.map → chunk-OZY4C4W5.js.map} +1 -1
  178. package/dist/{chunk-NPMGYLJV.js → chunk-PIRYDEX2.js} +3 -3
  179. package/dist/chunk-PIRYDEX2.js.map +1 -0
  180. package/dist/{chunk-C57KK5VB.js → chunk-PM23USOC.js} +1 -1
  181. package/dist/chunk-PM23USOC.js.map +1 -0
  182. package/dist/{chunk-PGBF3UBX.js → chunk-QKL5TECH.js} +1 -1
  183. package/dist/chunk-QKL5TECH.js.map +1 -0
  184. package/dist/{chunk-Z47KIPCT.js → chunk-QY5JEUJT.js} +1 -1
  185. package/dist/chunk-QY5JEUJT.js.map +1 -0
  186. package/dist/{chunk-FVGFPB73.js → chunk-RPVKF4RR.js} +1 -1
  187. package/dist/{chunk-FVGFPB73.js.map → chunk-RPVKF4RR.js.map} +1 -1
  188. package/dist/{chunk-NM2DEHFZ.js → chunk-RXYKJIC4.js} +1 -1
  189. package/dist/chunk-RXYKJIC4.js.map +1 -0
  190. package/dist/{chunk-W64RAX4N.js → chunk-TKYNYIJS.js} +5 -5
  191. package/dist/chunk-TKYNYIJS.js.map +1 -0
  192. package/dist/{chunk-S4TLZRGZ.js → chunk-UMXWOA3I.js} +1 -1
  193. package/dist/chunk-UMXWOA3I.js.map +1 -0
  194. package/dist/{chunk-VA4NPCUQ.js → chunk-VD7QFUAP.js} +3 -3
  195. package/dist/chunk-VD7QFUAP.js.map +1 -0
  196. package/dist/{chunk-MDSP7DJR.js → chunk-VQELCPQJ.js} +5 -5
  197. package/dist/chunk-VQELCPQJ.js.map +1 -0
  198. package/dist/{chunk-2FCQCWIK.js → chunk-VXNBXW3P.js} +5 -5
  199. package/dist/chunk-VXNBXW3P.js.map +1 -0
  200. package/dist/{chunk-B47WSPMP.js → chunk-WPUDPH2Q.js} +1 -1
  201. package/dist/chunk-WPUDPH2Q.js.map +1 -0
  202. package/dist/{chunk-SG2RKUVJ.js → chunk-WTZUMVJI.js} +5 -5
  203. package/dist/chunk-WTZUMVJI.js.map +1 -0
  204. package/dist/{chunk-EDQLPCM4.js → chunk-WVZF6WK3.js} +2 -2
  205. package/dist/chunk-WVZF6WK3.js.map +1 -0
  206. package/dist/{chunk-5D7NMUF6.js → chunk-XDAETKWM.js} +2 -2
  207. package/dist/chunk-XDAETKWM.js.map +1 -0
  208. package/dist/{chunk-QD6SNXF5.js → chunk-XDWSGNL4.js} +3 -3
  209. package/dist/chunk-XDWSGNL4.js.map +1 -0
  210. package/dist/{chunk-SB5WSVPI.js → chunk-ZFH2BYXW.js} +2 -2
  211. package/dist/chunk-ZFH2BYXW.js.map +1 -0
  212. package/dist/{chunk-XVLWVTQA.js → chunk-ZI7K742O.js} +1 -1
  213. package/dist/{chunk-XVLWVTQA.js.map → chunk-ZI7K742O.js.map} +1 -1
  214. package/dist/{chunk-NQENOT6L.js → chunk-ZRRWSKV3.js} +8 -8
  215. package/dist/chunk-ZRRWSKV3.js.map +1 -0
  216. package/dist/cn.js +1 -1
  217. package/dist/code-block.d.ts +2 -2
  218. package/dist/code-block.js +2 -2
  219. package/dist/code-block.js.map +1 -1
  220. package/dist/collection-switcher.d.ts +1 -1
  221. package/dist/collection-switcher.js +1 -1
  222. package/dist/collection-switcher.js.map +1 -1
  223. package/dist/columns.d.ts +2 -2
  224. package/dist/columns.js.map +1 -1
  225. package/dist/combobox.js +4 -4
  226. package/dist/command.d.ts +10 -10
  227. package/dist/command.js +4 -4
  228. package/dist/command.js.map +1 -1
  229. package/dist/comparison-table.d.ts +1 -1
  230. package/dist/comparison-table.js +1 -1
  231. package/dist/comparison-table.js.map +1 -1
  232. package/dist/component-page.d.ts +1 -1
  233. package/dist/component-page.js.map +1 -1
  234. package/dist/confirm-button.d.ts +1 -1
  235. package/dist/confirm-button.js +4 -4
  236. package/dist/contact-page.d.ts +1 -1
  237. package/dist/contact-page.js.map +1 -1
  238. package/dist/continue-prompt.d.ts +1 -1
  239. package/dist/continue-prompt.js +1 -1
  240. package/dist/continue-prompt.js.map +1 -1
  241. package/dist/copy-button.d.ts +1 -1
  242. package/dist/copy-button.js +4 -4
  243. package/dist/copy-button.js.map +1 -1
  244. package/dist/countdown.d.ts +1 -1
  245. package/dist/countdown.js.map +1 -1
  246. package/dist/cover-hero.d.ts +1 -1
  247. package/dist/cover-hero.js +5 -5
  248. package/dist/cover-hero.js.map +1 -1
  249. package/dist/cta-panel.d.ts +1 -1
  250. package/dist/cta-panel.js +1 -1
  251. package/dist/cta-panel.js.map +1 -1
  252. package/dist/dashboard-layout.d.ts +2 -2
  253. package/dist/dashboard-layout.js.map +1 -1
  254. package/dist/data-table.d.ts +5 -5
  255. package/dist/data-table.js +9 -9
  256. package/dist/date-picker.d.ts +11 -11
  257. package/dist/date-picker.js +5 -5
  258. package/dist/date-picker.js.map +1 -1
  259. package/dist/decision-list.d.ts +1 -1
  260. package/dist/decision-list.js +2 -2
  261. package/dist/decision-list.js.map +1 -1
  262. package/dist/description-list.d.ts +2 -2
  263. package/dist/description-list.js.map +1 -1
  264. package/dist/detail-layout.d.ts +5 -5
  265. package/dist/detail-layout.js +1 -1
  266. package/dist/detail-layout.js.map +1 -1
  267. package/dist/{dialog-DpUwec2g.d.ts → dialog-CFnxFGyn.d.ts} +7 -7
  268. package/dist/dialog.d.ts +2 -2
  269. package/dist/dialog.js +4 -4
  270. package/dist/dialog.js.map +1 -1
  271. package/dist/docs-article-page.d.ts +1 -1
  272. package/dist/docs-article-page.js.map +1 -1
  273. package/dist/docs-hub-page.d.ts +1 -1
  274. package/dist/docs-hub-page.js.map +1 -1
  275. package/dist/docs-layout.d.ts +1 -1
  276. package/dist/docs-layout.js +1 -1
  277. package/dist/docs-layout.js.map +1 -1
  278. package/dist/docs-nav.d.ts +1 -1
  279. package/dist/docs-nav.js +1 -1
  280. package/dist/docs-nav.js.map +1 -1
  281. package/dist/document-viewer.d.ts +2 -2
  282. package/dist/document-viewer.js +3 -3
  283. package/dist/document-viewer.js.map +1 -1
  284. package/dist/doodle.d.ts +1 -1
  285. package/dist/doodle.js +1 -1
  286. package/dist/doodle.js.map +1 -1
  287. package/dist/drop-overlay.d.ts +1 -1
  288. package/dist/drop-overlay.js +1 -1
  289. package/dist/drop-overlay.js.map +1 -1
  290. package/dist/dropdown-menu.d.ts +8 -8
  291. package/dist/dropdown-menu.js +2 -2
  292. package/dist/embed-facade.js +1 -1
  293. package/dist/empty-state.d.ts +1 -1
  294. package/dist/empty-state.js.map +1 -1
  295. package/dist/engine-flow.d.ts +1 -1
  296. package/dist/engine-flow.js +1 -1
  297. package/dist/engine-flow.js.map +1 -1
  298. package/dist/entity-header.d.ts +1 -1
  299. package/dist/entity-header.js +1 -1
  300. package/dist/entity-header.js.map +1 -1
  301. package/dist/environment-notice.d.ts +1 -1
  302. package/dist/environment-notice.js.map +1 -1
  303. package/dist/error-page.d.ts +1 -1
  304. package/dist/error-page.js +1 -1
  305. package/dist/error-page.js.map +1 -1
  306. package/dist/field.d.ts +3 -3
  307. package/dist/field.js +1 -1
  308. package/dist/field.js.map +1 -1
  309. package/dist/file-upload.d.ts +1 -1
  310. package/dist/file-upload.js +1 -1
  311. package/dist/file-upload.js.map +1 -1
  312. package/dist/filter-bar.d.ts +2 -2
  313. package/dist/filter-bar.js +4 -4
  314. package/dist/flock.d.ts +1 -1
  315. package/dist/flock.js +2 -2
  316. package/dist/flock.js.map +1 -1
  317. package/dist/footnote.d.ts +3 -3
  318. package/dist/footnote.js +1 -1
  319. package/dist/footnote.js.map +1 -1
  320. package/dist/force-update-screen.d.ts +1 -1
  321. package/dist/force-update-screen.js +3 -3
  322. package/dist/force-update-screen.js.map +1 -1
  323. package/dist/form/server.js.map +1 -1
  324. package/dist/form.d.ts +12 -12
  325. package/dist/form.js +4 -4
  326. package/dist/form.js.map +1 -1
  327. package/dist/{frame-CmDztC_y.d.ts → frame-D5HU_cG8.d.ts} +2 -2
  328. package/dist/gallery-page.d.ts +1 -1
  329. package/dist/gallery-page.js +1 -1
  330. package/dist/gallery-page.js.map +1 -1
  331. package/dist/genui.d.ts +2 -2
  332. package/dist/genui.js +9 -9
  333. package/dist/genui.js.map +1 -1
  334. package/dist/glossary-term.js +2 -2
  335. package/dist/glow-card.d.ts +1 -1
  336. package/dist/glow-card.js +1 -1
  337. package/dist/glow-card.js.map +1 -1
  338. package/dist/goal-gauge.d.ts +1 -1
  339. package/dist/goal-gauge.js +1 -1
  340. package/dist/goal-gauge.js.map +1 -1
  341. package/dist/grade-stamp.d.ts +1 -1
  342. package/dist/grade-stamp.js +2 -2
  343. package/dist/grade-stamp.js.map +1 -1
  344. package/dist/identity-card.d.ts +1 -1
  345. package/dist/identity-card.js +5 -5
  346. package/dist/identity-card.js.map +1 -1
  347. package/dist/image-cropper.d.ts +1 -1
  348. package/dist/image-cropper.js +3 -3
  349. package/dist/image-cropper.js.map +1 -1
  350. package/dist/index.d.ts +5 -5
  351. package/dist/index.js +2 -2
  352. package/dist/index.js.map +1 -1
  353. package/dist/kanban.d.ts +1 -1
  354. package/dist/kanban.js.map +1 -1
  355. package/dist/kbd.d.ts +1 -1
  356. package/dist/kbd.js.map +1 -1
  357. package/dist/kind-config-editor.js +8 -8
  358. package/dist/kind-config-editor.js.map +1 -1
  359. package/dist/kpi-explained.js +1 -1
  360. package/dist/kpi-explained.js.map +1 -1
  361. package/dist/landing-page.d.ts +1 -1
  362. package/dist/landing-page.js.map +1 -1
  363. package/dist/landscape.d.ts +1 -1
  364. package/dist/landscape.js +2 -2
  365. package/dist/landscape.js.map +1 -1
  366. package/dist/language-switch.d.ts +10 -10
  367. package/dist/language-switch.js +1 -1
  368. package/dist/legal-page.d.ts +1 -1
  369. package/dist/legal-page.js.map +1 -1
  370. package/dist/{lightbox-MRB2YZEP.js → lightbox-JLWASIJC.js} +4 -4
  371. package/dist/link-card.d.ts +1 -1
  372. package/dist/link-card.js +4 -4
  373. package/dist/list.d.ts +1 -1
  374. package/dist/list.js +2 -2
  375. package/dist/list.js.map +1 -1
  376. package/dist/loader.d.ts +2 -2
  377. package/dist/loader.js +1 -1
  378. package/dist/loader.js.map +1 -1
  379. package/dist/longform-page.d.ts +1 -1
  380. package/dist/longform-page.js +1 -1
  381. package/dist/longform-page.js.map +1 -1
  382. package/dist/maintenance-screen.d.ts +1 -1
  383. package/dist/maintenance-screen.js +3 -3
  384. package/dist/maintenance-screen.js.map +1 -1
  385. package/dist/map/cards.d.ts +2 -2
  386. package/dist/map/cards.js +1 -1
  387. package/dist/map/cards.js.map +1 -1
  388. package/dist/map/pin.js +1 -1
  389. package/dist/map/sheet.d.ts +1 -1
  390. package/dist/map/sheet.js +1 -1
  391. package/dist/map/sheet.js.map +1 -1
  392. package/dist/map.d.ts +11 -11
  393. package/dist/map.js +4 -4
  394. package/dist/map.js.map +1 -1
  395. package/dist/margin-layout.d.ts +2 -2
  396. package/dist/margin-layout.js.map +1 -1
  397. package/dist/markdown.d.ts +1 -1
  398. package/dist/markdown.js.map +1 -1
  399. package/dist/marketing-layout.d.ts +1 -1
  400. package/dist/marketing-layout.js.map +1 -1
  401. package/dist/mascot-quote.d.ts +1 -1
  402. package/dist/mascot-quote.js +2 -2
  403. package/dist/mascot-quote.js.map +1 -1
  404. package/dist/mascot-state.d.ts +5 -5
  405. package/dist/mascot-state.js +1 -1
  406. package/dist/mascot-state.js.map +1 -1
  407. package/dist/mascots.d.ts +2 -2
  408. package/dist/mascots.js +2 -2
  409. package/dist/mascots.js.map +1 -1
  410. package/dist/match-dialog.d.ts +1 -1
  411. package/dist/match-dialog.js +4 -4
  412. package/dist/match-dialog.js.map +1 -1
  413. package/dist/media-capture.d.ts +1 -1
  414. package/dist/media-capture.js +1 -1
  415. package/dist/media-capture.js.map +1 -1
  416. package/dist/media-carousel.js +5 -5
  417. package/dist/media-carousel.js.map +1 -1
  418. package/dist/media-gallery.d.ts +1 -1
  419. package/dist/media-gallery.js +1 -1
  420. package/dist/media-gallery.js.map +1 -1
  421. package/dist/media-player.d.ts +1 -1
  422. package/dist/media-player.js +4 -4
  423. package/dist/meter.d.ts +2 -2
  424. package/dist/meter.js +1 -1
  425. package/dist/money-input.d.ts +1 -1
  426. package/dist/money-input.js +3 -3
  427. package/dist/motion.d.ts +1 -1
  428. package/dist/motion.js +1 -1
  429. package/dist/native/form.d.ts +12 -12
  430. package/dist/native/form.js +4 -4
  431. package/dist/native/form.js.map +1 -1
  432. package/dist/native/list.d.ts +1 -1
  433. package/dist/native/list.js.map +1 -1
  434. package/dist/native/map.d.ts +4 -4
  435. package/dist/native/map.js +2 -2
  436. package/dist/native/map.js.map +1 -1
  437. package/dist/native/markdown.js.map +1 -1
  438. package/dist/native/media-capture.d.ts +1 -1
  439. package/dist/native/media-capture.js.map +1 -1
  440. package/dist/native/media-picker.d.ts +1 -1
  441. package/dist/native/media-picker.js.map +1 -1
  442. package/dist/native/vertical-video.d.ts +2 -2
  443. package/dist/native/vertical-video.js.map +1 -1
  444. package/dist/native/video-player.d.ts +1 -1
  445. package/dist/native/video-player.js.map +1 -1
  446. package/dist/native.d.ts +95 -95
  447. package/dist/native.js +13 -13
  448. package/dist/native.js.map +1 -1
  449. package/dist/nav-bar.d.ts +13 -13
  450. package/dist/nav-bar.js +5 -5
  451. package/dist/nav-bar.js.map +1 -1
  452. package/dist/notification-preferences.js +3 -3
  453. package/dist/number-ticker.d.ts +1 -1
  454. package/dist/number-ticker.js +1 -1
  455. package/dist/number-ticker.js.map +1 -1
  456. package/dist/opening-hours.d.ts +1 -1
  457. package/dist/opening-hours.js +1 -1
  458. package/dist/opening-hours.js.map +1 -1
  459. package/dist/{page-DPHDmDAQ.d.ts → page-Ufnb5TrQ.d.ts} +5 -5
  460. package/dist/page-header.d.ts +1 -1
  461. package/dist/page-header.js.map +1 -1
  462. package/dist/page-hero.d.ts +1 -1
  463. package/dist/page-hero.js +5 -5
  464. package/dist/page-hero.js.map +1 -1
  465. package/dist/page-index.d.ts +1 -1
  466. package/dist/page-index.js +2 -2
  467. package/dist/page-index.js.map +1 -1
  468. package/dist/page.d.ts +1 -1
  469. package/dist/page.js +3 -3
  470. package/dist/pagination.d.ts +1 -1
  471. package/dist/pagination.js +1 -1
  472. package/dist/pagination.js.map +1 -1
  473. package/dist/pausable-loop.js +2 -2
  474. package/dist/{player-lightbox-BYQ57OXT.js → player-lightbox-SJR3GB7U.js} +5 -5
  475. package/dist/player-lightbox-SJR3GB7U.js.map +1 -0
  476. package/dist/pointer-light.d.ts +1 -1
  477. package/dist/pointer-light.js.map +1 -1
  478. package/dist/popover.d.ts +1 -1
  479. package/dist/popover.js +1 -1
  480. package/dist/popover.js.map +1 -1
  481. package/dist/price-catalogue-editor.js +8 -8
  482. package/dist/price-catalogue-editor.js.map +1 -1
  483. package/dist/pricing-page.d.ts +1 -1
  484. package/dist/pricing-page.js +1 -1
  485. package/dist/pricing-page.js.map +1 -1
  486. package/dist/product-page.d.ts +1 -1
  487. package/dist/product-page.js +1 -1
  488. package/dist/product-page.js.map +1 -1
  489. package/dist/profile-card.d.ts +3 -3
  490. package/dist/profile-card.js +1 -1
  491. package/dist/profile-card.js.map +1 -1
  492. package/dist/progress.d.ts +1 -1
  493. package/dist/progress.js.map +1 -1
  494. package/dist/promise-card.d.ts +1 -1
  495. package/dist/promise-card.js +1 -1
  496. package/dist/promise-card.js.map +1 -1
  497. package/dist/promo-code-field.js +4 -4
  498. package/dist/proposal.js +5 -5
  499. package/dist/qr-code.js +6 -6
  500. package/dist/qr-code.js.map +1 -1
  501. package/dist/quota-meter.d.ts +1 -1
  502. package/dist/quota-meter.js +1 -1
  503. package/dist/quota-meter.js.map +1 -1
  504. package/dist/radio-group.d.ts +5 -5
  505. package/dist/radio-group.js +3 -3
  506. package/dist/radio-group.js.map +1 -1
  507. package/dist/rail-nav.d.ts +4 -4
  508. package/dist/rail-nav.js +3 -3
  509. package/dist/rail-nav.js.map +1 -1
  510. package/dist/recipes.js +1 -1
  511. package/dist/recipes.js.map +1 -1
  512. package/dist/retro-tv-playlist.d.ts +1 -1
  513. package/dist/retro-tv-playlist.js.map +1 -1
  514. package/dist/retro-tv.js +6 -6
  515. package/dist/retro-tv.js.map +1 -1
  516. package/dist/reviews.js +3 -3
  517. package/dist/{schema-Dkn0uX72.d.ts → schema-Dd05m48Q.d.ts} +1 -1
  518. package/dist/schema-form.js +7 -7
  519. package/dist/schema-form.js.map +1 -1
  520. package/dist/scroll-stage.d.ts +2 -2
  521. package/dist/scroll-stage.js +2 -2
  522. package/dist/scroll-stage.js.map +1 -1
  523. package/dist/search-field.d.ts +1 -1
  524. package/dist/search-field.js +2 -2
  525. package/dist/section-backdrop.d.ts +1 -1
  526. package/dist/section-backdrop.js +1 -1
  527. package/dist/separator.d.ts +1 -1
  528. package/dist/separator.js.map +1 -1
  529. package/dist/service-card.d.ts +1 -1
  530. package/dist/service-card.js +6 -6
  531. package/dist/service-card.js.map +1 -1
  532. package/dist/settings-layout.d.ts +3 -3
  533. package/dist/settings-layout.js +2 -2
  534. package/dist/shop/booking.d.ts +1 -1
  535. package/dist/shop/booking.js +4 -4
  536. package/dist/shop/booking.js.map +1 -1
  537. package/dist/shop/bulletin.d.ts +1 -1
  538. package/dist/shop/bulletin.js +2 -2
  539. package/dist/shop/bulletin.js.map +1 -1
  540. package/dist/shop/faq.d.ts +1 -1
  541. package/dist/shop/faq.js +3 -3
  542. package/dist/shop/faq.js.map +1 -1
  543. package/dist/shop/gallery.d.ts +1 -1
  544. package/dist/shop/gallery.js +3 -3
  545. package/dist/shop/gallery.js.map +1 -1
  546. package/dist/shop/hero.d.ts +1 -1
  547. package/dist/shop/hero.js +2 -2
  548. package/dist/shop/hero.js.map +1 -1
  549. package/dist/shop/policies.d.ts +1 -1
  550. package/dist/shop/policies.js +2 -2
  551. package/dist/shop/policies.js.map +1 -1
  552. package/dist/shop/reviews.d.ts +1 -1
  553. package/dist/shop/reviews.js +2 -2
  554. package/dist/shop/reviews.js.map +1 -1
  555. package/dist/shop/services.d.ts +1 -1
  556. package/dist/shop/services.js +4 -4
  557. package/dist/shop/services.js.map +1 -1
  558. package/dist/shop/social.d.ts +1 -1
  559. package/dist/shop/social.js +2 -2
  560. package/dist/shop/social.js.map +1 -1
  561. package/dist/shop/story.d.ts +1 -1
  562. package/dist/shop/story.js +2 -2
  563. package/dist/shop/story.js.map +1 -1
  564. package/dist/shop/team.d.ts +1 -1
  565. package/dist/shop/team.js +2 -2
  566. package/dist/shop/team.js.map +1 -1
  567. package/dist/shop/video.d.ts +1 -1
  568. package/dist/shop/video.js +2 -2
  569. package/dist/shop/video.js.map +1 -1
  570. package/dist/shop/visit.d.ts +1 -1
  571. package/dist/shop/visit.js +2 -2
  572. package/dist/shop/visit.js.map +1 -1
  573. package/dist/shop-composer.js +2 -2
  574. package/dist/shop-composer.js.map +1 -1
  575. package/dist/shop-gallery.d.ts +1 -1
  576. package/dist/shop-gallery.js +2 -2
  577. package/dist/shop-gallery.js.map +1 -1
  578. package/dist/shop.d.ts +3 -3
  579. package/dist/shop.js +2 -2
  580. package/dist/showcase.d.ts +1 -1
  581. package/dist/showcase.js +6 -6
  582. package/dist/showcase.js.map +1 -1
  583. package/dist/signature.d.ts +1 -1
  584. package/dist/signature.js +2 -2
  585. package/dist/signature.js.map +1 -1
  586. package/dist/site-cahier.d.ts +3 -3
  587. package/dist/site-cahier.js +10 -10
  588. package/dist/site-cahier.js.map +1 -1
  589. package/dist/site-footer.d.ts +4 -4
  590. package/dist/site-footer.js +1 -1
  591. package/dist/site-footer.js.map +1 -1
  592. package/dist/skeleton.d.ts +3 -3
  593. package/dist/skeleton.js.map +1 -1
  594. package/dist/skip-link.d.ts +1 -1
  595. package/dist/skip-link.js +1 -1
  596. package/dist/slider.d.ts +1 -1
  597. package/dist/slider.js +2 -2
  598. package/dist/slider.js.map +1 -1
  599. package/dist/slot-picker.d.ts +1 -1
  600. package/dist/slot-picker.js +1 -1
  601. package/dist/slot-picker.js.map +1 -1
  602. package/dist/specimen-tag.d.ts +2 -2
  603. package/dist/specimen-tag.js +2 -2
  604. package/dist/speed-lines.d.ts +1 -1
  605. package/dist/speed-lines.js +1 -1
  606. package/dist/speed-lines.js.map +1 -1
  607. package/dist/spinner.d.ts +2 -2
  608. package/dist/spinner.js +1 -1
  609. package/dist/spinner.js.map +1 -1
  610. package/dist/split-view.d.ts +1 -1
  611. package/dist/split-view.js.map +1 -1
  612. package/dist/stage-banner.d.ts +1 -1
  613. package/dist/stage-banner.js +1 -1
  614. package/dist/stage-banner.js.map +1 -1
  615. package/dist/stat.d.ts +2 -2
  616. package/dist/stat.js +1 -1
  617. package/dist/status-chip.js +4 -4
  618. package/dist/status-chip.js.map +1 -1
  619. package/dist/status-page.d.ts +1 -1
  620. package/dist/status-page.js.map +1 -1
  621. package/dist/step-progress.d.ts +1 -1
  622. package/dist/step-progress.js.map +1 -1
  623. package/dist/step-showcase.d.ts +2 -2
  624. package/dist/step-showcase.js +3 -3
  625. package/dist/step-showcase.js.map +1 -1
  626. package/dist/stepper.d.ts +1 -1
  627. package/dist/stepper.js +1 -1
  628. package/dist/stepper.js.map +1 -1
  629. package/dist/sticky-action.d.ts +1 -1
  630. package/dist/sticky-action.js.map +1 -1
  631. package/dist/stuck.d.ts +1 -1
  632. package/dist/stuck.js +1 -1
  633. package/dist/stuck.js.map +1 -1
  634. package/dist/swipe-deck.d.ts +2 -2
  635. package/dist/swipe-deck.js.map +1 -1
  636. package/dist/switch.d.ts +1 -1
  637. package/dist/switch.js +1 -1
  638. package/dist/tabs.d.ts +6 -6
  639. package/dist/tabs.js +1 -1
  640. package/dist/tabs.js.map +1 -1
  641. package/dist/tag-input.d.ts +1 -1
  642. package/dist/tag-input.js +4 -4
  643. package/dist/tag-input.js.map +1 -1
  644. package/dist/tag-selector.d.ts +1 -1
  645. package/dist/tag-selector.js +3 -3
  646. package/dist/tag-selector.js.map +1 -1
  647. package/dist/taped-photo.d.ts +1 -1
  648. package/dist/taped-photo.js +2 -2
  649. package/dist/terminal-replay.d.ts +1 -1
  650. package/dist/terminal-replay.js +3 -3
  651. package/dist/terminal-replay.js.map +1 -1
  652. package/dist/text-style/server.d.ts +1 -1
  653. package/dist/text-style/server.js.map +1 -1
  654. package/dist/text-style.d.ts +2 -2
  655. package/dist/text-style.js.map +1 -1
  656. package/dist/theme.d.ts +3 -3
  657. package/dist/theme.js +3 -3
  658. package/dist/theme.js.map +1 -1
  659. package/dist/toast.d.ts +1 -1
  660. package/dist/toast.js +2 -2
  661. package/dist/toast.js.map +1 -1
  662. package/dist/toc.d.ts +2 -2
  663. package/dist/toc.js +1 -1
  664. package/dist/toc.js.map +1 -1
  665. package/dist/tooltip.d.ts +1 -1
  666. package/dist/tooltip.js +2 -2
  667. package/dist/tree-view.d.ts +1 -1
  668. package/dist/tree-view.js +2 -2
  669. package/dist/tree-view.js.map +1 -1
  670. package/dist/update-prompt.d.ts +1 -1
  671. package/dist/update-prompt.js +3 -3
  672. package/dist/update-prompt.js.map +1 -1
  673. package/dist/upload-queue.d.ts +2 -2
  674. package/dist/upload-queue.js +1 -1
  675. package/dist/upload-queue.js.map +1 -1
  676. package/dist/usage.d.ts +4 -4
  677. package/dist/usage.js +3 -3
  678. package/dist/usage.js.map +1 -1
  679. package/dist/verified-badge.d.ts +1 -1
  680. package/dist/verified-badge.js.map +1 -1
  681. package/dist/versus-card.d.ts +1 -1
  682. package/dist/versus-card.js +2 -2
  683. package/dist/versus-card.js.map +1 -1
  684. package/dist/vertical-video.d.ts +2 -2
  685. package/dist/vertical-video.js +6 -6
  686. package/dist/vertical-video.js.map +1 -1
  687. package/dist/video-player.d.ts +1 -1
  688. package/dist/video-player.js +5 -5
  689. package/dist/video-trimmer.d.ts +1 -1
  690. package/dist/video-trimmer.js.map +1 -1
  691. package/dist/virtual.d.ts +2 -2
  692. package/dist/virtual.js +1 -1
  693. package/dist/wall.js +2 -2
  694. package/dist/wall.js.map +1 -1
  695. package/dist/waveform.d.ts +1 -1
  696. package/dist/waveform.js.map +1 -1
  697. package/package.json +7 -7
  698. package/registry/account-settings.json +17 -17
  699. package/registry/achievement.json +1 -1
  700. package/registry/action-bar.json +3 -3
  701. package/registry/activity-feed.json +2 -2
  702. package/registry/alert.json +1 -1
  703. package/registry/analysis-report.json +1 -1
  704. package/registry/anatomy-plate.json +1 -1
  705. package/registry/app-frame.json +6 -6
  706. package/registry/app-header.json +4 -4
  707. package/registry/app-shell.json +2 -2
  708. package/registry/architecture-diagram.json +1 -1
  709. package/registry/argument-card.json +3 -3
  710. package/registry/auth-layout.json +1 -1
  711. package/registry/avatar.json +3 -3
  712. package/registry/badge.json +1 -1
  713. package/registry/bird-plate.json +1 -1
  714. package/registry/button.json +1 -1
  715. package/registry/captcha.json +1 -1
  716. package/registry/card-grid.json +1 -1
  717. package/registry/card.json +1 -1
  718. package/registry/catalogue-page.json +1 -1
  719. package/registry/changelog-page.json +2 -2
  720. package/registry/chapter.json +2 -2
  721. package/registry/chat.json +1 -1
  722. package/registry/checkbox.json +1 -1
  723. package/registry/chip-link.json +1 -1
  724. package/registry/chip-row.json +1 -1
  725. package/registry/chip.json +2 -2
  726. package/registry/choice-grid.json +2 -2
  727. package/registry/cn.json +1 -1
  728. package/registry/code-block.json +2 -2
  729. package/registry/collection-switcher.json +2 -2
  730. package/registry/columns.json +1 -1
  731. package/registry/combobox.json +2 -2
  732. package/registry/command.json +1 -1
  733. package/registry/comparison-table.json +1 -1
  734. package/registry/component-page.json +1 -1
  735. package/registry/confirm-button.json +1 -1
  736. package/registry/contact-page.json +1 -1
  737. package/registry/continue-prompt.json +1 -1
  738. package/registry/copy-button.json +2 -2
  739. package/registry/countdown.json +1 -1
  740. package/registry/cover-hero.json +3 -3
  741. package/registry/cta-panel.json +1 -1
  742. package/registry/dashboard-layout.json +2 -2
  743. package/registry/data-table.json +4 -4
  744. package/registry/date-picker.json +8 -8
  745. package/registry/decision-list.json +2 -2
  746. package/registry/description-list.json +1 -1
  747. package/registry/detail-layout.json +1 -1
  748. package/registry/dialog.json +2 -2
  749. package/registry/docs-article-page.json +1 -1
  750. package/registry/docs-hub-page.json +1 -1
  751. package/registry/docs-layout.json +2 -2
  752. package/registry/docs-nav.json +1 -1
  753. package/registry/document-viewer.json +2 -2
  754. package/registry/doodle.json +1 -1
  755. package/registry/drop-overlay.json +1 -1
  756. package/registry/dropdown-menu.json +1 -1
  757. package/registry/empty-state.json +1 -1
  758. package/registry/engine-flow.json +1 -1
  759. package/registry/entity-header.json +2 -2
  760. package/registry/environment-notice.json +1 -1
  761. package/registry/error-page.json +1 -1
  762. package/registry/field.json +1 -1
  763. package/registry/file-upload.json +2 -2
  764. package/registry/filter-bar.json +4 -4
  765. package/registry/flock.json +1 -1
  766. package/registry/footnote.json +1 -1
  767. package/registry/force-update-screen.json +1 -1
  768. package/registry/form.json +64 -64
  769. package/registry/gallery-page.json +1 -1
  770. package/registry/genui.json +2 -2
  771. package/registry/glow-card.json +1 -1
  772. package/registry/goal-gauge.json +1 -1
  773. package/registry/grade-stamp.json +1 -1
  774. package/registry/identity-card.json +1 -1
  775. package/registry/image-cropper.json +1 -1
  776. package/registry/index.json +8 -8
  777. package/registry/kanban.json +1 -1
  778. package/registry/kbd.json +1 -1
  779. package/registry/kind-config-editor.json +2 -2
  780. package/registry/kpi-explained.json +1 -1
  781. package/registry/landing-page.json +1 -1
  782. package/registry/landscape.json +1 -1
  783. package/registry/language-switch.json +1 -1
  784. package/registry/legal-page.json +1 -1
  785. package/registry/link-card.json +3 -3
  786. package/registry/list.json +2 -2
  787. package/registry/loader.json +1 -1
  788. package/registry/longform-page.json +1 -1
  789. package/registry/maintenance-screen.json +1 -1
  790. package/registry/map.json +7 -7
  791. package/registry/margin-layout.json +1 -1
  792. package/registry/markdown.json +1 -1
  793. package/registry/marketing-layout.json +1 -1
  794. package/registry/mascot-quote.json +1 -1
  795. package/registry/mascot-state.json +2 -2
  796. package/registry/mascots.json +3 -3
  797. package/registry/match-dialog.json +1 -1
  798. package/registry/media-capture.json +2 -2
  799. package/registry/media-gallery.json +4 -4
  800. package/registry/meter.json +1 -1
  801. package/registry/money-input.json +1 -1
  802. package/registry/nav-bar.json +8 -8
  803. package/registry/number-ticker.json +1 -1
  804. package/registry/opening-hours.json +2 -2
  805. package/registry/page-header.json +1 -1
  806. package/registry/page-hero.json +3 -3
  807. package/registry/page-index.json +2 -2
  808. package/registry/page.json +1 -1
  809. package/registry/pagination.json +2 -2
  810. package/registry/pointer-light.json +1 -1
  811. package/registry/popover.json +1 -1
  812. package/registry/price-catalogue-editor.json +1 -1
  813. package/registry/pricing-page.json +2 -2
  814. package/registry/product-page.json +1 -1
  815. package/registry/profile-card.json +3 -3
  816. package/registry/progress.json +1 -1
  817. package/registry/promise-card.json +1 -1
  818. package/registry/qr-code.json +2 -2
  819. package/registry/quota-meter.json +1 -1
  820. package/registry/radio-group.json +14 -14
  821. package/registry/rail-nav.json +8 -8
  822. package/registry/recipes.json +1 -1
  823. package/registry/retro-tv.json +3 -3
  824. package/registry/schema-form.json +1 -1
  825. package/registry/scroll-stage.json +1 -1
  826. package/registry/search-field.json +2 -2
  827. package/registry/section-backdrop.json +1 -1
  828. package/registry/separator.json +1 -1
  829. package/registry/service-card.json +3 -3
  830. package/registry/settings-layout.json +1 -1
  831. package/registry/shop-composer.json +3 -3
  832. package/registry/shop-gallery.json +1 -1
  833. package/registry/shop.json +17 -17
  834. package/registry/showcase.json +1 -1
  835. package/registry/signature.json +1 -1
  836. package/registry/site-cahier.json +2 -2
  837. package/registry/site-footer.json +10 -10
  838. package/registry/skeleton.json +1 -1
  839. package/registry/skip-link.json +1 -1
  840. package/registry/slider.json +1 -1
  841. package/registry/slot-picker.json +2 -2
  842. package/registry/specimen-tag.json +1 -1
  843. package/registry/speed-lines.json +1 -1
  844. package/registry/spinner.json +2 -2
  845. package/registry/split-view.json +1 -1
  846. package/registry/stage-banner.json +1 -1
  847. package/registry/stat.json +1 -1
  848. package/registry/status-chip.json +2 -2
  849. package/registry/status-page.json +1 -1
  850. package/registry/step-progress.json +1 -1
  851. package/registry/step-showcase.json +2 -2
  852. package/registry/stepper.json +1 -1
  853. package/registry/sticky-action.json +1 -1
  854. package/registry/stuck.json +1 -1
  855. package/registry/swipe-deck.json +1 -1
  856. package/registry/switch.json +1 -1
  857. package/registry/tabs.json +1 -1
  858. package/registry/tag-input.json +1 -1
  859. package/registry/tag-selector.json +1 -1
  860. package/registry/taped-photo.json +1 -1
  861. package/registry/terminal-replay.json +2 -2
  862. package/registry/text-style.json +8 -8
  863. package/registry/theme.json +1 -1
  864. package/registry/toast.json +1 -1
  865. package/registry/toc.json +1 -1
  866. package/registry/tooltip.json +1 -1
  867. package/registry/tree-view.json +2 -2
  868. package/registry/update-prompt.json +1 -1
  869. package/registry/upload-queue.json +1 -1
  870. package/registry/usage.json +2 -2
  871. package/registry/verified-badge.json +1 -1
  872. package/registry/versus-card.json +1 -1
  873. package/registry/vertical-video.json +2 -2
  874. package/registry/video-player.json +2 -2
  875. package/registry/video-trimmer.json +1 -1
  876. package/registry/virtual.json +3 -3
  877. package/registry/wall.json +1 -1
  878. package/registry/waveform.json +1 -1
  879. package/dist/chunk-2FCQCWIK.js.map +0 -1
  880. package/dist/chunk-43PTCDTL.js.map +0 -1
  881. package/dist/chunk-5D7NMUF6.js.map +0 -1
  882. package/dist/chunk-5PFCELGW.js.map +0 -1
  883. package/dist/chunk-5RWHDX5J.js.map +0 -1
  884. package/dist/chunk-5VZ37TY3.js.map +0 -1
  885. package/dist/chunk-757ZTGU5.js.map +0 -1
  886. package/dist/chunk-7DYZTEE3.js.map +0 -1
  887. package/dist/chunk-7P7I5OQV.js.map +0 -1
  888. package/dist/chunk-B47WSPMP.js.map +0 -1
  889. package/dist/chunk-C57KK5VB.js.map +0 -1
  890. package/dist/chunk-EB45EVPJ.js.map +0 -1
  891. package/dist/chunk-EDQLPCM4.js.map +0 -1
  892. package/dist/chunk-GHAN7OOE.js.map +0 -1
  893. package/dist/chunk-HLEBSAGC.js.map +0 -1
  894. package/dist/chunk-HP7BDMVK.js.map +0 -1
  895. package/dist/chunk-KH3JOEPY.js.map +0 -1
  896. package/dist/chunk-KR2W4ONJ.js.map +0 -1
  897. package/dist/chunk-LH5J3VLZ.js.map +0 -1
  898. package/dist/chunk-LNAAWT4Y.js.map +0 -1
  899. package/dist/chunk-MDSP7DJR.js.map +0 -1
  900. package/dist/chunk-NG6G6V5E.js.map +0 -1
  901. package/dist/chunk-NM2DEHFZ.js.map +0 -1
  902. package/dist/chunk-NPMGYLJV.js.map +0 -1
  903. package/dist/chunk-NQENOT6L.js.map +0 -1
  904. package/dist/chunk-NSLXEDIS.js.map +0 -1
  905. package/dist/chunk-OGWB76BR.js.map +0 -1
  906. package/dist/chunk-P7AFIKWG.js.map +0 -1
  907. package/dist/chunk-PGBF3UBX.js.map +0 -1
  908. package/dist/chunk-QA3WETWT.js.map +0 -1
  909. package/dist/chunk-QD6SNXF5.js.map +0 -1
  910. package/dist/chunk-QHVV2JGF.js.map +0 -1
  911. package/dist/chunk-QVHSV6RA.js.map +0 -1
  912. package/dist/chunk-S2O4NSN5.js.map +0 -1
  913. package/dist/chunk-S4TLZRGZ.js.map +0 -1
  914. package/dist/chunk-S6NYGOJT.js.map +0 -1
  915. package/dist/chunk-SB5WSVPI.js.map +0 -1
  916. package/dist/chunk-SG2RKUVJ.js.map +0 -1
  917. package/dist/chunk-V5RO6JYI.js.map +0 -1
  918. package/dist/chunk-V7W4RLRW.js.map +0 -1
  919. package/dist/chunk-VA4NPCUQ.js.map +0 -1
  920. package/dist/chunk-VPO27AFS.js.map +0 -1
  921. package/dist/chunk-W64RAX4N.js.map +0 -1
  922. package/dist/chunk-W675RFOA.js.map +0 -1
  923. package/dist/chunk-WC3SO4CE.js.map +0 -1
  924. package/dist/chunk-WEVYKZIF.js.map +0 -1
  925. package/dist/chunk-WU4VLSEA.js.map +0 -1
  926. package/dist/chunk-Y3P5B4XS.js.map +0 -1
  927. package/dist/chunk-YTYNKMNS.js.map +0 -1
  928. package/dist/chunk-Z47KIPCT.js.map +0 -1
  929. package/dist/chunk-ZPOVOEO3.js.map +0 -1
  930. package/dist/player-lightbox-BYQ57OXT.js.map +0 -1
  931. /package/dist/{chunk-HJFRHYCI.js.map → chunk-DTGRZXYO.js.map} +0 -0
  932. /package/dist/{chunk-PJNR4NTS.js.map → chunk-HC2TY45B.js.map} +0 -0
  933. /package/dist/{lightbox-MRB2YZEP.js.map → lightbox-JLWASIJC.js.map} +0 -0
@@ -231,7 +231,7 @@
231
231
  "files": [
232
232
  {
233
233
  "path": "engine-flow/engine-flow.tsx",
234
- "content": "// Client (the node a visitor points at or focuses). An engine at the hub and the apps it serves around it: one conduit\n// per app, and photons that travel it — towards the hub (`in`: requests), back (`out`: results) or both — in the app's\n// brand colour going in and the hub's coming back. A planned app is drawn dim, its conduit dashed and still.\n//\n// Motion is the Krizaka signature's (motion.css): CSS animations of `stroke-dashoffset`, no animation frame, no canvas;\n// paused off screen (`data-motion-scope` → MotionObserver's `data-offscreen`), held while the page settles (`kz-loop`),\n// a still frame under reduced motion and Save-Data (the photons rest along their conduit). The stage keeps its aspect ratio and the\n// detail line its height: no layout shift.\n//\n// Anchoring: a conduit runs between the centres of the node's circle and of the hub's ring (the label and the caption hang\n// below them, out of the box), and both circles are opaque and drawn over it — so every conduit meets the circle at the point\n// facing the other end, whatever the layout and the number of nodes.\n//\n// Accessible: the drawing is hidden from assistive technology; every node is a real button named by its label, and the\n// detail line (polite live region) says the chosen node's description with its link. Pair it with a text version (a\n// list) in the page: the figure is a picture of it.\nimport * as React from \"react\";\n\nimport { cn } from \"../cn\";\nimport { type FlowConduit, flowGeometry, type FlowLayout } from \"./geometry\";\n\nexport interface EngineFlowNode {\n /** A stable id (`verikora`). */\n id: string;\n /** Its name, the button's accessible name (\"Verikora\"). */\n label: string;\n /** Its mark (a `ProductLogo`), decorative. */\n mark?: React.ReactNode;\n /** One line: what it uses the engine for — shown when the node is pointed at or focused. */\n description?: React.ReactNode;\n /** Where it lives (its site). */\n href?: string;\n /** The link's words (\"Visit dev.verikora.com\"); defaults to the label. */\n linkLabel?: React.ReactNode;\n /** Opens the link in a new tab. */\n external?: boolean;\n /** What travels: `in` towards the hub, `out` back from it, `both`.\n * @default \"in\" */\n flow?: \"in\" | \"out\" | \"both\";\n /** Not wired yet: drawn dim, its conduit dashed and still, no photon. */\n planned?: boolean;\n /** A word beside the name in the detail line (\"planned\"), passed translated. */\n status?: React.ReactNode;\n /** Its brand scope (`brand-verikora`): its conduit, photons and ring take its `--kz-accent`. */\n className?: string;\n}\n\nexport interface EngineFlowHub {\n /** The engine's name (\"Sovkora\"). */\n label: string;\n /** Its mark, decorative. */\n mark?: React.ReactNode;\n /** A line under the name (\"the engine\"). */\n caption?: React.ReactNode;\n /** Its brand scope; the photons coming back take its accent. */\n className?: string;\n}\n\nexport type EngineFlowProps = Omit<React.ComponentProps<\"figure\">, \"children\"> & {\n /** What the figure shows (\"Sovkora and the products it powers\"), passed translated. */\n label: string;\n /** The engine, at the hub. */\n hub: EngineFlowHub;\n /** The apps around it. */\n nodes: readonly EngineFlowNode[];\n /** How the nodes sit around the hub.\n * @default \"radial\" */\n layout?: FlowLayout;\n /** The layout under a 560 px wide container (a phone); `false` keeps `layout` everywhere.\n * @default \"top-to-bottom\" */\n compactLayout?: FlowLayout | false;\n /** `photons` travel the conduits; `none` draws them still.\n * @default \"photons\" */\n particles?: \"photons\" | \"none\";\n /** The conduits' shape.\n * @default \"bezier\" */\n conduit?: FlowConduit;\n /** The detail line before a node is chosen (\"Point at a product\"). */\n hint?: React.ReactNode;\n /** The node shown in the detail line at first. */\n defaultActive?: string;\n /** Photon speed, in units per second (the stage is 100 units wide).\n * @default 16 */\n speed?: number;\n /** How many photons share a conduit: `sparse` one or two, `normal` two to four, `dense` four to eight.\n * @default \"normal\" */\n density?: FlowDensity;\n /** When the photons travel: `always`; `hover` only while the pointer or focus is on the figure (they rest along the\n * conduits otherwise); `active` only on the conduit of the chosen node (the others show nothing). Off screen they\n * are always paused, and still under reduced motion.\n * @default \"always\" */\n trigger?: FlowTrigger;\n /** The photons' timing function: `linear` (a steady stream), `ease-in-out` (a pulse that swells and settles), or any\n * CSS `<easing-function>` (`cubic-bezier(.2,0,0,1)`, `steps(6)`).\n * @default \"linear\" */\n easing?: FlowEasing;\n /** Milliseconds between one conduit's photons and the next's: 0 sends them all together.\n * @default 300 */\n stagger?: number;\n /** The engine's mark swells slowly (a loop, still under reduced motion).\n * @default true */\n breathe?: boolean;\n /** The calm level, for a small frame (a tile of a home page): sparse photons at a low rate, a slow breath, no hint and\n * no detail line, nothing to tune. It plays only on screen and once the page has settled, and stays still under\n * reduced motion and Save-Data. Overrides `speed`, `density`, `stagger` and `trigger`.\n * @default false */\n calm?: boolean;\n};\n\n/** The calm level's pace: units per second, photons per conduit, milliseconds between conduits. */\nexport const CALM_FLOW = { speed: 4, density: \"sparse\", stagger: 1200 } as const satisfies { speed: number; density: FlowDensity; stagger: number };\n\nconst subscribeSaveData = (onChange: () => void) => {\n const c = (navigator as Navigator & { connection?: EventTarget }).connection;\n c?.addEventListener?.(\"change\", onChange);\n return () => c?.removeEventListener?.(\"change\", onChange);\n};\nconst readSaveData = () => (navigator as Navigator & { connection?: { saveData?: boolean } }).connection?.saveData === true;\n\n\nexport type FlowDensity = \"sparse\" | \"normal\" | \"dense\";\nexport type FlowTrigger = \"always\" | \"hover\" | \"active\";\nexport type FlowEasing = \"linear\" | \"ease-in-out\" | (string & {});\n\n/** How many photons a conduit of this length carries (evenly spaced, so the gap is `length / count`). */\nexport function photonCount(length: number, density: FlowDensity = \"normal\"): number {\n const base = Math.round(length / 16);\n if (density === \"sparse\") return Math.min(2, Math.max(1, Math.round(base / 2)));\n if (density === \"dense\") return Math.min(8, Math.max(4, base * 2));\n return Math.min(4, Math.max(2, base));\n}\n\nfunction Stage({\n layout,\n variant,\n nodes,\n hub,\n conduit,\n particles,\n speed,\n density,\n easing,\n stagger,\n breathe,\n active,\n onActive,\n detailId,\n}: Readonly<{\n layout: FlowLayout;\n variant: \"wide\" | \"compact\";\n nodes: readonly EngineFlowNode[];\n hub: EngineFlowHub;\n conduit: FlowConduit;\n particles: \"photons\" | \"none\";\n speed: number;\n density: FlowDensity;\n easing: FlowEasing;\n stagger: number;\n breathe: boolean;\n active: string | undefined;\n onActive: (id: string) => void;\n detailId: string | undefined;\n}>) {\n const g = flowGeometry(layout, nodes.length, conduit);\n const pct = (v: number, of: number) => `${((v / of) * 100).toFixed(3)}%`;\n return (\n <div className=\"kz-flow-stage\" data-variant={variant} data-layout={layout} style={{ aspectRatio: `${g.width} / ${g.height}` }}>\n <svg viewBox={`0 0 ${g.width} ${g.height}`} aria-hidden=\"true\" focusable=\"false\">\n {nodes.map((node, i) => {\n const flow = node.flow ?? \"in\";\n const length = g.lengths[i] ?? 0;\n // Photons per conduit (`density`), evenly spaced; the same speed on every conduit.\n const gap = length / photonCount(length, density);\n const period = gap / speed;\n const timing = (dir: \"in\" | \"out\") =>\n ({\n \"--kz-flow-gap\": gap.toFixed(3),\n animationDuration: `${period.toFixed(2)}s`,\n // Each conduit starts `stagger` ms after the previous (a negative delay: already under way); the way back is half a period behind.\n animationDelay: `${(-(((i * stagger) / 1000 + (dir === \"out\" ? period / 2 : 0)) % period)).toFixed(2)}s`,\n ...(easing !== \"linear\" ? { animationTimingFunction: easing } : {}),\n }) as React.CSSProperties;\n const lanes = node.planned || particles === \"none\" ? [] : flow === \"both\" ? ([\"in\", \"out\"] as const) : [flow];\n return (\n <g\n key={node.id}\n className={cn(\"kz-flow-link\", node.className)}\n data-flow={flow}\n data-planned={node.planned ? \"\" : undefined}\n data-active={active === node.id ? \"\" : undefined}\n >\n <path className=\"kz-flow-wire\" d={g.paths[i]} />\n {lanes.map((dir) => (\n <React.Fragment key={dir}>\n <path className=\"kz-flow-photon kz-loop\" data-dir={dir} data-halo=\"\" d={g.paths[i]} style={timing(dir)} />\n <path className=\"kz-flow-photon kz-loop\" data-dir={dir} d={g.paths[i]} style={timing(dir)} />\n </React.Fragment>\n ))}\n </g>\n );\n })}\n </svg>\n <div className={cn(\"kz-flow-hub\", hub.className)} style={{ left: pct(g.hub.x, g.width), top: pct(g.hub.y, g.height) }}>\n {hub.mark ? <span className={cn(\"kz-flow-hub-mark\", breathe && \"kz-loop\")}>{hub.mark}</span> : null}\n <span className=\"kz-flow-hub-text\">\n <span className=\"kz-flow-hub-label\">{hub.label}</span>\n {hub.caption ? <span className=\"kz-flow-hub-caption\">{hub.caption}</span> : null}\n </span>\n </div>\n <ul className=\"kz-flow-nodes\">\n {nodes.map((node, i) => {\n const p = g.nodes[i]!;\n const on = active === node.id;\n return (\n <li key={node.id} style={{ left: pct(p.x, g.width), top: pct(p.y, g.height) }}>\n <button\n type=\"button\"\n className={cn(\"kz-flow-node\", node.className)}\n data-active={on ? \"\" : undefined}\n data-planned={node.planned ? \"\" : undefined}\n aria-pressed={on}\n aria-controls={detailId}\n onPointerEnter={() => onActive(node.id)}\n onFocus={() => onActive(node.id)}\n onClick={() => onActive(node.id)}\n >\n {node.mark ? (\n <span className=\"kz-flow-node-mark\" aria-hidden=\"true\">\n {node.mark}\n </span>\n ) : null}\n <span className=\"kz-flow-node-label\">{node.label}</span>\n </button>\n </li>\n );\n })}\n </ul>\n </div>\n );\n}\n\ntype FlowDataInput = { chosen: boolean; calm: boolean; saveData: boolean; trigger: string; density: string; compact: boolean };\n\n/** The figure's data attributes: the CSS reads the state from them. */\nfunction flowData({ chosen, calm, saveData, trigger, density, compact }: FlowDataInput) {\n let dataDensity: string | undefined = density === \"normal\" ? undefined : density;\n if (calm) dataDensity = \"sparse\";\n return {\n \"data-active\": chosen ? \"\" : undefined,\n \"data-calm\": calm ? \"\" : undefined,\n \"data-still\": saveData ? \"\" : undefined,\n \"data-trigger\": calm || trigger === \"always\" ? undefined : trigger,\n \"data-density\": dataDensity,\n \"data-compact\": compact ? \"\" : undefined,\n };\n}\n\n/** What the chosen node says, or the hint when none is chosen. */\nfunction FlowDetail({ id, chosen, hint }: Readonly<{ id: string; chosen: EngineFlowNode | undefined; hint: React.ReactNode }>) {\n return (\n <figcaption id={id} className={cn(\"kz-flow-detail\", chosen?.className)} aria-live=\"polite\">\n {chosen ? (\n <>\n <strong>{chosen.label}</strong>\n {chosen.status ? <span className=\"kz-flow-status\">{chosen.status}</span> : null}\n {chosen.description ? <span> {chosen.description}</span> : null}\n {chosen.href ? (\n <>\n {\" \"}\n <a href={chosen.href} {...(chosen.external ? { target: \"_blank\", rel: \"noopener\" } : {})}>\n {chosen.linkLabel ?? chosen.label}\n <span aria-hidden=\"true\"> →</span>\n </a>\n </>\n ) : null}\n </>\n ) : (\n hint\n )}\n </figcaption>\n );\n}\n\n/** An engine at the hub and the apps it serves, with what travels between them. */\nexport function EngineFlow({\n label,\n hub,\n nodes,\n layout = \"radial\",\n compactLayout = \"top-to-bottom\",\n particles = \"photons\",\n conduit = \"bezier\",\n hint,\n defaultActive,\n speed = 16,\n density = \"normal\",\n trigger = \"always\",\n easing = \"linear\",\n stagger = 300,\n breathe = true,\n calm = false,\n className,\n ...props\n}: EngineFlowProps) {\n const [active, setActive] = React.useState<string | undefined>(defaultActive);\n const detailId = `${React.useId()}-detail`;\n const chosen = nodes.find((n) => n.id === active);\n const compact = compactLayout && compactLayout !== layout ? compactLayout : undefined;\n // Save-Data: the calm and the full levels both rest (a still frame, like reduced motion).\n const saveData = React.useSyncExternalStore(subscribeSaveData, readSaveData, () => false);\n const pace = calm ? CALM_FLOW : { speed: Math.max(1, speed), density, stagger: Math.max(0, stagger) };\n const stage = { nodes, hub, conduit, particles, ...pace, easing, breathe, active, onActive: setActive, detailId: calm ? undefined : detailId };\n return (\n <figure\n aria-label={label}\n className={cn(\"kz-flow\", className)}\n data-motion-scope=\"\"\n {...flowData({ chosen: Boolean(chosen), calm, saveData, trigger, density, compact: Boolean(compact) })}\n {...props}\n >\n <Stage layout={layout} variant=\"wide\" {...stage} />\n {compact ? <Stage layout={compact} variant=\"compact\" {...stage} /> : null}\n {calm ? null : <FlowDetail id={detailId} chosen={chosen} hint={hint} />}\n </figure>\n );\n}\n"
234
+ "content": "// Client (the node a visitor points at or focuses). An engine at the hub and the apps it serves around it: one conduit\n// per app, and photons that travel it — towards the hub (`in`: requests), back (`out`: results) or both — in the app's\n// brand colour going in and the hub's coming back. A planned app is drawn dim, its conduit dashed and still.\n//\n// Motion is the Krizaka signature's (motion.css): CSS animations of `stroke-dashoffset`, no animation frame, no canvas;\n// paused off screen (`data-motion-scope` → MotionObserver's `data-offscreen`), held while the page settles (`kz-loop`),\n// a still frame under reduced motion and Save-Data (the photons rest along their conduit). The stage keeps its aspect ratio and the\n// detail line its height: no layout shift.\n//\n// Anchoring: a conduit runs between the centres of the node's circle and of the hub's ring (the label and the caption hang\n// below them, out of the box), and both circles are opaque and drawn over it — so every conduit meets the circle at the point\n// facing the other end, whatever the layout and the number of nodes.\n//\n// Accessible: the drawing is hidden from assistive technology; every node is a real button named by its label, and the\n// detail line (polite live region) says the chosen node's description with its link. Pair it with a text version (a\n// list) in the page: the figure is a picture of it.\nimport * as React from \"react\";\n\nimport { cn } from \"../cn\";\nimport { type FlowConduit, flowGeometry, type FlowLayout } from \"./geometry\";\n\nexport interface EngineFlowNode {\n /** A stable id (`verikora`). */\n id: string;\n /** Its name, the button's accessible name (\"Verikora\"). */\n label: string;\n /** Its mark (a `ProductLogo`), decorative. */\n mark?: React.ReactNode;\n /** One line: what it uses the engine for — shown when the node is pointed at or focused. */\n description?: React.ReactNode;\n /** Where it lives (its site). */\n href?: string;\n /** The link's words (\"Visit dev.verikora.com\"); defaults to the label. */\n linkLabel?: React.ReactNode;\n /** Opens the link in a new tab. */\n external?: boolean;\n /** What travels: `in` towards the hub, `out` back from it, `both`.\n * @default \"in\" */\n flow?: \"in\" | \"out\" | \"both\";\n /** Not wired yet: drawn dim, its conduit dashed and still, no photon. */\n planned?: boolean;\n /** A word beside the name in the detail line (\"planned\"), passed translated. */\n status?: React.ReactNode;\n /** Its brand scope (`brand-verikora`): its conduit, photons and ring take its `--kz-accent`. */\n className?: string;\n}\n\nexport interface EngineFlowHub {\n /** The engine's name (\"Sovkora\"). */\n label: string;\n /** Its mark, decorative. */\n mark?: React.ReactNode;\n /** A line under the name (\"the engine\"). */\n caption?: React.ReactNode;\n /** Its brand scope; the photons coming back take its accent. */\n className?: string;\n}\n\nexport type EngineFlowProps = Omit<React.ComponentProps<\"figure\">, \"children\"> & {\n /** What the figure shows (\"Sovkora and the products it powers\"), passed translated. */\n label: string;\n /** The engine, at the hub. */\n hub: EngineFlowHub;\n /** The apps around it. */\n nodes: readonly EngineFlowNode[];\n /** How the nodes sit around the hub.\n * @default \"radial\" */\n layout?: FlowLayout;\n /** The layout under a 560 px wide container (a phone); `false` keeps `layout` everywhere.\n * @default \"top-to-bottom\" */\n compactLayout?: FlowLayout | false;\n /** `photons` travel the conduits; `none` draws them still.\n * @default \"photons\" */\n particles?: \"photons\" | \"none\";\n /** The conduits' shape.\n * @default \"bezier\" */\n conduit?: FlowConduit;\n /** The detail line before a node is chosen (\"Point at a product\"). */\n hint?: React.ReactNode;\n /** The node shown in the detail line at first. */\n defaultActive?: string;\n /** Photon speed, in units per second (the stage is 100 units wide).\n * @default 16 */\n speed?: number;\n /** How many photons share a conduit: `sparse` one or two, `normal` two to four, `dense` four to eight.\n * @default \"normal\" */\n density?: FlowDensity;\n /** When the photons travel: `always`; `hover` only while the pointer or focus is on the figure (they rest along the\n * conduits otherwise); `active` only on the conduit of the chosen node (the others show nothing). Off screen they\n * are always paused, and still under reduced motion.\n * @default \"always\" */\n trigger?: FlowTrigger;\n /** The photons' timing function: `linear` (a steady stream), `ease-in-out` (a pulse that swells and settles), or any\n * CSS `<easing-function>` (`cubic-bezier(.2,0,0,1)`, `steps(6)`).\n * @default \"linear\" */\n easing?: FlowEasing;\n /** Milliseconds between one conduit's photons and the next's: 0 sends them all together.\n * @default 300 */\n stagger?: number;\n /** The engine's mark swells slowly (a loop, still under reduced motion).\n * @default true */\n breathe?: boolean;\n /** The calm level, for a small frame (a tile of a home page): sparse photons at a low rate, a slow breath, no hint and\n * no detail line, nothing to tune. It plays only on screen and once the page has settled, and stays still under\n * reduced motion and Save-Data. Overrides `speed`, `density`, `stagger` and `trigger`.\n * @default false */\n calm?: boolean;\n};\n\n/** The calm level's pace: units per second, photons per conduit, milliseconds between conduits. */\nexport const CALM_FLOW = { speed: 4, density: \"sparse\", stagger: 1200 } as const satisfies { speed: number; density: FlowDensity; stagger: number };\n\nconst subscribeSaveData = (onChange: () => void) => {\n const c = (navigator as Navigator & { connection?: EventTarget }).connection;\n c?.addEventListener?.(\"change\", onChange);\n return () => c?.removeEventListener?.(\"change\", onChange);\n};\nconst readSaveData = () => (navigator as Navigator & { connection?: { saveData?: boolean } }).connection?.saveData === true;\n\n\nexport type FlowDensity = \"sparse\" | \"normal\" | \"dense\";\nexport type FlowTrigger = \"always\" | \"hover\" | \"active\";\nexport type FlowEasing = \"linear\" | \"ease-in-out\" | (string & {});\n\n/** How many photons a conduit of this length carries (evenly spaced, so the gap is `length / count`). */\nexport function photonCount(length: number, density: FlowDensity = \"normal\"): number {\n const base = Math.round(length / 16);\n if (density === \"sparse\") return Math.min(2, Math.max(1, Math.round(base / 2)));\n if (density === \"dense\") return Math.min(8, Math.max(4, base * 2));\n return Math.min(4, Math.max(2, base));\n}\n\nfunction Stage({\n layout,\n variant,\n nodes,\n hub,\n conduit,\n particles,\n speed,\n density,\n easing,\n stagger,\n breathe,\n active,\n onActive,\n detailId,\n}: Readonly<{\n layout: FlowLayout;\n variant: \"wide\" | \"compact\";\n nodes: readonly EngineFlowNode[];\n hub: EngineFlowHub;\n conduit: FlowConduit;\n particles: \"photons\" | \"none\";\n speed: number;\n density: FlowDensity;\n easing: FlowEasing;\n stagger: number;\n breathe: boolean;\n active: string | undefined;\n onActive: (id: string) => void;\n detailId: string | undefined;\n}>) {\n const g = flowGeometry(layout, nodes.length, conduit);\n const pct = (v: number, of: number) => `${((v / of) * 100).toFixed(3)}%`;\n return (\n <div className=\"kz-flow-stage\" data-variant={variant} data-layout={layout} style={{ aspectRatio: `${g.width} / ${g.height}` }}>\n <svg viewBox={`0 0 ${g.width} ${g.height}`} aria-hidden=\"true\" focusable=\"false\">\n {nodes.map((node, i) => {\n const flow = node.flow ?? \"in\";\n const length = g.lengths[i] ?? 0;\n // Photons per conduit (`density`), evenly spaced; the same speed on every conduit.\n const gap = length / photonCount(length, density);\n const period = gap / speed;\n const timing = (dir: \"in\" | \"out\") =>\n ({\n \"--kz-flow-gap\": gap.toFixed(3),\n animationDuration: `${period.toFixed(2)}s`,\n // Each conduit starts `stagger` ms after the previous (a negative delay: already under way); the way back is half a period behind.\n animationDelay: `${(-(((i * stagger) / 1000 + (dir === \"out\" ? period / 2 : 0)) % period)).toFixed(2)}s`,\n ...(easing !== \"linear\" ? { animationTimingFunction: easing } : {}),\n }) as React.CSSProperties;\n const lanes = node.planned || particles === \"none\" ? [] : flow === \"both\" ? ([\"in\", \"out\"] as const) : [flow];\n return (\n <g\n key={node.id}\n className={cn(\"kz-flow-link\", node.className)}\n data-flow={flow}\n data-planned={node.planned ? \"\" : undefined}\n data-active={active === node.id ? \"\" : undefined}\n >\n <path className=\"kz-flow-wire\" d={g.paths[i]} />\n {lanes.map((dir) => (\n <React.Fragment key={dir}>\n <path className=\"kz-flow-photon kz-loop\" data-dir={dir} data-halo=\"\" d={g.paths[i]} style={timing(dir)} />\n <path className=\"kz-flow-photon kz-loop\" data-dir={dir} d={g.paths[i]} style={timing(dir)} />\n </React.Fragment>\n ))}\n </g>\n );\n })}\n </svg>\n <div className={cn(\"kz-flow-hub\", hub.className)} style={{ left: pct(g.hub.x, g.width), top: pct(g.hub.y, g.height) }}>\n {hub.mark ? <span className={cn(\"kz-flow-hub-mark\", breathe && \"kz-loop\")}>{hub.mark}</span> : null}\n <span className=\"kz-flow-hub-text\">\n <span className=\"kz-flow-hub-label\">{hub.label}</span>\n {hub.caption ? <span className=\"kz-flow-hub-caption\">{hub.caption}</span> : null}\n </span>\n </div>\n <ul className=\"kz-flow-nodes\">\n {nodes.map((node, i) => {\n const p = g.nodes[i]!;\n const on = active === node.id;\n return (\n <li key={node.id} style={{ left: pct(p.x, g.width), top: pct(p.y, g.height) }}>\n <button\n type=\"button\"\n className={cn(\"kz-flow-node\", node.className)}\n data-active={on ? \"\" : undefined}\n data-planned={node.planned ? \"\" : undefined}\n aria-pressed={on}\n aria-controls={detailId}\n onPointerEnter={() => onActive(node.id)}\n onFocus={() => onActive(node.id)}\n onClick={() => onActive(node.id)}\n >\n {node.mark ? (\n <span className=\"kz-flow-node-mark\" aria-hidden=\"true\">\n {node.mark}\n </span>\n ) : null}\n <span className=\"kz-flow-node-label\">{node.label}</span>\n </button>\n </li>\n );\n })}\n </ul>\n </div>\n );\n}\n\ntype FlowDataInput = { chosen: boolean; calm: boolean; saveData: boolean; trigger: string; density: string; compact: boolean };\n\n/** The figure's data attributes: the CSS reads the state from them. */\nfunction flowData({ chosen, calm, saveData, trigger, density, compact }: FlowDataInput) {\n let dataDensity: string | undefined = density === \"normal\" ? undefined : density;\n if (calm) dataDensity = \"sparse\";\n return {\n \"data-active\": chosen ? \"\" : undefined,\n \"data-calm\": calm ? \"\" : undefined,\n \"data-still\": saveData ? \"\" : undefined,\n \"data-trigger\": calm || trigger === \"always\" ? undefined : trigger,\n \"data-density\": dataDensity,\n \"data-compact\": compact ? \"\" : undefined,\n };\n}\n\n/** What the chosen node says, or the hint when none is chosen. */\nfunction FlowDetail({ id, chosen, hint }: Readonly<{ id: string; chosen: EngineFlowNode | undefined; hint: React.ReactNode }>) {\n return (\n <figcaption id={id} className={cn(\"kz-flow-detail\", chosen?.className)} aria-live=\"polite\">\n {chosen ? (\n <>\n <strong>{chosen.label}</strong>\n {chosen.status ? <span className=\"kz-flow-status\">{chosen.status}</span> : null}\n {chosen.description ? <span> {chosen.description}</span> : null}\n {chosen.href ? (\n <>\n {\" \"}\n <a href={chosen.href} {...(chosen.external ? { target: \"_blank\", rel: \"noopener\" } : {})}>\n {chosen.linkLabel ?? chosen.label}\n <span aria-hidden=\"true\"> →</span>\n </a>\n </>\n ) : null}\n </>\n ) : (\n hint\n )}\n </figcaption>\n );\n}\n\n/** An engine at the hub and the apps it serves, with what travels between them. */\nexport function EngineFlow({\n label,\n hub,\n nodes,\n layout = \"radial\",\n compactLayout = \"top-to-bottom\",\n particles = \"photons\",\n conduit = \"bezier\",\n hint,\n defaultActive,\n speed = 16,\n density = \"normal\",\n trigger = \"always\",\n easing = \"linear\",\n stagger = 300,\n breathe = true,\n calm = false,\n className,\n ...props\n}: Readonly<EngineFlowProps>) {\n const [active, setActive] = React.useState<string | undefined>(defaultActive);\n const detailId = `${React.useId()}-detail`;\n const chosen = nodes.find((n) => n.id === active);\n const compact = compactLayout && compactLayout !== layout ? compactLayout : undefined;\n // Save-Data: the calm and the full levels both rest (a still frame, like reduced motion).\n const saveData = React.useSyncExternalStore(subscribeSaveData, readSaveData, () => false);\n const pace = calm ? CALM_FLOW : { speed: Math.max(1, speed), density, stagger: Math.max(0, stagger) };\n const stage = { nodes, hub, conduit, particles, ...pace, easing, breathe, active, onActive: setActive, detailId: calm ? undefined : detailId };\n return (\n <figure\n aria-label={label}\n className={cn(\"kz-flow\", className)}\n data-motion-scope=\"\"\n {...flowData({ chosen: Boolean(chosen), calm, saveData, trigger, density, compact: Boolean(compact) })}\n {...props}\n >\n <Stage layout={layout} variant=\"wide\" {...stage} />\n {compact ? <Stage layout={compact} variant=\"compact\" {...stage} /> : null}\n {calm ? null : <FlowDetail id={detailId} chosen={chosen} hint={hint} />}\n </figure>\n );\n}\n"
235
235
  },
236
236
  {
237
237
  "path": "engine-flow/geometry.ts",
@@ -338,7 +338,7 @@
338
338
  "files": [
339
339
  {
340
340
  "path": "entity-header/entity-header.tsx",
341
- "content": "// Client (inline editing, the avatar popover). The head of an entity — a collection, a shop, a studio: its picture, its\n// name and description edited where they are read, its tags. Plain data in (the shapes of `@krizaka/organize/contract`),\n// a refusal `code` out, mapped to the message the product passes.\nimport { AvatarPicker } from \"@krizaka/ui/account-settings\";\nimport { Avatar } from \"@krizaka/ui/avatar\";\nimport { TagChip, TagMarker } from \"@krizaka/ui/chip\";\nimport { cn } from \"@krizaka/ui/cn\";\nimport { Popover } from \"@krizaka/ui/popover\";\nimport * as React from \"react\";\n\nimport { PencilGlyph } from \"../glyphs\";\nimport { type EditableBase, editName, type EntityAvatarOption, type EntityHeaderBase, useEditable, useRefusal } from \"./shared\";\n\nexport type { EntityRefusals, EntityTag } from \"./shared\";\n\nexport type EntityHeaderProps = EntityHeaderBase & {\n /** Makes the picture changeable: a button over it opens the library's `AvatarPicker`. */\n avatarPicker?: {\n /** The picker's accessible name (“Profile picture”), passed translated. */\n label: string;\n /** What the pictures are of: `folder`, `organisation`, `shop`, `person`. */\n kind?: EntityAvatarOption[\"kind\"];\n /** The pictures to choose from. */\n options: readonly EntityAvatarOption[];\n /** Adds a « no picture » tile first, with these words, passed translated. */\n noneLabel?: string;\n /** The chosen id. */\n value?: string;\n /** The viewer chooses another picture. */\n onValueChange?: (id: string) => void;\n /** The accessible name of the picture's button (“Change the picture”), passed translated. */\n triggerLabel: string;\n };\n /** The accessible name of the tags' list (“Tags”), passed translated. */\n tagsLabel?: string;\n /** Lets the viewer remove a tag: each `TagChip` gets a remove button. Without it the tags are read-only labels. */\n onTagRemove?: (id: string) => void;\n /** The remove button's accessible name for a tag (“Remove Seasonal”), passed translated. */\n tagRemoveLabel?: (label: string) => string;\n /** Classes merged last, on the header. */\n className?: string;\n};\n\ntype EditableProps = EditableBase & { className: string; inputClassName: string; multiline?: boolean };\n\n/** Text that reads as text and edits in place: Enter saves, Escape gives it back, leaving the field saves. */\nfunction Editable({ value, label, placeholder, onCommit, onRefusal, className, inputClassName, required, multiline }: EditableProps) {\n const { editing, draft, setDraft, pending, open, stop, commit } = useEditable(value, onCommit, onRefusal, required);\n const input = React.useRef<HTMLInputElement | HTMLTextAreaElement>(null);\n React.useEffect(() => {\n if (editing) input.current?.focus();\n }, [editing, pending]);\n if (!onCommit) return value ? <p className={className}>{value}</p> : null;\n\n if (!editing) {\n return (\n <button\n type=\"button\"\n aria-label={editName(value, placeholder, label)}\n onClick={open}\n className={cn(className, \"group/edit -mx-1 inline-flex max-w-full items-center gap-2 rounded-md px-1 text-start hover:bg-surface-2 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring\")}\n >\n <span className={cn(\"min-w-0 truncate\", !value && \"text-fg-muted\")}>{value || placeholder}</span>\n <PencilGlyph aria-hidden className=\"h-3.5 w-3.5 shrink-0 text-fg-muted opacity-0 group-hover/edit:opacity-100 group-focus-visible/edit:opacity-100 [@media(hover:none)]:opacity-100\" />\n </button>\n );\n }\n const shared = {\n ref: input as never,\n value: draft,\n \"aria-label\": label,\n disabled: pending,\n onChange: (event: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => setDraft(event.target.value),\n onBlur: () => void commit(),\n onKeyDown: (event: React.KeyboardEvent) => {\n if (event.key === \"Escape\") {\n event.preventDefault();\n stop();\n } else if (event.key === \"Enter\" && !(multiline && event.shiftKey)) {\n event.preventDefault();\n void commit();\n }\n },\n className: cn(inputClassName, \"w-full rounded-md border border-border-control bg-surface-1 px-2 py-1 outline-none focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring\"),\n };\n return multiline ? <textarea rows={2} {...shared} /> : <input type=\"text\" {...shared} />;\n}\n\n/** The head of an entity: picture, name and description editable in place, tags, a refusal said in words, actions. */\nexport function EntityHeader({\n name,\n onNameChange,\n nameLabel = name,\n description,\n onDescriptionChange,\n descriptionLabel = \"Description\",\n descriptionPlaceholder,\n avatar,\n avatarPicker,\n tags,\n tagsLabel,\n onTagRemove,\n tagRemoveLabel,\n refusal,\n refusals,\n actions,\n className,\n}: EntityHeaderProps) {\n const { message, setLocal } = useRefusal(refusal, refusals);\n const picture = <Avatar size=\"xl\" alt=\"\" {...avatar} />;\n const errorId = React.useId();\n let avatarSlot: React.ReactNode = null;\n if (avatarPicker) {\n avatarSlot = (\n <Popover.Root>\n <Popover.Trigger asChild>\n <button type=\"button\" aria-label={avatarPicker.triggerLabel} className=\"shrink-0 rounded-full focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring\">\n {picture}\n </button>\n </Popover.Trigger>\n <Popover.Content className=\"w-80\" align=\"start\">\n <AvatarPicker {...avatarPicker} dense />\n </Popover.Content>\n </Popover.Root>\n );\n } else if (avatar) {\n avatarSlot = <span className=\"shrink-0\">{picture}</span>;\n }\n\n return (\n <header className={cn(\"flex flex-wrap items-start gap-4\", className)} data-entity-header>\n {avatarSlot}\n <div className=\"flex min-w-0 flex-1 flex-col gap-1\">\n <h1 className=\"m-0 min-w-0 text-xl font-semibold text-fg-title\">\n <Editable\n value={name}\n label={nameLabel}\n onCommit={onNameChange}\n onRefusal={setLocal}\n className=\"text-xl font-semibold text-fg-title\"\n inputClassName=\"text-xl font-semibold text-fg-title\"\n required\n />\n </h1>\n {description || onDescriptionChange ? (\n <Editable\n value={description ?? \"\"}\n label={descriptionLabel}\n placeholder={descriptionPlaceholder}\n onCommit={onDescriptionChange}\n onRefusal={setLocal}\n className=\"text-sm text-fg-secondary\"\n inputClassName=\"text-sm text-fg-secondary\"\n multiline\n />\n ) : null}\n {tags?.length ? (\n <ul aria-label={tagsLabel} className=\"m-0 mt-1 flex list-none flex-wrap gap-1.5 p-0\">\n {tags.map((tag) => (\n <li key={tag.id}>\n {onTagRemove ? (\n <TagChip marker={tag.marker} removable removeLabel={tagRemoveLabel?.(tag.label) ?? tag.label} onRemove={() => onTagRemove(tag.id)}>\n {tag.label}\n </TagChip>\n ) : (\n <span className=\"inline-flex items-center gap-1.5 rounded-full border border-border-default px-2.5 py-0.5 text-xs text-fg\">\n <TagMarker marker={tag.marker} />\n {tag.label}\n </span>\n )}\n </li>\n ))}\n </ul>\n ) : null}\n {message ? (\n <p id={errorId} role=\"alert\" className=\"m-0 text-sm text-danger-text\">\n {message}\n </p>\n ) : null}\n </div>\n {actions ? <div className=\"flex shrink-0 items-center gap-2\">{actions}</div> : null}\n </header>\n );\n}\n"
341
+ "content": "// Client (inline editing, the avatar popover). The head of an entity — a collection, a shop, a studio: its picture, its\n// name and description edited where they are read, its tags. Plain data in (the shapes of `@krizaka/organize/contract`),\n// a refusal `code` out, mapped to the message the product passes.\nimport { AvatarPicker } from \"@krizaka/ui/account-settings\";\nimport { Avatar } from \"@krizaka/ui/avatar\";\nimport { TagChip, TagMarker } from \"@krizaka/ui/chip\";\nimport { cn } from \"@krizaka/ui/cn\";\nimport { Popover } from \"@krizaka/ui/popover\";\nimport * as React from \"react\";\n\nimport { PencilGlyph } from \"../glyphs\";\nimport { type EditableBase, editName, type EntityAvatarOption, type EntityHeaderBase, useEditable, useRefusal } from \"./shared\";\n\nexport type { EntityRefusals, EntityTag } from \"./shared\";\n\nexport type EntityHeaderProps = EntityHeaderBase & {\n /** Makes the picture changeable: a button over it opens the library's `AvatarPicker`. */\n avatarPicker?: {\n /** The picker's accessible name (“Profile picture”), passed translated. */\n label: string;\n /** What the pictures are of: `folder`, `organisation`, `shop`, `person`. */\n kind?: EntityAvatarOption[\"kind\"];\n /** The pictures to choose from. */\n options: readonly EntityAvatarOption[];\n /** Adds a « no picture » tile first, with these words, passed translated. */\n noneLabel?: string;\n /** The chosen id. */\n value?: string;\n /** The viewer chooses another picture. */\n onValueChange?: (id: string) => void;\n /** The accessible name of the picture's button (“Change the picture”), passed translated. */\n triggerLabel: string;\n };\n /** The accessible name of the tags' list (“Tags”), passed translated. */\n tagsLabel?: string;\n /** Lets the viewer remove a tag: each `TagChip` gets a remove button. Without it the tags are read-only labels. */\n onTagRemove?: (id: string) => void;\n /** The remove button's accessible name for a tag (“Remove Seasonal”), passed translated. */\n tagRemoveLabel?: (label: string) => string;\n /** Classes merged last, on the header. */\n className?: string;\n};\n\ntype EditableProps = EditableBase & { className: string; inputClassName: string; multiline?: boolean };\n\n/** Text that reads as text and edits in place: Enter saves, Escape gives it back, leaving the field saves. */\nfunction Editable({ value, label, placeholder, onCommit, onRefusal, className, inputClassName, required, multiline }: Readonly<EditableProps>) {\n const { editing, draft, setDraft, pending, open, stop, commit } = useEditable(value, onCommit, onRefusal, required);\n const input = React.useRef<HTMLInputElement | HTMLTextAreaElement>(null);\n React.useEffect(() => {\n if (editing) input.current?.focus();\n }, [editing, pending]);\n if (!onCommit) return value ? <p className={className}>{value}</p> : null;\n\n if (!editing) {\n return (\n <button\n type=\"button\"\n aria-label={editName(value, placeholder, label)}\n onClick={open}\n className={cn(className, \"group/edit -mx-1 inline-flex max-w-full items-center gap-2 rounded-md px-1 text-start hover:bg-surface-2 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring\")}\n >\n <span className={cn(\"min-w-0 truncate\", !value && \"text-fg-muted\")}>{value || placeholder}</span>\n <PencilGlyph aria-hidden className=\"h-3.5 w-3.5 shrink-0 text-fg-muted opacity-0 group-hover/edit:opacity-100 group-focus-visible/edit:opacity-100 [@media(hover:none)]:opacity-100\" />\n </button>\n );\n }\n const shared = {\n ref: input as never,\n value: draft,\n \"aria-label\": label,\n disabled: pending,\n onChange: (event: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => setDraft(event.target.value),\n onBlur: () => void commit(),\n onKeyDown: (event: React.KeyboardEvent) => {\n if (event.key === \"Escape\") {\n event.preventDefault();\n stop();\n } else if (event.key === \"Enter\" && !(multiline && event.shiftKey)) {\n event.preventDefault();\n void commit();\n }\n },\n className: cn(inputClassName, \"w-full rounded-md border border-border-control bg-surface-1 px-2 py-1 outline-none focus-visible:border-ring focus-visible:ring-2 focus-visible:ring-ring\"),\n };\n return multiline ? <textarea rows={2} {...shared} /> : <input type=\"text\" {...shared} />;\n}\n\n/** The head of an entity: picture, name and description editable in place, tags, a refusal said in words, actions. */\nexport function EntityHeader({\n name,\n onNameChange,\n nameLabel = name,\n description,\n onDescriptionChange,\n descriptionLabel = \"Description\",\n descriptionPlaceholder,\n avatar,\n avatarPicker,\n tags,\n tagsLabel,\n onTagRemove,\n tagRemoveLabel,\n refusal,\n refusals,\n actions,\n className,\n}: Readonly<EntityHeaderProps>) {\n const { message, setLocal } = useRefusal(refusal, refusals);\n const picture = <Avatar size=\"xl\" alt=\"\" {...avatar} />;\n const errorId = React.useId();\n let avatarSlot: React.ReactNode = null;\n if (avatarPicker) {\n avatarSlot = (\n <Popover.Root>\n <Popover.Trigger asChild>\n <button type=\"button\" aria-label={avatarPicker.triggerLabel} className=\"shrink-0 rounded-full focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring\">\n {picture}\n </button>\n </Popover.Trigger>\n <Popover.Content className=\"w-80\" align=\"start\">\n <AvatarPicker {...avatarPicker} dense />\n </Popover.Content>\n </Popover.Root>\n );\n } else if (avatar) {\n avatarSlot = <span className=\"shrink-0\">{picture}</span>;\n }\n\n return (\n <header className={cn(\"flex flex-wrap items-start gap-4\", className)} data-entity-header>\n {avatarSlot}\n <div className=\"flex min-w-0 flex-1 flex-col gap-1\">\n <h1 className=\"m-0 min-w-0 text-xl font-semibold text-fg-title\">\n <Editable\n value={name}\n label={nameLabel}\n onCommit={onNameChange}\n onRefusal={setLocal}\n className=\"text-xl font-semibold text-fg-title\"\n inputClassName=\"text-xl font-semibold text-fg-title\"\n required\n />\n </h1>\n {description || onDescriptionChange ? (\n <Editable\n value={description ?? \"\"}\n label={descriptionLabel}\n placeholder={descriptionPlaceholder}\n onCommit={onDescriptionChange}\n onRefusal={setLocal}\n className=\"text-sm text-fg-secondary\"\n inputClassName=\"text-sm text-fg-secondary\"\n multiline\n />\n ) : null}\n {tags?.length ? (\n <ul aria-label={tagsLabel} className=\"m-0 mt-1 flex list-none flex-wrap gap-1.5 p-0\">\n {tags.map((tag) => (\n <li key={tag.id}>\n {onTagRemove ? (\n <TagChip marker={tag.marker} removable removeLabel={tagRemoveLabel?.(tag.label) ?? tag.label} onRemove={() => onTagRemove(tag.id)}>\n {tag.label}\n </TagChip>\n ) : (\n <span className=\"inline-flex items-center gap-1.5 rounded-full border border-border-default px-2.5 py-0.5 text-xs text-fg\">\n <TagMarker marker={tag.marker} />\n {tag.label}\n </span>\n )}\n </li>\n ))}\n </ul>\n ) : null}\n {message ? (\n <p id={errorId} role=\"alert\" className=\"m-0 text-sm text-danger-text\">\n {message}\n </p>\n ) : null}\n </div>\n {actions ? <div className=\"flex shrink-0 items-center gap-2\">{actions}</div> : null}\n </header>\n );\n}\n"
342
342
  },
343
343
  {
344
344
  "path": "entity-header/index.ts",
@@ -354,7 +354,7 @@
354
354
  },
355
355
  {
356
356
  "path": "glyphs.tsx",
357
- "content": "// The small line glyphs the data and media primitives draw (play, volume, search, chevrons…): decorative, 24-unit\n// box, `currentColor`, sized by the caller's class. Shared by the entries that need them; never exported on its own —\n// a product draws its own icons with @krizaka/icons.\nimport type * as React from \"react\";\n\ntype GlyphProps = { className?: string };\n\nfunction Glyph({ className = \"h-4 w-4\", fill, children }: GlyphProps & { fill?: boolean; children: React.ReactNode }) {\n return (\n <svg\n viewBox=\"0 0 24 24\"\n className={className}\n fill={fill ? \"currentColor\" : \"none\"}\n stroke={fill ? \"none\" : \"currentColor\"}\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden\n focusable=\"false\"\n >\n {children}\n </svg>\n );\n}\n\nexport const PlayGlyph = (p: GlyphProps) => (\n <Glyph {...p} fill>\n <path d=\"M8 5.5v13a1 1 0 0 0 1.5.86l10.4-6.5a1 1 0 0 0 0-1.72L9.5 4.64A1 1 0 0 0 8 5.5Z\" />\n </Glyph>\n);\nexport const PauseGlyph = (p: GlyphProps) => (\n <Glyph {...p} fill>\n <rect x=\"6\" y=\"5\" width=\"4\" height=\"14\" rx=\"1\" />\n <rect x=\"14\" y=\"5\" width=\"4\" height=\"14\" rx=\"1\" />\n </Glyph>\n);\nexport const VolumeGlyph = ({ muted, ...p }: GlyphProps & { muted?: boolean }) => (\n <Glyph {...p}>\n <path d=\"M11 5 6 9H3v6h3l5 4V5Z\" />\n {muted ? <path d=\"m22 9-6 6m0-6 6 6\" /> : <path d=\"M15.5 8.5a5 5 0 0 1 0 7M18.5 5.5a9 9 0 0 1 0 13\" />}\n </Glyph>\n);\nexport const FullscreenGlyph = ({ exit, ...p }: GlyphProps & { exit?: boolean }) => (\n <Glyph {...p}>\n {exit ? <path d=\"M9 4v5H4m11-5v5h5M9 20v-5H4m11 5v-5h5\" /> : <path d=\"M4 9V4h5m6 0h5v5M4 15v5h5m11-5v5h-5\" />}\n </Glyph>\n);\nexport const CaptionsGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <rect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"2\" />\n <path d=\"M10 10.5a2 2 0 1 0 0 3M17 10.5a2 2 0 1 0 0 3\" />\n </Glyph>\n);\nexport const PipGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <rect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"2\" />\n <rect x=\"12\" y=\"12\" width=\"6\" height=\"4\" rx=\"1\" />\n </Glyph>\n);\nexport const SearchGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <circle cx=\"11\" cy=\"11\" r=\"7\" />\n <path d=\"m20 20-3.5-3.5\" />\n </Glyph>\n);\nexport const CloseGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <path d=\"M18 6 6 18M6 6l12 12\" />\n </Glyph>\n);\nexport const ChevronGlyph = ({ direction = \"down\", ...p }: GlyphProps & { direction?: \"left\" | \"right\" | \"up\" | \"down\" }) => (\n <Glyph {...p}>\n <path d={{ left: \"m15 6-6 6 6 6\", right: \"m9 6 6 6-6 6\", up: \"m6 15 6-6 6 6\", down: \"m6 9 6 6 6-6\" }[direction]} />\n </Glyph>\n);\nexport const CheckGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <path d=\"M20 6 9 17l-5-5\" />\n </Glyph>\n);\nexport const PlusGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <path d=\"M12 5v14M5 12h14\" />\n </Glyph>\n);\nexport const CalendarGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <rect x=\"3\" y=\"5\" width=\"18\" height=\"16\" rx=\"2\" />\n <path d=\"M3 10h18M8 3v4M16 3v4\" />\n </Glyph>\n);\nexport const UploadGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <path d=\"M12 16V4m0 0L7 9m5-5 5 5\" />\n <path d=\"M4 16v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2\" />\n </Glyph>\n);\nexport const FileGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <path d=\"M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8l-5-5Z\" />\n <path d=\"M14 3v5h5\" />\n </Glyph>\n);\nexport const CameraGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <path d=\"M4 8h3l2-3h6l2 3h3a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1Z\" />\n <circle cx=\"12\" cy=\"13.5\" r=\"3.5\" />\n </Glyph>\n);\nexport const FlipGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <path d=\"M4 12a8 8 0 0 1 14-5.3M20 12a8 8 0 0 1-14 5.3\" />\n <path d=\"M18 3v4h-4M6 21v-4h4\" />\n </Glyph>\n);\nexport const RetryGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <path d=\"M4 12a8 8 0 1 0 2.3-5.7L4 8.5\" />\n <path d=\"M4 4v4.5h4.5\" />\n </Glyph>\n);\nexport const SortGlyph = ({ direction, ...p }: GlyphProps & { direction?: \"ascending\" | \"descending\" }) => (\n <Glyph {...p}>\n {direction === \"ascending\" ? <path d=\"m7 14 5-5 5 5\" /> : direction === \"descending\" ? <path d=\"m7 10 5 5 5-5\" /> : <path d=\"m8 9 4-4 4 4M8 15l4 4 4-4\" />}\n </Glyph>\n);\nexport const ArrowGlyph = ({ direction = \"right\", ...p }: GlyphProps & { direction?: \"left\" | \"right\" }) => (\n <Glyph {...p}>\n <path d={direction === \"left\" ? \"M19 12H5m0 0 6-6m-6 6 6 6\" : \"M5 12h14m0 0-6-6m6 6-6 6\"} />\n </Glyph>\n);\nexport const ExternalGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <path d=\"M14 4h6v6M20 4l-9 9\" />\n <path d=\"M18 14v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4\" />\n </Glyph>\n);\nexport const WarningGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <path d=\"M12 4 2.5 20h19L12 4Z\" />\n <path d=\"M12 10v4M12 17.2v.1\" />\n </Glyph>\n);\nexport const CopyGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <rect x=\"9\" y=\"9\" width=\"11\" height=\"11\" rx=\"2\" />\n <path d=\"M15 9V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h3\" />\n </Glyph>\n);\nexport const PencilGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <path d=\"M4 20h4L19 9a2.8 2.8 0 0 0-4-4L4 16v4zM13.5 6.5l4 4\" />\n </Glyph>\n);\n"
357
+ "content": "// The small line glyphs the data and media primitives draw (play, volume, search, chevrons…): decorative, 24-unit\n// box, `currentColor`, sized by the caller's class. Shared by the entries that need them; never exported on its own —\n// a product draws its own icons with @krizaka/icons.\nimport type * as React from \"react\";\n\ntype GlyphProps = { className?: string };\n\nfunction Glyph({ className = \"h-4 w-4\", fill, children }: Readonly<GlyphProps & { fill?: boolean; children: React.ReactNode }>) {\n return (\n <svg\n viewBox=\"0 0 24 24\"\n className={className}\n fill={fill ? \"currentColor\" : \"none\"}\n stroke={fill ? \"none\" : \"currentColor\"}\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden\n focusable=\"false\"\n >\n {children}\n </svg>\n );\n}\n\nexport const PlayGlyph = (p: Readonly<GlyphProps>) => (\n <Glyph {...p} fill>\n <path d=\"M8 5.5v13a1 1 0 0 0 1.5.86l10.4-6.5a1 1 0 0 0 0-1.72L9.5 4.64A1 1 0 0 0 8 5.5Z\" />\n </Glyph>\n);\nexport const PauseGlyph = (p: Readonly<GlyphProps>) => (\n <Glyph {...p} fill>\n <rect x=\"6\" y=\"5\" width=\"4\" height=\"14\" rx=\"1\" />\n <rect x=\"14\" y=\"5\" width=\"4\" height=\"14\" rx=\"1\" />\n </Glyph>\n);\nexport const VolumeGlyph = ({ muted, ...p }: Readonly<GlyphProps & { muted?: boolean }>) => (\n <Glyph {...p}>\n <path d=\"M11 5 6 9H3v6h3l5 4V5Z\" />\n {muted ? <path d=\"m22 9-6 6m0-6 6 6\" /> : <path d=\"M15.5 8.5a5 5 0 0 1 0 7M18.5 5.5a9 9 0 0 1 0 13\" />}\n </Glyph>\n);\nexport const FullscreenGlyph = ({ exit, ...p }: Readonly<GlyphProps & { exit?: boolean }>) => (\n <Glyph {...p}>\n {exit ? <path d=\"M9 4v5H4m11-5v5h5M9 20v-5H4m11 5v-5h5\" /> : <path d=\"M4 9V4h5m6 0h5v5M4 15v5h5m11-5v5h-5\" />}\n </Glyph>\n);\nexport const CaptionsGlyph = (p: Readonly<GlyphProps>) => (\n <Glyph {...p}>\n <rect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"2\" />\n <path d=\"M10 10.5a2 2 0 1 0 0 3M17 10.5a2 2 0 1 0 0 3\" />\n </Glyph>\n);\nexport const PipGlyph = (p: Readonly<GlyphProps>) => (\n <Glyph {...p}>\n <rect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"2\" />\n <rect x=\"12\" y=\"12\" width=\"6\" height=\"4\" rx=\"1\" />\n </Glyph>\n);\nexport const SearchGlyph = (p: Readonly<GlyphProps>) => (\n <Glyph {...p}>\n <circle cx=\"11\" cy=\"11\" r=\"7\" />\n <path d=\"m20 20-3.5-3.5\" />\n </Glyph>\n);\nexport const CloseGlyph = (p: Readonly<GlyphProps>) => (\n <Glyph {...p}>\n <path d=\"M18 6 6 18M6 6l12 12\" />\n </Glyph>\n);\nexport const ChevronGlyph = ({ direction = \"down\", ...p }: Readonly<GlyphProps & { direction?: \"left\" | \"right\" | \"up\" | \"down\" }>) => (\n <Glyph {...p}>\n <path d={{ left: \"m15 6-6 6 6 6\", right: \"m9 6 6 6-6 6\", up: \"m6 15 6-6 6 6\", down: \"m6 9 6 6 6-6\" }[direction]} />\n </Glyph>\n);\nexport const CheckGlyph = (p: Readonly<GlyphProps>) => (\n <Glyph {...p}>\n <path d=\"M20 6 9 17l-5-5\" />\n </Glyph>\n);\nexport const PlusGlyph = (p: Readonly<GlyphProps>) => (\n <Glyph {...p}>\n <path d=\"M12 5v14M5 12h14\" />\n </Glyph>\n);\nexport const CalendarGlyph = (p: Readonly<GlyphProps>) => (\n <Glyph {...p}>\n <rect x=\"3\" y=\"5\" width=\"18\" height=\"16\" rx=\"2\" />\n <path d=\"M3 10h18M8 3v4M16 3v4\" />\n </Glyph>\n);\nexport const UploadGlyph = (p: Readonly<GlyphProps>) => (\n <Glyph {...p}>\n <path d=\"M12 16V4m0 0L7 9m5-5 5 5\" />\n <path d=\"M4 16v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2\" />\n </Glyph>\n);\nexport const FileGlyph = (p: Readonly<GlyphProps>) => (\n <Glyph {...p}>\n <path d=\"M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8l-5-5Z\" />\n <path d=\"M14 3v5h5\" />\n </Glyph>\n);\nexport const CameraGlyph = (p: Readonly<GlyphProps>) => (\n <Glyph {...p}>\n <path d=\"M4 8h3l2-3h6l2 3h3a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1Z\" />\n <circle cx=\"12\" cy=\"13.5\" r=\"3.5\" />\n </Glyph>\n);\nexport const FlipGlyph = (p: Readonly<GlyphProps>) => (\n <Glyph {...p}>\n <path d=\"M4 12a8 8 0 0 1 14-5.3M20 12a8 8 0 0 1-14 5.3\" />\n <path d=\"M18 3v4h-4M6 21v-4h4\" />\n </Glyph>\n);\nexport const RetryGlyph = (p: Readonly<GlyphProps>) => (\n <Glyph {...p}>\n <path d=\"M4 12a8 8 0 1 0 2.3-5.7L4 8.5\" />\n <path d=\"M4 4v4.5h4.5\" />\n </Glyph>\n);\nexport const SortGlyph = ({ direction, ...p }: Readonly<GlyphProps & { direction?: \"ascending\" | \"descending\" }>) => (\n <Glyph {...p}>\n {direction === \"ascending\" ? <path d=\"m7 14 5-5 5 5\" /> : direction === \"descending\" ? <path d=\"m7 10 5 5 5-5\" /> : <path d=\"m8 9 4-4 4 4M8 15l4 4 4-4\" />}\n </Glyph>\n);\nexport const ArrowGlyph = ({ direction = \"right\", ...p }: Readonly<GlyphProps & { direction?: \"left\" | \"right\" }>) => (\n <Glyph {...p}>\n <path d={direction === \"left\" ? \"M19 12H5m0 0 6-6m-6 6 6 6\" : \"M5 12h14m0 0-6-6m6 6-6 6\"} />\n </Glyph>\n);\nexport const ExternalGlyph = (p: Readonly<GlyphProps>) => (\n <Glyph {...p}>\n <path d=\"M14 4h6v6M20 4l-9 9\" />\n <path d=\"M18 14v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4\" />\n </Glyph>\n);\nexport const WarningGlyph = (p: Readonly<GlyphProps>) => (\n <Glyph {...p}>\n <path d=\"M12 4 2.5 20h19L12 4Z\" />\n <path d=\"M12 10v4M12 17.2v.1\" />\n </Glyph>\n);\nexport const CopyGlyph = (p: Readonly<GlyphProps>) => (\n <Glyph {...p}>\n <rect x=\"9\" y=\"9\" width=\"11\" height=\"11\" rx=\"2\" />\n <path d=\"M15 9V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h3\" />\n </Glyph>\n);\nexport const PencilGlyph = (p: Readonly<GlyphProps>) => (\n <Glyph {...p}>\n <path d=\"M4 20h4L19 9a2.8 2.8 0 0 0-4-4L4 16v4zM13.5 6.5l4 4\" />\n </Glyph>\n);\n"
358
358
  },
359
359
  {
360
360
  "path": "meta.ts",
@@ -199,7 +199,7 @@
199
199
  "files": [
200
200
  {
201
201
  "path": "environment-notice/environment-notice.tsx",
202
- "content": "// Server-safe. A thin band above the app bar, in the page frame, that says this deployment is not the real offer. Server-rendered\n// with a minimum height (CLS 0); renders nothing in production. Words arrive as props. It is not dismissible: a person who\n// must know this is a development version should not be able to lose the line by accident.\nimport type * as React from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nimport { environmentNotice } from \"./model\";\n\nexport const environmentNoticeStyles = tv({\n slots: {\n root: \"w-full border-b border-warning/50 bg-warning/10 text-fg\",\n inner: \"mx-auto flex min-h-9 w-full max-w-[var(--kz-page-max,72rem)] items-center gap-3 px-[var(--kz-page-gutter,1rem)] py-1.5 text-xs leading-snug\",\n dot: \"h-2 w-2 shrink-0 rounded-full bg-warning\",\n text: \"min-w-0 flex-1\",\n title: \"font-semibold text-fg\",\n message: \"text-fg-secondary\",\n link: \"shrink-0 font-semibold text-fg-accent underline-offset-2 hover:underline focus-visible:focus-ring\",\n },\n});\n\nexport type EnvironmentNoticeProps = Omit<React.ComponentProps<\"div\">, \"title\" | \"children\"> & {\n /** The deployment's stage, read once by the app. `production` (or `prod`) renders nothing; any other value shows the notice. */\n stage: string | null | undefined;\n /** The headline (« Development version »): also the region's accessible name. Passed translated. */\n title: string;\n /** The line (« Data can be reset at any time. Not a commercial offer. »). Passed translated. */\n message: string;\n /** An optional way to learn more. `linkAs` renders it with your router's Link. */\n link?: { label: string; href: string };\n /** Renders the link with your router's Link (`next/link`) instead of an `<a>`. */\n linkAs?: React.ElementType;\n};\n\nexport function EnvironmentNotice({ stage, title, message, link, linkAs, className, ...props }: EnvironmentNoticeProps) {\n const content = environmentNotice({ stage, title, message, link });\n if (!content) return null;\n const s = environmentNoticeStyles();\n const Link = linkAs ?? \"a\";\n return (\n <div role=\"region\" aria-label={content.title} data-stage={content.stage} className={s.root({ className })} {...props}>\n <div className={s.inner()}>\n <span aria-hidden className={s.dot()} />\n <p className={s.text()}>\n <span className={s.title()}>{content.title}</span> <span className={s.message()}>{content.message}</span>\n </p>\n {content.link ? (\n <Link href={content.link.href} className={s.link()}>\n {content.link.label}\n </Link>\n ) : null}\n </div>\n </div>\n );\n}\n"
202
+ "content": "// Server-safe. A thin band above the app bar, in the page frame, that says this deployment is not the real offer. Server-rendered\n// with a minimum height (CLS 0); renders nothing in production. Words arrive as props. It is not dismissible: a person who\n// must know this is a development version should not be able to lose the line by accident.\nimport type * as React from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nimport { environmentNotice } from \"./model\";\n\nexport const environmentNoticeStyles = tv({\n slots: {\n root: \"w-full border-b border-warning/50 bg-warning/10 text-fg\",\n inner: \"mx-auto flex min-h-9 w-full max-w-[var(--kz-page-max,72rem)] items-center gap-3 px-[var(--kz-page-gutter,1rem)] py-1.5 text-xs leading-snug\",\n dot: \"h-2 w-2 shrink-0 rounded-full bg-warning\",\n text: \"min-w-0 flex-1\",\n title: \"font-semibold text-fg\",\n message: \"text-fg-secondary\",\n link: \"shrink-0 font-semibold text-fg-accent underline-offset-2 hover:underline focus-visible:focus-ring\",\n },\n});\n\nexport type EnvironmentNoticeProps = Omit<React.ComponentProps<\"div\">, \"title\" | \"children\"> & {\n /** The deployment's stage, read once by the app. `production` (or `prod`) renders nothing; any other value shows the notice. */\n stage: string | null | undefined;\n /** The headline (« Development version »): also the region's accessible name. Passed translated. */\n title: string;\n /** The line (« Data can be reset at any time. Not a commercial offer. »). Passed translated. */\n message: string;\n /** An optional way to learn more. `linkAs` renders it with your router's Link. */\n link?: { label: string; href: string };\n /** Renders the link with your router's Link (`next/link`) instead of an `<a>`. */\n linkAs?: React.ElementType;\n};\n\nexport function EnvironmentNotice({ stage, title, message, link, linkAs, className, ...props }: Readonly<EnvironmentNoticeProps>) {\n const content = environmentNotice({ stage, title, message, link });\n if (!content) return null;\n const s = environmentNoticeStyles();\n const Link = linkAs ?? \"a\";\n return (\n <div role=\"region\" aria-label={content.title} data-stage={content.stage} className={s.root({ className })} {...props}>\n <div className={s.inner()}>\n <span aria-hidden className={s.dot()} />\n <p className={s.text()}>\n <span className={s.title()}>{content.title}</span> <span className={s.message()}>{content.message}</span>\n </p>\n {content.link ? (\n <Link href={content.link.href} className={s.link()}>\n {content.link.label}\n </Link>\n ) : null}\n </div>\n </div>\n );\n}\n"
203
203
  },
204
204
  {
205
205
  "path": "environment-notice/index.ts",
@@ -122,7 +122,7 @@
122
122
  "files": [
123
123
  {
124
124
  "path": "error-page/error-page.tsx",
125
- "content": "// Server-safe. When a page is not there (blocks.css `.kz-tpl-error`): the code drawn huge in outline, the bird that\n// lost its way beside it, one sentence, a search, and the ways back — never a dead end. The same frame as every page.\nimport type * as React from \"react\";\n\nimport { cn } from \"../cn\";\n\nexport type ErrorPageProps = Omit<React.HTMLAttributes<HTMLElement>, \"title\"> & {\n /** The code (`404`, `500`): drawn, not read — the title says it in words. */\n code: string;\n /** The bird beside the code (a Mascot in its `empty` or `error` mood). */\n mascot?: React.ReactNode;\n /** The page's `h1` (`This page took another road`). */\n title: React.ReactNode;\n /** What happened and what to do, in one or two sentences. */\n text?: React.ReactNode;\n /** A search, to find what was meant. */\n search?: React.ReactNode;\n /** The ways back (an ActionBar: home, the docs, contact). */\n actions?: React.ReactNode;\n /** Under the actions: the most visited pages. */\n children?: React.ReactNode;\n};\n\n/** An error page: the code drawn, the bird, a sentence, a search and the ways back. */\nexport function ErrorPage({ code, mascot, title, text, search, actions, className, children, ...props }: ErrorPageProps) {\n return (\n <div className={cn(\"kz-frame kz-tpl-error\", className)} {...props}>\n <p className=\"kz-tpl-error-code\" aria-hidden>\n {code}\n {mascot}\n </p>\n <h1>{title}</h1>\n {text && <p>{text}</p>}\n {search && <div className=\"kz-tpl-error-search\">{search}</div>}\n {actions}\n {children}\n </div>\n );\n}\n"
125
+ "content": "// Server-safe. When a page is not there (blocks.css `.kz-tpl-error`): the code drawn huge in outline, the bird that\n// lost its way beside it, one sentence, a search, and the ways back — never a dead end. The same frame as every page.\nimport type * as React from \"react\";\n\nimport { cn } from \"../cn\";\n\nexport type ErrorPageProps = Omit<React.HTMLAttributes<HTMLElement>, \"title\"> & {\n /** The code (`404`, `500`): drawn, not read — the title says it in words. */\n code: string;\n /** The bird beside the code (a Mascot in its `empty` or `error` mood). */\n mascot?: React.ReactNode;\n /** The page's `h1` (`This page took another road`). */\n title: React.ReactNode;\n /** What happened and what to do, in one or two sentences. */\n text?: React.ReactNode;\n /** A search, to find what was meant. */\n search?: React.ReactNode;\n /** The ways back (an ActionBar: home, the docs, contact). */\n actions?: React.ReactNode;\n /** Under the actions: the most visited pages. */\n children?: React.ReactNode;\n};\n\n/** An error page: the code drawn, the bird, a sentence, a search and the ways back. */\nexport function ErrorPage({ code, mascot, title, text, search, actions, className, children, ...props }: Readonly<ErrorPageProps>) {\n return (\n <div className={cn(\"kz-frame kz-tpl-error\", className)} {...props}>\n <p className=\"kz-tpl-error-code\" aria-hidden>\n {code}\n {mascot}\n </p>\n <h1>{title}</h1>\n {text && <p>{text}</p>}\n {search && <div className=\"kz-tpl-error-search\">{search}</div>}\n {actions}\n {children}\n </div>\n );\n}\n"
126
126
  },
127
127
  {
128
128
  "path": "error-page/index.ts",
@@ -262,7 +262,7 @@
262
262
  "files": [
263
263
  {
264
264
  "path": "field/field.tsx",
265
- "content": "// Server-safe. The label ↔ control wiring is HTML (htmlFor / id, aria-describedby): no context.\nimport type * as React from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nimport { cn } from \"../cn\";\n\nexport const field = tv({\n slots: {\n root: \"flex flex-col gap-1.5\",\n label: \"text-xs font-semibold text-fg-secondary\",\n control:\n \"flex h-11 w-full rounded-lg border border-border-control bg-surface-2 px-3 text-sm text-fg placeholder:text-fg-muted \" +\n \"transition-[border-color,box-shadow] focus-visible:border-accent focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring \" +\n \"disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-danger aria-invalid:ring-danger/30\",\n hint: \"text-xs text-fg-secondary\",\n // The message reads in the danger text role (≥ 4.5:1 on every surface, both themes); the dot is the danger fill.\n error: \"flex items-center gap-1.5 text-xs font-medium text-fg-danger before:h-1.5 before:w-1.5 before:shrink-0 before:rounded-full before:bg-danger\",\n selectWrap: \"relative flex w-full\",\n chevron: \"pointer-events-none absolute right-3 top-1/2 h-4 w-4 -translate-y-1/2 text-fg-secondary\",\n },\n});\nconst s = field();\n\nexport const Field = {\n Root: ({ className, ...props }: React.ComponentProps<\"div\">) => <div className={s.root({ className })} {...props} />,\n Label: ({ className, ...props }: React.ComponentProps<\"label\">) => <label className={s.label({ className })} {...props} />,\n Hint: ({ className, ...props }: React.ComponentProps<\"p\">) => <p className={s.hint({ className })} {...props} />,\n Error: ({ className, ...props }: React.ComponentProps<\"p\">) => <p role=\"alert\" className={s.error({ className })} {...props} />,\n};\n\ntype ControlProps = {\n /** Marks the control invalid: aria-invalid and data-invalid (pair it with a `Field.Error` in aria-describedby). */\n invalid?: boolean;\n};\n\nconst invalidProps = (invalid?: boolean) => (invalid ? { \"aria-invalid\": true as const, \"data-invalid\": \"\" } : {});\n\nexport function Input({ invalid, className, ...props }: React.ComponentProps<\"input\"> & ControlProps) {\n return <input {...invalidProps(invalid)} className={s.control({ className })} {...props} />;\n}\n\nexport function Textarea({ invalid, className, ...props }: React.ComponentProps<\"textarea\"> & ControlProps) {\n return <textarea {...invalidProps(invalid)} className={s.control({ className: cn(\"h-auto min-h-24 py-2\", className) })} {...props} />;\n}\n\n/** A native <select>, styled like the other controls (the platform's menu: accessible and right on phones). */\nexport function Select({ invalid, className, ...props }: React.ComponentProps<\"select\"> & ControlProps) {\n return (\n <span className={s.selectWrap()}>\n <select {...invalidProps(invalid)} className={s.control({ className: cn(\"appearance-none pr-9\", className) })} {...props} />\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden className={s.chevron()}>\n <path d=\"m6 9 6 6 6-6\" />\n </svg>\n </span>\n );\n}\n"
265
+ "content": "// Server-safe. The label ↔ control wiring is HTML (htmlFor / id, aria-describedby): no context.\nimport type * as React from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nimport { cn } from \"../cn\";\n\nexport const field = tv({\n slots: {\n root: \"flex flex-col gap-1.5\",\n label: \"text-xs font-semibold text-fg-secondary\",\n control:\n \"flex h-11 w-full rounded-lg border border-border-control bg-surface-2 px-3 text-sm text-fg placeholder:text-fg-muted \" +\n \"transition-[border-color,box-shadow] focus-visible:border-accent focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring \" +\n \"disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-danger aria-invalid:ring-danger/30\",\n hint: \"text-xs text-fg-secondary\",\n // The message reads in the danger text role (≥ 4.5:1 on every surface, both themes); the dot is the danger fill.\n error: \"flex items-center gap-1.5 text-xs font-medium text-fg-danger before:h-1.5 before:w-1.5 before:shrink-0 before:rounded-full before:bg-danger\",\n selectWrap: \"relative flex w-full\",\n chevron: \"pointer-events-none absolute right-3 top-1/2 h-4 w-4 -translate-y-1/2 text-fg-secondary\",\n },\n});\nconst s = field();\n\nexport const Field = {\n Root: ({ className, ...props }: React.ComponentProps<\"div\">) => <div className={s.root({ className })} {...props} />,\n Label: ({ className, ...props }: React.ComponentProps<\"label\">) => <label className={s.label({ className })} {...props} />,\n Hint: ({ className, ...props }: React.ComponentProps<\"p\">) => <p className={s.hint({ className })} {...props} />,\n Error: ({ className, ...props }: React.ComponentProps<\"p\">) => <p role=\"alert\" className={s.error({ className })} {...props} />,\n};\n\ntype ControlProps = {\n /** Marks the control invalid: aria-invalid and data-invalid (pair it with a `Field.Error` in aria-describedby). */\n invalid?: boolean;\n};\n\nconst invalidProps = (invalid?: boolean) => (invalid ? { \"aria-invalid\": true as const, \"data-invalid\": \"\" } : {});\n\nexport function Input({ invalid, className, ...props }: Readonly<React.ComponentProps<\"input\"> & ControlProps>) {\n return <input {...invalidProps(invalid)} className={s.control({ className })} {...props} />;\n}\n\nexport function Textarea({ invalid, className, ...props }: Readonly<React.ComponentProps<\"textarea\"> & ControlProps>) {\n return <textarea {...invalidProps(invalid)} className={s.control({ className: cn(\"h-auto min-h-24 py-2\", className) })} {...props} />;\n}\n\n/** A native <select>, styled like the other controls (the platform's menu: accessible and right on phones). */\nexport function Select({ invalid, className, ...props }: Readonly<React.ComponentProps<\"select\"> & ControlProps>) {\n return (\n <span className={s.selectWrap()}>\n <select {...invalidProps(invalid)} className={s.control({ className: cn(\"appearance-none pr-9\", className) })} {...props} />\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden className={s.chevron()}>\n <path d=\"m6 9 6 6 6-6\" />\n </svg>\n </span>\n );\n}\n"
266
266
  },
267
267
  {
268
268
  "path": "field/index.ts",
@@ -281,7 +281,7 @@
281
281
  "files": [
282
282
  {
283
283
  "path": "file-upload/file-upload.tsx",
284
- "content": "// Client. Three parts that work alone or together:\n// - `Dropzone`: drop files on it or pick them with its button (a real `<input type=\"file\">`, so the keyboard and the\n// phone's camera / files sheet work); it checks the type, the size and the count, and hands over the accepted files\n// and the refused ones with their reason;\n// - `UploadList`: each file with its preview, size, progress, speed, and the actions its state allows (pause, resume,\n// retry, cancel, remove); the progress is a `progressbar`, a failure is announced;\n// - `useUploadQueue`: runs the app's `upload(file, { signal, onProgress, resumed })` with a concurrency, pauses by\n// aborting the signal and resumes by calling it again with `resumed: true` — what a Tus client (tus-js-client's\n// `abort()` / `start()`) or a multipart upload needs, without depending on either. The line (concurrency, retries\n// with backoff, pause per file) is `createQueue` of @krizaka/pacer.\nimport { getNumberFormat } from \"@krizaka/intl\";\nimport { type QueueOptions } from \"@krizaka/pacer\";\nimport { useQueue, useQueueSnapshot } from \"@krizaka/pacer/react\";\nimport * as React from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nimport { CloseGlyph, FileGlyph, PauseGlyph, PlayGlyph, RetryGlyph, UploadGlyph } from \"../glyphs\";\nimport { useLatest } from \"../media\";\nimport { Progress } from \"../progress\";\n\nexport const fileUpload = tv({\n slots: {\n zone:\n \"relative flex w-full flex-col items-center justify-center gap-3 rounded-xl border-2 border-dashed border-border-default bg-surface-1 px-6 py-10 text-center \" +\n \"transition-colors data-[dragging]:border-accent data-[dragging]:bg-accent-soft data-[disabled]:opacity-50 has-[:focus-visible]:border-accent\",\n zoneIcon: \"flex h-12 w-12 items-center justify-center rounded-full bg-surface-3 text-fg-secondary\",\n zoneTitle: \"text-sm font-semibold text-fg\",\n zoneHint: \"text-xs text-fg-secondary\",\n browse:\n \"inline-flex h-9 items-center justify-center rounded-lg bg-accent px-4 text-sm font-semibold text-on-accent transition-colors hover:bg-accent-hover \" +\n \"focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-surface-0 disabled:pointer-events-none\",\n refusals: \"w-full text-left text-xs font-medium text-fg-danger\",\n list: \"flex w-full flex-col gap-2\",\n item: \"flex items-center gap-3 rounded-xl border border-border-default bg-surface-1 p-3 data-[status=error]:border-danger/60\",\n preview: \"flex h-12 w-12 shrink-0 items-center justify-center overflow-hidden rounded-lg bg-surface-3 text-fg-secondary\",\n body: \"flex min-w-0 flex-1 flex-col gap-1.5\",\n name: \"truncate text-sm font-semibold text-fg\",\n meta: \"flex flex-wrap gap-x-2 text-xs tabular-nums text-fg-secondary\",\n error: \"text-xs font-medium text-fg-danger\",\n actions: \"flex shrink-0 items-center gap-1\",\n action:\n \"inline-flex h-8 w-8 items-center justify-center rounded-md text-fg-secondary transition-colors hover:bg-surface-3 hover:text-fg \" +\n \"focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring\",\n },\n});\n\n/** Why a file was refused. */\nexport type FileRejection = { file: File; reason: \"type\" | \"size\" | \"count\" };\n\n/** Whether a file matches an `accept` list (`\"video/*,.mov,image/png\"`). */\nexport function acceptsFile(file: File, accept?: string): boolean {\n if (!accept) return true;\n const name = file.name.toLowerCase();\n const type = file.type.toLowerCase();\n return accept\n .split(\",\")\n .map((rule) => rule.trim().toLowerCase())\n .filter(Boolean)\n .some((rule) => (rule.startsWith(\".\") ? name.endsWith(rule) : rule.endsWith(\"/*\") ? type.startsWith(rule.slice(0, -1)) : type === rule));\n}\n\n/** A size in the locale's words (`\"1.4 GB\"`, `\"820 kB\"`), through `@krizaka/intl`. */\nexport function formatBytes(bytes: number, locale = \"en\"): string {\n const units = [\"byte\", \"kilobyte\", \"megabyte\", \"gigabyte\", \"terabyte\"] as const;\n let value = Math.max(0, bytes);\n let unit = 0;\n while (value >= 1000 && unit < units.length - 1) {\n value /= 1000;\n unit += 1;\n }\n return getNumberFormat(locale, { style: \"unit\", unit: units[unit], unitDisplay: \"short\", maximumFractionDigits: value < 10 && unit > 0 ? 1 : 0 }).format(value);\n}\n\nexport type DropzoneProps = {\n /** The title in the zone (\"Drop your video here\"), passed translated. */\n title: string;\n /** The button that opens the file picker (\"Choose a file\"), passed translated. */\n browseLabel: string;\n /** What is accepted, in words (\"MP4 or MOV, up to 4 GB\"). */\n hint?: string;\n /** The types accepted, as the `accept` attribute (`\"video/*\"`, `\"image/png,.pdf\"`). */\n accept?: string;\n /** The largest file, in bytes. */\n maxSize?: number;\n /** The most files at once (1 unless `multiple`). */\n maxFiles?: number;\n /** Several files at once. */\n multiple?: boolean;\n /** Not available (an upload is running). */\n disabled?: boolean;\n /** On a phone, opens the camera directly (`\"environment\"` the back one, `\"user\"` the front one). */\n capture?: \"user\" | \"environment\";\n /** Called with the files accepted (never empty). */\n onFiles: (files: File[]) => void;\n /** Called with the files refused and why (show `refusalLabel`'s words, or your own). */\n onReject?: (rejections: FileRejection[]) => void;\n /** The words of a refusal, shown in the zone: `(r) => r.file.name + \" is too large\"`. Without it, nothing is shown. */\n refusalLabel?: (rejection: FileRejection) => string;\n /** The accessible name of the file input, passed translated. Defaults to `title`. */\n inputLabel?: string;\n /** An icon instead of the upload glyph. */\n icon?: React.ReactNode;\n /** Classes merged on the zone. */\n className?: string;\n};\n\n/** A zone to drop files on, with a button that opens the picker: checks type, size and count. */\nexport function Dropzone({\n title,\n browseLabel,\n hint,\n accept,\n maxSize,\n maxFiles,\n multiple,\n disabled,\n capture,\n onFiles,\n onReject,\n refusalLabel,\n inputLabel,\n icon,\n className,\n}: Readonly<DropzoneProps>) {\n const s = fileUpload();\n const input = React.useRef<HTMLInputElement>(null);\n const [dragging, setDragging] = React.useState(false);\n const [refused, setRefused] = React.useState<FileRejection[]>([]);\n const depth = React.useRef(0);\n const id = React.useId();\n const limit = maxFiles ?? (multiple ? Infinity : 1);\n\n const take = (list: FileList | File[]) => {\n const files = [...list];\n const accepted: File[] = [];\n const rejections: FileRejection[] = [];\n for (const file of files) {\n if (!acceptsFile(file, accept)) rejections.push({ file, reason: \"type\" });\n else if (maxSize !== undefined && file.size > maxSize) rejections.push({ file, reason: \"size\" });\n else if (accepted.length >= limit) rejections.push({ file, reason: \"count\" });\n else accepted.push(file);\n }\n setRefused(rejections);\n if (accepted.length) onFiles(accepted);\n if (rejections.length) onReject?.(rejections);\n };\n\n return (\n <div\n className={s.zone({ className })}\n data-dragging={dragging ? \"\" : undefined}\n data-disabled={disabled ? \"\" : undefined}\n onDragEnter={(event) => {\n if (disabled) return;\n event.preventDefault();\n depth.current += 1;\n setDragging(true);\n }}\n onDragOver={(event) => {\n if (disabled) return;\n event.preventDefault();\n event.dataTransfer.dropEffect = \"copy\";\n }}\n onDragLeave={() => {\n depth.current = Math.max(0, depth.current - 1);\n if (depth.current === 0) setDragging(false);\n }}\n onDrop={(event) => {\n if (disabled) return;\n event.preventDefault();\n depth.current = 0;\n setDragging(false);\n take(event.dataTransfer.files);\n }}\n >\n <span className={s.zoneIcon()} aria-hidden>\n {icon ?? <UploadGlyph className=\"h-6 w-6\" />}\n </span>\n <p id={`${id}-title`} className={s.zoneTitle()}>\n {title}\n </p>\n {hint ? (\n <p id={`${id}-hint`} className={s.zoneHint()}>\n {hint}\n </p>\n ) : null}\n <button\n type=\"button\"\n className={s.browse()}\n disabled={disabled}\n aria-describedby={[`${id}-title`, hint ? `${id}-hint` : null].filter(Boolean).join(\" \")}\n onClick={() => input.current?.click()}\n >\n {browseLabel}\n </button>\n <input\n ref={input}\n type=\"file\"\n tabIndex={-1}\n aria-hidden\n aria-label={inputLabel ?? title}\n className=\"sr-only\"\n accept={accept}\n multiple={multiple}\n capture={capture}\n disabled={disabled}\n onChange={(event) => {\n if (event.target.files?.length) take(event.target.files);\n event.target.value = \"\";\n }}\n />\n {refusalLabel && refused.length > 0 ? (\n <ul role=\"alert\" className={s.refusals()}>\n {refused.map((r) => (\n <li key={`${r.file.name}-${r.reason}`}>{refusalLabel(r)}</li>\n ))}\n </ul>\n ) : null}\n </div>\n );\n}\n\nexport type UploadStatus = \"queued\" | \"uploading\" | \"paused\" | \"done\" | \"error\";\n\nexport type UploadItem = {\n /** A stable id. */\n id: string;\n /** The file's name. */\n name: string;\n /** Its size, in bytes. */\n size: number;\n /** Its MIME type (`video/mp4`): picks the preview. */\n type?: string;\n /** Sent so far, between 0 and 1. */\n progress: number;\n /** Where it stands. */\n status: UploadStatus;\n /** Why it failed, passed translated. */\n error?: string;\n /** A preview (an object URL of the file, a thumbnail from the server). */\n previewUrl?: string;\n /** Bytes per second, for the speed and the time left. */\n speed?: number;\n};\n\nexport type UploadListLabels = {\n /** The list's accessible name (\"Uploads\"). */\n list: string;\n pause: (name: string) => string;\n resume: (name: string) => string;\n retry: (name: string) => string;\n cancel: (name: string) => string;\n remove: (name: string) => string;\n /** A state in words: `(status) => \"Paused\"`… */\n status: (status: UploadStatus) => string;\n /** The time left: `(seconds) => \"2 min left\"`. */\n remaining: (seconds: number) => string;\n};\n\nexport const uploadListLabels: UploadListLabels = {\n list: \"Uploads\",\n pause: (name) => `Pause ${name}`,\n resume: (name) => `Resume ${name}`,\n retry: (name) => `Retry ${name}`,\n cancel: (name) => `Cancel ${name}`,\n remove: (name) => `Remove ${name}`,\n status: (status) => ({ queued: \"Waiting\", uploading: \"Uploading\", paused: \"Paused\", done: \"Uploaded\", error: \"Failed\" })[status],\n remaining: (seconds) => (seconds < 60 ? `${Math.ceil(seconds)} s left` : `${Math.ceil(seconds / 60)} min left`),\n};\n\nexport type UploadListProps = {\n /** The uploads, as `useUploadQueue` gives them (or your own state). */\n items: readonly UploadItem[];\n /** Pauses an upload (shown while it uploads, when given). */\n onPause?: (id: string) => void;\n /** Resumes a paused one. */\n onResume?: (id: string) => void;\n /** Tries a failed one again. */\n onRetry?: (id: string) => void;\n /** Stops an upload under way and drops it. */\n onCancel?: (id: string) => void;\n /** Drops a finished or failed one from the list. */\n onRemove?: (id: string) => void;\n /** The locale of sizes and speeds. Default `\"en\"`. */\n locale?: string;\n /** The words, passed translated; English by default. */\n labels?: Partial<UploadListLabels>;\n /** Classes merged on the list. */\n className?: string;\n};\n\nfunction Preview({ item }: { item: UploadItem }) {\n if (item.previewUrl && item.type?.startsWith(\"image/\")) return <img src={item.previewUrl} alt=\"\" className=\"h-full w-full object-cover\" />;\n if (item.previewUrl && item.type?.startsWith(\"video/\")) return <video src={item.previewUrl} muted playsInline preload=\"metadata\" className=\"h-full w-full object-cover\" aria-hidden />;\n return <FileGlyph className=\"h-5 w-5\" />;\n}\n\n/** The files being sent: preview, size, progress, speed and time left, and the actions each state allows. */\nexport function UploadList({ items, onPause, onResume, onRetry, onCancel, onRemove, locale = \"en\", labels: given, className }: UploadListProps) {\n const labels = { ...uploadListLabels, ...given };\n const s = fileUpload();\n const action = (label: string, run: () => void, glyph: React.ReactNode) => (\n <button type=\"button\" className={s.action()} aria-label={label} title={label} onClick={run}>\n {glyph}\n </button>\n );\n return (\n <ul aria-label={labels.list} className={s.list({ className })}>\n {items.map((item) => {\n const left = item.status === \"uploading\" && item.speed ? ((1 - item.progress) * item.size) / item.speed : null;\n return (\n <li key={item.id} className={s.item()} data-status={item.status}>\n <span className={s.preview()}>\n <Preview item={item} />\n </span>\n <div className={s.body()}>\n <p className={s.name()}>{item.name}</p>\n {item.status !== \"done\" && item.status !== \"error\" ? (\n <Progress size=\"sm\" label={item.name} value={item.status === \"queued\" ? null : Math.round(item.progress * 100)} />\n ) : null}\n <p className={s.meta()}>\n <span>{labels.status(item.status)}</span>\n <span>{item.status === \"done\" ? formatBytes(item.size, locale) : `${formatBytes(item.progress * item.size, locale)} / ${formatBytes(item.size, locale)}`}</span>\n {item.status === \"uploading\" && item.speed ? <span>{formatBytes(item.speed, locale)}/s</span> : null}\n {left !== null ? <span>{labels.remaining(left)}</span> : null}\n </p>\n {item.status === \"error\" && item.error ? (\n <p role=\"alert\" className={s.error()}>\n {item.error}\n </p>\n ) : null}\n </div>\n <div className={s.actions()}>\n {item.status === \"uploading\" && onPause && action(labels.pause(item.name), () => onPause(item.id), <PauseGlyph className=\"h-4 w-4\" />)}\n {item.status === \"paused\" && onResume && action(labels.resume(item.name), () => onResume(item.id), <PlayGlyph className=\"h-4 w-4\" />)}\n {item.status === \"error\" && onRetry && action(labels.retry(item.name), () => onRetry(item.id), <RetryGlyph className=\"h-4 w-4\" />)}\n {(item.status === \"done\" || item.status === \"error\") && onRemove\n ? action(labels.remove(item.name), () => onRemove(item.id), <CloseGlyph className=\"h-4 w-4\" />)\n : item.status !== \"done\" && onCancel\n ? action(labels.cancel(item.name), () => onCancel(item.id), <CloseGlyph className=\"h-4 w-4\" />)\n : null}\n </div>\n </li>\n );\n })}\n </ul>\n );\n}\n\nexport type UploadContext = {\n /** Aborted on pause and cancel: stop sending (`tusUpload.abort()`, `xhr.abort()`). */\n signal: AbortSignal;\n /** Report the bytes sent so far. */\n onProgress: (sent: number) => void;\n /** `true` when this call resumes a paused or failed upload (a Tus client then continues from its offset). */\n resumed: boolean;\n};\n\nexport type UploadQueueOptions = {\n /** Sends one file; resolves when it is done, rejects on failure (its `message` becomes the item's error). */\n upload: (file: File, context: UploadContext) => Promise<void>;\n /** How many files go at once. Default 2. */\n concurrency?: number;\n /** How many times a failed upload is tried again by itself (with `backoff`) before it shows its error. Default 0. */\n retries?: number;\n /** The wait between retries: exponential from 1 s by default (`@krizaka/pacer`). */\n backoff?: QueueOptions[\"backoff\"];\n /** Whether an error deserves another try (a 4xx never does). Default: every error does, up to `retries`. */\n shouldRetry?: QueueOptions[\"shouldRetry\"];\n /** Makes an object URL for each file to preview (revoked when it leaves). Default `true`. */\n previews?: boolean;\n};\n\n/** What the screen reads of an upload besides its status: the file, how far it got, how fast. */\ntype UploadMeta = { file: File; progress: number; speed?: number; previewUrl?: string; last?: { at: number; sent: number } };\n\n/**\n * The state of an upload queue around the app's `upload` function: `add`, `pause`, `resume`, `retry`, `cancel`, `remove`.\n * The line itself — concurrency, retries with backoff, pause by aborting the signal — is `createQueue` of\n * `@krizaka/pacer`; this hook adds the files, their previews, their progress and their speed.\n */\nexport function useUploadQueue(options: UploadQueueOptions) {\n const { concurrency, retries, backoff, shouldRetry } = options;\n const latest = useLatest(options);\n const queue = useQueue<UploadMeta>({ concurrency: concurrency ?? 2, retries, backoff, shouldRetry });\n const jobs = useQueueSnapshot(queue);\n const metas = useLatest(new Map(jobs.map((job) => [job.id, job.meta])));\n\n const add = React.useCallback(\n (files: readonly File[]) => {\n const { previews = true } = latest.current;\n for (const file of files) {\n const id = `${file.name}-${file.size}-${Math.random().toString(36).slice(2, 8)}`;\n const previewUrl = previews && typeof URL.createObjectURL === \"function\" ? URL.createObjectURL(file) : undefined;\n queue.add(\n async ({ signal, resumed }) => {\n queue.update(id, (m) => ({ ...m, last: { at: Date.now(), sent: m.progress * file.size } }));\n try {\n await latest.current.upload(file, {\n signal,\n resumed,\n onProgress: (sent) => {\n if (signal.aborted) return;\n queue.update(id, (m) => {\n const now = Date.now();\n const last = m.last ?? { at: now, sent };\n const fresh = now - last.at > 400;\n return { ...m, progress: file.size ? Math.min(1, sent / file.size) : 0, speed: fresh ? ((sent - last.sent) / (now - last.at)) * 1000 : m.speed, last: fresh ? { at: now, sent } : last };\n });\n },\n });\n if (!signal.aborted) queue.update(id, (m) => ({ ...m, progress: 1, speed: undefined }));\n } catch (error) {\n if (!signal.aborted) queue.update(id, (m) => ({ ...m, speed: undefined }));\n throw error;\n }\n },\n { id, meta: { file, progress: 0, previewUrl } },\n );\n }\n },\n [latest, queue],\n );\n const forget = React.useCallback(\n (id: string) => {\n const url = metas.current.get(id)?.previewUrl;\n if (url) URL.revokeObjectURL(url);\n queue.cancel(id);\n },\n [metas, queue],\n );\n React.useEffect(\n () => () => {\n for (const meta of metas.current.values()) if (meta.previewUrl) URL.revokeObjectURL(meta.previewUrl);\n },\n [metas],\n );\n const pause = React.useCallback(\n (id: string) => {\n queue.pause(id);\n queue.update(id, (m) => ({ ...m, speed: undefined }));\n },\n [queue],\n );\n\n const items = React.useMemo<UploadItem[]>(\n () =>\n jobs.map(({ id, status, error, meta }) => ({\n id,\n name: meta.file.name,\n size: meta.file.size,\n type: meta.file.type,\n progress: meta.progress,\n status: status === \"running\" ? \"uploading\" : status,\n error: error?.message,\n previewUrl: meta.previewUrl,\n speed: status === \"running\" ? meta.speed : undefined,\n })),\n [jobs],\n );\n return { items, add, pause, resume: queue.resume, retry: queue.retry, cancel: forget, remove: forget };\n}\n"
284
+ "content": "// Client. Three parts that work alone or together:\n// - `Dropzone`: drop files on it or pick them with its button (a real `<input type=\"file\">`, so the keyboard and the\n// phone's camera / files sheet work); it checks the type, the size and the count, and hands over the accepted files\n// and the refused ones with their reason;\n// - `UploadList`: each file with its preview, size, progress, speed, and the actions its state allows (pause, resume,\n// retry, cancel, remove); the progress is a `progressbar`, a failure is announced;\n// - `useUploadQueue`: runs the app's `upload(file, { signal, onProgress, resumed })` with a concurrency, pauses by\n// aborting the signal and resumes by calling it again with `resumed: true` — what a Tus client (tus-js-client's\n// `abort()` / `start()`) or a multipart upload needs, without depending on either. The line (concurrency, retries\n// with backoff, pause per file) is `createQueue` of @krizaka/pacer.\nimport { getNumberFormat } from \"@krizaka/intl\";\nimport { type QueueOptions } from \"@krizaka/pacer\";\nimport { useQueue, useQueueSnapshot } from \"@krizaka/pacer/react\";\nimport * as React from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nimport { CloseGlyph, FileGlyph, PauseGlyph, PlayGlyph, RetryGlyph, UploadGlyph } from \"../glyphs\";\nimport { useLatest } from \"../media\";\nimport { Progress } from \"../progress\";\n\nexport const fileUpload = tv({\n slots: {\n zone:\n \"relative flex w-full flex-col items-center justify-center gap-3 rounded-xl border-2 border-dashed border-border-default bg-surface-1 px-6 py-10 text-center \" +\n \"transition-colors data-[dragging]:border-accent data-[dragging]:bg-accent-soft data-[disabled]:opacity-50 has-[:focus-visible]:border-accent\",\n zoneIcon: \"flex h-12 w-12 items-center justify-center rounded-full bg-surface-3 text-fg-secondary\",\n zoneTitle: \"text-sm font-semibold text-fg\",\n zoneHint: \"text-xs text-fg-secondary\",\n browse:\n \"inline-flex h-9 items-center justify-center rounded-lg bg-accent px-4 text-sm font-semibold text-on-accent transition-colors hover:bg-accent-hover \" +\n \"focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-surface-0 disabled:pointer-events-none\",\n refusals: \"w-full text-left text-xs font-medium text-fg-danger\",\n list: \"flex w-full flex-col gap-2\",\n item: \"flex items-center gap-3 rounded-xl border border-border-default bg-surface-1 p-3 data-[status=error]:border-danger/60\",\n preview: \"flex h-12 w-12 shrink-0 items-center justify-center overflow-hidden rounded-lg bg-surface-3 text-fg-secondary\",\n body: \"flex min-w-0 flex-1 flex-col gap-1.5\",\n name: \"truncate text-sm font-semibold text-fg\",\n meta: \"flex flex-wrap gap-x-2 text-xs tabular-nums text-fg-secondary\",\n error: \"text-xs font-medium text-fg-danger\",\n actions: \"flex shrink-0 items-center gap-1\",\n action:\n \"inline-flex h-8 w-8 items-center justify-center rounded-md text-fg-secondary transition-colors hover:bg-surface-3 hover:text-fg \" +\n \"focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring\",\n },\n});\n\n/** Why a file was refused. */\nexport type FileRejection = { file: File; reason: \"type\" | \"size\" | \"count\" };\n\n/** Whether a file matches an `accept` list (`\"video/*,.mov,image/png\"`). */\nexport function acceptsFile(file: File, accept?: string): boolean {\n if (!accept) return true;\n const name = file.name.toLowerCase();\n const type = file.type.toLowerCase();\n return accept\n .split(\",\")\n .map((rule) => rule.trim().toLowerCase())\n .filter(Boolean)\n .some((rule) => (rule.startsWith(\".\") ? name.endsWith(rule) : rule.endsWith(\"/*\") ? type.startsWith(rule.slice(0, -1)) : type === rule));\n}\n\n/** A size in the locale's words (`\"1.4 GB\"`, `\"820 kB\"`), through `@krizaka/intl`. */\nexport function formatBytes(bytes: number, locale = \"en\"): string {\n const units = [\"byte\", \"kilobyte\", \"megabyte\", \"gigabyte\", \"terabyte\"] as const;\n let value = Math.max(0, bytes);\n let unit = 0;\n while (value >= 1000 && unit < units.length - 1) {\n value /= 1000;\n unit += 1;\n }\n return getNumberFormat(locale, { style: \"unit\", unit: units[unit], unitDisplay: \"short\", maximumFractionDigits: value < 10 && unit > 0 ? 1 : 0 }).format(value);\n}\n\nexport type DropzoneProps = {\n /** The title in the zone (\"Drop your video here\"), passed translated. */\n title: string;\n /** The button that opens the file picker (\"Choose a file\"), passed translated. */\n browseLabel: string;\n /** What is accepted, in words (\"MP4 or MOV, up to 4 GB\"). */\n hint?: string;\n /** The types accepted, as the `accept` attribute (`\"video/*\"`, `\"image/png,.pdf\"`). */\n accept?: string;\n /** The largest file, in bytes. */\n maxSize?: number;\n /** The most files at once (1 unless `multiple`). */\n maxFiles?: number;\n /** Several files at once. */\n multiple?: boolean;\n /** Not available (an upload is running). */\n disabled?: boolean;\n /** On a phone, opens the camera directly (`\"environment\"` the back one, `\"user\"` the front one). */\n capture?: \"user\" | \"environment\";\n /** Called with the files accepted (never empty). */\n onFiles: (files: File[]) => void;\n /** Called with the files refused and why (show `refusalLabel`'s words, or your own). */\n onReject?: (rejections: FileRejection[]) => void;\n /** The words of a refusal, shown in the zone: `(r) => r.file.name + \" is too large\"`. Without it, nothing is shown. */\n refusalLabel?: (rejection: FileRejection) => string;\n /** The accessible name of the file input, passed translated. Defaults to `title`. */\n inputLabel?: string;\n /** An icon instead of the upload glyph. */\n icon?: React.ReactNode;\n /** Classes merged on the zone. */\n className?: string;\n};\n\n/** A zone to drop files on, with a button that opens the picker: checks type, size and count. */\nexport function Dropzone({\n title,\n browseLabel,\n hint,\n accept,\n maxSize,\n maxFiles,\n multiple,\n disabled,\n capture,\n onFiles,\n onReject,\n refusalLabel,\n inputLabel,\n icon,\n className,\n}: Readonly<DropzoneProps>) {\n const s = fileUpload();\n const input = React.useRef<HTMLInputElement>(null);\n const [dragging, setDragging] = React.useState(false);\n const [refused, setRefused] = React.useState<FileRejection[]>([]);\n const depth = React.useRef(0);\n const id = React.useId();\n const limit = maxFiles ?? (multiple ? Infinity : 1);\n\n const take = (list: FileList | File[]) => {\n const files = [...list];\n const accepted: File[] = [];\n const rejections: FileRejection[] = [];\n for (const file of files) {\n if (!acceptsFile(file, accept)) rejections.push({ file, reason: \"type\" });\n else if (maxSize !== undefined && file.size > maxSize) rejections.push({ file, reason: \"size\" });\n else if (accepted.length >= limit) rejections.push({ file, reason: \"count\" });\n else accepted.push(file);\n }\n setRefused(rejections);\n if (accepted.length) onFiles(accepted);\n if (rejections.length) onReject?.(rejections);\n };\n\n return (\n <div\n className={s.zone({ className })}\n data-dragging={dragging ? \"\" : undefined}\n data-disabled={disabled ? \"\" : undefined}\n onDragEnter={(event) => {\n if (disabled) return;\n event.preventDefault();\n depth.current += 1;\n setDragging(true);\n }}\n onDragOver={(event) => {\n if (disabled) return;\n event.preventDefault();\n event.dataTransfer.dropEffect = \"copy\";\n }}\n onDragLeave={() => {\n depth.current = Math.max(0, depth.current - 1);\n if (depth.current === 0) setDragging(false);\n }}\n onDrop={(event) => {\n if (disabled) return;\n event.preventDefault();\n depth.current = 0;\n setDragging(false);\n take(event.dataTransfer.files);\n }}\n >\n <span className={s.zoneIcon()} aria-hidden>\n {icon ?? <UploadGlyph className=\"h-6 w-6\" />}\n </span>\n <p id={`${id}-title`} className={s.zoneTitle()}>\n {title}\n </p>\n {hint ? (\n <p id={`${id}-hint`} className={s.zoneHint()}>\n {hint}\n </p>\n ) : null}\n <button\n type=\"button\"\n className={s.browse()}\n disabled={disabled}\n aria-describedby={[`${id}-title`, hint ? `${id}-hint` : null].filter(Boolean).join(\" \")}\n onClick={() => input.current?.click()}\n >\n {browseLabel}\n </button>\n <input\n ref={input}\n type=\"file\"\n tabIndex={-1}\n aria-hidden\n aria-label={inputLabel ?? title}\n className=\"sr-only\"\n accept={accept}\n multiple={multiple}\n capture={capture}\n disabled={disabled}\n onChange={(event) => {\n if (event.target.files?.length) take(event.target.files);\n event.target.value = \"\";\n }}\n />\n {refusalLabel && refused.length > 0 ? (\n <ul role=\"alert\" className={s.refusals()}>\n {refused.map((r) => (\n <li key={`${r.file.name}-${r.reason}`}>{refusalLabel(r)}</li>\n ))}\n </ul>\n ) : null}\n </div>\n );\n}\n\nexport type UploadStatus = \"queued\" | \"uploading\" | \"paused\" | \"done\" | \"error\";\n\nexport type UploadItem = {\n /** A stable id. */\n id: string;\n /** The file's name. */\n name: string;\n /** Its size, in bytes. */\n size: number;\n /** Its MIME type (`video/mp4`): picks the preview. */\n type?: string;\n /** Sent so far, between 0 and 1. */\n progress: number;\n /** Where it stands. */\n status: UploadStatus;\n /** Why it failed, passed translated. */\n error?: string;\n /** A preview (an object URL of the file, a thumbnail from the server). */\n previewUrl?: string;\n /** Bytes per second, for the speed and the time left. */\n speed?: number;\n};\n\nexport type UploadListLabels = {\n /** The list's accessible name (\"Uploads\"). */\n list: string;\n pause: (name: string) => string;\n resume: (name: string) => string;\n retry: (name: string) => string;\n cancel: (name: string) => string;\n remove: (name: string) => string;\n /** A state in words: `(status) => \"Paused\"`… */\n status: (status: UploadStatus) => string;\n /** The time left: `(seconds) => \"2 min left\"`. */\n remaining: (seconds: number) => string;\n};\n\nexport const uploadListLabels: UploadListLabels = {\n list: \"Uploads\",\n pause: (name) => `Pause ${name}`,\n resume: (name) => `Resume ${name}`,\n retry: (name) => `Retry ${name}`,\n cancel: (name) => `Cancel ${name}`,\n remove: (name) => `Remove ${name}`,\n status: (status) => ({ queued: \"Waiting\", uploading: \"Uploading\", paused: \"Paused\", done: \"Uploaded\", error: \"Failed\" })[status],\n remaining: (seconds) => (seconds < 60 ? `${Math.ceil(seconds)} s left` : `${Math.ceil(seconds / 60)} min left`),\n};\n\nexport type UploadListProps = {\n /** The uploads, as `useUploadQueue` gives them (or your own state). */\n items: readonly UploadItem[];\n /** Pauses an upload (shown while it uploads, when given). */\n onPause?: (id: string) => void;\n /** Resumes a paused one. */\n onResume?: (id: string) => void;\n /** Tries a failed one again. */\n onRetry?: (id: string) => void;\n /** Stops an upload under way and drops it. */\n onCancel?: (id: string) => void;\n /** Drops a finished or failed one from the list. */\n onRemove?: (id: string) => void;\n /** The locale of sizes and speeds. Default `\"en\"`. */\n locale?: string;\n /** The words, passed translated; English by default. */\n labels?: Partial<UploadListLabels>;\n /** Classes merged on the list. */\n className?: string;\n};\n\nfunction Preview({ item }: Readonly<{ item: UploadItem }>) {\n if (item.previewUrl && item.type?.startsWith(\"image/\")) return <img src={item.previewUrl} alt=\"\" className=\"h-full w-full object-cover\" />;\n if (item.previewUrl && item.type?.startsWith(\"video/\")) return <video src={item.previewUrl} muted playsInline preload=\"metadata\" className=\"h-full w-full object-cover\" aria-hidden />;\n return <FileGlyph className=\"h-5 w-5\" />;\n}\n\n/** The files being sent: preview, size, progress, speed and time left, and the actions each state allows. */\nexport function UploadList({ items, onPause, onResume, onRetry, onCancel, onRemove, locale = \"en\", labels: given, className }: Readonly<UploadListProps>) {\n const labels = { ...uploadListLabels, ...given };\n const s = fileUpload();\n const action = (label: string, run: () => void, glyph: React.ReactNode) => (\n <button type=\"button\" className={s.action()} aria-label={label} title={label} onClick={run}>\n {glyph}\n </button>\n );\n return (\n <ul aria-label={labels.list} className={s.list({ className })}>\n {items.map((item) => {\n const left = item.status === \"uploading\" && item.speed ? ((1 - item.progress) * item.size) / item.speed : null;\n return (\n <li key={item.id} className={s.item()} data-status={item.status}>\n <span className={s.preview()}>\n <Preview item={item} />\n </span>\n <div className={s.body()}>\n <p className={s.name()}>{item.name}</p>\n {item.status !== \"done\" && item.status !== \"error\" ? (\n <Progress size=\"sm\" label={item.name} value={item.status === \"queued\" ? null : Math.round(item.progress * 100)} />\n ) : null}\n <p className={s.meta()}>\n <span>{labels.status(item.status)}</span>\n <span>{item.status === \"done\" ? formatBytes(item.size, locale) : `${formatBytes(item.progress * item.size, locale)} / ${formatBytes(item.size, locale)}`}</span>\n {item.status === \"uploading\" && item.speed ? <span>{formatBytes(item.speed, locale)}/s</span> : null}\n {left !== null ? <span>{labels.remaining(left)}</span> : null}\n </p>\n {item.status === \"error\" && item.error ? (\n <p role=\"alert\" className={s.error()}>\n {item.error}\n </p>\n ) : null}\n </div>\n <div className={s.actions()}>\n {item.status === \"uploading\" && onPause && action(labels.pause(item.name), () => onPause(item.id), <PauseGlyph className=\"h-4 w-4\" />)}\n {item.status === \"paused\" && onResume && action(labels.resume(item.name), () => onResume(item.id), <PlayGlyph className=\"h-4 w-4\" />)}\n {item.status === \"error\" && onRetry && action(labels.retry(item.name), () => onRetry(item.id), <RetryGlyph className=\"h-4 w-4\" />)}\n {(item.status === \"done\" || item.status === \"error\") && onRemove\n ? action(labels.remove(item.name), () => onRemove(item.id), <CloseGlyph className=\"h-4 w-4\" />)\n : item.status !== \"done\" && onCancel\n ? action(labels.cancel(item.name), () => onCancel(item.id), <CloseGlyph className=\"h-4 w-4\" />)\n : null}\n </div>\n </li>\n );\n })}\n </ul>\n );\n}\n\nexport type UploadContext = {\n /** Aborted on pause and cancel: stop sending (`tusUpload.abort()`, `xhr.abort()`). */\n signal: AbortSignal;\n /** Report the bytes sent so far. */\n onProgress: (sent: number) => void;\n /** `true` when this call resumes a paused or failed upload (a Tus client then continues from its offset). */\n resumed: boolean;\n};\n\nexport type UploadQueueOptions = {\n /** Sends one file; resolves when it is done, rejects on failure (its `message` becomes the item's error). */\n upload: (file: File, context: UploadContext) => Promise<void>;\n /** How many files go at once. Default 2. */\n concurrency?: number;\n /** How many times a failed upload is tried again by itself (with `backoff`) before it shows its error. Default 0. */\n retries?: number;\n /** The wait between retries: exponential from 1 s by default (`@krizaka/pacer`). */\n backoff?: QueueOptions[\"backoff\"];\n /** Whether an error deserves another try (a 4xx never does). Default: every error does, up to `retries`. */\n shouldRetry?: QueueOptions[\"shouldRetry\"];\n /** Makes an object URL for each file to preview (revoked when it leaves). Default `true`. */\n previews?: boolean;\n};\n\n/** What the screen reads of an upload besides its status: the file, how far it got, how fast. */\ntype UploadMeta = { file: File; progress: number; speed?: number; previewUrl?: string; last?: { at: number; sent: number } };\n\n/**\n * The state of an upload queue around the app's `upload` function: `add`, `pause`, `resume`, `retry`, `cancel`, `remove`.\n * The line itself — concurrency, retries with backoff, pause by aborting the signal — is `createQueue` of\n * `@krizaka/pacer`; this hook adds the files, their previews, their progress and their speed.\n */\nexport function useUploadQueue(options: UploadQueueOptions) {\n const { concurrency, retries, backoff, shouldRetry } = options;\n const latest = useLatest(options);\n const queue = useQueue<UploadMeta>({ concurrency: concurrency ?? 2, retries, backoff, shouldRetry });\n const jobs = useQueueSnapshot(queue);\n const metas = useLatest(new Map(jobs.map((job) => [job.id, job.meta])));\n\n const add = React.useCallback(\n (files: readonly File[]) => {\n const { previews = true } = latest.current;\n for (const file of files) {\n const id = `${file.name}-${file.size}-${Math.random().toString(36).slice(2, 8)}`;\n const previewUrl = previews && typeof URL.createObjectURL === \"function\" ? URL.createObjectURL(file) : undefined;\n queue.add(\n async ({ signal, resumed }) => {\n queue.update(id, (m) => ({ ...m, last: { at: Date.now(), sent: m.progress * file.size } }));\n try {\n await latest.current.upload(file, {\n signal,\n resumed,\n onProgress: (sent) => {\n if (signal.aborted) return;\n queue.update(id, (m) => {\n const now = Date.now();\n const last = m.last ?? { at: now, sent };\n const fresh = now - last.at > 400;\n return { ...m, progress: file.size ? Math.min(1, sent / file.size) : 0, speed: fresh ? ((sent - last.sent) / (now - last.at)) * 1000 : m.speed, last: fresh ? { at: now, sent } : last };\n });\n },\n });\n if (!signal.aborted) queue.update(id, (m) => ({ ...m, progress: 1, speed: undefined }));\n } catch (error) {\n if (!signal.aborted) queue.update(id, (m) => ({ ...m, speed: undefined }));\n throw error;\n }\n },\n { id, meta: { file, progress: 0, previewUrl } },\n );\n }\n },\n [latest, queue],\n );\n const forget = React.useCallback(\n (id: string) => {\n const url = metas.current.get(id)?.previewUrl;\n if (url) URL.revokeObjectURL(url);\n queue.cancel(id);\n },\n [metas, queue],\n );\n React.useEffect(\n () => () => {\n for (const meta of metas.current.values()) if (meta.previewUrl) URL.revokeObjectURL(meta.previewUrl);\n },\n [metas],\n );\n const pause = React.useCallback(\n (id: string) => {\n queue.pause(id);\n queue.update(id, (m) => ({ ...m, speed: undefined }));\n },\n [queue],\n );\n\n const items = React.useMemo<UploadItem[]>(\n () =>\n jobs.map(({ id, status, error, meta }) => ({\n id,\n name: meta.file.name,\n size: meta.file.size,\n type: meta.file.type,\n progress: meta.progress,\n status: status === \"running\" ? \"uploading\" : status,\n error: error?.message,\n previewUrl: meta.previewUrl,\n speed: status === \"running\" ? meta.speed : undefined,\n })),\n [jobs],\n );\n return { items, add, pause, resume: queue.resume, retry: queue.retry, cancel: forget, remove: forget };\n}\n"
285
285
  },
286
286
  {
287
287
  "path": "file-upload/index.ts",
@@ -293,7 +293,7 @@
293
293
  },
294
294
  {
295
295
  "path": "glyphs.tsx",
296
- "content": "// The small line glyphs the data and media primitives draw (play, volume, search, chevrons…): decorative, 24-unit\n// box, `currentColor`, sized by the caller's class. Shared by the entries that need them; never exported on its own —\n// a product draws its own icons with @krizaka/icons.\nimport type * as React from \"react\";\n\ntype GlyphProps = { className?: string };\n\nfunction Glyph({ className = \"h-4 w-4\", fill, children }: GlyphProps & { fill?: boolean; children: React.ReactNode }) {\n return (\n <svg\n viewBox=\"0 0 24 24\"\n className={className}\n fill={fill ? \"currentColor\" : \"none\"}\n stroke={fill ? \"none\" : \"currentColor\"}\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden\n focusable=\"false\"\n >\n {children}\n </svg>\n );\n}\n\nexport const PlayGlyph = (p: GlyphProps) => (\n <Glyph {...p} fill>\n <path d=\"M8 5.5v13a1 1 0 0 0 1.5.86l10.4-6.5a1 1 0 0 0 0-1.72L9.5 4.64A1 1 0 0 0 8 5.5Z\" />\n </Glyph>\n);\nexport const PauseGlyph = (p: GlyphProps) => (\n <Glyph {...p} fill>\n <rect x=\"6\" y=\"5\" width=\"4\" height=\"14\" rx=\"1\" />\n <rect x=\"14\" y=\"5\" width=\"4\" height=\"14\" rx=\"1\" />\n </Glyph>\n);\nexport const VolumeGlyph = ({ muted, ...p }: GlyphProps & { muted?: boolean }) => (\n <Glyph {...p}>\n <path d=\"M11 5 6 9H3v6h3l5 4V5Z\" />\n {muted ? <path d=\"m22 9-6 6m0-6 6 6\" /> : <path d=\"M15.5 8.5a5 5 0 0 1 0 7M18.5 5.5a9 9 0 0 1 0 13\" />}\n </Glyph>\n);\nexport const FullscreenGlyph = ({ exit, ...p }: GlyphProps & { exit?: boolean }) => (\n <Glyph {...p}>\n {exit ? <path d=\"M9 4v5H4m11-5v5h5M9 20v-5H4m11 5v-5h5\" /> : <path d=\"M4 9V4h5m6 0h5v5M4 15v5h5m11-5v5h-5\" />}\n </Glyph>\n);\nexport const CaptionsGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <rect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"2\" />\n <path d=\"M10 10.5a2 2 0 1 0 0 3M17 10.5a2 2 0 1 0 0 3\" />\n </Glyph>\n);\nexport const PipGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <rect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"2\" />\n <rect x=\"12\" y=\"12\" width=\"6\" height=\"4\" rx=\"1\" />\n </Glyph>\n);\nexport const SearchGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <circle cx=\"11\" cy=\"11\" r=\"7\" />\n <path d=\"m20 20-3.5-3.5\" />\n </Glyph>\n);\nexport const CloseGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <path d=\"M18 6 6 18M6 6l12 12\" />\n </Glyph>\n);\nexport const ChevronGlyph = ({ direction = \"down\", ...p }: GlyphProps & { direction?: \"left\" | \"right\" | \"up\" | \"down\" }) => (\n <Glyph {...p}>\n <path d={{ left: \"m15 6-6 6 6 6\", right: \"m9 6 6 6-6 6\", up: \"m6 15 6-6 6 6\", down: \"m6 9 6 6 6-6\" }[direction]} />\n </Glyph>\n);\nexport const CheckGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <path d=\"M20 6 9 17l-5-5\" />\n </Glyph>\n);\nexport const PlusGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <path d=\"M12 5v14M5 12h14\" />\n </Glyph>\n);\nexport const CalendarGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <rect x=\"3\" y=\"5\" width=\"18\" height=\"16\" rx=\"2\" />\n <path d=\"M3 10h18M8 3v4M16 3v4\" />\n </Glyph>\n);\nexport const UploadGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <path d=\"M12 16V4m0 0L7 9m5-5 5 5\" />\n <path d=\"M4 16v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2\" />\n </Glyph>\n);\nexport const FileGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <path d=\"M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8l-5-5Z\" />\n <path d=\"M14 3v5h5\" />\n </Glyph>\n);\nexport const CameraGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <path d=\"M4 8h3l2-3h6l2 3h3a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1Z\" />\n <circle cx=\"12\" cy=\"13.5\" r=\"3.5\" />\n </Glyph>\n);\nexport const FlipGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <path d=\"M4 12a8 8 0 0 1 14-5.3M20 12a8 8 0 0 1-14 5.3\" />\n <path d=\"M18 3v4h-4M6 21v-4h4\" />\n </Glyph>\n);\nexport const RetryGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <path d=\"M4 12a8 8 0 1 0 2.3-5.7L4 8.5\" />\n <path d=\"M4 4v4.5h4.5\" />\n </Glyph>\n);\nexport const SortGlyph = ({ direction, ...p }: GlyphProps & { direction?: \"ascending\" | \"descending\" }) => (\n <Glyph {...p}>\n {direction === \"ascending\" ? <path d=\"m7 14 5-5 5 5\" /> : direction === \"descending\" ? <path d=\"m7 10 5 5 5-5\" /> : <path d=\"m8 9 4-4 4 4M8 15l4 4 4-4\" />}\n </Glyph>\n);\nexport const ArrowGlyph = ({ direction = \"right\", ...p }: GlyphProps & { direction?: \"left\" | \"right\" }) => (\n <Glyph {...p}>\n <path d={direction === \"left\" ? \"M19 12H5m0 0 6-6m-6 6 6 6\" : \"M5 12h14m0 0-6-6m6 6-6 6\"} />\n </Glyph>\n);\nexport const ExternalGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <path d=\"M14 4h6v6M20 4l-9 9\" />\n <path d=\"M18 14v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4\" />\n </Glyph>\n);\nexport const WarningGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <path d=\"M12 4 2.5 20h19L12 4Z\" />\n <path d=\"M12 10v4M12 17.2v.1\" />\n </Glyph>\n);\nexport const CopyGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <rect x=\"9\" y=\"9\" width=\"11\" height=\"11\" rx=\"2\" />\n <path d=\"M15 9V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h3\" />\n </Glyph>\n);\nexport const PencilGlyph = (p: GlyphProps) => (\n <Glyph {...p}>\n <path d=\"M4 20h4L19 9a2.8 2.8 0 0 0-4-4L4 16v4zM13.5 6.5l4 4\" />\n </Glyph>\n);\n"
296
+ "content": "// The small line glyphs the data and media primitives draw (play, volume, search, chevrons…): decorative, 24-unit\n// box, `currentColor`, sized by the caller's class. Shared by the entries that need them; never exported on its own —\n// a product draws its own icons with @krizaka/icons.\nimport type * as React from \"react\";\n\ntype GlyphProps = { className?: string };\n\nfunction Glyph({ className = \"h-4 w-4\", fill, children }: Readonly<GlyphProps & { fill?: boolean; children: React.ReactNode }>) {\n return (\n <svg\n viewBox=\"0 0 24 24\"\n className={className}\n fill={fill ? \"currentColor\" : \"none\"}\n stroke={fill ? \"none\" : \"currentColor\"}\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden\n focusable=\"false\"\n >\n {children}\n </svg>\n );\n}\n\nexport const PlayGlyph = (p: Readonly<GlyphProps>) => (\n <Glyph {...p} fill>\n <path d=\"M8 5.5v13a1 1 0 0 0 1.5.86l10.4-6.5a1 1 0 0 0 0-1.72L9.5 4.64A1 1 0 0 0 8 5.5Z\" />\n </Glyph>\n);\nexport const PauseGlyph = (p: Readonly<GlyphProps>) => (\n <Glyph {...p} fill>\n <rect x=\"6\" y=\"5\" width=\"4\" height=\"14\" rx=\"1\" />\n <rect x=\"14\" y=\"5\" width=\"4\" height=\"14\" rx=\"1\" />\n </Glyph>\n);\nexport const VolumeGlyph = ({ muted, ...p }: Readonly<GlyphProps & { muted?: boolean }>) => (\n <Glyph {...p}>\n <path d=\"M11 5 6 9H3v6h3l5 4V5Z\" />\n {muted ? <path d=\"m22 9-6 6m0-6 6 6\" /> : <path d=\"M15.5 8.5a5 5 0 0 1 0 7M18.5 5.5a9 9 0 0 1 0 13\" />}\n </Glyph>\n);\nexport const FullscreenGlyph = ({ exit, ...p }: Readonly<GlyphProps & { exit?: boolean }>) => (\n <Glyph {...p}>\n {exit ? <path d=\"M9 4v5H4m11-5v5h5M9 20v-5H4m11 5v-5h5\" /> : <path d=\"M4 9V4h5m6 0h5v5M4 15v5h5m11-5v5h-5\" />}\n </Glyph>\n);\nexport const CaptionsGlyph = (p: Readonly<GlyphProps>) => (\n <Glyph {...p}>\n <rect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"2\" />\n <path d=\"M10 10.5a2 2 0 1 0 0 3M17 10.5a2 2 0 1 0 0 3\" />\n </Glyph>\n);\nexport const PipGlyph = (p: Readonly<GlyphProps>) => (\n <Glyph {...p}>\n <rect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"2\" />\n <rect x=\"12\" y=\"12\" width=\"6\" height=\"4\" rx=\"1\" />\n </Glyph>\n);\nexport const SearchGlyph = (p: Readonly<GlyphProps>) => (\n <Glyph {...p}>\n <circle cx=\"11\" cy=\"11\" r=\"7\" />\n <path d=\"m20 20-3.5-3.5\" />\n </Glyph>\n);\nexport const CloseGlyph = (p: Readonly<GlyphProps>) => (\n <Glyph {...p}>\n <path d=\"M18 6 6 18M6 6l12 12\" />\n </Glyph>\n);\nexport const ChevronGlyph = ({ direction = \"down\", ...p }: Readonly<GlyphProps & { direction?: \"left\" | \"right\" | \"up\" | \"down\" }>) => (\n <Glyph {...p}>\n <path d={{ left: \"m15 6-6 6 6 6\", right: \"m9 6 6 6-6 6\", up: \"m6 15 6-6 6 6\", down: \"m6 9 6 6 6-6\" }[direction]} />\n </Glyph>\n);\nexport const CheckGlyph = (p: Readonly<GlyphProps>) => (\n <Glyph {...p}>\n <path d=\"M20 6 9 17l-5-5\" />\n </Glyph>\n);\nexport const PlusGlyph = (p: Readonly<GlyphProps>) => (\n <Glyph {...p}>\n <path d=\"M12 5v14M5 12h14\" />\n </Glyph>\n);\nexport const CalendarGlyph = (p: Readonly<GlyphProps>) => (\n <Glyph {...p}>\n <rect x=\"3\" y=\"5\" width=\"18\" height=\"16\" rx=\"2\" />\n <path d=\"M3 10h18M8 3v4M16 3v4\" />\n </Glyph>\n);\nexport const UploadGlyph = (p: Readonly<GlyphProps>) => (\n <Glyph {...p}>\n <path d=\"M12 16V4m0 0L7 9m5-5 5 5\" />\n <path d=\"M4 16v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2\" />\n </Glyph>\n);\nexport const FileGlyph = (p: Readonly<GlyphProps>) => (\n <Glyph {...p}>\n <path d=\"M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8l-5-5Z\" />\n <path d=\"M14 3v5h5\" />\n </Glyph>\n);\nexport const CameraGlyph = (p: Readonly<GlyphProps>) => (\n <Glyph {...p}>\n <path d=\"M4 8h3l2-3h6l2 3h3a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1Z\" />\n <circle cx=\"12\" cy=\"13.5\" r=\"3.5\" />\n </Glyph>\n);\nexport const FlipGlyph = (p: Readonly<GlyphProps>) => (\n <Glyph {...p}>\n <path d=\"M4 12a8 8 0 0 1 14-5.3M20 12a8 8 0 0 1-14 5.3\" />\n <path d=\"M18 3v4h-4M6 21v-4h4\" />\n </Glyph>\n);\nexport const RetryGlyph = (p: Readonly<GlyphProps>) => (\n <Glyph {...p}>\n <path d=\"M4 12a8 8 0 1 0 2.3-5.7L4 8.5\" />\n <path d=\"M4 4v4.5h4.5\" />\n </Glyph>\n);\nexport const SortGlyph = ({ direction, ...p }: Readonly<GlyphProps & { direction?: \"ascending\" | \"descending\" }>) => (\n <Glyph {...p}>\n {direction === \"ascending\" ? <path d=\"m7 14 5-5 5 5\" /> : direction === \"descending\" ? <path d=\"m7 10 5 5 5-5\" /> : <path d=\"m8 9 4-4 4 4M8 15l4 4 4-4\" />}\n </Glyph>\n);\nexport const ArrowGlyph = ({ direction = \"right\", ...p }: Readonly<GlyphProps & { direction?: \"left\" | \"right\" }>) => (\n <Glyph {...p}>\n <path d={direction === \"left\" ? \"M19 12H5m0 0 6-6m-6 6 6 6\" : \"M5 12h14m0 0-6-6m6 6-6 6\"} />\n </Glyph>\n);\nexport const ExternalGlyph = (p: Readonly<GlyphProps>) => (\n <Glyph {...p}>\n <path d=\"M14 4h6v6M20 4l-9 9\" />\n <path d=\"M18 14v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4\" />\n </Glyph>\n);\nexport const WarningGlyph = (p: Readonly<GlyphProps>) => (\n <Glyph {...p}>\n <path d=\"M12 4 2.5 20h19L12 4Z\" />\n <path d=\"M12 10v4M12 17.2v.1\" />\n </Glyph>\n);\nexport const CopyGlyph = (p: Readonly<GlyphProps>) => (\n <Glyph {...p}>\n <rect x=\"9\" y=\"9\" width=\"11\" height=\"11\" rx=\"2\" />\n <path d=\"M15 9V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h3\" />\n </Glyph>\n);\nexport const PencilGlyph = (p: Readonly<GlyphProps>) => (\n <Glyph {...p}>\n <path d=\"M4 20h4L19 9a2.8 2.8 0 0 0-4-4L4 16v4zM13.5 6.5l4 4\" />\n </Glyph>\n);\n"
297
297
  },
298
298
  {
299
299
  "path": "media.ts",