@bigbinary/neeto-site-blocks 1.10.21 → 1.10.22

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,
@@ -12620,6 +12632,7 @@ var FeatureWithDetails = function FeatureWithDetails(_ref) {
12620
12632
  image: image,
12621
12633
  isEmbedded: isEmbedded,
12622
12634
  videoUrl: videoUrl,
12635
+ alt: properties.media.alt,
12623
12636
  design: design.media,
12624
12637
  disableButtonAndLinks: otherProps.disableButtonAndLinks,
12625
12638
  id: "feature-with-details-media",
@@ -12785,6 +12798,7 @@ var FeatureWithImage = function FeatureWithImage(_ref) {
12785
12798
  image: image,
12786
12799
  isEmbedded: isEmbedded,
12787
12800
  videoUrl: videoUrl,
12801
+ alt: properties.media.alt,
12788
12802
  design: design.media,
12789
12803
  disableButtonAndLinks: otherProps.disableButtonAndLinks,
12790
12804
  id: "feature-with-image-media",
@@ -12936,6 +12950,7 @@ var FeatureWithList = function FeatureWithList(_ref) {
12936
12950
  image: image,
12937
12951
  isEmbedded: isEmbedded,
12938
12952
  videoUrl: videoUrl,
12953
+ alt: properties.media.alt,
12939
12954
  design: design.media,
12940
12955
  disableButtonAndLinks: otherProps.disableButtonAndLinks,
12941
12956
  id: "feature-with-list-media",
@@ -13062,6 +13077,7 @@ var FeatureWithProgressBar = function FeatureWithProgressBar(_ref) {
13062
13077
  className: imageBaseClasses
13063
13078
  }, /*#__PURE__*/React__default["default"].createElement(Media, {
13064
13079
  image: image,
13080
+ alt: features[selectedTabId - 1].media.alt,
13065
13081
  autoPlay: features[selectedTabId - 1].media.autoPlay,
13066
13082
  design: design.media,
13067
13083
  disableButtonAndLinks: otherProps.disableButtonAndLinks,
@@ -13116,6 +13132,7 @@ var FooterClassic = function FooterClassic(_ref) {
13116
13132
  className: "col-span-12 sm:col-span-12 sm:mx-20 sm:flex sm:justify-between sm:gap-y-0"
13117
13133
  }, /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
13118
13134
  image: image,
13135
+ alt: logo.title,
13119
13136
  design: design.logo,
13120
13137
  disableButtonAndLinks: otherProps.disableButtonAndLinks,
13121
13138
  id: "footer-classic-logo",
@@ -13173,6 +13190,7 @@ var FooterClassic = function FooterClassic(_ref) {
13173
13190
  className: "mb-8 flex flex-shrink-0 justify-start sm:mb-0"
13174
13191
  }, /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
13175
13192
  image: image,
13193
+ alt: logo.title,
13176
13194
  design: design.logo,
13177
13195
  disableButtonAndLinks: otherProps.disableButtonAndLinks,
13178
13196
  id: "footer-classic-logo",
@@ -13254,6 +13272,7 @@ var FooterWithIcons = function FooterWithIcons(_ref) {
13254
13272
  className: "flex flex-grow flex-col gap-y-4 sm:flex-row sm:gap-x-4"
13255
13273
  }, /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
13256
13274
  image: image,
13275
+ alt: logo.title,
13257
13276
  className: "max-w-fit",
13258
13277
  design: design.logo,
13259
13278
  disableButtonAndLinks: otherProps.disableButtonAndLinks,
@@ -13335,6 +13354,7 @@ var FooterWithLinks = function FooterWithLinks(_ref) {
13335
13354
  className: "flex items-center gap-x-2"
13336
13355
  }, /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
13337
13356
  image: image,
13357
+ alt: logo.title,
13338
13358
  design: design.logo,
13339
13359
  disableButtonAndLinks: otherProps.disableButtonAndLinks,
13340
13360
  id: "footer-with-links-logo",
@@ -14369,7 +14389,6 @@ var GalleryWithAutoplay = function GalleryWithAutoplay(_ref) {
14369
14389
  onSwiper: setThumbsSwiper
14370
14390
  }, images.map(function (_ref3, index) {
14371
14391
  var src = _ref3.src,
14372
- alt = _ref3.alt,
14373
14392
  title = _ref3.title;
14374
14393
  return /*#__PURE__*/React__default["default"].createElement(SwiperSlide, {
14375
14394
  className: "!pointer-events-auto cursor-pointer",
@@ -14378,11 +14397,11 @@ var GalleryWithAutoplay = function GalleryWithAutoplay(_ref) {
14378
14397
  return swiper === null || swiper === void 0 ? void 0 : swiper.slideTo(index);
14379
14398
  }
14380
14399
  }, /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
14381
- alt: alt,
14382
14400
  image: image,
14383
14401
  index: index,
14384
14402
  src: src,
14385
14403
  title: title,
14404
+ alt: title,
14386
14405
  className: "clickable-image"
14387
14406
  }));
14388
14407
  }))), /*#__PURE__*/React__default["default"].createElement("div", {
@@ -14456,6 +14475,7 @@ var HeaderWithButtons = function HeaderWithButtons(_ref) {
14456
14475
  })
14457
14476
  }, otherProps), /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
