@trafilea/afrodita-components 7.24.10 → 7.25.0
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/es/components/atoms/ClubPriceMemberLabel/ClubPriceMemberLabel.js +1 -1
- package/build/es/components/atoms/PriceLabel/PriceLabel.js +1 -1
- package/build/es/components/pricing/styles.js +1 -1
- package/build/index.d.ts +13 -0
- package/build/lib/components/atoms/ClubPriceMemberLabel/ClubPriceMemberLabel.js +1 -1
- package/build/lib/components/atoms/PriceLabel/PriceLabel.js +1 -1
- package/build/lib/components/pricing/styles.js +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__rest as i,__assign as r}from"tslib";import{jsx as e,
|
|
1
|
+
import{__rest as i,__assign as r}from"tslib";import{jsx as e,Fragment as o,jsxs as l}from"react/jsx-runtime";import{PriceLabelV2 as c}from"../../pricing/priceLabelV2/PriceLabelV2.js";import{PriceLabel as a}from"../PriceLabel/PriceLabel.js";import{ContainerWrapper as d,ImgWrapper as t}from"./ClubPriceMemberLabel.styled.js";var b=function(b){var n=b.isClub,s=b.isPDP,v=void 0!==s&&s,P=b.icon,m=b.isCollections,p=void 0!==m&&m,u=b.hasHorizontalLayout,f=void 0!==u&&u,C=b.hasVerticalLayout,h=void 0!==C&&C,L=b.isClubPriceOnTop,V=void 0!==L&&L,R=b.isClubPriceRevampV2,g=void 0!==R&&R,x=b.isClubPriceRevampV3,y=void 0!==x&&x,O=b.bottomRowPrefix,j=i(b,["isClub","isPDP","icon","isCollections","hasHorizontalLayout","hasVerticalLayout","isClubPriceOnTop","isClubPriceRevampV2","isClubPriceRevampV3","bottomRowPrefix"]),M=n?"#882A2B":"#292929",w=v||f||h,z=w?e(c,{originalPrice:j.originalPrice,finalPrice:j.finalPrice,color:M,clubOffer:p?{}:void 0,hasHorizontalLayout:f,hasVerticalLayout:h},void 0):e(a,r({},j,{color:M,isClubOffer:p,originalPricePrefix:j.originalPricePrefix,isClubPriceOnTop:n&&V,isClubPriceRevampV2:n&&g,isClubPriceRevampV3:n&&y,bottomRowPrefix:n?O:void 0,icon:n?P:void 0}),void 0),H=!w&&(y||g||V);return e("div",{children:n?e(d,r({id:"priceMemberLabelWrapper"},{children:h?l(o,{children:[e(t,r({id:"priceMemberLabelImgWrapper"},{children:P}),void 0),z]},void 0):H?e(o,{children:z},void 0):l(o,{children:[z,e(t,r({id:"priceMemberLabelImgWrapper"},{children:P}),void 0)]},void 0)}),void 0):e(o,{children:z},void 0)},void 0)};export{b as ClubPriceMemberLabel};
|
|
2
2
|
//# sourceMappingURL=ClubPriceMemberLabel.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__makeTemplateObject as i,__rest as
|
|
1
|
+
import{__makeTemplateObject as i,__rest as e,__assign as r}from"tslib";import{jsxs as l,jsx as o,Fragment as t}from"react/jsx-runtime";import d from"@emotion/styled";import{useTheme as n}from"../../../core/theme/Theme.js";import{ComponentSize as c}from"../../../types/enums.js";import"../../pricing/clubOffer/ClubOfferTag.js";import"../../pricing/discount/styled.js";import{getTestId as a}from"../../pricing/price/PriceLabel.js";import"react";import{getCurrencySymbol as p}from"../../../utils/getCurrencySymbol/getCurrencySimbol.js";import{HorizontalVariantContainer as s,HorizontalVariantRow as m,Price as v,BottomRowPrefix as f,ClubPriceOnTopContainer as g,Container as u,OriginalPricePrefix as y}from"../../pricing/styles.js";import"../ClubPriceMemberLabel/ClubPriceMemberLabel.styled.js";import"../HorizontalDivider/HorizontalDivider.js";import"../Icon/Icon.js";import"../Image/styled.js";import"../PriceLabelV2/PriceLabelV2.js";import"../Toggle/toggle.styled.js";import"../../tooltip/Tooltip.js";import"../../pricing/priceLabelV3/PriceLabelV3.js";import"../../pricing/priceLabelV5/PriceLabelV5.styled.js";import"../../pricing/priceLabelV6/PriceLabelV6.styled.js";var P,h=d.div(P||(P=i(["\n display: flex;\n margin-left: -5px;\n gap: ",";\n "],["\n display: flex;\n margin-left: -5px;\n gap: ",";\n "])),(function(i){return i.gap||"0"})),b=function(i){var d,P,b,S,x=i.finalPrice,z=i.originalPrice,j=i.color,C=i.testId,T=i.originalPriceStyled,L=void 0!==T&&T,V=i.originalPriceUnderlined,R=void 0===V||V,O=i.size,w=void 0===O?c.Small:O,I=i.isClubOffer,D=void 0!==I&&I,H=i.originalPricePrefix,M=i.isClubPriceOnTop,U=void 0!==M&&M,$=i.isClubPriceRevampV2,k=void 0!==$&&$,q=i.isClubPriceRevampV3,A=void 0!==q&&q,B=i.bottomRowPrefix,E=i.bottomRowPrice,F=i.icon,G=e(i,["finalPrice","originalPrice","color","testId","originalPriceStyled","originalPriceUnderlined","size","isClubOffer","originalPricePrefix","isClubPriceOnTop","isClubPriceRevampV2","isClubPriceRevampV3","bottomRowPrefix","bottomRowPrice","icon"]),J=n(),K=z&&z!==x,N="$";"string"==typeof x&&(N=p(x));var Q="string"==typeof x&&x.includes(".")&&x.includes(N)?x.split(N)[1].split("."):["",""],W={size:c.Small,color:j||J.colors.pallete.secondary.color,weight:700},X={size:L?w:c.Small,color:J.component.pricing.priceLabel.price.originalPriceColor||J.colors.shades[300].color},Y=function(){return l(t,{children:[H&&o(y,r({},X,{children:H}),void 0),o(v,r({},X,{margin:!0,underlined:R,"data-testid":a(C,"original-product-price"),"data-nosnippet":!0},{children:z}),void 0)]},void 0)};return k?l(s,r({},G,{children:[l(m,{children:[K&&!D&&o(v,r({},X,{underlined:!0,style:{fontSize:"20px"},"data-testid":a(C,"original-product-price"),"data-nosnippet":!0},{children:z}),void 0),l(h,r({"data-testid":a(C,"final-product-price"),gap:"4px"},{children:[o(v,r({finalPriceStyledSmall:!0,style:{marginTop:"-5px"}},W,{size:w},{children:N}),void 0),o(v,r({finalPriceStyled:!0},W,{size:w,"data-testid":"test-price-final-product-price"},{children:Q[0]?Q[0]:null===(d="".concat(x))||void 0===d?void 0:d.split(N)[1]}),void 0),o(v,r({finalPriceStyledSmall:!0,style:{marginTop:"-6px"}},W,{size:w},{children:Q[1]?Q[1]:"00"}),void 0),F]}),void 0)]},void 0),B&&E&&l(m,{children:[o(f,{children:B},void 0),o(v,r({},X,{size:c.Small,"data-nosnippet":!0},{children:E}),void 0)]},void 0)]}),void 0):A?l(s,r({},G,{children:[l(m,{children:[K&&!D&&o(v,r({},X,{underlined:!0,style:{fontSize:"20px"},"data-testid":a(C,"original-product-price"),"data-nosnippet":!0},{children:z}),void 0),l(h,r({"data-testid":a(C,"final-product-price"),gap:"4px"},{children:[o(v,r({finalPriceStyledSmall:!0,style:{marginTop:"-5px"}},W,{size:w},{children:N}),void 0),o(v,r({finalPriceStyled:!0},W,{size:w,"data-testid":"test-price-final-product-price"},{children:Q[0]?Q[0]:null===(P="".concat(x))||void 0===P?void 0:P.split(N)[1]}),void 0),o(v,r({finalPriceStyledSmall:!0,style:{marginTop:"-6px"}},W,{size:w},{children:Q[1]?Q[1]:"00"}),void 0)]}),void 0)]},void 0),F&&o(m,{children:F},void 0),B&&E&&l(m,{children:[o(f,{children:B},void 0),o(v,r({},X,{size:c.Small,"data-nosnippet":!0},{children:E}),void 0)]},void 0)]}),void 0):U?l(g,r({},G,{children:[K&&!D&&o("div",r({style:{display:"flex"}},{children:o(Y,{},void 0)}),void 0),l(h,r({"data-testid":a(C,"final-product-price"),gap:"4px"},{children:[o(v,r({finalPriceStyledSmall:!0,style:{marginTop:"-5px"}},W,{size:w},{children:N}),void 0),o(v,r({finalPriceStyled:!0},W,{size:w,"data-testid":"test-price-final-product-price'"},{children:Q[0]?Q[0]:null===(b="".concat(x))||void 0===b?void 0:b.split(N)[1]}),void 0),o(v,r({finalPriceStyledSmall:!0,style:{marginTop:"-6px"}},W,{size:w},{children:Q[1]?Q[1]:"00"}),void 0),F]}),void 0)]}),void 0):l(u,r({},G,{children:[K&&!D&&o(Y,{},void 0),l(h,r({"data-testid":a(C,"final-product-price")},{children:[o(v,r({margin:!0,finalPriceStyledSmall:!0,style:{marginTop:"-5px"}},W,{size:w},{children:N}),void 0),o(v,r({finalPriceStyled:!0},W,{size:w,"data-testid":"test-price-final-product-price'"},{children:Q[0]?Q[0]:null===(S="".concat(x))||void 0===S?void 0:S.split(N)[1]}),void 0),o(v,r({finalPriceStyledSmall:!0,style:{marginTop:"-6px"}},W,{size:w},{children:Q[1]?Q[1]:"00"}),void 0)]}),void 0)]}),void 0)};export{b as PriceLabel};
|
|
2
2
|
//# sourceMappingURL=PriceLabel.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__makeTemplateObject as n}from"tslib";import i from"@emotion/styled";import{getFontSize as e,getStylesBySize as
|
|
1
|
+
import{__makeTemplateObject as n}from"tslib";import i from"@emotion/styled";import{getFontSize as e,getStylesBySize as t}from"./price/PriceLabel.js";var r,l,o,a,f,p,d,g,s,c,x,m,u,v=i.div(r||(r=n(["\n display: flex;\n align-items: center;\n"],["\n display: flex;\n align-items: center;\n"]))),h=i.div(l||(l=n(["\n display: flex;\n flex-direction: column-reverse;\n align-items: flex-start;\n gap: 8px;\n"],["\n display: flex;\n flex-direction: column-reverse;\n align-items: flex-start;\n gap: 8px;\n"]))),y=i.p(o||(o=n(["\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n color: ",";\n text-decoration: ",";\n margin: ",";\n position: relative;\n margin-top: ",";\n"],["\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n color: ",";\n text-decoration: ",";\n margin: ",";\n position: relative;\n margin-top: ",";\n"])),(function(n){var i=n.weight;return i||"400"}),(function(n){var i=n.size,t=n.theme,r=n.finalPriceStyled,l=n.finalPriceStyledSmall;return e(i,t,r,l)}),(function(n){var i,e=n.size;return null===(i=t(e))||void 0===i?void 0:i.lineHeight}),(function(n){return n.color}),(function(n){return n.underlined?"line-through":"none"}),(function(n){var i,e=n.margin,r=n.size;return e?null===(i=t(r))||void 0===i?void 0:i.margin:"0"}),(function(n){var i=n.finalPriceStyledSmall,e=n.size;return i?"large"===e?"-6px":"-7px":"0"})),z=i.span(a||(a=n(["\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n color: ",";\n text-decoration: ",";\n margin: ",";\n position: relative;\n margin-top: ",";\n"],["\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n color: ",";\n text-decoration: ",";\n margin: ",";\n position: relative;\n margin-top: ",";\n"])),(function(n){var i=n.weight;return i||"400"}),(function(n){var i=n.size,t=n.theme,r=n.finalPriceStyled,l=n.finalPriceStyledSmall;return e(i,t,r,l)}),(function(n){var i,e=n.size;return null===(i=t(e))||void 0===i?void 0:i.lineHeight}),(function(n){return n.color}),(function(n){return n.underlined?"line-through":"none"}),(function(n){var i,e=n.margin,r=n.size;return e?null===(i=t(r))||void 0===i?void 0:i.margin:"0"}),(function(n){var i=n.finalPriceStyledSmall,e=n.size;return i?"large"===e?"-6px":"-7px":"0"})),w=i.div(f||(f=n(["\n margin: ",";\n display: flex;\n align-items: center;\n"],["\n margin: ",";\n display: flex;\n align-items: center;\n"])),(function(n){var i,e=n.size;return null===(i=t(e))||void 0===i?void 0:i.margin})),S=i.div(p||(p=n(["\n display: flex;\n flex-direction: ",";\n gap: ",";\n"],["\n display: flex;\n flex-direction: ",";\n gap: ",";\n"])),(function(n){return n.flexDirection}),(function(n){var i=n.gap;return void 0===i?"0.5rem":i})),b=i.div(d||(d=n(["\n margin-top: -0.4rem;\n .tooltip-wrapper {\n box-shadow: none;\n }\n"],["\n margin-top: -0.4rem;\n .tooltip-wrapper {\n box-shadow: none;\n }\n"]))),P=i.div(g||(g=n(["\n display: flex;\n"],["\n display: flex;\n"]))),H=i.div(s||(s=n(["\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n gap: 4px;\n"],["\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n gap: 4px;\n"]))),j=i.div(c||(c=n(["\n display: flex;\n align-items: center;\n gap: 8px;\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n"]))),D=i.div(x||(x=n(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 4px;\n"],["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 4px;\n"]))),L=i.div(m||(m=n(["\n display: flex;\n align-items: center;\n gap: 8px;\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n"]))),k=i.span(u||(u=n(["\n font-size: 12px;\n font-weight: 400;\n color: ",";\n line-height: 1;\n"],["\n font-size: 12px;\n font-weight: 400;\n color: ",";\n line-height: 1;\n"])),(function(n){return n.color||"#6b6b6b"}));export{k as BottomRowPrefix,h as ClubPriceOnTopContainer,v as Container,P as FinalPriceStyledContainer,D as HorizontalVariantContainer,L as HorizontalVariantRow,z as OriginalPricePrefix,y as Price,S as PriceContainer,j as PriceDiscountRow,w as TagContainer,b as TooltipContainer,H as VerticalContainer};
|
|
2
2
|
//# sourceMappingURL=styles.js.map
|
package/build/index.d.ts
CHANGED
|
@@ -1617,6 +1617,13 @@ declare type PriceLabelPropsV1 = PriceLabelProps & {
|
|
|
1617
1617
|
pricePerItem?: string;
|
|
1618
1618
|
hasRoundedSavings?: boolean;
|
|
1619
1619
|
isClubOffer?: boolean;
|
|
1620
|
+
originalPricePrefix?: string;
|
|
1621
|
+
isClubPriceOnTop?: boolean;
|
|
1622
|
+
isClubPriceRevampV2?: boolean;
|
|
1623
|
+
isClubPriceRevampV3?: boolean;
|
|
1624
|
+
bottomRowPrefix?: string;
|
|
1625
|
+
bottomRowPrice?: string;
|
|
1626
|
+
icon?: JSX.Element;
|
|
1620
1627
|
};
|
|
1621
1628
|
|
|
1622
1629
|
declare type ClubPriceLabelProps = PriceLabelPropsV1 & {
|
|
@@ -1627,6 +1634,12 @@ declare type ClubPriceLabelProps = PriceLabelPropsV1 & {
|
|
|
1627
1634
|
style?: React.CSSProperties;
|
|
1628
1635
|
hasHorizontalLayout?: boolean;
|
|
1629
1636
|
hasVerticalLayout?: boolean;
|
|
1637
|
+
originalPricePrefix?: string;
|
|
1638
|
+
isClubPriceOnTop?: boolean;
|
|
1639
|
+
isClubPriceRevampV2?: boolean;
|
|
1640
|
+
isClubPriceRevampV3?: boolean;
|
|
1641
|
+
bottomRowPrefix?: string;
|
|
1642
|
+
bottomRowPrice?: string;
|
|
1630
1643
|
};
|
|
1631
1644
|
|
|
1632
1645
|
declare const ClubPriceMemberLabel: React.FC<ClubPriceLabelProps>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("tslib"),e=require("react/jsx-runtime"),r=require("../../pricing/priceLabelV2/PriceLabelV2.js"),o=require("../PriceLabel/PriceLabel.js"),a=require("./ClubPriceMemberLabel.styled.js");exports.ClubPriceMemberLabel=function(l){var s=l.isClub,c=l.isPDP,n=void 0!==c&&c,t=l.icon,b=l.isCollections,d=void 0!==b&&b,u=l.hasHorizontalLayout,P=void 0!==u&&u,v=l.hasVerticalLayout,p=void 0!==v&&v,m=l.isClubPriceOnTop,x=void 0!==m&&m,g=l.isClubPriceRevampV2,C=void 0!==g&&g,L=l.isClubPriceRevampV3,j=void 0!==L&&L,h=l.bottomRowPrefix,f=i.__rest(l,["isClub","isPDP","icon","isCollections","hasHorizontalLayout","hasVerticalLayout","isClubPriceOnTop","isClubPriceRevampV2","isClubPriceRevampV3","bottomRowPrefix"]),V=s?"#882A2B":"#292929",_=n||P||p,R=_?e.jsx(r.PriceLabelV2,{originalPrice:f.originalPrice,finalPrice:f.finalPrice,color:V,clubOffer:d?{}:void 0,hasHorizontalLayout:P,hasVerticalLayout:p},void 0):e.jsx(o.PriceLabel,i.__assign({},f,{color:V,isClubOffer:d,originalPricePrefix:f.originalPricePrefix,isClubPriceOnTop:s&&x,isClubPriceRevampV2:s&&C,isClubPriceRevampV3:s&&j,bottomRowPrefix:s?h:void 0,icon:s?t:void 0}),void 0),y=!_&&(j||C||x);return e.jsx("div",{children:s?e.jsx(a.ContainerWrapper,i.__assign({id:"priceMemberLabelWrapper"},{children:p?e.jsxs(e.Fragment,{children:[e.jsx(a.ImgWrapper,i.__assign({id:"priceMemberLabelImgWrapper"},{children:t}),void 0),R]},void 0):y?e.jsx(e.Fragment,{children:R},void 0):e.jsxs(e.Fragment,{children:[R,e.jsx(a.ImgWrapper,i.__assign({id:"priceMemberLabelImgWrapper"},{children:t}),void 0)]},void 0)}),void 0):e.jsx(e.Fragment,{children:R},void 0)},void 0)};
|
|
2
2
|
//# sourceMappingURL=ClubPriceMemberLabel.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("tslib"),e=require("react/jsx-runtime"),r=require("@emotion/styled"),s=require("../../../core/theme/Theme.js"),n=require("../../../types/enums.js");require("../../pricing/clubOffer/ClubOfferTag.js"),require("../../pricing/discount/styled.js");var l=require("../../pricing/price/PriceLabel.js");require("react");var t=require("../../../utils/getCurrencySymbol/getCurrencySimbol.js"),o=require("../../pricing/styles.js");function a(i){return i&&"object"==typeof i&&"default"in i?i:{default:i}}require("../ClubPriceMemberLabel/ClubPriceMemberLabel.styled.js"),require("../HorizontalDivider/HorizontalDivider.js"),require("../Icon/Icon.js"),require("../Image/styled.js"),require("../PriceLabelV2/PriceLabelV2.js"),require("../Toggle/toggle.styled.js"),require("../../tooltip/Tooltip.js"),require("../../pricing/priceLabelV3/PriceLabelV3.js"),require("../../pricing/priceLabelV5/PriceLabelV5.styled.js"),require("../../pricing/priceLabelV6/PriceLabelV6.styled.js");var d,c=a(r).default.div(d||(d=i.__makeTemplateObject(["\n display: flex;\n margin-left: -5px;\n gap: ",";\n "],["\n display: flex;\n margin-left: -5px;\n gap: ",";\n "])),(function(i){return i.gap||"0"}));exports.PriceLabel=function(r){var a,d,p,g,u=r.finalPrice,v=r.originalPrice,P=r.color,x=r.testId,_=r.originalPriceStyled,j=void 0!==_&&_,m=r.originalPriceUnderlined,f=void 0===m||m,y=r.size,h=void 0===y?n.ComponentSize.Small:y,b=r.isClubOffer,S=void 0!==b&&b,z=r.originalPricePrefix,C=r.isClubPriceOnTop,T=void 0!==C&&C,q=r.isClubPriceRevampV2,V=void 0!==q&&q,R=r.isClubPriceRevampV3,L=void 0!==R&&R,w=r.bottomRowPrefix,I=r.bottomRowPrice,O=r.icon,H=i.__rest(r,["finalPrice","originalPrice","color","testId","originalPriceStyled","originalPriceUnderlined","size","isClubOffer","originalPricePrefix","isClubPriceOnTop","isClubPriceRevampV2","isClubPriceRevampV3","bottomRowPrefix","bottomRowPrice","icon"]),M=s.useTheme(),B=v&&v!==u,D="$";"string"==typeof u&&(D=t.getCurrencySymbol(u));var U="string"==typeof u&&u.includes(".")&&u.includes(D)?u.split(D)[1].split("."):["",""],k={size:n.ComponentSize.Small,color:P||M.colors.pallete.secondary.color,weight:700},F={size:j?h:n.ComponentSize.Small,color:M.component.pricing.priceLabel.price.originalPriceColor||M.colors.shades[300].color},$=function(){return e.jsxs(e.Fragment,{children:[z&&e.jsx(o.OriginalPricePrefix,i.__assign({},F,{children:z}),void 0),e.jsx(o.Price,i.__assign({},F,{margin:!0,underlined:f,"data-testid":l.getTestId(x,"original-product-price"),"data-nosnippet":!0},{children:v}),void 0)]},void 0)};return V?e.jsxs(o.HorizontalVariantContainer,i.__assign({},H,{children:[e.jsxs(o.HorizontalVariantRow,{children:[B&&!S&&e.jsx(o.Price,i.__assign({},F,{underlined:!0,style:{fontSize:"20px"},"data-testid":l.getTestId(x,"original-product-price"),"data-nosnippet":!0},{children:v}),void 0),e.jsxs(c,i.__assign({"data-testid":l.getTestId(x,"final-product-price"),gap:"4px"},{children:[e.jsx(o.Price,i.__assign({finalPriceStyledSmall:!0,style:{marginTop:"-5px"}},k,{size:h},{children:D}),void 0),e.jsx(o.Price,i.__assign({finalPriceStyled:!0},k,{size:h,"data-testid":"test-price-final-product-price"},{children:U[0]?U[0]:null===(a="".concat(u))||void 0===a?void 0:a.split(D)[1]}),void 0),e.jsx(o.Price,i.__assign({finalPriceStyledSmall:!0,style:{marginTop:"-6px"}},k,{size:h},{children:U[1]?U[1]:"00"}),void 0),O]}),void 0)]},void 0),w&&I&&e.jsxs(o.HorizontalVariantRow,{children:[e.jsx(o.BottomRowPrefix,{children:w},void 0),e.jsx(o.Price,i.__assign({},F,{size:n.ComponentSize.Small,"data-nosnippet":!0},{children:I}),void 0)]},void 0)]}),void 0):L?e.jsxs(o.HorizontalVariantContainer,i.__assign({},H,{children:[e.jsxs(o.HorizontalVariantRow,{children:[B&&!S&&e.jsx(o.Price,i.__assign({},F,{underlined:!0,style:{fontSize:"20px"},"data-testid":l.getTestId(x,"original-product-price"),"data-nosnippet":!0},{children:v}),void 0),e.jsxs(c,i.__assign({"data-testid":l.getTestId(x,"final-product-price"),gap:"4px"},{children:[e.jsx(o.Price,i.__assign({finalPriceStyledSmall:!0,style:{marginTop:"-5px"}},k,{size:h},{children:D}),void 0),e.jsx(o.Price,i.__assign({finalPriceStyled:!0},k,{size:h,"data-testid":"test-price-final-product-price"},{children:U[0]?U[0]:null===(d="".concat(u))||void 0===d?void 0:d.split(D)[1]}),void 0),e.jsx(o.Price,i.__assign({finalPriceStyledSmall:!0,style:{marginTop:"-6px"}},k,{size:h},{children:U[1]?U[1]:"00"}),void 0)]}),void 0)]},void 0),O&&e.jsx(o.HorizontalVariantRow,{children:O},void 0),w&&I&&e.jsxs(o.HorizontalVariantRow,{children:[e.jsx(o.BottomRowPrefix,{children:w},void 0),e.jsx(o.Price,i.__assign({},F,{size:n.ComponentSize.Small,"data-nosnippet":!0},{children:I}),void 0)]},void 0)]}),void 0):T?e.jsxs(o.ClubPriceOnTopContainer,i.__assign({},H,{children:[B&&!S&&e.jsx("div",i.__assign({style:{display:"flex"}},{children:e.jsx($,{},void 0)}),void 0),e.jsxs(c,i.__assign({"data-testid":l.getTestId(x,"final-product-price"),gap:"4px"},{children:[e.jsx(o.Price,i.__assign({finalPriceStyledSmall:!0,style:{marginTop:"-5px"}},k,{size:h},{children:D}),void 0),e.jsx(o.Price,i.__assign({finalPriceStyled:!0},k,{size:h,"data-testid":"test-price-final-product-price'"},{children:U[0]?U[0]:null===(p="".concat(u))||void 0===p?void 0:p.split(D)[1]}),void 0),e.jsx(o.Price,i.__assign({finalPriceStyledSmall:!0,style:{marginTop:"-6px"}},k,{size:h},{children:U[1]?U[1]:"00"}),void 0),O]}),void 0)]}),void 0):e.jsxs(o.Container,i.__assign({},H,{children:[B&&!S&&e.jsx($,{},void 0),e.jsxs(c,i.__assign({"data-testid":l.getTestId(x,"final-product-price")},{children:[e.jsx(o.Price,i.__assign({margin:!0,finalPriceStyledSmall:!0,style:{marginTop:"-5px"}},k,{size:h},{children:D}),void 0),e.jsx(o.Price,i.__assign({finalPriceStyled:!0},k,{size:h,"data-testid":"test-price-final-product-price'"},{children:U[0]?U[0]:null===(g="".concat(u))||void 0===g?void 0:g.split(D)[1]}),void 0),e.jsx(o.Price,i.__assign({finalPriceStyledSmall:!0,style:{marginTop:"-6px"}},k,{size:h},{children:U[1]?U[1]:"00"}),void 0)]}),void 0)]}),void 0)};
|
|
2
2
|
//# sourceMappingURL=PriceLabel.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("@emotion/styled"),t=require("./price/PriceLabel.js");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("@emotion/styled"),t=require("./price/PriceLabel.js");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r,l,a,o,p,f,c,s,d,u,m,g,x,v=i(n),y=v.default.div(r||(r=e.__makeTemplateObject(["\n display: flex;\n align-items: center;\n"],["\n display: flex;\n align-items: center;\n"]))),h=v.default.div(l||(l=e.__makeTemplateObject(["\n display: flex;\n flex-direction: column-reverse;\n align-items: flex-start;\n gap: 8px;\n"],["\n display: flex;\n flex-direction: column-reverse;\n align-items: flex-start;\n gap: 8px;\n"]))),_=v.default.p(a||(a=e.__makeTemplateObject(["\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n color: ",";\n text-decoration: ",";\n margin: ",";\n position: relative;\n margin-top: ",";\n"],["\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n color: ",";\n text-decoration: ",";\n margin: ",";\n position: relative;\n margin-top: ",";\n"])),(function(e){var n=e.weight;return n||"400"}),(function(e){var n=e.size,i=e.theme,r=e.finalPriceStyled,l=e.finalPriceStyledSmall;return t.getFontSize(n,i,r,l)}),(function(e){var n,i=e.size;return null===(n=t.getStylesBySize(i))||void 0===n?void 0:n.lineHeight}),(function(e){return e.color}),(function(e){return e.underlined?"line-through":"none"}),(function(e){var n,i=e.margin,r=e.size;return i?null===(n=t.getStylesBySize(r))||void 0===n?void 0:n.margin:"0"}),(function(e){var n=e.finalPriceStyledSmall,t=e.size;return n?"large"===t?"-6px":"-7px":"0"})),z=v.default.span(o||(o=e.__makeTemplateObject(["\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n color: ",";\n text-decoration: ",";\n margin: ",";\n position: relative;\n margin-top: ",";\n"],["\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n color: ",";\n text-decoration: ",";\n margin: ",";\n position: relative;\n margin-top: ",";\n"])),(function(e){var n=e.weight;return n||"400"}),(function(e){var n=e.size,i=e.theme,r=e.finalPriceStyled,l=e.finalPriceStyledSmall;return t.getFontSize(n,i,r,l)}),(function(e){var n,i=e.size;return null===(n=t.getStylesBySize(i))||void 0===n?void 0:n.lineHeight}),(function(e){return e.color}),(function(e){return e.underlined?"line-through":"none"}),(function(e){var n,i=e.margin,r=e.size;return i?null===(n=t.getStylesBySize(r))||void 0===n?void 0:n.margin:"0"}),(function(e){var n=e.finalPriceStyledSmall,t=e.size;return n?"large"===t?"-6px":"-7px":"0"})),b=v.default.div(p||(p=e.__makeTemplateObject(["\n margin: ",";\n display: flex;\n align-items: center;\n"],["\n margin: ",";\n display: flex;\n align-items: center;\n"])),(function(e){var n,i=e.size;return null===(n=t.getStylesBySize(i))||void 0===n?void 0:n.margin})),S=v.default.div(f||(f=e.__makeTemplateObject(["\n display: flex;\n flex-direction: ",";\n gap: ",";\n"],["\n display: flex;\n flex-direction: ",";\n gap: ",";\n"])),(function(e){return e.flexDirection}),(function(e){var n=e.gap;return void 0===n?"0.5rem":n})),j=v.default.div(c||(c=e.__makeTemplateObject(["\n margin-top: -0.4rem;\n .tooltip-wrapper {\n box-shadow: none;\n }\n"],["\n margin-top: -0.4rem;\n .tooltip-wrapper {\n box-shadow: none;\n }\n"]))),O=v.default.div(s||(s=e.__makeTemplateObject(["\n display: flex;\n"],["\n display: flex;\n"]))),P=v.default.div(d||(d=e.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n gap: 4px;\n"],["\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n gap: 4px;\n"]))),T=v.default.div(u||(u=e.__makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 8px;\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n"]))),w=v.default.div(m||(m=e.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 4px;\n"],["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 4px;\n"]))),k=v.default.div(g||(g=e.__makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 8px;\n"],["\n display: flex;\n align-items: center;\n gap: 8px;\n"]))),C=v.default.span(x||(x=e.__makeTemplateObject(["\n font-size: 12px;\n font-weight: 400;\n color: ",";\n line-height: 1;\n"],["\n font-size: 12px;\n font-weight: 400;\n color: ",";\n line-height: 1;\n"])),(function(e){return e.color||"#6b6b6b"}));exports.BottomRowPrefix=C,exports.ClubPriceOnTopContainer=h,exports.Container=y,exports.FinalPriceStyledContainer=O,exports.HorizontalVariantContainer=w,exports.HorizontalVariantRow=k,exports.OriginalPricePrefix=z,exports.Price=_,exports.PriceContainer=S,exports.PriceDiscountRow=T,exports.TagContainer=b,exports.TooltipContainer=j,exports.VerticalContainer=P;
|
|
2
2
|
//# sourceMappingURL=styles.js.map
|
package/package.json
CHANGED