@treely/strapi-slices 5.2.2 → 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, {
@@ -2339,7 +2348,7 @@ var TextCarousel = function TextCarousel(_ref) {
2339
2348
  size: 16
2340
2349
  }),
2341
2350
  pointerEvents: "auto",
2342
- boxShadow: "sm"
2351
+ boxShadow: "md"
2343
2352
  }))), React.createElement(Box, null, React.createElement(AnimatePresence, null, canMoveRight && React.createElement(IconButton, {
2344
2353
  key: "rightButton",
2345
2354
  as: motion.button,