@trafilea/afrodita-components 5.0.0-beta.272 → 5.0.0-beta.274

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.d.ts CHANGED
@@ -2650,9 +2650,8 @@ interface ProductGalleryMobileProps$1 {
2650
2650
  productImageDataTestId?: string;
2651
2651
  borderRadiusVariant?: boolean;
2652
2652
  selectedValue?: ImageType;
2653
- navArrowBackground?: boolean;
2654
2653
  }
2655
- declare const ProductGalleryMobile: ({ images, customClick, topTag, bottomTag, productImageDataTestId, borderRadiusVariant, selectedValue, navArrowBackground, }: ProductGalleryMobileProps$1) => JSX.Element;
2654
+ declare const ProductGalleryMobile: ({ images, customClick, topTag, bottomTag, productImageDataTestId, borderRadiusVariant, selectedValue, }: ProductGalleryMobileProps$1) => JSX.Element;
2656
2655
 
2657
2656
  interface RadioProps {
2658
2657
  name: string;
@@ -5287,7 +5287,7 @@ var Price = newStyled.p(templateObject_2$X || (templateObject_2$X = __makeTempla
5287
5287
  var finalPriceStyledSmall = _a.finalPriceStyledSmall, size = _a.size;
5288
5288
  return finalPriceStyledSmall ? (size === 'large' ? '-10px' : '-7px') : '0';
5289
5289
  });
5290
- var TagContainer = newStyled.p(templateObject_3$L || (templateObject_3$L = __makeTemplateObject(["\n margin: ", ";\n display: flex;\n align-items: center;\n"], ["\n margin: ", ";\n display: flex;\n align-items: center;\n"])), function (_a) {
5290
+ var TagContainer = newStyled.div(templateObject_3$L || (templateObject_3$L = __makeTemplateObject(["\n margin: ", ";\n display: flex;\n align-items: center;\n"], ["\n margin: ", ";\n display: flex;\n align-items: center;\n"])), function (_a) {
5291
5291
  var _b;
5292
5292
  var size = _a.size;
5293
5293
  return (_b = getStylesBySize$7(size)) === null || _b === void 0 ? void 0 : _b.margin;
@@ -13885,8 +13885,8 @@ var VideoOverlay$1 = newStyled.div(templateObject_4$e || (templateObject_4$e = _
13885
13885
  var Video = newStyled.div(templateObject_5$9 || (templateObject_5$9 = __makeTemplateObject(["\n position: relative;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n height: 510px;\n background: #efefef;\n\n & > iframe {\n border: none;\n }\n"], ["\n position: relative;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n height: 510px;\n background: #efefef;\n\n & > iframe {\n border: none;\n }\n"])));
13886
13886
  var VideoTag = newStyled.div(templateObject_6$8 || (templateObject_6$8 = __makeTemplateObject(["\n gap: 8px;\n position: absolute;\n width: 100%;\n bottom: 50px;\n display: flex;\n padding: 8.6px 0;\n font-weight: 600;\n align-items: center;\n background: #f7f7f7;\n justify-content: center;\n"], ["\n gap: 8px;\n position: absolute;\n width: 100%;\n bottom: 50px;\n display: flex;\n padding: 8.6px 0;\n font-weight: 600;\n align-items: center;\n background: #f7f7f7;\n justify-content: center;\n"])));
13887
13887
  var Text$3 = newStyled.div(templateObject_7$6 || (templateObject_7$6 = __makeTemplateObject(["\n padding-top: 3px;\n"], ["\n padding-top: 3px;\n"])));
13888
- var NavButtonContainer = newStyled.div(templateObject_8$5 || (templateObject_8$5 = __makeTemplateObject(["\n height: 80px;\n width: 40px;\n background-color: ", ";\n"], ["\n height: 80px;\n width: 40px;\n background-color: ", ";\n"])), function (props) { return (props.navArrowBackground ? 'rgba(0,0,0,0.1) !important' : ''); });
13889
- var Button$1 = newStyled.button(templateObject_9$3 || (templateObject_9$3 = __makeTemplateObject(["\n background: transparent;\n border: none;\n padding: 0.188rem 0.625rem;\n z-index: 5;\n height: 40px !important;\n margin: 20px 0;\n cursor: pointer;\n"], ["\n background: transparent;\n border: none;\n padding: 0.188rem 0.625rem;\n z-index: 5;\n height: 40px !important;\n margin: 20px 0;\n cursor: pointer;\n"])));
13888
+ var NavButtonContainer = newStyled.div(templateObject_8$5 || (templateObject_8$5 = __makeTemplateObject(["\n height: 40px;\n width: 40px;\n"], ["\n height: 40px;\n width: 40px;\n"])));
13889
+ var Button$1 = newStyled.button(templateObject_9$3 || (templateObject_9$3 = __makeTemplateObject(["\n background: transparent;\n border: none;\n padding: 0.188rem 0.625rem;\n z-index: 5;\n height: 40px !important;\n cursor: pointer;\n"], ["\n background: transparent;\n border: none;\n padding: 0.188rem 0.625rem;\n z-index: 5;\n height: 40px !important;\n cursor: pointer;\n"])));
13890
13890
  var settings = {
13891
13891
  dots: true,
13892
13892
  infinite: false,
@@ -13896,7 +13896,7 @@ var settings = {
13896
13896
  initialSlide: 0,
13897
13897
  };
13898
13898
  var ImageProductWithTags = function (_a) {
13899
- var images = _a.images, _b = _a.customClick, customClick = _b === void 0 ? false : _b, topTag = _a.topTag, bottomTag = _a.bottomTag, testId = _a.testId, borderRadiusVariant = _a.borderRadiusVariant, selectedValue = _a.selectedValue, navArrowBackground = _a.navArrowBackground;
13899
+ var images = _a.images, _b = _a.customClick, customClick = _b === void 0 ? false : _b, topTag = _a.topTag, bottomTag = _a.bottomTag, testId = _a.testId, borderRadiusVariant = _a.borderRadiusVariant, selectedValue = _a.selectedValue;
13900
13900
  var slick = useRef(null);
13901
13901
  var sliderWrapper = useRef(null);
13902
13902
  var iframeRef = useRef(null);
@@ -13937,7 +13937,7 @@ var ImageProductWithTags = function (_a) {
13937
13937
  // If autoplay is true and iframe is the active slide, play the video
13938
13938
  var autoplay = (_a = activeSlide === null || activeSlide === void 0 ? void 0 : activeSlide.imageUrl) === null || _a === void 0 ? void 0 : _a.includes('autoplay=1');
13939
13939
  autoplay ? _playVideo() : _stopVideo();
13940
- } }, settings, { nextArrow: jsx$1(NavButtonContainer, __assign$1({ navArrowBackground: navArrowBackground }, { children: jsx$1(Button$1, { children: jsx$1(Icon.Arrows.ChevronRight, { height: 2.125, width: 1.25, fill: "#292929", opacity: 0.5 }, void 0) }, void 0) }), void 0), prevArrow: jsx$1(NavButtonContainer, __assign$1({ navArrowBackground: navArrowBackground }, { children: jsx$1(Button$1, { children: jsx$1(Icon.Arrows.ChevronLeft, { height: 2.125, width: 1.25, fill: "#292929", opacity: 0.5 }, void 0) }, void 0) }), void 0), ref: slick }, { children: images.map(function (image) {
13940
+ } }, settings, { nextArrow: jsx$1(NavButtonContainer, { children: jsx$1(Button$1, { children: jsx$1(Icon.Arrows.ChevronRight, { height: 2.125, width: 1.25, fill: "#292929" }, void 0) }, void 0) }, void 0), prevArrow: jsx$1(NavButtonContainer, { children: jsx$1(Button$1, { children: jsx$1(Icon.Arrows.ChevronLeft, { height: 2.125, width: 1.25, fill: "#292929" }, void 0) }, void 0) }, void 0), ref: slick }, { children: images.map(function (image) {
13941
13941
  var _a, _b;
13942
13942
  return (jsxs$1("div", { children: [!((_a = image === null || image === void 0 ? void 0 : image.alt) === null || _a === void 0 ? void 0 : _a.includes('-video')) && (jsxs$1(Fragment$1, { children: [jsx$1(InnerImageZoom, { src: image.imageUrl, zoomSrc: image.imageUrl, zoomType: "hover", imgAttributes: { alt: image.alt, width: '100%', height: '510px' }, height: 510, fullscreenOnMobile: true, className: "zoomWrapper" }, void 0), jsx$1(TopTagContainer$1, __assign$1({ borderRadiusVariant: borderRadiusVariant, "data-testid": "topTag" }, { children: topTag }), void 0), jsx$1(BottomTagContainer$1, __assign$1({ "data-testid": "bottomTag" }, { children: bottomTag }), void 0)] }, void 0)), ((_b = image === null || image === void 0 ? void 0 : image.alt) === null || _b === void 0 ? void 0 : _b.includes('-video')) && (jsxs$1(Video, { children: [jsx$1("iframe", { id: "vwo-video", ref: iframeRef, allowFullScreen: true, title: image.alt, width: "100%", height: "220px", src: image === null || image === void 0 ? void 0 : image.imageUrl, allow: "accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" }, void 0), jsx$1(VideoOverlay$1, { onClick: function () {
13943
13943
  isPlaying ? _stopVideo() : _playVideo();
@@ -13983,8 +13983,8 @@ var templateObject_1$w, templateObject_2$l, templateObject_3$k, templateObject_4
13983
13983
 
13984
13984
  var Container$n = newStyled.div(templateObject_1$v || (templateObject_1$v = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n height: fit-content;\n position: relative;\n max-width: 450px;\n"], ["\n display: flex;\n flex-direction: column;\n height: fit-content;\n position: relative;\n max-width: 450px;\n"])));
13985
13985
  var ProductGalleryMobile = function (_a) {
13986
- var images = _a.images, customClick = _a.customClick, topTag = _a.topTag, bottomTag = _a.bottomTag, productImageDataTestId = _a.productImageDataTestId, _b = _a.borderRadiusVariant, borderRadiusVariant = _b === void 0 ? false : _b, selectedValue = _a.selectedValue, _c = _a.navArrowBackground, navArrowBackground = _c === void 0 ? false : _c;
13987
- return (jsx$1(Container$n, { children: jsx$1(ImageProductWithTags, { images: images, customClick: customClick, topTag: topTag, bottomTag: bottomTag, testId: productImageDataTestId, borderRadiusVariant: borderRadiusVariant, selectedValue: selectedValue, navArrowBackground: navArrowBackground }, void 0) }, void 0));
13986
+ var images = _a.images, customClick = _a.customClick, topTag = _a.topTag, bottomTag = _a.bottomTag, productImageDataTestId = _a.productImageDataTestId, _b = _a.borderRadiusVariant, borderRadiusVariant = _b === void 0 ? false : _b, selectedValue = _a.selectedValue;
13987
+ return (jsx$1(Container$n, { children: jsx$1(ImageProductWithTags, { images: images, customClick: customClick, topTag: topTag, bottomTag: bottomTag, testId: productImageDataTestId, borderRadiusVariant: borderRadiusVariant, selectedValue: selectedValue }, void 0) }, void 0));
13988
13988
  };
13989
13989
  var templateObject_1$v;
13990
13990
 
package/build/index.js CHANGED
@@ -5313,7 +5313,7 @@ var Price = newStyled.p(templateObject_2$X || (templateObject_2$X = __makeTempla
5313
5313
  var finalPriceStyledSmall = _a.finalPriceStyledSmall, size = _a.size;
5314
5314
  return finalPriceStyledSmall ? (size === 'large' ? '-10px' : '-7px') : '0';
5315
5315
  });
5316
- var TagContainer = newStyled.p(templateObject_3$L || (templateObject_3$L = __makeTemplateObject(["\n margin: ", ";\n display: flex;\n align-items: center;\n"], ["\n margin: ", ";\n display: flex;\n align-items: center;\n"])), function (_a) {
5316
+ var TagContainer = newStyled.div(templateObject_3$L || (templateObject_3$L = __makeTemplateObject(["\n margin: ", ";\n display: flex;\n align-items: center;\n"], ["\n margin: ", ";\n display: flex;\n align-items: center;\n"])), function (_a) {
5317
5317
  var _b;
5318
5318
  var size = _a.size;
5319
5319
  return (_b = getStylesBySize$7(size)) === null || _b === void 0 ? void 0 : _b.margin;
@@ -13911,8 +13911,8 @@ var VideoOverlay$1 = newStyled.div(templateObject_4$e || (templateObject_4$e = _
13911
13911
  var Video = newStyled.div(templateObject_5$9 || (templateObject_5$9 = __makeTemplateObject(["\n position: relative;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n height: 510px;\n background: #efefef;\n\n & > iframe {\n border: none;\n }\n"], ["\n position: relative;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n height: 510px;\n background: #efefef;\n\n & > iframe {\n border: none;\n }\n"])));
13912
13912
  var VideoTag = newStyled.div(templateObject_6$8 || (templateObject_6$8 = __makeTemplateObject(["\n gap: 8px;\n position: absolute;\n width: 100%;\n bottom: 50px;\n display: flex;\n padding: 8.6px 0;\n font-weight: 600;\n align-items: center;\n background: #f7f7f7;\n justify-content: center;\n"], ["\n gap: 8px;\n position: absolute;\n width: 100%;\n bottom: 50px;\n display: flex;\n padding: 8.6px 0;\n font-weight: 600;\n align-items: center;\n background: #f7f7f7;\n justify-content: center;\n"])));
13913
13913
  var Text$3 = newStyled.div(templateObject_7$6 || (templateObject_7$6 = __makeTemplateObject(["\n padding-top: 3px;\n"], ["\n padding-top: 3px;\n"])));
13914
- var NavButtonContainer = newStyled.div(templateObject_8$5 || (templateObject_8$5 = __makeTemplateObject(["\n height: 80px;\n width: 40px;\n background-color: ", ";\n"], ["\n height: 80px;\n width: 40px;\n background-color: ", ";\n"])), function (props) { return (props.navArrowBackground ? 'rgba(0,0,0,0.1) !important' : ''); });
13915
- var Button$1 = newStyled.button(templateObject_9$3 || (templateObject_9$3 = __makeTemplateObject(["\n background: transparent;\n border: none;\n padding: 0.188rem 0.625rem;\n z-index: 5;\n height: 40px !important;\n margin: 20px 0;\n cursor: pointer;\n"], ["\n background: transparent;\n border: none;\n padding: 0.188rem 0.625rem;\n z-index: 5;\n height: 40px !important;\n margin: 20px 0;\n cursor: pointer;\n"])));
13914
+ var NavButtonContainer = newStyled.div(templateObject_8$5 || (templateObject_8$5 = __makeTemplateObject(["\n height: 40px;\n width: 40px;\n"], ["\n height: 40px;\n width: 40px;\n"])));
13915
+ var Button$1 = newStyled.button(templateObject_9$3 || (templateObject_9$3 = __makeTemplateObject(["\n background: transparent;\n border: none;\n padding: 0.188rem 0.625rem;\n z-index: 5;\n height: 40px !important;\n cursor: pointer;\n"], ["\n background: transparent;\n border: none;\n padding: 0.188rem 0.625rem;\n z-index: 5;\n height: 40px !important;\n cursor: pointer;\n"])));
13916
13916
  var settings = {
13917
13917
  dots: true,
13918
13918
  infinite: false,
@@ -13922,7 +13922,7 @@ var settings = {
13922
13922
  initialSlide: 0,
13923
13923
  };
13924
13924
  var ImageProductWithTags = function (_a) {
13925
- var images = _a.images, _b = _a.customClick, customClick = _b === void 0 ? false : _b, topTag = _a.topTag, bottomTag = _a.bottomTag, testId = _a.testId, borderRadiusVariant = _a.borderRadiusVariant, selectedValue = _a.selectedValue, navArrowBackground = _a.navArrowBackground;
13925
+ var images = _a.images, _b = _a.customClick, customClick = _b === void 0 ? false : _b, topTag = _a.topTag, bottomTag = _a.bottomTag, testId = _a.testId, borderRadiusVariant = _a.borderRadiusVariant, selectedValue = _a.selectedValue;
13926
13926
  var slick = React$2.useRef(null);
13927
13927
  var sliderWrapper = React$2.useRef(null);
13928
13928
  var iframeRef = React$2.useRef(null);
@@ -13963,7 +13963,7 @@ var ImageProductWithTags = function (_a) {
13963
13963
  // If autoplay is true and iframe is the active slide, play the video
13964
13964
  var autoplay = (_a = activeSlide === null || activeSlide === void 0 ? void 0 : activeSlide.imageUrl) === null || _a === void 0 ? void 0 : _a.includes('autoplay=1');
13965
13965
  autoplay ? _playVideo() : _stopVideo();
13966
- } }, settings, { nextArrow: jsxRuntime.jsx(NavButtonContainer, __assign$1({ navArrowBackground: navArrowBackground }, { children: jsxRuntime.jsx(Button$1, { children: jsxRuntime.jsx(Icon.Arrows.ChevronRight, { height: 2.125, width: 1.25, fill: "#292929", opacity: 0.5 }, void 0) }, void 0) }), void 0), prevArrow: jsxRuntime.jsx(NavButtonContainer, __assign$1({ navArrowBackground: navArrowBackground }, { children: jsxRuntime.jsx(Button$1, { children: jsxRuntime.jsx(Icon.Arrows.ChevronLeft, { height: 2.125, width: 1.25, fill: "#292929", opacity: 0.5 }, void 0) }, void 0) }), void 0), ref: slick }, { children: images.map(function (image) {
13966
+ } }, settings, { nextArrow: jsxRuntime.jsx(NavButtonContainer, { children: jsxRuntime.jsx(Button$1, { children: jsxRuntime.jsx(Icon.Arrows.ChevronRight, { height: 2.125, width: 1.25, fill: "#292929" }, void 0) }, void 0) }, void 0), prevArrow: jsxRuntime.jsx(NavButtonContainer, { children: jsxRuntime.jsx(Button$1, { children: jsxRuntime.jsx(Icon.Arrows.ChevronLeft, { height: 2.125, width: 1.25, fill: "#292929" }, void 0) }, void 0) }, void 0), ref: slick }, { children: images.map(function (image) {
13967
13967
  var _a, _b;
13968
13968
  return (jsxRuntime.jsxs("div", { children: [!((_a = image === null || image === void 0 ? void 0 : image.alt) === null || _a === void 0 ? void 0 : _a.includes('-video')) && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(InnerImageZoom, { src: image.imageUrl, zoomSrc: image.imageUrl, zoomType: "hover", imgAttributes: { alt: image.alt, width: '100%', height: '510px' }, height: 510, fullscreenOnMobile: true, className: "zoomWrapper" }, void 0), jsxRuntime.jsx(TopTagContainer$1, __assign$1({ borderRadiusVariant: borderRadiusVariant, "data-testid": "topTag" }, { children: topTag }), void 0), jsxRuntime.jsx(BottomTagContainer$1, __assign$1({ "data-testid": "bottomTag" }, { children: bottomTag }), void 0)] }, void 0)), ((_b = image === null || image === void 0 ? void 0 : image.alt) === null || _b === void 0 ? void 0 : _b.includes('-video')) && (jsxRuntime.jsxs(Video, { children: [jsxRuntime.jsx("iframe", { id: "vwo-video", ref: iframeRef, allowFullScreen: true, title: image.alt, width: "100%", height: "220px", src: image === null || image === void 0 ? void 0 : image.imageUrl, allow: "accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" }, void 0), jsxRuntime.jsx(VideoOverlay$1, { onClick: function () {
13969
13969
  isPlaying ? _stopVideo() : _playVideo();
@@ -14009,8 +14009,8 @@ var templateObject_1$w, templateObject_2$l, templateObject_3$k, templateObject_4
14009
14009
 
14010
14010
  var Container$n = newStyled.div(templateObject_1$v || (templateObject_1$v = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n height: fit-content;\n position: relative;\n max-width: 450px;\n"], ["\n display: flex;\n flex-direction: column;\n height: fit-content;\n position: relative;\n max-width: 450px;\n"])));
14011
14011
  var ProductGalleryMobile = function (_a) {
14012
- var images = _a.images, customClick = _a.customClick, topTag = _a.topTag, bottomTag = _a.bottomTag, productImageDataTestId = _a.productImageDataTestId, _b = _a.borderRadiusVariant, borderRadiusVariant = _b === void 0 ? false : _b, selectedValue = _a.selectedValue, _c = _a.navArrowBackground, navArrowBackground = _c === void 0 ? false : _c;
14013
- return (jsxRuntime.jsx(Container$n, { children: jsxRuntime.jsx(ImageProductWithTags, { images: images, customClick: customClick, topTag: topTag, bottomTag: bottomTag, testId: productImageDataTestId, borderRadiusVariant: borderRadiusVariant, selectedValue: selectedValue, navArrowBackground: navArrowBackground }, void 0) }, void 0));
14012
+ var images = _a.images, customClick = _a.customClick, topTag = _a.topTag, bottomTag = _a.bottomTag, productImageDataTestId = _a.productImageDataTestId, _b = _a.borderRadiusVariant, borderRadiusVariant = _b === void 0 ? false : _b, selectedValue = _a.selectedValue;
14013
+ return (jsxRuntime.jsx(Container$n, { children: jsxRuntime.jsx(ImageProductWithTags, { images: images, customClick: customClick, topTag: topTag, bottomTag: bottomTag, testId: productImageDataTestId, borderRadiusVariant: borderRadiusVariant, selectedValue: selectedValue }, void 0) }, void 0));
14014
14014
  };
14015
14015
  var templateObject_1$v;
14016
14016
 
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Trafilea's Design System",
4
4
  "author": "Trafilea",
5
5
  "repository": "https://github.com/trafilea/afrodita-components",
6
- "version": "5.0.0-beta.272",
6
+ "version": "5.0.0-beta.274",
7
7
  "private": false,
8
8
  "main": "build/index.js",
9
9
  "style": "build/index.css",