@cypress-design/react-testresult 0.0.2

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.
@@ -0,0 +1,843 @@
1
+ import * as React from 'react';
2
+ import clsx from 'clsx';
3
+ import * as iconsRegistry from '@cypress-design/icon-registry';
4
+ import { cyStatusRunningSimpleX4, cyStatusRunningSimpleX8, cyStatusRunningOutlineX12, cyStatusRunningOutlineX16, cyStatusRunningOutlineX24, cyStatusFailingOutlineX16, cyStatusFailingOutlineX24, cyStatusPassedSimpleX4, cyStatusPassedSimpleX8, cyStatusPassedSimpleX12, cyStatusPassedOutlineX16, cyStatusPassedOutlineX24, cyStatusFailedSimpleX4, cyStatusFailedSimpleX8, cyStatusFailedSimpleX12, cyStatusFailedOutlineX16, cyStatusFailedOutlineX24, cyStatusQueuedSimpleX4, cyStatusQueuedSimpleX8, cyStatusQueuedOutlineX12, cyStatusQueuedOutlineX16, cyStatusQueuedOutlineX24, cyStatusPlaceholderSimpleX4, cyStatusPlaceholderSimpleX8, cyStatusPlaceholderSolidX12, cyStatusPlaceholderSolidX16, cyStatusPlaceholderSolidX24, cyStatusCancelledSimpleX4, cyStatusCancelledSimpleX8, cyStatusCancelledSolidX12, cyStatusCancelledOutlineX16, cyStatusCancelledOutlineX24, cyStatusErroredSimpleX4, cyStatusErroredSimpleX8, cyStatusErroredSolidX12, cyStatusErroredOutlineX16, cyStatusErroredOutlineX24, cyStatusSkippedSimpleX4, cyStatusSkippedSimpleX8, cyStatusSkippedOutlineX12, cyStatusSkippedOutlineX16, cyStatusSkippedOutlineX24, cyStatusPendingSimpleX4, cyStatusPendingSimpleX8, cyStatusPendingOutlineX12, cyStatusPendingOutlineX16, cyStatusPendingOutlineX24, cyStatusPassedSimpleX16, cyStatusPassedSimpleX24, cyStatusFailedSimpleX16, cyStatusFailedSimpleX24, cyStatusCancelledSolidX16, cyStatusCancelledSolidX24, cyStatusErroredSolidX16, cyStatusErroredSolidX24, cyStatusPassedSolidX16, cyStatusPassedSolidX24, cyStatusFailedSolidX16, cyStatusFailedSolidX24, getComponentAttributes, ICON_COLOR_PROP_NAMES } from '@cypress-design/icon-registry';
5
+
6
+ /******************************************************************************
7
+ Copyright (c) Microsoft Corporation.
8
+
9
+ Permission to use, copy, modify, and/or distribute this software for any
10
+ purpose with or without fee is hereby granted.
11
+
12
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
13
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
14
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
15
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
16
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
17
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
18
+ PERFORMANCE OF THIS SOFTWARE.
19
+ ***************************************************************************** */
20
+ /* global Reflect, Promise, SuppressedError, Symbol */
21
+
22
+
23
+ var __assign$3 = function() {
24
+ __assign$3 = Object.assign || function __assign(t) {
25
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
26
+ s = arguments[i];
27
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
28
+ }
29
+ return t;
30
+ };
31
+ return __assign$3.apply(this, arguments);
32
+ };
33
+
34
+ function __rest$3(s, e) {
35
+ var t = {};
36
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
37
+ t[p] = s[p];
38
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
39
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
40
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
41
+ t[p[i]] = s[p[i]];
42
+ }
43
+ return t;
44
+ }
45
+
46
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
47
+ var e = new Error(message);
48
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
49
+ };
50
+
51
+ const classes = {
52
+ container: 'box-border relative hover:z-10 hover:outline outline-[3px] outline-gray-50 transition-all rounded-[1px] mix-blend-darken @container/test-result my-[-1px]',
53
+ row: 'box-border flex flex-col flex-nowrap items-stretch gap-y-[16px] p-[11px] border border-gray-100 hover:border-gray-300 transition-all cursor-pointer justify-start items-center @xl/test-result:px-[15px]',
54
+ list: 'box-border flex justify-start items-center flex-nowrap w-[100%] h-[100%] @xl/test-result:h-[32px] gap-x-[8px]',
55
+ icon: 'box-border h-[16px] w-[16px]',
56
+ status_icon: 'align-top',
57
+ name: {
58
+ container: {
59
+ column: 'box-border flex flex-nowrap flex-col @xl/test-result:flex-row gap-x-[4px] @xl/test-result:items-center shrink grow h-[100%] overflow-hidden',
60
+ describes: 'box-border flex flex-nowrap gap-x-[2px] @xl/test-result:gap-x-[4px] items-center overflow-hidden text-ellipsis grow @xl/test-result:grow-0 @xl/test-result:shrink-[2] text-[14px] @xl/test-result:text-[16px] text-gray-700',
61
+ it: 'box-border flex flex-nowrap items-center overflow-hidden grow @xl/test-result:grow-0 @xl/test-result:shrink text-gray-1000 @xl/test-result:text-gray-700',
62
+ },
63
+ item: {
64
+ base: 'box-border @xl/test-result:w-[max-content] min-w-[16px] h-[20px] @xl/test-result:h-[24px] gap-x-[8px] max-w-[max-content]',
65
+ first: 'shrink basis-[max-content]',
66
+ middle: 'shrink-[900000] basis-auto',
67
+ last: 'flex shrink grow basis-[100%] w-[100%] @xl/test-result:shrink @xl/test-result:basis-[max-content]',
68
+ text: {
69
+ base: 'box-border relative inline-block w-[100%] shrink max-w-max whitespace-nowrap overflow-hidden text-ellipsis min-w-[16px] leading-[18px] @xl/test-result:leading-[24px]',
70
+ it: ' @xl/test-result:[direction:rtl] pr-[8px]',
71
+ },
72
+ },
73
+ },
74
+ attribute: {
75
+ container: 'box-border flex items-center grow gap-x-[6px]',
76
+ },
77
+ chevron: {
78
+ container: 'relative text-gray-300 shrink-0 top-[-3px] @xl/test-result:top-0',
79
+ },
80
+ button: {
81
+ container: 'shrink-0 flex flex-nowrap items-center gap-x-[8px] justify-end',
82
+ },
83
+ group: {
84
+ container: 'pb-[4px] empty:hidden',
85
+ },
86
+ };
87
+
88
+ /******************************************************************************
89
+ Copyright (c) Microsoft Corporation.
90
+
91
+ Permission to use, copy, modify, and/or distribute this software for any
92
+ purpose with or without fee is hereby granted.
93
+
94
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
95
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
96
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
97
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
98
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
99
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
100
+ PERFORMANCE OF THIS SOFTWARE.
101
+ ***************************************************************************** */
102
+ /* global Reflect, Promise, SuppressedError, Symbol */
103
+
104
+
105
+ var __assign$1 = function() {
106
+ __assign$1 = Object.assign || function __assign(t) {
107
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
108
+ s = arguments[i];
109
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
110
+ }
111
+ return t;
112
+ };
113
+ return __assign$1.apply(this, arguments);
114
+ };
115
+
116
+ function __rest$1(s, e) {
117
+ var t = {};
118
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
119
+ t[p] = s[p];
120
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
121
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
122
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
123
+ t[p[i]] = s[p[i]];
124
+ }
125
+ return t;
126
+ }
127
+
128
+ function __spreadArray(to, from, pack) {
129
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
130
+ if (ar || !(i in from)) {
131
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
132
+ ar[i] = from[i];
133
+ }
134
+ }
135
+ return to.concat(ar || Array.prototype.slice.call(from));
136
+ }
137
+
138
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
139
+ var e = new Error(message);
140
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
141
+ };
142
+
143
+ /**
144
+ * This "const" is used to create the list of statuses
145
+ */
146
+ const constStatuses = {
147
+ running: {
148
+ // <tw-keep strokeColor="indigo-400" />
149
+ color: 'indigo-400',
150
+ use: 'Runs, specs, groups, test results',
151
+ variants: ['outline'],
152
+ // <tw-keep fillColor="gray-100" />
153
+ secondaryColor: 'gray-100',
154
+ },
155
+ failing: {
156
+ // <tw-keep strokeColor="red-400" />
157
+ color: 'red-400',
158
+ use: 'Runs, specs, groups, test results',
159
+ variants: ['outline'],
160
+ // <tw-keep fillColor="gray-100" />
161
+ secondaryColor: 'gray-100',
162
+ },
163
+ passed: {
164
+ // <tw-keep strokeColor="jade-400" />
165
+ color: 'jade-400',
166
+ use: 'Runs, specs, groups, test results',
167
+ link: 'https://docs.cypress.io/guides/core-concepts/writing-and-organizing-tests#Passed',
168
+ variants: ['outline', 'simple', 'solid'],
169
+ },
170
+ failed: {
171
+ // <tw-keep strokeColor="red-400" />
172
+ color: 'red-400',
173
+ use: 'Runs, specs, groups, test results',
174
+ link: 'https://docs.cypress.io/guides/core-concepts/writing-and-organizing-tests#Failed',
175
+ variants: ['outline', 'simple', 'solid'],
176
+ },
177
+ unclaimed: {
178
+ // <tw-keep strokeColor="gray-100" />
179
+ color: 'gray-100',
180
+ use: 'Specs',
181
+ variants: ['outline'],
182
+ },
183
+ placeholder: {
184
+ // <tw-keep strokeColor="gray-300" />
185
+ color: 'gray-300',
186
+ use: 'Placeholder',
187
+ variants: ['solid'],
188
+ },
189
+ cancelled: {
190
+ // <tw-keep strokeColor="gray-300" />
191
+ color: 'gray-300',
192
+ use: 'Runs, specs, groups, test results',
193
+ variants: ['outline', 'solid'],
194
+ },
195
+ noTests: {
196
+ // <tw-keep strokeColor="orange-400" />
197
+ color: 'orange-400',
198
+ use: 'Runs, specs, groups',
199
+ variants: ['outline', 'solid'],
200
+ },
201
+ errored: {
202
+ // <tw-keep strokeColor="orange-400" />
203
+ color: 'orange-400',
204
+ use: 'Runs, specs, groups, test results',
205
+ variants: ['outline', 'solid'],
206
+ },
207
+ timedOut: {
208
+ // <tw-keep strokeColor="orange-400" />
209
+ color: 'orange-400',
210
+ use: 'Runs, specs, groups, test results',
211
+ variants: ['outline', 'solid'],
212
+ },
213
+ overLimit: {
214
+ // <tw-keep strokeColor="orange-400" />
215
+ color: 'orange-400',
216
+ use: 'Runs, specs, groups',
217
+ link: 'https://docs.cypress.io/faq/questions/dashboard-faq#What-happens-once-I-reach-the-test-results-limit',
218
+ variants: ['outline', 'solid'],
219
+ },
220
+ skipped: {
221
+ // <tw-keep strokeColor="gray-400" />
222
+ color: 'gray-400',
223
+ use: 'Test results',
224
+ link: 'https://docs.cypress.io/guides/core-concepts/writing-and-organizing-tests#Skipped',
225
+ variants: ['outline'],
226
+ },
227
+ pending: {
228
+ // <tw-keep strokeColor="gray-300" />
229
+ color: 'gray-300',
230
+ use: 'Test results',
231
+ link: 'https://docs.cypress.io/guides/core-concepts/writing-and-organizing-tests#Pending',
232
+ variants: ['outline'],
233
+ },
234
+ };
235
+ /**
236
+ * The status we have here, allow us to check the validity of the constant
237
+ */
238
+ const statuses$3 = constStatuses;
239
+
240
+ const statuses$2 = {
241
+ running: {
242
+ size4Icon: cyStatusRunningSimpleX4,
243
+ size8Icon: cyStatusRunningSimpleX8,
244
+ size12Icon: cyStatusRunningOutlineX12,
245
+ size16Icon: cyStatusRunningOutlineX16,
246
+ size24Icon: cyStatusRunningOutlineX24,
247
+ },
248
+ failing: {
249
+ size4Icon: cyStatusRunningSimpleX4,
250
+ size8Icon: cyStatusRunningSimpleX8,
251
+ size12Icon: cyStatusRunningOutlineX12,
252
+ size16Icon: cyStatusFailingOutlineX16,
253
+ size24Icon: cyStatusFailingOutlineX24,
254
+ },
255
+ passed: {
256
+ size4Icon: cyStatusPassedSimpleX4,
257
+ size8Icon: cyStatusPassedSimpleX8,
258
+ size12Icon: cyStatusPassedSimpleX12,
259
+ size16Icon: cyStatusPassedOutlineX16,
260
+ size24Icon: cyStatusPassedOutlineX24,
261
+ },
262
+ failed: {
263
+ size4Icon: cyStatusFailedSimpleX4,
264
+ size8Icon: cyStatusFailedSimpleX8,
265
+ size12Icon: cyStatusFailedSimpleX12,
266
+ size16Icon: cyStatusFailedOutlineX16,
267
+ size24Icon: cyStatusFailedOutlineX24,
268
+ },
269
+ unclaimed: {
270
+ size4Icon: cyStatusQueuedSimpleX4,
271
+ size8Icon: cyStatusQueuedSimpleX8,
272
+ size12Icon: cyStatusQueuedOutlineX12,
273
+ size16Icon: cyStatusQueuedOutlineX16,
274
+ size24Icon: cyStatusQueuedOutlineX24,
275
+ },
276
+ placeholder: {
277
+ size4Icon: cyStatusPlaceholderSimpleX4,
278
+ size8Icon: cyStatusPlaceholderSimpleX8,
279
+ size12Icon: cyStatusPlaceholderSolidX12,
280
+ size16Icon: cyStatusPlaceholderSolidX16,
281
+ size24Icon: cyStatusPlaceholderSolidX24,
282
+ },
283
+ cancelled: {
284
+ size4Icon: cyStatusCancelledSimpleX4,
285
+ size8Icon: cyStatusCancelledSimpleX8,
286
+ size12Icon: cyStatusCancelledSolidX12,
287
+ size16Icon: cyStatusCancelledOutlineX16,
288
+ size24Icon: cyStatusCancelledOutlineX24,
289
+ },
290
+ noTests: {
291
+ size4Icon: cyStatusErroredSimpleX4,
292
+ size8Icon: cyStatusErroredSimpleX8,
293
+ size12Icon: cyStatusErroredSolidX12,
294
+ size16Icon: cyStatusErroredOutlineX16,
295
+ size24Icon: cyStatusErroredOutlineX24,
296
+ },
297
+ errored: {
298
+ size4Icon: cyStatusErroredSimpleX4,
299
+ size8Icon: cyStatusErroredSimpleX8,
300
+ size12Icon: cyStatusErroredSolidX12,
301
+ size16Icon: cyStatusErroredOutlineX16,
302
+ size24Icon: cyStatusErroredOutlineX24,
303
+ },
304
+ timedOut: {
305
+ size4Icon: cyStatusErroredSimpleX4,
306
+ size8Icon: cyStatusErroredSimpleX8,
307
+ size12Icon: cyStatusErroredSolidX12,
308
+ size16Icon: cyStatusErroredOutlineX16,
309
+ size24Icon: cyStatusErroredOutlineX24,
310
+ },
311
+ overLimit: {
312
+ size4Icon: cyStatusErroredSimpleX4,
313
+ size8Icon: cyStatusErroredSimpleX8,
314
+ size12Icon: cyStatusErroredSolidX12,
315
+ size16Icon: cyStatusErroredOutlineX16,
316
+ size24Icon: cyStatusErroredOutlineX24,
317
+ },
318
+ skipped: {
319
+ size4Icon: cyStatusSkippedSimpleX4,
320
+ size8Icon: cyStatusSkippedSimpleX8,
321
+ size12Icon: cyStatusSkippedOutlineX12,
322
+ size16Icon: cyStatusSkippedOutlineX16,
323
+ size24Icon: cyStatusSkippedOutlineX24,
324
+ },
325
+ pending: {
326
+ size4Icon: cyStatusPendingSimpleX4,
327
+ size8Icon: cyStatusPendingSimpleX8,
328
+ size12Icon: cyStatusPendingOutlineX12,
329
+ size16Icon: cyStatusPendingOutlineX16,
330
+ size24Icon: cyStatusPendingOutlineX24,
331
+ },
332
+ };
333
+
334
+ const statuses$1 = {
335
+ running: {
336
+ size4Icon: cyStatusRunningSimpleX4,
337
+ size8Icon: cyStatusRunningSimpleX8,
338
+ size12Icon: cyStatusRunningOutlineX12,
339
+ size16Icon: cyStatusRunningOutlineX16,
340
+ size24Icon: cyStatusRunningOutlineX24,
341
+ },
342
+ failing: {
343
+ size4Icon: cyStatusRunningSimpleX4,
344
+ size8Icon: cyStatusRunningSimpleX8,
345
+ size12Icon: cyStatusRunningOutlineX12,
346
+ size16Icon: cyStatusFailingOutlineX16,
347
+ size24Icon: cyStatusFailingOutlineX24,
348
+ },
349
+ passed: {
350
+ size4Icon: cyStatusPassedSimpleX4,
351
+ size8Icon: cyStatusPassedSimpleX8,
352
+ size12Icon: cyStatusPassedSimpleX12,
353
+ size16Icon: cyStatusPassedSimpleX16,
354
+ size24Icon: cyStatusPassedSimpleX24,
355
+ },
356
+ failed: {
357
+ size4Icon: cyStatusFailedSimpleX4,
358
+ size8Icon: cyStatusFailedSimpleX8,
359
+ size12Icon: cyStatusFailedSimpleX12,
360
+ size16Icon: cyStatusFailedSimpleX16,
361
+ size24Icon: cyStatusFailedSimpleX24,
362
+ },
363
+ unclaimed: {
364
+ size4Icon: cyStatusQueuedSimpleX4,
365
+ size8Icon: cyStatusQueuedSimpleX8,
366
+ size12Icon: cyStatusQueuedOutlineX12,
367
+ size16Icon: cyStatusQueuedOutlineX16,
368
+ size24Icon: cyStatusQueuedOutlineX24,
369
+ },
370
+ placeholder: {
371
+ size4Icon: cyStatusPlaceholderSimpleX4,
372
+ size8Icon: cyStatusPlaceholderSimpleX8,
373
+ size12Icon: cyStatusPlaceholderSolidX12,
374
+ size16Icon: cyStatusPlaceholderSolidX16,
375
+ size24Icon: cyStatusPlaceholderSolidX24,
376
+ },
377
+ cancelled: {
378
+ size4Icon: cyStatusCancelledSimpleX4,
379
+ size8Icon: cyStatusCancelledSimpleX8,
380
+ size12Icon: cyStatusCancelledSolidX12,
381
+ size16Icon: cyStatusCancelledSolidX16,
382
+ size24Icon: cyStatusCancelledSolidX24,
383
+ },
384
+ noTests: {
385
+ size4Icon: cyStatusErroredSimpleX4,
386
+ size8Icon: cyStatusErroredSimpleX8,
387
+ size12Icon: cyStatusErroredSolidX12,
388
+ size16Icon: cyStatusErroredSolidX16,
389
+ size24Icon: cyStatusErroredSolidX24,
390
+ },
391
+ errored: {
392
+ size4Icon: cyStatusErroredSimpleX4,
393
+ size8Icon: cyStatusErroredSimpleX8,
394
+ size12Icon: cyStatusErroredSolidX12,
395
+ size16Icon: cyStatusErroredSolidX16,
396
+ size24Icon: cyStatusErroredSolidX24,
397
+ },
398
+ timedOut: {
399
+ size4Icon: cyStatusErroredSimpleX4,
400
+ size8Icon: cyStatusErroredSimpleX8,
401
+ size12Icon: cyStatusErroredSolidX12,
402
+ size16Icon: cyStatusErroredSolidX16,
403
+ size24Icon: cyStatusErroredSolidX24,
404
+ },
405
+ overLimit: {
406
+ size4Icon: cyStatusErroredSimpleX4,
407
+ size8Icon: cyStatusErroredSimpleX8,
408
+ size12Icon: cyStatusErroredSolidX12,
409
+ size16Icon: cyStatusErroredSolidX16,
410
+ size24Icon: cyStatusErroredSolidX24,
411
+ },
412
+ skipped: {
413
+ size4Icon: cyStatusSkippedSimpleX4,
414
+ size8Icon: cyStatusSkippedSimpleX8,
415
+ size12Icon: cyStatusSkippedOutlineX12,
416
+ size16Icon: cyStatusSkippedOutlineX16,
417
+ size24Icon: cyStatusSkippedOutlineX24,
418
+ },
419
+ pending: {
420
+ size4Icon: cyStatusPendingSimpleX4,
421
+ size8Icon: cyStatusPendingSimpleX8,
422
+ size12Icon: cyStatusPendingOutlineX12,
423
+ size16Icon: cyStatusPendingOutlineX16,
424
+ size24Icon: cyStatusPendingOutlineX24,
425
+ },
426
+ };
427
+
428
+ const statuses = {
429
+ running: {
430
+ size4Icon: cyStatusRunningSimpleX4,
431
+ size8Icon: cyStatusRunningSimpleX8,
432
+ size12Icon: cyStatusRunningOutlineX12,
433
+ size16Icon: cyStatusRunningOutlineX16,
434
+ size24Icon: cyStatusRunningOutlineX24,
435
+ },
436
+ failing: {
437
+ size4Icon: cyStatusRunningSimpleX4,
438
+ size8Icon: cyStatusRunningSimpleX8,
439
+ size12Icon: cyStatusRunningOutlineX12,
440
+ size16Icon: cyStatusFailingOutlineX16,
441
+ size24Icon: cyStatusFailingOutlineX24,
442
+ },
443
+ passed: {
444
+ size4Icon: cyStatusPassedSimpleX4,
445
+ size8Icon: cyStatusPassedSimpleX8,
446
+ size12Icon: cyStatusPassedSimpleX12,
447
+ size16Icon: cyStatusPassedSolidX16,
448
+ size24Icon: cyStatusPassedSolidX24,
449
+ },
450
+ failed: {
451
+ size4Icon: cyStatusFailedSimpleX4,
452
+ size8Icon: cyStatusFailedSimpleX8,
453
+ size12Icon: cyStatusFailedSimpleX12,
454
+ size16Icon: cyStatusFailedSolidX16,
455
+ size24Icon: cyStatusFailedSolidX24,
456
+ },
457
+ unclaimed: {
458
+ size4Icon: cyStatusQueuedSimpleX4,
459
+ size8Icon: cyStatusQueuedSimpleX8,
460
+ size12Icon: cyStatusQueuedOutlineX12,
461
+ size16Icon: cyStatusQueuedOutlineX16,
462
+ size24Icon: cyStatusQueuedOutlineX24,
463
+ },
464
+ placeholder: {
465
+ size4Icon: cyStatusPlaceholderSimpleX4,
466
+ size8Icon: cyStatusPlaceholderSimpleX8,
467
+ size12Icon: cyStatusPlaceholderSolidX12,
468
+ size16Icon: cyStatusPlaceholderSolidX16,
469
+ size24Icon: cyStatusPlaceholderSolidX24,
470
+ },
471
+ cancelled: {
472
+ size4Icon: cyStatusCancelledSimpleX4,
473
+ size8Icon: cyStatusCancelledSimpleX8,
474
+ size12Icon: cyStatusCancelledSolidX12,
475
+ size16Icon: cyStatusCancelledSolidX16,
476
+ size24Icon: cyStatusCancelledSolidX24,
477
+ },
478
+ noTests: {
479
+ size4Icon: cyStatusErroredSimpleX4,
480
+ size8Icon: cyStatusErroredSimpleX8,
481
+ size12Icon: cyStatusErroredSolidX12,
482
+ size16Icon: cyStatusErroredSolidX16,
483
+ size24Icon: cyStatusErroredSolidX24,
484
+ },
485
+ errored: {
486
+ size4Icon: cyStatusErroredSimpleX4,
487
+ size8Icon: cyStatusErroredSimpleX8,
488
+ size12Icon: cyStatusErroredSolidX12,
489
+ size16Icon: cyStatusErroredSolidX16,
490
+ size24Icon: cyStatusErroredSolidX24,
491
+ },
492
+ timedOut: {
493
+ size4Icon: cyStatusErroredSimpleX4,
494
+ size8Icon: cyStatusErroredSimpleX8,
495
+ size12Icon: cyStatusErroredSolidX12,
496
+ size16Icon: cyStatusErroredSolidX16,
497
+ size24Icon: cyStatusErroredSolidX24,
498
+ },
499
+ overLimit: {
500
+ size4Icon: cyStatusErroredSimpleX4,
501
+ size8Icon: cyStatusErroredSimpleX8,
502
+ size12Icon: cyStatusErroredSolidX12,
503
+ size16Icon: cyStatusErroredSolidX16,
504
+ size24Icon: cyStatusErroredSolidX24,
505
+ },
506
+ skipped: {
507
+ size4Icon: cyStatusSkippedSimpleX4,
508
+ size8Icon: cyStatusSkippedSimpleX8,
509
+ size12Icon: cyStatusSkippedOutlineX12,
510
+ size16Icon: cyStatusSkippedOutlineX16,
511
+ size24Icon: cyStatusSkippedOutlineX24,
512
+ },
513
+ pending: {
514
+ size4Icon: cyStatusPendingSimpleX4,
515
+ size8Icon: cyStatusPendingSimpleX8,
516
+ size12Icon: cyStatusPendingOutlineX12,
517
+ size16Icon: cyStatusPendingOutlineX16,
518
+ size24Icon: cyStatusPendingOutlineX24,
519
+ },
520
+ };
521
+
522
+ /******************************************************************************
523
+ Copyright (c) Microsoft Corporation.
524
+
525
+ Permission to use, copy, modify, and/or distribute this software for any
526
+ purpose with or without fee is hereby granted.
527
+
528
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
529
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
530
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
531
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
532
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
533
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
534
+ PERFORMANCE OF THIS SOFTWARE.
535
+ ***************************************************************************** */
536
+ /* global Reflect, Promise, SuppressedError, Symbol */
537
+
538
+
539
+ var __assign$2 = function() {
540
+ __assign$2 = Object.assign || function __assign(t) {
541
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
542
+ s = arguments[i];
543
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
544
+ }
545
+ return t;
546
+ };
547
+ return __assign$2.apply(this, arguments);
548
+ };
549
+
550
+ function __rest$2(s, e) {
551
+ var t = {};
552
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
553
+ t[p] = s[p];
554
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
555
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
556
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
557
+ t[p[i]] = s[p[i]];
558
+ }
559
+ return t;
560
+ }
561
+
562
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
563
+ var e = new Error(message);
564
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
565
+ };
566
+
567
+ var compileReactIconProperties$1 = function (_a) {
568
+ var body = _a.body, defs = _a.defs, compiledClasses = _a.compiledClasses, size = _a.size, name = _a.name, attributes = __rest$2(_a, ["body", "defs", "compiledClasses", "size", "name"]);
569
+ var filteredAttributes = Object.keys(attributes).reduce(function (newAttributes, attrName) {
570
+ if (!ICON_COLOR_PROP_NAMES.includes(attrName) &&
571
+ attrName !== 'name') {
572
+ // @ts-expect-error the ky of React's SVGProps is too broad and
573
+ // breaks here. Since we do not need to check for it. We keep the expect error
574
+ newAttributes[attrName] =
575
+ attributes[attrName];
576
+ }
577
+ return newAttributes;
578
+ }, {});
579
+ // eslint-disable-next-line react-hooks/rules-of-hooks
580
+ React.useEffect(function () {
581
+ var iconFileId = "".concat(name, "_").concat(size);
582
+ if (defs) {
583
+ if (document.querySelector("[data-cy-svg-defs=\"".concat(iconFileId, "\"]"))) {
584
+ return;
585
+ }
586
+ var svgElement = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
587
+ svgElement.setAttribute('data-cy-svg-defs', iconFileId);
588
+ svgElement.setAttribute('width', '0');
589
+ svgElement.setAttribute('height', '0');
590
+ svgElement.innerHTML = defs;
591
+ document.body.appendChild(svgElement);
592
+ }
593
+ }, [defs, name, size]);
594
+ var componentProps = __assign$2({ width: size, height: size, viewBox: "0 0 ".concat(size, " ").concat(size), fill: 'none', dangerouslySetInnerHTML: {
595
+ __html: body,
596
+ }, className: undefined }, filteredAttributes);
597
+ if (attributes.className) {
598
+ compiledClasses.push(attributes.className);
599
+ }
600
+ if (compiledClasses.length) {
601
+ componentProps.className = compiledClasses.join(' ');
602
+ }
603
+ return componentProps;
604
+ };
605
+
606
+
607
+ /* <wind-keep class="filter icon-light-secondary icon-dark-secondary"> */
608
+
609
+ var compileProps = function (_a) {
610
+ var status = _a.status, statuses = _a.statuses, className = _a.className, size = _a.size, variantName = _a.variantName;
611
+ var statusInfo = status ? statuses[status] : statuses.placeholder;
612
+ var iconInfo = status ? statuses$3[status] : statuses$3.placeholder;
613
+ var iconData = statusInfo["size".concat(size, "Icon")].data;
614
+ var classes = "inline-block ".concat(className || '');
615
+ var compiledClasses = getComponentAttributes({
616
+ strokeColor: iconInfo.color,
617
+ size: size,
618
+ availableSizes: [size],
619
+ fillColor: iconInfo.secondaryColor,
620
+ }).compiledClasses;
621
+ return compileReactIconProperties$1({
622
+ body: iconData,
623
+ compiledClasses: __spreadArray(__spreadArray([], compiledClasses, true), [classes], false),
624
+ size: size,
625
+ name: "status_".concat(status, "_").concat(size, "_").concat(variantName),
626
+ });
627
+ };
628
+
629
+ var OutlineStatusIcon = function (_a) {
630
+ var _b = _a.size, size = _b === void 0 ? '24' : _b, _c = _a.status, status = _c === void 0 ? 'placeholder' : _c, rest = __rest$1(_a, ["size", "status"]);
631
+ return React.createElement('svg', __assign$1(__assign$1({}, rest), compileProps({
632
+ status: status,
633
+ statuses: statuses$2,
634
+ className: rest.className,
635
+ size: size,
636
+ variantName: 'outline',
637
+ })));
638
+ };
639
+
640
+ var SimpleStatusIcon = function (_a) {
641
+ var _b = _a.size, size = _b === void 0 ? '24' : _b, _c = _a.status, status = _c === void 0 ? 'placeholder' : _c, rest = __rest$1(_a, ["size", "status"]);
642
+ return React.createElement('svg', __assign$1(__assign$1({}, rest), compileProps({
643
+ status: status,
644
+ statuses: statuses$1,
645
+ className: rest.className,
646
+ size: size,
647
+ variantName: 'simple',
648
+ })));
649
+ };
650
+
651
+ var SolidStatusIcon = function (_a) {
652
+ var _b = _a.size, size = _b === void 0 ? '24' : _b, _c = _a.status, status = _c === void 0 ? 'placeholder' : _c, rest = __rest$1(_a, ["size", "status"]);
653
+ return React.createElement('svg', __assign$1(__assign$1({}, rest), compileProps({
654
+ status: status,
655
+ statuses: statuses,
656
+ className: rest.className,
657
+ size: size,
658
+ variantName: 'solid',
659
+ })));
660
+ };
661
+
662
+ var StatusIcon = function (_a) {
663
+ var _b = _a.size, size = _b === void 0 ? '24' : _b, status = _a.status, _c = _a.variant, variant = _c === void 0 ? 'simple' : _c, rest = __rest$1(_a, ["size", "status", "variant"]);
664
+ if (variant === 'outline') {
665
+ return React.createElement(OutlineStatusIcon, __assign$1({ size: size, status: status }, rest));
666
+ }
667
+ if (variant === 'simple') {
668
+ return React.createElement(SimpleStatusIcon, __assign$1({ size: size, status: status }, rest));
669
+ }
670
+ return React.createElement(SolidStatusIcon, __assign$1({ size: size, status: status }, rest));
671
+ };
672
+
673
+
674
+ /* <wind-keep class="outline inline-block icon-dark-indigo-400 icon-light-gray-100 icon-dark-red-400 icon-dark-jade-400 icon-dark-gray-100 icon-dark-gray-300 icon-dark-orange-400 icon-dark-gray-400"> */
675
+
676
+ /******************************************************************************
677
+ Copyright (c) Microsoft Corporation.
678
+
679
+ Permission to use, copy, modify, and/or distribute this software for any
680
+ purpose with or without fee is hereby granted.
681
+
682
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
683
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
684
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
685
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
686
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
687
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
688
+ PERFORMANCE OF THIS SOFTWARE.
689
+ ***************************************************************************** */
690
+ /* global Reflect, Promise, SuppressedError, Symbol */
691
+
692
+
693
+ var __assign = function() {
694
+ __assign = Object.assign || function __assign(t) {
695
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
696
+ s = arguments[i];
697
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
698
+ }
699
+ return t;
700
+ };
701
+ return __assign.apply(this, arguments);
702
+ };
703
+
704
+ function __rest(s, e) {
705
+ var t = {};
706
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
707
+ t[p] = s[p];
708
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
709
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
710
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
711
+ t[p[i]] = s[p[i]];
712
+ }
713
+ return t;
714
+ }
715
+
716
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
717
+ var e = new Error(message);
718
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
719
+ };
720
+
721
+ var compileReactIconProperties = function (_a) {
722
+ var body = _a.body, defs = _a.defs, compiledClasses = _a.compiledClasses, size = _a.size, name = _a.name, attributes = __rest(_a, ["body", "defs", "compiledClasses", "size", "name"]);
723
+ var filteredAttributes = Object.keys(attributes).reduce(function (newAttributes, attrName) {
724
+ if (!ICON_COLOR_PROP_NAMES.includes(attrName) &&
725
+ attrName !== 'name') {
726
+ // @ts-expect-error the ky of React's SVGProps is too broad and
727
+ // breaks here. Since we do not need to check for it. We keep the expect error
728
+ newAttributes[attrName] =
729
+ attributes[attrName];
730
+ }
731
+ return newAttributes;
732
+ }, {});
733
+ // eslint-disable-next-line react-hooks/rules-of-hooks
734
+ React.useEffect(function () {
735
+ var iconFileId = "".concat(name, "_").concat(size);
736
+ if (defs) {
737
+ if (document.querySelector("[data-cy-svg-defs=\"".concat(iconFileId, "\"]"))) {
738
+ return;
739
+ }
740
+ var svgElement = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
741
+ svgElement.setAttribute('data-cy-svg-defs', iconFileId);
742
+ svgElement.setAttribute('width', '0');
743
+ svgElement.setAttribute('height', '0');
744
+ svgElement.innerHTML = defs;
745
+ document.body.appendChild(svgElement);
746
+ }
747
+ }, [defs, name, size]);
748
+ var componentProps = __assign({ width: size, height: size, viewBox: "0 0 ".concat(size, " ").concat(size), fill: 'none', dangerouslySetInnerHTML: {
749
+ __html: body,
750
+ }, className: undefined }, filteredAttributes);
751
+ if (attributes.className) {
752
+ compiledClasses.push(attributes.className);
753
+ }
754
+ if (compiledClasses.length) {
755
+ componentProps.className = compiledClasses.join(' ');
756
+ }
757
+ return componentProps;
758
+ };
759
+
760
+ function useIconProps(props, iconBodiesAndDefs, availableSizes, name) {
761
+ var interactiveColorsOnGroup = props.interactiveColorsOnGroup, cleanProps = __rest(props, ["interactiveColorsOnGroup"]);
762
+ var _a = iconsRegistry.getComponentAttributes(__assign(__assign({}, cleanProps), { availableSizes: availableSizes, interactiveColorsOnGroup: interactiveColorsOnGroup })), size = _a.sizeWithDefault, compiledClasses = _a.compiledClasses;
763
+ var _b = iconBodiesAndDefs[size] || {}, body = _b.body, defs = _b.defs;
764
+ if (!body) {
765
+ throw Error("Icon \"".concat(name, "\" is not available in size ").concat(size));
766
+ }
767
+ return compileReactIconProperties(__assign(__assign({}, cleanProps), { name: name, size: size, body: body, defs: defs, compiledClasses: compiledClasses }));
768
+ }
769
+ var IconChevronRightSmall = function (props) { return React.createElement('svg', useIconProps(props, {
770
+ "8": {
771
+ "body": "<path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m2.5 1 3 3-3 3\" class=\"icon-dark\"/>"
772
+ },
773
+ "16": {
774
+ "body": "<path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"m6 12 4-4-4-4\" class=\"icon-dark\"/>"
775
+ }
776
+ }, ["8", "16"], "chevron-right-small")); };
777
+ var IconDocumentAddedSquarePlus = function (props) { return React.createElement('svg', useIconProps(props, {
778
+ "16": {
779
+ "body": "<path fill=\"#E4FBF2\" d=\"M2 12V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2\" class=\"icon-light\"/><path stroke=\"#1FA971\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M8 6v4m2-2H6m6-6H4a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2\" class=\"icon-dark\"/>"
780
+ },
781
+ "24": {
782
+ "body": "<path fill=\"#E4FBF2\" d=\"M3 18V6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3\" class=\"icon-light\"/><path stroke=\"#1FA971\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M12 8v8m4-4H8m10-9H6a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3\" class=\"icon-dark\"/>"
783
+ }
784
+ }, ["16", "24"], "document-added-square-plus")); };
785
+ var IconDocumentModifiedSquareDot = function (props) { return React.createElement('svg', useIconProps(props, {
786
+ "16": {
787
+ "body": "<path fill=\"#F5F4D7\" d=\"M9 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0\" class=\"icon-light\"/><path fill=\"#F5F4D7\" fill-rule=\"evenodd\" d=\"M4 2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2zm4 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2\" class=\"icon-light\" clip-rule=\"evenodd\"/><path stroke=\"#DB7903\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M9 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0\" class=\"icon-dark\"/><path stroke=\"#DB7903\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M4 2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2zm4 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2\" class=\"icon-dark\" clip-rule=\"evenodd\"/>"
788
+ },
789
+ "24": {
790
+ "body": "<path fill=\"#DB7903\" d=\"M14 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0\" class=\"icon-dark\"/><path fill=\"#F5F4D7\" fill-rule=\"evenodd\" d=\"M6 3a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3zm6 11a2 2 0 1 0 0-4 2 2 0 0 0 0 4\" class=\"icon-light\" clip-rule=\"evenodd\"/><path stroke=\"#DB7903\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M14 12a2 2 0 1 1-4 0 2 2 0 0 1 4 0\" class=\"icon-dark\"/><path stroke=\"#DB7903\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M6 3a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3zm6 11a2 2 0 1 0 0-4 2 2 0 0 0 0 4\" class=\"icon-dark\" clip-rule=\"evenodd\"/>"
791
+ }
792
+ }, ["16", "24"], "document-modified-square-dot")); };
793
+ var IconStatusFlaky = function (props) { return React.createElement('svg', useIconProps(props, {
794
+ "16": {
795
+ "body": "<path fill=\"#F5F4D7\" d=\"M1 12V4a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3H4a3 3 0 0 1-3-3\" class=\"icon-light\"/><path stroke=\"#963F00\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M9.5 5h-3v3.5m0 2.5V8.5m0 0h2\" class=\"icon-dark\"/>"
796
+ },
797
+ "24": {
798
+ "body": "<path fill=\"#F5F4D7\" d=\"M2 18V6a4 4 0 0 1 4-4h12a4 4 0 0 1 4 4v12a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4\" class=\"icon-light\"/><path stroke=\"#963F00\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M14 8h-4v4.5m0 3.5v-3.5m0 0h3\" class=\"icon-dark\"/>"
799
+ }
800
+ }, ["16", "24"], "status-flaky")); };
801
+
802
+
803
+ /* <wind-keep class="filter icon-light-secondary icon-dark-secondary"> */
804
+
805
+ var TestResult = function (_a) {
806
+ var status = _a.status, names = _a.names, flaky = _a.flaky, modified = _a.modified, added = _a.added, className = _a.className, groups = _a.groups, children = _a.children, rest = __rest$3(_a, ["status", "names", "flaky", "modified", "added", "className", "groups", "children"]);
807
+ return (React.createElement("div", __assign$3({ "data-cy": "cd-tr-container" }, rest, { className: clsx(classes.container, className) }),
808
+ React.createElement("div", { "data-cy": "cd-tr-row", className: classes.row },
809
+ React.createElement("div", { "data-cy": "cd-tr-list", className: classes.list },
810
+ React.createElement("div", { "data-cy": "cd-tr-icon", className: classes.icon },
811
+ React.createElement(StatusIcon, { size: "16", variant: "solid", status: status, className: classes.status_icon })),
812
+ React.createElement("div", { "data-cy": "cd-tr-name-container-column", className: classes.name.container.column },
813
+ names.slice(0, -1).length > 0 && (React.createElement("div", { "data-cy": "cd-tr-name-container-describes", className: classes.name.container.describes }, names.slice(0, -1).map(function (name, index) {
814
+ var _a;
815
+ return (React.createElement(React.Fragment, { key: index },
816
+ React.createElement("div", { "data-cy": "cd-tr-name-item", className: clsx((_a = {},
817
+ _a[classes.name.item.base] = true,
818
+ _a[classes.name.item.first] = names.length >= 2 && index === 0,
819
+ _a[classes.name.item.middle] = names.length >= 2 &&
820
+ index > 0 &&
821
+ index < names.length - 1,
822
+ _a)) },
823
+ React.createElement("span", { "data-cy": "cd-tr-name-item-text", className: classes.name.item.text.base }, name)),
824
+ index < names.length - 1 && (React.createElement("div", { "data-cy": "cd-tr-chevron", className: classes.chevron.container },
825
+ React.createElement(IconChevronRightSmall, { strokeColor: "gray-200", className: "mt-[2px]" })))));
826
+ }))),
827
+ React.createElement("div", { "data-cy": "cd-tr-name-container-it", className: classes.name.container.it },
828
+ React.createElement("span", { "data-cy": "cd-tr-name-item-text", className: [
829
+ classes.name.item.text.base,
830
+ classes.name.item.text.it,
831
+ ].join(' ') }, names.at(-1)),
832
+ (flaky || modified || added) && (React.createElement("div", { "data-cy": "cd-tr-attributes", className: classes.attribute.container },
833
+ flaky && React.createElement(IconStatusFlaky, { "data-cy": "cd-tr-flaky" }),
834
+ modified && (React.createElement(IconDocumentModifiedSquareDot, { "data-cy": "cd-tr-modified" })),
835
+ added && (React.createElement(IconDocumentAddedSquarePlus, { "data-cy": "cd-tr-added" })))))),
836
+ children ? (React.createElement("div", { "data-cy": "cd-tr-actions", className: classes.button.container }, children)) : null),
837
+ groups ? (React.createElement("div", { "data-cy": "cd-tr-group-container", className: classes.group.container }, groups)) : null)));
838
+ };
839
+
840
+ export { TestResult as default };
841
+ //# sourceMappingURL=index.es.mjs.map
842
+
843
+ /* <wind-keep class="container mt-[2px] box-border relative hover:z-10 hover:outline outline-[3px] outline-gray-50 transition-all rounded-[1px] mix-blend-darken my-[-1px] flex flex-col flex-nowrap items-stretch gap-y-[16px] p-[11px] border border-gray-100 hover:border-gray-300 cursor-pointer justify-start items-center @xl/test-result:px-[15px] w-[100%] h-[100%] @xl/test-result:h-[32px] gap-x-[8px] h-[16px] w-[16px] align-top @xl/test-result:flex-row gap-x-[4px] @xl/test-result:items-center shrink grow overflow-hidden gap-x-[2px] @xl/test-result:gap-x-[4px] text-ellipsis @xl/test-result:grow-0 @xl/test-result:shrink-[2] text-[14px] @xl/test-result:text-[16px] text-gray-700 @xl/test-result:shrink text-gray-1000 @xl/test-result:text-gray-700 @xl/test-result:w-[max-content] min-w-[16px] h-[20px] @xl/test-result:h-[24px] max-w-[max-content] basis-[max-content] shrink-[900000] basis-auto basis-[100%] @xl/test-result:basis-[max-content] inline-block max-w-max whitespace-nowrap leading-[18px] @xl/test-result:leading-[24px] @xl/test-result:[direction:rtl] pr-[8px] gap-x-[6px] text-gray-300 shrink-0 top-[-3px] @xl/test-result:top-0 justify-end pb-[4px] empty:hidden truncate @container/test-result"> */