@almadar/ui 5.75.0 → 5.76.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/avl/index.cjs +2545 -6006
- package/dist/avl/index.d.ts +43 -43
- package/dist/avl/index.js +1250 -4711
- package/dist/components/avl/atoms/AvlApplication.d.ts +1 -1
- package/dist/components/avl/atoms/AvlBindingRef.d.ts +1 -1
- package/dist/components/avl/atoms/AvlEffect.d.ts +1 -1
- package/dist/components/avl/atoms/AvlEntity.d.ts +1 -1
- package/dist/components/avl/atoms/AvlEvent.d.ts +1 -1
- package/dist/components/avl/atoms/AvlField.d.ts +1 -1
- package/dist/components/avl/atoms/AvlFieldType.d.ts +1 -1
- package/dist/components/avl/atoms/AvlGuard.d.ts +1 -1
- package/dist/components/avl/atoms/AvlLiteral.d.ts +1 -1
- package/dist/components/avl/atoms/AvlOperator.d.ts +1 -1
- package/dist/components/avl/atoms/AvlPage.d.ts +1 -1
- package/dist/components/avl/atoms/AvlPersistence.d.ts +1 -1
- package/dist/components/avl/atoms/AvlSExpr.d.ts +1 -1
- package/dist/components/avl/atoms/AvlState.d.ts +2 -2
- package/dist/components/avl/atoms/index.d.ts +4 -4
- package/dist/components/avl/{molecules → lib}/avl-behavior-compose-converter.d.ts +1 -1
- package/dist/components/avl/{molecules → lib}/avl-elk-layout.d.ts +2 -2
- package/dist/components/avl/{molecules → lib}/avl-flow-converter.d.ts +1 -1
- package/dist/components/avl/{molecules → lib}/avl-preview-converter.d.ts +1 -1
- package/dist/components/avl/{molecules → lib}/avl-story-schemas.d.ts +6 -6
- package/dist/components/avl/{molecules → lib}/avl-zoom-band.d.ts +1 -1
- package/dist/components/avl/molecules/Avl3DExprTree.d.ts +1 -1
- package/dist/components/avl/molecules/AvlBehaviorGlyph.d.ts +1 -1
- package/dist/components/avl/molecules/AvlClosedCircuit.d.ts +1 -1
- package/dist/components/avl/molecules/AvlOrbitalUnit.d.ts +1 -1
- package/dist/components/avl/molecules/AvlStateMachine.d.ts +1 -1
- package/dist/components/avl/molecules/AvlTransitionLane.d.ts +1 -1
- package/dist/components/avl/molecules/BehaviorView.d.ts +1 -1
- package/dist/components/avl/molecules/DetailView.d.ts +1 -1
- package/dist/components/avl/molecules/MiniStateMachine.d.ts +1 -1
- package/dist/components/avl/molecules/ModuleCard.d.ts +1 -1
- package/dist/components/avl/molecules/OrbPreviewNode.d.ts +1 -1
- package/dist/components/avl/molecules/SystemNode.d.ts +1 -1
- package/dist/components/avl/molecules/index.d.ts +9 -9
- package/dist/components/avl/organisms/Avl3DApplicationScene.d.ts +1 -1
- package/dist/components/avl/organisms/Avl3DEffects.d.ts +1 -1
- package/dist/components/avl/organisms/Avl3DOrbitalScene.d.ts +1 -1
- package/dist/components/avl/organisms/Avl3DTraitScene.d.ts +1 -1
- package/dist/components/avl/organisms/Avl3DTransitionScene.d.ts +1 -1
- package/dist/components/avl/organisms/Avl3DViewer.d.ts +2 -2
- package/dist/components/avl/organisms/AvlCosmicZoom.d.ts +1 -1
- package/dist/components/avl/organisms/AvlLegend.d.ts +1 -1
- package/dist/components/avl/organisms/AvlTraitScene.d.ts +1 -1
- package/dist/components/avl/organisms/AvlTransitionDetail.d.ts +1 -1
- package/dist/components/avl/organisms/AvlTransitionScene.d.ts +1 -1
- package/dist/components/avl/organisms/FlowCanvas.d.ts +2 -2
- package/dist/components/avl/organisms/OrbInspector.d.ts +1 -1
- package/dist/components/avl/organisms/ZoomBreadcrumb.d.ts +1 -1
- package/dist/components/avl/organisms/ZoomLegend.d.ts +1 -1
- package/dist/components/avl/organisms/index.d.ts +2 -2
- package/dist/components/avl/{molecules → types}/avl-behavior-compose-types.d.ts +1 -1
- package/dist/components/avl/{molecules → types}/avl-canvas-types.d.ts +1 -1
- package/dist/components/core/atoms/index.d.ts +2 -3
- package/dist/components/core/molecules/Breadcrumb.d.ts +1 -1
- package/dist/components/core/molecules/Card.d.ts +1 -1
- package/dist/components/core/molecules/Chart.d.ts +0 -2
- package/dist/components/core/molecules/ConfirmDialog.d.ts +0 -2
- package/dist/components/core/molecules/DataGrid.d.ts +1 -1
- package/dist/components/core/molecules/DataList.d.ts +1 -1
- package/dist/components/core/molecules/EmptyState.d.ts +1 -1
- package/dist/components/core/molecules/FloatingActionButton.d.ts +1 -1
- package/dist/components/core/molecules/FormSectionHeader.d.ts +1 -1
- package/dist/components/core/molecules/GraphCanvas.d.ts +0 -2
- package/dist/components/core/molecules/Header.d.ts +1 -1
- package/dist/components/core/molecules/Menu.d.ts +1 -1
- package/dist/components/core/molecules/Navigation.d.ts +1 -1
- package/dist/components/core/molecules/OrbitalVisualization.d.ts +0 -2
- package/dist/components/core/molecules/PageHeader.d.ts +1 -1
- package/dist/components/core/molecules/Section.d.ts +0 -2
- package/dist/components/core/molecules/Sidebar.d.ts +1 -1
- package/dist/components/core/molecules/SignaturePad.d.ts +0 -2
- package/dist/components/core/molecules/Split.d.ts +0 -2
- package/dist/components/core/molecules/StatDisplay.d.ts +1 -1
- package/dist/components/core/molecules/SwipeableRow.d.ts +1 -1
- package/dist/components/core/molecules/TableView.d.ts +1 -1
- package/dist/components/core/molecules/Tabs.d.ts +1 -1
- package/dist/components/core/molecules/UploadDropZone.d.ts +1 -1
- package/dist/components/core/molecules/WizardContainer.d.ts +0 -2
- package/dist/components/core/molecules/index.d.ts +1 -1
- package/dist/components/core/organisms/UISlotRenderer.d.ts +1 -1
- package/dist/components/core/organisms/index.d.ts +4 -4
- package/dist/components/core/templates/index.d.ts +12 -12
- package/dist/components/game/2d/{ActionButton.d.ts → atoms/ActionButton.d.ts} +1 -1
- package/dist/components/game/2d/{ChoiceButton.d.ts → atoms/ChoiceButton.d.ts} +1 -1
- package/dist/components/game/2d/{ControlButton.d.ts → atoms/ControlButton.d.ts} +1 -1
- package/dist/components/game/2d/{GameAudioToggle.d.ts → atoms/GameAudioToggle.d.ts} +1 -3
- package/dist/components/game/2d/atoms/GameIcon.d.ts +18 -0
- package/dist/components/game/2d/{ItemSlot.d.ts → atoms/ItemSlot.d.ts} +1 -1
- package/dist/components/game/2d/{MiniMap.d.ts → atoms/MiniMap.d.ts} +1 -1
- package/dist/components/game/2d/{ResourceCounter.d.ts → atoms/ResourceCounter.d.ts} +2 -2
- package/dist/components/game/2d/{ScoreDisplay.d.ts → atoms/ScoreDisplay.d.ts} +1 -1
- package/dist/components/game/2d/{Sprite.d.ts → atoms/Sprite.d.ts} +1 -1
- package/dist/components/game/2d/{StateIndicator.d.ts → atoms/StateIndicator.d.ts} +5 -4
- package/dist/components/game/2d/{StatusEffect.d.ts → atoms/StatusEffect.d.ts} +2 -2
- package/dist/components/game/2d/{WaypointMarker.d.ts → atoms/WaypointMarker.d.ts} +1 -1
- package/dist/components/game/2d/{Canvas2D.d.ts → molecules/Canvas2D.d.ts} +3 -3
- package/dist/components/game/2d/{ControlGrid.d.ts → molecules/ControlGrid.d.ts} +3 -2
- package/dist/components/game/2d/{GameHud.d.ts → molecules/GameHud.d.ts} +3 -1
- package/dist/components/game/2d/{GameMenu.d.ts → molecules/GameMenu.d.ts} +1 -1
- package/dist/components/game/2d/{InventoryGrid.d.ts → molecules/InventoryGrid.d.ts} +3 -2
- package/dist/components/game/2d/{ResourceBar.d.ts → molecules/ResourceBar.d.ts} +3 -1
- package/dist/components/game/2d/{StatBadge.d.ts → molecules/StatBadge.d.ts} +1 -1
- package/dist/components/game/2d/molecules/index.d.ts +107 -0
- package/dist/components/game/2d/{ActionTile.d.ts → organisms/ActionTile.d.ts} +1 -1
- package/dist/components/game/2d/{BattleBoard.d.ts → organisms/BattleBoard.d.ts} +4 -3
- package/dist/components/game/2d/{BoardgameBoard.d.ts → organisms/BoardgameBoard.d.ts} +3 -3
- package/dist/components/game/2d/{BuilderBoard.d.ts → organisms/BuilderBoard.d.ts} +7 -3
- package/dist/components/game/2d/{CanvasEffect.d.ts → organisms/CanvasEffect.d.ts} +4 -4
- package/dist/components/game/2d/{CardBattlerBoard.d.ts → organisms/CardBattlerBoard.d.ts} +1 -1
- package/dist/components/game/2d/{CastleBoard.d.ts → organisms/CastleBoard.d.ts} +2 -1
- package/dist/components/game/2d/{CityBuilderBoard.d.ts → organisms/CityBuilderBoard.d.ts} +1 -1
- package/dist/components/game/2d/{ClassifierBoard.d.ts → organisms/ClassifierBoard.d.ts} +7 -3
- package/dist/components/game/2d/{DebuggerBoard.d.ts → organisms/DebuggerBoard.d.ts} +7 -3
- package/dist/components/game/2d/{EventHandlerBoard.d.ts → organisms/EventHandlerBoard.d.ts} +1 -1
- package/dist/components/game/2d/{FishingBoard.d.ts → organisms/FishingBoard.d.ts} +12 -2
- package/dist/components/game/2d/{HexStrategyBoard.d.ts → organisms/HexStrategyBoard.d.ts} +13 -6
- package/dist/components/game/2d/{HolidayRunnerBoard.d.ts → organisms/HolidayRunnerBoard.d.ts} +3 -3
- package/dist/components/game/2d/{MatchPuzzleBoard.d.ts → organisms/MatchPuzzleBoard.d.ts} +3 -3
- package/dist/components/game/2d/{MinigolfBoard.d.ts → organisms/MinigolfBoard.d.ts} +3 -3
- package/dist/components/game/2d/{NegotiatorBoard.d.ts → organisms/NegotiatorBoard.d.ts} +7 -3
- package/dist/components/game/2d/{PinballBoard.d.ts → organisms/PinballBoard.d.ts} +12 -4
- package/dist/components/game/2d/{PirateBoard.d.ts → organisms/PirateBoard.d.ts} +13 -6
- package/dist/components/game/2d/{PlatformerBoard.d.ts → organisms/PlatformerBoard.d.ts} +1 -1
- package/dist/components/game/2d/{RacingBoard.d.ts → organisms/RacingBoard.d.ts} +13 -6
- package/dist/components/game/2d/{RoguelikeBoard.d.ts → organisms/RoguelikeBoard.d.ts} +2 -2
- package/dist/components/game/2d/{SequencerBoard.d.ts → organisms/SequencerBoard.d.ts} +1 -1
- package/dist/components/game/2d/{SimulationCanvas.d.ts → organisms/SimulationCanvas.d.ts} +3 -2
- package/dist/components/game/2d/{SimulationControls.d.ts → organisms/SimulationControls.d.ts} +6 -1
- package/dist/components/game/2d/{SimulatorBoard.d.ts → organisms/SimulatorBoard.d.ts} +7 -3
- package/dist/components/game/2d/{SokobanBoard.d.ts → organisms/SokobanBoard.d.ts} +3 -3
- package/dist/components/game/2d/{SpaceShmupBoard.d.ts → organisms/SpaceShmupBoard.d.ts} +13 -6
- package/dist/components/game/2d/{SpaceStationBoard.d.ts → organisms/SpaceStationBoard.d.ts} +3 -3
- package/dist/components/game/2d/{SportsBoard.d.ts → organisms/SportsBoard.d.ts} +3 -3
- package/dist/components/game/2d/{StateArchitectBoard.d.ts → organisms/StateArchitectBoard.d.ts} +1 -1
- package/dist/components/game/2d/{StateNode.d.ts → organisms/StateNode.d.ts} +1 -1
- package/dist/components/game/2d/{TanksBoard.d.ts → organisms/TanksBoard.d.ts} +3 -3
- package/dist/components/game/2d/{TowerDefenseBoard.d.ts → organisms/TowerDefenseBoard.d.ts} +1 -1
- package/dist/components/game/2d/{TraitSlot.d.ts → organisms/TraitSlot.d.ts} +1 -1
- package/dist/components/game/2d/{TraitStateViewer.d.ts → organisms/TraitStateViewer.d.ts} +2 -2
- package/dist/components/game/2d/{TransitionArrow.d.ts → organisms/TransitionArrow.d.ts} +1 -1
- package/dist/components/game/2d/{UncontrolledBattleBoard.d.ts → organisms/UncontrolledBattleBoard.d.ts} +1 -1
- package/dist/components/game/2d/{VisualNovelBoard.d.ts → organisms/VisualNovelBoard.d.ts} +1 -9
- package/dist/components/game/2d/{WorldMapBoard.d.ts → organisms/WorldMapBoard.d.ts} +4 -3
- package/dist/components/game/2d/{BattleTemplate.d.ts → templates/BattleTemplate.d.ts} +4 -4
- package/dist/components/game/2d/{CardBattlerTemplate.d.ts → templates/CardBattlerTemplate.d.ts} +2 -2
- package/dist/components/game/2d/{CastleTemplate.d.ts → templates/CastleTemplate.d.ts} +4 -4
- package/dist/components/game/2d/{CityBuilderTemplate.d.ts → templates/CityBuilderTemplate.d.ts} +2 -2
- package/dist/components/game/2d/{GameTemplate.d.ts → templates/GameTemplate.d.ts} +1 -1
- package/dist/components/game/2d/{PlatformerTemplate.d.ts → templates/PlatformerTemplate.d.ts} +2 -2
- package/dist/components/game/2d/{RoguelikeTemplate.d.ts → templates/RoguelikeTemplate.d.ts} +3 -3
- package/dist/components/game/2d/{TopDownShooterTemplate.d.ts → templates/TopDownShooterTemplate.d.ts} +2 -2
- package/dist/components/game/2d/{TowerDefenseTemplate.d.ts → templates/TowerDefenseTemplate.d.ts} +2 -2
- package/dist/components/game/2d/{VisualNovelTemplate.d.ts → templates/VisualNovelTemplate.d.ts} +2 -2
- package/dist/components/game/2d/{WorldMapTemplate.d.ts → templates/WorldMapTemplate.d.ts} +4 -4
- package/dist/components/game/3d/{Canvas3D.d.ts → molecules/Canvas3D.d.ts} +1 -1
- package/dist/components/game/3d/{GameCanvas3D.d.ts → molecules/GameCanvas3D.d.ts} +3 -3
- package/dist/components/game/3d/{index.d.ts → molecules/index.d.ts} +20 -25
- package/dist/components/game/3d/{GameBoard3D.d.ts → organisms/GameBoard3D.d.ts} +2 -2
- package/dist/components/game/3d/{GameCanvas3DBattleTemplate.d.ts → templates/GameCanvas3DBattleTemplate.d.ts} +3 -3
- package/dist/components/game/3d/{GameCanvas3DCastleTemplate.d.ts → templates/GameCanvas3DCastleTemplate.d.ts} +3 -3
- package/dist/components/game/3d/{GameCanvas3DWorldMapTemplate.d.ts → templates/GameCanvas3DWorldMapTemplate.d.ts} +3 -3
- package/dist/components/game/{3d → shared/hooks}/useAssetLoader.d.ts +1 -1
- package/dist/components/game/{2d → shared/hooks}/useBattleState.d.ts +1 -1
- package/dist/components/game/{2d → shared/hooks}/useCamera.d.ts +1 -1
- package/dist/components/game/{2d → shared/hooks}/useCanvasEffects.d.ts +1 -1
- package/dist/components/game/{3d → shared/hooks}/useGameCanvas3DEvents.d.ts +1 -1
- package/dist/components/game/{3d → shared/hooks}/useThree.d.ts +1 -1
- package/dist/components/game/{2d → shared/hooks}/useUnitSpriteAtlas.d.ts +2 -2
- package/dist/components/game/shared/index.d.ts +0 -2
- package/dist/components/game/{2d → shared/lib}/editorUtils.d.ts +6 -1
- package/dist/components/game/{2d → shared/lib}/game3dAssetManifest.d.ts +1 -1
- package/dist/components/game/{2d → shared/lib}/mechanics.d.ts +1 -1
- package/dist/components/game/{2d → shared/lib}/physicsPresets.d.ts +2 -2
- package/dist/components/game/{2d → shared/lib}/puzzleObject.d.ts +1 -1
- package/dist/components/game/{2d → shared/providers}/GameAudioProvider.d.ts +3 -4
- package/dist/components/index.cjs +4459 -5117
- package/dist/components/index.d.ts +5 -5
- package/dist/components/index.js +3378 -4061
- package/dist/context/index.cjs +93 -827
- package/dist/context/index.d.ts +8 -8
- package/dist/context/index.js +3 -807
- package/dist/hooks/index.cjs +9 -278
- package/dist/hooks/index.d.ts +5 -6
- package/dist/hooks/index.js +11 -262
- package/dist/hooks/useAgentChat.d.ts +7 -6
- package/dist/{renderer → hooks}/useClientEffects.d.ts +1 -1
- package/dist/hooks/useCompile.d.ts +2 -6
- package/dist/hooks/useDeepAgentGeneration.d.ts +4 -4
- package/dist/hooks/useEventBus.d.ts +5 -3
- package/dist/hooks/useFileSystem.d.ts +11 -1
- package/dist/hooks/useOrbitalHistory.d.ts +2 -2
- package/dist/hooks/useQuerySingleton.d.ts +5 -4
- package/dist/{runtime → hooks}/useResolvedSchema.d.ts +1 -1
- package/dist/{runtime → hooks}/useTraitStateMachine.d.ts +5 -5
- package/dist/hooks/useUISlots.d.ts +7 -10
- package/dist/lib/api-client.d.ts +4 -3
- package/dist/{renderer → lib}/client-effect-executor.d.ts +4 -15
- package/dist/{runtime → lib}/createClientEffectHandlers.d.ts +4 -4
- package/dist/{renderer → lib}/data-resolver.d.ts +3 -16
- package/dist/lib/debugRegistry.d.ts +8 -7
- package/dist/lib/entityDebug.d.ts +4 -3
- package/dist/lib/getNestedValue.d.ts +15 -3
- package/dist/lib/guardRegistry.d.ts +3 -2
- package/dist/lib/index.cjs +11 -12
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/index.js +11 -12
- package/dist/lib/jazari/layout.d.ts +3 -2
- package/dist/{renderer → lib}/offline-executor.d.ts +6 -5
- package/dist/lib/parseContentSegments.d.ts +2 -1
- package/dist/{renderer → lib}/pattern-resolver.d.ts +2 -2
- package/dist/{runtime → lib}/perf.d.ts +0 -2
- package/dist/{renderer → lib}/slot-definitions.d.ts +3 -15
- package/dist/{renderer → lib}/trait-binding-resolver.d.ts +6 -2
- package/dist/lib/visualizer/browser.d.ts +3 -2
- package/dist/lib/visualizer/index.d.ts +6 -5
- package/dist/marketing/index.cjs +6 -6
- package/dist/marketing/index.js +6 -6
- package/dist/{runtime → providers}/EntitySchemaContext.d.ts +0 -4
- package/dist/providers/EventBusProvider.d.ts +3 -2
- package/dist/providers/OfflineModeProvider.d.ts +1 -1
- package/dist/providers/OrbitalProvider.d.ts +5 -4
- package/dist/providers/SelectionProvider.d.ts +6 -5
- package/dist/{runtime → providers}/ServerBridge.d.ts +14 -11
- package/dist/{context → providers}/ThemeContext.d.ts +5 -5
- package/dist/{runtime → providers}/TraitProvider.d.ts +4 -3
- package/dist/{context → providers}/UISlotContext.d.ts +2 -2
- package/dist/{context → providers}/UserContext.d.ts +3 -2
- package/dist/providers/VerificationProvider.d.ts +2 -1
- package/dist/providers/index.cjs +2101 -4930
- package/dist/providers/index.d.ts +1 -1
- package/dist/providers/index.js +1263 -4092
- package/dist/{renderer → providers}/navigation.d.ts +7 -7
- package/dist/renderer/index.cjs +84 -322
- package/dist/renderer/index.d.ts +12 -12
- package/dist/renderer/index.js +30 -301
- package/dist/runtime/OrbPreview.d.ts +1 -1
- package/dist/runtime/index.cjs +2809 -6315
- package/dist/runtime/index.d.ts +11 -11
- package/dist/runtime/index.js +1740 -5270
- package/dist/{hooks → types}/event-bus-types.d.ts +2 -1
- package/dist/{renderer/types.d.ts → types/renderer-types.d.ts} +14 -28
- package/dist/types/runtime-types.d.ts +21 -0
- package/dist/{runtime/ui → types}/slot-types.d.ts +5 -4
- package/locales/index.ts +1 -1
- package/package.json +4 -21
- package/dist/components/core/atoms/ThemeSelector.d.ts +0 -21
- package/dist/components/game/2d/CardHand.d.ts +0 -35
- package/dist/components/game/2d/CombatLog.d.ts +0 -30
- package/dist/components/game/2d/CraftingRecipe.d.ts +0 -40
- package/dist/components/game/2d/DialogueBox.d.ts +0 -66
- package/dist/components/game/2d/EnemyPlate.d.ts +0 -30
- package/dist/components/game/2d/GameCanvas2D.d.ts +0 -27
- package/dist/components/game/2d/GameOverScreen.d.ts +0 -57
- package/dist/components/game/2d/HealthPanel.d.ts +0 -31
- package/dist/components/game/2d/InventoryPanel.d.ts +0 -58
- package/dist/components/game/2d/IsometricCanvas.d.ts +0 -137
- package/dist/components/game/2d/PlatformerCanvas.d.ts +0 -60
- package/dist/components/game/2d/PowerupSlots.d.ts +0 -26
- package/dist/components/game/2d/QuestTracker.d.ts +0 -20
- package/dist/components/game/2d/ScoreBoard.d.ts +0 -18
- package/dist/components/game/2d/TurnPanel.d.ts +0 -32
- package/dist/components/game/2d/UnitCommandBar.d.ts +0 -25
- package/dist/components/game/2d/index.d.ts +0 -122
- package/dist/components/game/3d/FeatureRenderer.d.ts +0 -38
- package/dist/components/game/3d/FeatureRenderer3D.d.ts +0 -44
- package/dist/components/game/3d/PhysicsObject3D.d.ts +0 -74
- package/dist/components/game/3d/TileRenderer.d.ts +0 -57
- package/dist/components/game/3d/UnitRenderer.d.ts +0 -46
- package/dist/components/game/3d/index.cjs +0 -7715
- package/dist/components/game/3d/index.css +0 -503
- package/dist/components/game/3d/index.js +0 -7633
- package/dist/components/game/3d/patterns.d.ts +0 -20
- package/dist/components/game/shared/combatEffects.d.ts +0 -64
- package/dist/docs/index.cjs +0 -7024
- package/dist/docs/index.css +0 -1252
- package/dist/docs/index.d.cts +0 -574
- package/dist/docs/index.d.ts +0 -29
- package/dist/docs/index.js +0 -6981
- package/dist/hooks/useAgentTrace.d.ts +0 -85
- package/dist/hooks/useEntities.d.ts +0 -52
- package/dist/hooks/usePinchZoom.d.ts +0 -22
- package/dist/runtime/types.d.ts +0 -37
- package/dist/stores/entityStore.d.ts +0 -99
- package/dist/stores/filtering.d.ts +0 -51
- package/dist/stores/index.cjs +0 -217
- package/dist/stores/index.d.ts +0 -7
- package/dist/stores/index.js +0 -194
- /package/dist/components/avl/{molecules → hooks}/useCanvasDnd.d.ts +0 -0
- /package/dist/components/avl/{organisms → lib}/avl-3d-layout.d.ts +0 -0
- /package/dist/components/avl/{molecules → lib}/avl-layout.d.ts +0 -0
- /package/dist/components/avl/{organisms → lib}/avl-schema-parser.d.ts +0 -0
- /package/dist/components/avl/{organisms → lib}/avl-zoom-state.d.ts +0 -0
- /package/dist/components/avl/{derive-edit-focus.d.ts → lib/derive-edit-focus.d.ts} +0 -0
- /package/dist/components/avl/{molecules → lib}/wire-validation.d.ts +0 -0
- /package/dist/components/avl/{organisms → providers}/avl-3d-context.d.ts +0 -0
- /package/dist/components/avl/{atoms/types.d.ts → types/avl-atom-types.d.ts} +0 -0
- /package/dist/components/avl/{molecules → types}/avl-preview-types.d.ts +0 -0
- /package/dist/components/game/2d/{ComboCounter.d.ts → atoms/ComboCounter.d.ts} +0 -0
- /package/dist/components/game/2d/{DamageNumber.d.ts → atoms/DamageNumber.d.ts} +0 -0
- /package/dist/components/game/2d/{DialogueBubble.d.ts → atoms/DialogueBubble.d.ts} +0 -0
- /package/dist/components/game/2d/{GameCard.d.ts → atoms/GameCard.d.ts} +0 -0
- /package/dist/components/game/2d/{HealthBar.d.ts → atoms/HealthBar.d.ts} +0 -0
- /package/dist/components/game/2d/{TimerDisplay.d.ts → atoms/TimerDisplay.d.ts} +0 -0
- /package/dist/components/game/2d/{TurnIndicator.d.ts → atoms/TurnIndicator.d.ts} +0 -0
- /package/dist/components/game/2d/{ActionPalette.d.ts → organisms/ActionPalette.d.ts} +0 -0
- /package/dist/components/game/2d/{EventLog.d.ts → organisms/EventLog.d.ts} +0 -0
- /package/dist/components/game/2d/{ObjectRulePanel.d.ts → organisms/ObjectRulePanel.d.ts} +0 -0
- /package/dist/components/game/2d/{RuleEditor.d.ts → organisms/RuleEditor.d.ts} +0 -0
- /package/dist/components/game/2d/{SequenceBar.d.ts → organisms/SequenceBar.d.ts} +0 -0
- /package/dist/components/game/2d/{SimulationGraph.d.ts → organisms/SimulationGraph.d.ts} +0 -0
- /package/dist/components/game/2d/{StateJsonView.d.ts → organisms/StateJsonView.d.ts} +0 -0
- /package/dist/components/game/2d/{TopDownShooterBoard.d.ts → organisms/TopDownShooterBoard.d.ts} +0 -0
- /package/dist/components/game/2d/{VariablePanel.d.ts → organisms/VariablePanel.d.ts} +0 -0
- /package/dist/components/game/2d/{GameShell.d.ts → templates/GameShell.d.ts} +0 -0
- /package/dist/components/game/3d/{Camera3D.d.ts → molecules/Camera3D.d.ts} +0 -0
- /package/dist/components/game/3d/{Canvas3DErrorBoundary.d.ts → molecules/Canvas3DErrorBoundary.d.ts} +0 -0
- /package/dist/components/game/3d/{Canvas3DLoadingState.d.ts → molecules/Canvas3DLoadingState.d.ts} +0 -0
- /package/dist/components/game/3d/{Lighting3D.d.ts → molecules/Lighting3D.d.ts} +0 -0
- /package/dist/components/game/3d/{ModelLoader.d.ts → molecules/ModelLoader.d.ts} +0 -0
- /package/dist/components/game/3d/{Scene3D.d.ts → molecules/Scene3D.d.ts} +0 -0
- /package/dist/components/game/{2d → shared/hooks}/useGameAudio.d.ts +0 -0
- /package/dist/components/game/{3d → shared/hooks}/useRaycaster.d.ts +0 -0
- /package/dist/components/game/{3d → shared/hooks}/useSceneGraph.d.ts +0 -0
- /package/dist/components/game/{3d → shared/lib}/AssetLoader.d.ts +0 -0
- /package/dist/components/game/{3d → shared/lib}/culling.d.ts +0 -0
- /package/dist/components/game/{3d → shared/lib}/grid3D.d.ts +0 -0
- /package/dist/components/game/{2d/types.d.ts → shared/lib/physicsTypes.d.ts} +0 -0
- /package/dist/{runtime → lib}/embedded-traits.d.ts +0 -0
- /package/dist/{runtime → lib}/fn-form-lambda.d.ts +0 -0
- /package/dist/{renderer → lib}/init.d.ts +0 -0
- /package/dist/{runtime → lib}/orbitalsByTrait.d.ts +0 -0
- /package/dist/{runtime → lib}/prepareSchemaForPreview.d.ts +0 -0
- /package/dist/{context → lib}/themeTokens.d.ts +0 -0
- /package/dist/{runtime → lib}/wrapCallbackForEvent.d.ts +0 -0
- /package/dist/{context → providers}/CurrentPagePathContext.d.ts +0 -0
- /package/dist/{context → providers}/DesignThemeContext.d.ts +0 -0
- /package/dist/{context → providers}/OrbitalThemeProvider.d.ts +0 -0
package/dist/docs/index.d.cts
DELETED
|
@@ -1,574 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { EventKey, EventPayload } from '@almadar/core';
|
|
3
|
-
import { LucideIcon } from 'lucide-react';
|
|
4
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Box Component
|
|
8
|
-
*
|
|
9
|
-
* A versatile layout primitive that provides spacing, background, border, and shadow controls.
|
|
10
|
-
* Think of it as a styled div with consistent design tokens.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
type BoxPadding = "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
14
|
-
type BoxMargin = "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "auto";
|
|
15
|
-
type BoxBg = "transparent" | "primary" | "secondary" | "muted" | "accent" | "surface" | "overlay";
|
|
16
|
-
type BoxRounded = "none" | "sm" | "md" | "lg" | "xl" | "2xl" | "full";
|
|
17
|
-
type BoxShadow = "none" | "sm" | "md" | "lg" | "xl";
|
|
18
|
-
interface BoxProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
19
|
-
/** Additional CSS classes applied to the root element. */
|
|
20
|
-
className?: string;
|
|
21
|
-
/** Padding on all sides */
|
|
22
|
-
padding?: BoxPadding;
|
|
23
|
-
/** Horizontal padding (overrides padding for x-axis) */
|
|
24
|
-
paddingX?: BoxPadding;
|
|
25
|
-
/** Vertical padding (overrides padding for y-axis) */
|
|
26
|
-
paddingY?: BoxPadding;
|
|
27
|
-
/** Margin on all sides */
|
|
28
|
-
margin?: BoxMargin;
|
|
29
|
-
/** Horizontal margin */
|
|
30
|
-
marginX?: BoxMargin;
|
|
31
|
-
/** Vertical margin */
|
|
32
|
-
marginY?: BoxMargin;
|
|
33
|
-
/** Background color */
|
|
34
|
-
bg?: BoxBg;
|
|
35
|
-
/** Show border */
|
|
36
|
-
border?: boolean;
|
|
37
|
-
/** Border radius */
|
|
38
|
-
rounded?: BoxRounded;
|
|
39
|
-
/** Box shadow */
|
|
40
|
-
shadow?: BoxShadow;
|
|
41
|
-
/** Display type */
|
|
42
|
-
display?: "block" | "inline" | "inline-block" | "flex" | "inline-flex" | "grid";
|
|
43
|
-
/** Fill available width */
|
|
44
|
-
fullWidth?: boolean;
|
|
45
|
-
/** Fill available height */
|
|
46
|
-
fullHeight?: boolean;
|
|
47
|
-
/** Overflow behavior */
|
|
48
|
-
overflow?: "auto" | "hidden" | "visible" | "scroll";
|
|
49
|
-
/** Position */
|
|
50
|
-
position?: "relative" | "absolute" | "fixed" | "sticky";
|
|
51
|
-
/** HTML element to render as */
|
|
52
|
-
as?: React.ElementType;
|
|
53
|
-
/** Declarative event name — emits UI:{action} via eventBus on click */
|
|
54
|
-
action?: EventKey;
|
|
55
|
-
/** Payload to include with the action event */
|
|
56
|
-
actionPayload?: EventPayload;
|
|
57
|
-
/** Declarative hover event — emits UI:{hoverEvent} with { hovered: true/false } on mouseEnter/mouseLeave */
|
|
58
|
-
hoverEvent?: EventKey;
|
|
59
|
-
/** When true (default), a touch/pen tap also fires `hoverEvent` (toggling hovered) so hover-only reveals work on touch. */
|
|
60
|
-
tapReveal?: boolean;
|
|
61
|
-
/** Maximum width (CSS value, e.g., "550px", "80rem") */
|
|
62
|
-
maxWidth?: string;
|
|
63
|
-
/** Children elements */
|
|
64
|
-
children?: React.ReactNode;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Box - Versatile container component with design tokens
|
|
68
|
-
*/
|
|
69
|
-
declare const Box: React.ForwardRefExoticComponent<BoxProps & React.RefAttributes<HTMLDivElement>>;
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Stack Component
|
|
73
|
-
*
|
|
74
|
-
* A layout primitive for arranging children in a vertical or horizontal stack with consistent spacing.
|
|
75
|
-
* Includes convenience exports VStack and HStack for common use cases.
|
|
76
|
-
*/
|
|
77
|
-
|
|
78
|
-
type StackDirection = "horizontal" | "vertical";
|
|
79
|
-
type StackGap = "none" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
80
|
-
type StackAlign = "start" | "center" | "end" | "stretch" | "baseline";
|
|
81
|
-
type StackJustify = "start" | "center" | "end" | "between" | "around" | "evenly";
|
|
82
|
-
interface StackProps {
|
|
83
|
-
/** Stack direction */
|
|
84
|
-
direction?: StackDirection;
|
|
85
|
-
/** Gap between children */
|
|
86
|
-
gap?: StackGap;
|
|
87
|
-
/** Align items on the cross axis */
|
|
88
|
-
align?: StackAlign;
|
|
89
|
-
/** Justify items on the main axis */
|
|
90
|
-
justify?: StackJustify;
|
|
91
|
-
/** Allow items to wrap */
|
|
92
|
-
wrap?: boolean;
|
|
93
|
-
/** Reverse the order of children */
|
|
94
|
-
reverse?: boolean;
|
|
95
|
-
/** Fill available space (flex: 1) */
|
|
96
|
-
flex?: boolean;
|
|
97
|
-
/** Custom class name */
|
|
98
|
-
className?: string;
|
|
99
|
-
/** Inline styles */
|
|
100
|
-
style?: React.CSSProperties;
|
|
101
|
-
/** Children elements */
|
|
102
|
-
children?: React.ReactNode;
|
|
103
|
-
/** HTML element to render as */
|
|
104
|
-
as?: React.ElementType;
|
|
105
|
-
/** Click handler */
|
|
106
|
-
onClick?: (e: React.MouseEvent) => void;
|
|
107
|
-
/** Keyboard handler */
|
|
108
|
-
onKeyDown?: (e: React.KeyboardEvent) => void;
|
|
109
|
-
/** Role for accessibility */
|
|
110
|
-
role?: string;
|
|
111
|
-
/** Tab index for focus management */
|
|
112
|
-
tabIndex?: number;
|
|
113
|
-
/** Declarative event name — emits UI:{action} via eventBus on click */
|
|
114
|
-
action?: EventKey;
|
|
115
|
-
/** Payload to include with the action event */
|
|
116
|
-
actionPayload?: EventPayload;
|
|
117
|
-
/** When true, horizontal stacks flip to vertical below the md breakpoint (768px) */
|
|
118
|
-
responsive?: boolean;
|
|
119
|
-
}
|
|
120
|
-
/**
|
|
121
|
-
* VStack - Vertical stack shorthand
|
|
122
|
-
*/
|
|
123
|
-
interface VStackProps extends Omit<StackProps, "direction"> {
|
|
124
|
-
}
|
|
125
|
-
declare const VStack: React.FC<VStackProps>;
|
|
126
|
-
/**
|
|
127
|
-
* HStack - Horizontal stack shorthand
|
|
128
|
-
*/
|
|
129
|
-
interface HStackProps extends Omit<StackProps, "direction"> {
|
|
130
|
-
}
|
|
131
|
-
declare const HStack: React.FC<HStackProps>;
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* Typography Atom Component
|
|
135
|
-
*
|
|
136
|
-
* Text elements following the KFlow design system with theme-aware styling.
|
|
137
|
-
*/
|
|
138
|
-
|
|
139
|
-
type TypographyVariant = "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "heading" | "subheading" | "body1" | "body2" | "body" | "caption" | "overline" | "small" | "large" | "label";
|
|
140
|
-
type TypographySize = "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl";
|
|
141
|
-
interface TypographyProps {
|
|
142
|
-
/** Typography variant */
|
|
143
|
-
variant?: TypographyVariant;
|
|
144
|
-
/** Heading level (1-6) - alternative to variant for headings */
|
|
145
|
-
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
146
|
-
/** Text color */
|
|
147
|
-
color?: "primary" | "secondary" | "muted" | "error" | "success" | "warning" | "inherit";
|
|
148
|
-
/** Text alignment */
|
|
149
|
-
align?: "left" | "center" | "right";
|
|
150
|
-
/** Font weight override */
|
|
151
|
-
weight?: "light" | "normal" | "medium" | "semibold" | "bold";
|
|
152
|
-
/** Font size override */
|
|
153
|
-
size?: TypographySize;
|
|
154
|
-
/** Truncate with ellipsis (single line) */
|
|
155
|
-
truncate?: boolean;
|
|
156
|
-
/** Overflow handling mode */
|
|
157
|
-
overflow?: "visible" | "hidden" | "wrap" | "clamp-2" | "clamp-3";
|
|
158
|
-
/** Custom HTML element */
|
|
159
|
-
as?: keyof React.JSX.IntrinsicElements;
|
|
160
|
-
/** HTML id attribute */
|
|
161
|
-
id?: string;
|
|
162
|
-
/** Additional class names */
|
|
163
|
-
className?: string;
|
|
164
|
-
/** Inline style */
|
|
165
|
-
style?: React.CSSProperties;
|
|
166
|
-
/** Text content (alternative to children) */
|
|
167
|
-
content?: React.ReactNode;
|
|
168
|
-
/** Children elements */
|
|
169
|
-
children?: React.ReactNode;
|
|
170
|
-
}
|
|
171
|
-
declare const Typography: React.FC<TypographyProps>;
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* Cross-cutting atom-level prop shapes shared across the design system.
|
|
175
|
-
*/
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* Canonical semantic color palette. Values are the Tailwind / CSS-var token
|
|
179
|
-
* names that every component in the design system understands. Prefer this
|
|
180
|
-
* over a bare `string` for any `color` or `variant` prop.
|
|
181
|
-
*/
|
|
182
|
-
type ColorToken = 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'muted';
|
|
183
|
-
/**
|
|
184
|
-
* Concrete error-state shape read by display components (`error.message`,
|
|
185
|
-
* occasionally `error.stack`). Structurally assignable from the global `Error`,
|
|
186
|
-
* so existing call sites passing an `Error` keep working — this just gives the
|
|
187
|
-
* pattern extractor a readable field schema instead of the opaque `Error` global.
|
|
188
|
-
*/
|
|
189
|
-
type UiError = {
|
|
190
|
-
message: string;
|
|
191
|
-
name?: string;
|
|
192
|
-
code?: string;
|
|
193
|
-
stack?: string;
|
|
194
|
-
};
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* Icon Atom Component
|
|
198
|
-
*
|
|
199
|
-
* Renders an icon from the active icon family (Layer 1 Iconography axis —
|
|
200
|
-
* see lib/iconFamily.ts). Canonical names are lucide kebab-case; the resolver
|
|
201
|
-
* dispatches to phosphor / tabler / fa-solid when `--icon-family` selects them,
|
|
202
|
-
* re-rendering automatically on theme switch.
|
|
203
|
-
*
|
|
204
|
-
* Supports two APIs:
|
|
205
|
-
* - `icon` prop: Pass a LucideIcon component directly (bypasses family resolver
|
|
206
|
-
* — used for direct lucide component refs, stays in lucide regardless of theme)
|
|
207
|
-
* - `name` prop: Pass a canonical kebab-case name (family-aware, swaps on theme)
|
|
208
|
-
*/
|
|
209
|
-
|
|
210
|
-
type IconSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
211
|
-
type IconAnimation = 'spin' | 'pulse' | 'none';
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* Canonical icon-input type: a Lucide component reference OR a canonical
|
|
215
|
-
* kebab-case icon name string. The single source of truth for every
|
|
216
|
-
* icon-bearing prop across `@almadar/ui` — pattern-sync's parser maps this
|
|
217
|
-
* union to the `icon` config type, so the factory inspector renders an
|
|
218
|
-
* IconPicker and a string name resolves via `resolveIcon`. Never declare an
|
|
219
|
-
* icon prop as `React.ReactNode` (it collapses to a non-editable `node`).
|
|
220
|
-
*/
|
|
221
|
-
type IconInput = LucideIcon | string;
|
|
222
|
-
interface IconProps {
|
|
223
|
-
/**
|
|
224
|
-
* Lucide icon component (preferred for type-safe usage), OR a canonical
|
|
225
|
-
* kebab-case icon name string — a string is treated exactly like `name` so
|
|
226
|
-
* trait/factory authors can pass an icon by name through the `icon` prop.
|
|
227
|
-
*/
|
|
228
|
-
icon?: IconInput;
|
|
229
|
-
/** Icon name as string (resolved from iconMap) */
|
|
230
|
-
name?: string;
|
|
231
|
-
/** Size of the icon */
|
|
232
|
-
size?: IconSize;
|
|
233
|
-
/** Semantic palette token or an arbitrary Tailwind color class. */
|
|
234
|
-
color?: ColorToken | string;
|
|
235
|
-
/** Animation type */
|
|
236
|
-
animation?: IconAnimation;
|
|
237
|
-
/** Additional CSS classes */
|
|
238
|
-
className?: string;
|
|
239
|
-
/** Icon stroke width - uses theme default if not specified */
|
|
240
|
-
strokeWidth?: number;
|
|
241
|
-
/** Inline style */
|
|
242
|
-
style?: React.CSSProperties;
|
|
243
|
-
}
|
|
244
|
-
declare const Icon: React.FC<IconProps>;
|
|
245
|
-
|
|
246
|
-
type ButtonVariant = "primary" | "secondary" | "ghost" | "danger" | "success" | "warning" | "default";
|
|
247
|
-
type ButtonSize = "sm" | "md" | "lg";
|
|
248
|
-
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
249
|
-
/** Additional CSS classes applied to the root element. */
|
|
250
|
-
className?: string;
|
|
251
|
-
variant?: ButtonVariant;
|
|
252
|
-
size?: ButtonSize;
|
|
253
|
-
isLoading?: boolean;
|
|
254
|
-
/** Left icon: a Lucide component or a canonical icon name string (e.g. "plus", "trash"). */
|
|
255
|
-
leftIcon?: IconInput;
|
|
256
|
-
/** Right icon: a Lucide component or a canonical icon name string. */
|
|
257
|
-
rightIcon?: IconInput;
|
|
258
|
-
/** Alias for leftIcon */
|
|
259
|
-
icon?: IconInput;
|
|
260
|
-
/** Alias for rightIcon */
|
|
261
|
-
iconRight?: IconInput;
|
|
262
|
-
/** Declarative event name — emits UI:{action} via eventBus on click */
|
|
263
|
-
action?: EventKey;
|
|
264
|
-
/** Payload to include with the action event */
|
|
265
|
-
actionPayload?: EventPayload;
|
|
266
|
-
/** Button label text (alternative to children for schema-driven rendering) */
|
|
267
|
-
label?: string;
|
|
268
|
-
/** Disable the button (greys out, blocks click events) */
|
|
269
|
-
disabled?: boolean;
|
|
270
|
-
/** Test identifier for automated tests */
|
|
271
|
-
'data-testid'?: string;
|
|
272
|
-
}
|
|
273
|
-
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
274
|
-
|
|
275
|
-
type CardShadow = "none" | "sm" | "md" | "lg";
|
|
276
|
-
/**
|
|
277
|
-
* Layer 2 visual treatment for the card pattern — orthogonal to the semantic
|
|
278
|
-
* `variant` (which conveys role / state).
|
|
279
|
-
*/
|
|
280
|
-
type CardLook = "elevated" | "flat-bordered" | "borderless-divider" | "ticket" | "invoice" | "chip" | "tile-image-first";
|
|
281
|
-
interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
282
|
-
/** Additional CSS classes applied to the root element. */
|
|
283
|
-
className?: string;
|
|
284
|
-
variant?: "default" | "bordered" | "elevated" | "interactive";
|
|
285
|
-
padding?: "none" | "sm" | "md" | "lg";
|
|
286
|
-
/** Card title - renders in header if provided */
|
|
287
|
-
title?: string;
|
|
288
|
-
/** Card subtitle - renders below title */
|
|
289
|
-
subtitle?: string;
|
|
290
|
-
/** Shadow size override */
|
|
291
|
-
shadow?: CardShadow;
|
|
292
|
-
/** Layer 2 visual treatment — orthogonal to the semantic variant. */
|
|
293
|
-
look?: CardLook;
|
|
294
|
-
/** Card content */
|
|
295
|
-
children?: React.ReactNode;
|
|
296
|
-
/** Declarative event key emitted on click for trait dispatch */
|
|
297
|
-
action?: EventKey;
|
|
298
|
-
/** Shows a skeleton/spinner overlay while true. */
|
|
299
|
-
loading?: boolean;
|
|
300
|
-
}
|
|
301
|
-
declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
|
|
302
|
-
|
|
303
|
-
/**
|
|
304
|
-
* Divider Atom Component
|
|
305
|
-
*
|
|
306
|
-
* A divider component for separating content sections.
|
|
307
|
-
*/
|
|
308
|
-
|
|
309
|
-
type DividerOrientation = "horizontal" | "vertical";
|
|
310
|
-
type DividerVariant = "solid" | "dashed" | "dotted";
|
|
311
|
-
interface DividerProps {
|
|
312
|
-
/**
|
|
313
|
-
* Orientation of the divider
|
|
314
|
-
* @default 'horizontal'
|
|
315
|
-
*/
|
|
316
|
-
orientation?: DividerOrientation;
|
|
317
|
-
/**
|
|
318
|
-
* Text label to display in the divider
|
|
319
|
-
*/
|
|
320
|
-
label?: string;
|
|
321
|
-
/**
|
|
322
|
-
* Line style variant
|
|
323
|
-
* @default 'solid'
|
|
324
|
-
*/
|
|
325
|
-
variant?: DividerVariant;
|
|
326
|
-
/**
|
|
327
|
-
* Additional CSS classes
|
|
328
|
-
*/
|
|
329
|
-
className?: string;
|
|
330
|
-
}
|
|
331
|
-
declare const Divider: React.FC<DividerProps>;
|
|
332
|
-
|
|
333
|
-
interface SelectOption {
|
|
334
|
-
value: string;
|
|
335
|
-
label: string;
|
|
336
|
-
}
|
|
337
|
-
interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange"> {
|
|
338
|
-
/** Additional CSS classes applied to the root element. */
|
|
339
|
-
className?: string;
|
|
340
|
-
/** Placeholder text */
|
|
341
|
-
placeholder?: string;
|
|
342
|
-
/** Current value */
|
|
343
|
-
value?: string | number;
|
|
344
|
-
/** Whether input is disabled */
|
|
345
|
-
disabled?: boolean;
|
|
346
|
-
/** Declarative event name for trait dispatch */
|
|
347
|
-
action?: EventKey;
|
|
348
|
-
/** Input type - supports 'select' and 'textarea' in addition to standard types */
|
|
349
|
-
inputType?: "text" | "email" | "password" | "number" | "tel" | "url" | "search" | "date" | "datetime-local" | "time" | "checkbox" | "select" | "textarea";
|
|
350
|
-
label?: string;
|
|
351
|
-
helperText?: string;
|
|
352
|
-
error?: string;
|
|
353
|
-
leftIcon?: IconInput;
|
|
354
|
-
rightIcon?: IconInput;
|
|
355
|
-
/** Lucide icon component or canonical kebab-case icon name string for left side */
|
|
356
|
-
icon?: IconInput;
|
|
357
|
-
/** Show clear button when input has value */
|
|
358
|
-
clearable?: boolean;
|
|
359
|
-
/** Callback or declarative event key when clear button is clicked */
|
|
360
|
-
onClear?: (() => void) | EventKey;
|
|
361
|
-
/** Options for select type */
|
|
362
|
-
options?: SelectOption[];
|
|
363
|
-
/** Rows for textarea type */
|
|
364
|
-
rows?: number;
|
|
365
|
-
/** onChange handler or declarative event key for trait dispatch */
|
|
366
|
-
onChange?: React.ChangeEventHandler<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement> | EventKey;
|
|
367
|
-
}
|
|
368
|
-
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLSelectElement | HTMLInputElement | HTMLTextAreaElement>>;
|
|
369
|
-
|
|
370
|
-
/**
|
|
371
|
-
* DocSidebar — collapsible documentation navigation sidebar.
|
|
372
|
-
* Renders a nested item tree with expand/collapse per category and active-item
|
|
373
|
-
* highlighting. Not a generic nav; it owns doc-site-specific UX (uppercase
|
|
374
|
-
* category headers, indented children, active highlight).
|
|
375
|
-
*/
|
|
376
|
-
|
|
377
|
-
interface DocSidebarItem {
|
|
378
|
-
/** Display label */
|
|
379
|
-
label: string;
|
|
380
|
-
/** Navigation href */
|
|
381
|
-
href?: string;
|
|
382
|
-
/** Nested child items (makes this a collapsible category) */
|
|
383
|
-
items?: DocSidebarItem[];
|
|
384
|
-
/** Whether this item is currently active */
|
|
385
|
-
active?: boolean;
|
|
386
|
-
}
|
|
387
|
-
interface DocSidebarProps {
|
|
388
|
-
/** Sidebar navigation items */
|
|
389
|
-
items: DocSidebarItem[];
|
|
390
|
-
/** Additional CSS classes */
|
|
391
|
-
className?: string;
|
|
392
|
-
}
|
|
393
|
-
declare const DocSidebar: React.FC<DocSidebarProps>;
|
|
394
|
-
|
|
395
|
-
/**
|
|
396
|
-
* DocTOC Molecule Component
|
|
397
|
-
*
|
|
398
|
-
* A table of contents component with active section highlighting.
|
|
399
|
-
* Composes from Box, VStack, and Typography atoms.
|
|
400
|
-
*/
|
|
401
|
-
|
|
402
|
-
interface DocTOCItem {
|
|
403
|
-
/** Heading element id to link to */
|
|
404
|
-
id: string;
|
|
405
|
-
/** Display label */
|
|
406
|
-
label: string;
|
|
407
|
-
/** Heading level: 2 for h2, 3 for h3, etc. */
|
|
408
|
-
level: number;
|
|
409
|
-
}
|
|
410
|
-
interface DocTOCProps {
|
|
411
|
-
/** Table of contents items */
|
|
412
|
-
items: DocTOCItem[];
|
|
413
|
-
/** Currently active section id */
|
|
414
|
-
activeId?: string;
|
|
415
|
-
/** Additional CSS classes */
|
|
416
|
-
className?: string;
|
|
417
|
-
}
|
|
418
|
-
declare const DocTOC: React.FC<DocTOCProps>;
|
|
419
|
-
|
|
420
|
-
/**
|
|
421
|
-
* DocBreadcrumb Molecule Component
|
|
422
|
-
*
|
|
423
|
-
* A breadcrumb navigation component for documentation pages.
|
|
424
|
-
* Composes from HStack, Typography, and Icon atoms.
|
|
425
|
-
*/
|
|
426
|
-
|
|
427
|
-
interface DocBreadcrumbItem {
|
|
428
|
-
/** Display label */
|
|
429
|
-
label: string;
|
|
430
|
-
/** Navigation href (omit for the current/last item) */
|
|
431
|
-
href?: string;
|
|
432
|
-
}
|
|
433
|
-
interface DocBreadcrumbProps {
|
|
434
|
-
/** Breadcrumb path items, last item is treated as current page */
|
|
435
|
-
items: DocBreadcrumbItem[];
|
|
436
|
-
/** Additional CSS classes */
|
|
437
|
-
className?: string;
|
|
438
|
-
}
|
|
439
|
-
declare const DocBreadcrumb: React.FC<DocBreadcrumbProps>;
|
|
440
|
-
|
|
441
|
-
/**
|
|
442
|
-
* CodeBlock Molecule Component
|
|
443
|
-
*
|
|
444
|
-
* A syntax-highlighted code block with copy-to-clipboard functionality.
|
|
445
|
-
* Preserves scroll position during re-renders.
|
|
446
|
-
*
|
|
447
|
-
* Event Contract:
|
|
448
|
-
* - Emits: UI:COPY_CODE { language, success }
|
|
449
|
-
*/
|
|
450
|
-
|
|
451
|
-
/**
|
|
452
|
-
* The set of languages with a registered PrismLight grammar (above) plus the
|
|
453
|
-
* `.orb`/`.lolo` grammars from `@almadar/syntax`. Authoritative: an unregistered
|
|
454
|
-
* value renders as plain text, so this union mirrors the `registerLanguage`
|
|
455
|
-
* calls exactly.
|
|
456
|
-
*/
|
|
457
|
-
declare const CODE_LANGUAGES: readonly ["text", "json", "javascript", "js", "typescript", "ts", "jsx", "tsx", "css", "markdown", "md", "bash", "shell", "sh", "yaml", "yml", "rust", "python", "py", "sql", "diff", "toml", "go", "graphql", "html", "xml", "orb", "lolo"];
|
|
458
|
-
type CodeLanguage = (typeof CODE_LANGUAGES)[number];
|
|
459
|
-
type CodeViewerMode = 'code' | 'diff';
|
|
460
|
-
interface DiffLine {
|
|
461
|
-
type: 'add' | 'remove' | 'context';
|
|
462
|
-
content: string;
|
|
463
|
-
lineNumber?: number;
|
|
464
|
-
}
|
|
465
|
-
interface CodeViewerAction {
|
|
466
|
-
label: string;
|
|
467
|
-
event?: string;
|
|
468
|
-
navigatesTo?: string;
|
|
469
|
-
variant?: 'primary' | 'secondary' | 'ghost';
|
|
470
|
-
}
|
|
471
|
-
interface CodeViewerFile {
|
|
472
|
-
label: string;
|
|
473
|
-
code: string;
|
|
474
|
-
language?: CodeLanguage;
|
|
475
|
-
}
|
|
476
|
-
interface CodeBlockProps {
|
|
477
|
-
/** The code content to display */
|
|
478
|
-
code?: string;
|
|
479
|
-
/** Programming language for syntax highlighting */
|
|
480
|
-
language?: CodeLanguage;
|
|
481
|
-
/** Show the copy button */
|
|
482
|
-
showCopyButton?: boolean;
|
|
483
|
-
/** Show the language badge */
|
|
484
|
-
showLanguageBadge?: boolean;
|
|
485
|
-
/** Maximum height before scrolling */
|
|
486
|
-
maxHeight?: string | number;
|
|
487
|
-
/** Enable brace-based code folding of multi-line `{}`/`[]` blocks (default: true). */
|
|
488
|
-
foldable?: boolean;
|
|
489
|
-
/** Additional CSS classes */
|
|
490
|
-
className?: string;
|
|
491
|
-
/**
|
|
492
|
-
* When true, render an editable surface that composes a transparent `Textarea`
|
|
493
|
-
* over a Prism-highlighted overlay. The overlay re-tokenizes on each keystroke
|
|
494
|
-
* (driven from a local mirror of the textarea value), so users see syntax-highlighted
|
|
495
|
-
* code while still being able to type. Folding is skipped in editable mode.
|
|
496
|
-
*
|
|
497
|
-
* History: GAP-51 first-cut shipped plain (no-highlighting) editable text;
|
|
498
|
-
* GAP-77 (2026-04-12) added the Prism overlay layer.
|
|
499
|
-
*
|
|
500
|
-
* Default: false (existing read-only behavior unchanged).
|
|
501
|
-
*/
|
|
502
|
-
editable?: boolean;
|
|
503
|
-
/**
|
|
504
|
-
* GAP-51: called with the new code on every keystroke when `editable === true`.
|
|
505
|
-
* Consumers should debounce + parse downstream — `CodeBlock` does not.
|
|
506
|
-
*/
|
|
507
|
-
onChange?: (code: string) => void;
|
|
508
|
-
/**
|
|
509
|
-
* GAP-80: line-level error/warning highlights for editable mode.
|
|
510
|
-
* Map of 1-based line number → severity. The overlay paints a colored
|
|
511
|
-
* background on each line: error = red, warning = yellow. Pass undefined
|
|
512
|
-
* (default) to disable. The consumer is responsible for computing the
|
|
513
|
-
* path → line map from the schema + validation results.
|
|
514
|
-
*/
|
|
515
|
-
errorLines?: Map<number, 'error' | 'warning'>;
|
|
516
|
-
/** Title shown in the toolbar */
|
|
517
|
-
title?: string;
|
|
518
|
-
/** Diff or plain-code display mode */
|
|
519
|
-
mode?: CodeViewerMode;
|
|
520
|
-
/** Pre-computed diff lines */
|
|
521
|
-
diff?: readonly DiffLine[];
|
|
522
|
-
/** Old source text — generates diff when combined with newValue */
|
|
523
|
-
oldValue?: string;
|
|
524
|
-
/** New source text — generates diff when combined with oldValue */
|
|
525
|
-
newValue?: string;
|
|
526
|
-
/** Show line numbers in code / diff mode */
|
|
527
|
-
showLineNumbers?: boolean;
|
|
528
|
-
/** Enable word-wrap in code / diff mode */
|
|
529
|
-
wordWrap?: boolean;
|
|
530
|
-
/** Multiple files shown as tabs */
|
|
531
|
-
files?: readonly CodeViewerFile[];
|
|
532
|
-
/** Action badges in the toolbar */
|
|
533
|
-
actions?: readonly CodeViewerAction[];
|
|
534
|
-
/** Loading state */
|
|
535
|
-
isLoading?: boolean;
|
|
536
|
-
/** Error state */
|
|
537
|
-
error?: UiError | null;
|
|
538
|
-
/** Show copy button (viewer alias for showCopyButton) */
|
|
539
|
-
showCopy?: boolean;
|
|
540
|
-
}
|
|
541
|
-
declare const CodeBlock: React.NamedExoticComponent<CodeBlockProps>;
|
|
542
|
-
|
|
543
|
-
interface DocPaginationLink {
|
|
544
|
-
label: string;
|
|
545
|
-
href: string;
|
|
546
|
-
category?: string;
|
|
547
|
-
}
|
|
548
|
-
interface DocPaginationProps {
|
|
549
|
-
/** Previous page link */
|
|
550
|
-
prev?: DocPaginationLink;
|
|
551
|
-
/** Next page link */
|
|
552
|
-
next?: DocPaginationLink;
|
|
553
|
-
/** Additional class names */
|
|
554
|
-
className?: string;
|
|
555
|
-
}
|
|
556
|
-
declare function DocPagination({ prev, next, className }: DocPaginationProps): react_jsx_runtime.JSX.Element | null;
|
|
557
|
-
|
|
558
|
-
interface DocSearchResult {
|
|
559
|
-
title: string;
|
|
560
|
-
href: string;
|
|
561
|
-
excerpt?: string;
|
|
562
|
-
category?: string;
|
|
563
|
-
}
|
|
564
|
-
interface DocSearchProps {
|
|
565
|
-
/** Placeholder text for the input */
|
|
566
|
-
placeholder?: string;
|
|
567
|
-
/** Callback invoked with the search query, returns results */
|
|
568
|
-
onSearch?: (query: string) => DocSearchResult[] | Promise<DocSearchResult[]>;
|
|
569
|
-
/** Additional class names */
|
|
570
|
-
className?: string;
|
|
571
|
-
}
|
|
572
|
-
declare function DocSearch({ placeholder, onSearch, className, }: DocSearchProps): react_jsx_runtime.JSX.Element;
|
|
573
|
-
|
|
574
|
-
export { Box, Button, Card, Divider, DocBreadcrumb, type DocBreadcrumbItem, type DocBreadcrumbProps, CodeBlock as DocCodeBlock, type CodeBlockProps as DocCodeBlockProps, DocPagination, type DocPaginationProps, DocSearch, type DocSearchProps, type DocSearchResult, DocSidebar, type DocSidebarItem, type DocSidebarProps, DocTOC, type DocTOCItem, type DocTOCProps, HStack, Icon, Input, Typography, VStack };
|
package/dist/docs/index.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @almadar/ui/docs
|
|
3
|
-
*
|
|
4
|
-
* SSR-safe subset of @almadar/ui for documentation sites.
|
|
5
|
-
* Contains doc-specific molecules composed from @almadar/ui atoms.
|
|
6
|
-
* Designed to eventually replace Docusaurus's built-in doc components.
|
|
7
|
-
*
|
|
8
|
-
* Atoms are re-exported from @almadar/ui/marketing for convenience.
|
|
9
|
-
*/
|
|
10
|
-
export { Box } from '../components/core/atoms/Box';
|
|
11
|
-
export { VStack, HStack } from '../components/core/atoms/Stack';
|
|
12
|
-
export { Typography } from '../components/core/atoms/Typography';
|
|
13
|
-
export { Button } from '../components/core/atoms/Button';
|
|
14
|
-
export { Icon } from '../components/core/atoms/Icon';
|
|
15
|
-
export { Card } from '../components/core/atoms/Card';
|
|
16
|
-
export { Divider } from '../components/core/atoms/Divider';
|
|
17
|
-
export { Input } from '../components/core/atoms/Input';
|
|
18
|
-
export { DocSidebar } from '../components/core/molecules/DocSidebar';
|
|
19
|
-
export type { DocSidebarProps, DocSidebarItem } from '../components/core/molecules/DocSidebar';
|
|
20
|
-
export { DocTOC } from '../components/core/molecules/DocTOC';
|
|
21
|
-
export type { DocTOCProps, DocTOCItem } from '../components/core/molecules/DocTOC';
|
|
22
|
-
export { DocBreadcrumb } from '../components/core/molecules/DocBreadcrumb';
|
|
23
|
-
export type { DocBreadcrumbProps, DocBreadcrumbItem } from '../components/core/molecules/DocBreadcrumb';
|
|
24
|
-
export { CodeBlock as DocCodeBlock } from '../components/core/molecules/markdown/CodeBlock';
|
|
25
|
-
export type { CodeBlockProps as DocCodeBlockProps } from '../components/core/molecules/markdown/CodeBlock';
|
|
26
|
-
export { DocPagination } from '../components/core/molecules/DocPagination';
|
|
27
|
-
export type { DocPaginationProps } from '../components/core/molecules/DocPagination';
|
|
28
|
-
export { DocSearch } from '../components/core/molecules/DocSearch';
|
|
29
|
-
export type { DocSearchProps, DocSearchResult } from '../components/core/molecules/DocSearch';
|