@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.
- package/README.md +4 -10
- package/dist/{RotatingWord-COSabR2c.d.ts → RotatingWord-D3tpDLE4.d.ts} +1 -1
- package/dist/account-menu.d.ts +1 -1
- package/dist/account-menu.js +1 -1
- package/dist/account-settings.d.ts +1 -1
- package/dist/account-settings.js +1 -1
- package/dist/app-frame.d.ts +2 -5
- package/dist/avatar/defaults.d.ts +2 -2
- package/dist/avatar/defaults.js +1 -5
- package/dist/avatar/defaults.js.map +1 -1
- package/dist/{avatar-B_na7r1U.d.ts → avatar-CNV6ld8l.d.ts} +2 -2
- package/dist/avatar.d.ts +2 -2
- package/dist/avatar.js +1 -5
- package/dist/avatar.js.map +1 -1
- package/dist/blocks.css +4 -4
- package/dist/chat.js +1 -1
- package/dist/{chunk-5MPPIGCB.js → chunk-E46AEUPH.js} +1 -5
- package/dist/chunk-E46AEUPH.js.map +1 -0
- package/dist/{chunk-TISDOZH3.js → chunk-IOTY5HYG.js} +1 -5
- package/dist/chunk-IOTY5HYG.js.map +1 -0
- package/dist/chunk-PGPNYYE2.js +286 -0
- package/dist/chunk-PGPNYYE2.js.map +1 -0
- package/dist/{chunk-GRVIZTT2.js → chunk-RI3AA2E3.js} +3 -3
- package/dist/{chunk-Y5YBTHVD.js → chunk-SG3QJJXE.js} +6 -12
- package/dist/chunk-SG3QJJXE.js.map +1 -0
- package/dist/{chunk-4JO5GSSD.js → chunk-VA4NPCUQ.js} +2 -2
- package/dist/chunk-VA4NPCUQ.js.map +1 -0
- package/dist/{chunk-E4FMPPDL.js → chunk-WC3SO4CE.js} +2 -2
- package/dist/{chunk-T5NZSKWT.js → chunk-YQWYGQTV.js} +38 -41
- package/dist/chunk-YQWYGQTV.js.map +1 -0
- package/dist/{chunk-M3GEYLMR.js → chunk-ZPOVOEO3.js} +1 -2
- package/dist/collection-switcher.d.ts +1 -1
- package/dist/data-table.js +3 -3
- package/dist/{default-avatar-BL0nJFti.d.ts → default-avatar-Bh4atFDo.d.ts} +2 -2
- package/dist/elephant.d.ts +2 -2
- package/dist/elephant.js +2 -3
- package/dist/elephant.js.map +1 -1
- package/dist/engine-flow.js +29 -21
- package/dist/engine-flow.js.map +1 -1
- package/dist/entity-header.d.ts +1 -1
- package/dist/filter-bar.d.ts +9 -1
- package/dist/filter-bar.js +1 -1
- package/dist/gallery-page.js +3 -3
- package/dist/genui.js +101 -35
- package/dist/genui.js.map +1 -1
- package/dist/index.d.ts +7 -51
- package/dist/index.js +2 -12
- package/dist/index.js.map +1 -1
- package/dist/{lightbox-D5NAHFEA.js → lightbox-Q45BZ3HW.js} +3 -3
- package/dist/map.js +0 -120
- package/dist/map.js.map +1 -1
- package/dist/match-dialog.js +3 -3
- package/dist/motion.css +3 -120
- package/dist/motion.d.ts +1 -1
- package/dist/motion.js +1 -1
- package/dist/native/list.js +1 -1
- package/dist/native/list.js.map +1 -1
- package/dist/native/map.js +0 -120
- package/dist/native/map.js.map +1 -1
- package/dist/native.d.ts +7 -111
- package/dist/native.js +988 -1436
- package/dist/native.js.map +1 -1
- package/dist/nav-bar.d.ts +1 -1
- package/dist/nav-bar.js +2 -2
- package/dist/product-page.js +3 -3
- package/dist/rail-nav.d.ts +2 -5
- package/dist/shop-gallery.js +1 -1
- package/dist/site-cahier.d.ts +3 -11
- package/dist/site-cahier.js +126 -367
- package/dist/site-cahier.js.map +1 -1
- package/dist/site-footer.d.ts +1 -1
- package/dist/site-footer.js +2 -2
- package/dist/{sites-CEnywB89.d.ts → sites-CVNSirrg.d.ts} +3 -11
- package/dist/sites.d.ts +7 -15
- package/dist/sites.js +4 -10
- package/dist/sites.js.map +1 -1
- package/dist/tag-selector.js +28 -21
- package/dist/tag-selector.js.map +1 -1
- package/dist/vertical-video.js +2 -2
- package/dist/waveform.js.map +1 -1
- package/package.json +5 -109
- package/registry/account-menu.json +1 -1
- package/registry/account-settings.json +1 -1
- package/registry/achievement.json +1 -1
- package/registry/action-bar.json +1 -1
- package/registry/activity-feed.json +1 -1
- package/registry/agenda.json +1 -1
- package/registry/alert.json +1 -1
- package/registry/analysis-report.json +1 -1
- package/registry/anatomy-plate.json +1 -1
- package/registry/app-frame.json +6 -38
- package/registry/app-header.json +1 -1
- package/registry/app-shell.json +1 -1
- package/registry/argument-card.json +1 -1
- package/registry/auth-layout.json +1 -1
- package/registry/avatar.json +2 -2
- package/registry/badge.json +1 -1
- package/registry/bird-plate.json +1 -1
- package/registry/button.json +1 -1
- package/registry/captcha.json +1 -1
- package/registry/card-grid.json +1 -1
- package/registry/card.json +1 -1
- package/registry/catalogue-page.json +1 -1
- package/registry/changelog-page.json +1 -1
- package/registry/chapter.json +1 -1
- package/registry/chat.json +3 -3
- package/registry/checkbox.json +1 -1
- package/registry/chip-link.json +1 -1
- package/registry/chip-row.json +1 -1
- package/registry/chip.json +1 -1
- package/registry/choice-grid.json +1 -1
- package/registry/code-block.json +1 -1
- package/registry/collection-switcher.json +1 -1
- package/registry/combobox.json +1 -1
- package/registry/command.json +1 -1
- package/registry/comparison-table.json +1 -1
- package/registry/component-page.json +1 -1
- package/registry/confirm-button.json +1 -1
- package/registry/contact-page.json +1 -1
- package/registry/continue-prompt.json +1 -1
- package/registry/copy-button.json +1 -1
- package/registry/countdown.json +1 -1
- package/registry/cover-hero.json +1 -1
- package/registry/cta-panel.json +1 -1
- package/registry/dashboard-layout.json +1 -1
- package/registry/data-table.json +1 -1
- package/registry/date-picker.json +1 -1
- package/registry/decision-list.json +1 -1
- package/registry/description-list.json +1 -1
- package/registry/desktop-window.json +1 -1
- package/registry/detail-layout.json +1 -1
- package/registry/dialog.json +1 -1
- package/registry/docs-article-page.json +1 -1
- package/registry/docs-hub-page.json +1 -1
- package/registry/docs-layout.json +1 -1
- package/registry/docs-nav.json +1 -1
- package/registry/document-viewer.json +1 -1
- package/registry/doodle.json +1 -1
- package/registry/drop-overlay.json +1 -1
- package/registry/dropdown-menu.json +1 -1
- package/registry/elephant.json +3 -5
- package/registry/embed-facade.json +1 -1
- package/registry/empty-state.json +1 -1
- package/registry/engine-flow.json +3 -4
- package/registry/entity-header.json +1 -1
- package/registry/environment-notice.json +1 -1
- package/registry/error-page.json +1 -1
- package/registry/field.json +1 -1
- package/registry/file-upload.json +1 -1
- package/registry/filter-bar.json +2 -2
- package/registry/flock.json +1 -1
- package/registry/footnote.json +1 -1
- package/registry/force-update-screen.json +1 -1
- package/registry/form.json +1 -1
- package/registry/gallery-page.json +1 -1
- package/registry/genui.json +1 -1
- package/registry/glossary-term.json +1 -1
- package/registry/glossary.json +1 -1
- package/registry/glow-card.json +1 -1
- package/registry/goal-gauge.json +1 -1
- package/registry/grade-stamp.json +1 -1
- package/registry/image-cropper.json +1 -1
- package/registry/index.json +11 -246
- package/registry/kanban.json +1 -1
- package/registry/kbd.json +1 -1
- package/registry/kind-config-editor.json +1 -1
- package/registry/kpi-explained.json +1 -1
- package/registry/landing-page.json +1 -1
- package/registry/landscape.json +1 -1
- package/registry/language-switch.json +1 -1
- package/registry/legal-page.json +1 -1
- package/registry/link-card.json +1 -1
- package/registry/list.json +1 -1
- package/registry/loader.json +1 -1
- package/registry/longform-page.json +1 -1
- package/registry/maintenance-screen.json +1 -1
- package/registry/map.json +2 -2
- package/registry/margin-layout.json +1 -1
- package/registry/markdown.json +1 -1
- package/registry/marketing-layout.json +1 -1
- package/registry/mascot-quote.json +1 -1
- package/registry/mascot-state.json +1 -1
- package/registry/mascots.json +1 -1
- package/registry/match-dialog.json +3 -3
- package/registry/media-capture.json +1 -1
- package/registry/media-gallery.json +3 -14
- package/registry/meter.json +1 -1
- package/registry/money-input.json +1 -1
- package/registry/nav-bar.json +6 -38
- package/registry/next-actions.json +1 -1
- package/registry/notification-preferences.json +1 -1
- package/registry/number-ticker.json +1 -1
- package/registry/opening-hours.json +3 -4
- package/registry/page-header.json +1 -1
- package/registry/page-hero.json +1 -1
- package/registry/page-index.json +1 -1
- package/registry/page.json +1 -1
- package/registry/pagination.json +1 -1
- package/registry/pointer-light.json +1 -1
- package/registry/popover.json +1 -1
- package/registry/price-catalogue-editor.json +1 -1
- package/registry/pricing-page.json +1 -1
- package/registry/product-page.json +2 -6
- package/registry/profile-card.json +1 -1
- package/registry/progress.json +1 -1
- package/registry/promise-card.json +1 -1
- package/registry/promo-code-field.json +1 -1
- package/registry/proposal.json +1 -1
- package/registry/qr-code.json +1 -1
- package/registry/quota-meter.json +1 -1
- package/registry/radio-group.json +1 -1
- package/registry/rail-nav.json +6 -38
- package/registry/recipes.json +1 -1
- package/registry/retro-tv.json +2 -3
- package/registry/reviews.json +1 -1
- package/registry/router.json +1 -1
- package/registry/schema-form.json +1 -1
- package/registry/scroll-stage.json +1 -1
- package/registry/search-field.json +1 -1
- package/registry/section-backdrop.json +1 -1
- package/registry/separator.json +1 -1
- package/registry/service-card.json +1 -1
- package/registry/settings-layout.json +1 -1
- package/registry/shop-composer.json +1 -1
- package/registry/shop-gallery.json +3 -8
- package/registry/shop.json +2 -2
- package/registry/showcase.json +2 -7
- package/registry/signature.json +1 -1
- package/registry/site-cahier.json +1 -1
- package/registry/site-footer.json +6 -38
- package/registry/sites.json +3 -3
- package/registry/skeleton.json +1 -1
- package/registry/skip-link.json +1 -1
- package/registry/slider.json +1 -1
- package/registry/slot-picker.json +1 -1
- package/registry/slot.json +1 -1
- package/registry/specimen-tag.json +1 -1
- package/registry/speed-lines.json +1 -1
- package/registry/spinner.json +1 -1
- package/registry/split-view.json +1 -1
- package/registry/stage-banner.json +1 -1
- package/registry/stat.json +1 -1
- package/registry/status-chip.json +1 -1
- package/registry/status-page.json +1 -1
- package/registry/step-progress.json +1 -1
- package/registry/step-showcase.json +1 -1
- package/registry/stepper.json +1 -1
- package/registry/sticky-action.json +1 -1
- package/registry/stuck.json +1 -1
- package/registry/swipe-deck.json +4 -5
- package/registry/switch.json +1 -1
- package/registry/tabs.json +1 -1
- package/registry/tag-input.json +1 -1
- package/registry/tag-selector.json +2 -2
- package/registry/taped-photo.json +1 -1
- package/registry/terminal-replay.json +1 -1
- package/registry/text-style.json +1 -1
- package/registry/theme.json +1 -1
- package/registry/toast.json +1 -1
- package/registry/toc.json +1 -1
- package/registry/tooltip.json +1 -1
- package/registry/tree-view.json +1 -1
- package/registry/update-prompt.json +1 -1
- package/registry/upload-queue.json +1 -1
- package/registry/usage.json +1 -1
- package/registry/verified-badge.json +1 -1
- package/registry/versus-card.json +1 -1
- package/registry/vertical-video.json +2 -6
- package/registry/video-player.json +2 -7
- package/registry/video-trimmer.json +3 -4
- package/registry/virtual.json +1 -1
- package/registry/wall.json +3 -9
- package/registry/waveform.json +4 -9
- package/dist/audio-player.d.ts +0 -115
- package/dist/audio-player.js +0 -211
- package/dist/audio-player.js.map +0 -1
- package/dist/chunk-4JO5GSSD.js.map +0 -1
- package/dist/chunk-5MPPIGCB.js.map +0 -1
- package/dist/chunk-B2HS5EAH.js +0 -527
- package/dist/chunk-B2HS5EAH.js.map +0 -1
- package/dist/chunk-T5NZSKWT.js.map +0 -1
- package/dist/chunk-TISDOZH3.js.map +0 -1
- package/dist/chunk-Y5YBTHVD.js.map +0 -1
- package/dist/chunk-YKOLME7R.js +0 -126
- package/dist/chunk-YKOLME7R.js.map +0 -1
- package/dist/how-it-works-page.d.ts +0 -49
- package/dist/how-it-works-page.js +0 -28
- package/dist/how-it-works-page.js.map +0 -1
- package/dist/iso.d.ts +0 -401
- package/dist/iso.js +0 -363
- package/dist/iso.js.map +0 -1
- package/dist/marquee.d.ts +0 -34
- package/dist/marquee.js +0 -52
- package/dist/marquee.js.map +0 -1
- package/dist/media-grid.d.ts +0 -246
- package/dist/media-grid.js +0 -468
- package/dist/media-grid.js.map +0 -1
- package/dist/meta-row.d.ts +0 -55
- package/dist/meta-row.js +0 -35
- package/dist/meta-row.js.map +0 -1
- package/dist/photo-grid.d.ts +0 -123
- package/dist/photo-grid.js +0 -94
- package/dist/photo-grid.js.map +0 -1
- package/registry/audio-player.json +0 -300
- package/registry/examples/audio-player/podcast.d.ts +0 -4
- package/registry/examples/audio-player/podcast.js +0 -22
- package/registry/examples/audio-player/podcast.tsx +0 -19
- package/registry/examples/audio-player/voice-note.d.ts +0 -4
- package/registry/examples/audio-player/voice-note.js +0 -12
- package/registry/examples/audio-player/voice-note.tsx +0 -12
- package/registry/examples/how-it-works-page/orazaka.d.ts +0 -4
- package/registry/examples/how-it-works-page/orazaka.js +0 -30
- package/registry/examples/how-it-works-page/orazaka.tsx +0 -26
- package/registry/examples/iso/compose.d.ts +0 -4
- package/registry/examples/iso/compose.js +0 -22
- package/registry/examples/iso/compose.tsx +0 -19
- package/registry/examples/iso/creator-hero.d.ts +0 -4
- package/registry/examples/iso/creator-hero.js +0 -29
- package/registry/examples/iso/creator-hero.tsx +0 -23
- package/registry/examples/iso/orazaka-hero.d.ts +0 -4
- package/registry/examples/iso/orazaka-hero.js +0 -26
- package/registry/examples/iso/orazaka-hero.tsx +0 -21
- package/registry/examples/iso/still.d.ts +0 -4
- package/registry/examples/iso/still.js +0 -21
- package/registry/examples/iso/still.tsx +0 -15
- package/registry/examples/marquee/cards.d.ts +0 -4
- package/registry/examples/marquee/cards.js +0 -23
- package/registry/examples/marquee/cards.tsx +0 -21
- package/registry/examples/marquee/logos.d.ts +0 -4
- package/registry/examples/marquee/logos.js +0 -12
- package/registry/examples/marquee/logos.tsx +0 -17
- package/registry/examples/media-grid/feed.d.ts +0 -4
- package/registry/examples/media-grid/feed.js +0 -32
- package/registry/examples/media-grid/feed.tsx +0 -31
- package/registry/examples/media-grid/loading.d.ts +0 -4
- package/registry/examples/media-grid/loading.js +0 -28
- package/registry/examples/media-grid/loading.tsx +0 -25
- package/registry/examples/media-grid/uniform.d.ts +0 -4
- package/registry/examples/media-grid/uniform.js +0 -29
- package/registry/examples/media-grid/uniform.tsx +0 -26
- package/registry/examples/meta-row/native/video.d.ts +0 -4
- package/registry/examples/meta-row/native/video.dark.png +0 -0
- package/registry/examples/meta-row/native/video.js +0 -11
- package/registry/examples/meta-row/native/video.light.png +0 -0
- package/registry/examples/meta-row/native/video.tsx +0 -5
- package/registry/examples/meta-row/status.d.ts +0 -4
- package/registry/examples/meta-row/status.js +0 -12
- package/registry/examples/meta-row/status.tsx +0 -7
- package/registry/examples/meta-row/video.d.ts +0 -4
- package/registry/examples/meta-row/video.js +0 -12
- package/registry/examples/meta-row/video.tsx +0 -7
- package/registry/examples/photo-grid/native/profile-photos.d.ts +0 -4
- package/registry/examples/photo-grid/native/profile-photos.dark.png +0 -0
- package/registry/examples/photo-grid/native/profile-photos.js +0 -27
- package/registry/examples/photo-grid/native/profile-photos.light.png +0 -0
- package/registry/examples/photo-grid/native/profile-photos.tsx +0 -24
- package/registry/examples/photo-grid/profile-photos.d.ts +0 -4
- package/registry/examples/photo-grid/profile-photos.js +0 -28
- package/registry/examples/photo-grid/profile-photos.tsx +0 -25
- package/registry/how-it-works-page.json +0 -258
- package/registry/iso.json +0 -1371
- package/registry/marquee.json +0 -241
- package/registry/media-grid.json +0 -1034
- package/registry/meta-row.json +0 -218
- package/registry/photo-grid.json +0 -316
- /package/dist/{chunk-GRVIZTT2.js.map → chunk-RI3AA2E3.js.map} +0 -0
- /package/dist/{chunk-E4FMPPDL.js.map → chunk-WC3SO4CE.js.map} +0 -0
- /package/dist/{chunk-M3GEYLMR.js.map → chunk-ZPOVOEO3.js.map} +0 -0
- /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,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,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,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,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,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,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,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
|
-
}
|
|
Binary file
|
|
@@ -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
|
-
};
|
|
Binary file
|
|
@@ -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,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
|
-
}
|
|
Binary file
|
|
@@ -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
|
-
};
|
|
Binary file
|
|
@@ -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,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
|
-
};
|