@trafilea/afrodita-components 7.1.6 → 7.1.8

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.
@@ -1,2 +1,2 @@
1
- import{__assign as t}from"tslib";import{jsxs as i,jsx as o}from"react/jsx-runtime";import{useTheme as a}from"../../../core/theme/Theme.js";import{Wrapper as r,TotalContainer as e,TotalLabel as d,GrandTotal as l,Currency as n,Container as c,DiscountText as h,DiscountAmount as s}from"./styled.js";var v=function(v){var m=v.total,g=v.currency,p=v.saving,u=v.highlightColor,b=void 0===u?"#2f806a":u,f=v.showTotalLabel,T=void 0!==f&&f,w=a();return i(r,t({"data-testid":"total-wrapper"},{children:[i(e,t({showTotalLabel:T},{children:[T&&o(d,t({variant:"heading6",size:"regular",weight:"bold"},{children:"Total"}),void 0),i(l,t({color:w.component.total.basicTotal.amount.color,"data-testid":"total-price"},{children:[o(n,{children:g},void 0),m]}),void 0)]}),void 0),p&&i(c,t({"data-testid":"subtotal-container",highlightColor:b},{children:[o(h,t({"data-testid":"saving-title"},{children:p.savingText}),void 0),o(s,t({"data-testid":"saving-price"},{children:p.amount}),void 0)]}),void 0)]}),void 0)};export{v as Total};
1
+ import{__assign as i}from"tslib";import{jsxs as t,jsx as o}from"react/jsx-runtime";import{useTheme as e}from"../../../core/theme/Theme.js";import"../../atoms/PriceLabel/PriceLabel.js";import"../../atoms/PriceLabelV2/PriceLabelV2.js";import"../../atoms/ClubPriceMemberLabel/ClubPriceMemberLabel.styled.js";import"../../atoms/HorizontalDivider/HorizontalDivider.js";import{Icon as r}from"../../atoms/Icon/Icon.js";import{Image as a}from"../../atoms/Image/Image.js";import"react";import"../../atoms/Toggle/toggle.styled.js";import{Wrapper as l,TotalContainer as s,TotalLabel as d,GrandTotal as h,Currency as m,Container as n,SavingsSvgContainer as c,StarsContainer as g,DiscountText as v,DiscountAmount as p}from"./styled.js";var b=function(b){var f=b.total,j=b.currency,u=b.saving,L=b.highlightColor,x=void 0===L?"#2f806a":L,T=b.showTotalLabel,w=void 0!==T&&T,P=b.highlightSavings,y=e(),C="v1"===P||"v2"===P;return t(l,i({"data-testid":"total-wrapper"},{children:[t(s,i({showTotalLabel:w},{children:[w&&o(d,i({variant:"heading6",size:"regular",weight:"bold"},{children:"Total"}),void 0),t(h,i({color:y.component.total.basicTotal.amount.color,"data-testid":"total-price"},{children:[o(m,{children:j},void 0),f]}),void 0)]}),void 0),u&&t(n,i({"data-testid":"subtotal-container",highlightColor:x,highlightSavings:P},{children:[C&&t(c,{children:[o(r,{name:"other/bookmark",width:"20px",height:"20px",fill:"#2F806A"},void 0),"v2"===P&&o(g,{children:o(a,{src:"https://cdn.shapermint.com/assets/common/gifs/stars.gif",alt:"stars",width:"35px",height:"35px"},void 0)},void 0)]},void 0),o(v,i({"data-testid":"saving-title",isSavingsHighlighted:C},{children:u.savingText}),void 0),o(p,i({"data-testid":"saving-price",isSavingsHighlighted:C},{children:u.amount}),void 0)]}),void 0)]}),void 0)};export{b as Total};
2
2
  //# sourceMappingURL=Total.js.map
