@trafilea/afrodita-components 5.0.0-beta.92 → 5.0.0-beta.93

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
@@ -734,11 +734,12 @@ interface PriceLabelProps {
734
734
  finalPriceStyled?: boolean;
735
735
  finalPriceStyle?: React.CSSProperties;
736
736
  originalPriceStyled?: boolean;
737
+ originalPriceUnderlined?: boolean;
737
738
  testId?: string;
738
739
  }
739
- declare const PriceLabel: ({ finalPrice, originalPrice, discount, color, testId, finalPriceStyled, finalPriceStyle, originalPriceStyled, size, }: PriceLabelProps) => JSX.Element;
740
+ declare const PriceLabel: ({ finalPrice, originalPrice, discount, color, testId, finalPriceStyled, finalPriceStyle, originalPriceStyled, originalPriceUnderlined, size, }: PriceLabelProps) => JSX.Element;
740
741
 
741
- declare const PriceLabelV2: ({ finalPrice, originalPrice, discount, color, testId, originalPriceStyled, size, }: PriceLabelProps) => JSX.Element;
742
+ declare const PriceLabelV2: ({ finalPrice, originalPrice, discount, color, testId, originalPriceStyled, originalPriceUnderlined, size, }: PriceLabelProps) => JSX.Element;
742
743
 
