glchat-a2ui-react-renderer 0.3.5 → 0.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 (133) hide show
  1. package/README.md +200 -267
  2. package/dist/index.d.ts +13 -6
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +14 -4
  5. package/dist/src/Provider.d.ts +33 -8
  6. package/dist/src/Provider.d.ts.map +1 -1
  7. package/dist/src/Provider.js +12 -10
  8. package/dist/src/SurfaceRenderer.d.ts +7 -1
  9. package/dist/src/SurfaceRenderer.d.ts.map +1 -1
  10. package/dist/src/SurfaceRenderer.js +2 -2
  11. package/dist/src/components/a2ui/v0_8/UnknownComponent/UnknownComponent.d.ts.map +1 -1
  12. package/dist/src/components/a2ui/v0_8/UnknownComponent/UnknownComponent.js +1 -1
  13. package/dist/src/components/a2ui/v0_9/AudioPlayer/AudioPlayer.d.ts +1 -5
  14. package/dist/src/components/a2ui/v0_9/AudioPlayer/AudioPlayer.d.ts.map +1 -1
  15. package/dist/src/components/a2ui/v0_9/AudioPlayer/AudioPlayer.js +2 -12
  16. package/dist/src/components/a2ui/v0_9/Button/Button.d.ts +75 -241
  17. package/dist/src/components/a2ui/v0_9/Button/Button.d.ts.map +1 -1
  18. package/dist/src/components/a2ui/v0_9/Button/Button.js +2 -13
  19. package/dist/src/components/a2ui/v0_9/ChoicePicker/ChoicePicker.d.ts +1 -8
  20. package/dist/src/components/a2ui/v0_9/ChoicePicker/ChoicePicker.d.ts.map +1 -1
  21. package/dist/src/components/a2ui/v0_9/ChoicePicker/ChoicePicker.js +2 -51
  22. package/dist/src/components/a2ui/v0_9/TagInput/TagInput.d.ts +40 -196
  23. package/dist/src/components/a2ui/v0_9/TagInput/TagInput.d.ts.map +1 -1
  24. package/dist/src/components/a2ui/v0_9/TagInput/TagInput.js +3 -10
  25. package/dist/src/components/a2ui/v0_9/Timeout/Timeout.d.ts +26 -102
  26. package/dist/src/components/a2ui/v0_9/Timeout/Timeout.d.ts.map +1 -1
  27. package/dist/src/components/a2ui/v0_9/Timeout/Timeout.js +3 -23
  28. package/dist/src/components/a2ui/v0_9/common.d.ts +11 -57
  29. package/dist/src/components/a2ui/v0_9/common.d.ts.map +1 -1
  30. package/dist/src/components/a2ui/v0_9/common.js +0 -9
  31. package/dist/src/components/a2ui/v1_0/AudioPlayer/AudioPlayer.d.ts +3 -0
  32. package/dist/src/components/a2ui/v1_0/AudioPlayer/AudioPlayer.d.ts.map +1 -0
  33. package/dist/src/components/a2ui/v1_0/AudioPlayer/AudioPlayer.js +6 -0
  34. package/dist/src/components/a2ui/v1_0/Button/Button.d.ts +223 -0
  35. package/dist/src/components/a2ui/v1_0/Button/Button.d.ts.map +1 -0
  36. package/dist/src/components/a2ui/v1_0/Button/Button.js +26 -0
  37. package/dist/src/components/a2ui/v1_0/ChoicePicker/ChoicePicker.d.ts +3 -0
  38. package/dist/src/components/a2ui/v1_0/ChoicePicker/ChoicePicker.d.ts.map +1 -0
  39. package/dist/src/components/a2ui/v1_0/ChoicePicker/ChoicePicker.js +6 -0
  40. package/dist/src/components/a2ui/v1_0/TagInput/TagInput.d.ts +214 -0
  41. package/dist/src/components/a2ui/v1_0/TagInput/TagInput.d.ts.map +1 -0
  42. package/dist/src/components/a2ui/v1_0/TagInput/TagInput.js +34 -0
  43. package/dist/src/components/a2ui/v1_0/Timeout/Timeout.d.ts +58 -0
  44. package/dist/src/components/a2ui/v1_0/Timeout/Timeout.d.ts.map +1 -0
  45. package/dist/src/components/a2ui/v1_0/Timeout/Timeout.js +25 -0
  46. package/dist/src/components/a2ui/v1_0/common.d.ts +15 -0
  47. package/dist/src/components/a2ui/v1_0/common.d.ts.map +1 -0
  48. package/dist/src/components/a2ui/v1_0/common.js +16 -0
  49. package/dist/src/components/a2ui/views/AudioPlayer/AudioPlayer.d.ts +14 -0
  50. package/dist/src/components/a2ui/views/AudioPlayer/AudioPlayer.d.ts.map +1 -0
  51. package/dist/src/components/a2ui/views/AudioPlayer/AudioPlayer.js +10 -0
  52. package/dist/src/components/a2ui/views/Button/Button.d.ts +18 -0
  53. package/dist/src/components/a2ui/views/Button/Button.d.ts.map +1 -0
  54. package/dist/src/components/a2ui/views/Button/Button.js +22 -0
  55. package/dist/src/components/a2ui/views/ChoicePicker/ChoicePicker.d.ts +25 -0
  56. package/dist/src/components/a2ui/views/ChoicePicker/ChoicePicker.d.ts.map +1 -0
  57. package/dist/src/components/a2ui/views/ChoicePicker/ChoicePicker.js +46 -0
  58. package/dist/src/components/a2ui/views/ChoicePicker/theme.d.ts.map +1 -0
  59. package/dist/src/components/a2ui/views/TagInput/TagInput.d.ts +16 -0
  60. package/dist/src/components/a2ui/views/TagInput/TagInput.d.ts.map +1 -0
  61. package/dist/src/components/a2ui/views/TagInput/TagInput.js +12 -0
  62. package/dist/src/components/a2ui/views/Timeout/Timeout.d.ts +9 -0
  63. package/dist/src/components/a2ui/views/Timeout/Timeout.d.ts.map +1 -0
  64. package/dist/src/components/a2ui/views/Timeout/Timeout.js +27 -0
  65. package/dist/src/components/a2ui/views/weight.d.ts +7 -0
  66. package/dist/src/components/a2ui/views/weight.d.ts.map +1 -0
  67. package/dist/src/components/a2ui/views/weight.js +9 -0
  68. package/dist/src/components/ui/InlineAlert/InlineAlert.d.ts +60 -9
  69. package/dist/src/components/ui/InlineAlert/InlineAlert.d.ts.map +1 -1
  70. package/dist/src/components/ui/InlineAlert/InlineAlert.js +4 -3
  71. package/dist/src/core/SurfaceErrorBoundary.d.ts +27 -0
  72. package/dist/src/core/SurfaceErrorBoundary.d.ts.map +1 -0
  73. package/dist/src/core/SurfaceErrorBoundary.js +24 -0
  74. package/dist/src/core/SurfaceGroupProvider.d.ts +38 -0
  75. package/dist/src/core/SurfaceGroupProvider.d.ts.map +1 -0
  76. package/dist/src/core/SurfaceGroupProvider.js +142 -0
  77. package/dist/src/core/SurfaceRenderer.d.ts +4 -0
  78. package/dist/src/core/SurfaceRenderer.d.ts.map +1 -0
  79. package/dist/src/core/SurfaceRenderer.js +64 -0
  80. package/dist/src/core/errors.d.ts +44 -0
  81. package/dist/src/core/errors.d.ts.map +1 -0
  82. package/dist/src/core/errors.js +42 -0
  83. package/dist/src/core/types.d.ts +11 -0
  84. package/dist/src/core/types.d.ts.map +1 -0
  85. package/dist/src/core/types.js +1 -0
  86. package/dist/src/core/unknownComponent.d.ts +28 -0
  87. package/dist/src/core/unknownComponent.d.ts.map +1 -0
  88. package/dist/src/core/unknownComponent.js +41 -0
  89. package/dist/src/{v0_9 → core}/useSurfaces.d.ts +3 -3
  90. package/dist/src/core/useSurfaces.d.ts.map +1 -0
  91. package/dist/src/utils/detectVersion.d.ts +1 -1
  92. package/dist/src/utils/detectVersion.d.ts.map +1 -1
  93. package/dist/src/utils/detectVersion.js +5 -1
  94. package/dist/src/v0_8/Provider.d.ts +2 -1
  95. package/dist/src/v0_8/Provider.d.ts.map +1 -1
  96. package/dist/src/v0_8/Provider.js +4 -9
  97. package/dist/src/v0_9/Provider.d.ts +13 -13
  98. package/dist/src/v0_9/Provider.d.ts.map +1 -1
  99. package/dist/src/v0_9/Provider.js +14 -61
  100. package/dist/src/v0_9/catalog.d.ts +2 -8
  101. package/dist/src/v0_9/catalog.d.ts.map +1 -1
  102. package/dist/src/v0_9/catalog.js +3 -17
  103. package/dist/src/v1_0/Provider.d.ts +27 -0
  104. package/dist/src/v1_0/Provider.d.ts.map +1 -0
  105. package/dist/src/v1_0/Provider.js +35 -0
  106. package/dist/src/v1_0/catalog.d.ts +52 -0
  107. package/dist/src/v1_0/catalog.d.ts.map +1 -0
  108. package/dist/src/v1_0/catalog.js +118 -0
  109. package/dist/src/v1_0/types.d.ts +13 -0
  110. package/dist/src/v1_0/types.d.ts.map +1 -0
  111. package/dist/src/v1_0/types.js +1 -0
  112. package/json/README.md +27 -30
  113. package/json/v0_9/glchat_standard_catalog_definition.json +5 -5
  114. package/json/v1_0/a2ui-sample-messages-extension.json +150 -0
  115. package/json/v1_0/a2ui-sample-messages.json +144 -0
  116. package/json/v1_0/glchat_extension_catalog_definition.json +794 -0
  117. package/json/v1_0/glchat_standard_catalog_definition.json +1487 -0
  118. package/package.json +4 -4
  119. package/styles/globals.css +180 -86
  120. package/dist/src/components/a2ui/v0_9/ChoicePicker/theme.d.ts.map +0 -1
  121. package/dist/src/components/a2ui/v0_9/UnknownComponent/UnknownComponent.d.ts +0 -231
  122. package/dist/src/components/a2ui/v0_9/UnknownComponent/UnknownComponent.d.ts.map +0 -1
  123. package/dist/src/components/a2ui/v0_9/UnknownComponent/UnknownComponent.js +0 -24
  124. package/dist/src/v0_9/SurfaceErrorBoundary.d.ts +0 -18
  125. package/dist/src/v0_9/SurfaceErrorBoundary.d.ts.map +0 -1
  126. package/dist/src/v0_9/SurfaceErrorBoundary.js +0 -24
  127. package/dist/src/v0_9/SurfaceRenderer.d.ts +0 -3
  128. package/dist/src/v0_9/SurfaceRenderer.d.ts.map +0 -1
  129. package/dist/src/v0_9/SurfaceRenderer.js +0 -47
  130. package/dist/src/v0_9/useSurfaces.d.ts.map +0 -1
  131. /package/dist/src/components/a2ui/{v0_9 → views}/ChoicePicker/theme.d.ts +0 -0
  132. /package/dist/src/components/a2ui/{v0_9 → views}/ChoicePicker/theme.js +0 -0
  133. /package/dist/src/{v0_9 → core}/useSurfaces.js +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glchat-a2ui-react-renderer",
