@bigbinary/neeto-site-blocks 1.7.0 → 1.7.2

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.js CHANGED
@@ -14206,7 +14206,8 @@ var StyledAnchor = styled.a.attrs(function (props) {
14206
14206
  var DropdownWrapper = styled.div(function (_ref) {
14207
14207
  var index = _ref.index,
14208
14208
  height = _ref.height,
14209
- totalLength = _ref.totalLength;
14209
+ totalLength = _ref.totalLength,
14210
+ paddingHorizontal = _ref.paddingHorizontal;
14210
14211
  var _useState = useState(0),
14211
14212
  _useState2 = _slicedToArray(_useState, 2),
14212
14213
  cumulativeWidth = _useState2[0],
@@ -14218,11 +14219,11 @@ var DropdownWrapper = styled.div(function (_ref) {
14218
14219
 
14219
14220
  // Calculate cumulative width of dropdowns with buffer
14220
14221
  useEffect(function () {
14221
- var cumulativeWidth = 0;
14222
+ var cumulativeWidth = paddingHorizontal;
14222
14223
  for (var i = totalLength - 1; i > index; i--) {
14223
14224
  var dropdown = (iframeDocument !== null && iframeDocument !== void 0 ? iframeDocument : document).getElementById("dropdown-".concat(i));
14224
14225
  if (dropdown) {
14225
- cumulativeWidth += dropdown.offsetWidth + 15; // buffer width
14226
+ cumulativeWidth += dropdown.offsetWidth + 20; // buffer width
14226
14227
  }
14227
14228
  }
14228
14229
 
@@ -15549,7 +15550,7 @@ var Link = withConditionalRender(LinkElement, function () {
15549
15550
  return !!(prop("label") || prop("icon"));
15550
15551
  });
15551
15552
 
15552
- var _excluded$h = ["link", "design", "index", "height", "className", "totalLength"];
15553
+ var _excluded$h = ["link", "design", "index", "height", "className", "totalLength", "paddingHorizontal"];
15553
15554
  var Dropdown = function Dropdown(_ref) {
15554
15555
  var link = _ref.link,
15555
15556
  design = _ref.design,
@@ -15558,6 +15559,8 @@ var Dropdown = function Dropdown(_ref) {
15558
15559
  _ref$className = _ref.className,
15559
15560
  className = _ref$className === void 0 ? "" : _ref$className,
15560
15561
  totalLength = _ref.totalLength,
15562
+ _ref$paddingHorizonta = _ref.paddingHorizontal,
15563
+ paddingHorizontal = _ref$paddingHorizonta === void 0 ? 0 : _ref$paddingHorizonta,
15561
15564
  otherProps = _objectWithoutProperties(_ref, _excluded$h);
15562
15565
  var _useState = useState(false),
15563
15566
  _useState2 = _slicedToArray(_useState, 2),
@@ -15584,6 +15587,7 @@ var Dropdown = function Dropdown(_ref) {
15584
15587
  className: className,
15585
15588
  height: height,
15586
15589
  index: index,
15590
+ paddingHorizontal: paddingHorizontal,
15587
15591
  totalLength: totalLength
15588
15592
  }, /*#__PURE__*/React__default.createElement("div", {
15589
15593
  className: "flex cursor-pointer items-center justify-between lg:h-full lg:justify-center",
@@ -41560,9 +41564,6 @@ var GalleryClassic = function GalleryClassic(_ref) {
41560
41564
  spaceBetween: 10
41561
41565
  }
41562
41566
  },
41563
- className: classnames({
41564
- "pointer-events-none": disableButtonAndLinks
41565
- }),
41566
41567
  onSwiper: function onSwiper(swiper) {
41567
41568
  swiperRef.current = swiper;
41568
41569
  }
@@ -41571,8 +41572,10 @@ var GalleryClassic = function GalleryClassic(_ref) {
41571
41572
  caption = _ref2.title,
41572
41573
  style = _ref2.style;
41573
41574
  return /*#__PURE__*/React__default.createElement(SwiperSlide, {
41574
- className: "swiper__wrapper",
41575
- key: getUniqueKey(src, title, index)
41575
+ key: getUniqueKey(src, title, index),
41576
+ className: classnames("swiper__wrapper", {
41577
+ "pointer-events-none": disableButtonAndLinks
41578
+ })
41576
41579
  }, /*#__PURE__*/React__default.createElement(StyledImage$1, {
41577
41580
  src: src,
41578
41581
  alt: caption,
@@ -41871,6 +41874,7 @@ var HeaderWithDropdownLinks = function HeaderWithDropdownLinks(_ref) {
41871
41874
  design: design.links,
41872
41875
  height: headerHeight,
41873
41876
  key: getUniqueKey(link.label, link.to, index),
41877
+ paddingHorizontal: design.body.paddingHorizontal,
41874
41878
  totalLength: properties.links.length
41875
41879
  });
41876
41880
  })), /*#__PURE__*/React__default.createElement("button", {
@@ -42285,14 +42289,14 @@ var HeroWithGallery = function HeroWithGallery(_ref) {
42285
42289
  })
42286
42290
  })));
42287
42291
  };
42288
- return /*#__PURE__*/React__default.createElement(MotionWrapper, {
42292
+ return /*#__PURE__*/React__default.createElement(BlockWrapper, {
42289
42293
  enableAnimation: enableAnimation,
42290
42294
  id: id,
42291
42295
  backgroundImage: mergeLeft({
42292
42296
  src: src
42293
42297
  }, design.backgroundImage),
42294
- className: "flex items-center justify-between gap-x-2",
42295
- design: mergeDesign(design.body, 24)
42298
+ design: design.body,
42299
+ nestedClassName: "flex items-center justify-between gap-x-2"
42296
42300
  }, slides.length > 1 ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(ArrowButton, {
42297
42301
  isStart: true,
42298
42302
  Icon: ArrowLeftS$1,
@@ -42304,6 +42308,7 @@ var HeroWithGallery = function HeroWithGallery(_ref) {
42304
42308
  }
42305
42309
  }), /*#__PURE__*/React__default.createElement(Swiper, {
42306
42310
  loop: true,
42311
+ className: "ns-hero-with-slider",
42307
42312
  keyboard: {
42308
42313
  enabled: true,
42309
42314
  onlyInViewport: true
@@ -42312,9 +42317,6 @@ var HeroWithGallery = function HeroWithGallery(_ref) {
42312
42317
  pagination: {
42313
42318
  clickable: true
42314
42319
  },
42315
- className: classnames("ns-hero-with-slider", {
42316
- "pointer-events-none": disableButtonAndLinks
42317
- }),
42318
42320
  onSwiper: function onSwiper(swiper) {
42319
42321
  swiperRef.current = swiper;
42320
42322
  }
@@ -42323,8 +42325,10 @@ var HeroWithGallery = function HeroWithGallery(_ref) {
42323
42325
  buttons = _ref7.buttons,
42324
42326
  media = _ref7.media;
42325
42327
  return /*#__PURE__*/React__default.createElement(SwiperSlide, {
42326
- className: classnames("my-auto", className),
42327
- key: getUniqueKey(content.title, index)
42328
+ key: getUniqueKey(content.title, index),
42329
+ className: classnames("my-auto", className, {
42330
+ "pointer-events-none": disableButtonAndLinks
42331
+ })
42328
42332
  }, renderHeroWithMedia({
42329
42333
  content: content,
42330
42334
  buttons: buttons,