@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,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RepeatableFormSection
|
|
3
|
+
*
|
|
4
|
+
* A form section that can be repeated multiple times.
|
|
5
|
+
* Used for collecting multiple entries (participants, findings, etc.)
|
|
6
|
+
*
|
|
7
|
+
* Enhanced with trackAddedInState for inspection audit trails.
|
|
8
|
+
*
|
|
9
|
+
* Event Contract:
|
|
10
|
+
* - Emits: UI:SECTION_ADDED { sectionType, index, addedInState? }
|
|
11
|
+
* - Emits: UI:SECTION_REMOVED { sectionType, index, itemId }
|
|
12
|
+
*/
|
|
13
|
+
import React from "react";
|
|
14
|
+
export interface RepeatableItem {
|
|
15
|
+
id: string;
|
|
16
|
+
/** State in which this item was added (for audit trails) */
|
|
17
|
+
addedInState?: string;
|
|
18
|
+
/** Timestamp when item was added */
|
|
19
|
+
addedAt?: string;
|
|
20
|
+
[key: string]: unknown;
|
|
21
|
+
}
|
|
22
|
+
export interface RepeatableFormSectionProps {
|
|
23
|
+
/** Section type identifier */
|
|
24
|
+
sectionType: string;
|
|
25
|
+
/** Section title */
|
|
26
|
+
title: string;
|
|
27
|
+
/** Items in the section */
|
|
28
|
+
items: RepeatableItem[];
|
|
29
|
+
/** Render function for each item */
|
|
30
|
+
renderItem: (item: RepeatableItem, index: number) => React.ReactNode;
|
|
31
|
+
/** Minimum items required */
|
|
32
|
+
minItems?: number;
|
|
33
|
+
/** Maximum items allowed */
|
|
34
|
+
maxItems?: number;
|
|
35
|
+
/** Allow reordering */
|
|
36
|
+
allowReorder?: boolean;
|
|
37
|
+
/** Add button label */
|
|
38
|
+
addLabel?: string;
|
|
39
|
+
/** Empty state message */
|
|
40
|
+
emptyMessage?: string;
|
|
41
|
+
/** Read-only mode */
|
|
42
|
+
readOnly?: boolean;
|
|
43
|
+
/** Additional CSS classes */
|
|
44
|
+
className?: string;
|
|
45
|
+
/** Add handler */
|
|
46
|
+
onAdd?: () => void;
|
|
47
|
+
/** Remove handler */
|
|
48
|
+
onRemove?: (itemId: string, index: number) => void;
|
|
49
|
+
/** Reorder handler */
|
|
50
|
+
onReorder?: (fromIndex: number, toIndex: number) => void;
|
|
51
|
+
/** Track the state in which items are added (for inspection audit) */
|
|
52
|
+
trackAddedInState?: boolean;
|
|
53
|
+
/** Current inspection state (used when trackAddedInState is true) */
|
|
54
|
+
currentState?: string;
|
|
55
|
+
/** Show audit metadata (addedInState, addedAt) */
|
|
56
|
+
showAuditInfo?: boolean;
|
|
57
|
+
}
|
|
58
|
+
export declare const RepeatableFormSection: React.FC<RepeatableFormSectionProps>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ScaledDiagram Molecule
|
|
3
|
+
*
|
|
4
|
+
* Wraps a fixed-size diagram (like JazariStateMachine / StateMachineView)
|
|
5
|
+
* and CSS-scales it to fit the parent container width.
|
|
6
|
+
*
|
|
7
|
+
* The diagram renders at its natural (large) size. We observe the content
|
|
8
|
+
* element and once the diagram is measured we apply transform:scale() with
|
|
9
|
+
* a corrected container height so surrounding layout flows correctly.
|
|
10
|
+
*
|
|
11
|
+
* Event Contract:
|
|
12
|
+
* - No events emitted (layout-only wrapper)
|
|
13
|
+
* - entityAware: false
|
|
14
|
+
*/
|
|
15
|
+
import React from 'react';
|
|
16
|
+
export interface ScaledDiagramProps {
|
|
17
|
+
children: React.ReactNode;
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare const ScaledDiagram: React.FC<ScaledDiagramProps>;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SearchInput Molecule Component
|
|
3
|
+
*
|
|
4
|
+
* A search input component with icon, clear button, and loading state.
|
|
5
|
+
* Uses Input, Icon, Button, and Spinner atoms.
|
|
6
|
+
*
|
|
7
|
+
* Supports Query Singleton pattern via `query` prop for std/Search behavior.
|
|
8
|
+
*/
|
|
9
|
+
import React from 'react';
|
|
10
|
+
export interface SearchInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> {
|
|
11
|
+
/**
|
|
12
|
+
* Search value (controlled mode)
|
|
13
|
+
*/
|
|
14
|
+
value?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Callback when search value changes
|
|
17
|
+
*/
|
|
18
|
+
onSearch?: (value: string) => void;
|
|
19
|
+
/**
|
|
20
|
+
* Debounce delay in milliseconds
|
|
21
|
+
* @default 300
|
|
22
|
+
*/
|
|
23
|
+
debounceMs?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Show loading state
|
|
26
|
+
* @default false
|
|
27
|
+
*/
|
|
28
|
+
isLoading?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Placeholder text
|
|
31
|
+
* @default 'Search...'
|
|
32
|
+
*/
|
|
33
|
+
placeholder?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Show clear button
|
|
36
|
+
* @default true
|
|
37
|
+
*/
|
|
38
|
+
clearable?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Additional CSS classes
|
|
41
|
+
*/
|
|
42
|
+
className?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Event name to dispatch on search (schema metadata, wired by trait)
|
|
45
|
+
* This is metadata used by the trait generator, not by the component.
|
|
46
|
+
*/
|
|
47
|
+
event?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Entity type for context-aware search.
|
|
50
|
+
* When provided, search events include entity context.
|
|
51
|
+
*/
|
|
52
|
+
entity?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Query singleton binding for state management.
|
|
55
|
+
* When provided, syncs search state with the query singleton.
|
|
56
|
+
* Example: "@TaskQuery"
|
|
57
|
+
*/
|
|
58
|
+
query?: string;
|
|
59
|
+
}
|
|
60
|
+
export declare const SearchInput: React.FC<SearchInputProps>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SidePanel Molecule Component
|
|
3
|
+
*
|
|
4
|
+
* A side panel that slides in from the right (or left) with header and content.
|
|
5
|
+
* Uses Button, Typography atoms.
|
|
6
|
+
*/
|
|
7
|
+
import React from "react";
|
|
8
|
+
export interface SidePanelProps {
|
|
9
|
+
/**
|
|
10
|
+
* Panel title
|
|
11
|
+
*/
|
|
12
|
+
title: string;
|
|
13
|
+
/**
|
|
14
|
+
* Panel content
|
|
15
|
+
*/
|
|
16
|
+
children: React.ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* Is panel open
|
|
19
|
+
*/
|
|
20
|
+
isOpen: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* On close handler
|
|
23
|
+
*/
|
|
24
|
+
onClose: () => void;
|
|
25
|
+
/**
|
|
26
|
+
* Panel width
|
|
27
|
+
* @default 'w-96'
|
|
28
|
+
*/
|
|
29
|
+
width?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Panel position
|
|
32
|
+
* @default 'right'
|
|
33
|
+
*/
|
|
34
|
+
position?: "left" | "right";
|
|
35
|
+
/**
|
|
36
|
+
* Show overlay on mobile
|
|
37
|
+
* @default true
|
|
38
|
+
*/
|
|
39
|
+
showOverlay?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Additional CSS classes
|
|
42
|
+
*/
|
|
43
|
+
className?: string;
|
|
44
|
+
/** Declarative close event — emits UI:{closeEvent} via eventBus when panel should close */
|
|
45
|
+
closeEvent?: string;
|
|
46
|
+
}
|
|
47
|
+
export declare const SidePanel: React.FC<SidePanelProps>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SimpleGrid Component
|
|
3
|
+
*
|
|
4
|
+
* A simplified grid that automatically adjusts columns based on available space.
|
|
5
|
+
* Perfect for card layouts and item collections.
|
|
6
|
+
*/
|
|
7
|
+
import React from 'react';
|
|
8
|
+
export type SimpleGridGap = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
9
|
+
export interface SimpleGridProps {
|
|
10
|
+
/** Minimum width of each child (e.g., 200, "200px", "15rem") */
|
|
11
|
+
minChildWidth?: number | string;
|
|
12
|
+
/** Maximum number of columns */
|
|
13
|
+
maxCols?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
14
|
+
/** Exact number of columns (disables auto-fit) */
|
|
15
|
+
cols?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
16
|
+
/** Gap between items */
|
|
17
|
+
gap?: SimpleGridGap;
|
|
18
|
+
/** Custom class name */
|
|
19
|
+
className?: string;
|
|
20
|
+
/** Children elements */
|
|
21
|
+
children: React.ReactNode;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* SimpleGrid - Auto-responsive grid layout
|
|
25
|
+
*/
|
|
26
|
+
export declare const SimpleGrid: React.FC<SimpleGridProps>;
|
|
27
|
+
export default SimpleGrid;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type SkeletonVariant = 'header' | 'table' | 'form' | 'card' | 'text';
|
|
3
|
+
export interface SkeletonProps {
|
|
4
|
+
/** The skeleton variant to render */
|
|
5
|
+
variant?: SkeletonVariant;
|
|
6
|
+
/** Number of rows for table/text variants */
|
|
7
|
+
rows?: number;
|
|
8
|
+
/** Number of columns for table variant */
|
|
9
|
+
columns?: number;
|
|
10
|
+
/** Number of fields for form variant */
|
|
11
|
+
fields?: number;
|
|
12
|
+
/** Additional CSS classes */
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Skeleton — loading placeholder with 5 variants for Suspense fallbacks.
|
|
17
|
+
*
|
|
18
|
+
* Variants: `header`, `table`, `form`, `card`, `text`.
|
|
19
|
+
* Used as fallback content inside `<Suspense>` boundaries.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```tsx
|
|
23
|
+
* <Suspense fallback={<Skeleton variant="table" rows={8} columns={5} />}>
|
|
24
|
+
* <DataTable entity="Task" />
|
|
25
|
+
* </Suspense>
|
|
26
|
+
*
|
|
27
|
+
* <Suspense fallback={<Skeleton variant="form" fields={6} />}>
|
|
28
|
+
* <Form entity="Task" />
|
|
29
|
+
* </Suspense>
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export declare function Skeleton({ variant, rows, columns, fields, className, }: SkeletonProps): React.ReactElement;
|
|
33
|
+
export declare namespace Skeleton {
|
|
34
|
+
var displayName: string;
|
|
35
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SortableList Molecule
|
|
3
|
+
*
|
|
4
|
+
* A list where items can be dragged to reorder via drag handles.
|
|
5
|
+
* Uses useDragReorder for drag state management and useEventBus for event emission.
|
|
6
|
+
* Shows a drop indicator line at the target position during drag.
|
|
7
|
+
*/
|
|
8
|
+
import React from 'react';
|
|
9
|
+
export interface SortableListProps<T = Record<string, unknown>> {
|
|
10
|
+
items: T[];
|
|
11
|
+
renderItem: (item: T, index: number) => React.ReactNode;
|
|
12
|
+
reorderEvent: string;
|
|
13
|
+
reorderPayload?: Record<string, unknown>;
|
|
14
|
+
dragHandlePosition?: 'left' | 'right';
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const SortableList: <T = Record<string, unknown>>(props: SortableListProps<T>) => React.ReactElement;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type StarRatingSize = "sm" | "md" | "lg";
|
|
3
|
+
export type StarRatingPrecision = "full" | "half";
|
|
4
|
+
export interface StarRatingProps {
|
|
5
|
+
/** Current rating value */
|
|
6
|
+
value?: number;
|
|
7
|
+
/** Maximum number of stars */
|
|
8
|
+
max?: number;
|
|
9
|
+
/** Read-only display mode */
|
|
10
|
+
readOnly?: boolean;
|
|
11
|
+
/** Full or half-star precision */
|
|
12
|
+
precision?: StarRatingPrecision;
|
|
13
|
+
/** Star size */
|
|
14
|
+
size?: StarRatingSize;
|
|
15
|
+
/** Declarative event name for rating changes */
|
|
16
|
+
action?: string;
|
|
17
|
+
/** Payload to include with the action event */
|
|
18
|
+
actionPayload?: Record<string, unknown>;
|
|
19
|
+
/** Direct onChange callback */
|
|
20
|
+
onChange?: (value: number) => void;
|
|
21
|
+
/** Additional CSS classes */
|
|
22
|
+
className?: string;
|
|
23
|
+
/** Accessible label */
|
|
24
|
+
label?: string;
|
|
25
|
+
}
|
|
26
|
+
export declare const StarRating: React.FC<StarRatingProps>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* StatDisplay Molecule
|
|
3
|
+
*
|
|
4
|
+
* A compact stat display: label + value + optional icon.
|
|
5
|
+
* Molecule-level replacement for the stats (StatCard) organism in behavior schemas.
|
|
6
|
+
* No entity prop, no data fetching, no hooks beyond icon resolution.
|
|
7
|
+
*/
|
|
8
|
+
import React from 'react';
|
|
9
|
+
export interface StatDisplayProps {
|
|
10
|
+
/** Display label (e.g., "Total", "Remaining") */
|
|
11
|
+
label: string;
|
|
12
|
+
/** Primary value (number or formatted string) */
|
|
13
|
+
value: number | string;
|
|
14
|
+
/** Maximum value (renders as "value / max") */
|
|
15
|
+
max?: number;
|
|
16
|
+
/** Lucide icon name or React node */
|
|
17
|
+
icon?: React.ReactNode;
|
|
18
|
+
/** Icon background color class */
|
|
19
|
+
iconBg?: string;
|
|
20
|
+
/** Icon color class */
|
|
21
|
+
iconColor?: string;
|
|
22
|
+
/** Display format: "number", "currency", "percent" */
|
|
23
|
+
format?: string;
|
|
24
|
+
/** Size variant */
|
|
25
|
+
size?: 'sm' | 'md' | 'lg';
|
|
26
|
+
/** Color variant */
|
|
27
|
+
variant?: 'default' | 'primary' | 'success' | 'warning' | 'error' | 'info';
|
|
28
|
+
/** Compact mode (inline, no card wrapper) */
|
|
29
|
+
compact?: boolean;
|
|
30
|
+
/** Additional CSS classes */
|
|
31
|
+
className?: string;
|
|
32
|
+
/** Loading state */
|
|
33
|
+
isLoading?: boolean;
|
|
34
|
+
/** Error state */
|
|
35
|
+
error?: Error | null;
|
|
36
|
+
}
|
|
37
|
+
export declare const StatDisplay: React.FC<StatDisplayProps>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SwipeableRow Molecule
|
|
3
|
+
*
|
|
4
|
+
* Wraps a list item to reveal action buttons on horizontal swipe.
|
|
5
|
+
* Swipe left to reveal right actions, swipe right to reveal left actions.
|
|
6
|
+
* Uses useSwipeGesture for gesture detection and useEventBus for event emission.
|
|
7
|
+
*/
|
|
8
|
+
import React from 'react';
|
|
9
|
+
export interface SwipeAction {
|
|
10
|
+
label: string;
|
|
11
|
+
icon?: string;
|
|
12
|
+
variant?: 'primary' | 'secondary' | 'danger' | 'ghost';
|
|
13
|
+
event: string;
|
|
14
|
+
eventPayload?: Record<string, unknown>;
|
|
15
|
+
}
|
|
16
|
+
export interface SwipeableRowProps {
|
|
17
|
+
leftActions?: SwipeAction[];
|
|
18
|
+
rightActions?: SwipeAction[];
|
|
19
|
+
threshold?: number;
|
|
20
|
+
children: React.ReactNode;
|
|
21
|
+
itemData?: Record<string, unknown>;
|
|
22
|
+
className?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare const SwipeableRow: React.FC<SwipeableRowProps>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tabs Molecule Component
|
|
3
|
+
*
|
|
4
|
+
* A tabbed interface component with keyboard navigation and badge support.
|
|
5
|
+
* Uses theme-aware CSS variables for styling.
|
|
6
|
+
*/
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import type { LucideIcon } from 'lucide-react';
|
|
9
|
+
export interface TabItem {
|
|
10
|
+
/** Tab ID */
|
|
11
|
+
id: string;
|
|
12
|
+
/** Tab label */
|
|
13
|
+
label: string;
|
|
14
|
+
/** Tab content - optional for event-driven tabs */
|
|
15
|
+
content?: React.ReactNode;
|
|
16
|
+
/** Tab icon */
|
|
17
|
+
icon?: LucideIcon;
|
|
18
|
+
/** Tab badge */
|
|
19
|
+
badge?: string | number;
|
|
20
|
+
/** Disable tab */
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
/** Event to emit when tab is clicked (for trait state machine integration) */
|
|
23
|
+
event?: string;
|
|
24
|
+
/** Whether this tab is currently active (for controlled tabs) */
|
|
25
|
+
active?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface TabsProps {
|
|
28
|
+
/** Tab items */
|
|
29
|
+
items?: TabItem[];
|
|
30
|
+
/** Tab items (alias for items - used by generated code) */
|
|
31
|
+
tabs?: TabItem[];
|
|
32
|
+
/** Default active tab ID */
|
|
33
|
+
defaultActiveTab?: string;
|
|
34
|
+
/** Controlled active tab ID */
|
|
35
|
+
activeTab?: string;
|
|
36
|
+
/** Callback when tab changes */
|
|
37
|
+
onTabChange?: (tabId: string) => void;
|
|
38
|
+
/** Tab variant */
|
|
39
|
+
variant?: 'default' | 'pills' | 'underline';
|
|
40
|
+
/** Tab orientation */
|
|
41
|
+
orientation?: 'horizontal' | 'vertical';
|
|
42
|
+
/** Additional CSS classes */
|
|
43
|
+
className?: string;
|
|
44
|
+
}
|
|
45
|
+
export declare const Tabs: React.FC<TabsProps>;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Toast Molecule Component
|
|
3
|
+
*
|
|
4
|
+
* A toast notification component with auto-dismiss and action buttons.
|
|
5
|
+
* Uses theme-aware CSS variables for styling.
|
|
6
|
+
*/
|
|
7
|
+
import React from "react";
|
|
8
|
+
export type ToastVariant = "success" | "error" | "info" | "warning";
|
|
9
|
+
export interface ToastProps {
|
|
10
|
+
/** Toast variant */
|
|
11
|
+
variant?: ToastVariant;
|
|
12
|
+
/** Toast message */
|
|
13
|
+
message: string;
|
|
14
|
+
/** Toast title (optional) */
|
|
15
|
+
title?: string;
|
|
16
|
+
/** Auto-dismiss duration in milliseconds (0 = no auto-dismiss) */
|
|
17
|
+
duration?: number;
|
|
18
|
+
/** Show dismiss button */
|
|
19
|
+
dismissible?: boolean;
|
|
20
|
+
/** Callback when toast is dismissed */
|
|
21
|
+
onDismiss?: () => void;
|
|
22
|
+
/** Action button label */
|
|
23
|
+
actionLabel?: string;
|
|
24
|
+
/** Action button click handler */
|
|
25
|
+
onAction?: () => void;
|
|
26
|
+
/** Badge count (optional) */
|
|
27
|
+
badge?: string | number;
|
|
28
|
+
/** Additional CSS classes */
|
|
29
|
+
className?: string;
|
|
30
|
+
/** Declarative dismiss event — emits UI:{dismissEvent} via eventBus when toast is dismissed */
|
|
31
|
+
dismissEvent?: string;
|
|
32
|
+
/** Declarative action event — emits UI:{actionEvent} via eventBus when action button is clicked */
|
|
33
|
+
actionEvent?: string;
|
|
34
|
+
}
|
|
35
|
+
export declare const Toast: React.FC<ToastProps>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tooltip Molecule Component
|
|
3
|
+
*
|
|
4
|
+
* A tooltip component with position variants and delay options.
|
|
5
|
+
* Uses theme-aware CSS variables for styling.
|
|
6
|
+
*/
|
|
7
|
+
import React from 'react';
|
|
8
|
+
export type TooltipPosition = 'top' | 'bottom' | 'left' | 'right';
|
|
9
|
+
export interface TooltipProps {
|
|
10
|
+
/** Tooltip content */
|
|
11
|
+
content: React.ReactNode;
|
|
12
|
+
/** Tooltip trigger element (ReactElement or ReactNode that will be wrapped in span) */
|
|
13
|
+
children: React.ReactNode;
|
|
14
|
+
/** Tooltip position */
|
|
15
|
+
position?: TooltipPosition;
|
|
16
|
+
/** Show delay in milliseconds */
|
|
17
|
+
delay?: number;
|
|
18
|
+
/** Hide delay in milliseconds */
|
|
19
|
+
hideDelay?: number;
|
|
20
|
+
/** Show arrow */
|
|
21
|
+
showArrow?: boolean;
|
|
22
|
+
/** Additional CSS classes */
|
|
23
|
+
className?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare const Tooltip: React.FC<TooltipProps>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface UploadDropZoneProps {
|
|
3
|
+
/** Accepted MIME types (e.g., "image/*", "application/pdf") */
|
|
4
|
+
accept?: string;
|
|
5
|
+
/** Max file size in bytes */
|
|
6
|
+
maxSize?: number;
|
|
7
|
+
/** Max number of files */
|
|
8
|
+
maxFiles?: number;
|
|
9
|
+
/** Label text */
|
|
10
|
+
label?: string;
|
|
11
|
+
/** Description text below label */
|
|
12
|
+
description?: string;
|
|
13
|
+
/** Icon name (Lucide string) */
|
|
14
|
+
icon?: string;
|
|
15
|
+
/** Disabled state */
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
/** Declarative event name for file selection */
|
|
18
|
+
action?: string;
|
|
19
|
+
/** Payload to include with the action event */
|
|
20
|
+
actionPayload?: Record<string, unknown>;
|
|
21
|
+
/** Direct onFiles callback */
|
|
22
|
+
onFiles?: (files: File[]) => void;
|
|
23
|
+
/** Additional CSS classes */
|
|
24
|
+
className?: string;
|
|
25
|
+
}
|
|
26
|
+
export declare const UploadDropZone: React.FC<UploadDropZoneProps>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ViolationAlert
|
|
3
|
+
*
|
|
4
|
+
* Displays inspection violations with law references and action types.
|
|
5
|
+
* Used in inspection forms to show detected compliance violations.
|
|
6
|
+
*
|
|
7
|
+
* Action Types:
|
|
8
|
+
* - measure: Corrective measure required (warning)
|
|
9
|
+
* - admin: Administrative action (error)
|
|
10
|
+
* - penalty: Penalty proceedings (error, severe)
|
|
11
|
+
*/
|
|
12
|
+
import React from "react";
|
|
13
|
+
export interface ViolationRecord {
|
|
14
|
+
/** Unique violation identifier */
|
|
15
|
+
id: string;
|
|
16
|
+
/** Law reference (e.g., "ZVPOT-1") */
|
|
17
|
+
law: string;
|
|
18
|
+
/** Article reference (e.g., "14/1") */
|
|
19
|
+
article: string;
|
|
20
|
+
/** Violation message */
|
|
21
|
+
message: string;
|
|
22
|
+
/** Action type determines severity */
|
|
23
|
+
actionType: "measure" | "admin" | "penalty";
|
|
24
|
+
/** Administrative action reference (e.g., "ZVPOT-1 234/1-4") */
|
|
25
|
+
adminAction?: string;
|
|
26
|
+
/** Penalty action reference (e.g., "ZVPOT-1 240/1-9") */
|
|
27
|
+
penaltyAction?: string;
|
|
28
|
+
/** Field that triggered this violation */
|
|
29
|
+
fieldId?: string;
|
|
30
|
+
/** Tab/form where violation occurred */
|
|
31
|
+
tabId?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface ViolationAlertProps {
|
|
34
|
+
/** Violation data */
|
|
35
|
+
violation: ViolationRecord;
|
|
36
|
+
/** Visual severity (derived from actionType if not specified) */
|
|
37
|
+
severity?: "warning" | "error";
|
|
38
|
+
/** Dismissible alert */
|
|
39
|
+
dismissible?: boolean;
|
|
40
|
+
/** Dismiss handler */
|
|
41
|
+
onDismiss?: () => void;
|
|
42
|
+
/** Navigate to the field that caused violation */
|
|
43
|
+
onNavigateToField?: (fieldId: string) => void;
|
|
44
|
+
/** Compact display mode */
|
|
45
|
+
compact?: boolean;
|
|
46
|
+
/** Additional CSS classes */
|
|
47
|
+
className?: string;
|
|
48
|
+
}
|
|
49
|
+
export declare const ViolationAlert: React.FC<ViolationAlertProps>;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WizardNavigation Component
|
|
3
|
+
*
|
|
4
|
+
* Navigation buttons for multi-step wizards.
|
|
5
|
+
* Includes Back, Next, and Complete buttons with proper state handling.
|
|
6
|
+
*
|
|
7
|
+
* Emits events via useEventBus for trait integration.
|
|
8
|
+
* Uses wireframe theme styling (high contrast, sharp edges).
|
|
9
|
+
*/
|
|
10
|
+
import React from "react";
|
|
11
|
+
export interface WizardNavigationProps {
|
|
12
|
+
/** Current step index (0-based) */
|
|
13
|
+
currentStep: number;
|
|
14
|
+
/** Total number of steps */
|
|
15
|
+
totalSteps: number;
|
|
16
|
+
/** Whether the current step is valid (enables Next/Complete) */
|
|
17
|
+
isValid?: boolean;
|
|
18
|
+
/** Show the Back button */
|
|
19
|
+
showBack?: boolean;
|
|
20
|
+
/** Show the Next button */
|
|
21
|
+
showNext?: boolean;
|
|
22
|
+
/** Show the Complete button (on last step) */
|
|
23
|
+
showComplete?: boolean;
|
|
24
|
+
/** Custom label for Back button */
|
|
25
|
+
backLabel?: string;
|
|
26
|
+
/** Custom label for Next button */
|
|
27
|
+
nextLabel?: string;
|
|
28
|
+
/** Custom label for Complete button */
|
|
29
|
+
completeLabel?: string;
|
|
30
|
+
/** Event to emit on Back click */
|
|
31
|
+
onBack?: string;
|
|
32
|
+
/** Event to emit on Next click */
|
|
33
|
+
onNext?: string;
|
|
34
|
+
/** Event to emit on Complete click */
|
|
35
|
+
onComplete?: string;
|
|
36
|
+
/** Direct callback for Back (alternative to event) */
|
|
37
|
+
onBackClick?: () => void;
|
|
38
|
+
/** Direct callback for Next (alternative to event) */
|
|
39
|
+
onNextClick?: () => void;
|
|
40
|
+
/** Direct callback for Complete (alternative to event) */
|
|
41
|
+
onCompleteClick?: () => void;
|
|
42
|
+
/** Compact mode (smaller padding) */
|
|
43
|
+
compact?: boolean;
|
|
44
|
+
/** Additional CSS classes */
|
|
45
|
+
className?: string;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* WizardNavigation - Wizard navigation buttons
|
|
49
|
+
*/
|
|
50
|
+
export declare const WizardNavigation: React.FC<WizardNavigationProps>;
|
|
51
|
+
export default WizardNavigation;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WizardProgress Component
|
|
3
|
+
*
|
|
4
|
+
* Step progress indicator for multi-step wizards.
|
|
5
|
+
* Shows current step, completed steps, and allows navigation to completed steps.
|
|
6
|
+
*
|
|
7
|
+
* Uses wireframe theme styling (high contrast, sharp edges).
|
|
8
|
+
*/
|
|
9
|
+
import React from "react";
|
|
10
|
+
/**
|
|
11
|
+
* Step info needed by WizardProgress.
|
|
12
|
+
* Compatible with WizardContainer's WizardStep (subset of fields).
|
|
13
|
+
*/
|
|
14
|
+
export interface WizardProgressStep {
|
|
15
|
+
/** Step identifier */
|
|
16
|
+
id: string;
|
|
17
|
+
/** Step title */
|
|
18
|
+
title: string;
|
|
19
|
+
/** Step description (optional) */
|
|
20
|
+
description?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface WizardProgressProps {
|
|
23
|
+
/** Step definitions (compatible with WizardContainer's WizardStep) */
|
|
24
|
+
steps: WizardProgressStep[];
|
|
25
|
+
/** Current step index (0-based) */
|
|
26
|
+
currentStep: number;
|
|
27
|
+
/** Callback when a completed step is clicked */
|
|
28
|
+
onStepClick?: (stepIndex: number) => void;
|
|
29
|
+
/** Allow clicking on completed steps to navigate back */
|
|
30
|
+
allowNavigation?: boolean;
|
|
31
|
+
/** Compact mode (smaller, no titles) */
|
|
32
|
+
compact?: boolean;
|
|
33
|
+
/** Additional CSS classes */
|
|
34
|
+
className?: string;
|
|
35
|
+
/** Declarative step click event — emits UI:{stepClickEvent} with { stepIndex } */
|
|
36
|
+
stepClickEvent?: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* WizardProgress - Step progress indicator
|
|
40
|
+
*/
|
|
41
|
+
export declare const WizardProgress: React.FC<WizardProgressProps>;
|
|
42
|
+
export default WizardProgress;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface ActionButtonConfig {
|
|
3
|
+
/** Unique identifier */
|
|
4
|
+
id: string;
|
|
5
|
+
/** Display label */
|
|
6
|
+
label?: string;
|
|
7
|
+
/** Icon component or emoji */
|
|
8
|
+
icon?: React.ReactNode;
|
|
9
|
+
/** Button variant */
|
|
10
|
+
variant?: 'primary' | 'secondary' | 'ghost' | string;
|
|
11
|
+
}
|
|
12
|
+
/** Event Contract:
|
|
13
|
+
* Emits: UI:ACTION
|
|
14
|
+
*/
|
|
15
|
+
export interface ActionButtonsProps {
|
|
16
|
+
/** Button configurations */
|
|
17
|
+
buttons: ActionButtonConfig[];
|
|
18
|
+
/** Called when a button is pressed/released */
|
|
19
|
+
onAction?: (id: string, pressed: boolean) => void;
|
|
20
|
+
/** Declarative event name emitted on action via useEventBus */
|
|
21
|
+
actionEvent?: string;
|
|
22
|
+
/** Layout variant */
|
|
23
|
+
layout?: 'horizontal' | 'vertical' | 'diamond';
|
|
24
|
+
/** Size variant */
|
|
25
|
+
size?: 'sm' | 'md' | 'lg';
|
|
26
|
+
/** Additional CSS classes */
|
|
27
|
+
className?: string;
|
|
28
|
+
/** Disabled state */
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export declare function ActionButtons({ buttons, onAction, actionEvent, layout, size, className, disabled, }: ActionButtonsProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export declare namespace ActionButtons {
|
|
33
|
+
var displayName: string;
|
|
34
|
+
}
|