@bigbinary/neeto-site-blocks 1.2.9 → 1.2.10
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 +29 -14
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +29 -14
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -138,7 +138,9 @@ var ArrowButton = function ArrowButton(_ref) {
|
|
|
138
138
|
isStart = _ref.isStart,
|
|
139
139
|
onClick = _ref.onClick,
|
|
140
140
|
isActive = _ref.isActive,
|
|
141
|
-
design = _ref.design
|
|
141
|
+
design = _ref.design,
|
|
142
|
+
_ref$className = _ref.className,
|
|
143
|
+
className = _ref$className === void 0 ? "" : _ref$className;
|
|
142
144
|
var borderColor = isActive ? (design === null || design === void 0 ? void 0 : design.navigationActiveColor) || "#1F2433" : (design === null || design === void 0 ? void 0 : design.navigationInactiveColor) || "#ccc";
|
|
143
145
|
var StyledIcon = styled__default["default"](Icon)(function () {
|
|
144
146
|
return {
|
|
@@ -146,12 +148,12 @@ var ArrowButton = function ArrowButton(_ref) {
|
|
|
146
148
|
};
|
|
147
149
|
});
|
|
148
150
|
return /*#__PURE__*/React__default["default"].createElement("button", {
|
|
151
|
+
onClick: onClick,
|
|
149
152
|
className: classnames("col-span-1", {
|
|
150
153
|
"col-start-1": isStart,
|
|
151
154
|
"col-start-12 flex justify-end": !isStart,
|
|
152
155
|
"cursor-default": !isActive
|
|
153
|
-
})
|
|
154
|
-
onClick: onClick
|
|
156
|
+
}, className)
|
|
155
157
|
}, /*#__PURE__*/React__default["default"].createElement(StyledIcon, {
|
|
156
158
|
className: "rounded-full border p-1",
|
|
157
159
|
size: 27,
|
|
@@ -20546,7 +20548,8 @@ var CardsInGridView = function CardsInGridView(_ref) {
|
|
|
20546
20548
|
var title = _ref2.title,
|
|
20547
20549
|
description = _ref2.description,
|
|
20548
20550
|
imageUrl = _ref2.imageUrl,
|
|
20549
|
-
href = _ref2.href
|
|
20551
|
+
href = _ref2.href,
|
|
20552
|
+
style = _ref2.style;
|
|
20550
20553
|
return /*#__PURE__*/React__default["default"].createElement(MotionWrapper, {
|
|
20551
20554
|
enableAnimation: enableAnimation,
|
|
20552
20555
|
design: design.card,
|
|
@@ -20559,7 +20562,7 @@ var CardsInGridView = function CardsInGridView(_ref) {
|
|
|
20559
20562
|
return href && window.open(href, "_blank");
|
|
20560
20563
|
}
|
|
20561
20564
|
}, /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
|
|
20562
|
-
design: design.cardImage,
|
|
20565
|
+
design: mergeRight(design.cardImage, style),
|
|
20563
20566
|
src: imageUrl,
|
|
20564
20567
|
className: classnames("mx-auto", {
|
|
20565
20568
|
"max-h-40": mode === "landscape",
|
|
@@ -40396,13 +40399,13 @@ var GalleryClassic = function GalleryClassic(_ref) {
|
|
|
40396
40399
|
src = properties.backgroundImage.src;
|
|
40397
40400
|
var baseClasses = "grid grid-cols-12 items-center gap-y-8";
|
|
40398
40401
|
return /*#__PURE__*/React__default["default"].createElement(BlockWrapper, {
|
|
40402
|
+
className: className,
|
|
40403
|
+
enableAnimation: enableAnimation,
|
|
40404
|
+
id: id,
|
|
40399
40405
|
backgroundImage: mergeLeft({
|
|
40400
40406
|
src: src
|
|
40401
40407
|
}, design.backgroundImage),
|
|
40402
|
-
className: className,
|
|
40403
40408
|
design: design.body,
|
|
40404
|
-
enableAnimation: enableAnimation,
|
|
40405
|
-
id: id,
|
|
40406
40409
|
nestedClassName: baseClasses
|
|
40407
40410
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
40408
40411
|
className: "col-span-12 col-start-1 sm:col-span-6 sm:col-start-4"
|
|
@@ -40416,6 +40419,7 @@ var GalleryClassic = function GalleryClassic(_ref) {
|
|
|
40416
40419
|
}, description)), /*#__PURE__*/React__default["default"].createElement(ArrowButton, {
|
|
40417
40420
|
isStart: true,
|
|
40418
40421
|
Icon: ArrowLeft$1,
|
|
40422
|
+
className: "hidden sm:flex",
|
|
40419
40423
|
design: design.navigationButtons,
|
|
40420
40424
|
isActive: activeIndex > 0,
|
|
40421
40425
|
onClick: function onClick() {
|
|
@@ -40425,8 +40429,13 @@ var GalleryClassic = function GalleryClassic(_ref) {
|
|
|
40425
40429
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
40426
40430
|
className: "ns-gallery-with-multiple-images col-span-10 col-start-2"
|
|
40427
40431
|
}, /*#__PURE__*/React__default["default"].createElement(Swiper, {
|
|
40432
|
+
freeMode: true,
|
|
40433
|
+
grabCursor: true,
|
|
40428
40434
|
breakpointsBase: "container",
|
|
40429
|
-
modules: [Pagination],
|
|
40435
|
+
modules: [Pagination, Mousewheel, freeMode],
|
|
40436
|
+
mousewheel: {
|
|
40437
|
+
sensitivity: 0.5
|
|
40438
|
+
},
|
|
40430
40439
|
pagination: {
|
|
40431
40440
|
clickable: true
|
|
40432
40441
|
},
|
|
@@ -40446,17 +40455,21 @@ var GalleryClassic = function GalleryClassic(_ref) {
|
|
|
40446
40455
|
}, images.map(function (_ref2, index) {
|
|
40447
40456
|
var src = _ref2.src,
|
|
40448
40457
|
alt = _ref2.alt,
|
|
40449
|
-
title = _ref2.title
|
|
40458
|
+
title = _ref2.title,
|
|
40459
|
+
style = _ref2.style;
|
|
40450
40460
|
return /*#__PURE__*/React__default["default"].createElement(SwiperSlide, {
|
|
40461
|
+
className: "swiper__wrapper",
|
|
40451
40462
|
key: getUniqueKey(src, title, index)
|
|
40452
40463
|
}, /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
|
|
40453
40464
|
alt: alt,
|
|
40454
|
-
className: "sliding-image",
|
|
40455
40465
|
src: src,
|
|
40456
|
-
title: title
|
|
40466
|
+
title: title,
|
|
40467
|
+
className: "sliding-image",
|
|
40468
|
+
design: style
|
|
40457
40469
|
}));
|
|
40458
40470
|
}))), /*#__PURE__*/React__default["default"].createElement(ArrowButton, {
|
|
40459
40471
|
Icon: ArrowRight$1,
|
|
40472
|
+
className: "hidden sm:flex",
|
|
40460
40473
|
design: design.navigationButtons,
|
|
40461
40474
|
isActive: activeIndex < images.length - 2,
|
|
40462
40475
|
onClick: function onClick() {
|
|
@@ -40526,7 +40539,8 @@ var GalleryWithAutoplay = function GalleryWithAutoplay(_ref) {
|
|
|
40526
40539
|
}, images.map(function (_ref2, index) {
|
|
40527
40540
|
var src = _ref2.src,
|
|
40528
40541
|
alt = _ref2.alt,
|
|
40529
|
-
title = _ref2.title
|
|
40542
|
+
title = _ref2.title,
|
|
40543
|
+
style = _ref2.style;
|
|
40530
40544
|
return /*#__PURE__*/React__default["default"].createElement(SwiperSlide, {
|
|
40531
40545
|
className: "swiper__wrapper",
|
|
40532
40546
|
key: getUniqueKey(src, title, index)
|
|
@@ -40534,7 +40548,8 @@ var GalleryWithAutoplay = function GalleryWithAutoplay(_ref) {
|
|
|
40534
40548
|
alt: alt,
|
|
40535
40549
|
src: src,
|
|
40536
40550
|
title: title,
|
|
40537
|
-
className: "sliding-image"
|
|
40551
|
+
className: "sliding-image",
|
|
40552
|
+
design: style
|
|
40538
40553
|
}));
|
|
40539
40554
|
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
40540
40555
|
className: "ns-gallery-with-sliding-images sm:col-span-6 sm:col-start-4"
|