3
- "version": "0.3.5",
3
+ "version": "0.4.0",
4
4
  "description": "A2UI (Agent-to-UI) React renderer for GLChat — render declarative UI from AI agent messages",
5
5
  "author": {
6
6
  "name": "GDP Labs",
@@ -54,9 +54,9 @@
54
54
  "react": ">=18.0.0"
55
55
  },
56
56
  "dependencies": {
57
- "@a2ui/markdown-it": "^0.0.4",
58
- "@a2ui/react": "^0.10.0",
59
- "@a2ui/web_core": "^0.10.0",
57
+ "@a2ui/markdown-it": "^0.2.2",
58
+ "@a2ui/react": "^0.15.0",
59
+ "@a2ui/web_core": "^0.15.0",
60
60
  "@radix-ui/react-checkbox": "^1.3.3",
61
61
  "@radix-ui/react-label": "^2.1.8",
62
62
  "@radix-ui/react-popover": "^1.1.15",
@@ -43,10 +43,10 @@
43
43
  --positive-alternate: 152 81% 96%;
44
44
  --positive-alternate-foreground: 161 100% 22%;
45
45
 
46
- --warning: 43 96% 45%;
46
+ --warning: 28 100% 53%;
47
47
  --warning-foreground: 0 0% 100%;
48
- --warning-alternate: 48 100% 96%;
49
- --warning-alternate-foreground: 32 95% 30%;
48
+ --warning-alternate: 36 100% 94%;
49
+ --warning-alternate-foreground: 28 100% 53%;
50
50
 
51
51
  --ring: 198 100% 31%;
52
52
 
@@ -104,10 +104,10 @@
104
104
  --positive-alternate: 161 100% 22%;
105
105
  --positive-alternate-foreground: 152 81% 96%;
106
106
 
107
- --warning: 43 96% 56%;
108
- --warning-foreground: 0 0% 11%;
109
- --warning-alternate: 36 60% 18%;
110
- --warning-alternate-foreground: 48 100% 90%;
107
+ --warning: 30 100% 62%;
108
+ --warning-alternate: 22 100% 27%;
109
+ --warning-alternate-foreground: 30 100% 62%;
110
+ --warning-foreground: 0 0% 100%;
111
111
 
112
112
  --ring: 196 71% 39%;
113
113
 
@@ -135,6 +135,14 @@
135
135
  --font-family-mono: var(--a2ui-font-family-monospace);
136
136
  --default-font-family-mono: var(--a2ui-font-family-monospace);
137
137
 
138
+ /*
139
+ * Base colors (v0.9 Lit basic catalog). Upstream defaults use light-dark(),
140
+ * which follows `color-scheme`, not GLChat's `.dark` class.
141
+ */
142
+ --a2ui-color-background: hsl(var(--background));
143
+ --a2ui-color-on-background: hsl(var(--foreground));
144
+ --a2ui-text-caption-color: hsl(var(--muted-foreground));
145
+
138
146
  /** Card */
139
147
  --a2ui-card-background: hsl(var(--card));
140
148
  --a2ui-color-surface: hsl(var(--card));
@@ -186,6 +194,25 @@
186
194
  --a2ui-datetimeinput-label-font-size: 0.875rem;
187
195
  --a2ui-datetimeinput-label-font-weight: 600;
188
196
 
197
+ /* List — v0.9 Lit adds an inline-start indent; keep items flush (as in 0.12) */
198
+ --a2ui-list-padding: 0;
199
+
200
+ /* Icon — sans-serif fallback while the icon font loads / if it is absent */
201
+ --a2ui-icon-font-family: 'Material Symbols Outlined', 'Material Icons', sans-serif;
202
+
203
+ /*
204
+ * Slider — GLChat primary. v0.9 Lit basics apply `createSurface.theme.primaryColor`
205
+ * as an inline `--a2ui-color-primary`; 0.12 ignored it (and v1.0 drops `theme`).
206
+ */
207
+ --a2ui-slider-thumb-color: hsl(var(--primary));
208
+
209
+ /* Tabs — 0.12 look: subtle border, grey active tab, padded content */
210
+ --a2ui-tabs-border: 1px solid hsl(var(--border));
211
+ --a2ui-tabs-header-color: hsl(var(--card-foreground));
212
+ --a2ui-tabs-header-background-active: hsl(var(--secondary));
213
+ --a2ui-tabs-header-color-active: hsl(var(--secondary-foreground));
214
+ --a2ui-tabs-content-padding: 0 0.5rem;
215
+
189
216
  /* Checkbox */
190
217
  --a2ui-checkbox-size: 1rem;
191
218
  --a2ui-checkbox-background: hsl(var(--background));
@@ -236,9 +263,69 @@
236
263
  color: var(--a2ui-text-caption-color, hsl(var(--muted-foreground)));
237
264
  }
