@trafilea/afrodita-components 6.36.11 → 6.36.13

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.
@@ -21110,8 +21110,7 @@ var Slider = function (_a) {
21110
21110
 
21111
21111
  var Container$5 = newStyled.div({
21112
21112
  background: 'var(--truekind-default-secondary, #292929)',
21113
- minHeight: '100vh',
21114
- height: '100%',
21113
+ minHeight: '100svh',
21115
21114
  width: '100vw',
21116
21115
  position: 'fixed',
21117
21116
  overflowY: 'scroll',
@@ -21134,17 +21133,18 @@ var SubContainer = newStyled.div({
21134
21133
  '@media screen and (min-height: 740px)': {
21135
21134
  marginTop: '0px',
21136
21135
  },
21137
- '@media screen and (min-color-index:0) and(-webkit-min-device-pixel-ratio:0)': {
21138
- '@media': {
21139
- marginTop: '40px !important',
21140
- },
21136
+ '@media screen and (-webkit-min-device-pixel-ratio:0)': {
21137
+ marginTop: '40px !important',
21141
21138
  },
21142
21139
  '@media not all and (min-resolution:.001dpcm)': {
21140
+ '@media': {
21141
+ marginTop: '140px !important',
21142
+ },
21143
21143
  '@supports (-webkit-appearance:none) and (stroke-color:transparent)': {
21144
- marginTop: '40px !important',
21144
+ marginTop: '140px !important',
21145
21145
  },
21146
21146
  '@supports (-webkit-appearance:none) and (not (stroke-color:transparent))': {
21147
- marginTop: '40px !important',
21147
+ marginTop: '140px !important',
21148
21148
  },
21149
21149
  },
21150
21150
  '@media screen and (min-width: 380px) and (max-width: 400px) and (max-height: 860px) ': {
@@ -21192,6 +21192,13 @@ var ProductGalleryMobileV4 = function (_a) {
21192
21192
  useEffect(function () {
21193
21193
  setSelectedImageIndex(selectedValue);
21194
21194
  }, [selectedValue]);
21195
+ useEffect(function () {
21196
+ var body = document.querySelector('body');
21197
+ if (!body) {
21198
+ return;
21199
+ }
21200
+ body.style.overflow = galleryOpened ? 'hidden' : 'visible';
21201
+ }, [galleryOpened]);
21195
21202
  return (jsx$1("div", __assign$1({ ref: containerRef }, { children: galleryOpened ? (jsx$1(GalleryDetailed, { images: images, topTag: topTag, topRightTag: topRightTag, bottomTag: bottomTag, productImageDataTestId: productImageDataTestId, borderRadiusVariant: borderRadiusVariant, itemsOnViewport: itemsOnViewport, selectedImageIndex: selectedImageIndex, setSelectedImageIndex: setSelectedImageIndex, setGalleryOpened: setGalleryOpened }, void 0)) : (jsx$1(ContentGallery, { contents: images, containerRef: containerRef, customClick: customClick, topTag: topTag, topRightTag: topRightTag, bottomTag: bottomTag, testId: productImageDataTestId, borderRadiusVariant: borderRadiusVariant, itemsOnViewport: itemsOnViewport, selectedImageIndex: selectedImageIndex, setSelectedImageIndex: setSelectedImageIndex, setGalleryOpened: setGalleryOpened }, void 0)) }), void 0));
21196
21203
  };
21197
21204