glchat-a2ui-react-renderer 0.2.8 → 0.3.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 (149) hide show
  1. package/README.md +59 -10
  2. package/dist/index.d.ts +8 -7
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +9 -8
  5. package/dist/src/Provider.d.ts +24 -17
  6. package/dist/src/Provider.d.ts.map +1 -1
  7. package/dist/src/Provider.js +36 -52
  8. package/dist/src/SurfaceRenderer.d.ts +2 -4
  9. package/dist/src/SurfaceRenderer.d.ts.map +1 -1
  10. package/dist/src/SurfaceRenderer.js +8 -21
  11. package/dist/src/components/a2ui/v0_8/Button/Button.d.ts +4 -0
  12. package/dist/src/components/a2ui/v0_8/Button/Button.d.ts.map +1 -0
  13. package/dist/src/components/a2ui/v0_8/Button/Button.js +18 -0
  14. package/dist/src/components/a2ui/v0_8/Button/theme.d.ts +4 -0
  15. package/dist/src/components/a2ui/v0_8/Button/theme.d.ts.map +1 -0
  16. package/dist/src/components/a2ui/v0_8/Button/theme.js +4 -0
  17. package/dist/src/components/a2ui/v0_8/ButtonAsLink/ButtonAsLink.d.ts +4 -0
  18. package/dist/src/components/a2ui/v0_8/ButtonAsLink/ButtonAsLink.d.ts.map +1 -0
  19. package/dist/src/components/a2ui/v0_8/ButtonAsLink/ButtonAsLink.js +43 -0
  20. package/dist/src/components/a2ui/v0_8/ButtonAsLink/theme.d.ts +7 -0
  21. package/dist/src/components/a2ui/v0_8/ButtonAsLink/theme.d.ts.map +1 -0
  22. package/dist/src/components/a2ui/v0_8/ButtonAsLink/theme.js +7 -0
  23. package/dist/src/components/a2ui/v0_8/Card/theme.d.ts +4 -0
  24. package/dist/src/components/a2ui/v0_8/Card/theme.d.ts.map +1 -0
  25. package/dist/src/components/a2ui/v0_8/Card/theme.js +15 -0
  26. package/dist/src/components/a2ui/v0_8/DateTimeInput/theme.d.ts +7 -0
  27. package/dist/src/components/a2ui/v0_8/DateTimeInput/theme.d.ts.map +1 -0
  28. package/dist/src/components/a2ui/v0_8/DateTimeInput/theme.js +9 -0
  29. package/dist/src/components/a2ui/v0_8/DestructiveButton/DestructiveButton.d.ts +4 -0
  30. package/dist/src/components/a2ui/v0_8/DestructiveButton/DestructiveButton.d.ts.map +1 -0
  31. package/dist/src/components/a2ui/v0_8/DestructiveButton/DestructiveButton.js +23 -0
  32. package/dist/src/components/a2ui/v0_8/DestructiveButton/theme.d.ts +7 -0
  33. package/dist/src/components/a2ui/v0_8/DestructiveButton/theme.d.ts.map +1 -0
  34. package/dist/src/components/a2ui/v0_8/DestructiveButton/theme.js +7 -0
  35. package/dist/src/components/a2ui/v0_8/MultipleChoice/MultipleChoice.d.ts +4 -0
  36. package/dist/src/components/a2ui/v0_8/MultipleChoice/MultipleChoice.d.ts.map +1 -0
  37. package/dist/src/components/a2ui/v0_8/MultipleChoice/MultipleChoice.js +72 -0
  38. package/dist/src/components/a2ui/v0_8/TagInput/TagInput.d.ts +4 -0
  39. package/dist/src/components/a2ui/v0_8/TagInput/TagInput.d.ts.map +1 -0
  40. package/dist/src/components/a2ui/v0_8/TagInput/TagInput.js +49 -0
  41. package/dist/src/components/a2ui/v0_8/TagInput/theme.d.ts +11 -0
  42. package/dist/src/components/a2ui/v0_8/TagInput/theme.d.ts.map +1 -0
  43. package/dist/src/components/a2ui/v0_8/TagInput/theme.js +9 -0
  44. package/dist/src/components/a2ui/v0_8/TextField/theme.d.ts +7 -0
  45. package/dist/src/components/a2ui/v0_8/TextField/theme.d.ts.map +1 -0
  46. package/dist/src/components/a2ui/v0_8/TextField/theme.js +9 -0
  47. package/dist/src/components/a2ui/v0_8/Timeout/Timeout.d.ts +4 -0
  48. package/dist/src/components/a2ui/v0_8/Timeout/Timeout.d.ts.map +1 -0
  49. package/dist/src/components/a2ui/v0_8/Timeout/Timeout.js +29 -0
  50. package/dist/src/components/a2ui/v0_8/Timeout/theme.d.ts +8 -0
  51. package/dist/src/components/a2ui/v0_8/Timeout/theme.d.ts.map +1 -0
  52. package/dist/src/components/a2ui/v0_8/Timeout/theme.js +12 -0
  53. package/dist/src/components/a2ui/v0_8/types.d.ts +12 -0
  54. package/dist/src/components/a2ui/v0_8/types.d.ts.map +1 -0
  55. package/dist/src/components/a2ui/v0_8/types.js +1 -0
  56. package/dist/src/components/a2ui/v0_9/Button/Button.d.ts.map +1 -0
  57. package/dist/src/components/a2ui/{Button → v0_9/Button}/Button.js +1 -1
  58. package/dist/src/components/a2ui/v0_9/ChoicePicker/ChoicePicker.d.ts.map +1 -0
  59. package/dist/src/components/a2ui/{ChoicePicker → v0_9/ChoicePicker}/ChoicePicker.js +4 -4
  60. package/dist/src/components/a2ui/v0_9/ChoicePicker/theme.d.ts +4 -0
  61. package/dist/src/components/a2ui/v0_9/ChoicePicker/theme.d.ts.map +1 -0
  62. package/dist/src/components/a2ui/v0_9/ChoicePicker/theme.js +11 -0
  63. package/dist/src/components/a2ui/{TagInput → v0_9/TagInput}/TagInput.d.ts +32 -32
  64. package/dist/src/components/a2ui/v0_9/TagInput/TagInput.d.ts.map +1 -0
  65. package/dist/src/components/a2ui/v0_9/TagInput/TagInput.js +40 -0
  66. package/dist/src/components/a2ui/v0_9/Timeout/Timeout.d.ts.map +1 -0
  67. package/dist/src/components/a2ui/{Timeout → v0_9/Timeout}/Timeout.js +1 -1
  68. package/dist/src/components/a2ui/v0_9/common.d.ts.map +1 -0
  69. package/dist/src/components/ui/Button/Button.d.ts.map +1 -1
  70. package/dist/src/components/ui/Button/Button.js +2 -2
  71. package/dist/src/components/ui/Button/ButtonAsLink.d.ts +15 -0
  72. package/dist/src/components/ui/Button/ButtonAsLink.d.ts.map +1 -0
  73. package/dist/src/components/ui/Button/ButtonAsLink.js +17 -0
  74. package/dist/src/components/ui/Checkbox/Checkbox.d.ts.map +1 -1
  75. package/dist/src/components/ui/Checkbox/Checkbox.js +2 -2
  76. package/dist/src/components/{a2ui/ChoicePicker → ui/CheckboxList}/CheckboxList.d.ts +3 -2
  77. package/dist/src/components/ui/CheckboxList/CheckboxList.d.ts.map +1 -0
  78. package/dist/src/components/{a2ui/ChoicePicker → ui/CheckboxList}/CheckboxList.js +16 -5
  79. package/dist/src/components/{a2ui/ChoicePicker → ui/CheckboxList}/theme.d.ts +0 -5
  80. package/dist/src/components/ui/CheckboxList/theme.d.ts.map +1 -0
  81. package/dist/src/components/{a2ui/ChoicePicker → ui/CheckboxList}/theme.js +0 -14
  82. package/dist/src/components/ui/MultiSelect/MultiSelect.d.ts.map +1 -1
  83. package/dist/src/components/ui/MultiSelect/MultiSelect.js +2 -3
  84. package/dist/src/components/ui/Select/Select.d.ts.map +1 -1
  85. package/dist/src/components/ui/Select/Select.js +2 -1
  86. package/dist/src/components/ui/TagInput/TagInput.d.ts +18 -0
  87. package/dist/src/components/ui/TagInput/TagInput.d.ts.map +1 -0
  88. package/dist/src/components/{a2ui → ui}/TagInput/TagInput.js +16 -48
  89. package/dist/src/components/ui/TagInput/theme.d.ts.map +1 -0
  90. package/dist/src/components/{a2ui → ui}/TagInput/theme.js +1 -1
  91. package/dist/src/utils/css.d.ts +4 -0
  92. package/dist/src/utils/css.d.ts.map +1 -0
  93. package/dist/src/utils/css.js +5 -0
  94. package/dist/src/utils/detectVersion.d.ts +9 -0
  95. package/dist/src/utils/detectVersion.d.ts.map +1 -0
  96. package/dist/src/utils/detectVersion.js +29 -0
  97. package/dist/src/utils/href.d.ts +11 -0
  98. package/dist/src/utils/href.d.ts.map +1 -0
  99. package/dist/src/utils/href.js +34 -0
  100. package/dist/src/v0_8/Provider.d.ts +17 -0
  101. package/dist/src/v0_8/Provider.d.ts.map +1 -0
  102. package/dist/src/v0_8/Provider.js +59 -0
  103. package/dist/src/v0_8/SurfaceRenderer.d.ts +3 -0
  104. package/dist/src/v0_8/SurfaceRenderer.d.ts.map +1 -0
  105. package/dist/src/v0_8/SurfaceRenderer.js +21 -0
  106. package/dist/src/v0_8/registry.d.ts +12 -0
  107. package/dist/src/v0_8/registry.d.ts.map +1 -0
  108. package/dist/src/v0_8/registry.js +35 -0
  109. package/dist/src/v0_8/theme.d.ts +11 -0
  110. package/dist/src/v0_8/theme.d.ts.map +1 -0
  111. package/dist/src/v0_8/theme.js +77 -0
  112. package/dist/src/v0_9/Provider.d.ts +16 -0
  113. package/dist/src/v0_9/Provider.d.ts.map +1 -0
  114. package/dist/src/v0_9/Provider.js +65 -0
  115. package/dist/src/v0_9/SurfaceRenderer.d.ts +3 -0
  116. package/dist/src/v0_9/SurfaceRenderer.d.ts.map +1 -0
  117. package/dist/src/v0_9/SurfaceRenderer.js +21 -0
  118. package/dist/src/{utils → v0_9}/catalog.d.ts +1 -2
  119. package/dist/src/v0_9/catalog.d.ts.map +1 -0
  120. package/dist/src/{utils → v0_9}/catalog.js +5 -6
  121. package/dist/src/v0_9/useSurfaces.d.ts.map +1 -0
  122. package/json/README.md +24 -42
  123. package/json/v0_8/a2ui-sample-messages.json +2024 -0
  124. package/json/v0_8/glchat_standard_catalog_definition.json +870 -0
  125. package/json/{a2ui-sample-messages.json → v0_9/a2ui-sample-messages.json} +12 -2
  126. package/json/{glchat_standard_catalog_definition.json → v0_9/glchat_standard_catalog_definition.json} +286 -68
  127. package/package.json +4 -5
  128. package/styles/globals.css +157 -68
  129. package/dist/src/components/a2ui/Button/Button.d.ts.map +0 -1
  130. package/dist/src/components/a2ui/ChoicePicker/CheckboxList.d.ts.map +0 -1
  131. package/dist/src/components/a2ui/ChoicePicker/ChoicePicker.d.ts.map +0 -1
  132. package/dist/src/components/a2ui/ChoicePicker/theme.d.ts.map +0 -1
  133. package/dist/src/components/a2ui/TagInput/TagInput.d.ts.map +0 -1
  134. package/dist/src/components/a2ui/TagInput/theme.d.ts.map +0 -1
  135. package/dist/src/components/a2ui/Timeout/Timeout.d.ts.map +0 -1
  136. package/dist/src/components/a2ui/common.d.ts.map +0 -1
  137. package/dist/src/components/ui/Checkbox/theme.d.ts +0 -5
  138. package/dist/src/components/ui/Checkbox/theme.d.ts.map +0 -1
  139. package/dist/src/components/ui/Checkbox/theme.js +0 -26
  140. package/dist/src/utils/catalog.d.ts.map +0 -1
  141. package/dist/src/utils/useSurfaces.d.ts.map +0 -1
  142. /package/dist/src/components/a2ui/{Button → v0_9/Button}/Button.d.ts +0 -0
  143. /package/dist/src/components/a2ui/{ChoicePicker → v0_9/ChoicePicker}/ChoicePicker.d.ts +0 -0
  144. /package/dist/src/components/a2ui/{Timeout → v0_9/Timeout}/Timeout.d.ts +0 -0
  145. /package/dist/src/components/a2ui/{common.d.ts → v0_9/common.d.ts} +0 -0
  146. /package/dist/src/components/a2ui/{common.js → v0_9/common.js} +0 -0
  147. /package/dist/src/components/{a2ui → ui}/TagInput/theme.d.ts +0 -0
  148. /package/dist/src/{utils → v0_9}/useSurfaces.d.ts +0 -0
  149. /package/dist/src/{utils → v0_9}/useSurfaces.js +0 -0
