@krizaka/ui 3.73.0 → 3.75.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 (369) hide show
  1. package/README.md +4 -10
  2. package/dist/{RotatingWord-COSabR2c.d.ts → RotatingWord-D3tpDLE4.d.ts} +1 -1
  3. package/dist/account-menu.d.ts +1 -1
  4. package/dist/account-menu.js +1 -1
  5. package/dist/account-settings.d.ts +1 -1
  6. package/dist/account-settings.js +1 -1
  7. package/dist/app-frame.d.ts +2 -5
  8. package/dist/avatar/defaults.d.ts +2 -2
  9. package/dist/avatar/defaults.js +1 -5
  10. package/dist/avatar/defaults.js.map +1 -1
  11. package/dist/{avatar-B_na7r1U.d.ts → avatar-CNV6ld8l.d.ts} +2 -2
  12. package/dist/avatar.d.ts +2 -2
  13. package/dist/avatar.js +1 -5
  14. package/dist/avatar.js.map +1 -1
  15. package/dist/blocks.css +4 -4
  16. package/dist/chat.js +1 -1
  17. package/dist/{chunk-5MPPIGCB.js → chunk-E46AEUPH.js} +1 -5
  18. package/dist/chunk-E46AEUPH.js.map +1 -0
  19. package/dist/{chunk-TISDOZH3.js → chunk-IOTY5HYG.js} +1 -5
  20. package/dist/chunk-IOTY5HYG.js.map +1 -0
  21. package/dist/chunk-PGPNYYE2.js +286 -0
  22. package/dist/chunk-PGPNYYE2.js.map +1 -0
  23. package/dist/{chunk-GRVIZTT2.js → chunk-RI3AA2E3.js} +3 -3
  24. package/dist/{chunk-Y5YBTHVD.js → chunk-SG3QJJXE.js} +6 -12
  25. package/dist/chunk-SG3QJJXE.js.map +1 -0
  26. package/dist/{chunk-4JO5GSSD.js → chunk-VA4NPCUQ.js} +2 -2
  27. package/dist/chunk-VA4NPCUQ.js.map +1 -0
  28. package/dist/{chunk-E4FMPPDL.js → chunk-WC3SO4CE.js} +2 -2
  29. package/dist/{chunk-T5NZSKWT.js → chunk-YQWYGQTV.js} +38 -41
  30. package/dist/chunk-YQWYGQTV.js.map +1 -0
  31. package/dist/{chunk-M3GEYLMR.js → chunk-ZPOVOEO3.js} +1 -2
  32. package/dist/collection-switcher.d.ts +1 -1
  33. package/dist/data-table.js +3 -3
  34. package/dist/{default-avatar-BL0nJFti.d.ts → default-avatar-Bh4atFDo.d.ts} +2 -2
  35. package/dist/elephant.d.ts +2 -2
  36. package/dist/elephant.js +2 -3
  37. package/dist/elephant.js.map +1 -1
  38. package/dist/engine-flow.js +29 -21
  39. package/dist/engine-flow.js.map +1 -1
  40. package/dist/entity-header.d.ts +1 -1
  41. package/dist/filter-bar.d.ts +9 -1
  42. package/dist/filter-bar.js +1 -1
  43. package/dist/gallery-page.js +3 -3
  44. package/dist/genui.js +101 -35
  45. package/dist/genui.js.map +1 -1
  46. package/dist/index.d.ts +7 -51
  47. package/dist/index.js +2 -12
  48. package/dist/index.js.map +1 -1
  49. package/dist/{lightbox-D5NAHFEA.js → lightbox-Q45BZ3HW.js} +3 -3
  50. package/dist/map.js +0 -120
  51. package/dist/map.js.map +1 -1
  52. package/dist/match-dialog.js +3 -3
  53. package/dist/motion.css +3 -120
  54. package/dist/motion.d.ts +1 -1
  55. package/dist/motion.js +1 -1
  56. package/dist/native/list.js +1 -1
  57. package/dist/native/list.js.map +1 -1
  58. package/dist/native/map.js +0 -120
  59. package/dist/native/map.js.map +1 -1
  60. package/dist/native.d.ts +7 -111
  61. package/dist/native.js +988 -1436
  62. package/dist/native.js.map +1 -1
  63. package/dist/nav-bar.d.ts +1 -1
  64. package/dist/nav-bar.js +2 -2
  65. package/dist/product-page.js +3 -3
  66. package/dist/rail-nav.d.ts +2 -5
  67. package/dist/shop-gallery.js +1 -1
  68. package/dist/site-cahier.d.ts +3 -11
  69. package/dist/site-cahier.js +126 -367
  70. package/dist/site-cahier.js.map +1 -1
  71. package/dist/site-footer.d.ts +1 -1
  72. package/dist/site-footer.js +2 -2
  73. package/dist/{sites-CEnywB89.d.ts → sites-CVNSirrg.d.ts} +3 -11
  74. package/dist/sites.d.ts +7 -15
  75. package/dist/sites.js +4 -10
  76. package/dist/sites.js.map +1 -1
  77. package/dist/tag-selector.js +28 -21
  78. package/dist/tag-selector.js.map +1 -1
  79. package/dist/vertical-video.js +2 -2
  80. package/dist/waveform.js.map +1 -1
  81. package/package.json +5 -109
  82. package/registry/account-menu.json +1 -1
  83. package/registry/account-settings.json +1 -1
  84. package/registry/achievement.json +1 -1
  85. package/registry/action-bar.json +1 -1
  86. package/registry/activity-feed.json +1 -1
  87. package/registry/agenda.json +1 -1
  88. package/registry/alert.json +1 -1
  89. package/registry/analysis-report.json +1 -1
  90. package/registry/anatomy-plate.json +1 -1
  91. package/registry/app-frame.json +6 -38
  92. package/registry/app-header.json +1 -1
  93. package/registry/app-shell.json +1 -1
  94. package/registry/argument-card.json +1 -1
  95. package/registry/auth-layout.json +1 -1
  96. package/registry/avatar.json +2 -2
  97. package/registry/badge.json +1 -1
  98. package/registry/bird-plate.json +1 -1
  99. package/registry/button.json +1 -1
  100. package/registry/captcha.json +1 -1
  101. package/registry/card-grid.json +1 -1
  102. package/registry/card.json +1 -1
  103. package/registry/catalogue-page.json +1 -1
  104. package/registry/changelog-page.json +1 -1
  105. package/registry/chapter.json +1 -1
  106. package/registry/chat.json +3 -3
  107. package/registry/checkbox.json +1 -1
  108. package/registry/chip-link.json +1 -1
  109. package/registry/chip-row.json +1 -1
  110. package/registry/chip.json +1 -1
  111. package/registry/choice-grid.json +1 -1
  112. package/registry/code-block.json +1 -1
  113. package/registry/collection-switcher.json +1 -1
  114. package/registry/combobox.json +1 -1
  115. package/registry/command.json +1 -1
  116. package/registry/comparison-table.json +1 -1
  117. package/registry/component-page.json +1 -1
  118. package/registry/confirm-button.json +1 -1
  119. package/registry/contact-page.json +1 -1
  120. package/registry/continue-prompt.json +1 -1
  121. package/registry/copy-button.json +1 -1
  122. package/registry/countdown.json +1 -1
  123. package/registry/cover-hero.json +1 -1
  124. package/registry/cta-panel.json +1 -1
  125. package/registry/dashboard-layout.json +1 -1
  126. package/registry/data-table.json +1 -1
  127. package/registry/date-picker.json +1 -1
  128. package/registry/decision-list.json +1 -1
  129. package/registry/description-list.json +1 -1
  130. package/registry/desktop-window.json +1 -1
  131. package/registry/detail-layout.json +1 -1
  132. package/registry/dialog.json +1 -1
  133. package/registry/docs-article-page.json +1 -1
  134. package/registry/docs-hub-page.json +1 -1
  135. package/registry/docs-layout.json +1 -1
  136. package/registry/docs-nav.json +1 -1
  137. package/registry/document-viewer.json +1 -1
  138. package/registry/doodle.json +1 -1
  139. package/registry/drop-overlay.json +1 -1
  140. package/registry/dropdown-menu.json +1 -1
  141. package/registry/elephant.json +3 -5
  142. package/registry/embed-facade.json +1 -1
  143. package/registry/empty-state.json +1 -1
  144. package/registry/engine-flow.json +3 -4
  145. package/registry/entity-header.json +1 -1
  146. package/registry/environment-notice.json +1 -1
  147. package/registry/error-page.json +1 -1
  148. package/registry/field.json +1 -1
  149. package/registry/file-upload.json +1 -1
  150. package/registry/filter-bar.json +2 -2
  151. package/registry/flock.json +1 -1
  152. package/registry/footnote.json +1 -1
  153. package/registry/force-update-screen.json +1 -1
  154. package/registry/form.json +1 -1
  155. package/registry/gallery-page.json +1 -1
  156. package/registry/genui.json +1 -1
  157. package/registry/glossary-term.json +1 -1
  158. package/registry/glossary.json +1 -1
  159. package/registry/glow-card.json +1 -1
  160. package/registry/goal-gauge.json +1 -1
  161. package/registry/grade-stamp.json +1 -1
  162. package/registry/image-cropper.json +1 -1
  163. package/registry/index.json +11 -246
  164. package/registry/kanban.json +1 -1
  165. package/registry/kbd.json +1 -1
  166. package/registry/kind-config-editor.json +1 -1
  167. package/registry/kpi-explained.json +1 -1
  168. package/registry/landing-page.json +1 -1
  169. package/registry/landscape.json +1 -1
  170. package/registry/language-switch.json +1 -1
  171. package/registry/legal-page.json +1 -1
  172. package/registry/link-card.json +1 -1
  173. package/registry/list.json +1 -1
  174. package/registry/loader.json +1 -1
  175. package/registry/longform-page.json +1 -1
  176. package/registry/maintenance-screen.json +1 -1
  177. package/registry/map.json +2 -2
  178. package/registry/margin-layout.json +1 -1
  179. package/registry/markdown.json +1 -1
  180. package/registry/marketing-layout.json +1 -1
  181. package/registry/mascot-quote.json +1 -1
  182. package/registry/mascot-state.json +1 -1
  183. package/registry/mascots.json +1 -1
  184. package/registry/match-dialog.json +3 -3
  185. package/registry/media-capture.json +1 -1
  186. package/registry/media-gallery.json +3 -14
  187. package/registry/meter.json +1 -1
  188. package/registry/money-input.json +1 -1
  189. package/registry/nav-bar.json +6 -38
  190. package/registry/next-actions.json +1 -1
  191. package/registry/notification-preferences.json +1 -1
  192. package/registry/number-ticker.json +1 -1
  193. package/registry/opening-hours.json +3 -4
  194. package/registry/page-header.json +1 -1
  195. package/registry/page-hero.json +1 -1
  196. package/registry/page-index.json +1 -1
  197. package/registry/page.json +1 -1
  198. package/registry/pagination.json +1 -1
  199. package/registry/pointer-light.json +1 -1
  200. package/registry/popover.json +1 -1
  201. package/registry/price-catalogue-editor.json +1 -1
  202. package/registry/pricing-page.json +1 -1
  203. package/registry/product-page.json +2 -6
  204. package/registry/profile-card.json +1 -1
  205. package/registry/progress.json +1 -1
  206. package/registry/promise-card.json +1 -1
  207. package/registry/promo-code-field.json +1 -1
  208. package/registry/proposal.json +1 -1
  209. package/registry/qr-code.json +1 -1
  210. package/registry/quota-meter.json +1 -1
  211. package/registry/radio-group.json +1 -1
  212. package/registry/rail-nav.json +6 -38
  213. package/registry/recipes.json +1 -1
  214. package/registry/retro-tv.json +2 -3
  215. package/registry/reviews.json +1 -1
  216. package/registry/router.json +1 -1
  217. package/registry/schema-form.json +1 -1
  218. package/registry/scroll-stage.json +1 -1
  219. package/registry/search-field.json +1 -1
  220. package/registry/section-backdrop.json +1 -1
  221. package/registry/separator.json +1 -1
  222. package/registry/service-card.json +1 -1
  223. package/registry/settings-layout.json +1 -1
  224. package/registry/shop-composer.json +1 -1
  225. package/registry/shop-gallery.json +3 -8
  226. package/registry/shop.json +2 -2
  227. package/registry/showcase.json +2 -7
  228. package/registry/signature.json +1 -1
  229. package/registry/site-cahier.json +1 -1
  230. package/registry/site-footer.json +6 -38
  231. package/registry/sites.json +3 -3
  232. package/registry/skeleton.json +1 -1
  233. package/registry/skip-link.json +1 -1
  234. package/registry/slider.json +1 -1
  235. package/registry/slot-picker.json +1 -1
  236. package/registry/slot.json +1 -1
  237. package/registry/specimen-tag.json +1 -1
  238. package/registry/speed-lines.json +1 -1
  239. package/registry/spinner.json +1 -1
  240. package/registry/split-view.json +1 -1
  241. package/registry/stage-banner.json +1 -1
  242. package/registry/stat.json +1 -1
  243. package/registry/status-chip.json +1 -1
  244. package/registry/status-page.json +1 -1
  245. package/registry/step-progress.json +1 -1
  246. package/registry/step-showcase.json +1 -1
  247. package/registry/stepper.json +1 -1
  248. package/registry/sticky-action.json +1 -1
  249. package/registry/stuck.json +1 -1
  250. package/registry/swipe-deck.json +4 -5
  251. package/registry/switch.json +1 -1
  252. package/registry/tabs.json +1 -1
  253. package/registry/tag-input.json +1 -1
  254. package/registry/tag-selector.json +2 -2
  255. package/registry/taped-photo.json +1 -1
  256. package/registry/terminal-replay.json +1 -1
  257. package/registry/text-style.json +1 -1
  258. package/registry/theme.json +1 -1
  259. package/registry/toast.json +1 -1
  260. package/registry/toc.json +1 -1
  261. package/registry/tooltip.json +1 -1
  262. package/registry/tree-view.json +1 -1
  263. package/registry/update-prompt.json +1 -1
  264. package/registry/upload-queue.json +1 -1
  265. package/registry/usage.json +1 -1
  266. package/registry/verified-badge.json +1 -1
  267. package/registry/versus-card.json +1 -1
  268. package/registry/vertical-video.json +2 -6
  269. package/registry/video-player.json +2 -7
  270. package/registry/video-trimmer.json +3 -4
  271. package/registry/virtual.json +1 -1
  272. package/registry/wall.json +3 -9
  273. package/registry/waveform.json +4 -9
  274. package/dist/audio-player.d.ts +0 -115
  275. package/dist/audio-player.js +0 -211
  276. package/dist/audio-player.js.map +0 -1
  277. package/dist/chunk-4JO5GSSD.js.map +0 -1
  278. package/dist/chunk-5MPPIGCB.js.map +0 -1
  279. package/dist/chunk-B2HS5EAH.js +0 -527
  280. package/dist/chunk-B2HS5EAH.js.map +0 -1
  281. package/dist/chunk-T5NZSKWT.js.map +0 -1
  282. package/dist/chunk-TISDOZH3.js.map +0 -1
  283. package/dist/chunk-Y5YBTHVD.js.map +0 -1
  284. package/dist/chunk-YKOLME7R.js +0 -126
  285. package/dist/chunk-YKOLME7R.js.map +0 -1
  286. package/dist/how-it-works-page.d.ts +0 -49
  287. package/dist/how-it-works-page.js +0 -28
  288. package/dist/how-it-works-page.js.map +0 -1
  289. package/dist/iso.d.ts +0 -401
  290. package/dist/iso.js +0 -363
  291. package/dist/iso.js.map +0 -1
  292. package/dist/marquee.d.ts +0 -34
  293. package/dist/marquee.js +0 -52
  294. package/dist/marquee.js.map +0 -1
  295. package/dist/media-grid.d.ts +0 -246
  296. package/dist/media-grid.js +0 -468
  297. package/dist/media-grid.js.map +0 -1
  298. package/dist/meta-row.d.ts +0 -55
  299. package/dist/meta-row.js +0 -35
  300. package/dist/meta-row.js.map +0 -1
  301. package/dist/photo-grid.d.ts +0 -123
  302. package/dist/photo-grid.js +0 -94
  303. package/dist/photo-grid.js.map +0 -1
  304. package/registry/audio-player.json +0 -300
  305. package/registry/examples/audio-player/podcast.d.ts +0 -4
  306. package/registry/examples/audio-player/podcast.js +0 -22
  307. package/registry/examples/audio-player/podcast.tsx +0 -19
  308. package/registry/examples/audio-player/voice-note.d.ts +0 -4
  309. package/registry/examples/audio-player/voice-note.js +0 -12
  310. package/registry/examples/audio-player/voice-note.tsx +0 -12
  311. package/registry/examples/how-it-works-page/orazaka.d.ts +0 -4
  312. package/registry/examples/how-it-works-page/orazaka.js +0 -30
  313. package/registry/examples/how-it-works-page/orazaka.tsx +0 -26
  314. package/registry/examples/iso/compose.d.ts +0 -4
  315. package/registry/examples/iso/compose.js +0 -22
  316. package/registry/examples/iso/compose.tsx +0 -19
  317. package/registry/examples/iso/creator-hero.d.ts +0 -4
  318. package/registry/examples/iso/creator-hero.js +0 -29
  319. package/registry/examples/iso/creator-hero.tsx +0 -23
  320. package/registry/examples/iso/orazaka-hero.d.ts +0 -4
  321. package/registry/examples/iso/orazaka-hero.js +0 -26
  322. package/registry/examples/iso/orazaka-hero.tsx +0 -21
  323. package/registry/examples/iso/still.d.ts +0 -4
  324. package/registry/examples/iso/still.js +0 -21
  325. package/registry/examples/iso/still.tsx +0 -15
  326. package/registry/examples/marquee/cards.d.ts +0 -4
  327. package/registry/examples/marquee/cards.js +0 -23
  328. package/registry/examples/marquee/cards.tsx +0 -21
  329. package/registry/examples/marquee/logos.d.ts +0 -4
  330. package/registry/examples/marquee/logos.js +0 -12
  331. package/registry/examples/marquee/logos.tsx +0 -17
  332. package/registry/examples/media-grid/feed.d.ts +0 -4
  333. package/registry/examples/media-grid/feed.js +0 -32
  334. package/registry/examples/media-grid/feed.tsx +0 -31
  335. package/registry/examples/media-grid/loading.d.ts +0 -4
  336. package/registry/examples/media-grid/loading.js +0 -28
  337. package/registry/examples/media-grid/loading.tsx +0 -25
  338. package/registry/examples/media-grid/uniform.d.ts +0 -4
  339. package/registry/examples/media-grid/uniform.js +0 -29
  340. package/registry/examples/media-grid/uniform.tsx +0 -26
  341. package/registry/examples/meta-row/native/video.d.ts +0 -4
  342. package/registry/examples/meta-row/native/video.dark.png +0 -0
  343. package/registry/examples/meta-row/native/video.js +0 -11
  344. package/registry/examples/meta-row/native/video.light.png +0 -0
  345. package/registry/examples/meta-row/native/video.tsx +0 -5
  346. package/registry/examples/meta-row/status.d.ts +0 -4
  347. package/registry/examples/meta-row/status.js +0 -12
  348. package/registry/examples/meta-row/status.tsx +0 -7
  349. package/registry/examples/meta-row/video.d.ts +0 -4
  350. package/registry/examples/meta-row/video.js +0 -12
  351. package/registry/examples/meta-row/video.tsx +0 -7
  352. package/registry/examples/photo-grid/native/profile-photos.d.ts +0 -4
  353. package/registry/examples/photo-grid/native/profile-photos.dark.png +0 -0
  354. package/registry/examples/photo-grid/native/profile-photos.js +0 -27
  355. package/registry/examples/photo-grid/native/profile-photos.light.png +0 -0
  356. package/registry/examples/photo-grid/native/profile-photos.tsx +0 -24
  357. package/registry/examples/photo-grid/profile-photos.d.ts +0 -4
  358. package/registry/examples/photo-grid/profile-photos.js +0 -28
  359. package/registry/examples/photo-grid/profile-photos.tsx +0 -25
  360. package/registry/how-it-works-page.json +0 -258
  361. package/registry/iso.json +0 -1371
  362. package/registry/marquee.json +0 -241
  363. package/registry/media-grid.json +0 -1034
  364. package/registry/meta-row.json +0 -218
  365. package/registry/photo-grid.json +0 -316
  366. /package/dist/{chunk-GRVIZTT2.js.map → chunk-RI3AA2E3.js.map} +0 -0
  367. /package/dist/{chunk-E4FMPPDL.js.map → chunk-WC3SO4CE.js.map} +0 -0
  368. /package/dist/{chunk-M3GEYLMR.js.map → chunk-ZPOVOEO3.js.map} +0 -0
  369. /package/dist/{lightbox-D5NAHFEA.js.map → lightbox-Q45BZ3HW.js.map} +0 -0
