@almadar/ui 2.0.0 → 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 (237) hide show
  1. package/dist/components/atoms/Avatar.d.ts +58 -0
  2. package/dist/components/atoms/Badge.d.ts +8 -0
  3. package/dist/components/atoms/Box.d.ts +57 -0
  4. package/dist/components/atoms/Button.d.ts +24 -0
  5. package/dist/components/atoms/Card.d.ts +18 -0
  6. package/dist/components/atoms/Center.d.ts +33 -0
  7. package/dist/components/atoms/Checkbox.d.ts +5 -0
  8. package/dist/components/atoms/ConditionalWrapper.d.ts +68 -0
  9. package/dist/components/atoms/Divider.d.ts +29 -0
  10. package/dist/components/atoms/Icon.d.ts +38 -0
  11. package/dist/components/atoms/Input.d.ts +26 -0
  12. package/dist/components/atoms/Label.d.ts +5 -0
  13. package/dist/components/atoms/LawReferenceTooltip.d.ts +48 -0
  14. package/dist/components/atoms/Overlay.d.ts +16 -0
  15. package/dist/components/atoms/ProgressBar.d.ts +63 -0
  16. package/dist/components/atoms/Radio.d.ts +26 -0
  17. package/dist/components/atoms/Select.d.ts +12 -0
  18. package/dist/components/atoms/Spacer.d.ts +25 -0
  19. package/dist/components/atoms/Spinner.d.ts +6 -0
  20. package/dist/components/atoms/Stack.d.ts +64 -0
  21. package/dist/components/atoms/Switch.d.ts +12 -0
  22. package/dist/components/atoms/TextHighlight.d.ts +53 -0
  23. package/dist/components/atoms/Textarea.d.ts +5 -0
  24. package/dist/components/atoms/ThemeSelector.d.ts +21 -0
  25. package/dist/components/atoms/ThemeToggle.d.ts +33 -0
  26. package/dist/components/atoms/Typography.d.ts +57 -0
  27. package/dist/components/atoms/game/ControlButton.d.ts +31 -0
  28. package/dist/components/atoms/game/HealthBar.d.ts +18 -0
  29. package/dist/components/atoms/game/ScoreDisplay.d.ts +21 -0
  30. package/dist/components/atoms/game/Sprite.d.ts +63 -0
  31. package/dist/components/atoms/game/StateIndicator.d.ts +31 -0
  32. package/dist/components/atoms/game/index.d.ts +12 -0
  33. package/dist/components/atoms/index.d.ts +27 -0
  34. package/dist/components/index.d.ts +6 -0
  35. package/dist/components/index.js +5 -5
  36. package/dist/components/molecules/Accordion.d.ts +67 -0
  37. package/dist/components/molecules/Alert.d.ts +24 -0
  38. package/dist/components/molecules/Breadcrumb.d.ts +55 -0
  39. package/dist/components/molecules/ButtonGroup.d.ts +67 -0
  40. package/dist/components/molecules/Card.d.ts +44 -0
  41. package/dist/components/molecules/Container.d.ts +30 -0
  42. package/dist/components/molecules/Drawer.d.ts +46 -0
  43. package/dist/components/molecules/EmptyState.d.ts +25 -0
  44. package/dist/components/molecules/ErrorBoundary.d.ts +55 -0
  45. package/dist/components/molecules/ErrorState.d.ts +13 -0
  46. package/dist/components/molecules/FilterGroup.d.ts +54 -0
  47. package/dist/components/molecules/Flex.d.ts +43 -0
  48. package/dist/components/molecules/FloatingActionButton.d.ts +69 -0
  49. package/dist/components/molecules/FormField.d.ts +16 -0
  50. package/dist/components/molecules/FormSectionHeader.d.ts +30 -0
  51. package/dist/components/molecules/Grid.d.ts +54 -0
  52. package/dist/components/molecules/InputGroup.d.ts +24 -0
  53. package/dist/components/molecules/LoadingState.d.ts +7 -0
  54. package/dist/components/molecules/Menu.d.ts +40 -0
  55. package/dist/components/molecules/Modal.d.ts +26 -0
  56. package/dist/components/molecules/Pagination.d.ts +66 -0
  57. package/dist/components/molecules/Popover.d.ts +39 -0
  58. package/dist/components/molecules/QuizBlock.d.ts +20 -0
  59. package/dist/components/molecules/RelationSelect.d.ts +48 -0
  60. package/dist/components/molecules/RepeatableFormSection.d.ts +58 -0
  61. package/dist/components/molecules/ScaledDiagram.d.ts +20 -0
  62. package/dist/components/molecules/SearchInput.d.ts +60 -0
  63. package/dist/components/molecules/SidePanel.d.ts +47 -0
  64. package/dist/components/molecules/SimpleGrid.d.ts +27 -0
  65. package/dist/components/molecules/Skeleton.d.ts +35 -0
  66. package/dist/components/molecules/Tabs.d.ts +45 -0
  67. package/dist/components/molecules/Toast.d.ts +35 -0
  68. package/dist/components/molecules/Tooltip.d.ts +25 -0
  69. package/dist/components/molecules/ViolationAlert.d.ts +49 -0
  70. package/dist/components/molecules/WizardNavigation.d.ts +51 -0
  71. package/dist/components/molecules/WizardProgress.d.ts +42 -0
  72. package/dist/components/molecules/game/StatBadge.d.ts +27 -0
  73. package/dist/components/molecules/index.d.ts +38 -0
  74. package/dist/components/molecules/markdown/CodeBlock.d.ts +25 -0
  75. package/dist/components/molecules/markdown/MarkdownContent.d.ts +26 -0
  76. package/dist/components/organisms/CardGrid.d.ts +72 -0
  77. package/dist/components/organisms/Chart.d.ts +59 -0
  78. package/dist/components/organisms/CodeViewer.d.ts +67 -0
  79. package/dist/components/organisms/ComponentPatterns.d.ts +441 -0
  80. package/dist/components/organisms/ConfirmDialog.d.ts +50 -0
  81. package/dist/components/organisms/ContentRenderer.d.ts +23 -0
  82. package/dist/components/organisms/CustomPattern.d.ts +104 -0
  83. package/dist/components/organisms/DataTable.d.ts +63 -0
  84. package/dist/components/organisms/DetailPanel.d.ts +71 -0
  85. package/dist/components/organisms/DocumentViewer.d.ts +60 -0
  86. package/dist/components/organisms/DrawerSlot.d.ts +39 -0
  87. package/dist/components/organisms/Form.d.ts +203 -0
  88. package/dist/components/organisms/FormSection.d.ts +59 -0
  89. package/dist/components/organisms/GraphCanvas.d.ts +69 -0
  90. package/dist/components/organisms/Header.d.ts +110 -0
  91. package/dist/components/organisms/JazariStateMachine.d.ts +60 -0
  92. package/dist/components/organisms/LayoutPatterns.d.ts +181 -0
  93. package/dist/components/organisms/List.d.ts +76 -0
  94. package/dist/components/organisms/MasterDetail.d.ts +43 -0
  95. package/dist/components/organisms/MediaGallery.d.ts +66 -0
  96. package/dist/components/organisms/Meter.d.ts +58 -0
  97. package/dist/components/organisms/ModalSlot.d.ts +35 -0
  98. package/dist/components/organisms/Navigation.d.ts +68 -0
  99. package/dist/components/organisms/OrbitalVisualization.d.ts +48 -0
  100. package/dist/components/organisms/PageHeader.d.ts +59 -0
  101. package/dist/components/organisms/Section.d.ts +44 -0
  102. package/dist/components/organisms/Sidebar.d.ts +65 -0
  103. package/dist/components/organisms/SignaturePad.d.ts +44 -0
  104. package/dist/components/organisms/Split.d.ts +42 -0
  105. package/dist/components/organisms/StatCard.d.ts +66 -0
  106. package/dist/components/organisms/StateMachineView.d.ts +36 -0
  107. package/dist/components/organisms/Table.d.ts +99 -0
  108. package/dist/components/organisms/Timeline.d.ts +58 -0
  109. package/dist/components/organisms/ToastSlot.d.ts +38 -0
  110. package/dist/components/organisms/UISlotRenderer.d.ts +112 -0
  111. package/dist/components/organisms/WizardContainer.d.ts +160 -0
  112. package/dist/components/organisms/book/BookChapterView.d.ts +17 -0
  113. package/dist/components/organisms/book/BookCoverPage.d.ts +19 -0
  114. package/dist/components/organisms/book/BookNavBar.d.ts +18 -0
  115. package/dist/components/organisms/book/BookTableOfContents.d.ts +18 -0
  116. package/dist/components/organisms/book/BookViewer.d.ts +28 -0
  117. package/dist/components/organisms/book/index.d.ts +7 -0
  118. package/dist/components/organisms/book/types.d.ts +77 -0
  119. package/dist/components/organisms/game/BattleBoard.d.ts +167 -0
  120. package/dist/components/organisms/game/CanvasEffect.d.ts +68 -0
  121. package/dist/components/organisms/game/CastleBoard.d.ts +85 -0
  122. package/dist/components/organisms/game/DialogueBox.d.ts +73 -0
  123. package/dist/components/organisms/game/GameAudioProvider.d.ts +47 -0
  124. package/dist/components/organisms/game/GameAudioToggle.d.ts +28 -0
  125. package/dist/components/organisms/game/GameHud.d.ts +40 -0
  126. package/dist/components/organisms/game/GameMenu.d.ts +43 -0
  127. package/dist/components/organisms/game/GameOverScreen.d.ts +56 -0
  128. package/dist/components/organisms/game/InventoryPanel.d.ts +67 -0
  129. package/dist/components/organisms/game/IsometricCanvas.d.ts +123 -0
  130. package/dist/components/organisms/game/TraitSlot.d.ts +86 -0
  131. package/dist/components/organisms/game/TraitStateViewer.d.ts +53 -0
  132. package/dist/components/organisms/game/UncontrolledBattleBoard.d.ts +26 -0
  133. package/dist/components/organisms/game/WorldMapBoard.d.ts +147 -0
  134. package/dist/components/organisms/game/editor/editorUtils.d.ts +109 -0
  135. package/dist/components/organisms/game/editor/index.d.ts +9 -0
  136. package/dist/components/organisms/game/hooks/useBattleState.d.ts +35 -0
  137. package/dist/components/organisms/game/hooks/useCamera.d.ts +41 -0
  138. package/dist/components/organisms/game/hooks/useGameAudio.d.ts +47 -0
  139. package/dist/components/organisms/game/hooks/useImageCache.d.ts +16 -0
  140. package/dist/components/organisms/game/hooks/usePhysics2D.d.ts +45 -0
  141. package/dist/components/organisms/game/hooks/useSpriteAnimations.d.ts +43 -0
  142. package/dist/components/organisms/game/index.d.ts +36 -0
  143. package/dist/components/organisms/game/managers/PhysicsManager.d.ts +103 -0
  144. package/dist/components/organisms/game/types/effects.d.ts +253 -0
  145. package/dist/components/organisms/game/types/isometric.d.ts +109 -0
  146. package/dist/components/organisms/game/types/spriteAnimation.d.ts +73 -0
  147. package/dist/components/organisms/game/utils/canvasEffects.d.ts +50 -0
  148. package/dist/components/organisms/game/utils/combatPresets.d.ts +15 -0
  149. package/dist/components/organisms/game/utils/isometric.d.ts +61 -0
  150. package/dist/components/organisms/game/utils/spriteAnimation.d.ts +57 -0
  151. package/dist/components/organisms/game/utils/spriteSheetConstants.d.ts +16 -0
  152. package/dist/components/organisms/index.d.ts +37 -0
  153. package/dist/components/organisms/layout/DashboardGrid.d.ts +34 -0
  154. package/dist/components/organisms/layout/MasterDetail.d.ts +32 -0
  155. package/dist/components/organisms/layout/SplitPane.d.ts +34 -0
  156. package/dist/components/organisms/layout/TabbedContainer.d.ts +42 -0
  157. package/dist/components/organisms/layout/index.d.ts +9 -0
  158. package/dist/components/organisms/types.d.ts +65 -0
  159. package/dist/components/templates/AuthLayout.d.ts +14 -0
  160. package/dist/components/templates/BattleTemplate.d.ts +25 -0
  161. package/dist/components/templates/CastleTemplate.d.ts +23 -0
  162. package/dist/components/templates/CounterTemplate.d.ts +44 -0
  163. package/dist/components/templates/DashboardLayout.d.ts +32 -0
  164. package/dist/components/templates/GameShell.d.ts +33 -0
  165. package/dist/components/templates/GameTemplate.d.ts +36 -0
  166. package/dist/components/templates/GenericAppTemplate.d.ts +30 -0
  167. package/dist/components/templates/WorldMapTemplate.d.ts +29 -0
  168. package/dist/components/templates/index.d.ts +10 -0
  169. package/dist/components/templates/types.d.ts +17 -0
  170. package/dist/context/DesignThemeContext.d.ts +21 -0
  171. package/dist/context/ThemeContext.d.ts +104 -0
  172. package/dist/context/UISlotContext.d.ts +75 -0
  173. package/dist/context/UserContext.d.ts +111 -0
  174. package/dist/context/index.d.ts +8 -0
  175. package/dist/hooks/event-bus-types.d.ts +71 -0
  176. package/dist/hooks/index.d.ts +25 -0
  177. package/dist/hooks/useAgentChat.d.ts +104 -0
  178. package/dist/hooks/useAuthContext.d.ts +25 -0
  179. package/dist/hooks/useCompile.d.ts +22 -0
  180. package/dist/hooks/useDeepAgentGeneration.d.ts +46 -0
  181. package/dist/hooks/useEntities.d.ts +52 -0
  182. package/dist/hooks/useEntityData.d.ts +155 -0
  183. package/dist/hooks/useEntityMutations.d.ts +80 -0
  184. package/dist/hooks/useEventBus.d.ts +96 -0
  185. package/dist/hooks/useExtensions.d.ts +32 -0
  186. package/dist/hooks/useFileEditor.d.ts +32 -0
  187. package/dist/hooks/useFileSystem.d.ts +40 -0
  188. package/dist/hooks/useGitHub.d.ts +58 -0
  189. package/dist/hooks/useOrbitalHistory.d.ts +39 -0
  190. package/dist/hooks/useOrbitalMutations.d.ts +95 -0
  191. package/dist/hooks/usePreview.d.ts +57 -0
  192. package/dist/hooks/useQuerySingleton.d.ts +78 -0
  193. package/dist/hooks/useResolvedEntity.d.ts +32 -0
  194. package/dist/hooks/useTranslate.d.ts +35 -0
  195. package/dist/hooks/useUIEvents.d.ts +35 -0
  196. package/dist/hooks/useUISlots.d.ts +84 -0
  197. package/dist/hooks/useValidation.d.ts +46 -0
  198. package/dist/lib/api-client.d.ts +42 -0
  199. package/dist/lib/cn.d.ts +6 -0
  200. package/dist/lib/debug.d.ts +43 -0
  201. package/dist/lib/debugRegistry.d.ts +29 -0
  202. package/dist/lib/debugUtils.d.ts +27 -0
  203. package/dist/lib/entityDebug.d.ts +38 -0
  204. package/dist/lib/getNestedValue.d.ts +33 -0
  205. package/dist/lib/guardRegistry.d.ts +32 -0
  206. package/dist/lib/index.d.ts +18 -0
  207. package/dist/lib/jazari/svg-paths.d.ts +61 -0
  208. package/dist/lib/parseContentSegments.d.ts +41 -0
  209. package/dist/lib/tickRegistry.d.ts +40 -0
  210. package/dist/lib/traitRegistry.d.ts +34 -0
  211. package/dist/lib/verificationRegistry.d.ts +107 -0
  212. package/dist/lib/visualizer/index.d.ts +143 -0
  213. package/dist/locales/index.d.ts +20 -0
  214. package/dist/providers/EventBusProvider.d.ts +60 -0
  215. package/dist/providers/FetchedDataProvider.d.ts +105 -0
  216. package/dist/providers/OfflineModeProvider.d.ts +79 -0
  217. package/dist/providers/OrbitalProvider.d.ts +101 -0
  218. package/dist/providers/SelectionProvider.d.ts +81 -0
  219. package/dist/providers/VerificationProvider.d.ts +63 -0
  220. package/dist/providers/index.d.ts +17 -0
  221. package/dist/providers/index.js +3 -3
  222. package/dist/renderer/client-effect-executor.d.ts +68 -0
  223. package/dist/renderer/data-resolver.d.ts +68 -0
  224. package/dist/renderer/index.d.ts +28 -0
  225. package/dist/renderer/index.js +1 -1
  226. package/dist/renderer/init.d.ts +14 -0
  227. package/dist/renderer/navigation.d.ts +142 -0
  228. package/dist/renderer/offline-executor.d.ts +238 -0
  229. package/dist/renderer/pattern-resolver.d.ts +91 -0
  230. package/dist/renderer/slot-definitions.d.ts +45 -0
  231. package/dist/renderer/types.d.ts +160 -0
  232. package/dist/renderer/useClientEffects.d.ts +88 -0
  233. package/dist/stores/entityStore.d.ts +99 -0
  234. package/dist/stores/filtering.d.ts +51 -0
  235. package/dist/stores/index.d.ts +7 -0
  236. package/package.json +4 -3
  237. package/dist/{chunk-YNP2OBK4.js → chunk-RIZ76XRF.js} +1 -1
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Popover Molecule Component
3
+ *
4
+ * A popover component with position variants and click/hover triggers.
5
+ * Uses Button, Typography, and Icon atoms.
6
+ */
7
+ import React from "react";
8
+ export type PopoverPosition = "top" | "bottom" | "left" | "right";
9
+ export type PopoverTrigger = "click" | "hover";
10
+ export interface PopoverProps {
11
+ /**
12
+ * Popover content
13
+ */
14
+ content: React.ReactNode;
15
+ /**
16
+ * Popover trigger element (ReactElement or ReactNode that will be wrapped in span)
17
+ */
18
+ children: React.ReactNode;
19
+ /**
20
+ * Popover position
21
+ * @default 'bottom'
22
+ */
23
+ position?: PopoverPosition;
24
+ /**
25
+ * Trigger type
26
+ * @default 'click'
27
+ */
28
+ trigger?: PopoverTrigger;
29
+ /**
30
+ * Show arrow
31
+ * @default true
32
+ */
33
+ showArrow?: boolean;
34
+ /**
35
+ * Additional CSS classes
36
+ */
37
+ className?: string;
38
+ }
39
+ export declare const Popover: React.FC<PopoverProps>;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * QuizBlock Molecule Component
3
+ *
4
+ * A collapsible Q&A block for embedded quiz questions in content.
5
+ * Shows the question with a reveal button for the answer.
6
+ *
7
+ * Event Contract:
8
+ * - No events emitted (self-contained interaction)
9
+ * - entityAware: false
10
+ */
11
+ import React from 'react';
12
+ export interface QuizBlockProps {
13
+ /** The quiz question */
14
+ question: string;
15
+ /** The quiz answer (revealed on toggle) */
16
+ answer: string;
17
+ /** Additional CSS classes */
18
+ className?: string;
19
+ }
20
+ export declare const QuizBlock: React.FC<QuizBlockProps>;
@@ -0,0 +1,48 @@
1
+ /**
2
+ * RelationSelect Molecule Component
3
+ *
4
+ * A searchable select component for relation fields.
5
+ * Allows users to search and select from related entities.
6
+ *
7
+ * Composed from: Box, HStack, VStack, Input, Button, Spinner, Typography atoms
8
+ */
9
+ import React from "react";
10
+ export interface RelationOption {
11
+ /** The value to store (typically the ID) */
12
+ value: string;
13
+ /** The display label */
14
+ label: string;
15
+ /** Optional description */
16
+ description?: string;
17
+ /** Whether this option is disabled */
18
+ disabled?: boolean;
19
+ }
20
+ export interface RelationSelectProps {
21
+ /** Current value (ID) */
22
+ value?: string;
23
+ /** Callback when value changes */
24
+ onChange?: (value: string | undefined) => void;
25
+ /** Available options - accepts readonly for compatibility with generated const arrays */
26
+ options: readonly RelationOption[];
27
+ /** Placeholder text */
28
+ placeholder?: string;
29
+ /** Whether the field is required */
30
+ required?: boolean;
31
+ /** Whether the field is disabled */
32
+ disabled?: boolean;
33
+ /** Whether data is loading */
34
+ isLoading?: boolean;
35
+ /** Error message */
36
+ error?: string;
37
+ /** Allow clearing the selection */
38
+ clearable?: boolean;
39
+ /** Name attribute for forms */
40
+ name?: string;
41
+ /** Additional CSS classes */
42
+ className?: string;
43
+ /** Search placeholder */
44
+ searchPlaceholder?: string;
45
+ /** Empty state message */
46
+ emptyMessage?: string;
47
+ }
48
+ export declare const RelationSelect: React.FC<RelationSelectProps>;
@@ -0,0 +1,58 @@
1
+ /**
2
+ * RepeatableFormSection
3
+ *
4
+ * A form section that can be repeated multiple times.
5
+ * Used for collecting multiple entries (participants, findings, etc.)
6
+ *
7
+ * Enhanced with trackAddedInState for inspection audit trails.
8
+ *
9
+ * Event Contract:
10
+ * - Emits: UI:SECTION_ADDED { sectionType, index, addedInState? }
11
+ * - Emits: UI:SECTION_REMOVED { sectionType, index, itemId }
12
+ */
13
+ import React from "react";
14
+ export interface RepeatableItem {
15
+ id: string;
16
+ /** State in which this item was added (for audit trails) */
17
+ addedInState?: string;
18
+ /** Timestamp when item was added */
19
+ addedAt?: string;
20
+ [key: string]: unknown;
21
+ }
22
+ export interface RepeatableFormSectionProps {
23
+ /** Section type identifier */
24
+ sectionType: string;
25
+ /** Section title */
26
+ title: string;
27
+ /** Items in the section */
28
+ items: RepeatableItem[];
29
+ /** Render function for each item */
30
+ renderItem: (item: RepeatableItem, index: number) => React.ReactNode;
31
+ /** Minimum items required */
32
+ minItems?: number;
33
+ /** Maximum items allowed */
34
+ maxItems?: number;
35
+ /** Allow reordering */
36
+ allowReorder?: boolean;
37
+ /** Add button label */
38
+ addLabel?: string;
39
+ /** Empty state message */
40
+ emptyMessage?: string;
41
+ /** Read-only mode */
42
+ readOnly?: boolean;
43
+ /** Additional CSS classes */
44
+ className?: string;
45
+ /** Add handler */
46
+ onAdd?: () => void;
47
+ /** Remove handler */
48
+ onRemove?: (itemId: string, index: number) => void;
49
+ /** Reorder handler */
50
+ onReorder?: (fromIndex: number, toIndex: number) => void;
51
+ /** Track the state in which items are added (for inspection audit) */
52
+ trackAddedInState?: boolean;
53
+ /** Current inspection state (used when trackAddedInState is true) */
54
+ currentState?: string;
55
+ /** Show audit metadata (addedInState, addedAt) */
56
+ showAuditInfo?: boolean;
57
+ }
58
+ export declare const RepeatableFormSection: React.FC<RepeatableFormSectionProps>;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * ScaledDiagram Molecule
3
+ *
4
+ * Wraps a fixed-size diagram (like JazariStateMachine / StateMachineView)
5
+ * and CSS-scales it to fit the parent container width.
6
+ *
7
+ * The diagram renders at its natural (large) size. We observe the content
8
+ * element and once the diagram is measured we apply transform:scale() with
9
+ * a corrected container height so surrounding layout flows correctly.
10
+ *
11
+ * Event Contract:
12
+ * - No events emitted (layout-only wrapper)
13
+ * - entityAware: false
14
+ */
15
+ import React from 'react';
16
+ export interface ScaledDiagramProps {
17
+ children: React.ReactNode;
18
+ className?: string;
19
+ }
20
+ export declare const ScaledDiagram: React.FC<ScaledDiagramProps>;
@@ -0,0 +1,60 @@
1
+ /**
2
+ * SearchInput Molecule Component
3
+ *
4
+ * A search input component with icon, clear button, and loading state.
5
+ * Uses Input, Icon, Button, and Spinner atoms.
6
+ *
7
+ * Supports Query Singleton pattern via `query` prop for std/Search behavior.
8
+ */
9
+ import React from 'react';
10
+ export interface SearchInputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> {
11
+ /**
12
+ * Search value (controlled mode)
13
+ */
14
+ value?: string;
15
+ /**
16
+ * Callback when search value changes
17
+ */
18
+ onSearch?: (value: string) => void;
19
+ /**
20
+ * Debounce delay in milliseconds
21
+ * @default 300
22
+ */
23
+ debounceMs?: number;
24
+ /**
25
+ * Show loading state
26
+ * @default false
27
+ */
28
+ isLoading?: boolean;
29
+ /**
30
+ * Placeholder text
31
+ * @default 'Search...'
32
+ */
33
+ placeholder?: string;
34
+ /**
35
+ * Show clear button
36
+ * @default true
37
+ */
38
+ clearable?: boolean;
39
+ /**
40
+ * Additional CSS classes
41
+ */
42
+ className?: string;
43
+ /**
44
+ * Event name to dispatch on search (schema metadata, wired by trait)
45
+ * This is metadata used by the trait generator, not by the component.
46
+ */
47
+ event?: string;
48
+ /**
49
+ * Entity type for context-aware search.
50
+ * When provided, search events include entity context.
51
+ */
52
+ entity?: string;
53
+ /**
54
+ * Query singleton binding for state management.
55
+ * When provided, syncs search state with the query singleton.
56
+ * Example: "@TaskQuery"
57
+ */
58
+ query?: string;
59
+ }
60
+ export declare const SearchInput: React.FC<SearchInputProps>;
@@ -0,0 +1,47 @@
1
+ /**
2
+ * SidePanel Molecule Component
3
+ *
4
+ * A side panel that slides in from the right (or left) with header and content.
5
+ * Uses Button, Typography atoms.
6
+ */
7
+ import React from "react";
8
+ export interface SidePanelProps {
9
+ /**
10
+ * Panel title
11
+ */
12
+ title: string;
13
+ /**
14
+ * Panel content
15
+ */
16
+ children: React.ReactNode;
17
+ /**
18
+ * Is panel open
19
+ */
20
+ isOpen: boolean;
21
+ /**
22
+ * On close handler
23
+ */
24
+ onClose: () => void;
25
+ /**
26
+ * Panel width
27
+ * @default 'w-96'
28
+ */
29
+ width?: string;
30
+ /**
31
+ * Panel position
32
+ * @default 'right'
33
+ */
34
+ position?: "left" | "right";
35
+ /**
36
+ * Show overlay on mobile
37
+ * @default true
38
+ */
39
+ showOverlay?: boolean;
40
+ /**
41
+ * Additional CSS classes
42
+ */
43
+ className?: string;
44
+ /** Declarative close event — emits UI:{closeEvent} via eventBus when panel should close */
45
+ closeEvent?: string;
46
+ }
47
+ export declare const SidePanel: React.FC<SidePanelProps>;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * SimpleGrid Component
3
+ *
4
+ * A simplified grid that automatically adjusts columns based on available space.
5
+ * Perfect for card layouts and item collections.
6
+ */
7
+ import React from 'react';
8
+ export type SimpleGridGap = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
9
+ export interface SimpleGridProps {
10
+ /** Minimum width of each child (e.g., 200, "200px", "15rem") */
11
+ minChildWidth?: number | string;
12
+ /** Maximum number of columns */
13
+ maxCols?: 1 | 2 | 3 | 4 | 5 | 6;
14
+ /** Exact number of columns (disables auto-fit) */
15
+ cols?: 1 | 2 | 3 | 4 | 5 | 6;
16
+ /** Gap between items */
17
+ gap?: SimpleGridGap;
18
+ /** Custom class name */
19
+ className?: string;
20
+ /** Children elements */
21
+ children: React.ReactNode;
22
+ }
23
+ /**
24
+ * SimpleGrid - Auto-responsive grid layout
25
+ */
26
+ export declare const SimpleGrid: React.FC<SimpleGridProps>;
27
+ export default SimpleGrid;
@@ -0,0 +1,35 @@
1
+ import React from 'react';
2
+ export type SkeletonVariant = 'header' | 'table' | 'form' | 'card' | 'text';
3
+ export interface SkeletonProps {
4
+ /** The skeleton variant to render */
5
+ variant?: SkeletonVariant;
6
+ /** Number of rows for table/text variants */
7
+ rows?: number;
8
+ /** Number of columns for table variant */
9
+ columns?: number;
10
+ /** Number of fields for form variant */
11
+ fields?: number;
12
+ /** Additional CSS classes */
13
+ className?: string;
14
+ }
15
+ /**
16
+ * Skeleton — loading placeholder with 5 variants for Suspense fallbacks.
17
+ *
18
+ * Variants: `header`, `table`, `form`, `card`, `text`.
19
+ * Used as fallback content inside `<Suspense>` boundaries.
20
+ *
21
+ * @example
22
+ * ```tsx
23
+ * <Suspense fallback={<Skeleton variant="table" rows={8} columns={5} />}>
24
+ * <DataTable entity="Task" />
25
+ * </Suspense>
26
+ *
27
+ * <Suspense fallback={<Skeleton variant="form" fields={6} />}>
28
+ * <Form entity="Task" />
29
+ * </Suspense>
30
+ * ```
31
+ */
32
+ export declare function Skeleton({ variant, rows, columns, fields, className, }: SkeletonProps): React.ReactElement;
33
+ export declare namespace Skeleton {
34
+ var displayName: string;
35
+ }
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Tabs Molecule Component
3
+ *
4
+ * A tabbed interface component with keyboard navigation and badge support.
5
+ * Uses theme-aware CSS variables for styling.
6
+ */
7
+ import React from 'react';
8
+ import type { LucideIcon } from 'lucide-react';
9
+ export interface TabItem {
10
+ /** Tab ID */
11
+ id: string;
12
+ /** Tab label */
13
+ label: string;
14
+ /** Tab content - optional for event-driven tabs */
15
+ content?: React.ReactNode;
16
+ /** Tab icon */
17
+ icon?: LucideIcon;
18
+ /** Tab badge */
19
+ badge?: string | number;
20
+ /** Disable tab */
21
+ disabled?: boolean;
22
+ /** Event to emit when tab is clicked (for trait state machine integration) */
23
+ event?: string;
24
+ /** Whether this tab is currently active (for controlled tabs) */
25
+ active?: boolean;
26
+ }
27
+ export interface TabsProps {
28
+ /** Tab items */
29
+ items?: TabItem[];
30
+ /** Tab items (alias for items - used by generated code) */
31
+ tabs?: TabItem[];
32
+ /** Default active tab ID */
33
+ defaultActiveTab?: string;
34
+ /** Controlled active tab ID */
35
+ activeTab?: string;
36
+ /** Callback when tab changes */
37
+ onTabChange?: (tabId: string) => void;
38
+ /** Tab variant */
39
+ variant?: 'default' | 'pills' | 'underline';
40
+ /** Tab orientation */
41
+ orientation?: 'horizontal' | 'vertical';
42
+ /** Additional CSS classes */
43
+ className?: string;
44
+ }
45
+ export declare const Tabs: React.FC<TabsProps>;
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Toast Molecule Component
3
+ *
4
+ * A toast notification component with auto-dismiss and action buttons.
5
+ * Uses theme-aware CSS variables for styling.
6
+ */
7
+ import React from "react";
8
+ export type ToastVariant = "success" | "error" | "info" | "warning";
9
+ export interface ToastProps {
10
+ /** Toast variant */
11
+ variant?: ToastVariant;
12
+ /** Toast message */
13
+ message: string;
14
+ /** Toast title (optional) */
15
+ title?: string;
16
+ /** Auto-dismiss duration in milliseconds (0 = no auto-dismiss) */
17
+ duration?: number;
18
+ /** Show dismiss button */
19
+ dismissible?: boolean;
20
+ /** Callback when toast is dismissed */
21
+ onDismiss?: () => void;
22
+ /** Action button label */
23
+ actionLabel?: string;
24
+ /** Action button click handler */
25
+ onAction?: () => void;
26
+ /** Badge count (optional) */
27
+ badge?: string | number;
28
+ /** Additional CSS classes */
29
+ className?: string;
30
+ /** Declarative dismiss event — emits UI:{dismissEvent} via eventBus when toast is dismissed */
31
+ dismissEvent?: string;
32
+ /** Declarative action event — emits UI:{actionEvent} via eventBus when action button is clicked */
33
+ actionEvent?: string;
34
+ }
35
+ export declare const Toast: React.FC<ToastProps>;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Tooltip Molecule Component
3
+ *
4
+ * A tooltip component with position variants and delay options.
5
+ * Uses theme-aware CSS variables for styling.
6
+ */
7
+ import React from 'react';
8
+ export type TooltipPosition = 'top' | 'bottom' | 'left' | 'right';
9
+ export interface TooltipProps {
10
+ /** Tooltip content */
11
+ content: React.ReactNode;
12
+ /** Tooltip trigger element (ReactElement or ReactNode that will be wrapped in span) */
13
+ children: React.ReactNode;
14
+ /** Tooltip position */
15
+ position?: TooltipPosition;
16
+ /** Show delay in milliseconds */
17
+ delay?: number;
18
+ /** Hide delay in milliseconds */
19
+ hideDelay?: number;
20
+ /** Show arrow */
21
+ showArrow?: boolean;
22
+ /** Additional CSS classes */
23
+ className?: string;
24
+ }
25
+ export declare const Tooltip: React.FC<TooltipProps>;
@@ -0,0 +1,49 @@
1
+ /**
2
+ * ViolationAlert
3
+ *
4
+ * Displays inspection violations with law references and action types.
5
+ * Used in inspection forms to show detected compliance violations.
6
+ *
7
+ * Action Types:
8
+ * - measure: Corrective measure required (warning)
9
+ * - admin: Administrative action (error)
10
+ * - penalty: Penalty proceedings (error, severe)
11
+ */
12
+ import React from "react";
13
+ export interface ViolationRecord {
14
+ /** Unique violation identifier */
15
+ id: string;
16
+ /** Law reference (e.g., "ZVPOT-1") */
17
+ law: string;
18
+ /** Article reference (e.g., "14/1") */
19
+ article: string;
20
+ /** Violation message */
21
+ message: string;
22
+ /** Action type determines severity */
23
+ actionType: "measure" | "admin" | "penalty";
24
+ /** Administrative action reference (e.g., "ZVPOT-1 234/1-4") */
25
+ adminAction?: string;
26
+ /** Penalty action reference (e.g., "ZVPOT-1 240/1-9") */
27
+ penaltyAction?: string;
28
+ /** Field that triggered this violation */
29
+ fieldId?: string;
30
+ /** Tab/form where violation occurred */
31
+ tabId?: string;
32
+ }
33
+ export interface ViolationAlertProps {
34
+ /** Violation data */
35
+ violation: ViolationRecord;
36
+ /** Visual severity (derived from actionType if not specified) */
37
+ severity?: "warning" | "error";
38
+ /** Dismissible alert */
39
+ dismissible?: boolean;
40
+ /** Dismiss handler */
41
+ onDismiss?: () => void;
42
+ /** Navigate to the field that caused violation */
43
+ onNavigateToField?: (fieldId: string) => void;
44
+ /** Compact display mode */
45
+ compact?: boolean;
46
+ /** Additional CSS classes */
47
+ className?: string;
48
+ }
49
+ export declare const ViolationAlert: React.FC<ViolationAlertProps>;
@@ -0,0 +1,51 @@
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;
@@ -0,0 +1,42 @@
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;
@@ -0,0 +1,27 @@
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
+ }