@bigbinary/neeto-site-blocks 1.10.4 → 1.10.5

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
@@ -3526,6 +3526,45 @@ _curry2(function mergeRight(l, r) {
3526
3526
  return _objectAssign$1({}, l, r);
3527
3527
  });
3528
3528
 
3529
+ /**
3530
+ * Returns a partial copy of an object omitting the keys specified.
3531
+ *
3532
+ * @func
3533
+ * @memberOf R
3534
+ * @since v0.1.0
3535
+ * @category Object
3536
+ * @sig [String] -> {String: *} -> {String: *}
3537
+ * @param {Array} names an array of String property names to omit from the new object
3538
+ * @param {Object} obj The object to copy from
3539
+ * @return {Object} A new object with properties from `names` not on it.
3540
+ * @see R.pick
3541
+ * @example
3542
+ *
3543
+ * R.omit(['a', 'd'], {a: 1, b: 2, c: 3, d: 4}); //=> {b: 2, c: 3}
3544
+ */
3545
+
3546
+ var omit =
3547
+ /*#__PURE__*/
3548
+ _curry2(function omit(names, obj) {
3549
+ var result = {};
3550
+ var index = {};
3551
+ var idx = 0;
3552
+ var len = names.length;
3553
+
3554
+ while (idx < len) {
3555
+ index[names[idx]] = 1;
3556
+ idx += 1;
3557
+ }
3558
+
3559
+ for (var prop in obj) {
3560
+ if (!index.hasOwnProperty(prop)) {
3561
+ result[prop] = obj[prop];
3562
+ }
3563
+ }
3564
+
3565
+ return result;
3566
+ });
3567
+
3529
3568
  /**
3530
3569
  * Returns a partial copy of an object containing only the keys that satisfy
3531
3570
  * the supplied predicate.
@@ -22420,7 +22459,7 @@ var CtaClassic = function CtaClassic(_ref) {
22420
22459
  design: design.body,
22421
22460
  nestedClassName: baseClasses
22422
22461
  }, /*#__PURE__*/React__default["default"].createElement("div", {
22423
- className: "col-span-12 sm:col-span-8 sm:col-start-3 lg:col-span-6 lg:col-start-4"
22462
+ className: "col-span-full"
22424
22463
  }, /*#__PURE__*/React__default["default"].createElement(Typography$1, _extends__default["default"]({
22425
22464
  isTitle: true,
22426
22465
  component: "h3",
@@ -22430,7 +22469,7 @@ var CtaClassic = function CtaClassic(_ref) {
22430
22469
  id: "cta-classic-description",
22431
22470
  style: design.description
22432
22471
  }, otherProps), description)), /*#__PURE__*/React__default["default"].createElement("div", {
22433
- className: "col-span-10 col-start-2 flex flex-col justify-center gap-y-2 space-x-2 sm:col-span-6 sm:col-start-4 sm:flex-row lg:col-span-4 lg:col-start-5"
22472
+ className: "col-span-10 col-start-2 flex flex-col justify-center gap-y-2 sm:col-span-6 sm:col-start-4 sm:flex-row sm:space-x-2 lg:col-span-4 lg:col-start-5"
22434
22473
  }, buttons.map(function (button, index) {
22435
22474
  return /*#__PURE__*/React__default["default"].createElement(Button$1, _extends__default["default"]({
22436
22475
  className: "justify-center sm:w-auto",
@@ -40003,7 +40042,7 @@ var CtaWithEmailAction = function CtaWithEmailAction(_ref) {
40003
40042
  design: design.body,
40004
40043
  nestedClassName: baseClasses
40005
40044
  }, /*#__PURE__*/React__default["default"].createElement("div", {
40006
- className: "col-span-12 sm:col-span-8 sm:col-start-3 lg:col-span-6 lg:col-start-4"
40045
+ className: "col-span-full"
40007
40046
  }, /*#__PURE__*/React__default["default"].createElement(Typography$1, _extends__default["default"]({
40008
40047
  isTitle: true,
40009
40048
  component: "h3",
@@ -40013,7 +40052,9 @@ var CtaWithEmailAction = function CtaWithEmailAction(_ref) {
40013
40052
  id: "cta-with-email-action-description",
40014
40053
  style: design.description
40015
40054
  }, otherProps), description)), /*#__PURE__*/React__default["default"].createElement("div", {
40016
- className: "col-span-12 flex flex-col justify-center gap-y-2 sm:col-span-8 sm:col-start-3 sm:flex-row sm:gap-y-0 lg:col-span-6 lg:col-start-4"
40055
+ className: "col-span-12 flex flex-col gap-3 sm:col-span-8 sm:col-start-3 lg:col-span-6 lg:col-start-4"
40056
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
40057
+ className: "flex flex-col justify-center gap-y-2 sm:flex-row sm:gap-y-0"
40017
40058
  }, /*#__PURE__*/React__default["default"].createElement(StyledInput, {
40018
40059
  className: "h-10 flex-grow rounded-md px-4 focus:border-black focus:outline-none sm:rounded-r-none",
40019
40060
  design: design.input,
@@ -40028,20 +40069,26 @@ var CtaWithEmailAction = function CtaWithEmailAction(_ref) {
40028
40069
  className: buttonClasses,
40029
40070
  design: design.button,
40030
40071
  onClick: handleSubscribe
40031
- }, response.status === "loading" ? "Loading.." : button.label)), response.message && /*#__PURE__*/React__default["default"].createElement("div", {
40032
- className: "col-span-12 -mt-4 flex flex-col justify-center gap-x-2 sm:flex-row lg:col-span-6 lg:col-start-4"
40072
+ }, response.status === "loading" ? "Loading.." : button.label)), response.message && /*#__PURE__*/React__default["default"].createElement(StyledWrapper, {
40073
+ design: {
40074
+ textAlign: design.successMessage.textAlign,
40075
+ marginTop: design.successMessage.marginTop,
40076
+ marginBottom: design.successMessage.marginBottom
40077
+ }
40078
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
40079
+ className: "inline-flex items-center gap-x-2"
40033
40080
  }, response.status === "error" ? /*#__PURE__*/React__default["default"].createElement(Close, {
40034
- className: "self-center rounded-full bg-red-600 p-1",
40081
+ className: "flex-shrink-0 rounded-full bg-red-600 p-1",
40035
40082
  color: "#ffffff",
40036
40083
  size: 20
40037
40084
  }) : /*#__PURE__*/React__default["default"].createElement(Check, {
40038
- className: "self-center rounded-full bg-green-600 p-1",
40085
+ className: "flex-shrink-0 rounded-full bg-green-600 p-1",
40039
40086
  color: "#ffffff",
40040
40087
  size: 20
40041
40088
  }), /*#__PURE__*/React__default["default"].createElement(Typography$1, {
40042
- style: design.successMessage
40043
- }, response.message)), /*#__PURE__*/React__default["default"].createElement(Typography$1, _extends__default["default"]({
40044
- className: "col-span-10 col-start-2 sm:col-span-4 sm:col-start-5",
40089
+ style: omit(["textAlign", "marginTop", "marginBottom"], design.successMessage)
40090
+ }, response.message)))), /*#__PURE__*/React__default["default"].createElement(Typography$1, _extends__default["default"]({
40091
+ className: "col-span-full",
40045
40092
  id: "cta-with-email-action-promotion-text",
40046
40093
  style: design.promotionText
40047
40094
  }, otherProps), promotionText));
@@ -40066,7 +40113,7 @@ var CtaWithLogo = function CtaWithLogo(_ref) {
40066
40113
  logoUrl = properties.logoUrl,
40067
40114
  buttons = properties.buttons,
40068
40115
  src = properties.backgroundImage.src;
40069
- var baseClasses = "grid grid-cols-12 items-center gap-x-4 gap-y-8";
40116
+ var baseClasses = "flex flex-col sm:flex-row items-center gap-x-4 gap-y-8";
40070
40117
  return /*#__PURE__*/React__default["default"].createElement(BlockWrapper, {
40071
40118
  className: className,
40072
40119
  enableAnimation: enableAnimation,
@@ -40079,13 +40126,13 @@ var CtaWithLogo = function CtaWithLogo(_ref) {
40079
40126
  }, /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
40080
40127
  image: image,
40081
40128
  alt: "logo",
40082
- className: "col-span-10 col-start-2 mx-auto sm:col-span-2 sm:col-start-1",
40083
40129
  design: design.logo,
40084
40130
  disableButtonAndLinks: otherProps.disableButtonAndLinks,
40085
40131
  id: "cta-with-logo-logo",
40086
- src: logoUrl
40132
+ src: logoUrl,
40133
+ wrapperClassName: "flex item-center flex-shrink-0"
40087
40134
  }), /*#__PURE__*/React__default["default"].createElement("div", {
40088
- className: "col-span-12 sm:col-span-6 sm:col-start-3 lg:col-span-7"
40135
+ className: "flex-grow"
40089
40136
  }, /*#__PURE__*/React__default["default"].createElement(Typography$1, _extends__default["default"]({
40090
40137
  isTitle: true,
40091
40138
  component: "h4",
@@ -40095,7 +40142,7 @@ var CtaWithLogo = function CtaWithLogo(_ref) {
40095
40142
  id: "cta-with-logo-description",
40096
40143
  style: design.description
40097
40144
  }, otherProps), description)), /*#__PURE__*/React__default["default"].createElement("div", {
40098
- className: "col-span-12 mx-auto w-full sm:col-span-3 sm:col-start-10 lg:col-span-3 lg:col-start-10"
40145
+ className: "flex-shrink-0"
40099
40146
  }, buttons.map(function (button, index) {
40100
40147
  return /*#__PURE__*/React__default["default"].createElement(Button$1, _extends__default["default"]({
40101
40148
  className: "justify-center sm:w-auto",