743
744
  interface ColorPickerProps {
744
745
  options: ColorPickerOption[];
@@ -765,8 +766,9 @@ interface ProductGalleryProps {
765
766
  productImageDataTestId?: string;
766
767
  previewListDataTestId?: string;
767
768
  thumbnailPosition?: 'vertical' | 'horizontal';
769
+ borderRadiusVariant?: boolean;
768
770
  }
769
- declare const ProductGallery: ({ images, selectedValue, topTag, bottomTag, productImageDataTestId, previewListDataTestId, thumbnailPosition, }: ProductGalleryProps) => JSX.Element;
771
+ declare const ProductGallery: ({ images, selectedValue, topTag, bottomTag, productImageDataTestId, previewListDataTestId, thumbnailPosition, borderRadiusVariant, }: ProductGalleryProps) => JSX.Element;
770
772
 
771
773
  interface RatingProps {
772
774
  rating: number;
@@ -1314,16 +1316,18 @@ interface CategoryTagProps {
1314
1316
  text: string;
1315
1317
  size: ComponentSize.Large | ComponentSize.Medium | ComponentSize.Small;
1316
1318
  className?: string;
1319
+ styledBorder?: boolean;
1317
1320
  }
1318
- declare const CategoryTag: ({ text, size, className }: CategoryTagProps) => _emotion_react_jsx_runtime.JSX.Element;
1321
+ declare const CategoryTag: ({ text, size, className, styledBorder }: CategoryTagProps) => _emotion_react_jsx_runtime.JSX.Element;
1319
1322
 
1320
1323
  interface SeasonOfferTagProps {
1321
1324
  text: string;
1322
1325
  backgroundColor?: string;
1323
1326
  size: ComponentSize.Large | ComponentSize.Medium | ComponentSize.Small;
1324
1327
  className?: string;
1328
+ styledBorder?: boolean;
1325
1329
  }
1326
- declare const SeasonOfferTag: ({ text, backgroundColor, size, className, }: SeasonOfferTagProps) => _emotion_react_jsx_runtime.JSX.Element;
1330
+ declare const SeasonOfferTag: ({ text, backgroundColor, size, className, styledBorder, }: SeasonOfferTagProps) => _emotion_react_jsx_runtime.JSX.Element;
1327
1331
 
1328
1332
  interface TimeProps {
1329
1333
  hours: number;
@@ -1823,8 +1827,9 @@ interface ProductGalleryMobileProps {
1823
1827
  bottomTag?: JSX.Element;
1824
1828
  productImageDataTestId?: string;
1825
1829
  slideDotsDataTestId?: string;
1830
+ borderRadiusVariant?: boolean;
1826
1831
  }
1827
- declare const ProductGalleryMobile: ({ images, selectedValue, topTag, bottomTag, productImageDataTestId, slideDotsDataTestId, }: ProductGalleryMobileProps) => JSX.Element;
1832
+ declare const ProductGalleryMobile: ({ images, selectedValue, topTag, bottomTag, productImageDataTestId, slideDotsDataTestId, borderRadiusVariant, }: ProductGalleryMobileProps) => JSX.Element;
1828
1833
 
1829
1834
  interface RadioProps {
1830
1835
  name: string;
@@ -4642,14 +4642,14 @@ function getTestId() {
4642
4642
  return args.filter(Boolean).join('-');
4643
4643
  }
4644
4644
  var PriceLabel = function (_a) {
4645
- var finalPrice = _a.finalPrice, originalPrice = _a.originalPrice, discount = _a.discount, color = _a.color, testId = _a.testId, _b = _a.finalPriceStyled, finalPriceStyled = _b === void 0 ? false : _b, finalPriceStyle = _a.finalPriceStyle, _c = _a.originalPriceStyled, originalPriceStyled = _c === void 0 ? false : _c, _d = _a.size, size = _d === void 0 ? ComponentSize.Medium : _d;
4645
+ var finalPrice = _a.finalPrice, originalPrice = _a.originalPrice, discount = _a.discount, color = _a.color, testId = _a.testId, _b = _a.finalPriceStyled, finalPriceStyled = _b === void 0 ? false : _b, finalPriceStyle = _a.finalPriceStyle, _c = _a.originalPriceStyled, originalPriceStyled = _c === void 0 ? false : _c, _d = _a.originalPriceUnderlined, originalPriceUnderlined = _d === void 0 ? true : _d, _e = _a.size, size = _e === void 0 ? ComponentSize.Medium : _e;
4646
4646
  var theme = useTheme();
4647
4647
  var priceCommonProps = {
4648
4648
  size: finalPriceStyled ? ComponentSize.Small : size,
4649
4649
  color: color || theme.colors.pallete.secondary.color,
4650
4650
  weight: 700,
4651
4651
  };
4652
- var OriginalPrice = function () { return (jsx$1(Price, __assign$1({ size: originalPriceStyled ? size : ComponentSize.Small, color: theme.colors.shades['300'].color, margin: true, underlined: true, "data-testid": getTestId(testId, 'original-product-price') }, { children: originalPrice }), void 0)); };
4652
+ var OriginalPrice = function () { return (jsx$1(Price, __assign$1({ size: originalPriceStyled ? size : ComponentSize.Small, color: theme.colors.shades['300'].color, margin: true, underlined: originalPriceUnderlined, "data-testid": getTestId(testId, 'original-product-price') }, { children: originalPrice }), void 0)); };
4653
4653
  return (jsxs$1(Container$H, { children: [jsx$1(Price, __assign$1({ margin: true, "data-testid": getTestId(testId, 'final-product-price') }, priceCommonProps, { style: finalPriceStyle }, { children: finalPrice }), void 0), originalPrice && jsx$1(OriginalPrice, {}, void 0), discount && (jsx$1(TagContainer, __assign$1({ size: size }, { children: jsx$1(DiscountTag, __assign$1({}, discount, { size: size }), void 0) }), void 0))] }, void 0));
4654
4654
  };
4655
4655
  var templateObject_1$15, templateObject_2$H, templateObject_3$v;
@@ -4657,7 +4657,7 @@ var templateObject_1$15, templateObject_2$H, templateObject_3$v;
4657
4657
  var FinalPriceStyledContainer = newStyled.div(templateObject_1$14 || (templateObject_1$14 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
4658
4658
  var PriceLabelV2 = function (_a) {
4659
4659
  var _b;
4660
- var finalPrice = _a.finalPrice, originalPrice = _a.originalPrice, discount = _a.discount, color = _a.color, testId = _a.testId, _c = _a.originalPriceStyled, originalPriceStyled = _c === void 0 ? false : _c, _d = _a.size, size = _d === void 0 ? ComponentSize.Medium : _d;
4660
+ var finalPrice = _a.finalPrice, originalPrice = _a.originalPrice, discount = _a.discount, color = _a.color, testId = _a.testId, _c = _a.originalPriceStyled, originalPriceStyled = _c === void 0 ? false : _c, _d = _a.originalPriceUnderlined, originalPriceUnderlined = _d === void 0 ? true : _d, _e = _a.size, size = _e === void 0 ? ComponentSize.Medium : _e;
4661
4661
  var theme = useTheme();
4662
4662
  var isDiffFinalAndOriginalPrice = originalPrice !== finalPrice;
4663
4663
  var isOriginalPrice = originalPrice && isDiffFinalAndOriginalPrice;
@@ -4670,7 +4670,7 @@ var PriceLabelV2 = function (_a) {
4670
4670
  color: color || theme.colors.pallete.secondary.color,
4671
4671
  weight: 700,
4672
4672
  };
4673
- var OriginalPrice = function () { return (jsx$1(Price, __assign$1({ size: originalPriceStyled ? size : ComponentSize.Small, color: theme.colors.shades['300'].color, margin: true, underlined: true, "data-testid": getTestId(testId, 'original-product-price') }, { children: originalPrice }), void 0)); };
4673
+ var OriginalPrice = function () { return (jsx$1(Price, __assign$1({ size: originalPriceStyled ? size : ComponentSize.Small, color: theme.colors.shades['300'].color, margin: true, underlined: originalPriceUnderlined, "data-testid": getTestId(testId, 'original-product-price') }, { children: originalPrice }), void 0)); };
4674
4674
  return (jsxs$1(Container$H, { children: [isOriginalPrice && jsx$1(OriginalPrice, {}, void 0), jsxs$1(FinalPriceStyledContainer, __assign$1({ "data-testid": getTestId(testId, 'final-product-price') }, { children: [jsx$1(Price, __assign$1({ margin: true, finalPriceStyledSmall: true, style: { fontSize: '14px', marginTop: '-5px' } }, priceCommonProps, { children: "$" }), void 0), jsx$1(Price, __assign$1({ finalPriceStyled: true }, priceCommonProps, { children: finalPriceArray[0] ? finalPriceArray[0] : (_b = "".concat(finalPrice)) === null || _b === void 0 ? void 0 : _b.split('$')[1] }), void 0), jsx$1(Price, __assign$1({ finalPriceStyledSmall: true, style: { fontSize: '14px', marginTop: '-6px' } }, priceCommonProps, { children: finalPriceArray[1] ? finalPriceArray[1] : '00' }), void 0)] }), void 0), isDiscount && (jsx$1(TagContainer, __assign$1({ size: ComponentSize.Small }, { children: discount && (jsx$1(DiscountTag, __assign$1({}, discount, { size: ComponentSize.Medium, style: { fontSize: '14px', letterSpacing: '-0.05rem' } }), void 0)) }), void 0))] }, void 0));
4675
4675
  };
4676
4676
  var templateObject_1$14;
@@ -4807,14 +4807,18 @@ var MultiColorPicker = function (_a) {
4807
4807
  return (jsxs$1(ColorRadioGroup$1, __assign$1({ value: selectedColor, onChange: onChangeHandler }, { children: [jsx$1(ColorRadioGroup$1.Label, { label: label, values: valueLabels }, void 0), jsx$1(ColorRadioGroup$1.OptionsContainer, { children: renderOptions(selectedColor, options) }, void 0)] }), void 0));
4808
4808
  };
4809
4809
 
4810
- var Image$2 = newStyled.img(templateObject_1$11 || (templateObject_1$11 = __makeTemplateObject(["\n width: 4.063rem;\n height: 5.375rem;\n box-sizing: border-box;\n cursor: pointer;\n border: ", ";\n"], ["\n width: 4.063rem;\n height: 5.375rem;\n box-sizing: border-box;\n cursor: pointer;\n border: ", ";\n"])), function (_a) {
4810
+ var Image$2 = newStyled.img(templateObject_1$11 || (templateObject_1$11 = __makeTemplateObject(["\n ", "\n\n width: 4.063rem;\n height: 5.375rem;\n box-sizing: border-box;\n cursor: pointer;\n border: ", ";\n"], ["\n ", "\n\n width: 4.063rem;\n height: 5.375rem;\n box-sizing: border-box;\n cursor: pointer;\n border: ", ";\n"])), function (_a) {
4811
+ var borderRadiusVariant = _a.borderRadiusVariant;
4812
+ return borderRadiusVariant &&
4813
+ "\nborder-radius: 20px;\n";
4814
+ }, function (_a) {
4811
4815
  var selected = _a.selected, theme = _a.theme;
4812
4816
  return selected ? "0.063rem solid ".concat(theme.colors.shades['700'].color) : 'inherit';
4813
4817
  });
4814
4818
  var ImageSmallPreview = function (_a) {
4815
- var imageUrl = _a.imageUrl, alt = _a.alt, _b = _a.selected, selected = _b === void 0 ? false : _b, className = _a.className;
4819
+ var imageUrl = _a.imageUrl, alt = _a.alt, _b = _a.selected, selected = _b === void 0 ? false : _b, className = _a.className, borderRadiusVariant = _a.borderRadiusVariant;
4816
4820
  var theme = useTheme();
4817
- return jsx$1(Image$2, { className: className, src: imageUrl, alt: alt, selected: selected, theme: theme }, void 0);
4821
+ return (jsx$1(Image$2, { className: className, src: imageUrl, alt: alt, selected: selected, theme: theme, borderRadiusVariant: borderRadiusVariant }, void 0));
4818
4822
  };
4819
4823
  var templateObject_1$11;
4820
4824
 
@@ -9133,12 +9137,12 @@ var Container$F = newStyled.div(templateObject_3$t || (templateObject_3$t = __ma
9133
9137
  });
9134
9138
  var Button$3 = newStyled.button(templateObject_4$l || (templateObject_4$l = __makeTemplateObject(["\n padding: 0;\n border: none;\n text-decoration: none;\n background: transparent;\n outline: none;\n"], ["\n padding: 0;\n border: none;\n text-decoration: none;\n background: transparent;\n outline: none;\n"])));
9135
9139
  var ImagePreviewList = function (_a) {
9136
- var images = _a.images, selectedImage = _a.selectedImage, onClick = _a.onClick, dataTestId = _a.dataTestId, position = _a.position;
9140
+ var images = _a.images, selectedImage = _a.selectedImage, onClick = _a.onClick, dataTestId = _a.dataTestId, position = _a.position, borderRadiusVariant = _a.borderRadiusVariant;
9137
9141
  return (jsx$1(Container$F, __assign$1({ "data-testid": dataTestId, position: position, className: position }, { children: position == 'horizontal' ? (jsx$1("div", __assign$1({ style: { maxWidth: '360px' } }, { children: jsx$1(SliderNavigation, __assign$1({ speed: 200, infinite: false, arrows: {
9138
9142
  arrowWidth: 0.75,
9139
9143
  arrowHeight: 1.25,
9140
9144
  arrowPadding: 1.625,
9141
- }, adaptiveHeight: true, dots: false, slidesToShow: 4 }, { children: images.map(function (item) { return (jsx$1(Button$3, __assign$1({ onClick: function () { return onClick(item); } }, { children: jsx$1(ImageSmallPreview, { imageUrl: item.imageUrl, alt: item.alt, selected: item.key === selectedImage.key }, void 0) }), item.key)); }) }), void 0) }), void 0)) : (images.map(function (item) { return (jsx$1(Button$3, __assign$1({ onClick: function () { return onClick(item); } }, { children: jsx$1(ImageSmallPreview, { imageUrl: item.imageUrl, alt: item.alt, selected: item.key === selectedImage.key }, void 0) }), item.key)); })) }), void 0));
9145
+ }, adaptiveHeight: true, dots: false, slidesToShow: 4 }, { children: images.map(function (item) { return (jsx$1(Button$3, __assign$1({ onClick: function () { return onClick(item); } }, { children: jsx$1(ImageSmallPreview, { imageUrl: item.imageUrl, alt: item.alt, selected: item.key === selectedImage.key, borderRadiusVariant: borderRadiusVariant }, void 0) }), item.key)); }) }), void 0) }), void 0)) : (images.map(function (item) { return (jsx$1(Button$3, __assign$1({ onClick: function () { return onClick(item); } }, { children: jsx$1(ImageSmallPreview, { imageUrl: item.imageUrl, alt: item.alt, selected: item.key === selectedImage.key, borderRadiusVariant: borderRadiusVariant }, void 0) }), item.key)); })) }), void 0));
9142
9146
  };
