@bigbinary/neeto-site-blocks 0.15.3 → 0.15.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 CHANGED
@@ -25778,7 +25778,7 @@ var FeatureWithJumboText = function FeatureWithJumboText(_ref) {
25778
25778
 
25779
25779
  function cov_3j9xfx0k4() {
25780
25780
  var path = "/home/runner/work/neeto-site-blocks/neeto-site-blocks/src/components/Blocks/FeatureWithLink.jsx";
25781
- var hash = "cd32c02f35e4a188bf67c1400c76c668d141b1cc";
25781
+ var hash = "0f7cfbc5fdb9566955558f2e8d21f9dc138d21d4";
25782
25782
  var global = new Function("return this")();
25783
25783
  var gcv = "__coverage__";
25784
25784
  var coverageData = {
@@ -25786,82 +25786,82 @@ function cov_3j9xfx0k4() {
25786
25786
  statementMap: {
25787
25787
  "0": {
25788
25788
  start: {
25789
- line: 13,
25789
+ line: 12,
25790
25790
  column: 24
25791
25791
  },
25792
25792
  end: {
25793
- line: 126,
25793
+ line: 80,
25794
25794
  column: 1
25795
25795
  }
25796
25796
  },
25797
25797
  "1": {
25798
25798
  start: {
25799
- line: 14,
25799
+ line: 13,
25800
25800
  column: 33
25801
25801
  },
25802
25802
  end: {
25803
- line: 14,
25803
+ line: 13,
25804
25804
  column: 47
25805
25805
  }
25806
25806
  },
25807
25807
  "2": {
25808
25808
  start: {
25809
- line: 21,
25809
+ line: 19,
25810
25810
  column: 6
25811
25811
  },
25812
25812
  end: {
25813
- line: 21,
25813
+ line: 19,
25814
25814
  column: 16
25815
25815
  }
25816
25816
  },
25817
25817
  "3": {
25818
25818
  start: {
25819
- line: 23,
25820
- column: 22
25819
+ line: 22,
25820
+ column: 4
25821
25821
  },
25822
25822
  end: {
25823
- line: 30,
25824
- column: 4
25823
+ line: 22,
25824
+ column: 78
25825
25825
  }
25826
25826
  },
25827
25827
  "4": {
25828
25828
  start: {
25829
- line: 32,
25829
+ line: 24,
25830
25830
  column: 27
25831
25831
  },
25832
25832
  end: {
25833
- line: 38,
25833
+ line: 28,
25834
25834
  column: 4
25835
25835
  }
25836
25836
  },
25837
25837
  "5": {
25838
25838
  start: {
25839
- line: 40,
25840
- column: 2
25839
+ line: 30,
25840
+ column: 26
25841
25841
  },
25842
25842
  end: {
25843
- line: 125,
25843
+ line: 35,
25844
25844
  column: 4
25845
25845
  }
25846
25846
  },
25847
25847
  "6": {
25848
25848
  start: {
25849
- line: 78,
25850
- column: 14
25849
+ line: 37,
25850
+ column: 2
25851
25851
  },
25852
25852
  end: {
25853
- line: 91,
25854
- column: 30
25853
+ line: 79,
25854
+ column: 4
25855
25855
  }
25856
25856
  },
25857
25857
  "7": {
25858
25858
  start: {
25859
- line: 110,
25860
- column: 24
25859
+ line: 54,
25860
+ column: 14
25861
25861
  },
25862
25862
  end: {
25863
- line: 110,
25864
- column: 66
25863
+ line: 66,
25864
+ column: 30
25865
25865
  }
25866
25866
  }
25867
25867
  },
@@ -25870,321 +25870,165 @@ function cov_3j9xfx0k4() {
25870
25870
  name: "(anonymous_0)",
25871
25871
  decl: {
25872
25872
  start: {
25873
- line: 13,
25873
+ line: 12,
25874
25874
  column: 24
25875
25875
  },
25876
25876
  end: {
25877
- line: 13,
25877
+ line: 12,
25878
25878
  column: 25
25879
25879
  }
25880
25880
  },
25881
25881
  loc: {
25882
25882
  start: {
25883
- line: 13,
25883
+ line: 12,
25884
25884
  column: 68
25885
25885
  },
25886
25886
  end: {
25887
- line: 126,
25887
+ line: 80,
25888
25888
  column: 1
25889
25889
  }
25890
25890
  },
25891
- line: 13
25891
+ line: 12
25892
25892
  },
25893
25893
  "1": {
25894
25894
  name: "(anonymous_1)",
25895
25895
  decl: {
25896
25896
  start: {
25897
- line: 77,
25897
+ line: 53,
25898
25898
  column: 26
25899
25899
  },
25900
25900
  end: {
25901
- line: 77,
25901
+ line: 53,
25902
25902
  column: 27
25903
25903
  }
25904
25904
  },
25905
25905
  loc: {
25906
25906
  start: {
25907
- line: 78,
25907
+ line: 54,
25908
25908
  column: 14
25909
25909
  },
25910
25910
  end: {
25911
- line: 91,
25911
+ line: 66,
25912
25912
  column: 30
25913
25913
  }
25914
25914
  },
25915
- line: 78
25916
- },
25917
- "2": {
25918
- name: "(anonymous_2)",
25919
- decl: {
25920
- start: {
25921
- line: 110,
25922
- column: 18
25923
- },
25924
- end: {
25925
- line: 110,
25926
- column: 19
25927
- }
25928
- },
25929
- loc: {
25930
- start: {
25931
- line: 110,
25932
- column: 24
25933
- },
25934
- end: {
25935
- line: 110,
25936
- column: 66
25937
- }
25938
- },
25939
- line: 110
25915
+ line: 54
25940
25916
  }
25941
25917
  },
25942
25918
  branchMap: {
25943
25919
  "0": {
25944
25920
  loc: {
25945
25921
  start: {
25946
- line: 13,
25922
+ line: 12,
25947
25923
  column: 43
25948
25924
  },
25949
25925
  end: {
25950
- line: 13,
25926
+ line: 12,
25951
25927
  column: 57
25952
25928
  }
25953
25929
  },
25954
25930
  type: "default-arg",
25955
25931
  locations: [{
25956
25932
  start: {
25957
- line: 13,
25933
+ line: 12,
25958
25934
  column: 55
25959
25935
  },
25960
25936
  end: {
25961
- line: 13,
25937
+ line: 12,
25962
25938
  column: 57
25963
25939
  }
25964
25940
  }],
25965
- line: 13
25941
+ line: 12
25966
25942
  },
25967
25943
  "1": {
25968
25944
  loc: {
25969
25945
  start: {
25970
- line: 17,
25946
+ line: 16,
25971
25947
  column: 4
25972
25948
  },
25973
25949
  end: {
25974
- line: 17,
25950
+ line: 16,
25975
25951
  column: 17
25976
25952
  }
25977
25953
  },
25978
25954
  type: "default-arg",
25979
25955
  locations: [{
25980
25956
  start: {
25981
- line: 17,
25957
+ line: 16,
25982
25958
  column: 15
25983
25959
  },
25984
25960
  end: {
25985
- line: 17,
25961
+ line: 16,
25986
25962
  column: 17
25987
25963
  }
25988
25964
  }],
25989
- line: 17
25965
+ line: 16
25990
25966
  },
25991
25967
  "2": {
25992
25968
  loc: {
25993
25969
  start: {
25994
- line: 35,
25970
+ line: 32,
25995
25971
  column: 6
25996
25972
  },
25997
25973
  end: {
25998
- line: 36,
25999
- column: 44
25974
+ line: 32,
25975
+ column: 57
26000
25976
  }
26001
25977
  },
26002
25978
  type: "binary-expr",
26003
25979
  locations: [{
26004
25980
  start: {
26005
- line: 35,
25981
+ line: 32,
26006
25982
  column: 6
26007
25983
  },
26008
25984
  end: {
26009
- line: 35,
25985
+ line: 32,
26010
25986
  column: 45
26011
25987
  }
26012
25988
  }, {
26013
25989
  start: {
26014
- line: 36,
26015
- column: 6
26016
- },
26017
- end: {
26018
- line: 36,
26019
- column: 44
26020
- }
26021
- }],
26022
- line: 35
26023
- },
26024
- "3": {
26025
- loc: {
26026
- start: {
26027
- line: 53,
26028
- column: 12
26029
- },
26030
- end: {
26031
- line: 54,
26032
- column: 51
26033
- }
26034
- },
26035
- type: "binary-expr",
26036
- locations: [{
26037
- start: {
26038
- line: 53,
26039
- column: 12
26040
- },
26041
- end: {
26042
- line: 53,
26043
- column: 50
26044
- }
26045
- }, {
26046
- start: {
26047
- line: 54,
26048
- column: 12
26049
- },
26050
- end: {
26051
- line: 54,
26052
- column: 51
26053
- }
26054
- }],
26055
- line: 53
26056
- },
26057
- "4": {
26058
- loc: {
26059
- start: {
26060
- line: 56,
26061
- column: 12
26062
- },
26063
- end: {
26064
- line: 57,
26065
- column: 52
26066
- }
26067
- },
26068
- type: "binary-expr",
26069
- locations: [{
26070
- start: {
26071
- line: 56,
26072
- column: 12
26073
- },
26074
- end: {
26075
- line: 56,
25990
+ line: 32,
26076
25991
  column: 49
26077
- }
26078
- }, {
26079
- start: {
26080
- line: 57,
26081
- column: 12
26082
25992
  },
26083
25993
  end: {
26084
- line: 57,
26085
- column: 52
26086
- }
26087
- }],
26088
- line: 56
26089
- },
26090
- "5": {
26091
- loc: {
26092
- start: {
26093
- line: 71,
26094
- column: 16
26095
- },
26096
- end: {
26097
- line: 72,
26098
- column: 56
26099
- }
26100
- },
26101
- type: "binary-expr",
26102
- locations: [{
26103
- start: {
26104
- line: 71,
26105
- column: 16
26106
- },
26107
- end: {
26108
- line: 71,
26109
- column: 53
26110
- }
26111
- }, {
26112
- start: {
26113
- line: 72,
26114
- column: 16
26115
- },
26116
- end: {
26117
- line: 72,
26118
- column: 56
25994
+ line: 32,
25995
+ column: 57
26119
25996
  }
26120
25997
  }],
26121
- line: 71
25998
+ line: 32
26122
25999
  },
26123
- "6": {
26000
+ "3": {
26124
26001
  loc: {
26125
26002
  start: {
26126
- line: 100,
26127
- column: 16
26003
+ line: 34,
26004
+ column: 6
26128
26005
  },
26129
26006
  end: {
26130
- line: 101,
26007
+ line: 34,
26131
26008
  column: 56
26132
26009
  }
26133
26010
  },
26134
26011
  type: "binary-expr",
26135
26012
  locations: [{
26136
26013
  start: {
26137
- line: 100,
26138
- column: 16
26014
+ line: 34,
26015
+ column: 6
26139
26016
  },
26140
26017
  end: {
26141
- line: 100,
26142
- column: 53
26018
+ line: 34,
26019
+ column: 44
26143
26020
  }
26144
26021
  }, {
26145
26022
  start: {
26146
- line: 101,
26147
- column: 16
26023
+ line: 34,
26024
+ column: 48
26148
26025
  },
26149
26026
  end: {
26150
- line: 101,
26027
+ line: 34,
26151
26028
  column: 56
26152
26029
  }
26153
26030
  }],
26154
- line: 100
26155
- },
26156
- "7": {
26157
- loc: {
26158
- start: {
26159
- line: 103,
26160
- column: 16
26161
- },
26162
- end: {
26163
- line: 103,
26164
- column: 68
26165
- }
26166
- },
26167
- type: "binary-expr",
26168
- locations: [{
26169
- start: {
26170
- line: 103,
26171
- column: 16
26172
- },
26173
- end: {
26174
- line: 103,
26175
- column: 25
26176
- }
26177
- }, {
26178
- start: {
26179
- line: 103,
26180
- column: 29
26181
- },
26182
- end: {
26183
- line: 103,
26184
- column: 68
26185
- }
26186
- }],
26187
- line: 103
26031
+ line: 34
26188
26032
  }
26189
26033
  },
26190
26034
  s: {
@@ -26199,21 +26043,16 @@ function cov_3j9xfx0k4() {
26199
26043
  },
26200
26044
  f: {
26201
26045
  "0": 0,
26202
- "1": 0,
26203
- "2": 0
26046
+ "1": 0
26204
26047
  },
26205
26048
  b: {
26206
26049
  "0": [0],
26207
26050
  "1": [0],
26208
26051
  "2": [0, 0],
26209
- "3": [0, 0],
26210
- "4": [0, 0],
26211
- "5": [0, 0],
26212
- "6": [0, 0],
26213
- "7": [0, 0]
26052
+ "3": [0, 0]
26214
26053
  },
26215
26054
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
26216
- hash: "cd32c02f35e4a188bf67c1400c76c668d141b1cc"
26055
+ hash: "0f7cfbc5fdb9566955558f2e8d21f9dc138d21d4"
26217
26056
  };
26218
26057
  var coverage = global[gcv] || (global[gcv] = {});
26219
26058
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -26248,36 +26087,29 @@ var FeatureWithLink = function FeatureWithLink(_ref) {
26248
26087
  _ref3$image = _ref3.image,
26249
26088
  imageURL = _ref3$image.src,
26250
26089
  imagePosition = _ref3$image.position,
26251
- src = _ref3.backgroundImage.src,
26252
- _ref3$link = _ref3.link,
26253
- linkLabel = _ref3$link.label,
26254
- linkURL = _ref3$link.url,
26255
- linkAction = _ref3$link.action;
26256
- var baseClasses = (cov_3j9xfx0k4().s[3]++, classnames$1("flex gap-12", {
26257
- "items-center": imageURL,
26258
- "flex-col lg:flex-row": imagePosition === POSITIONS.RIGHT.label,
26259
- "flex-col-reverse lg:flex-row-reverse": imagePosition === POSITIONS.LEFT.label,
26260
- "flex-col": imagePosition === POSITIONS.BOTTOM.label,
26261
- "flex-col-reverse": imagePosition === POSITIONS.TOP.label
26262
- }));
26263
- var imageBaseClasses = (cov_3j9xfx0k4().s[4]++, classnames$1({
26264
- "flex justify-center": true,
26265
- "sm:w-2/3 lg:w-1/2 flex-shrink-0": (cov_3j9xfx0k4().b[2][0]++, imagePosition === POSITIONS.RIGHT.label) || (cov_3j9xfx0k4().b[2][1]++, imagePosition === POSITIONS.LEFT.label),
26090
+ src = _ref3.backgroundImage.src;
26091
+ var baseClasses = (cov_3j9xfx0k4().s[3]++, "grid grid-cols-12 lg:gap-x-4 sm:gap-x-2 items-center grid-flow-row-dense");
26092
+ var imageBaseClasses = (cov_3j9xfx0k4().s[4]++, classnames$1("col-span-12", {
26093
+ "sm:col-span-6 sm:col-start-7": imagePosition === POSITIONS.RIGHT.label,
26094
+ "sm:col-span-6 sm:col-start-1": imagePosition === POSITIONS.LEFT.label,
26266
26095
  hidden: !imageURL
26267
26096
  }));
26268
- cov_3j9xfx0k4().s[5]++;
26097
+ var linkBaseClasses = (cov_3j9xfx0k4().s[5]++, classnames$1("col-span-12", {
26098
+ "sm:col-span-5 sm:col-start-1": (cov_3j9xfx0k4().b[2][0]++, imagePosition === POSITIONS.RIGHT.label) && (cov_3j9xfx0k4().b[2][1]++, imageURL),
26099
+ "sm:col-span-5 sm:col-start-8": (cov_3j9xfx0k4().b[3][0]++, imagePosition === POSITIONS.LEFT.label) && (cov_3j9xfx0k4().b[3][1]++, imageURL)
26100
+ }));
26101
+ cov_3j9xfx0k4().s[6]++;
26269
26102
  return /*#__PURE__*/React__default["default"].createElement(StyledWrapper, {
26270
26103
  backgroundImage: mergeLeft({
26271
26104
  src: src
26272
26105
  }, design.backgroundImage),
26106
+ className: className,
26273
26107
  design: design.body,
26274
- id: id,
26275
- className: classnames$1("border border-l-0 border-r-0", [className, baseClasses])
26108
+ id: id
26276
26109
  }, /*#__PURE__*/React__default["default"].createElement("div", {
26277
- className: classnames$1("relative flex flex-grow flex-col", {
26278
- "sm:items-center sm:text-center lg:items-start": (cov_3j9xfx0k4().b[3][0]++, imagePosition === POSITIONS.LEFT.label) || (cov_3j9xfx0k4().b[3][1]++, imagePosition === POSITIONS.RIGHT.label),
26279
- "items-center text-center": (cov_3j9xfx0k4().b[4][0]++, imagePosition === POSITIONS.TOP.label) || (cov_3j9xfx0k4().b[4][1]++, imagePosition === POSITIONS.BOTTOM.label)
26280
- })
26110
+ className: classnames$1("neeto-site-block-wrapper", baseClasses)
26111
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
26112
+ className: linkBaseClasses
26281
26113
  }, /*#__PURE__*/React__default["default"].createElement(Typography, {
26282
26114
  isTitle: true,
26283
26115
  component: "h1",
@@ -26286,52 +26118,31 @@ var FeatureWithLink = function FeatureWithLink(_ref) {
26286
26118
  component: "p",
26287
26119
  style: design.description
26288
26120
  }, description), /*#__PURE__*/React__default["default"].createElement("div", {
26289
- className: classnames$1("flex w-full flex-col items-center lg:items-start", {
26290
- "lg:items-center": (cov_3j9xfx0k4().b[5][0]++, imagePosition === POSITIONS.TOP.label) || (cov_3j9xfx0k4().b[5][1]++, imagePosition === POSITIONS.BOTTOM.label)
26291
- })
26292
- }, /*#__PURE__*/React__default["default"].createElement("div", null, features.map(function (_ref4, index) {
26121
+ className: "mb-8 space-y-5"
26122
+ }, features.map(function (_ref4, index) {
26293
26123
  var featureTitle = _ref4.title,
26294
26124
  Icon = _ref4.icon;
26295
26125
  cov_3j9xfx0k4().f[1]++;
26296
- cov_3j9xfx0k4().s[6]++;
26126
+ cov_3j9xfx0k4().s[7]++;
26297
26127
  return /*#__PURE__*/React__default["default"].createElement(StyledWrapper, {
26298
- className: "flex items-center",
26128
+ className: "flex items-center gap-x-4",
26299
26129
  design: design.feature,
26300
26130
  key: getUniqueKey(featureTitle, index)
26301
26131
  }, /*#__PURE__*/React__default["default"].createElement(Icon, {
26302
26132
  color: design.featureIcon.color,
26303
- size: design.featureIcon.size,
26304
- strokeWidth: 3
26133
+ size: design.featureIcon.size
26305
26134
  }), /*#__PURE__*/React__default["default"].createElement(Typography, {
26306
26135
  isTitle: true,
26307
26136
  component: "p",
26308
26137
  style: design.featureTitle
26309
26138
  }, featureTitle));
26310
- }))), /*#__PURE__*/React__default["default"].createElement("div", {
26311
- className: classnames$1("flex w-full flex-col items-center lg:items-start", {
26312
- "lg:items-center": (cov_3j9xfx0k4().b[6][0]++, imagePosition === POSITIONS.TOP.label) || (cov_3j9xfx0k4().b[6][1]++, imagePosition === POSITIONS.BOTTOM.label),
26313
- "lg:items-end": (cov_3j9xfx0k4().b[7][0]++, !imageURL) && (cov_3j9xfx0k4().b[7][1]++, imagePosition === POSITIONS.RIGHT.label)
26314
- })
26315
- }, /*#__PURE__*/React__default["default"].createElement(LinkElement, {
26316
- action: linkAction,
26317
- className: "no-underline hover:underline",
26318
- icon: function icon() {
26319
- cov_3j9xfx0k4().f[2]++;
26320
- cov_3j9xfx0k4().s[7]++;
26321
- return /*#__PURE__*/React__default["default"].createElement(i$r, {
26322
- size: design.link.iconSize
26323
- });
26324
- },
26325
- label: linkLabel,
26326
- style: design.link,
26327
- to: linkURL
26328
26139
  }))), /*#__PURE__*/React__default["default"].createElement("div", {
26329
26140
  className: imageBaseClasses
26330
26141
  }, /*#__PURE__*/React__default["default"].createElement(StyledImage, {
26331
26142
  design: design.image,
26332
26143
  lgImageWidth: design.image.width,
26333
26144
  src: imageURL
26334
- })));
26145
+ }))));
26335
26146
  };
26336
26147
 
26337
26148
  function cov_26jzxz7dh2() {