@@ -1,2 +1,2 @@
1
- import{__makeTemplateObject as n}from"tslib";import t from"@emotion/styled";import{Text as e}from"../../text/Text.js";var i,o,r,l,a,c,m,f,g=t.div(i||(i=n(["\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n"],["\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n"]))),s=t.h1(o||(o=n(["\n margin: 0;\n font-size: 1.5rem;\n line-height: 2rem;\n font-weight: 700;\n color: ",";\n display: block;\n align-items: center;\n"],["\n margin: 0;\n font-size: 1.5rem;\n line-height: 2rem;\n font-weight: 700;\n color: ",";\n display: block;\n align-items: center;\n"])),(function(n){return n.color})),h=t.span(r||(r=n(["\n margin: 0;\n margin-right: 0.625rem;\n font-weight: 600;\n color: ",";\n font-size: ",";\n line-height: ",";\n align-self: ",";\n"],["\n margin: 0;\n margin-right: 0.625rem;\n font-weight: 600;\n color: ",";\n font-size: ",";\n line-height: ",";\n align-self: ",";\n"])),(function(n){return n.theme.component.total.basicTotal.currency.color}),(function(n){return n.theme.component.total.basicTotal.currency.fontSize}),(function(n){return n.theme.component.total.basicTotal.currency.lineHeight}),(function(n){return n.theme.component.total.basicTotal.currency.alignSelf})),p=t.div(l||(l=n(["\n display: flex;\n justify-content: space-between;\n width: 100%;\n margin-top: 0.625rem;\n color: ",";\n align-items: center;\n"],["\n display: flex;\n justify-content: space-between;\n width: 100%;\n margin-top: 0.625rem;\n color: ",";\n align-items: center;\n"])),(function(n){return n.highlightColor})),u=t(p)(a||(a=n(["\n justify-content: ",";\n margin-top: 0;\n"],["\n justify-content: ",";\n margin-top: 0;\n"])),(function(n){return n.showTotalLabel?"space-between":"flex-end"})),x=t.h3(c||(c=n(["\n margin: 0;\n font-size: 14px;\n line-height: 22px;\n font-weight: 600;\n"],["\n margin: 0;\n font-size: 14px;\n line-height: 22px;\n font-weight: 600;\n"]))),d=t.h3(m||(m=n(["\n margin: 0;\n font-size: 18px;\n line-height: 28px;\n font-weight: ",";\n"],["\n margin: 0;\n font-size: 18px;\n line-height: 28px;\n font-weight: ",";\n"])),(function(n){return n.theme.component.total.basicTotal.savings.amountFontWeight})),y=t(e)(f||(f=n(["\n font-size: 20px;\n"],["\n font-size: 20px;\n"])));export{p as Container,h as Currency,d as DiscountAmount,x as DiscountText,s as GrandTotal,u as TotalContainer,y as TotalLabel,g as Wrapper};
1
+ import{__makeTemplateObject as n}from"tslib";import{css as t}from"@emotion/react";import e from"@emotion/styled";import{Text as i}from"../../text/Text.js";var o,r,l,a,s,f,g,c,h,p,m,u,x,d=e.div(o||(o=n(["\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n"],["\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n"]))),w=e.h1(r||(r=n(["\n margin: 0;\n font-size: 1.5rem;\n line-height: 2rem;\n font-weight: 700;\n color: ",";\n display: block;\n align-items: center;\n"],["\n margin: 0;\n font-size: 1.5rem;\n line-height: 2rem;\n font-weight: 700;\n color: ",";\n display: block;\n align-items: center;\n"])),(function(n){return n.color})),y=e.span(l||(l=n(["\n margin: 0;\n margin-right: 0.625rem;\n font-weight: 600;\n color: ",";\n font-size: ",";\n line-height: ",";\n align-self: ",";\n"],["\n margin: 0;\n margin-right: 0.625rem;\n font-weight: 600;\n color: ",";\n font-size: ",";\n line-height: ",";\n align-self: ",";\n"])),(function(n){return n.theme.component.total.basicTotal.currency.color}),(function(n){return n.theme.component.total.basicTotal.currency.fontSize}),(function(n){return n.theme.component.total.basicTotal.currency.lineHeight}),(function(n){return n.theme.component.total.basicTotal.currency.alignSelf})),b=e.div(s||(s=n(["\n display: flex;\n justify-content: space-between;\n width: 100%;\n margin-top: 0.625rem;\n color: ",";\n align-items: center;\n\n ","\n"],["\n display: flex;\n justify-content: space-between;\n width: 100%;\n margin-top: 0.625rem;\n color: ",";\n align-items: center;\n\n ","\n"])),(function(n){return n.highlightColor}),(function(e){var i=e.highlightSavings;if(i)return t(a||(a=n(["\n justify-content: unset;\n gap: 0.5rem;\n background-color: ",";\n width: auto;\n align-self: end;\n padding: 4px;\n border-radius: 4px;\n "],["\n justify-content: unset;\n gap: 0.5rem;\n background-color: ",";\n width: auto;\n align-self: end;\n padding: 4px;\n border-radius: 4px;\n "])),"v1"===i&&"#dff1ec")})),z=e(b)(f||(f=n(["\n justify-content: ",";\n margin-top: 0;\n"],["\n justify-content: ",";\n margin-top: 0;\n"])),(function(n){return n.showTotalLabel?"space-between":"flex-end"})),v=e.h3(c||(c=n(["\n margin: 0;\n font-size: 14px;\n line-height: 22px;\n font-weight: 600;\n\n ","\n"],["\n margin: 0;\n font-size: 14px;\n line-height: 22px;\n font-weight: 600;\n\n ","\n"])),(function(e){if(e.isSavingsHighlighted)return t(g||(g=n(["\n font-weight: 700;\n font-size: 16px;\n line-height: 24px;\n text-transform: uppercase;\n "],["\n font-weight: 700;\n font-size: 16px;\n line-height: 24px;\n text-transform: uppercase;\n "])))})),j=e.h3(p||(p=n(["\n margin: 0;\n font-size: 18px;\n line-height: 28px;\n font-weight: ",";\n\n ","\n"],["\n margin: 0;\n font-size: 18px;\n line-height: 28px;\n font-weight: ",";\n\n ","\n"])),(function(n){return n.theme.component.total.basicTotal.savings.amountFontWeight}),(function(e){if(e.isSavingsHighlighted)return t(h||(h=n(["\n font-weight: 700;\n font-size: 16px;\n line-height: 24px;\n "],["\n font-weight: 700;\n font-size: 16px;\n line-height: 24px;\n "])))})),T=e(i)(m||(m=n(["\n font-size: 20px;\n"],["\n font-size: 20px;\n"]))),S=e.div(u||(u=n(["\n display: flex;\n align-items: center;\n"],["\n display: flex;\n align-items: center;\n"]))),k=e.div(x||(x=n(["\n position: absolute;\n transform: translate(10px, -18px);\n"],["\n position: absolute;\n transform: translate(10px, -18px);\n"])));export{b as Container,y as Currency,j as DiscountAmount,v as DiscountText,w as GrandTotal,S as SavingsSvgContainer,k as StarsContainer,z as TotalContainer,T as TotalLabel,d as Wrapper};
2
2
  //# sourceMappingURL=styled.js.map
