@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
package/dist/update-prompt.d.ts
CHANGED
|
@@ -5,24 +5,24 @@ import * as React from 'react';
|
|
|
5
5
|
declare const updatePrompt: tailwind_variants.TVReturnType<{
|
|
6
6
|
[key: string]: {
|
|
7
7
|
[key: string]: tailwind_variants.ClassValue | {
|
|
8
|
+
root?: tailwind_variants.ClassValue;
|
|
8
9
|
mark?: tailwind_variants.ClassValue;
|
|
9
|
-
title?: tailwind_variants.ClassValue;
|
|
10
|
-
version?: tailwind_variants.ClassValue;
|
|
11
10
|
content?: tailwind_variants.ClassValue;
|
|
12
|
-
|
|
11
|
+
title?: tailwind_variants.ClassValue;
|
|
13
12
|
message?: tailwind_variants.ClassValue;
|
|
13
|
+
version?: tailwind_variants.ClassValue;
|
|
14
14
|
actions?: tailwind_variants.ClassValue;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
17
|
} | {
|
|
18
18
|
[x: string]: {
|
|
19
19
|
[x: string]: tailwind_variants.ClassValue | {
|
|
20
|
+
root?: tailwind_variants.ClassValue;
|
|
20
21
|
mark?: tailwind_variants.ClassValue;
|
|
21
|
-
title?: tailwind_variants.ClassValue;
|
|
22
|
-
version?: tailwind_variants.ClassValue;
|
|
23
22
|
content?: tailwind_variants.ClassValue;
|
|
24
|
-
|
|
23
|
+
title?: tailwind_variants.ClassValue;
|
|
25
24
|
message?: tailwind_variants.ClassValue;
|
|
25
|
+
version?: tailwind_variants.ClassValue;
|
|
26
26
|
actions?: tailwind_variants.ClassValue;
|
|
27
27
|
};
|
|
28
28
|
};
|
|
@@ -37,12 +37,12 @@ declare const updatePrompt: tailwind_variants.TVReturnType<{
|
|
|
37
37
|
}, undefined, {
|
|
38
38
|
[key: string]: {
|
|
39
39
|
[key: string]: tailwind_variants.ClassValue | {
|
|
40
|
+
root?: tailwind_variants.ClassValue;
|
|
40
41
|
mark?: tailwind_variants.ClassValue;
|
|
41
|
-
title?: tailwind_variants.ClassValue;
|
|
42
|
-
version?: tailwind_variants.ClassValue;
|
|
43
42
|
content?: tailwind_variants.ClassValue;
|
|
44
|
-
|
|
43
|
+
title?: tailwind_variants.ClassValue;
|
|
45
44
|
message?: tailwind_variants.ClassValue;
|
|
45
|
+
version?: tailwind_variants.ClassValue;
|
|
46
46
|
actions?: tailwind_variants.ClassValue;
|
|
47
47
|
};
|
|
48
48
|
};
|
|
@@ -87,4 +87,5 @@ type UpdatePromptProps = Omit<React.ComponentProps<"section">, "title"> & {
|
|
|
87
87
|
*/
|
|
88
88
|
declare function UpdatePrompt({ title, message, versionLabel, mark, updateLabel, onUpdate, laterLabel, onLater, className, ...props }: UpdatePromptProps): React.JSX.Element;
|
|
89
89
|
|
|
90
|
-
export { UpdatePrompt,
|
|
90
|
+
export { UpdatePrompt, updatePrompt };
|
|
91
|
+
export type { UpdatePromptProps };
|
package/dist/upload-queue.d.ts
CHANGED
|
@@ -64,4 +64,5 @@ type TaskTrayProps = Omit<React.ComponentProps<"section">, "title"> & {
|
|
|
64
64
|
/** A non-blocking tray for a queue: the user keeps browsing. Bottom edge on a phone, bottom-right from `sm`. */
|
|
65
65
|
declare function TaskTray({ title, summary, toggleLabel, openLabel, defaultOpen, className, children, ...props }: TaskTrayProps): React.JSX.Element;
|
|
66
66
|
|
|
67
|
-
export { QueueStatus,
|
|
67
|
+
export { QueueStatus, TaskTray, UploadQueue, isWorking, progressOf, tally };
|
|
68
|
+
export type { QueueTally, TaskTrayProps, UploadQueueItem, UploadQueueProps };
|
package/dist/verified-badge.d.ts
CHANGED
|
@@ -13,4 +13,5 @@ type VerifiedBadgeProps = Omit<React.ComponentProps<"span">, "children"> & {
|
|
|
13
13
|
/** A seal that says the person or the account was verified (a selfie check, an ID), named in words. */
|
|
14
14
|
declare function VerifiedBadge({ label, showLabel, size, onMedia, className, ...props }: VerifiedBadgeProps): React.JSX.Element;
|
|
15
15
|
|
|
16
|
-
export { VerifiedBadge
|
|
16
|
+
export { VerifiedBadge };
|
|
17
|
+
export type { VerifiedBadgeProps };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { MascotBird } from './mascot-quote.js';
|
|
3
|
+
|
|
4
|
+
interface FighterStat {
|
|
5
|
+
/** What is measured (`Bundle size`, `Coverage`). */
|
|
6
|
+
label: string;
|
|
7
|
+
/** The measured value, from 0 to `max`. Real data: a stat that is not a finite number is left out. */
|
|
8
|
+
value: number;
|
|
9
|
+
/** The top of the bar. @default 100 */
|
|
10
|
+
max?: number;
|
|
11
|
+
/** The value as the reader reads it (`4.1 kB`, `92 %`); `value` when omitted. */
|
|
12
|
+
display?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
interface Fighter {
|
|
15
|
+
/** The subject's name (`@krizaka/ui 2.7`, `Radix Dialog`). */
|
|
16
|
+
name: React.ReactNode;
|
|
17
|
+
/** The bird that fights for it. */
|
|
18
|
+
bird: MascotBird;
|
|
19
|
+
/** One line under the name. */
|
|
20
|
+
caption?: React.ReactNode;
|
|
21
|
+
/** Its stat bars, from real data. */
|
|
22
|
+
stats: readonly FighterStat[];
|
|
23
|
+
}
|
|
24
|
+
type VersusCardProps = Omit<React.HTMLAttributes<HTMLElement>, "title"> & {
|
|
25
|
+
/** The accessible name of the match: `Krizaka UI 2.7 versus 2.6`. */
|
|
26
|
+
label: string;
|
|
27
|
+
/** The subject on the left. */
|
|
28
|
+
left: Fighter;
|
|
29
|
+
/** The subject on the right (its bird faces left). */
|
|
30
|
+
right: Fighter;
|
|
31
|
+
/** The mark between them. @default "VS" */
|
|
32
|
+
vs?: React.ReactNode;
|
|
33
|
+
/** Where the figures come from, under the card. */
|
|
34
|
+
source?: React.ReactNode;
|
|
35
|
+
};
|
|
36
|
+
/** An arcade versus card: two subjects face to face, a bird each, stat bars from real data, a « VS » between them. */
|
|
37
|
+
declare function VersusCard({ label, left, right, vs, source, className, ...props }: VersusCardProps): React.JSX.Element;
|
|
38
|
+
|
|
39
|
+
export { VersusCard };
|
|
40
|
+
export type { Fighter, FighterStat, VersusCardProps };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
Mascot
|
|
4
|
+
} from "./chunk-MHUUNC5W.js";
|
|
5
|
+
import {
|
|
6
|
+
cn
|
|
7
|
+
} from "./chunk-WU4VLSEA.js";
|
|
8
|
+
|
|
9
|
+
// src/versus-card/versus-card.tsx
|
|
10
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
function FighterPane({ fighter, side }) {
|
|
12
|
+
const stats = fighter.stats.filter((s) => Number.isFinite(s.value) && Number.isFinite(s.max ?? 100) && (s.max ?? 100) > 0);
|
|
13
|
+
return /* @__PURE__ */ jsxs("div", { className: "kz-versus-fighter", "data-side": side, children: [
|
|
14
|
+
/* @__PURE__ */ jsx("div", { className: "kz-versus-bird", "aria-hidden": "true", children: /* @__PURE__ */ jsx(Mascot, { bird: fighter.bird, tone: "own", size: 104, animated: false }) }),
|
|
15
|
+
/* @__PURE__ */ jsx("p", { className: "kz-versus-name", children: fighter.name }),
|
|
16
|
+
fighter.caption && /* @__PURE__ */ jsx("p", { className: "kz-versus-caption", children: fighter.caption }),
|
|
17
|
+
/* @__PURE__ */ jsx("dl", { className: "kz-versus-stats", children: stats.map((s) => {
|
|
18
|
+
const fill = Math.min(100, Math.max(0, s.value / (s.max ?? 100) * 100));
|
|
19
|
+
return /* @__PURE__ */ jsxs("div", { className: "kz-versus-stat", children: [
|
|
20
|
+
/* @__PURE__ */ jsx("dt", { children: s.label }),
|
|
21
|
+
/* @__PURE__ */ jsxs("dd", { children: [
|
|
22
|
+
/* @__PURE__ */ jsx("span", { className: "kz-versus-value", children: s.display ?? s.value }),
|
|
23
|
+
/* @__PURE__ */ jsx("span", { className: "kz-versus-bar", "aria-hidden": "true", style: { ["--kz-versus-fill"]: `${Math.round(fill * 10) / 10}%` } })
|
|
24
|
+
] })
|
|
25
|
+
] }, s.label);
|
|
26
|
+
}) })
|
|
27
|
+
] });
|
|
28
|
+
}
|
|
29
|
+
function VersusCard({ label, left, right, vs = "VS", source, className, ...props }) {
|
|
30
|
+
return /* @__PURE__ */ jsxs("section", { className: cn("kz-versus", className), "aria-label": label, ...props, children: [
|
|
31
|
+
/* @__PURE__ */ jsx(FighterPane, { fighter: left, side: "left" }),
|
|
32
|
+
/* @__PURE__ */ jsx("span", { className: "kz-versus-mark", children: vs }),
|
|
33
|
+
/* @__PURE__ */ jsx(FighterPane, { fighter: right, side: "right" }),
|
|
34
|
+
source && /* @__PURE__ */ jsx("p", { className: "kz-versus-source", children: source })
|
|
35
|
+
] });
|
|
36
|
+
}
|
|
37
|
+
export {
|
|
38
|
+
VersusCard
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=versus-card.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/versus-card/versus-card.tsx"],"sourcesContent":["// Client (the birds hold an id). The arcade « character select » card of the Krizaka style (blocks.css): two subjects face to\n// face — a component and its alternative, two releases — each a bird as the fighter, with stat bars, and a « VS » mark between\n// them. Every bar is a real figure passed in by the host (`value` of `max`, and its text), read as a definition list: the bars\n// repeat the numbers, they never replace them. No winner is computed: the reader compares.\nimport type * as React from \"react\";\n\nimport { cn } from \"../cn\";\nimport type { MascotBird } from \"../mascots/geometry\";\nimport { Mascot } from \"../mascots/mascot\";\n\nexport interface FighterStat {\n /** What is measured (`Bundle size`, `Coverage`). */\n label: string;\n /** The measured value, from 0 to `max`. Real data: a stat that is not a finite number is left out. */\n value: number;\n /** The top of the bar. @default 100 */\n max?: number;\n /** The value as the reader reads it (`4.1 kB`, `92 %`); `value` when omitted. */\n display?: React.ReactNode;\n}\n\nexport interface Fighter {\n /** The subject's name (`@krizaka/ui 2.7`, `Radix Dialog`). */\n name: React.ReactNode;\n /** The bird that fights for it. */\n bird: MascotBird;\n /** One line under the name. */\n caption?: React.ReactNode;\n /** Its stat bars, from real data. */\n stats: readonly FighterStat[];\n}\n\nexport type VersusCardProps = Omit<React.HTMLAttributes<HTMLElement>, \"title\"> & {\n /** The accessible name of the match: `Krizaka UI 2.7 versus 2.6`. */\n label: string;\n /** The subject on the left. */\n left: Fighter;\n /** The subject on the right (its bird faces left). */\n right: Fighter;\n /** The mark between them. @default \"VS\" */\n vs?: React.ReactNode;\n /** Where the figures come from, under the card. */\n source?: React.ReactNode;\n};\n\nfunction FighterPane({ fighter, side }: { fighter: Fighter; side: \"left\" | \"right\" }) {\n const stats = fighter.stats.filter((s) => Number.isFinite(s.value) && Number.isFinite(s.max ?? 100) && (s.max ?? 100) > 0);\n return (\n <div className=\"kz-versus-fighter\" data-side={side}>\n <div className=\"kz-versus-bird\" aria-hidden=\"true\">\n <Mascot bird={fighter.bird} tone=\"own\" size={104} animated={false} />\n </div>\n <p className=\"kz-versus-name\">{fighter.name}</p>\n {fighter.caption && <p className=\"kz-versus-caption\">{fighter.caption}</p>}\n <dl className=\"kz-versus-stats\">\n {stats.map((s) => {\n const fill = Math.min(100, Math.max(0, (s.value / (s.max ?? 100)) * 100));\n return (\n <div key={s.label} className=\"kz-versus-stat\">\n <dt>{s.label}</dt>\n <dd>\n <span className=\"kz-versus-value\">{s.display ?? s.value}</span>\n <span className=\"kz-versus-bar\" aria-hidden=\"true\" style={{ [\"--kz-versus-fill\" as string]: `${Math.round(fill * 10) / 10}%` }} />\n </dd>\n </div>\n );\n })}\n </dl>\n </div>\n );\n}\n\n/** An arcade versus card: two subjects face to face, a bird each, stat bars from real data, a « VS » between them. */\nexport function VersusCard({ label, left, right, vs = \"VS\", source, className, ...props }: VersusCardProps) {\n return (\n <section className={cn(\"kz-versus\", className)} aria-label={label} {...props}>\n <FighterPane fighter={left} side=\"left\" />\n <span className=\"kz-versus-mark\">{vs}</span>\n <FighterPane fighter={right} side=\"right\" />\n {source && <p className=\"kz-versus-source\">{source}</p>}\n </section>\n );\n}\n"],"mappings":";;;;;;;;;AAkDQ,cAUM,YAVN;AALR,SAAS,YAAY,EAAE,SAAS,KAAK,GAAiD;AACpF,QAAM,QAAQ,QAAQ,MAAM,OAAO,CAAC,MAAM,OAAO,SAAS,EAAE,KAAK,KAAK,OAAO,SAAS,EAAE,OAAO,GAAG,MAAM,EAAE,OAAO,OAAO,CAAC;AACzH,SACE,qBAAC,SAAI,WAAU,qBAAoB,aAAW,MAC5C;AAAA,wBAAC,SAAI,WAAU,kBAAiB,eAAY,QAC1C,8BAAC,UAAO,MAAM,QAAQ,MAAM,MAAK,OAAM,MAAM,KAAK,UAAU,OAAO,GACrE;AAAA,IACA,oBAAC,OAAE,WAAU,kBAAkB,kBAAQ,MAAK;AAAA,IAC3C,QAAQ,WAAW,oBAAC,OAAE,WAAU,qBAAqB,kBAAQ,SAAQ;AAAA,IACtE,oBAAC,QAAG,WAAU,mBACX,gBAAM,IAAI,CAAC,MAAM;AAChB,YAAM,OAAO,KAAK,IAAI,KAAK,KAAK,IAAI,GAAI,EAAE,SAAS,EAAE,OAAO,OAAQ,GAAG,CAAC;AACxE,aACE,qBAAC,SAAkB,WAAU,kBAC3B;AAAA,4BAAC,QAAI,YAAE,OAAM;AAAA,QACb,qBAAC,QACC;AAAA,8BAAC,UAAK,WAAU,mBAAmB,YAAE,WAAW,EAAE,OAAM;AAAA,UACxD,oBAAC,UAAK,WAAU,iBAAgB,eAAY,QAAO,OAAO,EAAE,CAAC,kBAA4B,GAAG,GAAG,KAAK,MAAM,OAAO,EAAE,IAAI,EAAE,IAAI,GAAG;AAAA,WAClI;AAAA,WALQ,EAAE,KAMZ;AAAA,IAEJ,CAAC,GACH;AAAA,KACF;AAEJ;AAGO,SAAS,WAAW,EAAE,OAAO,MAAM,OAAO,KAAK,MAAM,QAAQ,WAAW,GAAG,MAAM,GAAoB;AAC1G,SACE,qBAAC,aAAQ,WAAW,GAAG,aAAa,SAAS,GAAG,cAAY,OAAQ,GAAG,OACrE;AAAA,wBAAC,eAAY,SAAS,MAAM,MAAK,QAAO;AAAA,IACxC,oBAAC,UAAK,WAAU,kBAAkB,cAAG;AAAA,IACrC,oBAAC,eAAY,SAAS,OAAO,MAAK,SAAQ;AAAA,IACzC,UAAU,oBAAC,OAAE,WAAU,oBAAoB,kBAAO;AAAA,KACrD;AAEJ;","names":[]}
|
package/dist/vertical-video.d.ts
CHANGED
|
@@ -119,4 +119,5 @@ interface VerticalVideoProps extends Omit<React.ComponentProps<"article">, "titl
|
|
|
119
119
|
/** One short video: 9:16, the rail of actions on the right, the creator's caption bottom-left, a progress hairline. */
|
|
120
120
|
declare function VerticalVideo({ title, src, poster, active, preload, loop, muted, creator, disclosure, caption, tags, credit, likes, comments, shares, liked, following, onLike, onComment, onShare, onFollow, onMore, tipSlot, topStart, aboveCaption, fit, locale, labels: custom, className, onKeyDown, ...props }: VerticalVideoProps): React.JSX.Element;
|
|
121
121
|
|
|
122
|
-
export { ShortFeed,
|
|
122
|
+
export { ShortFeed, VerticalVideo, verticalVideoLabels };
|
|
123
|
+
export type { ShortFeedProps, VerticalVideoCreator, VerticalVideoLabels, VerticalVideoProps };
|
package/dist/video-player.d.ts
CHANGED
|
@@ -4,35 +4,35 @@ import * as React from 'react';
|
|
|
4
4
|
declare const videoPlayer: tailwind_variants.TVReturnType<{
|
|
5
5
|
[key: string]: {
|
|
6
6
|
[key: string]: tailwind_variants.ClassValue | {
|
|
7
|
-
big?: tailwind_variants.ClassValue;
|
|
8
|
-
root?: tailwind_variants.ClassValue;
|
|
9
|
-
button?: tailwind_variants.ClassValue;
|
|
10
|
-
time?: tailwind_variants.ClassValue;
|
|
11
7
|
video?: tailwind_variants.ClassValue;
|
|
12
|
-
row?: tailwind_variants.ClassValue;
|
|
13
|
-
status?: tailwind_variants.ClassValue;
|
|
14
8
|
poster?: tailwind_variants.ClassValue;
|
|
9
|
+
row?: tailwind_variants.ClassValue;
|
|
10
|
+
time?: tailwind_variants.ClassValue;
|
|
15
11
|
volume?: tailwind_variants.ClassValue;
|
|
12
|
+
status?: tailwind_variants.ClassValue;
|
|
16
13
|
spinner?: tailwind_variants.ClassValue;
|
|
17
14
|
overlay?: tailwind_variants.ClassValue;
|
|
15
|
+
root?: tailwind_variants.ClassValue;
|
|
16
|
+
big?: tailwind_variants.ClassValue;
|
|
18
17
|
bar?: tailwind_variants.ClassValue;
|
|
18
|
+
button?: tailwind_variants.ClassValue;
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
21
|
} | {
|
|
22
22
|
[x: string]: {
|
|
23
23
|
[x: string]: tailwind_variants.ClassValue | {
|
|
24
|
-
big?: tailwind_variants.ClassValue;
|
|
25
|
-
root?: tailwind_variants.ClassValue;
|
|
26
|
-
button?: tailwind_variants.ClassValue;
|
|
27
|
-
time?: tailwind_variants.ClassValue;
|
|
28
24
|
video?: tailwind_variants.ClassValue;
|
|
29
|
-
row?: tailwind_variants.ClassValue;
|
|
30
|
-
status?: tailwind_variants.ClassValue;
|
|
31
25
|
poster?: tailwind_variants.ClassValue;
|
|
26
|
+
row?: tailwind_variants.ClassValue;
|
|
27
|
+
time?: tailwind_variants.ClassValue;
|
|
32
28
|
volume?: tailwind_variants.ClassValue;
|
|
29
|
+
status?: tailwind_variants.ClassValue;
|
|
33
30
|
spinner?: tailwind_variants.ClassValue;
|
|
34
31
|
overlay?: tailwind_variants.ClassValue;
|
|
32
|
+
root?: tailwind_variants.ClassValue;
|
|
33
|
+
big?: tailwind_variants.ClassValue;
|
|
35
34
|
bar?: tailwind_variants.ClassValue;
|
|
35
|
+
button?: tailwind_variants.ClassValue;
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
38
|
} | {}, {
|
|
@@ -51,18 +51,18 @@ declare const videoPlayer: tailwind_variants.TVReturnType<{
|
|
|
51
51
|
}, undefined, {
|
|
52
52
|
[key: string]: {
|
|
53
53
|
[key: string]: tailwind_variants.ClassValue | {
|
|
54
|
-
big?: tailwind_variants.ClassValue;
|
|
55
|
-
root?: tailwind_variants.ClassValue;
|
|
56
|
-
button?: tailwind_variants.ClassValue;
|
|
57
|
-
time?: tailwind_variants.ClassValue;
|
|
58
54
|
video?: tailwind_variants.ClassValue;
|
|
59
|
-
row?: tailwind_variants.ClassValue;
|
|
60
|
-
status?: tailwind_variants.ClassValue;
|
|
61
55
|
poster?: tailwind_variants.ClassValue;
|
|
56
|
+
row?: tailwind_variants.ClassValue;
|
|
57
|
+
time?: tailwind_variants.ClassValue;
|
|
62
58
|
volume?: tailwind_variants.ClassValue;
|
|
59
|
+
status?: tailwind_variants.ClassValue;
|
|
63
60
|
spinner?: tailwind_variants.ClassValue;
|
|
64
61
|
overlay?: tailwind_variants.ClassValue;
|
|
62
|
+
root?: tailwind_variants.ClassValue;
|
|
63
|
+
big?: tailwind_variants.ClassValue;
|
|
65
64
|
bar?: tailwind_variants.ClassValue;
|
|
65
|
+
button?: tailwind_variants.ClassValue;
|
|
66
66
|
};
|
|
67
67
|
};
|
|
68
68
|
} | {}, {
|
|
@@ -201,4 +201,5 @@ type VideoPlayerProps = {
|
|
|
201
201
|
/** A video player with accessible controls, HLS on demand, signed sources, subtitles, speed, full screen. */
|
|
202
202
|
declare function VideoPlayer({ src, type, loadHls, title, poster, autoPlay, muted: initiallyMuted, loop, preload, tracks, playbackRates, pauseWhenHidden, controls, overlay, aspectRatio, onPlay, onPause, onEnded, onTimeUpdate, onError, labels: given, className, }: VideoPlayerProps): React.JSX.Element;
|
|
203
203
|
|
|
204
|
-
export {
|
|
204
|
+
export { VideoPlayer, videoPlayer, videoPlayerLabels };
|
|
205
|
+
export type { HlsModule, VideoPlayerLabels, VideoPlayerProps, VideoTrack };
|
package/dist/video-trimmer.d.ts
CHANGED
|
@@ -144,4 +144,5 @@ type VideoTrimmerProps = {
|
|
|
144
144
|
*/
|
|
145
145
|
declare function VideoTrimmer({ duration, value: valueProp, defaultValue, onValueChange, onValueCommit, time, onSeek, minLength, step, largeStep, frames, children, formatTime, showHeader, disabled, classNames, renderHandle, labels: given, }: VideoTrimmerProps): React.JSX.Element;
|
|
146
146
|
|
|
147
|
-
export { VideoTrimmer,
|
|
147
|
+
export { VideoTrimmer, videoTrimmer, videoTrimmerLabels };
|
|
148
|
+
export type { VideoTrimmerLabels, VideoTrimmerProps };
|
package/dist/virtual.d.ts
CHANGED
|
@@ -7,9 +7,9 @@ declare const virtual: tailwind_variants.TVReturnType<{
|
|
|
7
7
|
[key: string]: {
|
|
8
8
|
[key: string]: tailwind_variants.ClassValue | {
|
|
9
9
|
list?: tailwind_variants.ClassValue;
|
|
10
|
-
row?: tailwind_variants.ClassValue;
|
|
11
|
-
item?: tailwind_variants.ClassValue;
|
|
12
10
|
viewport?: tailwind_variants.ClassValue;
|
|
11
|
+
item?: tailwind_variants.ClassValue;
|
|
12
|
+
row?: tailwind_variants.ClassValue;
|
|
13
13
|
empty?: tailwind_variants.ClassValue;
|
|
14
14
|
};
|
|
15
15
|
};
|
|
@@ -17,9 +17,9 @@ declare const virtual: tailwind_variants.TVReturnType<{
|
|
|
17
17
|
[x: string]: {
|
|
18
18
|
[x: string]: tailwind_variants.ClassValue | {
|
|
19
19
|
list?: tailwind_variants.ClassValue;
|
|
20
|
-
row?: tailwind_variants.ClassValue;
|
|
21
|
-
item?: tailwind_variants.ClassValue;
|
|
22
20
|
viewport?: tailwind_variants.ClassValue;
|
|
21
|
+
item?: tailwind_variants.ClassValue;
|
|
22
|
+
row?: tailwind_variants.ClassValue;
|
|
23
23
|
empty?: tailwind_variants.ClassValue;
|
|
24
24
|
};
|
|
25
25
|
};
|
|
@@ -33,9 +33,9 @@ declare const virtual: tailwind_variants.TVReturnType<{
|
|
|
33
33
|
[key: string]: {
|
|
34
34
|
[key: string]: tailwind_variants.ClassValue | {
|
|
35
35
|
list?: tailwind_variants.ClassValue;
|
|
36
|
-
row?: tailwind_variants.ClassValue;
|
|
37
|
-
item?: tailwind_variants.ClassValue;
|
|
38
36
|
viewport?: tailwind_variants.ClassValue;
|
|
37
|
+
item?: tailwind_variants.ClassValue;
|
|
38
|
+
row?: tailwind_variants.ClassValue;
|
|
39
39
|
empty?: tailwind_variants.ClassValue;
|
|
40
40
|
};
|
|
41
41
|
};
|
|
@@ -137,4 +137,5 @@ declare const columnsFor: (width: number, minItemWidth: number, gap: number) =>
|
|
|
137
137
|
/** A gallery rendered by the rows in view: as many columns as the width allows (or a fixed number), measured rows. */
|
|
138
138
|
declare function VirtualGrid<T>({ items, renderItem, getKey, estimateRowHeight, label, columns: fixed, minItemWidth, height, gap, overscan, onEndReached, empty, footer, ref, className, }: VirtualGridProps<T>): React.JSX.Element;
|
|
139
139
|
|
|
140
|
-
export { VirtualGrid,
|
|
140
|
+
export { VirtualGrid, VirtualList, columnsFor, useVirtualizer, useWindowVirtualizer, virtual };
|
|
141
|
+
export type { VirtualGridProps, VirtualHandle, VirtualListProps, Virtualizer };
|
package/dist/wall.d.ts
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface WallObjectProps {
|
|
4
|
+
/** Tilt in degrees, deterministic; defaults to zero. */
|
|
5
|
+
rotation?: number;
|
|
6
|
+
/** A tape strip or a pin; defaults to tape. */
|
|
7
|
+
attachment?: "tape" | "pin";
|
|
8
|
+
/** The tape or pin's tilt in degrees; defaults to zero. */
|
|
9
|
+
attachmentRotation?: number;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
interface PinnedNoteProps extends Omit<React.ComponentProps<"article">, "children" | "style">, WallObjectProps {
|
|
13
|
+
/** The short message; capped at 140 Unicode code points without an ellipsis. */
|
|
14
|
+
text: string;
|
|
15
|
+
/** The optional author's signature, written in the handwriting role. */
|
|
16
|
+
signature?: string;
|
|
17
|
+
}
|
|
18
|
+
/** A short word on a cut-corner card. */
|
|
19
|
+
declare function PinnedNote({ text, signature, rotation, attachment, attachmentRotation, className, ...props }: PinnedNoteProps): React.JSX.Element;
|
|
20
|
+
|
|
21
|
+
interface PolaroidProps extends Omit<React.ComponentProps<"figure">, "children" | "style">, WallObjectProps {
|
|
22
|
+
/** The photo slot: an img or next/image, including fill inside this positioned frame. Supply its alt text. */
|
|
23
|
+
img: React.ReactNode;
|
|
24
|
+
/** A short handwritten caption, using the --kz-font-cahier role. */
|
|
25
|
+
caption?: React.ReactNode;
|
|
26
|
+
/** Enable the first-view develop effect; defaults to true, never runs under reduced motion. */
|
|
27
|
+
develop?: boolean;
|
|
28
|
+
}
|
|
29
|
+
/** A photo held to the wall by tape or a pin, with a handwritten caption. */
|
|
30
|
+
declare function Polaroid({ img, caption, rotation, attachment, attachmentRotation, develop, className, ...props }: PolaroidProps): React.JSX.Element;
|
|
31
|
+
|
|
32
|
+
interface ShopSignProps extends Omit<React.ComponentProps<"div">, "children" | "style"> {
|
|
33
|
+
/** The owner's logo or wordmark. Name an SVG/image accessibly, or use readable text. */
|
|
34
|
+
logo: React.ReactNode;
|
|
35
|
+
/** Enamel plate and screws, softly glowing neon, or a time-worn painted sign. */
|
|
36
|
+
variant?: "enamel" | "neon" | "painted";
|
|
37
|
+
/** Deterministic tilt in degrees; defaults to zero. */
|
|
38
|
+
rotation?: number;
|
|
39
|
+
/** Allow a single soft neon flicker on mount; defaults to true and respects reduced motion. */
|
|
40
|
+
animated?: boolean;
|
|
41
|
+
}
|
|
42
|
+
/** A shop's own mark, as a plate, a neon, or a painted sign. */
|
|
43
|
+
declare function ShopSign({ logo, variant, rotation, animated, className, ...props }: ShopSignProps): React.JSX.Element;
|
|
44
|
+
|
|
45
|
+
interface WallPosition {
|
|
46
|
+
/** Stable identity for this object. */
|
|
47
|
+
id: string;
|
|
48
|
+
/** Horizontal placement as a percentage (0–100); clamped to the wall. */
|
|
49
|
+
x: number;
|
|
50
|
+
/** Vertical placement as a percentage (0–100); clamped to the wall. */
|
|
51
|
+
y: number;
|
|
52
|
+
/** Tilt in degrees; defaults to zero. */
|
|
53
|
+
rotation?: number;
|
|
54
|
+
/** Stacking and reading order, ascending; ties preserve input order. */
|
|
55
|
+
z: number;
|
|
56
|
+
}
|
|
57
|
+
/** The item's kind chooses its component; its remaining fields are that component's props. */
|
|
58
|
+
type WallItem = WallPosition & (({
|
|
59
|
+
kind: "polaroid";
|
|
60
|
+
} & PolaroidProps) | ({
|
|
61
|
+
kind: "note";
|
|
62
|
+
} & PinnedNoteProps) | ({
|
|
63
|
+
kind: "sign";
|
|
64
|
+
} & ShopSignProps));
|
|
65
|
+
interface WallProps extends Omit<React.ComponentProps<"ul">, "children" | "style" | "role"> {
|
|
66
|
+
/** The read-only objects; never mutated. Sorted by z for reading, keyboard and phone order. */
|
|
67
|
+
items: readonly WallItem[];
|
|
68
|
+
/** CSS/SVG texture; no image download. Defaults to plaster. */
|
|
69
|
+
texture?: "brick" | "zellige" | "ridge" | "plaster";
|
|
70
|
+
/** Desktop surface height in pixels (minimum 320); defaults to 560. Phones grow with content. */
|
|
71
|
+
height?: number;
|
|
72
|
+
/** Desktop object width in pixels (minimum 120); defaults to 240 and never exceeds the surface. */
|
|
73
|
+
itemWidth?: number;
|
|
74
|
+
}
|
|
75
|
+
/** A decorative textured surface over a real keyboard-reachable list; never an editor. */
|
|
76
|
+
declare function Wall({ items, texture, height, itemWidth, className, ...props }: WallProps): React.JSX.Element;
|
|
77
|
+
|
|
78
|
+
export { PinnedNote, Polaroid, ShopSign, Wall };
|
|
79
|
+
export type { PinnedNoteProps, PolaroidProps, ShopSignProps, WallItem, WallPosition, WallProps };
|
package/dist/wall.js
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "./chunk-44FU32KP.js";
|
|
3
|
+
import {
|
|
4
|
+
TapedPhoto
|
|
5
|
+
} from "./chunk-XVXFMVG3.js";
|
|
6
|
+
import {
|
|
7
|
+
cn
|
|
8
|
+
} from "./chunk-WU4VLSEA.js";
|
|
9
|
+
|
|
10
|
+
// src/wall/attachment.tsx
|
|
11
|
+
import { jsx } from "react/jsx-runtime";
|
|
12
|
+
var finite = (value) => Number.isFinite(value) ? value : 0;
|
|
13
|
+
var rotationStyle = (rotation) => ({ "--kz-wall-rotation": `${finite(rotation)}deg` });
|
|
14
|
+
function Attachment({ attachment = "tape", attachmentRotation = 0 }) {
|
|
15
|
+
return /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: cn("kz-wall-attachment", attachment === "pin" ? "kz-wall-pin" : "kz-wall-tape"), style: { transform: `rotate(${finite(attachmentRotation)}deg)` } });
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// src/wall/pinned-note.tsx
|
|
19
|
+
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
20
|
+
function PinnedNote({ text, signature, rotation = 0, attachment, attachmentRotation, className, ...props }) {
|
|
21
|
+
return /* @__PURE__ */ jsxs("article", { ...props, className: cn("kz-pinned-note kz-wall-object", className), style: rotationStyle(rotation), "data-shape": "cut", children: [
|
|
22
|
+
/* @__PURE__ */ jsx2(Attachment, { attachment, attachmentRotation }),
|
|
23
|
+
/* @__PURE__ */ jsxs("div", { className: "kz-pinned-note-paper", children: [
|
|
24
|
+
/* @__PURE__ */ jsx2("p", { className: "kz-pinned-note-text", children: Array.from(text).slice(0, 140).join("") }),
|
|
25
|
+
signature && /* @__PURE__ */ jsx2("p", { className: "kz-pinned-note-signature", children: signature })
|
|
26
|
+
] })
|
|
27
|
+
] });
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// src/wall/polaroid.tsx
|
|
31
|
+
import * as React from "react";
|
|
32
|
+
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
33
|
+
function Polaroid({ img, caption, rotation = 0, attachment = "tape", attachmentRotation = 0, develop = true, className, ...props }) {
|
|
34
|
+
const ref = React.useRef(null);
|
|
35
|
+
const [state, setState] = React.useState();
|
|
36
|
+
React.useEffect(() => {
|
|
37
|
+
if (!develop || !ref.current || typeof IntersectionObserver === "undefined" || typeof matchMedia === "undefined") return;
|
|
38
|
+
const preference = matchMedia("(prefers-reduced-motion: reduce)");
|
|
39
|
+
let seen = false;
|
|
40
|
+
let observer;
|
|
41
|
+
const sync = () => {
|
|
42
|
+
observer?.disconnect();
|
|
43
|
+
if (preference.matches) {
|
|
44
|
+
seen = true;
|
|
45
|
+
setState(void 0);
|
|
46
|
+
} else if (!seen) {
|
|
47
|
+
setState("waiting");
|
|
48
|
+
observer = new IntersectionObserver((entries) => {
|
|
49
|
+
if (seen || !entries.some((entry) => entry.isIntersecting)) return;
|
|
50
|
+
seen = true;
|
|
51
|
+
setState("ready");
|
|
52
|
+
observer?.disconnect();
|
|
53
|
+
}, { threshold: 0.15 });
|
|
54
|
+
observer.observe(ref.current);
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
sync();
|
|
58
|
+
preference.addEventListener("change", sync);
|
|
59
|
+
return () => {
|
|
60
|
+
observer?.disconnect();
|
|
61
|
+
preference.removeEventListener("change", sync);
|
|
62
|
+
};
|
|
63
|
+
}, [develop]);
|
|
64
|
+
return /* @__PURE__ */ jsxs2(
|
|
65
|
+
TapedPhoto,
|
|
66
|
+
{
|
|
67
|
+
...props,
|
|
68
|
+
className: cn("kz-polaroid", className),
|
|
69
|
+
tilt: finite(rotation),
|
|
70
|
+
tape: attachment === "pin" ? "none" : "top",
|
|
71
|
+
caption,
|
|
72
|
+
style: { "--kz-wall-attachment-rotation": `${finite(attachmentRotation)}deg` },
|
|
73
|
+
"data-develop": develop ? state : void 0,
|
|
74
|
+
children: [
|
|
75
|
+
attachment === "pin" && /* @__PURE__ */ jsx3(Attachment, { attachment: "pin", attachmentRotation }),
|
|
76
|
+
/* @__PURE__ */ jsx3("div", { ref, className: "kz-polaroid-photo", children: img })
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// src/wall/shop-sign.tsx
|
|
83
|
+
import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
84
|
+
function ShopSign({ logo, variant = "enamel", rotation = 0, animated = true, className, ...props }) {
|
|
85
|
+
return /* @__PURE__ */ jsxs3("div", { ...props, className: cn("kz-shop-sign kz-wall-object", className), style: rotationStyle(rotation), "data-variant": variant, "data-animated": animated ? "" : void 0, children: [
|
|
86
|
+
variant === "enamel" && [0, 1, 2, 3].map((corner) => /* @__PURE__ */ jsx4("span", { "aria-hidden": "true", className: "kz-shop-sign-screw", "data-corner": corner }, corner)),
|
|
87
|
+
/* @__PURE__ */ jsx4("div", { className: "kz-shop-sign-logo", children: logo })
|
|
88
|
+
] });
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// src/wall/wall.tsx
|
|
92
|
+
import * as React2 from "react";
|
|
93
|
+
import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
94
|
+
function Wall({ items, texture = "plaster", height = 560, itemWidth = 240, className, ...props }) {
|
|
95
|
+
const patternId = React2.useId().replace(/:/g, "");
|
|
96
|
+
return /* @__PURE__ */ jsxs4("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` }, children: [
|
|
97
|
+
[...items].sort((a, b) => finite(a.z) - finite(b.z)).map(({ id, x, y, rotation = 0, z: _z, ...item }, rank) => /* @__PURE__ */ jsx5("li", { className: "kz-wall-item", tabIndex: 0, style: {
|
|
98
|
+
"--kz-wall-x": `${Math.min(100, Math.max(0, finite(x)))}%`,
|
|
99
|
+
"--kz-wall-y": `${Math.min(100, Math.max(0, finite(y)))}%`,
|
|
100
|
+
"--kz-wall-rotation": `${finite(rotation)}deg`,
|
|
101
|
+
zIndex: rank
|
|
102
|
+
}, children: item.kind === "polaroid" ? /* @__PURE__ */ jsx5(Polaroid, { ...item, rotation: 0 }) : item.kind === "note" ? /* @__PURE__ */ jsx5(PinnedNote, { ...item, rotation: 0 }) : /* @__PURE__ */ jsx5(ShopSign, { ...item, rotation: 0 }) }, id)),
|
|
103
|
+
texture === "brick" && /* @__PURE__ */ jsx5("li", { className: "kz-wall-decoration", "aria-hidden": "true", role: "presentation", children: /* @__PURE__ */ jsxs4("svg", { width: "100%", height: "100%", "aria-hidden": "true", children: [
|
|
104
|
+
/* @__PURE__ */ jsx5("defs", { children: /* @__PURE__ */ jsx5("pattern", { id: patternId, width: "96", height: "48", patternUnits: "userSpaceOnUse", children: /* @__PURE__ */ jsx5("path", { d: "M0 0H96M0 24H96M0 48H96M48 0V24M0 24V48M96 24V48", fill: "none", stroke: "var(--kz-border-default)", strokeWidth: "2" }) }) }),
|
|
105
|
+
/* @__PURE__ */ jsx5("rect", { width: "100%", height: "100%", fill: `url(#${patternId})` })
|
|
106
|
+
] }) }),
|
|
107
|
+
texture === "zellige" && /* @__PURE__ */ jsx5("li", { className: "kz-wall-decoration", "aria-hidden": "true", role: "presentation", children: /* @__PURE__ */ jsxs4("svg", { width: "100%", height: "100%", "aria-hidden": "true", children: [
|
|
108
|
+
/* @__PURE__ */ jsx5("defs", { children: /* @__PURE__ */ jsxs4("pattern", { id: patternId, width: "64", height: "64", patternUnits: "userSpaceOnUse", children: [
|
|
109
|
+
/* @__PURE__ */ jsx5("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)" }),
|
|
110
|
+
/* @__PURE__ */ jsx5("path", { d: "m32 18 14 14-14 14-14-14Z", fill: "var(--kz-surface-2)", stroke: "var(--kz-accent-2)" })
|
|
111
|
+
] }) }),
|
|
112
|
+
/* @__PURE__ */ jsx5("rect", { width: "100%", height: "100%", fill: `url(#${patternId})` })
|
|
113
|
+
] }) }),
|
|
114
|
+
texture === "ridge" && /* @__PURE__ */ jsx5("li", { className: "kz-wall-decoration", "aria-hidden": "true", role: "presentation", children: /* @__PURE__ */ jsxs4("svg", { viewBox: "0 0 1000 600", preserveAspectRatio: "none", width: "100%", height: "100%", "aria-hidden": "true", children: [
|
|
115
|
+
/* @__PURE__ */ jsx5("path", { d: "M0 380 170 100 290 300 450 70 620 330 790 120 1000 350V600H0Z", fill: "var(--kz-accent-soft)" }),
|
|
116
|
+
/* @__PURE__ */ jsx5("path", { d: "M0 470 200 280 370 440 600 190 760 400 920 260 1000 390V600H0Z", fill: "var(--kz-surface-2)" }),
|
|
117
|
+
/* @__PURE__ */ jsx5("path", { d: "M0 540 180 430 360 520 540 390 760 520 900 410 1000 480V600H0Z", fill: "var(--kz-surface-3)" })
|
|
118
|
+
] }) })
|
|
119
|
+
] });
|
|
120
|
+
}
|
|
121
|
+
export {
|
|
122
|
+
PinnedNote,
|
|
123
|
+
Polaroid,
|
|
124
|
+
ShopSign,
|
|
125
|
+
Wall
|
|
126
|
+
};
|
|
127
|
+
//# sourceMappingURL=wall.js.map
|
package/dist/wall.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/wall/attachment.tsx","../src/wall/pinned-note.tsx","../src/wall/polaroid.tsx","../src/wall/shop-sign.tsx","../src/wall/wall.tsx"],"sourcesContent":["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","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","\"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","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","\"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"],"mappings":"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","names":["jsx","jsx","jsxs","jsx","jsxs","React","jsx","jsxs"]}
|
package/dist/waveform.d.ts
CHANGED
|
@@ -90,4 +90,5 @@ type WaveformProps = {
|
|
|
90
90
|
/** A decorative waveform: the bars of a sound, in the accent or a neutral tone, breathing gently while it plays. */
|
|
91
91
|
declare function Waveform({ peaks, bars, size, tone, playing, label, className }: WaveformProps): React.JSX.Element;
|
|
92
92
|
|
|
93
|
-
export { Waveform,
|
|
93
|
+
export { Waveform, waveform };
|
|
94
|
+
export type { WaveformProps };
|