@almadar/mobile 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +203 -0
- package/dist/chunk-6RVITGGH.js +167 -0
- package/dist/chunk-6RVITGGH.js.map +1 -0
- package/dist/chunk-7C5JCLLY.js +1125 -0
- package/dist/chunk-7C5JCLLY.js.map +1 -0
- package/dist/chunk-CA6Z3OTE.js +247 -0
- package/dist/chunk-CA6Z3OTE.js.map +1 -0
- package/dist/chunk-CUAWHLEK.js +119 -0
- package/dist/chunk-CUAWHLEK.js.map +1 -0
- package/dist/chunk-DMLYJFYQ.js +816 -0
- package/dist/chunk-DMLYJFYQ.js.map +1 -0
- package/dist/chunk-DY52O4T3.js +795 -0
- package/dist/chunk-DY52O4T3.js.map +1 -0
- package/dist/chunk-LFHVNHVA.js +176 -0
- package/dist/chunk-LFHVNHVA.js.map +1 -0
- package/dist/chunk-MFU7Q7LU.js +206 -0
- package/dist/chunk-MFU7Q7LU.js.map +1 -0
- package/dist/chunk-S2IT7WZT.js +71 -0
- package/dist/chunk-S2IT7WZT.js.map +1 -0
- package/dist/chunk-T77JPOTP.js +11789 -0
- package/dist/chunk-T77JPOTP.js.map +1 -0
- package/dist/chunk-VLUJ7BXN.js +36 -0
- package/dist/chunk-VLUJ7BXN.js.map +1 -0
- package/dist/chunk-YMJZLYLV.js +4086 -0
- package/dist/chunk-YMJZLYLV.js.map +1 -0
- package/dist/chunk-YTVYMEKU.js +7 -0
- package/dist/chunk-YTVYMEKU.js.map +1 -0
- package/dist/components/atoms/Avatar.d.ts +17 -0
- package/dist/components/atoms/Avatar.d.ts.map +1 -0
- package/dist/components/atoms/Badge.d.ts +18 -0
- package/dist/components/atoms/Badge.d.ts.map +1 -0
- package/dist/components/atoms/Button.d.ts +20 -0
- package/dist/components/atoms/Button.d.ts.map +1 -0
- package/dist/components/atoms/Card.d.ts +21 -0
- package/dist/components/atoms/Card.d.ts.map +1 -0
- package/dist/components/atoms/Center.d.ts +14 -0
- package/dist/components/atoms/Center.d.ts.map +1 -0
- package/dist/components/atoms/Checkbox.d.ts +21 -0
- package/dist/components/atoms/Checkbox.d.ts.map +1 -0
- package/dist/components/atoms/ConditionalWrapper.d.ts +34 -0
- package/dist/components/atoms/ConditionalWrapper.d.ts.map +1 -0
- package/dist/components/atoms/Divider.d.ts +11 -0
- package/dist/components/atoms/Divider.d.ts.map +1 -0
- package/dist/components/atoms/Icon.d.ts +11 -0
- package/dist/components/atoms/Icon.d.ts.map +1 -0
- package/dist/components/atoms/Input.d.ts +21 -0
- package/dist/components/atoms/Input.d.ts.map +1 -0
- package/dist/components/atoms/Label.d.ts +12 -0
- package/dist/components/atoms/Label.d.ts.map +1 -0
- package/dist/components/atoms/Overlay.d.ts +16 -0
- package/dist/components/atoms/Overlay.d.ts.map +1 -0
- package/dist/components/atoms/ProgressBar.d.ts +18 -0
- package/dist/components/atoms/ProgressBar.d.ts.map +1 -0
- package/dist/components/atoms/Radio.d.ts +21 -0
- package/dist/components/atoms/Radio.d.ts.map +1 -0
- package/dist/components/atoms/Select.d.ts +27 -0
- package/dist/components/atoms/Select.d.ts.map +1 -0
- package/dist/components/atoms/Spacer.d.ts +20 -0
- package/dist/components/atoms/Spacer.d.ts.map +1 -0
- package/dist/components/atoms/Spinner.d.ts +11 -0
- package/dist/components/atoms/Spinner.d.ts.map +1 -0
- package/dist/components/atoms/Stack.d.ts +45 -0
- package/dist/components/atoms/Stack.d.ts.map +1 -0
- package/dist/components/atoms/Switch.d.ts +21 -0
- package/dist/components/atoms/Switch.d.ts.map +1 -0
- package/dist/components/atoms/Textarea.d.ts +22 -0
- package/dist/components/atoms/Textarea.d.ts.map +1 -0
- package/dist/components/atoms/Typography.d.ts +20 -0
- package/dist/components/atoms/Typography.d.ts.map +1 -0
- package/dist/components/atoms/game/ControlButton.d.ts +30 -0
- package/dist/components/atoms/game/ControlButton.d.ts.map +1 -0
- package/dist/components/atoms/game/HealthBar.d.ts +18 -0
- package/dist/components/atoms/game/HealthBar.d.ts.map +1 -0
- package/dist/components/atoms/game/ScoreDisplay.d.ts +20 -0
- package/dist/components/atoms/game/ScoreDisplay.d.ts.map +1 -0
- package/dist/components/atoms/game/Sprite.d.ts +41 -0
- package/dist/components/atoms/game/Sprite.d.ts.map +1 -0
- package/dist/components/atoms/game/StateIndicator.d.ts +22 -0
- package/dist/components/atoms/game/StateIndicator.d.ts.map +1 -0
- package/dist/components/atoms/game/index.d.ts +11 -0
- package/dist/components/atoms/game/index.d.ts.map +1 -0
- package/dist/components/atoms/index.d.ts +45 -0
- package/dist/components/atoms/index.d.ts.map +1 -0
- package/dist/components/atoms/index.js +69 -0
- package/dist/components/atoms/index.js.map +1 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +317 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/molecules/Alert.d.ts +22 -0
- package/dist/components/molecules/Alert.d.ts.map +1 -0
- package/dist/components/molecules/Breadcrumb.d.ts +16 -0
- package/dist/components/molecules/Breadcrumb.d.ts.map +1 -0
- package/dist/components/molecules/ButtonGroup.d.ts +23 -0
- package/dist/components/molecules/ButtonGroup.d.ts.map +1 -0
- package/dist/components/molecules/CodeBlock.d.ts +26 -0
- package/dist/components/molecules/CodeBlock.d.ts.map +1 -0
- package/dist/components/molecules/Container.d.ts +20 -0
- package/dist/components/molecules/Container.d.ts.map +1 -0
- package/dist/components/molecules/Drawer.d.ts +11 -0
- package/dist/components/molecules/Drawer.d.ts.map +1 -0
- package/dist/components/molecules/EmptyState.d.ts +7 -0
- package/dist/components/molecules/EmptyState.d.ts.map +1 -0
- package/dist/components/molecules/ErrorBoundary.d.ts +29 -0
- package/dist/components/molecules/ErrorBoundary.d.ts.map +1 -0
- package/dist/components/molecules/ErrorState.d.ts +7 -0
- package/dist/components/molecules/ErrorState.d.ts.map +1 -0
- package/dist/components/molecules/FilterGroup.d.ts +54 -0
- package/dist/components/molecules/FilterGroup.d.ts.map +1 -0
- package/dist/components/molecules/Flex.d.ts +31 -0
- package/dist/components/molecules/Flex.d.ts.map +1 -0
- package/dist/components/molecules/FloatingActionButton.d.ts +33 -0
- package/dist/components/molecules/FloatingActionButton.d.ts.map +1 -0
- package/dist/components/molecules/FormField.d.ts +12 -0
- package/dist/components/molecules/FormField.d.ts.map +1 -0
- package/dist/components/molecules/FormSectionHeader.d.ts +15 -0
- package/dist/components/molecules/FormSectionHeader.d.ts.map +1 -0
- package/dist/components/molecules/Grid.d.ts +24 -0
- package/dist/components/molecules/Grid.d.ts.map +1 -0
- package/dist/components/molecules/InputGroup.d.ts +18 -0
- package/dist/components/molecules/InputGroup.d.ts.map +1 -0
- package/dist/components/molecules/List.d.ts +16 -0
- package/dist/components/molecules/List.d.ts.map +1 -0
- package/dist/components/molecules/LoadingState.d.ts +6 -0
- package/dist/components/molecules/LoadingState.d.ts.map +1 -0
- package/dist/components/molecules/MarkdownContent.d.ts +18 -0
- package/dist/components/molecules/MarkdownContent.d.ts.map +1 -0
- package/dist/components/molecules/Menu.d.ts +19 -0
- package/dist/components/molecules/Menu.d.ts.map +1 -0
- package/dist/components/molecules/Meter.d.ts +58 -0
- package/dist/components/molecules/Meter.d.ts.map +1 -0
- package/dist/components/molecules/Modal.d.ts +22 -0
- package/dist/components/molecules/Modal.d.ts.map +1 -0
- package/dist/components/molecules/Navigation.d.ts +72 -0
- package/dist/components/molecules/Navigation.d.ts.map +1 -0
- package/dist/components/molecules/Pagination.d.ts +30 -0
- package/dist/components/molecules/Pagination.d.ts.map +1 -0
- package/dist/components/molecules/Popover.d.ts +11 -0
- package/dist/components/molecules/Popover.d.ts.map +1 -0
- package/dist/components/molecules/QuizBlock.d.ts +35 -0
- package/dist/components/molecules/QuizBlock.d.ts.map +1 -0
- package/dist/components/molecules/RelationSelect.d.ts +38 -0
- package/dist/components/molecules/RelationSelect.d.ts.map +1 -0
- package/dist/components/molecules/RepeatableFormSection.d.ts +46 -0
- package/dist/components/molecules/RepeatableFormSection.d.ts.map +1 -0
- package/dist/components/molecules/ScaledDiagram.d.ts +41 -0
- package/dist/components/molecules/ScaledDiagram.d.ts.map +1 -0
- package/dist/components/molecules/SearchInput.d.ts +22 -0
- package/dist/components/molecules/SearchInput.d.ts.map +1 -0
- package/dist/components/molecules/SidePanel.d.ts +49 -0
- package/dist/components/molecules/SidePanel.d.ts.map +1 -0
- package/dist/components/molecules/SimpleGrid.d.ts +17 -0
- package/dist/components/molecules/SimpleGrid.d.ts.map +1 -0
- package/dist/components/molecules/Skeleton.d.ts +12 -0
- package/dist/components/molecules/Skeleton.d.ts.map +1 -0
- package/dist/components/molecules/Tabs.d.ts +25 -0
- package/dist/components/molecules/Tabs.d.ts.map +1 -0
- package/dist/components/molecules/Toast.d.ts +18 -0
- package/dist/components/molecules/Toast.d.ts.map +1 -0
- package/dist/components/molecules/Tooltip.d.ts +11 -0
- package/dist/components/molecules/Tooltip.d.ts.map +1 -0
- package/dist/components/molecules/WizardNavigation.d.ts +36 -0
- package/dist/components/molecules/WizardNavigation.d.ts.map +1 -0
- package/dist/components/molecules/WizardProgress.d.ts +26 -0
- package/dist/components/molecules/WizardProgress.d.ts.map +1 -0
- package/dist/components/molecules/game/ActionButtons.d.ts +30 -0
- package/dist/components/molecules/game/ActionButtons.d.ts.map +1 -0
- package/dist/components/molecules/game/DPad.d.ts +19 -0
- package/dist/components/molecules/game/DPad.d.ts.map +1 -0
- package/dist/components/molecules/game/StatBadge.d.ts +26 -0
- package/dist/components/molecules/game/StatBadge.d.ts.map +1 -0
- package/dist/components/molecules/game/index.d.ts +7 -0
- package/dist/components/molecules/game/index.d.ts.map +1 -0
- package/dist/components/molecules/index.d.ts +79 -0
- package/dist/components/molecules/index.d.ts.map +1 -0
- package/dist/components/molecules/index.js +96 -0
- package/dist/components/molecules/index.js.map +1 -0
- package/dist/components/organisms/CardGrid.d.ts +16 -0
- package/dist/components/organisms/CardGrid.d.ts.map +1 -0
- package/dist/components/organisms/Chart.d.ts +26 -0
- package/dist/components/organisms/Chart.d.ts.map +1 -0
- package/dist/components/organisms/CodeViewer.d.ts +29 -0
- package/dist/components/organisms/CodeViewer.d.ts.map +1 -0
- package/dist/components/organisms/ComponentPatterns.d.ts +34 -0
- package/dist/components/organisms/ComponentPatterns.d.ts.map +1 -0
- package/dist/components/organisms/ConfirmDialog.d.ts +46 -0
- package/dist/components/organisms/ConfirmDialog.d.ts.map +1 -0
- package/dist/components/organisms/ContentRenderer.d.ts +37 -0
- package/dist/components/organisms/ContentRenderer.d.ts.map +1 -0
- package/dist/components/organisms/CustomPattern.d.ts +36 -0
- package/dist/components/organisms/CustomPattern.d.ts.map +1 -0
- package/dist/components/organisms/DataTable.d.ts +22 -0
- package/dist/components/organisms/DataTable.d.ts.map +1 -0
- package/dist/components/organisms/DetailPanel.d.ts +17 -0
- package/dist/components/organisms/DetailPanel.d.ts.map +1 -0
- package/dist/components/organisms/DocumentViewer.d.ts +34 -0
- package/dist/components/organisms/DocumentViewer.d.ts.map +1 -0
- package/dist/components/organisms/DrawerSlot.d.ts +38 -0
- package/dist/components/organisms/DrawerSlot.d.ts.map +1 -0
- package/dist/components/organisms/EntityCard.d.ts +11 -0
- package/dist/components/organisms/EntityCard.d.ts.map +1 -0
- package/dist/components/organisms/EntityList.d.ts +17 -0
- package/dist/components/organisms/EntityList.d.ts.map +1 -0
- package/dist/components/organisms/Form.d.ts +49 -0
- package/dist/components/organisms/Form.d.ts.map +1 -0
- package/dist/components/organisms/FormSection.d.ts +9 -0
- package/dist/components/organisms/FormSection.d.ts.map +1 -0
- package/dist/components/organisms/Header.d.ts +24 -0
- package/dist/components/organisms/Header.d.ts.map +1 -0
- package/dist/components/organisms/LayoutPatterns.d.ts +39 -0
- package/dist/components/organisms/LayoutPatterns.d.ts.map +1 -0
- package/dist/components/organisms/MasterDetail.d.ts +39 -0
- package/dist/components/organisms/MasterDetail.d.ts.map +1 -0
- package/dist/components/organisms/MediaGallery.d.ts +35 -0
- package/dist/components/organisms/MediaGallery.d.ts.map +1 -0
- package/dist/components/organisms/ModalSlot.d.ts +35 -0
- package/dist/components/organisms/ModalSlot.d.ts.map +1 -0
- package/dist/components/organisms/PageHeader.d.ts +15 -0
- package/dist/components/organisms/PageHeader.d.ts.map +1 -0
- package/dist/components/organisms/Section.d.ts +52 -0
- package/dist/components/organisms/Section.d.ts.map +1 -0
- package/dist/components/organisms/Sidebar.d.ts +54 -0
- package/dist/components/organisms/Sidebar.d.ts.map +1 -0
- package/dist/components/organisms/SignaturePad.d.ts +44 -0
- package/dist/components/organisms/SignaturePad.d.ts.map +1 -0
- package/dist/components/organisms/Split.d.ts +34 -0
- package/dist/components/organisms/Split.d.ts.map +1 -0
- package/dist/components/organisms/StatCard.d.ts +20 -0
- package/dist/components/organisms/StatCard.d.ts.map +1 -0
- package/dist/components/organisms/StateMachineView.d.ts +41 -0
- package/dist/components/organisms/StateMachineView.d.ts.map +1 -0
- package/dist/components/organisms/Table.d.ts +104 -0
- package/dist/components/organisms/Table.d.ts.map +1 -0
- package/dist/components/organisms/Timeline.d.ts +19 -0
- package/dist/components/organisms/Timeline.d.ts.map +1 -0
- package/dist/components/organisms/ToastSlot.d.ts +30 -0
- package/dist/components/organisms/ToastSlot.d.ts.map +1 -0
- package/dist/components/organisms/UISlotRenderer.d.ts +35 -0
- package/dist/components/organisms/UISlotRenderer.d.ts.map +1 -0
- package/dist/components/organisms/WizardContainer.d.ts +25 -0
- package/dist/components/organisms/WizardContainer.d.ts.map +1 -0
- package/dist/components/organisms/book/BookChapterView.d.ts +26 -0
- package/dist/components/organisms/book/BookChapterView.d.ts.map +1 -0
- package/dist/components/organisms/book/BookCoverPage.d.ts +38 -0
- package/dist/components/organisms/book/BookCoverPage.d.ts.map +1 -0
- package/dist/components/organisms/book/BookNavBar.d.ts +40 -0
- package/dist/components/organisms/book/BookNavBar.d.ts.map +1 -0
- package/dist/components/organisms/book/BookTableOfContents.d.ts +32 -0
- package/dist/components/organisms/book/BookTableOfContents.d.ts.map +1 -0
- package/dist/components/organisms/book/BookViewer.d.ts +36 -0
- package/dist/components/organisms/book/BookViewer.d.ts.map +1 -0
- package/dist/components/organisms/book/index.d.ts +11 -0
- package/dist/components/organisms/book/index.d.ts.map +1 -0
- package/dist/components/organisms/game/BattleBoard.d.ts +38 -0
- package/dist/components/organisms/game/BattleBoard.d.ts.map +1 -0
- package/dist/components/organisms/game/CanvasEffect.d.ts +26 -0
- package/dist/components/organisms/game/CanvasEffect.d.ts.map +1 -0
- package/dist/components/organisms/game/CastleBoard.d.ts +30 -0
- package/dist/components/organisms/game/CastleBoard.d.ts.map +1 -0
- package/dist/components/organisms/game/CombatLog.d.ts +23 -0
- package/dist/components/organisms/game/CombatLog.d.ts.map +1 -0
- package/dist/components/organisms/game/DialogueBox.d.ts +40 -0
- package/dist/components/organisms/game/DialogueBox.d.ts.map +1 -0
- package/dist/components/organisms/game/GameAudioProvider.d.ts +50 -0
- package/dist/components/organisms/game/GameAudioProvider.d.ts.map +1 -0
- package/dist/components/organisms/game/GameAudioToggle.d.ts +18 -0
- package/dist/components/organisms/game/GameAudioToggle.d.ts.map +1 -0
- package/dist/components/organisms/game/GameCanvas3D.d.ts +53 -0
- package/dist/components/organisms/game/GameCanvas3D.d.ts.map +1 -0
- package/dist/components/organisms/game/GameHud.d.ts +40 -0
- package/dist/components/organisms/game/GameHud.d.ts.map +1 -0
- package/dist/components/organisms/game/GameMenu.d.ts +34 -0
- package/dist/components/organisms/game/GameMenu.d.ts.map +1 -0
- package/dist/components/organisms/game/GameOverScreen.d.ts +36 -0
- package/dist/components/organisms/game/GameOverScreen.d.ts.map +1 -0
- package/dist/components/organisms/game/InventoryPanel.d.ts +38 -0
- package/dist/components/organisms/game/InventoryPanel.d.ts.map +1 -0
- package/dist/components/organisms/game/IsometricCanvas.d.ts +54 -0
- package/dist/components/organisms/game/IsometricCanvas.d.ts.map +1 -0
- package/dist/components/organisms/game/TraitSlot.d.ts +29 -0
- package/dist/components/organisms/game/TraitSlot.d.ts.map +1 -0
- package/dist/components/organisms/game/TraitStateViewer.d.ts +28 -0
- package/dist/components/organisms/game/TraitStateViewer.d.ts.map +1 -0
- package/dist/components/organisms/game/UncontrolledBattleBoard.d.ts +30 -0
- package/dist/components/organisms/game/UncontrolledBattleBoard.d.ts.map +1 -0
- package/dist/components/organisms/game/WorldMapBoard.d.ts +40 -0
- package/dist/components/organisms/game/WorldMapBoard.d.ts.map +1 -0
- package/dist/components/organisms/game/index.d.ts +37 -0
- package/dist/components/organisms/game/index.d.ts.map +1 -0
- package/dist/components/organisms/game/physics-sim/SimulationCanvas.d.ts +41 -0
- package/dist/components/organisms/game/physics-sim/SimulationCanvas.d.ts.map +1 -0
- package/dist/components/organisms/game/physics-sim/SimulationControls.d.ts +38 -0
- package/dist/components/organisms/game/physics-sim/SimulationControls.d.ts.map +1 -0
- package/dist/components/organisms/game/physics-sim/SimulationGraph.d.ts +35 -0
- package/dist/components/organisms/game/physics-sim/SimulationGraph.d.ts.map +1 -0
- package/dist/components/organisms/game/physics-sim/index.d.ts +7 -0
- package/dist/components/organisms/game/physics-sim/index.d.ts.map +1 -0
- package/dist/components/organisms/game/puzzles/builder/BuilderBoard.d.ts +55 -0
- package/dist/components/organisms/game/puzzles/builder/BuilderBoard.d.ts.map +1 -0
- package/dist/components/organisms/game/puzzles/builder/index.d.ts +3 -0
- package/dist/components/organisms/game/puzzles/builder/index.d.ts.map +1 -0
- package/dist/components/organisms/game/puzzles/classifier/ClassifierBoard.d.ts +56 -0
- package/dist/components/organisms/game/puzzles/classifier/ClassifierBoard.d.ts.map +1 -0
- package/dist/components/organisms/game/puzzles/classifier/index.d.ts +3 -0
- package/dist/components/organisms/game/puzzles/classifier/index.d.ts.map +1 -0
- package/dist/components/organisms/game/puzzles/debugger/DebuggerBoard.d.ts +48 -0
- package/dist/components/organisms/game/puzzles/debugger/DebuggerBoard.d.ts.map +1 -0
- package/dist/components/organisms/game/puzzles/debugger/index.d.ts +3 -0
- package/dist/components/organisms/game/puzzles/debugger/index.d.ts.map +1 -0
- package/dist/components/organisms/game/puzzles/event-handler/EventHandlerBoard.d.ts +56 -0
- package/dist/components/organisms/game/puzzles/event-handler/EventHandlerBoard.d.ts.map +1 -0
- package/dist/components/organisms/game/puzzles/event-handler/EventLog.d.ts +33 -0
- package/dist/components/organisms/game/puzzles/event-handler/EventLog.d.ts.map +1 -0
- package/dist/components/organisms/game/puzzles/event-handler/ObjectRulePanel.d.ts +41 -0
- package/dist/components/organisms/game/puzzles/event-handler/ObjectRulePanel.d.ts.map +1 -0
- package/dist/components/organisms/game/puzzles/event-handler/RuleEditor.d.ts +39 -0
- package/dist/components/organisms/game/puzzles/event-handler/RuleEditor.d.ts.map +1 -0
- package/dist/components/organisms/game/puzzles/event-handler/index.d.ts +9 -0
- package/dist/components/organisms/game/puzzles/event-handler/index.d.ts.map +1 -0
- package/dist/components/organisms/game/puzzles/index.d.ts +49 -0
- package/dist/components/organisms/game/puzzles/index.d.ts.map +1 -0
- package/dist/components/organisms/game/puzzles/negotiator/NegotiatorBoard.d.ts +54 -0
- package/dist/components/organisms/game/puzzles/negotiator/NegotiatorBoard.d.ts.map +1 -0
- package/dist/components/organisms/game/puzzles/negotiator/index.d.ts +3 -0
- package/dist/components/organisms/game/puzzles/negotiator/index.d.ts.map +1 -0
- package/dist/components/organisms/game/puzzles/sequencer/ActionPalette.d.ts +32 -0
- package/dist/components/organisms/game/puzzles/sequencer/ActionPalette.d.ts.map +1 -0
- package/dist/components/organisms/game/puzzles/sequencer/ActionTile.d.ts +27 -0
- package/dist/components/organisms/game/puzzles/sequencer/ActionTile.d.ts.map +1 -0
- package/dist/components/organisms/game/puzzles/sequencer/SequenceBar.d.ts +31 -0
- package/dist/components/organisms/game/puzzles/sequencer/SequenceBar.d.ts.map +1 -0
- package/dist/components/organisms/game/puzzles/sequencer/SequencerBoard.d.ts +67 -0
- package/dist/components/organisms/game/puzzles/sequencer/SequencerBoard.d.ts.map +1 -0
- package/dist/components/organisms/game/puzzles/sequencer/index.d.ts +3 -0
- package/dist/components/organisms/game/puzzles/sequencer/index.d.ts.map +1 -0
- package/dist/components/organisms/game/puzzles/simulator/SimulatorBoard.d.ts +55 -0
- package/dist/components/organisms/game/puzzles/simulator/SimulatorBoard.d.ts.map +1 -0
- package/dist/components/organisms/game/puzzles/simulator/index.d.ts +3 -0
- package/dist/components/organisms/game/puzzles/simulator/index.d.ts.map +1 -0
- package/dist/components/organisms/game/puzzles/state-architect/CodeView.d.ts +40 -0
- package/dist/components/organisms/game/puzzles/state-architect/CodeView.d.ts.map +1 -0
- package/dist/components/organisms/game/puzzles/state-architect/StateArchitectBoard.d.ts +78 -0
- package/dist/components/organisms/game/puzzles/state-architect/StateArchitectBoard.d.ts.map +1 -0
- package/dist/components/organisms/game/puzzles/state-architect/StateNode.d.ts +29 -0
- package/dist/components/organisms/game/puzzles/state-architect/StateNode.d.ts.map +1 -0
- package/dist/components/organisms/game/puzzles/state-architect/TransitionArrow.d.ts +33 -0
- package/dist/components/organisms/game/puzzles/state-architect/TransitionArrow.d.ts.map +1 -0
- package/dist/components/organisms/game/puzzles/state-architect/VariablePanel.d.ts +38 -0
- package/dist/components/organisms/game/puzzles/state-architect/VariablePanel.d.ts.map +1 -0
- package/dist/components/organisms/game/puzzles/state-architect/index.d.ts +3 -0
- package/dist/components/organisms/game/puzzles/state-architect/index.d.ts.map +1 -0
- package/dist/components/organisms/index.d.ts +68 -0
- package/dist/components/organisms/index.d.ts.map +1 -0
- package/dist/components/organisms/index.js +168 -0
- package/dist/components/organisms/index.js.map +1 -0
- package/dist/components/organisms/layout/DashboardGrid.d.ts +25 -0
- package/dist/components/organisms/layout/DashboardGrid.d.ts.map +1 -0
- package/dist/components/organisms/layout/SplitPane.d.ts +25 -0
- package/dist/components/organisms/layout/SplitPane.d.ts.map +1 -0
- package/dist/components/organisms/layout/TabbedContainer.d.ts +26 -0
- package/dist/components/organisms/layout/TabbedContainer.d.ts.map +1 -0
- package/dist/components/organisms/layout/index.d.ts +7 -0
- package/dist/components/organisms/layout/index.d.ts.map +1 -0
- package/dist/components/templates/AuthLayout.d.ts +20 -0
- package/dist/components/templates/AuthLayout.d.ts.map +1 -0
- package/dist/components/templates/BattleTemplate.d.ts +31 -0
- package/dist/components/templates/BattleTemplate.d.ts.map +1 -0
- package/dist/components/templates/CastleTemplate.d.ts +32 -0
- package/dist/components/templates/CastleTemplate.d.ts.map +1 -0
- package/dist/components/templates/CounterTemplate.d.ts +32 -0
- package/dist/components/templates/CounterTemplate.d.ts.map +1 -0
- package/dist/components/templates/DashboardLayout.d.ts +20 -0
- package/dist/components/templates/DashboardLayout.d.ts.map +1 -0
- package/dist/components/templates/GameShell.d.ts +29 -0
- package/dist/components/templates/GameShell.d.ts.map +1 -0
- package/dist/components/templates/GameTemplate.d.ts +55 -0
- package/dist/components/templates/GameTemplate.d.ts.map +1 -0
- package/dist/components/templates/WorldMapTemplate.d.ts +35 -0
- package/dist/components/templates/WorldMapTemplate.d.ts.map +1 -0
- package/dist/components/templates/index.d.ts +17 -0
- package/dist/components/templates/index.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +17 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +34 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/useEventBus.d.ts +2 -0
- package/dist/hooks/useEventBus.d.ts.map +1 -0
- package/dist/hooks/useInfiniteScroll.d.ts +32 -0
- package/dist/hooks/useInfiniteScroll.d.ts.map +1 -0
- package/dist/hooks/useKeyboard.d.ts +11 -0
- package/dist/hooks/useKeyboard.d.ts.map +1 -0
- package/dist/hooks/useNavigation.d.ts +41 -0
- package/dist/hooks/useNavigation.d.ts.map +1 -0
- package/dist/hooks/usePullToRefresh.d.ts +29 -0
- package/dist/hooks/usePullToRefresh.d.ts.map +1 -0
- package/dist/hooks/useSafeAreaInsets.d.ts +29 -0
- package/dist/hooks/useSafeAreaInsets.d.ts.map +1 -0
- package/dist/hooks/useScrollHeader.d.ts +33 -0
- package/dist/hooks/useScrollHeader.d.ts.map +1 -0
- package/dist/hooks/useThemeStyles.d.ts +26 -0
- package/dist/hooks/useThemeStyles.d.ts.map +1 -0
- package/dist/hooks/useTraitState.d.ts +11 -0
- package/dist/hooks/useTraitState.d.ts.map +1 -0
- package/dist/hooks/useUIEvents.d.ts +2 -0
- package/dist/hooks/useUIEvents.d.ts.map +1 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1264 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/cn.d.ts +2 -0
- package/dist/lib/cn.d.ts.map +1 -0
- package/dist/lib/index.d.ts +6 -0
- package/dist/lib/index.d.ts.map +1 -0
- package/dist/lib/index.js +18 -0
- package/dist/lib/index.js.map +1 -0
- package/dist/lib/theme.d.ts +13 -0
- package/dist/lib/theme.d.ts.map +1 -0
- package/dist/providers/EventBusProvider.d.ts +2 -0
- package/dist/providers/EventBusProvider.d.ts.map +1 -0
- package/dist/providers/ThemeContext.d.ts +91 -0
- package/dist/providers/ThemeContext.d.ts.map +1 -0
- package/dist/providers/ThemeProvider.d.ts +10 -0
- package/dist/providers/ThemeProvider.d.ts.map +1 -0
- package/dist/providers/index.d.ts +6 -0
- package/dist/providers/index.d.ts.map +1 -0
- package/dist/providers/index.js +14 -0
- package/dist/providers/index.js.map +1 -0
- package/dist/themes/almadar.d.ts +8 -0
- package/dist/themes/almadar.d.ts.map +1 -0
- package/dist/themes/index.d.ts +90 -0
- package/dist/themes/index.d.ts.map +1 -0
- package/index.js +10 -0
- package/package.json +109 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,1264 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useInfiniteScroll,
|
|
3
|
+
useKeyboard,
|
|
4
|
+
useKeyboardHeight,
|
|
5
|
+
useNavigation,
|
|
6
|
+
useParams,
|
|
7
|
+
usePullToRefresh,
|
|
8
|
+
useSafeAreaInsets,
|
|
9
|
+
useScrollHeader,
|
|
10
|
+
useThemeStyles,
|
|
11
|
+
useThemeValue,
|
|
12
|
+
useTraitState,
|
|
13
|
+
useUIEvents
|
|
14
|
+
} from "./chunk-CA6Z3OTE.js";
|
|
15
|
+
import {
|
|
16
|
+
EventBusProvider,
|
|
17
|
+
ThemeProvider
|
|
18
|
+
} from "./chunk-VLUJ7BXN.js";
|
|
19
|
+
import {
|
|
20
|
+
cn,
|
|
21
|
+
convertThemeToRN,
|
|
22
|
+
defaultRNTheme
|
|
23
|
+
} from "./chunk-S2IT7WZT.js";
|
|
24
|
+
import {
|
|
25
|
+
almadarDark,
|
|
26
|
+
almadarLight
|
|
27
|
+
} from "./chunk-MFU7Q7LU.js";
|
|
28
|
+
import {
|
|
29
|
+
Avatar,
|
|
30
|
+
Center,
|
|
31
|
+
ConditionalWrapper,
|
|
32
|
+
Overlay,
|
|
33
|
+
Radio,
|
|
34
|
+
Spacer,
|
|
35
|
+
Spinner,
|
|
36
|
+
Sprite,
|
|
37
|
+
StateIndicator,
|
|
38
|
+
Switch,
|
|
39
|
+
Textarea
|
|
40
|
+
} from "./chunk-DMLYJFYQ.js";
|
|
41
|
+
import {
|
|
42
|
+
ActionButtons,
|
|
43
|
+
Alert,
|
|
44
|
+
Breadcrumb,
|
|
45
|
+
ButtonGroup,
|
|
46
|
+
Container,
|
|
47
|
+
DPad,
|
|
48
|
+
ErrorBoundary,
|
|
49
|
+
FilterGroup,
|
|
50
|
+
Flex,
|
|
51
|
+
FloatingActionButton,
|
|
52
|
+
FormField,
|
|
53
|
+
FormSectionHeader,
|
|
54
|
+
Grid,
|
|
55
|
+
InputGroup,
|
|
56
|
+
MarkdownContent,
|
|
57
|
+
Menu,
|
|
58
|
+
Meter,
|
|
59
|
+
Navigation,
|
|
60
|
+
Pagination,
|
|
61
|
+
Popover,
|
|
62
|
+
QuizBlock,
|
|
63
|
+
RelationSelect,
|
|
64
|
+
RepeatableFormSection,
|
|
65
|
+
ScaledDiagram,
|
|
66
|
+
SearchInput,
|
|
67
|
+
SidePanel,
|
|
68
|
+
SimpleGrid,
|
|
69
|
+
Skeleton,
|
|
70
|
+
Tooltip,
|
|
71
|
+
WizardNavigation,
|
|
72
|
+
WizardProgress
|
|
73
|
+
} from "./chunk-YMJZLYLV.js";
|
|
74
|
+
import {
|
|
75
|
+
ControlButton,
|
|
76
|
+
Label
|
|
77
|
+
} from "./chunk-6RVITGGH.js";
|
|
78
|
+
import {
|
|
79
|
+
ActionPalette,
|
|
80
|
+
ActionTile,
|
|
81
|
+
BattleBoard,
|
|
82
|
+
BookChapterView,
|
|
83
|
+
BookCoverPage,
|
|
84
|
+
BookNavBar,
|
|
85
|
+
BookTableOfContents,
|
|
86
|
+
BookViewer,
|
|
87
|
+
BuilderBoard,
|
|
88
|
+
CanvasEffect,
|
|
89
|
+
CardGrid,
|
|
90
|
+
CastleBoard,
|
|
91
|
+
Chart,
|
|
92
|
+
ClassifierBoard,
|
|
93
|
+
CodeView,
|
|
94
|
+
CodeViewer,
|
|
95
|
+
CombatLog,
|
|
96
|
+
ComponentPatterns,
|
|
97
|
+
ConfirmDialog,
|
|
98
|
+
ContentRenderer,
|
|
99
|
+
CustomPattern,
|
|
100
|
+
DashboardGrid,
|
|
101
|
+
DataTable,
|
|
102
|
+
DebuggerBoard,
|
|
103
|
+
DetailPanel,
|
|
104
|
+
DialogueBox,
|
|
105
|
+
DocumentViewer,
|
|
106
|
+
DrawerSlot,
|
|
107
|
+
EntityCard,
|
|
108
|
+
EntityList,
|
|
109
|
+
EventHandlerBoard,
|
|
110
|
+
EventLog,
|
|
111
|
+
Form,
|
|
112
|
+
FormSection,
|
|
113
|
+
GameAudioProvider,
|
|
114
|
+
GameAudioToggle,
|
|
115
|
+
GameCanvas3D,
|
|
116
|
+
GameHud,
|
|
117
|
+
GameMenu,
|
|
118
|
+
GameOverScreen,
|
|
119
|
+
Header,
|
|
120
|
+
InventoryPanel,
|
|
121
|
+
IsometricCanvas,
|
|
122
|
+
LayoutPatterns,
|
|
123
|
+
MasterDetail,
|
|
124
|
+
MediaGallery,
|
|
125
|
+
ModalSlot,
|
|
126
|
+
NegotiatorBoard,
|
|
127
|
+
ObjectRulePanel,
|
|
128
|
+
PageHeader,
|
|
129
|
+
RuleEditor,
|
|
130
|
+
Section,
|
|
131
|
+
SequenceBar,
|
|
132
|
+
SequencerBoard,
|
|
133
|
+
Sidebar,
|
|
134
|
+
SignaturePad,
|
|
135
|
+
SimulationCanvas,
|
|
136
|
+
SimulationControls,
|
|
137
|
+
SimulationGraph,
|
|
138
|
+
SimulatorBoard,
|
|
139
|
+
Split,
|
|
140
|
+
SplitPane,
|
|
141
|
+
StatCard,
|
|
142
|
+
StateArchitectBoard,
|
|
143
|
+
StateMachineView,
|
|
144
|
+
StateNode,
|
|
145
|
+
TabbedContainer,
|
|
146
|
+
Table,
|
|
147
|
+
Timeline,
|
|
148
|
+
ToastSlot,
|
|
149
|
+
TraitSlot,
|
|
150
|
+
TraitStateViewer,
|
|
151
|
+
TransitionArrow,
|
|
152
|
+
UISlotRenderer,
|
|
153
|
+
UncontrolledBattleBoard,
|
|
154
|
+
VariablePanel,
|
|
155
|
+
WizardContainer,
|
|
156
|
+
WorldMapBoard,
|
|
157
|
+
useGameAudio
|
|
158
|
+
} from "./chunk-T77JPOTP.js";
|
|
159
|
+
import {
|
|
160
|
+
Checkbox,
|
|
161
|
+
Divider,
|
|
162
|
+
Icon
|
|
163
|
+
} from "./chunk-LFHVNHVA.js";
|
|
164
|
+
import {
|
|
165
|
+
CodeBlock,
|
|
166
|
+
ConfirmModal,
|
|
167
|
+
Drawer,
|
|
168
|
+
EmptyState,
|
|
169
|
+
List,
|
|
170
|
+
Modal,
|
|
171
|
+
StatBadge,
|
|
172
|
+
Tabs,
|
|
173
|
+
Toast
|
|
174
|
+
} from "./chunk-DY52O4T3.js";
|
|
175
|
+
import {
|
|
176
|
+
Badge,
|
|
177
|
+
Box,
|
|
178
|
+
Button,
|
|
179
|
+
Card,
|
|
180
|
+
ErrorState,
|
|
181
|
+
HStack,
|
|
182
|
+
HealthBar,
|
|
183
|
+
Input,
|
|
184
|
+
LoadingState,
|
|
185
|
+
ProgressBar,
|
|
186
|
+
ScoreDisplay,
|
|
187
|
+
Select,
|
|
188
|
+
Typography,
|
|
189
|
+
VStack
|
|
190
|
+
} from "./chunk-7C5JCLLY.js";
|
|
191
|
+
import {
|
|
192
|
+
useEventBus
|
|
193
|
+
} from "./chunk-YTVYMEKU.js";
|
|
194
|
+
import {
|
|
195
|
+
useTheme
|
|
196
|
+
} from "./chunk-CUAWHLEK.js";
|
|
197
|
+
|
|
198
|
+
// src/components/templates/DashboardLayout.tsx
|
|
199
|
+
import React from "react";
|
|
200
|
+
import {
|
|
201
|
+
View,
|
|
202
|
+
StyleSheet,
|
|
203
|
+
ScrollView,
|
|
204
|
+
SafeAreaView
|
|
205
|
+
} from "react-native";
|
|
206
|
+
var DashboardLayout = ({
|
|
207
|
+
children,
|
|
208
|
+
headerTitle,
|
|
209
|
+
headerActions = [],
|
|
210
|
+
showHeader = true,
|
|
211
|
+
style,
|
|
212
|
+
contentStyle,
|
|
213
|
+
scrollable = true,
|
|
214
|
+
isLoading,
|
|
215
|
+
error
|
|
216
|
+
}) => {
|
|
217
|
+
const theme = useTheme();
|
|
218
|
+
const Content = scrollable ? ScrollView : View;
|
|
219
|
+
if (isLoading) {
|
|
220
|
+
return /* @__PURE__ */ React.createElement(SafeAreaView, { style: [styles.container, { backgroundColor: theme.colors.background }, style] }, showHeader && /* @__PURE__ */ React.createElement(Header, { title: headerTitle, rightActions: headerActions }), /* @__PURE__ */ React.createElement(LoadingState, { message: "Loading..." }));
|
|
221
|
+
}
|
|
222
|
+
if (error) {
|
|
223
|
+
return /* @__PURE__ */ React.createElement(SafeAreaView, { style: [styles.container, { backgroundColor: theme.colors.background }, style] }, showHeader && /* @__PURE__ */ React.createElement(Header, { title: headerTitle, rightActions: headerActions }), /* @__PURE__ */ React.createElement(ErrorState, { message: error.message }));
|
|
224
|
+
}
|
|
225
|
+
return /* @__PURE__ */ React.createElement(SafeAreaView, { style: [styles.container, { backgroundColor: theme.colors.background }, style] }, showHeader && /* @__PURE__ */ React.createElement(Header, { title: headerTitle, rightActions: headerActions }), /* @__PURE__ */ React.createElement(
|
|
226
|
+
Content,
|
|
227
|
+
{
|
|
228
|
+
style: [styles.content, contentStyle],
|
|
229
|
+
contentContainerStyle: scrollable ? styles.scrollContent : void 0
|
|
230
|
+
},
|
|
231
|
+
children
|
|
232
|
+
));
|
|
233
|
+
};
|
|
234
|
+
var styles = StyleSheet.create({
|
|
235
|
+
container: {
|
|
236
|
+
flex: 1
|
|
237
|
+
},
|
|
238
|
+
content: {
|
|
239
|
+
flex: 1
|
|
240
|
+
},
|
|
241
|
+
scrollContent: {
|
|
242
|
+
flexGrow: 1,
|
|
243
|
+
padding: 16
|
|
244
|
+
}
|
|
245
|
+
});
|
|
246
|
+
DashboardLayout.displayName = "DashboardLayout";
|
|
247
|
+
|
|
248
|
+
// src/components/templates/AuthLayout.tsx
|
|
249
|
+
import React2 from "react";
|
|
250
|
+
import {
|
|
251
|
+
View as View2,
|
|
252
|
+
StyleSheet as StyleSheet2,
|
|
253
|
+
ScrollView as ScrollView2,
|
|
254
|
+
SafeAreaView as SafeAreaView2,
|
|
255
|
+
KeyboardAvoidingView,
|
|
256
|
+
Platform,
|
|
257
|
+
TouchableOpacity
|
|
258
|
+
} from "react-native";
|
|
259
|
+
var AuthLayout = ({
|
|
260
|
+
children,
|
|
261
|
+
title,
|
|
262
|
+
subtitle,
|
|
263
|
+
footer,
|
|
264
|
+
showBackButton = false,
|
|
265
|
+
onBack,
|
|
266
|
+
backAction,
|
|
267
|
+
style,
|
|
268
|
+
isLoading,
|
|
269
|
+
error
|
|
270
|
+
}) => {
|
|
271
|
+
const theme = useTheme();
|
|
272
|
+
const eventBus = useEventBus();
|
|
273
|
+
const handleBack = () => {
|
|
274
|
+
if (backAction) {
|
|
275
|
+
eventBus.emit(`UI:${backAction}`);
|
|
276
|
+
}
|
|
277
|
+
onBack?.();
|
|
278
|
+
};
|
|
279
|
+
if (isLoading) {
|
|
280
|
+
return /* @__PURE__ */ React2.createElement(SafeAreaView2, { style: [styles2.container, { backgroundColor: theme.colors.background }, style] }, /* @__PURE__ */ React2.createElement(LoadingState, { message: "Loading..." }));
|
|
281
|
+
}
|
|
282
|
+
if (error) {
|
|
283
|
+
return /* @__PURE__ */ React2.createElement(SafeAreaView2, { style: [styles2.container, { backgroundColor: theme.colors.background }, style] }, /* @__PURE__ */ React2.createElement(ErrorState, { message: error.message }));
|
|
284
|
+
}
|
|
285
|
+
return /* @__PURE__ */ React2.createElement(SafeAreaView2, { style: [styles2.container, { backgroundColor: theme.colors.background }, style] }, /* @__PURE__ */ React2.createElement(
|
|
286
|
+
KeyboardAvoidingView,
|
|
287
|
+
{
|
|
288
|
+
behavior: Platform.OS === "ios" ? "padding" : "height",
|
|
289
|
+
style: styles2.keyboardView
|
|
290
|
+
},
|
|
291
|
+
/* @__PURE__ */ React2.createElement(
|
|
292
|
+
ScrollView2,
|
|
293
|
+
{
|
|
294
|
+
contentContainerStyle: styles2.scrollContent,
|
|
295
|
+
keyboardShouldPersistTaps: "handled"
|
|
296
|
+
},
|
|
297
|
+
/* @__PURE__ */ React2.createElement(VStack, { spacing: 24, style: styles2.content }, showBackButton && /* @__PURE__ */ React2.createElement(TouchableOpacity, { onPress: handleBack, style: styles2.backButton }, /* @__PURE__ */ React2.createElement(Typography, { variant: "h4", style: { color: theme.colors.primary } }, "\u2190 Back")), /* @__PURE__ */ React2.createElement(VStack, { spacing: 8, align: "center" }, /* @__PURE__ */ React2.createElement(Typography, { variant: "h1", style: { color: theme.colors.foreground, textAlign: "center" } }, title), subtitle && /* @__PURE__ */ React2.createElement(Typography, { variant: "body", style: { color: theme.colors["muted-foreground"], textAlign: "center" } }, subtitle)), /* @__PURE__ */ React2.createElement(View2, { style: styles2.form }, children), footer && /* @__PURE__ */ React2.createElement(View2, { style: styles2.footer }, footer))
|
|
298
|
+
)
|
|
299
|
+
));
|
|
300
|
+
};
|
|
301
|
+
var styles2 = StyleSheet2.create({
|
|
302
|
+
container: {
|
|
303
|
+
flex: 1
|
|
304
|
+
},
|
|
305
|
+
keyboardView: {
|
|
306
|
+
flex: 1
|
|
307
|
+
},
|
|
308
|
+
scrollContent: {
|
|
309
|
+
flexGrow: 1,
|
|
310
|
+
justifyContent: "center"
|
|
311
|
+
},
|
|
312
|
+
content: {
|
|
313
|
+
padding: 24,
|
|
314
|
+
paddingTop: 40,
|
|
315
|
+
paddingBottom: 40
|
|
316
|
+
},
|
|
317
|
+
backButton: {
|
|
318
|
+
alignSelf: "flex-start"
|
|
319
|
+
},
|
|
320
|
+
form: {
|
|
321
|
+
width: "100%"
|
|
322
|
+
},
|
|
323
|
+
footer: {
|
|
324
|
+
marginTop: 16
|
|
325
|
+
}
|
|
326
|
+
});
|
|
327
|
+
AuthLayout.displayName = "AuthLayout";
|
|
328
|
+
|
|
329
|
+
// src/components/templates/GameShell.tsx
|
|
330
|
+
import React3 from "react";
|
|
331
|
+
import {
|
|
332
|
+
View as View3,
|
|
333
|
+
StyleSheet as StyleSheet3,
|
|
334
|
+
SafeAreaView as SafeAreaView3,
|
|
335
|
+
StatusBar
|
|
336
|
+
} from "react-native";
|
|
337
|
+
var GameShell = ({
|
|
338
|
+
children,
|
|
339
|
+
hud,
|
|
340
|
+
showHud = true,
|
|
341
|
+
header,
|
|
342
|
+
footer,
|
|
343
|
+
style,
|
|
344
|
+
gameAreaStyle,
|
|
345
|
+
backgroundColor,
|
|
346
|
+
isLoading,
|
|
347
|
+
error
|
|
348
|
+
}) => {
|
|
349
|
+
const theme = useTheme();
|
|
350
|
+
const eventBus = useEventBus();
|
|
351
|
+
if (isLoading) {
|
|
352
|
+
return /* @__PURE__ */ React3.createElement(
|
|
353
|
+
SafeAreaView3,
|
|
354
|
+
{
|
|
355
|
+
style: [
|
|
356
|
+
styles3.container,
|
|
357
|
+
{ backgroundColor: backgroundColor || theme.colors.background },
|
|
358
|
+
style
|
|
359
|
+
]
|
|
360
|
+
},
|
|
361
|
+
/* @__PURE__ */ React3.createElement(StatusBar, { barStyle: "light-content" }),
|
|
362
|
+
header,
|
|
363
|
+
/* @__PURE__ */ React3.createElement(View3, { style: styles3.loadingContainer }, /* @__PURE__ */ React3.createElement(LoadingState, { message: "Loading game..." }))
|
|
364
|
+
);
|
|
365
|
+
}
|
|
366
|
+
if (error) {
|
|
367
|
+
return /* @__PURE__ */ React3.createElement(
|
|
368
|
+
SafeAreaView3,
|
|
369
|
+
{
|
|
370
|
+
style: [
|
|
371
|
+
styles3.container,
|
|
372
|
+
{ backgroundColor: backgroundColor || theme.colors.background },
|
|
373
|
+
style
|
|
374
|
+
]
|
|
375
|
+
},
|
|
376
|
+
/* @__PURE__ */ React3.createElement(StatusBar, { barStyle: "light-content" }),
|
|
377
|
+
header,
|
|
378
|
+
/* @__PURE__ */ React3.createElement(View3, { style: styles3.loadingContainer }, /* @__PURE__ */ React3.createElement(
|
|
379
|
+
ErrorState,
|
|
380
|
+
{
|
|
381
|
+
message: error.message,
|
|
382
|
+
onRetry: () => eventBus.emit("UI:GAME_RETRY", {})
|
|
383
|
+
}
|
|
384
|
+
))
|
|
385
|
+
);
|
|
386
|
+
}
|
|
387
|
+
return /* @__PURE__ */ React3.createElement(
|
|
388
|
+
SafeAreaView3,
|
|
389
|
+
{
|
|
390
|
+
style: [
|
|
391
|
+
styles3.container,
|
|
392
|
+
{ backgroundColor: backgroundColor || theme.colors.background },
|
|
393
|
+
style
|
|
394
|
+
]
|
|
395
|
+
},
|
|
396
|
+
/* @__PURE__ */ React3.createElement(StatusBar, { barStyle: "light-content" }),
|
|
397
|
+
header && /* @__PURE__ */ React3.createElement(View3, { style: styles3.header }, header),
|
|
398
|
+
/* @__PURE__ */ React3.createElement(View3, { style: [styles3.gameArea, gameAreaStyle] }, children, showHud && hud && /* @__PURE__ */ React3.createElement(View3, { style: styles3.hudContainer }, /* @__PURE__ */ React3.createElement(
|
|
399
|
+
GameHud,
|
|
400
|
+
{
|
|
401
|
+
...hud,
|
|
402
|
+
style: { ...styles3.hud, ...hud.style }
|
|
403
|
+
}
|
|
404
|
+
))),
|
|
405
|
+
footer && /* @__PURE__ */ React3.createElement(View3, { style: styles3.footer }, footer)
|
|
406
|
+
);
|
|
407
|
+
};
|
|
408
|
+
var styles3 = StyleSheet3.create({
|
|
409
|
+
container: {
|
|
410
|
+
flex: 1
|
|
411
|
+
},
|
|
412
|
+
header: {
|
|
413
|
+
zIndex: 20
|
|
414
|
+
},
|
|
415
|
+
gameArea: {
|
|
416
|
+
flex: 1,
|
|
417
|
+
position: "relative"
|
|
418
|
+
},
|
|
419
|
+
hudContainer: {
|
|
420
|
+
position: "absolute",
|
|
421
|
+
top: 0,
|
|
422
|
+
left: 0,
|
|
423
|
+
right: 0,
|
|
424
|
+
bottom: 0,
|
|
425
|
+
pointerEvents: "box-none"
|
|
426
|
+
},
|
|
427
|
+
hud: {
|
|
428
|
+
pointerEvents: "auto"
|
|
429
|
+
},
|
|
430
|
+
footer: {
|
|
431
|
+
zIndex: 20
|
|
432
|
+
},
|
|
433
|
+
loadingContainer: {
|
|
434
|
+
flex: 1,
|
|
435
|
+
justifyContent: "center",
|
|
436
|
+
alignItems: "center"
|
|
437
|
+
}
|
|
438
|
+
});
|
|
439
|
+
GameShell.displayName = "GameShell";
|
|
440
|
+
|
|
441
|
+
// src/components/templates/BattleTemplate.tsx
|
|
442
|
+
import React4 from "react";
|
|
443
|
+
import {
|
|
444
|
+
View as View4,
|
|
445
|
+
StyleSheet as StyleSheet4
|
|
446
|
+
} from "react-native";
|
|
447
|
+
var BattleTemplate = ({
|
|
448
|
+
battleBoard,
|
|
449
|
+
hudStats,
|
|
450
|
+
menuOptions,
|
|
451
|
+
title,
|
|
452
|
+
showMenu = false,
|
|
453
|
+
style,
|
|
454
|
+
isLoading,
|
|
455
|
+
error,
|
|
456
|
+
entity,
|
|
457
|
+
onBattleAction,
|
|
458
|
+
onBattleEnd
|
|
459
|
+
}) => {
|
|
460
|
+
const theme = useTheme();
|
|
461
|
+
const eventBus = useEventBus();
|
|
462
|
+
const handleBattleAction = (action) => {
|
|
463
|
+
eventBus.emit("UI:BATTLE_ACTION", { action, entity });
|
|
464
|
+
onBattleAction?.(action);
|
|
465
|
+
};
|
|
466
|
+
const handleBattleEnd = (result) => {
|
|
467
|
+
eventBus.emit("UI:BATTLE_END", { result, entity });
|
|
468
|
+
onBattleEnd?.(result);
|
|
469
|
+
};
|
|
470
|
+
const handleMenuSelect = (option) => {
|
|
471
|
+
if (option.event) {
|
|
472
|
+
eventBus.emit(`UI:${option.event}`, { option, entity });
|
|
473
|
+
}
|
|
474
|
+
if (option.navigatesTo) {
|
|
475
|
+
eventBus.emit("UI:navigate", { to: option.navigatesTo });
|
|
476
|
+
}
|
|
477
|
+
};
|
|
478
|
+
if (isLoading) {
|
|
479
|
+
return /* @__PURE__ */ React4.createElement(View4, { style: [styles4.container, { backgroundColor: theme.colors.background }, style] }, /* @__PURE__ */ React4.createElement(LoadingState, { message: "Loading battle..." }));
|
|
480
|
+
}
|
|
481
|
+
if (error) {
|
|
482
|
+
return /* @__PURE__ */ React4.createElement(View4, { style: [styles4.container, { backgroundColor: theme.colors.background }, style] }, /* @__PURE__ */ React4.createElement(
|
|
483
|
+
ErrorState,
|
|
484
|
+
{
|
|
485
|
+
message: error.message,
|
|
486
|
+
onRetry: () => eventBus.emit("UI:BATTLE_RETRY", { entity })
|
|
487
|
+
}
|
|
488
|
+
));
|
|
489
|
+
}
|
|
490
|
+
const hasUnits = battleBoard.units && battleBoard.units.length > 0;
|
|
491
|
+
return /* @__PURE__ */ React4.createElement(View4, { style: [styles4.container, { backgroundColor: "#0f172a" }, style] }, title && /* @__PURE__ */ React4.createElement(View4, { style: styles4.header }, /* @__PURE__ */ React4.createElement(Typography, { variant: "h2", style: { color: "#fff" } }, title)), hudStats && hudStats.length > 0 && /* @__PURE__ */ React4.createElement(View4, { style: styles4.hudContainer }, /* @__PURE__ */ React4.createElement(GameHud, { stats: hudStats, position: "corners", transparent: true })), /* @__PURE__ */ React4.createElement(View4, { style: styles4.boardContainer }, hasUnits ? /* @__PURE__ */ React4.createElement(
|
|
492
|
+
BattleBoard,
|
|
493
|
+
{
|
|
494
|
+
...battleBoard,
|
|
495
|
+
onAction: handleBattleAction
|
|
496
|
+
}
|
|
497
|
+
) : /* @__PURE__ */ React4.createElement(
|
|
498
|
+
EmptyState,
|
|
499
|
+
{
|
|
500
|
+
message: "No battle units available",
|
|
501
|
+
icon: /* @__PURE__ */ React4.createElement(Typography, { variant: "h1" }, "\u2694\uFE0F")
|
|
502
|
+
}
|
|
503
|
+
)), /* @__PURE__ */ React4.createElement(View4, { style: styles4.controls }, /* @__PURE__ */ React4.createElement(HStack, { spacing: 8, justify: "center" }, /* @__PURE__ */ React4.createElement(
|
|
504
|
+
Button,
|
|
505
|
+
{
|
|
506
|
+
variant: "primary",
|
|
507
|
+
action: "BATTLE_ATTACK",
|
|
508
|
+
actionPayload: { entity },
|
|
509
|
+
onPress: () => handleBattleAction("attack")
|
|
510
|
+
},
|
|
511
|
+
"Attack"
|
|
512
|
+
), /* @__PURE__ */ React4.createElement(
|
|
513
|
+
Button,
|
|
514
|
+
{
|
|
515
|
+
variant: "secondary",
|
|
516
|
+
action: "BATTLE_DEFEND",
|
|
517
|
+
actionPayload: { entity },
|
|
518
|
+
onPress: () => handleBattleAction("defend")
|
|
519
|
+
},
|
|
520
|
+
"Defend"
|
|
521
|
+
), /* @__PURE__ */ React4.createElement(
|
|
522
|
+
Button,
|
|
523
|
+
{
|
|
524
|
+
variant: "ghost",
|
|
525
|
+
action: "BATTLE_FLEE",
|
|
526
|
+
actionPayload: { entity },
|
|
527
|
+
onPress: () => handleBattleEnd("flee")
|
|
528
|
+
},
|
|
529
|
+
"Flee"
|
|
530
|
+
))), showMenu && menuOptions && /* @__PURE__ */ React4.createElement(View4, { style: styles4.menuOverlay }, /* @__PURE__ */ React4.createElement(
|
|
531
|
+
GameMenu,
|
|
532
|
+
{
|
|
533
|
+
title: "Battle Menu",
|
|
534
|
+
options: menuOptions,
|
|
535
|
+
onSelect: handleMenuSelect
|
|
536
|
+
}
|
|
537
|
+
)));
|
|
538
|
+
};
|
|
539
|
+
var styles4 = StyleSheet4.create({
|
|
540
|
+
container: {
|
|
541
|
+
flex: 1
|
|
542
|
+
},
|
|
543
|
+
header: {
|
|
544
|
+
padding: 16,
|
|
545
|
+
alignItems: "center"
|
|
546
|
+
},
|
|
547
|
+
hudContainer: {
|
|
548
|
+
position: "absolute",
|
|
549
|
+
top: 60,
|
|
550
|
+
left: 0,
|
|
551
|
+
right: 0,
|
|
552
|
+
height: 80,
|
|
553
|
+
zIndex: 10,
|
|
554
|
+
pointerEvents: "none"
|
|
555
|
+
},
|
|
556
|
+
boardContainer: {
|
|
557
|
+
flex: 1,
|
|
558
|
+
padding: 16,
|
|
559
|
+
justifyContent: "center"
|
|
560
|
+
},
|
|
561
|
+
controls: {
|
|
562
|
+
padding: 16,
|
|
563
|
+
backgroundColor: "rgba(0,0,0,0.5)"
|
|
564
|
+
},
|
|
565
|
+
menuOverlay: {
|
|
566
|
+
position: "absolute",
|
|
567
|
+
top: 0,
|
|
568
|
+
left: 0,
|
|
569
|
+
right: 0,
|
|
570
|
+
bottom: 0,
|
|
571
|
+
zIndex: 100
|
|
572
|
+
}
|
|
573
|
+
});
|
|
574
|
+
BattleTemplate.displayName = "BattleTemplate";
|
|
575
|
+
|
|
576
|
+
// src/components/templates/CastleTemplate.tsx
|
|
577
|
+
import React5 from "react";
|
|
578
|
+
import {
|
|
579
|
+
View as View5,
|
|
580
|
+
StyleSheet as StyleSheet5,
|
|
581
|
+
ScrollView as ScrollView3
|
|
582
|
+
} from "react-native";
|
|
583
|
+
var CastleTemplate = ({
|
|
584
|
+
castleBoard,
|
|
585
|
+
hudStats,
|
|
586
|
+
actions,
|
|
587
|
+
title,
|
|
588
|
+
style,
|
|
589
|
+
isLoading,
|
|
590
|
+
error,
|
|
591
|
+
entity,
|
|
592
|
+
onEnterRoom,
|
|
593
|
+
onCastleAction
|
|
594
|
+
}) => {
|
|
595
|
+
const theme = useTheme();
|
|
596
|
+
const eventBus = useEventBus();
|
|
597
|
+
const handleEnterRoom = (roomId) => {
|
|
598
|
+
eventBus.emit("UI:CASTLE_ENTER_ROOM", { roomId, entity });
|
|
599
|
+
onEnterRoom?.(roomId);
|
|
600
|
+
};
|
|
601
|
+
const handleAction = (action) => {
|
|
602
|
+
eventBus.emit("UI:CASTLE_ACTION", { action, entity });
|
|
603
|
+
onCastleAction?.(action);
|
|
604
|
+
};
|
|
605
|
+
if (isLoading) {
|
|
606
|
+
return /* @__PURE__ */ React5.createElement(View5, { style: [styles5.container, { backgroundColor: theme.colors.background }, style] }, /* @__PURE__ */ React5.createElement(LoadingState, { message: "Loading castle..." }));
|
|
607
|
+
}
|
|
608
|
+
if (error) {
|
|
609
|
+
return /* @__PURE__ */ React5.createElement(View5, { style: [styles5.container, { backgroundColor: theme.colors.background }, style] }, /* @__PURE__ */ React5.createElement(
|
|
610
|
+
ErrorState,
|
|
611
|
+
{
|
|
612
|
+
message: error.message,
|
|
613
|
+
onRetry: () => eventBus.emit("UI:CASTLE_RETRY", { entity })
|
|
614
|
+
}
|
|
615
|
+
));
|
|
616
|
+
}
|
|
617
|
+
const hasRooms = castleBoard.rooms && castleBoard.rooms.length > 0;
|
|
618
|
+
return /* @__PURE__ */ React5.createElement(View5, { style: [styles5.container, { backgroundColor: "#1e293b" }, style] }, hudStats && hudStats.length > 0 && /* @__PURE__ */ React5.createElement(View5, { style: styles5.hudContainer }, /* @__PURE__ */ React5.createElement(GameHud, { stats: hudStats, position: "top", transparent: true })), /* @__PURE__ */ React5.createElement(
|
|
619
|
+
ScrollView3,
|
|
620
|
+
{
|
|
621
|
+
style: styles5.scrollView,
|
|
622
|
+
contentContainerStyle: styles5.scrollContent,
|
|
623
|
+
showsVerticalScrollIndicator: false
|
|
624
|
+
},
|
|
625
|
+
title && /* @__PURE__ */ React5.createElement(View5, { style: styles5.header }, /* @__PURE__ */ React5.createElement(Typography, { variant: "h2", style: { color: "#fbbf24" } }, title)),
|
|
626
|
+
/* @__PURE__ */ React5.createElement(View5, { style: styles5.boardContainer }, hasRooms ? /* @__PURE__ */ React5.createElement(
|
|
627
|
+
CastleBoard,
|
|
628
|
+
{
|
|
629
|
+
...castleBoard,
|
|
630
|
+
onSelectRoom: handleEnterRoom
|
|
631
|
+
}
|
|
632
|
+
) : /* @__PURE__ */ React5.createElement(
|
|
633
|
+
EmptyState,
|
|
634
|
+
{
|
|
635
|
+
message: "No castle rooms available",
|
|
636
|
+
icon: /* @__PURE__ */ React5.createElement(Typography, { variant: "h1" }, "\u{1F3F0}")
|
|
637
|
+
}
|
|
638
|
+
)),
|
|
639
|
+
actions && actions.length > 0 && /* @__PURE__ */ React5.createElement(View5, { style: styles5.actionsContainer }, /* @__PURE__ */ React5.createElement(HStack, { spacing: 8, justify: "center", style: styles5.actions }, actions.map((action, index) => /* @__PURE__ */ React5.createElement(
|
|
640
|
+
Button,
|
|
641
|
+
{
|
|
642
|
+
key: index,
|
|
643
|
+
variant: action.variant || "default",
|
|
644
|
+
action: action.event,
|
|
645
|
+
actionPayload: { entity },
|
|
646
|
+
onPress: () => handleAction(action.event)
|
|
647
|
+
},
|
|
648
|
+
action.label
|
|
649
|
+
))))
|
|
650
|
+
));
|
|
651
|
+
};
|
|
652
|
+
var styles5 = StyleSheet5.create({
|
|
653
|
+
container: {
|
|
654
|
+
flex: 1
|
|
655
|
+
},
|
|
656
|
+
hudContainer: {
|
|
657
|
+
position: "absolute",
|
|
658
|
+
top: 0,
|
|
659
|
+
left: 0,
|
|
660
|
+
right: 0,
|
|
661
|
+
zIndex: 10
|
|
662
|
+
},
|
|
663
|
+
scrollView: {
|
|
664
|
+
flex: 1
|
|
665
|
+
},
|
|
666
|
+
scrollContent: {
|
|
667
|
+
paddingTop: 80,
|
|
668
|
+
paddingBottom: 24
|
|
669
|
+
},
|
|
670
|
+
header: {
|
|
671
|
+
padding: 16,
|
|
672
|
+
alignItems: "center"
|
|
673
|
+
},
|
|
674
|
+
boardContainer: {
|
|
675
|
+
padding: 16
|
|
676
|
+
},
|
|
677
|
+
actionsContainer: {
|
|
678
|
+
padding: 16
|
|
679
|
+
},
|
|
680
|
+
actions: {
|
|
681
|
+
flexWrap: "wrap"
|
|
682
|
+
}
|
|
683
|
+
});
|
|
684
|
+
CastleTemplate.displayName = "CastleTemplate";
|
|
685
|
+
|
|
686
|
+
// src/components/templates/WorldMapTemplate.tsx
|
|
687
|
+
import React6 from "react";
|
|
688
|
+
import {
|
|
689
|
+
View as View6,
|
|
690
|
+
StyleSheet as StyleSheet6
|
|
691
|
+
} from "react-native";
|
|
692
|
+
var WorldMapTemplate = ({
|
|
693
|
+
worldMapBoard,
|
|
694
|
+
hudStats,
|
|
695
|
+
navigationActions,
|
|
696
|
+
title,
|
|
697
|
+
act,
|
|
698
|
+
style,
|
|
699
|
+
isLoading,
|
|
700
|
+
error,
|
|
701
|
+
entity,
|
|
702
|
+
onSelectNode,
|
|
703
|
+
onMapAction
|
|
704
|
+
}) => {
|
|
705
|
+
const theme = useTheme();
|
|
706
|
+
const eventBus = useEventBus();
|
|
707
|
+
const handleSelectNode = (nodeId) => {
|
|
708
|
+
eventBus.emit("UI:MAP_SELECT_NODE", { nodeId, entity });
|
|
709
|
+
onSelectNode?.(nodeId);
|
|
710
|
+
};
|
|
711
|
+
const handleMapAction = (action, targetNodeId) => {
|
|
712
|
+
eventBus.emit("UI:MAP_ACTION", { action, targetNodeId, entity });
|
|
713
|
+
onMapAction?.(action, targetNodeId);
|
|
714
|
+
};
|
|
715
|
+
if (isLoading) {
|
|
716
|
+
return /* @__PURE__ */ React6.createElement(View6, { style: [styles6.container, { backgroundColor: theme.colors.background }, style] }, /* @__PURE__ */ React6.createElement(LoadingState, { message: "Loading world map..." }));
|
|
717
|
+
}
|
|
718
|
+
if (error) {
|
|
719
|
+
return /* @__PURE__ */ React6.createElement(View6, { style: [styles6.container, { backgroundColor: theme.colors.background }, style] }, /* @__PURE__ */ React6.createElement(
|
|
720
|
+
ErrorState,
|
|
721
|
+
{
|
|
722
|
+
message: error.message,
|
|
723
|
+
onRetry: () => eventBus.emit("UI:MAP_RETRY", { entity })
|
|
724
|
+
}
|
|
725
|
+
));
|
|
726
|
+
}
|
|
727
|
+
const hasNodes = worldMapBoard.nodes && worldMapBoard.nodes.length > 0;
|
|
728
|
+
return /* @__PURE__ */ React6.createElement(View6, { style: [styles6.container, { backgroundColor: "#0f172a" }, style] }, hudStats && hudStats.length > 0 && /* @__PURE__ */ React6.createElement(View6, { style: styles6.hudContainer }, /* @__PURE__ */ React6.createElement(GameHud, { stats: hudStats, position: "corners", transparent: true })), (title || act) && /* @__PURE__ */ React6.createElement(View6, { style: styles6.header }, title && /* @__PURE__ */ React6.createElement(Typography, { variant: "h2", style: { color: "#fff" } }, title), act && /* @__PURE__ */ React6.createElement(Typography, { variant: "caption", style: { color: "#9ca3af" } }, act)), /* @__PURE__ */ React6.createElement(View6, { style: styles6.mapContainer }, hasNodes ? /* @__PURE__ */ React6.createElement(
|
|
729
|
+
WorldMapBoard,
|
|
730
|
+
{
|
|
731
|
+
...worldMapBoard,
|
|
732
|
+
title: worldMapBoard.title || title,
|
|
733
|
+
act: worldMapBoard.act || act,
|
|
734
|
+
onSelectNode: handleSelectNode
|
|
735
|
+
}
|
|
736
|
+
) : /* @__PURE__ */ React6.createElement(
|
|
737
|
+
EmptyState,
|
|
738
|
+
{
|
|
739
|
+
message: "No map locations available",
|
|
740
|
+
icon: /* @__PURE__ */ React6.createElement(Typography, { variant: "h1" }, "\u{1F5FA}\uFE0F")
|
|
741
|
+
}
|
|
742
|
+
)), navigationActions && navigationActions.length > 0 && /* @__PURE__ */ React6.createElement(View6, { style: styles6.actionsContainer }, /* @__PURE__ */ React6.createElement(HStack, { spacing: 8, justify: "center", style: styles6.actions }, navigationActions.map((action, index) => /* @__PURE__ */ React6.createElement(
|
|
743
|
+
Button,
|
|
744
|
+
{
|
|
745
|
+
key: index,
|
|
746
|
+
variant: action.variant || "default",
|
|
747
|
+
action: action.event,
|
|
748
|
+
actionPayload: { entity, targetNodeId: action.targetNodeId },
|
|
749
|
+
onPress: () => handleMapAction(action.event, action.targetNodeId)
|
|
750
|
+
},
|
|
751
|
+
action.label
|
|
752
|
+
)))));
|
|
753
|
+
};
|
|
754
|
+
var styles6 = StyleSheet6.create({
|
|
755
|
+
container: {
|
|
756
|
+
flex: 1
|
|
757
|
+
},
|
|
758
|
+
hudContainer: {
|
|
759
|
+
position: "absolute",
|
|
760
|
+
top: 0,
|
|
761
|
+
left: 0,
|
|
762
|
+
right: 0,
|
|
763
|
+
bottom: 0,
|
|
764
|
+
pointerEvents: "none",
|
|
765
|
+
zIndex: 10
|
|
766
|
+
},
|
|
767
|
+
header: {
|
|
768
|
+
padding: 16,
|
|
769
|
+
alignItems: "center",
|
|
770
|
+
zIndex: 20
|
|
771
|
+
},
|
|
772
|
+
mapContainer: {
|
|
773
|
+
flex: 1,
|
|
774
|
+
padding: 16
|
|
775
|
+
},
|
|
776
|
+
actionsContainer: {
|
|
777
|
+
padding: 16,
|
|
778
|
+
backgroundColor: "rgba(0,0,0,0.5)",
|
|
779
|
+
zIndex: 20
|
|
780
|
+
},
|
|
781
|
+
actions: {
|
|
782
|
+
flexWrap: "wrap"
|
|
783
|
+
}
|
|
784
|
+
});
|
|
785
|
+
WorldMapTemplate.displayName = "WorldMapTemplate";
|
|
786
|
+
|
|
787
|
+
// src/components/templates/CounterTemplate.tsx
|
|
788
|
+
import React7, { useState, useCallback } from "react";
|
|
789
|
+
import {
|
|
790
|
+
View as View7,
|
|
791
|
+
StyleSheet as StyleSheet7
|
|
792
|
+
} from "react-native";
|
|
793
|
+
var CounterTemplate = ({
|
|
794
|
+
initialCount = 0,
|
|
795
|
+
step = 1,
|
|
796
|
+
min = Number.MIN_SAFE_INTEGER,
|
|
797
|
+
max = Number.MAX_SAFE_INTEGER,
|
|
798
|
+
title = "Counter",
|
|
799
|
+
showReset = true,
|
|
800
|
+
style,
|
|
801
|
+
cardStyle,
|
|
802
|
+
isLoading,
|
|
803
|
+
error,
|
|
804
|
+
entity,
|
|
805
|
+
onCountChange,
|
|
806
|
+
onReset
|
|
807
|
+
}) => {
|
|
808
|
+
const theme = useTheme();
|
|
809
|
+
const eventBus = useEventBus();
|
|
810
|
+
const [count, setCount] = useState(initialCount);
|
|
811
|
+
const handleIncrement = useCallback(() => {
|
|
812
|
+
setCount((prev) => {
|
|
813
|
+
const newCount = Math.min(prev + step, max);
|
|
814
|
+
eventBus.emit("UI:COUNTER_INCREMENT", { count: newCount, entity });
|
|
815
|
+
onCountChange?.(newCount);
|
|
816
|
+
return newCount;
|
|
817
|
+
});
|
|
818
|
+
}, [step, max, entity, onCountChange, eventBus]);
|
|
819
|
+
const handleDecrement = useCallback(() => {
|
|
820
|
+
setCount((prev) => {
|
|
821
|
+
const newCount = Math.max(prev - step, min);
|
|
822
|
+
eventBus.emit("UI:COUNTER_DECREMENT", { count: newCount, entity });
|
|
823
|
+
onCountChange?.(newCount);
|
|
824
|
+
return newCount;
|
|
825
|
+
});
|
|
826
|
+
}, [step, min, entity, onCountChange, eventBus]);
|
|
827
|
+
const handleReset = useCallback(() => {
|
|
828
|
+
setCount(initialCount);
|
|
829
|
+
eventBus.emit("UI:COUNTER_RESET", { count: initialCount, entity });
|
|
830
|
+
onReset?.();
|
|
831
|
+
onCountChange?.(initialCount);
|
|
832
|
+
}, [initialCount, entity, onReset, onCountChange, eventBus]);
|
|
833
|
+
if (isLoading) {
|
|
834
|
+
return /* @__PURE__ */ React7.createElement(View7, { style: [styles7.container, style] }, /* @__PURE__ */ React7.createElement(LoadingState, { message: "Loading counter..." }));
|
|
835
|
+
}
|
|
836
|
+
if (error) {
|
|
837
|
+
return /* @__PURE__ */ React7.createElement(View7, { style: [styles7.container, style] }, /* @__PURE__ */ React7.createElement(
|
|
838
|
+
ErrorState,
|
|
839
|
+
{
|
|
840
|
+
message: error.message,
|
|
841
|
+
onRetry: () => eventBus.emit("UI:COUNTER_RETRY", { entity })
|
|
842
|
+
}
|
|
843
|
+
));
|
|
844
|
+
}
|
|
845
|
+
const isAtMin = count <= min;
|
|
846
|
+
const isAtMax = count >= max;
|
|
847
|
+
return /* @__PURE__ */ React7.createElement(View7, { style: [styles7.container, { backgroundColor: theme.colors.background }, style] }, /* @__PURE__ */ React7.createElement(Card, { style: [styles7.card, cardStyle || {}] }, /* @__PURE__ */ React7.createElement(VStack, { spacing: 24, align: "center" }, /* @__PURE__ */ React7.createElement(Typography, { variant: "h3" }, title), /* @__PURE__ */ React7.createElement(View7, { style: styles7.countDisplay }, /* @__PURE__ */ React7.createElement(
|
|
848
|
+
Typography,
|
|
849
|
+
{
|
|
850
|
+
variant: "h1",
|
|
851
|
+
style: [
|
|
852
|
+
styles7.countText,
|
|
853
|
+
{ color: count > 0 ? theme.colors.success : count < 0 ? theme.colors.error : theme.colors.foreground }
|
|
854
|
+
]
|
|
855
|
+
},
|
|
856
|
+
count
|
|
857
|
+
)), /* @__PURE__ */ React7.createElement(HStack, { spacing: 16, align: "center" }, /* @__PURE__ */ React7.createElement(
|
|
858
|
+
Button,
|
|
859
|
+
{
|
|
860
|
+
variant: "secondary",
|
|
861
|
+
action: "COUNTER_DECREMENT",
|
|
862
|
+
actionPayload: { entity, step },
|
|
863
|
+
onPress: handleDecrement,
|
|
864
|
+
disabled: isAtMin
|
|
865
|
+
},
|
|
866
|
+
"-",
|
|
867
|
+
step
|
|
868
|
+
), showReset && /* @__PURE__ */ React7.createElement(
|
|
869
|
+
Button,
|
|
870
|
+
{
|
|
871
|
+
variant: "ghost",
|
|
872
|
+
action: "COUNTER_RESET",
|
|
873
|
+
actionPayload: { entity },
|
|
874
|
+
onPress: handleReset,
|
|
875
|
+
disabled: count === initialCount
|
|
876
|
+
},
|
|
877
|
+
"Reset"
|
|
878
|
+
), /* @__PURE__ */ React7.createElement(
|
|
879
|
+
Button,
|
|
880
|
+
{
|
|
881
|
+
variant: "primary",
|
|
882
|
+
action: "COUNTER_INCREMENT",
|
|
883
|
+
actionPayload: { entity, step },
|
|
884
|
+
onPress: handleIncrement,
|
|
885
|
+
disabled: isAtMax
|
|
886
|
+
},
|
|
887
|
+
"+",
|
|
888
|
+
step
|
|
889
|
+
)), /* @__PURE__ */ React7.createElement(Typography, { variant: "caption", color: theme.colors["muted-foreground"] }, "Min: ", min, " | Max: ", max, " | Step: ", step))));
|
|
890
|
+
};
|
|
891
|
+
var styles7 = StyleSheet7.create({
|
|
892
|
+
container: {
|
|
893
|
+
flex: 1,
|
|
894
|
+
justifyContent: "center",
|
|
895
|
+
alignItems: "center",
|
|
896
|
+
padding: 16
|
|
897
|
+
},
|
|
898
|
+
card: {
|
|
899
|
+
padding: 32,
|
|
900
|
+
minWidth: 280,
|
|
901
|
+
maxWidth: 400,
|
|
902
|
+
width: "100%"
|
|
903
|
+
},
|
|
904
|
+
countDisplay: {
|
|
905
|
+
paddingVertical: 24,
|
|
906
|
+
paddingHorizontal: 48,
|
|
907
|
+
backgroundColor: "rgba(0,0,0,0.05)",
|
|
908
|
+
borderRadius: 12
|
|
909
|
+
},
|
|
910
|
+
countText: {
|
|
911
|
+
fontSize: 64,
|
|
912
|
+
fontWeight: "700"
|
|
913
|
+
}
|
|
914
|
+
});
|
|
915
|
+
CounterTemplate.displayName = "CounterTemplate";
|
|
916
|
+
|
|
917
|
+
// src/components/templates/GameTemplate.tsx
|
|
918
|
+
import React8 from "react";
|
|
919
|
+
import {
|
|
920
|
+
View as View8,
|
|
921
|
+
StyleSheet as StyleSheet8,
|
|
922
|
+
SafeAreaView as SafeAreaView4
|
|
923
|
+
} from "react-native";
|
|
924
|
+
var GameTemplate = ({
|
|
925
|
+
children,
|
|
926
|
+
title,
|
|
927
|
+
subtitle,
|
|
928
|
+
hud,
|
|
929
|
+
showHud = true,
|
|
930
|
+
menu,
|
|
931
|
+
showMenu = false,
|
|
932
|
+
actions,
|
|
933
|
+
style,
|
|
934
|
+
contentStyle,
|
|
935
|
+
backgroundColor,
|
|
936
|
+
isLoading,
|
|
937
|
+
error,
|
|
938
|
+
entity,
|
|
939
|
+
emptyMessage = "No game content available",
|
|
940
|
+
onAction
|
|
941
|
+
}) => {
|
|
942
|
+
const theme = useTheme();
|
|
943
|
+
const eventBus = useEventBus();
|
|
944
|
+
const handleAction = (action, payload) => {
|
|
945
|
+
eventBus.emit(`UI:${action}`, { ...payload, entity });
|
|
946
|
+
onAction?.(action, payload);
|
|
947
|
+
};
|
|
948
|
+
if (isLoading) {
|
|
949
|
+
return /* @__PURE__ */ React8.createElement(
|
|
950
|
+
SafeAreaView4,
|
|
951
|
+
{
|
|
952
|
+
style: [
|
|
953
|
+
styles8.container,
|
|
954
|
+
{ backgroundColor: backgroundColor || theme.colors.background },
|
|
955
|
+
style
|
|
956
|
+
]
|
|
957
|
+
},
|
|
958
|
+
/* @__PURE__ */ React8.createElement(LoadingState, { message: "Loading game..." })
|
|
959
|
+
);
|
|
960
|
+
}
|
|
961
|
+
if (error) {
|
|
962
|
+
return /* @__PURE__ */ React8.createElement(
|
|
963
|
+
SafeAreaView4,
|
|
964
|
+
{
|
|
965
|
+
style: [
|
|
966
|
+
styles8.container,
|
|
967
|
+
{ backgroundColor: backgroundColor || theme.colors.background },
|
|
968
|
+
style
|
|
969
|
+
]
|
|
970
|
+
},
|
|
971
|
+
/* @__PURE__ */ React8.createElement(
|
|
972
|
+
ErrorState,
|
|
973
|
+
{
|
|
974
|
+
message: error.message,
|
|
975
|
+
onRetry: () => handleAction("GAME_RETRY")
|
|
976
|
+
}
|
|
977
|
+
)
|
|
978
|
+
);
|
|
979
|
+
}
|
|
980
|
+
const shouldShowMenu = showMenu || !children && menu;
|
|
981
|
+
if (shouldShowMenu && menu) {
|
|
982
|
+
return /* @__PURE__ */ React8.createElement(
|
|
983
|
+
SafeAreaView4,
|
|
984
|
+
{
|
|
985
|
+
style: [
|
|
986
|
+
styles8.container,
|
|
987
|
+
{ backgroundColor: backgroundColor || "#0f172a" },
|
|
988
|
+
style
|
|
989
|
+
]
|
|
990
|
+
},
|
|
991
|
+
/* @__PURE__ */ React8.createElement(
|
|
992
|
+
GameMenu,
|
|
993
|
+
{
|
|
994
|
+
title: menu.title || title || "Game Menu",
|
|
995
|
+
subtitle: menu.subtitle || subtitle,
|
|
996
|
+
options: menu.options || menu.menuItems || [],
|
|
997
|
+
onSelect: (option) => {
|
|
998
|
+
if (option.event) {
|
|
999
|
+
handleAction(option.event, { option });
|
|
1000
|
+
}
|
|
1001
|
+
if (option.navigatesTo) {
|
|
1002
|
+
handleAction("navigate", { to: option.navigatesTo });
|
|
1003
|
+
}
|
|
1004
|
+
menu.onSelect?.(option);
|
|
1005
|
+
},
|
|
1006
|
+
background: menu.background,
|
|
1007
|
+
logo: menu.logo,
|
|
1008
|
+
style: menu.style
|
|
1009
|
+
}
|
|
1010
|
+
)
|
|
1011
|
+
);
|
|
1012
|
+
}
|
|
1013
|
+
const hasContent = React8.Children.count(children) > 0;
|
|
1014
|
+
return /* @__PURE__ */ React8.createElement(
|
|
1015
|
+
SafeAreaView4,
|
|
1016
|
+
{
|
|
1017
|
+
style: [
|
|
1018
|
+
styles8.container,
|
|
1019
|
+
{ backgroundColor: backgroundColor || theme.colors.background },
|
|
1020
|
+
style
|
|
1021
|
+
]
|
|
1022
|
+
},
|
|
1023
|
+
showHud && hud && /* @__PURE__ */ React8.createElement(View8, { style: styles8.hudOverlay }, /* @__PURE__ */ React8.createElement(GameHud, { ...hud })),
|
|
1024
|
+
(title || subtitle) && /* @__PURE__ */ React8.createElement(View8, { style: styles8.header }, title && /* @__PURE__ */ React8.createElement(Typography, { variant: "h2", style: styles8.title }, title), subtitle && /* @__PURE__ */ React8.createElement(Typography, { variant: "body", color: theme.colors["muted-foreground"] }, subtitle)),
|
|
1025
|
+
/* @__PURE__ */ React8.createElement(View8, { style: [styles8.content, contentStyle] }, hasContent ? children : /* @__PURE__ */ React8.createElement(
|
|
1026
|
+
EmptyState,
|
|
1027
|
+
{
|
|
1028
|
+
message: emptyMessage,
|
|
1029
|
+
icon: /* @__PURE__ */ React8.createElement(Typography, { variant: "h1" }, "\u{1F3AE}")
|
|
1030
|
+
}
|
|
1031
|
+
)),
|
|
1032
|
+
actions && actions.length > 0 && /* @__PURE__ */ React8.createElement(View8, { style: styles8.actionBar }, /* @__PURE__ */ React8.createElement(Card, { variant: "elevated", style: styles8.actionCard }, /* @__PURE__ */ React8.createElement(HStack, { spacing: 8, justify: "center", style: styles8.actions }, actions.map((action, index) => /* @__PURE__ */ React8.createElement(
|
|
1033
|
+
Button,
|
|
1034
|
+
{
|
|
1035
|
+
key: index,
|
|
1036
|
+
variant: action.variant || "default",
|
|
1037
|
+
action: action.event,
|
|
1038
|
+
actionPayload: { ...action.payload, entity },
|
|
1039
|
+
onPress: () => handleAction(action.event, action.payload),
|
|
1040
|
+
disabled: action.disabled
|
|
1041
|
+
},
|
|
1042
|
+
action.label
|
|
1043
|
+
)))))
|
|
1044
|
+
);
|
|
1045
|
+
};
|
|
1046
|
+
var styles8 = StyleSheet8.create({
|
|
1047
|
+
container: {
|
|
1048
|
+
flex: 1
|
|
1049
|
+
},
|
|
1050
|
+
hudOverlay: {
|
|
1051
|
+
position: "absolute",
|
|
1052
|
+
top: 0,
|
|
1053
|
+
left: 0,
|
|
1054
|
+
right: 0,
|
|
1055
|
+
bottom: 0,
|
|
1056
|
+
pointerEvents: "box-none",
|
|
1057
|
+
zIndex: 10
|
|
1058
|
+
},
|
|
1059
|
+
header: {
|
|
1060
|
+
padding: 16,
|
|
1061
|
+
alignItems: "center",
|
|
1062
|
+
zIndex: 20
|
|
1063
|
+
},
|
|
1064
|
+
title: {
|
|
1065
|
+
fontWeight: "700"
|
|
1066
|
+
},
|
|
1067
|
+
content: {
|
|
1068
|
+
flex: 1,
|
|
1069
|
+
padding: 16
|
|
1070
|
+
},
|
|
1071
|
+
actionBar: {
|
|
1072
|
+
padding: 16,
|
|
1073
|
+
zIndex: 20
|
|
1074
|
+
},
|
|
1075
|
+
actionCard: {
|
|
1076
|
+
padding: 12
|
|
1077
|
+
},
|
|
1078
|
+
actions: {
|
|
1079
|
+
flexWrap: "wrap"
|
|
1080
|
+
}
|
|
1081
|
+
});
|
|
1082
|
+
GameTemplate.displayName = "GameTemplate";
|
|
1083
|
+
export {
|
|
1084
|
+
ActionButtons,
|
|
1085
|
+
ActionPalette,
|
|
1086
|
+
ActionTile,
|
|
1087
|
+
Alert,
|
|
1088
|
+
AuthLayout,
|
|
1089
|
+
Avatar,
|
|
1090
|
+
Badge,
|
|
1091
|
+
BattleBoard,
|
|
1092
|
+
BattleTemplate,
|
|
1093
|
+
BookChapterView,
|
|
1094
|
+
BookCoverPage,
|
|
1095
|
+
BookNavBar,
|
|
1096
|
+
BookTableOfContents,
|
|
1097
|
+
BookViewer,
|
|
1098
|
+
Box,
|
|
1099
|
+
Breadcrumb,
|
|
1100
|
+
BuilderBoard,
|
|
1101
|
+
Button,
|
|
1102
|
+
ButtonGroup,
|
|
1103
|
+
CanvasEffect,
|
|
1104
|
+
Card,
|
|
1105
|
+
CardGrid,
|
|
1106
|
+
CastleBoard,
|
|
1107
|
+
CastleTemplate,
|
|
1108
|
+
Center,
|
|
1109
|
+
Chart,
|
|
1110
|
+
Checkbox,
|
|
1111
|
+
ClassifierBoard,
|
|
1112
|
+
CodeBlock,
|
|
1113
|
+
CodeView,
|
|
1114
|
+
CodeViewer,
|
|
1115
|
+
CombatLog,
|
|
1116
|
+
ComponentPatterns,
|
|
1117
|
+
ConditionalWrapper,
|
|
1118
|
+
ConfirmDialog,
|
|
1119
|
+
ConfirmModal,
|
|
1120
|
+
Container,
|
|
1121
|
+
ContentRenderer,
|
|
1122
|
+
ControlButton,
|
|
1123
|
+
CounterTemplate,
|
|
1124
|
+
CustomPattern,
|
|
1125
|
+
DPad,
|
|
1126
|
+
DashboardGrid,
|
|
1127
|
+
DashboardLayout,
|
|
1128
|
+
DataTable,
|
|
1129
|
+
DebuggerBoard,
|
|
1130
|
+
DetailPanel,
|
|
1131
|
+
DialogueBox,
|
|
1132
|
+
Divider,
|
|
1133
|
+
DocumentViewer,
|
|
1134
|
+
Drawer,
|
|
1135
|
+
DrawerSlot,
|
|
1136
|
+
EmptyState,
|
|
1137
|
+
EntityCard,
|
|
1138
|
+
EntityList,
|
|
1139
|
+
ErrorBoundary,
|
|
1140
|
+
ErrorState,
|
|
1141
|
+
EventBusProvider,
|
|
1142
|
+
EventHandlerBoard,
|
|
1143
|
+
EventLog,
|
|
1144
|
+
FilterGroup,
|
|
1145
|
+
Flex,
|
|
1146
|
+
FloatingActionButton,
|
|
1147
|
+
Form,
|
|
1148
|
+
FormField,
|
|
1149
|
+
FormSection,
|
|
1150
|
+
FormSectionHeader,
|
|
1151
|
+
GameAudioProvider,
|
|
1152
|
+
GameAudioToggle,
|
|
1153
|
+
GameCanvas3D,
|
|
1154
|
+
GameHud,
|
|
1155
|
+
GameMenu,
|
|
1156
|
+
GameOverScreen,
|
|
1157
|
+
GameShell,
|
|
1158
|
+
GameTemplate,
|
|
1159
|
+
Grid,
|
|
1160
|
+
HStack,
|
|
1161
|
+
Header,
|
|
1162
|
+
HealthBar,
|
|
1163
|
+
Icon,
|
|
1164
|
+
Input,
|
|
1165
|
+
InputGroup,
|
|
1166
|
+
InventoryPanel,
|
|
1167
|
+
IsometricCanvas,
|
|
1168
|
+
Label,
|
|
1169
|
+
LayoutPatterns,
|
|
1170
|
+
List,
|
|
1171
|
+
LoadingState,
|
|
1172
|
+
MarkdownContent,
|
|
1173
|
+
MasterDetail,
|
|
1174
|
+
MediaGallery,
|
|
1175
|
+
Menu,
|
|
1176
|
+
Meter,
|
|
1177
|
+
Modal,
|
|
1178
|
+
ModalSlot,
|
|
1179
|
+
Navigation,
|
|
1180
|
+
NegotiatorBoard,
|
|
1181
|
+
ObjectRulePanel,
|
|
1182
|
+
Overlay,
|
|
1183
|
+
PageHeader,
|
|
1184
|
+
Pagination,
|
|
1185
|
+
Popover,
|
|
1186
|
+
ProgressBar,
|
|
1187
|
+
QuizBlock,
|
|
1188
|
+
Radio,
|
|
1189
|
+
RelationSelect,
|
|
1190
|
+
RepeatableFormSection,
|
|
1191
|
+
RuleEditor,
|
|
1192
|
+
ScaledDiagram,
|
|
1193
|
+
ScoreDisplay,
|
|
1194
|
+
SearchInput,
|
|
1195
|
+
Section,
|
|
1196
|
+
Select,
|
|
1197
|
+
SequenceBar,
|
|
1198
|
+
SequencerBoard,
|
|
1199
|
+
SidePanel,
|
|
1200
|
+
Sidebar,
|
|
1201
|
+
SignaturePad,
|
|
1202
|
+
SimpleGrid,
|
|
1203
|
+
SimulationCanvas,
|
|
1204
|
+
SimulationControls,
|
|
1205
|
+
SimulationGraph,
|
|
1206
|
+
SimulatorBoard,
|
|
1207
|
+
Skeleton,
|
|
1208
|
+
Spacer,
|
|
1209
|
+
Spinner,
|
|
1210
|
+
Split,
|
|
1211
|
+
SplitPane,
|
|
1212
|
+
Sprite,
|
|
1213
|
+
StatBadge,
|
|
1214
|
+
StatCard,
|
|
1215
|
+
StateArchitectBoard,
|
|
1216
|
+
StateIndicator,
|
|
1217
|
+
StateMachineView,
|
|
1218
|
+
StateNode,
|
|
1219
|
+
Switch,
|
|
1220
|
+
TabbedContainer,
|
|
1221
|
+
Table,
|
|
1222
|
+
Tabs,
|
|
1223
|
+
Textarea,
|
|
1224
|
+
ThemeProvider,
|
|
1225
|
+
Timeline,
|
|
1226
|
+
Toast,
|
|
1227
|
+
ToastSlot,
|
|
1228
|
+
Tooltip,
|
|
1229
|
+
TraitSlot,
|
|
1230
|
+
TraitStateViewer,
|
|
1231
|
+
TransitionArrow,
|
|
1232
|
+
Typography,
|
|
1233
|
+
UISlotRenderer,
|
|
1234
|
+
UncontrolledBattleBoard,
|
|
1235
|
+
VStack,
|
|
1236
|
+
VariablePanel,
|
|
1237
|
+
WizardContainer,
|
|
1238
|
+
WizardNavigation,
|
|
1239
|
+
WizardProgress,
|
|
1240
|
+
WorldMapBoard,
|
|
1241
|
+
WorldMapTemplate,
|
|
1242
|
+
almadarDark,
|
|
1243
|
+
almadarLight,
|
|
1244
|
+
cn,
|
|
1245
|
+
convertThemeToRN,
|
|
1246
|
+
defaultRNTheme,
|
|
1247
|
+
almadarLight as defaultTheme,
|
|
1248
|
+
useEventBus,
|
|
1249
|
+
useGameAudio,
|
|
1250
|
+
useInfiniteScroll,
|
|
1251
|
+
useKeyboard,
|
|
1252
|
+
useKeyboardHeight,
|
|
1253
|
+
useNavigation,
|
|
1254
|
+
useParams,
|
|
1255
|
+
usePullToRefresh,
|
|
1256
|
+
useSafeAreaInsets,
|
|
1257
|
+
useScrollHeader,
|
|
1258
|
+
useTheme,
|
|
1259
|
+
useThemeStyles,
|
|
1260
|
+
useThemeValue,
|
|
1261
|
+
useTraitState,
|
|
1262
|
+
useUIEvents
|
|
1263
|
+
};
|
|
1264
|
+
//# sourceMappingURL=index.js.map
|