@krizaka/ui 3.6.0 → 3.7.1

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 (189) hide show
  1. package/dist/chat.js +2 -1
  2. package/dist/chat.js.map +1 -1
  3. package/dist/{chunk-F2GKFIYK.js → chunk-CURW36FI.js} +1 -1
  4. package/dist/chunk-JXLDUDTD.js +2 -0
  5. package/dist/chunk-JXLDUDTD.js.map +1 -0
  6. package/dist/chunk-NPF3OHE2.js +2 -0
  7. package/dist/chunk-NPF3OHE2.js.map +1 -0
  8. package/dist/{chunk-ECSCA3CN.js → chunk-UOMP6VOZ.js} +1 -1
  9. package/dist/data-table.js +2 -1
  10. package/dist/data-table.js.map +1 -1
  11. package/dist/match-dialog.js +4 -2
  12. package/dist/match-dialog.js.map +1 -1
  13. package/dist/native/vertical-video.d.ts +102 -0
  14. package/dist/native/vertical-video.js +163 -0
  15. package/dist/native/vertical-video.js.map +1 -0
  16. package/dist/vertical-video.d.ts +112 -0
  17. package/dist/vertical-video.js +307 -0
  18. package/dist/vertical-video.js.map +1 -0
  19. package/package.json +39 -5
  20. package/registry/achievement.json +1 -1
  21. package/registry/action-bar.json +1 -1
  22. package/registry/activity-feed.json +1 -1
  23. package/registry/alert.json +1 -1
  24. package/registry/app-shell.json +1 -1
  25. package/registry/argument-card.json +1 -1
  26. package/registry/audio-player.json +1 -1
  27. package/registry/auth-layout.json +1 -1
  28. package/registry/avatar.json +6 -6
  29. package/registry/badge.json +1 -1
  30. package/registry/button.json +1 -1
  31. package/registry/card-grid.json +1 -1
  32. package/registry/card.json +1 -1
  33. package/registry/catalogue-page.json +1 -1
  34. package/registry/changelog-page.json +1 -1
  35. package/registry/chat.json +1 -1
  36. package/registry/checkbox.json +1 -1
  37. package/registry/chip-link.json +1 -1
  38. package/registry/chip.json +1 -1
  39. package/registry/choice-grid.json +1 -1
  40. package/registry/code-block.json +1 -1
  41. package/registry/combobox.json +1 -1
  42. package/registry/command.json +1 -1
  43. package/registry/component-page.json +1 -1
  44. package/registry/confirm-button.json +1 -1
  45. package/registry/contact-page.json +1 -1
  46. package/registry/continue-prompt.json +1 -1
  47. package/registry/countdown.json +1 -1
  48. package/registry/cta-panel.json +1 -1
  49. package/registry/dashboard-layout.json +1 -1
  50. package/registry/data-table.json +1 -1
  51. package/registry/date-picker.json +1 -1
  52. package/registry/decision-list.json +1 -1
  53. package/registry/description-list.json +1 -1
  54. package/registry/detail-layout.json +1 -1
  55. package/registry/dialog.json +1 -1
  56. package/registry/docs-article-page.json +1 -1
  57. package/registry/docs-hub-page.json +1 -1
  58. package/registry/docs-layout.json +1 -1
  59. package/registry/dropdown-menu.json +1 -1
  60. package/registry/empty-state.json +1 -1
  61. package/registry/error-page.json +1 -1
  62. package/registry/examples/avatar/group.js +4 -7
  63. package/registry/examples/avatar/group.tsx +4 -11
  64. package/registry/examples/avatar/native/group.dark.png +0 -0
  65. package/registry/examples/avatar/native/group.js +4 -4
  66. package/registry/examples/avatar/native/group.light.png +0 -0
  67. package/registry/examples/avatar/native/group.tsx +4 -4
  68. package/registry/examples/avatar/native/presence.dark.png +0 -0
  69. package/registry/examples/avatar/native/presence.js +8 -5
  70. package/registry/examples/avatar/native/presence.light.png +0 -0
  71. package/registry/examples/avatar/native/presence.tsx +9 -5
  72. package/registry/examples/avatar/with-image.js +1 -4
  73. package/registry/examples/avatar/with-image.tsx +2 -9
  74. package/registry/examples/profile-card/creator.js +2 -2
  75. package/registry/examples/profile-card/creator.tsx +2 -2
  76. package/registry/examples/profile-card/match.js +2 -2
  77. package/registry/examples/profile-card/match.tsx +2 -2
  78. package/registry/examples/profile-card/native/default.dark.png +0 -0
  79. package/registry/examples/profile-card/native/default.js +2 -2
  80. package/registry/examples/profile-card/native/default.light.png +0 -0
  81. package/registry/examples/profile-card/native/default.tsx +2 -2
  82. package/registry/examples/screen/native/app-shell.dark.png +0 -0
  83. package/registry/examples/screen/native/app-shell.js +1 -1
  84. package/registry/examples/screen/native/app-shell.light.png +0 -0
  85. package/registry/examples/screen/native/app-shell.tsx +1 -1
  86. package/registry/examples/screen/native/feed.dark.png +0 -0
  87. package/registry/examples/screen/native/feed.js +31 -14
  88. package/registry/examples/screen/native/feed.light.png +0 -0
  89. package/registry/examples/screen/native/feed.tsx +28 -24
  90. package/registry/examples/screen/native/profile.dark.png +0 -0
  91. package/registry/examples/screen/native/profile.js +2 -2
  92. package/registry/examples/screen/native/profile.light.png +0 -0
  93. package/registry/examples/screen/native/profile.tsx +2 -2
  94. package/registry/examples/swipe-deck/discover.js +2 -3
  95. package/registry/examples/swipe-deck/discover.tsx +2 -3
  96. package/registry/examples/swipe-deck/native/discover.dark.png +0 -0
  97. package/registry/examples/swipe-deck/native/discover.js +2 -3
  98. package/registry/examples/swipe-deck/native/discover.light.png +0 -0
  99. package/registry/examples/swipe-deck/native/discover.tsx +2 -3
  100. package/registry/examples/vertical-video/feed.d.ts +4 -0
  101. package/registry/examples/vertical-video/feed.js +40 -0
  102. package/registry/examples/vertical-video/feed.tsx +36 -0
  103. package/registry/examples/vertical-video/native/rail.d.ts +4 -0
  104. package/registry/examples/vertical-video/native/rail.dark.png +0 -0
  105. package/registry/examples/vertical-video/native/rail.js +39 -0
  106. package/registry/examples/vertical-video/native/rail.light.png +0 -0
  107. package/registry/examples/vertical-video/native/rail.tsx +37 -0
  108. package/registry/examples/vertical-video/rail.d.ts +4 -0
  109. package/registry/examples/vertical-video/rail.js +39 -0
  110. package/registry/examples/vertical-video/rail.tsx +39 -0
  111. package/registry/field.json +1 -1
  112. package/registry/file-upload.json +1 -1
  113. package/registry/filter-bar.json +1 -1
  114. package/registry/form.json +1 -1
  115. package/registry/gallery-page.json +1 -1
  116. package/registry/glow-card.json +1 -1
  117. package/registry/goal-gauge.json +1 -1
  118. package/registry/how-it-works-page.json +1 -1
  119. package/registry/image-cropper.json +1 -1
  120. package/registry/index.json +27 -4
  121. package/registry/iso.json +1 -1
  122. package/registry/kanban.json +1 -1
  123. package/registry/kbd.json +1 -1
  124. package/registry/landing-page.json +1 -1
  125. package/registry/landscape.json +1 -1
  126. package/registry/legal-page.json +1 -1
  127. package/registry/link-card.json +1 -1
  128. package/registry/list.json +1 -1
  129. package/registry/loader.json +1 -1
  130. package/registry/longform-page.json +1 -1
  131. package/registry/map.json +2 -2
  132. package/registry/marketing-layout.json +1 -1
  133. package/registry/marquee.json +1 -1
  134. package/registry/mascot-quote.json +1 -1
  135. package/registry/mascot-state.json +1 -1
  136. package/registry/mascots.json +1 -1
  137. package/registry/match-dialog.json +1 -1
  138. package/registry/media-capture.json +1 -1
  139. package/registry/meter.json +1 -1
  140. package/registry/nav-bar.json +1 -1
  141. package/registry/number-ticker.json +1 -1
  142. package/registry/page-header.json +1 -1
  143. package/registry/page-hero.json +1 -1
  144. package/registry/page.json +1 -1
  145. package/registry/pagination.json +1 -1
  146. package/registry/photo-grid.json +1 -1
  147. package/registry/pointer-light.json +1 -1
  148. package/registry/popover.json +1 -1
  149. package/registry/pricing-page.json +1 -1
  150. package/registry/product-page.json +1 -1
  151. package/registry/profile-card.json +5 -5
  152. package/registry/progress.json +1 -1
  153. package/registry/promise-card.json +1 -1
  154. package/registry/radio-group.json +1 -1
  155. package/registry/screen.json +5 -5
  156. package/registry/scroll-stage.json +1 -1
  157. package/registry/search-field.json +1 -1
  158. package/registry/section-backdrop.json +1 -1
  159. package/registry/separator.json +1 -1
  160. package/registry/settings-layout.json +1 -1
  161. package/registry/skeleton.json +1 -1
  162. package/registry/skip-link.json +1 -1
  163. package/registry/slider.json +1 -1
  164. package/registry/slot.json +1 -1
  165. package/registry/spinner.json +1 -1
  166. package/registry/split-view.json +1 -1
  167. package/registry/stage-banner.json +1 -1
  168. package/registry/stat.json +1 -1
  169. package/registry/status-page.json +1 -1
  170. package/registry/step-progress.json +1 -1
  171. package/registry/stepper.json +1 -1
  172. package/registry/swipe-deck.json +4 -4
  173. package/registry/switch.json +1 -1
  174. package/registry/tabs.json +1 -1
  175. package/registry/tag-input.json +1 -1
  176. package/registry/tag-selector.json +1 -1
  177. package/registry/terminal-replay.json +1 -1
  178. package/registry/theme.json +1 -1
  179. package/registry/toast.json +1 -1
  180. package/registry/toc.json +1 -1
  181. package/registry/tooltip.json +1 -1
  182. package/registry/tree-view.json +1 -1
  183. package/registry/verified-badge.json +1 -1
  184. package/registry/vertical-video.json +871 -0
  185. package/registry/video-player.json +1 -1
  186. package/registry/video-trimmer.json +1 -1
  187. package/registry/virtual.json +1 -1
  188. /package/dist/{chunk-F2GKFIYK.js.map → chunk-CURW36FI.js.map} +0 -0
  189. /package/dist/{chunk-ECSCA3CN.js.map → chunk-UOMP6VOZ.js.map} +0 -0
