@bigbinary/neeto-site-blocks 1.2.4 → 1.2.5
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/dist/index.cjs.js +4 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -2677,7 +2677,8 @@ var COMPONENTS = {
|
|
|
2677
2677
|
sup: "sup",
|
|
2678
2678
|
u: "u",
|
|
2679
2679
|
code: "code",
|
|
2680
|
-
blockquote: "blockquote"
|
|
2680
|
+
blockquote: "blockquote",
|
|
2681
|
+
div: "div"
|
|
2681
2682
|
};
|
|
2682
2683
|
var SPACING_VALUES = {
|
|
2683
2684
|
none: 0,
|
|
@@ -15606,7 +15607,7 @@ var Typography = function Typography(_ref) {
|
|
|
15606
15607
|
var _ref$style = _ref.style,
|
|
15607
15608
|
style = _ref$style === void 0 ? DEFAULT_TYPOGRAPHY_STYLES : _ref$style,
|
|
15608
15609
|
_ref$component = _ref.component,
|
|
15609
|
-
component = _ref$component === void 0 ? COMPONENTS.
|
|
15610
|
+
component = _ref$component === void 0 ? COMPONENTS.div : _ref$component,
|
|
15610
15611
|
_ref$className = _ref.className,
|
|
15611
15612
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
15612
15613
|
_ref$isTitle = _ref.isTitle,
|
|
@@ -15614,7 +15615,7 @@ var Typography = function Typography(_ref) {
|
|
|
15614
15615
|
children = _ref.children,
|
|
15615
15616
|
otherProps = _objectWithoutProperties__default["default"](_ref, _excluded$e);
|
|
15616
15617
|
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper, _extends__default["default"]({
|
|
15617
|
-
as: component,
|
|
15618
|
+
as: isTitle ? component : COMPONENTS.div,
|
|
15618
15619
|
className: classnames("neeto-site-typography break-words", className),
|
|
15619
15620
|
design: style
|
|
15620
15621
|
}, otherProps), isTitle ? children : /*#__PURE__*/React__default["default"].createElement(StyledInterweave, {
|