package/build/index.d.ts CHANGED
@@ -186,7 +186,7 @@ declare type Emoji$1 = 'emoji/blowing_kiss' | 'emoji/frowning' | 'emoji/grinning
186
186
  declare type Messaging$1 = 'messaging/ada_chat' | 'messaging/comment' | 'messaging/comment_dots' | 'messaging/comment_light' | 'messaging/comment_money' | 'messaging/community' | 'messaging/light' | 'messaging/light_bulb' | 'messaging/light_bulb_solid' | 'messaging/mail' | 'messaging/mail_sent' | 'messaging/messenger' | 'messaging/question_circle' | 'messaging/quote_left' | 'messaging/quote_right' | 'messaging/quote_solid_left' | 'messaging/quote_solid_right' | 'messaging/question_circle_light';
187
187
  declare type MyAccount$1 = 'myaccount/birthday_gifts' | 'myaccount/community' | 'myaccount/deals_offers' | 'myaccount/free_returns' | 'myaccount/free_shipping' | 'myaccount/guard' | 'myaccount/members_only_discount' | 'myaccount/members_only_discount_opposite' | 'myaccount/personal_stylist' | 'myaccount/priority_shipping' | 'myaccount/profile' | 'myaccount/place_image' | 'myaccount/sale_tag' | 'myaccount/style_fashion_content' | 'myaccount/cart' | 'myaccount/vip' | 'myaccount/calendar' | 'myaccount/skin_type' | 'myaccount/magnify' | 'myaccount/beauty_products' | 'myaccount/email' | 'myaccount/contact';