@@ -122,7 +122,7 @@
122
122
  },
123
123
  {
124
124
  "path": "meta.ts",
125
- "content": "// The documentation of a component, carried by its code: each primitive has a `meta.ts` beside its source\n// (`src/<name>/meta.ts`; a component that exists only in React Native: `src/native/meta/<name>.ts`). Never built into\n// the package: `scripts/build-registry.mjs` reads them into `registry/<name>.json`, which krizaka.com renders as\n// /docs/ui/<name>, and `scripts/registry.test.mjs` fails when one is missing or incomplete.\n//\n// Why a typed module and not JSDoc tags: the fields are lists and links (`related`, `whenNotToUse[].use`, examples),\n// which a type checks and a comment does not; the file is plain data (erasable TypeScript), so Node reads it without a\n// compiler, and an editor completes it.\n\n/** Every documented component: the web primitives (one entry of the package each) and the native-only ones. */\nexport type ComponentName =\n | \"achievement\"\n | \"action-bar\"\n | \"activity-feed\"\n | \"action-sheet\"\n | \"alert\"\n | \"app-shell\"\n | \"argument-card\"\n | \"audio-player\"\n | \"auth-layout\"\n | \"avatar\"\n | \"badge\"\n | \"button\"\n | \"card\"\n | \"card-grid\"\n | \"catalogue-page\"\n | \"changelog-page\"\n | \"chat\"\n | \"checkbox\"\n | \"chip\"\n | \"chip-link\"\n | \"choice-grid\"\n | \"cn\"\n | \"code-block\"\n | \"combobox\"\n | \"command\"\n | \"component-page\"\n | \"confirm-button\"\n | \"contact-page\"\n | \"continue-prompt\"\n | \"countdown\"\n | \"cta-panel\"\n | \"dashboard-layout\"\n | \"data-table\"\n | \"date-picker\"\n | \"decision-list\"\n | \"description-list\"\n | \"detail-layout\"\n | \"dialog\"\n | \"docs-article-page\"\n | \"docs-hub-page\"\n | \"docs-layout\"\n | \"dropdown-menu\"\n | \"empty-state\"\n | \"error-page\"\n | \"fab\"\n | \"field\"\n | \"file-upload\"\n | \"filter-bar\"\n | \"form\"\n | \"gallery-page\"\n | \"glow-card\"\n | \"goal-gauge\"\n | \"header\"\n | \"how-it-works-page\"\n | \"image-cropper\"\n | \"image-viewer\"\n | \"iso\"\n | \"kanban\"\n | \"kbd\"\n | \"landing-page\"\n | \"landscape\"\n | \"legal-page\"\n | \"link-card\"\n | \"list\"\n | \"loader\"\n | \"map\"\n | \"longform-page\"\n | \"marketing-layout\"\n | \"marquee\"\n | \"mascot-quote\"\n | \"mascot-state\"\n | \"mascots\"\n | \"match-dialog\"\n | \"media-capture\"\n | \"media-picker\"\n | \"meter\"\n | \"nav-bar\"\n | \"number-ticker\"\n | \"onboarding\"\n | \"otp-input\"\n | \"page\"\n | \"page-header\"\n | \"page-hero\"\n | \"pagination\"\n | \"permission-prompt\"\n | \"photo-grid\"\n | \"pointer-light\"\n | \"popover\"\n | \"pricing-page\"\n | \"product-page\"\n | \"profile-card\"\n | \"progress\"\n | \"promise-card\"\n | \"pull-to-refresh\"\n | \"radio-group\"\n | \"screen\"\n | \"scroll-stage\"\n | \"search-field\"\n | \"section-backdrop\"\n | \"segmented\"\n | \"separator\"\n | \"settings-layout\"\n | \"skeleton\"\n | \"skip-link\"\n | \"slider\"\n | \"slot\"\n | \"spinner\"\n | \"split-view\"\n | \"splash-handoff\"\n | \"stage-banner\"\n | \"stat\"\n | \"status-page\"\n | \"step-progress\"\n | \"stepper\"\n | \"swipe-deck\"\n | \"swipeable-row\"\n | \"switch\"\n | \"tab-bar\"\n | \"tabs\"\n | \"tag-input\"\n | \"tag-selector\"\n | \"terminal-replay\"\n | \"theme\"\n | \"toast\"\n | \"toc\"\n | \"tooltip\"\n | \"tree-view\"\n | \"txt\"\n | \"verified-badge\"\n | \"video-player\"\n | \"video-trimmer\"\n | \"virtual\";\n\n/** Where a component exists: `@krizaka/ui/<name>` (web), `@krizaka/ui/native` (React Native), or both. */\nexport type Platform = \"web\" | \"native\" | \"both\";\n\n/**\n * `stable`: its API only changes in a major. `beta`: it may still change in a minor. `deprecated`: no product uses it and\n * no work plans to — it still works, says what replaces it, and goes in the major named by `deprecated.removedIn`.\n */\nexport type Status = \"stable\" | \"beta\" | \"deprecated\";\n\n/** What a deprecated component says (required when `status` is `deprecated`, absent otherwise). */\nexport interface Deprecation {\n /** The version that deprecated it (`3.6.0`). */\n readonly since: string;\n /** The major that removes it (`4.0.0`). */\n readonly removedIn: string;\n /** What replaces it, when a component does. */\n readonly use?: ComponentName;\n /** Why it goes: no product uses it, no planned work needs it. */\n readonly reason: string;\n}\n\n/**\n * The group of the catalogue. `media`: video, sound, camera, files, cropping. `blocks`: the page blocks — the frame,\n * the hero, sections, cards that lead or argue, decisions, code, calls to act — that every page of a site is made of.\n * `layouts`: the shells of whole screens — an application, a dashboard, settings, sign-in, an object, a list and its\n * item, a site's page, a documentation page — each with its screens. `templates`: the page templates — whole pages of a\n * site (a landing, a product, a docs hub, a long read, a changelog, pricing, status, an error…), each a distinct\n * composition of the blocks, words and content as props.\n */\nexport type Category = \"actions\" | \"forms\" | \"navigation\" | \"overlays\" | \"feedback\" | \"data-display\" | \"media\" | \"blocks\" | \"layouts\" | \"templates\" | \"layout\" | \"foundations\";\n\n/** Why a reader needs a template: the seven intents the templates are grouped by (sidebar sub-headings, catalogue filter). */\nexport type TemplatePurpose = \"convince\" | \"explain\" | \"show\" | \"act\" | \"operate\" | \"converse\" | \"recover\";\n\n/** The groups of templates, in reading order: the title, and the one line that says when to come to that group. */\nexport const templatePurposes = {\n convince: { title: \"Convince\", useWhen: \"You come here when a visitor must decide: a landing, a product, a price, a comparison, a proof.\" },\n explain: { title: \"Explain\", useWhen: \"You come here when a reader must understand: how it works, a documentation hub or article, a changelog, a FAQ, a policy.\" },\n show: { title: \"Show\", useWhen: \"You come here when the work itself is the argument: a gallery, a story, a case study, an object and its details.\" },\n act: { title: \"Act\", useWhen: \"You come here when a person must do something once: reach the team, sign in or up, set up, pay.\" },\n operate: { title: \"Operate\", useWhen: \"You come here when a person works every day: a dashboard, a console with a table, settings, an app shell.\" },\n converse: { title: \"Converse\", useWhen: \"You come here when people talk: an inbox, a chat, comments, a notifications centre.\" },\n recover: { title: \"Recover\", useWhen: \"You come here when the way is blocked: an empty list, an error, a missing page, maintenance, a product still being built.\" },\n} as const satisfies Record<TemplatePurpose, { readonly title: string; readonly useWhen: string }>;\n\n/**\n * A named example: the file `registry/examples/<component>/<name>.tsx` (web) or\n * `registry/examples/<component>/native/<name>.tsx` (React Native) — at most 40 lines, imported by the stories and\n * shown (live, with its code) by the documentation.\n */\ninterface ExampleBase {\n /** The file name, kebab-case (`primary`, `icon-button`). */\n readonly name: string;\n /** A short title (`Primary`, `Icon button`). */\n readonly title: string;\n /** One or two sentences: when this variant is the right one. */\n readonly description: string;\n}\n\n/** A plain example, or a template: a whole screen with its intent (`purpose`) and the user goal its layout serves (`why`). */\nexport type Example =\n | (ExampleBase & { readonly template?: false; readonly purpose?: undefined; readonly why?: undefined })\n | (ExampleBase & {\n /**\n * A template: a whole screen of a product composed from the platform (a layout and its blocks, real words, its\n * phone version thought out), copied as a starting point — at most 160 lines, listed on krizaka.com/docs/ui/templates.\n */\n readonly template: true;\n /** The intent that groups it: why you need this block. */\n readonly purpose: TemplatePurpose;\n /** Why this layout: the user goal it serves, in one sentence. */\n readonly why: string;\n });\n\n/** One platform's side of a component. */\nexport interface PlatformDocs {\n /** The names to import (`[\"Button\", \"IconButton\"]`): from `@krizaka/ui/<name>` on the web, `@krizaka/ui/native` in React Native. */\n readonly imports: readonly string[];\n /** The examples, in reading order; the first one is the component's preview. */\n readonly examples: readonly Example[];\n}\n\n/** The React Native side: the same concept, and what differs from the web API. */\nexport interface NativeDocs extends PlatformDocs {\n /**\n * The entry to import from when it is not `@krizaka/ui/native`: a component that needs an Expo module (an optional\n * peer) has its own, `@krizaka/ui/native/<name>`, so an app that does not use it never installs the module.\n */\n readonly entry?: string;\n /** What differs from the web API (`label` instead of children…); empty for a native-only component. */\n readonly differences: readonly string[];\n}\n\nexport interface KeyboardInteraction {\n /** The keys, as written on a keyboard: `Space`, `Enter`, `Arrow keys`, `Esc`, `Tab`. */\n readonly keys: string;\n /** What they do. */\n readonly action: string;\n}\n\nexport interface ComponentMeta {\n /** The display name: `Button`, `Dropdown menu`. */\n readonly title: string;\n /** One sentence: what it is. */\n readonly summary: string;\n readonly status: Status;\n /** Required for, and only for, a `deprecated` component. */\n readonly deprecated?: Deprecation;\n readonly category: Category;\n /** Must match the sides below: `both` ⇔ `web` and `native`. */\n readonly platforms: Platform;\n /** When to reach for it: concrete situations, one per item. */\n readonly whenToUse: readonly string[];\n /** When not to — and what to use instead (`use`), when another component is the answer. */\n readonly whenNotToUse: readonly { readonly when: string; readonly use?: ComponentName }[];\n /** How to use it well: wording, placement, composition. */\n readonly bestPractices: readonly string[];\n readonly accessibility: {\n /** The keyboard, when it does more than Tab and Enter. */\n readonly keyboard: readonly KeyboardInteraction[];\n /** Roles, names and announcements: what the component does, what the app must provide. */\n readonly notes: readonly string[];\n };\n /** The components a reader of this page should know about. */\n readonly related: readonly ComponentName[];\n readonly web?: PlatformDocs;\n readonly native?: NativeDocs;\n}\n"
125
+ "content": "// The documentation of a component, carried by its code: each primitive has a `meta.ts` beside its source\n// (`src/<name>/meta.ts`; a component that exists only in React Native: `src/native/meta/<name>.ts`). Never built into\n// the package: `scripts/build-registry.mjs` reads them into `registry/<name>.json`, which krizaka.com renders as\n// /docs/ui/<name>, and `scripts/registry.test.mjs` fails when one is missing or incomplete.\n//\n// Why a typed module and not JSDoc tags: the fields are lists and links (`related`, `whenNotToUse[].use`, examples),\n// which a type checks and a comment does not; the file is plain data (erasable TypeScript), so Node reads it without a\n// compiler, and an editor completes it.\n\n/** Every documented component: the web primitives (one entry of the package each) and the native-only ones. */\nexport type ComponentName =\n | \"achievement\"\n | \"action-bar\"\n | \"activity-feed\"\n | \"action-sheet\"\n | \"alert\"\n | \"app-shell\"\n | \"argument-card\"\n | \"audio-player\"\n | \"auth-layout\"\n | \"avatar\"\n | \"badge\"\n | \"button\"\n | \"card\"\n | \"card-grid\"\n | \"catalogue-page\"\n | \"changelog-page\"\n | \"chat\"\n | \"checkbox\"\n | \"chip\"\n | \"chip-link\"\n | \"choice-grid\"\n | \"cn\"\n | \"code-block\"\n | \"combobox\"\n | \"command\"\n | \"component-page\"\n | \"confirm-button\"\n | \"contact-page\"\n | \"continue-prompt\"\n | \"countdown\"\n | \"cta-panel\"\n | \"dashboard-layout\"\n | \"data-table\"\n | \"date-picker\"\n | \"decision-list\"\n | \"description-list\"\n | \"detail-layout\"\n | \"dialog\"\n | \"docs-article-page\"\n | \"docs-hub-page\"\n | \"docs-layout\"\n | \"dropdown-menu\"\n | \"empty-state\"\n | \"error-page\"\n | \"fab\"\n | \"field\"\n | \"file-upload\"\n | \"filter-bar\"\n | \"form\"\n | \"gallery-page\"\n | \"glow-card\"\n | \"goal-gauge\"\n | \"header\"\n | \"how-it-works-page\"\n | \"image-cropper\"\n | \"image-viewer\"\n | \"iso\"\n | \"kanban\"\n | \"kbd\"\n | \"landing-page\"\n | \"landscape\"\n | \"legal-page\"\n | \"link-card\"\n | \"list\"\n | \"loader\"\n | \"map\"\n | \"longform-page\"\n | \"marketing-layout\"\n | \"marquee\"\n | \"mascot-quote\"\n | \"mascot-state\"\n | \"mascots\"\n | \"match-dialog\"\n | \"media-capture\"\n | \"media-picker\"\n | \"meter\"\n | \"nav-bar\"\n | \"number-ticker\"\n | \"onboarding\"\n | \"otp-input\"\n | \"page\"\n | \"page-header\"\n | \"page-hero\"\n | \"pagination\"\n | \"permission-prompt\"\n | \"photo-grid\"\n | \"pointer-light\"\n | \"popover\"\n | \"pricing-page\"\n | \"product-page\"\n | \"profile-card\"\n | \"progress\"\n | \"promise-card\"\n | \"pull-to-refresh\"\n | \"radio-group\"\n | \"screen\"\n | \"scroll-stage\"\n | \"search-field\"\n | \"section-backdrop\"\n | \"segmented\"\n | \"separator\"\n | \"settings-layout\"\n | \"skeleton\"\n | \"skip-link\"\n | \"slider\"\n | \"slot\"\n | \"spinner\"\n | \"split-view\"\n | \"splash-handoff\"\n | \"stage-banner\"\n | \"stat\"\n | \"status-page\"\n | \"step-progress\"\n | \"stepper\"\n | \"swipe-deck\"\n | \"swipeable-row\"\n | \"switch\"\n | \"tab-bar\"\n | \"tabs\"\n | \"tag-input\"\n | \"tag-selector\"\n | \"terminal-replay\"\n | \"theme\"\n | \"toast\"\n | \"toc\"\n | \"tooltip\"\n | \"tree-view\"\n | \"txt\"\n | \"verified-badge\"\n | \"vertical-video\"\n | \"video-player\"\n | \"video-trimmer\"\n | \"virtual\";\n\n/** Where a component exists: `@krizaka/ui/<name>` (web), `@krizaka/ui/native` (React Native), or both. */\nexport type Platform = \"web\" | \"native\" | \"both\";\n\n/**\n * `stable`: its API only changes in a major. `beta`: it may still change in a minor. `deprecated`: no product uses it and\n * no work plans to — it still works, says what replaces it, and goes in the major named by `deprecated.removedIn`.\n */\nexport type Status = \"stable\" | \"beta\" | \"deprecated\";\n\n/** What a deprecated component says (required when `status` is `deprecated`, absent otherwise). */\nexport interface Deprecation {\n /** The version that deprecated it (`3.6.0`). */\n readonly since: string;\n /** The major that removes it (`4.0.0`). */\n readonly removedIn: string;\n /** What replaces it, when a component does. */\n readonly use?: ComponentName;\n /** Why it goes: no product uses it, no planned work needs it. */\n readonly reason: string;\n}\n\n/**\n * The group of the catalogue. `media`: video, sound, camera, files, cropping. `blocks`: the page blocks — the frame,\n * the hero, sections, cards that lead or argue, decisions, code, calls to act — that every page of a site is made of.\n * `layouts`: the shells of whole screens — an application, a dashboard, settings, sign-in, an object, a list and its\n * item, a site's page, a documentation page — each with its screens. `templates`: the page templates — whole pages of a\n * site (a landing, a product, a docs hub, a long read, a changelog, pricing, status, an error…), each a distinct\n * composition of the blocks, words and content as props.\n */\nexport type Category = \"actions\" | \"forms\" | \"navigation\" | \"overlays\" | \"feedback\" | \"data-display\" | \"media\" | \"blocks\" | \"layouts\" | \"templates\" | \"layout\" | \"foundations\";\n\n/** Why a reader needs a template: the seven intents the templates are grouped by (sidebar sub-headings, catalogue filter). */\nexport type TemplatePurpose = \"convince\" | \"explain\" | \"show\" | \"act\" | \"operate\" | \"converse\" | \"recover\";\n\n/** The groups of templates, in reading order: the title, and the one line that says when to come to that group. */\nexport const templatePurposes = {\n convince: { title: \"Convince\", useWhen: \"You come here when a visitor must decide: a landing, a product, a price, a comparison, a proof.\" },\n explain: { title: \"Explain\", useWhen: \"You come here when a reader must understand: how it works, a documentation hub or article, a changelog, a FAQ, a policy.\" },\n show: { title: \"Show\", useWhen: \"You come here when the work itself is the argument: a gallery, a story, a case study, an object and its details.\" },\n act: { title: \"Act\", useWhen: \"You come here when a person must do something once: reach the team, sign in or up, set up, pay.\" },\n operate: { title: \"Operate\", useWhen: \"You come here when a person works every day: a dashboard, a console with a table, settings, an app shell.\" },\n converse: { title: \"Converse\", useWhen: \"You come here when people talk: an inbox, a chat, comments, a notifications centre.\" },\n recover: { title: \"Recover\", useWhen: \"You come here when the way is blocked: an empty list, an error, a missing page, maintenance, a product still being built.\" },\n} as const satisfies Record<TemplatePurpose, { readonly title: string; readonly useWhen: string }>;\n\n/**\n * A named example: the file `registry/examples/<component>/<name>.tsx` (web) or\n * `registry/examples/<component>/native/<name>.tsx` (React Native) — at most 40 lines, imported by the stories and\n * shown (live, with its code) by the documentation.\n */\ninterface ExampleBase {\n /** The file name, kebab-case (`primary`, `icon-button`). */\n readonly name: string;\n /** A short title (`Primary`, `Icon button`). */\n readonly title: string;\n /** One or two sentences: when this variant is the right one. */\n readonly description: string;\n}\n\n/** A plain example, or a template: a whole screen with its intent (`purpose`) and the user goal its layout serves (`why`). */\nexport type Example =\n | (ExampleBase & { readonly template?: false; readonly purpose?: undefined; readonly why?: undefined })\n | (ExampleBase & {\n /**\n * A template: a whole screen of a product composed from the platform (a layout and its blocks, real words, its\n * phone version thought out), copied as a starting point — at most 160 lines, listed on krizaka.com/docs/ui/templates.\n */\n readonly template: true;\n /** The intent that groups it: why you need this block. */\n readonly purpose: TemplatePurpose;\n /** Why this layout: the user goal it serves, in one sentence. */\n readonly why: string;\n });\n\n/** One platform's side of a component. */\nexport interface PlatformDocs {\n /** The names to import (`[\"Button\", \"IconButton\"]`): from `@krizaka/ui/<name>` on the web, `@krizaka/ui/native` in React Native. */\n readonly imports: readonly string[];\n /** The examples, in reading order; the first one is the component's preview. */\n readonly examples: readonly Example[];\n}\n\n/** The React Native side: the same concept, and what differs from the web API. */\nexport interface NativeDocs extends PlatformDocs {\n /**\n * The entry to import from when it is not `@krizaka/ui/native`: a component that needs an Expo module (an optional\n * peer) has its own, `@krizaka/ui/native/<name>`, so an app that does not use it never installs the module.\n */\n readonly entry?: string;\n /** What differs from the web API (`label` instead of children…); empty for a native-only component. */\n readonly differences: readonly string[];\n}\n\nexport interface KeyboardInteraction {\n /** The keys, as written on a keyboard: `Space`, `Enter`, `Arrow keys`, `Esc`, `Tab`. */\n readonly keys: string;\n /** What they do. */\n readonly action: string;\n}\n\nexport interface ComponentMeta {\n /** The display name: `Button`, `Dropdown menu`. */\n readonly title: string;\n /** One sentence: what it is. */\n readonly summary: string;\n readonly status: Status;\n /** Required for, and only for, a `deprecated` component. */\n readonly deprecated?: Deprecation;\n readonly category: Category;\n /** Must match the sides below: `both` ⇔ `web` and `native`. */\n readonly platforms: Platform;\n /** When to reach for it: concrete situations, one per item. */\n readonly whenToUse: readonly string[];\n /** When not to — and what to use instead (`use`), when another component is the answer. */\n readonly whenNotToUse: readonly { readonly when: string; readonly use?: ComponentName }[];\n /** How to use it well: wording, placement, composition. */\n readonly bestPractices: readonly string[];\n readonly accessibility: {\n /** The keyboard, when it does more than Tab and Enter. */\n readonly keyboard: readonly KeyboardInteraction[];\n /** Roles, names and announcements: what the component does, what the app must provide. */\n readonly notes: readonly string[];\n };\n /** The components a reader of this page should know about. */\n readonly related: readonly ComponentName[];\n readonly web?: PlatformDocs;\n readonly native?: NativeDocs;\n}\n"
126
126
  }
