@trafilea/afrodita-components 6.15.1 → 6.15.3

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
@@ -1349,6 +1349,7 @@ declare type ThemeColorPrimaryPallete = ThemeColorPallete & {
1349
1349
  40: ThemeColorPallete;
1350
1350
  60: ThemeColorPallete;
1351
1351
  80: ThemeColorPallete;
1352
+ 100?: ThemeColorPallete;
1352
1353
  };
1353
1354
  declare type ThemeColors = {
1354
1355
  pallete: {
@@ -3125,8 +3126,10 @@ interface SizeFitGuideProps {
3125
3126
  declare const SizeFitGuide: ({ title, fitPercentage, onClick, onClickFitPercentage, hideIcon, }: SizeFitGuideProps) => JSX.Element;
3126
3127
 
3127
3128
  declare type Size = 'S' | 'XS / S' | 'M' | 'M / L' | 'L' | 'XL' | 'XL / 2XL' | '2XL' | '3XL' | '4XL';
3128
- declare type SizeTipReference = {
3129
- [key in Size]?: string;
3129
+ declare type SizeTip = {
3130
+ size: Size;
3131
+ tip: string;
3132
+ cta: string;
3130
3133
  };
3131
3134
  interface SizeSelectorProps {
3132
3135
  label: string;
@@ -3137,7 +3140,7 @@ interface SizeSelectorProps {
3137
3140
  inline?: boolean;
3138
3141
  width?: string;
3139
3142
  hasSizeGuide?: boolean;
3140
- sizeTipReferences?: SizeTipReference;
3143
+ sizeTipReferences?: SizeTip[];
3141
3144
  }
3142
3145
  declare const SizeSelector: ({ label, sizes, selectedValue, onChange, onClickSizeTip, inline, width, hasSizeGuide, sizeTipReferences, }: SizeSelectorProps) => _emotion_react_jsx_runtime.JSX.Element;
3143
3146
 
@@ -19318,11 +19318,12 @@ var templateObject_1$d, templateObject_2$9;
19318
19318
  var SizeSelector = function (_a) {
19319
19319
  var _b;
19320
19320
  var label = _a.label, sizes = _a.sizes, selectedValue = _a.selectedValue, onChange = _a.onChange, onClickSizeTip = _a.onClickSizeTip, _c = _a.inline, inline = _c === void 0 ? false : _c, width = _a.width, _d = _a.hasSizeGuide, hasSizeGuide = _d === void 0 ? false : _d, sizeTipReferences = _a.sizeTipReferences;
19321
+ var activeSizeTip = sizeTipReferences === null || sizeTipReferences === void 0 ? void 0 : sizeTipReferences.find(function (sizeTip) { return (sizeTip === null || sizeTip === void 0 ? void 0 : sizeTip.size) === (selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.label); });
19321
19322
  return (jsxs("div", __assign$1({ css: {
19322
19323
  display: 'flex',
19323
19324
  flexDirection: inline ? 'row' : 'column',
19324
19325
  alignItems: inline ? 'center' : 'start',
19325
- } }, { children: [jsxs(Text$7, __assign$1({ variant: "body", weight: "regular", size: "small", css: { alignSelf: inline ? 'start' : 'inherit', padding: inline ? '0.75rem 0' : '0' } }, { children: [label, !inline && (jsx(Text$7, __assign$1({ variant: "label", weight: "demi", size: "regular" }, { children: selectedValue.description }), void 0))] }), void 0), hasSizeGuide && (jsxs(Row, { children: [jsx(Icon.Actions.CircleInfo, { width: 1.2 }, void 0), jsx(Text$7, __assign$1({ variant: "body", weight: "demi", size: "small", css: { display: 'flex' } }, { children: "Sizing Tip:" }), void 0), jsx(Text$7, __assign$1({ variant: "body", weight: "regular", size: "small" }, { children: (_b = sizeTipReferences === null || sizeTipReferences === void 0 ? void 0 : sizeTipReferences[selectedValue.label]) !== null && _b !== void 0 ? _b : 'Refer to our' }), void 0), onClickSizeTip && (jsx(SizeFitGuide, { title: "Size and Fit Guide", onClick: onClickSizeTip, hideIcon: true }, void 0))] }, void 0)), jsx(ButtonsContainer, __assign$1({ inline: inline }, { children: sizes.map(function (size) {
19326
+ } }, { children: [jsxs(Text$7, __assign$1({ variant: "body", weight: "regular", size: "small", css: { alignSelf: inline ? 'start' : 'inherit', padding: inline ? '0.75rem 0' : '0' } }, { children: [label, !inline && (jsx(Text$7, __assign$1({ variant: "label", weight: "demi", size: "regular" }, { children: selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.description }), void 0))] }), void 0), hasSizeGuide && (jsxs(Row, __assign$1({ "data-testid": "sizing-tip" }, { children: [jsx(Icon.Actions.CircleInfo, { width: 1.2 }, void 0), jsx(Text$7, __assign$1({ variant: "body", weight: "demi", size: "small", css: { display: 'flex' } }, { children: "Sizing Tip:" }), void 0), jsx(Text$7, __assign$1({ variant: "body", weight: "regular", size: "small" }, { children: activeSizeTip === null || activeSizeTip === void 0 ? void 0 : activeSizeTip.tip }), void 0), onClickSizeTip && (jsx(SizeFitGuide, { hideIcon: true, onClick: onClickSizeTip, title: (_b = activeSizeTip === null || activeSizeTip === void 0 ? void 0 : activeSizeTip.cta) !== null && _b !== void 0 ? _b : 'Size and Fit Guide' }, void 0))] }), void 0)), jsx(ButtonsContainer, __assign$1({ inline: inline }, { children: sizes === null || sizes === void 0 ? void 0 : sizes.map(function (size) {
19326
19327
  var active = !size.disabled && size.label === selectedValue.label;
19327
19328
  return (jsx(SelectorSecondary, { css: {
19328
19329
  padding: '0.75rem 1rem 0.625rem',
@@ -19824,7 +19825,7 @@ var SliderContainer = newStyled.div(templateObject_2 || (templateObject_2 = __ma
19824
19825
  var theme = _a.theme;
19825
19826
  return theme.component.gallery.aspectRatio;
19826
19827
  });
19827
- var TopTagContainer = newStyled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n position: absolute;\n left: 10px;\n top: 0;\n"], ["\n position: absolute;\n left: 10px;\n top: 0;\n"])));
19828
+ var TopTagContainer = newStyled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n position: absolute;\n left: 0px;\n top: 21px;\n"], ["\n position: absolute;\n left: 0px;\n top: 21px;\n"])));
19828
19829
  var BottomTagContainer = newStyled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n position: absolute;\n bottom: 3.75rem;\n left: 0;\n"], ["\n position: absolute;\n bottom: 3.75rem;\n left: 0;\n"])));
19829
19830
  var NavButtonContainer = newStyled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n height: 36px;\n width: 36px;\n background-color: ", " !important;\n border-radius: 500px;\n"], ["\n height: 36px;\n width: 36px;\n background-color: ", " !important;\n border-radius: 500px;\n"])), function (_a) {
19830
19831
  var theme = _a.theme;
@@ -19855,11 +19856,33 @@ var SETTINGS = {
19855
19856
  dots: false,
19856
19857
  };
19857
19858
  var THUMBNAIL_SETTINGS = {
19858
- variableWidth: true,
19859
19859
  swipeToSlide: true,
19860
19860
  focusOnSelect: true,
19861
19861
  infinite: false,
19862
19862
  centerPadding: '16px',
19863
+ slidesToShow: 6,
19864
+ speed: 200,
19865
+ arrows: false,
19866
+ responsive: [
19867
+ {
19868
+ breakpoint: 375,
19869
+ settings: {
19870
+ slidesToShow: 4.5,
19871
+ },
19872
+ },
19873
+ {
19874
+ breakpoint: 410,
19875
+ settings: {
19876
+ slidesToShow: 5,
19877
+ },
19878
+ },
19879
+ {
19880
+ breakpoint: 480,
19881
+ settings: {
19882
+ slidesToShow: 5.5,
19883
+ },
19884
+ },
19885
+ ],
19863
19886
  };
19864
19887
  var ProductGalleryMobileV4 = function (_a) {
19865
19888
  var images = _a.images, topTag = _a.topTag, bottomTag = _a.bottomTag, productImageDataTestId = _a.productImageDataTestId;