@almadar/std 3.1.0 → 3.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (256) hide show
  1. package/behaviors/exports/atoms/std-async.orb +2 -1
  2. package/behaviors/exports/atoms/std-browse.orb +2 -1
  3. package/behaviors/exports/atoms/std-cache-aside.orb +2 -1
  4. package/behaviors/exports/atoms/std-circuit-breaker.orb +2 -1
  5. package/behaviors/exports/atoms/std-collision.orb +2 -1
  6. package/behaviors/exports/atoms/std-combat-log.orb +2 -1
  7. package/behaviors/exports/atoms/std-combat.orb +2 -1
  8. package/behaviors/exports/atoms/std-confirmation.orb +2 -1
  9. package/behaviors/exports/atoms/std-dialogue-box.orb +2 -1
  10. package/behaviors/exports/atoms/std-display.orb +2 -1
  11. package/behaviors/exports/atoms/std-drawer.orb +2 -1
  12. package/behaviors/exports/atoms/std-filter.orb +2 -1
  13. package/behaviors/exports/atoms/std-game-audio.orb +2 -1
  14. package/behaviors/exports/atoms/std-game-hud.orb +2 -1
  15. package/behaviors/exports/atoms/std-game-menu.orb +2 -1
  16. package/behaviors/exports/atoms/std-game-over-screen.orb +2 -1
  17. package/behaviors/exports/atoms/std-gameflow.orb +2 -1
  18. package/behaviors/exports/atoms/std-input.orb +2 -1
  19. package/behaviors/exports/atoms/std-inventory-panel.orb +2 -1
  20. package/behaviors/exports/atoms/std-isometric-canvas.orb +2 -1
  21. package/behaviors/exports/atoms/std-loading.orb +2 -1
  22. package/behaviors/exports/atoms/std-modal.orb +2 -1
  23. package/behaviors/exports/atoms/std-movement.orb +2 -1
  24. package/behaviors/exports/atoms/std-notification.orb +2 -1
  25. package/behaviors/exports/atoms/std-overworld.orb +2 -1
  26. package/behaviors/exports/atoms/std-pagination.orb +2 -1
  27. package/behaviors/exports/atoms/std-physics2d.orb +2 -1
  28. package/behaviors/exports/atoms/std-platformer-canvas.orb +2 -1
  29. package/behaviors/exports/atoms/std-quest.orb +2 -1
  30. package/behaviors/exports/atoms/std-rate-limiter.orb +2 -1
  31. package/behaviors/exports/atoms/std-score-board.orb +2 -1
  32. package/behaviors/exports/atoms/std-score.orb +2 -1
  33. package/behaviors/exports/atoms/std-search.orb +2 -1
  34. package/behaviors/exports/atoms/std-selection.orb +2 -1
  35. package/behaviors/exports/atoms/std-simulation-canvas.orb +2 -1
  36. package/behaviors/exports/atoms/std-sort.orb +2 -1
  37. package/behaviors/exports/atoms/std-sprite.orb +2 -1
  38. package/behaviors/exports/atoms/std-tabs.orb +2 -1
  39. package/behaviors/exports/atoms/std-timer.orb +2 -1
  40. package/behaviors/exports/atoms/std-undo.orb +2 -1
  41. package/behaviors/exports/atoms/std-wizard.orb +2 -1
  42. package/behaviors/exports/molecules/std-builder-game.orb +2 -1
  43. package/behaviors/exports/molecules/std-cart.orb +2 -1
  44. package/behaviors/exports/molecules/std-classifier-game.orb +2 -1
  45. package/behaviors/exports/molecules/std-debugger-game.orb +2 -1
  46. package/behaviors/exports/molecules/std-detail.orb +2 -1
  47. package/behaviors/exports/molecules/std-event-handler-game.orb +2 -1
  48. package/behaviors/exports/molecules/std-geospatial.orb +2 -1
  49. package/behaviors/exports/molecules/std-inventory.orb +2 -1
  50. package/behaviors/exports/molecules/std-list.orb +2 -1
  51. package/behaviors/exports/molecules/std-messaging.orb +2 -1
  52. package/behaviors/exports/molecules/std-negotiator-game.orb +2 -1
  53. package/behaviors/exports/molecules/std-platformer-game.orb +2 -1
  54. package/behaviors/exports/molecules/std-puzzle-game.orb +2 -1
  55. package/behaviors/exports/molecules/std-sequencer-game.orb +2 -1
  56. package/behaviors/exports/molecules/std-simulator-game.orb +2 -1
  57. package/behaviors/exports/molecules/std-turn-based-battle.orb +2 -1
  58. package/behaviors/exports/organisms/std-api-gateway.orb +2 -1
  59. package/behaviors/exports/organisms/std-arcade-game.orb +2 -1
  60. package/behaviors/exports/organisms/std-booking-system.orb +2 -1
  61. package/behaviors/exports/organisms/std-cicd-pipeline.orb +2 -1
  62. package/behaviors/exports/organisms/std-cms.orb +2 -1
  63. package/behaviors/exports/organisms/std-coding-academy.orb +2 -1
  64. package/behaviors/exports/organisms/std-crm.orb +2 -1
  65. package/behaviors/exports/organisms/std-devops-dashboard.orb +2 -1
  66. package/behaviors/exports/organisms/std-ecommerce.orb +2 -1
  67. package/behaviors/exports/organisms/std-finance-tracker.orb +2 -1
  68. package/behaviors/exports/organisms/std-healthcare.orb +2 -1
  69. package/behaviors/exports/organisms/std-helpdesk.orb +2 -1
  70. package/behaviors/exports/organisms/std-hr-portal.orb +2 -1
  71. package/behaviors/exports/organisms/std-iot-dashboard.orb +2 -1
  72. package/behaviors/exports/organisms/std-lms.orb +2 -1
  73. package/behaviors/exports/organisms/std-logic-training.orb +2 -1
  74. package/behaviors/exports/organisms/std-platformer-app.orb +2 -1
  75. package/behaviors/exports/organisms/std-project-manager.orb +2 -1
  76. package/behaviors/exports/organisms/std-puzzle-app.orb +2 -1
  77. package/behaviors/exports/organisms/std-realtime-chat.orb +2 -1
  78. package/behaviors/exports/organisms/std-rpg-game.orb +2 -1
  79. package/behaviors/exports/organisms/std-social-feed.orb +2 -1
  80. package/behaviors/exports/organisms/std-stem-lab.orb +2 -1
  81. package/behaviors/exports/organisms/std-strategy-game.orb +2 -1
  82. package/behaviors/exports/organisms/std-trading-dashboard.orb +2 -1
  83. package/dist/behaviors/exports/atoms/std-async.orb +421 -0
  84. package/dist/behaviors/exports/atoms/std-browse.orb +174 -0
  85. package/dist/behaviors/exports/atoms/std-cache-aside.orb +882 -0
  86. package/dist/behaviors/exports/atoms/std-circuit-breaker.orb +502 -0
  87. package/dist/behaviors/exports/atoms/std-collision.orb +617 -0
  88. package/dist/behaviors/exports/atoms/std-combat-log.orb +146 -0
  89. package/dist/behaviors/exports/atoms/std-combat.orb +411 -0
  90. package/dist/behaviors/exports/atoms/std-confirmation.orb +283 -0
  91. package/dist/behaviors/exports/atoms/std-dialogue-box.orb +239 -0
  92. package/dist/behaviors/exports/atoms/std-display.orb +843 -0
  93. package/dist/behaviors/exports/atoms/std-drawer.orb +317 -0
  94. package/dist/behaviors/exports/atoms/std-filter.orb +443 -0
  95. package/dist/behaviors/exports/atoms/std-game-audio.orb +114 -0
  96. package/dist/behaviors/exports/atoms/std-game-hud.orb +152 -0
  97. package/dist/behaviors/exports/atoms/std-game-menu.orb +212 -0
  98. package/dist/behaviors/exports/atoms/std-game-over-screen.orb +196 -0
  99. package/dist/behaviors/exports/atoms/std-gameflow.orb +319 -0
  100. package/dist/behaviors/exports/atoms/std-input.orb +630 -0
  101. package/dist/behaviors/exports/atoms/std-inventory-panel.orb +256 -0
  102. package/dist/behaviors/exports/atoms/std-isometric-canvas.orb +632 -0
  103. package/dist/behaviors/exports/atoms/std-loading.orb +512 -0
  104. package/dist/behaviors/exports/atoms/std-modal.orb +271 -0
  105. package/dist/behaviors/exports/atoms/std-movement.orb +1038 -0
  106. package/dist/behaviors/exports/atoms/std-notification.orb +419 -0
  107. package/dist/behaviors/exports/atoms/std-overworld.orb +484 -0
  108. package/dist/behaviors/exports/atoms/std-pagination.orb +332 -0
  109. package/dist/behaviors/exports/atoms/std-physics2d.orb +420 -0
  110. package/dist/behaviors/exports/atoms/std-platformer-canvas.orb +258 -0
  111. package/dist/behaviors/exports/atoms/std-quest.orb +981 -0
  112. package/dist/behaviors/exports/atoms/std-rate-limiter.orb +639 -0
  113. package/dist/behaviors/exports/atoms/std-score-board.orb +239 -0
  114. package/dist/behaviors/exports/atoms/std-score.orb +467 -0
  115. package/dist/behaviors/exports/atoms/std-search.orb +374 -0
  116. package/dist/behaviors/exports/atoms/std-selection.orb +760 -0
  117. package/dist/behaviors/exports/atoms/std-simulation-canvas.orb +184 -0
  118. package/dist/behaviors/exports/atoms/std-sort.orb +579 -0
  119. package/dist/behaviors/exports/atoms/std-sprite.orb +157 -0
  120. package/dist/behaviors/exports/atoms/std-tabs.orb +275 -0
  121. package/dist/behaviors/exports/atoms/std-timer.orb +1031 -0
  122. package/dist/behaviors/exports/atoms/std-undo.orb +695 -0
  123. package/dist/behaviors/exports/atoms/std-wizard.orb +667 -0
  124. package/dist/behaviors/exports/molecules/std-builder-game.orb +184 -0
  125. package/dist/behaviors/exports/molecules/std-cart.orb +592 -0
  126. package/dist/behaviors/exports/molecules/std-classifier-game.orb +184 -0
  127. package/dist/behaviors/exports/molecules/std-debugger-game.orb +184 -0
  128. package/dist/behaviors/exports/molecules/std-detail.orb +590 -0
  129. package/dist/behaviors/exports/molecules/std-event-handler-game.orb +184 -0
  130. package/dist/behaviors/exports/molecules/std-geospatial.orb +650 -0
  131. package/dist/behaviors/exports/molecules/std-inventory.orb +854 -0
  132. package/dist/behaviors/exports/molecules/std-list.orb +955 -0
  133. package/dist/behaviors/exports/molecules/std-messaging.orb +586 -0
  134. package/dist/behaviors/exports/molecules/std-negotiator-game.orb +184 -0
  135. package/dist/behaviors/exports/molecules/std-platformer-game.orb +497 -0
  136. package/dist/behaviors/exports/molecules/std-puzzle-game.orb +528 -0
  137. package/dist/behaviors/exports/molecules/std-sequencer-game.orb +184 -0
  138. package/dist/behaviors/exports/molecules/std-simulator-game.orb +184 -0
  139. package/dist/behaviors/exports/molecules/std-turn-based-battle.orb +444 -0
  140. package/dist/behaviors/exports/organisms/std-api-gateway.orb +2297 -0
  141. package/dist/behaviors/exports/organisms/std-arcade-game.orb +834 -0
  142. package/dist/behaviors/exports/organisms/std-booking-system.orb +3978 -0
  143. package/dist/behaviors/exports/organisms/std-cicd-pipeline.orb +2215 -0
  144. package/dist/behaviors/exports/organisms/std-cms.orb +2645 -0
  145. package/dist/behaviors/exports/organisms/std-coding-academy.orb +1395 -0
  146. package/dist/behaviors/exports/organisms/std-crm.orb +3542 -0
  147. package/dist/behaviors/exports/organisms/std-devops-dashboard.orb +3135 -0
  148. package/dist/behaviors/exports/organisms/std-ecommerce.orb +3744 -0
  149. package/dist/behaviors/exports/organisms/std-finance-tracker.orb +2386 -0
  150. package/dist/behaviors/exports/organisms/std-healthcare.orb +4680 -0
  151. package/dist/behaviors/exports/organisms/std-helpdesk.orb +2565 -0
  152. package/dist/behaviors/exports/organisms/std-hr-portal.orb +4030 -0
  153. package/dist/behaviors/exports/organisms/std-iot-dashboard.orb +2298 -0
  154. package/dist/behaviors/exports/organisms/std-lms.orb +2855 -0
  155. package/dist/behaviors/exports/organisms/std-logic-training.orb +599 -0
  156. package/dist/behaviors/exports/organisms/std-platformer-app.orb +1570 -0
  157. package/dist/behaviors/exports/organisms/std-project-manager.orb +3022 -0
  158. package/dist/behaviors/exports/organisms/std-puzzle-app.orb +744 -0
  159. package/dist/behaviors/exports/organisms/std-realtime-chat.orb +2381 -0
  160. package/dist/behaviors/exports/organisms/std-rpg-game.orb +2805 -0
  161. package/dist/behaviors/exports/organisms/std-social-feed.orb +1222 -0
  162. package/dist/behaviors/exports/organisms/std-stem-lab.orb +1211 -0
  163. package/dist/behaviors/exports/organisms/std-strategy-game.orb +1762 -0
  164. package/dist/behaviors/exports/organisms/std-trading-dashboard.orb +2218 -0
  165. package/dist/behaviors/exports-reader.d.ts +2 -0
  166. package/dist/behaviors/exports-reader.js +5 -3
  167. package/dist/behaviors/exports-reader.js.map +1 -1
  168. package/dist/behaviors/index.js +5 -3
  169. package/dist/behaviors/index.js.map +1 -1
  170. package/dist/exports/atoms/std-async.orb +421 -0
  171. package/dist/exports/atoms/std-browse.orb +174 -0
  172. package/dist/exports/atoms/std-cache-aside.orb +882 -0
  173. package/dist/exports/atoms/std-circuit-breaker.orb +502 -0
  174. package/dist/exports/atoms/std-collision.orb +617 -0
  175. package/dist/exports/atoms/std-combat-log.orb +146 -0
  176. package/dist/exports/atoms/std-combat.orb +411 -0
  177. package/dist/exports/atoms/std-confirmation.orb +283 -0
  178. package/dist/exports/atoms/std-dialogue-box.orb +239 -0
  179. package/dist/exports/atoms/std-display.orb +843 -0
  180. package/dist/exports/atoms/std-drawer.orb +317 -0
  181. package/dist/exports/atoms/std-filter.orb +443 -0
  182. package/dist/exports/atoms/std-game-audio.orb +114 -0
  183. package/dist/exports/atoms/std-game-hud.orb +152 -0
  184. package/dist/exports/atoms/std-game-menu.orb +212 -0
  185. package/dist/exports/atoms/std-game-over-screen.orb +196 -0
  186. package/dist/exports/atoms/std-gameflow.orb +319 -0
  187. package/dist/exports/atoms/std-input.orb +630 -0
  188. package/dist/exports/atoms/std-inventory-panel.orb +256 -0
  189. package/dist/exports/atoms/std-isometric-canvas.orb +632 -0
  190. package/dist/exports/atoms/std-loading.orb +512 -0
  191. package/dist/exports/atoms/std-modal.orb +271 -0
  192. package/dist/exports/atoms/std-movement.orb +1038 -0
  193. package/dist/exports/atoms/std-notification.orb +419 -0
  194. package/dist/exports/atoms/std-overworld.orb +484 -0
  195. package/dist/exports/atoms/std-pagination.orb +332 -0
  196. package/dist/exports/atoms/std-physics2d.orb +420 -0
  197. package/dist/exports/atoms/std-platformer-canvas.orb +258 -0
  198. package/dist/exports/atoms/std-quest.orb +981 -0
  199. package/dist/exports/atoms/std-rate-limiter.orb +639 -0
  200. package/dist/exports/atoms/std-score-board.orb +239 -0
  201. package/dist/exports/atoms/std-score.orb +467 -0
  202. package/dist/exports/atoms/std-search.orb +374 -0
  203. package/dist/exports/atoms/std-selection.orb +760 -0
  204. package/dist/exports/atoms/std-simulation-canvas.orb +184 -0
  205. package/dist/exports/atoms/std-sort.orb +579 -0
  206. package/dist/exports/atoms/std-sprite.orb +157 -0
  207. package/dist/exports/atoms/std-tabs.orb +275 -0
  208. package/dist/exports/atoms/std-timer.orb +1031 -0
  209. package/dist/exports/atoms/std-undo.orb +695 -0
  210. package/dist/exports/atoms/std-wizard.orb +667 -0
  211. package/dist/exports/molecules/std-builder-game.orb +184 -0
  212. package/dist/exports/molecules/std-cart.orb +592 -0
  213. package/dist/exports/molecules/std-classifier-game.orb +184 -0
  214. package/dist/exports/molecules/std-debugger-game.orb +184 -0
  215. package/dist/exports/molecules/std-detail.orb +590 -0
  216. package/dist/exports/molecules/std-event-handler-game.orb +184 -0
  217. package/dist/exports/molecules/std-geospatial.orb +650 -0
  218. package/dist/exports/molecules/std-inventory.orb +854 -0
  219. package/dist/exports/molecules/std-list.orb +955 -0
  220. package/dist/exports/molecules/std-messaging.orb +586 -0
  221. package/dist/exports/molecules/std-negotiator-game.orb +184 -0
  222. package/dist/exports/molecules/std-platformer-game.orb +497 -0
  223. package/dist/exports/molecules/std-puzzle-game.orb +528 -0
  224. package/dist/exports/molecules/std-sequencer-game.orb +184 -0
  225. package/dist/exports/molecules/std-simulator-game.orb +184 -0
  226. package/dist/exports/molecules/std-turn-based-battle.orb +444 -0
  227. package/dist/exports/organisms/std-api-gateway.orb +2297 -0
  228. package/dist/exports/organisms/std-arcade-game.orb +834 -0
  229. package/dist/exports/organisms/std-booking-system.orb +3978 -0
  230. package/dist/exports/organisms/std-cicd-pipeline.orb +2215 -0
  231. package/dist/exports/organisms/std-cms.orb +2645 -0
  232. package/dist/exports/organisms/std-coding-academy.orb +1395 -0
  233. package/dist/exports/organisms/std-crm.orb +3542 -0
  234. package/dist/exports/organisms/std-devops-dashboard.orb +3135 -0
  235. package/dist/exports/organisms/std-ecommerce.orb +3744 -0
  236. package/dist/exports/organisms/std-finance-tracker.orb +2386 -0
  237. package/dist/exports/organisms/std-healthcare.orb +4680 -0
  238. package/dist/exports/organisms/std-helpdesk.orb +2565 -0
  239. package/dist/exports/organisms/std-hr-portal.orb +4030 -0
  240. package/dist/exports/organisms/std-iot-dashboard.orb +2298 -0
  241. package/dist/exports/organisms/std-lms.orb +2855 -0
  242. package/dist/exports/organisms/std-logic-training.orb +599 -0
  243. package/dist/exports/organisms/std-platformer-app.orb +1570 -0
  244. package/dist/exports/organisms/std-project-manager.orb +3022 -0
  245. package/dist/exports/organisms/std-puzzle-app.orb +744 -0
  246. package/dist/exports/organisms/std-realtime-chat.orb +2381 -0
  247. package/dist/exports/organisms/std-rpg-game.orb +2805 -0
  248. package/dist/exports/organisms/std-social-feed.orb +1222 -0
  249. package/dist/exports/organisms/std-stem-lab.orb +1211 -0
  250. package/dist/exports/organisms/std-strategy-game.orb +1762 -0
  251. package/dist/exports/organisms/std-trading-dashboard.orb +2218 -0
  252. package/dist/index.js +5 -3
  253. package/dist/index.js.map +1 -1
  254. package/package.json +1 -1
  255. package/behaviors/exports/atoms/std-game-canvas-2d.orb +0 -135
  256. package/behaviors/exports/atoms/std-game-canvas-3d.orb +0 -224
