@bigbinary/neeto-site-blocks 1.10.6 → 1.11.0-beta1
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 +6 -27
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +6 -27
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -42772,17 +42772,16 @@ 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
|
|
42777
|
-
|
|
42778
|
-
id = _ref.id,
|
|
42775
|
+
var configurations = _ref.configurations;
|
|
42776
|
+
_ref.className;
|
|
42777
|
+
var id = _ref.id,
|
|
42779
42778
|
disableButtonAndLinks = _ref.disableButtonAndLinks,
|
|
42780
42779
|
image = _ref.image,
|
|
42781
42780
|
otherProps = _objectWithoutProperties(_ref, _excluded$4);
|
|
42782
42781
|
var _useState = useState(null),
|
|
42783
42782
|
_useState2 = _slicedToArray(_useState, 2),
|
|
42784
|
-
swiper = _useState2[0]
|
|
42785
|
-
|
|
42783
|
+
swiper = _useState2[0];
|
|
42784
|
+
_useState2[1];
|
|
42786
42785
|
var properties = configurations.properties,
|
|
42787
42786
|
design = configurations.design;
|
|
42788
42787
|
var slides = properties.slides,
|
|
@@ -42916,27 +42915,7 @@ var HeroWithGallery = function HeroWithGallery(_ref) {
|
|
|
42916
42915
|
onClick: function onClick() {
|
|
42917
42916
|
return swiper === null || swiper === void 0 ? void 0 : swiper.slidePrev();
|
|
42918
42917
|
}
|
|
42919
|
-
}), /*#__PURE__*/React__default.createElement(
|
|
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(Pagination, {
|
|
42937
|
-
swiper: swiper,
|
|
42938
|
-
className: "!relative"
|
|
42939
|
-
})), /*#__PURE__*/React__default.createElement(ArrowButton, {
|
|
42918
|
+
}), /*#__PURE__*/React__default.createElement(ArrowButton, {
|
|
42940
42919
|
Icon: ArrowRightS$1,
|
|
42941
42920
|
className: "hidden sm:flex",
|
|
42942
42921
|
design: design.navigationButtons,
|