@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
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/avatar/avatar.tsx","../src/avatar/default-avatar.ts"],"sourcesContent":["// Client: Radix tracks the image's loading state and shows the fallback until it has loaded (or when it fails).\nimport { Avatar as AvatarPrimitive } from \"radix-ui\";\nimport * as React from \"react\";\nimport { tv, type VariantProps } from \"tailwind-variants\";\n\nimport { type DefaultAvatar, defaultAvatarUrl } from \"./default-avatar\";\n\nconst avatar = tv({\n slots: {\n root: \"relative inline-flex shrink-0 overflow-hidden rounded-full bg-surface-3 align-middle\",\n image: \"h-full w-full object-cover\",\n fallback: \"flex h-full w-full items-center justify-center font-semibold uppercase text-fg-secondary\",\n group: \"flex items-center -space-x-2 [&>*]:ring-2 [&>*]:ring-surface-0\",\n },\n variants: {\n size: {\n xs: { root: \"h-5 w-5 text-[9px]\" },\n sm: { root: \"h-8 w-8 text-xs\" },\n md: { root: \"h-10 w-10 text-sm\" },\n lg: { root: \"h-14 w-14 text-base\" },\n xl: { root: \"h-20 w-20 text-lg\" },\n },\n },\n defaultVariants: { size: \"md\" },\n});\n\nexport type AvatarSize = NonNullable<VariantProps<typeof avatar>[\"size\"]>;\n\nexport type AvatarProps = Omit<React.ComponentProps<\"span\">, \"children\"> & {\n /** The image's URL; `null` or nothing shows the `fallback`. */\n src?: string | null;\n /** The image's text alternative (the person's name); empty when a visible name sits next to the avatar. */\n alt?: string;\n /** Shown while the image loads, when it fails or when there is none: initials, an icon. */\n fallback?: React.ReactNode;\n /** The picture to show instead when `src` is missing or fails to load (an image URL). The `fallback` still covers its own loading. */\n fallbackSrc?: string;\n /**\n * The Krizaka default picture when the person has no photo (or it fails): their brand's gradient and a silhouette,\n * one of six tones from `seed` — `defaultAvatar={{ brand: \"sovkora\", seed: user.id }}`. `fallbackSrc` wins over it.\n */\n defaultAvatar?: DefaultAvatar;\n /**\n * xs · sm · md · lg · xl.\n * @default \"md\"\n */\n size?: AvatarSize;\n};\n\nexport function AvatarRoot({ src, alt = \"\", fallback, fallbackSrc, defaultAvatar, size, className, ...props }: AvatarProps) {\n const s = avatar({ size });\n const [failed, setFailed] = React.useState<string | null>(null);\n // 512 px for the big sizes, 256 for the others: sharp on a 2x screen either way.\n const backup = fallbackSrc ?? (defaultAvatar ? defaultAvatarUrl(defaultAvatar, { size: size === \"xl\" || size === \"lg\" ? 512 : 256 }) : undefined);\n const shown = src && failed !== src ? src : backup;\n return (\n <AvatarPrimitive.Root data-size={size ?? \"md\"} className={s.root({ className })} {...props}>\n {shown && (\n <AvatarPrimitive.Image\n src={shown}\n alt={alt}\n className={s.image()}\n onLoadingStatusChange={(status) => {\n if (status === \"error\" && shown === src) setFailed(src);\n }}\n />\n )}\n <AvatarPrimitive.Fallback delayMs={shown ? 300 : 0} className={s.fallback()}>\n {fallback}\n </AvatarPrimitive.Fallback>\n </AvatarPrimitive.Root>\n );\n}\n\nexport type AvatarGroupProps = React.ComponentProps<\"div\"> & {\n /** How many avatars are shown; the rest becomes a `+n` avatar. */\n max?: number;\n /** The size of the `+n` avatar (match the avatars of the group). */\n size?: AvatarSize;\n};\n\n/** Overlapping avatars; past `max`, a `+n` avatar counts the rest. */\nexport function AvatarGroup({ max, size, className, children, ...props }: AvatarGroupProps) {\n const items = React.Children.toArray(children);\n const shown = max === undefined ? items : items.slice(0, max);\n const rest = items.length - shown.length;\n return (\n <div className={avatar().group({ className })} {...props}>\n {shown}\n {rest > 0 && <AvatarRoot size={size} fallback={`+${rest}`} />}\n </div>\n );\n}\n\n/** `Avatar` (an image with a fallback) and `Avatar.Group`. */\nexport const Avatar = Object.assign(AvatarRoot, { Group: AvatarGroup });\n","// The default profile pictures of the Krizaka family: what a product shows when a person has no photo.\n// They are generated from this file (tools/export-brand.mjs renders them to SVG and WebP and uploads them to Bunny,\n// `people/defaults/v1/<brand>/…`), so the pictures and the URLs that name them cannot drift apart.\n\n/** A brand of the default avatars. */\nexport type DefaultAvatarBrand = \"krizaka\" | \"sovkora\" | \"verikora\" | \"folioviv\";\n/**\n * What the picture is of. `person`: a neutral silhouette. `plain`: the brand's gradient alone, ready for initials.\n * `folder`, `organisation` and `shop` are the pictures of a thing that is not a person (a folder or collection, a company, a shop):\n * a glyph on the gradient, never a silhouette. The central sets of these kinds are in the Krizaka org JSON (`defaults`, `@krizaka/org`).\n */\nexport type DefaultAvatarKind = \"person\" | \"plain\" | \"folder\" | \"organisation\" | \"shop\";\n/** The kinds of entity that have a set of default pictures of their own (`plain` is a style of `person`). */\nexport type DefaultAvatarEntityKind = \"person\" | \"folder\" | \"organisation\" | \"shop\";\nexport type DefaultAvatarSize = 256 | 512;\n\nexport const DEFAULT_AVATAR_BRANDS: readonly DefaultAvatarBrand[] = [\"krizaka\", \"sovkora\", \"verikora\", \"folioviv\"];\n/** The two styles of the legacy brand sets (`people/defaults/v1/<brand>`); the kinds of the central sets are `DEFAULT_AVATAR_ENTITY_KINDS`. */\nexport const DEFAULT_AVATAR_KINDS: readonly DefaultAvatarKind[] = [\"person\", \"plain\"];\nexport const DEFAULT_AVATAR_ENTITY_KINDS: readonly DefaultAvatarEntityKind[] = [\"person\", \"folder\", \"organisation\", \"shop\"];\nexport const DEFAULT_AVATAR_SIZES: readonly DefaultAvatarSize[] = [256, 512];\n/** How many tones each brand has: a person always gets the same one from their seed, so a list is not one colour. */\n// @fixed: the number of tone files drawn per brand in the published set (`people/defaults/v1/<brand>/person-<1..6>`)\nexport const DEFAULT_AVATAR_TONES = 6;\n\n/** Where the set lives. `v1` is the set's version: a changed picture is a new version folder, never an overwrite. */\nexport const DEFAULT_AVATAR_BASE = \"https://krizaka-assets.b-cdn.net/people/defaults/v1\";\n\nexport interface DefaultAvatar {\n /** The brand of the product showing the avatar: its gradient, its hues. */\n brand: DefaultAvatarBrand;\n /** Any stable text or number of the person (their id): the same seed gives the same tone everywhere. */\n seed?: string | number;\n /** Force a tone, 1 to 6, instead of deriving it from `seed`. */\n tone?: number;\n /**\n * `person` (default): a silhouette. `plain`: the gradient alone. `folder`, `organisation`, `shop`: that thing's glyph, drawn here\n * (a data URL, no request) — a folder is never given a person.\n * @default \"person\"\n */\n kind?: DefaultAvatarKind;\n /**\n * The family's central set (`listDefaults(\"person\")` of `@krizaka/org`): when given with a `seed`, the avatar is the set's picture for that seed —\n * the same person has the same picture in every product — instead of the brand's silhouette. An empty set, or no seed, draws the silhouette.\n */\n set?: readonly DefaultAvatarPicture[];\n}\n\n/** The mark gradient of each brand (BRAND.md, `$extensions[\"com.krizaka\"].mark`) as [hue, saturation %, lightness %] and the hue spread of its tones. */\nconst BRANDS: Record<DefaultAvatarBrand, { from: [number, number, number]; to: [number, number, number]; spread: number }> = {\n krizaka: { from: [217, 92, 53], to: [217, 92, 68], spread: 14 },\n sovkora: { from: [26, 90.5, 37.1], to: [26, 92, 45], spread: 7 },\n verikora: { from: [232, 50, 55], to: [248, 50, 58], spread: 10 },\n folioviv: { from: [140, 48, 34], to: [22, 60, 46], spread: 10 },\n};\n\n/** White on top of a stop must stay visible: a stop is darkened until the contrast reaches this (WCAG 1.4.11, non-text). */\nconst MIN_CONTRAST = 3.2;\nconst OFFSETS = [0, -1, 1, -2, 2, 3] as const;\n\nfunction hslToHex([h, s, l]: [number, number, number]): string {\n const sat = s / 100;\n const light = l / 100;\n const k = (n: number) => (n + (((h % 360) + 360) % 360) / 30) % 12;\n const a = sat * Math.min(light, 1 - light);\n const channel = (n: number) => Math.round(255 * (light - a * Math.max(-1, Math.min(k(n) - 3, 9 - k(n), 1))));\n return `#${[0, 8, 4].map((n) => channel(n).toString(16).padStart(2, \"0\")).join(\"\")}`;\n}\n\nconst channelLuminance = (v: number) => (v <= 0.03928 ? v / 12.92 : ((v + 0.055) / 1.055) ** 2.4);\nconst whiteContrast = (hex: string) => {\n const [r, g, b] = [1, 3, 5].map((i) => channelLuminance(Number.parseInt(hex.slice(i, i + 2), 16) / 255));\n return 1.05 / (0.2126 * r! + 0.7152 * g! + 0.0722 * b! + 0.05);\n};\n/** The stop, darkened one point of lightness at a time until white reads on it. */\nfunction readable([h, s, l]: [number, number, number]): string {\n let hex = hslToHex([h, s, l]);\n for (let light = l; whiteContrast(hex) < MIN_CONTRAST && light > 10; light -= 1) hex = hslToHex([h, s, light]);\n return hex;\n}\n\n/** The two stops (hex) of tone `tone` (1 to 6) of a brand. */\nexport function defaultAvatarTone(brand: DefaultAvatarBrand, tone: number): readonly [string, string] {\n const b = BRANDS[brand];\n const o = OFFSETS[(clampTone(tone) - 1) % OFFSETS.length] * b.spread;\n return [readable([b.from[0] + o, b.from[1], b.from[2]]), readable([b.to[0] + o, b.to[1], b.to[2]])];\n}\n\nconst clampTone = (tone: number) => Math.min(DEFAULT_AVATAR_TONES, Math.max(1, Math.round(tone)));\n\n/** 32-bit FNV-1a of a seed: the rule of the family's default pictures (`@krizaka/org`'s `seedHash` is the same function). */\nexport function defaultAvatarSeedHash(seed: string | number): number {\n let h = 0x811c9dc5;\n for (const ch of String(seed)) {\n h ^= ch.codePointAt(0)!;\n h = Math.imul(h, 0x01000193) >>> 0;\n }\n return h;\n}\n\n/** 1 to 6 from a seed (FNV-1a): stable across renders, devices and products. */\nexport function defaultAvatarToneOf(seed: string | number | undefined): number {\n if (seed === undefined) return 1;\n return (defaultAvatarSeedHash(seed) % DEFAULT_AVATAR_TONES) + 1;\n}\n\n/**\n * One picture of the family's central set, as `@krizaka/org` lists it (`listDefaults(\"person\")` items fit as they are): the sizes it is served in.\n * `disabled` pictures are never picked.\n */\nexport interface DefaultAvatarPicture {\n id: string;\n disabled?: boolean;\n urls: { webp: Readonly<Record<string, string>> };\n}\n\n/** The picture a seed gets from a set: `set[fnv1a(seed) mod n]` among the pictures not disabled, in the set's order — the same rule as `@krizaka/org`'s `defaultFor`. */\nexport function pickDefaultPicture<T extends DefaultAvatarPicture>(set: readonly T[], seed: string | number): T | undefined {\n const usable = set.filter((picture) => !picture.disabled);\n return usable[defaultAvatarSeedHash(seed) % usable.length];\n}\n\nconst resolveTone = (a: DefaultAvatar) => (a.tone === undefined ? defaultAvatarToneOf(a.seed) : clampTone(a.tone));\n\n/** The file name of a picture in the set: `person-3` + 256 → `person-3-256.webp`; `svg` has no size. */\nexport function defaultAvatarFile(kind: DefaultAvatarKind, tone: number, size: DefaultAvatarSize | \"svg\"): string {\n return size === \"svg\" ? `${kind}-${tone}.svg` : `${kind}-${tone}-${size}.webp`;\n}\n\n/** Linear on purpose: a `/\\/+$/` regex backtracks quadratically on a long run of slashes. */\nfunction trimTrailingSlashes(value: string): string {\n let end = value.length;\n while (end > 0 && value[end - 1] === \"/\") end--;\n return value.slice(0, end);\n}\n\n/**\n * The URL of a default avatar: `defaultAvatarUrl({ brand: \"sovkora\", seed: user.id })`.\n * @param size 256 for lists, 512 for a profile; `\"svg\"` for the vector.\n * @param base Another host or version of the set (a self-hosted copy); the default is the Krizaka CDN.\n */\nexport function defaultAvatarUrl(avatar: DefaultAvatar, { size = 256, base = DEFAULT_AVATAR_BASE }: { size?: DefaultAvatarSize | \"svg\"; base?: string } = {}): string {\n if (isGlyphKind(avatar.kind)) return defaultAvatarDataUrl(avatar);\n if (avatar.set && avatar.seed !== undefined) {\n // The size asked, as the set serves it (256 and 512; the vector has none, so it stays the brand's silhouette).\n const picked = pickDefaultPicture(avatar.set, avatar.seed)?.urls.webp[size];\n if (picked) return picked;\n }\n return `${trimTrailingSlashes(base)}/${avatar.brand}/${defaultAvatarFile(avatar.kind ?? \"person\", resolveTone(avatar), size)}`;\n}\n\nconst GLYPHS: Record<\"folder\" | \"organisation\" | \"shop\", (from: string) => string> = {\n folder: () => `<path d=\"M96 176a28 28 0 0 1 28-28h92l40 44h132a28 28 0 0 1 28 28v152a28 28 0 0 1-28 28H124a28 28 0 0 1-28-28z\" fill=\"#fff\" fill-opacity=\".92\"/>`,\n organisation: (from) =>\n `<rect x=\"136\" y=\"104\" width=\"240\" height=\"304\" rx=\"16\" fill=\"#fff\" fill-opacity=\".92\"/>${[160, 226, 292]\n .flatMap((y) => [168, 236, 304].map((x) => `<rect x=\"${x}\" y=\"${y}\" width=\"40\" height=\"40\" rx=\"6\" fill=\"${from}\"/>`))\n .join(\"\")}<rect x=\"232\" y=\"352\" width=\"48\" height=\"56\" rx=\"6\" fill=\"${from}\"/>`,\n shop: (from) =>\n `<path d=\"M112 132h288l24 84a56 56 0 0 1-112 0 56 56 0 0 1-112 0 56 56 0 0 1-112 0z\" fill=\"#fff\" fill-opacity=\".92\"/><rect x=\"136\" y=\"292\" width=\"240\" height=\"116\" rx=\"12\" fill=\"#fff\" fill-opacity=\".92\"/><rect x=\"226\" y=\"326\" width=\"60\" height=\"82\" rx=\"8\" fill=\"${from}\"/><rect x=\"156\" y=\"318\" width=\"48\" height=\"44\" rx=\"6\" fill=\"${from}\"/><rect x=\"308\" y=\"318\" width=\"48\" height=\"44\" rx=\"6\" fill=\"${from}\"/>`,\n};\n\ntype GlyphKind = keyof typeof GLYPHS;\nconst isGlyphKind = (kind: DefaultAvatarKind | undefined): kind is GlyphKind => kind === \"folder\" || kind === \"organisation\" || kind === \"shop\";\n\n/** The picture as a `data:` URL: nothing to fetch, so a folder, an organisation or a shop always has its picture (offline, in a test, before the CDN answers). */\nexport function defaultAvatarDataUrl(avatar: DefaultAvatar): string {\n return `data:image/svg+xml,${encodeURIComponent(defaultAvatarSvg(avatar))}`;\n}\n\n/** The SVG source of a default avatar, 512 × 512 and square (the Avatar clips it round). */\nexport function defaultAvatarSvg(avatar: DefaultAvatar): string {\n const [from, to] = defaultAvatarTone(avatar.brand, resolveTone(avatar));\n const kind = avatar.kind ?? \"person\";\n let person = \"\";\n if (isGlyphKind(kind)) person = GLYPHS[kind](from);\n else if (kind === \"person\") person = `<circle cx=\"256\" cy=\"200\" r=\"86\" fill=\"#fff\" fill-opacity=\".92\"/><path d=\"M84 512c0-108 78-182 172-182s172 74 172 182z\" fill=\"#fff\" fill-opacity=\".92\"/>`;\n return `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\" width=\"512\" height=\"512\"><defs><linearGradient id=\"g\" x1=\"0\" y1=\"0\" x2=\"1\" y2=\"1\"><stop offset=\"0\" stop-color=\"${from}\"/><stop offset=\"1\" stop-color=\"${to}\"/></linearGradient><radialGradient id=\"l\" cx=\".28\" cy=\".18\" r=\".85\"><stop offset=\"0\" stop-color=\"#fff\" stop-opacity=\".24\"/><stop offset=\"1\" stop-color=\"#fff\" stop-opacity=\"0\"/></radialGradient></defs><rect width=\"512\" height=\"512\" fill=\"url(#g)\"/><rect width=\"512\" height=\"512\" fill=\"url(#l)\"/>${person}</svg>`;\n}\n"],"mappings":";;;AACA,SAAS,UAAU,uBAAuB;AAC1C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":["avatar"]}
1
+ {"version":3,"sources":["../src/avatar/avatar.tsx","../src/avatar/default-avatar.ts"],"sourcesContent":["// Client: Radix tracks the image's loading state and shows the fallback until it has loaded (or when it fails).\nimport { Avatar as AvatarPrimitive } from \"radix-ui\";\nimport * as React from \"react\";\nimport { tv, type VariantProps } from \"tailwind-variants\";\n\nimport { type DefaultAvatar, defaultAvatarUrl } from \"./default-avatar\";\n\nconst avatar = tv({\n slots: {\n root: \"relative inline-flex shrink-0 overflow-hidden rounded-full bg-surface-3 align-middle\",\n image: \"h-full w-full object-cover\",\n fallback: \"flex h-full w-full items-center justify-center font-semibold uppercase text-fg-secondary\",\n group: \"flex items-center -space-x-2 [&>*]:ring-2 [&>*]:ring-surface-0\",\n },\n variants: {\n size: {\n xs: { root: \"h-5 w-5 text-[9px]\" },\n sm: { root: \"h-8 w-8 text-xs\" },\n md: { root: \"h-10 w-10 text-sm\" },\n lg: { root: \"h-14 w-14 text-base\" },\n xl: { root: \"h-20 w-20 text-lg\" },\n },\n },\n defaultVariants: { size: \"md\" },\n});\n\nexport type AvatarSize = NonNullable<VariantProps<typeof avatar>[\"size\"]>;\n\nexport type AvatarProps = Omit<React.ComponentProps<\"span\">, \"children\"> & {\n /** The image's URL; `null` or nothing shows the `fallback`. */\n src?: string | null;\n /** The image's text alternative (the person's name); empty when a visible name sits next to the avatar. */\n alt?: string;\n /** Shown while the image loads, when it fails or when there is none: initials, an icon. */\n fallback?: React.ReactNode;\n /** The picture to show instead when `src` is missing or fails to load (an image URL). The `fallback` still covers its own loading. */\n fallbackSrc?: string;\n /**\n * The Krizaka default picture when the person has no photo (or it fails): their brand's gradient and a silhouette,\n * one of six tones from `seed` — `defaultAvatar={{ brand: \"sovkora\", seed: user.id }}`. `fallbackSrc` wins over it.\n */\n defaultAvatar?: DefaultAvatar;\n /**\n * xs · sm · md · lg · xl.\n * @default \"md\"\n */\n size?: AvatarSize;\n};\n\nexport function AvatarRoot({ src, alt = \"\", fallback, fallbackSrc, defaultAvatar, size, className, ...props }: Readonly<AvatarProps>) {\n const s = avatar({ size });\n const [failed, setFailed] = React.useState<string | null>(null);\n // 512 px for the big sizes, 256 for the others: sharp on a 2x screen either way.\n const backup = fallbackSrc ?? (defaultAvatar ? defaultAvatarUrl(defaultAvatar, { size: size === \"xl\" || size === \"lg\" ? 512 : 256 }) : undefined);\n const shown = src && failed !== src ? src : backup;\n return (\n <AvatarPrimitive.Root data-size={size ?? \"md\"} className={s.root({ className })} {...props}>\n {shown && (\n <AvatarPrimitive.Image\n src={shown}\n alt={alt}\n className={s.image()}\n onLoadingStatusChange={(status) => {\n if (status === \"error\" && shown === src) setFailed(src);\n }}\n />\n )}\n <AvatarPrimitive.Fallback delayMs={shown ? 300 : 0} className={s.fallback()}>\n {fallback}\n </AvatarPrimitive.Fallback>\n </AvatarPrimitive.Root>\n );\n}\n\nexport type AvatarGroupProps = React.ComponentProps<\"div\"> & {\n /** How many avatars are shown; the rest becomes a `+n` avatar. */\n max?: number;\n /** The size of the `+n` avatar (match the avatars of the group). */\n size?: AvatarSize;\n};\n\n/** Overlapping avatars; past `max`, a `+n` avatar counts the rest. */\nexport function AvatarGroup({ max, size, className, children, ...props }: Readonly<AvatarGroupProps>) {\n const items = React.Children.toArray(children);\n const shown = max === undefined ? items : items.slice(0, max);\n const rest = items.length - shown.length;\n return (\n <div className={avatar().group({ className })} {...props}>\n {shown}\n {rest > 0 && <AvatarRoot size={size} fallback={`+${rest}`} />}\n </div>\n );\n}\n\n/** `Avatar` (an image with a fallback) and `Avatar.Group`. */\nexport const Avatar = Object.assign(AvatarRoot, { Group: AvatarGroup });\n","// The default profile pictures of the Krizaka family: what a product shows when a person has no photo.\n// They are generated from this file (tools/export-brand.mjs renders them to SVG and WebP and uploads them to Bunny,\n// `people/defaults/v1/<brand>/…`), so the pictures and the URLs that name them cannot drift apart.\n\n/** A brand of the default avatars. */\nexport type DefaultAvatarBrand = \"krizaka\" | \"sovkora\" | \"verikora\" | \"folioviv\";\n/**\n * What the picture is of. `person`: a neutral silhouette. `plain`: the brand's gradient alone, ready for initials.\n * `folder`, `organisation` and `shop` are the pictures of a thing that is not a person (a folder or collection, a company, a shop):\n * a glyph on the gradient, never a silhouette. The central sets of these kinds are in the Krizaka org JSON (`defaults`, `@krizaka/org`).\n */\nexport type DefaultAvatarKind = \"person\" | \"plain\" | \"folder\" | \"organisation\" | \"shop\";\n/** The kinds of entity that have a set of default pictures of their own (`plain` is a style of `person`). */\nexport type DefaultAvatarEntityKind = \"person\" | \"folder\" | \"organisation\" | \"shop\";\nexport type DefaultAvatarSize = 256 | 512;\n\nexport const DEFAULT_AVATAR_BRANDS: readonly DefaultAvatarBrand[] = [\"krizaka\", \"sovkora\", \"verikora\", \"folioviv\"];\n/** The two styles of the legacy brand sets (`people/defaults/v1/<brand>`); the kinds of the central sets are `DEFAULT_AVATAR_ENTITY_KINDS`. */\nexport const DEFAULT_AVATAR_KINDS: readonly DefaultAvatarKind[] = [\"person\", \"plain\"];\nexport const DEFAULT_AVATAR_ENTITY_KINDS: readonly DefaultAvatarEntityKind[] = [\"person\", \"folder\", \"organisation\", \"shop\"];\nexport const DEFAULT_AVATAR_SIZES: readonly DefaultAvatarSize[] = [256, 512];\n/** How many tones each brand has: a person always gets the same one from their seed, so a list is not one colour. */\n// @fixed: the number of tone files drawn per brand in the published set (`people/defaults/v1/<brand>/person-<1..6>`)\nexport const DEFAULT_AVATAR_TONES = 6;\n\n/** Where the set lives. `v1` is the set's version: a changed picture is a new version folder, never an overwrite. */\nexport const DEFAULT_AVATAR_BASE = \"https://krizaka-assets.b-cdn.net/people/defaults/v1\";\n\nexport interface DefaultAvatar {\n /** The brand of the product showing the avatar: its gradient, its hues. */\n brand: DefaultAvatarBrand;\n /** Any stable text or number of the person (their id): the same seed gives the same tone everywhere. */\n seed?: string | number;\n /** Force a tone, 1 to 6, instead of deriving it from `seed`. */\n tone?: number;\n /**\n * `person` (default): a silhouette. `plain`: the gradient alone. `folder`, `organisation`, `shop`: that thing's glyph, drawn here\n * (a data URL, no request) — a folder is never given a person.\n * @default \"person\"\n */\n kind?: DefaultAvatarKind;\n /**\n * The family's central set (`listDefaults(\"person\")` of `@krizaka/org`): when given with a `seed`, the avatar is the set's picture for that seed —\n * the same person has the same picture in every product — instead of the brand's silhouette. An empty set, or no seed, draws the silhouette.\n */\n set?: readonly DefaultAvatarPicture[];\n}\n\n/** The mark gradient of each brand (BRAND.md, `$extensions[\"com.krizaka\"].mark`) as [hue, saturation %, lightness %] and the hue spread of its tones. */\nconst BRANDS: Record<DefaultAvatarBrand, { from: [number, number, number]; to: [number, number, number]; spread: number }> = {\n krizaka: { from: [217, 92, 53], to: [217, 92, 68], spread: 14 },\n sovkora: { from: [26, 90.5, 37.1], to: [26, 92, 45], spread: 7 },\n verikora: { from: [232, 50, 55], to: [248, 50, 58], spread: 10 },\n folioviv: { from: [140, 48, 34], to: [22, 60, 46], spread: 10 },\n};\n\n/** White on top of a stop must stay visible: a stop is darkened until the contrast reaches this (WCAG 1.4.11, non-text). */\nconst MIN_CONTRAST = 3.2;\nconst OFFSETS = [0, -1, 1, -2, 2, 3] as const;\n\nfunction hslToHex([h, s, l]: [number, number, number]): string {\n const sat = s / 100;\n const light = l / 100;\n const k = (n: number) => (n + (((h % 360) + 360) % 360) / 30) % 12;\n const a = sat * Math.min(light, 1 - light);\n const channel = (n: number) => Math.round(255 * (light - a * Math.max(-1, Math.min(k(n) - 3, 9 - k(n), 1))));\n return `#${[0, 8, 4].map((n) => channel(n).toString(16).padStart(2, \"0\")).join(\"\")}`;\n}\n\nconst channelLuminance = (v: number) => (v <= 0.03928 ? v / 12.92 : ((v + 0.055) / 1.055) ** 2.4);\nconst whiteContrast = (hex: string) => {\n const [r, g, b] = [1, 3, 5].map((i) => channelLuminance(Number.parseInt(hex.slice(i, i + 2), 16) / 255));\n return 1.05 / (0.2126 * r! + 0.7152 * g! + 0.0722 * b! + 0.05);\n};\n/** The stop, darkened one point of lightness at a time until white reads on it. */\nfunction readable([h, s, l]: [number, number, number]): string {\n let hex = hslToHex([h, s, l]);\n for (let light = l; whiteContrast(hex) < MIN_CONTRAST && light > 10; light -= 1) hex = hslToHex([h, s, light]);\n return hex;\n}\n\n/** The two stops (hex) of tone `tone` (1 to 6) of a brand. */\nexport function defaultAvatarTone(brand: DefaultAvatarBrand, tone: number): readonly [string, string] {\n const b = BRANDS[brand];\n const o = OFFSETS[(clampTone(tone) - 1) % OFFSETS.length] * b.spread;\n return [readable([b.from[0] + o, b.from[1], b.from[2]]), readable([b.to[0] + o, b.to[1], b.to[2]])];\n}\n\nconst clampTone = (tone: number) => Math.min(DEFAULT_AVATAR_TONES, Math.max(1, Math.round(tone)));\n\n/** 32-bit FNV-1a of a seed: the rule of the family's default pictures (`@krizaka/org`'s `seedHash` is the same function). */\nexport function defaultAvatarSeedHash(seed: string | number): number {\n let h = 0x811c9dc5;\n for (const ch of String(seed)) {\n h ^= ch.codePointAt(0)!;\n h = Math.imul(h, 0x01000193) >>> 0;\n }\n return h;\n}\n\n/** 1 to 6 from a seed (FNV-1a): stable across renders, devices and products. */\nexport function defaultAvatarToneOf(seed: string | number | undefined): number {\n if (seed === undefined) return 1;\n return (defaultAvatarSeedHash(seed) % DEFAULT_AVATAR_TONES) + 1;\n}\n\n/**\n * One picture of the family's central set, as `@krizaka/org` lists it (`listDefaults(\"person\")` items fit as they are): the sizes it is served in.\n * `disabled` pictures are never picked.\n */\nexport interface DefaultAvatarPicture {\n id: string;\n disabled?: boolean;\n urls: { webp: Readonly<Record<string, string>> };\n}\n\n/** The picture a seed gets from a set: `set[fnv1a(seed) mod n]` among the pictures not disabled, in the set's order — the same rule as `@krizaka/org`'s `defaultFor`. */\nexport function pickDefaultPicture<T extends DefaultAvatarPicture>(set: readonly T[], seed: string | number): T | undefined {\n const usable = set.filter((picture) => !picture.disabled);\n return usable[defaultAvatarSeedHash(seed) % usable.length];\n}\n\nconst resolveTone = (a: DefaultAvatar) => (a.tone === undefined ? defaultAvatarToneOf(a.seed) : clampTone(a.tone));\n\n/** The file name of a picture in the set: `person-3` + 256 → `person-3-256.webp`; `svg` has no size. */\nexport function defaultAvatarFile(kind: DefaultAvatarKind, tone: number, size: DefaultAvatarSize | \"svg\"): string {\n return size === \"svg\" ? `${kind}-${tone}.svg` : `${kind}-${tone}-${size}.webp`;\n}\n\n/** Linear on purpose: a `/\\/+$/` regex backtracks quadratically on a long run of slashes. */\nfunction trimTrailingSlashes(value: string): string {\n let end = value.length;\n while (end > 0 && value[end - 1] === \"/\") end--;\n return value.slice(0, end);\n}\n\n/**\n * The URL of a default avatar: `defaultAvatarUrl({ brand: \"sovkora\", seed: user.id })`.\n * @param size 256 for lists, 512 for a profile; `\"svg\"` for the vector.\n * @param base Another host or version of the set (a self-hosted copy); the default is the Krizaka CDN.\n */\nexport function defaultAvatarUrl(avatar: DefaultAvatar, { size = 256, base = DEFAULT_AVATAR_BASE }: { size?: DefaultAvatarSize | \"svg\"; base?: string } = {}): string {\n if (isGlyphKind(avatar.kind)) return defaultAvatarDataUrl(avatar);\n if (avatar.set && avatar.seed !== undefined) {\n // The size asked, as the set serves it (256 and 512; the vector has none, so it stays the brand's silhouette).\n const picked = pickDefaultPicture(avatar.set, avatar.seed)?.urls.webp[size];\n if (picked) return picked;\n }\n return `${trimTrailingSlashes(base)}/${avatar.brand}/${defaultAvatarFile(avatar.kind ?? \"person\", resolveTone(avatar), size)}`;\n}\n\nconst GLYPHS: Record<\"folder\" | \"organisation\" | \"shop\", (from: string) => string> = {\n folder: () => `<path d=\"M96 176a28 28 0 0 1 28-28h92l40 44h132a28 28 0 0 1 28 28v152a28 28 0 0 1-28 28H124a28 28 0 0 1-28-28z\" fill=\"#fff\" fill-opacity=\".92\"/>`,\n organisation: (from) =>\n `<rect x=\"136\" y=\"104\" width=\"240\" height=\"304\" rx=\"16\" fill=\"#fff\" fill-opacity=\".92\"/>${[160, 226, 292]\n .flatMap((y) => [168, 236, 304].map((x) => `<rect x=\"${x}\" y=\"${y}\" width=\"40\" height=\"40\" rx=\"6\" fill=\"${from}\"/>`))\n .join(\"\")}<rect x=\"232\" y=\"352\" width=\"48\" height=\"56\" rx=\"6\" fill=\"${from}\"/>`,\n shop: (from) =>\n `<path d=\"M112 132h288l24 84a56 56 0 0 1-112 0 56 56 0 0 1-112 0 56 56 0 0 1-112 0z\" fill=\"#fff\" fill-opacity=\".92\"/><rect x=\"136\" y=\"292\" width=\"240\" height=\"116\" rx=\"12\" fill=\"#fff\" fill-opacity=\".92\"/><rect x=\"226\" y=\"326\" width=\"60\" height=\"82\" rx=\"8\" fill=\"${from}\"/><rect x=\"156\" y=\"318\" width=\"48\" height=\"44\" rx=\"6\" fill=\"${from}\"/><rect x=\"308\" y=\"318\" width=\"48\" height=\"44\" rx=\"6\" fill=\"${from}\"/>`,\n};\n\ntype GlyphKind = keyof typeof GLYPHS;\nconst isGlyphKind = (kind: DefaultAvatarKind | undefined): kind is GlyphKind => kind === \"folder\" || kind === \"organisation\" || kind === \"shop\";\n\n/** The picture as a `data:` URL: nothing to fetch, so a folder, an organisation or a shop always has its picture (offline, in a test, before the CDN answers). */\nexport function defaultAvatarDataUrl(avatar: DefaultAvatar): string {\n return `data:image/svg+xml,${encodeURIComponent(defaultAvatarSvg(avatar))}`;\n}\n\n/** The SVG source of a default avatar, 512 × 512 and square (the Avatar clips it round). */\nexport function defaultAvatarSvg(avatar: DefaultAvatar): string {\n const [from, to] = defaultAvatarTone(avatar.brand, resolveTone(avatar));\n const kind = avatar.kind ?? \"person\";\n let person = \"\";\n if (isGlyphKind(kind)) person = GLYPHS[kind](from);\n else if (kind === \"person\") person = `<circle cx=\"256\" cy=\"200\" r=\"86\" fill=\"#fff\" fill-opacity=\".92\"/><path d=\"M84 512c0-108 78-182 172-182s172 74 172 182z\" fill=\"#fff\" fill-opacity=\".92\"/>`;\n return `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\" width=\"512\" height=\"512\"><defs><linearGradient id=\"g\" x1=\"0\" y1=\"0\" x2=\"1\" y2=\"1\"><stop offset=\"0\" stop-color=\"${from}\"/><stop offset=\"1\" stop-color=\"${to}\"/></linearGradient><radialGradient id=\"l\" cx=\".28\" cy=\".18\" r=\".85\"><stop offset=\"0\" stop-color=\"#fff\" stop-opacity=\".24\"/><stop offset=\"1\" stop-color=\"#fff\" stop-opacity=\"0\"/></radialGradient></defs><rect width=\"512\" height=\"512\" fill=\"url(#g)\"/><rect width=\"512\" height=\"512\" fill=\"url(#l)\"/>${person}</svg>`;\n}\n"],"mappings":";;;AACA,SAAS,UAAU,uBAAuB;AAC1C,YAAY,WAAW;AACvB,SAAS,UAA6B;;;ACa/B,IAAM,wBAAuD,CAAC,WAAW,WAAW,YAAY,UAAU;AAE1G,IAAM,uBAAqD,CAAC,UAAU,OAAO;AAC7E,IAAM,8BAAkE,CAAC,UAAU,UAAU,gBAAgB,MAAM;AACnH,IAAM,uBAAqD,CAAC,KAAK,GAAG;AAGpE,IAAM,uBAAuB;AAG7B,IAAM,sBAAsB;AAuBnC,IAAM,SAAuH;AAAA,EAC3H,SAAS,EAAE,MAAM,CAAC,KAAK,IAAI,EAAE,GAAG,IAAI,CAAC,KAAK,IAAI,EAAE,GAAG,QAAQ,GAAG;AAAA,EAC9D,SAAS,EAAE,MAAM,CAAC,IAAI,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,IAAI,EAAE,GAAG,QAAQ,EAAE;AAAA,EAC/D,UAAU,EAAE,MAAM,CAAC,KAAK,IAAI,EAAE,GAAG,IAAI,CAAC,KAAK,IAAI,EAAE,GAAG,QAAQ,GAAG;AAAA,EAC/D,UAAU,EAAE,MAAM,CAAC,KAAK,IAAI,EAAE,GAAG,IAAI,CAAC,IAAI,IAAI,EAAE,GAAG,QAAQ,GAAG;AAChE;AAGA,IAAM,eAAe;AACrB,IAAM,UAAU,CAAC,GAAG,IAAI,GAAG,IAAI,GAAG,CAAC;AAEnC,SAAS,SAAS,CAAC,GAAG,GAAG,CAAC,GAAqC;AAC7D,QAAM,MAAM,I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AAQ;AAC7C,QAAM,QAAQ,QAAQ,SAAY,QAAQ,MAAM,MAAM,GAAG,GAAG;AAC5D,QAAM,OAAO,MAAM,SAAS,MAAM;AAClC,SACE,qBAAC,SAAI,WAAW,OAAO,EAAE,MAAM,EAAE,UAAU,CAAC,GAAI,GAAG,OAChD;AAAA;AAAA,IACA,OAAO,KAAK,oBAAC,cAAW,MAAY,UAAU,IAAI,IAAI,IAAI;AAAA,KAC7D;AAEJ;AAGO,IAAM,SAAS,OAAO,OAAO,YAAY,EAAE,OAAO,YAAY,CAAC;","names":["avatar"]}
package/dist/badge.d.ts CHANGED
@@ -68,7 +68,7 @@ type BadgeProps = React.ComponentProps<"span"> & BadgeVariants & {
68
68
  /** A small dot before the text, in the tone's colour (pulsing with `pulse`). */
69
69
  dot?: boolean;
70
70
  };