238
265
 
239
- /* Card */
266
+ /* Card — v0.9 `.a2ui-card` is the padded, bordered box itself */
240
267
  .a2ui-surface .a2ui-card {
241
268
  width: 100%;
269
+ box-sizing: border-box;
270
+ }
271
+
272
+ /*
273
+ * v0.9 Lit basic components — keep the 0.12 (React basic catalog) look.
274
+ * Upstream adopts tag-scoped rules after page styles, so these use the
275
+ * `.a2ui-surface` prefix for higher specificity.
276
+ */
277
+
278
+ /*
279
+ * Image — fill the available width (0.12 stretched the <img> as a flex item).
280
+ * Scoped to the v0.9 Lit element: v0.8 also emits `.a2ui-image` with its own variants.
281
+ */
282
+ .a2ui-surface a2ui-image > .a2ui-image:not(.a2ui-image-icon, .a2ui-image-avatar, .a2ui-image-smallFeature) {
283
+ width: 100%;
284
+ }
285
+
286
+ /* Icon — centered within its slot, as 0.12's inline-flex icon */
287
+ .a2ui-surface a2ui-icon {
288
+ display: inline-flex;
289
+ align-items: center;
290
+ justify-content: center;
291
+ }
292
+
293
+ /*
294
+ * The icon box is 24px but the Material Symbols line box is ~26px, so a host
295
+ * `overflow: auto` (e.g. on `.material-icons`) would draw a scrollbar inside it.
296
+ */
297
+ .a2ui-surface a2ui-icon > .a2ui-icon {
298
+ overflow: hidden;
299
+ }
300
+
301
+ /* Tabs — grey pill on the active tab instead of a primary underline */
302
+ .a2ui-surface .a2ui-tab-bar {
303
+ gap: 0.25rem;
304
+ margin-bottom: 0.5rem;
305
+ }
306
+
307
+ .a2ui-surface .a2ui-tab-button {
308
+ padding: 0.5rem 1rem;
309
+ border: none;
310
+ margin-bottom: 0;
311
+ border-radius: var(--radius-sm) var(--radius-sm) 0 0;
312
+ font-weight: 400;
313
+ font-family: inherit;
314
+ }
315
+
316
+ .a2ui-surface .a2ui-tab-button.a2ui-tab-button-active {
317
+ border-bottom: none;
318
+ }
319
+
320
+ /* Slider — width within its margin; small caption-style value as in 0.12 */
321
+ .a2ui-surface .a2ui-slider-container {
322
+ width: auto;
323
+ }
324
+
325
+ .a2ui-surface .a2ui-slider-value {
326
+ font-size: var(--a2ui-font-size-xs);
327
+ font-weight: 400;
328
+ color: var(--a2ui-text-caption-color);
242
329
  }
