@theoremjs/react 0.3.5-next.902.g334d23a → 0.3.5-next.904.g8358918
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/README.md +1 -1
- package/package.json +5 -5
- package/ui/built/theme.css +39 -17
- package/ui/built/theme.css.d.ts +2 -2
- package/ui/built/theorem.d.ts +2 -2
- package/ui/built/theorem.js +38 -19
- package/ui/built/theorem.variants.d.ts +2 -2
package/README.md
CHANGED
|
@@ -65,7 +65,7 @@ npm install @astryxdesign/core @stylexjs/stylex
|
|
|
65
65
|
|
|
66
66
|
To build your own theme from the Theorem theme (`/ui/theme`), also install `@astryxdesign/theme-neutral`.
|
|
67
67
|
|
|
68
|
-
Use the versions that this package lists in `peerDependencies`. Install `@theoremjs/react`, `@theoremjs/web`, and `@theoremjs/agents` at the same version. The Astryx and StyleX peers are optional. The hooks work without them.
|
|
68
|
+
Use the versions that this package lists in `peerDependencies`. The Astryx peers are pinned to one exact version, because the ready-made theme is built with that version of Astryx. Install `@theoremjs/react`, `@theoremjs/web`, and `@theoremjs/agents` at the same version. The Astryx and StyleX peers are optional. The hooks work without them.
|
|
69
69
|
|
|
70
70
|
When a chat turn, a call, a host request, or a decision fails, the ready-made UI shows the error in a banner that screen readers announce at once. The end of a live call is announced when the reader is next idle.
|
|
71
71
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theoremjs/react",
|
|
3
|
-
"version": "0.3.5-next.
|
|
3
|
+
"version": "0.3.5-next.904.g8358918",
|
|
4
4
|
"description": "React bindings for Theorem: headless hooks + transport, an Astryx chat UI, and a Web-standard server handler.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -55,13 +55,13 @@
|
|
|
55
55
|
"recharts": "^3.10.1"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"@astryxdesign/core": "0.7.
|
|
59
|
-
"@astryxdesign/theme-neutral": "0.7.
|
|
58
|
+
"@astryxdesign/core": "0.7.11",
|
|
59
|
+
"@astryxdesign/theme-neutral": "0.7.11",
|
|
60
60
|
"@stylexjs/stylex": "0.19.0",
|
|
61
61
|
"react": "^19.0.0",
|
|
62
62
|
"react-dom": "^19.0.0",
|
|
63
|
-
"@theoremjs/agents": "^0.3.5-next.
|
|
64
|
-
"@theoremjs/web": "^0.3.5-next.
|
|
63
|
+
"@theoremjs/agents": "^0.3.5-next.904.g8358918",
|
|
64
|
+
"@theoremjs/web": "^0.3.5-next.904.g8358918"
|
|
65
65
|
},
|
|
66
66
|
"peerDependenciesMeta": {
|
|
67
67
|
"@astryxdesign/core": {
|
package/ui/built/theme.css
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @generated by `astryx theme build` — do not edit manually.
|
|
3
3
|
* Source: src/ui/theorem-theme.ts
|
|
4
4
|
* Command: astryx theme build src/ui/theorem-theme.ts --out src/ui/built/theme.css
|
|
5
|
-
* CLI: @astryxdesign/cli@0.7.
|
|
6
|
-
* Core: @astryxdesign/core@0.7.
|
|
5
|
+
* CLI: @astryxdesign/cli@0.7.11
|
|
6
|
+
* Core: @astryxdesign/core@0.7.11
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
@layer reset, astryx-base, astryx-theme;
|
|
@@ -158,22 +158,23 @@
|
|
|
158
158
|
--_astryx-pre-tempo-duration-slow-min: 525ms;
|
|
159
159
|
--_astryx-pre-tempo-duration-slow: 700ms;
|
|
160
160
|
--_astryx-pre-tempo-duration-slow-max: 935ms;
|
|
161
|
+
--_astryx-motion-tempo: 1;
|
|
161
162
|
--font-family-body: Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
162
163
|
--font-family-heading: Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
163
164
|
--font-family-code: ui-monospace, "SF Mono", Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
|
164
165
|
--color-syntax-keyword: light-dark(#6b187c, #efa8ff);
|
|
165
166
|
--color-syntax-string: light-dark(#0b5615, #a4d6a3);
|
|
166
|
-
--color-syntax-comment: light-dark(#
|
|
167
|
+
--color-syntax-comment: light-dark(#525252, #b9b9b9);
|
|
167
168
|
--color-syntax-number: light-dark(#733100, #ffb37e);
|
|
168
169
|
--color-syntax-function: light-dark(#00458c, #a1caff);
|
|
169
170
|
--color-syntax-type: light-dark(#6b187c, #efa8ff);
|
|
170
171
|
--color-syntax-variable: light-dark(#111111, #e2e2e2);
|
|
171
|
-
--color-syntax-operator: light-dark(#
|
|
172
|
+
--color-syntax-operator: light-dark(#525252, #b9b9b9);
|
|
172
173
|
--color-syntax-constant: light-dark(#733100, #ffb37e);
|
|
173
174
|
--color-syntax-tag: light-dark(#8a0011, #ffaea7);
|
|
174
175
|
--color-syntax-attribute: light-dark(#584400, #eec448);
|
|
175
176
|
--color-syntax-property: light-dark(#005348, #90d7c8);
|
|
176
|
-
--color-syntax-punctuation: light-dark(#
|
|
177
|
+
--color-syntax-punctuation: light-dark(#525252, #b9b9b9);
|
|
177
178
|
--color-syntax-background: light-dark(#ffffff, #111111);
|
|
178
179
|
--color-syntax-added: color-mix(in srgb, var(--color-success-muted) 25%, transparent);
|
|
179
180
|
--color-syntax-removed: color-mix(in srgb, var(--color-error-muted) 25%, transparent);
|
|
@@ -186,7 +187,7 @@
|
|
|
186
187
|
--color-background-popover: light-dark(#ffffff, #1b1b1b);
|
|
187
188
|
--color-background-muted: light-dark(#f1f1f1, #1b1b1b);
|
|
188
189
|
--color-accent: light-dark(#1b1b1b, #f1f1f1);
|
|
189
|
-
--color-accent-muted: light-dark(#
|
|
190
|
+
--color-accent-muted: light-dark(#d4d4d4, #474747);
|
|
190
191
|
--color-neutral: light-dark(#0000000F, #ffffff1A);
|
|
191
192
|
--color-overlay: light-dark(#00000080, #000000CC);
|
|
192
193
|
--color-overlay-hover: light-dark(#0000000D, #ffffff0D);
|
|
@@ -289,6 +290,7 @@
|
|
|
289
290
|
--color-border-success: var(--color-text-success);
|
|
290
291
|
--color-border-warning: var(--color-text-warning);
|
|
291
292
|
--color-border-error: var(--color-text-error);
|
|
293
|
+
--duration-exit: var(--duration-fast);
|
|
292
294
|
--astryx-theme-neutral-color-status-fill-accent: light-dark(#0074e2, #6d9cfe);
|
|
293
295
|
}
|
|
294
296
|
|
|
@@ -404,6 +406,33 @@
|
|
|
404
406
|
line-height: var(--text-display-3-leading);
|
|
405
407
|
}
|
|
406
408
|
|
|
409
|
+
.astryx-item[data-selected="selected"] {
|
|
410
|
+
--color-text-secondary: light-dark(#474747, #c6c6c6);
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.astryx-tree-list-item[data-selected="selected"] {
|
|
414
|
+
--color-text-secondary: light-dark(#474747, #c6c6c6);
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.astryx-file-input[data-mode="dropzone"] {
|
|
418
|
+
--color-text-secondary: light-dark(#474747, #c6c6c6);
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.astryx-citation[data-variant="number"] {
|
|
422
|
+
--color-text-secondary: light-dark(#474747, #c6c6c6);
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
.astryx-citation:where(*) > [aria-hidden="true"] {
|
|
426
|
+
background-color: transparent;
|
|
427
|
+
border-width: 0;
|
|
428
|
+
border-radius: 0;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
.astryx-citation:where(*) > [aria-hidden="true"] > img {
|
|
432
|
+
width: 100%;
|
|
433
|
+
height: 100%;
|
|
434
|
+
}
|
|
435
|
+
|
|
407
436
|
.astryx-button[data-variant="destructive"] {
|
|
408
437
|
background-color: var(--color-error-muted);
|
|
409
438
|
color: var(--color-on-error-muted);
|
|
@@ -531,17 +560,6 @@
|
|
|
531
560
|
content-visibility: hidden;
|
|
532
561
|
}
|
|
533
562
|
|
|
534
|
-
.astryx-citation:where(*) > [aria-hidden="true"] {
|
|
535
|
-
background-color: transparent;
|
|
536
|
-
border-width: 0;
|
|
537
|
-
border-radius: 0;
|
|
538
|
-
}
|
|
539
|
-
|
|
540
|
-
.astryx-citation:where(*) > [aria-hidden="true"] > img {
|
|
541
|
-
width: 100%;
|
|
542
|
-
height: 100%;
|
|
543
|
-
}
|
|
544
|
-
|
|
545
563
|
.astryx-chat-tool-calls:where(*) [role="button"][aria-expanded] > span:not(:first-child):not(:has(svg)) {
|
|
546
564
|
align-self: baseline;
|
|
547
565
|
}
|
|
@@ -578,6 +596,10 @@
|
|
|
578
596
|
|
|
579
597
|
.astryx-heading[data-color="accent"] { color: var(--color-text-accent); }
|
|
580
598
|
|
|
599
|
+
.astryx-text[data-color="inherit"] { color: inherit; }
|
|
600
|
+
|
|
601
|
+
.astryx-heading[data-color="inherit"] { color: inherit; }
|
|
602
|
+
|
|
581
603
|
.astryx-text[data-size="4xs"] { font-size: var(--font-size-4xs); }
|
|
582
604
|
|
|
583
605
|
.astryx-text[data-size="3xs"] { font-size: var(--font-size-3xs); }
|
package/ui/built/theme.css.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @generated by `astryx theme build` — do not edit manually.
|
|
3
3
|
* Source: src/ui/theorem-theme.ts
|
|
4
4
|
* Command: astryx theme build src/ui/theorem-theme.ts --out src/ui/built/theme.css
|
|
5
|
-
* CLI: @astryxdesign/cli@0.7.
|
|
6
|
-
* Core: @astryxdesign/core@0.7.
|
|
5
|
+
* CLI: @astryxdesign/cli@0.7.11
|
|
6
|
+
* Core: @astryxdesign/core@0.7.11
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
export {};
|
package/ui/built/theorem.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @generated by `astryx theme build` — do not edit manually.
|
|
3
3
|
* Source: src/ui/theorem-theme.ts
|
|
4
4
|
* Command: astryx theme build src/ui/theorem-theme.ts --out src/ui/built/theme.css
|
|
5
|
-
* CLI: @astryxdesign/cli@0.7.
|
|
6
|
-
* Core: @astryxdesign/core@0.7.
|
|
5
|
+
* CLI: @astryxdesign/cli@0.7.11
|
|
6
|
+
* Core: @astryxdesign/core@0.7.11
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
/// <reference path="./theorem.variants.d.ts" />
|
package/ui/built/theorem.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @generated by `astryx theme build` — do not edit manually.
|
|
3
3
|
* Source: src/ui/theorem-theme.ts
|
|
4
4
|
* Command: astryx theme build src/ui/theorem-theme.ts --out src/ui/built/theme.css
|
|
5
|
-
* CLI: @astryxdesign/cli@0.7.
|
|
6
|
-
* Core: @astryxdesign/core@0.7.
|
|
5
|
+
* CLI: @astryxdesign/cli@0.7.11
|
|
6
|
+
* Core: @astryxdesign/core@0.7.11
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { neutralTheme } from '@astryxdesign/theme-neutral/built';
|
|
@@ -92,22 +92,23 @@ export const theoremTheme = {
|
|
|
92
92
|
"--_astryx-pre-tempo-duration-slow-min": "525ms",
|
|
93
93
|
"--_astryx-pre-tempo-duration-slow": "700ms",
|
|
94
94
|
"--_astryx-pre-tempo-duration-slow-max": "935ms",
|
|
95
|
+
"--_astryx-motion-tempo": "1",
|
|
95
96
|
"--font-family-body": "Figtree, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif",
|
|
96
97
|
"--font-family-heading": "Figtree, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif",
|
|
97
98
|
"--font-family-code": "ui-monospace, \"SF Mono\", Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace",
|
|
98
99
|
"--color-syntax-keyword": "light-dark(#6b187c, #efa8ff)",
|
|
99
100
|
"--color-syntax-string": "light-dark(#0b5615, #a4d6a3)",
|
|
100
|
-
"--color-syntax-comment": "light-dark(#
|
|
101
|
+
"--color-syntax-comment": "light-dark(#525252, #b9b9b9)",
|
|
101
102
|
"--color-syntax-number": "light-dark(#733100, #ffb37e)",
|
|
102
103
|
"--color-syntax-function": "light-dark(#00458c, #a1caff)",
|
|
103
104
|
"--color-syntax-type": "light-dark(#6b187c, #efa8ff)",
|
|
104
105
|
"--color-syntax-variable": "light-dark(#111111, #e2e2e2)",
|
|
105
|
-
"--color-syntax-operator": "light-dark(#
|
|
106
|
+
"--color-syntax-operator": "light-dark(#525252, #b9b9b9)",
|
|
106
107
|
"--color-syntax-constant": "light-dark(#733100, #ffb37e)",
|
|
107
108
|
"--color-syntax-tag": "light-dark(#8a0011, #ffaea7)",
|
|
108
109
|
"--color-syntax-attribute": "light-dark(#584400, #eec448)",
|
|
109
110
|
"--color-syntax-property": "light-dark(#005348, #90d7c8)",
|
|
110
|
-
"--color-syntax-punctuation": "light-dark(#
|
|
111
|
+
"--color-syntax-punctuation": "light-dark(#525252, #b9b9b9)",
|
|
111
112
|
"--color-syntax-background": "light-dark(#ffffff, #111111)",
|
|
112
113
|
"--color-syntax-added": "color-mix(in srgb, var(--color-success-muted) 25%, transparent)",
|
|
113
114
|
"--color-syntax-removed": "color-mix(in srgb, var(--color-error-muted) 25%, transparent)",
|
|
@@ -120,7 +121,7 @@ export const theoremTheme = {
|
|
|
120
121
|
"--color-background-popover": "light-dark(#ffffff, #1b1b1b)",
|
|
121
122
|
"--color-background-muted": "light-dark(#f1f1f1, #1b1b1b)",
|
|
122
123
|
"--color-accent": "light-dark(#1b1b1b, #f1f1f1)",
|
|
123
|
-
"--color-accent-muted": "light-dark(#
|
|
124
|
+
"--color-accent-muted": "light-dark(#d4d4d4, #474747)",
|
|
124
125
|
"--color-neutral": "light-dark(#0000000F, #ffffff1A)",
|
|
125
126
|
"--color-overlay": "light-dark(#00000080, #000000CC)",
|
|
126
127
|
"--color-overlay-hover": "light-dark(#0000000D, #ffffff0D)",
|
|
@@ -319,6 +320,37 @@ export const theoremTheme = {
|
|
|
319
320
|
"lineHeight": "var(--text-display-3-leading)"
|
|
320
321
|
}
|
|
321
322
|
},
|
|
323
|
+
"item": {
|
|
324
|
+
"selected": {
|
|
325
|
+
"--color-text-secondary": "light-dark(#474747, #c6c6c6)"
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
"tree-list-item": {
|
|
329
|
+
"selected": {
|
|
330
|
+
"--color-text-secondary": "light-dark(#474747, #c6c6c6)"
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
"file-input": {
|
|
334
|
+
"mode:dropzone": {
|
|
335
|
+
"--color-text-secondary": "light-dark(#474747, #c6c6c6)"
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
"citation": {
|
|
339
|
+
"variant:number": {
|
|
340
|
+
"--color-text-secondary": "light-dark(#474747, #c6c6c6)"
|
|
341
|
+
},
|
|
342
|
+
"base": {
|
|
343
|
+
":where(*) > [aria-hidden=\"true\"]": {
|
|
344
|
+
"backgroundColor": "transparent",
|
|
345
|
+
"borderWidth": "0",
|
|
346
|
+
"borderRadius": "0"
|
|
347
|
+
},
|
|
348
|
+
":where(*) > [aria-hidden=\"true\"] > img": {
|
|
349
|
+
"width": "100%",
|
|
350
|
+
"height": "100%"
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
},
|
|
322
354
|
"button": {
|
|
323
355
|
"variant:destructive": {
|
|
324
356
|
"backgroundColor": "var(--color-error-muted)",
|
|
@@ -437,19 +469,6 @@ export const theoremTheme = {
|
|
|
437
469
|
}
|
|
438
470
|
}
|
|
439
471
|
},
|
|
440
|
-
"citation": {
|
|
441
|
-
"base": {
|
|
442
|
-
":where(*) > [aria-hidden=\"true\"]": {
|
|
443
|
-
"backgroundColor": "transparent",
|
|
444
|
-
"borderWidth": "0",
|
|
445
|
-
"borderRadius": "0"
|
|
446
|
-
},
|
|
447
|
-
":where(*) > [aria-hidden=\"true\"] > img": {
|
|
448
|
-
"width": "100%",
|
|
449
|
-
"height": "100%"
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
},
|
|
453
472
|
"chat-tool-calls": {
|
|
454
473
|
"base": {
|
|
455
474
|
":where(*) [role=\"button\"][aria-expanded] > span:not(:first-child):not(:has(svg))": {
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @generated by `astryx theme build` — do not edit manually.
|
|
3
3
|
* Source: src/ui/theorem-theme.ts
|
|
4
4
|
* Command: astryx theme build src/ui/theorem-theme.ts --out src/ui/built/theme.css
|
|
5
|
-
* CLI: @astryxdesign/cli@0.7.
|
|
6
|
-
* Core: @astryxdesign/core@0.7.
|
|
5
|
+
* CLI: @astryxdesign/cli@0.7.11
|
|
6
|
+
* Core: @astryxdesign/core@0.7.11
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
// Generated by astryx theme build
|