@mcp-b/react-components 0.64.1 → 0.65.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.
- package/dist/components/agents-sdk/WorkspaceProject.d.ts +2 -1
- package/dist/components/agents-sdk/WorkspaceProject.js +7 -4
- package/dist/components/extension/FirstRunSetup.d.ts +132 -37
- package/dist/components/extension/FirstRunSetup.js +1914 -1561
- package/dist/components/general-purpose/StatusScreen.d.ts +6 -1
- package/dist/components/general-purpose/StatusScreen.js +44 -36
- package/dist/styles/chatgpt-sign-in-screen.css +2 -0
- package/dist/styles/first-run-setup.css +107 -96
- package/dist/styles/select.css +2 -1
- package/dist/styles/switch.css +20 -5
- package/package.json +2 -2
|
@@ -2,9 +2,14 @@ import { EmptyStateProps } from "../foundations/EmptyState.js";
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
//#region src/components/general-purpose/StatusScreen.d.ts
|
|
4
4
|
/** A whole-region status with one shared layout for its message and recovery actions. */
|
|
5
|
-
export declare function StatusScreen({ role, page, title, ...props }: EmptyStateProps & {
|
|
5
|
+
export declare function StatusScreen({ role, page, titleId, title, ...props }: EmptyStateProps & {
|
|
6
6
|
/** Standalone page semantics: a main landmark and level-one title. */
|
|
7
7
|
page?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Inside a frame that is already the page's `main`, such as `FirstRunFrame`, the id the frame
|
|
10
|
+
* labels its screen by. The title then renders as the level-one heading carrying that id.
|
|
11
|
+
*/
|
|
12
|
+
titleId?: string;
|
|
8
13
|
}): React.JSX.Element;
|
|
9
14
|
/** Nonvisual route/status updates; the host supplies the localized announcement. */
|
|
10
15
|
export declare function StatusAnnouncement({ children }: {
|
|
@@ -4,74 +4,82 @@ import { jsx } from "react/jsx-runtime";
|
|
|
4
4
|
//#region src/components/general-purpose/StatusScreen.tsx
|
|
5
5
|
/** A whole-region status with one shared layout for its message and recovery actions. */
|
|
6
6
|
function StatusScreen(t0) {
|
|
7
|
-
const $ = c(
|
|
7
|
+
const $ = c(20);
|
|
8
8
|
let props;
|
|
9
9
|
let t1;
|
|
10
10
|
let t2;
|
|
11
11
|
let title;
|
|
12
|
+
let titleId;
|
|
12
13
|
if ($[0] !== t0) {
|
|
13
|
-
({role: t1, page: t2, title, ...props} = t0);
|
|
14
|
+
({role: t1, page: t2, titleId, title, ...props} = t0);
|
|
14
15
|
$[0] = t0;
|
|
15
16
|
$[1] = props;
|
|
16
17
|
$[2] = t1;
|
|
17
18
|
$[3] = t2;
|
|
18
19
|
$[4] = title;
|
|
20
|
+
$[5] = titleId;
|
|
19
21
|
} else {
|
|
20
22
|
props = $[1];
|
|
21
23
|
t1 = $[2];
|
|
22
24
|
t2 = $[3];
|
|
23
25
|
title = $[4];
|
|
26
|
+
titleId = $[5];
|
|
24
27
|
}
|
|
25
28
|
const role = t1 === void 0 ? "status" : t1;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
29
|
+
const page = t2 === void 0 ? false : t2;
|
|
30
|
+
let t3;
|
|
31
|
+
if ($[6] !== page || $[7] !== title || $[8] !== titleId) {
|
|
32
|
+
t3 = title && (page || titleId) ? /* @__PURE__ */ jsx("h1", {
|
|
33
|
+
className: "status-screen__title",
|
|
34
|
+
id: titleId,
|
|
35
|
+
children: title
|
|
36
|
+
}) : title;
|
|
37
|
+
$[6] = page;
|
|
38
|
+
$[7] = title;
|
|
39
|
+
$[8] = titleId;
|
|
40
|
+
$[9] = t3;
|
|
41
|
+
} else t3 = $[9];
|
|
42
|
+
const heading = t3;
|
|
43
|
+
if (page) {
|
|
36
44
|
let t4;
|
|
37
|
-
if ($[
|
|
45
|
+
if ($[10] !== heading || $[11] !== props || $[12] !== role) {
|
|
38
46
|
t4 = /* @__PURE__ */ jsx("main", {
|
|
39
47
|
className: "status-screen",
|
|
40
48
|
children: /* @__PURE__ */ jsx(EmptyState, {
|
|
41
49
|
...props,
|
|
42
50
|
role,
|
|
43
|
-
title:
|
|
51
|
+
title: heading
|
|
44
52
|
})
|
|
45
53
|
});
|
|
46
|
-
$[
|
|
47
|
-
$[
|
|
48
|
-
$[
|
|
49
|
-
$[
|
|
50
|
-
} else t4 = $[
|
|
54
|
+
$[10] = heading;
|
|
55
|
+
$[11] = props;
|
|
56
|
+
$[12] = role;
|
|
57
|
+
$[13] = t4;
|
|
58
|
+
} else t4 = $[13];
|
|
51
59
|
return t4;
|
|
52
60
|
}
|
|
53
|
-
let
|
|
54
|
-
if ($[
|
|
55
|
-
|
|
56
|
-
title,
|
|
61
|
+
let t4;
|
|
62
|
+
if ($[14] !== heading || $[15] !== props) {
|
|
63
|
+
t4 = /* @__PURE__ */ jsx(EmptyState, {
|
|
64
|
+
title: heading,
|
|
57
65
|
...props
|
|
58
66
|
});
|
|
59
|
-
$[
|
|
60
|
-
$[
|
|
61
|
-
$[
|
|
62
|
-
} else
|
|
63
|
-
let
|
|
64
|
-
if ($[
|
|
65
|
-
|
|
67
|
+
$[14] = heading;
|
|
68
|
+
$[15] = props;
|
|
69
|
+
$[16] = t4;
|
|
70
|
+
} else t4 = $[16];
|
|
71
|
+
let t5;
|
|
72
|
+
if ($[17] !== role || $[18] !== t4) {
|
|
73
|
+
t5 = /* @__PURE__ */ jsx("section", {
|
|
66
74
|
className: "status-screen",
|
|
67
75
|
role,
|
|
68
|
-
children:
|
|
76
|
+
children: t4
|
|
69
77
|
});
|
|
70
|
-
$[
|
|
71
|
-
$[
|
|
72
|
-
$[
|
|
73
|
-
} else
|
|
74
|
-
return
|
|
78
|
+
$[17] = role;
|
|
79
|
+
$[18] = t4;
|
|
80
|
+
$[19] = t5;
|
|
81
|
+
} else t5 = $[19];
|
|
82
|
+
return t5;
|
|
75
83
|
}
|
|
76
84
|
/** Nonvisual route/status updates; the host supplies the localized announcement. */
|
|
77
85
|
function StatusAnnouncement(t0) {
|
|
@@ -129,9 +129,11 @@
|
|
|
129
129
|
color: inherit;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
+
/* Centered under the centered choices it answers. */
|
|
132
133
|
.chatgpt-sign-in__error {
|
|
133
134
|
margin: 0;
|
|
134
135
|
color: var(--sigvelo-color-danger-text);
|
|
136
|
+
text-align: center;
|
|
135
137
|
font-size: var(--sigvelo-text-sm);
|
|
136
138
|
}
|
|
137
139
|
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
.first-run-navigation__menu {
|
|
130
|
-
--sigvelo-recipe-popup-min-inline-size:
|
|
130
|
+
--sigvelo-recipe-popup-min-inline-size: 16rem;
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
.first-run-navigation__step {
|
|
@@ -137,10 +137,14 @@
|
|
|
137
137
|
padding: var(--sigvelo-spacing-2) var(--sigvelo-spacing-3);
|
|
138
138
|
color: var(--sigvelo-color-text-muted);
|
|
139
139
|
|
|
140
|
+
/* The select option's own selected fill shows; only the muted ink lifts. */
|
|
140
141
|
&[data-selected] {
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
142
|
+
color: var(--sigvelo-color-neutral-text-on-subtle);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/* Work's own screens sit under Work, indented by the mark's width. */
|
|
146
|
+
&[data-nested] {
|
|
147
|
+
padding-inline-start: calc(var(--sigvelo-spacing-3) + var(--sigvelo-spacing-7));
|
|
144
148
|
}
|
|
145
149
|
}
|
|
146
150
|
|
|
@@ -186,13 +190,19 @@
|
|
|
186
190
|
}
|
|
187
191
|
|
|
188
192
|
.first-run-screen__scroll {
|
|
193
|
+
/* Top-anchored, so every screen's title sits on the same line. */
|
|
189
194
|
display: grid;
|
|
190
|
-
align-content:
|
|
195
|
+
align-content: start;
|
|
191
196
|
overflow-y: auto;
|
|
192
197
|
overscroll-behavior: contain;
|
|
193
198
|
padding: var(--sigvelo-spacing-8);
|
|
194
199
|
/* A row scrolled into view keeps the padding below it, clear of the fade. */
|
|
195
200
|
scroll-padding-block: var(--sigvelo-spacing-8) var(--sigvelo-spacing-6);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/* A Work panel fades the same way, so a row cut at its edge reads as more to scroll. */
|
|
204
|
+
.first-run-screen__scroll,
|
|
205
|
+
.first-run-work__panel {
|
|
196
206
|
animation:
|
|
197
207
|
first-run-scrolled linear both,
|
|
198
208
|
first-run-left linear both;
|
|
@@ -324,9 +334,14 @@
|
|
|
324
334
|
}
|
|
325
335
|
}
|
|
326
336
|
|
|
337
|
+
/* The profile is a two-line row on the card's own plane, not a card in it. */
|
|
327
338
|
.first-run-profile-card {
|
|
339
|
+
--sigvelo-recipe-card-background: transparent;
|
|
340
|
+
--sigvelo-recipe-card-shadow: none;
|
|
341
|
+
|
|
328
342
|
display: grid;
|
|
329
343
|
grid-template-columns: auto minmax(0, 1fr);
|
|
344
|
+
padding: 0;
|
|
330
345
|
align-items: center;
|
|
331
346
|
gap: var(--sigvelo-spacing-3);
|
|
332
347
|
& .first-run-profile-card__identity {
|
|
@@ -394,48 +409,44 @@
|
|
|
394
409
|
gap: var(--sigvelo-spacing-4);
|
|
395
410
|
inline-size: min(100%, 30rem);
|
|
396
411
|
margin-inline: auto;
|
|
412
|
+
|
|
413
|
+
/* A lone tile keeps a pair's tile width, centered. */
|
|
414
|
+
&:has(> :only-child) {
|
|
415
|
+
grid-template-columns: minmax(0, 1fr);
|
|
416
|
+
inline-size: min(100%, calc((30rem - var(--sigvelo-spacing-4)) / 2));
|
|
417
|
+
}
|
|
397
418
|
}
|
|
398
419
|
|
|
399
|
-
/* A provider tile
|
|
400
|
-
|
|
420
|
+
/* A provider tile: a raised control on the card's plane, lifted as buttons
|
|
421
|
+
are. History's are square buttons; sign-in's are cards whose action covers
|
|
422
|
+
the surface (--linked). The pointer adds a neutral layer over the raised
|
|
423
|
+
surface rather than replace it, so the tile stays opaque on the glass. */
|
|
401
424
|
.first-run-provider-choice {
|
|
425
|
+
--first-run-choice-layer: transparent;
|
|
426
|
+
|
|
402
427
|
display: flex;
|
|
403
428
|
flex-direction: column;
|
|
404
429
|
justify-content: flex-start;
|
|
405
430
|
align-items: center;
|
|
406
431
|
gap: var(--sigvelo-spacing-3);
|
|
407
|
-
|
|
408
|
-
background-
|
|
409
|
-
in oklab,
|
|
410
|
-
var(--sigvelo-color-surface-raised) 94%,
|
|
411
|
-
var(--sigvelo-color-primary-bg)
|
|
412
|
-
);
|
|
432
|
+
background-color: var(--sigvelo-color-surface-raised);
|
|
433
|
+
background-image: linear-gradient(var(--first-run-choice-layer), var(--first-run-choice-layer));
|
|
413
434
|
inline-size: 100%;
|
|
414
435
|
padding: var(--sigvelo-spacing-3);
|
|
415
436
|
text-align: center;
|
|
416
437
|
white-space: normal;
|
|
417
438
|
|
|
418
439
|
&:is(button) {
|
|
419
|
-
--sigvelo-recipe-button-shadow: var(--sigvelo-elevation-raised);
|
|
420
|
-
|
|
421
440
|
aspect-ratio: 1;
|
|
422
441
|
block-size: auto;
|
|
423
442
|
}
|
|
424
443
|
|
|
425
444
|
&:hover:not([data-disabled], :active) {
|
|
426
|
-
|
|
427
|
-
in oklab,
|
|
428
|
-
var(--sigvelo-color-surface-raised) 90%,
|
|
429
|
-
var(--sigvelo-color-primary-bg)
|
|
430
|
-
);
|
|
445
|
+
--first-run-choice-layer: var(--sigvelo-color-neutral-bg-subtle);
|
|
431
446
|
}
|
|
432
447
|
|
|
433
448
|
&:active:not([data-disabled]) {
|
|
434
|
-
|
|
435
|
-
in oklab,
|
|
436
|
-
var(--sigvelo-color-surface-raised) 86%,
|
|
437
|
-
var(--sigvelo-color-primary-bg)
|
|
438
|
-
);
|
|
449
|
+
--first-run-choice-layer: var(--sigvelo-color-neutral-bg-hover);
|
|
439
450
|
}
|
|
440
451
|
}
|
|
441
452
|
|
|
@@ -478,6 +489,12 @@
|
|
|
478
489
|
display: grid;
|
|
479
490
|
gap: var(--sigvelo-spacing-2);
|
|
480
491
|
min-inline-size: 0;
|
|
492
|
+
|
|
493
|
+
/* Every field on these screens is named in body weight, the select's too. */
|
|
494
|
+
& > .select__label {
|
|
495
|
+
font-weight: inherit;
|
|
496
|
+
line-height: inherit;
|
|
497
|
+
}
|
|
481
498
|
}
|
|
482
499
|
|
|
483
500
|
.first-run-model-source {
|
|
@@ -485,8 +502,10 @@
|
|
|
485
502
|
margin: 0;
|
|
486
503
|
padding: 0;
|
|
487
504
|
|
|
505
|
+
/* The UA's legend padding would set it off its radios. */
|
|
488
506
|
& legend {
|
|
489
507
|
margin-block-end: var(--sigvelo-spacing-2);
|
|
508
|
+
padding: 0;
|
|
490
509
|
}
|
|
491
510
|
}
|
|
492
511
|
|
|
@@ -603,19 +622,21 @@
|
|
|
603
622
|
}
|
|
604
623
|
}
|
|
605
624
|
|
|
606
|
-
/* Independent schedule approvals
|
|
625
|
+
/* Independent schedule approvals: two-line rows on the card's own plane,
|
|
626
|
+
spaced apart rather than ruled off. */
|
|
607
627
|
.first-run-schedule-list {
|
|
628
|
+
--sigvelo-recipe-card-background: transparent;
|
|
629
|
+
--sigvelo-recipe-card-shadow: none;
|
|
630
|
+
|
|
631
|
+
display: grid;
|
|
632
|
+
gap: var(--sigvelo-spacing-2);
|
|
608
633
|
list-style: none;
|
|
609
634
|
margin: 0;
|
|
610
635
|
padding: 0;
|
|
611
636
|
}
|
|
612
637
|
|
|
613
638
|
.first-run-schedule-choice {
|
|
614
|
-
padding: var(--sigvelo-spacing-
|
|
615
|
-
& + & {
|
|
616
|
-
border-block-start: var(--sigvelo-border-width) var(--sigvelo-border-style)
|
|
617
|
-
var(--sigvelo-color-neutral-border-muted);
|
|
618
|
-
}
|
|
639
|
+
padding-block: var(--sigvelo-spacing-3);
|
|
619
640
|
}
|
|
620
641
|
|
|
621
642
|
.first-run-schedule {
|
|
@@ -858,11 +879,18 @@
|
|
|
858
879
|
--sigvelo-recipe-card-background: Canvas;
|
|
859
880
|
border: var(--sigvelo-border-width) solid CanvasText;
|
|
860
881
|
}
|
|
882
|
+
|
|
883
|
+
/* Elevation is dropped here; the linked tile keeps a button's edge. */
|
|
884
|
+
.first-run-provider-choice--linked {
|
|
885
|
+
border: var(--sigvelo-border-width) solid ButtonText;
|
|
886
|
+
}
|
|
861
887
|
}
|
|
862
888
|
|
|
863
889
|
:root:active-view-transition-type(first-run-forward, first-run-back) {
|
|
890
|
+
/* A step change is an in-place handover, so it runs on the disclosure
|
|
891
|
+
spring (under 300 ms): React holds the next commit until it ends. */
|
|
864
892
|
&::view-transition-group(*) {
|
|
865
|
-
animation-duration: var(--sigvelo-motion-duration-
|
|
893
|
+
animation-duration: var(--sigvelo-motion-duration-disclosure);
|
|
866
894
|
animation-timing-function: var(--sigvelo-motion-ease-change);
|
|
867
895
|
}
|
|
868
896
|
|
|
@@ -878,14 +906,14 @@
|
|
|
878
906
|
&::view-transition-old(first-run-step),
|
|
879
907
|
&::view-transition-old(first-run-actions),
|
|
880
908
|
&::view-transition-old(*):only-child {
|
|
881
|
-
animation: first-run-leave var(--sigvelo-motion-duration-
|
|
909
|
+
animation: first-run-leave var(--sigvelo-motion-duration-disclosure)
|
|
882
910
|
var(--sigvelo-motion-ease-change) both;
|
|
883
911
|
}
|
|
884
912
|
|
|
885
913
|
&::view-transition-new(first-run-step),
|
|
886
914
|
&::view-transition-new(first-run-actions),
|
|
887
915
|
&::view-transition-new(*):only-child {
|
|
888
|
-
animation: first-run-enter var(--sigvelo-motion-duration-
|
|
916
|
+
animation: first-run-enter var(--sigvelo-motion-duration-disclosure)
|
|
889
917
|
var(--sigvelo-motion-ease-change) both;
|
|
890
918
|
}
|
|
891
919
|
|
|
@@ -902,24 +930,24 @@
|
|
|
902
930
|
/* Off the welcome screen, navigation arrives before the first task. */
|
|
903
931
|
&::view-transition-new(first-run-navigation):only-child,
|
|
904
932
|
&::view-transition-new(first-run-card):only-child {
|
|
905
|
-
animation: first-run-rise var(--sigvelo-motion-duration-
|
|
906
|
-
calc(var(--sigvelo-motion-stagger-step) * 2) both;
|
|
933
|
+
animation: first-run-rise var(--sigvelo-motion-duration-disclosure)
|
|
934
|
+
var(--sigvelo-motion-ease-enter) calc(var(--sigvelo-motion-stagger-step) * 2) both;
|
|
907
935
|
}
|
|
908
936
|
|
|
909
937
|
&::view-transition-new(first-run-step):only-child {
|
|
910
|
-
animation: first-run-rise var(--sigvelo-motion-duration-
|
|
911
|
-
calc(var(--sigvelo-motion-stagger-step) * 5) both;
|
|
938
|
+
animation: first-run-rise var(--sigvelo-motion-duration-disclosure)
|
|
939
|
+
var(--sigvelo-motion-ease-enter) calc(var(--sigvelo-motion-stagger-step) * 5) both;
|
|
912
940
|
}
|
|
913
941
|
|
|
914
942
|
&::view-transition-new(first-run-brand-name):only-child {
|
|
915
943
|
--first-run-shift: calc(var(--sigvelo-motion-distance-sm) * -1);
|
|
916
|
-
animation: first-run-enter var(--sigvelo-motion-duration-
|
|
917
|
-
var(--sigvelo-motion-ease-enter) calc(var(--sigvelo-motion-duration-
|
|
944
|
+
animation: first-run-enter var(--sigvelo-motion-duration-disclosure)
|
|
945
|
+
var(--sigvelo-motion-ease-enter) calc(var(--sigvelo-motion-duration-disclosure) * 0.6) both;
|
|
918
946
|
}
|
|
919
947
|
|
|
920
|
-
/* The mark travels furthest, from the welcome screen to the header
|
|
948
|
+
/* The mark travels furthest, from the welcome screen to the header, on the
|
|
949
|
+
snappier spring so it lands with everything else. */
|
|
921
950
|
&::view-transition-group(first-run-mark) {
|
|
922
|
-
animation-duration: calc(var(--sigvelo-motion-duration-layout) * 1.5);
|
|
923
951
|
animation-timing-function: var(--sigvelo-ease-spring-snappy);
|
|
924
952
|
}
|
|
925
953
|
|
|
@@ -951,21 +979,13 @@
|
|
|
951
979
|
}
|
|
952
980
|
|
|
953
981
|
@media (prefers-reduced-motion: no-preference) {
|
|
954
|
-
/* The orb turns
|
|
982
|
+
/* The orb turns. */
|
|
955
983
|
:root:not([data-motion="reduce"]) {
|
|
956
984
|
& .first-run-orb__flow {
|
|
957
985
|
/* A slow drift, not a spinner: --sigvelo-motion-duration-spin turns
|
|
958
986
|
five times as fast, and no motion token names an ambient loop. */
|
|
959
987
|
animation: first-run-orb-flow 5s linear infinite;
|
|
960
988
|
}
|
|
961
|
-
|
|
962
|
-
& .first-run-work__activity-spin {
|
|
963
|
-
display: block;
|
|
964
|
-
}
|
|
965
|
-
|
|
966
|
-
& .first-run-work__activity-count {
|
|
967
|
-
display: none;
|
|
968
|
-
}
|
|
969
989
|
}
|
|
970
990
|
|
|
971
991
|
/* The one control to press pulses, gently; a static ring would read as focus. */
|
|
@@ -1067,10 +1087,6 @@
|
|
|
1067
1087
|
}
|
|
1068
1088
|
|
|
1069
1089
|
/* A compact preference column beside a readable live email preview. */
|
|
1070
|
-
.first-run-screen__scroll[data-layout="writing"] {
|
|
1071
|
-
align-content: start;
|
|
1072
|
-
}
|
|
1073
|
-
|
|
1074
1090
|
.first-run-screen__scroll[data-layout="writing"] .first-run-body {
|
|
1075
1091
|
inline-size: min(100%, 52rem);
|
|
1076
1092
|
}
|
|
@@ -1093,9 +1109,10 @@
|
|
|
1093
1109
|
padding: 0;
|
|
1094
1110
|
border: 0;
|
|
1095
1111
|
|
|
1112
|
+
/* Both legends start at their control's edge: the choice rows' and the select's. */
|
|
1096
1113
|
& > legend {
|
|
1097
1114
|
margin-block-end: var(--sigvelo-spacing-2);
|
|
1098
|
-
padding: 0
|
|
1115
|
+
padding: 0;
|
|
1099
1116
|
font-size: var(--sigvelo-text-sm);
|
|
1100
1117
|
font-weight: var(--sigvelo-font-weight-semibold);
|
|
1101
1118
|
}
|
|
@@ -1118,10 +1135,6 @@
|
|
|
1118
1135
|
inline-size: 100%;
|
|
1119
1136
|
}
|
|
1120
1137
|
|
|
1121
|
-
.first-run-writing__signature > legend {
|
|
1122
|
-
padding-inline: 0;
|
|
1123
|
-
}
|
|
1124
|
-
|
|
1125
1138
|
.first-run-writing__preview {
|
|
1126
1139
|
min-inline-size: 0;
|
|
1127
1140
|
}
|
|
@@ -1138,7 +1151,7 @@
|
|
|
1138
1151
|
/* The card action covers its surface; help links remain independent controls. */
|
|
1139
1152
|
.first-run-provider-choice--linked {
|
|
1140
1153
|
--sigvelo-recipe-card-radius: var(--sigvelo-recipe-control-radius);
|
|
1141
|
-
--sigvelo-recipe-card-shadow: var(--sigvelo-elevation-
|
|
1154
|
+
--sigvelo-recipe-card-shadow: var(--sigvelo-elevation-control);
|
|
1142
1155
|
|
|
1143
1156
|
position: relative;
|
|
1144
1157
|
min-block-size: 15.5rem;
|
|
@@ -1196,8 +1209,8 @@
|
|
|
1196
1209
|
|
|
1197
1210
|
/* Work: the tabs stay put while each panel scrolls its own results. */
|
|
1198
1211
|
.first-run-work {
|
|
1199
|
-
display:
|
|
1200
|
-
|
|
1212
|
+
display: flex;
|
|
1213
|
+
flex-direction: column;
|
|
1201
1214
|
gap: var(--sigvelo-spacing-5);
|
|
1202
1215
|
min-block-size: 0;
|
|
1203
1216
|
}
|
|
@@ -1207,31 +1220,21 @@
|
|
|
1207
1220
|
gap: var(--sigvelo-spacing-5);
|
|
1208
1221
|
}
|
|
1209
1222
|
|
|
1210
|
-
.
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
}
|
|
1217
|
-
|
|
1218
|
-
.first-run-work__activity {
|
|
1219
|
-
display: inline-grid;
|
|
1220
|
-
place-items: center;
|
|
1221
|
-
color: var(--sigvelo-color-text-muted);
|
|
1222
|
-
font-size: var(--sigvelo-text-xs);
|
|
1223
|
-
font-variant-numeric: tabular-nums;
|
|
1223
|
+
/* What didn't finish: one sentence, then its own retry. */
|
|
1224
|
+
.first-run-work__unfinished {
|
|
1225
|
+
display: flex;
|
|
1226
|
+
flex-wrap: wrap;
|
|
1227
|
+
align-items: center;
|
|
1228
|
+
gap: var(--sigvelo-spacing-2) var(--sigvelo-spacing-3);
|
|
1224
1229
|
|
|
1225
|
-
&
|
|
1226
|
-
|
|
1227
|
-
|
|
1230
|
+
& > p {
|
|
1231
|
+
margin: 0;
|
|
1232
|
+
color: var(--sigvelo-color-text-muted);
|
|
1228
1233
|
}
|
|
1229
1234
|
}
|
|
1230
1235
|
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
.first-run-work__activity-spin {
|
|
1234
|
-
display: none;
|
|
1236
|
+
.first-run-work__empty {
|
|
1237
|
+
color: var(--sigvelo-color-text-muted);
|
|
1235
1238
|
}
|
|
1236
1239
|
|
|
1237
1240
|
.first-run-choice__description {
|
|
@@ -1242,13 +1245,16 @@
|
|
|
1242
1245
|
}
|
|
1243
1246
|
|
|
1244
1247
|
/* A crisp, Rook-colored particle sphere. Activity text carries the meaning;
|
|
1245
|
-
reduced motion keeps the sphere still and completion removes it entirely.
|
|
1248
|
+
reduced motion keeps the sphere still and completion removes it entirely.
|
|
1249
|
+
Below this size its smallest dots fall under a pixel, so it overhangs the
|
|
1250
|
+
title line instead: the title keeps its height when the orb leaves. */
|
|
1246
1251
|
.first-run-orb {
|
|
1247
1252
|
position: relative;
|
|
1248
1253
|
display: inline-block;
|
|
1249
1254
|
flex: none;
|
|
1250
1255
|
inline-size: var(--sigvelo-spacing-10);
|
|
1251
1256
|
block-size: var(--sigvelo-spacing-10);
|
|
1257
|
+
margin-block: calc((1lh - var(--sigvelo-spacing-10)) / 2);
|
|
1252
1258
|
color: var(--sigvelo-color-primary-text);
|
|
1253
1259
|
}
|
|
1254
1260
|
|
|
@@ -1304,9 +1310,9 @@
|
|
|
1304
1310
|
var(--sigvelo-color-neutral-border-muted);
|
|
1305
1311
|
}
|
|
1306
1312
|
|
|
1313
|
+
/* Tabs size to their labels, so the space between labels is even. */
|
|
1307
1314
|
.first-run-work__tab {
|
|
1308
|
-
flex:
|
|
1309
|
-
min-inline-size: 0;
|
|
1315
|
+
flex: none;
|
|
1310
1316
|
display: flex;
|
|
1311
1317
|
justify-content: flex-start;
|
|
1312
1318
|
align-items: center;
|
|
@@ -1358,27 +1364,31 @@
|
|
|
1358
1364
|
}
|
|
1359
1365
|
|
|
1360
1366
|
.first-run-work__panels {
|
|
1367
|
+
flex: 1;
|
|
1368
|
+
min-block-size: 0;
|
|
1361
1369
|
overflow: hidden;
|
|
1362
1370
|
}
|
|
1363
1371
|
|
|
1364
|
-
/* Progress is
|
|
1372
|
+
/* Progress is the screen's title with the orb inline, set like every other title.
|
|
1373
|
+
Its row holds two lines whatever the title says: the orb and a longer failure
|
|
1374
|
+
title wrap where "Your work is ready" does not, and the tabs below must not move.
|
|
1375
|
+
Top-anchored like every title, so a one-line title leaves the second line empty. */
|
|
1365
1376
|
.first-run-screen__scroll[data-layout="work"] .first-run-intro {
|
|
1366
1377
|
inline-size: min(100%, var(--sigvelo-measure-prose));
|
|
1367
1378
|
margin-inline: auto;
|
|
1368
1379
|
|
|
1369
|
-
& h1
|
|
1370
|
-
|
|
1371
|
-
line-height: var(--sigvelo-text-xl-leading);
|
|
1372
|
-
font-weight: var(--sigvelo-font-weight-bold);
|
|
1380
|
+
& h1 {
|
|
1381
|
+
min-block-size: 2lh;
|
|
1373
1382
|
}
|
|
1374
1383
|
}
|
|
1375
1384
|
|
|
1385
|
+
/* Top-aligned so the orb's synthesized baseline cannot deepen the line box:
|
|
1386
|
+
with or without the orb, the title's lines are the text's own. */
|
|
1376
1387
|
.first-run-work__heading {
|
|
1377
|
-
--sigvelo-recipe-card-radius: var(--sigvelo-radius-2xl);
|
|
1378
1388
|
display: inline-flex;
|
|
1389
|
+
vertical-align: top;
|
|
1379
1390
|
align-items: center;
|
|
1380
1391
|
gap: var(--sigvelo-spacing-3);
|
|
1381
|
-
padding: var(--sigvelo-spacing-3) var(--sigvelo-spacing-5);
|
|
1382
1392
|
}
|
|
1383
1393
|
|
|
1384
1394
|
.first-run-work__tab-state {
|
|
@@ -1393,7 +1403,9 @@
|
|
|
1393
1403
|
|
|
1394
1404
|
/* ---- Narrow ------------------------------------------------------------------------ */
|
|
1395
1405
|
|
|
1396
|
-
|
|
1406
|
+
/* The preview stays beside the tone until the card is phone-narrow, so changing
|
|
1407
|
+
the tone always shows its effect. */
|
|
1408
|
+
@container first-run (inline-size < 36rem) {
|
|
1397
1409
|
.first-run-writing {
|
|
1398
1410
|
grid-template-columns: minmax(0, 1fr);
|
|
1399
1411
|
}
|
|
@@ -1461,7 +1473,6 @@
|
|
|
1461
1473
|
}
|
|
1462
1474
|
|
|
1463
1475
|
.first-run-work__tab {
|
|
1464
|
-
flex: 1 0 auto;
|
|
1465
1476
|
padding-inline: var(--sigvelo-spacing-1);
|
|
1466
1477
|
font-size: var(--sigvelo-text-xs);
|
|
1467
1478
|
}
|
package/dist/styles/select.css
CHANGED
|
@@ -43,7 +43,8 @@
|
|
|
43
43
|
--sigvelo-recipe-surface-padding: 0;
|
|
44
44
|
--sigvelo-recipe-popup-min-inline-size: 8rem;
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
/* Never narrower than the field it opens from. */
|
|
47
|
+
min-inline-size: max(var(--sigvelo-recipe-popup-min-inline-size), var(--anchor-width, 0px));
|
|
47
48
|
overflow: hidden;
|
|
48
49
|
}
|
|
49
50
|
|
package/dist/styles/switch.css
CHANGED
|
@@ -12,7 +12,9 @@
|
|
|
12
12
|
block-size: var(--sigvelo-recipe-switch-block-size);
|
|
13
13
|
flex-shrink: 0;
|
|
14
14
|
padding: var(--sigvelo-recipe-switch-padding);
|
|
15
|
-
|
|
15
|
+
/* A translucent fill strong enough to read as a track on any plane, the
|
|
16
|
+
way the platform's off switch does; bg-subtle vanished on raised cards. */
|
|
17
|
+
background-color: var(--sigvelo-color-neutral-border-muted);
|
|
16
18
|
border: var(--sigvelo-border-style) var(--sigvelo-border-width) transparent;
|
|
17
19
|
border-radius: var(--sigvelo-radius-full);
|
|
18
20
|
cursor: pointer;
|
|
@@ -22,8 +24,13 @@
|
|
|
22
24
|
box-shadow var(--sigvelo-motion-duration-interaction) var(--sigvelo-motion-ease-change);
|
|
23
25
|
}
|
|
24
26
|
|
|
27
|
+
/* Hover deepens the off track toward the solid border, never fainter. */
|
|
25
28
|
.switch:hover:not([data-disabled]) {
|
|
26
|
-
background-color: color-mix(
|
|
29
|
+
background-color: color-mix(
|
|
30
|
+
in oklab,
|
|
31
|
+
var(--sigvelo-color-neutral-border-muted),
|
|
32
|
+
var(--sigvelo-color-neutral-border) 20%
|
|
33
|
+
);
|
|
27
34
|
}
|
|
28
35
|
|
|
29
36
|
.switch:focus-visible {
|
|
@@ -75,19 +82,27 @@
|
|
|
75
82
|
display: block;
|
|
76
83
|
inline-size: var(--sigvelo-recipe-switch-thumb-size);
|
|
77
84
|
block-size: var(--sigvelo-recipe-switch-thumb-size);
|
|
78
|
-
|
|
85
|
+
/* Off, the thumb stays light in both themes, as the platform's does: a
|
|
86
|
+
canvas-coloured thumb went black on the dark track and disappeared. */
|
|
87
|
+
background-color: var(--sigvelo-color-canvas-light);
|
|
79
88
|
border-radius: var(--sigvelo-radius-full);
|
|
80
89
|
box-shadow: var(--sigvelo-elevation-control);
|
|
81
90
|
translate: 0;
|
|
82
|
-
transition:
|
|
91
|
+
transition:
|
|
92
|
+
translate var(--sigvelo-motion-duration-interaction) var(--sigvelo-motion-ease-change),
|
|
93
|
+
background-color var(--sigvelo-motion-duration-interaction) var(--sigvelo-motion-ease-change);
|
|
83
94
|
}
|
|
84
95
|
|
|
96
|
+
/* On, the thumb takes the primary track's own foreground, which reads on it in
|
|
97
|
+
both themes; a light thumb on the light dark-theme track sat near 1.5:1. */
|
|
85
98
|
.switch[data-checked] .switch__thumb {
|
|
99
|
+
background-color: var(--sigvelo-color-primary-text-on-bg);
|
|
86
100
|
translate: var(--sigvelo-recipe-switch-thumb-translate);
|
|
87
101
|
}
|
|
88
102
|
|
|
89
103
|
@media (forced-colors: active) {
|
|
90
|
-
.switch__thumb
|
|
104
|
+
.switch__thumb,
|
|
105
|
+
.switch[data-checked] .switch__thumb {
|
|
91
106
|
forced-color-adjust: none;
|
|
92
107
|
background-color: CanvasText;
|
|
93
108
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcp-b/react-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.65.0",
|
|
4
4
|
"description": "MCP-B React components built on Base UI and shared design tokens, including Cloudflare Think chat primitives.",
|
|
5
5
|
"homepage": "https://design-system.sigvelo.com",
|
|
6
6
|
"bugs": {
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"streamdown": "^2.7.0",
|
|
56
56
|
"unist-util-visit": "^5.1.0",
|
|
57
57
|
"yet-another-react-lightbox": "^3.32.2",
|
|
58
|
-
"@mcp-b/design-tokens": "0.
|
|
58
|
+
"@mcp-b/design-tokens": "0.65.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@ai-sdk/react": "^4.0.136",
|