@bigbinary/neeto-site-blocks 1.2.3 → 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 +12 -7
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +12 -7
- 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,
|
|
@@ -15419,9 +15420,11 @@ var Button = function Button(_ref) {
|
|
|
15419
15420
|
draftMode = _ref$draftMode === void 0 ? false : _ref$draftMode,
|
|
15420
15421
|
_ref$baseUrl = _ref.baseUrl,
|
|
15421
15422
|
baseUrl = _ref$baseUrl === void 0 ? "" : _ref$baseUrl,
|
|
15422
|
-
Link = _ref.link
|
|
15423
|
+
Link = _ref.link,
|
|
15424
|
+
_ref$disableButtonAnd = _ref.disableButtonAndLinks,
|
|
15425
|
+
disableButtonAndLinks = _ref$disableButtonAnd === void 0 ? false : _ref$disableButtonAnd;
|
|
15423
15426
|
var anchorBaseClass = classnames("inline-flex transition-all duration-300 ease-in-out", {
|
|
15424
|
-
"pointer-events-none": action === ""
|
|
15427
|
+
"pointer-events-none": action === "" || disableButtonAndLinks
|
|
15425
15428
|
});
|
|
15426
15429
|
var commonProps = {
|
|
15427
15430
|
className: classnames([anchorBaseClass, className]),
|
|
@@ -15465,9 +15468,11 @@ var LinkElement = function LinkElement(_ref) {
|
|
|
15465
15468
|
baseUrl = _ref$baseUrl === void 0 ? "" : _ref$baseUrl,
|
|
15466
15469
|
_ref$draftMode = _ref.draftMode,
|
|
15467
15470
|
draftMode = _ref$draftMode === void 0 ? false : _ref$draftMode,
|
|
15468
|
-
Link = _ref.link
|
|
15471
|
+
Link = _ref.link,
|
|
15472
|
+
_ref$disableButtonAnd = _ref.disableButtonAndLinks,
|
|
15473
|
+
disableButtonAndLinks = _ref$disableButtonAnd === void 0 ? false : _ref$disableButtonAnd;
|
|
15469
15474
|
var baseClass = classnames("inline-flex items-center transition-all duration-300 ease-in-out", {
|
|
15470
|
-
"pointer-events-none": action === ""
|
|
15475
|
+
"pointer-events-none": action === "" || disableButtonAndLinks
|
|
15471
15476
|
});
|
|
15472
15477
|
var commonProps = {
|
|
15473
15478
|
className: classnames([baseClass, className]),
|
|
@@ -15602,7 +15607,7 @@ var Typography = function Typography(_ref) {
|
|
|
15602
15607
|
var _ref$style = _ref.style,
|
|
15603
15608
|
style = _ref$style === void 0 ? DEFAULT_TYPOGRAPHY_STYLES : _ref$style,
|
|
15604
15609
|
_ref$component = _ref.component,
|
|
15605
|
-
component = _ref$component === void 0 ? COMPONENTS.
|
|
15610
|
+
component = _ref$component === void 0 ? COMPONENTS.div : _ref$component,
|
|
15606
15611
|
_ref$className = _ref.className,
|
|
15607
15612
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
15608
15613
|
_ref$isTitle = _ref.isTitle,
|
|
@@ -15610,7 +15615,7 @@ var Typography = function Typography(_ref) {
|
|
|
15610
15615
|
children = _ref.children,
|
|
15611
15616
|
otherProps = _objectWithoutProperties__default["default"](_ref, _excluded$e);
|
|
15612
15617
|
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper, _extends__default["default"]({
|
|
15613
|
-
as: component,
|
|
15618
|
+
as: isTitle ? component : COMPONENTS.div,
|
|
15614
15619
|
className: classnames("neeto-site-typography break-words", className),
|
|
15615
15620
|
design: style
|
|
15616
15621
|
}, otherProps), isTitle ? children : /*#__PURE__*/React__default["default"].createElement(StyledInterweave, {
|