@almadar/ui 2.14.0 → 2.15.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 (407) hide show
  1. package/dist/{chunk-M7MOIE46.js → chunk-2KQPOTRM.js} +1 -1
  2. package/dist/{chunk-SKWPSQHQ.js → chunk-FP3PNF7I.js} +22 -10
  3. package/dist/components/atoms/AnimatedCounter.d.ts +20 -0
  4. package/dist/components/atoms/Avatar.d.ts +58 -0
  5. package/dist/components/atoms/Badge.d.ts +14 -0
  6. package/dist/components/atoms/Box.d.ts +57 -0
  7. package/dist/components/atoms/Button.d.ts +24 -0
  8. package/dist/components/atoms/Card.d.ts +18 -0
  9. package/dist/components/atoms/Center.d.ts +33 -0
  10. package/dist/components/atoms/Checkbox.d.ts +9 -0
  11. package/dist/components/atoms/ConditionalWrapper.d.ts +68 -0
  12. package/dist/components/atoms/ConfettiEffect.d.ts +19 -0
  13. package/dist/components/atoms/DayCell.d.ts +21 -0
  14. package/dist/components/atoms/Divider.d.ts +29 -0
  15. package/dist/components/atoms/FlipContainer.d.ts +21 -0
  16. package/dist/components/atoms/Icon.d.ts +39 -0
  17. package/dist/components/atoms/InfiniteScrollSentinel.d.ts +23 -0
  18. package/dist/components/atoms/Input.d.ts +26 -0
  19. package/dist/components/atoms/Label.d.ts +5 -0
  20. package/dist/components/atoms/LawReferenceTooltip.d.ts +48 -0
  21. package/dist/components/atoms/Overlay.d.ts +16 -0
  22. package/dist/components/atoms/ProgressBar.d.ts +63 -0
  23. package/dist/components/atoms/Radio.d.ts +26 -0
  24. package/dist/components/atoms/RangeSlider.d.ts +31 -0
  25. package/dist/components/atoms/Select.d.ts +12 -0
  26. package/dist/components/atoms/Spacer.d.ts +25 -0
  27. package/dist/components/atoms/Spinner.d.ts +6 -0
  28. package/dist/components/atoms/Stack.d.ts +66 -0
  29. package/dist/components/atoms/StatusDot.d.ts +14 -0
  30. package/dist/components/atoms/Switch.d.ts +12 -0
  31. package/dist/components/atoms/TextHighlight.d.ts +53 -0
  32. package/dist/components/atoms/Textarea.d.ts +5 -0
  33. package/dist/components/atoms/ThemeSelector.d.ts +21 -0
  34. package/dist/components/atoms/ThemeToggle.d.ts +33 -0
  35. package/dist/components/atoms/TimeSlotCell.d.ts +23 -0
  36. package/dist/components/atoms/TrendIndicator.d.ts +18 -0
  37. package/dist/components/atoms/TypewriterText.d.ts +20 -0
  38. package/dist/components/atoms/Typography.d.ts +57 -0
  39. package/dist/components/atoms/game/ActionButton.d.ts +25 -0
  40. package/dist/components/atoms/game/ChoiceButton.d.ts +18 -0
  41. package/dist/components/atoms/game/ComboCounter.d.ts +16 -0
  42. package/dist/components/atoms/game/ControlButton.d.ts +31 -0
  43. package/dist/components/atoms/game/DamageNumber.d.ts +14 -0
  44. package/dist/components/atoms/game/DialogueBubble.d.ts +16 -0
  45. package/dist/components/atoms/game/HealthBar.d.ts +18 -0
  46. package/dist/components/atoms/game/ItemSlot.d.ts +25 -0
  47. package/dist/components/atoms/game/MiniMap.d.ts +36 -0
  48. package/dist/components/atoms/game/ResourceCounter.d.ts +21 -0
  49. package/dist/components/atoms/game/ScoreDisplay.d.ts +21 -0
  50. package/dist/components/atoms/game/Sprite.d.ts +63 -0
  51. package/dist/components/atoms/game/StateIndicator.d.ts +31 -0
  52. package/dist/components/atoms/game/StatusEffect.d.ts +21 -0
  53. package/dist/components/atoms/game/TimerDisplay.d.ts +18 -0
  54. package/dist/components/atoms/game/TurnIndicator.d.ts +18 -0
  55. package/dist/components/atoms/game/WaypointMarker.d.ts +19 -0
  56. package/dist/components/atoms/game/XPBar.d.ts +20 -0
  57. package/dist/components/atoms/game/index.d.ts +25 -0
  58. package/dist/components/atoms/index.d.ts +37 -0
  59. package/dist/components/index.d.ts +6 -0
  60. package/dist/components/index.js +3 -3
  61. package/dist/components/molecules/Accordion.d.ts +67 -0
  62. package/dist/components/molecules/Alert.d.ts +24 -0
  63. package/dist/components/molecules/Breadcrumb.d.ts +55 -0
  64. package/dist/components/molecules/ButtonGroup.d.ts +67 -0
  65. package/dist/components/molecules/CalendarGrid.d.ts +43 -0
  66. package/dist/components/molecules/Card.d.ts +56 -0
  67. package/dist/components/molecules/Carousel.d.ts +31 -0
  68. package/dist/components/molecules/ChartLegend.d.ts +20 -0
  69. package/dist/components/molecules/Container.d.ts +30 -0
  70. package/dist/components/molecules/DataGrid.d.ts +75 -0
  71. package/dist/components/molecules/DataList.d.ts +95 -0
  72. package/dist/components/molecules/DateRangeSelector.d.ts +22 -0
  73. package/dist/components/molecules/Drawer.d.ts +46 -0
  74. package/dist/components/molecules/EmptyState.d.ts +25 -0
  75. package/dist/components/molecules/ErrorBoundary.d.ts +55 -0
  76. package/dist/components/molecules/ErrorState.d.ts +13 -0
  77. package/dist/components/molecules/FilterGroup.d.ts +54 -0
  78. package/dist/components/molecules/Flex.d.ts +43 -0
  79. package/dist/components/molecules/FlipCard.d.ts +25 -0
  80. package/dist/components/molecules/FloatingActionButton.d.ts +69 -0
  81. package/dist/components/molecules/FormField.d.ts +16 -0
  82. package/dist/components/molecules/FormSectionHeader.d.ts +30 -0
  83. package/dist/components/molecules/GraphView.d.ts +45 -0
  84. package/dist/components/molecules/Grid.d.ts +54 -0
  85. package/dist/components/molecules/InputGroup.d.ts +24 -0
  86. package/dist/components/molecules/Lightbox.d.ts +25 -0
  87. package/dist/components/molecules/LineChart.d.ts +33 -0
  88. package/dist/components/molecules/LoadingState.d.ts +7 -0
  89. package/dist/components/molecules/MapView.d.ts +40 -0
  90. package/dist/components/molecules/Menu.d.ts +40 -0
  91. package/dist/components/molecules/Meter.d.ts +51 -0
  92. package/dist/components/molecules/Modal.d.ts +28 -0
  93. package/dist/components/molecules/NumberStepper.d.ts +27 -0
  94. package/dist/components/molecules/Pagination.d.ts +66 -0
  95. package/dist/components/molecules/Popover.d.ts +39 -0
  96. package/dist/components/molecules/ProgressDots.d.ts +24 -0
  97. package/dist/components/molecules/PullToRefresh.d.ts +21 -0
  98. package/dist/components/molecules/QuizBlock.d.ts +20 -0
  99. package/dist/components/molecules/RelationSelect.d.ts +48 -0
  100. package/dist/components/molecules/RepeatableFormSection.d.ts +58 -0
  101. package/dist/components/molecules/ScaledDiagram.d.ts +20 -0
  102. package/dist/components/molecules/SearchInput.d.ts +60 -0
  103. package/dist/components/molecules/SidePanel.d.ts +47 -0
  104. package/dist/components/molecules/SimpleGrid.d.ts +27 -0
  105. package/dist/components/molecules/Skeleton.d.ts +35 -0
  106. package/dist/components/molecules/SortableList.d.ts +17 -0
  107. package/dist/components/molecules/StarRating.d.ts +26 -0
  108. package/dist/components/molecules/StatDisplay.d.ts +37 -0
  109. package/dist/components/molecules/SwipeableRow.d.ts +24 -0
  110. package/dist/components/molecules/Tabs.d.ts +45 -0
  111. package/dist/components/molecules/Toast.d.ts +35 -0
  112. package/dist/components/molecules/Tooltip.d.ts +25 -0
  113. package/dist/components/molecules/UploadDropZone.d.ts +26 -0
  114. package/dist/components/molecules/ViolationAlert.d.ts +49 -0
  115. package/dist/components/molecules/WizardNavigation.d.ts +51 -0
  116. package/dist/components/molecules/WizardProgress.d.ts +42 -0
  117. package/dist/components/molecules/game/ActionButtons.d.ts +34 -0
  118. package/dist/components/molecules/game/CombatLog.d.ts +30 -0
  119. package/dist/components/molecules/game/CraftingRecipe.d.ts +33 -0
  120. package/dist/components/molecules/game/DPad.d.ts +22 -0
  121. package/dist/components/molecules/game/DialogueBox.d.ts +78 -0
  122. package/dist/components/molecules/game/EnemyPlate.d.ts +27 -0
  123. package/dist/components/molecules/game/GameCanvas2D.d.ts +18 -0
  124. package/dist/components/molecules/game/GameHud.d.ts +49 -0
  125. package/dist/components/molecules/game/GameMenu.d.ts +43 -0
  126. package/dist/components/molecules/game/GameOverScreen.d.ts +56 -0
  127. package/dist/components/molecules/game/HealthPanel.d.ts +27 -0
  128. package/dist/components/molecules/game/InventoryGrid.d.ts +30 -0
  129. package/dist/components/molecules/game/InventoryPanel.d.ts +67 -0
  130. package/dist/components/molecules/game/IsometricCanvas.d.ts +127 -0
  131. package/dist/components/molecules/game/PlatformerCanvas.d.ts +52 -0
  132. package/dist/components/molecules/game/PowerupSlots.d.ts +23 -0
  133. package/dist/components/molecules/game/QuestTracker.d.ts +20 -0
  134. package/dist/components/molecules/game/ResourceBar.d.ts +23 -0
  135. package/dist/components/molecules/game/ScoreBoard.d.ts +18 -0
  136. package/dist/components/molecules/game/StatBadge.d.ts +27 -0
  137. package/dist/components/molecules/game/TurnPanel.d.ts +29 -0
  138. package/dist/components/molecules/game/UnitCommandBar.d.ts +25 -0
  139. package/dist/components/molecules/game/index.d.ts +30 -0
  140. package/dist/components/molecules/index.d.ts +59 -0
  141. package/dist/components/molecules/markdown/CodeBlock.d.ts +25 -0
  142. package/dist/components/molecules/markdown/MarkdownContent.d.ts +26 -0
  143. package/dist/components/molecules/markdown/index.d.ts +2 -0
  144. package/dist/components/organisms/CardGrid.d.ts +80 -0
  145. package/dist/components/organisms/Chart.d.ts +59 -0
  146. package/dist/components/organisms/CodeViewer.d.ts +67 -0
  147. package/dist/components/organisms/ComponentPatterns.d.ts +453 -0
  148. package/dist/components/organisms/ConfirmDialog.d.ts +50 -0
  149. package/dist/components/organisms/ContentRenderer.d.ts +23 -0
  150. package/dist/components/organisms/CustomPattern.d.ts +104 -0
  151. package/dist/components/organisms/DataTable.d.ts +67 -0
  152. package/dist/components/organisms/DetailPanel.d.ts +78 -0
  153. package/dist/components/organisms/DocumentViewer.d.ts +60 -0
  154. package/dist/components/organisms/DrawerSlot.d.ts +39 -0
  155. package/dist/components/organisms/Form.d.ts +206 -0
  156. package/dist/components/organisms/FormSection.d.ts +41 -0
  157. package/dist/components/organisms/GraphCanvas.d.ts +69 -0
  158. package/dist/components/organisms/Header.d.ts +110 -0
  159. package/dist/components/organisms/JazariStateMachine.d.ts +60 -0
  160. package/dist/components/organisms/LayoutPatterns.d.ts +181 -0
  161. package/dist/components/organisms/List.d.ts +78 -0
  162. package/dist/components/organisms/MasterDetail.d.ts +32 -0
  163. package/dist/components/organisms/MediaGallery.d.ts +57 -0
  164. package/dist/components/organisms/Meter.d.ts +58 -0
  165. package/dist/components/organisms/ModalSlot.d.ts +35 -0
  166. package/dist/components/organisms/Navigation.d.ts +68 -0
  167. package/dist/components/organisms/NotifyListener.d.ts +15 -0
  168. package/dist/components/organisms/OrbitalVisualization.d.ts +48 -0
  169. package/dist/components/organisms/PageHeader.d.ts +59 -0
  170. package/dist/components/organisms/Section.d.ts +44 -0
  171. package/dist/components/organisms/Sidebar.d.ts +63 -0
  172. package/dist/components/organisms/SignaturePad.d.ts +44 -0
  173. package/dist/components/organisms/Split.d.ts +42 -0
  174. package/dist/components/organisms/StatCard.d.ts +62 -0
  175. package/dist/components/organisms/StateMachineView.d.ts +36 -0
  176. package/dist/components/organisms/Table.d.ts +99 -0
  177. package/dist/components/organisms/Timeline.d.ts +49 -0
  178. package/dist/components/organisms/ToastSlot.d.ts +38 -0
  179. package/dist/components/organisms/UISlotRenderer.d.ts +112 -0
  180. package/dist/components/organisms/WizardContainer.d.ts +160 -0
  181. package/dist/components/organisms/book/BookChapterView.d.ts +17 -0
  182. package/dist/components/organisms/book/BookCoverPage.d.ts +20 -0
  183. package/dist/components/organisms/book/BookNavBar.d.ts +19 -0
  184. package/dist/components/organisms/book/BookTableOfContents.d.ts +18 -0
  185. package/dist/components/organisms/book/BookViewer.d.ts +28 -0
  186. package/dist/components/organisms/book/index.d.ts +7 -0
  187. package/dist/components/organisms/book/types.d.ts +77 -0
  188. package/dist/components/organisms/component-registry.generated.d.ts +9 -0
  189. package/dist/components/organisms/debug/RuntimeDebugger.d.ts +19 -0
  190. package/dist/components/organisms/debug/hooks/useDebugData.d.ts +25 -0
  191. package/dist/components/organisms/debug/index.d.ts +13 -0
  192. package/dist/components/organisms/debug/tabs/EntitiesTab.d.ts +13 -0
  193. package/dist/components/organisms/debug/tabs/EventDispatcherTab.d.ts +16 -0
  194. package/dist/components/organisms/debug/tabs/EventFlowTab.d.ts +9 -0
  195. package/dist/components/organisms/debug/tabs/GuardsPanel.d.ts +9 -0
  196. package/dist/components/organisms/debug/tabs/ServerBridgeTab.d.ts +9 -0
  197. package/dist/components/organisms/debug/tabs/TicksTab.d.ts +13 -0
  198. package/dist/components/organisms/debug/tabs/TraitsTab.d.ts +13 -0
  199. package/dist/components/organisms/debug/tabs/TransitionTimeline.d.ts +9 -0
  200. package/dist/components/organisms/debug/tabs/VerificationTab.d.ts +10 -0
  201. package/dist/components/organisms/game/BattleBoard.d.ts +175 -0
  202. package/dist/components/organisms/game/CanvasEffect.d.ts +68 -0
  203. package/dist/components/organisms/game/CastleBoard.d.ts +85 -0
  204. package/dist/components/organisms/game/CombatLog.d.ts +2 -0
  205. package/dist/components/organisms/game/DialogueBox.d.ts +2 -0
  206. package/dist/components/organisms/game/GameAudioProvider.d.ts +47 -0
  207. package/dist/components/organisms/game/GameAudioToggle.d.ts +28 -0
  208. package/dist/components/organisms/game/GameCanvas3D.d.ts +181 -0
  209. package/dist/components/organisms/game/GameHud.d.ts +2 -0
  210. package/dist/components/organisms/game/GameMenu.d.ts +2 -0
  211. package/dist/components/organisms/game/GameOverScreen.d.ts +2 -0
  212. package/dist/components/organisms/game/InventoryPanel.d.ts +2 -0
  213. package/dist/components/organisms/game/IsometricCanvas.d.ts +3 -0
  214. package/dist/components/organisms/game/PlatformerCanvas.d.ts +2 -0
  215. package/dist/components/organisms/game/TraitSlot.d.ts +90 -0
  216. package/dist/components/organisms/game/TraitStateViewer.d.ts +53 -0
  217. package/dist/components/organisms/game/UncontrolledBattleBoard.d.ts +26 -0
  218. package/dist/components/organisms/game/WorldMapBoard.d.ts +156 -0
  219. package/dist/components/organisms/game/editor/editorUtils.d.ts +109 -0
  220. package/dist/components/organisms/game/editor/index.d.ts +9 -0
  221. package/dist/components/organisms/game/hooks/useBattleState.d.ts +35 -0
  222. package/dist/components/organisms/game/hooks/useCamera.d.ts +41 -0
  223. package/dist/components/organisms/game/hooks/useGameAudio.d.ts +47 -0
  224. package/dist/components/organisms/game/hooks/useImageCache.d.ts +16 -0
  225. package/dist/components/organisms/game/hooks/usePhysics2D.d.ts +45 -0
  226. package/dist/components/organisms/game/hooks/useSpriteAnimations.d.ts +43 -0
  227. package/dist/components/organisms/game/index.d.ts +52 -0
  228. package/dist/components/organisms/game/managers/PhysicsManager.d.ts +103 -0
  229. package/dist/components/organisms/game/physics-sim/SimulationCanvas.d.ts +20 -0
  230. package/dist/components/organisms/game/physics-sim/SimulationControls.d.ts +28 -0
  231. package/dist/components/organisms/game/physics-sim/SimulationGraph.d.ts +25 -0
  232. package/dist/components/organisms/game/physics-sim/index.d.ts +7 -0
  233. package/dist/components/organisms/game/physics-sim/presets/index.d.ts +4 -0
  234. package/dist/components/organisms/game/physics-sim/presets/mechanics.d.ts +4 -0
  235. package/dist/components/organisms/game/physics-sim/presets/types.d.ts +43 -0
  236. package/dist/components/organisms/game/puzzles/builder/BuilderBoard.d.ts +52 -0
  237. package/dist/components/organisms/game/puzzles/builder/index.d.ts +2 -0
  238. package/dist/components/organisms/game/puzzles/classifier/ClassifierBoard.d.ts +53 -0
  239. package/dist/components/organisms/game/puzzles/classifier/index.d.ts +2 -0
  240. package/dist/components/organisms/game/puzzles/debugger/DebuggerBoard.d.ts +45 -0
  241. package/dist/components/organisms/game/puzzles/debugger/index.d.ts +2 -0
  242. package/dist/components/organisms/game/puzzles/event-handler/EventHandlerBoard.d.ts +55 -0
  243. package/dist/components/organisms/game/puzzles/event-handler/EventLog.d.ts +31 -0
  244. package/dist/components/organisms/game/puzzles/event-handler/ObjectRulePanel.d.ts +45 -0
  245. package/dist/components/organisms/game/puzzles/event-handler/RuleEditor.d.ts +41 -0
  246. package/dist/components/organisms/game/puzzles/event-handler/index.d.ts +8 -0
  247. package/dist/components/organisms/game/puzzles/negotiator/NegotiatorBoard.d.ts +54 -0
  248. package/dist/components/organisms/game/puzzles/negotiator/index.d.ts +2 -0
  249. package/dist/components/organisms/game/puzzles/sequencer/ActionPalette.d.ts +34 -0
  250. package/dist/components/organisms/game/puzzles/sequencer/ActionTile.d.ts +30 -0
  251. package/dist/components/organisms/game/puzzles/sequencer/SequenceBar.d.ts +41 -0
  252. package/dist/components/organisms/game/puzzles/sequencer/SequencerBoard.d.ts +72 -0
  253. package/dist/components/organisms/game/puzzles/sequencer/index.d.ts +8 -0
  254. package/dist/components/organisms/game/puzzles/simulator/SimulatorBoard.d.ts +54 -0
  255. package/dist/components/organisms/game/puzzles/simulator/index.d.ts +2 -0
  256. package/dist/components/organisms/game/puzzles/state-architect/CodeView.d.ts +24 -0
  257. package/dist/components/organisms/game/puzzles/state-architect/StateArchitectBoard.d.ts +76 -0
  258. package/dist/components/organisms/game/puzzles/state-architect/StateNode.d.ts +33 -0
  259. package/dist/components/organisms/game/puzzles/state-architect/TransitionArrow.d.ts +36 -0
  260. package/dist/components/organisms/game/puzzles/state-architect/VariablePanel.d.ts +28 -0
  261. package/dist/components/organisms/game/puzzles/state-architect/index.d.ts +10 -0
  262. package/dist/components/organisms/game/three/Camera3D.d.ts +60 -0
  263. package/dist/components/organisms/game/three/Lighting3D.d.ts +47 -0
  264. package/dist/components/organisms/game/three/Scene3D.d.ts +37 -0
  265. package/dist/components/organisms/game/three/components/Canvas3DErrorBoundary.d.ts +51 -0
  266. package/dist/components/organisms/game/three/components/Canvas3DLoadingState.d.ts +44 -0
  267. package/dist/components/organisms/game/three/components/ModelLoader.d.ts +44 -0
  268. package/dist/components/organisms/game/three/components/PhysicsObject3D.d.ts +74 -0
  269. package/dist/components/organisms/game/three/components/index.d.ts +10 -0
  270. package/dist/components/organisms/game/three/hooks/useAssetLoader.d.ts +58 -0
  271. package/dist/components/organisms/game/three/hooks/useGameCanvas3DEvents.d.ts +79 -0
  272. package/dist/components/organisms/game/three/hooks/useRaycaster.d.ts +86 -0
  273. package/dist/components/organisms/game/three/hooks/useSceneGraph.d.ts +66 -0
  274. package/dist/components/organisms/game/three/hooks/useThree.d.ts +58 -0
  275. package/dist/components/organisms/game/three/index.d.ts +23 -0
  276. package/dist/components/organisms/game/three/loaders/AssetLoader.d.ts +80 -0
  277. package/dist/components/organisms/game/three/renderers/FeatureRenderer.d.ts +44 -0
  278. package/dist/components/organisms/game/three/renderers/FeatureRenderer3D.d.ts +44 -0
  279. package/dist/components/organisms/game/three/renderers/TileRenderer.d.ts +57 -0
  280. package/dist/components/organisms/game/three/renderers/UnitRenderer.d.ts +46 -0
  281. package/dist/components/organisms/game/three/renderers/index.d.ts +11 -0
  282. package/dist/components/organisms/game/three/utils/culling.d.ts +134 -0
  283. package/dist/components/organisms/game/three/utils/grid3D.d.ts +154 -0
  284. package/dist/components/organisms/game/types/effects.d.ts +253 -0
  285. package/dist/components/organisms/game/types/game.d.ts +92 -0
  286. package/dist/components/organisms/game/types/isometric.d.ts +109 -0
  287. package/dist/components/organisms/game/types/spriteAnimation.d.ts +73 -0
  288. package/dist/components/organisms/game/useCanvasEffects.d.ts +26 -0
  289. package/dist/components/organisms/game/utils/canvasEffects.d.ts +50 -0
  290. package/dist/components/organisms/game/utils/combatEffects.d.ts +64 -0
  291. package/dist/components/organisms/game/utils/combatPresets.d.ts +15 -0
  292. package/dist/components/organisms/game/utils/isometric.d.ts +61 -0
  293. package/dist/components/organisms/game/utils/spriteAnimation.d.ts +57 -0
  294. package/dist/components/organisms/game/utils/spriteSheetConstants.d.ts +16 -0
  295. package/dist/components/organisms/index.d.ts +38 -0
  296. package/dist/components/organisms/layout/DashboardGrid.d.ts +35 -0
  297. package/dist/components/organisms/layout/MasterDetail.d.ts +32 -0
  298. package/dist/components/organisms/layout/SplitPane.d.ts +34 -0
  299. package/dist/components/organisms/layout/TabbedContainer.d.ts +42 -0
  300. package/dist/components/organisms/layout/index.d.ts +9 -0
  301. package/dist/components/organisms/types.d.ts +63 -0
  302. package/dist/components/templates/AuthLayout.d.ts +14 -0
  303. package/dist/components/templates/BattleTemplate.d.ts +25 -0
  304. package/dist/components/templates/CastleTemplate.d.ts +23 -0
  305. package/dist/components/templates/CounterTemplate.d.ts +44 -0
  306. package/dist/components/templates/DashboardLayout.d.ts +34 -0
  307. package/dist/components/templates/GameCanvas3DBattleTemplate.d.ts +96 -0
  308. package/dist/components/templates/GameCanvas3DCastleTemplate.d.ts +90 -0
  309. package/dist/components/templates/GameCanvas3DWorldMapTemplate.d.ts +96 -0
  310. package/dist/components/templates/GameShell.d.ts +34 -0
  311. package/dist/components/templates/GameTemplate.d.ts +36 -0
  312. package/dist/components/templates/GenericAppTemplate.d.ts +30 -0
  313. package/dist/components/templates/WorldMapTemplate.d.ts +29 -0
  314. package/dist/components/templates/index.d.ts +10 -0
  315. package/dist/components/templates/types.d.ts +22 -0
  316. package/dist/context/DesignThemeContext.d.ts +21 -0
  317. package/dist/context/ThemeContext.d.ts +104 -0
  318. package/dist/context/UISlotContext.d.ts +75 -0
  319. package/dist/context/UserContext.d.ts +111 -0
  320. package/dist/context/index.d.ts +8 -0
  321. package/dist/hooks/event-bus-types.d.ts +71 -0
  322. package/dist/hooks/index.d.ts +31 -0
  323. package/dist/hooks/useAgentChat.d.ts +104 -0
  324. package/dist/hooks/useAuthContext.d.ts +25 -0
  325. package/dist/hooks/useCompile.d.ts +22 -0
  326. package/dist/hooks/useDeepAgentGeneration.d.ts +46 -0
  327. package/dist/hooks/useDragReorder.d.ts +26 -0
  328. package/dist/hooks/useEntities.d.ts +52 -0
  329. package/dist/hooks/useEntityData.d.ts +155 -0
  330. package/dist/hooks/useEntityMutations.d.ts +80 -0
  331. package/dist/hooks/useEventBus.d.ts +96 -0
  332. package/dist/hooks/useExtensions.d.ts +32 -0
  333. package/dist/hooks/useFileEditor.d.ts +32 -0
  334. package/dist/hooks/useFileSystem.d.ts +40 -0
  335. package/dist/hooks/useGitHub.d.ts +58 -0
  336. package/dist/hooks/useInfiniteScroll.d.ts +13 -0
  337. package/dist/hooks/useLongPress.d.ts +16 -0
  338. package/dist/hooks/useOrbitalHistory.d.ts +39 -0
  339. package/dist/hooks/useOrbitalMutations.d.ts +95 -0
  340. package/dist/hooks/usePinchZoom.d.ts +22 -0
  341. package/dist/hooks/usePreview.d.ts +57 -0
  342. package/dist/hooks/usePullToRefresh.d.ts +25 -0
  343. package/dist/hooks/useQuerySingleton.d.ts +78 -0
  344. package/dist/hooks/useResolvedEntity.d.ts +32 -0
  345. package/dist/hooks/useSwipeGesture.d.ts +26 -0
  346. package/dist/hooks/useTranslate.d.ts +35 -0
  347. package/dist/hooks/useUIEvents.d.ts +35 -0
  348. package/dist/hooks/useUISlots.d.ts +84 -0
  349. package/dist/hooks/useValidation.d.ts +46 -0
  350. package/dist/lib/api-client.d.ts +42 -0
  351. package/dist/lib/cn.d.ts +6 -0
  352. package/dist/lib/debug.d.ts +43 -0
  353. package/dist/lib/debugRegistry.d.ts +29 -0
  354. package/dist/lib/debugUtils.d.ts +27 -0
  355. package/dist/lib/entityDebug.d.ts +38 -0
  356. package/dist/lib/getNestedValue.d.ts +33 -0
  357. package/dist/lib/guardRegistry.d.ts +32 -0
  358. package/dist/lib/index.d.ts +18 -0
  359. package/dist/lib/jazari/index.d.ts +5 -0
  360. package/dist/lib/jazari/layout.d.ts +30 -0
  361. package/dist/lib/jazari/svg-paths.d.ts +61 -0
  362. package/dist/lib/jazari/types.d.ts +91 -0
  363. package/dist/lib/parseContentSegments.d.ts +41 -0
  364. package/dist/lib/tickRegistry.d.ts +40 -0
  365. package/dist/lib/traitRegistry.d.ts +34 -0
  366. package/dist/lib/verificationRegistry.d.ts +138 -0
  367. package/dist/lib/visualizer/browser.d.ts +47 -0
  368. package/dist/lib/visualizer/index.d.ts +143 -0
  369. package/dist/locales/index.d.ts +20 -0
  370. package/dist/providers/EventBusProvider.d.ts +60 -0
  371. package/dist/providers/FetchedDataProvider.d.ts +105 -0
  372. package/dist/providers/OfflineModeProvider.d.ts +79 -0
  373. package/dist/providers/OrbitalProvider.d.ts +101 -0
  374. package/dist/providers/SelectionProvider.d.ts +81 -0
  375. package/dist/providers/VerificationProvider.d.ts +63 -0
  376. package/dist/providers/index.d.ts +17 -0
  377. package/dist/providers/index.js +3 -3
  378. package/dist/renderer/client-effect-executor.d.ts +68 -0
  379. package/dist/renderer/data-resolver.d.ts +68 -0
  380. package/dist/renderer/index.d.ts +28 -0
  381. package/dist/renderer/init.d.ts +14 -0
  382. package/dist/renderer/navigation.d.ts +142 -0
  383. package/dist/renderer/offline-executor.d.ts +238 -0
  384. package/dist/renderer/pattern-resolver.d.ts +91 -0
  385. package/dist/renderer/slot-definitions.d.ts +45 -0
  386. package/dist/renderer/types.d.ts +160 -0
  387. package/dist/renderer/useClientEffects.d.ts +88 -0
  388. package/dist/runtime/EntitySchemaContext.d.ts +40 -0
  389. package/dist/runtime/TraitProvider.d.ts +52 -0
  390. package/dist/runtime/createClientEffectHandlers.d.ts +23 -0
  391. package/dist/runtime/index.d.ts +15 -0
  392. package/dist/runtime/index.js +3 -3
  393. package/dist/runtime/types.d.ts +10 -0
  394. package/dist/runtime/ui/SlotsContext.d.ts +71 -0
  395. package/dist/runtime/useResolvedSchema.d.ts +45 -0
  396. package/dist/runtime/useTraitStateMachine.d.ts +48 -0
  397. package/dist/scripts/generate-design-system.d.ts +29 -0
  398. package/dist/scripts/generate-theme-from-schema.d.ts +10 -0
  399. package/dist/scripts/generate.d.ts +12 -0
  400. package/dist/scripts/suggest-components.d.ts +31 -0
  401. package/dist/scripts/types.d.ts +129 -0
  402. package/dist/stores/entityStore.d.ts +99 -0
  403. package/dist/stores/filtering.d.ts +51 -0
  404. package/dist/stores/index.d.ts +7 -0
  405. package/dist/tsup.config.d.ts +2 -0
  406. package/dist/vitest.config.d.ts +2 -0
  407. package/package.json +2 -2
