@almadar/ui 2.13.3 → 2.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-UNDQO6DL.js → chunk-4KP6IZEQ.js} +3 -3
- package/dist/chunk-4N3BAPDB.js +1667 -0
- package/dist/{chunk-PERGHHON.js → chunk-IRIGCHP4.js} +2 -12
- package/dist/{chunk-Y7IHEYYE.js → chunk-QU2X55WH.js} +11 -1
- package/dist/{chunk-4ZBSL37D.js → chunk-XL7WB2O5.js} +415 -58
- package/dist/{chunk-MSLMORZK.js → chunk-YPY74G7F.js} +13434 -2264
- package/dist/components/atoms/AnimatedCounter.d.ts +20 -0
- package/dist/components/atoms/Avatar.d.ts +58 -0
- package/dist/components/atoms/Badge.d.ts +14 -0
- package/dist/components/atoms/Box.d.ts +57 -0
- package/dist/components/atoms/Button.d.ts +24 -0
- package/dist/components/atoms/Card.d.ts +18 -0
- package/dist/components/atoms/Center.d.ts +33 -0
- package/dist/components/atoms/Checkbox.d.ts +9 -0
- package/dist/components/atoms/ConditionalWrapper.d.ts +68 -0
- package/dist/components/atoms/ConfettiEffect.d.ts +19 -0
- package/dist/components/atoms/DayCell.d.ts +21 -0
- package/dist/components/atoms/Divider.d.ts +29 -0
- package/dist/components/atoms/FlipContainer.d.ts +21 -0
- package/dist/components/atoms/Icon.d.ts +39 -0
- package/dist/components/atoms/InfiniteScrollSentinel.d.ts +23 -0
- package/dist/components/atoms/Input.d.ts +26 -0
- package/dist/components/atoms/Label.d.ts +5 -0
- package/dist/components/atoms/LawReferenceTooltip.d.ts +48 -0
- package/dist/components/atoms/Overlay.d.ts +16 -0
- package/dist/components/atoms/ProgressBar.d.ts +63 -0
- package/dist/components/atoms/Radio.d.ts +26 -0
- package/dist/components/atoms/RangeSlider.d.ts +31 -0
- package/dist/components/atoms/Select.d.ts +12 -0
- package/dist/components/atoms/Spacer.d.ts +25 -0
- package/dist/components/atoms/Spinner.d.ts +6 -0
- package/dist/components/atoms/Stack.d.ts +66 -0
- package/dist/components/atoms/StatusDot.d.ts +14 -0
- package/dist/components/atoms/Switch.d.ts +12 -0
- package/dist/components/atoms/TextHighlight.d.ts +53 -0
- package/dist/components/atoms/Textarea.d.ts +5 -0
- package/dist/components/atoms/ThemeSelector.d.ts +21 -0
- package/dist/components/atoms/ThemeToggle.d.ts +33 -0
- package/dist/components/atoms/TimeSlotCell.d.ts +23 -0
- package/dist/components/atoms/TrendIndicator.d.ts +18 -0
- package/dist/components/atoms/TypewriterText.d.ts +20 -0
- package/dist/components/atoms/Typography.d.ts +57 -0
- package/dist/components/atoms/game/ActionButton.d.ts +25 -0
- package/dist/components/atoms/game/ChoiceButton.d.ts +18 -0
- package/dist/components/atoms/game/ComboCounter.d.ts +16 -0
- package/dist/components/atoms/game/ControlButton.d.ts +31 -0
- package/dist/components/atoms/game/DamageNumber.d.ts +14 -0
- package/dist/components/atoms/game/DialogueBubble.d.ts +16 -0
- package/dist/components/atoms/game/HealthBar.d.ts +18 -0
- package/dist/components/atoms/game/ItemSlot.d.ts +25 -0
- package/dist/components/atoms/game/MiniMap.d.ts +36 -0
- package/dist/components/atoms/game/ResourceCounter.d.ts +21 -0
- package/dist/components/atoms/game/ScoreDisplay.d.ts +21 -0
- package/dist/components/atoms/game/Sprite.d.ts +63 -0
- package/dist/components/atoms/game/StateIndicator.d.ts +31 -0
- package/dist/components/atoms/game/StatusEffect.d.ts +21 -0
- package/dist/components/atoms/game/TimerDisplay.d.ts +18 -0
- package/dist/components/atoms/game/TurnIndicator.d.ts +18 -0
- package/dist/components/atoms/game/WaypointMarker.d.ts +19 -0
- package/dist/components/atoms/game/XPBar.d.ts +20 -0
- package/dist/components/atoms/game/index.d.ts +25 -0
- package/dist/components/atoms/index.d.ts +37 -0
- package/dist/components/index.css +508 -0
- package/dist/components/index.d.ts +6 -9788
- package/dist/components/index.js +769 -11187
- package/dist/components/molecules/Accordion.d.ts +67 -0
- package/dist/components/molecules/Alert.d.ts +24 -0
- package/dist/components/molecules/Breadcrumb.d.ts +55 -0
- package/dist/components/molecules/ButtonGroup.d.ts +67 -0
- package/dist/components/molecules/CalendarGrid.d.ts +43 -0
- package/dist/components/molecules/Card.d.ts +56 -0
- package/dist/components/molecules/Carousel.d.ts +31 -0
- package/dist/components/molecules/ChartLegend.d.ts +20 -0
- package/dist/components/molecules/Container.d.ts +30 -0
- package/dist/components/molecules/DataGrid.d.ts +75 -0
- package/dist/components/molecules/DataList.d.ts +95 -0
- package/dist/components/molecules/DateRangeSelector.d.ts +22 -0
- package/dist/components/molecules/Drawer.d.ts +46 -0
- package/dist/components/molecules/EmptyState.d.ts +25 -0
- package/dist/components/molecules/ErrorBoundary.d.ts +55 -0
- package/dist/components/molecules/ErrorState.d.ts +13 -0
- package/dist/components/molecules/FilterGroup.d.ts +54 -0
- package/dist/components/molecules/Flex.d.ts +43 -0
- package/dist/components/molecules/FlipCard.d.ts +25 -0
- package/dist/components/molecules/FloatingActionButton.d.ts +69 -0
- package/dist/components/molecules/FormField.d.ts +16 -0
- package/dist/components/molecules/FormSectionHeader.d.ts +30 -0
- package/dist/components/molecules/GraphView.d.ts +45 -0
- package/dist/components/molecules/Grid.d.ts +54 -0
- package/dist/components/molecules/InputGroup.d.ts +24 -0
- package/dist/components/molecules/Lightbox.d.ts +25 -0
- package/dist/components/molecules/LineChart.d.ts +33 -0
- package/dist/components/molecules/LoadingState.d.ts +7 -0
- package/dist/components/molecules/MapView.d.ts +40 -0
- package/dist/components/molecules/Menu.d.ts +40 -0
- package/dist/components/molecules/Meter.d.ts +51 -0
- package/dist/components/molecules/Modal.d.ts +28 -0
- package/dist/components/molecules/NumberStepper.d.ts +27 -0
- package/dist/components/molecules/Pagination.d.ts +66 -0
- package/dist/components/molecules/Popover.d.ts +39 -0
- package/dist/components/molecules/ProgressDots.d.ts +24 -0
- package/dist/components/molecules/PullToRefresh.d.ts +21 -0
- package/dist/components/molecules/QuizBlock.d.ts +20 -0
- package/dist/components/molecules/RelationSelect.d.ts +48 -0
- package/dist/components/molecules/RepeatableFormSection.d.ts +58 -0
- package/dist/components/molecules/ScaledDiagram.d.ts +20 -0
- package/dist/components/molecules/SearchInput.d.ts +60 -0
- package/dist/components/molecules/SidePanel.d.ts +47 -0
- package/dist/components/molecules/SimpleGrid.d.ts +27 -0
- package/dist/components/molecules/Skeleton.d.ts +35 -0
- package/dist/components/molecules/SortableList.d.ts +17 -0
- package/dist/components/molecules/StarRating.d.ts +26 -0
- package/dist/components/molecules/StatDisplay.d.ts +37 -0
- package/dist/components/molecules/SwipeableRow.d.ts +24 -0
- package/dist/components/molecules/Tabs.d.ts +45 -0
- package/dist/components/molecules/Toast.d.ts +35 -0
- package/dist/components/molecules/Tooltip.d.ts +25 -0
- package/dist/components/molecules/UploadDropZone.d.ts +26 -0
- package/dist/components/molecules/ViolationAlert.d.ts +49 -0
- package/dist/components/molecules/WizardNavigation.d.ts +51 -0
- package/dist/components/molecules/WizardProgress.d.ts +42 -0
- package/dist/components/molecules/game/ActionButtons.d.ts +34 -0
- package/dist/components/molecules/game/CombatLog.d.ts +30 -0
- package/dist/components/molecules/game/CraftingRecipe.d.ts +33 -0
- package/dist/components/molecules/game/DPad.d.ts +22 -0
- package/dist/components/molecules/game/DialogueBox.d.ts +78 -0
- package/dist/components/molecules/game/EnemyPlate.d.ts +27 -0
- package/dist/components/molecules/game/GameCanvas2D.d.ts +18 -0
- package/dist/components/molecules/game/GameHud.d.ts +49 -0
- package/dist/components/molecules/game/GameMenu.d.ts +43 -0
- package/dist/components/molecules/game/GameOverScreen.d.ts +56 -0
- package/dist/components/molecules/game/HealthPanel.d.ts +27 -0
- package/dist/components/molecules/game/InventoryGrid.d.ts +30 -0
- package/dist/components/molecules/game/InventoryPanel.d.ts +67 -0
- package/dist/components/molecules/game/IsometricCanvas.d.ts +127 -0
- package/dist/components/molecules/game/PlatformerCanvas.d.ts +52 -0
- package/dist/components/molecules/game/PowerupSlots.d.ts +23 -0
- package/dist/components/molecules/game/QuestTracker.d.ts +20 -0
- package/dist/components/molecules/game/ResourceBar.d.ts +23 -0
- package/dist/components/molecules/game/ScoreBoard.d.ts +18 -0
- package/dist/components/molecules/game/StatBadge.d.ts +27 -0
- package/dist/components/molecules/game/TurnPanel.d.ts +29 -0
- package/dist/components/molecules/game/UnitCommandBar.d.ts +25 -0
- package/dist/components/molecules/game/index.d.ts +30 -0
- package/dist/components/molecules/index.d.ts +59 -0
- package/dist/components/molecules/markdown/CodeBlock.d.ts +25 -0
- package/dist/components/molecules/markdown/MarkdownContent.d.ts +26 -0
- package/dist/components/molecules/markdown/index.d.ts +2 -0
- package/dist/components/organisms/CardGrid.d.ts +80 -0
- package/dist/components/organisms/Chart.d.ts +59 -0
- package/dist/components/organisms/CodeViewer.d.ts +67 -0
- package/dist/components/organisms/ComponentPatterns.d.ts +453 -0
- package/dist/components/organisms/ConfirmDialog.d.ts +50 -0
- package/dist/components/organisms/ContentRenderer.d.ts +23 -0
- package/dist/components/organisms/CustomPattern.d.ts +104 -0
- package/dist/components/organisms/DataTable.d.ts +67 -0
- package/dist/components/organisms/DetailPanel.d.ts +78 -0
- package/dist/components/organisms/DocumentViewer.d.ts +60 -0
- package/dist/components/organisms/DrawerSlot.d.ts +39 -0
- package/dist/components/organisms/Form.d.ts +206 -0
- package/dist/components/organisms/FormSection.d.ts +41 -0
- package/dist/components/organisms/GraphCanvas.d.ts +69 -0
- package/dist/components/organisms/Header.d.ts +110 -0
- package/dist/components/organisms/JazariStateMachine.d.ts +60 -0
- package/dist/components/organisms/LayoutPatterns.d.ts +181 -0
- package/dist/components/organisms/List.d.ts +78 -0
- package/dist/components/organisms/MasterDetail.d.ts +32 -0
- package/dist/components/organisms/MediaGallery.d.ts +57 -0
- package/dist/components/organisms/Meter.d.ts +58 -0
- package/dist/components/organisms/ModalSlot.d.ts +35 -0
- package/dist/components/organisms/Navigation.d.ts +68 -0
- package/dist/components/organisms/NotifyListener.d.ts +15 -0
- package/dist/components/organisms/OrbitalVisualization.d.ts +48 -0
- package/dist/components/organisms/PageHeader.d.ts +59 -0
- package/dist/components/organisms/Section.d.ts +44 -0
- package/dist/components/organisms/Sidebar.d.ts +63 -0
- package/dist/components/organisms/SignaturePad.d.ts +44 -0
- package/dist/components/organisms/Split.d.ts +42 -0
- package/dist/components/organisms/StatCard.d.ts +62 -0
- package/dist/components/organisms/StateMachineView.d.ts +36 -0
- package/dist/components/organisms/Table.d.ts +99 -0
- package/dist/components/organisms/Timeline.d.ts +49 -0
- package/dist/components/organisms/ToastSlot.d.ts +38 -0
- package/dist/components/organisms/UISlotRenderer.d.ts +112 -0
- package/dist/components/organisms/WizardContainer.d.ts +160 -0
- package/dist/components/organisms/book/BookChapterView.d.ts +17 -0
- package/dist/components/organisms/book/BookCoverPage.d.ts +20 -0
- package/dist/components/organisms/book/BookNavBar.d.ts +19 -0
- package/dist/components/organisms/book/BookTableOfContents.d.ts +18 -0
- package/dist/components/organisms/book/BookViewer.d.ts +28 -0
- package/dist/components/organisms/book/index.d.ts +7 -0
- package/dist/components/organisms/book/types.d.ts +77 -0
- package/dist/components/organisms/component-registry.generated.d.ts +9 -0
- package/dist/components/organisms/debug/RuntimeDebugger.d.ts +19 -0
- package/dist/components/organisms/debug/hooks/useDebugData.d.ts +25 -0
- package/dist/components/organisms/debug/index.d.ts +13 -0
- package/dist/components/organisms/debug/tabs/EntitiesTab.d.ts +13 -0
- package/dist/components/organisms/debug/tabs/EventDispatcherTab.d.ts +16 -0
- package/dist/components/organisms/debug/tabs/EventFlowTab.d.ts +9 -0
- package/dist/components/organisms/debug/tabs/GuardsPanel.d.ts +9 -0
- package/dist/components/organisms/debug/tabs/ServerBridgeTab.d.ts +9 -0
- package/dist/components/organisms/debug/tabs/TicksTab.d.ts +13 -0
- package/dist/components/organisms/debug/tabs/TraitsTab.d.ts +13 -0
- package/dist/components/organisms/debug/tabs/TransitionTimeline.d.ts +9 -0
- package/dist/components/organisms/debug/tabs/VerificationTab.d.ts +10 -0
- package/dist/components/organisms/game/BattleBoard.d.ts +175 -0
- package/dist/components/organisms/game/CanvasEffect.d.ts +68 -0
- package/dist/components/organisms/game/CastleBoard.d.ts +85 -0
- package/dist/components/organisms/game/CombatLog.d.ts +2 -0
- package/dist/components/organisms/game/DialogueBox.d.ts +2 -0
- package/dist/components/organisms/game/GameAudioProvider.d.ts +47 -0
- package/dist/components/organisms/game/GameAudioToggle.d.ts +28 -0
- package/dist/components/organisms/game/GameCanvas3D.d.ts +181 -0
- package/dist/components/organisms/game/GameHud.d.ts +2 -0
- package/dist/components/organisms/game/GameMenu.d.ts +2 -0
- package/dist/components/organisms/game/GameOverScreen.d.ts +2 -0
- package/dist/components/organisms/game/InventoryPanel.d.ts +2 -0
- package/dist/components/organisms/game/IsometricCanvas.d.ts +3 -0
- package/dist/components/organisms/game/PlatformerCanvas.d.ts +2 -0
- package/dist/components/organisms/game/TraitSlot.d.ts +90 -0
- package/dist/components/organisms/game/TraitStateViewer.d.ts +53 -0
- package/dist/components/organisms/game/UncontrolledBattleBoard.d.ts +26 -0
- package/dist/components/organisms/game/WorldMapBoard.d.ts +156 -0
- package/dist/components/organisms/game/editor/editorUtils.d.ts +109 -0
- package/dist/components/organisms/game/editor/index.d.ts +9 -0
- package/dist/components/organisms/game/hooks/useBattleState.d.ts +35 -0
- package/dist/components/organisms/game/hooks/useCamera.d.ts +41 -0
- package/dist/components/organisms/game/hooks/useGameAudio.d.ts +47 -0
- package/dist/components/organisms/game/hooks/useImageCache.d.ts +16 -0
- package/dist/components/organisms/game/hooks/usePhysics2D.d.ts +45 -0
- package/dist/components/organisms/game/hooks/useSpriteAnimations.d.ts +43 -0
- package/dist/components/organisms/game/index.d.ts +52 -0
- package/dist/components/organisms/game/managers/PhysicsManager.d.ts +103 -0
- package/dist/components/organisms/game/physics-sim/SimulationCanvas.d.ts +20 -0
- package/dist/components/organisms/game/physics-sim/SimulationControls.d.ts +28 -0
- package/dist/components/organisms/game/physics-sim/SimulationGraph.d.ts +25 -0
- package/dist/components/organisms/game/physics-sim/index.d.ts +7 -0
- package/dist/components/organisms/game/physics-sim/presets/index.d.ts +4 -0
- package/dist/components/organisms/game/physics-sim/presets/mechanics.d.ts +4 -0
- package/dist/components/organisms/game/physics-sim/presets/types.d.ts +43 -0
- package/dist/components/organisms/game/puzzles/builder/BuilderBoard.d.ts +52 -0
- package/dist/components/organisms/game/puzzles/builder/index.d.ts +2 -0
- package/dist/components/organisms/game/puzzles/classifier/ClassifierBoard.d.ts +53 -0
- package/dist/components/organisms/game/puzzles/classifier/index.d.ts +2 -0
- package/dist/components/organisms/game/puzzles/debugger/DebuggerBoard.d.ts +45 -0
- package/dist/components/organisms/game/puzzles/debugger/index.d.ts +2 -0
- package/dist/components/organisms/game/puzzles/event-handler/EventHandlerBoard.d.ts +55 -0
- package/dist/components/organisms/game/puzzles/event-handler/EventLog.d.ts +31 -0
- package/dist/components/organisms/game/puzzles/event-handler/ObjectRulePanel.d.ts +45 -0
- package/dist/components/organisms/game/puzzles/event-handler/RuleEditor.d.ts +41 -0
- package/dist/components/organisms/game/puzzles/event-handler/index.d.ts +8 -0
- package/dist/components/organisms/game/puzzles/negotiator/NegotiatorBoard.d.ts +54 -0
- package/dist/components/organisms/game/puzzles/negotiator/index.d.ts +2 -0
- package/dist/components/organisms/game/puzzles/sequencer/ActionPalette.d.ts +34 -0
- package/dist/components/organisms/game/puzzles/sequencer/ActionTile.d.ts +30 -0
- package/dist/components/organisms/game/puzzles/sequencer/SequenceBar.d.ts +41 -0
- package/dist/components/organisms/game/puzzles/sequencer/SequencerBoard.d.ts +72 -0
- package/dist/components/organisms/game/puzzles/sequencer/index.d.ts +8 -0
- package/dist/components/organisms/game/puzzles/simulator/SimulatorBoard.d.ts +54 -0
- package/dist/components/organisms/game/puzzles/simulator/index.d.ts +2 -0
- package/dist/components/organisms/game/puzzles/state-architect/CodeView.d.ts +24 -0
- package/dist/components/organisms/game/puzzles/state-architect/StateArchitectBoard.d.ts +76 -0
- package/dist/components/organisms/game/puzzles/state-architect/StateNode.d.ts +33 -0
- package/dist/components/organisms/game/puzzles/state-architect/TransitionArrow.d.ts +36 -0
- package/dist/components/organisms/game/puzzles/state-architect/VariablePanel.d.ts +28 -0
- package/dist/components/organisms/game/puzzles/state-architect/index.d.ts +10 -0
- package/dist/components/organisms/game/three/Camera3D.d.ts +60 -0
- package/dist/components/organisms/game/three/Lighting3D.d.ts +47 -0
- package/dist/components/organisms/game/three/Scene3D.d.ts +37 -0
- package/dist/components/organisms/game/three/components/Canvas3DErrorBoundary.d.ts +51 -0
- package/dist/components/organisms/game/three/components/Canvas3DLoadingState.d.ts +44 -0
- package/dist/components/organisms/game/three/components/ModelLoader.d.ts +44 -0
- package/dist/components/organisms/game/three/components/PhysicsObject3D.d.ts +74 -0
- package/dist/components/organisms/game/three/components/index.d.ts +10 -0
- package/dist/components/organisms/game/three/hooks/useAssetLoader.d.ts +58 -0
- package/dist/components/organisms/game/three/hooks/useGameCanvas3DEvents.d.ts +79 -0
- package/dist/components/organisms/game/three/hooks/useRaycaster.d.ts +86 -0
- package/dist/components/organisms/game/three/hooks/useSceneGraph.d.ts +66 -0
- package/dist/components/organisms/game/three/hooks/useThree.d.ts +58 -0
- package/dist/components/organisms/game/three/index.d.ts +18 -1228
- package/dist/components/organisms/game/three/index.js +49 -1709
- package/dist/components/organisms/game/three/loaders/AssetLoader.d.ts +80 -0
- package/dist/components/organisms/game/three/renderers/FeatureRenderer.d.ts +44 -0
- package/dist/components/organisms/game/three/renderers/FeatureRenderer3D.d.ts +44 -0
- package/dist/components/organisms/game/three/renderers/TileRenderer.d.ts +57 -0
- package/dist/components/organisms/game/three/renderers/UnitRenderer.d.ts +46 -0
- package/dist/components/organisms/game/three/renderers/index.d.ts +11 -0
- package/dist/components/organisms/game/three/utils/culling.d.ts +134 -0
- package/dist/components/organisms/game/three/utils/grid3D.d.ts +154 -0
- package/dist/components/organisms/game/types/effects.d.ts +253 -0
- package/dist/components/organisms/game/types/game.d.ts +92 -0
- package/dist/{isometric-ynNHVPZx.d.ts → components/organisms/game/types/isometric.d.ts} +4 -6
- package/dist/components/organisms/game/types/spriteAnimation.d.ts +73 -0
- package/dist/components/organisms/game/useCanvasEffects.d.ts +26 -0
- package/dist/components/organisms/game/utils/canvasEffects.d.ts +50 -0
- package/dist/components/organisms/game/utils/combatEffects.d.ts +64 -0
- package/dist/components/organisms/game/utils/combatPresets.d.ts +15 -0
- package/dist/components/organisms/game/utils/isometric.d.ts +61 -0
- package/dist/components/organisms/game/utils/spriteAnimation.d.ts +57 -0
- package/dist/components/organisms/game/utils/spriteSheetConstants.d.ts +16 -0
- package/dist/components/organisms/index.d.ts +38 -0
- package/dist/components/organisms/layout/DashboardGrid.d.ts +35 -0
- package/dist/components/organisms/layout/MasterDetail.d.ts +32 -0
- package/dist/components/organisms/layout/SplitPane.d.ts +34 -0
- package/dist/components/organisms/layout/TabbedContainer.d.ts +42 -0
- package/dist/components/organisms/layout/index.d.ts +9 -0
- package/dist/components/organisms/types.d.ts +63 -0
- package/dist/components/templates/AuthLayout.d.ts +14 -0
- package/dist/components/templates/BattleTemplate.d.ts +25 -0
- package/dist/components/templates/CastleTemplate.d.ts +23 -0
- package/dist/components/templates/CounterTemplate.d.ts +44 -0
- package/dist/components/templates/DashboardLayout.d.ts +34 -0
- package/dist/components/templates/GameCanvas3DBattleTemplate.d.ts +96 -0
- package/dist/components/templates/GameCanvas3DCastleTemplate.d.ts +90 -0
- package/dist/components/templates/GameCanvas3DWorldMapTemplate.d.ts +96 -0
- package/dist/components/templates/GameShell.d.ts +34 -0
- package/dist/components/templates/GameTemplate.d.ts +36 -0
- package/dist/components/templates/GenericAppTemplate.d.ts +30 -0
- package/dist/components/templates/WorldMapTemplate.d.ts +29 -0
- package/dist/components/templates/index.d.ts +10 -0
- package/dist/components/templates/types.d.ts +22 -0
- package/dist/context/DesignThemeContext.d.ts +21 -0
- package/dist/{ThemeContext-D9xUORq5.d.ts → context/ThemeContext.d.ts} +15 -16
- package/dist/context/UISlotContext.d.ts +75 -0
- package/dist/context/UserContext.d.ts +111 -0
- package/dist/context/index.d.ts +6 -206
- package/dist/{event-bus-types-CjJduURa.d.ts → hooks/event-bus-types.d.ts} +4 -6
- package/dist/hooks/index.d.ts +30 -1220
- package/dist/hooks/index.js +2 -2
- package/dist/hooks/useAgentChat.d.ts +104 -0
- package/dist/hooks/useAuthContext.d.ts +25 -0
- package/dist/hooks/useCompile.d.ts +22 -0
- package/dist/hooks/useDeepAgentGeneration.d.ts +46 -0
- package/dist/hooks/useDragReorder.d.ts +26 -0
- package/dist/hooks/useEntities.d.ts +52 -0
- package/dist/hooks/useEntityData.d.ts +155 -0
- package/dist/hooks/useEntityMutations.d.ts +80 -0
- package/dist/hooks/useEventBus.d.ts +96 -0
- package/dist/hooks/useExtensions.d.ts +32 -0
- package/dist/hooks/useFileEditor.d.ts +32 -0
- package/dist/hooks/useFileSystem.d.ts +40 -0
- package/dist/hooks/useGitHub.d.ts +58 -0
- package/dist/hooks/useInfiniteScroll.d.ts +13 -0
- package/dist/hooks/useLongPress.d.ts +16 -0
- package/dist/hooks/useOrbitalHistory.d.ts +39 -0
- package/dist/hooks/useOrbitalMutations.d.ts +95 -0
- package/dist/hooks/usePinchZoom.d.ts +22 -0
- package/dist/hooks/usePreview.d.ts +57 -0
- package/dist/hooks/usePullToRefresh.d.ts +25 -0
- package/dist/hooks/useQuerySingleton.d.ts +78 -0
- package/dist/hooks/useResolvedEntity.d.ts +32 -0
- package/dist/hooks/useSwipeGesture.d.ts +26 -0
- package/dist/hooks/useTranslate.d.ts +35 -0
- package/dist/hooks/useUIEvents.d.ts +35 -0
- package/dist/{useUISlots-BBjNvQtb.d.ts → hooks/useUISlots.d.ts} +8 -9
- package/dist/hooks/useValidation.d.ts +46 -0
- package/dist/lib/api-client.d.ts +42 -0
- package/dist/lib/cn.d.ts +6 -0
- package/dist/lib/debug.d.ts +43 -0
- package/dist/lib/debugRegistry.d.ts +29 -0
- package/dist/lib/debugUtils.d.ts +27 -0
- package/dist/lib/entityDebug.d.ts +38 -0
- package/dist/lib/getNestedValue.d.ts +33 -0
- package/dist/lib/guardRegistry.d.ts +32 -0
- package/dist/lib/index.d.ts +17 -319
- package/dist/lib/index.js +1 -3
- package/dist/lib/jazari/index.d.ts +5 -0
- package/dist/lib/jazari/layout.d.ts +30 -0
- package/dist/lib/jazari/svg-paths.d.ts +61 -0
- package/dist/lib/jazari/types.d.ts +91 -0
- package/dist/lib/parseContentSegments.d.ts +41 -0
- package/dist/lib/tickRegistry.d.ts +40 -0
- package/dist/lib/traitRegistry.d.ts +34 -0
- package/dist/lib/verificationRegistry.d.ts +138 -0
- package/dist/lib/visualizer/browser.d.ts +47 -0
- package/dist/lib/visualizer/index.d.ts +143 -0
- package/dist/locales/index.d.ts +5 -7
- package/dist/providers/EventBusProvider.d.ts +60 -0
- package/dist/providers/FetchedDataProvider.d.ts +105 -0
- package/dist/providers/OfflineModeProvider.d.ts +79 -0
- package/dist/providers/OrbitalProvider.d.ts +101 -0
- package/dist/providers/SelectionProvider.d.ts +81 -0
- package/dist/providers/VerificationProvider.d.ts +63 -0
- package/dist/providers/index.css +599 -0
- package/dist/providers/index.d.ts +16 -464
- package/dist/providers/index.js +5 -4
- package/dist/renderer/client-effect-executor.d.ts +68 -0
- package/dist/renderer/data-resolver.d.ts +68 -0
- package/dist/renderer/index.d.ts +22 -519
- package/dist/renderer/init.d.ts +14 -0
- package/dist/renderer/navigation.d.ts +142 -0
- package/dist/{offline-executor-CHr4uAhf.d.ts → renderer/offline-executor.d.ts} +9 -172
- package/dist/renderer/pattern-resolver.d.ts +91 -0
- package/dist/renderer/slot-definitions.d.ts +45 -0
- package/dist/renderer/types.d.ts +160 -0
- package/dist/renderer/useClientEffects.d.ts +88 -0
- package/dist/runtime/EntitySchemaContext.d.ts +40 -0
- package/dist/runtime/TraitProvider.d.ts +52 -0
- package/dist/runtime/createClientEffectHandlers.d.ts +23 -0
- package/dist/runtime/index.css +599 -0
- package/dist/runtime/index.d.ts +10 -275
- package/dist/runtime/index.js +6 -6
- package/dist/runtime/types.d.ts +10 -0
- package/dist/runtime/ui/SlotsContext.d.ts +71 -0
- package/dist/runtime/useResolvedSchema.d.ts +45 -0
- package/dist/runtime/useTraitStateMachine.d.ts +48 -0
- package/dist/scripts/generate-design-system.d.ts +29 -0
- package/dist/scripts/generate-theme-from-schema.d.ts +10 -0
- package/dist/scripts/generate.d.ts +12 -0
- package/dist/scripts/suggest-components.d.ts +31 -0
- package/dist/scripts/types.d.ts +129 -0
- package/dist/stores/entityStore.d.ts +99 -0
- package/dist/stores/filtering.d.ts +51 -0
- package/dist/stores/index.d.ts +4 -148
- package/dist/tsup.config.d.ts +2 -0
- package/dist/vitest.config.d.ts +2 -0
- package/package.json +5 -4
- package/dist/chunk-42YQ6JVR.js +0 -48
- package/dist/chunk-WCTZ7WZX.js +0 -311
- package/dist/cn-C_ATNPvi.d.ts +0 -332
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface InventoryGridItem {
|
|
3
|
+
id: string;
|
|
4
|
+
icon?: React.ReactNode;
|
|
5
|
+
label?: string;
|
|
6
|
+
quantity?: number;
|
|
7
|
+
rarity?: 'common' | 'uncommon' | 'rare' | 'epic' | 'legendary';
|
|
8
|
+
}
|
|
9
|
+
export interface InventoryGridProps {
|
|
10
|
+
/** Array of items to display in the grid */
|
|
11
|
+
items: InventoryGridItem[];
|
|
12
|
+
/** Number of columns in the grid */
|
|
13
|
+
columns?: number;
|
|
14
|
+
/** Total number of slots (empty slots fill remaining space) */
|
|
15
|
+
totalSlots?: number;
|
|
16
|
+
/** Currently selected item ID */
|
|
17
|
+
selectedId?: string;
|
|
18
|
+
/** Callback when an item is selected */
|
|
19
|
+
onSelect?: (id: string) => void;
|
|
20
|
+
/** Event bus event name for selection */
|
|
21
|
+
selectEvent?: string;
|
|
22
|
+
/** Size variant for all item slots */
|
|
23
|
+
size?: 'sm' | 'md' | 'lg';
|
|
24
|
+
/** Additional CSS classes */
|
|
25
|
+
className?: string;
|
|
26
|
+
}
|
|
27
|
+
export declare function InventoryGrid({ items, columns, totalSlots, selectedId, onSelect, selectEvent, size, className, }: InventoryGridProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export declare namespace InventoryGrid {
|
|
29
|
+
var displayName: string;
|
|
30
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* InventoryPanel Component
|
|
3
|
+
*
|
|
4
|
+
* Grid-based inventory UI with item selection and tooltips.
|
|
5
|
+
*
|
|
6
|
+
* **State categories (closed-circuit compliant):**
|
|
7
|
+
* - Data (items, slots, selectedSlot) → received via props
|
|
8
|
+
* - UI-transient (hoveredSlot, tooltipPosition) → local only
|
|
9
|
+
* - Events → emitted via `useEventBus()` (selectSlot, useItem, dropItem)
|
|
10
|
+
*
|
|
11
|
+
* Local state is hover/tooltip only — rendering-only concerns.
|
|
12
|
+
*/
|
|
13
|
+
import React from 'react';
|
|
14
|
+
export interface InventoryItem {
|
|
15
|
+
id: string;
|
|
16
|
+
type: string;
|
|
17
|
+
quantity: number;
|
|
18
|
+
sprite?: string;
|
|
19
|
+
name?: string;
|
|
20
|
+
description?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface InventoryPanelProps {
|
|
23
|
+
/** Array of items in inventory */
|
|
24
|
+
items: InventoryItem[];
|
|
25
|
+
/** Total number of slots */
|
|
26
|
+
slots: number;
|
|
27
|
+
/** Number of columns in grid */
|
|
28
|
+
columns: number;
|
|
29
|
+
/** Currently selected slot index */
|
|
30
|
+
selectedSlot?: number;
|
|
31
|
+
/** Called when a slot is selected */
|
|
32
|
+
onSelectSlot?: (index: number) => void;
|
|
33
|
+
/** Called when an item is used (double-click or Enter) */
|
|
34
|
+
onUseItem?: (item: InventoryItem) => void;
|
|
35
|
+
/** Called when an item is dropped */
|
|
36
|
+
onDropItem?: (item: InventoryItem) => void;
|
|
37
|
+
/** Declarative event: emits UI:{selectSlotEvent} with { index } when a slot is selected */
|
|
38
|
+
selectSlotEvent?: string;
|
|
39
|
+
/** Declarative event: emits UI:{useItemEvent} with { item } when an item is used */
|
|
40
|
+
useItemEvent?: string;
|
|
41
|
+
/** Declarative event: emits UI:{dropItemEvent} with { item } when an item is dropped */
|
|
42
|
+
dropItemEvent?: string;
|
|
43
|
+
/** Show item tooltips on hover */
|
|
44
|
+
showTooltips?: boolean;
|
|
45
|
+
/** Optional className */
|
|
46
|
+
className?: string;
|
|
47
|
+
/** Slot size in pixels */
|
|
48
|
+
slotSize?: number;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Inventory panel component with grid layout
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```tsx
|
|
55
|
+
* <InventoryPanel
|
|
56
|
+
* items={playerInventory}
|
|
57
|
+
* slots={20}
|
|
58
|
+
* columns={5}
|
|
59
|
+
* selectedSlot={selectedSlot}
|
|
60
|
+
* onSelectSlot={setSelectedSlot}
|
|
61
|
+
* onUseItem={(item) => console.log('Used:', item.name)}
|
|
62
|
+
* showTooltips
|
|
63
|
+
* />
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
export declare function InventoryPanel({ items, slots, columns, selectedSlot, onSelectSlot, onUseItem, onDropItem, selectSlotEvent, useItemEvent, dropItemEvent, showTooltips, className, slotSize, }: InventoryPanelProps): React.JSX.Element;
|
|
67
|
+
export default InventoryPanel;
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IsometricCanvas
|
|
3
|
+
*
|
|
4
|
+
* Core isometric game renderer. Maps to the `game-canvas` pattern.
|
|
5
|
+
* Adapted from projects/trait-wars/design-system/organisms/IsometricGameCanvas.tsx
|
|
6
|
+
* with full closed-circuit pattern compliance (className, isLoading, error).
|
|
7
|
+
*
|
|
8
|
+
* Architecture:
|
|
9
|
+
* - 2:1 diamond isometric projection
|
|
10
|
+
* - Painter's algorithm (tile → feature → unit depth sort)
|
|
11
|
+
* - Camera pan/zoom with lerp
|
|
12
|
+
* - Off-screen culling
|
|
13
|
+
* - Minimap on separate canvas
|
|
14
|
+
* - Sprite sheet animation via resolveUnitFrame
|
|
15
|
+
* - Event bus–friendly handlers (onTileClick, onUnitClick, etc.)
|
|
16
|
+
*
|
|
17
|
+
* **State categories (closed-circuit compliant):**
|
|
18
|
+
* - All game data (tiles, units, features, selection, validMoves) → received via props
|
|
19
|
+
* - Rendering state (viewportSize, RAF, camera lerp, sprite cache) → local only
|
|
20
|
+
* - Events → emitted via `useEventBus()` for trait integration
|
|
21
|
+
*
|
|
22
|
+
* This component is a **pure renderer** — it holds no game logic state.
|
|
23
|
+
*
|
|
24
|
+
* @packageDocumentation
|
|
25
|
+
*/
|
|
26
|
+
import * as React from 'react';
|
|
27
|
+
import type { IsometricTile, IsometricUnit, IsometricFeature } from '../../organisms/game/types/isometric';
|
|
28
|
+
import type { ResolvedFrame } from '../../organisms/game/types/spriteAnimation';
|
|
29
|
+
/** Event Contract:
|
|
30
|
+
* Emits: UI:TILE_CLICK
|
|
31
|
+
* Emits: UI:UNIT_CLICK
|
|
32
|
+
* Emits: UI:TILE_HOVER
|
|
33
|
+
* Emits: UI:TILE_LEAVE
|
|
34
|
+
*/
|
|
35
|
+
export interface IsometricCanvasProps {
|
|
36
|
+
/** Additional CSS classes */
|
|
37
|
+
className?: string;
|
|
38
|
+
/** Loading state indicator */
|
|
39
|
+
isLoading?: boolean;
|
|
40
|
+
/** Error state */
|
|
41
|
+
error?: Error | null;
|
|
42
|
+
/** Array of tiles to render */
|
|
43
|
+
tiles?: IsometricTile[];
|
|
44
|
+
/** Array of units on the board */
|
|
45
|
+
units?: IsometricUnit[];
|
|
46
|
+
/** Array of features (resources, portals, buildings, etc.) */
|
|
47
|
+
features?: IsometricFeature[];
|
|
48
|
+
/** Currently selected unit ID */
|
|
49
|
+
selectedUnitId?: string | null;
|
|
50
|
+
/** Valid move positions (shown as pulsing green highlights) */
|
|
51
|
+
validMoves?: Array<{
|
|
52
|
+
x: number;
|
|
53
|
+
y: number;
|
|
54
|
+
}>;
|
|
55
|
+
/** Attack target positions (shown as pulsing red highlights) */
|
|
56
|
+
attackTargets?: Array<{
|
|
57
|
+
x: number;
|
|
58
|
+
y: number;
|
|
59
|
+
}>;
|
|
60
|
+
/** Hovered tile position */
|
|
61
|
+
hoveredTile?: {
|
|
62
|
+
x: number;
|
|
63
|
+
y: number;
|
|
64
|
+
} | null;
|
|
65
|
+
onTileClick?: (x: number, y: number) => void;
|
|
66
|
+
onUnitClick?: (unitId: string) => void;
|
|
67
|
+
onTileHover?: (x: number, y: number) => void;
|
|
68
|
+
onTileLeave?: () => void;
|
|
69
|
+
/** Declarative event: emits UI:{tileClickEvent} with { x, y } on tile click */
|
|
70
|
+
tileClickEvent?: string;
|
|
71
|
+
/** Declarative event: emits UI:{unitClickEvent} with { unitId } on unit click */
|
|
72
|
+
unitClickEvent?: string;
|
|
73
|
+
/** Declarative event: emits UI:{tileHoverEvent} with { x, y } on tile hover */
|
|
74
|
+
tileHoverEvent?: string;
|
|
75
|
+
/** Declarative event: emits UI:{tileLeaveEvent} with {} on tile leave */
|
|
76
|
+
tileLeaveEvent?: string;
|
|
77
|
+
/** Render scale (0.4 = 40% zoom) */
|
|
78
|
+
scale?: number;
|
|
79
|
+
/** Show debug grid lines and coordinates */
|
|
80
|
+
debug?: boolean;
|
|
81
|
+
/** Background image URL tiled behind the isometric grid */
|
|
82
|
+
backgroundImage?: string;
|
|
83
|
+
/** Toggle minimap overlay */
|
|
84
|
+
showMinimap?: boolean;
|
|
85
|
+
/** Enable camera pan/zoom controls */
|
|
86
|
+
enableCamera?: boolean;
|
|
87
|
+
/** Extra scale multiplier for unit draw size. 1 = default. */
|
|
88
|
+
unitScale?: number;
|
|
89
|
+
/** Board width in tiles (overrides tile-derived size) */
|
|
90
|
+
boardWidth?: number;
|
|
91
|
+
/** Board height in tiles (overrides tile-derived size) */
|
|
92
|
+
boardHeight?: number;
|
|
93
|
+
/** Override for the diamond-top Y offset within the tile sprite (default: 374).
|
|
94
|
+
* This controls where the flat diamond face sits vertically inside the tile image. */
|
|
95
|
+
diamondTopY?: number;
|
|
96
|
+
/** Resolve terrain sprite URL from terrain key */
|
|
97
|
+
getTerrainSprite?: (terrain: string) => string | undefined;
|
|
98
|
+
/** Resolve feature sprite URL from feature type key */
|
|
99
|
+
getFeatureSprite?: (featureType: string) => string | undefined;
|
|
100
|
+
/** Resolve unit static sprite URL */
|
|
101
|
+
getUnitSprite?: (unit: IsometricUnit) => string | undefined;
|
|
102
|
+
/** Resolve animated sprite sheet frame for a unit */
|
|
103
|
+
resolveUnitFrame?: (unitId: string) => ResolvedFrame | null;
|
|
104
|
+
/** Additional sprite URLs to preload (e.g., effect sprites) */
|
|
105
|
+
effectSpriteUrls?: string[];
|
|
106
|
+
/** Callback to draw canvas effects after units (canvas-specific: cannot be declarative) */
|
|
107
|
+
onDrawEffects?: (ctx: CanvasRenderingContext2D, animTime: number, getImage: (url: string) => HTMLImageElement | undefined) => void;
|
|
108
|
+
/** Whether there are active effects — keeps RAF loop alive */
|
|
109
|
+
hasActiveEffects?: boolean;
|
|
110
|
+
/** Base URL for remote asset resolution. When set, manifest paths
|
|
111
|
+
* are prefixed with this URL. Example: "https://trait-wars-assets.web.app" */
|
|
112
|
+
assetBaseUrl?: string;
|
|
113
|
+
/** Manifest mapping entity keys to relative sprite paths.
|
|
114
|
+
* Combined with assetBaseUrl to produce full URLs.
|
|
115
|
+
* Used as a fallback when inline URLs and callbacks don't resolve. */
|
|
116
|
+
assetManifest?: {
|
|
117
|
+
terrains?: Record<string, string>;
|
|
118
|
+
units?: Record<string, string>;
|
|
119
|
+
features?: Record<string, string>;
|
|
120
|
+
effects?: Record<string, string>;
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
export declare function IsometricCanvas({ className, isLoading, error, tiles: _tilesPropRaw, units: _unitsPropRaw, features: _featuresPropRaw, selectedUnitId, validMoves, attackTargets, hoveredTile, onTileClick, onUnitClick, onTileHover, onTileLeave, tileClickEvent, unitClickEvent, tileHoverEvent, tileLeaveEvent, scale, debug, backgroundImage, showMinimap, enableCamera, unitScale, getTerrainSprite, getFeatureSprite, getUnitSprite, resolveUnitFrame, effectSpriteUrls, onDrawEffects, hasActiveEffects, diamondTopY: diamondTopYProp, assetBaseUrl, assetManifest, }: IsometricCanvasProps): React.JSX.Element;
|
|
124
|
+
export declare namespace IsometricCanvas {
|
|
125
|
+
var displayName: string;
|
|
126
|
+
}
|
|
127
|
+
export default IsometricCanvas;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export interface PlatformerPlatform {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
type?: 'ground' | 'platform' | 'hazard' | 'goal';
|
|
7
|
+
}
|
|
8
|
+
export interface PlatformerPlayer {
|
|
9
|
+
x: number;
|
|
10
|
+
y: number;
|
|
11
|
+
width?: number;
|
|
12
|
+
height?: number;
|
|
13
|
+
vx?: number;
|
|
14
|
+
vy?: number;
|
|
15
|
+
grounded?: boolean;
|
|
16
|
+
facingRight?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface PlatformerCanvasProps {
|
|
19
|
+
/** Player state data */
|
|
20
|
+
player?: PlatformerPlayer;
|
|
21
|
+
/** Static platforms / level geometry */
|
|
22
|
+
platforms?: readonly PlatformerPlatform[];
|
|
23
|
+
/** World dimensions */
|
|
24
|
+
worldWidth?: number;
|
|
25
|
+
worldHeight?: number;
|
|
26
|
+
/** Canvas display size */
|
|
27
|
+
canvasWidth?: number;
|
|
28
|
+
canvasHeight?: number;
|
|
29
|
+
/** Camera follows player */
|
|
30
|
+
followCamera?: boolean;
|
|
31
|
+
/** Background color */
|
|
32
|
+
bgColor?: string;
|
|
33
|
+
/** Player sprite image URL */
|
|
34
|
+
playerSprite?: string;
|
|
35
|
+
/** Map of platform type to tile sprite URL */
|
|
36
|
+
tileSprites?: Record<string, string>;
|
|
37
|
+
/** Background image URL */
|
|
38
|
+
backgroundImage?: string;
|
|
39
|
+
/** Base URL prefix for asset URLs */
|
|
40
|
+
assetBaseUrl?: string;
|
|
41
|
+
/** Event names for keyboard controls */
|
|
42
|
+
leftEvent?: string;
|
|
43
|
+
rightEvent?: string;
|
|
44
|
+
jumpEvent?: string;
|
|
45
|
+
stopEvent?: string;
|
|
46
|
+
/** Additional CSS classes */
|
|
47
|
+
className?: string;
|
|
48
|
+
}
|
|
49
|
+
export declare function PlatformerCanvas({ player, platforms, worldWidth, worldHeight, canvasWidth, canvasHeight, followCamera, bgColor, playerSprite, tileSprites, backgroundImage, assetBaseUrl, leftEvent, rightEvent, jumpEvent, stopEvent, className, }: PlatformerCanvasProps): import("react/jsx-runtime").JSX.Element;
|
|
50
|
+
export declare namespace PlatformerCanvas {
|
|
51
|
+
var displayName: string;
|
|
52
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface ActivePowerup {
|
|
3
|
+
/** Unique powerup ID */
|
|
4
|
+
id: string;
|
|
5
|
+
/** Icon component or emoji */
|
|
6
|
+
icon?: React.ReactNode;
|
|
7
|
+
/** Powerup label */
|
|
8
|
+
label: string;
|
|
9
|
+
/** Remaining time in seconds */
|
|
10
|
+
remainingTime?: number;
|
|
11
|
+
}
|
|
12
|
+
export interface PowerupSlotsProps {
|
|
13
|
+
/** Array of active powerups */
|
|
14
|
+
active: ActivePowerup[];
|
|
15
|
+
/** Maximum number of powerup slots */
|
|
16
|
+
maxSlots?: number;
|
|
17
|
+
/** Additional CSS classes */
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare function PowerupSlots({ active, maxSlots, className, }: PowerupSlotsProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare namespace PowerupSlots {
|
|
22
|
+
var displayName: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface Quest {
|
|
2
|
+
id: string;
|
|
3
|
+
title: string;
|
|
4
|
+
progress: number;
|
|
5
|
+
maxProgress: number;
|
|
6
|
+
active?: boolean;
|
|
7
|
+
completed?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface QuestTrackerProps {
|
|
10
|
+
/** Array of quests to display */
|
|
11
|
+
quests: Quest[];
|
|
12
|
+
/** ID of the currently active quest */
|
|
13
|
+
activeQuestId?: string;
|
|
14
|
+
/** Additional CSS classes */
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function QuestTracker({ quests, activeQuestId, className, }: QuestTrackerProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare namespace QuestTracker {
|
|
19
|
+
var displayName: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface ResourceBarResource {
|
|
3
|
+
/** Icon for the resource */
|
|
4
|
+
icon?: React.ReactNode;
|
|
5
|
+
/** Resource name */
|
|
6
|
+
label: string;
|
|
7
|
+
/** Current amount */
|
|
8
|
+
value: number;
|
|
9
|
+
/** Maximum amount (displays as bar if provided) */
|
|
10
|
+
max?: number;
|
|
11
|
+
}
|
|
12
|
+
export interface ResourceBarProps {
|
|
13
|
+
/** Resources to display */
|
|
14
|
+
resources: ResourceBarResource[];
|
|
15
|
+
/** Size variant */
|
|
16
|
+
size?: 'sm' | 'md' | 'lg';
|
|
17
|
+
/** Additional CSS classes */
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare function ResourceBar({ resources, size, className, }: ResourceBarProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare namespace ResourceBar {
|
|
22
|
+
var displayName: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface ScoreBoardProps {
|
|
2
|
+
/** Current score */
|
|
3
|
+
score: number;
|
|
4
|
+
/** All-time high score */
|
|
5
|
+
highScore?: number;
|
|
6
|
+
/** Current combo count */
|
|
7
|
+
combo?: number;
|
|
8
|
+
/** Score multiplier */
|
|
9
|
+
multiplier?: number;
|
|
10
|
+
/** Current level */
|
|
11
|
+
level?: number;
|
|
12
|
+
/** Additional CSS classes */
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare function ScoreBoard({ score, highScore, combo, multiplier, level, className, }: ScoreBoardProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare namespace ScoreBoard {
|
|
17
|
+
var displayName: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface StatBadgeProps {
|
|
3
|
+
/** Stat label */
|
|
4
|
+
label: string;
|
|
5
|
+
/** Current value (defaults to 0 if not provided) */
|
|
6
|
+
value?: number | string;
|
|
7
|
+
/** Maximum value (for bar/hearts format) */
|
|
8
|
+
max?: number;
|
|
9
|
+
/** Data source entity name (for schema config) */
|
|
10
|
+
source?: string;
|
|
11
|
+
/** Field name in the source (for schema config) */
|
|
12
|
+
field?: string;
|
|
13
|
+
/** Display format */
|
|
14
|
+
format?: 'number' | 'hearts' | 'bar' | 'text' | string;
|
|
15
|
+
/** Icon component or emoji */
|
|
16
|
+
icon?: React.ReactNode;
|
|
17
|
+
/** Size variant */
|
|
18
|
+
size?: 'sm' | 'md' | 'lg' | string;
|
|
19
|
+
/** Visual variant */
|
|
20
|
+
variant?: 'default' | 'primary' | 'success' | 'warning' | 'danger' | string;
|
|
21
|
+
/** Additional CSS classes */
|
|
22
|
+
className?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare function StatBadge({ label, value, max, format, icon, size, variant, className, source: _source, field: _field, }: StatBadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export declare namespace StatBadge {
|
|
26
|
+
var displayName: string;
|
|
27
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface TurnPanelAction {
|
|
3
|
+
/** Action button label */
|
|
4
|
+
label: string;
|
|
5
|
+
/** Icon for the button */
|
|
6
|
+
icon?: React.ReactNode;
|
|
7
|
+
/** Event name to emit when clicked */
|
|
8
|
+
event?: string;
|
|
9
|
+
/** Whether the action is disabled */
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface TurnPanelProps {
|
|
13
|
+
/** Current turn number */
|
|
14
|
+
currentTurn: number;
|
|
15
|
+
/** Maximum number of turns */
|
|
16
|
+
maxTurns?: number;
|
|
17
|
+
/** Current phase label */
|
|
18
|
+
phase?: string;
|
|
19
|
+
/** Active team name */
|
|
20
|
+
activeTeam?: string;
|
|
21
|
+
/** Action buttons to display */
|
|
22
|
+
actions?: TurnPanelAction[];
|
|
23
|
+
/** Additional CSS classes */
|
|
24
|
+
className?: string;
|
|
25
|
+
}
|
|
26
|
+
export declare function TurnPanel({ currentTurn, maxTurns, phase, activeTeam, actions, className, }: TurnPanelProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export declare namespace TurnPanel {
|
|
28
|
+
var displayName: string;
|
|
29
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface UnitCommand {
|
|
3
|
+
/** Command label */
|
|
4
|
+
label: string;
|
|
5
|
+
/** Icon for the command button */
|
|
6
|
+
icon?: React.ReactNode;
|
|
7
|
+
/** Event name to emit when clicked */
|
|
8
|
+
event?: string;
|
|
9
|
+
/** Whether the command is disabled */
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
/** Keyboard shortcut hint */
|
|
12
|
+
hotkey?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface UnitCommandBarProps {
|
|
15
|
+
/** Available commands */
|
|
16
|
+
commands: UnitCommand[];
|
|
17
|
+
/** ID of the currently selected unit */
|
|
18
|
+
selectedUnitId?: string;
|
|
19
|
+
/** Additional CSS classes */
|
|
20
|
+
className?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare function UnitCommandBar({ commands, selectedUnitId, className, }: UnitCommandBarProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export declare namespace UnitCommandBar {
|
|
24
|
+
var displayName: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Game Molecule Components
|
|
3
|
+
*
|
|
4
|
+
* Composed components for game UI patterns.
|
|
5
|
+
*
|
|
6
|
+
* @packageDocumentation
|
|
7
|
+
*/
|
|
8
|
+
export { DPad, type DPadProps, type DPadDirection } from './DPad';
|
|
9
|
+
export { ActionButtons, type ActionButtonsProps, type ActionButtonConfig } from './ActionButtons';
|
|
10
|
+
export { StatBadge, type StatBadgeProps } from './StatBadge';
|
|
11
|
+
export { InventoryGrid, type InventoryGridProps, type InventoryGridItem } from './InventoryGrid';
|
|
12
|
+
export { QuestTracker, type QuestTrackerProps, type Quest } from './QuestTracker';
|
|
13
|
+
export { CraftingRecipe, type CraftingRecipeProps, type CraftingIngredient } from './CraftingRecipe';
|
|
14
|
+
export { PowerupSlots, type PowerupSlotsProps, type ActivePowerup } from './PowerupSlots';
|
|
15
|
+
export { GameCanvas2D, type GameCanvas2DProps } from './GameCanvas2D';
|
|
16
|
+
export { HealthPanel, type HealthPanelProps } from './HealthPanel';
|
|
17
|
+
export { ScoreBoard, type ScoreBoardProps } from './ScoreBoard';
|
|
18
|
+
export { ResourceBar, type ResourceBarProps, type ResourceBarResource } from './ResourceBar';
|
|
19
|
+
export { TurnPanel, type TurnPanelProps, type TurnPanelAction } from './TurnPanel';
|
|
20
|
+
export { EnemyPlate, type EnemyPlateProps, type EnemyPlateEffect } from './EnemyPlate';
|
|
21
|
+
export { UnitCommandBar, type UnitCommandBarProps, type UnitCommand } from './UnitCommandBar';
|
|
22
|
+
export { GameHud, type GameHudProps, type GameHudStat, type GameHudElement } from './GameHud';
|
|
23
|
+
export { DialogueBox, type DialogueBoxProps, type DialogueNode, type DialogueChoice } from './DialogueBox';
|
|
24
|
+
export { CombatLog, type CombatLogProps, type CombatEvent, type CombatLogEventType } from './CombatLog';
|
|
25
|
+
export { InventoryPanel, type InventoryPanelProps, type InventoryItem } from './InventoryPanel';
|
|
26
|
+
export { GameMenu, type GameMenuProps, type MenuOption } from './GameMenu';
|
|
27
|
+
export { GameOverScreen, type GameOverScreenProps, type GameOverStat, type GameOverAction } from './GameOverScreen';
|
|
28
|
+
export { PlatformerCanvas, type PlatformerCanvasProps, type PlatformerPlatform, type PlatformerPlayer } from './PlatformerCanvas';
|
|
29
|
+
export { IsometricCanvas, type IsometricCanvasProps } from './IsometricCanvas';
|
|
30
|
+
export type { IsometricTile, IsometricUnit, IsometricFeature } from '../../organisms/game/types/isometric';
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export { ErrorBoundary, type ErrorBoundaryProps } from './ErrorBoundary';
|
|
2
|
+
export { FormField, type FormFieldProps } from './FormField';
|
|
3
|
+
export { EmptyState, type EmptyStateProps } from './EmptyState';
|
|
4
|
+
export { LoadingState, type LoadingStateProps } from './LoadingState';
|
|
5
|
+
export { ErrorState, type ErrorStateProps } from './ErrorState';
|
|
6
|
+
export { Skeleton, type SkeletonProps, type SkeletonVariant } from './Skeleton';
|
|
7
|
+
export { Accordion, type AccordionProps, type AccordionItem } from './Accordion';
|
|
8
|
+
export { Alert, type AlertProps, type AlertVariant } from './Alert';
|
|
9
|
+
export { Breadcrumb, type BreadcrumbProps, type BreadcrumbItem } from './Breadcrumb';
|
|
10
|
+
export { ButtonGroup, type ButtonGroupProps } from './ButtonGroup';
|
|
11
|
+
export { FilterGroup, type FilterGroupProps, type FilterDefinition } from './FilterGroup';
|
|
12
|
+
export { Card as ActionCard, type CardProps as ActionCardProps, type CardAction } from './Card';
|
|
13
|
+
export { Container, type ContainerProps } from './Container';
|
|
14
|
+
export { Flex, type FlexProps } from './Flex';
|
|
15
|
+
export { FloatingActionButton, type FloatingActionButtonProps } from './FloatingActionButton';
|
|
16
|
+
export { Grid, type GridProps } from './Grid';
|
|
17
|
+
export { InputGroup, type InputGroupProps } from './InputGroup';
|
|
18
|
+
export { Menu, type MenuProps, type MenuItem } from './Menu';
|
|
19
|
+
export { Modal, type ModalProps, type ModalSize } from './Modal';
|
|
20
|
+
export { Pagination, type PaginationProps } from './Pagination';
|
|
21
|
+
export { Popover, type PopoverProps } from './Popover';
|
|
22
|
+
export { RelationSelect, type RelationSelectProps, type RelationOption } from './RelationSelect';
|
|
23
|
+
export { SearchInput, type SearchInputProps } from './SearchInput';
|
|
24
|
+
export { SidePanel, type SidePanelProps } from './SidePanel';
|
|
25
|
+
export { SimpleGrid, type SimpleGridProps } from './SimpleGrid';
|
|
26
|
+
export { Tabs, type TabsProps, type TabItem } from './Tabs';
|
|
27
|
+
export { Toast, type ToastProps, type ToastVariant } from './Toast';
|
|
28
|
+
export { Tooltip, type TooltipProps } from './Tooltip';
|
|
29
|
+
export { Drawer, type DrawerProps, type DrawerPosition, type DrawerSize } from './Drawer';
|
|
30
|
+
export { WizardProgress, type WizardProgressProps, type WizardProgressStep } from './WizardProgress';
|
|
31
|
+
export { WizardNavigation, type WizardNavigationProps } from './WizardNavigation';
|
|
32
|
+
export { MarkdownContent, type MarkdownContentProps } from './markdown/MarkdownContent';
|
|
33
|
+
export { CodeBlock, type CodeBlockProps } from './markdown/CodeBlock';
|
|
34
|
+
export { QuizBlock, type QuizBlockProps } from './QuizBlock';
|
|
35
|
+
export { ScaledDiagram, type ScaledDiagramProps } from './ScaledDiagram';
|
|
36
|
+
export { CalendarGrid, type CalendarGridProps, type CalendarEvent } from './CalendarGrid';
|
|
37
|
+
export { RepeatableFormSection, type RepeatableFormSectionProps, type RepeatableItem } from './RepeatableFormSection';
|
|
38
|
+
export { ViolationAlert, type ViolationAlertProps, type ViolationRecord } from './ViolationAlert';
|
|
39
|
+
export { FormSectionHeader, type FormSectionHeaderProps } from './FormSectionHeader';
|
|
40
|
+
export { FlipCard, type FlipCardProps } from './FlipCard';
|
|
41
|
+
export { DateRangeSelector, type DateRangeSelectorProps, type DateRangeSelectorOption } from './DateRangeSelector';
|
|
42
|
+
export { ChartLegend, type ChartLegendProps, type ChartLegendItem } from './ChartLegend';
|
|
43
|
+
export { LineChart, type LineChartProps, type ChartDataPoint } from './LineChart';
|
|
44
|
+
export { ProgressDots, type ProgressDotsProps, type DotState, type DotSize } from './ProgressDots';
|
|
45
|
+
export * from './game';
|
|
46
|
+
export { GraphView, type GraphViewProps, type GraphViewNode, type GraphViewEdge } from './GraphView';
|
|
47
|
+
export { MapView, type MapViewProps, type MapMarkerData } from './MapView';
|
|
48
|
+
export { NumberStepper, type NumberStepperProps, type NumberStepperSize } from './NumberStepper';
|
|
49
|
+
export { StarRating, type StarRatingProps, type StarRatingSize, type StarRatingPrecision } from './StarRating';
|
|
50
|
+
export { UploadDropZone, type UploadDropZoneProps } from './UploadDropZone';
|
|
51
|
+
export { Lightbox, type LightboxProps, type LightboxImage } from './Lightbox';
|
|
52
|
+
export { DataGrid, type DataGridProps, type DataGridField, type DataGridItemAction } from './DataGrid';
|
|
53
|
+
export { DataList, type DataListProps, type DataListField, type DataListItemAction } from './DataList';
|
|
54
|
+
export { StatDisplay, type StatDisplayProps } from './StatDisplay';
|
|
55
|
+
export { Meter, type MeterProps, type MeterVariant, type MeterThreshold, type MeterAction } from './Meter';
|
|
56
|
+
export { SwipeableRow, type SwipeableRowProps, type SwipeAction } from './SwipeableRow';
|
|
57
|
+
export { SortableList, type SortableListProps } from './SortableList';
|
|
58
|
+
export { Carousel, type CarouselProps } from './Carousel';
|
|
59
|
+
export { PullToRefresh, type PullToRefreshProps } from './PullToRefresh';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CodeBlock Molecule Component
|
|
3
|
+
*
|
|
4
|
+
* A syntax-highlighted code block with copy-to-clipboard functionality.
|
|
5
|
+
* Preserves scroll position during re-renders.
|
|
6
|
+
*
|
|
7
|
+
* Event Contract:
|
|
8
|
+
* - Emits: UI:COPY_CODE { language, success }
|
|
9
|
+
*/
|
|
10
|
+
import React from 'react';
|
|
11
|
+
export interface CodeBlockProps {
|
|
12
|
+
/** The code content to display */
|
|
13
|
+
code: string;
|
|
14
|
+
/** Programming language for syntax highlighting */
|
|
15
|
+
language?: string;
|
|
16
|
+
/** Show the copy button */
|
|
17
|
+
showCopyButton?: boolean;
|
|
18
|
+
/** Show the language badge */
|
|
19
|
+
showLanguageBadge?: boolean;
|
|
20
|
+
/** Maximum height before scrolling */
|
|
21
|
+
maxHeight?: string;
|
|
22
|
+
/** Additional CSS classes */
|
|
23
|
+
className?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare const CodeBlock: React.NamedExoticComponent<CodeBlockProps>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MarkdownContent Molecule Component
|
|
3
|
+
*
|
|
4
|
+
* Renders markdown content with support for GFM (GitHub Flavored Markdown)
|
|
5
|
+
* and math equations (KaTeX). Handles inline code only — fenced code blocks
|
|
6
|
+
* should be parsed out and rendered with CodeBlock component.
|
|
7
|
+
*
|
|
8
|
+
* Event Contract:
|
|
9
|
+
* - No events emitted (display-only component)
|
|
10
|
+
* - entityAware: false
|
|
11
|
+
*
|
|
12
|
+
* NOTE: react-markdown's `components` override API requires native HTML
|
|
13
|
+
* elements — this is the same library-boundary exception as `<iframe>` in
|
|
14
|
+
* DocumentViewer and `<svg>` in JazariStateMachine/StateMachineView.
|
|
15
|
+
*/
|
|
16
|
+
import React from 'react';
|
|
17
|
+
import 'katex/dist/katex.min.css';
|
|
18
|
+
export interface MarkdownContentProps {
|
|
19
|
+
/** The markdown content to render */
|
|
20
|
+
content: string;
|
|
21
|
+
/** Text direction */
|
|
22
|
+
direction?: 'rtl' | 'ltr';
|
|
23
|
+
/** Additional CSS classes */
|
|
24
|
+
className?: string;
|
|
25
|
+
}
|
|
26
|
+
export declare const MarkdownContent: React.NamedExoticComponent<MarkdownContentProps>;
|