@krizaka/ui 3.54.0 → 3.59.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 (814) hide show
  1. package/README.md +1 -0
  2. package/dist/{RotatingWord-D9s7FXFD.d.ts → RotatingWord-COSabR2c.d.ts} +2 -1
  3. package/dist/account-menu.d.ts +8 -3
  4. package/dist/account-menu.js +8 -1
  5. package/dist/account-menu.js.map +1 -1
  6. package/dist/account-settings.d.ts +153 -61
  7. package/dist/account-settings.js +243 -160
  8. package/dist/account-settings.js.map +1 -1
  9. package/dist/achievement.d.ts +2 -1
  10. package/dist/action-bar.d.ts +3 -2
  11. package/dist/activity-feed.d.ts +2 -1
  12. package/dist/agenda.d.ts +2 -1
  13. package/dist/alert.d.ts +2 -1
  14. package/dist/anatomy-plate.d.ts +6 -2
  15. package/dist/anatomy-plate.js +4 -0
  16. package/dist/anatomy-plate.js.map +1 -1
  17. package/dist/app-header/search.d.ts +64 -0
  18. package/dist/app-header/search.js +70 -0
  19. package/dist/app-header/search.js.map +1 -0
  20. package/dist/app-header.d.ts +89 -4
  21. package/dist/app-header.js +63 -5
  22. package/dist/app-header.js.map +1 -1
  23. package/dist/app-shell.d.ts +26 -25
  24. package/dist/app-shell.js +31 -40
  25. package/dist/app-shell.js.map +1 -1
  26. package/dist/argument-card.d.ts +3 -2
  27. package/dist/argument-card.js +3 -3
  28. package/dist/audio-player.d.ts +2 -1
  29. package/dist/auth-layout.d.ts +11 -10
  30. package/dist/avatar/defaults.d.ts +2 -1
  31. package/dist/avatar.d.ts +2 -1
  32. package/dist/badge.d.ts +2 -1
  33. package/dist/bird-plate.d.ts +7 -3
  34. package/dist/bird-plate.js +2 -2
  35. package/dist/bird-plate.js.map +1 -1
  36. package/dist/blocks.css +235 -27
  37. package/dist/button.d.ts +2 -1
  38. package/dist/captcha.d.ts +2 -1
  39. package/dist/captcha.js +1 -0
  40. package/dist/captcha.js.map +1 -1
  41. package/dist/card-grid.d.ts +2 -1
  42. package/dist/card.d.ts +2 -1
  43. package/dist/catalogue-page.d.ts +82 -2
  44. package/dist/catalogue-page.js +156 -13
  45. package/dist/catalogue-page.js.map +1 -1
  46. package/dist/changelog-page.d.ts +2 -1
  47. package/dist/chapter.d.ts +2 -1
  48. package/dist/chat.d.ts +14 -13
  49. package/dist/chat.js +2 -2
  50. package/dist/chat.js.map +1 -1
  51. package/dist/checkbox.d.ts +2 -1
  52. package/dist/checkbox.js +1 -1
  53. package/dist/checkbox.js.map +1 -1
  54. package/dist/chip-link.d.ts +2 -1
  55. package/dist/chip-row.d.ts +8 -7
  56. package/dist/chip.d.ts +55 -1
  57. package/dist/chip.js +14 -98
  58. package/dist/chip.js.map +1 -1
  59. package/dist/choice-grid.d.ts +3 -2
  60. package/dist/choice-grid.js +28 -88
  61. package/dist/choice-grid.js.map +1 -1
  62. package/dist/chunk-27AWSJTK.js +46 -0
  63. package/dist/chunk-27AWSJTK.js.map +1 -0
  64. package/dist/{chunk-YGIN2YIY.js → chunk-3X3OF4TI.js} +2 -2
  65. package/dist/chunk-3X3OF4TI.js.map +1 -0
  66. package/dist/{chunk-KBQD6HE3.js → chunk-4GQH27IT.js} +3 -3
  67. package/dist/{chunk-KBQD6HE3.js.map → chunk-4GQH27IT.js.map} +1 -1
  68. package/dist/{chunk-YHKTYFOQ.js → chunk-5LANVCK7.js} +383 -107
  69. package/dist/chunk-5LANVCK7.js.map +1 -0
  70. package/dist/{chunk-KDXRYUD3.js → chunk-5QEXOGO2.js} +3 -1
  71. package/dist/{chunk-KDXRYUD3.js.map → chunk-5QEXOGO2.js.map} +1 -1
  72. package/dist/chunk-5VEVYDVC.js +11 -0
  73. package/dist/chunk-5VEVYDVC.js.map +1 -0
  74. package/dist/chunk-7J2L4HOD.js +340 -0
  75. package/dist/chunk-7J2L4HOD.js.map +1 -0
  76. package/dist/chunk-BDIU5LZB.js +18 -0
  77. package/dist/chunk-BDIU5LZB.js.map +1 -0
  78. package/dist/chunk-BQ4EOR2O.js +177 -0
  79. package/dist/chunk-BQ4EOR2O.js.map +1 -0
  80. package/dist/chunk-CSRKYZ53.js +39 -0
  81. package/dist/chunk-CSRKYZ53.js.map +1 -0
  82. package/dist/chunk-F6JTHPHE.js +399 -0
  83. package/dist/chunk-F6JTHPHE.js.map +1 -0
  84. package/dist/chunk-HEKDKM5Y.js +128 -0
  85. package/dist/chunk-HEKDKM5Y.js.map +1 -0
  86. package/dist/chunk-KGLRZMCY.js +16 -0
  87. package/dist/chunk-KGLRZMCY.js.map +1 -0
  88. package/dist/chunk-KID32IRJ.js +18 -0
  89. package/dist/chunk-KID32IRJ.js.map +1 -0
  90. package/dist/chunk-OGWB76BR.js +90 -0
  91. package/dist/chunk-OGWB76BR.js.map +1 -0
  92. package/dist/{chunk-4LYKBSOG.js → chunk-USPOIQV5.js} +2 -2
  93. package/dist/chunk-USPOIQV5.js.map +1 -0
  94. package/dist/chunk-UYGUSYIC.js +173 -0
  95. package/dist/chunk-UYGUSYIC.js.map +1 -0
  96. package/dist/{chunk-7NRSPHAF.js → chunk-VB7MWE2N.js} +2 -2
  97. package/dist/{chunk-7NRSPHAF.js.map → chunk-VB7MWE2N.js.map} +1 -1
  98. package/dist/chunk-WOZP3JLW.js +51 -0
  99. package/dist/chunk-WOZP3JLW.js.map +1 -0
  100. package/dist/chunk-XVXFMVG3.js +27 -0
  101. package/dist/chunk-XVXFMVG3.js.map +1 -0
  102. package/dist/chunk-YCZ7N6Q6.js +385 -0
  103. package/dist/chunk-YCZ7N6Q6.js.map +1 -0
  104. package/dist/code-block.d.ts +2 -1
  105. package/dist/code-block.js +81 -98
  106. package/dist/code-block.js.map +1 -1
  107. package/dist/combobox.d.ts +20 -19
  108. package/dist/combobox.js +3 -2
  109. package/dist/command.d.ts +21 -20
  110. package/dist/comparison-table.d.ts +2 -1
  111. package/dist/component-page.d.ts +6 -2
  112. package/dist/component-page.js +5 -0
  113. package/dist/component-page.js.map +1 -1
  114. package/dist/confirm-button.d.ts +2 -1
  115. package/dist/contact-page.d.ts +2 -1
  116. package/dist/continue-prompt.d.ts +6 -2
  117. package/dist/continue-prompt.js +4 -0
  118. package/dist/continue-prompt.js.map +1 -1
  119. package/dist/countdown.d.ts +2 -1
  120. package/dist/cover-hero.d.ts +20 -19
  121. package/dist/cover-hero.js +25 -42
  122. package/dist/cover-hero.js.map +1 -1
  123. package/dist/cta-panel.d.ts +2 -1
  124. package/dist/dashboard-layout.d.ts +50 -2
  125. package/dist/dashboard-layout.js +66 -11
  126. package/dist/dashboard-layout.js.map +1 -1
  127. package/dist/data-table.d.ts +103 -4
  128. package/dist/data-table.js +23 -7
  129. package/dist/date-picker.d.ts +29 -28
  130. package/dist/date-picker.js +2 -2
  131. package/dist/date-picker.js.map +1 -1
  132. package/dist/decision-list.d.ts +2 -1
  133. package/dist/description-list.d.ts +2 -1
  134. package/dist/detail-layout.d.ts +147 -3
  135. package/dist/detail-layout.js +143 -17
  136. package/dist/detail-layout.js.map +1 -1
  137. package/dist/{dialog-D42QwYb_.d.ts → dialog-DpUwec2g.d.ts} +2 -1
  138. package/dist/dialog.d.ts +3 -2
  139. package/dist/docs-article-page.d.ts +2 -1
  140. package/dist/docs-hub-page.d.ts +2 -1
  141. package/dist/docs-layout.d.ts +2 -1
  142. package/dist/docs-nav.d.ts +3 -10
  143. package/dist/document-viewer.d.ts +5 -4
  144. package/dist/doodle.d.ts +32 -0
  145. package/dist/doodle.js +70 -0
  146. package/dist/doodle.js.map +1 -0
  147. package/dist/drop-overlay.d.ts +14 -5
  148. package/dist/drop-overlay.js +16 -6
  149. package/dist/drop-overlay.js.map +1 -1
  150. package/dist/dropdown-menu.d.ts +2 -1
  151. package/dist/dropdown-menu.js +13 -74
  152. package/dist/dropdown-menu.js.map +1 -1
  153. package/dist/elephant.d.ts +4 -1
  154. package/dist/elephant.js +4 -0
  155. package/dist/elephant.js.map +1 -1
  156. package/dist/empty-state.d.ts +2 -1
  157. package/dist/engine-flow.d.ts +2 -1
  158. package/dist/error-page.d.ts +2 -1
  159. package/dist/field.js +1 -1
  160. package/dist/field.js.map +1 -1
  161. package/dist/file-upload.d.ts +14 -13
  162. package/dist/filter-bar.d.ts +84 -11
  163. package/dist/filter-bar.js +6 -2
  164. package/dist/flock.d.ts +3 -2
  165. package/dist/footnote.d.ts +2 -1
  166. package/dist/force-update-screen.d.ts +13 -8
  167. package/dist/force-update-screen.js +4 -0
  168. package/dist/force-update-screen.js.map +1 -1
  169. package/dist/form/server.d.ts +2 -1
  170. package/dist/form.d.ts +2 -1
  171. package/dist/gallery-page.d.ts +6 -2
  172. package/dist/gallery-page.js +4 -0
  173. package/dist/gallery-page.js.map +1 -1
  174. package/dist/genui.d.ts +2 -1
  175. package/dist/genui.js +5 -5
  176. package/dist/{geometry-DX-W-Yyf.d.ts → geometry-DZ4Q3hDQ.d.ts} +2 -1
  177. package/dist/glossary-term.d.ts +2 -1
  178. package/dist/glossary.d.ts +2 -1
  179. package/dist/glow-card.d.ts +2 -1
  180. package/dist/goal-gauge.d.ts +2 -1
  181. package/dist/grade-stamp.d.ts +23 -0
  182. package/dist/grade-stamp.js +42 -0
  183. package/dist/grade-stamp.js.map +1 -0
  184. package/dist/how-it-works-page.d.ts +2 -1
  185. package/dist/image-cropper.d.ts +15 -6
  186. package/dist/image-cropper.js +4 -0
  187. package/dist/image-cropper.js.map +1 -1
  188. package/dist/index.d.ts +3 -2
  189. package/dist/index.js +4 -4
  190. package/dist/iso.d.ts +2 -1
  191. package/dist/kanban.d.ts +5 -1
  192. package/dist/kanban.js +4 -0
  193. package/dist/kanban.js.map +1 -1
  194. package/dist/kbd.d.ts +2 -1
  195. package/dist/kind-config-editor.d.ts +152 -0
  196. package/dist/kind-config-editor.js +574 -0
  197. package/dist/kind-config-editor.js.map +1 -0
  198. package/dist/kpi-explained.d.ts +2 -1
  199. package/dist/landing-page.d.ts +2 -1
  200. package/dist/landscape.d.ts +6 -2
  201. package/dist/landscape.js +4 -0
  202. package/dist/landscape.js.map +1 -1
  203. package/dist/language-switch/server.d.ts +2 -1
  204. package/dist/language-switch.d.ts +11 -10
  205. package/dist/legal-page.d.ts +2 -1
  206. package/dist/link-card.d.ts +2 -1
  207. package/dist/list.d.ts +2 -1
  208. package/dist/list.js +1 -1
  209. package/dist/loader.d.ts +2 -1
  210. package/dist/longform-page.d.ts +2 -1
  211. package/dist/maintenance-screen.d.ts +10 -5
  212. package/dist/maintenance-screen.js +4 -0
  213. package/dist/maintenance-screen.js.map +1 -1
  214. package/dist/map.d.ts +8 -7
  215. package/dist/map.js +30 -0
  216. package/dist/map.js.map +1 -1
  217. package/dist/markdown.d.ts +7 -2
  218. package/dist/markdown.js +12 -5
  219. package/dist/markdown.js.map +1 -1
  220. package/dist/marketing-layout.d.ts +5 -4
  221. package/dist/marquee.d.ts +2 -1
  222. package/dist/mascot-quote.d.ts +2 -1
  223. package/dist/mascot-state.d.ts +3 -2
  224. package/dist/mascots.d.ts +4 -3
  225. package/dist/match-dialog.d.ts +6 -2
  226. package/dist/match-dialog.js +4 -0
  227. package/dist/match-dialog.js.map +1 -1
  228. package/dist/media-capture.d.ts +11 -5
  229. package/dist/media-capture.js +4 -0
  230. package/dist/media-capture.js.map +1 -1
  231. package/dist/media-gallery.d.ts +2 -1
  232. package/dist/media-grid.d.ts +3 -10
  233. package/dist/meta-row.d.ts +2 -1
  234. package/dist/meter.d.ts +2 -1
  235. package/dist/meter.js +5 -121
  236. package/dist/meter.js.map +1 -1
  237. package/dist/motion.d.ts +3 -2
  238. package/dist/native/form.d.ts +2 -1
  239. package/dist/native/list.d.ts +2 -1
  240. package/dist/native/map.d.ts +2 -1
  241. package/dist/native/map.js +30 -0
  242. package/dist/native/map.js.map +1 -1
  243. package/dist/native/markdown.d.ts +11 -3
  244. package/dist/native/markdown.js +46 -7
  245. package/dist/native/markdown.js.map +1 -1
  246. package/dist/native/media-capture.d.ts +3 -1
  247. package/dist/native/media-capture.js +5 -0
  248. package/dist/native/media-capture.js.map +1 -1
  249. package/dist/native/media-picker.d.ts +2 -1
  250. package/dist/native/vertical-video.d.ts +10 -3
  251. package/dist/native/vertical-video.js +6 -0
  252. package/dist/native/vertical-video.js.map +1 -1
  253. package/dist/native/video-player.d.ts +2 -1
  254. package/dist/native.d.ts +323 -4
  255. package/dist/native.js +1974 -1348
  256. package/dist/native.js.map +1 -1
  257. package/dist/nav-bar/me.d.ts +33 -0
  258. package/dist/nav-bar/me.js +23 -0
  259. package/dist/nav-bar/me.js.map +1 -0
  260. package/dist/nav-bar.d.ts +61 -2
  261. package/dist/nav-bar.js +92 -48
  262. package/dist/nav-bar.js.map +1 -1
  263. package/dist/next-actions.d.ts +2 -1
  264. package/dist/notification-preferences.d.ts +152 -0
  265. package/dist/notification-preferences.js +78 -0
  266. package/dist/notification-preferences.js.map +1 -0
  267. package/dist/number-ticker.d.ts +2 -1
  268. package/dist/opening-hours.d.ts +2 -1
  269. package/dist/page-header.d.ts +2 -1
  270. package/dist/page-header.js +1 -1
  271. package/dist/page-header.js.map +1 -1
  272. package/dist/page-hero.d.ts +2 -1
  273. package/dist/page-index.d.ts +2 -1
  274. package/dist/page.d.ts +2 -1
  275. package/dist/pagination.d.ts +2 -1
  276. package/dist/photo-grid.d.ts +2 -1
  277. package/dist/pointer-light.d.ts +2 -1
  278. package/dist/pointer-light.js +5 -0
  279. package/dist/pointer-light.js.map +1 -1
  280. package/dist/popover.d.ts +2 -1
  281. package/dist/pricing-page.d.ts +2 -1
  282. package/dist/product-page.d.ts +6 -2
  283. package/dist/product-page.js +4 -0
  284. package/dist/product-page.js.map +1 -1
  285. package/dist/profile-card.d.ts +120 -1
  286. package/dist/profile-card.js +68 -21
  287. package/dist/profile-card.js.map +1 -1
  288. package/dist/progress.d.ts +2 -1
  289. package/dist/promise-card.d.ts +6 -2
  290. package/dist/promise-card.js +4 -0
  291. package/dist/promise-card.js.map +1 -1
  292. package/dist/quota-meter.d.ts +114 -0
  293. package/dist/quota-meter.js +58 -0
  294. package/dist/quota-meter.js.map +1 -0
  295. package/dist/radio-group.d.ts +2 -1
  296. package/dist/radio-group.js +7 -9
  297. package/dist/radio-group.js.map +1 -1
  298. package/dist/rail-nav.d.ts +35 -18
  299. package/dist/rail-nav.js +45 -56
  300. package/dist/rail-nav.js.map +1 -1
  301. package/dist/recipes.d.ts +2 -1
  302. package/dist/retro-tv.d.ts +31 -0
  303. package/dist/retro-tv.js +124 -0
  304. package/dist/retro-tv.js.map +1 -0
  305. package/dist/router.d.ts +13 -1
  306. package/dist/router.js +85 -8
  307. package/dist/router.js.map +1 -1
  308. package/dist/scroll-stage.d.ts +7 -2
  309. package/dist/scroll-stage.js +5 -0
  310. package/dist/scroll-stage.js.map +1 -1
  311. package/dist/search-field.d.ts +2 -1
  312. package/dist/search-field.js +1 -1
  313. package/dist/section-backdrop.d.ts +2 -1
  314. package/dist/separator.d.ts +2 -1
  315. package/dist/service-card.d.ts +9 -8
  316. package/dist/settings-layout.d.ts +2 -1
  317. package/dist/settings-layout.js +10 -324
  318. package/dist/settings-layout.js.map +1 -1
  319. package/dist/showcase.d.ts +11 -3
  320. package/dist/showcase.js +5 -0
  321. package/dist/showcase.js.map +1 -1
  322. package/dist/signature.d.ts +20 -0
  323. package/dist/signature.js +39 -0
  324. package/dist/signature.js.map +1 -0
  325. package/dist/site-cahier.d.ts +187 -0
  326. package/dist/site-cahier.js +844 -0
  327. package/dist/site-cahier.js.map +1 -0
  328. package/dist/site-footer.d.ts +2 -1
  329. package/dist/site-footer.js +1 -1
  330. package/dist/sites.d.ts +2 -1
  331. package/dist/sites.js +1 -1
  332. package/dist/sites.js.map +1 -1
  333. package/dist/skeleton.d.ts +2 -1
  334. package/dist/skip-link.d.ts +2 -1
  335. package/dist/slider.d.ts +2 -1
  336. package/dist/slot-picker.d.ts +86 -13
  337. package/dist/slot-picker.js +98 -16
  338. package/dist/slot-picker.js.map +1 -1
  339. package/dist/slot.d.ts +1 -1
  340. package/dist/specimen-tag.d.ts +2 -1
  341. package/dist/speed-lines.d.ts +19 -0
  342. package/dist/speed-lines.js +45 -0
  343. package/dist/speed-lines.js.map +1 -0
  344. package/dist/spinner.d.ts +2 -1
  345. package/dist/split-view.d.ts +2 -1
  346. package/dist/stage-banner.d.ts +2 -1
  347. package/dist/stat.d.ts +2 -1
  348. package/dist/stat.js +1 -1
  349. package/dist/stat.js.map +1 -1
  350. package/dist/status-chip.d.ts +44 -0
  351. package/dist/status-chip.js +137 -0
  352. package/dist/status-chip.js.map +1 -0
  353. package/dist/status-page.d.ts +6 -2
  354. package/dist/status-page.js +5 -0
  355. package/dist/status-page.js.map +1 -1
  356. package/dist/step-progress.d.ts +2 -1
  357. package/dist/step-showcase.d.ts +2 -1
  358. package/dist/stepper.d.ts +2 -1
  359. package/dist/sticky-action.d.ts +28 -5
  360. package/dist/sticky-action.js +10 -4
  361. package/dist/sticky-action.js.map +1 -1
  362. package/dist/stuck.d.ts +28 -0
  363. package/dist/stuck.js +26 -0
  364. package/dist/stuck.js.map +1 -0
  365. package/dist/swipe-deck.d.ts +11 -3
  366. package/dist/swipe-deck.js +5 -0
  367. package/dist/swipe-deck.js.map +1 -1
  368. package/dist/switch.d.ts +2 -1
  369. package/dist/switch.js +4 -32
  370. package/dist/switch.js.map +1 -1
  371. package/dist/tabs.d.ts +48 -8
  372. package/dist/tabs.js +62 -12
  373. package/dist/tabs.js.map +1 -1
  374. package/dist/tag-input.d.ts +2 -1
  375. package/dist/tag-input.js +3 -2
  376. package/dist/tag-input.js.map +1 -1
  377. package/dist/tag-selector.d.ts +30 -4
  378. package/dist/tag-selector.js +90 -8
  379. package/dist/tag-selector.js.map +1 -1
  380. package/dist/taped-photo.d.ts +2 -1
  381. package/dist/taped-photo.js +3 -20
  382. package/dist/taped-photo.js.map +1 -1
  383. package/dist/terminal-replay.d.ts +6 -2
  384. package/dist/terminal-replay.js +5 -1
  385. package/dist/terminal-replay.js.map +1 -1
  386. package/dist/text-style/server.d.ts +2 -1
  387. package/dist/text-style.d.ts +2 -1
  388. package/dist/theme.d.ts +21 -1
  389. package/dist/theme.js +37 -1
  390. package/dist/theme.js.map +1 -1
  391. package/dist/toast.d.ts +2 -1
  392. package/dist/toc.d.ts +2 -1
  393. package/dist/tooltip.d.ts +2 -1
  394. package/dist/tree-view.d.ts +2 -1
  395. package/dist/tree-view.js +4 -0
  396. package/dist/tree-view.js.map +1 -1
  397. package/dist/update-prompt.d.ts +16 -11
  398. package/dist/update-prompt.js +4 -0
  399. package/dist/update-prompt.js.map +1 -1
  400. package/dist/upload-queue.d.ts +2 -1
  401. package/dist/verified-badge.d.ts +2 -1
  402. package/dist/versus-card.d.ts +40 -0
  403. package/dist/versus-card.js +40 -0
  404. package/dist/versus-card.js.map +1 -0
  405. package/dist/vertical-video.d.ts +2 -1
  406. package/dist/video-player.d.ts +20 -19
  407. package/dist/video-player.js +7 -376
  408. package/dist/video-player.js.map +1 -1
  409. package/dist/video-trimmer.d.ts +8 -2
  410. package/dist/video-trimmer.js +4 -0
  411. package/dist/video-trimmer.js.map +1 -1
  412. package/dist/virtual.d.ts +8 -7
  413. package/dist/waveform.d.ts +2 -1
  414. package/package.json +249 -52
  415. package/registry/account-menu.json +9 -8
  416. package/registry/account-settings.json +258 -6
  417. package/registry/achievement.json +3 -4
  418. package/registry/action-bar.json +3 -3
  419. package/registry/action-sheet.json +1 -0
  420. package/registry/activity-feed.json +2 -1
  421. package/registry/agenda.json +1 -1
  422. package/registry/alert.json +1 -1
  423. package/registry/anatomy-plate.json +13 -5
  424. package/registry/app-header.json +470 -23
  425. package/registry/app-shell.json +2 -2
  426. package/registry/argument-card.json +1 -1
  427. package/registry/audio-player.json +1 -1
  428. package/registry/auth-layout.json +1 -1
  429. package/registry/avatar.json +3 -2
  430. package/registry/badge.json +2 -1
  431. package/registry/bird-plate.json +16 -2
  432. package/registry/button.json +7 -6
  433. package/registry/captcha.json +1 -1
  434. package/registry/card-grid.json +1 -1
  435. package/registry/card.json +7 -6
  436. package/registry/catalogue-page.json +117 -8
  437. package/registry/changelog-page.json +3 -5
  438. package/registry/chapter.json +1 -1
  439. package/registry/chat.json +3 -2
  440. package/registry/checkbox.json +4 -3
  441. package/registry/chip-link.json +2 -2
  442. package/registry/chip-row.json +2 -2
  443. package/registry/chip.json +388 -12
  444. package/registry/choice-grid.json +3 -4
  445. package/registry/code-block.json +1 -1
  446. package/registry/combobox.json +3 -2
  447. package/registry/command.json +2 -2
  448. package/registry/comparison-table.json +1 -1
  449. package/registry/component-page.json +14 -5
  450. package/registry/confirm-button.json +4 -4
  451. package/registry/contact-page.json +1 -1
  452. package/registry/continue-prompt.json +13 -5
  453. package/registry/countdown.json +4 -3
  454. package/registry/cover-hero.json +3 -4
  455. package/registry/cta-panel.json +1 -1
  456. package/registry/dashboard-layout.json +91 -5
  457. package/registry/data-table.json +215 -8
  458. package/registry/date-picker.json +5 -4
  459. package/registry/decision-list.json +1 -1
  460. package/registry/description-list.json +2 -1
  461. package/registry/detail-layout.json +226 -8
  462. package/registry/dialog.json +7 -6
  463. package/registry/docs-article-page.json +3 -4
  464. package/registry/docs-hub-page.json +1 -1
  465. package/registry/docs-layout.json +1 -1
  466. package/registry/docs-nav.json +1 -1
  467. package/registry/document-viewer.json +3 -5
  468. package/registry/doodle.json +302 -0
  469. package/registry/drop-overlay.json +30 -16
  470. package/registry/dropdown-menu.json +2 -2
  471. package/registry/elephant.json +15 -7
  472. package/registry/empty-state.json +2 -1
  473. package/registry/engine-flow.json +1 -1
  474. package/registry/error-page.json +3 -5
  475. package/registry/examples/account-settings/appearance.d.ts +4 -0
  476. package/registry/examples/account-settings/appearance.js +40 -0
  477. package/registry/examples/account-settings/appearance.tsx +30 -0
  478. package/registry/examples/app-header/family.d.ts +4 -0
  479. package/registry/examples/app-header/family.js +41 -0
  480. package/registry/examples/app-header/family.tsx +37 -0
  481. package/registry/examples/app-header/native/family.d.ts +4 -0
  482. package/registry/examples/app-header/native/family.dark.png +0 -0
  483. package/registry/examples/app-header/native/family.js +25 -0
  484. package/registry/examples/app-header/native/family.light.png +0 -0
  485. package/registry/examples/app-header/native/family.tsx +33 -0
  486. package/registry/examples/catalogue-page/clients.d.ts +4 -0
  487. package/registry/examples/catalogue-page/clients.js +49 -0
  488. package/registry/examples/catalogue-page/clients.tsx +61 -0
  489. package/registry/examples/chip/marker-picker.d.ts +4 -0
  490. package/registry/examples/chip/marker-picker.js +17 -0
  491. package/registry/examples/chip/marker-picker.tsx +17 -0
  492. package/registry/examples/chip/native/marker-picker.d.ts +4 -0
  493. package/registry/examples/chip/native/marker-picker.dark.png +0 -0
  494. package/registry/examples/chip/native/marker-picker.js +18 -0
  495. package/registry/examples/chip/native/marker-picker.light.png +0 -0
  496. package/registry/examples/chip/native/marker-picker.tsx +16 -0
  497. package/registry/examples/chip/native/tags.d.ts +4 -0
  498. package/registry/examples/chip/native/tags.dark.png +0 -0
  499. package/registry/examples/chip/native/tags.js +22 -0
  500. package/registry/examples/chip/native/tags.light.png +0 -0
  501. package/registry/examples/chip/native/tags.tsx +20 -0
  502. package/registry/examples/chip/tags.d.ts +4 -0
  503. package/registry/examples/chip/tags.js +26 -0
  504. package/registry/examples/chip/tags.tsx +23 -0
  505. package/registry/examples/dashboard-layout/today.d.ts +4 -0
  506. package/registry/examples/dashboard-layout/today.js +54 -0
  507. package/registry/examples/dashboard-layout/today.tsx +63 -0
  508. package/registry/examples/data-table/applicant-files.d.ts +4 -0
  509. package/registry/examples/data-table/applicant-files.js +24 -0
  510. package/registry/examples/data-table/applicant-files.tsx +23 -0
  511. package/registry/examples/data-table/bulk.d.ts +4 -0
  512. package/registry/examples/data-table/bulk.js +45 -0
  513. package/registry/examples/data-table/bulk.tsx +34 -0
  514. package/registry/examples/data-table/checks.d.ts +4 -0
  515. package/registry/examples/data-table/checks.js +25 -0
  516. package/registry/examples/data-table/checks.tsx +24 -0
  517. package/registry/examples/detail-layout/client.d.ts +4 -0
  518. package/registry/examples/detail-layout/client.js +40 -0
  519. package/registry/examples/detail-layout/client.tsx +39 -0
  520. package/registry/examples/detail-layout/new-invoice.d.ts +4 -0
  521. package/registry/examples/detail-layout/new-invoice.js +44 -0
  522. package/registry/examples/detail-layout/new-invoice.tsx +34 -0
  523. package/registry/examples/detail-layout/profile.d.ts +4 -0
  524. package/registry/examples/detail-layout/profile.js +26 -0
  525. package/registry/examples/detail-layout/profile.tsx +21 -0
  526. package/registry/examples/doodle/bird-sketch.d.ts +4 -0
  527. package/registry/examples/doodle/bird-sketch.js +11 -0
  528. package/registry/examples/doodle/bird-sketch.tsx +12 -0
  529. package/registry/examples/doodle/kinds.d.ts +4 -0
  530. package/registry/examples/doodle/kinds.js +17 -0
  531. package/registry/examples/doodle/kinds.tsx +14 -0
  532. package/registry/examples/doodle/margin-marks.d.ts +4 -0
  533. package/registry/examples/doodle/margin-marks.js +27 -0
  534. package/registry/examples/doodle/margin-marks.tsx +19 -0
  535. package/registry/examples/doodle/margin.d.ts +4 -0
  536. package/registry/examples/doodle/margin.js +17 -0
  537. package/registry/examples/doodle/margin.tsx +17 -0
  538. package/registry/examples/filter-bar/views.d.ts +4 -0
  539. package/registry/examples/filter-bar/views.js +39 -0
  540. package/registry/examples/filter-bar/views.tsx +30 -0
  541. package/registry/examples/grade-stamp/coverage.d.ts +4 -0
  542. package/registry/examples/grade-stamp/coverage.js +12 -0
  543. package/registry/examples/grade-stamp/coverage.tsx +8 -0
  544. package/registry/examples/grade-stamp/lighthouse.d.ts +4 -0
  545. package/registry/examples/grade-stamp/lighthouse.js +12 -0
  546. package/registry/examples/grade-stamp/lighthouse.tsx +14 -0
  547. package/registry/examples/kind-config-editor/derived.d.ts +4 -0
  548. package/registry/examples/kind-config-editor/derived.js +26 -0
  549. package/registry/examples/kind-config-editor/derived.tsx +16 -0
  550. package/registry/examples/kind-config-editor/native/status-set.d.ts +4 -0
  551. package/registry/examples/kind-config-editor/native/status-set.dark.png +0 -0
  552. package/registry/examples/kind-config-editor/native/status-set.js +22 -0
  553. package/registry/examples/kind-config-editor/native/status-set.light.png +0 -0
  554. package/registry/examples/kind-config-editor/native/status-set.tsx +19 -0
  555. package/registry/examples/kind-config-editor/native/tag-set.d.ts +4 -0
  556. package/registry/examples/kind-config-editor/native/tag-set.dark.png +0 -0
  557. package/registry/examples/kind-config-editor/native/tag-set.js +20 -0
  558. package/registry/examples/kind-config-editor/native/tag-set.light.png +0 -0
  559. package/registry/examples/kind-config-editor/native/tag-set.tsx +18 -0
  560. package/registry/examples/kind-config-editor/status-set.d.ts +4 -0
  561. package/registry/examples/kind-config-editor/status-set.js +29 -0
  562. package/registry/examples/kind-config-editor/status-set.tsx +25 -0
  563. package/registry/examples/kind-config-editor/tag-set.d.ts +4 -0
  564. package/registry/examples/kind-config-editor/tag-set.js +20 -0
  565. package/registry/examples/kind-config-editor/tag-set.tsx +18 -0
  566. package/registry/examples/markdown/native/basic.dark.png +0 -0
  567. package/registry/examples/markdown/native/basic.light.png +0 -0
  568. package/registry/examples/markdown/native/wide-table.d.ts +4 -0
  569. package/registry/examples/markdown/native/wide-table.dark.png +0 -0
  570. package/registry/examples/markdown/native/wide-table.js +23 -0
  571. package/registry/examples/markdown/native/wide-table.light.png +0 -0
  572. package/registry/examples/markdown/native/wide-table.tsx +22 -0
  573. package/registry/examples/markdown/wide-table.d.ts +4 -0
  574. package/registry/examples/markdown/wide-table.js +28 -0
  575. package/registry/examples/markdown/wide-table.tsx +23 -0
  576. package/registry/examples/nav-bar/family-product.js +2 -4
  577. package/registry/examples/nav-bar/family-product.tsx +3 -5
  578. package/registry/examples/notification-preferences/default.d.ts +4 -0
  579. package/registry/examples/notification-preferences/default.js +29 -0
  580. package/registry/examples/notification-preferences/default.tsx +28 -0
  581. package/registry/examples/profile-card/banner.d.ts +4 -0
  582. package/registry/examples/profile-card/banner.js +28 -0
  583. package/registry/examples/profile-card/banner.tsx +24 -0
  584. package/registry/examples/profile-card/native/banner.d.ts +4 -0
  585. package/registry/examples/profile-card/native/banner.dark.png +0 -0
  586. package/registry/examples/profile-card/native/banner.js +22 -0
  587. package/registry/examples/profile-card/native/banner.light.png +0 -0
  588. package/registry/examples/profile-card/native/banner.tsx +18 -0
  589. package/registry/examples/quota-meter/default.d.ts +4 -0
  590. package/registry/examples/quota-meter/default.js +26 -0
  591. package/registry/examples/quota-meter/default.tsx +20 -0
  592. package/registry/examples/quota-meter/full.d.ts +4 -0
  593. package/registry/examples/quota-meter/full.js +25 -0
  594. package/registry/examples/quota-meter/full.tsx +18 -0
  595. package/registry/examples/rail-nav/shortcuts.d.ts +4 -0
  596. package/registry/examples/rail-nav/shortcuts.js +49 -0
  597. package/registry/examples/rail-nav/shortcuts.tsx +40 -0
  598. package/registry/examples/retro-tv/cabinet.d.ts +4 -0
  599. package/registry/examples/retro-tv/cabinet.js +12 -0
  600. package/registry/examples/retro-tv/cabinet.tsx +7 -0
  601. package/registry/examples/retro-tv/portable.d.ts +4 -0
  602. package/registry/examples/retro-tv/portable.js +12 -0
  603. package/registry/examples/retro-tv/portable.tsx +7 -0
  604. package/registry/examples/signature/both.d.ts +4 -0
  605. package/registry/examples/signature/both.js +11 -0
  606. package/registry/examples/signature/both.tsx +6 -0
  607. package/registry/examples/signature/variants.d.ts +4 -0
  608. package/registry/examples/signature/variants.js +14 -0
  609. package/registry/examples/signature/variants.tsx +11 -0
  610. package/registry/examples/site-cahier/java-releases.d.ts +4 -0
  611. package/registry/examples/site-cahier/java-releases.js +33 -0
  612. package/registry/examples/site-cahier/java-releases.tsx +32 -0
  613. package/registry/examples/site-cahier/motion-lab.d.ts +4 -0
  614. package/registry/examples/site-cahier/motion-lab.js +32 -0
  615. package/registry/examples/site-cahier/motion-lab.tsx +29 -0
  616. package/registry/examples/site-cahier/ts-changelog.d.ts +4 -0
  617. package/registry/examples/site-cahier/ts-changelog.js +24 -0
  618. package/registry/examples/site-cahier/ts-changelog.tsx +20 -0
  619. package/registry/examples/site-cahier/ts-doc.d.ts +4 -0
  620. package/registry/examples/site-cahier/ts-doc.js +38 -0
  621. package/registry/examples/site-cahier/ts-doc.tsx +27 -0
  622. package/registry/examples/site-cahier/ui-home.d.ts +4 -0
  623. package/registry/examples/site-cahier/ui-home.js +46 -0
  624. package/registry/examples/site-cahier/ui-home.tsx +40 -0
  625. package/registry/examples/slot-picker/weeks.d.ts +4 -0
  626. package/registry/examples/slot-picker/weeks.js +45 -0
  627. package/registry/examples/slot-picker/weeks.tsx +28 -0
  628. package/registry/examples/speed-lines/hero.d.ts +4 -0
  629. package/registry/examples/speed-lines/hero.js +11 -0
  630. package/registry/examples/speed-lines/hero.tsx +12 -0
  631. package/registry/examples/speed-lines/streaks.d.ts +4 -0
  632. package/registry/examples/speed-lines/streaks.js +11 -0
  633. package/registry/examples/speed-lines/streaks.tsx +12 -0
  634. package/registry/examples/status-chip/default.d.ts +4 -0
  635. package/registry/examples/status-chip/default.js +35 -0
  636. package/registry/examples/status-chip/default.tsx +32 -0
  637. package/registry/examples/status-chip/native/default.d.ts +4 -0
  638. package/registry/examples/status-chip/native/default.dark.png +0 -0
  639. package/registry/examples/status-chip/native/default.js +26 -0
  640. package/registry/examples/status-chip/native/default.light.png +0 -0
  641. package/registry/examples/status-chip/native/default.tsx +20 -0
  642. package/registry/examples/stuck/card.d.ts +4 -0
  643. package/registry/examples/stuck/card.js +13 -0
  644. package/registry/examples/stuck/card.tsx +14 -0
  645. package/registry/examples/stuck/holds.d.ts +4 -0
  646. package/registry/examples/stuck/holds.js +12 -0
  647. package/registry/examples/stuck/holds.tsx +16 -0
  648. package/registry/examples/stuck/tag.d.ts +4 -0
  649. package/registry/examples/stuck/tag.js +12 -0
  650. package/registry/examples/stuck/tag.tsx +13 -0
  651. package/registry/examples/tabs/binder.d.ts +4 -0
  652. package/registry/examples/tabs/binder.js +22 -0
  653. package/registry/examples/tabs/binder.tsx +20 -0
  654. package/registry/examples/tabs/native/binder.d.ts +4 -0
  655. package/registry/examples/tabs/native/binder.dark.png +0 -0
  656. package/registry/examples/tabs/native/binder.js +26 -0
  657. package/registry/examples/tabs/native/binder.light.png +0 -0
  658. package/registry/examples/tabs/native/binder.tsx +22 -0
  659. package/registry/examples/tag-selector/creatable.d.ts +4 -0
  660. package/registry/examples/tag-selector/creatable.js +41 -0
  661. package/registry/examples/tag-selector/creatable.tsx +29 -0
  662. package/registry/examples/tag-selector/native/tags.d.ts +4 -0
  663. package/registry/examples/tag-selector/native/tags.dark.png +0 -0
  664. package/registry/examples/tag-selector/native/tags.js +19 -0
  665. package/registry/examples/tag-selector/native/tags.light.png +0 -0
  666. package/registry/examples/tag-selector/native/tags.tsx +19 -0
  667. package/registry/examples/versus-card/alternatives.d.ts +4 -0
  668. package/registry/examples/versus-card/alternatives.js +20 -0
  669. package/registry/examples/versus-card/alternatives.tsx +14 -0
  670. package/registry/examples/versus-card/releases.d.ts +4 -0
  671. package/registry/examples/versus-card/releases.js +35 -0
  672. package/registry/examples/versus-card/releases.tsx +29 -0
  673. package/registry/fab.json +1 -0
  674. package/registry/field.json +3 -2
  675. package/registry/file-upload.json +6 -11
  676. package/registry/filter-bar.json +209 -9
  677. package/registry/flock.json +3 -4
  678. package/registry/footnote.json +2 -3
  679. package/registry/force-update-screen.json +14 -5
  680. package/registry/form.json +5 -4
  681. package/registry/gallery-page.json +14 -5
  682. package/registry/genui.json +2 -2
  683. package/registry/glossary-term.json +1 -1
  684. package/registry/glossary.json +1 -1
  685. package/registry/glow-card.json +2 -2
  686. package/registry/goal-gauge.json +2 -1
  687. package/registry/grade-stamp.json +227 -0
  688. package/registry/header.json +1 -0
  689. package/registry/how-it-works-page.json +3 -5
  690. package/registry/image-cropper.json +13 -5
  691. package/registry/image-viewer.json +3 -4
  692. package/registry/index.json +612 -105
  693. package/registry/iso.json +1 -1
  694. package/registry/kanban.json +13 -5
  695. package/registry/kbd.json +1 -1
  696. package/registry/kind-config-editor.json +565 -0
  697. package/registry/kpi-explained.json +2 -2
  698. package/registry/landing-page.json +3 -5
  699. package/registry/landscape.json +13 -5
  700. package/registry/language-switch.json +1 -1
  701. package/registry/legal-page.json +1 -1
  702. package/registry/link-card.json +1 -1
  703. package/registry/list.json +2 -1
  704. package/registry/loader.json +2 -1
  705. package/registry/longform-page.json +1 -1
  706. package/registry/maintenance-screen.json +14 -5
  707. package/registry/map.json +3 -2
  708. package/registry/markdown.json +86 -9
  709. package/registry/marketing-layout.json +1 -1
  710. package/registry/marquee.json +1 -1
  711. package/registry/mascot-quote.json +1 -1
  712. package/registry/mascot-state.json +12 -11
  713. package/registry/mascots.json +2 -1
  714. package/registry/match-dialog.json +14 -5
  715. package/registry/media-capture.json +14 -5
  716. package/registry/media-gallery.json +3 -5
  717. package/registry/media-grid.json +1 -1
  718. package/registry/media-picker.json +2 -3
  719. package/registry/meta-row.json +2 -1
  720. package/registry/meter.json +4 -3
  721. package/registry/nav-bar.json +100 -9
  722. package/registry/next-actions.json +1 -1
  723. package/registry/notification-preferences.json +250 -0
  724. package/registry/number-ticker.json +2 -1
  725. package/registry/onboarding.json +1 -0
  726. package/registry/opening-hours.json +1 -1
  727. package/registry/otp-input.json +1 -0
  728. package/registry/page-header.json +2 -2
  729. package/registry/page-hero.json +1 -1
  730. package/registry/page-index.json +1 -1
  731. package/registry/page.json +3 -3
  732. package/registry/pagination.json +2 -1
  733. package/registry/permission-prompt.json +2 -2
  734. package/registry/photo-grid.json +4 -4
  735. package/registry/pointer-light.json +6 -2
  736. package/registry/popover.json +2 -2
  737. package/registry/pricing-page.json +4 -6
  738. package/registry/product-page.json +14 -5
  739. package/registry/profile-card.json +232 -8
  740. package/registry/progress.json +4 -3
  741. package/registry/promise-card.json +13 -5
  742. package/registry/pull-to-refresh.json +1 -0
  743. package/registry/quota-meter.json +308 -0
  744. package/registry/radio-group.json +4 -3
  745. package/registry/rail-nav.json +48 -10
  746. package/registry/recipes.json +1 -1
  747. package/registry/retro-tv.json +478 -0
  748. package/registry/router.json +3 -3
  749. package/registry/screen.json +1 -0
  750. package/registry/scroll-stage.json +14 -5
  751. package/registry/search-field.json +3 -2
  752. package/registry/section-backdrop.json +1 -1
  753. package/registry/segmented.json +1 -0
  754. package/registry/separator.json +2 -2
  755. package/registry/service-card.json +1 -1
  756. package/registry/settings-layout.json +2 -1
  757. package/registry/showcase.json +14 -5
  758. package/registry/signature.json +185 -0
  759. package/registry/site-cahier.json +548 -0
  760. package/registry/site-footer.json +3 -3
  761. package/registry/sites.json +2 -2
  762. package/registry/skeleton.json +2 -1
  763. package/registry/skip-link.json +1 -1
  764. package/registry/slider.json +5 -4
  765. package/registry/slot-picker.json +156 -10
  766. package/registry/slot.json +2 -2
  767. package/registry/specimen-tag.json +1 -1
  768. package/registry/speed-lines.json +174 -0
  769. package/registry/spinner.json +4 -3
  770. package/registry/splash-handoff.json +1 -0
  771. package/registry/split-view.json +1 -1
  772. package/registry/stage-banner.json +2 -3
  773. package/registry/stat.json +2 -2
  774. package/registry/status-chip.json +350 -0
  775. package/registry/status-page.json +13 -5
  776. package/registry/step-progress.json +2 -1
  777. package/registry/step-showcase.json +3 -5
  778. package/registry/stepper.json +2 -1
  779. package/registry/sticky-action.json +38 -8
  780. package/registry/stuck.json +219 -0
  781. package/registry/swipe-deck.json +14 -5
  782. package/registry/swipeable-row.json +1 -0
  783. package/registry/switch.json +3 -2
  784. package/registry/tab-bar.json +1 -0
  785. package/registry/tabs.json +154 -22
  786. package/registry/tag-input.json +1 -1
  787. package/registry/tag-selector.json +190 -12
  788. package/registry/taped-photo.json +1 -1
  789. package/registry/terminal-replay.json +14 -5
  790. package/registry/text-style.json +5 -5
  791. package/registry/theme.json +4 -3
  792. package/registry/toast.json +2 -1
  793. package/registry/toc.json +1 -1
  794. package/registry/tooltip.json +2 -2
  795. package/registry/tree-view.json +6 -2
  796. package/registry/txt.json +1 -0
  797. package/registry/update-prompt.json +14 -5
  798. package/registry/upload-queue.json +1 -1
  799. package/registry/verified-badge.json +6 -6
  800. package/registry/versus-card.json +194 -0
  801. package/registry/vertical-video.json +8 -3
  802. package/registry/video-player.json +5 -6
  803. package/registry/video-trimmer.json +13 -5
  804. package/registry/virtual.json +2 -2
  805. package/registry/waveform.json +4 -3
  806. package/dist/chunk-4LYKBSOG.js.map +0 -1
  807. package/dist/chunk-HHFWK2HH.js +0 -163
  808. package/dist/chunk-HHFWK2HH.js.map +0 -1
  809. package/dist/chunk-R3LTSMS5.js +0 -75
  810. package/dist/chunk-R3LTSMS5.js.map +0 -1
  811. package/dist/chunk-YGIN2YIY.js.map +0 -1
  812. package/dist/chunk-YHKTYFOQ.js.map +0 -1
  813. package/dist/chunk-ZQW7LF4Y.js +0 -179
  814. package/dist/chunk-ZQW7LF4Y.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/badge/badge.tsx","../src/badge/recipe.ts","../src/account-settings/account-profile-card.tsx","../src/account-settings/avatar-picker.tsx","../src/account-settings/group-head.tsx","../src/account-settings/choice-cards.tsx","../src/radio-group/radio-group.tsx","../src/router/route-state.tsx","../src/sliding-indicator.ts","../src/tv.ts","../src/account-settings/language-picker.tsx"],"sourcesContent":["// Server-safe: no hook, no context.\nimport type * as React from \"react\";\nimport { tv, type VariantProps } from \"tailwind-variants\";\n\nimport { badgeRecipe } from \"./recipe\";\n\n// Status tones are soft (a tint, a coloured dot, a text role): the invariant status tokens are too light to carry\n// small text on a light surface, or to sit under white text (WCAG AA).\nexport const badgeVariants = tv(badgeRecipe);\n\nexport type BadgeVariants = VariantProps<typeof badgeVariants>;\n\nexport type BadgeProps = React.ComponentProps<\"span\"> &\n BadgeVariants & {\n /**\n * neutral · accent · success · warning · danger (soft tints, the text stays a text role) · scrim (on a media).\n * @default \"neutral\"\n */\n tone?: BadgeVariants[\"tone\"];\n /**\n * sm · md.\n * @default \"sm\"\n */\n size?: BadgeVariants[\"size\"];\n /** Makes the `dot` pulse (stopped under reduced motion). */\n pulse?: BadgeVariants[\"pulse\"];\n /** A small dot before the text, in the tone's colour (pulsing with `pulse`). */\n dot?: boolean;\n };\n\nexport function Badge({ tone, size, pulse, dot, className, children, ...props }: BadgeProps) {\n return (\n <span data-tone={tone ?? \"neutral\"} className={badgeVariants({ tone, size, pulse, className })} {...props}>\n {dot && <span data-dot=\"\" aria-hidden className=\"h-1.5 w-1.5 rounded-full bg-current\" />}\n {children}\n </span>\n );\n}\n","// The badge's tones and sizes, written once as classes of the Krizaka tokens: the web wears them with `tv(badgeRecipe)`,\n// React Native reads the same classes into styles (native/badge.tsx). Status tones are soft (a tint, a coloured dot, a\n// text role): the invariant status tokens are too light to carry small text on a light surface, or to sit under white\n// text (WCAG AA).\nimport { defineRecipe } from \"../recipes/define\";\n\nexport const badgeRecipe = defineRecipe({\n base: \"inline-flex shrink-0 items-center gap-1 whitespace-nowrap rounded-sm font-semibold \",\n variants: {\n tone: {\n neutral: \"bg-surface-3 text-fg-secondary\",\n accent: \"bg-accent-soft text-fg ring-1 ring-inset ring-accent/40 [&>[data-dot]]:bg-accent\",\n success: \"bg-success/15 text-fg ring-1 ring-inset ring-success/40 [&>[data-dot]]:bg-success\",\n warning: \"bg-warning/15 text-fg ring-1 ring-inset ring-warning/40 [&>[data-dot]]:bg-warning\",\n danger: \"bg-danger/15 text-fg ring-1 ring-inset ring-danger/40 [&>[data-dot]]:bg-danger\",\n /** On a media: veil and text invariant, identical in both themes. */\n scrim: \"bg-scrim text-fg-on-media backdrop-blur-md\",\n },\n size: { sm: \"px-2 py-0.5 text-[10px]\", md: \"px-2.5 py-1 text-[11px]\" },\n pulse: { true: \"[&>[data-dot]]:motion-safe:animate-pulse\" },\n },\n defaultVariants: { tone: \"neutral\", size: \"sm\" },\n});\n","// Server-safe. Who the account is, at a glance: the picture with its change action, the name, the e-mail and whether it is\n// verified, since when. The head of a profile section.\nimport type * as React from \"react\";\n\nimport { Avatar, type AvatarProps } from \"../avatar/avatar\";\nimport { Badge } from \"../badge/badge\";\nimport { cn } from \"../cn\";\n\nexport type AccountProfileCardProps = Omit<React.ComponentProps<\"section\">, \"title\"> & {\n /** The name (the card's heading). */\n name: string;\n /** The e-mail address. */\n email: string;\n /** Whether the address is verified. */\n verified: boolean;\n /** “Verified” — passed translated. */\n verifiedLabel: string;\n /** “Not verified” — passed translated. */\n unverifiedLabel: string;\n /** “Member since October 2026” — formatted by the app, in the viewer's language. */\n memberSince?: string;\n /** The picture: the person's photo, or the default avatar of the brand. */\n avatar?: Pick<AvatarProps, \"src\" | \"defaultAvatar\" | \"fallback\">;\n /** Beside the picture: the change action (a `Button`). */\n action?: React.ReactNode;\n /**\n * One calm line for a settings row: a medium picture beside the name and the e-mail, no wrapping.\n * @default false\n */\n compact?: boolean;\n};\n\n/** The account's identity card: picture, name, verified e-mail, member since. */\nexport function AccountProfileCard({ name, email, verified, verifiedLabel, unverifiedLabel, memberSince, avatar, action, compact, className, ...props }: AccountProfileCardProps) {\n return (\n <section aria-label={name} className={cn(\"flex items-center gap-3\", !compact && \"flex-col items-start gap-4 sm:flex-row sm:gap-5\", className)} {...props}>\n <div className=\"flex shrink-0 flex-col items-center gap-2\">\n <Avatar size={compact ? \"md\" : \"xl\"} alt=\"\" fallback={name.slice(0, 1)} {...avatar} />\n {action}\n </div>\n <div className=\"flex min-w-0 flex-col gap-1\">\n <h2 className={cn(\"m-0 truncate font-bold text-fg\", compact ? \"text-sm font-medium\" : \"text-lg\")}>{name}</h2>\n <p className=\"m-0 flex flex-wrap items-center gap-2 text-sm text-fg-secondary\">\n <span className=\"min-w-0 truncate\">{email}</span>\n <Badge tone={verified ? \"success\" : \"warning\"} dot>\n {verified ? verifiedLabel : unverifiedLabel}\n </Badge>\n </p>\n {memberSince ? <p className=\"text-sm text-fg-secondary\">{memberSince}</p> : null}\n </div>\n </section>\n );\n}\n","// Client (a radio group). The pictures of a person to choose from — the family's default avatars, a few photos — as a grid of\n// round tiles: one named radiogroup, one tab stop, the arrows choose, a ring and a check on the chosen one.\nimport { RadioGroup as RadioGroupPrimitive } from \"radix-ui\";\nimport * as React from \"react\";\n\nimport { type DefaultAvatar, defaultAvatarUrl } from \"../avatar/default-avatar\";\nimport { cn } from \"../cn\";\nimport { CheckGlyph } from \"../glyphs\";\nimport { GroupHead } from \"./group-head\";\n\nexport interface AvatarOption {\n /** The value of the choice. */\n id: string;\n /** Its name for assistive technology (“Teinte 3”) — passed translated. */\n label: string;\n /** A picture's address; otherwise `defaultAvatar` draws one of the family's pictures. */\n src?: string;\n /** One of Krizaka's default pictures (`{ brand, tone }`). */\n defaultAvatar?: DefaultAvatar;\n}\n\nexport type AvatarPickerProps = Omit<React.ComponentProps<typeof RadioGroupPrimitive.Root>, \"children\" | \"onChange\" | \"dir\"> & {\n /** The group's accessible name (“Profile picture”) — passed translated. */\n label: string;\n /**\n * Smaller tiles, for a settings row.\n * @default false\n */\n dense?: boolean;\n /** Shows the label above the grid, with `description` under it. */\n showLabel?: boolean;\n /** One line under the visible label: what it changes. */\n description?: React.ReactNode;\n /** The pictures. */\n options: readonly AvatarOption[];\n /** The chosen id (controlled). */\n value?: string;\n /** The viewer chooses another picture. */\n onValueChange?: (id: string) => void;\n /** After the pictures, in the grid: the upload action (a `Button`, a file input's label). Not a radio. */\n upload?: React.ReactNode;\n};\n\nconst pictureOf = (option: AvatarOption) => option.src ?? (option.defaultAvatar ? defaultAvatarUrl(option.defaultAvatar, { size: 256 }) : undefined);\n\n/** A grid of pictures to choose from, with an upload beside them: a radio group, never a row of loose radios. */\nexport function AvatarPicker({ label, showLabel, description, dense, options, upload, className, ...props }: AvatarPickerProps) {\n const id = React.useId();\n const group = (\n <RadioGroupPrimitive.Root aria-label={label} aria-labelledby={showLabel ? id : undefined} className={cn(dense ? \"flex flex-wrap gap-2.5\" : \"grid grid-cols-[repeat(auto-fill,minmax(4.25rem,1fr))] gap-3\", !showLabel && className)} {...props}>\n {options.map((option) => (\n <RadioGroupPrimitive.Item\n key={option.id}\n value={option.id}\n aria-label={option.label}\n className={cn(\n \"group/avatar relative shrink-0 rounded-full\", dense ? \"h-12 w-12\" : \"aspect-square w-full\",\n \" outline-none transition-shadow duration-200 motion-reduce:transition-none\",\n \"ring-1 ring-border-default hover:ring-border-strong focus-visible:focus-ring data-[state=checked]:ring-2 data-[state=checked]:ring-accent\",\n )}\n >\n <img src={pictureOf(option)} alt=\"\" draggable={false} className=\"h-full w-full rounded-full bg-surface-3 object-cover\" />\n <span\n aria-hidden\n className=\"absolute -bottom-0.5 -right-0.5 hidden h-5 w-5 items-center justify-center rounded-full border-2 border-surface-1 bg-accent text-on-accent group-data-[state=checked]/avatar:inline-flex\"\n >\n <CheckGlyph className=\"h-3 w-3\" />\n </span>\n </RadioGroupPrimitive.Item>\n ))}\n {upload ? <div className=\"flex aspect-square w-full items-center justify-center\">{upload}</div> : null}\n </RadioGroupPrimitive.Root>\n );\n if (!showLabel) return group;\n return (\n <div className={cn(\"flex flex-col gap-3\", className)}>\n <GroupHead id={id} label={label} description={description} />\n {group}\n </div>\n );\n}\n","import type * as React from \"react\";\n\n/** The visible label (and one line of help) of a radio group: the group's `aria-labelledby` points at it. */\nexport function GroupHead({ id, label, description }: { id: string; label: React.ReactNode; description?: React.ReactNode }) {\n return (\n <div className=\"flex flex-col gap-0.5\">\n <span id={id} className=\"text-sm font-medium text-fg\">\n {label}\n </span>\n {description ? <span className=\"text-sm text-fg-secondary\">{description}</span> : null}\n </div>\n );\n}\n","// Client (a radio group). A single choice as selectable cards — an icon, a title, one line: the side of a lease, a plan, a\n// way to get the answer. Built on `RadioGroup.Card`, so the arrows choose, the card is the radio, the check lights up.\nimport * as React from \"react\";\n\nimport { RadioGroup } from \"../radio-group\";\nimport { GroupHead } from \"./group-head\";\n\nexport interface ChoiceCardOption {\n /** The value of the choice. */\n id: string;\n /** Its name, short. */\n title: React.ReactNode;\n /** One line under the title: what it means. It describes the radio. */\n description?: React.ReactNode;\n /** A glyph before the title (decorative). */\n icon?: React.ReactNode;\n disabled?: boolean;\n}\n\nexport type ChoiceCardsProps = Omit<React.ComponentProps<typeof RadioGroup.Root>, \"children\" | \"variant\" | \"label\"> & {\n /** The question (“Which side of the lease are you?”) — the group's accessible name, passed translated. */\n label: string;\n /** Shows the question above the cards, with `description` under it. */\n showLabel?: boolean;\n /** One line under the visible question. */\n description?: React.ReactNode;\n /** The choices. */\n options: readonly ChoiceCardOption[];\n /** The chosen id (controlled). */\n value?: string;\n /** The viewer chooses another card. */\n onValueChange?: (id: string) => void;\n};\n\n/** Cards to choose one from: a radio group where each card has an icon, a title and a description. */\nexport function ChoiceCards({ label, showLabel, description, options, className, ...props }: ChoiceCardsProps) {\n const base = React.useId();\n const group = (\n <RadioGroup.Root variant=\"cards\" label={label} aria-labelledby={showLabel ? `${base}-label` : undefined} className={[\"grid grid-cols-1 gap-3 sm:grid-cols-2\", !showLabel && className].filter(Boolean).join(\" \")} {...props}>\n {options.map((option) => {\n const describedBy = option.description ? `${base}-${option.id}` : undefined;\n return (\n <RadioGroup.Card key={option.id} value={option.id} disabled={option.disabled} aria-describedby={describedBy}>\n <span className=\"flex items-center gap-2.5 font-semibold text-fg [&>svg]:h-5 [&>svg]:w-5 [&>svg]:text-accent\">\n {option.icon}\n {option.title}\n </span>\n {option.description ? (\n <span id={describedBy} className=\"text-sm font-normal text-fg-secondary\">\n {option.description}\n </span>\n ) : null}\n </RadioGroup.Card>\n );\n })}\n </RadioGroup.Root>\n );\n if (!showLabel) return group;\n return (\n <div className={[\"flex flex-col gap-3\", className].filter(Boolean).join(\" \")}>\n <GroupHead id={`${base}-label`} label={label} description={description} />\n {group}\n </div>\n );\n}\n","// Client (a context). Radix RadioGroup: role=\"radiogroup\" / \"radio\", one tab stop, the arrows move and select, a\n// hidden input inside a form. Four looks, one behaviour:\n// - `RadioGroup.Item`: a dot and its words (a settings list);\n// - `RadioGroup.Card`: a whole card is the radio — an amount, a pack, a plan — its check lit when chosen;\n// - `RadioGroup.Button`: a tactile key that presses in — raised on a ledge, sunk when chosen (a size, a tip, a level);\n// - `RadioGroup.Segment` in `<RadioGroup.Root variant=\"segmented\">`: a segmented control, one light gliding to the choice.\nimport { RadioGroup as RadioGroupPrimitive } from \"radix-ui\";\nimport * as React from \"react\";\n\nimport { CheckGlyph } from \"../glyphs\";\nimport { useRouteBinding } from \"../router\";\nimport { useSlidingIndicator } from \"../sliding-indicator\";\nimport { tv } from \"../tv\";\n\nexport const radioGroup = tv({\n slots: {\n root: \"grid gap-2 data-[orientation=horizontal]:flex data-[orientation=horizontal]:flex-wrap\",\n item:\n \"peer inline-flex h-5 w-5 shrink-0 items-center justify-center rounded-full border border-border-strong bg-surface-1 inset-shadow-well transition-colors \" +\n \"focus-visible:outline-hidden focus-visible:focus-ring hover:border-accent disabled:cursor-not-allowed disabled:opacity-40 \" +\n \"data-[state=checked]:border-accent data-[state=checked]:bg-accent data-[state=checked]:shadow-glow aria-invalid:border-danger\",\n dot: \"h-2 w-2 rounded-full bg-on-accent\",\n label: \"flex cursor-pointer items-start gap-3 text-sm text-fg has-disabled:cursor-not-allowed has-disabled:opacity-70\",\n card:\n \"group relative flex min-w-0 flex-col items-start gap-1 rounded-2xl border border-border-default bg-surface-1 bg-sheen p-4 pr-10 text-left text-sm text-fg inset-shadow-edge \" +\n \"transition-[border-color,background-color,box-shadow,transform] duration-200 hover:border-border-strong active:scale-[0.99] motion-reduce:transition-none motion-reduce:active:scale-100 \" +\n \"focus-visible:outline-hidden focus-visible:focus-ring disabled:cursor-not-allowed disabled:opacity-40 aria-invalid:border-danger \" +\n \"data-[state=checked]:border-accent data-[state=checked]:bg-accent-soft data-[state=checked]:shadow-glow\",\n // The card's check: an empty ring at rest, the accent filled with its check once chosen.\n cardCheck:\n \"absolute right-3.5 top-3.5 inline-flex h-5 w-5 items-center justify-center rounded-full border border-border-strong bg-surface-1 text-on-accent transition-colors \" +\n \"group-data-[state=checked]:border-accent group-data-[state=checked]:bg-accent\",\n // The tactile key: on a ledge (its lower edge), its hairline stronger on hover, pressed in while held and once chosen.\n button:\n \"relative inline-flex min-h-12 min-w-12 select-none flex-col items-center justify-center gap-0.5 rounded-xl border border-border-default bg-surface-2 bg-sheen px-4 py-2 \" +\n \"text-sm font-semibold text-fg inset-shadow-edge shadow-[0_4px_0_0_var(--kz-border-strong)] \" +\n \"transition-[transform,box-shadow,background-color,border-color,color] duration-100 ease-out motion-reduce:transition-none \" +\n \"hover:border-border-strong \" +\n \"active:translate-y-[3px] active:shadow-[0_1px_0_0_var(--kz-border-strong)] \" +\n \"focus-visible:outline-hidden focus-visible:focus-ring disabled:cursor-not-allowed disabled:opacity-40 aria-invalid:border-danger \" +\n \"data-[state=checked]:translate-y-[3px] data-[state=checked]:border-accent data-[state=checked]:bg-accent data-[state=checked]:bg-fill-shade \" +\n \"data-[state=checked]:text-on-accent data-[state=checked]:inset-shadow-edge-fill data-[state=checked]:shadow-[0_1px_0_0_var(--kz-accent-hover)]\",\n buttonHint: \"text-[11px] font-medium text-fg-secondary group-data-[state=checked]:text-on-accent\",\n segmented:\n \"relative isolate inline-grid auto-cols-fr grid-flow-col gap-1 rounded-xl border border-border-default bg-surface-2 p-1 inset-shadow-well \" +\n \"before:pointer-events-none before:absolute before:left-0 before:top-0 before:-z-10 before:h-(--kz-ind-h) before:w-(--kz-ind-w) \" +\n \"before:translate-x-(--kz-ind-x) before:translate-y-(--kz-ind-y) before:rounded-lg before:border before:border-border-default before:bg-surface-0 before:bg-sheen \" +\n \"before:opacity-0 before:shadow-raised before:transition-[translate,width,height,opacity] before:duration-300 motion-reduce:before:transition-none data-[indicator=on]:before:opacity-100\",\n segment:\n \"inline-flex min-h-9 select-none items-center justify-center gap-1.5 whitespace-nowrap rounded-lg px-3.5 text-sm font-semibold text-fg-secondary transition-colors \" +\n \"hover:text-fg focus-visible:outline-hidden focus-visible:focus-ring disabled:cursor-not-allowed disabled:opacity-40 \" +\n \"data-[state=checked]:border data-[state=checked]:border-border-default data-[state=checked]:bg-surface-0 data-[state=checked]:text-fg data-[state=checked]:shadow-raised \" +\n \"group-data-[indicator=on]/seg:data-[state=checked]:border-transparent group-data-[indicator=on]/seg:data-[state=checked]:bg-transparent group-data-[indicator=on]/seg:data-[state=checked]:shadow-none\",\n },\n variants: {\n variant: {\n list: {},\n cards: { root: \"grid-cols-[repeat(auto-fit,minmax(10rem,1fr))] gap-3\" },\n buttons: { root: \"flex flex-wrap gap-2.5 pb-1\" },\n segmented: {},\n },\n },\n defaultVariants: { variant: \"list\" },\n});\nconst s = radioGroup();\n\nexport type RadioGroupRootProps = React.ComponentProps<typeof RadioGroupPrimitive.Root> & {\n /** The group's accessible name — passed translated (or `aria-labelledby` a visible heading). */\n label?: string;\n /** Marks every radio invalid: aria-invalid (pair it with a `Field.Error`). */\n invalid?: boolean;\n /**\n * The layout of the radios: `list` (dots), `cards` (a grid of `Card`s), `buttons` (a row of tactile `Button`s), or\n * `segmented` (a track of `Segment`s, one light gliding to the choice).\n * @default \"list\"\n */\n variant?: \"list\" | \"cards\" | \"buttons\" | \"segmented\";\n /** Binds the choice to this search parameter of the URL (`?kind=…`): the URL is the state — for a view's selection (a segmented switch), not a form field. */\n routeKey?: string;\n /** The values the parameter may hold (the radios' `value`s); the first is the default unless `defaultValue` says otherwise. */\n routeValues?: readonly string[];\n};\n\n/** `value`/`defaultValue` + `onValueChange`, `orientation`, `required`, `name` for a form, `variant` for the layout. */\nexport function RadioGroupRoot({ label, invalid, variant = \"list\", className, routeKey, routeValues, ...rest }: RadioGroupRootProps) {\n const props = useRouteBinding(routeKey, routeValues, rest);\n const { ref } = useSlidingIndicator<HTMLDivElement>({ item: \"[role=radio]\", active: \"[role=radio][data-state=checked]\" });\n const segmented = variant === \"segmented\";\n return (\n <RadioGroupPrimitive.Root\n ref={segmented ? ref : undefined}\n aria-label={label}\n aria-invalid={invalid || undefined}\n data-invalid={invalid ? \"\" : undefined}\n data-variant={variant}\n orientation={segmented ? \"horizontal\" : props.orientation}\n className={segmented ? s.segmented({ className: [\"group/seg\", className].filter(Boolean).join(\" \") }) : radioGroup({ variant }).root({ className })}\n {...props}\n />\n );\n}\n\nexport type RadioGroupItemProps = Omit<React.ComponentProps<typeof RadioGroupPrimitive.Item>, \"children\"> & {\n /** The words next to the dot, clickable. Otherwise name it with `Field.Label htmlFor` or `aria-label`. */\n children?: React.ReactNode;\n};\n\n/** A radio: a dot, and its words when given. */\nexport function RadioGroupItem({ className, children, ...props }: RadioGroupItemProps) {\n const item = (\n <RadioGroupPrimitive.Item className={s.item({ className: children ? \"mt-0.5\" : className })} {...props}>\n <RadioGroupPrimitive.Indicator className={s.dot()} />\n </RadioGroupPrimitive.Item>\n );\n if (!children) return item;\n return (\n <label className={s.label({ className })}>\n {item}\n <span className=\"min-w-0\">{children}</span>\n </label>\n );\n}\n\n/** A whole card as the radio: its content is the radio's name; its check lights up when chosen. */\nexport function RadioGroupCard({ className, children, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Item>) {\n return (\n <RadioGroupPrimitive.Item className={s.card({ className })} {...props}>\n {children}\n <span aria-hidden className={s.cardCheck()}>\n <RadioGroupPrimitive.Indicator forceMount className=\"inline-flex data-[state=unchecked]:hidden\">\n <CheckGlyph className=\"h-3 w-3\" />\n </RadioGroupPrimitive.Indicator>\n </span>\n </RadioGroupPrimitive.Item>\n );\n}\n\nexport type RadioGroupButtonProps = React.ComponentProps<typeof RadioGroupPrimitive.Item> & {\n /** A second line under the words (\"+15 %\"), part of the radio's name. */\n hint?: React.ReactNode;\n};\n\n/** A tactile key: raised on its ledge, pressed in while held and once chosen — sizes, a tip, a level. */\nexport function RadioGroupButton({ className, children, hint, ...props }: RadioGroupButtonProps) {\n return (\n <RadioGroupPrimitive.Item className={s.button({ className: [\"group\", className].filter(Boolean).join(\" \") })} {...props}>\n <span>{children}</span>\n {hint ? <span className={s.buttonHint()}>{hint}</span> : null}\n </RadioGroupPrimitive.Item>\n );\n}\n\n/** A segment of a `variant=\"segmented\"` group: equal widths, one light gliding to the choice. */\nexport function RadioGroupSegment({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Item>) {\n return <RadioGroupPrimitive.Item className={s.segment({ className })} {...props} />;\n}\n\n/** `RadioGroup.Root/Item/Card/Button/Segment`. */\nexport const RadioGroup = { Root: RadioGroupRoot, Item: RadioGroupItem, Card: RadioGroupCard, Button: RadioGroupButton, Segment: RadioGroupSegment };\n","// Client. The URL is the state: a selection the user would want to share, reload or come back to (a tab, a type, a\n// filter) lives in a search parameter, never in `useState` (Oussama, 2026-10-22: « changer les tabs doit changer les routes »).\n// One primitive reads and writes it: `useRouteState`. The selection components take `routeKey` and bind to it.\nimport * as React from \"react\";\n\n/** How a router moves and reads the address: the browser's by default, your framework's through `RouteStateProvider`. */\nexport interface RouteAdapter {\n /** The current query string, with or without `?` (`\"\"` on the server). */\n search: () => string;\n /** Go to `search` (`?type=bail`, or `\"\"`), keeping the path and the hash; `replace` keeps the history as it is. */\n navigate: (search: string, options: { replace: boolean }) => void;\n /** Calls `onChange` when the address changes under you (back, forward, another navigation); returns the unsubscribe. */\n subscribe: (onChange: () => void) => () => void;\n}\n\nconst CHANGE = \"kz-route-state\";\n\n/** The History API: any web app (Vite, a static site). Next.js apps pass their router's adapter once, in the layout. */\nexport const browserAdapter: RouteAdapter = {\n search: () => (typeof window === \"undefined\" ? \"\" : window.location.search),\n navigate: (search, { replace }) => {\n const url = `${window.location.pathname}${search}${window.location.hash}`;\n window.history[replace ? \"replaceState\" : \"pushState\"](window.history.state, \"\", url);\n window.dispatchEvent(new Event(CHANGE));\n },\n subscribe: (onChange) => {\n window.addEventListener(\"popstate\", onChange);\n window.addEventListener(CHANGE, onChange);\n return () => {\n window.removeEventListener(\"popstate\", onChange);\n window.removeEventListener(CHANGE, onChange);\n };\n },\n};\n\nconst AdapterContext = React.createContext<RouteAdapter>(browserAdapter);\n\nexport interface RouteStateProviderProps {\n /** How your router reads the query string, navigates and tells about changes. */\n adapter: RouteAdapter;\n children: React.ReactNode;\n}\n\n/** Gives `useRouteState` your router: `<RouteStateProvider adapter={nextAdapter}>` once, in the root layout. */\nexport function RouteStateProvider({ adapter, children }: RouteStateProviderProps) {\n return <AdapterContext.Provider value={adapter}>{children}</AdapterContext.Provider>;\n}\n\nexport interface RouteStateOptions<V extends string> {\n /** The values the parameter may hold, as a const list: anything else in the address reads as the default. Omit for free text. */\n values?: readonly V[];\n /** The value when the parameter is absent. It is never written to the address (a clean URL). */\n default: V;\n /** `push` (the default) keeps each change in the history, `replace` overwrites it: use `replace` for a filter typed or toggled in passing. */\n history?: \"push\" | \"replace\";\n}\n\n/** The value a query string holds for `key`, checked against `values`. Pure: the hook and the tests share it. */\nexport function readRouteValue<V extends string>(search: string, key: string, { values, default: fallback }: Pick<RouteStateOptions<V>, \"values\" | \"default\">): V {\n const raw = new URLSearchParams(search).get(key);\n if (raw === null) return fallback;\n return !values || (values as readonly string[]).includes(raw) ? (raw as V) : fallback;\n}\n\n/** The query string with `key` set to `value` (removed when it is the default); every other parameter is kept. Pure. */\nexport function writeRouteValue(search: string, key: string, value: string, fallback: string): string {\n const params = new URLSearchParams(search);\n if (value === fallback) params.delete(key);\n else params.set(key, value);\n const text = params.toString();\n return text ? `?${text}` : \"\";\n}\n\n/**\n * A value kept in the URL's search parameter `key`: `const [type, setType] = useRouteState(\"type\", { values: TYPES, default: \"auto\" })`\n * with `const TYPES = [\"auto\", \"lease\", \"contract\", \"invoice\", \"other\"] as const`. The value is typed from the list, an\n * unknown one in the address reads as the default, the default is not written, other parameters are kept.\n * `key` undefined makes the hook inert (it returns the default) so a component can call it unconditionally.\n */\nexport function useRouteState<V extends string>(key: string | undefined, { values, default: fallback, history = \"push\" }: RouteStateOptions<V>): readonly [V, (next: V) => void] {\n const adapter = React.useContext(AdapterContext);\n const search = React.useSyncExternalStore(adapter.subscribe, adapter.search, () => \"\");\n const value = key === undefined ? fallback : readRouteValue(search, key, { values, default: fallback });\n const set = React.useCallback(\n (next: V) => {\n if (key === undefined) return;\n adapter.navigate(writeRouteValue(adapter.search(), key, next, fallback), { replace: history === \"replace\" });\n },\n [adapter, key, fallback, history],\n );\n return [value, set] as const;\n}\n\n/** What a selection component spreads on its root: `value` and `onValueChange` bound to the URL when `routeKey` is set. */\nexport interface RouteBindable {\n value?: string | null;\n defaultValue?: string;\n onValueChange?: (value: string) => void;\n}\n\n/** The props of a selection component bound to the URL (`routeKey`), or its own, unchanged, when there is no `routeKey`. */\nexport function useRouteBinding<P extends RouteBindable>(routeKey: string | undefined, routeValues: readonly string[] | undefined, props: P): P {\n const initial = props.defaultValue ?? props.value ?? routeValues?.[0] ?? \"\";\n const [value, set] = useRouteState<string>(routeKey, { values: routeValues, default: initial });\n if (routeKey === undefined) return props;\n return {\n ...props,\n value,\n defaultValue: undefined,\n onValueChange: (next: string) => {\n set(next);\n props.onValueChange?.(next);\n },\n };\n}\n","// The shared sliding indicator (NavBar, Tabs): one element that glides from item to item instead of each item lighting\n// up on its own. It writes the target's box as CSS variables on the list (`--kz-ind-x/y/w/h`) and `data-indicator=\"on\"`\n// — no re-render, no animation frame: the glide is a CSS transition (none under reduced motion). Before hydration the\n// items keep their own active style, so nothing flashes.\nimport * as React from \"react\";\n\nconst useIsoLayoutEffect = typeof window === \"undefined\" ? React.useEffect : React.useLayoutEffect;\n\n/**\n * `item`: the selector of an item; `active`: of the current one, where the light rests; `prefer`: an item that, when\n * present, holds the light before the current one (the NavBar's open menu); `follow`: the light follows the pointer\n * and the focus — over anything that is not an item (an open menu's panel) it goes back to rest.\n */\nexport function useSlidingIndicator<T extends HTMLElement>({ item, active, prefer, follow = false }: { item: string; active: string; prefer?: string; follow?: boolean }) {\n const ref = React.useRef<T>(null);\n const place = React.useCallback((target: Element | null) => {\n const list = ref.current;\n if (!list) return;\n if (!(target instanceof HTMLElement) || !list.contains(target)) {\n list.removeAttribute(\"data-indicator\");\n return;\n }\n const a = target.getBoundingClientRect();\n const b = list.getBoundingClientRect();\n list.style.setProperty(\"--kz-ind-x\", `${a.left - b.left + list.scrollLeft}px`);\n list.style.setProperty(\"--kz-ind-y\", `${a.top - b.top + list.scrollTop}px`);\n list.style.setProperty(\"--kz-ind-w\", `${a.width}px`);\n list.style.setProperty(\"--kz-ind-h\", `${a.height}px`);\n list.setAttribute(\"data-indicator\", \"on\");\n }, []);\n const rest = React.useCallback(\n () => {\n const list = ref.current;\n // An item re-rendered under a resting pointer (a menu closing) keeps the light the pointer gave it.\n const hovered = follow ? list?.querySelector(`${item}:hover`) : null;\n place((prefer ? list?.querySelector(prefer) : null) ?? hovered ?? list?.querySelector(active) ?? null);\n },\n [place, active, prefer, item, follow],\n );\n const follow_ = React.useCallback((target: EventTarget) => {\n const hit = target instanceof Element ? target.closest(item) : null;\n if (hit && ref.current?.contains(hit)) place(hit);\n else rest();\n }, [item, place, rest]);\n\n useIsoLayoutEffect(() => {\n const list = ref.current;\n if (!list) return;\n rest();\n const resize = new ResizeObserver(rest);\n resize.observe(list);\n const changes = new MutationObserver(rest);\n changes.observe(list, { subtree: true, attributes: true, attributeFilter: [\"data-state\", \"aria-current\", \"data-active\"] });\n return () => {\n resize.disconnect();\n changes.disconnect();\n };\n }, [rest]);\n\n const handlers = follow\n ? {\n onPointerOver: (e: React.PointerEvent) => follow_(e.target),\n onPointerLeave: rest,\n onFocus: (e: React.FocusEvent) => follow_(e.target),\n onBlur: rest,\n }\n : {};\n return { ref, handlers };\n}\n","import { createTV } from \"tailwind-variants\";\n\nimport { twMergeConfig } from \"./cn\";\n\n/** `tv` with the preset's utilities known to the merge engine (`twMergeConfig`): what a primitive wearing the material is styled with. */\nexport const tv = createTV({ twMergeConfig });\n","// Client (a radio group). The language of the account, labelled, each language named in its own language, saved per user\n// (the caller saves on change or with its section). Segmented: one light gliding to the choice.\nimport * as React from \"react\";\n\nimport { RadioGroup } from \"../radio-group\";\nimport { GroupHead } from \"./group-head\";\n\nexport interface LanguageOption {\n /** The BCP 47 code (`fr`, `en`): the value, and the `lang` of the name. */\n code: string;\n /** Its native name (`Français`, `English`) — never the current language's name for it. */\n name: string;\n}\n\nexport type LanguagePickerProps = Omit<React.ComponentProps<typeof RadioGroup.Root>, \"children\" | \"variant\" | \"label\" | \"aria-labelledby\"> & {\n /** The visible label (“Language”) — passed translated. */\n label: React.ReactNode;\n /**\n * Shows the label above the control; `false` when a `SettingsRow` already says it (the group keeps its accessible name).\n * @default true\n */\n showLabel?: boolean;\n /** One line under it: what it changes. */\n description?: React.ReactNode;\n /** The languages offered. */\n languages: readonly LanguageOption[];\n /** The chosen code (controlled). */\n value?: string;\n /** The viewer chooses another language. */\n onValueChange?: (code: string) => void;\n};\n\n/** The language control of an account page: a labelled segmented choice, native names. */\nexport function LanguagePicker({ label, showLabel = true, description, languages, className, ...props }: LanguagePickerProps) {\n const id = React.useId();\n return (\n <div className={[\"flex flex-col gap-2\", className].filter(Boolean).join(\" \")}>\n {showLabel ? <GroupHead id={`${id}-label`} label={label} description={description} /> : null}\n <RadioGroup.Root variant=\"segmented\" aria-label={showLabel ? undefined : String(label)} aria-labelledby={showLabel ? `${id}-label` : undefined} {...props}>\n {languages.map((language) => (\n <RadioGroup.Segment key={language.code} value={language.code} lang={language.code}>\n {language.name}\n </RadioGroup.Segment>\n ))}\n </RadioGroup.Root>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAEA,SAAS,UAA6B;;;ACI/B,IAAM,cAAc,aAAa;AAAA,EACtC,MAAM;AAAA,EACN,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,SAAS;AAAA,MACT,QAAQ;AAAA,MACR,SAAS;AAAA,MACT,SAAS;AAAA,MACT,QAAQ;AAAA;AAAA,MAER,OAAO;AAAA,IACT;AAAA,IACA,MAAM,EAAE,IAAI,2BAA2B,IAAI,0BAA0B;AAAA,IACrE,OAAO,EAAE,MAAM,2CAA2C;AAAA,EAC5D;AAAA,EACA,iBAAiB,EAAE,MAAM,WAAW,MAAM,KAAK;AACjD,CAAC;;;ADUG,SACU,KADV;AAxBG,IAAM,gBAAgB,GAAG,WAAW;AAsBpC,SAAS,MAAM,EAAE,MAAM,MAAM,OAAO,KAAK,WAAW,UAAU,GAAG,MAAM,GAAe;AAC3F,SACE,qBAAC,UAAK,aAAW,QAAQ,WAAW,WAAW,cAAc,EAAE,MAAM,MAAM,OAAO,UAAU,CAAC,GAAI,GAAG,OACjG;AAAA,WAAO,oBAAC,UAAK,YAAS,IAAG,eAAW,MAAC,WAAU,uCAAsC;AAAA,IACrF;AAAA,KACH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KAAC,aAAU,IAAI,GAAG,IAAI,UAAU,OAAc,aAA0B;AAAA,IACvE;AAAA,KACH;AAEJ;;;AK9DA,YAAYE,YAAW;AAkCnB,SACe,OAAAC,MADf,QAAAC,aAAA;AAHG,SAAS,eAAe,EAAE,OAAO,YAAY,MAAM,aAAa,WAAW,WAAW,GAAG,MAAM,GAAwB;AAC5H,QAAM,KAAW,aAAM;AACvB,SACE,gBAAAA,MAAC,SAAI,WAAW,CAAC,uBAAuB,SAAS,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG,GACxE;AAAA,gBAAY,gBAAAD,KAAC,aAAU,IAAI,GAAG,EAAE,UAAU,OAAc,aAA0B,IAAK;AAAA,IACxF,gBAAAA,KAAC,WAAW,MAAX,EAAgB,SAAQ,aAAY,cAAY,YAAY,SAAY,OAAO,KAAK,GAAG,mBAAiB,YAAY,GAAG,EAAE,WAAW,QAAY,GAAG,OACjJ,oBAAU,IAAI,CAAC,aACd,gBAAAA,KAAC,WAAW,SAAX,EAAuC,OAAO,SAAS,MAAM,MAAM,SAAS,MAC1E,mBAAS,QADa,SAAS,IAElC,CACD,GACH;AAAA,KACF;AAEJ;","names":["jsx","jsxs","jsx","jsxs","jsx","jsxs","React","RadioGroupPrimitive","React","jsx","React","tv","jsx","jsxs","tv","RadioGroupPrimitive","jsx","jsxs","React","jsx","jsxs"]}
