diy-template-components 2.0.41 → 2.0.42

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/build/index.js CHANGED
@@ -6553,7 +6553,6 @@ const useTeamStyles = createUseStyles(theme => {
6553
6553
  singleSlideContainer: {
6554
6554
  backgroundColor: theme?.palette?.background?.default,
6555
6555
  margin: '20px 0',
6556
- width: 'calc(25% - 24px)',
6557
6556
  borderRadius: theme?.shape?.borderRadius?.large,
6558
6557
  boxShadow: theme?.shadows?.primary,
6559
6558
  minHeight: '385px'
@@ -6674,11 +6673,17 @@ var StarIcon = "data:image/svg+xml,%3Csvg%20width%3D%2213%22%20height%3D%2213%22
6674
6673
 
6675
6674
  const SingleSlide = ({
6676
6675
  data,
6677
- sectionIndex
6676
+ sectionIndex,
6677
+ fullWidth
6678
6678
  }) => {
6679
6679
  const classes = useTeamStyles();
6680
6680
  return /*#__PURE__*/React__default["default"].createElement("div", {
6681
- className: classes.singleSlideContainer
6681
+ className: classes.singleSlideContainer,
6682
+ style: fullWidth ? {
6683
+ width: 'calc(100% - 24px)'
6684
+ } : {
6685
+ width: 'calc(25% - 24px)'
6686
+ }
6682
6687
  }, /*#__PURE__*/React__default["default"].createElement("div", {
6683
6688
  className: classes.imageContainer
6684
6689
  }, data?.teamSlideStarTutor?.metadata?.value ? /*#__PURE__*/React__default["default"].createElement("span", {
@@ -6767,11 +6772,12 @@ function TeamCard({
6767
6772
  centerPadding: isMobile ? '40px 0 0' : '8px 0 0 ',
6768
6773
  centerMode: true
6769
6774
  };
6770
- const carouselContent = teamData.teamCarousel.components.map((data, idx) => {
6775
+ const getCarouselContent = (fullWidth = false) => teamData.teamCarousel.components.map((data, idx) => {
6771
6776
  return /*#__PURE__*/React__default["default"].createElement(SingleSlide, {
6772
6777
  key: idx,
6773
6778
  data: data,
6774
- sectionIndex: sectionIndex
6779
+ sectionIndex: sectionIndex,
6780
+ fullWidth: fullWidth
6775
6781
  });
6776
6782
  });
6777
6783
  return /*#__PURE__*/React__default["default"].createElement("section", {
@@ -6795,9 +6801,9 @@ function TeamCard({
6795
6801
  })), cardsCount > slidesToShow ? /*#__PURE__*/React__default["default"].createElement(Carousel, {
6796
6802
  hideArrow: isMobile,
6797
6803
  settings: settings
6798
- }, carouselContent) : /*#__PURE__*/React__default["default"].createElement("div", {
6804
+ }, getCarouselContent(true)) : /*#__PURE__*/React__default["default"].createElement("div", {
6799
6805
  className: classes.contentRow
6800
- }, " ", carouselContent)));
6806
+ }, " ", getCarouselContent())));
6801
6807
  }
6802
6808
 
6803
6809
  var index$8 = /*#__PURE__*/Object.freeze({