@trafilea/afrodita-components 6.27.1 → 6.28.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
@@ -76,7 +76,7 @@ interface ClubOfferTagProps {
76
76
  }
77
77
  declare const ClubOfferTag: ({ clubOfferText, className, disabled, backgroundColor, borderColor, textColor, size, style, }: ClubOfferTagProps) => JSX.Element;
78
78
 
79
- interface DiscountTagProps {
79
+ interface DiscountTagProps$1 {
80
80
  discount: number;
81
81
  offText: string;
82
82
  savings?: string;
@@ -89,14 +89,14 @@ interface DiscountTagProps {
89
89
  style?: React__default.CSSProperties;
90
90
  bordersRounded?: boolean;
91
91
  }
92
- declare const DiscountTag: ({ discount, offText, savings, showSavings, disabled, backgroundColor, borderColor, textColor, size, style, bordersRounded, }: DiscountTagProps) => JSX.Element;
92
+ declare const DiscountTag: ({ discount, offText, savings, showSavings, disabled, backgroundColor, borderColor, textColor, size, style, bordersRounded, }: DiscountTagProps$1) => JSX.Element;
93
93
 
94
94
  interface PriceLabelProps {
95
95
  finalPrice: string | number;
96
96
  originalPrice?: string | number;
97
97
  color?: string;
98
98
  size?: ComponentSize.Small | ComponentSize.Medium | ComponentSize.Large;
99
- discount?: DiscountTagProps;
99
+ discount?: DiscountTagProps$1;
100
100
  clubOffer?: ClubOfferTagProps;
101
101
  finalPriceStyled?: boolean;
102
102
  finalPriceStyle?: React__default.CSSProperties;
@@ -2396,7 +2396,7 @@ interface ProductItemSmallMobileProps extends ProductItemProps {
2396
2396
  version?: number;
2397
2397
  showDiscountPercentageTag?: boolean;
2398
2398
  discountTagLoading?: boolean;
2399
- discountTag?: DiscountTagProps;
2399
+ discountTag?: DiscountTagProps$1;
2400
2400
  isOnViewport?: boolean;
2401
2401
  }
2402
2402
 
@@ -3757,6 +3757,10 @@ declare type JoinClubProps = {
3757
3757
 
3758
3758
  declare function JoinClubCard({ onCheckToggle, isChecked, icon, link, bodyCopy, titleCopy, style, }: JoinClubProps): JSX.Element;
3759
3759
 
3760
+ interface DiscountTagProps {
3761
+ value: string;
3762
+ pos: 'next to price' | 'below price';
3763
+ }
3760
3764
  interface ProductCardProps extends ProductItemProps {
3761
3765
  size: ComponentSize.Medium | ComponentSize.Small | ComponentSize.Large;
3762
3766
  imageHover?: ImageProps;
@@ -3766,7 +3770,7 @@ interface ProductCardProps extends ProductItemProps {
3766
3770
  priceLoading?: boolean;
3767
3771
  noFollow?: boolean;
3768
3772
  isRatingLoading?: boolean;
3769
- discountTag?: string;
3773
+ discountTag?: DiscountTagProps;
3770
3774
  }
3771
3775
  declare const ProductCard: FC<ProductCardProps>;
3772
3776