@almadar/ui 1.0.34 → 2.0.1

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 (241) hide show
  1. package/LICENSE +21 -72
  2. package/dist/components/atoms/Avatar.d.ts +58 -0
  3. package/dist/components/atoms/Badge.d.ts +8 -0
  4. package/dist/components/atoms/Box.d.ts +57 -0
  5. package/dist/components/atoms/Button.d.ts +24 -0
  6. package/dist/components/atoms/Card.d.ts +18 -0
  7. package/dist/components/atoms/Center.d.ts +33 -0
  8. package/dist/components/atoms/Checkbox.d.ts +5 -0
  9. package/dist/components/atoms/ConditionalWrapper.d.ts +68 -0
  10. package/dist/components/atoms/Divider.d.ts +29 -0
  11. package/dist/components/atoms/Icon.d.ts +38 -0
  12. package/dist/components/atoms/Input.d.ts +26 -0
  13. package/dist/components/atoms/Label.d.ts +5 -0
  14. package/dist/components/atoms/LawReferenceTooltip.d.ts +48 -0
  15. package/dist/components/atoms/Overlay.d.ts +16 -0
  16. package/dist/components/atoms/ProgressBar.d.ts +63 -0
  17. package/dist/components/atoms/Radio.d.ts +26 -0
  18. package/dist/components/atoms/Select.d.ts +12 -0
  19. package/dist/components/atoms/Spacer.d.ts +25 -0
  20. package/dist/components/atoms/Spinner.d.ts +6 -0
  21. package/dist/components/atoms/Stack.d.ts +64 -0
  22. package/dist/components/atoms/Switch.d.ts +12 -0
  23. package/dist/components/atoms/TextHighlight.d.ts +53 -0
  24. package/dist/components/atoms/Textarea.d.ts +5 -0
  25. package/dist/components/atoms/ThemeSelector.d.ts +21 -0
  26. package/dist/components/atoms/ThemeToggle.d.ts +33 -0
  27. package/dist/components/atoms/Typography.d.ts +57 -0
  28. package/dist/components/atoms/game/ControlButton.d.ts +31 -0
  29. package/dist/components/atoms/game/HealthBar.d.ts +18 -0
  30. package/dist/components/atoms/game/ScoreDisplay.d.ts +21 -0
  31. package/dist/components/atoms/game/Sprite.d.ts +63 -0
  32. package/dist/components/atoms/game/StateIndicator.d.ts +31 -0
  33. package/dist/components/atoms/game/index.d.ts +12 -0
  34. package/dist/components/atoms/index.d.ts +27 -0
  35. package/dist/components/index.css +11 -9
  36. package/dist/components/index.d.ts +6 -6951
  37. package/dist/components/index.js +5 -5
  38. package/dist/components/molecules/Accordion.d.ts +67 -0
  39. package/dist/components/molecules/Alert.d.ts +24 -0
  40. package/dist/components/molecules/Breadcrumb.d.ts +55 -0
  41. package/dist/components/molecules/ButtonGroup.d.ts +67 -0
  42. package/dist/components/molecules/Card.d.ts +44 -0
  43. package/dist/components/molecules/Container.d.ts +30 -0
  44. package/dist/components/molecules/Drawer.d.ts +46 -0
  45. package/dist/components/molecules/EmptyState.d.ts +25 -0
  46. package/dist/components/molecules/ErrorBoundary.d.ts +55 -0
  47. package/dist/components/molecules/ErrorState.d.ts +13 -0
  48. package/dist/components/molecules/FilterGroup.d.ts +54 -0
  49. package/dist/components/molecules/Flex.d.ts +43 -0
  50. package/dist/components/molecules/FloatingActionButton.d.ts +69 -0
  51. package/dist/components/molecules/FormField.d.ts +16 -0
  52. package/dist/components/molecules/FormSectionHeader.d.ts +30 -0
  53. package/dist/components/molecules/Grid.d.ts +54 -0
  54. package/dist/components/molecules/InputGroup.d.ts +24 -0
  55. package/dist/components/molecules/LoadingState.d.ts +7 -0
  56. package/dist/components/molecules/Menu.d.ts +40 -0
  57. package/dist/components/molecules/Modal.d.ts +26 -0
  58. package/dist/components/molecules/Pagination.d.ts +66 -0
  59. package/dist/components/molecules/Popover.d.ts +39 -0
  60. package/dist/components/molecules/QuizBlock.d.ts +20 -0
  61. package/dist/components/molecules/RelationSelect.d.ts +48 -0
  62. package/dist/components/molecules/RepeatableFormSection.d.ts +58 -0
  63. package/dist/components/molecules/ScaledDiagram.d.ts +20 -0
  64. package/dist/components/molecules/SearchInput.d.ts +60 -0
  65. package/dist/components/molecules/SidePanel.d.ts +47 -0
  66. package/dist/components/molecules/SimpleGrid.d.ts +27 -0
  67. package/dist/components/molecules/Skeleton.d.ts +35 -0
  68. package/dist/components/molecules/Tabs.d.ts +45 -0
  69. package/dist/components/molecules/Toast.d.ts +35 -0
  70. package/dist/components/molecules/Tooltip.d.ts +25 -0
  71. package/dist/components/molecules/ViolationAlert.d.ts +49 -0
  72. package/dist/components/molecules/WizardNavigation.d.ts +51 -0
  73. package/dist/components/molecules/WizardProgress.d.ts +42 -0
  74. package/dist/components/molecules/game/StatBadge.d.ts +27 -0
  75. package/dist/components/molecules/index.d.ts +38 -0
  76. package/dist/components/molecules/markdown/CodeBlock.d.ts +25 -0
  77. package/dist/components/molecules/markdown/MarkdownContent.d.ts +26 -0
  78. package/dist/components/organisms/CardGrid.d.ts +72 -0
  79. package/dist/components/organisms/Chart.d.ts +59 -0
  80. package/dist/components/organisms/CodeViewer.d.ts +67 -0
  81. package/dist/components/organisms/ComponentPatterns.d.ts +441 -0
  82. package/dist/components/organisms/ConfirmDialog.d.ts +50 -0
  83. package/dist/components/organisms/ContentRenderer.d.ts +23 -0
  84. package/dist/components/organisms/CustomPattern.d.ts +104 -0
  85. package/dist/components/organisms/DataTable.d.ts +63 -0
  86. package/dist/components/organisms/DetailPanel.d.ts +71 -0
  87. package/dist/components/organisms/DocumentViewer.d.ts +60 -0
  88. package/dist/components/organisms/DrawerSlot.d.ts +39 -0
  89. package/dist/components/organisms/Form.d.ts +203 -0
  90. package/dist/components/organisms/FormSection.d.ts +59 -0
  91. package/dist/components/organisms/GraphCanvas.d.ts +69 -0
  92. package/dist/components/organisms/Header.d.ts +110 -0
  93. package/dist/components/organisms/JazariStateMachine.d.ts +60 -0
  94. package/dist/components/organisms/LayoutPatterns.d.ts +181 -0
  95. package/dist/components/organisms/List.d.ts +76 -0
  96. package/dist/components/organisms/MasterDetail.d.ts +43 -0
  97. package/dist/components/organisms/MediaGallery.d.ts +66 -0
  98. package/dist/components/organisms/Meter.d.ts +58 -0
  99. package/dist/components/organisms/ModalSlot.d.ts +35 -0
  100. package/dist/components/organisms/Navigation.d.ts +68 -0
  101. package/dist/components/organisms/OrbitalVisualization.d.ts +48 -0
  102. package/dist/components/organisms/PageHeader.d.ts +59 -0
  103. package/dist/components/organisms/Section.d.ts +44 -0
  104. package/dist/components/organisms/Sidebar.d.ts +65 -0
  105. package/dist/components/organisms/SignaturePad.d.ts +44 -0
  106. package/dist/components/organisms/Split.d.ts +42 -0
  107. package/dist/components/organisms/StatCard.d.ts +66 -0
  108. package/dist/components/organisms/StateMachineView.d.ts +36 -0
  109. package/dist/components/organisms/Table.d.ts +99 -0
  110. package/dist/components/organisms/Timeline.d.ts +58 -0
  111. package/dist/components/organisms/ToastSlot.d.ts +38 -0
  112. package/dist/components/organisms/UISlotRenderer.d.ts +112 -0
  113. package/dist/components/organisms/WizardContainer.d.ts +160 -0
  114. package/dist/components/organisms/book/BookChapterView.d.ts +17 -0
  115. package/dist/components/organisms/book/BookCoverPage.d.ts +19 -0
  116. package/dist/components/organisms/book/BookNavBar.d.ts +18 -0
  117. package/dist/components/organisms/book/BookTableOfContents.d.ts +18 -0
  118. package/dist/components/organisms/book/BookViewer.d.ts +28 -0
  119. package/dist/components/organisms/book/index.d.ts +7 -0
  120. package/dist/components/organisms/book/types.d.ts +77 -0
  121. package/dist/components/organisms/game/BattleBoard.d.ts +167 -0
  122. package/dist/components/organisms/game/CanvasEffect.d.ts +68 -0
  123. package/dist/components/organisms/game/CastleBoard.d.ts +85 -0
  124. package/dist/components/organisms/game/DialogueBox.d.ts +73 -0
  125. package/dist/components/organisms/game/GameAudioProvider.d.ts +47 -0
  126. package/dist/components/organisms/game/GameAudioToggle.d.ts +28 -0
  127. package/dist/components/organisms/game/GameHud.d.ts +40 -0
  128. package/dist/components/organisms/game/GameMenu.d.ts +43 -0
  129. package/dist/components/organisms/game/GameOverScreen.d.ts +56 -0
  130. package/dist/components/organisms/game/InventoryPanel.d.ts +67 -0
  131. package/dist/components/organisms/game/IsometricCanvas.d.ts +123 -0
  132. package/dist/components/organisms/game/TraitSlot.d.ts +86 -0
  133. package/dist/components/organisms/game/TraitStateViewer.d.ts +53 -0
  134. package/dist/components/organisms/game/UncontrolledBattleBoard.d.ts +26 -0
  135. package/dist/components/organisms/game/WorldMapBoard.d.ts +147 -0
  136. package/dist/components/organisms/game/editor/editorUtils.d.ts +109 -0
  137. package/dist/components/organisms/game/editor/index.d.ts +9 -0
  138. package/dist/components/organisms/game/hooks/useBattleState.d.ts +35 -0
  139. package/dist/components/organisms/game/hooks/useCamera.d.ts +41 -0
  140. package/dist/components/organisms/game/hooks/useGameAudio.d.ts +47 -0
  141. package/dist/components/organisms/game/hooks/useImageCache.d.ts +16 -0
  142. package/dist/components/organisms/game/hooks/usePhysics2D.d.ts +45 -0
  143. package/dist/components/organisms/game/hooks/useSpriteAnimations.d.ts +43 -0
  144. package/dist/components/organisms/game/index.d.ts +36 -0
  145. package/dist/components/organisms/game/managers/PhysicsManager.d.ts +103 -0
  146. package/dist/components/organisms/game/types/effects.d.ts +253 -0
  147. package/dist/{isometric-ynNHVPZx.d.ts → components/organisms/game/types/isometric.d.ts} +4 -6
  148. package/dist/components/organisms/game/types/spriteAnimation.d.ts +73 -0
  149. package/dist/components/organisms/game/utils/canvasEffects.d.ts +50 -0
  150. package/dist/components/organisms/game/utils/combatPresets.d.ts +15 -0
  151. package/dist/components/organisms/game/utils/isometric.d.ts +61 -0
  152. package/dist/components/organisms/game/utils/spriteAnimation.d.ts +57 -0
  153. package/dist/components/organisms/game/utils/spriteSheetConstants.d.ts +16 -0
  154. package/dist/components/organisms/index.d.ts +37 -0
  155. package/dist/components/organisms/layout/DashboardGrid.d.ts +34 -0
  156. package/dist/components/organisms/layout/MasterDetail.d.ts +32 -0
  157. package/dist/components/organisms/layout/SplitPane.d.ts +34 -0
  158. package/dist/components/organisms/layout/TabbedContainer.d.ts +42 -0
  159. package/dist/components/organisms/layout/index.d.ts +9 -0
  160. package/dist/components/organisms/types.d.ts +65 -0
  161. package/dist/components/templates/AuthLayout.d.ts +14 -0
  162. package/dist/components/templates/BattleTemplate.d.ts +25 -0
  163. package/dist/components/templates/CastleTemplate.d.ts +23 -0
  164. package/dist/components/templates/CounterTemplate.d.ts +44 -0
  165. package/dist/components/templates/DashboardLayout.d.ts +32 -0
  166. package/dist/components/templates/GameShell.d.ts +33 -0
  167. package/dist/components/templates/GameTemplate.d.ts +36 -0
  168. package/dist/components/templates/GenericAppTemplate.d.ts +30 -0
  169. package/dist/components/templates/WorldMapTemplate.d.ts +29 -0
  170. package/dist/components/templates/index.d.ts +10 -0
  171. package/dist/components/templates/types.d.ts +17 -0
  172. package/dist/context/DesignThemeContext.d.ts +21 -0
  173. package/dist/{ThemeContext-D9xUORq5.d.ts → context/ThemeContext.d.ts} +15 -16
  174. package/dist/context/UISlotContext.d.ts +75 -0
  175. package/dist/context/UserContext.d.ts +111 -0
  176. package/dist/context/index.d.ts +6 -206
  177. package/dist/{event-bus-types-CjJduURa.d.ts → hooks/event-bus-types.d.ts} +4 -6
  178. package/dist/hooks/index.d.ts +24 -1090
  179. package/dist/hooks/useAgentChat.d.ts +104 -0
  180. package/dist/hooks/useAuthContext.d.ts +25 -0
  181. package/dist/hooks/useCompile.d.ts +22 -0
  182. package/dist/hooks/useDeepAgentGeneration.d.ts +46 -0
  183. package/dist/hooks/useEntities.d.ts +52 -0
  184. package/dist/hooks/useEntityData.d.ts +155 -0
  185. package/dist/hooks/useEntityMutations.d.ts +80 -0
  186. package/dist/hooks/useEventBus.d.ts +96 -0
  187. package/dist/hooks/useExtensions.d.ts +32 -0
  188. package/dist/hooks/useFileEditor.d.ts +32 -0
  189. package/dist/hooks/useFileSystem.d.ts +40 -0
  190. package/dist/hooks/useGitHub.d.ts +58 -0
  191. package/dist/hooks/useOrbitalHistory.d.ts +39 -0
  192. package/dist/hooks/useOrbitalMutations.d.ts +95 -0
  193. package/dist/hooks/usePreview.d.ts +57 -0
  194. package/dist/hooks/useQuerySingleton.d.ts +78 -0
  195. package/dist/hooks/useResolvedEntity.d.ts +32 -0
  196. package/dist/hooks/useTranslate.d.ts +35 -0
  197. package/dist/hooks/useUIEvents.d.ts +35 -0
  198. package/dist/{useUISlots-D0mttBSP.d.ts → hooks/useUISlots.d.ts} +8 -9
  199. package/dist/hooks/useValidation.d.ts +46 -0
  200. package/dist/lib/api-client.d.ts +42 -0
  201. package/dist/lib/cn.d.ts +6 -0
  202. package/dist/lib/debug.d.ts +43 -0
  203. package/dist/lib/debugRegistry.d.ts +29 -0
  204. package/dist/lib/debugUtils.d.ts +27 -0
  205. package/dist/lib/entityDebug.d.ts +38 -0
  206. package/dist/lib/getNestedValue.d.ts +33 -0
  207. package/dist/lib/guardRegistry.d.ts +32 -0
  208. package/dist/lib/index.d.ts +17 -426
  209. package/dist/lib/jazari/svg-paths.d.ts +61 -0
  210. package/dist/lib/parseContentSegments.d.ts +41 -0
  211. package/dist/lib/tickRegistry.d.ts +40 -0
  212. package/dist/lib/traitRegistry.d.ts +34 -0
  213. package/dist/lib/verificationRegistry.d.ts +107 -0
  214. package/dist/{cn-BoBXsxuX.d.ts → lib/visualizer/index.d.ts} +18 -69
  215. package/dist/locales/index.d.ts +5 -7
  216. package/dist/providers/EventBusProvider.d.ts +60 -0
  217. package/dist/providers/FetchedDataProvider.d.ts +105 -0
  218. package/dist/providers/OfflineModeProvider.d.ts +79 -0
  219. package/dist/providers/OrbitalProvider.d.ts +101 -0
  220. package/dist/providers/SelectionProvider.d.ts +81 -0
  221. package/dist/providers/VerificationProvider.d.ts +63 -0
  222. package/dist/providers/index.css +11 -9
  223. package/dist/providers/index.d.ts +16 -464
  224. package/dist/providers/index.js +3 -3
  225. package/dist/renderer/client-effect-executor.d.ts +68 -0
  226. package/dist/renderer/data-resolver.d.ts +68 -0
  227. package/dist/renderer/index.d.ts +22 -519
  228. package/dist/renderer/index.js +1 -1
  229. package/dist/renderer/init.d.ts +14 -0
  230. package/dist/renderer/navigation.d.ts +142 -0
  231. package/dist/{offline-executor-CHr4uAhf.d.ts → renderer/offline-executor.d.ts} +9 -172
  232. package/dist/renderer/pattern-resolver.d.ts +91 -0
  233. package/dist/renderer/slot-definitions.d.ts +45 -0
  234. package/dist/renderer/types.d.ts +160 -0
  235. package/dist/renderer/useClientEffects.d.ts +88 -0
  236. package/dist/stores/entityStore.d.ts +99 -0
  237. package/dist/stores/filtering.d.ts +51 -0
  238. package/dist/stores/index.d.ts +4 -148
  239. package/package.json +12 -10
  240. package/dist/components/organisms/game/three/index.d.ts +0 -1162
  241. package/dist/{chunk-FZJ73RDM.js → chunk-RIZ76XRF.js} +1 -1