9143
9147
  var templateObject_1$$, templateObject_2$E, templateObject_3$t, templateObject_4$l;
9144
9148
 
@@ -10726,29 +10730,33 @@ InnerImageZoom.propTypes = process.env.NODE_ENV !== "production" ? {
10726
10730
  afterZoomOut: PropTypes.func
10727
10731
  } : {};
10728
10732
 
10729
- var Container$E = newStyled.div(templateObject_1$_ || (templateObject_1$_ = __makeTemplateObject(["\n position: relative;\n height: '45rem' &.styleforhorizontal {\n height: '30rem';\n }\n display: block;\n height: fit-content;\n overflow: hidden;\n white-space: nowrap;\n grid-area: 1/2;\n"], ["\n position: relative;\n height: '45rem' &.styleforhorizontal {\n height: '30rem';\n }\n display: block;\n height: fit-content;\n overflow: hidden;\n white-space: nowrap;\n grid-area: 1/2;\n"])));
10730
- var TopTagContainer$2 = newStyled.div(templateObject_2$D || (templateObject_2$D = __makeTemplateObject(["\n position: absolute;\n left: 0;\n top: 0;\n"], ["\n position: absolute;\n left: 0;\n top: 0;\n"])));
10733
+ var Container$E = newStyled.div(templateObject_1$_ || (templateObject_1$_ = __makeTemplateObject(["\n ", "\n position: relative;\n height: '45rem' &.styleforhorizontal {\n height: '30rem';\n }\n display: block;\n height: fit-content;\n overflow: hidden;\n white-space: nowrap;\n grid-area: 1/2;\n"], ["\n ", "\n position: relative;\n height: '45rem' &.styleforhorizontal {\n height: '30rem';\n }\n display: block;\n height: fit-content;\n overflow: hidden;\n white-space: nowrap;\n grid-area: 1/2;\n"])), function (_a) {
10734
+ var borderRadiusVariant = _a.borderRadiusVariant;
10735
+ return borderRadiusVariant &&
10736
+ "\n border-radius: 40px;\n ";
10737
+ });
10738
+ var TopTagContainer$2 = newStyled.div(templateObject_2$D || (templateObject_2$D = __makeTemplateObject(["\n position: absolute;\n left: ", ";\n top: ", ";\n"], ["\n position: absolute;\n left: ", ";\n top: ", ";\n"])), function (props) { return (props.borderRadiusVariant ? '50px' : '0'); }, function (props) { return (props.borderRadiusVariant ? '10px' : '0'); });
10731
10739
  var BottomTagContainer$2 = newStyled.div(templateObject_3$s || (templateObject_3$s = __makeTemplateObject(["\n position: absolute;\n bottom: 3.75rem;\n left: 0;\n"], ["\n position: absolute;\n bottom: 3.75rem;\n left: 0;\n"])));
