@bigbinary/neeto-site-blocks 1.11.0-beta1 → 1.11.0-beta2
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 +24 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +24 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -42772,16 +42772,17 @@ var _excluded$4 = ["configurations", "className", "id", "disableButtonAndLinks",
|
|
|
42772
42772
|
function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
42773
42773
|
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
42774
42774
|
var HeroWithGallery = function HeroWithGallery(_ref) {
|
|
42775
|
-
var configurations = _ref.configurations
|
|
42776
|
-
_ref.className
|
|
42777
|
-
|
|
42775
|
+
var configurations = _ref.configurations,
|
|
42776
|
+
_ref$className = _ref.className,
|
|
42777
|
+
className = _ref$className === void 0 ? "" : _ref$className,
|
|
42778
|
+
id = _ref.id,
|
|
42778
42779
|
disableButtonAndLinks = _ref.disableButtonAndLinks,
|
|
42779
42780
|
image = _ref.image,
|
|
42780
42781
|
otherProps = _objectWithoutProperties(_ref, _excluded$4);
|
|
42781
42782
|
var _useState = useState(null),
|
|
42782
42783
|
_useState2 = _slicedToArray(_useState, 2),
|
|
42783
|
-
swiper = _useState2[0]
|
|
42784
|
-
_useState2[1];
|
|
42784
|
+
swiper = _useState2[0],
|
|
42785
|
+
setSwiper = _useState2[1];
|
|
42785
42786
|
var properties = configurations.properties,
|
|
42786
42787
|
design = configurations.design;
|
|
42787
42788
|
var slides = properties.slides,
|
|
@@ -42915,7 +42916,24 @@ var HeroWithGallery = function HeroWithGallery(_ref) {
|
|
|
42915
42916
|
onClick: function onClick() {
|
|
42916
42917
|
return swiper === null || swiper === void 0 ? void 0 : swiper.slidePrev();
|
|
42917
42918
|
}
|
|
42918
|
-
}), /*#__PURE__*/React__default.createElement(
|
|
42919
|
+
}), /*#__PURE__*/React__default.createElement(Swiper, {
|
|
42920
|
+
loop: true,
|
|
42921
|
+
className: "ns-hero-with-slider",
|
|
42922
|
+
onSwiper: setSwiper
|
|
42923
|
+
}, slides.map(function (_ref7, index) {
|
|
42924
|
+
var content = _ref7.content,
|
|
42925
|
+
buttons = _ref7.buttons,
|
|
42926
|
+
media = _ref7.media;
|
|
42927
|
+
return /*#__PURE__*/React__default.createElement(SwiperSlide, {
|
|
42928
|
+
className: classnames("my-auto", className),
|
|
42929
|
+
key: getUniqueKey(content.title, index)
|
|
42930
|
+
}, renderHeroWithMedia({
|
|
42931
|
+
content: content,
|
|
42932
|
+
buttons: buttons,
|
|
42933
|
+
media: media,
|
|
42934
|
+
index: index
|
|
42935
|
+
}));
|
|
42936
|
+
})), /*#__PURE__*/React__default.createElement(ArrowButton, {
|
|
42919
42937
|
Icon: ArrowRightS$1,
|
|
42920
42938
|
className: "hidden sm:flex",
|
|
42921
42939
|
design: design.navigationButtons,
|