127
127
  ],
128
128
  "dependencies": [],
@@ -3,16 +3,13 @@
3
3
  // registry/examples/avatar/group.tsx
4
4
  import { Avatar } from "@krizaka/ui/avatar";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
- var PORTRAIT = "data:image/svg+xml;utf8," + encodeURIComponent(
7
- '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><rect width="80" height="80" fill="#3b82f6"/><circle cx="40" cy="31" r="14" fill="#dbeafe"/><path d="M12 80a28 24 0 0 1 56 0z" fill="#dbeafe"/></svg>'
8
- );
9
6
  function AvatarGroup() {
10
7
  return /* @__PURE__ */ jsxs(Avatar.Group, { max: 3, size: "sm", children: [
11
- /* @__PURE__ */ jsx(Avatar, { size: "sm", src: PORTRAIT, alt: "Oussama" }),
8
+ /* @__PURE__ */ jsx(Avatar, { size: "sm", src: "https://krizaka-assets.b-cdn.net/site/people/ui/camille-256.dc2943029a.webp", alt: "Camille Roy" }),
9
+ /* @__PURE__ */ jsx(Avatar, { size: "sm", src: "https://krizaka-assets.b-cdn.net/site/people/ui/noor-256.c340c41421.webp", alt: "Noor Haddad" }),
10
+ /* @__PURE__ */ jsx(Avatar, { size: "sm", src: "https://krizaka-assets.b-cdn.net/site/people/ui/tomas-256.7eaab80903.webp", alt: "Tom\xE1s Ibarra" }),
12
11
  /* @__PURE__ */ jsx(Avatar, { size: "sm", fallback: "LM" }),
13
- /* @__PURE__ */ jsx(Avatar, { size: "sm", fallback: "SK" }),
14
- /* @__PURE__ */ jsx(Avatar, { size: "sm", fallback: "JD" }),
15
- /* @__PURE__ */ jsx(Avatar, { size: "sm", fallback: "AR" })
12
+ /* @__PURE__ */ jsx(Avatar, { size: "sm", src: "https://krizaka-assets.b-cdn.net/site/people/ui/ada-256.31a5ce640c.webp", alt: "Ada Okafor" })
16
13
  ] });
17
14
  }
