@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.cjs.js CHANGED
@@ -14252,7 +14252,8 @@ var StyledAnchor = styled__default["default"].a.attrs(function (props) {
14252
14252
  var DropdownWrapper = styled__default["default"].div(function (_ref) {
14253
14253
  var index = _ref.index,
14254
14254
  height = _ref.height,
14255
- totalLength = _ref.totalLength;
14255
+ totalLength = _ref.totalLength,
14256
+ paddingHorizontal = _ref.paddingHorizontal;
14256
14257
  var _useState = React.useState(0),
14257
14258
  _useState2 = _slicedToArray__default["default"](_useState, 2),
14258
14259
  cumulativeWidth = _useState2[0],
@@ -14264,11 +14265,11 @@ var DropdownWrapper = styled__default["default"].div(function (_ref) {
14264
14265
 
14265
14266
  // Calculate cumulative width of dropdowns with buffer
14266
14267
  React.useEffect(function () {
14267
- var cumulativeWidth = 0;
14268
+ var cumulativeWidth = paddingHorizontal;
14268
14269
  for (var i = totalLength - 1; i > index; i--) {
14269
14270
  var dropdown = (iframeDocument !== null && iframeDocument !== void 0 ? iframeDocument : document).getElementById("dropdown-".concat(i));
14270
14271
  if (dropdown) {
14271
- cumulativeWidth += dropdown.offsetWidth + 15; // buffer width
14272
+ cumulativeWidth += dropdown.offsetWidth + 20; // buffer width
14272
14273
  }
14273
14274
  }
14274
14275
 
@@ -15595,7 +15596,7 @@ var Link = withConditionalRender(LinkElement, function () {
15595
15596
  return !!(prop("label") || prop("icon"));
15596
15597
  });
15597
15598
 
15598
- var _excluded$h = ["link", "design", "index", "height", "className", "totalLength"];
15599
+ var _excluded$h = ["link", "design", "index", "height", "className", "totalLength", "paddingHorizontal"];
15599
15600
  var Dropdown = function Dropdown(_ref) {
15600
15601
  var link = _ref.link,
15601
15602
  design = _ref.design,
@@ -15604,6 +15605,8 @@ var Dropdown = function Dropdown(_ref) {
15604
15605
  _ref$className = _ref.className,
15605
15606
  className = _ref$className === void 0 ? "" : _ref$className,
15606
15607
  totalLength = _ref.totalLength,
15608
+ _ref$paddingHorizonta = _ref.paddingHorizontal,
15609
+ paddingHorizontal = _ref$paddingHorizonta === void 0 ? 0 : _ref$paddingHorizonta,
15607
15610
  otherProps = _objectWithoutProperties__default["default"](_ref, _excluded$h);
15608
15611
  var _useState = React.useState(false),
15609
15612
  _useState2 = _slicedToArray__default["default"](_useState, 2),
@@ -15630,6 +15633,7 @@ var Dropdown = function Dropdown(_ref) {
15630
15633
  className: className,
15631
15634
  height: height,
15632
15635
  index: index,
15636
+ paddingHorizontal: paddingHorizontal,
15633
15637
  totalLength: totalLength
15634
15638
  }, /*#__PURE__*/React__default["default"].createElement("div", {
15635
15639
  className: "flex cursor-pointer items-center justify-between lg:h-full lg:justify-center",
@@ -41606,9 +41610,6 @@ var GalleryClassic = function GalleryClassic(_ref) {
41606
41610
  spaceBetween: 10
41607
41611
  }
41608
41612
  },
41609
- className: classnames({
41610
- "pointer-events-none": disableButtonAndLinks
41611
- }),
41612
41613
  onSwiper: function onSwiper(swiper) {
41613
41614
  swiperRef.current = swiper;
41614
41615
  }
@@ -41617,8 +41618,10 @@ var GalleryClassic = function GalleryClassic(_ref) {
41617
41618
  caption = _ref2.title,
41618
41619
  style = _ref2.style;
41619
41620
  return /*#__PURE__*/React__default["default"].createElement(SwiperSlide, {
41620
- className: "swiper__wrapper",
41621
- key: getUniqueKey(src, title, index)
41621
+ key: getUniqueKey(src, title, index),
41622
+ className: classnames("swiper__wrapper", {
41623
+ "pointer-events-none": disableButtonAndLinks
41624
+ })
41622
41625
  }, /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
41623
41626
  src: src,
41624
41627
  alt: caption,
@@ -41917,6 +41920,7 @@ var HeaderWithDropdownLinks = function HeaderWithDropdownLinks(_ref) {
41917
41920
  design: design.links,
41918
41921
  height: headerHeight,
41919
41922
  key: getUniqueKey(link.label, link.to, index),
41923
+ paddingHorizontal: design.body.paddingHorizontal,
41920
41924
  totalLength: properties.links.length
41921
41925
  });
41922
41926
  })), /*#__PURE__*/React__default["default"].createElement("button", {
@@ -42331,14 +42335,14 @@ var HeroWithGallery = function HeroWithGallery(_ref) {
42331
42335
  })
42332
42336
  })));
42333
42337
  };
42334
- return /*#__PURE__*/React__default["default"].createElement(MotionWrapper, {
42338
+ return /*#__PURE__*/React__default["default"].createElement(BlockWrapper, {
42335
42339
  enableAnimation: enableAnimation,
42336
42340
  id: id,
42337
42341
  backgroundImage: mergeLeft({
42338
42342
  src: src
42339
42343
  }, design.backgroundImage),
42340
- className: "flex items-center justify-between gap-x-2",
42341
- design: mergeDesign(design.body, 24)
42344
+ design: design.body,
42345
+ nestedClassName: "flex items-center justify-between gap-x-2"
42342
42346
  }, slides.length > 1 ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(ArrowButton, {
42343
42347
  isStart: true,
42344
42348
  Icon: ArrowLeftS$1,
@@ -42350,6 +42354,7 @@ var HeroWithGallery = function HeroWithGallery(_ref) {
42350
42354
  }
42351
42355
  }), /*#__PURE__*/React__default["default"].createElement(Swiper, {
42352
42356
  loop: true,
42357
+ className: "ns-hero-with-slider",
42353
42358
  keyboard: {
42354
42359
  enabled: true,
42355
42360
  onlyInViewport: true
@@ -42358,9 +42363,6 @@ var HeroWithGallery = function HeroWithGallery(_ref) {
42358
42363
  pagination: {
42359
42364
  clickable: true
42360
42365
  },
42361
- className: classnames("ns-hero-with-slider", {
42362
- "pointer-events-none": disableButtonAndLinks
42363
- }),
42364
42366
  onSwiper: function onSwiper(swiper) {
42365
42367
  swiperRef.current = swiper;
42366
42368
  }
@@ -42369,8 +42371,10 @@ var HeroWithGallery = function HeroWithGallery(_ref) {
42369
42371
  buttons = _ref7.buttons,
42370
42372
  media = _ref7.media;
42371
42373
  return /*#__PURE__*/React__default["default"].createElement(SwiperSlide, {
42372
- className: classnames("my-auto", className),
42373
- key: getUniqueKey(content.title, index)
42374
+ key: getUniqueKey(content.title, index),
42375
+ className: classnames("my-auto", className, {
42376
+ "pointer-events-none": disableButtonAndLinks
42377
+ })
42374
42378
  }, renderHeroWithMedia({
42375
42379
  content: content,
42376
42380
  buttons: buttons,