@bigbinary/neeto-site-blocks 1.8.17 → 1.8.19
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 +14 -8
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +14 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14554,7 +14554,7 @@ var useElementClick = function useElementClick(_ref) {
|
|
|
14554
14554
|
event.preventDefault();
|
|
14555
14555
|
if (!id) return;
|
|
14556
14556
|
setTimeout(function () {
|
|
14557
|
-
var accordion = document.querySelector("[data-accordion-id=".concat(id.replace(/-[^-]+$/, ""), "]"));
|
|
14557
|
+
var accordion = document.querySelector("[data-accordion-id=".concat(id === null || id === void 0 ? void 0 : id.replace(/-[^-]+$/, ""), "]"));
|
|
14558
14558
|
var element = document.querySelector("[data-element-id=".concat(id, "]"));
|
|
14559
14559
|
var card = document.querySelector("[data-highlight-id=".concat(id, "]"));
|
|
14560
14560
|
|
|
@@ -14601,7 +14601,7 @@ var useElementClick = function useElementClick(_ref) {
|
|
|
14601
14601
|
var handleTitleClick = function handleTitleClick() {
|
|
14602
14602
|
setTimeout(function () {
|
|
14603
14603
|
if (!document) return;
|
|
14604
|
-
var accordion = document.querySelector("[data-accordion-id=".concat(id.replace(/-[^-]+$/, ""), "]"));
|
|
14604
|
+
var accordion = document.querySelector("[data-accordion-id=".concat(id === null || id === void 0 ? void 0 : id.replace(/-[^-]+$/, ""), "]"));
|
|
14605
14605
|
var inputWrapper = accordion === null || accordion === void 0 ? void 0 : accordion.querySelector(".neeto-ui-input");
|
|
14606
14606
|
var card = document.querySelector("[data-highlight-id=".concat(id, "]"));
|
|
14607
14607
|
var element = document.querySelector("[data-element-id=".concat(id, "]"));
|
|
@@ -14657,7 +14657,7 @@ var useElementClick = function useElementClick(_ref) {
|
|
|
14657
14657
|
event.preventDefault();
|
|
14658
14658
|
setTimeout(function () {
|
|
14659
14659
|
if (isPresent(index)) {
|
|
14660
|
-
var accordion = document.querySelector("[data-accordion-id=".concat(id.replace(/-[^-]+$/, ""), "]"));
|
|
14660
|
+
var accordion = document.querySelector("[data-accordion-id=".concat(id === null || id === void 0 ? void 0 : id.replace(/-[^-]+$/, ""), "]"));
|
|
14661
14661
|
if (!accordion) return;
|
|
14662
14662
|
accordion.scrollIntoView({
|
|
14663
14663
|
behavior: "smooth",
|
|
@@ -14711,18 +14711,24 @@ var StyledImage = styled.img.attrs(function () {
|
|
|
14711
14711
|
className: "hover:mix-blend-multiply"
|
|
14712
14712
|
};
|
|
14713
14713
|
})(function (_ref) {
|
|
14714
|
+
var _design$border, _design$border2, _design$border3;
|
|
14714
14715
|
var _ref$design = _ref.design,
|
|
14715
14716
|
design = _ref$design === void 0 ? {} : _ref$design,
|
|
14716
14717
|
lgImageSize = _ref.lgImageSize;
|
|
14717
14718
|
var baseStyles = {
|
|
14718
14719
|
width: design.width ? "".concat(design.width, "%") : "auto"
|
|
14719
14720
|
};
|
|
14721
|
+
var borderStyles = {
|
|
14722
|
+
borderColor: (_design$border = design.border) === null || _design$border === void 0 ? void 0 : _design$border.borderColor,
|
|
14723
|
+
borderWidth: (_design$border2 = design.border) === null || _design$border2 === void 0 ? void 0 : _design$border2.borderWidth,
|
|
14724
|
+
borderStyle: (_design$border3 = design.border) === null || _design$border3 === void 0 ? void 0 : _design$border3.borderStyle
|
|
14725
|
+
};
|
|
14720
14726
|
var mediaStyles = lgImageSize ? {
|
|
14721
14727
|
"@media (min-width: 1024px)": {
|
|
14722
14728
|
width: "".concat(lgImageSize, "%")
|
|
14723
14729
|
}
|
|
14724
14730
|
} : {};
|
|
14725
|
-
var customizedStyles = mergeAll([baseStyles, mediaStyles]);
|
|
14731
|
+
var customizedStyles = mergeAll([baseStyles, mediaStyles, borderStyles]);
|
|
14726
14732
|
return mergeRight(design, customizedStyles);
|
|
14727
14733
|
});
|
|
14728
14734
|
var StyledImageWithWrapper = function StyledImageWithWrapper(_ref2) {
|
|
@@ -43198,14 +43204,13 @@ var LogoClouds = function LogoClouds(_ref) {
|
|
|
43198
43204
|
src = properties.backgroundImage.src;
|
|
43199
43205
|
var baseClasses = "grid grid-cols-12 items-center sm:gap-x-4 gap-y-10";
|
|
43200
43206
|
var logoBaseClasses = function logoBaseClasses(index) {
|
|
43201
|
-
return classnames("col-span-
|
|
43207
|
+
return classnames("col-span-12 flex justify-center w-full", {
|
|
43202
43208
|
"lg:col-span-2": logoCount === 6,
|
|
43203
43209
|
"sm:col-span-3": logoCount === 4,
|
|
43204
43210
|
"ns-logo-clouds": !showColoredLogo,
|
|
43205
43211
|
"sm:col-start-4": logos.length % 4 === 2 && index === logos.length - 2,
|
|
43206
43212
|
"sm:col-start-3": logos.length % 4 === 3 && index === logos.length - 3,
|
|
43207
|
-
"sm:col-start-5 sm:!col-span-4 !col-start-4": logos.length % 4 === 1 && index === logos.length - 1
|
|
43208
|
-
"col-start-3": logos.length % 2 === 1 && index === logos.length - 1
|
|
43213
|
+
"sm:col-start-5 sm:!col-span-4 !col-start-4": logos.length % 4 === 1 && index === logos.length - 1
|
|
43209
43214
|
});
|
|
43210
43215
|
};
|
|
43211
43216
|
return /*#__PURE__*/React__default.createElement(BlockWrapper, {
|
|
@@ -43236,7 +43241,8 @@ var LogoClouds = function LogoClouds(_ref) {
|
|
|
43236
43241
|
src: src,
|
|
43237
43242
|
title: title,
|
|
43238
43243
|
className: "logo-image",
|
|
43239
|
-
design: design.logo
|
|
43244
|
+
design: design.logo,
|
|
43245
|
+
wrapperClassName: "max-w-56 max-h-28"
|
|
43240
43246
|
}));
|
|
43241
43247
|
}));
|
|
43242
43248
|
};
|