@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.cjs.js
CHANGED
|
@@ -1989,6 +1989,11 @@ var IMAGE_FIT_VALUES = {
|
|
|
1989
1989
|
cover: "cover",
|
|
1990
1990
|
contain: "contain"
|
|
1991
1991
|
};
|
|
1992
|
+
var BUTTON_ALIGN_VALUES = {
|
|
1993
|
+
left: "left",
|
|
1994
|
+
center: "center",
|
|
1995
|
+
right: "right"
|
|
1996
|
+
};
|
|
1992
1997
|
|
|
1993
1998
|
var index$1 = /*#__PURE__*/Object.freeze({
|
|
1994
1999
|
__proto__: null,
|
|
@@ -2015,7 +2020,8 @@ var index$1 = /*#__PURE__*/Object.freeze({
|
|
|
2015
2020
|
DEFAULT_LINK_STYLES: DEFAULT_LINK_STYLES,
|
|
2016
2021
|
IMAGE_POSITIONS: IMAGE_POSITIONS,
|
|
2017
2022
|
LOGO_SIZE_VALUES: LOGO_SIZE_VALUES,
|
|
2018
|
-
IMAGE_FIT_VALUES: IMAGE_FIT_VALUES
|
|
2023
|
+
IMAGE_FIT_VALUES: IMAGE_FIT_VALUES,
|
|
2024
|
+
BUTTON_ALIGN_VALUES: BUTTON_ALIGN_VALUES
|
|
2019
2025
|
});
|
|
2020
2026
|
|
|
2021
2027
|
/**
|
|
@@ -14252,7 +14258,8 @@ var StyledAnchor = styled__default["default"].a.attrs(function (props) {
|
|
|
14252
14258
|
var DropdownWrapper = styled__default["default"].div(function (_ref) {
|
|
14253
14259
|
var index = _ref.index,
|
|
14254
14260
|
height = _ref.height,
|
|
14255
|
-
totalLength = _ref.totalLength
|
|
14261
|
+
totalLength = _ref.totalLength,
|
|
14262
|
+
paddingHorizontal = _ref.paddingHorizontal;
|
|
14256
14263
|
var _useState = React.useState(0),
|
|
14257
14264
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
14258
14265
|
cumulativeWidth = _useState2[0],
|
|
@@ -14264,11 +14271,11 @@ var DropdownWrapper = styled__default["default"].div(function (_ref) {
|
|
|
14264
14271
|
|
|
14265
14272
|
// Calculate cumulative width of dropdowns with buffer
|
|
14266
14273
|
React.useEffect(function () {
|
|
14267
|
-
var cumulativeWidth =
|
|
14274
|
+
var cumulativeWidth = paddingHorizontal;
|
|
14268
14275
|
for (var i = totalLength - 1; i > index; i--) {
|
|
14269
14276
|
var dropdown = (iframeDocument !== null && iframeDocument !== void 0 ? iframeDocument : document).getElementById("dropdown-".concat(i));
|
|
14270
14277
|
if (dropdown) {
|
|
14271
|
-
cumulativeWidth += dropdown.offsetWidth +
|
|
14278
|
+
cumulativeWidth += dropdown.offsetWidth + 20; // buffer width
|
|
14272
14279
|
}
|
|
14273
14280
|
}
|
|
14274
14281
|
|
|
@@ -15595,7 +15602,7 @@ var Link = withConditionalRender(LinkElement, function () {
|
|
|
15595
15602
|
return !!(prop("label") || prop("icon"));
|
|
15596
15603
|
});
|
|
15597
15604
|
|
|
15598
|
-
var _excluded$h = ["link", "design", "index", "height", "className", "totalLength"];
|
|
15605
|
+
var _excluded$h = ["link", "design", "index", "height", "className", "totalLength", "paddingHorizontal"];
|
|
15599
15606
|
var Dropdown = function Dropdown(_ref) {
|
|
15600
15607
|
var link = _ref.link,
|
|
15601
15608
|
design = _ref.design,
|
|
@@ -15604,6 +15611,8 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
15604
15611
|
_ref$className = _ref.className,
|
|
15605
15612
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
15606
15613
|
totalLength = _ref.totalLength,
|
|
15614
|
+
_ref$paddingHorizonta = _ref.paddingHorizontal,
|
|
15615
|
+
paddingHorizontal = _ref$paddingHorizonta === void 0 ? 0 : _ref$paddingHorizonta,
|
|
15607
15616
|
otherProps = _objectWithoutProperties__default["default"](_ref, _excluded$h);
|
|
15608
15617
|
var _useState = React.useState(false),
|
|
15609
15618
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
@@ -15630,6 +15639,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
15630
15639
|
className: className,
|
|
15631
15640
|
height: height,
|
|
15632
15641
|
index: index,
|
|
15642
|
+
paddingHorizontal: paddingHorizontal,
|
|
15633
15643
|
totalLength: totalLength
|
|
15634
15644
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15635
15645
|
className: "flex cursor-pointer items-center justify-between lg:h-full lg:justify-center",
|
|
@@ -15978,10 +15988,15 @@ var CardsClassic = function CardsClassic(_ref) {
|
|
|
15978
15988
|
component: "p",
|
|
15979
15989
|
style: design.cardDescription
|
|
15980
15990
|
}, description));
|
|
15981
|
-
}), isButtonRequired && /*#__PURE__*/React__default["default"].createElement(
|
|
15982
|
-
className: "col-span-12 flex
|
|
15991
|
+
}), isButtonRequired && /*#__PURE__*/React__default["default"].createElement(StyledWrapper, {
|
|
15992
|
+
className: "col-span-12 flex",
|
|
15993
|
+
design: {
|
|
15994
|
+
justifyContent: design.button.justifyContent
|
|
15995
|
+
}
|
|
15996
|
+
}, /*#__PURE__*/React__default["default"].createElement(Button$1, _extends__default["default"]({
|
|
15997
|
+
className: "flex w-full justify-center sm:w-1/2 lg:w-1/3",
|
|
15983
15998
|
style: design.button
|
|
15984
|
-
}, button)));
|
|
15999
|
+
}, button))));
|
|
15985
16000
|
};
|
|
15986
16001
|
|
|
15987
16002
|
/**
|
|
@@ -20921,10 +20936,13 @@ var CardsInGridView = function CardsInGridView(_ref) {
|
|
|
20921
20936
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, {
|
|
20922
20937
|
key: getUniqueKey(card.title, card.description, index)
|
|
20923
20938
|
}, renderCard(card));
|
|
20924
|
-
})), isButtonRequired && /*#__PURE__*/React__default["default"].createElement(
|
|
20925
|
-
className: "col-span-12
|
|
20939
|
+
})), isButtonRequired && /*#__PURE__*/React__default["default"].createElement(StyledWrapper, {
|
|
20940
|
+
className: "col-span-12 flex",
|
|
20941
|
+
design: {
|
|
20942
|
+
justifyContent: design.button.justifyContent
|
|
20943
|
+
}
|
|
20926
20944
|
}, /*#__PURE__*/React__default["default"].createElement(Button$1, _extends__default["default"]({
|
|
20927
|
-
className: "
|
|
20945
|
+
className: "flex w-full justify-center sm:w-1/2 lg:w-1/3",
|
|
20928
20946
|
style: design.button
|
|
20929
20947
|
}, button))));
|
|
20930
20948
|
};
|
|
@@ -20996,10 +21014,13 @@ var CardsWithCustomizableGrid = function CardsWithCustomizableGrid(_ref) {
|
|
|
20996
21014
|
component: "p",
|
|
20997
21015
|
style: design.cardDescription
|
|
20998
21016
|
}, description));
|
|
20999
|
-
}), isButtonRequired && /*#__PURE__*/React__default["default"].createElement(
|
|
21000
|
-
className: "col-span-12
|
|
21017
|
+
}), isButtonRequired && /*#__PURE__*/React__default["default"].createElement(StyledWrapper, {
|
|
21018
|
+
className: "col-span-12 flex",
|
|
21019
|
+
design: {
|
|
21020
|
+
justifyContent: design.button.justifyContent
|
|
21021
|
+
}
|
|
21001
21022
|
}, /*#__PURE__*/React__default["default"].createElement(Button$1, _extends__default["default"]({
|
|
21002
|
-
className: "
|
|
21023
|
+
className: "flex w-full justify-center sm:w-1/2 lg:w-1/3",
|
|
21003
21024
|
style: design.button
|
|
21004
21025
|
}, button)))));
|
|
21005
21026
|
};
|
|
@@ -21108,18 +21129,17 @@ var CtaClassic = function CtaClassic(_ref) {
|
|
|
21108
21129
|
title = _properties$content.title,
|
|
21109
21130
|
description = _properties$content.description,
|
|
21110
21131
|
enableAnimation = properties.enableAnimation,
|
|
21111
|
-
|
|
21112
|
-
src = properties.backgroundImage.src
|
|
21113
|
-
secondaryButton = properties.secondaryButton;
|
|
21132
|
+
buttons = properties.buttons,
|
|
21133
|
+
src = properties.backgroundImage.src;
|
|
21114
21134
|
var baseClasses = "grid grid-cols-12 items-center gap-x-4 gap-y-8";
|
|
21115
21135
|
return /*#__PURE__*/React__default["default"].createElement(BlockWrapper, {
|
|
21136
|
+
className: className,
|
|
21137
|
+
enableAnimation: enableAnimation,
|
|
21138
|
+
id: id,
|
|
21116
21139
|
backgroundImage: mergeLeft({
|
|
21117
21140
|
src: src
|
|
21118
21141
|
}, design.backgroundImage),
|
|
21119
|
-
className: className,
|
|
21120
21142
|
design: design.body,
|
|
21121
|
-
enableAnimation: enableAnimation,
|
|
21122
|
-
id: id,
|
|
21123
21143
|
nestedClassName: baseClasses
|
|
21124
21144
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
21125
21145
|
className: "col-span-12 sm:col-span-8 sm:col-start-3 lg:col-span-6 lg:col-start-4"
|
|
@@ -21132,13 +21152,13 @@ var CtaClassic = function CtaClassic(_ref) {
|
|
|
21132
21152
|
style: design.description
|
|
21133
21153
|
}, description)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
21134
21154
|
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"
|
|
21135
|
-
},
|
|
21136
|
-
|
|
21137
|
-
|
|
21138
|
-
|
|
21139
|
-
|
|
21140
|
-
|
|
21141
|
-
}
|
|
21155
|
+
}, buttons.map(function (button, index) {
|
|
21156
|
+
return /*#__PURE__*/React__default["default"].createElement(Button$1, _extends__default["default"]({
|
|
21157
|
+
className: "justify-center sm:w-auto",
|
|
21158
|
+
key: index,
|
|
21159
|
+
style: button.type === "primary" ? design.primaryButton : design.secondaryButton
|
|
21160
|
+
}, button, otherProps));
|
|
21161
|
+
})));
|
|
21142
21162
|
};
|
|
21143
21163
|
|
|
21144
21164
|
var axios$3 = {exports: {}};
|
|
@@ -38756,17 +38776,17 @@ var CtaWithLogo = function CtaWithLogo(_ref) {
|
|
|
38756
38776
|
description = _properties$content.description,
|
|
38757
38777
|
enableAnimation = properties.enableAnimation,
|
|
38758
38778
|
logoUrl = properties.logoUrl,
|
|
38759
|
-
|
|
38779
|
+
buttons = properties.buttons,
|
|
38760
38780
|
src = properties.backgroundImage.src;
|
|
38761
38781
|
var baseClasses = "grid grid-cols-12 items-center gap-x-4 gap-y-8";
|
|
38762
38782
|
return /*#__PURE__*/React__default["default"].createElement(BlockWrapper, {
|
|
38783
|
+
className: className,
|
|
38784
|
+
enableAnimation: enableAnimation,
|
|
38785
|
+
id: id,
|
|
38763
38786
|
backgroundImage: mergeLeft({
|
|
38764
38787
|
src: src
|
|
38765
38788
|
}, design.backgroundImage),
|
|
38766
|
-
className: className,
|
|
38767
38789
|
design: design.body,
|
|
38768
|
-
enableAnimation: enableAnimation,
|
|
38769
|
-
id: id,
|
|
38770
38790
|
nestedClassName: baseClasses
|
|
38771
38791
|
}, /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
|
|
38772
38792
|
alt: "logo",
|
|
@@ -38784,10 +38804,13 @@ var CtaWithLogo = function CtaWithLogo(_ref) {
|
|
|
38784
38804
|
style: design.description
|
|
38785
38805
|
}, description)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
38786
38806
|
className: "col-span-12 mx-auto w-full sm:col-span-3 sm:col-start-10 lg:col-span-3 lg:col-start-10"
|
|
38787
|
-
},
|
|
38788
|
-
|
|
38789
|
-
|
|
38790
|
-
|
|
38807
|
+
}, buttons.map(function (button, index) {
|
|
38808
|
+
return /*#__PURE__*/React__default["default"].createElement(Button$1, _extends__default["default"]({
|
|
38809
|
+
className: "justify-center sm:w-auto",
|
|
38810
|
+
key: index,
|
|
38811
|
+
style: design.button
|
|
38812
|
+
}, button, otherProps));
|
|
38813
|
+
})));
|
|
38791
38814
|
};
|
|
38792
38815
|
|
|
38793
38816
|
var Embed = function Embed(_ref) {
|
|
@@ -41916,6 +41939,7 @@ var HeaderWithDropdownLinks = function HeaderWithDropdownLinks(_ref) {
|
|
|
41916
41939
|
design: design.links,
|
|
41917
41940
|
height: headerHeight,
|
|
41918
41941
|
key: getUniqueKey(link.label, link.to, index),
|
|
41942
|
+
paddingHorizontal: design.body.paddingHorizontal,
|
|
41919
41943
|
totalLength: properties.links.length
|
|
41920
41944
|
});
|
|
41921
41945
|
})), /*#__PURE__*/React__default["default"].createElement("button", {
|
|
@@ -42828,10 +42852,15 @@ var TestimonialWithSlider = function TestimonialWithSlider(_ref) {
|
|
|
42828
42852
|
}), /*#__PURE__*/React__default["default"].createElement(Pagination$1, {
|
|
42829
42853
|
swiper: swiper,
|
|
42830
42854
|
design: design.buttons
|
|
42831
|
-
}))), isButtonRequired && /*#__PURE__*/React__default["default"].createElement(
|
|
42832
|
-
className: "col-span-12 flex
|
|
42855
|
+
}))), isButtonRequired && /*#__PURE__*/React__default["default"].createElement(StyledWrapper, {
|
|
42856
|
+
className: "col-span-12 flex",
|
|
42857
|
+
design: {
|
|
42858
|
+
justifyContent: design.button.justifyContent
|
|
42859
|
+
}
|
|
42860
|
+
}, /*#__PURE__*/React__default["default"].createElement(Button$1, _extends__default["default"]({
|
|
42861
|
+
className: "flex w-full justify-center sm:w-1/2 lg:w-1/3",
|
|
42833
42862
|
style: design.button
|
|
42834
|
-
}, button, otherProps)));
|
|
42863
|
+
}, button, otherProps))));
|
|
42835
42864
|
};
|
|
42836
42865
|
|
|
42837
42866
|
var _excluded = ["configurations", "className", "id"];
|
|
@@ -42917,10 +42946,15 @@ var TestimonialWithVerticalView = function TestimonialWithVerticalView(_ref) {
|
|
|
42917
42946
|
component: "p",
|
|
42918
42947
|
style: design.testimonialDescription
|
|
42919
42948
|
}, testimonialDescription)));
|
|
42920
|
-
})), isButtonRequired && /*#__PURE__*/React__default["default"].createElement(
|
|
42921
|
-
className: "col-span-12 flex
|
|
42949
|
+
})), isButtonRequired && /*#__PURE__*/React__default["default"].createElement(StyledWrapper, {
|
|
42950
|
+
className: "col-span-12 flex",
|
|
42951
|
+
design: {
|
|
42952
|
+
justifyContent: design.button.justifyContent
|
|
42953
|
+
}
|
|
42954
|
+
}, /*#__PURE__*/React__default["default"].createElement(Button$1, _extends__default["default"]({
|
|
42955
|
+
className: "flex w-full justify-center sm:w-1/2 lg:w-1/3",
|
|
42922
42956
|
style: design.button
|
|
42923
|
-
}, button, otherProps)));
|
|
42957
|
+
}, button, otherProps))));
|
|
42924
42958
|
};
|
|
42925
42959
|
|
|
42926
42960
|
var index = /*#__PURE__*/Object.freeze({
|