@bigbinary/neeto-site-blocks 0.18.2 → 0.19.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 +244 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +244 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/types.d.ts +1 -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";
|
|
@@ -35224,6 +35467,7 @@ function cov_w8wufnrsd() {
|
|
|
35224
35467
|
}
|
|
35225
35468
|
cov_w8wufnrsd();
|
|
35226
35469
|
|
|
35470
|
+
exports.CardWithCustomizableGrid = CardWithCustomizableGrid;
|
|
35227
35471
|
exports.CardWithGridText = CardWithGridText;
|
|
35228
35472
|
exports.CardWithImage = CardWithImage;
|
|
35229
35473
|
exports.CtaWithButtonOnBottom = CtaWithButtonOnBottom;
|