188
188
  declare type Navigation$1 = 'navigation/address_information' | 'navigation/benefits' | 'navigation/benefits_v2' | 'navigation/club_membership' | 'navigation/ellipsis' | 'navigation/ellipsis_horizontal' | 'navigation/filters' | 'navigation/hamburger' | 'navigation/home' | 'navigation/home_solid' | 'navigation/loading' | 'navigation/lock' | 'navigation/lock_solid' | 'navigation/map_marker' | 'navigation/map_marker_light' | 'navigation/map_solid' | 'navigation/menu_lines' | 'navigation/search' | 'navigation/shaperbox' | 'navigation/shopping_bag' | 'navigation/shopping_bag_v2' | 'navigation/shopping_bag_v3' | 'navigation/shopping_bag_v4' | 'navigation/shopping_cart' | 'navigation/shopping_cart_v2' | 'navigation/slide_dot' | 'navigation/slide_dot_solid' | 'navigation/user' | 'navigation/address_information_light' | 'navigation/user_solid' | 'navigation/user_v2' | 'navigation/filters_v2' | 'navigation/gift';
189
- declare type Other$1 = 'other/alarm_on' | 'other/bod_con_label' | 'other/bod_con_mobile_label' | 'other/call_us' | 'other/chat' | 'other/email' | 'other/express_shipping' | 'other/fit_guarantee' | 'other/fit_predictor' | 'other/free_exchange' | 'other/get_discount' | 'other/hassel_free_returns' | 'other/loading' | 'other/mc_afee' | 'other/megafone' | 'other/play' | 'other/qr_code' | 'other/question_with_circle' | 'other/revel_beauty' | 'other/shapermint' | 'other/shapermint_club_icon' | 'other/shapermint_club_icon2' | 'other/shapermint_club_label' | 'other/shapermint_club_mobile_label' | 'other/shapermint_logo' | 'other/shm_club' | 'other/shop_now' | 'other/sign_form' | 'other/sixty_days_tsd' | 'other/the_bod_con' | 'other/the_spa_dr' | 'other/lock' | 'other/help_center' | 'other/arrow_outward' | 'other/coupons' | 'other/flag_usa' | 'other/flag_canada' | 'other/flag_aus' | 'other/flag_uk' | 'other/flag_nz' | 'other/flag_sg';
189
+ declare type Other$1 = 'other/alarm_on' | 'other/bod_con_label' | 'other/bod_con_mobile_label' | 'other/call_us' | 'other/chat' | 'other/email' | 'other/express_shipping' | 'other/fit_guarantee' | 'other/fit_predictor' | 'other/free_exchange' | 'other/get_discount' | 'other/hassel_free_returns' | 'other/loading' | 'other/mc_afee' | 'other/megafone' | 'other/play' | 'other/qr_code' | 'other/question_with_circle' | 'other/revel_beauty' | 'other/shapermint' | 'other/shapermint_club_icon' | 'other/shapermint_club_icon2' | 'other/shapermint_club_label' | 'other/shapermint_club_mobile_label' | 'other/shapermint_logo' | 'other/shm_club' | 'other/shop_now' | 'other/sign_form' | 'other/sixty_days_tsd' | 'other/the_bod_con' | 'other/the_spa_dr' | 'other/lock' | 'other/help_center' | 'other/arrow_outward' | 'other/coupons' | 'other/flag_usa' | 'other/flag_canada' | 'other/flag_aus' | 'other/flag_uk' | 'other/flag_nz' | 'other/flag_sg' | 'other/bookmark' | 'other/stars';
190
190
  declare type Payment$1 = 'payment/amazon' | 'payment/amex' | 'payment/jcb' | 'payment/klarna' | 'payment/master_card' | 'payment/paypal' | 'payment/visa' | 'payment/payment_methods';
191
191
  declare type PDP$1 = 'pdp/circle_number' | 'pdp/clock' | 'pdp/drop' | 'pdp/drop_empty' | 'pdp/error_cross' | 'pdp/flag_usa' | 'pdp/hours' | 'pdp/klarna_logo' | 'pdp/light_bulb' | 'pdp/free_returns_v2' | 'pdp/free_shipping_v2' | 'pdp/loading_trafisizy' | 'pdp/minus' | 'pdp/moon' | 'pdp/tape_measure' | 'pdp/new_clock' | 'pdp/play_mini' | 'pdp/play_video' | 'pdp/plus' | 'pdp/rule' | 'pdp/shipping' | 'pdp/shipping_empty' | 'pdp/size_empty' | 'pdp/size_empty_v2' | 'pdp/size_with_stars' | 'pdp/star' | 'pdp/stars' | 'pdp/star_empty' | 'pdp/star_half' | 'pdp/stopwatch' | 'pdp/drop_v2' | 'pdp/few_drops' | 'pdp/trust_badge' | 'pdp/verified' | 'pdp/wrinkle_free_face' | 'pdp/skin_appearance' | 'pdp/shine_heart' | 'pdp/cruelty_free' | 'pdp/ph_formula' | 'pdp/box' | 'pdp/afterpay_logo' | 'pdp/trustpilot_star' | 'pdp/trustpilot_half_star';
