@sb1/ffe-core-react 7.1.5 → 7.2.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/es/typography/Heading.js
CHANGED
|
@@ -10,7 +10,7 @@ import React from 'react';
|
|
|
10
10
|
import classNames from 'classnames';
|
|
11
11
|
import { bool, oneOf, node, string } from 'prop-types';
|
|
12
12
|
var makeHeading = function makeHeading(level) {
|
|
13
|
-
var Heading = function
|
|
13
|
+
var Heading = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
14
14
|
var children = props.children,
|
|
15
15
|
className = props.className,
|
|
16
16
|
error = props.error,
|
|
@@ -23,9 +23,10 @@ var makeHeading = function makeHeading(level) {
|
|
|
23
23
|
var H = "h".concat(level);
|
|
24
24
|
var headingClass = "ffe-h".concat(lookLike ? lookLike : level);
|
|
25
25
|
return /*#__PURE__*/React.createElement(H, _extends({}, rest, {
|
|
26
|
+
ref: ref,
|
|
26
27
|
className: classNames(headingClass, _defineProperty({}, "".concat(headingClass, "--error"), error), _defineProperty({}, "".concat(headingClass, "--inline"), inline), _defineProperty({}, "".concat(headingClass, "--no-margin"), noMargin), _defineProperty({}, "".concat(headingClass, "--with-border"), withBorder), _defineProperty({}, "".concat(headingClass, "--text-center"), textCenter), className)
|
|
27
28
|
}), children);
|
|
28
|
-
};
|
|
29
|
+
});
|
|
29
30
|
Heading.propTypes = {
|
|
30
31
|
children: node.isRequired,
|
|
31
32
|
className: string,
|
|
@@ -17,7 +17,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
17
17
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
18
18
|
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; }
|
|
19
19
|
var makeHeading = function makeHeading(level) {
|
|
20
|
-
var Heading = function
|
|
20
|
+
var Heading = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
|
|
21
21
|
var children = props.children,
|
|
22
22
|
className = props.className,
|
|
23
23
|
error = props.error,
|
|
@@ -30,9 +30,10 @@ var makeHeading = function makeHeading(level) {
|
|
|
30
30
|
var H = "h".concat(level);
|
|
31
31
|
var headingClass = "ffe-h".concat(lookLike ? lookLike : level);
|
|
32
32
|
return /*#__PURE__*/_react.default.createElement(H, _extends({}, rest, {
|
|
33
|
+
ref: ref,
|
|
33
34
|
className: (0, _classnames.default)(headingClass, _defineProperty({}, "".concat(headingClass, "--error"), error), _defineProperty({}, "".concat(headingClass, "--inline"), inline), _defineProperty({}, "".concat(headingClass, "--no-margin"), noMargin), _defineProperty({}, "".concat(headingClass, "--with-border"), withBorder), _defineProperty({}, "".concat(headingClass, "--text-center"), textCenter), className)
|
|
34
35
|
}), children);
|
|
35
|
-
};
|
|
36
|
+
});
|
|
36
37
|
Heading.propTypes = {
|
|
37
38
|
children: _propTypes.node.isRequired,
|
|
38
39
|
className: _propTypes.string,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sb1/ffe-core-react",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.2.0",
|
|
4
4
|
"description": "React components for ffe-core components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ffe"
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "b47fbdb7daaf9d3edc12366a6fbb90f462268b1f"
|
|
48
48
|
}
|