@trafilea/afrodita-components 6.5.10 → 6.5.12

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
@@ -53,7 +53,7 @@ declare type Custom$1 = 'custom/atom' | 'custom/bra' | 'custom/bubbles' | 'custo
53
53
  declare type Download$1 = 'download/apple_store' | 'download/google_play';
54
54
  declare type Emoji$1 = 'emoji/blowing_kiss' | 'emoji/frowning' | 'emoji/grinning' | 'emoji/grinning_with_sweat' | 'emoji/relieved' | 'emoji/smiling_v2' | 'emoji/thinking';
55
55
  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/messenger' | 'messaging/question_circle' | 'messaging/quote_left' | 'messaging/quote_right' | 'messaging/quote_solid_left' | 'messaging/quote_solid_right';
56
- 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/vip';
56
+ 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';
57
57
  declare type Navigation$1 = 'navigation/address_information' | 'navigation/benefits' | '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_solid' | 'navigation/menu_lines' | 'navigation/search' | 'navigation/shaperbox' | 'navigation/shopping_bag' | 'navigation/shopping_bag_v2' | 'navigation/shopping_bag_v3' | 'navigation/shopping_cart' | 'navigation/shopping_cart_v2' | 'navigation/slide_dot' | 'navigation/slide_dot_solid' | 'navigation/user' | 'navigation/user_solid' | 'navigation/user_v2';
58
58
  declare type Other$1 = '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/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';
59
59
  declare type Payment$1 = 'payment/amazon' | 'payment/amex' | 'payment/jcb' | 'payment/klarna' | 'payment/master_card' | 'payment/paypal' | 'payment/visa';
