@bigbinary/neeto-site-blocks 0.18.2 → 0.20.0
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 +436 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +435 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/types.d.ts +2 -0
package/dist/index.cjs.js
CHANGED
|
@@ -6949,6 +6949,249 @@ var getSiteConfigurations = function getSiteConfigurations(configurations) {
|
|
|
6949
6949
|
return configurations;
|
|
6950
6950
|
};
|
|
6951
6951
|
|
|
6952
|
+
function cov_snfvcikxw() {
|
|
6953
|
+
var path = "/home/runner/work/neeto-site-blocks/neeto-site-blocks/src/components/Blocks/CardWithCustomizableGrid.jsx";
|
|
6954
|
+
var hash = "f3d19446e2b416fb1ae28ecec960839c4ee8d31c";
|
|
6955
|
+
var global = new Function("return this")();
|
|
6956
|
+
var gcv = "__coverage__";
|
|
6957
|
+
var coverageData = {
|
|
6958
|
+
path: "/home/runner/work/neeto-site-blocks/neeto-site-blocks/src/components/Blocks/CardWithCustomizableGrid.jsx",
|
|
6959
|
+
statementMap: {
|
|
6960
|
+
"0": {
|
|
6961
|
+
start: {
|
|
6962
|
+
line: 10,
|
|
6963
|
+
column: 33
|
|
6964
|
+
},
|
|
6965
|
+
end: {
|
|
6966
|
+
line: 62,
|
|
6967
|
+
column: 1
|
|
6968
|
+
}
|
|
6969
|
+
},
|
|
6970
|
+
"1": {
|
|
6971
|
+
start: {
|
|
6972
|
+
line: 11,
|
|
6973
|
+
column: 33
|
|
6974
|
+
},
|
|
6975
|
+
end: {
|
|
6976
|
+
line: 11,
|
|
6977
|
+
column: 47
|
|
6978
|
+
}
|
|
6979
|
+
},
|
|
6980
|
+
"2": {
|
|
6981
|
+
start: {
|
|
6982
|
+
line: 17,
|
|
6983
|
+
column: 6
|
|
6984
|
+
},
|
|
6985
|
+
end: {
|
|
6986
|
+
line: 17,
|
|
6987
|
+
column: 16
|
|
6988
|
+
}
|
|
6989
|
+
},
|
|
6990
|
+
"3": {
|
|
6991
|
+
start: {
|
|
6992
|
+
line: 19,
|
|
6993
|
+
column: 22
|
|
6994
|
+
},
|
|
6995
|
+
end: {
|
|
6996
|
+
line: 19,
|
|
6997
|
+
column: 73
|
|
6998
|
+
}
|
|
6999
|
+
},
|
|
7000
|
+
"4": {
|
|
7001
|
+
start: {
|
|
7002
|
+
line: 21,
|
|
7003
|
+
column: 26
|
|
7004
|
+
},
|
|
7005
|
+
end: {
|
|
7006
|
+
line: 27,
|
|
7007
|
+
column: 3
|
|
7008
|
+
}
|
|
7009
|
+
},
|
|
7010
|
+
"5": {
|
|
7011
|
+
start: {
|
|
7012
|
+
line: 29,
|
|
7013
|
+
column: 2
|
|
7014
|
+
},
|
|
7015
|
+
end: {
|
|
7016
|
+
line: 61,
|
|
7017
|
+
column: 4
|
|
7018
|
+
}
|
|
7019
|
+
},
|
|
7020
|
+
"6": {
|
|
7021
|
+
start: {
|
|
7022
|
+
line: 46,
|
|
7023
|
+
column: 10
|
|
7024
|
+
},
|
|
7025
|
+
end: {
|
|
7026
|
+
line: 57,
|
|
7027
|
+
column: 26
|
|
7028
|
+
}
|
|
7029
|
+
}
|
|
7030
|
+
},
|
|
7031
|
+
fnMap: {
|
|
7032
|
+
"0": {
|
|
7033
|
+
name: "(anonymous_0)",
|
|
7034
|
+
decl: {
|
|
7035
|
+
start: {
|
|
7036
|
+
line: 10,
|
|
7037
|
+
column: 33
|
|
7038
|
+
},
|
|
7039
|
+
end: {
|
|
7040
|
+
line: 10,
|
|
7041
|
+
column: 34
|
|
7042
|
+
}
|
|
7043
|
+
},
|
|
7044
|
+
loc: {
|
|
7045
|
+
start: {
|
|
7046
|
+
line: 10,
|
|
7047
|
+
column: 77
|
|
7048
|
+
},
|
|
7049
|
+
end: {
|
|
7050
|
+
line: 62,
|
|
7051
|
+
column: 1
|
|
7052
|
+
}
|
|
7053
|
+
},
|
|
7054
|
+
line: 10
|
|
7055
|
+
},
|
|
7056
|
+
"1": {
|
|
7057
|
+
name: "(anonymous_1)",
|
|
7058
|
+
decl: {
|
|
7059
|
+
start: {
|
|
7060
|
+
line: 45,
|
|
7061
|
+
column: 19
|
|
7062
|
+
},
|
|
7063
|
+
end: {
|
|
7064
|
+
line: 45,
|
|
7065
|
+
column: 20
|
|
7066
|
+
}
|
|
7067
|
+
},
|
|
7068
|
+
loc: {
|
|
7069
|
+
start: {
|
|
7070
|
+
line: 46,
|
|
7071
|
+
column: 10
|
|
7072
|
+
},
|
|
7073
|
+
end: {
|
|
7074
|
+
line: 57,
|
|
7075
|
+
column: 26
|
|
7076
|
+
}
|
|
7077
|
+
},
|
|
7078
|
+
line: 46
|
|
7079
|
+
}
|
|
7080
|
+
},
|
|
7081
|
+
branchMap: {
|
|
7082
|
+
"0": {
|
|
7083
|
+
loc: {
|
|
7084
|
+
start: {
|
|
7085
|
+
line: 10,
|
|
7086
|
+
column: 52
|
|
7087
|
+
},
|
|
7088
|
+
end: {
|
|
7089
|
+
line: 10,
|
|
7090
|
+
column: 66
|
|
7091
|
+
}
|
|
7092
|
+
},
|
|
7093
|
+
type: "default-arg",
|
|
7094
|
+
locations: [{
|
|
7095
|
+
start: {
|
|
7096
|
+
line: 10,
|
|
7097
|
+
column: 64
|
|
7098
|
+
},
|
|
7099
|
+
end: {
|
|
7100
|
+
line: 10,
|
|
7101
|
+
column: 66
|
|
7102
|
+
}
|
|
7103
|
+
}],
|
|
7104
|
+
line: 10
|
|
7105
|
+
}
|
|
7106
|
+
},
|
|
7107
|
+
s: {
|
|
7108
|
+
"0": 0,
|
|
7109
|
+
"1": 0,
|
|
7110
|
+
"2": 0,
|
|
7111
|
+
"3": 0,
|
|
7112
|
+
"4": 0,
|
|
7113
|
+
"5": 0,
|
|
7114
|
+
"6": 0
|
|
7115
|
+
},
|
|
7116
|
+
f: {
|
|
7117
|
+
"0": 0,
|
|
7118
|
+
"1": 0
|
|
7119
|
+
},
|
|
7120
|
+
b: {
|
|
7121
|
+
"0": [0]
|
|
7122
|
+
},
|
|
7123
|
+
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
7124
|
+
hash: "f3d19446e2b416fb1ae28ecec960839c4ee8d31c"
|
|
7125
|
+
};
|
|
7126
|
+
var coverage = global[gcv] || (global[gcv] = {});
|
|
7127
|
+
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
7128
|
+
coverage[path] = coverageData;
|
|
7129
|
+
}
|
|
7130
|
+
var actualCoverage = coverage[path];
|
|
7131
|
+
{
|
|
7132
|
+
// @ts-ignore
|
|
7133
|
+
cov_snfvcikxw = function () {
|
|
7134
|
+
return actualCoverage;
|
|
7135
|
+
};
|
|
7136
|
+
}
|
|
7137
|
+
return actualCoverage;
|
|
7138
|
+
}
|
|
7139
|
+
cov_snfvcikxw();
|
|
7140
|
+
cov_snfvcikxw().s[0]++;
|
|
7141
|
+
var CardWithCustomizableGrid = function CardWithCustomizableGrid(_ref) {
|
|
7142
|
+
var configurations = _ref.configurations,
|
|
7143
|
+
_ref$className = _ref.className,
|
|
7144
|
+
className = _ref$className === void 0 ? (cov_snfvcikxw().b[0][0]++, "") : _ref$className,
|
|
7145
|
+
id = _ref.id;
|
|
7146
|
+
cov_snfvcikxw().f[0]++;
|
|
7147
|
+
var _ref2 = (cov_snfvcikxw().s[1]++, configurations),
|
|
7148
|
+
properties = _ref2.properties,
|
|
7149
|
+
design = _ref2.design;
|
|
7150
|
+
var _ref3 = (cov_snfvcikxw().s[2]++, properties),
|
|
7151
|
+
title = _ref3.content.title,
|
|
7152
|
+
cards = _ref3.cards,
|
|
7153
|
+
gridCount = _ref3.gridCount,
|
|
7154
|
+
src = _ref3.backgroundImage.src;
|
|
7155
|
+
var baseClasses = (cov_snfvcikxw().s[3]++, "grid grid-cols-12 sm:gap-x-4 gap-y-4 items-center");
|
|
7156
|
+
var gridBaseClasses = (cov_snfvcikxw().s[4]++, classnames("col-span-12 flex h-72 flex-col justify-center gap-2", {
|
|
7157
|
+
"sm:col-span-6 lg:col-span-4": gridCount === 3,
|
|
7158
|
+
"sm:col-span-6": gridCount === 2
|
|
7159
|
+
}));
|
|
7160
|
+
cov_snfvcikxw().s[5]++;
|
|
7161
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper, {
|
|
7162
|
+
backgroundImage: mergeLeft({
|
|
7163
|
+
src: src
|
|
7164
|
+
}, design.backgroundImage),
|
|
7165
|
+
className: className,
|
|
7166
|
+
design: design.body,
|
|
7167
|
+
id: id
|
|
7168
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7169
|
+
className: classnames("neeto-site-block-wrapper", baseClasses)
|
|
7170
|
+
}, /*#__PURE__*/React__default["default"].createElement(Typography, {
|
|
7171
|
+
isTitle: true,
|
|
7172
|
+
className: "col-span-6 col-start-4 sm:col-span-8 sm:col-start-3",
|
|
7173
|
+
component: "h1",
|
|
7174
|
+
style: design.title
|
|
7175
|
+
}, title), cards.map(function (_ref4, index) {
|
|
7176
|
+
var title = _ref4.title,
|
|
7177
|
+
description = _ref4.description;
|
|
7178
|
+
cov_snfvcikxw().f[1]++;
|
|
7179
|
+
cov_snfvcikxw().s[6]++;
|
|
7180
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper, {
|
|
7181
|
+
className: gridBaseClasses,
|
|
7182
|
+
design: design.card,
|
|
7183
|
+
key: getUniqueKey(title, description, index)
|
|
7184
|
+
}, /*#__PURE__*/React__default["default"].createElement(Typography, {
|
|
7185
|
+
isTitle: true,
|
|
7186
|
+
component: "h1",
|
|
7187
|
+
style: design.cardTitle
|
|
7188
|
+
}, title), /*#__PURE__*/React__default["default"].createElement(Typography, {
|
|
7189
|
+
component: "p",
|
|
7190
|
+
style: design.cardDescription
|
|
7191
|
+
}, description));
|
|
7192
|
+
})));
|
|
7193
|
+
};
|
|
7194
|
+
|
|
6952
7195
|
function cov_2dnbqgwtgf() {
|
|
6953
7196
|
var path = "/home/runner/work/neeto-site-blocks/neeto-site-blocks/src/components/Blocks/CardWithGridText.jsx";
|
|
6954
7197
|
var hash = "3949bc884b03bc859baf3ccc963026331be8beb3";
|
|
@@ -14458,6 +14701,197 @@ var CtaWithButtonOnBottom = function CtaWithButtonOnBottom(_ref) {
|
|
|
14458
14701
|
}, secondaryButton)))));
|
|
14459
14702
|
};
|
|
14460
14703
|
|
|
14704
|
+
function cov_181bbxwtja() {
|
|
14705
|
+
var path = "/home/runner/work/neeto-site-blocks/neeto-site-blocks/src/components/Blocks/CtaWithLogo.jsx";
|
|
14706
|
+
var hash = "c2b8a139ce8cb5a649e36e5806b83412790194c0";
|
|
14707
|
+
var global = new Function("return this")();
|
|
14708
|
+
var gcv = "__coverage__";
|
|
14709
|
+
var coverageData = {
|
|
14710
|
+
path: "/home/runner/work/neeto-site-blocks/neeto-site-blocks/src/components/Blocks/CtaWithLogo.jsx",
|
|
14711
|
+
statementMap: {
|
|
14712
|
+
"0": {
|
|
14713
|
+
start: {
|
|
14714
|
+
line: 9,
|
|
14715
|
+
column: 20
|
|
14716
|
+
},
|
|
14717
|
+
end: {
|
|
14718
|
+
line: 54,
|
|
14719
|
+
column: 1
|
|
14720
|
+
}
|
|
14721
|
+
},
|
|
14722
|
+
"1": {
|
|
14723
|
+
start: {
|
|
14724
|
+
line: 10,
|
|
14725
|
+
column: 33
|
|
14726
|
+
},
|
|
14727
|
+
end: {
|
|
14728
|
+
line: 10,
|
|
14729
|
+
column: 47
|
|
14730
|
+
}
|
|
14731
|
+
},
|
|
14732
|
+
"2": {
|
|
14733
|
+
start: {
|
|
14734
|
+
line: 16,
|
|
14735
|
+
column: 6
|
|
14736
|
+
},
|
|
14737
|
+
end: {
|
|
14738
|
+
line: 16,
|
|
14739
|
+
column: 16
|
|
14740
|
+
}
|
|
14741
|
+
},
|
|
14742
|
+
"3": {
|
|
14743
|
+
start: {
|
|
14744
|
+
line: 18,
|
|
14745
|
+
column: 22
|
|
14746
|
+
},
|
|
14747
|
+
end: {
|
|
14748
|
+
line: 18,
|
|
14749
|
+
column: 62
|
|
14750
|
+
}
|
|
14751
|
+
},
|
|
14752
|
+
"4": {
|
|
14753
|
+
start: {
|
|
14754
|
+
line: 20,
|
|
14755
|
+
column: 2
|
|
14756
|
+
},
|
|
14757
|
+
end: {
|
|
14758
|
+
line: 53,
|
|
14759
|
+
column: 4
|
|
14760
|
+
}
|
|
14761
|
+
}
|
|
14762
|
+
},
|
|
14763
|
+
fnMap: {
|
|
14764
|
+
"0": {
|
|
14765
|
+
name: "(anonymous_0)",
|
|
14766
|
+
decl: {
|
|
14767
|
+
start: {
|
|
14768
|
+
line: 9,
|
|
14769
|
+
column: 20
|
|
14770
|
+
},
|
|
14771
|
+
end: {
|
|
14772
|
+
line: 9,
|
|
14773
|
+
column: 21
|
|
14774
|
+
}
|
|
14775
|
+
},
|
|
14776
|
+
loc: {
|
|
14777
|
+
start: {
|
|
14778
|
+
line: 9,
|
|
14779
|
+
column: 64
|
|
14780
|
+
},
|
|
14781
|
+
end: {
|
|
14782
|
+
line: 54,
|
|
14783
|
+
column: 1
|
|
14784
|
+
}
|
|
14785
|
+
},
|
|
14786
|
+
line: 9
|
|
14787
|
+
}
|
|
14788
|
+
},
|
|
14789
|
+
branchMap: {
|
|
14790
|
+
"0": {
|
|
14791
|
+
loc: {
|
|
14792
|
+
start: {
|
|
14793
|
+
line: 9,
|
|
14794
|
+
column: 39
|
|
14795
|
+
},
|
|
14796
|
+
end: {
|
|
14797
|
+
line: 9,
|
|
14798
|
+
column: 53
|
|
14799
|
+
}
|
|
14800
|
+
},
|
|
14801
|
+
type: "default-arg",
|
|
14802
|
+
locations: [{
|
|
14803
|
+
start: {
|
|
14804
|
+
line: 9,
|
|
14805
|
+
column: 51
|
|
14806
|
+
},
|
|
14807
|
+
end: {
|
|
14808
|
+
line: 9,
|
|
14809
|
+
column: 53
|
|
14810
|
+
}
|
|
14811
|
+
}],
|
|
14812
|
+
line: 9
|
|
14813
|
+
}
|
|
14814
|
+
},
|
|
14815
|
+
s: {
|
|
14816
|
+
"0": 0,
|
|
14817
|
+
"1": 0,
|
|
14818
|
+
"2": 0,
|
|
14819
|
+
"3": 0,
|
|
14820
|
+
"4": 0
|
|
14821
|
+
},
|
|
14822
|
+
f: {
|
|
14823
|
+
"0": 0
|
|
14824
|
+
},
|
|
14825
|
+
b: {
|
|
14826
|
+
"0": [0]
|
|
14827
|
+
},
|
|
14828
|
+
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
14829
|
+
hash: "c2b8a139ce8cb5a649e36e5806b83412790194c0"
|
|
14830
|
+
};
|
|
14831
|
+
var coverage = global[gcv] || (global[gcv] = {});
|
|
14832
|
+
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
14833
|
+
coverage[path] = coverageData;
|
|
14834
|
+
}
|
|
14835
|
+
var actualCoverage = coverage[path];
|
|
14836
|
+
{
|
|
14837
|
+
// @ts-ignore
|
|
14838
|
+
cov_181bbxwtja = function () {
|
|
14839
|
+
return actualCoverage;
|
|
14840
|
+
};
|
|
14841
|
+
}
|
|
14842
|
+
return actualCoverage;
|
|
14843
|
+
}
|
|
14844
|
+
cov_181bbxwtja();
|
|
14845
|
+
cov_181bbxwtja().s[0]++;
|
|
14846
|
+
var CtaWithLogo = function CtaWithLogo(_ref) {
|
|
14847
|
+
var configurations = _ref.configurations,
|
|
14848
|
+
_ref$className = _ref.className,
|
|
14849
|
+
className = _ref$className === void 0 ? (cov_181bbxwtja().b[0][0]++, "") : _ref$className,
|
|
14850
|
+
id = _ref.id;
|
|
14851
|
+
cov_181bbxwtja().f[0]++;
|
|
14852
|
+
var _ref2 = (cov_181bbxwtja().s[1]++, configurations),
|
|
14853
|
+
properties = _ref2.properties,
|
|
14854
|
+
design = _ref2.design;
|
|
14855
|
+
var _ref3 = (cov_181bbxwtja().s[2]++, properties),
|
|
14856
|
+
_ref3$content = _ref3.content,
|
|
14857
|
+
title = _ref3$content.title,
|
|
14858
|
+
description = _ref3$content.description,
|
|
14859
|
+
logoUrl = _ref3.logoUrl,
|
|
14860
|
+
button = _ref3.button,
|
|
14861
|
+
src = _ref3.backgroundImage.src;
|
|
14862
|
+
var baseClasses = (cov_181bbxwtja().s[3]++, "grid grid-cols-12 items-center gap-x-4");
|
|
14863
|
+
cov_181bbxwtja().s[4]++;
|
|
14864
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper, {
|
|
14865
|
+
backgroundImage: mergeLeft({
|
|
14866
|
+
src: src
|
|
14867
|
+
}, design.backgroundImage),
|
|
14868
|
+
className: className,
|
|
14869
|
+
design: design.body,
|
|
14870
|
+
id: id
|
|
14871
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14872
|
+
className: classnames("neeto-site-block-wrapper gap-y-8", baseClasses)
|
|
14873
|
+
}, /*#__PURE__*/React__default["default"].createElement(StyledImage, {
|
|
14874
|
+
alt: "logo",
|
|
14875
|
+
className: "col-span-10 col-start-2 mx-auto sm:col-span-2 sm:col-start-1",
|
|
14876
|
+
design: design.logo,
|
|
14877
|
+
src: logoUrl
|
|
14878
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14879
|
+
className: "col-span-12 sm:col-span-6 sm:col-start-3 lg:col-span-7"
|
|
14880
|
+
}, /*#__PURE__*/React__default["default"].createElement(Typography, {
|
|
14881
|
+
isTitle: true,
|
|
14882
|
+
component: "h1",
|
|
14883
|
+
style: design.title
|
|
14884
|
+
}, title), /*#__PURE__*/React__default["default"].createElement(Typography, {
|
|
14885
|
+
component: "p",
|
|
14886
|
+
style: design.description
|
|
14887
|
+
}, description)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14888
|
+
className: "col-span-12 mx-auto w-full sm:col-span-3 sm:col-start-10 lg:col-span-3 lg:col-start-10"
|
|
14889
|
+
}, /*#__PURE__*/React__default["default"].createElement(Button, _extends$4({
|
|
14890
|
+
className: "neeto-site-primary-button flex w-full justify-center sm:w-auto",
|
|
14891
|
+
style: design.button
|
|
14892
|
+
}, button)))));
|
|
14893
|
+
};
|
|
14894
|
+
|
|
14461
14895
|
/******************************************************************************
|
|
14462
14896
|
Copyright (c) Microsoft Corporation.
|
|
14463
14897
|
|
|
@@ -35224,9 +35658,11 @@ function cov_w8wufnrsd() {
|
|
|
35224
35658
|
}
|
|
35225
35659
|
cov_w8wufnrsd();
|
|
35226
35660
|
|
|
35661
|
+
exports.CardWithCustomizableGrid = CardWithCustomizableGrid;
|
|
35227
35662
|
exports.CardWithGridText = CardWithGridText;
|
|
35228
35663
|
exports.CardWithImage = CardWithImage;
|
|
35229
35664
|
exports.CtaWithButtonOnBottom = CtaWithButtonOnBottom;
|
|
35665
|
+
exports.CtaWithLogo = CtaWithLogo;
|
|
35230
35666
|
exports.DESIGN_OPTIONS = constants;
|
|
35231
35667
|
exports.FaqWithHamburgerView = FaqWithHamburgerView;
|
|
35232
35668
|
exports.FeatureWithGrid = FeatureWithGrid;
|