@@ -1,23 +0,0 @@
1
- import { IsoHub } from "@krizaka/ui/iso";
2
-
3
- // The creator at the centre; tips, unlocks, auctions and challenges flow toward them — and 90 % stays theirs.
4
- export default function IsoCreatorHero() {
5
- return (
6
- <IsoHub
7
- label="Every support flows to the creator"
8
- description="A creator at the centre receives tips, unlocks, auction bids and challenge pledges; 90 % of each goes to them."
9
- className="w-full max-w-xl"
10
- shape="hex"
11
- size={110}
12
- layers={[{ label: "Community", height: 16 }, { label: "Creator", height: 44, material: "accent2" }]}
13
- core="Payouts"
14
- highlight={{ strong: "90 %", text: "to the creator" }}
15
- satellites={[
16
- { label: "Tips", glyph: "coin", value: "+ €5" },
17
- { label: "Unlocks", glyph: "lock", value: "+ €3" },
18
- { label: "Auctions", glyph: "arrow", value: "€120" },
19
- { label: "Challenges", glyph: "flag", value: "€40" },
20
- ]}
21
- />
22
- );
23
- }
@@ -1,4 +0,0 @@
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;
@@ -1,26 +0,0 @@
1
- "use client";
2
-
3
- // registry/examples/iso/orazaka-hero.tsx
4
- import { IsoHub } from "@krizaka/ui/iso";
5
- import { jsx } from "react/jsx-runtime";
6
- function IsoOrazakaHero() {
7
- return /* @__PURE__ */ jsx(
8
- IsoHub,
9
- {
10
- label: "Your AI runs on your own servers",
11
- description: "A stack of three servers \u2014 gateway, models, data \u2014 under a dome; chats and documents flow in, answers flow out.",
12
- className: "w-full max-w-xl",
13
- dome: "Your infrastructure",
14
- layers: [{ label: "Data" }, { label: "Models" }, { label: "Gateway" }],
15
- core: "Orchestrator",
16
- satellites: [
17
- { label: "Chats", glyph: "dots", flow: "in" },
18
- { label: "Documents", glyph: "lines", flow: "in", material: "glass" },
19
- { label: "Answers", glyph: "arrow", flow: "out" }
20
- ]
21
- }
22
- );
23
- }
24
- export {
25
- IsoOrazakaHero as default
26
- };
@@ -1,21 +0,0 @@
1
- import { IsoHub } from "@krizaka/ui/iso";
2
-
3
- // Sovereign servers under a dome: three stages, a lit core, requests and documents flowing in, answers flowing out.
4
- // Wrap it in `.brand-orazaka` (or any brand) and the light follows the brand's accent.
5
- export default function IsoOrazakaHero() {
6
- return (
7
- <IsoHub
8
- label="Your AI runs on your own servers"
9
- description="A stack of three servers — gateway, models, data — under a dome; chats and documents flow in, answers flow out."
10
- className="w-full max-w-xl"
11
- dome="Your infrastructure"
12
- layers={[{ label: "Data" }, { label: "Models" }, { label: "Gateway" }]}
13
- core="Orchestrator"
14
- satellites={[
15
- { label: "Chats", glyph: "dots", flow: "in" },
16
- { label: "Documents", glyph: "lines", flow: "in", material: "glass" },
17
- { label: "Answers", glyph: "arrow", flow: "out" },
18
- ]}
19
- />
20
- );
21
- }
@@ -1,4 +0,0 @@
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;
@@ -1,21 +0,0 @@
1
- "use client";
2
-
3
- // registry/examples/iso/still.tsx
4
- import { IsoHub } from "@krizaka/ui/iso";
5
- import { jsx } from "react/jsx-runtime";
6
- function IsoStill() {
7
- return /* @__PURE__ */ jsx(
8
- IsoHub,
9
- {
10
- label: "A server under a dome",
11
- className: "w-full max-w-sm",
12
- animated: false,
13
- dome: true,
14
- layers: [{}, {}],
15
- satellites: [{ label: "Requests", glyph: "dots" }, { label: "Files", glyph: "lines", material: "glass" }]
16
- }
17
- );
18
- }
19
- export {
20
- IsoStill as default
21
- };
@@ -1,15 +0,0 @@
1
- import { IsoHub } from "@krizaka/ui/iso";
2
-
3
- // `animated={false}`: the still frame — the picture prefers-reduced-motion shows, composed, never cut mid-way.
4
- export default function IsoStill() {
5
- return (
6
- <IsoHub
7
- label="A server under a dome"
8
- className="w-full max-w-sm"
9
- animated={false}
10
- dome
11
- layers={[{}, {}]}
12
- satellites={[{ label: "Requests", glyph: "dots" }, { label: "Files", glyph: "lines", material: "glass" }]}
13
- />
14
- );
15
- }
@@ -1,4 +0,0 @@
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;
@@ -1,23 +0,0 @@
1
- "use client";
2
-
3
- // registry/examples/marquee/cards.tsx
4
- import { Marquee } from "@krizaka/ui/marquee";
5
- import { jsx, jsxs } from "react/jsx-runtime";
6
- var quotes = [
7
- { who: "Maya, illustrator", text: "My supporters see exactly where their tip goes." },
8
- { who: "Eric, filmmaker", text: "I sold a cut to the highest bidder, live." },
9
- { who: "Sam, musician", text: "90 % to me \u2014 and it shows on every payout." }
10
- ];
11
- function MarqueeCards() {
12
- return /* @__PURE__ */ jsx(Marquee, { label: "What creators say", pauseLabel: "Pause", playLabel: "Play", direction: "right", speed: 24, className: "w-full max-w-2xl", children: quotes.map((q) => /* @__PURE__ */ jsxs("figure", { className: "w-72 rounded-xl border border-border-default bg-surface-1 p-4", children: [
13
- /* @__PURE__ */ jsxs("blockquote", { className: "text-sm text-fg", children: [
14
- "\u201C",
15
- q.text,
16
- "\u201D"
17
- ] }),
18
- /* @__PURE__ */ jsx("figcaption", { className: "mt-2 text-xs text-fg-secondary", children: q.who })
19
- ] }, q.who)) });
20
- }
21
- export {
22
- MarqueeCards as default
23
- };
@@ -1,21 +0,0 @@
1
- import { Marquee } from "@krizaka/ui/marquee";
2
-
3
- const quotes = [
4
- { who: "Maya, illustrator", text: "My supporters see exactly where their tip goes." },
5
- { who: "Eric, filmmaker", text: "I sold a cut to the highest bidder, live." },
6
- { who: "Sam, musician", text: "90 % to me — and it shows on every payout." },
7
- ];
8
-
9
- // Cards sliding the other way, slower; each card's text is read once (the copy is hidden from assistive technology).
10
- export default function MarqueeCards() {
11
- return (
12
- <Marquee label="What creators say" pauseLabel="Pause" playLabel="Play" direction="right" speed={24} className="w-full max-w-2xl">
13
- {quotes.map((q) => (
14
- <figure key={q.who} className="w-72 rounded-xl border border-border-default bg-surface-1 p-4">
15
- <blockquote className="text-sm text-fg">“{q.text}”</blockquote>
16
- <figcaption className="mt-2 text-xs text-fg-secondary">{q.who}</figcaption>
17
- </figure>
18
- ))}
19
- </Marquee>
20
- );
21
- }
@@ -1,4 +0,0 @@
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;
@@ -1,12 +0,0 @@
1
- "use client";
2
-
3
- // registry/examples/marquee/logos.tsx
4
- import { Marquee } from "@krizaka/ui/marquee";
5
- import { jsx } from "react/jsx-runtime";
6
- var names = ["Postgres", "Ollama", "Spring", "Kafka", "Keycloak", "Qdrant", "MinIO", "Grafana"];
7
- function MarqueeLogos() {
8
- return /* @__PURE__ */ jsx(Marquee, { label: "Built on open source", pauseLabel: "Pause the band", playLabel: "Play the band", className: "w-full max-w-2xl", children: names.map((name) => /* @__PURE__ */ jsx("span", { className: "font-display text-lg font-semibold text-fg-secondary", children: name }, name)) });
9
- }
10
- export {
11
- MarqueeLogos as default
12
- };
@@ -1,17 +0,0 @@
1
- import { Marquee } from "@krizaka/ui/marquee";
2
-
3
- const names = ["Postgres", "Ollama", "Spring", "Kafka", "Keycloak", "Qdrant", "MinIO", "Grafana"];
4
-
5
- // A band of names at 40 px/s: it pauses under the pointer or the focus, and its pause button (top right, on hover or
6
- // focus) stops it for good. Under reduced motion it is a still row you scroll.
7
- export default function MarqueeLogos() {
8
- return (
9
- <Marquee label="Built on open source" pauseLabel="Pause the band" playLabel="Play the band" className="w-full max-w-2xl">
10
- {names.map((name) => (
11
- <span key={name} className="font-display text-lg font-semibold text-fg-secondary">
12
- {name}
13
- </span>
14
- ))}
15
- </Marquee>
16
- );
17
- }
@@ -1,4 +0,0 @@
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;
@@ -1,32 +0,0 @@
1
- "use client";
2
-
3
- // registry/examples/media-grid/feed.tsx
4
- import { Badge } from "@krizaka/ui/badge";
5
- import { MediaGrid, VideoCard } from "@krizaka/ui/media-grid";
6
- import { jsx } from "react/jsx-runtime";
7
- var CDN = "https://krizaka-assets.b-cdn.net/site";
8
- var WIDE = `${CDN}/products/orazaka/gallery`;
9
- var TALL = `${CDN}/docs/orochia/mobile`;
10
- var CLIPS = [
11
- { id: "tea", title: "Pouring the mint tea, slow", poster: `${WIDE}/tea-pour.d69c3a5700.webp`, tall: false },
12
- { id: "story", title: "Backstage, a minute before", poster: `${TALL}/clip-feed-stories-poster.fd7835fa74.webp`, tall: true },
13
- { id: "snow", title: "First snow on rue Saint-Denis", poster: `${WIDE}/mtl-snow.e3ecb20e82.webp`, tall: false },
14
- { id: "watch", title: "The unlock in one tap", poster: `${TALL}/clip-watch-poster.9fc5d19c39.webp`, tall: true },
15
- { id: "desert", title: "Desert camp at blue hour", poster: `${WIDE}/desert-camp.78c6c0d26c.webp`, tall: false },
16
- { id: "thanks", title: "Three ways to say thanks", poster: `${TALL}/clip-unlock-poster.57e13fee5f.webp`, tall: true }
17
- ];
18
- function MediaGridFeed() {
19
- return /* @__PURE__ */ jsx(
20
- MediaGrid,
21
- {
22
- items: CLIPS,
23
- getId: (c) => c.id,
24
- orientationOf: (c) => c.tall ? "portrait" : "landscape",
25
- shelf: { label: "Shorts", previousLabel: "Previous shorts", nextLabel: "Next shorts", seeAll: { href: "#shorts", label: "See all" } },
26
- renderItem: (c, { aspect, layout }) => /* @__PURE__ */ jsx(VideoCard, { href: `#${c.id}`, title: c.title, aspect, layout, poster: c.poster, duration: "0:12", meta: "12.4K views", creator: { name: "Camille" }, badges: /* @__PURE__ */ jsx(Badge, { tone: "success", size: "sm", className: "bg-scrim", children: "Free" }) })
27
- }
28
- );
29
- }
30
- export {
31
- MediaGridFeed as default
32
- };
@@ -1,31 +0,0 @@
1
- "use client";
2
-
3
- import { Badge } from "@krizaka/ui/badge";
4
- import { MediaGrid, VideoCard } from "@krizaka/ui/media-grid";
5
-
6
- const CDN = "https://krizaka-assets.b-cdn.net/site";
7
- const WIDE = `${CDN}/products/orazaka/gallery`;
8
- const TALL = `${CDN}/docs/orochia/mobile`;
9
- const CLIPS = [
10
- { id: "tea", title: "Pouring the mint tea, slow", poster: `${WIDE}/tea-pour.d69c3a5700.webp`, tall: false },
11
- { id: "story", title: "Backstage, a minute before", poster: `${TALL}/clip-feed-stories-poster.fd7835fa74.webp`, tall: true },
12
- { id: "snow", title: "First snow on rue Saint-Denis", poster: `${WIDE}/mtl-snow.e3ecb20e82.webp`, tall: false },
13
- { id: "watch", title: "The unlock in one tap", poster: `${TALL}/clip-watch-poster.9fc5d19c39.webp`, tall: true },
14
- { id: "desert", title: "Desert camp at blue hour", poster: `${WIDE}/desert-camp.78c6c0d26c.webp`, tall: false },
15
- { id: "thanks", title: "Three ways to say thanks", poster: `${TALL}/clip-unlock-poster.57e13fee5f.webp`, tall: true },
16
- ];
17
-
18
- // 'split' (the feed default): vertical clips on a Shorts shelf, the others in a 16:9 grid whose cards share one height.
19
- export default function MediaGridFeed() {
20
- return (
21
- <MediaGrid
22
- items={CLIPS}
23
- getId={(c) => c.id}
24
- orientationOf={(c) => (c.tall ? "portrait" : "landscape")}
25
- shelf={{ label: "Shorts", previousLabel: "Previous shorts", nextLabel: "Next shorts", seeAll: { href: "#shorts", label: "See all" } }}
26
- renderItem={(c, { aspect, layout }) => (
27
- <VideoCard href={`#${c.id}`} title={c.title} aspect={aspect} layout={layout} poster={c.poster} duration="0:12" meta="12.4K views" creator={{ name: "Camille" }} badges={<Badge tone="success" size="sm" className="bg-scrim">Free</Badge>} />
28
- )}
29
- />
30
- );
31
- }
@@ -1,4 +0,0 @@
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;
@@ -1,28 +0,0 @@
1
- "use client";
2
-
3
- // registry/examples/media-grid/loading.tsx
4
- import { LoadMore, MediaGridSkeleton } from "@krizaka/ui/media-grid";
5
- import { useState } from "react";
6
- import { jsx, jsxs } from "react/jsx-runtime";
7
- function MediaGridLoading() {
8
- const [loading, setLoading] = useState(false);
9
- return /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-6", children: [
10
- /* @__PURE__ */ jsx(MediaGridSkeleton, { label: "Loading videos", shelfCount: 4, count: 4 }),
11
- /* @__PURE__ */ jsx(
12
- LoadMore,
13
- {
14
- hasMore: true,
15
- loading,
16
- onLoadMore: () => {
17
- setLoading(true);
18
- setTimeout(() => setLoading(false), 1200);
19
- },
20
- label: "Load more",
21
- loadingLabel: "Loading more videos"
22
- }
23
- )
24
- ] });
25
- }
26
- export {
27
- MediaGridLoading as default
28
- };
@@ -1,25 +0,0 @@
1
- "use client";
2
-
3
- import { LoadMore, MediaGridSkeleton } from "@krizaka/ui/media-grid";
4
- import { useState } from "react";
5
-
6
- // The wait, in the shape of the feed: skeleton cards of the real frames (a shelf of 9:16, a grid of 16:9) while the first
7
- // page loads, then `LoadMore` under the list — the next page is asked a screenful before the end, the button never fails.
8
- export default function MediaGridLoading() {
9
- const [loading, setLoading] = useState(false);
10
- return (
11
- <div className="flex flex-col gap-6">
12
- <MediaGridSkeleton label="Loading videos" shelfCount={4} count={4} />
13
- <LoadMore
14
- hasMore
15
- loading={loading}
16
- onLoadMore={() => {
17
- setLoading(true);
18
- setTimeout(() => setLoading(false), 1200);
19
- }}
20
- label="Load more"
21
- loadingLabel="Loading more videos"
22
- />
23
- </div>
24
- );
25
- }
@@ -1,4 +0,0 @@
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;
@@ -1,29 +0,0 @@
1
- "use client";
2
-
3
- // registry/examples/media-grid/uniform.tsx
4
- import { MediaGrid, VideoCard } from "@krizaka/ui/media-grid";
5
- import { jsx } from "react/jsx-runtime";
6
- var CDN = "https://krizaka-assets.b-cdn.net/site";
7
- var CLIPS = [
8
- { id: "tea", title: "Pouring the mint tea, slow", poster: `${CDN}/products/orazaka/gallery/tea-pour.d69c3a5700.webp`, portrait: false },
9
- { id: "story", title: "Backstage, a minute before", poster: `${CDN}/docs/orochia/mobile/clip-feed-stories-poster.fd7835fa74.webp`, portrait: true },
10
- { id: "snow", title: "First snow on rue Saint-Denis", poster: `${CDN}/products/orazaka/gallery/mtl-snow.e3ecb20e82.webp`, portrait: false },
11
- { id: "watch", title: "The unlock in one tap", poster: `${CDN}/docs/orochia/mobile/clip-watch-poster.9fc5d19c39.webp`, portrait: true }
12
- ];
13
- function MediaGridUniform() {
14
- return /* @__PURE__ */ jsx(
15
- MediaGrid,
16
- {
17
- mode: "uniform",
18
- frame: "landscape",
19
- items: CLIPS,
20
- getId: (c) => c.id,
21
- orientationOf: (c) => c.portrait ? "portrait" : "landscape",
22
- shelf: { label: "Shorts", previousLabel: "Previous", nextLabel: "Next" },
23
- renderItem: (c, { aspect, layout, mismatch }) => /* @__PURE__ */ jsx(VideoCard, { href: `#${c.id}`, title: c.title, aspect, layout, fit: mismatch ? "contain" : "cover", poster: c.poster, meta: "2.4K views" })
24
- }
25
- );
26
- }
27
- export {
28
- MediaGridUniform as default
29
- };
@@ -1,26 +0,0 @@
1
- "use client";
2
-
3
- import { MediaGrid, VideoCard } from "@krizaka/ui/media-grid";
4
-
5
- const CDN = "https://krizaka-assets.b-cdn.net/site";
6
- const CLIPS = [
7
- { id: "tea", title: "Pouring the mint tea, slow", poster: `${CDN}/products/orazaka/gallery/tea-pour.d69c3a5700.webp`, portrait: false },
8
- { id: "story", title: "Backstage, a minute before", poster: `${CDN}/docs/orochia/mobile/clip-feed-stories-poster.fd7835fa74.webp`, portrait: true },
9
- { id: "snow", title: "First snow on rue Saint-Denis", poster: `${CDN}/products/orazaka/gallery/mtl-snow.e3ecb20e82.webp`, portrait: false },
10
- { id: "watch", title: "The unlock in one tap", poster: `${CDN}/docs/orochia/mobile/clip-watch-poster.9fc5d19c39.webp`, portrait: true },
11
- ];
12
-
13
- // 'uniform': one frame for everyone; a clip of the other orientation is drawn whole over a blurred copy of itself.
14
- export default function MediaGridUniform() {
15
- return (
16
- <MediaGrid
17
- mode="uniform"
18
- frame="landscape"
19
- items={CLIPS}
20
- getId={(c) => c.id}
21
- orientationOf={(c) => (c.portrait ? "portrait" : "landscape")}
22
- shelf={{ label: "Shorts", previousLabel: "Previous", nextLabel: "Next" }}
23
- renderItem={(c, { aspect, layout, mismatch }) => <VideoCard href={`#${c.id}`} title={c.title} aspect={aspect} layout={layout} fit={mismatch ? "contain" : "cover"} poster={c.poster} meta="2.4K views" />}
24
- />
25
- );
26
- }
@@ -1,4 +0,0 @@
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;
@@ -1,11 +0,0 @@
1
- "use client";
2
-
3
- // registry/examples/meta-row/native/video.tsx
4
- import { Badge, MetaRow } from "@krizaka/ui/native";
5
- import { jsx } from "react/jsx-runtime";
6
- function NativeMetaRowVideo() {
7
- return /* @__PURE__ */ jsx(MetaRow, { label: "Video", items: ["HD 720p", "9:16", "0:05", "Oct 16, 2026"], chips: [/* @__PURE__ */ jsx(Badge, { tone: "accent", size: "md", children: "AI-generated" }, "ai")] });
8
- }
9
- export {
10
- NativeMetaRowVideo as default
11
- };
@@ -1,5 +0,0 @@
1
- import { Badge, MetaRow } from "@krizaka/ui/native";
2
-
3
- export default function NativeMetaRowVideo() {
4
- return <MetaRow label="Video" items={["HD 720p", "9:16", "0:05", "Oct 16, 2026"]} chips={[<Badge key="ai" tone="accent" size="md">AI-generated</Badge>]} />;
5
- }
@@ -1,4 +0,0 @@
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;
@@ -1,12 +0,0 @@
1
- "use client";
2
-
3
- // registry/examples/meta-row/status.tsx
4
- import { Badge } from "@krizaka/ui/badge";
5
- import { MetaRow } from "@krizaka/ui/meta-row";
6
- import { jsx } from "react/jsx-runtime";
7
- function MetaRowStatus() {
8
- return /* @__PURE__ */ jsx(MetaRow, { "aria-label": "Video", size: "md", items: ["0:05", "Oct 16, 2026", null], chips: [/* @__PURE__ */ jsx(Badge, { tone: "warning", children: "Encoding" }, "s")] });
9
- }
10
- export {
11
- MetaRowStatus as default
12
- };
@@ -1,7 +0,0 @@
1
- import { Badge } from "@krizaka/ui/badge";
2
- import { MetaRow } from "@krizaka/ui/meta-row";
3
-
4
- // A chip only for the state that is not the usual one: here the video is still encoding.
5
- export default function MetaRowStatus() {
6
- return <MetaRow aria-label="Video" size="md" items={["0:05", "Oct 16, 2026", null]} chips={[<Badge key="s" tone="warning">Encoding</Badge>]} />;
7
- }
@@ -1,4 +0,0 @@
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;
@@ -1,12 +0,0 @@
1
- "use client";
2
-
3
- // registry/examples/meta-row/video.tsx
4
- import { Badge } from "@krizaka/ui/badge";
5
- import { MetaRow } from "@krizaka/ui/meta-row";
6
- import { jsx } from "react/jsx-runtime";
7
- function MetaRowVideo() {
8
- return /* @__PURE__ */ jsx(MetaRow, { "aria-label": "Video", items: ["HD 720p", "9:16", "0:05", "24 fps", "Oct 16, 2026"], chips: [/* @__PURE__ */ jsx(Badge, { tone: "accent", size: "md", children: "AI-generated" }, "ai")] });
9
- }
10
- export {
11
- MetaRowVideo as default
12
- };
@@ -1,7 +0,0 @@
1
- import { Badge } from "@krizaka/ui/badge";
2
- import { MetaRow } from "@krizaka/ui/meta-row";
3
-
4
- // Under a title: five short facts and the one chip that matters. Everything is already translated.
5
- export default function MetaRowVideo() {
6
- return <MetaRow aria-label="Video" items={["HD 720p", "9:16", "0:05", "24 fps", "Oct 16, 2026"]} chips={[<Badge key="ai" tone="accent" size="md">AI-generated</Badge>]} />;
7
- }
@@ -1,4 +0,0 @@
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;
@@ -1,27 +0,0 @@
1
- "use client";
2
-
3
- // registry/examples/photo-grid/native/profile-photos.tsx
4
- import { PhotoGrid } from "@krizaka/ui/native";
5
- import { useState } from "react";
6
- import { View } from "react-native";
7
- import { jsx } from "react/jsx-runtime";
8
- var png = (data) => `data:image/png;base64,${data}`;
9
- function NativePhotoGridProfilePhotos() {
10
- const [photos, setPhotos] = useState([
11
- { id: "1", uri: png("iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQCAIAAACtAwlQAAABaklEQVR42mWMy24UQQxF7arqlwLhIbJhwZZf5I/4IISEBIsIRSKTMOmZnp7uqrJ9zYIeIeCsrqzjw+vHDwYCCM6wbfy5gABKatsysJqLuoHciZ2dGE4ApSrbnyidVn06lVyQUrweur5pmAJAqVQGSEGnRb79mD5/H6dzuRq6929fv7t5MTSd+6VUK3Zj/XQ7frkblyJ926jwkIab6yZw3Eq58rzaz6nMq1RVA+3nMmd73nMMfCkJiRBA7u5O7g6QCFfhyLyVRJg89U3bxKiGJsQ+te6pCge+lETYPT3rujalotqkNLSdexRhJk6lshjOWXeH+WE6Z1HAi+p+Pr+czuxtG0PKlZesd+P09f5xd5iKqrlX1cfpGCiqhDdXr9Ja8DSX24f9/eG4VDGAiAzIIrvpwJ6C96FUXrId15Ivxm8MKCpzKUvRUCpXJTOHO/2Nu6uhqocqLMr4V9iAkxoHMzZjgP7XnMjBZvQLMEROG5iV3IMAAAAASUVORK5CYII="), alt: "Elena at the beach" },
12
- { id: "2", uri: png("iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQCAIAAACtAwlQAAABZklEQVR42m3MzW4TUQyGYZ8zZzJpwp8UiQ0SEvfMLXETICqoKrXQdDohyZwZ258/FpPCAryyrUdv6j99ZDAiSALLFhFkULhcLAAWFEEA7ggEhYkiImQwWNx84WY+Vh0OZzVvcn657bq25MQIFlOLYCDOY/1+23/59uN0mrZX3Yf3u3dvX6+7VvhcMvXH/vT5+u7rzcM02XrVOvyqbXZvNjmlYmoMqtpY5+EwjqOae4CHX7XWWTerktOl5OYwR5AkKSSXp6sxP5fcPJHrVWlLA0Rpctc2iYQ5/5RgEHLTlbY0qt6WZrsuQrp5SlJMzRG16r4/98M4qyM4m/eH+mqzyilWTVNUfZr0bn+8vn16eDqqeZDm2A9jEgawe7Eu8zQPx+nmfrh/PNbZERQRBCf1n0NtkhQym/lU59N5nu0ilkFQDaeqddLsamZwB/+Cy5CEhzuym8M9KP8iEQkSjgwAAP9LhCQB/AYQ5Y+kAv/RXgAAAABJRU5ErkJggg=="), alt: "Elena with her guitar" }
13
- ]);
14
- return /* @__PURE__ */ jsx(View, { style: { width: 340 }, children: /* @__PURE__ */ jsx(
15
- PhotoGrid,
16
- {
17
- value: photos,
18
- onValueChange: setPhotos,
19
- onAdd: () => void 0,
20
- required: 2,
21
- labels: { add: "Add a photo", main: "Main", photo: (n) => `Photo ${n}`, makeMain: "Make it the main photo", moveEarlier: "Move earlier", moveLater: "Move later", remove: "Remove", cancel: "Cancel" }
22
- }
23
- ) });
24
- }
25
- export {
26
- NativePhotoGridProfilePhotos as default
27
- };
@@ -1,24 +0,0 @@
1
- import { type GridPhoto, PhotoGrid } from "@krizaka/ui/native";
2
- import { useState } from "react";
3
- import { View } from "react-native";
4
-
5
- const png = (data: string) => `data:image/png;base64,${data}`;
6
-
7
- // A profile's photos: the first is the main one; a tap opens its menu (main, earlier, later, remove).
8
- export default function NativePhotoGridProfilePhotos() {
9
- const [photos, setPhotos] = useState<GridPhoto[]>([
10
- { id: "1", uri: png("iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQCAIAAACtAwlQAAABaklEQVR42mWMy24UQQxF7arqlwLhIbJhwZZf5I/4IISEBIsIRSKTMOmZnp7uqrJ9zYIeIeCsrqzjw+vHDwYCCM6wbfy5gABKatsysJqLuoHciZ2dGE4ApSrbnyidVn06lVyQUrweur5pmAJAqVQGSEGnRb79mD5/H6dzuRq6929fv7t5MTSd+6VUK3Zj/XQ7frkblyJ926jwkIab6yZw3Eq58rzaz6nMq1RVA+3nMmd73nMMfCkJiRBA7u5O7g6QCFfhyLyVRJg89U3bxKiGJsQ+te6pCge+lETYPT3rujalotqkNLSdexRhJk6lshjOWXeH+WE6Z1HAi+p+Pr+czuxtG0PKlZesd+P09f5xd5iKqrlX1cfpGCiqhDdXr9Ja8DSX24f9/eG4VDGAiAzIIrvpwJ6C96FUXrId15Ivxm8MKCpzKUvRUCpXJTOHO/2Nu6uhqocqLMr4V9iAkxoHMzZjgP7XnMjBZvQLMEROG5iV3IMAAAAASUVORK5CYII="), alt: "Elena at the beach" },
11
- { id: "2", uri: png("iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQCAIAAACtAwlQAAABZklEQVR42m3MzW4TUQyGYZ8zZzJpwp8UiQ0SEvfMLXETICqoKrXQdDohyZwZ258/FpPCAryyrUdv6j99ZDAiSALLFhFkULhcLAAWFEEA7ggEhYkiImQwWNx84WY+Vh0OZzVvcn657bq25MQIFlOLYCDOY/1+23/59uN0mrZX3Yf3u3dvX6+7VvhcMvXH/vT5+u7rzcM02XrVOvyqbXZvNjmlYmoMqtpY5+EwjqOae4CHX7XWWTerktOl5OYwR5AkKSSXp6sxP5fcPJHrVWlLA0Rpctc2iYQ5/5RgEHLTlbY0qt6WZrsuQrp5SlJMzRG16r4/98M4qyM4m/eH+mqzyilWTVNUfZr0bn+8vn16eDqqeZDm2A9jEgawe7Eu8zQPx+nmfrh/PNbZERQRBCf1n0NtkhQym/lU59N5nu0ilkFQDaeqddLsamZwB/+Cy5CEhzuym8M9KP8iEQkSjgwAAP9LhCQB/AYQ5Y+kAv/RXgAAAABJRU5ErkJggg=="), alt: "Elena with her guitar" },
12
- ]);
13
- return (
14
- <View style={{ width: 340 }}>
15
- <PhotoGrid
16
- value={photos}
17
- onValueChange={setPhotos}
18
- onAdd={() => undefined}
19
- required={2}
20
- labels={{ add: "Add a photo", main: "Main", photo: (n) => `Photo ${n}`, makeMain: "Make it the main photo", moveEarlier: "Move earlier", moveLater: "Move later", remove: "Remove", cancel: "Cancel" }}
21
- />
22
- </View>
23
- );
24
- }
@@ -1,4 +0,0 @@
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;
@@ -1,28 +0,0 @@
1
- "use client";
2
-
3
- // registry/examples/photo-grid/profile-photos.tsx
4
- import { PhotoGrid } from "@krizaka/ui/photo-grid";
5
- import { useState } from "react";
6
- import { jsx } from "react/jsx-runtime";
7
- var png = (data) => `data:image/png;base64,${data}`;
8
- function PhotoGridProfilePhotos() {
9
- const [photos, setPhotos] = useState([
10
- { id: "1", src: png("iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQCAIAAACtAwlQAAABaklEQVR42mWMy24UQQxF7arqlwLhIbJhwZZf5I/4IISEBIsIRSKTMOmZnp7uqrJ9zYIeIeCsrqzjw+vHDwYCCM6wbfy5gABKatsysJqLuoHciZ2dGE4ApSrbnyidVn06lVyQUrweur5pmAJAqVQGSEGnRb79mD5/H6dzuRq6929fv7t5MTSd+6VUK3Zj/XQ7frkblyJ926jwkIab6yZw3Eq58rzaz6nMq1RVA+3nMmd73nMMfCkJiRBA7u5O7g6QCFfhyLyVRJg89U3bxKiGJsQ+te6pCge+lETYPT3rujalotqkNLSdexRhJk6lshjOWXeH+WE6Z1HAi+p+Pr+czuxtG0PKlZesd+P09f5xd5iKqrlX1cfpGCiqhDdXr9Ja8DSX24f9/eG4VDGAiAzIIrvpwJ6C96FUXrId15Ivxm8MKCpzKUvRUCpXJTOHO/2Nu6uhqocqLMr4V9iAkxoHMzZjgP7XnMjBZvQLMEROG5iV3IMAAAAASUVORK5CYII="), alt: "Elena at the beach" },
11
- { id: "2", src: png("iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQCAIAAACtAwlQAAABZklEQVR42m3MzW4TUQyGYZ8zZzJpwp8UiQ0SEvfMLXETICqoKrXQdDohyZwZ258/FpPCAryyrUdv6j99ZDAiSALLFhFkULhcLAAWFEEA7ggEhYkiImQwWNx84WY+Vh0OZzVvcn657bq25MQIFlOLYCDOY/1+23/59uN0mrZX3Yf3u3dvX6+7VvhcMvXH/vT5+u7rzcM02XrVOvyqbXZvNjmlYmoMqtpY5+EwjqOae4CHX7XWWTerktOl5OYwR5AkKSSXp6sxP5fcPJHrVWlLA0Rpctc2iYQ5/5RgEHLTlbY0qt6WZrsuQrp5SlJMzRG16r4/98M4qyM4m/eH+mqzyilWTVNUfZr0bn+8vn16eDqqeZDm2A9jEgawe7Eu8zQPx+nmfrh/PNbZERQRBCf1n0NtkhQym/lU59N5nu0ilkFQDaeqddLsamZwB/+Cy5CEhzuym8M9KP8iEQkSjgwAAP9LhCQB/AYQ5Y+kAv/RXgAAAABJRU5ErkJggg=="), alt: "Elena with her guitar" },
12
- { id: "3", src: png("iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQCAIAAACtAwlQAAABaUlEQVR42mWRzW5TQRSDZ+bOTdMoFMGCFWx4SR6OF0EgQVWECmqbNOnNvTPnHNssIn6kemVZn+yF84eP30mKFEWCZwMmnROKrAAIShSIAOECKaWUkhIlkTXMzxDdbT614z7M8jCsNi+G8UI5nyEjKKKfpuOP6931Z5uO4+X26t377Zu3w2otqYY5SZjNu/uHr5/2N1+it7paR0QZLy9evs651DAjCes2n9ph58uMcIH9+Njn07De5jL8bXJ4kJSUJEkU4BFmuQzVzUTCXUplXJdhJFCGWuqFlMIjJ1aYE0SEpLrelDpmtzKMw2ojJpinnGuYMcLavOzv2+MDrItAdHvatc3VKqUyjDV697YsD7fT7bf2eIewJCK8H+6VMoBx86paa/1pP/26WXY/oy+JSCklAt774U65kLm4mS/N5+k8lP5IBMJimaK1AnO6E5HOf/0vSQGElzBHhEilZ1ASRXgUAAD0vOYfhd832o14udpJswAAAABJRU5ErkJggg=="), alt: "Elena at a concert" }
13
- ]);
14
- return /* @__PURE__ */ jsx(
15
- PhotoGrid,
16
- {
17
- className: "max-w-sm",
18
- value: photos,
19
- onValueChange: setPhotos,
20
- onAdd: () => void 0,
21
- required: 2,
22
- labels: { add: "Add a photo", main: "Main", photo: (n) => `Photo ${n}`, moveEarlier: "Move earlier", moveLater: "Move later", remove: "Remove", moved: (n) => `Moved to place ${n}` }
23
- }
24
- );
25
- }
26
- export {
27
- PhotoGridProfilePhotos as default
28
- };