@bigbinary/neeto-site-blocks 1.16.2 → 1.16.4

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
@@ -13035,6 +13035,7 @@ var CardsInGridView = function CardsInGridView(_ref) {
13035
13035
  });
13036
13036
  };
13037
13037
  if (isSliderView) {
13038
+ var isNavigationButtonEnabled = cards.length > 2;
13038
13039
  return /*#__PURE__*/jsxRuntime.jsxs(BlockWrapper, {
13039
13040
  className: className,
13040
13041
  enableAnimation: enableAnimation,
@@ -13055,7 +13056,7 @@ var CardsInGridView = function CardsInGridView(_ref) {
13055
13056
  style: design.title
13056
13057
  }, otherProps), {}, {
13057
13058
  children: title
13058
- })), /*#__PURE__*/jsxRuntime.jsx(ArrowButton, {
13059
+ })), isNavigationButtonEnabled && /*#__PURE__*/jsxRuntime.jsx(ArrowButton, {
13059
13060
  isStart: true,
13060
13061
  Icon: ArrowLeft$1,
13061
13062
  className: "flex-shrink-0",
@@ -13074,7 +13075,7 @@ var CardsInGridView = function CardsInGridView(_ref) {
13074
13075
  spaceBetween: 10,
13075
13076
  breakpoints: {
13076
13077
  480: {
13077
- slidesPerView: 2,
13078
+ slidesPerView: cards.length > 1 ? 2 : 1,
13078
13079
  spaceBetween: 15
13079
13080
  }
13080
13081
  },
@@ -13094,8 +13095,8 @@ var CardsInGridView = function CardsInGridView(_ref) {
13094
13095
  }))
13095
13096
  }, getUniqueKey(card.title, card.description, index));
13096
13097
  })
13097
- })
13098
- }), /*#__PURE__*/jsxRuntime.jsx(ArrowButton, {
13098
+ }, cards.length)
13099
+ }), isNavigationButtonEnabled && /*#__PURE__*/jsxRuntime.jsx(ArrowButton, {
13099
13100
  Icon: ArrowRight$1,
13100
13101
  className: "flex-shrink-0",
13101
13102
  isActive: activeIndex < cards.length - 2,
@@ -15130,6 +15131,7 @@ var GalleryClassic = function GalleryClassic(_ref) {
15130
15131
  images = _properties$images === void 0 ? [] : _properties$images,
15131
15132
  src = properties.backgroundImage.src;
15132
15133
  var baseClasses = "grid grid-cols-12 items-center gap-y-8";
15134
+ var isNavigationEnabled = images.length > 2;
15133
15135
  return /*#__PURE__*/jsxRuntime.jsxs(BlockWrapper, {
15134
15136
  className: className,
15135
15137
  enableAnimation: enableAnimation,
@@ -15156,7 +15158,7 @@ var GalleryClassic = function GalleryClassic(_ref) {
15156
15158
  style: design.description,
15157
15159
  children: description
15158
15160
  })]
15159
- }), /*#__PURE__*/jsxRuntime.jsx(ArrowButton, {
15161
+ }), isNavigationEnabled && /*#__PURE__*/jsxRuntime.jsx(ArrowButton, {
15160
15162
  isStart: true,
15161
15163
  Icon: ArrowLeft$1,
15162
15164
  className: "hidden justify-center sm:flex",
@@ -15173,7 +15175,7 @@ var GalleryClassic = function GalleryClassic(_ref) {
15173
15175
  spaceBetween: 10,
15174
15176
  breakpoints: {
15175
15177
  640: {
15176
- slidesPerView: 2,
15178
+ slidesPerView: images.length > 1 ? 2 : 1,
15177
15179
  spaceBetween: 10
15178
15180
  }
15179
15181
  },
@@ -15199,11 +15201,11 @@ var GalleryClassic = function GalleryClassic(_ref) {
15199
15201
  })
15200
15202
  }, getUniqueKey(src, title, index));
15201
15203
  })
15202
- }), /*#__PURE__*/jsxRuntime.jsx(Pagination, {
15204
+ }, images.length), isNavigationEnabled && /*#__PURE__*/jsxRuntime.jsx(Pagination, {
15203
15205
  swiper: swiper,
15204
15206
  design: design.button
15205
15207
  })]
15206
- }), /*#__PURE__*/jsxRuntime.jsx(ArrowButton, {
15208
+ }), isNavigationEnabled && /*#__PURE__*/jsxRuntime.jsx(ArrowButton, {
15207
15209
  Icon: ArrowRight$1,
15208
15210
  className: "hidden justify-center sm:flex",
15209
15211
  design: design.navigationButtons,
@@ -16075,8 +16077,8 @@ var GalleryWithAutoplay = function GalleryWithAutoplay(_ref) {
16075
16077
  })
16076
16078
  }, getUniqueKey(src, title, index));
16077
16079
  })
16078
- })
16079
- }), /*#__PURE__*/jsxRuntime.jsx("div", {
16080
+ }, images.length)
16081
+ }), images.length > 1 && /*#__PURE__*/jsxRuntime.jsx("div", {
16080
16082
  className: "col-span-12 flex justify-center",
16081
16083
  children: /*#__PURE__*/jsxRuntime.jsx(Pagination, {
16082
16084
  swiper: swiper,
@@ -17489,12 +17491,12 @@ var TestimonialWithSlider = function TestimonialWithSlider(_ref) {
17489
17491
  })]
17490
17492
  })
17491
17493
  }, getUniqueKey(testimonialDescription, logoUrl, index));
17492
- }), /*#__PURE__*/jsxRuntime.jsx(Pagination, {
17494
+ }), testimonials.length > 1 && /*#__PURE__*/jsxRuntime.jsx(Pagination, {
17493
17495
  swiper: swiper,
17494
17496
  hasNavigation: true,
17495
17497
  design: design.buttons
17496
17498
  })]
17497
- })
17499
+ }, testimonials.length)
17498
17500
  }), isButtonRequired && /*#__PURE__*/jsxRuntime.jsx(StyledWrapper, {
17499
17501
  className: "col-span-12 flex",
17500
17502
  design: {