@@ -0,0 +1,52 @@
1
+ /**
2
+ * TraitProvider Component
3
+ *
4
+ * Provides trait state machines to child components via React context.
5
+ *
6
+ * @packageDocumentation
7
+ */
8
+ import React from 'react';
9
+ import type { ResolvedTrait, ResolvedTraitBinding, ResolvedEntity } from './types';
10
+ export interface TraitInstance {
11
+ /** Trait name */
12
+ name: string;
13
+ /** Current state */
14
+ currentState: string;
15
+ /** Available events (can be triggered) */
16
+ availableEvents: string[];
17
+ /** Dispatch an event to the state machine */
18
+ dispatch: (eventKey: string, payload?: Record<string, unknown>) => void;
19
+ /** Check if an event can be dispatched */
20
+ canDispatch: (eventKey: string) => boolean;
21
+ /** Get the full trait definition */
22
+ trait: ResolvedTrait;
23
+ }
24
+ export interface TraitContextValue {
25
+ /** All trait instances on this page */
26
+ traits: Map<string, TraitInstance>;
27
+ /** Get a trait instance by name */
28
+ getTrait: (name: string) => TraitInstance | undefined;
29
+ /** Dispatch an event to a specific trait */
30
+ dispatchToTrait: (traitName: string, eventKey: string, payload?: Record<string, unknown>) => void;
31
+ /** Check if an event can be dispatched to a trait */
32
+ canDispatch: (traitName: string, eventKey: string) => boolean;
33
+ }
34
+ export declare const TraitContext: React.Context<TraitContextValue | null>;
35
+ export interface TraitProviderProps {
36
+ /** Trait bindings for this page */
37
+ traits: ResolvedTraitBinding[];
38
+ /** Entity map for context */
39
+ entities: Map<string, ResolvedEntity>;
40
+ /** Children to render */
41
+ children: React.ReactNode;
42
+ }
43
+ export declare function TraitProvider({ traits: traitBindings, children, }: TraitProviderProps): React.ReactElement;
44
+ /**
45
+ * Access the trait context from within the TraitProvider.
46
+ */
47
+ export declare function useTraitContext(): TraitContextValue;
48
+ /**
49
+ * Access a specific trait instance.
50
+ */
51
+ export declare function useTrait(traitName: string): TraitInstance | undefined;
52
+ export default TraitProvider;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Client Effect Handlers Factory
3
+ *
4
+ * Creates the standard effect handler set for client-side trait execution.
5
+ *
6
+ * @packageDocumentation
7
+ */
8
+ import type { EffectHandlers } from '@almadar/runtime';
9
+ export interface ClientEventBus {
10
+ emit: (type: string, payload?: Record<string, unknown>) => void;
11
+ }
12
+ export interface SlotSetter {
13
+ addPattern: (slot: string, pattern: unknown, props?: Record<string, unknown>) => void;
14
+ clearSlot: (slot: string) => void;
15
+ }
16
+ export interface CreateClientEffectHandlersOptions {
17
+ eventBus: ClientEventBus;
18
+ slotSetter: SlotSetter;
19
+ navigate?: (path: string, params?: Record<string, unknown>) => void;
20
+ notify?: (message: string, type: 'success' | 'error' | 'warning' | 'info') => void;
21
+ enrichPattern?: (pattern: unknown) => unknown;
22
+ }
23
+ export declare function createClientEffectHandlers(options: CreateClientEffectHandlersOptions): EffectHandlers;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @almadar/ui Runtime
3
+ *
4
+ * Client-side runtime components for rendering Orbital schemas.
5
+ * Provides trait state machines, slot management, and pattern rendering.
6
+ *
7
+ * @packageDocumentation
8
+ */
9
+ export { useTraitStateMachine, type UseTraitStateMachineOptions, type TraitStateMachineResult } from './useTraitStateMachine';
10
+ export { useResolvedSchema, type ResolvedSchemaResult, clearSchemaCache } from './useResolvedSchema';
11
+ export { EntitySchemaProvider, useEntitySchema, useEntityDefinition, type EntitySchemaContextValue, type EntitySchemaProviderProps, } from './EntitySchemaContext';
12
+ export { TraitProvider, TraitContext, useTraitContext, useTrait, type TraitContextValue, type TraitInstance, type TraitProviderProps, } from './TraitProvider';
13
+ export { SlotsProvider, useSlots, useSlotContent, useSlotsActions, type SlotsState, type SlotState, type SlotPatternEntry, type SlotSource, type SlotsActions, type SlotsProviderProps, } from './ui/SlotsContext';
14
+ export { createClientEffectHandlers, type ClientEventBus, type SlotSetter, type CreateClientEffectHandlersOptions, } from './createClientEffectHandlers';
15
+ export type { ResolvedTraitBinding, ResolvedTrait, ResolvedEntity, ResolvedPage, ResolvedIR, } from './types';
@@ -1,15 +1,15 @@
1
1
  import '../chunk-IRIGCHP4.js';
