@bigbinary/neeto-site-blocks 1.2.0 → 1.2.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
@@ -2873,6 +2873,12 @@ var DEFAULT_LINK_STYLES = {
2873
2873
  marginBottom: 0,
2874
2874
  marginTop: 0
2875
2875
  };
2876
+ var IMAGE_POSITIONS = {
2877
+ top: "top",
2878
+ bottom: "bottom",
2879
+ left: "left",
2880
+ right: "right"
2881
+ };
2876
2882
 
2877
2883
  var index$1 = /*#__PURE__*/Object.freeze({
2878
2884
  __proto__: null,
@@ -2896,7 +2902,8 @@ var index$1 = /*#__PURE__*/Object.freeze({
2896
2902
  PRICING_PLANS: PRICING_PLANS,
2897
2903
  DEFAULT_BUTTON_STYLES: DEFAULT_BUTTON_STYLES,
2898
2904
  DEFAULT_TYPOGRAPHY_STYLES: DEFAULT_TYPOGRAPHY_STYLES,
2899
- DEFAULT_LINK_STYLES: DEFAULT_LINK_STYLES
2905
+ DEFAULT_LINK_STYLES: DEFAULT_LINK_STYLES,
2906
+ IMAGE_POSITIONS: IMAGE_POSITIONS
2900
2907
  });
2901
2908
 
2902
2909
  var _excluded$1A = ["size"];
@@ -38006,8 +38013,10 @@ var FeatureWithBulletList = function FeatureWithBulletList(_ref) {
38006
38013
  className: "col-span-12 flex justify-center sm:col-span-6 sm:col-start-7"
38007
38014
  }, /*#__PURE__*/React__default["default"].createElement("ul", {
38008
38015
  className: "list-disc"
38009
- }, bulletList.map(function (featureTitle, index) {
38016
+ }, bulletList.map(function (_ref2, index) {
38017
+ var featureTitle = _ref2.title;
38010
38018
  return /*#__PURE__*/React__default["default"].createElement(Typography$1, {
38019
+ isTitle: true,
38011
38020
  component: "li",
38012
38021
  key: getUniqueKey(featureTitle, index),
38013
38022
  style: design.bulletList
@@ -40840,13 +40849,13 @@ var HeroWithCallToAction = function HeroWithCallToAction(_ref) {
40840
40849
  "sm:justify-start": mediaURL && (mediaPosition === POSITIONS.LEFT.label || mediaPosition === POSITIONS.RIGHT.label)
40841
40850
  });
40842
40851
  return /*#__PURE__*/React__default["default"].createElement(BlockWrapper, {
40852
+ className: className,
40853
+ enableAnimation: enableAnimation,
40854
+ id: id,
40843
40855
  backgroundImage: mergeLeft({
40844
40856
  src: src
40845
40857
  }, design.backgroundImage),
40846
- className: className,
40847
40858
  design: design.body,
40848
- enableAnimation: enableAnimation,
40849
- id: id,
40850
40859
  nestedClassName: baseClasses
40851
40860
  }, /*#__PURE__*/React__default["default"].createElement("div", {
40852
40861
  className: textBaseClasses
@@ -40863,24 +40872,17 @@ var HeroWithCallToAction = function HeroWithCallToAction(_ref) {
40863
40872
  style: design.description
40864
40873
  }, description), /*#__PURE__*/React__default["default"].createElement("div", {
40865
40874
  className: buttonBaseClasses
40866
- }, properties.buttons.map(function (_ref2, index) {
40867
- var label = _ref2.label,
40868
- url = _ref2.url,
40869
- action = _ref2.action,
40870
- type = _ref2.type;
40875
+ }, properties.buttons.map(function (button, index) {
40871
40876
  return /*#__PURE__*/React__default["default"].createElement(Button$1, _extends__default["default"]({
40872
- action: action,
40873
40877
  className: "w-full justify-center sm:w-auto sm:justify-start",
40874
- key: getUniqueKey(label, type, index),
40875
- label: label,
40876
- to: url,
40877
- style: type === "primary" ? design.primaryButtons : design.secondaryButtons
40878
- }, otherProps));
40878
+ key: getUniqueKey(button.label, button.to, index),
40879
+ style: button.type === "primary" ? design.primaryButtons : design.secondaryButtons
40880
+ }, button, otherProps));
40879
40881
  }))), /*#__PURE__*/React__default["default"].createElement("div", {
40880
40882
  className: mediaBaseClasses
40881
40883
  }, /*#__PURE__*/React__default["default"].createElement(Media, {
40882
- design: design.media,
40883
40884
  isEmbedded: isEmbedded,
40885
+ design: design.media,
40884
40886
  src: mediaURL
40885
40887
  })));
40886
40888
  };