@bigbinary/neeto-site-blocks 1.6.9 → 1.7.0

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 CHANGED
@@ -20776,7 +20776,8 @@ var CardsInGridView = function CardsInGridView(_ref) {
20776
20776
  var configurations = _ref.configurations,
20777
20777
  _ref$className = _ref.className,
20778
20778
  className = _ref$className === void 0 ? "" : _ref$className,
20779
- id = _ref.id;
20779
+ id = _ref.id,
20780
+ disableButtonAndLinks = _ref.disableButtonAndLinks;
20780
20781
  var _useState = React.useState(0),
20781
20782
  _useState2 = _slicedToArray__default["default"](_useState, 2),
20782
20783
  activeIndex = _useState2[0],
@@ -20869,6 +20870,9 @@ var CardsInGridView = function CardsInGridView(_ref) {
20869
20870
  spaceBetween: 15
20870
20871
  }
20871
20872
  },
20873
+ className: classnames({
20874
+ "pointer-events-none": disableButtonAndLinks
20875
+ }),
20872
20876
  onSlideChange: function onSlideChange(swiper) {
20873
20877
  return setActiveIndex(swiper.activeIndex);
20874
20878
  },
@@ -20886,7 +20890,12 @@ var CardsInGridView = function CardsInGridView(_ref) {
20886
20890
  var _swiperRef$current2;
20887
20891
  return (_swiperRef$current2 = swiperRef.current) === null || _swiperRef$current2 === void 0 ? void 0 : _swiperRef$current2.slideNext();
20888
20892
  }
20889
- }));
20893
+ }), isButtonRequired && /*#__PURE__*/React__default["default"].createElement("div", {
20894
+ className: "col-span-12 grid grid-cols-12"
20895
+ }, /*#__PURE__*/React__default["default"].createElement(Button$1, _extends__default["default"]({
20896
+ className: "col-span-12 flex justify-center sm:col-span-6 sm:col-start-4 lg:col-span-4 lg:col-start-5",
20897
+ style: design.button
20898
+ }, button))));
20890
20899
  }
20891
20900
  return /*#__PURE__*/React__default["default"].createElement(BlockWrapper, {
20892
20901
  className: className,