10732
10740
  var ImageProductWithTags$1 = function (_a) {
10733
- var image = _a.image, topTag = _a.topTag, bottomTag = _a.bottomTag, testId = _a.testId, position = _a.position;
10734
- return (jsxs$1(Container$E, __assign$1({ "data-testid": testId, className: "stylefor".concat(position) }, { children: [jsx$1(InnerImageZoom, { src: image.imageUrl, zoomSrc: image.imageUrl, zoomType: "hover", imgAttributes: {
10741
+ var image = _a.image, topTag = _a.topTag, bottomTag = _a.bottomTag, testId = _a.testId, position = _a.position, borderRadiusVariant = _a.borderRadiusVariant;
10742
+ return (jsxs$1(Container$E, __assign$1({ "data-testid": testId, className: "stylefor".concat(position), borderRadiusVariant: borderRadiusVariant }, { children: [jsx$1(InnerImageZoom, { src: image.imageUrl, zoomSrc: image.imageUrl, zoomType: "hover", imgAttributes: {
10735
10743
  alt: image.alt,
10736
10744
  style: { objectFit: 'cover', objectPosition: 'center' },
10737
- }, width: position == 'horizontal' ? 360 : 530, height: position == 'horizontal' ? 480 : 720, hideHint: true }, void 0), jsx$1(TopTagContainer$2, { children: topTag }, void 0), jsx$1(BottomTagContainer$2, { children: bottomTag }, void 0)] }), void 0));
10745
+ }, width: position == 'horizontal' ? 360 : 530, height: position == 'horizontal' ? 480 : 720, hideHint: true }, void 0), jsx$1(TopTagContainer$2, __assign$1({ borderRadiusVariant: borderRadiusVariant }, { children: topTag }), void 0), jsx$1(BottomTagContainer$2, { children: bottomTag }, void 0)] }), void 0));
10738
10746
  };