243
330
 
244
331
  /* AudioPlayer — custom progress range thumbs (pseudo-elements need CSS) */
@@ -270,19 +357,25 @@
270
357
  width: fit-content;
271
358
  }
272
359
 
273
- /* Modal panel — v0.9 overlay content; v0.8 dialog body */
274
- .a2ui-surface .a2ui-modal-overlay > div,
360
+ /* Modal panel — v0.9 `.a2ui-modal-content` (Lit); v0.8 dialog body */
361
+ .a2ui-surface .a2ui-modal-content,
275
362
  .a2ui-surface .a2ui-modal dialog > section {
276
363
  min-width: min(var(--a2ui-modal-min-width), 100%);
277
364
  box-sizing: border-box;
278
365
  }
279
366
 
280
367
  /*
281
- * Vertical Divider (v0.9): upstream sets inline height: 100%, which collapses to 0
282
- * in content-sized Rows. No class is emitted, so match via --a2ui-divider-spacing.
368
+ * Vertical Divider (v0.9): upstream renders `a2ui-divider > hr.a2ui-divider.a2ui-divider-vertical`
369
+ * with `height: 100%`, which collapses to 0 in content-sized Rows (the host is an
370
+ * inline custom element). Stretch the host and the rule to the Row's height instead.
283
371
  */
