@bigbinary/neeto-site-blocks 0.15.0 → 0.15.1
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 +67 -180
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +67 -180
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -27738,7 +27738,7 @@ var FeatureWithList = function FeatureWithList(_ref) {
|
|
|
27738
27738
|
|
|
27739
27739
|
function cov_2e4crtgg2y() {
|
|
27740
27740
|
var path = "/home/runner/work/neeto-site-blocks/neeto-site-blocks/src/components/Blocks/FeatureWithRightImage.jsx";
|
|
27741
|
-
var hash = "
|
|
27741
|
+
var hash = "ad5ec7ce535ccf38fd6914f014736c5b7d944a4d";
|
|
27742
27742
|
var global = new Function("return this")();
|
|
27743
27743
|
var gcv = "__coverage__";
|
|
27744
27744
|
var coverageData = {
|
|
@@ -27746,72 +27746,72 @@ function cov_2e4crtgg2y() {
|
|
|
27746
27746
|
statementMap: {
|
|
27747
27747
|
"0": {
|
|
27748
27748
|
start: {
|
|
27749
|
-
line:
|
|
27749
|
+
line: 11,
|
|
27750
27750
|
column: 30
|
|
27751
27751
|
},
|
|
27752
27752
|
end: {
|
|
27753
|
-
line:
|
|
27753
|
+
line: 62,
|
|
27754
27754
|
column: 1
|
|
27755
27755
|
}
|
|
27756
27756
|
},
|
|
27757
27757
|
"1": {
|
|
27758
27758
|
start: {
|
|
27759
|
-
line:
|
|
27759
|
+
line: 12,
|
|
27760
27760
|
column: 33
|
|
27761
27761
|
},
|
|
27762
27762
|
end: {
|
|
27763
|
-
line:
|
|
27763
|
+
line: 12,
|
|
27764
27764
|
column: 47
|
|
27765
27765
|
}
|
|
27766
27766
|
},
|
|
27767
27767
|
"2": {
|
|
27768
27768
|
start: {
|
|
27769
|
-
line:
|
|
27769
|
+
line: 17,
|
|
27770
27770
|
column: 6
|
|
27771
27771
|
},
|
|
27772
27772
|
end: {
|
|
27773
|
-
line:
|
|
27773
|
+
line: 17,
|
|
27774
27774
|
column: 16
|
|
27775
27775
|
}
|
|
27776
27776
|
},
|
|
27777
27777
|
"3": {
|
|
27778
27778
|
start: {
|
|
27779
|
-
line:
|
|
27779
|
+
line: 19,
|
|
27780
27780
|
column: 22
|
|
27781
27781
|
},
|
|
27782
27782
|
end: {
|
|
27783
|
-
line:
|
|
27784
|
-
column:
|
|
27783
|
+
line: 19,
|
|
27784
|
+
column: 74
|
|
27785
27785
|
}
|
|
27786
27786
|
},
|
|
27787
27787
|
"4": {
|
|
27788
27788
|
start: {
|
|
27789
|
-
line:
|
|
27789
|
+
line: 21,
|
|
27790
27790
|
column: 27
|
|
27791
27791
|
},
|
|
27792
27792
|
end: {
|
|
27793
|
-
line:
|
|
27793
|
+
line: 27,
|
|
27794
27794
|
column: 4
|
|
27795
27795
|
}
|
|
27796
27796
|
},
|
|
27797
27797
|
"5": {
|
|
27798
27798
|
start: {
|
|
27799
|
-
line:
|
|
27800
|
-
column:
|
|
27799
|
+
line: 29,
|
|
27800
|
+
column: 25
|
|
27801
27801
|
},
|
|
27802
27802
|
end: {
|
|
27803
|
-
line:
|
|
27803
|
+
line: 34,
|
|
27804
27804
|
column: 4
|
|
27805
27805
|
}
|
|
27806
27806
|
},
|
|
27807
27807
|
"6": {
|
|
27808
27808
|
start: {
|
|
27809
|
-
line:
|
|
27810
|
-
column:
|
|
27809
|
+
line: 36,
|
|
27810
|
+
column: 2
|
|
27811
27811
|
},
|
|
27812
27812
|
end: {
|
|
27813
|
-
line:
|
|
27814
|
-
column:
|
|
27813
|
+
line: 61,
|
|
27814
|
+
column: 4
|
|
27815
27815
|
}
|
|
27816
27816
|
}
|
|
27817
27817
|
},
|
|
@@ -27820,75 +27820,51 @@ function cov_2e4crtgg2y() {
|
|
|
27820
27820
|
name: "(anonymous_0)",
|
|
27821
27821
|
decl: {
|
|
27822
27822
|
start: {
|
|
27823
|
-
line:
|
|
27823
|
+
line: 11,
|
|
27824
27824
|
column: 30
|
|
27825
27825
|
},
|
|
27826
27826
|
end: {
|
|
27827
|
-
line:
|
|
27827
|
+
line: 11,
|
|
27828
27828
|
column: 31
|
|
27829
27829
|
}
|
|
27830
27830
|
},
|
|
27831
27831
|
loc: {
|
|
27832
27832
|
start: {
|
|
27833
|
-
line:
|
|
27833
|
+
line: 11,
|
|
27834
27834
|
column: 74
|
|
27835
27835
|
},
|
|
27836
27836
|
end: {
|
|
27837
|
-
line:
|
|
27837
|
+
line: 62,
|
|
27838
27838
|
column: 1
|
|
27839
27839
|
}
|
|
27840
27840
|
},
|
|
27841
|
-
line:
|
|
27842
|
-
},
|
|
27843
|
-
"1": {
|
|
27844
|
-
name: "(anonymous_1)",
|
|
27845
|
-
decl: {
|
|
27846
|
-
start: {
|
|
27847
|
-
line: 72,
|
|
27848
|
-
column: 34
|
|
27849
|
-
},
|
|
27850
|
-
end: {
|
|
27851
|
-
line: 72,
|
|
27852
|
-
column: 35
|
|
27853
|
-
}
|
|
27854
|
-
},
|
|
27855
|
-
loc: {
|
|
27856
|
-
start: {
|
|
27857
|
-
line: 73,
|
|
27858
|
-
column: 12
|
|
27859
|
-
},
|
|
27860
|
-
end: {
|
|
27861
|
-
line: 80,
|
|
27862
|
-
column: 14
|
|
27863
|
-
}
|
|
27864
|
-
},
|
|
27865
|
-
line: 73
|
|
27841
|
+
line: 11
|
|
27866
27842
|
}
|
|
27867
27843
|
},
|
|
27868
27844
|
branchMap: {
|
|
27869
27845
|
"0": {
|
|
27870
27846
|
loc: {
|
|
27871
27847
|
start: {
|
|
27872
|
-
line:
|
|
27848
|
+
line: 11,
|
|
27873
27849
|
column: 49
|
|
27874
27850
|
},
|
|
27875
27851
|
end: {
|
|
27876
|
-
line:
|
|
27852
|
+
line: 11,
|
|
27877
27853
|
column: 63
|
|
27878
27854
|
}
|
|
27879
27855
|
},
|
|
27880
27856
|
type: "default-arg",
|
|
27881
27857
|
locations: [{
|
|
27882
27858
|
start: {
|
|
27883
|
-
line:
|
|
27859
|
+
line: 11,
|
|
27884
27860
|
column: 61
|
|
27885
27861
|
},
|
|
27886
27862
|
end: {
|
|
27887
|
-
line:
|
|
27863
|
+
line: 11,
|
|
27888
27864
|
column: 63
|
|
27889
27865
|
}
|
|
27890
27866
|
}],
|
|
27891
|
-
line:
|
|
27867
|
+
line: 11
|
|
27892
27868
|
},
|
|
27893
27869
|
"1": {
|
|
27894
27870
|
loc: {
|
|
@@ -27897,8 +27873,8 @@ function cov_2e4crtgg2y() {
|
|
|
27897
27873
|
column: 6
|
|
27898
27874
|
},
|
|
27899
27875
|
end: {
|
|
27900
|
-
line:
|
|
27901
|
-
column:
|
|
27876
|
+
line: 31,
|
|
27877
|
+
column: 57
|
|
27902
27878
|
}
|
|
27903
27879
|
},
|
|
27904
27880
|
type: "binary-expr",
|
|
@@ -27913,12 +27889,12 @@ function cov_2e4crtgg2y() {
|
|
|
27913
27889
|
}
|
|
27914
27890
|
}, {
|
|
27915
27891
|
start: {
|
|
27916
|
-
line:
|
|
27917
|
-
column:
|
|
27892
|
+
line: 31,
|
|
27893
|
+
column: 49
|
|
27918
27894
|
},
|
|
27919
27895
|
end: {
|
|
27920
|
-
line:
|
|
27921
|
-
column:
|
|
27896
|
+
line: 31,
|
|
27897
|
+
column: 57
|
|
27922
27898
|
}
|
|
27923
27899
|
}],
|
|
27924
27900
|
line: 31
|
|
@@ -27926,101 +27902,35 @@ function cov_2e4crtgg2y() {
|
|
|
27926
27902
|
"2": {
|
|
27927
27903
|
loc: {
|
|
27928
27904
|
start: {
|
|
27929
|
-
line:
|
|
27930
|
-
column:
|
|
27931
|
-
},
|
|
27932
|
-
end: {
|
|
27933
|
-
line: 50,
|
|
27934
|
-
column: 51
|
|
27935
|
-
}
|
|
27936
|
-
},
|
|
27937
|
-
type: "binary-expr",
|
|
27938
|
-
locations: [{
|
|
27939
|
-
start: {
|
|
27940
|
-
line: 49,
|
|
27941
|
-
column: 12
|
|
27942
|
-
},
|
|
27943
|
-
end: {
|
|
27944
|
-
line: 49,
|
|
27945
|
-
column: 50
|
|
27946
|
-
}
|
|
27947
|
-
}, {
|
|
27948
|
-
start: {
|
|
27949
|
-
line: 50,
|
|
27950
|
-
column: 12
|
|
27951
|
-
},
|
|
27952
|
-
end: {
|
|
27953
|
-
line: 50,
|
|
27954
|
-
column: 51
|
|
27955
|
-
}
|
|
27956
|
-
}],
|
|
27957
|
-
line: 49
|
|
27958
|
-
},
|
|
27959
|
-
"3": {
|
|
27960
|
-
loc: {
|
|
27961
|
-
start: {
|
|
27962
|
-
line: 52,
|
|
27963
|
-
column: 12
|
|
27964
|
-
},
|
|
27965
|
-
end: {
|
|
27966
|
-
line: 53,
|
|
27967
|
-
column: 52
|
|
27968
|
-
}
|
|
27969
|
-
},
|
|
27970
|
-
type: "binary-expr",
|
|
27971
|
-
locations: [{
|
|
27972
|
-
start: {
|
|
27973
|
-
line: 52,
|
|
27974
|
-
column: 12
|
|
27975
|
-
},
|
|
27976
|
-
end: {
|
|
27977
|
-
line: 52,
|
|
27978
|
-
column: 49
|
|
27979
|
-
}
|
|
27980
|
-
}, {
|
|
27981
|
-
start: {
|
|
27982
|
-
line: 53,
|
|
27983
|
-
column: 12
|
|
27984
|
-
},
|
|
27985
|
-
end: {
|
|
27986
|
-
line: 53,
|
|
27987
|
-
column: 52
|
|
27988
|
-
}
|
|
27989
|
-
}],
|
|
27990
|
-
line: 52
|
|
27991
|
-
},
|
|
27992
|
-
"4": {
|
|
27993
|
-
loc: {
|
|
27994
|
-
start: {
|
|
27995
|
-
line: 67,
|
|
27996
|
-
column: 16
|
|
27905
|
+
line: 33,
|
|
27906
|
+
column: 6
|
|
27997
27907
|
},
|
|
27998
27908
|
end: {
|
|
27999
|
-
line:
|
|
28000
|
-
column:
|
|
27909
|
+
line: 33,
|
|
27910
|
+
column: 56
|
|
28001
27911
|
}
|
|
28002
27912
|
},
|
|
28003
27913
|
type: "binary-expr",
|
|
28004
27914
|
locations: [{
|
|
28005
27915
|
start: {
|
|
28006
|
-
line:
|
|
28007
|
-
column:
|
|
27916
|
+
line: 33,
|
|
27917
|
+
column: 6
|
|
28008
27918
|
},
|
|
28009
27919
|
end: {
|
|
28010
|
-
line:
|
|
28011
|
-
column:
|
|
27920
|
+
line: 33,
|
|
27921
|
+
column: 44
|
|
28012
27922
|
}
|
|
28013
27923
|
}, {
|
|
28014
27924
|
start: {
|
|
28015
|
-
line:
|
|
28016
|
-
column:
|
|
27925
|
+
line: 33,
|
|
27926
|
+
column: 48
|
|
28017
27927
|
},
|
|
28018
27928
|
end: {
|
|
28019
|
-
line:
|
|
28020
|
-
column:
|
|
27929
|
+
line: 33,
|
|
27930
|
+
column: 56
|
|
28021
27931
|
}
|
|
28022
27932
|
}],
|
|
28023
|
-
line:
|
|
27933
|
+
line: 33
|
|
28024
27934
|
}
|
|
28025
27935
|
},
|
|
28026
27936
|
s: {
|
|
@@ -28033,18 +27943,15 @@ function cov_2e4crtgg2y() {
|
|
|
28033
27943
|
"6": 0
|
|
28034
27944
|
},
|
|
28035
27945
|
f: {
|
|
28036
|
-
"0": 0
|
|
28037
|
-
"1": 0
|
|
27946
|
+
"0": 0
|
|
28038
27947
|
},
|
|
28039
27948
|
b: {
|
|
28040
27949
|
"0": [0],
|
|
28041
27950
|
"1": [0, 0],
|
|
28042
|
-
"2": [0, 0]
|
|
28043
|
-
"3": [0, 0],
|
|
28044
|
-
"4": [0, 0]
|
|
27951
|
+
"2": [0, 0]
|
|
28045
27952
|
},
|
|
28046
27953
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
28047
|
-
hash: "
|
|
27954
|
+
hash: "ad5ec7ce535ccf38fd6914f014736c5b7d944a4d"
|
|
28048
27955
|
};
|
|
28049
27956
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
28050
27957
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -28078,30 +27985,28 @@ var FeatureWithRightImage = function FeatureWithRightImage(_ref) {
|
|
|
28078
27985
|
imageURL = _ref3$image.src,
|
|
28079
27986
|
imagePosition = _ref3$image.position,
|
|
28080
27987
|
src = _ref3.backgroundImage.src;
|
|
28081
|
-
var baseClasses = (cov_2e4crtgg2y().s[3]++,
|
|
28082
|
-
|
|
28083
|
-
"
|
|
28084
|
-
"
|
|
28085
|
-
"flex-col": imagePosition === POSITIONS.BOTTOM.label,
|
|
28086
|
-
"flex-col-reverse": imagePosition === POSITIONS.TOP.label
|
|
28087
|
-
}));
|
|
28088
|
-
var imageBaseClasses = (cov_2e4crtgg2y().s[4]++, classnames$1("flex justify-center", {
|
|
28089
|
-
"sm:w-2/3 lg:w-1/2 flex-shrink-0": (cov_2e4crtgg2y().b[1][0]++, imagePosition === POSITIONS.RIGHT.label) || (cov_2e4crtgg2y().b[1][1]++, imagePosition === POSITIONS.LEFT.label),
|
|
27988
|
+
var baseClasses = (cov_2e4crtgg2y().s[3]++, "grid grid-cols-12 items-center grid-flow-row-dense");
|
|
27989
|
+
var imageBaseClasses = (cov_2e4crtgg2y().s[4]++, classnames$1("col-span-12", {
|
|
27990
|
+
"sm:col-span-6 sm:col-start-7 lg:col-start-7 lg:col-span-6": imagePosition === POSITIONS.RIGHT.label,
|
|
27991
|
+
"sm:col-span-6 sm:col-start-1 lg:col-start-1 lg:col-span-6": imagePosition === POSITIONS.LEFT.label,
|
|
28090
27992
|
hidden: !imageURL
|
|
28091
27993
|
}));
|
|
28092
|
-
cov_2e4crtgg2y().s[5]
|
|
27994
|
+
var featureClasses = (cov_2e4crtgg2y().s[5]++, classnames$1("col-span-12", {
|
|
27995
|
+
"sm:col-span-5 lg:col-span-5": (cov_2e4crtgg2y().b[1][0]++, imagePosition === POSITIONS.RIGHT.label) && (cov_2e4crtgg2y().b[1][1]++, imageURL),
|
|
27996
|
+
"sm:col-span-6 sm:col-start-7 lg:col-span-6 lg:col-start-7": (cov_2e4crtgg2y().b[2][0]++, imagePosition === POSITIONS.LEFT.label) && (cov_2e4crtgg2y().b[2][1]++, imageURL)
|
|
27997
|
+
}));
|
|
27998
|
+
cov_2e4crtgg2y().s[6]++;
|
|
28093
27999
|
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper, {
|
|
28094
28000
|
backgroundImage: mergeLeft({
|
|
28095
28001
|
src: src
|
|
28096
28002
|
}, design.backgroundImage),
|
|
28003
|
+
className: className,
|
|
28097
28004
|
design: design.body,
|
|
28098
|
-
id: id
|
|
28099
|
-
className: classnames$1("border border-l-0 border-r-0 ", [className, baseClasses])
|
|
28005
|
+
id: id
|
|
28100
28006
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28101
|
-
className: classnames$1("
|
|
28102
|
-
|
|
28103
|
-
|
|
28104
|
-
})
|
|
28007
|
+
className: classnames$1("neeto-site-block-wrapper", baseClasses)
|
|
28008
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28009
|
+
className: featureClasses
|
|
28105
28010
|
}, /*#__PURE__*/React__default["default"].createElement(Typography, {
|
|
28106
28011
|
isTitle: true,
|
|
28107
28012
|
component: "h1",
|
|
@@ -28109,31 +28014,13 @@ var FeatureWithRightImage = function FeatureWithRightImage(_ref) {
|
|
|
28109
28014
|
}, title), /*#__PURE__*/React__default["default"].createElement(Typography, {
|
|
28110
28015
|
component: "p",
|
|
28111
28016
|
style: design.description
|
|
28112
|
-
}, description), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28113
|
-
className: classnames$1("flex w-full items-center gap-3 sm:justify-center", {
|
|
28114
|
-
"lg:justify-start": (cov_2e4crtgg2y().b[4][0]++, imagePosition === POSITIONS.LEFT.label) || (cov_2e4crtgg2y().b[4][1]++, imagePosition === POSITIONS.RIGHT.label)
|
|
28115
|
-
})
|
|
28116
|
-
}, properties.buttons.map(function (_ref4, index) {
|
|
28117
|
-
var label = _ref4.label,
|
|
28118
|
-
url = _ref4.url,
|
|
28119
|
-
action = _ref4.action;
|
|
28120
|
-
cov_2e4crtgg2y().f[1]++;
|
|
28121
|
-
cov_2e4crtgg2y().s[6]++;
|
|
28122
|
-
return /*#__PURE__*/React__default["default"].createElement(Button, {
|
|
28123
|
-
action: action,
|
|
28124
|
-
className: "w-full justify-center sm:w-auto sm:justify-start",
|
|
28125
|
-
key: getUniqueKey(label, index),
|
|
28126
|
-
label: label,
|
|
28127
|
-
style: design.buttons,
|
|
28128
|
-
to: url
|
|
28129
|
-
});
|
|
28130
|
-
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28017
|
+
}, description)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28131
28018
|
className: imageBaseClasses
|
|
28132
28019
|
}, /*#__PURE__*/React__default["default"].createElement(StyledImage, {
|
|
28133
28020
|
design: design.image,
|
|
28134
28021
|
lgImageWidth: design.image.width,
|
|
28135
28022
|
src: imageURL
|
|
28136
|
-
})));
|
|
28023
|
+
}))));
|
|
28137
28024
|
};
|
|
28138
28025
|
|
|
28139
28026
|
function cov_1kbh5b1kc1() {
|