@exponential_app/eui 0.0.0-stage → 0.2.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 (274) hide show
  1. package/LICENSE +201 -0
  2. package/NOTICE +54 -0
  3. package/README.md +377 -2
  4. package/catalog/a11y.json +705 -0
  5. package/catalog/basic-map.json +104 -0
  6. package/catalog/code.json +58 -0
  7. package/catalog/core.catalog.json +5190 -0
  8. package/catalog/core.schema.json +24542 -0
  9. package/catalog/host.json +95 -0
  10. package/catalog/layout.json +20 -0
  11. package/catalog/limits.json +9 -0
  12. package/catalog/locale.json +48 -0
  13. package/catalog/macros.json +4152 -0
  14. package/catalog/recipes.json +64 -0
  15. package/catalog/strings.json +84 -0
  16. package/catalog/style.json +180 -0
  17. package/catalog/theme.schema.json +47754 -0
  18. package/catalog/tokens.json +47 -0
  19. package/conformance/README.md +218 -0
  20. package/conformance/baseline.ts +101 -0
  21. package/conformance/browser-page.ts +146 -0
  22. package/conformance/browser-suites.ts +699 -0
  23. package/conformance/compare.ts +201 -0
  24. package/conformance/dom.ts +97 -0
  25. package/conformance/dump.ts +163 -0
  26. package/conformance/fonts.json +157 -0
  27. package/conformance/manifest.json +233 -0
  28. package/conformance/parity-compare.ts +191 -0
  29. package/conformance/parity-report.schema.json +73 -0
  30. package/conformance/parity.ts +412 -0
  31. package/conformance/pixel.ts +177 -0
  32. package/conformance/primitives-page.ts +49 -0
  33. package/conformance/report.schema.json +66 -0
  34. package/conformance/run.ts +118 -0
  35. package/conformance/voice-wave-child.ts +102 -0
  36. package/dist/chunks/index-5fmaa0xq.js +8384 -0
  37. package/dist/chunks/index-5fmaa0xq.js.map +10 -0
  38. package/dist/chunks/index-62yzr94z.js +2784 -0
  39. package/dist/chunks/index-62yzr94z.js.map +10 -0
  40. package/dist/chunks/index-bg2jsgjq.js +8541 -0
  41. package/dist/chunks/index-bg2jsgjq.js.map +15 -0
  42. package/dist/chunks/index-fy7y2nz8.js +186 -0
  43. package/dist/chunks/index-fy7y2nz8.js.map +9 -0
  44. package/dist/chunks/index-gtk2gwsb.js +4555 -0
  45. package/dist/chunks/index-gtk2gwsb.js.map +31 -0
  46. package/dist/chunks/index-t6qz1770.js +95 -0
  47. package/dist/chunks/index-t6qz1770.js.map +11 -0
  48. package/dist/conformance.js +230462 -0
  49. package/dist/conformance.js.map +10 -0
  50. package/dist/entries/prompt.js +251 -0
  51. package/dist/entries/prompt.js.map +11 -0
  52. package/dist/entries/schema.js +1725 -0
  53. package/dist/entries/schema.js.map +11 -0
  54. package/dist/host/index.js +194 -0
  55. package/dist/host/index.js.map +9 -0
  56. package/dist/index.js +3851 -0
  57. package/dist/index.js.map +30 -0
  58. package/dist/types/src/a11y.d.ts +21 -0
  59. package/dist/types/src/animation.d.ts +76 -0
  60. package/dist/types/src/basic-map.d.ts +38 -0
  61. package/dist/types/src/builder.d.ts +50 -0
  62. package/dist/types/src/catalog.d.ts +54 -0
  63. package/dist/types/src/catalog.described.d.ts +33 -0
  64. package/dist/types/src/catalog.generated.d.ts +904 -0
  65. package/dist/types/src/chart.d.ts +46 -0
  66. package/dist/types/src/code.d.ts +44 -0
  67. package/dist/types/src/color.d.ts +20 -0
  68. package/dist/types/src/conformance.d.ts +39 -0
  69. package/dist/types/src/connector/app.d.ts +14 -0
  70. package/dist/types/src/connector/connector.d.ts +77 -0
  71. package/dist/types/src/connector/index.d.ts +4 -0
  72. package/dist/types/src/css.d.ts +27 -0
  73. package/dist/types/src/define.d.ts +66 -0
  74. package/dist/types/src/direction.d.ts +16 -0
  75. package/dist/types/src/dynamic.d.ts +161 -0
  76. package/dist/types/src/entries/prompt.d.ts +11 -0
  77. package/dist/types/src/entries/schema.d.ts +8 -0
  78. package/dist/types/src/expr.d.ts +71 -0
  79. package/dist/types/src/extension.d.ts +4 -0
  80. package/dist/types/src/format.d.ts +112 -0
  81. package/dist/types/src/geometry.d.ts +40 -0
  82. package/dist/types/src/host/contract.d.ts +225 -0
  83. package/dist/types/src/host/decoders.d.ts +61 -0
  84. package/dist/types/src/host/index.d.ts +15 -0
  85. package/dist/types/src/host/package.d.ts +102 -0
  86. package/dist/types/src/host/policy.d.ts +107 -0
  87. package/dist/types/src/host/record-store.d.ts +103 -0
  88. package/dist/types/src/host/records.d.ts +45 -0
  89. package/dist/types/src/host/router.d.ts +38 -0
  90. package/dist/types/src/host/runtime.d.ts +213 -0
  91. package/dist/types/src/host/signature.d.ts +52 -0
  92. package/dist/types/src/host/sources.d.ts +22 -0
  93. package/dist/types/src/host/tools.d.ts +42 -0
  94. package/dist/types/src/host/transports.d.ts +109 -0
  95. package/dist/types/src/index.d.ts +70 -0
  96. package/dist/types/src/layout.d.ts +20 -0
  97. package/dist/types/src/limits.d.ts +21 -0
  98. package/dist/types/src/list.d.ts +133 -0
  99. package/dist/types/src/locale.d.ts +22 -0
  100. package/dist/types/src/macros.d.ts +29 -0
  101. package/dist/types/src/overlay.d.ts +27 -0
  102. package/dist/types/src/prompt.d.ts +44 -0
  103. package/dist/types/src/qr-code.d.ts +30 -0
  104. package/dist/types/src/recipes.d.ts +17 -0
  105. package/dist/types/src/reducer.d.ts +41 -0
  106. package/dist/types/src/resizable.d.ts +38 -0
  107. package/dist/types/src/schema.d.ts +7 -0
  108. package/dist/types/src/strings.d.ts +13 -0
  109. package/dist/types/src/style.d.ts +201 -0
  110. package/dist/types/src/test-preload.d.ts +1 -0
  111. package/dist/types/src/text-clusters.d.ts +11 -0
  112. package/dist/types/src/text-shimmer.d.ts +24 -0
  113. package/dist/types/src/theme-types.d.ts +162 -0
  114. package/dist/types/src/theme.d.ts +75 -0
  115. package/dist/types/src/themes.d.ts +22 -0
  116. package/dist/types/src/tree-guides.d.ts +17 -0
  117. package/dist/types/src/types.d.ts +320 -0
  118. package/dist/types/src/validate.d.ts +31 -0
  119. package/dist/types/src/voice-wave.d.ts +181 -0
  120. package/dist/types/src/web/base-css.d.ts +1 -0
  121. package/dist/types/src/web/box-css.d.ts +63 -0
  122. package/dist/types/src/web/coerce.d.ts +32 -0
  123. package/dist/types/src/web/custom-icons.generated.d.ts +4 -0
  124. package/dist/types/src/web/data.d.ts +107 -0
  125. package/dist/types/src/web/dates.d.ts +12 -0
  126. package/dist/types/src/web/form.d.ts +44 -0
  127. package/dist/types/src/web/host-types.d.ts +126 -0
  128. package/dist/types/src/web/index.d.ts +35 -0
  129. package/dist/types/src/web/inputs.d.ts +55 -0
  130. package/dist/types/src/web/list.d.ts +16 -0
  131. package/dist/types/src/web/listbox.d.ts +14 -0
  132. package/dist/types/src/web/markdown.d.ts +96 -0
  133. package/dist/types/src/web/media.d.ts +63 -0
  134. package/dist/types/src/web/parts.d.ts +4 -0
  135. package/dist/types/src/web/primitives/alert-dialog.d.ts +10 -0
  136. package/dist/types/src/web/primitives/alert.d.ts +9 -0
  137. package/dist/types/src/web/primitives/avatar-color.d.ts +2 -0
  138. package/dist/types/src/web/primitives/avatar.d.ts +13 -0
  139. package/dist/types/src/web/primitives/badge.d.ts +10 -0
  140. package/dist/types/src/web/primitives/breadcrumb.d.ts +10 -0
  141. package/dist/types/src/web/primitives/button.d.ts +6 -0
  142. package/dist/types/src/web/primitives/calendar.d.ts +43 -0
  143. package/dist/types/src/web/primitives/card.d.ts +9 -0
  144. package/dist/types/src/web/primitives/checkbox.d.ts +5 -0
  145. package/dist/types/src/web/primitives/choice-tiles.d.ts +32 -0
  146. package/dist/types/src/web/primitives/cn.d.ts +3 -0
  147. package/dist/types/src/web/primitives/code-block.d.ts +24 -0
  148. package/dist/types/src/web/primitives/command.d.ts +134 -0
  149. package/dist/types/src/web/primitives/context-ring.d.ts +24 -0
  150. package/dist/types/src/web/primitives/dialog-arms.d.ts +6 -0
  151. package/dist/types/src/web/primitives/dialog.d.ts +24 -0
  152. package/dist/types/src/web/primitives/disclosure-header.d.ts +5 -0
  153. package/dist/types/src/web/primitives/dock.d.ts +42 -0
  154. package/dist/types/src/web/primitives/dropdown-menu.d.ts +14 -0
  155. package/dist/types/src/web/primitives/empty-state.d.ts +15 -0
  156. package/dist/types/src/web/primitives/glass-card.d.ts +4 -0
  157. package/dist/types/src/web/primitives/hover-card.d.ts +7 -0
  158. package/dist/types/src/web/primitives/icon-disc.d.ts +12 -0
  159. package/dist/types/src/web/primitives/index.d.ts +50 -0
  160. package/dist/types/src/web/primitives/input.d.ts +5 -0
  161. package/dist/types/src/web/primitives/kbd.d.ts +4 -0
  162. package/dist/types/src/web/primitives/label.d.ts +3 -0
  163. package/dist/types/src/web/primitives/measure.d.ts +16 -0
  164. package/dist/types/src/web/primitives/menu-surface.d.ts +17 -0
  165. package/dist/types/src/web/primitives/meter.d.ts +21 -0
  166. package/dist/types/src/web/primitives/popover.d.ts +3 -0
  167. package/dist/types/src/web/primitives/progress-ring.d.ts +5 -0
  168. package/dist/types/src/web/primitives/progress.d.ts +8 -0
  169. package/dist/types/src/web/primitives/scroll-area.d.ts +49 -0
  170. package/dist/types/src/web/primitives/segmented-control.d.ts +5 -0
  171. package/dist/types/src/web/primitives/select.d.ts +47 -0
  172. package/dist/types/src/web/primitives/separator.d.ts +3 -0
  173. package/dist/types/src/web/primitives/sheet-chrome.d.ts +4 -0
  174. package/dist/types/src/web/primitives/sheet.d.ts +20 -0
  175. package/dist/types/src/web/primitives/skeleton.d.ts +3 -0
  176. package/dist/types/src/web/primitives/spinner.d.ts +3 -0
  177. package/dist/types/src/web/primitives/switch.d.ts +4 -0
  178. package/dist/types/src/web/primitives/table.d.ts +11 -0
  179. package/dist/types/src/web/primitives/tabs.d.ts +13 -0
  180. package/dist/types/src/web/primitives/textarea.d.ts +3 -0
  181. package/dist/types/src/web/primitives/toast.d.ts +163 -0
  182. package/dist/types/src/web/primitives/tooltip.d.ts +3 -0
  183. package/dist/types/src/web/primitives/truncate.d.ts +7 -0
  184. package/dist/types/src/web/primitives/typeahead-portal.d.ts +12 -0
  185. package/dist/types/src/web/primitives/voice-wave.d.ts +50 -0
  186. package/dist/types/src/web/round5.d.ts +107 -0
  187. package/dist/types/src/web/share.d.ts +6 -0
  188. package/dist/types/src/web/table.d.ts +20 -0
  189. package/dist/types/src/web/theme-css.d.ts +69 -0
  190. package/dist/types/src/web/urls.d.ts +21 -0
  191. package/dist/web/index.js +2565 -0
  192. package/dist/web/index.js.map +28 -0
  193. package/dist/web/primitives/index.js +1476 -0
  194. package/dist/web/primitives/index.js.map +57 -0
  195. package/docs/components.generated.json +6783 -0
  196. package/docs/package-format.md +182 -0
  197. package/docs/round-1-contract.md +679 -0
  198. package/docs/round-2-contract.md +476 -0
  199. package/docs/round-3-contract.md +174 -0
  200. package/docs/round-5-contract.md +268 -0
  201. package/docs/themes.generated.json +3647 -0
  202. package/fixtures/animations.json +2890 -0
  203. package/fixtures/bench-list.json +58 -0
  204. package/fixtures/bind-time.json +54734 -0
  205. package/fixtures/catalog-basic-map.json +1692 -0
  206. package/fixtures/catalog-components.json +10293 -0
  207. package/fixtures/catalog-extension.json +620 -0
  208. package/fixtures/catalog-macros.json +51805 -0
  209. package/fixtures/code-tokens.json +1993 -0
  210. package/fixtures/conformance-baseline.json +59016 -0
  211. package/fixtures/conformance-cases.json +49 -0
  212. package/fixtures/conformance-known.json +2111 -0
  213. package/fixtures/control-geometry.json +5129 -0
  214. package/fixtures/dashboard.data.json +74 -0
  215. package/fixtures/dashboard.json +781 -0
  216. package/fixtures/demo-surface.json +47 -0
  217. package/fixtures/format.json +870 -0
  218. package/fixtures/host-package.json +1262 -0
  219. package/fixtures/host-policy.json +1209 -0
  220. package/fixtures/host-router.json +2034 -0
  221. package/fixtures/host-transport.json +590 -0
  222. package/fixtures/interactions-round1.json +1058 -0
  223. package/fixtures/kitchen-sink.expanded.json +11972 -0
  224. package/fixtures/kitchen-sink.json +3140 -0
  225. package/fixtures/layout-geometry-round1.json +7278 -0
  226. package/fixtures/layout-geometry.json +2072 -0
  227. package/fixtures/overlay-geometry.json +272 -0
  228. package/fixtures/pointer.json +89 -0
  229. package/fixtures/primitive-specimens.json +59 -0
  230. package/fixtures/prompt-budget.json +33 -0
  231. package/fixtures/qr-code.json +480 -0
  232. package/fixtures/resizable.json +714 -0
  233. package/fixtures/round4-contract.json +2985 -0
  234. package/fixtures/specimens.json +11168 -0
  235. package/fixtures/style-conditions.json +336 -0
  236. package/fixtures/template-items.json +2215 -0
  237. package/fixtures/text-clusters.json +65 -0
  238. package/fixtures/text-direction.json +309 -0
  239. package/fixtures/text-shimmer.json +96 -0
  240. package/fixtures/theme-extends.json +573 -0
  241. package/fixtures/theme-invalid.json +1300 -0
  242. package/fixtures/theme-recipes.json +61762 -0
  243. package/fixtures/theme-resolved.json +25969 -0
  244. package/fixtures/toast-stack.json +215 -0
  245. package/fixtures/tree-guides.json +224 -0
  246. package/fixtures/virtual-list.json +733 -0
  247. package/fixtures/voice-wave.json +19236 -0
  248. package/generated/ExponentialUICatalog.generated.kt +67 -0
  249. package/generated/ExponentialUICatalog.generated.swift +67 -0
  250. package/generated/ExponentialUIThemes.generated.kt +23 -0
  251. package/generated/ExponentialUIThemes.generated.swift +23 -0
  252. package/generated/catalog.descriptions.generated.rs +6 -0
  253. package/generated/catalog.generated.rs +80 -0
  254. package/generated/catalog.themes.generated.rs +34 -0
  255. package/generated/core.descriptions.json +2726 -0
  256. package/generated/core.runtime.json +3944 -0
  257. package/package.json +87 -4
  258. package/themes/exponential.recipes.json +49 -0
  259. package/themes/exponential.theme.json +768 -0
  260. package/themes/neutral.theme.json +6178 -0
  261. package/themes/orange.theme.json +43 -0
  262. package/themes/playful.theme.json +219 -0
  263. package/vendor/a2ui/LICENSE.txt +203 -0
  264. package/vendor/a2ui/README.md +27 -0
  265. package/vendor/a2ui/v0_9/basic_catalog.json +1387 -0
  266. package/vendor/a2ui/v0_9/basic_catalog_rules.txt +5 -0
  267. package/vendor/a2ui/v0_9/client_capabilities.json +97 -0
  268. package/vendor/a2ui/v0_9/client_to_server.json +104 -0
  269. package/vendor/a2ui/v0_9/common_types.json +315 -0
  270. package/vendor/a2ui/v0_9/server_to_client.json +132 -0
  271. package/vendor/json-render/LICENSE.txt +201 -0
  272. package/vendor/json-render/README.md +13 -0
  273. package/vendor/nayuki-qr/LICENSE.txt +20 -0
  274. package/vendor/nayuki-qr/README.md +10 -0
