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,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
+ }
@@ -0,0 +1,153 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://aeon-ui.com/schemas/stickyBar.json",
4
+ "title": "StickyBar",
5
+ "description": "Sticky/fixed chrome band via stickyBarMachine. DOM scope is bar (reuses bar anatomy zones).",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": [
9
+ "component",
10
+ "scope"
11
+ ],
12
+ "properties": {
13
+ "component": {
14
+ "const": "StickyBar"
15
+ },
16
+ "scope": {
17
+ "const": "bar"
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
+ "leading",
27
+ "center",
28
+ "trailing",
29
+ "seam"
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
+ "floating",
41
+ "docked",
42
+ "collapsed",
43
+ "hidden"
44
+ ]
45
+ },
46
+ "uniqueItems": true
47
+ },
48
+ "props": {
49
+ "type": "object",
50
+ "additionalProperties": false,
51
+ "properties": {}
52
+ },
53
+ "slots": {
54
+ "type": "object",
55
+ "description": "Named composition slots / compound parts",
56
+ "additionalProperties": {
57
+ "type": "string"
58
+ },
59
+ "properties": {
60
+ "Root": {
61
+ "const": "bar.root",
62
+ "description": "bar.root"
63
+ },
64
+ "Leading": {
65
+ "const": "bar.leading",
66
+ "description": "bar.leading"
67
+ },
68
+ "Center": {
69
+ "const": "bar.center",
70
+ "description": "bar.center"
71
+ },
72
+ "Trailing": {
73
+ "const": "bar.trailing",
74
+ "description": "bar.trailing"
75
+ },
76
+ "Seam": {
77
+ "const": "bar.seam",
78
+ "description": "bar.seam"
79
+ }
80
+ }
81
+ },
82
+ "machine": {
83
+ "type": [
84
+ "string",
85
+ "null"
86
+ ],
87
+ "description": "XState machine export from @aeon-ui/primitives, or null if prop/React driven",
88
+ "const": "stickyBarMachine"
89
+ },
90
+ "runtime": {
91
+ "type": "string",
92
+ "description": "How headless state is driven at runtime",
93
+ "const": "useAeonMachine"
94
+ },
95
+ "events": {
96
+ "type": "array",
97
+ "items": {
98
+ "type": "string",
99
+ "enum": [
100
+ "DOCK",
101
+ "FLOAT",
102
+ "COLLAPSE",
103
+ "EXPAND",
104
+ "HIDE",
105
+ "SHOW",
106
+ "SET_OFFSET"
107
+ ]
108
+ }
109
+ },
110
+ "examples": {
111
+ "type": "array",
112
+ "items": {
113
+ "type": "string"
114
+ },
115
+ "default": []
116
+ }
117
+ },
118
+ "x-aeon": {
119
+ "scope": "bar",
120
+ "parts": [
121
+ "root",
122
+ "leading",
123
+ "center",
124
+ "trailing",
125
+ "seam"
126
+ ],
127
+ "states": [
128
+ "floating",
129
+ "docked",
130
+ "collapsed",
131
+ "hidden"
132
+ ],
133
+ "machine": "stickyBarMachine",
134
+ "runtime": "useAeonMachine",
135
+ "events": [
136
+ "DOCK",
137
+ "FLOAT",
138
+ "COLLAPSE",
139
+ "EXPAND",
140
+ "HIDE",
141
+ "SHOW",
142
+ "SET_OFFSET"
143
+ ],
144
+ "slots": {
145
+ "Root": "bar.root",
146
+ "Leading": "bar.leading",
147
+ "Center": "bar.center",
148
+ "Trailing": "bar.trailing",
149
+ "Seam": "bar.seam"
150
+ },
151
+ "examples": []
152
+ }
153
+ }
@@ -0,0 +1,129 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://aeon-ui.com/schemas/thread.json",
4
+ "title": "Thread",
5
+ "description": "Message stream — item state prop mine | theirs | pending | failed.",
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": [
9
+ "component",
10
+ "scope"
11
+ ],
12
+ "properties": {
13
+ "component": {
14
+ "const": "Thread"
15
+ },
16
+ "scope": {
17
+ "const": "thread"
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
+ "list",
27
+ "item",
28
+ "bubble",
29
+ "meta",
30
+ "day"
31
+ ]
32
+ },
33
+ "uniqueItems": true
34
+ },
35
+ "states": {
36
+ "type": "array",
37
+ "description": "Allowed data-aeon-state values (stable states only)",
38
+ "items": {
39
+ "type": "string",
40
+ "enum": [
41
+ "mine",
42
+ "theirs",
43
+ "pending",
44
+ "failed"
45
+ ]
46
+ },
47
+ "uniqueItems": true
48
+ },
49
+ "props": {
50
+ "type": "object",
51
+ "additionalProperties": false,
52
+ "properties": {}
53
+ },
54
+ "slots": {
55
+ "type": "object",
56
+ "description": "Named composition slots / compound parts",
57
+ "additionalProperties": {
58
+ "type": "string"
59
+ },
60
+ "properties": {
61
+ "Root": {
62
+ "const": "thread.root",
63
+ "description": "thread.root"
64
+ },
65
+ "Item": {
66
+ "const": "thread.item",
67
+ "description": "thread.item"
68
+ },
69
+ "Bubble": {
70
+ "const": "thread.bubble",
71
+ "description": "thread.bubble"
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": null
82
+ },
83
+ "runtime": {
84
+ "type": "string",
85
+ "description": "How headless state is driven at runtime",
86
+ "const": "props"
87
+ },
88
+ "events": {
89
+ "type": "array",
90
+ "items": {
91
+ "type": "string",
92
+ "enum": []
93
+ }
94
+ },
95
+ "examples": {
96
+ "type": "array",
97
+ "items": {
98
+ "type": "string"
99
+ },
100
+ "default": []
101
+ }
102
+ },
103
+ "x-aeon": {
104
+ "scope": "thread",
105
+ "parts": [
106
+ "root",
107
+ "list",
108
+ "item",
109
+ "bubble",
110
+ "meta",
111
+ "day"
112
+ ],
113
+ "states": [
114
+ "mine",
115
+ "theirs",
116
+ "pending",
117
+ "failed"
118
+ ],
119
+ "machine": null,
120
+ "runtime": "props",
121
+ "events": [],
122
+ "slots": {
123
+ "Root": "thread.root",
124
+ "Item": "thread.item",
125
+ "Bubble": "thread.bubble"
126
+ },
127
+ "examples": []
128
+ }
129
+ }
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://aeon-ui.com/schemas/tooltip.json",
4
4
  "title": "Tooltip",
