@bigbinary/neeto-site-blocks 1.2.4 → 1.2.6

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
@@ -2631,7 +2631,8 @@ var COMPONENTS = {
2631
2631
  sup: "sup",
2632
2632
  u: "u",
2633
2633
  code: "code",
2634
- blockquote: "blockquote"
2634
+ blockquote: "blockquote",
2635
+ div: "div"
2635
2636
  };
2636
2637
  var SPACING_VALUES = {
2637
2638
  none: 0,
@@ -15560,7 +15561,7 @@ var Typography = function Typography(_ref) {
15560
15561
  var _ref$style = _ref.style,
15561
15562
  style = _ref$style === void 0 ? DEFAULT_TYPOGRAPHY_STYLES : _ref$style,
15562
15563
  _ref$component = _ref.component,
15563
- component = _ref$component === void 0 ? COMPONENTS.p : _ref$component,
15564
+ component = _ref$component === void 0 ? COMPONENTS.div : _ref$component,
15564
15565
  _ref$className = _ref.className,
15565
15566
  className = _ref$className === void 0 ? "" : _ref$className,
15566
15567
  _ref$isTitle = _ref.isTitle,
@@ -15568,7 +15569,7 @@ var Typography = function Typography(_ref) {
15568
15569
  children = _ref.children,
15569
15570
  otherProps = _objectWithoutProperties(_ref, _excluded$e);
15570
15571
  return /*#__PURE__*/React__default.createElement(StyledWrapper, _extends$2({
15571
- as: component,
15572
+ as: isTitle ? component : COMPONENTS.div,
15572
15573
  className: classnames("neeto-site-typography break-words", className),
15573
15574
  design: style
15574
15575
  }, otherProps), isTitle ? children : /*#__PURE__*/React__default.createElement(StyledInterweave, {
@@ -40884,9 +40885,10 @@ var HeroWithMultipleLayouts = function HeroWithMultipleLayouts(_ref) {
40884
40885
  var src = _ref2.src,
40885
40886
  position = _ref2.position;
40886
40887
  return classnames("sm:col-span-6 col-span-12", {
40887
- "sm:col-start-1": src && position === POSITIONS.RIGHT.label && src,
40888
- "sm:col-span-8 sm:col-start-3": src && position === POSITIONS.CENTER.label && src,
40889
- "sm:col-start-7": src && position === POSITIONS.LEFT.label && src,
40888
+ "sm:col-start-1": src && position === POSITIONS.RIGHT.label,
40889
+ "sm:col-span-8 sm:col-start-3": src && position === POSITIONS.BOTTOM.label,
40890
+ "sm:col-span-12 sm:col-start-1 flex flex-col justify-center order-2": src && position === POSITIONS.TOP.label,
40891
+ "sm:col-start-7": src && position === POSITIONS.LEFT.label,
40890
40892
  "flex flex-col justify-center sm:col-span-12": !src
40891
40893
  });
40892
40894
  };
@@ -40896,7 +40898,8 @@ var HeroWithMultipleLayouts = function HeroWithMultipleLayouts(_ref) {
40896
40898
  return classnames("sm:col-span-5 col-span-12 flex justify-center", {
40897
40899
  "sm:col-start-1": src && position === POSITIONS.LEFT.label,
40898
40900
  "sm:col-start-8": src && position === POSITIONS.RIGHT.label,
40899
- "sm:col-span-8 sm:col-start-3": src && position === POSITIONS.CENTER.label,
40901
+ "sm:col-span-8 sm:col-start-3": src && position === POSITIONS.BOTTOM.label,
40902
+ "sm:col-span-8 sm:col-start-3 flex justify-center order-1": src && position === POSITIONS.TOP.label,
40900
40903
  hidden: !src
40901
40904
  });
40902
40905
  };
@@ -40904,24 +40907,24 @@ var HeroWithMultipleLayouts = function HeroWithMultipleLayouts(_ref) {
40904
40907
  var src = _ref4.src,
40905
40908
  position = _ref4.position;
40906
40909
  return classnames("flex w-full gap-x-4", {
40907
- "justify-center": !src || position === POSITIONS.CENTER.label
40910
+ "justify-center": !src || position === POSITIONS.BOTTOM.label || position === POSITIONS.TOP.label
40908
40911
  });
40909
40912
  };
40910
40913
  var textClasses = function textClasses(_ref5) {
40911
40914
  var src = _ref5.src,
40912
40915
  position = _ref5.position;
40913
40916
  return classnames({
40914
- "text-center": !src || position === POSITIONS.CENTER.label
40917
+ "text-center": !src || position === POSITIONS.BOTTOM.label || position === POSITIONS.TOP.label
40915
40918
  });
40916
40919
  };
40917
40920
  return /*#__PURE__*/React__default.createElement(MotionWrapper, {
40921
+ enableAnimation: enableAnimation,
40922
+ id: id,
40918
40923
  backgroundImage: mergeLeft({
40919
40924
  src: src
40920
40925
  }, design.backgroundImage),
40921
40926
  className: "flex items-center justify-between gap-x-2",
40922
- design: mergeDesign(design.body, 24),
40923
- enableAnimation: enableAnimation,
40924
- id: id
40927
+ design: mergeDesign(design.body, 24)
40925
40928
  }, /*#__PURE__*/React__default.createElement(ArrowButton, {
40926
40929
  isStart: true,
40927
40930
  Icon: ArrowLeftS$1,
@@ -40987,7 +40990,7 @@ var HeroWithMultipleLayouts = function HeroWithMultipleLayouts(_ref) {
40987
40990
  lgImageSize: design.media.width,
40988
40991
  src: media.src,
40989
40992
  className: classnames({
40990
- "slider-image": media.position !== POSITIONS.CENTER.label
40993
+ "slider-image": media.position !== POSITIONS.BOTTOM.label || media.position !== POSITIONS.TOP.label
40991
40994
  })
40992
40995
  }))));
40993
40996
  })), /*#__PURE__*/React__default.createElement(ArrowButton, {