@almadar/ui 2.0.1 → 2.0.2

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.
Files changed (238) hide show
  1. package/dist/components/index.css +9 -11
  2. package/dist/components/index.js +3 -3
  3. package/dist/providers/index.css +9 -11
  4. package/dist/providers/index.js +2 -2
  5. package/package.json +2 -2
  6. package/dist/components/atoms/Avatar.d.ts +0 -58
  7. package/dist/components/atoms/Badge.d.ts +0 -8
  8. package/dist/components/atoms/Box.d.ts +0 -57
  9. package/dist/components/atoms/Button.d.ts +0 -24
  10. package/dist/components/atoms/Card.d.ts +0 -18
  11. package/dist/components/atoms/Center.d.ts +0 -33
  12. package/dist/components/atoms/Checkbox.d.ts +0 -5
  13. package/dist/components/atoms/ConditionalWrapper.d.ts +0 -68
  14. package/dist/components/atoms/Divider.d.ts +0 -29
  15. package/dist/components/atoms/Icon.d.ts +0 -38
  16. package/dist/components/atoms/Input.d.ts +0 -26
  17. package/dist/components/atoms/Label.d.ts +0 -5
  18. package/dist/components/atoms/LawReferenceTooltip.d.ts +0 -48
  19. package/dist/components/atoms/Overlay.d.ts +0 -16
  20. package/dist/components/atoms/ProgressBar.d.ts +0 -63
  21. package/dist/components/atoms/Radio.d.ts +0 -26
  22. package/dist/components/atoms/Select.d.ts +0 -12
  23. package/dist/components/atoms/Spacer.d.ts +0 -25
  24. package/dist/components/atoms/Spinner.d.ts +0 -6
  25. package/dist/components/atoms/Stack.d.ts +0 -64
  26. package/dist/components/atoms/Switch.d.ts +0 -12
  27. package/dist/components/atoms/TextHighlight.d.ts +0 -53
  28. package/dist/components/atoms/Textarea.d.ts +0 -5
  29. package/dist/components/atoms/ThemeSelector.d.ts +0 -21
  30. package/dist/components/atoms/ThemeToggle.d.ts +0 -33
  31. package/dist/components/atoms/Typography.d.ts +0 -57
  32. package/dist/components/atoms/game/ControlButton.d.ts +0 -31
  33. package/dist/components/atoms/game/HealthBar.d.ts +0 -18
  34. package/dist/components/atoms/game/ScoreDisplay.d.ts +0 -21
  35. package/dist/components/atoms/game/Sprite.d.ts +0 -63
  36. package/dist/components/atoms/game/StateIndicator.d.ts +0 -31
  37. package/dist/components/atoms/game/index.d.ts +0 -12
  38. package/dist/components/atoms/index.d.ts +0 -27
  39. package/dist/components/index.d.ts +0 -6
  40. package/dist/components/molecules/Accordion.d.ts +0 -67
  41. package/dist/components/molecules/Alert.d.ts +0 -24
  42. package/dist/components/molecules/Breadcrumb.d.ts +0 -55
  43. package/dist/components/molecules/ButtonGroup.d.ts +0 -67
  44. package/dist/components/molecules/Card.d.ts +0 -44
  45. package/dist/components/molecules/Container.d.ts +0 -30
  46. package/dist/components/molecules/Drawer.d.ts +0 -46
  47. package/dist/components/molecules/EmptyState.d.ts +0 -25
  48. package/dist/components/molecules/ErrorBoundary.d.ts +0 -55
  49. package/dist/components/molecules/ErrorState.d.ts +0 -13
  50. package/dist/components/molecules/FilterGroup.d.ts +0 -54
  51. package/dist/components/molecules/Flex.d.ts +0 -43
  52. package/dist/components/molecules/FloatingActionButton.d.ts +0 -69
  53. package/dist/components/molecules/FormField.d.ts +0 -16
  54. package/dist/components/molecules/FormSectionHeader.d.ts +0 -30
  55. package/dist/components/molecules/Grid.d.ts +0 -54
  56. package/dist/components/molecules/InputGroup.d.ts +0 -24
  57. package/dist/components/molecules/LoadingState.d.ts +0 -7
  58. package/dist/components/molecules/Menu.d.ts +0 -40
  59. package/dist/components/molecules/Modal.d.ts +0 -26
  60. package/dist/components/molecules/Pagination.d.ts +0 -66
  61. package/dist/components/molecules/Popover.d.ts +0 -39
  62. package/dist/components/molecules/QuizBlock.d.ts +0 -20
  63. package/dist/components/molecules/RelationSelect.d.ts +0 -48
  64. package/dist/components/molecules/RepeatableFormSection.d.ts +0 -58
  65. package/dist/components/molecules/ScaledDiagram.d.ts +0 -20
  66. package/dist/components/molecules/SearchInput.d.ts +0 -60
  67. package/dist/components/molecules/SidePanel.d.ts +0 -47
  68. package/dist/components/molecules/SimpleGrid.d.ts +0 -27
  69. package/dist/components/molecules/Skeleton.d.ts +0 -35
  70. package/dist/components/molecules/Tabs.d.ts +0 -45
  71. package/dist/components/molecules/Toast.d.ts +0 -35
  72. package/dist/components/molecules/Tooltip.d.ts +0 -25
  73. package/dist/components/molecules/ViolationAlert.d.ts +0 -49
  74. package/dist/components/molecules/WizardNavigation.d.ts +0 -51
  75. package/dist/components/molecules/WizardProgress.d.ts +0 -42
  76. package/dist/components/molecules/game/StatBadge.d.ts +0 -27
  77. package/dist/components/molecules/index.d.ts +0 -38
  78. package/dist/components/molecules/markdown/CodeBlock.d.ts +0 -25
  79. package/dist/components/molecules/markdown/MarkdownContent.d.ts +0 -26
  80. package/dist/components/organisms/CardGrid.d.ts +0 -72
  81. package/dist/components/organisms/Chart.d.ts +0 -59
  82. package/dist/components/organisms/CodeViewer.d.ts +0 -67
  83. package/dist/components/organisms/ComponentPatterns.d.ts +0 -441
  84. package/dist/components/organisms/ConfirmDialog.d.ts +0 -50
  85. package/dist/components/organisms/ContentRenderer.d.ts +0 -23
  86. package/dist/components/organisms/CustomPattern.d.ts +0 -104
  87. package/dist/components/organisms/DataTable.d.ts +0 -63
  88. package/dist/components/organisms/DetailPanel.d.ts +0 -71
  89. package/dist/components/organisms/DocumentViewer.d.ts +0 -60
  90. package/dist/components/organisms/DrawerSlot.d.ts +0 -39
  91. package/dist/components/organisms/Form.d.ts +0 -203
  92. package/dist/components/organisms/FormSection.d.ts +0 -59
  93. package/dist/components/organisms/GraphCanvas.d.ts +0 -69
  94. package/dist/components/organisms/Header.d.ts +0 -110
  95. package/dist/components/organisms/JazariStateMachine.d.ts +0 -60
  96. package/dist/components/organisms/LayoutPatterns.d.ts +0 -181
  97. package/dist/components/organisms/List.d.ts +0 -76
  98. package/dist/components/organisms/MasterDetail.d.ts +0 -43
  99. package/dist/components/organisms/MediaGallery.d.ts +0 -66
  100. package/dist/components/organisms/Meter.d.ts +0 -58
  101. package/dist/components/organisms/ModalSlot.d.ts +0 -35
  102. package/dist/components/organisms/Navigation.d.ts +0 -68
  103. package/dist/components/organisms/OrbitalVisualization.d.ts +0 -48
  104. package/dist/components/organisms/PageHeader.d.ts +0 -59
  105. package/dist/components/organisms/Section.d.ts +0 -44
  106. package/dist/components/organisms/Sidebar.d.ts +0 -65
  107. package/dist/components/organisms/SignaturePad.d.ts +0 -44
  108. package/dist/components/organisms/Split.d.ts +0 -42
  109. package/dist/components/organisms/StatCard.d.ts +0 -66
  110. package/dist/components/organisms/StateMachineView.d.ts +0 -36
  111. package/dist/components/organisms/Table.d.ts +0 -99
  112. package/dist/components/organisms/Timeline.d.ts +0 -58
  113. package/dist/components/organisms/ToastSlot.d.ts +0 -38
  114. package/dist/components/organisms/UISlotRenderer.d.ts +0 -112
  115. package/dist/components/organisms/WizardContainer.d.ts +0 -160
  116. package/dist/components/organisms/book/BookChapterView.d.ts +0 -17
  117. package/dist/components/organisms/book/BookCoverPage.d.ts +0 -19
  118. package/dist/components/organisms/book/BookNavBar.d.ts +0 -18
  119. package/dist/components/organisms/book/BookTableOfContents.d.ts +0 -18
  120. package/dist/components/organisms/book/BookViewer.d.ts +0 -28
  121. package/dist/components/organisms/book/index.d.ts +0 -7
  122. package/dist/components/organisms/book/types.d.ts +0 -77
  123. package/dist/components/organisms/game/BattleBoard.d.ts +0 -167
  124. package/dist/components/organisms/game/CanvasEffect.d.ts +0 -68
  125. package/dist/components/organisms/game/CastleBoard.d.ts +0 -85
  126. package/dist/components/organisms/game/DialogueBox.d.ts +0 -73
  127. package/dist/components/organisms/game/GameAudioProvider.d.ts +0 -47
  128. package/dist/components/organisms/game/GameAudioToggle.d.ts +0 -28
  129. package/dist/components/organisms/game/GameHud.d.ts +0 -40
  130. package/dist/components/organisms/game/GameMenu.d.ts +0 -43
  131. package/dist/components/organisms/game/GameOverScreen.d.ts +0 -56
  132. package/dist/components/organisms/game/InventoryPanel.d.ts +0 -67
  133. package/dist/components/organisms/game/IsometricCanvas.d.ts +0 -123
  134. package/dist/components/organisms/game/TraitSlot.d.ts +0 -86
  135. package/dist/components/organisms/game/TraitStateViewer.d.ts +0 -53
  136. package/dist/components/organisms/game/UncontrolledBattleBoard.d.ts +0 -26
  137. package/dist/components/organisms/game/WorldMapBoard.d.ts +0 -147
  138. package/dist/components/organisms/game/editor/editorUtils.d.ts +0 -109
  139. package/dist/components/organisms/game/editor/index.d.ts +0 -9
  140. package/dist/components/organisms/game/hooks/useBattleState.d.ts +0 -35
  141. package/dist/components/organisms/game/hooks/useCamera.d.ts +0 -41
  142. package/dist/components/organisms/game/hooks/useGameAudio.d.ts +0 -47
  143. package/dist/components/organisms/game/hooks/useImageCache.d.ts +0 -16
  144. package/dist/components/organisms/game/hooks/usePhysics2D.d.ts +0 -45
  145. package/dist/components/organisms/game/hooks/useSpriteAnimations.d.ts +0 -43
  146. package/dist/components/organisms/game/index.d.ts +0 -36
  147. package/dist/components/organisms/game/managers/PhysicsManager.d.ts +0 -103
  148. package/dist/components/organisms/game/types/effects.d.ts +0 -253
  149. package/dist/components/organisms/game/types/isometric.d.ts +0 -109
  150. package/dist/components/organisms/game/types/spriteAnimation.d.ts +0 -73
  151. package/dist/components/organisms/game/utils/canvasEffects.d.ts +0 -50
  152. package/dist/components/organisms/game/utils/combatPresets.d.ts +0 -15
  153. package/dist/components/organisms/game/utils/isometric.d.ts +0 -61
  154. package/dist/components/organisms/game/utils/spriteAnimation.d.ts +0 -57
  155. package/dist/components/organisms/game/utils/spriteSheetConstants.d.ts +0 -16
  156. package/dist/components/organisms/index.d.ts +0 -37
  157. package/dist/components/organisms/layout/DashboardGrid.d.ts +0 -34
  158. package/dist/components/organisms/layout/MasterDetail.d.ts +0 -32
  159. package/dist/components/organisms/layout/SplitPane.d.ts +0 -34
  160. package/dist/components/organisms/layout/TabbedContainer.d.ts +0 -42
  161. package/dist/components/organisms/layout/index.d.ts +0 -9
  162. package/dist/components/organisms/types.d.ts +0 -65
  163. package/dist/components/templates/AuthLayout.d.ts +0 -14
  164. package/dist/components/templates/BattleTemplate.d.ts +0 -25
  165. package/dist/components/templates/CastleTemplate.d.ts +0 -23
  166. package/dist/components/templates/CounterTemplate.d.ts +0 -44
  167. package/dist/components/templates/DashboardLayout.d.ts +0 -32
  168. package/dist/components/templates/GameShell.d.ts +0 -33
  169. package/dist/components/templates/GameTemplate.d.ts +0 -36
  170. package/dist/components/templates/GenericAppTemplate.d.ts +0 -30
  171. package/dist/components/templates/WorldMapTemplate.d.ts +0 -29
  172. package/dist/components/templates/index.d.ts +0 -10
  173. package/dist/components/templates/types.d.ts +0 -17
  174. package/dist/context/DesignThemeContext.d.ts +0 -21
  175. package/dist/context/ThemeContext.d.ts +0 -104
  176. package/dist/context/UISlotContext.d.ts +0 -75
  177. package/dist/context/UserContext.d.ts +0 -111
  178. package/dist/context/index.d.ts +0 -8
  179. package/dist/hooks/event-bus-types.d.ts +0 -71
  180. package/dist/hooks/index.d.ts +0 -25
  181. package/dist/hooks/useAgentChat.d.ts +0 -104
  182. package/dist/hooks/useAuthContext.d.ts +0 -25
  183. package/dist/hooks/useCompile.d.ts +0 -22
  184. package/dist/hooks/useDeepAgentGeneration.d.ts +0 -46
  185. package/dist/hooks/useEntities.d.ts +0 -52
  186. package/dist/hooks/useEntityData.d.ts +0 -155
  187. package/dist/hooks/useEntityMutations.d.ts +0 -80
  188. package/dist/hooks/useEventBus.d.ts +0 -96
  189. package/dist/hooks/useExtensions.d.ts +0 -32
  190. package/dist/hooks/useFileEditor.d.ts +0 -32
  191. package/dist/hooks/useFileSystem.d.ts +0 -40
  192. package/dist/hooks/useGitHub.d.ts +0 -58
  193. package/dist/hooks/useOrbitalHistory.d.ts +0 -39
  194. package/dist/hooks/useOrbitalMutations.d.ts +0 -95
  195. package/dist/hooks/usePreview.d.ts +0 -57
  196. package/dist/hooks/useQuerySingleton.d.ts +0 -78
  197. package/dist/hooks/useResolvedEntity.d.ts +0 -32
  198. package/dist/hooks/useTranslate.d.ts +0 -35
  199. package/dist/hooks/useUIEvents.d.ts +0 -35
  200. package/dist/hooks/useUISlots.d.ts +0 -84
  201. package/dist/hooks/useValidation.d.ts +0 -46
  202. package/dist/lib/api-client.d.ts +0 -42
  203. package/dist/lib/cn.d.ts +0 -6
  204. package/dist/lib/debug.d.ts +0 -43
  205. package/dist/lib/debugRegistry.d.ts +0 -29
  206. package/dist/lib/debugUtils.d.ts +0 -27
  207. package/dist/lib/entityDebug.d.ts +0 -38
  208. package/dist/lib/getNestedValue.d.ts +0 -33
  209. package/dist/lib/guardRegistry.d.ts +0 -32
  210. package/dist/lib/index.d.ts +0 -18
  211. package/dist/lib/jazari/svg-paths.d.ts +0 -61
  212. package/dist/lib/parseContentSegments.d.ts +0 -41
  213. package/dist/lib/tickRegistry.d.ts +0 -40
  214. package/dist/lib/traitRegistry.d.ts +0 -34
  215. package/dist/lib/verificationRegistry.d.ts +0 -107
  216. package/dist/lib/visualizer/index.d.ts +0 -143
  217. package/dist/locales/index.d.ts +0 -20
  218. package/dist/providers/EventBusProvider.d.ts +0 -60
  219. package/dist/providers/FetchedDataProvider.d.ts +0 -105
  220. package/dist/providers/OfflineModeProvider.d.ts +0 -79
  221. package/dist/providers/OrbitalProvider.d.ts +0 -101
  222. package/dist/providers/SelectionProvider.d.ts +0 -81
  223. package/dist/providers/VerificationProvider.d.ts +0 -63
  224. package/dist/providers/index.d.ts +0 -17
  225. package/dist/renderer/client-effect-executor.d.ts +0 -68
  226. package/dist/renderer/data-resolver.d.ts +0 -68
  227. package/dist/renderer/index.d.ts +0 -28
  228. package/dist/renderer/init.d.ts +0 -14
  229. package/dist/renderer/navigation.d.ts +0 -142
  230. package/dist/renderer/offline-executor.d.ts +0 -238
  231. package/dist/renderer/pattern-resolver.d.ts +0 -91
  232. package/dist/renderer/slot-definitions.d.ts +0 -45
  233. package/dist/renderer/types.d.ts +0 -160
  234. package/dist/renderer/useClientEffects.d.ts +0 -88
  235. package/dist/stores/entityStore.d.ts +0 -99
  236. package/dist/stores/filtering.d.ts +0 -51
  237. package/dist/stores/index.d.ts +0 -7
  238. package/dist/{chunk-RIZ76XRF.js → chunk-X3IKFHFT.js} +1 -1
