@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,441 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Component Pattern Wrappers
|
|
3
|
-
*
|
|
4
|
-
* Pattern wrappers for atomic UI components that can be rendered via render_ui.
|
|
5
|
-
* These bridge the shell's atomic components with the pattern system.
|
|
6
|
-
*
|
|
7
|
-
* Interactive components emit events via useEventBus for the closed circuit pattern.
|
|
8
|
-
*
|
|
9
|
-
* @packageDocumentation
|
|
10
|
-
*/
|
|
11
|
-
import React from 'react';
|
|
12
|
-
import { type ButtonVariant, type ButtonSize } from '../atoms/Button';
|
|
13
|
-
import { type BadgeVariant } from '../atoms/Badge';
|
|
14
|
-
import { type AlertVariant } from '../molecules/Alert';
|
|
15
|
-
/**
|
|
16
|
-
* Base closed circuit props required by all organism components.
|
|
17
|
-
*/
|
|
18
|
-
interface ClosedCircuitProps {
|
|
19
|
-
className?: string;
|
|
20
|
-
isLoading?: boolean;
|
|
21
|
-
error?: Error | null;
|
|
22
|
-
entity?: string;
|
|
23
|
-
}
|
|
24
|
-
export interface ButtonPatternProps extends ClosedCircuitProps {
|
|
25
|
-
label: string;
|
|
26
|
-
variant?: ButtonVariant;
|
|
27
|
-
size?: ButtonSize;
|
|
28
|
-
disabled?: boolean;
|
|
29
|
-
onClick?: string;
|
|
30
|
-
icon?: string;
|
|
31
|
-
iconPosition?: 'left' | 'right';
|
|
32
|
-
className?: string;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Button pattern that emits events via the event bus.
|
|
36
|
-
*/
|
|
37
|
-
export declare function ButtonPattern({ label, variant, size, disabled, onClick, icon, iconPosition, className, }: ButtonPatternProps): React.ReactElement;
|
|
38
|
-
export declare namespace ButtonPattern {
|
|
39
|
-
var displayName: string;
|
|
40
|
-
}
|
|
41
|
-
export interface IconButtonPatternProps extends ClosedCircuitProps {
|
|
42
|
-
icon: string;
|
|
43
|
-
variant?: ButtonVariant;
|
|
44
|
-
size?: ButtonSize;
|
|
45
|
-
onClick?: string;
|
|
46
|
-
ariaLabel?: string;
|
|
47
|
-
className?: string;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Icon-only button pattern.
|
|
51
|
-
*/
|
|
52
|
-
export declare function IconButtonPattern({ icon, variant, size, onClick, ariaLabel, className, }: IconButtonPatternProps): React.ReactElement;
|
|
53
|
-
export declare namespace IconButtonPattern {
|
|
54
|
-
var displayName: string;
|
|
55
|
-
}
|
|
56
|
-
export interface LinkPatternProps extends ClosedCircuitProps {
|
|
57
|
-
label: string;
|
|
58
|
-
href?: string;
|
|
59
|
-
external?: boolean;
|
|
60
|
-
onClick?: string;
|
|
61
|
-
className?: string;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Link pattern for navigation.
|
|
65
|
-
*/
|
|
66
|
-
export declare function LinkPattern({ label, href, external, onClick, className, }: LinkPatternProps): React.ReactElement;
|
|
67
|
-
export declare namespace LinkPattern {
|
|
68
|
-
var displayName: string;
|
|
69
|
-
}
|
|
70
|
-
export interface TextPatternProps extends ClosedCircuitProps {
|
|
71
|
-
content: string;
|
|
72
|
-
variant?: 'body' | 'caption' | 'overline';
|
|
73
|
-
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
74
|
-
weight?: 'normal' | 'medium' | 'semibold' | 'bold';
|
|
75
|
-
color?: string;
|
|
76
|
-
align?: 'left' | 'center' | 'right';
|
|
77
|
-
className?: string;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Text pattern for typography.
|
|
81
|
-
*/
|
|
82
|
-
export declare function TextPattern({ content, variant, size, weight, color, align, className, }: TextPatternProps): React.ReactElement;
|
|
83
|
-
export declare namespace TextPattern {
|
|
84
|
-
var displayName: string;
|
|
85
|
-
}
|
|
86
|
-
export interface HeadingPatternProps extends ClosedCircuitProps {
|
|
87
|
-
content: string;
|
|
88
|
-
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
89
|
-
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl';
|
|
90
|
-
className?: string;
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* Heading pattern.
|
|
94
|
-
*/
|
|
95
|
-
export declare function HeadingPattern({ content, level, size, className, }: HeadingPatternProps): React.ReactElement;
|
|
96
|
-
export declare namespace HeadingPattern {
|
|
97
|
-
var displayName: string;
|
|
98
|
-
}
|
|
99
|
-
export interface BadgePatternProps extends ClosedCircuitProps {
|
|
100
|
-
label: string;
|
|
101
|
-
variant?: BadgeVariant;
|
|
102
|
-
size?: 'sm' | 'md';
|
|
103
|
-
className?: string;
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* Badge pattern for status/counts.
|
|
107
|
-
*/
|
|
108
|
-
export declare function BadgePattern({ label, variant, size, className, }: BadgePatternProps): React.ReactElement;
|
|
109
|
-
export declare namespace BadgePattern {
|
|
110
|
-
var displayName: string;
|
|
111
|
-
}
|
|
112
|
-
export interface AvatarPatternProps extends ClosedCircuitProps {
|
|
113
|
-
src?: string;
|
|
114
|
-
alt?: string;
|
|
115
|
-
name?: string;
|
|
116
|
-
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
117
|
-
className?: string;
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* Avatar pattern.
|
|
121
|
-
*/
|
|
122
|
-
export declare function AvatarPattern({ src, alt, name, size, className, }: AvatarPatternProps): React.ReactElement;
|
|
123
|
-
export declare namespace AvatarPattern {
|
|
124
|
-
var displayName: string;
|
|
125
|
-
}
|
|
126
|
-
export interface IconPatternProps extends ClosedCircuitProps {
|
|
127
|
-
name: string;
|
|
128
|
-
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
129
|
-
color?: string;
|
|
130
|
-
className?: string;
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* Icon pattern.
|
|
134
|
-
*/
|
|
135
|
-
export declare function IconPattern({ name, size, color, className, }: IconPatternProps): React.ReactElement;
|
|
136
|
-
export declare namespace IconPattern {
|
|
137
|
-
var displayName: string;
|
|
138
|
-
}
|
|
139
|
-
export interface ImagePatternProps extends ClosedCircuitProps {
|
|
140
|
-
src: string;
|
|
141
|
-
alt: string;
|
|
142
|
-
width?: number | string;
|
|
143
|
-
height?: number | string;
|
|
144
|
-
objectFit?: 'cover' | 'contain' | 'fill';
|
|
145
|
-
fallback?: string;
|
|
146
|
-
className?: string;
|
|
147
|
-
}
|
|
148
|
-
/**
|
|
149
|
-
* Image pattern.
|
|
150
|
-
*/
|
|
151
|
-
export declare function ImagePattern({ src, alt, width, height, objectFit, className, }: ImagePatternProps): React.ReactElement;
|
|
152
|
-
export declare namespace ImagePattern {
|
|
153
|
-
var displayName: string;
|
|
154
|
-
}
|
|
155
|
-
export interface CardPatternProps extends ClosedCircuitProps {
|
|
156
|
-
title?: string;
|
|
157
|
-
subtitle?: string;
|
|
158
|
-
padding?: 'none' | 'sm' | 'md' | 'lg';
|
|
159
|
-
shadow?: 'none' | 'sm' | 'md' | 'lg';
|
|
160
|
-
onClick?: string;
|
|
161
|
-
className?: string;
|
|
162
|
-
children?: React.ReactNode;
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* Card pattern.
|
|
166
|
-
*/
|
|
167
|
-
export declare function CardPattern({ title, subtitle, padding, shadow, onClick, className, children, }: CardPatternProps): React.ReactElement;
|
|
168
|
-
export declare namespace CardPattern {
|
|
169
|
-
var displayName: string;
|
|
170
|
-
}
|
|
171
|
-
export interface ProgressBarPatternProps extends ClosedCircuitProps {
|
|
172
|
-
value: number;
|
|
173
|
-
max?: number;
|
|
174
|
-
variant?: 'default' | 'primary' | 'success' | 'warning' | 'danger';
|
|
175
|
-
size?: 'sm' | 'md' | 'lg';
|
|
176
|
-
showLabel?: boolean;
|
|
177
|
-
className?: string;
|
|
178
|
-
}
|
|
179
|
-
/**
|
|
180
|
-
* Progress bar pattern.
|
|
181
|
-
*/
|
|
182
|
-
export declare function ProgressBarPattern({ value, max, variant, size, showLabel, className, }: ProgressBarPatternProps): React.ReactElement;
|
|
183
|
-
export declare namespace ProgressBarPattern {
|
|
184
|
-
var displayName: string;
|
|
185
|
-
}
|
|
186
|
-
export interface SpinnerPatternProps extends ClosedCircuitProps {
|
|
187
|
-
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
188
|
-
color?: string;
|
|
189
|
-
className?: string;
|
|
190
|
-
}
|
|
191
|
-
/**
|
|
192
|
-
* Spinner pattern.
|
|
193
|
-
*/
|
|
194
|
-
export declare function SpinnerPattern({ size, className, }: SpinnerPatternProps): React.ReactElement;
|
|
195
|
-
export declare namespace SpinnerPattern {
|
|
196
|
-
var displayName: string;
|
|
197
|
-
}
|
|
198
|
-
export interface InputPatternProps extends ClosedCircuitProps {
|
|
199
|
-
value?: string;
|
|
200
|
-
placeholder?: string;
|
|
201
|
-
inputType?: 'text' | 'email' | 'password' | 'number' | 'tel' | 'url';
|
|
202
|
-
disabled?: boolean;
|
|
203
|
-
/** Field-level validation error message */
|
|
204
|
-
fieldError?: string;
|
|
205
|
-
onChange?: string;
|
|
206
|
-
onBlur?: string;
|
|
207
|
-
className?: string;
|
|
208
|
-
}
|
|
209
|
-
/**
|
|
210
|
-
* Input pattern.
|
|
211
|
-
*/
|
|
212
|
-
export declare function InputPattern({ value, placeholder, inputType, disabled, fieldError, onChange, onBlur, className, }: InputPatternProps): React.ReactElement;
|
|
213
|
-
export declare namespace InputPattern {
|
|
214
|
-
var displayName: string;
|
|
215
|
-
}
|
|
216
|
-
export interface TextareaPatternProps extends ClosedCircuitProps {
|
|
217
|
-
value?: string;
|
|
218
|
-
placeholder?: string;
|
|
219
|
-
rows?: number;
|
|
220
|
-
disabled?: boolean;
|
|
221
|
-
/** Field-level validation error message */
|
|
222
|
-
fieldError?: string;
|
|
223
|
-
onChange?: string;
|
|
224
|
-
className?: string;
|
|
225
|
-
}
|
|
226
|
-
/**
|
|
227
|
-
* Textarea pattern.
|
|
228
|
-
*/
|
|
229
|
-
export declare function TextareaPattern({ value, placeholder, rows, disabled, fieldError, onChange, className, }: TextareaPatternProps): React.ReactElement;
|
|
230
|
-
export declare namespace TextareaPattern {
|
|
231
|
-
var displayName: string;
|
|
232
|
-
}
|
|
233
|
-
export interface SelectPatternProps extends ClosedCircuitProps {
|
|
234
|
-
value?: string;
|
|
235
|
-
options: Array<{
|
|
236
|
-
value: string;
|
|
237
|
-
label: string;
|
|
238
|
-
}>;
|
|
239
|
-
placeholder?: string;
|
|
240
|
-
disabled?: boolean;
|
|
241
|
-
/** Field-level validation error message */
|
|
242
|
-
fieldError?: string;
|
|
243
|
-
onChange?: string;
|
|
244
|
-
className?: string;
|
|
245
|
-
}
|
|
246
|
-
/**
|
|
247
|
-
* Select pattern.
|
|
248
|
-
*/
|
|
249
|
-
export declare function SelectPattern({ value, options, placeholder, disabled, fieldError, onChange, className, }: SelectPatternProps): React.ReactElement;
|
|
250
|
-
export declare namespace SelectPattern {
|
|
251
|
-
var displayName: string;
|
|
252
|
-
}
|
|
253
|
-
export interface CheckboxPatternProps extends ClosedCircuitProps {
|
|
254
|
-
checked?: boolean;
|
|
255
|
-
label?: string;
|
|
256
|
-
disabled?: boolean;
|
|
257
|
-
onChange?: string;
|
|
258
|
-
className?: string;
|
|
259
|
-
}
|
|
260
|
-
/**
|
|
261
|
-
* Checkbox pattern.
|
|
262
|
-
*/
|
|
263
|
-
export declare function CheckboxPattern({ checked, label, disabled, onChange, className, }: CheckboxPatternProps): React.ReactElement;
|
|
264
|
-
export declare namespace CheckboxPattern {
|
|
265
|
-
var displayName: string;
|
|
266
|
-
}
|
|
267
|
-
export interface RadioPatternProps extends ClosedCircuitProps {
|
|
268
|
-
value: string;
|
|
269
|
-
checked?: boolean;
|
|
270
|
-
name?: string;
|
|
271
|
-
label?: string;
|
|
272
|
-
disabled?: boolean;
|
|
273
|
-
onChange?: string;
|
|
274
|
-
className?: string;
|
|
275
|
-
}
|
|
276
|
-
/**
|
|
277
|
-
* Radio pattern.
|
|
278
|
-
*/
|
|
279
|
-
export declare function RadioPattern({ value, checked, name, label, disabled, onChange, className, }: RadioPatternProps): React.ReactElement;
|
|
280
|
-
export declare namespace RadioPattern {
|
|
281
|
-
var displayName: string;
|
|
282
|
-
}
|
|
283
|
-
export interface LabelPatternProps extends ClosedCircuitProps {
|
|
284
|
-
text: string;
|
|
285
|
-
htmlFor?: string;
|
|
286
|
-
required?: boolean;
|
|
287
|
-
className?: string;
|
|
288
|
-
}
|
|
289
|
-
/**
|
|
290
|
-
* Label pattern.
|
|
291
|
-
*/
|
|
292
|
-
export declare function LabelPattern({ text, htmlFor, required, className, }: LabelPatternProps): React.ReactElement;
|
|
293
|
-
export declare namespace LabelPattern {
|
|
294
|
-
var displayName: string;
|
|
295
|
-
}
|
|
296
|
-
export interface AlertPatternProps extends ClosedCircuitProps {
|
|
297
|
-
message: string;
|
|
298
|
-
title?: string;
|
|
299
|
-
variant?: AlertVariant;
|
|
300
|
-
dismissible?: boolean;
|
|
301
|
-
onDismiss?: string;
|
|
302
|
-
className?: string;
|
|
303
|
-
}
|
|
304
|
-
/**
|
|
305
|
-
* Alert pattern.
|
|
306
|
-
*/
|
|
307
|
-
export declare function AlertPattern({ message, title, variant, dismissible, onDismiss, className, }: AlertPatternProps): React.ReactElement;
|
|
308
|
-
export declare namespace AlertPattern {
|
|
309
|
-
var displayName: string;
|
|
310
|
-
}
|
|
311
|
-
export interface TooltipPatternProps extends ClosedCircuitProps {
|
|
312
|
-
content: string;
|
|
313
|
-
position?: 'top' | 'bottom' | 'left' | 'right';
|
|
314
|
-
className?: string;
|
|
315
|
-
children?: React.ReactNode;
|
|
316
|
-
}
|
|
317
|
-
/**
|
|
318
|
-
* Tooltip pattern.
|
|
319
|
-
*/
|
|
320
|
-
export declare function TooltipPattern({ content, position, className, children, }: TooltipPatternProps): React.ReactElement;
|
|
321
|
-
export declare namespace TooltipPattern {
|
|
322
|
-
var displayName: string;
|
|
323
|
-
}
|
|
324
|
-
export interface PopoverPatternProps extends ClosedCircuitProps {
|
|
325
|
-
content: React.ReactNode;
|
|
326
|
-
position?: 'top' | 'bottom' | 'left' | 'right';
|
|
327
|
-
trigger?: 'click' | 'hover';
|
|
328
|
-
className?: string;
|
|
329
|
-
children?: React.ReactNode;
|
|
330
|
-
}
|
|
331
|
-
/**
|
|
332
|
-
* Popover pattern.
|
|
333
|
-
*/
|
|
334
|
-
export declare function PopoverPattern({ content, position, trigger, className, children, }: PopoverPatternProps): React.ReactElement;
|
|
335
|
-
export declare namespace PopoverPattern {
|
|
336
|
-
var displayName: string;
|
|
337
|
-
}
|
|
338
|
-
export interface MenuPatternProps extends ClosedCircuitProps {
|
|
339
|
-
items: Array<{
|
|
340
|
-
label: string;
|
|
341
|
-
event: string;
|
|
342
|
-
icon?: string;
|
|
343
|
-
disabled?: boolean;
|
|
344
|
-
variant?: 'default' | 'danger';
|
|
345
|
-
}>;
|
|
346
|
-
trigger?: React.ReactNode;
|
|
347
|
-
position?: 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end';
|
|
348
|
-
className?: string;
|
|
349
|
-
}
|
|
350
|
-
/**
|
|
351
|
-
* Menu pattern.
|
|
352
|
-
*/
|
|
353
|
-
export declare function MenuPattern({ items, trigger, position, className, }: MenuPatternProps): React.ReactElement;
|
|
354
|
-
export declare namespace MenuPattern {
|
|
355
|
-
var displayName: string;
|
|
356
|
-
}
|
|
357
|
-
export interface AccordionPatternProps extends ClosedCircuitProps {
|
|
358
|
-
items: Array<{
|
|
359
|
-
title: string;
|
|
360
|
-
content: React.ReactNode;
|
|
361
|
-
}>;
|
|
362
|
-
multiple?: boolean;
|
|
363
|
-
defaultOpen?: number[];
|
|
364
|
-
className?: string;
|
|
365
|
-
}
|
|
366
|
-
/**
|
|
367
|
-
* Accordion pattern.
|
|
368
|
-
*/
|
|
369
|
-
export declare function AccordionPattern({ items, multiple, defaultOpen, className, }: AccordionPatternProps): React.ReactElement;
|
|
370
|
-
export declare namespace AccordionPattern {
|
|
371
|
-
var displayName: string;
|
|
372
|
-
}
|
|
373
|
-
export interface ContainerPatternProps extends ClosedCircuitProps {
|
|
374
|
-
maxWidth?: 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'full';
|
|
375
|
-
padding?: 'none' | 'sm' | 'md' | 'lg';
|
|
376
|
-
className?: string;
|
|
377
|
-
children?: React.ReactNode;
|
|
378
|
-
}
|
|
379
|
-
/**
|
|
380
|
-
* Container pattern.
|
|
381
|
-
*/
|
|
382
|
-
export declare function ContainerPattern({ maxWidth, padding, className, children, }: ContainerPatternProps): React.ReactElement;
|
|
383
|
-
export declare namespace ContainerPattern {
|
|
384
|
-
var displayName: string;
|
|
385
|
-
}
|
|
386
|
-
export interface SimpleGridPatternProps extends ClosedCircuitProps {
|
|
387
|
-
minChildWidth?: string;
|
|
388
|
-
gap?: 'xs' | 'sm' | 'md' | 'lg';
|
|
389
|
-
className?: string;
|
|
390
|
-
children?: React.ReactNode;
|
|
391
|
-
}
|
|
392
|
-
/**
|
|
393
|
-
* Simple grid pattern.
|
|
394
|
-
*/
|
|
395
|
-
export declare function SimpleGridPattern({ minChildWidth, gap, className, children, }: SimpleGridPatternProps): React.ReactElement;
|
|
396
|
-
export declare namespace SimpleGridPattern {
|
|
397
|
-
var displayName: string;
|
|
398
|
-
}
|
|
399
|
-
export interface FloatButtonPatternProps extends ClosedCircuitProps {
|
|
400
|
-
icon: string;
|
|
401
|
-
onClick?: string;
|
|
402
|
-
position?: 'bottom-right' | 'bottom-left' | 'bottom-center';
|
|
403
|
-
variant?: 'primary' | 'secondary';
|
|
404
|
-
className?: string;
|
|
405
|
-
}
|
|
406
|
-
/**
|
|
407
|
-
* Floating action button pattern.
|
|
408
|
-
*/
|
|
409
|
-
export declare function FloatButtonPattern({ icon, onClick, position, variant, className, }: FloatButtonPatternProps): React.ReactElement;
|
|
410
|
-
export declare namespace FloatButtonPattern {
|
|
411
|
-
var displayName: string;
|
|
412
|
-
}
|
|
413
|
-
export declare const COMPONENT_PATTERNS: {
|
|
414
|
-
readonly button: typeof ButtonPattern;
|
|
415
|
-
readonly 'icon-button': typeof IconButtonPattern;
|
|
416
|
-
readonly link: typeof LinkPattern;
|
|
417
|
-
readonly text: typeof TextPattern;
|
|
418
|
-
readonly heading: typeof HeadingPattern;
|
|
419
|
-
readonly badge: typeof BadgePattern;
|
|
420
|
-
readonly avatar: typeof AvatarPattern;
|
|
421
|
-
readonly icon: typeof IconPattern;
|
|
422
|
-
readonly image: typeof ImagePattern;
|
|
423
|
-
readonly card: typeof CardPattern;
|
|
424
|
-
readonly 'progress-bar': typeof ProgressBarPattern;
|
|
425
|
-
readonly spinner: typeof SpinnerPattern;
|
|
426
|
-
readonly input: typeof InputPattern;
|
|
427
|
-
readonly textarea: typeof TextareaPattern;
|
|
428
|
-
readonly select: typeof SelectPattern;
|
|
429
|
-
readonly checkbox: typeof CheckboxPattern;
|
|
430
|
-
readonly radio: typeof RadioPattern;
|
|
431
|
-
readonly label: typeof LabelPattern;
|
|
432
|
-
readonly alert: typeof AlertPattern;
|
|
433
|
-
readonly tooltip: typeof TooltipPattern;
|
|
434
|
-
readonly popover: typeof PopoverPattern;
|
|
435
|
-
readonly menu: typeof MenuPattern;
|
|
436
|
-
readonly accordion: typeof AccordionPattern;
|
|
437
|
-
readonly container: typeof ContainerPattern;
|
|
438
|
-
readonly 'simple-grid': typeof SimpleGridPattern;
|
|
439
|
-
readonly 'float-button': typeof FloatButtonPattern;
|
|
440
|
-
};
|
|
441
|
-
export {};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ConfirmDialog Component
|
|
3
|
-
*
|
|
4
|
-
* Confirmation dialog for destructive or important actions.
|
|
5
|
-
* Composes Modal molecule with Button atoms.
|
|
6
|
-
*
|
|
7
|
-
* Uses wireframe theme styling (high contrast, sharp edges).
|
|
8
|
-
*/
|
|
9
|
-
import React from "react";
|
|
10
|
-
import { type ModalSize } from "../molecules/Modal";
|
|
11
|
-
export type ConfirmDialogVariant = "danger" | "warning" | "info" | "default";
|
|
12
|
-
export interface ConfirmDialogProps {
|
|
13
|
-
/** Whether the dialog is open (defaults to true when rendered by slot wrapper) */
|
|
14
|
-
isOpen?: boolean;
|
|
15
|
-
/** Callback when dialog is closed (injected by slot wrapper) */
|
|
16
|
-
onClose?: () => void;
|
|
17
|
-
/** Callback when action is confirmed (injected by slot wrapper) */
|
|
18
|
-
onConfirm?: () => void;
|
|
19
|
-
/** Dialog title */
|
|
20
|
-
title: string;
|
|
21
|
-
/** Dialog message/description */
|
|
22
|
-
message?: string | React.ReactNode;
|
|
23
|
-
/** Alias for message (schema compatibility) */
|
|
24
|
-
description?: string | React.ReactNode;
|
|
25
|
-
/** Confirm button text */
|
|
26
|
-
confirmText?: string;
|
|
27
|
-
/** Alias for confirmText (schema compatibility) */
|
|
28
|
-
confirmLabel?: string;
|
|
29
|
-
/** Cancel button text */
|
|
30
|
-
cancelText?: string;
|
|
31
|
-
/** Alias for cancelText (schema compatibility) */
|
|
32
|
-
cancelLabel?: string;
|
|
33
|
-
/** Dialog variant */
|
|
34
|
-
variant?: ConfirmDialogVariant;
|
|
35
|
-
/** Dialog size */
|
|
36
|
-
size?: ModalSize;
|
|
37
|
-
/** Loading state for confirm button */
|
|
38
|
-
isLoading?: boolean;
|
|
39
|
-
/** Error state */
|
|
40
|
-
error?: Error | null;
|
|
41
|
-
/** Entity name for schema-driven auto-fetch */
|
|
42
|
-
entity?: string;
|
|
43
|
-
/** Additional CSS classes */
|
|
44
|
-
className?: string;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* ConfirmDialog - Confirmation dialog for important actions
|
|
48
|
-
*/
|
|
49
|
-
export declare const ConfirmDialog: React.FC<ConfirmDialogProps>;
|
|
50
|
-
export default ConfirmDialog;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ContentRenderer Organism
|
|
3
|
-
*
|
|
4
|
-
* Renders rich content as a sequence of typed segments: markdown, code,
|
|
5
|
-
* orbital diagrams (via JazariStateMachine), and quiz blocks. Accepts
|
|
6
|
-
* either raw content string (auto-parsed) or pre-parsed segments.
|
|
7
|
-
*
|
|
8
|
-
* Event Contract:
|
|
9
|
-
* - Delegates to child components (CodeBlock -> UI:COPY_CODE)
|
|
10
|
-
* - entityAware: false
|
|
11
|
-
*/
|
|
12
|
-
import React from 'react';
|
|
13
|
-
import { type ContentSegment } from '../../lib/parseContentSegments';
|
|
14
|
-
import type { EntityDisplayProps } from './types';
|
|
15
|
-
export interface ContentRendererProps extends EntityDisplayProps {
|
|
16
|
-
/** Raw content string — auto-parsed into segments */
|
|
17
|
-
content?: string;
|
|
18
|
-
/** Pre-parsed segments (overrides content) */
|
|
19
|
-
segments?: ContentSegment[];
|
|
20
|
-
/** Text direction for markdown */
|
|
21
|
-
direction?: 'rtl' | 'ltr';
|
|
22
|
-
}
|
|
23
|
-
export declare const ContentRenderer: React.FC<ContentRendererProps>;
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CustomPattern Component
|
|
3
|
-
*
|
|
4
|
-
* Renders freeform elements with Tailwind classes for custom UI designs.
|
|
5
|
-
* Uses Box with the `as` prop to render different element types.
|
|
6
|
-
* Supports nested children and the closed circuit pattern (action prop for events).
|
|
7
|
-
*
|
|
8
|
-
* @packageDocumentation
|
|
9
|
-
*/
|
|
10
|
-
import React from "react";
|
|
11
|
-
/**
|
|
12
|
-
* Allowed element types for custom patterns.
|
|
13
|
-
*/
|
|
14
|
-
export declare const ALLOWED_CUSTOM_COMPONENTS: readonly ["div", "span", "button", "a", "p", "h1", "h2", "h3", "h4", "h5", "h6", "header", "footer", "section", "article", "nav", "main", "aside", "ul", "ol", "li", "img", "label", "input", "form"];
|
|
15
|
-
export type AllowedCustomComponent = (typeof ALLOWED_CUSTOM_COMPONENTS)[number];
|
|
16
|
-
/**
|
|
17
|
-
* Check if a component name is allowed.
|
|
18
|
-
*/
|
|
19
|
-
export declare function isAllowedComponent(component: string): component is AllowedCustomComponent;
|
|
20
|
-
/**
|
|
21
|
-
* Check if an element is interactive (requires action for closed circuit).
|
|
22
|
-
*/
|
|
23
|
-
export declare function isInteractiveElement(component: string): boolean;
|
|
24
|
-
export interface CustomPatternProps {
|
|
25
|
-
/** Element type to render */
|
|
26
|
-
component: AllowedCustomComponent;
|
|
27
|
-
/** Tailwind classes */
|
|
28
|
-
className?: string;
|
|
29
|
-
/** Token path(s) for design token resolution */
|
|
30
|
-
token?: string | string[];
|
|
31
|
-
/** Text content (for leaf elements) */
|
|
32
|
-
content?: string;
|
|
33
|
-
/** Event to emit on click (REQUIRED for interactive elements) */
|
|
34
|
-
action?: string;
|
|
35
|
-
/** Event payload */
|
|
36
|
-
payload?: Record<string, unknown>;
|
|
37
|
-
/** Nested children patterns */
|
|
38
|
-
children?: React.ReactNode;
|
|
39
|
-
/** Image source (for img elements) */
|
|
40
|
-
src?: string;
|
|
41
|
-
/** Image alt text (for img elements) */
|
|
42
|
-
alt?: string;
|
|
43
|
-
/** Link href (for a elements) */
|
|
44
|
-
href?: string;
|
|
45
|
-
/** Open link in new tab */
|
|
46
|
-
external?: boolean;
|
|
47
|
-
/** Disabled state */
|
|
48
|
-
disabled?: boolean;
|
|
49
|
-
/** Additional HTML attributes */
|
|
50
|
-
htmlProps?: Record<string, unknown>;
|
|
51
|
-
/** Loading state */
|
|
52
|
-
isLoading?: boolean;
|
|
53
|
-
/** Error state */
|
|
54
|
-
error?: Error | null;
|
|
55
|
-
/** Entity name */
|
|
56
|
-
entity?: string;
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Renders a custom element with Tailwind styling.
|
|
60
|
-
*
|
|
61
|
-
* Follows the closed circuit pattern - interactive elements emit events via action prop.
|
|
62
|
-
* Uses Box with `as` prop for all element types to comply with the design system.
|
|
63
|
-
*
|
|
64
|
-
* @example
|
|
65
|
-
* ```tsx
|
|
66
|
-
* <CustomPattern
|
|
67
|
-
* component="button"
|
|
68
|
-
* className="bg-blue-500 text-white px-4 py-2 rounded"
|
|
69
|
-
* action="SUBMIT"
|
|
70
|
-
* content="Submit"
|
|
71
|
-
* />
|
|
72
|
-
* ```
|
|
73
|
-
*/
|
|
74
|
-
export declare function CustomPattern({ component, className, content, action, payload, children, src, alt, href, external, disabled, htmlProps, }: CustomPatternProps): React.ReactElement | null;
|
|
75
|
-
export declare namespace CustomPattern {
|
|
76
|
-
var displayName: string;
|
|
77
|
-
}
|
|
78
|
-
export interface CustomPatternConfig {
|
|
79
|
-
type: "custom";
|
|
80
|
-
component: AllowedCustomComponent;
|
|
81
|
-
className?: string;
|
|
82
|
-
token?: string | string[];
|
|
83
|
-
content?: string;
|
|
84
|
-
action?: string;
|
|
85
|
-
payload?: Record<string, unknown>;
|
|
86
|
-
children?: CustomPatternConfig[];
|
|
87
|
-
src?: string;
|
|
88
|
-
alt?: string;
|
|
89
|
-
href?: string;
|
|
90
|
-
external?: boolean;
|
|
91
|
-
disabled?: boolean;
|
|
92
|
-
[key: string]: unknown;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
* Check if a pattern config is a custom pattern.
|
|
96
|
-
*/
|
|
97
|
-
export declare function isCustomPatternConfig(config: unknown): config is CustomPatternConfig;
|
|
98
|
-
/**
|
|
99
|
-
* Recursively render custom pattern configurations.
|
|
100
|
-
*
|
|
101
|
-
* Use this to render nested custom patterns from render_ui effects.
|
|
102
|
-
*/
|
|
103
|
-
export declare function renderCustomPattern(config: CustomPatternConfig, key?: string | number): React.ReactElement;
|
|
104
|
-
export { ALLOWED_CUSTOM_COMPONENTS as CUSTOM_COMPONENT_TYPES };
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { LucideIcon } from "lucide-react";
|
|
3
|
-
import { EntityDisplayProps } from "./types";
|
|
4
|
-
export interface Column<T> {
|
|
5
|
-
key: keyof T | string;
|
|
6
|
-
header: string;
|
|
7
|
-
width?: string;
|
|
8
|
-
sortable?: boolean;
|
|
9
|
-
render?: (value: unknown, row: T, index: number) => React.ReactNode;
|
|
10
|
-
}
|
|
11
|
-
export interface RowAction<T> {
|
|
12
|
-
label: string;
|
|
13
|
-
icon?: LucideIcon;
|
|
14
|
-
onClick: (row: T) => void;
|
|
15
|
-
variant?: "default" | "danger";
|
|
16
|
-
show?: (row: T) => boolean;
|
|
17
|
-
event?: string;
|
|
18
|
-
}
|
|
19
|
-
export interface DataTableProps<T extends {
|
|
20
|
-
id: string | number;
|
|
21
|
-
}> extends EntityDisplayProps<T> {
|
|
22
|
-
/** Fields to display - accepts string[] or Column[] for unified interface. Alias for columns */
|
|
23
|
-
fields?: readonly Column<T>[] | readonly string[];
|
|
24
|
-
/** Columns can be Column objects or simple string field names */
|
|
25
|
-
columns?: readonly Column<T>[] | readonly string[];
|
|
26
|
-
/** Item actions from generated code - maps to rowActions */
|
|
27
|
-
itemActions?: readonly {
|
|
28
|
-
label: string;
|
|
29
|
-
event?: string;
|
|
30
|
-
navigatesTo?: string;
|
|
31
|
-
action?: string;
|
|
32
|
-
placement?: "row" | "bulk" | string;
|
|
33
|
-
icon?: LucideIcon;
|
|
34
|
-
variant?: "default" | "primary" | "secondary" | "ghost" | "danger" | string;
|
|
35
|
-
onClick?: (row: T) => void;
|
|
36
|
-
}[];
|
|
37
|
-
emptyIcon?: LucideIcon;
|
|
38
|
-
emptyTitle?: string;
|
|
39
|
-
emptyDescription?: string;
|
|
40
|
-
emptyAction?: {
|
|
41
|
-
label: string;
|
|
42
|
-
event?: string;
|
|
43
|
-
};
|
|
44
|
-
selectable?: boolean;
|
|
45
|
-
searchable?: boolean;
|
|
46
|
-
searchPlaceholder?: string;
|
|
47
|
-
rowActions?: readonly RowAction<T>[];
|
|
48
|
-
bulkActions?: ReadonlyArray<{
|
|
49
|
-
label: string;
|
|
50
|
-
icon?: LucideIcon;
|
|
51
|
-
onClick: (selectedRows: T[]) => void;
|
|
52
|
-
variant?: "default" | "danger";
|
|
53
|
-
}>;
|
|
54
|
-
headerActions?: React.ReactNode;
|
|
55
|
-
/** Show total count in pagination */
|
|
56
|
-
showTotal?: boolean;
|
|
57
|
-
}
|
|
58
|
-
export declare function DataTable<T extends {
|
|
59
|
-
id: string | number;
|
|
60
|
-
}>({ fields, columns, data, entity, itemActions, isLoading, error, emptyIcon, emptyTitle, emptyDescription, emptyAction, selectable, selectedIds, sortBy, sortDirection, searchable, searchValue, searchPlaceholder, page, pageSize, totalCount, rowActions: externalRowActions, bulkActions, headerActions, showTotal, className, }: DataTableProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
61
|
-
export declare namespace DataTable {
|
|
62
|
-
var displayName: string;
|
|
63
|
-
}
|