14458
14477
  image: image,
14478
+ alt: properties.logo.alt,
14459
14479
  className: "max-h-8 sm:max-h-10 lg:max-h-14",
14460
14480
  design: design.logo,
14461
14481
  src: properties.logo.src
@@ -14573,6 +14593,7 @@ var HeaderWithDropdownLinks = function HeaderWithDropdownLinks(_ref) {
14573
14593
  to: properties.logo.to
14574
14594
  }, otherProps), /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
14575
14595
  image: image,
14596
+ alt: properties.logo.alt,
14576
14597
  className: "max-h-8 sm:max-h-10 lg:max-h-14",
14577
14598
  design: design.logo,
14578
14599
  disableButtonAndLinks: otherProps.disableButtonAndLinks,
@@ -14682,6 +14703,7 @@ var HeaderWithIcons = function HeaderWithIcons(_ref) {
14682
14703
  to: properties.logo.to
14683
14704
  }, otherProps), /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
14684
14705
  image: image,
14706
+ alt: properties.logo.alt,
14685
14707
  design: design.logo,
14686
14708
  disableButtonAndLinks: otherProps.disableButtonAndLinks,
14687
14709
  id: "header-with-icons-logo",
@@ -14798,6 +14820,7 @@ var HeaderWithLogoTitle = function HeaderWithLogoTitle(_ref) {
14798
14820
  to: properties.logo.to
14799
14821
  }, otherProps), /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
14800
14822
  image: image,
14823
+ alt: properties.logo.alt,
14801
14824
  className: "max-h-8 sm:max-h-10 lg:max-h-14",
14802
14825
  design: design.logo,
14803
14826
  disableButtonAndLinks: otherProps.disableButtonAndLinks,
@@ -14962,6 +14985,7 @@ var HeroWithCallToAction = function HeroWithCallToAction(_ref) {
14962
14985
  image: image,
14963
14986
  isEmbedded: isEmbedded,
14964
14987
  videoUrl: videoUrl,
14988
+ alt: properties.media.alt,
14965
14989
  design: design.media,
14966
14990
  disableButtonAndLinks: otherProps.disableButtonAndLinks,
14967
14991
  id: "hero-with-call-to-action-media",
@@ -15623,7 +15647,8 @@ var TestimonialWithSlider = function TestimonialWithSlider(_ref) {
15623
15647
  name = _ref2.name,
15624
15648
  imagePosition = _ref2.imagePosition,
15625
15649
  position = _ref2.position,
15626
- logoUrl = _ref2.logoUrl;
15650
+ logoUrl = _ref2.logoUrl,
15651
+ logoAlt = _ref2.logoAlt;
15627
15652
  return /*#__PURE__*/React__default["default"].createElement(SwiperSlide, {
15628
15653
  key: getUniqueKey(testimonialDescription, logoUrl, index)
15629
15654
  }, /*#__PURE__*/React__default["default"].createElement(StyledWrapper, {
@@ -15636,6 +15661,7 @@ var TestimonialWithSlider = function TestimonialWithSlider(_ref) {
15636
15661
  index: index,
15637
15662
  src: src,
15638
15663
  priority: true,
15664
+ alt: logoAlt,
15639
15665
  className: "ns-testimonial-image-aspect-ratio object-cover",
15640
15666
  design: design.testimonialImage,
15641
15667
  disableButtonAndLinks: otherProps.disableButtonAndLinks,
@@ -15659,6 +15685,7 @@ var TestimonialWithSlider = function TestimonialWithSlider(_ref) {
15659
15685
  }, /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
15660
15686
  index: index,
15661
15687
  priority: true,
15688
+ alt: name,
15662
15689
  className: "mx-auto sm:ml-0",
15663
15690
  design: design.testimonialLogo,
15664
15691
  disableButtonAndLinks: otherProps.disableButtonAndLinks,