@@ -538,6 +538,8 @@ declare namespace Messaging {
538
538
 
539
539
  declare const BirthdayGifts: IconComponent;
540
540
 
541
+ declare const Cart: IconComponent;
542
+
541
543
  declare const Community: IconComponent;
542
544
 
543
545
  declare const DealsOffers: IconComponent;
@@ -567,6 +569,7 @@ declare const StyleFashionContent: IconComponent;
567
569
  declare const VIP: IconComponent;
568
570
 
569
571
  declare const MyAccount_BirthdayGifts: typeof BirthdayGifts;
572
+ declare const MyAccount_Cart: typeof Cart;
570
573
  declare const MyAccount_Community: typeof Community;
571
574
  declare const MyAccount_DealsOffers: typeof DealsOffers;
572
575
  declare const MyAccount_FreeReturns: typeof FreeReturns;
@@ -584,6 +587,7 @@ declare const MyAccount_VIP: typeof VIP;
584
587
  declare namespace MyAccount {
585
588
  export {
586
589
  MyAccount_BirthdayGifts as BirthdayGifts,
590
+ MyAccount_Cart as Cart,
587
591
  MyAccount_Community as Community,
588
592
  MyAccount_DealsOffers as DealsOffers,
589
593
  MyAccount_FreeReturns as FreeReturns,
@@ -2997,6 +3001,10 @@ interface SizeFitGuideProps {
2997
3001
  }
2998
3002
  declare const SizeFitGuide: ({ title, fitPercentage, onClick, onClickFitPercentage, hideIcon, }: SizeFitGuideProps) => JSX.Element;
2999
3003
 
3004
+ declare type Size = 'S' | 'XS / S' | 'M' | 'M / L' | 'L' | 'XL' | 'XL / 2XL' | '2XL' | '3XL' | '4XL';
3005
+ declare type SizeTipReference = {
3006
+ [key in Size]?: string;
3007
+ };
3000
3008
  interface SizeSelectorProps {
3001
3009
  label: string;
3002
3010
  sizes: SizeOption[];
@@ -3006,8 +3014,9 @@ interface SizeSelectorProps {
3006
3014
  inline?: boolean;
3007
3015
  width?: string;
3008
3016
  hasSizeGuide?: boolean;
3017
+ sizeTipReferences?: SizeTipReference;
3009
3018
  }
3010
- declare const SizeSelector: ({ label, sizes, selectedValue, onChange, onClickSizeTip, inline, width, hasSizeGuide, }: SizeSelectorProps) => _emotion_react_jsx_runtime.JSX.Element;
3019
+ declare const SizeSelector: ({ label, sizes, selectedValue, onChange, onClickSizeTip, inline, width, hasSizeGuide, sizeTipReferences, }: SizeSelectorProps) => _emotion_react_jsx_runtime.JSX.Element;
3011
3020
 
3012
3021
  interface SliderNavigationProps {
3013
3022
  children: JSX.Element | JSX.Element[] | StyledComponent<any>;
@@ -3668,6 +3668,8 @@ var Messaging = /*#__PURE__*/Object.freeze({
3668
3668
 
3669
3669
  var BirthdayGifts = function (props) { return (jsx$1(Icon$1, __assign$1({}, props, { name: "myaccount/birthday_gifts" }), void 0)); };
3670
3670
 
3671
+ var Cart = function (props) { return jsx$1(Icon$1, __assign$1({}, props, { name: "myaccount/cart" }), void 0); };
3672
+
3671
3673
  var Community = function (props) { return jsx$1(Icon$1, __assign$1({}, props, { name: "myaccount/community" }), void 0); };
3672
3674
 
3673
3675
  var DealsOffers = function (props) { return (jsx$1(Icon$1, __assign$1({}, props, { name: "myaccount/deals_offers" }), void 0)); };
@@ -3699,6 +3701,7 @@ var VIP = function (props) { return jsx$1(Icon$1, __assign$1({}, props, { name:
3699
3701
  var MyAccount = /*#__PURE__*/Object.freeze({
3700
3702
  __proto__: null,
3701
3703
  BirthdayGifts: BirthdayGifts,
3704
+ Cart: Cart,
3702
3705
  Community: Community,
3703
3706
  DealsOffers: DealsOffers,
3704
3707
  FreeReturns: FreeReturns,
@@ -18876,22 +18879,14 @@ var ButtonsContainer = newStyled.div(templateObject_1$c || (templateObject_1$c =
18876
18879
  var Row = newStyled.div(templateObject_2$8 || (templateObject_2$8 = __makeTemplateObject(["\n gap: 5px;\n display: flex;\n margin: 5px 0 3px;\n flex-wrap: wrap;\n\n & button {\n font-weight: 600;\n }\n"], ["\n gap: 5px;\n display: flex;\n margin: 5px 0 3px;\n flex-wrap: wrap;\n\n & button {\n font-weight: 600;\n }\n"])));
18877
18880
  var templateObject_1$c, templateObject_2$8;
18878
18881
 
18879
- var getPreLabel = function (sizeLabel) {
18880
- if (sizeLabel === '3XL' || sizeLabel === '4XL') {
18881
- return 'Runs big - ';
18882
- }
18883
- if (sizeLabel === 'M' || sizeLabel === 'L' || sizeLabel === 'M / L') {
18884
- return 'Runs small - ';
18885
- }
18886
- return '';
18887
- };
18888
18882
  var SizeSelector = function (_a) {
18889
- var label = _a.label, sizes = _a.sizes, selectedValue = _a.selectedValue, onChange = _a.onChange, onClickSizeTip = _a.onClickSizeTip, _b = _a.inline, inline = _b === void 0 ? false : _b, width = _a.width, _c = _a.hasSizeGuide, hasSizeGuide = _c === void 0 ? false : _c;
18883
+ var _b;
18884
+ 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;
18890
18885
  return (jsxs("div", __assign$1({ css: {
18891
18886
  display: 'flex',
18892
18887
  flexDirection: inline ? 'row' : 'column',
18893
18888
  alignItems: inline ? 'center' : 'start',
18894
- } }, { children: [jsxs(Text$8, __assign$1({ variant: "body", weight: "regular", size: "small", css: { alignSelf: inline ? 'start' : 'inherit', padding: inline ? '0.75rem 0' : '0' } }, { children: [label, !inline && (jsx(Text$8, __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$8, __assign$1({ variant: "body", weight: "demi", size: "small", css: { display: 'flex' } }, { children: "Sizing Tip:" }), void 0), jsxs(Text$8, __assign$1({ variant: "body", weight: "regular", size: "small" }, { children: [getPreLabel(selectedValue.label), "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) {
18889
+ } }, { children: [jsxs(Text$8, __assign$1({ variant: "body", weight: "regular", size: "small", css: { alignSelf: inline ? 'start' : 'inherit', padding: inline ? '0.75rem 0' : '0' } }, { children: [label, !inline && (jsx(Text$8, __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$8, __assign$1({ variant: "body", weight: "demi", size: "small", css: { display: 'flex' } }, { children: "Sizing Tip:" }), void 0), jsx(Text$8, __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) {
18895
18890
  var active = !size.disabled && size.label === selectedValue.label;
18896
18891
  return (jsx(SelectorSecondary, { css: {
18897
18892
  padding: '0.75rem 1rem 0.625rem',