@krizaka/ui 3.61.0 → 3.63.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 +13 -16
- 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/achievement.d.ts +2 -2
- package/dist/achievement.js +1 -1
- package/dist/achievement.js.map +1 -1
- package/dist/activity-feed.d.ts +1 -1
- package/dist/activity-feed.js.map +1 -1
- package/dist/app-shell.js.map +1 -1
- package/dist/auth-layout.d.ts +1 -1
- package/dist/auth-layout.js.map +1 -1
- package/dist/avatar/defaults.d.ts +2 -1
- package/dist/avatar/defaults.js.map +1 -1
- package/dist/{avatar-iajODANU.d.ts → avatar-BL2iG_Js.d.ts} +2 -1
- package/dist/avatar.d.ts +3 -2
- package/dist/avatar.js.map +1 -1
- package/dist/bird-plate.d.ts +1 -1
- package/dist/bird-plate.js +1 -1
- package/dist/chat.js +1 -1
- package/dist/choice-grid.d.ts +1 -1
- package/dist/choice-grid.js +1 -1
- package/dist/choice-grid.js.map +1 -1
- package/dist/{chunk-KB7OLYIJ.js → chunk-7AZ23BUX.js} +1 -1
- package/dist/chunk-7AZ23BUX.js.map +1 -0
- package/dist/{chunk-4E5IUZHR.js → chunk-B2HS5EAH.js} +1 -1
- package/dist/chunk-B2HS5EAH.js.map +1 -0
- package/dist/{chunk-MHUUNC5W.js → chunk-DRTIE44Z.js} +1 -1
- package/dist/chunk-DRTIE44Z.js.map +1 -0
- package/dist/{chunk-555LWYIN.js → chunk-EHTXLZSM.js} +1 -1
- package/dist/{chunk-555LWYIN.js.map → chunk-EHTXLZSM.js.map} +1 -1
- package/dist/{chunk-3RVFD3UX.js → chunk-PW2FVPTV.js} +1 -1
- package/dist/chunk-PW2FVPTV.js.map +1 -0
- package/dist/{chunk-MIMOTE4W.js → chunk-RCHKIOVV.js} +1 -1
- package/dist/chunk-RCHKIOVV.js.map +1 -0
- package/dist/{chunk-XVFQZ3ZG.js → chunk-TPITVAUW.js} +1 -1
- package/dist/{chunk-XVFQZ3ZG.js.map → chunk-TPITVAUW.js.map} +1 -1
- package/dist/{chunk-LE5NSQEA.js → chunk-Y5YBTHVD.js} +11 -17
- package/dist/chunk-Y5YBTHVD.js.map +1 -0
- package/dist/continue-prompt.js +1 -1
- package/dist/dashboard-layout.js.map +1 -1
- package/dist/date-picker.d.ts +15 -15
- package/dist/detail-layout.js.map +1 -1
- package/dist/elephant.js.map +1 -1
- package/dist/engine-flow.d.ts +19 -6
- package/dist/engine-flow.js +24 -7
- package/dist/engine-flow.js.map +1 -1
- package/dist/environment-notice.d.ts +110 -0
- package/dist/environment-notice.js +47 -0
- package/dist/environment-notice.js.map +1 -0
- package/dist/file-upload.d.ts +2 -2
- package/dist/filter-bar.d.ts +3 -3
- package/dist/flock.js +1 -1
- package/dist/{geometry-DZ4Q3hDQ.d.ts → geometry-DDlFDtiQ.d.ts} +3 -4
- package/dist/{geometry-DncHaYP8.d.ts → geometry-DuUQyHZ1.d.ts} +3 -4
- package/dist/goal-gauge.d.ts +1 -1
- package/dist/goal-gauge.js +1 -1
- package/dist/goal-gauge.js.map +1 -1
- package/dist/index.d.ts +15 -1
- package/dist/index.js +1 -1
- package/dist/landing-page.d.ts +1 -1
- package/dist/landing-page.js.map +1 -1
- package/dist/loader.d.ts +1 -1
- package/dist/loader.js.map +1 -1
- package/dist/mascot-quote.d.ts +1 -1
- package/dist/mascot-quote.js +1 -1
- package/dist/mascot-state.js +1 -1
- package/dist/mascots.d.ts +2 -2
- package/dist/mascots.js +1 -1
- package/dist/match-dialog.js +1 -1
- package/dist/media-grid.d.ts +1 -0
- package/dist/media-grid.js +1 -1
- package/dist/motion.css +15 -5
- package/dist/native.d.ts +39 -10
- package/dist/native.js +905 -870
- 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.d.ts +1 -1
- package/dist/product-page.js.map +1 -1
- package/dist/profile-card.d.ts +1 -1
- package/dist/profile-card.js +1 -1
- package/dist/profile-card.js.map +1 -1
- package/dist/promise-card.js +1 -1
- package/dist/rail-nav.d.ts +4 -0
- package/dist/scroll-stage.d.ts +1 -1
- package/dist/scroll-stage.js +1 -1
- package/dist/scroll-stage.js.map +1 -1
- package/dist/site-cahier.d.ts +10 -2
- package/dist/site-cahier.js +10 -16
- 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-BKz1beUK.d.ts → sites-CEnywB89.d.ts} +10 -2
- package/dist/sites.d.ts +13 -5
- package/dist/sites.js +9 -15
- package/dist/sites.js.map +1 -1
- package/dist/stage-banner.d.ts +1 -1
- package/dist/stage-banner.js +1 -1
- package/dist/stage-banner.js.map +1 -1
- package/dist/status-page.d.ts +1 -1
- package/dist/status-page.js.map +1 -1
- package/dist/versus-card.js +1 -1
- package/dist/vertical-video.js +1 -1
- package/package.json +23 -11
- package/registry/account-menu.json +1 -1
- package/registry/account-settings.json +1 -1
- package/registry/achievement.json +8 -8
- package/registry/action-bar.json +1 -1
- package/registry/activity-feed.json +8 -8
- package/registry/agenda.json +1 -1
- package/registry/alert.json +1 -1
- package/registry/anatomy-plate.json +1 -1
- package/registry/app-header.json +3 -3
- package/registry/app-shell.json +10 -10
- package/registry/argument-card.json +1 -1
- package/registry/audio-player.json +6 -6
- package/registry/auth-layout.json +9 -9
- package/registry/avatar.json +8 -8
- 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 +6 -6
- 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 +6 -6
- package/registry/code-block.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 +2 -2
- 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 +2 -2
- package/registry/data-table.json +1 -1
- package/registry/date-picker.json +2 -2
- package/registry/decision-list.json +1 -1
- package/registry/description-list.json +1 -1
- package/registry/detail-layout.json +6 -6
- package/registry/dialog.json +1 -1
- package/registry/docs-article-page.json +1 -1
- package/registry/docs-hub-page.json +3 -3
- 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 +7 -7
- package/registry/empty-state.json +2 -2
- package/registry/engine-flow.json +42 -8
- package/registry/environment-notice.json +270 -0
- package/registry/error-page.json +1 -1
- package/registry/examples/achievement/arcade.js +1 -1
- package/registry/examples/achievement/arcade.tsx +1 -1
- package/registry/examples/activity-feed/job-activity.tsx +1 -1
- package/registry/examples/app-shell/admin-console.js +1 -1
- package/registry/examples/app-shell/admin-console.tsx +2 -2
- package/registry/examples/app-shell/basic.js +1 -1
- package/registry/examples/app-shell/basic.tsx +1 -1
- package/registry/examples/app-shell/{orochia-studio.js → creator-studio.js} +6 -6
- package/registry/examples/app-shell/{orochia-studio.tsx → creator-studio.tsx} +4 -4
- package/registry/examples/audio-player/podcast.js +1 -1
- package/registry/examples/audio-player/podcast.tsx +1 -1
- package/registry/examples/audio-player/voice-note.js +1 -1
- package/registry/examples/audio-player/voice-note.tsx +1 -1
- package/registry/examples/auth-layout/onboarding.js +3 -3
- package/registry/examples/auth-layout/onboarding.tsx +3 -3
- package/registry/examples/auth-layout/sign-in.js +3 -3
- package/registry/examples/auth-layout/sign-in.tsx +3 -3
- package/registry/examples/avatar/default.js +1 -1
- package/registry/examples/avatar/default.tsx +1 -1
- package/registry/examples/card-grid/aligned.js +2 -2
- package/registry/examples/card-grid/aligned.tsx +2 -2
- package/registry/examples/card-grid/foundation.js +1 -2
- package/registry/examples/card-grid/foundation.tsx +1 -2
- package/registry/examples/card-grid/hover-quiet.js +1 -1
- package/registry/examples/card-grid/hover-quiet.tsx +1 -1
- package/registry/examples/card-grid/products.js +1 -1
- package/registry/examples/card-grid/products.tsx +1 -1
- package/registry/examples/choice-grid/line-up.js +1 -1
- package/registry/examples/choice-grid/line-up.tsx +1 -1
- package/registry/examples/detail-layout/checkout.js +1 -1
- package/registry/examples/detail-layout/checkout.tsx +2 -2
- package/registry/examples/detail-layout/video.js +1 -1
- package/registry/examples/detail-layout/video.tsx +2 -2
- package/registry/examples/docs-hub-page/krizaka.js +1 -1
- package/registry/examples/docs-hub-page/krizaka.tsx +1 -1
- package/registry/examples/empty-state/library.js +1 -1
- package/registry/examples/empty-state/library.tsx +1 -1
- package/registry/examples/engine-flow/calm.js +28 -0
- package/registry/examples/engine-flow/calm.tsx +25 -0
- package/registry/examples/engine-flow/compact.js +4 -4
- package/registry/examples/engine-flow/compact.tsx +4 -4
- package/registry/examples/engine-flow/radial.js +2 -6
- package/registry/examples/engine-flow/radial.tsx +1 -5
- package/registry/examples/environment-notice/development.d.ts +4 -0
- package/registry/examples/environment-notice/development.js +15 -0
- package/registry/examples/environment-notice/development.tsx +13 -0
- package/registry/examples/environment-notice/native/development.d.ts +4 -0
- package/registry/examples/environment-notice/native/development.dark.png +0 -0
- package/registry/examples/environment-notice/native/development.js +21 -0
- package/registry/examples/environment-notice/native/development.light.png +0 -0
- package/registry/examples/environment-notice/native/development.tsx +17 -0
- package/registry/examples/environment-notice/staging.d.ts +4 -0
- package/registry/examples/environment-notice/staging.js +11 -0
- package/registry/examples/environment-notice/staging.tsx +6 -0
- package/registry/examples/force-update-screen/default.js +1 -1
- package/registry/examples/force-update-screen/default.tsx +1 -1
- package/registry/examples/force-update-screen/native/default.dark.png +0 -0
- package/registry/examples/force-update-screen/native/default.js +1 -1
- package/registry/examples/force-update-screen/native/default.light.png +0 -0
- package/registry/examples/force-update-screen/native/default.tsx +1 -1
- package/registry/examples/form/native/sign-up.js +2 -2
- package/registry/examples/form/native/sign-up.tsx +2 -2
- package/registry/examples/form/sign-up.js +1 -1
- package/registry/examples/form/sign-up.tsx +3 -3
- package/registry/examples/goal-gauge/arcade.js +1 -1
- package/registry/examples/goal-gauge/arcade.tsx +1 -1
- package/registry/examples/image-cropper/avatar.js +1 -1
- package/registry/examples/image-cropper/avatar.tsx +1 -1
- package/registry/examples/image-cropper/banner.js +1 -1
- package/registry/examples/image-cropper/banner.tsx +1 -1
- package/registry/examples/image-cropper/vertical-video.js +1 -2
- package/registry/examples/image-cropper/vertical-video.tsx +1 -3
- package/registry/examples/iso/creator-hero.d.ts +4 -0
- package/registry/examples/iso/{orochia-hero.js → creator-hero.js} +3 -3
- package/registry/examples/iso/{orochia-hero.tsx → creator-hero.tsx} +1 -1
- package/registry/examples/landing-page/krizaka.js +2 -2
- package/registry/examples/landing-page/krizaka.tsx +2 -2
- package/registry/examples/link-card/docs-hub.js +1 -1
- package/registry/examples/link-card/docs-hub.tsx +1 -1
- package/registry/examples/link-card/hover-quiet.js +1 -1
- package/registry/examples/link-card/hover-quiet.tsx +1 -1
- package/registry/examples/loader/branded.js +2 -2
- package/registry/examples/loader/branded.tsx +3 -3
- package/registry/examples/loader/native/branded.dark.png +0 -0
- package/registry/examples/loader/native/branded.js +1 -1
- package/registry/examples/loader/native/branded.light.png +0 -0
- package/registry/examples/loader/native/branded.tsx +2 -2
- package/registry/examples/longform-page/story.js +3 -3
- package/registry/examples/longform-page/story.tsx +3 -3
- package/registry/examples/marketing-layout/docs-hub.js +1 -1
- package/registry/examples/marketing-layout/docs-hub.tsx +1 -1
- package/registry/examples/mascots/flock.tsx +2 -2
- package/registry/examples/nav-bar/family-admin.js +5 -5
- package/registry/examples/nav-bar/family-admin.tsx +4 -4
- package/registry/examples/nav-bar/site.js +1 -1
- package/registry/examples/nav-bar/site.tsx +1 -1
- package/registry/examples/permission-prompt/native/blocked.dark.png +0 -0
- package/registry/examples/permission-prompt/native/blocked.js +1 -1
- package/registry/examples/permission-prompt/native/blocked.tsx +1 -1
- package/registry/examples/permission-prompt/native/camera.dark.png +0 -0
- package/registry/examples/permission-prompt/native/camera.js +1 -1
- package/registry/examples/permission-prompt/native/camera.light.png +0 -0
- package/registry/examples/permission-prompt/native/camera.tsx +1 -1
- package/registry/examples/profile-card/match.js +1 -1
- package/registry/examples/profile-card/match.tsx +1 -1
- package/registry/examples/promise-card/arcade.js +1 -1
- package/registry/examples/promise-card/arcade.tsx +1 -1
- package/registry/examples/pull-to-refresh/native/branded.dark.png +0 -0
- package/registry/examples/pull-to-refresh/native/branded.js +1 -1
- package/registry/examples/pull-to-refresh/native/branded.light.png +0 -0
- package/registry/examples/pull-to-refresh/native/branded.tsx +1 -1
- package/registry/examples/rail-nav/expandable.js +3 -3
- package/registry/examples/rail-nav/expandable.tsx +3 -3
- package/registry/examples/retro-tv/cabinet.js +1 -2
- package/registry/examples/retro-tv/cabinet.tsx +1 -3
- package/registry/examples/retro-tv/portable.js +1 -2
- package/registry/examples/retro-tv/portable.tsx +1 -3
- package/registry/examples/scroll-stage/arcade.js +1 -1
- package/registry/examples/scroll-stage/arcade.tsx +1 -1
- package/registry/examples/search-field/global.js +1 -1
- package/registry/examples/search-field/global.tsx +1 -1
- package/registry/examples/sites/french.js +1 -1
- package/registry/examples/sites/french.tsx +1 -1
- package/registry/examples/specimen-tag/wire.js +2 -2
- package/registry/examples/specimen-tag/wire.tsx +2 -2
- package/registry/examples/splash-handoff/native/default.dark.png +0 -0
- package/registry/examples/splash-handoff/native/default.js +1 -1
- package/registry/examples/splash-handoff/native/default.light.png +0 -0
- package/registry/examples/splash-handoff/native/default.tsx +1 -1
- package/registry/examples/split-view/messages.tsx +1 -1
- package/registry/examples/split-view/notifications.js +1 -1
- package/registry/examples/split-view/notifications.tsx +1 -1
- package/registry/examples/status-page/building.js +2 -2
- package/registry/examples/status-page/building.tsx +2 -2
- package/registry/examples/status-page/operational.js +1 -1
- package/registry/examples/status-page/operational.tsx +1 -1
- package/registry/examples/tab-bar/native/main-sections.tsx +1 -1
- package/registry/examples/tree-view/docs.js +1 -1
- package/registry/examples/tree-view/docs.tsx +1 -1
- package/registry/examples/video-player/default.js +1 -2
- package/registry/examples/video-player/default.tsx +1 -3
- package/registry/examples/video-player/gated.js +2 -3
- package/registry/examples/video-player/gated.tsx +2 -4
- package/registry/examples/video-player/native/default.dark.png +0 -0
- package/registry/examples/video-player/native/default.js +3 -3
- package/registry/examples/video-player/native/default.light.png +0 -0
- package/registry/examples/video-player/native/default.tsx +3 -3
- package/registry/examples/video-player/signed-source.js +2 -3
- package/registry/examples/video-player/signed-source.tsx +2 -4
- package/registry/examples/video-player/vertical.js +1 -2
- package/registry/examples/video-player/vertical.tsx +1 -3
- package/registry/examples/video-trimmer/filmstrip.js +10 -2
- package/registry/examples/video-trimmer/filmstrip.tsx +11 -2
- package/registry/examples/video-trimmer/playhead.js +8 -1
- package/registry/examples/video-trimmer/playhead.tsx +9 -1
- package/registry/field.json +1 -1
- package/registry/file-upload.json +2 -2
- package/registry/filter-bar.json +1 -1
- package/registry/flock.json +1 -1
- package/registry/footnote.json +1 -1
- package/registry/force-update-screen.json +4 -4
- package/registry/form.json +7 -7
- package/registry/gallery-page.json +1 -1
- package/registry/genui.json +2 -2
- 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 +6 -6
- package/registry/grade-stamp.json +1 -1
- package/registry/how-it-works-page.json +1 -1
- package/registry/image-cropper.json +5 -5
- package/registry/index.json +54 -25
- package/registry/iso.json +7 -7
- package/registry/kanban.json +3 -3
- package/registry/kbd.json +1 -1
- package/registry/kind-config-editor.json +1 -1
- package/registry/kpi-explained.json +2 -2
- package/registry/landing-page.json +6 -6
- 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 +4 -4
- package/registry/list.json +3 -3
- package/registry/loader.json +11 -11
- package/registry/longform-page.json +3 -3
- package/registry/maintenance-screen.json +1 -1
- package/registry/map.json +2 -2
- package/registry/markdown.json +1 -1
- package/registry/marketing-layout.json +2 -2
- package/registry/marquee.json +1 -1
- package/registry/mascot-quote.json +1 -1
- package/registry/mascot-state.json +1 -1
- package/registry/mascots.json +5 -5
- package/registry/match-dialog.json +1 -1
- package/registry/media-capture.json +1 -1
- package/registry/media-gallery.json +1 -1
- package/registry/media-grid.json +3 -3
- package/registry/meta-row.json +1 -1
- package/registry/meter.json +1 -1
- package/registry/nav-bar.json +9 -9
- package/registry/next-actions.json +1 -1
- package/registry/notification-preferences.json +3 -3
- package/registry/number-ticker.json +1 -1
- package/registry/onboarding.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/permission-prompt.json +3 -3
- package/registry/photo-grid.json +1 -1
- package/registry/pointer-light.json +1 -1
- package/registry/popover.json +1 -1
- package/registry/pricing-page.json +1 -1
- package/registry/product-page.json +6 -6
- package/registry/profile-card.json +7 -7
- package/registry/progress.json +1 -1
- package/registry/promise-card.json +3 -3
- package/registry/pull-to-refresh.json +2 -2
- package/registry/quota-meter.json +1 -1
- package/registry/radio-group.json +1 -1
- package/registry/rail-nav.json +10 -10
- package/registry/recipes.json +1 -1
- package/registry/retro-tv.json +4 -4
- package/registry/router.json +1 -1
- package/registry/scroll-stage.json +6 -6
- package/registry/search-field.json +3 -3
- 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/showcase.json +1 -1
- package/registry/signature.json +1 -1
- package/registry/site-cahier.json +1 -1
- package/registry/site-footer.json +7 -7
- package/registry/sites.json +4 -4
- 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 +2 -2
- package/registry/speed-lines.json +1 -1
- package/registry/spinner.json +1 -1
- package/registry/splash-handoff.json +4 -4
- package/registry/split-view.json +4 -4
- package/registry/stage-banner.json +10 -6
- package/registry/stat.json +3 -3
- package/registry/status-chip.json +1 -1
- package/registry/status-page.json +9 -9
- 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 +1 -1
- package/registry/switch.json +1 -1
- package/registry/tab-bar.json +2 -2
- package/registry/tabs.json +1 -1
- package/registry/tag-input.json +1 -1
- package/registry/tag-selector.json +1 -1
- 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 +3 -3
- package/registry/update-prompt.json +1 -1
- package/registry/upload-queue.json +1 -1
- package/registry/verified-badge.json +1 -1
- package/registry/versus-card.json +1 -1
- package/registry/vertical-video.json +4 -4
- package/registry/video-player.json +7 -7
- package/registry/video-trimmer.json +6 -6
- package/registry/virtual.json +1 -1
- package/registry/wall.json +1 -1
- package/registry/waveform.json +1 -1
- package/skills/form/SKILL.md +1 -1
- package/skills/map/SKILL.md +2 -2
- package/dist/chunk-3RVFD3UX.js.map +0 -1
- package/dist/chunk-4E5IUZHR.js.map +0 -1
- package/dist/chunk-KB7OLYIJ.js.map +0 -1
- package/dist/chunk-LE5NSQEA.js.map +0 -1
- package/dist/chunk-MHUUNC5W.js.map +0 -1
- package/dist/chunk-MIMOTE4W.js.map +0 -1
- /package/registry/examples/app-shell/{orochia-studio.d.ts → creator-studio.d.ts} +0 -0
- /package/registry/examples/{iso/orochia-hero.d.ts → engine-flow/calm.d.ts} +0 -0
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "environment-notice",
|
|
3
|
+
"type": "primitive",
|
|
4
|
+
"title": "Environment notice",
|
|
5
|
+
"summary": "A thin band above the app bar that says this deployment is a development version — its data can be reset and it is not a commercial offer — driven by the deployment's stage: it renders nothing in production.",
|
|
6
|
+
"description": "A thin band above the app bar that says this deployment is a development version — its data can be reset and it is not a commercial offer — driven by the deployment's stage: it renders nothing in production.",
|
|
7
|
+
"status": "beta",
|
|
8
|
+
"deprecated": null,
|
|
9
|
+
"category": "blocks",
|
|
10
|
+
"platforms": "both",
|
|
11
|
+
"parity": {
|
|
12
|
+
"web": {
|
|
13
|
+
"state": "yes"
|
|
14
|
+
},
|
|
15
|
+
"native": {
|
|
16
|
+
"state": "yes"
|
|
17
|
+
},
|
|
18
|
+
"desktop": {
|
|
19
|
+
"state": "yes"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"whenToUse": [
|
|
23
|
+
"On every screen of a development, staging or preview deployment that people can reach (dev.<product>.com, the admin console, the phone app, the Mac app).",
|
|
24
|
+
"Whenever the app must tell a visitor that what they see is not the real offer, with the stage read once from configuration."
|
|
25
|
+
],
|
|
26
|
+
"whenNotToUse": [
|
|
27
|
+
{
|
|
28
|
+
"when": "The announcement of a chapter on a told page (« Step 02 · Payments »).",
|
|
29
|
+
"use": "stage-banner"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"when": "A message about the visitor's own situation (a quota, a failure, a maintenance window).",
|
|
33
|
+
"use": "alert"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"when": "A transient confirmation.",
|
|
37
|
+
"use": "toast"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"bestPractices": [
|
|
41
|
+
"Read the stage once (an env var named by context, such as `APP_ENVIRONMENT`, or a setting in the database) and pass it down from the root layout: never an `if` per page.",
|
|
42
|
+
"Pass the words from your messages (`@krizaka/i18n`), French first where the app defaults to French; the package ships none.",
|
|
43
|
+
"Put it above the app bar, outside the content, so it never covers anything and shifts nothing (it is server-rendered with a minimum height).",
|
|
44
|
+
"`environmentNotice(config)` is the rule if you need it elsewhere (a native shell, a test): it returns `null` for `production` and `prod`.",
|
|
45
|
+
"Set the stage in the deployment spec of the dev environment; no production spec sets it to development."
|
|
46
|
+
],
|
|
47
|
+
"accessibility": {
|
|
48
|
+
"keyboard": [
|
|
49
|
+
{
|
|
50
|
+
"keys": "Tab / Enter",
|
|
51
|
+
"action": "Reaches the link, when there is one."
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"notes": [
|
|
55
|
+
"A region named by its title (`role=region`, `aria-label`), not a live region: it is there from the first render, not an event.",
|
|
56
|
+
"Its colours are the warning tint over the surface and the text roles (readable in dark and light); there is no motion.",
|
|
57
|
+
"It cannot be dismissed: the line is part of the page for as long as the stage is not production."
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
"related": [
|
|
61
|
+
"alert",
|
|
62
|
+
"stage-banner",
|
|
63
|
+
"app-header",
|
|
64
|
+
"nav-bar"
|
|
65
|
+
],
|
|
66
|
+
"web": {
|
|
67
|
+
"entry": "@krizaka/ui/environment-notice",
|
|
68
|
+
"import": "import { EnvironmentNotice, environmentNotice } from \"@krizaka/ui/environment-notice\";",
|
|
69
|
+
"props": [
|
|
70
|
+
{
|
|
71
|
+
"component": "EnvironmentNotice",
|
|
72
|
+
"description": "",
|
|
73
|
+
"props": [
|
|
74
|
+
{
|
|
75
|
+
"name": "message",
|
|
76
|
+
"type": "string",
|
|
77
|
+
"default": null,
|
|
78
|
+
"description": "The line (« Data can be reset at any time. Not a commercial offer. »). Passed translated.",
|
|
79
|
+
"required": true
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"name": "stage",
|
|
83
|
+
"type": "string | null | undefined",
|
|
84
|
+
"default": null,
|
|
85
|
+
"description": "The deployment's stage, read once by the app. `production` (or `prod`) renders nothing; any other value shows the notice.",
|
|
86
|
+
"required": true
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "title",
|
|
90
|
+
"type": "string",
|
|
91
|
+
"default": null,
|
|
92
|
+
"description": "The headline (« Development version »): also the region's accessible name. Passed translated.",
|
|
93
|
+
"required": true
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"name": "link",
|
|
97
|
+
"type": "{ label: string; href: string; }",
|
|
98
|
+
"default": null,
|
|
99
|
+
"description": "An optional way to learn more. `linkAs` renders it with your router's Link.",
|
|
100
|
+
"required": false
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"name": "linkAs",
|
|
104
|
+
"type": "ElementType<any, keyof IntrinsicElements>",
|
|
105
|
+
"default": null,
|
|
106
|
+
"description": "Renders the link with your router's Link (`next/link`) instead of an `<a>`.",
|
|
107
|
+
"required": false
|
|
108
|
+
}
|
|
109
|
+
]
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
"examples": [
|
|
113
|
+
{
|
|
114
|
+
"name": "development",
|
|
115
|
+
"title": "A development version",
|
|
116
|
+
"description": "The band above the app bar, with its line and a link; the stage `development` shows it, `production` renders nothing.",
|
|
117
|
+
"path": "examples/environment-notice/development.tsx",
|
|
118
|
+
"module": "@krizaka/ui/registry/examples/environment-notice/development",
|
|
119
|
+
"code": "import { EnvironmentNotice } from \"@krizaka/ui/environment-notice\";\n\n// The stage comes from configuration, read once in the root layout (here a constant for the example).\nconst stage = \"development\";\n\nexport default function EnvironmentNoticeDevelopment() {\n return (\n <div className=\"overflow-hidden rounded-xl border border-border-default\">\n <EnvironmentNotice stage={stage} title=\"Development version\" message=\"Data can be reset at any time. Not a commercial offer.\" link={{ label: \"What this means\", href: \"#development\" }} />\n <div className=\"bg-surface-1 p-4 text-sm text-fg-secondary\">The app bar and the page follow.</div>\n </div>\n );\n}\n"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"name": "staging",
|
|
123
|
+
"title": "Another stage",
|
|
124
|
+
"description": "Any stage but production shows the notice; the words are the app's.",
|
|
125
|
+
"path": "examples/environment-notice/staging.tsx",
|
|
126
|
+
"module": "@krizaka/ui/registry/examples/environment-notice/staging",
|
|
127
|
+
"code": "import { EnvironmentNotice } from \"@krizaka/ui/environment-notice\";\n\n// Any stage but production shows the notice; the words come from the app's messages.\nexport default function EnvironmentNoticeStaging() {\n return <EnvironmentNotice stage=\"staging\" title=\"Staging version\" message=\"Data can be reset at any time. Not a commercial offer.\" />;\n}\n"
|
|
128
|
+
}
|
|
129
|
+
]
|
|
130
|
+
},
|
|
131
|
+
"native": {
|
|
132
|
+
"entry": "@krizaka/ui/native",
|
|
133
|
+
"import": "import { EnvironmentNotice } from \"@krizaka/ui/native\";",
|
|
134
|
+
"differences": [
|
|
135
|
+
"The link is `onLinkPress` (the app opens it); there is no `linkAs`.",
|
|
136
|
+
"Place it above the screen's header, inside the safe area your layout already applies."
|
|
137
|
+
],
|
|
138
|
+
"deprecated": null,
|
|
139
|
+
"props": [
|
|
140
|
+
{
|
|
141
|
+
"component": "EnvironmentNotice",
|
|
142
|
+
"description": "The web `EnvironmentNotice` on React Native.",
|
|
143
|
+
"props": [
|
|
144
|
+
{
|
|
145
|
+
"name": "message",
|
|
146
|
+
"type": "string",
|
|
147
|
+
"default": null,
|
|
148
|
+
"description": "The line (« Data can be reset at any time. Not a commercial offer. »). Passed translated.",
|
|
149
|
+
"required": true
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"name": "stage",
|
|
153
|
+
"type": "string | null | undefined",
|
|
154
|
+
"default": null,
|
|
155
|
+
"description": "The deployment's stage, read once by the app. `production` (or `prod`) renders nothing.",
|
|
156
|
+
"required": true
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"name": "title",
|
|
160
|
+
"type": "string",
|
|
161
|
+
"default": null,
|
|
162
|
+
"description": "The headline (« Development version »): the region's accessible name. Passed translated.",
|
|
163
|
+
"required": true
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"name": "link",
|
|
167
|
+
"type": "{ label: string; }",
|
|
168
|
+
"default": null,
|
|
169
|
+
"description": "An optional way to learn more; the app opens it in `onLinkPress`.",
|
|
170
|
+
"required": false
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"name": "onLinkPress",
|
|
174
|
+
"type": "(() => void)",
|
|
175
|
+
"default": null,
|
|
176
|
+
"description": "Called when the link is pressed: the app opens the address.",
|
|
177
|
+
"required": false
|
|
178
|
+
}
|
|
179
|
+
]
|
|
180
|
+
}
|
|
181
|
+
],
|
|
182
|
+
"examples": [
|
|
183
|
+
{
|
|
184
|
+
"name": "development",
|
|
185
|
+
"title": "A development version",
|
|
186
|
+
"description": "The band above the header with its line and a link.",
|
|
187
|
+
"path": "examples/environment-notice/native/development.tsx",
|
|
188
|
+
"module": "@krizaka/ui/registry/examples/environment-notice/native/development",
|
|
189
|
+
"code": "import { EnvironmentNotice } from \"@krizaka/ui/native\";\nimport { Linking, View } from \"react-native\";\n\n// The stage is read once from configuration (the app's `APP_ENVIRONMENT`); `production` renders nothing.\nexport default function NativeEnvironmentNoticeDevelopment() {\n return (\n <View style={{ width: 360 }}>\n <EnvironmentNotice\n stage=\"development\"\n title=\"Development version\"\n message=\"Data can be reset at any time. Not a commercial offer.\"\n link={{ label: \"What this means\" }}\n onLinkPress={() => void Linking.openURL(\"https://www.krizaka.com\")}\n />\n </View>\n );\n}\n",
|
|
190
|
+
"screenshots": {
|
|
191
|
+
"dark": "examples/environment-notice/native/development.dark.png",
|
|
192
|
+
"light": "examples/environment-notice/native/development.light.png"
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
]
|
|
196
|
+
},
|
|
197
|
+
"files": [
|
|
198
|
+
{
|
|
199
|
+
"path": "environment-notice/environment-notice.tsx",
|
|
200
|
+
"content": "// Server-safe. A thin band above the app bar, in the page frame, that says this deployment is not the real offer. Server-rendered\n// with a minimum height (CLS 0); renders nothing in production. Words arrive as props. It is not dismissible: a person who\n// must know this is a development version should not be able to lose the line by accident.\nimport type * as React from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nimport { environmentNotice } from \"./model\";\n\nexport const environmentNoticeStyles = tv({\n slots: {\n root: \"w-full border-b border-warning/50 bg-warning/10 text-fg\",\n inner: \"mx-auto flex min-h-9 w-full max-w-[var(--kz-page-max,72rem)] items-center gap-3 px-[var(--kz-page-gutter,1rem)] py-1.5 text-xs leading-snug\",\n dot: \"h-2 w-2 shrink-0 rounded-full bg-warning\",\n text: \"min-w-0 flex-1\",\n title: \"font-semibold text-fg\",\n message: \"text-fg-secondary\",\n link: \"shrink-0 font-semibold text-fg-accent underline-offset-2 hover:underline focus-visible:focus-ring\",\n },\n});\n\nexport type EnvironmentNoticeProps = Omit<React.ComponentProps<\"div\">, \"title\" | \"children\"> & {\n /** The deployment's stage, read once by the app. `production` (or `prod`) renders nothing; any other value shows the notice. */\n stage: string | null | undefined;\n /** The headline (« Development version »): also the region's accessible name. Passed translated. */\n title: string;\n /** The line (« Data can be reset at any time. Not a commercial offer. »). Passed translated. */\n message: string;\n /** An optional way to learn more. `linkAs` renders it with your router's Link. */\n link?: { label: string; href: string };\n /** Renders the link with your router's Link (`next/link`) instead of an `<a>`. */\n linkAs?: React.ElementType;\n};\n\nexport function EnvironmentNotice({ stage, title, message, link, linkAs, className, ...props }: EnvironmentNoticeProps) {\n const content = environmentNotice({ stage, title, message, link });\n if (!content) return null;\n const s = environmentNoticeStyles();\n const Link = linkAs ?? \"a\";\n return (\n <div role=\"region\" aria-label={content.title} data-stage={content.stage} className={s.root({ className })} {...props}>\n <div className={s.inner()}>\n <span aria-hidden className={s.dot()} />\n <p className={s.text()}>\n <span className={s.title()}>{content.title}</span> <span className={s.message()}>{content.message}</span>\n </p>\n {content.link ? (\n <Link href={content.link.href} className={s.link()}>\n {content.link.label}\n </Link>\n ) : null}\n </div>\n </div>\n );\n}\n"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"path": "environment-notice/index.ts",
|
|
204
|
+
"content": "/** @krizaka/ui/environment-notice — `EnvironmentNotice`, the « development version » band, and `environmentNotice(config)`, the rule that production shows nothing. Server-safe. */\nexport { EnvironmentNotice, type EnvironmentNoticeProps,environmentNoticeStyles } from \"./environment-notice\";\nexport { environmentNotice, type EnvironmentNoticeConfig, type EnvironmentNoticeContent, isProductionStage, PRODUCTION_STAGES } from \"./model\";\n"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"path": "environment-notice/meta.ts",
|
|
208
|
+
"content": "import type { ComponentMeta } from \"../meta\";\n\nexport const meta = {\n title: \"Environment notice\",\n summary:\n \"A thin band above the app bar that says this deployment is a development version — its data can be reset and it is not a commercial offer — driven by the deployment's stage: it renders nothing in production.\",\n status: \"beta\",\n category: \"blocks\",\n platforms: \"both\",\n parity: { desktop: \"web\" },\n whenToUse: [\n \"On every screen of a development, staging or preview deployment that people can reach (dev.<product>.com, the admin console, the phone app, the Mac app).\",\n \"Whenever the app must tell a visitor that what they see is not the real offer, with the stage read once from configuration.\",\n ],\n whenNotToUse: [\n { when: \"The announcement of a chapter on a told page (« Step 02 · Payments »).\", use: \"stage-banner\" },\n { when: \"A message about the visitor's own situation (a quota, a failure, a maintenance window).\", use: \"alert\" },\n { when: \"A transient confirmation.\", use: \"toast\" },\n ],\n bestPractices: [\n \"Read the stage once (an env var named by context, such as `APP_ENVIRONMENT`, or a setting in the database) and pass it down from the root layout: never an `if` per page.\",\n \"Pass the words from your messages (`@krizaka/i18n`), French first where the app defaults to French; the package ships none.\",\n \"Put it above the app bar, outside the content, so it never covers anything and shifts nothing (it is server-rendered with a minimum height).\",\n \"`environmentNotice(config)` is the rule if you need it elsewhere (a native shell, a test): it returns `null` for `production` and `prod`.\",\n \"Set the stage in the deployment spec of the dev environment; no production spec sets it to development.\",\n ],\n accessibility: {\n keyboard: [{ keys: \"Tab / Enter\", action: \"Reaches the link, when there is one.\" }],\n notes: [\n \"A region named by its title (`role=region`, `aria-label`), not a live region: it is there from the first render, not an event.\",\n \"Its colours are the warning tint over the surface and the text roles (readable in dark and light); there is no motion.\",\n \"It cannot be dismissed: the line is part of the page for as long as the stage is not production.\",\n ],\n },\n related: [\"alert\", \"stage-banner\", \"app-header\", \"nav-bar\"],\n web: {\n imports: [\"EnvironmentNotice\", \"environmentNotice\"],\n examples: [\n { name: \"development\", title: \"A development version\", description: \"The band above the app bar, with its line and a link; the stage `development` shows it, `production` renders nothing.\" },\n { name: \"staging\", title: \"Another stage\", description: \"Any stage but production shows the notice; the words are the app's.\" },\n ],\n },\n native: {\n imports: [\"EnvironmentNotice\"],\n differences: [\n \"The link is `onLinkPress` (the app opens it); there is no `linkAs`.\",\n \"Place it above the screen's header, inside the safe area your layout already applies.\",\n ],\n examples: [{ name: \"development\", title: \"A development version\", description: \"The band above the header with its line and a link.\" }],\n },\n} satisfies ComponentMeta;\n"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"path": "environment-notice/model.ts",
|
|
212
|
+
"content": "// Pure, shared by the web and native components: the rule « production shows nothing », in one place.\n\n/** The stages that are the real offer: the notice renders nothing there. Any other stage (development, staging, preview…) shows it. */\nexport const PRODUCTION_STAGES: readonly string[] = [\"production\", \"prod\"];\n\nexport type EnvironmentNoticeConfig = {\n /** The deployment's stage, read once by the app (an `APP_ENVIRONMENT` variable, a setting in its database). Missing = not production: the notice shows. */\n stage: string | null | undefined;\n /** « Development version ». Passed translated; it also names the region. */\n title: string;\n /** « Data can be reset at any time. Not a commercial offer. » Passed translated. */\n message: string;\n /** An optional way to learn more (« What this means »). */\n link?: { label: string; href: string };\n};\n\nexport type EnvironmentNoticeContent = Omit<EnvironmentNoticeConfig, \"stage\"> & { stage: string };\n\n/** Is this stage the real offer? Case and spaces do not matter. */\nexport const isProductionStage = (stage: string | null | undefined): boolean => PRODUCTION_STAGES.includes((stage ?? \"\").trim().toLowerCase());\n\n/**\n * What to show, or `null` when the stage is production. The app reads its stage once and calls this (or passes the\n * same `stage` to the component, which calls it): never a `if` per page. A missing stage shows the notice, so a\n * deployment that forgets to say it is production is seen, not silent.\n */\nexport function environmentNotice(config: EnvironmentNoticeConfig): EnvironmentNoticeContent | null {\n if (isProductionStage(config.stage)) return null;\n return { ...config, stage: (config.stage ?? \"\").trim().toLowerCase() || \"unknown\" };\n}\n"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"path": "meta.ts",
|
|
216
|
+
"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 ui.krizaka.com (apps/site) renders as\n// ui.krizaka.com/components/<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 | \"notification-preferences\"\n | \"quota-meter\"\n | \"environment-notice\"\n | \"status-chip\"\n | \"kind-config-editor\"\n | \"agenda\"\n | \"account-settings\"\n | \"drop-overlay\"\n | \"upload-queue\"\n | \"achievement\"\n | \"anatomy-plate\"\n | \"bird-plate\"\n | \"taped-photo\"\n | \"stuck\"\n | \"doodle\"\n | \"signature\"\n | \"grade-stamp\"\n | \"versus-card\"\n | \"speed-lines\"\n | \"site-cahier\"\n | \"text-style\"\n | \"flock\"\n | \"elephant\"\n | \"footnote\"\n | \"page-index\"\n | \"chapter\"\n | \"specimen-tag\"\n | \"action-bar\"\n | \"action-sheet\"\n | \"activity-feed\"\n | \"alert\"\n | \"app-header\"\n | \"app-shell\"\n | \"argument-card\"\n | \"audio-player\"\n | \"auth-layout\"\n | \"avatar\"\n | \"badge\"\n | \"button\"\n | \"captcha\"\n | \"card\"\n | \"card-grid\"\n | \"catalogue-page\"\n | \"changelog-page\"\n | \"chat\"\n | \"checkbox\"\n | \"chip\"\n | \"chip-link\"\n | \"chip-row\"\n | \"choice-grid\"\n | \"cn\"\n | \"code-block\"\n | \"combobox\"\n | \"comparison-table\"\n | \"command\"\n | \"component-page\"\n | \"confirm-button\"\n | \"contact-page\"\n | \"continue-prompt\"\n | \"countdown\"\n | \"cover-hero\"\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 | \"docs-nav\"\n | \"document-viewer\"\n | \"dropdown-menu\"\n | \"empty-state\"\n | \"engine-flow\"\n | \"error-page\"\n | \"fab\"\n | \"field\"\n | \"file-upload\"\n | \"filter-bar\"\n | \"force-update-screen\"\n | \"form\"\n | \"gallery-page\"\n | \"genui\"\n | \"glossary\"\n | \"glossary-term\"\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 | \"kpi-explained\"\n | \"landing-page\"\n | \"landscape\"\n | \"legal-page\"\n | \"link-card\"\n | \"list\"\n | \"loader\"\n | \"longform-page\"\n | \"maintenance-screen\"\n | \"map\"\n | \"markdown\"\n | \"meta-row\"\n | \"waveform\"\n | \"marketing-layout\"\n | \"marquee\"\n | \"mascot-quote\"\n | \"mascot-state\"\n | \"mascots\"\n | \"match-dialog\"\n | \"media-capture\"\n | \"media-grid\"\n | \"language-switch\"\n | \"media-gallery\"\n | \"media-picker\"\n | \"meter\"\n | \"nav-bar\"\n | \"number-ticker\"\n | \"onboarding\"\n | \"opening-hours\"\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 | \"retro-tv\"\n | \"radio-group\"\n | \"router\"\n | \"rail-nav\"\n | \"recipes\"\n | \"screen\"\n | \"scroll-stage\"\n | \"search-field\"\n | \"section-backdrop\"\n | \"segmented\"\n | \"separator\"\n | \"service-card\"\n | \"settings-layout\"\n | \"account-menu\"\n | \"showcase\"\n | \"step-showcase\"\n | \"site-footer\"\n | \"sites\"\n | \"skeleton\"\n | \"skip-link\"\n | \"slider\"\n | \"slot-picker\"\n | \"slot\"\n | \"spinner\"\n | \"sticky-action\"\n | \"splash-handoff\"\n | \"split-view\"\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 | \"update-prompt\"\n | \"verified-badge\"\n | \"vertical-video\"\n | \"video-player\"\n | \"video-trimmer\"\n | \"virtual\"\n | \"wall\";\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 * Why a component is not on a platform — a decision, never a silence (the parity matrix of ui.krizaka.com/platforms):\n * - `gap` (✗): it belongs there and is not built yet; `issue` is the issue that tracks it (`krizaka/krizaka-ui#275`);\n * - `n/a`: it is not meant for that platform (a site's page block on a phone, a swipe on a desktop); `use` names the\n * component that answers there, when one does.\n */\nexport type Absence =\n | { readonly status: \"gap\"; readonly issue: string; readonly reason: string; readonly use?: undefined }\n | { readonly status: \"n/a\"; readonly reason: string; readonly use?: ComponentName; readonly issue?: undefined };\n\n/**\n * Desktop is the Orazaka Mac app (Tauri 2: the system WebView renders the web components — ADR-002). `web`: the web\n * component runs there as it is; `desktop`: it also has a desktop form (a window's title bar, a denser layout…), said in\n * its documentation; otherwise the absence and why.\n */\nexport type DesktopSupport = \"web\" | \"desktop\" | Absence;\n\n/**\n * The three platforms of Krizaka UI — web · native (React Native, Expo) · desktop — for one component. The side a\n * component has is `platforms`; the side it lacks says why here: `native` is required for (and only for) a web-only\n * component, `web` for a native-only one; `desktop` always. `scripts/registry.test.mjs` fails on a missing decision.\n */\nexport interface Parity {\n readonly web?: Absence;\n readonly native?: Absence;\n readonly desktop: DesktopSupport;\n}\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 ui.krizaka.com/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 /** The React Native entry alone is deprecated while the web one stays (ADR-006 §7); a deprecated component says it once, above. */\n readonly deprecated?: Deprecation;\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 /** The platforms it is not on, and why; and its desktop form (see `Parity`). */\n readonly parity: Parity;\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"
|
|
217
|
+
}
|
|
218
|
+
],
|
|
219
|
+
"dependencies": [
|
|
220
|
+
"tailwind-variants@^3.3.1"
|
|
221
|
+
],
|
|
222
|
+
"registryDependencies": [],
|
|
223
|
+
"demo": {
|
|
224
|
+
"path": "examples/environment-notice/development.tsx",
|
|
225
|
+
"content": "import { EnvironmentNotice } from \"@krizaka/ui/environment-notice\";\n\n// The stage comes from configuration, read once in the root layout (here a constant for the example).\nconst stage = \"development\";\n\nexport default function EnvironmentNoticeDevelopment() {\n return (\n <div className=\"overflow-hidden rounded-xl border border-border-default\">\n <EnvironmentNotice stage={stage} title=\"Development version\" message=\"Data can be reset at any time. Not a commercial offer.\" link={{ label: \"What this means\", href: \"#development\" }} />\n <div className=\"bg-surface-1 p-4 text-sm text-fg-secondary\">The app bar and the page follow.</div>\n </div>\n );\n}\n"
|
|
226
|
+
},
|
|
227
|
+
"props": [
|
|
228
|
+
{
|
|
229
|
+
"component": "EnvironmentNotice",
|
|
230
|
+
"description": "",
|
|
231
|
+
"props": [
|
|
232
|
+
{
|
|
233
|
+
"name": "message",
|
|
234
|
+
"type": "string",
|
|
235
|
+
"default": null,
|
|
236
|
+
"description": "The line (« Data can be reset at any time. Not a commercial offer. »). Passed translated.",
|
|
237
|
+
"required": true
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"name": "stage",
|
|
241
|
+
"type": "string | null | undefined",
|
|
242
|
+
"default": null,
|
|
243
|
+
"description": "The deployment's stage, read once by the app. `production` (or `prod`) renders nothing; any other value shows the notice.",
|
|
244
|
+
"required": true
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"name": "title",
|
|
248
|
+
"type": "string",
|
|
249
|
+
"default": null,
|
|
250
|
+
"description": "The headline (« Development version »): also the region's accessible name. Passed translated.",
|
|
251
|
+
"required": true
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"name": "link",
|
|
255
|
+
"type": "{ label: string; href: string; }",
|
|
256
|
+
"default": null,
|
|
257
|
+
"description": "An optional way to learn more. `linkAs` renders it with your router's Link.",
|
|
258
|
+
"required": false
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"name": "linkAs",
|
|
262
|
+
"type": "ElementType<any, keyof IntrinsicElements>",
|
|
263
|
+
"default": null,
|
|
264
|
+
"description": "Renders the link with your router's Link (`next/link`) instead of an `<a>`.",
|
|
265
|
+
"required": false
|
|
266
|
+
}
|
|
267
|
+
]
|
|
268
|
+
}
|
|
269
|
+
]
|
|
270
|
+
}
|
package/registry/error-page.json
CHANGED
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
134
|
"path": "meta.ts",
|
|
135
|
-
"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 ui.krizaka.com (apps/site) renders as\n// ui.krizaka.com/components/<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 | \"notification-preferences\"\n | \"quota-meter\"\n | \"status-chip\"\n | \"kind-config-editor\"\n | \"agenda\"\n | \"account-settings\"\n | \"drop-overlay\"\n | \"upload-queue\"\n | \"achievement\"\n | \"anatomy-plate\"\n | \"bird-plate\"\n | \"taped-photo\"\n | \"stuck\"\n | \"doodle\"\n | \"signature\"\n | \"grade-stamp\"\n | \"versus-card\"\n | \"speed-lines\"\n | \"site-cahier\"\n | \"text-style\"\n | \"flock\"\n | \"elephant\"\n | \"footnote\"\n | \"page-index\"\n | \"chapter\"\n | \"specimen-tag\"\n | \"action-bar\"\n | \"action-sheet\"\n | \"activity-feed\"\n | \"alert\"\n | \"app-header\"\n | \"app-shell\"\n | \"argument-card\"\n | \"audio-player\"\n | \"auth-layout\"\n | \"avatar\"\n | \"badge\"\n | \"button\"\n | \"captcha\"\n | \"card\"\n | \"card-grid\"\n | \"catalogue-page\"\n | \"changelog-page\"\n | \"chat\"\n | \"checkbox\"\n | \"chip\"\n | \"chip-link\"\n | \"chip-row\"\n | \"choice-grid\"\n | \"cn\"\n | \"code-block\"\n | \"combobox\"\n | \"comparison-table\"\n | \"command\"\n | \"component-page\"\n | \"confirm-button\"\n | \"contact-page\"\n | \"continue-prompt\"\n | \"countdown\"\n | \"cover-hero\"\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 | \"docs-nav\"\n | \"document-viewer\"\n | \"dropdown-menu\"\n | \"empty-state\"\n | \"engine-flow\"\n | \"error-page\"\n | \"fab\"\n | \"field\"\n | \"file-upload\"\n | \"filter-bar\"\n | \"force-update-screen\"\n | \"form\"\n | \"gallery-page\"\n | \"genui\"\n | \"glossary\"\n | \"glossary-term\"\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 | \"kpi-explained\"\n | \"landing-page\"\n | \"landscape\"\n | \"legal-page\"\n | \"link-card\"\n | \"list\"\n | \"loader\"\n | \"longform-page\"\n | \"maintenance-screen\"\n | \"map\"\n | \"markdown\"\n | \"meta-row\"\n | \"waveform\"\n | \"marketing-layout\"\n | \"marquee\"\n | \"mascot-quote\"\n | \"mascot-state\"\n | \"mascots\"\n | \"match-dialog\"\n | \"media-capture\"\n | \"media-grid\"\n | \"language-switch\"\n | \"media-gallery\"\n | \"media-picker\"\n | \"meter\"\n | \"nav-bar\"\n | \"number-ticker\"\n | \"onboarding\"\n | \"opening-hours\"\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 | \"retro-tv\"\n | \"radio-group\"\n | \"router\"\n | \"rail-nav\"\n | \"recipes\"\n | \"screen\"\n | \"scroll-stage\"\n | \"search-field\"\n | \"section-backdrop\"\n | \"segmented\"\n | \"separator\"\n | \"service-card\"\n | \"settings-layout\"\n | \"account-menu\"\n | \"showcase\"\n | \"step-showcase\"\n | \"site-footer\"\n | \"sites\"\n | \"skeleton\"\n | \"skip-link\"\n | \"slider\"\n | \"slot-picker\"\n | \"slot\"\n | \"spinner\"\n | \"sticky-action\"\n | \"splash-handoff\"\n | \"split-view\"\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 | \"update-prompt\"\n | \"verified-badge\"\n | \"vertical-video\"\n | \"video-player\"\n | \"video-trimmer\"\n | \"virtual\"\n | \"wall\";\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 * Why a component is not on a platform — a decision, never a silence (the parity matrix of ui.krizaka.com/platforms):\n * - `gap` (✗): it belongs there and is not built yet; `issue` is the issue that tracks it (`krizaka/krizaka-ui#275`);\n * - `n/a`: it is not meant for that platform (a site's page block on a phone, a swipe on a desktop); `use` names the\n * component that answers there, when one does.\n */\nexport type Absence =\n | { readonly status: \"gap\"; readonly issue: string; readonly reason: string; readonly use?: undefined }\n | { readonly status: \"n/a\"; readonly reason: string; readonly use?: ComponentName; readonly issue?: undefined };\n\n/**\n * Desktop is the Orazaka Mac app (Tauri 2: the system WebView renders the web components — ADR-002). `web`: the web\n * component runs there as it is; `desktop`: it also has a desktop form (a window's title bar, a denser layout…), said in\n * its documentation; otherwise the absence and why.\n */\nexport type DesktopSupport = \"web\" | \"desktop\" | Absence;\n\n/**\n * The three platforms of Krizaka UI — web · native (React Native, Expo) · desktop — for one component. The side a\n * component has is `platforms`; the side it lacks says why here: `native` is required for (and only for) a web-only\n * component, `web` for a native-only one; `desktop` always. `scripts/registry.test.mjs` fails on a missing decision.\n */\nexport interface Parity {\n readonly web?: Absence;\n readonly native?: Absence;\n readonly desktop: DesktopSupport;\n}\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 ui.krizaka.com/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 /** The React Native entry alone is deprecated while the web one stays (ADR-006 §7); a deprecated component says it once, above. */\n readonly deprecated?: Deprecation;\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 /** The platforms it is not on, and why; and its desktop form (see `Parity`). */\n readonly parity: Parity;\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"
|
|
135
|
+
"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 ui.krizaka.com (apps/site) renders as\n// ui.krizaka.com/components/<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 | \"notification-preferences\"\n | \"quota-meter\"\n | \"environment-notice\"\n | \"status-chip\"\n | \"kind-config-editor\"\n | \"agenda\"\n | \"account-settings\"\n | \"drop-overlay\"\n | \"upload-queue\"\n | \"achievement\"\n | \"anatomy-plate\"\n | \"bird-plate\"\n | \"taped-photo\"\n | \"stuck\"\n | \"doodle\"\n | \"signature\"\n | \"grade-stamp\"\n | \"versus-card\"\n | \"speed-lines\"\n | \"site-cahier\"\n | \"text-style\"\n | \"flock\"\n | \"elephant\"\n | \"footnote\"\n | \"page-index\"\n | \"chapter\"\n | \"specimen-tag\"\n | \"action-bar\"\n | \"action-sheet\"\n | \"activity-feed\"\n | \"alert\"\n | \"app-header\"\n | \"app-shell\"\n | \"argument-card\"\n | \"audio-player\"\n | \"auth-layout\"\n | \"avatar\"\n | \"badge\"\n | \"button\"\n | \"captcha\"\n | \"card\"\n | \"card-grid\"\n | \"catalogue-page\"\n | \"changelog-page\"\n | \"chat\"\n | \"checkbox\"\n | \"chip\"\n | \"chip-link\"\n | \"chip-row\"\n | \"choice-grid\"\n | \"cn\"\n | \"code-block\"\n | \"combobox\"\n | \"comparison-table\"\n | \"command\"\n | \"component-page\"\n | \"confirm-button\"\n | \"contact-page\"\n | \"continue-prompt\"\n | \"countdown\"\n | \"cover-hero\"\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 | \"docs-nav\"\n | \"document-viewer\"\n | \"dropdown-menu\"\n | \"empty-state\"\n | \"engine-flow\"\n | \"error-page\"\n | \"fab\"\n | \"field\"\n | \"file-upload\"\n | \"filter-bar\"\n | \"force-update-screen\"\n | \"form\"\n | \"gallery-page\"\n | \"genui\"\n | \"glossary\"\n | \"glossary-term\"\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 | \"kpi-explained\"\n | \"landing-page\"\n | \"landscape\"\n | \"legal-page\"\n | \"link-card\"\n | \"list\"\n | \"loader\"\n | \"longform-page\"\n | \"maintenance-screen\"\n | \"map\"\n | \"markdown\"\n | \"meta-row\"\n | \"waveform\"\n | \"marketing-layout\"\n | \"marquee\"\n | \"mascot-quote\"\n | \"mascot-state\"\n | \"mascots\"\n | \"match-dialog\"\n | \"media-capture\"\n | \"media-grid\"\n | \"language-switch\"\n | \"media-gallery\"\n | \"media-picker\"\n | \"meter\"\n | \"nav-bar\"\n | \"number-ticker\"\n | \"onboarding\"\n | \"opening-hours\"\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 | \"retro-tv\"\n | \"radio-group\"\n | \"router\"\n | \"rail-nav\"\n | \"recipes\"\n | \"screen\"\n | \"scroll-stage\"\n | \"search-field\"\n | \"section-backdrop\"\n | \"segmented\"\n | \"separator\"\n | \"service-card\"\n | \"settings-layout\"\n | \"account-menu\"\n | \"showcase\"\n | \"step-showcase\"\n | \"site-footer\"\n | \"sites\"\n | \"skeleton\"\n | \"skip-link\"\n | \"slider\"\n | \"slot-picker\"\n | \"slot\"\n | \"spinner\"\n | \"sticky-action\"\n | \"splash-handoff\"\n | \"split-view\"\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 | \"update-prompt\"\n | \"verified-badge\"\n | \"vertical-video\"\n | \"video-player\"\n | \"video-trimmer\"\n | \"virtual\"\n | \"wall\";\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 * Why a component is not on a platform — a decision, never a silence (the parity matrix of ui.krizaka.com/platforms):\n * - `gap` (✗): it belongs there and is not built yet; `issue` is the issue that tracks it (`krizaka/krizaka-ui#275`);\n * - `n/a`: it is not meant for that platform (a site's page block on a phone, a swipe on a desktop); `use` names the\n * component that answers there, when one does.\n */\nexport type Absence =\n | { readonly status: \"gap\"; readonly issue: string; readonly reason: string; readonly use?: undefined }\n | { readonly status: \"n/a\"; readonly reason: string; readonly use?: ComponentName; readonly issue?: undefined };\n\n/**\n * Desktop is the Orazaka Mac app (Tauri 2: the system WebView renders the web components — ADR-002). `web`: the web\n * component runs there as it is; `desktop`: it also has a desktop form (a window's title bar, a denser layout…), said in\n * its documentation; otherwise the absence and why.\n */\nexport type DesktopSupport = \"web\" | \"desktop\" | Absence;\n\n/**\n * The three platforms of Krizaka UI — web · native (React Native, Expo) · desktop — for one component. The side a\n * component has is `platforms`; the side it lacks says why here: `native` is required for (and only for) a web-only\n * component, `web` for a native-only one; `desktop` always. `scripts/registry.test.mjs` fails on a missing decision.\n */\nexport interface Parity {\n readonly web?: Absence;\n readonly native?: Absence;\n readonly desktop: DesktopSupport;\n}\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 ui.krizaka.com/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 /** The React Native entry alone is deprecated while the web one stays (ADR-006 §7); a deprecated component says it once, above. */\n readonly deprecated?: Deprecation;\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 /** The platforms it is not on, and why; and its desktop form (see `Parity`). */\n readonly parity: Parity;\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"
|
|
136
136
|
}
|
|
137
137
|
],
|
|
138
138
|
"dependencies": [],
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { Achievement, AchievementList, Emblem } from "@krizaka/ui/achievement";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
function AchievementArcade() {
|
|
7
|
-
return /* @__PURE__ */ jsxs(AchievementList, { variant: "arcade", brand: "
|
|
7
|
+
return /* @__PURE__ */ jsxs(AchievementList, { variant: "arcade", brand: "orazaka", className: "w-full max-w-2xl", children: [
|
|
8
8
|
/* @__PURE__ */ jsx(Achievement, { icon: /* @__PURE__ */ jsx(Emblem, { kind: "sword", size: 14 }), eyebrow: "Head 01", badge: "Sealed", replaced: "Data sent abroad", title: "Everything runs on your machine" }),
|
|
9
9
|
/* @__PURE__ */ jsx(Achievement, { icon: /* @__PURE__ */ jsx(Emblem, { kind: "mirror", size: 14 }), eyebrow: "Head 02", badge: "Sealed", replaced: "A bill per token", title: "One price, no meter" }),
|
|
10
10
|
/* @__PURE__ */ jsx(Achievement, { icon: /* @__PURE__ */ jsx(Emblem, { kind: "jewel", size: 14 }), eyebrow: "Head 03", badge: "Sealed", replaced: "A closed box", title: "Open source, end to end" })
|
|
@@ -3,7 +3,7 @@ import { Achievement, AchievementList, Emblem } from "@krizaka/ui/achievement";
|
|
|
3
3
|
// The arcade flavour: each card's stamp slams in, one after the other, in time with a GoalGauge in the same scene.
|
|
4
4
|
export default function AchievementArcade() {
|
|
5
5
|
return (
|
|
6
|
-
<AchievementList variant="arcade" brand="
|
|
6
|
+
<AchievementList variant="arcade" brand="orazaka" className="w-full max-w-2xl">
|
|
7
7
|
<Achievement icon={<Emblem kind="sword" size={14} />} eyebrow="Head 01" badge="Sealed" replaced="Data sent abroad" title="Everything runs on your machine" />
|
|
8
8
|
<Achievement icon={<Emblem kind="mirror" size={14} />} eyebrow="Head 02" badge="Sealed" replaced="A bill per token" title="One price, no meter" />
|
|
9
9
|
<Achievement icon={<Emblem kind="jewel" size={14} />} eyebrow="Head 03" badge="Sealed" replaced="A closed box" title="Open source, end to end" />
|
|
@@ -11,7 +11,7 @@ const events = [
|
|
|
11
11
|
{ id: "e7", at: "2026-10-09T09:00:00Z", title: "Your payout of $120 was sent", tone: "info" as const },
|
|
12
12
|
];
|
|
13
13
|
|
|
14
|
-
// Grouped by day, a run of tips folded into one (×3), how long ago — Orazaka's and
|
|
14
|
+
// Grouped by day, a run of tips folded into one (×3), how long ago — Orazaka's and a creator studio's activity.
|
|
15
15
|
export default function ActivityFeedJobActivity() {
|
|
16
16
|
return <ActivityFeed aria-label="Activity" events={events} now={now} ticking={false} className="max-w-md" />;
|
|
17
17
|
}
|
|
@@ -25,7 +25,7 @@ var columns = [
|
|
|
25
25
|
function AppShellAdminConsole() {
|
|
26
26
|
return /* @__PURE__ */ jsxs(AppShell.Root, { children: [
|
|
27
27
|
/* @__PURE__ */ jsxs(AppShell.Sidebar, { label: "Administration", brand: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
28
|
-
/* @__PURE__ */ jsx(ProductLogo, { id: "
|
|
28
|
+
/* @__PURE__ */ jsx(ProductLogo, { id: "orazaka", size: 24, animated: false }),
|
|
29
29
|
" Admin"
|
|
30
30
|
] }), closeLabel: "Close the menu", collapseLabels: ["Collapse", "Expand"], children: [
|
|
31
31
|
/* @__PURE__ */ jsx(AppShell.Group, { children: "Review" }),
|
|
@@ -28,12 +28,12 @@ const columns: DataTableColumn<Request>[] = [
|
|
|
28
28
|
{ id: "age", header: "Waiting", align: "end" },
|
|
29
29
|
];
|
|
30
30
|
|
|
31
|
-
// TEMPLATE — an administration console
|
|
31
|
+
// TEMPLATE — an administration console: the shell with the console's sections, a queue of requests to
|
|
32
32
|
// review as a sortable table with bulk actions — cards on a phone — and the counts that say how long the queue is.
|
|
33
33
|
export default function AppShellAdminConsole() {
|
|
34
34
|
return (
|
|
35
35
|
<AppShell.Root>
|
|
36
|
-
<AppShell.Sidebar label="Administration" brand={<><ProductLogo id="
|
|
36
|
+
<AppShell.Sidebar label="Administration" brand={<><ProductLogo id="orazaka" size={24} animated={false} /> Admin</>} closeLabel="Close the menu" collapseLabels={["Collapse", "Expand"]}>
|
|
37
37
|
<AppShell.Group>Review</AppShell.Group>
|
|
38
38
|
<AppShell.Item href="#verification" icon={icon("M12 3l8 4v5c0 5-3.5 8-8 9-4.5-1-8-4-8-9V7z")} label="Verification" current badge={2} />
|
|
39
39
|
<AppShell.Item href="#moderation" icon={icon("M4 5h16v11H9l-5 4z")} label="Moderation" badge={5} />
|
|
@@ -13,7 +13,7 @@ function AppShellBasic() {
|
|
|
13
13
|
{
|
|
14
14
|
label: "Studio",
|
|
15
15
|
brand: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
16
|
-
/* @__PURE__ */ jsx(ProductLogo, { id: "
|
|
16
|
+
/* @__PURE__ */ jsx(ProductLogo, { id: "orazaka", size: 24, animated: false }),
|
|
17
17
|
" Studio"
|
|
18
18
|
] }),
|
|
19
19
|
collapseLabels: ["Collapse", "Expand"],
|
|
@@ -11,7 +11,7 @@ export default function AppShellBasic() {
|
|
|
11
11
|
<AppShell.Root className="min-h-[32rem]">
|
|
12
12
|
<AppShell.Sidebar
|
|
13
13
|
label="Studio"
|
|
14
|
-
brand={<><ProductLogo id="
|
|
14
|
+
brand={<><ProductLogo id="orazaka" size={24} animated={false} /> Studio</>}
|
|
15
15
|
collapseLabels={["Collapse", "Expand"]}
|
|
16
16
|
closeLabel="Close the menu"
|
|
17
17
|
>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
// registry/examples/app-shell/
|
|
3
|
+
// registry/examples/app-shell/creator-studio.tsx
|
|
4
4
|
import { ProductLogo } from "@krizaka/ui";
|
|
5
5
|
import { AppShell } from "@krizaka/ui/app-shell";
|
|
6
6
|
import { Avatar } from "@krizaka/ui/avatar";
|
|
@@ -26,15 +26,15 @@ var SALES = [
|
|
|
26
26
|
{ what: "Tip", who: "Samir K.", net: "\u20AC9.00" },
|
|
27
27
|
{ what: "Auction won \xB7 \u201CBackstage cut\u201D", who: "In\xE8s B.", net: "\u20AC61.20" }
|
|
28
28
|
];
|
|
29
|
-
function
|
|
30
|
-
return /* @__PURE__ */ jsx("div", { className: "brand-
|
|
29
|
+
function AppShellCreatorStudio() {
|
|
30
|
+
return /* @__PURE__ */ jsx("div", { className: "brand-orazaka", children: /* @__PURE__ */ jsxs(AppShell.Root, { children: [
|
|
31
31
|
/* @__PURE__ */ jsxs(
|
|
32
32
|
AppShell.Sidebar,
|
|
33
33
|
{
|
|
34
34
|
label: "Studio",
|
|
35
35
|
brand: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
36
|
-
/* @__PURE__ */ jsx(ProductLogo, { id: "
|
|
37
|
-
"
|
|
36
|
+
/* @__PURE__ */ jsx(ProductLogo, { id: "orazaka", size: 24, animated: false }),
|
|
37
|
+
" Studio"
|
|
38
38
|
] }),
|
|
39
39
|
collapseLabels: ["Collapse", "Expand"],
|
|
40
40
|
closeLabel: "Close the menu",
|
|
@@ -85,5 +85,5 @@ function AppShellOrochiaStudio() {
|
|
|
85
85
|
] }) });
|
|
86
86
|
}
|
|
87
87
|
export {
|
|
88
|
-
|
|
88
|
+
AppShellCreatorStudio as default
|
|
89
89
|
};
|
|
@@ -28,16 +28,16 @@ const SALES = [
|
|
|
28
28
|
{ what: "Auction won · “Backstage cut”", who: "Inès B.", net: "€61.20" },
|
|
29
29
|
];
|
|
30
30
|
|
|
31
|
-
// TEMPLATE —
|
|
31
|
+
// TEMPLATE — A creator studio, Elena's home: the shell (sidebar of the studio, drawer on a phone) around a
|
|
32
32
|
// dashboard — this week's figures, the payout on its way, the latest sales, the next auction. On a phone the sidebar
|
|
33
33
|
// is a drawer, the stats stack two by two, every widget takes the full width.
|
|
34
|
-
export default function
|
|
34
|
+
export default function AppShellCreatorStudio() {
|
|
35
35
|
return (
|
|
36
|
-
<div className="brand-
|
|
36
|
+
<div className="brand-orazaka">
|
|
37
37
|
<AppShell.Root>
|
|
38
38
|
<AppShell.Sidebar
|
|
39
39
|
label="Studio"
|
|
40
|
-
brand={<><ProductLogo id="
|
|
40
|
+
brand={<><ProductLogo id="orazaka" size={24} animated={false} /> Studio</>}
|
|
41
41
|
collapseLabels={["Collapse", "Expand"]}
|
|
42
42
|
closeLabel="Close the menu"
|
|
43
43
|
footer={
|
|
@@ -9,7 +9,7 @@ function AudioPlayerPodcast() {
|
|
|
9
9
|
AudioPlayer,
|
|
10
10
|
{
|
|
11
11
|
title: "Creators' hour \u2014 episode 12, extract",
|
|
12
|
-
src: "https://
|
|
12
|
+
src: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-16x9-en.9391096007.mp4",
|
|
13
13
|
peaks: PEAKS,
|
|
14
14
|
bars: 72,
|
|
15
15
|
duration: 190,
|
|
@@ -8,7 +8,7 @@ export default function AudioPlayerPodcast() {
|
|
|
8
8
|
<div className="w-full max-w-lg">
|
|
9
9
|
<AudioPlayer
|
|
10
10
|
title="Creators' hour — episode 12, extract"
|
|
11
|
-
src="https://
|
|
11
|
+
src="https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-16x9-en.9391096007.mp4"
|
|
12
12
|
peaks={PEAKS}
|
|
13
13
|
bars={72}
|
|
14
14
|
duration={190}
|
|
@@ -5,7 +5,7 @@ import { AudioPlayer } from "@krizaka/ui/audio-player";
|
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
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
7
|
function AudioPlayerVoiceNote() {
|
|
8
|
-
return /* @__PURE__ */ jsx("div", { className: "w-full max-w-md", children: /* @__PURE__ */ jsx(AudioPlayer, { title: "
|
|
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
9
|
}
|
|
10
10
|
export {
|
|
11
11
|
AudioPlayerVoiceNote as default
|
|
@@ -6,7 +6,7 @@ const PEAKS = Array.from({ length: 64 }, (_, i) => 0.2 + Math.abs(Math.sin(i * 0
|
|
|
6
6
|
export default function AudioPlayerVoiceNote() {
|
|
7
7
|
return (
|
|
8
8
|
<div className="w-full max-w-md">
|
|
9
|
-
<AudioPlayer title="
|
|
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
10
|
</div>
|
|
11
11
|
);
|
|
12
12
|
}
|
|
@@ -9,12 +9,12 @@ import { Stepper } from "@krizaka/ui/stepper";
|
|
|
9
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
var labels = { done: "Done", current: "Current step", upcoming: "Upcoming", error: "Failed" };
|
|
11
11
|
function AuthLayoutOnboarding() {
|
|
12
|
-
return /* @__PURE__ */ jsx("div", { className: "brand-
|
|
12
|
+
return /* @__PURE__ */ jsx("div", { className: "brand-orazaka", children: /* @__PURE__ */ jsxs(
|
|
13
13
|
AuthLayout,
|
|
14
14
|
{
|
|
15
15
|
brand: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
16
|
-
/* @__PURE__ */ jsx(ProductLogo, { id: "
|
|
17
|
-
"
|
|
16
|
+
/* @__PURE__ */ jsx(ProductLogo, { id: "orazaka", size: 28, animated: false }),
|
|
17
|
+
" Studio"
|
|
18
18
|
] }),
|
|
19
19
|
promise: "Three steps, then your first video.",
|
|
20
20
|
aside: /* @__PURE__ */ jsx("p", { children: "Your identity is checked once, by a person, and never shown to your fans." }),
|