@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 +35 -8
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +35 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -29,6 +29,7 @@ var ArrowButton = function ArrowButton(_ref) {
|
|
|
29
29
|
});
|
|
30
30
|
return /*#__PURE__*/React.createElement("button", {
|
|
31
31
|
onClick: onClick,
|
|
32
|
+
"aria-label": isStart ? "Previous" : "Next",
|
|
32
33
|
className: classnames("col-span-1", {
|
|
33
34
|
"col-start-1": isStart,
|
|
34
35
|
"col-start-12 flex justify-end": !isStart
|
|
@@ -5924,7 +5925,8 @@ var Button = function Button(_ref) {
|
|
|
5924
5925
|
rel: "noreferrer",
|
|
5925
5926
|
isButton: true,
|
|
5926
5927
|
onClick: disableButtonAndLinks && handleClick,
|
|
5927
|
-
id: id
|
|
5928
|
+
id: id,
|
|
5929
|
+
"aria-label": label
|
|
5928
5930
|
};
|
|
5929
5931
|
if (action === "external") {
|
|
5930
5932
|
return /*#__PURE__*/React.createElement(StyledAnchor, _extends$2({}, commonProps, {
|
|
@@ -6041,7 +6043,8 @@ var LinkElement = function LinkElement(_ref) {
|
|
|
6041
6043
|
isHighlighted: isHighlighted,
|
|
6042
6044
|
disableHovering: disableHovering,
|
|
6043
6045
|
onClick: handleLinkClick,
|
|
6044
|
-
id: id
|
|
6046
|
+
id: id,
|
|
6047
|
+
"aria-label": label
|
|
6045
6048
|
}, otherProps);
|
|
6046
6049
|
if (action === "external") {
|
|
6047
6050
|
return /*#__PURE__*/React.createElement(StyledAnchor, _extends$2({}, commonProps, {
|
|
@@ -6296,6 +6299,7 @@ var Pagination = function Pagination(_ref) {
|
|
|
6296
6299
|
return /*#__PURE__*/React.createElement("div", {
|
|
6297
6300
|
className: classnames("swiper-pagination flex items-center justify-center space-x-4", className)
|
|
6298
6301
|
}, hasNavigation && /*#__PURE__*/React.createElement("button", {
|
|
6302
|
+
"aria-label": "Previous",
|
|
6299
6303
|
onClick: function onClick() {
|
|
6300
6304
|
return swiper.slidePrev();
|
|
6301
6305
|
}
|
|
@@ -6314,6 +6318,7 @@ var Pagination = function Pagination(_ref) {
|
|
|
6314
6318
|
}
|
|
6315
6319
|
});
|
|
6316
6320
|
})), hasNavigation && /*#__PURE__*/React.createElement("button", {
|
|
6321
|
+
"aria-label": "Next",
|
|
6317
6322
|
onClick: function onClick() {
|
|
6318
6323
|
return swiper.slideNext();
|
|
6319
6324
|
}
|
|
@@ -6407,7 +6412,9 @@ var BlogContent = function BlogContent(_ref) {
|
|
|
6407
6412
|
description = _properties$content.description,
|
|
6408
6413
|
content = _properties$content.content,
|
|
6409
6414
|
enableAnimation = properties.enableAnimation,
|
|
6410
|
-
|
|
6415
|
+
_properties$image = properties.image,
|
|
6416
|
+
imageSrc = _properties$image.src,
|
|
6417
|
+
alt = _properties$image.alt,
|
|
6411
6418
|
src = properties.backgroundImage.src;
|
|
6412
6419
|
var baseClasses = "grid grid-cols-12 items-center";
|
|
6413
6420
|
var textClasses = "col-span-12 sm:col-span-8 sm:col-start-3 lg:col-span-6 lg:col-start-4";
|
|
@@ -6435,6 +6442,7 @@ var BlogContent = function BlogContent(_ref) {
|
|
|
6435
6442
|
}, otherProps), description), /*#__PURE__*/React.createElement("div", {
|
|
6436
6443
|
className: "col-span-12 flex justify-center sm:col-span-8 sm:col-start-3"
|
|
6437
6444
|
}, /*#__PURE__*/React.createElement(StyledImage$1, {
|
|
6445
|
+
alt: alt,
|
|
6438
6446
|
design: design.image,
|
|
6439
6447
|
disableButtonAndLinks: otherProps.disableButtonAndLinks,
|
|
6440
6448
|
id: "blog-content-image",
|
|
@@ -11617,7 +11625,8 @@ var CardsInGridView = function CardsInGridView(_ref) {
|
|
|
11617
11625
|
href = _ref2.href,
|
|
11618
11626
|
style = _ref2.style,
|
|
11619
11627
|
index = _ref2.index,
|
|
11620
|
-
action = _ref2.action
|
|
11628
|
+
action = _ref2.action,
|
|
11629
|
+
alt = _ref2.alt;
|
|
11621
11630
|
return /*#__PURE__*/React.createElement(MotionWrapper, {
|
|
11622
11631
|
enableAnimation: enableAnimation,
|
|
11623
11632
|
design: design.card,
|
|
@@ -11632,6 +11641,7 @@ var CardsInGridView = function CardsInGridView(_ref) {
|
|
|
11632
11641
|
className: "flex w-full flex-col",
|
|
11633
11642
|
to: href
|
|
11634
11643
|
}, otherProps), /*#__PURE__*/React.createElement(StyledImage$1, {
|
|
11644
|
+
alt: alt,
|
|
11635
11645
|
disableButtonAndLinks: disableButtonAndLinks,
|
|
11636
11646
|
image: image,
|
|
11637
11647
|
index: index,
|
|
@@ -11918,7 +11928,8 @@ var CardsWithImage = function CardsWithImage(_ref) {
|
|
|
11918
11928
|
description = _ref2.description,
|
|
11919
11929
|
href = _ref2.href,
|
|
11920
11930
|
imageUrl = _ref2.imageUrl,
|
|
11921
|
-
action = _ref2.action
|
|
11931
|
+
action = _ref2.action,
|
|
11932
|
+
alt = _ref2.alt;
|
|
11922
11933
|
return /*#__PURE__*/React.createElement(MotionWrapper, {
|
|
11923
11934
|
enableAnimation: enableAnimation,
|
|
11924
11935
|
className: gridBaseClasses,
|
|
@@ -11950,6 +11961,7 @@ var CardsWithImage = function CardsWithImage(_ref) {
|
|
|
11950
11961
|
}, otherProps), title)), /*#__PURE__*/React.createElement("div", {
|
|
11951
11962
|
className: "col-span-2 flex h-full flex-col justify-end"
|
|
11952
11963
|
}, /*#__PURE__*/React.createElement(StyledImage$1, {
|
|
11964
|
+
alt: alt,
|
|
11953
11965
|
disableButtonAndLinks: disableButtonAndLinks,
|
|
11954
11966
|
image: image,
|
|
11955
11967
|
index: index,
|
|
@@ -12601,6 +12613,7 @@ var FeatureWithDetails = function FeatureWithDetails(_ref) {
|
|
|
12601
12613
|
image: image,
|
|
12602
12614
|
isEmbedded: isEmbedded,
|
|
12603
12615
|
videoUrl: videoUrl,
|
|
12616
|
+
alt: properties.media.alt,
|
|
12604
12617
|
design: design.media,
|
|
12605
12618
|
disableButtonAndLinks: otherProps.disableButtonAndLinks,
|
|
12606
12619
|
id: "feature-with-details-media",
|
|
@@ -12766,6 +12779,7 @@ var FeatureWithImage = function FeatureWithImage(_ref) {
|
|
|
12766
12779
|
image: image,
|
|
12767
12780
|
isEmbedded: isEmbedded,
|
|
12768
12781
|
videoUrl: videoUrl,
|
|
12782
|
+
alt: properties.media.alt,
|
|
12769
12783
|
design: design.media,
|
|
12770
12784
|
disableButtonAndLinks: otherProps.disableButtonAndLinks,
|
|
12771
12785
|
id: "feature-with-image-media",
|
|
@@ -12917,6 +12931,7 @@ var FeatureWithList = function FeatureWithList(_ref) {
|
|
|
12917
12931
|
image: image,
|
|
12918
12932
|
isEmbedded: isEmbedded,
|
|
12919
12933
|
videoUrl: videoUrl,
|
|
12934
|
+
alt: properties.media.alt,
|
|
12920
12935
|
design: design.media,
|
|
12921
12936
|
disableButtonAndLinks: otherProps.disableButtonAndLinks,
|
|
12922
12937
|
id: "feature-with-list-media",
|
|
@@ -13043,6 +13058,7 @@ var FeatureWithProgressBar = function FeatureWithProgressBar(_ref) {
|
|
|
13043
13058
|
className: imageBaseClasses
|
|
13044
13059
|
}, /*#__PURE__*/React.createElement(Media, {
|
|
13045
13060
|
image: image,
|
|
13061
|
+
alt: features[selectedTabId - 1].media.alt,
|
|
13046
13062
|
autoPlay: features[selectedTabId - 1].media.autoPlay,
|
|
13047
13063
|
design: design.media,
|
|
13048
13064
|
disableButtonAndLinks: otherProps.disableButtonAndLinks,
|
|
@@ -13097,6 +13113,7 @@ var FooterClassic = function FooterClassic(_ref) {
|
|
|
13097
13113
|
className: "col-span-12 sm:col-span-12 sm:mx-20 sm:flex sm:justify-between sm:gap-y-0"
|
|
13098
13114
|
}, /*#__PURE__*/React.createElement(StyledImage$1, {
|
|
13099
13115
|
image: image,
|
|
13116
|
+
alt: logo.title,
|
|
13100
13117
|
design: design.logo,
|
|
13101
13118
|
disableButtonAndLinks: otherProps.disableButtonAndLinks,
|
|
13102
13119
|
id: "footer-classic-logo",
|
|
@@ -13154,6 +13171,7 @@ var FooterClassic = function FooterClassic(_ref) {
|
|
|
13154
13171
|
className: "mb-8 flex flex-shrink-0 justify-start sm:mb-0"
|
|
13155
13172
|
}, /*#__PURE__*/React.createElement(StyledImage$1, {
|
|
13156
13173
|
image: image,
|
|
13174
|
+
alt: logo.title,
|
|
13157
13175
|
design: design.logo,
|
|
13158
13176
|
disableButtonAndLinks: otherProps.disableButtonAndLinks,
|
|
13159
13177
|
id: "footer-classic-logo",
|
|
@@ -13235,6 +13253,7 @@ var FooterWithIcons = function FooterWithIcons(_ref) {
|
|
|
13235
13253
|
className: "flex flex-grow flex-col gap-y-4 sm:flex-row sm:gap-x-4"
|
|
13236
13254
|
}, /*#__PURE__*/React.createElement(StyledImage$1, {
|
|
13237
13255
|
image: image,
|
|
13256
|
+
alt: logo.title,
|
|
13238
13257
|
className: "max-w-fit",
|
|
13239
13258
|
design: design.logo,
|
|
13240
13259
|
disableButtonAndLinks: otherProps.disableButtonAndLinks,
|
|
@@ -13316,6 +13335,7 @@ var FooterWithLinks = function FooterWithLinks(_ref) {
|
|
|
13316
13335
|
className: "flex items-center gap-x-2"
|
|
13317
13336
|
}, /*#__PURE__*/React.createElement(StyledImage$1, {
|
|
13318
13337
|
image: image,
|
|
13338
|
+
alt: logo.title,
|
|
13319
13339
|
design: design.logo,
|
|
13320
13340
|
disableButtonAndLinks: otherProps.disableButtonAndLinks,
|
|
13321
13341
|
id: "footer-with-links-logo",
|
|
@@ -14350,7 +14370,6 @@ var GalleryWithAutoplay = function GalleryWithAutoplay(_ref) {
|
|
|
14350
14370
|
onSwiper: setThumbsSwiper
|
|
14351
14371
|
}, images.map(function (_ref3, index) {
|
|
14352
14372
|
var src = _ref3.src,
|
|
14353
|
-
alt = _ref3.alt,
|
|
14354
14373
|
title = _ref3.title;
|
|
14355
14374
|
return /*#__PURE__*/React.createElement(SwiperSlide, {
|
|
14356
14375
|
className: "!pointer-events-auto cursor-pointer",
|
|
@@ -14359,11 +14378,11 @@ var GalleryWithAutoplay = function GalleryWithAutoplay(_ref) {
|
|
|
14359
14378
|
return swiper === null || swiper === void 0 ? void 0 : swiper.slideTo(index);
|
|
14360
14379
|
}
|
|
14361
14380
|
}, /*#__PURE__*/React.createElement(StyledImage$1, {
|
|
14362
|
-
alt: alt,
|
|
14363
14381
|
image: image,
|
|
14364
14382
|
index: index,
|
|
14365
14383
|
src: src,
|
|
14366
14384
|
title: title,
|
|
14385
|
+
alt: title,
|
|
14367
14386
|
className: "clickable-image"
|
|
14368
14387
|
}));
|
|
14369
14388
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
@@ -14437,6 +14456,7 @@ var HeaderWithButtons = function HeaderWithButtons(_ref) {
|
|
|
14437
14456
|
})
|
|
14438
14457
|
}, otherProps), /*#__PURE__*/React.createElement(StyledImage$1, {
|
|
14439
14458
|
image: image,
|
|
14459
|
+
alt: properties.logo.alt,
|
|
14440
14460
|
className: "max-h-8 sm:max-h-10 lg:max-h-14",
|
|
14441
14461
|
design: design.logo,
|
|
14442
14462
|
src: properties.logo.src
|
|
@@ -14554,6 +14574,7 @@ var HeaderWithDropdownLinks = function HeaderWithDropdownLinks(_ref) {
|
|
|
14554
14574
|
to: properties.logo.to
|
|
14555
14575
|
}, otherProps), /*#__PURE__*/React.createElement(StyledImage$1, {
|
|
14556
14576
|
image: image,
|
|
14577
|
+
alt: properties.logo.alt,
|
|
14557
14578
|
className: "max-h-8 sm:max-h-10 lg:max-h-14",
|
|
14558
14579
|
design: design.logo,
|
|
14559
14580
|
disableButtonAndLinks: otherProps.disableButtonAndLinks,
|
|
@@ -14663,6 +14684,7 @@ var HeaderWithIcons = function HeaderWithIcons(_ref) {
|
|
|
14663
14684
|
to: properties.logo.to
|
|
14664
14685
|
}, otherProps), /*#__PURE__*/React.createElement(StyledImage$1, {
|
|
14665
14686
|
image: image,
|
|
14687
|
+
alt: properties.logo.alt,
|
|
14666
14688
|
design: design.logo,
|
|
14667
14689
|
disableButtonAndLinks: otherProps.disableButtonAndLinks,
|
|
14668
14690
|
id: "header-with-icons-logo",
|
|
@@ -14779,6 +14801,7 @@ var HeaderWithLogoTitle = function HeaderWithLogoTitle(_ref) {
|
|
|
14779
14801
|
to: properties.logo.to
|
|
14780
14802
|
}, otherProps), /*#__PURE__*/React.createElement(StyledImage$1, {
|
|
14781
14803
|
image: image,
|
|
14804
|
+
alt: properties.logo.alt,
|
|
14782
14805
|
className: "max-h-8 sm:max-h-10 lg:max-h-14",
|
|
14783
14806
|
design: design.logo,
|
|
14784
14807
|
disableButtonAndLinks: otherProps.disableButtonAndLinks,
|
|
@@ -14943,6 +14966,7 @@ var HeroWithCallToAction = function HeroWithCallToAction(_ref) {
|
|
|
14943
14966
|
image: image,
|
|
14944
14967
|
isEmbedded: isEmbedded,
|
|
14945
14968
|
videoUrl: videoUrl,
|
|
14969
|
+
alt: properties.media.alt,
|
|
14946
14970
|
design: design.media,
|
|
14947
14971
|
disableButtonAndLinks: otherProps.disableButtonAndLinks,
|
|
14948
14972
|
id: "hero-with-call-to-action-media",
|
|
@@ -15604,7 +15628,8 @@ var TestimonialWithSlider = function TestimonialWithSlider(_ref) {
|
|
|
15604
15628
|
name = _ref2.name,
|
|
15605
15629
|
imagePosition = _ref2.imagePosition,
|
|
15606
15630
|
position = _ref2.position,
|
|
15607
|
-
logoUrl = _ref2.logoUrl
|
|
15631
|
+
logoUrl = _ref2.logoUrl,
|
|
15632
|
+
logoAlt = _ref2.logoAlt;
|
|
15608
15633
|
return /*#__PURE__*/React.createElement(SwiperSlide, {
|
|
15609
15634
|
key: getUniqueKey(testimonialDescription, logoUrl, index)
|
|
15610
15635
|
}, /*#__PURE__*/React.createElement(StyledWrapper, {
|
|
@@ -15617,6 +15642,7 @@ var TestimonialWithSlider = function TestimonialWithSlider(_ref) {
|
|
|
15617
15642
|
index: index,
|
|
15618
15643
|
src: src,
|
|
15619
15644
|
priority: true,
|
|
15645
|
+
alt: logoAlt,
|
|
15620
15646
|
className: "ns-testimonial-image-aspect-ratio object-cover",
|
|
15621
15647
|
design: design.testimonialImage,
|
|
15622
15648
|
disableButtonAndLinks: otherProps.disableButtonAndLinks,
|
|
@@ -15640,6 +15666,7 @@ var TestimonialWithSlider = function TestimonialWithSlider(_ref) {
|
|
|
15640
15666
|
}, /*#__PURE__*/React.createElement(StyledImage$1, {
|
|
15641
15667
|
index: index,
|
|
15642
15668
|
priority: true,
|
|
15669
|
+
alt: name,
|
|
15643
15670
|
className: "mx-auto sm:ml-0",
|
|
15644
15671
|
design: design.testimonialLogo,
|
|
15645
15672
|
disableButtonAndLinks: otherProps.disableButtonAndLinks,
|