@krizaka/ui 3.63.0 → 3.64.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 (406) hide show
  1. package/dist/account-menu.d.ts +1 -1
  2. package/dist/account-menu.js +1 -1
  3. package/dist/account-settings.d.ts +61 -4
  4. package/dist/account-settings.js +207 -45
  5. package/dist/account-settings.js.map +1 -1
  6. package/dist/action-bar.js +4 -4
  7. package/dist/analysis-report.d.ts +274 -0
  8. package/dist/analysis-report.js +207 -0
  9. package/dist/analysis-report.js.map +1 -0
  10. package/dist/app-header.d.ts +3 -3
  11. package/dist/argument-card.d.ts +1 -1
  12. package/dist/argument-card.js +5 -5
  13. package/dist/avatar/defaults.d.ts +16 -5
  14. package/dist/avatar/defaults.js +15 -1
  15. package/dist/avatar/defaults.js.map +1 -1
  16. package/dist/{avatar-BL2iG_Js.d.ts → avatar-BdZcfkWR.d.ts} +11 -4
  17. package/dist/avatar.d.ts +16 -5
  18. package/dist/avatar.js +15 -1
  19. package/dist/avatar.js.map +1 -1
  20. package/dist/badge.js +4 -34
  21. package/dist/badge.js.map +1 -1
  22. package/dist/blocks.css +99 -8
  23. package/dist/button.js +1 -1
  24. package/dist/captcha.js +1 -1
  25. package/dist/chat.js +1 -1
  26. package/dist/chunk-5PFCELGW.js +41 -0
  27. package/dist/chunk-5PFCELGW.js.map +1 -0
  28. package/dist/chunk-5RWHDX5J.js +37 -0
  29. package/dist/chunk-5RWHDX5J.js.map +1 -0
  30. package/dist/{chunk-5LANVCK7.js → chunk-BG5APGX6.js} +2 -2
  31. package/dist/{chunk-WOZP3JLW.js → chunk-DJ5ZPPWL.js} +1 -1
  32. package/dist/chunk-DJ5ZPPWL.js.map +1 -0
  33. package/dist/{chunk-UV4HBVH7.js → chunk-EB45EVPJ.js} +2 -2
  34. package/dist/{chunk-SJS6RJIT.js.map → chunk-EB45EVPJ.js.map} +1 -1
  35. package/dist/chunk-EUJ7337V.js +137 -0
  36. package/dist/chunk-EUJ7337V.js.map +1 -0
  37. package/dist/{chunk-6EAHUURY.js → chunk-GHAN7OOE.js} +2 -2
  38. package/dist/chunk-HK525THY.js +139 -0
  39. package/dist/chunk-HK525THY.js.map +1 -0
  40. package/dist/chunk-JT7ZKZT5.js +1 -0
  41. package/dist/chunk-JT7ZKZT5.js.map +1 -0
  42. package/dist/{chunk-3DHNN5V7.js → chunk-M3GEYLMR.js} +2 -2
  43. package/dist/{chunk-3DHNN5V7.js.map → chunk-M3GEYLMR.js.map} +1 -1
  44. package/dist/{chunk-7J2L4HOD.js → chunk-MTVX4RRF.js} +2 -2
  45. package/dist/{chunk-7J2L4HOD.js.map → chunk-MTVX4RRF.js.map} +1 -1
  46. package/dist/{chunk-YKEIOYJ5.js → chunk-NPMGYLJV.js} +1 -1
  47. package/dist/chunk-NPMGYLJV.js.map +1 -0
  48. package/dist/{chunk-HEKDKM5Y.js → chunk-QVHSV6RA.js} +1 -1
  49. package/dist/{chunk-7JG3VR4C.js → chunk-RCKXJEDQ.js} +5 -5
  50. package/dist/{chunk-3D2YI63L.js → chunk-SHBYNQFS.js} +7 -2
  51. package/dist/{chunk-3D2YI63L.js.map → chunk-SHBYNQFS.js.map} +1 -1
  52. package/dist/chunk-U4XTZMB7.js +103 -0
  53. package/dist/chunk-U4XTZMB7.js.map +1 -0
  54. package/dist/{chunk-SJS6RJIT.js → chunk-V7W4RLRW.js} +2 -2
  55. package/dist/{chunk-UV4HBVH7.js.map → chunk-V7W4RLRW.js.map} +1 -1
  56. package/dist/command.js +2 -2
  57. package/dist/confirm-button.js +1 -1
  58. package/dist/continue-prompt.js +1 -1
  59. package/dist/continue-prompt.js.map +1 -1
  60. package/dist/cover-hero.js +1 -1
  61. package/dist/dashboard-layout.js +2 -1
  62. package/dist/dashboard-layout.js.map +1 -1
  63. package/dist/data-table.js +2 -2
  64. package/dist/date-picker.d.ts +15 -15
  65. package/dist/dialog.js +2 -2
  66. package/dist/docs-layout.js +1 -1
  67. package/dist/embed-facade.d.ts +37 -0
  68. package/dist/embed-facade.js +96 -0
  69. package/dist/embed-facade.js.map +1 -0
  70. package/dist/file-upload.d.ts +2 -2
  71. package/dist/force-update-screen.js +1 -1
  72. package/dist/genui.js +2 -2
  73. package/dist/kind-config-editor.js +1 -1
  74. package/dist/link-card.js +2 -2
  75. package/dist/maintenance-screen.js +1 -1
  76. package/dist/map.js +6 -0
  77. package/dist/map.js.map +1 -1
  78. package/dist/margin-layout.d.ts +71 -0
  79. package/dist/margin-layout.js +29 -0
  80. package/dist/margin-layout.js.map +1 -0
  81. package/dist/match-dialog.js +2 -2
  82. package/dist/media-grid.d.ts +8 -3
  83. package/dist/media-grid.js +2 -2
  84. package/dist/meter.js +2 -1
  85. package/dist/native/map.js +6 -0
  86. package/dist/native/map.js.map +1 -1
  87. package/dist/native.d.ts +96 -5
  88. package/dist/native.js +1718 -1529
  89. package/dist/native.js.map +1 -1
  90. package/dist/nav-bar.js +1 -1
  91. package/dist/page-DPHDmDAQ.d.ts +131 -0
  92. package/dist/page-hero.js +4 -4
  93. package/dist/page.d.ts +7 -125
  94. package/dist/page.js +13 -1
  95. package/dist/page.js.map +1 -1
  96. package/dist/quota-meter.js +2 -1
  97. package/dist/quota-meter.js.map +1 -1
  98. package/dist/retro-tv.d.ts +6 -3
  99. package/dist/retro-tv.js +6 -5
  100. package/dist/retro-tv.js.map +1 -1
  101. package/dist/reviews.d.ts +49 -0
  102. package/dist/reviews.js +66 -0
  103. package/dist/reviews.js.map +1 -0
  104. package/dist/separator.d.ts +26 -3
  105. package/dist/separator.js +19 -1
  106. package/dist/separator.js.map +1 -1
  107. package/dist/service-card.d.ts +56 -63
  108. package/dist/service-card.js +49 -10
  109. package/dist/service-card.js.map +1 -1
  110. package/dist/settings-layout.js +1 -1
  111. package/dist/site-cahier.js +1 -1
  112. package/dist/specimen-tag.d.ts +15 -3
  113. package/dist/specimen-tag.js +4 -27
  114. package/dist/specimen-tag.js.map +1 -1
  115. package/dist/stat.d.ts +87 -5
  116. package/dist/stat.js +9 -53
  117. package/dist/stat.js.map +1 -1
  118. package/dist/sticky-action.d.ts +7 -2
  119. package/dist/sticky-action.js +24 -3
  120. package/dist/sticky-action.js.map +1 -1
  121. package/dist/theme.js +1 -1
  122. package/dist/update-prompt.js +1 -1
  123. package/dist/usage.d.ts +229 -0
  124. package/dist/usage.js +189 -0
  125. package/dist/usage.js.map +1 -0
  126. package/dist/vertical-video.js +2 -2
  127. package/dist/wall.d.ts +24 -12
  128. package/dist/wall.js +106 -43
  129. package/dist/wall.js.map +1 -1
  130. package/package.json +92 -13
  131. package/registry/account-menu.json +1 -1
  132. package/registry/account-settings.json +67 -6
  133. package/registry/achievement.json +1 -1
  134. package/registry/action-bar.json +1 -1
  135. package/registry/activity-feed.json +1 -1
  136. package/registry/agenda.json +1 -1
  137. package/registry/alert.json +1 -1
  138. package/registry/analysis-report.json +445 -0
  139. package/registry/anatomy-plate.json +1 -1
  140. package/registry/app-header.json +1 -1
  141. package/registry/app-shell.json +1 -1
  142. package/registry/argument-card.json +3 -3
  143. package/registry/audio-player.json +1 -1
  144. package/registry/auth-layout.json +1 -1
  145. package/registry/avatar.json +6 -5
  146. package/registry/badge.json +1 -1
  147. package/registry/bird-plate.json +1 -1
  148. package/registry/button.json +2 -2
  149. package/registry/captcha.json +1 -1
  150. package/registry/card-grid.json +1 -1
  151. package/registry/card.json +1 -1
  152. package/registry/catalogue-page.json +1 -1
  153. package/registry/changelog-page.json +1 -1
  154. package/registry/chapter.json +1 -1
  155. package/registry/chat.json +1 -1
  156. package/registry/checkbox.json +1 -1
  157. package/registry/chip-link.json +1 -1
  158. package/registry/chip-row.json +1 -1
  159. package/registry/chip.json +1 -1
  160. package/registry/choice-grid.json +1 -1
  161. package/registry/code-block.json +1 -1
  162. package/registry/combobox.json +1 -1
  163. package/registry/command.json +1 -1
  164. package/registry/comparison-table.json +1 -1
  165. package/registry/component-page.json +1 -1
  166. package/registry/confirm-button.json +1 -1
  167. package/registry/contact-page.json +1 -1
  168. package/registry/continue-prompt.json +1 -1
  169. package/registry/countdown.json +1 -1
  170. package/registry/cover-hero.json +1 -1
  171. package/registry/cta-panel.json +1 -1
  172. package/registry/dashboard-layout.json +2 -2
  173. package/registry/data-table.json +1 -1
  174. package/registry/date-picker.json +1 -1
  175. package/registry/decision-list.json +1 -1
  176. package/registry/description-list.json +1 -1
  177. package/registry/detail-layout.json +1 -1
  178. package/registry/dialog.json +1 -1
  179. package/registry/docs-article-page.json +1 -1
  180. package/registry/docs-hub-page.json +1 -1
  181. package/registry/docs-layout.json +1 -1
  182. package/registry/docs-nav.json +1 -1
  183. package/registry/document-viewer.json +1 -1
  184. package/registry/doodle.json +1 -1
  185. package/registry/drop-overlay.json +1 -1
  186. package/registry/dropdown-menu.json +1 -1
  187. package/registry/elephant.json +2 -2
  188. package/registry/embed-facade.json +243 -0
  189. package/registry/empty-state.json +1 -1
  190. package/registry/engine-flow.json +1 -1
  191. package/registry/environment-notice.json +1 -1
  192. package/registry/error-page.json +1 -1
  193. package/registry/examples/account-settings/avatar-picker-folder.d.ts +4 -0
  194. package/registry/examples/account-settings/avatar-picker-folder.js +27 -0
  195. package/registry/examples/account-settings/avatar-picker-folder.tsx +23 -0
  196. package/registry/examples/analysis-report/document-validation.d.ts +4 -0
  197. package/registry/examples/analysis-report/document-validation.js +47 -0
  198. package/registry/examples/analysis-report/document-validation.tsx +29 -0
  199. package/registry/examples/analysis-report/native/document-validation.d.ts +4 -0
  200. package/registry/examples/analysis-report/native/document-validation.dark.png +0 -0
  201. package/registry/examples/analysis-report/native/document-validation.js +48 -0
  202. package/registry/examples/analysis-report/native/document-validation.light.png +0 -0
  203. package/registry/examples/analysis-report/native/document-validation.tsx +32 -0
  204. package/registry/examples/analysis-report/streaming.d.ts +4 -0
  205. package/registry/examples/analysis-report/streaming.js +42 -0
  206. package/registry/examples/analysis-report/streaming.tsx +23 -0
  207. package/registry/examples/embed-facade/tiktok.d.ts +4 -0
  208. package/registry/examples/embed-facade/tiktok.js +20 -0
  209. package/registry/examples/embed-facade/tiktok.tsx +16 -0
  210. package/registry/examples/embed-facade/youtube.d.ts +4 -0
  211. package/registry/examples/embed-facade/youtube.js +22 -0
  212. package/registry/examples/embed-facade/youtube.tsx +20 -0
  213. package/registry/examples/margin-layout/findings.d.ts +4 -0
  214. package/registry/examples/margin-layout/findings.js +15 -0
  215. package/registry/examples/margin-layout/findings.tsx +18 -0
  216. package/registry/examples/margin-layout/steps.d.ts +4 -0
  217. package/registry/examples/margin-layout/steps.js +15 -0
  218. package/registry/examples/margin-layout/steps.tsx +16 -0
  219. package/registry/examples/page/kraft.d.ts +4 -0
  220. package/registry/examples/page/kraft.js +14 -0
  221. package/registry/examples/page/kraft.tsx +12 -0
  222. package/registry/examples/page/papers.d.ts +4 -0
  223. package/registry/examples/page/papers.js +14 -0
  224. package/registry/examples/page/papers.tsx +13 -0
  225. package/registry/examples/retro-tv/facade.d.ts +4 -0
  226. package/registry/examples/retro-tv/facade.js +12 -0
  227. package/registry/examples/retro-tv/facade.tsx +13 -0
  228. package/registry/examples/reviews/card.d.ts +4 -0
  229. package/registry/examples/reviews/card.js +23 -0
  230. package/registry/examples/reviews/card.tsx +19 -0
  231. package/registry/examples/reviews/summary.d.ts +4 -0
  232. package/registry/examples/reviews/summary.js +23 -0
  233. package/registry/examples/reviews/summary.tsx +17 -0
  234. package/registry/examples/separator/hand.d.ts +4 -0
  235. package/registry/examples/separator/hand.js +19 -0
  236. package/registry/examples/separator/hand.tsx +16 -0
  237. package/registry/examples/service-card/index-card.d.ts +4 -0
  238. package/registry/examples/service-card/index-card.js +15 -0
  239. package/registry/examples/service-card/index-card.tsx +12 -0
  240. package/registry/examples/service-card/index-list.d.ts +4 -0
  241. package/registry/examples/service-card/index-list.js +14 -0
  242. package/registry/examples/service-card/index-list.tsx +11 -0
  243. package/registry/examples/specimen-tag/facts.d.ts +4 -0
  244. package/registry/examples/specimen-tag/facts.js +23 -0
  245. package/registry/examples/specimen-tag/facts.tsx +18 -0
  246. package/registry/examples/stat/strip.d.ts +4 -0
  247. package/registry/examples/stat/strip.js +25 -0
  248. package/registry/examples/stat/strip.tsx +25 -0
  249. package/registry/examples/sticky-action/hide-while-visible.d.ts +4 -0
  250. package/registry/examples/sticky-action/hide-while-visible.js +16 -0
  251. package/registry/examples/sticky-action/hide-while-visible.tsx +17 -0
  252. package/registry/examples/usage/credits-page.d.ts +4 -0
  253. package/registry/examples/usage/credits-page.js +45 -0
  254. package/registry/examples/usage/credits-page.tsx +40 -0
  255. package/registry/examples/usage/empty.d.ts +4 -0
  256. package/registry/examples/usage/empty.js +15 -0
  257. package/registry/examples/usage/empty.tsx +12 -0
  258. package/registry/examples/wall/brick.js +1 -1
  259. package/registry/examples/wall/brick.tsx +1 -1
  260. package/registry/examples/wall/composition-fr.js +1 -1
  261. package/registry/examples/wall/composition-fr.tsx +1 -1
  262. package/registry/examples/wall/composition.js +1 -1
  263. package/registry/examples/wall/composition.tsx +1 -1
  264. package/registry/examples/wall/pinned-note.js +2 -2
  265. package/registry/examples/wall/pinned-note.tsx +3 -2
  266. package/registry/examples/wall/plaster.js +1 -1
  267. package/registry/examples/wall/plaster.tsx +1 -1
  268. package/registry/examples/wall/ridge.js +1 -1
  269. package/registry/examples/wall/ridge.tsx +1 -1
  270. package/registry/examples/wall/shop-sign.js +5 -4
  271. package/registry/examples/wall/shop-sign.tsx +7 -4
  272. package/registry/examples/wall/zellige.js +1 -1
  273. package/registry/examples/wall/zellige.tsx +1 -1
  274. package/registry/field.json +1 -1
  275. package/registry/file-upload.json +1 -1
  276. package/registry/filter-bar.json +1 -1
  277. package/registry/flock.json +1 -1
  278. package/registry/footnote.json +1 -1
  279. package/registry/force-update-screen.json +1 -1
  280. package/registry/form.json +1 -1
  281. package/registry/gallery-page.json +1 -1
  282. package/registry/genui.json +1 -1
  283. package/registry/glossary-term.json +1 -1
  284. package/registry/glossary.json +1 -1
  285. package/registry/glow-card.json +1 -1
  286. package/registry/goal-gauge.json +1 -1
  287. package/registry/grade-stamp.json +1 -1
  288. package/registry/how-it-works-page.json +1 -1
  289. package/registry/image-cropper.json +1 -1
  290. package/registry/index.json +186 -18
  291. package/registry/iso.json +1 -1
  292. package/registry/kanban.json +1 -1
  293. package/registry/kbd.json +1 -1
  294. package/registry/kind-config-editor.json +1 -1
  295. package/registry/kpi-explained.json +1 -1
  296. package/registry/landing-page.json +1 -1
  297. package/registry/landscape.json +1 -1
  298. package/registry/language-switch.json +1 -1
  299. package/registry/legal-page.json +1 -1
  300. package/registry/link-card.json +1 -1
  301. package/registry/list.json +1 -1
  302. package/registry/loader.json +1 -1
  303. package/registry/longform-page.json +1 -1
  304. package/registry/maintenance-screen.json +1 -1
  305. package/registry/map.json +2 -2
  306. package/registry/margin-layout.json +200 -0
  307. package/registry/markdown.json +1 -1
  308. package/registry/marketing-layout.json +1 -1
  309. package/registry/marquee.json +1 -1
  310. package/registry/mascot-quote.json +1 -1
  311. package/registry/mascot-state.json +1 -1
  312. package/registry/mascots.json +1 -1
  313. package/registry/match-dialog.json +1 -1
  314. package/registry/media-capture.json +1 -1
  315. package/registry/media-gallery.json +1 -1
  316. package/registry/media-grid.json +1 -1
  317. package/registry/meta-row.json +1 -1
  318. package/registry/meter.json +1 -1
  319. package/registry/nav-bar.json +2 -2
  320. package/registry/next-actions.json +1 -1
  321. package/registry/notification-preferences.json +1 -1
  322. package/registry/number-ticker.json +1 -1
  323. package/registry/opening-hours.json +1 -1
  324. package/registry/page-header.json +1 -1
  325. package/registry/page-hero.json +1 -1
  326. package/registry/page-index.json +1 -1
  327. package/registry/page.json +53 -11
  328. package/registry/pagination.json +1 -1
  329. package/registry/photo-grid.json +1 -1
  330. package/registry/pointer-light.json +1 -1
  331. package/registry/popover.json +1 -1
  332. package/registry/pricing-page.json +1 -1
  333. package/registry/product-page.json +1 -1
  334. package/registry/profile-card.json +1 -1
  335. package/registry/progress.json +1 -1
  336. package/registry/promise-card.json +1 -1
  337. package/registry/quota-meter.json +1 -1
  338. package/registry/radio-group.json +1 -1
  339. package/registry/rail-nav.json +2 -2
  340. package/registry/recipes.json +1 -1
  341. package/registry/retro-tv.json +45 -29
  342. package/registry/reviews.json +361 -0
  343. package/registry/router.json +1 -1
  344. package/registry/scroll-stage.json +1 -1
  345. package/registry/search-field.json +1 -1
  346. package/registry/section-backdrop.json +1 -1
  347. package/registry/separator.json +71 -6
  348. package/registry/service-card.json +55 -6
  349. package/registry/settings-layout.json +1 -1
  350. package/registry/showcase.json +1 -1
  351. package/registry/signature.json +1 -1
  352. package/registry/site-cahier.json +1 -1
  353. package/registry/site-footer.json +2 -2
  354. package/registry/sites.json +1 -1
  355. package/registry/skeleton.json +1 -1
  356. package/registry/skip-link.json +1 -1
  357. package/registry/slider.json +1 -1
  358. package/registry/slot-picker.json +1 -1
  359. package/registry/slot.json +1 -1
  360. package/registry/specimen-tag.json +57 -5
  361. package/registry/speed-lines.json +1 -1
  362. package/registry/spinner.json +1 -1
  363. package/registry/split-view.json +1 -1
  364. package/registry/stage-banner.json +1 -1
  365. package/registry/stat.json +61 -9
  366. package/registry/status-chip.json +1 -1
  367. package/registry/status-page.json +1 -1
  368. package/registry/step-progress.json +1 -1
  369. package/registry/step-showcase.json +1 -1
  370. package/registry/stepper.json +1 -1
  371. package/registry/sticky-action.json +27 -4
  372. package/registry/stuck.json +1 -1
  373. package/registry/swipe-deck.json +1 -1
  374. package/registry/switch.json +1 -1
  375. package/registry/tabs.json +1 -1
  376. package/registry/tag-input.json +1 -1
  377. package/registry/tag-selector.json +1 -1
  378. package/registry/taped-photo.json +1 -1
  379. package/registry/terminal-replay.json +1 -1
  380. package/registry/text-style.json +1 -1
  381. package/registry/theme.json +1 -1
  382. package/registry/toast.json +1 -1
  383. package/registry/toc.json +1 -1
  384. package/registry/tooltip.json +1 -1
  385. package/registry/tree-view.json +1 -1
  386. package/registry/update-prompt.json +1 -1
  387. package/registry/upload-queue.json +1 -1
  388. package/registry/usage.json +542 -0
  389. package/registry/verified-badge.json +1 -1
  390. package/registry/versus-card.json +1 -1
  391. package/registry/vertical-video.json +1 -1
  392. package/registry/video-player.json +1 -1
  393. package/registry/video-trimmer.json +3 -3
  394. package/registry/virtual.json +1 -1
  395. package/registry/wall.json +128 -40
  396. package/registry/waveform.json +1 -1
  397. package/dist/chunk-7AZ23BUX.js +0 -88
  398. package/dist/chunk-7AZ23BUX.js.map +0 -1
  399. package/dist/chunk-PW2FVPTV.js +0 -85
  400. package/dist/chunk-PW2FVPTV.js.map +0 -1
  401. package/dist/chunk-WOZP3JLW.js.map +0 -1
  402. package/dist/chunk-YKEIOYJ5.js.map +0 -1
  403. /package/dist/{chunk-5LANVCK7.js.map → chunk-BG5APGX6.js.map} +0 -0
  404. /package/dist/{chunk-6EAHUURY.js.map → chunk-GHAN7OOE.js.map} +0 -0
  405. /package/dist/{chunk-HEKDKM5Y.js.map → chunk-QVHSV6RA.js.map} +0 -0
  406. /package/dist/{chunk-7JG3VR4C.js.map → chunk-RCKXJEDQ.js.map} +0 -0
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/ui registry; `defaultOpen` opens what it opens (a dialog, a menu, toasts) at load. */
3
+ declare const Example: ComponentType<{ defaultOpen?: boolean }>;
4
+ export default Example;
@@ -0,0 +1,22 @@
1
+ "use client";
2
+
3
+ // registry/examples/embed-facade/youtube.tsx
4
+ import { EmbedFacade } from "@krizaka/ui/embed-facade";
5
+ import { jsx } from "react/jsx-runtime";
6
+ var POSTER = `data:image/svg+xml,${encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 9 16"><rect width="9" height="16" fill="#9fb8cc"/><path d="m0 16 4-8 2 4 1.5-2L9 16Z" fill="#2c5f8a"/></svg>')}`;
7
+ function EmbedFacadeYoutube() {
8
+ return /* @__PURE__ */ jsx("div", { className: "w-64 max-w-full", children: /* @__PURE__ */ jsx(
9
+ EmbedFacade,
10
+ {
11
+ platform: "youtube-shorts",
12
+ url: "https://www.youtube.com/shorts/abcDEF_-123",
13
+ title: "Latest reel",
14
+ playLabel: "Load YouTube and play",
15
+ poster: POSTER,
16
+ notice: "YouTube will receive your visit when you press play."
17
+ }
18
+ ) });
19
+ }
20
+ export {
21
+ EmbedFacadeYoutube as default
22
+ };
@@ -0,0 +1,20 @@
1
+ import { EmbedFacade } from "@krizaka/ui/embed-facade";
2
+
3
+ // Nothing is requested from YouTube until the visitor presses the button. The poster is the host's own copy (here inline;
4
+ // in an app, a picture of your own storage or CDN).
5
+ const POSTER = `data:image/svg+xml,${encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 9 16"><rect width="9" height="16" fill="#9fb8cc"/><path d="m0 16 4-8 2 4 1.5-2L9 16Z" fill="#2c5f8a"/></svg>')}`;
6
+
7
+ export default function EmbedFacadeYoutube() {
8
+ return (
9
+ <div className="w-64 max-w-full">
10
+ <EmbedFacade
11
+ platform="youtube-shorts"
12
+ url="https://www.youtube.com/shorts/abcDEF_-123"
13
+ title="Latest reel"
14
+ playLabel="Load YouTube and play"
15
+ poster={POSTER}
16
+ notice="YouTube will receive your visit when you press play."
17
+ />
18
+ </div>
19
+ );
20
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/ui registry; `defaultOpen` opens what it opens (a dialog, a menu, toasts) at load. */
3
+ declare const Example: ComponentType<{ defaultOpen?: boolean }>;
4
+ export default Example;
@@ -0,0 +1,15 @@
1
+ "use client";
2
+
3
+ // registry/examples/margin-layout/findings.tsx
4
+ import { MarginItem, MarginLayout } from "@krizaka/ui/margin-layout";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ function MarginLayoutFindings() {
7
+ return /* @__PURE__ */ jsxs(MarginLayout, { "aria-label": "Findings", children: [
8
+ /* @__PURE__ */ jsx(MarginItem, { number: "1", note: "Clause 4.2, page 3", children: "The deposit is two months of rent, which is above the legal limit." }),
9
+ /* @__PURE__ */ jsx(MarginItem, { number: "2", note: "Clause 9, page 6", children: "The notice period for ending the lease is not stated." }),
10
+ /* @__PURE__ */ jsx(MarginItem, { number: "3", note: "Signature page", children: "The tenant's signature is missing on the last page." })
11
+ ] });
12
+ }
13
+ export {
14
+ MarginLayoutFindings as default
15
+ };
@@ -0,0 +1,18 @@
1
+ import { MarginItem, MarginLayout } from "@krizaka/ui/margin-layout";
2
+
3
+ // Demo data: a fictitious lease check. The note sits in the right margin from 64 rem, under the text below.
4
+ export default function MarginLayoutFindings() {
5
+ return (
6
+ <MarginLayout aria-label="Findings">
7
+ <MarginItem number="1" note="Clause 4.2, page 3">
8
+ The deposit is two months of rent, which is above the legal limit.
9
+ </MarginItem>
10
+ <MarginItem number="2" note="Clause 9, page 6">
11
+ The notice period for ending the lease is not stated.
12
+ </MarginItem>
13
+ <MarginItem number="3" note="Signature page">
14
+ The tenant's signature is missing on the last page.
15
+ </MarginItem>
16
+ </MarginLayout>
17
+ );
18
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/ui registry; `defaultOpen` opens what it opens (a dialog, a menu, toasts) at load. */
3
+ declare const Example: ComponentType<{ defaultOpen?: boolean }>;
4
+ export default Example;
@@ -0,0 +1,15 @@
1
+ "use client";
2
+
3
+ // registry/examples/margin-layout/steps.tsx
4
+ import { MarginItem, MarginLayout } from "@krizaka/ui/margin-layout";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ function MarginLayoutSteps() {
7
+ return /* @__PURE__ */ jsxs(MarginLayout, { "aria-label": "Steps", children: [
8
+ /* @__PURE__ */ jsx(MarginItem, { number: "01", note: "Takes about two minutes.", children: "Add the documents to check." }),
9
+ /* @__PURE__ */ jsx(MarginItem, { number: "02", children: "Choose what to compare them with." }),
10
+ /* @__PURE__ */ jsx(MarginItem, { number: "03", note: "You can change the result before you sign.", children: "Read the report and decide." })
11
+ ] });
12
+ }
13
+ export {
14
+ MarginLayoutSteps as default
15
+ };
@@ -0,0 +1,16 @@
1
+ import { MarginItem, MarginLayout } from "@krizaka/ui/margin-layout";
2
+
3
+ // Demo data: a step flow. A note is optional per item.
4
+ export default function MarginLayoutSteps() {
5
+ return (
6
+ <MarginLayout aria-label="Steps">
7
+ <MarginItem number="01" note="Takes about two minutes.">
8
+ Add the documents to check.
9
+ </MarginItem>
10
+ <MarginItem number="02">Choose what to compare them with.</MarginItem>
11
+ <MarginItem number="03" note="You can change the result before you sign.">
12
+ Read the report and decide.
13
+ </MarginItem>
14
+ </MarginLayout>
15
+ );
16
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/ui registry; `defaultOpen` opens what it opens (a dialog, a menu, toasts) at load. */
3
+ declare const Example: ComponentType<{ defaultOpen?: boolean }>;
4
+ export default Example;
@@ -0,0 +1,14 @@
1
+ "use client";
2
+
3
+ // registry/examples/page/kraft.tsx
4
+ import { PaperGrain, Section } from "@krizaka/ui/page";
5
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
6
+ function PageKraft() {
7
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
8
+ /* @__PURE__ */ jsx(PaperGrain, {}),
9
+ /* @__PURE__ */ jsx(Section, { id: "story", paper: "kraft", spacing: "sm", title: "Our story", lead: "Two walkers, one canal, and a notebook of the dogs we know by name." })
10
+ ] });
11
+ }
12
+ export {
13
+ PageKraft as default
14
+ };
@@ -0,0 +1,12 @@
1
+ import { PaperGrain, Section } from "@krizaka/ui/page";
2
+
3
+ // `kraft`: brown paper, its ink read at 7:1 on the darkest grain point in both themes. Mount `PaperGrain` once in the
4
+ // root layout (one inline SVG filter, a fixed seed, no image); without it the paper is flat, never broken.
5
+ export default function PageKraft() {
6
+ return (
7
+ <>
8
+ <PaperGrain />
9
+ <Section id="story" paper="kraft" spacing="sm" title="Our story" lead="Two walkers, one canal, and a notebook of the dogs we know by name." />
10
+ </>
11
+ );
12
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/ui registry; `defaultOpen` opens what it opens (a dialog, a menu, toasts) at load. */
3
+ declare const Example: ComponentType<{ defaultOpen?: boolean }>;
4
+ export default Example;
@@ -0,0 +1,14 @@
1
+ "use client";
2
+
3
+ // registry/examples/page/papers.tsx
4
+ import { Page, Section } from "@krizaka/ui/page";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ function PagePapers() {
7
+ return /* @__PURE__ */ jsxs("div", { className: "grid w-full gap-4", children: [
8
+ /* @__PURE__ */ jsx(Section, { id: "dot-grid", paper: "dot-grid", spacing: "sm", title: "Dot-grid", lead: "A dot every 24 px: a page to plan on." }),
9
+ /* @__PURE__ */ jsx(Page, { paper: "lines", className: "py-6", children: /* @__PURE__ */ jsx("p", { className: "m-0 text-fg", children: "Lines only: a page to read." }) })
10
+ ] });
11
+ }
12
+ export {
13
+ PagePapers as default
14
+ };
@@ -0,0 +1,13 @@
1
+ import { Page, Section } from "@krizaka/ui/page";
2
+
3
+ // `paper`: ruled (Seyès) · lines · dot-grid · kraft. Absent = plain. Text stays on the page's paper, never on a texture.
4
+ export default function PagePapers() {
5
+ return (
6
+ <div className="grid w-full gap-4">
7
+ <Section id="dot-grid" paper="dot-grid" spacing="sm" title="Dot-grid" lead="A dot every 24 px: a page to plan on." />
8
+ <Page paper="lines" className="py-6">
9
+ <p className="m-0 text-fg">Lines only: a page to read.</p>
10
+ </Page>
11
+ </div>
12
+ );
13
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/ui registry; `defaultOpen` opens what it opens (a dialog, a menu, toasts) at load. */
3
+ declare const Example: ComponentType<{ defaultOpen?: boolean }>;
4
+ export default Example;
@@ -0,0 +1,12 @@
1
+ "use client";
2
+
3
+ // registry/examples/retro-tv/facade.tsx
4
+ import { EmbedFacade } from "@krizaka/ui/embed-facade";
5
+ import { RetroTv } from "@krizaka/ui/retro-tv";
6
+ import { jsx } from "react/jsx-runtime";
7
+ function RetroTvFacade() {
8
+ return /* @__PURE__ */ jsx("div", { className: "w-72 max-w-full", children: /* @__PURE__ */ jsx(RetroTv, { title: "Latest reel", channel: "CH 3 \xB7 Plateau", children: /* @__PURE__ */ jsx(EmbedFacade, { platform: "instagram", url: "https://www.instagram.com/reel/C1abcDEF123/", title: "Latest reel", playLabel: "Load Instagram and play" }) }) });
9
+ }
10
+ export {
11
+ RetroTvFacade as default
12
+ };
@@ -0,0 +1,13 @@
1
+ import { EmbedFacade } from "@krizaka/ui/embed-facade";
2
+ import { RetroTv } from "@krizaka/ui/retro-tv";
3
+
4
+ // The latest reel of a platform on the shop's television: the screen shows the facade, nothing loads before the click.
5
+ export default function RetroTvFacade() {
6
+ return (
7
+ <div className="w-72 max-w-full">
8
+ <RetroTv title="Latest reel" channel="CH 3 · Plateau">
9
+ <EmbedFacade platform="instagram" url="https://www.instagram.com/reel/C1abcDEF123/" title="Latest reel" playLabel="Load Instagram and play" />
10
+ </RetroTv>
11
+ </div>
12
+ );
13
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/ui registry; `defaultOpen` opens what it opens (a dialog, a menu, toasts) at load. */
3
+ declare const Example: ComponentType<{ defaultOpen?: boolean }>;
4
+ export default Example;
@@ -0,0 +1,23 @@
1
+ "use client";
2
+
3
+ // registry/examples/reviews/card.tsx
4
+ import { ReviewCard } from "@krizaka/ui/reviews";
5
+ import { jsx } from "react/jsx-runtime";
6
+ function ReviewsCard() {
7
+ return /* @__PURE__ */ jsx("div", { className: "max-w-md", children: /* @__PURE__ */ jsx(
8
+ ReviewCard,
9
+ {
10
+ author: "Camille L.",
11
+ date: "octobre 2026",
12
+ dateTime: "2026-10",
13
+ service: "Coupe femme",
14
+ rating: 5,
15
+ ratingText: "5 sur 5",
16
+ text: "Une coupe exactement comme je l'imaginais, et un salon o\xF9 l'on se sent chez soi.",
17
+ reply: { label: "R\xE9ponse du salon", author: "Ma\xEBlle", text: "Merci Camille, \xE0 tr\xE8s bient\xF4t !" }
18
+ }
19
+ ) });
20
+ }
21
+ export {
22
+ ReviewsCard as default
23
+ };
@@ -0,0 +1,19 @@
1
+ import { ReviewCard } from "@krizaka/ui/reviews";
2
+
3
+ // One review: first name and initial, the month, the service, the rating, the words — and the owner's reply, indented.
4
+ export default function ReviewsCard() {
5
+ return (
6
+ <div className="max-w-md">
7
+ <ReviewCard
8
+ author="Camille L."
9
+ date="octobre 2026"
10
+ dateTime="2026-10"
11
+ service="Coupe femme"
12
+ rating={5}
13
+ ratingText="5 sur 5"
14
+ text="Une coupe exactement comme je l'imaginais, et un salon où l'on se sent chez soi."
15
+ reply={{ label: "Réponse du salon", author: "Maëlle", text: "Merci Camille, à très bientôt !" }}
16
+ />
17
+ </div>
18
+ );
19
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/ui registry; `defaultOpen` opens what it opens (a dialog, a menu, toasts) at load. */
3
+ declare const Example: ComponentType<{ defaultOpen?: boolean }>;
4
+ export default Example;
@@ -0,0 +1,23 @@
1
+ "use client";
2
+
3
+ // registry/examples/reviews/summary.tsx
4
+ import { ReviewSummary } from "@krizaka/ui/reviews";
5
+ import { jsx } from "react/jsx-runtime";
6
+ function ReviewsSummary() {
7
+ return /* @__PURE__ */ jsx(
8
+ ReviewSummary,
9
+ {
10
+ score: 4.8,
11
+ count: 27,
12
+ distribution: [0, 1, 2, 4, 20],
13
+ minCount: 5,
14
+ scoreText: "4,8 / 5",
15
+ countText: "27 avis v\xE9rifi\xE9s",
16
+ summaryText: "4,8 sur 5, 27 avis v\xE9rifi\xE9s",
17
+ starText: (stars, n) => `${stars} \xE9toiles : ${n} avis`
18
+ }
19
+ );
20
+ }
21
+ export {
22
+ ReviewsSummary as default
23
+ };
@@ -0,0 +1,17 @@
1
+ import { ReviewSummary } from "@krizaka/ui/reviews";
2
+
3
+ // The shop's score as a stamp, the verified count and five meters. Nothing is drawn under the host's `minCount`.
4
+ export default function ReviewsSummary() {
5
+ return (
6
+ <ReviewSummary
7
+ score={4.8}
8
+ count={27}
9
+ distribution={[0, 1, 2, 4, 20]}
10
+ minCount={5}
11
+ scoreText="4,8 / 5"
12
+ countText="27 avis vérifiés"
13
+ summaryText="4,8 sur 5, 27 avis vérifiés"
14
+ starText={(stars, n) => `${stars} étoiles : ${n} avis`}
15
+ />
16
+ );
17
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/ui registry; `defaultOpen` opens what it opens (a dialog, a menu, toasts) at load. */
3
+ declare const Example: ComponentType<{ defaultOpen?: boolean }>;
4
+ export default Example;
@@ -0,0 +1,19 @@
1
+ "use client";
2
+
3
+ // registry/examples/separator/hand.tsx
4
+ import { Separator } from "@krizaka/ui/separator";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ function SeparatorHand() {
7
+ return /* @__PURE__ */ jsxs("div", { className: "flex w-80 flex-col gap-5 text-sm text-fg", children: [
8
+ /* @__PURE__ */ jsx("p", { children: "Services" }),
9
+ /* @__PURE__ */ jsx(Separator, { variant: "hand", shape: "stroke" }),
10
+ /* @__PURE__ */ jsx("p", { children: "The wall" }),
11
+ /* @__PURE__ */ jsx(Separator, { variant: "hand", shape: "wave" }),
12
+ /* @__PURE__ */ jsx("p", { children: "Hours" }),
13
+ /* @__PURE__ */ jsx(Separator, { variant: "hand", shape: "dash", tone: "ink" }),
14
+ /* @__PURE__ */ jsx("p", { children: "Reviews" })
15
+ ] });
16
+ }
17
+ export {
18
+ SeparatorHand as default
19
+ };
@@ -0,0 +1,16 @@
1
+ import { Separator } from "@krizaka/ui/separator";
2
+
3
+ // `variant="hand"`: drawn by hand, three shapes, 6 px tall, the page's hue at 60 % (or the ink). Decorative.
4
+ export default function SeparatorHand() {
5
+ return (
6
+ <div className="flex w-80 flex-col gap-5 text-sm text-fg">
7
+ <p>Services</p>
8
+ <Separator variant="hand" shape="stroke" />
9
+ <p>The wall</p>
10
+ <Separator variant="hand" shape="wave" />
11
+ <p>Hours</p>
12
+ <Separator variant="hand" shape="dash" tone="ink" />
13
+ <p>Reviews</p>
14
+ </div>
15
+ );
16
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/ui registry; `defaultOpen` opens what it opens (a dialog, a menu, toasts) at load. */
3
+ declare const Example: ComponentType<{ defaultOpen?: boolean }>;
4
+ export default Example;
@@ -0,0 +1,15 @@
1
+ "use client";
2
+
3
+ // registry/examples/service-card/index-card.tsx
4
+ import { CardGrid } from "@krizaka/ui/card-grid";
5
+ import { ServiceCard } from "@krizaka/ui/service-card";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
+ function ServiceCardIndex() {
8
+ return /* @__PURE__ */ jsxs(CardGrid, { children: [
9
+ /* @__PURE__ */ jsx(ServiceCard, { variant: "index", name: "Coupe femme", duration: "45 min", price: "55,00 $", description: "Shampoing, coupe, s\xE9chage.", included: ["Consultation", "Coiffage"], actionLabel: "Choisir", href: "#book" }),
10
+ /* @__PURE__ */ jsx(ServiceCard, { variant: "index", name: "Couleur", duration: "90 min", priceFrom: "D\xE8s", price: "95,00 $", description: "Racines ou couleur compl\xE8te.", actionLabel: "Choisir", href: "#book" })
11
+ ] });
12
+ }
13
+ export {
14
+ ServiceCardIndex as default
15
+ };
@@ -0,0 +1,12 @@
1
+ import { CardGrid } from "@krizaka/ui/card-grid";
2
+ import { ServiceCard } from "@krizaka/ui/service-card";
3
+
4
+ // `variant="index"`: a stamped index card — ruled, straight, a punched hole, the duration and the price as stamps.
5
+ export default function ServiceCardIndex() {
6
+ return (
7
+ <CardGrid>
8
+ <ServiceCard variant="index" name="Coupe femme" duration="45 min" price="55,00 $" description="Shampoing, coupe, séchage." included={["Consultation", "Coiffage"]} actionLabel="Choisir" href="#book" />
9
+ <ServiceCard variant="index" name="Couleur" duration="90 min" priceFrom="Dès" price="95,00 $" description="Racines ou couleur complète." actionLabel="Choisir" href="#book" />
10
+ </CardGrid>
11
+ );
12
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/ui registry; `defaultOpen` opens what it opens (a dialog, a menu, toasts) at load. */
3
+ declare const Example: ComponentType<{ defaultOpen?: boolean }>;
4
+ export default Example;
@@ -0,0 +1,14 @@
1
+ "use client";
2
+
3
+ // registry/examples/service-card/index-list.tsx
4
+ import { ServiceCard } from "@krizaka/ui/service-card";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ function ServiceCardIndexList() {
7
+ return /* @__PURE__ */ jsxs("div", { className: "grid max-w-2xl gap-4", children: [
8
+ /* @__PURE__ */ jsx(ServiceCard, { variant: "index", density: "list", name: "Solo walk", duration: "30 min", capacity: "1 dog", price: "$22.00", description: "One dog, one walker.", actionLabel: "Book", href: "#book" }),
9
+ /* @__PURE__ */ jsx(ServiceCard, { variant: "index", density: "list", name: "Group walk", duration: "60 min", capacity: "Up to 5 dogs", price: "$22.00", actionLabel: "Book", href: "#book" })
10
+ ] });
11
+ }
12
+ export {
13
+ ServiceCardIndexList as default
14
+ };
@@ -0,0 +1,11 @@
1
+ import { ServiceCard } from "@krizaka/ui/service-card";
2
+
3
+ // `density="list"`: the same card in one column, for a menu of services.
4
+ export default function ServiceCardIndexList() {
5
+ return (
6
+ <div className="grid max-w-2xl gap-4">
7
+ <ServiceCard variant="index" density="list" name="Solo walk" duration="30 min" capacity="1 dog" price="$22.00" description="One dog, one walker." actionLabel="Book" href="#book" />
8
+ <ServiceCard variant="index" density="list" name="Group walk" duration="60 min" capacity="Up to 5 dogs" price="$22.00" actionLabel="Book" href="#book" />
9
+ </div>
10
+ );
11
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/ui registry; `defaultOpen` opens what it opens (a dialog, a menu, toasts) at load. */
3
+ declare const Example: ComponentType<{ defaultOpen?: boolean }>;
4
+ export default Example;
@@ -0,0 +1,23 @@
1
+ "use client";
2
+
3
+ // registry/examples/specimen-tag/facts.tsx
4
+ import { Stamp } from "@krizaka/ui/specimen-tag";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ function SpecimenTagFacts() {
7
+ return /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-6", "data-hue": "cobalt", children: [
8
+ /* @__PURE__ */ jsx(Stamp, { tone: "ink", size: "sm", children: "45 min" }),
9
+ /* @__PURE__ */ jsx(Stamp, { tone: "ink", size: "sm", children: "55 $" }),
10
+ /* @__PURE__ */ jsx(Stamp, { tone: "hue", size: "sm", children: "Plateau" }),
11
+ /* @__PURE__ */ jsx(
12
+ Stamp,
13
+ {
14
+ tone: "hue",
15
+ icon: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ jsx("path", { d: "M2 12c4-1 6-5 6-9 3 3 5 5 5 8s-3 3-5 3-4-1-6-2Z" }) }),
16
+ children: "en ce moment : th\xE9 \xE0 la menthe"
17
+ }
18
+ )
19
+ ] });
20
+ }
21
+ export {
22
+ SpecimenTagFacts as default
23
+ };
@@ -0,0 +1,18 @@
1
+ import { Stamp } from "@krizaka/ui/specimen-tag";
2
+
3
+ // `ink` and `hue` tones, `size="sm"` (the frame stays askew, the text is straight) and a decorative glyph.
4
+ export default function SpecimenTagFacts() {
5
+ return (
6
+ <div className="flex flex-wrap items-center gap-6" data-hue="cobalt">
7
+ <Stamp tone="ink" size="sm">45 min</Stamp>
8
+ <Stamp tone="ink" size="sm">55 $</Stamp>
9
+ <Stamp tone="hue" size="sm">Plateau</Stamp>
10
+ <Stamp
11
+ tone="hue"
12
+ icon={<svg viewBox="0 0 16 16" fill="none" stroke="currentColor" strokeWidth="1.5"><path d="M2 12c4-1 6-5 6-9 3 3 5 5 5 8s-3 3-5 3-4-1-6-2Z" /></svg>}
13
+ >
14
+ en ce moment : thé à la menthe
15
+ </Stamp>
16
+ </div>
17
+ );
18
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/ui registry; `defaultOpen` opens what it opens (a dialog, a menu, toasts) at load. */
3
+ declare const Example: ComponentType<{ defaultOpen?: boolean }>;
4
+ export default Example;
@@ -0,0 +1,25 @@
1
+ "use client";
2
+
3
+ // registry/examples/stat/strip.tsx
4
+ import { StatGrid } from "@krizaka/ui/stat";
5
+ import { jsx } from "react/jsx-runtime";
6
+ var line = (points) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 64 18", width: 64, height: 18, fill: "none", stroke: "currentColor", strokeWidth: "1.5", "aria-hidden": true, children: /* @__PURE__ */ jsx("polyline", { points }) });
7
+ function StatStrip() {
8
+ return /* @__PURE__ */ jsx(
9
+ StatGrid,
10
+ {
11
+ variant: "strip",
12
+ className: "max-w-[26rem]",
13
+ "aria-label": "Activity, last 30 days",
14
+ items: [
15
+ { id: "runs", label: "Checks run", value: "128", trend: "up", trendLabel: "+12 %", chart: line("0,15 13,11 26,13 39,7 52,5 64,2") },
16
+ { id: "flagged", label: "Flagged", value: "9", trend: "down", trendLabel: "\u22122", chart: line("0,4 13,8 26,5 39,11 52,12 64,14") },
17
+ { id: "time", label: "Average time", value: "42 s", trend: "flat", trendLabel: "same", chart: line("0,9 13,9 26,8 39,9 52,9 64,9") },
18
+ { id: "credits", label: "Credits used", value: "310", trend: "up", trendLabel: "+4 %", chart: line("0,14 13,12 26,12 39,9 52,9 64,6") }
19
+ ]
20
+ }
21
+ );
22
+ }
23
+ export {
24
+ StatStrip as default
25
+ };
@@ -0,0 +1,25 @@
1
+ import { StatGrid } from "@krizaka/ui/stat";
2
+
3
+ // A sparkline of @krizaka/charts goes in `chart` (64 × 18); here a plain line stands in for it.
4
+ const line = (points: string) => (
5
+ <svg viewBox="0 0 64 18" width={64} height={18} fill="none" stroke="currentColor" strokeWidth="1.5" aria-hidden>
6
+ <polyline points={points} />
7
+ </svg>
8
+ );
9
+
10
+ // The discreet activity of a side column: four figures in one row, each with its shape and its trend in words (demo data).
11
+ export default function StatStrip() {
12
+ return (
13
+ <StatGrid
14
+ variant="strip"
15
+ className="max-w-[26rem]"
16
+ aria-label="Activity, last 30 days"
17
+ items={[
18
+ { id: "runs", label: "Checks run", value: "128", trend: "up", trendLabel: "+12 %", chart: line("0,15 13,11 26,13 39,7 52,5 64,2") },
19
+ { id: "flagged", label: "Flagged", value: "9", trend: "down", trendLabel: "−2", chart: line("0,4 13,8 26,5 39,11 52,12 64,14") },
20
+ { id: "time", label: "Average time", value: "42 s", trend: "flat", trendLabel: "same", chart: line("0,9 13,9 26,8 39,9 52,9 64,9") },
21
+ { id: "credits", label: "Credits used", value: "310", trend: "up", trendLabel: "+4 %", chart: line("0,14 13,12 26,12 39,9 52,9 64,6") },
22
+ ]}
23
+ />
24
+ );
25
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/ui registry; `defaultOpen` opens what it opens (a dialog, a menu, toasts) at load. */
3
+ declare const Example: ComponentType<{ defaultOpen?: boolean }>;
4
+ export default Example;
@@ -0,0 +1,16 @@
1
+ "use client";
2
+
3
+ // registry/examples/sticky-action/hide-while-visible.tsx
4
+ import { Button } from "@krizaka/ui/button";
5
+ import { StickyAction } from "@krizaka/ui/sticky-action";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
+ function StickyActionHideWhileVisible() {
8
+ return /* @__PURE__ */ jsxs("main", { className: "flex h-[28rem] flex-col overflow-auto", children: [
9
+ /* @__PURE__ */ jsx("div", { className: "p-4", children: /* @__PURE__ */ jsx(Button, { id: "hero-book", size: "lg", variant: "primary", children: "Book" }) }),
10
+ /* @__PURE__ */ jsx("p", { className: "m-0 h-[40rem] p-4 text-fg-secondary", children: "The page scrolls here\u2026" }),
11
+ /* @__PURE__ */ jsx(StickyAction, { hideWhileVisible: "#hero-book", children: /* @__PURE__ */ jsx(Button, { size: "lg", variant: "primary", children: "Book" }) })
12
+ ] });
13
+ }
14
+ export {
15
+ StickyActionHideWhileVisible as default
16
+ };
@@ -0,0 +1,17 @@
1
+ import { Button } from "@krizaka/ui/button";
2
+ import { StickyAction } from "@krizaka/ui/sticky-action";
3
+
4
+ // `hideWhileVisible`: while the page's own « Book » is on screen the bar is hidden, so a phone never shows two at once.
5
+ export default function StickyActionHideWhileVisible() {
6
+ return (
7
+ <main className="flex h-[28rem] flex-col overflow-auto">
8
+ <div className="p-4">
9
+ <Button id="hero-book" size="lg" variant="primary">Book</Button>
10
+ </div>
11
+ <p className="m-0 h-[40rem] p-4 text-fg-secondary">The page scrolls here…</p>
12
+ <StickyAction hideWhileVisible="#hero-book">
13
+ <Button size="lg" variant="primary">Book</Button>
14
+ </StickyAction>
15
+ </main>
16
+ );
17
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/ui registry; `defaultOpen` opens what it opens (a dialog, a menu, toasts) at load. */
3
+ declare const Example: ComponentType<{ defaultOpen?: boolean }>;
4
+ export default Example;