2
2
  import '../chunk-N7MVUW4R.js';
3
3
  import '../chunk-3HJHHULT.js';
4
- import { useFetchedDataContext } from '../chunk-M7MOIE46.js';
5
- import '../chunk-SKWPSQHQ.js';
4
+ import { useFetchedDataContext } from '../chunk-2KQPOTRM.js';
5
+ import '../chunk-FP3PNF7I.js';
6
6
  import '../chunk-4N3BAPDB.js';
7
7
  import '../chunk-DKQN5FVU.js';
8
8
  import '../chunk-QU2X55WH.js';
9
9
  import { useEventBus } from '../chunk-YXZM3WCF.js';
10
10
  import '../chunk-3JGAROCW.js';
11
- import { registerTrait, unregisterTrait, updateTraitState, recordTransition } from '../chunk-XL7WB2O5.js';
12
11
  import '../chunk-2XXSUIOK.js';
12
+ import { registerTrait, unregisterTrait, updateTraitState, recordTransition } from '../chunk-XL7WB2O5.js';
13
13
  import '../chunk-K2D5D3WK.js';
14
14
  import '../chunk-PKBMQBKP.js';
15
15
  import { createContext, useMemo, useContext, useState, useRef, useEffect, useCallback } from 'react';
@@ -0,0 +1,10 @@
1
+ /**
2
+ * OrbitalRuntime Types
3
+ *
4
+ * Re-exports IR types from @almadar/core.
5
+ * This ensures runtime uses the same types as the compiler.
6
+ *
7
+ * @packageDocumentation
8
+ */
9
+ export type { TransitionFrom, ResolvedField, ResolvedEntity, ResolvedEntityBinding, ResolvedTraitState, ResolvedTraitEvent, ResolvedTraitTransition, ResolvedTraitGuard, ResolvedTraitTick, ResolvedTraitListener, ResolvedTraitDataEntity, ResolvedTraitUIBinding, ResolvedTrait, ResolvedTraitBinding, ResolvedPattern, ResolvedSectionEvent, ResolvedSection, ResolvedNavigation, ResolvedPage, ResolvedIR, } from '@almadar/core';
10
+ export { createEmptyResolvedTrait, createEmptyResolvedPage, createResolvedField, inferTsType, isResolvedIR, } from '@almadar/core';
@@ -0,0 +1,71 @@
1
+ /**
2
+ * SlotsContext - React state-based UI slot management
3
+ *
4
+ * Replaces the UIEnvironment observable store with plain React state.
5
+ * No stacking logic, no priority system, no source tracking for arbitration.
6
+ *
7
+ * A transition's effects produce the COMPLETE content for each slot.
8
+ * The runtime collects all render-ui effects from a transition, groups by slot,
9
+ * and sets each slot's patterns array in one atomic operation.
10
+ *
11
+ * @packageDocumentation
12
+ */
13
+ import React from 'react';
14
+ import type { PatternConfig } from '@almadar/core';
15
+ import type { ResolvedTrait } from '@almadar/core';
16
+ /** A single pattern entry in a slot */
17
+ export interface SlotPatternEntry {
18
+ pattern: PatternConfig;
19
+ props: Record<string, unknown>;
20
+ }
21
+ /**
22
+ * Source metadata for a rendered slot.
23
+ * Used by the Slot Inspector to show debug info.
24
+ */
25
+ export interface SlotSource {
26
+ trait: string;
27
+ state: string;
28
+ transition: string;
29
+ effects?: unknown[];
30
+ /** Full trait definition for inspector */
31
+ traitDefinition?: ResolvedTrait;
32
+ }
33
+ /** Full state of a single slot */
34
+ export interface SlotState {
35
+ patterns: SlotPatternEntry[];
36
+ source?: SlotSource;
37
+ }
38
+ /** All slots state */
39
+ export type SlotsState = Record<string, SlotState>;
40
+ /** Mutation functions for slots (stable references, won't trigger re-renders) */
41
+ export interface SlotsActions {
42
+ /** Set all patterns for a slot atomically (replaces previous content) */
43
+ setSlotPatterns: (slot: string, patterns: SlotPatternEntry[], source?: SlotSource) => void;
44
+ /** Clear a single slot */
45
+ clearSlot: (slot: string) => void;
46
+ /** Clear all slots */
47
+ clearAllSlots: () => void;
48
+ }
49
+ export interface SlotsProviderProps {
50
+ children: React.ReactNode;
51
+ }
52
+ /**
53
+ * SlotsProvider - Manages UI slot state via React useState.
54
+ *
55
+ * Replaces UIEnvironmentProvider. No observable store, no stacking logic.
56
+ * Slots are set atomically per transition — React diffs and re-renders.
57
+ */
58
+ export declare function SlotsProvider({ children }: SlotsProviderProps): React.ReactElement;
59
+ /**
60
+ * Get the full slots state. Triggers re-render on ANY slot change.
61
+ * Prefer useSlotContent(name) for individual slot subscriptions.
62
+ */
63
+ export declare function useSlots(): SlotsState;
64
+ /**
65
+ * Get content for a specific slot. Returns null if slot is empty.
66
+ */
67
+ export declare function useSlotContent(slotName: string): SlotState | null;
68
+ /**
69
+ * Get slot mutation actions. Stable reference — never triggers re-renders.
70
+ */
71
+ export declare function useSlotsActions(): SlotsActions;
@@ -0,0 +1,45 @@
1
+ /**
2
+ * useResolvedSchema Hook
3
+ *
4
+ * Resolves OrbitalSchema to IR for the OrbitalRuntime.
5
+ * Uses the shared resolver to ensure consistency with the compiler.
6
+ *
7
+ * TRAIT-DRIVEN ARCHITECTURE:
8
+ * - Pages have traits, NOT sections
9
+ * - UI is produced by trait effects (render_ui)
10
+ * - No backwards compatibility with legacy formats
11
+ *
12
+ * @packageDocumentation
13
+ */
14
+ import type { OrbitalSchema } from '@almadar/core';
15
+ import type { ResolvedIR, ResolvedPage, ResolvedTrait, ResolvedEntity, ResolvedTraitBinding } from './types';
16
+ export interface ResolvedSchemaResult {
17
+ /** The resolved page (or undefined if not found) */
18
+ page: ResolvedPage | undefined;
19
+ /** Trait bindings for this page */
20
+ traits: ResolvedTraitBinding[];
21
+ /** Entities used by this page */
22
+ entities: Map<string, ResolvedEntity>;
23
+ /** All entities from schema */
24
+ allEntities: Map<string, ResolvedEntity>;
25
+ /** All resolved traits */
26
+ allTraits: Map<string, ResolvedTrait>;
27
+ /** Loading state */
28
+ loading: boolean;
29
+ /** Error message if resolution failed */
30
+ error: string | null;
31
+ /** Full IR (for debugging) */
32
+ ir: ResolvedIR | null;
33
+ }
34
+ /**
35
+ * Hook to resolve an OrbitalSchema to IR.
36
+ *
37
+ * @param schema - The OrbitalSchema to resolve
38
+ * @param pageName - Optional page name (defaults to first page or initial page)
39
+ * @returns Resolved schema data including page, traits, and entities
40
+ */
41
+ export declare function useResolvedSchema(schema: OrbitalSchema | null | undefined, pageName?: string): ResolvedSchemaResult;
42
+ /**
43
+ * Clear the schema resolution cache
44
+ */
45
+ export declare function clearSchemaCache(): void;
@@ -0,0 +1,48 @@
1
+ /**
2
+ * useTraitStateMachine Hook
3
+ *
4
+ * Manages trait state machines with event-driven transitions.
5
+ * Subscribes to eventBus events and executes effects when transitions occur.
6
+ *
7
+ * CONSOLIDATED RUNTIME:
8
+ * - Uses StateMachineManager from @almadar/runtime for state management
9
+ * - Uses the same state machine logic as the server runtime (OrbitalServerRuntime)
10
+ * - Ensures consistent behavior between client preview and server execution
11
+ *
12
+ * SLOT MANAGEMENT:
13
+ * - Collects all render-ui effects from a transition, groups by slot
14
+ * - Sets each slot's patterns array atomically via SlotsActions
15
+ * - No stacking logic, no priority system — transition produces complete slot content
16
+ *
17
+ * @packageDocumentation
18
+ */
19
+ import { type TraitState } from '@almadar/runtime';
20
+ import type { ResolvedTraitBinding } from './types';
21
+ import type { SlotsActions } from './ui/SlotsContext';
22
+ export type { TraitState };
23
+ export interface TraitStateMachineResult {
24
+ /** Current state for each trait */
25
+ traitStates: Map<string, TraitState>;
26
+ /** Send an event to trigger a transition */
27
+ sendEvent: (eventKey: string, payload?: Record<string, unknown>) => void;
28
+ /** Get current state for a specific trait */
29
+ getTraitState: (traitName: string) => TraitState | undefined;
30
+ /** Check if a trait can handle an event from its current state */
31
+ canHandleEvent: (traitName: string, eventKey: string) => boolean;
32
+ }
33
+ export interface UseTraitStateMachineOptions {
34
+ /** Callback invoked after each event is processed (for server forwarding) */
35
+ onEventProcessed?: (eventKey: string, payload?: Record<string, unknown>) => void;
36
+ /** Router navigate function for navigate effects */
37
+ navigate?: (path: string, params?: Record<string, unknown>) => void;
38
+ /** Notification function for notify effects */
39
+ notify?: (message: string, type?: 'success' | 'error' | 'warning' | 'info') => void;
40
+ }
41
+ /**
42
+ * useTraitStateMachine - Manages state machines for multiple traits
43
+ *
44
+ * Uses the shared StateMachineManager for consistent behavior with server runtime.
45
+ * Collects render-ui effects per transition and sets slot content atomically.
46
+ */
47
+ export declare function useTraitStateMachine(traitBindings: ResolvedTraitBinding[], slotsActions: SlotsActions, options?: UseTraitStateMachineOptions): TraitStateMachineResult;
48
+ export default useTraitStateMachine;
@@ -0,0 +1,29 @@
1
+ /**
2
+ * Unified Design System Generator
3
+ *
4
+ * Generates a complete client-specific design system from an .orb schema:
5
+ * 1. Generates custom theme CSS
6
+ * 2. Suggests domain-specific components
7
+ * 3. Generates component stubs
8
+ * 4. Builds Storybook documentation
9
+ * 5. Exports static design system package
10
+ */
11
+ interface GeneratorOptions {
12
+ schemaPath: string;
13
+ outputDir: string;
14
+ clientName?: string;
15
+ buildStorybook?: boolean;
16
+ generateComponents?: boolean;
17
+ clientOnly?: boolean;
18
+ }
19
+ interface GeneratorResult {
20
+ themePath: string;
21
+ suggestedComponents: number;
22
+ generatedComponents: number;
23
+ storybookPath?: string;
24
+ }
25
+ /**
26
+ * Main generator function
27
+ */
28
+ export declare function generateDesignSystem(options: GeneratorOptions): Promise<GeneratorResult>;
29
+ export {};
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Theme Generator from OrbitalSchema
3
+ *
4
+ * Analyzes an .orb schema file and generates a client-specific theme CSS file.
5
+ * The theme is derived from the domain, entity names, and any explicit style hints.
6
+ */
7
+ /**
8
+ * Main function to generate theme from schema
9
+ */
10
+ export declare function generateThemeFromSchema(schemaPath: string, outputPath?: string): string;
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env npx tsx
2
+ /**
3
+ * Design System Generator
4
+ *
5
+ * Reads a config file from a project folder and outputs a customized
6
+ * design system to that project.
7
+ *
8
+ * Usage:
9
+ * npx tsx generate.ts --config <path-to-config>
10
+ * npm run generate -- --config ../../projects/winning-11/design-system.config.ts
11
+ */
12
+ export {};
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Component Suggester
3
+ *
4
+ * Analyzes an .orb schema and suggests domain-specific components
5
+ * that should be added to the design system for this client.
6
+ */
7
+ interface ComponentSuggestion {
8
+ name: string;
9
+ description: string;
10
+ category: 'atoms' | 'molecules' | 'organisms' | 'templates';
11
+ props: Array<{
12
+ name: string;
13
+ type: string;
14
+ description: string;
15
+ }>;
16
+ reasoning: string;
17
+ priority: 'high' | 'medium' | 'low';
18
+ codeSketch: string;
19
+ }
20
+ /**
21
+ * Suggest components based on schema analysis
22
+ */
23
+ export declare function suggestComponents(schemaPath: string): {
24
+ domains: string[];
25
+ suggestions: ComponentSuggestion[];
26
+ };
27
+ /**
28
+ * Generate component stubs from suggestions
29
+ */
30
+ export declare function generateComponentStubs(suggestions: ComponentSuggestion[], outputDir: string): void;
31
+ export {};
@@ -0,0 +1,129 @@
1
+ /**
2
+ * Design System Generator Types
3
+ *
4
+ * Input configuration for generating a customized design system
5
+ * that gets output to a project folder.
6
+ */
7
+ export interface DesignSystemConfig {
8
+ /** Project/client name (e.g., "winning-11") */
9
+ projectName: string;
10
+ /** Output directory for the generated design system */
11
+ outputDir: string;
12
+ /** Theme configuration */
13
+ theme: ThemeConfig;
14
+ /** Custom components not in the standard library */
15
+ customComponents?: CustomComponentConfig[];
16
+ /** Which standard components to include (default: all) */
17
+ includeComponents?: ComponentFilter;
18
+ /** Storybook configuration */
19
+ storybook?: StorybookConfig;
20
+ }
21
+ export interface ThemeConfig {
22
+ /** Theme name (used in data-design-theme attribute) */
23
+ name: string;
24
+ /** Theme display name for documentation */
25
+ displayName?: string;
26
+ /** Design metaphor/style description */
27
+ metaphor?: string;
28
+ /** Color palette */
29
+ colors: {
30
+ primary: string;
31
+ primaryHover?: string;
32
+ primaryForeground?: string;
33
+ secondary: string;
34
+ secondaryHover?: string;
35
+ secondaryForeground?: string;
36
+ accent: string;
37
+ accentForeground?: string;
38
+ muted: string;
39
+ mutedForeground?: string;
40
+ background: string;
41
+ foreground: string;
42
+ card?: string;
43
+ cardForeground?: string;
44
+ border: string;
45
+ input?: string;
46
+ ring?: string;
47
+ /** Semantic colors */
48
+ success?: string;
49
+ warning?: string;
50
+ error?: string;
51
+ info?: string;
52
+ /** Custom domain-specific colors */
53
+ custom?: Record<string, string>;
54
+ };
55
+ /** Shadow style preset or custom shadows */
56
+ shadows?: 'soft-organic' | 'minimal' | 'corporate' | 'playful' | 'dramatic' | 'soft' | ShadowConfig;
57
+ /** Border radius preset or custom radii */
58
+ radius?: 'organic' | 'gentle' | 'sharp' | 'rounded' | 'friendly' | RadiusConfig;
59
+ /** Typography overrides */
60
+ typography?: {
61
+ fontFamily?: string;
62
+ fontWeightNormal?: number;
63
+ fontWeightMedium?: number;
64
+ fontWeightBold?: number;
65
+ };
66
+ /** Dark mode variant */
67
+ darkMode?: Partial<ThemeConfig['colors']>;
68
+ }
69
+ export interface ShadowConfig {
70
+ main: string;
71
+ sm: string;
72
+ lg: string;
73
+ hover: string;
74
+ inner?: string;
75
+ active?: string;
76
+ }
77
+ export interface RadiusConfig {
78
+ sm: string;
79
+ md: string;
80
+ lg: string;
81
+ xl: string;
82
+ }
83
+ export interface CustomComponentConfig {
84
+ /** Component name (PascalCase) */
85
+ name: string;
86
+ /** Component description */
87
+ description: string;
88
+ /** Category in the component library */
89
+ category: 'atoms' | 'molecules' | 'organisms' | 'templates';
90
+ /** Component props */
91
+ props: ComponentProp[];
92
+ /** Why this component is needed */
93
+ reasoning?: string;
94
+ /** Priority for implementation */
95
+ priority?: 'high' | 'medium' | 'low';
96
+ /** Optional implementation code */
97
+ implementation?: string;
98
+ /** Optional Storybook stories */
99
+ stories?: string;
100
+ }
101
+ export interface ComponentProp {
102
+ name: string;
103
+ type: string;
104
+ description: string;
105
+ required?: boolean;
106
+ defaultValue?: string;
107
+ }
108
+ export interface ComponentFilter {
109
+ /** Include all components (default: true) */
110
+ all?: boolean;
111
+ /** Specific categories to include */
112
+ categories?: ('atoms' | 'molecules' | 'organisms' | 'templates')[];
113
+ /** Specific components to include (by name) */
114
+ include?: string[];
115
+ /** Specific components to exclude (by name) */
116
+ exclude?: string[];
117
+ }
118
+ export interface StorybookConfig {
119
+ /** Build Storybook (default: true) */
120
+ build?: boolean;
121
+ /** Include Storybook source in output (default: true) */
122
+ includeSource?: boolean;
123
+ /** Custom Storybook title */
124
+ title?: string;
125
+ }
126
+ /**
127
+ * Example configuration for Winning-11 (Garden theme)
128
+ */
129
+ export declare const WINNING_11_CONFIG: DesignSystemConfig;
@@ -0,0 +1,99 @@
1
+ /**
2
+ * Entity Store
3
+ *
4
+ * Simple module-level store for runtime entities.
5
+ * No providers needed - hooks import and use directly.
6
+ *
7
+ * NOTE: Mutations create new Map instances to trigger React rerenders
8
+ * when using useSyncExternalStore.
9
+ */
10
+ import { type EntityFilterValue, type FilterOperator, type EntityFilters, applyFilters, createFilter } from './filtering';
11
+ export type { EntityFilterValue, FilterOperator, EntityFilters };
12
+ export { applyFilters, createFilter };
13
+ export interface Entity {
14
+ id: string;
15
+ type: string;
16
+ [key: string]: unknown;
17
+ }
18
+ type Listener = () => void;
19
+ /**
20
+ * Subscribe to store changes
21
+ */
22
+ export declare function subscribe(listener: Listener): () => void;
23
+ /**
24
+ * Get all entities
25
+ */
26
+ export declare function getEntities(): Map<string, Entity>;
27
+ /**
28
+ * Get entity by ID
29
+ */
30
+ export declare function getEntity(id: string): Entity | undefined;
31
+ /**
32
+ * Get entities by type
33
+ */
34
+ export declare function getByType(type: string | string[]): Entity[];
35
+ /**
36
+ * Get all entities as array
37
+ */
38
+ export declare function getAllEntities(): Entity[];
39
+ /**
40
+ * Get singleton entity by type (first of that type)
41
+ */
42
+ export declare function getSingleton(type: string): Entity | undefined;
43
+ /**
44
+ * Spawn a new entity
45
+ */
46
+ export declare function spawnEntity(config: {
47
+ type: string;
48
+ id?: string;
49
+ [key: string]: unknown;
50
+ }): string;
51
+ /**
52
+ * Update an entity
53
+ */
54
+ export declare function updateEntity(id: string, updates: Partial<Entity>): void;
55
+ /**
56
+ * Update singleton entity by type
57
+ */
58
+ export declare function updateSingleton(type: string, updates: Partial<Entity>): void;
59
+ /**
60
+ * Remove an entity
61
+ */
62
+ export declare function removeEntity(id: string): void;
63
+ /**
64
+ * Clear all entities
65
+ */
66
+ export declare function clearEntities(): void;
67
+ /**
68
+ * Set a filter for an entity type
69
+ * @param entityType - The entity type to filter (e.g., "Player", "Enemy")
70
+ * @param field - The filter key (e.g., 'status' or 'date_from')
71
+ * @param value - The filter value
72
+ * @param operator - The comparison operator
73
+ * @param targetField - The actual record field to compare (defaults to field)
74
+ */
75
+ export declare function setFilter(entityType: string, field: string, value: unknown, operator?: FilterOperator, targetField?: string): void;
76
+ /**
77
+ * Clear a specific filter
78
+ */
79
+ export declare function clearFilter(entityType: string, field: string): void;
80
+ /**
81
+ * Clear all filters for an entity type
82
+ */
83
+ export declare function clearAllFilters(entityType: string): void;
84
+ /**
85
+ * Get active filters for an entity type
86
+ */
87
+ export declare function getFilters(entityType: string): EntityFilters;
88
+ /**
89
+ * Get entities by type with optional filtering
90
+ */
91
+ export declare function getByTypeFiltered(type: string | string[]): Entity[];
92
+ /**
93
+ * Get snapshot for React useSyncExternalStore
94
+ */
95
+ export declare function getSnapshot(): Map<string, Entity>;
96
+ /**
97
+ * Get filter snapshot for React useSyncExternalStore
98
+ */
99
+ export declare function getFilterSnapshot(): Map<string, EntityFilters>;
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Entity Filtering Utilities
3
+ *
4
+ * Provides filter types and utility functions for filtering entity records.
5
+ * Used by EntityStore and can be imported by runtime preview.
6
+ */
7
+ /** Filter value for a single field (entity filtering) */
8
+ export interface EntityFilterValue {
9
+ /** The field key (may include suffix like _from, _to for date ranges) */
10
+ field: string;
11
+ /** The actual record field to compare against (defaults to field if not specified) */
12
+ targetField?: string;
13
+ value: unknown;
14
+ /** Comparison operator for filtering
15
+ * - eq: exact match (default)
16
+ * - contains: substring match for strings
17
+ * - in: value is in array
18
+ * - date_eq: same date (ignoring time)
19
+ * - date_gte: on or after date
20
+ * - date_lte: on or before date
21
+ */
22
+ operator?: FilterOperator;
23
+ }
24
+ /** Operator type for filter */
25
+ export type FilterOperator = 'eq' | 'contains' | 'in' | 'date_eq' | 'date_gte' | 'date_lte' | 'search';
26
+ /** Filter state for an entity - Map of field key to filter value */
27
+ export type EntityFilters = Map<string, EntityFilterValue>;
28
+ /** Record type that can be filtered */
29
+ export interface FilterableRecord {
30
+ id: string;
31
+ [key: string]: unknown;
32
+ }
33
+ /**
34
+ * Extract date part from ISO string or Date object.
35
+ * Returns format: "YYYY-MM-DD"
36
+ */
37
+ export declare function getDateString(value: unknown): string | null;
38
+ /**
39
+ * Apply a single filter to check if a record matches.
40
+ * Returns true if the record passes the filter.
41
+ */
42
+ export declare function matchesFilter(record: FilterableRecord, filter: EntityFilterValue): boolean;
43
+ /**
44
+ * Apply all filters to a list of records.
45
+ * Returns only records that match ALL filters.
46
+ */
47
+ export declare function applyFilters<T extends FilterableRecord>(records: T[], entityFilters: EntityFilters): T[];
48
+ /**
49
+ * Create a filter value with proper defaults.
50
+ */
51
+ export declare function createFilter(field: string, value: unknown, operator?: FilterOperator, targetField?: string): EntityFilterValue;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Stores
3
+ *
4
+ * Module-level state management for entities and filtering.
5
+ */
6
+ export * from './filtering';
7
+ export * from './entityStore';
@@ -0,0 +1,2 @@
1
+ declare const _default: import("tsup").Options | import("tsup").Options[] | ((overrideOptions: import("tsup").Options) => import("tsup").Options | import("tsup").Options[] | Promise<import("tsup").Options | import("tsup").Options[]>);
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vite").UserConfig;
2
+ export default _default;