@@ -0,0 +1,630 @@
1
+ {
2
+ "name": "ItemOrbital",
3
+ "orbitals": [
4
+ {
5
+ "name": "ItemOrbital",
6
+ "entity": {
7
+ "name": "Item",
8
+ "persistence": "runtime",
9
+ "fields": [
10
+ {
11
+ "name": "id",
12
+ "type": "string"
13
+ },
14
+ {
15
+ "name": "name",
16
+ "type": "string"
17
+ },
18
+ {
19
+ "name": "description",
20
+ "type": "string"
21
+ },
22
+ {
23
+ "name": "status",
24
+ "type": "string",
25
+ "default": "active"
26
+ },
27
+ {
28
+ "name": "createdAt",
29
+ "type": "string"
30
+ },
31
+ {
32
+ "name": "value",
33
+ "type": "string",
34
+ "default": ""
35
+ },
36
+ {
37
+ "name": "inputStatus",
38
+ "type": "string",
39
+ "default": "idle"
40
+ }
41
+ ]
42
+ },
43
+ "traits": [
44
+ {
45
+ "name": "ItemInput",
46
+ "linkedEntity": "Item",
47
+ "category": "interaction",
48
+ "stateMachine": {
49
+ "states": [
50
+ {
51
+ "name": "idle",
52
+ "isInitial": true
53
+ },
54
+ {
55
+ "name": "focused"
56
+ },
57
+ {
58
+ "name": "validating"
59
+ }
60
+ ],
61
+ "events": [
62
+ {
63
+ "key": "INIT",
64
+ "name": "Initialize"
65
+ },
66
+ {
67
+ "key": "FOCUS",
68
+ "name": "Focus"
69
+ },
70
+ {
71
+ "key": "BLUR",
72
+ "name": "Blur"
73
+ },
74
+ {
75
+ "key": "CHANGE",
76
+ "name": "Change",
77
+ "payload": [
78
+ {
79
+ "name": "value",
80
+ "type": "string",
81
+ "required": true
82
+ }
83
+ ]
84
+ },
85
+ {
86
+ "key": "VALIDATE",
87
+ "name": "Validate"
88
+ }
89
+ ],
90
+ "transitions": [
91
+ {
92
+ "from": "idle",
93
+ "to": "idle",
94
+ "event": "INIT",
95
+ "effects": [
96
+ [
97
+ "render-ui",
98
+ "main",
99
+ {
100
+ "type": "stack",
101
+ "direction": "vertical",
102
+ "gap": "lg",
103
+ "children": [
104
+ {
105
+ "type": "stack",
106
+ "direction": "horizontal",
107
+ "gap": "sm",
108
+ "align": "center",
109
+ "children": [
110
+ {
111
+ "type": "icon",
112
+ "name": "text-cursor-input",
113
+ "size": "lg"
114
+ },
115
+ {
116
+ "type": "typography",
117
+ "content": "Item",
118
+ "variant": "h2"
119
+ }
120
+ ]
121
+ },
122
+ {
123
+ "type": "divider"
124
+ },
125
+ {
126
+ "type": "stack",
127
+ "direction": "vertical",
128
+ "gap": "sm",
129
+ "children": [
130
+ {
131
+ "type": "typography",
132
+ "variant": "caption",
133
+ "content": "Item"
134
+ },
135
+ {
136
+ "type": "input",
137
+ "placeholder": "Enter item...",
138
+ "event": "CHANGE"
139
+ },
140
+ {
141
+ "type": "typography",
142
+ "variant": "caption",
143
+ "color": "muted",
144
+ "content": "@entity.value"
145
+ }
146
+ ]
147
+ }
148
+ ]
149
+ }
150
+ ]
151
+ ]
152
+ },
153
+ {
154
+ "from": "idle",
155
+ "to": "focused",
156
+ "event": "FOCUS",
157
+ "effects": [
158
+ [
159
+ "set",
160
+ "@entity.inputStatus",
161
+ "focused"
162
+ ],
163
+ [
164
+ "render-ui",
165
+ "main",
166
+ {
167
+ "type": "stack",
168
+ "direction": "vertical",
169
+ "gap": "lg",
170
+ "children": [
171
+ {
172
+ "type": "stack",
173
+ "direction": "horizontal",
174
+ "gap": "sm",
175
+ "align": "center",
176
+ "children": [
177
+ {
178
+ "type": "icon",
179
+ "name": "text-cursor-input",
180
+ "size": "lg"
181
+ },
182
+ {
183
+ "type": "typography",
184
+ "content": "Item",
185
+ "variant": "h2"
186
+ }
187
+ ]
188
+ },
189
+ {
190
+ "type": "divider"
191
+ },
192
+ {
193
+ "type": "stack",
194
+ "direction": "vertical",
195
+ "gap": "sm",
196
+ "children": [
197
+ {
198
+ "type": "typography",
199
+ "variant": "caption",
200
+ "content": "Item"
201
+ },
202
+ {
203
+ "type": "input",
204
+ "placeholder": "Enter item...",
205
+ "event": "CHANGE"
206
+ },
207
+ {
208
+ "type": "typography",
209
+ "variant": "caption",
210
+ "color": "muted",
211
+ "content": "@entity.value"
212
+ }
213
+ ]
214
+ }
215
+ ]
216
+ }
217
+ ]
218
+ ]
219
+ },
220
+ {
221
+ "from": "focused",
222
+ "to": "focused",
223
+ "event": "CHANGE",
224
+ "effects": [
225
+ [
226
+ "set",
227
+ "@entity.value",
228
+ "@payload.value"
229
+ ],
230
+ [
231
+ "render-ui",
232
+ "main",
233
+ {
234
+ "type": "stack",
235
+ "direction": "vertical",
236
+ "gap": "lg",
237
+ "children": [
238
+ {
239
+ "type": "stack",
240
+ "direction": "horizontal",
241
+ "gap": "sm",
242
+ "align": "center",
243
+ "children": [
244
+ {
245
+ "type": "icon",
246
+ "name": "text-cursor-input",
247
+ "size": "lg"
248
+ },
249
+ {
250
+ "type": "typography",
251
+ "content": "Item",
252
+ "variant": "h2"
253
+ }
254
+ ]
255
+ },
256
+ {
257
+ "type": "divider"
258
+ },
259
+ {
260
+ "type": "stack",
261
+ "direction": "vertical",
262
+ "gap": "sm",
263
+ "children": [
264
+ {
265
+ "type": "typography",
266
+ "variant": "caption",
267
+ "content": "Item"
268
+ },
269
+ {
270
+ "type": "input",
271
+ "placeholder": "Enter item...",
272
+ "event": "CHANGE"
273
+ },
274
+ {
275
+ "type": "typography",
276
+ "variant": "caption",
277
+ "color": "muted",
278
+ "content": "@entity.value"
279
+ }
280
+ ]
281
+ }
282
+ ]
283
+ }
284
+ ]
285
+ ]
286
+ },
287
+ {
288
+ "from": "focused",
289
+ "to": "idle",
290
+ "event": "BLUR",
291
+ "effects": [
292
+ [
293
+ "set",
294
+ "@entity.inputStatus",
295
+ "idle"
296
+ ],
297
+ [
298
+ "render-ui",
299
+ "main",
300
+ {
301
+ "type": "stack",
302
+ "direction": "vertical",
303
+ "gap": "lg",
304
+ "children": [
305
+ {
306
+ "type": "stack",
307
+ "direction": "horizontal",
308
+ "gap": "sm",
309
+ "align": "center",
310
+ "children": [
311
+ {
312
+ "type": "icon",
313
+ "name": "text-cursor-input",
314
+ "size": "lg"
315
+ },
316
+ {
317
+ "type": "typography",
318
+ "content": "Item",
319
+ "variant": "h2"
320
+ }
321
+ ]
322
+ },
323
+ {
324
+ "type": "divider"
325
+ },
326
+ {
327
+ "type": "stack",
328
+ "direction": "vertical",
329
+ "gap": "sm",
330
+ "children": [
331
+ {
332
+ "type": "typography",
333
+ "variant": "caption",
334
+ "content": "Item"
335
+ },
336
+ {
337
+ "type": "input",
338
+ "placeholder": "Enter item...",
339
+ "event": "CHANGE"
340
+ },
341
+ {
342
+ "type": "typography",
343
+ "variant": "caption",
344
+ "color": "muted",
345
+ "content": "@entity.value"
346
+ }
347
+ ]
348
+ }
349
+ ]
350
+ }
351
+ ]
352
+ ]
353
+ },
354
+ {
355
+ "from": "focused",
356
+ "to": "validating",
357
+ "event": "VALIDATE",
358
+ "effects": [
359
+ [
360
+ "set",
361
+ "@entity.inputStatus",
362
+ "validating"
363
+ ],
364
+ [
365
+ "render-ui",
366
+ "main",
367
+ {
368
+ "type": "stack",
369
+ "direction": "vertical",
370
+ "gap": "lg",
371
+ "children": [
372
+ {
373
+ "type": "stack",
374
+ "direction": "horizontal",
375
+ "gap": "sm",
376
+ "align": "center",
377
+ "children": [
378
+ {
379
+ "type": "icon",
380
+ "name": "text-cursor-input",
381
+ "size": "lg"
382
+ },
383
+ {
384
+ "type": "typography",
385
+ "content": "Item",
386
+ "variant": "h2"
387
+ }
388
+ ]
389
+ },
390
+ {
391
+ "type": "divider"
392
+ },
393
+ {
394
+ "type": "stack",
395
+ "direction": "vertical",
396
+ "gap": "sm",
397
+ "children": [
398
+ {
399
+ "type": "typography",
400
+ "variant": "caption",
401
+ "content": "Item"
402
+ },
403
+ {
404
+ "type": "input",
405
+ "placeholder": "Enter item...",
406
+ "event": "CHANGE"
407
+ },
408
+ {
409
+ "type": "typography",
410
+ "variant": "caption",
411
+ "color": "muted",
412
+ "content": "Validating..."
413
+ }
414
+ ]
415
+ }
416
+ ]
417
+ }
418
+ ]
419
+ ]
420
+ },
421
+ {
422
+ "from": "validating",
423
+ "to": "idle",
424
+ "event": "BLUR",
425
+ "effects": [
426
+ [
427
+ "set",
428
+ "@entity.inputStatus",
429
+ "idle"
430
+ ],
431
+ [
432
+ "render-ui",
433
+ "main",
434
+ {
435
+ "type": "stack",
436
+ "direction": "vertical",
437
+ "gap": "lg",
438
+ "children": [
439
+ {
440
+ "type": "stack",
441
+ "direction": "horizontal",
442
+ "gap": "sm",
443
+ "align": "center",
444
+ "children": [
445
+ {
446
+ "type": "icon",
447
+ "name": "text-cursor-input",
448
+ "size": "lg"
449
+ },
450
+ {
451
+ "type": "typography",
452
+ "content": "Item",
453
+ "variant": "h2"
454
+ }
455
+ ]
456
+ },
457
+ {
458
+ "type": "divider"
459
+ },
460
+ {
461
+ "type": "stack",
462
+ "direction": "vertical",
463
+ "gap": "sm",
464
+ "children": [
465
+ {
466
+ "type": "typography",
467
+ "variant": "caption",
468
+ "content": "Item"
469
+ },
470
+ {
471
+ "type": "input",
472
+ "placeholder": "Enter item...",
473
+ "event": "CHANGE"
474
+ },
475
+ {
476
+ "type": "typography",
477
+ "variant": "caption",
478
+ "color": "muted",
479
+ "content": "@entity.value"
480
+ }
481
+ ]
482
+ }
483
+ ]
484
+ }
485
+ ]
486
+ ]
487
+ },
488
+ {
489
+ "from": "focused",
490
+ "to": "focused",
491
+ "event": "INIT",
492
+ "effects": [
493
+ [
494
+ "render-ui",
495
+ "main",
496
+ {
497
+ "type": "stack",
498
+ "direction": "vertical",
499
+ "gap": "lg",
500
+ "children": [
501
+ {
502
+ "type": "stack",
503
+ "direction": "horizontal",
504
+ "gap": "sm",
505
+ "align": "center",
506
+ "children": [
507
+ {
508
+ "type": "icon",
509
+ "name": "text-cursor-input",
510
+ "size": "lg"
511
+ },
512
+ {
513
+ "type": "typography",
514
+ "content": "Item",
515
+ "variant": "h2"
516
+ }
517
+ ]
518
+ },
519
+ {
520
+ "type": "divider"
521
+ },
522
+ {
523
+ "type": "stack",
524
+ "direction": "vertical",
525
+ "gap": "sm",
526
+ "children": [
527
+ {
528
+ "type": "typography",
529
+ "variant": "caption",
530
+ "content": "Item"
531
+ },
532
+ {
533
+ "type": "input",
534
+ "placeholder": "Enter item...",
535
+ "event": "CHANGE"
536
+ },
537
+ {
538
+ "type": "typography",
539
+ "variant": "caption",
540
+ "color": "muted",
541
+ "content": "@entity.value"
542
+ }
543
+ ]
544
+ }
545
+ ]
546
+ }
547
+ ]
548
+ ]
549
+ },
550
+ {
551
+ "from": "validating",
552
+ "to": "validating",
553
+ "event": "INIT",
554
+ "effects": [
555
+ [
556
+ "render-ui",
557
+ "main",
558
+ {
559
+ "type": "stack",
560
+ "direction": "vertical",
561
+ "gap": "lg",
562
+ "children": [
563
+ {
564
+ "type": "stack",
565
+ "direction": "horizontal",
566
+ "gap": "sm",
567
+ "align": "center",
568
+ "children": [
569
+ {
570
+ "type": "icon",
571
+ "name": "text-cursor-input",
572
+ "size": "lg"
573
+ },
574
+ {
575
+ "type": "typography",
576
+ "content": "Item",
577
+ "variant": "h2"
578
+ }
579
+ ]
580
+ },
581
+ {
582
+ "type": "divider"
583
+ },
584
+ {
585
+ "type": "stack",
586
+ "direction": "vertical",
587
+ "gap": "sm",
588
+ "children": [
589
+ {
590
+ "type": "typography",
591
+ "variant": "caption",
592
+ "content": "Item"
593
+ },
594
+ {
595
+ "type": "input",
596
+ "placeholder": "Enter item...",
597
+ "event": "CHANGE"
598
+ },
599
+ {
600
+ "type": "typography",
601
+ "variant": "caption",
602
+ "color": "muted",
603
+ "content": "Validating..."
604
+ }
605
+ ]
606
+ }
607
+ ]
608
+ }
609
+ ]
610
+ ]
611
+ }
612
+ ]
613
+ }
614
+ }
615
+ ],
616
+ "pages": [
617
+ {
618
+ "name": "ItemInputPage",
619
+ "path": "/items/input",
620
+ "traits": [
621
+ {
622
+ "ref": "ItemInput"
623
+ }
624
+ ]
625
+ }
626
+ ]
627
+ }
628
+ ],
629
+ "description": "Input state management parameterized for any domain. Provides idle, focused, and validating states with change tracking. The state machine structure is fixed. The caller controls data and presentation."
630
+ }