@@ -1,51 +0,0 @@
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;
@@ -1,42 +0,0 @@
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;
@@ -1,27 +0,0 @@
1
- import * as React from 'react';
2
- export interface StatBadgeProps {
3
- /** Stat label */
4
- label: string;
5
- /** Current value (defaults to 0 if not provided) */
6
- value?: number | string;
7
- /** Maximum value (for bar/hearts format) */
8
- max?: number;
9
- /** Data source entity name (for schema config) */
10
- source?: string;
11
- /** Field name in the source (for schema config) */
12
- field?: string;
13
- /** Display format */
14
- format?: 'number' | 'hearts' | 'bar' | 'text' | string;
15
- /** Icon component or emoji */
16
- icon?: React.ReactNode;
17
- /** Size variant */
18
- size?: 'sm' | 'md' | 'lg' | string;
19
- /** Visual variant */
20
- variant?: 'default' | 'primary' | 'success' | 'warning' | 'danger' | string;
21
- /** Additional CSS classes */
22
- className?: string;
23
- }
24
- export declare function StatBadge({ label, value, max, format, icon, size, variant, className, source: _source, field: _field, }: StatBadgeProps): import("react/jsx-runtime").JSX.Element;
25
- export declare namespace StatBadge {
26
- var displayName: string;
27
- }
@@ -1,38 +0,0 @@
1
- export { ErrorBoundary, type ErrorBoundaryProps } from './ErrorBoundary';
2
- export { FormField, type FormFieldProps } from './FormField';
3
- export { EmptyState, type EmptyStateProps } from './EmptyState';
4
- export { LoadingState, type LoadingStateProps } from './LoadingState';
5
- export { ErrorState, type ErrorStateProps } from './ErrorState';
6
- export { Skeleton, type SkeletonProps, type SkeletonVariant } from './Skeleton';
7
- export { Accordion, type AccordionProps, type AccordionItem } from './Accordion';
8
- export { Alert, type AlertProps, type AlertVariant } from './Alert';
9
- export { Breadcrumb, type BreadcrumbProps, type BreadcrumbItem } from './Breadcrumb';
10
- export { ButtonGroup, type ButtonGroupProps } from './ButtonGroup';
11
- export { FilterGroup, type FilterGroupProps, type FilterDefinition } from './FilterGroup';
12
- export { Card as ActionCard, type CardProps as ActionCardProps, type CardAction } from './Card';
13
- export { Container, type ContainerProps } from './Container';
14
- export { Flex, type FlexProps } from './Flex';
15
- export { FloatingActionButton, type FloatingActionButtonProps } from './FloatingActionButton';
16
- export { Grid, type GridProps } from './Grid';
17
- export { InputGroup, type InputGroupProps } from './InputGroup';
18
- export { Menu, type MenuProps, type MenuItem } from './Menu';
19
- export { Modal, type ModalProps, type ModalSize } from './Modal';
20
- export { Pagination, type PaginationProps } from './Pagination';
21
- export { Popover, type PopoverProps } from './Popover';
22
- export { RelationSelect, type RelationSelectProps, type RelationOption } from './RelationSelect';
23
- export { SearchInput, type SearchInputProps } from './SearchInput';
24
- export { SidePanel, type SidePanelProps } from './SidePanel';
25
- export { SimpleGrid, type SimpleGridProps } from './SimpleGrid';
26
- export { Tabs, type TabsProps, type TabItem } from './Tabs';
27
- export { Toast, type ToastProps, type ToastVariant } from './Toast';
28
- export { Tooltip, type TooltipProps } from './Tooltip';
29
- export { Drawer, type DrawerProps, type DrawerPosition, type DrawerSize } from './Drawer';
30
- export { WizardProgress, type WizardProgressProps, type WizardProgressStep } from './WizardProgress';
31
- export { WizardNavigation, type WizardNavigationProps } from './WizardNavigation';
32
- export { MarkdownContent, type MarkdownContentProps } from './markdown/MarkdownContent';
33
- export { CodeBlock, type CodeBlockProps } from './markdown/CodeBlock';
34
- export { QuizBlock, type QuizBlockProps } from './QuizBlock';
35
- export { ScaledDiagram, type ScaledDiagramProps } from './ScaledDiagram';
36
- export { RepeatableFormSection, type RepeatableFormSectionProps, type RepeatableItem } from './RepeatableFormSection';
37
- export { ViolationAlert, type ViolationAlertProps, type ViolationRecord } from './ViolationAlert';
38
- export { FormSectionHeader, type FormSectionHeaderProps } from './FormSectionHeader';
@@ -1,25 +0,0 @@
1
- /**
2
- * CodeBlock Molecule Component
3
- *
4
- * A syntax-highlighted code block with copy-to-clipboard functionality.
5
- * Preserves scroll position during re-renders.
6
- *
7
- * Event Contract:
8
- * - Emits: UI:COPY_CODE { language, success }
9
- */
10
- import React from 'react';
11
- export interface CodeBlockProps {
12
- /** The code content to display */
13
- code: string;
14
- /** Programming language for syntax highlighting */
15
- language?: string;
16
- /** Show the copy button */
17
- showCopyButton?: boolean;
18
- /** Show the language badge */
19
- showLanguageBadge?: boolean;
20
- /** Maximum height before scrolling */
21
- maxHeight?: string;
22
- /** Additional CSS classes */
23
- className?: string;
24
- }
25
- export declare const CodeBlock: React.NamedExoticComponent<CodeBlockProps>;
@@ -1,26 +0,0 @@
1
- /**
2
- * MarkdownContent Molecule Component
3
- *
4
- * Renders markdown content with support for GFM (GitHub Flavored Markdown)
5
- * and math equations (KaTeX). Handles inline code only — fenced code blocks
6
- * should be parsed out and rendered with CodeBlock component.
7
- *
8
- * Event Contract:
9
- * - No events emitted (display-only component)
10
- * - entityAware: false
11
- *
12
- * NOTE: react-markdown's `components` override API requires native HTML
13
- * elements — this is the same library-boundary exception as `<iframe>` in
14
- * DocumentViewer and `<svg>` in JazariStateMachine/StateMachineView.
15
- */
16
- import React from 'react';
17
- import 'katex/dist/katex.min.css';
18
- export interface MarkdownContentProps {
19
- /** The markdown content to render */
20
- content: string;
21
- /** Text direction */
22
- direction?: 'rtl' | 'ltr';
23
- /** Additional CSS classes */
24
- className?: string;
25
- }
26
- export declare const MarkdownContent: React.NamedExoticComponent<MarkdownContentProps>;
@@ -1,72 +0,0 @@
1
- /**
2
- * CardGrid Component
3
- *
4
- * A dumb, responsive grid specifically designed for card layouts.
5
- * Uses CSS Grid auto-fit for automatic responsive columns.
6
- *
7
- * Data comes exclusively from the `data` prop (provided by the trait via render-ui).
8
- * All user interactions emit events via useEventBus — never manages internal state
9
- * for pagination, filtering, or search. All state is owned by the trait state machine.
10
- */
11
- import React from 'react';
12
- import type { EntityDisplayProps } from './types';
13
- export type CardGridGap = 'none' | 'sm' | 'md' | 'lg' | 'xl';
14
- /**
15
- * Action configuration for card items (schema-driven)
16
- */
17
- export interface CardItemAction {
18
- /** Action button label */
19
- label: string;
20
- /** Event to dispatch on click (schema metadata) */
21
- event?: string;
22
- /** Navigation URL - supports template interpolation like "/products/{{row.id}}" */
23
- navigatesTo?: string;
24
- /** Callback on click */
25
- onClick?: (item: unknown) => void;
26
- /** Action used by generated code - alternative to event */
27
- action?: string;
28
- /** Action placement - accepts string for compatibility with generated code */
29
- placement?: 'card' | 'footer' | 'row' | string;
30
- /** Button variant - accepts string for compatibility with generated code */
31
- variant?: 'primary' | 'secondary' | 'ghost' | 'danger' | string;
32
- }
33
- /**
34
- * Field definition - can be a simple string or object with key/header
35
- */
36
- export type FieldDef = string | {
37
- key: string;
38
- header?: string;
39
- };
40
- export interface CardGridProps extends EntityDisplayProps {
41
- /** Minimum width of each card (default: 280px) */
42
- minCardWidth?: number;
43
- /** Maximum number of columns */
44
- maxCols?: 1 | 2 | 3 | 4 | 5 | 6;
45
- /** Gap between cards */
46
- gap?: CardGridGap;
47
- /** Align cards vertically in their cells */
48
- alignItems?: 'start' | 'center' | 'end' | 'stretch';
49
- /** Children elements (cards) - optional when using entity/data props */
50
- children?: React.ReactNode;
51
- /** Fields to display - accepts string[] or {key, header}[] for unified interface */
52
- fields?: readonly FieldDef[];
53
- /** Alias for fields - backwards compatibility */
54
- fieldNames?: readonly string[];
55
- /** Alias for fields - backwards compatibility */
56
- columns?: readonly FieldDef[];
57
- /** Actions for each card item (schema-driven) */
58
- itemActions?: readonly CardItemAction[];
59
- /** Show total count in pagination */
60
- showTotal?: boolean;
61
- }
62
- /**
63
- * CardGrid - Responsive card collection layout
64
- *
65
- * Can be used in two ways:
66
- * 1. With children: <CardGrid><Card>...</Card></CardGrid>
67
- * 2. With data: <CardGrid entity="Task" fieldNames={['title']} data={tasks} />
68
- *
69
- * All data comes from the `data` prop. Pagination display hints come from
70
- * `page`, `pageSize`, and `totalCount` props (set by the trait via render-ui).
71
- */
72
- export declare const CardGrid: React.FC<CardGridProps>;
@@ -1,59 +0,0 @@
1
- /**
2
- * Chart Organism Component
3
- *
4
- * A data visualization component supporting bar, line, pie, and area chart types.
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
- export type ChartType = "bar" | "line" | "pie" | "area" | "donut";
15
- export interface ChartDataPoint {
16
- label: string;
17
- value: number;
18
- color?: string;
19
- }
20
- export interface ChartSeries {
21
- name: string;
22
- data: readonly ChartDataPoint[];
23
- color?: string;
24
- }
25
- export interface ChartAction {
26
- label: string;
27
- event?: string;
28
- navigatesTo?: string;
29
- variant?: "primary" | "secondary" | "ghost";
30
- }
31
- export interface ChartProps {
32
- /** Chart title */
33
- title?: string;
34
- /** Chart subtitle / description */
35
- subtitle?: string;
36
- /** Chart type */
37
- chartType?: ChartType;
38
- /** Data series */
39
- series?: readonly ChartSeries[];
40
- /** Simple data (single series shorthand) */
41
- data?: readonly ChartDataPoint[];
42
- /** Chart height in px */
43
- height?: number;
44
- /** Show legend */
45
- showLegend?: boolean;
46
- /** Show values on chart */
47
- showValues?: boolean;
48
- /** Actions for chart interactions */
49
- actions?: readonly ChartAction[];
50
- /** Entity name for schema-driven auto-fetch */
51
- entity?: string;
52
- /** Loading state */
53
- isLoading?: boolean;
54
- /** Error state */
55
- error?: Error | null;
56
- /** Additional CSS classes */
57
- className?: string;
58
- }
59
- export declare const Chart: React.FC<ChartProps>;
@@ -1,67 +0,0 @@
1
- /**
2
- * CodeViewer Organism Component
3
- *
4
- * A code/diff viewer with syntax highlighting and line numbers.
5
- * Composes atoms and molecules for layout. Uses pre/code elements
6
- * which are semantically necessary for code display.
7
- *
8
- * Orbital Component Interface Compliance:
9
- * - Entity binding with auto-fetch when entity is a string
10
- * - Event emission via useEventBus (UI:* events)
11
- * - isLoading and error state props
12
- * - className for external styling
13
- */
14
- import React from "react";
15
- export type CodeViewerMode = "code" | "diff";
16
- export interface DiffLine {
17
- type: "add" | "remove" | "context";
18
- content: string;
19
- lineNumber?: number;
20
- }
21
- export interface CodeViewerAction {
22
- label: string;
23
- event?: string;
24
- navigatesTo?: string;
25
- variant?: "primary" | "secondary" | "ghost";
26
- }
27
- export interface CodeViewerProps {
28
- /** Viewer title */
29
- title?: string;
30
- /** Code content */
31
- code?: string;
32
- /** Language for display label */
33
- language?: string;
34
- /** Diff lines (for diff mode) */
35
- diff?: readonly DiffLine[];
36
- /** Old value (for generating diff) */
37
- oldValue?: string;
38
- /** New value (for generating diff) */
39
- newValue?: string;
40
- /** Display mode */
41
- mode?: CodeViewerMode;
42
- /** Show line numbers */
43
- showLineNumbers?: boolean;
44
- /** Show copy button */
45
- showCopy?: boolean;
46
- /** Enable word wrap */
47
- wordWrap?: boolean;
48
- /** Max height before scrolling */
49
- maxHeight?: number | string;
50
- /** Multiple files (tabbed view) */
51
- files?: readonly {
52
- label: string;
53
- code: string;
54
- language?: string;
55
- }[];
56
- /** Actions */
57
- actions?: readonly CodeViewerAction[];
58
- /** Entity name for schema-driven auto-fetch */
59
- entity?: string;
60
- /** Loading state */
61
- isLoading?: boolean;
62
- /** Error state */
63
- error?: Error | null;
64
- /** Additional CSS classes */
65
- className?: string;
66
- }
67
- export declare const CodeViewer: React.FC<CodeViewerProps>;