@krizaka/ui 3.55.0 → 3.60.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 +1 -0
- package/dist/{RotatingWord-D9s7FXFD.d.ts → RotatingWord-COSabR2c.d.ts} +2 -1
- package/dist/account-menu.d.ts +2 -1
- package/dist/account-settings.d.ts +153 -61
- package/dist/account-settings.js +240 -97
- package/dist/account-settings.js.map +1 -1
- package/dist/achievement.d.ts +2 -1
- package/dist/action-bar.d.ts +3 -2
- package/dist/activity-feed.d.ts +2 -1
- package/dist/agenda.d.ts +2 -1
- package/dist/alert.d.ts +2 -1
- package/dist/anatomy-plate.d.ts +2 -1
- package/dist/app-header/search.d.ts +8 -7
- package/dist/app-header.d.ts +2 -1
- package/dist/app-shell.d.ts +26 -25
- package/dist/argument-card.d.ts +3 -2
- package/dist/audio-player.d.ts +2 -1
- package/dist/auth-layout.d.ts +11 -10
- package/dist/avatar/defaults.d.ts +2 -1
- package/dist/avatar.d.ts +2 -1
- package/dist/badge.d.ts +2 -1
- package/dist/bird-plate.d.ts +4 -2
- package/dist/blocks.css +183 -4
- package/dist/button.d.ts +2 -1
- package/dist/captcha.d.ts +2 -1
- package/dist/captcha.js +1 -0
- package/dist/captcha.js.map +1 -1
- package/dist/card-grid.d.ts +2 -1
- package/dist/card.d.ts +2 -1
- package/dist/catalogue-page.d.ts +82 -2
- package/dist/catalogue-page.js +156 -13
- package/dist/catalogue-page.js.map +1 -1
- package/dist/changelog-page.d.ts +2 -1
- package/dist/chapter.d.ts +2 -1
- package/dist/chat.d.ts +14 -13
- package/dist/checkbox.d.ts +2 -1
- package/dist/chip-link.d.ts +2 -1
- package/dist/chip-row.d.ts +8 -7
- package/dist/chip.d.ts +55 -1
- package/dist/chip.js +10 -1
- package/dist/choice-grid.d.ts +3 -2
- package/dist/chunk-27AWSJTK.js +46 -0
- package/dist/chunk-27AWSJTK.js.map +1 -0
- package/dist/chunk-44FU32KP.js +2 -0
- package/dist/chunk-44FU32KP.js.map +1 -0
- package/dist/{chunk-AEP3K4YD.js → chunk-4GQH27IT.js} +2 -2
- package/dist/{chunk-QWKCNSPF.js → chunk-5LANVCK7.js} +125 -73
- package/dist/chunk-5LANVCK7.js.map +1 -0
- package/dist/{chunk-KDXRYUD3.js → chunk-5QEXOGO2.js} +3 -1
- package/dist/{chunk-KDXRYUD3.js.map → chunk-5QEXOGO2.js.map} +1 -1
- package/dist/chunk-7J2L4HOD.js +340 -0
- package/dist/chunk-7J2L4HOD.js.map +1 -0
- package/dist/{chunk-7U5TXA5Q.js → chunk-BQ4EOR2O.js} +74 -2
- package/dist/chunk-BQ4EOR2O.js.map +1 -0
- package/dist/chunk-F6JTHPHE.js +399 -0
- package/dist/chunk-F6JTHPHE.js.map +1 -0
- package/dist/chunk-OGWB76BR.js +90 -0
- package/dist/chunk-OGWB76BR.js.map +1 -0
- package/dist/{chunk-VIPSZXO4.js → chunk-UYGUSYIC.js} +72 -2
- package/dist/chunk-UYGUSYIC.js.map +1 -0
- package/dist/chunk-WOZP3JLW.js +51 -0
- package/dist/chunk-WOZP3JLW.js.map +1 -0
- package/dist/chunk-XVXFMVG3.js +27 -0
- package/dist/chunk-XVXFMVG3.js.map +1 -0
- package/dist/code-block.d.ts +2 -1
- package/dist/combobox.d.ts +20 -19
- package/dist/combobox.js +3 -2
- package/dist/command.d.ts +21 -20
- package/dist/comparison-table.d.ts +2 -1
- package/dist/component-page.d.ts +2 -1
- package/dist/confirm-button.d.ts +2 -1
- package/dist/contact-page.d.ts +2 -1
- package/dist/continue-prompt.d.ts +2 -1
- package/dist/countdown.d.ts +2 -1
- package/dist/cover-hero.d.ts +20 -19
- package/dist/cover-hero.js +25 -42
- package/dist/cover-hero.js.map +1 -1
- package/dist/cta-panel.d.ts +2 -1
- package/dist/dashboard-layout.d.ts +50 -2
- package/dist/dashboard-layout.js +66 -11
- package/dist/dashboard-layout.js.map +1 -1
- package/dist/data-table.d.ts +45 -2
- package/dist/data-table.js +7 -3
- package/dist/date-picker.d.ts +29 -28
- package/dist/decision-list.d.ts +2 -1
- package/dist/description-list.d.ts +2 -1
- package/dist/detail-layout.d.ts +153 -20
- package/dist/detail-layout.js +73 -4
- package/dist/detail-layout.js.map +1 -1
- package/dist/{dialog-D42QwYb_.d.ts → dialog-DpUwec2g.d.ts} +2 -1
- package/dist/dialog.d.ts +3 -2
- package/dist/docs-article-page.d.ts +2 -1
- package/dist/docs-hub-page.d.ts +2 -1
- package/dist/docs-layout.d.ts +2 -1
- package/dist/docs-nav.d.ts +3 -10
- package/dist/document-viewer.d.ts +5 -4
- package/dist/doodle.d.ts +17 -6
- package/dist/doodle.js +40 -9
- package/dist/doodle.js.map +1 -1
- package/dist/drop-overlay.d.ts +2 -1
- package/dist/dropdown-menu.d.ts +2 -1
- package/dist/dropdown-menu.js +13 -74
- package/dist/dropdown-menu.js.map +1 -1
- package/dist/elephant.d.ts +2 -1
- package/dist/empty-state.d.ts +2 -1
- package/dist/engine-flow.d.ts +2 -1
- package/dist/error-page.d.ts +2 -1
- package/dist/file-upload.d.ts +16 -15
- package/dist/filter-bar.d.ts +84 -11
- package/dist/filter-bar.js +6 -2
- package/dist/flock.d.ts +3 -2
- package/dist/footnote.d.ts +2 -1
- package/dist/force-update-screen.d.ts +8 -7
- package/dist/form/server.d.ts +2 -1
- package/dist/form.d.ts +2 -1
- package/dist/gallery-page.d.ts +2 -1
- package/dist/genui.d.ts +2 -1
- package/dist/genui.js +3 -3
- package/dist/{geometry-DX-W-Yyf.d.ts → geometry-DZ4Q3hDQ.d.ts} +2 -1
- package/dist/glossary-term.d.ts +2 -1
- package/dist/glossary.d.ts +2 -1
- package/dist/glow-card.d.ts +2 -1
- package/dist/goal-gauge.d.ts +2 -1
- package/dist/grade-stamp.d.ts +23 -0
- package/dist/grade-stamp.js +42 -0
- package/dist/grade-stamp.js.map +1 -0
- package/dist/how-it-works-page.d.ts +2 -1
- package/dist/image-cropper.d.ts +5 -4
- package/dist/index.d.ts +3 -2
- package/dist/index.js +4 -4
- package/dist/iso.d.ts +2 -1
- package/dist/kanban.d.ts +2 -1
- package/dist/kbd.d.ts +2 -1
- package/dist/kind-config-editor.d.ts +152 -0
- package/dist/kind-config-editor.js +574 -0
- package/dist/kind-config-editor.js.map +1 -0
- package/dist/kpi-explained.d.ts +2 -1
- package/dist/landing-page.d.ts +2 -1
- package/dist/landscape.d.ts +2 -1
- package/dist/language-switch/server.d.ts +2 -1
- package/dist/language-switch.d.ts +11 -10
- package/dist/legal-page.d.ts +2 -1
- package/dist/link-card.d.ts +2 -1
- package/dist/list.d.ts +2 -1
- package/dist/loader.d.ts +2 -1
- package/dist/longform-page.d.ts +2 -1
- package/dist/maintenance-screen.d.ts +5 -4
- package/dist/map.d.ts +14 -13
- package/dist/map.js +24 -0
- package/dist/map.js.map +1 -1
- package/dist/markdown.d.ts +2 -1
- package/dist/marketing-layout.d.ts +5 -4
- package/dist/marquee.d.ts +2 -1
- package/dist/mascot-quote.d.ts +2 -1
- package/dist/mascot-state.d.ts +3 -2
- package/dist/mascots.d.ts +4 -3
- package/dist/match-dialog.d.ts +2 -1
- package/dist/media-capture.d.ts +5 -4
- package/dist/media-gallery.d.ts +2 -1
- package/dist/media-grid.d.ts +3 -10
- package/dist/meta-row.d.ts +2 -1
- package/dist/meter.d.ts +2 -1
- package/dist/motion.d.ts +3 -2
- package/dist/native/form.d.ts +2 -1
- package/dist/native/list.d.ts +2 -1
- package/dist/native/map.d.ts +2 -1
- package/dist/native/map.js +24 -0
- package/dist/native/map.js.map +1 -1
- package/dist/native/markdown.d.ts +2 -1
- package/dist/native/media-capture.d.ts +2 -1
- package/dist/native/media-picker.d.ts +2 -1
- package/dist/native/vertical-video.d.ts +2 -1
- package/dist/native/video-player.d.ts +2 -1
- package/dist/native.d.ts +230 -1
- package/dist/native.js +1465 -965
- package/dist/native.js.map +1 -1
- package/dist/nav-bar/me.d.ts +2 -1
- package/dist/nav-bar.d.ts +2 -1
- package/dist/next-actions.d.ts +2 -1
- package/dist/notification-preferences.d.ts +23 -22
- package/dist/notification-preferences.js +4 -3
- package/dist/notification-preferences.js.map +1 -1
- package/dist/number-ticker.d.ts +2 -1
- package/dist/opening-hours.d.ts +2 -1
- package/dist/page-header.d.ts +2 -1
- package/dist/page-hero.d.ts +2 -1
- package/dist/page-index.d.ts +2 -1
- package/dist/page.d.ts +2 -1
- package/dist/pagination.d.ts +2 -1
- package/dist/photo-grid.d.ts +2 -1
- package/dist/pointer-light.d.ts +2 -1
- package/dist/popover.d.ts +2 -1
- package/dist/pricing-page.d.ts +2 -1
- package/dist/product-page.d.ts +2 -1
- package/dist/profile-card.d.ts +2 -1
- package/dist/progress.d.ts +2 -1
- package/dist/promise-card.d.ts +2 -1
- package/dist/quota-meter.d.ts +2 -1
- package/dist/radio-group.d.ts +2 -1
- package/dist/radio-group.js +3 -3
- package/dist/rail-nav.d.ts +17 -16
- package/dist/rail-nav.js +22 -56
- package/dist/rail-nav.js.map +1 -1
- package/dist/recipes.d.ts +2 -1
- package/dist/retro-tv.d.ts +2 -1
- package/dist/router.d.ts +2 -1
- package/dist/scroll-stage.d.ts +2 -1
- package/dist/search-field.d.ts +2 -1
- package/dist/section-backdrop.d.ts +2 -1
- package/dist/separator.d.ts +2 -1
- package/dist/service-card.d.ts +9 -8
- package/dist/settings-layout.d.ts +2 -1
- package/dist/settings-layout.js +10 -324
- package/dist/settings-layout.js.map +1 -1
- package/dist/showcase.d.ts +2 -1
- package/dist/signature.d.ts +2 -1
- package/dist/site-cahier.d.ts +187 -0
- package/dist/site-cahier.js +844 -0
- package/dist/site-cahier.js.map +1 -0
- package/dist/site-footer.d.ts +2 -1
- package/dist/sites.d.ts +2 -1
- package/dist/skeleton.d.ts +2 -1
- package/dist/skip-link.d.ts +2 -1
- package/dist/slider.d.ts +2 -1
- package/dist/slot-picker.d.ts +86 -13
- package/dist/slot-picker.js +98 -16
- package/dist/slot-picker.js.map +1 -1
- package/dist/specimen-tag.d.ts +2 -1
- package/dist/speed-lines.d.ts +19 -0
- package/dist/speed-lines.js +45 -0
- package/dist/speed-lines.js.map +1 -0
- package/dist/spinner.d.ts +2 -1
- package/dist/split-view.d.ts +2 -1
- package/dist/stage-banner.d.ts +2 -1
- package/dist/stat.d.ts +2 -1
- package/dist/status-chip.d.ts +44 -0
- package/dist/status-chip.js +137 -0
- package/dist/status-chip.js.map +1 -0
- package/dist/status-page.d.ts +2 -1
- package/dist/step-progress.d.ts +2 -1
- package/dist/step-showcase.d.ts +2 -1
- package/dist/stepper.d.ts +2 -1
- package/dist/sticky-action.d.ts +28 -5
- package/dist/sticky-action.js +10 -4
- package/dist/sticky-action.js.map +1 -1
- package/dist/stuck.d.ts +2 -1
- package/dist/swipe-deck.d.ts +2 -1
- package/dist/switch.d.ts +2 -1
- package/dist/tabs.d.ts +2 -1
- package/dist/tag-input.d.ts +2 -1
- package/dist/tag-input.js +3 -2
- package/dist/tag-input.js.map +1 -1
- package/dist/tag-selector.d.ts +30 -4
- package/dist/tag-selector.js +90 -8
- package/dist/tag-selector.js.map +1 -1
- package/dist/taped-photo.d.ts +2 -1
- package/dist/taped-photo.js +4 -20
- package/dist/taped-photo.js.map +1 -1
- package/dist/terminal-replay.d.ts +2 -1
- package/dist/terminal-replay.js +1 -1
- package/dist/text-style/server.d.ts +2 -1
- package/dist/text-style.d.ts +2 -1
- package/dist/theme.d.ts +21 -1
- package/dist/theme.js +37 -1
- package/dist/theme.js.map +1 -1
- package/dist/toast.d.ts +2 -1
- package/dist/toc.d.ts +2 -1
- package/dist/tooltip.d.ts +2 -1
- package/dist/tree-view.d.ts +2 -1
- package/dist/update-prompt.d.ts +11 -10
- package/dist/upload-queue.d.ts +2 -1
- package/dist/verified-badge.d.ts +2 -1
- package/dist/versus-card.d.ts +40 -0
- package/dist/versus-card.js +40 -0
- package/dist/versus-card.js.map +1 -0
- package/dist/vertical-video.d.ts +2 -1
- package/dist/video-player.d.ts +20 -19
- package/dist/video-trimmer.d.ts +2 -1
- package/dist/virtual.d.ts +8 -7
- package/dist/wall.d.ts +79 -0
- package/dist/wall.js +127 -0
- package/dist/wall.js.map +1 -0
- package/dist/waveform.d.ts +2 -1
- package/package.json +140 -41
- package/registry/account-menu.json +1 -1
- package/registry/account-settings.json +257 -5
- package/registry/achievement.json +1 -1
- package/registry/action-bar.json +1 -1
- package/registry/activity-feed.json +1 -1
- package/registry/agenda.json +1 -1
- package/registry/alert.json +1 -1
- package/registry/anatomy-plate.json +1 -1
- package/registry/app-header.json +1 -1
- package/registry/app-shell.json +1 -1
- package/registry/argument-card.json +1 -1
- package/registry/audio-player.json +1 -1
- package/registry/auth-layout.json +1 -1
- package/registry/avatar.json +1 -1
- package/registry/badge.json +1 -1
- package/registry/bird-plate.json +1 -1
- package/registry/button.json +1 -1
- package/registry/captcha.json +1 -1
- package/registry/card-grid.json +1 -1
- package/registry/card.json +1 -1
- package/registry/catalogue-page.json +116 -6
- package/registry/changelog-page.json +1 -1
- package/registry/chapter.json +1 -1
- package/registry/chat.json +1 -1
- package/registry/checkbox.json +1 -1
- package/registry/chip-link.json +1 -1
- package/registry/chip-row.json +1 -1
- package/registry/chip.json +386 -11
- package/registry/choice-grid.json +1 -1
- 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 +1 -1
- package/registry/countdown.json +1 -1
- package/registry/cover-hero.json +1 -1
- package/registry/cta-panel.json +1 -1
- package/registry/dashboard-layout.json +91 -5
- package/registry/data-table.json +156 -5
- package/registry/date-picker.json +1 -1
- package/registry/decision-list.json +1 -1
- package/registry/description-list.json +1 -1
- package/registry/detail-layout.json +199 -5
- package/registry/dialog.json +1 -1
- package/registry/docs-article-page.json +1 -1
- package/registry/docs-hub-page.json +1 -1
- package/registry/docs-layout.json +1 -1
- package/registry/docs-nav.json +1 -1
- package/registry/document-viewer.json +1 -1
- package/registry/doodle.json +115 -22
- package/registry/drop-overlay.json +1 -1
- package/registry/dropdown-menu.json +1 -1
- package/registry/elephant.json +2 -2
- package/registry/empty-state.json +1 -1
- package/registry/engine-flow.json +1 -1
- package/registry/error-page.json +1 -1
- package/registry/examples/account-settings/appearance.d.ts +4 -0
- package/registry/examples/account-settings/appearance.js +40 -0
- package/registry/examples/account-settings/appearance.tsx +30 -0
- package/registry/examples/catalogue-page/clients.d.ts +4 -0
- package/registry/examples/catalogue-page/clients.js +49 -0
- package/registry/examples/catalogue-page/clients.tsx +61 -0
- package/registry/examples/chip/marker-picker.d.ts +4 -0
- package/registry/examples/chip/marker-picker.js +17 -0
- package/registry/examples/chip/marker-picker.tsx +17 -0
- package/registry/examples/chip/native/marker-picker.d.ts +4 -0
- package/registry/examples/chip/native/marker-picker.dark.png +0 -0
- package/registry/examples/chip/native/marker-picker.js +18 -0
- package/registry/examples/chip/native/marker-picker.light.png +0 -0
- package/registry/examples/chip/native/marker-picker.tsx +16 -0
- package/registry/examples/chip/native/tags.d.ts +4 -0
- package/registry/examples/chip/native/tags.dark.png +0 -0
- package/registry/examples/chip/native/tags.js +22 -0
- package/registry/examples/chip/native/tags.light.png +0 -0
- package/registry/examples/chip/native/tags.tsx +20 -0
- package/registry/examples/chip/tags.d.ts +4 -0
- package/registry/examples/chip/tags.js +26 -0
- package/registry/examples/chip/tags.tsx +23 -0
- package/registry/examples/dashboard-layout/today.d.ts +4 -0
- package/registry/examples/dashboard-layout/today.js +54 -0
- package/registry/examples/dashboard-layout/today.tsx +63 -0
- package/registry/examples/data-table/bulk.d.ts +4 -0
- package/registry/examples/data-table/bulk.js +45 -0
- package/registry/examples/data-table/bulk.tsx +34 -0
- package/registry/examples/detail-layout/client.d.ts +4 -0
- package/registry/examples/detail-layout/client.js +40 -0
- package/registry/examples/detail-layout/client.tsx +39 -0
- package/registry/examples/detail-layout/new-invoice.d.ts +4 -0
- package/registry/examples/detail-layout/new-invoice.js +44 -0
- package/registry/examples/detail-layout/new-invoice.tsx +34 -0
- package/registry/examples/doodle/bird-sketch.d.ts +4 -0
- package/registry/examples/doodle/bird-sketch.js +11 -0
- package/registry/examples/doodle/bird-sketch.tsx +12 -0
- package/registry/examples/doodle/margin-marks.d.ts +4 -0
- package/registry/examples/doodle/margin-marks.js +27 -0
- package/registry/examples/doodle/margin-marks.tsx +19 -0
- package/registry/examples/filter-bar/views.d.ts +4 -0
- package/registry/examples/filter-bar/views.js +39 -0
- package/registry/examples/filter-bar/views.tsx +30 -0
- package/registry/examples/grade-stamp/coverage.d.ts +4 -0
- package/registry/examples/grade-stamp/coverage.js +12 -0
- package/registry/examples/grade-stamp/coverage.tsx +8 -0
- package/registry/examples/grade-stamp/lighthouse.d.ts +4 -0
- package/registry/examples/grade-stamp/lighthouse.js +12 -0
- package/registry/examples/grade-stamp/lighthouse.tsx +14 -0
- package/registry/examples/kind-config-editor/derived.d.ts +4 -0
- package/registry/examples/kind-config-editor/derived.js +26 -0
- package/registry/examples/kind-config-editor/derived.tsx +16 -0
- package/registry/examples/kind-config-editor/native/status-set.d.ts +4 -0
- package/registry/examples/kind-config-editor/native/status-set.dark.png +0 -0
- package/registry/examples/kind-config-editor/native/status-set.js +22 -0
- package/registry/examples/kind-config-editor/native/status-set.light.png +0 -0
- package/registry/examples/kind-config-editor/native/status-set.tsx +19 -0
- package/registry/examples/kind-config-editor/native/tag-set.d.ts +4 -0
- package/registry/examples/kind-config-editor/native/tag-set.dark.png +0 -0
- package/registry/examples/kind-config-editor/native/tag-set.js +20 -0
- package/registry/examples/kind-config-editor/native/tag-set.light.png +0 -0
- package/registry/examples/kind-config-editor/native/tag-set.tsx +18 -0
- package/registry/examples/kind-config-editor/status-set.d.ts +4 -0
- package/registry/examples/kind-config-editor/status-set.js +29 -0
- package/registry/examples/kind-config-editor/status-set.tsx +25 -0
- package/registry/examples/kind-config-editor/tag-set.d.ts +4 -0
- package/registry/examples/kind-config-editor/tag-set.js +20 -0
- package/registry/examples/kind-config-editor/tag-set.tsx +18 -0
- package/registry/examples/site-cahier/java-releases.d.ts +4 -0
- package/registry/examples/site-cahier/java-releases.js +33 -0
- package/registry/examples/site-cahier/java-releases.tsx +32 -0
- package/registry/examples/site-cahier/motion-lab.d.ts +4 -0
- package/registry/examples/site-cahier/motion-lab.js +32 -0
- package/registry/examples/site-cahier/motion-lab.tsx +29 -0
- package/registry/examples/site-cahier/ts-changelog.d.ts +4 -0
- package/registry/examples/site-cahier/ts-changelog.js +24 -0
- package/registry/examples/site-cahier/ts-changelog.tsx +20 -0
- package/registry/examples/site-cahier/ts-doc.d.ts +4 -0
- package/registry/examples/site-cahier/ts-doc.js +38 -0
- package/registry/examples/site-cahier/ts-doc.tsx +27 -0
- package/registry/examples/site-cahier/ui-home.d.ts +4 -0
- package/registry/examples/site-cahier/ui-home.js +46 -0
- package/registry/examples/site-cahier/ui-home.tsx +40 -0
- package/registry/examples/slot-picker/weeks.d.ts +4 -0
- package/registry/examples/slot-picker/weeks.js +45 -0
- package/registry/examples/slot-picker/weeks.tsx +28 -0
- package/registry/examples/speed-lines/hero.d.ts +4 -0
- package/registry/examples/speed-lines/hero.js +11 -0
- package/registry/examples/speed-lines/hero.tsx +12 -0
- package/registry/examples/speed-lines/streaks.d.ts +4 -0
- package/registry/examples/speed-lines/streaks.js +11 -0
- package/registry/examples/speed-lines/streaks.tsx +12 -0
- package/registry/examples/status-chip/default.d.ts +4 -0
- package/registry/examples/status-chip/default.js +35 -0
- package/registry/examples/status-chip/default.tsx +32 -0
- package/registry/examples/status-chip/native/default.d.ts +4 -0
- package/registry/examples/status-chip/native/default.dark.png +0 -0
- package/registry/examples/status-chip/native/default.js +26 -0
- package/registry/examples/status-chip/native/default.light.png +0 -0
- package/registry/examples/status-chip/native/default.tsx +20 -0
- package/registry/examples/tag-selector/creatable.d.ts +4 -0
- package/registry/examples/tag-selector/creatable.js +41 -0
- package/registry/examples/tag-selector/creatable.tsx +29 -0
- package/registry/examples/tag-selector/native/tags.d.ts +4 -0
- package/registry/examples/tag-selector/native/tags.dark.png +0 -0
- package/registry/examples/tag-selector/native/tags.js +19 -0
- package/registry/examples/tag-selector/native/tags.light.png +0 -0
- package/registry/examples/tag-selector/native/tags.tsx +19 -0
- package/registry/examples/versus-card/alternatives.d.ts +4 -0
- package/registry/examples/versus-card/alternatives.js +20 -0
- package/registry/examples/versus-card/alternatives.tsx +14 -0
- package/registry/examples/versus-card/releases.d.ts +4 -0
- package/registry/examples/versus-card/releases.js +35 -0
- package/registry/examples/versus-card/releases.tsx +29 -0
- package/registry/examples/wall/brick.d.ts +4 -0
- package/registry/examples/wall/brick.js +14 -0
- package/registry/examples/wall/brick.tsx +8 -0
- package/registry/examples/wall/composition-fr.d.ts +4 -0
- package/registry/examples/wall/composition-fr.js +37 -0
- package/registry/examples/wall/composition-fr.tsx +18 -0
- package/registry/examples/wall/composition.d.ts +4 -0
- package/registry/examples/wall/composition.js +38 -0
- package/registry/examples/wall/composition.tsx +18 -0
- package/registry/examples/wall/pinned-note.d.ts +4 -0
- package/registry/examples/wall/pinned-note.js +15 -0
- package/registry/examples/wall/pinned-note.tsx +9 -0
- package/registry/examples/wall/plaster.d.ts +4 -0
- package/registry/examples/wall/plaster.js +14 -0
- package/registry/examples/wall/plaster.tsx +8 -0
- package/registry/examples/wall/polaroid.d.ts +4 -0
- package/registry/examples/wall/polaroid.js +19 -0
- package/registry/examples/wall/polaroid.tsx +10 -0
- package/registry/examples/wall/ridge.d.ts +4 -0
- package/registry/examples/wall/ridge.js +14 -0
- package/registry/examples/wall/ridge.tsx +8 -0
- package/registry/examples/wall/shop-sign.d.ts +4 -0
- package/registry/examples/wall/shop-sign.js +16 -0
- package/registry/examples/wall/shop-sign.tsx +10 -0
- package/registry/examples/wall/zellige.d.ts +4 -0
- package/registry/examples/wall/zellige.js +14 -0
- package/registry/examples/wall/zellige.tsx +8 -0
- package/registry/field.json +1 -1
- package/registry/file-upload.json +1 -1
- package/registry/filter-bar.json +208 -8
- package/registry/flock.json +1 -1
- package/registry/footnote.json +1 -1
- package/registry/force-update-screen.json +1 -1
- package/registry/form.json +1 -1
- package/registry/gallery-page.json +1 -1
- package/registry/genui.json +1 -1
- package/registry/glossary-term.json +1 -1
- package/registry/glossary.json +1 -1
- package/registry/glow-card.json +1 -1
- package/registry/goal-gauge.json +1 -1
- package/registry/grade-stamp.json +227 -0
- package/registry/how-it-works-page.json +1 -1
- package/registry/image-cropper.json +1 -1
- package/registry/index.json +355 -30
- package/registry/iso.json +1 -1
- package/registry/kanban.json +1 -1
- package/registry/kbd.json +1 -1
- package/registry/kind-config-editor.json +565 -0
- package/registry/kpi-explained.json +1 -1
- package/registry/landing-page.json +1 -1
- package/registry/landscape.json +1 -1
- package/registry/language-switch.json +1 -1
- package/registry/legal-page.json +1 -1
- package/registry/link-card.json +1 -1
- package/registry/list.json +1 -1
- package/registry/loader.json +1 -1
- package/registry/longform-page.json +1 -1
- package/registry/maintenance-screen.json +1 -1
- package/registry/map.json +2 -2
- package/registry/markdown.json +1 -1
- package/registry/marketing-layout.json +1 -1
- package/registry/marquee.json +1 -1
- package/registry/mascot-quote.json +1 -1
- package/registry/mascot-state.json +1 -1
- package/registry/mascots.json +1 -1
- package/registry/match-dialog.json +1 -1
- package/registry/media-capture.json +1 -1
- package/registry/media-gallery.json +1 -1
- package/registry/media-grid.json +1 -1
- package/registry/meta-row.json +1 -1
- package/registry/meter.json +1 -1
- package/registry/nav-bar.json +2 -2
- package/registry/next-actions.json +1 -1
- package/registry/notification-preferences.json +1 -1
- package/registry/number-ticker.json +1 -1
- package/registry/opening-hours.json +1 -1
- package/registry/page-header.json +1 -1
- package/registry/page-hero.json +1 -1
- package/registry/page-index.json +1 -1
- package/registry/page.json +1 -1
- package/registry/pagination.json +1 -1
- package/registry/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 +1 -1
- package/registry/profile-card.json +1 -1
- package/registry/progress.json +1 -1
- package/registry/promise-card.json +1 -1
- package/registry/quota-meter.json +1 -1
- package/registry/radio-group.json +1 -1
- package/registry/rail-nav.json +2 -2
- package/registry/recipes.json +1 -1
- package/registry/retro-tv.json +1 -1
- package/registry/router.json +1 -1
- package/registry/scroll-stage.json +1 -1
- package/registry/search-field.json +1 -1
- package/registry/section-backdrop.json +1 -1
- package/registry/separator.json +1 -1
- package/registry/service-card.json +1 -1
- package/registry/settings-layout.json +1 -1
- package/registry/showcase.json +1 -1
- package/registry/signature.json +1 -1
- package/registry/site-cahier.json +548 -0
- package/registry/site-footer.json +2 -2
- package/registry/sites.json +1 -1
- package/registry/skeleton.json +1 -1
- package/registry/skip-link.json +1 -1
- package/registry/slider.json +1 -1
- package/registry/slot-picker.json +156 -10
- package/registry/slot.json +1 -1
- package/registry/specimen-tag.json +1 -1
- package/registry/speed-lines.json +174 -0
- package/registry/spinner.json +1 -1
- package/registry/split-view.json +1 -1
- package/registry/stage-banner.json +1 -1
- package/registry/stat.json +1 -1
- package/registry/status-chip.json +350 -0
- package/registry/status-page.json +1 -1
- package/registry/step-progress.json +1 -1
- package/registry/step-showcase.json +1 -1
- package/registry/stepper.json +1 -1
- package/registry/sticky-action.json +38 -8
- package/registry/stuck.json +1 -1
- package/registry/swipe-deck.json +1 -1
- package/registry/switch.json +1 -1
- package/registry/tabs.json +1 -1
- package/registry/tag-input.json +1 -1
- package/registry/tag-selector.json +189 -12
- 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 +3 -3
- package/registry/toast.json +1 -1
- package/registry/toc.json +1 -1
- package/registry/tooltip.json +1 -1
- package/registry/tree-view.json +1 -1
- package/registry/update-prompt.json +1 -1
- package/registry/upload-queue.json +1 -1
- package/registry/verified-badge.json +1 -1
- package/registry/versus-card.json +194 -0
- package/registry/vertical-video.json +1 -1
- package/registry/video-player.json +1 -1
- package/registry/video-trimmer.json +1 -1
- package/registry/virtual.json +2 -2
- package/registry/wall.json +511 -0
- package/registry/waveform.json +1 -1
- package/dist/chunk-7U5TXA5Q.js.map +0 -1
- package/dist/chunk-OIMXKRXF.js +0 -179
- package/dist/chunk-OIMXKRXF.js.map +0 -1
- package/dist/chunk-QWKCNSPF.js.map +0 -1
- package/dist/chunk-VIPSZXO4.js.map +0 -1
- /package/dist/{chunk-AEP3K4YD.js.map → chunk-4GQH27IT.js.map} +0 -0
|
@@ -0,0 +1,511 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "wall",
|
|
3
|
+
"type": "primitive",
|
|
4
|
+
"title": "Wall",
|
|
5
|
+
"summary": "A read-only wall of photos, short notes and the owner's sign: Montréal brick, Moroccan eight-point zellige, Grenoble ridgelines or warm plaster, over a real keyboard-reachable list.",
|
|
6
|
+
"description": "A read-only wall of photos, short notes and the owner's sign: Montréal brick, Moroccan eight-point zellige, Grenoble ridgelines or warm plaster, over a real keyboard-reachable list.",
|
|
7
|
+
"status": "beta",
|
|
8
|
+
"deprecated": null,
|
|
9
|
+
"category": "blocks",
|
|
10
|
+
"platforms": "web",
|
|
11
|
+
"parity": {
|
|
12
|
+
"web": {
|
|
13
|
+
"state": "yes"
|
|
14
|
+
},
|
|
15
|
+
"native": {
|
|
16
|
+
"state": "n/a",
|
|
17
|
+
"reason": "An ornamental storefront surface belongs to web pages; native content should stay in a scrolling gallery.",
|
|
18
|
+
"use": "media-grid"
|
|
19
|
+
},
|
|
20
|
+
"desktop": {
|
|
21
|
+
"state": "yes"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"whenToUse": [
|
|
25
|
+
"A shop or community page whose owner's photos, words and identity should feel personally pinned up."
|
|
26
|
+
],
|
|
27
|
+
"whenNotToUse": [
|
|
28
|
+
{
|
|
29
|
+
"when": "A searchable or large image collection.",
|
|
30
|
+
"use": "photo-grid"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"when": "Rows of data to compare or sort.",
|
|
34
|
+
"use": "data-table"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"bestPractices": [
|
|
38
|
+
"Import @krizaka/ui/blocks.css once. All four components are exported from @krizaka/ui/wall.",
|
|
39
|
+
"Each example includes its own words, so copied snippets are self-contained. Choose the host locale and pass its words as data; the French composition demonstrates the same surface unchanged.",
|
|
40
|
+
"Provide stable ids, explicit x/y percentages, rotation in degrees and z for every item. Positions are clamped to 0–100; z sorts the real list stably, including keyboard and phone order.",
|
|
41
|
+
"Use kind polaroid with img, kind note with text, or kind sign with logo. Items carry the same props as their standalone component; no editor or random placement is added.",
|
|
42
|
+
"Use height and itemWidth for layout, not style: style is intentionally omitted from the public props so percentage placement and the mobile stack cannot be overwritten accidentally.",
|
|
43
|
+
"Keep the wall sparse and tilts small. On screens narrower than 48rem it grows into an untilted single column in z order, without overlap.",
|
|
44
|
+
"The img ReactNode accepts next/image, including fill: the square photo frame is positioned. Supply an informative alt, or an empty alt for decoration.",
|
|
45
|
+
"Captions and signatures use the existing --kz-font-cahier handwriting role (Krizaka Cahier from @krizaka/fonts); load the font in the host.",
|
|
46
|
+
"PinnedNote caps text at 140 Unicode code points. Keep the full message elsewhere when more detail matters.",
|
|
47
|
+
"Set attachment and attachmentRotation for tape or a pin, rotation for the object; neon's animated=false and Polaroid's develop=false opt out of motion.",
|
|
48
|
+
"Wall textures adapt to dark, light and brand themes. Polaroid composes TapedPhoto: its --kz-print paper stays pale in both themes, with --kz-print-ink captions and --kz-tape strips instead of a second print material."
|
|
49
|
+
],
|
|
50
|
+
"accessibility": {
|
|
51
|
+
"keyboard": [
|
|
52
|
+
{
|
|
53
|
+
"keys": "Tab / Shift+Tab",
|
|
54
|
+
"action": "Visit each object in ascending z order, preserving input order for ties."
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"notes": [
|
|
58
|
+
"Wall is a real ul with an explicit list role, preserving Safari semantics despite list-style:none, and focusable li objects; give it an aria-label describing the collection. Textures, tape, pins and screws are hidden from assistive technology.",
|
|
59
|
+
"Every word and all photo/logo alternatives come from the host. Standalone objects keep their natural figure/article/div semantics; Wall supplies their focus target.",
|
|
60
|
+
"Polaroid only develops after its first observed intersection. With reduced motion, without an observer, or before hydration the photo remains sharp; preference changes stop motion immediately.",
|
|
61
|
+
"Neon only flickers softly once, never flashes or loops. All effects stop under prefers-reduced-motion; reading and focus order never depend on visual positions."
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
"related": [
|
|
65
|
+
"taped-photo",
|
|
66
|
+
"cover-hero",
|
|
67
|
+
"media-gallery",
|
|
68
|
+
"photo-grid",
|
|
69
|
+
"profile-card"
|
|
70
|
+
],
|
|
71
|
+
"web": {
|
|
72
|
+
"entry": "@krizaka/ui/wall",
|
|
73
|
+
"import": "import { Wall, Polaroid, PinnedNote, ShopSign } from \"@krizaka/ui/wall\";",
|
|
74
|
+
"props": [
|
|
75
|
+
{
|
|
76
|
+
"component": "PinnedNote",
|
|
77
|
+
"description": "A short word on a cut-corner card.",
|
|
78
|
+
"props": [
|
|
79
|
+
{
|
|
80
|
+
"name": "text",
|
|
81
|
+
"type": "string",
|
|
82
|
+
"default": null,
|
|
83
|
+
"description": "The short message; capped at 140 Unicode code points without an ellipsis.",
|
|
84
|
+
"required": true
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "attachment",
|
|
88
|
+
"type": "\"pin\" | \"tape\"",
|
|
89
|
+
"default": null,
|
|
90
|
+
"description": "A tape strip or a pin; defaults to tape.",
|
|
91
|
+
"required": false
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"name": "attachmentRotation",
|
|
95
|
+
"type": "number",
|
|
96
|
+
"default": null,
|
|
97
|
+
"description": "The tape or pin's tilt in degrees; defaults to zero.",
|
|
98
|
+
"required": false
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "rotation",
|
|
102
|
+
"type": "number",
|
|
103
|
+
"default": "0",
|
|
104
|
+
"description": "Tilt in degrees, deterministic; defaults to zero.",
|
|
105
|
+
"required": false
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"name": "signature",
|
|
109
|
+
"type": "string",
|
|
110
|
+
"default": null,
|
|
111
|
+
"description": "The optional author's signature, written in the handwriting role.",
|
|
112
|
+
"required": false
|
|
113
|
+
}
|
|
114
|
+
]
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"component": "Polaroid",
|
|
118
|
+
"description": "A photo held to the wall by tape or a pin, with a handwritten caption.",
|
|
119
|
+
"props": [
|
|
120
|
+
{
|
|
121
|
+
"name": "img",
|
|
122
|
+
"type": "ReactNode",
|
|
123
|
+
"default": null,
|
|
124
|
+
"description": "The photo slot: an img or next/image, including fill inside this positioned frame. Supply its alt text.",
|
|
125
|
+
"required": true
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"name": "attachment",
|
|
129
|
+
"type": "\"pin\" | \"tape\"",
|
|
130
|
+
"default": "tape",
|
|
131
|
+
"description": "A tape strip or a pin; defaults to tape.",
|
|
132
|
+
"required": false
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"name": "attachmentRotation",
|
|
136
|
+
"type": "number",
|
|
137
|
+
"default": "0",
|
|
138
|
+
"description": "The tape or pin's tilt in degrees; defaults to zero.",
|
|
139
|
+
"required": false
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"name": "caption",
|
|
143
|
+
"type": "ReactNode",
|
|
144
|
+
"default": null,
|
|
145
|
+
"description": "A short handwritten caption, using the --kz-font-cahier role.",
|
|
146
|
+
"required": false
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"name": "develop",
|
|
150
|
+
"type": "boolean",
|
|
151
|
+
"default": "true",
|
|
152
|
+
"description": "Enable the first-view develop effect; defaults to true, never runs under reduced motion.",
|
|
153
|
+
"required": false
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"name": "rotation",
|
|
157
|
+
"type": "number",
|
|
158
|
+
"default": "0",
|
|
159
|
+
"description": "Tilt in degrees, deterministic; defaults to zero.",
|
|
160
|
+
"required": false
|
|
161
|
+
}
|
|
162
|
+
]
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"component": "ShopSign",
|
|
166
|
+
"description": "A shop's own mark, as a plate, a neon, or a painted sign.",
|
|
167
|
+
"props": [
|
|
168
|
+
{
|
|
169
|
+
"name": "logo",
|
|
170
|
+
"type": "ReactNode",
|
|
171
|
+
"default": null,
|
|
172
|
+
"description": "The owner's logo or wordmark. Name an SVG/image accessibly, or use readable text.",
|
|
173
|
+
"required": true
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"name": "animated",
|
|
177
|
+
"type": "boolean",
|
|
178
|
+
"default": "true",
|
|
179
|
+
"description": "Allow a single soft neon flicker on mount; defaults to true and respects reduced motion.",
|
|
180
|
+
"required": false
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"name": "rotation",
|
|
184
|
+
"type": "number",
|
|
185
|
+
"default": "0",
|
|
186
|
+
"description": "Deterministic tilt in degrees; defaults to zero.",
|
|
187
|
+
"required": false
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"name": "variant",
|
|
191
|
+
"type": "\"enamel\" | \"neon\" | \"painted\"",
|
|
192
|
+
"default": "enamel",
|
|
193
|
+
"description": "Enamel plate and screws, softly glowing neon, or a time-worn painted sign.",
|
|
194
|
+
"required": false
|
|
195
|
+
}
|
|
196
|
+
]
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"component": "Wall",
|
|
200
|
+
"description": "A decorative textured surface over a real keyboard-reachable list; never an editor.",
|
|
201
|
+
"props": [
|
|
202
|
+
{
|
|
203
|
+
"name": "items",
|
|
204
|
+
"type": "readonly WallItem[]",
|
|
205
|
+
"default": null,
|
|
206
|
+
"description": "The read-only objects; never mutated. Sorted by z for reading, keyboard and phone order.",
|
|
207
|
+
"required": true
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"name": "height",
|
|
211
|
+
"type": "number",
|
|
212
|
+
"default": "560",
|
|
213
|
+
"description": "Desktop surface height in pixels (minimum 320); defaults to 560. Phones grow with content.",
|
|
214
|
+
"required": false
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"name": "itemWidth",
|
|
218
|
+
"type": "number",
|
|
219
|
+
"default": "240",
|
|
220
|
+
"description": "Desktop object width in pixels (minimum 120); defaults to 240 and never exceeds the surface.",
|
|
221
|
+
"required": false
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"name": "texture",
|
|
225
|
+
"type": "\"brick\" | \"zellige\" | \"ridge\" | \"plaster\"",
|
|
226
|
+
"default": "plaster",
|
|
227
|
+
"description": "CSS/SVG texture; no image download. Defaults to plaster.",
|
|
228
|
+
"required": false
|
|
229
|
+
}
|
|
230
|
+
]
|
|
231
|
+
}
|
|
232
|
+
],
|
|
233
|
+
"examples": [
|
|
234
|
+
{
|
|
235
|
+
"name": "composition",
|
|
236
|
+
"title": "The owner's wall",
|
|
237
|
+
"description": "A photograph, a signed word and an enamel sign, positioned from deterministic data.",
|
|
238
|
+
"path": "examples/wall/composition.tsx",
|
|
239
|
+
"module": "@krizaka/ui/registry/examples/wall/composition",
|
|
240
|
+
"code": "import { Wall, type WallItem } from \"@krizaka/ui/wall\";\n\nconst m = {\n photoAlt: \"The mountain above our workshop\", caption: \"The view from here\",\n note: \"Made slowly. Shared gladly.\", signature: \"Sam\",\n sign: \"Neighbourhood workshop\", wallLabel: \"From our workshop\",\n};\nconst items: WallItem[] = [\n { id: \"photo\", kind: \"polaroid\", x: 8, y: 18, rotation: -4, z: 1,\n img: <svg role=\"img\" aria-label={m.photoAlt} viewBox=\"0 0 240 240\"><rect width=\"240\" height=\"240\" fill=\"var(--kz-accent-soft)\" /><path d=\"m0 240 100-190 55 110 35-45 50 125Z\" fill=\"var(--kz-accent)\" /></svg>,\n caption: m.caption, attachment: \"tape\", attachmentRotation: 6 },\n { id: \"word\", kind: \"note\", x: 52, y: 75, rotation: 3, z: 2, text: m.note, signature: m.signature, attachment: \"pin\" },\n { id: \"sign\", kind: \"sign\", x: 94, y: 22, rotation: -2, z: 3, logo: m.sign, variant: \"enamel\" },\n];\n\nexport default function CompositionExample() {\n return <Wall aria-label={m.wallLabel} texture=\"brick\" items={items} height={520} itemWidth={220} />;\n}\n"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"name": "composition-fr",
|
|
244
|
+
"title": "The owner's wall in French",
|
|
245
|
+
"description": "The same deterministic layout reads its French words and alternatives from the example's local catalogue.",
|
|
246
|
+
"path": "examples/wall/composition-fr.tsx",
|
|
247
|
+
"module": "@krizaka/ui/registry/examples/wall/composition-fr",
|
|
248
|
+
"code": "import { Wall } from \"@krizaka/ui/wall\";\n\nexport default function FrenchCompositionExample() {\n const m = {\n wallLabel: \"Dans notre atelier\", photoAlt: \"La montagne au-dessus de notre atelier\",\n caption: \"La vue d’ici\", note: \"Fait avec patience. Partagé avec plaisir.\",\n signature: \"Sam\", sign: \"Atelier du coin\",\n };\n return <div lang=\"fr\"><Wall aria-label={m.wallLabel} texture=\"brick\" height={520} itemWidth={220} items={[\n { kind: \"polaroid\", id: \"photo\", z: 1, x: 8, y: 18, rotation: -4, attachment: \"tape\", attachmentRotation: 6, caption: m.caption,\n img: <svg viewBox=\"0 0 240 240\" role=\"img\" aria-label={m.photoAlt}>\n <rect width=\"240\" height=\"240\" fill=\"var(--kz-accent-soft)\" />\n <path d=\"m0 240 100-190 55 110 35-45 50 125Z\" fill=\"var(--kz-accent)\" />\n </svg> },\n { kind: \"note\", id: \"word\", z: 2, x: 52, y: 75, rotation: 3, attachment: \"pin\", text: m.note, signature: m.signature },\n { kind: \"sign\", id: \"sign\", z: 3, x: 94, y: 22, rotation: -2, variant: \"enamel\", logo: m.sign },\n ]} /></div>;\n}\n"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"name": "brick",
|
|
252
|
+
"title": "Montréal brick",
|
|
253
|
+
"description": "Staggered masonry and mortar on a warm token-based surface.",
|
|
254
|
+
"path": "examples/wall/brick.tsx",
|
|
255
|
+
"module": "@krizaka/ui/registry/examples/wall/brick",
|
|
256
|
+
"code": "import { Wall } from \"@krizaka/ui/wall\";\n\nexport default function BrickExample() {\n const m = { brickLabel: \"Brick wall\", paintedSign: \"The neighbourhood\" };\n return <Wall aria-label={m.brickLabel} texture=\"brick\" items={[\n { id: \"sign\", kind: \"sign\", x: 50, y: 50, rotation: -2, z: 1, logo: m.paintedSign, variant: \"painted\" },\n ]} height={360} />;\n}\n"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"name": "zellige",
|
|
260
|
+
"title": "Moroccan zellige",
|
|
261
|
+
"description": "A repeating deterministic eight-point SVG star, without an image download.",
|
|
262
|
+
"path": "examples/wall/zellige.tsx",
|
|
263
|
+
"module": "@krizaka/ui/registry/examples/wall/zellige",
|
|
264
|
+
"code": "import { Wall } from \"@krizaka/ui/wall\";\n\nexport default function ZelligeExample() {\n const m = { zelligeLabel: \"Zellige wall\", sunnyNote: \"A little sunshine, all year.\", sunnySignature: \"Nour\" };\n return <Wall aria-label={m.zelligeLabel} texture=\"zellige\" items={[\n { id: \"note\", kind: \"note\", x: 50, y: 50, rotation: 3, z: 1, text: m.sunnyNote, signature: m.sunnySignature, attachment: \"pin\" },\n ]} height={360} />;\n}\n"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"name": "ridge",
|
|
268
|
+
"title": "Grenoble ridges",
|
|
269
|
+
"description": "Three layered mountain silhouettes behind the owner's words.",
|
|
270
|
+
"path": "examples/wall/ridge.tsx",
|
|
271
|
+
"module": "@krizaka/ui/registry/examples/wall/ridge",
|
|
272
|
+
"code": "import { Wall } from \"@krizaka/ui/wall\";\n\nexport default function RidgeExample() {\n const m = { ridgeLabel: \"Mountain wall\", mountainNote: \"Back after a walk in the mountains.\", mountainSignature: \"Lou\" };\n return <Wall aria-label={m.ridgeLabel} texture=\"ridge\" items={[\n { id: \"note\", kind: \"note\", x: 50, y: 50, rotation: -3, z: -2, text: m.mountainNote, signature: m.mountainSignature },\n ]} height={360} />;\n}\n"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"name": "plaster",
|
|
276
|
+
"title": "Warm plaster",
|
|
277
|
+
"description": "A quiet lightly textured wall when the content should speak first.",
|
|
278
|
+
"path": "examples/wall/plaster.tsx",
|
|
279
|
+
"module": "@krizaka/ui/registry/examples/wall/plaster",
|
|
280
|
+
"code": "import { Wall } from \"@krizaka/ui/wall\";\n\nexport default function PlasterExample() {\n const m = { plasterLabel: \"Plaster wall\", welcomeNote: \"Come as you are. There is always room.\", welcomeSignature: \"Alex\" };\n return <Wall aria-label={m.plasterLabel} texture=\"plaster\" items={[\n { id: \"note\", kind: \"note\", x: 50, y: 50, rotation: 2, z: 1, text: m.welcomeNote, signature: m.welcomeSignature },\n ]} height={360} />;\n}\n"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"name": "polaroid",
|
|
284
|
+
"title": "Polaroids",
|
|
285
|
+
"description": "A photo slot, handwritten caption, deterministic tilt, and tape or pin.",
|
|
286
|
+
"path": "examples/wall/polaroid.tsx",
|
|
287
|
+
"module": "@krizaka/ui/registry/examples/wall/polaroid",
|
|
288
|
+
"code": "import { Polaroid } from \"@krizaka/ui/wall\";\n\nexport default function PolaroidExample() {\n const m = { mountainAlt: \"Mountain silhouette\", outsideCaption: \"A day outside\", pinnedCaption: \"Pinned for later\" };\n const photo = <svg role=\"img\" aria-label={m.mountainAlt} viewBox=\"0 0 200 200\"><rect width=\"200\" height=\"200\" fill=\"var(--kz-accent-soft)\" /><path d=\"m0 200 80-170 55 100 30-45 35 115Z\" fill=\"var(--kz-accent)\" /></svg>;\n return <div className=\"grid gap-8 p-8 sm:grid-cols-2\">\n <Polaroid img={photo} caption={m.outsideCaption} rotation={-3} attachment=\"tape\" attachmentRotation={7} />\n <Polaroid img={photo} caption={m.pinnedCaption} rotation={3} attachment=\"pin\" />\n </div>;\n}\n"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"name": "pinned-note",
|
|
292
|
+
"title": "Pinned notes",
|
|
293
|
+
"description": "Short signed words on cut-corner paper, held by a pin or tape.",
|
|
294
|
+
"path": "examples/wall/pinned-note.tsx",
|
|
295
|
+
"module": "@krizaka/ui/registry/examples/wall/pinned-note",
|
|
296
|
+
"code": "import { PinnedNote } from \"@krizaka/ui/wall\";\n\nexport default function PinnedNoteExample() {\n const m = { patientNote: \"Good things take time.\", signature: \"Sam\", thanksNote: \"Thanks for stopping by. See you soon!\", sunnySignature: \"Nour\" };\n return <div className=\"grid gap-8 p-8 sm:grid-cols-2\">\n <PinnedNote text={m.patientNote} signature={m.signature} attachment=\"pin\" rotation={-2} />\n <PinnedNote text={m.thanksNote} signature={m.sunnySignature} attachment=\"tape\" attachmentRotation={-6} rotation={2} />\n </div>;\n}\n"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"name": "shop-sign",
|
|
300
|
+
"title": "Shop signs",
|
|
301
|
+
"description": "The owner's mark as enamel with screws, soft neon, or weathered painted lettering.",
|
|
302
|
+
"path": "examples/wall/shop-sign.tsx",
|
|
303
|
+
"module": "@krizaka/ui/registry/examples/wall/shop-sign",
|
|
304
|
+
"code": "import { ShopSign } from \"@krizaka/ui/wall\";\n\nexport default function ShopSignExample() {\n const m = { sign: \"Neighbourhood workshop\", neonSign: \"Still open\", oldSign: \"Since forever\" };\n return <div className=\"grid gap-8 p-8\">\n <ShopSign logo={m.sign} variant=\"enamel\" rotation={-1} />\n <ShopSign logo={m.neonSign} variant=\"neon\" />\n <ShopSign logo={m.oldSign} variant=\"painted\" rotation={1} />\n </div>;\n}\n"
|
|
305
|
+
}
|
|
306
|
+
]
|
|
307
|
+
},
|
|
308
|
+
"native": null,
|
|
309
|
+
"files": [
|
|
310
|
+
{
|
|
311
|
+
"path": "meta.ts",
|
|
312
|
+
"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"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"path": "wall/attachment.tsx",
|
|
316
|
+
"content": "import type { CSSProperties } from \"react\";\n\nimport { cn } from \"../cn\";\n\nexport interface WallObjectProps {\n /** Tilt in degrees, deterministic; defaults to zero. */\n rotation?: number;\n /** A tape strip or a pin; defaults to tape. */\n attachment?: \"tape\" | \"pin\";\n /** The tape or pin's tilt in degrees; defaults to zero. */\n attachmentRotation?: number;\n}\n\nexport const finite = (value: number) => Number.isFinite(value) ? value : 0;\nexport const rotationStyle = (rotation: number): CSSProperties =>\n ({ \"--kz-wall-rotation\": `${finite(rotation)}deg` }) as CSSProperties;\n\nexport function Attachment({ attachment = \"tape\", attachmentRotation = 0 }: WallObjectProps) {\n return <span aria-hidden=\"true\" className={cn(\"kz-wall-attachment\", attachment === \"pin\" ? \"kz-wall-pin\" : \"kz-wall-tape\")} style={{ transform: `rotate(${finite(attachmentRotation)}deg)` }} />;\n}\n"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"path": "wall/index.ts",
|
|
320
|
+
"content": "export { PinnedNote, type PinnedNoteProps } from \"./pinned-note\";\nexport { Polaroid, type PolaroidProps } from \"./polaroid\";\nexport { ShopSign, type ShopSignProps } from \"./shop-sign\";\nexport { Wall, type WallItem, type WallPosition, type WallProps } from \"./wall\";\n"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"path": "wall/meta.ts",
|
|
324
|
+
"content": "import type { ComponentMeta } from \"../meta\";\n\nexport const meta = {\n title: \"Wall\",\n summary: \"A read-only wall of photos, short notes and the owner's sign: Montréal brick, Moroccan eight-point zellige, Grenoble ridgelines or warm plaster, over a real keyboard-reachable list.\",\n status: \"beta\",\n category: \"blocks\",\n platforms: \"web\",\n parity: { native: { status: \"n/a\", reason: \"An ornamental storefront surface belongs to web pages; native content should stay in a scrolling gallery.\", use: \"media-grid\" }, desktop: \"web\" },\n whenToUse: [\"A shop or community page whose owner's photos, words and identity should feel personally pinned up.\"],\n whenNotToUse: [\n { when: \"A searchable or large image collection.\", use: \"photo-grid\" },\n { when: \"Rows of data to compare or sort.\", use: \"data-table\" },\n ],\n bestPractices: [\n \"Import @krizaka/ui/blocks.css once. All four components are exported from @krizaka/ui/wall.\",\n \"Each example includes its own words, so copied snippets are self-contained. Choose the host locale and pass its words as data; the French composition demonstrates the same surface unchanged.\",\n \"Provide stable ids, explicit x/y percentages, rotation in degrees and z for every item. Positions are clamped to 0–100; z sorts the real list stably, including keyboard and phone order.\",\n \"Use kind polaroid with img, kind note with text, or kind sign with logo. Items carry the same props as their standalone component; no editor or random placement is added.\",\n \"Use height and itemWidth for layout, not style: style is intentionally omitted from the public props so percentage placement and the mobile stack cannot be overwritten accidentally.\",\n \"Keep the wall sparse and tilts small. On screens narrower than 48rem it grows into an untilted single column in z order, without overlap.\",\n \"The img ReactNode accepts next/image, including fill: the square photo frame is positioned. Supply an informative alt, or an empty alt for decoration.\",\n \"Captions and signatures use the existing --kz-font-cahier handwriting role (Krizaka Cahier from @krizaka/fonts); load the font in the host.\",\n \"PinnedNote caps text at 140 Unicode code points. Keep the full message elsewhere when more detail matters.\",\n \"Set attachment and attachmentRotation for tape or a pin, rotation for the object; neon's animated=false and Polaroid's develop=false opt out of motion.\",\n \"Wall textures adapt to dark, light and brand themes. Polaroid composes TapedPhoto: its --kz-print paper stays pale in both themes, with --kz-print-ink captions and --kz-tape strips instead of a second print material.\",\n ],\n accessibility: {\n keyboard: [{ keys: \"Tab / Shift+Tab\", action: \"Visit each object in ascending z order, preserving input order for ties.\" }],\n notes: [\n \"Wall is a real ul with an explicit list role, preserving Safari semantics despite list-style:none, and focusable li objects; give it an aria-label describing the collection. Textures, tape, pins and screws are hidden from assistive technology.\",\n \"Every word and all photo/logo alternatives come from the host. Standalone objects keep their natural figure/article/div semantics; Wall supplies their focus target.\",\n \"Polaroid only develops after its first observed intersection. With reduced motion, without an observer, or before hydration the photo remains sharp; preference changes stop motion immediately.\",\n \"Neon only flickers softly once, never flashes or loops. All effects stop under prefers-reduced-motion; reading and focus order never depend on visual positions.\",\n ],\n },\n related: [\"taped-photo\", \"cover-hero\", \"media-gallery\", \"photo-grid\", \"profile-card\"],\n web: {\n imports: [\"Wall\", \"Polaroid\", \"PinnedNote\", \"ShopSign\"],\n examples: [\n { name: \"composition\", title: \"The owner's wall\", description: \"A photograph, a signed word and an enamel sign, positioned from deterministic data.\" },\n { name: \"composition-fr\", title: \"The owner's wall in French\", description: \"The same deterministic layout reads its French words and alternatives from the example's local catalogue.\" },\n { name: \"brick\", title: \"Montréal brick\", description: \"Staggered masonry and mortar on a warm token-based surface.\" },\n { name: \"zellige\", title: \"Moroccan zellige\", description: \"A repeating deterministic eight-point SVG star, without an image download.\" },\n { name: \"ridge\", title: \"Grenoble ridges\", description: \"Three layered mountain silhouettes behind the owner's words.\" },\n { name: \"plaster\", title: \"Warm plaster\", description: \"A quiet lightly textured wall when the content should speak first.\" },\n { name: \"polaroid\", title: \"Polaroids\", description: \"A photo slot, handwritten caption, deterministic tilt, and tape or pin.\" },\n { name: \"pinned-note\", title: \"Pinned notes\", description: \"Short signed words on cut-corner paper, held by a pin or tape.\" },\n { name: \"shop-sign\", title: \"Shop signs\", description: \"The owner's mark as enamel with screws, soft neon, or weathered painted lettering.\" },\n ],\n },\n} satisfies ComponentMeta;\n"
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"path": "wall/pinned-note.tsx",
|
|
328
|
+
"content": "import type * as React from \"react\";\n\nimport { cn } from \"../cn\";\nimport { Attachment, rotationStyle, type WallObjectProps } from \"./attachment\";\n\nexport interface PinnedNoteProps extends Omit<React.ComponentProps<\"article\">, \"children\" | \"style\">, WallObjectProps {\n /** The short message; capped at 140 Unicode code points without an ellipsis. */\n text: string;\n /** The optional author's signature, written in the handwriting role. */\n signature?: string;\n}\n\n/** A short word on a cut-corner card. */\nexport function PinnedNote({ text, signature, rotation = 0, attachment, attachmentRotation, className, ...props }: PinnedNoteProps) {\n return (\n <article {...props} className={cn(\"kz-pinned-note kz-wall-object\", className)} style={rotationStyle(rotation)} data-shape=\"cut\">\n <Attachment attachment={attachment} attachmentRotation={attachmentRotation} />\n <div className=\"kz-pinned-note-paper\">\n <p className=\"kz-pinned-note-text\">{Array.from(text).slice(0, 140).join(\"\")}</p>\n {signature && <p className=\"kz-pinned-note-signature\">{signature}</p>}\n </div>\n </article>\n );\n}\n"
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"path": "wall/polaroid.tsx",
|
|
332
|
+
"content": "\"use client\";\n\nimport * as React from \"react\";\n\nimport { cn } from \"../cn\";\nimport { TapedPhoto } from \"../taped-photo\";\nimport { Attachment, finite, type WallObjectProps } from \"./attachment\";\n\nexport interface PolaroidProps extends Omit<React.ComponentProps<\"figure\">, \"children\" | \"style\">, WallObjectProps {\n /** The photo slot: an img or next/image, including fill inside this positioned frame. Supply its alt text. */\n img: React.ReactNode;\n /** A short handwritten caption, using the --kz-font-cahier role. */\n caption?: React.ReactNode;\n /** Enable the first-view develop effect; defaults to true, never runs under reduced motion. */\n develop?: boolean;\n}\n\n/** A photo held to the wall by tape or a pin, with a handwritten caption. */\nexport function Polaroid({ img, caption, rotation = 0, attachment = \"tape\", attachmentRotation = 0, develop = true, className, ...props }: PolaroidProps) {\n const ref = React.useRef<HTMLDivElement>(null);\n const [state, setState] = React.useState<\"waiting\" | \"ready\" | undefined>();\n React.useEffect(() => {\n if (!develop || !ref.current || typeof IntersectionObserver === \"undefined\" || typeof matchMedia === \"undefined\") return;\n const preference = matchMedia(\"(prefers-reduced-motion: reduce)\");\n let seen = false;\n let observer: IntersectionObserver | undefined;\n const sync = () => {\n observer?.disconnect();\n if (preference.matches) {\n seen = true;\n setState(undefined);\n } else if (!seen) {\n setState(\"waiting\");\n observer = new IntersectionObserver((entries) => {\n if (seen || !entries.some((entry) => entry.isIntersecting)) return;\n seen = true;\n setState(\"ready\");\n observer?.disconnect();\n }, { threshold: 0.15 });\n observer.observe(ref.current!);\n }\n };\n sync();\n preference.addEventListener(\"change\", sync);\n return () => { observer?.disconnect(); preference.removeEventListener(\"change\", sync); };\n }, [develop]);\n return (\n <TapedPhoto {...props} className={cn(\"kz-polaroid\", className)} tilt={finite(rotation)} tape={attachment === \"pin\" ? \"none\" : \"top\"} caption={caption}\n style={{ \"--kz-wall-attachment-rotation\": `${finite(attachmentRotation)}deg` } as React.CSSProperties} data-develop={develop ? state : undefined}>\n {attachment === \"pin\" && <Attachment attachment=\"pin\" attachmentRotation={attachmentRotation} />}\n <div ref={ref} className=\"kz-polaroid-photo\">{img}</div>\n </TapedPhoto>\n );\n}\n"
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"path": "wall/shop-sign.tsx",
|
|
336
|
+
"content": "import type * as React from \"react\";\n\nimport { cn } from \"../cn\";\nimport { rotationStyle } from \"./attachment\";\n\nexport interface ShopSignProps extends Omit<React.ComponentProps<\"div\">, \"children\" | \"style\"> {\n /** The owner's logo or wordmark. Name an SVG/image accessibly, or use readable text. */\n logo: React.ReactNode;\n /** Enamel plate and screws, softly glowing neon, or a time-worn painted sign. */\n variant?: \"enamel\" | \"neon\" | \"painted\";\n /** Deterministic tilt in degrees; defaults to zero. */\n rotation?: number;\n /** Allow a single soft neon flicker on mount; defaults to true and respects reduced motion. */\n animated?: boolean;\n}\n\n/** A shop's own mark, as a plate, a neon, or a painted sign. */\nexport function ShopSign({ logo, variant = \"enamel\", rotation = 0, animated = true, className, ...props }: ShopSignProps) {\n return (\n <div {...props} className={cn(\"kz-shop-sign kz-wall-object\", className)} style={rotationStyle(rotation)} data-variant={variant} data-animated={animated ? \"\" : undefined}>\n {variant === \"enamel\" && [0, 1, 2, 3].map((corner) => <span key={corner} aria-hidden=\"true\" className=\"kz-shop-sign-screw\" data-corner={corner} />)}\n <div className=\"kz-shop-sign-logo\">{logo}</div>\n </div>\n );\n}\n"
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"path": "wall/wall.tsx",
|
|
340
|
+
"content": "\"use client\";\n\nimport * as React from \"react\";\n\nimport { cn } from \"../cn\";\nimport { finite } from \"./attachment\";\nimport { PinnedNote, type PinnedNoteProps } from \"./pinned-note\";\nimport { Polaroid, type PolaroidProps } from \"./polaroid\";\nimport { ShopSign, type ShopSignProps } from \"./shop-sign\";\n\nexport interface WallPosition {\n /** Stable identity for this object. */\n id: string;\n /** Horizontal placement as a percentage (0–100); clamped to the wall. */\n x: number;\n /** Vertical placement as a percentage (0–100); clamped to the wall. */\n y: number;\n /** Tilt in degrees; defaults to zero. */\n rotation?: number;\n /** Stacking and reading order, ascending; ties preserve input order. */\n z: number;\n}\n\n/** The item's kind chooses its component; its remaining fields are that component's props. */\nexport type WallItem = WallPosition & (\n | ({ /** A framed photo. */ kind: \"polaroid\" } & PolaroidProps)\n | ({ /** A short pinned message. */ kind: \"note\" } & PinnedNoteProps)\n | ({ /** The owner's sign. */ kind: \"sign\" } & ShopSignProps)\n);\n\nexport interface WallProps extends Omit<React.ComponentProps<\"ul\">, \"children\" | \"style\" | \"role\"> {\n /** The read-only objects; never mutated. Sorted by z for reading, keyboard and phone order. */\n items: readonly WallItem[];\n /** CSS/SVG texture; no image download. Defaults to plaster. */\n texture?: \"brick\" | \"zellige\" | \"ridge\" | \"plaster\";\n /** Desktop surface height in pixels (minimum 320); defaults to 560. Phones grow with content. */\n height?: number;\n /** Desktop object width in pixels (minimum 120); defaults to 240 and never exceeds the surface. */\n itemWidth?: number;\n}\n\n/** A decorative textured surface over a real keyboard-reachable list; never an editor. */\nexport function Wall({ items, texture = \"plaster\", height = 560, itemWidth = 240, className, ...props }: WallProps) {\n const patternId = React.useId().replace(/:/g, \"\");\n return (\n <ul {...props} role=\"list\" className={cn(\"kz-wall\", className)} data-texture={texture} style={{ \"--kz-wall-height\": `${Math.max(320, finite(height))}px`, \"--kz-wall-item-width\": `${Math.max(120, finite(itemWidth))}px` } as React.CSSProperties}>\n {[...items].sort((a, b) => finite(a.z) - finite(b.z)).map(({ id, x, y, rotation = 0, z: _z, ...item }, rank) => (\n <li key={id} className=\"kz-wall-item\" tabIndex={0} style={{\n \"--kz-wall-x\": `${Math.min(100, Math.max(0, finite(x)))}%`,\n \"--kz-wall-y\": `${Math.min(100, Math.max(0, finite(y)))}%`,\n \"--kz-wall-rotation\": `${finite(rotation)}deg`,\n zIndex: rank,\n } as React.CSSProperties}>\n {item.kind === \"polaroid\" ? <Polaroid {...item} rotation={0} /> : item.kind === \"note\" ? <PinnedNote {...item} rotation={0} /> : <ShopSign {...item} rotation={0} />}\n </li>\n ))}\n {texture === \"brick\" && <li className=\"kz-wall-decoration\" aria-hidden=\"true\" role=\"presentation\"><svg width=\"100%\" height=\"100%\" aria-hidden=\"true\">\n <defs><pattern id={patternId} width=\"96\" height=\"48\" patternUnits=\"userSpaceOnUse\">\n <path d=\"M0 0H96M0 24H96M0 48H96M48 0V24M0 24V48M96 24V48\" fill=\"none\" stroke=\"var(--kz-border-default)\" strokeWidth=\"2\" />\n </pattern></defs><rect width=\"100%\" height=\"100%\" fill={`url(#${patternId})`} />\n </svg></li>}\n {texture === \"zellige\" && <li className=\"kz-wall-decoration\" aria-hidden=\"true\" role=\"presentation\"><svg width=\"100%\" height=\"100%\" aria-hidden=\"true\">\n <defs><pattern id={patternId} width=\"64\" height=\"64\" patternUnits=\"userSpaceOnUse\">\n <path d=\"M32 3 39 15 52 12 49 25 61 32 49 39 52 52 39 49 32 61 25 49 12 52 15 39 3 32 15 25 12 12 25 15Z\" fill=\"var(--kz-accent-soft)\" stroke=\"var(--kz-border-default)\" />\n <path d=\"m32 18 14 14-14 14-14-14Z\" fill=\"var(--kz-surface-2)\" stroke=\"var(--kz-accent-2)\" />\n </pattern></defs><rect width=\"100%\" height=\"100%\" fill={`url(#${patternId})`} />\n </svg></li>}\n {texture === \"ridge\" && <li className=\"kz-wall-decoration\" aria-hidden=\"true\" role=\"presentation\"><svg viewBox=\"0 0 1000 600\" preserveAspectRatio=\"none\" width=\"100%\" height=\"100%\" aria-hidden=\"true\">\n <path d=\"M0 380 170 100 290 300 450 70 620 330 790 120 1000 350V600H0Z\" fill=\"var(--kz-accent-soft)\" />\n <path d=\"M0 470 200 280 370 440 600 190 760 400 920 260 1000 390V600H0Z\" fill=\"var(--kz-surface-2)\" />\n <path d=\"M0 540 180 430 360 520 540 390 760 520 900 410 1000 480V600H0Z\" fill=\"var(--kz-surface-3)\" />\n </svg></li>}\n </ul>\n );\n}\n"
|
|
341
|
+
}
|
|
342
|
+
],
|
|
343
|
+
"dependencies": [],
|
|
344
|
+
"registryDependencies": [
|
|
345
|
+
"cn",
|
|
346
|
+
"taped-photo"
|
|
347
|
+
],
|
|
348
|
+
"demo": {
|
|
349
|
+
"path": "examples/wall/composition.tsx",
|
|
350
|
+
"content": "import { Wall, type WallItem } from \"@krizaka/ui/wall\";\n\nconst m = {\n photoAlt: \"The mountain above our workshop\", caption: \"The view from here\",\n note: \"Made slowly. Shared gladly.\", signature: \"Sam\",\n sign: \"Neighbourhood workshop\", wallLabel: \"From our workshop\",\n};\nconst items: WallItem[] = [\n { id: \"photo\", kind: \"polaroid\", x: 8, y: 18, rotation: -4, z: 1,\n img: <svg role=\"img\" aria-label={m.photoAlt} viewBox=\"0 0 240 240\"><rect width=\"240\" height=\"240\" fill=\"var(--kz-accent-soft)\" /><path d=\"m0 240 100-190 55 110 35-45 50 125Z\" fill=\"var(--kz-accent)\" /></svg>,\n caption: m.caption, attachment: \"tape\", attachmentRotation: 6 },\n { id: \"word\", kind: \"note\", x: 52, y: 75, rotation: 3, z: 2, text: m.note, signature: m.signature, attachment: \"pin\" },\n { id: \"sign\", kind: \"sign\", x: 94, y: 22, rotation: -2, z: 3, logo: m.sign, variant: \"enamel\" },\n];\n\nexport default function CompositionExample() {\n return <Wall aria-label={m.wallLabel} texture=\"brick\" items={items} height={520} itemWidth={220} />;\n}\n"
|
|
351
|
+
},
|
|
352
|
+
"props": [
|
|
353
|
+
{
|
|
354
|
+
"component": "PinnedNote",
|
|
355
|
+
"description": "A short word on a cut-corner card.",
|
|
356
|
+
"props": [
|
|
357
|
+
{
|
|
358
|
+
"name": "text",
|
|
359
|
+
"type": "string",
|
|
360
|
+
"default": null,
|
|
361
|
+
"description": "The short message; capped at 140 Unicode code points without an ellipsis.",
|
|
362
|
+
"required": true
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"name": "attachment",
|
|
366
|
+
"type": "\"pin\" | \"tape\"",
|
|
367
|
+
"default": null,
|
|
368
|
+
"description": "A tape strip or a pin; defaults to tape.",
|
|
369
|
+
"required": false
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"name": "attachmentRotation",
|
|
373
|
+
"type": "number",
|
|
374
|
+
"default": null,
|
|
375
|
+
"description": "The tape or pin's tilt in degrees; defaults to zero.",
|
|
376
|
+
"required": false
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"name": "rotation",
|
|
380
|
+
"type": "number",
|
|
381
|
+
"default": "0",
|
|
382
|
+
"description": "Tilt in degrees, deterministic; defaults to zero.",
|
|
383
|
+
"required": false
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
"name": "signature",
|
|
387
|
+
"type": "string",
|
|
388
|
+
"default": null,
|
|
389
|
+
"description": "The optional author's signature, written in the handwriting role.",
|
|
390
|
+
"required": false
|
|
391
|
+
}
|
|
392
|
+
]
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"component": "Polaroid",
|
|
396
|
+
"description": "A photo held to the wall by tape or a pin, with a handwritten caption.",
|
|
397
|
+
"props": [
|
|
398
|
+
{
|
|
399
|
+
"name": "img",
|
|
400
|
+
"type": "ReactNode",
|
|
401
|
+
"default": null,
|
|
402
|
+
"description": "The photo slot: an img or next/image, including fill inside this positioned frame. Supply its alt text.",
|
|
403
|
+
"required": true
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"name": "attachment",
|
|
407
|
+
"type": "\"pin\" | \"tape\"",
|
|
408
|
+
"default": "tape",
|
|
409
|
+
"description": "A tape strip or a pin; defaults to tape.",
|
|
410
|
+
"required": false
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
"name": "attachmentRotation",
|
|
414
|
+
"type": "number",
|
|
415
|
+
"default": "0",
|
|
416
|
+
"description": "The tape or pin's tilt in degrees; defaults to zero.",
|
|
417
|
+
"required": false
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"name": "caption",
|
|
421
|
+
"type": "ReactNode",
|
|
422
|
+
"default": null,
|
|
423
|
+
"description": "A short handwritten caption, using the --kz-font-cahier role.",
|
|
424
|
+
"required": false
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
"name": "develop",
|
|
428
|
+
"type": "boolean",
|
|
429
|
+
"default": "true",
|
|
430
|
+
"description": "Enable the first-view develop effect; defaults to true, never runs under reduced motion.",
|
|
431
|
+
"required": false
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
"name": "rotation",
|
|
435
|
+
"type": "number",
|
|
436
|
+
"default": "0",
|
|
437
|
+
"description": "Tilt in degrees, deterministic; defaults to zero.",
|
|
438
|
+
"required": false
|
|
439
|
+
}
|
|
440
|
+
]
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"component": "ShopSign",
|
|
444
|
+
"description": "A shop's own mark, as a plate, a neon, or a painted sign.",
|
|
445
|
+
"props": [
|
|
446
|
+
{
|
|
447
|
+
"name": "logo",
|
|
448
|
+
"type": "ReactNode",
|
|
449
|
+
"default": null,
|
|
450
|
+
"description": "The owner's logo or wordmark. Name an SVG/image accessibly, or use readable text.",
|
|
451
|
+
"required": true
|
|
452
|
+
},
|
|
453
|
+
{
|
|
454
|
+
"name": "animated",
|
|
455
|
+
"type": "boolean",
|
|
456
|
+
"default": "true",
|
|
457
|
+
"description": "Allow a single soft neon flicker on mount; defaults to true and respects reduced motion.",
|
|
458
|
+
"required": false
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
"name": "rotation",
|
|
462
|
+
"type": "number",
|
|
463
|
+
"default": "0",
|
|
464
|
+
"description": "Deterministic tilt in degrees; defaults to zero.",
|
|
465
|
+
"required": false
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
"name": "variant",
|
|
469
|
+
"type": "\"enamel\" | \"neon\" | \"painted\"",
|
|
470
|
+
"default": "enamel",
|
|
471
|
+
"description": "Enamel plate and screws, softly glowing neon, or a time-worn painted sign.",
|
|
472
|
+
"required": false
|
|
473
|
+
}
|
|
474
|
+
]
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
"component": "Wall",
|
|
478
|
+
"description": "A decorative textured surface over a real keyboard-reachable list; never an editor.",
|
|
479
|
+
"props": [
|
|
480
|
+
{
|
|
481
|
+
"name": "items",
|
|
482
|
+
"type": "readonly WallItem[]",
|
|
483
|
+
"default": null,
|
|
484
|
+
"description": "The read-only objects; never mutated. Sorted by z for reading, keyboard and phone order.",
|
|
485
|
+
"required": true
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
"name": "height",
|
|
489
|
+
"type": "number",
|
|
490
|
+
"default": "560",
|
|
491
|
+
"description": "Desktop surface height in pixels (minimum 320); defaults to 560. Phones grow with content.",
|
|
492
|
+
"required": false
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
"name": "itemWidth",
|
|
496
|
+
"type": "number",
|
|
497
|
+
"default": "240",
|
|
498
|
+
"description": "Desktop object width in pixels (minimum 120); defaults to 240 and never exceeds the surface.",
|
|
499
|
+
"required": false
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
"name": "texture",
|
|
503
|
+
"type": "\"brick\" | \"zellige\" | \"ridge\" | \"plaster\"",
|
|
504
|
+
"default": "plaster",
|
|
505
|
+
"description": "CSS/SVG texture; no image download. Defaults to plaster.",
|
|
506
|
+
"required": false
|
|
507
|
+
}
|
|
508
|
+
]
|
|
509
|
+
}
|
|
510
|
+
]
|
|
511
|
+
}
|