192
192
  declare type SlideDots$1 = 'slidedots/slide_dot';
@@ -4150,10 +4150,11 @@ interface TotalProps {
4150
4150
  savingText: string;
4151
4151
  };
4152
4152
  showTotalLabel?: boolean;
4153
+ highlightSavings?: 'v1' | 'v2';
4153
4154
  }
4154
4155
 
4155
4156
  declare const Totals: {
4156
- Total: ({ total, currency, saving, highlightColor, showTotalLabel, }: TotalProps) => JSX.Element;
4157
+ Total: ({ total, currency, saving, highlightColor, showTotalLabel, highlightSavings, }: TotalProps) => JSX.Element;
4157
4158
  Subtotal: ({ subtotal, shipping, taxes, coupon, highlightColor, }: SubtotalProps) => JSX.Element;
4158
4159
  };
4159
4160
 
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),i=require("../../../core/theme/Theme.js"),a=require("./styled.js");exports.Total=function(s){var o=s.total,r=s.currency,n=s.saving,l=s.highlightColor,d=void 0===l?"#2f806a":l,c=s.showTotalLabel,h=void 0!==c&&c,u=i.useTheme();return t.jsxs(a.Wrapper,e.__assign({"data-testid":"total-wrapper"},{children:[t.jsxs(a.TotalContainer,e.__assign({showTotalLabel:h},{children:[h&&t.jsx(a.TotalLabel,e.__assign({variant:"heading6",size:"regular",weight:"bold"},{children:"Total"}),void 0),t.jsxs(a.GrandTotal,e.__assign({color:u.component.total.basicTotal.amount.color,"data-testid":"total-price"},{children:[t.jsx(a.Currency,{children:r},void 0),o]}),void 0)]}),void 0),n&&t.jsxs(a.Container,e.__assign({"data-testid":"subtotal-container",highlightColor:d},{children:[t.jsx(a.DiscountText,e.__assign({"data-testid":"saving-title"},{children:n.savingText}),void 0),t.jsx(a.DiscountAmount,e.__assign({"data-testid":"saving-price"},{children:n.amount}),void 0)]}),void 0)]}),void 0)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),t=require("../../../core/theme/Theme.js");require("../../atoms/PriceLabel/PriceLabel.js"),require("../../atoms/PriceLabelV2/PriceLabelV2.js"),require("../../atoms/ClubPriceMemberLabel/ClubPriceMemberLabel.styled.js"),require("../../atoms/HorizontalDivider/HorizontalDivider.js");var s=require("../../atoms/Icon/Icon.js"),a=require("../../atoms/Image/Image.js");require("react"),require("../../atoms/Toggle/toggle.styled.js");var r=require("./styled.js");exports.Total=function(o){var n=o.total,l=o.currency,d=o.saving,g=o.highlightColor,h=void 0===g?"#2f806a":g,c=o.showTotalLabel,v=void 0!==c&&c,u=o.highlightSavings,m=t.useTheme(),j="v1"===u||"v2"===u;return i.jsxs(r.Wrapper,e.__assign({"data-testid":"total-wrapper"},{children:[i.jsxs(r.TotalContainer,e.__assign({showTotalLabel:v},{children:[v&&i.jsx(r.TotalLabel,e.__assign({variant:"heading6",size:"regular",weight:"bold"},{children:"Total"}),void 0),i.jsxs(r.GrandTotal,e.__assign({color:m.component.total.basicTotal.amount.color,"data-testid":"total-price"},{children:[i.jsx(r.Currency,{children:l},void 0),n]}),void 0)]}),void 0),d&&i.jsxs(r.Container,e.__assign({"data-testid":"subtotal-container",highlightColor:h,highlightSavings:u},{children:[j&&i.jsxs(r.SavingsSvgContainer,{children:[i.jsx(s.Icon,{name:"other/bookmark",width:"20px",height:"20px",fill:"#2F806A"},void 0),"v2"===u&&i.jsx(r.StarsContainer,{children:i.jsx(a.Image,{src:"https://cdn.shapermint.com/assets/common/gifs/stars.gif",alt:"stars",width:"35px",height:"35px"},void 0)},void 0)]},void 0),i.jsx(r.DiscountText,e.__assign({"data-testid":"saving-title",isSavingsHighlighted:j},{children:d.savingText}),void 0),i.jsx(r.DiscountAmount,e.__assign({"data-testid":"saving-price",isSavingsHighlighted:j},{children:d.amount}),void 0)]}),void 0)]}),void 0)};
2
2
  //# sourceMappingURL=Total.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=require("tslib"),e=require("@emotion/styled"),t=require("../../text/Text.js");function i(n){return n&&"object"==typeof n&&"default"in n?n:{default:n}}var o,r,a,l,c,m,s,f,p=i(e),u=p.default.div(o||(o=n.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n"],["\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n"]))),g=p.default.h1(r||(r=n.__makeTemplateObject(["\n margin: 0;\n font-size: 1.5rem;\n line-height: 2rem;\n font-weight: 700;\n color: ",";\n display: block;\n align-items: center;\n"],["\n margin: 0;\n font-size: 1.5rem;\n line-height: 2rem;\n font-weight: 700;\n color: ",";\n display: block;\n align-items: center;\n"])),(function(n){return n.color})),h=p.default.span(a||(a=n.__makeTemplateObject(["\n margin: 0;\n margin-right: 0.625rem;\n font-weight: 600;\n color: ",";\n font-size: ",";\n line-height: ",";\n align-self: ",";\n"],["\n margin: 0;\n margin-right: 0.625rem;\n font-weight: 600;\n color: ",";\n font-size: ",";\n line-height: ",";\n align-self: ",";\n"])),(function(n){return n.theme.component.total.basicTotal.currency.color}),(function(n){return n.theme.component.total.basicTotal.currency.fontSize}),(function(n){return n.theme.component.total.basicTotal.currency.lineHeight}),(function(n){return n.theme.component.total.basicTotal.currency.alignSelf})),x=p.default.div(l||(l=n.__makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n width: 100%;\n margin-top: 0.625rem;\n color: ",";\n align-items: center;\n"],["\n display: flex;\n justify-content: space-between;\n width: 100%;\n margin-top: 0.625rem;\n color: ",";\n align-items: center;\n"])),(function(n){return n.highlightColor})),d=p.default(x)(c||(c=n.__makeTemplateObject(["\n justify-content: ",";\n margin-top: 0;\n"],["\n justify-content: ",";\n margin-top: 0;\n"])),(function(n){return n.showTotalLabel?"space-between":"flex-end"})),b=p.default.h3(m||(m=n.__makeTemplateObject(["\n margin: 0;\n font-size: 14px;\n line-height: 22px;\n font-weight: 600;\n"],["\n margin: 0;\n font-size: 14px;\n line-height: 22px;\n font-weight: 600;\n"]))),T=p.default.h3(s||(s=n.__makeTemplateObject(["\n margin: 0;\n font-size: 18px;\n line-height: 28px;\n font-weight: ",";\n"],["\n margin: 0;\n font-size: 18px;\n line-height: 28px;\n font-weight: ",";\n"])),(function(n){return n.theme.component.total.basicTotal.savings.amountFontWeight})),y=p.default(t.Text)(f||(f=n.__makeTemplateObject(["\n font-size: 20px;\n"],["\n font-size: 20px;\n"])));exports.Container=x,exports.Currency=h,exports.DiscountAmount=T,exports.DiscountText=b,exports.GrandTotal=g,exports.TotalContainer=d,exports.TotalLabel=y,exports.Wrapper=u;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=require("tslib"),e=require("@emotion/react"),t=require("@emotion/styled"),i=require("../../text/Text.js");function o(n){return n&&"object"==typeof n&&"default"in n?n:{default:n}}var a,r,l,s,c,p,f,m,g,u,h,x,d,b=o(t),_=b.default.div(a||(a=n.__makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n"],["\n display: flex;\n flex-direction: column;\n align-items: flex-end;\n"]))),T=b.default.h1(r||(r=n.__makeTemplateObject(["\n margin: 0;\n font-size: 1.5rem;\n line-height: 2rem;\n font-weight: 700;\n color: ",";\n display: block;\n align-items: center;\n"],["\n margin: 0;\n font-size: 1.5rem;\n line-height: 2rem;\n font-weight: 700;\n color: ",";\n display: block;\n align-items: center;\n"])),(function(n){return n.color})),j=b.default.span(l||(l=n.__makeTemplateObject(["\n margin: 0;\n margin-right: 0.625rem;\n font-weight: 600;\n color: ",";\n font-size: ",";\n line-height: ",";\n align-self: ",";\n"],["\n margin: 0;\n margin-right: 0.625rem;\n font-weight: 600;\n color: ",";\n font-size: ",";\n line-height: ",";\n align-self: ",";\n"])),(function(n){return n.theme.component.total.basicTotal.currency.color}),(function(n){return n.theme.component.total.basicTotal.currency.fontSize}),(function(n){return n.theme.component.total.basicTotal.currency.lineHeight}),(function(n){return n.theme.component.total.basicTotal.currency.alignSelf})),y=b.default.div(c||(c=n.__makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n width: 100%;\n margin-top: 0.625rem;\n color: ",";\n align-items: center;\n\n ","\n"],["\n display: flex;\n justify-content: space-between;\n width: 100%;\n margin-top: 0.625rem;\n color: ",";\n align-items: center;\n\n ","\n"])),(function(n){return n.highlightColor}),(function(t){var i=t.highlightSavings;if(i)return e.css(s||(s=n.__makeTemplateObject(["\n justify-content: unset;\n gap: 0.5rem;\n background-color: ",";\n width: auto;\n align-self: end;\n padding: 4px;\n border-radius: 4px;\n "],["\n justify-content: unset;\n gap: 0.5rem;\n background-color: ",";\n width: auto;\n align-self: end;\n padding: 4px;\n border-radius: 4px;\n "])),"v1"===i&&"#dff1ec")})),w=b.default(y)(p||(p=n.__makeTemplateObject(["\n justify-content: ",";\n margin-top: 0;\n"],["\n justify-content: ",";\n margin-top: 0;\n"])),(function(n){return n.showTotalLabel?"space-between":"flex-end"})),k=b.default.h3(m||(m=n.__makeTemplateObject(["\n margin: 0;\n font-size: 14px;\n line-height: 22px;\n font-weight: 600;\n\n ","\n"],["\n margin: 0;\n font-size: 14px;\n line-height: 22px;\n font-weight: 600;\n\n ","\n"])),(function(t){if(t.isSavingsHighlighted)return e.css(f||(f=n.__makeTemplateObject(["\n font-weight: 700;\n font-size: 16px;\n line-height: 24px;\n text-transform: uppercase;\n "],["\n font-weight: 700;\n font-size: 16px;\n line-height: 24px;\n text-transform: uppercase;\n "])))})),v=b.default.h3(u||(u=n.__makeTemplateObject(["\n margin: 0;\n font-size: 18px;\n line-height: 28px;\n font-weight: ",";\n\n ","\n"],["\n margin: 0;\n font-size: 18px;\n line-height: 28px;\n font-weight: ",";\n\n ","\n"])),(function(n){return n.theme.component.total.basicTotal.savings.amountFontWeight}),(function(t){if(t.isSavingsHighlighted)return e.css(g||(g=n.__makeTemplateObject(["\n font-weight: 700;\n font-size: 16px;\n line-height: 24px;\n "],["\n font-weight: 700;\n font-size: 16px;\n line-height: 24px;\n "])))})),z=b.default(i.Text)(h||(h=n.__makeTemplateObject(["\n font-size: 20px;\n"],["\n font-size: 20px;\n"]))),O=b.default.div(x||(x=n.__makeTemplateObject(["\n display: flex;\n align-items: center;\n"],["\n display: flex;\n align-items: center;\n"]))),S=b.default.div(d||(d=n.__makeTemplateObject(["\n position: absolute;\n transform: translate(10px, -18px);\n"],["\n position: absolute;\n transform: translate(10px, -18px);\n"])));exports.Container=y,exports.Currency=j,exports.DiscountAmount=v,exports.DiscountText=k,exports.GrandTotal=T,exports.SavingsSvgContainer=O,exports.StarsContainer=S,exports.TotalContainer=w,exports.TotalLabel=z,exports.Wrapper=_;
2
2
  //# sourceMappingURL=styled.js.map
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Trafilea's Design System",
4
4
  "author": "Trafilea",
5
5
  "repository": "https://github.com/trafilea/afrodita-components",
6
- "version": "7.1.6",
6
+ "version": "7.1.8",
7
7
  "private": false,
8
8
  "main": "build/lib/index.js",
9
9
  "style": "build/es/index.css",