@krizaka/ui 4.7.0 → 4.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (965) hide show
  1. package/README.md +1 -0
  2. package/dist/{RotatingWord-D3tpDLE4.d.ts → RotatingWord-CkDcPH9x.d.ts} +2 -2
  3. package/dist/account-menu.js +2 -2
  4. package/dist/account-menu.js.map +1 -1
  5. package/dist/account-settings.d.ts +9 -9
  6. package/dist/account-settings.js +4 -4
  7. package/dist/account-settings.js.map +1 -1
  8. package/dist/achievement.d.ts +3 -3
  9. package/dist/achievement.js +1 -1
  10. package/dist/achievement.js.map +1 -1
  11. package/dist/action-bar.d.ts +1 -1
  12. package/dist/action-bar.js +5 -5
  13. package/dist/action-bar.js.map +1 -1
  14. package/dist/activity-feed.d.ts +2 -2
  15. package/dist/activity-feed.js +1 -1
  16. package/dist/activity-feed.js.map +1 -1
  17. package/dist/alert.d.ts +1 -1
  18. package/dist/alert.js.map +1 -1
  19. package/dist/analysis-report.d.ts +1 -1
  20. package/dist/analysis-report.js +4 -4
  21. package/dist/analysis-report.js.map +1 -1
  22. package/dist/anatomy-plate.d.ts +1 -1
  23. package/dist/anatomy-plate.js +1 -1
  24. package/dist/anatomy-plate.js.map +1 -1
  25. package/dist/app-header/search.d.ts +1 -1
  26. package/dist/app-header/search.js +2 -2
  27. package/dist/app-header/search.js.map +1 -1
  28. package/dist/app-header.d.ts +2 -2
  29. package/dist/app-header.js.map +1 -1
  30. package/dist/app-shell.d.ts +8 -8
  31. package/dist/app-shell.js +4 -4
  32. package/dist/app-shell.js.map +1 -1
  33. package/dist/architecture-diagram.d.ts +1 -1
  34. package/dist/architecture-diagram.js.map +1 -1
  35. package/dist/argument-card.d.ts +2 -2
  36. package/dist/argument-card.js +6 -6
  37. package/dist/argument-card.js.map +1 -1
  38. package/dist/auth-layout.d.ts +1 -1
  39. package/dist/auth-layout.js.map +1 -1
  40. package/dist/avatar.d.ts +2 -2
  41. package/dist/avatar.js.map +1 -1
  42. package/dist/badge.d.ts +1 -1
  43. package/dist/badge.js +1 -1
  44. package/dist/bird-plate.d.ts +1 -1
  45. package/dist/bird-plate.js +2 -2
  46. package/dist/bird-plate.js.map +1 -1
  47. package/dist/button/text-link.d.ts +8 -0
  48. package/dist/button/text-link.js +6 -0
  49. package/dist/button/text-link.js.map +1 -0
  50. package/dist/button.d.ts +2 -2
  51. package/dist/button.js +3 -3
  52. package/dist/captcha.d.ts +2 -2
  53. package/dist/captcha.js +3 -3
  54. package/dist/captcha.js.map +1 -1
  55. package/dist/card-grid.d.ts +1 -1
  56. package/dist/card-grid.js +1 -1
  57. package/dist/card-grid.js.map +1 -1
  58. package/dist/card.d.ts +9 -9
  59. package/dist/card.js +1 -1
  60. package/dist/card.js.map +1 -1
  61. package/dist/catalogue-page.d.ts +2 -2
  62. package/dist/catalogue-page.js.map +1 -1
  63. package/dist/changelog-page.d.ts +1 -1
  64. package/dist/changelog-page.js +2 -2
  65. package/dist/changelog-page.js.map +1 -1
  66. package/dist/chapter.d.ts +3 -3
  67. package/dist/chapter.js +2 -2
  68. package/dist/chapter.js.map +1 -1
  69. package/dist/chat.d.ts +3 -3
  70. package/dist/chat.js +1 -1
  71. package/dist/chat.js.map +1 -1
  72. package/dist/checkbox.d.ts +1 -1
  73. package/dist/checkbox.js.map +1 -1
  74. package/dist/chip-link.d.ts +1 -1
  75. package/dist/chip-link.js +1 -1
  76. package/dist/chip-row.d.ts +2 -2
  77. package/dist/chip-row.js +1 -1
  78. package/dist/chip-row.js.map +1 -1
  79. package/dist/chip.d.ts +4 -5
  80. package/dist/chip.js +2 -2
  81. package/dist/choice-grid.d.ts +1 -1
  82. package/dist/choice-grid.js +2 -2
  83. package/dist/choice-grid.js.map +1 -1
  84. package/dist/{chunk-S6NYGOJT.js → chunk-22IORLB5.js} +1 -1
  85. package/dist/chunk-22IORLB5.js.map +1 -0
  86. package/dist/{chunk-QA3WETWT.js → chunk-2P7Y3LNN.js} +1 -1
  87. package/dist/chunk-2P7Y3LNN.js.map +1 -0
  88. package/dist/{chunk-OGWB76BR.js → chunk-3CEMOJBL.js} +2 -2
  89. package/dist/chunk-3CEMOJBL.js.map +1 -0
  90. package/dist/{chunk-WC3SO4CE.js → chunk-3SWWUJJL.js} +2 -2
  91. package/dist/chunk-3SWWUJJL.js.map +1 -0
  92. package/dist/{chunk-S2O4NSN5.js → chunk-3TCHVNNB.js} +1 -1
  93. package/dist/chunk-3TCHVNNB.js.map +1 -0
  94. package/dist/{chunk-7P7I5OQV.js → chunk-5KBYZLU4.js} +2 -2
  95. package/dist/chunk-5KBYZLU4.js.map +1 -0
  96. package/dist/{chunk-WKQ5CB3I.js → chunk-6ARAO3TR.js} +1 -1
  97. package/dist/{chunk-WKQ5CB3I.js.map → chunk-6ARAO3TR.js.map} +1 -1
  98. package/dist/{chunk-QHVV2JGF.js → chunk-6LF6IZZM.js} +2 -2
  99. package/dist/chunk-6LF6IZZM.js.map +1 -0
  100. package/dist/{chunk-HP7BDMVK.js → chunk-7B5Q76JR.js} +2 -2
  101. package/dist/chunk-7B5Q76JR.js.map +1 -0
  102. package/dist/{chunk-F2UZ2WWL.js → chunk-7KIIAOQH.js} +1 -1
  103. package/dist/{chunk-F2UZ2WWL.js.map → chunk-7KIIAOQH.js.map} +1 -1
  104. package/dist/{chunk-ADRUEPYC.js → chunk-7MA3UODW.js} +2 -2
  105. package/dist/{chunk-ADRUEPYC.js.map → chunk-7MA3UODW.js.map} +1 -1
  106. package/dist/{chunk-KH3JOEPY.js → chunk-7PVLEALV.js} +1 -1
  107. package/dist/chunk-7PVLEALV.js.map +1 -0
  108. package/dist/{chunk-QVHSV6RA.js → chunk-7UBLUGNW.js} +1 -1
  109. package/dist/chunk-7UBLUGNW.js.map +1 -0
  110. package/dist/{chunk-YTYNKMNS.js → chunk-BKMHN4UA.js} +5 -5
  111. package/dist/chunk-BKMHN4UA.js.map +1 -0
  112. package/dist/{chunk-4QH6CP2Y.js → chunk-BRYRZWLV.js} +1 -1
  113. package/dist/{chunk-4QH6CP2Y.js.map → chunk-BRYRZWLV.js.map} +1 -1
  114. package/dist/{chunk-43PTCDTL.js → chunk-BVN7JFOP.js} +1 -1
  115. package/dist/chunk-BVN7JFOP.js.map +1 -0
  116. package/dist/{chunk-5RWHDX5J.js → chunk-BYKA3FHX.js} +2 -2
  117. package/dist/chunk-BYKA3FHX.js.map +1 -0
  118. package/dist/{chunk-5PFCELGW.js → chunk-DIOAQOR5.js} +1 -1
  119. package/dist/chunk-DIOAQOR5.js.map +1 -0
  120. package/dist/{chunk-HJFRHYCI.js → chunk-DTGRZXYO.js} +2 -2
  121. package/dist/{chunk-P7AFIKWG.js → chunk-DVC4YQI2.js} +2 -2
  122. package/dist/chunk-DVC4YQI2.js.map +1 -0
  123. package/dist/{chunk-V5RO6JYI.js → chunk-E3LFHTUV.js} +2 -2
  124. package/dist/chunk-E3LFHTUV.js.map +1 -0
  125. package/dist/{chunk-WEVYKZIF.js → chunk-EAXIDRMB.js} +1 -1
  126. package/dist/chunk-EAXIDRMB.js.map +1 -0
  127. package/dist/{chunk-WU4VLSEA.js → chunk-EYMS6VRF.js} +1 -1
  128. package/dist/chunk-EYMS6VRF.js.map +1 -0
  129. package/dist/{chunk-LH5J3VLZ.js → chunk-F7EJZV53.js} +1 -1
  130. package/dist/chunk-F7EJZV53.js.map +1 -0
  131. package/dist/{chunk-VPO27AFS.js → chunk-G3L7AKZJ.js} +1 -1
  132. package/dist/chunk-G3L7AKZJ.js.map +1 -0
  133. package/dist/{chunk-EB45EVPJ.js → chunk-G5NROYGK.js} +3 -3
  134. package/dist/chunk-G5NROYGK.js.map +1 -0
  135. package/dist/{chunk-HKEAYSFS.js → chunk-GQMINKT3.js} +1 -1
  136. package/dist/{chunk-ENOS6ETI.js.map → chunk-GQMINKT3.js.map} +1 -1
  137. package/dist/{chunk-3X3OF4TI.js → chunk-H4NXYAL7.js} +1 -1
  138. package/dist/{chunk-3X3OF4TI.js.map → chunk-H4NXYAL7.js.map} +1 -1
  139. package/dist/{chunk-KR2W4ONJ.js → chunk-H7I6YLI6.js} +1 -1
  140. package/dist/chunk-H7I6YLI6.js.map +1 -0
  141. package/dist/{chunk-PJNR4NTS.js → chunk-HC2TY45B.js} +4 -4
  142. package/dist/{chunk-NSLXEDIS.js → chunk-HHBTM4AU.js} +1 -1
  143. package/dist/chunk-HHBTM4AU.js.map +1 -0
  144. package/dist/{chunk-XVRKKYWU.js → chunk-HVUR3UNK.js} +2 -2
  145. package/dist/{chunk-XVRKKYWU.js.map → chunk-HVUR3UNK.js.map} +1 -1
  146. package/dist/{chunk-V7W4RLRW.js → chunk-HWIDTLLO.js} +3 -3
  147. package/dist/chunk-HWIDTLLO.js.map +1 -0
  148. package/dist/{chunk-W675RFOA.js → chunk-ISC2QBXJ.js} +1 -1
  149. package/dist/chunk-ISC2QBXJ.js.map +1 -0
  150. package/dist/{chunk-7DYZTEE3.js → chunk-IWPB6SSW.js} +1 -1
  151. package/dist/chunk-IWPB6SSW.js.map +1 -0
  152. package/dist/{chunk-TVLRE7S3.js → chunk-JDVWUF5W.js} +2 -2
  153. package/dist/{chunk-TVLRE7S3.js.map → chunk-JDVWUF5W.js.map} +1 -1
  154. package/dist/{chunk-757ZTGU5.js → chunk-JE2NY4XE.js} +4 -4
  155. package/dist/chunk-JE2NY4XE.js.map +1 -0
  156. package/dist/{chunk-HLEBSAGC.js → chunk-KBSZ6JRF.js} +2 -2
  157. package/dist/chunk-KBSZ6JRF.js.map +1 -0
  158. package/dist/{chunk-Y3P5B4XS.js → chunk-KCU45KQ3.js} +3 -3
  159. package/dist/chunk-KCU45KQ3.js.map +1 -0
  160. package/dist/{chunk-ST5P5HNI.js → chunk-L4YBG5US.js} +4 -4
  161. package/dist/{chunk-ST5P5HNI.js.map → chunk-L4YBG5US.js.map} +1 -1
  162. package/dist/{chunk-NG6G6V5E.js → chunk-LFH3LEWR.js} +1 -1
  163. package/dist/chunk-LFH3LEWR.js.map +1 -0
  164. package/dist/{chunk-YATTFMDV.js → chunk-LSQQSJ6J.js} +2 -2
  165. package/dist/{chunk-YATTFMDV.js.map → chunk-LSQQSJ6J.js.map} +1 -1
  166. package/dist/{chunk-LNAAWT4Y.js → chunk-MJWOZ3JI.js} +1 -1
  167. package/dist/chunk-MJWOZ3JI.js.map +1 -0
  168. package/dist/{chunk-KID32IRJ.js → chunk-MXHJMTZ5.js} +1 -1
  169. package/dist/{chunk-KID32IRJ.js.map → chunk-MXHJMTZ5.js.map} +1 -1
  170. package/dist/{chunk-GHAN7OOE.js → chunk-N6LAWI4F.js} +2 -2
  171. package/dist/chunk-N6LAWI4F.js.map +1 -0
  172. package/dist/{chunk-5VZ37TY3.js → chunk-NFJWD5BT.js} +2 -2
  173. package/dist/chunk-NFJWD5BT.js.map +1 -0
  174. package/dist/{chunk-ZPOVOEO3.js → chunk-NJLIHGU4.js} +2 -2
  175. package/dist/chunk-NJLIHGU4.js.map +1 -0
  176. package/dist/{chunk-PRD7JRQX.js → chunk-ONCQWOTH.js} +4 -4
  177. package/dist/{chunk-PRD7JRQX.js.map → chunk-ONCQWOTH.js.map} +1 -1
  178. package/dist/{chunk-ENOS6ETI.js → chunk-OZC6CDZF.js} +1 -1
  179. package/dist/{chunk-HKEAYSFS.js.map → chunk-OZC6CDZF.js.map} +1 -1
  180. package/dist/{chunk-TXFX4PMN.js → chunk-OZY4C4W5.js} +1 -1
  181. package/dist/{chunk-TXFX4PMN.js.map → chunk-OZY4C4W5.js.map} +1 -1
  182. package/dist/{chunk-NPMGYLJV.js → chunk-PIRYDEX2.js} +3 -3
  183. package/dist/chunk-PIRYDEX2.js.map +1 -0
  184. package/dist/{chunk-C57KK5VB.js → chunk-PM23USOC.js} +1 -1
  185. package/dist/chunk-PM23USOC.js.map +1 -0
  186. package/dist/{chunk-PGBF3UBX.js → chunk-QKL5TECH.js} +1 -1
  187. package/dist/chunk-QKL5TECH.js.map +1 -0
  188. package/dist/{chunk-Z47KIPCT.js → chunk-QY5JEUJT.js} +1 -1
  189. package/dist/chunk-QY5JEUJT.js.map +1 -0
  190. package/dist/{chunk-FVGFPB73.js → chunk-RPVKF4RR.js} +1 -1
  191. package/dist/{chunk-FVGFPB73.js.map → chunk-RPVKF4RR.js.map} +1 -1
  192. package/dist/{chunk-NM2DEHFZ.js → chunk-RXYKJIC4.js} +1 -1
  193. package/dist/chunk-RXYKJIC4.js.map +1 -0
  194. package/dist/{chunk-W64RAX4N.js → chunk-TKYNYIJS.js} +5 -5
  195. package/dist/chunk-TKYNYIJS.js.map +1 -0
  196. package/dist/{chunk-S4TLZRGZ.js → chunk-UMXWOA3I.js} +1 -1
  197. package/dist/chunk-UMXWOA3I.js.map +1 -0
  198. package/dist/{chunk-VA4NPCUQ.js → chunk-VD7QFUAP.js} +3 -3
  199. package/dist/chunk-VD7QFUAP.js.map +1 -0
  200. package/dist/{chunk-MDSP7DJR.js → chunk-VQELCPQJ.js} +5 -5
  201. package/dist/chunk-VQELCPQJ.js.map +1 -0
  202. package/dist/{chunk-2FCQCWIK.js → chunk-VXNBXW3P.js} +5 -5
  203. package/dist/chunk-VXNBXW3P.js.map +1 -0
  204. package/dist/{chunk-B47WSPMP.js → chunk-WPUDPH2Q.js} +1 -1
  205. package/dist/chunk-WPUDPH2Q.js.map +1 -0
  206. package/dist/{chunk-SG2RKUVJ.js → chunk-WTZUMVJI.js} +5 -5
  207. package/dist/chunk-WTZUMVJI.js.map +1 -0
  208. package/dist/{chunk-EDQLPCM4.js → chunk-WVZF6WK3.js} +2 -2
  209. package/dist/chunk-WVZF6WK3.js.map +1 -0
  210. package/dist/{chunk-5D7NMUF6.js → chunk-XDAETKWM.js} +2 -2
  211. package/dist/chunk-XDAETKWM.js.map +1 -0
  212. package/dist/{chunk-QD6SNXF5.js → chunk-XDWSGNL4.js} +3 -3
  213. package/dist/chunk-XDWSGNL4.js.map +1 -0
  214. package/dist/{chunk-SB5WSVPI.js → chunk-ZFH2BYXW.js} +2 -2
  215. package/dist/chunk-ZFH2BYXW.js.map +1 -0
  216. package/dist/{chunk-XVLWVTQA.js → chunk-ZI7K742O.js} +1 -1
  217. package/dist/{chunk-XVLWVTQA.js.map → chunk-ZI7K742O.js.map} +1 -1
  218. package/dist/{chunk-NQENOT6L.js → chunk-ZRRWSKV3.js} +8 -8
  219. package/dist/chunk-ZRRWSKV3.js.map +1 -0
  220. package/dist/cn.js +1 -1
  221. package/dist/code-block.d.ts +2 -2
  222. package/dist/code-block.js +2 -2
  223. package/dist/code-block.js.map +1 -1
  224. package/dist/collection-switcher.d.ts +1 -1
  225. package/dist/collection-switcher.js +1 -1
  226. package/dist/collection-switcher.js.map +1 -1
  227. package/dist/columns.d.ts +2 -2
  228. package/dist/columns.js.map +1 -1
  229. package/dist/combobox.js +4 -4
  230. package/dist/command.d.ts +10 -10
  231. package/dist/command.js +4 -4
  232. package/dist/command.js.map +1 -1
  233. package/dist/comparison-table.d.ts +1 -1
  234. package/dist/comparison-table.js +1 -1
  235. package/dist/comparison-table.js.map +1 -1
  236. package/dist/component-page.d.ts +1 -1
  237. package/dist/component-page.js.map +1 -1
  238. package/dist/confirm-button.d.ts +1 -1
  239. package/dist/confirm-button.js +4 -4
  240. package/dist/contact-page.d.ts +1 -1
  241. package/dist/contact-page.js.map +1 -1
  242. package/dist/continue-prompt.d.ts +1 -1
  243. package/dist/continue-prompt.js +1 -1
  244. package/dist/continue-prompt.js.map +1 -1
  245. package/dist/copy-button.d.ts +1 -1
  246. package/dist/copy-button.js +4 -4
  247. package/dist/copy-button.js.map +1 -1
  248. package/dist/countdown.d.ts +1 -1
  249. package/dist/countdown.js.map +1 -1
  250. package/dist/cover-hero.d.ts +1 -1
  251. package/dist/cover-hero.js +5 -5
  252. package/dist/cover-hero.js.map +1 -1
  253. package/dist/cta-panel.d.ts +1 -1
  254. package/dist/cta-panel.js +1 -1
  255. package/dist/cta-panel.js.map +1 -1
  256. package/dist/dashboard-layout.d.ts +2 -2
  257. package/dist/dashboard-layout.js.map +1 -1
  258. package/dist/data-table.d.ts +5 -5
  259. package/dist/data-table.js +9 -9
  260. package/dist/date-picker.d.ts +11 -11
  261. package/dist/date-picker.js +5 -5
  262. package/dist/date-picker.js.map +1 -1
  263. package/dist/decision-list.d.ts +1 -1
  264. package/dist/decision-list.js +2 -2
  265. package/dist/decision-list.js.map +1 -1
  266. package/dist/description-list.d.ts +2 -2
  267. package/dist/description-list.js.map +1 -1
  268. package/dist/detail-layout.d.ts +5 -5
  269. package/dist/detail-layout.js +1 -1
  270. package/dist/detail-layout.js.map +1 -1
  271. package/dist/{dialog-DpUwec2g.d.ts → dialog-CFnxFGyn.d.ts} +7 -7
  272. package/dist/dialog.d.ts +2 -2
  273. package/dist/dialog.js +4 -4
  274. package/dist/dialog.js.map +1 -1
  275. package/dist/docs-article-page.d.ts +1 -1
  276. package/dist/docs-article-page.js.map +1 -1
  277. package/dist/docs-hub-page.d.ts +1 -1
  278. package/dist/docs-hub-page.js.map +1 -1
  279. package/dist/docs-layout.d.ts +1 -1
  280. package/dist/docs-layout.js +1 -1
  281. package/dist/docs-layout.js.map +1 -1
  282. package/dist/docs-nav.d.ts +1 -1
  283. package/dist/docs-nav.js +1 -1
  284. package/dist/docs-nav.js.map +1 -1
  285. package/dist/document-viewer.d.ts +2 -2
  286. package/dist/document-viewer.js +3 -3
  287. package/dist/document-viewer.js.map +1 -1
  288. package/dist/doodle.d.ts +1 -1
  289. package/dist/doodle.js +1 -1
  290. package/dist/doodle.js.map +1 -1
  291. package/dist/drop-overlay.d.ts +1 -1
  292. package/dist/drop-overlay.js +1 -1
  293. package/dist/drop-overlay.js.map +1 -1
  294. package/dist/dropdown-menu.d.ts +8 -8
  295. package/dist/dropdown-menu.js +2 -2
  296. package/dist/embed-facade.js +1 -1
  297. package/dist/empty-state.d.ts +1 -1
  298. package/dist/empty-state.js.map +1 -1
  299. package/dist/engine-flow.d.ts +1 -1
  300. package/dist/engine-flow.js +1 -1
  301. package/dist/engine-flow.js.map +1 -1
  302. package/dist/entity-header.d.ts +1 -1
  303. package/dist/entity-header.js +1 -1
  304. package/dist/entity-header.js.map +1 -1
  305. package/dist/environment-notice.d.ts +1 -1
  306. package/dist/environment-notice.js.map +1 -1
  307. package/dist/error-page.d.ts +1 -1
  308. package/dist/error-page.js +1 -1
  309. package/dist/error-page.js.map +1 -1
  310. package/dist/field.d.ts +3 -3
  311. package/dist/field.js +1 -1
  312. package/dist/field.js.map +1 -1
  313. package/dist/file-upload.d.ts +1 -1
  314. package/dist/file-upload.js +1 -1
  315. package/dist/file-upload.js.map +1 -1
  316. package/dist/filter-bar.d.ts +2 -2
  317. package/dist/filter-bar.js +4 -4
  318. package/dist/flock.d.ts +1 -1
  319. package/dist/flock.js +2 -2
  320. package/dist/flock.js.map +1 -1
  321. package/dist/footnote.d.ts +3 -3
  322. package/dist/footnote.js +1 -1
  323. package/dist/footnote.js.map +1 -1
  324. package/dist/force-update-screen.d.ts +1 -1
  325. package/dist/force-update-screen.js +3 -3
  326. package/dist/force-update-screen.js.map +1 -1
  327. package/dist/form/server.js.map +1 -1
  328. package/dist/form.d.ts +12 -12
  329. package/dist/form.js +4 -4
  330. package/dist/form.js.map +1 -1
  331. package/dist/{frame-CmDztC_y.d.ts → frame-D5HU_cG8.d.ts} +2 -2
  332. package/dist/gallery-page.d.ts +1 -1
  333. package/dist/gallery-page.js +1 -1
  334. package/dist/gallery-page.js.map +1 -1
  335. package/dist/genui.d.ts +2 -2
  336. package/dist/genui.js +9 -9
  337. package/dist/genui.js.map +1 -1
  338. package/dist/glossary-term.js +2 -2
  339. package/dist/glow-card.d.ts +1 -1
  340. package/dist/glow-card.js +1 -1
  341. package/dist/glow-card.js.map +1 -1
  342. package/dist/goal-gauge.d.ts +1 -1
  343. package/dist/goal-gauge.js +1 -1
  344. package/dist/goal-gauge.js.map +1 -1
  345. package/dist/grade-stamp.d.ts +1 -1
  346. package/dist/grade-stamp.js +2 -2
  347. package/dist/grade-stamp.js.map +1 -1
  348. package/dist/identity-card.d.ts +1 -1
  349. package/dist/identity-card.js +5 -5
  350. package/dist/identity-card.js.map +1 -1
  351. package/dist/image-cropper.d.ts +1 -1
  352. package/dist/image-cropper.js +3 -3
  353. package/dist/image-cropper.js.map +1 -1
  354. package/dist/index.d.ts +5 -5
  355. package/dist/index.js +2 -2
  356. package/dist/index.js.map +1 -1
  357. package/dist/kanban.d.ts +1 -1
  358. package/dist/kanban.js.map +1 -1
  359. package/dist/kbd.d.ts +1 -1
  360. package/dist/kbd.js.map +1 -1
  361. package/dist/kind-config-editor.js +8 -8
  362. package/dist/kind-config-editor.js.map +1 -1
  363. package/dist/kpi-explained.js +1 -1
  364. package/dist/kpi-explained.js.map +1 -1
  365. package/dist/landing-page.d.ts +1 -1
  366. package/dist/landing-page.js.map +1 -1
  367. package/dist/landscape.d.ts +1 -1
  368. package/dist/landscape.js +2 -2
  369. package/dist/landscape.js.map +1 -1
  370. package/dist/language-switch.d.ts +10 -10
  371. package/dist/language-switch.js +1 -1
  372. package/dist/legal-page.d.ts +1 -1
  373. package/dist/legal-page.js.map +1 -1
  374. package/dist/{lightbox-MRB2YZEP.js → lightbox-JLWASIJC.js} +4 -4
  375. package/dist/link-card.d.ts +1 -1
  376. package/dist/link-card.js +4 -4
  377. package/dist/list.d.ts +1 -1
  378. package/dist/list.js +2 -2
  379. package/dist/list.js.map +1 -1
  380. package/dist/loader.d.ts +2 -2
  381. package/dist/loader.js +1 -1
  382. package/dist/loader.js.map +1 -1
  383. package/dist/longform-page.d.ts +1 -1
  384. package/dist/longform-page.js +1 -1
  385. package/dist/longform-page.js.map +1 -1
  386. package/dist/maintenance-screen.d.ts +1 -1
  387. package/dist/maintenance-screen.js +3 -3
  388. package/dist/maintenance-screen.js.map +1 -1
  389. package/dist/map/cards.d.ts +2 -2
  390. package/dist/map/cards.js +1 -1
  391. package/dist/map/cards.js.map +1 -1
  392. package/dist/map/pin.js +1 -1
  393. package/dist/map/sheet.d.ts +1 -1
  394. package/dist/map/sheet.js +1 -1
  395. package/dist/map/sheet.js.map +1 -1
  396. package/dist/map.d.ts +11 -11
  397. package/dist/map.js +4 -4
  398. package/dist/map.js.map +1 -1
  399. package/dist/margin-layout.d.ts +2 -2
  400. package/dist/margin-layout.js.map +1 -1
  401. package/dist/markdown.d.ts +1 -1
  402. package/dist/markdown.js.map +1 -1
  403. package/dist/marketing-layout.d.ts +1 -1
  404. package/dist/marketing-layout.js.map +1 -1
  405. package/dist/mascot-quote.d.ts +1 -1
  406. package/dist/mascot-quote.js +2 -2
  407. package/dist/mascot-quote.js.map +1 -1
  408. package/dist/mascot-state.d.ts +5 -5
  409. package/dist/mascot-state.js +1 -1
  410. package/dist/mascot-state.js.map +1 -1
  411. package/dist/mascots.d.ts +2 -2
  412. package/dist/mascots.js +2 -2
  413. package/dist/mascots.js.map +1 -1
  414. package/dist/match-dialog.d.ts +1 -1
  415. package/dist/match-dialog.js +4 -4
  416. package/dist/match-dialog.js.map +1 -1
  417. package/dist/media-capture.d.ts +1 -1
  418. package/dist/media-capture.js +1 -1
  419. package/dist/media-capture.js.map +1 -1
  420. package/dist/media-carousel.js +5 -5
  421. package/dist/media-carousel.js.map +1 -1
  422. package/dist/media-gallery.d.ts +1 -1
  423. package/dist/media-gallery.js +1 -1
  424. package/dist/media-gallery.js.map +1 -1
  425. package/dist/media-player.d.ts +1 -1
  426. package/dist/media-player.js +4 -4
  427. package/dist/meter.d.ts +2 -2
  428. package/dist/meter.js +1 -1
  429. package/dist/money-input.d.ts +1 -1
  430. package/dist/money-input.js +3 -3
  431. package/dist/motion.d.ts +1 -1
  432. package/dist/motion.js +1 -1
  433. package/dist/native/form.d.ts +12 -12
  434. package/dist/native/form.js +4 -4
  435. package/dist/native/form.js.map +1 -1
  436. package/dist/native/list.d.ts +1 -1
  437. package/dist/native/list.js.map +1 -1
  438. package/dist/native/map.d.ts +4 -4
  439. package/dist/native/map.js +2 -2
  440. package/dist/native/map.js.map +1 -1
  441. package/dist/native/markdown.js.map +1 -1
  442. package/dist/native/media-capture.d.ts +1 -1
  443. package/dist/native/media-capture.js.map +1 -1
  444. package/dist/native/media-picker.d.ts +1 -1
  445. package/dist/native/media-picker.js.map +1 -1
  446. package/dist/native/vertical-video.d.ts +2 -2
  447. package/dist/native/vertical-video.js.map +1 -1
  448. package/dist/native/video-player.d.ts +1 -1
  449. package/dist/native/video-player.js.map +1 -1
  450. package/dist/native.d.ts +95 -95
  451. package/dist/native.js +13 -13
  452. package/dist/native.js.map +1 -1
  453. package/dist/nav-bar.d.ts +13 -13
  454. package/dist/nav-bar.js +5 -5
  455. package/dist/nav-bar.js.map +1 -1
  456. package/dist/notification-preferences.js +3 -3
  457. package/dist/number-ticker.d.ts +1 -1
  458. package/dist/number-ticker.js +1 -1
  459. package/dist/number-ticker.js.map +1 -1
  460. package/dist/opening-hours.d.ts +1 -1
  461. package/dist/opening-hours.js +1 -1
  462. package/dist/opening-hours.js.map +1 -1
  463. package/dist/{page-DPHDmDAQ.d.ts → page-Ufnb5TrQ.d.ts} +5 -5
  464. package/dist/page-header.d.ts +1 -1
  465. package/dist/page-header.js.map +1 -1
  466. package/dist/page-hero.d.ts +1 -1
  467. package/dist/page-hero.js +5 -5
  468. package/dist/page-hero.js.map +1 -1
  469. package/dist/page-index.d.ts +1 -1
  470. package/dist/page-index.js +2 -2
  471. package/dist/page-index.js.map +1 -1
  472. package/dist/page.d.ts +1 -1
  473. package/dist/page.js +3 -3
  474. package/dist/pagination.d.ts +1 -1
  475. package/dist/pagination.js +1 -1
  476. package/dist/pagination.js.map +1 -1
  477. package/dist/pausable-loop.js +2 -2
  478. package/dist/platform-bar.d.ts +102 -0
  479. package/dist/platform-bar.js +42 -0
  480. package/dist/platform-bar.js.map +1 -0
  481. package/dist/{player-lightbox-BYQ57OXT.js → player-lightbox-SJR3GB7U.js} +5 -5
  482. package/dist/player-lightbox-SJR3GB7U.js.map +1 -0
  483. package/dist/pointer-light.d.ts +1 -1
  484. package/dist/pointer-light.js.map +1 -1
  485. package/dist/popover.d.ts +1 -1
  486. package/dist/popover.js +1 -1
  487. package/dist/popover.js.map +1 -1
  488. package/dist/price-catalogue-editor.js +8 -8
  489. package/dist/price-catalogue-editor.js.map +1 -1
  490. package/dist/pricing-page.d.ts +1 -1
  491. package/dist/pricing-page.js +1 -1
  492. package/dist/pricing-page.js.map +1 -1
  493. package/dist/product-page.d.ts +1 -1
  494. package/dist/product-page.js +1 -1
  495. package/dist/product-page.js.map +1 -1
  496. package/dist/profile-card.d.ts +3 -3
  497. package/dist/profile-card.js +1 -1
  498. package/dist/profile-card.js.map +1 -1
  499. package/dist/progress.d.ts +1 -1
  500. package/dist/progress.js.map +1 -1
  501. package/dist/promise-card.d.ts +1 -1
  502. package/dist/promise-card.js +1 -1
  503. package/dist/promise-card.js.map +1 -1
  504. package/dist/promo-code-field.js +4 -4
  505. package/dist/proposal.js +5 -5
  506. package/dist/qr-code.js +6 -6
  507. package/dist/qr-code.js.map +1 -1
  508. package/dist/quota-meter.d.ts +1 -1
  509. package/dist/quota-meter.js +1 -1
  510. package/dist/quota-meter.js.map +1 -1
  511. package/dist/radio-group.d.ts +5 -5
  512. package/dist/radio-group.js +3 -3
  513. package/dist/radio-group.js.map +1 -1
  514. package/dist/rail-nav.d.ts +4 -4
  515. package/dist/rail-nav.js +3 -3
  516. package/dist/rail-nav.js.map +1 -1
  517. package/dist/recipes.js +1 -1
  518. package/dist/recipes.js.map +1 -1
  519. package/dist/retro-tv-playlist.d.ts +1 -1
  520. package/dist/retro-tv-playlist.js.map +1 -1
  521. package/dist/retro-tv.js +6 -6
  522. package/dist/retro-tv.js.map +1 -1
  523. package/dist/reviews.js +3 -3
  524. package/dist/{schema-Dkn0uX72.d.ts → schema-Dd05m48Q.d.ts} +1 -1
  525. package/dist/schema-form.js +7 -7
  526. package/dist/schema-form.js.map +1 -1
  527. package/dist/scroll-stage.d.ts +2 -2
  528. package/dist/scroll-stage.js +2 -2
  529. package/dist/scroll-stage.js.map +1 -1
  530. package/dist/search-field.d.ts +1 -1
  531. package/dist/search-field.js +2 -2
  532. package/dist/section-backdrop.d.ts +1 -1
  533. package/dist/section-backdrop.js +1 -1
  534. package/dist/separator.d.ts +1 -1
  535. package/dist/separator.js.map +1 -1
  536. package/dist/service-card.d.ts +1 -1
  537. package/dist/service-card.js +6 -6
  538. package/dist/service-card.js.map +1 -1
  539. package/dist/settings-layout.d.ts +3 -3
  540. package/dist/settings-layout.js +2 -2
  541. package/dist/shop/booking.d.ts +1 -1
  542. package/dist/shop/booking.js +4 -4
  543. package/dist/shop/booking.js.map +1 -1
  544. package/dist/shop/bulletin.d.ts +1 -1
  545. package/dist/shop/bulletin.js +2 -2
  546. package/dist/shop/bulletin.js.map +1 -1
  547. package/dist/shop/faq.d.ts +1 -1
  548. package/dist/shop/faq.js +3 -3
  549. package/dist/shop/faq.js.map +1 -1
  550. package/dist/shop/gallery.d.ts +1 -1
  551. package/dist/shop/gallery.js +3 -3
  552. package/dist/shop/gallery.js.map +1 -1
  553. package/dist/shop/hero.d.ts +1 -1
  554. package/dist/shop/hero.js +2 -2
  555. package/dist/shop/hero.js.map +1 -1
  556. package/dist/shop/policies.d.ts +1 -1
  557. package/dist/shop/policies.js +2 -2
  558. package/dist/shop/policies.js.map +1 -1
  559. package/dist/shop/reviews.d.ts +1 -1
  560. package/dist/shop/reviews.js +2 -2
  561. package/dist/shop/reviews.js.map +1 -1
  562. package/dist/shop/services.d.ts +1 -1
  563. package/dist/shop/services.js +4 -4
  564. package/dist/shop/services.js.map +1 -1
  565. package/dist/shop/social.d.ts +1 -1
  566. package/dist/shop/social.js +2 -2
  567. package/dist/shop/social.js.map +1 -1
  568. package/dist/shop/story.d.ts +1 -1
  569. package/dist/shop/story.js +2 -2
  570. package/dist/shop/story.js.map +1 -1
  571. package/dist/shop/team.d.ts +1 -1
  572. package/dist/shop/team.js +2 -2
  573. package/dist/shop/team.js.map +1 -1
  574. package/dist/shop/video.d.ts +1 -1
  575. package/dist/shop/video.js +2 -2
  576. package/dist/shop/video.js.map +1 -1
  577. package/dist/shop/visit.d.ts +1 -1
  578. package/dist/shop/visit.js +2 -2
  579. package/dist/shop/visit.js.map +1 -1
  580. package/dist/shop-composer.js +2 -2
  581. package/dist/shop-composer.js.map +1 -1
  582. package/dist/shop-gallery.d.ts +1 -1
  583. package/dist/shop-gallery.js +2 -2
  584. package/dist/shop-gallery.js.map +1 -1
  585. package/dist/shop.d.ts +3 -3
  586. package/dist/shop.js +2 -2
  587. package/dist/showcase.d.ts +1 -1
  588. package/dist/showcase.js +6 -6
  589. package/dist/showcase.js.map +1 -1
  590. package/dist/signature.d.ts +1 -1
  591. package/dist/signature.js +2 -2
  592. package/dist/signature.js.map +1 -1
  593. package/dist/site-cahier.d.ts +8 -5
  594. package/dist/site-cahier.js +24 -10
  595. package/dist/site-cahier.js.map +1 -1
  596. package/dist/site-footer.d.ts +21 -6
  597. package/dist/site-footer.js +15 -1
  598. package/dist/site-footer.js.map +1 -1
  599. package/dist/skeleton.d.ts +3 -3
  600. package/dist/skeleton.js.map +1 -1
  601. package/dist/skip-link.d.ts +1 -1
  602. package/dist/skip-link.js +1 -1
  603. package/dist/slider.d.ts +1 -1
  604. package/dist/slider.js +2 -2
  605. package/dist/slider.js.map +1 -1
  606. package/dist/slot-picker.d.ts +1 -1
  607. package/dist/slot-picker.js +1 -1
  608. package/dist/slot-picker.js.map +1 -1
  609. package/dist/specimen-tag.d.ts +2 -2
  610. package/dist/specimen-tag.js +2 -2
  611. package/dist/speed-lines.d.ts +1 -1
  612. package/dist/speed-lines.js +1 -1
  613. package/dist/speed-lines.js.map +1 -1
  614. package/dist/spinner.d.ts +2 -2
  615. package/dist/spinner.js +1 -1
  616. package/dist/spinner.js.map +1 -1
  617. package/dist/split-view.d.ts +1 -1
  618. package/dist/split-view.js.map +1 -1
  619. package/dist/stage-banner.d.ts +1 -1
  620. package/dist/stage-banner.js +1 -1
  621. package/dist/stage-banner.js.map +1 -1
  622. package/dist/stat.d.ts +2 -2
  623. package/dist/stat.js +1 -1
  624. package/dist/status-chip.js +4 -4
  625. package/dist/status-chip.js.map +1 -1
  626. package/dist/status-page.d.ts +1 -1
  627. package/dist/status-page.js.map +1 -1
  628. package/dist/step-progress.d.ts +1 -1
  629. package/dist/step-progress.js.map +1 -1
  630. package/dist/step-showcase.d.ts +2 -2
  631. package/dist/step-showcase.js +3 -3
  632. package/dist/step-showcase.js.map +1 -1
  633. package/dist/stepper.d.ts +1 -1
  634. package/dist/stepper.js +1 -1
  635. package/dist/stepper.js.map +1 -1
  636. package/dist/sticky-action.d.ts +1 -1
  637. package/dist/sticky-action.js.map +1 -1
  638. package/dist/stuck.d.ts +1 -1
  639. package/dist/stuck.js +1 -1
  640. package/dist/stuck.js.map +1 -1
  641. package/dist/swipe-deck.d.ts +2 -2
  642. package/dist/swipe-deck.js.map +1 -1
  643. package/dist/switch.d.ts +1 -1
  644. package/dist/switch.js +1 -1
  645. package/dist/tabs.d.ts +6 -6
  646. package/dist/tabs.js +1 -1
  647. package/dist/tabs.js.map +1 -1
  648. package/dist/tag-input.d.ts +1 -1
  649. package/dist/tag-input.js +4 -4
  650. package/dist/tag-input.js.map +1 -1
  651. package/dist/tag-selector.d.ts +1 -1
  652. package/dist/tag-selector.js +3 -3
  653. package/dist/tag-selector.js.map +1 -1
  654. package/dist/taped-photo.d.ts +1 -1
  655. package/dist/taped-photo.js +2 -2
  656. package/dist/terminal-replay.d.ts +1 -1
  657. package/dist/terminal-replay.js +3 -3
  658. package/dist/terminal-replay.js.map +1 -1
  659. package/dist/text-style/server.d.ts +1 -1
  660. package/dist/text-style/server.js.map +1 -1
  661. package/dist/text-style.d.ts +2 -2
  662. package/dist/text-style.js.map +1 -1
  663. package/dist/theme.d.ts +3 -3
  664. package/dist/theme.js +3 -3
  665. package/dist/theme.js.map +1 -1
  666. package/dist/toast.d.ts +1 -1
  667. package/dist/toast.js +2 -2
  668. package/dist/toast.js.map +1 -1
  669. package/dist/toc.d.ts +2 -2
  670. package/dist/toc.js +1 -1
  671. package/dist/toc.js.map +1 -1
  672. package/dist/tooltip.d.ts +1 -1
  673. package/dist/tooltip.js +2 -2
  674. package/dist/tree-view.d.ts +1 -1
  675. package/dist/tree-view.js +2 -2
  676. package/dist/tree-view.js.map +1 -1
  677. package/dist/update-prompt.d.ts +1 -1
  678. package/dist/update-prompt.js +3 -3
  679. package/dist/update-prompt.js.map +1 -1
  680. package/dist/upload-queue.d.ts +2 -2
  681. package/dist/upload-queue.js +1 -1
  682. package/dist/upload-queue.js.map +1 -1
  683. package/dist/usage.d.ts +4 -4
  684. package/dist/usage.js +3 -3
  685. package/dist/usage.js.map +1 -1
  686. package/dist/verified-badge.d.ts +1 -1
  687. package/dist/verified-badge.js.map +1 -1
  688. package/dist/versus-card.d.ts +1 -1
  689. package/dist/versus-card.js +2 -2
  690. package/dist/versus-card.js.map +1 -1
  691. package/dist/vertical-video.d.ts +2 -2
  692. package/dist/vertical-video.js +6 -6
  693. package/dist/vertical-video.js.map +1 -1
  694. package/dist/video-player.d.ts +1 -1
  695. package/dist/video-player.js +5 -5
  696. package/dist/video-trimmer.d.ts +1 -1
  697. package/dist/video-trimmer.js.map +1 -1
  698. package/dist/virtual.d.ts +2 -2
  699. package/dist/virtual.js +1 -1
  700. package/dist/wall.js +2 -2
  701. package/dist/wall.js.map +1 -1
  702. package/dist/waveform.d.ts +1 -1
  703. package/dist/waveform.js.map +1 -1
  704. package/package.json +28 -8
  705. package/registry/account-menu.json +1 -1
  706. package/registry/account-settings.json +18 -18
  707. package/registry/achievement.json +2 -2
  708. package/registry/action-bar.json +4 -4
  709. package/registry/activity-feed.json +3 -3
  710. package/registry/agenda.json +1 -1
  711. package/registry/alert.json +2 -2
  712. package/registry/analysis-report.json +2 -2
  713. package/registry/anatomy-plate.json +2 -2
  714. package/registry/app-frame.json +7 -7
  715. package/registry/app-header.json +5 -5
  716. package/registry/app-shell.json +3 -3
  717. package/registry/architecture-diagram.json +2 -2
  718. package/registry/argument-card.json +4 -4
  719. package/registry/auth-layout.json +2 -2
  720. package/registry/avatar.json +4 -4
  721. package/registry/badge.json +2 -2
  722. package/registry/bird-plate.json +2 -2
  723. package/registry/button.json +6 -2
  724. package/registry/captcha.json +2 -2
  725. package/registry/card-grid.json +2 -2
  726. package/registry/card.json +2 -2
  727. package/registry/catalogue-page.json +2 -2
  728. package/registry/changelog-page.json +3 -3
  729. package/registry/chapter.json +3 -3
  730. package/registry/chat.json +2 -2
  731. package/registry/checkbox.json +2 -2
  732. package/registry/chip-link.json +2 -2
  733. package/registry/chip-row.json +2 -2
  734. package/registry/chip.json +3 -3
  735. package/registry/choice-grid.json +3 -3
  736. package/registry/cn.json +1 -1
  737. package/registry/code-block.json +3 -3
  738. package/registry/collection-switcher.json +3 -3
  739. package/registry/columns.json +2 -2
  740. package/registry/combobox.json +3 -3
  741. package/registry/command.json +2 -2
  742. package/registry/comparison-table.json +2 -2
  743. package/registry/component-page.json +2 -2
  744. package/registry/confirm-button.json +2 -2
  745. package/registry/contact-page.json +2 -2
  746. package/registry/continue-prompt.json +2 -2
  747. package/registry/copy-button.json +3 -3
  748. package/registry/countdown.json +2 -2
  749. package/registry/cover-hero.json +4 -4
  750. package/registry/cta-panel.json +2 -2
  751. package/registry/dashboard-layout.json +3 -3
  752. package/registry/data-table.json +5 -5
  753. package/registry/date-picker.json +9 -9
  754. package/registry/decision-list.json +3 -3
  755. package/registry/description-list.json +2 -2
  756. package/registry/desktop-window.json +1 -1
  757. package/registry/detail-layout.json +2 -2
  758. package/registry/dialog.json +3 -3
  759. package/registry/docs-article-page.json +2 -2
  760. package/registry/docs-hub-page.json +2 -2
  761. package/registry/docs-layout.json +3 -3
  762. package/registry/docs-nav.json +2 -2
  763. package/registry/document-viewer.json +3 -3
  764. package/registry/doodle.json +2 -2
  765. package/registry/drop-overlay.json +2 -2
  766. package/registry/dropdown-menu.json +2 -2
  767. package/registry/elephant.json +1 -1
  768. package/registry/embed-facade.json +1 -1
  769. package/registry/empty-state.json +2 -2
  770. package/registry/engine-flow.json +2 -2
  771. package/registry/entity-header.json +3 -3
  772. package/registry/environment-notice.json +2 -2
  773. package/registry/error-page.json +2 -2
  774. package/registry/examples/platform-bar/demo.d.ts +4 -0
  775. package/registry/examples/platform-bar/demo.js +24 -0
  776. package/registry/examples/platform-bar/demo.tsx +20 -0
  777. package/registry/examples/platform-bar/live.d.ts +4 -0
  778. package/registry/examples/platform-bar/live.js +22 -0
  779. package/registry/examples/platform-bar/live.tsx +22 -0
  780. package/registry/examples/site-footer/hosted.d.ts +4 -0
  781. package/registry/examples/site-footer/hosted.js +25 -0
  782. package/registry/examples/site-footer/hosted.tsx +23 -0
  783. package/registry/field.json +2 -2
  784. package/registry/file-upload.json +3 -3
  785. package/registry/filter-bar.json +5 -5
  786. package/registry/flock.json +2 -2
  787. package/registry/footnote.json +2 -2
  788. package/registry/force-update-screen.json +2 -2
  789. package/registry/form.json +65 -65
  790. package/registry/gallery-page.json +2 -2
  791. package/registry/genui.json +3 -3
  792. package/registry/glossary-term.json +1 -1
  793. package/registry/glossary.json +1 -1
  794. package/registry/glow-card.json +2 -2
  795. package/registry/goal-gauge.json +2 -2
  796. package/registry/grade-stamp.json +2 -2
  797. package/registry/identity-card.json +2 -2
  798. package/registry/image-cropper.json +2 -2
  799. package/registry/index.json +40 -9
  800. package/registry/kanban.json +2 -2
  801. package/registry/kbd.json +2 -2
  802. package/registry/kind-config-editor.json +3 -3
  803. package/registry/kpi-explained.json +2 -2
  804. package/registry/landing-page.json +2 -2
  805. package/registry/landscape.json +2 -2
  806. package/registry/language-switch.json +2 -2
  807. package/registry/legal-page.json +2 -2
  808. package/registry/link-card.json +4 -4
  809. package/registry/list.json +3 -3
  810. package/registry/loader.json +2 -2
  811. package/registry/longform-page.json +2 -2
  812. package/registry/maintenance-screen.json +2 -2
  813. package/registry/map.json +8 -8
  814. package/registry/margin-layout.json +2 -2
  815. package/registry/markdown.json +2 -2
  816. package/registry/marketing-layout.json +2 -2
  817. package/registry/mascot-quote.json +2 -2
  818. package/registry/mascot-state.json +3 -3
  819. package/registry/mascots.json +4 -4
  820. package/registry/match-dialog.json +2 -2
  821. package/registry/media-capture.json +3 -3
  822. package/registry/media-gallery.json +5 -5
  823. package/registry/meter.json +2 -2
  824. package/registry/money-input.json +2 -2
  825. package/registry/nav-bar.json +9 -9
  826. package/registry/next-actions.json +1 -1
  827. package/registry/notification-preferences.json +1 -1
  828. package/registry/number-ticker.json +2 -2
  829. package/registry/opening-hours.json +3 -3
  830. package/registry/page-header.json +2 -2
  831. package/registry/page-hero.json +4 -4
  832. package/registry/page-index.json +3 -3
  833. package/registry/page.json +2 -2
  834. package/registry/pagination.json +3 -3
  835. package/registry/platform-bar.json +179 -0
  836. package/registry/pointer-light.json +2 -2
  837. package/registry/popover.json +2 -2
  838. package/registry/price-catalogue-editor.json +2 -2
  839. package/registry/pricing-page.json +3 -3
  840. package/registry/product-page.json +2 -2
  841. package/registry/profile-card.json +4 -4
  842. package/registry/progress.json +2 -2
  843. package/registry/promise-card.json +2 -2
  844. package/registry/promo-code-field.json +1 -1
  845. package/registry/proposal.json +1 -1
  846. package/registry/qr-code.json +3 -3
  847. package/registry/quota-meter.json +2 -2
  848. package/registry/radio-group.json +15 -15
  849. package/registry/rail-nav.json +9 -9
  850. package/registry/recipes.json +2 -2
  851. package/registry/retro-tv.json +4 -4
  852. package/registry/reviews.json +1 -1
  853. package/registry/router.json +1 -1
  854. package/registry/schema-form.json +2 -2
  855. package/registry/scroll-stage.json +2 -2
  856. package/registry/search-field.json +3 -3
  857. package/registry/section-backdrop.json +2 -2
  858. package/registry/separator.json +2 -2
  859. package/registry/service-card.json +4 -4
  860. package/registry/settings-layout.json +2 -2
  861. package/registry/shop-composer.json +4 -4
  862. package/registry/shop-gallery.json +2 -2
  863. package/registry/shop.json +18 -18
  864. package/registry/showcase.json +2 -2
  865. package/registry/signature.json +2 -2
  866. package/registry/site-cahier.json +3 -3
  867. package/registry/site-footer.json +57 -20
  868. package/registry/sites.json +1 -1
  869. package/registry/skeleton.json +2 -2
  870. package/registry/skip-link.json +2 -2
  871. package/registry/slider.json +2 -2
  872. package/registry/slot-picker.json +3 -3
  873. package/registry/slot.json +1 -1
  874. package/registry/specimen-tag.json +2 -2
  875. package/registry/speed-lines.json +2 -2
  876. package/registry/spinner.json +3 -3
  877. package/registry/split-view.json +2 -2
  878. package/registry/stage-banner.json +2 -2
  879. package/registry/stat.json +2 -2
  880. package/registry/status-chip.json +3 -3
  881. package/registry/status-page.json +2 -2
  882. package/registry/step-progress.json +2 -2
  883. package/registry/step-showcase.json +3 -3
  884. package/registry/stepper.json +2 -2
  885. package/registry/sticky-action.json +2 -2
  886. package/registry/stuck.json +2 -2
  887. package/registry/swipe-deck.json +2 -2
  888. package/registry/switch.json +2 -2
  889. package/registry/tabs.json +2 -2
  890. package/registry/tag-input.json +2 -2
  891. package/registry/tag-selector.json +2 -2
  892. package/registry/taped-photo.json +2 -2
  893. package/registry/terminal-replay.json +3 -3
  894. package/registry/text-style.json +9 -9
  895. package/registry/theme.json +2 -2
  896. package/registry/toast.json +2 -2
  897. package/registry/toc.json +2 -2
  898. package/registry/tooltip.json +2 -2
  899. package/registry/tree-view.json +3 -3
  900. package/registry/update-prompt.json +2 -2
  901. package/registry/upload-queue.json +2 -2
  902. package/registry/usage.json +3 -3
  903. package/registry/verified-badge.json +2 -2
  904. package/registry/versus-card.json +2 -2
  905. package/registry/vertical-video.json +3 -3
  906. package/registry/video-player.json +3 -3
  907. package/registry/video-trimmer.json +2 -2
  908. package/registry/virtual.json +4 -4
  909. package/registry/wall.json +2 -2
  910. package/registry/waveform.json +2 -2
  911. package/dist/chunk-2FCQCWIK.js.map +0 -1
  912. package/dist/chunk-43PTCDTL.js.map +0 -1
  913. package/dist/chunk-5D7NMUF6.js.map +0 -1
  914. package/dist/chunk-5PFCELGW.js.map +0 -1
  915. package/dist/chunk-5RWHDX5J.js.map +0 -1
  916. package/dist/chunk-5VZ37TY3.js.map +0 -1
  917. package/dist/chunk-757ZTGU5.js.map +0 -1
  918. package/dist/chunk-7DYZTEE3.js.map +0 -1
  919. package/dist/chunk-7P7I5OQV.js.map +0 -1
  920. package/dist/chunk-B47WSPMP.js.map +0 -1
  921. package/dist/chunk-C57KK5VB.js.map +0 -1
  922. package/dist/chunk-EB45EVPJ.js.map +0 -1
  923. package/dist/chunk-EDQLPCM4.js.map +0 -1
  924. package/dist/chunk-GHAN7OOE.js.map +0 -1
  925. package/dist/chunk-HLEBSAGC.js.map +0 -1
  926. package/dist/chunk-HP7BDMVK.js.map +0 -1
  927. package/dist/chunk-KH3JOEPY.js.map +0 -1
  928. package/dist/chunk-KR2W4ONJ.js.map +0 -1
  929. package/dist/chunk-LH5J3VLZ.js.map +0 -1
  930. package/dist/chunk-LNAAWT4Y.js.map +0 -1
  931. package/dist/chunk-MDSP7DJR.js.map +0 -1
  932. package/dist/chunk-NG6G6V5E.js.map +0 -1
  933. package/dist/chunk-NM2DEHFZ.js.map +0 -1
  934. package/dist/chunk-NPMGYLJV.js.map +0 -1
  935. package/dist/chunk-NQENOT6L.js.map +0 -1
  936. package/dist/chunk-NSLXEDIS.js.map +0 -1
  937. package/dist/chunk-OGWB76BR.js.map +0 -1
  938. package/dist/chunk-P7AFIKWG.js.map +0 -1
  939. package/dist/chunk-PGBF3UBX.js.map +0 -1
  940. package/dist/chunk-QA3WETWT.js.map +0 -1
  941. package/dist/chunk-QD6SNXF5.js.map +0 -1
  942. package/dist/chunk-QHVV2JGF.js.map +0 -1
  943. package/dist/chunk-QVHSV6RA.js.map +0 -1
  944. package/dist/chunk-S2O4NSN5.js.map +0 -1
  945. package/dist/chunk-S4TLZRGZ.js.map +0 -1
  946. package/dist/chunk-S6NYGOJT.js.map +0 -1
  947. package/dist/chunk-SB5WSVPI.js.map +0 -1
  948. package/dist/chunk-SG2RKUVJ.js.map +0 -1
  949. package/dist/chunk-V5RO6JYI.js.map +0 -1
  950. package/dist/chunk-V7W4RLRW.js.map +0 -1
  951. package/dist/chunk-VA4NPCUQ.js.map +0 -1
  952. package/dist/chunk-VPO27AFS.js.map +0 -1
  953. package/dist/chunk-W64RAX4N.js.map +0 -1
  954. package/dist/chunk-W675RFOA.js.map +0 -1
  955. package/dist/chunk-WC3SO4CE.js.map +0 -1
  956. package/dist/chunk-WEVYKZIF.js.map +0 -1
  957. package/dist/chunk-WU4VLSEA.js.map +0 -1
  958. package/dist/chunk-Y3P5B4XS.js.map +0 -1
  959. package/dist/chunk-YTYNKMNS.js.map +0 -1
  960. package/dist/chunk-Z47KIPCT.js.map +0 -1
  961. package/dist/chunk-ZPOVOEO3.js.map +0 -1
  962. package/dist/player-lightbox-BYQ57OXT.js.map +0 -1
  963. /package/dist/{chunk-HJFRHYCI.js.map → chunk-DTGRZXYO.js.map} +0 -0
  964. /package/dist/{chunk-PJNR4NTS.js.map → chunk-HC2TY45B.js.map} +0 -0
  965. /package/dist/{lightbox-MRB2YZEP.js.map → lightbox-JLWASIJC.js.map} +0 -0