18
15
  export {
@@ -1,21 +1,14 @@
1
1
  import { Avatar } from "@krizaka/ui/avatar";
2
2
 
3
- const PORTRAIT =
4
- "data:image/svg+xml;utf8," +
5
- encodeURIComponent(
6
- '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><rect width="80" height="80" fill="#3b82f6"/>' +
7
- '<circle cx="40" cy="31" r="14" fill="#dbeafe"/><path d="M12 80a28 24 0 0 1 56 0z" fill="#dbeafe"/></svg>',
8
- );
9
-
10
3
  // `max={3}`: the others become `+n`.
11
4
  export default function AvatarGroup() {
12
5
  return (
13
6
  <Avatar.Group max={3} size="sm">
14
- <Avatar size="sm" src={PORTRAIT} alt="Oussama" />
7
+ <Avatar size="sm" src="https://krizaka-assets.b-cdn.net/site/people/ui/camille-256.dc2943029a.webp" alt="Camille Roy" />
8
+ <Avatar size="sm" src="https://krizaka-assets.b-cdn.net/site/people/ui/noor-256.c340c41421.webp" alt="Noor Haddad" />
9
+ <Avatar size="sm" src="https://krizaka-assets.b-cdn.net/site/people/ui/tomas-256.7eaab80903.webp" alt="Tomás Ibarra" />
15
10
  <Avatar size="sm" fallback="LM" />
16
- <Avatar size="sm" fallback="SK" />
17
- <Avatar size="sm" fallback="JD" />
18
- <Avatar size="sm" fallback="AR" />
11
+ <Avatar size="sm" src="https://krizaka-assets.b-cdn.net/site/people/ui/ada-256.31a5ce640c.webp" alt="Ada Okafor" />
19
12
  </Avatar.Group>
20
13
  );
21
14
  }
@@ -5,10 +5,10 @@ import { Avatar } from "@krizaka/ui/native";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  function NativeAvatarGroup() {
7
7
  return /* @__PURE__ */ jsxs(Avatar.Group, { max: 3, size: "md", children: [
8
- /* @__PURE__ */ jsx(Avatar, { alt: "Maya" }),
9
- /* @__PURE__ */ jsx(Avatar, { alt: "Noor" }),
10
- /* @__PURE__ */ jsx(Avatar, { alt: "Ines" }),
11
- /* @__PURE__ */ jsx(Avatar, { alt: "Theo" }),
8
+ /* @__PURE__ */ jsx(Avatar, { src: "https://krizaka-assets.b-cdn.net/site/people/ui/camille-256.dc2943029a.webp", alt: "Camille" }),
9
+ /* @__PURE__ */ jsx(Avatar, { src: "https://krizaka-assets.b-cdn.net/site/people/ui/noor-256.c340c41421.webp", alt: "Noor" }),
10
+ /* @__PURE__ */ jsx(Avatar, { src: "https://krizaka-assets.b-cdn.net/site/people/ui/tomas-256.7eaab80903.webp", alt: "Tom\xE1s" }),
11
+ /* @__PURE__ */ jsx(Avatar, { src: "https://krizaka-assets.b-cdn.net/site/people/ui/ada-256.31a5ce640c.webp", alt: "Ada" }),
12
12
  /* @__PURE__ */ jsx(Avatar, { alt: "Lou" })
13
13
  ] });
14
14
  }
@@ -3,10 +3,10 @@ import { Avatar } from "@krizaka/ui/native";
3
3
  export default function NativeAvatarGroup() {
4
4
  return (
5
5
  <Avatar.Group max={3} size="md">
6
- <Avatar alt="Maya" />
7
- <Avatar alt="Noor" />
8
- <Avatar alt="Ines" />
9
- <Avatar alt="Theo" />
6
+ <Avatar src="https://krizaka-assets.b-cdn.net/site/people/ui/camille-256.dc2943029a.webp" alt="Camille" />
7
+ <Avatar src="https://krizaka-assets.b-cdn.net/site/people/ui/noor-256.c340c41421.webp" alt="Noor" />
8
+ <Avatar src="https://krizaka-assets.b-cdn.net/site/people/ui/tomas-256.7eaab80903.webp" alt="Tomás" />
9
+ <Avatar src="https://krizaka-assets.b-cdn.net/site/people/ui/ada-256.31a5ce640c.webp" alt="Ada" />
10
10
  <Avatar alt="Lou" />
11
11
  </Avatar.Group>
12
12
  );
@@ -4,13 +4,16 @@
4
4
  import { Avatar } from "@krizaka/ui/native";
5
5
  import { View } from "react-native";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
+ var CAMILLE = "https://krizaka-assets.b-cdn.net/site/people/ui/camille-256.dc2943029a.webp";
8
+ var TOMAS = "https://krizaka-assets.b-cdn.net/site/people/ui/tomas-256.7eaab80903.webp";
9
+ var NOOR = "https://krizaka-assets.b-cdn.net/site/people/ui/noor-256.c340c41421.webp";
7
10
  function NativeAvatarPresence() {
8
11
  return /* @__PURE__ */ jsxs(View, { style: { flexDirection: "row", gap: 16, alignItems: "center" }, children: [
9
- /* @__PURE__ */ jsx(Avatar, { alt: "Elena", size: "lg", presence: "online", presenceLabel: "online" }),
10
- /* @__PURE__ */ jsx(Avatar, { alt: "Alex", size: "lg", presence: "away", presenceLabel: "away" }),
11
- /* @__PURE__ */ jsx(Avatar, { alt: "Mina", size: "lg", presence: "offline", presenceLabel: "offline" }),
12
- /* @__PURE__ */ jsx(Avatar, { alt: "Elena's story, new", size: "lg", ring: "story" }),
13
- /* @__PURE__ */ jsx(Avatar, { alt: "Alex's story, seen", size: "lg", ring: "seen" })
12
+ /* @__PURE__ */ jsx(Avatar, { src: CAMILLE, alt: "Camille", size: "lg", presence: "online", presenceLabel: "online" }),
13
+ /* @__PURE__ */ jsx(Avatar, { src: TOMAS, alt: "Tom\xE1s", size: "lg", presence: "away", presenceLabel: "away" }),
14
+ /* @__PURE__ */ jsx(Avatar, { src: NOOR, alt: "Noor", size: "lg", presence: "offline", presenceLabel: "offline" }),
15
+ /* @__PURE__ */ jsx(Avatar, { src: CAMILLE, alt: "Camille's story, new", size: "lg", ring: "story" }),
16
+ /* @__PURE__ */ jsx(Avatar, { src: TOMAS, alt: "Tom\xE1s's story, seen", size: "lg", ring: "seen" })
14
17
  ] });
15
18
  }
16
19
  export {
@@ -1,15 +1,19 @@
1
1
  import { Avatar } from "@krizaka/ui/native";
2
2
  import { View } from "react-native";
3
3
 
4
+ const CAMILLE = "https://krizaka-assets.b-cdn.net/site/people/ui/camille-256.dc2943029a.webp";
5
+ const TOMAS = "https://krizaka-assets.b-cdn.net/site/people/ui/tomas-256.7eaab80903.webp";
6
+ const NOOR = "https://krizaka-assets.b-cdn.net/site/people/ui/noor-256.c340c41421.webp";
7
+
4
8
  // Presence in Messages, story rings in the rail: the dot and the ring are said with the name.
5
9
  export default function NativeAvatarPresence() {
6
10
  return (
7
11
  <View style={{ flexDirection: "row", gap: 16, alignItems: "center" }}>
8
- <Avatar alt="Elena" size="lg" presence="online" presenceLabel="online" />
9
- <Avatar alt="Alex" size="lg" presence="away" presenceLabel="away" />
10
- <Avatar alt="Mina" size="lg" presence="offline" presenceLabel="offline" />
11
- <Avatar alt="Elena's story, new" size="lg" ring="story" />
12
- <Avatar alt="Alex's story, seen" size="lg" ring="seen" />
12
+ <Avatar src={CAMILLE} alt="Camille" size="lg" presence="online" presenceLabel="online" />
13
+ <Avatar src={TOMAS} alt="Tomás" size="lg" presence="away" presenceLabel="away" />
14
+ <Avatar src={NOOR} alt="Noor" size="lg" presence="offline" presenceLabel="offline" />
15
+ <Avatar src={CAMILLE} alt="Camille's story, new" size="lg" ring="story" />
16
+ <Avatar src={TOMAS} alt="Tomás's story, seen" size="lg" ring="seen" />
13
17
  </View>
14
18
  );
15
19
  }
@@ -3,11 +3,8 @@
3
3
  // registry/examples/avatar/with-image.tsx
4
4
  import { Avatar } from "@krizaka/ui/avatar";
5
5
  import { jsx } from "react/jsx-runtime";
6
- var PORTRAIT = "data:image/svg+xml;utf8," + encodeURIComponent(
7
- '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><rect width="80" height="80" fill="#3b82f6"/><circle cx="40" cy="31" r="14" fill="#dbeafe"/><path d="M12 80a28 24 0 0 1 56 0z" fill="#dbeafe"/></svg>'
8
- );
9
6
  function AvatarWithImage() {
10
- return /* @__PURE__ */ jsx(Avatar, { src: PORTRAIT, alt: "Oussama", fallback: "OA" });
7
+ return /* @__PURE__ */ jsx(Avatar, { src: "https://krizaka-assets.b-cdn.net/site/people/ui/ada-256.31a5ce640c.webp", alt: "Ada Okafor", fallback: "AO" });
11
8
  }
12
9
  export {
13
10
  AvatarWithImage as default
@@ -1,13 +1,6 @@
1
1
  import { Avatar } from "@krizaka/ui/avatar";
2
2
 
3
- // A self-contained portrait (no network).
4
- const PORTRAIT =
5
- "data:image/svg+xml;utf8," +
6
- encodeURIComponent(
7
- '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><rect width="80" height="80" fill="#3b82f6"/>' +
8
- '<circle cx="40" cy="31" r="14" fill="#dbeafe"/><path d="M12 80a28 24 0 0 1 56 0z" fill="#dbeafe"/></svg>',
9
- );
10
-
3
+ // A portrait: the image when it loads, the initials while it loads or when it fails.
11
4
  export default function AvatarWithImage() {
12
- return <Avatar src={PORTRAIT} alt="Oussama" fallback="OA" />;
5
+ return <Avatar src="https://krizaka-assets.b-cdn.net/site/people/ui/ada-256.31a5ce640c.webp" alt="Ada Okafor" fallback="AO" />;
13
6
  }
@@ -9,9 +9,9 @@ function ProfileCardCreator() {
9
9
  return /* @__PURE__ */ jsxs(
10
10
  ProfileCard,
11
11
  {
12
- visual: /* @__PURE__ */ jsx(Avatar, { fallback: "EM", size: "xl" }),
12
+ visual: /* @__PURE__ */ jsx(Avatar, { src: "https://krizaka-assets.b-cdn.net/site/people/ui/noor-256.c340c41421.webp", alt: "Noor Haddad", fallback: "NH", size: "xl" }),
13
13
  visualSize: 96,
14
- name: "Elena Marchetti",
14
+ name: "Noor Haddad",
15
15
  statLabel: "Profile complete",
16
16
  value: 80,
17
17
  stats: [
@@ -6,9 +6,9 @@ import { ProfileCard } from "@krizaka/ui/profile-card";
6
6
  export default function ProfileCardCreator() {
7
7
  return (
8
8
  <ProfileCard
9
- visual={<Avatar fallback="EM" size="xl" />}
9
+ visual={<Avatar src="https://krizaka-assets.b-cdn.net/site/people/ui/noor-256.c340c41421.webp" alt="Noor Haddad" fallback="NH" size="xl" />}
10
10
  visualSize={96}
11
- name="Elena Marchetti"
11
+ name="Noor Haddad"
12
12
  statLabel="Profile complete"
13
13
  value={80}
14
14
  stats={[
@@ -9,9 +9,9 @@ function ProfileCardMatch() {
9
9
  ProfileCard,
10
10
  {
11
11
  brand: "yazakia",
12
- visual: /* @__PURE__ */ jsx(Avatar, { fallback: "AR", size: "xl" }),
12
+ visual: /* @__PURE__ */ jsx(Avatar, { src: "https://krizaka-assets.b-cdn.net/site/people/ui/camille-256.dc2943029a.webp", alt: "Camille Roy", fallback: "CR", size: "xl" }),
13
13
  visualSize: 88,
14
- name: "Alex, 29",
14
+ name: "Camille, 29",
15
15
  stats: [
16
16
  { label: "Interests in common", value: 4, max: 6, valueText: "4 of 6" },
17
17
  { label: "Answers that match", value: 7, max: 10, valueText: "7 of 10" }
@@ -6,9 +6,9 @@ export default function ProfileCardMatch() {
6
6
  return (
7
7
  <ProfileCard
8
8
  brand="yazakia"
9
- visual={<Avatar fallback="AR" size="xl" />}
9
+ visual={<Avatar src="https://krizaka-assets.b-cdn.net/site/people/ui/camille-256.dc2943029a.webp" alt="Camille Roy" fallback="CR" size="xl" />}
10
10
  visualSize={88}
11
- name="Alex, 29"
11
+ name="Camille, 29"
12
12
  stats={[
13
13
  { label: "Interests in common", value: 4, max: 6, valueText: "4 of 6" },
14
14
  { label: "Answers that match", value: 7, max: 10, valueText: "7 of 10" },
@@ -7,8 +7,8 @@ function NativeProfileCardDefault() {
7
7
  return /* @__PURE__ */ jsx(
8
8
  ProfileCard,
9
9
  {
10
- visual: /* @__PURE__ */ jsx(Avatar, { fallback: "EM", size: "xl" }),
11
- name: "Elena Marchetti",
10
+ visual: /* @__PURE__ */ jsx(Avatar, { src: "https://krizaka-assets.b-cdn.net/site/people/ui/noor-256.c340c41421.webp", alt: "Noor Haddad", fallback: "NH", size: "xl" }),
11
+ name: "Noor Haddad",
12
12
  statLabel: "Profile complete",
13
13
  value: 80,
14
14
  stats: [
@@ -4,8 +4,8 @@ import { Avatar, Button, ProfileCard } from "@krizaka/ui/native";
4
4
  export default function NativeProfileCardDefault() {
5
5
  return (
6
6
  <ProfileCard
7
- visual={<Avatar fallback="EM" size="xl" />}
8
- name="Elena Marchetti"
7
+ visual={<Avatar src="https://krizaka-assets.b-cdn.net/site/people/ui/noor-256.c340c41421.webp" alt="Noor Haddad" fallback="NH" size="xl" />}
8
+ name="Noor Haddad"
9
9
  statLabel="Profile complete"
10
10
  value={80}
11
11
  stats={[
@@ -15,7 +15,7 @@ var TABS = [
15
15
  ];
16
16
  function NativeScreenAppShell() {
17
17
  const [tab, setTab] = useState("likes");
18
- return /* @__PURE__ */ jsx(View, { style: { width: 360, height: 640 }, children: /* @__PURE__ */ jsx(Screen, { header: /* @__PURE__ */ jsx(Header, { title: "Likes", subtitle: "4 people liked you" }), footer: /* @__PURE__ */ jsx(TabBar, { "aria-label": "Main sections", items: TABS, value: tab, onValueChange: setTab }), padding: 0, children: ["Elena, 29", "Noah, 31", "Mina, 27", "Alex, 33"].map((name) => /* @__PURE__ */ jsxs(View, { style: { gap: 2, paddingHorizontal: 16, paddingVertical: 12 }, children: [
18
+ return /* @__PURE__ */ jsx(View, { style: { width: 360, height: 640 }, children: /* @__PURE__ */ jsx(Screen, { header: /* @__PURE__ */ jsx(Header, { title: "Likes", subtitle: "4 people liked you" }), footer: /* @__PURE__ */ jsx(TabBar, { "aria-label": "Main sections", items: TABS, value: tab, onValueChange: setTab }), padding: 0, children: ["Camille, 29", "Tom\xE1s, 31", "Noor, 27", "Ada, 33"].map((name) => /* @__PURE__ */ jsxs(View, { style: { gap: 2, paddingHorizontal: 16, paddingVertical: 12 }, children: [
19
19
  /* @__PURE__ */ jsx(Txt, { variant: "label", children: name }),
20
20
  /* @__PURE__ */ jsx(Txt, { variant: "caption", tone: "secondary", children: "Liked you today" })
21
21
  ] }, name)) }) });
@@ -21,7 +21,7 @@ export default function NativeScreenAppShell() {
21
21
  return (
22
22
  <View style={{ width: 360, height: 640 }}>
23
23
  <Screen header={<Header title="Likes" subtitle="4 people liked you" />} footer={<TabBar aria-label="Main sections" items={TABS} value={tab} onValueChange={setTab} />} padding={0}>
24
- {["Elena, 29", "Noah, 31", "Mina, 27", "Alex, 33"].map((name) => (
24
+ {["Camille, 29", "Tomás, 31", "Noor, 27", "Ada, 33"].map((name) => (
25
25
  <View key={name} style={{ gap: 2, paddingHorizontal: 16, paddingVertical: 12 }}>
26
26
  <Txt variant="label">{name}</Txt>
27
27
  <Txt variant="caption" tone="secondary">Liked you today</Txt>
@@ -1,23 +1,40 @@
1
1
  "use client";
2
2
 
3
3
  // registry/examples/screen/native/feed.tsx
4
- import { Avatar, Card, Header, Screen, Txt } from "@krizaka/ui/native";
4
+ import { ShortFeed, VerticalVideo } from "@krizaka/ui/native/vertical-video";
5
5
  import { View } from "react-native";
6
- import { jsx, jsxs } from "react/jsx-runtime";
7
- var POSTS = [
8
- { id: "1", who: "Elena", what: "Sunset session at Cabo da Roca", when: "2 h" },
9
- { id: "2", who: "Noah", what: "Best ramen in Porto? I have a list.", when: "5 h" },
10
- { id: "3", who: "Mina", what: "Free tickets for the jazz night!", when: "Yesterday" }
6
+ import { jsx } from "react/jsx-runtime";
7
+ var CDN = "https://krizaka-assets.b-cdn.net/site/people/ui";
8
+ var CLIPS = [
9
+ { id: "1", who: "Camille", face: `${CDN}/camille-256.dc2943029a.webp`, poster: `${CDN}/camille-512.9573eaa0b8.webp`, caption: "Sunset session at Cabo da Roca." },
10
+ { id: "2", who: "Tom\xE1s", face: `${CDN}/tomas-256.7eaab80903.webp`, poster: `${CDN}/tomas-512.dd7c4fd230.webp`, caption: "Best ramen in Porto? I have a list." }
11
11
  ];
12
12
  function NativeScreenFeed() {
13
- return /* @__PURE__ */ jsx(View, { style: { width: 360, height: 640 }, children: /* @__PURE__ */ jsx(Screen, { header: /* @__PURE__ */ jsx(Header, { title: "Moments", subtitle: "From people you matched with" }), children: POSTS.map((p) => /* @__PURE__ */ jsx(Card.Root, { children: /* @__PURE__ */ jsxs(Card.Body, { children: [
14
- /* @__PURE__ */ jsxs(View, { style: { flexDirection: "row", alignItems: "center", gap: 10 }, children: [
15
- /* @__PURE__ */ jsx(Avatar, { alt: p.who, size: "sm" }),
16
- /* @__PURE__ */ jsx(Txt, { variant: "label", style: { flex: 1 }, children: p.who }),
17
- /* @__PURE__ */ jsx(Txt, { variant: "caption", tone: "secondary", children: p.when })
18
- ] }),
19
- /* @__PURE__ */ jsx(Txt, { children: p.what })
20
- ] }) }, p.id)) }) });
13
+ return /* @__PURE__ */ jsx(View, { style: { width: 360, height: 640 }, children: /* @__PURE__ */ jsx(
14
+ ShortFeed,
15
+ {
16
+ label: "Moments",
17
+ height: 640,
18
+ items: CLIPS,
19
+ getId: (clip) => clip.id,
20
+ renderItem: (clip, { active }) => /* @__PURE__ */ jsx(
21
+ VerticalVideo,
22
+ {
23
+ title: `Video by ${clip.who}`,
24
+ active,
25
+ posterUri: clip.poster,
26
+ creator: { name: clip.who, avatarUri: clip.face },
27
+ caption: clip.caption,
28
+ likes: 1200,
29
+ comments: 48,
30
+ onLike: () => void 0,
31
+ onComment: () => void 0,
32
+ onShare: () => void 0,
33
+ style: { height: 640, aspectRatio: void 0 }
34
+ }
35
+ )
36
+ }
37
+ ) });
21
38
  }
22
39
  export {
23
40
  NativeScreenFeed as default
@@ -1,34 +1,38 @@
1
- import { Avatar, Card, Header, Screen, Txt } from "@krizaka/ui/native";
1
+ import { ShortFeed, VerticalVideo } from "@krizaka/ui/native/vertical-video";
2
2
  import { View } from "react-native";
3
3
 
4
- const POSTS = [
5
- { id: "1", who: "Elena", what: "Sunset session at Cabo da Roca", when: "2 h" },
6
- { id: "2", who: "Noah", what: "Best ramen in Porto? I have a list.", when: "5 h" },
7
- { id: "3", who: "Mina", what: "Free tickets for the jazz night!", when: "Yesterday" },
4
+ const CDN = "https://krizaka-assets.b-cdn.net/site/people/ui";
5
+ const CLIPS = [
6
+ { id: "1", who: "Camille", face: `${CDN}/camille-256.dc2943029a.webp`, poster: `${CDN}/camille-512.9573eaa0b8.webp`, caption: "Sunset session at Cabo da Roca." },
7
+ { id: "2", who: "Tomás", face: `${CDN}/tomas-256.7eaab80903.webp`, poster: `${CDN}/tomas-512.dd7c4fd230.webp`, caption: "Best ramen in Porto? I have a list." },
8
8
  ];
9
9
 
10
- // A feed: a large title, cards under it (a long feed uses the list of `@krizaka/ui/native/list` in `scroll={false}`).
10
+ // A feed in the vertical format: one clip per screen with the action rail on the right and the caption bottom-left; the one
11
+ // in view plays and the others pause (`uri` is your clip — here the poster stands for it).
11
12
  export default function NativeScreenFeed() {
12
13
  return (
13
14
  <View style={{ width: 360, height: 640 }}>
14
- <Screen header={<Header title="Moments" subtitle="From people you matched with" />}>
15
- {POSTS.map((p) => (
16
- <Card.Root key={p.id}>
17
- <Card.Body>
18
- <View style={{ flexDirection: "row", alignItems: "center", gap: 10 }}>
19
- <Avatar alt={p.who} size="sm" />
20
- <Txt variant="label" style={{ flex: 1 }}>
21
- {p.who}
22
- </Txt>
23
- <Txt variant="caption" tone="secondary">
24
- {p.when}
25
- </Txt>
26
- </View>
27
- <Txt>{p.what}</Txt>
28
- </Card.Body>
29
- </Card.Root>
30
- ))}
31
- </Screen>
15
+ <ShortFeed
16
+ label="Moments"
17
+ height={640}
18
+ items={CLIPS}
19
+ getId={(clip) => clip.id}
20
+ renderItem={(clip, { active }) => (
21
+ <VerticalVideo
22
+ title={`Video by ${clip.who}`}
23
+ active={active}
24
+ posterUri={clip.poster}
25
+ creator={{ name: clip.who, avatarUri: clip.face }}
26
+ caption={clip.caption}
27
+ likes={1200}
28
+ comments={48}
29
+ onLike={() => undefined}
30
+ onComment={() => undefined}
31
+ onShare={() => undefined}
32
+ style={{ height: 640, aspectRatio: undefined }}
33
+ />
34
+ )}
35
+ />
32
36
  </View>
33
37
  );
34
38
  }
@@ -10,9 +10,9 @@ function NativeScreenProfile() {
10
10
  /* @__PURE__ */ jsx(Button, { label: "Preview", variant: "outline", style: { flex: 1 } })
11
11
  ] }), children: [
12
12
  /* @__PURE__ */ jsxs(View, { style: { alignItems: "center", gap: 6 }, children: [
13
- /* @__PURE__ */ jsx(Avatar, { src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQCAIAAACtAwlQAAABaklEQVR42mWMy24UQQxF7arqlwLhIbJhwZZf5I/4IISEBIsIRSKTMOmZnp7uqrJ9zYIeIeCsrqzjw+vHDwYCCM6wbfy5gABKatsysJqLuoHciZ2dGE4ApSrbnyidVn06lVyQUrweur5pmAJAqVQGSEGnRb79mD5/H6dzuRq6929fv7t5MTSd+6VUK3Zj/XQ7frkblyJ926jwkIab6yZw3Eq58rzaz6nMq1RVA+3nMmd73nMMfCkJiRBA7u5O7g6QCFfhyLyVRJg89U3bxKiGJsQ+te6pCge+lETYPT3rujalotqkNLSdexRhJk6lshjOWXeH+WE6Z1HAi+p+Pr+czuxtG0PKlZesd+P09f5xd5iKqrlX1cfpGCiqhDdXr9Ja8DSX24f9/eG4VDGAiAzIIrvpwJ6C96FUXrId15Ivxm8MKCpzKUvRUCpXJTOHO/2Nu6uhqocqLMr4V9iAkxoHMzZjgP7XnMjBZvQLMEROG5iV3IMAAAAASUVORK5CYII=", alt: "Elena", size: 112, ring: "story" }),
13
+ /* @__PURE__ */ jsx(Avatar, { src: "https://krizaka-assets.b-cdn.net/site/people/ui/camille-512.9573eaa0b8.webp", alt: "Camille", size: 112, ring: "story" }),
14
14
  /* @__PURE__ */ jsxs(View, { style: { flexDirection: "row", alignItems: "center", gap: 6 }, children: [
15
- /* @__PURE__ */ jsx(Txt, { variant: "title", children: "Elena, 29" }),
15
+ /* @__PURE__ */ jsx(Txt, { variant: "title", children: "Camille, 29" }),
16
16
  /* @__PURE__ */ jsx(VerifiedBadge, { label: "Verified", size: 18 })
17
17
  ] }),
18
18
  /* @__PURE__ */ jsx(Txt, { tone: "secondary", children: "Lisbon \xB7 Sound engineer" })
@@ -7,9 +7,9 @@ export default function NativeScreenProfile() {
7
7
  <View style={{ width: 360, height: 640 }}>
8
8
  <Screen footer={<View style={{ flexDirection: "row", gap: 8, padding: 16 }}><Button label="Edit profile" style={{ flex: 1 }} /><Button label="Preview" variant="outline" style={{ flex: 1 }} /></View>}>
9
9
  <View style={{ alignItems: "center", gap: 6 }}>
10
- <Avatar src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQCAIAAACtAwlQAAABaklEQVR42mWMy24UQQxF7arqlwLhIbJhwZZf5I/4IISEBIsIRSKTMOmZnp7uqrJ9zYIeIeCsrqzjw+vHDwYCCM6wbfy5gABKatsysJqLuoHciZ2dGE4ApSrbnyidVn06lVyQUrweur5pmAJAqVQGSEGnRb79mD5/H6dzuRq6929fv7t5MTSd+6VUK3Zj/XQ7frkblyJ926jwkIab6yZw3Eq58rzaz6nMq1RVA+3nMmd73nMMfCkJiRBA7u5O7g6QCFfhyLyVRJg89U3bxKiGJsQ+te6pCge+lETYPT3rujalotqkNLSdexRhJk6lshjOWXeH+WE6Z1HAi+p+Pr+czuxtG0PKlZesd+P09f5xd5iKqrlX1cfpGCiqhDdXr9Ja8DSX24f9/eG4VDGAiAzIIrvpwJ6C96FUXrId15Ivxm8MKCpzKUvRUCpXJTOHO/2Nu6uhqocqLMr4V9iAkxoHMzZjgP7XnMjBZvQLMEROG5iV3IMAAAAASUVORK5CYII=" alt="Elena" size={112} ring="story" />
10
+ <Avatar src="https://krizaka-assets.b-cdn.net/site/people/ui/camille-512.9573eaa0b8.webp" alt="Camille" size={112} ring="story" />
11
11
  <View style={{ flexDirection: "row", alignItems: "center", gap: 6 }}>
12
- <Txt variant="title">Elena, 29</Txt>
12
+ <Txt variant="title">Camille, 29</Txt>
13
13
  <VerifiedBadge label="Verified" size={18} />
14
14
  </View>
15
15
  <Txt tone="secondary">Lisbon · Sound engineer</Txt>
@@ -6,10 +6,9 @@ import { PersonCard, SwipeDeck } from "@krizaka/ui/swipe-deck";
6
6
  import { VerifiedBadge } from "@krizaka/ui/verified-badge";
7
7
  import { useState } from "react";
8
8
  import { jsx } from "react/jsx-runtime";
9
- var png = (data) => `data:image/png;base64,${data}`;
10
9
  var PEOPLE = [
11
- { id: "e", name: "Elena", age: 29, km: 3.2, bio: "Sunsets, vinyl and long walks.", tags: ["Music", "Surf"], photos: [png("iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQCAIAAACtAwlQAAABaklEQVR42mWMy24UQQxF7arqlwLhIbJhwZZf5I/4IISEBIsIRSKTMOmZnp7uqrJ9zYIeIeCsrqzjw+vHDwYCCM6wbfy5gABKatsysJqLuoHciZ2dGE4ApSrbnyidVn06lVyQUrweur5pmAJAqVQGSEGnRb79mD5/H6dzuRq6929fv7t5MTSd+6VUK3Zj/XQ7frkblyJ926jwkIab6yZw3Eq58rzaz6nMq1RVA+3nMmd73nMMfCkJiRBA7u5O7g6QCFfhyLyVRJg89U3bxKiGJsQ+te6pCge+lETYPT3rujalotqkNLSdexRhJk6lshjOWXeH+WE6Z1HAi+p+Pr+czuxtG0PKlZesd+P09f5xd5iKqrlX1cfpGCiqhDdXr9Ja8DSX24f9/eG4VDGAiAzIIrvpwJ6C96FUXrId15Ivxm8MKCpzKUvRUCpXJTOHO/2Nu6uhqocqLMr4V9iAkxoHMzZjgP7XnMjBZvQLMEROG5iV3IMAAAAASUVORK5CYII="), png("iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQCAIAAACtAwlQAAABZklEQVR42m3MzW4TUQyGYZ8zZzJpwp8UiQ0SEvfMLXETICqoKrXQdDohyZwZ258/FpPCAryyrUdv6j99ZDAiSALLFhFkULhcLAAWFEEA7ggEhYkiImQwWNx84WY+Vh0OZzVvcn657bq25MQIFlOLYCDOY/1+23/59uN0mrZX3Yf3u3dvX6+7VvhcMvXH/vT5+u7rzcM02XrVOvyqbXZvNjmlYmoMqtpY5+EwjqOae4CHX7XWWTerktOl5OYwR5AkKSSXp6sxP5fcPJHrVWlLA0Rpctc2iYQ5/5RgEHLTlbY0qt6WZrsuQrp5SlJMzRG16r4/98M4qyM4m/eH+mqzyilWTVNUfZr0bn+8vn16eDqqeZDm2A9jEgawe7Eu8zQPx+nmfrh/PNbZERQRBCf1n0NtkhQym/lU59N5nu0ilkFQDaeqddLsamZwB/+Cy5CEhzuym8M9KP8iEQkSjgwAAP9LhCQB/AYQ5Y+kAv/RXgAAAABJRU5ErkJggg==")] },
12
- { id: "n", name: "Noah", age: 31, km: 12, bio: "Cook, climber, bad puns.", tags: ["Climbing"], photos: [png("iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQCAIAAACtAwlQAAABaUlEQVR42mWRzW5TQRSDZ+bOTdMoFMGCFWx4SR6OF0EgQVWECmqbNOnNvTPnHNssIn6kemVZn+yF84eP30mKFEWCZwMmnROKrAAIShSIAOECKaWUkhIlkTXMzxDdbT614z7M8jCsNi+G8UI5nyEjKKKfpuOP6931Z5uO4+X26t377Zu3w2otqYY5SZjNu/uHr5/2N1+it7paR0QZLy9evs651DAjCes2n9ph58uMcIH9+Njn07De5jL8bXJ4kJSUJEkU4BFmuQzVzUTCXUplXJdhJFCGWuqFlMIjJ1aYE0SEpLrelDpmtzKMw2ojJpinnGuYMcLavOzv2+MDrItAdHvatc3VKqUyjDV697YsD7fT7bf2eIewJCK8H+6VMoBx86paa/1pP/26WXY/oy+JSCklAt774U65kLm4mS/N5+k8lP5IBMJimaK1AnO6E5HOf/0vSQGElzBHhEilZ1ASRXgUAAD0vOYfhd832o14udpJswAAAABJRU5ErkJggg==")] }
10
+ { id: "c", name: "Camille", age: 29, km: 3.2, bio: "Sunsets, vinyl and long walks.", tags: ["Music", "Surf"], photos: ["https://krizaka-assets.b-cdn.net/site/people/ui/camille-512.9573eaa0b8.webp"] },
11
+ { id: "t", name: "Tom\xE1s", age: 31, km: 12, bio: "Cook, climber, bad puns.", tags: ["Climbing"], photos: ["https://krizaka-assets.b-cdn.net/site/people/ui/tomas-512.dd7c4fd230.webp"] }
13
12
  ];
14
13
  function SwipeDeckDiscover() {
15
14
  const [people, setPeople] = useState(PEOPLE);
@@ -5,10 +5,9 @@ import { PersonCard, SwipeDeck } from "@krizaka/ui/swipe-deck";
5
5
  import { VerifiedBadge } from "@krizaka/ui/verified-badge";
6
6
  import { useState } from "react";
7
7
 
8
- const png = (data: string) => `data:image/png;base64,${data}`;
9
8
  const PEOPLE = [
10
- { id: "e", name: "Elena", age: 29, km: 3.2, bio: "Sunsets, vinyl and long walks.", tags: ["Music", "Surf"], photos: [png("iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQCAIAAACtAwlQAAABaklEQVR42mWMy24UQQxF7arqlwLhIbJhwZZf5I/4IISEBIsIRSKTMOmZnp7uqrJ9zYIeIeCsrqzjw+vHDwYCCM6wbfy5gABKatsysJqLuoHciZ2dGE4ApSrbnyidVn06lVyQUrweur5pmAJAqVQGSEGnRb79mD5/H6dzuRq6929fv7t5MTSd+6VUK3Zj/XQ7frkblyJ926jwkIab6yZw3Eq58rzaz6nMq1RVA+3nMmd73nMMfCkJiRBA7u5O7g6QCFfhyLyVRJg89U3bxKiGJsQ+te6pCge+lETYPT3rujalotqkNLSdexRhJk6lshjOWXeH+WE6Z1HAi+p+Pr+czuxtG0PKlZesd+P09f5xd5iKqrlX1cfpGCiqhDdXr9Ja8DSX24f9/eG4VDGAiAzIIrvpwJ6C96FUXrId15Ivxm8MKCpzKUvRUCpXJTOHO/2Nu6uhqocqLMr4V9iAkxoHMzZjgP7XnMjBZvQLMEROG5iV3IMAAAAASUVORK5CYII="), png("iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQCAIAAACtAwlQAAABZklEQVR42m3MzW4TUQyGYZ8zZzJpwp8UiQ0SEvfMLXETICqoKrXQdDohyZwZ258/FpPCAryyrUdv6j99ZDAiSALLFhFkULhcLAAWFEEA7ggEhYkiImQwWNx84WY+Vh0OZzVvcn657bq25MQIFlOLYCDOY/1+23/59uN0mrZX3Yf3u3dvX6+7VvhcMvXH/vT5+u7rzcM02XrVOvyqbXZvNjmlYmoMqtpY5+EwjqOae4CHX7XWWTerktOl5OYwR5AkKSSXp6sxP5fcPJHrVWlLA0Rpctc2iYQ5/5RgEHLTlbY0qt6WZrsuQrp5SlJMzRG16r4/98M4qyM4m/eH+mqzyilWTVNUfZr0bn+8vn16eDqqeZDm2A9jEgawe7Eu8zQPx+nmfrh/PNbZERQRBCf1n0NtkhQym/lU59N5nu0ilkFQDaeqddLsamZwB/+Cy5CEhzuym8M9KP8iEQkSjgwAAP9LhCQB/AYQ5Y+kAv/RXgAAAABJRU5ErkJggg==")] },
11
- { id: "n", name: "Noah", age: 31, km: 12, bio: "Cook, climber, bad puns.", tags: ["Climbing"], photos: [png("iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQCAIAAACtAwlQAAABaUlEQVR42mWRzW5TQRSDZ+bOTdMoFMGCFWx4SR6OF0EgQVWECmqbNOnNvTPnHNssIn6kemVZn+yF84eP30mKFEWCZwMmnROKrAAIShSIAOECKaWUkhIlkTXMzxDdbT614z7M8jCsNi+G8UI5nyEjKKKfpuOP6931Z5uO4+X26t377Zu3w2otqYY5SZjNu/uHr5/2N1+it7paR0QZLy9evs651DAjCes2n9ph58uMcIH9+Njn07De5jL8bXJ4kJSUJEkU4BFmuQzVzUTCXUplXJdhJFCGWuqFlMIjJ1aYE0SEpLrelDpmtzKMw2ojJpinnGuYMcLavOzv2+MDrItAdHvatc3VKqUyjDV697YsD7fT7bf2eIewJCK8H+6VMoBx86paa/1pP/26WXY/oy+JSCklAt774U65kLm4mS/N5+k8lP5IBMJimaK1AnO6E5HOf/0vSQGElzBHhEilZ1ASRXgUAAD0vOYfhd832o14udpJswAAAABJRU5ErkJggg==")] },
9
+ { id: "c", name: "Camille", age: 29, km: 3.2, bio: "Sunsets, vinyl and long walks.", tags: ["Music", "Surf"], photos: ["https://krizaka-assets.b-cdn.net/site/people/ui/camille-512.9573eaa0b8.webp"] },
10
+ { id: "t", name: "Tomás", age: 31, km: 12, bio: "Cook, climber, bad puns.", tags: ["Climbing"], photos: ["https://krizaka-assets.b-cdn.net/site/people/ui/tomas-512.dd7c4fd230.webp"] },
12
11
  ];
13
12
 
14
13
  // Discover: drag right to like, left to pass, the buttons, or ← → on the focused deck.
@@ -5,10 +5,9 @@ import { Badge, PersonCard, SwipeDeck, Txt, VerifiedBadge } from "@krizaka/ui/na
5
5
  import { useState } from "react";
6
6
  import { View } from "react-native";
7
7
  import { jsx } from "react/jsx-runtime";
8
- var png = (data) => `data:image/png;base64,${data}`;
9
8
  var PEOPLE = [
10
- { id: "e", name: "Elena", age: 29, km: 3.2, bio: "Sunsets, vinyl and long walks.", tags: ["Music", "Surf"], photos: [png("iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQCAIAAACtAwlQAAABaklEQVR42mWMy24UQQxF7arqlwLhIbJhwZZf5I/4IISEBIsIRSKTMOmZnp7uqrJ9zYIeIeCsrqzjw+vHDwYCCM6wbfy5gABKatsysJqLuoHciZ2dGE4ApSrbnyidVn06lVyQUrweur5pmAJAqVQGSEGnRb79mD5/H6dzuRq6929fv7t5MTSd+6VUK3Zj/XQ7frkblyJ926jwkIab6yZw3Eq58rzaz6nMq1RVA+3nMmd73nMMfCkJiRBA7u5O7g6QCFfhyLyVRJg89U3bxKiGJsQ+te6pCge+lETYPT3rujalotqkNLSdexRhJk6lshjOWXeH+WE6Z1HAi+p+Pr+czuxtG0PKlZesd+P09f5xd5iKqrlX1cfpGCiqhDdXr9Ja8DSX24f9/eG4VDGAiAzIIrvpwJ6C96FUXrId15Ivxm8MKCpzKUvRUCpXJTOHO/2Nu6uhqocqLMr4V9iAkxoHMzZjgP7XnMjBZvQLMEROG5iV3IMAAAAASUVORK5CYII="), png("iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQCAIAAACtAwlQAAABZklEQVR42m3MzW4TUQyGYZ8zZzJpwp8UiQ0SEvfMLXETICqoKrXQdDohyZwZ258/FpPCAryyrUdv6j99ZDAiSALLFhFkULhcLAAWFEEA7ggEhYkiImQwWNx84WY+Vh0OZzVvcn657bq25MQIFlOLYCDOY/1+23/59uN0mrZX3Yf3u3dvX6+7VvhcMvXH/vT5+u7rzcM02XrVOvyqbXZvNjmlYmoMqtpY5+EwjqOae4CHX7XWWTerktOl5OYwR5AkKSSXp6sxP5fcPJHrVWlLA0Rpctc2iYQ5/5RgEHLTlbY0qt6WZrsuQrp5SlJMzRG16r4/98M4qyM4m/eH+mqzyilWTVNUfZr0bn+8vn16eDqqeZDm2A9jEgawe7Eu8zQPx+nmfrh/PNbZERQRBCf1n0NtkhQym/lU59N5nu0ilkFQDaeqddLsamZwB/+Cy5CEhzuym8M9KP8iEQkSjgwAAP9LhCQB/AYQ5Y+kAv/RXgAAAABJRU5ErkJggg==")] },
11
- { id: "n", name: "Noah", age: 31, km: 12, bio: "Cook, climber, bad puns.", tags: ["Climbing"], photos: [png("iVBORw0KGgoAAAANSUhEUgAAAAwAAAAQCAIAAACtAwlQAAABaUlEQVR42mWRzW5TQRSDZ+bOTdMoFMGCFWx4SR6OF0EgQVWECmqbNOnNvTPnHNssIn6kemVZn+yF84eP30mKFEWCZwMmnROKrAAIShSIAOECKaWUkhIlkTXMzxDdbT614z7M8jCsNi+G8UI5nyEjKKKfpuOP6931Z5uO4+X26t377Zu3w2otqYY5SZjNu/uHr5/2N1+it7paR0QZLy9evs651DAjCes2n9ph58uMcIH9+Njn07De5jL8bXJ4kJSUJEkU4BFmuQzVzUTCXUplXJdhJFCGWuqFlMIjJ1aYE0SEpLrelDpmtzKMw2ojJpinnGuYMcLavOzv2+MDrItAdHvatc3VKqUyjDV697YsD7fT7bf2eIewJCK8H+6VMoBx86paa/1pP/26WXY/oy+JSCklAt774U65kLm4mS/N5+k8lP5IBMJimaK1AnO6E5HOf/0vSQGElzBHhEilZ1ASRXgUAAD0vOYfhd832o14udpJswAAAABJRU5ErkJggg==")] }
9
+ { id: "c", name: "Camille", age: 29, km: 3.2, bio: "Sunsets, vinyl and long walks.", tags: ["Music", "Surf"], photos: ["https://krizaka-assets.b-cdn.net/site/people/ui/camille-512.9573eaa0b8.webp"] },
10
+ { id: "t", name: "Tom\xE1s", age: 31, km: 12, bio: "Cook, climber, bad puns.", tags: ["Climbing"], photos: ["https://krizaka-assets.b-cdn.net/site/people/ui/tomas-512.dd7c4fd230.webp"] }
12
11
  ];
13
12
  function NativeSwipeDeckDiscover() {
14
13
  const [people, setPeople] = useState(PEOPLE);