aeon-ui-engine 1.3.1 → 1.4.0

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 (153) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/package.json +1 -1
  3. package/packages/cli/README.md +13 -1
  4. package/packages/cli/dist/bin.js +23 -5
  5. package/packages/cli/dist/chunk-5L47SLNV.js +247 -0
  6. package/packages/cli/dist/index.d.ts +17 -1
  7. package/packages/cli/dist/index.js +5 -3
  8. package/packages/cli/src/bin.ts +21 -3
  9. package/packages/cli/src/index.ts +1 -0
  10. package/packages/cli/src/migrate.ts +170 -0
  11. package/packages/core/dist/index.d.ts +35 -7
  12. package/packages/core/dist/index.js +102 -2
  13. package/packages/core/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -1
  14. package/packages/core/src/anatomy.ts +39 -3
  15. package/packages/core/src/identicon.test.ts +39 -0
  16. package/packages/core/src/identicon.ts +79 -0
  17. package/packages/core/src/index.ts +1 -0
  18. package/packages/panda/panda.config.ts +4 -0
  19. package/packages/panda/src/recipes/composer.ts +58 -4
  20. package/packages/panda/src/recipes/file-upload.ts +100 -0
  21. package/packages/panda/src/recipes/index.ts +2 -0
  22. package/packages/panda/src/recipes/range-slider.ts +59 -0
  23. package/packages/panda/src/recipes/thread.ts +77 -2
  24. package/packages/panda/styled-system/recipes/aeon-composer.d.ts +1 -1
  25. package/packages/panda/styled-system/recipes/aeon-composer.mjs +12 -0
  26. package/packages/panda/styled-system/recipes/aeon-file-upload.d.ts +31 -0
  27. package/packages/panda/styled-system/recipes/aeon-file-upload.mjs +61 -0
  28. package/packages/panda/styled-system/recipes/aeon-range-slider.d.ts +31 -0
  29. package/packages/panda/styled-system/recipes/aeon-range-slider.mjs +49 -0
  30. package/packages/panda/styled-system/recipes/aeon-thread.d.ts +1 -1
  31. package/packages/panda/styled-system/recipes/aeon-thread.mjs +20 -0
  32. package/packages/panda/styled-system/recipes/index.d.ts +2 -0
  33. package/packages/panda/styled-system/recipes/index.mjs +2 -0
  34. package/packages/panda/styled-system/styles.css +292 -0
  35. package/packages/primitives/dist/chunk-CV4UXXZF.js +44 -0
  36. package/packages/primitives/dist/chunk-IZKQSCYU.js +164 -0
  37. package/packages/primitives/dist/index.d.ts +2 -0
  38. package/packages/primitives/dist/index.js +22 -6
  39. package/packages/primitives/dist/machines/file-upload.d.ts +39 -0
  40. package/packages/primitives/dist/machines/file-upload.js +8 -0
  41. package/packages/primitives/dist/machines/range-slider.d.ts +129 -0
  42. package/packages/primitives/dist/machines/range-slider.js +12 -0
  43. package/packages/primitives/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -1
  44. package/packages/primitives/src/__tests__/file-upload.test.ts +25 -0
  45. package/packages/primitives/src/__tests__/range-slider.test.ts +39 -0
  46. package/packages/primitives/src/index.ts +2 -0
  47. package/packages/primitives/src/machines/file-upload.ts +55 -0
  48. package/packages/primitives/src/machines/range-slider.ts +209 -0
  49. package/packages/react/dist/index.d.ts +117 -25
  50. package/packages/react/dist/index.js +1731 -1006
  51. package/packages/react/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -1
  52. package/packages/react/src/button/index.tsx +50 -15
  53. package/packages/react/src/combobox/index.tsx +13 -8
  54. package/packages/react/src/composer/index.tsx +58 -3
  55. package/packages/react/src/file-upload/index.tsx +322 -0
  56. package/packages/react/src/index.ts +3 -0
  57. package/packages/react/src/prompt/index.tsx +45 -0
  58. package/packages/react/src/range-slider/index.tsx +322 -0
  59. package/packages/react/src/thread/index.tsx +74 -3
  60. package/packages/react/src/tooltip/index.tsx +48 -22
  61. package/packages/react/src/utils/slot.tsx +47 -0
  62. package/packages/schemas/dist/index.d.ts +73 -24
  63. package/packages/schemas/dist/index.js +514 -50
  64. package/packages/schemas/json/appNav.json +146 -0
  65. package/packages/schemas/json/appShell.json +151 -0
  66. package/packages/schemas/json/avatar.json +130 -0
  67. package/packages/schemas/json/bar.json +126 -0
  68. package/packages/schemas/json/button.json +6 -0
  69. package/packages/schemas/json/catalog.json +3496 -15
  70. package/packages/schemas/json/combobox.json +19 -7
  71. package/packages/schemas/json/composer.json +125 -0
  72. package/packages/schemas/json/content.json +167 -0
  73. package/packages/schemas/json/conversation.json +166 -0
  74. package/packages/schemas/json/entry.json +182 -0
  75. package/packages/schemas/json/fileUpload.json +168 -0
  76. package/packages/schemas/json/identity.json +147 -0
  77. package/packages/schemas/json/listRow.json +131 -0
  78. package/packages/schemas/json/metricStrip.json +132 -0
  79. package/packages/schemas/json/nav.json +136 -0
  80. package/packages/schemas/json/panel.json +143 -0
  81. package/packages/schemas/json/pinInput.json +112 -0
  82. package/packages/schemas/json/profileHeader.json +138 -0
  83. package/packages/schemas/json/prompt.json +155 -0
  84. package/packages/schemas/json/radioGroup.json +130 -0
  85. package/packages/schemas/json/rangeSlider.json +157 -0
  86. package/packages/schemas/json/separator.json +105 -0
  87. package/packages/schemas/json/slider.json +147 -0
  88. package/packages/schemas/json/statusBanner.json +149 -0
  89. package/packages/schemas/json/stickyBar.json +153 -0
  90. package/packages/schemas/json/thread.json +129 -0
  91. package/packages/schemas/json/tooltip.json +21 -7
  92. package/packages/schemas/node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709/results.json +1 -1
  93. package/packages/schemas/prompts/cursorrules.md +6 -4
  94. package/packages/schemas/prompts/statecharts.md +23 -2
  95. package/packages/schemas/prompts/system.md +2 -2
  96. package/packages/schemas/registry/catalog.json +313 -4
  97. package/packages/schemas/registry/components/appNav.json +146 -0
  98. package/packages/schemas/registry/components/appShell.json +151 -0
  99. package/packages/schemas/registry/components/avatar.json +130 -0
  100. package/packages/schemas/registry/components/bar.json +126 -0
  101. package/packages/schemas/registry/components/button.json +6 -0
  102. package/packages/schemas/registry/components/combobox.json +19 -7
  103. package/packages/schemas/registry/components/composer.json +125 -0
  104. package/packages/schemas/registry/components/content.json +167 -0
  105. package/packages/schemas/registry/components/conversation.json +166 -0
  106. package/packages/schemas/registry/components/entry.json +182 -0
  107. package/packages/schemas/registry/components/fileUpload.json +168 -0
  108. package/packages/schemas/registry/components/identity.json +147 -0
  109. package/packages/schemas/registry/components/listRow.json +131 -0
  110. package/packages/schemas/registry/components/metricStrip.json +132 -0
  111. package/packages/schemas/registry/components/nav.json +136 -0
  112. package/packages/schemas/registry/components/panel.json +143 -0
  113. package/packages/schemas/registry/components/pinInput.json +112 -0
  114. package/packages/schemas/registry/components/profileHeader.json +138 -0
  115. package/packages/schemas/registry/components/prompt.json +155 -0
  116. package/packages/schemas/registry/components/radioGroup.json +130 -0
  117. package/packages/schemas/registry/components/rangeSlider.json +157 -0
  118. package/packages/schemas/registry/components/separator.json +105 -0
  119. package/packages/schemas/registry/components/slider.json +147 -0
  120. package/packages/schemas/registry/components/statusBanner.json +149 -0
  121. package/packages/schemas/registry/components/stickyBar.json +153 -0
  122. package/packages/schemas/registry/components/thread.json +129 -0
  123. package/packages/schemas/registry/components/tooltip.json +21 -7
  124. package/packages/schemas/registry/machines/accordion.json +58 -0
  125. package/packages/schemas/registry/machines/appNav.json +108 -0
  126. package/packages/schemas/registry/machines/appShell.json +128 -0
  127. package/packages/schemas/registry/machines/contentRegion.json +314 -0
  128. package/packages/schemas/registry/machines/fileUpload.json +182 -0
  129. package/packages/schemas/registry/machines/panel.json +131 -0
  130. package/packages/schemas/registry/machines/popover.json +143 -0
  131. package/packages/schemas/registry/machines/rangeSlider.json +201 -0
  132. package/packages/schemas/registry/machines/slider.json +151 -0
  133. package/packages/schemas/registry/machines/stickyBar.json +261 -0
  134. package/packages/schemas/registry/machines/tabs.json +58 -0
  135. package/packages/schemas/registry/machines/toast.json +89 -0
  136. package/packages/schemas/registry/machines/toggle.json +134 -0
  137. package/packages/schemas/scripts/emit.ts +27 -0
  138. package/packages/schemas/src/components.ts +499 -6
  139. package/packages/schemas/src/index.test.ts +83 -0
  140. package/packages/schemas/src/index.ts +1 -0
  141. package/packages/schemas/src/machine-id.ts +7 -0
  142. package/packages/schemas/src/prompts.ts +25 -4
  143. package/packages/schemas/src/registry.ts +28 -39
  144. package/packages/schemas/tsconfig.json +1 -1
  145. package/packages/ui/dist/index.d.ts +100 -46
  146. package/packages/ui/dist/index.js +463 -341
  147. package/packages/ui/src/composer.tsx +37 -11
  148. package/packages/ui/src/file-upload.tsx +36 -0
  149. package/packages/ui/src/index.ts +2 -0
  150. package/packages/ui/src/prompt.tsx +3 -0
  151. package/packages/ui/src/range-slider.tsx +24 -0
  152. package/packages/ui/src/thread.tsx +40 -0
  153. package/packages/cli/dist/chunk-IW5NT2Z2.js +0 -103