@@ -39,7 +39,7 @@ type ComponentPageProps = Omit<React.HTMLAttributes<HTMLElement>, "title"> & {
39
39
  * A component's page: name, summary, facts, live preview, install, then its sections; facts and related aside.
40
40
  * @deprecated Since 3.55 (ADR-006, krizaka-ui#674): no product uses it. Removed in 4.0.
41
41
  */
42
- declare function ComponentPage({ back, eyebrow, title, summary, facts, preview, install, sections, aside, ...props }: ComponentPageProps): React.JSX.Element;
42
+ declare function ComponentPage({ back, eyebrow, title, summary, facts, preview, install, sections, aside, ...props }: Readonly<ComponentPageProps>): React.JSX.Element;
43
43
 
44
44
  export { ComponentPage };
45
45
  export type { ComponentPageProps, ComponentPageSection };
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/component-page/component-page.tsx"],"sourcesContent":["// Server-safe. The page of one component of a design system (what ui.krizaka.com draws from the registry): its\n// name, summary, status and platforms; the live preview with its code; installation; when to use it and when not; its\n// examples; its props; its accessibility — the facts in a side column that goes under the content on a phone.\nimport { CodeBlock } from \"@krizaka/ui/code-block\";\nimport { DetailLayout } from \"@krizaka/ui/detail-layout\";\nimport { type Fact, Facts, Section } from \"@krizaka/ui/page\";\nimport type * as React from \"react\";\n\nimport { warnDeprecated } from \"../deprecated\";\n\nexport interface ComponentPageSection {\n /** The section's anchor. */\n id: string;\n /** Its title (`When to use`, `Props`). */\n title: React.ReactNode;\n /** Its content (lists, a props table, examples). */\n children: React.ReactNode;\n}\n\nexport type ComponentPageProps = Omit<React.HTMLAttributes<HTMLElement>, \"title\"> & {\n /** The way back to the catalogue (your router's link). */\n back?: React.ReactNode;\n /** The category (`Blocks`, `Forms`). */\n eyebrow?: React.ReactNode;\n /** The component's name: the `h1`. */\n title: React.ReactNode;\n /** Its summary, in one sentence. */\n summary: React.ReactNode;\n /** Its status and platforms. */\n facts?: readonly Fact[];\n /** The live preview of its first example (a framed stage with its code). */\n preview: React.ReactNode;\n /** The line to install or import it, and the copy words. */\n install?: { code: string; language?: string; copyLabel: string; copiedLabel: string; file?: React.ReactNode };\n /** The sections, in reading order: when to use / not, examples, props, accessibility. */\n sections: readonly ComponentPageSection[];\n /** The side column: related components, source, the version. */\n aside?: React.ReactNode;\n};\n\n/**\n * A component's page: name, summary, facts, live preview, install, then its sections; facts and related aside.\n * @deprecated Since 3.55 (ADR-006, krizaka-ui#674): no product uses it. Removed in 4.0.\n */\nexport function ComponentPage({ back, eyebrow, title, summary, facts, preview, install, sections, aside, ...props }: ComponentPageProps) {\n warnDeprecated(\"component-page\");\n return (\n <DetailLayout back={back} eyebrow={eyebrow} title={title} meta={<span>{summary}</span>} aside={aside} {...props}>\n {facts && facts.length > 0 && <Facts items={facts} />}\n <div className=\"kz-tpl-stage\">{preview}</div>\n {install && <CodeBlock code={install.code} language={install.language ?? \"bash\"} file={install.file} copyLabel={install.copyLabel} copiedLabel={install.copiedLabel} />}\n <div className=\"kz-tpl-flush\">\n {sections.map((s) => (\n <Section key={s.id} id={s.id} title={s.title} headingSize=\"sm\" spacing=\"sm\" size=\"full\" divider>\n {s.children}\n </Section>\n ))}\n </div>\n </DetailLayout>\n );\n}\n"],"mappings":";;;;;AAGA,SAAS,iBAAiB;AAC1B,SAAS,oBAAoB;AAC7B,SAAoB,OAAO,eAAe;AA0CtC,SAAgE,KAAhE;AAHG,SAAS,cAAc,EAAE,MAAM,SAAS,OAAO,SAAS,OAAO,SAAS,SAAS,UAAU,OAAO,GAAG,MAAM,GAAuB;AACvI,iBAAe,gBAAgB;AAC/B,SACE,qBAAC,gBAAa,MAAY,SAAkB,OAAc,MAAM,oBAAC,UAAM,mBAAQ,GAAS,OAAe,GAAG,OACvG;AAAA,aAAS,MAAM,SAAS,KAAK,oBAAC,SAAM,OAAO,OAAO;AAAA,IACnD,oBAAC,SAAI,WAAU,gBAAgB,mBAAQ;AAAA,IACtC,WAAW,oBAAC,aAAU,MAAM,QAAQ,MAAM,UAAU,QAAQ,YAAY,QAAQ,MAAM,QAAQ,MAAM,WAAW,QAAQ,WAAW,aAAa,QAAQ,aAAa;AAAA,IACrK,oBAAC,SAAI,WAAU,gBACZ,mBAAS,IAAI,CAAC,MACb,oBAAC,WAAmB,IAAI,EAAE,IAAI,OAAO,EAAE,OAAO,aAAY,MAAK,SAAQ,MAAK,MAAK,QAAO,SAAO,MAC5F,YAAE,YADS,EAAE,EAEhB,CACD,GACH;AAAA,KACF;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../src/component-page/component-page.tsx"],"sourcesContent":["// Server-safe. The page of one component of a design system (what ui.krizaka.com draws from the registry): its\n// name, summary, status and platforms; the live preview with its code; installation; when to use it and when not; its\n// examples; its props; its accessibility — the facts in a side column that goes under the content on a phone.\nimport { CodeBlock } from \"@krizaka/ui/code-block\";\nimport { DetailLayout } from \"@krizaka/ui/detail-layout\";\nimport { type Fact, Facts, Section } from \"@krizaka/ui/page\";\nimport type * as React from \"react\";\n\nimport { warnDeprecated } from \"../deprecated\";\n\nexport interface ComponentPageSection {\n /** The section's anchor. */\n id: string;\n /** Its title (`When to use`, `Props`). */\n title: React.ReactNode;\n /** Its content (lists, a props table, examples). */\n children: React.ReactNode;\n}\n\nexport type ComponentPageProps = Omit<React.HTMLAttributes<HTMLElement>, \"title\"> & {\n /** The way back to the catalogue (your router's link). */\n back?: React.ReactNode;\n /** The category (`Blocks`, `Forms`). */\n eyebrow?: React.ReactNode;\n /** The component's name: the `h1`. */\n title: React.ReactNode;\n /** Its summary, in one sentence. */\n summary: React.ReactNode;\n /** Its status and platforms. */\n facts?: readonly Fact[];\n /** The live preview of its first example (a framed stage with its code). */\n preview: React.ReactNode;\n /** The line to install or import it, and the copy words. */\n install?: { code: string; language?: string; copyLabel: string; copiedLabel: string; file?: React.ReactNode };\n /** The sections, in reading order: when to use / not, examples, props, accessibility. */\n sections: readonly ComponentPageSection[];\n /** The side column: related components, source, the version. */\n aside?: React.ReactNode;\n};\n\n/**\n * A component's page: name, summary, facts, live preview, install, then its sections; facts and related aside.\n * @deprecated Since 3.55 (ADR-006, krizaka-ui#674): no product uses it. Removed in 4.0.\n */\nexport function ComponentPage({ back, eyebrow, title, summary, facts, preview, install, sections, aside, ...props }: Readonly<ComponentPageProps>) {\n warnDeprecated(\"component-page\");\n return (\n <DetailLayout back={back} eyebrow={eyebrow} title={title} meta={<span>{summary}</span>} aside={aside} {...props}>\n {facts && facts.length > 0 && <Facts items={facts} />}\n <div className=\"kz-tpl-stage\">{preview}</div>\n {install && <CodeBlock code={install.code} language={install.language ?? \"bash\"} file={install.file} copyLabel={install.copyLabel} copiedLabel={install.copiedLabel} />}\n <div className=\"kz-tpl-flush\">\n {sections.map((s) => (\n <Section key={s.id} id={s.id} title={s.title} headingSize=\"sm\" spacing=\"sm\" size=\"full\" divider>\n {s.children}\n </Section>\n ))}\n </div>\n </DetailLayout>\n );\n}\n"],"mappings":";;;;;AAGA,SAAS,iBAAiB;AAC1B,SAAS,oBAAoB;AAC7B,SAAoB,OAAO,eAAe;AA0CtC,SAAgE,KAAhE;AAHG,SAAS,cAAc,EAAE,MAAM,SAAS,OAAO,SAAS,OAAO,SAAS,SAAS,UAAU,OAAO,GAAG,MAAM,GAAiC;AACjJ,iBAAe,gBAAgB;AAC/B,SACE,qBAAC,gBAAa,MAAY,SAAkB,OAAc,MAAM,oBAAC,UAAM,mBAAQ,GAAS,OAAe,GAAG,OACvG;AAAA,aAAS,MAAM,SAAS,KAAK,oBAAC,SAAM,OAAO,OAAO;AAAA,IACnD,oBAAC,SAAI,WAAU,gBAAgB,mBAAQ;AAAA,IACtC,WAAW,oBAAC,aAAU,MAAM,QAAQ,MAAM,UAAU,QAAQ,YAAY,QAAQ,MAAM,QAAQ,MAAM,WAAW,QAAQ,WAAW,aAAa,QAAQ,aAAa;AAAA,IACrK,oBAAC,SAAI,WAAU,gBACZ,mBAAS,IAAI,CAAC,MACb,oBAAC,WAAmB,IAAI,EAAE,IAAI,OAAO,EAAE,OAAO,aAAY,MAAK,SAAQ,MAAK,MAAK,QAAO,SAAO,MAC5F,YAAE,YADS,EAAE,EAEhB,CACD,GACH;AAAA,KACF;AAEJ;","names":[]}
@@ -18,7 +18,7 @@ type ConfirmButtonProps = Omit<ButtonProps, "onClick" | "asChild"> & {
18
18
  onArmedChange?: (armed: boolean) => void;
19
19
  };
20
20
  /** A two-step button: press to arm, press again within `timeoutMs` to confirm. State: `data-armed`. */
21
- declare function ConfirmButton({ confirmLabel, label, onConfirm, timeoutMs, onArmedChange, armedContent, variant, className, children, onBlur, onKeyDown, ...props }: ConfirmButtonProps): React.JSX.Element;
21
+ declare function ConfirmButton({ confirmLabel, label, onConfirm, timeoutMs, onArmedChange, armedContent, variant, className, children, onBlur, onKeyDown, ...props }: Readonly<ConfirmButtonProps>): React.JSX.Element;
22
22
 
23
23
  export { ConfirmButton, confirmArmed };
24
24
  export type { ConfirmButtonProps };
@@ -2,11 +2,11 @@
2
2
  import {
3
3
  ConfirmButton,
4
4
  confirmArmed
5
- } from "./chunk-2FCQCWIK.js";
6
- import "./chunk-V7W4RLRW.js";
5
+ } from "./chunk-VXNBXW3P.js";
6
+ import "./chunk-HWIDTLLO.js";
7
7
  import "./chunk-D3T54RSL.js";
8
- import "./chunk-WEVYKZIF.js";
9
- import "./chunk-NSLXEDIS.js";
8
+ import "./chunk-EAXIDRMB.js";
9
+ import "./chunk-HHBTM4AU.js";
10
10
  export {
11
11
  ConfirmButton,
12
12
  confirmArmed
@@ -26,7 +26,7 @@ type ContactPageProps = Omit<React.HTMLAttributes<HTMLElement>, "title"> & {
26
26
  linkAs?: LinkComponent;
27
27
  };
28
28
  /** A contact page: hero, the channels beside the form, then what happens next. */
29
- declare function ContactPage({ eyebrow, title, lead, aside, channels, form, next, linkAs, ...props }: ContactPageProps): React.JSX.Element;
29
+ declare function ContactPage({ eyebrow, title, lead, aside, channels, form, next, linkAs, ...props }: Readonly<ContactPageProps>): React.JSX.Element;
30
30
 
31
31
  export { ContactPage };
32
32
  export type { ContactPageProps };
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/contact-page/contact-page.tsx"],"sourcesContent":["// Server-safe. Reaching the team (blocks.css `.kz-tpl-contact`): the hero, then the ways to reach us as cards beside\n// the form — the form in its own panel — and what happens after sending, as numbered steps. The form is yours.\nimport { Page } from \"@krizaka/ui/page\";\nimport type { LinkComponent } from \"@krizaka/ui/page-hero\";\nimport { PageHero } from \"@krizaka/ui/page-hero\";\nimport type * as React from \"react\";\n\nexport type ContactPageProps = Omit<React.HTMLAttributes<HTMLElement>, \"title\"> & {\n /** A mono line above the title. */\n eyebrow?: React.ReactNode;\n /** The page's `h1`. */\n title: React.ReactNode;\n /** One or two sentences: who answers, how fast. */\n lead?: React.ReactNode;\n /** Beside the hero: the bird that answers (the flamingo). */\n aside?: React.ReactNode;\n /** The ways to reach us: LinkCards (discussions, issues, email). */\n channels: React.ReactNode;\n /** The form (fields, the cut primary action). */\n form: React.ReactNode;\n /** What happens after sending: steps with a title and a sentence. */\n next?: { title: React.ReactNode; steps: readonly { title: React.ReactNode; text: React.ReactNode }[] };\n /** The app's link component (Next's `Link`). */\n linkAs?: LinkComponent;\n};\n\n/** A contact page: hero, the channels beside the form, then what happens next. */\nexport function ContactPage({ eyebrow, title, lead, aside, channels, form, next, linkAs, ...props }: ContactPageProps) {\n return (\n <div {...props}>\n <PageHero eyebrow={eyebrow} title={title} lead={lead} aside={aside} linkAs={linkAs} />\n <Page className=\"kz-tpl-longform\">\n <div className=\"kz-tpl-contact\">\n <div className=\"kz-tpl-stack\">\n {channels}\n {next && (\n <div className=\"kz-tpl-stack\">\n <h2 className=\"kz-heading-title kz-tpl-h2\">{next.title}</h2>\n <ol className=\"kz-tpl-next\">\n {next.steps.map((s, i) => (\n <li key={i}>\n <span>\n <strong>{s.title}</strong>\n {s.text}\n </span>\n </li>\n ))}\n </ol>\n </div>\n )}\n </div>\n <div className=\"kz-tpl-form\">{form}</div>\n </div>\n </Page>\n </div>\n );\n}\n"],"mappings":";AAEA,SAAS,YAAY;AAErB,SAAS,gBAAgB;AA0BnB,cAWgB,YAXhB;AAHC,SAAS,YAAY,EAAE,SAAS,OAAO,MAAM,OAAO,UAAU,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAqB;AACrH,SACE,qBAAC,SAAK,GAAG,OACP;AAAA,wBAAC,YAAS,SAAkB,OAAc,MAAY,OAAc,QAAgB;AAAA,IACpF,oBAAC,QAAK,WAAU,mBACd,+BAAC,SAAI,WAAU,kBACb;AAAA,2BAAC,SAAI,WAAU,gBACZ;AAAA;AAAA,QACA,QACC,qBAAC,SAAI,WAAU,gBACb;AAAA,8BAAC,QAAG,WAAU,8BAA8B,eAAK,OAAM;AAAA,UACvD,oBAAC,QAAG,WAAU,eACX,eAAK,MAAM,IAAI,CAAC,GAAG,MAClB,oBAAC,QACC,+BAAC,UACC;AAAA,gCAAC,YAAQ,YAAE,OAAM;AAAA,YAChB,EAAE;AAAA,aACL,KAJO,CAKT,CACD,GACH;AAAA,WACF;AAAA,SAEJ;AAAA,MACA,oBAAC,SAAI,WAAU,eAAe,gBAAK;AAAA,OACrC,GACF;AAAA,KACF;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../src/contact-page/contact-page.tsx"],"sourcesContent":["// Server-safe. Reaching the team (blocks.css `.kz-tpl-contact`): the hero, then the ways to reach us as cards beside\n// the form — the form in its own panel — and what happens after sending, as numbered steps. The form is yours.\nimport { Page } from \"@krizaka/ui/page\";\nimport type { LinkComponent } from \"@krizaka/ui/page-hero\";\nimport { PageHero } from \"@krizaka/ui/page-hero\";\nimport type * as React from \"react\";\n\nexport type ContactPageProps = Omit<React.HTMLAttributes<HTMLElement>, \"title\"> & {\n /** A mono line above the title. */\n eyebrow?: React.ReactNode;\n /** The page's `h1`. */\n title: React.ReactNode;\n /** One or two sentences: who answers, how fast. */\n lead?: React.ReactNode;\n /** Beside the hero: the bird that answers (the flamingo). */\n aside?: React.ReactNode;\n /** The ways to reach us: LinkCards (discussions, issues, email). */\n channels: React.ReactNode;\n /** The form (fields, the cut primary action). */\n form: React.ReactNode;\n /** What happens after sending: steps with a title and a sentence. */\n next?: { title: React.ReactNode; steps: readonly { title: React.ReactNode; text: React.ReactNode }[] };\n /** The app's link component (Next's `Link`). */\n linkAs?: LinkComponent;\n};\n\n/** A contact page: hero, the channels beside the form, then what happens next. */\nexport function ContactPage({ eyebrow, title, lead, aside, channels, form, next, linkAs, ...props }: Readonly<ContactPageProps>) {\n return (\n <div {...props}>\n <PageHero eyebrow={eyebrow} title={title} lead={lead} aside={aside} linkAs={linkAs} />\n <Page className=\"kz-tpl-longform\">\n <div className=\"kz-tpl-contact\">\n <div className=\"kz-tpl-stack\">\n {channels}\n {next && (\n <div className=\"kz-tpl-stack\">\n <h2 className=\"kz-heading-title kz-tpl-h2\">{next.title}</h2>\n <ol className=\"kz-tpl-next\">\n {next.steps.map((s, i) => (\n <li key={i}>\n <span>\n <strong>{s.title}</strong>\n {s.text}\n </span>\n </li>\n ))}\n </ol>\n </div>\n )}\n </div>\n <div className=\"kz-tpl-form\">{form}</div>\n </div>\n </Page>\n </div>\n );\n}\n"],"mappings":";AAEA,SAAS,YAAY;AAErB,SAAS,gBAAgB;AA0BnB,cAWgB,YAXhB;AAHC,SAAS,YAAY,EAAE,SAAS,OAAO,MAAM,OAAO,UAAU,MAAM,MAAM,QAAQ,GAAG,MAAM,GAA+B;AAC/H,SACE,qBAAC,SAAK,GAAG,OACP;AAAA,wBAAC,YAAS,SAAkB,OAAc,MAAY,OAAc,QAAgB;AAAA,IACpF,oBAAC,QAAK,WAAU,mBACd,+BAAC,SAAI,WAAU,kBACb;AAAA,2BAAC,SAAI,WAAU,gBACZ;AAAA;AAAA,QACA,QACC,qBAAC,SAAI,WAAU,gBACb;AAAA,8BAAC,QAAG,WAAU,8BAA8B,eAAK,OAAM;AAAA,UACvD,oBAAC,QAAG,WAAU,eACX,eAAK,MAAM,IAAI,CAAC,GAAG,MAClB,oBAAC,QACC,+BAAC,UACC;AAAA,gCAAC,YAAQ,YAAE,OAAM;AAAA,YAChB,EAAE;AAAA,aACL,KAJO,CAKT,CACD,GACH;AAAA,WACF;AAAA,SAEJ;AAAA,MACA,oBAAC,SAAI,WAAU,eAAe,gBAAK;AAAA,OACrC,GACF;AAAA,KACF;AAEJ;","names":[]}
@@ -46,7 +46,7 @@ type ContinuePromptProps = Omit<React.HTMLAttributes<HTMLDivElement>, "title"> &
46
46
  * A last call: a question, what counts, the closing words, the one action that continues — a `button`, or a link.
47
47
  * @deprecated Since 3.55 (ADR-006, krizaka-ui#674): no product uses it. Removed in 4.0.
48
48
  */
49
- declare function ContinuePrompt({ title, count, countdown, children, actionLabel, onAction, href, actionKey, actionIcon, caption, highlight, hint, status, variant, brand, className, ...props }: ContinuePromptProps): React.JSX.Element;
49
+ declare function ContinuePrompt({ title, count, countdown, children, actionLabel, onAction, href, actionKey, actionIcon, caption, highlight, hint, status, variant, brand, className, ...props }: Readonly<ContinuePromptProps>): React.JSX.Element;
50
50
 
51
51
  export { ContinuePrompt };
52
52
  export type { ContinuePromptProps };
@@ -5,7 +5,7 @@ import {
5
5
  brandClass,
6
6
  cn,
7
7
  storyVariantClass
8
- } from "./chunk-LH5J3VLZ.js";
8
+ } from "./chunk-F7EJZV53.js";
9
9
 
10
10
  // src/button/button.tsx
11
11
  import { Slot } from "radix-ui";
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/button/button.tsx","../src/spinner/glyph.tsx","../src/recipes/define.ts","../src/button/recipe.ts","../src/continue-prompt/continue-prompt.tsx"],"sourcesContent":["// Server-safe: no hook, no context. `buttonVariants` styles a <Link> or a Server Component without the component.\nimport { Slot } from \"radix-ui\";\nimport type * as React from \"react\";\nimport { tv, type VariantProps } from \"tailwind-variants\";\n\nimport { cn } from \"../cn\";\nimport { LoaderGlyph } from \"../spinner/glyph\";\nimport { buttonRecipe } from \"./recipe\";\n\nexport const buttonVariants = tv(buttonRecipe);\n\nexport type ButtonVariants = VariantProps<typeof buttonVariants>;\n\nexport type ButtonProps = React.ComponentProps<\"button\"> &\n ButtonVariants & {\n /**\n * The look: `primary` (the accent), `gradient` (accent → accent-2), `secondary` (a raised surface), `outline`,\n * `ghost`, `danger`.\n * @default \"secondary\"\n */\n variant?: ButtonVariants[\"variant\"];\n /**\n * sm · md · lg, or `icon` (a square).\n * @default \"md\"\n */\n size?: ButtonVariants[\"size\"];\n /**\n * `rounded` (an 8 px radius, the radius of a field) · `pill`. `cut` is deprecated (krizaka-ui#393: the chamfer is\n * retired) — it draws `rounded` and warns in development; it will be removed in 4.0.\n * @default \"rounded\"\n */\n shape?: ButtonVariants[\"shape\"];\n /** Renders the child (e.g. a <Link>) instead of the <button>, with props, classes and ref merged. */\n asChild?: boolean;\n /**\n * Disables and signals the wait (aria-busy, data-loading) and shows the Krizaka loader glyph before the label; the\n * button keeps its colour.\n */\n loading?: boolean;\n /**\n * Between 0 and 1, while `loading`: the glyph's trace and a light fill across the button grow to the value (an\n * upload, an export).\n */\n progress?: number | null;\n /**\n * How the action ended: `success` draws a check, `error` a cross (and the button shakes its head once); a ring of\n * the status colour opens around it. Clear it to return to rest.\n */\n status?: \"success\" | \"error\" | null;\n /** A message announced politely by assistive technology when it changes (“Saved”, “Upload failed”) — passed translated. */\n announce?: string;\n /**\n * Shows the glyph while `loading` / with a `status`. `false`: you draw your own.\n * @default true\n */\n indicator?: boolean;\n /** @deprecated Since 3.31 (krizaka-ui#393): does nothing — the hover is quiet. Removed in 4.0. */\n shimmer?: boolean;\n /** @deprecated Since 3.31 (krizaka-ui#393): does nothing — a button never moves under the pointer. Removed in 4.0. */\n magnetic?: boolean;\n };\n\nconst STATUS_TEXT = { success: \"text-fg-success\", error: \"text-fg-danger\" } as const;\n\nlet warnedCut = false;\n/** `shape=\"cut\"` (the chamfer) is retired: one warning per page in development, never in production. */\nfunction warnCut() {\n if (warnedCut || typeof process === \"undefined\" || process.env.NODE_ENV === \"production\") return;\n warnedCut = true;\n console.warn('@krizaka/ui/button: shape=\"cut\" is deprecated (krizaka-ui#393) and now draws the default rounded shape. Remove the prop.');\n}\n\nexport function Button({\n asChild,\n loading,\n progress,\n status,\n announce,\n indicator = true,\n shimmer: _shimmer,\n magnetic: _magnetic,\n variant,\n size,\n shape,\n className,\n disabled,\n children,\n ...props\n}: ButtonProps) {\n const Comp = asChild ? Slot.Root : \"button\";\n if (shape === \"cut\") warnCut();\n const known = loading && typeof progress === \"number\" && Number.isFinite(progress);\n const ratio = known ? Math.min(1, Math.max(0, progress)) : 0;\n const glyph = indicator && !asChild && (loading || status) ? (status ?? \"loading\") : null;\n // On a filled variant the glyph stays in the label's colour; on the others it takes the status colour.\n const filled = variant === \"primary\" || variant === \"gradient\";\n const button = (\n <Comp\n type={asChild ? undefined : \"button\"}\n aria-busy={loading || undefined}\n data-loading={loading ? \"\" : undefined}\n data-variant={variant ?? \"secondary\"}\n data-kz-status={status ?? undefined}\n disabled={asChild ? undefined : disabled || loading}\n aria-disabled={asChild && (disabled || loading) ? true : undefined}\n className={buttonVariants({\n variant,\n size,\n shape,\n className: cn(known && \"relative isolate overflow-hidden\", className),\n })}\n {...props}\n >\n {asChild ? (\n children\n ) : (\n <>\n {known && (\n <span aria-hidden className=\"absolute inset-y-0 left-0 -z-10 bg-current opacity-15 transition-[width] duration-500\" style={{ width: `${ratio * 100}%` }} />\n )}\n {glyph && (\n <span\n aria-hidden\n data-slot=\"indicator\"\n className=\"-my-1 grid grid-cols-[1fr] transition-[grid-template-columns,margin,opacity] duration-300 starting:-mr-2 starting:grid-cols-[0fr] starting:opacity-0\"\n >\n <span className=\"overflow-hidden\">\n <LoaderGlyph state={glyph} value={known ? ratio : null} className={cn(\"h-4 w-4\", glyph !== \"loading\" && !filled && STATUS_TEXT[glyph])} />\n </span>\n </span>\n )}\n {children}\n </>\n )}\n </Comp>\n );\n if (announce === undefined || asChild) return button;\n return (\n <>\n {button}\n <span role=\"status\" className=\"sr-only\">\n {announce}\n </span>\n </>\n );\n}\n\nexport type IconButtonProps = Omit<ButtonProps, \"size\"> & {\n /** The accessible name (and tooltip) of the button — required, passed translated. */\n label: string;\n /**\n * sm · md · lg, or `icon` (a square).\n * @default \"icon\"\n */\n size?: ButtonProps[\"size\"];\n};\n\n/** An icon-only button: `label` is required, it is its accessible name. Loading or with a status, the glyph takes the icon's place. */\nexport function IconButton({ label, size = \"icon\", children, ...props }: IconButtonProps) {\n const swap = props.indicator !== false && !props.asChild && (props.loading || props.status);\n return (\n <Button aria-label={label} title={label} size={size} {...props}>\n {swap ? null : children}\n </Button>\n );\n}\n","// The Krizaka loader glyph, server-safe: a hexagon (the marks' shape) traced by a segment of light around a node that\n// breathes; determinate, it fills to its value; done, the trace closes and a check (or a cross) draws itself. Animated by\n// motion.css (`kz-loader-*`); still under prefers-reduced-motion — a segment at rest and the node lit, never blank.\nimport type * as React from \"react\";\n\n/** The hexagon, pointy top, radius 9 around (12, 12). */\nconst HEX = \"M12 3 19.79 7.5 19.79 16.5 12 21 4.21 16.5 4.21 7.5Z\";\n\n/** What the glyph shows: a wait (with an optional value), or how it ended. */\nexport type LoaderGlyphState = \"loading\" | \"success\" | \"error\";\n\nexport interface LoaderGlyphProps extends Omit<React.ComponentProps<\"svg\">, \"children\"> {\n /** loading · success · error. */\n state?: LoaderGlyphState;\n /** Between 0 and 1: a determinate wait, the trace grows to it. Absent: indeterminate. */\n value?: number | null;\n}\n\n/** The glyph alone (decorative): the Spinner, the Loader and the Button's `loading` draw it. */\nexport function LoaderGlyph({ state = \"loading\", value, ...props }: LoaderGlyphProps) {\n const known = typeof value === \"number\" && Number.isFinite(value);\n const fill = state !== \"loading\" ? 100 : known ? Math.round(Math.min(1, Math.max(0, value)) * 100) : null;\n return (\n <svg viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden data-state={state} data-progress={fill === null ? undefined : fill} {...props}>\n <path d={HEX} stroke=\"currentColor\" strokeOpacity=\"0.22\" strokeWidth=\"2.2\" strokeLinejoin=\"round\" />\n <path\n d={HEX}\n pathLength={100}\n stroke=\"currentColor\"\n strokeWidth=\"2.2\"\n strokeLinejoin=\"round\"\n strokeLinecap=\"round\"\n className=\"kz-loader-trace\"\n strokeDasharray={fill === null ? undefined : `${fill} ${100 - fill}`}\n />\n {state === \"loading\" && <circle cx=\"12\" cy=\"12\" r=\"2.6\" fill=\"currentColor\" className=\"kz-loader-node\" />}\n {state === \"success\" && <path d=\"M8.3 12.3l2.6 2.6 4.9-5.3\" pathLength={20} stroke=\"currentColor\" strokeWidth=\"2.2\" strokeLinecap=\"round\" strokeLinejoin=\"round\" className=\"kz-loader-mark\" />}\n {state === \"error\" && <path d=\"M9.4 9.4l5.2 5.2M14.6 9.4l-5.2 5.2\" pathLength={20} stroke=\"currentColor\" strokeWidth=\"2.2\" strokeLinecap=\"round\" className=\"kz-loader-mark\" />}\n </svg>\n );\n}\n","import type { TV } from \"tailwind-variants\";\n\n/** What a recipe is made of: the `tv()` options — `base`, `slots`, `variants`, `defaultVariants`, `compoundVariants`. */\nexport type RecipeConfig = Parameters<TV>[0];\n\n/**\n * A recipe is data: the variants of a component (a `variant`, a `size`, a `tone`…) as classes of the Krizaka tokens.\n * `defineRecipe` only keeps the literal types, so `tv(recipe)` is typed exactly as `tv({ … })` would be (the web side) and\n * `nativeRecipe(recipe)` reads the same classes into styles on the theme's roles (the native side, `./native`).\n *\n * Sizes are a variant dimension (`size: { sm: \"h-8 px-3 text-xs\" }`); states are the prefixes (`hover:`, `disabled:`,\n * `data-[state=on]:`). Write colours as roles (`bg-accent`, `text-fg-secondary`, `border-border-default`, `ring-accent/40`),\n * spacing as Tailwind units (`h-10`, `px-4`), type as `text-sm` / `text-[11px]` / `font-semibold`.\n */\nexport function defineRecipe<const C extends RecipeConfig>(config: C): C {\n return config;\n}\n","// The button's variants, written once as classes of the Krizaka tokens: the web wears them with `tv(buttonRecipe)`\n// (button.tsx), React Native reads the same classes into styles (native/button.tsx, `nativeRecipe`).\nimport { defineRecipe } from \"../recipes/define\";\n\nexport const buttonRecipe = defineRecipe({\n base:\n \"inline-flex max-w-full shrink-0 select-none items-center justify-center gap-2 whitespace-normal text-center font-semibold transition duration-150 \" +\n \"focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-surface-0 \" +\n \"disabled:pointer-events-none disabled:opacity-40 data-loading:cursor-progress active:scale-[0.98] \" +\n // Busy is not unavailable: a loading button keeps its colour (it is disabled only so it is not pressed twice).\n \"[&[data-loading]]:opacity-100\",\n variants: {\n variant: {\n primary: \"bg-accent text-on-accent shadow-sm hover:bg-accent-hover\",\n // The brand's signature: accent → accent-2 (on-accent reads on both stops, tested in @krizaka/tokens).\n gradient: \"bg-linear-to-r from-accent to-accent-2 text-on-accent shadow-sm hover:brightness-110\",\n secondary: \"border border-border-default bg-surface-2 text-fg hover:border-border-strong hover:bg-surface-3\",\n outline: \"border border-border-default bg-transparent text-fg hover:border-accent hover:text-fg-accent\",\n ghost: \"text-fg-secondary hover:bg-surface-2 hover:text-fg\",\n // The border and the tint carry the danger; the label stays the primary text role, legible on the tint at rest\n // and hovered over every surface (`text-fg-danger` is for text set directly on a surface).\n danger: \"border border-danger/50 bg-danger/10 text-fg hover:border-danger hover:bg-danger/20\",\n },\n size: { sm: \"h-8 px-3 text-xs\", md: \"h-10 px-4 text-sm\", lg: \"h-12 px-6 text-sm\", icon: \"h-10 w-10\" },\n // One clean shape (krizaka-ui#393): an 8 px radius (`--kz-radius-sm`, the radius of a field — a button beside an\n // input lines up with it), the pill on demand. `cut` (the retired chamfer) is a deprecated alias of `rounded`.\n shape: { rounded: \"rounded-sm\", pill: \"rounded-full\", cut: \"rounded-sm\" },\n },\n defaultVariants: { variant: \"secondary\", size: \"md\", shape: \"rounded\" },\n});\n","// Server-safe. The last call of a page or a flow (story.css): a short question, a figure that counts (days, seats,\n// seconds), what to say before leaving, and the one action that continues — “Keep your studio? · 3 days left”.\nimport type * as React from \"react\";\n\nimport { Button } from \"../button/button\";\nimport { cn } from \"../cn\";\nimport { warnDeprecated } from \"../deprecated\";\nimport { brandClass, type StoryVariant, storyVariantClass } from \"../story-variant\";\n\nexport type ContinuePromptProps = Omit<React.HTMLAttributes<HTMLDivElement>, \"title\"> & {\n /** The question (“Keep your studio?”, arcade “Continue?”). */\n title: React.ReactNode;\n /** What counts, beside the question: a figure, or a live `Countdown` for a real deadline. Decorative: say it in words too. */\n count?: React.ReactNode;\n /**\n * A count that ticks down once when its scene plays (`{ from: 9, to: 7 }`), then waits; still under reduced motion.\n * Use `count` for anything else.\n */\n countdown?: { readonly from: number; readonly to: number };\n /** Inside the screen, under the question: a heading, a line, links — the closing call itself. */\n children?: React.ReactNode;\n /** The action's words. */\n actionLabel: React.ReactNode;\n /** Runs the action (a client handler). Without `href`, the action is a `button`. */\n onAction?: React.MouseEventHandler<HTMLButtonElement>;\n /** Makes the action a link. */\n href?: string;\n /** A key-cap before the action's words (“Enter”, arcade “1P Start”). Decorative. */\n actionKey?: React.ReactNode;\n /** The action's glyph after its words; default an arrow. Decorative. */\n actionIcon?: React.ReactNode;\n /** A small line at the top of the card (where it comes from). */\n caption?: React.ReactNode;\n /** In the deck, in the accent: the call (“Last places”, arcade “Insert coin”). */\n highlight?: React.ReactNode;\n /** Beside the highlight: how (“One click, no card”). */\n hint?: React.ReactNode;\n /** A status with a green dot (“All features on”, “Credit 01”). */\n status?: React.ReactNode;\n /**\n * `default`: a calm card. `arcade`: the cabinet — screws, a dark CRT that switches on, a coin deck.\n * @default \"default\"\n */\n variant?: StoryVariant;\n /** A brand scope (`krizaka` → `.brand-krizaka`). */\n brand?: string;\n};\n\nconst Arrow = () => (\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2.5\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\n <path d=\"M5 12h14M13 6l6 6-6 6\" />\n </svg>\n);\n\n/** One countdown's keyframes, named by its range: the digit steps from `from` to `to`, once. */\nfunction countdownCss(from: number, to: number) {\n const steps = Math.max(1, Math.abs(from - to));\n const frames = Array.from({ length: steps + 1 }, (_, i) => {\n const n = from > to ? from - i : from + i;\n return `${Math.round((i / steps) * 100)}% { content: \"${n}\"; }`;\n }).join(\" \");\n return `@keyframes kzs-count-${from}-${to} { ${frames} }\n@media (prefers-reduced-motion: no-preference) {\n [data-in] .kzs-prompt-count[data-from=\"${from}\"][data-to=\"${to}\"] { color: transparent; }\n [data-in] .kzs-prompt-count[data-from=\"${from}\"][data-to=\"${to}\"]::after { content: \"${to}\"; animation: kzs-count-${from}-${to} ${steps}s steps(1) 1s both; }\n}`;\n}\n\n/**\n * A last call: a question, what counts, the closing words, the one action that continues — a `button`, or a link.\n * @deprecated Since 3.55 (ADR-006, krizaka-ui#674): no product uses it. Removed in 4.0.\n */\nexport function ContinuePrompt({\n title,\n count,\n countdown,\n children,\n actionLabel,\n onAction,\n href,\n actionKey,\n actionIcon,\n caption,\n highlight,\n hint,\n status,\n variant,\n brand,\n className,\n ...props\n}: ContinuePromptProps) {\n warnDeprecated(\"continue-prompt\");\n const arcade = variant === \"arcade\";\n const inner = (\n <>\n {actionKey && (\n <span className=\"kzs-prompt-key\" aria-hidden>\n {actionKey}\n </span>\n )}\n {actionLabel}\n <span className=\"kzs-prompt-icon\" aria-hidden>\n {actionIcon ?? <Arrow />}\n </span>\n </>\n );\n const button = { variant: arcade ? (\"secondary\" as const) : (\"primary\" as const), size: \"md\" as const, shape: arcade ? (\"cut\" as const) : undefined, className: \"kzs-prompt-action\" };\n return (\n <div data-kzs-scene=\"\" className={cn(\"kzs-prompt\", storyVariantClass(variant), brandClass(brand), className)} {...props}>\n {countdown && <style>{countdownCss(countdown.from, countdown.to)}</style>}\n {(caption || arcade) && (\n <div className=\"kzs-prompt-top\">\n <span className=\"kzs-prompt-screw\" aria-hidden />\n {caption && <span>{caption}</span>}\n <span className=\"kzs-prompt-screw\" aria-hidden />\n </div>\n )}\n <div className={cn(\"kzs-prompt-screen\", arcade && \"theme-dark\", brandClass(brand))}>\n <span className=\"kzs-texture\" aria-hidden />\n <span className=\"kzs-scan kzs-loop\" aria-hidden />\n <span className=\"kzs-prompt-glass\" aria-hidden />\n <div className=\"kzs-prompt-content\">\n <div className=\"kzs-prompt-head\">\n <span className=\"kzs-prompt-title\">{title}</span>\n {countdown ? (\n <span className=\"kzs-prompt-count\" data-from={countdown.from} data-to={countdown.to} aria-hidden>\n {countdown.from}\n </span>\n ) : (\n count !== undefined && (\n <span className=\"kzs-prompt-count\" aria-hidden>\n {count}\n </span>\n )\n )}\n </div>\n {children}\n </div>\n </div>\n <div className=\"kzs-prompt-deck\">\n {(highlight || hint || status) && (\n <div className=\"kzs-prompt-coin\">\n {highlight && <span className=\"kzs-prompt-highlight\">{highlight}</span>}\n {hint && <span className=\"kzs-prompt-hint\">{hint}</span>}\n {status && (\n <span className=\"kzs-prompt-status\">\n <span className=\"kzs-prompt-led\" aria-hidden />\n {status}\n </span>\n )}\n </div>\n )}\n {href ? (\n <Button asChild {...button}>\n <a href={href}>{inner}</a>\n </Button>\n ) : (\n <Button type=\"button\" onClick={onAction} {...button}>\n {inner}\n </Button>\n )}\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;AACA,SAAS,YAAY;AAErB,SAAS,UAA6B;;;ACoBlC,SACE,KADF;AAjBJ,IAAM,MAAM;AAaL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A,MAED,OACC,gBAAAA,KAAC,UAAO,SAAO,MAAE,GAAG,QAClB,0BAAAA,KAAC,OAAE,MAAa,iBAAM,GACxB,IAEA,gBAAAA,KAAC,UAAO,MAAK,UAAS,SAAS,UAAW,GAAG,QAC1C,iBACH;AAAA,OAEJ;AAAA,KACF;AAEJ;","names":["jsx","jsxs","Fragment","jsx","jsxs"]}
1
+ {"version":3,"sources":["../src/button/button.tsx","../src/spinner/glyph.tsx","../src/recipes/define.ts","../src/button/recipe.ts","../src/continue-prompt/continue-prompt.tsx"],"sourcesContent":["// Server-safe: no hook, no context. `buttonVariants` styles a <Link> or a Server Component without the component.\nimport { Slot } from \"radix-ui\";\nimport type * as React from \"react\";\nimport { tv, type VariantProps } from \"tailwind-variants\";\n\nimport { cn } from \"../cn\";\nimport { LoaderGlyph } from \"../spinner/glyph\";\nimport { buttonRecipe } from \"./recipe\";\n\nexport const buttonVariants = tv(buttonRecipe);\n\nexport type ButtonVariants = VariantProps<typeof buttonVariants>;\n\nexport type ButtonProps = React.ComponentProps<\"button\"> &\n ButtonVariants & {\n /**\n * The look: `primary` (the accent), `gradient` (accent → accent-2), `secondary` (a raised surface), `outline`,\n * `ghost`, `danger`.\n * @default \"secondary\"\n */\n variant?: ButtonVariants[\"variant\"];\n /**\n * sm · md · lg, or `icon` (a square).\n * @default \"md\"\n */\n size?: ButtonVariants[\"size\"];\n /**\n * `rounded` (an 8 px radius, the radius of a field) · `pill`. `cut` is deprecated (krizaka-ui#393: the chamfer is\n * retired) — it draws `rounded` and warns in development; it will be removed in 4.0.\n * @default \"rounded\"\n */\n shape?: ButtonVariants[\"shape\"];\n /** Renders the child (e.g. a <Link>) instead of the <button>, with props, classes and ref merged. */\n asChild?: boolean;\n /**\n * Disables and signals the wait (aria-busy, data-loading) and shows the Krizaka loader glyph before the label; the\n * button keeps its colour.\n */\n loading?: boolean;\n /**\n * Between 0 and 1, while `loading`: the glyph's trace and a light fill across the button grow to the value (an\n * upload, an export).\n */\n progress?: number | null;\n /**\n * How the action ended: `success` draws a check, `error` a cross (and the button shakes its head once); a ring of\n * the status colour opens around it. Clear it to return to rest.\n */\n status?: \"success\" | \"error\" | null;\n /** A message announced politely by assistive technology when it changes (“Saved”, “Upload failed”) — passed translated. */\n announce?: string;\n /**\n * Shows the glyph while `loading` / with a `status`. `false`: you draw your own.\n * @default true\n */\n indicator?: boolean;\n /** @deprecated Since 3.31 (krizaka-ui#393): does nothing — the hover is quiet. Removed in 4.0. */\n shimmer?: boolean;\n /** @deprecated Since 3.31 (krizaka-ui#393): does nothing — a button never moves under the pointer. Removed in 4.0. */\n magnetic?: boolean;\n };\n\nconst STATUS_TEXT = { success: \"text-fg-success\", error: \"text-fg-danger\" } as const;\n\nlet warnedCut = false;\n/** `shape=\"cut\"` (the chamfer) is retired: one warning per page in development, never in production. */\nfunction warnCut() {\n if (warnedCut || typeof process === \"undefined\" || process.env.NODE_ENV === \"production\") return;\n warnedCut = true;\n console.warn('@krizaka/ui/button: shape=\"cut\" is deprecated (krizaka-ui#393) and now draws the default rounded shape. Remove the prop.');\n}\n\nexport function Button({\n asChild,\n loading,\n progress,\n status,\n announce,\n indicator = true,\n shimmer: _shimmer,\n magnetic: _magnetic,\n variant,\n size,\n shape,\n className,\n disabled,\n children,\n ...props\n}: Readonly<ButtonProps>) {\n const Comp = asChild ? Slot.Root : \"button\";\n if (shape === \"cut\") warnCut();\n const known = loading && typeof progress === \"number\" && Number.isFinite(progress);\n const ratio = known ? Math.min(1, Math.max(0, progress)) : 0;\n const glyph = indicator && !asChild && (loading || status) ? (status ?? \"loading\") : null;\n // On a filled variant the glyph stays in the label's colour; on the others it takes the status colour.\n const filled = variant === \"primary\" || variant === \"gradient\";\n const button = (\n <Comp\n type={asChild ? undefined : \"button\"}\n aria-busy={loading || undefined}\n data-loading={loading ? \"\" : undefined}\n data-variant={variant ?? \"secondary\"}\n data-kz-status={status ?? undefined}\n disabled={asChild ? undefined : disabled || loading}\n aria-disabled={asChild && (disabled || loading) ? true : undefined}\n className={buttonVariants({\n variant,\n size,\n shape,\n className: cn(known && \"relative isolate overflow-hidden\", className),\n })}\n {...props}\n >\n {asChild ? (\n children\n ) : (\n <>\n {known && (\n <span aria-hidden className=\"absolute inset-y-0 left-0 -z-10 bg-current opacity-15 transition-[width] duration-500\" style={{ width: `${ratio * 100}%` }} />\n )}\n {glyph && (\n <span\n aria-hidden\n data-slot=\"indicator\"\n className=\"-my-1 grid grid-cols-[1fr] transition-[grid-template-columns,margin,opacity] duration-300 starting:-mr-2 starting:grid-cols-[0fr] starting:opacity-0\"\n >\n <span className=\"overflow-hidden\">\n <LoaderGlyph state={glyph} value={known ? ratio : null} className={cn(\"h-4 w-4\", glyph !== \"loading\" && !filled && STATUS_TEXT[glyph])} />\n </span>\n </span>\n )}\n {children}\n </>\n )}\n </Comp>\n );\n if (announce === undefined || asChild) return button;\n return (\n <>\n {button}\n <span role=\"status\" className=\"sr-only\">\n {announce}\n </span>\n </>\n );\n}\n\nexport type IconButtonProps = Omit<ButtonProps, \"size\"> & {\n /** The accessible name (and tooltip) of the button — required, passed translated. */\n label: string;\n /**\n * sm · md · lg, or `icon` (a square).\n * @default \"icon\"\n */\n size?: ButtonProps[\"size\"];\n};\n\n/** An icon-only button: `label` is required, it is its accessible name. Loading or with a status, the glyph takes the icon's place. */\nexport function IconButton({ label, size = \"icon\", children, ...props }: Readonly<IconButtonProps>) {\n const swap = props.indicator !== false && !props.asChild && (props.loading || props.status);\n return (\n <Button aria-label={label} title={label} size={size} {...props}>\n {swap ? null : children}\n </Button>\n );\n}\n","// The Krizaka loader glyph, server-safe: a hexagon (the marks' shape) traced by a segment of light around a node that\n// breathes; determinate, it fills to its value; done, the trace closes and a check (or a cross) draws itself. Animated by\n// motion.css (`kz-loader-*`); still under prefers-reduced-motion — a segment at rest and the node lit, never blank.\nimport type * as React from \"react\";\n\n/** The hexagon, pointy top, radius 9 around (12, 12). */\nconst HEX = \"M12 3 19.79 7.5 19.79 16.5 12 21 4.21 16.5 4.21 7.5Z\";\n\n/** What the glyph shows: a wait (with an optional value), or how it ended. */\nexport type LoaderGlyphState = \"loading\" | \"success\" | \"error\";\n\nexport interface LoaderGlyphProps extends Omit<React.ComponentProps<\"svg\">, \"children\"> {\n /** loading · success · error. */\n state?: LoaderGlyphState;\n /** Between 0 and 1: a determinate wait, the trace grows to it. Absent: indeterminate. */\n value?: number | null;\n}\n\n/** The glyph alone (decorative): the Spinner, the Loader and the Button's `loading` draw it. */\nexport function LoaderGlyph({ state = \"loading\", value, ...props }: Readonly<LoaderGlyphProps>) {\n const known = typeof value === \"number\" && Number.isFinite(value);\n const fill = state !== \"loading\" ? 100 : known ? Math.round(Math.min(1, Math.max(0, value)) * 100) : null;\n return (\n <svg viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden data-state={state} data-progress={fill === null ? undefined : fill} {...props}>\n <path d={HEX} stroke=\"currentColor\" strokeOpacity=\"0.22\" strokeWidth=\"2.2\" strokeLinejoin=\"round\" />\n <path\n d={HEX}\n pathLength={100}\n stroke=\"currentColor\"\n strokeWidth=\"2.2\"\n strokeLinejoin=\"round\"\n strokeLinecap=\"round\"\n className=\"kz-loader-trace\"\n strokeDasharray={fill === null ? undefined : `${fill} ${100 - fill}`}\n />\n {state === \"loading\" && <circle cx=\"12\" cy=\"12\" r=\"2.6\" fill=\"currentColor\" className=\"kz-loader-node\" />}\n {state === \"success\" && <path d=\"M8.3 12.3l2.6 2.6 4.9-5.3\" pathLength={20} stroke=\"currentColor\" strokeWidth=\"2.2\" strokeLinecap=\"round\" strokeLinejoin=\"round\" className=\"kz-loader-mark\" />}\n {state === \"error\" && <path d=\"M9.4 9.4l5.2 5.2M14.6 9.4l-5.2 5.2\" pathLength={20} stroke=\"currentColor\" strokeWidth=\"2.2\" strokeLinecap=\"round\" className=\"kz-loader-mark\" />}\n </svg>\n );\n}\n","import type { TV } from \"tailwind-variants\";\n\n/** What a recipe is made of: the `tv()` options — `base`, `slots`, `variants`, `defaultVariants`, `compoundVariants`. */\nexport type RecipeConfig = Parameters<TV>[0];\n\n/**\n * A recipe is data: the variants of a component (a `variant`, a `size`, a `tone`…) as classes of the Krizaka tokens.\n * `defineRecipe` only keeps the literal types, so `tv(recipe)` is typed exactly as `tv({ … })` would be (the web side) and\n * `nativeRecipe(recipe)` reads the same classes into styles on the theme's roles (the native side, `./native`).\n *\n * Sizes are a variant dimension (`size: { sm: \"h-8 px-3 text-xs\" }`); states are the prefixes (`hover:`, `disabled:`,\n * `data-[state=on]:`). Write colours as roles (`bg-accent`, `text-fg-secondary`, `border-border-default`, `ring-accent/40`),\n * spacing as Tailwind units (`h-10`, `px-4`), type as `text-sm` / `text-[11px]` / `font-semibold`.\n */\nexport function defineRecipe<const C extends RecipeConfig>(config: C): C {\n return config;\n}\n","// The button's variants, written once as classes of the Krizaka tokens: the web wears them with `tv(buttonRecipe)`\n// (button.tsx), React Native reads the same classes into styles (native/button.tsx, `nativeRecipe`).\nimport { defineRecipe } from \"../recipes/define\";\n\nexport const buttonRecipe = defineRecipe({\n base:\n \"inline-flex max-w-full shrink-0 select-none items-center justify-center gap-2 whitespace-normal text-center font-semibold transition duration-150 \" +\n \"focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-surface-0 \" +\n \"disabled:pointer-events-none disabled:opacity-40 data-loading:cursor-progress active:scale-[0.98] \" +\n // Busy is not unavailable: a loading button keeps its colour (it is disabled only so it is not pressed twice).\n \"[&[data-loading]]:opacity-100\",\n variants: {\n variant: {\n primary: \"bg-accent text-on-accent shadow-sm hover:bg-accent-hover\",\n // The brand's signature: accent → accent-2 (on-accent reads on both stops, tested in @krizaka/tokens).\n gradient: \"bg-linear-to-r from-accent to-accent-2 text-on-accent shadow-sm hover:brightness-110\",\n secondary: \"border border-border-default bg-surface-2 text-fg hover:border-border-strong hover:bg-surface-3\",\n outline: \"border border-border-default bg-transparent text-fg hover:border-accent hover:text-fg-accent\",\n ghost: \"text-fg-secondary hover:bg-surface-2 hover:text-fg\",\n // The border and the tint carry the danger; the label stays the primary text role, legible on the tint at rest\n // and hovered over every surface (`text-fg-danger` is for text set directly on a surface).\n danger: \"border border-danger/50 bg-danger/10 text-fg hover:border-danger hover:bg-danger/20\",\n },\n size: { sm: \"h-8 px-3 text-xs\", md: \"h-10 px-4 text-sm\", lg: \"h-12 px-6 text-sm\", icon: \"h-10 w-10\" },\n // One clean shape (krizaka-ui#393): an 8 px radius (`--kz-radius-sm`, the radius of a field — a button beside an\n // input lines up with it), the pill on demand. `cut` (the retired chamfer) is a deprecated alias of `rounded`.\n shape: { rounded: \"rounded-sm\", pill: \"rounded-full\", cut: \"rounded-sm\" },\n },\n defaultVariants: { variant: \"secondary\", size: \"md\", shape: \"rounded\" },\n});\n","// Server-safe. The last call of a page or a flow (story.css): a short question, a figure that counts (days, seats,\n// seconds), what to say before leaving, and the one action that continues — “Keep your studio? · 3 days left”.\nimport type * as React from \"react\";\n\nimport { Button } from \"../button/button\";\nimport { cn } from \"../cn\";\nimport { warnDeprecated } from \"../deprecated\";\nimport { brandClass, type StoryVariant, storyVariantClass } from \"../story-variant\";\n\nexport type ContinuePromptProps = Omit<React.HTMLAttributes<HTMLDivElement>, \"title\"> & {\n /** The question (“Keep your studio?”, arcade “Continue?”). */\n title: React.ReactNode;\n /** What counts, beside the question: a figure, or a live `Countdown` for a real deadline. Decorative: say it in words too. */\n count?: React.ReactNode;\n /**\n * A count that ticks down once when its scene plays (`{ from: 9, to: 7 }`), then waits; still under reduced motion.\n * Use `count` for anything else.\n */\n countdown?: { readonly from: number; readonly to: number };\n /** Inside the screen, under the question: a heading, a line, links — the closing call itself. */\n children?: React.ReactNode;\n /** The action's words. */\n actionLabel: React.ReactNode;\n /** Runs the action (a client handler). Without `href`, the action is a `button`. */\n onAction?: React.MouseEventHandler<HTMLButtonElement>;\n /** Makes the action a link. */\n href?: string;\n /** A key-cap before the action's words (“Enter”, arcade “1P Start”). Decorative. */\n actionKey?: React.ReactNode;\n /** The action's glyph after its words; default an arrow. Decorative. */\n actionIcon?: React.ReactNode;\n /** A small line at the top of the card (where it comes from). */\n caption?: React.ReactNode;\n /** In the deck, in the accent: the call (“Last places”, arcade “Insert coin”). */\n highlight?: React.ReactNode;\n /** Beside the highlight: how (“One click, no card”). */\n hint?: React.ReactNode;\n /** A status with a green dot (“All features on”, “Credit 01”). */\n status?: React.ReactNode;\n /**\n * `default`: a calm card. `arcade`: the cabinet — screws, a dark CRT that switches on, a coin deck.\n * @default \"default\"\n */\n variant?: StoryVariant;\n /** A brand scope (`krizaka` → `.brand-krizaka`). */\n brand?: string;\n};\n\nconst Arrow = () => (\n <svg viewBox=\"0 0 24 24\" width=\"16\" height=\"16\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2.5\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\n <path d=\"M5 12h14M13 6l6 6-6 6\" />\n </svg>\n);\n\n/** One countdown's keyframes, named by its range: the digit steps from `from` to `to`, once. */\nfunction countdownCss(from: number, to: number) {\n const steps = Math.max(1, Math.abs(from - to));\n const frames = Array.from({ length: steps + 1 }, (_, i) => {\n const n = from > to ? from - i : from + i;\n return `${Math.round((i / steps) * 100)}% { content: \"${n}\"; }`;\n }).join(\" \");\n return `@keyframes kzs-count-${from}-${to} { ${frames} }\n@media (prefers-reduced-motion: no-preference) {\n [data-in] .kzs-prompt-count[data-from=\"${from}\"][data-to=\"${to}\"] { color: transparent; }\n [data-in] .kzs-prompt-count[data-from=\"${from}\"][data-to=\"${to}\"]::after { content: \"${to}\"; animation: kzs-count-${from}-${to} ${steps}s steps(1) 1s both; }\n}`;\n}\n\n/**\n * A last call: a question, what counts, the closing words, the one action that continues — a `button`, or a link.\n * @deprecated Since 3.55 (ADR-006, krizaka-ui#674): no product uses it. Removed in 4.0.\n */\nexport function ContinuePrompt({\n title,\n count,\n countdown,\n children,\n actionLabel,\n onAction,\n href,\n actionKey,\n actionIcon,\n caption,\n highlight,\n hint,\n status,\n variant,\n brand,\n className,\n ...props\n}: Readonly<ContinuePromptProps>) {\n warnDeprecated(\"continue-prompt\");\n const arcade = variant === \"arcade\";\n const inner = (\n <>\n {actionKey && (\n <span className=\"kzs-prompt-key\" aria-hidden>\n {actionKey}\n </span>\n )}\n {actionLabel}\n <span className=\"kzs-prompt-icon\" aria-hidden>\n {actionIcon ?? <Arrow />}\n </span>\n </>\n );\n const button = { variant: arcade ? (\"secondary\" as const) : (\"primary\" as const), size: \"md\" as const, shape: arcade ? (\"cut\" as const) : undefined, className: \"kzs-prompt-action\" };\n return (\n <div data-kzs-scene=\"\" className={cn(\"kzs-prompt\", storyVariantClass(variant), brandClass(brand), className)} {...props}>\n {countdown && <style>{countdownCss(countdown.from, countdown.to)}</style>}\n {(caption || arcade) && (\n <div className=\"kzs-prompt-top\">\n <span className=\"kzs-prompt-screw\" aria-hidden />\n {caption && <span>{caption}</span>}\n <span className=\"kzs-prompt-screw\" aria-hidden />\n </div>\n )}\n <div className={cn(\"kzs-prompt-screen\", arcade && \"theme-dark\", brandClass(brand))}>\n <span className=\"kzs-texture\" aria-hidden />\n <span className=\"kzs-scan kzs-loop\" aria-hidden />\n <span className=\"kzs-prompt-glass\" aria-hidden />\n <div className=\"kzs-prompt-content\">\n <div className=\"kzs-prompt-head\">\n <span className=\"kzs-prompt-title\">{title}</span>\n {countdown ? (\n <span className=\"kzs-prompt-count\" data-from={countdown.from} data-to={countdown.to} aria-hidden>\n {countdown.from}\n </span>\n ) : (\n count !== undefined && (\n <span className=\"kzs-prompt-count\" aria-hidden>\n {count}\n </span>\n )\n )}\n </div>\n {children}\n </div>\n </div>\n <div className=\"kzs-prompt-deck\">\n {(highlight || hint || status) && (\n <div className=\"kzs-prompt-coin\">\n {highlight && <span className=\"kzs-prompt-highlight\">{highlight}</span>}\n {hint && <span className=\"kzs-prompt-hint\">{hint}</span>}\n {status && (\n <span className=\"kzs-prompt-status\">\n <span className=\"kzs-prompt-led\" aria-hidden />\n {status}\n </span>\n )}\n </div>\n )}\n {href ? (\n <Button asChild {...button}>\n <a href={href}>{inner}</a>\n </Button>\n ) : (\n <Button type=\"button\" onClick={onAction} {...button}>\n {inner}\n </Button>\n )}\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;AACA,SAAS,YAAY;AAErB,SAAS,UAA6B;;;ACoBlC,SACE,KADF;AAjBJ,IAAM,MAAM;AAaL,SAAS,YAAY,EAAE,QAAQ,WAAW,OAAO,GAAG,MAAM,GAA+B;AAC9F,QAAM,QAAQ,OAAO,UAAU,YAAY,OAAO,SAAS,KAAK;AAChE,QAAM,OAAO,UAAU,YAAY,MAAM,QAAQ,KAAK,MAAM,KAAK,IAAI,GAAG,KAAK,IAAI,GAAG,KAAK,CAAC,IAAI,GAAG,IAAI;AACrG,SACE,qBAAC,SAAI,SAAQ,aAAY,MAAK,QAAO,eAAW,MAAC,cAAY,OAAO,iBAAe,SAAS,OAAO,SAAY,MAAO,GAAG,OACvH;AAAA,wBAAC,UAAK,GAAG,KAAK,QAAO,gBAAe,eAAc,QAAO,aAAY,OAAM,gBAAe,SAAQ;AAAA,IAClG;AAAA,MAAC;AAAA;AAAA,QACC,GAAG;AAAA,QACH,YAAY;AAAA,QACZ,QAAO;AAAA,QACP,aAAY;AAAA,QACZ,gBAAe;AAAA,QACf,eAAc;AAAA,QACd,WAAU;AAAA,QACV,iBAAiB,SAAS,OAAO,SAAY,GAAG,IAAI,IAAI,MAAM,IAAI;AAAA;AAAA,IACpE;AAAA,IACC,UAAU,aAAa,oBAAC,YAAO,IAAG,MAAK,IAAG,MAAK,GAAE,OAAM,MAAK,gBAAe,WAAU,kBAAiB;AAAA,IACtG,UAAU,aAAa,oBAAC,UAAK,GAAE,6BAA4B,YAAY,IAAI,QAAO,gBAAe,aAAY,OAAM,eAAc,SAAQ,gBAAe,SAAQ,WAAU,kBAAiB;AAAA,IAC3L,UAAU,WAAW,oBAAC,UAAK,GAAE,sCAAqC,YAAY,IAAI,QAAO,gBAAe,aAAY,OAAM,eAAc,SAAQ,WAAU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,wBAAwB,qBAAU;AAAA,QAC/D,QAAQ,gBAAAA,KAAC,UAAK,WAAU,mBAAmB,gBAAK;AAAA,QAChD,UACC,gBAAAC,MAAC,UAAK,WAAU,qBACd;AAAA,0BAAAD,KAAC,UAAK,WAAU,kBAAiB,eAAW,MAAC;AAAA,UAC5C;AAAA,WACH;AAAA,SAEJ;AAAA,MAED,OACC,gBAAAA,KAAC,UAAO,SAAO,MAAE,GAAG,QAClB,0BAAAA,KAAC,OAAE,MAAa,iBAAM,GACxB,IAEA,gBAAAA,KAAC,UAAO,MAAK,UAAS,SAAS,UAAW,GAAG,QAC1C,iBACH;AAAA,OAEJ;AAAA,KACF;AAEJ;","names":["jsx","jsxs","Fragment","jsx","jsxs"]}
@@ -23,7 +23,7 @@ type CopyButtonProps = Omit<ButtonProps, "onClick" | "asChild" | "value" | "chil
23
23
  onCopy?: () => void;
24
24
  };
25
25
  /** A button that copies `value`. State: `data-copied`. */
26
- declare function CopyButton({ value, label, copiedLabel, fallbackLabel, iconOnly, icon, copiedIcon, resetMs, onCopy, variant, className, ...props }: CopyButtonProps): React.JSX.Element;
26
+ declare function CopyButton({ value, label, copiedLabel, fallbackLabel, iconOnly, icon, copiedIcon, resetMs, onCopy, variant, className, ...props }: Readonly<CopyButtonProps>): React.JSX.Element;
27
27
 
28
28
  export { CopyButton };
29
29
  export type { CopyButtonProps };
@@ -2,15 +2,15 @@
2
2
  import {
3
3
  CheckGlyph,
4
4
  CopyGlyph
5
- } from "./chunk-Z47KIPCT.js";
5
+ } from "./chunk-QY5JEUJT.js";
6
6
  import {
7
7
  Button
8
- } from "./chunk-V7W4RLRW.js";
8
+ } from "./chunk-HWIDTLLO.js";
9
9
  import "./chunk-D3T54RSL.js";