10739
10747
  var templateObject_1$_, templateObject_2$D, templateObject_3$s;
10740
10748
 
10741
10749
  var Container$D = newStyled.div(templateObject_1$Z || (templateObject_1$Z = __makeTemplateObject(["\n display: grid;\n grid-template-columns: max-content 1fr;\n grid-column-gap: 20px;\n max-height: 45rem;\n width: fit-content;\n"], ["\n display: grid;\n grid-template-columns: max-content 1fr;\n grid-column-gap: 20px;\n max-height: 45rem;\n width: fit-content;\n"])));
10742
10750
  var ProductGallery = function (_a) {
10743
- var images = _a.images, selectedValue = _a.selectedValue, topTag = _a.topTag, bottomTag = _a.bottomTag, productImageDataTestId = _a.productImageDataTestId, previewListDataTestId = _a.previewListDataTestId, thumbnailPosition = _a.thumbnailPosition;
10751
+ var images = _a.images, selectedValue = _a.selectedValue, topTag = _a.topTag, bottomTag = _a.bottomTag, productImageDataTestId = _a.productImageDataTestId, previewListDataTestId = _a.previewListDataTestId, thumbnailPosition = _a.thumbnailPosition, _b = _a.borderRadiusVariant, borderRadiusVariant = _b === void 0 ? false : _b;
10744
10752
  var initialValue = selectedValue && images.includes(selectedValue) ? selectedValue : images[0];
10745
- var _b = useState(initialValue), selectedImage = _b[0], setSelectedImage = _b[1];
10753
+ var _c = useState(initialValue), selectedImage = _c[0], setSelectedImage = _c[1];
10746
10754
  useEffect(function () {
10747
10755
  setSelectedImage(initialValue);
10748
10756
  }, [initialValue]);
10749
10757
  return (jsxs$1(Container$D, { children: [jsx$1(ImagePreviewList, { images: images, selectedImage: selectedImage, dataTestId: previewListDataTestId, onClick: function (value) {
10750
10758
  setSelectedImage(value);
10751
- }, position: thumbnailPosition }, void 0), jsx$1(ImageProductWithTags$1, { image: selectedImage, topTag: topTag, bottomTag: bottomTag, testId: productImageDataTestId, position: thumbnailPosition }, void 0)] }, void 0));
10759
+ }, position: thumbnailPosition, borderRadiusVariant: borderRadiusVariant }, void 0), jsx$1(ImageProductWithTags$1, { image: selectedImage, topTag: topTag, bottomTag: bottomTag, testId: productImageDataTestId, position: thumbnailPosition, borderRadiusVariant: borderRadiusVariant }, void 0)] }, void 0));
10752
10760
  };
