@trafilea/afrodita-components 5.0.0-beta.133 → 5.0.0-beta.134

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
@@ -4257,7 +4257,7 @@ var BaseButton = function (_a) {
4257
4257
  } }, { children: [renderLeading, children, renderTrailing] }), void 0));
4258
4258
  };
4259
4259
 
4260
- var getStylesBySize$9 = function (size, theme) {
4260
+ var getStylesBySize$a = function (size, theme) {
4261
4261
  switch (size) {
4262
4262
  case exports.ComponentSize.Large:
4263
4263
  return {
@@ -4284,7 +4284,7 @@ var getStylesBySize$9 = function (size, theme) {
4284
4284
  var BaseCTA = function (_a) {
4285
4285
  var text = _a.text, _b = _a.wide, wide = _b === void 0 ? false : _b, _c = _a.size, size = _c === void 0 ? exports.ComponentSize.Medium : _c, props = __rest(_a, ["text", "wide", "size"]);
4286
4286
  var theme = useTheme();
4287
- var stylesBySize = getStylesBySize$9(size, theme);
4287
+ var stylesBySize = getStylesBySize$a(size, theme);
4288
4288
  return (jsx(BaseButton, __assign$1({}, props, { css: __assign$1(__assign$1({ width: wide ? '100%' : 'fit-content' }, stylesBySize), { fontWeight: theme.component.button.fontWeight, borderRadius: "".concat(theme.component.button.borderRadius), cursor: 'pointer', '&:disabled': {
4289
4289
  backgroundColor: theme.colors.background.disabled,
4290
4290
  color: theme.colors.text.disabled,
@@ -4720,7 +4720,7 @@ var DropdownDialog = function (_a) {
4720
4720
  };
4721
4721
  var templateObject_1$1g, templateObject_2$P, templateObject_3$C, templateObject_4$q;
4722
4722
 
4723
- var getStylesBySize$8 = function (size, theme) {
4723
+ var getStylesBySize$9 = function (size, theme) {
4724
4724
  switch (size) {
4725
4725
  case exports.ComponentSize.Medium:
4726
4726
  return {
@@ -4737,7 +4737,7 @@ var getStylesBySize$8 = function (size, theme) {
4737
4737
  var SimpleSelector = function (_a) {
4738
4738
  var text = _a.text, className = _a.className, _b = _a.disabled, disabled = _b === void 0 ? false : _b, _c = _a.size, size = _c === void 0 ? exports.ComponentSize.Medium : _c, _d = _a.active, active = _d === void 0 ? false : _d, _e = _a.testId, testId = _e === void 0 ? 'base-button' : _e, _f = _a.width, width = _f === void 0 ? '' : _f, onClick = _a.onClick;
4739
4739
  var theme = useTheme();
4740
- var stylesBySize = getStylesBySize$8(size, theme);
4740
+ var stylesBySize = getStylesBySize$9(size, theme);
4741
4741
  var activeStyles = active
4742
4742
  ? { fontWeight: theme.component.selector.hover.fontWeight }
4743
4743
  : { fontWeight: theme.component.selector.default.fontWeight };
@@ -4932,7 +4932,7 @@ var SizeSelector = function (_a) {
4932
4932
  };
4933
4933
  var templateObject_1$1e;
4934
4934
 
4935
- var getStylesBySize$7 = function (size) {
4935
+ var getStylesBySize$8 = function (size) {
4936
4936
  switch (size) {
4937
4937
  case exports.ComponentSize.Large:
4938
4938
  case exports.ComponentSize.Medium:
@@ -4950,7 +4950,7 @@ var getStylesBySize$7 = function (size) {
4950
4950
  }
4951
4951
  };
4952
4952
  var textButtonStyles$1 = function (theme, size) {
4953
- var stylesBySize = getStylesBySize$7(size);
4953
+ var stylesBySize = getStylesBySize$8(size);
4954
4954
  return __assign$1(__assign$1({ border: 'none', background: 'transparent', padding: 0, color: theme.colors.shades['550'].color, alignItems: 'center', fontWeight: 500, textDecorationLine: 'underline' }, stylesBySize), { '&:disabled': {
4955
4955
  color: theme.colors.shades['250'].color,
4956
4956
  textDecorationLine: 'none',
@@ -4984,7 +4984,7 @@ var SizeFitGuide = function (_a) {
4984
4984
  };
4985
4985
  var templateObject_1$1c, templateObject_2$N, templateObject_3$A;
4986
4986
 
4987
- var getStylesBySize$6 = function (size) {
4987
+ var getStylesBySize$7 = function (size) {
4988
4988
  switch (size) {
4989
4989
  case exports.ComponentSize.Large:
4990
4990
  return {
@@ -5021,18 +5021,18 @@ var Container$O = newStyled.div(templateObject_1$1b || (templateObject_1$1b = __
5021
5021
  }, function (_a) {
5022
5022
  var _b;
5023
5023
  var size = _a.size;
5024
- return (_b = getStylesBySize$6(size)) === null || _b === void 0 ? void 0 : _b.borderRadius;
5024
+ return (_b = getStylesBySize$7(size)) === null || _b === void 0 ? void 0 : _b.borderRadius;
5025
5025
  }, function (_a) {
5026
5026
  var _b;
5027
5027
  var size = _a.size;
5028
- return (_b = getStylesBySize$6(size)) === null || _b === void 0 ? void 0 : _b.padding;
5028
+ return (_b = getStylesBySize$7(size)) === null || _b === void 0 ? void 0 : _b.padding;
5029
5029
  }, function (_a) {
5030
5030
  var size = _a.size;
5031
5031
  return (size === exports.ComponentSize.Small ? '2rem' : 'unset');
5032
5032
  }, function (_a) {
5033
5033
  var _b;
5034
5034
  var size = _a.size;
5035
- return (_b = getStylesBySize$6(size)) === null || _b === void 0 ? void 0 : _b.height;
5035
+ return (_b = getStylesBySize$7(size)) === null || _b === void 0 ? void 0 : _b.height;
5036
5036
  });
5037
5037
  var H3$2 = newStyled.h3(templateObject_2$M || (templateObject_2$M = __makeTemplateObject(["\n color: ", ";\n font-weight: bold;\n margin: 0;\n font-size: ", ";\n line-height: ", ";\n"], ["\n color: ", ";\n font-weight: bold;\n margin: 0;\n font-size: ", ";\n line-height: ", ";\n"])), function (_a) {
5038
5038
  var textColor = _a.textColor;
@@ -5040,11 +5040,11 @@ var H3$2 = newStyled.h3(templateObject_2$M || (templateObject_2$M = __makeTempla
5040
5040
  }, function (_a) {
5041
5041
  var _b;
5042
5042
  var size = _a.size;
5043
- return (_b = getStylesBySize$6(size)) === null || _b === void 0 ? void 0 : _b.fontSize;
5043
+ return (_b = getStylesBySize$7(size)) === null || _b === void 0 ? void 0 : _b.fontSize;
5044
5044
  }, function (_a) {
5045
5045
  var _b;
5046
5046
  var size = _a.size;
5047
- return (_b = getStylesBySize$6(size)) === null || _b === void 0 ? void 0 : _b.lineHeight;
5047
+ return (_b = getStylesBySize$7(size)) === null || _b === void 0 ? void 0 : _b.lineHeight;
5048
5048
  });
5049
5049
  var DiscountTag = function (_a) {
5050
5050
  var discount = _a.discount, offText = _a.offText, disabled = _a.disabled, _b = _a.backgroundColor, backgroundColor = _b === void 0 ? '#fff' : _b, _c = _a.borderColor, borderColor = _c === void 0 ? 'transparent' : _c, _d = _a.textColor, textColor = _d === void 0 ? '#fff' : _d, _e = _a.size, size = _e === void 0 ? exports.ComponentSize.Medium : _e, style = _a.style;
@@ -5053,7 +5053,7 @@ var DiscountTag = function (_a) {
5053
5053
  };
5054
5054
  var templateObject_1$1b, templateObject_2$M;
5055
5055
 
5056
- var getStylesBySize$5 = function (size) {
5056
+ var getStylesBySize$6 = function (size) {
5057
5057
  switch (size) {
5058
5058
  case exports.ComponentSize.Large:
5059
5059
  return {
@@ -5090,13 +5090,13 @@ var Price = newStyled.p(templateObject_2$L || (templateObject_2$L = __makeTempla
5090
5090
  var size = _a.size, finalPriceStyled = _a.finalPriceStyled, finalPriceStyledSmall = _a.finalPriceStyledSmall;
5091
5091
  return finalPriceStyled || finalPriceStyledSmall
5092
5092
  ? finalPriceStyledSmall
5093
- ? (_b = getStylesBySize$5(size)) === null || _b === void 0 ? void 0 : _b.finalPricefontSizeSmall
5094
- : (_c = getStylesBySize$5(size)) === null || _c === void 0 ? void 0 : _c.finalPricefontSize
5095
- : (_d = getStylesBySize$5(size)) === null || _d === void 0 ? void 0 : _d.fontSize;
5093
+ ? (_b = getStylesBySize$6(size)) === null || _b === void 0 ? void 0 : _b.finalPricefontSizeSmall
5094
+ : (_c = getStylesBySize$6(size)) === null || _c === void 0 ? void 0 : _c.finalPricefontSize
5095
+ : (_d = getStylesBySize$6(size)) === null || _d === void 0 ? void 0 : _d.fontSize;
5096
5096
  }, function (_a) {
5097
5097
  var _b;
5098
5098
  var size = _a.size;
5099
- return (_b = getStylesBySize$5(size)) === null || _b === void 0 ? void 0 : _b.lineHeight;
5099
+ return (_b = getStylesBySize$6(size)) === null || _b === void 0 ? void 0 : _b.lineHeight;
5100
5100
  }, function (_a) {
5101
5101
  var color = _a.color;
5102
5102
  return color;
@@ -5106,7 +5106,7 @@ var Price = newStyled.p(templateObject_2$L || (templateObject_2$L = __makeTempla
5106
5106
  }, function (_a) {
5107
5107
  var _b;
5108
5108
  var margin = _a.margin, size = _a.size;
5109
- return (margin ? (_b = getStylesBySize$5(size)) === null || _b === void 0 ? void 0 : _b.margin : '0');
5109
+ return (margin ? (_b = getStylesBySize$6(size)) === null || _b === void 0 ? void 0 : _b.margin : '0');
5110
5110
  }, function (_a) {
5111
5111
  var finalPriceStyledSmall = _a.finalPriceStyledSmall, size = _a.size;
5112
5112
  return finalPriceStyledSmall ? (size === 'large' ? '-10px' : '-7px') : '0';
@@ -5114,7 +5114,7 @@ var Price = newStyled.p(templateObject_2$L || (templateObject_2$L = __makeTempla
5114
5114
  var TagContainer = newStyled.p(templateObject_3$z || (templateObject_3$z = __makeTemplateObject(["\n margin: ", ";\n display: flex;\n align-items: center;\n"], ["\n margin: ", ";\n display: flex;\n align-items: center;\n"])), function (_a) {
5115
5115
  var _b;
5116
5116
  var size = _a.size;
5117
- return (_b = getStylesBySize$5(size)) === null || _b === void 0 ? void 0 : _b.margin;
5117
+ return (_b = getStylesBySize$6(size)) === null || _b === void 0 ? void 0 : _b.margin;
5118
5118
  });
5119
5119
  function getTestId() {
5120
5120
  var args = [];
@@ -9570,7 +9570,7 @@ var StyledSlider = newStyled(Slider)(templateObject_1$15 || (templateObject_1$15
9570
9570
  });
9571
9571
  var templateObject_1$15;
9572
9572
 
9573
- var getStylesBySize$4 = function (size) {
9573
+ var getStylesBySize$5 = function (size) {
9574
9574
  // rem units
9575
9575
  switch (size) {
9576
9576
  case exports.ComponentSize.Large:
@@ -9602,7 +9602,7 @@ var getStylesBySize$4 = function (size) {
9602
9602
  var SliderNavigation = function (_a) {
9603
9603
  var children = _a.children, infinite = _a.infinite, arrows = _a.arrows, adaptiveHeight = _a.adaptiveHeight, dotsSize = _a.dotsSize, dotListMarginTop = _a.dotListMarginTop, _b = _a.initialSlide, initialSlide = _b === void 0 ? 0 : _b, _c = _a.dots, dots = _c === void 0 ? true : _c, _d = _a.slidesToShow, slidesToShow = _d === void 0 ? 1 : _d, _e = _a.speed, speed = _e === void 0 ? 500 : _e;
9604
9604
  var _f = React$2.useState(0), activeIndex = _f[0], setActiveIndex = _f[1];
9605
- var styles = dotsSize && getStylesBySize$4(dotsSize);
9605
+ var styles = dotsSize && getStylesBySize$5(dotsSize);
9606
9606
  var theme = useTheme();
9607
9607
  var nextArrow = arrows && (jsx(ArrowButton$1, { direction: "right", width: arrows.arrowWidth, height: arrows.arrowHeight }, void 0));
9608
9608
  var prevArrow = arrows && (jsx(ArrowButton$1, { direction: "left", width: arrows.arrowWidth, height: arrows.arrowHeight }, void 0));
@@ -11485,7 +11485,7 @@ var ProgressBar = function (_a) {
11485
11485
  };
11486
11486
  var templateObject_1$_;
11487
11487
 
11488
- var getStylesBySize$3 = function (size) {
11488
+ var getStylesBySize$4 = function (size) {
11489
11489
  switch (size) {
11490
11490
  case exports.ComponentSize.Large:
11491
11491
  return {
@@ -11510,15 +11510,15 @@ var Container$E = newStyled.div(templateObject_1$Z || (templateObject_1$Z = __ma
11510
11510
  }, function (_a) {
11511
11511
  var _b;
11512
11512
  var size = _a.size;
11513
- return (_b = getStylesBySize$3(size)) === null || _b === void 0 ? void 0 : _b.widthHeight;
11513
+ return (_b = getStylesBySize$4(size)) === null || _b === void 0 ? void 0 : _b.widthHeight;
11514
11514
  }, function (_a) {
11515
11515
  var _b;
11516
11516
  var size = _a.size;
11517
- return (_b = getStylesBySize$3(size)) === null || _b === void 0 ? void 0 : _b.widthHeight;
11517
+ return (_b = getStylesBySize$4(size)) === null || _b === void 0 ? void 0 : _b.widthHeight;
11518
11518
  }, function (_a) {
11519
11519
  var _b;
11520
11520
  var size = _a.size;
11521
- return (_b = getStylesBySize$3(size)) === null || _b === void 0 ? void 0 : _b.margin;
11521
+ return (_b = getStylesBySize$4(size)) === null || _b === void 0 ? void 0 : _b.margin;
11522
11522
  }, function (_a) {
11523
11523
  var hoverBackgroundColor = _a.hoverBackgroundColor;
11524
11524
  return hoverBackgroundColor;
@@ -11746,14 +11746,14 @@ var StyledDisclosure = newStyled(Ye)(AccordionStyles.baseStyles, function (props
11746
11746
  var StyledButton$1 = newStyled(Ye.Button)(AccordionSummaryStyles.baseStyles, function (props) { return [AccordionSummaryStyles[props.variant](props.theme, props.disabled)]; }, function (props) { return [AccordionSummaryStyles.title(props.titlecolor)]; });
11747
11747
  var StyledPanel = newStyled(Ye.Panel)(AccordionDetailsStyles.baseStyles, function (props) { return [AccordionDetailsStyles[props.variant](props.theme)]; });
11748
11748
  var Accordion$1 = function (_a) {
11749
- var header = _a.header, headerOnOpen = _a.headerOnOpen, content = _a.content, defaultOpen = _a.defaultOpen, _b = _a.forceOpenHandler, forceOpenHandler = _b === void 0 ? false : _b, _c = _a.forceOpenValue, forceOpenValue = _c === void 0 ? false : _c, titleColor = _a.titleColor, variant = _a.variant, _d = _a.disabled, disabled = _d === void 0 ? false : _d, openIcon = _a.openIcon, closeIcon = _a.closeIcon, onClick = _a.onClick;
11749
+ var header = _a.header, headerOnOpen = _a.headerOnOpen, content = _a.content, defaultOpen = _a.defaultOpen, _b = _a.forceOpenHandler, forceOpenHandler = _b === void 0 ? false : _b, _c = _a.forceOpenValue, forceOpenValue = _c === void 0 ? false : _c, titleColor = _a.titleColor, variant = _a.variant, _d = _a.disabled, disabled = _d === void 0 ? false : _d, _e = _a.innerHTML, innerHTML = _e === void 0 ? false : _e, openIcon = _a.openIcon, closeIcon = _a.closeIcon, onClick = _a.onClick;
11750
11750
  var theme = useTheme();
11751
11751
  return (jsxRuntime.jsx(StyledDisclosure, __assign$1({ theme: theme, as: "div", defaultOpen: defaultOpen, variant: variant, disabled: disabled, onClick: onClick }, { children: function (_a) {
11752
11752
  var open = _a.open;
11753
11753
  var openWithForce = forceOpenHandler ? forceOpenValue : open;
11754
11754
  var ControlIcon = disabled ? openIcon : openWithForce ? closeIcon : openIcon;
11755
11755
  var showPanel = openWithForce && !disabled;
11756
- return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs(StyledButton$1, __assign$1({ theme: theme, variant: variant, disabled: disabled, titlecolor: titleColor }, { children: [showPanel && headerOnOpen ? headerOnOpen : header, jsxRuntime.jsx(ControlIcon, { title: openWithForce ? 'close icon' : 'open icon', height: theme.component.accordion.variant[variant].icon.height, width: theme.component.accordion.variant[variant].icon.width, fill: theme.component.accordion.variant[variant].icon.color }, void 0)] }), void 0), showPanel && (jsxRuntime.jsx(StyledPanel, __assign$1({ static: true, variant: variant, theme: theme }, { children: content }), void 0))] }, void 0));
11756
+ return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs(StyledButton$1, __assign$1({ theme: theme, variant: variant, disabled: disabled, titlecolor: titleColor }, { children: [showPanel && headerOnOpen ? headerOnOpen : header, jsxRuntime.jsx(ControlIcon, { title: openWithForce ? 'close icon' : 'open icon', height: theme.component.accordion.variant[variant].icon.height, width: theme.component.accordion.variant[variant].icon.width, fill: theme.component.accordion.variant[variant].icon.color }, void 0)] }), void 0), showPanel && !innerHTML && (jsxRuntime.jsx(StyledPanel, __assign$1({ static: true, variant: variant, theme: theme }, { children: content }), void 0)), showPanel && innerHTML && (jsxRuntime.jsx("div", { dangerouslySetInnerHTML: { __html: content } }, void 0))] }, void 0));
11757
11757
  } }), void 0));
11758
11758
  };
11759
11759
 
@@ -11885,7 +11885,7 @@ var Tag$1 = function (_a) {
11885
11885
  };
11886
11886
  var templateObject_1$U;
11887
11887
 
11888
- var getStylesBySize$2 = function (size, styledBorder) {
11888
+ var getStylesBySize$3 = function (size, styledBorder) {
11889
11889
  switch (size) {
11890
11890
  case exports.ComponentSize.Large:
11891
11891
  return {
@@ -11916,11 +11916,11 @@ var getStylesBySize$2 = function (size, styledBorder) {
11916
11916
  var CategoryTag = function (_a) {
11917
11917
  var text = _a.text, size = _a.size, className = _a.className, _b = _a.styledBorder, styledBorder = _b === void 0 ? false : _b;
11918
11918
  var theme = useTheme();
11919
- var stylesBySize = getStylesBySize$2(size, styledBorder);
11919
+ var stylesBySize = getStylesBySize$3(size, styledBorder);
11920
11920
  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));
11921
11921
  };
11922
11922
 
11923
- var getStylesBySize$1 = function (size, styledBorder) {
11923
+ var getStylesBySize$2 = function (size, styledBorder) {
11924
11924
  switch (size) {
11925
11925
  case exports.ComponentSize.Large:
11926
11926
  return {
@@ -11950,7 +11950,7 @@ var getStylesBySize$1 = function (size, styledBorder) {
11950
11950
  };
11951
11951
  var SeasonOfferTag = function (_a) {
11952
11952
  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;
11953
- var stylesBySize = getStylesBySize$1(size, styledBorder);
11953
+ var stylesBySize = getStylesBySize$2(size, styledBorder);
11954
11954
  return (jsx(Tag$1, { css: __assign$1({ backgroundColor: backgroundColor, fontWeight: 700, color: '#FFFFFF' }, stylesBySize), text: text, className: className }, void 0));
11955
11955
  };
11956
11956
 
@@ -12662,7 +12662,7 @@ var ImageContainer$2 = newStyled.div(function (_a) {
12662
12662
  var ImageHoverContainer = newStyled.img(templateObject_1$w || (templateObject_1$w = __makeTemplateObject(["\n opacity: 0;\n position: absolute;\n transition: all 0.4s ease-in-out;\n"], ["\n opacity: 0;\n position: absolute;\n transition: all 0.4s ease-in-out;\n"])));
12663
12663
  var Container$o = newStyled.a(templateObject_2$k || (templateObject_2$k = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: center;\n width: min-content;\n text-decoration: none;\n\n &:hover .hover__image {\n opacity: 1;\n }\n"], ["\n display: flex;\n flex-direction: column;\n align-items: center;\n width: min-content;\n text-decoration: none;\n\n &:hover .hover__image {\n opacity: 1;\n }\n"])));
12664
12664
  var Title$2 = newStyled.p(templateObject_3$i || (templateObject_3$i = __makeTemplateObject(["\n font-size: 0.83rem;\n font-weight: normal;\n line-height: 1.375rem;\n min-height: 2.75rem;\n text-align: center;\n color: ", ";\n margin: 0.25rem 0;\n text-align: ", ";\n"], ["\n font-size: 0.83rem;\n font-weight: normal;\n line-height: 1.375rem;\n min-height: 2.75rem;\n text-align: center;\n color: ", ";\n margin: 0.25rem 0;\n text-align: ", ";\n"])), function (props) { return props.theme.colors.pallete.secondary.color; }, function (props) { return props.align; });
12665
- var getStylesBySize = function (size) {
12665
+ var getStylesBySize$1 = function (size) {
12666
12666
  switch (size) {
12667
12667
  case exports.ComponentSize.Medium:
12668
12668
  return {
@@ -12693,7 +12693,7 @@ var MarginTopContainer = newStyled.div(templateObject_6$4 || (templateObject_6$4
12693
12693
  var ProductItemMobile = function (_a) {
12694
12694
  var title = _a.title, image = _a.image, imageHover = _a.imageHover, price = _a.price, rating = _a.rating, size = _a.size, _b = _a.alignName, alignName = _b === void 0 ? 'center' : _b, url = _a.url, className = _a.className, topTag = _a.topTag, bottomTag = _a.bottomTag, onClick = _a.onClick, _c = _a.priceDisplayType, priceDisplayType = _c === void 0 ? 'default' : _c, priceAtBottom = _a.priceAtBottom, priceLoading = _a.priceLoading;
12695
12695
  var theme = useTheme();
12696
- var styles = getStylesBySize(size);
12696
+ var styles = getStylesBySize$1(size);
12697
12697
  var space = React$2.useMemo(function () {
12698
12698
  var _a;
12699
12699
  return (_a = {},
@@ -17891,32 +17891,95 @@ var templateObject_1$3, templateObject_2$3, templateObject_3$3;
17891
17891
 
17892
17892
  /* base styles & size variants */
17893
17893
  var UserInfoTextStyles = {
17894
- baseStyles: function (theme, isMobile, alignCenter) {
17894
+ baseStyles: function (theme, fontSize, alignCenter) {
17895
17895
  return css({
17896
17896
  margin: '0',
17897
17897
  color: theme.colors.pallete.secondary.color,
17898
- fontWeight: '600',
17899
- fontSize: isMobile ? '16px' : '24px',
17898
+ fontWeight: '400',
17899
+ fontSize: fontSize,
17900
17900
  lineHeight: '130%',
17901
17901
  textAlign: alignCenter ? 'center' : 'left',
17902
17902
  });
17903
17903
  },
17904
+ };
17905
+ var getStylesBySize = function (size, theme) {
17906
+ switch (size) {
17907
+ case exports.ComponentSize.Large:
17908
+ return {
17909
+ imageMinHeight: theme.component.beforeAfter.size.large.image.minHeight,
17910
+ imageMinWidth: theme.component.beforeAfter.size.large.image.minWidth,
17911
+ mobileImageMinHeight: theme.component.beforeAfter.size.large.image.mobile.minHeight,
17912
+ mobileImageMinWidth: theme.component.beforeAfter.size.large.image.mobile.minWidth,
17913
+ imageContainerMaxWidth: theme.component.beforeAfter.size.large.imageContainer.maxWidth,
17914
+ imageContainerMobileMaxWidth: theme.component.beforeAfter.size.large.imageContainer.mobile.maxWidth,
17915
+ imageContainerPadding: theme.component.beforeAfter.size.large.imageContainer.padding,
17916
+ userInfoTextFontSize: theme.component.beforeAfter.size.large.userInfoText.fontSize,
17917
+ userInfoTextMobileFontSize: theme.component.beforeAfter.size.large.userInfoText.mobile.fontSize,
17918
+ };
17919
+ case exports.ComponentSize.Medium:
17920
+ return {
17921
+ imageMinHeight: theme.component.beforeAfter.size.medium.image.minHeight,
17922
+ imageMinWidth: theme.component.beforeAfter.size.medium.image.minWidth,
17923
+ mobileImageMinHeight: theme.component.beforeAfter.size.medium.image.mobile.minHeight,
17924
+ mobileImageMinWidth: theme.component.beforeAfter.size.medium.image.mobile.minWidth,
17925
+ imageContainerMaxWidth: theme.component.beforeAfter.size.medium.imageContainer.maxWidth,
17926
+ imageContainerMobileMaxWidth: theme.component.beforeAfter.size.medium.imageContainer.mobile.maxWidth,
17927
+ imageContainerPadding: theme.component.beforeAfter.size.medium.imageContainer.padding,
17928
+ userInfoTextFontSize: theme.component.beforeAfter.size.medium.userInfoText.fontSize,
17929
+ userInfoTextMobileFontSize: theme.component.beforeAfter.size.medium.userInfoText.mobile.fontSize,
17930
+ };
17931
+ case exports.ComponentSize.Small:
17932
+ return {
17933
+ imageMinHeight: theme.component.beforeAfter.size.small.image.minHeight,
17934
+ imageMinWidth: theme.component.beforeAfter.size.small.image.minWidth,
17935
+ mobileImageMinHeight: theme.component.beforeAfter.size.small.image.mobile.minHeight,
17936
+ mobileImageMinWidth: theme.component.beforeAfter.size.small.image.mobile.minWidth,
17937
+ imageContainerMaxWidth: theme.component.beforeAfter.size.small.imageContainer.maxWidth,
17938
+ imageContainerMobileMaxWidth: theme.component.beforeAfter.size.small.imageContainer.mobile.maxWidth,
17939
+ imageContainerPadding: theme.component.beforeAfter.size.small.imageContainer.padding,
17940
+ userInfoTextFontSize: theme.component.beforeAfter.size.small.userInfoText.fontSize,
17941
+ userInfoTextMobileFontSize: theme.component.beforeAfter.size.small.userInfoText.mobile.fontSize,
17942
+ };
17943
+ default:
17944
+ return {
17945
+ imageMinHeight: theme.component.beforeAfter.size.small.image.minHeight,
17946
+ imageMinWidth: theme.component.beforeAfter.size.small.image.minWidth,
17947
+ mobileImageMinHeight: theme.component.beforeAfter.size.small.image.mobile.minHeight,
17948
+ mobileImageMinWidth: theme.component.beforeAfter.size.small.image.mobile.minWidth,
17949
+ imageContainerMaxWidth: theme.component.beforeAfter.size.small.imageContainer.maxWidth,
17950
+ imageContainerMobileMaxWidth: theme.component.beforeAfter.size.small.imageContainer.mobile.maxWidth,
17951
+ imageContainerPadding: theme.component.beforeAfter.size.small.imageContainer.padding,
17952
+ userInfoTextFontSize: theme.component.beforeAfter.size.small.userInfoText.fontSize,
17953
+ userInfoTextMobileFontSize: theme.component.beforeAfter.size.small.userInfoText.mobile.fontSize,
17954
+ };
17955
+ }
17904
17956
  };
17905
17957
 
17906
- var Container$2 = newStyled.div(templateObject_1$2 || (templateObject_1$2 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n row-gap: ", ";\n background: var(--colors-shades-white-color);\n border: 1px solid var(--colors-shades-50-color);\n box-sizing: border-box;\n filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.25));\n border-radius: 10px;\n max-width: ", ";\n width: 100%;\n height: 100%;\n padding: ", ";\n flex-wrap: wrap;\n"], ["\n display: flex;\n flex-direction: column;\n row-gap: ", ";\n background: var(--colors-shades-white-color);\n border: 1px solid var(--colors-shades-50-color);\n box-sizing: border-box;\n filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.25));\n border-radius: 10px;\n max-width: ", ";\n width: 100%;\n height: 100%;\n padding: ", ";\n flex-wrap: wrap;\n"])), function (props) { return (props.isMobile ? '12px' : '15px'); }, function (props) { return (props.isMobile ? '241px' : '378px'); }, function (props) { return (props.isMobile ? '20px 20px 18px;' : '35px 35px 25px;'); });
17907
- var ImageContainer$1 = newStyled.div(templateObject_2$2 || (templateObject_2$2 = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n max-height: ", ";\n max-width: ", ";\n width: 100%;\n height: 100%;\n column-gap: 4px;\n"], ["\n display: flex;\n flex-direction: row;\n max-height: ", ";\n max-width: ", ";\n width: 100%;\n height: 100%;\n column-gap: 4px;\n"])), function (props) { return (props.isMobile ? '120px' : '180px'); }, function (props) { return (props.isMobile ? '200px' : '320px'); });
17908
- var ImageCard = newStyled.div(templateObject_3$2 || (templateObject_3$2 = __makeTemplateObject(["\n display: flex;\n min-height: ", ";\n width: ", ";\n flex-wrap: wrap;\n"], ["\n display: flex;\n min-height: ", ";\n width: ", ";\n flex-wrap: wrap;\n"])), function (props) { return (props.isMobile ? '120px' : '180px'); }, function (props) { return (props.isMobile ? '100px' : '160px'); });
17958
+ var Container$2 = newStyled.div(templateObject_1$2 || (templateObject_1$2 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n row-gap: ", ";\n background: var(--colors-shades-white-color);\n border: 1px solid var(--colors-shades-50-color);\n box-sizing: border-box;\n border-radius: 10px;\n max-width: ", ";\n width: 100%;\n height: 100%;\n padding: ", ";\n flex-wrap: wrap;\n"], ["\n display: flex;\n flex-direction: column;\n row-gap: ", ";\n background: var(--colors-shades-white-color);\n border: 1px solid var(--colors-shades-50-color);\n box-sizing: border-box;\n border-radius: 10px;\n max-width: ", ";\n width: 100%;\n height: 100%;\n padding: ", ";\n flex-wrap: wrap;\n"])), function (props) { return (props.isMobile ? '12px' : '15px'); }, function (props) {
17959
+ return props.isMobile
17960
+ ? props.styles.imageContainerMobileMaxWidth
17961
+ : props.styles.imageContainerMaxWidth;
17962
+ }, function (props) { return props.styles.imageContainerPadding; });
17963
+ var ImageContainer$1 = newStyled.div(templateObject_2$2 || (templateObject_2$2 = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n width: 100%;\n height: 100%;\n column-gap: 4px;\n"], ["\n display: flex;\n flex-direction: row;\n width: 100%;\n height: 100%;\n column-gap: 4px;\n"])));
17964
+ var ImageCard = newStyled.div(templateObject_3$2 || (templateObject_3$2 = __makeTemplateObject(["\n display: flex;\n min-height: ", ";\n min-width: ", ";\n width: ", ";\n flex-wrap: wrap;\n"], ["\n display: flex;\n min-height: ", ";\n min-width: ", ";\n width: ", ";\n flex-wrap: wrap;\n"])), function (props) {
17965
+ return props.isMobile ? props.styles.mobileImageMinHeight : props.styles.imageMinHeight;
17966
+ }, function (props) {
17967
+ return props.isMobile ? props.styles.mobileImageMinWidth : props.styles.imageMinWidth;
17968
+ }, function (props) {
17969
+ return props.isMobile ? props.styles.mobileImageMinWidth : props.styles.imageMinWidth;
17970
+ });
17909
17971
  var UserInfoText = newStyled.div(function (_a) {
17910
- var theme = _a.theme, isMobile = _a.isMobile, alignCenter = _a.alignCenter;
17972
+ var theme = _a.theme, fontSize = _a.fontSize, alignCenter = _a.alignCenter;
17911
17973
  return [
17912
- UserInfoTextStyles.baseStyles(theme, isMobile, alignCenter),
17974
+ UserInfoTextStyles.baseStyles(theme, fontSize, alignCenter),
17913
17975
  ];
17914
17976
  });
17915
17977
  var BeforeAfterCard = function (_a) {
17916
- var name = _a.name, age = _a.age, months = _a.months, beforeImage = _a.beforeImage, afterImage = _a.afterImage, _b = _a.alignCenter, alignCenter = _b === void 0 ? true : _b;
17978
+ var name = _a.name, age = _a.age, months = _a.months, beforeImage = _a.beforeImage, afterImage = _a.afterImage, _b = _a.alignCenter, alignCenter = _b === void 0 ? true : _b, _c = _a.imageBorderRadius, imageBorderRadius = _c === void 0 ? '' : _c, _d = _a.size, size = _d === void 0 ? exports.ComponentSize.Small : _d;
17917
17979
  var theme = useTheme();
17918
17980
  var isMobile = useWindowDimensions({ desktop: 768, mobile: 0 }).isMobile;
17919
- return (jsxRuntime.jsxs(Container$2, __assign$1({ "data-testid": "Container", isMobile: isMobile }, { children: [jsxRuntime.jsxs(ImageContainer$1, __assign$1({ "data-testid": "ImageContainer", isMobile: isMobile }, { children: [jsxRuntime.jsx(ImageCard, __assign$1({ "data-testid": "ImageCard", isMobile: isMobile }, { children: jsxRuntime.jsx(Image, { borderRadius: "20px", src: beforeImage, alt: "before", height: "100%", width: "100%" }, void 0) }), void 0), jsxRuntime.jsx(ImageCard, __assign$1({ isMobile: isMobile }, { children: jsxRuntime.jsx(Image, { borderRadius: "20px", src: afterImage, alt: "after", height: "100%", width: "100%" }, void 0) }), void 0)] }), void 0), jsxRuntime.jsx(UserInfoText, __assign$1({ "data-testid": "UserInfoText", theme: theme, isMobile: isMobile, alignCenter: alignCenter }, { children: "".concat(name, ", ").concat(age, " | ").concat(months, " months") }), void 0)] }), void 0));
17981
+ var stylesBySize = getStylesBySize(size, theme);
17982
+ return (jsxRuntime.jsxs(Container$2, __assign$1({ "data-testid": "Container", isMobile: isMobile, styles: stylesBySize }, { children: [jsxRuntime.jsxs(ImageContainer$1, __assign$1({ "data-testid": "ImageContainer", isMobile: isMobile }, { children: [jsxRuntime.jsx(ImageCard, __assign$1({ "data-testid": "ImageCard", isMobile: isMobile, styles: stylesBySize }, { children: jsxRuntime.jsx(Image, { borderRadius: imageBorderRadius, src: beforeImage, alt: "before", height: "100%", width: "100%" }, void 0) }), void 0), jsxRuntime.jsx(ImageCard, __assign$1({ isMobile: isMobile, styles: stylesBySize }, { children: jsxRuntime.jsx(Image, { borderRadius: imageBorderRadius, src: afterImage, alt: "after", height: "100%", width: "100%" }, void 0) }), void 0)] }), void 0), jsxRuntime.jsx(UserInfoText, __assign$1({ "data-testid": "UserInfoText", theme: theme, alignCenter: alignCenter, fontSize: isMobile ? stylesBySize.userInfoTextMobileFontSize : stylesBySize.userInfoTextFontSize }, { children: "".concat(name, ", ").concat(age, " | ").concat(months, " months") }), void 0)] }), void 0));
17920
17983
  };
17921
17984
  var templateObject_1$2, templateObject_2$2, templateObject_3$2;
17922
17985