@almadar/ui 2.14.0 → 2.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-M7MOIE46.js → chunk-2KQPOTRM.js} +1 -1
- package/dist/{chunk-SKWPSQHQ.js → chunk-FP3PNF7I.js} +22 -10
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- 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,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* JazariStateMachine — Al-Jazari themed state machine diagram.
|
|
3
|
+
*
|
|
4
|
+
* Thin wrapper around StateMachineView that:
|
|
5
|
+
* 1. Extracts a state machine from an orbital schema (or accepts a trait directly)
|
|
6
|
+
* 2. Converts it to DomLayoutData via the visualizer lib
|
|
7
|
+
* 3. Applies Al-Jazari brass/gold/lapis color theme
|
|
8
|
+
* 4. Renders gear-shaped state nodes via the renderStateNode prop
|
|
9
|
+
*/
|
|
10
|
+
import React from 'react';
|
|
11
|
+
import type { EntityDisplayProps } from './types';
|
|
12
|
+
interface SmState {
|
|
13
|
+
name: string;
|
|
14
|
+
isInitial?: boolean;
|
|
15
|
+
isTerminal?: boolean;
|
|
16
|
+
isFinal?: boolean;
|
|
17
|
+
}
|
|
18
|
+
interface SmTransition {
|
|
19
|
+
from: string;
|
|
20
|
+
to: string;
|
|
21
|
+
event: string;
|
|
22
|
+
guard?: unknown;
|
|
23
|
+
effects?: unknown[];
|
|
24
|
+
}
|
|
25
|
+
interface SmStateMachine {
|
|
26
|
+
states: SmState[];
|
|
27
|
+
transitions: SmTransition[];
|
|
28
|
+
}
|
|
29
|
+
interface SmTrait {
|
|
30
|
+
name: string;
|
|
31
|
+
stateMachine?: SmStateMachine;
|
|
32
|
+
linkedEntity?: string;
|
|
33
|
+
}
|
|
34
|
+
interface SmEntity {
|
|
35
|
+
name: string;
|
|
36
|
+
fields?: Array<{
|
|
37
|
+
name: string;
|
|
38
|
+
}>;
|
|
39
|
+
}
|
|
40
|
+
interface SmOrbital {
|
|
41
|
+
entity?: SmEntity;
|
|
42
|
+
traits?: SmTrait[];
|
|
43
|
+
}
|
|
44
|
+
interface SmSchema {
|
|
45
|
+
orbitals?: SmOrbital[];
|
|
46
|
+
}
|
|
47
|
+
export interface JazariStateMachineProps extends EntityDisplayProps<SmSchema> {
|
|
48
|
+
/** Full schema — extracts first trait's state machine */
|
|
49
|
+
schema?: SmSchema;
|
|
50
|
+
/** Or pass a single trait directly */
|
|
51
|
+
trait?: SmTrait;
|
|
52
|
+
/** Which trait to visualize (default: 0) */
|
|
53
|
+
traitIndex?: number;
|
|
54
|
+
/** Override entity field labels */
|
|
55
|
+
entityFields?: string[];
|
|
56
|
+
/** Text direction (default: 'ltr') */
|
|
57
|
+
direction?: 'ltr' | 'rtl';
|
|
58
|
+
}
|
|
59
|
+
export declare const JazariStateMachine: React.FC<JazariStateMachineProps>;
|
|
60
|
+
export {};
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Layout Pattern Components
|
|
3
|
+
*
|
|
4
|
+
* Pattern wrappers for layout components that support recursive rendering
|
|
5
|
+
* of nested patterns via the `children` prop.
|
|
6
|
+
*
|
|
7
|
+
* These components bridge the shell's layout primitives (Stack, Box, Grid, etc.)
|
|
8
|
+
* with the pattern system's recursive rendering capability.
|
|
9
|
+
*
|
|
10
|
+
* @packageDocumentation
|
|
11
|
+
*/
|
|
12
|
+
import React from 'react';
|
|
13
|
+
import { type StackGap, type StackAlign, type StackJustify } from '../atoms/Stack';
|
|
14
|
+
import { type BoxPadding, type BoxBg, type BoxRounded, type BoxShadow } from '../atoms/Box';
|
|
15
|
+
import { type GridCols, type GridGap, type ResponsiveGridCols } from '../molecules/Grid';
|
|
16
|
+
import { type DividerVariant, type DividerOrientation } from '../atoms/Divider';
|
|
17
|
+
/**
|
|
18
|
+
* Base props for all layout patterns with children support.
|
|
19
|
+
*/
|
|
20
|
+
export interface LayoutPatternProps {
|
|
21
|
+
/** Nested pattern configurations - rendered recursively */
|
|
22
|
+
children?: React.ReactNode;
|
|
23
|
+
/** Additional CSS classes */
|
|
24
|
+
className?: string;
|
|
25
|
+
/** Inline styles */
|
|
26
|
+
style?: React.CSSProperties;
|
|
27
|
+
/** Loading state */
|
|
28
|
+
isLoading?: boolean;
|
|
29
|
+
/** Error state */
|
|
30
|
+
error?: Error | null;
|
|
31
|
+
/** Entity name */
|
|
32
|
+
entity?: string;
|
|
33
|
+
}
|
|
34
|
+
export interface VStackPatternProps extends LayoutPatternProps {
|
|
35
|
+
/** Gap between children */
|
|
36
|
+
gap?: StackGap;
|
|
37
|
+
/** Cross-axis alignment */
|
|
38
|
+
align?: StackAlign;
|
|
39
|
+
/** Main-axis alignment */
|
|
40
|
+
justify?: StackJustify;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* VStack pattern component.
|
|
44
|
+
*
|
|
45
|
+
* Renders children in a vertical stack with configurable spacing.
|
|
46
|
+
*/
|
|
47
|
+
export declare function VStackPattern({ gap, align, justify, className, style, children, }: VStackPatternProps): React.ReactElement;
|
|
48
|
+
export declare namespace VStackPattern {
|
|
49
|
+
var displayName: string;
|
|
50
|
+
}
|
|
51
|
+
export interface HStackPatternProps extends LayoutPatternProps {
|
|
52
|
+
/** Gap between children */
|
|
53
|
+
gap?: StackGap;
|
|
54
|
+
/** Cross-axis alignment */
|
|
55
|
+
align?: StackAlign;
|
|
56
|
+
/** Main-axis alignment */
|
|
57
|
+
justify?: StackJustify;
|
|
58
|
+
/** Enable wrapping */
|
|
59
|
+
wrap?: boolean;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* HStack pattern component.
|
|
63
|
+
*
|
|
64
|
+
* Renders children in a horizontal stack with configurable spacing.
|
|
65
|
+
*/
|
|
66
|
+
export declare function HStackPattern({ gap, align, justify, wrap, className, style, children, }: HStackPatternProps): React.ReactElement;
|
|
67
|
+
export declare namespace HStackPattern {
|
|
68
|
+
var displayName: string;
|
|
69
|
+
}
|
|
70
|
+
export interface BoxPatternProps extends LayoutPatternProps {
|
|
71
|
+
/** Padding shorthand */
|
|
72
|
+
p?: BoxPadding;
|
|
73
|
+
/** Margin shorthand */
|
|
74
|
+
m?: BoxPadding;
|
|
75
|
+
/** Background color token */
|
|
76
|
+
bg?: BoxBg;
|
|
77
|
+
/** Show border */
|
|
78
|
+
border?: boolean;
|
|
79
|
+
/** Border radius */
|
|
80
|
+
radius?: BoxRounded;
|
|
81
|
+
/** Shadow level */
|
|
82
|
+
shadow?: BoxShadow;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Box pattern component.
|
|
86
|
+
*
|
|
87
|
+
* Generic styled container with theming support.
|
|
88
|
+
*/
|
|
89
|
+
export declare function BoxPattern({ p, m, bg, border, radius, shadow, className, style, children, }: BoxPatternProps): React.ReactElement;
|
|
90
|
+
export declare namespace BoxPattern {
|
|
91
|
+
var displayName: string;
|
|
92
|
+
}
|
|
93
|
+
export interface GridPatternProps extends LayoutPatternProps {
|
|
94
|
+
/** Number of columns */
|
|
95
|
+
cols?: GridCols | ResponsiveGridCols;
|
|
96
|
+
/** Gap between cells */
|
|
97
|
+
gap?: GridGap;
|
|
98
|
+
/** Row gap override */
|
|
99
|
+
rowGap?: GridGap;
|
|
100
|
+
/** Column gap override */
|
|
101
|
+
colGap?: GridGap;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Grid pattern component.
|
|
105
|
+
*
|
|
106
|
+
* CSS Grid layout for multi-column content.
|
|
107
|
+
*/
|
|
108
|
+
export declare function GridPattern({ cols, gap, rowGap, colGap, className, style, children, }: GridPatternProps): React.ReactElement;
|
|
109
|
+
export declare namespace GridPattern {
|
|
110
|
+
var displayName: string;
|
|
111
|
+
}
|
|
112
|
+
export interface CenterPatternProps extends LayoutPatternProps {
|
|
113
|
+
/** Minimum height */
|
|
114
|
+
minHeight?: string;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Center pattern component.
|
|
118
|
+
*
|
|
119
|
+
* Centers content horizontally and vertically.
|
|
120
|
+
*/
|
|
121
|
+
export declare function CenterPattern({ minHeight, className, style, children, }: CenterPatternProps): React.ReactElement;
|
|
122
|
+
export declare namespace CenterPattern {
|
|
123
|
+
var displayName: string;
|
|
124
|
+
}
|
|
125
|
+
export interface SpacerPatternProps {
|
|
126
|
+
/** Size or 'flex' for flexible */
|
|
127
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'flex';
|
|
128
|
+
/** Additional CSS classes */
|
|
129
|
+
className?: string;
|
|
130
|
+
/** Loading state */
|
|
131
|
+
isLoading?: boolean;
|
|
132
|
+
/** Error state */
|
|
133
|
+
error?: Error | null;
|
|
134
|
+
/** Entity name */
|
|
135
|
+
entity?: string;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Spacer pattern component.
|
|
139
|
+
*
|
|
140
|
+
* Flexible space that expands or has fixed size.
|
|
141
|
+
*/
|
|
142
|
+
export declare function SpacerPattern({ size }: SpacerPatternProps): React.ReactElement;
|
|
143
|
+
export declare namespace SpacerPattern {
|
|
144
|
+
var displayName: string;
|
|
145
|
+
}
|
|
146
|
+
export interface DividerPatternProps {
|
|
147
|
+
/** Orientation */
|
|
148
|
+
orientation?: DividerOrientation;
|
|
149
|
+
/** Line style */
|
|
150
|
+
variant?: DividerVariant;
|
|
151
|
+
/** Color token */
|
|
152
|
+
color?: string;
|
|
153
|
+
/** Spacing around divider */
|
|
154
|
+
spacing?: 'xs' | 'sm' | 'md' | 'lg';
|
|
155
|
+
/** Additional CSS classes */
|
|
156
|
+
className?: string;
|
|
157
|
+
/** Loading state */
|
|
158
|
+
isLoading?: boolean;
|
|
159
|
+
/** Error state */
|
|
160
|
+
error?: Error | null;
|
|
161
|
+
/** Entity name */
|
|
162
|
+
entity?: string;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Divider pattern component.
|
|
166
|
+
*
|
|
167
|
+
* Visual separator between sections.
|
|
168
|
+
*/
|
|
169
|
+
export declare function DividerPattern({ orientation, variant, spacing, }: DividerPatternProps): React.ReactElement;
|
|
170
|
+
export declare namespace DividerPattern {
|
|
171
|
+
var displayName: string;
|
|
172
|
+
}
|
|
173
|
+
export declare const LAYOUT_PATTERNS: {
|
|
174
|
+
readonly vstack: typeof VStackPattern;
|
|
175
|
+
readonly hstack: typeof HStackPattern;
|
|
176
|
+
readonly box: typeof BoxPattern;
|
|
177
|
+
readonly grid: typeof GridPattern;
|
|
178
|
+
readonly center: typeof CenterPattern;
|
|
179
|
+
readonly spacer: typeof SpacerPattern;
|
|
180
|
+
readonly divider: typeof DividerPattern;
|
|
181
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List Organism Component
|
|
3
|
+
*
|
|
4
|
+
* A beautifully designed, scannable list view.
|
|
5
|
+
*
|
|
6
|
+
* Design inspiration: Linear, Notion, Apple Reminders
|
|
7
|
+
* - Soft, harmonious color palette
|
|
8
|
+
* - Refined typography with proper hierarchy
|
|
9
|
+
* - Subtle shadows and depth
|
|
10
|
+
* - Delightful hover micro-interactions
|
|
11
|
+
* - Elegant status indicators
|
|
12
|
+
*
|
|
13
|
+
* Closed Circuit Compliance (Dumb Organism):
|
|
14
|
+
* - Receives ALL data via props (no internal fetch)
|
|
15
|
+
* - Emits events via useEventBus (UI:SELECT, UI:DESELECT, UI:VIEW)
|
|
16
|
+
* - Never listens to events — only emits
|
|
17
|
+
* - No internal search/filter state — trait provides filtered data
|
|
18
|
+
*/
|
|
19
|
+
import React from "react";
|
|
20
|
+
import type { LucideIcon } from "lucide-react";
|
|
21
|
+
import { type MenuItem } from "../molecules/Menu";
|
|
22
|
+
import type { EntityDisplayProps } from "./types";
|
|
23
|
+
export interface ListItem {
|
|
24
|
+
id: string;
|
|
25
|
+
title?: string;
|
|
26
|
+
description?: string;
|
|
27
|
+
icon?: LucideIcon;
|
|
28
|
+
avatar?: {
|
|
29
|
+
src?: string;
|
|
30
|
+
alt?: string;
|
|
31
|
+
initials?: string;
|
|
32
|
+
};
|
|
33
|
+
badge?: string | number;
|
|
34
|
+
metadata?: React.ReactNode;
|
|
35
|
+
onClick?: () => void;
|
|
36
|
+
disabled?: boolean;
|
|
37
|
+
completed?: boolean;
|
|
38
|
+
[key: string]: unknown;
|
|
39
|
+
_fields?: Record<string, unknown>;
|
|
40
|
+
}
|
|
41
|
+
export interface SchemaItemAction {
|
|
42
|
+
label: string;
|
|
43
|
+
/** Event to dispatch on click */
|
|
44
|
+
event?: string;
|
|
45
|
+
navigatesTo?: string;
|
|
46
|
+
/** Action placement - accepts all common placement values */
|
|
47
|
+
placement?: "row" | "bulk" | "card" | "footer" | string;
|
|
48
|
+
action?: string;
|
|
49
|
+
variant?: "primary" | "secondary" | "ghost" | "danger" | "default";
|
|
50
|
+
/** Click handler from generated code */
|
|
51
|
+
onClick?: (row: unknown) => void;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Field definition - can be a simple string or object with key/header or name/label
|
|
55
|
+
*/
|
|
56
|
+
export type FieldDef = string | {
|
|
57
|
+
key?: string;
|
|
58
|
+
header?: string;
|
|
59
|
+
name?: string;
|
|
60
|
+
label?: string;
|
|
61
|
+
};
|
|
62
|
+
export interface ListProps extends EntityDisplayProps {
|
|
63
|
+
/** Entity type name for display */
|
|
64
|
+
entityType?: string;
|
|
65
|
+
selectable?: boolean;
|
|
66
|
+
/** Item actions - schema-driven or function-based */
|
|
67
|
+
itemActions?: ((item: ListItem) => MenuItem[]) | readonly SchemaItemAction[];
|
|
68
|
+
showDividers?: boolean;
|
|
69
|
+
variant?: "default" | "card";
|
|
70
|
+
emptyMessage?: string;
|
|
71
|
+
renderItem?: (item: ListItem, index: number) => React.ReactNode;
|
|
72
|
+
children?: React.ReactNode;
|
|
73
|
+
/** Fields to display - accepts string[] or {key, header}[] for unified interface */
|
|
74
|
+
fields: readonly FieldDef[];
|
|
75
|
+
/** Alias for fields - backwards compatibility */
|
|
76
|
+
fieldNames?: readonly string[];
|
|
77
|
+
}
|
|
78
|
+
export declare const List: React.FC<ListProps>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MasterDetail Component
|
|
3
|
+
*
|
|
4
|
+
* A layout pattern that shows a list/table of entities.
|
|
5
|
+
* This is a thin wrapper around DataTable that accepts master-detail specific props.
|
|
6
|
+
*
|
|
7
|
+
* The `entity` prop carries the data array (injected by the runtime).
|
|
8
|
+
* The "detail" part is typically rendered separately via another render_ui effect
|
|
9
|
+
* to a sidebar or detail panel when an item is selected.
|
|
10
|
+
*/
|
|
11
|
+
import React from 'react';
|
|
12
|
+
import type { EntityDisplayProps } from './types';
|
|
13
|
+
export interface MasterDetailProps<T extends {
|
|
14
|
+
id: string | number;
|
|
15
|
+
} = {
|
|
16
|
+
id: string | number;
|
|
17
|
+
}> extends EntityDisplayProps<T> {
|
|
18
|
+
/** Fields to show in the master list (maps to DataTable columns) */
|
|
19
|
+
masterFields: readonly string[];
|
|
20
|
+
/** Fields for detail view (passed through but typically handled by separate render_ui) */
|
|
21
|
+
detailFields?: readonly string[];
|
|
22
|
+
/** Loading state (alias for isLoading) */
|
|
23
|
+
loading?: boolean;
|
|
24
|
+
}
|
|
25
|
+
export declare function MasterDetail<T extends {
|
|
26
|
+
id: string | number;
|
|
27
|
+
}>({ entity, masterFields, detailFields: _detailFields, // Captured but not used here - detail handled separately
|
|
28
|
+
loading: externalLoading, isLoading: externalIsLoading, error: externalError, className, ...rest }: MasterDetailProps<T>): React.ReactElement;
|
|
29
|
+
export declare namespace MasterDetail {
|
|
30
|
+
var displayName: string;
|
|
31
|
+
}
|
|
32
|
+
export default MasterDetail;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MediaGallery Organism Component
|
|
3
|
+
*
|
|
4
|
+
* A gallery component for displaying images and media in a grid layout.
|
|
5
|
+
* Supports lightbox viewing, selection, and upload interactions.
|
|
6
|
+
*
|
|
7
|
+
* Orbital Component Interface Compliance:
|
|
8
|
+
* - Entity binding with auto-fetch when entity is a string
|
|
9
|
+
* - Event emission via useEventBus (UI:* events)
|
|
10
|
+
* - isLoading and error state props
|
|
11
|
+
* - className for external styling
|
|
12
|
+
*/
|
|
13
|
+
import React from "react";
|
|
14
|
+
import type { EntityDisplayProps } from "./types";
|
|
15
|
+
export interface MediaItem {
|
|
16
|
+
/** Unique identifier */
|
|
17
|
+
id: string;
|
|
18
|
+
/** Media URL */
|
|
19
|
+
src: string;
|
|
20
|
+
/** Alt text */
|
|
21
|
+
alt?: string;
|
|
22
|
+
/** Thumbnail URL (defaults to src) */
|
|
23
|
+
thumbnail?: string;
|
|
24
|
+
/** Media type */
|
|
25
|
+
mediaType?: "image" | "video";
|
|
26
|
+
/** Caption */
|
|
27
|
+
caption?: string;
|
|
28
|
+
/** File size */
|
|
29
|
+
fileSize?: string;
|
|
30
|
+
}
|
|
31
|
+
export interface MediaGalleryAction {
|
|
32
|
+
label: string;
|
|
33
|
+
event?: string;
|
|
34
|
+
navigatesTo?: string;
|
|
35
|
+
variant?: "primary" | "secondary" | "ghost";
|
|
36
|
+
}
|
|
37
|
+
export interface MediaGalleryProps extends EntityDisplayProps<MediaItem> {
|
|
38
|
+
/** Gallery title */
|
|
39
|
+
title?: string;
|
|
40
|
+
/** Media items */
|
|
41
|
+
items?: readonly MediaItem[];
|
|
42
|
+
/** Column count */
|
|
43
|
+
columns?: 2 | 3 | 4 | 5 | 6;
|
|
44
|
+
/** Enable item selection */
|
|
45
|
+
selectable?: boolean;
|
|
46
|
+
/** Selected item IDs */
|
|
47
|
+
selectedItems?: readonly string[];
|
|
48
|
+
/** Event name emitted when selection changes (emitted as UI:{selectionEvent}) */
|
|
49
|
+
selectionEvent?: string;
|
|
50
|
+
/** Show upload button */
|
|
51
|
+
showUpload?: boolean;
|
|
52
|
+
/** Actions */
|
|
53
|
+
actions?: readonly MediaGalleryAction[];
|
|
54
|
+
/** Aspect ratio for thumbnails */
|
|
55
|
+
aspectRatio?: "square" | "landscape" | "portrait";
|
|
56
|
+
}
|
|
57
|
+
export declare const MediaGallery: React.FC<MediaGalleryProps>;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Meter Organism Component
|
|
3
|
+
*
|
|
4
|
+
* A gauge/meter component for displaying a value within a range.
|
|
5
|
+
* Supports linear, radial, and segmented display modes.
|
|
6
|
+
*
|
|
7
|
+
* Orbital Component Interface Compliance:
|
|
8
|
+
* - Entity binding with auto-fetch when entity is a string
|
|
9
|
+
* - Event emission via useEventBus (UI:* events)
|
|
10
|
+
* - isLoading and error state props
|
|
11
|
+
* - className for external styling
|
|
12
|
+
*/
|
|
13
|
+
import React from "react";
|
|
14
|
+
export type MeterVariant = "linear" | "radial" | "segmented";
|
|
15
|
+
export interface MeterThreshold {
|
|
16
|
+
value: number;
|
|
17
|
+
color: string;
|
|
18
|
+
label?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface MeterAction {
|
|
21
|
+
label: string;
|
|
22
|
+
event?: string;
|
|
23
|
+
navigatesTo?: string;
|
|
24
|
+
variant?: "primary" | "secondary" | "ghost";
|
|
25
|
+
}
|
|
26
|
+
export interface MeterProps {
|
|
27
|
+
/** Current value */
|
|
28
|
+
value: number;
|
|
29
|
+
/** Minimum value */
|
|
30
|
+
min?: number;
|
|
31
|
+
/** Maximum value */
|
|
32
|
+
max?: number;
|
|
33
|
+
/** Display label */
|
|
34
|
+
label?: string;
|
|
35
|
+
/** Unit suffix (e.g., '%', 'MB', 'credits') */
|
|
36
|
+
unit?: string;
|
|
37
|
+
/** Display variant */
|
|
38
|
+
variant?: MeterVariant;
|
|
39
|
+
/** Color thresholds */
|
|
40
|
+
thresholds?: readonly MeterThreshold[];
|
|
41
|
+
/** Number of segments (for segmented variant) */
|
|
42
|
+
segments?: number;
|
|
43
|
+
/** Show value text */
|
|
44
|
+
showValue?: boolean;
|
|
45
|
+
/** Size (for radial variant) */
|
|
46
|
+
size?: "sm" | "md" | "lg";
|
|
47
|
+
/** Actions */
|
|
48
|
+
actions?: readonly MeterAction[];
|
|
49
|
+
/** Entity name for schema-driven auto-fetch */
|
|
50
|
+
entity?: string;
|
|
51
|
+
/** Loading state */
|
|
52
|
+
isLoading?: boolean;
|
|
53
|
+
/** Error state */
|
|
54
|
+
error?: Error | null;
|
|
55
|
+
/** Additional CSS classes */
|
|
56
|
+
className?: string;
|
|
57
|
+
}
|
|
58
|
+
export declare const Meter: React.FC<MeterProps>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ModalSlot Component
|
|
3
|
+
*
|
|
4
|
+
* Wraps modal slot content in a proper Modal component.
|
|
5
|
+
* Used by trait-driven pages to display modal UI from render_ui effects.
|
|
6
|
+
*
|
|
7
|
+
* Handles:
|
|
8
|
+
* - Auto-open when content is present
|
|
9
|
+
* - Dispatches CLOSE/CANCEL events when closed
|
|
10
|
+
* - Extracts title from Form components
|
|
11
|
+
*/
|
|
12
|
+
import React from 'react';
|
|
13
|
+
export interface ModalSlotProps {
|
|
14
|
+
/** Content to display in the modal */
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
/** Override modal title (extracted from children if not provided) */
|
|
17
|
+
title?: string;
|
|
18
|
+
/** Modal size */
|
|
19
|
+
size?: 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
20
|
+
/** Custom class name */
|
|
21
|
+
className?: string;
|
|
22
|
+
/** Loading state indicator */
|
|
23
|
+
isLoading?: boolean;
|
|
24
|
+
/** Error state */
|
|
25
|
+
error?: Error | null;
|
|
26
|
+
/** Entity name for schema-driven auto-fetch */
|
|
27
|
+
entity?: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* ModalSlot - Wrapper for modal slot content
|
|
31
|
+
*
|
|
32
|
+
* Automatically shows modal when children are present,
|
|
33
|
+
* and dispatches close events when modal is dismissed.
|
|
34
|
+
*/
|
|
35
|
+
export declare const ModalSlot: React.FC<ModalSlotProps>;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Navigation Organism Component
|
|
3
|
+
*
|
|
4
|
+
* A navigation component with items, active indicators, icons, and badges.
|
|
5
|
+
* Uses Menu, ButtonGroup molecules and Button, Icon, Badge, Typography, Divider atoms.
|
|
6
|
+
*/
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import type { LucideIcon } from 'lucide-react';
|
|
9
|
+
export interface NavigationItem {
|
|
10
|
+
/**
|
|
11
|
+
* Item ID
|
|
12
|
+
*/
|
|
13
|
+
id: string;
|
|
14
|
+
/**
|
|
15
|
+
* Item label
|
|
16
|
+
*/
|
|
17
|
+
label: string;
|
|
18
|
+
/**
|
|
19
|
+
* Item icon
|
|
20
|
+
*/
|
|
21
|
+
icon?: LucideIcon;
|
|
22
|
+
/**
|
|
23
|
+
* Item badge
|
|
24
|
+
*/
|
|
25
|
+
badge?: string | number;
|
|
26
|
+
/**
|
|
27
|
+
* Item href
|
|
28
|
+
*/
|
|
29
|
+
href?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Item click handler
|
|
32
|
+
*/
|
|
33
|
+
onClick?: () => void;
|
|
34
|
+
/**
|
|
35
|
+
* Is active
|
|
36
|
+
*/
|
|
37
|
+
isActive?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Disable item
|
|
40
|
+
*/
|
|
41
|
+
disabled?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Sub-menu items
|
|
44
|
+
*/
|
|
45
|
+
subMenu?: NavigationItem[];
|
|
46
|
+
}
|
|
47
|
+
export interface NavigationProps {
|
|
48
|
+
/**
|
|
49
|
+
* Navigation items
|
|
50
|
+
*/
|
|
51
|
+
items: NavigationItem[];
|
|
52
|
+
/**
|
|
53
|
+
* Navigation orientation
|
|
54
|
+
* @default 'horizontal'
|
|
55
|
+
*/
|
|
56
|
+
orientation?: 'horizontal' | 'vertical';
|
|
57
|
+
/**
|
|
58
|
+
* Additional CSS classes
|
|
59
|
+
*/
|
|
60
|
+
className?: string;
|
|
61
|
+
/** Loading state indicator */
|
|
62
|
+
isLoading?: boolean;
|
|
63
|
+
/** Error state */
|
|
64
|
+
error?: Error | null;
|
|
65
|
+
/** Entity name for schema-driven auto-fetch */
|
|
66
|
+
entity?: string;
|
|
67
|
+
}
|
|
68
|
+
export declare const Navigation: React.FC<NavigationProps>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NotifyListener Component
|
|
3
|
+
*
|
|
4
|
+
* Listens for UI:NOTIFY events on the event bus and renders toast notifications.
|
|
5
|
+
* Mount once at the app root level (inside EventBusProvider).
|
|
6
|
+
*
|
|
7
|
+
* The compiler transpiles `notify("message", severity)` effects into
|
|
8
|
+
* `eventBus.emit('UI:NOTIFY', { message, severity })` calls.
|
|
9
|
+
* This component picks those up and renders them as Toast overlays.
|
|
10
|
+
*/
|
|
11
|
+
import React from 'react';
|
|
12
|
+
export declare function NotifyListener(): React.ReactElement | null;
|
|
13
|
+
export declare namespace NotifyListener {
|
|
14
|
+
var displayName: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OrbitalVisualization Component
|
|
3
|
+
*
|
|
4
|
+
* Visualizes KFlow schemas as atomic orbitals based on complexity.
|
|
5
|
+
* Uses CSS 3D transforms for lightweight rendering without Three.js.
|
|
6
|
+
*
|
|
7
|
+
* Orbital Types (based on complexity score):
|
|
8
|
+
* - 1s (1-3): Simple sphere - Red
|
|
9
|
+
* - 2s (4-8): Larger sphere - Orange
|
|
10
|
+
* - 2p (9-15): Dumbbell shape - Yellow
|
|
11
|
+
* - 3s (16-25): Sphere with node - Green
|
|
12
|
+
* - 3p (26-40): Complex dumbbell - Blue
|
|
13
|
+
* - 3d (41-60): Cloverleaf - Indigo
|
|
14
|
+
* - 4f (61+): Multi-lobe - Violet
|
|
15
|
+
*/
|
|
16
|
+
import React from "react";
|
|
17
|
+
export interface OrbitalVisualizationProps {
|
|
18
|
+
/** Full KFlow schema object */
|
|
19
|
+
schema?: {
|
|
20
|
+
dataEntities?: unknown[];
|
|
21
|
+
ui?: {
|
|
22
|
+
pages?: {
|
|
23
|
+
sections?: unknown[];
|
|
24
|
+
}[];
|
|
25
|
+
};
|
|
26
|
+
traits?: unknown[];
|
|
27
|
+
};
|
|
28
|
+
/** Direct complexity override (1-100+) */
|
|
29
|
+
complexity?: number;
|
|
30
|
+
/** Size of the visualization */
|
|
31
|
+
size?: "sm" | "md" | "lg" | "xl";
|
|
32
|
+
/** Show complexity label */
|
|
33
|
+
showLabel?: boolean;
|
|
34
|
+
/** Animation enabled */
|
|
35
|
+
animated?: boolean;
|
|
36
|
+
/** Click handler */
|
|
37
|
+
onClick?: () => void;
|
|
38
|
+
/** Additional CSS classes */
|
|
39
|
+
className?: string;
|
|
40
|
+
/** Loading state indicator */
|
|
41
|
+
isLoading?: boolean;
|
|
42
|
+
/** Error state */
|
|
43
|
+
error?: Error | null;
|
|
44
|
+
/** Entity name for schema-driven auto-fetch */
|
|
45
|
+
entity?: string;
|
|
46
|
+
}
|
|
47
|
+
export declare const OrbitalVisualization: React.FC<OrbitalVisualizationProps>;
|
|
48
|
+
export default OrbitalVisualization;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { LucideIcon } from "lucide-react";
|
|
3
|
+
export interface PageBreadcrumb {
|
|
4
|
+
label: string;
|
|
5
|
+
href?: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Schema-based action definition
|
|
9
|
+
*/
|
|
10
|
+
export interface SchemaAction {
|
|
11
|
+
label: string;
|
|
12
|
+
/** Navigate to URL when clicked */
|
|
13
|
+
navigatesTo?: string;
|
|
14
|
+
/** Custom click handler */
|
|
15
|
+
onClick?: () => void;
|
|
16
|
+
/** Event to dispatch via event bus (for trait state machine integration) */
|
|
17
|
+
event?: string;
|
|
18
|
+
variant?: "primary" | "secondary" | "ghost" | "danger";
|
|
19
|
+
icon?: LucideIcon;
|
|
20
|
+
loading?: boolean;
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export interface PageHeaderProps {
|
|
24
|
+
/** Page title - accepts unknown to handle generated code accessing dynamic entity data */
|
|
25
|
+
title?: string | number | unknown;
|
|
26
|
+
/** Optional subtitle/description */
|
|
27
|
+
subtitle?: string | number | unknown;
|
|
28
|
+
/** Show back button */
|
|
29
|
+
showBack?: boolean;
|
|
30
|
+
/** Event to emit when back is clicked (default: BACK) */
|
|
31
|
+
backEvent?: string;
|
|
32
|
+
/** Breadcrumbs */
|
|
33
|
+
breadcrumbs?: readonly PageBreadcrumb[];
|
|
34
|
+
/** Status badge */
|
|
35
|
+
status?: {
|
|
36
|
+
label: string;
|
|
37
|
+
variant?: "default" | "success" | "warning" | "danger" | "info";
|
|
38
|
+
};
|
|
39
|
+
/** Actions array - first action with variant='primary' (or first action) is the main action */
|
|
40
|
+
actions?: readonly Readonly<SchemaAction>[];
|
|
41
|
+
/** Loading state indicator */
|
|
42
|
+
isLoading?: boolean;
|
|
43
|
+
/** Error state */
|
|
44
|
+
error?: Error | null;
|
|
45
|
+
/** Entity name for schema-driven auto-fetch */
|
|
46
|
+
entity?: string;
|
|
47
|
+
/** Tabs for sub-navigation */
|
|
48
|
+
tabs?: ReadonlyArray<{
|
|
49
|
+
label: string;
|
|
50
|
+
value: string;
|
|
51
|
+
count?: number;
|
|
52
|
+
}>;
|
|
53
|
+
activeTab?: string;
|
|
54
|
+
onTabChange?: (value: string) => void;
|
|
55
|
+
/** Custom content in the header */
|
|
56
|
+
children?: React.ReactNode;
|
|
57
|
+
className?: string;
|
|
58
|
+
}
|
|
59
|
+
export declare const PageHeader: React.FC<PageHeaderProps>;
|