@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.
Files changed (47) hide show
  1. package/README.md +45 -2
  2. package/dist/AvatarPicker/index.js +2 -2
  3. package/dist/Charts/StackedRing.d.ts +40 -0
  4. package/dist/Charts/TimeSeries.d.ts +8 -1
  5. package/dist/Charts/index.d.ts +2 -0
  6. package/dist/Charts/index.js +1 -1
  7. package/dist/{Charts-UJKADWXE.css → Charts-4VQ7T3GB.css} +85 -0
  8. package/dist/DataGrid/DataGrid.d.ts +11 -1
  9. package/dist/DataGrid/index.d.ts +1 -1
  10. package/dist/DataGrid/index.js +1 -1
  11. package/dist/{DataGrid-7KUUYSHA.css → DataGrid-KAFVH4B3.css} +3 -1
  12. package/dist/DeepWorkCard/index.js +2 -2
  13. package/dist/Fullscreen/FullscreenToggle.d.ts +21 -0
  14. package/dist/Fullscreen/index.d.ts +2 -0
  15. package/dist/Fullscreen/index.js +11 -1
  16. package/dist/GraphCanvas/GraphCanvas.d.ts +97 -16
  17. package/dist/GraphCanvas/index.d.ts +4 -4
  18. package/dist/GraphCanvas/index.js +3 -3
  19. package/dist/GraphCanvas/layout.d.ts +31 -1
  20. package/dist/GraphCanvas/walk.d.ts +5 -4
  21. package/dist/GraphCanvas-UZPZRP6S.css +793 -0
  22. package/dist/IconTile/IconTile.d.ts +26 -18
  23. package/dist/IconTile/index.d.ts +1 -1
  24. package/dist/IconTile/index.js +1 -1
  25. package/dist/IconTile-6OSCIHYU.css +112 -0
  26. package/dist/OpenInAppCard/index.js +2 -2
  27. package/dist/OrgTable/index.js +3 -3
  28. package/dist/ReviewList/index.js +2 -2
  29. package/dist/TreeGrid/index.js +2 -2
  30. package/dist/{chunk-W5XCNEZC.js → chunk-3JLG6KRU.js} +23 -2
  31. package/dist/{chunk-AGVGX52B.js → chunk-7XYU5PSQ.js} +1 -1
  32. package/dist/{chunk-6KPHU4EB.js → chunk-DSBKVP73.js} +490 -122
  33. package/dist/{chunk-MDD6K5M4.js → chunk-EWJOBD25.js} +1 -1
  34. package/dist/{chunk-X5YI6QLW.js → chunk-NOKZULW3.js} +1 -1
  35. package/dist/{chunk-ZOMTCEHR.js → chunk-OFNJE4BN.js} +6 -1
  36. package/dist/{chunk-75O3HCCD.js → chunk-T4TKY4VZ.js} +1 -1
  37. package/dist/chunk-VRVNLJUA.js +46 -0
  38. package/dist/{chunk-MNTN5ESE.js → chunk-ZY5322MJ.js} +77 -3
  39. package/dist/generated/index.js +46 -46
  40. package/dist/index.js +46 -46
  41. package/dist/styles.css +701 -130
  42. package/package.json +3 -3
  43. package/dist/GraphCanvas-RSBMO2AF.css +0 -388
  44. package/dist/IconTile-G52XZVR4.css +0 -33
  45. package/dist/chunk-3LI4TRUR.js +0 -22
  46. package/dist/{chunk-4Z3AGYOB.js → chunk-P42LNYRX.js} +1 -1
  47. package/dist/{chunk-JWUIGUIS.js → chunk-YCT7LRYR.js} +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crewlethq/ui",
3
- "version": "0.122.0",
3
+ "version": "0.123.0",
4
4
  "description": "Crewlet shared React components built on @crewlethq/tokens and @crewlethq/icons.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -42,8 +42,8 @@
42
42
  "clean": "rm -rf dist src/generated"
