@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.cjs.js
CHANGED
|
@@ -42818,16 +42818,17 @@ var _excluded$4 = ["configurations", "className", "id", "disableButtonAndLinks",
|
|
|
42818
42818
|
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; }
|
|
42819
42819
|
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__default["default"](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; }
|
|
42820
42820
|
var HeroWithGallery = function HeroWithGallery(_ref) {
|
|
42821
|
-
var configurations = _ref.configurations
|
|
42822
|
-
_ref.className
|
|
42823
|
-
|
|
42821
|
+
var configurations = _ref.configurations,
|
|
42822
|
+
_ref$className = _ref.className,
|
|
42823
|
+
className = _ref$className === void 0 ? "" : _ref$className,
|
|
42824
|
+
id = _ref.id,
|
|
42824
42825
|
disableButtonAndLinks = _ref.disableButtonAndLinks,
|
|
42825
42826
|
image = _ref.image,
|
|
42826
42827
|
otherProps = _objectWithoutProperties__default["default"](_ref, _excluded$4);
|
|
42827
42828
|
var _useState = React.useState(null),
|
|
42828
42829
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
42829
|
-
swiper = _useState2[0]
|
|
42830
|
-
_useState2[1];
|
|
42830
|
+
swiper = _useState2[0],
|
|
42831
|
+
setSwiper = _useState2[1];
|
|
42831
42832
|
var properties = configurations.properties,
|
|
42832
42833
|
design = configurations.design;
|
|
42833
42834
|
var slides = properties.slides,
|
|
@@ -42961,7 +42962,24 @@ var HeroWithGallery = function HeroWithGallery(_ref) {
|
|
|
42961
42962
|
onClick: function onClick() {
|
|
42962
42963
|
return swiper === null || swiper === void 0 ? void 0 : swiper.slidePrev();
|
|
42963
42964
|
}
|
|
42964
|
-
}), /*#__PURE__*/React__default["default"].createElement(
|
|
42965
|
+
}), /*#__PURE__*/React__default["default"].createElement(Swiper, {
|
|
42966
|
+
loop: true,
|
|
42967
|
+
className: "ns-hero-with-slider",
|
|
42968
|
+
onSwiper: setSwiper
|
|
42969
|
+
}, slides.map(function (_ref7, index) {
|
|
42970
|
+
var content = _ref7.content,
|
|
42971
|
+
buttons = _ref7.buttons,
|
|
42972
|
+
media = _ref7.media;
|
|
42973
|
+
return /*#__PURE__*/React__default["default"].createElement(SwiperSlide, {
|
|
42974
|
+
className: classnames("my-auto", className),
|
|
42975
|
+
key: getUniqueKey(content.title, index)
|
|
42976
|
+
}, renderHeroWithMedia({
|
|
42977
|
+
content: content,
|
|
42978
|
+
buttons: buttons,
|
|
42979
|
+
media: media,
|
|
42980
|
+
index: index
|
|
42981
|
+
}));
|
|
42982
|
+
})), /*#__PURE__*/React__default["default"].createElement(ArrowButton, {
|
|
42965
42983
|
Icon: ArrowRightS$1,
|
|
42966
42984
|
className: "hidden sm:flex",
|
|
42967
42985
|
design: design.navigationButtons,
|