@sb1/ffe-core-react 7.2.8 → 7.2.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.
@@ -7,15 +7,13 @@ import { func, node, oneOfType, string, elementType } from 'prop-types';
7
7
  import classNames from 'classnames';
8
8
  var LinkIcon = function LinkIcon(props) {
9
9
  var className = props.className,
10
- Element = props.element,
10
+ _props$element = props.element,
11
+ Element = _props$element === void 0 ? 'a' : _props$element,
11
12
  rest = _objectWithoutProperties(props, _excluded);
12
13
  return /*#__PURE__*/React.createElement(Element, _extends({
13
14
  className: classNames('ffe-link-icon', className)
14
15
  }, rest));
15
16
  };
16
- LinkIcon.defaultProps = {
17
- element: 'a'
18
- };
19
17
  LinkIcon.propTypes = {
20
18
  children: node.isRequired,
21
19
  className: string,
@@ -7,8 +7,10 @@ import { bool, func, node, oneOfType, string, elementType } from 'prop-types';
7
7
  import classNames from 'classnames';
8
8
  var LinkText = function LinkText(props) {
9
9
  var className = props.className,
10
- Element = props.element,
11
- underline = props.underline,
10
+ _props$element = props.element,
11
+ Element = _props$element === void 0 ? 'a' : _props$element,
12
+ _props$underline = props.underline,
13
+ underline = _props$underline === void 0 ? true : _props$underline,
12
14
  rest = _objectWithoutProperties(props, _excluded);
13
15
  return /*#__PURE__*/React.createElement(Element, _extends({
14
16
  className: classNames('ffe-link-text', {
@@ -16,10 +18,6 @@ var LinkText = function LinkText(props) {
16
18
  }, className)
17
19
  }, rest));
18
20
  };
19
- LinkText.defaultProps = {
20
- element: 'a',
21
- underline: true
22
- };
23
21
  LinkText.propTypes = {
24
22
  children: node.isRequired,
25
23
  className: string,
@@ -7,15 +7,13 @@ import { oneOfType, string, func, elementType } from 'prop-types';
7
7
  import classNames from 'classnames';
8
8
  var SmallText = function SmallText(_ref) {
9
9
  var className = _ref.className,
10
- Element = _ref.element,
10
+ _ref$element = _ref.element,
11
+ Element = _ref$element === void 0 ? 'span' : _ref$element,
11
12
  rest = _objectWithoutProperties(_ref, _excluded);
12
13
  return /*#__PURE__*/React.createElement(Element, _extends({
13
14
  className: classNames('ffe-small-text', className)
14
15
  }, rest));
15
16
  };
16
- SmallText.defaultProps = {
17
- element: 'span'
18
- };
19
17
  SmallText.propTypes = {
20
18
  element: oneOfType([func, string, elementType]),
21
19
  className: string
@@ -14,15 +14,13 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
14
14
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
15
15
  var LinkIcon = function LinkIcon(props) {
16
16
  var className = props.className,
17
- Element = props.element,
17
+ _props$element = props.element,
18
+ Element = _props$element === void 0 ? 'a' : _props$element,
18
19
  rest = _objectWithoutProperties(props, _excluded);
19
20
  return /*#__PURE__*/_react.default.createElement(Element, _extends({
20
21
  className: (0, _classnames.default)('ffe-link-icon', className)
21
22
  }, rest));
22
23
  };
23
- LinkIcon.defaultProps = {
24
- element: 'a'
25
- };
26
24
  LinkIcon.propTypes = {
27
25
  children: _propTypes.node.isRequired,
28
26
  className: _propTypes.string,
@@ -14,8 +14,10 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
14
14
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
15
15
  var LinkText = function LinkText(props) {
16
16
  var className = props.className,
17
- Element = props.element,
18
- underline = props.underline,
17
+ _props$element = props.element,
18
+ Element = _props$element === void 0 ? 'a' : _props$element,
19
+ _props$underline = props.underline,
20
+ underline = _props$underline === void 0 ? true : _props$underline,
19
21
  rest = _objectWithoutProperties(props, _excluded);
20
22
  return /*#__PURE__*/_react.default.createElement(Element, _extends({
21
23
  className: (0, _classnames.default)('ffe-link-text', {
@@ -23,10 +25,6 @@ var LinkText = function LinkText(props) {
23
25
  }, className)
24
26
  }, rest));
25
27
  };
26
- LinkText.defaultProps = {
27
- element: 'a',
28
- underline: true
29
- };
30
28
  LinkText.propTypes = {
31
29
  children: _propTypes.node.isRequired,
32
30
  className: _propTypes.string,
@@ -14,15 +14,13 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
14
14
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
15
15
  var SmallText = function SmallText(_ref) {
16
16
  var className = _ref.className,
17
- Element = _ref.element,
17
+ _ref$element = _ref.element,
18
+ Element = _ref$element === void 0 ? 'span' : _ref$element,
18
19
  rest = _objectWithoutProperties(_ref, _excluded);
19
20
  return /*#__PURE__*/_react.default.createElement(Element, _extends({
20
21
  className: (0, _classnames.default)('ffe-small-text', className)
21
22
  }, rest));
22
23
  };
23
- SmallText.defaultProps = {
24
- element: 'span'
25
- };
26
24
  SmallText.propTypes = {
27
25
  element: (0, _propTypes.oneOfType)([_propTypes.func, _propTypes.string, _propTypes.elementType]),
28
26
  className: _propTypes.string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sb1/ffe-core-react",
3
- "version": "7.2.8",
3
+ "version": "7.2.9",
4
4
  "description": "React components for ffe-core components",
5
5
  "keywords": [
6
6
  "ffe"
@@ -28,7 +28,7 @@
28
28
  "test:watch": "ffe-buildtool jest --watch"
29
29
  },
30
30
  "dependencies": {
31
- "@sb1/ffe-core": "^27.3.6",
31
+ "@sb1/ffe-core": "^27.3.7",
32
32
  "classnames": "^2.3.1",
33
33
  "prop-types": "^15.7.2"
34
34
  },
@@ -44,5 +44,5 @@
44
44
  "publishConfig": {
45
45
  "access": "public"
46
46
  },
47
- "gitHead": "d9726eae887f19598f051c2f205506a0710b89e8"
47
+ "gitHead": "c291894cefef43c0607f844862e87031452a0d94"
48
48
  }