284
- .a2ui-surface [style*='height: 100%'][style*='--a2ui-divider-spacing'] {
285
- height: auto !important;
372
+ .a2ui-surface a2ui-divider:has(> .a2ui-divider.a2ui-divider-vertical) {
373
+ display: flex;
374
+ align-self: stretch;
375
+ }
376
+
377
+ .a2ui-surface .a2ui-divider.a2ui-divider-vertical {
378
+ height: auto;
286
379
  align-self: stretch;
287
380
  }
288
381
 
@@ -296,6 +389,11 @@
296
389
  font-weight: 600 !important;
297
390
  }
298
391
 
392
+ /* v0.9 Lit Text sets its own color; the button label must follow the variant color. */
393
+ .a2ui-surface .a2ui-button > button.glchat-a2ui-button .a2ui-text {
394
+ color: inherit;
395
+ }
396
+
299
397
  .a2ui-surface .a2ui-button > button.glchat-a2ui-button:hover {
300
398
  background-image: var(--glchat-button-bg-hover) !important;
301
399
  border-color: var(--glchat-button-border-hover) !important;
@@ -323,16 +421,15 @@
323
421
 
324
422
  /*
325
423
  * TextField / DateTimeInput / inputs
326
- * - v0.9: host is `div` with label + input as direct children (`:has(> input)`).
424
+ * - v0.9 (@a2ui/web_core >= 0.13 Lit elements, light DOM):
425
+ * - TextField: `a2ui-basic-textfield > label + input|textarea.a2ui-textfield + .error`
426
+ * - DateTimeInput: `.a2ui-date-time-container > .a2ui-date-time-label + .a2ui-date-time-inputs > input.a2ui-date-time-input`
427
+ * Upstream adopts tag-scoped rules (e.g. `a2ui-basic-textfield .a2ui-textfield`, 0-1-1)
428
+ * after page styles, so these overrides need higher specificity (`.a2ui-surface` prefix).
327
429
  * - v0.8: upstream hosts are `div.a2ui-textfield|a2ui-datetime-input > section > …`.
328
430
  */
329
- .a2ui-surface div:has(> input[type='text']:not(.glchat-a2ui-tag-input-field)),
330
- .a2ui-surface div:has(> input[type='number']),
331
- .a2ui-surface div:has(> input[type='password']),
332
- .a2ui-surface div:has(> textarea),
333
- .a2ui-surface div:has(> input[type='date']),
334
- .a2ui-surface div:has(> input[type='time']),
335
- .a2ui-surface div:has(> input[type='datetime-local']),
431
+ .a2ui-surface a2ui-basic-textfield,
432
+ .a2ui-surface .a2ui-date-time-container,
336
433
  .a2ui-surface div:has(> input[type='range']),
337
434
  .a2ui-textfield > section,
338
435
  .a2ui-datetime-input > section {
@@ -343,13 +440,8 @@
343
440
  box-sizing: border-box;
344
441
  }
345
442
 
346
- .a2ui-surface div:has(> input[type='text']) > label,
347
- .a2ui-surface div:has(> input[type='number']) > label,
348
- .a2ui-surface div:has(> input[type='password']) > label,
349
- .a2ui-surface div:has(> textarea) > label,
350
- .a2ui-surface div:has(> input[type='date']) > label,
351
- .a2ui-surface div:has(> input[type='time']) > label,
352
- .a2ui-surface div:has(> input[type='datetime-local']) > label,
443
+ .a2ui-surface a2ui-basic-textfield > label,
444
+ .a2ui-surface .a2ui-date-time-label,
353
445
  .a2ui-textfield label,
354
446
  .a2ui-datetime-input label {
355
447
  font-size: 0.875rem;
@@ -358,13 +450,8 @@
358
450
  margin: 0;
359
451
  }
360
452
 
361
- .a2ui-surface div:has(> input[type='text']:not(.glchat-a2ui-tag-input-field)) > input,
362
- .a2ui-surface div:has(> input[type='number']) > input,
363
- .a2ui-surface div:has(> input[type='password']) > input,
364
- .a2ui-surface div:has(> textarea) > textarea,
365
- .a2ui-surface div:has(> input[type='date']) > input,
366
- .a2ui-surface div:has(> input[type='time']) > input,
367
- .a2ui-surface div:has(> input[type='datetime-local']) > input,
453
+ .a2ui-surface a2ui-basic-textfield > .a2ui-textfield,
454
+ .a2ui-surface .a2ui-date-time-input,
368
455
  .a2ui-textfield input,
369
456
  .a2ui-textfield textarea,
370
457
  .a2ui-datetime-input input {
@@ -381,14 +468,12 @@
381
468
  caret-color: currentColor;
382
469
  }
383
470
 
384
- .a2ui-surface div:has(> input[type='date']) > input,
385
- .a2ui-surface div:has(> input[type='time']) > input,
386
- .a2ui-surface div:has(> input[type='datetime-local']) > input,
471
+ .a2ui-surface .a2ui-date-time-input,
387
472
  .a2ui-datetime-input input {
388
473
  height: 2.5rem;
389
474
  }
390
475
 
391
- .a2ui-surface div:has(> textarea) > textarea,
476
+ .a2ui-surface a2ui-basic-textfield > textarea.a2ui-textfield,
392
477
  .a2ui-textfield textarea {
393
478
  min-height: 80px;
394
479
  height: auto;
@@ -397,20 +482,10 @@
397
482
  overflow-wrap: break-word;
398
483
  }
399
484
 
400
- .a2ui-surface div:has(> input[type='text']:not(.glchat-a2ui-tag-input-field)) > input:focus,
401
- .a2ui-surface div:has(> input[type='text']:not(.glchat-a2ui-tag-input-field)) > input:focus-visible,
402
- .a2ui-surface div:has(> input[type='number']) > input:focus,
403
- .a2ui-surface div:has(> input[type='number']) > input:focus-visible,
404
- .a2ui-surface div:has(> input[type='password']) > input:focus,
405
- .a2ui-surface div:has(> input[type='password']) > input:focus-visible,
406
- .a2ui-surface div:has(> textarea) > textarea:focus,
407
- .a2ui-surface div:has(> textarea) > textarea:focus-visible,
408
- .a2ui-surface div:has(> input[type='date']) > input:focus,
409
- .a2ui-surface div:has(> input[type='date']) > input:focus-visible,
410
- .a2ui-surface div:has(> input[type='time']) > input:focus,
411
- .a2ui-surface div:has(> input[type='time']) > input:focus-visible,
412
- .a2ui-surface div:has(> input[type='datetime-local']) > input:focus,
413
- .a2ui-surface div:has(> input[type='datetime-local']) > input:focus-visible,
485
+ .a2ui-surface a2ui-basic-textfield > .a2ui-textfield:focus,
486
+ .a2ui-surface a2ui-basic-textfield > .a2ui-textfield:focus-visible,
487
+ .a2ui-surface .a2ui-date-time-input:focus,
488
+ .a2ui-surface .a2ui-date-time-input:focus-visible,
414
489
  .a2ui-textfield input:focus,
415
490
  .a2ui-textfield input:focus-visible,
416
491
  .a2ui-textfield textarea:focus,
@@ -421,13 +496,8 @@
421
496
  outline: none !important;
422
497
  }
