@almadar/ui 2.14.0 → 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-M7MOIE46.js → chunk-4KP6IZEQ.js} +1 -1
- package/dist/{chunk-SKWPSQHQ.js → chunk-YPY74G7F.js} +16 -8
- 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.d.ts +6 -0
- package/dist/components/index.js +2 -2
- 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 +23 -0
- 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/components/organisms/game/types/isometric.d.ts +109 -0
- 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/context/ThemeContext.d.ts +104 -0
- package/dist/context/UISlotContext.d.ts +75 -0
- package/dist/context/UserContext.d.ts +111 -0
- package/dist/context/index.d.ts +8 -0
- package/dist/hooks/event-bus-types.d.ts +71 -0
- package/dist/hooks/index.d.ts +31 -0
- 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/hooks/useUISlots.d.ts +84 -0
- 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 +18 -0
- 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 +20 -0
- 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.d.ts +17 -0
- package/dist/providers/index.js +2 -2
- 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 +28 -0
- package/dist/renderer/init.d.ts +14 -0
- package/dist/renderer/navigation.d.ts +142 -0
- package/dist/renderer/offline-executor.d.ts +238 -0
- 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.d.ts +15 -0
- package/dist/runtime/index.js +2 -2
- 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 +7 -0
- package/dist/tsup.config.d.ts +2 -0
- package/dist/vitest.config.d.ts +2 -0
- package/package.json +2 -2
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Isometric Coordinate Utilities
|
|
3
|
+
*
|
|
4
|
+
* Pure functions for 2:1 diamond isometric coordinate conversion.
|
|
5
|
+
* No React dependencies — usable in any context.
|
|
6
|
+
*
|
|
7
|
+
* @packageDocumentation
|
|
8
|
+
*/
|
|
9
|
+
/** Base tile width in pixels (before scale) */
|
|
10
|
+
export declare const TILE_WIDTH = 256;
|
|
11
|
+
/** Base tile height in pixels (before scale) — full sprite image height (Kenney 256×512) */
|
|
12
|
+
export declare const TILE_HEIGHT = 512;
|
|
13
|
+
/** Floor diamond height — the "walkable surface" portion of the tile (TILE_WIDTH / 2 for 2:1 ratio) */
|
|
14
|
+
export declare const FLOOR_HEIGHT = 128;
|
|
15
|
+
/**
|
|
16
|
+
* Measured Y offset from sprite top to the diamond top vertex within a Kenney
|
|
17
|
+
* 256×512 tile sprite. The code previously assumed `TILE_HEIGHT - FLOOR_HEIGHT = 384`,
|
|
18
|
+
* but the actual diamond (dirt_E.png) begins at y = 374 because the 3D side walls
|
|
19
|
+
* occupy 10 extra pixels above the pure 128 px diamond.
|
|
20
|
+
*
|
|
21
|
+
* Use `DIAMOND_TOP_Y * scale` for highlight positioning, unit groundY, feature
|
|
22
|
+
* placement, and hit-testing — NOT `(TILE_HEIGHT - FLOOR_HEIGHT) * scale`.
|
|
23
|
+
* `FLOOR_HEIGHT` remains 128 for the isoToScreen spacing formula (2:1 ratio).
|
|
24
|
+
*/
|
|
25
|
+
export declare const DIAMOND_TOP_Y = 374;
|
|
26
|
+
/**
|
|
27
|
+
* Feature type → fallback color mapping (when sprites not loaded).
|
|
28
|
+
*/
|
|
29
|
+
export declare const FEATURE_COLORS: Record<string, string>;
|
|
30
|
+
/**
|
|
31
|
+
* Convert tile grid coordinates to screen pixel coordinates.
|
|
32
|
+
*
|
|
33
|
+
* Uses 2:1 diamond isometric projection:
|
|
34
|
+
* - X increases to the lower-right
|
|
35
|
+
* - Y increases to the lower-left
|
|
36
|
+
*
|
|
37
|
+
* @param tileX - Grid X coordinate
|
|
38
|
+
* @param tileY - Grid Y coordinate
|
|
39
|
+
* @param scale - Render scale factor
|
|
40
|
+
* @param baseOffsetX - Horizontal offset to center the grid
|
|
41
|
+
* @returns Screen position { x, y } of the tile's top-left corner
|
|
42
|
+
*/
|
|
43
|
+
export declare function isoToScreen(tileX: number, tileY: number, scale: number, baseOffsetX: number): {
|
|
44
|
+
x: number;
|
|
45
|
+
y: number;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Convert screen pixel coordinates back to tile grid coordinates.
|
|
49
|
+
*
|
|
50
|
+
* Inverse of isoToScreen. Snaps to nearest integer tile position.
|
|
51
|
+
*
|
|
52
|
+
* @param screenX - Screen X in pixels
|
|
53
|
+
* @param screenY - Screen Y in pixels
|
|
54
|
+
* @param scale - Render scale factor
|
|
55
|
+
* @param baseOffsetX - Horizontal offset used in isoToScreen
|
|
56
|
+
* @returns Snapped grid position { x, y }
|
|
57
|
+
*/
|
|
58
|
+
export declare function screenToIso(screenX: number, screenY: number, scale: number, baseOffsetX: number): {
|
|
59
|
+
x: number;
|
|
60
|
+
y: number;
|
|
61
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sprite Animation Engine
|
|
3
|
+
*
|
|
4
|
+
* Pure functions for sprite sheet animation: direction inference,
|
|
5
|
+
* frame computation, sheet resolution, and animation state management.
|
|
6
|
+
* No React dependencies — usable in any context.
|
|
7
|
+
*
|
|
8
|
+
* @packageDocumentation
|
|
9
|
+
*/
|
|
10
|
+
import type { AnimationName, FacingDirection, SpriteDirection, ResolvedFrame, UnitAnimationState, SpriteFrameDims, SpriteSheetUrls } from '../types/spriteAnimation';
|
|
11
|
+
/**
|
|
12
|
+
* Infer facing direction from a movement delta on the isometric grid.
|
|
13
|
+
* dx/dy are tile coordinate deltas (not screen pixels).
|
|
14
|
+
*
|
|
15
|
+
* Isometric grid:
|
|
16
|
+
* NW ← (-x) NE ← (-y)
|
|
17
|
+
* SW ← (+y) SE ← (+x)
|
|
18
|
+
*/
|
|
19
|
+
export declare function inferDirection(dx: number, dy: number): FacingDirection;
|
|
20
|
+
/**
|
|
21
|
+
* Map a 4-direction facing to the actual sheet file direction + flipX flag.
|
|
22
|
+
* We only have SE and SW sheet images. NE/NW are rendered by flipping:
|
|
23
|
+
* SE → SE sheet, no flip
|
|
24
|
+
* SW → SW sheet, no flip
|
|
25
|
+
* NE → SW sheet, flipX (mirror of SW gives NE)
|
|
26
|
+
* NW → SE sheet, flipX (mirror of SE gives NW)
|
|
27
|
+
*/
|
|
28
|
+
export declare function resolveSheetDirection(facing: FacingDirection): {
|
|
29
|
+
sheetDir: SpriteDirection;
|
|
30
|
+
flipX: boolean;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Compute the current frame index and whether the animation has finished.
|
|
34
|
+
*/
|
|
35
|
+
export declare function getCurrentFrame(animName: AnimationName, elapsed: number): {
|
|
36
|
+
frame: number;
|
|
37
|
+
finished: boolean;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Resolve a complete frame descriptor for canvas drawing.
|
|
41
|
+
* Returns null if no sprite sheet URLs are available for this unit.
|
|
42
|
+
*/
|
|
43
|
+
export declare function resolveFrame(sheetUrls: SpriteSheetUrls | null, frameDims: SpriteFrameDims, animState: UnitAnimationState): ResolvedFrame | null;
|
|
44
|
+
/**
|
|
45
|
+
* Create initial animation state for a unit (idle, facing SE).
|
|
46
|
+
*/
|
|
47
|
+
export declare function createUnitAnimationState(unitId: string): UnitAnimationState;
|
|
48
|
+
/**
|
|
49
|
+
* Transition to a new animation. Resets elapsed time.
|
|
50
|
+
* Optionally updates direction. Death cannot be overridden.
|
|
51
|
+
*/
|
|
52
|
+
export declare function transitionAnimation(state: UnitAnimationState, newAnim: AnimationName, direction?: FacingDirection): UnitAnimationState;
|
|
53
|
+
/**
|
|
54
|
+
* Advance animation state by deltaMs.
|
|
55
|
+
* Handles one-shot → queued/idle transitions automatically.
|
|
56
|
+
*/
|
|
57
|
+
export declare function tickAnimationState(state: UnitAnimationState, deltaMs: number): UnitAnimationState;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sprite Sheet Constants
|
|
3
|
+
*
|
|
4
|
+
* Standard layout for 8-column × 5-row character sprite sheets.
|
|
5
|
+
* All characters share identical sheet geometry.
|
|
6
|
+
*
|
|
7
|
+
* @packageDocumentation
|
|
8
|
+
*/
|
|
9
|
+
import type { AnimationDef, AnimationName } from '../types/spriteAnimation';
|
|
10
|
+
/** Number of columns in a sprite sheet (frames per row) */
|
|
11
|
+
export declare const SHEET_COLUMNS = 8;
|
|
12
|
+
/**
|
|
13
|
+
* Standard sprite sheet row layout.
|
|
14
|
+
* Row 0 = idle, Row 1 = walk, Row 2 = attack, Row 3 = hit, Row 4 = death.
|
|
15
|
+
*/
|
|
16
|
+
export declare const SPRITE_SHEET_LAYOUT: Record<AnimationName, AnimationDef>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export { type EntityDisplayProps, EntityDisplayEvents, type SortPayload, type PaginatePayload, type SearchPayload, type FilterPayload, type SelectPayload, } from "./types";
|
|
2
|
+
export { DataTable, type DataTableProps, type Column, type RowAction, } from "./DataTable";
|
|
3
|
+
export { StatCard, type StatCardProps } from "./StatCard";
|
|
4
|
+
export { PageHeader, type PageHeaderProps, type PageBreadcrumb, } from "./PageHeader";
|
|
5
|
+
export { DetailPanel, type DetailPanelProps, type DetailField, type DetailSection, } from "./DetailPanel";
|
|
6
|
+
export { FormSection, FormLayout, FormActions, type FormSectionProps, type FormLayoutProps, type FormActionsProps, } from "./FormSection";
|
|
7
|
+
export { Form, type FormProps } from "./Form";
|
|
8
|
+
export { Header, type HeaderProps } from "./Header";
|
|
9
|
+
export { Navigation, type NavigationProps, type NavigationItem, } from "./Navigation";
|
|
10
|
+
export { Section, type SectionProps } from "./Section";
|
|
11
|
+
export { Sidebar, type SidebarProps, type SidebarItem } from "./Sidebar";
|
|
12
|
+
export { Split, type SplitProps } from "./Split";
|
|
13
|
+
export { Table, type TableProps, type TableColumn, type SortDirection, } from "./Table";
|
|
14
|
+
export { List, type ListProps, type ListItem } from "./List";
|
|
15
|
+
export { CardGrid, type CardGridProps, type CardGridGap } from "./CardGrid";
|
|
16
|
+
export { MasterDetail, type MasterDetailProps } from "./MasterDetail";
|
|
17
|
+
export { ConfirmDialog, type ConfirmDialogProps, type ConfirmDialogVariant, } from "./ConfirmDialog";
|
|
18
|
+
export { WizardContainer, type WizardContainerProps, type WizardStep, } from "./WizardContainer";
|
|
19
|
+
export { OrbitalVisualization, type OrbitalVisualizationProps, } from "./OrbitalVisualization";
|
|
20
|
+
export { StateMachineView, DomStateMachineVisualizer, OrbitalStateMachineView, type StateMachineViewProps, type TransitionBundle, } from "./StateMachineView";
|
|
21
|
+
export { JazariStateMachine, type JazariStateMachineProps, } from "./JazariStateMachine";
|
|
22
|
+
export { ContentRenderer, type ContentRendererProps, } from "./ContentRenderer";
|
|
23
|
+
export * from "./book";
|
|
24
|
+
export * from "./layout";
|
|
25
|
+
export * from "./game";
|
|
26
|
+
export { UISlotRenderer, UISlotComponent, SlotContentRenderer, type UISlotRendererProps, } from "./UISlotRenderer";
|
|
27
|
+
export { ModalSlot, type ModalSlotProps } from "./ModalSlot";
|
|
28
|
+
export { DrawerSlot, type DrawerSlotProps } from "./DrawerSlot";
|
|
29
|
+
export { ToastSlot, type ToastSlotProps } from "./ToastSlot";
|
|
30
|
+
export { NotifyListener } from "./NotifyListener";
|
|
31
|
+
export { Chart, type ChartProps, type ChartType, type ChartSeries, } from "./Chart";
|
|
32
|
+
export { Timeline, type TimelineProps, type TimelineItem, type TimelineItemStatus, } from "./Timeline";
|
|
33
|
+
export { MediaGallery, type MediaGalleryProps, type MediaItem, } from "./MediaGallery";
|
|
34
|
+
export { SignaturePad, type SignaturePadProps, } from "./SignaturePad";
|
|
35
|
+
export { DocumentViewer, type DocumentViewerProps, type DocumentType, } from "./DocumentViewer";
|
|
36
|
+
export { GraphCanvas, type GraphCanvasProps, type GraphNode, type GraphEdge, } from "./GraphCanvas";
|
|
37
|
+
export { CodeViewer, type CodeViewerProps, type CodeViewerMode, type DiffLine, } from "./CodeViewer";
|
|
38
|
+
export { RuntimeDebugger, type RuntimeDebuggerProps, } from "./debug";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DashboardGrid Component
|
|
3
|
+
*
|
|
4
|
+
* Multi-column grid for widgets and stats cards.
|
|
5
|
+
* Supports cell spanning for flexible dashboard layouts.
|
|
6
|
+
*
|
|
7
|
+
* Uses wireframe theme styling (high contrast, sharp edges).
|
|
8
|
+
*/
|
|
9
|
+
import React from "react";
|
|
10
|
+
import type { EntityDisplayProps } from "../types";
|
|
11
|
+
export interface DashboardGridCell {
|
|
12
|
+
/** Optional unique cell ID */
|
|
13
|
+
id?: string;
|
|
14
|
+
/** Content to render in the cell */
|
|
15
|
+
content?: React.ReactNode;
|
|
16
|
+
/** Number of columns this cell spans (1-4) */
|
|
17
|
+
colSpan?: 1 | 2 | 3 | 4;
|
|
18
|
+
/** Number of rows this cell spans (1-2) */
|
|
19
|
+
rowSpan?: 1 | 2;
|
|
20
|
+
/** Allow additional schema-driven properties */
|
|
21
|
+
[key: string]: unknown;
|
|
22
|
+
}
|
|
23
|
+
export interface DashboardGridProps extends EntityDisplayProps {
|
|
24
|
+
/** Number of columns */
|
|
25
|
+
columns?: 2 | 3 | 4;
|
|
26
|
+
/** Gap between cells */
|
|
27
|
+
gap?: "sm" | "md" | "lg";
|
|
28
|
+
/** Cell definitions */
|
|
29
|
+
cells: DashboardGridCell[];
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* DashboardGrid - Multi-column widget grid
|
|
33
|
+
*/
|
|
34
|
+
export declare const DashboardGrid: React.FC<DashboardGridProps>;
|
|
35
|
+
export default DashboardGrid;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MasterDetail Component
|
|
3
|
+
*
|
|
4
|
+
* Classic master-detail pattern with a list on the left
|
|
5
|
+
* and selected item detail on the right.
|
|
6
|
+
*
|
|
7
|
+
* Uses wireframe theme styling (high contrast, sharp edges).
|
|
8
|
+
*/
|
|
9
|
+
import React from "react";
|
|
10
|
+
export interface MasterDetailProps {
|
|
11
|
+
/** Master panel content (usually a list) */
|
|
12
|
+
master: React.ReactNode;
|
|
13
|
+
/** Detail panel content */
|
|
14
|
+
detail: React.ReactNode;
|
|
15
|
+
/** Content shown when nothing is selected */
|
|
16
|
+
emptyDetail?: React.ReactNode;
|
|
17
|
+
/** Whether an item is currently selected */
|
|
18
|
+
hasSelection?: boolean;
|
|
19
|
+
/** Width of master panel (e.g., '350px', '30%') */
|
|
20
|
+
masterWidth?: string;
|
|
21
|
+
/** Additional CSS classes */
|
|
22
|
+
className?: string;
|
|
23
|
+
/** Class for master pane */
|
|
24
|
+
masterClassName?: string;
|
|
25
|
+
/** Class for detail pane */
|
|
26
|
+
detailClassName?: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* MasterDetail - List + detail split layout
|
|
30
|
+
*/
|
|
31
|
+
export declare const MasterDetail: React.FC<MasterDetailProps>;
|
|
32
|
+
export default MasterDetail;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SplitPane Component
|
|
3
|
+
*
|
|
4
|
+
* Two-pane resizable split layout for master-detail views,
|
|
5
|
+
* dual-pane editors, and code + preview layouts.
|
|
6
|
+
*
|
|
7
|
+
* Uses wireframe theme styling (high contrast, sharp edges).
|
|
8
|
+
*/
|
|
9
|
+
import React from "react";
|
|
10
|
+
export interface SplitPaneProps {
|
|
11
|
+
/** Direction of the split */
|
|
12
|
+
direction?: "horizontal" | "vertical";
|
|
13
|
+
/** Initial ratio (0-100, percentage of first pane) */
|
|
14
|
+
ratio?: number;
|
|
15
|
+
/** Minimum size of either pane in pixels */
|
|
16
|
+
minSize?: number;
|
|
17
|
+
/** Allow user resizing */
|
|
18
|
+
resizable?: boolean;
|
|
19
|
+
/** Content for the left/top pane */
|
|
20
|
+
left: React.ReactNode;
|
|
21
|
+
/** Content for the right/bottom pane */
|
|
22
|
+
right: React.ReactNode;
|
|
23
|
+
/** Additional CSS classes */
|
|
24
|
+
className?: string;
|
|
25
|
+
/** Class for left/top pane */
|
|
26
|
+
leftClassName?: string;
|
|
27
|
+
/** Class for right/bottom pane */
|
|
28
|
+
rightClassName?: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* SplitPane - Two-pane resizable layout
|
|
32
|
+
*/
|
|
33
|
+
export declare const SplitPane: React.FC<SplitPaneProps>;
|
|
34
|
+
export default SplitPane;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TabbedContainer Component
|
|
3
|
+
*
|
|
4
|
+
* Tabbed content areas with shared header/context.
|
|
5
|
+
* Wraps the Tabs molecule with layout-specific styling.
|
|
6
|
+
*
|
|
7
|
+
* Uses wireframe theme styling (high contrast, sharp edges).
|
|
8
|
+
*/
|
|
9
|
+
import React from "react";
|
|
10
|
+
export interface TabDefinition {
|
|
11
|
+
/** Tab identifier */
|
|
12
|
+
id: string;
|
|
13
|
+
/** Tab label */
|
|
14
|
+
label: string;
|
|
15
|
+
/** Tab content (optional if using sectionId) */
|
|
16
|
+
content?: React.ReactNode;
|
|
17
|
+
/** Section ID to render (alternative to content) */
|
|
18
|
+
sectionId?: string;
|
|
19
|
+
/** Optional badge/count */
|
|
20
|
+
badge?: string | number;
|
|
21
|
+
/** Disable this tab */
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export interface TabbedContainerProps {
|
|
25
|
+
/** Tab definitions */
|
|
26
|
+
tabs: TabDefinition[];
|
|
27
|
+
/** Default active tab ID */
|
|
28
|
+
defaultTab?: string;
|
|
29
|
+
/** Controlled active tab */
|
|
30
|
+
activeTab?: string;
|
|
31
|
+
/** Callback when tab changes */
|
|
32
|
+
onTabChange?: (tabId: string) => void;
|
|
33
|
+
/** Tab position */
|
|
34
|
+
position?: "top" | "left";
|
|
35
|
+
/** Additional CSS classes */
|
|
36
|
+
className?: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* TabbedContainer - Tabbed content areas
|
|
40
|
+
*/
|
|
41
|
+
export declare const TabbedContainer: React.FC<TabbedContainerProps>;
|
|
42
|
+
export default TabbedContainer;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Layout organisms index
|
|
3
|
+
*
|
|
4
|
+
* Export layout pattern components for adaptive UI.
|
|
5
|
+
*/
|
|
6
|
+
export { SplitPane, type SplitPaneProps } from './SplitPane';
|
|
7
|
+
export { MasterDetail, type MasterDetailProps } from './MasterDetail';
|
|
8
|
+
export { DashboardGrid, type DashboardGridProps, type DashboardGridCell } from './DashboardGrid';
|
|
9
|
+
export { TabbedContainer, type TabbedContainerProps, type TabDefinition } from './TabbedContainer';
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared types for entity-display organisms.
|
|
3
|
+
*
|
|
4
|
+
* All entity-display organisms (DataTable, List, Table, CardGrid, DetailPanel)
|
|
5
|
+
* extend EntityDisplayProps to guarantee a uniform prop contract.
|
|
6
|
+
*
|
|
7
|
+
* Exception: Form manages local `formData` state for field input tracking.
|
|
8
|
+
* This is the ONE allowed exception — documented here.
|
|
9
|
+
*/
|
|
10
|
+
export declare const EntityDisplayEvents: {
|
|
11
|
+
readonly SORT: "SORT";
|
|
12
|
+
readonly PAGINATE: "PAGINATE";
|
|
13
|
+
readonly SEARCH: "SEARCH";
|
|
14
|
+
readonly FILTER: "FILTER";
|
|
15
|
+
readonly CLEAR_FILTERS: "CLEAR_FILTERS";
|
|
16
|
+
readonly SELECT: "SELECT";
|
|
17
|
+
readonly DESELECT: "DESELECT";
|
|
18
|
+
};
|
|
19
|
+
export interface SortPayload {
|
|
20
|
+
field: string;
|
|
21
|
+
direction: 'asc' | 'desc';
|
|
22
|
+
}
|
|
23
|
+
export interface PaginatePayload {
|
|
24
|
+
page: number;
|
|
25
|
+
pageSize?: number;
|
|
26
|
+
}
|
|
27
|
+
export interface SearchPayload {
|
|
28
|
+
query: string;
|
|
29
|
+
}
|
|
30
|
+
export interface FilterPayload {
|
|
31
|
+
field: string;
|
|
32
|
+
operator: string;
|
|
33
|
+
value: unknown;
|
|
34
|
+
}
|
|
35
|
+
export interface SelectPayload {
|
|
36
|
+
ids: (string | number)[];
|
|
37
|
+
}
|
|
38
|
+
export interface EntityDisplayProps<T = unknown> {
|
|
39
|
+
/** Entity name (string) or data injected by the runtime (array for lists, single object for detail) */
|
|
40
|
+
entity?: string | T | readonly T[];
|
|
41
|
+
/** Additional CSS classes */
|
|
42
|
+
className?: string;
|
|
43
|
+
/** Loading state indicator */
|
|
44
|
+
isLoading?: boolean;
|
|
45
|
+
/** Error state */
|
|
46
|
+
error?: Error | null;
|
|
47
|
+
/** Current sort field */
|
|
48
|
+
sortBy?: string;
|
|
49
|
+
/** Current sort direction */
|
|
50
|
+
sortDirection?: 'asc' | 'desc';
|
|
51
|
+
/** Current search query value */
|
|
52
|
+
searchValue?: string;
|
|
53
|
+
/** Current page number (1-indexed) */
|
|
54
|
+
page?: number;
|
|
55
|
+
/** Number of items per page */
|
|
56
|
+
pageSize?: number;
|
|
57
|
+
/** Total number of items (for pagination display) */
|
|
58
|
+
totalCount?: number;
|
|
59
|
+
/** Active filters */
|
|
60
|
+
activeFilters?: Record<string, unknown>;
|
|
61
|
+
/** Currently selected item IDs */
|
|
62
|
+
selectedIds?: readonly (string | number)[];
|
|
63
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface AuthLayoutProps {
|
|
3
|
+
/** App name */
|
|
4
|
+
appName?: string;
|
|
5
|
+
/** Logo component or URL */
|
|
6
|
+
logo?: React.ReactNode;
|
|
7
|
+
/** Background image URL */
|
|
8
|
+
backgroundImage?: string;
|
|
9
|
+
/** Show branding panel on the side */
|
|
10
|
+
showBranding?: boolean;
|
|
11
|
+
/** Branding panel content */
|
|
12
|
+
brandingContent?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export declare const AuthLayout: React.FC<AuthLayoutProps>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BattleTemplate
|
|
3
|
+
*
|
|
4
|
+
* Thin declarative wrapper around BattleBoard organism.
|
|
5
|
+
* All game logic (turn phases, movement animation, combat, etc.) lives in BattleBoard.
|
|
6
|
+
*
|
|
7
|
+
* Compliant with Almadar_Templates.md: no hooks, no callbacks, entity-only data flow.
|
|
8
|
+
*
|
|
9
|
+
* @packageDocumentation
|
|
10
|
+
*/
|
|
11
|
+
import React from 'react';
|
|
12
|
+
import type { TemplateProps } from './types';
|
|
13
|
+
import type { BattleEntity } from '../organisms/game/BattleBoard';
|
|
14
|
+
export type { BattleEntity, BattlePhase, BattleUnit, BattleTile, BattleSlotContext, } from '../organisms/game/BattleBoard';
|
|
15
|
+
export interface BattleTemplateProps extends TemplateProps<BattleEntity> {
|
|
16
|
+
/** Canvas render scale */
|
|
17
|
+
scale?: number;
|
|
18
|
+
/** Unit draw-size multiplier */
|
|
19
|
+
unitScale?: number;
|
|
20
|
+
}
|
|
21
|
+
export declare function BattleTemplate({ entity, scale, unitScale, className, }: BattleTemplateProps): React.JSX.Element | null;
|
|
22
|
+
export declare namespace BattleTemplate {
|
|
23
|
+
var displayName: string;
|
|
24
|
+
}
|
|
25
|
+
export default BattleTemplate;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CastleTemplate
|
|
3
|
+
*
|
|
4
|
+
* Thin declarative wrapper around CastleBoard organism.
|
|
5
|
+
* All game logic (hover state, feature selection, etc.) lives in CastleBoard.
|
|
6
|
+
*
|
|
7
|
+
* Compliant with Almadar_Templates.md: no hooks, no callbacks, entity-only data flow.
|
|
8
|
+
*
|
|
9
|
+
* @packageDocumentation
|
|
10
|
+
*/
|
|
11
|
+
import React from 'react';
|
|
12
|
+
import type { TemplateProps } from './types';
|
|
13
|
+
import type { CastleEntity } from '../organisms/game/CastleBoard';
|
|
14
|
+
export type { CastleEntity, CastleSlotContext, } from '../organisms/game/CastleBoard';
|
|
15
|
+
export interface CastleTemplateProps extends TemplateProps<CastleEntity> {
|
|
16
|
+
/** Canvas render scale */
|
|
17
|
+
scale?: number;
|
|
18
|
+
}
|
|
19
|
+
export declare function CastleTemplate({ entity, scale, className, }: CastleTemplateProps): React.JSX.Element | null;
|
|
20
|
+
export declare namespace CastleTemplate {
|
|
21
|
+
var displayName: string;
|
|
22
|
+
}
|
|
23
|
+
export default CastleTemplate;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CounterTemplate
|
|
3
|
+
*
|
|
4
|
+
* A presentational template for counter/incrementer features.
|
|
5
|
+
* Supports increment, decrement, and reset operations.
|
|
6
|
+
*/
|
|
7
|
+
import React from "react";
|
|
8
|
+
import type { TemplateProps } from "./types";
|
|
9
|
+
export type CounterSize = "sm" | "md" | "lg";
|
|
10
|
+
export type CounterVariant = "minimal" | "standard" | "full";
|
|
11
|
+
export interface CounterEntity {
|
|
12
|
+
/** Entity ID */
|
|
13
|
+
id: string;
|
|
14
|
+
/** Current count value */
|
|
15
|
+
count: number;
|
|
16
|
+
/** Whether decrement button is disabled */
|
|
17
|
+
decrementDisabled?: boolean;
|
|
18
|
+
/** Whether increment button is disabled */
|
|
19
|
+
incrementDisabled?: boolean;
|
|
20
|
+
/** Step label for decrement button (e.g. "-5") */
|
|
21
|
+
decrementLabel?: string;
|
|
22
|
+
/** Step label for increment button (e.g. "+5") */
|
|
23
|
+
incrementLabel?: string;
|
|
24
|
+
/** Formatted range text (e.g. "Range: 0 to 100") */
|
|
25
|
+
rangeText?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface CounterTemplateProps extends TemplateProps<CounterEntity> {
|
|
28
|
+
/** Called when increment is clicked */
|
|
29
|
+
onIncrement?: () => void;
|
|
30
|
+
/** Called when decrement is clicked */
|
|
31
|
+
onDecrement?: () => void;
|
|
32
|
+
/** Called when reset is clicked */
|
|
33
|
+
onReset?: () => void;
|
|
34
|
+
/** Title displayed above the counter */
|
|
35
|
+
title?: string;
|
|
36
|
+
/** Show reset button */
|
|
37
|
+
showReset?: boolean;
|
|
38
|
+
/** Counter display size */
|
|
39
|
+
size?: CounterSize;
|
|
40
|
+
/** Template variant */
|
|
41
|
+
variant?: CounterVariant;
|
|
42
|
+
}
|
|
43
|
+
export declare const CounterTemplate: React.FC<CounterTemplateProps>;
|
|
44
|
+
export default CounterTemplate;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { LucideIcon } from "lucide-react";
|
|
3
|
+
export interface NavItem {
|
|
4
|
+
label: string;
|
|
5
|
+
href: string;
|
|
6
|
+
icon?: LucideIcon;
|
|
7
|
+
badge?: string | number;
|
|
8
|
+
children?: NavItem[];
|
|
9
|
+
}
|
|
10
|
+
export interface DashboardLayoutProps {
|
|
11
|
+
/** App name shown in sidebar */
|
|
12
|
+
appName?: string;
|
|
13
|
+
/** Logo component or URL */
|
|
14
|
+
logo?: React.ReactNode;
|
|
15
|
+
/** Navigation items */
|
|
16
|
+
navItems?: NavItem[];
|
|
17
|
+
/** Current user info (optional - auto-populated from auth context if not provided) */
|
|
18
|
+
user?: {
|
|
19
|
+
name: string;
|
|
20
|
+
email: string;
|
|
21
|
+
avatar?: string;
|
|
22
|
+
};
|
|
23
|
+
/** Header actions (notifications, etc.) */
|
|
24
|
+
headerActions?: React.ReactNode;
|
|
25
|
+
/** Show search in header */
|
|
26
|
+
showSearch?: boolean;
|
|
27
|
+
/** Custom sidebar footer */
|
|
28
|
+
sidebarFooter?: React.ReactNode;
|
|
29
|
+
/** Callback when user clicks sign out (optional - uses auth context signOut if not provided) */
|
|
30
|
+
onSignOut?: () => void;
|
|
31
|
+
/** Page content rendered inside the main area */
|
|
32
|
+
children?: React.ReactNode;
|
|
33
|
+
}
|
|
34
|
+
export declare const DashboardLayout: React.FC<DashboardLayoutProps>;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GameCanvas3DBattleTemplate
|
|
3
|
+
*
|
|
4
|
+
* Pure declarative template wrapper for 3D battle scenes.
|
|
5
|
+
* Optimized for tactical combat view with turn indicators.
|
|
6
|
+
*
|
|
7
|
+
* Page: Battle3DPage
|
|
8
|
+
* Entity: Battle3D
|
|
9
|
+
* ViewType: detail
|
|
10
|
+
*
|
|
11
|
+
* Events Emitted:
|
|
12
|
+
* - TILE_SELECTED - When a tile is clicked
|
|
13
|
+
* - UNIT_SELECTED - When a unit is clicked
|
|
14
|
+
* - UNIT_ATTACK - When attacking a unit
|
|
15
|
+
* - UNIT_MOVE - When moving a unit
|
|
16
|
+
* - END_TURN - When ending turn
|
|
17
|
+
* - EXIT_BATTLE - When exiting battle
|
|
18
|
+
*
|
|
19
|
+
* @packageDocumentation
|
|
20
|
+
*/
|
|
21
|
+
import React from 'react';
|
|
22
|
+
import type { IsometricTile, IsometricUnit, IsometricFeature } from '../organisms/game/types/isometric';
|
|
23
|
+
import type { TemplateProps } from './types';
|
|
24
|
+
export interface Battle3DEntity {
|
|
25
|
+
/** Battlefield tiles */
|
|
26
|
+
tiles: IsometricTile[];
|
|
27
|
+
/** Combatants */
|
|
28
|
+
units: IsometricUnit[];
|
|
29
|
+
/** Battlefield features (cover, obstacles) */
|
|
30
|
+
features: IsometricFeature[];
|
|
31
|
+
/** Current turn (player/enemy) */
|
|
32
|
+
currentTurn?: 'player' | 'enemy';
|
|
33
|
+
/** Round number */
|
|
34
|
+
round?: number;
|
|
35
|
+
/** Entity ID */
|
|
36
|
+
id: string;
|
|
37
|
+
}
|
|
38
|
+
export interface GameCanvas3DBattleTemplateProps extends TemplateProps<Battle3DEntity> {
|
|
39
|
+
/** 3D camera mode - defaults to perspective for dramatic effect */
|
|
40
|
+
cameraMode?: 'isometric' | 'perspective' | 'top-down';
|
|
41
|
+
/** Show grid helper */
|
|
42
|
+
showGrid?: boolean;
|
|
43
|
+
/** Enable shadows */
|
|
44
|
+
shadows?: boolean;
|
|
45
|
+
/** Background color - darker for battle atmosphere */
|
|
46
|
+
backgroundColor?: string;
|
|
47
|
+
/** Event name for tile clicks */
|
|
48
|
+
tileClickEvent?: string;
|
|
49
|
+
/** Event name for unit clicks */
|
|
50
|
+
unitClickEvent?: string;
|
|
51
|
+
/** Event name for unit attack */
|
|
52
|
+
unitAttackEvent?: string;
|
|
53
|
+
/** Event name for unit move */
|
|
54
|
+
unitMoveEvent?: string;
|
|
55
|
+
/** Event name for ending turn */
|
|
56
|
+
endTurnEvent?: string;
|
|
57
|
+
/** Event name for exiting battle */
|
|
58
|
+
exitEvent?: string;
|
|
59
|
+
/** Currently selected unit ID */
|
|
60
|
+
selectedUnitId?: string | null;
|
|
61
|
+
/** Valid move positions */
|
|
62
|
+
validMoves?: Array<{
|
|
63
|
+
x: number;
|
|
64
|
+
z: number;
|
|
65
|
+
}>;
|
|
66
|
+
/** Valid attack targets */
|
|
67
|
+
attackTargets?: Array<{
|
|
68
|
+
x: number;
|
|
69
|
+
z: number;
|
|
70
|
+
}>;
|
|
71
|
+
/** Show turn indicator overlay */
|
|
72
|
+
showTurnIndicator?: boolean;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* GameCanvas3DBattleTemplate Component
|
|
76
|
+
*
|
|
77
|
+
* Template for 3D battle/tactical combat view.
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* ```tsx
|
|
81
|
+
* <GameCanvas3DBattleTemplate
|
|
82
|
+
* entity={battleEntity}
|
|
83
|
+
* cameraMode="perspective"
|
|
84
|
+
* selectedUnitId="unit-1"
|
|
85
|
+
* validMoves={[{ x: 2, z: 3 }]}
|
|
86
|
+
* attackTargets={[{ x: 5, z: 5 }]}
|
|
87
|
+
* tileClickEvent="SELECT_TILE"
|
|
88
|
+
* unitClickEvent="SELECT_UNIT"
|
|
89
|
+
* />
|
|
90
|
+
* ```
|
|
91
|
+
*/
|
|
92
|
+
export declare function GameCanvas3DBattleTemplate({ entity, cameraMode, showGrid, shadows, backgroundColor, tileClickEvent, unitClickEvent, unitAttackEvent, unitMoveEvent, endTurnEvent, exitEvent, selectedUnitId, validMoves, attackTargets, className, }: GameCanvas3DBattleTemplateProps): React.JSX.Element | null;
|
|
93
|
+
export declare namespace GameCanvas3DBattleTemplate {
|
|
94
|
+
var displayName: string;
|
|
95
|
+
}
|
|
96
|
+
export default GameCanvas3DBattleTemplate;
|