@krizaka/ui 3.74.0 → 3.76.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 +2 -6
- package/dist/blocks.css +2 -0
- package/dist/{chunk-GSQRSWOE.js → chunk-CEW3LQOZ.js} +520 -429
- package/dist/chunk-CEW3LQOZ.js.map +1 -0
- package/dist/{chunk-E4FMPPDL.js → chunk-WC3SO4CE.js} +2 -2
- package/dist/{chunk-KF7UB3LM.js → chunk-YQWYGQTV.js} +11 -9
- package/dist/{chunk-KF7UB3LM.js.map → chunk-YQWYGQTV.js.map} +1 -1
- package/dist/{chunk-M3GEYLMR.js → chunk-ZPOVOEO3.js} +1 -2
- package/dist/data-table.d.ts +1 -1
- package/dist/data-table.js +3 -3
- package/dist/filter-bar.d.ts +12 -4
- 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/language-switch.d.ts +9 -9
- package/dist/{lightbox-D5NAHFEA.js → lightbox-Q45BZ3HW.js} +3 -3
- package/dist/match-dialog.js +2 -2
- package/dist/motion.css +1 -25
- package/dist/native/list.js +1 -1
- package/dist/native/list.js.map +1 -1
- package/dist/native.d.ts +2 -54
- package/dist/native.js +464 -560
- package/dist/native.js.map +1 -1
- package/dist/nav-bar.js +1 -1
- package/dist/nav-bar.js.map +1 -1
- package/dist/product-page.js +3 -3
- package/dist/shop-gallery.js +1 -1
- package/dist/tag-selector.js +16 -10
- package/dist/tag-selector.js.map +1 -1
- package/dist/theme.d.ts +3 -1
- package/dist/theme.js +2 -1
- package/dist/theme.js.map +1 -1
- package/dist/vertical-video.js +1 -1
- package/dist/waveform.js.map +1 -1
- package/package.json +8 -84
- 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 +2 -2
- 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 +1 -1
- 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 +20 -20
- 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 +1 -1
- package/registry/embed-facade.json +1 -1
- package/registry/empty-state.json +1 -1
- package/registry/engine-flow.json +1 -1
- 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 +10 -185
- 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 +1 -1
- 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 +3 -3
- 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 +1 -1
- 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 +2 -2
- 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 +2 -2
- package/registry/sites.json +1 -1
- 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 +3 -4
- 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 +4 -4
- 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-GSQRSWOE.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/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/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/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 -31
- package/registry/examples/media-grid/feed.tsx +0 -30
- 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/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/marquee.json +0 -241
- package/registry/media-grid.json +0 -1034
- package/registry/photo-grid.json +0 -316
- /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,22 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
// registry/examples/audio-player/podcast.tsx
|
|
4
|
-
import { AudioPlayer } from "@krizaka/ui/audio-player";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
var PEAKS = Array.from({ length: 200 }, (_, i) => i % 37 < 3 ? 0.05 : 0.3 + Math.abs(Math.sin(i * 0.31)) * 0.7);
|
|
7
|
-
function AudioPlayerPodcast() {
|
|
8
|
-
return /* @__PURE__ */ jsx("div", { className: "w-full max-w-lg", children: /* @__PURE__ */ jsx(
|
|
9
|
-
AudioPlayer,
|
|
10
|
-
{
|
|
11
|
-
title: "Creators' hour \u2014 episode 12, extract",
|
|
12
|
-
src: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-16x9-en.9391096007.mp4",
|
|
13
|
-
peaks: PEAKS,
|
|
14
|
-
bars: 72,
|
|
15
|
-
duration: 190,
|
|
16
|
-
playbackRates: [1, 1.25, 1.5, 2]
|
|
17
|
-
}
|
|
18
|
-
) });
|
|
19
|
-
}
|
|
20
|
-
export {
|
|
21
|
-
AudioPlayerPodcast as default
|
|
22
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { AudioPlayer } from "@krizaka/ui/audio-player";
|
|
2
|
-
|
|
3
|
-
const PEAKS = Array.from({ length: 200 }, (_, i) => (i % 37 < 3 ? 0.05 : 0.3 + Math.abs(Math.sin(i * 0.31)) * 0.7));
|
|
4
|
-
|
|
5
|
-
// A longer extract: more bars, four speeds, the time before the metadata arrives.
|
|
6
|
-
export default function AudioPlayerPodcast() {
|
|
7
|
-
return (
|
|
8
|
-
<div className="w-full max-w-lg">
|
|
9
|
-
<AudioPlayer
|
|
10
|
-
title="Creators' hour — episode 12, extract"
|
|
11
|
-
src="https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-16x9-en.9391096007.mp4"
|
|
12
|
-
peaks={PEAKS}
|
|
13
|
-
bars={72}
|
|
14
|
-
duration={190}
|
|
15
|
-
playbackRates={[1, 1.25, 1.5, 2]}
|
|
16
|
-
/>
|
|
17
|
-
</div>
|
|
18
|
-
);
|
|
19
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
// registry/examples/audio-player/voice-note.tsx
|
|
4
|
-
import { AudioPlayer } from "@krizaka/ui/audio-player";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
var PEAKS = Array.from({ length: 64 }, (_, i) => 0.2 + Math.abs(Math.sin(i * 0.45) * Math.cos(i * 0.13)) * 0.8);
|
|
7
|
-
function AudioPlayerVoiceNote() {
|
|
8
|
-
return /* @__PURE__ */ jsx("div", { className: "w-full max-w-md", children: /* @__PURE__ */ jsx(AudioPlayer, { title: "The world of Krizaka, narrated", src: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16-en.a78c24ce48.mp4", peaks: PEAKS, duration: 42 }) });
|
|
9
|
-
}
|
|
10
|
-
export {
|
|
11
|
-
AudioPlayerVoiceNote as default
|
|
12
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { AudioPlayer } from "@krizaka/ui/audio-player";
|
|
2
|
-
|
|
3
|
-
// Peaks computed once on the server: 64 values between 0 and 1.
|
|
4
|
-
const PEAKS = Array.from({ length: 64 }, (_, i) => 0.2 + Math.abs(Math.sin(i * 0.45) * Math.cos(i * 0.13)) * 0.8);
|
|
5
|
-
|
|
6
|
-
export default function AudioPlayerVoiceNote() {
|
|
7
|
-
return (
|
|
8
|
-
<div className="w-full max-w-md">
|
|
9
|
-
<AudioPlayer title="The world of Krizaka, narrated" src="https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16-en.a78c24ce48.mp4" peaks={PEAKS} duration={42} />
|
|
10
|
-
</div>
|
|
11
|
-
);
|
|
12
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
// registry/examples/how-it-works-page/orazaka.tsx
|
|
4
|
-
import { CodeBlock } from "@krizaka/ui/code-block";
|
|
5
|
-
import { HowItWorksPage } from "@krizaka/ui/how-it-works-page";
|
|
6
|
-
import { Mascot } from "@krizaka/ui/mascots";
|
|
7
|
-
import { jsx } from "react/jsx-runtime";
|
|
8
|
-
var copy = { copyLabel: "Copy", copiedLabel: "Copied" };
|
|
9
|
-
function HowItWorksPageOrazaka() {
|
|
10
|
-
return /* @__PURE__ */ jsx(
|
|
11
|
-
HowItWorksPage,
|
|
12
|
-
{
|
|
13
|
-
brand: "orazaka",
|
|
14
|
-
back: { href: "#orazaka", label: "Orazaka" },
|
|
15
|
-
eyebrow: "How it works",
|
|
16
|
-
title: "The journey of a request",
|
|
17
|
-
lead: "Six stages, the same for every request \u2014 and none of them leaves your server.",
|
|
18
|
-
aside: /* @__PURE__ */ jsx(Mascot, { bird: "duck", mood: "thinking", size: 112 }),
|
|
19
|
-
stepsLabel: "The steps",
|
|
20
|
-
steps: [
|
|
21
|
-
{ id: "install", title: "Install", text: "One command pulls the engine, the models you choose and the console.", visual: /* @__PURE__ */ jsx(CodeBlock, { code: "npx orazaka install", language: "bash", file: "Terminal", ...copy }) },
|
|
22
|
-
{ id: "guard", title: "Guard", text: "Every request crosses the same interceptors: identity, quotas, the rules of your workspace.", visual: /* @__PURE__ */ jsx(CodeBlock, { code: "orazaka rules add --deny pii-export", language: "bash", file: "Terminal", ...copy }) },
|
|
23
|
-
{ id: "answer", title: "Answer", text: "The best local model answers; the answer is checked before it is shown.", visual: /* @__PURE__ */ jsx(CodeBlock, { code: "orazaka chat --model llama3.3", language: "bash", file: "Terminal", ...copy }) }
|
|
24
|
-
]
|
|
25
|
-
}
|
|
26
|
-
);
|
|
27
|
-
}
|
|
28
|
-
export {
|
|
29
|
-
HowItWorksPageOrazaka as default
|
|
30
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { CodeBlock } from "@krizaka/ui/code-block";
|
|
2
|
-
import { HowItWorksPage } from "@krizaka/ui/how-it-works-page";
|
|
3
|
-
import { Mascot } from "@krizaka/ui/mascots";
|
|
4
|
-
|
|
5
|
-
const copy = { copyLabel: "Copy", copiedLabel: "Copied" };
|
|
6
|
-
|
|
7
|
-
// TEMPLATE — how a product works, in steps along a line (Orazaka's journey of a request): each step its words beside
|
|
8
|
-
// its visual, the sides alternating on a wide screen, one column on a phone.
|
|
9
|
-
export default function HowItWorksPageOrazaka() {
|
|
10
|
-
return (
|
|
11
|
-
<HowItWorksPage
|
|
12
|
-
brand="orazaka"
|
|
13
|
-
back={{ href: "#orazaka", label: "Orazaka" }}
|
|
14
|
-
eyebrow="How it works"
|
|
15
|
-
title="The journey of a request"
|
|
16
|
-
lead="Six stages, the same for every request — and none of them leaves your server."
|
|
17
|
-
aside={<Mascot bird="duck" mood="thinking" size={112} />}
|
|
18
|
-
stepsLabel="The steps"
|
|
19
|
-
steps={[
|
|
20
|
-
{ id: "install", title: "Install", text: "One command pulls the engine, the models you choose and the console.", visual: <CodeBlock code="npx orazaka install" language="bash" file="Terminal" {...copy} /> },
|
|
21
|
-
{ id: "guard", title: "Guard", text: "Every request crosses the same interceptors: identity, quotas, the rules of your workspace.", visual: <CodeBlock code="orazaka rules add --deny pii-export" language="bash" file="Terminal" {...copy} /> },
|
|
22
|
-
{ id: "answer", title: "Answer", text: "The best local model answers; the answer is checked before it is shown.", visual: <CodeBlock code="orazaka chat --model llama3.3" language="bash" file="Terminal" {...copy} /> },
|
|
23
|
-
]}
|
|
24
|
-
/>
|
|
25
|
-
);
|
|
26
|
-
}
|
|
@@ -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,31 +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 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: `${WIDE}/tea-pour.d69c3a5700.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: `${WIDE}/desert-camp.78c6c0d26c.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: `${WIDE}/mtl-snow.e3ecb20e82.webp`, tall: true }
|
|
16
|
-
];
|
|
17
|
-
function MediaGridFeed() {
|
|
18
|
-
return /* @__PURE__ */ jsx(
|
|
19
|
-
MediaGrid,
|
|
20
|
-
{
|
|
21
|
-
items: CLIPS,
|
|
22
|
-
getId: (c) => c.id,
|
|
23
|
-
orientationOf: (c) => c.tall ? "portrait" : "landscape",
|
|
24
|
-
shelf: { label: "Shorts", previousLabel: "Previous shorts", nextLabel: "Next shorts", seeAll: { href: "#shorts", label: "See all" } },
|
|
25
|
-
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" }) })
|
|
26
|
-
}
|
|
27
|
-
);
|
|
28
|
-
}
|
|
29
|
-
export {
|
|
30
|
-
MediaGridFeed as default
|
|
31
|
-
};
|
|
@@ -1,30 +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 CLIPS = [
|
|
9
|
-
{ id: "tea", title: "Pouring the mint tea, slow", poster: `${WIDE}/tea-pour.d69c3a5700.webp`, tall: false },
|
|
10
|
-
{ id: "story", title: "Backstage, a minute before", poster: `${WIDE}/tea-pour.d69c3a5700.webp`, tall: true },
|
|
11
|
-
{ id: "snow", title: "First snow on rue Saint-Denis", poster: `${WIDE}/mtl-snow.e3ecb20e82.webp`, tall: false },
|
|
12
|
-
{ id: "watch", title: "The unlock in one tap", poster: `${WIDE}/desert-camp.78c6c0d26c.webp`, tall: true },
|
|
13
|
-
{ id: "desert", title: "Desert camp at blue hour", poster: `${WIDE}/desert-camp.78c6c0d26c.webp`, tall: false },
|
|
14
|
-
{ id: "thanks", title: "Three ways to say thanks", poster: `${WIDE}/mtl-snow.e3ecb20e82.webp`, tall: true },
|
|
15
|
-
];
|
|
16
|
-
|
|
17
|
-
// 'split' (the feed default): vertical clips on a Shorts shelf, the others in a 16:9 grid whose cards share one height.
|
|
18
|
-
export default function MediaGridFeed() {
|
|
19
|
-
return (
|
|
20
|
-
<MediaGrid
|
|
21
|
-
items={CLIPS}
|
|
22
|
-
getId={(c) => c.id}
|
|
23
|
-
orientationOf={(c) => (c.tall ? "portrait" : "landscape")}
|
|
24
|
-
shelf={{ label: "Shorts", previousLabel: "Previous shorts", nextLabel: "Next shorts", seeAll: { href: "#shorts", label: "See all" } }}
|
|
25
|
-
renderItem={(c, { aspect, layout }) => (
|
|
26
|
-
<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>} />
|
|
27
|
-
)}
|
|
28
|
-
/>
|
|
29
|
-
);
|
|
30
|
-
}
|
|
@@ -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}/products/orazaka/gallery/tea-pour.d69c3a5700.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}/products/orazaka/gallery/desert-camp.78c6c0d26c.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}/products/orazaka/gallery/tea-pour.d69c3a5700.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}/products/orazaka/gallery/desert-camp.78c6c0d26c.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,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
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import { type GridPhoto, PhotoGrid } from "@krizaka/ui/photo-grid";
|
|
4
|
-
import { useState } from "react";
|
|
5
|
-
|
|
6
|
-
const png = (data: string) => `data:image/png;base64,${data}`;
|
|
7
|
-
|
|
8
|
-
// A profile's photos: drag one onto another, or its buttons; the first is the main one.
|
|
9
|
-
export default function PhotoGridProfilePhotos() {
|
|
10
|
-
const [photos, setPhotos] = useState<GridPhoto[]>([
|
|
11
|
-
{ 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" },
|
|
12
|
-
{ 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" },
|
|
13
|
-
{ 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" },
|
|
14
|
-
]);
|
|
15
|
-
return (
|
|
16
|
-
<PhotoGrid
|
|
17
|
-
className="max-w-sm"
|
|
18
|
-
value={photos}
|
|
19
|
-
onValueChange={setPhotos}
|
|
20
|
-
onAdd={() => undefined}
|
|
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
|
-
}
|