423
498
 
424
- .a2ui-surface div:has(> input[type='text']:not(.glchat-a2ui-tag-input-field)) > input:disabled,
425
- .a2ui-surface div:has(> input[type='number']) > input:disabled,
426
- .a2ui-surface div:has(> input[type='password']) > input:disabled,
427
- .a2ui-surface div:has(> textarea) > textarea:disabled,
428
- .a2ui-surface div:has(> input[type='date']) > input:disabled,
429
- .a2ui-surface div:has(> input[type='time']) > input:disabled,
430
- .a2ui-surface div:has(> input[type='datetime-local']) > input:disabled,
499
+ .a2ui-surface a2ui-basic-textfield > .a2ui-textfield:disabled,
500
+ .a2ui-surface .a2ui-date-time-input:disabled,
431
501
  .a2ui-textfield input:disabled,
432
502
  .a2ui-textfield textarea:disabled,
433
503
  .a2ui-datetime-input input:disabled {
@@ -435,26 +505,19 @@
435
505
  opacity: 0.5 !important;
436
506
  }
437
507
 
438
- .a2ui-surface div:has(> input[type='text']:not(.glchat-a2ui-tag-input-field)) > input::placeholder,
439
- .a2ui-surface div:has(> input[type='number']) > input::placeholder,
440
- .a2ui-surface div:has(> input[type='password']) > input::placeholder,
441
- .a2ui-surface div:has(> textarea) > textarea::placeholder,
508
+ .a2ui-surface a2ui-basic-textfield > .a2ui-textfield::placeholder,
442
509
  .a2ui-textfield input::placeholder,
