@trafilea/afrodita-components 6.28.0 → 6.28.2
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 +18 -5
- package/build/index.esm.js +212 -214
- package/build/index.esm.js.map +1 -1
- package/build/index.js +212 -214
- package/build/index.js.map +1 -1
- package/package.json +1 -1
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,8 +2396,17 @@ 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
|
+
clubOffer?: {
|
|
2402
|
+
isClubOffer?: boolean;
|
|
2403
|
+
clubOfferIcon?: JSX.Element;
|
|
2404
|
+
price?: {
|
|
2405
|
+
finalPrice: string;
|
|
2406
|
+
originalPrice: string;
|
|
2407
|
+
color: string;
|
|
2408
|
+
};
|
|
2409
|
+
};
|
|
2401
2410
|
}
|
|
2402
2411
|
|
|
2403
2412
|
declare function withProductGrid<P extends ProductItemProps>(ProductItemComponent: React__default.FC<P>, data: ProductItemProps[]): {
|
|
@@ -3757,6 +3766,10 @@ declare type JoinClubProps = {
|
|
|
3757
3766
|
|
|
3758
3767
|
declare function JoinClubCard({ onCheckToggle, isChecked, icon, link, bodyCopy, titleCopy, style, }: JoinClubProps): JSX.Element;
|
|
3759
3768
|
|
|
3769
|
+
interface DiscountTagProps {
|
|
3770
|
+
value: string;
|
|
3771
|
+
pos: 'next to price' | 'below price';
|
|
3772
|
+
}
|
|
3760
3773
|
interface ProductCardProps extends ProductItemProps {
|
|
3761
3774
|
size: ComponentSize.Medium | ComponentSize.Small | ComponentSize.Large;
|
|
3762
3775
|
imageHover?: ImageProps;
|
|
@@ -3766,7 +3779,7 @@ interface ProductCardProps extends ProductItemProps {
|
|
|
3766
3779
|
priceLoading?: boolean;
|
|
3767
3780
|
noFollow?: boolean;
|
|
3768
3781
|
isRatingLoading?: boolean;
|
|
3769
|
-
discountTag?:
|
|
3782
|
+
discountTag?: DiscountTagProps;
|
|
3770
3783
|
}
|
|
3771
3784
|
declare const ProductCard: FC<ProductCardProps>;
|
|
3772
3785
|
|