@bigbinary/neeto-site-blocks 1.7.2 → 1.7.4
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 +91 -55
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +91 -55
- 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
|
/**
|
|
@@ -15982,10 +15988,15 @@ var CardsClassic = function CardsClassic(_ref) {
|
|
|
15982
15988
|
component: "p",
|
|
15983
15989
|
style: design.cardDescription
|
|
15984
15990
|
}, description));
|
|
15985
|
-
}), isButtonRequired && /*#__PURE__*/React__default["default"].createElement(
|
|
15986
|
-
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",
|
|
15987
15998
|
style: design.button
|
|
15988
|
-
}, button)));
|
|
15999
|
+
}, button))));
|
|
15989
16000
|
};
|
|
15990
16001
|
|
|
15991
16002
|
/**
|
|
@@ -20925,10 +20936,13 @@ var CardsInGridView = function CardsInGridView(_ref) {
|
|
|
20925
20936
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, {
|
|
20926
20937
|
key: getUniqueKey(card.title, card.description, index)
|
|
20927
20938
|
}, renderCard(card));
|
|
20928
|
-
})), isButtonRequired && /*#__PURE__*/React__default["default"].createElement(
|
|
20929
|
-
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
|
+
}
|
|
20930
20944
|
}, /*#__PURE__*/React__default["default"].createElement(Button$1, _extends__default["default"]({
|
|
20931
|
-
className: "
|
|
20945
|
+
className: "flex w-full justify-center sm:w-1/2 lg:w-1/3",
|
|
20932
20946
|
style: design.button
|
|
20933
20947
|
}, button))));
|
|
20934
20948
|
};
|
|
@@ -21000,10 +21014,13 @@ var CardsWithCustomizableGrid = function CardsWithCustomizableGrid(_ref) {
|
|
|
21000
21014
|
component: "p",
|
|
21001
21015
|
style: design.cardDescription
|
|
21002
21016
|
}, description));
|
|
21003
|
-
}), isButtonRequired && /*#__PURE__*/React__default["default"].createElement(
|
|
21004
|
-
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
|
+
}
|
|
21005
21022
|
}, /*#__PURE__*/React__default["default"].createElement(Button$1, _extends__default["default"]({
|
|
21006
|
-
className: "
|
|
21023
|
+
className: "flex w-full justify-center sm:w-1/2 lg:w-1/3",
|
|
21007
21024
|
style: design.button
|
|
21008
21025
|
}, button)))));
|
|
21009
21026
|
};
|
|
@@ -21112,18 +21129,17 @@ var CtaClassic = function CtaClassic(_ref) {
|
|
|
21112
21129
|
title = _properties$content.title,
|
|
21113
21130
|
description = _properties$content.description,
|
|
21114
21131
|
enableAnimation = properties.enableAnimation,
|
|
21115
|
-
|
|
21116
|
-
src = properties.backgroundImage.src
|
|
21117
|
-
secondaryButton = properties.secondaryButton;
|
|
21132
|
+
buttons = properties.buttons,
|
|
21133
|
+
src = properties.backgroundImage.src;
|
|
21118
21134
|
var baseClasses = "grid grid-cols-12 items-center gap-x-4 gap-y-8";
|
|
21119
21135
|
return /*#__PURE__*/React__default["default"].createElement(BlockWrapper, {
|
|
21136
|
+
className: className,
|
|
21137
|
+
enableAnimation: enableAnimation,
|
|
21138
|
+
id: id,
|
|
21120
21139
|
backgroundImage: mergeLeft({
|
|
21121
21140
|
src: src
|
|
21122
21141
|
}, design.backgroundImage),
|
|
21123
|
-
className: className,
|
|
21124
21142
|
design: design.body,
|
|
21125
|
-
enableAnimation: enableAnimation,
|
|
21126
|
-
id: id,
|
|
21127
21143
|
nestedClassName: baseClasses
|
|
21128
21144
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
21129
21145
|
className: "col-span-12 sm:col-span-8 sm:col-start-3 lg:col-span-6 lg:col-start-4"
|
|
@@ -21136,13 +21152,13 @@ var CtaClassic = function CtaClassic(_ref) {
|
|
|
21136
21152
|
style: design.description
|
|
21137
21153
|
}, description)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
21138
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"
|
|
21139
|
-
},
|
|
21140
|
-
|
|
21141
|
-
|
|
21142
|
-
|
|
21143
|
-
|
|
21144
|
-
|
|
21145
|
-
}
|
|
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
|
+
})));
|
|
21146
21162
|
};
|
|
21147
21163
|
|
|
21148
21164
|
var axios$3 = {exports: {}};
|
|
@@ -38760,17 +38776,17 @@ var CtaWithLogo = function CtaWithLogo(_ref) {
|
|
|
38760
38776
|
description = _properties$content.description,
|
|
38761
38777
|
enableAnimation = properties.enableAnimation,
|
|
38762
38778
|
logoUrl = properties.logoUrl,
|
|
38763
|
-
|
|
38779
|
+
buttons = properties.buttons,
|
|
38764
38780
|
src = properties.backgroundImage.src;
|
|
38765
38781
|
var baseClasses = "grid grid-cols-12 items-center gap-x-4 gap-y-8";
|
|
38766
38782
|
return /*#__PURE__*/React__default["default"].createElement(BlockWrapper, {
|
|
38783
|
+
className: className,
|
|
38784
|
+
enableAnimation: enableAnimation,
|
|
38785
|
+
id: id,
|
|
38767
38786
|
backgroundImage: mergeLeft({
|
|
38768
38787
|
src: src
|
|
38769
38788
|
}, design.backgroundImage),
|
|
38770
|
-
className: className,
|
|
38771
38789
|
design: design.body,
|
|
38772
|
-
enableAnimation: enableAnimation,
|
|
38773
|
-
id: id,
|
|
38774
38790
|
nestedClassName: baseClasses
|
|
38775
38791
|
}, /*#__PURE__*/React__default["default"].createElement(StyledImage$1, {
|
|
38776
38792
|
alt: "logo",
|
|
@@ -38788,10 +38804,13 @@ var CtaWithLogo = function CtaWithLogo(_ref) {
|
|
|
38788
38804
|
style: design.description
|
|
38789
38805
|
}, description)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
38790
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"
|
|
38791
|
-
},
|
|
38792
|
-
|
|
38793
|
-
|
|
38794
|
-
|
|
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
|
+
})));
|
|
38795
38814
|
};
|
|
38796
38815
|
|
|
38797
38816
|
var Embed = function Embed(_ref) {
|
|
@@ -38939,6 +38958,23 @@ var FeatureWithBulletList = function FeatureWithBulletList(_ref) {
|
|
|
38939
38958
|
bulletList = properties.bulletList,
|
|
38940
38959
|
src = properties.backgroundImage.src;
|
|
38941
38960
|
var baseClasses = "grid grid-cols-12 items-center";
|
|
38961
|
+
var BulletList = withConditionalRender(function () {
|
|
38962
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
38963
|
+
className: "col-span-12 flex justify-center sm:col-span-6 sm:col-start-7"
|
|
38964
|
+
}, /*#__PURE__*/React__default["default"].createElement("ul", {
|
|
38965
|
+
className: "list-disc"
|
|
38966
|
+
}, bulletList.map(function (_ref2, index) {
|
|
38967
|
+
var featureTitle = _ref2.title;
|
|
38968
|
+
return /*#__PURE__*/React__default["default"].createElement(Typography$1, {
|
|
38969
|
+
isTitle: true,
|
|
38970
|
+
component: "li",
|
|
38971
|
+
key: getUniqueKey(featureTitle, index),
|
|
38972
|
+
style: design.bulletList
|
|
38973
|
+
}, featureTitle);
|
|
38974
|
+
})));
|
|
38975
|
+
}, function () {
|
|
38976
|
+
return neetoCist.isNotEmpty(bulletList);
|
|
38977
|
+
});
|
|
38942
38978
|
return /*#__PURE__*/React__default["default"].createElement(BlockWrapper, {
|
|
38943
38979
|
className: className,
|
|
38944
38980
|
enableAnimation: enableAnimation,
|
|
@@ -38957,19 +38993,7 @@ var FeatureWithBulletList = function FeatureWithBulletList(_ref) {
|
|
|
38957
38993
|
}, title), /*#__PURE__*/React__default["default"].createElement(Typography$1, {
|
|
38958
38994
|
component: "p",
|
|
38959
38995
|
style: design.description
|
|
38960
|
-
}, description)), /*#__PURE__*/React__default["default"].createElement(
|
|
38961
|
-
className: "col-span-12 flex justify-center sm:col-span-6 sm:col-start-7"
|
|
38962
|
-
}, /*#__PURE__*/React__default["default"].createElement("ul", {
|
|
38963
|
-
className: "list-disc"
|
|
38964
|
-
}, bulletList.map(function (_ref2, index) {
|
|
38965
|
-
var featureTitle = _ref2.title;
|
|
38966
|
-
return /*#__PURE__*/React__default["default"].createElement(Typography$1, {
|
|
38967
|
-
isTitle: true,
|
|
38968
|
-
component: "li",
|
|
38969
|
-
key: getUniqueKey(featureTitle, index),
|
|
38970
|
-
style: design.bulletList
|
|
38971
|
-
}, featureTitle);
|
|
38972
|
-
}))));
|
|
38996
|
+
}, description)), /*#__PURE__*/React__default["default"].createElement(BulletList, null));
|
|
38973
38997
|
};
|
|
38974
38998
|
|
|
38975
38999
|
function ownKeys$6(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -42468,15 +42492,17 @@ var Paragraph = function Paragraph(_ref) {
|
|
|
42468
42492
|
features = _properties$features === void 0 ? [] : _properties$features,
|
|
42469
42493
|
src = properties.backgroundImage.src;
|
|
42470
42494
|
var baseClasses = "grid grid-cols-12 lg:gap-x-4 sm:gap-x-2 items-center";
|
|
42471
|
-
var ListComponent = isOrdered ? "ol" : "ul"
|
|
42495
|
+
var ListComponent = withConditionalRender(isOrdered ? "ol" : "ul", function () {
|
|
42496
|
+
return neetoCist.isNotEmpty(features);
|
|
42497
|
+
});
|
|
42472
42498
|
return /*#__PURE__*/React__default["default"].createElement(BlockWrapper, {
|
|
42499
|
+
className: className,
|
|
42500
|
+
enableAnimation: enableAnimation,
|
|
42501
|
+
id: id,
|
|
42473
42502
|
backgroundImage: mergeLeft({
|
|
42474
42503
|
src: src
|
|
42475
42504
|
}, design.backgroundImage),
|
|
42476
|
-
className: className,
|
|
42477
42505
|
design: design.body,
|
|
42478
|
-
enableAnimation: enableAnimation,
|
|
42479
|
-
id: id,
|
|
42480
42506
|
nestedClassName: baseClasses
|
|
42481
42507
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
42482
42508
|
className: "col-span-12"
|
|
@@ -42495,9 +42521,9 @@ var Paragraph = function Paragraph(_ref) {
|
|
|
42495
42521
|
}, features.map(function (_ref2, index) {
|
|
42496
42522
|
var featureTitle = _ref2.title;
|
|
42497
42523
|
return /*#__PURE__*/React__default["default"].createElement(MotionWrapper, {
|
|
42524
|
+
enableAnimation: enableAnimation,
|
|
42498
42525
|
className: "flex w-full",
|
|
42499
42526
|
design: design.feature,
|
|
42500
|
-
enableAnimation: enableAnimation,
|
|
42501
42527
|
key: getUniqueKey(featureTitle, index)
|
|
42502
42528
|
}, /*#__PURE__*/React__default["default"].createElement(StyledWrapper, {
|
|
42503
42529
|
as: "li",
|
|
@@ -42833,10 +42859,15 @@ var TestimonialWithSlider = function TestimonialWithSlider(_ref) {
|
|
|
42833
42859
|
}), /*#__PURE__*/React__default["default"].createElement(Pagination$1, {
|
|
42834
42860
|
swiper: swiper,
|
|
42835
42861
|
design: design.buttons
|
|
42836
|
-
}))), isButtonRequired && /*#__PURE__*/React__default["default"].createElement(
|
|
42837
|
-
className: "col-span-12 flex
|
|
42862
|
+
}))), isButtonRequired && /*#__PURE__*/React__default["default"].createElement(StyledWrapper, {
|
|
42863
|
+
className: "col-span-12 flex",
|
|
42864
|
+
design: {
|
|
42865
|
+
justifyContent: design.button.justifyContent
|
|
42866
|
+
}
|
|
42867
|
+
}, /*#__PURE__*/React__default["default"].createElement(Button$1, _extends__default["default"]({
|
|
42868
|
+
className: "flex w-full justify-center sm:w-1/2 lg:w-1/3",
|
|
42838
42869
|
style: design.button
|
|
42839
|
-
}, button, otherProps)));
|
|
42870
|
+
}, button, otherProps))));
|
|
42840
42871
|
};
|
|
42841
42872
|
|
|
42842
42873
|
var _excluded = ["configurations", "className", "id"];
|
|
@@ -42922,10 +42953,15 @@ var TestimonialWithVerticalView = function TestimonialWithVerticalView(_ref) {
|
|
|
42922
42953
|
component: "p",
|
|
42923
42954
|
style: design.testimonialDescription
|
|
42924
42955
|
}, testimonialDescription)));
|
|
42925
|
-
})), isButtonRequired && /*#__PURE__*/React__default["default"].createElement(
|
|
42926
|
-
className: "col-span-12 flex
|
|
42956
|
+
})), isButtonRequired && /*#__PURE__*/React__default["default"].createElement(StyledWrapper, {
|
|
42957
|
+
className: "col-span-12 flex",
|
|
42958
|
+
design: {
|
|
42959
|
+
justifyContent: design.button.justifyContent
|
|
42960
|
+
}
|
|
42961
|
+
}, /*#__PURE__*/React__default["default"].createElement(Button$1, _extends__default["default"]({
|
|
42962
|
+
className: "flex w-full justify-center sm:w-1/2 lg:w-1/3",
|
|
42927
42963
|
style: design.button
|
|
42928
|
-
}, button, otherProps)));
|
|
42964
|
+
}, button, otherProps))));
|
|
42929
42965
|
};
|
|
42930
42966
|
|
|
42931
42967
|
var index = /*#__PURE__*/Object.freeze({
|