@bigbinary/neeto-site-blocks 1.1.7 → 1.1.9

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
@@ -20501,6 +20501,7 @@ var CardsInGridView = function CardsInGridView(_ref) {
20501
20501
  isSliderView = properties.isSliderView,
20502
20502
  isButtonRequired = properties.isButtonRequired,
20503
20503
  button = properties.button,
20504
+ mode = properties.mode,
20504
20505
  src = properties.backgroundImage.src;
20505
20506
  var baseClasses = "ns-card grid grid-cols-12 sm:gap-x-4 gap-y-4 items-center";
20506
20507
  var renderCard = function renderCard(_ref2) {
@@ -20509,17 +20510,23 @@ var CardsInGridView = function CardsInGridView(_ref) {
20509
20510
  imageUrl = _ref2.imageUrl,
20510
20511
  href = _ref2.href;
20511
20512
  return /*#__PURE__*/React__default["default"].createElement(MotionWrapper, {
20512
- className: "ns-card-in-grid-view col-span-12 cursor-pointer space-y-8 space-y-8 sm:col-span-6 lg:col-span-4",
20513
+ enableAnimation: enableAnimation,
20513
20514
  design: design.card,
20514
20515
  duration: 0.01,
20515
- enableAnimation: enableAnimation,
20516
+ className: classnames("ns-card-in-grid-view col-span-12 cursor-pointer space-y-8 space-y-8 sm:col-span-6 lg:col-span-4", {
20517
+ "ns-card-in-grid-view--landscape": mode === "landscape",
20518
+ "ns-card-in-grid-view--portrait": mode === "portrait"
20519
+ }),
20516
20520
  onClick: function onClick() {
20517
20521
  return href && window.open(href, "_blank");
20518
20522
  }
20519
20523
  }, /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
20520
- className: "mx-auto max-h-40 object-cover",
20521
20524
  design: design.cardImage,
20522
- src: imageUrl
20525
+ src: imageUrl,
20526
+ className: classnames("mx-auto", {
20527
+ "max-h-40": mode === "landscape",
20528
+ "max-h-72": mode === "portrait"
20529
+ })
20523
20530
  }), /*#__PURE__*/React__default["default"].createElement("div", {
20524
20531
  className: "gap-x-2 sm:gap-y-4"
20525
20532
  }, /*#__PURE__*/React__default["default"].createElement(Typography$1, {
@@ -20535,13 +20542,13 @@ var CardsInGridView = function CardsInGridView(_ref) {
20535
20542
  };
20536
20543
  if (isSliderView) {
20537
20544
  return /*#__PURE__*/React__default["default"].createElement(BlockWrapper, {
20545
+ className: className,
20546
+ enableAnimation: enableAnimation,
20547
+ id: id,
20538
20548
  backgroundImage: mergeLeft({
20539
20549
  src: src
20540
20550
  }, design.backgroundImage),
20541
- className: className,
20542
20551
  design: design.body,
20543
- enableAnimation: enableAnimation,
20544
- id: id,
20545
20552
  nestedClassName: baseClasses,
20546
20553
  nestedComponent: MotionWrapper
20547
20554
  }, /*#__PURE__*/React__default["default"].createElement(Typography$1, {
@@ -20588,20 +20595,20 @@ var CardsInGridView = function CardsInGridView(_ref) {
20588
20595
  }));
20589
20596
  }
20590
20597
  return /*#__PURE__*/React__default["default"].createElement(BlockWrapper, {
20598
+ className: className,
20599
+ id: id,
20591
20600
  backgroundImage: mergeLeft({
20592
20601
  src: src
20593
20602
  }, design.backgroundImage),
20594
- className: className,
20595
20603
  design: design.body,
20596
- id: id,
20597
20604
  nestedClassName: baseClasses,
20598
20605
  nestedComponent: StyledWrapper
20599
- }, title && /*#__PURE__*/React__default["default"].createElement(Typography$1, {
20606
+ }, /*#__PURE__*/React__default["default"].createElement(Typography$1, {
20600
20607
  isTitle: true,
20601
20608
  className: "col-span-12",
20602
20609
  component: "h1",
20603
20610
  style: design.title
20604
- }, title), description && /*#__PURE__*/React__default["default"].createElement(Typography$1, {
20611
+ }, title), /*#__PURE__*/React__default["default"].createElement(Typography$1, {
20605
20612
  className: "col-span-12",
20606
20613
  component: "p",
20607
20614
  style: design.description
@@ -40985,23 +40992,28 @@ var LogoClouds = function LogoClouds(_ref) {
40985
40992
  logos = _properties$logos === void 0 ? [] : _properties$logos,
40986
40993
  title = properties.title,
40987
40994
  enableAnimation = properties.enableAnimation,
40995
+ logoCount = properties.logoCount,
40996
+ showColoredLogo = properties.showColoredLogo,
40988
40997
  src = properties.backgroundImage.src;
40989
40998
  var baseClasses = "grid grid-cols-12 items-center sm:gap-x-4 gap-y-10";
40990
40999
  var logoBaseClasses = function logoBaseClasses(index) {
40991
- return classnames("ns-logo-clouds col-span-6 flex justify-center sm:col-span-3", {
41000
+ return classnames("col-span-6 flex justify-center", {
41001
+ "lg:col-span-2": logoCount === 6,
41002
+ "sm:col-span-3": logoCount === 4,
41003
+ "ns-logo-clouds": !showColoredLogo,
40992
41004
  "sm:col-start-4": logos.length % 4 === 2 && index === logos.length - 2,
40993
41005
  "sm:col-start-3": logos.length % 4 === 3 && index === logos.length - 3,
40994
41006
  "col-start-3": logos.length % 2 === 1 && index === logos.length - 1
40995
41007
  });
40996
41008
  };
40997
41009
  return /*#__PURE__*/React__default["default"].createElement(BlockWrapper, {
41010
+ className: className,
41011
+ enableAnimation: enableAnimation,
41012
+ id: id,
40998
41013
  backgroundImage: mergeLeft({
40999
41014
  src: src
41000
41015
  }, design.backgroundImage),
41001
- className: className,
41002
41016
  design: design.body,
41003
- enableAnimation: enableAnimation,
41004
- id: id,
41005
41017
  nestedClassName: baseClasses
41006
41018
  }, /*#__PURE__*/React__default["default"].createElement(Typography$1, {
41007
41019
  className: "col-span-12",
@@ -41017,10 +41029,10 @@ var LogoClouds = function LogoClouds(_ref) {
41017
41029
  key: getUniqueKey(title, index)
41018
41030
  }, /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
41019
41031
  alt: alt,
41020
- className: "logo-image",
41021
- design: design.logo,
41022
41032
  src: src,
41023
- title: title
41033
+ title: title,
41034
+ className: "logo-image",
41035
+ design: design.logo
41024
41036
  }));
41025
41037
  }));
41026
41038
  };