@crewlethq/ui 0.122.0 → 0.124.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 (74) hide show
  1. package/README.md +45 -2
  2. package/dist/AvatarPicker/index.js +2 -2
  3. package/dist/Callout/Callout.d.ts +13 -1
  4. package/dist/Callout/index.d.ts +1 -1
  5. package/dist/Callout/index.js +1 -1
  6. package/dist/{Callout-G3N3IE6M.css → Callout-WLZKAFPT.css} +23 -0
  7. package/dist/Charts/StackedRing.d.ts +40 -0
  8. package/dist/Charts/TimeSeries.d.ts +8 -1
  9. package/dist/Charts/index.d.ts +2 -0
  10. package/dist/Charts/index.js +1 -1
  11. package/dist/{Charts-UJKADWXE.css → Charts-4VQ7T3GB.css} +85 -0
  12. package/dist/DataGrid/DataGrid.d.ts +11 -1
  13. package/dist/DataGrid/index.d.ts +1 -1
  14. package/dist/DataGrid/index.js +1 -1
  15. package/dist/{DataGrid-7KUUYSHA.css → DataGrid-KAFVH4B3.css} +3 -1
  16. package/dist/FindingList/FindingList.d.ts +8 -1
  17. package/dist/FindingList/index.js +1 -1
  18. package/dist/{FindingList-MPLA2ZTO.css → FindingList-5P2W5MIB.css} +24 -0
  19. package/dist/FollowBanner/index.js +2 -2
  20. package/dist/Fullscreen/FullscreenToggle.d.ts +21 -0
  21. package/dist/Fullscreen/index.d.ts +2 -0
  22. package/dist/Fullscreen/index.js +11 -1
  23. package/dist/GraphCanvas/GraphCanvas.d.ts +97 -16
  24. package/dist/GraphCanvas/index.d.ts +4 -4
  25. package/dist/GraphCanvas/index.js +3 -3
  26. package/dist/GraphCanvas/layout.d.ts +31 -1
  27. package/dist/GraphCanvas/walk.d.ts +5 -4
  28. package/dist/GraphCanvas-UZPZRP6S.css +793 -0
  29. package/dist/IconTile/IconTile.d.ts +26 -18
  30. package/dist/IconTile/index.d.ts +1 -1
  31. package/dist/IconTile/index.js +1 -1
  32. package/dist/IconTile-6OSCIHYU.css +112 -0
  33. package/dist/LinkInterstitial/index.js +2 -2
  34. package/dist/List/index.js +1 -1
  35. package/dist/{List-BNA4XGMH.css → List-DG77FXA6.css} +15 -0
  36. package/dist/OpenInAppCard/index.js +2 -2
  37. package/dist/OrgTable/index.js +3 -3
  38. package/dist/ReviewList/index.js +2 -2
  39. package/dist/RichEditor/index.js +2 -2
  40. package/dist/RoomRow/index.js +2 -2
  41. package/dist/SandboxedFrame/index.js +2 -2
  42. package/dist/SetupWizard/index.js +2 -2
  43. package/dist/ShareDialog/index.js +2 -2
  44. package/dist/TimeRangePicker/index.js +2 -2
  45. package/dist/TreeGrid/index.js +2 -2
  46. package/dist/{chunk-W5XCNEZC.js → chunk-3JLG6KRU.js} +23 -2
  47. package/dist/{chunk-NHHVN23D.js → chunk-45OOFAL6.js} +1 -1
  48. package/dist/{chunk-ZKGAEXLI.js → chunk-4EKHHHOQ.js} +1 -1
  49. package/dist/{chunk-AGVGX52B.js → chunk-7XYU5PSQ.js} +1 -1
  50. package/dist/{chunk-6KPHU4EB.js → chunk-DSBKVP73.js} +490 -122
  51. package/dist/{chunk-MDD6K5M4.js → chunk-EWJOBD25.js} +1 -1
  52. package/dist/{chunk-VY37HWFV.js → chunk-GAQU5V5R.js} +1 -1
  53. package/dist/{chunk-MVXQ74TB.js → chunk-I4V4GUVM.js} +1 -1
  54. package/dist/{chunk-XZQRJVOK.js → chunk-IMNCBQVO.js} +1 -1
  55. package/dist/chunk-J2GRBRGK.js +64 -0
  56. package/dist/{chunk-GUTZISXY.js → chunk-JXE4SCYV.js} +1 -1
  57. package/dist/{chunk-X5YI6QLW.js → chunk-NOKZULW3.js} +1 -1
  58. package/dist/{chunk-ZOMTCEHR.js → chunk-OFNJE4BN.js} +6 -1
  59. package/dist/{chunk-BPCY7ZID.js → chunk-RCQLXOGS.js} +9 -2
  60. package/dist/{chunk-75O3HCCD.js → chunk-T4TKY4VZ.js} +1 -1
  61. package/dist/{chunk-ENYHABQJ.js → chunk-VB7KAQBN.js} +1 -1
  62. package/dist/chunk-VRVNLJUA.js +46 -0
  63. package/dist/{chunk-6UVBOA4M.js → chunk-YKLYMQ6J.js} +1 -1
  64. package/dist/{chunk-MNTN5ESE.js → chunk-ZY5322MJ.js} +77 -3
  65. package/dist/generated/index.js +60 -60
  66. package/dist/index.js +60 -60
  67. package/dist/styles.css +766 -133
  68. package/package.json +3 -3
  69. package/dist/GraphCanvas-RSBMO2AF.css +0 -388
  70. package/dist/IconTile-G52XZVR4.css +0 -33
  71. package/dist/chunk-3LI4TRUR.js +0 -22
  72. package/dist/chunk-NEPNJMTD.js +0 -52
  73. package/dist/{chunk-2DZV4PHK.js → chunk-WLL3PFI3.js} +1 -1
  74. 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.124.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.124.0",
