yt-uikit 0.8.83 → 0.8.84-drawer-layout.0
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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { type DrawerLayout } from "./CartDrawer";
|
|
2
3
|
import { stickyCartCustomizationDataProps } from "./StickyCart";
|
|
3
4
|
import { CartOffersCarousalProps } from "./CartOffersCarousel";
|
|
4
5
|
import { freebieMilestoneProps } from "./NextFreebieRow";
|
|
@@ -238,6 +239,7 @@ export interface CartProps {
|
|
|
238
239
|
useCartShell?: boolean;
|
|
239
240
|
showTrustedBadge?: boolean;
|
|
240
241
|
trustedBadgeData?: trustedBadgeInterface;
|
|
242
|
+
drawerLayoutData?: DrawerLayout;
|
|
241
243
|
}
|
|
242
244
|
declare const Cart: React.FC<CartProps>;
|
|
243
245
|
export default Cart;
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { CartProps, RewardCoupon } from "./Cart";
|
|
3
3
|
import "./shared.scss";
|
|
4
|
+
export interface DrawerLayout {
|
|
5
|
+
headerIds?: string[];
|
|
6
|
+
scroll?: {
|
|
7
|
+
topIds?: string[];
|
|
8
|
+
bottomIds?: string[];
|
|
9
|
+
};
|
|
10
|
+
footerIds?: string[];
|
|
11
|
+
}
|
|
4
12
|
interface CartDrawerProps extends CartProps {
|
|
5
13
|
prefixMessageText?: string;
|
|
6
14
|
suffixMessageText?: string;
|
|
@@ -17,10 +25,10 @@ interface CartDrawerProps extends CartProps {
|
|
|
17
25
|
showCheckoutButtonPaymentIcons?: boolean;
|
|
18
26
|
showCouponOptions?: boolean;
|
|
19
27
|
rewardCoupons?: RewardCoupon[];
|
|
20
|
-
applyTemplateDiscount?: (templateId?: number) => Promise<any>;
|
|
21
28
|
useCartShell?: boolean;
|
|
22
29
|
showTrustedBadge?: boolean;
|
|
23
30
|
trustedBadgeData?: CartProps["trustedBadgeData"];
|
|
31
|
+
drawerLayoutData?: DrawerLayout;
|
|
24
32
|
}
|
|
25
33
|
declare const CartDrawer: React.FC<CartDrawerProps>;
|
|
26
34
|
export default CartDrawer;
|