5
- "description": "Open via React useState. Touch tap toggles.",
5
+ "description": "Open/closed via popoverMachine (same family as Popover/Select/Combobox). openDelay / closeDelay / touchDuration stay React-local.",
6
6
  "type": "object",
7
7
  "additionalProperties": false,
8
8
  "required": [
@@ -75,18 +75,25 @@
75
75
  "null"
76
76
  ],
77
77
  "description": "XState machine export from @aeon-ui/primitives, or null if prop/React driven",
78
- "const": null
78
+ "const": "popoverMachine"
79
79
  },
80
80
  "runtime": {
81
81
  "type": "string",
82
82
  "description": "How headless state is driven at runtime",
83
- "const": "useState"
83
+ "const": "useAeonMachine"
84
84
  },
85
85
  "events": {
86
86
  "type": "array",
87
87
  "items": {
88
88
  "type": "string",
89
- "enum": []
89
+ "enum": [
90
+ "OPEN",
91
+ "CLOSE",
92
+ "TOGGLE",
93
+ "SET_OPEN",
94
+ "ESCAPE",
95
+ "POINTER_DOWN_OUTSIDE"
96
+ ]
90
97
  }
91
98
  },
92
99
  "examples": {
@@ -110,9 +117,16 @@
110
117
  "open",
111
118
  "closed"
112
119
  ],
113
- "machine": null,
114
- "runtime": "useState",
115
- "events": [],
120
+ "machine": "popoverMachine",
121
+ "runtime": "useAeonMachine",
122
+ "events": [
123
+ "OPEN",
124
+ "CLOSE",
125
+ "TOGGLE",
126
+ "SET_OPEN",
127
+ "ESCAPE",
128
+ "POINTER_DOWN_OUTSIDE"
129
+ ],
116
130
  "slots": {
117
131
  "Root": "tooltip.root",
118
132
  "Trigger": "tooltip.trigger",
@@ -0,0 +1,58 @@
1
+ {
2
+ "id": "accordion",
3
+ "initial": "managing",
4
+ "events": [
5
+ "TOGGLE",
6
+ "SET_VALUE"
7
+ ],
8
+ "tree": {
9
+ "key": "accordion",
10
+ "id": "accordion",
11
+ "type": "compound",
12
+ "events": [
13
+ "TOGGLE",
14
+ "SET_VALUE"
15
+ ],
16
+ "transitions": [],
17
+ "children": [
18
+ {
19
+ "key": "managing",
20
+ "id": "accordion.managing",
21
+ "type": "atomic",
22
+ "events": [
23
+ "TOGGLE",
24
+ "SET_VALUE"
25
+ ],
26
+ "transitions": [
27
+ {
28
+ "event": "TOGGLE",
29
+ "target": [],
30
+ "guarded": false
31
+ },
32
+ {
33
+ "event": "SET_VALUE",
34
+ "target": [],
35
+ "guarded": false
36
+ }
37
+ ],
38
+ "children": []
39
+ }
40
+ ]
41
+ },
42
+ "states": {
43
+ "accordion": {
44
+ "events": [
45
+ "TOGGLE",
46
+ "SET_VALUE"
47
+ ],
48
+ "type": "compound"
49
+ },
50
+ "accordion.managing": {
51
+ "events": [
52
+ "TOGGLE",
53
+ "SET_VALUE"
54
+ ],
55
+ "type": "atomic"
56
+ }
57
+ }
58
+ }