@cypress-design/react-statusicon 0.4.7 → 0.4.9

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/dist/index.umd.js CHANGED
@@ -39,7 +39,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
39
39
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
40
40
  PERFORMANCE OF THIS SOFTWARE.
41
41
  ***************************************************************************** */
42
- /* global Reflect, Promise */
42
+ /* global Reflect, Promise, SuppressedError, Symbol */
43
43
 
44
44
 
45
45
  var __assign$1 = function() {
@@ -73,7 +73,12 @@ function __spreadArray(to, from, pack) {
73
73
  }
74
74
  }
75
75
  return to.concat(ar || Array.prototype.slice.call(from));
76
- }
76
+ }
77
+
78
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
79
+ var e = new Error(message);
80
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
81
+ };
77
82
 
78
83
  /**
79
84
  * This "const" is used to create the list of statuses
@@ -439,7 +444,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
439
444
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
440
445
  PERFORMANCE OF THIS SOFTWARE.
441
446
  ***************************************************************************** */
442
- /* global Reflect, Promise */
447
+ /* global Reflect, Promise, SuppressedError, Symbol */
443
448
 
444
449
 
445
450
  var __assign = function() {
@@ -463,7 +468,12 @@ function __rest(s, e) {
463
468
  t[p[i]] = s[p[i]];
464
469
  }
465
470
  return t;
466
- }
471
+ }
472
+
473
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
474
+ var e = new Error(message);
475
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
476
+ };
467
477
 
468
478
  var compileReactIconProperties = function (_a) {
469
479
  var body = _a.body, defs = _a.defs, compiledClasses = _a.compiledClasses, size = _a.size, name = _a.name, attributes = __rest(_a, ["body", "defs", "compiledClasses", "size", "name"]);
@@ -477,6 +487,7 @@ var compileReactIconProperties = function (_a) {
477
487
  }
478
488
  return newAttributes;
479
489
  }, {});
490
+ // eslint-disable-next-line react-hooks/rules-of-hooks
480
491
  React__namespace.useEffect(function () {
481
492
  var iconFileId = "".concat(name, "_").concat(size);
482
493
  if (defs) {
@@ -490,7 +501,7 @@ var compileReactIconProperties = function (_a) {
490
501
  svgElement.innerHTML = defs;
491
502
  document.body.appendChild(svgElement);
492
503
  }
493
- }, [defs]);
504
+ }, [defs, name, size]);
494
505
  var componentProps = __assign({ width: size, height: size, viewBox: "0 0 ".concat(size, " ").concat(size), fill: 'none', dangerouslySetInnerHTML: {
495
506
  __html: body,
496
507
  }, className: undefined }, filteredAttributes);
@@ -504,7 +515,7 @@ var compileReactIconProperties = function (_a) {
504
515
  };
505
516
 
506
517
 
507
- /* <wind-keep class="filter"> */
518
+ /* <wind-keep class="filter icon-light-secondary icon-dark-secondary"> */
508
519
 
509
520
  var compileProps = function (_a) {
510
521
  var status = _a.status, statuses = _a.statuses, className = _a.className, size = _a.size, variantName = _a.variantName;
@@ -576,4 +587,4 @@ exports.SolidStatusIcon = SolidStatusIcon;
576
587
  exports.default = StatusIcon;
577
588
  //# sourceMappingURL=index.umd.js.map
578
589
 
579
- /* <wind-keep class="outline inline-block"> */
590
+ /* <wind-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"> */