@treely/strapi-slices 7.1.2 → 7.1.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/README.md CHANGED
@@ -42,10 +42,10 @@ npm pack
42
42
  Go to the project which uses the strapi-slices package and remove the `node_modules` and the `.next` folder before installing the package there:
43
43
 
44
44
  ```bash
45
+ cd ../path/to/your/project
45
46
  rm -r node_modules
46
47
  rm -r .next
47
48
  npm install
48
- cd ../path/to/your/project
49
49
  npm install ../path/to/strapi-slices-package.tgz
50
50
  ```
51
51
 
@@ -3541,7 +3541,7 @@ var ImageContainer = /*#__PURE__*/styled__default.default(boemly.Box)(_templateO
3541
3541
  return aspectRatio;
3542
3542
  });
3543
3543
 
3544
- var ALLOWED_RATIOS = [2 / 3, 1 / 1, 3 / 2];
3544
+ var ALLOWED_RATIOS = [2 / 3, 1 / 1, 3 / 2, 2 / 1, 3 / 1, 4 / 1, 5 / 1]; // width / height
3545
3545
  var getClosestRatio = function getClosestRatio(width, height) {
3546
3546
  var ratio = width / height;
3547
3547
  var minDiff = Math.abs(ratio - ALLOWED_RATIOS[0]);
@@ -3628,7 +3628,9 @@ var FullWidthImageSlider = function FullWidthImageSlider(_ref) {
3628
3628
  if (!isMobile) setIsOpen(true);
3629
3629
  }
3630
3630
  })), React__default.default.createElement(boemly.Text, {
3631
- height: "6"
3631
+ noOfLines: 3,
3632
+ height: "72px",
3633
+ fontSize: "md"
3632
3634
  }, image.caption)));
