yt-uikit 0.9.19 → 0.9.20
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";
|
|
@@ -251,6 +252,7 @@ export interface CartProps {
|
|
|
251
252
|
useCartShell?: boolean;
|
|
252
253
|
showTrustedBadge?: boolean;
|
|
253
254
|
trustedBadgeData?: trustedBadgeInterface;
|
|
255
|
+
drawerLayoutData?: DrawerLayout;
|
|
254
256
|
}
|
|
255
257
|
declare const Cart: React.FC<CartProps>;
|
|
256
258
|
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;
|