@@ -1,17 +1,17 @@
1
+ import { DEFAULT_CONFIG, renderStateMachineToDomData, parseContentSegments } from '../chunk-N6DJVKZ6.js';
1
2
  import { useAuthContext } from '../chunk-BKC4XU44.js';
2
3
  export { ENTITY_EVENTS, useAgentChat, useAuthContext, useCompile, useConnectGitHub, useCreateEntity, useDeepAgentGeneration, useDeleteEntity, useDisconnectGitHub, useEntities, useEntitiesByType, useEntity as useEntityById, useEntityMutations, useExtensions, useFileEditor, useFileSystem, useGitHubBranches, useGitHubRepo, useGitHubRepos, useGitHubStatus, useInput, useOrbitalHistory, useOrbitalMutations, usePhysics, usePlayer, usePreview, useResolvedEntity, useSelectedEntity, useSendOrbitalEvent, useSingletonEntity, useUIEvents, useUpdateEntity, useValidation } from '../chunk-BKC4XU44.js';
3
- import { DEFAULT_CONFIG, renderStateMachineToDomData, parseContentSegments } from '../chunk-N6DJVKZ6.js';
4
4
  import '../chunk-XSEDIUM6.js';
5
- import { VStack, HStack, Typography, Button, Icon, Box, Card, Avatar, Badge, SearchInput, Checkbox, Menu as Menu$1, Pagination, LoadingState, EmptyState, Modal, ErrorState, QuizBlock, CodeBlock, ScaledDiagram, MarkdownContent, Divider, ProgressBar, Stack, Drawer, Toast, Tabs, Input, ThemeToggle, HealthBar, ScoreDisplay, StateIndicator, Container, EntityDisplayEvents } from '../chunk-FZJ73RDM.js';
6
- export { Accordion, Card2 as ActionCard, Alert, Avatar, Badge, Box, Breadcrumb, Button, ButtonGroup, Card, CardBody, CardContent, CardFooter, CardGrid, CardHeader, CardTitle, Center, Checkbox, CodeBlock, ConditionalWrapper, Container, ControlButton, DataTable, DetailPanel, Divider, Drawer, EmptyState, EntityDisplayEvents, ErrorBoundary, ErrorState, FilterGroup, Flex, FloatingActionButton, Form, FormField, FormSectionHeader, Grid, HStack, Heading, HealthBar, Icon, Input, InputGroup, Label, LawReferenceTooltip, LoadingState, MarkdownContent, MasterDetail, Menu, Modal, Overlay, PageHeader, Pagination, Popover, ProgressBar, QuizBlock, Radio, RelationSelect, RepeatableFormSection, ScaledDiagram, ScoreDisplay, SearchInput, Select, SidePanel, SimpleGrid, Skeleton, SlotContentRenderer, Spacer, Spinner, Sprite, Stack, StatCard, StateIndicator, Switch, Tabs, Text, TextHighlight, Textarea, ThemeSelector, ThemeToggle, Toast, Tooltip, Typography, UISlotComponent, UISlotRenderer, VStack, ViolationAlert, WizardNavigation, WizardProgress, drawSprite } from '../chunk-FZJ73RDM.js';
5
+ import { VStack, HStack, Typography, Button, Icon, Box, Card, Avatar, Badge, SearchInput, Checkbox, Menu as Menu$1, Pagination, LoadingState, EmptyState, Modal, ErrorState, QuizBlock, CodeBlock, ScaledDiagram, MarkdownContent, Divider, ProgressBar, Stack, Drawer, Toast, Tabs, Input, ThemeToggle, HealthBar, ScoreDisplay, StateIndicator, Container, EntityDisplayEvents } from '../chunk-RIZ76XRF.js';
6
+ export { Accordion, Card2 as ActionCard, Alert, Avatar, Badge, Box, Breadcrumb, Button, ButtonGroup, Card, CardBody, CardContent, CardFooter, CardGrid, CardHeader, CardTitle, Center, Checkbox, CodeBlock, ConditionalWrapper, Container, ControlButton, DataTable, DetailPanel, Divider, Drawer, EmptyState, EntityDisplayEvents, ErrorBoundary, ErrorState, FilterGroup, Flex, FloatingActionButton, Form, FormField, FormSectionHeader, Grid, HStack, Heading, HealthBar, Icon, Input, InputGroup, Label, LawReferenceTooltip, LoadingState, MarkdownContent, MasterDetail, Menu, Modal, Overlay, PageHeader, Pagination, Popover, ProgressBar, QuizBlock, Radio, RelationSelect, RepeatableFormSection, ScaledDiagram, ScoreDisplay, SearchInput, Select, SidePanel, SimpleGrid, Skeleton, SlotContentRenderer, Spacer, Spinner, Sprite, Stack, StatCard, StateIndicator, Switch, Tabs, Text, TextHighlight, Textarea, ThemeSelector, ThemeToggle, Toast, Tooltip, Typography, UISlotComponent, UISlotRenderer, VStack, ViolationAlert, WizardNavigation, WizardProgress, drawSprite } from '../chunk-RIZ76XRF.js';
7
+ import { cn, getNestedValue } from '../chunk-KKCVDUK7.js';
8
+ export { cn } from '../chunk-KKCVDUK7.js';
7
9
  import '../chunk-BTXQJGFB.js';