46
+ "@crewlethq/tokens": "0.124.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,52 +0,0 @@
1
- import { VisuallyHidden } from './chunk-RRRK2KB6.js';
2
- import { cx } from './chunk-ODEQTPFM.js';
3
- import './FindingList-MPLA2ZTO.css';
4
- import { CircleAlertGlyph, TriangleAlertGlyph } from '@crewlethq/icons/glyphs';
5
- import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
6
-
7
- var TONE_LABELS = {
8
- danger: "Problem",
9
- warning: "Advice"
10
- };
11
- function FindingList({
12
- findings,
13
- label,
14
- toneLabels,
15
- className
16
- }) {
17
- const words = { ...TONE_LABELS, ...toneLabels };
18
- const ordered = [
19
- ...findings.filter((f) => f.tone === "danger"),
20
- ...findings.filter((f) => f.tone === "warning")
21
- ];
22
- return /* @__PURE__ */ jsx("ul", { className: cx("crewlet-finding-list", className), "aria-label": label, children: ordered.map((f) => {
23
- const body = /* @__PURE__ */ jsxs(Fragment, { children: [
24
- /* @__PURE__ */ jsx(
25
- "span",
26
- {
27
- className: cx("crewlet-finding-list__glyph", `is-${f.tone}`),
28
- "aria-hidden": "true",
29
- children: f.tone === "danger" ? /* @__PURE__ */ jsx(CircleAlertGlyph, { size: "sm" }) : /* @__PURE__ */ jsx(TriangleAlertGlyph, { size: "sm" })
30
- }
31
- ),
32
- /* @__PURE__ */ jsxs("span", { className: "crewlet-finding-list__text", children: [
33
- f.location ? /* @__PURE__ */ jsx("span", { className: "crewlet-finding-list__location", children: f.location }) : null,
34
- /* @__PURE__ */ jsxs("span", { className: "crewlet-finding-list__message", children: [
35
- /* @__PURE__ */ jsx(VisuallyHidden, { children: `${words[f.tone]}: ` }),
36
- f.message
37
- ] })
38
- ] })
39
- ] });
40
- return /* @__PURE__ */ jsx("li", { className: "crewlet-finding-list__item", children: f.onSelect ? /* @__PURE__ */ jsx(
41
- "button",
42
- {
43
- type: "button",
44
- className: "crewlet-finding-list__row",
45
- onClick: f.onSelect,
46
- children: body
47
- }
48
- ) : /* @__PURE__ */ jsx("div", { className: "crewlet-finding-list__row", children: body }) }, f.key);
49
- }) });
50
- }
51
-
52
- export { FindingList };
@@ -1,5 +1,5 @@
1
- import { PageHeader } from './chunk-FPDIHEM4.js';
2
1
  import { Stepper } from './chunk-EHD4CEHK.js';
2
+ import { PageHeader } from './chunk-FPDIHEM4.js';
3
3
  import { Disclosure } from './chunk-D5O64CVE.js';
4
4
  import { useMediaMatch } from './chunk-COS6LJ4K.js';
5
5
  import { useHeadingLevel, nextHeadingLevel, headingTag, HeadingLevelProvider } from './chunk-PQADV6P6.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';