@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.
@@ -987,6 +987,15 @@ var Hero = function Hero(_ref) {
987
987
 
988
988
  var IconGrid = function IconGrid(_ref) {
989
989
  var slice = _ref.slice;
990
+ var columns = function columns() {
991
+ if (slice.iconsWithTextAndButton.length === 2) {
992
+ return [1, null, null, 2, 2];
993
+ }
994
+ if (slice.iconsWithTextAndButton.length === 1) {
995
+ return 1;
996
+ }
997
+ return [1, null, null, 2, 3];
998
+ };
990
999
  return React.createElement(DefaultSectionContainer, null, React.createElement(Wrapper, null, slice.title ? React.createElement(React.Fragment, null, React.createElement(Flex, {
991
1000
  alignItems: "center",
992
1001
  flexDirection: "column"
@@ -1009,8 +1018,8 @@ var IconGrid = function IconGrid(_ref) {
1009
1018
  })), React.createElement(Spacer, {
1010
1019
  h: "20"
1011
1020
  })) : React.createElement(React.Fragment, null), React.createElement(SimpleGrid, {
1012
- columns: [1, null, null, 2, 3],
1013
- gap: "16",
1021
+ columns: columns(),
1022
+ gap: slice.iconsWithTextAndButton.length === 2 ? '14' : '16',
1014
1023
  rowGap: ['16', null, null, '20']
1015
1024
  }, slice.iconsWithTextAndButton.map(function (iconWithTextAndButton) {
1016
1025
  return React.createElement(Box, {