@cypress-design/react-icon 0.2.1 → 0.3.0

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
@@ -68,7 +68,13 @@ var Icon = function (props) {
68
68
  return React__namespace.createElement('svg', compileReactIconProperties$1(iconsRegistry.compileIcon(props)));
69
69
  };
70
70
  var compileReactIconProperties$1 = function (_a) {
71
- var body = _a.body, compiledClasses = _a.compiledClasses, size = _a.size; _a.strokeColor; _a.fillColor; _a.secondaryStrokeColor; _a.secondaryFillColor; var attributes = __rest(_a, ["body", "compiledClasses", "size", "strokeColor", "fillColor", "secondaryStrokeColor", "secondaryFillColor"]);
71
+ var body = _a.body, compiledClasses = _a.compiledClasses, size = _a.size; _a.interactiveColorsOnGroup; var attributes = __rest(_a, ["body", "compiledClasses", "size", "interactiveColorsOnGroup"]);
72
+ Object.keys(attributes).forEach(function (key) {
73
+ if (key.endsWith('Color')) {
74
+ // @ts-ignore
75
+ delete attributes[key];
76
+ }
77
+ });
72
78
  var componentProps = __assign({ width: size, height: size, fill: 'none', dangerouslySetInnerHTML: {
73
79
  __html: body
74
80
  } }, attributes);