71
- declare function Badge({ tone, size, pulse, dot, className, children, ...props }: BadgeProps): React.JSX.Element;
71
+ declare function Badge({ tone, size, pulse, dot, className, children, ...props }: Readonly<BadgeProps>): React.JSX.Element;
72
72
 
73
73
  export { Badge, badgeVariants };
74
74
  export type { BadgeProps, BadgeVariants };
package/dist/badge.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Badge,
3
3
  badgeVariants
4
- } from "./chunk-5PFCELGW.js";
4
+ } from "./chunk-DIOAQOR5.js";
5
5
  import "./chunk-2VNYHG4E.js";
6
6
  export {
7
7
  Badge,
@@ -36,7 +36,7 @@ type BirdPlateProps = Omit<React.HTMLAttributes<HTMLElement>, "title"> & {
36
36
  animated?: boolean;
37
37
  };
38
38
  /** A naturalist's plate of the flock: numbered figures, a leader line from each bird to its caption, its promise. */
39
- declare function BirdPlate({ title, subtitle, figures, start, figureLabel, separator, layout, animated, className, ...props }: BirdPlateProps): React.JSX.Element;
39
+ declare function BirdPlate({ title, subtitle, figures, start, figureLabel, separator, layout, animated, className, ...props }: Readonly<BirdPlateProps>): React.JSX.Element;
40
40
 
41
41
  export { BirdPlate };
42
42
  export type { BirdPlateProps, PlateFigure };
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  Mascot
4
- } from "./chunk-P7AFIKWG.js";
4
+ } from "./chunk-DVC4YQI2.js";
5
5
  import {
6
6
  cn
7
- } from "./chunk-NSLXEDIS.js";
7
+ } from "./chunk-HHBTM4AU.js";
8
8
 
