yt-uikit 0.7.344-shadowdomBundle.5 → 0.7.344-shadowdomBundle.51
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/BundleBlock/Bundle.d.ts +18 -6
- package/dist/esm/components/BundleBlock/BundleBuilder/BundleBuilder.d.ts +3 -3
- package/dist/esm/components/BundleBlock/BundleBuilder/ResponsiveBgImage.d.ts +9 -0
- package/dist/esm/components/BundleBlock/BundleBuilder/VariantOptionsModal.d.ts +0 -1
- package/dist/esm/components/BundleBlock/BundleBuilderTracker/BundleBuilderTracker.d.ts +1 -0
- package/dist/esm/components/BundleBlock/BundleProductDetailsModal/BundleProductDetailsModal.d.ts +0 -1
- package/dist/esm/components/BundleBlock/CollectionBundle/ColllectionBundle.d.ts +105 -0
- package/dist/esm/components/BundleBlock/CollectionBundle/FileUpload.d.ts +15 -0
- package/dist/esm/components/BundleBlock/CollectionBundle/LoadingSpinner.d.ts +2 -0
- package/dist/esm/components/BundleBlock/CollectionBundle/ProductDetailsModal.d.ts +15 -0
- package/dist/esm/components/BundleBlock/ComboBundle.d.ts +11 -0
- package/dist/esm/components/BundleBlock/FixedBundle/SeparateVariantOptions.d.ts +1 -0
- package/dist/esm/components/BundleBlock/FixedBundle/VariantSelectorModal.d.ts +7 -2
- package/dist/esm/components/BundleBlock/MixAndMatchBundle/MixAndMatchBundle.d.ts +2 -2
- package/dist/esm/components/BundleBlock/MixAndMatchBundle/mixAndMatchBundle.style.d.ts +8 -9
- package/dist/esm/components/BundleBlock/ProductGridSkeleton/ProductGridSkeleton.d.ts +5 -0
- package/dist/esm/components/BundleBlock/VolumeBundle/VolumeBundle.d.ts +1 -1
- package/dist/esm/components/BundleBlock/VolumeBundle/volumeBundle.style.d.ts +2 -2
- package/dist/esm/components/Cart/Cart.d.ts +8 -0
- package/dist/esm/components/Cart/CheckoutSection.d.ts +2 -1
- package/dist/esm/components/Cart/FreebieClaimManager.d.ts +2 -0
- package/dist/esm/components/Cart/FreebieClaimOverlay.d.ts +2 -0
- package/dist/esm/components/Cart/FreebieClaimOverlayCard.d.ts +1 -0
- package/dist/esm/components/Cart/FreebieClaimSection.d.ts +1 -0
- package/dist/esm/components/Cart/FreebieClaimSectionCard.d.ts +1 -0
- package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepProgressBar.styled.d.ts +2 -2
- package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepUtils.d.ts +1 -0
- package/dist/esm/components/Cart/MultiStepProgressBar/SingleTierProgressBar.styled.d.ts +2 -2
- package/dist/esm/components/Cart/StickyCart.d.ts +7 -1
- package/dist/esm/components/Cart/VariantSelectionPopup/DesktopVariantPopup.d.ts +1 -0
- package/dist/esm/components/Cart/VariantSelectionPopup/MobileVariantPopover.d.ts +1 -0
- package/dist/esm/components/ProductOffersBlock/ProductOffersCoupon.d.ts +12 -0
- package/dist/esm/components/ProductOffersBlock/ProductOffersList.d.ts +12 -0
- package/dist/esm/components/ProductOffersBlock/ProductOffersTermsMobilePopover.d.ts +10 -0
- package/dist/esm/components/ProductOffersBlock/ProductOffersTermsPopup.d.ts +10 -0
- package/dist/esm/components/ProductOffersBlock/ProductsOffers.d.ts +32 -0
- package/dist/esm/components/index.d.ts +2 -0
- package/dist/esm/hooks/useShadowConfetti.d.ts +1 -0
- package/dist/esm/index.js +671 -518
- package/dist/esm/types/components/BundleBlock/Bundle.d.ts +18 -6
- package/dist/esm/types/components/BundleBlock/BundleBuilder/BundleBuilder.d.ts +3 -3
- package/dist/esm/types/components/BundleBlock/BundleBuilder/ResponsiveBgImage.d.ts +9 -0
- package/dist/esm/types/components/BundleBlock/BundleBuilder/VariantOptionsModal.d.ts +0 -1
- package/dist/esm/types/components/BundleBlock/BundleBuilderTracker/BundleBuilderTracker.d.ts +1 -0
- package/dist/esm/types/components/BundleBlock/BundleProductDetailsModal/BundleProductDetailsModal.d.ts +0 -1
- package/dist/esm/types/components/BundleBlock/CollectionBundle/ColllectionBundle.d.ts +105 -0
- package/dist/esm/types/components/BundleBlock/CollectionBundle/FileUpload.d.ts +15 -0
- package/dist/esm/types/components/BundleBlock/CollectionBundle/LoadingSpinner.d.ts +2 -0
- package/dist/esm/types/components/BundleBlock/CollectionBundle/ProductDetailsModal.d.ts +15 -0
- package/dist/esm/types/components/BundleBlock/ComboBundle.d.ts +11 -0
- package/dist/esm/types/components/BundleBlock/FixedBundle/SeparateVariantOptions.d.ts +1 -0
- package/dist/esm/types/components/BundleBlock/FixedBundle/VariantSelectorModal.d.ts +7 -2
- package/dist/esm/types/components/BundleBlock/MixAndMatchBundle/MixAndMatchBundle.d.ts +2 -2
- package/dist/esm/types/components/BundleBlock/MixAndMatchBundle/mixAndMatchBundle.style.d.ts +8 -9
- package/dist/esm/types/components/BundleBlock/ProductGridSkeleton/ProductGridSkeleton.d.ts +5 -0
- package/dist/esm/types/components/BundleBlock/VolumeBundle/VolumeBundle.d.ts +1 -1
- package/dist/esm/types/components/BundleBlock/VolumeBundle/volumeBundle.style.d.ts +2 -2
- package/dist/esm/types/components/Cart/Cart.d.ts +8 -0
- package/dist/esm/types/components/Cart/CheckoutSection.d.ts +2 -1
- package/dist/esm/types/components/Cart/FreebieClaimManager.d.ts +2 -0
- package/dist/esm/types/components/Cart/FreebieClaimOverlay.d.ts +2 -0
- package/dist/esm/types/components/Cart/FreebieClaimOverlayCard.d.ts +1 -0
- package/dist/esm/types/components/Cart/FreebieClaimSection.d.ts +1 -0
- package/dist/esm/types/components/Cart/FreebieClaimSectionCard.d.ts +1 -0
- package/dist/esm/types/components/Cart/MultiStepProgressBar/MultiStepProgressBar.styled.d.ts +2 -2
- package/dist/esm/types/components/Cart/MultiStepProgressBar/MultiStepUtils.d.ts +1 -0
- package/dist/esm/types/components/Cart/MultiStepProgressBar/SingleTierProgressBar.styled.d.ts +2 -2
- package/dist/esm/types/components/Cart/StickyCart.d.ts +7 -1
- package/dist/esm/types/components/Cart/VariantSelectionPopup/DesktopVariantPopup.d.ts +1 -0
- package/dist/esm/types/components/Cart/VariantSelectionPopup/MobileVariantPopover.d.ts +1 -0
- package/dist/esm/types/components/ProductOffersBlock/ProductOffersCoupon.d.ts +12 -0
- package/dist/esm/types/components/ProductOffersBlock/ProductOffersList.d.ts +12 -0
- package/dist/esm/types/components/ProductOffersBlock/ProductOffersTermsMobilePopover.d.ts +10 -0
- package/dist/esm/types/components/ProductOffersBlock/ProductOffersTermsPopup.d.ts +10 -0
- package/dist/esm/types/components/ProductOffersBlock/ProductsOffers.d.ts +32 -0
- package/dist/esm/types/components/index.d.ts +2 -0
- package/dist/esm/types/hooks/useShadowConfetti.d.ts +1 -0
- package/dist/esm/types/utils/freebieProductUtils.d.ts +1 -1
- package/dist/esm/types/utils/index.d.ts +1 -0
- package/dist/esm/utils/freebieProductUtils.d.ts +1 -1
- package/dist/esm/utils/index.d.ts +1 -0
- package/dist/index.d.ts +381 -334
- package/package.json +1 -4
|
@@ -50,6 +50,10 @@ export type VariantNode = {
|
|
|
50
50
|
image: ProductImage;
|
|
51
51
|
availableForSale: boolean;
|
|
52
52
|
inventoryQuantity: number;
|
|
53
|
+
inventoryItem?: {
|
|
54
|
+
tracked?: boolean;
|
|
55
|
+
};
|
|
56
|
+
inventoryPolicy?: "deny" | "continue";
|
|
53
57
|
};
|
|
54
58
|
};
|
|
55
59
|
type SelectedVariantDetails = {
|
|
@@ -80,9 +84,10 @@ export type ProductDetails = {
|
|
|
80
84
|
title: string;
|
|
81
85
|
handle: string;
|
|
82
86
|
featuredMedia: ProductFeaturedMedia;
|
|
83
|
-
status: "
|
|
87
|
+
status: "active" | "archived" | "draft" | "";
|
|
84
88
|
options: ProductOption[];
|
|
85
89
|
onlineStoreUrl: string;
|
|
90
|
+
tracksInventory?: boolean;
|
|
86
91
|
collections: {
|
|
87
92
|
edges: CollectionNode[];
|
|
88
93
|
};
|
|
@@ -105,10 +110,12 @@ export type ProductDetails = {
|
|
|
105
110
|
node: {
|
|
106
111
|
alt: string;
|
|
107
112
|
preview: {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
113
|
+
image: {
|
|
114
|
+
altText: string;
|
|
115
|
+
width?: number;
|
|
116
|
+
height?: number;
|
|
117
|
+
url: string;
|
|
118
|
+
};
|
|
112
119
|
};
|
|
113
120
|
image: {
|
|
114
121
|
altText: string;
|
|
@@ -161,8 +168,10 @@ type GeneralStyle = {
|
|
|
161
168
|
addOrderNotes: boolean;
|
|
162
169
|
variantTitleSuffix: boolean;
|
|
163
170
|
titleLength: string;
|
|
171
|
+
showDecimalsInBundlePricing?: boolean;
|
|
164
172
|
};
|
|
165
173
|
type VolumeStyle = {
|
|
174
|
+
addtoCartMethod: string;
|
|
166
175
|
titleFontSize: string;
|
|
167
176
|
subtitleFontSize: string;
|
|
168
177
|
titleBackgroundColor: string;
|
|
@@ -263,7 +272,7 @@ export type BundlePayload = {
|
|
|
263
272
|
percentageOff?: number;
|
|
264
273
|
dealAmount?: number;
|
|
265
274
|
amountOff?: number;
|
|
266
|
-
type: "fixed" | "builder" | "volume" | "
|
|
275
|
+
type: "fixed" | "builder" | "volume" | "mixAndMatch" | "" | "combo" | "collection";
|
|
267
276
|
minimumQuantity: number;
|
|
268
277
|
showProductDetailsInTracker: boolean;
|
|
269
278
|
coverImageUrl?: string;
|
|
@@ -300,6 +309,7 @@ export type BundlePayload = {
|
|
|
300
309
|
tier: number;
|
|
301
310
|
title: string;
|
|
302
311
|
minimumQuantity: number;
|
|
312
|
+
isFixed?: boolean;
|
|
303
313
|
products: {
|
|
304
314
|
productId: string;
|
|
305
315
|
variantIds: string[];
|
|
@@ -330,6 +340,7 @@ export type BundlePayload = {
|
|
|
330
340
|
customStoreDetails?: {
|
|
331
341
|
[key: string]: any;
|
|
332
342
|
};
|
|
343
|
+
customProductsQuantity?: number | null;
|
|
333
344
|
reviewRatingType?: "none" | "ratingOnly" | "ratingAndReviewCount";
|
|
334
345
|
appName?: string;
|
|
335
346
|
pageHeader?: {
|
|
@@ -369,6 +380,7 @@ export type BundleProps = {
|
|
|
369
380
|
};
|
|
370
381
|
export declare const currencyPrice: (price: number | string | undefined) => string | undefined;
|
|
371
382
|
export declare const getCurrencySymbol: (genSymbol: string, storeCurrencyCode?: string) => string;
|
|
383
|
+
export declare const optimiseImage: (url: string, width?: number) => string;
|
|
372
384
|
export declare const handleAddToBundle: (variantId: string, product: ProductDetails, quantity: number, selectedItems: {
|
|
373
385
|
variantId: string;
|
|
374
386
|
product: ProductDetails;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import "../bundle.scss";
|
|
1
2
|
import React from "react";
|
|
2
3
|
import { BundlePayload, ProductDetails } from "../Bundle";
|
|
3
|
-
export declare function QuantitySelectorForBundle({ quantity, setQuantity, remainingQuantity, handleAddToBundle, variantId, product, handleRemoveItem, hideAddToBundle,
|
|
4
|
+
export declare function QuantitySelectorForBundle({ quantity, setQuantity, remainingQuantity, handleAddToBundle, variantId, product, handleRemoveItem, hideAddToBundle, selectedVariantInventoryQty, }: {
|
|
4
5
|
quantity: number;
|
|
5
6
|
setQuantity: React.Dispatch<React.SetStateAction<number>>;
|
|
6
7
|
remainingQuantity: number;
|
|
@@ -9,8 +10,7 @@ export declare function QuantitySelectorForBundle({ quantity, setQuantity, remai
|
|
|
9
10
|
product?: ProductDetails;
|
|
10
11
|
handleRemoveItem?: (variantId: string, quantity: number) => void;
|
|
11
12
|
hideAddToBundle?: boolean;
|
|
12
|
-
|
|
13
|
-
selectedVariantInventoryQty: number;
|
|
13
|
+
selectedVariantInventoryQty: number | typeof Infinity;
|
|
14
14
|
}): React.JSX.Element;
|
|
15
15
|
type BundleBuilderProps = {
|
|
16
16
|
bundle: BundlePayload;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface ResponsiveBackgroundImageProps {
|
|
3
|
+
coverImageUrl?: string;
|
|
4
|
+
mobileCoverImageUrl?: string;
|
|
5
|
+
alt?: string;
|
|
6
|
+
styles?: React.CSSProperties;
|
|
7
|
+
}
|
|
8
|
+
export declare const ResponsiveBackgroundImage: React.FC<ResponsiveBackgroundImageProps>;
|
|
9
|
+
export default ResponsiveBackgroundImage;
|
|
@@ -10,7 +10,6 @@ interface SingleProductVariantOptionsModalProps {
|
|
|
10
10
|
backgroundColor: string;
|
|
11
11
|
};
|
|
12
12
|
onConfirm: (variantId: string) => void;
|
|
13
|
-
disableInventoryTracking?: boolean;
|
|
14
13
|
}
|
|
15
14
|
declare const SingleProductVariantOptionsModal: React.FC<SingleProductVariantOptionsModalProps>;
|
|
16
15
|
export default SingleProductVariantOptionsModal;
|
|
@@ -46,6 +46,7 @@ type BundleBuilderTrackerProps = {
|
|
|
46
46
|
renderingOnPage: boolean;
|
|
47
47
|
handleRemoveItemProductTier: (variantId: string, currentTier: number) => void;
|
|
48
48
|
storeCurrencyCode?: string;
|
|
49
|
+
shadowRoot?: ShadowRoot | null;
|
|
49
50
|
};
|
|
50
51
|
export declare const BundleBuilderTrackerBar: React.FC<BundleBuilderTrackerProps>;
|
|
51
52
|
export default BundleBuilderTrackerBar;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type Product = {
|
|
3
|
+
id: number;
|
|
4
|
+
title: string;
|
|
5
|
+
handle: string;
|
|
6
|
+
description: string | null;
|
|
7
|
+
published_at: string;
|
|
8
|
+
created_at: string;
|
|
9
|
+
vendor: string;
|
|
10
|
+
type: string;
|
|
11
|
+
tags: string[];
|
|
12
|
+
price: number;
|
|
13
|
+
price_min: number;
|
|
14
|
+
price_max: number;
|
|
15
|
+
available: boolean;
|
|
16
|
+
price_varies: boolean;
|
|
17
|
+
compare_at_price: number | null;
|
|
18
|
+
compare_at_price_min: number;
|
|
19
|
+
compare_at_price_max: number;
|
|
20
|
+
compare_at_price_varies: boolean;
|
|
21
|
+
variants: Array<{
|
|
22
|
+
id: number;
|
|
23
|
+
title: string;
|
|
24
|
+
option1: string | null;
|
|
25
|
+
option2: string | null;
|
|
26
|
+
option3: string | null;
|
|
27
|
+
sku: string;
|
|
28
|
+
requires_shipping: boolean;
|
|
29
|
+
taxable: boolean;
|
|
30
|
+
featured_image: any | null;
|
|
31
|
+
available: boolean;
|
|
32
|
+
name: string;
|
|
33
|
+
public_title: string;
|
|
34
|
+
options: string[];
|
|
35
|
+
price: number;
|
|
36
|
+
weight: number;
|
|
37
|
+
compare_at_price: number | null;
|
|
38
|
+
inventory_management: string;
|
|
39
|
+
barcode: string;
|
|
40
|
+
requires_selling_plan: boolean;
|
|
41
|
+
selling_plan_allocations: any[];
|
|
42
|
+
quantity_rule: {
|
|
43
|
+
min: number;
|
|
44
|
+
max: number | null;
|
|
45
|
+
increment: number;
|
|
46
|
+
};
|
|
47
|
+
}>;
|
|
48
|
+
images: string[];
|
|
49
|
+
image?: string;
|
|
50
|
+
options?: string[];
|
|
51
|
+
};
|
|
52
|
+
export type BundleConfig = {
|
|
53
|
+
config: {
|
|
54
|
+
shop: string;
|
|
55
|
+
collectionIds: string[];
|
|
56
|
+
type: "collection";
|
|
57
|
+
builderTiers: {
|
|
58
|
+
type: "collectionTier";
|
|
59
|
+
collectionTier: {
|
|
60
|
+
title: string;
|
|
61
|
+
tier: number;
|
|
62
|
+
minimumQuantity: number;
|
|
63
|
+
collectionId: string;
|
|
64
|
+
handle: string;
|
|
65
|
+
products: Product[];
|
|
66
|
+
}[];
|
|
67
|
+
};
|
|
68
|
+
form?: {
|
|
69
|
+
title?: string;
|
|
70
|
+
sections?: {
|
|
71
|
+
title: string;
|
|
72
|
+
type: "text" | "image";
|
|
73
|
+
fields: {
|
|
74
|
+
title: string;
|
|
75
|
+
}[];
|
|
76
|
+
}[];
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
customizations: {
|
|
80
|
+
borderRadius: string;
|
|
81
|
+
atcBg: string;
|
|
82
|
+
atcText: string;
|
|
83
|
+
productImageRatio: string;
|
|
84
|
+
bundleBg: string;
|
|
85
|
+
bundleText: string;
|
|
86
|
+
bundleBorder: string;
|
|
87
|
+
btnPrimaryBg: string;
|
|
88
|
+
btnPrimaryText: string;
|
|
89
|
+
productCardBorder: string;
|
|
90
|
+
productCardBg: string;
|
|
91
|
+
productCardShadow: string;
|
|
92
|
+
hideSelectedProducts: boolean;
|
|
93
|
+
allowMultipleQty: boolean;
|
|
94
|
+
hideOutOfStockProducts: boolean;
|
|
95
|
+
bundleRedirection: "cart-drawer" | "checkout";
|
|
96
|
+
checkoutPartner: "shopify" | "razorpay" | "shiprocket" | "gokwik" | "breeze" | "zecpay" | "shopflo";
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
interface CollectionBundleProps {
|
|
100
|
+
config: BundleConfig;
|
|
101
|
+
addCustomBundleToCart: (items: any) => void;
|
|
102
|
+
bundleAddToCartLoading: boolean;
|
|
103
|
+
}
|
|
104
|
+
declare const CollectionBundle: ({ config, bundleAddToCartLoading, addCustomBundleToCart, }: CollectionBundleProps) => React.JSX.Element;
|
|
105
|
+
export default CollectionBundle;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface UploadFieldProps {
|
|
3
|
+
title: string;
|
|
4
|
+
uploadState?: {
|
|
5
|
+
url?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
error?: boolean;
|
|
9
|
+
} | string;
|
|
10
|
+
onUpload: () => void;
|
|
11
|
+
onRemove: () => void;
|
|
12
|
+
onRetry: () => void;
|
|
13
|
+
}
|
|
14
|
+
export declare const UploadField: ({ title, uploadState, onUpload, onRemove, onRetry, }: UploadFieldProps) => React.JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Product, BundleConfig } from "./ColllectionBundle";
|
|
3
|
+
type ProductDetailsModalProps = {
|
|
4
|
+
product: Product;
|
|
5
|
+
tierIdx: number;
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
onAddToBundle: (product: Product, tierIdx: number) => void;
|
|
9
|
+
canAdd: boolean;
|
|
10
|
+
isSelected: boolean;
|
|
11
|
+
customizations: BundleConfig["customizations"];
|
|
12
|
+
isMobile: boolean;
|
|
13
|
+
};
|
|
14
|
+
export declare const ProductDetailsModal: ({ product, tierIdx, isOpen, onClose, onAddToBundle, canAdd, isSelected, customizations, isMobile, }: ProductDetailsModalProps) => React.ReactPortal | null;
|
|
15
|
+
export {};
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { BundleProps } from "./Bundle";
|
|
3
|
+
declare global {
|
|
4
|
+
interface Window {
|
|
5
|
+
ytComboBundle?: {
|
|
6
|
+
bundle: BundleProps["bundle"];
|
|
7
|
+
addToCart: (selectedItemsSubtotal: number, variantIds?: string[], finalBundlePrice?: number, variantIdPriceMap?: {
|
|
8
|
+
variantId: string;
|
|
9
|
+
price: number;
|
|
10
|
+
}[]) => Promise<void>;
|
|
11
|
+
} | undefined;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
3
14
|
import "./bundle.scss";
|
|
4
15
|
declare const ComboBundle: React.FC<BundleProps>;
|
|
5
16
|
export default ComboBundle;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ProductData, VariantOptions } from "../Bundle";
|
|
3
|
+
interface ProductWithIndex {
|
|
4
|
+
product: ProductData;
|
|
5
|
+
index: number;
|
|
6
|
+
}
|
|
3
7
|
interface VariantSelectorModalProps {
|
|
4
|
-
|
|
8
|
+
productsWithIndices: ProductWithIndex[];
|
|
5
9
|
isOpen: boolean;
|
|
6
10
|
onClose: () => void;
|
|
7
11
|
variantOptions?: VariantOptions;
|
|
@@ -11,8 +15,9 @@ interface VariantSelectorModalProps {
|
|
|
11
15
|
};
|
|
12
16
|
primaryProductId?: string;
|
|
13
17
|
variantId?: string;
|
|
14
|
-
onVariantChange: (
|
|
18
|
+
onVariantChange: (index: number, variantId: string) => void;
|
|
15
19
|
handleAddToCart: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => Promise<void>;
|
|
20
|
+
shadowRoot?: ShadowRoot | null;
|
|
16
21
|
}
|
|
17
22
|
declare const VariantSelectorModal: React.FC<VariantSelectorModalProps>;
|
|
18
23
|
export default VariantSelectorModal;
|
|
@@ -20,25 +20,24 @@ export declare const ProductBox: import("styled-components/dist/types").IStyledC
|
|
|
20
20
|
isHorizontal?: boolean | undefined;
|
|
21
21
|
infoAlignment?: string | undefined;
|
|
22
22
|
}>> & string;
|
|
23
|
-
export declare const ProductImage: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {
|
|
24
|
-
isHorizontal?: boolean | undefined;
|
|
25
|
-
}>> & string;
|
|
26
|
-
export declare const ProductInfo: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
27
|
-
isHorizontal?: boolean | undefined;
|
|
28
|
-
}>> & string;
|
|
29
|
-
export declare const ProductTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
|
|
30
|
-
export declare const ProductVariant: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>> & string;
|
|
31
23
|
export declare const EmptyProductBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
32
24
|
isHorizontal?: boolean | undefined;
|
|
33
25
|
infoAlignment?: string | undefined;
|
|
34
26
|
}>> & string;
|
|
35
|
-
export declare const
|
|
27
|
+
export declare const ProductImage: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {
|
|
28
|
+
isHorizontal?: boolean | undefined;
|
|
29
|
+
}>> & string;
|
|
30
|
+
export declare const ProductInfo: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
36
31
|
isHorizontal?: boolean | undefined;
|
|
37
32
|
}>> & string;
|
|
38
33
|
export declare const SelectText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
39
34
|
isHorizontal?: boolean | undefined;
|
|
40
35
|
infoAlignment?: string | undefined;
|
|
41
36
|
}>> & string;
|
|
37
|
+
export declare const ProductTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
|
|
38
|
+
export declare const ProductVariant: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>> & string;
|
|
39
|
+
export declare const RemoveButtonIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>> & string;
|
|
40
|
+
export declare const PlusIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
42
41
|
export declare const AddToCartButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
43
42
|
borderRadius?: string | undefined;
|
|
44
43
|
primaryBgColor?: string | undefined;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { BundleProps } from "../Bundle";
|
|
3
|
-
export default function VolumeBundle({ bundle, addToCartFunction, currentProductId, }: BundleProps): React.JSX.Element;
|
|
3
|
+
export default function VolumeBundle({ bundle, addToCartFunction, currentProductId, shadowRoot }: BundleProps): React.JSX.Element;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const BundleContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
3
3
|
verticalMargin?: string | undefined;
|
|
4
|
-
backgroundColor?: string | undefined;
|
|
4
|
+
$backgroundColor?: string | undefined;
|
|
5
5
|
}>> & string;
|
|
6
6
|
export declare const BundleHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
7
7
|
export declare const BundleTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, {
|
|
8
8
|
fontSize?: string | undefined;
|
|
9
|
-
backgroundColor?: string | undefined;
|
|
9
|
+
$backgroundColor?: string | undefined;
|
|
10
10
|
textColor?: string | undefined;
|
|
11
11
|
}>> & string;
|
|
12
12
|
export declare const BundleSubtitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {
|
|
@@ -4,6 +4,7 @@ import { stickyCartCustomizationDataProps } from "./StickyCart";
|
|
|
4
4
|
import { CartOffersCarousalProps } from "./CartOffersCarousel";
|
|
5
5
|
import { freebieMilestoneProps } from "./NextFreebieRow";
|
|
6
6
|
import { GSTSectionCustomizationProps } from "./GSTSection";
|
|
7
|
+
import { BundlePayload } from "../BundleBlock/Bundle";
|
|
7
8
|
export interface RewardCoupon {
|
|
8
9
|
couponTemplateId: number;
|
|
9
10
|
name: string;
|
|
@@ -114,6 +115,7 @@ export interface CartProps {
|
|
|
114
115
|
applyTemplateDiscount?: (templateId?: number) => Promise<any>;
|
|
115
116
|
exploreCtaRedirectLink?: string;
|
|
116
117
|
discountAmountApplied?: number;
|
|
118
|
+
minimumCartValue?: number;
|
|
117
119
|
discountInCheckoutButton?: boolean | string;
|
|
118
120
|
isStickyCheckout?: boolean;
|
|
119
121
|
showDiscountsListToGuestUsers?: boolean;
|
|
@@ -222,6 +224,12 @@ export interface CartProps {
|
|
|
222
224
|
showApplyCoupon?: boolean;
|
|
223
225
|
enableConfetti?: boolean;
|
|
224
226
|
showCheckoutButtonPaymentIcons?: boolean;
|
|
227
|
+
shouldCheckInventoryQuantity?: boolean;
|
|
228
|
+
comboBundleData?: BundlePayload;
|
|
229
|
+
comboBundleAddToCartFunction?: (selectedItemsSubtotal: number, variantIds?: string[], finalBundlePrice?: number, variantIdPriceMap?: {
|
|
230
|
+
variantId: string;
|
|
231
|
+
price: number;
|
|
232
|
+
}[]) => Promise<void>;
|
|
225
233
|
}
|
|
226
234
|
declare const Cart: React.FC<CartProps>;
|
|
227
235
|
export default Cart;
|
|
@@ -9,6 +9,7 @@ interface CheckoutSectionProps {
|
|
|
9
9
|
discountInCheckoutButton?: boolean | string;
|
|
10
10
|
isStickyCheckout?: boolean;
|
|
11
11
|
discountAmountApplied?: number;
|
|
12
|
+
minimumCartValue?: number;
|
|
12
13
|
themeTextColor?: string;
|
|
13
14
|
applyGSTToCart?: (gstNumber: string, companyName: string) => Promise<any>;
|
|
14
15
|
showGSTOption?: boolean;
|
|
@@ -33,5 +34,5 @@ interface CheckoutSectionProps {
|
|
|
33
34
|
showCheckoutButtonPaymentIcons?: boolean;
|
|
34
35
|
primaryTextColor?: string;
|
|
35
36
|
}
|
|
36
|
-
declare function CheckoutSection({ checkoutButtonColor, checkoutFontSize, checkoutFunction, discountApplied, discountInCheckoutButton, discountAmountApplied, themeTextColor, applyGSTToCart, showGSTOption, applyNoteToCart, showNoteOption, enableGeoLocationDeliveryRestriction, applyPostalCodeAndDeliverySlotToCart, enableSlotPicker, isStickyCheckout, cartComponentsCornerType, cartComponentsCornerRadius, checkoutSectionMessage, checkoutSectionMessageDisplay, checkoutSectionMessageRedirectLink, showDiscountOnMRP, tertiaryColor, tertiaryTextColor, cartCheckpoints, toggleDecimal, disableCheckoutButton, checkoutButtonBottomSpacing, showPoweredByBadge, showCheckoutButtonPaymentIcons, primaryTextColor, }: CheckoutSectionProps): React.JSX.Element;
|
|
37
|
+
declare function CheckoutSection({ checkoutButtonColor, checkoutFontSize, checkoutFunction, discountApplied, discountInCheckoutButton, discountAmountApplied, minimumCartValue, themeTextColor, applyGSTToCart, showGSTOption, applyNoteToCart, showNoteOption, enableGeoLocationDeliveryRestriction, applyPostalCodeAndDeliverySlotToCart, enableSlotPicker, isStickyCheckout, cartComponentsCornerType, cartComponentsCornerRadius, checkoutSectionMessage, checkoutSectionMessageDisplay, checkoutSectionMessageRedirectLink, showDiscountOnMRP, tertiaryColor, tertiaryTextColor, cartCheckpoints, toggleDecimal, disableCheckoutButton, checkoutButtonBottomSpacing, showPoweredByBadge, showCheckoutButtonPaymentIcons, primaryTextColor, }: CheckoutSectionProps): React.JSX.Element;
|
|
37
38
|
export default CheckoutSection;
|
|
@@ -11,6 +11,8 @@ interface FreebieClaimManagerProps {
|
|
|
11
11
|
cartCheckpoints?: Checkpoint[];
|
|
12
12
|
imageAspectSelector?: "square" | "portrait";
|
|
13
13
|
freebieCouponTemplates?: Checkpoint[];
|
|
14
|
+
isCartDrawerOpen?: boolean;
|
|
15
|
+
shouldCheckInventoryQuantity?: boolean;
|
|
14
16
|
}
|
|
15
17
|
declare const FreebieClaimManager: React.FC<FreebieClaimManagerProps>;
|
|
16
18
|
export default FreebieClaimManager;
|
|
@@ -11,6 +11,8 @@ interface FreebieClaimOverlayProps {
|
|
|
11
11
|
imageAspectSelector?: "square" | "portrait";
|
|
12
12
|
freebieCouponTemplates?: Checkpoint[];
|
|
13
13
|
freebieClaimData?: any;
|
|
14
|
+
isCartDrawerOpen?: boolean;
|
|
15
|
+
shouldCheckInventoryQuantity?: boolean;
|
|
14
16
|
}
|
|
15
17
|
declare const FreebieClaimOverlay: React.FC<FreebieClaimOverlayProps>;
|
|
16
18
|
export default FreebieClaimOverlay;
|
|
@@ -4,6 +4,7 @@ interface FreebieClaimOverlayCardProps {
|
|
|
4
4
|
imageAspectSelector?: "square" | "portrait";
|
|
5
5
|
freebieCouponTemplates?: any[];
|
|
6
6
|
accentColor?: string;
|
|
7
|
+
shouldCheckInventoryQuantity?: boolean;
|
|
7
8
|
}
|
|
8
9
|
declare const FreebieClaimOverlayCard: React.FC<FreebieClaimOverlayCardProps>;
|
|
9
10
|
export default FreebieClaimOverlayCard;
|
|
@@ -12,6 +12,7 @@ interface FreebieClaimSectionProps {
|
|
|
12
12
|
maxFreebiesInTier?: number;
|
|
13
13
|
tierName?: string;
|
|
14
14
|
freebieClaimData?: any;
|
|
15
|
+
shouldCheckInventoryQuantity?: boolean;
|
|
15
16
|
}
|
|
16
17
|
declare const FreebieClaimSection: React.FC<FreebieClaimSectionProps>;
|
|
17
18
|
export default FreebieClaimSection;
|
|
@@ -11,6 +11,7 @@ interface FreebieClaimSectionCardProps {
|
|
|
11
11
|
isSelected?: boolean;
|
|
12
12
|
isDisabled?: boolean;
|
|
13
13
|
onToggleSelection?: (productId: string) => void;
|
|
14
|
+
shouldCheckInventoryQuantity?: boolean;
|
|
14
15
|
}
|
|
15
16
|
declare const FreebieClaimSectionCard: React.FC<FreebieClaimSectionCardProps>;
|
|
16
17
|
export default FreebieClaimSectionCard;
|
|
@@ -30,14 +30,14 @@ export declare const MultiTierNextRewardWrapper: import("styled-components/dist/
|
|
|
30
30
|
$ctaButtonBackgroundColor?: string | undefined;
|
|
31
31
|
}>> & string;
|
|
32
32
|
export declare const ColoredText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
33
|
-
ctaButtonBackgroundColor?: string | undefined;
|
|
33
|
+
$ctaButtonBackgroundColor?: string | undefined;
|
|
34
34
|
}>> & string;
|
|
35
35
|
export declare const ProgressBarWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
36
36
|
$showMOVForProgressTiers: boolean;
|
|
37
37
|
$rightMarginOffsetPx?: number | undefined;
|
|
38
38
|
}>> & string;
|
|
39
39
|
export declare const ContentWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
40
|
-
$
|
|
40
|
+
$tagWrapOffsetPx?: number | undefined;
|
|
41
41
|
}>> & string;
|
|
42
42
|
export declare const CheckpointWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
43
43
|
$numberOfCheckpoints: number;
|
|
@@ -3,3 +3,4 @@ import { Checkpoint } from "../Cart";
|
|
|
3
3
|
import { MultiStepProgressBarProps } from "./types";
|
|
4
4
|
export declare const criteriaCheckpointFieldMap: (customCartProgressBarCriteria: string) => "minimumOrderValue" | "quantityThreshold";
|
|
5
5
|
export declare function processCheckpoint(checkpoint: Checkpoint, index: number, sortedCheckpoints: Checkpoint[], itemCount: number, props: MultiStepProgressBarProps): CheckpointWithProgress;
|
|
6
|
+
export declare function hasAnyProgress(checkpoints: Checkpoint[] | undefined, currentCartAmount: number, effectiveQuantityForProgressBar: number | undefined, customCartProgressBarCriteria: string, itemCount: number): boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const ColoredText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
3
|
-
ctaButtonBackgroundColor?: string | undefined;
|
|
3
|
+
$ctaButtonBackgroundColor?: string | undefined;
|
|
4
4
|
}>> & string;
|
|
5
5
|
export declare const SingleTierWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
6
6
|
$isCompleted?: boolean | undefined;
|
|
@@ -11,7 +11,7 @@ export declare const SingleTierWrapper: import("styled-components/dist/types").I
|
|
|
11
11
|
}>> & string;
|
|
12
12
|
export declare const Container: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
13
13
|
export declare const SingleTierNextRewardWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
14
|
-
ctaButtonTextColor?: string | undefined;
|
|
14
|
+
$ctaButtonTextColor?: string | undefined;
|
|
15
15
|
$ctaButtonBackgroundColor?: string | undefined;
|
|
16
16
|
}>> & string;
|
|
17
17
|
export declare const ProgressBarWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { BundlePayload } from "../BundleBlock/Bundle";
|
|
2
3
|
export type stickyCartCustomizationDataProps = {
|
|
3
4
|
showPrice: boolean;
|
|
4
5
|
productImage?: {
|
|
@@ -41,6 +42,11 @@ export type StickyAddToCartProps = {
|
|
|
41
42
|
checkoutFunction?: (event: any) => Promise<any>;
|
|
42
43
|
backgroundColor?: string;
|
|
43
44
|
primaryTextColor?: string;
|
|
45
|
+
comboBundleData?: BundlePayload;
|
|
46
|
+
comboBundleAddToCartFunction?: (selectedItemsSubtotal: number, variantIds?: string[], finalBundlePrice?: number, variantIdPriceMap?: {
|
|
47
|
+
variantId: string;
|
|
48
|
+
price: number;
|
|
49
|
+
}[]) => Promise<void>;
|
|
44
50
|
};
|
|
45
|
-
declare const StickyAddToCart: ({ showStickyCart, product, addCartItem, onSetLoading, themeColor, cartData, isCartOpen, setIsCartOpen, ctaButtonBackgroundColor, ctaButtonTextColor, addToStickyCart, cartComponentsCornerType, cartComponentsCornerRadius, themeTextColor, stickyCartCustomizationData, checkoutFunction, backgroundColor, primaryTextColor, }: StickyAddToCartProps) => React.JSX.Element | null;
|
|
51
|
+
declare const StickyAddToCart: ({ showStickyCart, product, addCartItem, onSetLoading, themeColor, cartData, isCartOpen, setIsCartOpen, ctaButtonBackgroundColor, ctaButtonTextColor, addToStickyCart, cartComponentsCornerType, cartComponentsCornerRadius, themeTextColor, stickyCartCustomizationData, checkoutFunction, backgroundColor, primaryTextColor, comboBundleData, comboBundleAddToCartFunction, }: StickyAddToCartProps) => React.JSX.Element | null;
|
|
46
52
|
export default StickyAddToCart;
|
|
@@ -13,6 +13,7 @@ type DesktopVariantPopupProps = {
|
|
|
13
13
|
productClaimCtaButtonText?: string;
|
|
14
14
|
backgroundSubdued?: string;
|
|
15
15
|
primaryTextColor?: string;
|
|
16
|
+
shouldCheckInventoryQuantity?: boolean;
|
|
16
17
|
};
|
|
17
18
|
declare const DesktopVariantPopup: React.ForwardRefExoticComponent<DesktopVariantPopupProps & React.RefAttributes<HTMLDivElement>>;
|
|
18
19
|
export default DesktopVariantPopup;
|
|
@@ -13,6 +13,7 @@ type MobileVariantPopupProps = {
|
|
|
13
13
|
productClaimCtaButtonText?: string;
|
|
14
14
|
backgroundSubdued?: string;
|
|
15
15
|
primaryTextColor?: string;
|
|
16
|
+
shouldCheckInventoryQuantity?: boolean;
|
|
16
17
|
};
|
|
17
18
|
declare const MobileVariantPopup: React.ForwardRefExoticComponent<MobileVariantPopupProps & React.RefAttributes<HTMLDivElement>>;
|
|
18
19
|
export default MobileVariantPopup;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CartCheckpoint } from "./ProductsOffers";
|
|
3
|
+
import { ProductsOffersConfigType } from "./ProductsOffers";
|
|
4
|
+
interface ProductOffersCouponProps {
|
|
5
|
+
offersToShow: CartCheckpoint[];
|
|
6
|
+
offersConfig?: ProductsOffersConfigType | null;
|
|
7
|
+
getOfferCardMessage: (offer: CartCheckpoint) => string;
|
|
8
|
+
setSelectedOffer: (offer: CartCheckpoint | null) => void;
|
|
9
|
+
setShowPopup: (show: boolean) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const ProductOffersCoupon: ({ offersToShow, offersConfig, getOfferCardMessage, setSelectedOffer, setShowPopup, }: ProductOffersCouponProps) => React.JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CartCheckpoint } from "./ProductsOffers";
|
|
3
|
+
import { ProductsOffersConfigType } from "./ProductsOffers";
|
|
4
|
+
interface ProductOffersListProps {
|
|
5
|
+
offersToShow: CartCheckpoint[];
|
|
6
|
+
offersConfig: ProductsOffersConfigType;
|
|
7
|
+
getOfferCardMessage: (offer: CartCheckpoint) => string;
|
|
8
|
+
setSelectedOffer: (offer: CartCheckpoint | null) => void;
|
|
9
|
+
setShowPopup: (show: boolean) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const ProductOffersList: ({ offersToShow, offersConfig, getOfferCardMessage, setSelectedOffer, setShowPopup, }: ProductOffersListProps) => React.JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CartCheckpoint, OfferTermsAndConditions } from "./ProductsOffers";
|
|
3
|
+
import { ProductsOffersConfigType } from "./ProductsOffers";
|
|
4
|
+
export declare const ProductOffersTermsMobilePopover: ({ showPopup, selectedOffer, selectedOfferTerms, onClose, offersConfig, }: {
|
|
5
|
+
showPopup: boolean;
|
|
6
|
+
selectedOffer: CartCheckpoint | null;
|
|
7
|
+
selectedOfferTerms: OfferTermsAndConditions | null;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
offersConfig?: ProductsOffersConfigType | null | undefined;
|
|
10
|
+
}) => React.ReactPortal | null;
|