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