@almadar/ui 2.14.0 → 2.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-M7MOIE46.js → chunk-4KP6IZEQ.js} +1 -1
- package/dist/{chunk-SKWPSQHQ.js → chunk-YPY74G7F.js} +16 -8
- package/dist/components/atoms/AnimatedCounter.d.ts +20 -0
- package/dist/components/atoms/Avatar.d.ts +58 -0
- package/dist/components/atoms/Badge.d.ts +14 -0
- package/dist/components/atoms/Box.d.ts +57 -0
- package/dist/components/atoms/Button.d.ts +24 -0
- package/dist/components/atoms/Card.d.ts +18 -0
- package/dist/components/atoms/Center.d.ts +33 -0
- package/dist/components/atoms/Checkbox.d.ts +9 -0
- package/dist/components/atoms/ConditionalWrapper.d.ts +68 -0
- package/dist/components/atoms/ConfettiEffect.d.ts +19 -0
- package/dist/components/atoms/DayCell.d.ts +21 -0
- package/dist/components/atoms/Divider.d.ts +29 -0
- package/dist/components/atoms/FlipContainer.d.ts +21 -0
- package/dist/components/atoms/Icon.d.ts +39 -0
- package/dist/components/atoms/InfiniteScrollSentinel.d.ts +23 -0
- package/dist/components/atoms/Input.d.ts +26 -0
- package/dist/components/atoms/Label.d.ts +5 -0
- package/dist/components/atoms/LawReferenceTooltip.d.ts +48 -0
- package/dist/components/atoms/Overlay.d.ts +16 -0
- package/dist/components/atoms/ProgressBar.d.ts +63 -0
- package/dist/components/atoms/Radio.d.ts +26 -0
- package/dist/components/atoms/RangeSlider.d.ts +31 -0
- package/dist/components/atoms/Select.d.ts +12 -0
- package/dist/components/atoms/Spacer.d.ts +25 -0
- package/dist/components/atoms/Spinner.d.ts +6 -0
- package/dist/components/atoms/Stack.d.ts +66 -0
- package/dist/components/atoms/StatusDot.d.ts +14 -0
- package/dist/components/atoms/Switch.d.ts +12 -0
- package/dist/components/atoms/TextHighlight.d.ts +53 -0
- package/dist/components/atoms/Textarea.d.ts +5 -0
- package/dist/components/atoms/ThemeSelector.d.ts +21 -0
- package/dist/components/atoms/ThemeToggle.d.ts +33 -0
- package/dist/components/atoms/TimeSlotCell.d.ts +23 -0
- package/dist/components/atoms/TrendIndicator.d.ts +18 -0
- package/dist/components/atoms/TypewriterText.d.ts +20 -0
- package/dist/components/atoms/Typography.d.ts +57 -0
- package/dist/components/atoms/game/ActionButton.d.ts +25 -0
- package/dist/components/atoms/game/ChoiceButton.d.ts +18 -0
- package/dist/components/atoms/game/ComboCounter.d.ts +16 -0
- package/dist/components/atoms/game/ControlButton.d.ts +31 -0
- package/dist/components/atoms/game/DamageNumber.d.ts +14 -0
- package/dist/components/atoms/game/DialogueBubble.d.ts +16 -0
- package/dist/components/atoms/game/HealthBar.d.ts +18 -0
- package/dist/components/atoms/game/ItemSlot.d.ts +25 -0
- package/dist/components/atoms/game/MiniMap.d.ts +36 -0
- package/dist/components/atoms/game/ResourceCounter.d.ts +21 -0
- package/dist/components/atoms/game/ScoreDisplay.d.ts +21 -0
- package/dist/components/atoms/game/Sprite.d.ts +63 -0
- package/dist/components/atoms/game/StateIndicator.d.ts +31 -0
- package/dist/components/atoms/game/StatusEffect.d.ts +21 -0
- package/dist/components/atoms/game/TimerDisplay.d.ts +18 -0
- package/dist/components/atoms/game/TurnIndicator.d.ts +18 -0
- package/dist/components/atoms/game/WaypointMarker.d.ts +19 -0
- package/dist/components/atoms/game/XPBar.d.ts +20 -0
- package/dist/components/atoms/game/index.d.ts +25 -0
- package/dist/components/atoms/index.d.ts +37 -0
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.js +2 -2
- package/dist/components/molecules/Accordion.d.ts +67 -0
- package/dist/components/molecules/Alert.d.ts +24 -0
- package/dist/components/molecules/Breadcrumb.d.ts +55 -0
- package/dist/components/molecules/ButtonGroup.d.ts +67 -0
- package/dist/components/molecules/CalendarGrid.d.ts +43 -0
- package/dist/components/molecules/Card.d.ts +56 -0
- package/dist/components/molecules/Carousel.d.ts +31 -0
- package/dist/components/molecules/ChartLegend.d.ts +20 -0
- package/dist/components/molecules/Container.d.ts +30 -0
- package/dist/components/molecules/DataGrid.d.ts +75 -0
- package/dist/components/molecules/DataList.d.ts +95 -0
- package/dist/components/molecules/DateRangeSelector.d.ts +22 -0
- package/dist/components/molecules/Drawer.d.ts +46 -0
- package/dist/components/molecules/EmptyState.d.ts +25 -0
- package/dist/components/molecules/ErrorBoundary.d.ts +55 -0
- package/dist/components/molecules/ErrorState.d.ts +13 -0
- package/dist/components/molecules/FilterGroup.d.ts +54 -0
- package/dist/components/molecules/Flex.d.ts +43 -0
- package/dist/components/molecules/FlipCard.d.ts +25 -0
- package/dist/components/molecules/FloatingActionButton.d.ts +69 -0
- package/dist/components/molecules/FormField.d.ts +16 -0
- package/dist/components/molecules/FormSectionHeader.d.ts +30 -0
- package/dist/components/molecules/GraphView.d.ts +45 -0
- package/dist/components/molecules/Grid.d.ts +54 -0
- package/dist/components/molecules/InputGroup.d.ts +24 -0
- package/dist/components/molecules/Lightbox.d.ts +25 -0
- package/dist/components/molecules/LineChart.d.ts +33 -0
- package/dist/components/molecules/LoadingState.d.ts +7 -0
- package/dist/components/molecules/MapView.d.ts +40 -0
- package/dist/components/molecules/Menu.d.ts +40 -0
- package/dist/components/molecules/Meter.d.ts +51 -0
- package/dist/components/molecules/Modal.d.ts +28 -0
- package/dist/components/molecules/NumberStepper.d.ts +27 -0
- package/dist/components/molecules/Pagination.d.ts +66 -0
- package/dist/components/molecules/Popover.d.ts +39 -0
- package/dist/components/molecules/ProgressDots.d.ts +24 -0
- package/dist/components/molecules/PullToRefresh.d.ts +21 -0
- package/dist/components/molecules/QuizBlock.d.ts +20 -0
- package/dist/components/molecules/RelationSelect.d.ts +48 -0
- package/dist/components/molecules/RepeatableFormSection.d.ts +58 -0
- package/dist/components/molecules/ScaledDiagram.d.ts +20 -0
- package/dist/components/molecules/SearchInput.d.ts +60 -0
- package/dist/components/molecules/SidePanel.d.ts +47 -0
- package/dist/components/molecules/SimpleGrid.d.ts +27 -0
- package/dist/components/molecules/Skeleton.d.ts +35 -0
- package/dist/components/molecules/SortableList.d.ts +17 -0
- package/dist/components/molecules/StarRating.d.ts +26 -0
- package/dist/components/molecules/StatDisplay.d.ts +37 -0
- package/dist/components/molecules/SwipeableRow.d.ts +24 -0
- package/dist/components/molecules/Tabs.d.ts +45 -0
- package/dist/components/molecules/Toast.d.ts +35 -0
- package/dist/components/molecules/Tooltip.d.ts +25 -0
- package/dist/components/molecules/UploadDropZone.d.ts +26 -0
- package/dist/components/molecules/ViolationAlert.d.ts +49 -0
- package/dist/components/molecules/WizardNavigation.d.ts +51 -0
- package/dist/components/molecules/WizardProgress.d.ts +42 -0
- package/dist/components/molecules/game/ActionButtons.d.ts +34 -0
- package/dist/components/molecules/game/CombatLog.d.ts +30 -0
- package/dist/components/molecules/game/CraftingRecipe.d.ts +33 -0
- package/dist/components/molecules/game/DPad.d.ts +22 -0
- package/dist/components/molecules/game/DialogueBox.d.ts +78 -0
- package/dist/components/molecules/game/EnemyPlate.d.ts +27 -0
- package/dist/components/molecules/game/GameCanvas2D.d.ts +18 -0
- package/dist/components/molecules/game/GameHud.d.ts +49 -0
- package/dist/components/molecules/game/GameMenu.d.ts +43 -0
- package/dist/components/molecules/game/GameOverScreen.d.ts +56 -0
- package/dist/components/molecules/game/HealthPanel.d.ts +27 -0
- package/dist/components/molecules/game/InventoryGrid.d.ts +30 -0
- package/dist/components/molecules/game/InventoryPanel.d.ts +67 -0
- package/dist/components/molecules/game/IsometricCanvas.d.ts +127 -0
- package/dist/components/molecules/game/PlatformerCanvas.d.ts +52 -0
- package/dist/components/molecules/game/PowerupSlots.d.ts +23 -0
- package/dist/components/molecules/game/QuestTracker.d.ts +20 -0
- package/dist/components/molecules/game/ResourceBar.d.ts +23 -0
- package/dist/components/molecules/game/ScoreBoard.d.ts +18 -0
- package/dist/components/molecules/game/StatBadge.d.ts +27 -0
- package/dist/components/molecules/game/TurnPanel.d.ts +29 -0
- package/dist/components/molecules/game/UnitCommandBar.d.ts +25 -0
- package/dist/components/molecules/game/index.d.ts +30 -0
- package/dist/components/molecules/index.d.ts +59 -0
- package/dist/components/molecules/markdown/CodeBlock.d.ts +25 -0
- package/dist/components/molecules/markdown/MarkdownContent.d.ts +26 -0
- package/dist/components/molecules/markdown/index.d.ts +2 -0
- package/dist/components/organisms/CardGrid.d.ts +80 -0
- package/dist/components/organisms/Chart.d.ts +59 -0
- package/dist/components/organisms/CodeViewer.d.ts +67 -0
- package/dist/components/organisms/ComponentPatterns.d.ts +453 -0
- package/dist/components/organisms/ConfirmDialog.d.ts +50 -0
- package/dist/components/organisms/ContentRenderer.d.ts +23 -0
- package/dist/components/organisms/CustomPattern.d.ts +104 -0
- package/dist/components/organisms/DataTable.d.ts +67 -0
- package/dist/components/organisms/DetailPanel.d.ts +78 -0
- package/dist/components/organisms/DocumentViewer.d.ts +60 -0
- package/dist/components/organisms/DrawerSlot.d.ts +39 -0
- package/dist/components/organisms/Form.d.ts +206 -0
- package/dist/components/organisms/FormSection.d.ts +41 -0
- package/dist/components/organisms/GraphCanvas.d.ts +69 -0
- package/dist/components/organisms/Header.d.ts +110 -0
- package/dist/components/organisms/JazariStateMachine.d.ts +60 -0
- package/dist/components/organisms/LayoutPatterns.d.ts +181 -0
- package/dist/components/organisms/List.d.ts +78 -0
- package/dist/components/organisms/MasterDetail.d.ts +32 -0
- package/dist/components/organisms/MediaGallery.d.ts +57 -0
- package/dist/components/organisms/Meter.d.ts +58 -0
- package/dist/components/organisms/ModalSlot.d.ts +35 -0
- package/dist/components/organisms/Navigation.d.ts +68 -0
- package/dist/components/organisms/NotifyListener.d.ts +15 -0
- package/dist/components/organisms/OrbitalVisualization.d.ts +48 -0
- package/dist/components/organisms/PageHeader.d.ts +59 -0
- package/dist/components/organisms/Section.d.ts +44 -0
- package/dist/components/organisms/Sidebar.d.ts +63 -0
- package/dist/components/organisms/SignaturePad.d.ts +44 -0
- package/dist/components/organisms/Split.d.ts +42 -0
- package/dist/components/organisms/StatCard.d.ts +62 -0
- package/dist/components/organisms/StateMachineView.d.ts +36 -0
- package/dist/components/organisms/Table.d.ts +99 -0
- package/dist/components/organisms/Timeline.d.ts +49 -0
- package/dist/components/organisms/ToastSlot.d.ts +38 -0
- package/dist/components/organisms/UISlotRenderer.d.ts +112 -0
- package/dist/components/organisms/WizardContainer.d.ts +160 -0
- package/dist/components/organisms/book/BookChapterView.d.ts +17 -0
- package/dist/components/organisms/book/BookCoverPage.d.ts +20 -0
- package/dist/components/organisms/book/BookNavBar.d.ts +19 -0
- package/dist/components/organisms/book/BookTableOfContents.d.ts +18 -0
- package/dist/components/organisms/book/BookViewer.d.ts +28 -0
- package/dist/components/organisms/book/index.d.ts +7 -0
- package/dist/components/organisms/book/types.d.ts +77 -0
- package/dist/components/organisms/component-registry.generated.d.ts +9 -0
- package/dist/components/organisms/debug/RuntimeDebugger.d.ts +19 -0
- package/dist/components/organisms/debug/hooks/useDebugData.d.ts +25 -0
- package/dist/components/organisms/debug/index.d.ts +13 -0
- package/dist/components/organisms/debug/tabs/EntitiesTab.d.ts +13 -0
- package/dist/components/organisms/debug/tabs/EventDispatcherTab.d.ts +16 -0
- package/dist/components/organisms/debug/tabs/EventFlowTab.d.ts +9 -0
- package/dist/components/organisms/debug/tabs/GuardsPanel.d.ts +9 -0
- package/dist/components/organisms/debug/tabs/ServerBridgeTab.d.ts +9 -0
- package/dist/components/organisms/debug/tabs/TicksTab.d.ts +13 -0
- package/dist/components/organisms/debug/tabs/TraitsTab.d.ts +13 -0
- package/dist/components/organisms/debug/tabs/TransitionTimeline.d.ts +9 -0
- package/dist/components/organisms/debug/tabs/VerificationTab.d.ts +10 -0
- package/dist/components/organisms/game/BattleBoard.d.ts +175 -0
- package/dist/components/organisms/game/CanvasEffect.d.ts +68 -0
- package/dist/components/organisms/game/CastleBoard.d.ts +85 -0
- package/dist/components/organisms/game/CombatLog.d.ts +2 -0
- package/dist/components/organisms/game/DialogueBox.d.ts +2 -0
- package/dist/components/organisms/game/GameAudioProvider.d.ts +47 -0
- package/dist/components/organisms/game/GameAudioToggle.d.ts +28 -0
- package/dist/components/organisms/game/GameCanvas3D.d.ts +181 -0
- package/dist/components/organisms/game/GameHud.d.ts +2 -0
- package/dist/components/organisms/game/GameMenu.d.ts +2 -0
- package/dist/components/organisms/game/GameOverScreen.d.ts +2 -0
- package/dist/components/organisms/game/InventoryPanel.d.ts +2 -0
- package/dist/components/organisms/game/IsometricCanvas.d.ts +3 -0
- package/dist/components/organisms/game/PlatformerCanvas.d.ts +2 -0
- package/dist/components/organisms/game/TraitSlot.d.ts +90 -0
- package/dist/components/organisms/game/TraitStateViewer.d.ts +53 -0
- package/dist/components/organisms/game/UncontrolledBattleBoard.d.ts +26 -0
- package/dist/components/organisms/game/WorldMapBoard.d.ts +156 -0
- package/dist/components/organisms/game/editor/editorUtils.d.ts +109 -0
- package/dist/components/organisms/game/editor/index.d.ts +9 -0
- package/dist/components/organisms/game/hooks/useBattleState.d.ts +35 -0
- package/dist/components/organisms/game/hooks/useCamera.d.ts +41 -0
- package/dist/components/organisms/game/hooks/useGameAudio.d.ts +47 -0
- package/dist/components/organisms/game/hooks/useImageCache.d.ts +16 -0
- package/dist/components/organisms/game/hooks/usePhysics2D.d.ts +45 -0
- package/dist/components/organisms/game/hooks/useSpriteAnimations.d.ts +43 -0
- package/dist/components/organisms/game/index.d.ts +52 -0
- package/dist/components/organisms/game/managers/PhysicsManager.d.ts +103 -0
- package/dist/components/organisms/game/physics-sim/SimulationCanvas.d.ts +20 -0
- package/dist/components/organisms/game/physics-sim/SimulationControls.d.ts +28 -0
- package/dist/components/organisms/game/physics-sim/SimulationGraph.d.ts +25 -0
- package/dist/components/organisms/game/physics-sim/index.d.ts +7 -0
- package/dist/components/organisms/game/physics-sim/presets/index.d.ts +4 -0
- package/dist/components/organisms/game/physics-sim/presets/mechanics.d.ts +4 -0
- package/dist/components/organisms/game/physics-sim/presets/types.d.ts +43 -0
- package/dist/components/organisms/game/puzzles/builder/BuilderBoard.d.ts +52 -0
- package/dist/components/organisms/game/puzzles/builder/index.d.ts +2 -0
- package/dist/components/organisms/game/puzzles/classifier/ClassifierBoard.d.ts +53 -0
- package/dist/components/organisms/game/puzzles/classifier/index.d.ts +2 -0
- package/dist/components/organisms/game/puzzles/debugger/DebuggerBoard.d.ts +45 -0
- package/dist/components/organisms/game/puzzles/debugger/index.d.ts +2 -0
- package/dist/components/organisms/game/puzzles/event-handler/EventHandlerBoard.d.ts +55 -0
- package/dist/components/organisms/game/puzzles/event-handler/EventLog.d.ts +31 -0
- package/dist/components/organisms/game/puzzles/event-handler/ObjectRulePanel.d.ts +45 -0
- package/dist/components/organisms/game/puzzles/event-handler/RuleEditor.d.ts +41 -0
- package/dist/components/organisms/game/puzzles/event-handler/index.d.ts +8 -0
- package/dist/components/organisms/game/puzzles/negotiator/NegotiatorBoard.d.ts +54 -0
- package/dist/components/organisms/game/puzzles/negotiator/index.d.ts +2 -0
- package/dist/components/organisms/game/puzzles/sequencer/ActionPalette.d.ts +34 -0
- package/dist/components/organisms/game/puzzles/sequencer/ActionTile.d.ts +30 -0
- package/dist/components/organisms/game/puzzles/sequencer/SequenceBar.d.ts +41 -0
- package/dist/components/organisms/game/puzzles/sequencer/SequencerBoard.d.ts +72 -0
- package/dist/components/organisms/game/puzzles/sequencer/index.d.ts +8 -0
- package/dist/components/organisms/game/puzzles/simulator/SimulatorBoard.d.ts +54 -0
- package/dist/components/organisms/game/puzzles/simulator/index.d.ts +2 -0
- package/dist/components/organisms/game/puzzles/state-architect/CodeView.d.ts +24 -0
- package/dist/components/organisms/game/puzzles/state-architect/StateArchitectBoard.d.ts +76 -0
- package/dist/components/organisms/game/puzzles/state-architect/StateNode.d.ts +33 -0
- package/dist/components/organisms/game/puzzles/state-architect/TransitionArrow.d.ts +36 -0
- package/dist/components/organisms/game/puzzles/state-architect/VariablePanel.d.ts +28 -0
- package/dist/components/organisms/game/puzzles/state-architect/index.d.ts +10 -0
- package/dist/components/organisms/game/three/Camera3D.d.ts +60 -0
- package/dist/components/organisms/game/three/Lighting3D.d.ts +47 -0
- package/dist/components/organisms/game/three/Scene3D.d.ts +37 -0
- package/dist/components/organisms/game/three/components/Canvas3DErrorBoundary.d.ts +51 -0
- package/dist/components/organisms/game/three/components/Canvas3DLoadingState.d.ts +44 -0
- package/dist/components/organisms/game/three/components/ModelLoader.d.ts +44 -0
- package/dist/components/organisms/game/three/components/PhysicsObject3D.d.ts +74 -0
- package/dist/components/organisms/game/three/components/index.d.ts +10 -0
- package/dist/components/organisms/game/three/hooks/useAssetLoader.d.ts +58 -0
- package/dist/components/organisms/game/three/hooks/useGameCanvas3DEvents.d.ts +79 -0
- package/dist/components/organisms/game/three/hooks/useRaycaster.d.ts +86 -0
- package/dist/components/organisms/game/three/hooks/useSceneGraph.d.ts +66 -0
- package/dist/components/organisms/game/three/hooks/useThree.d.ts +58 -0
- package/dist/components/organisms/game/three/index.d.ts +23 -0
- package/dist/components/organisms/game/three/loaders/AssetLoader.d.ts +80 -0
- package/dist/components/organisms/game/three/renderers/FeatureRenderer.d.ts +44 -0
- package/dist/components/organisms/game/three/renderers/FeatureRenderer3D.d.ts +44 -0
- package/dist/components/organisms/game/three/renderers/TileRenderer.d.ts +57 -0
- package/dist/components/organisms/game/three/renderers/UnitRenderer.d.ts +46 -0
- package/dist/components/organisms/game/three/renderers/index.d.ts +11 -0
- package/dist/components/organisms/game/three/utils/culling.d.ts +134 -0
- package/dist/components/organisms/game/three/utils/grid3D.d.ts +154 -0
- package/dist/components/organisms/game/types/effects.d.ts +253 -0
- package/dist/components/organisms/game/types/game.d.ts +92 -0
- package/dist/components/organisms/game/types/isometric.d.ts +109 -0
- package/dist/components/organisms/game/types/spriteAnimation.d.ts +73 -0
- package/dist/components/organisms/game/useCanvasEffects.d.ts +26 -0
- package/dist/components/organisms/game/utils/canvasEffects.d.ts +50 -0
- package/dist/components/organisms/game/utils/combatEffects.d.ts +64 -0
- package/dist/components/organisms/game/utils/combatPresets.d.ts +15 -0
- package/dist/components/organisms/game/utils/isometric.d.ts +61 -0
- package/dist/components/organisms/game/utils/spriteAnimation.d.ts +57 -0
- package/dist/components/organisms/game/utils/spriteSheetConstants.d.ts +16 -0
- package/dist/components/organisms/index.d.ts +38 -0
- package/dist/components/organisms/layout/DashboardGrid.d.ts +35 -0
- package/dist/components/organisms/layout/MasterDetail.d.ts +32 -0
- package/dist/components/organisms/layout/SplitPane.d.ts +34 -0
- package/dist/components/organisms/layout/TabbedContainer.d.ts +42 -0
- package/dist/components/organisms/layout/index.d.ts +9 -0
- package/dist/components/organisms/types.d.ts +63 -0
- package/dist/components/templates/AuthLayout.d.ts +14 -0
- package/dist/components/templates/BattleTemplate.d.ts +25 -0
- package/dist/components/templates/CastleTemplate.d.ts +23 -0
- package/dist/components/templates/CounterTemplate.d.ts +44 -0
- package/dist/components/templates/DashboardLayout.d.ts +34 -0
- package/dist/components/templates/GameCanvas3DBattleTemplate.d.ts +96 -0
- package/dist/components/templates/GameCanvas3DCastleTemplate.d.ts +90 -0
- package/dist/components/templates/GameCanvas3DWorldMapTemplate.d.ts +96 -0
- package/dist/components/templates/GameShell.d.ts +34 -0
- package/dist/components/templates/GameTemplate.d.ts +36 -0
- package/dist/components/templates/GenericAppTemplate.d.ts +30 -0
- package/dist/components/templates/WorldMapTemplate.d.ts +29 -0
- package/dist/components/templates/index.d.ts +10 -0
- package/dist/components/templates/types.d.ts +22 -0
- package/dist/context/DesignThemeContext.d.ts +21 -0
- package/dist/context/ThemeContext.d.ts +104 -0
- package/dist/context/UISlotContext.d.ts +75 -0
- package/dist/context/UserContext.d.ts +111 -0
- package/dist/context/index.d.ts +8 -0
- package/dist/hooks/event-bus-types.d.ts +71 -0
- package/dist/hooks/index.d.ts +31 -0
- package/dist/hooks/useAgentChat.d.ts +104 -0
- package/dist/hooks/useAuthContext.d.ts +25 -0
- package/dist/hooks/useCompile.d.ts +22 -0
- package/dist/hooks/useDeepAgentGeneration.d.ts +46 -0
- package/dist/hooks/useDragReorder.d.ts +26 -0
- package/dist/hooks/useEntities.d.ts +52 -0
- package/dist/hooks/useEntityData.d.ts +155 -0
- package/dist/hooks/useEntityMutations.d.ts +80 -0
- package/dist/hooks/useEventBus.d.ts +96 -0
- package/dist/hooks/useExtensions.d.ts +32 -0
- package/dist/hooks/useFileEditor.d.ts +32 -0
- package/dist/hooks/useFileSystem.d.ts +40 -0
- package/dist/hooks/useGitHub.d.ts +58 -0
- package/dist/hooks/useInfiniteScroll.d.ts +13 -0
- package/dist/hooks/useLongPress.d.ts +16 -0
- package/dist/hooks/useOrbitalHistory.d.ts +39 -0
- package/dist/hooks/useOrbitalMutations.d.ts +95 -0
- package/dist/hooks/usePinchZoom.d.ts +22 -0
- package/dist/hooks/usePreview.d.ts +57 -0
- package/dist/hooks/usePullToRefresh.d.ts +25 -0
- package/dist/hooks/useQuerySingleton.d.ts +78 -0
- package/dist/hooks/useResolvedEntity.d.ts +32 -0
- package/dist/hooks/useSwipeGesture.d.ts +26 -0
- package/dist/hooks/useTranslate.d.ts +35 -0
- package/dist/hooks/useUIEvents.d.ts +35 -0
- package/dist/hooks/useUISlots.d.ts +84 -0
- package/dist/hooks/useValidation.d.ts +46 -0
- package/dist/lib/api-client.d.ts +42 -0
- package/dist/lib/cn.d.ts +6 -0
- package/dist/lib/debug.d.ts +43 -0
- package/dist/lib/debugRegistry.d.ts +29 -0
- package/dist/lib/debugUtils.d.ts +27 -0
- package/dist/lib/entityDebug.d.ts +38 -0
- package/dist/lib/getNestedValue.d.ts +33 -0
- package/dist/lib/guardRegistry.d.ts +32 -0
- package/dist/lib/index.d.ts +18 -0
- package/dist/lib/jazari/index.d.ts +5 -0
- package/dist/lib/jazari/layout.d.ts +30 -0
- package/dist/lib/jazari/svg-paths.d.ts +61 -0
- package/dist/lib/jazari/types.d.ts +91 -0
- package/dist/lib/parseContentSegments.d.ts +41 -0
- package/dist/lib/tickRegistry.d.ts +40 -0
- package/dist/lib/traitRegistry.d.ts +34 -0
- package/dist/lib/verificationRegistry.d.ts +138 -0
- package/dist/lib/visualizer/browser.d.ts +47 -0
- package/dist/lib/visualizer/index.d.ts +143 -0
- package/dist/locales/index.d.ts +20 -0
- package/dist/providers/EventBusProvider.d.ts +60 -0
- package/dist/providers/FetchedDataProvider.d.ts +105 -0
- package/dist/providers/OfflineModeProvider.d.ts +79 -0
- package/dist/providers/OrbitalProvider.d.ts +101 -0
- package/dist/providers/SelectionProvider.d.ts +81 -0
- package/dist/providers/VerificationProvider.d.ts +63 -0
- package/dist/providers/index.d.ts +17 -0
- package/dist/providers/index.js +2 -2
- package/dist/renderer/client-effect-executor.d.ts +68 -0
- package/dist/renderer/data-resolver.d.ts +68 -0
- package/dist/renderer/index.d.ts +28 -0
- package/dist/renderer/init.d.ts +14 -0
- package/dist/renderer/navigation.d.ts +142 -0
- package/dist/renderer/offline-executor.d.ts +238 -0
- package/dist/renderer/pattern-resolver.d.ts +91 -0
- package/dist/renderer/slot-definitions.d.ts +45 -0
- package/dist/renderer/types.d.ts +160 -0
- package/dist/renderer/useClientEffects.d.ts +88 -0
- package/dist/runtime/EntitySchemaContext.d.ts +40 -0
- package/dist/runtime/TraitProvider.d.ts +52 -0
- package/dist/runtime/createClientEffectHandlers.d.ts +23 -0
- package/dist/runtime/index.d.ts +15 -0
- package/dist/runtime/index.js +2 -2
- package/dist/runtime/types.d.ts +10 -0
- package/dist/runtime/ui/SlotsContext.d.ts +71 -0
- package/dist/runtime/useResolvedSchema.d.ts +45 -0
- package/dist/runtime/useTraitStateMachine.d.ts +48 -0
- package/dist/scripts/generate-design-system.d.ts +29 -0
- package/dist/scripts/generate-theme-from-schema.d.ts +10 -0
- package/dist/scripts/generate.d.ts +12 -0
- package/dist/scripts/suggest-components.d.ts +31 -0
- package/dist/scripts/types.d.ts +129 -0
- package/dist/stores/entityStore.d.ts +99 -0
- package/dist/stores/filtering.d.ts +51 -0
- package/dist/stores/index.d.ts +7 -0
- package/dist/tsup.config.d.ts +2 -0
- package/dist/vitest.config.d.ts +2 -0
- package/package.json +2 -2
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Card Component
|
|
3
|
+
*
|
|
4
|
+
* A generic card container for displaying content with optional title,
|
|
5
|
+
* subtitle, and action buttons.
|
|
6
|
+
*
|
|
7
|
+
* @generated by Orbital Compiler
|
|
8
|
+
*/
|
|
9
|
+
import React from "react";
|
|
10
|
+
export interface CardAction {
|
|
11
|
+
label: string;
|
|
12
|
+
onClick?: () => void;
|
|
13
|
+
/** Event name to emit when clicked (for trait state machine integration) */
|
|
14
|
+
event?: string;
|
|
15
|
+
variant?: "default" | "primary" | "danger";
|
|
16
|
+
icon?: string;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface CardProps {
|
|
20
|
+
/** Card title */
|
|
21
|
+
title?: string;
|
|
22
|
+
/** Card subtitle or description */
|
|
23
|
+
subtitle?: string;
|
|
24
|
+
/** Image URL to display at top of card */
|
|
25
|
+
image?: string;
|
|
26
|
+
/** Action buttons to display in card footer */
|
|
27
|
+
actions?: CardAction[];
|
|
28
|
+
/** Card content */
|
|
29
|
+
children?: React.ReactNode;
|
|
30
|
+
/** Click handler for the entire card */
|
|
31
|
+
onClick?: () => void;
|
|
32
|
+
/** Additional CSS classes */
|
|
33
|
+
className?: string;
|
|
34
|
+
/** Declarative event name — emits UI:{action} via eventBus on card click */
|
|
35
|
+
action?: string;
|
|
36
|
+
/** Whether the card is selected (highlighted state) */
|
|
37
|
+
isSelected?: boolean;
|
|
38
|
+
/** Card name (alias for title) */
|
|
39
|
+
name?: string;
|
|
40
|
+
/** Level indicator */
|
|
41
|
+
level?: number;
|
|
42
|
+
/** Maximum level */
|
|
43
|
+
maxLevel?: number;
|
|
44
|
+
/** Event emitted on long press: UI:{longPressEvent} */
|
|
45
|
+
longPressEvent?: string;
|
|
46
|
+
/** Additional payload for long-press events */
|
|
47
|
+
longPressPayload?: Record<string, unknown>;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Card component for displaying content in a contained box
|
|
51
|
+
*/
|
|
52
|
+
export declare function Card({ title, subtitle, image, actions, children, onClick, className, action, longPressEvent, longPressPayload, }: CardProps): import("react/jsx-runtime").JSX.Element;
|
|
53
|
+
export declare namespace Card {
|
|
54
|
+
var displayName: string;
|
|
55
|
+
}
|
|
56
|
+
export default Card;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Carousel Molecule Component
|
|
3
|
+
*
|
|
4
|
+
* Horizontal scrolling container with snap points, swipe gestures,
|
|
5
|
+
* prev/next arrow buttons, and dot indicators.
|
|
6
|
+
* Pure UI molecule with no entity binding.
|
|
7
|
+
*/
|
|
8
|
+
import React from 'react';
|
|
9
|
+
export interface CarouselProps<T = Record<string, unknown>> {
|
|
10
|
+
/** Array of items to display as slides */
|
|
11
|
+
items: T[];
|
|
12
|
+
/** Render function for each slide */
|
|
13
|
+
renderItem: (item: T, index: number) => React.ReactNode;
|
|
14
|
+
/** Enable auto-play rotation */
|
|
15
|
+
autoPlay?: boolean;
|
|
16
|
+
/** Auto-play interval in milliseconds (default: 5000) */
|
|
17
|
+
autoPlayInterval?: number;
|
|
18
|
+
/** Show dot indicators */
|
|
19
|
+
showDots?: boolean;
|
|
20
|
+
/** Show prev/next arrow buttons */
|
|
21
|
+
showArrows?: boolean;
|
|
22
|
+
/** Enable infinite loop */
|
|
23
|
+
loop?: boolean;
|
|
24
|
+
/** Declarative event name for slide change */
|
|
25
|
+
slideChangeEvent?: string;
|
|
26
|
+
/** Payload to include with the slide change event */
|
|
27
|
+
slideChangePayload?: Record<string, unknown>;
|
|
28
|
+
/** Additional CSS classes */
|
|
29
|
+
className?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare const Carousel: <T = Record<string, unknown>>({ items, renderItem, autoPlay, autoPlayInterval, showDots, showArrows, loop, slideChangeEvent, slideChangePayload, className, }: CarouselProps<T>) => React.ReactElement | null;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ChartLegend Molecule Component
|
|
3
|
+
*
|
|
4
|
+
* Color-coded legend for chart data series.
|
|
5
|
+
* Pure UI molecule with no entity binding.
|
|
6
|
+
*/
|
|
7
|
+
import React from 'react';
|
|
8
|
+
export interface ChartLegendItem {
|
|
9
|
+
label: string;
|
|
10
|
+
color: string;
|
|
11
|
+
}
|
|
12
|
+
export interface ChartLegendProps {
|
|
13
|
+
/** Legend items with label and color */
|
|
14
|
+
items: ChartLegendItem[];
|
|
15
|
+
/** Additional CSS classes */
|
|
16
|
+
className?: string;
|
|
17
|
+
/** Layout direction */
|
|
18
|
+
direction?: 'horizontal' | 'vertical';
|
|
19
|
+
}
|
|
20
|
+
export declare const ChartLegend: React.FC<ChartLegendProps>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Container Component
|
|
3
|
+
*
|
|
4
|
+
* A max-width wrapper that centers content horizontally.
|
|
5
|
+
* Essential for controlling page width and maintaining consistent margins.
|
|
6
|
+
*/
|
|
7
|
+
import React from 'react';
|
|
8
|
+
export type ContainerSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'full';
|
|
9
|
+
export type ContainerPadding = 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
10
|
+
export interface ContainerProps {
|
|
11
|
+
/** Maximum width */
|
|
12
|
+
size?: ContainerSize;
|
|
13
|
+
/** Alias for size (pattern compatibility) */
|
|
14
|
+
maxWidth?: ContainerSize;
|
|
15
|
+
/** Horizontal padding */
|
|
16
|
+
padding?: ContainerPadding;
|
|
17
|
+
/** Center horizontally */
|
|
18
|
+
center?: boolean;
|
|
19
|
+
/** Custom class name */
|
|
20
|
+
className?: string;
|
|
21
|
+
/** Children elements */
|
|
22
|
+
children?: React.ReactNode;
|
|
23
|
+
/** HTML element to render as */
|
|
24
|
+
as?: React.ElementType;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Container - Centers and constrains content width
|
|
28
|
+
*/
|
|
29
|
+
export declare const Container: React.FC<ContainerProps>;
|
|
30
|
+
export default Container;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DataGrid Molecule
|
|
3
|
+
*
|
|
4
|
+
* A simplified, schema-driven card grid for iterating over entity data.
|
|
5
|
+
* Extracted from the CardGrid organism with all complexity removed:
|
|
6
|
+
* no built-in search, sort, filter, pagination, selection, or bulk actions.
|
|
7
|
+
*
|
|
8
|
+
* Accepts `fields` config for per-field rendering control (icon, variant, format)
|
|
9
|
+
* and `itemActions` for per-item event bus wiring.
|
|
10
|
+
*
|
|
11
|
+
* Uses atoms only internally: Box, VStack, HStack, Typography, Badge, Button, Icon.
|
|
12
|
+
*/
|
|
13
|
+
import React from 'react';
|
|
14
|
+
export interface DataGridField {
|
|
15
|
+
/** Entity field name (dot-notation supported) */
|
|
16
|
+
name: string;
|
|
17
|
+
/** Display label (auto-generated from name if omitted) */
|
|
18
|
+
label?: string;
|
|
19
|
+
/** Lucide icon name to show beside the field */
|
|
20
|
+
icon?: string;
|
|
21
|
+
/** Rendering variant: 'h3' for title, 'body' for text, 'caption' for small,
|
|
22
|
+
* 'badge' for status badge, 'progress' for progress display */
|
|
23
|
+
variant?: 'h3' | 'h4' | 'body' | 'caption' | 'badge' | 'small' | 'progress';
|
|
24
|
+
/** Optional format function name: 'date', 'currency', 'number', 'boolean' */
|
|
25
|
+
format?: 'date' | 'currency' | 'number' | 'boolean' | 'percent';
|
|
26
|
+
}
|
|
27
|
+
export interface DataGridItemAction {
|
|
28
|
+
/** Button label */
|
|
29
|
+
label: string;
|
|
30
|
+
/** Event name to emit (dispatched as UI:{event} with { row: itemData }) */
|
|
31
|
+
event: string;
|
|
32
|
+
/** Lucide icon name */
|
|
33
|
+
icon?: string;
|
|
34
|
+
/** Button variant */
|
|
35
|
+
variant?: 'primary' | 'secondary' | 'ghost' | 'danger';
|
|
36
|
+
}
|
|
37
|
+
export interface DataGridProps {
|
|
38
|
+
/** Entity data array */
|
|
39
|
+
entity: unknown | readonly unknown[];
|
|
40
|
+
/** Field definitions for rendering each card */
|
|
41
|
+
fields: readonly DataGridField[];
|
|
42
|
+
/** Alias for fields (compiler generates `columns` for field definitions) */
|
|
43
|
+
columns?: readonly DataGridField[];
|
|
44
|
+
/** Per-item action buttons */
|
|
45
|
+
itemActions?: readonly DataGridItemAction[];
|
|
46
|
+
/** Number of columns (uses auto-fit if omitted) */
|
|
47
|
+
cols?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
48
|
+
/** Gap between cards */
|
|
49
|
+
gap?: 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
50
|
+
/** Minimum card width in pixels (used when cols is not set, default 280) */
|
|
51
|
+
minCardWidth?: number;
|
|
52
|
+
/** Additional CSS classes */
|
|
53
|
+
className?: string;
|
|
54
|
+
/** Loading state */
|
|
55
|
+
isLoading?: boolean;
|
|
56
|
+
/** Error state */
|
|
57
|
+
error?: Error | null;
|
|
58
|
+
/** Entity field name containing an image URL for card thumbnails */
|
|
59
|
+
imageField?: string;
|
|
60
|
+
/** Enable multi-select with checkboxes */
|
|
61
|
+
selectable?: boolean;
|
|
62
|
+
/** Selection change event name (emits UI:{selectionEvent} with { selectedIds: string[] }) */
|
|
63
|
+
selectionEvent?: string;
|
|
64
|
+
/** Enable infinite scroll loading */
|
|
65
|
+
infiniteScroll?: boolean;
|
|
66
|
+
/** Event emitted when more items needed: UI:{loadMoreEvent} */
|
|
67
|
+
loadMoreEvent?: string;
|
|
68
|
+
/** Whether more items are available for infinite scroll */
|
|
69
|
+
hasMore?: boolean;
|
|
70
|
+
/** Render prop for custom per-item content. When provided, `fields` and `itemActions` are ignored. */
|
|
71
|
+
children?: (item: Record<string, unknown>, index: number) => React.ReactNode;
|
|
72
|
+
/** Max items to show before "Show More" button. Defaults to 0 (disabled). */
|
|
73
|
+
pageSize?: number;
|
|
74
|
+
}
|
|
75
|
+
export declare const DataGrid: React.FC<DataGridProps>;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DataList Molecule
|
|
3
|
+
*
|
|
4
|
+
* A simplified, schema-driven list for iterating over entity data.
|
|
5
|
+
* Extracted from the List organism with all complexity removed:
|
|
6
|
+
* no built-in search, sort, filter, selection, bulk actions, or custom renderers.
|
|
7
|
+
*
|
|
8
|
+
* Accepts `fields` config for per-field rendering control (icon, variant, format)
|
|
9
|
+
* and `itemActions` for per-item event bus wiring.
|
|
10
|
+
*
|
|
11
|
+
* Uses atoms only internally: Box, VStack, HStack, Typography, Badge, Button, Icon.
|
|
12
|
+
*/
|
|
13
|
+
import React from 'react';
|
|
14
|
+
export interface DataListField {
|
|
15
|
+
/** Entity field name (dot-notation supported) */
|
|
16
|
+
name: string;
|
|
17
|
+
/** Display label (auto-generated from name if omitted) */
|
|
18
|
+
label?: string;
|
|
19
|
+
/** Lucide icon name to show beside the field */
|
|
20
|
+
icon?: string;
|
|
21
|
+
/** Rendering variant: 'h3'/'h4' for title, 'body' for text, 'caption' for small,
|
|
22
|
+
* 'badge' for status badge, 'progress' for progress bar */
|
|
23
|
+
variant?: 'h3' | 'h4' | 'body' | 'caption' | 'badge' | 'small' | 'progress';
|
|
24
|
+
/** Optional format: 'date', 'currency', 'number', 'boolean', 'percent' */
|
|
25
|
+
format?: 'date' | 'currency' | 'number' | 'boolean' | 'percent';
|
|
26
|
+
}
|
|
27
|
+
export interface DataListItemAction {
|
|
28
|
+
/** Button label */
|
|
29
|
+
label: string;
|
|
30
|
+
/** Event name to emit (dispatched as UI:{event} with { id, row: itemData }) */
|
|
31
|
+
event: string;
|
|
32
|
+
/** Lucide icon name */
|
|
33
|
+
icon?: string;
|
|
34
|
+
/** Button variant */
|
|
35
|
+
variant?: 'primary' | 'secondary' | 'ghost' | 'danger';
|
|
36
|
+
}
|
|
37
|
+
export interface DataListProps {
|
|
38
|
+
/** Entity data array */
|
|
39
|
+
entity: unknown | readonly unknown[];
|
|
40
|
+
/** Field definitions for rendering each row */
|
|
41
|
+
fields: readonly DataListField[];
|
|
42
|
+
/** Alias for fields (compiler may generate `columns` for field definitions) */
|
|
43
|
+
columns?: readonly DataListField[];
|
|
44
|
+
/** Per-item action buttons */
|
|
45
|
+
itemActions?: readonly DataListItemAction[];
|
|
46
|
+
/** Gap between rows */
|
|
47
|
+
gap?: 'none' | 'sm' | 'md' | 'lg';
|
|
48
|
+
/** Visual variant */
|
|
49
|
+
variant?: 'default' | 'card' | 'compact' | 'message';
|
|
50
|
+
/** Group items by a field value (renders section headers between groups) */
|
|
51
|
+
groupBy?: string;
|
|
52
|
+
/** Field name identifying the sender (used with variant: "message") */
|
|
53
|
+
senderField?: string;
|
|
54
|
+
/** Current user identifier; messages matching this value align right (used with variant: "message") */
|
|
55
|
+
currentUser?: string;
|
|
56
|
+
/** Additional CSS classes */
|
|
57
|
+
className?: string;
|
|
58
|
+
/** Loading state */
|
|
59
|
+
isLoading?: boolean;
|
|
60
|
+
/** Error state */
|
|
61
|
+
error?: Error | null;
|
|
62
|
+
/** Enable drag-to-reorder with grip handles */
|
|
63
|
+
reorderable?: boolean;
|
|
64
|
+
/** Event emitted on reorder: UI:{reorderEvent} with { fromIndex, toIndex } */
|
|
65
|
+
reorderEvent?: string;
|
|
66
|
+
/** Event emitted on left swipe: UI:{swipeLeftEvent} with { row } */
|
|
67
|
+
swipeLeftEvent?: string;
|
|
68
|
+
/** Actions revealed on left swipe */
|
|
69
|
+
swipeLeftActions?: readonly {
|
|
70
|
+
label: string;
|
|
71
|
+
icon?: string;
|
|
72
|
+
variant?: 'primary' | 'secondary' | 'danger' | 'ghost';
|
|
73
|
+
}[];
|
|
74
|
+
/** Event emitted on right swipe: UI:{swipeRightEvent} with { row } */
|
|
75
|
+
swipeRightEvent?: string;
|
|
76
|
+
/** Actions revealed on right swipe */
|
|
77
|
+
swipeRightActions?: readonly {
|
|
78
|
+
label: string;
|
|
79
|
+
icon?: string;
|
|
80
|
+
variant?: 'primary' | 'secondary' | 'danger' | 'ghost';
|
|
81
|
+
}[];
|
|
82
|
+
/** Event emitted on long press: UI:{longPressEvent} with { row } */
|
|
83
|
+
longPressEvent?: string;
|
|
84
|
+
/** Enable infinite scroll loading */
|
|
85
|
+
infiniteScroll?: boolean;
|
|
86
|
+
/** Event emitted when more items needed: UI:{loadMoreEvent} */
|
|
87
|
+
loadMoreEvent?: string;
|
|
88
|
+
/** Whether more items are available for infinite scroll */
|
|
89
|
+
hasMore?: boolean;
|
|
90
|
+
/** Render prop for custom per-item content. When provided, `fields` and `itemActions` are ignored. */
|
|
91
|
+
children?: (item: Record<string, unknown>, index: number) => React.ReactNode;
|
|
92
|
+
/** Max items to show before "Show More" button. Defaults to 5. Set to 0 to disable. */
|
|
93
|
+
pageSize?: number;
|
|
94
|
+
}
|
|
95
|
+
export declare const DataList: React.FC<DataListProps>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DateRangeSelector Molecule Component
|
|
3
|
+
*
|
|
4
|
+
* Button group for selecting time range periods.
|
|
5
|
+
* Pure UI molecule with no entity binding.
|
|
6
|
+
*/
|
|
7
|
+
import React from 'react';
|
|
8
|
+
export interface DateRangeSelectorOption {
|
|
9
|
+
label: string;
|
|
10
|
+
value: string;
|
|
11
|
+
}
|
|
12
|
+
export interface DateRangeSelectorProps {
|
|
13
|
+
/** Available range options */
|
|
14
|
+
options?: DateRangeSelectorOption[];
|
|
15
|
+
/** Currently selected value */
|
|
16
|
+
selected?: string;
|
|
17
|
+
/** Callback when a range is selected */
|
|
18
|
+
onSelect?: (value: string) => void;
|
|
19
|
+
/** Additional CSS classes */
|
|
20
|
+
className?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare const DateRangeSelector: React.FC<DateRangeSelectorProps>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Drawer Molecule Component
|
|
3
|
+
*
|
|
4
|
+
* A slide-in drawer component for displaying secondary content.
|
|
5
|
+
* Used by the UI Slot system for render_ui effects targeting the drawer slot.
|
|
6
|
+
*
|
|
7
|
+
* Features:
|
|
8
|
+
* - Left/right positioning
|
|
9
|
+
* - Configurable width
|
|
10
|
+
* - Overlay backdrop
|
|
11
|
+
* - Click-outside to dismiss
|
|
12
|
+
* - Slide animation
|
|
13
|
+
* - Escape key to close
|
|
14
|
+
*
|
|
15
|
+
* @packageDocumentation
|
|
16
|
+
*/
|
|
17
|
+
import React from "react";
|
|
18
|
+
export type DrawerPosition = "left" | "right";
|
|
19
|
+
export type DrawerSize = "sm" | "md" | "lg" | "xl" | "full";
|
|
20
|
+
export interface DrawerProps {
|
|
21
|
+
/** Whether the drawer is open (defaults to true when rendered by slot wrapper) */
|
|
22
|
+
isOpen?: boolean;
|
|
23
|
+
/** Callback when drawer should close (injected by slot wrapper) */
|
|
24
|
+
onClose?: () => void;
|
|
25
|
+
/** Drawer title */
|
|
26
|
+
title?: string;
|
|
27
|
+
/** Drawer content (can be empty if using slot content) */
|
|
28
|
+
children?: React.ReactNode;
|
|
29
|
+
/** Footer content */
|
|
30
|
+
footer?: React.ReactNode;
|
|
31
|
+
/** Position (left or right) */
|
|
32
|
+
position?: DrawerPosition;
|
|
33
|
+
/** Width (CSS value or preset size) */
|
|
34
|
+
width?: string | DrawerSize;
|
|
35
|
+
/** Show close button */
|
|
36
|
+
showCloseButton?: boolean;
|
|
37
|
+
/** Close on overlay click */
|
|
38
|
+
closeOnOverlayClick?: boolean;
|
|
39
|
+
/** Close on escape key */
|
|
40
|
+
closeOnEscape?: boolean;
|
|
41
|
+
/** Additional class name */
|
|
42
|
+
className?: string;
|
|
43
|
+
/** Declarative close event — emits UI:{closeEvent} via eventBus when drawer should close */
|
|
44
|
+
closeEvent?: string;
|
|
45
|
+
}
|
|
46
|
+
export declare const Drawer: React.FC<DrawerProps>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { LucideIcon } from "lucide-react";
|
|
3
|
+
export interface EmptyStateProps {
|
|
4
|
+
/**
|
|
5
|
+
* Icon to display. Accepts either:
|
|
6
|
+
* - A Lucide icon component (LucideIcon)
|
|
7
|
+
* - A string icon name (e.g., "check-circle", "x-circle")
|
|
8
|
+
*/
|
|
9
|
+
icon?: LucideIcon | string;
|
|
10
|
+
/** Primary text to display - use title or message (message is alias for backwards compat) */
|
|
11
|
+
title?: string;
|
|
12
|
+
/** Alias for title - used by schema patterns */
|
|
13
|
+
message?: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
actionLabel?: string;
|
|
16
|
+
onAction?: () => void;
|
|
17
|
+
className?: string;
|
|
18
|
+
/** Destructive styling for confirmation dialogs */
|
|
19
|
+
destructive?: boolean;
|
|
20
|
+
/** Variant for color styling */
|
|
21
|
+
variant?: "default" | "success" | "error" | "warning" | "info";
|
|
22
|
+
/** Declarative action event — emits UI:{actionEvent} via eventBus when action button is clicked */
|
|
23
|
+
actionEvent?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare const EmptyState: React.FC<EmptyStateProps>;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ReactNode, ErrorInfo } from 'react';
|
|
3
|
+
export interface ErrorBoundaryProps {
|
|
4
|
+
/** Content to render when no error */
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
/** Fallback UI when an error is caught — ReactNode or render function */
|
|
7
|
+
fallback?: ReactNode | ((error: Error, reset: () => void) => ReactNode);
|
|
8
|
+
/** Additional CSS classes for the wrapper */
|
|
9
|
+
className?: string;
|
|
10
|
+
/** Called when an error is caught (for logging/telemetry) */
|
|
11
|
+
onError?: (error: Error, errorInfo: ErrorInfo) => void;
|
|
12
|
+
}
|
|
13
|
+
interface ErrorBoundaryState {
|
|
14
|
+
error: Error | null;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* ErrorBoundary — catches React render errors in child components.
|
|
18
|
+
*
|
|
19
|
+
* Uses `getDerivedStateFromError` and `componentDidCatch` to capture errors
|
|
20
|
+
* and render a fallback UI. Supports both static ReactNode fallbacks and
|
|
21
|
+
* render-function fallbacks that receive the error and a reset function.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```tsx
|
|
25
|
+
* // Static fallback
|
|
26
|
+
* <ErrorBoundary fallback={<Alert variant="error">Something broke</Alert>}>
|
|
27
|
+
* <MyComponent />
|
|
28
|
+
* </ErrorBoundary>
|
|
29
|
+
*
|
|
30
|
+
* // Render function fallback with reset
|
|
31
|
+
* <ErrorBoundary fallback={(error, reset) => (
|
|
32
|
+
* <VStack>
|
|
33
|
+
* <Typography>Error: {error.message}</Typography>
|
|
34
|
+
* <Button onClick={reset}>Try Again</Button>
|
|
35
|
+
* </VStack>
|
|
36
|
+
* )}>
|
|
37
|
+
* <MyComponent />
|
|
38
|
+
* </ErrorBoundary>
|
|
39
|
+
*
|
|
40
|
+
* // Default fallback (uses ErrorState molecule)
|
|
41
|
+
* <ErrorBoundary>
|
|
42
|
+
* <MyComponent />
|
|
43
|
+
* </ErrorBoundary>
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
export declare class ErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
47
|
+
static displayName: string;
|
|
48
|
+
constructor(props: ErrorBoundaryProps);
|
|
49
|
+
static getDerivedStateFromError(error: Error): ErrorBoundaryState;
|
|
50
|
+
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
51
|
+
private reset;
|
|
52
|
+
render(): ReactNode;
|
|
53
|
+
private renderFallback;
|
|
54
|
+
}
|
|
55
|
+
export default ErrorBoundary;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface ErrorStateProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
/** Error message to display */
|
|
5
|
+
message?: string;
|
|
6
|
+
/** Alias for message (schema compatibility) */
|
|
7
|
+
description?: string;
|
|
8
|
+
onRetry?: () => void;
|
|
9
|
+
className?: string;
|
|
10
|
+
/** Declarative retry event — emits UI:{retryEvent} via eventBus when retry button is clicked */
|
|
11
|
+
retryEvent?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const ErrorState: React.FC<ErrorStateProps>;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FilterGroup Molecule Component
|
|
3
|
+
*
|
|
4
|
+
* A component for filtering entity data. Composes atoms (Button, Select, Badge, HStack)
|
|
5
|
+
* and follows the design system using CSS variables.
|
|
6
|
+
*
|
|
7
|
+
* Implements the Closed Circuit principle:
|
|
8
|
+
* - FilterGroup updates QuerySingleton filters via query prop
|
|
9
|
+
* - FilterGroup emits UI:FILTER events for trait state machines
|
|
10
|
+
* - entity-list/entity-cards read filtered data via query prop
|
|
11
|
+
*
|
|
12
|
+
* Supports Query Singleton pattern via `query` prop for std/Filter behavior.
|
|
13
|
+
*/
|
|
14
|
+
import React from "react";
|
|
15
|
+
/** Filter definition from schema */
|
|
16
|
+
export interface FilterDefinition {
|
|
17
|
+
field: string;
|
|
18
|
+
label: string;
|
|
19
|
+
/** Filter type - 'date' renders a date picker, 'date-range'/'daterange' renders two date pickers */
|
|
20
|
+
filterType?: "select" | "toggle" | "checkbox" | "date" | "daterange" | "date-range";
|
|
21
|
+
/** Alias for filterType (schema compatibility) */
|
|
22
|
+
type?: "select" | "toggle" | "checkbox" | "date" | "daterange" | "date-range";
|
|
23
|
+
/** Options for select/toggle filters */
|
|
24
|
+
options?: readonly string[];
|
|
25
|
+
}
|
|
26
|
+
export interface FilterGroupProps {
|
|
27
|
+
/** Entity name to filter */
|
|
28
|
+
entity: string;
|
|
29
|
+
/** Filter definitions from schema */
|
|
30
|
+
filters: readonly FilterDefinition[];
|
|
31
|
+
/** Callback when a filter changes - for EntityStore integration */
|
|
32
|
+
onFilterChange?: (field: string, value: string | null) => void;
|
|
33
|
+
/** Callback to clear all filters */
|
|
34
|
+
onClearAll?: () => void;
|
|
35
|
+
/** Additional CSS classes */
|
|
36
|
+
className?: string;
|
|
37
|
+
/** Variant style */
|
|
38
|
+
variant?: "default" | "compact" | "pills" | "vertical";
|
|
39
|
+
/** Show filter icon */
|
|
40
|
+
showIcon?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Query singleton binding for state management.
|
|
43
|
+
* When provided, syncs filter state with the query singleton.
|
|
44
|
+
* Example: "@TaskQuery"
|
|
45
|
+
*/
|
|
46
|
+
query?: string;
|
|
47
|
+
/** Loading state indicator */
|
|
48
|
+
isLoading?: boolean;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* FilterGroup - Renders filter controls for entity data
|
|
52
|
+
* Uses atoms: Button, Select, Badge, HStack
|
|
53
|
+
*/
|
|
54
|
+
export declare const FilterGroup: React.FC<FilterGroupProps>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Flex Component
|
|
3
|
+
*
|
|
4
|
+
* A flexbox wrapper with all common flex properties exposed as props.
|
|
5
|
+
* More explicit than Stack for when you need full flex control.
|
|
6
|
+
*/
|
|
7
|
+
import React from 'react';
|
|
8
|
+
export type FlexDirection = 'row' | 'row-reverse' | 'col' | 'col-reverse';
|
|
9
|
+
export type FlexWrap = 'nowrap' | 'wrap' | 'wrap-reverse';
|
|
10
|
+
export type FlexAlign = 'start' | 'center' | 'end' | 'stretch' | 'baseline';
|
|
11
|
+
export type FlexJustify = 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly';
|
|
12
|
+
export type FlexGap = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
13
|
+
export interface FlexProps {
|
|
14
|
+
/** Flex direction */
|
|
15
|
+
direction?: FlexDirection;
|
|
16
|
+
/** Flex wrap */
|
|
17
|
+
wrap?: FlexWrap;
|
|
18
|
+
/** Align items */
|
|
19
|
+
align?: FlexAlign;
|
|
20
|
+
/** Justify content */
|
|
21
|
+
justify?: FlexJustify;
|
|
22
|
+
/** Gap between items */
|
|
23
|
+
gap?: FlexGap;
|
|
24
|
+
/** Inline flex */
|
|
25
|
+
inline?: boolean;
|
|
26
|
+
/** Flex grow */
|
|
27
|
+
grow?: boolean | number;
|
|
28
|
+
/** Flex shrink */
|
|
29
|
+
shrink?: boolean | number;
|
|
30
|
+
/** Flex basis */
|
|
31
|
+
basis?: string | number;
|
|
32
|
+
/** Custom class name */
|
|
33
|
+
className?: string;
|
|
34
|
+
/** Children elements */
|
|
35
|
+
children: React.ReactNode;
|
|
36
|
+
/** HTML element to render as */
|
|
37
|
+
as?: React.ElementType;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Flex - Full-featured flexbox container
|
|
41
|
+
*/
|
|
42
|
+
export declare const Flex: React.FC<FlexProps>;
|
|
43
|
+
export default Flex;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FlipCard - A two-sided card with 3D flip animation.
|
|
3
|
+
*
|
|
4
|
+
* Pure presentational molecule: no entity binding, no event bus, no translations.
|
|
5
|
+
* Uses the FlipContainer atom for the 3D transform mechanics.
|
|
6
|
+
*/
|
|
7
|
+
import React from 'react';
|
|
8
|
+
export interface FlipCardProps {
|
|
9
|
+
/** Content rendered on the front face */
|
|
10
|
+
front: React.ReactNode;
|
|
11
|
+
/** Content rendered on the back face */
|
|
12
|
+
back: React.ReactNode;
|
|
13
|
+
/** Controlled flip state */
|
|
14
|
+
flipped?: boolean;
|
|
15
|
+
/** Callback when the card is clicked to flip */
|
|
16
|
+
onFlip?: () => void;
|
|
17
|
+
/** Optional className for the outer container */
|
|
18
|
+
className?: string;
|
|
19
|
+
/** Card height as a Tailwind class (default: 'h-64') */
|
|
20
|
+
height?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare const FlipCard: {
|
|
23
|
+
({ front, back, flipped, onFlip, className, height, }: FlipCardProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
displayName: string;
|
|
25
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FloatingActionButton Molecule Component
|
|
3
|
+
*
|
|
4
|
+
* A floating action button that can expand into multiple actions vertically.
|
|
5
|
+
* Uses Button atom.
|
|
6
|
+
*/
|
|
7
|
+
import React from "react";
|
|
8
|
+
import type { LucideIcon } from "lucide-react";
|
|
9
|
+
export interface FloatingAction {
|
|
10
|
+
/**
|
|
11
|
+
* Action ID
|
|
12
|
+
*/
|
|
13
|
+
id: string;
|
|
14
|
+
/**
|
|
15
|
+
* Action label
|
|
16
|
+
*/
|
|
17
|
+
label: string;
|
|
18
|
+
/**
|
|
19
|
+
* Action icon
|
|
20
|
+
*/
|
|
21
|
+
icon: LucideIcon;
|
|
22
|
+
/**
|
|
23
|
+
* Action click handler
|
|
24
|
+
*/
|
|
25
|
+
onClick?: () => void;
|
|
26
|
+
/** Event name to emit when clicked (for trait state machine integration) */
|
|
27
|
+
event?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Action variant
|
|
30
|
+
*/
|
|
31
|
+
variant?: "primary" | "secondary" | "success" | "danger" | "warning";
|
|
32
|
+
}
|
|
33
|
+
export interface FloatingActionButtonProps {
|
|
34
|
+
/**
|
|
35
|
+
* Single action (if only one action, button will directly trigger onClick)
|
|
36
|
+
*/
|
|
37
|
+
action?: {
|
|
38
|
+
icon: LucideIcon;
|
|
39
|
+
onClick: () => void;
|
|
40
|
+
label?: string;
|
|
41
|
+
variant?: "primary" | "secondary" | "success" | "danger" | "warning";
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Multiple actions (if provided, button will expand to show all actions)
|
|
45
|
+
*/
|
|
46
|
+
actions?: FloatingAction[];
|
|
47
|
+
/**
|
|
48
|
+
* Icon name (simplified API for pattern compatibility)
|
|
49
|
+
*/
|
|
50
|
+
icon?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Click handler (simplified API for pattern compatibility)
|
|
53
|
+
*/
|
|
54
|
+
onClick?: () => void;
|
|
55
|
+
/**
|
|
56
|
+
* Variant (simplified API for pattern compatibility)
|
|
57
|
+
*/
|
|
58
|
+
variant?: "primary" | "secondary" | "success" | "danger" | "warning";
|
|
59
|
+
/**
|
|
60
|
+
* Button position
|
|
61
|
+
* @default 'bottom-right'
|
|
62
|
+
*/
|
|
63
|
+
position?: "bottom-right" | "bottom-left" | "bottom-center" | "top-right" | "top-left" | "top-center" | string;
|
|
64
|
+
/**
|
|
65
|
+
* Additional CSS classes
|
|
66
|
+
*/
|
|
67
|
+
className?: string;
|
|
68
|
+
}
|
|
69
|
+
export declare const FloatingActionButton: React.FC<FloatingActionButtonProps>;
|