9
9
  // src/bird-plate/bird-plate.tsx
10
10
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/bird-plate/bird-plate.tsx"],"sourcesContent":["// Client (each bird has an id per instance). The bird plate of the Cahier (ADR-004, blocks.css): the flock drawn as a\n// naturalist's plate — each bird a figure, numbered, a hairline leading from the drawing to its caption, and the\n// caption is the bird's promise as the film says it. The birds are the `Mascot` renders, never redrawn; one bird per\n// subject (the brand reference, §5).\nimport type * as React from \"react\";\n\nimport { cn } from \"../cn\";\nimport { type MascotBird, type MascotMood, type MascotTone } from \"../mascots/geometry\";\nimport { Mascot } from \"../mascots/mascot\";\n\nexport interface PlateFigure {\n /** The bird. */\n bird: MascotBird;\n /** Its mood. @default \"welcome\" */\n mood?: MascotMood;\n /** `own` — the bird's signature colours (the film's); `brand` — the host's accent. @default \"own\" */\n tone?: MascotTone;\n /** Its name in the caption: `the falcon`. */\n label: React.ReactNode;\n /** Its promise, word for word as the film says it: `keeps watch: security comes first.` */\n promise?: React.ReactNode;\n}\n\nexport type BirdPlateProps = Omit<React.HTMLAttributes<HTMLElement>, \"title\"> & {\n /** The plate's title: `Plate I · The flock`. */\n title?: React.ReactNode;\n /** One line under the title. */\n subtitle?: React.ReactNode;\n /** The figures, in order: each is numbered `fig. n`. */\n figures: readonly PlateFigure[];\n /** The first figure's number (a page that continues a plate). @default 1 */\n start?: number;\n /** The word before the number. @default \"fig.\" */\n figureLabel?: string;\n /** The separator between the figure number and its label. @default \" · \" */\n separator?: string;\n /**\n * `grid` — the figures side by side (two to five); `single` — one large figure, its caption beside it.\n * @default \"grid\"\n */\n layout?: \"grid\" | \"single\";\n /** The birds' idle loops (they pause off screen and stop under reduced motion). @default false */\n animated?: boolean;\n};\n\n/** A naturalist's plate of the flock: numbered figures, a leader line from each bird to its caption, its promise. */\nexport function BirdPlate({ title, subtitle, figures, start = 1, figureLabel = \"fig.\", separator = \" · \", layout = \"grid\", animated = false, className, ...props }: BirdPlateProps) {\n const single = layout === \"single\";\n // A figure keys on its bird and on how many figures before it show that bird: unique even when a bird repeats.\n const seen = new Map<string, number>();\n const keys = figures.map((f) => {\n const n = seen.get(f.bird) ?? 0;\n seen.set(f.bird, n + 1);\n return `${f.bird}-${n}`;\n });\n return (\n <figure className={cn(\"kz-plate\", className)} data-layout={single ? \"single\" : undefined} {...props}>\n {(title || subtitle) && (\n <figcaption className=\"kz-plate-head\">\n {title && <span className=\"kz-plate-title\">{title}</span>}\n {subtitle && <span className=\"kz-plate-sub\">{subtitle}</span>}\n </figcaption>\n )}\n <ol className=\"kz-plate-figures\" start={start}>\n {figures.map((f, i) => (\n <li key={keys[i]} className=\"kz-plate-figure\">\n <Mascot bird={f.bird} mood={f.mood ?? \"welcome\"} tone={f.tone ?? \"own\"} size={single ? 168 : 112} animated={animated} className=\"kz-plate-bird\" aria-hidden />\n <p className=\"kz-plate-caption\">\n <b>\n {figureLabel} {start + i}{separator}{f.label}\n </b>\n {f.promise && <span> {f.promise}</span>}\n </p>\n </li>\n ))}\n </ol>\n </figure>\n );\n}\n"],"mappings":";;;;;;;;;AA0DQ,SACY,KADZ;AAZD,SAAS,UAAU,EAAE,OAAO,UAAU,SAAS,QAAQ,GAAG,cAAc,QAAQ,YAAY,UAAO,SAAS,QAAQ,WAAW,OAAO,WAAW,GAAG,MAAM,GAAmB;AAClL,QAAM,SAAS,WAAW;AAE1B,QAAM,OAAO,oBAAI,IAAoB;AACrC,QAAM,OAAO,QAAQ,IAAI,CAAC,MAAM;AAC9B,UAAM,IAAI,KAAK,IAAI,EAAE,IAAI,KAAK;AAC9B,SAAK,IAAI,EAAE,MAAM,IAAI,CAAC;AACtB,WAAO,GAAG,EAAE,IAAI,IAAI,CAAC;AAAA,EACvB,CAAC;AACD,SACE,qBAAC,YAAO,WAAW,GAAG,YAAY,SAAS,GAAG,eAAa,SAAS,WAAW,QAAY,GAAG,OAC1F;AAAA,cAAS,aACT,qBAAC,gBAAW,WAAU,iBACnB;AAAA,eAAS,oBAAC,UAAK,WAAU,kBAAkB,iBAAM;AAAA,MACjD,YAAY,oBAAC,UAAK,WAAU,gBAAgB,oBAAS;AAAA,OACxD;AAAA,IAEF,oBAAC,QAAG,WAAU,oBAAmB,OAC9B,kBAAQ,IAAI,CAAC,GAAG,MACf,qBAAC,QAAiB,WAAU,mBAC1B;AAAA,0BAAC,UAAO,MAAM,EAAE,MAAM,MAAM,EAAE,QAAQ,WAAW,MAAM,EAAE,QAAQ,OAAO,MAAM,SAAS,MAAM,KAAK,UAAoB,WAAU,iBAAgB,eAAW,MAAC;AAAA,MAC5J,qBAAC,OAAE,WAAU,oBACX;AAAA,6BAAC,OACE;AAAA;AAAA,UAAY;AAAA,UAAE,QAAQ;AAAA,UAAG;AAAA,UAAW,EAAE;AAAA,WACzC;AAAA,QACC,EAAE,WAAW,qBAAC,UAAK;AAAA;AAAA,UAAE,EAAE;AAAA,WAAQ;AAAA,SAClC;AAAA,SAPO,KAAK,CAAC,CAQf,CACD,GACH;AAAA,KACF;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../src/bird-plate/bird-plate.tsx"],"sourcesContent":["// Client (each bird has an id per instance). The bird plate of the Cahier (ADR-004, blocks.css): the flock drawn as a\n// naturalist's plate — each bird a figure, numbered, a hairline leading from the drawing to its caption, and the\n// caption is the bird's promise as the film says it. The birds are the `Mascot` renders, never redrawn; one bird per\n// subject (the brand reference, §5).\nimport type * as React from \"react\";\n\nimport { cn } from \"../cn\";\nimport { type MascotBird, type MascotMood, type MascotTone } from \"../mascots/geometry\";\nimport { Mascot } from \"../mascots/mascot\";\n\nexport interface PlateFigure {\n /** The bird. */\n bird: MascotBird;\n /** Its mood. @default \"welcome\" */\n mood?: MascotMood;\n /** `own` — the bird's signature colours (the film's); `brand` — the host's accent. @default \"own\" */\n tone?: MascotTone;\n /** Its name in the caption: `the falcon`. */\n label: React.ReactNode;\n /** Its promise, word for word as the film says it: `keeps watch: security comes first.` */\n promise?: React.ReactNode;\n}\n\nexport type BirdPlateProps = Omit<React.HTMLAttributes<HTMLElement>, \"title\"> & {\n /** The plate's title: `Plate I · The flock`. */\n title?: React.ReactNode;\n /** One line under the title. */\n subtitle?: React.ReactNode;\n /** The figures, in order: each is numbered `fig. n`. */\n figures: readonly PlateFigure[];\n /** The first figure's number (a page that continues a plate). @default 1 */\n start?: number;\n /** The word before the number. @default \"fig.\" */\n figureLabel?: string;\n /** The separator between the figure number and its label. @default \" · \" */\n separator?: string;\n /**\n * `grid` — the figures side by side (two to five); `single` — one large figure, its caption beside it.\n * @default \"grid\"\n */\n layout?: \"grid\" | \"single\";\n /** The birds' idle loops (they pause off screen and stop under reduced motion). @default false */\n animated?: boolean;\n};\n\n/** A naturalist's plate of the flock: numbered figures, a leader line from each bird to its caption, its promise. */\nexport function BirdPlate({ title, subtitle, figures, start = 1, figureLabel = \"fig.\", separator = \" · \", layout = \"grid\", animated = false, className, ...props }: Readonly<BirdPlateProps>) {\n const single = layout === \"single\";\n // A figure keys on its bird and on how many figures before it show that bird: unique even when a bird repeats.\n const seen = new Map<string, number>();\n const keys = figures.map((f) => {\n const n = seen.get(f.bird) ?? 0;\n seen.set(f.bird, n + 1);\n return `${f.bird}-${n}`;\n });\n return (\n <figure className={cn(\"kz-plate\", className)} data-layout={single ? \"single\" : undefined} {...props}>\n {(title || subtitle) && (\n <figcaption className=\"kz-plate-head\">\n {title && <span className=\"kz-plate-title\">{title}</span>}\n {subtitle && <span className=\"kz-plate-sub\">{subtitle}</span>}\n </figcaption>\n )}\n <ol className=\"kz-plate-figures\" start={start}>\n {figures.map((f, i) => (\n <li key={keys[i]} className=\"kz-plate-figure\">\n <Mascot bird={f.bird} mood={f.mood ?? \"welcome\"} tone={f.tone ?? \"own\"} size={single ? 168 : 112} animated={animated} className=\"kz-plate-bird\" aria-hidden />\n <p className=\"kz-plate-caption\">\n <b>\n {figureLabel} {start + i}{separator}{f.label}\n </b>\n {f.promise && <span> {f.promise}</span>}\n </p>\n </li>\n ))}\n </ol>\n </figure>\n );\n}\n"],"mappings":";;;;;;;;;AA0DQ,SACY,KADZ;AAZD,SAAS,UAAU,EAAE,OAAO,UAAU,SAAS,QAAQ,GAAG,cAAc,QAAQ,YAAY,UAAO,SAAS,QAAQ,WAAW,OAAO,WAAW,GAAG,MAAM,GAA6B;AAC5L,QAAM,SAAS,WAAW;AAE1B,QAAM,OAAO,oBAAI,IAAoB;AACrC,QAAM,OAAO,QAAQ,IAAI,CAAC,MAAM;AAC9B,UAAM,IAAI,KAAK,IAAI,EAAE,IAAI,KAAK;AAC9B,SAAK,IAAI,EAAE,MAAM,IAAI,CAAC;AACtB,WAAO,GAAG,EAAE,IAAI,IAAI,CAAC;AAAA,EACvB,CAAC;AACD,SACE,qBAAC,YAAO,WAAW,GAAG,YAAY,SAAS,GAAG,eAAa,SAAS,WAAW,QAAY,GAAG,OAC1F;AAAA,cAAS,aACT,qBAAC,gBAAW,WAAU,iBACnB;AAAA,eAAS,oBAAC,UAAK,WAAU,kBAAkB,iBAAM;AAAA,MACjD,YAAY,oBAAC,UAAK,WAAU,gBAAgB,oBAAS;AAAA,OACxD;AAAA,IAEF,oBAAC,QAAG,WAAU,oBAAmB,OAC9B,kBAAQ,IAAI,CAAC,GAAG,MACf,qBAAC,QAAiB,WAAU,mBAC1B;AAAA,0BAAC,UAAO,MAAM,EAAE,MAAM,MAAM,EAAE,QAAQ,WAAW,MAAM,EAAE,QAAQ,OAAO,MAAM,SAAS,MAAM,KAAK,UAAoB,WAAU,iBAAgB,eAAW,MAAC;AAAA,MAC5J,qBAAC,OAAE,WAAU,oBACX;AAAA,6BAAC,OACE;AAAA;AAAA,UAAY;AAAA,UAAE,QAAQ;AAAA,UAAG;AAAA,UAAW,EAAE;AAAA,WACzC;AAAA,QACC,EAAE,WAAW,qBAAC,UAAK;AAAA;AAAA,UAAE,EAAE;AAAA,WAAQ;AAAA,SAClC;AAAA,SAPO,KAAK,CAAC,CAQf,CACD,GACH;AAAA,KACF;AAEJ;","names":[]}
package/dist/button.d.ts CHANGED
@@ -111,7 +111,7 @@ type ButtonProps = React.ComponentProps<"button"> & ButtonVariants & {
111
111
  /** @deprecated Since 3.31 (krizaka-ui#393): does nothing — a button never moves under the pointer. Removed in 4.0. */
112
112
  magnetic?: boolean;
113
113
  };
