@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.cjs.js CHANGED
@@ -2677,7 +2677,8 @@ var COMPONENTS = {
2677
2677
  sup: "sup",
2678
2678
  u: "u",
2679
2679
  code: "code",
2680
- blockquote: "blockquote"
2680
+ blockquote: "blockquote",
2681
+ div: "div"
2681
2682
  };
2682
2683
  var SPACING_VALUES = {
2683
2684
  none: 0,
@@ -15606,7 +15607,7 @@ var Typography = function Typography(_ref) {
15606
15607
  var _ref$style = _ref.style,
15607
15608
  style = _ref$style === void 0 ? DEFAULT_TYPOGRAPHY_STYLES : _ref$style,
15608
15609
  _ref$component = _ref.component,
15609
- component = _ref$component === void 0 ? COMPONENTS.p : _ref$component,
15610
+ component = _ref$component === void 0 ? COMPONENTS.div : _ref$component,
15610
15611
  _ref$className = _ref.className,
15611
15612
  className = _ref$className === void 0 ? "" : _ref$className,
15612
15613
  _ref$isTitle = _ref.isTitle,
@@ -15614,7 +15615,7 @@ var Typography = function Typography(_ref) {
15614
15615
  children = _ref.children,
15615
15616
  otherProps = _objectWithoutProperties__default["default"](_ref, _excluded$e);
15616
15617
  return /*#__PURE__*/React__default["default"].createElement(StyledWrapper, _extends__default["default"]({
15617
- as: component,
15618
+ as: isTitle ? component : COMPONENTS.div,
15618
15619
  className: classnames("neeto-site-typography break-words", className),
15619
15620
  design: style
15620
15621
  }, otherProps), isTitle ? children : /*#__PURE__*/React__default["default"].createElement(StyledInterweave, {
@@ -40930,9 +40931,10 @@ var HeroWithMultipleLayouts = function HeroWithMultipleLayouts(_ref) {
40930
40931
  var src = _ref2.src,
40931
40932
  position = _ref2.position;
40932
40933
  return classnames("sm:col-span-6 col-span-12", {
40933
- "sm:col-start-1": src && position === POSITIONS.RIGHT.label && src,
40934
- "sm:col-span-8 sm:col-start-3": src && position === POSITIONS.CENTER.label && src,
40935
- "sm:col-start-7": src && position === POSITIONS.LEFT.label && src,
40934
+ "sm:col-start-1": src && position === POSITIONS.RIGHT.label,
40935
+ "sm:col-span-8 sm:col-start-3": src && position === POSITIONS.BOTTOM.label,
40936
+ "sm:col-span-12 sm:col-start-1 flex flex-col justify-center order-2": src && position === POSITIONS.TOP.label,
40937
+ "sm:col-start-7": src && position === POSITIONS.LEFT.label,
40936
40938
  "flex flex-col justify-center sm:col-span-12": !src
40937
40939
  });
40938
40940
  };
@@ -40942,7 +40944,8 @@ var HeroWithMultipleLayouts = function HeroWithMultipleLayouts(_ref) {
40942
40944
  return classnames("sm:col-span-5 col-span-12 flex justify-center", {
40943
40945
  "sm:col-start-1": src && position === POSITIONS.LEFT.label,
40944
40946
  "sm:col-start-8": src && position === POSITIONS.RIGHT.label,
40945
- "sm:col-span-8 sm:col-start-3": src && position === POSITIONS.CENTER.label,
40947
+ "sm:col-span-8 sm:col-start-3": src && position === POSITIONS.BOTTOM.label,
40948
+ "sm:col-span-8 sm:col-start-3 flex justify-center order-1": src && position === POSITIONS.TOP.label,
40946
40949
  hidden: !src
40947
40950
  });
40948
40951
  };
@@ -40950,24 +40953,24 @@ var HeroWithMultipleLayouts = function HeroWithMultipleLayouts(_ref) {
40950
40953
  var src = _ref4.src,
40951
40954
  position = _ref4.position;
40952
40955
  return classnames("flex w-full gap-x-4", {
40953
- "justify-center": !src || position === POSITIONS.CENTER.label
40956
+ "justify-center": !src || position === POSITIONS.BOTTOM.label || position === POSITIONS.TOP.label
40954
40957
  });
40955
40958
  };
40956
40959
  var textClasses = function textClasses(_ref5) {
40957
40960
  var src = _ref5.src,
40958
40961
  position = _ref5.position;
40959
40962
  return classnames({
40960
- "text-center": !src || position === POSITIONS.CENTER.label
40963
+ "text-center": !src || position === POSITIONS.BOTTOM.label || position === POSITIONS.TOP.label
40961
40964
  });
40962
40965
  };
40963
40966
  return /*#__PURE__*/React__default["default"].createElement(MotionWrapper, {
40967
+ enableAnimation: enableAnimation,
40968
+ id: id,
40964
40969
  backgroundImage: mergeLeft({
40965
40970
  src: src
40966
40971
  }, design.backgroundImage),
40967
40972
  className: "flex items-center justify-between gap-x-2",
40968
- design: mergeDesign(design.body, 24),
40969
- enableAnimation: enableAnimation,
40970
- id: id
40973
+ design: mergeDesign(design.body, 24)
40971
40974
  }, /*#__PURE__*/React__default["default"].createElement(ArrowButton, {
40972
40975
  isStart: true,
40973
40976
  Icon: ArrowLeftS$1,
@@ -41033,7 +41036,7 @@ var HeroWithMultipleLayouts = function HeroWithMultipleLayouts(_ref) {
41033
41036
  lgImageSize: design.media.width,
41034
41037
  src: media.src,
41035
41038
  className: classnames({
41036
- "slider-image": media.position !== POSITIONS.CENTER.label
41039
+ "slider-image": media.position !== POSITIONS.BOTTOM.label || media.position !== POSITIONS.TOP.label
41037
41040
  })
41038
41041
  }))));
41039
41042
  })), /*#__PURE__*/React__default["default"].createElement(ArrowButton, {