@@ -0,0 +1,2024 @@
1
+ [
2
+ {
3
+ "beginRendering": {
4
+ "surfaceId": "all-components-demo",
5
+ "root": "root",
6
+ "catalogId": "https://github.com/GDP-ADMIN/glchat-sdk/blob/main/js/glchat-a2ui-react-renderer/json/v0_8/glchat_standard_catalog_definition.json",
7
+ "styles": {
8
+ "font": "Inter",
9
+ "primaryColor": "#2563EB"
10
+ }
11
+ }
12
+ },
13
+ {
14
+ "surfaceUpdate": {
15
+ "surfaceId": "all-components-demo",
16
+ "components": [
17
+ {
18
+ "id": "root",
19
+ "component": {
20
+ "Card": {
21
+ "child": "comp-content"
22
+ }
23
+ }
24
+ },
25
+ {
26
+ "id": "comp-content",
27
+ "component": {
28
+ "Column": {
29
+ "children": {
30
+ "explicitList": [
31
+ "comp-header",
32
+ "comp-caption",
33
+ "div-0",
34
+ "label-01",
35
+ "text-showcase",
36
+ "div-01",
37
+ "label-02",
38
+ "image-showcase",
39
+ "div-02",
40
+ "label-03",
41
+ "icon-showcase",
42
+ "div-03",
43
+ "label-04",
44
+ "catalog-video",
45
+ "div-04",
46
+ "label-05",
47
+ "catalog-audio",
48
+ "div-05",
49
+ "label-06",
50
+ "demo-row",
51
+ "div-06",
52
+ "label-07",
53
+ "demo-column",
54
+ "div-07",
55
+ "label-08",
56
+ "catalog-list",
57
+ "div-08",
58
+ "label-09",
59
+ "demo-card",
60
+ "div-09",
61
+ "label-10",
62
+ "catalog-tabs",
63
+ "div-10",
64
+ "label-11",
65
+ "divider-h",
66
+ "divider-v-row",
67
+ "div-11",
68
+ "label-12",
69
+ "catalog-modal",
70
+ "div-12",
71
+ "label-13",
72
+ "actions-primary-row",
73
+ "div-13",
74
+ "label-14",
75
+ "destructive-btn",
76
+ "div-14",
77
+ "label-15",
78
+ "catalog-button-as-link",
79
+ "div-15",
80
+ "label-16",
81
+ "catalog-checkbox",
82
+ "div-16",
83
+ "label-17",
84
+ "textfield-showcase",
85
+ "div-17",
86
+ "label-18",
87
+ "datetime-showcase",
88
+ "div-18",
89
+ "label-19",
90
+ "mc-showcase",
91
+ "div-19",
92
+ "label-20",
93
+ "catalog-slider",
94
+ "div-20",
95
+ "label-21",
96
+ "taginput-caption",
97
+ "catalog-taginput",
98
+ "div-21",
99
+ "label-22",
100
+ "timeout-caption",
101
+ "catalog-timeout",
102
+ "div-bottom",
103
+ "btn-row"
104
+ ]
105
+ },
106
+ "distribution": "start",
107
+ "alignment": "stretch"
108
+ }
109
+ }
110
+ },
111
+ {
112
+ "id": "comp-header",
113
+ "component": {
114
+ "Text": {
115
+ "text": {
116
+ "literalString": "All Components Demo"
117
+ },
118
+ "usageHint": "h1"
119
+ }
120
+ }
121
+ },
122
+ {
123
+ "id": "comp-caption",
124
+ "component": {
125
+ "Text": {
126
+ "text": {
127
+ "literalString": "All 22 components from glchat_standard_catalog_definition.json — typography, layout, media, overlays, actions, and form controls (including TagInput, Timeout, DestructiveButton, and ButtonAsLink)."
128
+ },
129
+ "usageHint": "caption"
130
+ }
131
+ }
132
+ },
133
+ {
134
+ "id": "div-0",
135
+ "component": {
136
+ "Divider": {
137
+ "axis": "horizontal"
138
+ }
139
+ }
140
+ },
141
+ {
142
+ "id": "label-01",
143
+ "component": {
144
+ "Text": {
145
+ "text": {
146
+ "literalString": "01 · Text"
147
+ },
148
+ "usageHint": "h3"
149
+ }
150
+ }
151
+ },
152
+ {
153
+ "id": "text-showcase",
154
+ "component": {
155
+ "Column": {
156
+ "children": {
157
+ "explicitList": [
158
+ "text-h1",
159
+ "text-h2",
160
+ "text-h3",
161
+ "text-h4",
162
+ "text-h5",
163
+ "text-body",
164
+ "text-caption"
165
+ ]
166
+ },
167
+ "distribution": "start",
168
+ "alignment": "start"
169
+ }
170
+ }
171
+ },
172
+ {
173
+ "id": "text-h1",
174
+ "component": {
175
+ "Text": {
176
+ "text": {
177
+ "literalString": "Heading 1 — usageHint: h1"
178
+ },
179
+ "usageHint": "h1"
180
+ }
181
+ }
182
+ },
183
+ {
184
+ "id": "text-h2",
185
+ "component": {
186
+ "Text": {
187
+ "text": {
188
+ "literalString": "Heading 2 — usageHint: h2"
189
+ },
190
+ "usageHint": "h2"
191
+ }
192
+ }
193
+ },
194
+ {
195
+ "id": "text-h3",
196
+ "component": {
197
+ "Text": {
198
+ "text": {
199
+ "literalString": "Heading 3 — usageHint: h3"
200
+ },
201
+ "usageHint": "h3"
202
+ }
203
+ }
204
+ },
205
+ {
206
+ "id": "text-h4",
207
+ "component": {
208
+ "Text": {
209
+ "text": {
210
+ "literalString": "Heading 4 — usageHint: h4"
211
+ },
212
+ "usageHint": "h4"
213
+ }
214
+ }
215
+ },
216
+ {
217
+ "id": "text-h5",
218
+ "component": {
219
+ "Text": {
220
+ "text": {
221
+ "literalString": "Heading 5 — usageHint: h5"
222
+ },
223
+ "usageHint": "h5"
224
+ }
225
+ }
226
+ },
227
+ {
228
+ "id": "text-body",
229
+ "component": {
230
+ "Text": {
231
+ "text": {
232
+ "literalString": "Body text supports simple **markdown** formatting for emphasis."
233
+ },
234
+ "usageHint": "body"
235
+ }
236
+ }
237
+ },
238
+ {
239
+ "id": "text-caption",
240
+ "component": {
241
+ "Text": {
242
+ "text": {
243
+ "literalString": "Caption — smaller supporting text"
244
+ },
245
+ "usageHint": "caption"
246
+ }
247
+ }
248
+ },
249
+ {
250
+ "id": "div-01",
251
+ "component": {
252
+ "Divider": {
253
+ "axis": "horizontal"
254
+ }
255
+ }
256
+ },
257
+ {
258
+ "id": "label-02",
259
+ "component": {
260
+ "Text": {
261
+ "text": {
262
+ "literalString": "02 · Image"
263
+ },
264
+ "usageHint": "h3"
265
+ }
266
+ }
267
+ },
268
+ {
269
+ "id": "image-showcase",
270
+ "component": {
271
+ "Row": {
272
+ "children": {
273
+ "explicitList": [
274
+ "img-icon",
275
+ "img-avatar",
276
+ "img-feature"
277
+ ]
278
+ },
279
+ "distribution": "start",
280
+ "alignment": "center"
281
+ }
282
+ }
283
+ },
284
+ {
285
+ "id": "img-icon",
286
+ "component": {
287
+ "Image": {
288
+ "url": {
289
+ "literalString": "https://picsum.photos/seed/icon/48/48"
290
+ },
291
+ "fit": "cover",
292
+ "usageHint": "icon"
293
+ }
294
+ }
295
+ },
296
+ {
297
+ "id": "img-avatar",
298
+ "component": {
299
+ "Image": {
300
+ "url": {
301
+ "literalString": "https://picsum.photos/seed/avatar/80/80"
302
+ },
303
+ "fit": "cover",
304
+ "usageHint": "avatar"
305
+ }
306
+ }
307
+ },
308
+ {
309
+ "id": "img-feature",
310
+ "component": {
311
+ "Image": {
312
+ "url": {
313
+ "path": "/comp/imageUrl"
314
+ },
315
+ "fit": "cover",
316
+ "usageHint": "mediumFeature"
317
+ }
318
+ }
319
+ },
320
+ {
321
+ "id": "div-02",
322
+ "component": {
323
+ "Divider": {
324
+ "axis": "horizontal"
325
+ }
326
+ }
327
+ },
328
+ {
329
+ "id": "label-03",
330
+ "component": {
331
+ "Text": {
332
+ "text": {
333
+ "literalString": "03 · Icon"
334
+ },
335
+ "usageHint": "h3"
336
+ }
337
+ }
338
+ },
339
+ {
340
+ "id": "icon-showcase",
341
+ "component": {
342
+ "Row": {
343
+ "children": {
344
+ "explicitList": [
345
+ "icon-check",
346
+ "icon-error",
347
+ "icon-warning",
348
+ "icon-star",
349
+ "icon-settings",
350
+ "icon-home",
351
+ "icon-search"
352
+ ]
353
+ },
354
+ "distribution": "start",
355
+ "alignment": "center"
356
+ }
357
+ }
358
+ },
359
+ {
360
+ "id": "icon-check",
361
+ "component": {
362
+ "Icon": {
363
+ "name": {
364
+ "literalString": "check"
365
+ }
366
+ }
367
+ }
368
+ },
369
+ {
370
+ "id": "icon-error",
371
+ "component": {
372
+ "Icon": {
373
+ "name": {
374
+ "literalString": "error"
375
+ }
376
+ }
377
+ }
378
+ },
379
+ {
380
+ "id": "icon-warning",
381
+ "component": {
382
+ "Icon": {
383
+ "name": {
384
+ "literalString": "warning"
385
+ }
386
+ }
387
+ }
388
+ },
389
+ {
390
+ "id": "icon-star",
391
+ "component": {
392
+ "Icon": {
393
+ "name": {
394
+ "literalString": "star"
395
+ }
396
+ }
397
+ }
398
+ },
399
+ {
400
+ "id": "icon-settings",
401
+ "component": {
402
+ "Icon": {
403
+ "name": {
404
+ "literalString": "settings"
405
+ }
406
+ }
407
+ }
408
+ },
409
+ {
410
+ "id": "icon-home",
411
+ "component": {
412
+ "Icon": {
413
+ "name": {
414
+ "literalString": "home"
415
+ }
416
+ }
417
+ }
418
+ },
419
+ {
420
+ "id": "icon-search",
421
+ "component": {
422
+ "Icon": {
423
+ "name": {
424
+ "literalString": "search"
425
+ }
426
+ }
427
+ }
428
+ },
429
+ {
430
+ "id": "div-03",
431
+ "component": {
432
+ "Divider": {
433
+ "axis": "horizontal"
434
+ }
435
+ }
436
+ },
437
+ {
438
+ "id": "label-04",
439
+ "component": {
440
+ "Text": {
441
+ "text": {
442
+ "literalString": "04 · Video"
443
+ },
444
+ "usageHint": "h3"
445
+ }
446
+ }
447
+ },
448
+ {
449
+ "id": "catalog-video",
450
+ "component": {
451
+ "Video": {
452
+ "url": {
453
+ "literalString": "https://www.w3schools.com/html/mov_bbb.mp4"
454
+ }
455
+ }
456
+ }
457
+ },
458
+ {
459
+ "id": "div-04",
460
+ "component": {
461
+ "Divider": {
462
+ "axis": "horizontal"
463
+ }
464
+ }
465
+ },
466
+ {
467
+ "id": "label-05",
468
+ "component": {
469
+ "Text": {
470
+ "text": {
471
+ "literalString": "05 · AudioPlayer"
472
+ },
473
+ "usageHint": "h3"
474
+ }
475
+ }
476
+ },
477
+ {
478
+ "id": "catalog-audio",
479
+ "component": {
480
+ "AudioPlayer": {
481
+ "url": {
482
+ "literalString": "https://www.w3schools.com/html/horse.mp3"
483
+ },
484
+ "description": {
485
+ "literalString": "Sample audio clip"
486
+ }
487
+ }
488
+ }
489
+ },
490
+ {
491
+ "id": "div-05",
492
+ "component": {
493
+ "Divider": {
494
+ "axis": "horizontal"
495
+ }
496
+ }
497
+ },
498
+ {
499
+ "id": "label-06",
500
+ "component": {
501
+ "Text": {
502
+ "text": {
503
+ "literalString": "06 · Row"
504
+ },
505
+ "usageHint": "h3"
506
+ }
507
+ }
508
+ },
509
+ {
510
+ "id": "demo-row",
511
+ "component": {
512
+ "Row": {
513
+ "children": {
514
+ "explicitList": [
515
+ "row-left",
516
+ "row-center",
517
+ "row-right"
518
+ ]
519
+ },
520
+ "distribution": "spaceBetween",
521
+ "alignment": "center"
522
+ }
523
+ }
524
+ },
525
+ {
526
+ "id": "row-left",
527
+ "component": {
528
+ "Text": {
529
+ "text": {
530
+ "literalString": "Left"
531
+ },
532
+ "usageHint": "body"
533
+ }
534
+ }
535
+ },
536
+ {
537
+ "id": "row-center",
538
+ "component": {
539
+ "Text": {
540
+ "text": {
541
+ "literalString": "Center"
542
+ },
543
+ "usageHint": "body"
544
+ }
545
+ }
546
+ },
547
+ {
548
+ "id": "row-right",
549
+ "component": {
550
+ "Text": {
551
+ "text": {
552
+ "literalString": "Right"
553
+ },
554
+ "usageHint": "body"
555
+ }
556
+ }
557
+ },
558
+ {
559
+ "id": "div-06",
560
+ "component": {
561
+ "Divider": {
562
+ "axis": "horizontal"
563
+ }
564
+ }
565
+ },
566
+ {
567
+ "id": "label-07",
568
+ "component": {
569
+ "Text": {
570
+ "text": {
571
+ "literalString": "07 · Column"
572
+ },
573
+ "usageHint": "h3"
574
+ }
575
+ }
576
+ },
577
+ {
578
+ "id": "demo-column",
579
+ "component": {
580
+ "Column": {
581
+ "children": {
582
+ "explicitList": [
583
+ "col-item-1",
584
+ "col-item-2",
585
+ "col-item-3"
586
+ ]
587
+ },
588
+ "distribution": "start",
589
+ "alignment": "stretch"
590
+ }
591
+ }
592
+ },
593
+ {
594
+ "id": "col-item-1",
595
+ "component": {
596
+ "Text": {
597
+ "text": {
598
+ "literalString": "Stacked item one"
599
+ },
600
+ "usageHint": "body"
601
+ }
602
+ }
603
+ },
604
+ {
605
+ "id": "col-item-2",
606
+ "component": {
607
+ "Text": {
608
+ "text": {
609
+ "literalString": "Stacked item two"
610
+ },
611
+ "usageHint": "body"
612
+ }
613
+ }
614
+ },
615
+ {
616
+ "id": "col-item-3",
617
+ "component": {
618
+ "Text": {
619
+ "text": {
620
+ "literalString": "Stacked item three"
621
+ },
622
+ "usageHint": "body"
623
+ }
624
+ }
625
+ },
626
+ {
627
+ "id": "div-07",
628
+ "component": {
629
+ "Divider": {
630
+ "axis": "horizontal"
631
+ }
632
+ }
633
+ },
634
+ {
635
+ "id": "label-08",
636
+ "component": {
637
+ "Text": {
638
+ "text": {
639
+ "literalString": "08 · List"
640
+ },
641
+ "usageHint": "h3"
642
+ }
643
+ }
644
+ },
645
+ {
646
+ "id": "catalog-list",
647
+ "component": {
648
+ "List": {
649
+ "children": {
650
+ "template": {
651
+ "componentId": "list-item-template",
652
+ "dataBinding": "/comp/listItems"
653
+ }
654
+ },
655
+ "direction": "vertical",
656
+ "alignment": "start"
657
+ }
658
+ }
659
+ },
660
+ {
661
+ "id": "list-item-template",
662
+ "component": {
663
+ "Text": {
664
+ "text": {
665
+ "path": "label"
666
+ },
667
+ "usageHint": "body"
668
+ }
669
+ }
670
+ },
671
+ {
672
+ "id": "div-08",
673
+ "component": {
674
+ "Divider": {
675
+ "axis": "horizontal"
676
+ }
677
+ }
678
+ },
679
+ {
680
+ "id": "label-09",
681
+ "component": {
682
+ "Text": {
683
+ "text": {
684
+ "literalString": "09 · Card"
685
+ },
686
+ "usageHint": "h3"
687
+ }
688
+ }
689
+ },
690
+ {
691
+ "id": "demo-card",
692
+ "component": {
693
+ "Card": {
694
+ "child": "demo-card-inner"
695
+ }
696
+ }
697
+ },
698
+ {
699
+ "id": "demo-card-inner",
700
+ "component": {
701
+ "Column": {
702
+ "children": {
703
+ "explicitList": [
704
+ "demo-card-title",
705
+ "demo-card-body"
706
+ ]
707
+ },
708
+ "distribution": "start",
709
+ "alignment": "start"
710
+ }
711
+ }
712
+ },
713
+ {
714
+ "id": "demo-card-title",
715
+ "component": {
716
+ "Text": {
717
+ "text": {
718
+ "literalString": "Card title"
719
+ },
720
+ "usageHint": "h4"
721
+ }
722
+ }
723
+ },
724
+ {
725
+ "id": "demo-card-body",
726
+ "component": {
727
+ "Text": {
728
+ "text": {
729
+ "literalString": "A Card wraps a single child — often a Column or Row for grouped content."
730
+ },
731
+ "usageHint": "body"
732
+ }
733
+ }
734
+ },
735
+ {
736
+ "id": "div-09",
737
+ "component": {
738
+ "Divider": {
739
+ "axis": "horizontal"
740
+ }
741
+ }
742
+ },
743
+ {
744
+ "id": "label-10",
745
+ "component": {
746
+ "Text": {
747
+ "text": {
748
+ "literalString": "10 · Tabs"
749
+ },
750
+ "usageHint": "h3"
751
+ }
752
+ }
753
+ },
754
+ {
755
+ "id": "catalog-tabs",
756
+ "component": {
757
+ "Tabs": {
758
+ "tabItems": [
759
+ {
760
+ "title": {
761
+ "literalString": "Overview"
762
+ },
763
+ "child": "tab-overview"
764
+ },
765
+ {
766
+ "title": {
767
+ "literalString": "Details"
768
+ },
769
+ "child": "tab-details"
770
+ },
771
+ {
772
+ "title": {
773
+ "literalString": "Settings"
774
+ },
775
+ "child": "tab-settings"
776
+ }
777
+ ]
778
+ }
779
+ }
780
+ },
781
+ {
782
+ "id": "tab-overview",
783
+ "component": {
784
+ "Text": {
785
+ "text": {
786
+ "literalString": "Overview panel — summary information at a glance."
787
+ },
788
+ "usageHint": "body"
789
+ }
790
+ }
791
+ },
792
+ {
793
+ "id": "tab-details",
794
+ "component": {
795
+ "Text": {
796
+ "text": {
797
+ "literalString": "Details panel — extended metadata and specifications."
798
+ },
799
+ "usageHint": "body"
800
+ }
801
+ }
802
+ },
803
+ {
804
+ "id": "tab-settings",
805
+ "component": {
806
+ "Text": {
807
+ "text": {
808
+ "literalString": "Settings panel — configuration options."
809
+ },
810
+ "usageHint": "body"
811
+ }
812
+ }
813
+ },
814
+ {
815
+ "id": "div-10",
816
+ "component": {
817
+ "Divider": {
818
+ "axis": "horizontal"
819
+ }
820
+ }
821
+ },
822
+ {
823
+ "id": "label-11",
824
+ "component": {
825
+ "Text": {
826
+ "text": {
827
+ "literalString": "11 · Divider"
828
+ },
829
+ "usageHint": "h3"
830
+ }
831
+ }
832
+ },
833
+ {
834
+ "id": "divider-h",
835
+ "component": {
836
+ "Divider": {
837
+ "axis": "horizontal"
838
+ }
839
+ }
840
+ },
841
+ {
842
+ "id": "divider-v-row",
843
+ "component": {
844
+ "Row": {
845
+ "children": {
846
+ "explicitList": [
847
+ "divider-v-left",
848
+ "divider-v",
849
+ "divider-v-right"
850
+ ]
851
+ },
852
+ "distribution": "start",
853
+ "alignment": "stretch"
854
+ }
855
+ }
856
+ },
857
+ {
858
+ "id": "divider-v-left",
859
+ "component": {
860
+ "Text": {
861
+ "text": {
862
+ "literalString": "Left of vertical divider"
863
+ },
864
+ "usageHint": "body"
865
+ }
866
+ }
867
+ },
868
+ {
869
+ "id": "divider-v",
870
+ "component": {
871
+ "Divider": {
872
+ "axis": "vertical"
873
+ }
874
+ }
875
+ },
876
+ {
877
+ "id": "divider-v-right",
878
+ "component": {
879
+ "Text": {
880
+ "text": {
881
+ "literalString": "Right of vertical divider"
882
+ },
883
+ "usageHint": "body"
884
+ }
885
+ }
886
+ },
887
+ {
888
+ "id": "div-11",
889
+ "component": {
890
+ "Divider": {
891
+ "axis": "horizontal"
892
+ }
893
+ }
894
+ },
895
+ {
896
+ "id": "label-12",
897
+ "component": {
898
+ "Text": {
899
+ "text": {
900
+ "literalString": "12 · Modal"
901
+ },
902
+ "usageHint": "h3"
903
+ }
904
+ }
905
+ },
906
+ {
907
+ "id": "catalog-modal",
908
+ "component": {
909
+ "Modal": {
910
+ "entryPointChild": "modal-open-btn",
911
+ "contentChild": "modal-body-col"
912
+ }
913
+ }
914
+ },
915
+ {
916
+ "id": "modal-open-btn",
917
+ "component": {
918
+ "Button": {
919
+ "child": "modal-open-text",
920
+ "action": {
921
+ "name": "modal_open",
922
+ "context": []
923
+ },
924
+ "primary": false
925
+ }
926
+ }
927
+ },
928
+ {
929
+ "id": "modal-open-text",
930
+ "component": {
931
+ "Text": {
932
+ "text": {
933
+ "literalString": "Open Modal"
934
+ },
935
+ "usageHint": "body"
936
+ }
937
+ }
938
+ },
939
+ {
940
+ "id": "modal-body-col",
941
+ "component": {
942
+ "Column": {
943
+ "children": {
944
+ "explicitList": [
945
+ "modal-title",
946
+ "modal-body-text",
947
+ "modal-close-btn"
948
+ ]
949
+ },
950
+ "distribution": "start",
951
+ "alignment": "stretch"
952
+ }
953
+ }
954
+ },
955
+ {
956
+ "id": "modal-title",
957
+ "component": {
958
+ "Text": {
959
+ "text": {
960
+ "literalString": "Modal Title"
961
+ },
962
+ "usageHint": "h3"
963
+ }
964
+ }
965
+ },
966
+ {
967
+ "id": "modal-body-text",
968
+ "component": {
969
+ "Text": {
970
+ "text": {
971
+ "literalString": "Content rendered inside the modal overlay."
972
+ },
973
+ "usageHint": "body"
974
+ }
975
+ }
976
+ },
977
+ {
978
+ "id": "modal-close-btn",
979
+ "component": {
980
+ "Button": {
981
+ "child": "modal-close-text",
982
+ "action": {
983
+ "name": "modal_close",
984
+ "context": []
985
+ },
986
+ "primary": true
987
+ }
988
+ }
989
+ },
990
+ {
991
+ "id": "modal-close-text",
992
+ "component": {
993
+ "Text": {
994
+ "text": {
995
+ "literalString": "Close"
996
+ },
997
+ "usageHint": "body"
998
+ }
999
+ }
1000
+ },
1001
+ {
1002
+ "id": "div-12",
1003
+ "component": {
1004
+ "Divider": {
1005
+ "axis": "horizontal"
1006
+ }
1007
+ }
1008
+ },
1009
+ {
1010
+ "id": "label-13",
1011
+ "component": {
1012
+ "Text": {
1013
+ "text": {
1014
+ "literalString": "13 · Button"
1015
+ },
1016
+ "usageHint": "h3"
1017
+ }
1018
+ }
1019
+ },
1020
+ {
1021
+ "id": "actions-primary-row",
1022
+ "component": {
1023
+ "Row": {
1024
+ "children": {
1025
+ "explicitList": [
1026
+ "btn-primary",
1027
+ "btn-secondary"
1028
+ ]
1029
+ },
1030
+ "distribution": "start",
1031
+ "alignment": "center"
1032
+ }
1033
+ }
1034
+ },
1035
+ {
1036
+ "id": "btn-primary",
1037
+ "component": {
1038
+ "Button": {
1039
+ "child": "btn-primary-text",
1040
+ "action": {
1041
+ "name": "primary_action",
1042
+ "context": []
1043
+ },
1044
+ "primary": true
1045
+ }
1046
+ }
1047
+ },
1048
+ {
1049
+ "id": "btn-primary-text",
1050
+ "component": {
1051
+ "Text": {
1052
+ "text": {
1053
+ "literalString": "Primary"
1054
+ },
1055
+ "usageHint": "body"
1056
+ }
1057
+ }
1058
+ },
1059
+ {
1060
+ "id": "btn-secondary",
1061
+ "component": {
1062
+ "Button": {
1063
+ "child": "btn-secondary-text",
1064
+ "action": {
1065
+ "name": "secondary_action",
1066
+ "context": []
1067
+ },
1068
+ "primary": false
1069
+ }
1070
+ }
1071
+ },
1072
+ {
1073
+ "id": "btn-secondary-text",
1074
+ "component": {
1075
+ "Text": {
1076
+ "text": {
1077
+ "literalString": "Secondary"
1078
+ },
1079
+ "usageHint": "body"
1080
+ }
1081
+ }
1082
+ },
1083
+ {
1084
+ "id": "div-13",
1085
+ "component": {
1086
+ "Divider": {
1087
+ "axis": "horizontal"
1088
+ }
1089
+ }
1090
+ },
1091
+ {
1092
+ "id": "label-14",
1093
+ "component": {
1094
+ "Text": {
1095
+ "text": {
1096
+ "literalString": "14 · DestructiveButton"
1097
+ },
1098
+ "usageHint": "h3"
1099
+ }
1100
+ }
1101
+ },
1102
+ {
1103
+ "id": "destructive-btn",
1104
+ "component": {
1105
+ "DestructiveButton": {
1106
+ "child": "destructive-btn-text",
1107
+ "action": {
1108
+ "name": "delete_item",
1109
+ "context": []
1110
+ }
1111
+ }
1112
+ }
1113
+ },
1114
+ {
1115
+ "id": "destructive-btn-text",
1116
+ "component": {
1117
+ "Text": {
1118
+ "text": {
1119
+ "literalString": "Delete"
1120
+ },
1121
+ "usageHint": "body"
1122
+ }
1123
+ }
1124
+ },
1125
+ {
1126
+ "id": "div-14",
1127
+ "component": {
1128
+ "Divider": {
1129
+ "axis": "horizontal"
1130
+ }
1131
+ }
1132
+ },
1133
+ {
1134
+ "id": "label-15",
1135
+ "component": {
1136
+ "Text": {
1137
+ "text": {
1138
+ "literalString": "15 · ButtonAsLink"
1139
+ },
1140
+ "usageHint": "h3"
1141
+ }
1142
+ }
1143
+ },
1144
+ {
1145
+ "id": "catalog-button-as-link",
1146
+ "component": {
1147
+ "ButtonAsLink": {
1148
+ "child": "catalog-button-as-link-text",
1149
+ "href": {
1150
+ "path": "/comp/downloadUrl"
1151
+ },
1152
+ "target": {
1153
+ "literalString": "_blank"
1154
+ }
1155
+ }
1156
+ }
1157
+ },
1158
+ {
1159
+ "id": "catalog-button-as-link-text",
1160
+ "component": {
1161
+ "Text": {
1162
+ "text": {
1163
+ "literalString": "Download sample file ↗"
1164
+ },
1165
+ "usageHint": "body"
1166
+ }
1167
+ }
1168
+ },
1169
+ {
1170
+ "id": "div-15",
1171
+ "component": {
1172
+ "Divider": {
1173
+ "axis": "horizontal"
1174
+ }
1175
+ }
1176
+ },
1177
+ {
1178
+ "id": "label-16",
1179
+ "component": {
1180
+ "Text": {
1181
+ "text": {
1182
+ "literalString": "16 · CheckBox"
1183
+ },
1184
+ "usageHint": "h3"
1185
+ }
1186
+ }
1187
+ },
1188
+ {
1189
+ "id": "catalog-checkbox",
1190
+ "component": {
1191
+ "CheckBox": {
1192
+ "label": {
1193
+ "path": "/comp/checkbox/label"
1194
+ },
1195
+ "value": {
1196
+ "path": "/comp/checkbox/value"
1197
+ }
1198
+ }
1199
+ }
1200
+ },
1201
+ {
1202
+ "id": "div-16",
1203
+ "component": {
1204
+ "Divider": {
1205
+ "axis": "horizontal"
1206
+ }
1207
+ }
1208
+ },
1209
+ {
1210
+ "id": "label-17",
1211
+ "component": {
1212
+ "Text": {
1213
+ "text": {
1214
+ "literalString": "17 · TextField"
1215
+ },
1216
+ "usageHint": "h3"
1217
+ }
1218
+ }
1219
+ },
1220
+ {
1221
+ "id": "textfield-showcase",
1222
+ "component": {
1223
+ "Column": {
1224
+ "children": {
1225
+ "explicitList": [
1226
+ "tf-short",
1227
+ "tf-long",
1228
+ "tf-number",
1229
+ "tf-date",
1230
+ "tf-obscured"
1231
+ ]
1232
+ },
1233
+ "distribution": "start",
1234
+ "alignment": "stretch"
1235
+ }
1236
+ }
1237
+ },
1238
+ {
1239
+ "id": "tf-short",
1240
+ "component": {
1241
+ "TextField": {
1242
+ "label": {
1243
+ "literalString": "Short text"
1244
+ },
1245
+ "text": {
1246
+ "path": "/comp/text"
1247
+ },
1248
+ "textFieldType": "shortText"
1249
+ }
1250
+ }
1251
+ },
1252
+ {
1253
+ "id": "tf-long",
1254
+ "component": {
1255
+ "TextField": {
1256
+ "label": {
1257
+ "literalString": "Long text"
1258
+ },
1259
+ "text": {
1260
+ "path": "/comp/bio"
1261
+ },
1262
+ "textFieldType": "longText"
1263
+ }
1264
+ }
1265
+ },
1266
+ {
1267
+ "id": "tf-number",
1268
+ "component": {
1269
+ "TextField": {
1270
+ "label": {
1271
+ "literalString": "Number"
1272
+ },
1273
+ "text": {
1274
+ "path": "/comp/age"
1275
+ },
1276
+ "textFieldType": "number"
1277
+ }
1278
+ }
1279
+ },
1280
+ {
1281
+ "id": "tf-date",
1282
+ "component": {
1283
+ "TextField": {
1284
+ "label": {
1285
+ "literalString": "Date"
1286
+ },
1287
+ "text": {
1288
+ "path": "/comp/dob"
1289
+ },
1290
+ "textFieldType": "date"
1291
+ }
1292
+ }
1293
+ },
1294
+ {
1295
+ "id": "tf-obscured",
1296
+ "component": {
1297
+ "TextField": {
1298
+ "label": {
1299
+ "literalString": "Password (obscured)"
1300
+ },
1301
+ "text": {
1302
+ "path": "/comp/password"
1303
+ },
1304
+ "textFieldType": "obscured"
1305
+ }
1306
+ }
1307
+ },
1308
+ {
1309
+ "id": "div-17",
1310
+ "component": {
1311
+ "Divider": {
1312
+ "axis": "horizontal"
1313
+ }
1314
+ }
1315
+ },
1316
+ {
1317
+ "id": "label-18",
1318
+ "component": {
1319
+ "Text": {
1320
+ "text": {
1321
+ "literalString": "18 · DateTimeInput"
1322
+ },
1323
+ "usageHint": "h3"
1324
+ }
1325
+ }
1326
+ },
1327
+ {
1328
+ "id": "datetime-showcase",
1329
+ "component": {
1330
+ "Column": {
1331
+ "children": {
1332
+ "explicitList": [
1333
+ "dt-datetime",
1334
+ "dt-date-only",
1335
+ "dt-time-only"
1336
+ ]
1337
+ },
1338
+ "distribution": "start",
1339
+ "alignment": "stretch"
1340
+ }
1341
+ }
1342
+ },
1343
+ {
1344
+ "id": "dt-datetime",
1345
+ "component": {
1346
+ "DateTimeInput": {
1347
+ "value": {
1348
+ "path": "/comp/datetime"
1349
+ },
1350
+ "enableDate": true,
1351
+ "enableTime": true
1352
+ }
1353
+ }
1354
+ },
1355
+ {
1356
+ "id": "dt-date-only",
1357
+ "component": {
1358
+ "DateTimeInput": {
1359
+ "value": {
1360
+ "path": "/comp/dateOnly"
1361
+ },
1362
+ "enableDate": true,
1363
+ "enableTime": false
1364
+ }
1365
+ }
1366
+ },
1367
+ {
1368
+ "id": "dt-time-only",
1369
+ "component": {
1370
+ "DateTimeInput": {
1371
+ "value": {
1372
+ "path": "/comp/timeOnly"
1373
+ },
1374
+ "enableDate": false,
1375
+ "enableTime": true
1376
+ }
1377
+ }
1378
+ },
1379
+ {
1380
+ "id": "div-18",
1381
+ "component": {
1382
+ "Divider": {
1383
+ "axis": "horizontal"
1384
+ }
1385
+ }
1386
+ },
1387
+ {
1388
+ "id": "label-19",
1389
+ "component": {
1390
+ "Text": {
1391
+ "text": {
1392
+ "literalString": "19 · MultipleChoice"
1393
+ },
1394
+ "usageHint": "h3"
1395
+ }
1396
+ }
1397
+ },
1398
+ {
1399
+ "id": "mc-showcase",
1400
+ "component": {
1401
+ "Column": {
1402
+ "children": {
1403
+ "explicitList": [
1404
+ "mc-single-chip-label",
1405
+ "mc-single-chip",
1406
+ "mc-single-checkbox-label",
1407
+ "mc-single-checkbox",
1408
+ "mc-multi-chip-label",
1409
+ "mc-multi-chip",
1410
+ "mc-multi-checkbox-label",
1411
+ "mc-multi-checkbox"
1412
+ ]
1413
+ },
1414
+ "distribution": "start",
1415
+ "alignment": "stretch"
1416
+ }
1417
+ }
1418
+ },
1419
+ {
1420
+ "id": "mc-single-chip-label",
1421
+ "component": {
1422
+ "Text": {
1423
+ "text": {
1424
+ "literalString": "Single select · chips"
1425
+ },
1426
+ "usageHint": "caption"
1427
+ }
1428
+ }
1429
+ },
1430
+ {
1431
+ "id": "mc-single-chip",
1432
+ "component": {
1433
+ "MultipleChoice": {
1434
+ "selections": {
1435
+ "path": "/comp/mcSingleChip"
1436
+ },
1437
+ "maxAllowedSelections": 1,
1438
+ "options": [
1439
+ {
1440
+ "value": "en",
1441
+ "label": {
1442
+ "literalString": "English"
1443
+ }
1444
+ },
1445
+ {
1446
+ "value": "id",
1447
+ "label": {
1448
+ "literalString": "Indonesian"
1449
+ }
1450
+ },
1451
+ {
1452
+ "value": "ja",
1453
+ "label": {
1454
+ "literalString": "Japanese"
1455
+ }
1456
+ }
1457
+ ],
1458
+ "variant": "chips"
1459
+ }
1460
+ }
1461
+ },
1462
+ {
1463
+ "id": "mc-single-checkbox-label",
1464
+ "component": {
1465
+ "Text": {
1466
+ "text": {
1467
+ "literalString": "Single select · checkbox"
1468
+ },
1469
+ "usageHint": "caption"
1470
+ }
1471
+ }
1472
+ },
1473
+ {
1474
+ "id": "mc-single-checkbox",
1475
+ "component": {
1476
+ "MultipleChoice": {
1477
+ "selections": {
1478
+ "path": "/comp/mcSingleCheckbox"
1479
+ },
1480
+ "maxAllowedSelections": 1,
1481
+ "options": [
1482
+ {
1483
+ "value": "free",
1484
+ "label": {
1485
+ "literalString": "Free"
1486
+ }
1487
+ },
1488
+ {
1489
+ "value": "pro",
1490
+ "label": {
1491
+ "literalString": "Pro"
1492
+ }
1493
+ },
1494
+ {
1495
+ "value": "enterprise",
1496
+ "label": {
1497
+ "literalString": "Enterprise"
1498
+ }
1499
+ }
1500
+ ],
1501
+ "variant": "checkbox"
1502
+ }
1503
+ }
1504
+ },
1505
+ {
1506
+ "id": "mc-multi-chip-label",
1507
+ "component": {
1508
+ "Text": {
1509
+ "text": {
1510
+ "literalString": "Multi select · chips"
1511
+ },
1512
+ "usageHint": "caption"
1513
+ }
1514
+ }
1515
+ },
1516
+ {
1517
+ "id": "mc-multi-chip",
1518
+ "component": {
1519
+ "MultipleChoice": {
1520
+ "selections": {
1521
+ "path": "/comp/mcMultiChip"
1522
+ },
1523
+ "maxAllowedSelections": 4,
1524
+ "options": [
1525
+ {
1526
+ "value": "mon",
1527
+ "label": {
1528
+ "literalString": "Mon"
1529
+ }
1530
+ },
1531
+ {
1532
+ "value": "tue",
1533
+ "label": {
1534
+ "literalString": "Tue"
1535
+ }
1536
+ },
1537
+ {
1538
+ "value": "wed",
1539
+ "label": {
1540
+ "literalString": "Wed"
1541
+ }
1542
+ },
1543
+ {
1544
+ "value": "thu",
1545
+ "label": {
1546
+ "literalString": "Thu"
1547
+ }
1548
+ },
1549
+ {
1550
+ "value": "fri",
1551
+ "label": {
1552
+ "literalString": "Fri"
1553
+ }
1554
+ }
1555
+ ],
1556
+ "variant": "chips"
1557
+ }
1558
+ }
1559
+ },
1560
+ {
1561
+ "id": "mc-multi-checkbox-label",
1562
+ "component": {
1563
+ "Text": {
1564
+ "text": {
1565
+ "literalString": "Multi select · checkbox"
1566
+ },
1567
+ "usageHint": "caption"
1568
+ }
1569
+ }
1570
+ },
1571
+ {
1572
+ "id": "mc-multi-checkbox",
1573
+ "component": {
1574
+ "MultipleChoice": {
1575
+ "selections": {
1576
+ "path": "/comp/mcMultiCheckbox"
1577
+ },
1578
+ "maxAllowedSelections": 3,
1579
+ "options": [
1580
+ {
1581
+ "value": "design",
1582
+ "label": {
1583
+ "literalString": "Design"
1584
+ }
1585
+ },
1586
+ {
1587
+ "value": "frontend",
1588
+ "label": {
1589
+ "literalString": "Frontend"
1590
+ }
1591
+ },
1592
+ {
1593
+ "value": "backend",
1594
+ "label": {
1595
+ "literalString": "Backend"
1596
+ }
1597
+ },
1598
+ {
1599
+ "value": "devops",
1600
+ "label": {
1601
+ "literalString": "DevOps"
1602
+ }
1603
+ }
1604
+ ],
1605
+ "variant": "checkbox"
1606
+ }
1607
+ }
1608
+ },
1609
+ {
1610
+ "id": "div-19",
1611
+ "component": {
1612
+ "Divider": {
1613
+ "axis": "horizontal"
1614
+ }
1615
+ }
1616
+ },
1617
+ {
1618
+ "id": "label-20",
1619
+ "component": {
1620
+ "Text": {
1621
+ "text": {
1622
+ "literalString": "20 · Slider"
1623
+ },
1624
+ "usageHint": "h3"
1625
+ }
1626
+ }
1627
+ },
1628
+ {
1629
+ "id": "catalog-slider",
1630
+ "component": {
1631
+ "Slider": {
1632
+ "value": {
1633
+ "path": "/comp/volume"
1634
+ },
1635
+ "minValue": 0,
1636
+ "maxValue": 100
1637
+ }
1638
+ }
1639
+ },
1640
+ {
1641
+ "id": "div-20",
1642
+ "component": {
1643
+ "Divider": {
1644
+ "axis": "horizontal"
1645
+ }
1646
+ }
1647
+ },
1648
+ {
1649
+ "id": "label-21",
1650
+ "component": {
1651
+ "Text": {
1652
+ "text": {
1653
+ "literalString": "21 · TagInput"
1654
+ },
1655
+ "usageHint": "h3"
1656
+ }
1657
+ }
1658
+ },
1659
+ {
1660
+ "id": "taginput-caption",
1661
+ "component": {
1662
+ "Text": {
1663
+ "text": {
1664
+ "literalString": "Type a tag and press Enter. Validated with validationRegexp."
1665
+ },
1666
+ "usageHint": "caption"
1667
+ }
1668
+ }
1669
+ },
1670
+ {
1671
+ "id": "catalog-taginput",
1672
+ "component": {
1673
+ "TagInput": {
1674
+ "label": {
1675
+ "literalString": "Skills"
1676
+ },
1677
+ "values": {
1678
+ "path": "/comp/tags"
1679
+ },
1680
+ "placeholder": {
1681
+ "literalString": "e.g. TypeScript"
1682
+ },
1683
+ "validationRegexp": "^[a-zA-Z0-9+\\-\\. ]{2,32}$",
1684
+ "validationErrorMessage": {
1685
+ "literalString": "Tags must be 2–32 characters (letters, numbers, +, -, ., space)."
1686
+ }
1687
+ }
1688
+ }
1689
+ },
1690
+ {
1691
+ "id": "div-21",
1692
+ "component": {
1693
+ "Divider": {
1694
+ "axis": "horizontal"
1695
+ }
1696
+ }
1697
+ },
1698
+ {
1699
+ "id": "label-22",
1700
+ "component": {
1701
+ "Text": {
1702
+ "text": {
1703
+ "literalString": "22 · Timeout"
1704
+ },
1705
+ "usageHint": "h3"
1706
+ }
1707
+ }
1708
+ },
1709
+ {
1710
+ "id": "timeout-caption",
1711
+ "component": {
1712
+ "Text": {
1713
+ "text": {
1714
+ "literalString": "Countdown to targetTimeUtc (ISO 8601). Updates live until the target is reached."
1715
+ },
1716
+ "usageHint": "caption"
1717
+ }
1718
+ }
1719
+ },
1720
+ {
1721
+ "id": "catalog-timeout",
1722
+ "component": {
1723
+ "Timeout": {
1724
+ "targetTimeUtc": {
1725
+ "path": "/comp/timeoutExpires"
1726
+ }
1727
+ }
1728
+ }
1729
+ },
1730
+ {
1731
+ "id": "div-bottom",
1732
+ "component": {
1733
+ "Divider": {
1734
+ "axis": "horizontal"
1735
+ }
1736
+ }
1737
+ },
1738
+ {
1739
+ "id": "btn-row",
1740
+ "component": {
1741
+ "Row": {
1742
+ "children": {
1743
+ "explicitList": [
1744
+ "submit-btn"
1745
+ ]
1746
+ },
1747
+ "distribution": "end",
1748
+ "alignment": "center"
1749
+ }
1750
+ }
1751
+ },
1752
+ {
1753
+ "id": "submit-btn",
1754
+ "component": {
1755
+ "Button": {
1756
+ "child": "submit-text",
1757
+ "action": {
1758
+ "name": "catalog_submit",
1759
+ "context": [
1760
+ {
1761
+ "key": "text",
1762
+ "value": {
1763
+ "path": "/comp/text"
1764
+ }
1765
+ },
1766
+ {
1767
+ "key": "bio",
1768
+ "value": {
1769
+ "path": "/comp/bio"
1770
+ }
1771
+ },
1772
+ {
1773
+ "key": "age",
1774
+ "value": {
1775
+ "path": "/comp/age"
1776
+ }
1777
+ },
1778
+ {
1779
+ "key": "dob",
1780
+ "value": {
1781
+ "path": "/comp/dob"
1782
+ }
1783
+ },
1784
+ {
1785
+ "key": "password",
1786
+ "value": {
1787
+ "path": "/comp/password"
1788
+ }
1789
+ },
1790
+ {
1791
+ "key": "checkbox",
1792
+ "value": {
1793
+ "path": "/comp/checkbox/value"
1794
+ }
1795
+ },
1796
+ {
1797
+ "key": "datetime",
1798
+ "value": {
1799
+ "path": "/comp/datetime"
1800
+ }
1801
+ },
1802
+ {
1803
+ "key": "mcSingleChip",
1804
+ "value": {
1805
+ "path": "/comp/mcSingleChip"
1806
+ }
1807
+ },
1808
+ {
1809
+ "key": "mcSingleCheckbox",
1810
+ "value": {
1811
+ "path": "/comp/mcSingleCheckbox"
1812
+ }
1813
+ },
1814
+ {
1815
+ "key": "mcMultiChip",
1816
+ "value": {
1817
+ "path": "/comp/mcMultiChip"
1818
+ }
1819
+ },
1820
+ {
1821
+ "key": "mcMultiCheckbox",
1822
+ "value": {
1823
+ "path": "/comp/mcMultiCheckbox"
1824
+ }
1825
+ },
1826
+ {
1827
+ "key": "volume",
1828
+ "value": {
1829
+ "path": "/comp/volume"
1830
+ }
1831
+ },
1832
+ {
1833
+ "key": "tags",
1834
+ "value": {
1835
+ "path": "/comp/tags"
1836
+ }
1837
+ }
1838
+ ]
1839
+ },
1840
+ "primary": true
1841
+ }
1842
+ }
1843
+ },
1844
+ {
1845
+ "id": "submit-text",
1846
+ "component": {
1847
+ "Text": {
1848
+ "text": {
1849
+ "literalString": "Submit"
1850
+ },
1851
+ "usageHint": "body"
1852
+ }
1853
+ }
1854
+ }
1855
+ ]
1856
+ }
1857
+ },
1858
+ {
1859
+ "dataModelUpdate": {
1860
+ "surfaceId": "all-components-demo",
1861
+ "contents": [
1862
+ {
1863
+ "key": "comp",
1864
+ "valueMap": [
1865
+ {
1866
+ "key": "text",
1867
+ "valueString": "Hello A2UI"
1868
+ },
1869
+ {
1870
+ "key": "bio",
1871
+ "valueString": "A short bio for the longText field."
1872
+ },
1873
+ {
1874
+ "key": "age",
1875
+ "valueString": "28"
1876
+ },
1877
+ {
1878
+ "key": "dob",
1879
+ "valueString": "1998-03-15"
1880
+ },
1881
+ {
1882
+ "key": "password",
1883
+ "valueString": ""
1884
+ },
1885
+ {
1886
+ "key": "datetime",
1887
+ "valueString": "2026-06-18T14:30:00.000Z"
1888
+ },
1889
+ {
1890
+ "key": "dateOnly",
1891
+ "valueString": "2026-06-18"
1892
+ },
1893
+ {
1894
+ "key": "timeOnly",
1895
+ "valueString": "2026-06-18T09:00:00.000Z"
1896
+ },
1897
+ {
1898
+ "key": "imageUrl",
1899
+ "valueString": "https://picsum.photos/seed/catalog/640/360"
1900
+ },
1901
+ {
1902
+ "key": "volume",
1903
+ "valueNumber": 50
1904
+ },
1905
+ {
1906
+ "key": "timeoutExpires",
1907
+ "valueString": "2026-12-31T23:59:59.000Z"
1908
+ },
1909
+ {
1910
+ "key": "downloadUrl",
1911
+ "valueString": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"
1912
+ },
1913
+ {
1914
+ "key": "checkbox",
1915
+ "valueMap": [
1916
+ {
1917
+ "key": "value",
1918
+ "valueBoolean": true
1919
+ },
1920
+ {
1921
+ "key": "label",
1922
+ "valueString": "Enable email notifications"
1923
+ }
1924
+ ]
1925
+ },
1926
+ {
1927
+ "key": "mcSingleChip",
1928
+ "valueMap": [
1929
+ {
1930
+ "key": "0",
1931
+ "valueString": "en"
1932
+ }
1933
+ ]
1934
+ },
1935
+ {
1936
+ "key": "mcSingleCheckbox",
1937
+ "valueMap": [
1938
+ {
1939
+ "key": "0",
1940
+ "valueString": "pro"
1941
+ }
1942
+ ]
1943
+ },
1944
+ {
1945
+ "key": "mcMultiChip",
1946
+ "valueMap": [
1947
+ {
1948
+ "key": "0",
1949
+ "valueString": "mon"
1950
+ },
1951
+ {
1952
+ "key": "1",
1953
+ "valueString": "wed"
1954
+ },
1955
+ {
1956
+ "key": "2",
1957
+ "valueString": "fri"
1958
+ }
1959
+ ]
1960
+ },
1961
+ {
1962
+ "key": "mcMultiCheckbox",
1963
+ "valueMap": [
1964
+ {
1965
+ "key": "0",
1966
+ "valueString": "design"
1967
+ },
1968
+ {
1969
+ "key": "1",
1970
+ "valueString": "frontend"
1971
+ }
1972
+ ]
1973
+ },
1974
+ {
1975
+ "key": "tags",
1976
+ "valueMap": [
1977
+ {
1978
+ "key": "0",
1979
+ "valueString": "TypeScript"
1980
+ },
1981
+ {
1982
+ "key": "1",
1983
+ "valueString": "A2UI"
1984
+ }
1985
+ ]
1986
+ },
1987
+ {
1988
+ "key": "listItems",
1989
+ "valueMap": [
1990
+ {
1991
+ "key": "0",
1992
+ "valueMap": [
1993
+ {
1994
+ "key": "label",
1995
+ "valueString": "Dynamic list item 1"
1996
+ }
1997
+ ]
1998
+ },
1999
+ {
2000
+ "key": "1",
2001
+ "valueMap": [
2002
+ {
2003
+ "key": "label",
2004
+ "valueString": "Dynamic list item 2"
2005
+ }
2006
+ ]
2007
+ },
2008
+ {
2009
+ "key": "2",
2010
+ "valueMap": [
2011
+ {
2012
+ "key": "label",
2013
+ "valueString": "Dynamic list item 3"
2014
+ }
2015
+ ]
2016
+ }
2017
+ ]
2018
+ }
2019
+ ]
2020
+ }
2021
+ ]
2022
+ }
2023
+ }
2024
+ ]