114
- declare function Button({ asChild, loading, progress, status, announce, indicator, shimmer: _shimmer, magnetic: _magnetic, variant, size, shape, className, disabled, children, ...props }: ButtonProps): React.JSX.Element;
114
+ declare function Button({ asChild, loading, progress, status, announce, indicator, shimmer: _shimmer, magnetic: _magnetic, variant, size, shape, className, disabled, children, ...props }: Readonly<ButtonProps>): React.JSX.Element;
115
115
  type IconButtonProps = Omit<ButtonProps, "size"> & {
116
116
  /** The accessible name (and tooltip) of the button — required, passed translated. */
117
117
  label: string;
@@ -122,7 +122,7 @@ type IconButtonProps = Omit<ButtonProps, "size"> & {
122
122
  size?: ButtonProps["size"];
123
123
  };
124
124
  /** An icon-only button: `label` is required, it is its accessible name. Loading or with a status, the glyph takes the icon's place. */
125
- declare function IconButton({ label, size, children, ...props }: IconButtonProps): React.JSX.Element;
125
+ declare function IconButton({ label, size, children, ...props }: Readonly<IconButtonProps>): React.JSX.Element;
126
126
 
127
127
  export { Button, IconButton, buttonVariants };
128
128
  export type { ButtonProps, ButtonVariants, IconButtonProps };
package/dist/button.js CHANGED
@@ -3,10 +3,10 @@ import {
3
3
  Button,
4
4
  IconButton,
5
5
  buttonVariants
6
- } from "./chunk-EB45EVPJ.js";
7
- import "./chunk-43PTCDTL.js";
6
+ } from "./chunk-G5NROYGK.js";
7
+ import "./chunk-BVN7JFOP.js";
8
8
  import "./chunk-2VNYHG4E.js";
