@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/CHANGELOG.md +38 -0
- package/Icon.stories.mdx +32 -2
- package/Icon.tsx +8 -8
- package/ReadMe.md +44 -1
- package/dist/Icon.d.ts +2 -5
- package/dist/Icon.d.ts.map +1 -1
- package/dist/index.es.js +7 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +7 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
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.
|
|
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);
|