443
510
  .a2ui-textfield textarea::placeholder {
444
511
  color: hsl(var(--foreground) / 0.5);
445
512
  }
446
513
 
447
- .a2ui-surface div:has(> input[type='text']:not(.glchat-a2ui-tag-input-field)) > input:has(+ span),
448
- .a2ui-surface div:has(> input[type='number']) > input:has(+ span),
449
- .a2ui-surface div:has(> input[type='password']) > input:has(+ span),
450
- .a2ui-surface div:has(> textarea) > textarea:has(+ span) {
514
+ /* Invalid (checks failed): after :focus so the error border wins while focused. */
515
+ .a2ui-surface a2ui-basic-textfield > .a2ui-textfield.a2ui-invalid {
451
516
  border-color: hsl(var(--destructive)) !important;
452
517
  }
453
518
 
454
- .a2ui-surface div:has(> input[type='text']:not(.glchat-a2ui-tag-input-field)) > span,
455
- .a2ui-surface div:has(> input[type='number']) > span,
456
- .a2ui-surface div:has(> input[type='password']) > span,
457
- .a2ui-surface div:has(> textarea) > span {
519
+ .a2ui-surface a2ui-basic-textfield > .a2ui-error-message,
520
+ .a2ui-surface .a2ui-date-time-container > .a2ui-error-message {
458
521
  font-size: 0.75rem;
459
522
  line-height: 1.25rem;
460
523
  color: hsl(var(--destructive));
@@ -528,7 +591,12 @@
528
591
  outline: none !important;
529
592
  }
530
593
 
531
- /* Checkbox — shared look for native input and Radix `.glchat-a2ui-checkbox` */
594
+ /*
595
+ * Checkbox — shared look for native input and Radix `.glchat-a2ui-checkbox`.
596
+ * v0.9 (Lit): `a2ui-checkbox > .container > label.a2ui-checkbox > input + .a2ui-check-box-text`.
597
+ * v0.8: `.a2ui-checkbox > section > input + label`.
598
+ */
599
+ .a2ui-surface label.a2ui-checkbox,
532
600
  .a2ui-surface .a2ui-checkbox > section,
533
601
  .a2ui-surface .glchat-a2ui-checkbox-option {
534
602
  display: inline-flex;
@@ -536,6 +604,7 @@
536
604
  gap: var(--a2ui-checkbox-gap);
537
605
  }
538
606
 
607
+ .a2ui-surface label.a2ui-checkbox,
539
608
  .a2ui-surface .a2ui-checkbox label,
540
609
  .a2ui-surface .glchat-a2ui-checkbox-option {
541
610
  font-size: var(--a2ui-checkbox-label-font-size);
@@ -601,7 +670,7 @@
601
670
  opacity: 0.5 !important;
602
671
  }
603
672
 
604
- /* Inline alert — A2UI process / status warnings */
673
+ /* Inline alert — matches glchat-ui InlineAlert (border + icon tone) */
605
674
  .a2ui-surface .glchat-a2ui-inline-alert {
606
675
  position: relative;
607
676
  display: flex;
@@ -610,17 +679,25 @@
610
679
  max-width: 100%;
611
680
  box-sizing: border-box;
612
681
  border-radius: var(--radius-md);
682
+ border: 1px solid hsl(var(--border));
613
683
  padding: 1rem;
684
+ background-color: hsl(var(--background));
685
+ }
686
+
687
+ .a2ui-surface .glchat-a2ui-inline-alert--neutral {
688
+ border-color: hsl(var(--border));
614
689
  }
615
690
 
616
691
  .a2ui-surface .glchat-a2ui-inline-alert--warning {
617
- border: 1px solid hsl(var(--warning));
618
- background-color: hsl(var(--warning-alternate));
692
+ border-color: hsl(var(--warning-alternate-foreground));
619
693
  }
620
694
 
621
695
  .a2ui-surface .glchat-a2ui-inline-alert--error {
622
- border: 1px solid hsl(var(--destructive));
623
- background-color: hsl(var(--destructive-alternate));
696
+ border-color: hsl(var(--destructive));
697
+ }
698
+
699
+ .a2ui-surface .glchat-a2ui-inline-alert--success {
700
+ border-color: hsl(var(--positive));
624
701
  }
625
702
 
626
703
  .a2ui-surface .glchat-a2ui-inline-alert__icon {
@@ -631,16 +708,21 @@
631
708
  width: 1.25rem;
632
709
  height: 1.25rem;
633
710
  flex-shrink: 0;
711
+ color: hsl(var(--border));
634
712
  }
635
713
 
636
714
  .a2ui-surface .glchat-a2ui-inline-alert--warning .glchat-a2ui-inline-alert__svg {
637
- color: hsl(var(--warning));
715
+ color: hsl(var(--warning-alternate-foreground));
638
716
  }
639
717
 
640
718
  .a2ui-surface .glchat-a2ui-inline-alert--error .glchat-a2ui-inline-alert__svg {
641
719
  color: hsl(var(--destructive));
642
720
  }
643
721
 
722
+ .a2ui-surface .glchat-a2ui-inline-alert--success .glchat-a2ui-inline-alert__svg {
723
+ color: hsl(var(--positive));
724
+ }
725
+
644
726
  .a2ui-surface .glchat-a2ui-inline-alert__body {
645
727
  margin-left: 0.75rem;
646
728
  display: flex;
@@ -650,18 +732,30 @@
650
732
  overflow: hidden;
651
733
  }
652
734
 
735
+ @media (min-width: 1024px) {
736
+ .a2ui-surface .glchat-a2ui-inline-alert__body {
737
+ flex-direction: row;
738
+ gap: 2.5rem;
739
+ }
740
+ }
741
+
653
742
  .a2ui-surface .glchat-a2ui-inline-alert__message {
654
743
  margin: 0;
655
744
  flex: 1;
656
745
  overflow: auto;
657
746
  font-size: 0.875rem;
658
747
  line-height: 1.5rem;
748
+ color: hsl(var(--foreground));
659
749
  }
660
750
 
661
- .a2ui-surface .glchat-a2ui-inline-alert--warning .glchat-a2ui-inline-alert__message {
662
- color: hsl(var(--warning-alternate-foreground));
663
- }
664
-
665
- .a2ui-surface .glchat-a2ui-inline-alert--error .glchat-a2ui-inline-alert__message {
666
- color: hsl(var(--destructive-alternate-foreground));
751
+ .a2ui-surface .glchat-a2ui-inline-alert__action {
752
+ width: fit-content;
753
+ height: fit-content;
754
+ padding: 0;
755
+ color: hsl(var(--primary));
756
+ font-size: 0.875rem;
757
+ font-weight: 600;
758
+ line-height: 1.5rem;
759
+ text-decoration: underline;
760
+ text-underline-offset: 2px;
667
761
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../../../src/components/a2ui/v0_9/ChoicePicker/theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,eAAO,MAAM,2BAA2B,EAAE,aAKzC,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,aAIrC,CAAC"}