@bigbinary/neeto-site-blocks 1.10.20 → 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 +38 -8
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +38 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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
|
|
@@ -2103,6 +2104,7 @@ var BORDER_RADIUS_VALUES = {
|
|
|
2103
2104
|
md: 6,
|
|
2104
2105
|
lg: 8,
|
|
2105
2106
|
xl: 12,
|
|
2107
|
+
"2xl": 16,
|
|
2106
2108
|
full: 9999
|
|
2107
2109
|
};
|
|
2108
2110
|
var FONT_SIZE_VALUES = {
|
|
@@ -5942,7 +5944,8 @@ var Button = function Button(_ref) {
|
|
|
5942
5944
|
rel: "noreferrer",
|
|
5943
5945
|
isButton: true,
|
|
5944
5946
|
onClick: disableButtonAndLinks && handleClick,
|
|
5945
|
-
id: id
|
|
5947
|
+
id: id,
|
|
5948
|
+
"aria-label": label
|
|
5946
5949
|
};
|
|
5947
5950
|
if (action === "external") {
|
|
5948
5951
|
return /*#__PURE__*/React__default["default"].createElement(StyledAnchor, _extends__default["default"]({}, commonProps, {
|
|
@@ -6059,7 +6062,8 @@ var LinkElement = function LinkElement(_ref) {
|
|
|
6059
6062
|
isHighlighted: isHighlighted,
|
|
6060
6063
|
disableHovering: disableHovering,
|
|
6061
6064
|
onClick: handleLinkClick,
|
|
6062
|
-
id: id
|
|
6065
|
+
id: id,
|
|
6066
|
+
"aria-label": label
|
|
6063
6067
|
}, otherProps);
|
|
6064
6068
|
if (action === "external") {
|
|
6065
6069
|
return /*#__PURE__*/React__default["default"].createElement(StyledAnchor, _extends__default["default"]({}, commonProps, {
|
|
@@ -6314,6 +6318,7 @@ var Pagination = function Pagination(_ref) {
|
|
|
6314
6318
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6315
6319
|
className: classnames__default["default"]("swiper-pagination flex items-center justify-center space-x-4", className)
|
|
6316
6320
|
}, hasNavigation && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
6321
|
+
"aria-label": "Previous",
|
|
6317
6322
|
onClick: function onClick() {
|
|
6318
6323
|
return swiper.slidePrev();
|
|
6319
6324
|
}
|
|
@@ -6332,6 +6337,7 @@ var Pagination = function Pagination(_ref) {
|
|
|
6332
6337
|
}
|
|
6333
6338
|
});
|
|
6334
6339
|
})), hasNavigation && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
6340
|
+
"aria-label": "Next",
|
|
6335
6341
|
onClick: function onClick() {
|
|
6336
6342
|
return swiper.slideNext();
|
|
6337
6343
|
}
|
|
@@ -6425,7 +6431,9 @@ var BlogContent = function BlogContent(_ref) {
|
|
|
6425
6431
|
description = _properties$content.description,
|
|
6426
6432
|
content = _properties$content.content,
|
|
6427
6433
|
enableAnimation = properties.enableAnimation,
|
|
6428
|
-
|
|
6434
|
+
_properties$image = properties.image,
|
|
6435
|
+
imageSrc = _properties$image.src,
|
|
6436
|
+
alt = _properties$image.alt,
|
|
6429
6437
|
src = properties.backgroundImage.src;
|
|
6430
6438
|
var baseClasses = "grid grid-cols-12 items-center";
|
|
6431
6439
|
var textClasses = "col-span-12 sm:col-span-8 sm:col-start-3 lg:col-span-6 lg:col-start-4";
|
|
@@ -6453,6 +6461,7 @@ var BlogContent = function BlogContent(_ref) {
|
|
|
6453
6461
|
}, otherProps), description), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
6454
6462
|
className: "col-span-12 flex justify-center sm:col-span-8 sm:col-start-3"
|
|
6455
6463
|
}, /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
|
|
6464
|
+
alt: alt,
|
|
6456
6465
|
design: design.image,
|
|
6457
6466
|
disableButtonAndLinks: otherProps.disableButtonAndLinks,
|
|
6458
6467
|
id: "blog-content-image",
|
|
@@ -11635,7 +11644,8 @@ var CardsInGridView = function CardsInGridView(_ref) {
|
|
|
11635
11644
|
href = _ref2.href,
|
|
11636
11645
|
style = _ref2.style,
|
|
11637
11646
|
index = _ref2.index,
|
|
11638
|
-
action = _ref2.action
|
|
11647
|
+
action = _ref2.action,
|
|
11648
|
+
alt = _ref2.alt;
|
|
11639
11649
|
return /*#__PURE__*/React__default["default"].createElement(MotionWrapper, {
|
|
11640
11650
|
enableAnimation: enableAnimation,
|
|
11641
11651
|
design: design.card,
|
|
@@ -11650,6 +11660,7 @@ var CardsInGridView = function CardsInGridView(_ref) {
|
|
|
11650
11660
|
className: "flex w-full flex-col",
|
|
11651
11661
|
to: href
|
|
11652
11662
|
}, otherProps), /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
|
|
11663
|
+
alt: alt,
|
|
11653
11664
|
disableButtonAndLinks: disableButtonAndLinks,
|
|
11654
11665
|
image: image,
|
|
11655
11666
|
index: index,
|
|
@@ -11918,12 +11929,14 @@ var CardsWithImage = function CardsWithImage(_ref) {
|
|
|
11918
11929
|
design: design.body,
|
|
11919
11930
|
nestedClassName: baseClasses
|
|
11920
11931
|
}, /*#__PURE__*/React__default["default"].createElement(Typography$1, _extends__default["default"]({
|
|
11932
|
+
disableButtonAndLinks: disableButtonAndLinks,
|
|
11921
11933
|
isTitle: true,
|
|
11922
11934
|
className: "col-span-12",
|
|
11923
11935
|
component: "h3",
|
|
11924
11936
|
id: "cards-with-image-title",
|
|
11925
11937
|
style: design.title
|
|
11926
11938
|
}, otherProps), title), /*#__PURE__*/React__default["default"].createElement(Typography$1, _extends__default["default"]({
|
|
11939
|
+
disableButtonAndLinks: disableButtonAndLinks,
|
|
11927
11940
|
className: "col-span-12",
|
|
11928
11941
|
id: "cards-with-image-description",
|
|
11929
11942
|
style: design.description
|
|
@@ -11934,7 +11947,8 @@ var CardsWithImage = function CardsWithImage(_ref) {
|
|
|
11934
11947
|
description = _ref2.description,
|
|
11935
11948
|
href = _ref2.href,
|
|
11936
11949
|
imageUrl = _ref2.imageUrl,
|
|
11937
|
-
action = _ref2.action
|
|
11950
|
+
action = _ref2.action,
|
|
11951
|
+
alt = _ref2.alt;
|
|
11938
11952
|
return /*#__PURE__*/React__default["default"].createElement(MotionWrapper, {
|
|
11939
11953
|
enableAnimation: enableAnimation,
|
|
11940
11954
|
className: gridBaseClasses,
|
|
@@ -11966,6 +11980,7 @@ var CardsWithImage = function CardsWithImage(_ref) {
|
|
|
11966
11980
|
}, otherProps), title)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11967
11981
|
className: "col-span-2 flex h-full flex-col justify-end"
|
|
11968
11982
|
}, /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
|
|
11983
|
+
alt: alt,
|
|
11969
11984
|
disableButtonAndLinks: disableButtonAndLinks,
|
|
11970
11985
|
image: image,
|
|
11971
11986
|
index: index,
|
|
@@ -12617,6 +12632,7 @@ var FeatureWithDetails = function FeatureWithDetails(_ref) {
|
|
|
12617
12632
|
image: image,
|
|
12618
12633
|
isEmbedded: isEmbedded,
|
|
12619
12634
|
videoUrl: videoUrl,
|
|
12635
|
+
alt: properties.media.alt,
|
|
12620
12636
|
design: design.media,
|
|
12621
12637
|
disableButtonAndLinks: otherProps.disableButtonAndLinks,
|
|
12622
12638
|
id: "feature-with-details-media",
|
|
@@ -12782,6 +12798,7 @@ var FeatureWithImage = function FeatureWithImage(_ref) {
|
|
|
12782
12798
|
image: image,
|
|
12783
12799
|
isEmbedded: isEmbedded,
|
|
12784
12800
|
videoUrl: videoUrl,
|
|
12801
|
+
alt: properties.media.alt,
|
|
12785
12802
|
design: design.media,
|
|
12786
12803
|
disableButtonAndLinks: otherProps.disableButtonAndLinks,
|
|
12787
12804
|
id: "feature-with-image-media",
|
|
@@ -12933,6 +12950,7 @@ var FeatureWithList = function FeatureWithList(_ref) {
|
|
|
12933
12950
|
image: image,
|
|
12934
12951
|
isEmbedded: isEmbedded,
|
|
12935
12952
|
videoUrl: videoUrl,
|
|
12953
|
+
alt: properties.media.alt,
|
|
12936
12954
|
design: design.media,
|
|
12937
12955
|
disableButtonAndLinks: otherProps.disableButtonAndLinks,
|
|
12938
12956
|
id: "feature-with-list-media",
|
|
@@ -13059,6 +13077,7 @@ var FeatureWithProgressBar = function FeatureWithProgressBar(_ref) {
|
|
|
13059
13077
|
className: imageBaseClasses
|
|
13060
13078
|
}, /*#__PURE__*/React__default["default"].createElement(Media, {
|
|
13061
13079
|
image: image,
|
|
13080
|
+
alt: features[selectedTabId - 1].media.alt,
|
|
13062
13081
|
autoPlay: features[selectedTabId - 1].media.autoPlay,
|
|
13063
13082
|
design: design.media,
|
|
13064
13083
|
disableButtonAndLinks: otherProps.disableButtonAndLinks,
|
|
@@ -13113,6 +13132,7 @@ var FooterClassic = function FooterClassic(_ref) {
|
|
|
13113
13132
|
className: "col-span-12 sm:col-span-12 sm:mx-20 sm:flex sm:justify-between sm:gap-y-0"
|
|
13114
13133
|
}, /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
|
|
13115
13134
|
image: image,
|
|
13135
|
+
alt: logo.title,
|
|
13116
13136
|
design: design.logo,
|
|
13117
13137
|
disableButtonAndLinks: otherProps.disableButtonAndLinks,
|
|
13118
13138
|
id: "footer-classic-logo",
|
|
@@ -13170,6 +13190,7 @@ var FooterClassic = function FooterClassic(_ref) {
|
|
|
13170
13190
|
className: "mb-8 flex flex-shrink-0 justify-start sm:mb-0"
|
|
13171
13191
|
}, /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
|
|
13172
13192
|
image: image,
|
|
13193
|
+
alt: logo.title,
|
|
13173
13194
|
design: design.logo,
|
|
13174
13195
|
disableButtonAndLinks: otherProps.disableButtonAndLinks,
|
|
13175
13196
|
id: "footer-classic-logo",
|
|
@@ -13251,6 +13272,7 @@ var FooterWithIcons = function FooterWithIcons(_ref) {
|
|
|
13251
13272
|
className: "flex flex-grow flex-col gap-y-4 sm:flex-row sm:gap-x-4"
|
|
13252
13273
|
}, /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
|
|
13253
13274
|
image: image,
|
|
13275
|
+
alt: logo.title,
|
|
13254
13276
|
className: "max-w-fit",
|
|
13255
13277
|
design: design.logo,
|
|
13256
13278
|
disableButtonAndLinks: otherProps.disableButtonAndLinks,
|
|
@@ -13332,6 +13354,7 @@ var FooterWithLinks = function FooterWithLinks(_ref) {
|
|
|
13332
13354
|
className: "flex items-center gap-x-2"
|
|
13333
13355
|
}, /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
|
|
13334
13356
|
image: image,
|
|
13357
|
+
alt: logo.title,
|
|
13335
13358
|
design: design.logo,
|
|
13336
13359
|
disableButtonAndLinks: otherProps.disableButtonAndLinks,
|
|
13337
13360
|
id: "footer-with-links-logo",
|
|
@@ -14366,7 +14389,6 @@ var GalleryWithAutoplay = function GalleryWithAutoplay(_ref) {
|
|
|
14366
14389
|
onSwiper: setThumbsSwiper
|
|
14367
14390
|
}, images.map(function (_ref3, index) {
|
|
14368
14391
|
var src = _ref3.src,
|
|
14369
|
-
alt = _ref3.alt,
|
|
14370
14392
|
title = _ref3.title;
|
|
14371
14393
|
return /*#__PURE__*/React__default["default"].createElement(SwiperSlide, {
|
|
14372
14394
|
className: "!pointer-events-auto cursor-pointer",
|
|
@@ -14375,11 +14397,11 @@ var GalleryWithAutoplay = function GalleryWithAutoplay(_ref) {
|
|
|
14375
14397
|
return swiper === null || swiper === void 0 ? void 0 : swiper.slideTo(index);
|
|
14376
14398
|
}
|
|
14377
14399
|
}, /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
|
|
14378
|
-
alt: alt,
|
|
14379
14400
|
image: image,
|
|
14380
14401
|
index: index,
|
|
14381
14402
|
src: src,
|
|
14382
14403
|
title: title,
|
|
14404
|
+
alt: title,
|
|
14383
14405
|
className: "clickable-image"
|
|
14384
14406
|
}));
|
|
14385
14407
|
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -14453,6 +14475,7 @@ var HeaderWithButtons = function HeaderWithButtons(_ref) {
|
|
|
14453
14475
|
})
|
|
14454
14476
|
}, otherProps), /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
|
|
14455
14477
|
image: image,
|
|
14478
|
+
alt: properties.logo.alt,
|
|
14456
14479
|
className: "max-h-8 sm:max-h-10 lg:max-h-14",
|
|
14457
14480
|
design: design.logo,
|
|
14458
14481
|
src: properties.logo.src
|
|
@@ -14570,6 +14593,7 @@ var HeaderWithDropdownLinks = function HeaderWithDropdownLinks(_ref) {
|
|
|
14570
14593
|
to: properties.logo.to
|
|
14571
14594
|
}, otherProps), /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
|
|
14572
14595
|
image: image,
|
|
14596
|
+
alt: properties.logo.alt,
|
|
14573
14597
|
className: "max-h-8 sm:max-h-10 lg:max-h-14",
|
|
14574
14598
|
design: design.logo,
|
|
14575
14599
|
disableButtonAndLinks: otherProps.disableButtonAndLinks,
|
|
@@ -14679,6 +14703,7 @@ var HeaderWithIcons = function HeaderWithIcons(_ref) {
|
|
|
14679
14703
|
to: properties.logo.to
|
|
14680
14704
|
}, otherProps), /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
|
|
14681
14705
|
image: image,
|
|
14706
|
+
alt: properties.logo.alt,
|
|
14682
14707
|
design: design.logo,
|
|
14683
14708
|
disableButtonAndLinks: otherProps.disableButtonAndLinks,
|
|
14684
14709
|
id: "header-with-icons-logo",
|
|
@@ -14795,6 +14820,7 @@ var HeaderWithLogoTitle = function HeaderWithLogoTitle(_ref) {
|
|
|
14795
14820
|
to: properties.logo.to
|
|
14796
14821
|
}, otherProps), /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
|
|
14797
14822
|
image: image,
|
|
14823
|
+
alt: properties.logo.alt,
|
|
14798
14824
|
className: "max-h-8 sm:max-h-10 lg:max-h-14",
|
|
14799
14825
|
design: design.logo,
|
|
14800
14826
|
disableButtonAndLinks: otherProps.disableButtonAndLinks,
|
|
@@ -14959,6 +14985,7 @@ var HeroWithCallToAction = function HeroWithCallToAction(_ref) {
|
|
|
14959
14985
|
image: image,
|
|
14960
14986
|
isEmbedded: isEmbedded,
|
|
14961
14987
|
videoUrl: videoUrl,
|
|
14988
|
+
alt: properties.media.alt,
|
|
14962
14989
|
design: design.media,
|
|
14963
14990
|
disableButtonAndLinks: otherProps.disableButtonAndLinks,
|
|
14964
14991
|
id: "hero-with-call-to-action-media",
|
|
@@ -15620,7 +15647,8 @@ var TestimonialWithSlider = function TestimonialWithSlider(_ref) {
|
|
|
15620
15647
|
name = _ref2.name,
|
|
15621
15648
|
imagePosition = _ref2.imagePosition,
|
|
15622
15649
|
position = _ref2.position,
|
|
15623
|
-
logoUrl = _ref2.logoUrl
|
|
15650
|
+
logoUrl = _ref2.logoUrl,
|
|
15651
|
+
logoAlt = _ref2.logoAlt;
|
|
15624
15652
|
return /*#__PURE__*/React__default["default"].createElement(SwiperSlide, {
|
|
15625
15653
|
key: getUniqueKey(testimonialDescription, logoUrl, index)
|
|
15626
15654
|
}, /*#__PURE__*/React__default["default"].createElement(StyledWrapper, {
|
|
@@ -15633,6 +15661,7 @@ var TestimonialWithSlider = function TestimonialWithSlider(_ref) {
|
|
|
15633
15661
|
index: index,
|
|
15634
15662
|
src: src,
|
|
15635
15663
|
priority: true,
|
|
15664
|
+
alt: logoAlt,
|
|
15636
15665
|
className: "ns-testimonial-image-aspect-ratio object-cover",
|
|
15637
15666
|
design: design.testimonialImage,
|
|
15638
15667
|
disableButtonAndLinks: otherProps.disableButtonAndLinks,
|
|
@@ -15656,6 +15685,7 @@ var TestimonialWithSlider = function TestimonialWithSlider(_ref) {
|
|
|
15656
15685
|
}, /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
|
|
15657
15686
|
index: index,
|
|
15658
15687
|
priority: true,
|
|
15688
|
+
alt: name,
|
|
15659
15689
|
className: "mx-auto sm:ml-0",
|
|
15660
15690
|
design: design.testimonialLogo,
|
|
15661
15691
|
disableButtonAndLinks: otherProps.disableButtonAndLinks,
|