@bigbinary/neeto-site-blocks 1.10.21 → 1.10.23

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
@@ -48,6 +48,7 @@ var ArrowButton = function ArrowButton(_ref) {
48
48
  });
49
49
  return /*#__PURE__*/React__default["default"].createElement("button", {
50
50
  onClick: onClick,
51
+ "aria-label": isStart ? "Previous" : "Next",
51
52
  className: classnames__default["default"]("col-span-1", {
52
53
  "col-start-1": isStart,
53
54
  "col-start-12 flex justify-end": !isStart
@@ -5943,7 +5944,8 @@ var Button = function Button(_ref) {
5943
5944
  rel: "noreferrer",
5944
5945
  isButton: true,
5945
5946
  onClick: disableButtonAndLinks && handleClick,
5946
- id: id
5947
+ id: id,
5948
+ "aria-label": label
5947
5949
  };
5948
5950
  if (action === "external") {
5949
5951
  return /*#__PURE__*/React__default["default"].createElement(StyledAnchor, _extends__default["default"]({}, commonProps, {
@@ -6060,7 +6062,8 @@ var LinkElement = function LinkElement(_ref) {
6060
6062
  isHighlighted: isHighlighted,
6061
6063
  disableHovering: disableHovering,
6062
6064
  onClick: handleLinkClick,
6063
- id: id
6065
+ id: id,
6066
+ "aria-label": label
6064
6067
  }, otherProps);
6065
6068
  if (action === "external") {
6066
6069
  return /*#__PURE__*/React__default["default"].createElement(StyledAnchor, _extends__default["default"]({}, commonProps, {
@@ -6315,6 +6318,7 @@ var Pagination = function Pagination(_ref) {
6315
6318
  return /*#__PURE__*/React__default["default"].createElement("div", {
6316
6319
  className: classnames__default["default"]("swiper-pagination flex items-center justify-center space-x-4", className)
6317
6320
  }, hasNavigation && /*#__PURE__*/React__default["default"].createElement("button", {
6321
+ "aria-label": "Previous",
6318
6322
  onClick: function onClick() {
6319
6323
  return swiper.slidePrev();
6320
6324
  }
@@ -6333,6 +6337,7 @@ var Pagination = function Pagination(_ref) {
6333
6337
  }
6334
6338
  });
6335
6339
  })), hasNavigation && /*#__PURE__*/React__default["default"].createElement("button", {
6340
+ "aria-label": "Next",
6336
6341
  onClick: function onClick() {
6337
6342
  return swiper.slideNext();
6338
6343
  }
@@ -6426,7 +6431,9 @@ var BlogContent = function BlogContent(_ref) {
6426
6431
  description = _properties$content.description,
6427
6432
  content = _properties$content.content,
6428
6433
  enableAnimation = properties.enableAnimation,
6429
- imageSrc = properties.image.src,
6434
+ _properties$image = properties.image,
6435
+ imageSrc = _properties$image.src,
6436
+ alt = _properties$image.alt,
6430
6437
  src = properties.backgroundImage.src;
6431
6438
  var baseClasses = "grid grid-cols-12 items-center";
6432
6439
  var textClasses = "col-span-12 sm:col-span-8 sm:col-start-3 lg:col-span-6 lg:col-start-4";
@@ -6454,6 +6461,7 @@ var BlogContent = function BlogContent(_ref) {
6454
6461
  }, otherProps), description), /*#__PURE__*/React__default["default"].createElement("div", {
6455
6462
  className: "col-span-12 flex justify-center sm:col-span-8 sm:col-start-3"
6456
6463
  }, /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
6464
+ alt: alt,
6457
6465
  design: design.image,
6458
6466
  disableButtonAndLinks: otherProps.disableButtonAndLinks,
6459
6467
  id: "blog-content-image",
@@ -11636,7 +11644,8 @@ var CardsInGridView = function CardsInGridView(_ref) {
11636
11644
  href = _ref2.href,
11637
11645
  style = _ref2.style,
11638
11646
  index = _ref2.index,
11639
- action = _ref2.action;
11647
+ action = _ref2.action,
11648
+ alt = _ref2.alt;
11640
11649
  return /*#__PURE__*/React__default["default"].createElement(MotionWrapper, {
11641
11650
  enableAnimation: enableAnimation,
11642
11651
  design: design.card,
@@ -11651,6 +11660,7 @@ var CardsInGridView = function CardsInGridView(_ref) {
11651
11660
  className: "flex w-full flex-col",
11652
11661
  to: href
11653
11662
  }, otherProps), /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
11663
+ alt: alt,
11654
11664
  disableButtonAndLinks: disableButtonAndLinks,
11655
11665
  image: image,
11656
11666
  index: index,
@@ -11937,7 +11947,8 @@ var CardsWithImage = function CardsWithImage(_ref) {
11937
11947
  description = _ref2.description,
11938
11948
  href = _ref2.href,
11939
11949
  imageUrl = _ref2.imageUrl,
11940
- action = _ref2.action;
11950
+ action = _ref2.action,
11951
+ alt = _ref2.alt;
11941
11952
  return /*#__PURE__*/React__default["default"].createElement(MotionWrapper, {
11942
11953
  enableAnimation: enableAnimation,
11943
11954
  className: gridBaseClasses,
@@ -11969,6 +11980,7 @@ var CardsWithImage = function CardsWithImage(_ref) {
11969
11980
  }, otherProps), title)), /*#__PURE__*/React__default["default"].createElement("div", {
11970
11981
  className: "col-span-2 flex h-full flex-col justify-end"
11971
11982
  }, /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
11983
+ alt: alt,
11972
11984
  disableButtonAndLinks: disableButtonAndLinks,
11973
11985
  image: image,
11974
11986
  index: index,
@@ -12485,12 +12497,16 @@ var FeatureWithBulletList = function FeatureWithBulletList(_ref) {
12485
12497
  enableAnimation = properties.enableAnimation,
12486
12498
  bulletList = properties.bulletList,
12487
12499
  src = properties.backgroundImage.src;
12488
- var baseClasses = "grid grid-cols-12 items-center";
12500
+ var baseClasses = "grid grid-cols-12 items-center gap-5";
12489
12501
  var BulletList = withConditionalRender(function () {
12490
- return /*#__PURE__*/React__default["default"].createElement("div", {
12491
- className: "col-span-12 flex justify-center sm:col-span-6 sm:col-start-7"
12502
+ return /*#__PURE__*/React__default["default"].createElement(StyledWrapper, {
12503
+ as: "div",
12504
+ className: "col-span-12 lg:col-span-6 lg:col-start-7",
12505
+ design: {
12506
+ textAlign: design.bulletList.textAlign
12507
+ }
12492
12508
  }, /*#__PURE__*/React__default["default"].createElement("ul", {
12493
- className: "list-disc"
12509
+ className: "inline-block list-disc pl-5 text-left lg:pl-10"
12494
12510
  }, bulletList.map(function (_ref2, index) {
12495
12511
  var featureTitle = _ref2.title;
12496
12512
  return /*#__PURE__*/React__default["default"].createElement(Typography$1, _extends__default["default"]({
@@ -12498,7 +12514,7 @@ var FeatureWithBulletList = function FeatureWithBulletList(_ref) {
12498
12514
  component: "li",
12499
12515
  id: "feature-with-bullet-list-bullet-".concat(index, "-title"),
12500
12516
  key: getUniqueKey(featureTitle, index),
12501
- style: design.bulletList
12517
+ style: ramda.omit(["textAlign"], design.bulletList)
12502
12518
  }, _objectSpread$c(_objectSpread$c({}, otherProps), {}, {
12503
12519
  index: index
12504
12520
  })), featureTitle);
@@ -12516,7 +12532,7 @@ var FeatureWithBulletList = function FeatureWithBulletList(_ref) {
12516
12532
  design: design.body,
12517
12533
  nestedClassName: baseClasses
12518
12534
  }, /*#__PURE__*/React__default["default"].createElement("div", {
12519
- className: "col-span-12 sm:col-span-5"
12535
+ className: "col-span-12 lg:col-span-5"
12520
12536
  }, /*#__PURE__*/React__default["default"].createElement(Typography$1, _extends__default["default"]({
12521
12537
  isTitle: true,
12522
12538
  component: "h3",
@@ -12620,6 +12636,7 @@ var FeatureWithDetails = function FeatureWithDetails(_ref) {
12620
12636
  image: image,
12621
12637
  isEmbedded: isEmbedded,
12622
12638
  videoUrl: videoUrl,
12639
+ alt: properties.media.alt,
12623
12640
  design: design.media,
12624
12641
  disableButtonAndLinks: otherProps.disableButtonAndLinks,
12625
12642
  id: "feature-with-details-media",
@@ -12785,6 +12802,7 @@ var FeatureWithImage = function FeatureWithImage(_ref) {
12785
12802
  image: image,
12786
12803
  isEmbedded: isEmbedded,
12787
12804
  videoUrl: videoUrl,
12805
+ alt: properties.media.alt,
12788
12806
  design: design.media,
12789
12807
  disableButtonAndLinks: otherProps.disableButtonAndLinks,
12790
12808
  id: "feature-with-image-media",
@@ -12936,6 +12954,7 @@ var FeatureWithList = function FeatureWithList(_ref) {
12936
12954
  image: image,
12937
12955
  isEmbedded: isEmbedded,
12938
12956
  videoUrl: videoUrl,
12957
+ alt: properties.media.alt,
12939
12958
  design: design.media,
12940
12959
  disableButtonAndLinks: otherProps.disableButtonAndLinks,
12941
12960
  id: "feature-with-list-media",
@@ -13062,6 +13081,7 @@ var FeatureWithProgressBar = function FeatureWithProgressBar(_ref) {
13062
13081
  className: imageBaseClasses
13063
13082
  }, /*#__PURE__*/React__default["default"].createElement(Media, {
13064
13083
  image: image,
13084
+ alt: features[selectedTabId - 1].media.alt,
13065
13085
  autoPlay: features[selectedTabId - 1].media.autoPlay,
13066
13086
  design: design.media,
13067
13087
  disableButtonAndLinks: otherProps.disableButtonAndLinks,
@@ -13116,6 +13136,7 @@ var FooterClassic = function FooterClassic(_ref) {
13116
13136
  className: "col-span-12 sm:col-span-12 sm:mx-20 sm:flex sm:justify-between sm:gap-y-0"
13117
13137
  }, /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
13118
13138
  image: image,
13139
+ alt: logo.title,
13119
13140
  design: design.logo,
13120
13141
  disableButtonAndLinks: otherProps.disableButtonAndLinks,
13121
13142
  id: "footer-classic-logo",
@@ -13173,6 +13194,7 @@ var FooterClassic = function FooterClassic(_ref) {
13173
13194
  className: "mb-8 flex flex-shrink-0 justify-start sm:mb-0"
13174
13195
  }, /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
13175
13196
  image: image,
13197
+ alt: logo.title,
13176
13198
  design: design.logo,
13177
13199
  disableButtonAndLinks: otherProps.disableButtonAndLinks,
13178
13200
  id: "footer-classic-logo",
@@ -13254,6 +13276,7 @@ var FooterWithIcons = function FooterWithIcons(_ref) {
13254
13276
  className: "flex flex-grow flex-col gap-y-4 sm:flex-row sm:gap-x-4"
13255
13277
  }, /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
13256
13278
  image: image,
13279
+ alt: logo.title,
13257
13280
  className: "max-w-fit",
13258
13281
  design: design.logo,
13259
13282
  disableButtonAndLinks: otherProps.disableButtonAndLinks,
@@ -13335,6 +13358,7 @@ var FooterWithLinks = function FooterWithLinks(_ref) {
13335
13358
  className: "flex items-center gap-x-2"
13336
13359
  }, /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
13337
13360
  image: image,
13361
+ alt: logo.title,
13338
13362
  design: design.logo,
13339
13363
  disableButtonAndLinks: otherProps.disableButtonAndLinks,
13340
13364
  id: "footer-with-links-logo",
@@ -14369,7 +14393,6 @@ var GalleryWithAutoplay = function GalleryWithAutoplay(_ref) {
14369
14393
  onSwiper: setThumbsSwiper
14370
14394
  }, images.map(function (_ref3, index) {
14371
14395
  var src = _ref3.src,
14372
- alt = _ref3.alt,
14373
14396
  title = _ref3.title;
14374
14397
  return /*#__PURE__*/React__default["default"].createElement(SwiperSlide, {
14375
14398
  className: "!pointer-events-auto cursor-pointer",
@@ -14378,11 +14401,11 @@ var GalleryWithAutoplay = function GalleryWithAutoplay(_ref) {
14378
14401
  return swiper === null || swiper === void 0 ? void 0 : swiper.slideTo(index);
14379
14402
  }
14380
14403
  }, /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
14381
- alt: alt,
14382
14404
  image: image,
14383
14405
  index: index,
14384
14406
  src: src,
14385
14407
  title: title,
14408
+ alt: title,
14386
14409
  className: "clickable-image"
14387
14410
  }));
14388
14411
  }))), /*#__PURE__*/React__default["default"].createElement("div", {
@@ -14456,6 +14479,7 @@ var HeaderWithButtons = function HeaderWithButtons(_ref) {
14456
14479
  })
14457
14480
  }, otherProps), /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
14458
14481
  image: image,
14482
+ alt: properties.logo.alt,
14459
14483
  className: "max-h-8 sm:max-h-10 lg:max-h-14",
14460
14484
  design: design.logo,
14461
14485
  src: properties.logo.src
@@ -14573,6 +14597,7 @@ var HeaderWithDropdownLinks = function HeaderWithDropdownLinks(_ref) {
14573
14597
  to: properties.logo.to
14574
14598
  }, otherProps), /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
14575
14599
  image: image,
14600
+ alt: properties.logo.alt,
14576
14601
  className: "max-h-8 sm:max-h-10 lg:max-h-14",
14577
14602
  design: design.logo,
14578
14603
  disableButtonAndLinks: otherProps.disableButtonAndLinks,
@@ -14682,6 +14707,7 @@ var HeaderWithIcons = function HeaderWithIcons(_ref) {
14682
14707
  to: properties.logo.to
14683
14708
  }, otherProps), /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
14684
14709
  image: image,
14710
+ alt: properties.logo.alt,
14685
14711
  design: design.logo,
14686
14712
  disableButtonAndLinks: otherProps.disableButtonAndLinks,
14687
14713
  id: "header-with-icons-logo",
@@ -14798,6 +14824,7 @@ var HeaderWithLogoTitle = function HeaderWithLogoTitle(_ref) {
14798
14824
  to: properties.logo.to
14799
14825
  }, otherProps), /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
14800
14826
  image: image,
14827
+ alt: properties.logo.alt,
14801
14828
  className: "max-h-8 sm:max-h-10 lg:max-h-14",
14802
14829
  design: design.logo,
14803
14830
  disableButtonAndLinks: otherProps.disableButtonAndLinks,
@@ -14962,6 +14989,7 @@ var HeroWithCallToAction = function HeroWithCallToAction(_ref) {
14962
14989
  image: image,
14963
14990
  isEmbedded: isEmbedded,
14964
14991
  videoUrl: videoUrl,
14992
+ alt: properties.media.alt,
14965
14993
  design: design.media,
14966
14994
  disableButtonAndLinks: otherProps.disableButtonAndLinks,
14967
14995
  id: "hero-with-call-to-action-media",
@@ -15623,7 +15651,8 @@ var TestimonialWithSlider = function TestimonialWithSlider(_ref) {
15623
15651
  name = _ref2.name,
15624
15652
  imagePosition = _ref2.imagePosition,
15625
15653
  position = _ref2.position,
15626
- logoUrl = _ref2.logoUrl;
15654
+ logoUrl = _ref2.logoUrl,
15655
+ logoAlt = _ref2.logoAlt;
15627
15656
  return /*#__PURE__*/React__default["default"].createElement(SwiperSlide, {
15628
15657
  key: getUniqueKey(testimonialDescription, logoUrl, index)
15629
15658
  }, /*#__PURE__*/React__default["default"].createElement(StyledWrapper, {
@@ -15636,6 +15665,7 @@ var TestimonialWithSlider = function TestimonialWithSlider(_ref) {
15636
15665
  index: index,
15637
15666
  src: src,
15638
15667
  priority: true,
15668
+ alt: logoAlt,
15639
15669
  className: "ns-testimonial-image-aspect-ratio object-cover",
15640
15670
  design: design.testimonialImage,
15641
15671
  disableButtonAndLinks: otherProps.disableButtonAndLinks,
@@ -15659,6 +15689,7 @@ var TestimonialWithSlider = function TestimonialWithSlider(_ref) {
15659
15689
  }, /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
15660
15690
  index: index,
15661
15691
  priority: true,
15692
+ alt: name,
15662
15693
  className: "mx-auto sm:ml-0",
15663
15694
  design: design.testimonialLogo,
15664
15695
  disableButtonAndLinks: otherProps.disableButtonAndLinks,