3633
3635
  }))), React__default.default.createElement(boemly.Box, {
3634
3636
  display: ['none', null, null, !!allowScroll ? 'flex' : 'none'],
@@ -5384,14 +5386,14 @@ var Comparison = function Comparison(_ref) {
5384
5386
  };
5385
5387
 
5386
5388
  var _templateObject, _templateObject2;
5387
- var CarouselInnerContainer = /*#__PURE__*/styled__default.default(framerMotion.motion.div)(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: ", ";\n gap: var(--boemly-space-6);\n\n @media screen and (max-width: ", ") {\n width: calc(\n ", " *\n (var(--boemly-sizes-16) + var(--boemly-space-6))\n );\n justify-content: ", ";\n }\n"])), function (props) {
5389
+ var CarouselInnerContainer = /*#__PURE__*/styled__default.default(framerMotion.motion.div)(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n justify-content: ", ";\n gap: var(--boemly-space-24);\n padding-right: var(--boemly-space-24);\n padding-left: var(--boemly-space-24);\n\n @media screen and (max-width: ", ") {\n width: calc(\n ", " *\n (var(--boemly-sizes-16) + var(--boemly-space-6))\n );\n justify-content: ", ";\n }\n"])), function (props) {
5388
5390
  return props.logoCount < 5 ? 'center' : 'flex-start';
5389
5391
  }, BREAKPOINT_MD, function (props) {
5390
5392
  return props.logoCount;
5391
5393
  }, function (props) {
5392
5394
  return props.logoCount < 5 ? 'center' : 'flex-start';
5393
5395
  });
5394
- var LogoGrid = /*#__PURE__*/styled__default.default(framerMotion.motion.div)(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n gap: var(--boemly-space-6);\n\n @media screen and (max-width: ", ") {\n display: grid;\n grid-template-columns: 1fr 1fr;\n grid-gap: var(--boemly-space-6);\n }\n"])), BREAKPOINT_MD);
5396
+ var LogoGrid = /*#__PURE__*/styled__default.default(framerMotion.motion.div)(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n gap: var(--boemly-space-24);\n\n @media screen and (max-width: ", ") {\n display: grid;\n grid-template-columns: 1fr 1fr;\n grid-gap: var(--boemly-space-6);\n }\n"])), BREAKPOINT_MD);
5395
5397
 
5396
5398
  // Separate component containing the actual logic
5397
5399
  var CarouselMarqueeBannerContent = function CarouselMarqueeBannerContent(_ref) {
@@ -5429,7 +5431,6 @@ var CarouselMarqueeBannerContent = function CarouselMarqueeBannerContent(_ref) {
5429
5431
  return React__default.default.createElement(LogoGrid, null, slice.logos.map(function (logo, index) {
5430
5432
  return React__default.default.createElement(boemly.Box, {
5431
5433
  key: logo.id + "-" + index,
5432
- width: isMobile ? '16' : '36',
5433
5434
  flexShrink: 0,
5434
5435
  transform: "translate3d(0, 0, 0)"
5435
5436
  }, React__default.default.createElement(boemly.Flex, {
@@ -5439,17 +5440,15 @@ var CarouselMarqueeBannerContent = function CarouselMarqueeBannerContent(_ref) {
5439
5440
  alignItems: "center"
5440
5441
  }, React__default.default.createElement(boemly.Box, {
5441
5442
  position: "relative",
5442
- maxHeight: "xl",
5443
- height: "calc(" + (isMobile ? 'var(--boemly-sizes-16)' : 'var(--boemly-sizes-36)') + " / " + getClosestRatio(logo.img.data.attributes.width, logo.img.data.attributes.height) + ")",
5444
- width: isMobile ? '16' : '36',
5445
- borderRadius: "xl"
5443
+ height: isMobile ? '16' : '36',
5444
+ width: "calc(var(--boemly-sizes-10)\n * " + getClosestRatio(logo.img.data.attributes.width, logo.img.data.attributes.height) + ")"
5446
5445
  }, React__default.default.createElement(Image__default.default, {
5447
5446
  src: strapiMediaUrl(logo.img, 'large'),
5448
5447
  alt: logo.alt,
5449
5448
  fill: true,
5450
5449
  style: {
5451
5450
  objectFit: logo.objectFit || 'contain',
5452
- borderRadius: 'var(--boemly-radii-xl)'
5451
+ filter: 'grayscale(100%)'
5453
5452
  }
5454
5453
  }))));
5455
5454
  }));
@@ -5464,7 +5463,6 @@ var CarouselMarqueeBannerContent = function CarouselMarqueeBannerContent(_ref) {
5464
5463
  }, logosToRender.map(function (logo, index) {
5465
5464
  return React__default.default.createElement(boemly.Box, {
5466
5465
  key: logo.id + "-" + index,
5467
- width: isMobile ? '16' : '36',
5468
5466
  flexShrink: 0,
5469
5467
  transform: "translate3d(0, 0, 0)"
5470
5468
  }, React__default.default.createElement(boemly.Flex, {
@@ -5474,17 +5472,15 @@ var CarouselMarqueeBannerContent = function CarouselMarqueeBannerContent(_ref) {
5474
5472
  alignItems: "center"
5475
5473
  }, React__default.default.createElement(boemly.Box, {
5476
5474
  position: "relative",
5477
- maxHeight: "xl",
5478
- height: "calc(" + (isMobile ? 'var(--boemly-sizes-16)' : 'var(--boemly-sizes-36)') + " / " + getClosestRatio(logo.img.data.attributes.width, logo.img.data.attributes.height) + ")",
5479
- width: isMobile ? '16' : '36',
5480
- borderRadius: "xl"
5475
+ height: isMobile ? '16' : '36',
5476
+ width: "calc(var(--boemly-sizes-10) * " + getClosestRatio(logo.img.data.attributes.width, logo.img.data.attributes.height) + ")"
5481
5477
  }, React__default.default.createElement(Image__default.default, {
5482
5478
  src: strapiMediaUrl(logo.img, 'large'),
5483
5479
  alt: logo.alt,
5484
5480
  fill: true,
5485
5481
  style: {
5486
5482
  objectFit: logo.objectFit || 'contain',
5487
- borderRadius: 'var(--boemly-radii-xl)'
5483
+ filter: 'grayscale(100%)'
5488
5484
  }
5489
5485
  }))));
5490
5486
  })));