@cypress-design/react-icon 0.14.0 → 0.14.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @cypress-design/react-icon
2
2
 
3
+ ## 0.14.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#137](https://github.com/cypress-io/cypress-design/pull/137) [`70cf026`](https://github.com/cypress-io/cypress-design/commit/70cf026b1def90390e8e0573c38656040d6bb168) Thanks [@elevatebart](https://github.com/elevatebart)! - remove name from icon (not html5 valid)
8
+
3
9
  ## 0.14.0
4
10
 
5
11
  ### Minor Changes
@@ -14,7 +14,7 @@ export const compileReactIconProperties = ({
14
14
  React.SVGProps<SVGSVGElement>) => {
15
15
  const filteredAttributes = Object.keys(attributes).reduce(
16
16
  (newAttributes, attrName) => {
17
- if (!ICON_COLOR_PROP_NAMES.includes(attrName)) {
17
+ if (!ICON_COLOR_PROP_NAMES.includes(attrName) && attrName !== 'name') {
18
18
  newAttributes[attrName] =
19
19
  attributes[attrName as keyof typeof attributes]
20
20
  }
package/dist/index.es.mjs CHANGED
@@ -43,7 +43,7 @@ function __rest(s, e) {
43
43
  var compileReactIconProperties = function (_a) {
44
44
  var body = _a.body, compiledClasses = _a.compiledClasses, size = _a.size, attributes = __rest(_a, ["body", "compiledClasses", "size"]);
45
45
  var filteredAttributes = Object.keys(attributes).reduce(function (newAttributes, attrName) {
46
- if (!ICON_COLOR_PROP_NAMES.includes(attrName)) {
46
+ if (!ICON_COLOR_PROP_NAMES.includes(attrName) && attrName !== 'name') {
47
47
  newAttributes[attrName] =
48
48
  attributes[attrName];
49
49
  }