10753
10761
  var templateObject_1$Z;
10754
10762
 
@@ -11372,12 +11380,12 @@ var Tag$1 = function (_a) {
11372
11380
  };
11373
11381
  var templateObject_1$P;
11374
11382
 
11375
- var getStylesBySize$2 = function (size) {
11383
+ var getStylesBySize$2 = function (size, styledBorder) {
11376
11384
  switch (size) {
11377
11385
  case ComponentSize.Large:
11378
11386
  return {
11379
11387
  padding: '0.125rem 1.25rem 0 1.25rem',
11380
- borderRadius: '0 0.25rem 0.25rem 0',
11388
+ borderRadius: styledBorder ? '20px' : '0 0.25rem 0.25rem 0',
11381
11389
  fontSize: '0.875rem',
11382
11390
  lineHeight: '0.875rem',
11383
11391
  height: '1.5rem',
@@ -11385,7 +11393,7 @@ var getStylesBySize$2 = function (size) {
11385
11393
  case ComponentSize.Medium:
11386
11394
  return {
11387
11395
  padding: '0.063rem 0.625rem',
11388
- borderRadius: '0 0.25rem 0.25rem 0',
11396
+ borderRadius: styledBorder ? '20px' : '0 0.25rem 0.25rem 0',
11389
11397
  fontSize: '0.625rem',
11390
11398
  lineHeight: '0.625rem',
11391
11399
  height: '1rem',
@@ -11393,7 +11401,7 @@ var getStylesBySize$2 = function (size) {
11393
11401
  case ComponentSize.Small:
11394
11402
  return {
11395
11403
  padding: '0.125rem 0.625rem',
11396
- borderRadius: '0 0.125em 0.125rem 0',
11404
+ borderRadius: styledBorder ? '20px' : '0 0.125em 0.125rem 0',
11397
11405
  fontSize: '0.5rem',
11398
11406
  lineHeight: '0.75rem',
11399
11407
  height: '0.875rem',
@@ -11401,18 +11409,18 @@ var getStylesBySize$2 = function (size) {
11401
11409
  }
11402
11410
  };
11403
11411
  var CategoryTag = function (_a) {
11404
- var text = _a.text, size = _a.size, className = _a.className;
11412
+ var text = _a.text, size = _a.size, className = _a.className, _b = _a.styledBorder, styledBorder = _b === void 0 ? false : _b;
11405
11413
  var theme = useTheme();
11406
- var stylesBySize = getStylesBySize$2(size);
11414
+ var stylesBySize = getStylesBySize$2(size, styledBorder);
11407
11415
  return (jsx(Tag$1, { css: __assign$1({ backgroundColor: theme.colors.shades.white.color, fontWeight: 600, color: theme.colors.shades['700'].color }, stylesBySize), text: text, className: className }, void 0));
11408
11416
  };
11409
11417
 
11410
- var getStylesBySize$1 = function (size) {
11418
+ var getStylesBySize$1 = function (size, styledBorder) {
11411
11419
  switch (size) {
11412
11420
  case ComponentSize.Large:
11413
11421
  return {
11414
11422
  padding: '0.5rem 1rem',
11415
- borderRadius: '0 0 0.25rem 0',
11423
+ borderRadius: styledBorder ? '20px' : '0 0 0.25rem 0',
11416
11424
  fontSize: '0.75rem',
11417
11425
  lineHeight: '1rem',
11418
11426
  letterSpacing: '0.16em',
@@ -11420,7 +11428,7 @@ var getStylesBySize$1 = function (size) {
11420
11428
  case ComponentSize.Medium:
11421
11429
  return {
11422
11430
  padding: '0.375rem 0.625rem 0.25rem',
11423
- borderRadius: '0 0 0.25rem 0',
11431
+ borderRadius: styledBorder ? '20px' : '0 0 0.25rem 0',
11424
11432
  fontSize: '0.625rem',
11425
11433
  lineHeight: '0.875rem',
11426
11434
  letterSpacing: '0.16em',
@@ -11428,7 +11436,7 @@ var getStylesBySize$1 = function (size) {
11428
11436
  case ComponentSize.Small:
11429
11437
  return {
11430
11438
  padding: '0.125rem 0.5rem',
11431
- borderRadius: '0 0 0.25rem 0',
11439
+ borderRadius: styledBorder ? '20px' : '0 0 0.25rem 0',
11432
11440
  fontSize: '0.5rem',
11433
11441
  lineHeight: '0.875rem',
11434
11442
  letterSpacing: '0.16em',
@@ -11436,8 +11444,8 @@ var getStylesBySize$1 = function (size) {
11436
11444
  }
11437
11445
  };
11438
11446
  var SeasonOfferTag = function (_a) {
11439
- var text = _a.text, _b = _a.backgroundColor, backgroundColor = _b === void 0 ? '#C64844' : _b, size = _a.size, className = _a.className;
11440
- var stylesBySize = getStylesBySize$1(size);
11447
+ var text = _a.text, _b = _a.backgroundColor, backgroundColor = _b === void 0 ? '#C64844' : _b, size = _a.size, className = _a.className, _c = _a.styledBorder, styledBorder = _c === void 0 ? false : _c;
11448
+ var stylesBySize = getStylesBySize$1(size, styledBorder);
11441
11449
  return (jsx(Tag$1, { css: __assign$1({ backgroundColor: backgroundColor, fontWeight: 700, color: '#FFFFFF' }, stylesBySize), text: text, className: className }, void 0));
11442
11450
  };
11443
11451
 
@@ -12872,12 +12880,16 @@ function useSwipeable(options) {
12872
12880
  return handlers;
12873
12881
  }
12874
12882
 
12875
- var Container$b = newStyled.div(templateObject_1$j || (templateObject_1$j = __makeTemplateObject(["\n position: relative;\n max-height: 31.875rem;\n overflow: hidden;\n"], ["\n position: relative;\n max-height: 31.875rem;\n overflow: hidden;\n"])));
12876
- var TopTagContainer = newStyled.div(templateObject_2$a || (templateObject_2$a = __makeTemplateObject(["\n position: absolute;\n left: 0;\n top: 0;\n"], ["\n position: absolute;\n left: 0;\n top: 0;\n"])));
12883
+ var Container$b = newStyled.div(templateObject_1$j || (templateObject_1$j = __makeTemplateObject(["\n ", "\n position: relative;\n max-height: 31.875rem;\n overflow: hidden;\n"], ["\n ", "\n position: relative;\n max-height: 31.875rem;\n overflow: hidden;\n"])), function (_a) {
12884
+ var borderRadiusVariant = _a.borderRadiusVariant;
12885
+ return borderRadiusVariant &&
12886
+ "\n border-radius: 40px;\n ";
12887
+ });
12888
+ var TopTagContainer = newStyled.div(templateObject_2$a || (templateObject_2$a = __makeTemplateObject(["\n position: absolute;\n left: ", ";\n top: ", ";\n"], ["\n position: absolute;\n left: ", ";\n top: ", ";\n"])), function (props) { return (props.borderRadiusVariant ? '13px' : '0'); }, function (props) { return (props.borderRadiusVariant ? '11px' : '0'); });
12877
12889
  var BottomTagContainer = newStyled.div(templateObject_3$a || (templateObject_3$a = __makeTemplateObject(["\n position: absolute;\n bottom: 3.75rem;\n left: 0;\n"], ["\n position: absolute;\n bottom: 3.75rem;\n left: 0;\n"])));
12878
12890
  var ImageProductWithTags = forwardRef(function ImageProductWithTags(_a, ref) {
12879
- var image = _a.image, topTag = _a.topTag, bottomTag = _a.bottomTag, testId = _a.testId;
12880
- return (jsxs$1(Container$b, __assign$1({ "data-testid": testId, ref: ref }, { 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, { children: topTag }, void 0), jsx$1(BottomTagContainer, { children: bottomTag }, void 0)] }), void 0));
12891
+ var image = _a.image, topTag = _a.topTag, bottomTag = _a.bottomTag, testId = _a.testId, borderRadiusVariant = _a.borderRadiusVariant;
12892
+ return (jsxs$1(Container$b, __assign$1({ "data-testid": testId, ref: ref, borderRadiusVariant: borderRadiusVariant }, { 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, __assign$1({ borderRadiusVariant: borderRadiusVariant }, { children: topTag }), void 0), jsx$1(BottomTagContainer, { children: bottomTag }, void 0)] }), void 0));
12881
12893
  });
12882
12894
  var templateObject_1$j, templateObject_2$a, templateObject_3$a;
12883
12895
 
@@ -12917,15 +12929,15 @@ var templateObject_1$g, templateObject_2$9, templateObject_3$9;
12917
12929
 
12918
12930
  var Container$9 = newStyled.div(templateObject_1$f || (templateObject_1$f = __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"])));
12919
12931
  var ProductGalleryMobile = function (_a) {
12920
- var images = _a.images, selectedValue = _a.selectedValue, topTag = _a.topTag, bottomTag = _a.bottomTag, productImageDataTestId = _a.productImageDataTestId, slideDotsDataTestId = _a.slideDotsDataTestId;
12921
- var _b = useState(0), index = _b[0], setIndex = _b[1];
12932
+ var images = _a.images, selectedValue = _a.selectedValue, topTag = _a.topTag, bottomTag = _a.bottomTag, productImageDataTestId = _a.productImageDataTestId, slideDotsDataTestId = _a.slideDotsDataTestId, _b = _a.borderRadiusVariant, borderRadiusVariant = _b === void 0 ? false : _b;
12933
+ var _c = useState(0), index = _c[0], setIndex = _c[1];
12922
12934
  useEffect(function () {
12923
12935
  if (selectedValue == null) {
12924
12936
  return;
12925
12937
  }
12926
12938
  setIndex(Math.max(0, images.indexOf(selectedValue)));
12927
12939
  }, [selectedValue, images]);
12928
- var _c = useState(function () { return images[index]; }), selectedImage = _c[0], setSelectedImage = _c[1];
12940
+ var _d = useState(function () { return images[index]; }), selectedImage = _d[0], setSelectedImage = _d[1];
12929
12941
  var handlers = useSwipeable({
12930
12942
  onSwipedLeft: useCallback(function () {
12931
12943
  setIndex(function (index) { return Math.min(index + 1, images.length - 1); });
@@ -12937,7 +12949,7 @@ var ProductGalleryMobile = function (_a) {
12937
12949
  useEffect(function () {
12938
12950
  setSelectedImage(images[index]);
12939
12951
  }, [index, images]);
12940
- return (jsxs$1(Container$9, { children: [jsx$1(ImageProductWithTags, __assign$1({}, handlers, { image: selectedImage, topTag: topTag, bottomTag: bottomTag, testId: productImageDataTestId }), void 0), jsx$1(SlideNavigation, { quantity: images.length, selectedIndex: images.indexOf(selectedImage), onNavigate: setIndex, testId: slideDotsDataTestId }, void 0)] }, void 0));
12952
+ return (jsxs$1(Container$9, { children: [jsx$1(ImageProductWithTags, __assign$1({}, handlers, { image: selectedImage, topTag: topTag, bottomTag: bottomTag, testId: productImageDataTestId, borderRadiusVariant: borderRadiusVariant }), void 0), jsx$1(SlideNavigation, { quantity: images.length, selectedIndex: images.indexOf(selectedImage), onNavigate: setIndex, testId: slideDotsDataTestId }, void 0)] }, void 0));
12941
12953
  };
12942
12954
  var templateObject_1$f;
12943
12955