@assistant-ui/react 0.3.5 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +10 -8
- package/dist/edge.d.mts +9 -0
- package/dist/edge.d.ts +9 -0
- package/dist/edge.js +264 -0
- package/dist/edge.js.map +1 -0
- package/dist/edge.mjs +237 -0
- package/dist/edge.mjs.map +1 -0
- package/dist/index.d.mts +422 -60
- package/dist/index.d.ts +422 -60
- package/dist/index.js +1603 -73
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1594 -76
- package/dist/index.mjs.map +1 -1
- package/dist/styles/index.css +859 -0
- package/dist/styles/index.css.map +1 -0
- package/dist/styles/index.d.ts +2 -0
- package/dist/styles/modal.css +143 -0
- package/dist/styles/modal.css.map +1 -0
- package/dist/styles/modal.d.ts +2 -0
- package/dist/styles/tailwindcss/base-components.css +53 -0
- package/dist/styles/tailwindcss/modal.css +29 -0
- package/dist/styles/tailwindcss/thread.css +159 -0
- package/dist/styles/themes/default.css +61 -0
- package/dist/tailwindcss/index.d.mts +15 -0
- package/dist/tailwindcss/index.d.ts +15 -0
- package/dist/tailwindcss/index.js +108 -0
- package/dist/tailwindcss/index.js.map +1 -0
- package/dist/tailwindcss/index.mjs +77 -0
- package/dist/tailwindcss/index.mjs.map +1 -0
- package/package.json +49 -6
@@ -0,0 +1,859 @@
|
|
1
|
+
/* src/styles/base.css */
|
2
|
+
.aui-root *,
|
3
|
+
.aui-root ::before,
|
4
|
+
.aui-root ::after {
|
5
|
+
box-sizing: border-box;
|
6
|
+
border-width: 0;
|
7
|
+
border-style: solid;
|
8
|
+
border-color: #e5e7eb;
|
9
|
+
}
|
10
|
+
.aui-root ::before,
|
11
|
+
.aui-root ::after {
|
12
|
+
--aui-content: "";
|
13
|
+
}
|
14
|
+
.aui-root html,
|
15
|
+
.aui-root :host {
|
16
|
+
line-height: 1.5;
|
17
|
+
-webkit-text-size-adjust: 100%;
|
18
|
+
-moz-tab-size: 4;
|
19
|
+
-o-tab-size: 4;
|
20
|
+
tab-size: 4;
|
21
|
+
font-family:
|
22
|
+
ui-sans-serif,
|
23
|
+
system-ui,
|
24
|
+
sans-serif,
|
25
|
+
"Apple Color Emoji",
|
26
|
+
"Segoe UI Emoji",
|
27
|
+
"Segoe UI Symbol",
|
28
|
+
"Noto Color Emoji";
|
29
|
+
font-feature-settings: normal;
|
30
|
+
font-variation-settings: normal;
|
31
|
+
-webkit-tap-highlight-color: transparent;
|
32
|
+
}
|
33
|
+
.aui-root body {
|
34
|
+
margin: 0;
|
35
|
+
line-height: inherit;
|
36
|
+
}
|
37
|
+
.aui-root hr {
|
38
|
+
height: 0;
|
39
|
+
color: inherit;
|
40
|
+
border-top-width: 1px;
|
41
|
+
}
|
42
|
+
.aui-root abbr:where([title]) {
|
43
|
+
-webkit-text-decoration: underline dotted;
|
44
|
+
text-decoration: underline dotted;
|
45
|
+
}
|
46
|
+
.aui-root h1,
|
47
|
+
.aui-root h2,
|
48
|
+
.aui-root h3,
|
49
|
+
.aui-root h4,
|
50
|
+
.aui-root h5,
|
51
|
+
.aui-root h6 {
|
52
|
+
font-size: inherit;
|
53
|
+
font-weight: inherit;
|
54
|
+
}
|
55
|
+
.aui-root a {
|
56
|
+
color: inherit;
|
57
|
+
text-decoration: inherit;
|
58
|
+
}
|
59
|
+
.aui-root b,
|
60
|
+
.aui-root strong {
|
61
|
+
font-weight: bolder;
|
62
|
+
}
|
63
|
+
.aui-root code,
|
64
|
+
.aui-root kbd,
|
65
|
+
.aui-root samp,
|
66
|
+
.aui-root pre {
|
67
|
+
font-family:
|
68
|
+
ui-monospace,
|
69
|
+
SFMono-Regular,
|
70
|
+
Menlo,
|
71
|
+
Monaco,
|
72
|
+
Consolas,
|
73
|
+
"Liberation Mono",
|
74
|
+
"Courier New",
|
75
|
+
monospace;
|
76
|
+
font-feature-settings: normal;
|
77
|
+
font-variation-settings: normal;
|
78
|
+
font-size: 1em;
|
79
|
+
}
|
80
|
+
.aui-root small {
|
81
|
+
font-size: 80%;
|
82
|
+
}
|
83
|
+
.aui-root sub,
|
84
|
+
.aui-root sup {
|
85
|
+
font-size: 75%;
|
86
|
+
line-height: 0;
|
87
|
+
position: relative;
|
88
|
+
vertical-align: baseline;
|
89
|
+
}
|
90
|
+
.aui-root sub {
|
91
|
+
bottom: -0.25em;
|
92
|
+
}
|
93
|
+
.aui-root sup {
|
94
|
+
top: -0.5em;
|
95
|
+
}
|
96
|
+
.aui-root table {
|
97
|
+
text-indent: 0;
|
98
|
+
border-color: inherit;
|
99
|
+
border-collapse: collapse;
|
100
|
+
}
|
101
|
+
.aui-root button,
|
102
|
+
.aui-root input,
|
103
|
+
.aui-root optgroup,
|
104
|
+
.aui-root select,
|
105
|
+
.aui-root textarea {
|
106
|
+
font-family: inherit;
|
107
|
+
font-feature-settings: inherit;
|
108
|
+
font-variation-settings: inherit;
|
109
|
+
font-size: 100%;
|
110
|
+
font-weight: inherit;
|
111
|
+
line-height: inherit;
|
112
|
+
letter-spacing: inherit;
|
113
|
+
color: inherit;
|
114
|
+
margin: 0;
|
115
|
+
padding: 0;
|
116
|
+
}
|
117
|
+
.aui-root button,
|
118
|
+
.aui-root select {
|
119
|
+
text-transform: none;
|
120
|
+
}
|
121
|
+
.aui-root button,
|
122
|
+
.aui-root input:where([type=button]),
|
123
|
+
.aui-root input:where([type=reset]),
|
124
|
+
.aui-root input:where([type=submit]) {
|
125
|
+
-webkit-appearance: button;
|
126
|
+
background-color: transparent;
|
127
|
+
background-image: none;
|
128
|
+
}
|
129
|
+
.aui-root :-moz-focusring {
|
130
|
+
outline: auto;
|
131
|
+
}
|
132
|
+
.aui-root :-moz-ui-invalid {
|
133
|
+
box-shadow: none;
|
134
|
+
}
|
135
|
+
.aui-root progress {
|
136
|
+
vertical-align: baseline;
|
137
|
+
}
|
138
|
+
.aui-root ::-webkit-inner-spin-button,
|
139
|
+
.aui-root ::-webkit-outer-spin-button {
|
140
|
+
height: auto;
|
141
|
+
}
|
142
|
+
.aui-root [type=search] {
|
143
|
+
-webkit-appearance: textfield;
|
144
|
+
outline-offset: -2px;
|
145
|
+
}
|
146
|
+
.aui-root ::-webkit-search-decoration {
|
147
|
+
-webkit-appearance: none;
|
148
|
+
}
|
149
|
+
.aui-root ::-webkit-file-upload-button {
|
150
|
+
-webkit-appearance: button;
|
151
|
+
font: inherit;
|
152
|
+
}
|
153
|
+
.aui-root summary {
|
154
|
+
display: list-item;
|
155
|
+
}
|
156
|
+
.aui-root blockquote,
|
157
|
+
.aui-root dl,
|
158
|
+
.aui-root dd,
|
159
|
+
.aui-root h1,
|
160
|
+
.aui-root h2,
|
161
|
+
.aui-root h3,
|
162
|
+
.aui-root h4,
|
163
|
+
.aui-root h5,
|
164
|
+
.aui-root h6,
|
165
|
+
.aui-root hr,
|
166
|
+
.aui-root figure,
|
167
|
+
.aui-root p,
|
168
|
+
.aui-root pre {
|
169
|
+
margin: 0;
|
170
|
+
}
|
171
|
+
.aui-root fieldset {
|
172
|
+
margin: 0;
|
173
|
+
padding: 0;
|
174
|
+
}
|
175
|
+
.aui-root legend {
|
176
|
+
padding: 0;
|
177
|
+
}
|
178
|
+
.aui-root ol,
|
179
|
+
.aui-root ul,
|
180
|
+
.aui-root menu {
|
181
|
+
list-style: none;
|
182
|
+
margin: 0;
|
183
|
+
padding: 0;
|
184
|
+
}
|
185
|
+
.aui-root dialog {
|
186
|
+
padding: 0;
|
187
|
+
}
|
188
|
+
.aui-root textarea {
|
189
|
+
resize: vertical;
|
190
|
+
}
|
191
|
+
.aui-root input::-moz-placeholder,
|
192
|
+
.aui-root textarea::-moz-placeholder {
|
193
|
+
opacity: 1;
|
194
|
+
color: #9ca3af;
|
195
|
+
}
|
196
|
+
.aui-root input::placeholder,
|
197
|
+
.aui-root textarea::placeholder {
|
198
|
+
opacity: 1;
|
199
|
+
color: #9ca3af;
|
200
|
+
}
|
201
|
+
.aui-root button,
|
202
|
+
.aui-root [role=button] {
|
203
|
+
cursor: pointer;
|
204
|
+
}
|
205
|
+
.aui-root :disabled {
|
206
|
+
cursor: default;
|
207
|
+
}
|
208
|
+
.aui-root img,
|
209
|
+
.aui-root svg,
|
210
|
+
.aui-root video,
|
211
|
+
.aui-root canvas,
|
212
|
+
.aui-root audio,
|
213
|
+
.aui-root iframe,
|
214
|
+
.aui-root embed,
|
215
|
+
.aui-root object {
|
216
|
+
display: block;
|
217
|
+
vertical-align: middle;
|
218
|
+
}
|
219
|
+
.aui-root img,
|
220
|
+
.aui-root video {
|
221
|
+
max-width: 100%;
|
222
|
+
height: auto;
|
223
|
+
}
|
224
|
+
.aui-root [hidden] {
|
225
|
+
display: none;
|
226
|
+
}
|
227
|
+
.aui-root *,
|
228
|
+
.aui-root ::before,
|
229
|
+
.aui-root ::after {
|
230
|
+
--aui-border-spacing-x: 0;
|
231
|
+
--aui-border-spacing-y: 0;
|
232
|
+
--aui-translate-x: 0;
|
233
|
+
--aui-translate-y: 0;
|
234
|
+
--aui-rotate: 0;
|
235
|
+
--aui-skew-x: 0;
|
236
|
+
--aui-skew-y: 0;
|
237
|
+
--aui-scale-x: 1;
|
238
|
+
--aui-scale-y: 1;
|
239
|
+
--aui-ring-inset: ;
|
240
|
+
--aui-ring-offset-width: 0px;
|
241
|
+
--aui-ring-offset-color: #fff;
|
242
|
+
--aui-ring-color: rgb(59 130 246 / 0.5);
|
243
|
+
--aui-ring-offset-shadow: 0 0 #0000;
|
244
|
+
--aui-ring-shadow: 0 0 #0000;
|
245
|
+
--aui-shadow: 0 0 #0000;
|
246
|
+
--aui-shadow-colored: 0 0 #0000;
|
247
|
+
--aui-blur: ;
|
248
|
+
--aui-brightness: ;
|
249
|
+
--aui-contrast: ;
|
250
|
+
--aui-grayscale: ;
|
251
|
+
--aui-hue-rotate: ;
|
252
|
+
--aui-invert: ;
|
253
|
+
--aui-saturate: ;
|
254
|
+
--aui-sepia: ;
|
255
|
+
--aui-drop-shadow: ;
|
256
|
+
--aui-backdrop-blur: ;
|
257
|
+
--aui-backdrop-brightness: ;
|
258
|
+
--aui-backdrop-contrast: ;
|
259
|
+
--aui-backdrop-grayscale: ;
|
260
|
+
--aui-backdrop-hue-rotate: ;
|
261
|
+
--aui-backdrop-invert: ;
|
262
|
+
--aui-backdrop-opacity: ;
|
263
|
+
--aui-backdrop-saturate: ;
|
264
|
+
--aui-backdrop-sepia: ;
|
265
|
+
--aui-contain-size: ;
|
266
|
+
--aui-contain-layout: ;
|
267
|
+
--aui-contain-paint: ;
|
268
|
+
--aui-contain-style: ;
|
269
|
+
}
|
270
|
+
.aui-root ::backdrop {
|
271
|
+
--aui-border-spacing-x: 0;
|
272
|
+
--aui-border-spacing-y: 0;
|
273
|
+
--aui-translate-x: 0;
|
274
|
+
--aui-translate-y: 0;
|
275
|
+
--aui-rotate: 0;
|
276
|
+
--aui-skew-x: 0;
|
277
|
+
--aui-skew-y: 0;
|
278
|
+
--aui-scale-x: 1;
|
279
|
+
--aui-scale-y: 1;
|
280
|
+
--aui-ring-inset: ;
|
281
|
+
--aui-ring-offset-width: 0px;
|
282
|
+
--aui-ring-offset-color: #fff;
|
283
|
+
--aui-ring-color: rgb(59 130 246 / 0.5);
|
284
|
+
--aui-ring-offset-shadow: 0 0 #0000;
|
285
|
+
--aui-ring-shadow: 0 0 #0000;
|
286
|
+
--aui-shadow: 0 0 #0000;
|
287
|
+
--aui-shadow-colored: 0 0 #0000;
|
288
|
+
--aui-blur: ;
|
289
|
+
--aui-brightness: ;
|
290
|
+
--aui-contrast: ;
|
291
|
+
--aui-grayscale: ;
|
292
|
+
--aui-hue-rotate: ;
|
293
|
+
--aui-invert: ;
|
294
|
+
--aui-saturate: ;
|
295
|
+
--aui-sepia: ;
|
296
|
+
--aui-drop-shadow: ;
|
297
|
+
--aui-backdrop-blur: ;
|
298
|
+
--aui-backdrop-brightness: ;
|
299
|
+
--aui-backdrop-contrast: ;
|
300
|
+
--aui-backdrop-grayscale: ;
|
301
|
+
--aui-backdrop-hue-rotate: ;
|
302
|
+
--aui-backdrop-invert: ;
|
303
|
+
--aui-backdrop-opacity: ;
|
304
|
+
--aui-backdrop-saturate: ;
|
305
|
+
--aui-backdrop-sepia: ;
|
306
|
+
--aui-contain-size: ;
|
307
|
+
--aui-contain-layout: ;
|
308
|
+
--aui-contain-paint: ;
|
309
|
+
--aui-contain-style: ;
|
310
|
+
}
|
311
|
+
@keyframes aui-enter {
|
312
|
+
from {
|
313
|
+
opacity: var(--aui-enter-opacity, 1);
|
314
|
+
transform: translate3d(var(--aui-enter-translate-x, 0), var(--aui-enter-translate-y, 0), 0) scale3d(var(--aui-enter-scale, 1), var(--aui-enter-scale, 1), var(--aui-enter-scale, 1)) rotate(var(--aui-enter-rotate, 0));
|
315
|
+
}
|
316
|
+
}
|
317
|
+
@keyframes aui-exit {
|
318
|
+
to {
|
319
|
+
opacity: var(--aui-exit-opacity, 1);
|
320
|
+
transform: translate3d(var(--aui-exit-translate-x, 0), var(--aui-exit-translate-y, 0), 0) scale3d(var(--aui-exit-scale, 1), var(--aui-exit-scale, 1), var(--aui-exit-scale, 1)) rotate(var(--aui-exit-rotate, 0));
|
321
|
+
}
|
322
|
+
}
|
323
|
+
|
324
|
+
/* src/styles/tailwindcss/base-components.css */
|
325
|
+
.aui-root {
|
326
|
+
border-color: hsl(var(--aui-border));
|
327
|
+
background-color: hsl(var(--aui-background));
|
328
|
+
color: hsl(var(--aui-foreground));
|
329
|
+
}
|
330
|
+
.aui-root .aui-button {
|
331
|
+
display: inline-flex;
|
332
|
+
align-items: center;
|
333
|
+
justify-content: center;
|
334
|
+
white-space: nowrap;
|
335
|
+
border-radius: calc(var(--aui-radius) - 2px);
|
336
|
+
font-size: 0.875rem;
|
337
|
+
line-height: 1.25rem;
|
338
|
+
font-weight: 500;
|
339
|
+
transition-property:
|
340
|
+
color,
|
341
|
+
background-color,
|
342
|
+
border-color,
|
343
|
+
text-decoration-color,
|
344
|
+
fill,
|
345
|
+
stroke;
|
346
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
347
|
+
transition-duration: 150ms;
|
348
|
+
}
|
349
|
+
.aui-root .aui-button:focus-visible {
|
350
|
+
outline: 2px solid transparent;
|
351
|
+
outline-offset: 2px;
|
352
|
+
--aui-ring-offset-shadow: var(--aui-ring-inset) 0 0 0 var(--aui-ring-offset-width) var(--aui-ring-offset-color);
|
353
|
+
--aui-ring-shadow: var(--aui-ring-inset) 0 0 0 calc(1px + var(--aui-ring-offset-width)) var(--aui-ring-color);
|
354
|
+
box-shadow:
|
355
|
+
var(--aui-ring-offset-shadow),
|
356
|
+
var(--aui-ring-shadow),
|
357
|
+
var(--aui-shadow, 0 0 #0000);
|
358
|
+
--aui-ring-color: hsl(var(--aui-ring)) ;
|
359
|
+
}
|
360
|
+
.aui-root .aui-button:disabled {
|
361
|
+
pointer-events: none;
|
362
|
+
opacity: 0.5;
|
363
|
+
}
|
364
|
+
.aui-root .aui-button-primary {
|
365
|
+
background-color: hsl(var(--aui-primary));
|
366
|
+
color: hsl(var(--aui-primary-foreground));
|
367
|
+
--aui-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
368
|
+
--aui-shadow-colored: 0 1px 3px 0 var(--aui-shadow-color), 0 1px 2px -1px var(--aui-shadow-color);
|
369
|
+
box-shadow:
|
370
|
+
var(--aui-ring-offset-shadow, 0 0 #0000),
|
371
|
+
var(--aui-ring-shadow, 0 0 #0000),
|
372
|
+
var(--aui-shadow);
|
373
|
+
}
|
374
|
+
.aui-root .aui-button-primary:hover {
|
375
|
+
background-color: hsl(var(--aui-primary) / 0.9);
|
376
|
+
}
|
377
|
+
.aui-root .aui-button-outline {
|
378
|
+
border-width: 1px;
|
379
|
+
border-color: hsl(var(--aui-input));
|
380
|
+
background-color: hsl(var(--aui-background));
|
381
|
+
--aui-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
382
|
+
--aui-shadow-colored: 0 1px 2px 0 var(--aui-shadow-color);
|
383
|
+
box-shadow:
|
384
|
+
var(--aui-ring-offset-shadow, 0 0 #0000),
|
385
|
+
var(--aui-ring-shadow, 0 0 #0000),
|
386
|
+
var(--aui-shadow);
|
387
|
+
}
|
388
|
+
.aui-root .aui-button-outline:hover {
|
389
|
+
background-color: hsl(var(--aui-accent));
|
390
|
+
color: hsl(var(--aui-accent-foreground));
|
391
|
+
}
|
392
|
+
.aui-root .aui-button-ghost:hover {
|
393
|
+
background-color: hsl(var(--aui-accent));
|
394
|
+
color: hsl(var(--aui-accent-foreground));
|
395
|
+
}
|
396
|
+
.aui-root .aui-button-medium {
|
397
|
+
height: 2.25rem;
|
398
|
+
padding-left: 1rem;
|
399
|
+
padding-right: 1rem;
|
400
|
+
padding-top: 0.5rem;
|
401
|
+
padding-bottom: 0.5rem;
|
402
|
+
}
|
403
|
+
.aui-root .aui-button-icon {
|
404
|
+
width: 1.5rem;
|
405
|
+
height: 1.5rem;
|
406
|
+
padding: 0.25rem;
|
407
|
+
}
|
408
|
+
.aui-root .aui-sr-only {
|
409
|
+
position: absolute;
|
410
|
+
width: 1px;
|
411
|
+
height: 1px;
|
412
|
+
padding: 0;
|
413
|
+
margin: -1px;
|
414
|
+
overflow: hidden;
|
415
|
+
clip: rect(0, 0, 0, 0);
|
416
|
+
white-space: nowrap;
|
417
|
+
border-width: 0;
|
418
|
+
}
|
419
|
+
.aui-root .aui-avatar-root {
|
420
|
+
position: relative;
|
421
|
+
display: flex;
|
422
|
+
height: 2.5rem;
|
423
|
+
width: 2.5rem;
|
424
|
+
flex-shrink: 0;
|
425
|
+
overflow: hidden;
|
426
|
+
border-radius: 9999px;
|
427
|
+
}
|
428
|
+
.aui-root .aui-avatar-image {
|
429
|
+
aspect-ratio: 1 / 1;
|
430
|
+
height: 100%;
|
431
|
+
width: 100%;
|
432
|
+
}
|
433
|
+
.aui-root .aui-avatar-fallback {
|
434
|
+
display: flex;
|
435
|
+
height: 100%;
|
436
|
+
width: 100%;
|
437
|
+
align-items: center;
|
438
|
+
justify-content: center;
|
439
|
+
border-radius: 9999px;
|
440
|
+
background-color: hsl(var(--aui-muted));
|
441
|
+
}
|
442
|
+
.aui-root .aui-tooltip-content {
|
443
|
+
z-index: 50;
|
444
|
+
overflow: hidden;
|
445
|
+
border-radius: calc(var(--aui-radius) - 2px);
|
446
|
+
background-color: hsl(var(--aui-primary));
|
447
|
+
padding-left: 0.75rem;
|
448
|
+
padding-right: 0.75rem;
|
449
|
+
padding-top: 0.375rem;
|
450
|
+
padding-bottom: 0.375rem;
|
451
|
+
font-size: 0.75rem;
|
452
|
+
line-height: 1rem;
|
453
|
+
color: hsl(var(--aui-primary-foreground));
|
454
|
+
animation-name: aui-enter;
|
455
|
+
animation-duration: 150ms;
|
456
|
+
--aui-enter-opacity: initial;
|
457
|
+
--aui-enter-scale: initial;
|
458
|
+
--aui-enter-rotate: initial;
|
459
|
+
--aui-enter-translate-x: initial;
|
460
|
+
--aui-enter-translate-y: initial;
|
461
|
+
--aui-enter-opacity: 0;
|
462
|
+
--aui-enter-scale: .95 ;
|
463
|
+
}
|
464
|
+
.aui-root .aui-tooltip-content[data-state=closed] {
|
465
|
+
animation-name: aui-exit;
|
466
|
+
animation-duration: 150ms;
|
467
|
+
--aui-exit-opacity: initial;
|
468
|
+
--aui-exit-scale: initial;
|
469
|
+
--aui-exit-rotate: initial;
|
470
|
+
--aui-exit-translate-x: initial;
|
471
|
+
--aui-exit-translate-y: initial;
|
472
|
+
--aui-exit-opacity: 0;
|
473
|
+
--aui-exit-scale: .95 ;
|
474
|
+
}
|
475
|
+
.aui-root .aui-tooltip-content[data-side=bottom] {
|
476
|
+
--aui-enter-translate-y: -0.5rem ;
|
477
|
+
}
|
478
|
+
.aui-root .aui-tooltip-content[data-side=left] {
|
479
|
+
--aui-enter-translate-x: 0.5rem ;
|
480
|
+
}
|
481
|
+
.aui-root .aui-tooltip-content[data-side=right] {
|
482
|
+
--aui-enter-translate-x: -0.5rem ;
|
483
|
+
}
|
484
|
+
.aui-root .aui-tooltip-content[data-side=top] {
|
485
|
+
--aui-enter-translate-y: 0.5rem ;
|
486
|
+
}
|
487
|
+
|
488
|
+
/* src/styles/tailwindcss/thread.css */
|
489
|
+
.aui-root.aui-thread-root {
|
490
|
+
box-sizing: border-box;
|
491
|
+
height: 100%;
|
492
|
+
background-color: hsl(var(--aui-background));
|
493
|
+
}
|
494
|
+
.aui-root.aui-thread-root > .aui-thread-viewport {
|
495
|
+
background-color: inherit;
|
496
|
+
}
|
497
|
+
.aui-root .aui-thread-viewport {
|
498
|
+
display: flex;
|
499
|
+
height: 100%;
|
500
|
+
flex-direction: column;
|
501
|
+
align-items: center;
|
502
|
+
overflow-y: scroll;
|
503
|
+
scroll-behavior: smooth;
|
504
|
+
background-color: hsl(var(--aui-background));
|
505
|
+
padding-left: 1rem;
|
506
|
+
padding-right: 1rem;
|
507
|
+
padding-top: 2rem;
|
508
|
+
}
|
509
|
+
.aui-root .aui-thread-viewport-footer {
|
510
|
+
position: sticky;
|
511
|
+
bottom: 0px;
|
512
|
+
margin-top: 1rem;
|
513
|
+
display: flex;
|
514
|
+
width: 100%;
|
515
|
+
max-width: 42rem;
|
516
|
+
flex-grow: 1;
|
517
|
+
flex-direction: column;
|
518
|
+
align-items: center;
|
519
|
+
justify-content: flex-end;
|
520
|
+
border-top-left-radius: var(--aui-radius);
|
521
|
+
border-top-right-radius: var(--aui-radius);
|
522
|
+
background-color: inherit;
|
523
|
+
padding-bottom: 1rem;
|
524
|
+
}
|
525
|
+
.aui-root .aui-thread-scroll-to-bottom {
|
526
|
+
position: absolute;
|
527
|
+
top: -2rem;
|
528
|
+
border-radius: 9999px;
|
529
|
+
}
|
530
|
+
.aui-root .aui-thread-scroll-to-bottom:disabled {
|
531
|
+
visibility: hidden;
|
532
|
+
}
|
533
|
+
.aui-root .aui-thread-welcome-root {
|
534
|
+
display: flex;
|
535
|
+
width: 100%;
|
536
|
+
max-width: 42rem;
|
537
|
+
flex-grow: 1;
|
538
|
+
flex-basis: 100%;
|
539
|
+
flex-direction: column;
|
540
|
+
}
|
541
|
+
.aui-root .aui-thread-welcome-center {
|
542
|
+
display: flex;
|
543
|
+
width: 100%;
|
544
|
+
flex-grow: 1;
|
545
|
+
flex-direction: column;
|
546
|
+
align-items: center;
|
547
|
+
justify-content: center;
|
548
|
+
}
|
549
|
+
.aui-root .aui-thread-welcome-message {
|
550
|
+
margin-top: 1rem;
|
551
|
+
font-weight: 500;
|
552
|
+
}
|
553
|
+
.aui-root .aui-thread-welcome-suggestion-container {
|
554
|
+
margin-top: 1rem;
|
555
|
+
display: flex;
|
556
|
+
width: 100%;
|
557
|
+
align-items: stretch;
|
558
|
+
justify-content: center;
|
559
|
+
gap: 1rem;
|
560
|
+
}
|
561
|
+
.aui-root .aui-thread-welcome-suggestion {
|
562
|
+
display: flex;
|
563
|
+
max-width: 24rem;
|
564
|
+
flex-grow: 1;
|
565
|
+
flex-basis: 0px;
|
566
|
+
flex-direction: column;
|
567
|
+
align-items: center;
|
568
|
+
justify-content: center;
|
569
|
+
border-radius: var(--aui-radius);
|
570
|
+
border-width: 1px;
|
571
|
+
padding-left: 0.75rem;
|
572
|
+
padding-right: 0.75rem;
|
573
|
+
padding-top: 0.75rem;
|
574
|
+
padding-bottom: 0.75rem;
|
575
|
+
}
|
576
|
+
.aui-root .aui-thread-welcome-suggestion-text {
|
577
|
+
overflow: hidden;
|
578
|
+
display: -webkit-box;
|
579
|
+
-webkit-box-orient: vertical;
|
580
|
+
-webkit-line-clamp: 2;
|
581
|
+
text-overflow: ellipsis;
|
582
|
+
font-size: 0.875rem;
|
583
|
+
line-height: 1.25rem;
|
584
|
+
font-weight: 600;
|
585
|
+
}
|
586
|
+
.aui-root .aui-composer-root {
|
587
|
+
position: relative;
|
588
|
+
display: flex;
|
589
|
+
width: 100%;
|
590
|
+
align-items: flex-end;
|
591
|
+
border-radius: var(--aui-radius);
|
592
|
+
border-width: 1px;
|
593
|
+
transition-property: box-shadow;
|
594
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
595
|
+
transition-duration: 150ms;
|
596
|
+
}
|
597
|
+
.aui-root .aui-composer-root:focus-within {
|
598
|
+
--aui-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
599
|
+
--aui-shadow-colored: 0 1px 2px 0 var(--aui-shadow-color);
|
600
|
+
box-shadow:
|
601
|
+
var(--aui-ring-offset-shadow, 0 0 #0000),
|
602
|
+
var(--aui-ring-shadow, 0 0 #0000),
|
603
|
+
var(--aui-shadow);
|
604
|
+
}
|
605
|
+
.aui-root .aui-composer-input {
|
606
|
+
width: 100%;
|
607
|
+
height: 100%;
|
608
|
+
max-height: 10rem;
|
609
|
+
resize: none;
|
610
|
+
background-color: transparent;
|
611
|
+
padding: 1rem;
|
612
|
+
padding-right: 3rem;
|
613
|
+
font-size: 0.875rem;
|
614
|
+
line-height: 1.25rem;
|
615
|
+
outline: 2px solid transparent;
|
616
|
+
outline-offset: 2px;
|
617
|
+
}
|
618
|
+
.aui-root .aui-composer-input::-moz-placeholder {
|
619
|
+
color: hsl(var(--aui-muted-foreground));
|
620
|
+
}
|
621
|
+
.aui-root .aui-composer-input::placeholder {
|
622
|
+
color: hsl(var(--aui-muted-foreground));
|
623
|
+
}
|
624
|
+
.aui-root .aui-composer-send,
|
625
|
+
.aui-root .aui-composer-cancel {
|
626
|
+
position: absolute;
|
627
|
+
bottom: 0px;
|
628
|
+
right: 0px;
|
629
|
+
margin: 0.625rem;
|
630
|
+
width: 2rem;
|
631
|
+
height: 2rem;
|
632
|
+
padding: 0.5rem;
|
633
|
+
transition-property: opacity;
|
634
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
635
|
+
transition-duration: 150ms;
|
636
|
+
}
|
637
|
+
.aui-root .aui-user-message-root {
|
638
|
+
display: grid;
|
639
|
+
grid-auto-rows: auto;
|
640
|
+
grid-template-columns: minmax(72px, 1fr) auto;
|
641
|
+
row-gap: 0.5rem;
|
642
|
+
}
|
643
|
+
.aui-root .aui-user-message-root > * {
|
644
|
+
grid-column-start: 2;
|
645
|
+
}
|
646
|
+
.aui-root .aui-user-message-root {
|
647
|
+
width: 100%;
|
648
|
+
max-width: 42rem;
|
649
|
+
padding-top: 1rem;
|
650
|
+
padding-bottom: 1rem;
|
651
|
+
}
|
652
|
+
.aui-root .aui-user-message-root > .aui-user-action-bar-root {
|
653
|
+
grid-column-start: 1;
|
654
|
+
margin-right: 0.75rem;
|
655
|
+
margin-top: 0.625rem;
|
656
|
+
}
|
657
|
+
.aui-root .aui-user-message-root > .aui-user-message-content {
|
658
|
+
grid-column-start: 2;
|
659
|
+
grid-row-start: 1;
|
660
|
+
}
|
661
|
+
.aui-root .aui-user-message-root > .aui-branch-picker-root {
|
662
|
+
grid-column: 1 / -1;
|
663
|
+
grid-column-start: 1;
|
664
|
+
grid-row-start: 2;
|
665
|
+
margin-right: -0.25rem;
|
666
|
+
justify-content: flex-end;
|
667
|
+
}
|
668
|
+
.aui-root .aui-user-message-content {
|
669
|
+
max-width: 36rem;
|
670
|
+
overflow-wrap: break-word;
|
671
|
+
border-radius: 1.5rem;
|
672
|
+
background-color: hsl(var(--aui-muted));
|
673
|
+
padding-left: 1.25rem;
|
674
|
+
padding-right: 1.25rem;
|
675
|
+
padding-top: 0.625rem;
|
676
|
+
padding-bottom: 0.625rem;
|
677
|
+
color: hsl(var(--aui-foreground));
|
678
|
+
}
|
679
|
+
.aui-root .aui-user-action-bar-root {
|
680
|
+
display: flex;
|
681
|
+
flex-direction: column;
|
682
|
+
align-items: flex-end;
|
683
|
+
}
|
684
|
+
.aui-root .aui-edit-composer-root {
|
685
|
+
margin-top: 1rem;
|
686
|
+
margin-bottom: 1rem;
|
687
|
+
display: flex;
|
688
|
+
width: 100%;
|
689
|
+
max-width: 42rem;
|
690
|
+
flex-direction: column;
|
691
|
+
gap: 0.5rem;
|
692
|
+
border-radius: 0.75rem;
|
693
|
+
background-color: hsl(var(--aui-muted));
|
694
|
+
}
|
695
|
+
.aui-root .aui-edit-composer-input {
|
696
|
+
display: flex;
|
697
|
+
height: 2rem;
|
698
|
+
width: 100%;
|
699
|
+
resize: none;
|
700
|
+
background-color: transparent;
|
701
|
+
padding: 1rem;
|
702
|
+
padding-bottom: 0px;
|
703
|
+
color: hsl(var(--aui-foreground));
|
704
|
+
outline: 2px solid transparent;
|
705
|
+
outline-offset: 2px;
|
706
|
+
}
|
707
|
+
.aui-root .aui-edit-composer-footer {
|
708
|
+
margin-left: 0.75rem;
|
709
|
+
margin-right: 0.75rem;
|
710
|
+
margin-bottom: 0.75rem;
|
711
|
+
display: flex;
|
712
|
+
align-items: center;
|
713
|
+
justify-content: center;
|
714
|
+
gap: 0.5rem;
|
715
|
+
align-self: flex-end;
|
716
|
+
}
|
717
|
+
.aui-root .aui-assistant-message-root {
|
718
|
+
display: grid;
|
719
|
+
grid-template-columns: auto auto 1fr;
|
720
|
+
grid-template-rows: auto 1fr;
|
721
|
+
position: relative;
|
722
|
+
width: 100%;
|
723
|
+
max-width: 42rem;
|
724
|
+
padding-top: 1rem;
|
725
|
+
padding-bottom: 1rem;
|
726
|
+
}
|
727
|
+
.aui-root .aui-assistant-message-root > .aui-avatar-root {
|
728
|
+
grid-column-start: 1;
|
729
|
+
grid-row: 1 / -1;
|
730
|
+
grid-row-start: 1;
|
731
|
+
margin-right: 1rem;
|
732
|
+
}
|
733
|
+
.aui-root .aui-assistant-message-root > .aui-branch-picker-root {
|
734
|
+
grid-column-start: 2;
|
735
|
+
grid-row-start: 2;
|
736
|
+
margin-left: -0.5rem;
|
737
|
+
margin-right: 0.5rem;
|
738
|
+
}
|
739
|
+
.aui-root .aui-assistant-message-root > .aui-assistant-action-bar-root {
|
740
|
+
grid-column-start: 3;
|
741
|
+
grid-row-start: 2;
|
742
|
+
margin-left: -0.25rem;
|
743
|
+
}
|
744
|
+
.aui-root .aui-assistant-message-root > .aui-assistant-message-content {
|
745
|
+
grid-column: span 2 / span 2;
|
746
|
+
grid-column-start: 2;
|
747
|
+
grid-row-start: 1;
|
748
|
+
margin-top: 0.375rem;
|
749
|
+
margin-bottom: 0.375rem;
|
750
|
+
}
|
751
|
+
.aui-root .aui-assistant-message-content {
|
752
|
+
max-width: 36rem;
|
753
|
+
overflow-wrap: break-word;
|
754
|
+
line-height: 1.75rem;
|
755
|
+
color: hsl(var(--aui-foreground));
|
756
|
+
}
|
757
|
+
.aui-root .aui-assistant-action-bar-root {
|
758
|
+
display: flex;
|
759
|
+
gap: 0.25rem;
|
760
|
+
color: hsl(var(--aui-muted-foreground));
|
761
|
+
}
|
762
|
+
.aui-root .aui-assistant-action-bar-root[data-floating] {
|
763
|
+
position: absolute;
|
764
|
+
border-radius: calc(var(--aui-radius) - 2px);
|
765
|
+
border-width: 1px;
|
766
|
+
background-color: hsl(var(--aui-background));
|
767
|
+
padding: 0.25rem;
|
768
|
+
--aui-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
769
|
+
--aui-shadow-colored: 0 1px 2px 0 var(--aui-shadow-color);
|
770
|
+
box-shadow:
|
771
|
+
var(--aui-ring-offset-shadow, 0 0 #0000),
|
772
|
+
var(--aui-ring-shadow, 0 0 #0000),
|
773
|
+
var(--aui-shadow);
|
774
|
+
}
|
775
|
+
.aui-root .aui-branch-picker-root {
|
776
|
+
display: inline-flex;
|
777
|
+
align-items: center;
|
778
|
+
font-size: 0.75rem;
|
779
|
+
line-height: 1rem;
|
780
|
+
color: hsl(var(--aui-muted-foreground));
|
781
|
+
}
|
782
|
+
.aui-root .aui-branch-picker-state {
|
783
|
+
font-weight: 500;
|
784
|
+
}
|
785
|
+
.aui-root .aui-text {
|
786
|
+
white-space: pre-line;
|
787
|
+
}
|
788
|
+
@keyframes aui-pulse {
|
789
|
+
50% {
|
790
|
+
opacity: .5;
|
791
|
+
}
|
792
|
+
}
|
793
|
+
.aui-root .aui-text-in-progress::after {
|
794
|
+
animation: aui-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
795
|
+
font-family:
|
796
|
+
ui-sans-serif,
|
797
|
+
system-ui,
|
798
|
+
sans-serif,
|
799
|
+
"Apple Color Emoji",
|
800
|
+
"Segoe UI Emoji",
|
801
|
+
"Segoe UI Symbol",
|
802
|
+
"Noto Color Emoji";
|
803
|
+
--aui-content: "\25cf";
|
804
|
+
content: var(--aui-content);
|
805
|
+
}
|
806
|
+
.aui-root .aui-text-in-progress:where([dir=ltr], [dir=ltr] *)::after {
|
807
|
+
margin-left: 0.25rem;
|
808
|
+
}
|
809
|
+
.aui-root .aui-text-in-progress:where([dir=rtl], [dir=rtl] *)::after {
|
810
|
+
margin-right: 0.25rem;
|
811
|
+
}
|
812
|
+
|
813
|
+
/* src/styles/themes/default.css */
|
814
|
+
:root {
|
815
|
+
--aui-background: 0 0% 100%;
|
816
|
+
--aui-foreground: 240 10% 3.9%;
|
817
|
+
--aui-card: 0 0% 100%;
|
818
|
+
--aui-card-foreground: 240 10% 3.9%;
|
819
|
+
--aui-popover: 0 0% 100%;
|
820
|
+
--aui-popover-foreground: 240 10% 3.9%;
|
821
|
+
--aui-primary: 240 5.9% 10%;
|
822
|
+
--aui-primary-foreground: 0 0% 98%;
|
823
|
+
--aui-secondary: 240 4.8% 95.9%;
|
824
|
+
--aui-secondary-foreground: 240 5.9% 10%;
|
825
|
+
--aui-muted: 240 4.8% 95.9%;
|
826
|
+
--aui-muted-foreground: 240 3.8% 46.1%;
|
827
|
+
--aui-accent: 240 4.8% 95.9%;
|
828
|
+
--aui-accent-foreground: 240 5.9% 10%;
|
829
|
+
--aui-destructive: 0 84.2% 60.2%;
|
830
|
+
--aui-destructive-foreground: 0 0% 98%;
|
831
|
+
--aui-border: 240 5.9% 90%;
|
832
|
+
--aui-input: 240 5.9% 90%;
|
833
|
+
--aui-ring: 240 10% 3.9%;
|
834
|
+
--aui-radius: 0.5rem;
|
835
|
+
}
|
836
|
+
.dark {
|
837
|
+
--aui-background: 0 0% 7%;
|
838
|
+
--aui-foreground: 0 0% 98%;
|
839
|
+
--aui-card: 240 10% 3.9%;
|
840
|
+
--aui-card-foreground: 0 0% 98%;
|
841
|
+
--aui-popover: 240 10% 3.9%;
|
842
|
+
--aui-popover-foreground: 0 0% 98%;
|
843
|
+
--aui-primary: 0 0% 98%;
|
844
|
+
--aui-primary-foreground: 240 5.9% 10%;
|
845
|
+
--aui-secondary: 240 3.7% 15.9%;
|
846
|
+
--aui-secondary-foreground: 0 0% 98%;
|
847
|
+
--aui-muted: 240 3.7% 15.9%;
|
848
|
+
--aui-muted-foreground: 240 5% 64.9%;
|
849
|
+
--aui-accent: 240 3.7% 15.9%;
|
850
|
+
--aui-accent-foreground: 0 0% 98%;
|
851
|
+
--aui-destructive: 0 62.8% 30.6%;
|
852
|
+
--aui-destructive-foreground: 0 0% 98%;
|
853
|
+
--aui-border: 240 3.7% 15.9%;
|
854
|
+
--aui-input: 240 3.7% 15.9%;
|
855
|
+
--aui-ring: 240 4.9% 83.9%;
|
856
|
+
}
|
857
|
+
|
858
|
+
/* src/styles/index.css */
|
859
|
+
/*# sourceMappingURL=index.css.map */
|