glchat-a2ui-react-renderer 0.3.2 → 0.3.4
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.
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/src/components/a2ui/v0_8/UnknownComponent/UnknownComponent.d.ts +7 -0
- package/dist/src/components/a2ui/v0_8/UnknownComponent/UnknownComponent.d.ts.map +1 -0
- package/dist/src/components/a2ui/v0_8/UnknownComponent/UnknownComponent.js +13 -0
- package/dist/src/components/a2ui/v0_9/AudioPlayer/AudioPlayer.d.ts +6 -0
- package/dist/src/components/a2ui/v0_9/AudioPlayer/AudioPlayer.d.ts.map +1 -0
- package/dist/src/components/a2ui/v0_9/AudioPlayer/AudioPlayer.js +15 -0
- package/dist/src/components/a2ui/v0_9/Button/Button.d.ts +22 -22
- package/dist/src/components/a2ui/v0_9/Button/Button.d.ts.map +1 -1
- package/dist/src/components/a2ui/v0_9/Timeout/Timeout.d.ts +2 -2
- package/dist/src/components/a2ui/v0_9/UnknownComponent/UnknownComponent.d.ts +231 -0
- package/dist/src/components/a2ui/v0_9/UnknownComponent/UnknownComponent.d.ts.map +1 -0
- package/dist/src/components/a2ui/v0_9/UnknownComponent/UnknownComponent.js +24 -0
- package/dist/src/components/ui/AudioPlayer/AudioPlayer.d.ts +9 -0
- package/dist/src/components/ui/AudioPlayer/AudioPlayer.d.ts.map +1 -0
- package/dist/src/components/ui/AudioPlayer/AudioPlayer.js +156 -0
- package/dist/src/components/ui/AudioPlayer/theme.d.ts +12 -0
- package/dist/src/components/ui/AudioPlayer/theme.d.ts.map +1 -0
- package/dist/src/components/ui/AudioPlayer/theme.js +69 -0
- package/dist/src/components/ui/InlineAlert/InlineAlert.d.ts +14 -0
- package/dist/src/components/ui/InlineAlert/InlineAlert.d.ts.map +1 -0
- package/dist/src/components/ui/InlineAlert/InlineAlert.js +9 -0
- package/dist/src/components/ui/MultiSelect/MultiSelect.d.ts.map +1 -1
- package/dist/src/components/ui/MultiSelect/MultiSelect.js +4 -10
- package/dist/src/components/ui/Select/Select.d.ts.map +1 -1
- package/dist/src/components/ui/Select/Select.js +1 -1
- package/dist/src/v0_8/Provider.d.ts.map +1 -1
- package/dist/src/v0_8/Provider.js +10 -2
- package/dist/src/v0_8/registry.d.ts +5 -0
- package/dist/src/v0_8/registry.d.ts.map +1 -1
- package/dist/src/v0_8/registry.js +26 -12
- package/dist/src/v0_9/Provider.d.ts +6 -1
- package/dist/src/v0_9/Provider.d.ts.map +1 -1
- package/dist/src/v0_9/Provider.js +17 -8
- package/dist/src/v0_9/SurfaceRenderer.d.ts.map +1 -1
- package/dist/src/v0_9/SurfaceRenderer.js +28 -3
- package/dist/src/v0_9/catalog.d.ts +8 -2
- package/dist/src/v0_9/catalog.d.ts.map +1 -1
- package/dist/src/v0_9/catalog.js +20 -3
- package/json/v0_8/a2ui-sample-messages.json +1 -14
- package/json/v0_8/glchat_standard_catalog_definition.json +1 -1
- package/json/v0_9/glchat_standard_catalog_definition.json +1 -1
- package/package.json +1 -1
- package/styles/globals.css +124 -0
- package/styles/theme-v4.css +5 -0
- package/tailwind.config.cjs +9 -0
package/styles/globals.css
CHANGED
|
@@ -43,6 +43,11 @@
|
|
|
43
43
|
--positive-alternate: 152 81% 96%;
|
|
44
44
|
--positive-alternate-foreground: 161 100% 22%;
|
|
45
45
|
|
|
46
|
+
--warning: 43 96% 45%;
|
|
47
|
+
--warning-foreground: 0 0% 100%;
|
|
48
|
+
--warning-alternate: 48 100% 96%;
|
|
49
|
+
--warning-alternate-foreground: 32 95% 30%;
|
|
50
|
+
|
|
46
51
|
--ring: 198 100% 31%;
|
|
47
52
|
|
|
48
53
|
--card: 0 0% 100%;
|
|
@@ -99,6 +104,11 @@
|
|
|
99
104
|
--positive-alternate: 161 100% 22%;
|
|
100
105
|
--positive-alternate-foreground: 152 81% 96%;
|
|
101
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%;
|
|
111
|
+
|
|
102
112
|
--ring: 196 71% 39%;
|
|
103
113
|
|
|
104
114
|
--card: 0 0% 11%;
|
|
@@ -135,6 +145,10 @@
|
|
|
135
145
|
--a2ui-card-box-shadow: none;
|
|
136
146
|
--a2ui-card-margin: 0;
|
|
137
147
|
|
|
148
|
+
/** Modal */
|
|
149
|
+
--a2ui-modal-border-radius: var(--radius);
|
|
150
|
+
--a2ui-modal-min-width: 20rem;
|
|
151
|
+
|
|
138
152
|
/** TextField */
|
|
139
153
|
--a2ui-color-input: hsl(var(--background));
|
|
140
154
|
--a2ui-color-on-input: hsl(var(--foreground));
|
|
@@ -227,6 +241,51 @@
|
|
|
227
241
|
width: 100%;
|
|
228
242
|
}
|
|
229
243
|
|
|
244
|
+
/* AudioPlayer — custom progress range thumbs (pseudo-elements need CSS) */
|
|
245
|
+
.a2ui-surface .glchat-a2ui-audio-progress::-webkit-slider-thumb {
|
|
246
|
+
width: 0.75rem;
|
|
247
|
+
height: 0.75rem;
|
|
248
|
+
cursor: pointer;
|
|
249
|
+
appearance: none;
|
|
250
|
+
-webkit-appearance: none;
|
|
251
|
+
border: 0;
|
|
252
|
+
border-radius: 9999px;
|
|
253
|
+
background-color: hsl(var(--primary));
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.a2ui-surface .glchat-a2ui-audio-progress::-moz-range-thumb {
|
|
257
|
+
width: 0.75rem;
|
|
258
|
+
height: 0.75rem;
|
|
259
|
+
cursor: pointer;
|
|
260
|
+
appearance: none;
|
|
261
|
+
border: 0;
|
|
262
|
+
border-radius: 9999px;
|
|
263
|
+
background-color: hsl(var(--primary));
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/* Modal trigger — clickable affordance (v0.9 `.a2ui-modal-trigger`, v0.8 `.a2ui-modal > section`) */
|
|
267
|
+
.a2ui-surface .a2ui-modal-trigger,
|
|
268
|
+
.a2ui-surface .a2ui-modal > section {
|
|
269
|
+
cursor: pointer;
|
|
270
|
+
width: fit-content;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
/* Modal panel — v0.9 overlay content; v0.8 dialog body */
|
|
274
|
+
.a2ui-surface .a2ui-modal-overlay > div,
|
|
275
|
+
.a2ui-surface .a2ui-modal dialog > section {
|
|
276
|
+
min-width: min(var(--a2ui-modal-min-width), 100%);
|
|
277
|
+
box-sizing: border-box;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/*
|
|
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.
|
|
283
|
+
*/
|
|
284
|
+
.a2ui-surface [style*='height: 100%'][style*='--a2ui-divider-spacing'] {
|
|
285
|
+
height: auto !important;
|
|
286
|
+
align-self: stretch;
|
|
287
|
+
}
|
|
288
|
+
|
|
230
289
|
/* Button */
|
|
231
290
|
.a2ui-surface .a2ui-button > button.glchat-a2ui-button {
|
|
232
291
|
font-weight: 600 !important;
|
|
@@ -541,3 +600,68 @@
|
|
|
541
600
|
cursor: not-allowed !important;
|
|
542
601
|
opacity: 0.5 !important;
|
|
543
602
|
}
|
|
603
|
+
|
|
604
|
+
/* Inline alert — A2UI process / status warnings */
|
|
605
|
+
.a2ui-surface .glchat-a2ui-inline-alert {
|
|
606
|
+
position: relative;
|
|
607
|
+
display: flex;
|
|
608
|
+
align-items: flex-start;
|
|
609
|
+
width: 100%;
|
|
610
|
+
max-width: 100%;
|
|
611
|
+
box-sizing: border-box;
|
|
612
|
+
border-radius: var(--radius-md);
|
|
613
|
+
padding: 1rem;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
.a2ui-surface .glchat-a2ui-inline-alert--warning {
|
|
617
|
+
border: 1px solid hsl(var(--warning));
|
|
618
|
+
background-color: hsl(var(--warning-alternate));
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
.a2ui-surface .glchat-a2ui-inline-alert--error {
|
|
622
|
+
border: 1px solid hsl(var(--destructive));
|
|
623
|
+
background-color: hsl(var(--destructive-alternate));
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
.a2ui-surface .glchat-a2ui-inline-alert__icon {
|
|
627
|
+
margin-top: 0.125rem;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
.a2ui-surface .glchat-a2ui-inline-alert__svg {
|
|
631
|
+
width: 1.25rem;
|
|
632
|
+
height: 1.25rem;
|
|
633
|
+
flex-shrink: 0;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
.a2ui-surface .glchat-a2ui-inline-alert--warning .glchat-a2ui-inline-alert__svg {
|
|
637
|
+
color: hsl(var(--warning));
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
.a2ui-surface .glchat-a2ui-inline-alert--error .glchat-a2ui-inline-alert__svg {
|
|
641
|
+
color: hsl(var(--destructive));
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
.a2ui-surface .glchat-a2ui-inline-alert__body {
|
|
645
|
+
margin-left: 0.75rem;
|
|
646
|
+
display: flex;
|
|
647
|
+
flex: 1;
|
|
648
|
+
flex-direction: column;
|
|
649
|
+
gap: 0.5rem;
|
|
650
|
+
overflow: hidden;
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
.a2ui-surface .glchat-a2ui-inline-alert__message {
|
|
654
|
+
margin: 0;
|
|
655
|
+
flex: 1;
|
|
656
|
+
overflow: auto;
|
|
657
|
+
font-size: 0.875rem;
|
|
658
|
+
line-height: 1.5rem;
|
|
659
|
+
}
|
|
660
|
+
|
|
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));
|
|
667
|
+
}
|
package/styles/theme-v4.css
CHANGED
|
@@ -63,6 +63,11 @@
|
|
|
63
63
|
--color-positive-alternate: hsl(var(--positive-alternate));
|
|
64
64
|
--color-positive-alternate-foreground: hsl(var(--positive-alternate-foreground));
|
|
65
65
|
|
|
66
|
+
--color-warning: hsl(var(--warning));
|
|
67
|
+
--color-warning-foreground: hsl(var(--warning-foreground));
|
|
68
|
+
--color-warning-alternate: hsl(var(--warning-alternate));
|
|
69
|
+
--color-warning-alternate-foreground: hsl(var(--warning-alternate-foreground));
|
|
70
|
+
|
|
66
71
|
--color-ring: hsl(var(--ring));
|
|
67
72
|
|
|
68
73
|
--color-card: hsl(var(--card));
|
package/tailwind.config.cjs
CHANGED
|
@@ -84,6 +84,15 @@ module.exports = {
|
|
|
84
84
|
},
|
|
85
85
|
},
|
|
86
86
|
|
|
87
|
+
warning: {
|
|
88
|
+
DEFAULT: 'hsl(var(--warning))',
|
|
89
|
+
foreground: 'hsl(var(--warning-foreground))',
|
|
90
|
+
alternate: {
|
|
91
|
+
DEFAULT: 'hsl(var(--warning-alternate))',
|
|
92
|
+
foreground: 'hsl(var(--warning-alternate-foreground))',
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
|
|
87
96
|
ring: 'hsl(var(--ring))',
|
|
88
97
|
|
|
89
98
|
card: {
|