@bigbinary/neeto-site-blocks 1.7.1 → 1.7.3
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 +75 -41
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +75 -41
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1943,6 +1943,11 @@ var IMAGE_FIT_VALUES = {
|
|
|
1943
1943
|
cover: "cover",
|
|
1944
1944
|
contain: "contain"
|
|
1945
1945
|
};
|
|
1946
|
+
var BUTTON_ALIGN_VALUES = {
|
|
1947
|
+
left: "left",
|
|
1948
|
+
center: "center",
|
|
1949
|
+
right: "right"
|
|
1950
|
+
};
|
|
1946
1951
|
|
|
1947
1952
|
var index$1 = /*#__PURE__*/Object.freeze({
|
|
1948
1953
|
__proto__: null,
|
|
@@ -1969,7 +1974,8 @@ var index$1 = /*#__PURE__*/Object.freeze({
|
|
|
1969
1974
|
DEFAULT_LINK_STYLES: DEFAULT_LINK_STYLES,
|
|
1970
1975
|
IMAGE_POSITIONS: IMAGE_POSITIONS,
|
|
1971
1976
|
LOGO_SIZE_VALUES: LOGO_SIZE_VALUES,
|
|
1972
|
-
IMAGE_FIT_VALUES: IMAGE_FIT_VALUES
|
|
1977
|
+
IMAGE_FIT_VALUES: IMAGE_FIT_VALUES,
|
|
1978
|
+
BUTTON_ALIGN_VALUES: BUTTON_ALIGN_VALUES
|
|
1973
1979
|
});
|
|
1974
1980
|
|
|
1975
1981
|
/**
|
|
@@ -14206,7 +14212,8 @@ var StyledAnchor = styled.a.attrs(function (props) {
|
|
|
14206
14212
|
var DropdownWrapper = styled.div(function (_ref) {
|
|
14207
14213
|
var index = _ref.index,
|
|
14208
14214
|
height = _ref.height,
|
|
14209
|
-
totalLength = _ref.totalLength
|
|
14215
|
+
totalLength = _ref.totalLength,
|
|
14216
|
+
paddingHorizontal = _ref.paddingHorizontal;
|
|
14210
14217
|
var _useState = useState(0),
|
|
14211
14218
|
_useState2 = _slicedToArray(_useState, 2),
|
|
14212
14219
|
cumulativeWidth = _useState2[0],
|
|
@@ -14218,11 +14225,11 @@ var DropdownWrapper = styled.div(function (_ref) {
|
|
|
14218
14225
|
|
|
14219
14226
|
// Calculate cumulative width of dropdowns with buffer
|
|
14220
14227
|
useEffect(function () {
|
|
14221
|
-
var cumulativeWidth =
|
|
14228
|
+
var cumulativeWidth = paddingHorizontal;
|
|
14222
14229
|
for (var i = totalLength - 1; i > index; i--) {
|
|
14223
14230
|
var dropdown = (iframeDocument !== null && iframeDocument !== void 0 ? iframeDocument : document).getElementById("dropdown-".concat(i));
|
|
14224
14231
|
if (dropdown) {
|
|
14225
|
-
cumulativeWidth += dropdown.offsetWidth +
|
|
14232
|
+
cumulativeWidth += dropdown.offsetWidth + 20; // buffer width
|
|
14226
14233
|
}
|
|
14227
14234
|
}
|
|
14228
14235
|
|
|
@@ -15549,7 +15556,7 @@ var Link = withConditionalRender(LinkElement, function () {
|
|
|
15549
15556
|
return !!(prop("label") || prop("icon"));
|
|
15550
15557
|
});
|
|
15551
15558
|
|
|
15552
|
-
var _excluded$h = ["link", "design", "index", "height", "className", "totalLength"];
|
|
15559
|
+
var _excluded$h = ["link", "design", "index", "height", "className", "totalLength", "paddingHorizontal"];
|
|
15553
15560
|
var Dropdown = function Dropdown(_ref) {
|
|
15554
15561
|
var link = _ref.link,
|
|
15555
15562
|
design = _ref.design,
|
|
@@ -15558,6 +15565,8 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
15558
15565
|
_ref$className = _ref.className,
|
|
15559
15566
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
15560
15567
|
totalLength = _ref.totalLength,
|
|
15568
|
+
_ref$paddingHorizonta = _ref.paddingHorizontal,
|
|
15569
|
+
paddingHorizontal = _ref$paddingHorizonta === void 0 ? 0 : _ref$paddingHorizonta,
|
|
15561
15570
|
otherProps = _objectWithoutProperties(_ref, _excluded$h);
|
|
15562
15571
|
var _useState = useState(false),
|
|
15563
15572
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -15584,6 +15593,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
15584
15593
|
className: className,
|
|
15585
15594
|
height: height,
|
|
15586
15595
|
index: index,
|
|
15596
|
+
paddingHorizontal: paddingHorizontal,
|
|
15587
15597
|
totalLength: totalLength
|
|
15588
15598
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
15589
15599
|
className: "flex cursor-pointer items-center justify-between lg:h-full lg:justify-center",
|
|
@@ -15932,10 +15942,15 @@ var CardsClassic = function CardsClassic(_ref) {
|
|
|
15932
15942
|
component: "p",
|
|
15933
15943
|
style: design.cardDescription
|
|
15934
15944
|
}, description));
|
|
15935
|
-
}), isButtonRequired && /*#__PURE__*/React__default.createElement(
|
|
15936
|
-
className: "col-span-12 flex
|
|
15945
|
+
}), isButtonRequired && /*#__PURE__*/React__default.createElement(StyledWrapper, {
|
|
15946
|
+
className: "col-span-12 flex",
|
|
15947
|
+
design: {
|
|
15948
|
+
justifyContent: design.button.justifyContent
|
|
15949
|
+
}
|
|
15950
|
+
}, /*#__PURE__*/React__default.createElement(Button$1, _extends$2({
|
|
15951
|
+
className: "flex w-full justify-center sm:w-1/2 lg:w-1/3",
|
|
15937
15952
|
style: design.button
|
|
15938
|
-
}, button)));
|
|
15953
|
+
}, button))));
|
|
15939
15954
|
};
|
|
15940
15955
|
|
|
15941
15956
|
/**
|
|
@@ -20875,10 +20890,13 @@ var CardsInGridView = function CardsInGridView(_ref) {
|
|
|
20875
20890
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
20876
20891
|
key: getUniqueKey(card.title, card.description, index)
|
|
20877
20892
|
}, renderCard(card));
|
|
20878
|
-
})), isButtonRequired && /*#__PURE__*/React__default.createElement(
|
|
20879
|
-
className: "col-span-12
|
|
20893
|
+
})), isButtonRequired && /*#__PURE__*/React__default.createElement(StyledWrapper, {
|
|
20894
|
+
className: "col-span-12 flex",
|
|
20895
|
+
design: {
|
|
20896
|
+
justifyContent: design.button.justifyContent
|
|
20897
|
+
}
|
|
20880
20898
|
}, /*#__PURE__*/React__default.createElement(Button$1, _extends$2({
|
|
20881
|
-
className: "
|
|
20899
|
+
className: "flex w-full justify-center sm:w-1/2 lg:w-1/3",
|
|
20882
20900
|
style: design.button
|
|
20883
20901
|
}, button))));
|
|
20884
20902
|
};
|
|
@@ -20950,10 +20968,13 @@ var CardsWithCustomizableGrid = function CardsWithCustomizableGrid(_ref) {
|
|
|
20950
20968
|
component: "p",
|
|
20951
20969
|
style: design.cardDescription
|
|
20952
20970
|
}, description));
|
|
20953
|
-
}), isButtonRequired && /*#__PURE__*/React__default.createElement(
|
|
20954
|
-
className: "col-span-12
|
|
20971
|
+
}), isButtonRequired && /*#__PURE__*/React__default.createElement(StyledWrapper, {
|
|
20972
|
+
className: "col-span-12 flex",
|
|
20973
|
+
design: {
|
|
20974
|
+
justifyContent: design.button.justifyContent
|
|
20975
|
+
}
|
|
20955
20976
|
}, /*#__PURE__*/React__default.createElement(Button$1, _extends$2({
|
|
20956
|
-
className: "
|
|
20977
|
+
className: "flex w-full justify-center sm:w-1/2 lg:w-1/3",
|
|
20957
20978
|
style: design.button
|
|
20958
20979
|
}, button)))));
|
|
20959
20980
|
};
|
|
@@ -21062,18 +21083,17 @@ var CtaClassic = function CtaClassic(_ref) {
|
|
|
21062
21083
|
title = _properties$content.title,
|
|
21063
21084
|
description = _properties$content.description,
|
|
21064
21085
|
enableAnimation = properties.enableAnimation,
|
|
21065
|
-
|
|
21066
|
-
src = properties.backgroundImage.src
|
|
21067
|
-
secondaryButton = properties.secondaryButton;
|
|
21086
|
+
buttons = properties.buttons,
|
|
21087
|
+
src = properties.backgroundImage.src;
|
|
21068
21088
|
var baseClasses = "grid grid-cols-12 items-center gap-x-4 gap-y-8";
|
|
21069
21089
|
return /*#__PURE__*/React__default.createElement(BlockWrapper, {
|
|
21090
|
+
className: className,
|
|
21091
|
+
enableAnimation: enableAnimation,
|
|
21092
|
+
id: id,
|
|
21070
21093
|
backgroundImage: mergeLeft({
|
|
21071
21094
|
src: src
|
|
21072
21095
|
}, design.backgroundImage),
|
|
21073
|
-
className: className,
|
|
21074
21096
|
design: design.body,
|
|
21075
|
-
enableAnimation: enableAnimation,
|
|
21076
|
-
id: id,
|
|
21077
21097
|
nestedClassName: baseClasses
|
|
21078
21098
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
21079
21099
|
className: "col-span-12 sm:col-span-8 sm:col-start-3 lg:col-span-6 lg:col-start-4"
|
|
@@ -21086,13 +21106,13 @@ var CtaClassic = function CtaClassic(_ref) {
|
|
|
21086
21106
|
style: design.description
|
|
21087
21107
|
}, description)), /*#__PURE__*/React__default.createElement("div", {
|
|
21088
21108
|
className: "col-span-10 col-start-2 flex flex-col justify-center gap-y-2 space-x-2 sm:col-span-6 sm:col-start-4 sm:flex-row lg:col-span-4 lg:col-start-5"
|
|
21089
|
-
},
|
|
21090
|
-
|
|
21091
|
-
|
|
21092
|
-
|
|
21093
|
-
|
|
21094
|
-
|
|
21095
|
-
}
|
|
21109
|
+
}, buttons.map(function (button, index) {
|
|
21110
|
+
return /*#__PURE__*/React__default.createElement(Button$1, _extends$2({
|
|
21111
|
+
className: "justify-center sm:w-auto",
|
|
21112
|
+
key: index,
|
|
21113
|
+
style: button.type === "primary" ? design.primaryButton : design.secondaryButton
|
|
21114
|
+
}, button, otherProps));
|
|
21115
|
+
})));
|
|
21096
21116
|
};
|
|
21097
21117
|
|
|
21098
21118
|
var axios$3 = {exports: {}};
|
|
@@ -38710,17 +38730,17 @@ var CtaWithLogo = function CtaWithLogo(_ref) {
|
|
|
38710
38730
|
description = _properties$content.description,
|
|
38711
38731
|
enableAnimation = properties.enableAnimation,
|
|
38712
38732
|
logoUrl = properties.logoUrl,
|
|
38713
|
-
|
|
38733
|
+
buttons = properties.buttons,
|
|
38714
38734
|
src = properties.backgroundImage.src;
|
|
38715
38735
|
var baseClasses = "grid grid-cols-12 items-center gap-x-4 gap-y-8";
|
|
38716
38736
|
return /*#__PURE__*/React__default.createElement(BlockWrapper, {
|
|
38737
|
+
className: className,
|
|
38738
|
+
enableAnimation: enableAnimation,
|
|
38739
|
+
id: id,
|
|
38717
38740
|
backgroundImage: mergeLeft({
|
|
38718
38741
|
src: src
|
|
38719
38742
|
}, design.backgroundImage),
|
|
38720
|
-
className: className,
|
|
38721
38743
|
design: design.body,
|
|
38722
|
-
enableAnimation: enableAnimation,
|
|
38723
|
-
id: id,
|
|
38724
38744
|
nestedClassName: baseClasses
|
|
38725
38745
|
}, /*#__PURE__*/React__default.createElement(StyledImage$1, {
|
|
38726
38746
|
alt: "logo",
|
|
@@ -38738,10 +38758,13 @@ var CtaWithLogo = function CtaWithLogo(_ref) {
|
|
|
38738
38758
|
style: design.description
|
|
38739
38759
|
}, description)), /*#__PURE__*/React__default.createElement("div", {
|
|
38740
38760
|
className: "col-span-12 mx-auto w-full sm:col-span-3 sm:col-start-10 lg:col-span-3 lg:col-start-10"
|
|
38741
|
-
},
|
|
38742
|
-
|
|
38743
|
-
|
|
38744
|
-
|
|
38761
|
+
}, buttons.map(function (button, index) {
|
|
38762
|
+
return /*#__PURE__*/React__default.createElement(Button$1, _extends$2({
|
|
38763
|
+
className: "justify-center sm:w-auto",
|
|
38764
|
+
key: index,
|
|
38765
|
+
style: design.button
|
|
38766
|
+
}, button, otherProps));
|
|
38767
|
+
})));
|
|
38745
38768
|
};
|
|
38746
38769
|
|
|
38747
38770
|
var Embed = function Embed(_ref) {
|
|
@@ -41870,6 +41893,7 @@ var HeaderWithDropdownLinks = function HeaderWithDropdownLinks(_ref) {
|
|
|
41870
41893
|
design: design.links,
|
|
41871
41894
|
height: headerHeight,
|
|
41872
41895
|
key: getUniqueKey(link.label, link.to, index),
|
|
41896
|
+
paddingHorizontal: design.body.paddingHorizontal,
|
|
41873
41897
|
totalLength: properties.links.length
|
|
41874
41898
|
});
|
|
41875
41899
|
})), /*#__PURE__*/React__default.createElement("button", {
|
|
@@ -42782,10 +42806,15 @@ var TestimonialWithSlider = function TestimonialWithSlider(_ref) {
|
|
|
42782
42806
|
}), /*#__PURE__*/React__default.createElement(Pagination$1, {
|
|
42783
42807
|
swiper: swiper,
|
|
42784
42808
|
design: design.buttons
|
|
42785
|
-
}))), isButtonRequired && /*#__PURE__*/React__default.createElement(
|
|
42786
|
-
className: "col-span-12 flex
|
|
42809
|
+
}))), isButtonRequired && /*#__PURE__*/React__default.createElement(StyledWrapper, {
|
|
42810
|
+
className: "col-span-12 flex",
|
|
42811
|
+
design: {
|
|
42812
|
+
justifyContent: design.button.justifyContent
|
|
42813
|
+
}
|
|
42814
|
+
}, /*#__PURE__*/React__default.createElement(Button$1, _extends$2({
|
|
42815
|
+
className: "flex w-full justify-center sm:w-1/2 lg:w-1/3",
|
|
42787
42816
|
style: design.button
|
|
42788
|
-
}, button, otherProps)));
|
|
42817
|
+
}, button, otherProps))));
|
|
42789
42818
|
};
|
|
42790
42819
|
|
|
42791
42820
|
var _excluded = ["configurations", "className", "id"];
|
|
@@ -42871,10 +42900,15 @@ var TestimonialWithVerticalView = function TestimonialWithVerticalView(_ref) {
|
|
|
42871
42900
|
component: "p",
|
|
42872
42901
|
style: design.testimonialDescription
|
|
42873
42902
|
}, testimonialDescription)));
|
|
42874
|
-
})), isButtonRequired && /*#__PURE__*/React__default.createElement(
|
|
42875
|
-
className: "col-span-12 flex
|
|
42903
|
+
})), isButtonRequired && /*#__PURE__*/React__default.createElement(StyledWrapper, {
|
|
42904
|
+
className: "col-span-12 flex",
|
|
42905
|
+
design: {
|
|
42906
|
+
justifyContent: design.button.justifyContent
|
|
42907
|
+
}
|
|
42908
|
+
}, /*#__PURE__*/React__default.createElement(Button$1, _extends$2({
|
|
42909
|
+
className: "flex w-full justify-center sm:w-1/2 lg:w-1/3",
|
|
42876
42910
|
style: design.button
|
|
42877
|
-
}, button, otherProps)));
|
|
42911
|
+
}, button, otherProps))));
|
|
42878
42912
|
};
|
|
42879
42913
|
|
|
42880
42914
|
var index = /*#__PURE__*/Object.freeze({
|