@krizaka/ui 3.55.0 → 3.60.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 (610) 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 +2 -1
  4. package/dist/account-settings.d.ts +153 -61
  5. package/dist/account-settings.js +240 -97
  6. package/dist/account-settings.js.map +1 -1
  7. package/dist/achievement.d.ts +2 -1
  8. package/dist/action-bar.d.ts +3 -2
  9. package/dist/activity-feed.d.ts +2 -1
  10. package/dist/agenda.d.ts +2 -1
  11. package/dist/alert.d.ts +2 -1
  12. package/dist/anatomy-plate.d.ts +2 -1
  13. package/dist/app-header/search.d.ts +8 -7
  14. package/dist/app-header.d.ts +2 -1
  15. package/dist/app-shell.d.ts +26 -25
  16. package/dist/argument-card.d.ts +3 -2
  17. package/dist/audio-player.d.ts +2 -1
  18. package/dist/auth-layout.d.ts +11 -10
  19. package/dist/avatar/defaults.d.ts +2 -1
  20. package/dist/avatar.d.ts +2 -1
  21. package/dist/badge.d.ts +2 -1
  22. package/dist/bird-plate.d.ts +4 -2
  23. package/dist/blocks.css +183 -4
  24. package/dist/button.d.ts +2 -1
  25. package/dist/captcha.d.ts +2 -1
  26. package/dist/captcha.js +1 -0
  27. package/dist/captcha.js.map +1 -1
  28. package/dist/card-grid.d.ts +2 -1
  29. package/dist/card.d.ts +2 -1
  30. package/dist/catalogue-page.d.ts +82 -2
  31. package/dist/catalogue-page.js +156 -13
  32. package/dist/catalogue-page.js.map +1 -1
  33. package/dist/changelog-page.d.ts +2 -1
  34. package/dist/chapter.d.ts +2 -1
  35. package/dist/chat.d.ts +14 -13
  36. package/dist/checkbox.d.ts +2 -1
  37. package/dist/chip-link.d.ts +2 -1
  38. package/dist/chip-row.d.ts +8 -7
  39. package/dist/chip.d.ts +55 -1
  40. package/dist/chip.js +10 -1
  41. package/dist/choice-grid.d.ts +3 -2
  42. package/dist/chunk-27AWSJTK.js +46 -0
  43. package/dist/chunk-27AWSJTK.js.map +1 -0
  44. package/dist/chunk-44FU32KP.js +2 -0
  45. package/dist/chunk-44FU32KP.js.map +1 -0
  46. package/dist/{chunk-AEP3K4YD.js → chunk-4GQH27IT.js} +2 -2
  47. package/dist/{chunk-QWKCNSPF.js → chunk-5LANVCK7.js} +125 -73
  48. package/dist/chunk-5LANVCK7.js.map +1 -0
  49. package/dist/{chunk-KDXRYUD3.js → chunk-5QEXOGO2.js} +3 -1
  50. package/dist/{chunk-KDXRYUD3.js.map → chunk-5QEXOGO2.js.map} +1 -1
  51. package/dist/chunk-7J2L4HOD.js +340 -0
  52. package/dist/chunk-7J2L4HOD.js.map +1 -0
  53. package/dist/{chunk-7U5TXA5Q.js → chunk-BQ4EOR2O.js} +74 -2
  54. package/dist/chunk-BQ4EOR2O.js.map +1 -0
  55. package/dist/chunk-F6JTHPHE.js +399 -0
  56. package/dist/chunk-F6JTHPHE.js.map +1 -0
  57. package/dist/chunk-OGWB76BR.js +90 -0
  58. package/dist/chunk-OGWB76BR.js.map +1 -0
  59. package/dist/{chunk-VIPSZXO4.js → chunk-UYGUSYIC.js} +72 -2
  60. package/dist/chunk-UYGUSYIC.js.map +1 -0
  61. package/dist/chunk-WOZP3JLW.js +51 -0
  62. package/dist/chunk-WOZP3JLW.js.map +1 -0
  63. package/dist/chunk-XVXFMVG3.js +27 -0
  64. package/dist/chunk-XVXFMVG3.js.map +1 -0
  65. package/dist/code-block.d.ts +2 -1
  66. package/dist/combobox.d.ts +20 -19
  67. package/dist/combobox.js +3 -2
  68. package/dist/command.d.ts +21 -20
  69. package/dist/comparison-table.d.ts +2 -1
  70. package/dist/component-page.d.ts +2 -1
  71. package/dist/confirm-button.d.ts +2 -1
  72. package/dist/contact-page.d.ts +2 -1
  73. package/dist/continue-prompt.d.ts +2 -1
  74. package/dist/countdown.d.ts +2 -1
  75. package/dist/cover-hero.d.ts +20 -19
  76. package/dist/cover-hero.js +25 -42
  77. package/dist/cover-hero.js.map +1 -1
  78. package/dist/cta-panel.d.ts +2 -1
  79. package/dist/dashboard-layout.d.ts +50 -2
  80. package/dist/dashboard-layout.js +66 -11
  81. package/dist/dashboard-layout.js.map +1 -1
  82. package/dist/data-table.d.ts +45 -2
  83. package/dist/data-table.js +7 -3
  84. package/dist/date-picker.d.ts +29 -28
  85. package/dist/decision-list.d.ts +2 -1
  86. package/dist/description-list.d.ts +2 -1
  87. package/dist/detail-layout.d.ts +153 -20
  88. package/dist/detail-layout.js +73 -4
  89. package/dist/detail-layout.js.map +1 -1
  90. package/dist/{dialog-D42QwYb_.d.ts → dialog-DpUwec2g.d.ts} +2 -1
  91. package/dist/dialog.d.ts +3 -2
  92. package/dist/docs-article-page.d.ts +2 -1
  93. package/dist/docs-hub-page.d.ts +2 -1
  94. package/dist/docs-layout.d.ts +2 -1
  95. package/dist/docs-nav.d.ts +3 -10
  96. package/dist/document-viewer.d.ts +5 -4
  97. package/dist/doodle.d.ts +17 -6
  98. package/dist/doodle.js +40 -9
  99. package/dist/doodle.js.map +1 -1
  100. package/dist/drop-overlay.d.ts +2 -1
  101. package/dist/dropdown-menu.d.ts +2 -1
  102. package/dist/dropdown-menu.js +13 -74
  103. package/dist/dropdown-menu.js.map +1 -1
  104. package/dist/elephant.d.ts +2 -1
  105. package/dist/empty-state.d.ts +2 -1
  106. package/dist/engine-flow.d.ts +2 -1
  107. package/dist/error-page.d.ts +2 -1
  108. package/dist/file-upload.d.ts +16 -15
  109. package/dist/filter-bar.d.ts +84 -11
  110. package/dist/filter-bar.js +6 -2
  111. package/dist/flock.d.ts +3 -2
  112. package/dist/footnote.d.ts +2 -1
  113. package/dist/force-update-screen.d.ts +8 -7
  114. package/dist/form/server.d.ts +2 -1
  115. package/dist/form.d.ts +2 -1
  116. package/dist/gallery-page.d.ts +2 -1
  117. package/dist/genui.d.ts +2 -1
  118. package/dist/genui.js +3 -3
  119. package/dist/{geometry-DX-W-Yyf.d.ts → geometry-DZ4Q3hDQ.d.ts} +2 -1
  120. package/dist/glossary-term.d.ts +2 -1
  121. package/dist/glossary.d.ts +2 -1
  122. package/dist/glow-card.d.ts +2 -1
  123. package/dist/goal-gauge.d.ts +2 -1
  124. package/dist/grade-stamp.d.ts +23 -0
  125. package/dist/grade-stamp.js +42 -0
  126. package/dist/grade-stamp.js.map +1 -0
  127. package/dist/how-it-works-page.d.ts +2 -1
  128. package/dist/image-cropper.d.ts +5 -4
  129. package/dist/index.d.ts +3 -2
  130. package/dist/index.js +4 -4
  131. package/dist/iso.d.ts +2 -1
  132. package/dist/kanban.d.ts +2 -1
  133. package/dist/kbd.d.ts +2 -1
  134. package/dist/kind-config-editor.d.ts +152 -0
  135. package/dist/kind-config-editor.js +574 -0
  136. package/dist/kind-config-editor.js.map +1 -0
  137. package/dist/kpi-explained.d.ts +2 -1
  138. package/dist/landing-page.d.ts +2 -1
  139. package/dist/landscape.d.ts +2 -1
  140. package/dist/language-switch/server.d.ts +2 -1
  141. package/dist/language-switch.d.ts +11 -10
  142. package/dist/legal-page.d.ts +2 -1
  143. package/dist/link-card.d.ts +2 -1
  144. package/dist/list.d.ts +2 -1
  145. package/dist/loader.d.ts +2 -1
  146. package/dist/longform-page.d.ts +2 -1
  147. package/dist/maintenance-screen.d.ts +5 -4
  148. package/dist/map.d.ts +14 -13
  149. package/dist/map.js +24 -0
  150. package/dist/map.js.map +1 -1
  151. package/dist/markdown.d.ts +2 -1
  152. package/dist/marketing-layout.d.ts +5 -4
  153. package/dist/marquee.d.ts +2 -1
  154. package/dist/mascot-quote.d.ts +2 -1
  155. package/dist/mascot-state.d.ts +3 -2
  156. package/dist/mascots.d.ts +4 -3
  157. package/dist/match-dialog.d.ts +2 -1
  158. package/dist/media-capture.d.ts +5 -4
  159. package/dist/media-gallery.d.ts +2 -1
  160. package/dist/media-grid.d.ts +3 -10
  161. package/dist/meta-row.d.ts +2 -1
  162. package/dist/meter.d.ts +2 -1
  163. package/dist/motion.d.ts +3 -2
  164. package/dist/native/form.d.ts +2 -1
  165. package/dist/native/list.d.ts +2 -1
  166. package/dist/native/map.d.ts +2 -1
  167. package/dist/native/map.js +24 -0
  168. package/dist/native/map.js.map +1 -1
  169. package/dist/native/markdown.d.ts +2 -1
  170. package/dist/native/media-capture.d.ts +2 -1
  171. package/dist/native/media-picker.d.ts +2 -1
  172. package/dist/native/vertical-video.d.ts +2 -1
  173. package/dist/native/video-player.d.ts +2 -1
  174. package/dist/native.d.ts +230 -1
  175. package/dist/native.js +1465 -965
  176. package/dist/native.js.map +1 -1
  177. package/dist/nav-bar/me.d.ts +2 -1
  178. package/dist/nav-bar.d.ts +2 -1
  179. package/dist/next-actions.d.ts +2 -1
  180. package/dist/notification-preferences.d.ts +23 -22
  181. package/dist/notification-preferences.js +4 -3
  182. package/dist/notification-preferences.js.map +1 -1
  183. package/dist/number-ticker.d.ts +2 -1
  184. package/dist/opening-hours.d.ts +2 -1
  185. package/dist/page-header.d.ts +2 -1
  186. package/dist/page-hero.d.ts +2 -1
  187. package/dist/page-index.d.ts +2 -1
  188. package/dist/page.d.ts +2 -1
  189. package/dist/pagination.d.ts +2 -1
  190. package/dist/photo-grid.d.ts +2 -1
  191. package/dist/pointer-light.d.ts +2 -1
  192. package/dist/popover.d.ts +2 -1
  193. package/dist/pricing-page.d.ts +2 -1
  194. package/dist/product-page.d.ts +2 -1
  195. package/dist/profile-card.d.ts +2 -1
  196. package/dist/progress.d.ts +2 -1
  197. package/dist/promise-card.d.ts +2 -1
  198. package/dist/quota-meter.d.ts +2 -1
  199. package/dist/radio-group.d.ts +2 -1
  200. package/dist/radio-group.js +3 -3
  201. package/dist/rail-nav.d.ts +17 -16
  202. package/dist/rail-nav.js +22 -56
  203. package/dist/rail-nav.js.map +1 -1
  204. package/dist/recipes.d.ts +2 -1
  205. package/dist/retro-tv.d.ts +2 -1
  206. package/dist/router.d.ts +2 -1
  207. package/dist/scroll-stage.d.ts +2 -1
  208. package/dist/search-field.d.ts +2 -1
  209. package/dist/section-backdrop.d.ts +2 -1
  210. package/dist/separator.d.ts +2 -1
  211. package/dist/service-card.d.ts +9 -8
  212. package/dist/settings-layout.d.ts +2 -1
  213. package/dist/settings-layout.js +10 -324
  214. package/dist/settings-layout.js.map +1 -1
  215. package/dist/showcase.d.ts +2 -1
  216. package/dist/signature.d.ts +2 -1
  217. package/dist/site-cahier.d.ts +187 -0
  218. package/dist/site-cahier.js +844 -0
  219. package/dist/site-cahier.js.map +1 -0
  220. package/dist/site-footer.d.ts +2 -1
  221. package/dist/sites.d.ts +2 -1
  222. package/dist/skeleton.d.ts +2 -1
  223. package/dist/skip-link.d.ts +2 -1
  224. package/dist/slider.d.ts +2 -1
  225. package/dist/slot-picker.d.ts +86 -13
  226. package/dist/slot-picker.js +98 -16
  227. package/dist/slot-picker.js.map +1 -1
  228. package/dist/specimen-tag.d.ts +2 -1
  229. package/dist/speed-lines.d.ts +19 -0
  230. package/dist/speed-lines.js +45 -0
  231. package/dist/speed-lines.js.map +1 -0
  232. package/dist/spinner.d.ts +2 -1
  233. package/dist/split-view.d.ts +2 -1
  234. package/dist/stage-banner.d.ts +2 -1
  235. package/dist/stat.d.ts +2 -1
  236. package/dist/status-chip.d.ts +44 -0
  237. package/dist/status-chip.js +137 -0
  238. package/dist/status-chip.js.map +1 -0
  239. package/dist/status-page.d.ts +2 -1
  240. package/dist/step-progress.d.ts +2 -1
  241. package/dist/step-showcase.d.ts +2 -1
  242. package/dist/stepper.d.ts +2 -1
  243. package/dist/sticky-action.d.ts +28 -5
  244. package/dist/sticky-action.js +10 -4
  245. package/dist/sticky-action.js.map +1 -1
  246. package/dist/stuck.d.ts +2 -1
  247. package/dist/swipe-deck.d.ts +2 -1
  248. package/dist/switch.d.ts +2 -1
  249. package/dist/tabs.d.ts +2 -1
  250. package/dist/tag-input.d.ts +2 -1
  251. package/dist/tag-input.js +3 -2
  252. package/dist/tag-input.js.map +1 -1
  253. package/dist/tag-selector.d.ts +30 -4
  254. package/dist/tag-selector.js +90 -8
  255. package/dist/tag-selector.js.map +1 -1
  256. package/dist/taped-photo.d.ts +2 -1
  257. package/dist/taped-photo.js +4 -20
  258. package/dist/taped-photo.js.map +1 -1
  259. package/dist/terminal-replay.d.ts +2 -1
  260. package/dist/terminal-replay.js +1 -1
  261. package/dist/text-style/server.d.ts +2 -1
  262. package/dist/text-style.d.ts +2 -1
  263. package/dist/theme.d.ts +21 -1
  264. package/dist/theme.js +37 -1
  265. package/dist/theme.js.map +1 -1
  266. package/dist/toast.d.ts +2 -1
  267. package/dist/toc.d.ts +2 -1
  268. package/dist/tooltip.d.ts +2 -1
  269. package/dist/tree-view.d.ts +2 -1
  270. package/dist/update-prompt.d.ts +11 -10
  271. package/dist/upload-queue.d.ts +2 -1
  272. package/dist/verified-badge.d.ts +2 -1
  273. package/dist/versus-card.d.ts +40 -0
  274. package/dist/versus-card.js +40 -0
  275. package/dist/versus-card.js.map +1 -0
  276. package/dist/vertical-video.d.ts +2 -1
  277. package/dist/video-player.d.ts +20 -19
  278. package/dist/video-trimmer.d.ts +2 -1
  279. package/dist/virtual.d.ts +8 -7
  280. package/dist/wall.d.ts +79 -0
  281. package/dist/wall.js +127 -0
  282. package/dist/wall.js.map +1 -0
  283. package/dist/waveform.d.ts +2 -1
  284. package/package.json +140 -41
  285. package/registry/account-menu.json +1 -1
  286. package/registry/account-settings.json +257 -5
  287. package/registry/achievement.json +1 -1
  288. package/registry/action-bar.json +1 -1
  289. package/registry/activity-feed.json +1 -1
  290. package/registry/agenda.json +1 -1
  291. package/registry/alert.json +1 -1
  292. package/registry/anatomy-plate.json +1 -1
  293. package/registry/app-header.json +1 -1
  294. package/registry/app-shell.json +1 -1
  295. package/registry/argument-card.json +1 -1
  296. package/registry/audio-player.json +1 -1
  297. package/registry/auth-layout.json +1 -1
  298. package/registry/avatar.json +1 -1
  299. package/registry/badge.json +1 -1
  300. package/registry/bird-plate.json +1 -1
  301. package/registry/button.json +1 -1
  302. package/registry/captcha.json +1 -1
  303. package/registry/card-grid.json +1 -1
  304. package/registry/card.json +1 -1
  305. package/registry/catalogue-page.json +116 -6
  306. package/registry/changelog-page.json +1 -1
  307. package/registry/chapter.json +1 -1
  308. package/registry/chat.json +1 -1
  309. package/registry/checkbox.json +1 -1
  310. package/registry/chip-link.json +1 -1
  311. package/registry/chip-row.json +1 -1
  312. package/registry/chip.json +386 -11
  313. package/registry/choice-grid.json +1 -1
  314. package/registry/code-block.json +1 -1
  315. package/registry/combobox.json +1 -1
  316. package/registry/command.json +1 -1
  317. package/registry/comparison-table.json +1 -1
  318. package/registry/component-page.json +1 -1
  319. package/registry/confirm-button.json +1 -1
  320. package/registry/contact-page.json +1 -1
  321. package/registry/continue-prompt.json +1 -1
  322. package/registry/countdown.json +1 -1
  323. package/registry/cover-hero.json +1 -1
  324. package/registry/cta-panel.json +1 -1
  325. package/registry/dashboard-layout.json +91 -5
  326. package/registry/data-table.json +156 -5
  327. package/registry/date-picker.json +1 -1
  328. package/registry/decision-list.json +1 -1
  329. package/registry/description-list.json +1 -1
  330. package/registry/detail-layout.json +199 -5
  331. package/registry/dialog.json +1 -1
  332. package/registry/docs-article-page.json +1 -1
  333. package/registry/docs-hub-page.json +1 -1
  334. package/registry/docs-layout.json +1 -1
  335. package/registry/docs-nav.json +1 -1
  336. package/registry/document-viewer.json +1 -1
  337. package/registry/doodle.json +115 -22
  338. package/registry/drop-overlay.json +1 -1
  339. package/registry/dropdown-menu.json +1 -1
  340. package/registry/elephant.json +2 -2
  341. package/registry/empty-state.json +1 -1
  342. package/registry/engine-flow.json +1 -1
  343. package/registry/error-page.json +1 -1
  344. package/registry/examples/account-settings/appearance.d.ts +4 -0
  345. package/registry/examples/account-settings/appearance.js +40 -0
  346. package/registry/examples/account-settings/appearance.tsx +30 -0
  347. package/registry/examples/catalogue-page/clients.d.ts +4 -0
  348. package/registry/examples/catalogue-page/clients.js +49 -0
  349. package/registry/examples/catalogue-page/clients.tsx +61 -0
  350. package/registry/examples/chip/marker-picker.d.ts +4 -0
  351. package/registry/examples/chip/marker-picker.js +17 -0
  352. package/registry/examples/chip/marker-picker.tsx +17 -0
  353. package/registry/examples/chip/native/marker-picker.d.ts +4 -0
  354. package/registry/examples/chip/native/marker-picker.dark.png +0 -0
  355. package/registry/examples/chip/native/marker-picker.js +18 -0
  356. package/registry/examples/chip/native/marker-picker.light.png +0 -0
  357. package/registry/examples/chip/native/marker-picker.tsx +16 -0
  358. package/registry/examples/chip/native/tags.d.ts +4 -0
  359. package/registry/examples/chip/native/tags.dark.png +0 -0
  360. package/registry/examples/chip/native/tags.js +22 -0
  361. package/registry/examples/chip/native/tags.light.png +0 -0
  362. package/registry/examples/chip/native/tags.tsx +20 -0
  363. package/registry/examples/chip/tags.d.ts +4 -0
  364. package/registry/examples/chip/tags.js +26 -0
  365. package/registry/examples/chip/tags.tsx +23 -0
  366. package/registry/examples/dashboard-layout/today.d.ts +4 -0
  367. package/registry/examples/dashboard-layout/today.js +54 -0
  368. package/registry/examples/dashboard-layout/today.tsx +63 -0
  369. package/registry/examples/data-table/bulk.d.ts +4 -0
  370. package/registry/examples/data-table/bulk.js +45 -0
  371. package/registry/examples/data-table/bulk.tsx +34 -0
  372. package/registry/examples/detail-layout/client.d.ts +4 -0
  373. package/registry/examples/detail-layout/client.js +40 -0
  374. package/registry/examples/detail-layout/client.tsx +39 -0
  375. package/registry/examples/detail-layout/new-invoice.d.ts +4 -0
  376. package/registry/examples/detail-layout/new-invoice.js +44 -0
  377. package/registry/examples/detail-layout/new-invoice.tsx +34 -0
  378. package/registry/examples/doodle/bird-sketch.d.ts +4 -0
  379. package/registry/examples/doodle/bird-sketch.js +11 -0
  380. package/registry/examples/doodle/bird-sketch.tsx +12 -0
  381. package/registry/examples/doodle/margin-marks.d.ts +4 -0
  382. package/registry/examples/doodle/margin-marks.js +27 -0
  383. package/registry/examples/doodle/margin-marks.tsx +19 -0
  384. package/registry/examples/filter-bar/views.d.ts +4 -0
  385. package/registry/examples/filter-bar/views.js +39 -0
  386. package/registry/examples/filter-bar/views.tsx +30 -0
  387. package/registry/examples/grade-stamp/coverage.d.ts +4 -0
  388. package/registry/examples/grade-stamp/coverage.js +12 -0
  389. package/registry/examples/grade-stamp/coverage.tsx +8 -0
  390. package/registry/examples/grade-stamp/lighthouse.d.ts +4 -0
  391. package/registry/examples/grade-stamp/lighthouse.js +12 -0
  392. package/registry/examples/grade-stamp/lighthouse.tsx +14 -0
  393. package/registry/examples/kind-config-editor/derived.d.ts +4 -0
  394. package/registry/examples/kind-config-editor/derived.js +26 -0
  395. package/registry/examples/kind-config-editor/derived.tsx +16 -0
  396. package/registry/examples/kind-config-editor/native/status-set.d.ts +4 -0
  397. package/registry/examples/kind-config-editor/native/status-set.dark.png +0 -0
  398. package/registry/examples/kind-config-editor/native/status-set.js +22 -0
  399. package/registry/examples/kind-config-editor/native/status-set.light.png +0 -0
  400. package/registry/examples/kind-config-editor/native/status-set.tsx +19 -0
  401. package/registry/examples/kind-config-editor/native/tag-set.d.ts +4 -0
  402. package/registry/examples/kind-config-editor/native/tag-set.dark.png +0 -0
  403. package/registry/examples/kind-config-editor/native/tag-set.js +20 -0
  404. package/registry/examples/kind-config-editor/native/tag-set.light.png +0 -0
  405. package/registry/examples/kind-config-editor/native/tag-set.tsx +18 -0
  406. package/registry/examples/kind-config-editor/status-set.d.ts +4 -0
  407. package/registry/examples/kind-config-editor/status-set.js +29 -0
  408. package/registry/examples/kind-config-editor/status-set.tsx +25 -0
  409. package/registry/examples/kind-config-editor/tag-set.d.ts +4 -0
  410. package/registry/examples/kind-config-editor/tag-set.js +20 -0
  411. package/registry/examples/kind-config-editor/tag-set.tsx +18 -0
  412. package/registry/examples/site-cahier/java-releases.d.ts +4 -0
  413. package/registry/examples/site-cahier/java-releases.js +33 -0
  414. package/registry/examples/site-cahier/java-releases.tsx +32 -0
  415. package/registry/examples/site-cahier/motion-lab.d.ts +4 -0
  416. package/registry/examples/site-cahier/motion-lab.js +32 -0
  417. package/registry/examples/site-cahier/motion-lab.tsx +29 -0
  418. package/registry/examples/site-cahier/ts-changelog.d.ts +4 -0
  419. package/registry/examples/site-cahier/ts-changelog.js +24 -0
  420. package/registry/examples/site-cahier/ts-changelog.tsx +20 -0
  421. package/registry/examples/site-cahier/ts-doc.d.ts +4 -0
  422. package/registry/examples/site-cahier/ts-doc.js +38 -0
  423. package/registry/examples/site-cahier/ts-doc.tsx +27 -0
  424. package/registry/examples/site-cahier/ui-home.d.ts +4 -0
  425. package/registry/examples/site-cahier/ui-home.js +46 -0
  426. package/registry/examples/site-cahier/ui-home.tsx +40 -0
  427. package/registry/examples/slot-picker/weeks.d.ts +4 -0
  428. package/registry/examples/slot-picker/weeks.js +45 -0
  429. package/registry/examples/slot-picker/weeks.tsx +28 -0
  430. package/registry/examples/speed-lines/hero.d.ts +4 -0
  431. package/registry/examples/speed-lines/hero.js +11 -0
  432. package/registry/examples/speed-lines/hero.tsx +12 -0
  433. package/registry/examples/speed-lines/streaks.d.ts +4 -0
  434. package/registry/examples/speed-lines/streaks.js +11 -0
  435. package/registry/examples/speed-lines/streaks.tsx +12 -0
  436. package/registry/examples/status-chip/default.d.ts +4 -0
  437. package/registry/examples/status-chip/default.js +35 -0
  438. package/registry/examples/status-chip/default.tsx +32 -0
  439. package/registry/examples/status-chip/native/default.d.ts +4 -0
  440. package/registry/examples/status-chip/native/default.dark.png +0 -0
  441. package/registry/examples/status-chip/native/default.js +26 -0
  442. package/registry/examples/status-chip/native/default.light.png +0 -0
  443. package/registry/examples/status-chip/native/default.tsx +20 -0
  444. package/registry/examples/tag-selector/creatable.d.ts +4 -0
  445. package/registry/examples/tag-selector/creatable.js +41 -0
  446. package/registry/examples/tag-selector/creatable.tsx +29 -0
  447. package/registry/examples/tag-selector/native/tags.d.ts +4 -0
  448. package/registry/examples/tag-selector/native/tags.dark.png +0 -0
  449. package/registry/examples/tag-selector/native/tags.js +19 -0
  450. package/registry/examples/tag-selector/native/tags.light.png +0 -0
  451. package/registry/examples/tag-selector/native/tags.tsx +19 -0
  452. package/registry/examples/versus-card/alternatives.d.ts +4 -0
  453. package/registry/examples/versus-card/alternatives.js +20 -0
  454. package/registry/examples/versus-card/alternatives.tsx +14 -0
  455. package/registry/examples/versus-card/releases.d.ts +4 -0
  456. package/registry/examples/versus-card/releases.js +35 -0
  457. package/registry/examples/versus-card/releases.tsx +29 -0
  458. package/registry/examples/wall/brick.d.ts +4 -0
  459. package/registry/examples/wall/brick.js +14 -0
  460. package/registry/examples/wall/brick.tsx +8 -0
  461. package/registry/examples/wall/composition-fr.d.ts +4 -0
  462. package/registry/examples/wall/composition-fr.js +37 -0
  463. package/registry/examples/wall/composition-fr.tsx +18 -0
  464. package/registry/examples/wall/composition.d.ts +4 -0
  465. package/registry/examples/wall/composition.js +38 -0
  466. package/registry/examples/wall/composition.tsx +18 -0
  467. package/registry/examples/wall/pinned-note.d.ts +4 -0
  468. package/registry/examples/wall/pinned-note.js +15 -0
  469. package/registry/examples/wall/pinned-note.tsx +9 -0
  470. package/registry/examples/wall/plaster.d.ts +4 -0
  471. package/registry/examples/wall/plaster.js +14 -0
  472. package/registry/examples/wall/plaster.tsx +8 -0
  473. package/registry/examples/wall/polaroid.d.ts +4 -0
  474. package/registry/examples/wall/polaroid.js +19 -0
  475. package/registry/examples/wall/polaroid.tsx +10 -0
  476. package/registry/examples/wall/ridge.d.ts +4 -0
  477. package/registry/examples/wall/ridge.js +14 -0
  478. package/registry/examples/wall/ridge.tsx +8 -0
  479. package/registry/examples/wall/shop-sign.d.ts +4 -0
  480. package/registry/examples/wall/shop-sign.js +16 -0
  481. package/registry/examples/wall/shop-sign.tsx +10 -0
  482. package/registry/examples/wall/zellige.d.ts +4 -0
  483. package/registry/examples/wall/zellige.js +14 -0
  484. package/registry/examples/wall/zellige.tsx +8 -0
  485. package/registry/field.json +1 -1
  486. package/registry/file-upload.json +1 -1
  487. package/registry/filter-bar.json +208 -8
  488. package/registry/flock.json +1 -1
  489. package/registry/footnote.json +1 -1
  490. package/registry/force-update-screen.json +1 -1
  491. package/registry/form.json +1 -1
  492. package/registry/gallery-page.json +1 -1
  493. package/registry/genui.json +1 -1
  494. package/registry/glossary-term.json +1 -1
  495. package/registry/glossary.json +1 -1
  496. package/registry/glow-card.json +1 -1
  497. package/registry/goal-gauge.json +1 -1
  498. package/registry/grade-stamp.json +227 -0
  499. package/registry/how-it-works-page.json +1 -1
  500. package/registry/image-cropper.json +1 -1
  501. package/registry/index.json +355 -30
  502. package/registry/iso.json +1 -1
  503. package/registry/kanban.json +1 -1
  504. package/registry/kbd.json +1 -1
  505. package/registry/kind-config-editor.json +565 -0
  506. package/registry/kpi-explained.json +1 -1
  507. package/registry/landing-page.json +1 -1
  508. package/registry/landscape.json +1 -1
  509. package/registry/language-switch.json +1 -1
  510. package/registry/legal-page.json +1 -1
  511. package/registry/link-card.json +1 -1
  512. package/registry/list.json +1 -1
  513. package/registry/loader.json +1 -1
  514. package/registry/longform-page.json +1 -1
  515. package/registry/maintenance-screen.json +1 -1
  516. package/registry/map.json +2 -2
  517. package/registry/markdown.json +1 -1
  518. package/registry/marketing-layout.json +1 -1
  519. package/registry/marquee.json +1 -1
  520. package/registry/mascot-quote.json +1 -1
  521. package/registry/mascot-state.json +1 -1
  522. package/registry/mascots.json +1 -1
  523. package/registry/match-dialog.json +1 -1
  524. package/registry/media-capture.json +1 -1
  525. package/registry/media-gallery.json +1 -1
  526. package/registry/media-grid.json +1 -1
  527. package/registry/meta-row.json +1 -1
  528. package/registry/meter.json +1 -1
  529. package/registry/nav-bar.json +2 -2
  530. package/registry/next-actions.json +1 -1
  531. package/registry/notification-preferences.json +1 -1
  532. package/registry/number-ticker.json +1 -1
  533. package/registry/opening-hours.json +1 -1
  534. package/registry/page-header.json +1 -1
  535. package/registry/page-hero.json +1 -1
  536. package/registry/page-index.json +1 -1
  537. package/registry/page.json +1 -1
  538. package/registry/pagination.json +1 -1
  539. package/registry/photo-grid.json +1 -1
  540. package/registry/pointer-light.json +1 -1
  541. package/registry/popover.json +1 -1
  542. package/registry/pricing-page.json +1 -1
  543. package/registry/product-page.json +1 -1
  544. package/registry/profile-card.json +1 -1
  545. package/registry/progress.json +1 -1
  546. package/registry/promise-card.json +1 -1
  547. package/registry/quota-meter.json +1 -1
  548. package/registry/radio-group.json +1 -1
  549. package/registry/rail-nav.json +2 -2
  550. package/registry/recipes.json +1 -1
  551. package/registry/retro-tv.json +1 -1
  552. package/registry/router.json +1 -1
  553. package/registry/scroll-stage.json +1 -1
  554. package/registry/search-field.json +1 -1
  555. package/registry/section-backdrop.json +1 -1
  556. package/registry/separator.json +1 -1
  557. package/registry/service-card.json +1 -1
  558. package/registry/settings-layout.json +1 -1
  559. package/registry/showcase.json +1 -1
  560. package/registry/signature.json +1 -1
  561. package/registry/site-cahier.json +548 -0
  562. package/registry/site-footer.json +2 -2
  563. package/registry/sites.json +1 -1
  564. package/registry/skeleton.json +1 -1
  565. package/registry/skip-link.json +1 -1
  566. package/registry/slider.json +1 -1
  567. package/registry/slot-picker.json +156 -10
  568. package/registry/slot.json +1 -1
  569. package/registry/specimen-tag.json +1 -1
  570. package/registry/speed-lines.json +174 -0
  571. package/registry/spinner.json +1 -1
  572. package/registry/split-view.json +1 -1
  573. package/registry/stage-banner.json +1 -1
  574. package/registry/stat.json +1 -1
  575. package/registry/status-chip.json +350 -0
  576. package/registry/status-page.json +1 -1
  577. package/registry/step-progress.json +1 -1
  578. package/registry/step-showcase.json +1 -1
  579. package/registry/stepper.json +1 -1
  580. package/registry/sticky-action.json +38 -8
  581. package/registry/stuck.json +1 -1
  582. package/registry/swipe-deck.json +1 -1
  583. package/registry/switch.json +1 -1
  584. package/registry/tabs.json +1 -1
  585. package/registry/tag-input.json +1 -1
  586. package/registry/tag-selector.json +189 -12
  587. package/registry/taped-photo.json +1 -1
  588. package/registry/terminal-replay.json +1 -1
  589. package/registry/text-style.json +1 -1
  590. package/registry/theme.json +3 -3
  591. package/registry/toast.json +1 -1
  592. package/registry/toc.json +1 -1
  593. package/registry/tooltip.json +1 -1
  594. package/registry/tree-view.json +1 -1
  595. package/registry/update-prompt.json +1 -1
  596. package/registry/upload-queue.json +1 -1
  597. package/registry/verified-badge.json +1 -1
  598. package/registry/versus-card.json +194 -0
  599. package/registry/vertical-video.json +1 -1
  600. package/registry/video-player.json +1 -1
  601. package/registry/video-trimmer.json +1 -1
  602. package/registry/virtual.json +2 -2
  603. package/registry/wall.json +511 -0
  604. package/registry/waveform.json +1 -1
  605. package/dist/chunk-7U5TXA5Q.js.map +0 -1
  606. package/dist/chunk-OIMXKRXF.js +0 -179
  607. package/dist/chunk-OIMXKRXF.js.map +0 -1
  608. package/dist/chunk-QWKCNSPF.js.map +0 -1
  609. package/dist/chunk-VIPSZXO4.js.map +0 -1
  610. /package/dist/{chunk-AEP3K4YD.js.map → chunk-4GQH27IT.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/catalogue-page/catalogue-page.tsx"],"sourcesContent":["// Server-safe. A catalogue or an index (blocks.css `.kz-tpl-catalogue`): the hero, then the filters in a sticky column\n// beside the results — folded into a disclosure above them on a phone — the count of what matches and the sort, and\n// the results (a CardGrid of LinkCards, a list). The filters live in the address: a link per choice, no client state.\nimport { Page } from \"@krizaka/ui/page\";\nimport type { LinkComponent } from \"@krizaka/ui/page-hero\";\nimport { PageHero } from \"@krizaka/ui/page-hero\";\nimport type * as React from \"react\";\n\nexport type CataloguePageProps = Omit<React.HTMLAttributes<HTMLElement>, \"title\"> & {\n /** The way back. */\n back?: { href: string; label: string };\n /** A mono line above the title. */\n eyebrow?: React.ReactNode;\n /** The page's `h1`. */\n title: React.ReactNode;\n /** One sentence under it. */\n lead?: React.ReactNode;\n /** In the hero: a search field. */\n search?: React.ReactNode;\n /** The filters (groups of ChipLinks, a FilterBar): sticky on a desktop. */\n filters: React.ReactNode;\n /** On a phone, the words that open the filters (`Filters`). */\n filtersLabel: string;\n /** What matches, in words (`24 components`). */\n count?: React.ReactNode;\n /** On the right of the count: the sort, a view switch. */\n toolbar?: React.ReactNode;\n /** The results: a CardGrid, a list, an empty state. */\n children: React.ReactNode;\n /** The app's link component (Next's `Link`). */\n linkAs?: LinkComponent;\n /**\n * From which window width the filters stay in their column beside the results. `default`: 900 px and above. `wide`:\n * 1280 px and above — a wide table (DataTable) needs the room; under it the filters are a bar above the results.\n */\n railFrom?: \"default\" | \"wide\";\n};\n\n/** A catalogue: hero, sticky filters beside the results (folded on a phone), the count, the results. */\nexport function CataloguePage({ back, eyebrow, title, lead, search, filters, filtersLabel, count, toolbar, linkAs, railFrom = \"default\", children, ...props }: CataloguePageProps) {\n return (\n <div {...props}>\n <PageHero back={back} linkAs={linkAs} eyebrow={eyebrow} title={title} lead={lead} backdrop=\"plain\">\n {search}\n </PageHero>\n <Page className=\"kz-tpl-catalogue-frame\">\n <div className=\"kz-tpl-catalogue\" data-rail={railFrom}>\n <details className=\"kz-tpl-catalogue-filters\" open>\n <summary>{filtersLabel}</summary>\n <div>{filters}</div>\n </details>\n <div className=\"min-w-0\">\n {(count || toolbar) && (\n <div className=\"kz-tpl-catalogue-head\">\n {count && (\n <p className=\"kz-tpl-count\" aria-live=\"polite\">\n {count}\n </p>\n )}\n {toolbar}\n </div>\n )}\n {children}\n </div>\n </div>\n </Page>\n </div>\n );\n}\n"],"mappings":";AAGA,SAAS,YAAY;AAErB,SAAS,gBAAgB;AAqCnB,cAKI,YALJ;AAHC,SAAS,cAAc,EAAE,MAAM,SAAS,OAAO,MAAM,QAAQ,SAAS,cAAc,OAAO,SAAS,QAAQ,WAAW,WAAW,UAAU,GAAG,MAAM,GAAuB;AACjL,SACE,qBAAC,SAAK,GAAG,OACP;AAAA,wBAAC,YAAS,MAAY,QAAgB,SAAkB,OAAc,MAAY,UAAS,SACxF,kBACH;AAAA,IACA,oBAAC,QAAK,WAAU,0BACd,+BAAC,SAAI,WAAU,oBAAmB,aAAW,UAC3C;AAAA,2BAAC,aAAQ,WAAU,4BAA2B,MAAI,MAChD;AAAA,4BAAC,aAAS,wBAAa;AAAA,QACvB,oBAAC,SAAK,mBAAQ;AAAA,SAChB;AAAA,MACA,qBAAC,SAAI,WAAU,WACX;AAAA,kBAAS,YACT,qBAAC,SAAI,WAAU,yBACZ;AAAA,mBACC,oBAAC,OAAE,WAAU,gBAAe,aAAU,UACnC,iBACH;AAAA,UAED;AAAA,WACH;AAAA,QAED;AAAA,SACH;AAAA,OACF,GACF;AAAA,KACF;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../src/catalogue-page/catalogue-page.tsx","../src/meter/meter.tsx","../src/meter/model.ts"],"sourcesContent":["// Server-safe. A catalogue or an index (blocks.css `.kz-tpl-catalogue`): the hero, then the filters in a sticky column\n// beside the results — folded into a disclosure above them on a phone — the count of what matches and the sort, and\n// the results (a CardGrid of LinkCards, a list). The filters live in the address: a link per choice, no client state.\nimport { Page } from \"@krizaka/ui/page\";\nimport type { LinkComponent } from \"@krizaka/ui/page-hero\";\nimport { PageHero } from \"@krizaka/ui/page-hero\";\nimport type * as React from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nimport { Meter, type MeterProps } from \"../meter\";\n\nconst plan = tv({\n slots: {\n root: \"mb-4 flex flex-wrap items-center gap-x-8 gap-y-3 rounded-xl border border-border-default bg-surface-1 p-4\",\n figures: \"m-0 flex min-w-0 flex-wrap gap-x-8 gap-y-2\",\n figure: \"flex min-w-0 flex-col\",\n value: \"font-display text-2xl font-extrabold tabular-nums text-fg\",\n label: \"text-xs text-fg-secondary\",\n meter: \"min-w-40 flex-1\",\n },\n});\n\nexport type PlanFigure = { id: string; label: string; value: React.ReactNode };\n\nexport type PlanStripProps = Omit<React.ComponentProps<\"section\">, \"children\"> & {\n /** Names the strip (`Your plan`). */\n label: string;\n /** Two or three figures (`12 clients`, `3 invoices to send`). */\n figures: readonly PlanFigure[];\n /** The measure of the plan beside them (`Meter`): clients used of the plan, storage. */\n meter?: MeterProps;\n};\n\n/** The plan strip of a catalogue: two or three figures and a `Meter` — where the account stands, at a glance. */\nexport function PlanStrip({ label, figures, meter, className, ...props }: PlanStripProps) {\n const p = plan();\n return (\n <section aria-label={label} className={p.root({ className })} {...props}>\n <dl className={p.figures()}>\n {figures.slice(0, 3).map((f) => (\n <div key={f.id} className={p.figure()}>\n <dd className={p.value()}>{f.value}</dd>\n <dt className={p.label()}>{f.label}</dt>\n </div>\n ))}\n </dl>\n {meter && <Meter {...meter} className={p.meter({ className: meter.className })} />}\n </section>\n );\n}\n\nexport type CataloguePageProps = Omit<React.HTMLAttributes<HTMLElement>, \"title\"> & {\n /** The way back. */\n back?: { href: string; label: string };\n /** A mono line above the title. */\n eyebrow?: React.ReactNode;\n /** The page's `h1`. */\n title: React.ReactNode;\n /** One sentence under it. */\n lead?: React.ReactNode;\n /** In the hero: a search field. */\n search?: React.ReactNode;\n /** The filters (groups of ChipLinks, a FilterBar): sticky on a desktop. */\n filters: React.ReactNode;\n /** On a phone, the words that open the filters (`Filters`). */\n filtersLabel: string;\n /** Above the results: the plan strip (`PlanStrip`) — where the account stands. */\n plan?: React.ReactNode;\n /** Above the count: the binder dividers (tabs of the shelves: all · active · archived). */\n dividers?: React.ReactNode;\n /** After the results (the bar docks itself at the bottom edge): the selection bar (`SelectionBar`, `DataTable bulkActions`). */\n selection?: React.ReactNode;\n /** What matches, in words (`24 components`). */\n count?: React.ReactNode;\n /** On the right of the count: the sort, a view switch. */\n toolbar?: React.ReactNode;\n /** The results: a CardGrid, a list, an empty state. */\n children: React.ReactNode;\n /** The app's link component (Next's `Link`). */\n linkAs?: LinkComponent;\n /**\n * From which window width the filters stay in their column beside the results. `default`: 900 px and above. `wide`:\n * 1280 px and above — a wide table (DataTable) needs the room; under it the filters are a bar above the results.\n */\n railFrom?: \"default\" | \"wide\";\n};\n\n/** A catalogue: hero, sticky filters beside the results (folded on a phone), the count, the results. */\nexport function CataloguePage({ back, eyebrow, title, lead, search, filters, filtersLabel, plan, dividers, selection, count, toolbar, linkAs, railFrom = \"default\", children, ...props }: CataloguePageProps) {\n return (\n <div {...props}>\n <PageHero back={back} linkAs={linkAs} eyebrow={eyebrow} title={title} lead={lead} backdrop=\"plain\">\n {search}\n </PageHero>\n <Page className=\"kz-tpl-catalogue-frame\">\n <div className=\"kz-tpl-catalogue\" data-rail={railFrom}>\n <details className=\"kz-tpl-catalogue-filters\" open>\n <summary>{filtersLabel}</summary>\n <div>{filters}</div>\n </details>\n <div className=\"min-w-0\">\n {plan}\n {dividers}\n {(count || toolbar) && (\n <div className=\"kz-tpl-catalogue-head\">\n {count && (\n <p className=\"kz-tpl-count\" aria-live=\"polite\">\n {count}\n </p>\n )}\n {toolbar}\n </div>\n )}\n {children}\n {selection && <div className=\"mt-3\">{selection}</div>}\n </div>\n </div>\n </Page>\n </div>\n );\n}\n","// Server-safe. A measure within a known range — a quota, a balance, a share — as opposed to the progress of a task.\n// `role=\"meter\"`, its value in words; thresholds turn it to warning then danger (or the reverse when high is good);\n// split into parts (90 % to the creator, 10 % to the platform) it becomes a stacked bar or ring with its legend: the\n// text version of what it draws.\nimport type * as React from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nimport { type MeterLevel, meterModel, type MeterPart, type MeterThresholds } from \"./model\";\n\nexport type { MeterPart };\n\nexport const meter = tv({\n slots: {\n root: \"flex w-full flex-col gap-1.5\",\n header: \"flex items-baseline gap-2 text-xs\",\n caption: \"min-w-0 flex-1 truncate font-medium text-fg\",\n figure: \"shrink-0 tabular-nums text-fg-secondary\",\n track: \"relative flex h-2 w-full gap-0.5 overflow-hidden rounded-sm bg-surface-3\",\n fill: \"h-full rounded-sm transition-[width] duration-700 motion-reduce:transition-none\",\n legend: \"mt-1 flex flex-wrap gap-x-4 gap-y-1 text-xs text-fg-secondary\",\n swatch: \"inline-block h-2 w-2 shrink-0 rounded-full\",\n ring: \"relative inline-flex shrink-0 items-center justify-center\",\n center: \"absolute inset-0 flex flex-col items-center justify-center text-center\",\n },\n variants: {\n size: { sm: { track: \"h-1.5\", ring: \"h-14 w-14\" }, md: { ring: \"h-24 w-24\" }, lg: { track: \"h-3\", ring: \"h-36 w-36\" } },\n },\n defaultVariants: { size: \"md\" },\n});\n\n/** The colour of a fill: by tone (thresholds) or by part (the accent, a neutral, accent-2, a lighter neutral). */\nconst BG: Record<MeterLevel, string> = { ok: \"bg-accent\", success: \"bg-success\", warning: \"bg-warning\", danger: \"bg-danger\" };\nconst STROKE: Record<MeterLevel, string> = { ok: \"stroke-accent\", success: \"stroke-success\", warning: \"stroke-warning\", danger: \"stroke-danger\" };\nconst PART_BG = [\"bg-accent\", \"bg-fg-secondary\", \"bg-accent-2\", \"bg-border-strong\"];\nconst PART_STROKE = [\"stroke-accent\", \"stroke-fg-secondary\", \"stroke-accent-2\", \"stroke-border-strong\"];\n\nexport type MeterProps = Omit<React.ComponentProps<\"div\">, \"children\"> & {\n /** The accessible name (“Storage”, “Split of a tip”) — passed translated; shown with `showLabel`. */\n label: string;\n /** The value, between `min` and `max` (ignored with `parts`). */\n value?: number;\n /**\n * The bottom of the range.\n * @default 0\n */\n min?: number;\n /**\n * The top of the range.\n * @default 100\n */\n max?: number;\n /** The value in words (“42 GB of 50 GB”) — passed translated; default: the percentage. */\n valueText?: string;\n /**\n * Ratios (0–1) where the tone changes: past `high` it is in danger, past `low` in warning — or the reverse with\n * `optimum=\"high\"` (a balance: the lower, the worse). Without thresholds the fill is the brand accent.\n */\n thresholds?: MeterThresholds;\n /**\n * Which end is good.\n * @default \"low\"\n */\n optimum?: \"low\" | \"high\";\n /** Split into parts that add up to `max`: a stacked bar or ring, with its legend. */\n parts?: readonly MeterPart[];\n /**\n * bar · ring.\n * @default \"bar\"\n */\n variant?: \"bar\" | \"ring\";\n /**\n * sm · md · lg: the bar's thickness, the ring's diameter.\n * @default \"md\"\n */\n size?: \"sm\" | \"md\" | \"lg\";\n /** Shows the label and the value above the bar. */\n showLabel?: boolean;\n /** A ring's centre: the value, a word. */\n children?: React.ReactNode;\n};\n\n/** A measure within a range — a quota, a balance, a share — toned by thresholds or split into parts. */\nexport function Meter({\n label,\n value = 0,\n min = 0,\n max = 100,\n valueText,\n thresholds,\n optimum = \"low\",\n parts,\n variant = \"bar\",\n size = \"md\",\n showLabel,\n className,\n children,\n ...props\n}: MeterProps) {\n const s = meter({ size });\n const { ratio, level, words, shares, arcs } = meterModel({ value, min, max, valueText, thresholds, optimum, parts });\n const a11y = parts\n ? { role: \"group\" as const, \"aria-label\": label }\n : { role: \"meter\" as const, \"aria-label\": label, \"aria-valuemin\": min, \"aria-valuemax\": max, \"aria-valuenow\": Math.min(max, Math.max(min, value)), \"aria-valuetext\": words };\n const legend = parts && (\n <ul className={s.legend()}>\n {shares.map((p) => (\n <li key={p.i} className=\"flex items-center gap-1.5\">\n <span aria-hidden className={[s.swatch(), PART_BG[p.i % PART_BG.length]].join(\" \")} />\n <span className=\"text-fg\">{p.label}</span>\n <span className=\"tabular-nums\">{p.words}</span>\n </li>\n ))}\n </ul>\n );\n\n if (variant === \"ring\") {\n const r = 44;\n return (\n <div {...a11y} data-level={parts ? undefined : level} className={[\"inline-flex flex-col items-center gap-2\", className].filter(Boolean).join(\" \")} {...props}>\n <div className={s.ring()}>\n <svg viewBox=\"0 0 100 100\" className=\"h-full w-full -rotate-90\" aria-hidden>\n <circle cx=\"50\" cy=\"50\" r={r} fill=\"none\" strokeWidth=\"9\" className=\"stroke-border-default\" />\n {arcs.map((arc, i) => {\n const length = Math.max(0, arc.len * 100 - (parts ? 1 : 0));\n return (\n <circle\n key={i}\n cx=\"50\"\n cy=\"50\"\n r={r}\n fill=\"none\"\n strokeWidth=\"9\"\n pathLength={100}\n strokeDasharray={`${length} ${100 - length}`}\n strokeDashoffset={-arc.start * 100}\n className={[arc.part === undefined ? STROKE[level] : PART_STROKE[arc.part % PART_STROKE.length], \"transition-[stroke-dasharray] duration-700 motion-reduce:transition-none\"].join(\" \")}\n />\n );\n })}\n </svg>\n {children !== undefined && <div className={s.center()}>{children}</div>}\n </div>\n {legend}\n </div>\n );\n }\n\n return (\n <div {...a11y} data-level={parts ? undefined : level} className={s.root({ className })} {...props}>\n {showLabel && (\n <div aria-hidden className={s.header()}>\n <span className={s.caption()}>{label}</span>\n {!parts && <span className={s.figure()}>{words}</span>}\n </div>\n )}\n <div aria-hidden className={s.track()}>\n {parts ? (\n shares.map((p) => <span key={p.i} className={[s.fill(), PART_BG[p.i % PART_BG.length]].join(\" \")} style={{ width: `${p.ratio * 100}%` }} />)\n ) : (\n <span className={[s.fill(), BG[level]].join(\" \")} style={{ width: `${ratio * 100}%` }} />\n )}\n </div>\n {legend}\n </div>\n );\n}\n\nexport interface MeterValueProps {\n /** The figure. */\n value: React.ReactNode;\n /** A word under it. */\n caption?: React.ReactNode;\n}\n\n/** For the ring's centre when it shows a figure and a word. */\nexport function MeterValue({ value, caption }: MeterValueProps) {\n return (\n <>\n <span className=\"font-display text-lg font-semibold text-fg tabular-nums\">{value}</span>\n {caption && <span className=\"text-[10px] text-fg-secondary\">{caption}</span>}\n </>\n );\n}\n","// Headless: the arithmetic of a Meter, read by the web (`meter.tsx`) and the native (`native/meter.tsx`) alike.\n\nexport interface MeterPart {\n /** Its name (“To the creator”) — passed translated. */\n label: string;\n /** Its value, in the meter's unit. */\n value: number;\n /** Its value in words (“€9.00”), in the legend and for assistive technology; default: its percentage. */\n valueText?: string;\n}\n\n/** Which end of the range is good: `low` (a quota) or `high` (a score, a balance). */\nexport const MeterOptimum = { Low: \"low\", High: \"high\" } as const;\nexport type MeterOptimum = (typeof MeterOptimum)[keyof typeof MeterOptimum];\n\n/** The tone of a fill: the accent without thresholds, otherwise good, warning or bad. */\nexport const MeterLevel = { Ok: \"ok\", Success: \"success\", Warning: \"warning\", Danger: \"danger\" } as const;\nexport type MeterLevel = (typeof MeterLevel)[keyof typeof MeterLevel];\n\nexport interface MeterThresholds {\n readonly low: number;\n readonly high: number;\n}\n\nexport interface MeterInput {\n value?: number;\n min?: number;\n max?: number;\n valueText?: string;\n thresholds?: MeterThresholds;\n optimum?: MeterOptimum;\n parts?: readonly MeterPart[];\n}\n\nexport interface MeterShare extends MeterPart {\n i: number;\n /** Its share of the range, 0–1. */\n ratio: number;\n /** Its value in words. */\n words: string;\n}\n\n/** One arc of a ring, as fractions of the circle: the part it draws (none for the whole value), its length, where it starts. */\nexport interface MeterArc {\n part: number | undefined;\n len: number;\n start: number;\n}\n\nexport interface MeterModel {\n ratio: number;\n level: MeterLevel;\n words: string;\n shares: MeterShare[];\n arcs: MeterArc[];\n}\n\nconst clamp01 = (n: number) => Math.min(1, Math.max(0, n));\nconst percent = (ratio: number) => `${Math.round(ratio * 100)} %`;\n\nfunction levelOf(ratio: number, thresholds: MeterThresholds | undefined, optimum: MeterOptimum): MeterLevel {\n if (!thresholds) return MeterLevel.Ok;\n const good = optimum === MeterOptimum.Low ? MeterLevel.Success : MeterLevel.Danger;\n const bad = optimum === MeterOptimum.Low ? MeterLevel.Danger : MeterLevel.Success;\n if (ratio >= thresholds.high) return bad;\n return ratio >= thresholds.low ? MeterLevel.Warning : good;\n}\n\n/** The ratio, tone, words, parts and ring arcs of a meter. */\nexport function meterModel({ value = 0, min = 0, max = 100, valueText, thresholds, optimum = MeterOptimum.Low, parts }: MeterInput): MeterModel {\n const span = max - min || 1;\n const ratio = clamp01((value - min) / span);\n const shares = (parts ?? []).map((p, i) => ({ ...p, i, ratio: clamp01(p.value / span), words: p.valueText ?? percent(p.value / span) }));\n let start = 0;\n const arcs = parts\n ? shares.map((p) => {\n const arc = { part: p.i, len: p.ratio, start };\n start += p.ratio;\n return arc;\n })\n : [{ part: undefined, len: ratio, start: 0 }];\n return { ratio, level: levelOf(ratio, thresholds, optimum), words: valueText ?? percent(ratio), shares, arcs };\n}\n"],"mappings":";AAGA,SAAS,YAAY;AAErB,SAAS,gBAAgB;AAEzB,SAAS,MAAAA,WAAU;;;ACFnB,SAAS,UAAU;;;ACOZ,IAAM,eAAe,EAAE,KAAK,OAAO,MAAM,OAAO;AAIhD,IAAM,aAAa,EAAE,IAAI,MAAM,SAAS,WAAW,SAAS,WAAW,QAAQ,SAAS;AAyC/F,IAAM,UAAU,C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QAED;AAAA,QACA,aAAa,gBAAAA,KAAC,SAAI,WAAU,QAAQ,qBAAU;AAAA,SACjD;AAAA,OACF,GACF;AAAA,KACF;AAEJ;","names":["tv","jsx","jsxs","tv","meter","plan"]}
@@ -113,4 +113,5 @@ interface MergedPull {
113
113
  */
114
114
  declare function releasesFromPulls(pulls: readonly MergedPull[], source: string, url?: string): Release[];
115
115
 
116
- export { CHANGE_TAGS, type ChangeItem, type ChangeKind, type ChangeTag, type ChangelogEntry, ChangelogPage, type ChangelogPageProps, type MergedPull, type Release, anchorOf, changeFromTitle, changelogRss, draftFromTitles, kindOfTag, newestFirst, parseChangesets, parseReleaseBody, plain, prOf, releasesFromPulls, tagOf };
116
+ export { CHANGE_TAGS, ChangelogPage, anchorOf, changeFromTitle, changelogRss, draftFromTitles, kindOfTag, newestFirst, parseChangesets, parseReleaseBody, plain, prOf, releasesFromPulls, tagOf };
117
+ export type { ChangeItem, ChangeKind, ChangeTag, ChangelogEntry, ChangelogPageProps, MergedPull, Release };
package/dist/chapter.d.ts CHANGED
@@ -103,4 +103,5 @@ type ChapterFootProps = Omit<React.HTMLAttributes<HTMLElement>, "children"> & {
103
103
  /** The foot of a chapter: the previous and the next on the ruled lines, then one line back to the story. */
104
104
  declare function ChapterFoot({ previous, next, back, labels, label, paper, linkAs, className, ...props }: ChapterFootProps): React.JSX.Element;
105
105
 
106
- export { type ChapterCover, type ChapterEntry, ChapterFoot, type ChapterFootProps, ChapterHead, type ChapterHeadProps, ChapterIndex, type ChapterIndexProps, type ChapterLink, LinkComponent };
106
+ export { ChapterFoot, ChapterHead, ChapterIndex, LinkComponent };
107
+ export type { ChapterCover, ChapterEntry, ChapterFootProps, ChapterHeadProps, ChapterIndexProps, ChapterLink };
package/dist/chat.d.ts CHANGED
@@ -4,13 +4,11 @@ import * as React from 'react';
4
4
  declare const chat: tailwind_variants.TVReturnType<{
5
5
  [key: string]: {
6
6
  [key: string]: tailwind_variants.ClassValue | {
7
- input?: tailwind_variants.ClassValue;
8
- time?: tailwind_variants.ClassValue;
9
- send?: tailwind_variants.ClassValue;
10
7
  row?: tailwind_variants.ClassValue;
11
- status?: tailwind_variants.ClassValue;
12
8
  bubble?: tailwind_variants.ClassValue;
13
9
  context?: tailwind_variants.ClassValue;
10
+ time?: tailwind_variants.ClassValue;
11
+ status?: tailwind_variants.ClassValue;
14
12
  typing?: tailwind_variants.ClassValue;
15
13
  dot?: tailwind_variants.ClassValue;
16
14
  composer?: tailwind_variants.ClassValue;
@@ -19,6 +17,8 @@ declare const chat: tailwind_variants.TVReturnType<{
19
17
  pillStatus?: tailwind_variants.ClassValue;
20
18
  item?: tailwind_variants.ClassValue;
21
19
  count?: tailwind_variants.ClassValue;
20
+ input?: tailwind_variants.ClassValue;
21
+ send?: tailwind_variants.ClassValue;
22
22
  pill?: tailwind_variants.ClassValue;
23
23
  pillInput?: tailwind_variants.ClassValue;
24
24
  pillSend?: tailwind_variants.ClassValue;
@@ -27,13 +27,11 @@ declare const chat: tailwind_variants.TVReturnType<{
27
27
  } | {
28
28
  [x: string]: {
29
29
  [x: string]: tailwind_variants.ClassValue | {
30
- input?: tailwind_variants.ClassValue;
31
- time?: tailwind_variants.ClassValue;
32
- send?: tailwind_variants.ClassValue;
33
30
  row?: tailwind_variants.ClassValue;
34
- status?: tailwind_variants.ClassValue;
35
31
  bubble?: tailwind_variants.ClassValue;
36
32
  context?: tailwind_variants.ClassValue;
33
+ time?: tailwind_variants.ClassValue;
34
+ status?: tailwind_variants.ClassValue;
37
35
  typing?: tailwind_variants.ClassValue;
38
36
  dot?: tailwind_variants.ClassValue;
39
37
  composer?: tailwind_variants.ClassValue;
@@ -42,6 +40,8 @@ declare const chat: tailwind_variants.TVReturnType<{
42
40
  pillStatus?: tailwind_variants.ClassValue;
43
41
  item?: tailwind_variants.ClassValue;
44
42
  count?: tailwind_variants.ClassValue;
43
+ input?: tailwind_variants.ClassValue;
44
+ send?: tailwind_variants.ClassValue;
45
45
  pill?: tailwind_variants.ClassValue;
46
46
  pillInput?: tailwind_variants.ClassValue;
47
47
  pillSend?: tailwind_variants.ClassValue;
@@ -69,13 +69,11 @@ declare const chat: tailwind_variants.TVReturnType<{
69
69
  }, undefined, {
70
70
  [key: string]: {
71
71
  [key: string]: tailwind_variants.ClassValue | {
72
- input?: tailwind_variants.ClassValue;
73
- time?: tailwind_variants.ClassValue;
74
- send?: tailwind_variants.ClassValue;
75
72
  row?: tailwind_variants.ClassValue;
76
- status?: tailwind_variants.ClassValue;
77
73
  bubble?: tailwind_variants.ClassValue;
78
74
  context?: tailwind_variants.ClassValue;
75
+ time?: tailwind_variants.ClassValue;
76
+ status?: tailwind_variants.ClassValue;
79
77
  typing?: tailwind_variants.ClassValue;
80
78
  dot?: tailwind_variants.ClassValue;
81
79
  composer?: tailwind_variants.ClassValue;
@@ -84,6 +82,8 @@ declare const chat: tailwind_variants.TVReturnType<{
84
82
  pillStatus?: tailwind_variants.ClassValue;
85
83
  item?: tailwind_variants.ClassValue;
86
84
  count?: tailwind_variants.ClassValue;
85
+ input?: tailwind_variants.ClassValue;
86
+ send?: tailwind_variants.ClassValue;
87
87
  pill?: tailwind_variants.ClassValue;
88
88
  pillInput?: tailwind_variants.ClassValue;
89
89
  pillSend?: tailwind_variants.ClassValue;
@@ -232,4 +232,5 @@ type ConversationItemProps = {
232
232
  /** A conversation in the list: avatar, name, the last message or typing, the time, the unread count. */
233
233
  declare function ConversationItem({ name, avatar, preview, typing, time, unread, unreadLabel, online, onlineLabel, href, onSelect, className }: ConversationItemProps): React.JSX.Element;
234
234
 
235
- export { ConversationItem, type ConversationItemProps, MessageBubble, type MessageBubbleLabels, type MessageBubbleProps, MessageComposer, type MessageComposerProps, type MessageStatus, TypingIndicator, type TypingIndicatorProps, chat };
235
+ export { ConversationItem, MessageBubble, MessageComposer, TypingIndicator, chat };
236
+ export type { ConversationItemProps, MessageBubbleLabels, MessageBubbleProps, MessageComposerProps, MessageStatus, TypingIndicatorProps };
@@ -49,4 +49,5 @@ type CheckboxProps = Omit<React.ComponentProps<typeof Checkbox$1.Root>, "childre
49
49
  /** A checkbox: `checked`/`defaultChecked` (`true` · `false` · `"indeterminate"`) + `onCheckedChange`. */
50
50
  declare function Checkbox({ invalid, className, children, ...props }: CheckboxProps): React.JSX.Element;
51
51
 
52
- export { Checkbox, type CheckboxProps, checkbox };
52
+ export { Checkbox, checkbox };
53
+ export type { CheckboxProps };
@@ -50,4 +50,5 @@ type ChipLinkProps = React.ComponentProps<"a"> & {
50
50
  /** A filter that is a link, with the look of `Chip`. */
51
51
  declare function ChipLink({ size, selected, current, asChild, className, ...props }: ChipLinkProps): React.JSX.Element;
52
52
 
53
- export { ChipLink, type ChipLinkProps, type ChipVariantsProps, chipVariants };
53
+ export { ChipLink, chipVariants };
54
+ export type { ChipLinkProps, ChipVariantsProps };
@@ -4,21 +4,21 @@ import * as React from 'react';
4
4
  declare const chipRow: tailwind_variants.TVReturnType<{
5
5
  [key: string]: {
6
6
  [key: string]: tailwind_variants.ClassValue | {
7
- list?: tailwind_variants.ClassValue;
8
- hint?: tailwind_variants.ClassValue;
9
7
  root?: tailwind_variants.ClassValue;
8
+ hint?: tailwind_variants.ClassValue;
10
9
  item?: tailwind_variants.ClassValue;
11
10
  badge?: tailwind_variants.ClassValue;
11
+ list?: tailwind_variants.ClassValue;
12
12
  };
13
13
  };
14
14
  } | {
15
15
  [x: string]: {
16
16
  [x: string]: tailwind_variants.ClassValue | {
17
- list?: tailwind_variants.ClassValue;
18
- hint?: tailwind_variants.ClassValue;
19
17
  root?: tailwind_variants.ClassValue;
18
+ hint?: tailwind_variants.ClassValue;
20
19
  item?: tailwind_variants.ClassValue;
21
20
  badge?: tailwind_variants.ClassValue;
21
+ list?: tailwind_variants.ClassValue;
22
22
  };
23
23
  };
24
24
  } | {}, {
@@ -30,11 +30,11 @@ declare const chipRow: tailwind_variants.TVReturnType<{
30
30
  }, undefined, {
31
31
  [key: string]: {
32
32
  [key: string]: tailwind_variants.ClassValue | {
33
- list?: tailwind_variants.ClassValue;
34
- hint?: tailwind_variants.ClassValue;
35
33
  root?: tailwind_variants.ClassValue;
34
+ hint?: tailwind_variants.ClassValue;
36
35
  item?: tailwind_variants.ClassValue;
37
36
  badge?: tailwind_variants.ClassValue;
37
+ list?: tailwind_variants.ClassValue;
38
38
  };
39
39
  };
40
40
  } | {}, {
@@ -75,4 +75,5 @@ declare const ChipRow: typeof ChipRowRoot & {
75
75
  Item: typeof ChipRowItem;
76
76
  };
77
77
 
78
- export { ChipRow, type ChipRowItemProps, type ChipRowProps, chipRow };
78
+ export { ChipRow, chipRow };
79
+ export type { ChipRowItemProps, ChipRowProps };
package/dist/chip.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  import * as tailwind_variants from 'tailwind-variants';
2
2
  import { VariantProps } from 'tailwind-variants';
3
3
  import * as React from 'react';
4
+ import { Marker } from '@krizaka/organize/contract';
5
+ export { Marker } from '@krizaka/organize/contract';
4
6
 
5
7
  declare const chip: tailwind_variants.TVReturnType<{
6
8
  readonly size: {
@@ -123,4 +125,56 @@ declare const Chip: typeof ChipBase & {
123
125
  Group: typeof ChipGroup;
124
126
  };
125
127
 
126
- export { Chip, ChipGroup, type ChipGroupProps, type ChipProps, type ChipVariants, chip };
128
+ /** The six names of the closed palette (`@krizaka/organize` `MARKERS`; a test keeps them equal). */
129
+ declare const MARKERS: readonly Marker[];
130
+
131
+ /** The marker's shape: a `dot`, or the `ribbon` (a bookmark: a rectangle with a notch at the bottom). */
132
+ type MarkerShape = "dot" | "ribbon";
133
+ type TagMarkerProps = Omit<React.ComponentProps<"span">, "children"> & {
134
+ /** A name of the closed palette. */
135
+ marker: Marker;
136
+ /**
137
+ * dot · ribbon.
138
+ * @default "dot"
139
+ */
140
+ shape?: MarkerShape;
141
+ };
142
+ /** The marker alone, decorative (`aria-hidden`): put the tag's name beside it. */
143
+ declare function TagMarker({ marker, shape, className, style, ...props }: TagMarkerProps): React.JSX.Element;
144
+ type TagChipProps = ChipProps & {
145
+ /** The tag's marker: a name of the closed palette (`blue · green · amber · red · violet · gray`). */
146
+ marker: Marker;
147
+ /**
148
+ * dot · ribbon.
149
+ * @default "dot"
150
+ */
151
+ shape?: MarkerShape;
152
+ };
153
+ /**
154
+ * A tag: its marker and its name. Alone a toggle (a filter), inside `Chip.Group` an item, or `removable` (a tag worn by a
155
+ * file) — the behaviour of `Chip`, with the marker before the name.
156
+ */
157
+ declare function TagChip({ marker, shape, children, ...props }: TagChipProps): React.JSX.Element;
158
+ type MarkerPickerProps = {
159
+ /** The group's accessible name ("Colour of the tag"), passed translated. */
160
+ label: string;
161
+ /** The name of each colour, passed translated: `{ blue: "Blue", … }`. The swatches are named, never colour alone. */
162
+ names: Readonly<Record<Marker, string>>;
163
+ /** The colour chosen (controlled). */
164
+ value?: Marker;
165
+ /** The colour chosen at first, uncontrolled. */
166
+ defaultValue?: Marker;
167
+ /** Called with the colour chosen. */
168
+ onValueChange?: (value: Marker) => void;
169
+ /** The colours offered (default: the six). */
170
+ markers?: readonly Marker[];
171
+ /** Not available. */
172
+ disabled?: boolean;
173
+ /** Classes merged on the root. */
174
+ className?: string;
175
+ };
176
+ /** Recolours a tag from the closed palette: a radio group of swatches (arrow keys), the chosen one ticked and named. */
177
+ declare function MarkerPicker({ label, names, value, defaultValue, onValueChange, markers, disabled, className }: MarkerPickerProps): React.JSX.Element;
178
+
179
+ export { Chip, ChipGroup, MARKERS, MarkerPicker, TagChip, TagMarker, chip };
180
+ export type { ChipGroupProps, ChipProps, ChipVariants, MarkerPickerProps, MarkerShape, TagChipProps, TagMarkerProps };
package/dist/chip.js CHANGED
@@ -2,12 +2,21 @@
2
2
  import {
3
3
  Chip,
4
4
  ChipGroup,
5
+ MARKERS,
6
+ MarkerPicker,
7
+ TagChip,
8
+ TagMarker,
5
9
  chip
6
- } from "./chunk-7U5TXA5Q.js";
10
+ } from "./chunk-BQ4EOR2O.js";
7
11
  import "./chunk-D3T54RSL.js";
12
+ import "./chunk-NSLXEDIS.js";
8
13
  export {
9
14
  Chip,
10
15
  ChipGroup,
16
+ MARKERS,
17
+ MarkerPicker,
18
+ TagChip,
19
+ TagMarker,
11
20
  chip
12
21
  };
13
22
  //# sourceMappingURL=chip.js.map
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { S as StoryVariant } from './story-variant-CLn4H5Nt.js';
2
+ import { StoryVariant } from './scroll-stage.js';
3
3
 
4
4
  /** The app's link component (Next's `Link`, React Router's `Link`…): receives `href`, `className` and the children. */
5
5
  type LinkComponent = React.ElementType<{
@@ -85,4 +85,5 @@ type ChoiceGridProps = Omit<React.HTMLAttributes<HTMLDivElement>, "defaultValue"
85
85
  */
86
86
  declare function ChoiceGrid({ label, items, tag, caption, prompt, value: valueProp, defaultValue: defaultValueProp, onValueChange: onValueChangeProp, routeKey, routeValues, linkAs, columns, variant, brand, animated, className, style, ...props }: ChoiceGridProps): React.JSX.Element;
87
87
 
88
- export { ChoiceGrid, type ChoiceGridProps, type ChoiceItem };
88
+ export { ChoiceGrid };
89
+ export type { ChoiceGridProps, ChoiceItem };
@@ -0,0 +1,46 @@
1
+ "use client";
2
+ import {
3
+ cn
4
+ } from "./chunk-WU4VLSEA.js";
5
+
6
+ // src/tooltip/tooltip.tsx
7
+ import { Tooltip as TooltipPrimitive } from "radix-ui";
8
+
9
+ // src/floating.ts
10
+ var floating = "kz-pop z-50 rounded-lg border border-border-default bg-surface-2 text-fg shadow-lg outline-hidden";
11
+
12
+ // src/tooltip/tooltip.tsx
13
+ import { jsx, jsxs } from "react/jsx-runtime";
14
+ var TooltipProvider = TooltipPrimitive.Provider;
15
+ function Tooltip({
16
+ content,
17
+ children,
18
+ open,
19
+ defaultOpen,
20
+ onOpenChange,
21
+ delayDuration = 300,
22
+ container,
23
+ sideOffset = 6,
24
+ collisionPadding = 8,
25
+ className,
26
+ ...props
27
+ }) {
28
+ return /* @__PURE__ */ jsx(TooltipPrimitive.Provider, { delayDuration, children: /* @__PURE__ */ jsxs(TooltipPrimitive.Root, { open, defaultOpen, onOpenChange, children: [
29
+ /* @__PURE__ */ jsx(TooltipPrimitive.Trigger, { asChild: true, children }),
30
+ /* @__PURE__ */ jsx(TooltipPrimitive.Portal, { container, children: /* @__PURE__ */ jsx(
31
+ TooltipPrimitive.Content,
32
+ {
33
+ sideOffset,
34
+ collisionPadding,
35
+ className: cn(floating, "max-w-xs px-2.5 py-1.5 text-xs font-medium origin-(--radix-tooltip-content-transform-origin)", className),
36
+ ...props,
37
+ children: content
38
+ }
39
+ ) })
40
+ ] }) });
41
+ }
42
+
43
+ export {
44
+ Tooltip
45
+ };
46
+ //# sourceMappingURL=chunk-27AWSJTK.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/tooltip/tooltip.tsx","../src/floating.ts"],"sourcesContent":["// Client (a portal). A short label for a control, on hover after `delayDuration` and on keyboard focus at once;\n// Escape dismisses it. It names nothing: the control keeps its own accessible name (an IconButton's `label`).\nimport { Tooltip as TooltipPrimitive } from \"radix-ui\";\nimport type * as React from \"react\";\n\nimport { cn } from \"../cn\";\nimport { floating } from \"../floating\";\n\n/** Optional, once near the root: shares `delayDuration` and the skip delay between tooltips. */\nexport const TooltipProvider = TooltipPrimitive.Provider;\n\nexport type TooltipProps = Omit<React.ComponentProps<typeof TooltipPrimitive.Content>, \"content\" | \"children\"> & {\n /** What the tooltip says — passed translated. */\n content: React.ReactNode;\n /** The trigger, rendered as is (`asChild`): a focusable element. */\n children: React.ReactNode;\n /** Open or closed (controlled), with `onOpenChange`. */\n open?: boolean;\n /** Open at first, uncontrolled. */\n defaultOpen?: boolean;\n /** Called when it opens or closes. */\n onOpenChange?: (open: boolean) => void;\n /** Hover delay in ms before it opens (300 by default). */\n delayDuration?: number;\n /** The element the portal renders into (default: document.body). */\n container?: HTMLElement | null;\n};\n\nexport function Tooltip({\n content,\n children,\n open,\n defaultOpen,\n onOpenChange,\n delayDuration = 300,\n container,\n sideOffset = 6,\n collisionPadding = 8,\n className,\n ...props\n}: TooltipProps) {\n return (\n <TooltipPrimitive.Provider delayDuration={delayDuration}>\n <TooltipPrimitive.Root open={open} defaultOpen={defaultOpen} onOpenChange={onOpenChange}>\n <TooltipPrimitive.Trigger asChild>{children}</TooltipPrimitive.Trigger>\n <TooltipPrimitive.Portal container={container}>\n <TooltipPrimitive.Content\n sideOffset={sideOffset}\n collisionPadding={collisionPadding}\n className={cn(floating, \"max-w-xs px-2.5 py-1.5 text-xs font-medium origin-(--radix-tooltip-content-transform-origin)\", className)}\n {...props}\n >\n {content}\n </TooltipPrimitive.Content>\n </TooltipPrimitive.Portal>\n </TooltipPrimitive.Root>\n </TooltipPrimitive.Provider>\n );\n}\n","// The one surface of everything that floats next to its trigger (popover, menu, tooltip): a raised surface, a border,\n// the large shadow and the `kz-pop` entrance from the side Radix measured (`--radix-*-transform-origin`).\nexport const floating =\n \"kz-pop z-50 rounded-lg border border-border-default bg-surface-2 text-fg shadow-lg outline-hidden\";\n"],"mappings":";;;;;;AAEA,SAAS,WAAW,wBAAwB;;;ACArC,IAAM,WACX;;;ADwCI,SACE,KADF;AAlCC,IAAM,kBAAkB,iBAAiB;AAmBzC,SAAS,QAAQ;AAAA,EACtB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,gBAAgB;AAAA,EAChB;AAAA,EACA,aAAa;AAAA,EACb,mBAAmB;AAAA,EACnB;AAAA,EACA,GAAG;AACL,GAAiB;AACf,SACE,oBAAC,iBAAiB,UAAjB,EAA0B,eACzB,+BAAC,iBAAiB,MAAjB,EAAsB,MAAY,aAA0B,cAC3D;AAAA,wBAAC,iBAAiB,SAAjB,EAAyB,SAAO,MAAE,UAAS;AAAA,IAC5C,oBAAC,iBAAiB,QAAjB,EAAwB,WACvB;AAAA,MAAC,iBAAiB;AAAA,MAAjB;AAAA,QACC;AAAA,QACA;AAAA,QACA,WAAW,GAAG,UAAU,gGAAgG,SAAS;AAAA,QAChI,GAAG;AAAA,QAEH;AAAA;AAAA,IACH,GACF;AAAA,KACF,GACF;AAEJ;","names":[]}
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ //# sourceMappingURL=chunk-44FU32KP.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  Chip
4
- } from "./chunk-VIPSZXO4.js";
4
+ } from "./chunk-UYGUSYIC.js";
5
5
  import {
6
6
  useListbox
7
7
  } from "./chunk-ZIXB33X7.js";
@@ -280,4 +280,4 @@ export {
280
280
  comboboxLabels,
281
281
  Combobox
282
282
  };
283
- //# sourceMappingURL=chunk-AEP3K4YD.js.map
283
+ //# sourceMappingURL=chunk-4GQH27IT.js.map