@moonwitness/ui 0.1.0 → 7.1.1
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/CHANGELOG.md +18 -0
- package/LICENSE +21 -0
- package/README.md +135 -260
- package/TOKENS.md +62 -0
- package/dist/cartoon/anime-avatar.d.ts +8 -0
- package/dist/cartoon/anime-avatar.js +135 -0
- package/dist/cartoon/anime-stage.d.ts +67 -0
- package/dist/cartoon/anime-stage.js +106 -0
- package/dist/cartoon/index.d.ts +113 -0
- package/dist/cartoon/index.js +119 -0
- package/dist/cartoon.d.ts +59 -0
- package/dist/cartoon.js +238 -0
- package/dist/characters.d.ts +71 -0
- package/dist/characters.js +543 -0
- package/dist/components/accordion.d.ts +11 -0
- package/dist/components/accordion.js +26 -0
- package/dist/components/alert.d.ts +14 -0
- package/dist/components/alert.js +36 -0
- package/dist/components/appearance-menu.d.ts +22 -0
- package/dist/components/appearance-menu.js +64 -0
- package/dist/components/artwork-frame.d.ts +10 -0
- package/dist/components/artwork-frame.js +12 -0
- package/dist/components/audio.d.ts +19 -0
- package/dist/components/audio.js +49 -0
- package/dist/components/avatar.d.ts +9 -0
- package/dist/components/avatar.js +28 -0
- package/dist/components/badge.d.ts +12 -0
- package/dist/components/badge.js +21 -0
- package/dist/components/brand-mark.d.ts +13 -0
- package/dist/components/brand-mark.js +32 -0
- package/dist/components/breadcrumbs.d.ts +15 -0
- package/dist/components/breadcrumbs.js +25 -0
- package/dist/components/button.d.ts +17 -0
- package/dist/components/button.js +119 -0
- package/dist/components/card.d.ts +20 -0
- package/dist/components/card.js +57 -0
- package/dist/components/character-badge.d.ts +9 -0
- package/dist/components/character-badge.js +19 -0
- package/dist/components/character-preview.d.ts +10 -0
- package/dist/components/character-preview.js +47 -0
- package/dist/components/character-stage.d.ts +54 -0
- package/dist/components/character-stage.js +38 -0
- package/dist/components/chart.d.ts +36 -0
- package/dist/components/chart.js +154 -0
- package/dist/components/checkbox.d.ts +7 -0
- package/dist/components/checkbox.js +15 -0
- package/dist/components/comic-panel.d.ts +17 -0
- package/dist/components/comic-panel.js +118 -0
- package/dist/components/comic-theater.d.ts +19 -0
- package/dist/components/comic-theater.js +54 -0
- package/dist/components/command.d.ts +32 -0
- package/dist/components/command.js +56 -0
- package/dist/components/confirm-dialog.d.ts +19 -0
- package/dist/components/confirm-dialog.js +32 -0
- package/dist/components/copy-button.d.ts +14 -0
- package/dist/components/copy-button.js +17 -0
- package/dist/components/date-picker.d.ts +21 -0
- package/dist/components/date-picker.js +45 -0
- package/dist/components/dialog.d.ts +20 -0
- package/dist/components/dialog.js +51 -0
- package/dist/components/dna-icon.d.ts +24 -0
- package/dist/components/dna-icon.js +14 -0
- package/dist/components/dropdown-menu.d.ts +13 -0
- package/dist/components/dropdown-menu.js +26 -0
- package/dist/components/effects.d.ts +143 -0
- package/dist/components/effects.js +248 -0
- package/dist/components/empty-state.d.ts +15 -0
- package/dist/components/empty-state.js +18 -0
- package/dist/components/epistemic-branch-panel.d.ts +10 -0
- package/dist/components/epistemic-branch-panel.js +45 -0
- package/dist/components/error-state.d.ts +20 -0
- package/dist/components/error-state.js +44 -0
- package/dist/components/field.d.ts +13 -0
- package/dist/components/field.js +35 -0
- package/dist/components/filter-facet-bar.d.ts +15 -0
- package/dist/components/filter-facet-bar.js +38 -0
- package/dist/components/inbox-popover.d.ts +28 -0
- package/dist/components/inbox-popover.js +14 -0
- package/dist/components/input.d.ts +7 -0
- package/dist/components/input.js +8 -0
- package/dist/components/kanban-board.d.ts +21 -0
- package/dist/components/kanban-board.js +38 -0
- package/dist/components/label.d.ts +6 -0
- package/dist/components/label.js +7 -0
- package/dist/components/layered-scene.d.ts +74 -0
- package/dist/components/layered-scene.js +316 -0
- package/dist/components/log-console.d.ts +29 -0
- package/dist/components/log-console.js +82 -0
- package/dist/components/metric-tile.d.ts +15 -0
- package/dist/components/metric-tile.js +30 -0
- package/dist/components/mode-picker.d.ts +9 -0
- package/dist/components/mode-picker.js +72 -0
- package/dist/components/motion-timeline.d.ts +56 -0
- package/dist/components/motion-timeline.js +215 -0
- package/dist/components/number-input.d.ts +29 -0
- package/dist/components/number-input.js +45 -0
- package/dist/components/page-header.d.ts +16 -0
- package/dist/components/page-header.js +48 -0
- package/dist/components/pagination.d.ts +10 -0
- package/dist/components/pagination.js +17 -0
- package/dist/components/panel.d.ts +18 -0
- package/dist/components/panel.js +28 -0
- package/dist/components/paper-note.d.ts +6 -0
- package/dist/components/paper-note.js +35 -0
- package/dist/components/popover.d.ts +11 -0
- package/dist/components/popover.js +29 -0
- package/dist/components/progress.d.ts +17 -0
- package/dist/components/progress.js +26 -0
- package/dist/components/quest-card.d.ts +82 -0
- package/dist/components/quest-card.js +89 -0
- package/dist/components/radio-group.d.ts +8 -0
- package/dist/components/radio-group.js +23 -0
- package/dist/components/riot-sticker.d.ts +28 -0
- package/dist/components/riot-sticker.js +61 -0
- package/dist/components/scene-particles.d.ts +31 -0
- package/dist/components/scene-particles.js +90 -0
- package/dist/components/scene-transitions.d.ts +16 -0
- package/dist/components/scene-transitions.js +51 -0
- package/dist/components/section-ribbon.d.ts +17 -0
- package/dist/components/section-ribbon.js +21 -0
- package/dist/components/select-field.d.ts +7 -0
- package/dist/components/select-field.js +8 -0
- package/dist/components/select.d.ts +14 -0
- package/dist/components/select.js +22 -0
- package/dist/components/separator.d.ts +9 -0
- package/dist/components/separator.js +12 -0
- package/dist/components/sheet.d.ts +14 -0
- package/dist/components/sheet.js +39 -0
- package/dist/components/skeleton.d.ts +7 -0
- package/dist/components/skeleton.js +11 -0
- package/dist/components/sketch-annotation.d.ts +22 -0
- package/dist/components/sketch-annotation.js +21 -0
- package/dist/components/smart-button-box.d.ts +24 -0
- package/dist/components/smart-button-box.js +26 -0
- package/dist/components/speech-bubble.d.ts +33 -0
- package/dist/components/speech-bubble.js +18 -0
- package/dist/components/spinner.d.ts +11 -0
- package/dist/components/spinner.js +10 -0
- package/dist/components/sprite-player.d.ts +50 -0
- package/dist/components/sprite-player.js +230 -0
- package/dist/components/status-bar.d.ts +14 -0
- package/dist/components/status-bar.js +16 -0
- package/dist/components/status-pill.d.ts +11 -0
- package/dist/components/status-pill.js +20 -0
- package/dist/components/switch.d.ts +15 -0
- package/dist/components/switch.js +16 -0
- package/dist/components/table.d.ts +15 -0
- package/dist/components/table.js +66 -0
- package/dist/components/tabs.d.ts +11 -0
- package/dist/components/tabs.js +24 -0
- package/dist/components/tag-input.d.ts +17 -0
- package/dist/components/tag-input.js +79 -0
- package/dist/components/textarea.d.ts +7 -0
- package/dist/components/textarea.js +8 -0
- package/dist/components/toast.d.ts +7 -0
- package/dist/components/toast.js +8 -0
- package/dist/components/toolbar.d.ts +8 -0
- package/dist/components/toolbar.js +11 -0
- package/dist/components/tooltip.d.ts +9 -0
- package/dist/components/tooltip.js +18 -0
- package/dist/components/update-banner.d.ts +14 -0
- package/dist/components/update-banner.js +39 -0
- package/dist/components/xv-primitives.d.ts +63 -0
- package/dist/components/xv-primitives.js +53 -0
- package/dist/dna.d.ts +26 -0
- package/dist/dna.js +79 -0
- package/dist/game/boss-hud.d.ts +73 -0
- package/dist/game/boss-hud.js +78 -0
- package/dist/game/index.d.ts +194 -0
- package/dist/game/index.js +222 -0
- package/dist/game/tactical.d.ts +41 -0
- package/dist/game/tactical.js +46 -0
- package/dist/game.d.ts +95 -0
- package/dist/game.js +263 -0
- package/dist/icons/activity.d.ts +7 -0
- package/dist/icons/activity.js +8 -0
- package/dist/icons/add.d.ts +7 -0
- package/dist/icons/add.js +8 -0
- package/dist/icons/addon.d.ts +7 -0
- package/dist/icons/addon.js +8 -0
- package/dist/icons/anime-anger.d.ts +7 -0
- package/dist/icons/anime-anger.js +8 -0
- package/dist/icons/anime-shock.d.ts +7 -0
- package/dist/icons/anime-shock.js +8 -0
- package/dist/icons/anime-sparkle.d.ts +7 -0
- package/dist/icons/anime-sparkle.js +8 -0
- package/dist/icons/anime-sweatdrop.d.ts +7 -0
- package/dist/icons/anime-sweatdrop.js +8 -0
- package/dist/icons/archive.d.ts +7 -0
- package/dist/icons/archive.js +8 -0
- package/dist/icons/arrow-left.d.ts +7 -0
- package/dist/icons/arrow-left.js +8 -0
- package/dist/icons/arrow-right.d.ts +7 -0
- package/dist/icons/arrow-right.js +8 -0
- package/dist/icons/attachment.d.ts +7 -0
- package/dist/icons/attachment.js +8 -0
- package/dist/icons/bank.d.ts +7 -0
- package/dist/icons/bank.js +8 -0
- package/dist/icons/bolt.d.ts +7 -0
- package/dist/icons/bolt.js +8 -0
- package/dist/icons/book-open.d.ts +7 -0
- package/dist/icons/book-open.js +8 -0
- package/dist/icons/bookmark.d.ts +7 -0
- package/dist/icons/bookmark.js +8 -0
- package/dist/icons/boss-skull.d.ts +7 -0
- package/dist/icons/boss-skull.js +8 -0
- package/dist/icons/calendar-clock.d.ts +7 -0
- package/dist/icons/calendar-clock.js +8 -0
- package/dist/icons/calendar.d.ts +7 -0
- package/dist/icons/calendar.js +8 -0
- package/dist/icons/check-circle.d.ts +7 -0
- package/dist/icons/check-circle.js +8 -0
- package/dist/icons/check-square.d.ts +7 -0
- package/dist/icons/check-square.js +8 -0
- package/dist/icons/check.d.ts +7 -0
- package/dist/icons/check.js +8 -0
- package/dist/icons/chevron-right.d.ts +7 -0
- package/dist/icons/chevron-right.js +8 -0
- package/dist/icons/chevrons-left.d.ts +7 -0
- package/dist/icons/chevrons-left.js +8 -0
- package/dist/icons/chevrons-right.d.ts +7 -0
- package/dist/icons/chevrons-right.js +8 -0
- package/dist/icons/clapperboard.d.ts +7 -0
- package/dist/icons/clapperboard.js +8 -0
- package/dist/icons/clock.d.ts +7 -0
- package/dist/icons/clock.js +8 -0
- package/dist/icons/close.d.ts +7 -0
- package/dist/icons/close.js +8 -0
- package/dist/icons/code.d.ts +7 -0
- package/dist/icons/code.js +8 -0
- package/dist/icons/columns.d.ts +7 -0
- package/dist/icons/columns.js +8 -0
- package/dist/icons/combo-flame.d.ts +7 -0
- package/dist/icons/combo-flame.js +8 -0
- package/dist/icons/company.d.ts +7 -0
- package/dist/icons/company.js +8 -0
- package/dist/icons/credit-card.d.ts +7 -0
- package/dist/icons/credit-card.js +8 -0
- package/dist/icons/critical-star.d.ts +7 -0
- package/dist/icons/critical-star.js +8 -0
- package/dist/icons/currency.d.ts +7 -0
- package/dist/icons/currency.js +8 -0
- package/dist/icons/delete.d.ts +7 -0
- package/dist/icons/delete.js +8 -0
- package/dist/icons/document.d.ts +7 -0
- package/dist/icons/document.js +8 -0
- package/dist/icons/download.d.ts +7 -0
- package/dist/icons/download.js +8 -0
- package/dist/icons/dpad.d.ts +7 -0
- package/dist/icons/dpad.js +8 -0
- package/dist/icons/edit.d.ts +7 -0
- package/dist/icons/edit.js +8 -0
- package/dist/icons/element-fire.d.ts +7 -0
- package/dist/icons/element-fire.js +8 -0
- package/dist/icons/element-ice.d.ts +7 -0
- package/dist/icons/element-ice.js +8 -0
- package/dist/icons/element-solar.d.ts +7 -0
- package/dist/icons/element-solar.js +8 -0
- package/dist/icons/element-void.d.ts +7 -0
- package/dist/icons/element-void.js +8 -0
- package/dist/icons/element-volt.d.ts +7 -0
- package/dist/icons/element-volt.js +8 -0
- package/dist/icons/element-wind.d.ts +7 -0
- package/dist/icons/element-wind.js +8 -0
- package/dist/icons/error.d.ts +7 -0
- package/dist/icons/error.js +8 -0
- package/dist/icons/external-link.d.ts +7 -0
- package/dist/icons/external-link.js +8 -0
- package/dist/icons/field.d.ts +7 -0
- package/dist/icons/field.js +8 -0
- package/dist/icons/file-spreadsheet.d.ts +7 -0
- package/dist/icons/file-spreadsheet.js +8 -0
- package/dist/icons/filter.d.ts +7 -0
- package/dist/icons/filter.js +8 -0
- package/dist/icons/gacha-ticket.d.ts +7 -0
- package/dist/icons/gacha-ticket.js +8 -0
- package/dist/icons/gamepad.d.ts +7 -0
- package/dist/icons/gamepad.js +8 -0
- package/dist/icons/globe.d.ts +7 -0
- package/dist/icons/globe.js +8 -0
- package/dist/icons/grid.d.ts +7 -0
- package/dist/icons/grid.js +8 -0
- package/dist/icons/hash.d.ts +7 -0
- package/dist/icons/hash.js +8 -0
- package/dist/icons/heart-hp.d.ts +7 -0
- package/dist/icons/heart-hp.js +8 -0
- package/dist/icons/history.d.ts +7 -0
- package/dist/icons/history.js +8 -0
- package/dist/icons/home.d.ts +7 -0
- package/dist/icons/home.js +8 -0
- package/dist/icons/image.d.ts +7 -0
- package/dist/icons/image.js +8 -0
- package/dist/icons/impact-slash.d.ts +7 -0
- package/dist/icons/impact-slash.js +8 -0
- package/dist/icons/inbox.d.ts +7 -0
- package/dist/icons/inbox.js +8 -0
- package/dist/icons/index.d.ts +120 -0
- package/dist/icons/index.js +120 -0
- package/dist/icons/info.d.ts +7 -0
- package/dist/icons/info.js +8 -0
- package/dist/icons/jobs.d.ts +7 -0
- package/dist/icons/jobs.js +8 -0
- package/dist/icons/katana.d.ts +7 -0
- package/dist/icons/katana.js +8 -0
- package/dist/icons/key.d.ts +7 -0
- package/dist/icons/key.js +8 -0
- package/dist/icons/keyboard.d.ts +7 -0
- package/dist/icons/keyboard.js +8 -0
- package/dist/icons/keyframe-diamond.d.ts +7 -0
- package/dist/icons/keyframe-diamond.js +8 -0
- package/dist/icons/knowledge.d.ts +7 -0
- package/dist/icons/knowledge.js +8 -0
- package/dist/icons/language.d.ts +7 -0
- package/dist/icons/language.js +8 -0
- package/dist/icons/lock.d.ts +7 -0
- package/dist/icons/lock.js +8 -0
- package/dist/icons/logout.d.ts +7 -0
- package/dist/icons/logout.js +8 -0
- package/dist/icons/loot-chest.d.ts +7 -0
- package/dist/icons/loot-chest.js +8 -0
- package/dist/icons/mail.d.ts +7 -0
- package/dist/icons/mail.js +8 -0
- package/dist/icons/mana-crystal.d.ts +7 -0
- package/dist/icons/mana-crystal.js +8 -0
- package/dist/icons/map-pin.d.ts +7 -0
- package/dist/icons/map-pin.js +8 -0
- package/dist/icons/mecha-helm.d.ts +7 -0
- package/dist/icons/mecha-helm.js +8 -0
- package/dist/icons/menu.d.ts +7 -0
- package/dist/icons/menu.js +8 -0
- package/dist/icons/message.d.ts +7 -0
- package/dist/icons/message.js +8 -0
- package/dist/icons/model.d.ts +7 -0
- package/dist/icons/model.js +8 -0
- package/dist/icons/moon.d.ts +7 -0
- package/dist/icons/moon.js +8 -0
- package/dist/icons/notification.d.ts +7 -0
- package/dist/icons/notification.js +8 -0
- package/dist/icons/partner.d.ts +7 -0
- package/dist/icons/partner.js +8 -0
- package/dist/icons/pause.d.ts +7 -0
- package/dist/icons/pause.js +8 -0
- package/dist/icons/phone.d.ts +7 -0
- package/dist/icons/phone.js +8 -0
- package/dist/icons/play.d.ts +7 -0
- package/dist/icons/play.js +8 -0
- package/dist/icons/potion-flask.d.ts +7 -0
- package/dist/icons/potion-flask.js +8 -0
- package/dist/icons/quest-scroll.d.ts +7 -0
- package/dist/icons/quest-scroll.js +8 -0
- package/dist/icons/radar-ping.d.ts +7 -0
- package/dist/icons/radar-ping.js +8 -0
- package/dist/icons/refresh.d.ts +7 -0
- package/dist/icons/refresh.js +8 -0
- package/dist/icons/relation.d.ts +7 -0
- package/dist/icons/relation.js +8 -0
- package/dist/icons/save.d.ts +7 -0
- package/dist/icons/save.js +8 -0
- package/dist/icons/search.d.ts +7 -0
- package/dist/icons/search.js +8 -0
- package/dist/icons/security.d.ts +7 -0
- package/dist/icons/security.js +8 -0
- package/dist/icons/send.d.ts +7 -0
- package/dist/icons/send.js +8 -0
- package/dist/icons/settings.d.ts +7 -0
- package/dist/icons/settings.js +8 -0
- package/dist/icons/shield-crest.d.ts +7 -0
- package/dist/icons/shield-crest.js +8 -0
- package/dist/icons/shuriken.d.ts +7 -0
- package/dist/icons/shuriken.js +8 -0
- package/dist/icons/signal-off.d.ts +7 -0
- package/dist/icons/signal-off.js +8 -0
- package/dist/icons/signal.d.ts +7 -0
- package/dist/icons/signal.js +8 -0
- package/dist/icons/skill-node.d.ts +7 -0
- package/dist/icons/skill-node.js +8 -0
- package/dist/icons/smartphone.d.ts +7 -0
- package/dist/icons/smartphone.js +8 -0
- package/dist/icons/sort-ascending.d.ts +7 -0
- package/dist/icons/sort-ascending.js +8 -0
- package/dist/icons/sort-descending.d.ts +7 -0
- package/dist/icons/sort-descending.js +8 -0
- package/dist/icons/sort.d.ts +7 -0
- package/dist/icons/sort.js +8 -0
- package/dist/icons/sparkle.d.ts +7 -0
- package/dist/icons/sparkle.js +8 -0
- package/dist/icons/speech-burst.d.ts +7 -0
- package/dist/icons/speech-burst.js +8 -0
- package/dist/icons/story.d.ts +7 -0
- package/dist/icons/story.js +8 -0
- package/dist/icons/sun.d.ts +7 -0
- package/dist/icons/sun.js +8 -0
- package/dist/icons/tag.d.ts +7 -0
- package/dist/icons/tag.js +8 -0
- package/dist/icons/team.d.ts +7 -0
- package/dist/icons/team.js +8 -0
- package/dist/icons/trophy-crown.d.ts +7 -0
- package/dist/icons/trophy-crown.js +8 -0
- package/dist/icons/upload.d.ts +7 -0
- package/dist/icons/upload.js +8 -0
- package/dist/icons/user.d.ts +7 -0
- package/dist/icons/user.js +8 -0
- package/dist/icons/users.d.ts +7 -0
- package/dist/icons/users.js +8 -0
- package/dist/icons/visibility-off.d.ts +7 -0
- package/dist/icons/visibility-off.js +8 -0
- package/dist/icons/visibility.d.ts +7 -0
- package/dist/icons/visibility.js +8 -0
- package/dist/icons/volume-off.d.ts +7 -0
- package/dist/icons/volume-off.js +8 -0
- package/dist/icons/volume.d.ts +7 -0
- package/dist/icons/volume.js +8 -0
- package/dist/icons/warning.d.ts +7 -0
- package/dist/icons/warning.js +8 -0
- package/dist/icons/workflow.d.ts +7 -0
- package/dist/icons/workflow.js +8 -0
- package/dist/icons.d.ts +124 -0
- package/dist/icons.js +361 -0
- package/dist/index.d.ts +81 -0
- package/dist/index.js +83 -0
- package/dist/lib/asset-registry.d.ts +104 -0
- package/dist/lib/asset-registry.js +328 -0
- package/dist/lib/audio-runtime.d.ts +23 -0
- package/dist/lib/audio-runtime.js +254 -0
- package/dist/lib/character-adapter.d.ts +63 -0
- package/dist/lib/character-adapter.js +232 -0
- package/dist/lib/character-registry.d.ts +159 -0
- package/dist/lib/character-registry.js +1950 -0
- package/dist/lib/cn.d.ts +2 -0
- package/dist/lib/cn.js +4 -0
- package/dist/lib/compose-refs.d.ts +7 -0
- package/dist/lib/compose-refs.js +14 -0
- package/dist/lib/sanitize-url.d.ts +6 -0
- package/dist/lib/sanitize-url.js +44 -0
- package/dist/lib/scene-camera.d.ts +70 -0
- package/dist/lib/scene-camera.js +317 -0
- package/dist/lib/scene-playback.d.ts +93 -0
- package/dist/lib/scene-playback.js +447 -0
- package/dist/lib/scene-soundscape.d.ts +35 -0
- package/dist/lib/scene-soundscape.js +117 -0
- package/dist/lib/scene-test-harness.d.ts +17 -0
- package/dist/lib/scene-test-harness.js +140 -0
- package/dist/lib/scene-timeline.d.ts +59 -0
- package/dist/lib/scene-timeline.js +280 -0
- package/dist/lib/use-animation-visibility.d.ts +7 -0
- package/dist/lib/use-animation-visibility.js +31 -0
- package/dist/lib/use-modal-focus.d.ts +6 -0
- package/dist/lib/use-modal-focus.js +211 -0
- package/dist/lib/use-reduced-motion.d.ts +5 -0
- package/dist/lib/use-reduced-motion.js +31 -0
- package/dist/motion/easing-presets.d.ts +21 -0
- package/dist/motion/easing-presets.js +207 -0
- package/dist/motion/index.d.ts +153 -0
- package/dist/motion/index.js +311 -0
- package/dist/motion/physics.d.ts +30 -0
- package/dist/motion/physics.js +178 -0
- package/dist/motion/timeline-math.d.ts +78 -0
- package/dist/motion/timeline-math.js +216 -0
- package/dist/motion.d.ts +76 -0
- package/dist/motion.js +316 -0
- package/dist/pixelfx-registry.d.ts +127 -0
- package/dist/pixelfx-registry.js +861 -0
- package/dist/pixelfx.d.ts +161 -0
- package/dist/pixelfx.js +510 -0
- package/dist/provider.d.ts +27 -0
- package/dist/provider.js +15 -0
- package/dist/skin-catalog.d.ts +20 -0
- package/dist/skin-catalog.js +215 -0
- package/dist/skin-tokens.d.ts +3 -0
- package/dist/skin-tokens.js +390 -0
- package/dist/tailwind-preset.css +109 -0
- package/dist/templates/battle-arena.d.ts +2 -0
- package/dist/templates/battle-arena.js +351 -0
- package/dist/templates/index.d.ts +3 -0
- package/dist/templates/index.js +77 -0
- package/dist/templates.d.ts +4 -0
- package/dist/templates.js +78 -0
- package/dist/themes/dna-presets.d.ts +18 -0
- package/dist/themes/dna-presets.js +84 -0
- package/dist/themes/index.d.ts +11 -0
- package/dist/themes/index.js +10 -0
- package/dist/themes/provider.d.ts +26 -0
- package/dist/themes/provider.js +96 -0
- package/dist/themes/types.d.ts +42 -0
- package/dist/themes/types.js +47 -0
- package/dist/themes.d.ts +2 -0
- package/dist/themes.js +2 -0
- package/dist/token-exporter.d.ts +5 -0
- package/dist/token-exporter.js +4 -0
- package/dist/token-exporters.d.ts +28 -0
- package/dist/token-exporters.js +257 -0
- package/dist/token-seeds.d.ts +38 -0
- package/dist/token-seeds.js +272 -0
- package/dist/token-snapshot.d.ts +21 -0
- package/dist/token-snapshot.js +131 -0
- package/dist/tokens.bundle.json +1669 -0
- package/dist/tokens.generated.css +599 -0
- package/dist/tokens.w3c.json +1931 -0
- package/dist/utils.d.ts +12 -0
- package/dist/utils.js +49 -0
- package/package.json +536 -43
- package/scripts/generate-icons.mjs +110 -0
- package/scripts/generate-token-artifacts.mjs +90 -0
- package/scripts/icon-svg-to-jsx.mjs +249 -0
- package/scripts/verification-diagnostics.mjs +40 -0
- package/scripts/verify-package.mjs +412 -0
- package/src/cartoon/anime-avatar.tsx +628 -0
- package/src/cartoon/anime-stage.tsx +458 -0
- package/src/cartoon/index.tsx +542 -0
- package/src/cartoon.tsx +645 -0
- package/src/characters.ts +625 -0
- package/src/components/accordion.tsx +77 -0
- package/src/components/alert.tsx +139 -0
- package/src/components/appearance-menu.tsx +181 -0
- package/src/components/artwork-frame.tsx +49 -0
- package/src/components/audio.tsx +97 -0
- package/src/components/avatar.tsx +75 -0
- package/src/components/badge.tsx +94 -0
- package/src/components/brand-mark.tsx +73 -0
- package/src/components/breadcrumbs.tsx +98 -0
- package/src/components/button.tsx +340 -0
- package/src/components/card.tsx +171 -0
- package/src/components/character-badge.tsx +58 -0
- package/src/components/character-preview.tsx +104 -0
- package/src/components/character-stage.tsx +225 -0
- package/src/components/chart.tsx +481 -0
- package/src/components/checkbox.tsx +64 -0
- package/src/components/comic-panel.tsx +301 -0
- package/src/components/comic-theater.tsx +170 -0
- package/src/components/command.tsx +189 -0
- package/src/components/confirm-dialog.tsx +129 -0
- package/src/components/copy-button.tsx +62 -0
- package/src/components/date-picker.tsx +126 -0
- package/src/components/dialog.tsx +164 -0
- package/src/components/dna-icon.tsx +77 -0
- package/src/components/dropdown-menu.tsx +87 -0
- package/src/components/effects.tsx +1021 -0
- package/src/components/empty-state.tsx +93 -0
- package/src/components/epistemic-branch-panel.tsx +101 -0
- package/src/components/error-state.tsx +137 -0
- package/src/components/field.tsx +96 -0
- package/src/components/filter-facet-bar.tsx +91 -0
- package/src/components/inbox-popover.tsx +146 -0
- package/src/components/input.tsx +25 -0
- package/src/components/kanban-board.tsx +190 -0
- package/src/components/label.tsx +19 -0
- package/src/components/layered-scene.tsx +555 -0
- package/src/components/log-console.tsx +261 -0
- package/src/components/metric-tile.tsx +99 -0
- package/src/components/mode-picker.tsx +149 -0
- package/src/components/motion-timeline.tsx +848 -0
- package/src/components/number-input.tsx +104 -0
- package/src/components/page-header.tsx +123 -0
- package/src/components/pagination.tsx +83 -0
- package/src/components/panel.tsx +121 -0
- package/src/components/paper-note.tsx +77 -0
- package/src/components/popover.tsx +72 -0
- package/src/components/progress.tsx +127 -0
- package/src/components/quest-card.tsx +319 -0
- package/src/components/radio-group.tsx +50 -0
- package/src/components/riot-sticker.tsx +151 -0
- package/src/components/scene-particles.tsx +196 -0
- package/src/components/scene-transitions.tsx +130 -0
- package/src/components/section-ribbon.tsx +94 -0
- package/src/components/select-field.tsx +27 -0
- package/src/components/select.tsx +81 -0
- package/src/components/separator.tsx +58 -0
- package/src/components/sheet.tsx +96 -0
- package/src/components/skeleton.tsx +35 -0
- package/src/components/sketch-annotation.tsx +87 -0
- package/src/components/smart-button-box.tsx +114 -0
- package/src/components/speech-bubble.tsx +116 -0
- package/src/components/spinner.tsx +69 -0
- package/src/components/sprite-player.tsx +412 -0
- package/src/components/status-bar.tsx +63 -0
- package/src/components/status-pill.tsx +68 -0
- package/src/components/switch.tsx +76 -0
- package/src/components/table.tsx +163 -0
- package/src/components/tabs.tsx +101 -0
- package/src/components/tag-input.tsx +170 -0
- package/src/components/textarea.tsx +25 -0
- package/src/components/toast.tsx +14 -0
- package/src/components/toolbar.tsx +39 -0
- package/src/components/tooltip.tsx +49 -0
- package/src/components/update-banner.tsx +220 -0
- package/src/components/xv-primitives.tsx +256 -0
- package/src/dna.tsx +137 -0
- package/src/game/boss-hud.tsx +384 -0
- package/src/game/index.tsx +886 -0
- package/src/game/tactical.tsx +245 -0
- package/src/game.tsx +770 -0
- package/src/icons/activity.tsx +38 -0
- package/src/icons/add.tsx +38 -0
- package/src/icons/addon.tsx +37 -0
- package/src/icons/anime-anger.tsx +37 -0
- package/src/icons/anime-shock.tsx +37 -0
- package/src/icons/anime-sparkle.tsx +38 -0
- package/src/icons/anime-sweatdrop.tsx +38 -0
- package/src/icons/archive.tsx +37 -0
- package/src/icons/arrow-left.tsx +37 -0
- package/src/icons/arrow-right.tsx +37 -0
- package/src/icons/attachment.tsx +38 -0
- package/src/icons/bank.tsx +37 -0
- package/src/icons/bolt.tsx +37 -0
- package/src/icons/book-open.tsx +37 -0
- package/src/icons/bookmark.tsx +37 -0
- package/src/icons/boss-skull.tsx +40 -0
- package/src/icons/calendar-clock.tsx +40 -0
- package/src/icons/calendar.tsx +38 -0
- package/src/icons/check-circle.tsx +38 -0
- package/src/icons/check-square.tsx +38 -0
- package/src/icons/check.tsx +37 -0
- package/src/icons/chevron-right.tsx +37 -0
- package/src/icons/chevrons-left.tsx +37 -0
- package/src/icons/chevrons-right.tsx +37 -0
- package/src/icons/clapperboard.tsx +38 -0
- package/src/icons/clock.tsx +38 -0
- package/src/icons/close.tsx +37 -0
- package/src/icons/code.tsx +37 -0
- package/src/icons/columns.tsx +38 -0
- package/src/icons/combo-flame.tsx +38 -0
- package/src/icons/company.tsx +38 -0
- package/src/icons/credit-card.tsx +38 -0
- package/src/icons/critical-star.tsx +37 -0
- package/src/icons/currency.tsx +38 -0
- package/src/icons/delete.tsx +37 -0
- package/src/icons/document.tsx +38 -0
- package/src/icons/download.tsx +37 -0
- package/src/icons/dpad.tsx +38 -0
- package/src/icons/edit.tsx +38 -0
- package/src/icons/element-fire.tsx +37 -0
- package/src/icons/element-ice.tsx +38 -0
- package/src/icons/element-solar.tsx +38 -0
- package/src/icons/element-void.tsx +38 -0
- package/src/icons/element-volt.tsx +38 -0
- package/src/icons/element-wind.tsx +37 -0
- package/src/icons/error.tsx +38 -0
- package/src/icons/external-link.tsx +38 -0
- package/src/icons/field.tsx +38 -0
- package/src/icons/file-spreadsheet.tsx +38 -0
- package/src/icons/filter.tsx +37 -0
- package/src/icons/gacha-ticket.tsx +38 -0
- package/src/icons/gamepad.tsx +40 -0
- package/src/icons/globe.tsx +38 -0
- package/src/icons/grid.tsx +40 -0
- package/src/icons/hash.tsx +37 -0
- package/src/icons/heart-hp.tsx +38 -0
- package/src/icons/history.tsx +37 -0
- package/src/icons/home.tsx +37 -0
- package/src/icons/image.tsx +39 -0
- package/src/icons/impact-slash.tsx +38 -0
- package/src/icons/inbox.tsx +38 -0
- package/src/icons/index.ts +120 -0
- package/src/icons/info.tsx +38 -0
- package/src/icons/jobs.tsx +38 -0
- package/src/icons/katana.tsx +38 -0
- package/src/icons/key.tsx +38 -0
- package/src/icons/keyboard.tsx +38 -0
- package/src/icons/keyframe-diamond.tsx +38 -0
- package/src/icons/knowledge.tsx +38 -0
- package/src/icons/language.tsx +39 -0
- package/src/icons/lock.tsx +38 -0
- package/src/icons/logout.tsx +37 -0
- package/src/icons/loot-chest.tsx +39 -0
- package/src/icons/mail.tsx +38 -0
- package/src/icons/mana-crystal.tsx +38 -0
- package/src/icons/map-pin.tsx +38 -0
- package/src/icons/mecha-helm.tsx +38 -0
- package/src/icons/menu.tsx +37 -0
- package/src/icons/message.tsx +38 -0
- package/src/icons/model.tsx +38 -0
- package/src/icons/moon.tsx +37 -0
- package/src/icons/notification.tsx +38 -0
- package/src/icons/partner.tsx +41 -0
- package/src/icons/pause.tsx +37 -0
- package/src/icons/phone.tsx +37 -0
- package/src/icons/play.tsx +37 -0
- package/src/icons/potion-flask.tsx +40 -0
- package/src/icons/quest-scroll.tsx +39 -0
- package/src/icons/radar-ping.tsx +40 -0
- package/src/icons/refresh.tsx +38 -0
- package/src/icons/relation.tsx +40 -0
- package/src/icons/save.tsx +38 -0
- package/src/icons/search.tsx +38 -0
- package/src/icons/security.tsx +38 -0
- package/src/icons/send.tsx +38 -0
- package/src/icons/settings.tsx +39 -0
- package/src/icons/shield-crest.tsx +38 -0
- package/src/icons/shuriken.tsx +38 -0
- package/src/icons/signal-off.tsx +37 -0
- package/src/icons/signal.tsx +37 -0
- package/src/icons/skill-node.tsx +40 -0
- package/src/icons/smartphone.tsx +38 -0
- package/src/icons/sort-ascending.tsx +37 -0
- package/src/icons/sort-descending.tsx +37 -0
- package/src/icons/sort.tsx +37 -0
- package/src/icons/sparkle.tsx +38 -0
- package/src/icons/speech-burst.tsx +37 -0
- package/src/icons/story.tsx +37 -0
- package/src/icons/sun.tsx +38 -0
- package/src/icons/tag.tsx +38 -0
- package/src/icons/team.tsx +40 -0
- package/src/icons/trophy-crown.tsx +39 -0
- package/src/icons/upload.tsx +37 -0
- package/src/icons/user.tsx +38 -0
- package/src/icons/users.tsx +39 -0
- package/src/icons/visibility-off.tsx +38 -0
- package/src/icons/visibility.tsx +38 -0
- package/src/icons/volume-off.tsx +37 -0
- package/src/icons/volume.tsx +37 -0
- package/src/icons/warning.tsx +38 -0
- package/src/icons/workflow.tsx +40 -0
- package/src/icons.tsx +965 -0
- package/src/index.ts +89 -0
- package/src/lib/asset-registry.ts +534 -0
- package/src/lib/audio-runtime.ts +314 -0
- package/src/lib/character-adapter.ts +370 -0
- package/src/lib/character-registry.ts +2368 -0
- package/src/lib/cn.ts +6 -0
- package/src/lib/compose-refs.ts +16 -0
- package/src/lib/sanitize-url.ts +51 -0
- package/src/lib/scene-camera.ts +483 -0
- package/src/lib/scene-playback.ts +622 -0
- package/src/lib/scene-soundscape.ts +151 -0
- package/src/lib/scene-test-harness.ts +200 -0
- package/src/lib/scene-timeline.ts +398 -0
- package/src/lib/use-animation-visibility.ts +45 -0
- package/src/lib/use-modal-focus.ts +270 -0
- package/src/lib/use-reduced-motion.ts +37 -0
- package/src/motion/easing-presets.ts +262 -0
- package/src/motion/index.tsx +894 -0
- package/src/motion/physics.ts +259 -0
- package/src/motion/timeline-math.ts +358 -0
- package/src/motion.tsx +639 -0
- package/src/pixelfx-registry.ts +1190 -0
- package/src/pixelfx-types.d.ts +73 -0
- package/src/pixelfx.tsx +994 -0
- package/src/provider.tsx +63 -0
- package/src/skin-catalog.ts +270 -0
- package/src/skin-tokens.ts +425 -0
- package/src/styles/components.css +8007 -0
- package/src/styles/tokens.css +952 -0
- package/src/styles/visual-universe.css +149 -0
- package/src/styles/xv-primitives.css +192 -0
- package/src/templates/battle-arena.tsx +688 -0
- package/src/templates/index.tsx +314 -0
- package/src/templates.tsx +225 -0
- package/src/themes/dna-presets.ts +119 -0
- package/src/themes/index.ts +43 -0
- package/src/themes/provider.tsx +162 -0
- package/src/themes/types.ts +111 -0
- package/src/themes.ts +9 -0
- package/src/token-exporter.ts +12 -0
- package/src/token-exporters.ts +343 -0
- package/src/token-seeds.ts +335 -0
- package/src/token-snapshot.ts +179 -0
- package/src/utils.ts +58 -0
- package/styles.css +3 -0
- package/src/components.d.ts +0 -588
- package/src/components.js +0 -2044
- package/src/index.d.ts +0 -3
- package/src/index.js +0 -13
- package/src/skins.d.ts +0 -4
- package/src/skins.js +0 -20
- package/src/styles.css +0 -587
- package/src/tailwind.css +0 -24
- package/src/theme.d.ts +0 -71
- package/src/theme.js +0 -257
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { useCallback, useState } from "react";
|
|
4
|
+
import { Badge } from "../components/badge.js";
|
|
5
|
+
import { Button } from "../components/button.js";
|
|
6
|
+
import {
|
|
7
|
+
Card,
|
|
8
|
+
CardContent,
|
|
9
|
+
CardDescription,
|
|
10
|
+
CardHeader,
|
|
11
|
+
CardTitle,
|
|
12
|
+
} from "../components/card.js";
|
|
13
|
+
import {
|
|
14
|
+
Sheet,
|
|
15
|
+
SheetContent,
|
|
16
|
+
SheetDescription,
|
|
17
|
+
SheetHeader,
|
|
18
|
+
SheetTitle,
|
|
19
|
+
SheetTrigger,
|
|
20
|
+
} from "../components/sheet.js";
|
|
21
|
+
import {
|
|
22
|
+
Tabs,
|
|
23
|
+
TabsContent,
|
|
24
|
+
TabsList,
|
|
25
|
+
TabsTrigger,
|
|
26
|
+
} from "../components/tabs.js";
|
|
27
|
+
import {
|
|
28
|
+
AnimatedNumber,
|
|
29
|
+
KineticText,
|
|
30
|
+
MarqueeRibbon,
|
|
31
|
+
PageTransitionCurtain,
|
|
32
|
+
ScrollReveal,
|
|
33
|
+
StaggerGroup,
|
|
34
|
+
StateMorphButton,
|
|
35
|
+
useMotion,
|
|
36
|
+
type MorphButtonStatus,
|
|
37
|
+
type PageTransitionVariant,
|
|
38
|
+
} from "../motion/index.js";
|
|
39
|
+
export { CartoonStudioTemplate, GameBattleTemplate } from "./battle-arena.js";
|
|
40
|
+
|
|
41
|
+
export function WebLandingTemplate() {
|
|
42
|
+
const { triggerSfx } = useMotion();
|
|
43
|
+
const [ctaStatus, setCtaStatus] = useState<MorphButtonStatus>("idle");
|
|
44
|
+
const [curtainVariant, setCurtainVariant] =
|
|
45
|
+
useState<PageTransitionVariant>("ink-wipe");
|
|
46
|
+
const [curtainActive, setCurtainActive] = useState(false);
|
|
47
|
+
|
|
48
|
+
const handleLaunch = useCallback(() => {
|
|
49
|
+
setCtaStatus("loading");
|
|
50
|
+
window.setTimeout(() => {
|
|
51
|
+
setCtaStatus("success");
|
|
52
|
+
triggerSfx("success-chime");
|
|
53
|
+
window.setTimeout(() => setCtaStatus("idle"), 1600);
|
|
54
|
+
}, 650);
|
|
55
|
+
}, [triggerSfx]);
|
|
56
|
+
|
|
57
|
+
const previewCurtain = useCallback(
|
|
58
|
+
(variant: PageTransitionVariant) => {
|
|
59
|
+
setCurtainVariant(variant);
|
|
60
|
+
setCurtainActive(true);
|
|
61
|
+
triggerSfx("drawer-whoosh");
|
|
62
|
+
window.setTimeout(() => setCurtainActive(false), 680);
|
|
63
|
+
},
|
|
64
|
+
[triggerSfx],
|
|
65
|
+
);
|
|
66
|
+
|
|
67
|
+
return (
|
|
68
|
+
<div className="mw-ui-template-shell" data-testid="template-web-landing">
|
|
69
|
+
<PageTransitionCurtain
|
|
70
|
+
active={curtainActive}
|
|
71
|
+
variant={curtainVariant}
|
|
72
|
+
label="SCENE SHIFT"
|
|
73
|
+
/>
|
|
74
|
+
<header className="mw-ui-template-hero">
|
|
75
|
+
<div className="mw-ui-template-hero-copy">
|
|
76
|
+
<Badge variant="magenta" size="sm">
|
|
77
|
+
WEB MOTION TEMPLATE
|
|
78
|
+
</Badge>
|
|
79
|
+
<h3 className="mw-ui-template-hero-title">
|
|
80
|
+
<KineticText
|
|
81
|
+
text="SHIP LIVING INTERFACES"
|
|
82
|
+
variant="stamp-drop"
|
|
83
|
+
splitBy="word"
|
|
84
|
+
/>
|
|
85
|
+
</h3>
|
|
86
|
+
<p className="mw-ui-template-hero-lead">
|
|
87
|
+
Zero-Tailwind animated hero built with KineticText, StaggerGroup,
|
|
88
|
+
MarqueeRibbon, and accessible reduced-motion fallbacks.
|
|
89
|
+
</p>
|
|
90
|
+
<div className="mw-ui-template-actions">
|
|
91
|
+
<StateMorphButton
|
|
92
|
+
status={ctaStatus}
|
|
93
|
+
idleLabel="Deploy Starter"
|
|
94
|
+
loadingLabel="Deploying…"
|
|
95
|
+
successLabel="Live on Edge"
|
|
96
|
+
onClick={handleLaunch}
|
|
97
|
+
/>
|
|
98
|
+
<Button
|
|
99
|
+
size="sm"
|
|
100
|
+
variant="outline"
|
|
101
|
+
onClick={() => previewCurtain("ink-wipe")}
|
|
102
|
+
>
|
|
103
|
+
Ink Wipe Transition
|
|
104
|
+
</Button>
|
|
105
|
+
<Button
|
|
106
|
+
size="sm"
|
|
107
|
+
variant="outline"
|
|
108
|
+
onClick={() => previewCurtain("iris-circle")}
|
|
109
|
+
>
|
|
110
|
+
Iris Transition
|
|
111
|
+
</Button>
|
|
112
|
+
</div>
|
|
113
|
+
</div>
|
|
114
|
+
</header>
|
|
115
|
+
|
|
116
|
+
<MarqueeRibbon
|
|
117
|
+
items={[
|
|
118
|
+
"SPRING PHYSICS",
|
|
119
|
+
"12FPS CARTOON EASING",
|
|
120
|
+
"ZERO TAILWIND CSS",
|
|
121
|
+
"WCAG AA CONTRAST",
|
|
122
|
+
"SSR READY",
|
|
123
|
+
"GAME & WEBTEMPLATES",
|
|
124
|
+
]}
|
|
125
|
+
/>
|
|
126
|
+
|
|
127
|
+
<ScrollReveal preset="slide-snap">
|
|
128
|
+
<StaggerGroup preset="pop-in" className="mw-ui-template-bento">
|
|
129
|
+
<Card variant="elevated">
|
|
130
|
+
<CardHeader>
|
|
131
|
+
<CardTitle>01 · Kinetic Typography</CardTitle>
|
|
132
|
+
<CardDescription>
|
|
133
|
+
Word or character stagger with intact screen-reader label.
|
|
134
|
+
</CardDescription>
|
|
135
|
+
</CardHeader>
|
|
136
|
+
<CardContent>
|
|
137
|
+
<KineticText
|
|
138
|
+
text="FRAME BY FRAME"
|
|
139
|
+
variant="wave-bounce"
|
|
140
|
+
splitBy="word"
|
|
141
|
+
/>
|
|
142
|
+
</CardContent>
|
|
143
|
+
</Card>
|
|
144
|
+
<Card variant="elevated">
|
|
145
|
+
<CardHeader>
|
|
146
|
+
<CardTitle>02 · Motion Profiles</CardTitle>
|
|
147
|
+
<CardDescription>
|
|
148
|
+
Switch off, subtle, expressive, or cartoon scale globally.
|
|
149
|
+
</CardDescription>
|
|
150
|
+
</CardHeader>
|
|
151
|
+
<CardContent>
|
|
152
|
+
<Badge variant="cyan" size="sm">
|
|
153
|
+
Respects prefers-reduced-motion
|
|
154
|
+
</Badge>
|
|
155
|
+
</CardContent>
|
|
156
|
+
</Card>
|
|
157
|
+
<Card variant="elevated">
|
|
158
|
+
<CardHeader>
|
|
159
|
+
<CardTitle>03 · Audio Ready</CardTitle>
|
|
160
|
+
<CardDescription>
|
|
161
|
+
Procedural WebAudio cues opt-in with zero external MP3s.
|
|
162
|
+
</CardDescription>
|
|
163
|
+
</CardHeader>
|
|
164
|
+
<CardContent>
|
|
165
|
+
<Badge variant="success" size="sm">
|
|
166
|
+
13 Built-in SFX Presets
|
|
167
|
+
</Badge>
|
|
168
|
+
</CardContent>
|
|
169
|
+
</Card>
|
|
170
|
+
</StaggerGroup>
|
|
171
|
+
</ScrollReveal>
|
|
172
|
+
</div>
|
|
173
|
+
);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export function AppCommandTemplate() {
|
|
177
|
+
const { triggerSfx } = useMotion();
|
|
178
|
+
const [revenue, setRevenue] = useState(48290);
|
|
179
|
+
const [activeUsers, setActiveUsers] = useState(1428);
|
|
180
|
+
const [latencyMs, setLatencyMs] = useState(34);
|
|
181
|
+
const [syncStatus, setSyncStatus] = useState<MorphButtonStatus>("idle");
|
|
182
|
+
const [tasks, setTasks] = useState([
|
|
183
|
+
{ id: "t1", title: "Publish @moonwitness/ui v1.0.0", status: "Ready" },
|
|
184
|
+
{
|
|
185
|
+
id: "t2",
|
|
186
|
+
title: "Verify multi-genre skin contrast matrix",
|
|
187
|
+
status: "Passed",
|
|
188
|
+
},
|
|
189
|
+
{ id: "t3", title: "Sync W3C design token artifacts", status: "Synced" },
|
|
190
|
+
]);
|
|
191
|
+
|
|
192
|
+
const simulatePulse = useCallback(() => {
|
|
193
|
+
triggerSfx("coin-pickup");
|
|
194
|
+
setRevenue((v) => v + 640);
|
|
195
|
+
setActiveUsers((v) => v + 19);
|
|
196
|
+
setLatencyMs((v) => (v <= 24 ? 38 : v - 4));
|
|
197
|
+
}, [triggerSfx]);
|
|
198
|
+
|
|
199
|
+
const runSync = useCallback(() => {
|
|
200
|
+
setSyncStatus("loading");
|
|
201
|
+
window.setTimeout(() => {
|
|
202
|
+
setSyncStatus("success");
|
|
203
|
+
triggerSfx("success-chime");
|
|
204
|
+
setTasks((prev) => [
|
|
205
|
+
{
|
|
206
|
+
id: `t-${Date.now()}`,
|
|
207
|
+
title: `Synced release snapshot #${prev.length + 1}`,
|
|
208
|
+
status: "Live",
|
|
209
|
+
},
|
|
210
|
+
...prev.slice(0, 3),
|
|
211
|
+
]);
|
|
212
|
+
window.setTimeout(() => setSyncStatus("idle"), 1400);
|
|
213
|
+
}, 550);
|
|
214
|
+
}, [triggerSfx]);
|
|
215
|
+
|
|
216
|
+
return (
|
|
217
|
+
<div className="mw-ui-template-shell" data-testid="template-app-command">
|
|
218
|
+
<div className="mw-ui-template-app-bar">
|
|
219
|
+
<div>
|
|
220
|
+
<Badge variant="cyan" size="sm">
|
|
221
|
+
APP / SAAS MOTION SHELL
|
|
222
|
+
</Badge>
|
|
223
|
+
<h3 className="mw-ui-template-section-title">Command Workspace</h3>
|
|
224
|
+
</div>
|
|
225
|
+
<div className="mw-ui-template-actions">
|
|
226
|
+
<Button size="sm" variant="outline" onClick={simulatePulse}>
|
|
227
|
+
Simulate Live Tick
|
|
228
|
+
</Button>
|
|
229
|
+
<StateMorphButton
|
|
230
|
+
status={syncStatus}
|
|
231
|
+
idleLabel="Sync Workspace"
|
|
232
|
+
loadingLabel="Syncing…"
|
|
233
|
+
successLabel="Synced"
|
|
234
|
+
onClick={runSync}
|
|
235
|
+
/>
|
|
236
|
+
<Sheet>
|
|
237
|
+
<SheetTrigger asChild>
|
|
238
|
+
<Button size="sm" variant="default">
|
|
239
|
+
Open Inspector
|
|
240
|
+
</Button>
|
|
241
|
+
</SheetTrigger>
|
|
242
|
+
<SheetContent data-side="right">
|
|
243
|
+
<SheetHeader>
|
|
244
|
+
<SheetTitle>Workspace Inspector</SheetTitle>
|
|
245
|
+
<SheetDescription>
|
|
246
|
+
Standalone CSS Sheet drawer with zero Tailwind dependency and
|
|
247
|
+
smooth slide motion.
|
|
248
|
+
</SheetDescription>
|
|
249
|
+
</SheetHeader>
|
|
250
|
+
<div className="mw-ui-template-inspector-body">
|
|
251
|
+
<p>Active sessions: {activeUsers}</p>
|
|
252
|
+
<p>Current p95 latency: {latencyMs} ms</p>
|
|
253
|
+
</div>
|
|
254
|
+
</SheetContent>
|
|
255
|
+
</Sheet>
|
|
256
|
+
</div>
|
|
257
|
+
</div>
|
|
258
|
+
|
|
259
|
+
<StaggerGroup preset="pop-in" className="mw-ui-template-kpi-grid">
|
|
260
|
+
<Card variant="elevated">
|
|
261
|
+
<CardHeader>
|
|
262
|
+
<CardDescription>Monthly Recurring</CardDescription>
|
|
263
|
+
<CardTitle>
|
|
264
|
+
<AnimatedNumber value={revenue} prefix="$" />
|
|
265
|
+
</CardTitle>
|
|
266
|
+
</CardHeader>
|
|
267
|
+
</Card>
|
|
268
|
+
<Card variant="elevated">
|
|
269
|
+
<CardHeader>
|
|
270
|
+
<CardDescription>Active Operators</CardDescription>
|
|
271
|
+
<CardTitle>
|
|
272
|
+
<AnimatedNumber value={activeUsers} />
|
|
273
|
+
</CardTitle>
|
|
274
|
+
</CardHeader>
|
|
275
|
+
</Card>
|
|
276
|
+
<Card variant="elevated">
|
|
277
|
+
<CardHeader>
|
|
278
|
+
<CardDescription>Edge Latency</CardDescription>
|
|
279
|
+
<CardTitle>
|
|
280
|
+
<AnimatedNumber value={latencyMs} suffix=" ms" />
|
|
281
|
+
</CardTitle>
|
|
282
|
+
</CardHeader>
|
|
283
|
+
</Card>
|
|
284
|
+
</StaggerGroup>
|
|
285
|
+
|
|
286
|
+
<Tabs defaultValue="queue">
|
|
287
|
+
<TabsList>
|
|
288
|
+
<TabsTrigger value="queue">
|
|
289
|
+
Dispatch Queue ({tasks.length})
|
|
290
|
+
</TabsTrigger>
|
|
291
|
+
<TabsTrigger value="telemetry">Motion Telemetry</TabsTrigger>
|
|
292
|
+
</TabsList>
|
|
293
|
+
<TabsContent value="queue">
|
|
294
|
+
<ul className="mw-ui-template-list">
|
|
295
|
+
{tasks.map((task) => (
|
|
296
|
+
<li key={task.id} className="mw-ui-template-list-item">
|
|
297
|
+
<span>{task.title}</span>
|
|
298
|
+
<Badge size="sm" variant="success">
|
|
299
|
+
{task.status}
|
|
300
|
+
</Badge>
|
|
301
|
+
</li>
|
|
302
|
+
))}
|
|
303
|
+
</ul>
|
|
304
|
+
</TabsContent>
|
|
305
|
+
<TabsContent value="telemetry">
|
|
306
|
+
<p className="mw-ui-template-hero-lead">
|
|
307
|
+
All numeric KPI counters, tabs, and overlays honor global
|
|
308
|
+
MotionProfile and prefers-reduced-motion automatically.
|
|
309
|
+
</p>
|
|
310
|
+
</TabsContent>
|
|
311
|
+
</Tabs>
|
|
312
|
+
</div>
|
|
313
|
+
);
|
|
314
|
+
}
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
import { useState } from "react";
|
|
2
|
+
import { Badge } from "./components/badge.js";
|
|
3
|
+
import { Button } from "./components/button.js";
|
|
4
|
+
import { Card, CardContent, CardHeader, CardTitle } from "./components/card.js";
|
|
5
|
+
import { KineticText } from "./motion.js";
|
|
6
|
+
import {
|
|
7
|
+
ActionHotbar,
|
|
8
|
+
BossHealthBar,
|
|
9
|
+
ComboCounter,
|
|
10
|
+
StatGauge,
|
|
11
|
+
TurnOrderStrip,
|
|
12
|
+
} from "./game.js";
|
|
13
|
+
import {
|
|
14
|
+
CartoonRig,
|
|
15
|
+
EpisodeTitleCard,
|
|
16
|
+
OnomatopoeiaSFX,
|
|
17
|
+
StoryboardPlayer,
|
|
18
|
+
} from "./cartoon.js";
|
|
19
|
+
|
|
20
|
+
export function WebLandingTemplate() {
|
|
21
|
+
return (
|
|
22
|
+
<div
|
|
23
|
+
style={{
|
|
24
|
+
display: "grid",
|
|
25
|
+
gap: "1rem",
|
|
26
|
+
padding: "1.25rem",
|
|
27
|
+
background: "var(--mw-background)",
|
|
28
|
+
border: "1.5px solid var(--mw-border)",
|
|
29
|
+
}}
|
|
30
|
+
>
|
|
31
|
+
<div style={{ display: "flex", flexWrap: "wrap", justifyContent: "space-between", alignItems: "center", gap: "0.75rem" }}>
|
|
32
|
+
<Badge variant="magenta" size="sm">
|
|
33
|
+
WEB LANDING STARTER
|
|
34
|
+
</Badge>
|
|
35
|
+
<div style={{ display: "flex", gap: "0.5rem" }}>
|
|
36
|
+
<Button size="xs" variant="outline">
|
|
37
|
+
Docs
|
|
38
|
+
</Button>
|
|
39
|
+
<Button size="xs" variant="default">
|
|
40
|
+
Launch
|
|
41
|
+
</Button>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
<div style={{ display: "grid", gap: "0.55rem" }}>
|
|
45
|
+
<KineticText text="BUILD DISTINCTIVE INTERFACES" splitBy="word" />
|
|
46
|
+
<p style={{ margin: 0, maxWidth: "40rem", color: "var(--mw-muted-foreground)", fontSize: "0.9rem" }}>
|
|
47
|
+
Shared design tokens, accessible primitives, and expressive motion
|
|
48
|
+
packed into one cohesive starter layout.
|
|
49
|
+
</p>
|
|
50
|
+
</div>
|
|
51
|
+
<div
|
|
52
|
+
style={{
|
|
53
|
+
display: "grid",
|
|
54
|
+
gridTemplateColumns: "repeat(auto-fit, minmax(12rem, 1fr))",
|
|
55
|
+
gap: "0.75rem",
|
|
56
|
+
}}
|
|
57
|
+
>
|
|
58
|
+
{[
|
|
59
|
+
["Tokens", "Multi-skin & Genre DNA"],
|
|
60
|
+
["Motion", "12 deterministic easing curves"],
|
|
61
|
+
["A11y", "Keyboard & contrast verified"],
|
|
62
|
+
].map(([title, copy]) => (
|
|
63
|
+
<Card key={title} padding="sm">
|
|
64
|
+
<CardHeader>
|
|
65
|
+
<CardTitle>{title}</CardTitle>
|
|
66
|
+
</CardHeader>
|
|
67
|
+
<CardContent>
|
|
68
|
+
<small style={{ color: "var(--mw-muted-foreground)" }}>{copy}</small>
|
|
69
|
+
</CardContent>
|
|
70
|
+
</Card>
|
|
71
|
+
))}
|
|
72
|
+
</div>
|
|
73
|
+
</div>
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function AppCommandTemplate() {
|
|
78
|
+
const [activeTab, setActiveTab] = useState<"queue" | "releases">("queue");
|
|
79
|
+
return (
|
|
80
|
+
<div
|
|
81
|
+
style={{
|
|
82
|
+
display: "grid",
|
|
83
|
+
gap: "0.9rem",
|
|
84
|
+
padding: "1.15rem",
|
|
85
|
+
background: "var(--mw-background)",
|
|
86
|
+
border: "1.5px solid var(--mw-border)",
|
|
87
|
+
}}
|
|
88
|
+
>
|
|
89
|
+
<div style={{ display: "flex", justifyContent: "space-between", alignItems: "center", flexWrap: "wrap", gap: "0.5rem" }}>
|
|
90
|
+
<strong style={{ fontFamily: "var(--mw-font-display)", fontSize: "1.15rem" }}>
|
|
91
|
+
APP COMMAND SHELL
|
|
92
|
+
</strong>
|
|
93
|
+
<div style={{ display: "flex", gap: "0.35rem" }}>
|
|
94
|
+
<Button
|
|
95
|
+
size="xs"
|
|
96
|
+
variant={activeTab === "queue" ? "default" : "outline"}
|
|
97
|
+
onClick={() => setActiveTab("queue")}
|
|
98
|
+
>
|
|
99
|
+
Review Queue
|
|
100
|
+
</Button>
|
|
101
|
+
<Button
|
|
102
|
+
size="xs"
|
|
103
|
+
variant={activeTab === "releases" ? "default" : "outline"}
|
|
104
|
+
onClick={() => setActiveTab("releases")}
|
|
105
|
+
>
|
|
106
|
+
Releases
|
|
107
|
+
</Button>
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
110
|
+
<div
|
|
111
|
+
style={{
|
|
112
|
+
display: "grid",
|
|
113
|
+
gridTemplateColumns: "repeat(auto-fit, minmax(13rem, 1fr))",
|
|
114
|
+
gap: "0.75rem",
|
|
115
|
+
}}
|
|
116
|
+
>
|
|
117
|
+
<Card padding="sm">
|
|
118
|
+
<CardHeader>
|
|
119
|
+
<CardTitle>
|
|
120
|
+
{activeTab === "queue" ? "Active Specimens" : "Release Channel"}
|
|
121
|
+
</CardTitle>
|
|
122
|
+
</CardHeader>
|
|
123
|
+
<CardContent>
|
|
124
|
+
<strong style={{ fontSize: "1.5rem" }}>
|
|
125
|
+
{activeTab === "queue" ? "34" : "v1.0.0-rc.1"}
|
|
126
|
+
</strong>
|
|
127
|
+
</CardContent>
|
|
128
|
+
</Card>
|
|
129
|
+
<Card padding="sm">
|
|
130
|
+
<CardHeader>
|
|
131
|
+
<CardTitle>Gate Health</CardTitle>
|
|
132
|
+
</CardHeader>
|
|
133
|
+
<CardContent>
|
|
134
|
+
<Badge variant="success" size="sm">
|
|
135
|
+
ALL GATES PASSING
|
|
136
|
+
</Badge>
|
|
137
|
+
</CardContent>
|
|
138
|
+
</Card>
|
|
139
|
+
</div>
|
|
140
|
+
</div>
|
|
141
|
+
);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export function GameBattleTemplate() {
|
|
145
|
+
const [bossHp, setBossHp] = useState(290);
|
|
146
|
+
const [combo, setCombo] = useState(4);
|
|
147
|
+
|
|
148
|
+
return (
|
|
149
|
+
<div
|
|
150
|
+
style={{
|
|
151
|
+
display: "grid",
|
|
152
|
+
gap: "0.9rem",
|
|
153
|
+
padding: "1.1rem",
|
|
154
|
+
background: "var(--mw-night-raised)",
|
|
155
|
+
color: "var(--mw-moon)",
|
|
156
|
+
border: "2px solid var(--mw-border-strong)",
|
|
157
|
+
}}
|
|
158
|
+
>
|
|
159
|
+
<BossHealthBar
|
|
160
|
+
characterId="lord-null"
|
|
161
|
+
hp={bossHp}
|
|
162
|
+
maxHp={380}
|
|
163
|
+
phases={3}
|
|
164
|
+
stagger={Math.min(100, combo * 14)}
|
|
165
|
+
broken={combo * 14 >= 100}
|
|
166
|
+
/>
|
|
167
|
+
<div style={{ display: "flex", flexWrap: "wrap", alignItems: "center", justifyContent: "space-between", gap: "0.75rem" }}>
|
|
168
|
+
<TurnOrderStrip
|
|
169
|
+
characterIds={["kuro-signal", "vesper-ink", "rocksoul-witness", "lord-null"]}
|
|
170
|
+
activeIndex={0}
|
|
171
|
+
/>
|
|
172
|
+
<ComboCounter count={combo} />
|
|
173
|
+
</div>
|
|
174
|
+
<div style={{ display: "grid", gridTemplateColumns: "repeat(auto-fit, minmax(12rem, 1fr))", gap: "0.75rem" }}>
|
|
175
|
+
<StatGauge label="KURO HP" value={88} max={100} tone="hp" segments={4} />
|
|
176
|
+
<StatGauge label="SIGNAL MP" value={72} max={100} tone="mp" segments={4} />
|
|
177
|
+
</div>
|
|
178
|
+
<ActionHotbar
|
|
179
|
+
slots={[
|
|
180
|
+
{ id: "slash", key: "1", label: "Signal Slash" },
|
|
181
|
+
{ id: "guard", key: "2", label: "Ink Guard" },
|
|
182
|
+
{ id: "reset", key: "R", label: "Reset Boss" },
|
|
183
|
+
]}
|
|
184
|
+
onTrigger={(id) => {
|
|
185
|
+
if (id === "slash") {
|
|
186
|
+
setBossHp((hp) => Math.max(0, hp - 34));
|
|
187
|
+
setCombo((c) => c + 1);
|
|
188
|
+
} else if (id === "reset") {
|
|
189
|
+
setBossHp(380);
|
|
190
|
+
setCombo(1);
|
|
191
|
+
}
|
|
192
|
+
}}
|
|
193
|
+
/>
|
|
194
|
+
</div>
|
|
195
|
+
);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
export function CartoonStudioTemplate() {
|
|
199
|
+
return (
|
|
200
|
+
<div
|
|
201
|
+
style={{
|
|
202
|
+
display: "grid",
|
|
203
|
+
gap: "0.9rem",
|
|
204
|
+
padding: "1.1rem",
|
|
205
|
+
background: "var(--mw-background)",
|
|
206
|
+
border: "1.5px solid var(--mw-border)",
|
|
207
|
+
}}
|
|
208
|
+
>
|
|
209
|
+
<EpisodeTitleCard episode="ACT 01 · STUDIO" title="MOONWITNESS SIGNAL" />
|
|
210
|
+
<div
|
|
211
|
+
style={{
|
|
212
|
+
display: "flex",
|
|
213
|
+
flexWrap: "wrap",
|
|
214
|
+
alignItems: "center",
|
|
215
|
+
gap: "1rem",
|
|
216
|
+
}}
|
|
217
|
+
>
|
|
218
|
+
<CartoonRig characterId="kuro-signal" mood="happy" emote="sparkle" size="md" />
|
|
219
|
+
<CartoonRig characterId="vesper-ink" mood="determined" size="md" />
|
|
220
|
+
<OnomatopoeiaSFX text="ZAP!!" tone="electric" tiltDeg={-6} />
|
|
221
|
+
</div>
|
|
222
|
+
<StoryboardPlayer />
|
|
223
|
+
</div>
|
|
224
|
+
);
|
|
225
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import type { BuiltinSkinId, SkinDensity } from "./types.js";
|
|
2
|
+
import type { ThemeMode } from "./provider.js";
|
|
3
|
+
import type { MotionProfile } from "../motion/physics.js";
|
|
4
|
+
|
|
5
|
+
export type GenreDnaPresetId =
|
|
6
|
+
| "signal-riot-zine"
|
|
7
|
+
| "shonen-anime"
|
|
8
|
+
| "arcade-fighter"
|
|
9
|
+
| "cozy-jrpg"
|
|
10
|
+
| "saturday-cartoon"
|
|
11
|
+
| "doodlebook-funky-grunge";
|
|
12
|
+
|
|
13
|
+
export interface GenreDnaPreset {
|
|
14
|
+
readonly id: GenreDnaPresetId;
|
|
15
|
+
readonly label: string;
|
|
16
|
+
readonly badge: string;
|
|
17
|
+
readonly description: string;
|
|
18
|
+
readonly skin: BuiltinSkinId;
|
|
19
|
+
readonly mode: ThemeMode;
|
|
20
|
+
readonly density: SkinDensity;
|
|
21
|
+
readonly motionProfile: MotionProfile;
|
|
22
|
+
readonly dnaAttribute: GenreDnaPresetId;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const GENRE_DNA_PRESETS: readonly GenreDnaPreset[] = Object.freeze([
|
|
26
|
+
Object.freeze({
|
|
27
|
+
id: "signal-riot-zine",
|
|
28
|
+
label: "Signal Riot Zine",
|
|
29
|
+
badge: "ZINE",
|
|
30
|
+
description:
|
|
31
|
+
"Razor ink borders, Ben-Day halftone, electric magenta & canary punch.",
|
|
32
|
+
skin: "moonwitness-riot",
|
|
33
|
+
mode: "dark",
|
|
34
|
+
density: "comfortable",
|
|
35
|
+
motionProfile: "expressive",
|
|
36
|
+
dnaAttribute: "signal-riot-zine",
|
|
37
|
+
}),
|
|
38
|
+
Object.freeze({
|
|
39
|
+
id: "shonen-anime",
|
|
40
|
+
label: "Shonen Anime",
|
|
41
|
+
badge: "ANIME",
|
|
42
|
+
description:
|
|
43
|
+
"Manga ink paper, kinetic diagonal cut-ins, speedlines, and 12fps snaps.",
|
|
44
|
+
skin: "moonwitness-ink",
|
|
45
|
+
mode: "light",
|
|
46
|
+
density: "comfortable",
|
|
47
|
+
motionProfile: "cartoon",
|
|
48
|
+
dnaAttribute: "shonen-anime",
|
|
49
|
+
}),
|
|
50
|
+
Object.freeze({
|
|
51
|
+
id: "arcade-fighter",
|
|
52
|
+
label: "Arcade Fighter",
|
|
53
|
+
badge: "ARCADE",
|
|
54
|
+
description:
|
|
55
|
+
"Obsidian cyber-cabinet HUD, skewed combo meters, scanlines, and chromatic hit.",
|
|
56
|
+
skin: "arcade-neon",
|
|
57
|
+
mode: "dark",
|
|
58
|
+
density: "compact",
|
|
59
|
+
motionProfile: "expressive",
|
|
60
|
+
dnaAttribute: "arcade-fighter",
|
|
61
|
+
}),
|
|
62
|
+
Object.freeze({
|
|
63
|
+
id: "cozy-jrpg",
|
|
64
|
+
label: "Cozy JRPG",
|
|
65
|
+
badge: "JRPG",
|
|
66
|
+
description:
|
|
67
|
+
"Warm storybook parchment, gilded quest crests, and gentle dialogue cadence.",
|
|
68
|
+
skin: "cozy-rpg",
|
|
69
|
+
mode: "light",
|
|
70
|
+
density: "comfortable",
|
|
71
|
+
motionProfile: "subtle",
|
|
72
|
+
dnaAttribute: "cozy-jrpg",
|
|
73
|
+
}),
|
|
74
|
+
Object.freeze({
|
|
75
|
+
id: "saturday-cartoon",
|
|
76
|
+
label: "Saturday Cartoon",
|
|
77
|
+
badge: "TOON",
|
|
78
|
+
description:
|
|
79
|
+
"Chunky cel-shaded ink outlines, squash-stretch springs, and starburst SFX.",
|
|
80
|
+
skin: "cartoon-pop",
|
|
81
|
+
mode: "light",
|
|
82
|
+
density: "comfortable",
|
|
83
|
+
motionProfile: "cartoon",
|
|
84
|
+
dnaAttribute: "saturday-cartoon",
|
|
85
|
+
}),
|
|
86
|
+
Object.freeze({
|
|
87
|
+
id: "doodlebook-funky-grunge",
|
|
88
|
+
label: "Doodlebook Funky Grunge",
|
|
89
|
+
badge: "DOODLE",
|
|
90
|
+
description:
|
|
91
|
+
"Classroom activity-book energy with chunky ink, bright doodles, and playful zine motion.",
|
|
92
|
+
skin: "doodlebook",
|
|
93
|
+
mode: "light",
|
|
94
|
+
density: "comfortable",
|
|
95
|
+
motionProfile: "cartoon",
|
|
96
|
+
dnaAttribute: "doodlebook-funky-grunge",
|
|
97
|
+
}),
|
|
98
|
+
]);
|
|
99
|
+
|
|
100
|
+
export function getGenreDnaPresetById(
|
|
101
|
+
id?: string | null,
|
|
102
|
+
): GenreDnaPreset | undefined {
|
|
103
|
+
if (!id) return undefined;
|
|
104
|
+
return GENRE_DNA_PRESETS.find((preset) => preset.id === id);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export function applyGenreDnaAttribute(
|
|
108
|
+
presetId: GenreDnaPresetId | null,
|
|
109
|
+
root: HTMLElement | null = typeof document !== "undefined"
|
|
110
|
+
? document.documentElement
|
|
111
|
+
: null,
|
|
112
|
+
): void {
|
|
113
|
+
if (!root) return;
|
|
114
|
+
if (!presetId) {
|
|
115
|
+
delete root.dataset.dna;
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
root.dataset.dna = presetId;
|
|
119
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* React-aware theme barrel.
|
|
3
|
+
*
|
|
4
|
+
* The skin catalogue itself lives in `../skin-catalog.ts` so that token-only
|
|
5
|
+
* consumers can import it without pulling React in. Everything below re-exports
|
|
6
|
+
* that catalogue unchanged, so `@moonwitness/ui/themes` keeps its public surface.
|
|
7
|
+
*/
|
|
8
|
+
export {
|
|
9
|
+
BUILTIN_SKINS,
|
|
10
|
+
DEFAULT_SKIN_ID,
|
|
11
|
+
createSkinInitScript,
|
|
12
|
+
createThemeRegistry,
|
|
13
|
+
themeRegistry,
|
|
14
|
+
type SkinInitScriptOptions,
|
|
15
|
+
} from "../skin-catalog.js";
|
|
16
|
+
|
|
17
|
+
export type {
|
|
18
|
+
BuiltinSkinId,
|
|
19
|
+
ColorMode,
|
|
20
|
+
SkinDensity,
|
|
21
|
+
SkinId,
|
|
22
|
+
SkinMetadata,
|
|
23
|
+
SkinSwatchPreview,
|
|
24
|
+
ThemeRegistry,
|
|
25
|
+
UserThemePreferences,
|
|
26
|
+
} from "./types.js";
|
|
27
|
+
export {
|
|
28
|
+
DEFAULT_THEME_STORAGE_KEY,
|
|
29
|
+
ThemeProvider,
|
|
30
|
+
useTheme,
|
|
31
|
+
applyThemeState,
|
|
32
|
+
type ThemeContextValue,
|
|
33
|
+
type ThemeMode,
|
|
34
|
+
type ThemeProviderProps,
|
|
35
|
+
type ThemeState,
|
|
36
|
+
} from "./provider.js";
|
|
37
|
+
export {
|
|
38
|
+
GENRE_DNA_PRESETS,
|
|
39
|
+
getGenreDnaPresetById,
|
|
40
|
+
applyGenreDnaAttribute,
|
|
41
|
+
type GenreDnaPreset,
|
|
42
|
+
type GenreDnaPresetId,
|
|
43
|
+
} from "./dna-presets.js";
|