9
- import "./chunk-W675RFOA.js";
9
+ import "./chunk-ISC2QBXJ.js";
10
10
  export {
11
11
  Button,
12
12
  IconButton,
package/dist/captcha.d.ts CHANGED
@@ -59,7 +59,7 @@ type CaptchaProps = {
59
59
  * fires. Only when Cloudflare needs the visitor does a framed box appear, on the tokens (radius, border, theme).
60
60
  * If the check cannot run, an alert with a retry button replaces it. Pair it with `CaptchaDisclosure` under the submit.
61
61
  */
62
- declare function Captcha({ siteKey, onToken, locale, theme, labels, className }: CaptchaProps): React.JSX.Element | null;
62
+ declare function Captcha({ siteKey, onToken, locale, theme, labels, className }: Readonly<CaptchaProps>): React.JSX.Element | null;
63
63
  type CaptchaDisclosureProps = {
64
64
  /**
65
65
  * The language of the line: `"en"`, `"fr"`…
@@ -76,7 +76,7 @@ type CaptchaDisclosureProps = {
76
76
  className?: string;
77
77
  };
78
78
  /** « Protected by Cloudflare Turnstile · Privacy · Terms »: the line Cloudflare's terms ask for under the submit button. */
79
- declare function CaptchaDisclosure({ locale, labels, privacyHref, termsHref, className }: CaptchaDisclosureProps): React.JSX.Element;
79
+ declare function CaptchaDisclosure({ locale, labels, privacyHref, termsHref, className }: Readonly<CaptchaDisclosureProps>): React.JSX.Element;
80
80
 
81
81
  export { Captcha, CaptchaDisclosure, captchaMessages };
82
82
  export type { CaptchaDisclosureProps, CaptchaLabels, CaptchaLocale, CaptchaProps };
package/dist/captcha.js CHANGED
@@ -2,10 +2,10 @@
2
2
  import "./chunk-JXLDUDTD.js";
3
3
  import {
4
4
  Button
5
- } from "./chunk-V7W4RLRW.js";
5
+ } from "./chunk-HWIDTLLO.js";
6
6
  import "./chunk-D3T54RSL.js";
7
- import "./chunk-WEVYKZIF.js";
8
- import "./chunk-NSLXEDIS.js";
7
+ import "./chunk-EAXIDRMB.js";
8
+ import "./chunk-HHBTM4AU.js";
9
9
 
10
10
  // src/captcha/captcha.tsx
11
11
  import { useCallback, useEffect, useRef, useState } from "react";
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/captcha/captcha.tsx","../src/captcha/messages.ts","../src/captcha/turnstile.ts"],"sourcesContent":["// Client: loads the Cloudflare script and draws the widget in an effect.\nimport { useCallback, useEffect, useRef, useState } from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nimport { Button } from \"../button\";\nimport { type CaptchaLabels, labelsFor } from \"./messages\";\nimport { loadTurnstile, pageTheme, TURNSTILE_PRIVACY, TURNSTILE_TERMS } from \"./turnstile\";\n\nconst captcha = tv({\n slots: {\n root: \"w-full\",\n frame: \"overflow-hidden rounded-lg border border-border-default bg-surface-2 p-2\",\n error: \"flex flex-wrap items-center gap-3 rounded-lg border border-border-default bg-surface-2 p-3 text-sm text-fg-danger\",\n disclosure: \"text-xs text-fg-muted\",\n link: \"underline underline-offset-2 hover:text-fg-secondary focus-visible:rounded-sm focus-visible:outline-2 focus-visible:outline-offset-2\",\n },\n});\n\nexport type CaptchaProps = {\n /** The widget's public site key. Empty → nothing is rendered and no token is asked (local dev, tests). */\n siteKey: string;\n /** The token once the check passes; `null` when it expires, fails or the theme redraws the widget. */\n onToken: (token: string | null) => void;\n /**\n * The language of the widget and of the words: `\"en\"`, `\"fr\"`…\n * @default \"en\"\n */\n locale?: string;\n /**\n * `auto` follows the page (`html.light` / `data-theme`, redrawn when it flips).\n * @default \"auto\"\n */\n theme?: \"auto\" | \"light\" | \"dark\";\n /** Words to say otherwise; the rest comes from the locale. */\n labels?: Partial<CaptchaLabels>;\n /** Classes added to the root. */\n className?: string;\n};\n\n/**\n * The bot check of a public form, Cloudflare Turnstile that stays out of the way: managed mode with\n * `appearance: \"interaction-only\"`, so a normal visitor sees nothing — the check runs in the background and `onToken`\n * fires. Only when Cloudflare needs the visitor does a framed box appear, on the tokens (radius, border, theme).\n * If the check cannot run, an alert with a retry button replaces it. Pair it with `CaptchaDisclosure` under the submit.\n */\nexport function Captcha({ siteKey, onToken, locale = \"en\", theme = \"auto\", labels, className }: CaptchaProps) {\n const host = useRef<HTMLDivElement>(null);\n const widget = useRef<string | null>(null);\n const onTokenRef = useRef(onToken);\n useEffect(() => {\n onTokenRef.current = onToken;\n });\n const [interactive, setInteractive] = useState(false);\n const [failed, setFailed] = useState(false);\n const [attempt, setAttempt] = useState(0);\n const words = labelsFor(locale, labels);\n const { root, frame, error } = captcha();\n\n useEffect(() => {\n if (!siteKey || !host.current) return;\n const el = host.current;\n let cancelled = false;\n const fail = () => {\n onTokenRef.current(null);\n setInteractive(false);\n setFailed(true);\n };\n const mount = () => {\n loadTurnstile().then((api) => {\n if (cancelled) return;\n if (widget.current) api.remove(widget.current);\n widget.current = api.render(el, {\n sitekey: siteKey,\n appearance: \"interaction-only\",\n size: \"flexible\",\n theme: theme === \"auto\" ? pageTheme() : theme,\n language: locale,\n callback: (token: string) => {\n setFailed(false);\n onTokenRef.current(token);\n },\n \"expired-callback\": () => onTokenRef.current(null),\n \"before-interactive-callback\": () => setInteractive(true),\n \"after-interactive-callback\": () => setInteractive(false),\n \"error-callback\": fail,\n \"unsupported-callback\": fail,\n });\n }, fail);\n };\n setFailed(false);\n mount();\n const watcher = theme === \"auto\" ? new MutationObserver(() => { onTokenRef.current(null); mount(); }) : null;\n watcher?.observe(document.documentElement, { attributes: true, attributeFilter: [\"class\", \"data-theme\"] });\n return () => {\n cancelled = true;\n watcher?.disconnect();\n if (widget.current && window.turnstile) window.turnstile.remove(widget.current);\n widget.current = null;\n };\n }, [siteKey, locale, theme, attempt]);\n\n const retry = useCallback(() => setAttempt((n) => n + 1), []);\n\n if (!siteKey) return null;\n return (\n <div className={root({ className })} role=\"group\" aria-label={words.group} data-captcha={failed ? \"error\" : interactive ? \"interactive\" : \"idle\"}>\n {failed ? (\n <div role=\"alert\" className={error()}>\n <span>{words.error}</span>\n <Button type=\"button\" size=\"sm\" variant=\"secondary\" onClick={retry}>\n {words.retry}\n </Button>\n </div>\n ) : null}\n {/* Always mounted (Cloudflare draws into it); framed and visible only when a challenge needs the visitor. */}\n <div className={interactive && !failed ? frame() : undefined} hidden={failed} style={interactive ? undefined : { height: 0, overflow: \"hidden\" }}>\n <div ref={host} />\n </div>\n </div>\n );\n}\n\nexport type CaptchaDisclosureProps = {\n /**\n * The language of the line: `\"en\"`, `\"fr\"`…\n * @default \"en\"\n */\n locale?: string;\n /** Words to say otherwise; the rest comes from the locale. */\n labels?: Partial<CaptchaLabels>;\n /** The privacy link; Cloudflare's privacy policy by default. */\n privacyHref?: string;\n /** The terms link; Cloudflare's website terms by default. */\n termsHref?: string;\n /** Classes added to the root. */\n className?: string;\n};\n\n/** « Protected by Cloudflare Turnstile · Privacy · Terms »: the line Cloudflare's terms ask for under the submit button. */\nexport function CaptchaDisclosure({ locale = \"en\", labels, privacyHref = TURNSTILE_PRIVACY, termsHref = TURNSTILE_TERMS, className }: CaptchaDisclosureProps) {\n const words = labelsFor(locale, labels);\n const { disclosure, link } = captcha();\n return (\n <p className={disclosure({ className })}>\n {words.protectedBy} · <a className={link()} href={privacyHref} target=\"_blank\" rel=\"noopener noreferrer\">{words.privacy}</a> ·{\" \"}\n <a className={link()} href={termsHref} target=\"_blank\" rel=\"noopener noreferrer\">{words.terms}</a>\n </p>\n );\n}\n","/** The words of `Captcha` and `CaptchaDisclosure`, English and French. Pass `labels` to say them otherwise. */\nexport interface CaptchaLabels {\n /** The accessible name of the check (the group around the widget). */\n readonly group: string;\n /** Said when Cloudflare could not run the check. */\n readonly error: string;\n /** The retry button. */\n readonly retry: string;\n /** « Protected by Cloudflare Turnstile ». */\n readonly protectedBy: string;\n readonly privacy: string;\n readonly terms: string;\n}\n\nexport const captchaMessages = {\n en: {\n group: \"Security check\",\n error: \"The security check could not run. Check your connection and try again.\",\n retry: \"Try again\",\n protectedBy: \"Protected by Cloudflare Turnstile\",\n privacy: \"Privacy\",\n terms: \"Terms\",\n },\n fr: {\n group: \"Vérification de sécurité\",\n error: \"La vérification de sécurité n'a pas pu s'exécuter. Vérifiez votre connexion et réessayez.\",\n retry: \"Réessayer\",\n protectedBy: \"Protégé par Cloudflare Turnstile\",\n privacy: \"Confidentialité\",\n terms: \"Conditions\",\n },\n} as const satisfies Record<string, CaptchaLabels>;\n\nexport type CaptchaLocale = keyof typeof captchaMessages;\n\nexport const labelsFor = (locale: string | undefined, labels?: Partial<CaptchaLabels>): CaptchaLabels => ({\n ...captchaMessages[locale?.toLowerCase().startsWith(\"fr\") ? \"fr\" : \"en\"],\n ...labels,\n});\n","/** The Cloudflare Turnstile browser API, loaded once, on demand. */\nexport interface TurnstileApi {\n render(el: HTMLElement, options: Record<string, unknown>): string;\n remove(id: string): void;\n reset(id: string): void;\n}\ndeclare global {\n interface Window {\n turnstile?: TurnstileApi;\n }\n}\n\nexport const TURNSTILE_SCRIPT = \"https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit\";\nexport const TURNSTILE_PRIVACY = \"https://www.cloudflare.com/privacypolicy/\";\nexport const TURNSTILE_TERMS = \"https://www.cloudflare.com/website-terms/\";\n\nlet loading: Promise<TurnstileApi> | null = null;\n\nexport function loadTurnstile(): Promise<TurnstileApi> {\n if (window.turnstile) return Promise.resolve(window.turnstile);\n loading ??= new Promise<TurnstileApi>((resolve, reject) => {\n const s = document.createElement(\"script\");\n s.src = TURNSTILE_SCRIPT;\n s.async = true;\n s.onload = () => (window.turnstile ? resolve(window.turnstile) : reject(new Error(\"turnstile\")));\n s.onerror = () => {\n loading = null;\n reject(new Error(\"turnstile\"));\n };\n try {\n document.head.appendChild(s);\n } catch {\n loading = null;\n reject(new Error(\"turnstile\"));\n }\n });\n return loading;\n}\n\n/** The page's theme: `html.light` or `data-theme=\"light\"` is light, anything else dark. */\nexport function pageTheme(): \"light\" | \"dark\" {\n const root = document.documentElement;\n return root.classList.contains(\"light\") || root.dataset.theme === \"light\" ? \"light\" : \"dark\";\n}\n"],"mappings":";;;;;;;;;;AACA,SAAS,aAAa,WAAW,QAAQ,gBAAgB;AACzD,SAAS,UAAU;;;ACYZ,IAAM,kBAAkB;AAAA,EAC7B,IAAI;AAAA,IACF,OAAO;AAAA,IACP,OAAO;AAAA,IACP,OAA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AY,KAAK,IAAI,QAAQ;AACrC,SACE,qBAAC,OAAE,WAAW,WAAW,EAAE,UAAU,CAAC,GACnC;AAAA,UAAM;AAAA,IAAY;AAAA,IAAG,oBAAC,OAAE,WAAW,KAAK,GAAG,MAAM,aAAa,QAAO,UAAS,KAAI,uBAAuB,gBAAM,SAAQ;AAAA,IAAI;AAAA,IAAG;AAAA,IAC/H,oBAAC,OAAE,WAAW,KAAK,GAAG,MAAM,WAAW,QAAO,UAAS,KAAI,uBAAuB,gBAAM,OAAM;AAAA,KAChG;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../src/captcha/captcha.tsx","../src/captcha/messages.ts","../src/captcha/turnstile.ts"],"sourcesContent":["// Client: loads the Cloudflare script and draws the widget in an effect.\nimport { useCallback, useEffect, useRef, useState } from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nimport { Button } from \"../button\";\nimport { type CaptchaLabels, labelsFor } from \"./messages\";\nimport { loadTurnstile, pageTheme, TURNSTILE_PRIVACY, TURNSTILE_TERMS } from \"./turnstile\";\n\nconst captcha = tv({\n slots: {\n root: \"w-full\",\n frame: \"overflow-hidden rounded-lg border border-border-default bg-surface-2 p-2\",\n error: \"flex flex-wrap items-center gap-3 rounded-lg border border-border-default bg-surface-2 p-3 text-sm text-fg-danger\",\n disclosure: \"text-xs text-fg-muted\",\n link: \"underline underline-offset-2 hover:text-fg-secondary focus-visible:rounded-sm focus-visible:outline-2 focus-visible:outline-offset-2\",\n },\n});\n\nexport type CaptchaProps = {\n /** The widget's public site key. Empty → nothing is rendered and no token is asked (local dev, tests). */\n siteKey: string;\n /** The token once the check passes; `null` when it expires, fails or the theme redraws the widget. */\n onToken: (token: string | null) => void;\n /**\n * The language of the widget and of the words: `\"en\"`, `\"fr\"`…\n * @default \"en\"\n */\n locale?: string;\n /**\n * `auto` follows the page (`html.light` / `data-theme`, redrawn when it flips).\n * @default \"auto\"\n */\n theme?: \"auto\" | \"light\" | \"dark\";\n /** Words to say otherwise; the rest comes from the locale. */\n labels?: Partial<CaptchaLabels>;\n /** Classes added to the root. */\n className?: string;\n};\n\n/**\n * The bot check of a public form, Cloudflare Turnstile that stays out of the way: managed mode with\n * `appearance: \"interaction-only\"`, so a normal visitor sees nothing — the check runs in the background and `onToken`\n * fires. Only when Cloudflare needs the visitor does a framed box appear, on the tokens (radius, border, theme).\n * If the check cannot run, an alert with a retry button replaces it. Pair it with `CaptchaDisclosure` under the submit.\n */\nexport function Captcha({ siteKey, onToken, locale = \"en\", theme = \"auto\", labels, className }: Readonly<CaptchaProps>) {\n const host = useRef<HTMLDivElement>(null);\n const widget = useRef<string | null>(null);\n const onTokenRef = useRef(onToken);\n useEffect(() => {\n onTokenRef.current = onToken;\n });\n const [interactive, setInteractive] = useState(false);\n const [failed, setFailed] = useState(false);\n const [attempt, setAttempt] = useState(0);\n const words = labelsFor(locale, labels);\n const { root, frame, error } = captcha();\n\n useEffect(() => {\n if (!siteKey || !host.current) return;\n const el = host.current;\n let cancelled = false;\n const fail = () => {\n onTokenRef.current(null);\n setInteractive(false);\n setFailed(true);\n };\n const mount = () => {\n loadTurnstile().then((api) => {\n if (cancelled) return;\n if (widget.current) api.remove(widget.current);\n widget.current = api.render(el, {\n sitekey: siteKey,\n appearance: \"interaction-only\",\n size: \"flexible\",\n theme: theme === \"auto\" ? pageTheme() : theme,\n language: locale,\n callback: (token: string) => {\n setFailed(false);\n onTokenRef.current(token);\n },\n \"expired-callback\": () => onTokenRef.current(null),\n \"before-interactive-callback\": () => setInteractive(true),\n \"after-interactive-callback\": () => setInteractive(false),\n \"error-callback\": fail,\n \"unsupported-callback\": fail,\n });\n }, fail);\n };\n setFailed(false);\n mount();\n const watcher = theme === \"auto\" ? new MutationObserver(() => { onTokenRef.current(null); mount(); }) : null;\n watcher?.observe(document.documentElement, { attributes: true, attributeFilter: [\"class\", \"data-theme\"] });\n return () => {\n cancelled = true;\n watcher?.disconnect();\n if (widget.current && window.turnstile) window.turnstile.remove(widget.current);\n widget.current = null;\n };\n }, [siteKey, locale, theme, attempt]);\n\n const retry = useCallback(() => setAttempt((n) => n + 1), []);\n\n if (!siteKey) return null;\n return (\n <div className={root({ className })} role=\"group\" aria-label={words.group} data-captcha={failed ? \"error\" : interactive ? \"interactive\" : \"idle\"}>\n {failed ? (\n <div role=\"alert\" className={error()}>\n <span>{words.error}</span>\n <Button type=\"button\" size=\"sm\" variant=\"secondary\" onClick={retry}>\n {words.retry}\n </Button>\n </div>\n ) : null}\n {/* Always mounted (Cloudflare draws into it); framed and visible only when a challenge needs the visitor. */}\n <div className={interactive && !failed ? frame() : undefined} hidden={failed} style={interactive ? undefined : { height: 0, overflow: \"hidden\" }}>\n <div ref={host} />\n </div>\n </div>\n );\n}\n\nexport type CaptchaDisclosureProps = {\n /**\n * The language of the line: `\"en\"`, `\"fr\"`…\n * @default \"en\"\n */\n locale?: string;\n /** Words to say otherwise; the rest comes from the locale. */\n labels?: Partial<CaptchaLabels>;\n /** The privacy link; Cloudflare's privacy policy by default. */\n privacyHref?: string;\n /** The terms link; Cloudflare's website terms by default. */\n termsHref?: string;\n /** Classes added to the root. */\n className?: string;\n};\n\n/** « Protected by Cloudflare Turnstile · Privacy · Terms »: the line Cloudflare's terms ask for under the submit button. */\nexport function CaptchaDisclosure({ locale = \"en\", labels, privacyHref = TURNSTILE_PRIVACY, termsHref = TURNSTILE_TERMS, className }: Readonly<CaptchaDisclosureProps>) {\n const words = labelsFor(locale, labels);\n const { disclosure, link } = captcha();\n return (\n <p className={disclosure({ className })}>\n {words.protectedBy} · <a className={link()} href={privacyHref} target=\"_blank\" rel=\"noopener noreferrer\">{words.privacy}</a> ·{\" \"}\n <a className={link()} href={termsHref} target=\"_blank\" rel=\"noopener noreferrer\">{words.terms}</a>\n </p>\n );\n}\n","/** The words of `Captcha` and `CaptchaDisclosure`, English and French. Pass `labels` to say them otherwise. */\nexport interface CaptchaLabels {\n /** The accessible name of the check (the group around the widget). */\n readonly group: string;\n /** Said when Cloudflare could not run the check. */\n readonly error: string;\n /** The retry button. */\n readonly retry: string;\n /** « Protected by Cloudflare Turnstile ». */\n readonly protectedBy: string;\n readonly privacy: string;\n readonly terms: string;\n}\n\nexport const captchaMessages = {\n en: {\n group: \"Security check\",\n error: \"The security check could not run. Check your connection and try again.\",\n retry: \"Try again\",\n protectedBy: \"Protected by Cloudflare Turnstile\",\n privacy: \"Privacy\",\n terms: \"Terms\",\n },\n fr: {\n group: \"Vérification de sécurité\",\n error: \"La vérification de sécurité n'a pas pu s'exécuter. Vérifiez votre connexion et réessayez.\",\n retry: \"Réessayer\",\n protectedBy: \"Protégé par Cloudflare Turnstile\",\n privacy: \"Confidentialité\",\n terms: \"Conditions\",\n },\n} as const satisfies Record<string, CaptchaLabels>;\n\nexport type CaptchaLocale = keyof typeof captchaMessages;\n\nexport const labelsFor = (locale: string | undefined, labels?: Partial<CaptchaLabels>): CaptchaLabels => ({\n ...captchaMessages[locale?.toLowerCase().startsWith(\"fr\") ? \"fr\" : \"en\"],\n ...labels,\n});\n","/** The Cloudflare Turnstile browser API, loaded once, on demand. */\nexport interface TurnstileApi {\n render(el: HTMLElement, options: Record<string, unknown>): string;\n remove(id: string): void;\n reset(id: string): void;\n}\ndeclare global {\n interface Window {\n turnstile?: TurnstileApi;\n }\n}\n\nexport const TURNSTILE_SCRIPT = \"https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit\";\nexport const TURNSTILE_PRIVACY = \"https://www.cloudflare.com/privacypolicy/\";\nexport const TURNSTILE_TERMS = \"https://www.cloudflare.com/website-terms/\";\n\nlet loading: Promise<TurnstileApi> | null = null;\n\nexport function loadTurnstile(): Promise<TurnstileApi> {\n if (window.turnstile) return Promise.resolve(window.turnstile);\n loading ??= new Promise<TurnstileApi>((resolve, reject) => {\n const s = document.createElement(\"script\");\n s.src = TURNSTILE_SCRIPT;\n s.async = true;\n s.onload = () => (window.turnstile ? resolve(window.turnstile) : reject(new Error(\"turnstile\")));\n s.onerror = () => {\n loading = null;\n reject(new Error(\"turnstile\"));\n };\n try {\n document.head.appendChild(s);\n } catch {\n loading = null;\n reject(new Error(\"turnstile\"));\n }\n });\n return loading;\n}\n\n/** The page's theme: `html.light` or `data-theme=\"light\"` is light, anything else dark. */\nexport function pageTheme(): \"light\" | \"dark\" {\n const root = document.documentElement;\n return root.classList.contains(\"light\") || root.dataset.theme === \"light\" ? \"light\" : \"dark\";\n}\n"],"mappings":";;;;;;;;;;AACA,SAAS,aAAa,WAAW,QAAQ,gBAAgB;AACzD,SAAS,UAAU;;;ACYZ,IAAM,kBAAkB;AAAA,EAC7B,IAAI;AAAA,IACF,OAAO;AAAA,IACP,OAAO;AAAA,IACP,OAAO;AAAA,IACP,aAAa;AAAA,IACb,SAAS;AAAA,IACT,OAAO;AAAA,EACT;AAAA,EACA,IAAI;AAAA,IACF,OAAO;AAAA,IACP,OAAO;AAAA,IACP,OAAO;AAAA,IACP,aAAa;AAAA,IACb,SAAS;AAAA,IACT,OAAO;AAAA,EACT;AACF;AAIO,IAAM,YAAY,CAAC,QAA4B,YAAoD;AAAA,EACxG,GAAG,gBAAgB,QAAQ,YAAY,EAAE,WAAW,IAAI,IAAI,OAAO,IAAI;AAAA,EACvE,GAAG;AACL;;;AC1BO,IAAM,mBAAmB;AACzB,IAAM,oBAAoB;AAC1B,IAAM,kBAAkB;AAE/B,IAAI,UAAwC;AAErC,SAAS,gBAAuC;AACrD,MAAI,OAAO,UAAW,QAAO,QAAQ,QAAQ,OAAO,SAAS;AAC7D,cAAY,IAAI,QAAsB,CAAC,SAAS,WAAW;AACzD,UAAM,IAAI,SAAS,cAAc,QAAQ;AACzC,MAAE,MAAM;AACR,MAAE,QAAQ;AACV,MAAE,SAAS,MAAO,OAAO,YAAY,QAAQ,OAAO,SAAS,IAAI,OAAO,IAAI,MAAM,WAAW,CAAC;AAC9F,MAAE,UAAU,MAAM;AAChB,gBAAU;AACV,aAAO,IAAI,MAAM,WAAW,CAAC;AAAA,IAC/B;AACA,QAAI;AACF,eAAS,KAAK,YAAY,CAAC;AA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AK,SAAQ,aAAY,SAAS,OAC1D,gBAAM,OACT;AAAA,OACF,IACE;AAAA,IAEJ,oBAAC,SAAI,WAAW,eAAe,CAAC,SAAS,MAAM,IAAI,QAAW,QAAQ,QAAQ,OAAO,cAAc,SAAY,EAAE,QAAQ,GAAG,UAAU,SAAS,GAC7I,8BAAC,SAAI,KAAK,MAAM,GAClB;AAAA,KACF;AAEJ;AAmBO,SAAS,kBAAkB,EAAE,SAAS,MAAM,QAAQ,cAAc,mBAAmB,YAAY,iBAAiB,UAAU,GAAqC;AACtK,QAAM,QAAQ,UAAU,QAAQ,MAAM;AACtC,QAAM,EAAE,YAAY,KAAK,IAAI,QAAQ;AACrC,SACE,qBAAC,OAAE,WAAW,WAAW,EAAE,UAAU,CAAC,GACnC;AAAA,UAAM;AAAA,IAAY;AAAA,IAAG,oBAAC,OAAE,WAAW,KAAK,GAAG,MAAM,aAAa,QAAO,UAAS,KAAI,uBAAuB,gBAAM,SAAQ;AAAA,IAAI;AAAA,IAAG;AAAA,IAC/H,oBAAC,OAAE,WAAW,KAAK,GAAG,MAAM,WAAW,QAAO,UAAS,KAAI,uBAAuB,gBAAM,OAAM;AAAA,KAChG;AAEJ;","names":[]}
@@ -52,7 +52,7 @@ type CardGridProps = Omit<React.HTMLAttributes<HTMLElement>, "children"> & {
52
52
  hover?: CardHover;
53
53
  };
54
54
  /** A responsive grid of cards: equal rows, a staggered reveal. */
55
- declare function CardGrid({ children, min, fit, align, reveal, columns, light: _light, as: Tag, foundation, foundationPosition, foundationLabel, hover: _hover, className, style, ...props }: CardGridProps): React.JSX.Element;
55
+ declare function CardGrid({ children, min, fit, align, reveal, columns, light: _light, as: Tag, foundation, foundationPosition, foundationLabel, hover: _hover, className, style, ...props }: Readonly<CardGridProps>): React.JSX.Element;
56
56
 
57
57
  export { CardGrid };
58
58
  export type { CardGridProps };
package/dist/card-grid.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  cn
4
- } from "./chunk-NSLXEDIS.js";
4
+ } from "./chunk-HHBTM4AU.js";
5
5
 
