@almadar/ui 2.0.1 → 2.0.3
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/components/index.css +9 -11
- package/dist/components/index.js +3 -3
- package/dist/providers/index.css +9 -11
- package/dist/providers/index.js +2 -2
- package/package.json +2 -2
- package/dist/components/atoms/Avatar.d.ts +0 -58
- package/dist/components/atoms/Badge.d.ts +0 -8
- package/dist/components/atoms/Box.d.ts +0 -57
- package/dist/components/atoms/Button.d.ts +0 -24
- package/dist/components/atoms/Card.d.ts +0 -18
- package/dist/components/atoms/Center.d.ts +0 -33
- package/dist/components/atoms/Checkbox.d.ts +0 -5
- package/dist/components/atoms/ConditionalWrapper.d.ts +0 -68
- package/dist/components/atoms/Divider.d.ts +0 -29
- package/dist/components/atoms/Icon.d.ts +0 -38
- package/dist/components/atoms/Input.d.ts +0 -26
- package/dist/components/atoms/Label.d.ts +0 -5
- package/dist/components/atoms/LawReferenceTooltip.d.ts +0 -48
- package/dist/components/atoms/Overlay.d.ts +0 -16
- package/dist/components/atoms/ProgressBar.d.ts +0 -63
- package/dist/components/atoms/Radio.d.ts +0 -26
- package/dist/components/atoms/Select.d.ts +0 -12
- package/dist/components/atoms/Spacer.d.ts +0 -25
- package/dist/components/atoms/Spinner.d.ts +0 -6
- package/dist/components/atoms/Stack.d.ts +0 -64
- package/dist/components/atoms/Switch.d.ts +0 -12
- package/dist/components/atoms/TextHighlight.d.ts +0 -53
- package/dist/components/atoms/Textarea.d.ts +0 -5
- package/dist/components/atoms/ThemeSelector.d.ts +0 -21
- package/dist/components/atoms/ThemeToggle.d.ts +0 -33
- package/dist/components/atoms/Typography.d.ts +0 -57
- package/dist/components/atoms/game/ControlButton.d.ts +0 -31
- package/dist/components/atoms/game/HealthBar.d.ts +0 -18
- package/dist/components/atoms/game/ScoreDisplay.d.ts +0 -21
- package/dist/components/atoms/game/Sprite.d.ts +0 -63
- package/dist/components/atoms/game/StateIndicator.d.ts +0 -31
- package/dist/components/atoms/game/index.d.ts +0 -12
- package/dist/components/atoms/index.d.ts +0 -27
- package/dist/components/index.d.ts +0 -6
- package/dist/components/molecules/Accordion.d.ts +0 -67
- package/dist/components/molecules/Alert.d.ts +0 -24
- package/dist/components/molecules/Breadcrumb.d.ts +0 -55
- package/dist/components/molecules/ButtonGroup.d.ts +0 -67
- package/dist/components/molecules/Card.d.ts +0 -44
- package/dist/components/molecules/Container.d.ts +0 -30
- package/dist/components/molecules/Drawer.d.ts +0 -46
- package/dist/components/molecules/EmptyState.d.ts +0 -25
- package/dist/components/molecules/ErrorBoundary.d.ts +0 -55
- package/dist/components/molecules/ErrorState.d.ts +0 -13
- package/dist/components/molecules/FilterGroup.d.ts +0 -54
- package/dist/components/molecules/Flex.d.ts +0 -43
- package/dist/components/molecules/FloatingActionButton.d.ts +0 -69
- package/dist/components/molecules/FormField.d.ts +0 -16
- package/dist/components/molecules/FormSectionHeader.d.ts +0 -30
- package/dist/components/molecules/Grid.d.ts +0 -54
- package/dist/components/molecules/InputGroup.d.ts +0 -24
- package/dist/components/molecules/LoadingState.d.ts +0 -7
- package/dist/components/molecules/Menu.d.ts +0 -40
- package/dist/components/molecules/Modal.d.ts +0 -26
- package/dist/components/molecules/Pagination.d.ts +0 -66
- package/dist/components/molecules/Popover.d.ts +0 -39
- package/dist/components/molecules/QuizBlock.d.ts +0 -20
- package/dist/components/molecules/RelationSelect.d.ts +0 -48
- package/dist/components/molecules/RepeatableFormSection.d.ts +0 -58
- package/dist/components/molecules/ScaledDiagram.d.ts +0 -20
- package/dist/components/molecules/SearchInput.d.ts +0 -60
- package/dist/components/molecules/SidePanel.d.ts +0 -47
- package/dist/components/molecules/SimpleGrid.d.ts +0 -27
- package/dist/components/molecules/Skeleton.d.ts +0 -35
- package/dist/components/molecules/Tabs.d.ts +0 -45
- package/dist/components/molecules/Toast.d.ts +0 -35
- package/dist/components/molecules/Tooltip.d.ts +0 -25
- package/dist/components/molecules/ViolationAlert.d.ts +0 -49
- package/dist/components/molecules/WizardNavigation.d.ts +0 -51
- package/dist/components/molecules/WizardProgress.d.ts +0 -42
- package/dist/components/molecules/game/StatBadge.d.ts +0 -27
- package/dist/components/molecules/index.d.ts +0 -38
- package/dist/components/molecules/markdown/CodeBlock.d.ts +0 -25
- package/dist/components/molecules/markdown/MarkdownContent.d.ts +0 -26
- package/dist/components/organisms/CardGrid.d.ts +0 -72
- package/dist/components/organisms/Chart.d.ts +0 -59
- package/dist/components/organisms/CodeViewer.d.ts +0 -67
- package/dist/components/organisms/ComponentPatterns.d.ts +0 -441
- package/dist/components/organisms/ConfirmDialog.d.ts +0 -50
- package/dist/components/organisms/ContentRenderer.d.ts +0 -23
- package/dist/components/organisms/CustomPattern.d.ts +0 -104
- package/dist/components/organisms/DataTable.d.ts +0 -63
- package/dist/components/organisms/DetailPanel.d.ts +0 -71
- package/dist/components/organisms/DocumentViewer.d.ts +0 -60
- package/dist/components/organisms/DrawerSlot.d.ts +0 -39
- package/dist/components/organisms/Form.d.ts +0 -203
- package/dist/components/organisms/FormSection.d.ts +0 -59
- package/dist/components/organisms/GraphCanvas.d.ts +0 -69
- package/dist/components/organisms/Header.d.ts +0 -110
- package/dist/components/organisms/JazariStateMachine.d.ts +0 -60
- package/dist/components/organisms/LayoutPatterns.d.ts +0 -181
- package/dist/components/organisms/List.d.ts +0 -76
- package/dist/components/organisms/MasterDetail.d.ts +0 -43
- package/dist/components/organisms/MediaGallery.d.ts +0 -66
- package/dist/components/organisms/Meter.d.ts +0 -58
- package/dist/components/organisms/ModalSlot.d.ts +0 -35
- package/dist/components/organisms/Navigation.d.ts +0 -68
- package/dist/components/organisms/OrbitalVisualization.d.ts +0 -48
- package/dist/components/organisms/PageHeader.d.ts +0 -59
- package/dist/components/organisms/Section.d.ts +0 -44
- package/dist/components/organisms/Sidebar.d.ts +0 -65
- package/dist/components/organisms/SignaturePad.d.ts +0 -44
- package/dist/components/organisms/Split.d.ts +0 -42
- package/dist/components/organisms/StatCard.d.ts +0 -66
- package/dist/components/organisms/StateMachineView.d.ts +0 -36
- package/dist/components/organisms/Table.d.ts +0 -99
- package/dist/components/organisms/Timeline.d.ts +0 -58
- package/dist/components/organisms/ToastSlot.d.ts +0 -38
- package/dist/components/organisms/UISlotRenderer.d.ts +0 -112
- package/dist/components/organisms/WizardContainer.d.ts +0 -160
- package/dist/components/organisms/book/BookChapterView.d.ts +0 -17
- package/dist/components/organisms/book/BookCoverPage.d.ts +0 -19
- package/dist/components/organisms/book/BookNavBar.d.ts +0 -18
- package/dist/components/organisms/book/BookTableOfContents.d.ts +0 -18
- package/dist/components/organisms/book/BookViewer.d.ts +0 -28
- package/dist/components/organisms/book/index.d.ts +0 -7
- package/dist/components/organisms/book/types.d.ts +0 -77
- package/dist/components/organisms/game/BattleBoard.d.ts +0 -167
- package/dist/components/organisms/game/CanvasEffect.d.ts +0 -68
- package/dist/components/organisms/game/CastleBoard.d.ts +0 -85
- package/dist/components/organisms/game/DialogueBox.d.ts +0 -73
- package/dist/components/organisms/game/GameAudioProvider.d.ts +0 -47
- package/dist/components/organisms/game/GameAudioToggle.d.ts +0 -28
- package/dist/components/organisms/game/GameHud.d.ts +0 -40
- package/dist/components/organisms/game/GameMenu.d.ts +0 -43
- package/dist/components/organisms/game/GameOverScreen.d.ts +0 -56
- package/dist/components/organisms/game/InventoryPanel.d.ts +0 -67
- package/dist/components/organisms/game/IsometricCanvas.d.ts +0 -123
- package/dist/components/organisms/game/TraitSlot.d.ts +0 -86
- package/dist/components/organisms/game/TraitStateViewer.d.ts +0 -53
- package/dist/components/organisms/game/UncontrolledBattleBoard.d.ts +0 -26
- package/dist/components/organisms/game/WorldMapBoard.d.ts +0 -147
- package/dist/components/organisms/game/editor/editorUtils.d.ts +0 -109
- package/dist/components/organisms/game/editor/index.d.ts +0 -9
- package/dist/components/organisms/game/hooks/useBattleState.d.ts +0 -35
- package/dist/components/organisms/game/hooks/useCamera.d.ts +0 -41
- package/dist/components/organisms/game/hooks/useGameAudio.d.ts +0 -47
- package/dist/components/organisms/game/hooks/useImageCache.d.ts +0 -16
- package/dist/components/organisms/game/hooks/usePhysics2D.d.ts +0 -45
- package/dist/components/organisms/game/hooks/useSpriteAnimations.d.ts +0 -43
- package/dist/components/organisms/game/index.d.ts +0 -36
- package/dist/components/organisms/game/managers/PhysicsManager.d.ts +0 -103
- package/dist/components/organisms/game/types/effects.d.ts +0 -253
- package/dist/components/organisms/game/types/isometric.d.ts +0 -109
- package/dist/components/organisms/game/types/spriteAnimation.d.ts +0 -73
- package/dist/components/organisms/game/utils/canvasEffects.d.ts +0 -50
- package/dist/components/organisms/game/utils/combatPresets.d.ts +0 -15
- package/dist/components/organisms/game/utils/isometric.d.ts +0 -61
- package/dist/components/organisms/game/utils/spriteAnimation.d.ts +0 -57
- package/dist/components/organisms/game/utils/spriteSheetConstants.d.ts +0 -16
- package/dist/components/organisms/index.d.ts +0 -37
- package/dist/components/organisms/layout/DashboardGrid.d.ts +0 -34
- package/dist/components/organisms/layout/MasterDetail.d.ts +0 -32
- package/dist/components/organisms/layout/SplitPane.d.ts +0 -34
- package/dist/components/organisms/layout/TabbedContainer.d.ts +0 -42
- package/dist/components/organisms/layout/index.d.ts +0 -9
- package/dist/components/organisms/types.d.ts +0 -65
- package/dist/components/templates/AuthLayout.d.ts +0 -14
- package/dist/components/templates/BattleTemplate.d.ts +0 -25
- package/dist/components/templates/CastleTemplate.d.ts +0 -23
- package/dist/components/templates/CounterTemplate.d.ts +0 -44
- package/dist/components/templates/DashboardLayout.d.ts +0 -32
- package/dist/components/templates/GameShell.d.ts +0 -33
- package/dist/components/templates/GameTemplate.d.ts +0 -36
- package/dist/components/templates/GenericAppTemplate.d.ts +0 -30
- package/dist/components/templates/WorldMapTemplate.d.ts +0 -29
- package/dist/components/templates/index.d.ts +0 -10
- package/dist/components/templates/types.d.ts +0 -17
- package/dist/context/DesignThemeContext.d.ts +0 -21
- package/dist/context/ThemeContext.d.ts +0 -104
- package/dist/context/UISlotContext.d.ts +0 -75
- package/dist/context/UserContext.d.ts +0 -111
- package/dist/context/index.d.ts +0 -8
- package/dist/hooks/event-bus-types.d.ts +0 -71
- package/dist/hooks/index.d.ts +0 -25
- package/dist/hooks/useAgentChat.d.ts +0 -104
- package/dist/hooks/useAuthContext.d.ts +0 -25
- package/dist/hooks/useCompile.d.ts +0 -22
- package/dist/hooks/useDeepAgentGeneration.d.ts +0 -46
- package/dist/hooks/useEntities.d.ts +0 -52
- package/dist/hooks/useEntityData.d.ts +0 -155
- package/dist/hooks/useEntityMutations.d.ts +0 -80
- package/dist/hooks/useEventBus.d.ts +0 -96
- package/dist/hooks/useExtensions.d.ts +0 -32
- package/dist/hooks/useFileEditor.d.ts +0 -32
- package/dist/hooks/useFileSystem.d.ts +0 -40
- package/dist/hooks/useGitHub.d.ts +0 -58
- package/dist/hooks/useOrbitalHistory.d.ts +0 -39
- package/dist/hooks/useOrbitalMutations.d.ts +0 -95
- package/dist/hooks/usePreview.d.ts +0 -57
- package/dist/hooks/useQuerySingleton.d.ts +0 -78
- package/dist/hooks/useResolvedEntity.d.ts +0 -32
- package/dist/hooks/useTranslate.d.ts +0 -35
- package/dist/hooks/useUIEvents.d.ts +0 -35
- package/dist/hooks/useUISlots.d.ts +0 -84
- package/dist/hooks/useValidation.d.ts +0 -46
- package/dist/lib/api-client.d.ts +0 -42
- package/dist/lib/cn.d.ts +0 -6
- package/dist/lib/debug.d.ts +0 -43
- package/dist/lib/debugRegistry.d.ts +0 -29
- package/dist/lib/debugUtils.d.ts +0 -27
- package/dist/lib/entityDebug.d.ts +0 -38
- package/dist/lib/getNestedValue.d.ts +0 -33
- package/dist/lib/guardRegistry.d.ts +0 -32
- package/dist/lib/index.d.ts +0 -18
- package/dist/lib/jazari/svg-paths.d.ts +0 -61
- package/dist/lib/parseContentSegments.d.ts +0 -41
- package/dist/lib/tickRegistry.d.ts +0 -40
- package/dist/lib/traitRegistry.d.ts +0 -34
- package/dist/lib/verificationRegistry.d.ts +0 -107
- package/dist/lib/visualizer/index.d.ts +0 -143
- package/dist/locales/index.d.ts +0 -20
- package/dist/providers/EventBusProvider.d.ts +0 -60
- package/dist/providers/FetchedDataProvider.d.ts +0 -105
- package/dist/providers/OfflineModeProvider.d.ts +0 -79
- package/dist/providers/OrbitalProvider.d.ts +0 -101
- package/dist/providers/SelectionProvider.d.ts +0 -81
- package/dist/providers/VerificationProvider.d.ts +0 -63
- package/dist/providers/index.d.ts +0 -17
- package/dist/renderer/client-effect-executor.d.ts +0 -68
- package/dist/renderer/data-resolver.d.ts +0 -68
- package/dist/renderer/index.d.ts +0 -28
- package/dist/renderer/init.d.ts +0 -14
- package/dist/renderer/navigation.d.ts +0 -142
- package/dist/renderer/offline-executor.d.ts +0 -238
- package/dist/renderer/pattern-resolver.d.ts +0 -91
- package/dist/renderer/slot-definitions.d.ts +0 -45
- package/dist/renderer/types.d.ts +0 -160
- package/dist/renderer/useClientEffects.d.ts +0 -88
- package/dist/stores/entityStore.d.ts +0 -99
- package/dist/stores/filtering.d.ts +0 -51
- package/dist/stores/index.d.ts +0 -7
- package/dist/{chunk-RIZ76XRF.js → chunk-X3IKFHFT.js} +1 -1
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Sidebar Organism Component
|
|
3
|
-
*
|
|
4
|
-
* A sidebar component with logo, navigation items, user section, and collapse/expand.
|
|
5
|
-
* Styled to match the main Layout component with theme-aware CSS variables.
|
|
6
|
-
*/
|
|
7
|
-
import React from 'react';
|
|
8
|
-
import type { LucideIcon } from 'lucide-react';
|
|
9
|
-
export interface SidebarItem {
|
|
10
|
-
/** Item ID */
|
|
11
|
-
id: string;
|
|
12
|
-
/** Item label */
|
|
13
|
-
label: string;
|
|
14
|
-
/** Item icon */
|
|
15
|
-
icon?: LucideIcon;
|
|
16
|
-
/** Item badge */
|
|
17
|
-
badge?: string | number;
|
|
18
|
-
/** Item href */
|
|
19
|
-
href?: string;
|
|
20
|
-
/** Item click handler */
|
|
21
|
-
onClick?: () => void;
|
|
22
|
-
/** Is active */
|
|
23
|
-
active?: boolean;
|
|
24
|
-
/** @deprecated Use `active` instead */
|
|
25
|
-
isActive?: boolean;
|
|
26
|
-
/** Sub-items (for nested navigation) */
|
|
27
|
-
subItems?: SidebarItem[];
|
|
28
|
-
}
|
|
29
|
-
export interface SidebarProps {
|
|
30
|
-
/** Logo/Brand content - can be a ReactNode or logo config */
|
|
31
|
-
logo?: React.ReactNode;
|
|
32
|
-
/** Logo image source */
|
|
33
|
-
logoSrc?: string;
|
|
34
|
-
/** Brand/App name */
|
|
35
|
-
brandName?: string;
|
|
36
|
-
/** Navigation items */
|
|
37
|
-
items: SidebarItem[];
|
|
38
|
-
/** User section content */
|
|
39
|
-
userSection?: React.ReactNode;
|
|
40
|
-
/** Footer content (e.g., theme toggle) */
|
|
41
|
-
footerContent?: React.ReactNode;
|
|
42
|
-
/** Collapsed state (controlled) */
|
|
43
|
-
collapsed?: boolean;
|
|
44
|
-
/** Default collapsed state */
|
|
45
|
-
defaultCollapsed?: boolean;
|
|
46
|
-
/** Callback when collapse state changes */
|
|
47
|
-
onCollapseChange?: (collapsed: boolean) => void;
|
|
48
|
-
/** Hide the collapse/expand button */
|
|
49
|
-
hideCollapseButton?: boolean;
|
|
50
|
-
/** Show a close button (for mobile) */
|
|
51
|
-
showCloseButton?: boolean;
|
|
52
|
-
/** Callback when close button is clicked */
|
|
53
|
-
onClose?: () => void;
|
|
54
|
-
/** Callback when logo/brand is clicked */
|
|
55
|
-
onLogoClick?: () => void;
|
|
56
|
-
/** Additional CSS classes */
|
|
57
|
-
className?: string;
|
|
58
|
-
/** Loading state indicator */
|
|
59
|
-
isLoading?: boolean;
|
|
60
|
-
/** Error state */
|
|
61
|
-
error?: Error | null;
|
|
62
|
-
/** Entity name for schema-driven auto-fetch */
|
|
63
|
-
entity?: string;
|
|
64
|
-
}
|
|
65
|
-
export declare const Sidebar: React.FC<SidebarProps>;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* SignaturePad Organism Component
|
|
3
|
-
*
|
|
4
|
-
* A canvas-based signature capture pad.
|
|
5
|
-
* Uses a minimal canvas wrapper (necessary for drawing) but composes all
|
|
6
|
-
* surrounding UI with atoms and molecules.
|
|
7
|
-
*
|
|
8
|
-
* Orbital Component Interface Compliance:
|
|
9
|
-
* - Event emission via useEventBus (UI:* events)
|
|
10
|
-
* - isLoading and error state props
|
|
11
|
-
* - className for external styling
|
|
12
|
-
*/
|
|
13
|
-
import React from "react";
|
|
14
|
-
export interface SignaturePadProps {
|
|
15
|
-
/** Label above the pad */
|
|
16
|
-
label?: string;
|
|
17
|
-
/** Helper text */
|
|
18
|
-
helperText?: string;
|
|
19
|
-
/** Stroke color */
|
|
20
|
-
strokeColor?: string;
|
|
21
|
-
/** Stroke width */
|
|
22
|
-
strokeWidth?: number;
|
|
23
|
-
/** Pad height */
|
|
24
|
-
height?: number;
|
|
25
|
-
/** Whether the pad is read-only */
|
|
26
|
-
readOnly?: boolean;
|
|
27
|
-
/** Existing signature image URL */
|
|
28
|
-
value?: string;
|
|
29
|
-
/** Callback when signature changes */
|
|
30
|
-
onChange?: (dataUrl: string | null) => void;
|
|
31
|
-
/** Event to emit on sign */
|
|
32
|
-
signEvent?: string;
|
|
33
|
-
/** Event to emit on clear */
|
|
34
|
-
clearEvent?: string;
|
|
35
|
-
/** Entity name for schema-driven context */
|
|
36
|
-
entity?: string;
|
|
37
|
-
/** Loading state */
|
|
38
|
-
isLoading?: boolean;
|
|
39
|
-
/** Error state */
|
|
40
|
-
error?: Error | null;
|
|
41
|
-
/** Additional CSS classes */
|
|
42
|
-
className?: string;
|
|
43
|
-
}
|
|
44
|
-
export declare const SignaturePad: React.FC<SignaturePadProps>;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Split Component
|
|
3
|
-
*
|
|
4
|
-
* A two-column layout with configurable ratios.
|
|
5
|
-
* Perfect for sidebar/content layouts or side-by-side comparisons.
|
|
6
|
-
*/
|
|
7
|
-
import React from 'react';
|
|
8
|
-
export type SplitRatio = '1:1' | '1:2' | '2:1' | '1:3' | '3:1' | '1:4' | '4:1' | '2:3' | '3:2';
|
|
9
|
-
export type SplitGap = 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
10
|
-
export interface SplitProps {
|
|
11
|
-
/** Size ratio between left and right panels */
|
|
12
|
-
ratio?: SplitRatio;
|
|
13
|
-
/** Gap between panels */
|
|
14
|
-
gap?: SplitGap;
|
|
15
|
-
/** Reverse the order (right first) */
|
|
16
|
-
reverse?: boolean;
|
|
17
|
-
/** Stack vertically on mobile */
|
|
18
|
-
stackOnMobile?: boolean;
|
|
19
|
-
/** Breakpoint to switch from stacked to side-by-side */
|
|
20
|
-
stackBreakpoint?: 'sm' | 'md' | 'lg' | 'xl';
|
|
21
|
-
/** Align items vertically */
|
|
22
|
-
align?: 'start' | 'center' | 'end' | 'stretch';
|
|
23
|
-
/** Custom class name */
|
|
24
|
-
className?: string;
|
|
25
|
-
/** Left/first panel class name */
|
|
26
|
-
leftClassName?: string;
|
|
27
|
-
/** Right/second panel class name */
|
|
28
|
-
rightClassName?: string;
|
|
29
|
-
/** Exactly two children: [left, right] */
|
|
30
|
-
children: [React.ReactNode, React.ReactNode];
|
|
31
|
-
/** Loading state indicator */
|
|
32
|
-
isLoading?: boolean;
|
|
33
|
-
/** Error state */
|
|
34
|
-
error?: Error | null;
|
|
35
|
-
/** Entity name for schema-driven auto-fetch */
|
|
36
|
-
entity?: string;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Split - Two-column layout with flexible ratios
|
|
40
|
-
*/
|
|
41
|
-
export declare const Split: React.FC<SplitProps>;
|
|
42
|
-
export default Split;
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { LucideIcon } from "lucide-react";
|
|
3
|
-
/**
|
|
4
|
-
* Schema metric definition
|
|
5
|
-
* Supports both computed metrics (with field) and static metrics (with value)
|
|
6
|
-
*/
|
|
7
|
-
export interface MetricDefinition {
|
|
8
|
-
/** Field name for computed metrics (optional if value is provided) */
|
|
9
|
-
field?: string;
|
|
10
|
-
/** Display label */
|
|
11
|
-
label: string;
|
|
12
|
-
/** Static value for display (alternative to field-based computation) */
|
|
13
|
-
value?: string | number;
|
|
14
|
-
/** Icon name for display */
|
|
15
|
-
icon?: string;
|
|
16
|
-
/** Value format (e.g., 'currency', 'percent', 'number') */
|
|
17
|
-
format?: "currency" | "percent" | "number" | string;
|
|
18
|
-
}
|
|
19
|
-
export interface StatCardProps {
|
|
20
|
-
/** Main label */
|
|
21
|
-
label?: string;
|
|
22
|
-
/** Title (alias for label) */
|
|
23
|
-
title?: string;
|
|
24
|
-
/** Primary value - accepts array/unknown from generated code (will use first element or length) */
|
|
25
|
-
value?: string | number | (string | number | undefined)[] | unknown;
|
|
26
|
-
/** Previous value for comparison */
|
|
27
|
-
previousValue?: number;
|
|
28
|
-
/** Current value as number for trend calculation */
|
|
29
|
-
currentValue?: number;
|
|
30
|
-
/** Manual trend percentage (overrides calculation) */
|
|
31
|
-
trend?: number;
|
|
32
|
-
/** Trend direction (overrides calculation) */
|
|
33
|
-
trendDirection?: "up" | "down" | "neutral";
|
|
34
|
-
/** Whether up is good (green) or bad (red) */
|
|
35
|
-
invertTrend?: boolean;
|
|
36
|
-
/** Icon to display */
|
|
37
|
-
icon?: LucideIcon;
|
|
38
|
-
/** Icon background color */
|
|
39
|
-
iconBg?: string;
|
|
40
|
-
/** Icon color */
|
|
41
|
-
iconColor?: string;
|
|
42
|
-
/** Subtitle or description */
|
|
43
|
-
subtitle?: string;
|
|
44
|
-
/** Action button */
|
|
45
|
-
action?: {
|
|
46
|
-
label: string;
|
|
47
|
-
/** Event to dispatch via event bus (for trait state machine integration) */
|
|
48
|
-
event?: string;
|
|
49
|
-
/** Navigation URL - supports template interpolation */
|
|
50
|
-
navigatesTo?: string;
|
|
51
|
-
/** Legacy onClick callback */
|
|
52
|
-
onClick?: () => void;
|
|
53
|
-
};
|
|
54
|
-
className?: string;
|
|
55
|
-
/** Entity name for schema-driven stats */
|
|
56
|
-
entity?: string;
|
|
57
|
-
/** Metrics to display (schema format) - accepts readonly for compatibility with generated const arrays */
|
|
58
|
-
metrics?: readonly MetricDefinition[];
|
|
59
|
-
/** Data to calculate stats from - accepts readonly for compatibility with generated const arrays */
|
|
60
|
-
data?: readonly Record<string, unknown>[];
|
|
61
|
-
/** Loading state indicator */
|
|
62
|
-
isLoading?: boolean;
|
|
63
|
-
/** Error state */
|
|
64
|
-
error?: Error | null;
|
|
65
|
-
}
|
|
66
|
-
export declare const StatCard: React.FC<StatCardProps>;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* StateMachineView - Reusable State Machine Visualizer
|
|
3
|
-
*
|
|
4
|
-
* A hybrid DOM/SVG component for visualizing state machines.
|
|
5
|
-
* Uses SVG for arrow paths, DOM for tooltips.
|
|
6
|
-
*
|
|
7
|
-
* Moved from projects/builder to @almadar/ui for reuse across projects.
|
|
8
|
-
*
|
|
9
|
-
* BUNDLING: When multiple transitions exist between the same states (same direction),
|
|
10
|
-
* they are bundled into a single arrow with a badge showing the count.
|
|
11
|
-
* Hovering shows all events and their effects in a detailed tooltip.
|
|
12
|
-
*
|
|
13
|
-
* Events Emitted:
|
|
14
|
-
* - UI:STATE_CLICK - When a state node is clicked
|
|
15
|
-
* - UI:TRANSITION_CLICK - When a transition bundle is clicked
|
|
16
|
-
*/
|
|
17
|
-
import React from 'react';
|
|
18
|
-
import type { DomLayoutData, DomStateNode, DomTransitionLabel, VisualizerConfig } from '../../lib/visualizer/index.js';
|
|
19
|
-
import type { EntityDisplayProps } from './types';
|
|
20
|
-
/** Bundled transitions between same from→to states */
|
|
21
|
-
export interface TransitionBundle {
|
|
22
|
-
id: string;
|
|
23
|
-
from: string;
|
|
24
|
-
to: string;
|
|
25
|
-
labels: DomTransitionLabel[];
|
|
26
|
-
isBidirectional: boolean;
|
|
27
|
-
isReverse: boolean;
|
|
28
|
-
}
|
|
29
|
-
export interface StateMachineViewProps extends EntityDisplayProps {
|
|
30
|
-
layoutData: DomLayoutData;
|
|
31
|
-
/** Custom state node renderer — when provided, replaces the default circle nodes */
|
|
32
|
-
renderStateNode?: (state: DomStateNode, config: VisualizerConfig) => React.ReactNode;
|
|
33
|
-
}
|
|
34
|
-
export declare const StateMachineView: React.FC<StateMachineViewProps>;
|
|
35
|
-
export { StateMachineView as DomStateMachineVisualizer };
|
|
36
|
-
export { StateMachineView as OrbitalStateMachineView };
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Table Organism Component
|
|
3
|
-
*
|
|
4
|
-
* A dumb table component with header row, data rows, pagination, sorting, and search.
|
|
5
|
-
* Emits events via useEventBus — never manages internal state for search, sort,
|
|
6
|
-
* selection, or pagination. All state is owned by the trait state machine.
|
|
7
|
-
*
|
|
8
|
-
* Uses Pagination, SearchInput, ButtonGroup, Card, Menu molecules and Button, Icon, Checkbox, Typography, Badge, Divider atoms.
|
|
9
|
-
*/
|
|
10
|
-
import React from "react";
|
|
11
|
-
import { MenuItem } from "../molecules/Menu";
|
|
12
|
-
import type { EntityDisplayProps } from "./types";
|
|
13
|
-
export type SortDirection = "asc" | "desc";
|
|
14
|
-
export interface TableColumn<T = any> {
|
|
15
|
-
/**
|
|
16
|
-
* Column key
|
|
17
|
-
*/
|
|
18
|
-
key: string;
|
|
19
|
-
/**
|
|
20
|
-
* Column header label
|
|
21
|
-
*/
|
|
22
|
-
label: string;
|
|
23
|
-
/**
|
|
24
|
-
* Sortable column
|
|
25
|
-
* @default false
|
|
26
|
-
*/
|
|
27
|
-
sortable?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* Custom cell renderer
|
|
30
|
-
*/
|
|
31
|
-
render?: (value: any, row: T, index: number) => React.ReactNode;
|
|
32
|
-
/**
|
|
33
|
-
* Column width
|
|
34
|
-
*/
|
|
35
|
-
width?: string;
|
|
36
|
-
}
|
|
37
|
-
export interface TableProps<T = Record<string, unknown>> extends EntityDisplayProps<T> {
|
|
38
|
-
/**
|
|
39
|
-
* Table columns
|
|
40
|
-
*/
|
|
41
|
-
columns: TableColumn<T>[];
|
|
42
|
-
/**
|
|
43
|
-
* Enable row selection
|
|
44
|
-
* @default false
|
|
45
|
-
*/
|
|
46
|
-
selectable?: boolean;
|
|
47
|
-
/**
|
|
48
|
-
* Enable sorting
|
|
49
|
-
* @default false
|
|
50
|
-
*/
|
|
51
|
-
sortable?: boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Current sort column (display hint, mapped from sortBy)
|
|
54
|
-
*/
|
|
55
|
-
sortColumn?: string;
|
|
56
|
-
/**
|
|
57
|
-
* Current sort direction (display hint)
|
|
58
|
-
*/
|
|
59
|
-
sortDirection?: SortDirection;
|
|
60
|
-
/**
|
|
61
|
-
* Enable search/filter
|
|
62
|
-
* @default false
|
|
63
|
-
*/
|
|
64
|
-
searchable?: boolean;
|
|
65
|
-
/**
|
|
66
|
-
* Search placeholder
|
|
67
|
-
*/
|
|
68
|
-
searchPlaceholder?: string;
|
|
69
|
-
/**
|
|
70
|
-
* Enable pagination
|
|
71
|
-
* @default false
|
|
72
|
-
*/
|
|
73
|
-
paginated?: boolean;
|
|
74
|
-
/**
|
|
75
|
-
* Current page (display hint)
|
|
76
|
-
*/
|
|
77
|
-
currentPage?: number;
|
|
78
|
-
/**
|
|
79
|
-
* Total pages (display hint)
|
|
80
|
-
*/
|
|
81
|
-
totalPages?: number;
|
|
82
|
-
/**
|
|
83
|
-
* Row actions menu items
|
|
84
|
-
*/
|
|
85
|
-
rowActions?: (row: T) => MenuItem[];
|
|
86
|
-
/**
|
|
87
|
-
* Empty state message
|
|
88
|
-
*/
|
|
89
|
-
emptyMessage?: string;
|
|
90
|
-
/**
|
|
91
|
-
* Loading state
|
|
92
|
-
* @default false
|
|
93
|
-
*/
|
|
94
|
-
loading?: boolean;
|
|
95
|
-
}
|
|
96
|
-
export declare const Table: {
|
|
97
|
-
<T extends Record<string, any>>({ columns, entity, data, className, isLoading, error, sortBy, sortDirection: entitySortDirection, searchValue, page, pageSize, totalCount, selectedIds, selectable, sortable, sortColumn: sortColumnProp, sortDirection: sortDirectionProp, searchable, searchPlaceholder, paginated, currentPage: currentPageProp, totalPages: totalPagesProp, rowActions, emptyMessage, loading, }: TableProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
98
|
-
displayName: string;
|
|
99
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Timeline Organism Component
|
|
3
|
-
*
|
|
4
|
-
* A vertical timeline component for displaying chronological events.
|
|
5
|
-
* Composes atoms and molecules for layout, uses CSS variables for theming.
|
|
6
|
-
*
|
|
7
|
-
* Orbital Component Interface Compliance:
|
|
8
|
-
* - Entity binding with auto-fetch when entity is a string
|
|
9
|
-
* - Event emission via useEventBus (UI:* events)
|
|
10
|
-
* - isLoading and error state props
|
|
11
|
-
* - className for external styling
|
|
12
|
-
*/
|
|
13
|
-
import React from "react";
|
|
14
|
-
import type { LucideIcon } from "lucide-react";
|
|
15
|
-
export type TimelineItemStatus = "complete" | "active" | "pending" | "error";
|
|
16
|
-
export interface TimelineItem {
|
|
17
|
-
/** Unique identifier */
|
|
18
|
-
id: string;
|
|
19
|
-
/** Item title */
|
|
20
|
-
title: string;
|
|
21
|
-
/** Item description */
|
|
22
|
-
description?: string;
|
|
23
|
-
/** Timestamp string */
|
|
24
|
-
date?: string;
|
|
25
|
-
/** Status indicator */
|
|
26
|
-
status?: TimelineItemStatus;
|
|
27
|
-
/** Icon override */
|
|
28
|
-
icon?: LucideIcon;
|
|
29
|
-
/** Additional metadata tags */
|
|
30
|
-
tags?: readonly string[];
|
|
31
|
-
}
|
|
32
|
-
export interface TimelineAction {
|
|
33
|
-
label: string;
|
|
34
|
-
event?: string;
|
|
35
|
-
navigatesTo?: string;
|
|
36
|
-
variant?: "primary" | "secondary" | "ghost";
|
|
37
|
-
}
|
|
38
|
-
export interface TimelineProps {
|
|
39
|
-
/** Timeline title */
|
|
40
|
-
title?: string;
|
|
41
|
-
/** Timeline items */
|
|
42
|
-
items?: readonly TimelineItem[];
|
|
43
|
-
/** Schema-driven data */
|
|
44
|
-
data?: readonly Record<string, unknown>[];
|
|
45
|
-
/** Fields to display */
|
|
46
|
-
fields?: readonly string[];
|
|
47
|
-
/** Actions per item */
|
|
48
|
-
itemActions?: readonly TimelineAction[];
|
|
49
|
-
/** Entity name for schema-driven auto-fetch */
|
|
50
|
-
entity?: string;
|
|
51
|
-
/** Loading state */
|
|
52
|
-
isLoading?: boolean;
|
|
53
|
-
/** Error state */
|
|
54
|
-
error?: Error | null;
|
|
55
|
-
/** Additional CSS classes */
|
|
56
|
-
className?: string;
|
|
57
|
-
}
|
|
58
|
-
export declare const Timeline: React.FC<TimelineProps>;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ToastSlot Component
|
|
3
|
-
*
|
|
4
|
-
* Wraps toast slot content in a proper Toast component with positioning.
|
|
5
|
-
* Used by trait-driven pages to display toast UI from render_ui effects.
|
|
6
|
-
*
|
|
7
|
-
* Handles:
|
|
8
|
-
* - Auto-show when content is present
|
|
9
|
-
* - Dispatches DISMISS event when dismissed
|
|
10
|
-
* - Fixed positioning in corner of screen
|
|
11
|
-
*/
|
|
12
|
-
import React from 'react';
|
|
13
|
-
import { ToastVariant } from '../molecules/Toast';
|
|
14
|
-
export interface ToastSlotProps {
|
|
15
|
-
/** Content to display in the toast (message or ReactNode) */
|
|
16
|
-
children?: React.ReactNode;
|
|
17
|
-
/** Toast variant */
|
|
18
|
-
variant?: ToastVariant;
|
|
19
|
-
/** Toast title */
|
|
20
|
-
title?: string;
|
|
21
|
-
/** Auto-dismiss duration in ms (0 = no auto-dismiss) */
|
|
22
|
-
duration?: number;
|
|
23
|
-
/** Custom class name */
|
|
24
|
-
className?: string;
|
|
25
|
-
/** Loading state indicator */
|
|
26
|
-
isLoading?: boolean;
|
|
27
|
-
/** Error state */
|
|
28
|
-
error?: Error | null;
|
|
29
|
-
/** Entity name for schema-driven auto-fetch */
|
|
30
|
-
entity?: string;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* ToastSlot - Wrapper for toast slot content
|
|
34
|
-
*
|
|
35
|
-
* Automatically shows toast when children are present,
|
|
36
|
-
* and dispatches dismiss events when toast is dismissed.
|
|
37
|
-
*/
|
|
38
|
-
export declare const ToastSlot: React.FC<ToastSlotProps>;
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* UISlotRenderer Component
|
|
3
|
-
*
|
|
4
|
-
* Renders all UI slots. This is the central component that displays
|
|
5
|
-
* content rendered by traits via render_ui effects.
|
|
6
|
-
*
|
|
7
|
-
* Slots are rendered as:
|
|
8
|
-
* - Layout slots: Inline in the page flow (main, sidebar)
|
|
9
|
-
* - Portal slots: Rendered via portals (modal, drawer, toast, etc.)
|
|
10
|
-
* - HUD slots: Fixed position overlays (hud-top, hud-bottom)
|
|
11
|
-
*
|
|
12
|
-
* @packageDocumentation
|
|
13
|
-
*/
|
|
14
|
-
import React from "react";
|
|
15
|
-
import { type UISlot, type SlotContent } from "../../context/UISlotContext";
|
|
16
|
-
export interface SuspenseConfig {
|
|
17
|
-
/** Enable Suspense boundaries around slot content */
|
|
18
|
-
enabled: boolean;
|
|
19
|
-
/** Custom fallback per slot, overrides default Skeleton variant */
|
|
20
|
-
slotFallbacks?: Partial<Record<UISlot, React.ReactNode>>;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Provider for Suspense configuration.
|
|
24
|
-
* When enabled, each UI slot is wrapped in `<ErrorBoundary><Suspense>`.
|
|
25
|
-
*/
|
|
26
|
-
export declare function SuspenseConfigProvider({ config, children, }: {
|
|
27
|
-
config: SuspenseConfig;
|
|
28
|
-
children: React.ReactNode;
|
|
29
|
-
}): React.FunctionComponentElement<React.ProviderProps<SuspenseConfig>>;
|
|
30
|
-
export declare namespace SuspenseConfigProvider {
|
|
31
|
-
var displayName: string;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Maps component names to actual React components.
|
|
35
|
-
* The pattern resolver returns a component name (e.g., "DataTable"),
|
|
36
|
-
* and this registry provides the actual component.
|
|
37
|
-
*
|
|
38
|
-
* Component names match those in orbital-shared/patterns/component-mapping.json
|
|
39
|
-
*/
|
|
40
|
-
export declare const COMPONENT_REGISTRY: Record<string, React.ComponentType<any>>;
|
|
41
|
-
interface UISlotComponentProps {
|
|
42
|
-
slot: UISlot;
|
|
43
|
-
portal?: boolean;
|
|
44
|
-
position?: "left" | "right" | "top-right" | "top-left" | "bottom-right" | "bottom-left";
|
|
45
|
-
className?: string;
|
|
46
|
-
draggable?: boolean;
|
|
47
|
-
isLoading?: boolean;
|
|
48
|
-
error?: Error | null;
|
|
49
|
-
entity?: string;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Individual slot renderer.
|
|
53
|
-
*
|
|
54
|
-
* Handles different slot types with appropriate wrappers.
|
|
55
|
-
*/
|
|
56
|
-
declare function UISlotComponent({ slot, portal, position, className, }: UISlotComponentProps): React.ReactElement | null;
|
|
57
|
-
interface SlotContentRendererProps {
|
|
58
|
-
content: SlotContent;
|
|
59
|
-
onDismiss: () => void;
|
|
60
|
-
className?: string;
|
|
61
|
-
isLoading?: boolean;
|
|
62
|
-
error?: Error | null;
|
|
63
|
-
entity?: string;
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Renders the actual content of a slot.
|
|
67
|
-
*
|
|
68
|
-
* Dynamically renders pattern components from the registry.
|
|
69
|
-
* For layout patterns with `hasChildren`, recursively renders nested patterns.
|
|
70
|
-
*/
|
|
71
|
-
declare function SlotContentRenderer({ content, onDismiss, }: SlotContentRendererProps): React.ReactElement;
|
|
72
|
-
export interface UISlotRendererProps {
|
|
73
|
-
/** Include HUD slots */
|
|
74
|
-
includeHud?: boolean;
|
|
75
|
-
/** Include floating slot */
|
|
76
|
-
includeFloating?: boolean;
|
|
77
|
-
/** Additional class name for the container */
|
|
78
|
-
className?: string;
|
|
79
|
-
/** Loading state indicator */
|
|
80
|
-
isLoading?: boolean;
|
|
81
|
-
/** Error state */
|
|
82
|
-
error?: Error | null;
|
|
83
|
-
/** Entity name for schema-driven auto-fetch */
|
|
84
|
-
entity?: string;
|
|
85
|
-
/**
|
|
86
|
-
* Enable Suspense boundaries around each slot.
|
|
87
|
-
* When true, each inline slot is wrapped in `<ErrorBoundary><Suspense>` with
|
|
88
|
-
* Skeleton fallbacks. Opt-in — existing isLoading prop pattern still works.
|
|
89
|
-
*/
|
|
90
|
-
suspense?: boolean | SuspenseConfig;
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* Main UI Slot Renderer component.
|
|
94
|
-
*
|
|
95
|
-
* Renders all slot containers. Place this in your page/layout component.
|
|
96
|
-
*
|
|
97
|
-
* @example
|
|
98
|
-
* ```tsx
|
|
99
|
-
* function PageLayout() {
|
|
100
|
-
* return (
|
|
101
|
-
* <div className="page-layout">
|
|
102
|
-
* <UISlotRenderer />
|
|
103
|
-
* </div>
|
|
104
|
-
* );
|
|
105
|
-
* }
|
|
106
|
-
* ```
|
|
107
|
-
*/
|
|
108
|
-
export declare function UISlotRenderer({ includeHud, includeFloating, className, suspense, }: UISlotRendererProps): React.ReactElement;
|
|
109
|
-
export declare namespace UISlotRenderer {
|
|
110
|
-
var displayName: string;
|
|
111
|
-
}
|
|
112
|
-
export { UISlotComponent, SlotContentRenderer };
|