@cypress-design/react-statusicon 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +3 -1
- package/CHANGELOG.md +9 -0
- package/dist/index.es.mjs +24 -493
- package/dist/index.es.mjs.map +1 -1
- package/dist/index.umd.js +24 -493
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
- package/rollup.config.mjs +5 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
$ yarn build:module && yarn build:types
|
|
2
2
|
$ rollup -c ./rollup.config.mjs
|
|
3
|
+
(node:4220) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
|
|
4
|
+
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
3
5
|
[36m
|
|
4
6
|
[1m./index.ts[22m → [1m./dist/index.umd.js, ./dist/index.es.mjs[22m...[39m
|
|
5
7
|
[1m[33m(!) Mixing named and default exports[39m[22m
|
|
@@ -8,5 +10,5 @@ $ rollup -c ./rollup.config.mjs
|
|
|
8
10
|
index.ts
|
|
9
11
|
|
|
10
12
|
Consumers of your bundle will have to use chunk.default to access their default export, which may not be what you want. Use `output.exports: "named"` to disable this warning.
|
|
11
|
-
[32mcreated [1m./dist/index.umd.js, ./dist/index.es.mjs[22m in [
|
|
13
|
+
[32mcreated [1m./dist/index.umd.js, ./dist/index.es.mjs[22m in [1m12.9s[22m[39m
|
|
12
14
|
$ tsc --project ./tsconfig.build.json
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @cypress-design/react-statusicon
|
|
2
2
|
|
|
3
|
+
## 1.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#450](https://github.com/cypress-io/cypress-design/pull/450) [`927097f`](https://github.com/cypress-io/cypress-design/commit/927097f409235ac78c98b281c4d9b2ec70dfe01d) Thanks [@elevatebart](https://github.com/elevatebart)! - optim: do not package dependencies
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`927097f`](https://github.com/cypress-io/cypress-design/commit/927097f409235ac78c98b281c4d9b2ec70dfe01d), [`927097f`](https://github.com/cypress-io/cypress-design/commit/927097f409235ac78c98b281c4d9b2ec70dfe01d)]:
|
|
10
|
+
- @cypress-design/react-icon@1.1.0
|
|
11
|
+
|
|
3
12
|
## 1.0.0
|
|
4
13
|
|
|
5
14
|
### Major Changes
|
package/dist/index.es.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import '
|
|
2
|
+
import { statuses, outline, simple, solid } from '@cypress-design/constants-statusicon';
|
|
3
|
+
import { compileReactIconProperties } from '@cypress-design/react-icon';
|
|
4
|
+
import { getComponentAttributes } from '@cypress-design/icon-registry';
|
|
4
5
|
|
|
5
6
|
/******************************************************************************
|
|
6
7
|
Copyright (c) Microsoft Corporation.
|
|
@@ -19,18 +20,18 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
19
20
|
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
20
21
|
|
|
21
22
|
|
|
22
|
-
var __assign
|
|
23
|
-
__assign
|
|
23
|
+
var __assign = function() {
|
|
24
|
+
__assign = Object.assign || function __assign(t) {
|
|
24
25
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
25
26
|
s = arguments[i];
|
|
26
27
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
27
28
|
}
|
|
28
29
|
return t;
|
|
29
30
|
};
|
|
30
|
-
return __assign
|
|
31
|
+
return __assign.apply(this, arguments);
|
|
31
32
|
};
|
|
32
33
|
|
|
33
|
-
function __rest
|
|
34
|
+
function __rest(s, e) {
|
|
34
35
|
var t = {};
|
|
35
36
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
36
37
|
t[p] = s[p];
|
|
@@ -57,480 +58,10 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
57
58
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
58
59
|
};
|
|
59
60
|
|
|
60
|
-
/**
|
|
61
|
-
* This "const" is used to create the list of statuses
|
|
62
|
-
*/
|
|
63
|
-
const constStatuses = {
|
|
64
|
-
running: {
|
|
65
|
-
// <tw-keep strokeColor="indigo-400" />
|
|
66
|
-
color: 'indigo-400',
|
|
67
|
-
use: 'Runs, specs, groups, test results',
|
|
68
|
-
variants: ['outline'],
|
|
69
|
-
// <tw-keep fillColor="gray-100" />
|
|
70
|
-
secondaryColor: 'gray-100',
|
|
71
|
-
},
|
|
72
|
-
failing: {
|
|
73
|
-
// <tw-keep strokeColor="red-400" />
|
|
74
|
-
color: 'red-400',
|
|
75
|
-
use: 'Runs, specs, groups, test results',
|
|
76
|
-
variants: ['outline'],
|
|
77
|
-
// <tw-keep fillColor="gray-100" />
|
|
78
|
-
secondaryColor: 'gray-100',
|
|
79
|
-
},
|
|
80
|
-
passed: {
|
|
81
|
-
// <tw-keep strokeColor="jade-400" />
|
|
82
|
-
color: 'jade-400',
|
|
83
|
-
use: 'Runs, specs, groups, test results',
|
|
84
|
-
link: 'https://docs.cypress.io/guides/core-concepts/writing-and-organizing-tests#Passed',
|
|
85
|
-
variants: ['outline', 'simple', 'solid'],
|
|
86
|
-
},
|
|
87
|
-
failed: {
|
|
88
|
-
// <tw-keep strokeColor="red-400" />
|
|
89
|
-
color: 'red-400',
|
|
90
|
-
use: 'Runs, specs, groups, test results',
|
|
91
|
-
link: 'https://docs.cypress.io/guides/core-concepts/writing-and-organizing-tests#Failed',
|
|
92
|
-
variants: ['outline', 'simple', 'solid'],
|
|
93
|
-
},
|
|
94
|
-
unclaimed: {
|
|
95
|
-
// <tw-keep strokeColor="gray-100" />
|
|
96
|
-
color: 'gray-100',
|
|
97
|
-
use: 'Specs',
|
|
98
|
-
variants: ['outline'],
|
|
99
|
-
},
|
|
100
|
-
placeholder: {
|
|
101
|
-
// <tw-keep strokeColor="gray-300" />
|
|
102
|
-
color: 'gray-300',
|
|
103
|
-
use: 'Placeholder',
|
|
104
|
-
variants: ['solid'],
|
|
105
|
-
},
|
|
106
|
-
cancelled: {
|
|
107
|
-
// <tw-keep strokeColor="gray-300" />
|
|
108
|
-
color: 'gray-300',
|
|
109
|
-
use: 'Runs, specs, groups, test results',
|
|
110
|
-
variants: ['outline', 'solid'],
|
|
111
|
-
},
|
|
112
|
-
noTests: {
|
|
113
|
-
// <tw-keep strokeColor="orange-400" />
|
|
114
|
-
color: 'orange-400',
|
|
115
|
-
use: 'Runs, specs, groups',
|
|
116
|
-
variants: ['outline', 'solid'],
|
|
117
|
-
},
|
|
118
|
-
errored: {
|
|
119
|
-
// <tw-keep strokeColor="orange-400" />
|
|
120
|
-
color: 'orange-400',
|
|
121
|
-
use: 'Runs, specs, groups, test results',
|
|
122
|
-
variants: ['outline', 'solid'],
|
|
123
|
-
},
|
|
124
|
-
timedOut: {
|
|
125
|
-
// <tw-keep strokeColor="orange-400" />
|
|
126
|
-
color: 'orange-400',
|
|
127
|
-
use: 'Runs, specs, groups, test results',
|
|
128
|
-
variants: ['outline', 'solid'],
|
|
129
|
-
},
|
|
130
|
-
overLimit: {
|
|
131
|
-
// <tw-keep strokeColor="orange-400" />
|
|
132
|
-
color: 'orange-400',
|
|
133
|
-
use: 'Runs, specs, groups',
|
|
134
|
-
link: 'https://docs.cypress.io/faq/questions/dashboard-faq#What-happens-once-I-reach-the-test-results-limit',
|
|
135
|
-
variants: ['outline', 'solid'],
|
|
136
|
-
},
|
|
137
|
-
skipped: {
|
|
138
|
-
// <tw-keep strokeColor="gray-400" />
|
|
139
|
-
color: 'gray-400',
|
|
140
|
-
use: 'Test results',
|
|
141
|
-
link: 'https://docs.cypress.io/guides/core-concepts/writing-and-organizing-tests#Skipped',
|
|
142
|
-
variants: ['outline'],
|
|
143
|
-
},
|
|
144
|
-
pending: {
|
|
145
|
-
// <tw-keep strokeColor="gray-300" />
|
|
146
|
-
color: 'gray-300',
|
|
147
|
-
use: 'Test results',
|
|
148
|
-
link: 'https://docs.cypress.io/guides/core-concepts/writing-and-organizing-tests#Pending',
|
|
149
|
-
variants: ['outline'],
|
|
150
|
-
},
|
|
151
|
-
};
|
|
152
|
-
/**
|
|
153
|
-
* The status we have here, allow us to check the validity of the constant
|
|
154
|
-
*/
|
|
155
|
-
const statuses$3 = constStatuses;
|
|
156
|
-
|
|
157
|
-
const statuses$2 = {
|
|
158
|
-
running: {
|
|
159
|
-
size4Icon: cyStatusRunningSimpleX4,
|
|
160
|
-
size8Icon: cyStatusRunningSimpleX8,
|
|
161
|
-
size12Icon: cyStatusRunningOutlineX12,
|
|
162
|
-
size16Icon: cyStatusRunningOutlineX16,
|
|
163
|
-
size24Icon: cyStatusRunningOutlineX24,
|
|
164
|
-
},
|
|
165
|
-
failing: {
|
|
166
|
-
size4Icon: cyStatusRunningSimpleX4,
|
|
167
|
-
size8Icon: cyStatusRunningSimpleX8,
|
|
168
|
-
size12Icon: cyStatusRunningOutlineX12,
|
|
169
|
-
size16Icon: cyStatusFailingOutlineX16,
|
|
170
|
-
size24Icon: cyStatusFailingOutlineX24,
|
|
171
|
-
},
|
|
172
|
-
passed: {
|
|
173
|
-
size4Icon: cyStatusPassedSimpleX4,
|
|
174
|
-
size8Icon: cyStatusPassedSimpleX8,
|
|
175
|
-
size12Icon: cyStatusPassedSimpleX12,
|
|
176
|
-
size16Icon: cyStatusPassedOutlineX16,
|
|
177
|
-
size24Icon: cyStatusPassedOutlineX24,
|
|
178
|
-
},
|
|
179
|
-
failed: {
|
|
180
|
-
size4Icon: cyStatusFailedSimpleX4,
|
|
181
|
-
size8Icon: cyStatusFailedSimpleX8,
|
|
182
|
-
size12Icon: cyStatusFailedSimpleX12,
|
|
183
|
-
size16Icon: cyStatusFailedOutlineX16,
|
|
184
|
-
size24Icon: cyStatusFailedOutlineX24,
|
|
185
|
-
},
|
|
186
|
-
unclaimed: {
|
|
187
|
-
size4Icon: cyStatusQueuedSimpleX4,
|
|
188
|
-
size8Icon: cyStatusQueuedSimpleX8,
|
|
189
|
-
size12Icon: cyStatusQueuedOutlineX12,
|
|
190
|
-
size16Icon: cyStatusQueuedOutlineX16,
|
|
191
|
-
size24Icon: cyStatusQueuedOutlineX24,
|
|
192
|
-
},
|
|
193
|
-
placeholder: {
|
|
194
|
-
size4Icon: cyStatusPlaceholderSimpleX4,
|
|
195
|
-
size8Icon: cyStatusPlaceholderSimpleX8,
|
|
196
|
-
size12Icon: cyStatusPlaceholderSolidX12,
|
|
197
|
-
size16Icon: cyStatusPlaceholderSolidX16,
|
|
198
|
-
size24Icon: cyStatusPlaceholderSolidX24,
|
|
199
|
-
},
|
|
200
|
-
cancelled: {
|
|
201
|
-
size4Icon: cyStatusCancelledSimpleX4,
|
|
202
|
-
size8Icon: cyStatusCancelledSimpleX8,
|
|
203
|
-
size12Icon: cyStatusCancelledSolidX12,
|
|
204
|
-
size16Icon: cyStatusCancelledOutlineX16,
|
|
205
|
-
size24Icon: cyStatusCancelledOutlineX24,
|
|
206
|
-
},
|
|
207
|
-
noTests: {
|
|
208
|
-
size4Icon: cyStatusErroredSimpleX4,
|
|
209
|
-
size8Icon: cyStatusErroredSimpleX8,
|
|
210
|
-
size12Icon: cyStatusErroredSolidX12,
|
|
211
|
-
size16Icon: cyStatusErroredOutlineX16,
|
|
212
|
-
size24Icon: cyStatusErroredOutlineX24,
|
|
213
|
-
},
|
|
214
|
-
errored: {
|
|
215
|
-
size4Icon: cyStatusErroredSimpleX4,
|
|
216
|
-
size8Icon: cyStatusErroredSimpleX8,
|
|
217
|
-
size12Icon: cyStatusErroredSolidX12,
|
|
218
|
-
size16Icon: cyStatusErroredOutlineX16,
|
|
219
|
-
size24Icon: cyStatusErroredOutlineX24,
|
|
220
|
-
},
|
|
221
|
-
timedOut: {
|
|
222
|
-
size4Icon: cyStatusErroredSimpleX4,
|
|
223
|
-
size8Icon: cyStatusErroredSimpleX8,
|
|
224
|
-
size12Icon: cyStatusErroredSolidX12,
|
|
225
|
-
size16Icon: cyStatusErroredOutlineX16,
|
|
226
|
-
size24Icon: cyStatusErroredOutlineX24,
|
|
227
|
-
},
|
|
228
|
-
overLimit: {
|
|
229
|
-
size4Icon: cyStatusErroredSimpleX4,
|
|
230
|
-
size8Icon: cyStatusErroredSimpleX8,
|
|
231
|
-
size12Icon: cyStatusErroredSolidX12,
|
|
232
|
-
size16Icon: cyStatusErroredOutlineX16,
|
|
233
|
-
size24Icon: cyStatusErroredOutlineX24,
|
|
234
|
-
},
|
|
235
|
-
skipped: {
|
|
236
|
-
size4Icon: cyStatusSkippedSimpleX4,
|
|
237
|
-
size8Icon: cyStatusSkippedSimpleX8,
|
|
238
|
-
size12Icon: cyStatusSkippedOutlineX12,
|
|
239
|
-
size16Icon: cyStatusSkippedOutlineX16,
|
|
240
|
-
size24Icon: cyStatusSkippedOutlineX24,
|
|
241
|
-
},
|
|
242
|
-
pending: {
|
|
243
|
-
size4Icon: cyStatusPendingSimpleX4,
|
|
244
|
-
size8Icon: cyStatusPendingSimpleX8,
|
|
245
|
-
size12Icon: cyStatusPendingOutlineX12,
|
|
246
|
-
size16Icon: cyStatusPendingOutlineX16,
|
|
247
|
-
size24Icon: cyStatusPendingOutlineX24,
|
|
248
|
-
},
|
|
249
|
-
};
|
|
250
|
-
|
|
251
|
-
const statuses$1 = {
|
|
252
|
-
running: {
|
|
253
|
-
size4Icon: cyStatusRunningSimpleX4,
|
|
254
|
-
size8Icon: cyStatusRunningSimpleX8,
|
|
255
|
-
size12Icon: cyStatusRunningOutlineX12,
|
|
256
|
-
size16Icon: cyStatusRunningOutlineX16,
|
|
257
|
-
size24Icon: cyStatusRunningOutlineX24,
|
|
258
|
-
},
|
|
259
|
-
failing: {
|
|
260
|
-
size4Icon: cyStatusRunningSimpleX4,
|
|
261
|
-
size8Icon: cyStatusRunningSimpleX8,
|
|
262
|
-
size12Icon: cyStatusRunningOutlineX12,
|
|
263
|
-
size16Icon: cyStatusFailingOutlineX16,
|
|
264
|
-
size24Icon: cyStatusFailingOutlineX24,
|
|
265
|
-
},
|
|
266
|
-
passed: {
|
|
267
|
-
size4Icon: cyStatusPassedSimpleX4,
|
|
268
|
-
size8Icon: cyStatusPassedSimpleX8,
|
|
269
|
-
size12Icon: cyStatusPassedSimpleX12,
|
|
270
|
-
size16Icon: cyStatusPassedSimpleX16,
|
|
271
|
-
size24Icon: cyStatusPassedSimpleX24,
|
|
272
|
-
},
|
|
273
|
-
failed: {
|
|
274
|
-
size4Icon: cyStatusFailedSimpleX4,
|
|
275
|
-
size8Icon: cyStatusFailedSimpleX8,
|
|
276
|
-
size12Icon: cyStatusFailedSimpleX12,
|
|
277
|
-
size16Icon: cyStatusFailedSimpleX16,
|
|
278
|
-
size24Icon: cyStatusFailedSimpleX24,
|
|
279
|
-
},
|
|
280
|
-
unclaimed: {
|
|
281
|
-
size4Icon: cyStatusQueuedSimpleX4,
|
|
282
|
-
size8Icon: cyStatusQueuedSimpleX8,
|
|
283
|
-
size12Icon: cyStatusQueuedOutlineX12,
|
|
284
|
-
size16Icon: cyStatusQueuedOutlineX16,
|
|
285
|
-
size24Icon: cyStatusQueuedOutlineX24,
|
|
286
|
-
},
|
|
287
|
-
placeholder: {
|
|
288
|
-
size4Icon: cyStatusPlaceholderSimpleX4,
|
|
289
|
-
size8Icon: cyStatusPlaceholderSimpleX8,
|
|
290
|
-
size12Icon: cyStatusPlaceholderSolidX12,
|
|
291
|
-
size16Icon: cyStatusPlaceholderSolidX16,
|
|
292
|
-
size24Icon: cyStatusPlaceholderSolidX24,
|
|
293
|
-
},
|
|
294
|
-
cancelled: {
|
|
295
|
-
size4Icon: cyStatusCancelledSimpleX4,
|
|
296
|
-
size8Icon: cyStatusCancelledSimpleX8,
|
|
297
|
-
size12Icon: cyStatusCancelledSolidX12,
|
|
298
|
-
size16Icon: cyStatusCancelledSolidX16,
|
|
299
|
-
size24Icon: cyStatusCancelledSolidX24,
|
|
300
|
-
},
|
|
301
|
-
noTests: {
|
|
302
|
-
size4Icon: cyStatusErroredSimpleX4,
|
|
303
|
-
size8Icon: cyStatusErroredSimpleX8,
|
|
304
|
-
size12Icon: cyStatusErroredSolidX12,
|
|
305
|
-
size16Icon: cyStatusErroredSolidX16,
|
|
306
|
-
size24Icon: cyStatusErroredSolidX24,
|
|
307
|
-
},
|
|
308
|
-
errored: {
|
|
309
|
-
size4Icon: cyStatusErroredSimpleX4,
|
|
310
|
-
size8Icon: cyStatusErroredSimpleX8,
|
|
311
|
-
size12Icon: cyStatusErroredSolidX12,
|
|
312
|
-
size16Icon: cyStatusErroredSolidX16,
|
|
313
|
-
size24Icon: cyStatusErroredSolidX24,
|
|
314
|
-
},
|
|
315
|
-
timedOut: {
|
|
316
|
-
size4Icon: cyStatusErroredSimpleX4,
|
|
317
|
-
size8Icon: cyStatusErroredSimpleX8,
|
|
318
|
-
size12Icon: cyStatusErroredSolidX12,
|
|
319
|
-
size16Icon: cyStatusErroredSolidX16,
|
|
320
|
-
size24Icon: cyStatusErroredSolidX24,
|
|
321
|
-
},
|
|
322
|
-
overLimit: {
|
|
323
|
-
size4Icon: cyStatusErroredSimpleX4,
|
|
324
|
-
size8Icon: cyStatusErroredSimpleX8,
|
|
325
|
-
size12Icon: cyStatusErroredSolidX12,
|
|
326
|
-
size16Icon: cyStatusErroredSolidX16,
|
|
327
|
-
size24Icon: cyStatusErroredSolidX24,
|
|
328
|
-
},
|
|
329
|
-
skipped: {
|
|
330
|
-
size4Icon: cyStatusSkippedSimpleX4,
|
|
331
|
-
size8Icon: cyStatusSkippedSimpleX8,
|
|
332
|
-
size12Icon: cyStatusSkippedOutlineX12,
|
|
333
|
-
size16Icon: cyStatusSkippedOutlineX16,
|
|
334
|
-
size24Icon: cyStatusSkippedOutlineX24,
|
|
335
|
-
},
|
|
336
|
-
pending: {
|
|
337
|
-
size4Icon: cyStatusPendingSimpleX4,
|
|
338
|
-
size8Icon: cyStatusPendingSimpleX8,
|
|
339
|
-
size12Icon: cyStatusPendingOutlineX12,
|
|
340
|
-
size16Icon: cyStatusPendingOutlineX16,
|
|
341
|
-
size24Icon: cyStatusPendingOutlineX24,
|
|
342
|
-
},
|
|
343
|
-
};
|
|
344
|
-
|
|
345
|
-
const statuses = {
|
|
346
|
-
running: {
|
|
347
|
-
size4Icon: cyStatusRunningSimpleX4,
|
|
348
|
-
size8Icon: cyStatusRunningSimpleX8,
|
|
349
|
-
size12Icon: cyStatusRunningOutlineX12,
|
|
350
|
-
size16Icon: cyStatusRunningOutlineX16,
|
|
351
|
-
size24Icon: cyStatusRunningOutlineX24,
|
|
352
|
-
},
|
|
353
|
-
failing: {
|
|
354
|
-
size4Icon: cyStatusRunningSimpleX4,
|
|
355
|
-
size8Icon: cyStatusRunningSimpleX8,
|
|
356
|
-
size12Icon: cyStatusRunningOutlineX12,
|
|
357
|
-
size16Icon: cyStatusFailingOutlineX16,
|
|
358
|
-
size24Icon: cyStatusFailingOutlineX24,
|
|
359
|
-
},
|
|
360
|
-
passed: {
|
|
361
|
-
size4Icon: cyStatusPassedSimpleX4,
|
|
362
|
-
size8Icon: cyStatusPassedSimpleX8,
|
|
363
|
-
size12Icon: cyStatusPassedSimpleX12,
|
|
364
|
-
size16Icon: cyStatusPassedSolidX16,
|
|
365
|
-
size24Icon: cyStatusPassedSolidX24,
|
|
366
|
-
},
|
|
367
|
-
failed: {
|
|
368
|
-
size4Icon: cyStatusFailedSimpleX4,
|
|
369
|
-
size8Icon: cyStatusFailedSimpleX8,
|
|
370
|
-
size12Icon: cyStatusFailedSimpleX12,
|
|
371
|
-
size16Icon: cyStatusFailedSolidX16,
|
|
372
|
-
size24Icon: cyStatusFailedSolidX24,
|
|
373
|
-
},
|
|
374
|
-
unclaimed: {
|
|
375
|
-
size4Icon: cyStatusQueuedSimpleX4,
|
|
376
|
-
size8Icon: cyStatusQueuedSimpleX8,
|
|
377
|
-
size12Icon: cyStatusQueuedOutlineX12,
|
|
378
|
-
size16Icon: cyStatusQueuedOutlineX16,
|
|
379
|
-
size24Icon: cyStatusQueuedOutlineX24,
|
|
380
|
-
},
|
|
381
|
-
placeholder: {
|
|
382
|
-
size4Icon: cyStatusPlaceholderSimpleX4,
|
|
383
|
-
size8Icon: cyStatusPlaceholderSimpleX8,
|
|
384
|
-
size12Icon: cyStatusPlaceholderSolidX12,
|
|
385
|
-
size16Icon: cyStatusPlaceholderSolidX16,
|
|
386
|
-
size24Icon: cyStatusPlaceholderSolidX24,
|
|
387
|
-
},
|
|
388
|
-
cancelled: {
|
|
389
|
-
size4Icon: cyStatusCancelledSimpleX4,
|
|
390
|
-
size8Icon: cyStatusCancelledSimpleX8,
|
|
391
|
-
size12Icon: cyStatusCancelledSolidX12,
|
|
392
|
-
size16Icon: cyStatusCancelledSolidX16,
|
|
393
|
-
size24Icon: cyStatusCancelledSolidX24,
|
|
394
|
-
},
|
|
395
|
-
noTests: {
|
|
396
|
-
size4Icon: cyStatusErroredSimpleX4,
|
|
397
|
-
size8Icon: cyStatusErroredSimpleX8,
|
|
398
|
-
size12Icon: cyStatusErroredSolidX12,
|
|
399
|
-
size16Icon: cyStatusErroredSolidX16,
|
|
400
|
-
size24Icon: cyStatusErroredSolidX24,
|
|
401
|
-
},
|
|
402
|
-
errored: {
|
|
403
|
-
size4Icon: cyStatusErroredSimpleX4,
|
|
404
|
-
size8Icon: cyStatusErroredSimpleX8,
|
|
405
|
-
size12Icon: cyStatusErroredSolidX12,
|
|
406
|
-
size16Icon: cyStatusErroredSolidX16,
|
|
407
|
-
size24Icon: cyStatusErroredSolidX24,
|
|
408
|
-
},
|
|
409
|
-
timedOut: {
|
|
410
|
-
size4Icon: cyStatusErroredSimpleX4,
|
|
411
|
-
size8Icon: cyStatusErroredSimpleX8,
|
|
412
|
-
size12Icon: cyStatusErroredSolidX12,
|
|
413
|
-
size16Icon: cyStatusErroredSolidX16,
|
|
414
|
-
size24Icon: cyStatusErroredSolidX24,
|
|
415
|
-
},
|
|
416
|
-
overLimit: {
|
|
417
|
-
size4Icon: cyStatusErroredSimpleX4,
|
|
418
|
-
size8Icon: cyStatusErroredSimpleX8,
|
|
419
|
-
size12Icon: cyStatusErroredSolidX12,
|
|
420
|
-
size16Icon: cyStatusErroredSolidX16,
|
|
421
|
-
size24Icon: cyStatusErroredSolidX24,
|
|
422
|
-
},
|
|
423
|
-
skipped: {
|
|
424
|
-
size4Icon: cyStatusSkippedSimpleX4,
|
|
425
|
-
size8Icon: cyStatusSkippedSimpleX8,
|
|
426
|
-
size12Icon: cyStatusSkippedOutlineX12,
|
|
427
|
-
size16Icon: cyStatusSkippedOutlineX16,
|
|
428
|
-
size24Icon: cyStatusSkippedOutlineX24,
|
|
429
|
-
},
|
|
430
|
-
pending: {
|
|
431
|
-
size4Icon: cyStatusPendingSimpleX4,
|
|
432
|
-
size8Icon: cyStatusPendingSimpleX8,
|
|
433
|
-
size12Icon: cyStatusPendingOutlineX12,
|
|
434
|
-
size16Icon: cyStatusPendingOutlineX16,
|
|
435
|
-
size24Icon: cyStatusPendingOutlineX24,
|
|
436
|
-
},
|
|
437
|
-
};
|
|
438
|
-
|
|
439
|
-
/******************************************************************************
|
|
440
|
-
Copyright (c) Microsoft Corporation.
|
|
441
|
-
|
|
442
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
443
|
-
purpose with or without fee is hereby granted.
|
|
444
|
-
|
|
445
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
446
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
447
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
448
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
449
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
450
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
451
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
452
|
-
***************************************************************************** */
|
|
453
|
-
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
var __assign = function() {
|
|
457
|
-
__assign = Object.assign || function __assign(t) {
|
|
458
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
459
|
-
s = arguments[i];
|
|
460
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
461
|
-
}
|
|
462
|
-
return t;
|
|
463
|
-
};
|
|
464
|
-
return __assign.apply(this, arguments);
|
|
465
|
-
};
|
|
466
|
-
|
|
467
|
-
function __rest(s, e) {
|
|
468
|
-
var t = {};
|
|
469
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
470
|
-
t[p] = s[p];
|
|
471
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
472
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
473
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
474
|
-
t[p[i]] = s[p[i]];
|
|
475
|
-
}
|
|
476
|
-
return t;
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
480
|
-
var e = new Error(message);
|
|
481
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
482
|
-
};
|
|
483
|
-
|
|
484
|
-
var compileReactIconProperties = function (_a) {
|
|
485
|
-
var body = _a.body, defs = _a.defs, compiledClasses = _a.compiledClasses, size = _a.size, name = _a.name, alt = _a.alt, attributes = __rest(_a, ["body", "defs", "compiledClasses", "size", "name", "alt"]);
|
|
486
|
-
var filteredAttributes = Object.keys(attributes).reduce(function (newAttributes, attrName) {
|
|
487
|
-
if (!ICON_COLOR_PROP_NAMES.includes(attrName) &&
|
|
488
|
-
attrName !== 'name') {
|
|
489
|
-
// @ts-expect-error the ky of React's SVGProps is too broad and
|
|
490
|
-
// breaks here. Since we do not need to check for it. We keep the expect error
|
|
491
|
-
newAttributes[attrName] =
|
|
492
|
-
attributes[attrName];
|
|
493
|
-
}
|
|
494
|
-
return newAttributes;
|
|
495
|
-
}, {});
|
|
496
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
497
|
-
React.useEffect(function () {
|
|
498
|
-
var iconFileId = "".concat(name, "_").concat(size);
|
|
499
|
-
if (defs) {
|
|
500
|
-
if (document.querySelector("[data-cy-svg-defs=\"".concat(iconFileId, "\"]"))) {
|
|
501
|
-
return;
|
|
502
|
-
}
|
|
503
|
-
var svgElement = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
|
|
504
|
-
svgElement.setAttribute('data-cy-svg-defs', iconFileId);
|
|
505
|
-
svgElement.setAttribute('width', '0');
|
|
506
|
-
svgElement.setAttribute('height', '0');
|
|
507
|
-
svgElement.innerHTML = defs;
|
|
508
|
-
document.body.appendChild(svgElement);
|
|
509
|
-
}
|
|
510
|
-
}, [defs, name, size]);
|
|
511
|
-
var componentProps = __assign({ width: size, height: size, viewBox: "0 0 ".concat(size, " ").concat(size), fill: 'none', dangerouslySetInnerHTML: {
|
|
512
|
-
__html: alt
|
|
513
|
-
? "<title>".concat(alt.replace(/[><]/g, function (s) {
|
|
514
|
-
return s === '>' ? '>' : '<';
|
|
515
|
-
}), "</title>").concat(body)
|
|
516
|
-
: body,
|
|
517
|
-
}, className: undefined }, filteredAttributes);
|
|
518
|
-
if (attributes.className) {
|
|
519
|
-
compiledClasses.push(attributes.className);
|
|
520
|
-
}
|
|
521
|
-
if (compiledClasses.length) {
|
|
522
|
-
componentProps.className = compiledClasses.join(' ');
|
|
523
|
-
}
|
|
524
|
-
return componentProps;
|
|
525
|
-
};
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
/* <wind-keep class="filter icon-light-secondary icon-dark-secondary"> */
|
|
529
|
-
|
|
530
61
|
var compileProps = function (_a) {
|
|
531
|
-
var status = _a.status, statuses = _a.statuses, className = _a.className, size = _a.size, variantName = _a.variantName;
|
|
532
|
-
var statusInfo = status ? statuses[status] : statuses.placeholder;
|
|
533
|
-
var iconInfo = status ? statuses
|
|
62
|
+
var status = _a.status, statuses$1 = _a.statuses, className = _a.className, size = _a.size, variantName = _a.variantName;
|
|
63
|
+
var statusInfo = status ? statuses$1[status] : statuses$1.placeholder;
|
|
64
|
+
var iconInfo = status ? statuses[status] : statuses.placeholder;
|
|
534
65
|
var iconData = statusInfo["size".concat(size, "Icon")].data;
|
|
535
66
|
var classes = "inline-block ".concat(className || '');
|
|
536
67
|
var compiledClasses = getComponentAttributes({
|
|
@@ -548,10 +79,10 @@ var compileProps = function (_a) {
|
|
|
548
79
|
};
|
|
549
80
|
|
|
550
81
|
var OutlineStatusIcon = function (_a) {
|
|
551
|
-
var _b = _a.size, size = _b === void 0 ? '24' : _b, _c = _a.status, status = _c === void 0 ? 'placeholder' : _c, rest = __rest
|
|
552
|
-
return React.createElement('svg', __assign
|
|
82
|
+
var _b = _a.size, size = _b === void 0 ? '24' : _b, _c = _a.status, status = _c === void 0 ? 'placeholder' : _c, rest = __rest(_a, ["size", "status"]);
|
|
83
|
+
return React.createElement('svg', __assign(__assign({}, rest), compileProps({
|
|
553
84
|
status: status,
|
|
554
|
-
statuses: statuses
|
|
85
|
+
statuses: outline.statuses,
|
|
555
86
|
className: rest.className,
|
|
556
87
|
size: size,
|
|
557
88
|
variantName: 'outline',
|
|
@@ -559,10 +90,10 @@ var OutlineStatusIcon = function (_a) {
|
|
|
559
90
|
};
|
|
560
91
|
|
|
561
92
|
var SimpleStatusIcon = function (_a) {
|
|
562
|
-
var _b = _a.size, size = _b === void 0 ? '24' : _b, _c = _a.status, status = _c === void 0 ? 'placeholder' : _c, rest = __rest
|
|
563
|
-
return React.createElement('svg', __assign
|
|
93
|
+
var _b = _a.size, size = _b === void 0 ? '24' : _b, _c = _a.status, status = _c === void 0 ? 'placeholder' : _c, rest = __rest(_a, ["size", "status"]);
|
|
94
|
+
return React.createElement('svg', __assign(__assign({}, rest), compileProps({
|
|
564
95
|
status: status,
|
|
565
|
-
statuses: statuses
|
|
96
|
+
statuses: simple.statuses,
|
|
566
97
|
className: rest.className,
|
|
567
98
|
size: size,
|
|
568
99
|
variantName: 'simple',
|
|
@@ -570,10 +101,10 @@ var SimpleStatusIcon = function (_a) {
|
|
|
570
101
|
};
|
|
571
102
|
|
|
572
103
|
var SolidStatusIcon = function (_a) {
|
|
573
|
-
var _b = _a.size, size = _b === void 0 ? '24' : _b, _c = _a.status, status = _c === void 0 ? 'placeholder' : _c, rest = __rest
|
|
574
|
-
return React.createElement('svg', __assign
|
|
104
|
+
var _b = _a.size, size = _b === void 0 ? '24' : _b, _c = _a.status, status = _c === void 0 ? 'placeholder' : _c, rest = __rest(_a, ["size", "status"]);
|
|
105
|
+
return React.createElement('svg', __assign(__assign({}, rest), compileProps({
|
|
575
106
|
status: status,
|
|
576
|
-
statuses: statuses,
|
|
107
|
+
statuses: solid.statuses,
|
|
577
108
|
className: rest.className,
|
|
578
109
|
size: size,
|
|
579
110
|
variantName: 'solid',
|
|
@@ -581,17 +112,17 @@ var SolidStatusIcon = function (_a) {
|
|
|
581
112
|
};
|
|
582
113
|
|
|
583
114
|
var StatusIcon = function (_a) {
|
|
584
|
-
var _b = _a.size, size = _b === void 0 ? '24' : _b, status = _a.status, _c = _a.variant, variant = _c === void 0 ? 'simple' : _c, rest = __rest
|
|
115
|
+
var _b = _a.size, size = _b === void 0 ? '24' : _b, status = _a.status, _c = _a.variant, variant = _c === void 0 ? 'simple' : _c, rest = __rest(_a, ["size", "status", "variant"]);
|
|
585
116
|
if (variant === 'outline') {
|
|
586
|
-
return React.createElement(OutlineStatusIcon, __assign
|
|
117
|
+
return React.createElement(OutlineStatusIcon, __assign({ size: size, status: status }, rest));
|
|
587
118
|
}
|
|
588
119
|
if (variant === 'simple') {
|
|
589
|
-
return React.createElement(SimpleStatusIcon, __assign
|
|
120
|
+
return React.createElement(SimpleStatusIcon, __assign({ size: size, status: status }, rest));
|
|
590
121
|
}
|
|
591
|
-
return React.createElement(SolidStatusIcon, __assign
|
|
122
|
+
return React.createElement(SolidStatusIcon, __assign({ size: size, status: status }, rest));
|
|
592
123
|
};
|
|
593
124
|
|
|
594
125
|
export { OutlineStatusIcon, SimpleStatusIcon, SolidStatusIcon, StatusIcon as default };
|
|
595
126
|
//# sourceMappingURL=index.es.mjs.map
|
|
596
127
|
|
|
597
|
-
/* <wind-keep class="outline inline-block
|
|
128
|
+
/* <wind-keep class="outline inline-block"> */
|