@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.js CHANGED
@@ -2827,6 +2827,12 @@ var DEFAULT_LINK_STYLES = {
2827
2827
  marginBottom: 0,
2828
2828
  marginTop: 0
2829
2829
  };
2830
+ var IMAGE_POSITIONS = {
2831
+ top: "top",
2832
+ bottom: "bottom",
2833
+ left: "left",
2834
+ right: "right"
2835
+ };
2830
2836
 
2831
2837
  var index$1 = /*#__PURE__*/Object.freeze({
2832
2838
  __proto__: null,
@@ -2850,7 +2856,8 @@ var index$1 = /*#__PURE__*/Object.freeze({
2850
2856
  PRICING_PLANS: PRICING_PLANS,
2851
2857
  DEFAULT_BUTTON_STYLES: DEFAULT_BUTTON_STYLES,
2852
2858
  DEFAULT_TYPOGRAPHY_STYLES: DEFAULT_TYPOGRAPHY_STYLES,
2853
- DEFAULT_LINK_STYLES: DEFAULT_LINK_STYLES
2859
+ DEFAULT_LINK_STYLES: DEFAULT_LINK_STYLES,
2860
+ IMAGE_POSITIONS: IMAGE_POSITIONS
2854
2861
  });
2855
2862
 
2856
2863
  var _excluded$1A = ["size"];
@@ -37960,8 +37967,10 @@ var FeatureWithBulletList = function FeatureWithBulletList(_ref) {
37960
37967
  className: "col-span-12 flex justify-center sm:col-span-6 sm:col-start-7"
37961
37968
  }, /*#__PURE__*/React__default.createElement("ul", {
37962
37969
  className: "list-disc"
37963
- }, bulletList.map(function (featureTitle, index) {
37970
+ }, bulletList.map(function (_ref2, index) {
37971
+ var featureTitle = _ref2.title;
37964
37972
  return /*#__PURE__*/React__default.createElement(Typography$1, {
37973
+ isTitle: true,
37965
37974
  component: "li",
37966
37975
  key: getUniqueKey(featureTitle, index),
37967
37976
  style: design.bulletList
@@ -40794,13 +40803,13 @@ var HeroWithCallToAction = function HeroWithCallToAction(_ref) {
40794
40803
  "sm:justify-start": mediaURL && (mediaPosition === POSITIONS.LEFT.label || mediaPosition === POSITIONS.RIGHT.label)
40795
40804
  });
40796
40805
  return /*#__PURE__*/React__default.createElement(BlockWrapper, {
40806
+ className: className,
40807
+ enableAnimation: enableAnimation,
40808
+ id: id,
40797
40809
  backgroundImage: mergeLeft({
40798
40810
  src: src
40799
40811
  }, design.backgroundImage),
40800
- className: className,
40801
40812
  design: design.body,
40802
- enableAnimation: enableAnimation,
40803
- id: id,
40804
40813
  nestedClassName: baseClasses
40805
40814
  }, /*#__PURE__*/React__default.createElement("div", {
40806
40815
  className: textBaseClasses
@@ -40817,24 +40826,17 @@ var HeroWithCallToAction = function HeroWithCallToAction(_ref) {
40817
40826
  style: design.description
40818
40827
  }, description), /*#__PURE__*/React__default.createElement("div", {
40819
40828
  className: buttonBaseClasses
40820
- }, properties.buttons.map(function (_ref2, index) {
40821
- var label = _ref2.label,
40822
- url = _ref2.url,
40823
- action = _ref2.action,
40824
- type = _ref2.type;
40829
+ }, properties.buttons.map(function (button, index) {
40825
40830
  return /*#__PURE__*/React__default.createElement(Button$1, _extends$2({
40826
- action: action,
40827
40831
  className: "w-full justify-center sm:w-auto sm:justify-start",
40828
- key: getUniqueKey(label, type, index),
40829
- label: label,
40830
- to: url,
40831
- style: type === "primary" ? design.primaryButtons : design.secondaryButtons
40832
- }, otherProps));
40832
+ key: getUniqueKey(button.label, button.to, index),
40833
+ style: button.type === "primary" ? design.primaryButtons : design.secondaryButtons
40834
+ }, button, otherProps));
40833
40835
  }))), /*#__PURE__*/React__default.createElement("div", {
40834
40836
  className: mediaBaseClasses
40835
40837
  }, /*#__PURE__*/React__default.createElement(Media, {
40836
- design: design.media,
40837
40838
  isEmbedded: isEmbedded,
40839
+ design: design.media,
40838
40840
  src: mediaURL
40839
40841
  })));
40840
40842
  };