yt-uikit 0.10.64 → 0.10.65-progress-css.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.
- package/README.md +94 -94
- package/dist/esm/assets/confetti.d.ts +2 -2
- package/dist/esm/atoms/bundleBuilderProductDetailsAtom.d.ts +4 -4
- package/dist/esm/atoms/cartDataAtom.d.ts +3 -3
- package/dist/esm/atoms/cartLoadingAtom.d.ts +23 -23
- package/dist/esm/atoms/cartTimer.d.ts +2 -2
- package/dist/esm/atoms/dateAtom.d.ts +1 -1
- package/dist/esm/atoms/freebieClaimModalAtom.d.ts +7 -7
- package/dist/esm/atoms/giftWrap.d.ts +2 -2
- package/dist/esm/atoms/gstCompanyNameAtom.d.ts +1 -1
- package/dist/esm/atoms/gstInputAtom.d.ts +1 -1
- package/dist/esm/atoms/maxQtyErrorAtom.d.ts +3 -3
- package/dist/esm/atoms/multiClaimSelectionAtom.d.ts +28 -28
- package/dist/esm/atoms/noteInputAtom.d.ts +3 -3
- package/dist/esm/atoms/postalCodeAtom.d.ts +1 -1
- package/dist/esm/atoms/shippingAtom.d.ts +8 -8
- package/dist/esm/atoms/showGSTInputAtom.d.ts +1 -1
- package/dist/esm/atoms/variantSelectionModalAtom.d.ts +33 -33
- package/dist/esm/components/BundleBlock/Bundle.d.ts +467 -467
- package/dist/esm/components/BundleBlock/BundleBuilder/BundleBuilder.d.ts +52 -52
- package/dist/esm/components/BundleBlock/BundleBuilder/ResponsiveBgImage.d.ts +9 -9
- package/dist/esm/components/BundleBlock/BundleBuilder/SortAndFilter.d.ts +74 -74
- package/dist/esm/components/BundleBlock/BundleBuilder/VariantOptionsModal.d.ts +30 -30
- package/dist/esm/components/BundleBlock/BundleBuilder/bundleBuilder.style.d.ts +37 -37
- package/dist/esm/components/BundleBlock/BundleBuilderTracker/BundleBuilderTracker.d.ts +56 -56
- package/dist/esm/components/BundleBlock/BundleBuilderTracker/bundleBuilderTracker.style.d.ts +77 -77
- package/dist/esm/components/BundleBlock/BundleLoaderModal.d.ts +7 -7
- package/dist/esm/components/BundleBlock/BundleProductDetailsModal/BundleProductDetailsModal.d.ts +45 -45
- package/dist/esm/components/BundleBlock/BundleProductDetailsModal/bundleProductDetailsModal.style.d.ts +10 -10
- package/dist/esm/components/BundleBlock/CartATCLoader.d.ts +12 -12
- package/dist/esm/components/BundleBlock/CollectionBundle/CategoryFilter.d.ts +10 -10
- package/dist/esm/components/BundleBlock/CollectionBundle/ColllectionBundle.d.ts +133 -133
- package/dist/esm/components/BundleBlock/CollectionBundle/ProductDetailsModal.d.ts +16 -16
- package/dist/esm/components/BundleBlock/ComboBundle.d.ts +17 -17
- package/dist/esm/components/BundleBlock/ErrorToast.d.ts +10 -10
- package/dist/esm/components/BundleBlock/FixedBundle/FixedBundle.d.ts +4 -4
- package/dist/esm/components/BundleBlock/FixedBundle/SeparateVariantOptions.d.ts +47 -47
- package/dist/esm/components/BundleBlock/FixedBundle/VariantSelectorModal.d.ts +23 -23
- package/dist/esm/components/BundleBlock/FixedBundle/fixedBundle.style.d.ts +81 -81
- package/dist/esm/components/BundleBlock/Loader.d.ts +5 -5
- package/dist/esm/components/BundleBlock/MixAndMatchBundle/MixAndMatchBundle.d.ts +9 -9
- package/dist/esm/components/BundleBlock/MixAndMatchBundle/mixAndMatchBundle.style.d.ts +86 -86
- package/dist/esm/components/BundleBlock/PersonalizationForm/PersonalizationForm.d.ts +35 -35
- package/dist/esm/components/BundleBlock/PersonalizationForm/PersonalizationFormModal.d.ts +24 -24
- package/dist/esm/components/BundleBlock/VolumeBundle/VolumeBundle.d.ts +27 -27
- package/dist/esm/components/BundleBlock/VolumeBundle/volumeBundle.style.d.ts +100 -100
- package/dist/esm/components/BundleBlock/index.d.ts +1 -1
- package/dist/esm/components/Cart/ApplyCoupon.d.ts +13 -13
- package/dist/esm/components/Cart/Bundle.d.ts +6 -6
- package/dist/esm/components/Cart/Cart.d.ts +261 -261
- package/dist/esm/components/Cart/CartDrawer.d.ts +34 -34
- package/dist/esm/components/Cart/CartOffersCarousel.d.ts +48 -48
- package/dist/esm/components/Cart/CartProductsList.d.ts +48 -48
- package/dist/esm/components/Cart/CartTimer.d.ts +8 -8
- package/dist/esm/components/Cart/CheckoutSection.d.ts +48 -48
- package/dist/esm/components/Cart/CouponSelection.d.ts +18 -18
- package/dist/esm/components/Cart/DatePicker.d.ts +10 -10
- package/dist/esm/components/Cart/EmptyCart.d.ts +34 -34
- package/dist/esm/components/Cart/FloatingCart.d.ts +24 -24
- package/dist/esm/components/Cart/FooterSections.d.ts +6 -6
- package/dist/esm/components/Cart/FreebieClaimManager.d.ts +18 -18
- package/dist/esm/components/Cart/FreebieClaimOverlay.d.ts +18 -18
- package/dist/esm/components/Cart/FreebieClaimOverlayCard.d.ts +13 -13
- package/dist/esm/components/Cart/FreebieClaimSection.d.ts +18 -18
- package/dist/esm/components/Cart/FreebieClaimSectionCard.d.ts +19 -19
- package/dist/esm/components/Cart/GSTSection.d.ts +15 -15
- package/dist/esm/components/Cart/GiftWrap.d.ts +15 -15
- package/dist/esm/components/Cart/InlineCartOfferInfoText.d.ts +10 -10
- package/dist/esm/components/Cart/LoyaltyAppliedCTA.d.ts +14 -14
- package/dist/esm/components/Cart/LoyaltyApplyCTA.d.ts +15 -15
- package/dist/esm/components/Cart/LoyaltyBadge.d.ts +11 -11
- package/dist/esm/components/Cart/LoyaltyGuestCTA.d.ts +17 -17
- package/dist/esm/components/Cart/MultiStepProgressBar/CheckpointConfetti.d.ts +11 -11
- package/dist/esm/components/Cart/MultiStepProgressBar/CheckpointIcon.d.ts +3 -3
- package/dist/esm/components/Cart/MultiStepProgressBar/CheckpointTooltip.d.ts +3 -3
- package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepIcon.d.ts +9 -9
- package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepProgressBar.d.ts +5 -5
- package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepProgressBar.styled.d.ts +45 -45
- package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepUtils.d.ts +6 -6
- package/dist/esm/components/Cart/MultiStepProgressBar/MultiTierProgressBar.d.ts +4 -4
- package/dist/esm/components/Cart/MultiStepProgressBar/MutiTierNextRewardMessage.d.ts +3 -3
- package/dist/esm/components/Cart/MultiStepProgressBar/NextRewardMessage.d.ts +3 -3
- package/dist/esm/components/Cart/MultiStepProgressBar/SingleTierProgressBar.d.ts +4 -4
- package/dist/esm/components/Cart/MultiStepProgressBar/SingleTierProgressBar.styled.d.ts +22 -22
- package/dist/esm/components/Cart/MultiStepProgressBar/SingletTierNextRewardMessage.d.ts +3 -3
- package/dist/esm/components/Cart/MultiStepProgressBar/types.d.ts +55 -55
- package/dist/esm/components/Cart/NextFreebieRow.d.ts +21 -21
- package/dist/esm/components/Cart/NoteSection.d.ts +8 -8
- package/dist/esm/components/Cart/ProductCard.d.ts +31 -31
- package/dist/esm/components/Cart/ProductRecCard.d.ts +20 -20
- package/dist/esm/components/Cart/ProductRecList.d.ts +23 -23
- package/dist/esm/components/Cart/ProgressBarCartLoader.d.ts +7 -7
- package/dist/esm/components/Cart/QuantitySelector.d.ts +12 -12
- package/dist/esm/components/Cart/RegionSpecificDelivery.d.ts +17 -17
- package/dist/esm/components/Cart/RewardPointsPreview.d.ts +12 -12
- package/dist/esm/components/Cart/StandardDelivery.d.ts +11 -11
- package/dist/esm/components/Cart/StealDealSection.d.ts +15 -15
- package/dist/esm/components/Cart/StickyCart.d.ts +64 -64
- package/dist/esm/components/Cart/SubtotalSection.d.ts +13 -13
- package/dist/esm/components/Cart/VariantSelectionPopup/DesktopVariantPopup.d.ts +20 -20
- package/dist/esm/components/Cart/VariantSelectionPopup/DesktopVariantPopup.styled.d.ts +60 -60
- package/dist/esm/components/Cart/VariantSelectionPopup/MobileVariantPopover.d.ts +20 -20
- package/dist/esm/components/Cart/index.d.ts +1 -1
- package/dist/esm/components/Loyalty/ActiveSessionOverlay.d.ts +8 -8
- package/dist/esm/components/Loyalty/BubbleLauncher.d.ts +14 -14
- package/dist/esm/components/Loyalty/GuestDesktop.d.ts +5 -5
- package/dist/esm/components/Loyalty/GuestDesktopWithoutImage.d.ts +7 -7
- package/dist/esm/components/Loyalty/GuestMobile.d.ts +6 -6
- package/dist/esm/components/Loyalty/Loader.d.ts +10 -10
- package/dist/esm/components/Loyalty/LoyaltyProductCatalog.d.ts +69 -69
- package/dist/esm/components/Loyalty/LoyaltyProfile.d.ts +6 -6
- package/dist/esm/components/Loyalty/LoyaltyWidget.d.ts +6 -6
- package/dist/esm/components/Loyalty/OTPComponent.d.ts +20 -20
- package/dist/esm/components/Loyalty/PointEarnBadge.d.ts +15 -15
- package/dist/esm/components/Loyalty/RecentTransactions.d.ts +8 -8
- package/dist/esm/components/Loyalty/RewardsModal.d.ts +13 -13
- package/dist/esm/components/Loyalty/RibbonLauncher.d.ts +12 -12
- package/dist/esm/components/Loyalty/StickyLauncher.d.ts +14 -14
- package/dist/esm/components/Loyalty/StickyTextLauncher.d.ts +2 -2
- package/dist/esm/components/Loyalty/Toast.d.ts +7 -7
- package/dist/esm/components/Loyalty/VIPTiersScreen.d.ts +11 -11
- package/dist/esm/components/Loyalty/WTRCoupon.d.ts +13 -13
- package/dist/esm/components/Loyalty/WaysToEarn.d.ts +33 -33
- package/dist/esm/components/Loyalty/WaysToRedeem.d.ts +106 -106
- package/dist/esm/components/Loyalty/index.d.ts +7 -7
- package/dist/esm/components/Loyalty/loyaltyLauncher.d.ts +19 -19
- package/dist/esm/components/Loyalty/styles/ActiveSession.styles.d.ts +3 -3
- package/dist/esm/components/Loyalty/styles/DobPopup.styles.d.ts +3 -3
- package/dist/esm/components/Loyalty/styles/PointEarnBadge.styles.d.ts +3 -3
- package/dist/esm/components/Loyalty/styles/RecentTransactions.styles.d.ts +6 -6
- package/dist/esm/components/Loyalty/styles/VIPTiers.styles.d.ts +4 -4
- package/dist/esm/components/Loyalty/styles/WaysToRedeem.styles.d.ts +5 -5
- package/dist/esm/components/Loyalty/styles/shared.styles.d.ts +3 -3
- package/dist/esm/components/Loyalty/styles.d.ts +23 -23
- package/dist/esm/components/Loyalty/types.d.ts +414 -414
- package/dist/esm/components/LoyaltyPageBlock/LoyaltyPageBlock.d.ts +160 -160
- package/dist/esm/components/Nudge/LeadGenerationNudge.d.ts +15 -15
- package/dist/esm/components/Nudge/Nudge.d.ts +40 -40
- package/dist/esm/components/Nudge/index.d.ts +1 -1
- package/dist/esm/components/ProductOffersBlock/ProductOffersCoupon.d.ts +12 -12
- package/dist/esm/components/ProductOffersBlock/ProductOffersList.d.ts +12 -12
- package/dist/esm/components/ProductOffersBlock/ProductOffersTermsMobilePopover.d.ts +10 -10
- package/dist/esm/components/ProductOffersBlock/ProductOffersTermsPopup.d.ts +10 -10
- package/dist/esm/components/ProductOffersBlock/ProductsOffers.d.ts +42 -42
- package/dist/esm/components/SpinnerWheel/SpinnerWheel.d.ts +23 -23
- package/dist/esm/components/SpinnerWheel/WheelSection.d.ts +9 -9
- package/dist/esm/components/SpinnerWheel/index.d.ts +1 -1
- package/dist/esm/components/index.d.ts +16 -16
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +129 -129
- package/dist/esm/utils/converter.d.ts +3 -3
- package/dist/esm/utils/customVariantOptions.d.ts +21 -21
- package/dist/esm/utils/freebieProductUtils.d.ts +39 -39
- package/dist/esm/utils/freebieUtils.d.ts +11 -11
- package/dist/esm/utils/index.d.ts +16 -16
- package/dist/esm/utils/safeguardDOM.d.ts +5 -5
- package/dist/esm/utils/shopifyAtcBridge.d.ts +43 -43
- package/dist/esm/utils/useMediaQuery.d.ts +1 -1
- package/package.json +98 -98
- /package/dist/esm/{confetti-f3502561.js → confetti-89678a6f.js} +0 -0
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export type Criteria = {
|
|
3
|
-
id: string;
|
|
4
|
-
type: "mov" | "moq";
|
|
5
|
-
value: number;
|
|
6
|
-
message: string;
|
|
7
|
-
redirectionUrl?: string;
|
|
8
|
-
};
|
|
9
|
-
export type Slide = {
|
|
10
|
-
slideNumber: number;
|
|
11
|
-
slideType: "TextImage" | "TextCode" | "TextFieldOnly" | "ImageOnly";
|
|
12
|
-
textAlignment: "left" | "center" | "right";
|
|
13
|
-
titleTextField?: string;
|
|
14
|
-
descriptionTextField?: string;
|
|
15
|
-
campaignCode?: string;
|
|
16
|
-
imageUrl?: string;
|
|
17
|
-
carouselRedirectionLink?: string;
|
|
18
|
-
redirectionUrl?: string;
|
|
19
|
-
enableMarquee?: boolean;
|
|
20
|
-
enableCustomCriteria?: boolean;
|
|
21
|
-
criteriaCount?: number;
|
|
22
|
-
criteria?: Criteria[];
|
|
23
|
-
};
|
|
24
|
-
export type CartOffersCarousalProps = {
|
|
25
|
-
enableCartOffersCarousel: boolean;
|
|
26
|
-
slidesCount: number;
|
|
27
|
-
pauseTimer: number;
|
|
28
|
-
backgroundColor: string;
|
|
29
|
-
slides: Slide[];
|
|
30
|
-
};
|
|
31
|
-
export default function CartOffersCarousel({ cartOffersCarousalData, themeColor, cartOffersCarouselHeight, cartData, }: {
|
|
32
|
-
themeColor?: string;
|
|
33
|
-
cartOffersCarousalData: CartOffersCarousalProps;
|
|
34
|
-
cartOffersCarouselHeight?: number;
|
|
35
|
-
cartData?: {
|
|
36
|
-
items_subtotal_price?: number;
|
|
37
|
-
original_total_price?: number;
|
|
38
|
-
currency?: string;
|
|
39
|
-
item_count?: number;
|
|
40
|
-
items: Array<{
|
|
41
|
-
properties?: {
|
|
42
|
-
_isYtFreebie?: boolean;
|
|
43
|
-
};
|
|
44
|
-
quantity?: number;
|
|
45
|
-
product_id?: number;
|
|
46
|
-
}>;
|
|
47
|
-
};
|
|
48
|
-
}): React.JSX.Element | null;
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type Criteria = {
|
|
3
|
+
id: string;
|
|
4
|
+
type: "mov" | "moq";
|
|
5
|
+
value: number;
|
|
6
|
+
message: string;
|
|
7
|
+
redirectionUrl?: string;
|
|
8
|
+
};
|
|
9
|
+
export type Slide = {
|
|
10
|
+
slideNumber: number;
|
|
11
|
+
slideType: "TextImage" | "TextCode" | "TextFieldOnly" | "ImageOnly";
|
|
12
|
+
textAlignment: "left" | "center" | "right";
|
|
13
|
+
titleTextField?: string;
|
|
14
|
+
descriptionTextField?: string;
|
|
15
|
+
campaignCode?: string;
|
|
16
|
+
imageUrl?: string;
|
|
17
|
+
carouselRedirectionLink?: string;
|
|
18
|
+
redirectionUrl?: string;
|
|
19
|
+
enableMarquee?: boolean;
|
|
20
|
+
enableCustomCriteria?: boolean;
|
|
21
|
+
criteriaCount?: number;
|
|
22
|
+
criteria?: Criteria[];
|
|
23
|
+
};
|
|
24
|
+
export type CartOffersCarousalProps = {
|
|
25
|
+
enableCartOffersCarousel: boolean;
|
|
26
|
+
slidesCount: number;
|
|
27
|
+
pauseTimer: number;
|
|
28
|
+
backgroundColor: string;
|
|
29
|
+
slides: Slide[];
|
|
30
|
+
};
|
|
31
|
+
export default function CartOffersCarousel({ cartOffersCarousalData, themeColor, cartOffersCarouselHeight, cartData, }: {
|
|
32
|
+
themeColor?: string;
|
|
33
|
+
cartOffersCarousalData: CartOffersCarousalProps;
|
|
34
|
+
cartOffersCarouselHeight?: number;
|
|
35
|
+
cartData?: {
|
|
36
|
+
items_subtotal_price?: number;
|
|
37
|
+
original_total_price?: number;
|
|
38
|
+
currency?: string;
|
|
39
|
+
item_count?: number;
|
|
40
|
+
items: Array<{
|
|
41
|
+
properties?: {
|
|
42
|
+
_isYtFreebie?: boolean;
|
|
43
|
+
};
|
|
44
|
+
quantity?: number;
|
|
45
|
+
product_id?: number;
|
|
46
|
+
}>;
|
|
47
|
+
};
|
|
48
|
+
}): React.JSX.Element | null;
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Checkpoint } from "./Cart";
|
|
3
|
-
import { freebieMilestoneProps } from "./NextFreebieRow";
|
|
4
|
-
type CartProductsListProps = {
|
|
5
|
-
addCartItem?: (product: any, quantity?: number, triggeredFrom?: string) => Promise<any>;
|
|
6
|
-
removeCartItem: (product: any) => Promise<any>;
|
|
7
|
-
handleIncrement: (lineItemKey: string | number, newQuantity: number, properties?: {
|
|
8
|
-
[key: string]: string;
|
|
9
|
-
}) => Promise<any>;
|
|
10
|
-
handleDecrement: (lineItemKey: string | number, newQuantity?: number) => Promise<any>;
|
|
11
|
-
isDev?: boolean;
|
|
12
|
-
themeColor?: string;
|
|
13
|
-
primaryTextColor?: string;
|
|
14
|
-
secondaryTextColor?: string;
|
|
15
|
-
freeProduct?: any;
|
|
16
|
-
themeTextColor?: string;
|
|
17
|
-
showEditOptionOnProducts?: boolean;
|
|
18
|
-
productPercentageOffMapping: {
|
|
19
|
-
[variantId: string]: number;
|
|
20
|
-
};
|
|
21
|
-
removeFreebieFromCart?: (lineItemKey: string) => Promise<void>;
|
|
22
|
-
showDeleteOnFreebies?: boolean;
|
|
23
|
-
freebieCouponTemplates: Checkpoint[];
|
|
24
|
-
cartCheckpoints?: Checkpoint[];
|
|
25
|
-
freebieFlowCheckpoints: Checkpoint[];
|
|
26
|
-
freeProductAdjustedCartTotal?: number;
|
|
27
|
-
imageAspectSelector?: "square" | "portrait";
|
|
28
|
-
cartComponentsCornerType?: "rounded" | "sharp";
|
|
29
|
-
cartComponentsCornerRadius?: number;
|
|
30
|
-
giftWrapVariantId?: string;
|
|
31
|
-
giftWrapProductId?: string;
|
|
32
|
-
showGiftWrapAsLineItem?: boolean;
|
|
33
|
-
backgroundSubdued?: string;
|
|
34
|
-
tertiaryColor?: string;
|
|
35
|
-
tertiaryTextColor?: string;
|
|
36
|
-
backgroundColor?: string;
|
|
37
|
-
showDiscountOnMRP?: boolean;
|
|
38
|
-
checkoutSectionMessage?: string;
|
|
39
|
-
checkoutSectionMessageRedirectLink?: string;
|
|
40
|
-
showFreebieMilestone?: boolean;
|
|
41
|
-
freebieMilestoneData?: freebieMilestoneProps;
|
|
42
|
-
freeLabelText?: string;
|
|
43
|
-
customCartProgressBarCriteria?: string;
|
|
44
|
-
effectiveQuantityForProgressBar?: number;
|
|
45
|
-
isLargeScreen?: boolean;
|
|
46
|
-
};
|
|
47
|
-
declare const CartProductsList: React.FC<CartProductsListProps>;
|
|
48
|
-
export default CartProductsList;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Checkpoint } from "./Cart";
|
|
3
|
+
import { freebieMilestoneProps } from "./NextFreebieRow";
|
|
4
|
+
type CartProductsListProps = {
|
|
5
|
+
addCartItem?: (product: any, quantity?: number, triggeredFrom?: string) => Promise<any>;
|
|
6
|
+
removeCartItem: (product: any) => Promise<any>;
|
|
7
|
+
handleIncrement: (lineItemKey: string | number, newQuantity: number, properties?: {
|
|
8
|
+
[key: string]: string;
|
|
9
|
+
}) => Promise<any>;
|
|
10
|
+
handleDecrement: (lineItemKey: string | number, newQuantity?: number) => Promise<any>;
|
|
11
|
+
isDev?: boolean;
|
|
12
|
+
themeColor?: string;
|
|
13
|
+
primaryTextColor?: string;
|
|
14
|
+
secondaryTextColor?: string;
|
|
15
|
+
freeProduct?: any;
|
|
16
|
+
themeTextColor?: string;
|
|
17
|
+
showEditOptionOnProducts?: boolean;
|
|
18
|
+
productPercentageOffMapping: {
|
|
19
|
+
[variantId: string]: number;
|
|
20
|
+
};
|
|
21
|
+
removeFreebieFromCart?: (lineItemKey: string) => Promise<void>;
|
|
22
|
+
showDeleteOnFreebies?: boolean;
|
|
23
|
+
freebieCouponTemplates: Checkpoint[];
|
|
24
|
+
cartCheckpoints?: Checkpoint[];
|
|
25
|
+
freebieFlowCheckpoints: Checkpoint[];
|
|
26
|
+
freeProductAdjustedCartTotal?: number;
|
|
27
|
+
imageAspectSelector?: "square" | "portrait";
|
|
28
|
+
cartComponentsCornerType?: "rounded" | "sharp";
|
|
29
|
+
cartComponentsCornerRadius?: number;
|
|
30
|
+
giftWrapVariantId?: string;
|
|
31
|
+
giftWrapProductId?: string;
|
|
32
|
+
showGiftWrapAsLineItem?: boolean;
|
|
33
|
+
backgroundSubdued?: string;
|
|
34
|
+
tertiaryColor?: string;
|
|
35
|
+
tertiaryTextColor?: string;
|
|
36
|
+
backgroundColor?: string;
|
|
37
|
+
showDiscountOnMRP?: boolean;
|
|
38
|
+
checkoutSectionMessage?: string;
|
|
39
|
+
checkoutSectionMessageRedirectLink?: string;
|
|
40
|
+
showFreebieMilestone?: boolean;
|
|
41
|
+
freebieMilestoneData?: freebieMilestoneProps;
|
|
42
|
+
freeLabelText?: string;
|
|
43
|
+
customCartProgressBarCriteria?: string;
|
|
44
|
+
effectiveQuantityForProgressBar?: number;
|
|
45
|
+
isLargeScreen?: boolean;
|
|
46
|
+
};
|
|
47
|
+
declare const CartProductsList: React.FC<CartProductsListProps>;
|
|
48
|
+
export default CartProductsList;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
type CartTimerProps = {
|
|
3
|
-
minutes?: number;
|
|
4
|
-
customText?: string;
|
|
5
|
-
onTimerComplete: () => void;
|
|
6
|
-
};
|
|
7
|
-
declare const CartTimer: ({ minutes, customText, onTimerComplete, }: CartTimerProps) => React.JSX.Element;
|
|
8
|
-
export default CartTimer;
|
|
1
|
+
import React from "react";
|
|
2
|
+
type CartTimerProps = {
|
|
3
|
+
minutes?: number;
|
|
4
|
+
customText?: string;
|
|
5
|
+
onTimerComplete: () => void;
|
|
6
|
+
};
|
|
7
|
+
declare const CartTimer: ({ minutes, customText, onTimerComplete, }: CartTimerProps) => React.JSX.Element;
|
|
8
|
+
export default CartTimer;
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "./shared.scss";
|
|
3
|
-
import { Checkpoint } from "./Cart";
|
|
4
|
-
export interface trustedBadgeInterface {
|
|
5
|
-
enableTrustedBadge: boolean;
|
|
6
|
-
badgeImage: {
|
|
7
|
-
id: string;
|
|
8
|
-
path: string;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
interface CheckoutSectionProps {
|
|
12
|
-
checkoutButtonColor?: string;
|
|
13
|
-
checkoutFontSize: string | number;
|
|
14
|
-
checkoutFunction: (templateId?: number) => Promise<any>;
|
|
15
|
-
discountApplied?: boolean;
|
|
16
|
-
discountInCheckoutButton?: boolean | string;
|
|
17
|
-
isStickyCheckout?: boolean;
|
|
18
|
-
discountAmountApplied?: number;
|
|
19
|
-
minimumCartValue?: number;
|
|
20
|
-
themeTextColor?: string;
|
|
21
|
-
applyGSTToCart?: (gstNumber: string, companyName: string) => Promise<any>;
|
|
22
|
-
showGSTOption?: boolean;
|
|
23
|
-
applyNoteToCart?: (note: string) => Promise<any>;
|
|
24
|
-
showNoteOption?: boolean;
|
|
25
|
-
enableGeoLocationDeliveryRestriction?: boolean;
|
|
26
|
-
applyPostalCodeAndDeliverySlotToCart?: (deliveryType: string, postalCode?: string, deliverySlot?: string) => Promise<any>;
|
|
27
|
-
enableSlotPicker?: boolean;
|
|
28
|
-
cartComponentsCornerType?: "rounded" | "sharp";
|
|
29
|
-
cartComponentsCornerRadius?: number;
|
|
30
|
-
checkoutSectionMessage?: string;
|
|
31
|
-
checkoutSectionMessageRedirectLink?: string;
|
|
32
|
-
checkoutSectionMessageDisplay?: "ribbon" | "tag" | "bookmark";
|
|
33
|
-
showDiscountOnMRP?: boolean;
|
|
34
|
-
tertiaryColor?: string;
|
|
35
|
-
tertiaryTextColor?: string;
|
|
36
|
-
cartCheckpoints?: Checkpoint[];
|
|
37
|
-
toggleDecimal?: boolean;
|
|
38
|
-
disableCheckoutButton: boolean;
|
|
39
|
-
checkoutButtonBottomSpacing?: number;
|
|
40
|
-
showCheckoutButtonPaymentIcons?: boolean;
|
|
41
|
-
primaryTextColor?: string;
|
|
42
|
-
hideSubtotalAndBadge?: boolean;
|
|
43
|
-
showTrustedBadge?: boolean;
|
|
44
|
-
trustedBadgeData?: trustedBadgeInterface;
|
|
45
|
-
isLargeScreen?: boolean;
|
|
46
|
-
}
|
|
47
|
-
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, showCheckoutButtonPaymentIcons, primaryTextColor, hideSubtotalAndBadge, showTrustedBadge, trustedBadgeData, isLargeScreen }: CheckoutSectionProps): React.JSX.Element;
|
|
48
|
-
export default CheckoutSection;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./shared.scss";
|
|
3
|
+
import { Checkpoint } from "./Cart";
|
|
4
|
+
export interface trustedBadgeInterface {
|
|
5
|
+
enableTrustedBadge: boolean;
|
|
6
|
+
badgeImage: {
|
|
7
|
+
id: string;
|
|
8
|
+
path: string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
interface CheckoutSectionProps {
|
|
12
|
+
checkoutButtonColor?: string;
|
|
13
|
+
checkoutFontSize: string | number;
|
|
14
|
+
checkoutFunction: (templateId?: number) => Promise<any>;
|
|
15
|
+
discountApplied?: boolean;
|
|
16
|
+
discountInCheckoutButton?: boolean | string;
|
|
17
|
+
isStickyCheckout?: boolean;
|
|
18
|
+
discountAmountApplied?: number;
|
|
19
|
+
minimumCartValue?: number;
|
|
20
|
+
themeTextColor?: string;
|
|
21
|
+
applyGSTToCart?: (gstNumber: string, companyName: string) => Promise<any>;
|
|
22
|
+
showGSTOption?: boolean;
|
|
23
|
+
applyNoteToCart?: (note: string) => Promise<any>;
|
|
24
|
+
showNoteOption?: boolean;
|
|
25
|
+
enableGeoLocationDeliveryRestriction?: boolean;
|
|
26
|
+
applyPostalCodeAndDeliverySlotToCart?: (deliveryType: string, postalCode?: string, deliverySlot?: string) => Promise<any>;
|
|
27
|
+
enableSlotPicker?: boolean;
|
|
28
|
+
cartComponentsCornerType?: "rounded" | "sharp";
|
|
29
|
+
cartComponentsCornerRadius?: number;
|
|
30
|
+
checkoutSectionMessage?: string;
|
|
31
|
+
checkoutSectionMessageRedirectLink?: string;
|
|
32
|
+
checkoutSectionMessageDisplay?: "ribbon" | "tag" | "bookmark";
|
|
33
|
+
showDiscountOnMRP?: boolean;
|
|
34
|
+
tertiaryColor?: string;
|
|
35
|
+
tertiaryTextColor?: string;
|
|
36
|
+
cartCheckpoints?: Checkpoint[];
|
|
37
|
+
toggleDecimal?: boolean;
|
|
38
|
+
disableCheckoutButton: boolean;
|
|
39
|
+
checkoutButtonBottomSpacing?: number;
|
|
40
|
+
showCheckoutButtonPaymentIcons?: boolean;
|
|
41
|
+
primaryTextColor?: string;
|
|
42
|
+
hideSubtotalAndBadge?: boolean;
|
|
43
|
+
showTrustedBadge?: boolean;
|
|
44
|
+
trustedBadgeData?: trustedBadgeInterface;
|
|
45
|
+
isLargeScreen?: boolean;
|
|
46
|
+
}
|
|
47
|
+
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, showCheckoutButtonPaymentIcons, primaryTextColor, hideSubtotalAndBadge, showTrustedBadge, trustedBadgeData, isLargeScreen }: CheckoutSectionProps): React.JSX.Element;
|
|
48
|
+
export default CheckoutSection;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { CouponSelectionData, RewardCoupon } from "./Cart";
|
|
3
|
-
interface CouponSelectionProps {
|
|
4
|
-
rewardCoupons: RewardCoupon[];
|
|
5
|
-
couponSelectionData: CouponSelectionData;
|
|
6
|
-
applyCouponCode?: (code: string) => Promise<void>;
|
|
7
|
-
removeDiscount?: () => Promise<void>;
|
|
8
|
-
enableConfetti?: boolean;
|
|
9
|
-
backgroundSubdued?: string;
|
|
10
|
-
themeColor?: string;
|
|
11
|
-
themeTextColor?: string;
|
|
12
|
-
primaryTextColor?: string;
|
|
13
|
-
ctaButtonBackgroundColor?: string;
|
|
14
|
-
ctaButtonTextColor?: string;
|
|
15
|
-
cartComponentsCornerRadius?: number;
|
|
16
|
-
}
|
|
17
|
-
declare const CouponSelection: React.FC<CouponSelectionProps>;
|
|
18
|
-
export default CouponSelection;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CouponSelectionData, RewardCoupon } from "./Cart";
|
|
3
|
+
interface CouponSelectionProps {
|
|
4
|
+
rewardCoupons: RewardCoupon[];
|
|
5
|
+
couponSelectionData: CouponSelectionData;
|
|
6
|
+
applyCouponCode?: (code: string) => Promise<void>;
|
|
7
|
+
removeDiscount?: () => Promise<void>;
|
|
8
|
+
enableConfetti?: boolean;
|
|
9
|
+
backgroundSubdued?: string;
|
|
10
|
+
themeColor?: string;
|
|
11
|
+
themeTextColor?: string;
|
|
12
|
+
primaryTextColor?: string;
|
|
13
|
+
ctaButtonBackgroundColor?: string;
|
|
14
|
+
ctaButtonTextColor?: string;
|
|
15
|
+
cartComponentsCornerRadius?: number;
|
|
16
|
+
}
|
|
17
|
+
declare const CouponSelection: React.FC<CouponSelectionProps>;
|
|
18
|
+
export default CouponSelection;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "react-calendar/dist/Calendar.css";
|
|
3
|
-
import "./DatePicker.css";
|
|
4
|
-
interface CustomDatePickerProps {
|
|
5
|
-
themeColor?: string;
|
|
6
|
-
themeTextColor?: string;
|
|
7
|
-
disabledDates?: Date[] | Date;
|
|
8
|
-
}
|
|
9
|
-
declare const CustomDatePicker: React.FC<CustomDatePickerProps>;
|
|
10
|
-
export default CustomDatePicker;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "react-calendar/dist/Calendar.css";
|
|
3
|
+
import "./DatePicker.css";
|
|
4
|
+
interface CustomDatePickerProps {
|
|
5
|
+
themeColor?: string;
|
|
6
|
+
themeTextColor?: string;
|
|
7
|
+
disabledDates?: Date[] | Date;
|
|
8
|
+
}
|
|
9
|
+
declare const CustomDatePicker: React.FC<CustomDatePickerProps>;
|
|
10
|
+
export default CustomDatePicker;
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { CartProps } from "./Cart";
|
|
3
|
-
export default function EmptyCart({ showLoyaltyCta, exploreCTAColor, emptyCartTitle, emptyCartDescription, isUserSignedIn, joinNowFunction, exploreCtaRedirectLink, themeColor, emptyCartButtons, cartComponentsCornerRadius, cartComponentsCornerType, themeTextColor, isRecProductsListValid, recProductsList, addCartItem, productRecsCtaButtonText, ctaButtonBackgroundColor, ctaButtonTextColor, primaryTextColor, secondaryTextColor, showVariantSelectionDropdownInProductRecs, productRecsTitleText, emptyProductRecsTitleText, backgroundSubdued, showEmptyCartRecommendations, tertiaryColor, tertiaryTextColor, }: {
|
|
4
|
-
showLoyaltyCta: boolean;
|
|
5
|
-
exploreCTAColor: any;
|
|
6
|
-
emptyCartTitle: string;
|
|
7
|
-
emptyCartDescription?: string;
|
|
8
|
-
isUserSignedIn?: boolean;
|
|
9
|
-
joinNowFunction?: () => void;
|
|
10
|
-
exploreCtaRedirectLink?: string;
|
|
11
|
-
themeColor?: string;
|
|
12
|
-
emptyCartButtons?: Array<{
|
|
13
|
-
title: string;
|
|
14
|
-
link: string;
|
|
15
|
-
}>;
|
|
16
|
-
cartComponentsCornerRadius?: number;
|
|
17
|
-
cartComponentsCornerType?: "rounded" | "sharp";
|
|
18
|
-
themeTextColor?: string;
|
|
19
|
-
isRecProductsListValid?: boolean;
|
|
20
|
-
recProductsList?: any[];
|
|
21
|
-
addCartItem?: CartProps["addCartItem"];
|
|
22
|
-
productRecsCtaButtonText?: CartProps["productRecsCtaButtonText"];
|
|
23
|
-
ctaButtonBackgroundColor?: CartProps["ctaButtonBackgroundColor"];
|
|
24
|
-
ctaButtonTextColor?: CartProps["ctaButtonTextColor"];
|
|
25
|
-
primaryTextColor?: CartProps["primaryTextColor"];
|
|
26
|
-
secondaryTextColor?: CartProps["secondaryTextColor"];
|
|
27
|
-
showVariantSelectionDropdownInProductRecs?: CartProps["showVariantSelectionDropdownInProductRecs"];
|
|
28
|
-
productRecsTitleText?: CartProps["productRecsTitleText"];
|
|
29
|
-
emptyProductRecsTitleText?: CartProps["emptyProductRecsTitleText"];
|
|
30
|
-
backgroundSubdued?: CartProps["backgroundSubdued"];
|
|
31
|
-
showEmptyCartRecommendations?: boolean;
|
|
32
|
-
tertiaryColor?: string;
|
|
33
|
-
tertiaryTextColor?: string;
|
|
34
|
-
}): React.JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CartProps } from "./Cart";
|
|
3
|
+
export default function EmptyCart({ showLoyaltyCta, exploreCTAColor, emptyCartTitle, emptyCartDescription, isUserSignedIn, joinNowFunction, exploreCtaRedirectLink, themeColor, emptyCartButtons, cartComponentsCornerRadius, cartComponentsCornerType, themeTextColor, isRecProductsListValid, recProductsList, addCartItem, productRecsCtaButtonText, ctaButtonBackgroundColor, ctaButtonTextColor, primaryTextColor, secondaryTextColor, showVariantSelectionDropdownInProductRecs, productRecsTitleText, emptyProductRecsTitleText, backgroundSubdued, showEmptyCartRecommendations, tertiaryColor, tertiaryTextColor, }: {
|
|
4
|
+
showLoyaltyCta: boolean;
|
|
5
|
+
exploreCTAColor: any;
|
|
6
|
+
emptyCartTitle: string;
|
|
7
|
+
emptyCartDescription?: string;
|
|
8
|
+
isUserSignedIn?: boolean;
|
|
9
|
+
joinNowFunction?: () => void;
|
|
10
|
+
exploreCtaRedirectLink?: string;
|
|
11
|
+
themeColor?: string;
|
|
12
|
+
emptyCartButtons?: Array<{
|
|
13
|
+
title: string;
|
|
14
|
+
link: string;
|
|
15
|
+
}>;
|
|
16
|
+
cartComponentsCornerRadius?: number;
|
|
17
|
+
cartComponentsCornerType?: "rounded" | "sharp";
|
|
18
|
+
themeTextColor?: string;
|
|
19
|
+
isRecProductsListValid?: boolean;
|
|
20
|
+
recProductsList?: any[];
|
|
21
|
+
addCartItem?: CartProps["addCartItem"];
|
|
22
|
+
productRecsCtaButtonText?: CartProps["productRecsCtaButtonText"];
|
|
23
|
+
ctaButtonBackgroundColor?: CartProps["ctaButtonBackgroundColor"];
|
|
24
|
+
ctaButtonTextColor?: CartProps["ctaButtonTextColor"];
|
|
25
|
+
primaryTextColor?: CartProps["primaryTextColor"];
|
|
26
|
+
secondaryTextColor?: CartProps["secondaryTextColor"];
|
|
27
|
+
showVariantSelectionDropdownInProductRecs?: CartProps["showVariantSelectionDropdownInProductRecs"];
|
|
28
|
+
productRecsTitleText?: CartProps["productRecsTitleText"];
|
|
29
|
+
emptyProductRecsTitleText?: CartProps["emptyProductRecsTitleText"];
|
|
30
|
+
backgroundSubdued?: CartProps["backgroundSubdued"];
|
|
31
|
+
showEmptyCartRecommendations?: boolean;
|
|
32
|
+
tertiaryColor?: string;
|
|
33
|
+
tertiaryTextColor?: string;
|
|
34
|
+
}): React.JSX.Element;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Checkpoint } from "./Cart";
|
|
3
|
-
export interface FloatingCartProps {
|
|
4
|
-
setIsCartOpen: (isOpen: boolean) => void;
|
|
5
|
-
isCartOpen?: boolean;
|
|
6
|
-
cartCheckpoints?: Checkpoint[];
|
|
7
|
-
customCartProgressBarCriteria?: string;
|
|
8
|
-
floatingCartData?: FloatingCartDataProps;
|
|
9
|
-
effectiveQuantityForProgressBar?: number;
|
|
10
|
-
cartComponentsCornerType?: "rounded" | "sharp";
|
|
11
|
-
cartComponentsCornerRadius?: number;
|
|
12
|
-
}
|
|
13
|
-
export type FloatingCartDataProps = {
|
|
14
|
-
enableFloatingCart: boolean;
|
|
15
|
-
backgroundColor: string;
|
|
16
|
-
bannerBackgroundColor: string;
|
|
17
|
-
textColor: string;
|
|
18
|
-
buttonColor: string;
|
|
19
|
-
bannerFooterText: string;
|
|
20
|
-
showOnPages: string[];
|
|
21
|
-
lastTierUnlockedText?: string;
|
|
22
|
-
};
|
|
23
|
-
declare const FloatingCart: React.FC<FloatingCartProps>;
|
|
24
|
-
export default FloatingCart;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Checkpoint } from "./Cart";
|
|
3
|
+
export interface FloatingCartProps {
|
|
4
|
+
setIsCartOpen: (isOpen: boolean) => void;
|
|
5
|
+
isCartOpen?: boolean;
|
|
6
|
+
cartCheckpoints?: Checkpoint[];
|
|
7
|
+
customCartProgressBarCriteria?: string;
|
|
8
|
+
floatingCartData?: FloatingCartDataProps;
|
|
9
|
+
effectiveQuantityForProgressBar?: number;
|
|
10
|
+
cartComponentsCornerType?: "rounded" | "sharp";
|
|
11
|
+
cartComponentsCornerRadius?: number;
|
|
12
|
+
}
|
|
13
|
+
export type FloatingCartDataProps = {
|
|
14
|
+
enableFloatingCart: boolean;
|
|
15
|
+
backgroundColor: string;
|
|
16
|
+
bannerBackgroundColor: string;
|
|
17
|
+
textColor: string;
|
|
18
|
+
buttonColor: string;
|
|
19
|
+
bannerFooterText: string;
|
|
20
|
+
showOnPages: string[];
|
|
21
|
+
lastTierUnlockedText?: string;
|
|
22
|
+
};
|
|
23
|
+
declare const FloatingCart: React.FC<FloatingCartProps>;
|
|
24
|
+
export default FloatingCart;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React, { PropsWithChildren } from "react";
|
|
2
|
-
type FooterSectionsProps = {
|
|
3
|
-
children: PropsWithChildren<any>;
|
|
4
|
-
};
|
|
5
|
-
declare const FooterSections: React.FC<FooterSectionsProps>;
|
|
6
|
-
export default FooterSections;
|
|
1
|
+
import React, { PropsWithChildren } from "react";
|
|
2
|
+
type FooterSectionsProps = {
|
|
3
|
+
children: PropsWithChildren<any>;
|
|
4
|
+
};
|
|
5
|
+
declare const FooterSections: React.FC<FooterSectionsProps>;
|
|
6
|
+
export default FooterSections;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { freebieClaimInterface, Checkpoint } from "./Cart";
|
|
3
|
-
import { FreebieRewardContext } from "../../utils/freebieUtils";
|
|
4
|
-
interface FreebieClaimManagerProps {
|
|
5
|
-
freebieProductsInCart: any[];
|
|
6
|
-
themeColor?: string;
|
|
7
|
-
themeTextColor?: string;
|
|
8
|
-
primaryTextColor?: string;
|
|
9
|
-
addFreebieToCart?: (variantId: string, originalAllowedVariantIds?: string[], rewardContext?: FreebieRewardContext) => Promise<void>;
|
|
10
|
-
freebiesInCart: string[];
|
|
11
|
-
freebieClaimData?: freebieClaimInterface;
|
|
12
|
-
cartCheckpoints?: Checkpoint[];
|
|
13
|
-
imageAspectSelector?: "square" | "portrait";
|
|
14
|
-
freebieCouponTemplates?: Checkpoint[];
|
|
15
|
-
isCartDrawerOpen?: boolean;
|
|
16
|
-
}
|
|
17
|
-
declare const FreebieClaimManager: React.FC<FreebieClaimManagerProps>;
|
|
18
|
-
export default FreebieClaimManager;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { freebieClaimInterface, Checkpoint } from "./Cart";
|
|
3
|
+
import { FreebieRewardContext } from "../../utils/freebieUtils";
|
|
4
|
+
interface FreebieClaimManagerProps {
|
|
5
|
+
freebieProductsInCart: any[];
|
|
6
|
+
themeColor?: string;
|
|
7
|
+
themeTextColor?: string;
|
|
8
|
+
primaryTextColor?: string;
|
|
9
|
+
addFreebieToCart?: (variantId: string, originalAllowedVariantIds?: string[], rewardContext?: FreebieRewardContext) => Promise<void>;
|
|
10
|
+
freebiesInCart: string[];
|
|
11
|
+
freebieClaimData?: freebieClaimInterface;
|
|
12
|
+
cartCheckpoints?: Checkpoint[];
|
|
13
|
+
imageAspectSelector?: "square" | "portrait";
|
|
14
|
+
freebieCouponTemplates?: Checkpoint[];
|
|
15
|
+
isCartDrawerOpen?: boolean;
|
|
16
|
+
}
|
|
17
|
+
declare const FreebieClaimManager: React.FC<FreebieClaimManagerProps>;
|
|
18
|
+
export default FreebieClaimManager;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Checkpoint } from "./Cart";
|
|
3
|
-
import { FreebieRewardContext } from "../../utils/freebieUtils";
|
|
4
|
-
interface FreebieClaimOverlayProps {
|
|
5
|
-
freebieProductsInCart: any[];
|
|
6
|
-
maxFreebiesInTier: number;
|
|
7
|
-
tierName: string;
|
|
8
|
-
themeColor?: string;
|
|
9
|
-
themeTextColor?: string;
|
|
10
|
-
primaryTextColor?: string;
|
|
11
|
-
addFreebieToCart?: (variantId: string, originalAllowedVariantIds?: string[], rewardContext?: FreebieRewardContext) => Promise<void>;
|
|
12
|
-
imageAspectSelector?: "square" | "portrait";
|
|
13
|
-
freebieCouponTemplates?: Checkpoint[];
|
|
14
|
-
freebieClaimData?: any;
|
|
15
|
-
isCartDrawerOpen?: boolean;
|
|
16
|
-
}
|
|
17
|
-
declare const FreebieClaimOverlay: React.FC<FreebieClaimOverlayProps>;
|
|
18
|
-
export default FreebieClaimOverlay;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Checkpoint } from "./Cart";
|
|
3
|
+
import { FreebieRewardContext } from "../../utils/freebieUtils";
|
|
4
|
+
interface FreebieClaimOverlayProps {
|
|
5
|
+
freebieProductsInCart: any[];
|
|
6
|
+
maxFreebiesInTier: number;
|
|
7
|
+
tierName: string;
|
|
8
|
+
themeColor?: string;
|
|
9
|
+
themeTextColor?: string;
|
|
10
|
+
primaryTextColor?: string;
|
|
11
|
+
addFreebieToCart?: (variantId: string, originalAllowedVariantIds?: string[], rewardContext?: FreebieRewardContext) => Promise<void>;
|
|
12
|
+
imageAspectSelector?: "square" | "portrait";
|
|
13
|
+
freebieCouponTemplates?: Checkpoint[];
|
|
14
|
+
freebieClaimData?: any;
|
|
15
|
+
isCartDrawerOpen?: boolean;
|
|
16
|
+
}
|
|
17
|
+
declare const FreebieClaimOverlay: React.FC<FreebieClaimOverlayProps>;
|
|
18
|
+
export default FreebieClaimOverlay;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface FreebieClaimOverlayCardProps {
|
|
3
|
-
product: any;
|
|
4
|
-
imageAspectSelector?: "square" | "portrait";
|
|
5
|
-
freebieCouponTemplates?: any[];
|
|
6
|
-
accentColor?: string;
|
|
7
|
-
freebieProductsInCart?: any[];
|
|
8
|
-
selectedVariantId?: string;
|
|
9
|
-
onVariantChange: (variantId: string) => void;
|
|
10
|
-
isSubmitting: boolean;
|
|
11
|
-
}
|
|
12
|
-
declare const FreebieClaimOverlayCard: React.FC<FreebieClaimOverlayCardProps>;
|
|
13
|
-
export default FreebieClaimOverlayCard;
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface FreebieClaimOverlayCardProps {
|
|
3
|
+
product: any;
|
|
4
|
+
imageAspectSelector?: "square" | "portrait";
|
|
5
|
+
freebieCouponTemplates?: any[];
|
|
6
|
+
accentColor?: string;
|
|
7
|
+
freebieProductsInCart?: any[];
|
|
8
|
+
selectedVariantId?: string;
|
|
9
|
+
onVariantChange: (variantId: string) => void;
|
|
10
|
+
isSubmitting: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const FreebieClaimOverlayCard: React.FC<FreebieClaimOverlayCardProps>;
|
|
13
|
+
export default FreebieClaimOverlayCard;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { FreebieRewardContext } from "../../utils/freebieUtils";
|
|
3
|
-
import { Checkpoint } from "./Cart";
|
|
4
|
-
interface FreebieClaimSectionProps {
|
|
5
|
-
freebieProductsInCart: any[];
|
|
6
|
-
themeColor?: string;
|
|
7
|
-
themeTextColor?: string;
|
|
8
|
-
primaryTextColor?: string;
|
|
9
|
-
addFreebieToCart?: (variantId: string, originalAllowedVariantIds?: string[], rewardContext?: FreebieRewardContext) => Promise<void>;
|
|
10
|
-
freebiesInCart: string[];
|
|
11
|
-
imageAspectSelector?: "square" | "portrait";
|
|
12
|
-
freebieCouponTemplates?: Checkpoint[];
|
|
13
|
-
maxFreebiesInTier?: number;
|
|
14
|
-
tierName?: string;
|
|
15
|
-
freebieClaimData?: any;
|
|
16
|
-
}
|
|
17
|
-
declare const FreebieClaimSection: React.FC<FreebieClaimSectionProps>;
|
|
18
|
-
export default FreebieClaimSection;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { FreebieRewardContext } from "../../utils/freebieUtils";
|
|
3
|
+
import { Checkpoint } from "./Cart";
|
|
4
|
+
interface FreebieClaimSectionProps {
|
|
5
|
+
freebieProductsInCart: any[];
|
|
6
|
+
themeColor?: string;
|
|
7
|
+
themeTextColor?: string;
|
|
8
|
+
primaryTextColor?: string;
|
|
9
|
+
addFreebieToCart?: (variantId: string, originalAllowedVariantIds?: string[], rewardContext?: FreebieRewardContext) => Promise<void>;
|
|
10
|
+
freebiesInCart: string[];
|
|
11
|
+
imageAspectSelector?: "square" | "portrait";
|
|
12
|
+
freebieCouponTemplates?: Checkpoint[];
|
|
13
|
+
maxFreebiesInTier?: number;
|
|
14
|
+
tierName?: string;
|
|
15
|
+
freebieClaimData?: any;
|
|
16
|
+
}
|
|
17
|
+
declare const FreebieClaimSection: React.FC<FreebieClaimSectionProps>;
|
|
18
|
+
export default FreebieClaimSection;
|