@trafilea/afrodita-components 6.0.1 → 6.1.1

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
@@ -20,8 +20,10 @@ interface HurryUpProps {
20
20
  showTimer?: boolean;
21
21
  iconSize?: number;
22
22
  textPosition?: 'left' | 'right' | 'center';
23
+ showSeconds?: boolean;
24
+ timerColor?: string;
23
25
  }
24
- declare const HurryUp: ({ hurryUpText, backgroundColor, iconSize, textPosition, showTimer, }: HurryUpProps) => JSX.Element;
26
+ declare const HurryUp: ({ hurryUpText, backgroundColor, iconSize, textPosition, showTimer, showSeconds, timerColor, }: HurryUpProps) => JSX.Element;
25
27
 
26
28
  interface PackOption$1 {
27
29
  label: string;
@@ -64,7 +66,7 @@ declare type Emoji$1 = 'emoji/blowing_kiss' | 'emoji/frowning' | 'emoji/grinning
64
66
  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';
65
67
  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/sale_tag' | 'myaccount/style_fashion_content' | 'myaccount/vip';
66
68
  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';
67
- 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';
69
+ 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';
68
70
  declare type Payment$1 = 'payment/amazon' | 'payment/amex' | 'payment/jcb' | 'payment/klarna' | 'payment/master_card' | 'payment/paypal' | 'payment/visa';
69
71
  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/minus' | 'pdp/moon' | 'pdp/new_clock' | 'pdp/play_mini' | 'pdp/plus' | 'pdp/rule' | 'pdp/shipping' | 'pdp/shipping_empty' | 'pdp/size_empty' | 'pdp/size_empty_v2' | 'pdp/star' | 'pdp/stars' | 'pdp/star_empty' | 'pdp/star_half' | 'pdp/stopwatch' | 'pdp/trust_badge';
70
72
  declare type SlideDots$1 = 'slidedots/slide_dot';
@@ -2163,7 +2165,7 @@ interface IconProps {
2163
2165
  testId?: string;
2164
2166
  }
2165
2167
  declare type ButtonType = 'button' | 'submit' | 'reset';
2166
- interface CTAProps {
2168
+ declare type CTAProps = {
2167
2169
  onClick: () => void;
2168
2170
  disabled?: boolean;
2169
2171
  wide?: boolean | false;
@@ -2173,7 +2175,8 @@ interface CTAProps {
2173
2175
  className?: string;
2174
2176
  testId?: string;
2175
2177
  inline?: boolean;
2176
- }
2178
+ iconName?: Props$2['name'];
2179
+ };
2177
2180
  declare type DropdownOption<T> = {
2178
2181
  key: string;
2179
2182
  label: string;
@@ -2240,6 +2243,7 @@ declare type Filter = {
2240
2243
  value?: string;
2241
2244
  }>;
2242
2245
  showInMobile: boolean;
2246
+ showInTablet: boolean;
2243
2247
  };
2244
2248
  declare type FilterChange = {
2245
2249
  sectionIndex: number;
@@ -2351,8 +2355,10 @@ interface DrawerProps {
2351
2355
  backdropColor?: string;
2352
2356
  position?: 'left' | 'right';
2353
2357
  width?: string;
2358
+ height?: string;
2359
+ top?: string;
2354
2360
  }
2355
- declare const Drawer: ({ children, isOpen, onClose, onOpen, backgroundColor, backdropColor, position, width, onClickOutside, }: DrawerProps) => JSX.Element | null;
2361
+ declare const Drawer: ({ children, isOpen, onClose, onOpen, backgroundColor, backdropColor, position, width, height, top, onClickOutside, }: DrawerProps) => JSX.Element | null;
2356
2362
 
2357
2363
  interface DropdownListIconsProps {
2358
2364
  items: DropdownListIconsItem[];
@@ -2428,13 +2434,14 @@ interface FiltersProps {
2428
2434
  filterByText: string;
2429
2435
  clearAllText: string;
2430
2436
  filtersSelectText: string;
2437
+ showSelectedNumberInSection: boolean;
2431
2438
  isMobile: boolean;
2432
2439
  applyText: string;
2433
2440
  mobileBackArrowClick: () => void;
2434
2441
  mobileApplyButtonClick: () => void;
2435
2442
  onResetValues: () => void;
2436
2443
  }
2437
- declare const Filters: ({ values, onChange, tagsColor, filterByText, clearAllText, isMobile, filtersSelectText, applyText, mobileApplyButtonClick, mobileBackArrowClick, onResetValues, }: FiltersProps) => JSX.Element;
2444
+ declare const Filters: ({ values, onChange, tagsColor, filterByText, clearAllText, isMobile, filtersSelectText, showSelectedNumberInSection, applyText, mobileApplyButtonClick, mobileBackArrowClick, onResetValues, }: FiltersProps) => JSX.Element;
2438
2445
 
2439
2446
  interface TagsProps {
2440
2447
  color?: string;
@@ -2567,6 +2574,7 @@ interface BaseCTAProps {
2567
2574
  type?: ButtonType;
2568
2575
  inline?: boolean;
2569
2576
  testId?: string;
2577
+ iconName?: Props$2['name'];
2570
2578
  }
2571
2579
 
2572
2580
  declare type ButtonProps = {
@@ -3225,8 +3233,10 @@ interface TimeProps {
3225
3233
  interface TimerProps extends TimeProps {
3226
3234
  onTimeUp: () => void;
3227
3235
  displayZeroValues?: boolean;
3236
+ showSeconds?: boolean;
3237
+ timerColor?: string;
3228
3238
  }
3229
- declare const Timer: ({ onTimeUp, displayZeroValues, ...rest }: TimerProps) => JSX.Element;
3239
+ declare const Timer: ({ onTimeUp, displayZeroValues, showSeconds, timerColor, ...rest }: TimerProps) => JSX.Element;
3230
3240
 
3231
3241
  interface TooltipProps {
3232
3242
  children: React__default.ReactNode;
@@ -3276,10 +3286,11 @@ interface TotalProps {
3276
3286
  amount: string;
3277
3287
  savingText: string;
3278
3288
  };
3289
+ showTotalLabel?: boolean;
3279
3290
  }
3280
3291
 
3281
3292
  declare const Totals: {
3282
- Total: ({ total, currency, saving, highlightColor }: TotalProps) => JSX.Element;
3293
+ Total: ({ total, currency, saving, highlightColor, showTotalLabel, }: TotalProps) => JSX.Element;
3283
3294
  Subtotal: ({ subtotal, shipping, taxes, coupon, highlightColor, }: SubtotalProps) => JSX.Element;
3284
3295
  };
3285
3296