6
6
  // src/card-grid/card-grid.tsx
7
7
  import * as React from "react";
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/card-grid/card-grid.tsx"],"sourcesContent":["// A responsive grid of cards (blocks.css): one column on a phone, the cells of a row share their height, each card rises\n// once as it enters the viewport — staggered by column. The hover is the cards' own quiet one (krizaka-ui#393).\nimport * as React from \"react\";\n\nimport { cn } from \"../cn\";\nimport type { CardHover } from \"../link-card/link-card\";\n\nconst STEP_MS = 70;\n\nexport type CardGridProps = Omit<React.HTMLAttributes<HTMLElement>, \"children\"> & {\n /** The cards: one cell each. */\n children: React.ReactNode;\n /**\n * The narrowest a column may be, in pixels: the grid fits as many columns as the width allows.\n * @default 300\n */\n min?: number;\n /**\n * `fill` keeps empty tracks (a lone card keeps its width); `fit` stretches the cards of a short row across the width.\n * @default \"fill\"\n */\n fit?: \"fill\" | \"fit\";\n /**\n * `stretch` gives the cells of a row one height; `start` lets each card keep its own (cards that open a panel).\n * @default \"stretch\"\n */\n align?: \"stretch\" | \"start\";\n /**\n * The cards rise once into place (`[data-reveal]`, MotionObserver), staggered by column. `false` on the first screen.\n * @default true\n */\n reveal?: boolean;\n /**\n * The columns the stagger counts (the delay restarts on every row).\n * @default 3\n */\n columns?: number;\n /** @deprecated Since 3.31 (krizaka-ui#393): does nothing — no light follows the pointer. Removed in 4.0. */\n light?: boolean;\n /** `ul` when the cards are a list (each cell an `li`). */\n as?: \"div\" | \"ul\" | \"ol\";\n /**\n * A foundation: one wide card that the cards of the grid stand on (an engine, a platform, a shared service). It spans\n * the full width beside the grid, and a hairline joins it to a frame around the cards — \"everything inside runs on it\".\n * The frame takes the hue of `className` (a `data-hue` or a brand class on the grid sets it for the whole block).\n */\n foundation?: React.ReactNode;\n /**\n * Where the foundation sits: above the cards, or under them.\n * @default \"start\"\n */\n foundationPosition?: \"start\" | \"end\";\n /** A short mono label on the frame's edge, naming the relation (`Powered by Sovkora`). Only with `foundation`. */\n foundationLabel?: React.ReactNode;\n /** @deprecated Since 3.31 (krizaka-ui#393): does nothing — every card has the one quiet hover. Removed in 4.0. */\n hover?: CardHover;\n};\n\n/** A responsive grid of cards: equal rows, a staggered reveal. */\nexport function CardGrid({\n children,\n min = 300,\n fit = \"fill\",\n align = \"stretch\",\n reveal = true,\n columns = 3,\n light: _light,\n as: Tag = \"div\",\n foundation,\n foundationPosition = \"start\",\n foundationLabel,\n hover: _hover,\n className,\n style,\n ...props\n}: CardGridProps) {\n const Cell = Tag === \"div\" ? \"div\" : \"li\";\n const grid = (\n <Tag\n className={cn(\"kz-cards\", !foundation && className)}\n data-fit={fit === \"fit\" ? \"\" : undefined}\n data-align={align === \"start\" ? \"start\" : undefined}\n style={{ \"--kz-cards-min\": `${min}px`, ...(foundation ? null : style) } as React.CSSProperties}\n {...props}\n >\n {React.Children.toArray(children).map((child, i) => {\n const step = Math.min(i % Math.max(columns, 1), 5);\n return (\n <Cell\n key={React.isValidElement(child) && child.key != null ? child.key : i}\n className=\"kz-cards-cell\"\n data-reveal={reveal ? \"\" : undefined}\n style={reveal && step ? ({ \"--kz-delay\": `${step * STEP_MS}ms` } as React.CSSProperties) : undefined}\n >\n {child}\n </Cell>\n );\n })}\n </Tag>\n );\n if (!foundation) return grid;\n return (\n <div className={cn(\"kz-foundation\", className)} data-position={foundationPosition} style={style}>\n <div className=\"kz-foundation-base\" data-reveal={reveal ? \"\" : undefined}>\n {foundation}\n </div>\n <div className=\"kz-foundation-group\">\n {foundationLabel && <span className=\"kz-foundation-label\">{foundationLabel}</span>}\n {grid}\n </div>\n </div>\n );\n}\n\n"],"mappings":";;;;;;AAEA,YAAY,WAAW;AAsFb,cAkBJ,YAlBI;AAjFV,IAAM,UAAU;AAoDT,SAAS,SAAS;AAAA,EACvB;AAAA,EACA,MAAM;AAAA,EACN,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,UAAU;AAAA,EACV,OAAO;AAAA,EACP,IAAI,MAAM;AAAA,EACV;AAAA,EACA,qBAAqB;AAAA,EACrB;AAAA,EACA,OAAO;AAAA,EACP;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAkB;AAChB,QAAM,OAAO,QAAQ,QAAQ,QAAQ;AACrC,QAAM,OACJ;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,GAAG,YAAY,CAAC,cAAc,SAAS;AAAA,MAClD,YAAU,QAAQ,QAAQ,KAAK;AAAA,MAC/B,cAAY,UAAU,UAAU,UAAU;AAAA,MAC1C,OAAO,EAAE,kBAAkB,GAAG,GAAG,MAAM,GAAI,aAAa,OAAO,MAAO;AAAA,MACrE,GAAG;AAAA,MAEH,UAAM,eAAS,QAAQ,QAAQ,EAAE,IAAI,CAAC,OAAO,MAAM;AAClD,cAAM,OAAO,KAAK,IAAI,IAAI,KAAK,IAAI,SAAS,CAAC,GAAG,CAAC;AACjD,eACE;AAAA,UAAC;AAAA;AAAA,YAEC,WAAU;AAAA,YACV,eAAa,SAAS,KAAK;AAAA,YAC3B,OAAO,UAAU,OAAQ,EAAE,cAAc,GAAG,OAAO,OAAO,KAAK,IAA4B;AAAA,YAE1F;AAAA;AAAA,UALU,qBAAe,KAAK,KAAK,MAAM,OAAO,OAAO,MAAM,MAAM;AAAA,QAMtE;AAAA,MAEJ,CAAC;AAAA;AAAA,EACH;AAEF,MAAI,CAAC,WAAY,QAAO;AACxB,SACE,qBAAC,SAAI,WAAW,GAAG,iBAAiB,SAAS,GAAG,iBAAe,oBAAoB,OACjF;AAAA,wBAAC,SAAI,WAAU,sBAAqB,eAAa,SAAS,KAAK,QAC5D,sBACH;AAAA,IACA,qBAAC,SAAI,WAAU,uBACZ;AAAA,yBAAmB,oBAAC,UAAK,WAAU,uBAAuB,2BAAgB;AAAA,MAC1E;AAAA,OACH;AAAA,KACF;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../src/card-grid/card-grid.tsx"],"sourcesContent":["// A responsive grid of cards (blocks.css): one column on a phone, the cells of a row share their height, each card rises\n// once as it enters the viewport — staggered by column. The hover is the cards' own quiet one (krizaka-ui#393).\nimport * as React from \"react\";\n\nimport { cn } from \"../cn\";\nimport type { CardHover } from \"../link-card/link-card\";\n\nconst STEP_MS = 70;\n\nexport type CardGridProps = Omit<React.HTMLAttributes<HTMLElement>, \"children\"> & {\n /** The cards: one cell each. */\n children: React.ReactNode;\n /**\n * The narrowest a column may be, in pixels: the grid fits as many columns as the width allows.\n * @default 300\n */\n min?: number;\n /**\n * `fill` keeps empty tracks (a lone card keeps its width); `fit` stretches the cards of a short row across the width.\n * @default \"fill\"\n */\n fit?: \"fill\" | \"fit\";\n /**\n * `stretch` gives the cells of a row one height; `start` lets each card keep its own (cards that open a panel).\n * @default \"stretch\"\n */\n align?: \"stretch\" | \"start\";\n /**\n * The cards rise once into place (`[data-reveal]`, MotionObserver), staggered by column. `false` on the first screen.\n * @default true\n */\n reveal?: boolean;\n /**\n * The columns the stagger counts (the delay restarts on every row).\n * @default 3\n */\n columns?: number;\n /** @deprecated Since 3.31 (krizaka-ui#393): does nothing — no light follows the pointer. Removed in 4.0. */\n light?: boolean;\n /** `ul` when the cards are a list (each cell an `li`). */\n as?: \"div\" | \"ul\" | \"ol\";\n /**\n * A foundation: one wide card that the cards of the grid stand on (an engine, a platform, a shared service). It spans\n * the full width beside the grid, and a hairline joins it to a frame around the cards — \"everything inside runs on it\".\n * The frame takes the hue of `className` (a `data-hue` or a brand class on the grid sets it for the whole block).\n */\n foundation?: React.ReactNode;\n /**\n * Where the foundation sits: above the cards, or under them.\n * @default \"start\"\n */\n foundationPosition?: \"start\" | \"end\";\n /** A short mono label on the frame's edge, naming the relation (`Powered by Sovkora`). Only with `foundation`. */\n foundationLabel?: React.ReactNode;\n /** @deprecated Since 3.31 (krizaka-ui#393): does nothing — every card has the one quiet hover. Removed in 4.0. */\n hover?: CardHover;\n};\n\n/** A responsive grid of cards: equal rows, a staggered reveal. */\nexport function CardGrid({\n children,\n min = 300,\n fit = \"fill\",\n align = \"stretch\",\n reveal = true,\n columns = 3,\n light: _light,\n as: Tag = \"div\",\n foundation,\n foundationPosition = \"start\",\n foundationLabel,\n hover: _hover,\n className,\n style,\n ...props\n}: Readonly<CardGridProps>) {\n const Cell = Tag === \"div\" ? \"div\" : \"li\";\n const grid = (\n <Tag\n className={cn(\"kz-cards\", !foundation && className)}\n data-fit={fit === \"fit\" ? \"\" : undefined}\n data-align={align === \"start\" ? \"start\" : undefined}\n style={{ \"--kz-cards-min\": `${min}px`, ...(foundation ? null : style) } as React.CSSProperties}\n {...props}\n >\n {React.Children.toArray(children).map((child, i) => {\n const step = Math.min(i % Math.max(columns, 1), 5);\n return (\n <Cell\n key={React.isValidElement(child) && child.key != null ? child.key : i}\n className=\"kz-cards-cell\"\n data-reveal={reveal ? \"\" : undefined}\n style={reveal && step ? ({ \"--kz-delay\": `${step * STEP_MS}ms` } as React.CSSProperties) : undefined}\n >\n {child}\n </Cell>\n );\n })}\n </Tag>\n );\n if (!foundation) return grid;\n return (\n <div className={cn(\"kz-foundation\", className)} data-position={foundationPosition} style={style}>\n <div className=\"kz-foundation-base\" data-reveal={reveal ? \"\" : undefined}>\n {foundation}\n </div>\n <div className=\"kz-foundation-group\">\n {foundationLabel && <span className=\"kz-foundation-label\">{foundationLabel}</span>}\n {grid}\n </div>\n </div>\n );\n}\n\n"],"mappings":";;;;;;AAEA,YAAY,WAAW;AAsFb,cAkBJ,YAlBI;AAjFV,IAAM,UAAU;AAoDT,SAAS,SAAS;AAAA,EACvB;AAAA,EACA,MAAM;AAAA,EACN,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,UAAU;AAAA,EACV,OAAO;AAAA,EACP,IAAI,MAAM;AAAA,EACV;AAAA,EACA,qBAAqB;AAAA,EACrB;AAAA,EACA,OAAO;AAAA,EACP;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAA4B;AAC1B,QAAM,OAAO,QAAQ,QAAQ,QAAQ;AACrC,QAAM,OACJ;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,GAAG,YAAY,CAAC,cAAc,SAAS;AAAA,MAClD,YAAU,QAAQ,QAAQ,KAAK;AAAA,MAC/B,cAAY,UAAU,UAAU,UAAU;AAAA,MAC1C,OAAO,EAAE,kBAAkB,GAAG,GAAG,MAAM,GAAI,aAAa,OAAO,MAAO;AAAA,MACrE,GAAG;AAAA,MAEH,UAAM,eAAS,QAAQ,QAAQ,EAAE,IAAI,CAAC,OAAO,MAAM;AAClD,cAAM,OAAO,KAAK,IAAI,IAAI,KAAK,IAAI,SAAS,CAAC,GAAG,CAAC;AACjD,eACE;AAAA,UAAC;AAAA;AAAA,YAEC,WAAU;AAAA,YACV,eAAa,SAAS,KAAK;AAAA,YAC3B,OAAO,UAAU,OAAQ,EAAE,cAAc,GAAG,OAAO,OAAO,KAAK,IAA4B;AAAA,YAE1F;AAAA;AAAA,UALU,qBAAe,KAAK,KAAK,MAAM,OAAO,OAAO,MAAM,MAAM;AAAA,QAMtE;AAAA,MAEJ,CAAC;AAAA;AAAA,EACH;AAEF,MAAI,CAAC,WAAY,QAAO;AACxB,SACE,qBAAC,SAAI,WAAW,GAAG,iBAAiB,SAAS,GAAG,iBAAe,oBAAoB,OACjF;AAAA,wBAAC,SAAI,WAAU,sBAAqB,eAAa,SAAS,KAAK,QAC5D,sBACH;AAAA,IACA,qBAAC,SAAI,WAAU,uBACZ;AAAA,yBAAmB,oBAAC,UAAK,WAAU,uBAAuB,2BAAgB;AAAA,MAC1E;AAAA,OACH;AAAA,KACF;AAEJ;","names":[]}
package/dist/card.d.ts CHANGED
@@ -181,7 +181,7 @@ type CardRootProps = React.ComponentProps<"div"> & Pick<CardVariants, "radius" |
181
181
  /** Enters on scroll (MotionObserver): the index in the grid becomes the delay (50 ms a step, 8 steps at most). */