10
- import "./chunk-WEVYKZIF.js";
10
+ import "./chunk-EAXIDRMB.js";
11
11
  import {
12
12
  cn
13
- } from "./chunk-NSLXEDIS.js";
13
+ } from "./chunk-HHBTM4AU.js";
14
14
 
15
15
  // src/copy-button/copy-button.tsx
16
16
  import * as React from "react";
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/copy-button/copy-button.tsx"],"sourcesContent":["// Client (a state, the clipboard). Copies a value and says so in a polite live region. Without the Clipboard API\n// (an insecure page, an old webview) it falls back to a selected, read-only field the person copies by hand: the\n// failure is never silent.\nimport * as React from \"react\";\n\nimport { Button, type ButtonProps } from \"../button/button\";\nimport { cn } from \"../cn\";\nimport { CheckGlyph, CopyGlyph } from \"../glyphs\";\n\nexport type CopyButtonProps = Omit<ButtonProps, \"onClick\" | \"asChild\" | \"value\" | \"children\"> & {\n /** The text to copy. */\n value: string;\n /** The words of the button (and its accessible name), passed translated: \"Copy link\". Icon only: set `iconOnly`. */\n label: string;\n /** What it says once copied, announced politely: \"Copied\". */\n copiedLabel: string;\n /** Said when the clipboard is unavailable, above the selected value: \"Press Ctrl+C to copy\". */\n fallbackLabel: string;\n /** Shows only the icon (the label stays the accessible name). */\n iconOnly?: boolean;\n /** Replaces the copy icon (a `@krizaka/icons` one, say). */\n icon?: React.ReactNode;\n /** Replaces the check icon shown once copied. */\n copiedIcon?: React.ReactNode;\n /** How long \"Copied\" stays, in milliseconds (1800 by default). */\n resetMs?: number;\n /** Called after the value is copied. */\n onCopy?: () => void;\n};\n\n/** A button that copies `value`. State: `data-copied`. */\nexport function CopyButton({ value, label, copiedLabel, fallbackLabel, iconOnly, icon, copiedIcon, resetMs = 1800, onCopy, variant = \"secondary\", className, ...props }: CopyButtonProps) {\n const [copied, setCopied] = React.useState(false);\n const [manual, setManual] = React.useState(false);\n const fieldRef = React.useRef<HTMLInputElement>(null);\n React.useEffect(() => {\n if (!copied) return;\n const timer = globalThis.setTimeout(() => setCopied(false), resetMs);\n return () => globalThis.clearTimeout(timer);\n }, [copied, resetMs]);\n React.useEffect(() => {\n if (manual) fieldRef.current?.select();\n }, [manual]);\n const copy = async () => {\n try {\n await navigator.clipboard.writeText(value);\n setManual(false);\n setCopied(true);\n onCopy?.();\n } catch {\n // No Clipboard API, or refused: show the value selected, to copy by hand.\n setManual(true);\n }\n };\n const name = copied ? copiedLabel : label;\n return (\n <span className=\"inline-flex flex-col gap-1.5\">\n <Button type=\"button\" variant={variant} aria-label={iconOnly ? name : undefined} title={iconOnly ? name : undefined} data-copied={copied ? \"\" : undefined} className={cn(className)} onClick={() => void copy()} {...props}>\n {copied ? (copiedIcon ?? <CheckGlyph />) : (icon ?? <CopyGlyph />)}\n {!iconOnly && <span>{name}</span>}\n </Button>\n <span role=\"status\" aria-live=\"polite\" className=\"sr-only\">\n {copied ? copiedLabel : \"\"}\n </span>\n {manual && (\n <label className=\"flex flex-col gap-1 text-xs text-fg-secondary\">\n {fallbackLabel}\n <input ref={fieldRef} readOnly value={value} onFocus={(event) => event.currentTarget.select()} className=\"h-9 rounded-lg border border-border-control bg-surface-2 px-2 text-sm text-fg focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring\" />\n </label>\n )}\n </span>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;AAGA,YAAY,WAAW;AAsDjB,SAC2B,KAD3B;AA1BC,SAAS,WAAW,EAAE,OAAO,OAAO,aAAa,eAAe,UAAU,MAAM,YAAY,UAAU,MAAM,QAAQ,UAAU,aAAa,WAAW,GAAG,MAAM,GAAoB;AACxL,QAAM,CAAC,QAAQ,SAAS,IAAU,eAAS,KAAK;AAChD,QAAM,CAAC,QAAQ,SAAS,IAAU,eAAS,KAAK;AAChD,QAAM,WAAiB,aAAyB,IAAI;AACpD,EAAM,gBAAU,MAAM;AACpB,QAAI,CAAC,OAAQ;AACb,UAAM,QAAQ,WAAW,WAAW,MAAM,UAAU,KAAK,GAAG,OAAO;AACnE,WAAO,MAAM,WAAW,aAAa,KAAK;AAAA,EAC5C,GAAG,CAAC,QAAQ,OAAO,CAAC;AACpB,EAAM,gBAAU,MAAM;AACpB,QAAI,OAAQ,UAAS,SAAS,OAAO;AAAA,EACvC,GAAG,CAAC,MAAM,CAAC;AACX,QAAM,OAAO,YAAY;AACvB,QAAI;AACF,YAAM,UAAU,UAAU,UAAU,KAAK;AACzC,gBAAU,KAAK;AACf,gBAAU,IAAI;AACd,eAAS;AAAA,IACX,QAAQ;AAEN,gBAAU,IAAI;AAAA,IAChB;AAAA,EACF;AACA,QAAM,OAAO,SAAS,cAAc;AACpC,SACE,qBAAC,UAAK,WAAU,gCACd;AAAA,yBAAC,UAAO,MAAK,UAAS,SAAkB,cAAY,WAAW,OAAO,QAAW,OAAO,WAAW,OAAO,QAAW,eAAa,SAAS,KAAK,QAAW,WAAW,GAAG,SAAS,GAAG,SAAS,MAAM,KAAK,KAAK,GAAI,GAAG,OAClN;AAAA,eAAU,cAAc,oBAAC,cAAW,IAAO,QAAQ,oBAAC,aAAU;AAAA,MAC9D,CAAC,YAAY,oBAAC,UAAM,gBAAK;AAAA,OAC5B;AAAA,IACA,oBAAC,UAAK,MAAK,UAAS,aAAU,UAAS,WAAU,WAC9C,mBAAS,cAAc,IAC1B;AAAA,IACC,UACC,qBAAC,WAAM,WAAU,iDACd;AAAA;AAAA,MACD,oBAAC,WAAM,KAAK,UAAU,UAAQ,MAAC,OAAc,SAAS,CAAC,UAAU,MAAM,cAAc,OAAO,GAAG,WAAU,2JAA0J;AAAA,OACrQ;AAAA,KAEJ;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../src/copy-button/copy-button.tsx"],"sourcesContent":["// Client (a state, the clipboard). Copies a value and says so in a polite live region. Without the Clipboard API\n// (an insecure page, an old webview) it falls back to a selected, read-only field the person copies by hand: the\n// failure is never silent.\nimport * as React from \"react\";\n\nimport { Button, type ButtonProps } from \"../button/button\";\nimport { cn } from \"../cn\";\nimport { CheckGlyph, CopyGlyph } from \"../glyphs\";\n\nexport type CopyButtonProps = Omit<ButtonProps, \"onClick\" | \"asChild\" | \"value\" | \"children\"> & {\n /** The text to copy. */\n value: string;\n /** The words of the button (and its accessible name), passed translated: \"Copy link\". Icon only: set `iconOnly`. */\n label: string;\n /** What it says once copied, announced politely: \"Copied\". */\n copiedLabel: string;\n /** Said when the clipboard is unavailable, above the selected value: \"Press Ctrl+C to copy\". */\n fallbackLabel: string;\n /** Shows only the icon (the label stays the accessible name). */\n iconOnly?: boolean;\n /** Replaces the copy icon (a `@krizaka/icons` one, say). */\n icon?: React.ReactNode;\n /** Replaces the check icon shown once copied. */\n copiedIcon?: React.ReactNode;\n /** How long \"Copied\" stays, in milliseconds (1800 by default). */\n resetMs?: number;\n /** Called after the value is copied. */\n onCopy?: () => void;\n};\n\n/** A button that copies `value`. State: `data-copied`. */\nexport function CopyButton({ value, label, copiedLabel, fallbackLabel, iconOnly, icon, copiedIcon, resetMs = 1800, onCopy, variant = \"secondary\", className, ...props }: Readonly<CopyButtonProps>) {\n const [copied, setCopied] = React.useState(false);\n const [manual, setManual] = React.useState(false);\n const fieldRef = React.useRef<HTMLInputElement>(null);\n React.useEffect(() => {\n if (!copied) return;\n const timer = globalThis.setTimeout(() => setCopied(false), resetMs);\n return () => globalThis.clearTimeout(timer);\n }, [copied, resetMs]);\n React.useEffect(() => {\n if (manual) fieldRef.current?.select();\n }, [manual]);\n const copy = async () => {\n try {\n await navigator.clipboard.writeText(value);\n setManual(false);\n setCopied(true);\n onCopy?.();\n } catch {\n // No Clipboard API, or refused: show the value selected, to copy by hand.\n setManual(true);\n }\n };\n const name = copied ? copiedLabel : label;\n return (\n <span className=\"inline-flex flex-col gap-1.5\">\n <Button type=\"button\" variant={variant} aria-label={iconOnly ? name : undefined} title={iconOnly ? name : undefined} data-copied={copied ? \"\" : undefined} className={cn(className)} onClick={() => void copy()} {...props}>\n {copied ? (copiedIcon ?? <CheckGlyph />) : (icon ?? <CopyGlyph />)}\n {!iconOnly && <span>{name}</span>}\n </Button>\n <span role=\"status\" aria-live=\"polite\" className=\"sr-only\">\n {copied ? copiedLabel : \"\"}\n </span>\n {manual && (\n <label className=\"flex flex-col gap-1 text-xs text-fg-secondary\">\n {fallbackLabel}\n <input ref={fieldRef} readOnly value={value} onFocus={(event) => event.currentTarget.select()} className=\"h-9 rounded-lg border border-border-control bg-surface-2 px-2 text-sm text-fg focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring\" />\n </label>\n )}\n </span>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;AAGA,YAAY,WAAW;AAsDjB,SAC2B,KAD3B;AA1BC,SAAS,WAAW,EAAE,OAAO,OAAO,aAAa,eAAe,UAAU,MAAM,YAAY,UAAU,MAAM,QAAQ,UAAU,aAAa,WAAW,GAAG,MAAM,GAA8B;AAClM,QAAM,CAAC,QAAQ,SAAS,IAAU,eAAS,KAAK;AAChD,QAAM,CAAC,QAAQ,SAAS,IAAU,eAAS,KAAK;AAChD,QAAM,WAAiB,aAAyB,IAAI;AACpD,EAAM,gBAAU,MAAM;AACpB,QAAI,CAAC,OAAQ;AACb,UAAM,QAAQ,WAAW,WAAW,MAAM,UAAU,KAAK,GAAG,OAAO;AACnE,WAAO,MAAM,WAAW,aAAa,KAAK;AAAA,EAC5C,GAAG,CAAC,QAAQ,OAAO,CAAC;AACpB,EAAM,gBAAU,MAAM;AACpB,QAAI,OAAQ,UAAS,SAAS,OAAO;AAAA,EACvC,GAAG,CAAC,MAAM,CAAC;AACX,QAAM,OAAO,YAAY;AACvB,QAAI;AACF,YAAM,UAAU,UAAU,UAAU,KAAK;AACzC,gBAAU,KAAK;AACf,gBAAU,IAAI;AACd,eAAS;AAAA,IACX,QAAQ;AAEN,gBAAU,IAAI;AAAA,IAChB;AAAA,EACF;AACA,QAAM,OAAO,SAAS,cAAc;AACpC,SACE,qBAAC,UAAK,WAAU,gCACd;AAAA,yBAAC,UAAO,MAAK,UAAS,SAAkB,cAAY,WAAW,OAAO,QAAW,OAAO,WAAW,OAAO,QAAW,eAAa,SAAS,KAAK,QAAW,WAAW,GAAG,SAAS,GAAG,SAAS,MAAM,KAAK,KAAK,GAAI,GAAG,OAClN;AAAA,eAAU,cAAc,oBAAC,cAAW,IAAO,QAAQ,oBAAC,aAAU;AAAA,MAC9D,CAAC,YAAY,oBAAC,UAAM,gBAAK;AAAA,OAC5B;AAAA,IACA,oBAAC,UAAK,MAAK,UAAS,aAAU,UAAS,WAAU,WAC9C,mBAAS,cAAc,IAC1B;AAAA,IACC,UACC,qBAAC,WAAM,WAAU,iDACd;AAAA;AAAA,MACD,oBAAC,WAAM,KAAK,UAAU,UAAQ,MAAC,OAAc,SAAS,CAAC,UAAU,MAAM,cAAc,OAAO,GAAG,WAAU,2JAA0J;AAAA,OACrQ;AAAA,KAEJ;AAEJ;","names":[]}
@@ -45,7 +45,7 @@ type CountdownProps = {
45
45
  *
46
46
  * The urgent colour is `--kz-danger-text` (≥ 4.5:1 on every surface in both themes), so `size="sm"` is safe too.
47
47
  */
48
- declare function Countdown({ target, skewMs, units, urgentBelowMs, size, label, showLabel, className }: CountdownProps): React.JSX.Element;
48
+ declare function Countdown({ target, skewMs, units, urgentBelowMs, size, label, showLabel, className }: Readonly<CountdownProps>): React.JSX.Element;
49
49
 
50
50
  export { Countdown, countdownParts, splitDuration, useCountdown };
51
51
  export type { CountdownProps, CountdownUnits };
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/countdown/core.ts","../src/countdown/countdown.tsx"],"sourcesContent":["// The countdown's clock, shared by the web (`@krizaka/ui/countdown`) and native renders: no DOM import.\nimport { useSyncExternalStore } from \"react\";\n\n// One clock for every countdown on the page: it ticks each second while someone listens.\nconst listeners = new Set<() => void>();\nlet timer: ReturnType<typeof setInterval> | null = null;\n\nfunction subscribe(listener: () => void) {\n listeners.add(listener);\n timer ??= setInterval(() => listeners.forEach((l) => l()), 1000);\n return () => {\n listeners.delete(listener);\n if (listeners.size === 0 && timer) {\n clearInterval(timer);\n timer = null;\n }\n };\n}\n\nconst nowSecond = () => Math.floor(Date.now() / 1000) * 1000;\n\n/** Milliseconds left until `target` (never negative), ticking every second. `skewMs` = server clock − this clock. */\nexport function useCountdown(target: Date | string | number, skewMs = 0): number {\n const now = useSyncExternalStore(subscribe, nowSecond, nowSecond);\n return Math.max(0, new Date(target).getTime() - (now + skewMs));\n}\n\n/** Splits a duration into days, hours, minutes and seconds. */\nexport function splitDuration(ms: number): { d: number; h: number; m: number; s: number } {\n const total = Math.max(0, Math.floor(ms / 1000));\n return { d: Math.floor(total / 86400), h: Math.floor((total % 86400) / 3600), m: Math.floor((total % 3600) / 60), s: total % 60 };\n}\n\n/** The short unit labels, passed translated (e.g. `{ d: \"d\", h: \"h\", m: \"m\", s: \"s\" }`). */\nexport type CountdownUnits = { d: string; h: string; m: string; s: string };\n\n/** The three segments shown: days, hours, minutes when there are days; else hours, minutes, seconds. */\nexport function countdownParts(ms: number, units: CountdownUnits): [number, string][] {\n const { d, h, m, s } = splitDuration(ms);\n return d > 0 ? [[d, units.d], [h, units.h], [m, units.m]] : [[h, units.h], [m, units.m], [s, units.s]];\n}\n","// Client: the clock is a hook.\nimport { tv } from \"tailwind-variants\";\n\nimport { countdownParts, type CountdownUnits, useCountdown } from \"./core\";\n\nconst countdown = tv({\n slots: {\n root: \"inline-flex items-baseline gap-1.5 font-display font-black tabular-nums tracking-tight text-fg\",\n segment: \"inline-flex items-baseline\",\n unit: \"ml-0.5 text-[0.5em] font-bold text-fg-secondary\",\n label: \"mr-0.5 self-center font-sans text-[0.6em] font-semibold tracking-normal text-fg-secondary\",\n },\n variants: {\n size: { sm: { root: \"text-sm\" }, md: { root: \"text-xl\" }, lg: { root: \"text-3xl sm:text-4xl\" } },\n urgent: { true: { root: \"text-fg-danger\" } },\n },\n defaultVariants: { size: \"md\" },\n});\n\nexport type CountdownProps = {\n /** The moment it counts down to: a Date, an ISO string or epoch milliseconds. */\n target: Date | string | number;\n /** Server clock − this clock, in milliseconds. */\n skewMs?: number;\n /** The short unit labels, passed translated. */\n units: CountdownUnits;\n /** Below this many milliseconds it turns urgent (`text-fg-danger`, the last segment pulses). Default 60 s. */\n urgentBelowMs?: number;\n /** sm · md · lg — the danger text role reads at 4.5:1 at every size, in both themes. */\n size?: \"sm\" | \"md\" | \"lg\";\n /** Accessible name, e.g. \"Ends in\". */\n label: string;\n /** Also show `label` before the segments, in the secondary text role (default: only read by screen readers). */\n showLabel?: boolean;\n /** Classes merged last, over the primitive's. */\n className?: string;\n};\n\n/**\n * Time left until a moment, as segments (2d 04h 13m 09s — days only when there are some) in tabular figures. Under\n * `urgentBelowMs` it turns to the danger text role and its last segment pulses (no motion under prefers-reduced-motion).\n * Words come from the app: `units` are the short unit labels. `role=\"timer\"` without live announcements — the app\n * announces what matters. State: `data-urgent`, `data-ended`.\n *\n * The urgent colour is `--kz-danger-text` (≥ 4.5:1 on every surface in both themes), so `size=\"sm\"` is safe too.\n */\nexport function Countdown({ target, skewMs = 0, units, urgentBelowMs = 60_000, size = \"md\", label, showLabel = false, className }: CountdownProps) {\n const ms = useCountdown(target, skewMs);\n const urgent = ms > 0 && ms < urgentBelowMs;\n const parts = countdownParts(ms, units);\n const s = countdown({ size, urgent });\n return (\n <span\n role=\"timer\"\n aria-label={label}\n data-urgent={urgent ? \"\" : undefined}\n data-ended={ms === 0 ? \"\" : undefined}\n suppressHydrationWarning\n className={s.root({ className })}\n >\n {showLabel ? (\n <span aria-hidden className={s.label()}>\n {label}\n </span>\n ) : null}\n {parts.map(([value, unit], i) => (\n <span key={unit} className={s.segment({ className: urgent && i === parts.length - 1 ? \"motion-safe:animate-pulse\" : undefined })}>\n {String(value).padStart(2, \"0\")}\n <span className={s.unit()}>{unit}</span>\n </span>\n ))}\n </span>\n );\n}\n"],"mappings":";;;AACA,SAAS,4BAA4B;AAGrC,IAAM,YAAY,oBAAI,IAAgB;AACtC,IAAI,QAA+C;AAEnD,SAAS,UAAU,UAAsB;AACvC,YAAU,IAAI,QAAQ;AACtB,YAAU,YAAY,MAAM,UAAU,QAAQ,CAAC,MAAM,EAAE,CAAC,GAAG,GAAI;AAC/D,SAAO,MAAM;AACX,cAAU,OAAO,QAAQ;AACzB,QAAI,UAAU,SAAS,KAAK,OAAO;AACjC,oBAAc,KAAK;AACnB,cAAQ;AAAA,IACV;AAAA,EACF;AACF;AAEA,IA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SAAS,UAAU,EAAE,QAAQ,SAAS,GAAG,OAAO,gBAAgB,KAAQ,OAAO,MAAM,OAAO,YAAY,OAAO,UAAU,GAAmB;AACjJ,QAAM,KAAK,aAAa,QAAQ,MAAM;AACtC,QAAM,SAAS,KAAK,KAAK,KAAK;AAC9B,QAAM,QAAQ,eAAe,IAAI,KAAK;AACtC,QAAM,IAAI,UAAU,EAAE,MAAM,OAAO,CAAC;AACpC,SACE;AAAA,IAAC;AAAA;AAAA,MACC,MAAK;AAAA,MACL,cAAY;AAAA,MACZ,eAAa,SAAS,KAAK;AAAA,MAC3B,cAAY,OAAO,IAAI,KAAK;AAAA,MAC5B,0BAAwB;AAAA,MACxB,WAAW,EAAE,KAAK,EAAE,UAAU,CAAC;AAAA,MAE9B;AAAA,oBACC,oBAAC,UAAK,eAAW,MAAC,WAAW,EAAE,MAAM,GAClC,iBACH,IACE;AAAA,QACH,MAAM,IAAI,CAAC,CAAC,OAAO,IAAI,GAAG,MACzB,qBAAC,UAAgB,WAAW,EAAE,QAAQ,EAAE,WAAW,UAAU,MAAM,MAAM,SAAS,IAAI,8BAA8B,OAAU,CAAC,GAC5H;AAAA,iBAAO,KAAK,EAAE,SAAS,GAAG,GAAG;AAAA,UAC9B,oBAAC,UAAK,WAAW,EAAE,KAAK,GAAI,gBAAK;AAAA,aAFxB,IAGX,CACD;AAAA;AAAA;AAAA,EACH;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../src/countdown/core.ts","../src/countdown/countdown.tsx"],"sourcesContent":["// The countdown's clock, shared by the web (`@krizaka/ui/countdown`) and native renders: no DOM import.\nimport { useSyncExternalStore } from \"react\";\n\n// One clock for every countdown on the page: it ticks each second while someone listens.\nconst listeners = new Set<() => void>();\nlet timer: ReturnType<typeof setInterval> | null = null;\n\nfunction subscribe(listener: () => void) {\n listeners.add(listener);\n timer ??= setInterval(() => listeners.forEach((l) => l()), 1000);\n return () => {\n listeners.delete(listener);\n if (listeners.size === 0 && timer) {\n clearInterval(timer);\n timer = null;\n }\n };\n}\n\nconst nowSecond = () => Math.floor(Date.now() / 1000) * 1000;\n\n/** Milliseconds left until `target` (never negative), ticking every second. `skewMs` = server clock − this clock. */\nexport function useCountdown(target: Date | string | number, skewMs = 0): number {\n const now = useSyncExternalStore(subscribe, nowSecond, nowSecond);\n return Math.max(0, new Date(target).getTime() - (now + skewMs));\n}\n\n/** Splits a duration into days, hours, minutes and seconds. */\nexport function splitDuration(ms: number): { d: number; h: number; m: number; s: number } {\n const total = Math.max(0, Math.floor(ms / 1000));\n return { d: Math.floor(total / 86400), h: Math.floor((total % 86400) / 3600), m: Math.floor((total % 3600) / 60), s: total % 60 };\n}\n\n/** The short unit labels, passed translated (e.g. `{ d: \"d\", h: \"h\", m: \"m\", s: \"s\" }`). */\nexport type CountdownUnits = { d: string; h: string; m: string; s: string };\n\n/** The three segments shown: days, hours, minutes when there are days; else hours, minutes, seconds. */\nexport function countdownParts(ms: number, units: CountdownUnits): [number, string][] {\n const { d, h, m, s } = splitDuration(ms);\n return d > 0 ? [[d, units.d], [h, units.h], [m, units.m]] : [[h, units.h], [m, units.m], [s, units.s]];\n}\n","// Client: the clock is a hook.\nimport { tv } from \"tailwind-variants\";\n\nimport { countdownParts, type CountdownUnits, useCountdown } from \"./core\";\n\nconst countdown = tv({\n slots: {\n root: \"inline-flex items-baseline gap-1.5 font-display font-black tabular-nums tracking-tight text-fg\",\n segment: \"inline-flex items-baseline\",\n unit: \"ml-0.5 text-[0.5em] font-bold text-fg-secondary\",\n label: \"mr-0.5 self-center font-sans text-[0.6em] font-semibold tracking-normal text-fg-secondary\",\n },\n variants: {\n size: { sm: { root: \"text-sm\" }, md: { root: \"text-xl\" }, lg: { root: \"text-3xl sm:text-4xl\" } },\n urgent: { true: { root: \"text-fg-danger\" } },\n },\n defaultVariants: { size: \"md\" },\n});\n\nexport type CountdownProps = {\n /** The moment it counts down to: a Date, an ISO string or epoch milliseconds. */\n target: Date | string | number;\n /** Server clock − this clock, in milliseconds. */\n skewMs?: number;\n /** The short unit labels, passed translated. */\n units: CountdownUnits;\n /** Below this many milliseconds it turns urgent (`text-fg-danger`, the last segment pulses). Default 60 s. */\n urgentBelowMs?: number;\n /** sm · md · lg — the danger text role reads at 4.5:1 at every size, in both themes. */\n size?: \"sm\" | \"md\" | \"lg\";\n /** Accessible name, e.g. \"Ends in\". */\n label: string;\n /** Also show `label` before the segments, in the secondary text role (default: only read by screen readers). */\n showLabel?: boolean;\n /** Classes merged last, over the primitive's. */\n className?: string;\n};\n\n/**\n * Time left until a moment, as segments (2d 04h 13m 09s — days only when there are some) in tabular figures. Under\n * `urgentBelowMs` it turns to the danger text role and its last segment pulses (no motion under prefers-reduced-motion).\n * Words come from the app: `units` are the short unit labels. `role=\"timer\"` without live announcements — the app\n * announces what matters. State: `data-urgent`, `data-ended`.\n *\n * The urgent colour is `--kz-danger-text` (≥ 4.5:1 on every surface in both themes), so `size=\"sm\"` is safe too.\n */\nexport function Countdown({ target, skewMs = 0, units, urgentBelowMs = 60_000, size = \"md\", label, showLabel = false, className }: Readonly<CountdownProps>) {\n const ms = useCountdown(target, skewMs);\n const urgent = ms > 0 && ms < urgentBelowMs;\n const parts = countdownParts(ms, units);\n const s = countdown({ size, urgent });\n return (\n <span\n role=\"timer\"\n aria-label={label}\n data-urgent={urgent ? \"\" : undefined}\n data-ended={ms === 0 ? \"\" : undefined}\n suppressHydrationWarning\n className={s.root({ className })}\n >\n {showLabel ? (\n <span aria-hidden className={s.label()}>\n {label}\n </span>\n ) : null}\n {parts.map(([value, unit], i) => (\n <span key={unit} className={s.segment({ className: urgent && i === parts.length - 1 ? \"motion-safe:animate-pulse\" : undefined })}>\n {String(value).padStart(2, \"0\")}\n <span className={s.unit()}>{unit}</span>\n </span>\n ))}\n </span>\n );\n}\n"],"mappings":";;;AACA,SAAS,4BAA4B;AAGrC,IAAM,YAAY,oBAAI,IAAgB;AACtC,IAAI,QAA+C;AAEnD,SAAS,UAAU,UAAsB;AACvC,YAAU,IAAI,QAAQ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,IAAI,EAAE,MAAM,UAAU,GAAG,IAAI,EAAE,MAAM,UAAU,GAAG,IAAI,EAAE,MAAM,uBAAuB,EAAE;AAAA,IAC/F,QAAQ,EAAE,MAAM,EAAE,MAAM,iBAAiB,EAAE;AAAA,EAC7C;AAAA,EACA,iBAAiB,EAAE,MAAM,KAAK;AAChC,CAAC;AA6BM,SAAS,UAAU,EAAE,QAAQ,SAAS,GAAG,OAAO,gBAAgB,KAAQ,OAAO,MAAM,OAAO,YAAY,OAAO,UAAU,GAA6B;AAC3J,QAAM,KAAK,aAAa,QAAQ,MAAM;AACtC,QAAM,SAAS,KAAK,KAAK,KAAK;AAC9B,QAAM,QAAQ,eAAe,IAAI,KAAK;AACtC,QAAM,IAAI,UAAU,EAAE,MAAM,OAAO,CAAC;AACpC,SACE;AAAA,IAAC;AAAA;AAAA,MACC,MAAK;AAAA,MACL,cAAY;AAAA,MACZ,eAAa,SAAS,KAAK;AAAA,MAC3B,cAAY,OAAO,IAAI,KAAK;AAAA,MAC5B,0BAAwB;AAAA,MACxB,WAAW,EAAE,KAAK,EAAE,UAAU,CAAC;AAAA,MAE9B;AAAA,oBACC,oBAAC,UAAK,eAAW,MAAC,WAAW,EAAE,MAAM,GAClC,iBACH,IACE;AAAA,QACH,MAAM,IAAI,CAAC,CAAC,OAAO,IAAI,GAAG,MACzB,qBAAC,UAAgB,WAAW,EAAE,QAAQ,EAAE,WAAW,UAAU,MAAM,MAAM,SAAS,IAAI,8BAA8B,OAAU,CAAC,GAC5H;AAAA,iBAAO,KAAK,EAAE,SAAS,GAAG,GAAG;AAAA,UAC9B,oBAAC,UAAK,WAAW,EAAE,KAAK,GAAI,gBAAK;AAAA,aAFxB,IAGX,CACD;AAAA;AAAA;AAAA,EACH;AAEJ;","names":[]}
@@ -124,7 +124,7 @@ type CoverHeroProps = Omit<React.ComponentProps<"header">, "title"> & {
124
124
  linkAs?: LinkComponent;
125
125
  };
126
126
  /** A shop's first screen: the cover, the name, the promise, the facts and the main action. */
127
- declare function CoverHero({ cover, eyebrow, title, lead, facts, actions, back, linkAs, className, ...props }: CoverHeroProps): React.JSX.Element;
127
+ declare function CoverHero({ cover, eyebrow, title, lead, facts, actions, back, linkAs, className, ...props }: Readonly<CoverHeroProps>): React.JSX.Element;
128
128
 
129
129
  export { CoverHero, coverHero };
130
130
  export type { CoverHeroProps, CoverMedia };
@@ -1,14 +1,14 @@
1
1
  "use client";
2
2
  import {
3
3
  Page
4
- } from "./chunk-7P7I5OQV.js";
4
+ } from "./chunk-5KBYZLU4.js";
5
5
  import {
6
6
  ArrowGlyph
7
- } from "./chunk-S2O4NSN5.js";
7
+ } from "./chunk-3TCHVNNB.js";
8
8
  import {
9
9
  BlockLink
10
- } from "./chunk-ENOS6ETI.js";
11
- import "./chunk-NSLXEDIS.js";
10
+ } from "./chunk-OZC6CDZF.js";
11
+ import "./chunk-HHBTM4AU.js";
12
12
 
