@moonwitness/ui 0.0.0-stage → 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 +147 -2
- 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 +543 -4
- 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
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
import { BUILTIN_SKINS, DEFAULT_SKIN_ID } from "./skin-catalog.js";
|
|
2
|
+
const CORE_TOKEN_SEEDS = [
|
|
3
|
+
["paper-cream", "#f3efe4", "color"],
|
|
4
|
+
["ink-black", "#0d0d0d", "color"],
|
|
5
|
+
["ink-panel", "#17171a", "color"],
|
|
6
|
+
["paper", "#f3efe4", "color", "#0e0e10"],
|
|
7
|
+
["paper-raised", "#fffdf6", "color", "#17171a"],
|
|
8
|
+
["ink", "#0d0d0d", "color", "#f3efe4"],
|
|
9
|
+
["ink-soft", "#3a3a36", "color", "#c9c5b8"],
|
|
10
|
+
["ink-faint", "#59574e", "color", "#9b988f"],
|
|
11
|
+
["color-ink-muted", "#59574e", "color", "#9b988f"],
|
|
12
|
+
["signal-blue", "#00b8f0", "color"],
|
|
13
|
+
["cyan", "#00b8f0", "color"],
|
|
14
|
+
["night", "#0d0d0d", "color"],
|
|
15
|
+
["night-soft", "#121216", "color"],
|
|
16
|
+
["night-raised", "#17171a", "color"],
|
|
17
|
+
["night-blue", "#092c49", "color"],
|
|
18
|
+
["night-magenta", "#421027", "color"],
|
|
19
|
+
[
|
|
20
|
+
"night-outline",
|
|
21
|
+
"color-mix(in srgb, var(--mw-paper-cream) 22%, transparent)",
|
|
22
|
+
"color",
|
|
23
|
+
],
|
|
24
|
+
["paper-highlight", "#e3dfd4", "color"],
|
|
25
|
+
["paper-muted", "#cbc7bd", "color"],
|
|
26
|
+
["moon", "#b6cad7", "color"],
|
|
27
|
+
["yellow", "#ffe031", "color"],
|
|
28
|
+
["magenta", "#ff2e88", "color"],
|
|
29
|
+
["violet", "#c084fc", "color"],
|
|
30
|
+
["yellow-readable", "#705900", "color", "#ffe031"],
|
|
31
|
+
["magenta-readable", "#b20f55", "color", "#ff2e88"],
|
|
32
|
+
["cyan-readable", "#00749a", "color", "#00b8f0"],
|
|
33
|
+
["violet-readable", "#6d28d9", "color", "#c084fc"],
|
|
34
|
+
["on-accent", "#0d0d0d", "color"],
|
|
35
|
+
["on-magenta", "#0d0d0d", "color"],
|
|
36
|
+
["on-violet", "#0d0d0d", "color"],
|
|
37
|
+
["halftone-dot", "color-mix(in srgb, #0d0d0d 13%, transparent)", "color", "color-mix(in srgb, #f3efe4 9%, transparent)"],
|
|
38
|
+
["highlight", "#ffffff", "color"],
|
|
39
|
+
["background", "#f3efe4", "color", "#0e0e10"],
|
|
40
|
+
["foreground", "#0d0d0d", "color", "#f3efe4"],
|
|
41
|
+
["surface", "#fffdf6", "color", "#17171a"],
|
|
42
|
+
["surface-foreground", "#0d0d0d", "color", "#f3efe4"],
|
|
43
|
+
["popover", "#fffdf6", "color", "#17171a"],
|
|
44
|
+
["popover-foreground", "#0d0d0d", "color", "#f3efe4"],
|
|
45
|
+
["primary", "#ffe031", "color", "#ffe031"],
|
|
46
|
+
["primary-foreground", "#0d0d0d", "color"],
|
|
47
|
+
["secondary", "#f3efe4", "color", "#0e0e10"],
|
|
48
|
+
["secondary-foreground", "#0d0d0d", "color", "#f3efe4"],
|
|
49
|
+
["muted", "#e7e2d4", "color", "#232327"],
|
|
50
|
+
["muted-foreground", "#3a3a36", "color", "#c9c5b8"],
|
|
51
|
+
["accent", "#ffe031", "color"],
|
|
52
|
+
["accent-foreground", "#0d0d0d", "color"],
|
|
53
|
+
["interactive-accent", "var(--mw-magenta)", "color"],
|
|
54
|
+
["error", "#b42318", "color", "#fda29b"],
|
|
55
|
+
["on-error", "#fffdf6", "color", "#0d0d0d"],
|
|
56
|
+
["destructive", "#b42318", "color", "#fda29b"],
|
|
57
|
+
["destructive-foreground", "#fffdf6", "color", "#0d0d0d"],
|
|
58
|
+
["border", "#0d0d0d", "color", "#f3efe4"],
|
|
59
|
+
["border-strong", "#0d0d0d", "color", "#f3efe4"],
|
|
60
|
+
[
|
|
61
|
+
"border-subtle",
|
|
62
|
+
"color-mix(in srgb, var(--mw-ink) 35%, var(--mw-paper))",
|
|
63
|
+
"color",
|
|
64
|
+
],
|
|
65
|
+
["input", "#0d0d0d", "color", "#f3efe4"],
|
|
66
|
+
["focus", "#0d0d0d", "color", "#f3efe4"],
|
|
67
|
+
["backdrop", "color-mix(in srgb, #0d0d0d 50%, transparent)", "color"],
|
|
68
|
+
["success", "#166534", "color"],
|
|
69
|
+
["on-success", "#fffdf6", "color"],
|
|
70
|
+
["warning", "#facc15", "color"],
|
|
71
|
+
["on-warning", "#0d0d0d", "color"],
|
|
72
|
+
["warning-readable", "#705900", "color", "#facc15"],
|
|
73
|
+
["success-readable", "#166534", "color", "#86efac"],
|
|
74
|
+
["info", "#175cd3", "color"],
|
|
75
|
+
["on-info", "#fffdf6", "color"],
|
|
76
|
+
["chart-1", "#476a2a", "color"],
|
|
77
|
+
["chart-2", "#ff2e88", "color"],
|
|
78
|
+
["chart-3", "#176b87", "color"],
|
|
79
|
+
["chart-4", "#936a22", "color"],
|
|
80
|
+
["chart-5", "#76519b", "color"],
|
|
81
|
+
["brand-crimson", "#D1132A", "color"],
|
|
82
|
+
["signal-crimson", "#9F1022", "color"],
|
|
83
|
+
[
|
|
84
|
+
"font-display",
|
|
85
|
+
"'Anton', 'MoonWitness Grunge', Impact, 'Arial Narrow', sans-serif",
|
|
86
|
+
"typography",
|
|
87
|
+
],
|
|
88
|
+
[
|
|
89
|
+
"font-grunge",
|
|
90
|
+
"'MoonWitness Grunge', 'Road Rage', Impact, 'Arial Narrow', sans-serif",
|
|
91
|
+
"typography",
|
|
92
|
+
],
|
|
93
|
+
[
|
|
94
|
+
"font-condensed",
|
|
95
|
+
"'MoonWitness Grunge', 'Road Rage', Impact, 'Arial Narrow', sans-serif",
|
|
96
|
+
"typography",
|
|
97
|
+
],
|
|
98
|
+
[
|
|
99
|
+
"font-brush",
|
|
100
|
+
"'Road Rage', 'MoonWitness Grunge', Impact, 'Arial Narrow', sans-serif",
|
|
101
|
+
"typography",
|
|
102
|
+
],
|
|
103
|
+
[
|
|
104
|
+
"font-sans",
|
|
105
|
+
"'Space Grotesk', ui-sans-serif, system-ui, sans-serif",
|
|
106
|
+
"typography",
|
|
107
|
+
],
|
|
108
|
+
[
|
|
109
|
+
"font-mono",
|
|
110
|
+
"'JetBrains Mono', ui-monospace, SFMono-Regular, monospace",
|
|
111
|
+
"typography",
|
|
112
|
+
],
|
|
113
|
+
["font-size-2xs", "0.75rem", "typography"],
|
|
114
|
+
["font-size-xs", "0.75rem", "typography"],
|
|
115
|
+
["font-size-sm", "0.875rem", "typography"],
|
|
116
|
+
["font-size-md", "1rem", "typography"],
|
|
117
|
+
["font-size-lg", "1.125rem", "typography"],
|
|
118
|
+
["font-size-xl", "1.25rem", "typography"],
|
|
119
|
+
["font-size-2xl", "1.5rem", "typography"],
|
|
120
|
+
["line-height-tight", "1.2", "typography"],
|
|
121
|
+
["line-height-normal", "1.5", "typography"],
|
|
122
|
+
["avatar-size", "2.5rem", "spacing"],
|
|
123
|
+
["space-1", "0.25rem", "spacing"],
|
|
124
|
+
["space-2", "0.5rem", "spacing"],
|
|
125
|
+
["space-3", "0.75rem", "spacing"],
|
|
126
|
+
["space-4", "1rem", "spacing"],
|
|
127
|
+
["space-6", "1.5rem", "spacing"],
|
|
128
|
+
["space-8", "2rem", "spacing"],
|
|
129
|
+
["panel-gap-compact", "0.375rem", "spacing"],
|
|
130
|
+
["panel-gap-comfortable", "0.75rem", "spacing"],
|
|
131
|
+
["panel-padding-compact", "0.625rem", "spacing"],
|
|
132
|
+
["panel-padding-comfortable", "1rem", "spacing"],
|
|
133
|
+
["frame-width", "2px", "spacing"],
|
|
134
|
+
["torn-safe-inset", "0.75rem", "spacing"],
|
|
135
|
+
["decorative-rotation", "1.5deg", "effect"],
|
|
136
|
+
["radius-xs", "2px", "radius"],
|
|
137
|
+
["radius-sm", "0.125rem", "radius"],
|
|
138
|
+
["radius-md", "0.25rem", "radius"],
|
|
139
|
+
["radius-lg", "0.5rem", "radius"],
|
|
140
|
+
["radius-full", "9999px", "radius"],
|
|
141
|
+
["shadow-ink", "3px 3px 0 0 var(--mw-ink)", "shadow"],
|
|
142
|
+
["shadow-ink-lg", "6px 6px 0 0 var(--mw-ink)", "shadow"],
|
|
143
|
+
["shadow-accent-cyan", "4px 4px 0 var(--mw-cyan)", "shadow"],
|
|
144
|
+
["shadow-accent-magenta", "4px 4px 0 var(--mw-magenta)", "shadow"],
|
|
145
|
+
["comic-border-width", "2px", "spacing"],
|
|
146
|
+
["comic-gutter", "0.75rem", "spacing"],
|
|
147
|
+
["shadow-comic", "4px 4px 0 0 var(--mw-ink)", "shadow"],
|
|
148
|
+
["dna-skew", "-8deg", "effect"],
|
|
149
|
+
["dna-halftone-size", "7px", "effect"],
|
|
150
|
+
["dna-halftone-opacity", "0.16", "effect"],
|
|
151
|
+
["dna-cel-highlight", "color-mix(in srgb, #ffffff 38%, transparent)", "color"],
|
|
152
|
+
["dna-border-heavy", "3px", "spacing"],
|
|
153
|
+
["dna-speedline-opacity", "0.22", "effect"],
|
|
154
|
+
["dna-chromatic-x", "3px", "effect"],
|
|
155
|
+
["anime-skin", "#fad7bf", "color"],
|
|
156
|
+
["anime-skin-shade", "#deb094", "color"],
|
|
157
|
+
["anime-skin-highlight", "#fff0e5", "color"],
|
|
158
|
+
["motion-pop", "180ms", "motion"],
|
|
159
|
+
["motion-fast", "120ms", "motion"],
|
|
160
|
+
["motion-normal", "160ms", "motion"],
|
|
161
|
+
["motion-slow", "220ms", "motion"],
|
|
162
|
+
["motion-delay", "200ms", "motion"],
|
|
163
|
+
["motion-draw", "700ms", "motion"],
|
|
164
|
+
["motion-effect", "1200ms", "motion"],
|
|
165
|
+
["motion-pulse", "1600ms", "motion"],
|
|
166
|
+
["motion-progress", "1400ms", "motion"],
|
|
167
|
+
["motion-spin", "800ms", "motion"],
|
|
168
|
+
["motion-anime-snap", "180ms", "motion"],
|
|
169
|
+
["motion-anime-slash", "360ms", "motion"],
|
|
170
|
+
["motion-anime-burst", "480ms", "motion"],
|
|
171
|
+
["motion-grunge-jitter", "900ms", "motion"],
|
|
172
|
+
[
|
|
173
|
+
"shadow-anime-impact",
|
|
174
|
+
"4px 4px 0 0 var(--mw-ink), 7px 7px 0 0 var(--mw-magenta)",
|
|
175
|
+
"shadow",
|
|
176
|
+
],
|
|
177
|
+
["grunge-grain-opacity", "0.14", "effect"],
|
|
178
|
+
[
|
|
179
|
+
"grunge-clip-rough",
|
|
180
|
+
"polygon(0.5% 1.8%, 9% 0%, 21% 1.6%, 35% 0.2%, 49% 1.5%, 64% 0%, 79% 1.4%, 92% 0.2%, 99.6% 1.2%, 100% 19%, 98.8% 38%, 100% 59%, 99% 81%, 99.7% 99%, 84% 100%, 67% 98.6%, 48% 100%, 31% 98.8%, 14% 100%, 0.4% 98.7%, 1% 77%, 0% 54%, 1.1% 29%)",
|
|
181
|
+
"effect",
|
|
182
|
+
],
|
|
183
|
+
[
|
|
184
|
+
"grunge-clip-jagged",
|
|
185
|
+
"polygon(0% 8%, 7% 0%, 16% 6%, 28% 0%, 42% 5%, 56% 0%, 71% 6%, 85% 0%, 96% 4%, 100% 14%, 98% 35%, 100% 58%, 97% 84%, 100% 96%, 89% 100%, 74% 95%, 58% 100%, 41% 96%, 23% 100%, 8% 95%, 0% 99%, 2% 72%, 0% 45%)",
|
|
186
|
+
"effect",
|
|
187
|
+
],
|
|
188
|
+
[
|
|
189
|
+
"grunge-clip-tape",
|
|
190
|
+
"polygon(1.2% 6%, 14% 0%, 31% 4%, 52% 0%, 73% 5%, 90% 0%, 99.2% 7%, 98.4% 48%, 100% 92%, 86% 100%, 66% 95%, 44% 100%, 22% 96%, 0.8% 99%, 1.6% 54%)",
|
|
191
|
+
"effect",
|
|
192
|
+
],
|
|
193
|
+
[
|
|
194
|
+
"grunge-clip-torn-card",
|
|
195
|
+
"polygon(0.8% 1.4%, 11% 0%, 24% 1.1%, 39% 0%, 56% 1.2%, 72% 0%, 87% 1%, 99.3% 0.4%, 100% 17%, 99.1% 39%, 100% 62%, 99.2% 83%, 99.6% 99%, 85% 100%, 68% 98.8%, 49% 100%, 29% 98.9%, 12% 100%, 0.5% 98.8%, 1% 76%, 0% 51%, 0.9% 25%)",
|
|
196
|
+
"effect",
|
|
197
|
+
],
|
|
198
|
+
[
|
|
199
|
+
"grunge-clip-brush-btn",
|
|
200
|
+
"polygon(0.4% 14%, 9% 2%, 22% 10%, 37% 0%, 54% 8%, 71% 1%, 87% 7%, 100% 0%, 96% 32%, 100% 60%, 94% 96%, 76% 89%, 57% 100%, 35% 91%, 15% 100%, 0% 95%, 4% 62%, 0% 36%)",
|
|
201
|
+
"effect",
|
|
202
|
+
],
|
|
203
|
+
[
|
|
204
|
+
"chalk-mask",
|
|
205
|
+
"url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100' preserveAspectRatio='none'%3E%3Cpath d='M0.5 0.5L28 0.2 58 0.8 92 0.2 128 0.8 166 0.2 199.5 0.5 199.2 26 199.8 54 199.2 80 199.5 99.5 164 99.2 126 99.8 88 99.2 48 99.8 14 99.2 0.5 99.5 0.8 70 0.2 40 0.8 14Z' fill='none' stroke='%23000' stroke-width='2.2' vector-effect='non-scaling-stroke' stroke-dasharray='26 3 10 2 34 4'/%3E%3Cpath d='M2 1.2L52 0.8M78 0.8L128 1.2M154 0.8L196 1.2M4 98.8L62 99.2M100 98.8L148 99.2M172 99.2L198 98.6M1.2 22L0.8 56M198.8 28L199.2 66' fill='none' stroke='%23000' stroke-width='2.2' vector-effect='non-scaling-stroke' stroke-dasharray='9 4 4 5'/%3E%3C/svg%3E\")",
|
|
206
|
+
"effect",
|
|
207
|
+
],
|
|
208
|
+
[
|
|
209
|
+
"grunge-clip-notched",
|
|
210
|
+
"polygon(0.6% 0%, 99.4% 0%, 100% 4%, 99.6% 96%, 99% 100%, 0.8% 100%, 0% 95%, 0.4% 5%)",
|
|
211
|
+
"effect",
|
|
212
|
+
],
|
|
213
|
+
["grunge-radius-hand", "3px 1px 4px 1px / 1px 4px 2px 3px", "radius"],
|
|
214
|
+
["surface-muted", "#e7e2d4", "color", "#232327"],
|
|
215
|
+
["surface-elevated", "#fffdf6", "color", "#17171a"],
|
|
216
|
+
["error-readable", "#b42318", "color", "#fda29b"],
|
|
217
|
+
["font-size-base", "1rem", "typography"],
|
|
218
|
+
["space-5", "1.25rem", "spacing"],
|
|
219
|
+
["shadow-ink-sm", "2px 2px 0 0 var(--mw-ink)", "shadow", "2px 2px 0 0 var(--mw-ink)"],
|
|
220
|
+
["motion-ease-standard", "cubic-bezier(0.2, 0.8, 0.2, 1)", "motion"],
|
|
221
|
+
["anime-ink", "#111116", "color"],
|
|
222
|
+
["anime-face", "#f8ece0", "color"],
|
|
223
|
+
["anime-highlight", "#ffffff", "color"],
|
|
224
|
+
["fx-flash", "color-mix(in srgb, #ffffff 35%, transparent)", "color"],
|
|
225
|
+
["fx-chromatic-pulse", "linear-gradient( 90deg, color-mix(in srgb, #ff2e88 22%, transparent), transparent 45%, color-mix(in srgb, #00d4ff 22%, transparent))", "effect"],
|
|
226
|
+
["fx-speedlines-burst", "radial-gradient( circle, transparent 42%, color-mix(in srgb, #ff2e88 28%, transparent) 100%)", "effect"],
|
|
227
|
+
["fx-vignette", "radial-gradient( circle, transparent 50%, color-mix(in srgb, #0a0a10 45%, transparent) 100%)", "effect"],
|
|
228
|
+
["motion-ease", "cubic-bezier(0.2, 0.8, 0.2, 1)", "motion"],
|
|
229
|
+
["motion-ease-emphasis", "cubic-bezier(0.34, 1.56, 0.64, 1)", "motion"],
|
|
230
|
+
["layer-base", "0", "layer"],
|
|
231
|
+
["layer-raised", "10", "layer"],
|
|
232
|
+
["layer-sticky", "20", "layer"],
|
|
233
|
+
["layer-overlay", "40", "layer"],
|
|
234
|
+
["layer-dialog", "50", "layer"],
|
|
235
|
+
["layer-popover", "55", "layer"],
|
|
236
|
+
["layer-toast", "60", "layer"],
|
|
237
|
+
["motion-scale", "1", "motion"],
|
|
238
|
+
];
|
|
239
|
+
/** Canonical MoonWitness design tokens aligned with `tokens.css` plus ROCKSOUL crimson accents. */
|
|
240
|
+
export const CORE_DESIGN_TOKENS = Object.freeze(CORE_TOKEN_SEEDS.map(([name, value, category, darkValue]) => Object.freeze({
|
|
241
|
+
name,
|
|
242
|
+
cssVariable: `--mw-${name}`,
|
|
243
|
+
value,
|
|
244
|
+
...(darkValue !== undefined ? { darkValue } : {}),
|
|
245
|
+
category,
|
|
246
|
+
})));
|
|
247
|
+
export { BUILTIN_SKINS, DEFAULT_SKIN_ID };
|
|
248
|
+
export function resolveW3cType(entry) {
|
|
249
|
+
switch (entry.category) {
|
|
250
|
+
case "color":
|
|
251
|
+
return "color";
|
|
252
|
+
case "spacing":
|
|
253
|
+
return "dimension";
|
|
254
|
+
case "radius":
|
|
255
|
+
return entry.name === "grunge-radius-hand" ? "string" : "dimension";
|
|
256
|
+
case "motion":
|
|
257
|
+
if (entry.value.endsWith("ms") || entry.value.endsWith("s"))
|
|
258
|
+
return "duration";
|
|
259
|
+
if (entry.value.startsWith("cubic-bezier("))
|
|
260
|
+
return "cubicBezier";
|
|
261
|
+
return "number";
|
|
262
|
+
case "typography":
|
|
263
|
+
if (entry.name.startsWith("font-size-"))
|
|
264
|
+
return "dimension";
|
|
265
|
+
if (entry.name.startsWith("line-height-"))
|
|
266
|
+
return "number";
|
|
267
|
+
return "fontFamily";
|
|
268
|
+
default:
|
|
269
|
+
return "string";
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
export const TOKEN_BY_VAR = new Map(CORE_DESIGN_TOKENS.map((entry) => [entry.cssVariable, entry]));
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type TokenCategory = "colors" | "spacing" | "typography";
|
|
2
|
+
export type TokenExportFormat = "css" | "json" | "tailwind";
|
|
3
|
+
export interface ActiveDesignTokenSnapshot {
|
|
4
|
+
readonly meta: {
|
|
5
|
+
readonly theme: string;
|
|
6
|
+
readonly skin: string;
|
|
7
|
+
readonly density: string;
|
|
8
|
+
};
|
|
9
|
+
readonly colors: Readonly<Record<string, string>>;
|
|
10
|
+
readonly spacing: Readonly<Record<string, string>>;
|
|
11
|
+
readonly typography: Readonly<Record<string, string>>;
|
|
12
|
+
}
|
|
13
|
+
export declare const COLOR_TOKENS: readonly string[];
|
|
14
|
+
export declare const SPACING_TOKENS: readonly string[];
|
|
15
|
+
export declare const TYPOGRAPHY_TOKENS: readonly string[];
|
|
16
|
+
export declare function collectActiveDesignTokens(root?: HTMLElement | null): ActiveDesignTokenSnapshot;
|
|
17
|
+
export declare function formatTokensAsCss(snapshot: ActiveDesignTokenSnapshot, categories?: readonly TokenCategory[]): string;
|
|
18
|
+
export declare function formatTokensAsJson(snapshot: ActiveDesignTokenSnapshot, categories?: readonly TokenCategory[]): string;
|
|
19
|
+
export declare function formatTokensAsTailwindTheme(snapshot: ActiveDesignTokenSnapshot, categories?: readonly TokenCategory[]): string;
|
|
20
|
+
export declare function buildTokenExportFilename(snapshot: ActiveDesignTokenSnapshot, format: TokenExportFormat): string;
|
|
21
|
+
export declare function downloadTokenFile(content: string, filename: string, mimeType: string): void;
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { CORE_DESIGN_TOKENS } from "./token-seeds.js";
|
|
2
|
+
const tokenNames = (...categories) => CORE_DESIGN_TOKENS.filter((entry) => categories.includes(entry.category)).map((entry) => entry.cssVariable);
|
|
3
|
+
export const COLOR_TOKENS = tokenNames("color");
|
|
4
|
+
export const SPACING_TOKENS = tokenNames("spacing", "radius", "shadow");
|
|
5
|
+
export const TYPOGRAPHY_TOKENS = tokenNames("typography");
|
|
6
|
+
function readTokenGroup(tokens, computed) {
|
|
7
|
+
const entries = {};
|
|
8
|
+
for (const token of tokens) {
|
|
9
|
+
entries[token] = computed?.getPropertyValue(token).trim() || `var(${token})`;
|
|
10
|
+
}
|
|
11
|
+
return entries;
|
|
12
|
+
}
|
|
13
|
+
export function collectActiveDesignTokens(root = typeof document === "undefined"
|
|
14
|
+
? null
|
|
15
|
+
: document.documentElement) {
|
|
16
|
+
const computed = root && typeof window !== "undefined" ? window.getComputedStyle(root) : null;
|
|
17
|
+
const theme = root?.dataset.theme ||
|
|
18
|
+
(root?.classList.contains("high-contrast")
|
|
19
|
+
? "high-contrast"
|
|
20
|
+
: root?.classList.contains("dark")
|
|
21
|
+
? "dark"
|
|
22
|
+
: "light");
|
|
23
|
+
const skin = root?.dataset.skin || "moonwitness-ink";
|
|
24
|
+
const density = root?.dataset.density || "comfortable";
|
|
25
|
+
return {
|
|
26
|
+
meta: { theme, skin, density },
|
|
27
|
+
colors: readTokenGroup(COLOR_TOKENS, computed),
|
|
28
|
+
spacing: readTokenGroup(SPACING_TOKENS, computed),
|
|
29
|
+
typography: readTokenGroup(TYPOGRAPHY_TOKENS, computed),
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
function snapshotGroups(snapshot, categories) {
|
|
33
|
+
const active = new Set(categories);
|
|
34
|
+
const groups = [];
|
|
35
|
+
if (active.has("colors"))
|
|
36
|
+
groups.push(["Colors", snapshot.colors]);
|
|
37
|
+
if (active.has("spacing"))
|
|
38
|
+
groups.push(["Spacing, Radii & Shadows", snapshot.spacing]);
|
|
39
|
+
if (active.has("typography"))
|
|
40
|
+
groups.push(["Typography", snapshot.typography]);
|
|
41
|
+
return groups;
|
|
42
|
+
}
|
|
43
|
+
export function formatTokensAsCss(snapshot, categories = ["colors", "spacing", "typography"]) {
|
|
44
|
+
const lines = [
|
|
45
|
+
`/* MoonWitness Design Tokens — theme: ${snapshot.meta.theme}, skin: ${snapshot.meta.skin}, density: ${snapshot.meta.density} */`,
|
|
46
|
+
":root {",
|
|
47
|
+
];
|
|
48
|
+
for (const [heading, tokens] of snapshotGroups(snapshot, categories)) {
|
|
49
|
+
lines.push(` /* ${heading} */`);
|
|
50
|
+
for (const [name, value] of Object.entries(tokens)) {
|
|
51
|
+
lines.push(` ${name}: ${value};`);
|
|
52
|
+
}
|
|
53
|
+
lines.push("");
|
|
54
|
+
}
|
|
55
|
+
if (lines[lines.length - 1] === "")
|
|
56
|
+
lines.pop();
|
|
57
|
+
lines.push("}");
|
|
58
|
+
return `${lines.join("\n")}\n`;
|
|
59
|
+
}
|
|
60
|
+
export function formatTokensAsJson(snapshot, categories = ["colors", "spacing", "typography"]) {
|
|
61
|
+
const active = new Set(categories);
|
|
62
|
+
const payload = { meta: { ...snapshot.meta } };
|
|
63
|
+
if (active.has("colors"))
|
|
64
|
+
payload.colors = snapshot.colors;
|
|
65
|
+
if (active.has("spacing"))
|
|
66
|
+
payload.spacing = snapshot.spacing;
|
|
67
|
+
if (active.has("typography"))
|
|
68
|
+
payload.typography = snapshot.typography;
|
|
69
|
+
return `${JSON.stringify(payload, null, 2)}\n`;
|
|
70
|
+
}
|
|
71
|
+
export function formatTokensAsTailwindTheme(snapshot, categories = ["colors", "spacing", "typography"]) {
|
|
72
|
+
const lines = [
|
|
73
|
+
`/* MoonWitness Tailwind v4 @theme — theme: ${snapshot.meta.theme}, skin: ${snapshot.meta.skin}, density: ${snapshot.meta.density} */`,
|
|
74
|
+
"@theme {",
|
|
75
|
+
];
|
|
76
|
+
const active = new Set(categories);
|
|
77
|
+
if (active.has("colors")) {
|
|
78
|
+
for (const [name, value] of Object.entries(snapshot.colors)) {
|
|
79
|
+
lines.push(` --color-mw-${name.replace(/^--mw-/, "")}: ${value};`);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
if (active.has("spacing")) {
|
|
83
|
+
for (const [name, value] of Object.entries(snapshot.spacing)) {
|
|
84
|
+
const key = name.replace(/^--mw-/, "");
|
|
85
|
+
if (key.startsWith("radius-")) {
|
|
86
|
+
lines.push(` --radius-mw-${key.slice(7)}: ${value};`);
|
|
87
|
+
}
|
|
88
|
+
else if (key.startsWith("shadow-")) {
|
|
89
|
+
lines.push(` --shadow-mw-${key.slice(7)}: ${value};`);
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
lines.push(` --spacing-mw-${key}: ${value};`);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
if (active.has("typography")) {
|
|
97
|
+
for (const [name, value] of Object.entries(snapshot.typography)) {
|
|
98
|
+
const key = name.replace(/^--mw-/, "");
|
|
99
|
+
if (key.startsWith("font-size-")) {
|
|
100
|
+
lines.push(` --text-mw-${key.slice(10)}: ${value};`);
|
|
101
|
+
}
|
|
102
|
+
else if (key.startsWith("font-")) {
|
|
103
|
+
lines.push(` --font-mw-${key.slice(5)}: ${value};`);
|
|
104
|
+
}
|
|
105
|
+
else {
|
|
106
|
+
lines.push(` --leading-mw-${key}: ${value};`);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
lines.push("}");
|
|
111
|
+
return `${lines.join("\n")}\n`;
|
|
112
|
+
}
|
|
113
|
+
export function buildTokenExportFilename(snapshot, format) {
|
|
114
|
+
const sanitize = (part) => part.toLowerCase().replace(/[^a-z0-9-]+/g, "-");
|
|
115
|
+
const ext = format === "tailwind" ? "tailwind.css" : format;
|
|
116
|
+
return `moonwitness-tokens-${sanitize(snapshot.meta.skin)}-${sanitize(snapshot.meta.theme)}-${sanitize(snapshot.meta.density)}.${ext}`;
|
|
117
|
+
}
|
|
118
|
+
export function downloadTokenFile(content, filename, mimeType) {
|
|
119
|
+
if (typeof document === "undefined" || typeof URL === "undefined")
|
|
120
|
+
return;
|
|
121
|
+
const blob = new Blob([content], { type: mimeType });
|
|
122
|
+
const url = URL.createObjectURL(blob);
|
|
123
|
+
const anchor = document.createElement("a");
|
|
124
|
+
anchor.href = url;
|
|
125
|
+
anchor.download = filename;
|
|
126
|
+
anchor.style.display = "none";
|
|
127
|
+
document.body.appendChild(anchor);
|
|
128
|
+
anchor.click();
|
|
129
|
+
document.body.removeChild(anchor);
|
|
130
|
+
URL.revokeObjectURL(url);
|
|
131
|
+
}
|