@bigbinary/neeto-site-blocks 1.8.25 → 1.8.26

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
@@ -15881,6 +15881,12 @@ var StyledInterweave = styled(Interweave)(function (_ref) {
15881
15881
  return "\n h1 {\n font-size: ".concat(fontSize ? "calc(".concat(FIXED_H1_SIZE, " + ").concat(fontSize, ")") : FIXED_H1_SIZE, ";\n font-weight: inherit;\n }\n\n h2 {\n font-size: ").concat(fontSize ? "calc(".concat(FIXED_H2_SIZE, " + ").concat(fontSize, ")") : FIXED_H2_SIZE, ";\n font-weight: inherit;\n }\n\n h3 {\n font-size: ").concat(fontSize ? "calc(".concat(FIXED_H3_SIZE, " + ").concat(fontSize, ")") : FIXED_H3_SIZE, ";\n font-weight: inherit;\n }\n\n h4 {\n font-size: ").concat(fontSize ? "calc(".concat(FIXED_H4_SIZE, " + ").concat(fontSize, ")") : FIXED_H4_SIZE, ";\n font-weight: inherit;\n }\n\n h5 {\n font-size: ").concat(fontSize ? "calc(".concat(FIXED_H5_SIZE, " + ").concat(fontSize, ")") : FIXED_H5_SIZE, ";\n font-weight: inherit;\n }\n");
15882
15882
  });
15883
15883
 
15884
+ var _templateObject$1;
15885
+ var ListWrapper = styled.div(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral([""])));
15886
+ var ListWrapper$1 = withConditionalRender(ListWrapper, function (props) {
15887
+ return prop("isVisible", props);
15888
+ });
15889
+
15884
15890
  var _templateObject;