@@ -0,0 +1,130 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://aeon-ui.com/schemas/radioGroup.json",
4
+ "title": "RadioGroup",
5
+ "description": "Single selection via tabsMachine (same chart family as Tabs/Nav).",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": [
9
+ "component",
10
+ "scope"
11
+ ],
12
+ "properties": {
13
+ "component": {
14
+ "const": "RadioGroup"
15
+ },
16
+ "scope": {
17
+ "const": "radioGroup"
18
+ },
19
+ "parts": {
20
+ "type": "array",
21
+ "description": "Anatomy part keys — map to data-aeon-part",
22
+ "items": {
23
+ "type": "string",
24
+ "enum": [
25
+ "root",
26
+ "item",
27
+ "itemControl",
28
+ "itemIndicator",
29
+ "itemLabel"
30
+ ]
31
+ },
32
+ "uniqueItems": true
33
+ },
34
+ "states": {
35
+ "type": "array",
36
+ "description": "Allowed data-aeon-state values (stable states only)",
37
+ "items": {
38
+ "type": "string",
39
+ "enum": [
40
+ "selected"
41
+ ]
42
+ },
43
+ "uniqueItems": true
44
+ },
45
+ "props": {
46
+ "type": "object",
47
+ "additionalProperties": false,
48
+ "properties": {}
49
+ },
50
+ "slots": {
51
+ "type": "object",
52
+ "description": "Named composition slots / compound parts",
53
+ "additionalProperties": {
54
+ "type": "string"
55
+ },
56
+ "properties": {
57
+ "Root": {
58
+ "const": "radioGroup.root",
59
+ "description": "radioGroup.root"
60
+ },
61
+ "Item": {
62
+ "const": "radioGroup.item",
63
+ "description": "radioGroup.item"
64
+ },
65
+ "ItemControl": {
66
+ "const": "radioGroup.itemControl",
67
+ "description": "radioGroup.itemControl"
68
+ },
69
+ "ItemLabel": {
70
+ "const": "radioGroup.itemLabel",
71
+ "description": "radioGroup.itemLabel"
72
+ }
73
+ }
74
+ },
75
+ "machine": {
76
+ "type": [
77
+ "string",
78
+ "null"
79
+ ],
80
+ "description": "XState machine export from @aeon-ui/primitives, or null if prop/React driven",
81
+ "const": "tabsMachine"
82
+ },
83
+ "runtime": {
84
+ "type": "string",
85
+ "description": "How headless state is driven at runtime",
86
+ "const": "useAeonMachine"
87
+ },
88
+ "events": {
89
+ "type": "array",
90
+ "items": {
91
+ "type": "string",
92
+ "enum": [
93
+ "SELECT"
94
+ ]
95
+ }
96
+ },
97
+ "examples": {
98
+ "type": "array",
99
+ "items": {
100
+ "type": "string"
101
+ },
102
+ "default": []
103
+ }
104
+ },
105
+ "x-aeon": {
106
+ "scope": "radioGroup",
107
+ "parts": [
108
+ "root",
109
+ "item",
110
+ "itemControl",
111
+ "itemIndicator",
112
+ "itemLabel"
113
+ ],
114
+ "states": [
115
+ "selected"
116
+ ],
117
+ "machine": "tabsMachine",
118
+ "runtime": "useAeonMachine",
119
+ "events": [
120
+ "SELECT"
121
+ ],
122
+ "slots": {
123
+ "Root": "radioGroup.root",
124
+ "Item": "radioGroup.item",
125
+ "ItemControl": "radioGroup.itemControl",
126
+ "ItemLabel": "radioGroup.itemLabel"
127
+ },
128
+ "examples": []
129
+ }
130
+ }
@@ -0,0 +1,157 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://aeon-ui.com/schemas/rangeSlider.json",
4
+ "title": "RangeSlider",
5
+ "description": "Two-thumb range via rangeSliderMachine — idle | dragging with values pair and minStepsBetween gap.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": [
9
+ "component",
10
+ "scope"
11
+ ],
12
+ "properties": {
13
+ "component": {
14
+ "const": "RangeSlider"
15
+ },
16
+ "scope": {
17
+ "const": "rangeSlider"
18
+ },
19
+ "parts": {
20
+ "type": "array",
21
+ "description": "Anatomy part keys — map to data-aeon-part",
22
+ "items": {
23
+ "type": "string",
24
+ "enum": [
25
+ "root",
26
+ "track",
27
+ "range",
28
+ "thumb",
29
+ "valueText"
30
+ ]
31
+ },
32
+ "uniqueItems": true
33
+ },
34
+ "states": {
35
+ "type": "array",
36
+ "description": "Allowed data-aeon-state values (stable states only)",
37
+ "items": {
38
+ "type": "string",
39
+ "enum": [
40
+ "idle",
41
+ "dragging"
42
+ ]
43
+ },
44
+ "uniqueItems": true
45
+ },
46
+ "props": {
47
+ "type": "object",
48
+ "additionalProperties": false,
49
+ "properties": {}
50
+ },
51
+ "slots": {
52
+ "type": "object",
53
+ "description": "Named composition slots / compound parts",
54
+ "additionalProperties": {
55
+ "type": "string"
56
+ },
57
+ "properties": {
58
+ "Root": {
59
+ "const": "rangeSlider.root",
60
+ "description": "rangeSlider.root"
61
+ },
62
+ "Track": {
63
+ "const": "rangeSlider.track",
64
+ "description": "rangeSlider.track"
65
+ },
66
+ "Range": {
67
+ "const": "rangeSlider.range",
68
+ "description": "rangeSlider.range"
69
+ },
70
+ "Thumb": {
71
+ "const": "rangeSlider.thumb",
72
+ "description": "rangeSlider.thumb"
73
+ },
74
+ "ValueText": {
75
+ "const": "rangeSlider.valueText",
76
+ "description": "rangeSlider.valueText"
77
+ }
78
+ }
79
+ },
80
+ "machine": {
81
+ "type": [
82
+ "string",
83
+ "null"
84
+ ],
85
+ "description": "XState machine export from @aeon-ui/primitives, or null if prop/React driven",
86
+ "const": "rangeSliderMachine"
87
+ },
88
+ "runtime": {
89
+ "type": "string",
90
+ "description": "How headless state is driven at runtime",
91
+ "const": "useAeonMachine"
92
+ },
93
+ "events": {
94
+ "type": "array",
95
+ "items": {
96
+ "type": "string",
97
+ "enum": [
98
+ "SET_VALUES",
99
+ "SET_BOUNDS",
100
+ "SET_DISABLED",
101
+ "POINTER_DOWN",
102
+ "POINTER_MOVE",
103
+ "POINTER_UP",
104
+ "STEP",
105
+ "HOME",
106
+ "END"
107
+ ]
108
+ }
109
+ },
110
+ "examples": {
111
+ "type": "array",
112
+ "items": {
113
+ "type": "string"
114
+ },
115
+ "default": [
116
+ "<RangeSlider.Root defaultValue={[20, 80]} minStepsBetween={1}>\n <RangeSlider.Track /><RangeSlider.Range />\n <RangeSlider.Thumb index={0} /><RangeSlider.Thumb index={1} />\n</RangeSlider.Root>"
117
+ ]
118
+ }
119
+ },
120
+ "x-aeon": {
121
+ "scope": "rangeSlider",
122
+ "parts": [
123
+ "root",
124
+ "track",
125
+ "range",
126
+ "thumb",
127
+ "valueText"
128
+ ],
129
+ "states": [
130
+ "idle",
131
+ "dragging"
132
+ ],
133
+ "machine": "rangeSliderMachine",
134
+ "runtime": "useAeonMachine",
135
+ "events": [
136
+ "SET_VALUES",
137
+ "SET_BOUNDS",
138
+ "SET_DISABLED",
139
+ "POINTER_DOWN",
140
+ "POINTER_MOVE",
141
+ "POINTER_UP",
142
+ "STEP",
143
+ "HOME",
144
+ "END"
145
+ ],
146
+ "slots": {
147
+ "Root": "rangeSlider.root",
148
+ "Track": "rangeSlider.track",
149
+ "Range": "rangeSlider.range",
150
+ "Thumb": "rangeSlider.thumb",
151
+ "ValueText": "rangeSlider.valueText"
152
+ },
153
+ "examples": [
154
+ "<RangeSlider.Root defaultValue={[20, 80]} minStepsBetween={1}>\n <RangeSlider.Track /><RangeSlider.Range />\n <RangeSlider.Thumb index={0} /><RangeSlider.Thumb index={1} />\n</RangeSlider.Root>"
155
+ ]
156
+ }
157
+ }
@@ -0,0 +1,105 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://aeon-ui.com/schemas/separator.json",
4
+ "title": "Separator",
5
+ "description": "Static divider — orientation prop only.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": [
9
+ "component",
10
+ "scope"
11
+ ],
12
+ "properties": {
13
+ "component": {
14
+ "const": "Separator"
15
+ },
16
+ "scope": {
17
+ "const": "separator"
18
+ },
19
+ "parts": {
20
+ "type": "array",
21
+ "description": "Anatomy part keys — map to data-aeon-part",
22
+ "items": {
23
+ "type": "string",
24
+ "enum": [
25
+ "root"
26
+ ]
27
+ },
28
+ "uniqueItems": true
29
+ },
30
+ "states": {
31
+ "type": "array",
32
+ "description": "Allowed data-aeon-state values (stable states only)",
33
+ "items": {
34
+ "type": "string",
35
+ "enum": [
36
+ "horizontal",
37
+ "vertical"
38
+ ]
39
+ },
40
+ "uniqueItems": true
41
+ },
42
+ "props": {
43
+ "type": "object",
44
+ "additionalProperties": false,
45
+ "properties": {}
46
+ },
47
+ "slots": {
48
+ "type": "object",
49
+ "description": "Named composition slots / compound parts",
50
+ "additionalProperties": {
51
+ "type": "string"
52
+ },
53
+ "properties": {
54
+ "Root": {
55
+ "const": "separator.root",
56
+ "description": "separator.root"
57
+ }
58
+ }
59
+ },
60
+ "machine": {
61
+ "type": [
62
+ "string",
63
+ "null"
64
+ ],
65
+ "description": "XState machine export from @aeon-ui/primitives, or null if prop/React driven",
66
+ "const": null
67
+ },
68
+ "runtime": {
69
+ "type": "string",
70
+ "description": "How headless state is driven at runtime",
71
+ "const": "props"
72
+ },
73
+ "events": {
74
+ "type": "array",
75
+ "items": {
76
+ "type": "string",
77
+ "enum": []
78
+ }
79
+ },
80
+ "examples": {
81
+ "type": "array",
82
+ "items": {
83
+ "type": "string"
84
+ },
85
+ "default": []
86
+ }
87
+ },
88
+ "x-aeon": {
89
+ "scope": "separator",
90
+ "parts": [
91
+ "root"
92
+ ],
93
+ "states": [
94
+ "horizontal",
95
+ "vertical"
96
+ ],
97
+ "machine": null,
98
+ "runtime": "props",
99
+ "events": [],
100
+ "slots": {
101
+ "Root": "separator.root"
102
+ },
103
+ "examples": []
104
+ }
105
+ }
@@ -0,0 +1,147 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://aeon-ui.com/schemas/slider.json",
4
+ "title": "Slider",
5
+ "description": "Range control via sliderMachine — idle | dragging plus numeric value in context.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": [
9
+ "component",
10
+ "scope"
11
+ ],
12
+ "properties": {
13
+ "component": {
14
+ "const": "Slider"
15
+ },
16
+ "scope": {
17
+ "const": "slider"
18
+ },
19
+ "parts": {
20
+ "type": "array",
21
+ "description": "Anatomy part keys — map to data-aeon-part",
22
+ "items": {
23
+ "type": "string",
24
+ "enum": [
25
+ "root",
26
+ "track",
27
+ "range",
28
+ "thumb",
29
+ "valueText"
30
+ ]
31
+ },
32
+ "uniqueItems": true
33
+ },
34
+ "states": {
35
+ "type": "array",
36
+ "description": "Allowed data-aeon-state values (stable states only)",
37
+ "items": {
38
+ "type": "string",
39
+ "enum": [
40
+ "idle",
41
+ "dragging"
42
+ ]
43
+ },
44
+ "uniqueItems": true
45
+ },
46
+ "props": {
47
+ "type": "object",
48
+ "additionalProperties": false,
49
+ "properties": {}
50
+ },
51
+ "slots": {
52
+ "type": "object",
53
+ "description": "Named composition slots / compound parts",
54
+ "additionalProperties": {
55
+ "type": "string"
56
+ },
57
+ "properties": {
58
+ "Root": {
59
+ "const": "slider.root",
60
+ "description": "slider.root"
61
+ },
62
+ "Track": {
63
+ "const": "slider.track",
64
+ "description": "slider.track"
65
+ },
66
+ "Range": {
67
+ "const": "slider.range",
68
+ "description": "slider.range"
69
+ },
70
+ "Thumb": {
71
+ "const": "slider.thumb",
72
+ "description": "slider.thumb"
73
+ },
74
+ "ValueText": {
75
+ "const": "slider.valueText",
76
+ "description": "slider.valueText"
77
+ }
78
+ }
79
+ },
80
+ "machine": {
81
+ "type": [
82
+ "string",
83
+ "null"
84
+ ],
85
+ "description": "XState machine export from @aeon-ui/primitives, or null if prop/React driven",
86
+ "const": "sliderMachine"
87
+ },
88
+ "runtime": {
89
+ "type": "string",
90
+ "description": "How headless state is driven at runtime",
91
+ "const": "useAeonMachine"
92
+ },
93
+ "events": {
94
+ "type": "array",
95
+ "items": {
96
+ "type": "string",
97
+ "enum": [
98
+ "SET_VALUE",
99
+ "STEP",
100
+ "POINTER_DOWN",
101
+ "POINTER_UP",
102
+ "HOME",
103
+ "END"
104
+ ]
105
+ }
106
+ },
107
+ "examples": {
108
+ "type": "array",
109
+ "items": {
110
+ "type": "string"
111
+ },
112
+ "default": []
113
+ }
114
+ },
115
+ "x-aeon": {
116
+ "scope": "slider",
117
+ "parts": [
118
+ "root",
119
+ "track",
120
+ "range",
121
+ "thumb",
122
+ "valueText"
123
+ ],
124
+ "states": [
125
+ "idle",
126
+ "dragging"
127
+ ],
128
+ "machine": "sliderMachine",
129
+ "runtime": "useAeonMachine",
130
+ "events": [
131
+ "SET_VALUE",
132
+ "STEP",
133
+ "POINTER_DOWN",
134
+ "POINTER_UP",
135
+ "HOME",
136
+ "END"
137
+ ],
138
+ "slots": {
139
+ "Root": "slider.root",
140
+ "Track": "slider.track",
141
+ "Range": "slider.range",
142
+ "Thumb": "slider.thumb",
143
+ "ValueText": "slider.valueText"
144
+ },
145
+ "examples": []
146
+ }
147
+ }
@@ -0,0 +1,149 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://aeon-ui.com/schemas/statusBanner.json",
4
+ "title": "StatusBanner",
5
+ "description": "Non-blocking top-of-app notice — tone + optional status props project to data-aeon-state.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": [
9
+ "component",
10
+ "scope"
11
+ ],
12
+ "properties": {
13
+ "component": {
14
+ "const": "StatusBanner"
15
+ },
16
+ "scope": {
17
+ "const": "statusBanner"
18
+ },
19
+ "parts": {
20
+ "type": "array",
21
+ "description": "Anatomy part keys — map to data-aeon-part",
22
+ "items": {
23
+ "type": "string",
24
+ "enum": [
25
+ "root",
26
+ "copy",
27
+ "title",
28
+ "body",
29
+ "actions"
30
+ ]
31
+ },
32
+ "uniqueItems": true
33
+ },
34
+ "states": {
35
+ "type": "array",
36
+ "description": "Allowed data-aeon-state values (stable states only)",
37
+ "items": {
38
+ "type": "string",
39
+ "enum": [
40
+ "info",
41
+ "success",
42
+ "warning",
43
+ "danger",
44
+ "neutral"
45
+ ]
46
+ },
47
+ "uniqueItems": true
48
+ },
49
+ "props": {
50
+ "type": "object",
51
+ "additionalProperties": false,
52
+ "properties": {
53
+ "tone": {
54
+ "type": "string",
55
+ "enum": [
56
+ "info",
57
+ "success",
58
+ "warning",
59
+ "danger",
60
+ "neutral"
61
+ ]
62
+ },
63
+ "status": {
64
+ "type": "string",
65
+ "description": "Optional secondary token appended to data-aeon-state"
66
+ }
67
+ }
68
+ },
69
+ "slots": {
70
+ "type": "object",
71
+ "description": "Named composition slots / compound parts",
72
+ "additionalProperties": {
73
+ "type": "string"
74
+ },
75
+ "properties": {
76
+ "Root": {
77
+ "const": "statusBanner.root",
78
+ "description": "statusBanner.root"
79
+ },
80
+ "Title": {
81
+ "const": "statusBanner.title",
82
+ "description": "statusBanner.title"
83
+ },
84
+ "Body": {
85
+ "const": "statusBanner.body",
86
+ "description": "statusBanner.body"
87
+ },
88
+ "Actions": {
89
+ "const": "statusBanner.actions",
90
+ "description": "statusBanner.actions"
91
+ }
92
+ }
93
+ },
94
+ "machine": {
95
+ "type": [
96
+ "string",
97
+ "null"
98
+ ],
99
+ "description": "XState machine export from @aeon-ui/primitives, or null if prop/React driven",
100
+ "const": null
101
+ },
102
+ "runtime": {
103
+ "type": "string",
104
+ "description": "How headless state is driven at runtime",
105
+ "const": "props"
106
+ },
107
+ "events": {
108
+ "type": "array",
109
+ "items": {
110
+ "type": "string",
111
+ "enum": []
112
+ }
113
+ },
114
+ "examples": {
115
+ "type": "array",
116
+ "items": {
117
+ "type": "string"
118
+ },
119
+ "default": []
120
+ }
121
+ },
122
+ "x-aeon": {
123
+ "scope": "statusBanner",
124
+ "parts": [
125
+ "root",
126
+ "copy",
127
+ "title",
128
+ "body",
129
+ "actions"
130
+ ],
131
+ "states": [
132
+ "info",
133
+ "success",
134
+ "warning",
135
+ "danger",
136
+ "neutral"
137
+ ],
138
+ "machine": null,
139
+ "runtime": "props",
140
+ "events": [],
141
+ "slots": {
142
+ "Root": "statusBanner.root",
143
+ "Title": "statusBanner.title",
144
+ "Body": "statusBanner.body",
145
+ "Actions": "statusBanner.actions"
146
+ },
147
+ "examples": []
148
+ }
149
+ }