182
182
  reveal?: number;
183
183
  };
184
- declare function CardRoot({ asChild, reveal, radius, tone, interactive, className, style, ...props }: CardRootProps): React.JSX.Element;
184
+ declare function CardRoot({ asChild, reveal, radius, tone, interactive, className, style, ...props }: Readonly<CardRootProps>): React.JSX.Element;
185
185
  declare const ASPECT: {
186
186
  readonly video: "aspect-video";
187
187
  readonly square: "aspect-square";
@@ -192,7 +192,7 @@ type CardMediaProps = React.ComponentProps<"div"> & {
192
192
  /** The ratio of the media: video (16:9) · square · portrait (3:4) · auto (the content's). */
193
193
  aspect?: keyof typeof ASPECT;
194
194
  };
195
- declare function CardMedia({ aspect, className, ...props }: CardMediaProps): React.JSX.Element;
195
+ declare function CardMedia({ aspect, className, ...props }: Readonly<CardMediaProps>): React.JSX.Element;
196
196
  type CardImageProps = Omit<React.ComponentProps<"img">, "src"> & {
197
197
  /** The image's URL; `null` or nothing shows the `fallback`. */
198
198
  src?: string | null;
@@ -206,7 +206,7 @@ type CardImageProps = Omit<React.ComponentProps<"img">, "src"> & {
206
206
  loading?: "lazy" | "eager";
207
207
  };
208
208
  /** The image of a media, or its `fallback` when there is none. `alt` is empty by default: the title names the card. */
209
- declare function CardImage({ src, alt, fallback, loading, className, ...props }: CardImageProps): React.JSX.Element;
209
+ declare function CardImage({ src, alt, fallback, loading, className, ...props }: Readonly<CardImageProps>): React.JSX.Element;
210
210
  declare const CORNER: {
211
211
  readonly "top-left": "left-2.5 top-2.5";
212
212
  readonly "top-right": "right-2.5 top-2.5";
@@ -218,7 +218,7 @@ type CardOverlayProps = React.ComponentProps<"div"> & {
218
218
  corner?: keyof typeof CORNER;
219
219
  };
220
220
  /** What sits on the media (badges, a caption). `scrim` and `fg-on-media` are invariant: nothing to do for light. */
221
- declare function CardOverlay({ corner, className, ...props }: CardOverlayProps): React.JSX.Element;
221
+ declare function CardOverlay({ corner, className, ...props }: Readonly<CardOverlayProps>): React.JSX.Element;
222
222
  type CardBodyProps = React.ComponentProps<"div"> & {
223
223
  /**
224
224
  * none · sm · md · lg.
@@ -226,20 +226,20 @@ type CardBodyProps = React.ComponentProps<"div"> & {
226
226
  */
227
227
  padding?: CardVariants["padding"];
228
228
  };
229
- declare function CardBody({ padding, className, ...props }: CardBodyProps): React.JSX.Element;
229
+ declare function CardBody({ padding, className, ...props }: Readonly<CardBodyProps>): React.JSX.Element;
230
230
  type CardTitleProps = React.ComponentProps<"h3"> & {
231
231
  /** The heading level, to fit the page's outline. */
232
232
  as?: "h2" | "h3" | "h4";
233
233
  };
234
- declare function CardTitle({ as: Tag, className, ...props }: CardTitleProps): React.JSX.Element;
235
- declare function CardDescription({ className, ...props }: React.ComponentProps<"p">): React.JSX.Element;
234
+ declare function CardTitle({ as: Tag, className, ...props }: Readonly<CardTitleProps>): React.JSX.Element;
235
+ declare function CardDescription({ className, ...props }: Readonly<React.ComponentProps<"p">>): React.JSX.Element;
236
236
  type CardStatProps = React.ComponentProps<"div"> & {
237
237
  /** What the figure is, in small capitals above it (the figure is the children). */
238
238
  label: React.ReactNode;
239
239
  };
240
240
  /** A figure put forward: the label in capitals, the value in tabular digits. */
241
- declare function CardStat({ label, className, children, ...props }: CardStatProps): React.JSX.Element;
242
- declare function CardFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
241
+ declare function CardStat({ label, className, children, ...props }: Readonly<CardStatProps>): React.JSX.Element;
242
+ declare function CardFooter({ className, ...props }: Readonly<React.ComponentProps<"div">>): React.JSX.Element;
243
243
  /** `Card.Root/Media/Image/Overlay/Body/Title/Description/Stat/Footer`. */
244
244
  declare const Card: {
245
245
  Root: typeof CardRoot;
package/dist/card.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-2VNYHG4E.js";
4
4
  import {
5
5
  cn
6
- } from "./chunk-W675RFOA.js";
6
+ } from "./chunk-ISC2QBXJ.js";
7
7
 
8
8
  // src/card/card.tsx
9
9
  import { Slot } from "radix-ui";
package/dist/card.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/card/card.tsx","../src/card/recipe.ts"],"sourcesContent":["// Server-safe: no hook, no context. One `tv` definition with slots: each part takes its slot, and a product overrides\n// any part through `className` (merged last by tailwind-merge).\nimport { Slot } from \"radix-ui\";\nimport type * as React from \"react\";\nimport { tv, type VariantProps } from \"tailwind-variants\";\n\nimport { cn } from \"../cn\";\nimport { cardRecipe } from \"./recipe\";\n\nexport const card = tv(cardRecipe);\n\ntype CardVariants = VariantProps<typeof card>;\n/** The parts without a variant read the default slots: no context, so server-safe. */\nconst slots = card();\n\nexport type CardRootProps = React.ComponentProps<\"div\"> &\n Pick<CardVariants, \"radius\" | \"tone\" | \"interactive\"> & {\n /**\n * md · lg · xl.\n * @default \"xl\"\n */\n radius?: CardVariants[\"radius\"];\n /**\n * default (the base surface) · elevated (raised, a shadow) · glass (translucent, blurred).\n * @default \"default\"\n */\n tone?: CardVariants[\"tone\"];\n /** The quiet hover — the hairline and the surface one step up, nothing moves (krizaka-ui#393): for a card that is a link. */\n interactive?: CardVariants[\"interactive\"];\n /** Renders the child (a link, an article) instead of the <div>, with props, classes and ref merged. */\n asChild?: boolean;\n /** Enters on scroll (MotionObserver): the index in the grid becomes the delay (50 ms a step, 8 steps at most). */\n reveal?: number;\n };\n\nexport function CardRoot({ asChild, reveal, radius, tone, interactive, className, style, ...props }: CardRootProps) {\n const Comp = asChild ? Slot.Root : \"div\";\n const revealStyle =\n reveal === undefined ? style : ({ ...style, \"--kz-delay\": `${Math.min(Math.max(reveal, 0), 8) * 50}ms` } as React.CSSProperties);\n return (\n <Comp\n data-reveal={reveal === undefined ? undefined : \"\"}\n data-interactive={interactive ? \"\" : undefined}\n style={revealStyle}\n className={card({ radius, tone, interactive }).root({ className })}\n {...props}\n />\n );\n}\n\nconst ASPECT = { video: \"aspect-video\", square: \"aspect-square\", portrait: \"aspect-[3/4]\", auto: \"\" } as const;\nexport type CardMediaProps = React.ComponentProps<\"div\"> & {\n /** The ratio of the media: video (16:9) · square · portrait (3:4) · auto (the content's). */\n aspect?: keyof typeof ASPECT;\n};\n\nexport function CardMedia({ aspect = \"video\", className, ...props }: CardMediaProps) {\n return <div data-aspect={aspect} className={slots.media({ className: cn(ASPECT[aspect], className) })} {...props} />;\n}\n\nexport type CardImageProps = Omit<React.ComponentProps<\"img\">, \"src\"> & {\n /** The image's URL; `null` or nothing shows the `fallback`. */\n src?: string | null;\n /** Shown when there is no image: an icon, an illustration (decorative). */\n fallback?: React.ReactNode;\n /**\n * When the browser loads it: `lazy` (default, a card in a list or below the fold) or `eager` for the first cards\n * of a page — the image that is the largest contentful paint must not wait (add `fetchPriority=\"high\"`).\n * @default \"lazy\"\n */\n loading?: \"lazy\" | \"eager\";\n};\n\n/** The image of a media, or its `fallback` when there is none. `alt` is empty by default: the title names the card. */\nexport function CardImage({ src, alt = \"\", fallback, loading = \"lazy\", className, ...props }: CardImageProps) {\n if (!src) {\n return (\n <div data-fallback=\"\" aria-hidden className={slots.fallback({ className })}>\n {fallback}\n </div>\n );\n }\n return <img src={src} alt={alt} loading={loading} decoding=\"async\" className={slots.image({ className })} {...props} />;\n}\n\nconst CORNER = {\n \"top-left\": \"left-2.5 top-2.5\",\n \"top-right\": \"right-2.5 top-2.5\",\n \"bottom-left\": \"bottom-2.5 left-2.5\",\n \"bottom-right\": \"bottom-2.5 right-2.5\",\n} as const;\nexport type CardOverlayProps = React.ComponentProps<\"div\"> & {\n /** The corner of the media it sits in. */\n corner?: keyof typeof CORNER;\n};\n\n/** What sits on the media (badges, a caption). `scrim` and `fg-on-media` are invariant: nothing to do for light. */\nexport function CardOverlay({ corner = \"top-left\", className, ...props }: CardOverlayProps) {\n return <div data-corner={corner} className={slots.overlay({ className: cn(CORNER[corner], className) })} {...props} />;\n}\n\nexport type CardBodyProps = React.ComponentProps<\"div\"> & {\n /**\n * none · sm · md · lg.\n * @default \"md\"\n */\n padding?: CardVariants[\"padding\"];\n};\n\nexport function CardBody({ padding, className, ...props }: CardBodyProps) {\n return <div className={card({ padding }).body({ className })} {...props} />;\n}\n\nexport type CardTitleProps = React.ComponentProps<\"h3\"> & {\n /** The heading level, to fit the page's outline. */\n as?: \"h2\" | \"h3\" | \"h4\";\n};\n\nexport function CardTitle({ as: Tag = \"h3\", className, ...props }: CardTitleProps) {\n return <Tag className={slots.title({ className })} {...props} />;\n}\n\nexport function CardDescription({ className, ...props }: React.ComponentProps<\"p\">) {\n return <p className={slots.description({ className })} {...props} />;\n}\n\nexport type CardStatProps = React.ComponentProps<\"div\"> & {\n /** What the figure is, in small capitals above it (the figure is the children). */\n label: React.ReactNode;\n};\n\n/** A figure put forward: the label in capitals, the value in tabular digits. */\nexport function CardStat({ label, className, children, ...props }: CardStatProps) {\n return (\n <div className={slots.stat({ className })} {...props}>\n <p className={slots.statLabel()}>{label}</p>\n <p className={slots.statValue()}>{children}</p>\n </div>\n );\n}\n\nexport function CardFooter({ className, ...props }: React.ComponentProps<\"div\">) {\n return <div className={slots.footer({ className })} {...props} />;\n}\n\n/** `Card.Root/Media/Image/Overlay/Body/Title/Description/Stat/Footer`. */\nexport const Card = {\n Root: CardRoot,\n Media: CardMedia,\n Image: CardImage,\n Overlay: CardOverlay,\n Body: CardBody,\n Title: CardTitle,\n Description: CardDescription,\n Stat: CardStat,\n Footer: CardFooter,\n};\n","// The card's parts, radii, tones and paddings, written once as classes of the Krizaka tokens: the web wears them with\n// `tv(cardRecipe)`, React Native reads the same classes into styles (native/card.tsx): a part of the card that exists only\n// on the web (the hover's tint) is simply ignored there.\nimport { defineRecipe } from \"../recipes/define\";\n\nexport const cardRecipe = defineRecipe({\n slots: {\n root:\n \"group relative flex flex-col overflow-hidden border border-border-default bg-surface-1 text-fg transition-colors \" +\n \"focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring\",\n media: \"relative overflow-hidden bg-media\",\n image: \"h-full w-full object-cover\",\n fallback: \"flex h-full w-full items-center justify-center bg-linear-to-br from-accent/15 via-media to-accent-2/15 text-accent/60\",\n overlay: \"absolute z-10 flex items-center gap-1.5\",\n body: \"relative flex flex-1 flex-col gap-3\",\n title: \"line-clamp-1 text-sm font-semibold text-fg transition-colors group-hover:text-fg-accent\",\n description: \"line-clamp-2 text-xs text-fg-secondary\",\n stat: \"min-w-0\",\n statLabel: \"font-mono text-[11.5px] text-fg-secondary\",\n statValue: \"font-display text-xl font-black tabular-nums text-fg\",\n footer: \"relative mt-auto flex items-center gap-2 border-t border-border-subtle pt-3 text-xs text-fg-secondary\",\n },\n variants: {\n radius: { md: { root: \"rounded-md\" }, lg: { root: \"rounded-lg\" }, xl: { root: \"rounded-xl\" } },\n tone: { default: {}, elevated: { root: \"bg-surface-2 shadow-md\" }, glass: { root: \"bg-glass border-glass-border\" } },\n interactive: { true: { root: \"duration-150 hover:border-border-strong hover:bg-surface-2\" } },\n padding: { none: { body: \"p-0\" }, sm: { body: \"p-3\" }, md: { body: \"p-4\" }, lg: { body: \"p-6\" } },\n },\n defaultVariants: { radius: \"xl\", tone: \"default\", padding: \"md\" },\n});\n"],"mappings":";;;;;;;;AAEA,SAAS,YAAY;AAErB,SAAS,UAA6B;;;ACC/B,IAAM,aAAa,aAAa;AAAA,EACrC,OAAO;AAAA,IACL,MACE;AAAA,IAEF,OAAO;AAAA,IACP,OAAO;AAAA,IACP,UAAU;AAAA,IACV,SAAS;AAAA,IACT,MAAM;AAAA,IACN,OAAO;AAAA,IACP,aAAa;AAAA,IACb,MAAM;AAAA,IACN,WAAW;AAAA,IACX,WAAW;AAAA,IACX,QAAQ;AAAA,EACV;AAAA,EACA,UAAU;AAAA,IACR,QAAQ,EAAE,IAAI,EAAE,MAAM,aAAa,GAAG,IAAI,EAAE,MAAM,aAAa,GAAG,IAAI,EAAE,MAAM,aAAa,EAAE;AAAA,IAC7F,MAAM,EAAE,SAAS,CAAC,GAAG,UAAU,EAAE,MAAM,yBAAyB,GAAG,OAAO,EAAE,MAAM,+BAA+B,EAAE;AAAA,IACnH,aAAa,EAAE,MAAM,EAAE,MAAM,6DAA6D,EAAE;AAAA,IAC5F,SAAS,EAAE,MAAM,EAAE,MAAM,MAAM,GAAG,IAAI,EAAE,MAAM,MAAM,GAAG,IAAI,EAAE,MAAM,MAAM,GAAG,IAAI,EAAE,MAAM,MAAM,EAAE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EAClB,MAAM;AAAA,EACN,OAAO;AAAA,EACP,OAAO;AAAA,EACP,SAAS;AAAA,EACT,MAAM;AAAA,EACN,OAAO;AAAA,EACP,aAAa;AAAA,EACb,MAAM;AAAA,EACN,QAAQ;AACV;","names":[]}
1
+ {"version":3,"sources":["../src/card/card.tsx","../src/card/recipe.ts"],"sourcesContent":["// Server-safe: no hook, no context. One `tv` definition with slots: each part takes its slot, and a product overrides\n// any part through `className` (merged last by tailwind-merge).\nimport { Slot } from \"radix-ui\";\nimport type * as React from \"react\";\nimport { tv, type VariantProps } from \"tailwind-variants\";\n\nimport { cn } from \"../cn\";\nimport { cardRecipe } from \"./recipe\";\n\nexport const card = tv(cardRecipe);\n\ntype CardVariants = VariantProps<typeof card>;\n/** The parts without a variant read the default slots: no context, so server-safe. */\nconst slots = card();\n\nexport type CardRootProps = React.ComponentProps<\"div\"> &\n Pick<CardVariants, \"radius\" | \"tone\" | \"interactive\"> & {\n /**\n * md · lg · xl.\n * @default \"xl\"\n */\n radius?: CardVariants[\"radius\"];\n /**\n * default (the base surface) · elevated (raised, a shadow) · glass (translucent, blurred).\n * @default \"default\"\n */\n tone?: CardVariants[\"tone\"];\n /** The quiet hover — the hairline and the surface one step up, nothing moves (krizaka-ui#393): for a card that is a link. */\n interactive?: CardVariants[\"interactive\"];\n /** Renders the child (a link, an article) instead of the <div>, with props, classes and ref merged. */\n asChild?: boolean;\n /** Enters on scroll (MotionObserver): the index in the grid becomes the delay (50 ms a step, 8 steps at most). */\n reveal?: number;\n };\n\nexport function CardRoot({ asChild, reveal, radius, tone, interactive, className, style, ...props }: Readonly<CardRootProps>) {\n const Comp = asChild ? Slot.Root : \"div\";\n const revealStyle =\n reveal === undefined ? style : ({ ...style, \"--kz-delay\": `${Math.min(Math.max(reveal, 0), 8) * 50}ms` } as React.CSSProperties);\n return (\n <Comp\n data-reveal={reveal === undefined ? undefined : \"\"}\n data-interactive={interactive ? \"\" : undefined}\n style={revealStyle}\n className={card({ radius, tone, interactive }).root({ className })}\n {...props}\n />\n );\n}\n\nconst ASPECT = { video: \"aspect-video\", square: \"aspect-square\", portrait: \"aspect-[3/4]\", auto: \"\" } as const;\nexport type CardMediaProps = React.ComponentProps<\"div\"> & {\n /** The ratio of the media: video (16:9) · square · portrait (3:4) · auto (the content's). */\n aspect?: keyof typeof ASPECT;\n};\n\nexport function CardMedia({ aspect = \"video\", className, ...props }: Readonly<CardMediaProps>) {\n return <div data-aspect={aspect} className={slots.media({ className: cn(ASPECT[aspect], className) })} {...props} />;\n}\n\nexport type CardImageProps = Omit<React.ComponentProps<\"img\">, \"src\"> & {\n /** The image's URL; `null` or nothing shows the `fallback`. */\n src?: string | null;\n /** Shown when there is no image: an icon, an illustration (decorative). */\n fallback?: React.ReactNode;\n /**\n * When the browser loads it: `lazy` (default, a card in a list or below the fold) or `eager` for the first cards\n * of a page — the image that is the largest contentful paint must not wait (add `fetchPriority=\"high\"`).\n * @default \"lazy\"\n */\n loading?: \"lazy\" | \"eager\";\n};\n\n/** The image of a media, or its `fallback` when there is none. `alt` is empty by default: the title names the card. */\nexport function CardImage({ src, alt = \"\", fallback, loading = \"lazy\", className, ...props }: Readonly<CardImageProps>) {\n if (!src) {\n return (\n <div data-fallback=\"\" aria-hidden className={slots.fallback({ className })}>\n {fallback}\n </div>\n );\n }\n return <img src={src} alt={alt} loading={loading} decoding=\"async\" className={slots.image({ className })} {...props} />;\n}\n\nconst CORNER = {\n \"top-left\": \"left-2.5 top-2.5\",\n \"top-right\": \"right-2.5 top-2.5\",\n \"bottom-left\": \"bottom-2.5 left-2.5\",\n \"bottom-right\": \"bottom-2.5 right-2.5\",\n} as const;\nexport type CardOverlayProps = React.ComponentProps<\"div\"> & {\n /** The corner of the media it sits in. */\n corner?: keyof typeof CORNER;\n};\n\n/** What sits on the media (badges, a caption). `scrim` and `fg-on-media` are invariant: nothing to do for light. */\nexport function CardOverlay({ corner = \"top-left\", className, ...props }: Readonly<CardOverlayProps>) {\n return <div data-corner={corner} className={slots.overlay({ className: cn(CORNER[corner], className) })} {...props} />;\n}\n\nexport type CardBodyProps = React.ComponentProps<\"div\"> & {\n /**\n * none · sm · md · lg.\n * @default \"md\"\n */\n padding?: CardVariants[\"padding\"];\n};\n\nexport function CardBody({ padding, className, ...props }: Readonly<CardBodyProps>) {\n return <div className={card({ padding }).body({ className })} {...props} />;\n}\n\nexport type CardTitleProps = React.ComponentProps<\"h3\"> & {\n /** The heading level, to fit the page's outline. */\n as?: \"h2\" | \"h3\" | \"h4\";\n};\n\nexport function CardTitle({ as: Tag = \"h3\", className, ...props }: Readonly<CardTitleProps>) {\n return <Tag className={slots.title({ className })} {...props} />;\n}\n\nexport function CardDescription({ className, ...props }: Readonly<React.ComponentProps<\"p\">>) {\n return <p className={slots.description({ className })} {...props} />;\n}\n\nexport type CardStatProps = React.ComponentProps<\"div\"> & {\n /** What the figure is, in small capitals above it (the figure is the children). */\n label: React.ReactNode;\n};\n\n/** A figure put forward: the label in capitals, the value in tabular digits. */\nexport function CardStat({ label, className, children, ...props }: Readonly<CardStatProps>) {\n return (\n <div className={slots.stat({ className })} {...props}>\n <p className={slots.statLabel()}>{label}</p>\n <p className={slots.statValue()}>{children}</p>\n </div>\n );\n}\n\nexport function CardFooter({ className, ...props }: Readonly<React.ComponentProps<\"div\">>) {\n return <div className={slots.footer({ className })} {...props} />;\n}\n\n/** `Card.Root/Media/Image/Overlay/Body/Title/Description/Stat/Footer`. */\nexport const Card = {\n Root: CardRoot,\n Media: CardMedia,\n Image: CardImage,\n Overlay: CardOverlay,\n Body: CardBody,\n Title: CardTitle,\n Description: CardDescription,\n Stat: CardStat,\n Footer: CardFooter,\n};\n","// The card's parts, radii, tones and paddings, written once as classes of the Krizaka tokens: the web wears them with\n// `tv(cardRecipe)`, React Native reads the same classes into styles (native/card.tsx): a part of the card that exists only\n// on the web (the hover's tint) is simply ignored there.\nimport { defineRecipe } from \"../recipes/define\";\n\nexport const cardRecipe = defineRecipe({\n slots: {\n root:\n \"group relative flex flex-col overflow-hidden border border-border-default bg-surface-1 text-fg transition-colors \" +\n \"focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring\",\n media: \"relative overflow-hidden bg-media\",\n image: \"h-full w-full object-cover\",\n fallback: \"flex h-full w-full items-center justify-center bg-linear-to-br from-accent/15 via-media to-accent-2/15 text-accent/60\",\n overlay: \"absolute z-10 flex items-center gap-1.5\",\n body: \"relative flex flex-1 flex-col gap-3\",\n title: \"line-clamp-1 text-sm font-semibold text-fg transition-colors group-hover:text-fg-accent\",\n description: \"line-clamp-2 text-xs text-fg-secondary\",\n stat: \"min-w-0\",\n statLabel: \"font-mono text-[11.5px] text-fg-secondary\",\n statValue: \"font-display text-xl font-black tabular-nums text-fg\",\n footer: \"relative mt-auto flex items-center gap-2 border-t border-border-subtle pt-3 text-xs text-fg-secondary\",\n },\n variants: {\n radius: { md: { root: \"rounded-md\" }, lg: { root: \"rounded-lg\" }, xl: { root: \"rounded-xl\" } },\n tone: { default: {}, elevated: { root: \"bg-surface-2 shadow-md\" }, glass: { root: \"bg-glass border-glass-border\" } },\n interactive: { true: { root: \"duration-150 hover:border-border-strong hover:bg-surface-2\" } },\n padding: { none: { body: \"p-0\" }, sm: { body: \"p-3\" }, md: { body: \"p-4\" }, lg: { body: \"p-6\" } },\n },\n defaultVariants: { radius: \"xl\", tone: \"default\", padding: \"md\" },\n});\n"],"mappings":";;;;;;;;AAEA,SAAS,YAAY;AAErB,SAAS,UAA6B;;;ACC/B,IAAM,aAAa,aAAa;AAAA,EACrC,OAAO;AAAA,IACL,MACE;AAAA,IAEF,OAAO;AAAA,IACP,OAAO;AAAA,IACP,UAAU;AAAA,IACV,SAAS;AAAA,IACT,MAAM;AAAA,IACN,OAAO;AAAA,IACP,aAAa;AAAA,IACb,MAAM;AAAA,IACN,WAAW;AAAA,IACX,WAAW;AAAA,IACX,QAAQ;AAAA,EACV;AAAA,EACA,UAAU;AAAA,IACR,QAAQ,EAAE,IAAI,EAAE,MAAM,aAAa,GAAG,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AA4B;AAC1F,SACE,qBAAC,SAAI,WAAW,MAAM,KAAK,EAAE,UAAU,CAAC,GAAI,GAAG,OAC7C;AAAA,wBAAC,OAAE,WAAW,MAAM,UAAU,GAAI,iBAAM;AAAA,IACxC,oBAAC,OAAE,WAAW,MAAM,UAAU,GAAI,UAAS;AAAA,KAC7C;AAEJ;AAEO,SAAS,WAAW,EAAE,WAAW,GAAG,MAAM,GAA0C;AACzF,SAAO,oBAAC,SAAI,WAAW,MAAM,OAAO,EAAE,UAAU,CAAC,GAAI,GAAG,OAAO;AACjE;AAGO,IAAM,OAAO;AAAA,EAClB,MAAM;AAAA,EACN,OAAO;AAAA,EACP,OAAO;AAAA,EACP,SAAS;AAAA,EACT,MAAM;AAAA,EACN,OAAO;AAAA,EACP,aAAa;AAAA,EACb,MAAM;AAAA,EACN,QAAQ;AACV;","names":[]}
@@ -73,7 +73,7 @@ type PlanStripProps = Omit<React.ComponentProps<"section">, "children"> & {
73
73
  meter?: MeterProps;
74
74
  };
75
75
  /** The plan strip of a catalogue: two or three figures and a `Meter` — where the account stands, at a glance. */
76
- declare function PlanStrip({ label, figures, meter, className, ...props }: PlanStripProps): React.JSX.Element;
76
+ declare function PlanStrip({ label, figures, meter, className, ...props }: Readonly<PlanStripProps>): React.JSX.Element;
77
77
  type CataloguePageProps = Omit<React.HTMLAttributes<HTMLElement>, "title"> & {
78
78
  /** The way back. */
79
79
  back?: {
@@ -113,7 +113,7 @@ type CataloguePageProps = Omit<React.HTMLAttributes<HTMLElement>, "title"> & {
113
113
  railFrom?: "default" | "wide";
114
114
  };
115
115
  /** A catalogue: hero, sticky filters beside the results (folded on a phone), the count, the results. */
116
- declare function CataloguePage({ back, eyebrow, title, lead, search, filters, filtersLabel, plan, dividers, selection, count, toolbar, linkAs, railFrom, children, ...props }: CataloguePageProps): React.JSX.Element;
116
+ declare function CataloguePage({ back, eyebrow, title, lead, search, filters, filtersLabel, plan, dividers, selection, count, toolbar, linkAs, railFrom, children, ...props }: Readonly<CataloguePageProps>): React.JSX.Element;
117
117
 
118
118
  export { CataloguePage, PlanStrip };
119
119
  export type { CataloguePageProps, PlanFigure, PlanStripProps };