@crewlethq/ui 0.122.0 → 0.123.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/README.md +45 -2
- package/dist/AvatarPicker/index.js +2 -2
- package/dist/Charts/StackedRing.d.ts +40 -0
- package/dist/Charts/TimeSeries.d.ts +8 -1
- package/dist/Charts/index.d.ts +2 -0
- package/dist/Charts/index.js +1 -1
- package/dist/{Charts-UJKADWXE.css → Charts-4VQ7T3GB.css} +85 -0
- package/dist/DataGrid/DataGrid.d.ts +11 -1
- package/dist/DataGrid/index.d.ts +1 -1
- package/dist/DataGrid/index.js +1 -1
- package/dist/{DataGrid-7KUUYSHA.css → DataGrid-KAFVH4B3.css} +3 -1
- package/dist/DeepWorkCard/index.js +2 -2
- package/dist/Fullscreen/FullscreenToggle.d.ts +21 -0
- package/dist/Fullscreen/index.d.ts +2 -0
- package/dist/Fullscreen/index.js +11 -1
- package/dist/GraphCanvas/GraphCanvas.d.ts +97 -16
- package/dist/GraphCanvas/index.d.ts +4 -4
- package/dist/GraphCanvas/index.js +3 -3
- package/dist/GraphCanvas/layout.d.ts +31 -1
- package/dist/GraphCanvas/walk.d.ts +5 -4
- package/dist/GraphCanvas-UZPZRP6S.css +793 -0
- package/dist/IconTile/IconTile.d.ts +26 -18
- package/dist/IconTile/index.d.ts +1 -1
- package/dist/IconTile/index.js +1 -1
- package/dist/IconTile-6OSCIHYU.css +112 -0
- package/dist/OpenInAppCard/index.js +2 -2
- package/dist/OrgTable/index.js +3 -3
- package/dist/ReviewList/index.js +2 -2
- package/dist/TreeGrid/index.js +2 -2
- package/dist/{chunk-W5XCNEZC.js → chunk-3JLG6KRU.js} +23 -2
- package/dist/{chunk-AGVGX52B.js → chunk-7XYU5PSQ.js} +1 -1
- package/dist/{chunk-6KPHU4EB.js → chunk-DSBKVP73.js} +490 -122
- package/dist/{chunk-MDD6K5M4.js → chunk-EWJOBD25.js} +1 -1
- package/dist/{chunk-X5YI6QLW.js → chunk-NOKZULW3.js} +1 -1
- package/dist/{chunk-ZOMTCEHR.js → chunk-OFNJE4BN.js} +6 -1
- package/dist/{chunk-75O3HCCD.js → chunk-T4TKY4VZ.js} +1 -1
- package/dist/chunk-VRVNLJUA.js +46 -0
- package/dist/{chunk-MNTN5ESE.js → chunk-ZY5322MJ.js} +77 -3
- package/dist/generated/index.js +46 -46
- package/dist/index.js +46 -46
- package/dist/styles.css +701 -130
- package/package.json +3 -3
- package/dist/GraphCanvas-RSBMO2AF.css +0 -388
- package/dist/IconTile-G52XZVR4.css +0 -33
- package/dist/chunk-3LI4TRUR.js +0 -22
- package/dist/{chunk-4Z3AGYOB.js → chunk-P42LNYRX.js} +1 -1
- package/dist/{chunk-JWUIGUIS.js → chunk-YCT7LRYR.js} +1 -1
|
@@ -0,0 +1,793 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* A layered map on a canvas (GraphCanvas.tsx).
|
|
3
|
+
*
|
|
4
|
+
* ONE LOOK, WRITTEN AS THE COMPONENT'S OWN VALUES. The drawing (a fine grid,
|
|
5
|
+
* outlined boxes with a ruled glyph cell, square corners, mono labels, a
|
|
6
|
+
* notch for health, right-angled lines) applies inside the map's world only:
|
|
7
|
+
* clusters, cards, lines, trunks and their labels. The legend, the card
|
|
8
|
+
* beside an entry and the dock are outside it and keep the kit's own shapes,
|
|
9
|
+
* radius tokens and type. The one exception is the legend's health key, which
|
|
10
|
+
* is the notch it explains.
|
|
11
|
+
*
|
|
12
|
+
* Every card is one size, set here, so the layout reads it once from a probe
|
|
13
|
+
* rather than measuring each card. Colour never carries a state alone: health
|
|
14
|
+
* is a notch and a badge with a glyph, the selection a filled card with a
|
|
15
|
+
* glow, and an unconfirmed entry a dashed edge.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
.crewlet-graph-canvas {
|
|
19
|
+
--crewlet-graph-canvas-card-width: 11rem;
|
|
20
|
+
--crewlet-graph-canvas-card-height: 2.375rem;
|
|
21
|
+
--crewlet-graph-canvas-cell: 2.125rem;
|
|
22
|
+
/* The drawing's corner: square, a hairline's worth of rounding. */
|
|
23
|
+
--crewlet-graph-canvas-corner: 2px;
|
|
24
|
+
--crewlet-graph-canvas-notch: 4px;
|
|
25
|
+
/* The grid: a major line every fifth minor one. */
|
|
26
|
+
--crewlet-graph-canvas-grid: 24px;
|
|
27
|
+
--crewlet-graph-canvas-grid-major: 120px;
|
|
28
|
+
/* What is not on the lit path falls this far back. */
|
|
29
|
+
--crewlet-graph-canvas-dim: 0.2;
|
|
30
|
+
--crewlet-graph-canvas-line-dim: 0.14;
|
|
31
|
+
--crewlet-graph-canvas-trunk-dim: 0.25;
|
|
32
|
+
/* The laser: the lit line's width and glow, and the dashes that run along it. */
|
|
33
|
+
--crewlet-graph-canvas-lit-width: 1.75;
|
|
34
|
+
--crewlet-graph-canvas-lit-glow: 4px;
|
|
35
|
+
--crewlet-graph-canvas-flow-dash: 9 27;
|
|
36
|
+
--crewlet-graph-canvas-flow-period: 36;
|
|
37
|
+
--crewlet-graph-canvas-flow-width: 2;
|
|
38
|
+
--crewlet-graph-canvas-flow-lit-width: 3;
|
|
39
|
+
--crewlet-graph-canvas-flow-glow: 1.5px;
|
|
40
|
+
--crewlet-graph-canvas-flow-duration: 1.6s;
|
|
41
|
+
--crewlet-graph-canvas-flow-lit-duration: 0.9s;
|
|
42
|
+
--crewlet-graph-canvas-selected-glow: 18px;
|
|
43
|
+
--crewlet-graph-canvas-popup-width: 18rem;
|
|
44
|
+
position: relative;
|
|
45
|
+
display: flex;
|
|
46
|
+
flex-direction: column;
|
|
47
|
+
height: 100%;
|
|
48
|
+
min-height: 0;
|
|
49
|
+
container-type: inline-size;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/*
|
|
53
|
+
* THE GROUND IS THE MAP'S: the grid in two weights over a wash of the accent
|
|
54
|
+
* from the top, on the frame's own colour. It is drawn on the canvas's frame,
|
|
55
|
+
* so it stays put while the world moves over it.
|
|
56
|
+
*/
|
|
57
|
+
.crewlet-graph-canvas > .crewlet-canvas {
|
|
58
|
+
flex: 1;
|
|
59
|
+
border-radius: var(--radius-xl);
|
|
60
|
+
background:
|
|
61
|
+
linear-gradient(var(--color-map-grid-major) 1px, transparent 1px) -1px -1px / var(--crewlet-graph-canvas-grid-major)
|
|
62
|
+
var(--crewlet-graph-canvas-grid-major),
|
|
63
|
+
linear-gradient(90deg, var(--color-map-grid-major) 1px, transparent 1px) -1px -1px /
|
|
64
|
+
var(--crewlet-graph-canvas-grid-major) var(--crewlet-graph-canvas-grid-major),
|
|
65
|
+
linear-gradient(var(--color-map-grid-minor) 1px, transparent 1px) -1px -1px / var(--crewlet-graph-canvas-grid)
|
|
66
|
+
var(--crewlet-graph-canvas-grid),
|
|
67
|
+
linear-gradient(90deg, var(--color-map-grid-minor) 1px, transparent 1px) -1px -1px /
|
|
68
|
+
var(--crewlet-graph-canvas-grid) var(--crewlet-graph-canvas-grid),
|
|
69
|
+
radial-gradient(90% 70% at 50% 0%, var(--color-brand-accent-soft), transparent 70%),
|
|
70
|
+
var(--color-surface-frame);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* A fullscreen map fills the screen on the frame's colour, with no corner to round. */
|
|
74
|
+
.crewlet-graph-canvas:fullscreen {
|
|
75
|
+
background: var(--color-surface-frame);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.crewlet-graph-canvas:fullscreen > .crewlet-canvas {
|
|
79
|
+
border-radius: var(--radius-none);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.crewlet-graph-canvas__world {
|
|
83
|
+
position: relative;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.crewlet-graph-canvas__ground,
|
|
87
|
+
.crewlet-graph-canvas__edges,
|
|
88
|
+
.crewlet-graph-canvas__shapes,
|
|
89
|
+
.crewlet-graph-canvas__card,
|
|
90
|
+
.crewlet-graph-canvas__head,
|
|
91
|
+
.crewlet-graph-canvas__empty,
|
|
92
|
+
.crewlet-graph-canvas__empty-probe,
|
|
93
|
+
.crewlet-graph-canvas__lane-head,
|
|
94
|
+
.crewlet-graph-canvas__band-title,
|
|
95
|
+
.crewlet-graph-canvas__trunk-label,
|
|
96
|
+
.crewlet-graph-canvas__probe {
|
|
97
|
+
position: absolute;
|
|
98
|
+
top: 0;
|
|
99
|
+
left: 0;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.crewlet-graph-canvas__ground,
|
|
103
|
+
.crewlet-graph-canvas__edges,
|
|
104
|
+
.crewlet-graph-canvas__shapes {
|
|
105
|
+
overflow: visible;
|
|
106
|
+
pointer-events: none;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/* ── the probes the layout reads its sizes from ────────────────────────── */
|
|
110
|
+
|
|
111
|
+
.crewlet-graph-canvas__probe,
|
|
112
|
+
.crewlet-graph-canvas__empty-probe {
|
|
113
|
+
visibility: hidden;
|
|
114
|
+
pointer-events: none;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/* The channel between columns, where upright runs stand, and the gap between rows, where level ones do. */
|
|
118
|
+
.crewlet-graph-canvas__gap {
|
|
119
|
+
width: var(--spacing-7);
|
|
120
|
+
height: var(--spacing-3);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/* A cluster's padding past its cards, and the room round the map and between bands. */
|
|
124
|
+
.crewlet-graph-canvas__pad {
|
|
125
|
+
width: var(--spacing-3);
|
|
126
|
+
height: var(--spacing-7);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.crewlet-graph-canvas__empty-probe {
|
|
130
|
+
width: var(--crewlet-graph-canvas-card-width);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/* ── clusters and bands ────────────────────────────────────────────────── */
|
|
134
|
+
|
|
135
|
+
/* A cluster is a see-through pane inside an outline, so the grid shows through it and never through a card. */
|
|
136
|
+
.crewlet-graph-canvas__lane {
|
|
137
|
+
fill: var(--color-map-pane);
|
|
138
|
+
stroke: var(--color-map-outline);
|
|
139
|
+
stroke-width: 1;
|
|
140
|
+
rx: var(--crewlet-graph-canvas-corner);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/* The room above a cluster's first row. Its title is set into the outline, as a drawing names a part. */
|
|
144
|
+
.crewlet-graph-canvas__lane-head {
|
|
145
|
+
box-sizing: border-box;
|
|
146
|
+
height: var(--spacing-5);
|
|
147
|
+
pointer-events: none;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.crewlet-graph-canvas__lane-title {
|
|
151
|
+
position: absolute;
|
|
152
|
+
top: 0;
|
|
153
|
+
left: calc(var(--spacing-2) - var(--spacing-3));
|
|
154
|
+
display: flex;
|
|
155
|
+
align-items: center;
|
|
156
|
+
gap: var(--spacing-2);
|
|
157
|
+
max-width: 100%;
|
|
158
|
+
padding: 0 var(--spacing-2);
|
|
159
|
+
/* The ground's own colour cuts the outline. */
|
|
160
|
+
background: var(--color-surface-frame);
|
|
161
|
+
font-family: var(--font-family-mono);
|
|
162
|
+
font-size: var(--font-size-2xs);
|
|
163
|
+
line-height: var(--font-line-height-snug);
|
|
164
|
+
white-space: nowrap;
|
|
165
|
+
transform: translateY(-50%);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.crewlet-graph-canvas__lane-label {
|
|
169
|
+
min-width: 0;
|
|
170
|
+
overflow: hidden;
|
|
171
|
+
text-overflow: ellipsis;
|
|
172
|
+
font-weight: var(--font-weight-semibold);
|
|
173
|
+
letter-spacing: var(--font-letter-spacing-wide);
|
|
174
|
+
text-transform: uppercase;
|
|
175
|
+
color: var(--color-text-primary);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.crewlet-graph-canvas__lane-count,
|
|
179
|
+
.crewlet-graph-canvas__group-count {
|
|
180
|
+
color: var(--color-text-tertiary);
|
|
181
|
+
font-variant-numeric: tabular-nums;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.crewlet-graph-canvas__lane-count::before,
|
|
185
|
+
.crewlet-graph-canvas__group-count::before {
|
|
186
|
+
content: '\00d7';
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/* How many inside need a person, in the tone's ink on its soft fill, after a mark that is not colour alone. */
|
|
190
|
+
.crewlet-graph-canvas__lane-tone {
|
|
191
|
+
display: inline-flex;
|
|
192
|
+
align-items: center;
|
|
193
|
+
gap: var(--spacing-1);
|
|
194
|
+
padding: 0 var(--spacing-1);
|
|
195
|
+
border-radius: var(--crewlet-graph-canvas-corner);
|
|
196
|
+
font-weight: var(--font-weight-semibold);
|
|
197
|
+
font-variant-numeric: tabular-nums;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.crewlet-graph-canvas__lane-tone::before {
|
|
201
|
+
content: '';
|
|
202
|
+
width: var(--crewlet-graph-canvas-notch);
|
|
203
|
+
height: 0.75em;
|
|
204
|
+
background: currentColor;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.crewlet-graph-canvas__lane-tone[data-tone='danger'] {
|
|
208
|
+
background: var(--color-feedback-danger-soft);
|
|
209
|
+
color: var(--color-feedback-danger-ink);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.crewlet-graph-canvas__lane-tone[data-tone='warning'] {
|
|
213
|
+
background: var(--color-feedback-warning-soft);
|
|
214
|
+
color: var(--color-feedback-warning-ink);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.crewlet-graph-canvas__lane-tone[data-tone='info'] {
|
|
218
|
+
background: var(--color-feedback-info-soft);
|
|
219
|
+
color: var(--color-feedback-info-ink);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.crewlet-graph-canvas__band-title {
|
|
223
|
+
box-sizing: border-box;
|
|
224
|
+
display: flex;
|
|
225
|
+
align-items: flex-end;
|
|
226
|
+
padding: var(--spacing-3) 0 var(--spacing-3);
|
|
227
|
+
font-family: var(--font-family-mono);
|
|
228
|
+
font-size: var(--font-size-2xs);
|
|
229
|
+
font-weight: var(--font-weight-semibold);
|
|
230
|
+
line-height: var(--font-line-height-snug);
|
|
231
|
+
letter-spacing: var(--font-letter-spacing-wide);
|
|
232
|
+
text-transform: uppercase;
|
|
233
|
+
color: var(--color-text-secondary);
|
|
234
|
+
white-space: nowrap;
|
|
235
|
+
pointer-events: none;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/* ── groups ──────────────────────────────────────────────────────────────── */
|
|
239
|
+
|
|
240
|
+
/* A dashed outline: a card's own edge is solid, and a grouping is not a thing. */
|
|
241
|
+
.crewlet-graph-canvas__group {
|
|
242
|
+
fill: none;
|
|
243
|
+
stroke: var(--color-map-hairline);
|
|
244
|
+
stroke-dasharray: 4 3;
|
|
245
|
+
rx: var(--crewlet-graph-canvas-corner);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.crewlet-graph-canvas__head {
|
|
249
|
+
box-sizing: border-box;
|
|
250
|
+
display: flex;
|
|
251
|
+
align-items: center;
|
|
252
|
+
gap: var(--spacing-2);
|
|
253
|
+
padding: 0 var(--spacing-2);
|
|
254
|
+
font-family: var(--font-family-mono);
|
|
255
|
+
font-size: var(--font-size-2xs);
|
|
256
|
+
line-height: var(--font-line-height-snug);
|
|
257
|
+
color: var(--color-text-secondary);
|
|
258
|
+
border-radius: var(--crewlet-graph-canvas-corner);
|
|
259
|
+
cursor: pointer;
|
|
260
|
+
outline: none;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.crewlet-graph-canvas__head:hover {
|
|
264
|
+
color: var(--color-text-primary);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.crewlet-graph-canvas__head:focus-visible {
|
|
268
|
+
outline: 2px solid var(--color-focus);
|
|
269
|
+
outline-offset: var(--size-focus-ring-inset-offset);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.crewlet-graph-canvas__lead {
|
|
273
|
+
display: inline-flex;
|
|
274
|
+
flex: none;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.crewlet-graph-canvas__group-label {
|
|
278
|
+
min-width: 0;
|
|
279
|
+
font-weight: var(--font-weight-medium);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.crewlet-graph-canvas__chevron {
|
|
283
|
+
flex: none;
|
|
284
|
+
color: var(--color-text-tertiary);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
/* ── cards ───────────────────────────────────────────────────────────────── */
|
|
288
|
+
|
|
289
|
+
/*
|
|
290
|
+
* An outlined box on the ground's own colour: opaque, so no grid line and no
|
|
291
|
+
* edge shows through a card and a name never sits on a line.
|
|
292
|
+
*/
|
|
293
|
+
.crewlet-graph-canvas__card {
|
|
294
|
+
box-sizing: border-box;
|
|
295
|
+
width: var(--crewlet-graph-canvas-card-width);
|
|
296
|
+
height: var(--crewlet-graph-canvas-card-height);
|
|
297
|
+
display: flex;
|
|
298
|
+
align-items: center;
|
|
299
|
+
gap: var(--spacing-2);
|
|
300
|
+
padding: 0 var(--spacing-2) 0 0;
|
|
301
|
+
background: var(--color-surface-frame);
|
|
302
|
+
border: 1px solid var(--color-map-hairline);
|
|
303
|
+
border-radius: var(--crewlet-graph-canvas-corner);
|
|
304
|
+
color: var(--color-text-primary);
|
|
305
|
+
cursor: pointer;
|
|
306
|
+
outline: none;
|
|
307
|
+
transition:
|
|
308
|
+
opacity var(--motion-duration-base) var(--motion-easing-default),
|
|
309
|
+
border-color var(--motion-duration-fast) var(--motion-easing-default),
|
|
310
|
+
box-shadow var(--motion-duration-fast) var(--motion-easing-default);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.crewlet-graph-canvas__card:hover,
|
|
314
|
+
.crewlet-graph-canvas__card[data-state='lit'] {
|
|
315
|
+
border-color: var(--color-brand-accent);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
/* The ring is drawn over the card's own edge, never beside it. */
|
|
319
|
+
.crewlet-graph-canvas__card:focus-visible {
|
|
320
|
+
outline: 2px solid var(--color-focus);
|
|
321
|
+
outline-offset: var(--size-focus-ring-inset-offset);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/*
|
|
325
|
+
* HEALTH IS A NOTCH: a thick tick on the leading edge in the tone, with its
|
|
326
|
+
* badge. It is drawn over the glyph's cell, which would cover a shadow.
|
|
327
|
+
*/
|
|
328
|
+
.crewlet-graph-canvas__card[data-attention='danger'] {
|
|
329
|
+
--crewlet-graph-canvas-tone: var(--color-feedback-danger);
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.crewlet-graph-canvas__card[data-attention='warning'] {
|
|
333
|
+
--crewlet-graph-canvas-tone: var(--color-feedback-warning);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.crewlet-graph-canvas__card[data-attention='info'] {
|
|
337
|
+
--crewlet-graph-canvas-tone: var(--color-feedback-info);
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.crewlet-graph-canvas__card[data-attention]::after {
|
|
341
|
+
content: '';
|
|
342
|
+
position: absolute;
|
|
343
|
+
top: -1px;
|
|
344
|
+
bottom: -1px;
|
|
345
|
+
left: -1px;
|
|
346
|
+
z-index: 1;
|
|
347
|
+
width: var(--crewlet-graph-canvas-notch);
|
|
348
|
+
border-radius: var(--crewlet-graph-canvas-corner) 0 0 var(--crewlet-graph-canvas-corner);
|
|
349
|
+
background: var(--crewlet-graph-canvas-tone);
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
/*
|
|
353
|
+
* The selection is where the reader is: the accent's edge, its soft fill and
|
|
354
|
+
* a glow. The soft fill is see-through, so it is laid on the ground's colour.
|
|
355
|
+
*/
|
|
356
|
+
.crewlet-graph-canvas__card[data-selected] {
|
|
357
|
+
border-color: var(--color-brand-accent);
|
|
358
|
+
background:
|
|
359
|
+
linear-gradient(var(--color-brand-accent-soft), var(--color-brand-accent-soft)), var(--color-surface-frame);
|
|
360
|
+
box-shadow: 0 0 var(--crewlet-graph-canvas-selected-glow) var(--color-map-selected-glow);
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
/* Not confirmed by anyone the map trusts: the edge is dashed, the same device a grouping uses. */
|
|
364
|
+
.crewlet-graph-canvas__card[data-unconfirmed] {
|
|
365
|
+
border-style: dashed;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
/* Pushed back: what is not on the lit path recedes, whole. */
|
|
369
|
+
.crewlet-graph-canvas__card[data-state='dim'],
|
|
370
|
+
.crewlet-graph-canvas__head[data-state='dim'] {
|
|
371
|
+
opacity: var(--crewlet-graph-canvas-dim);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
/* THE GLYPH STANDS IN A CELL OF ITS OWN, ruled off from the name. */
|
|
375
|
+
.crewlet-graph-canvas__cell {
|
|
376
|
+
position: relative;
|
|
377
|
+
flex: none;
|
|
378
|
+
align-self: stretch;
|
|
379
|
+
display: grid;
|
|
380
|
+
place-items: center;
|
|
381
|
+
width: var(--crewlet-graph-canvas-cell);
|
|
382
|
+
border-right: 1px solid var(--color-map-hairline);
|
|
383
|
+
background: var(--color-surface-background);
|
|
384
|
+
color: var(--color-text-secondary);
|
|
385
|
+
font-size: var(--font-size-md);
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
.crewlet-graph-canvas__card[data-unconfirmed] .crewlet-graph-canvas__cell {
|
|
389
|
+
border-right-style: dashed;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
/* A vendor's mark on the cell's lower corner. */
|
|
393
|
+
.crewlet-graph-canvas__mark {
|
|
394
|
+
position: absolute;
|
|
395
|
+
right: -1px;
|
|
396
|
+
bottom: -1px;
|
|
397
|
+
display: grid;
|
|
398
|
+
place-items: center;
|
|
399
|
+
width: var(--font-size-xs);
|
|
400
|
+
height: var(--font-size-xs);
|
|
401
|
+
color: var(--color-text-primary);
|
|
402
|
+
font-size: var(--font-size-badge);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
/* The badge says the tone again with a glyph, on the card's top corner. */
|
|
406
|
+
.crewlet-graph-canvas__badge {
|
|
407
|
+
position: absolute;
|
|
408
|
+
top: calc(var(--spacing-2) * -0.75);
|
|
409
|
+
left: calc(var(--crewlet-graph-canvas-cell) - var(--spacing-2));
|
|
410
|
+
display: grid;
|
|
411
|
+
place-items: center;
|
|
412
|
+
width: var(--spacing-4);
|
|
413
|
+
height: var(--spacing-4);
|
|
414
|
+
border-radius: var(--crewlet-graph-canvas-corner);
|
|
415
|
+
z-index: 1;
|
|
416
|
+
background: var(--crewlet-graph-canvas-tone);
|
|
417
|
+
color: var(--color-surface-frame);
|
|
418
|
+
font-size: var(--font-size-badge);
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.crewlet-graph-canvas__name {
|
|
422
|
+
flex: 1;
|
|
423
|
+
min-width: 0;
|
|
424
|
+
font-size: var(--font-size-compact);
|
|
425
|
+
font-weight: var(--font-weight-medium);
|
|
426
|
+
line-height: var(--font-line-height-snug);
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
.crewlet-graph-canvas__card--group .crewlet-graph-canvas__group-count {
|
|
430
|
+
font-family: var(--font-family-mono);
|
|
431
|
+
font-size: var(--font-size-2xs);
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
/* ── empty lanes ────────────────────────────────────────────────────────── */
|
|
435
|
+
|
|
436
|
+
.crewlet-graph-canvas__empty,
|
|
437
|
+
.crewlet-graph-canvas__empty-probe {
|
|
438
|
+
box-sizing: border-box;
|
|
439
|
+
padding: var(--spacing-3);
|
|
440
|
+
font-size: var(--font-size-xs);
|
|
441
|
+
line-height: var(--font-line-height-normal);
|
|
442
|
+
color: var(--color-text-secondary);
|
|
443
|
+
overflow-wrap: anywhere;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
.crewlet-graph-canvas__empty {
|
|
447
|
+
display: flex;
|
|
448
|
+
flex-direction: column;
|
|
449
|
+
align-items: flex-start;
|
|
450
|
+
gap: var(--spacing-2);
|
|
451
|
+
border: 1px dashed var(--color-map-hairline);
|
|
452
|
+
border-radius: var(--crewlet-graph-canvas-corner);
|
|
453
|
+
outline: none;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
.crewlet-graph-canvas__empty-probe {
|
|
457
|
+
display: flex;
|
|
458
|
+
flex-direction: column;
|
|
459
|
+
gap: var(--spacing-2);
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
.crewlet-graph-canvas__empty:focus-visible {
|
|
463
|
+
outline: 2px solid var(--color-focus);
|
|
464
|
+
outline-offset: var(--size-focus-ring-inset-offset);
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
/* ── edges ───────────────────────────────────────────────────────────────── */
|
|
468
|
+
|
|
469
|
+
.crewlet-graph-canvas__edge-layer {
|
|
470
|
+
transition: opacity var(--motion-duration-base) var(--motion-easing-default);
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
/* A call: a hairline with a small solid head. */
|
|
474
|
+
.crewlet-graph-canvas__edge {
|
|
475
|
+
fill: none;
|
|
476
|
+
stroke: var(--color-map-hairline);
|
|
477
|
+
stroke-width: 1;
|
|
478
|
+
stroke-linecap: round;
|
|
479
|
+
stroke-linejoin: round;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
.crewlet-graph-canvas__arrow {
|
|
483
|
+
fill: var(--color-map-hairline);
|
|
484
|
+
stroke: none;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
/* What something runs on: quieter, and dashed, so the family is not told by colour. */
|
|
488
|
+
.crewlet-graph-canvas__edge-layer[data-family='support'] .crewlet-graph-canvas__edge {
|
|
489
|
+
stroke: var(--color-map-support);
|
|
490
|
+
stroke-dasharray: 5 3;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
.crewlet-graph-canvas__edge-layer[data-family='support'] .crewlet-graph-canvas__arrow {
|
|
494
|
+
fill: var(--color-map-support);
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
/* What stands around: the quietest. */
|
|
498
|
+
.crewlet-graph-canvas__edge-layer[data-family='context'] .crewlet-graph-canvas__edge {
|
|
499
|
+
stroke: var(--color-map-context);
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
.crewlet-graph-canvas__edge-layer[data-family='context'] .crewlet-graph-canvas__arrow {
|
|
503
|
+
fill: var(--color-map-context);
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
.crewlet-graph-canvas__edge-layer[data-state='dim'] {
|
|
507
|
+
opacity: var(--crewlet-graph-canvas-line-dim);
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
/* THE LIT PATH: the accent, a little heavier, under a glow. */
|
|
511
|
+
.crewlet-graph-canvas__edge-layer[data-state='lit'] .crewlet-graph-canvas__edge {
|
|
512
|
+
stroke: var(--color-brand-accent);
|
|
513
|
+
stroke-width: var(--crewlet-graph-canvas-lit-width);
|
|
514
|
+
filter: drop-shadow(0 0 var(--crewlet-graph-canvas-lit-glow) var(--color-brand-accent));
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
.crewlet-graph-canvas__edge-layer[data-state='lit'] .crewlet-graph-canvas__arrow {
|
|
518
|
+
fill: var(--color-brand-accent);
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
.crewlet-graph-canvas__edge-layer[data-state='lit'][data-family='context'] .crewlet-graph-canvas__edge {
|
|
522
|
+
stroke: var(--color-map-context-lit);
|
|
523
|
+
stroke-width: 1.25;
|
|
524
|
+
filter: none;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
.crewlet-graph-canvas__edge-layer[data-state='lit'][data-family='context'] .crewlet-graph-canvas__arrow {
|
|
528
|
+
fill: var(--color-map-context-lit);
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
/* THE RUN OF DASHES says which way a line points. It is direction, never volume. */
|
|
532
|
+
.crewlet-graph-canvas__flow {
|
|
533
|
+
fill: none;
|
|
534
|
+
stroke: var(--color-brand-accent);
|
|
535
|
+
stroke-width: var(--crewlet-graph-canvas-flow-width);
|
|
536
|
+
stroke-linecap: round;
|
|
537
|
+
stroke-dasharray: var(--crewlet-graph-canvas-flow-dash);
|
|
538
|
+
opacity: 0.95;
|
|
539
|
+
filter: drop-shadow(0 0 var(--crewlet-graph-canvas-flow-glow) var(--color-map-flow-glow));
|
|
540
|
+
animation: crewlet-graph-canvas-flow var(--crewlet-graph-canvas-flow-duration) linear infinite;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
.crewlet-graph-canvas__edge-layer[data-state='lit'] .crewlet-graph-canvas__flow {
|
|
544
|
+
stroke: var(--color-brand-highlight);
|
|
545
|
+
stroke-width: var(--crewlet-graph-canvas-flow-lit-width);
|
|
546
|
+
opacity: 1;
|
|
547
|
+
animation: crewlet-graph-canvas-flow var(--crewlet-graph-canvas-flow-lit-duration) linear infinite;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
/* Too many calls in view to follow: the dashes at rest stand still, and the lit path still moves. */
|
|
551
|
+
.crewlet-graph-canvas[data-still] .crewlet-graph-canvas__edge-layer[data-state='rest'] .crewlet-graph-canvas__flow {
|
|
552
|
+
filter: none;
|
|
553
|
+
animation: none;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
@keyframes crewlet-graph-canvas-flow {
|
|
557
|
+
from {
|
|
558
|
+
stroke-dashoffset: var(--crewlet-graph-canvas-flow-period);
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
to {
|
|
562
|
+
stroke-dashoffset: 0;
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
/* A TRUNK: every "runs on" between two clusters as one dashed line, with its count. */
|
|
567
|
+
.crewlet-graph-canvas__trunk {
|
|
568
|
+
fill: none;
|
|
569
|
+
stroke: var(--color-map-outline);
|
|
570
|
+
stroke-width: 1;
|
|
571
|
+
stroke-dasharray: 7 4;
|
|
572
|
+
transition: opacity var(--motion-duration-base) var(--motion-easing-default);
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
.crewlet-graph-canvas__trunk-label {
|
|
576
|
+
padding: 0 var(--spacing-2);
|
|
577
|
+
border: 1px solid var(--color-map-outline);
|
|
578
|
+
border-radius: var(--crewlet-graph-canvas-corner);
|
|
579
|
+
background: var(--color-surface-frame);
|
|
580
|
+
color: var(--color-text-secondary);
|
|
581
|
+
font-family: var(--font-family-mono);
|
|
582
|
+
font-size: var(--font-size-2xs);
|
|
583
|
+
line-height: var(--font-line-height-normal);
|
|
584
|
+
white-space: nowrap;
|
|
585
|
+
pointer-events: none;
|
|
586
|
+
transition: opacity var(--motion-duration-base) var(--motion-easing-default);
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
.crewlet-graph-canvas[data-focus] .crewlet-graph-canvas__trunk,
|
|
590
|
+
.crewlet-graph-canvas[data-focus] .crewlet-graph-canvas__trunk-label {
|
|
591
|
+
opacity: var(--crewlet-graph-canvas-trunk-dim);
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
/* ── cards as shapes, zoomed out past reading ─────────────────────────────── */
|
|
595
|
+
|
|
596
|
+
.crewlet-graph-canvas__shapes path {
|
|
597
|
+
stroke-width: 1;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
.crewlet-graph-canvas__shapes [data-shape='card'] {
|
|
601
|
+
fill: var(--color-surface-frame);
|
|
602
|
+
stroke: var(--color-map-hairline);
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
.crewlet-graph-canvas__shapes [data-shape='faded'] {
|
|
606
|
+
fill: var(--color-surface-frame);
|
|
607
|
+
stroke: var(--color-map-hairline);
|
|
608
|
+
opacity: var(--crewlet-graph-canvas-dim);
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
.crewlet-graph-canvas__shapes [data-shape='dashed'] {
|
|
612
|
+
fill: var(--color-surface-frame);
|
|
613
|
+
stroke: var(--color-map-hairline);
|
|
614
|
+
stroke-dasharray: 4 3;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
.crewlet-graph-canvas__shapes [data-shape='selected'] {
|
|
618
|
+
fill: var(--color-brand-accent-soft);
|
|
619
|
+
stroke: var(--color-brand-accent);
|
|
620
|
+
stroke-width: 3;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
.crewlet-graph-canvas__shapes [data-shape='danger'] {
|
|
624
|
+
fill: var(--color-feedback-danger);
|
|
625
|
+
stroke: none;
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
.crewlet-graph-canvas__shapes [data-shape='warning'] {
|
|
629
|
+
fill: var(--color-feedback-warning);
|
|
630
|
+
stroke: none;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
.crewlet-graph-canvas__shapes [data-shape='info'] {
|
|
634
|
+
fill: var(--color-feedback-info);
|
|
635
|
+
stroke: none;
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
/* ── outside the world: the legend, the card beside an entry, the dock ───── */
|
|
639
|
+
|
|
640
|
+
.crewlet-graph-canvas__legend {
|
|
641
|
+
display: flex;
|
|
642
|
+
flex-wrap: wrap;
|
|
643
|
+
align-items: center;
|
|
644
|
+
gap: var(--spacing-1) var(--spacing-3);
|
|
645
|
+
padding: 0 0 0 var(--spacing-2);
|
|
646
|
+
color: var(--color-text-secondary);
|
|
647
|
+
font-size: var(--font-size-2xs);
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
.crewlet-graph-canvas__key {
|
|
651
|
+
display: inline-flex;
|
|
652
|
+
align-items: center;
|
|
653
|
+
gap: var(--spacing-1);
|
|
654
|
+
white-space: nowrap;
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
/* The key is the notch it explains. */
|
|
658
|
+
.crewlet-graph-canvas__key-notch {
|
|
659
|
+
width: var(--crewlet-graph-canvas-notch);
|
|
660
|
+
height: 0.6875rem;
|
|
661
|
+
background: var(--color-map-hairline);
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
.crewlet-graph-canvas__key-notch[data-tone='danger'] {
|
|
665
|
+
background: var(--color-feedback-danger);
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
.crewlet-graph-canvas__key-notch[data-tone='warning'] {
|
|
669
|
+
background: var(--color-feedback-warning);
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
.crewlet-graph-canvas__key-notch[data-tone='info'] {
|
|
673
|
+
background: var(--color-feedback-info);
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
.crewlet-graph-canvas__key-notch[data-unconfirmed] {
|
|
677
|
+
box-sizing: border-box;
|
|
678
|
+
width: 0.5625rem;
|
|
679
|
+
border: 1px dashed var(--color-map-hairline);
|
|
680
|
+
background: none;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
.crewlet-graph-canvas__legend-rule {
|
|
684
|
+
align-self: stretch;
|
|
685
|
+
border-left: 1px solid var(--color-border-default);
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
/* Each switch pictures its own line: solid, dashed, fine. */
|
|
689
|
+
.crewlet-graph-canvas__switch {
|
|
690
|
+
display: inline-flex;
|
|
691
|
+
align-items: center;
|
|
692
|
+
gap: var(--spacing-1);
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
.crewlet-graph-canvas__key-line {
|
|
696
|
+
flex: none;
|
|
697
|
+
width: 1.375rem;
|
|
698
|
+
height: 0.5rem;
|
|
699
|
+
fill: none;
|
|
700
|
+
stroke: currentColor;
|
|
701
|
+
stroke-width: 1.5;
|
|
702
|
+
stroke-linecap: round;
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
.crewlet-graph-canvas__key-line[data-family='flow'] {
|
|
706
|
+
stroke: var(--color-brand-accent);
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
.crewlet-graph-canvas__key-line[data-family='support'] {
|
|
710
|
+
stroke-dasharray: 2.5 3.5;
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
.crewlet-graph-canvas__key-line[data-family='context'] {
|
|
714
|
+
stroke-width: 1;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
.crewlet-graph-canvas__popup,
|
|
718
|
+
.crewlet-graph-canvas__dock {
|
|
719
|
+
position: absolute;
|
|
720
|
+
border: 1px solid var(--color-border-default);
|
|
721
|
+
border-radius: var(--radius-lg);
|
|
722
|
+
background: var(--color-map-chrome);
|
|
723
|
+
backdrop-filter: blur(var(--blur-md));
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
/* The card takes no press: it follows the pointer, which is on the entry it describes. */
|
|
727
|
+
.crewlet-graph-canvas__popup {
|
|
728
|
+
top: 0;
|
|
729
|
+
left: 0;
|
|
730
|
+
box-sizing: border-box;
|
|
731
|
+
width: var(--crewlet-graph-canvas-popup-width);
|
|
732
|
+
max-width: calc(100% - var(--spacing-4));
|
|
733
|
+
padding: var(--spacing-3);
|
|
734
|
+
pointer-events: none;
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
.crewlet-graph-canvas__dock {
|
|
738
|
+
bottom: calc(var(--spacing-9) + var(--spacing-2));
|
|
739
|
+
left: 50%;
|
|
740
|
+
max-width: min(40rem, calc(100% - var(--spacing-7)));
|
|
741
|
+
cursor: default;
|
|
742
|
+
transform: translateX(-50%);
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
/*
|
|
746
|
+
* A NARROW MAP keeps the whole picture: nothing floats over it. The dock and
|
|
747
|
+
* the legend stand under the canvas, in room the map gives up for them, so
|
|
748
|
+
* neither ever covers a cluster's title or an entry.
|
|
749
|
+
*/
|
|
750
|
+
.crewlet-graph-canvas__foot {
|
|
751
|
+
display: grid;
|
|
752
|
+
flex: none;
|
|
753
|
+
gap: var(--spacing-2);
|
|
754
|
+
padding-top: var(--spacing-2);
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
.crewlet-graph-canvas__foot > .crewlet-graph-canvas__dock {
|
|
758
|
+
position: static;
|
|
759
|
+
max-width: none;
|
|
760
|
+
background: var(--color-surface-frame);
|
|
761
|
+
backdrop-filter: none;
|
|
762
|
+
transform: none;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
.crewlet-graph-canvas__foot > .crewlet-graph-canvas__legend {
|
|
766
|
+
padding: 0;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
@media (prefers-reduced-motion: reduce) {
|
|
770
|
+
.crewlet-graph-canvas__card {
|
|
771
|
+
transition: none;
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
.crewlet-graph-canvas__edge-layer {
|
|
775
|
+
transition: none;
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
.crewlet-graph-canvas__flow {
|
|
779
|
+
animation: none;
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
.crewlet-graph-canvas__edge-layer[data-state='lit'] .crewlet-graph-canvas__flow {
|
|
783
|
+
animation: none;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
.crewlet-graph-canvas__trunk {
|
|
787
|
+
transition: none;
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
.crewlet-graph-canvas__trunk-label {
|
|
791
|
+
transition: none;
|
|
792
|
+
}
|
|
793
|
+
}
|