15885
15891
  var PaginationWrapper = styled.div.attrs(function (_ref) {
15886
15892
  var isActive = _ref.isActive;
@@ -40130,24 +40136,28 @@ var FooterClassic = function FooterClassic(_ref) {
40130
40136
  borderColor: "#C2C8CC"
40131
40137
  }
40132
40138
  }), /*#__PURE__*/React__default.createElement("div", {
40133
- className: "col-span-12 grid grid-cols-4 sm:col-span-8 sm:col-start-3 sm:flex sm:justify-between sm:gap-y-0"
40139
+ className: "col-span-12 sm:col-span-12 sm:mx-20 sm:flex sm:justify-between sm:gap-y-0"
40134
40140
  }, /*#__PURE__*/React__default.createElement(StyledImage$1, {
40135
- className: "col-span-4 mb-4 sm:mb-0",
40136
40141
  design: design.logo,
40137
40142
  disableButtonAndLinks: otherProps.disableButtonAndLinks,
40138
40143
  id: "footer-classic-logo",
40139
- src: logo.src
40140
- }), links.map(function (link, index) {
40144
+ src: logo.src,
40145
+ wrapperClassName: "mb-4 sm:mb-0"
40146
+ }), /*#__PURE__*/React__default.createElement(ListWrapper$1, {
40147
+ className: "col-span-4 flex justify-center gap-x-4 sm:w-full sm:justify-around sm:gap-1",
40148
+ isVisible: isNotEmpty(links)
40149
+ }, links.map(function (link, index) {
40141
40150
  return /*#__PURE__*/React__default.createElement(Link, _extends$2({
40142
40151
  index: index,
40143
- className: "col-span-1 mt-2 hover:text-gray-700 sm:mt-0",
40152
+ className: "mt-2 flex justify-center hover:text-gray-700 sm:mt-0",
40144
40153
  key: getUniqueKey(link.label, index)
40145
40154
  }, link, {
40146
40155
  id: "footer-classic-links-".concat(index, "-link"),
40147
40156
  style: design.links
40148
40157
  }, otherProps));
40149
- })), /*#__PURE__*/React__default.createElement("div", {
40150
- className: "col-span-12 flex justify-center gap-x-4 sm:col-span-8 sm:col-start-3"
40158
+ }))), /*#__PURE__*/React__default.createElement(ListWrapper$1, {
40159
+ className: "col-span-12 flex justify-center gap-x-4 sm:col-span-8 sm:col-start-3",
40160
+ isVisible: isNotEmpty(socialIcons)
40151
40161
  }, socialIcons.map(function (_icon, index) {
40152
40162
  return /*#__PURE__*/React__default.createElement(Link, _extends$2({
40153
40163
  id: "footer-classic-social-icons-".concat(index, "-link"),
@@ -40179,13 +40189,14 @@ var FooterClassic = function FooterClassic(_ref) {
40179
40189
  design: design.body,
40180
40190
  nestedClassName: baseClasses
40181
40191
  }, /*#__PURE__*/React__default.createElement(StyledImage$1, {
40182
- className: "col-span-12 sm:col-span-2",
40183
40192
  design: design.logo,
40184
40193
  disableButtonAndLinks: otherProps.disableButtonAndLinks,
40185
40194
  id: "footer-classic-logo",
40186
- src: logo.src
40187
- }), /*#__PURE__*/React__default.createElement("div", {
40188
- className: "col-span-12 grid grid-cols-4 gap-x-10 gap-y-4 sm:col-span-10 sm:col-start-4 sm:flex sm:justify-end"
40195
+ src: logo.src,
40196
+ wrapperClassName: "col-span-12 sm:col-span-2 !justify-self-start"
40197
+ }), /*#__PURE__*/React__default.createElement(ListWrapper$1, {
40198
+ className: "col-span-12 grid grid-cols-4 gap-x-10 gap-y-4 sm:col-span-10 sm:col-start-4 sm:flex sm:justify-end",
40199
+ isVisible: isNotEmpty(links)
40189
40200
  }, links.map(function (link, index) {
40190
40201
  return /*#__PURE__*/React__default.createElement(Link, _extends$2({
40191
40202
  index: index,
@@ -40201,8 +40212,9 @@ var FooterClassic = function FooterClassic(_ref) {
40201
40212
  design: {
40202
40213
  borderColor: "#C2C8CC"
40203
40214
  }
40204
- }), /*#__PURE__*/React__default.createElement("div", {
40205
- className: "col-span-12 flex justify-center gap-x-4 sm:col-span-4 sm:col-start-9 sm:justify-end"
40215
+ }), /*#__PURE__*/React__default.createElement(ListWrapper$1, {
40216
+ className: "col-span-12 flex justify-center gap-x-4 sm:col-span-4 sm:col-start-9 sm:justify-end",
40217
+ isVisible: isNotEmpty(socialIcons)
40206
40218
  }, socialIcons.map(function (_icon2, index) {
40207
40219
  return /*#__PURE__*/React__default.createElement(Link, _extends$2({
40208
40220
  id: "footer-classic-social-icons-".concat(index, "-link"),
@@ -40253,14 +40265,16 @@ var FooterWithIcons = function FooterWithIcons(_ref) {
40253
40265
  design: design.body,
40254
40266
  nestedClassName: baseClasses
40255
40267
  }, /*#__PURE__*/React__default.createElement("div", {
40256
- className: "col-span-12 grid grid-cols-4 gap-y-4 sm:col-span-6 sm:flex sm:gap-x-4 lg:col-span-5"
40268
+ className: "col-span-12 grid grid-cols-8 gap-y-4 sm:col-span-7 sm:w-full sm:gap-x-4 lg:col-span-6"
40257
40269
  }, /*#__PURE__*/React__default.createElement(StyledImage$1, {
40258
- className: "col-span-4",
40259
40270
  design: design.logo,
40260
40271
  disableButtonAndLinks: otherProps.disableButtonAndLinks,
40261
40272
  id: "footer-with-icons-logo",
40262
- src: logo.src
40263
- }), logo.src && /*#__PURE__*/React__default.createElement(StyledWrapper, {
40273
+ src: logo.src,
40274
+ wrapperClassName: "col-span-8 sm:col-span-2 sm:justify-self-end"
40275
+ }), /*#__PURE__*/React__default.createElement("div", {
40276
+ className: "col-span-6 flex sm:col-span-6 sm:gap-x-4"
40277
+ }, logo.src && /*#__PURE__*/React__default.createElement(StyledWrapper, {
40264
40278
  className: "hidden sm:block",
40265
40279
  design: {
40266
40280
  borderRightWidth: "1px",
@@ -40268,12 +40282,13 @@ var FooterWithIcons = function FooterWithIcons(_ref) {
40268
40282
  }
40269
40283
  }), /*#__PURE__*/React__default.createElement(Typography$1, _extends$2({
40270
40284
  isTitle: true,
40271
- className: "hidden w-full sm:block",
40285
+ className: "my-auto hidden w-full self-center sm:block",
40272
40286
  component: "p",
40273
40287
  id: "footer-with-icons-copyright-text",
40274
40288
  style: design.copyrightText
40275
- }, otherProps), copyrightText)), /*#__PURE__*/React__default.createElement("div", {
40276
- className: "col-span-12 flex justify-center gap-x-4 sm:col-span-4 sm:col-start-9 sm:justify-end"
40289
+ }, otherProps), copyrightText))), /*#__PURE__*/React__default.createElement(ListWrapper$1, {
40290
+ className: "col-span-12 flex justify-center gap-x-4 sm:col-span-4 sm:col-start-9 sm:justify-end",
40291
+ isVisible: isNotEmpty(socialIcons)
40277
40292
  }, socialIcons.map(function (_icon, index) {
40278
40293
  return /*#__PURE__*/React__default.createElement(Link, _extends$2({
40279
40294
  id: "footer-with-icons-social-icon-".concat(index, "-link"),
@@ -40290,7 +40305,7 @@ var FooterWithIcons = function FooterWithIcons(_ref) {
40290
40305
  }, _icon), otherProps)));
40291
40306
  })), /*#__PURE__*/React__default.createElement(Typography$1, _extends$2({
40292
40307
  isTitle: true,
40293
- className: "col-span-12 -mt-2 flex justify-start sm:hidden",
40308
+ className: "col-span-12 -mt-2 flex justify-center sm:hidden",
40294
40309
  id: "footer-with-icons-copyright-text",
40295
40310
  style: design.copyrightText
40296
40311
  }, otherProps), copyrightText));
@@ -40341,8 +40356,9 @@ var FooterWithLinks = function FooterWithLinks(_ref) {
40341
40356
  }, otherProps), logo.title)), /*#__PURE__*/React__default.createElement(Typography$1, _extends$2({
40342
40357
  id: "footer-with-links-description",
40343
40358
  style: design.description
40344
- }, otherProps), description)), /*#__PURE__*/React__default.createElement("div", {
40345
- className: "col-span-12 mb-4 grid grid-cols-4 sm:col-span-4 sm:col-start-7 sm:mb-0"
40359
+ }, otherProps), description)), /*#__PURE__*/React__default.createElement(ListWrapper$1, {
40360
+ className: "col-span-12 mb-4 grid grid-cols-4 gap-y-4 sm:col-span-4 sm:col-start-6 sm:mb-0 lg:col-start-7",
40361
+ isVisible: isNotEmpty(columns)
40346
40362
  }, columns.map(function (_ref2, index) {
40347
40363
  var title = _ref2.title,
40348
40364
  links = _ref2.links;
@@ -40355,8 +40371,10 @@ var FooterWithLinks = function FooterWithLinks(_ref) {
40355
40371
  component: "h5",
40356
40372
  id: "footer-with-links-columns-".concat(index, "-title"),
40357
40373
  style: design.columnTitle
40358
- }, otherProps), title), /*#__PURE__*/React__default.createElement("ul", {
40374
+ }, otherProps), title), /*#__PURE__*/React__default.createElement(ListWrapper$1, {
40375
+ as: "ul",
40359
40376
  className: "space-y-1",
40377
+ isVisible: isNotEmpty(links),
40360
40378
  role: "list"
40361
40379
  }, links.map(function (_ref3, linkIndex) {
40362
40380
  var action = _ref3.action,
@@ -40367,6 +40385,7 @@ var FooterWithLinks = function FooterWithLinks(_ref) {
40367
40385
  }, /*#__PURE__*/React__default.createElement(Link, _extends$2({
40368
40386
  action: action,
40369
40387
  linkIndex: linkIndex,
40388
+ disableHovering: true,
40370
40389
  id: "footer-with-links-columns-".concat(index, "-links-").concat(linkIndex),
40371
40390
  label: name,
40372
40391
  style: design.columnLinks,
@@ -40374,16 +40393,18 @@ var FooterWithLinks = function FooterWithLinks(_ref) {
40374
40393
  }, otherProps)));
40375
40394
  })));
40376
40395
  })), /*#__PURE__*/React__default.createElement("div", {
40377
- className: "col-span-12 space-y-2 sm:col-span-2"
40396
+ className: "col-span-12 space-y-2 sm:col-span-2 sm:col-start-10 lg:col-start-11"
40378
40397
  }, /*#__PURE__*/React__default.createElement(Typography$1, _extends$2({
40379
40398
  isTitle: true,
40380
40399
  component: "h5",
40381
40400
  id: "footer-with-links-contact-title",
40382
40401
  style: design.columnTitle
40383
- }, otherProps), contact.title), /*#__PURE__*/React__default.createElement("div", {
40384
- className: "flex gap-x-1"
40402
+ }, otherProps), contact.title), /*#__PURE__*/React__default.createElement(ListWrapper$1, {
40403
+ className: "flex gap-x-1",
40404
+ isVisible: isNotEmpty(contact.socialLinks)
40385
40405
  }, contact.socialLinks.map(function (_icon, index) {
40386
40406
  return /*#__PURE__*/React__default.createElement(Link, _extends$2({
40407
+ disableHovering: true,
40387
40408
  id: "footer-with-links-social-links-".concat(index, "-icon"),
40388
40409
  key: getUniqueKey(_icon.name, index),
40389
40410
  icon: function icon() {
@@ -40395,8 +40416,10 @@ var FooterWithLinks = function FooterWithLinks(_ref) {
40395
40416
  }, _objectSpread$8(_objectSpread$8({
40396
40417
  index: index
40397
40418
  }, _icon), otherProps)));
40398
- })), /*#__PURE__*/React__default.createElement("ul", {
40419
+ })), /*#__PURE__*/React__default.createElement(ListWrapper$1, {
40420
+ as: "ul",
40399
40421
  className: "space-y-1",
40422
+ isVisible: isNotEmpty(contact.other),
40400
40423
  role: "list"
40401
40424
  }, contact.other.map(function (_ref4, index) {
40402
40425
  var action = _ref4.action,
@@ -40407,6 +40430,7 @@ var FooterWithLinks = function FooterWithLinks(_ref) {
40407
40430
  }, /*#__PURE__*/React__default.createElement(Link, _extends$2({
40408
40431
  action: action,
40409
40432
  index: index,
40433
+ disableHovering: true,
40410
40434
  id: "footer-with-links-other-".concat(index, "-other"),
40411
40435
  label: value,
40412
40436
  style: design.columnLinks,