43
43
  },
44
44
  "dependencies": {
45
- "@crewlethq/icons": "0.122.0",
46
- "@crewlethq/tokens": "0.122.0",
45
+ "@crewlethq/icons": "0.123.0",
46
+ "@crewlethq/tokens": "0.123.0",
47
47
  "prosemirror-commands": "1.7.2",
48
48
  "prosemirror-gapcursor": "1.4.1",
49
49
  "prosemirror-history": "1.5.1",
@@ -1,388 +0,0 @@
1
- /*
2
- * A layered map on a canvas (GraphCanvas.tsx).
3
- *
4
- * Every card is one size, set here in rem and spacing tokens, so the layout
5
- * reads it once from a probe rather than measuring each card. Colour carries
6
- * state only: a dot for attention, the accent for the selection, a dashed
7
- * edge for an unconfirmed entry, and neutral ink for everything else.
8
- */
9
-
10
- .crewlet-graph-canvas {
11
- --crewlet-graph-canvas-card-width: 13.5rem;
12
- --crewlet-graph-canvas-card-height: 3.25rem;
13
- display: flex;
14
- flex-direction: column;
15
- height: 100%;
16
- min-height: 0;
17
- }
18
-
19
- .crewlet-graph-canvas > .crewlet-canvas {
20
- flex: 1;
21
- }
22
-
23
- .crewlet-graph-canvas__ground,
24
- .crewlet-graph-canvas__edges,
25
- .crewlet-graph-canvas__shapes,
26
- .crewlet-graph-canvas__card,
27
- .crewlet-graph-canvas__head,
28
- .crewlet-graph-canvas__empty,
29
- .crewlet-graph-canvas__empty-probe,
30
- .crewlet-graph-canvas__lane-head,
31
- .crewlet-graph-canvas__band-title,
32
- .crewlet-graph-canvas__probe {
33
- position: absolute;
34
- top: 0;
35
- left: 0;
36
- }
37
-
38
- .crewlet-graph-canvas__ground,
39
- .crewlet-graph-canvas__edges,
40
- .crewlet-graph-canvas__shapes {
41
- overflow: visible;
42
- pointer-events: none;
43
- }
44
-
45
- /* ── the probes the layout reads its sizes from ────────────────────────── */
46
-
47
- .crewlet-graph-canvas__probe,
48
- .crewlet-graph-canvas__empty-probe {
49
- visibility: hidden;
50
- pointer-events: none;
51
- }
52
-
53
- /* The channel between columns, and the gap between rows. */
54
- .crewlet-graph-canvas__gap {
55
- width: var(--spacing-10);
56
- height: var(--spacing-5);
57
- }
58
-
59
- /* A lane's padding past its cards, and the room round the map and between bands. */
60
- .crewlet-graph-canvas__pad {
61
- width: var(--spacing-3);
62
- height: var(--spacing-6);
63
- }
64
-
65
- .crewlet-graph-canvas__empty-probe {
66
- width: var(--crewlet-graph-canvas-card-width);
67
- }
68
-
69
- /* ── lanes and bands ──────────────────────────────────────────────────────── */
70
-
71
- /* A lane is a quiet panel under its cards: the column a reader follows down. */
72
- .crewlet-graph-canvas__lane {
73
- fill: var(--color-surface-subtle);
74
- rx: var(--radius-xl);
75
- }
76
-
77
- .crewlet-graph-canvas__lane-head {
78
- box-sizing: border-box;
79
- display: flex;
80
- align-items: center;
81
- gap: var(--spacing-2);
82
- padding: var(--spacing-3) var(--spacing-1) var(--spacing-2);
83
- font-size: var(--font-size-xs);
84
- line-height: var(--font-line-height-snug);
85
- white-space: nowrap;
86
- pointer-events: none;
87
- }
88
-
89
- .crewlet-graph-canvas__lane-label {
90
- min-width: 0;
91
- overflow: hidden;
92
- text-overflow: ellipsis;
93
- font-weight: var(--font-weight-semibold);
94
- color: var(--color-text-secondary);
95
- }
96
-
97
- .crewlet-graph-canvas__lane-count {
98
- color: var(--color-text-tertiary);
99
- font-variant-numeric: tabular-nums;
100
- }
101
-
102
- .crewlet-graph-canvas__band-title {
103
- box-sizing: border-box;
104
- display: flex;
105
- align-items: flex-end;
106
- padding: var(--spacing-4) var(--spacing-1) var(--spacing-1);
107
- font-size: var(--font-size-sm);
108
- font-weight: var(--font-weight-semibold);
109
- line-height: var(--font-line-height-snug);
110
- color: var(--color-text-primary);
111
- white-space: nowrap;
112
- pointer-events: none;
113
- }
114
-
115
- /* ── groups ──────────────────────────────────────────────────────────────── */
116
-
117
- /* A dashed box: a card's own edge is solid, and a grouping is not a thing. */
118
- .crewlet-graph-canvas__group {
119
- fill: var(--color-surface-background);
120
- stroke: var(--color-border-strong);
121
- stroke-dasharray: 4 3;
122
- rx: var(--radius-lg);
123
- }
124
-
125
- .crewlet-graph-canvas__head {
126
- box-sizing: border-box;
127
- display: flex;
128
- align-items: center;
129
- gap: var(--spacing-2);
130
- padding: 0 var(--spacing-2);
131
- font-size: var(--font-size-xs);
132
- line-height: var(--font-line-height-snug);
133
- color: var(--color-text-secondary);
134
- border-radius: var(--radius-lg) var(--radius-lg) 0 0;
135
- cursor: pointer;
136
- outline: none;
137
- }
138
-
139
- .crewlet-graph-canvas__head:hover {
140
- color: var(--color-text-primary);
141
- }
142
-
143
- .crewlet-graph-canvas__head:focus-visible {
144
- outline: 2px solid var(--color-focus);
145
- outline-offset: var(--size-focus-ring-inset-offset);
146
- }
147
-
148
- .crewlet-graph-canvas__lead {
149
- display: inline-flex;
150
- flex: none;
151
- }
152
-
153
- .crewlet-graph-canvas__group-label {
154
- min-width: 0;
155
- font-weight: var(--font-weight-medium);
156
- }
157
-
158
- .crewlet-graph-canvas__group-count {
159
- color: var(--color-text-tertiary);
160
- font-variant-numeric: tabular-nums;
161
- }
162
-
163
- .crewlet-graph-canvas__chevron {
164
- flex: none;
165
- color: var(--color-text-tertiary);
166
- }
167
-
168
- /* ── cards ───────────────────────────────────────────────────────────────── */
169
-
170
- .crewlet-graph-canvas__card {
171
- box-sizing: border-box;
172
- width: var(--crewlet-graph-canvas-card-width);
173
- height: var(--crewlet-graph-canvas-card-height);
174
- display: flex;
175
- align-items: center;
176
- gap: var(--spacing-2);
177
- padding: 0 var(--spacing-3) 0 var(--spacing-2);
178
- background: var(--color-surface-elevated);
179
- border: 1px solid var(--color-border-default);
180
- border-radius: var(--radius-lg);
181
- box-shadow: var(--shadow-xs);
182
- color: var(--color-text-primary);
183
- cursor: pointer;
184
- outline: none;
185
- }
186
-
187
- .crewlet-graph-canvas__card:hover {
188
- border-color: var(--color-border-hover);
189
- }
190
-
191
- /* The ring is drawn over the card's own edge, never beside it. */
192
- .crewlet-graph-canvas__card:focus-visible {
193
- outline: 2px solid var(--color-focus);
194
- outline-offset: var(--size-focus-ring-inset-offset);
195
- }
196
-
197
- /* The selection is where the reader is: the accent, as the card's own edge made heavier. */
198
- .crewlet-graph-canvas__card[data-selected] {
199
- border-color: var(--color-brand-accent);
200
- box-shadow: inset 0 0 0 1px var(--color-brand-accent);
201
- }
202
-
203
- /* Not confirmed by anyone the map trusts: the edge is dashed, the same device a grouping uses. */
204
- .crewlet-graph-canvas__card[data-unconfirmed] {
205
- border-style: dashed;
206
- border-color: var(--color-border-strong);
207
- box-shadow: none;
208
- }
209
-
210
- .crewlet-graph-canvas__card[data-unconfirmed][data-selected] {
211
- border-color: var(--color-brand-accent);
212
- }
213
-
214
- /*
215
- * Pushed back: the card sinks into its lane's own fill, flat and grey, its
216
- * words in the quiet ink, which still clears its contrast floor; only the
217
- * glyph, which the name already says, fades.
218
- */
219
- .crewlet-graph-canvas__card[data-dimmed] {
220
- background: var(--color-surface-subtle);
221
- border-color: var(--color-border-default);
222
- box-shadow: none;
223
- color: var(--color-text-tertiary);
224
- }
225
-
226
- .crewlet-graph-canvas__card[data-dimmed] .crewlet-graph-canvas__name {
227
- font-weight: var(--font-weight-regular);
228
- }
229
-
230
- .crewlet-graph-canvas__card[data-dimmed] .crewlet-graph-canvas__tile {
231
- filter: grayscale(1);
232
- opacity: 0.5;
233
- }
234
-
235
- .crewlet-graph-canvas__card[data-dimmed] .crewlet-graph-canvas__dot {
236
- filter: grayscale(1);
237
- }
238
-
239
- .crewlet-graph-canvas__head[data-dimmed] {
240
- color: var(--color-text-tertiary);
241
- }
242
-
243
- .crewlet-graph-canvas__tile {
244
- flex: none;
245
- }
246
-
247
- .crewlet-graph-canvas__text {
248
- display: flex;
249
- flex-direction: column;
250
- min-width: 0;
251
- flex: 1;
252
- }
253
-
254
- .crewlet-graph-canvas__name {
255
- font-size: var(--font-size-sm);
256
- font-weight: var(--font-weight-medium);
257
- line-height: var(--font-line-height-snug);
258
- }
259
-
260
- .crewlet-graph-canvas__caption {
261
- font-size: var(--font-size-xs);
262
- line-height: var(--font-line-height-snug);
263
- color: var(--color-text-tertiary);
264
- }
265
-
266
- .crewlet-graph-canvas__card[data-dimmed] .crewlet-graph-canvas__caption {
267
- color: var(--color-text-tertiary);
268
- }
269
-
270
- /* The dot stands on the card's top corner, clear of the name. */
271
- .crewlet-graph-canvas__dot {
272
- position: absolute;
273
- top: var(--spacing-2);
274
- right: var(--spacing-2);
275
- }
276
-
277
- .crewlet-graph-canvas__card--group .crewlet-graph-canvas__chevron {
278
- margin-right: calc(-1 * var(--spacing-1));
279
- }
280
-
281
- /* ── empty lanes ────────────────────────────────────────────────────────── */
282
-
283
- .crewlet-graph-canvas__empty,
284
- .crewlet-graph-canvas__empty-probe {
285
- box-sizing: border-box;
286
- padding: var(--spacing-3);
287
- font-size: var(--font-size-xs);
288
- line-height: var(--font-line-height-normal);
289
- color: var(--color-text-secondary);
290
- overflow-wrap: anywhere;
291
- }
292
-
293
- .crewlet-graph-canvas__empty {
294
- display: flex;
295
- flex-direction: column;
296
- align-items: flex-start;
297
- gap: var(--spacing-2);
298
- border: 1px dashed var(--color-border-strong);
299
- border-radius: var(--radius-lg);
300
- outline: none;
301
- }
302
-
303
- .crewlet-graph-canvas__empty-probe {
304
- display: flex;
305
- flex-direction: column;
306
- gap: var(--spacing-2);
307
- }
308
-
309
- .crewlet-graph-canvas__empty:focus-visible {
310
- outline: 2px solid var(--color-focus);
311
- outline-offset: var(--size-focus-ring-inset-offset);
312
- }
313
-
314
- /* ── edges ───────────────────────────────────────────────────────────────── */
315
-
316
- /*
317
- * An edge is the content between cards, so it takes the boundary step the
318
- * palette holds to 3:1 on the canvas's ground, as a tree's connectors do.
319
- */
320
- .crewlet-graph-canvas__edge {
321
- fill: none;
322
- stroke: var(--color-border-control);
323
- stroke-width: 1.5;
324
- stroke-linecap: round;
325
- stroke-linejoin: round;
326
- }
327
-
328
- .crewlet-graph-canvas__arrow {
329
- fill: var(--color-border-control);
330
- stroke: none;
331
- }
332
-
333
- .crewlet-graph-canvas__edge[data-state='faint'] {
334
- stroke: var(--color-border-default);
335
- }
336
-
337
- .crewlet-graph-canvas__arrow[data-state='faint'] {
338
- fill: var(--color-border-default);
339
- }
340
-
341
- .crewlet-graph-canvas__edge[data-state='strong'] {
342
- stroke: var(--color-brand-accent);
343
- stroke-width: 2;
344
- }
345
-
346
- .crewlet-graph-canvas__arrow[data-state='strong'] {
347
- fill: var(--color-brand-accent);
348
- }
349
-
350
- /* ── cards as shapes, zoomed out past reading ─────────────────────────────── */
351
-
352
- .crewlet-graph-canvas__shapes path {
353
- stroke-width: 1;
354
- }
355
-
356
- .crewlet-graph-canvas__shapes [data-shape='card'] {
357
- fill: var(--color-surface-elevated);
358
- stroke: var(--color-border-strong);
359
- }
360
-
361
- .crewlet-graph-canvas__shapes [data-shape='faded'] {
362
- fill: var(--color-surface-background);
363
- stroke: var(--color-border-default);
364
- }
365
-
366
- .crewlet-graph-canvas__shapes [data-shape='dashed'] {
367
- fill: var(--color-surface-elevated);
368
- stroke: var(--color-border-strong);
369
- stroke-dasharray: 4 3;
370
- }
371
-
372
- .crewlet-graph-canvas__shapes [data-shape='selected'] {
373
- fill: var(--color-surface-elevated);
374
- stroke: var(--color-brand-accent);
375
- stroke-width: 3;
376
- }
377
-
378
- .crewlet-graph-canvas__shapes [data-shape='danger'] {
379
- fill: var(--color-feedback-danger);
380
- }
381
-
382
- .crewlet-graph-canvas__shapes [data-shape='warning'] {
383
- fill: var(--color-feedback-warning);
384
- }
385
-
386
- .crewlet-graph-canvas__shapes [data-shape='info'] {
387
- fill: var(--color-feedback-info);
388
- }
@@ -1,33 +0,0 @@
1
- /*
2
- * IconTile: a glyph on a tinted square. Each hue pairs its fill and its ink
3
- * from one measured family (`--color-node-*`); left out, the brand accent's
4
- * soft fill and ink. No edge: the tile sits inside a card that has one.
5
- */
6
- .crewlet-icon-tile {
7
- --crewlet-icon-tile-fill: var(--color-brand-accent-soft);
8
- --crewlet-icon-tile-ink: var(--color-brand-accent-ink);
9
- --crewlet-icon-tile-size: var(--size-row-md);
10
-
11
- display: inline-flex;
12
- flex: none;
13
- align-items: center;
14
- justify-content: center;
15
- width: var(--crewlet-icon-tile-size);
16
- height: var(--crewlet-icon-tile-size);
17
- border-radius: var(--radius-md);
18
- background: var(--crewlet-icon-tile-fill);
19
- color: var(--crewlet-icon-tile-ink);
20
- }
21
-
22
- .crewlet-icon-tile--sm { --crewlet-icon-tile-size: var(--size-row-sm); }
23
- .crewlet-icon-tile--lg { --crewlet-icon-tile-size: var(--size-row-lg); border-radius: var(--radius-lg); }
24
-
25
- /* A place or a record rather than a kind: the raised ground, the secondary ink. */
26
- .crewlet-icon-tile--neutral { --crewlet-icon-tile-fill: var(--color-surface-elevated); --crewlet-icon-tile-ink: var(--color-text-secondary); }
27
-
28
- .crewlet-icon-tile--purple { --crewlet-icon-tile-fill: var(--color-node-purple-fill); --crewlet-icon-tile-ink: var(--color-node-purple-ink); }
29
- .crewlet-icon-tile--cyan { --crewlet-icon-tile-fill: var(--color-node-cyan-fill); --crewlet-icon-tile-ink: var(--color-node-cyan-ink); }
30
- .crewlet-icon-tile--green { --crewlet-icon-tile-fill: var(--color-node-green-fill); --crewlet-icon-tile-ink: var(--color-node-green-ink); }
31
- .crewlet-icon-tile--amber { --crewlet-icon-tile-fill: var(--color-node-amber-fill); --crewlet-icon-tile-ink: var(--color-node-amber-ink); }
32
- .crewlet-icon-tile--rose { --crewlet-icon-tile-fill: var(--color-node-rose-fill); --crewlet-icon-tile-ink: var(--color-node-rose-ink); }
33
- .crewlet-icon-tile--blue { --crewlet-icon-tile-fill: var(--color-node-blue-fill); --crewlet-icon-tile-ink: var(--color-node-blue-ink); }
@@ -1,22 +0,0 @@
1
- import { cx } from './chunk-ODEQTPFM.js';
2
- import './IconTile-G52XZVR4.css';
3
- import { jsx } from 'react/jsx-runtime';
4
-
5
- function IconTile({ children, hue, tone = "accent", size = "md", className, ...rest }) {
6
- return /* @__PURE__ */ jsx(
7
- "span",
8
- {
9
- "aria-hidden": "true",
10
- ...rest,
11
- className: cx(
12
- "crewlet-icon-tile",
13
- `crewlet-icon-tile--${size}`,
14
- hue ? `crewlet-icon-tile--${hue}` : tone === "neutral" && "crewlet-icon-tile--neutral",
15
- className
16
- ),
17
- children
18
- }
19
- );
20
- }
21
-
22
- export { IconTile };
@@ -1,6 +1,6 @@
1
1
  import { StepList } from './chunk-EHD4CEHK.js';
2
- import { ReceiptStrip } from './chunk-TMHG4576.js';
3
2
  import { Meter } from './chunk-MXOT2CWL.js';
3
+ import { ReceiptStrip } from './chunk-TMHG4576.js';
4
4
  import { StatusCard } from './chunk-7L75YB57.js';
5
5
  import { Disclosure } from './chunk-D5O64CVE.js';
6
6
  import { Spinner } from './chunk-XSPCITPN.js';
@@ -1,7 +1,7 @@
1
1
  import { HuePicker } from './chunk-5P6LLFEO.js';
2
2
  import { Popover } from './chunk-KDRJZWE3.js';
3
- import { NODE_HUE_NAMES } from './chunk-AYKXMIOR.js';
4
3
  import { CharacterPicker } from './chunk-S4JRQJEP.js';
4
+ import { NODE_HUE_NAMES } from './chunk-AYKXMIOR.js';
5
5
  import { Avatar } from './chunk-XZY6S3UC.js';
6
6
  import { cx } from './chunk-ODEQTPFM.js';
7
7
  import './AvatarPicker-POOJUOKC.css';