yt-uikit 0.9.26-progress-bar-ui.10 → 0.9.26-progress-bar-ui.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/dist/esm/components/Cart/Cart.d.ts +9 -0
- package/dist/esm/components/Cart/CartDrawer.d.ts +2 -1
- package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepIcon.d.ts +1 -1
- package/dist/esm/components/Cart/MultiStepProgressBar/types.d.ts +2 -2
- package/dist/esm/index.js +3 -3
- package/package.json +1 -1
|
@@ -83,6 +83,14 @@ export interface CouponSelectionData {
|
|
|
83
83
|
couponTextSuffix?: string;
|
|
84
84
|
applyButtonText?: string;
|
|
85
85
|
}
|
|
86
|
+
export type TierIconSizeType = "small" | "medium" | "large";
|
|
87
|
+
export type TierStyleType = "poppins" | "sans-serif" | "monospace";
|
|
88
|
+
export interface ProgressBarCartConfigData {
|
|
89
|
+
showProgressTiersTitle?: boolean;
|
|
90
|
+
tierIconSize?: TierIconSizeType;
|
|
91
|
+
tierStyle?: TierStyleType;
|
|
92
|
+
isTierLineIconVisible?: boolean;
|
|
93
|
+
}
|
|
86
94
|
export interface CartProps {
|
|
87
95
|
isOpen: boolean;
|
|
88
96
|
setIsOpen: React.Dispatch<React.SetStateAction<boolean>>;
|
|
@@ -254,6 +262,7 @@ export interface CartProps {
|
|
|
254
262
|
showTrustedBadge?: boolean;
|
|
255
263
|
trustedBadgeData?: trustedBadgeInterface;
|
|
256
264
|
drawerLayoutData?: DrawerLayout;
|
|
265
|
+
progressBarCartConfigData?: ProgressBarCartConfigData;
|
|
257
266
|
}
|
|
258
267
|
declare const Cart: React.FC<CartProps>;
|
|
259
268
|
export default Cart;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { CartProps, RewardCoupon } from "./Cart";
|
|
2
|
+
import { CartProps, ProgressBarCartConfigData, RewardCoupon } from "./Cart";
|
|
3
3
|
import "./shared.scss";
|
|
4
4
|
export interface DrawerLayout {
|
|
5
5
|
headerIds?: string[];
|
|
@@ -29,6 +29,7 @@ interface CartDrawerProps extends CartProps {
|
|
|
29
29
|
showTrustedBadge?: boolean;
|
|
30
30
|
trustedBadgeData?: CartProps["trustedBadgeData"];
|
|
31
31
|
drawerLayoutData?: DrawerLayout;
|
|
32
|
+
progressBarCartConfigData?: ProgressBarCartConfigData;
|
|
32
33
|
}
|
|
33
34
|
declare const CartDrawer: React.FC<CartDrawerProps>;
|
|
34
35
|
export default CartDrawer;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { IconType } from "react-icons";
|
|
3
|
-
export declare const MultiStepIcon: (couponType: string, color: string, numberOfCheckpoints: number, freeProductIconType: string, themeTextColor?: string,
|
|
3
|
+
export declare const MultiStepIcon: (couponType: string, color: string, numberOfCheckpoints: number, freeProductIconType: string, themeTextColor?: string, isTierLineIconVisible?: boolean) => React.ReactElement;
|
|
4
4
|
export declare const progressBarCheckpointFreeProductIconMap: {
|
|
5
5
|
[key: string]: IconType;
|
|
6
6
|
};
|
|
@@ -3,7 +3,7 @@ export interface CheckpointWithProgress extends Checkpoint {
|
|
|
3
3
|
progressPercentage: number;
|
|
4
4
|
}
|
|
5
5
|
export interface MultiStepProgressBarProps {
|
|
6
|
-
|
|
6
|
+
isTierLineIconVisible?: boolean;
|
|
7
7
|
currentCartAmount: number;
|
|
8
8
|
checkpoints: Checkpoint[];
|
|
9
9
|
themeColor?: string;
|
|
@@ -38,7 +38,7 @@ export interface CheckpointIconProps {
|
|
|
38
38
|
progressBarFreeProductIconType?: string;
|
|
39
39
|
themeTextColor?: string;
|
|
40
40
|
ctaButtonTextColor?: string;
|
|
41
|
-
|
|
41
|
+
isTierLineIconVisible?: boolean;
|
|
42
42
|
}
|
|
43
43
|
export interface NextRewardMessageProps {
|
|
44
44
|
currentCartAmount: number;
|