13
13
  // src/cover-hero/cover-hero.tsx
14
14
  import * as React from "react";
@@ -34,7 +34,7 @@ function usePlayLoop(enabled) {
34
34
  const [play, setPlay] = React.useState(false);
35
35
  React.useEffect(() => {
36
36
  if (!enabled) return;
37
- const q = window.matchMedia("(prefers-reduced-motion: reduce)");
37
+ const q = globalThis.matchMedia("(prefers-reduced-motion: reduce)");
38
38
  const sync = () => setPlay(!q.matches);
39
39
  sync();
40
40
  q.addEventListener("change", sync);
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/cover-hero/cover-hero.tsx"],"sourcesContent":["// Client (the reader's motion preference). The first screen of a shop or a place: its cover — a photo, or a muted loop that\n// stays a still under reduced motion — behind the name, a one-line promise, a few facts and the main action. The words sit\n// on a veil that reads in both themes; without a cover the brand's colours take its place.\nimport * as React from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nimport { BlockLink, type LinkComponent } from \"../block-link\";\nimport { ArrowGlyph } from \"../glyphs\";\nimport { Page } from \"../page/page\";\n\nexport const coverHero = tv({\n slots: {\n root: \"relative isolate flex min-h-[26rem] items-end overflow-hidden bg-surface-1 text-fg data-[cover]:text-fg-on-media sm:min-h-[30rem] lg:min-h-[34rem]\",\n media: \"absolute inset-0 -z-20 h-full w-full object-cover data-[focus=top]:object-top data-[focus=bottom]:object-bottom\",\n veil: \"absolute inset-0 -z-10 bg-linear-to-t from-scrim-strong via-scrim/55 to-scrim/10\",\n plain: \"absolute inset-0 -z-10 bg-linear-to-br from-accent/25 via-surface-1 to-accent-2/20\",\n body: \"flex flex-col gap-4 pb-8 pt-24 sm:pb-12\",\n back: \"inline-flex w-fit items-center gap-1.5 text-sm font-semibold text-current no-underline opacity-90 hover:opacity-100\",\n eyebrow: \"m-0 font-mono text-xs font-semibold opacity-90\",\n title: \"m-0 max-w-3xl font-display text-4xl font-black leading-[1.05] tracking-tight sm:text-5xl lg:text-6xl\",\n lead: \"m-0 max-w-2xl text-base leading-relaxed opacity-95 sm:text-lg\",\n facts: \"flex flex-wrap items-center gap-2\",\n actions: \"flex flex-wrap items-center gap-3 pt-1\",\n },\n});\nconst s = coverHero();\n\nexport type CoverMedia = {\n /** The still: the photo, or the poster of the loop (shown first, and alone under reduced motion). */\n src: string;\n /** What it shows, in words; empty when it only decorates. */\n alt?: string;\n /** A muted loop over the still: WebM first, MP4 for Safari. */\n video?: { webm?: string; mp4?: string };\n /** An art-directed crop for a phone (a 4:5 of the same photo): used below 40 rem instead of `src`. */\n phone?: string;\n /** Where the photo is cropped to when the box is not its ratio. @default \"center\" */\n focus?: \"center\" | \"top\" | \"bottom\";\n};\n\nexport type CoverHeroProps = Omit<React.ComponentProps<\"header\">, \"title\"> & {\n /** The cover. Without it the hero wears the brand's colours. */\n cover?: CoverMedia;\n /** A short mono line above the name (where the shop is: `Saint-Henri · Montréal`). */\n eyebrow?: React.ReactNode;\n /** The name: the page's `h1`. */\n title: React.ReactNode;\n /** One line: what it promises. */\n lead?: React.ReactNode;\n /** Chips under the lead: open now, the neighbourhood, a rating — only what is true. */\n facts?: React.ReactNode;\n /** The main action (`ButtonLink`). */\n actions?: React.ReactNode;\n /** The way back, above the eyebrow. */\n back?: { href: string; label: string };\n /** The app's link component for the back link. */\n linkAs?: LinkComponent;\n};\n\nfunction usePlayLoop(enabled: boolean) {\n const [play, setPlay] = React.useState(false);\n React.useEffect(() => {\n if (!enabled) return;\n const q = window.matchMedia(\"(prefers-reduced-motion: reduce)\");\n const sync = () => setPlay(!q.matches);\n sync();\n q.addEventListener(\"change\", sync);\n return () => q.removeEventListener(\"change\", sync);\n }, [enabled]);\n return play;\n}\n\n/** A shop's first screen: the cover, the name, the promise, the facts and the main action. */\nexport function CoverHero({ cover, eyebrow, title, lead, facts, actions, back, linkAs, className, ...props }: CoverHeroProps) {\n const play = usePlayLoop(Boolean(cover?.video));\n return (\n <header data-cover={cover ? \"\" : undefined} className={s.root({ className })} {...props}>\n {cover ? (\n <>\n <picture>\n {cover.phone && <source media=\"(max-width: 39.99rem)\" srcSet={cover.phone} />}\n <img src={cover.src} alt={cover.alt ?? \"\"} className={s.media()} data-focus={cover.focus === \"center\" ? undefined : cover.focus} fetchPriority=\"high\" decoding=\"async\" />\n </picture>\n {play && cover.video && (\n <video className={s.media()} poster={cover.src} autoPlay muted loop playsInline preload=\"metadata\" aria-hidden tabIndex={-1}>\n {cover.video.webm && <source src={cover.video.webm} type=\"video/webm\" />}\n {cover.video.mp4 && <source src={cover.video.mp4} type=\"video/mp4\" />}\n </video>\n )}\n <div aria-hidden className={s.veil()} />\n </>\n ) : (\n <div aria-hidden className={s.plain()} />\n )}\n <Page>\n <div className={s.body()}>\n {back && (\n <BlockLink href={back.href} linkAs={linkAs} className={s.back()}>\n <ArrowGlyph direction=\"left\" className=\"h-3.5 w-3.5\" /> {back.label}\n </BlockLink>\n )}\n {eyebrow && <p className={s.eyebrow()}>{eyebrow}</p>}\n <h1 className={s.title()}>{title}</h1>\n {lead && <p className={s.lead()}>{lead}</p>}\n {facts && <div className={s.facts()}>{facts}</div>}\n {actions && <div className={s.actions()}>{actions}</div>}\n </div>\n </Page>\n </header>\n );\n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AAAA,SACzK;AAAA,MACC,QAAQ,MAAM,SACb,qBAAC,WAAM,WAAW,EAAE,MAAM,GAAG,QAAQ,MAAM,KAAK,UAAQ,MAAC,OAAK,MAAC,MAAI,MAAC,aAAW,MAAC,SAAQ,YAAW,eAAW,MAAC,UAAU,IACtH;AAAA,cAAM,MAAM,QAAQ,oBAAC,YAAO,KAAK,MAAM,MAAM,MAAM,MAAK,cAAa;AAAA,QACrE,MAAM,MAAM,OAAO,oBAAC,YAAO,KAAK,MAAM,MAAM,KAAK,MAAK,aAAY;AAAA,SACrE;AAAA,MAEF,oBAAC,SAAI,eAAW,MAAC,WAAW,EAAE,KAAK,GAAG;AAAA,OACxC,IAEA,oBAAC,SAAI,eAAW,MAAC,WAAW,EAAE,MAAM,GAAG;AAAA,IAEzC,oBAAC,QACC,+BAAC,SAAI,WAAW,EAAE,KAAK,GACpB;AAAA,cACC,qBAAC,aAAU,MAAM,KAAK,MAAM,QAAgB,WAAW,EAAE,KAAK,GAC5D;AAAA,4BAAC,cAAW,WAAU,QAAO,WAAU,eAAc;AAAA,QAAE;AAAA,QAAE,KAAK;AAAA,SAChE;AAAA,MAED,WAAW,oBAAC,OAAE,WAAW,EAAE,QAAQ,GAAI,mBAAQ;AAAA,MAChD,oBAAC,QAAG,WAAW,EAAE,MAAM,GAAI,iBAAM;AAAA,MAChC,QAAQ,oBAAC,OAAE,WAAW,EAAE,KAAK,GAAI,gBAAK;AAAA,MACtC,SAAS,oBAAC,SAAI,WAAW,EAAE,MAAM,GAAI,iBAAM;AAAA,MAC3C,WAAW,oBAAC,SAAI,WAAW,EAAE,QAAQ,GAAI,mBAAQ;AAAA,OACpD,GACF;AAAA,KACF;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../src/cover-hero/cover-hero.tsx"],"sourcesContent":["// Client (the reader's motion preference). The first screen of a shop or a place: its cover — a photo, or a muted loop that\n// stays a still under reduced motion — behind the name, a one-line promise, a few facts and the main action. The words sit\n// on a veil that reads in both themes; without a cover the brand's colours take its place.\nimport * as React from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nimport { BlockLink, type LinkComponent } from \"../block-link\";\nimport { ArrowGlyph } from \"../glyphs\";\nimport { Page } from \"../page/page\";\n\nexport const coverHero = tv({\n slots: {\n root: \"relative isolate flex min-h-[26rem] items-end overflow-hidden bg-surface-1 text-fg data-[cover]:text-fg-on-media sm:min-h-[30rem] lg:min-h-[34rem]\",\n media: \"absolute inset-0 -z-20 h-full w-full object-cover data-[focus=top]:object-top data-[focus=bottom]:object-bottom\",\n veil: \"absolute inset-0 -z-10 bg-linear-to-t from-scrim-strong via-scrim/55 to-scrim/10\",\n plain: \"absolute inset-0 -z-10 bg-linear-to-br from-accent/25 via-surface-1 to-accent-2/20\",\n body: \"flex flex-col gap-4 pb-8 pt-24 sm:pb-12\",\n back: \"inline-flex w-fit items-center gap-1.5 text-sm font-semibold text-current no-underline opacity-90 hover:opacity-100\",\n eyebrow: \"m-0 font-mono text-xs font-semibold opacity-90\",\n title: \"m-0 max-w-3xl font-display text-4xl font-black leading-[1.05] tracking-tight sm:text-5xl lg:text-6xl\",\n lead: \"m-0 max-w-2xl text-base leading-relaxed opacity-95 sm:text-lg\",\n facts: \"flex flex-wrap items-center gap-2\",\n actions: \"flex flex-wrap items-center gap-3 pt-1\",\n },\n});\nconst s = coverHero();\n\nexport type CoverMedia = {\n /** The still: the photo, or the poster of the loop (shown first, and alone under reduced motion). */\n src: string;\n /** What it shows, in words; empty when it only decorates. */\n alt?: string;\n /** A muted loop over the still: WebM first, MP4 for Safari. */\n video?: { webm?: string; mp4?: string };\n /** An art-directed crop for a phone (a 4:5 of the same photo): used below 40 rem instead of `src`. */\n phone?: string;\n /** Where the photo is cropped to when the box is not its ratio. @default \"center\" */\n focus?: \"center\" | \"top\" | \"bottom\";\n};\n\nexport type CoverHeroProps = Omit<React.ComponentProps<\"header\">, \"title\"> & {\n /** The cover. Without it the hero wears the brand's colours. */\n cover?: CoverMedia;\n /** A short mono line above the name (where the shop is: `Saint-Henri · Montréal`). */\n eyebrow?: React.ReactNode;\n /** The name: the page's `h1`. */\n title: React.ReactNode;\n /** One line: what it promises. */\n lead?: React.ReactNode;\n /** Chips under the lead: open now, the neighbourhood, a rating — only what is true. */\n facts?: React.ReactNode;\n /** The main action (`ButtonLink`). */\n actions?: React.ReactNode;\n /** The way back, above the eyebrow. */\n back?: { href: string; label: string };\n /** The app's link component for the back link. */\n linkAs?: LinkComponent;\n};\n\nfunction usePlayLoop(enabled: boolean) {\n const [play, setPlay] = React.useState(false);\n React.useEffect(() => {\n if (!enabled) return;\n const q = globalThis.matchMedia(\"(prefers-reduced-motion: reduce)\");\n const sync = () => setPlay(!q.matches);\n sync();\n q.addEventListener(\"change\", sync);\n return () => q.removeEventListener(\"change\", sync);\n }, [enabled]);\n return play;\n}\n\n/** A shop's first screen: the cover, the name, the promise, the facts and the main action. */\nexport function CoverHero({ cover, eyebrow, title, lead, facts, actions, back, linkAs, className, ...props }: Readonly<CoverHeroProps>) {\n const play = usePlayLoop(Boolean(cover?.video));\n return (\n <header data-cover={cover ? \"\" : undefined} className={s.root({ className })} {...props}>\n {cover ? (\n <>\n <picture>\n {cover.phone && <source media=\"(max-width: 39.99rem)\" srcSet={cover.phone} />}\n <img src={cover.src} alt={cover.alt ?? \"\"} className={s.media()} data-focus={cover.focus === \"center\" ? undefined : cover.focus} fetchPriority=\"high\" decoding=\"async\" />\n </picture>\n {play && cover.video && (\n <video className={s.media()} poster={cover.src} autoPlay muted loop playsInline preload=\"metadata\" aria-hidden tabIndex={-1}>\n {cover.video.webm && <source src={cover.video.webm} type=\"video/webm\" />}\n {cover.video.mp4 && <source src={cover.video.mp4} type=\"video/mp4\" />}\n </video>\n )}\n <div aria-hidden className={s.veil()} />\n </>\n ) : (\n <div aria-hidden className={s.plain()} />\n )}\n <Page>\n <div className={s.body()}>\n {back && (\n <BlockLink href={back.href} linkAs={linkAs} className={s.back()}>\n <ArrowGlyph direction=\"left\" className=\"h-3.5 w-3.5\" /> {back.label}\n </BlockLink>\n )}\n {eyebrow && <p className={s.eyebrow()}>{eyebrow}</p>}\n <h1 className={s.title()}>{title}</h1>\n {lead && <p className={s.lead()}>{lead}</p>}\n {facts && <div className={s.facts()}>{facts}</div>}\n {actions && <div className={s.actions()}>{actions}</div>}\n </div>\n </Page>\n </header>\n );\n}\n"],"mappings":";;;;;;;;;;;;;AAGA,YAAY,WAAW;AACvB,SAAS,UAAU;AA0EX,mBAEoB,KADlB,YADF;AApED,IAAM,YAAY,GAAG;AAAA,EAC1B,OAAO;AAAA,IACL,MAAM;AAAA,IACN,OAAO;AAAA,IACP,MAAM;AAAA,IACN,OAAO;AAAA,IACP,MAAM;AAAA,IACN,MAAM;AAAA,IACN,SAAS;AAAA,IACT,OAAO;AAAA,IACP,MAAM;AAAA,IACN,OAAO;AAAA,IACP,SAAS;AAAA,EACX;AACF,CAAC;AACD,IAAM,IAAI,UAAU;AAkCpB,SAAS,YAAY,SAAkB;AACrC,QAAM,CAAC,MAAM,OAAO,IAAU,eAAS,KAAK;AAC5C,EAAM,gBAAU,MAAM;AACpB,QAAI,CAAC,QAAS;AACd,UAAM,IAAI,WAAW,WAAW,kCAAkC;AAClE,UAAM,OAAO,MAAM,QAAQ,CAAC,EAAE,OAAO;AACrC,SAAK;AACL,MAAE,iBAAiB,UAAU,IAAI;AACjC,WAAO,MAAM,EAAE,oBAAoB,UAAU,IAAI;AAAA,EACnD,GAAG,CAAC,OAAO,CAAC;AACZ,SAAO;AACT;AAGO,SAAS,UAAU,EAAE,OAAO,SAAS,OAAO,MAAM,OAAO,SAAS,MAAM,QAAQ,WAAW,GAAG,MAAM,GAA6B;AACtI,QAAM,OAAO,YAAY,QAAQ,OAAO,KAAK,CAAC;AAC9C,SACE,qBAAC,YAAO,cAAY,QAAQ,KAAK,QAAW,WAAW,EAAE,KAAK,EAAE,UAAU,CAAC,GAAI,GAAG,OAC/E;AAAA,YACC,iCACE;AAAA,2BAAC,aACE;AAAA,cAAM,SAAS,oBA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F;AAAA,KACF;AAEJ;","names":[]}
@@ -18,7 +18,7 @@ type CtaPanelProps = Omit<React.HTMLAttributes<HTMLDivElement>, "title"> & {
18
18
  reveal?: boolean;
19
19
  };
20
20
  /** A call to act: title, why, the actions — the closing panel of a section or a page. */
21
- declare function CtaPanel({ id, title, body, children, level, reveal, className, ...props }: CtaPanelProps): React.JSX.Element;
21
+ declare function CtaPanel({ id, title, body, children, level, reveal, className, ...props }: Readonly<CtaPanelProps>): React.JSX.Element;
22
22
 
23
23
  export { CtaPanel };
24
24
  export type { CtaPanelProps };
package/dist/cta-panel.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  cn
3
- } from "./chunk-W675RFOA.js";
3
+ } from "./chunk-ISC2QBXJ.js";
4
4
 
5
5
  // src/cta-panel/cta-panel.tsx
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/cta-panel/cta-panel.tsx"],"sourcesContent":["// Server-safe. The invitation at the end of a section or a page (blocks.css): a title, why it matters, the ways to\n// answer — in the hue of the page.\nimport type * as React from \"react\";\n\nimport { cn } from \"../cn\";\n\nexport type CtaPanelProps = Omit<React.HTMLAttributes<HTMLDivElement>, \"title\"> & {\n /** The id of the title (an anchor others link to: `#discuss`). */\n id?: string;\n /** The invitation: `Something to say about it?`. */\n title: React.ReactNode;\n /** Why it matters, in one or two sentences. */\n body?: React.ReactNode;\n /** The ways to answer: an `ActionBar`, buttons. */\n children?: React.ReactNode;\n /**\n * The title's level.\n * @default 2\n */\n level?: 2 | 3;\n /** Rises once into place (`[data-reveal]`). Never on the first screen. */\n reveal?: boolean;\n};\n\n/** A call to act: title, why, the actions — the closing panel of a section or a page. */\nexport function CtaPanel({ id, title, body, children, level = 2, reveal, className, ...props }: CtaPanelProps) {\n const H = level === 2 ? \"h2\" : \"h3\";\n return (\n <div className={cn(\"kz-cta\", className)} data-reveal={reveal ? \"\" : undefined} {...props}>\n <div className=\"kz-cta-text\">\n <H id={id} className=\"kz-cta-title\">\n {title}\n </H>\n {body && <p className=\"kz-cta-body\">{body}</p>}\n </div>\n {children && <div className=\"kz-cta-actions\">{children}</div>}\n </div>\n );\n}\n"],"mappings":";;;;;AA6BM,SACE,KADF;AAJC,SAAS,SAAS,EAAE,IAAI,OAAO,MAAM,UAAU,QAAQ,GAAG,QAAQ,WAAW,GAAG,MAAM,GAAkB;AAC7G,QAAM,IAAI,UAAU,IAAI,OAAO;AAC/B,SACE,qBAAC,SAAI,WAAW,GAAG,UAAU,SAAS,GAAG,eAAa,SAAS,KAAK,QAAY,GAAG,OACjF;AAAA,yBAAC,SAAI,WAAU,eACb;AAAA,0BAAC,KAAE,IAAQ,WAAU,gBAClB,iBACH;AAAA,MACC,QAAQ,oBAAC,OAAE,WAAU,eAAe,gBAAK;AAAA,OAC5C;AAAA,IACC,YAAY,oBAAC,SAAI,WAAU,kBAAkB,UAAS;AAAA,KACzD;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../src/cta-panel/cta-panel.tsx"],"sourcesContent":["// Server-safe. The invitation at the end of a section or a page (blocks.css): a title, why it matters, the ways to\n// answer — in the hue of the page.\nimport type * as React from \"react\";\n\nimport { cn } from \"../cn\";\n\nexport type CtaPanelProps = Omit<React.HTMLAttributes<HTMLDivElement>, \"title\"> & {\n /** The id of the title (an anchor others link to: `#discuss`). */\n id?: string;\n /** The invitation: `Something to say about it?`. */\n title: React.ReactNode;\n /** Why it matters, in one or two sentences. */\n body?: React.ReactNode;\n /** The ways to answer: an `ActionBar`, buttons. */\n children?: React.ReactNode;\n /**\n * The title's level.\n * @default 2\n */\n level?: 2 | 3;\n /** Rises once into place (`[data-reveal]`). Never on the first screen. */\n reveal?: boolean;\n};\n\n/** A call to act: title, why, the actions — the closing panel of a section or a page. */\nexport function CtaPanel({ id, title, body, children, level = 2, reveal, className, ...props }: Readonly<CtaPanelProps>) {\n const H = level === 2 ? \"h2\" : \"h3\";\n return (\n <div className={cn(\"kz-cta\", className)} data-reveal={reveal ? \"\" : undefined} {...props}>\n <div className=\"kz-cta-text\">\n <H id={id} className=\"kz-cta-title\">\n {title}\n </H>\n {body && <p className=\"kz-cta-body\">{body}</p>}\n </div>\n {children && <div className=\"kz-cta-actions\">{children}</div>}\n </div>\n );\n}\n"],"mappings":";;;;;AA6BM,SACE,KADF;AAJC,SAAS,SAAS,EAAE,IAAI,OAAO,MAAM,UAAU,QAAQ,GAAG,QAAQ,WAAW,GAAG,MAAM,GAA4B;AACvH,QAAM,IAAI,UAAU,IAAI,OAAO;AAC/B,SACE,qBAAC,SAAI,WAAW,GAAG,UAAU,SAAS,GAAG,eAAa,SAAS,KAAK,QAAY,GAAG,OACjF;AAAA,yBAAC,SAAI,WAAU,eACb;AAAA,0BAAC,KAAE,IAAQ,WAAU,gBAClB,iBACH;AAAA,MACC,QAAQ,oBAAC,OAAE,WAAU,eAAe,gBAAK;AAAA,OAC5C;AAAA,IACC,YAAY,oBAAC,SAAI,WAAU,kBAAkB,UAAS;AAAA,KACzD;AAEJ;","names":[]}
@@ -159,7 +159,7 @@ type QuickAction = {
159
159
  href: string;
160
160
  };
161
161
  /** A dashboard screen: heading, actions, filters, then the grid of widgets. */
162
- declare function DashboardLayout({ title, eyebrow, description, actions, toolbar, date, quickActions, quickActionsLabel, linkAs, side, headingAs: H, className, children, ...props }: DashboardLayoutProps): React.JSX.Element;
162
+ declare function DashboardLayout({ title, eyebrow, description, actions, toolbar, date, quickActions, quickActionsLabel, linkAs, side, headingAs: H, className, children, ...props }: Readonly<DashboardLayoutProps>): React.JSX.Element;
163
163
  type WidgetProps = Omit<React.ComponentProps<"section">, "title"> & {
164
164
  /** The widget's title: it names the region. */
165
165
  title: React.ReactNode;
@@ -181,7 +181,7 @@ type WidgetProps = Omit<React.ComponentProps<"section">, "title"> & {
181
181
  children: React.ReactNode;
182
182
  };
183
183
  /** A widget of the dashboard: a titled region on a card. */
184
- declare function Widget({ title, description, action, span, level, className, children, id, ...props }: WidgetProps): React.JSX.Element;
184
+ declare function Widget({ title, description, action, span, level, className, children, id, ...props }: Readonly<WidgetProps>): React.JSX.Element;
185
185
 
186
186
  export { DashboardLayout, Widget, dashboardLayout };
187
187
  export type { DashboardLayoutProps, QuickAction, WidgetProps };
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/dashboard-layout/dashboard-layout.tsx","../src/block-link.tsx"],"sourcesContent":["// Server-safe. A dashboard, read from the products' home screens (a creator studio, Sovkora's console for\n// Eric): the screen's heading with its actions and filters, then a responsive grid of widgets — one column on a phone,\n// two from `sm`, four from `xl`; a widget spans 1, 2, 3 columns or the full row, and keeps its order everywhere.\nimport * as React from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nimport { BlockLink, type LinkComponent } from \"../block-link\";\n\nexport const dashboardLayout = tv({\n slots: {\n root: \"flex w-full flex-col gap-6\",\n head: \"flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between\",\n text: \"flex min-w-0 flex-col gap-1\",\n eyebrow: \"font-mono text-[11px] font-semibold text-fg-accent\",\n title: \"font-display text-2xl font-extrabold tracking-tight text-fg sm:text-[1.75rem]\",\n description: \"max-w-2xl text-sm text-fg-secondary\",\n side: \"flex min-w-0 flex-col gap-4\",\n right: \"flex shrink-0 flex-col gap-2 sm:items-end\",\n date: \"m-0 text-sm font-medium tabular-nums text-fg-secondary sm:text-right\",\n quick: \"m-0 grid list-none grid-cols-2 gap-2 p-0 lg:grid-cols-4\",\n tile:\n \"flex h-full min-h-14 min-w-0 items-center gap-3 rounded-xl border border-border-default bg-surface-1 p-3 text-fg no-underline transition-colors \" +\n \"hover:border-accent/60 hover:bg-accent-soft focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring\",\n tileIcon: \"grid size-9 shrink-0 place-items-center rounded-lg bg-accent-soft text-fg-accent [&>svg]:size-5\",\n tileText: \"flex min-w-0 flex-col leading-tight\",\n tileLabel: \"text-sm font-semibold\",\n tileHint: \"text-xs text-fg-secondary\",\n actions: \"flex shrink-0 flex-wrap items-center gap-2\",\n toolbar: \"flex flex-wrap items-center gap-2\",\n // content-start: next to a taller side column the rows keep the height of their content (an auto row would stretch, and a card inside a widget with it: verikora#435).\n grid: \"grid grid-cols-1 content-start gap-4 sm:grid-cols-2 xl:grid-cols-4\",\n widget: \"flex min-w-0 flex-col gap-3 rounded-xl border border-border-default bg-surface-1 p-4 sm:p-5\",\n widgetHead: \"flex items-start justify-between gap-3\",\n widgetTitle: \"text-sm font-semibold text-fg\",\n widgetDescription: \"mt-0.5 text-xs text-fg-secondary\",\n widgetBody: \"min-w-0 flex-1\",\n },\n variants: {\n span: {\n 1: { widget: \"\" },\n 2: { widget: \"sm:col-span-2\" },\n 3: { widget: \"sm:col-span-2 xl:col-span-3\" },\n full: { widget: \"sm:col-span-2 xl:col-span-4\" },\n },\n },\n defaultVariants: { span: 1 },\n});\nconst s = dashboardLayout();\n\nexport type DashboardLayoutProps = Omit<React.ComponentProps<\"div\">, \"title\"> & {\n /** The screen's title: `Good morning, Eric`. */\n title: React.ReactNode;\n /** A mono line above it (the workspace, the date). */\n eyebrow?: React.ReactNode;\n /** One sentence under it. */\n description?: React.ReactNode;\n /** The screen's actions (a primary Button, a DropdownMenu). */\n actions?: React.ReactNode;\n /** Under the heading: the period, the filters (Segmented tabs, a DateRangePicker, a FilterBar). */\n toolbar?: React.ReactNode;\n /**\n * The heading's level: `h1` when the dashboard is the screen, `h2` inside an AppShell whose header holds the h1.\n * @default \"h1\"\n */\n headingAs?: \"h1\" | \"h2\";\n /** Today's date, in words, formatted by the app with `@krizaka/intl`: on the right of the heading; under the title on a phone. */\n date?: React.ReactNode;\n /** Two to four tiles under the heading: where the person goes most (new invoice, new client…). */\n quickActions?: readonly QuickAction[];\n /** Names the quick actions' navigation (`Quick access`). Required with `quickActions`. */\n quickActionsLabel?: string;\n /** The app's link component for the quick actions. */\n linkAs?: LinkComponent;\n /** A side column (the period panel, `NextActions`, a notes list) beside the widgets from `lg`; under them on a phone. */\n side?: React.ReactNode;\n /** The widgets (`Widget`), in reading order. */\n children: React.ReactNode;\n};\n\n/** A tile of the quick-access row: an icon, a name, one line, a way in. */\nexport type QuickAction = {\n id: string;\n label: string;\n /** One line under the name. */\n hint?: string;\n icon?: React.ReactNode;\n href: string;\n};\n\n/** A dashboard screen: heading, actions, filters, then the grid of widgets. */\nexport function DashboardLayout({\n title,\n eyebrow,\n description,\n actions,\n toolbar,\n date,\n quickActions,\n quickActionsLabel,\n linkAs,\n side,\n headingAs: H = \"h1\",\n className,\n children,\n ...props\n}: DashboardLayoutProps) {\n const grid = <div className={s.grid()}>{children}</div>;\n return (\n <div className={s.root({ className })} {...props}>\n <div className={s.head()}>\n <div className={s.text()}>\n {eyebrow && <p className={s.eyebrow()}>{eyebrow}</p>}\n <H className={s.title()}>{title}</H>\n {description && <p className={s.description()}>{description}</p>}\n </div>\n {(date || actions) && (\n <div className={s.right()}>\n {date && <p className={s.date()}>{date}</p>}\n {actions && <div className={s.actions()}>{actions}</div>}\n </div>\n )}\n </div>\n {toolbar && <div className={s.toolbar()}>{toolbar}</div>}\n {quickActions && quickActions.length > 0 && (\n <nav aria-label={quickActionsLabel}>\n <ul className={s.quick()}>\n {quickActions.slice(0, 4).map((q) => (\n <li key={q.id}>\n <BlockLink href={q.href} linkAs={linkAs} className={s.tile()}>\n {q.icon && (\n <span className={s.tileIcon()} aria-hidden=\"true\">\n {q.icon}\n </span>\n )}\n <span className={s.tileText()}>\n <span className={s.tileLabel()}>{q.label}</span>\n {q.hint && <span className={s.tileHint()}>{q.hint}</span>}\n </span>\n </BlockLink>\n </li>\n ))}\n </ul>\n </nav>\n )}\n {side ? (\n <div className=\"grid grid-cols-1 gap-6 lg:grid-cols-[minmax(0,1fr)_20rem]\">\n {grid}\n <aside className={s.side()}>{side}</aside>\n </div>\n ) : (\n grid\n )}\n </div>\n );\n}\n\nexport type WidgetProps = Omit<React.ComponentProps<\"section\">, \"title\"> & {\n /** The widget's title: it names the region. */\n title: React.ReactNode;\n /** One line under the title (the period, the source). */\n description?: React.ReactNode;\n /** An action on the right of the title (`See all`). */\n action?: React.ReactNode;\n /**\n * The columns it takes: 1, 2, 3 or the full row (from `sm`; one column on a phone).\n * @default 1\n */\n span?: 1 | 2 | 3 | \"full\";\n /**\n * The title's level: one under the dashboard's heading — `2` under an `h1`, `3` inside an AppShell (`headingAs=\"h2\"`).\n * @default 2\n */\n level?: 2 | 3;\n /** The content: a Stat, a chart of @krizaka/charts, a DataTable, a list. */\n children: React.ReactNode;\n};\n\n/** A widget of the dashboard: a titled region on a card. */\nexport function Widget({ title, description, action, span = 1, level = 2, className, children, id, ...props }: WidgetProps) {\n const H = level === 2 ? \"h2\" : \"h3\";\n const sv = dashboardLayout({ span });\n const auto = React.useId();\n const titleId = `${id ?? auto}-title`;\n return (\n <section className={sv.widget({ className })} aria-labelledby={titleId} id={id} {...props}>\n <div className={s.widgetHead()}>\n <div className=\"min-w-0\">\n <H id={titleId} className={s.widgetTitle()}>\n {title}\n </H>\n {description && <p className={s.widgetDescription()}>{description}</p>}\n </div>\n {action}\n </div>\n <div className={s.widgetBody()}>{children}</div>\n </section>\n );\n}\n","// The links of the page blocks (PageHero's back link, LinkCard, ArgumentCard, ActionBar): an internal path renders\n// through the app's router link (`linkAs`, e.g. Next's `Link`), anything else is an `<a>` that opens in a new tab.\n// Shared by the block entries; never exported on its own.\nimport type * as React from \"react\";\n\n/** The app's link component (Next's `Link`, React Router's `Link`…): receives `href`, `className` and the children. */\nexport type LinkComponent = React.ElementType<{ href: string; className?: string; children?: React.ReactNode; \"aria-label\"?: string; \"aria-describedby\"?: string }>;\n\n/** An address that leaves the app: an absolute URL or a protocol (`mailto:`). */\nexport const isExternal = (href: string) => /^[a-z][a-z0-9+.-]*:/i.test(href);\n\nexport function BlockLink({\n href,\n linkAs: Link = \"a\",\n external = isExternal(href),\n rel,\n ...props\n}: Omit<React.ComponentProps<\"a\">, \"href\"> & { href: string; linkAs?: LinkComponent; external?: boolean }) {\n if (external) return <a href={href} target=\"_blank\" rel={rel ?? \"noopener noreferrer\"} {...props} />;\n const Comp = Link as React.ElementType;\n return <Comp href={href} rel={rel} {...props} />;\n}\n"],"mappings":";AAGA,YAAY,WAAW;AACvB,SAAS,UAAU;;;ACcI;AAThB,IAAM,aAAa,CAAC,SAAiB,uBAAuB,KAAK,IAAI;AAErE,SAAS,UAAU;AAAA,EACxB;AAAA,EACA,QAAQ,OAAO;AAAA,EACf,WAAW,WAAW,IAAI;AAAA,EAC1B;AAAA,EACA,GAAG;AACL,GAA2G;AACzG,MAAI,SAAU,QAAO,oBAAC,OAAE,MAAY,QAAO,UAAS,KAAK,OAAO,uBAAwB,GAAG,OAAO;AAClG,QAAM,OAAO;AACb,SAAO,oBAAC,QAAK,MAAY,KAAW,GAAG,OAAO;AAChD;;;ADqFe,gBAAAA,MAIP,YAJO;AAlGR,IAAM,kBAAkB,GAAG;AAAA,EAChC,OAAO;AAAA,IACL,MAAM;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,IACN,SAAS;AAAA,IACT,OAAO;AAAA,IACP,aAAa;AAAA,IACb,MAAM;AAAA,IACN,OAAO;AAAA,IACP,MAAM;AAAA,IACN,OAAO;AAAA,IACP,MACE;AAAA,IAEF,UAAU;AAAA,IACV,UAAU;AAAA,IACV,WAAW;AAAA,IACX,UAAU;AAAA,IACV,SAAS;AAAA,IACT,SAAS;AAAA;AAAA,IAET,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,YAAY;AAAA,IACZ,aAAa;AAAA,IACb,mBAAmB;AAAA,IACnB,YAAY;AAAA,EACd;AAAA,EACA,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,GAAG,EAAE,QAAQ,GAAG;AAAA,MAChB,GAAG,EAAE,QAAQ,gBAAgB;AAAA,MAC7B,GAAG,EAAE,QAAQ,8BAA8B;AAAA,MAC3C,MAAM,EAAE,QAAQ,8BAA8B;AAAA,IAChD;AAAA,EACF;AAAA,EACA,iBAAiB,EAAE,MAAM,EAAE;AAC7B,CAAC;AACD,IAAM,IA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safe. A dashboard, read from the products' home screens (a creator studio, Sovkora's console for\n// Eric): the screen's heading with its actions and filters, then a responsive grid of widgets — one column on a phone,\n// two from `sm`, four from `xl`; a widget spans 1, 2, 3 columns or the full row, and keeps its order everywhere.\nimport * as React from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nimport { BlockLink, type LinkComponent } from \"../block-link\";\n\nexport const dashboardLayout = tv({\n slots: {\n root: \"flex w-full flex-col gap-6\",\n head: \"flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between\",\n text: \"flex min-w-0 flex-col gap-1\",\n eyebrow: \"font-mono text-[11px] font-semibold text-fg-accent\",\n title: \"font-display text-2xl font-extrabold tracking-tight text-fg sm:text-[1.75rem]\",\n description: \"max-w-2xl text-sm text-fg-secondary\",\n side: \"flex min-w-0 flex-col gap-4\",\n right: \"flex shrink-0 flex-col gap-2 sm:items-end\",\n date: \"m-0 text-sm font-medium tabular-nums text-fg-secondary sm:text-right\",\n quick: \"m-0 grid list-none grid-cols-2 gap-2 p-0 lg:grid-cols-4\",\n tile:\n \"flex h-full min-h-14 min-w-0 items-center gap-3 rounded-xl border border-border-default bg-surface-1 p-3 text-fg no-underline transition-colors \" +\n \"hover:border-accent/60 hover:bg-accent-soft focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring\",\n tileIcon: \"grid size-9 shrink-0 place-items-center rounded-lg bg-accent-soft text-fg-accent [&>svg]:size-5\",\n tileText: \"flex min-w-0 flex-col leading-tight\",\n tileLabel: \"text-sm font-semibold\",\n tileHint: \"text-xs text-fg-secondary\",\n actions: \"flex shrink-0 flex-wrap items-center gap-2\",\n toolbar: \"flex flex-wrap items-center gap-2\",\n // content-start: next to a taller side column the rows keep the height of their content (an auto row would stretch, and a card inside a widget with it: verikora#435).\n grid: \"grid grid-cols-1 content-start gap-4 sm:grid-cols-2 xl:grid-cols-4\",\n widget: \"flex min-w-0 flex-col gap-3 rounded-xl border border-border-default bg-surface-1 p-4 sm:p-5\",\n widgetHead: \"flex items-start justify-between gap-3\",\n widgetTitle: \"text-sm font-semibold text-fg\",\n widgetDescription: \"mt-0.5 text-xs text-fg-secondary\",\n widgetBody: \"min-w-0 flex-1\",\n },\n variants: {\n span: {\n 1: { widget: \"\" },\n 2: { widget: \"sm:col-span-2\" },\n 3: { widget: \"sm:col-span-2 xl:col-span-3\" },\n full: { widget: \"sm:col-span-2 xl:col-span-4\" },\n },\n },\n defaultVariants: { span: 1 },\n});\nconst s = dashboardLayout();\n\nexport type DashboardLayoutProps = Omit<React.ComponentProps<\"div\">, \"title\"> & {\n /** The screen's title: `Good morning, Eric`. */\n title: React.ReactNode;\n /** A mono line above it (the workspace, the date). */\n eyebrow?: React.ReactNode;\n /** One sentence under it. */\n description?: React.ReactNode;\n /** The screen's actions (a primary Button, a DropdownMenu). */\n actions?: React.ReactNode;\n /** Under the heading: the period, the filters (Segmented tabs, a DateRangePicker, a FilterBar). */\n toolbar?: React.ReactNode;\n /**\n * The heading's level: `h1` when the dashboard is the screen, `h2` inside an AppShell whose header holds the h1.\n * @default \"h1\"\n */\n headingAs?: \"h1\" | \"h2\";\n /** Today's date, in words, formatted by the app with `@krizaka/intl`: on the right of the heading; under the title on a phone. */\n date?: React.ReactNode;\n /** Two to four tiles under the heading: where the person goes most (new invoice, new client…). */\n quickActions?: readonly QuickAction[];\n /** Names the quick actions' navigation (`Quick access`). Required with `quickActions`. */\n quickActionsLabel?: string;\n /** The app's link component for the quick actions. */\n linkAs?: LinkComponent;\n /** A side column (the period panel, `NextActions`, a notes list) beside the widgets from `lg`; under them on a phone. */\n side?: React.ReactNode;\n /** The widgets (`Widget`), in reading order. */\n children: React.ReactNode;\n};\n\n/** A tile of the quick-access row: an icon, a name, one line, a way in. */\nexport type QuickAction = {\n id: string;\n label: string;\n /** One line under the name. */\n hint?: string;\n icon?: React.ReactNode;\n href: string;\n};\n\n/** A dashboard screen: heading, actions, filters, then the grid of widgets. */\nexport function DashboardLayout({\n title,\n eyebrow,\n description,\n actions,\n toolbar,\n date,\n quickActions,\n quickActionsLabel,\n linkAs,\n side,\n headingAs: H = \"h1\",\n className,\n children,\n ...props\n}: Readonly<DashboardLayoutProps>) {\n const grid = <div className={s.grid()}>{children}</div>;\n return (\n <div className={s.root({ className })} {...props}>\n <div className={s.head()}>\n <div className={s.text()}>\n {eyebrow && <p className={s.eyebrow()}>{eyebrow}</p>}\n <H className={s.title()}>{title}</H>\n {description && <p className={s.description()}>{description}</p>}\n </div>\n {(date || actions) && (\n <div className={s.right()}>\n {date && <p className={s.date()}>{date}</p>}\n {actions && <div className={s.actions()}>{actions}</div>}\n </div>\n )}\n </div>\n {toolbar && <div className={s.toolbar()}>{toolbar}</div>}\n {quickActions && quickActions.length > 0 && (\n <nav aria-label={quickActionsLabel}>\n <ul className={s.quick()}>\n {quickActions.slice(0, 4).map((q) => (\n <li key={q.id}>\n <BlockLink href={q.href} linkAs={linkAs} className={s.tile()}>\n {q.icon && (\n <span className={s.tileIcon()} aria-hidden=\"true\">\n {q.icon}\n </span>\n )}\n <span className={s.tileText()}>\n <span className={s.tileLabel()}>{q.label}</span>\n {q.hint && <span className={s.tileHint()}>{q.hint}</span>}\n </span>\n </BlockLink>\n </li>\n ))}\n </ul>\n </nav>\n )}\n {side ? (\n <div className=\"grid grid-cols-1 gap-6 lg:grid-cols-[minmax(0,1fr)_20rem]\">\n {grid}\n <aside className={s.side()}>{side}</aside>\n </div>\n ) : (\n grid\n )}\n </div>\n );\n}\n\nexport type WidgetProps = Omit<React.ComponentProps<\"section\">, \"title\"> & {\n /** The widget's title: it names the region. */\n title: React.ReactNode;\n /** One line under the title (the period, the source). */\n description?: React.ReactNode;\n /** An action on the right of the title (`See all`). */\n action?: React.ReactNode;\n /**\n * The columns it takes: 1, 2, 3 or the full row (from `sm`; one column on a phone).\n * @default 1\n */\n span?: 1 | 2 | 3 | \"full\";\n /**\n * The title's level: one under the dashboard's heading — `2` under an `h1`, `3` inside an AppShell (`headingAs=\"h2\"`).\n * @default 2\n */\n level?: 2 | 3;\n /** The content: a Stat, a chart of @krizaka/charts, a DataTable, a list. */\n children: React.ReactNode;\n};\n\n/** A widget of the dashboard: a titled region on a card. */\nexport function Widget({ title, description, action, span = 1, level = 2, className, children, id, ...props }: Readonly<WidgetProps>) {\n const H = level === 2 ? \"h2\" : \"h3\";\n const sv = dashboardLayout({ span });\n const auto = React.useId();\n const titleId = `${id ?? auto}-title`;\n return (\n <section className={sv.widget({ className })} aria-labelledby={titleId} id={id} {...props}>\n <div className={s.widgetHead()}>\n <div className=\"min-w-0\">\n <H id={titleId} className={s.widgetTitle()}>\n {title}\n </H>\n {description && <p className={s.widgetDescription()}>{description}</p>}\n </div>\n {action}\n </div>\n <div className={s.widgetBody()}>{children}</div>\n </section>\n );\n}\n","// The links of the page blocks (PageHero's back link, LinkCard, ArgumentCard, ActionBar): an internal path renders\n// through the app's router link (`linkAs`, e.g. Next's `Link`), anything else is an `<a>` that opens in a new tab.\n// Shared by the block entries; never exported on its own.\nimport type * as React from \"react\";\n\n/** The app's link component (Next's `Link`, React Router's `Link`…): receives `href`, `className` and the children. */\nexport type LinkComponent = React.ElementType<{ href: string; className?: string; children?: React.ReactNode; \"aria-label\"?: string; \"aria-describedby\"?: string }>;\n\n/** An address that leaves the app: an absolute URL or a protocol (`mailto:`). */\nexport const isExternal = (href: string) => /^[a-z][a-z0-9+.-]*:/i.test(href);\n\nexport function BlockLink({\n href,\n linkAs: Link = \"a\",\n external = isExternal(href),\n rel,\n ...props\n}: Readonly<Omit<React.ComponentProps<\"a\">, \"href\"> & { href: string; linkAs?: LinkComponent; external?: boolean }>) {\n if (external) return <a href={href} target=\"_blank\" rel={rel ?? \"noopener noreferrer\"} {...props} />;\n const Comp = Link as React.ElementType;\n return <Comp href={href} rel={rel} {...props} />;\n}\n"],"mappings":";AAGA,YAAY,WAAW;AACvB,SAAS,UAAU;;;ACcI;AAThB,IAAM,aAAa,CAAC,SAAiB,uBAAuB,KAAK,IAAI;AAErE,SAAS,UAAU;AAAA,EACxB;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