@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.js
CHANGED
|
@@ -2631,7 +2631,8 @@ var COMPONENTS = {
|
|
|
2631
2631
|
sup: "sup",
|
|
2632
2632
|
u: "u",
|
|
2633
2633
|
code: "code",
|
|
2634
|
-
blockquote: "blockquote"
|
|
2634
|
+
blockquote: "blockquote",
|
|
2635
|
+
div: "div"
|
|
2635
2636
|
};
|
|
2636
2637
|
var SPACING_VALUES = {
|
|
2637
2638
|
none: 0,
|
|
@@ -15560,7 +15561,7 @@ var Typography = function Typography(_ref) {
|
|
|
15560
15561
|
var _ref$style = _ref.style,
|
|
15561
15562
|
style = _ref$style === void 0 ? DEFAULT_TYPOGRAPHY_STYLES : _ref$style,
|
|
15562
15563
|
_ref$component = _ref.component,
|
|
15563
|
-
component = _ref$component === void 0 ? COMPONENTS.
|
|
15564
|
+
component = _ref$component === void 0 ? COMPONENTS.div : _ref$component,
|
|
15564
15565
|
_ref$className = _ref.className,
|
|
15565
15566
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
15566
15567
|
_ref$isTitle = _ref.isTitle,
|
|
@@ -15568,7 +15569,7 @@ var Typography = function Typography(_ref) {
|
|
|
15568
15569
|
children = _ref.children,
|
|
15569
15570
|
otherProps = _objectWithoutProperties(_ref, _excluded$e);
|
|
15570
15571
|
return /*#__PURE__*/React__default.createElement(StyledWrapper, _extends$2({
|
|
15571
|
-
as: component,
|
|
15572
|
+
as: isTitle ? component : COMPONENTS.div,
|
|
15572
15573
|
className: classnames("neeto-site-typography break-words", className),
|
|
15573
15574
|
design: style
|
|
15574
15575
|
}, otherProps), isTitle ? children : /*#__PURE__*/React__default.createElement(StyledInterweave, {
|