@treely/strapi-slices 5.2.3 → 5.2.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.
@@ -1000,6 +1000,15 @@ var Hero = function Hero(_ref) {
1000
1000
 
1001
1001
  var IconGrid = function IconGrid(_ref) {
1002
1002
  var slice = _ref.slice;
1003
+ var columns = function columns() {
1004
+ if (slice.iconsWithTextAndButton.length === 2) {
1005
+ return [1, null, null, 2, 2];
1006
+ }
1007
+ if (slice.iconsWithTextAndButton.length === 1) {
1008
+ return 1;
1009
+ }
1010
+ return [1, null, null, 2, 3];
1011
+ };
1003
1012
  return React__default.default.createElement(boemly.DefaultSectionContainer, null, React__default.default.createElement(boemly.Wrapper, null, slice.title ? React__default.default.createElement(React__default.default.Fragment, null, React__default.default.createElement(boemly.Flex, {
1004
1013
  alignItems: "center",
1005
1014
  flexDirection: "column"
@@ -1022,8 +1031,8 @@ var IconGrid = function IconGrid(_ref) {
1022
1031
  })), React__default.default.createElement(boemly.Spacer, {
1023
1032
  h: "20"
1024
1033
  })) : React__default.default.createElement(React__default.default.Fragment, null), React__default.default.createElement(boemly.SimpleGrid, {
1025
- columns: [1, null, null, 2, 3],
1026
- gap: "16",
1034
+ columns: columns(),
1035
+ gap: slice.iconsWithTextAndButton.length === 2 ? '14' : '16',
1027
1036
  rowGap: ['16', null, null, '20']
1028
1037
  }, slice.iconsWithTextAndButton.map(function (iconWithTextAndButton) {
1029
1038
  return React__default.default.createElement(boemly.Box, {