1
+ {"version":3,"sources":["../src/badge/badge.tsx","../src/badge/recipe.ts","../src/account-settings/account-profile-card.tsx","../src/account-settings/appearance-settings.tsx","../src/field/field.tsx","../src/radio-group/radio-group.tsx","../src/sliding-indicator.ts","../src/tv.ts","../src/switch/switch.tsx","../src/account-settings/language-picker.tsx","../src/account-settings/group-head.tsx","../src/account-settings/avatar-picker.tsx","../src/account-settings/choice-cards.tsx"],"sourcesContent":["// Server-safe: no hook, no context.\nimport type * as React from \"react\";\nimport { tv, type VariantProps } from \"tailwind-variants\";\n\nimport { badgeRecipe } from \"./recipe\";\n\n// Status tones are soft (a tint, a coloured dot, a text role): the invariant status tokens are too light to carry\n// small text on a light surface, or to sit under white text (WCAG AA).\nexport const badgeVariants = tv(badgeRecipe);\n\nexport type BadgeVariants = VariantProps<typeof badgeVariants>;\n\nexport type BadgeProps = React.ComponentProps<\"span\"> &\n BadgeVariants & {\n /**\n * neutral · accent · success · warning · danger (soft tints, the text stays a text role) · scrim (on a media).\n * @default \"neutral\"\n */\n tone?: BadgeVariants[\"tone\"];\n /**\n * sm · md.\n * @default \"sm\"\n */\n size?: BadgeVariants[\"size\"];\n /** Makes the `dot` pulse (stopped under reduced motion). */\n pulse?: BadgeVariants[\"pulse\"];\n /** A small dot before the text, in the tone's colour (pulsing with `pulse`). */\n dot?: boolean;\n };\n\nexport function Badge({ tone, size, pulse, dot, className, children, ...props }: BadgeProps) {\n return (\n <span data-tone={tone ?? \"neutral\"} className={badgeVariants({ tone, size, pulse, className })} {...props}>\n {dot && <span data-dot=\"\" aria-hidden className=\"h-1.5 w-1.5 rounded-full bg-current\" />}\n {children}\n </span>\n );\n}\n","// The badge's tones and sizes, written once as classes of the Krizaka tokens: the web wears them with `tv(badgeRecipe)`,\n// React Native reads the same classes into styles (native/badge.tsx). Status tones are soft (a tint, a coloured dot, a\n// text role): the invariant status tokens are too light to carry small text on a light surface, or to sit under white\n// text (WCAG AA).\nimport { defineRecipe } from \"../recipes/define\";\n\nexport const badgeRecipe = defineRecipe({\n base: \"inline-flex shrink-0 items-center gap-1 whitespace-nowrap rounded-sm font-semibold \",\n variants: {\n tone: {\n neutral: \"bg-surface-3 text-fg-secondary\",\n accent: \"bg-accent-soft text-fg ring-1 ring-inset ring-accent/40 [&>[data-dot]]:bg-accent\",\n success: \"bg-success/15 text-fg ring-1 ring-inset ring-success/40 [&>[data-dot]]:bg-success\",\n warning: \"bg-warning/15 text-fg ring-1 ring-inset ring-warning/40 [&>[data-dot]]:bg-warning\",\n danger: \"bg-danger/15 text-fg ring-1 ring-inset ring-danger/40 [&>[data-dot]]:bg-danger\",\n /** On a media: veil and text invariant, identical in both themes. */\n scrim: \"bg-scrim text-fg-on-media backdrop-blur-md\",\n },\n size: { sm: \"px-2 py-0.5 text-[10px]\", md: \"px-2.5 py-1 text-[11px]\" },\n pulse: { true: \"[&>[data-dot]]:motion-safe:animate-pulse\" },\n },\n defaultVariants: { tone: \"neutral\", size: \"sm\" },\n});\n","// Server-safe. Who the account is, at a glance: the picture with its change action, the name, the e-mail and whether it is\n// verified, since when. The head of a profile section.\nimport type * as React from \"react\";\n\nimport { Avatar, type AvatarProps } from \"../avatar/avatar\";\nimport { Badge } from \"../badge/badge\";\nimport { cn } from \"../cn\";\n\nexport type AccountProfileCardProps = Omit<React.ComponentProps<\"section\">, \"title\"> & {\n /** The name (the card's heading). */\n name: string;\n /** The e-mail address. */\n email: string;\n /** Whether the address is verified. */\n verified: boolean;\n /** “Verified” — passed translated. */\n verifiedLabel: string;\n /** “Not verified” — passed translated. */\n unverifiedLabel: string;\n /** “Member since October 2026” — formatted by the app, in the viewer's language. */\n memberSince?: string;\n /** The picture: the person's photo, or the default avatar of the brand. */\n avatar?: Pick<AvatarProps, \"src\" | \"defaultAvatar\" | \"fallback\">;\n /** Beside the picture: the change action (a `Button`). */\n action?: React.ReactNode;\n /**\n * One calm line for a settings row: a medium picture beside the name and the e-mail, no wrapping.\n * @default false\n */\n compact?: boolean;\n};\n\n/** The account's identity card: picture, name, verified e-mail, member since. */\nexport function AccountProfileCard({ name, email, verified, verifiedLabel, unverifiedLabel, memberSince, avatar, action, compact, className, ...props }: AccountProfileCardProps) {\n return (\n <section aria-label={name} className={cn(\"flex items-center gap-3\", !compact && \"flex-col items-start gap-4 sm:flex-row sm:gap-5\", className)} {...props}>\n <div className=\"flex shrink-0 flex-col items-center gap-2\">\n <Avatar size={compact ? \"md\" : \"xl\"} alt=\"\" fallback={name.slice(0, 1)} {...avatar} />\n {action}\n </div>\n <div className=\"flex min-w-0 flex-col gap-1\">\n <h2 className={cn(\"m-0 truncate font-bold text-fg\", compact ? \"text-sm font-medium\" : \"text-lg\")}>{name}</h2>\n <p className=\"m-0 flex flex-wrap items-center gap-2 text-sm text-fg-secondary\">\n <span className=\"min-w-0 truncate\">{email}</span>\n <Badge tone={verified ? \"success\" : \"warning\"} dot>\n {verified ? verifiedLabel : unverifiedLabel}\n </Badge>\n </p>\n {memberSince ? <p className=\"text-sm text-fg-secondary\">{memberSince}</p> : null}\n </div>\n </section>\n );\n}\n","// Client (radio groups). How the workspace looks (ADR-006 §4, krizaka-ui#657): theme cards — a radio group of live miniatures\n// drawn from the tokens' own colours, one check on the chosen card —, then rows for the accent, the density, the language and, when the\n// product offers it, the sound (off by default, never under reduced motion). Driven by data: the product passes the themes it offers\n// (a subset of `appearance.themes` of @krizaka/tokens, at least system · light · dark), the accents that read on all of them, the values\n// and `onChange`s. It changes nothing by itself: `useAppearance()` of `@krizaka/ui/theme` applies the choice at once and keeps it in\n// the browser; the product saves it in the account too. Paper themes never belong here.\nimport * as React from \"react\";\n\nimport { Field } from \"../field\";\nimport { RadioGroup } from \"../radio-group\";\nimport { SettingsRow } from \"../settings-layout\";\nimport { Switch } from \"../switch\";\nimport { type LanguageOption, LanguagePicker } from \"./language-picker\";\n\n/** The colours a theme's miniature is drawn with (`appearance.themes[i].preview` of @krizaka/tokens). */\nexport type ThemePreview = { surface0: string; surface1: string; surface2: string; text: string; muted: string };\n\nexport type ThemeCardOption = {\n /** `system`, `light`, `dark`, `blueprint`, `carbone`. */\n id: string;\n /** Its name, passed translated. */\n label: string;\n /** One line: what it is, passed translated. */\n description?: string;\n /** Its colours; null for `system`, whose miniature is half light, half dark. */\n preview: ThemePreview | null;\n /** The two halves of the System miniature (`appearance.themes` light and dark previews). */\n halves?: readonly [ThemePreview, ThemePreview];\n};\n\nexport type AccentOption = {\n /** The brand id (`data-accent`). */\n id: string;\n /** Its name, passed translated (\"Forest green\"). */\n label: string;\n /** Its fill, for the swatch (`appearance.accents[i].dark.accent`). */\n color: string;\n};\n\nexport type AppearanceLabels = {\n /** The theme row: its name. */\n theme: string;\n /** One line under it. */\n themeHint: string;\n /** The accent row: its name. */\n accent: string;\n /** One line under it. */\n accentHint: string;\n /** The density row: its name. */\n density: string;\n /** One line under it. */\n densityHint: string;\n /** The language row: its name. */\n language: string;\n /** One line under it. */\n languageHint: string;\n /** The sound row: its name. */\n sound: string;\n /** One line under it. */\n soundHint: string;\n};\n\nexport const appearanceLabels: AppearanceLabels = {\n theme: \"Theme\",\n themeHint: \"The look of the workspace. System follows your device.\",\n accent: \"Accent colour\",\n accentHint: \"The colour of buttons and highlights.\",\n density: \"Density\",\n densityHint: \"How much fits on a screen.\",\n language: \"Language\",\n languageHint: \"The whole interface.\",\n sound: \"Sound\",\n soundHint: \"Small sounds when something is done. Off unless you turn it on, and never with reduced motion.\",\n};\n\nexport type AppearanceSettingsProps = {\n /** The themes offered: at least system, light and dark. */\n themes: readonly ThemeCardOption[];\n /** The id of the theme chosen. */\n theme: string;\n /** Called with the id chosen. */\n onThemeChange: (id: string) => void;\n /** The accents offered (the product's own first). Without it the row is not shown. */\n accents?: readonly AccentOption[];\n /** The id of the accent chosen; null for the product's own. */\n accent?: string | null;\n /** Called with the id chosen. */\n onAccentChange?: (id: string) => void;\n /** The densities offered, with their names (`standard`, `compact`). */\n densities?: readonly { value: string; label: string }[];\n /** The density chosen. */\n density?: string;\n /** Called with the density chosen. */\n onDensityChange?: (density: string) => void;\n /** The languages offered, each named in its own language. */\n languages?: readonly LanguageOption[];\n /** The code of the language chosen. */\n language?: string;\n /** Called with the code chosen. */\n onLanguageChange?: (code: string) => void;\n /** Shown only when given: the sound is opt-in. */\n sound?: boolean;\n /** Called with the new state. */\n onSoundChange?: (on: boolean) => void;\n /** The words, passed translated (English by default). */\n labels?: Partial<AppearanceLabels>;\n /** Classes merged on the root. */\n className?: string;\n};\n\nfunction Miniature({ preview }: { preview: ThemePreview }) {\n return (\n <span\n aria-hidden\n className=\"flex h-16 w-full overflow-hidden rounded-md border border-border-default\"\n style={{ background: preview.surface0 }}\n >\n <span className=\"m-1.5 flex w-1/3 flex-col gap-1 rounded-sm p-1\" style={{ background: preview.surface1 }}>\n <span className=\"h-1 w-3/4 rounded-full\" style={{ background: preview.text }} />\n <span className=\"h-1 w-1/2 rounded-full\" style={{ background: preview.muted }} />\n </span>\n <span className=\"my-1.5 mr-1.5 flex flex-1 flex-col gap-1 rounded-sm p-1.5\" style={{ background: preview.surface2 }}>\n <span className=\"h-1.5 w-2/3 rounded-full\" style={{ background: preview.text }} />\n <span className=\"h-1 w-full rounded-full\" style={{ background: preview.muted }} />\n <span className=\"h-1 w-5/6 rounded-full\" style={{ background: preview.muted }} />\n <span className=\"mt-auto h-2 w-1/3 rounded-sm bg-accent\" />\n </span>\n </span>\n );\n}\n\n/** The appearance rows of a settings page: theme cards, accent, density, language, sound. */\nexport function AppearanceSettings({\n themes,\n theme,\n onThemeChange,\n accents,\n accent,\n onAccentChange,\n densities,\n density,\n onDensityChange,\n languages,\n language,\n onLanguageChange,\n sound,\n onSoundChange,\n labels: given,\n className,\n}: AppearanceSettingsProps) {\n const labels = { ...appearanceLabels, ...given };\n const id = React.useId();\n return (\n <div className={className}>\n <SettingsRow label={labels.theme} description={labels.themeHint}>\n <RadioGroup.Root variant=\"cards\" label={labels.theme} value={theme} onValueChange={onThemeChange} className=\"grid w-full grid-cols-2 gap-3 sm:grid-cols-3\">\n {themes.map((option) => (\n <RadioGroup.Card key={option.id} value={option.id} aria-describedby={option.description ? `${id}-${option.id}` : undefined}>\n {option.preview ? (\n <Miniature preview={option.preview} />\n ) : option.halves ? (\n <span aria-hidden className=\"grid h-16 w-full grid-cols-2 overflow-hidden rounded-md border border-border-default\">\n <Miniature preview={option.halves[0]} />\n <Miniature preview={option.halves[1]} />\n </span>\n ) : null}\n <span className=\"font-semibold text-fg\">{option.label}</span>\n {option.description ? (\n <span id={`${id}-${option.id}`} className=\"text-xs font-normal text-fg-secondary\">\n {option.description}\n </span>\n ) : null}\n </RadioGroup.Card>\n ))}\n </RadioGroup.Root>\n </SettingsRow>\n {accents && accents.length > 0 && onAccentChange ? (\n <SettingsRow label={labels.accent} description={labels.accentHint} htmlFor={`${id}-accent`}>\n <span className=\"flex items-center gap-2\">\n <span aria-hidden className=\"h-4 w-4 rounded-full border border-border-default\" style={{ background: accents.find((a) => a.id === accent)?.color ?? accents[0]?.color }} />\n <Field.Root>\n <select\n id={`${id}-accent`}\n value={accent ?? accents[0]?.id}\n onChange={(event) => onAccentChange(event.target.value)}\n className=\"h-10 rounded-lg border border-border-control bg-surface-2 px-3 text-sm text-fg focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring\"\n >\n {accents.map((option) => (\n <option key={option.id} value={option.id}>\n {option.label}\n </option>\n ))}\n </select>\n </Field.Root>\n </span>\n </SettingsRow>\n ) : null}\n {densities && densities.length > 0 && onDensityChange ? (\n <SettingsRow label={labels.density} description={labels.densityHint}>\n <RadioGroup.Root variant=\"segmented\" label={labels.density} value={density} onValueChange={onDensityChange}>\n {densities.map((option) => (\n <RadioGroup.Segment key={option.value} value={option.value}>\n {option.label}\n </RadioGroup.Segment>\n ))}\n </RadioGroup.Root>\n </SettingsRow>\n ) : null}\n {languages && languages.length > 0 && onLanguageChange ? (\n <SettingsRow label={labels.language} description={labels.languageHint}>\n <LanguagePicker label={labels.language} showLabel={false} languages={languages} value={language ?? \"\"} onValueChange={onLanguageChange} />\n </SettingsRow>\n ) : null}\n {onSoundChange ? (\n <SettingsRow label={labels.sound} description={labels.soundHint}>\n <Switch label={labels.sound} checked={Boolean(sound)} onCheckedChange={onSoundChange} />\n </SettingsRow>\n ) : null}\n </div>\n );\n}\n","// Server-safe. The label ↔ control wiring is HTML (htmlFor / id, aria-describedby): no context.\nimport type * as React from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nimport { cn } from \"../cn\";\n\nexport const field = tv({\n slots: {\n root: \"flex flex-col gap-1.5\",\n label: \"text-xs font-semibold text-fg-secondary\",\n control:\n \"flex h-11 w-full rounded-lg border border-border-control bg-surface-2 px-3 text-sm text-fg placeholder:text-fg-muted \" +\n \"transition-[border-color,box-shadow] focus-visible:border-accent focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring \" +\n \"disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-danger aria-invalid:ring-danger/30\",\n hint: \"text-xs text-fg-secondary\",\n // The message reads in the danger text role (≥ 4.5:1 on every surface, both themes); the dot is the danger fill.\n error: \"flex items-center gap-1.5 text-xs font-medium text-fg-danger before:h-1.5 before:w-1.5 before:shrink-0 before:rounded-full before:bg-danger\",\n selectWrap: \"relative flex w-full\",\n chevron: \"pointer-events-none absolute right-3 top-1/2 h-4 w-4 -translate-y-1/2 text-fg-secondary\",\n },\n});\nconst s = field();\n\nexport const Field = {\n Root: ({ className, ...props }: React.ComponentProps<\"div\">) => <div className={s.root({ className })} {...props} />,\n Label: ({ className, ...props }: React.ComponentProps<\"label\">) => <label className={s.label({ className })} {...props} />,\n Hint: ({ className, ...props }: React.ComponentProps<\"p\">) => <p className={s.hint({ className })} {...props} />,\n Error: ({ className, ...props }: React.ComponentProps<\"p\">) => <p role=\"alert\" className={s.error({ className })} {...props} />,\n};\n\ntype ControlProps = {\n /** Marks the control invalid: aria-invalid and data-invalid (pair it with a `Field.Error` in aria-describedby). */\n invalid?: boolean;\n};\n\nconst invalidProps = (invalid?: boolean) => (invalid ? { \"aria-invalid\": true as const, \"data-invalid\": \"\" } : {});\n\nexport function Input({ invalid, className, ...props }: React.ComponentProps<\"input\"> & ControlProps) {\n return <input {...invalidProps(invalid)} className={s.control({ className })} {...props} />;\n}\n\nexport function Textarea({ invalid, className, ...props }: React.ComponentProps<\"textarea\"> & ControlProps) {\n return <textarea {...invalidProps(invalid)} className={s.control({ className: cn(\"h-auto min-h-24 py-2\", className) })} {...props} />;\n}\n\n/** A native <select>, styled like the other controls (the platform's menu: accessible and right on phones). */\nexport function Select({ invalid, className, ...props }: React.ComponentProps<\"select\"> & ControlProps) {\n return (\n <span className={s.selectWrap()}>\n <select {...invalidProps(invalid)} className={s.control({ className: cn(\"appearance-none pr-9\", className) })} {...props} />\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden className={s.chevron()}>\n <path d=\"m6 9 6 6 6-6\" />\n </svg>\n </span>\n );\n}\n","// Client (a context). Radix RadioGroup: role=\"radiogroup\" / \"radio\", one tab stop, the arrows move and select, a\n// hidden input inside a form. Four looks, one behaviour:\n// - `RadioGroup.Item`: a dot and its words (a settings list);\n// - `RadioGroup.Card`: a whole card is the radio — an amount, a pack, a plan — its check lit when chosen;\n// - `RadioGroup.Button`: a tactile key that presses in — raised on a ledge, sunk when chosen (a size, a tip, a level);\n// - `RadioGroup.Segment` in `<RadioGroup.Root variant=\"segmented\">`: a segmented control, one light gliding to the choice.\nimport { RadioGroup as RadioGroupPrimitive } from \"radix-ui\";\nimport * as React from \"react\";\n\nimport { CheckGlyph } from \"../glyphs\";\nimport { useRouteBinding } from \"../router\";\nimport { useSlidingIndicator } from \"../sliding-indicator\";\nimport { tv } from \"../tv\";\n\nexport const radioGroup = tv({\n slots: {\n root: \"grid gap-2 data-[orientation=horizontal]:flex data-[orientation=horizontal]:flex-wrap\",\n item:\n \"peer inline-flex h-5 w-5 shrink-0 items-center justify-center rounded-full border border-border-control bg-surface-1 inset-shadow-well transition-colors \" +\n \"focus-visible:outline-hidden focus-visible:focus-ring hover:border-accent disabled:cursor-not-allowed disabled:opacity-40 \" +\n \"data-[state=checked]:border-accent data-[state=checked]:bg-accent data-[state=checked]:shadow-glow aria-invalid:border-danger\",\n dot: \"h-2 w-2 rounded-full bg-on-accent\",\n label: \"flex cursor-pointer items-start gap-3 text-sm text-fg has-disabled:cursor-not-allowed has-disabled:opacity-70\",\n card:\n \"group relative flex min-w-0 flex-col items-start gap-1 rounded-2xl border border-border-default bg-surface-1 bg-sheen p-4 pr-10 text-left text-sm text-fg inset-shadow-edge \" +\n \"transition-[border-color,background-color,box-shadow,transform] duration-200 hover:border-border-strong active:scale-[0.99] motion-reduce:transition-none motion-reduce:active:scale-100 \" +\n \"focus-visible:outline-hidden focus-visible:focus-ring disabled:cursor-not-allowed disabled:opacity-40 aria-invalid:border-danger \" +\n \"data-[state=checked]:border-accent data-[state=checked]:bg-accent-soft data-[state=checked]:shadow-glow\",\n // The card's check: an empty ring at rest, the accent filled with its check once chosen.\n cardCheck:\n \"absolute right-3.5 top-3.5 inline-flex h-5 w-5 items-center justify-center rounded-full border border-border-control bg-surface-1 text-on-accent transition-colors \" +\n \"group-data-[state=checked]:border-accent group-data-[state=checked]:bg-accent\",\n // The tactile key: on a ledge (its lower edge), its hairline stronger on hover, pressed in while held and once chosen.\n button:\n \"relative inline-flex min-h-12 min-w-12 select-none flex-col items-center justify-center gap-0.5 rounded-xl border border-border-default bg-surface-2 bg-sheen px-4 py-2 \" +\n \"text-sm font-semibold text-fg inset-shadow-edge shadow-[0_4px_0_0_var(--kz-border-strong)] \" +\n \"transition-[transform,box-shadow,background-color,border-color,color] duration-100 ease-out motion-reduce:transition-none \" +\n \"hover:border-border-strong \" +\n \"active:translate-y-[3px] active:shadow-[0_1px_0_0_var(--kz-border-strong)] \" +\n \"focus-visible:outline-hidden focus-visible:focus-ring disabled:cursor-not-allowed disabled:opacity-40 aria-invalid:border-danger \" +\n \"data-[state=checked]:translate-y-[3px] data-[state=checked]:border-accent data-[state=checked]:bg-accent data-[state=checked]:bg-fill-shade \" +\n \"data-[state=checked]:text-on-accent data-[state=checked]:inset-shadow-edge-fill data-[state=checked]:shadow-[0_1px_0_0_var(--kz-accent-hover)]\",\n buttonHint: \"text-[11px] font-medium text-fg-secondary group-data-[state=checked]:text-on-accent\",\n segmented:\n \"relative isolate inline-grid auto-cols-fr grid-flow-col gap-1 rounded-xl border border-border-default bg-surface-2 p-1 inset-shadow-well \" +\n \"before:pointer-events-none before:absolute before:left-0 before:top-0 before:-z-10 before:h-(--kz-ind-h) before:w-(--kz-ind-w) \" +\n \"before:translate-x-(--kz-ind-x) before:translate-y-(--kz-ind-y) before:rounded-lg before:border before:border-border-default before:bg-surface-0 before:bg-sheen \" +\n \"before:opacity-0 before:shadow-raised before:transition-[translate,width,height,opacity] before:duration-300 motion-reduce:before:transition-none data-[indicator=on]:before:opacity-100\",\n segment:\n \"inline-flex min-h-9 select-none items-center justify-center gap-1.5 whitespace-nowrap rounded-lg px-3.5 text-sm font-semibold text-fg-secondary transition-colors \" +\n \"hover:text-fg focus-visible:outline-hidden focus-visible:focus-ring disabled:cursor-not-allowed disabled:opacity-40 \" +\n \"data-[state=checked]:border data-[state=checked]:border-border-default data-[state=checked]:bg-surface-0 data-[state=checked]:text-fg data-[state=checked]:shadow-raised \" +\n \"group-data-[indicator=on]/seg:data-[state=checked]:border-transparent group-data-[indicator=on]/seg:data-[state=checked]:bg-transparent group-data-[indicator=on]/seg:data-[state=checked]:shadow-none\",\n },\n variants: {\n variant: {\n list: {},\n cards: { root: \"grid-cols-[repeat(auto-fit,minmax(10rem,1fr))] gap-3\" },\n buttons: { root: \"flex flex-wrap gap-2.5 pb-1\" },\n segmented: {},\n },\n },\n defaultVariants: { variant: \"list\" },\n});\nconst s = radioGroup();\n\nexport type RadioGroupRootProps = React.ComponentProps<typeof RadioGroupPrimitive.Root> & {\n /** The group's accessible name — passed translated (or `aria-labelledby` a visible heading). */\n label?: string;\n /** Marks every radio invalid: aria-invalid (pair it with a `Field.Error`). */\n invalid?: boolean;\n /**\n * The layout of the radios: `list` (dots), `cards` (a grid of `Card`s), `buttons` (a row of tactile `Button`s), or\n * `segmented` (a track of `Segment`s, one light gliding to the choice).\n * @default \"list\"\n */\n variant?: \"list\" | \"cards\" | \"buttons\" | \"segmented\";\n /** Binds the choice to this search parameter of the URL (`?kind=…`): the URL is the state — for a view's selection (a segmented switch), not a form field. */\n routeKey?: string;\n /** The values the parameter may hold (the radios' `value`s); the first is the default unless `defaultValue` says otherwise. */\n routeValues?: readonly string[];\n};\n\n/** `value`/`defaultValue` + `onValueChange`, `orientation`, `required`, `name` for a form, `variant` for the layout. */\nexport function RadioGroupRoot({ label, invalid, variant = \"list\", className, routeKey, routeValues, ...rest }: RadioGroupRootProps) {\n const props = useRouteBinding(routeKey, routeValues, rest);\n const { ref } = useSlidingIndicator<HTMLDivElement>({ item: \"[role=radio]\", active: \"[role=radio][data-state=checked]\" });\n const segmented = variant === \"segmented\";\n return (\n <RadioGroupPrimitive.Root\n ref={segmented ? ref : undefined}\n aria-label={label}\n aria-invalid={invalid || undefined}\n data-invalid={invalid ? \"\" : undefined}\n data-variant={variant}\n orientation={segmented ? \"horizontal\" : props.orientation}\n className={segmented ? s.segmented({ className: [\"group/seg\", className].filter(Boolean).join(\" \") }) : radioGroup({ variant }).root({ className })}\n {...props}\n />\n );\n}\n\nexport type RadioGroupItemProps = Omit<React.ComponentProps<typeof RadioGroupPrimitive.Item>, \"children\"> & {\n /** The words next to the dot, clickable. Otherwise name it with `Field.Label htmlFor` or `aria-label`. */\n children?: React.ReactNode;\n};\n\n/** A radio: a dot, and its words when given. */\nexport function RadioGroupItem({ className, children, ...props }: RadioGroupItemProps) {\n const item = (\n <RadioGroupPrimitive.Item className={s.item({ className: children ? \"mt-0.5\" : className })} {...props}>\n <RadioGroupPrimitive.Indicator className={s.dot()} />\n </RadioGroupPrimitive.Item>\n );\n if (!children) return item;\n return (\n <label className={s.label({ className })}>\n {item}\n <span className=\"min-w-0\">{children}</span>\n </label>\n );\n}\n\n/** A whole card as the radio: its content is the radio's name; its check lights up when chosen. */\nexport function RadioGroupCard({ className, children, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Item>) {\n return (\n <RadioGroupPrimitive.Item className={s.card({ className })} {...props}>\n {children}\n <span aria-hidden className={s.cardCheck()}>\n <RadioGroupPrimitive.Indicator forceMount className=\"inline-flex data-[state=unchecked]:hidden\">\n <CheckGlyph className=\"h-3 w-3\" />\n </RadioGroupPrimitive.Indicator>\n </span>\n </RadioGroupPrimitive.Item>\n );\n}\n\nexport type RadioGroupButtonProps = React.ComponentProps<typeof RadioGroupPrimitive.Item> & {\n /** A second line under the words (\"+15 %\"), part of the radio's name. */\n hint?: React.ReactNode;\n};\n\n/** A tactile key: raised on its ledge, pressed in while held and once chosen — sizes, a tip, a level. */\nexport function RadioGroupButton({ className, children, hint, ...props }: RadioGroupButtonProps) {\n return (\n <RadioGroupPrimitive.Item className={s.button({ className: [\"group\", className].filter(Boolean).join(\" \") })} {...props}>\n <span>{children}</span>\n {hint ? <span className={s.buttonHint()}>{hint}</span> : null}\n </RadioGroupPrimitive.Item>\n );\n}\n\n/** A segment of a `variant=\"segmented\"` group: equal widths, one light gliding to the choice. */\nexport function RadioGroupSegment({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Item>) {\n return <RadioGroupPrimitive.Item className={s.segment({ className })} {...props} />;\n}\n\n/** `RadioGroup.Root/Item/Card/Button/Segment`. */\nexport const RadioGroup = { Root: RadioGroupRoot, Item: RadioGroupItem, Card: RadioGroupCard, Button: RadioGroupButton, Segment: RadioGroupSegment };\n","// The shared sliding indicator (NavBar, Tabs): one element that glides from item to item instead of each item lighting\n// up on its own. It writes the target's box as CSS variables on the list (`--kz-ind-x/y/w/h`) and `data-indicator=\"on\"`\n// — no re-render, no animation frame: the glide is a CSS transition (none under reduced motion). Before hydration the\n// items keep their own active style, so nothing flashes.\nimport * as React from \"react\";\n\nconst useIsoLayoutEffect = typeof window === \"undefined\" ? React.useEffect : React.useLayoutEffect;\n\n/**\n * `item`: the selector of an item; `active`: of the current one, where the light rests; `prefer`: an item that, when\n * present, holds the light before the current one (the NavBar's open menu); `follow`: the light follows the pointer\n * and the focus — over anything that is not an item (an open menu's panel) it goes back to rest.\n */\nexport function useSlidingIndicator<T extends HTMLElement>({ item, active, prefer, follow = false }: { item: string; active: string; prefer?: string; follow?: boolean }) {\n const ref = React.useRef<T>(null);\n const place = React.useCallback((target: Element | null) => {\n const list = ref.current;\n if (!list) return;\n if (!(target instanceof HTMLElement) || !list.contains(target)) {\n list.removeAttribute(\"data-indicator\");\n return;\n }\n const a = target.getBoundingClientRect();\n const b = list.getBoundingClientRect();\n list.style.setProperty(\"--kz-ind-x\", `${a.left - b.left + list.scrollLeft}px`);\n list.style.setProperty(\"--kz-ind-y\", `${a.top - b.top + list.scrollTop}px`);\n list.style.setProperty(\"--kz-ind-w\", `${a.width}px`);\n list.style.setProperty(\"--kz-ind-h\", `${a.height}px`);\n list.setAttribute(\"data-indicator\", \"on\");\n }, []);\n const rest = React.useCallback(\n () => {\n const list = ref.current;\n // An item re-rendered under a resting pointer (a menu closing) keeps the light the pointer gave it.\n const hovered = follow ? list?.querySelector(`${item}:hover`) : null;\n place((prefer ? list?.querySelector(prefer) : null) ?? hovered ?? list?.querySelector(active) ?? null);\n },\n [place, active, prefer, item, follow],\n );\n const follow_ = React.useCallback((target: EventTarget) => {\n const hit = target instanceof Element ? target.closest(item) : null;\n if (hit && ref.current?.contains(hit)) place(hit);\n else rest();\n }, [item, place, rest]);\n\n useIsoLayoutEffect(() => {\n const list = ref.current;\n if (!list) return;\n rest();\n const resize = new ResizeObserver(rest);\n resize.observe(list);\n const changes = new MutationObserver(rest);\n changes.observe(list, { subtree: true, attributes: true, attributeFilter: [\"data-state\", \"aria-current\", \"data-active\"] });\n return () => {\n resize.disconnect();\n changes.disconnect();\n };\n }, [rest]);\n\n const handlers = follow\n ? {\n onPointerOver: (e: React.PointerEvent) => follow_(e.target),\n onPointerLeave: rest,\n onFocus: (e: React.FocusEvent) => follow_(e.target),\n onBlur: rest,\n }\n : {};\n return { ref, handlers };\n}\n","import { createTV } from \"tailwind-variants\";\n\nimport { twMergeConfig } from \"./cn\";\n\n/** `tv` with the preset's utilities known to the merge engine (`twMergeConfig`): what a primitive wearing the material is styled with. */\nexport const tv = createTV({ twMergeConfig });\n","// Client. Radix Switch: role=\"switch\", aria-checked, Space and Enter toggle, a hidden input inside a form.\nimport { Switch as SwitchPrimitive } from \"radix-ui\";\nimport type * as React from \"react\";\nimport { tv, type VariantProps } from \"tailwind-variants\";\n\nexport const switchVariants = tv({\n slots: {\n root:\n \"peer relative inline-flex shrink-0 cursor-pointer items-center rounded-full border border-transparent bg-fg-muted transition-colors \" +\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:cursor-not-allowed disabled:opacity-40 data-[state=checked]:bg-accent aria-invalid:border-danger\",\n thumb:\n \"pointer-events-none block rounded-full bg-fg-on-media shadow-sm transition-transform data-[state=unchecked]:translate-x-0.5 motion-reduce:transition-none\",\n },\n variants: {\n size: {\n sm: { root: \"h-5 w-9\", thumb: \"h-4 w-4 data-[state=checked]:translate-x-[1.125rem]\" },\n md: { root: \"h-6 w-11\", thumb: \"h-5 w-5 data-[state=checked]:translate-x-[1.375rem]\" },\n },\n },\n defaultVariants: { size: \"md\" },\n});\n\nexport type SwitchVariants = VariantProps<typeof switchVariants>;\n\ntype Named =\n | {\n /** The accessible name — required when no visible label names it, passed translated. */\n label: string;\n }\n /** Named by a visible `<label htmlFor={id}>` (e.g. `Field.Label`). */\n | { label?: undefined; id: string }\n /** Named by another element. */\n | { label?: undefined; \"aria-labelledby\": string };\n\nexport type SwitchProps = Omit<React.ComponentProps<typeof SwitchPrimitive.Root>, \"children\"> &\n SwitchVariants &\n Named & {\n /**\n * sm · md.\n * @default \"md\"\n */\n size?: SwitchVariants[\"size\"];\n /** Marks it invalid: aria-invalid and data-invalid. */\n invalid?: boolean;\n };\n\n/** An on/off switch: `checked`/`defaultChecked` + `onCheckedChange`. */\nexport function Switch({ label, size, invalid, className, ...props }: SwitchProps) {\n const s = switchVariants({ size });\n return (\n <SwitchPrimitive.Root\n aria-label={label}\n aria-invalid={invalid || undefined}\n data-invalid={invalid ? \"\" : undefined}\n className={s.root({ className })}\n {...props}\n >\n <SwitchPrimitive.Thumb className={s.thumb()} />\n </SwitchPrimitive.Root>\n );\n}\n","// Client (a radio group). The language of the account, labelled, each language named in its own language, saved per user\n// (the caller saves on change or with its section). Segmented: one light gliding to the choice.\nimport * as React from \"react\";\n\nimport { RadioGroup } from \"../radio-group\";\nimport { GroupHead } from \"./group-head\";\n\nexport interface LanguageOption {\n /** The BCP 47 code (`fr`, `en`): the value, and the `lang` of the name. */\n code: string;\n /** Its native name (`Français`, `English`) — never the current language's name for it. */\n name: string;\n}\n\nexport type LanguagePickerProps = Omit<React.ComponentProps<typeof RadioGroup.Root>, \"children\" | \"variant\" | \"label\" | \"aria-labelledby\"> & {\n /** The visible label (“Language”) — passed translated. */\n label: React.ReactNode;\n /**\n * Shows the label above the control; `false` when a `SettingsRow` already says it (the group keeps its accessible name).\n * @default true\n */\n showLabel?: boolean;\n /** One line under it: what it changes. */\n description?: React.ReactNode;\n /** The languages offered. */\n languages: readonly LanguageOption[];\n /** The chosen code (controlled). */\n value?: string;\n /** The viewer chooses another language. */\n onValueChange?: (code: string) => void;\n};\n\n/** The language control of an account page: a labelled segmented choice, native names. */\nexport function LanguagePicker({ label, showLabel = true, description, languages, className, ...props }: LanguagePickerProps) {\n const id = React.useId();\n return (\n <div className={[\"flex flex-col gap-2\", className].filter(Boolean).join(\" \")}>\n {showLabel ? <GroupHead id={`${id}-label`} label={label} description={description} /> : null}\n <RadioGroup.Root variant=\"segmented\" aria-label={showLabel ? undefined : String(label)} aria-labelledby={showLabel ? `${id}-label` : undefined} {...props}>\n {languages.map((language) => (\n <RadioGroup.Segment key={language.code} value={language.code} lang={language.code}>\n {language.name}\n </RadioGroup.Segment>\n ))}\n </RadioGroup.Root>\n </div>\n );\n}\n","import type * as React from \"react\";\n\n/** The visible label (and one line of help) of a radio group: the group's `aria-labelledby` points at it. */\nexport function GroupHead({ id, label, description }: { id: string; label: React.ReactNode; description?: React.ReactNode }) {\n return (\n <div className=\"flex flex-col gap-0.5\">\n <span id={id} className=\"text-sm font-medium text-fg\">\n {label}\n </span>\n {description ? <span className=\"text-sm text-fg-secondary\">{description}</span> : null}\n </div>\n );\n}\n","// Client (a radio group). The pictures of a person to choose from — the family's default avatars, a few photos — as a grid of\n// round tiles: one named radiogroup, one tab stop, the arrows choose, a ring and a check on the chosen one.\nimport { RadioGroup as RadioGroupPrimitive } from \"radix-ui\";\nimport * as React from \"react\";\n\nimport { type DefaultAvatar, defaultAvatarUrl } from \"../avatar/default-avatar\";\nimport { cn } from \"../cn\";\nimport { CheckGlyph } from \"../glyphs\";\nimport { GroupHead } from \"./group-head\";\n\nexport interface AvatarOption {\n /** The value of the choice. */\n id: string;\n /** Its name for assistive technology (“Teinte 3”) — passed translated. */\n label: string;\n /** A picture's address; otherwise `defaultAvatar` draws one of the family's pictures. */\n src?: string;\n /** One of Krizaka's default pictures (`{ brand, tone }`). */\n defaultAvatar?: DefaultAvatar;\n}\n\nexport type AvatarPickerProps = Omit<React.ComponentProps<typeof RadioGroupPrimitive.Root>, \"children\" | \"onChange\" | \"dir\"> & {\n /** The group's accessible name (“Profile picture”) — passed translated. */\n label: string;\n /**\n * Smaller tiles, for a settings row.\n * @default false\n */\n dense?: boolean;\n /** Shows the label above the grid, with `description` under it. */\n showLabel?: boolean;\n /** One line under the visible label: what it changes. */\n description?: React.ReactNode;\n /** The pictures. */\n options: readonly AvatarOption[];\n /** The chosen id (controlled). */\n value?: string;\n /** The viewer chooses another picture. */\n onValueChange?: (id: string) => void;\n /** After the pictures, in the grid: the upload action (a `Button`, a file input's label). Not a radio. */\n upload?: React.ReactNode;\n};\n\nconst pictureOf = (option: AvatarOption) => option.src ?? (option.defaultAvatar ? defaultAvatarUrl(option.defaultAvatar, { size: 256 }) : undefined);\n\n/** A grid of pictures to choose from, with an upload beside them: a radio group, never a row of loose radios. */\nexport function AvatarPicker({ label, showLabel, description, dense, options, upload, className, ...props }: AvatarPickerProps) {\n const id = React.useId();\n const group = (\n <RadioGroupPrimitive.Root aria-label={label} aria-labelledby={showLabel ? id : undefined} className={cn(dense ? \"flex flex-wrap gap-2.5\" : \"grid grid-cols-[repeat(auto-fill,minmax(4.25rem,1fr))] gap-3\", !showLabel && className)} {...props}>\n {options.map((option) => (\n <RadioGroupPrimitive.Item\n key={option.id}\n value={option.id}\n aria-label={option.label}\n className={cn(\n \"group/avatar relative shrink-0 rounded-full\", dense ? \"h-12 w-12\" : \"aspect-square w-full\",\n \" outline-none transition-shadow duration-200 motion-reduce:transition-none\",\n \"ring-1 ring-border-default hover:ring-border-strong focus-visible:focus-ring data-[state=checked]:ring-2 data-[state=checked]:ring-accent\",\n )}\n >\n <img src={pictureOf(option)} alt=\"\" draggable={false} className=\"h-full w-full rounded-full bg-surface-3 object-cover\" />\n <span\n aria-hidden\n className=\"absolute -bottom-0.5 -right-0.5 hidden h-5 w-5 items-center justify-center rounded-full border-2 border-surface-1 bg-accent text-on-accent group-data-[state=checked]/avatar:inline-flex\"\n >\n <CheckGlyph className=\"h-3 w-3\" />\n </span>\n </RadioGroupPrimitive.Item>\n ))}\n {upload ? <div className=\"flex aspect-square w-full items-center justify-center\">{upload}</div> : null}\n </RadioGroupPrimitive.Root>\n );\n if (!showLabel) return group;\n return (\n <div className={cn(\"flex flex-col gap-3\", className)}>\n <GroupHead id={id} label={label} description={description} />\n {group}\n </div>\n );\n}\n","// Client (a radio group). A single choice as selectable cards — an icon, a title, one line: the side of a lease, a plan, a\n// way to get the answer. Built on `RadioGroup.Card`, so the arrows choose, the card is the radio, the check lights up.\nimport * as React from \"react\";\n\nimport { RadioGroup } from \"../radio-group\";\nimport { GroupHead } from \"./group-head\";\n\nexport interface ChoiceCardOption {\n /** The value of the choice. */\n id: string;\n /** Its name, short. */\n title: React.ReactNode;\n /** One line under the title: what it means. It describes the radio. */\n description?: React.ReactNode;\n /** A glyph before the title (decorative). */\n icon?: React.ReactNode;\n disabled?: boolean;\n}\n\nexport type ChoiceCardsProps = Omit<React.ComponentProps<typeof RadioGroup.Root>, \"children\" | \"variant\" | \"label\"> & {\n /** The question (“Which side of the lease are you?”) — the group's accessible name, passed translated. */\n label: string;\n /** Shows the question above the cards, with `description` under it. */\n showLabel?: boolean;\n /** One line under the visible question. */\n description?: React.ReactNode;\n /** The choices. */\n options: readonly ChoiceCardOption[];\n /** The chosen id (controlled). */\n value?: string;\n /** The viewer chooses another card. */\n onValueChange?: (id: string) => void;\n};\n\n/** Cards to choose one from: a radio group where each card has an icon, a title and a description. */\nexport function ChoiceCards({ label, showLabel, description, options, className, ...props }: ChoiceCardsProps) {\n const base = React.useId();\n const group = (\n <RadioGroup.Root variant=\"cards\" label={label} aria-labelledby={showLabel ? `${base}-label` : undefined} className={[\"grid grid-cols-1 gap-3 sm:grid-cols-2\", !showLabel && className].filter(Boolean).join(\" \")} {...props}>\n {options.map((option) => {\n const describedBy = option.description ? `${base}-${option.id}` : undefined;\n return (\n <RadioGroup.Card key={option.id} value={option.id} disabled={option.disabled} aria-describedby={describedBy}>\n <span className=\"flex items-center gap-2.5 font-semibold text-fg [&>svg]:h-5 [&>svg]:w-5 [&>svg]:text-accent\">\n {option.icon}\n {option.title}\n </span>\n {option.description ? (\n <span id={describedBy} className=\"text-sm font-normal text-fg-secondary\">\n {option.description}\n </span>\n ) : null}\n </RadioGroup.Card>\n );\n })}\n </RadioGroup.Root>\n );\n if (!showLabel) return group;\n return (\n <div className={[\"flex flex-col gap-3\", className].filter(Boolean).join(\" \")}>\n <GroupHead id={`${base}-label`} label={label} description={description} />\n {group}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAEA,SAAS,UAA6B;;;ACI/B,IAAM,cAAc,aAAa;AAAA,EACtC,MAAM;AAAA,EACN,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,SAAS;AAAA,MACT,QAAQ;AAAA,MACR,SAAS;AAAA,MACT,SAAS;AAAA,MACT,QAAQ;AAAA;AAAA,MAER,OAAO;AAAA,IACT;AAAA,IACA,MAAM,EAAE,IAAI,2BAA2B,IAAI,0BAA0B;AAAA,IACrE,OAAO,EAAE,MAAM,2CAA2C;AAAA,EAC5D;AAAA,EACA,iBAAiB,EAAE,MAAM,WAAW,MAAM,KAAK;AACjD,CA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G,IAAI,IAAI,OAAO,EAAE,KAAK;AAClE,WACE,gBAAAC,MAAC,WAAW,MAAX,EAAgC,OAAO,OAAO,IAAI,UAAU,OAAO,UAAU,oBAAkB,aAC9F;AAAA,sBAAAA,MAAC,UAAK,WAAU,+FACb;AAAA,eAAO;AAAA,QACP,OAAO;AAAA,SACV;AAAA,MACC,OAAO,cACN,gBAAAD,MAAC,UAAK,IAAI,aAAa,WAAU,yCAC9B,iBAAO,aACV,IACE;AAAA,SATgB,OAAO,EAU7B;AAAA,EAEJ,CAAC,GACH;AAEF,MAAI,CAAC,UAAW,QAAO;AACvB,SACE,gBAAAC,MAAC,SAAI,WAAW,CAAC,uBAAuB,SAAS,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG,GACzE;AAAA,oBAAAD,MAAC,aAAU,IAAI,GAAG,IAAI,UAAU,OAAc,aAA0B;AAAA,IACvE;AAAA,KACH;AAEJ;","names":["jsx","jsxs","React","tv","jsx","jsxs","tv","tv","jsx","jsxs","tv","s","tv","jsx","s","React","jsx","jsxs","jsx","jsxs","jsx","jsxs","RadioGroupPrimitive","React","jsx","jsxs","RadioGroupPrimitive","React","jsx","jsxs"]}
@@ -51,4 +51,5 @@ type EmblemProps = Omit<React.SVGProps<SVGSVGElement>, "children"> & {
51
51
  /** Three line emblems for achievements and choices (`currentColor`, decorative). */
52
52
  declare function Emblem({ kind, size, ...props }: EmblemProps): React.JSX.Element;
53
53
 
54
- export { Achievement, AchievementList, type AchievementListProps, type AchievementProps, Emblem, type EmblemProps };
54
+ export { Achievement, AchievementList, Emblem };
55
+ export type { AchievementListProps, AchievementProps, EmblemProps };
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { L as LinkComponent } from './block-link-BAg4eoZk.js';
2
+ import { LinkComponent } from './chapter.js';
3
3
 
4
4
  interface Action {
5
5
  /** Where it leads. An absolute URL opens in a new tab, with the external mark. */
@@ -35,4 +35,5 @@ type ActionBarProps = React.HTMLAttributes<HTMLUListElement> & {
35
35
  /** A row of link actions: buttons with their words, or icon buttons with a tooltip. */
36
36
  declare function ActionBar({ actions, variant, primaryFirst, size, label, linkAs, className, ...props }: ActionBarProps): React.JSX.Element;
37
37
 
38
- export { type Action, ActionBar, type ActionBarProps };
38
+ export { ActionBar };
39
+ export type { Action, ActionBarProps };
@@ -196,4 +196,5 @@ type TimelineProps<T extends ActivityEvent> = {
196
196
  /** One thing's history on a rail, oldest first: each event a marker in its tone, its time and its words. */
197
197
  declare function Timeline<T extends ActivityEvent>({ events, "aria-label": label, locale, timeStyle, className }: TimelineProps<T>): React.JSX.Element;
198
198
 
199
- export { type ActivityEvent, ActivityFeed, type ActivityFeedLabels, type ActivityFeedProps, type ActivityGroup, type ActivityTone, Timeline, type TimelineProps, activityFeed, activityFeedLabels, groupActivity, timeAgo };
199
+ export { ActivityFeed, Timeline, activityFeed, activityFeedLabels, groupActivity, timeAgo };
200
+ export type { ActivityEvent, ActivityFeedLabels, ActivityFeedProps, ActivityGroup, ActivityTone, TimelineProps };
package/dist/agenda.d.ts CHANGED
@@ -133,4 +133,5 @@ type AgendaProps<T extends AgendaItem> = {
133
133
  };
134
134
  declare function Agenda<T extends AgendaItem>({ items, locale, timeZone, now, selectedId, onSelect, linkAs, action, labels: given, empty, className, "aria-label": label }: AgendaProps<T>): React.JSX.Element | null;
135
135
 
136
- export { Agenda, type AgendaItem, type AgendaLabels, type AgendaProps, type AgendaTone, agenda, agendaLabels };
136
+ export { Agenda, agenda, agendaLabels };
137
+ export type { AgendaItem, AgendaLabels, AgendaProps, AgendaTone };
package/dist/alert.d.ts CHANGED
@@ -94,4 +94,5 @@ type AlertProps = Omit<React.ComponentProps<"div">, "title"> & {
94
94
  };
95
95
  declare function Alert({ tone, icon, title, action, className, children, ...props }: AlertProps): React.JSX.Element;
96
96
 
97
- export { Alert, type AlertProps, type AlertTone, alertVariants };
97
+ export { Alert, alertVariants };
98
+ export type { AlertProps, AlertTone };
@@ -20,7 +20,11 @@ type AnatomyPlateProps = Omit<React.HTMLAttributes<HTMLElement>, "title"> & {
20
20
  /** The specimen's scale on a wide screen (it is drawn at 1 on a phone). @default 1.6 */
21
21
  scale?: number;
22
22
  };
23
- /** A component's anatomy as a naturalist's plate: the specimen in the middle, its numbered parts and their reasons around it. */
23
+ /**
24
+ * A component's anatomy as a naturalist's plate: the specimen in the middle, its numbered parts and their reasons around it.
25
+ * @deprecated Since 3.55 (ADR-006, krizaka-ui#674): no product uses it. Removed in 4.0.
26
+ */
24
27
  declare function AnatomyPlate({ title, subtitle, parts, children, scale, className, style, ...props }: AnatomyPlateProps): React.JSX.Element;
25
28
 
26
- export { type AnatomyPart, AnatomyPlate, type AnatomyPlateProps };
29
+ export { AnatomyPlate };
30
+ export type { AnatomyPart, AnatomyPlateProps };
@@ -1,3 +1,6 @@
1
+ import {
2
+ warnDeprecated
3
+ } from "./chunk-KGLRZMCY.js";
1
4
  import {
2
5
  cn
3
6
  } from "./chunk-W675RFOA.js";
@@ -5,6 +8,7 @@ import {
5
8
  // src/anatomy-plate/anatomy-plate.tsx
6
9
  import { jsx, jsxs } from "react/jsx-runtime";
7
10
  function AnatomyPlate({ title, subtitle, parts, children, scale = 1.6, className, style, ...props }) {
11
+ warnDeprecated("anatomy-plate");
8
12
  const numbered = parts.map((p, i) => ({ ...p, n: i + 1, side: p.side ?? (i % 2 === 0 ? "left" : "right") }));
9
13
  const column = (side) => /* @__PURE__ */ jsx("ol", { className: "kz-anatomy-parts", "data-side": side, children: numbered.filter((p) => p.side === side).map((p) => /* @__PURE__ */ jsxs("li", { value: p.n, className: "kz-anatomy-part", children: [
10
14
  /* @__PURE__ */ jsx("span", { className: "kz-anatomy-n", "aria-hidden": true, children: p.n }),
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/anatomy-plate/anatomy-plate.tsx"],"sourcesContent":["// Server-safe. The anatomy plate of the Cahier (ADR-004, blocks.css): a component drawn large in the middle of a plate,\n// its parts numbered and named on both sides, a hairline leading from each note to the specimen — the way a field guide\n// shows a bird's anatomy. The notes are real text in an ordered list: the plate is its own text version, and on a phone\n// it stacks (the specimen, then the list).\nimport type * as React from \"react\";\n\nimport { cn } from \"../cn\";\n\nexport interface AnatomyPart {\n /** The part's name: `the cut`. */\n label: React.ReactNode;\n /** Why it is there, in one sentence: `45°, the Krizaka chamfer; it points where the action goes.` */\n note: React.ReactNode;\n /** The side of the plate it is written on. @default alternates, left first */\n side?: \"left\" | \"right\";\n}\n\nexport type AnatomyPlateProps = Omit<React.HTMLAttributes<HTMLElement>, \"title\"> & {\n /** The plate's title: `Anatomy`. */\n title?: React.ReactNode;\n /** One line under the title, or the scale: `to scale × 1.9`. */\n subtitle?: React.ReactNode;\n /** The parts, numbered in this order. */\n parts: readonly AnatomyPart[];\n /** The specimen: the live component, drawn large. */\n children: React.ReactNode;\n /** The specimen's scale on a wide screen (it is drawn at 1 on a phone). @default 1.6 */\n scale?: number;\n};\n\n/** A component's anatomy as a naturalist's plate: the specimen in the middle, its numbered parts and their reasons around it. */\nexport function AnatomyPlate({ title, subtitle, parts, children, scale = 1.6, className, style, ...props }: AnatomyPlateProps) {\n const numbered = parts.map((p, i) => ({ ...p, n: i + 1, side: p.side ?? (i % 2 === 0 ? \"left\" : \"right\") }));\n const column = (side: \"left\" | \"right\") => (\n <ol className=\"kz-anatomy-parts\" data-side={side}>\n {numbered\n .filter((p) => p.side === side)\n .map((p) => (\n <li key={p.n} value={p.n} className=\"kz-anatomy-part\">\n <span className=\"kz-anatomy-n\" aria-hidden>\n {p.n}\n </span>\n <span className=\"kz-anatomy-text\">\n <b>{p.label}</b> {p.note}\n </span>\n </li>\n ))}\n </ol>\n );\n return (\n <figure className={cn(\"kz-anatomy\", className)} style={{ [\"--kz-anatomy-scale\" as string]: scale, ...style }} {...props}>\n {(title || subtitle) && (\n <figcaption className=\"kz-anatomy-head\">\n {title && <span className=\"kz-plate-title\">{title}</span>}\n {subtitle && <span className=\"kz-plate-sub\">{subtitle}</span>}\n </figcaption>\n )}\n <div className=\"kz-anatomy-stage\">\n {column(\"left\")}\n <div className=\"kz-anatomy-specimen\">\n <div className=\"kz-anatomy-scale\">{children}</div>\n </div>\n {column(\"right\")}\n </div>\n </figure>\n );\n}\n"],"mappings":";;;;;AAuCY,cAGA,YAHA;AARL,SAAS,aAAa,EAAE,OAAO,UAAU,OAAO,UAAU,QAAQ,KAAK,WAAW,OAAO,GAAG,MAAM,GAAsB;AAC7H,QAAM,WAAW,MAAM,IAAI,CAAC,GAAG,OAAO,EAAE,GAAG,GAAG,GAAG,IAAI,GAAG,MAAM,EAAE,SAAS,IAAI,MAAM,IAAI,SAAS,SAAS,EAAE;AAC3G,QAAM,SAAS,CAAC,SACd,oBAAC,QAAG,WAAU,oBAAmB,aAAW,MACzC,mBACE,OAAO,CAAC,MAAM,EAAE,SAAS,IAAI,EAC7B,IAAI,CAAC,MACJ,qBAAC,QAAa,OAAO,EAAE,GAAG,WAAU,mBAClC;AAAA,wBAAC,UAAK,WAAU,gBAAe,eAAW,MACvC,YAAE,GACL;AAAA,IACA,qBAAC,UAAK,WAAU,mBACd;AAAA,0BAAC,OAAG,YAAE,OAAM;AAAA,MAAI;AAAA,MAAE,EAAE;AAAA,OACtB;AAAA,OANO,EAAE,CAOX,CACD,GACL;AAEF,SACE,qBAAC,YAAO,WAAW,GAAG,cAAc,SAAS,GAAG,OAAO,EAAE,CAAC,oBAA8B,GAAG,OAAO,GAAG,MAAM,GAAI,GAAG,OAC9G;AAAA,cAAS,aACT,qBAAC,gBAAW,WAAU,mBACnB;AAAA,eAAS,oBAAC,UAAK,WAAU,kBAAkB,iBAAM;AAAA,MACjD,YAAY,oBAAC,UAAK,WAAU,gBAAgB,oBAAS;AAAA,OACxD;AAAA,IAEF,qBAAC,SAAI,WAAU,oBACZ;AAAA,aAAO,MAAM;AAAA,MACd,oBAAC,SAAI,WAAU,uBACb,8BAAC,SAAI,WAAU,oBAAoB,UAAS,GAC9C;AAAA,MACC,OAAO,OAAO;AAAA,OACjB;AAAA,KACF;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../src/anatomy-plate/anatomy-plate.tsx"],"sourcesContent":["// Server-safe. The anatomy plate of the Cahier (ADR-004, blocks.css): a component drawn large in the middle of a plate,\n// its parts numbered and named on both sides, a hairline leading from each note to the specimen — the way a field guide\n// shows a bird's anatomy. The notes are real text in an ordered list: the plate is its own text version, and on a phone\n// it stacks (the specimen, then the list).\nimport type * as React from \"react\";\n\nimport { cn } from \"../cn\";\nimport { warnDeprecated } from \"../deprecated\";\n\nexport interface AnatomyPart {\n /** The part's name: `the cut`. */\n label: React.ReactNode;\n /** Why it is there, in one sentence: `45°, the Krizaka chamfer; it points where the action goes.` */\n note: React.ReactNode;\n /** The side of the plate it is written on. @default alternates, left first */\n side?: \"left\" | \"right\";\n}\n\nexport type AnatomyPlateProps = Omit<React.HTMLAttributes<HTMLElement>, \"title\"> & {\n /** The plate's title: `Anatomy`. */\n title?: React.ReactNode;\n /** One line under the title, or the scale: `to scale × 1.9`. */\n subtitle?: React.ReactNode;\n /** The parts, numbered in this order. */\n parts: readonly AnatomyPart[];\n /** The specimen: the live component, drawn large. */\n children: React.ReactNode;\n /** The specimen's scale on a wide screen (it is drawn at 1 on a phone). @default 1.6 */\n scale?: number;\n};\n\n/**\n * A component's anatomy as a naturalist's plate: the specimen in the middle, its numbered parts and their reasons around it.\n * @deprecated Since 3.55 (ADR-006, krizaka-ui#674): no product uses it. Removed in 4.0.\n */\nexport function AnatomyPlate({ title, subtitle, parts, children, scale = 1.6, className, style, ...props }: AnatomyPlateProps) {\n warnDeprecated(\"anatomy-plate\");\n const numbered = parts.map((p, i) => ({ ...p, n: i + 1, side: p.side ?? (i % 2 === 0 ? \"left\" : \"right\") }));\n const column = (side: \"left\" | \"right\") => (\n <ol className=\"kz-anatomy-parts\" data-side={side}>\n {numbered\n .filter((p) => p.side === side)\n .map((p) => (\n <li key={p.n} value={p.n} className=\"kz-anatomy-part\">\n <span className=\"kz-anatomy-n\" aria-hidden>\n {p.n}\n </span>\n <span className=\"kz-anatomy-text\">\n <b>{p.label}</b> {p.note}\n </span>\n </li>\n ))}\n </ol>\n );\n return (\n <figure className={cn(\"kz-anatomy\", className)} style={{ [\"--kz-anatomy-scale\" as string]: scale, ...style }} {...props}>\n {(title || subtitle) && (\n <figcaption className=\"kz-anatomy-head\">\n {title && <span className=\"kz-plate-title\">{title}</span>}\n {subtitle && <span className=\"kz-plate-sub\">{subtitle}</span>}\n </figcaption>\n )}\n <div className=\"kz-anatomy-stage\">\n {column(\"left\")}\n <div className=\"kz-anatomy-specimen\">\n <div className=\"kz-anatomy-scale\">{children}</div>\n </div>\n {column(\"right\")}\n </div>\n </figure>\n );\n}\n"],"mappings":";;;;;;;;AA4CY,cAGA,YAHA;AATL,SAAS,aAAa,EAAE,OAAO,UAAU,OAAO,UAAU,QAAQ,KAAK,WAAW,OAAO,GAAG,MAAM,GAAsB;AAC7H,iBAAe,eAAe;AAC9B,QAAM,WAAW,MAAM,IAAI,CAAC,GAAG,OAAO,EAAE,GAAG,GAAG,GAAG,IAAI,GAAG,MAAM,EAAE,SAAS,IAAI,MAAM,IAAI,SAAS,SAAS,EAAE;AAC3G,QAAM,SAAS,CAAC,SACd,oBAAC,QAAG,WAAU,oBAAmB,aAAW,MACzC,mBACE,OAAO,CAAC,MAAM,EAAE,SAAS,IAAI,EAC7B,IAAI,CAAC,MACJ,qBAAC,QAAa,OAAO,EAAE,GAAG,WAAU,mBAClC;AAAA,wBAAC,UAAK,WAAU,gBAAe,eAAW,MACvC,YAAE,GACL;AAAA,IACA,qBAAC,UAAK,WAAU,mBACd;AAAA,0BAAC,OAAG,YAAE,OAAM;AAAA,MAAI;AAAA,MAAE,EAAE;AAAA,OACtB;AAAA,OANO,EAAE,CAOX,CACD,GACL;AAEF,SACE,qBAAC,YAAO,WAAW,GAAG,cAAc,SAAS,GAAG,OAAO,EAAE,CAAC,oBAA8B,GAAG,OAAO,GAAG,MAAM,GAAI,GAAG,OAC9G;AAAA,cAAS,aACT,qBAAC,gBAAW,WAAU,mBACnB;AAAA,eAAS,oBAAC,UAAK,WAAU,kBAAkB,iBAAM;AAAA,MACjD,YAAY,oBAAC,UAAK,WAAU,gBAAgB,oBAAS;AAAA,OACxD;AAAA,IAEF,qBAAC,SAAI,WAAU,oBACZ;AAAA,aAAO,MAAM;AAAA,MACd,oBAAC,SAAI,WAAU,uBACb,8BAAC,SAAI,WAAU,oBAAoB,UAAS,GAC9C;AAAA,MACC,OAAO,OAAO;AAAA,OACjB;AAAA,KACF;AAEJ;","names":[]}
@@ -0,0 +1,64 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+ import * as React from 'react';
3
+
4
+ declare const appHeaderSearch: tailwind_variants.TVReturnType<{
5
+ [key: string]: {
6
+ [key: string]: tailwind_variants.ClassValue | {
7
+ glyph?: tailwind_variants.ClassValue;
8
+ label?: tailwind_variants.ClassValue;
9
+ keys?: tailwind_variants.ClassValue;
10
+ root?: tailwind_variants.ClassValue;
11
+ };
12
+ };
13
+ } | {
14
+ [x: string]: {
15
+ [x: string]: tailwind_variants.ClassValue | {
16
+ glyph?: tailwind_variants.ClassValue;
17
+ label?: tailwind_variants.ClassValue;
18
+ keys?: tailwind_variants.ClassValue;
19
+ root?: tailwind_variants.ClassValue;
20
+ };
21
+ };
22
+ } | {}, {
23
+ root: string;
24
+ glyph: string;
25
+ label: string;
26
+ keys: string;
27
+ }, undefined, {
28
+ [key: string]: {
29
+ [key: string]: tailwind_variants.ClassValue | {
30
+ glyph?: tailwind_variants.ClassValue;
31
+ label?: tailwind_variants.ClassValue;
32
+ keys?: tailwind_variants.ClassValue;
33
+ root?: tailwind_variants.ClassValue;
34
+ };
35
+ };
36
+ } | {}, {
37
+ root: string;
38
+ glyph: string;
39
+ label: string;
40
+ keys: string;
41
+ }, tailwind_variants.TVReturnTypeLike<unknown, {
42
+ root: string;
43
+ glyph: string;
44
+ label: string;
45
+ keys: string;
46
+ }>>;
47
+ /** Whether a keydown is the shortcut: ⌘ or Ctrl with the key, no Alt. */
48
+ declare function isSearchShortcut(event: Pick<KeyboardEvent, "key" | "metaKey" | "ctrlKey" | "altKey">, key: string): boolean;
49
+ type AppHeaderSearchProps = Omit<React.ComponentProps<"button">, "children" | "onClick"> & {
50
+ /** What it searches (« Search files and checks ») — passed translated: the field's words from `md`, the button's name at every width. */
51
+ label: string;
52
+ /** Opens the palette: a click, Enter, and the shortcut. */
53
+ onOpen: () => void;
54
+ /**
55
+ * The shortcut's key with ⌘ (Apple) or Ctrl (elsewhere), global to the page; `false` for none. One per page.
56
+ * @default "k"
57
+ */
58
+ shortcut?: string | false;
59
+ };
60
+ /** The top bar's search trigger: a field from `md`, an icon below; it opens the host's palette, also on ⌘K. */
61
+ declare function AppHeaderSearch({ label, onOpen, shortcut, className, type, ...props }: AppHeaderSearchProps): React.JSX.Element;
62
+
63
+ export { AppHeaderSearch, appHeaderSearch, isSearchShortcut };
64
+ export type { AppHeaderSearchProps };
@@ -0,0 +1,70 @@
1
+ "use client";
2
+ import {
3
+ Kbd
4
+ } from "../chunk-KID32IRJ.js";
5
+ import {
6
+ SearchGlyph
7
+ } from "../chunk-P7GZR5CU.js";
8
+
9
+ // src/app-header/search/search.tsx
10
+ import * as React from "react";
11
+ import { tv } from "tailwind-variants";
12
+ import { jsx, jsxs } from "react/jsx-runtime";
13
+ var appHeaderSearch = tv({
14
+ slots: {
15
+ root: "inline-flex h-9 w-9 shrink-0 items-center justify-center gap-2 rounded-lg text-fg-secondary transition-colors hover:bg-surface-2 hover:text-fg focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none md:w-56 md:justify-start md:border md:border-border-default md:bg-surface-2/60 md:px-3 md:text-xs md:hover:border-border-strong lg:w-72",
16
+ glyph: "h-5 w-5 shrink-0 md:h-4 md:w-4",
17
+ // Hidden on a phone, still the button's name there (sr-only), so the name is the same at every width.
18
+ label: "sr-only md:not-sr-only md:flex-1 md:truncate md:text-left",
19
+ keys: "ml-auto hidden shrink-0 items-center gap-0.5 lg:flex"
20
+ }
21
+ });
22
+ var s = appHeaderSearch();
23
+ var isApple = () => typeof navigator !== "undefined" && /Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent);
24
+ function isSearchShortcut(event, key) {
25
+ return event.key.toLowerCase() === key.toLowerCase() && (event.metaKey || event.ctrlKey) && !event.altKey;
26
+ }
27
+ function AppHeaderSearch({ label, onOpen, shortcut = "k", className, type, ...props }) {
28
+ const [apple, setApple] = React.useState(true);
29
+ const open = React.useRef(onOpen);
30
+ React.useEffect(() => {
31
+ open.current = onOpen;
32
+ }, [onOpen]);
33
+ React.useEffect(() => {
34
+ if (!shortcut) return;
35
+ setApple(isApple());
36
+ const onKey = (event) => {
37
+ if (!isSearchShortcut(event, shortcut)) return;
38
+ event.preventDefault();
39
+ open.current();
40
+ };
41
+ window.addEventListener("keydown", onKey);
42
+ return () => window.removeEventListener("keydown", onKey);
43
+ }, [shortcut]);
44
+ const key = shortcut ? shortcut.toUpperCase() : null;
45
+ return /* @__PURE__ */ jsxs(
46
+ "button",
47
+ {
48
+ type: type ?? "button",
49
+ "aria-haspopup": "dialog",
50
+ "aria-keyshortcuts": key ? `Meta+${key} Control+${key}` : void 0,
51
+ ...props,
52
+ onClick: () => onOpen(),
53
+ className: s.root({ className }),
54
+ children: [
55
+ /* @__PURE__ */ jsx(SearchGlyph, { className: s.glyph() }),
56
+ /* @__PURE__ */ jsx("span", { className: s.label(), children: label }),
57
+ key && /* @__PURE__ */ jsxs("span", { "aria-hidden": true, className: s.keys(), children: [
58
+ /* @__PURE__ */ jsx(Kbd, { size: "sm", children: apple ? "\u2318" : "Ctrl" }),
59
+ /* @__PURE__ */ jsx(Kbd, { size: "sm", children: key })
60
+ ] })
61
+ ]
62
+ }
63
+ );
64
+ }
65
+ export {
66
+ AppHeaderSearch,
67
+ appHeaderSearch,
68
+ isSearchShortcut
69
+ };
70
+ //# sourceMappingURL=search.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/app-header/search/search.tsx"],"sourcesContent":["// Client (a global shortcut). The top bar's search trigger: a field-like button (the glyph, the label, ⌘K) from `md`, an\n// icon below. It does not search: it opens the host's palette (`CommandDialog` of @krizaka/ui/command) — on a click, on\n// Enter, and on ⌘K / Ctrl+K from anywhere on the page.\nimport * as React from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nimport { SearchGlyph } from \"../../glyphs\";\nimport { Kbd } from \"../../kbd/kbd\";\n\nexport const appHeaderSearch = tv({\n slots: {\n root:\n \"inline-flex h-9 w-9 shrink-0 items-center justify-center gap-2 rounded-lg text-fg-secondary transition-colors \" +\n \"hover:bg-surface-2 hover:text-fg focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring motion-reduce:transition-none \" +\n \"md:w-56 md:justify-start md:border md:border-border-default md:bg-surface-2/60 md:px-3 md:text-xs md:hover:border-border-strong lg:w-72\",\n glyph: \"h-5 w-5 shrink-0 md:h-4 md:w-4\",\n // Hidden on a phone, still the button's name there (sr-only), so the name is the same at every width.\n label: \"sr-only md:not-sr-only md:flex-1 md:truncate md:text-left\",\n keys: \"ml-auto hidden shrink-0 items-center gap-0.5 lg:flex\",\n },\n});\nconst s = appHeaderSearch();\n\nconst isApple = () => typeof navigator !== \"undefined\" && /Mac|iPhone|iPad/.test(navigator.platform || navigator.userAgent);\n\n/** Whether a keydown is the shortcut: ⌘ or Ctrl with the key, no Alt. */\nexport function isSearchShortcut(event: Pick<KeyboardEvent, \"key\" | \"metaKey\" | \"ctrlKey\" | \"altKey\">, key: string): boolean {\n return event.key.toLowerCase() === key.toLowerCase() && (event.metaKey || event.ctrlKey) && !event.altKey;\n}\n\nexport type AppHeaderSearchProps = Omit<React.ComponentProps<\"button\">, \"children\" | \"onClick\"> & {\n /** What it searches (« Search files and checks ») — passed translated: the field's words from `md`, the button's name at every width. */\n label: string;\n /** Opens the palette: a click, Enter, and the shortcut. */\n onOpen: () => void;\n /**\n * The shortcut's key with ⌘ (Apple) or Ctrl (elsewhere), global to the page; `false` for none. One per page.\n * @default \"k\"\n */\n shortcut?: string | false;\n};\n\n/** The top bar's search trigger: a field from `md`, an icon below; it opens the host's palette, also on ⌘K. */\nexport function AppHeaderSearch({ label, onOpen, shortcut = \"k\", className, type, ...props }: AppHeaderSearchProps) {\n const [apple, setApple] = React.useState(true);\n const open = React.useRef(onOpen);\n React.useEffect(() => {\n open.current = onOpen;\n }, [onOpen]);\n\n React.useEffect(() => {\n if (!shortcut) return;\n // eslint-disable-next-line react-hooks/set-state-in-effect -- the platform is only known in the browser (no hydration mismatch)\n setApple(isApple());\n const onKey = (event: KeyboardEvent) => {\n if (!isSearchShortcut(event, shortcut)) return;\n event.preventDefault();\n open.current();\n };\n window.addEventListener(\"keydown\", onKey);\n return () => window.removeEventListener(\"keydown\", onKey);\n }, [shortcut]);\n\n const key = shortcut ? shortcut.toUpperCase() : null;\n return (\n <button\n type={type ?? \"button\"}\n aria-haspopup=\"dialog\"\n aria-keyshortcuts={key ? `Meta+${key} Control+${key}` : undefined}\n {...props}\n onClick={() => onOpen()}\n className={s.root({ className })}\n >\n <SearchGlyph className={s.glyph()} />\n <span className={s.label()}>{label}</span>\n {key && (\n <span aria-hidden className={s.keys()}>\n <Kbd size=\"sm\">{apple ? \"⌘\" : \"Ctrl\"}</Kbd>\n <Kbd size=\"sm\">{key}</Kbd>\n </span>\n )}\n </button>\n );\n}\n"],"mappings":";;;;;;;;;AAGA,YAAY,WAAW;AACvB,SAAS,UAAU;AAqEb,cAGE,YAHF;AAhEC,IAAM,kBAAkB,GAAG;AAAA,EAChC,OAAO;AAAA,IACL,MACE;AAAA,IAGF,OAAO;AAAA;AAAA,IAEP,OAAO;AAAA,IACP,MAAM;AAAA,EACR;AACF,CAAC;AACD,IAAM,IAAI,gBAAgB;AAE1B,IAAM,UAAU,MAAM,OAAO,cAAc,eAAe,kBAAkB,KAAK,UAAU,YAAY,UAAU,SAAS;AAGnH,SAAS,iBAAiB,OAAsE,KAAsB;AAC3H,SAAO,MAAM,IAAI,YAAY,MAAM,I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