@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,55 +0,0 @@
1
- /**
2
- * Breadcrumb Molecule Component
3
- *
4
- * A breadcrumb navigation component with separators and icons.
5
- * Uses Button, Icon, and Typography atoms.
6
- */
7
- import React from "react";
8
- import type { LucideIcon } from "lucide-react";
9
- export interface BreadcrumbItem {
10
- /**
11
- * Item label
12
- */
13
- label: string;
14
- /**
15
- * Item href (if provided, renders as link)
16
- */
17
- href?: string;
18
- /**
19
- * Item path (alias for href, for schema compatibility)
20
- */
21
- path?: string;
22
- /**
23
- * Item icon
24
- */
25
- icon?: LucideIcon;
26
- /**
27
- * Click handler (if href not provided)
28
- */
29
- onClick?: () => void;
30
- /**
31
- * Is current page
32
- */
33
- isCurrent?: boolean;
34
- /** Event name to emit when clicked (for trait state machine integration) */
35
- event?: string;
36
- }
37
- export interface BreadcrumbProps {
38
- /**
39
- * Breadcrumb items
40
- */
41
- items: BreadcrumbItem[];
42
- /**
43
- * Separator icon
44
- */
45
- separator?: LucideIcon;
46
- /**
47
- * Maximum items to show (truncates with ellipsis)
48
- */
49
- maxItems?: number;
50
- /**
51
- * Additional CSS classes
52
- */
53
- className?: string;
54
- }
55
- export declare const Breadcrumb: React.FC<BreadcrumbProps>;
@@ -1,67 +0,0 @@
1
- /**
2
- * ButtonGroup Molecule Component
3
- *
4
- * A component for grouping buttons together with connected styling.
5
- * Supports both children-based and form-actions pattern (primary/secondary) usage.
6
- * Uses Button atoms.
7
- */
8
- import React from 'react';
9
- export type ButtonGroupVariant = 'default' | 'segmented' | 'toggle';
10
- /** Action button config for form-actions pattern */
11
- export interface ActionButton {
12
- label: string;
13
- /** Action type - 'submit' renders as submit button, others render as button */
14
- actionType?: string;
15
- event?: string;
16
- navigatesTo?: string;
17
- /** Button variant - matches Button component variants. Accepts string for schema compatibility. */
18
- variant?: string;
19
- }
20
- /** Filter definition for filter-group pattern */
21
- export interface FilterDefinition {
22
- field: string;
23
- label: string;
24
- /** Filter type (checkbox, select, etc.) */
25
- type?: 'checkbox' | 'select' | 'toggle';
26
- /** Options for select filters */
27
- options?: readonly string[];
28
- }
29
- export interface ButtonGroupProps {
30
- /**
31
- * Button group content (Button components) - use this OR primary/secondary
32
- */
33
- children?: React.ReactNode;
34
- /**
35
- * Primary action button config (for form-actions pattern)
36
- * Accepts Readonly for compatibility with generated const objects
37
- */
38
- primary?: Readonly<ActionButton>;
39
- /**
40
- * Secondary action buttons config (for form-actions pattern)
41
- * Accepts readonly array for compatibility with generated const arrays
42
- */
43
- secondary?: readonly Readonly<ActionButton>[];
44
- /**
45
- * Visual variant
46
- * @default 'default'
47
- */
48
- variant?: ButtonGroupVariant;
49
- /**
50
- * Orientation
51
- * @default 'horizontal'
52
- */
53
- orientation?: 'horizontal' | 'vertical';
54
- /**
55
- * Additional CSS classes
56
- */
57
- className?: string;
58
- /**
59
- * Entity type for filter-group pattern (schema metadata)
60
- */
61
- entity?: string;
62
- /**
63
- * Filter definitions for filter-group pattern
64
- */
65
- filters?: readonly FilterDefinition[];
66
- }
67
- export declare const ButtonGroup: React.FC<ButtonGroupProps>;
@@ -1,44 +0,0 @@
1
- /**
2
- * Card Component
3
- *
4
- * A generic card container for displaying content with optional title,
5
- * subtitle, and action buttons.
6
- *
7
- * @generated by Orbital Compiler
8
- */
9
- import React from "react";
10
- export interface CardAction {
11
- label: string;
12
- onClick?: () => void;
13
- /** Event name to emit when clicked (for trait state machine integration) */
14
- event?: string;
15
- variant?: "default" | "primary" | "danger";
16
- icon?: string;
17
- disabled?: boolean;
18
- }
19
- export interface CardProps {
20
- /** Card title */
21
- title?: string;
22
- /** Card subtitle or description */
23
- subtitle?: string;
24
- /** Image URL to display at top of card */
25
- image?: string;
26
- /** Action buttons to display in card footer */
27
- actions?: CardAction[];
28
- /** Card content */
29
- children?: React.ReactNode;
30
- /** Click handler for the entire card */
31
- onClick?: () => void;
32
- /** Additional CSS classes */
33
- className?: string;
34
- /** Declarative event name — emits UI:{action} via eventBus on card click */
35
- action?: string;
36
- }
37
- /**
38
- * Card component for displaying content in a contained box
39
- */
40
- export declare function Card({ title, subtitle, image, actions, children, onClick, className, action, }: CardProps): import("react/jsx-runtime").JSX.Element;
41
- export declare namespace Card {
42
- var displayName: string;
43
- }
44
- export default Card;
@@ -1,30 +0,0 @@
1
- /**
2
- * Container Component
3
- *
4
- * A max-width wrapper that centers content horizontally.
5
- * Essential for controlling page width and maintaining consistent margins.
6
- */
7
- import React from 'react';
8
- export type ContainerSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'full';
9
- export type ContainerPadding = 'none' | 'sm' | 'md' | 'lg' | 'xl';
10
- export interface ContainerProps {
11
- /** Maximum width */
12
- size?: ContainerSize;
13
- /** Alias for size (pattern compatibility) */
14
- maxWidth?: ContainerSize;
15
- /** Horizontal padding */
16
- padding?: ContainerPadding;
17
- /** Center horizontally */
18
- center?: boolean;
19
- /** Custom class name */
20
- className?: string;
21
- /** Children elements */
22
- children?: React.ReactNode;
23
- /** HTML element to render as */
24
- as?: React.ElementType;
25
- }
26
- /**
27
- * Container - Centers and constrains content width
28
- */
29
- export declare const Container: React.FC<ContainerProps>;
30
- export default Container;
@@ -1,46 +0,0 @@
1
- /**
2
- * Drawer Molecule Component
3
- *
4
- * A slide-in drawer component for displaying secondary content.
5
- * Used by the UI Slot system for render_ui effects targeting the drawer slot.
6
- *
7
- * Features:
8
- * - Left/right positioning
9
- * - Configurable width
10
- * - Overlay backdrop
11
- * - Click-outside to dismiss
12
- * - Slide animation
13
- * - Escape key to close
14
- *
15
- * @packageDocumentation
16
- */
17
- import React from "react";
18
- export type DrawerPosition = "left" | "right";
19
- export type DrawerSize = "sm" | "md" | "lg" | "xl" | "full";
20
- export interface DrawerProps {
21
- /** Whether the drawer is open (defaults to true when rendered by slot wrapper) */
22
- isOpen?: boolean;
23
- /** Callback when drawer should close (injected by slot wrapper) */
24
- onClose?: () => void;
25
- /** Drawer title */
26
- title?: string;
27
- /** Drawer content (can be empty if using slot content) */
28
- children?: React.ReactNode;
29
- /** Footer content */
30
- footer?: React.ReactNode;
31
- /** Position (left or right) */
32
- position?: DrawerPosition;
33
- /** Width (CSS value or preset size) */
34
- width?: string | DrawerSize;
35
- /** Show close button */
36
- showCloseButton?: boolean;
37
- /** Close on overlay click */
38
- closeOnOverlayClick?: boolean;
39
- /** Close on escape key */
40
- closeOnEscape?: boolean;
41
- /** Additional class name */
42
- className?: string;
43
- /** Declarative close event — emits UI:{closeEvent} via eventBus when drawer should close */
44
- closeEvent?: string;
45
- }
46
- export declare const Drawer: React.FC<DrawerProps>;
@@ -1,25 +0,0 @@
1
- import React from "react";
2
- import { LucideIcon } from "lucide-react";
3
- export interface EmptyStateProps {
4
- /**
5
- * Icon to display. Accepts either:
6
- * - A Lucide icon component (LucideIcon)
7
- * - A string icon name (e.g., "check-circle", "x-circle")
8
- */
9
- icon?: LucideIcon | string;
10
- /** Primary text to display - use title or message (message is alias for backwards compat) */
11
- title?: string;
12
- /** Alias for title - used by schema patterns */
13
- message?: string;
14
- description?: string;
15
- actionLabel?: string;
16
- onAction?: () => void;
17
- className?: string;
18
- /** Destructive styling for confirmation dialogs */
19
- destructive?: boolean;
20
- /** Variant for color styling */
21
- variant?: "default" | "success" | "error" | "warning" | "info";
22
- /** Declarative action event — emits UI:{actionEvent} via eventBus when action button is clicked */
23
- actionEvent?: string;
24
- }
25
- export declare const EmptyState: React.FC<EmptyStateProps>;
@@ -1,55 +0,0 @@
1
- import React from 'react';
2
- import type { ReactNode, ErrorInfo } from 'react';
3
- export interface ErrorBoundaryProps {
4
- /** Content to render when no error */
5
- children: ReactNode;
6
- /** Fallback UI when an error is caught — ReactNode or render function */
7
- fallback?: ReactNode | ((error: Error, reset: () => void) => ReactNode);
8
- /** Additional CSS classes for the wrapper */
9
- className?: string;
10
- /** Called when an error is caught (for logging/telemetry) */
11
- onError?: (error: Error, errorInfo: ErrorInfo) => void;
12
- }
13
- interface ErrorBoundaryState {
14
- error: Error | null;
15
- }
16
- /**
17
- * ErrorBoundary — catches React render errors in child components.
18
- *
19
- * Uses `getDerivedStateFromError` and `componentDidCatch` to capture errors
20
- * and render a fallback UI. Supports both static ReactNode fallbacks and
21
- * render-function fallbacks that receive the error and a reset function.
22
- *
23
- * @example
24
- * ```tsx
25
- * // Static fallback
26
- * <ErrorBoundary fallback={<Alert variant="error">Something broke</Alert>}>
27
- * <MyComponent />
28
- * </ErrorBoundary>
29
- *
30
- * // Render function fallback with reset
31
- * <ErrorBoundary fallback={(error, reset) => (
32
- * <VStack>
33
- * <Typography>Error: {error.message}</Typography>
34
- * <Button onClick={reset}>Try Again</Button>
35
- * </VStack>
36
- * )}>
37
- * <MyComponent />
38
- * </ErrorBoundary>
39
- *
40
- * // Default fallback (uses ErrorState molecule)
41
- * <ErrorBoundary>
42
- * <MyComponent />
43
- * </ErrorBoundary>
44
- * ```
45
- */
46
- export declare class ErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBoundaryState> {
47
- static displayName: string;
48
- constructor(props: ErrorBoundaryProps);
49
- static getDerivedStateFromError(error: Error): ErrorBoundaryState;
50
- componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
51
- private reset;
52
- render(): ReactNode;
53
- private renderFallback;
54
- }
55
- export default ErrorBoundary;
@@ -1,13 +0,0 @@
1
- import React from "react";
2
- export interface ErrorStateProps {
3
- title?: string;
4
- /** Error message to display */
5
- message?: string;
6
- /** Alias for message (schema compatibility) */
7
- description?: string;
8
- onRetry?: () => void;
9
- className?: string;
10
- /** Declarative retry event — emits UI:{retryEvent} via eventBus when retry button is clicked */
11
- retryEvent?: string;
12
- }
13
- export declare const ErrorState: React.FC<ErrorStateProps>;
@@ -1,54 +0,0 @@
1
- /**
2
- * FilterGroup Molecule Component
3
- *
4
- * A component for filtering entity data. Composes atoms (Button, Select, Badge, HStack)
5
- * and follows the design system using CSS variables.
6
- *
7
- * Implements the Closed Circuit principle:
8
- * - FilterGroup updates QuerySingleton filters via query prop
9
- * - FilterGroup emits UI:FILTER events for trait state machines
10
- * - entity-list/entity-cards read filtered data via query prop
11
- *
12
- * Supports Query Singleton pattern via `query` prop for std/Filter behavior.
13
- */
14
- import React from "react";
15
- /** Filter definition from schema */
16
- export interface FilterDefinition {
17
- field: string;
18
- label: string;
19
- /** Filter type - 'date' renders a date picker, 'date-range'/'daterange' renders two date pickers */
20
- filterType?: "select" | "toggle" | "checkbox" | "date" | "daterange" | "date-range";
21
- /** Alias for filterType (schema compatibility) */
22
- type?: "select" | "toggle" | "checkbox" | "date" | "daterange" | "date-range";
23
- /** Options for select/toggle filters */
24
- options?: readonly string[];
25
- }
26
- export interface FilterGroupProps {
27
- /** Entity name to filter */
28
- entity: string;
29
- /** Filter definitions from schema */
30
- filters: readonly FilterDefinition[];
31
- /** Callback when a filter changes - for EntityStore integration */
32
- onFilterChange?: (field: string, value: string | null) => void;
33
- /** Callback to clear all filters */
34
- onClearAll?: () => void;
35
- /** Additional CSS classes */
36
- className?: string;
37
- /** Variant style */
38
- variant?: "default" | "compact" | "pills" | "vertical";
39
- /** Show filter icon */
40
- showIcon?: boolean;
41
- /**
42
- * Query singleton binding for state management.
43
- * When provided, syncs filter state with the query singleton.
44
- * Example: "@TaskQuery"
45
- */
46
- query?: string;
47
- /** Loading state indicator */
48
- isLoading?: boolean;
49
- }
50
- /**
51
- * FilterGroup - Renders filter controls for entity data
52
- * Uses atoms: Button, Select, Badge, HStack
53
- */
54
- export declare const FilterGroup: React.FC<FilterGroupProps>;
@@ -1,43 +0,0 @@
1
- /**
2
- * Flex Component
3
- *
4
- * A flexbox wrapper with all common flex properties exposed as props.
5
- * More explicit than Stack for when you need full flex control.
6
- */
7
- import React from 'react';
8
- export type FlexDirection = 'row' | 'row-reverse' | 'col' | 'col-reverse';
9
- export type FlexWrap = 'nowrap' | 'wrap' | 'wrap-reverse';
10
- export type FlexAlign = 'start' | 'center' | 'end' | 'stretch' | 'baseline';
11
- export type FlexJustify = 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly';
12
- export type FlexGap = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
13
- export interface FlexProps {
14
- /** Flex direction */
15
- direction?: FlexDirection;
16
- /** Flex wrap */
17
- wrap?: FlexWrap;
18
- /** Align items */
19
- align?: FlexAlign;
20
- /** Justify content */
21
- justify?: FlexJustify;
22
- /** Gap between items */
23
- gap?: FlexGap;
24
- /** Inline flex */
25
- inline?: boolean;
26
- /** Flex grow */
27
- grow?: boolean | number;
28
- /** Flex shrink */
29
- shrink?: boolean | number;
30
- /** Flex basis */
31
- basis?: string | number;
32
- /** Custom class name */
33
- className?: string;
34
- /** Children elements */
35
- children: React.ReactNode;
36
- /** HTML element to render as */
37
- as?: React.ElementType;
38
- }
39
- /**
40
- * Flex - Full-featured flexbox container
41
- */
42
- export declare const Flex: React.FC<FlexProps>;
43
- export default Flex;
@@ -1,69 +0,0 @@
1
- /**
2
- * FloatingActionButton Molecule Component
3
- *
4
- * A floating action button that can expand into multiple actions vertically.
5
- * Uses Button atom.
6
- */
7
- import React from "react";
8
- import type { LucideIcon } from "lucide-react";
9
- export interface FloatingAction {
10
- /**
11
- * Action ID
12
- */
13
- id: string;
14
- /**
15
- * Action label
16
- */
17
- label: string;
18
- /**
19
- * Action icon
20
- */
21
- icon: LucideIcon;
22
- /**
23
- * Action click handler
24
- */
25
- onClick?: () => void;
26
- /** Event name to emit when clicked (for trait state machine integration) */
27
- event?: string;
28
- /**
29
- * Action variant
30
- */
31
- variant?: "primary" | "secondary" | "success" | "danger" | "warning";
32
- }
33
- export interface FloatingActionButtonProps {
34
- /**
35
- * Single action (if only one action, button will directly trigger onClick)
36
- */
37
- action?: {
38
- icon: LucideIcon;
39
- onClick: () => void;
40
- label?: string;
41
- variant?: "primary" | "secondary" | "success" | "danger" | "warning";
42
- };
43
- /**
44
- * Multiple actions (if provided, button will expand to show all actions)
45
- */
46
- actions?: FloatingAction[];
47
- /**
48
- * Icon name (simplified API for pattern compatibility)
49
- */
50
- icon?: string;
51
- /**
52
- * Click handler (simplified API for pattern compatibility)
53
- */
54
- onClick?: () => void;
55
- /**
56
- * Variant (simplified API for pattern compatibility)
57
- */
58
- variant?: "primary" | "secondary" | "success" | "danger" | "warning";
59
- /**
60
- * Button position
61
- * @default 'bottom-right'
62
- */
63
- position?: "bottom-right" | "bottom-left" | "bottom-center" | "top-right" | "top-left" | "top-center" | string;
64
- /**
65
- * Additional CSS classes
66
- */
67
- className?: string;
68
- }
69
- export declare const FloatingActionButton: React.FC<FloatingActionButtonProps>;
@@ -1,16 +0,0 @@
1
- /**
2
- * FormField Molecule Component
3
- *
4
- * A form field wrapper with label, hint, and error message support.
5
- * **Atomic Design**: Composed using Label and Typography atoms.
6
- */
7
- import React from 'react';
8
- export interface FormFieldProps {
9
- label: string;
10
- required?: boolean;
11
- error?: string;
12
- hint?: string;
13
- className?: string;
14
- children: React.ReactNode;
15
- }
16
- export declare const FormField: React.FC<FormFieldProps>;
@@ -1,30 +0,0 @@
1
- /**
2
- * FormSectionHeader
3
- *
4
- * Header component for collapsible form sections.
5
- * Provides consistent styling and interaction for section headers.
6
- */
7
- import React from "react";
8
- export interface FormSectionHeaderProps {
9
- /** Section title */
10
- title: string;
11
- /** Section subtitle */
12
- subtitle?: string;
13
- /** Whether section is collapsed */
14
- isCollapsed?: boolean;
15
- /** Toggle collapse handler (makes header clickable) */
16
- onToggle?: () => void;
17
- /** Badge text (e.g., "3 fields", "Required", "Complete") */
18
- badge?: string;
19
- /** Badge variant */
20
- badgeVariant?: "default" | "primary" | "success" | "warning" | "danger";
21
- /** Icon name to show before title */
22
- icon?: string;
23
- /** Whether section has validation errors */
24
- hasErrors?: boolean;
25
- /** Whether section is complete */
26
- isComplete?: boolean;
27
- /** Additional CSS classes */
28
- className?: string;
29
- }
30
- export declare const FormSectionHeader: React.FC<FormSectionHeaderProps>;
@@ -1,54 +0,0 @@
1
- /**
2
- * Grid Component
3
- *
4
- * A CSS Grid wrapper with responsive column support.
5
- * Useful for creating multi-column layouts.
6
- */
7
- import React from 'react';
8
- export type GridCols = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 'none';
9
- export type GridGap = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
10
- export type GridAlign = 'start' | 'center' | 'end' | 'stretch' | 'baseline';
11
- export type GridJustify = 'start' | 'center' | 'end' | 'stretch';
12
- export interface ResponsiveGridCols {
13
- /** Base/mobile columns */
14
- base?: GridCols;
15
- /** Small screens (640px+) */
16
- sm?: GridCols;
17
- /** Medium screens (768px+) */
18
- md?: GridCols;
19
- /** Large screens (1024px+) */
20
- lg?: GridCols;
21
- /** Extra large screens (1280px+) */
22
- xl?: GridCols;
23
- }
24
- export interface GridProps {
25
- /** Number of columns (can be responsive object) */
26
- cols?: GridCols | ResponsiveGridCols;
27
- /** Number of rows */
28
- rows?: number;
29
- /** Gap between items */
30
- gap?: GridGap;
31
- /** Row gap (overrides gap for rows) */
32
- rowGap?: GridGap;
33
- /** Column gap (overrides gap for columns) */
34
- colGap?: GridGap;
35
- /** Align items on block axis */
36
- alignItems?: GridAlign;
37
- /** Justify items on inline axis */
38
- justifyItems?: GridJustify;
39
- /** Auto-flow direction */
40
- flow?: 'row' | 'col' | 'row-dense' | 'col-dense';
41
- /** Custom class name */
42
- className?: string;
43
- /** Inline styles */
44
- style?: React.CSSProperties;
45
- /** Children elements */
46
- children: React.ReactNode;
47
- /** HTML element to render as */
48
- as?: React.ElementType;
49
- }
50
- /**
51
- * Grid - CSS Grid layout wrapper
52
- */
53
- export declare const Grid: React.FC<GridProps>;
54
- export default Grid;
@@ -1,24 +0,0 @@
1
- /**
2
- * InputGroup Molecule Component
3
- *
4
- * A component for grouping input with addons (icons, buttons, text).
5
- * Uses Input, Button, Icon, and Typography atoms.
6
- */
7
- import React from "react";
8
- import type { LucideIcon } from "lucide-react";
9
- import { InputProps } from "../atoms/Input";
10
- export interface InputGroupProps extends Omit<InputProps, "icon" | "iconRight"> {
11
- /**
12
- * Left addon (icon, button, or text)
13
- */
14
- leftAddon?: React.ReactNode | LucideIcon;
15
- /**
16
- * Right addon (icon, button, or text)
17
- */
18
- rightAddon?: React.ReactNode | LucideIcon;
19
- /**
20
- * Additional CSS classes
21
- */
22
- className?: string;
23
- }
24
- export declare const InputGroup: React.FC<InputGroupProps>;
@@ -1,7 +0,0 @@
1
- import React from "react";
2
- export interface LoadingStateProps {
3
- title?: string;
4
- message?: string;
5
- className?: string;
6
- }
7
- export declare const LoadingState: React.FC<LoadingStateProps>;