@sb1/ffe-icons-react 9.0.7 → 9.0.8

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/es/Icon.js CHANGED
@@ -9,7 +9,8 @@ var Icon = function Icon(props) {
9
9
  var fileUrl = props.fileUrl,
10
10
  className = props.className,
11
11
  ariaLabel = props.ariaLabel,
12
- size = props.size,
12
+ _props$size = props.size,
13
+ size = _props$size === void 0 ? 'md' : _props$size,
13
14
  rest = _objectWithoutProperties(props, _excluded);
14
15
  return /*#__PURE__*/React.createElement("span", _extends({
15
16
  role: "img",
@@ -22,9 +23,6 @@ var Icon = function Icon(props) {
22
23
  }
23
24
  }, rest));
24
25
  };
25
- Icon.defaultProps = {
26
- size: 'md'
27
- };
28
26
  Icon.propTypes = {
29
27
  /** The path to the svg-file og base64 string */
30
28
  fileUrl: string.isRequired,
package/lib/Icon.js CHANGED
@@ -16,7 +16,8 @@ var Icon = function Icon(props) {
16
16
  var fileUrl = props.fileUrl,
17
17
  className = props.className,
18
18
  ariaLabel = props.ariaLabel,
19
- size = props.size,
19
+ _props$size = props.size,
20
+ size = _props$size === void 0 ? 'md' : _props$size,
20
21
  rest = _objectWithoutProperties(props, _excluded);
21
22
  return /*#__PURE__*/_react.default.createElement("span", _extends({
22
23
  role: "img",
@@ -29,9 +30,6 @@ var Icon = function Icon(props) {
29
30
  }
30
31
  }, rest));
31
32
  };
32
- Icon.defaultProps = {
33
- size: 'md'
34
- };
35
33
  Icon.propTypes = {
36
34
  /** The path to the svg-file og base64 string */
37
35
  fileUrl: _propTypes.string.isRequired,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sb1/ffe-icons-react",
3
- "version": "9.0.7",
3
+ "version": "9.0.8",
4
4
  "description": "React-komponenter for ffe-icons",
5
5
  "license": "MIT",
6
6
  "author": "SpareBank 1",
@@ -42,5 +42,5 @@
42
42
  "publishConfig": {
43
43
  "access": "public"
44
44
  },
45
- "gitHead": "2fadcfb7bea0491a5ac048bdcc455d6ef3f33ca8"
45
+ "gitHead": "c291894cefef43c0607f844862e87031452a0d94"
46
46
  }
package/src/Icon.js CHANGED
@@ -3,7 +3,7 @@ import classNames from 'classnames';
3
3
  import { string, oneOf } from 'prop-types';
4
4
 
5
5
  const Icon = props => {
6
- const { fileUrl, className, ariaLabel, size, ...rest } = props;
6
+ const { fileUrl, className, ariaLabel, size = 'md', ...rest } = props;
7
7
 
8
8
  return (
9
9
  <span
@@ -20,10 +20,6 @@ const Icon = props => {
20
20
  );
21
21
  };
22
22
 
23
- Icon.defaultProps = {
24
- size: 'md',
25
- };
26
-
27
23
  Icon.propTypes = {
28
24
  /** The path to the svg-file og base64 string */
29
25
  fileUrl: string.isRequired,