8
10
  import { useTranslate } from '../chunk-PE2H3NAW.js';
9
11
  export { EntityDataProvider, I18nProvider, createTranslate, entityDataKeys, parseQueryBinding, useEntity, useEntityDataAdapter, useEntityDetail, useEntityList, useEntityListSuspense, useEntitySuspense, useQuerySingleton, useTranslate } from '../chunk-PE2H3NAW.js';
10
12
  import { useEventBus, useEventListener } from '../chunk-YXZM3WCF.js';
11
13
  export { useEmitEvent, useEventBus, useEventListener } from '../chunk-YXZM3WCF.js';
12
14
  export { DEFAULT_SLOTS, useUISlotManager } from '../chunk-7NEWMNNU.js';
13
- import { cn, getNestedValue } from '../chunk-KKCVDUK7.js';
14
- export { cn } from '../chunk-KKCVDUK7.js';
15
15
  export { clearEntities, getAllEntities, getByType, getEntity, getSingleton, removeEntity, spawnEntity, updateEntity, updateSingleton } from '../chunk-N7MVUW4R.js';
16
16
  import { __publicField } from '../chunk-PKBMQBKP.js';
17
17
  import * as React25 from 'react';
@@ -0,0 +1,67 @@
1
+ /**
2
+ * Accordion Molecule Component
3
+ *
4
+ * A collapsible content component with single or multiple open items.
5
+ * Uses Button, Icon, Typography, and Divider atoms.
6
+ */
7
+ import React from "react";
8
+ export interface AccordionItem {
9
+ /**
10
+ * Item ID (auto-generated from header/title if not provided)
11
+ */
12
+ id?: string;
13
+ /**
14
+ * Item header/title
15
+ */
16
+ header?: React.ReactNode;
17
+ /**
18
+ * Alias for header (pattern compatibility)
19
+ */
20
+ title?: React.ReactNode;
21
+ /**
22
+ * Item content
23
+ */
24
+ content: React.ReactNode;
25
+ /**
26
+ * Disable item
27
+ */
28
+ disabled?: boolean;
29
+ /**
30
+ * Default open state
31
+ */
32
+ defaultOpen?: boolean;
33
+ }
34
+ export interface AccordionProps {
35
+ /**
36
+ * Accordion items
37
+ */
38
+ items: AccordionItem[];
39
+ /**
40
+ * Allow multiple items open at once
41
+ * @default false
42
+ */
43
+ multiple?: boolean;
44
+ /**
45
+ * Default open items (IDs)
46
+ */
47
+ defaultOpenItems?: string[];
48
+ /**
49
+ * Default open items by index (pattern compatibility)
50
+ */
51
+ defaultOpen?: number[];
52
+ /**
53
+ * Controlled open items (IDs)
54
+ */
55
+ openItems?: string[];
56
+ /**
57
+ * Callback when item opens/closes
58
+ */
59
+ onItemToggle?: (itemId: string, isOpen: boolean) => void;
60
+ /**
61
+ * Additional CSS classes
62
+ */
63
+ className?: string;
64
+ /** Declarative toggle event — emits UI:{toggleEvent} with { itemId, isOpen } */
65
+ toggleEvent?: string;
66
+ }
67
+ export declare const Accordion: React.FC<AccordionProps>;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Alert Molecule Component
3
+ *
4
+ * A component for displaying alert messages with different variants and actions.
5
+ * Uses theme-aware CSS variables for styling.
6
+ */
7
+ import React from "react";
8
+ export type AlertVariant = "info" | "success" | "warning" | "error";
9
+ export interface AlertProps {
10
+ /** Alert content (children or message) */
11
+ children?: React.ReactNode;
12
+ /** Alert message (alias for children) */
13
+ message?: string;
14
+ variant?: AlertVariant;
15
+ title?: string;
16
+ dismissible?: boolean;
17
+ onDismiss?: () => void;
18
+ onClose?: () => void;
19
+ actions?: React.ReactNode;
20
+ className?: string;
21
+ /** Declarative dismiss event — emits UI:{dismissEvent} via eventBus when alert is dismissed */
22
+ dismissEvent?: string;
23
+ }
24
+ export declare const Alert: React.FC<AlertProps>;
@@ -0,0 +1,55 @@
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>;
@@ -0,0 +1,67 @@
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>;
@@ -0,0 +1,44 @@
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;
@@ -0,0 +1,30 @@
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;
@@ -0,0 +1,46 @@
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>;
@@ -0,0 +1,25 @@
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>;
@@ -0,0 +1,55 @@
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;
@@ -0,0 +1,13 @@
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>;
@@ -0,0 +1,54 @@
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>;
@@ -0,0 +1,43 @@
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;
@@ -0,0 +1,69 @@
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>;
@@ -0,0 +1,16 @@
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>;
@@ -0,0 +1,30 @@
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>;