@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.
- package/dist/strapi-slices.cjs.development.js +12 -3
- package/dist/strapi-slices.cjs.development.js.map +1 -1
- package/dist/strapi-slices.cjs.production.min.js +1 -1
- package/dist/strapi-slices.cjs.production.min.js.map +1 -1
- package/dist/strapi-slices.esm.js +12 -3
- package/dist/strapi-slices.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/slices/IconGrid/IconGrid.tsx +85 -70
- package/src/slices/TextCarousel/TextCarousel.tsx +1 -1
|
@@ -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:
|
|
1013
|
-
gap:
|
|
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: "
|
|
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,
|