@@ -0,0 +1,272 @@
1
+ {
2
+ "$comment": "VAPP-87: the OVERLAY placement contract (src/overlay.ts placeOverlay): an anchor box, the overlay's size and the viewport, a preferred side → where it lands. OVERLAY_OFFSET (4 px) from the anchor, centred on the cross axis; FLIP to the opposite side when the preferred side has less room than the overlay needs and the opposite has more; SHIFT on the cross axis to stay OVERLAY_PADDING (8 px) inside the viewport. `expected` is what the TS rule returns (src/overlay.test.ts replays it); the React renderer checks that Radix's popper lands within `tolerancePx` of it in headless Chromium (browser/overlay.test.ts), the Rust core's layer manager (VAPP-86) reproduces it exactly.",
3
+ "offset": 4,
4
+ "padding": 8,
5
+ "tolerancePx": 2,
6
+ "cases": [
7
+ {
8
+ "name": "bottom, room below",
9
+ "anchor": {
10
+ "x": 300,
11
+ "y": 100,
12
+ "width": 120,
13
+ "height": 36
14
+ },
15
+ "size": {
16
+ "width": 200,
17
+ "height": 120
18
+ },
19
+ "viewport": {
20
+ "width": 800,
21
+ "height": 600
22
+ },
23
+ "side": "bottom",
24
+ "expected": {
25
+ "x": 260,
26
+ "y": 140,
27
+ "side": "bottom",
28
+ "flipped": false
29
+ }
30
+ },
31
+ {
32
+ "name": "bottom, no room below → flips to top",
33
+ "anchor": {
34
+ "x": 300,
35
+ "y": 500,
36
+ "width": 120,
37
+ "height": 36
38
+ },
39
+ "size": {
40
+ "width": 200,
41
+ "height": 120
42
+ },
43
+ "viewport": {
44
+ "width": 800,
45
+ "height": 600
46
+ },
47
+ "side": "bottom",
48
+ "expected": {
49
+ "x": 260,
50
+ "y": 376,
51
+ "side": "top",
52
+ "flipped": true
53
+ }
54
+ },
55
+ {
56
+ "name": "top, room above",
57
+ "anchor": {
58
+ "x": 300,
59
+ "y": 400,
60
+ "width": 120,
61
+ "height": 36
62
+ },
63
+ "size": {
64
+ "width": 200,
65
+ "height": 120
66
+ },
67
+ "viewport": {
68
+ "width": 800,
69
+ "height": 600
70
+ },
71
+ "side": "top",
72
+ "expected": {
73
+ "x": 260,
74
+ "y": 276,
75
+ "side": "top",
76
+ "flipped": false
77
+ }
78
+ },
79
+ {
80
+ "name": "top, no room above → flips to bottom",
81
+ "anchor": {
82
+ "x": 300,
83
+ "y": 20,
84
+ "width": 120,
85
+ "height": 36
86
+ },
87
+ "size": {
88
+ "width": 200,
89
+ "height": 120
90
+ },
91
+ "viewport": {
92
+ "width": 800,
93
+ "height": 600
94
+ },
95
+ "side": "top",
96
+ "expected": {
97
+ "x": 260,
98
+ "y": 60,
99
+ "side": "bottom",
100
+ "flipped": true
101
+ }
102
+ },
103
+ {
104
+ "name": "right, room",
105
+ "anchor": {
106
+ "x": 100,
107
+ "y": 250,
108
+ "width": 120,
109
+ "height": 36
110
+ },
111
+ "size": {
112
+ "width": 160,
113
+ "height": 80
114
+ },
115
+ "viewport": {
116
+ "width": 800,
117
+ "height": 600
118
+ },
119
+ "side": "right",
120
+ "expected": {
121
+ "x": 224,
122
+ "y": 228,
123
+ "side": "right",
124
+ "flipped": false
125
+ }
126
+ },
127
+ {
128
+ "name": "right, no room → flips to left",
129
+ "anchor": {
130
+ "x": 660,
131
+ "y": 250,
132
+ "width": 120,
133
+ "height": 36
134
+ },
135
+ "size": {
136
+ "width": 160,
137
+ "height": 80
138
+ },
139
+ "viewport": {
140
+ "width": 800,
141
+ "height": 600
142
+ },
143
+ "side": "right",
144
+ "expected": {
145
+ "x": 496,
146
+ "y": 228,
147
+ "side": "left",
148
+ "flipped": true
149
+ }
150
+ },
151
+ {
152
+ "name": "left, no room → flips to right",
153
+ "anchor": {
154
+ "x": 20,
155
+ "y": 250,
156
+ "width": 120,
157
+ "height": 36
158
+ },
159
+ "size": {
160
+ "width": 160,
161
+ "height": 80
162
+ },
163
+ "viewport": {
164
+ "width": 800,
165
+ "height": 600
166
+ },
167
+ "side": "left",
168
+ "expected": {
169
+ "x": 144,
170
+ "y": 228,
171
+ "side": "right",
172
+ "flipped": true
173
+ }
174
+ },
175
+ {
176
+ "name": "bottom, anchor at the left edge → shifted right",
177
+ "anchor": {
178
+ "x": 4,
179
+ "y": 100,
180
+ "width": 40,
181
+ "height": 36
182
+ },
183
+ "size": {
184
+ "width": 240,
185
+ "height": 100
186
+ },
187
+ "viewport": {
188
+ "width": 800,
189
+ "height": 600
190
+ },
191
+ "side": "bottom",
192
+ "expected": {
193
+ "x": 8,
194
+ "y": 140,
195
+ "side": "bottom",
196
+ "flipped": false
197
+ }
198
+ },
199
+ {
200
+ "name": "bottom, anchor at the right edge → shifted left",
201
+ "anchor": {
202
+ "x": 756,
203
+ "y": 100,
204
+ "width": 40,
205
+ "height": 36
206
+ },
207
+ "size": {
208
+ "width": 240,
209
+ "height": 100
210
+ },
211
+ "viewport": {
212
+ "width": 800,
213
+ "height": 600
214
+ },
215
+ "side": "bottom",
216
+ "expected": {
217
+ "x": 552,
218
+ "y": 140,
219
+ "side": "bottom",
220
+ "flipped": false
221
+ }
222
+ },
223
+ {
224
+ "name": "top, just enough room above → no flip",
225
+ "anchor": {
226
+ "x": 300,
227
+ "y": 120,
228
+ "width": 120,
229
+ "height": 36
230
+ },
231
+ "size": {
232
+ "width": 200,
233
+ "height": 60
234
+ },
235
+ "viewport": {
236
+ "width": 800,
237
+ "height": 600
238
+ },
239
+ "side": "top",
240
+ "expected": {
241
+ "x": 260,
242
+ "y": 56,
243
+ "side": "top",
244
+ "flipped": false
245
+ }
246
+ },
247
+ {
248
+ "name": "phone viewport, bottom sheet-like popover flips",
249
+ "anchor": {
250
+ "x": 20,
251
+ "y": 760,
252
+ "width": 350,
253
+ "height": 44
254
+ },
255
+ "size": {
256
+ "width": 300,
257
+ "height": 200
258
+ },
259
+ "viewport": {
260
+ "width": 390,
261
+ "height": 844
262
+ },
263
+ "side": "bottom",
264
+ "expected": {
265
+ "x": 45,
266
+ "y": 556,
267
+ "side": "top",
268
+ "flipped": true
269
+ }
270
+ }
271
+ ]
272
+ }
@@ -0,0 +1,89 @@
1
+ {
2
+ "$comment": "EXP-1385. writes: write `value` at `pointer` in `data` (none = remove): data = `expected`, the pointer reads back `read`; or refused with `error`, data unchanged. reads: = `expected`. Absent = nothing. `-` appends and reads the LAST element, so a landed write reads back; an index is digits only.",
3
+ "writes": [
4
+ {
5
+ "name": "fuzz crash-8245f070: - appends",
6
+ "data": [2],
7
+ "pointer": "-",
8
+ "value": [1],
9
+ "expected": [2, [1]],
10
+ "read": [1]
11
+ },
12
+ {
13
+ "name": "fuzz crash-94c2e189: - appends to []",
14
+ "data": [],
15
+ "pointer": "-",
16
+ "value": "{\n\n\"\"",
17
+ "expected": ["{\n\n\"\""],
18
+ "read": "{\n\n\"\""
19
+ },
20
+ {
21
+ "name": "/- appends",
22
+ "data": { "items": [1, 2] },
23
+ "pointer": "/items/-",
24
+ "value": 3,
25
+ "expected": { "items": [1, 2, 3] },
26
+ "read": 3
27
+ },
28
+ {
29
+ "name": "- mid-path",
30
+ "data": { "items": [1] },
31
+ "pointer": "/items/-/name",
32
+ "value": "x",
33
+ "expected": { "items": [1, { "name": "x" }] },
34
+ "read": "x"
35
+ },
36
+ {
37
+ "name": "the length appends",
38
+ "data": { "a": [1] },
39
+ "pointer": "/a/1",
40
+ "value": 2,
41
+ "expected": { "a": [1, 2] },
42
+ "read": 2
43
+ },
44
+ {
45
+ "name": "- is an object key",
46
+ "data": { "o": {} },
47
+ "pointer": "/o/-",
48
+ "value": 1,
49
+ "expected": { "o": { "-": 1 } },
50
+ "read": 1
51
+ },
52
+ {
53
+ "name": "no value removes",
54
+ "data": { "a": [1, 2] },
55
+ "pointer": "/a/0",
56
+ "expected": { "a": [2] },
57
+ "read": 2
58
+ },
59
+ {
60
+ "name": "refused: a key",
61
+ "data": { "a": [1] },
62
+ "pointer": "/a/x",
63
+ "value": 0,
64
+ "error": "data: \"x\" is not an array index"
65
+ },
66
+ {
67
+ "name": "refused: a signed index",
68
+ "data": { "a": [1] },
69
+ "pointer": "/a/+0",
70
+ "value": 0,
71
+ "error": "data: \"+0\" is not an array index"
72
+ },
73
+ {
74
+ "name": "refused: past the end",
75
+ "data": { "a": [1] },
76
+ "pointer": "/a/3",
77
+ "value": 0,
78
+ "error": "data: index 3 is past the end of the array (1 items)"
79
+ }
80
+ ],
81
+ "reads": [
82
+ { "name": "- reads the last element", "data": [1, 2], "pointer": "/-", "expected": 2 },
83
+ { "name": "- in [] reads nothing", "data": [], "pointer": "/-" },
84
+ { "name": "a signed index reads nothing", "data": [1, 2], "pointer": "/+1" },
85
+ { "name": "leading zeros read the index", "data": [1, 2], "pointer": "/01", "expected": 2 },
86
+ { "name": "no leading slash", "data": { "a": { "b": 1 } }, "pointer": "a/b", "expected": 1 },
87
+ { "name": "an inherited key", "data": {}, "pointer": "/constructor" }
88
+ ]
89
+ }
@@ -0,0 +1,59 @@
1
+ {
2
+ "$comment": "FEED-131: the PRIMITIVE specimens of the web-parity gate (conformance/parity.ts, group `primitive`): `@exponential_app/eui-react/primitives` (Radix + dist/exponential-ui-react.css) = the reference, `@exponential_app/eui-solid/primitives` (+ dist/exponential-ui-solid.css, byte-identical) = the candidate. Each row runs × [exponential light, orange dark] through both harnesses' `?view=primitives&id=<id>&theme=&mode=&width=`; the specimen itself lives in harness/primitives/<primitive>.ts(x) of EACH package (SPECIMENS[id]). The whole <body> is compared (DOM incl. body attributes, every element's computed style + frame, pixels), 0 tolerance.",
3
+ "$fields": {
4
+ "id": "`<primitive>/<variant>`, unique; the harness key (SPECIMENS[id]) on both sides",
5
+ "primitive": "the harness module that owns it: smoke | plain | controls | overlays | data | calendar",
6
+ "viewport": "{ width, height } of the page (width is also the `width` query)",
7
+ "open": "true = an overlay opens on mount (the specimen passes defaultOpen); the gate waits for window.__xuiOverlay?.() !== null when the page defines it, then two frames",
8
+ "interact": "null | \"hover\" | \"focus\": the gate also runs a case that hovers / focuses the FIRST [data-xui-target] inside the specimen on both sides, waits two frames, then dumps"
9
+ },
10
+ "specimens": [
11
+ { "id": "smoke/button", "primitive": "smoke", "viewport": { "width": 900, "height": 600 }, "open": false, "interact": null },
12
+ { "id": "plain/button", "primitive": "plain", "viewport": { "width": 1100, "height": 760 }, "open": false, "interact": "hover" },
13
+ { "id": "plain/badge", "primitive": "plain", "viewport": { "width": 900, "height": 200 }, "open": false, "interact": null },
14
+ { "id": "plain/alert", "primitive": "plain", "viewport": { "width": 900, "height": 300 }, "open": false, "interact": null },
15
+ { "id": "plain/card", "primitive": "plain", "viewport": { "width": 900, "height": 400 }, "open": false, "interact": null },
16
+ { "id": "plain/input-textarea", "primitive": "plain", "viewport": { "width": 900, "height": 700 }, "open": false, "interact": "focus" },
17
+ { "id": "plain/kbd-separator-skeleton-spinner", "primitive": "plain", "viewport": { "width": 900, "height": 400 }, "open": false, "interact": null },
18
+ { "id": "plain/empty-state", "primitive": "plain", "viewport": { "width": 900, "height": 800 }, "open": false, "interact": null },
19
+ { "id": "plain/icon-disc-meter", "primitive": "plain", "viewport": { "width": 900, "height": 300 }, "open": false, "interact": null },
20
+ { "id": "plain/progress", "primitive": "plain", "viewport": { "width": 900, "height": 200 }, "open": false, "interact": null },
21
+ { "id": "plain/rings", "primitive": "plain", "viewport": { "width": 900, "height": 200 }, "open": false, "interact": null },
22
+ { "id": "plain/voice-wave", "primitive": "plain", "viewport": { "width": 900, "height": 300 }, "open": false, "interact": null },
23
+ { "id": "plain/disclosure-header", "primitive": "plain", "viewport": { "width": 900, "height": 300 }, "open": false, "interact": "hover" },
24
+ { "id": "plain/choice-tiles", "primitive": "plain", "viewport": { "width": 900, "height": 500 }, "open": false, "interact": null },
25
+ { "id": "plain/code-block", "primitive": "plain", "viewport": { "width": 900, "height": 700 }, "open": false, "interact": null },
26
+ { "id": "plain/table", "primitive": "plain", "viewport": { "width": 900, "height": 400 }, "open": false, "interact": null },
27
+ { "id": "plain/breadcrumb", "primitive": "plain", "viewport": { "width": 900, "height": 200 }, "open": false, "interact": "hover" },
28
+ { "id": "calendar/single", "primitive": "calendar", "viewport": { "width": 900, "height": 420 }, "open": false, "interact": "focus" },
29
+ { "id": "calendar/range", "primitive": "calendar", "viewport": { "width": 900, "height": 420 }, "open": false, "interact": null },
30
+ { "id": "calendar/multiple-two-months", "primitive": "calendar", "viewport": { "width": 900, "height": 420 }, "open": false, "interact": null },
31
+ { "id": "calendar/dropdown", "primitive": "calendar", "viewport": { "width": 900, "height": 420 }, "open": false, "interact": null },
32
+ { "id": "calendar/disabled-week-numbers", "primitive": "calendar", "viewport": { "width": 900, "height": 420 }, "open": false, "interact": null },
33
+ { "id": "calendar/rtl", "primitive": "calendar", "viewport": { "width": 900, "height": 420 }, "open": false, "interact": null },
34
+ { "id": "controls/select-closed", "primitive": "controls", "viewport": { "width": 900, "height": 600 }, "open": false, "interact": null },
35
+ { "id": "controls/select-open", "primitive": "controls", "viewport": { "width": 900, "height": 600 }, "open": true, "interact": null },
36
+ { "id": "controls/select-open-popper", "primitive": "controls", "viewport": { "width": 900, "height": 600 }, "open": true, "interact": null },
37
+ { "id": "controls/command", "primitive": "controls", "viewport": { "width": 900, "height": 600 }, "open": false, "interact": null },
38
+ { "id": "controls/command-empty", "primitive": "controls", "viewport": { "width": 900, "height": 600 }, "open": false, "interact": null },
39
+ { "id": "controls/checkbox", "primitive": "controls", "viewport": { "width": 900, "height": 200 }, "open": false, "interact": "focus" },
40
+ { "id": "controls/switch", "primitive": "controls", "viewport": { "width": 900, "height": 200 }, "open": false, "interact": null },
41
+ { "id": "controls/tabs", "primitive": "controls", "viewport": { "width": 900, "height": 300 }, "open": false, "interact": "hover" },
42
+ { "id": "controls/segmented-control", "primitive": "controls", "viewport": { "width": 900, "height": 300 }, "open": false, "interact": null },
43
+ { "id": "controls/collapsible", "primitive": "controls", "viewport": { "width": 900, "height": 300 }, "open": false, "interact": null },
44
+ { "id": "controls/scroll-area", "primitive": "controls", "viewport": { "width": 900, "height": 300 }, "open": false, "interact": "hover" },
45
+ { "id": "controls/avatar", "primitive": "controls", "viewport": { "width": 900, "height": 200 }, "open": false, "interact": null },
46
+ { "id": "overlays/dialog-open", "primitive": "overlays", "viewport": { "width": 900, "height": 700 }, "open": true, "interact": null },
47
+ { "id": "overlays/dialog-sheet-phone", "primitive": "overlays", "viewport": { "width": 390, "height": 800 }, "open": true, "interact": null },
48
+ { "id": "overlays/sheet-right", "primitive": "overlays", "viewport": { "width": 900, "height": 700 }, "open": true, "interact": null },
49
+ { "id": "overlays/sheet-bottom", "primitive": "overlays", "viewport": { "width": 900, "height": 700 }, "open": true, "interact": null },
50
+ { "id": "overlays/alert-dialog", "primitive": "overlays", "viewport": { "width": 900, "height": 700 }, "open": true, "interact": null },
51
+ { "id": "overlays/popover", "primitive": "overlays", "viewport": { "width": 900, "height": 500 }, "open": true, "interact": null },
52
+ { "id": "overlays/tooltip", "primitive": "overlays", "viewport": { "width": 900, "height": 400 }, "open": true, "interact": null },
53
+ { "id": "overlays/hover-card", "primitive": "overlays", "viewport": { "width": 900, "height": 500 }, "open": true, "interact": null },
54
+ { "id": "overlays/dropdown-menu", "primitive": "overlays", "viewport": { "width": 900, "height": 700 }, "open": true, "interact": null },
55
+ { "id": "overlays/dropdown-menu-sub", "primitive": "overlays", "viewport": { "width": 900, "height": 500 }, "open": true, "interact": null },
56
+ { "id": "overlays/toast-stack", "primitive": "overlays", "viewport": { "width": 900, "height": 600 }, "open": false, "interact": "hover" },
57
+ { "id": "overlays/triggers", "primitive": "overlays", "viewport": { "width": 1100, "height": 400 }, "open": false, "interact": "hover" }
58
+ ]
59
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "$comment": "AUTO-GENERATED by packages/exponential-ui/scripts/generate.ts — do not edit.\nSource of truth: packages/exponential-ui/catalog/core.catalog.json (+ tokens.json, style.json, basic-map.json, strings.json, locale.json, code.json, a11y.json, layout.json). The size of catalogPrompt() on record: prompt.test.ts fails when the full prompt passes budgetTokens (cut descriptions before components) or when these numbers drift from the catalog without being regenerated. tokens = chars / 4, an estimate. VAPP-108: `index` = sections rules + index + functions + style (the components then come one at a time through componentPrompt, `perComponent`), `rules` = the rules alone.",
3
+ "budgetTokens": 7900,
4
+ "full": {
5
+ "components": 87,
6
+ "chars": 31599,
7
+ "tokens": 7900
8
+ },
9
+ "lite": {
10
+ "components": 61,
11
+ "chars": 22948,
12
+ "tokens": 5737
13
+ },
14
+ "terse": {
15
+ "components": 87,
16
+ "chars": 23419,
17
+ "tokens": 5855
18
+ },
19
+ "index": {
20
+ "components": 87,
21
+ "chars": 11639,
22
+ "tokens": 2910
23
+ },
24
+ "rules": {
25
+ "chars": 2060,
26
+ "tokens": 515
27
+ },
28
+ "perComponent": {
29
+ "mean": 320,
30
+ "max": 1097,
31
+ "meanTokens": 80
32
+ }
33
+ }