@cypress-design/react-statusicon 0.0.10 → 0.1.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/CHANGELOG.md +20 -0
- package/OutlineStatusIcon.ts +5 -5
- package/SimpleStatusIcon.ts +5 -5
- package/SolidStatusIcon.ts +5 -5
- package/StatusIcon.rootstory.tsx +3 -5
- package/StatusIconReact.cy.tsx +0 -18
- package/compileProps.ts +1 -3
- package/dist/constants.d.ts +1 -3
- package/dist/constants.d.ts.map +1 -1
- package/dist/index.es.mjs +26 -27
- package/dist/index.es.mjs.map +1 -1
- package/dist/index.umd.js +26 -27
- package/dist/index.umd.js.map +1 -1
- package/dist/react/compileProps.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/index.umd.js
CHANGED
|
@@ -117,11 +117,11 @@ var statuses$3 = {
|
|
|
117
117
|
size24Icon: iconsRegistry.cyStatusCancelledOutlineX24
|
|
118
118
|
},
|
|
119
119
|
noTests: {
|
|
120
|
-
size4Icon: iconsRegistry.
|
|
121
|
-
size8Icon: iconsRegistry.
|
|
122
|
-
size12Icon: iconsRegistry.
|
|
123
|
-
size16Icon: iconsRegistry.
|
|
124
|
-
size24Icon: iconsRegistry.
|
|
120
|
+
size4Icon: iconsRegistry.cyStatusErroredSimpleX4,
|
|
121
|
+
size8Icon: iconsRegistry.cyStatusErroredSimpleX8,
|
|
122
|
+
size12Icon: iconsRegistry.cyStatusErroredSolidX12,
|
|
123
|
+
size16Icon: iconsRegistry.cyStatusErroredOutlineX16,
|
|
124
|
+
size24Icon: iconsRegistry.cyStatusErroredOutlineX24
|
|
125
125
|
},
|
|
126
126
|
errored: {
|
|
127
127
|
size4Icon: iconsRegistry.cyStatusErroredSimpleX4,
|
|
@@ -170,8 +170,7 @@ var constStatuses = {
|
|
|
170
170
|
use: 'Runs, specs, groups, test results',
|
|
171
171
|
variants: ['outline'],
|
|
172
172
|
// <windi-keep fillColor="gray-100" />
|
|
173
|
-
secondaryColor: 'gray-100'
|
|
174
|
-
shouldSpin: true
|
|
173
|
+
secondaryColor: 'gray-100'
|
|
175
174
|
},
|
|
176
175
|
passed: {
|
|
177
176
|
// <windi-keep strokeColor="jade-400" />
|
|
@@ -206,8 +205,8 @@ var constStatuses = {
|
|
|
206
205
|
variants: ['outline', 'solid']
|
|
207
206
|
},
|
|
208
207
|
noTests: {
|
|
209
|
-
// <windi-keep strokeColor="
|
|
210
|
-
color: '
|
|
208
|
+
// <windi-keep strokeColor="orange-400" />
|
|
209
|
+
color: 'orange-400',
|
|
211
210
|
use: 'Runs, specs, groups',
|
|
212
211
|
variants: ['outline', 'solid']
|
|
213
212
|
},
|
|
@@ -316,7 +315,7 @@ var compileProps = function (_a) {
|
|
|
316
315
|
var statusInfo = status ? statuses[status] : statuses.placeholder;
|
|
317
316
|
var iconInfo = status ? statuses$2[status] : statuses$2.placeholder;
|
|
318
317
|
var _b = statusInfo["size" + size + "Icon"], iconData = _b.data, name = _b.name;
|
|
319
|
-
var classes = "inline-block " + (className || '')
|
|
318
|
+
var classes = "inline-block " + (className || '');
|
|
320
319
|
var compiledClasses = iconsRegistry.getComponentAttributes({
|
|
321
320
|
name: name,
|
|
322
321
|
strokeColor: iconInfo.color,
|
|
@@ -333,12 +332,12 @@ var compileProps = function (_a) {
|
|
|
333
332
|
|
|
334
333
|
var OutlineStatusIcon = function (_a) {
|
|
335
334
|
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"]);
|
|
336
|
-
return React__namespace.createElement('svg', compileProps({
|
|
335
|
+
return React__namespace.createElement('svg', __assign$1(__assign$1({}, rest), compileProps({
|
|
337
336
|
status: status,
|
|
338
337
|
statuses: statuses$3,
|
|
339
338
|
className: rest.className,
|
|
340
339
|
size: size
|
|
341
|
-
}));
|
|
340
|
+
})));
|
|
342
341
|
};
|
|
343
342
|
|
|
344
343
|
var statuses$1 = {
|
|
@@ -385,11 +384,11 @@ var statuses$1 = {
|
|
|
385
384
|
size24Icon: iconsRegistry.cyStatusCancelledSolidX24
|
|
386
385
|
},
|
|
387
386
|
noTests: {
|
|
388
|
-
size4Icon: iconsRegistry.
|
|
389
|
-
size8Icon: iconsRegistry.
|
|
390
|
-
size12Icon: iconsRegistry.
|
|
391
|
-
size16Icon: iconsRegistry.
|
|
392
|
-
size24Icon: iconsRegistry.
|
|
387
|
+
size4Icon: iconsRegistry.cyStatusErroredSimpleX4,
|
|
388
|
+
size8Icon: iconsRegistry.cyStatusErroredSimpleX8,
|
|
389
|
+
size12Icon: iconsRegistry.cyStatusErroredSolidX12,
|
|
390
|
+
size16Icon: iconsRegistry.cyStatusErroredSolidX16,
|
|
391
|
+
size24Icon: iconsRegistry.cyStatusErroredSolidX24
|
|
393
392
|
},
|
|
394
393
|
errored: {
|
|
395
394
|
size4Icon: iconsRegistry.cyStatusErroredSimpleX4,
|
|
@@ -430,12 +429,12 @@ var statuses$1 = {
|
|
|
430
429
|
|
|
431
430
|
var SimpleStatusIcon = function (_a) {
|
|
432
431
|
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"]);
|
|
433
|
-
return React__namespace.createElement('svg', compileProps({
|
|
432
|
+
return React__namespace.createElement('svg', __assign$1(__assign$1({}, rest), compileProps({
|
|
434
433
|
status: status,
|
|
435
434
|
statuses: statuses$1,
|
|
436
435
|
className: rest.className,
|
|
437
436
|
size: size
|
|
438
|
-
}));
|
|
437
|
+
})));
|
|
439
438
|
};
|
|
440
439
|
|
|
441
440
|
var statuses = {
|
|
@@ -482,11 +481,11 @@ var statuses = {
|
|
|
482
481
|
size24Icon: iconsRegistry.cyStatusCancelledSolidX24
|
|
483
482
|
},
|
|
484
483
|
noTests: {
|
|
485
|
-
size4Icon: iconsRegistry.
|
|
486
|
-
size8Icon: iconsRegistry.
|
|
487
|
-
size12Icon: iconsRegistry.
|
|
488
|
-
size16Icon: iconsRegistry.
|
|
489
|
-
size24Icon: iconsRegistry.
|
|
484
|
+
size4Icon: iconsRegistry.cyStatusErroredSimpleX4,
|
|
485
|
+
size8Icon: iconsRegistry.cyStatusErroredSimpleX8,
|
|
486
|
+
size12Icon: iconsRegistry.cyStatusErroredSolidX12,
|
|
487
|
+
size16Icon: iconsRegistry.cyStatusErroredSolidX16,
|
|
488
|
+
size24Icon: iconsRegistry.cyStatusErroredSolidX24
|
|
490
489
|
},
|
|
491
490
|
errored: {
|
|
492
491
|
size4Icon: iconsRegistry.cyStatusErroredSimpleX4,
|
|
@@ -527,12 +526,12 @@ var statuses = {
|
|
|
527
526
|
|
|
528
527
|
var SolidStatusIcon = function (_a) {
|
|
529
528
|
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"]);
|
|
530
|
-
return React__namespace.createElement('svg', compileProps({
|
|
529
|
+
return React__namespace.createElement('svg', __assign$1(__assign$1({}, rest), compileProps({
|
|
531
530
|
status: status,
|
|
532
531
|
statuses: statuses,
|
|
533
532
|
className: rest.className,
|
|
534
533
|
size: size
|
|
535
|
-
}));
|
|
534
|
+
})));
|
|
536
535
|
};
|
|
537
536
|
|
|
538
537
|
var StatusIcon = function (_a) {
|
|
@@ -551,5 +550,5 @@ exports.SimpleStatusIcon = SimpleStatusIcon;
|
|
|
551
550
|
exports.SolidStatusIcon = SolidStatusIcon;
|
|
552
551
|
exports["default"] = StatusIcon;
|
|
553
552
|
|
|
554
|
-
/* <windicss-keep class="outline inline-block
|
|
553
|
+
/* <windicss-keep class="outline inline-block icon-dark-indigo-400 icon-light-gray-100 icon-dark-jade-400 icon-dark-red-400 icon-dark-gray-100 icon-dark-gray-300 icon-dark-orange-400 icon-dark-gray-400"> */
|
|
555
554
|
//# sourceMappingURL=index.umd.js.map
|