yt-uikit 0.10.147 → 0.10.149-note.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 +35 -35
- package/dist/esm/components/BundleBlock/Bundle.d.ts +478 -478
- 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 +36 -36
- package/dist/esm/components/BundleBlock/BundleBuilderTracker/BundleBuilderTracker.d.ts +56 -56
- package/dist/esm/components/BundleBlock/BundleBuilderTracker/bundleBuilderTracker.style.d.ts +80 -80
- package/dist/esm/components/BundleBlock/BundleLoaderModal.d.ts +7 -7
- package/dist/esm/components/BundleBlock/BundleProductDetailsModal/BundleProductDetailsModal.d.ts +54 -54
- package/dist/esm/components/BundleBlock/BundleProductDetailsModal/ImageViewer.d.ts +18 -18
- package/dist/esm/components/BundleBlock/BundleProductDetailsModal/bundleProductDetailsModal.style.d.ts +9 -9
- 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 +135 -135
- package/dist/esm/components/BundleBlock/CollectionBundle/ProductDetailsModal.d.ts +20 -20
- 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 +52 -52
- package/dist/esm/components/BundleBlock/FixedBundle/VariantSelectorModal.d.ts +23 -23
- package/dist/esm/components/BundleBlock/FixedBundle/fixedBundle.style.d.ts +86 -86
- 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 +91 -91
- 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/VariantDropdown.d.ts +33 -33
- package/dist/esm/components/BundleBlock/VolumeBundle/VolumeBundle.d.ts +31 -31
- package/dist/esm/components/BundleBlock/VolumeBundle/volumeBundle.style.d.ts +102 -102
- package/dist/esm/components/BundleBlock/gokwikGuard.d.ts +22 -22
- 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 +272 -272
- package/dist/esm/components/Cart/CartDrawer.d.ts +41 -41
- package/dist/esm/components/Cart/CartOffersCarousel.d.ts +48 -48
- package/dist/esm/components/Cart/CartProductsList.d.ts +55 -55
- package/dist/esm/components/Cart/CartTimer.d.ts +8 -8
- package/dist/esm/components/Cart/CheckoutSection.d.ts +55 -55
- package/dist/esm/components/Cart/CouponSelection.d.ts +18 -18
- package/dist/esm/components/Cart/CustomVariantSwatches.d.ts +15 -15
- 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 +9 -9
- package/dist/esm/components/Cart/FreebieClaimManager.d.ts +17 -17
- package/dist/esm/components/Cart/FreebieClaimOverlay.d.ts +18 -18
- package/dist/esm/components/Cart/FreebieClaimOverlayCard.d.ts +14 -14
- package/dist/esm/components/Cart/FreebieClaimSection.d.ts +16 -16
- package/dist/esm/components/Cart/FreebieClaimSectionCard.d.ts +23 -23
- package/dist/esm/components/Cart/GSTSection.d.ts +15 -15
- package/dist/esm/components/Cart/GiftWrap.d.ts +13 -13
- package/dist/esm/components/Cart/InlineCartOfferInfoText.d.ts +10 -10
- package/dist/esm/components/Cart/ItemSwap.d.ts +35 -35
- package/dist/esm/components/Cart/LoyaltyAppliedCTA.d.ts +14 -14
- package/dist/esm/components/Cart/LoyaltyApplyCTA.d.ts +16 -16
- package/dist/esm/components/Cart/LoyaltyBadge.d.ts +11 -11
- package/dist/esm/components/Cart/LoyaltyGuestCTA.d.ts +15 -15
- 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 +47 -47
- 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 +54 -54
- 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 +37 -37
- package/dist/esm/components/Cart/ProductRecCard.d.ts +23 -23
- package/dist/esm/components/Cart/ProductRecList.d.ts +24 -24
- package/dist/esm/components/Cart/ProgressBarCartLoader.d.ts +7 -7
- package/dist/esm/components/Cart/QuantitySelector.d.ts +11 -11
- package/dist/esm/components/Cart/RegionSpecificDelivery.d.ts +14 -14
- 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 +16 -16
- package/dist/esm/components/Cart/StickyCart.d.ts +68 -68
- package/dist/esm/components/Cart/SubtotalSection.d.ts +13 -13
- package/dist/esm/components/Cart/UploadImageSection.d.ts +31 -31
- package/dist/esm/components/Cart/VariantDropDown.d.ts +13 -13
- package/dist/esm/components/Cart/VariantSelectionPopup/DesktopVariantPopup.d.ts +17 -17
- package/dist/esm/components/Cart/VariantSelectionPopup/DesktopVariantPopup.styled.d.ts +48 -48
- package/dist/esm/components/Cart/VariantSelectionPopup/MobileVariantPopover.d.ts +17 -17
- package/dist/esm/components/Cart/index.d.ts +1 -1
- package/dist/esm/components/Loyalty/AccountAddresses.d.ts +30 -30
- package/dist/esm/components/Loyalty/AccountBlock.d.ts +108 -108
- package/dist/esm/components/Loyalty/AccountBlock.types.d.ts +290 -290
- package/dist/esm/components/Loyalty/AccountLoginForm.d.ts +57 -57
- package/dist/esm/components/Loyalty/AccountOrderHistory.d.ts +61 -61
- package/dist/esm/components/Loyalty/AccountRewards.d.ts +25 -25
- package/dist/esm/components/Loyalty/AccountWaysToRedeem.d.ts +10 -10
- 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 +17 -17
- package/dist/esm/components/Loyalty/PointRedeemBadge.d.ts +17 -17
- 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 +34 -34
- package/dist/esm/components/Loyalty/WaysToRedeem.d.ts +111 -109
- package/dist/esm/components/Loyalty/index.d.ts +16 -16
- package/dist/esm/components/Loyalty/loyaltyLauncher.d.ts +19 -19
- package/dist/esm/components/Loyalty/styles/AccountBlock.styles.d.ts +27 -27
- 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/PointRedeemBadge.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 +418 -416
- package/dist/esm/components/LoyaltyPageBlock/LoyaltyPageBlock.d.ts +235 -235
- 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 +20 -20
- package/dist/esm/index.d.ts +3 -3
- package/dist/esm/index.js +84 -84
- package/dist/esm/utils/converter.d.ts +4 -4
- package/dist/esm/utils/customCartConfig.d.ts +2 -2
- package/dist/esm/utils/customHtmlInteractions.d.ts +9 -9
- package/dist/esm/utils/customVariantOptions.d.ts +30 -30
- package/dist/esm/utils/freebieProductUtils.d.ts +40 -40
- package/dist/esm/utils/freebieUtils.d.ts +12 -12
- package/dist/esm/utils/index.d.ts +36 -36
- 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/dist/esm/utils/variantAvailability.d.ts +53 -53
- package/package.json +98 -98
- /package/dist/esm/{confetti-f3502561.js → confetti-89678a6f.js} +0 -0
|
@@ -1,68 +1,68 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { BundlePayload } from "../BundleBlock/Bundle";
|
|
3
|
-
export type stickyCartCustomizationDataProps = {
|
|
4
|
-
showPrice: boolean;
|
|
5
|
-
productImage?: {
|
|
6
|
-
id: string;
|
|
7
|
-
path: string;
|
|
8
|
-
};
|
|
9
|
-
buyNowCtaTitle: string;
|
|
10
|
-
desktopBarType: "stretch" | "hover";
|
|
11
|
-
showProductName: boolean;
|
|
12
|
-
showBuyNowButton: boolean;
|
|
13
|
-
showProductImage: boolean;
|
|
14
|
-
addToCartCtaTitle: string;
|
|
15
|
-
showAddToCartButton: boolean;
|
|
16
|
-
showVariantSelector: boolean;
|
|
17
|
-
productInfoVisibility: boolean;
|
|
18
|
-
excludeProducts?: string[];
|
|
19
|
-
showBarOnDesktop?: boolean;
|
|
20
|
-
ctaButtonFontSize?: number;
|
|
21
|
-
startsAppearingAtHeight?: number;
|
|
22
|
-
fullyAppearsAtHeight?: number;
|
|
23
|
-
topRibbonText?: string;
|
|
24
|
-
alwaysPersistent?: boolean;
|
|
25
|
-
};
|
|
26
|
-
export declare const defaultStickyCartCustomizationData: stickyCartCustomizationDataProps;
|
|
27
|
-
export type StickyAddToCartProps = {
|
|
28
|
-
showStickyCart: boolean;
|
|
29
|
-
product: any;
|
|
30
|
-
themeColor?: string;
|
|
31
|
-
themeTextColor?: string;
|
|
32
|
-
cartData: any;
|
|
33
|
-
ctaButtonBackgroundColor?: string;
|
|
34
|
-
ctaButtonTextColor?: string;
|
|
35
|
-
addToStickyCart?: (variantId: string, quantity: number) => Promise<void>;
|
|
36
|
-
cartComponentsCornerType?: "rounded" | "sharp";
|
|
37
|
-
cartComponentsCornerRadius?: number;
|
|
38
|
-
stickyCartCustomizationData?: stickyCartCustomizationDataProps;
|
|
39
|
-
checkoutFunction?: (variantId: string, quantity: number) => Promise<void>;
|
|
40
|
-
backgroundColor?: string;
|
|
41
|
-
primaryTextColor?: string;
|
|
42
|
-
comboBundleData?: BundlePayload;
|
|
43
|
-
comboBundleAddToCartFunction?: (selectedItemsSubtotal: number, variantIds?: string[], finalBundlePrice?: number, variantIdPriceMap?: {
|
|
44
|
-
variantId: string;
|
|
45
|
-
price: number;
|
|
46
|
-
}[]) => Promise<void>;
|
|
47
|
-
volumeBundleCurrentTier?: {
|
|
48
|
-
tier: number;
|
|
49
|
-
minimumQuantity: number;
|
|
50
|
-
title: string;
|
|
51
|
-
subtitle: string;
|
|
52
|
-
badgeTitle: string;
|
|
53
|
-
discountType?: string;
|
|
54
|
-
discountValue: number;
|
|
55
|
-
};
|
|
56
|
-
volumeBundleData?: BundlePayload;
|
|
57
|
-
volumeBundleAddToCartFunction?: (originalPrice: number, productIds: string[]) => Promise<void>;
|
|
58
|
-
volumeBundleSelectedVariants?: {
|
|
59
|
-
variantId: string;
|
|
60
|
-
quantity: number;
|
|
61
|
-
}[];
|
|
62
|
-
volumeBundlePagePrices?: {
|
|
63
|
-
original: number;
|
|
64
|
-
discounted: number;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
declare const StickyAddToCart: ({ showStickyCart, product, themeColor, cartData, ctaButtonBackgroundColor, ctaButtonTextColor, addToStickyCart, cartComponentsCornerType, cartComponentsCornerRadius, themeTextColor, stickyCartCustomizationData, checkoutFunction, backgroundColor, primaryTextColor, comboBundleData, comboBundleAddToCartFunction, volumeBundleCurrentTier, volumeBundleData, volumeBundleAddToCartFunction, volumeBundleSelectedVariants, volumeBundlePagePrices, }: StickyAddToCartProps) => React.JSX.Element | null;
|
|
68
|
-
export default StickyAddToCart;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { BundlePayload } from "../BundleBlock/Bundle";
|
|
3
|
+
export type stickyCartCustomizationDataProps = {
|
|
4
|
+
showPrice: boolean;
|
|
5
|
+
productImage?: {
|
|
6
|
+
id: string;
|
|
7
|
+
path: string;
|
|
8
|
+
};
|
|
9
|
+
buyNowCtaTitle: string;
|
|
10
|
+
desktopBarType: "stretch" | "hover";
|
|
11
|
+
showProductName: boolean;
|
|
12
|
+
showBuyNowButton: boolean;
|
|
13
|
+
showProductImage: boolean;
|
|
14
|
+
addToCartCtaTitle: string;
|
|
15
|
+
showAddToCartButton: boolean;
|
|
16
|
+
showVariantSelector: boolean;
|
|
17
|
+
productInfoVisibility: boolean;
|
|
18
|
+
excludeProducts?: string[];
|
|
19
|
+
showBarOnDesktop?: boolean;
|
|
20
|
+
ctaButtonFontSize?: number;
|
|
21
|
+
startsAppearingAtHeight?: number;
|
|
22
|
+
fullyAppearsAtHeight?: number;
|
|
23
|
+
topRibbonText?: string;
|
|
24
|
+
alwaysPersistent?: boolean;
|
|
25
|
+
};
|
|
26
|
+
export declare const defaultStickyCartCustomizationData: stickyCartCustomizationDataProps;
|
|
27
|
+
export type StickyAddToCartProps = {
|
|
28
|
+
showStickyCart: boolean;
|
|
29
|
+
product: any;
|
|
30
|
+
themeColor?: string;
|
|
31
|
+
themeTextColor?: string;
|
|
32
|
+
cartData: any;
|
|
33
|
+
ctaButtonBackgroundColor?: string;
|
|
34
|
+
ctaButtonTextColor?: string;
|
|
35
|
+
addToStickyCart?: (variantId: string, quantity: number) => Promise<void>;
|
|
36
|
+
cartComponentsCornerType?: "rounded" | "sharp";
|
|
37
|
+
cartComponentsCornerRadius?: number;
|
|
38
|
+
stickyCartCustomizationData?: stickyCartCustomizationDataProps;
|
|
39
|
+
checkoutFunction?: (variantId: string, quantity: number) => Promise<void>;
|
|
40
|
+
backgroundColor?: string;
|
|
41
|
+
primaryTextColor?: string;
|
|
42
|
+
comboBundleData?: BundlePayload;
|
|
43
|
+
comboBundleAddToCartFunction?: (selectedItemsSubtotal: number, variantIds?: string[], finalBundlePrice?: number, variantIdPriceMap?: {
|
|
44
|
+
variantId: string;
|
|
45
|
+
price: number;
|
|
46
|
+
}[]) => Promise<void>;
|
|
47
|
+
volumeBundleCurrentTier?: {
|
|
48
|
+
tier: number;
|
|
49
|
+
minimumQuantity: number;
|
|
50
|
+
title: string;
|
|
51
|
+
subtitle: string;
|
|
52
|
+
badgeTitle: string;
|
|
53
|
+
discountType?: string;
|
|
54
|
+
discountValue: number;
|
|
55
|
+
};
|
|
56
|
+
volumeBundleData?: BundlePayload;
|
|
57
|
+
volumeBundleAddToCartFunction?: (originalPrice: number, productIds: string[]) => Promise<void>;
|
|
58
|
+
volumeBundleSelectedVariants?: {
|
|
59
|
+
variantId: string;
|
|
60
|
+
quantity: number;
|
|
61
|
+
}[];
|
|
62
|
+
volumeBundlePagePrices?: {
|
|
63
|
+
original: number;
|
|
64
|
+
discounted: number;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
declare const StickyAddToCart: ({ showStickyCart, product, themeColor, cartData, ctaButtonBackgroundColor, ctaButtonTextColor, addToStickyCart, cartComponentsCornerType, cartComponentsCornerRadius, themeTextColor, stickyCartCustomizationData, checkoutFunction, backgroundColor, primaryTextColor, comboBundleData, comboBundleAddToCartFunction, volumeBundleCurrentTier, volumeBundleData, volumeBundleAddToCartFunction, volumeBundleSelectedVariants, volumeBundlePagePrices, }: StickyAddToCartProps) => React.JSX.Element | null;
|
|
68
|
+
export default StickyAddToCart;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Checkpoint } from "./Cart";
|
|
3
|
-
interface SubtotalSectionProps {
|
|
4
|
-
showDiscountOnMRP?: boolean;
|
|
5
|
-
cartCheckpoints?: Checkpoint[];
|
|
6
|
-
toggleDecimal?: boolean;
|
|
7
|
-
primaryTextColor?: string;
|
|
8
|
-
discountApplied?: boolean;
|
|
9
|
-
discountAmountApplied?: number;
|
|
10
|
-
showTrustedBadge?: boolean;
|
|
11
|
-
}
|
|
12
|
-
declare function SubtotalSection({ showDiscountOnMRP, cartCheckpoints, toggleDecimal, primaryTextColor, discountApplied, discountAmountApplied, showTrustedBadge, }: SubtotalSectionProps): React.JSX.Element | null;
|
|
13
|
-
export default SubtotalSection;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Checkpoint } from "./Cart";
|
|
3
|
+
interface SubtotalSectionProps {
|
|
4
|
+
showDiscountOnMRP?: boolean;
|
|
5
|
+
cartCheckpoints?: Checkpoint[];
|
|
6
|
+
toggleDecimal?: boolean;
|
|
7
|
+
primaryTextColor?: string;
|
|
8
|
+
discountApplied?: boolean;
|
|
9
|
+
discountAmountApplied?: number;
|
|
10
|
+
showTrustedBadge?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare function SubtotalSection({ showDiscountOnMRP, cartCheckpoints, toggleDecimal, primaryTextColor, discountApplied, discountAmountApplied, showTrustedBadge, }: SubtotalSectionProps): React.JSX.Element | null;
|
|
13
|
+
export default SubtotalSection;
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { uploadImageAddonInterface } from "./Cart";
|
|
3
|
-
export type UploadImageState = {
|
|
4
|
-
file?: UploadedImageFile;
|
|
5
|
-
items: Array<{
|
|
6
|
-
image?: string;
|
|
7
|
-
key: string;
|
|
8
|
-
quantity: number;
|
|
9
|
-
title: string;
|
|
10
|
-
variantId: string;
|
|
11
|
-
}>;
|
|
12
|
-
status: "checking" | "error" | "not-required" | "optional" | "required" | "uploaded";
|
|
13
|
-
};
|
|
14
|
-
type UploadImageSectionProps = {
|
|
15
|
-
ctaButtonBackgroundColor?: string;
|
|
16
|
-
highlighted?: boolean;
|
|
17
|
-
onFileSelected: (file: File | null) => void;
|
|
18
|
-
onRemove: () => void;
|
|
19
|
-
primaryTextColor?: string;
|
|
20
|
-
required?: boolean;
|
|
21
|
-
tertiaryColor?: string;
|
|
22
|
-
tertiaryTextColor?: string;
|
|
23
|
-
uploadImageAddonData?: uploadImageAddonInterface;
|
|
24
|
-
uploadedFile: UploadedImageFile | null;
|
|
25
|
-
};
|
|
26
|
-
export type UploadedImageFile = {
|
|
27
|
-
name: string;
|
|
28
|
-
url: string;
|
|
29
|
-
};
|
|
30
|
-
declare const UploadImageSection: React.ForwardRefExoticComponent<UploadImageSectionProps & React.RefAttributes<HTMLButtonElement>>;
|
|
31
|
-
export default UploadImageSection;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { uploadImageAddonInterface } from "./Cart";
|
|
3
|
+
export type UploadImageState = {
|
|
4
|
+
file?: UploadedImageFile;
|
|
5
|
+
items: Array<{
|
|
6
|
+
image?: string;
|
|
7
|
+
key: string;
|
|
8
|
+
quantity: number;
|
|
9
|
+
title: string;
|
|
10
|
+
variantId: string;
|
|
11
|
+
}>;
|
|
12
|
+
status: "checking" | "error" | "not-required" | "optional" | "required" | "uploaded";
|
|
13
|
+
};
|
|
14
|
+
type UploadImageSectionProps = {
|
|
15
|
+
ctaButtonBackgroundColor?: string;
|
|
16
|
+
highlighted?: boolean;
|
|
17
|
+
onFileSelected: (file: File | null) => void;
|
|
18
|
+
onRemove: () => void;
|
|
19
|
+
primaryTextColor?: string;
|
|
20
|
+
required?: boolean;
|
|
21
|
+
tertiaryColor?: string;
|
|
22
|
+
tertiaryTextColor?: string;
|
|
23
|
+
uploadImageAddonData?: uploadImageAddonInterface;
|
|
24
|
+
uploadedFile: UploadedImageFile | null;
|
|
25
|
+
};
|
|
26
|
+
export type UploadedImageFile = {
|
|
27
|
+
name: string;
|
|
28
|
+
url: string;
|
|
29
|
+
};
|
|
30
|
+
declare const UploadImageSection: React.ForwardRefExoticComponent<UploadImageSectionProps & React.RefAttributes<HTMLButtonElement>>;
|
|
31
|
+
export default UploadImageSection;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { CustomVariantOptions } from "../../utils/customVariantOptions";
|
|
3
|
-
interface VariantDropDownProps {
|
|
4
|
-
product: any;
|
|
5
|
-
variants: any[];
|
|
6
|
-
selectedVariantId?: string;
|
|
7
|
-
customVariantOptions: CustomVariantOptions | null;
|
|
8
|
-
onChange: (variantId: string) => void;
|
|
9
|
-
isFreebie?: boolean;
|
|
10
|
-
classNamePrefix?: string;
|
|
11
|
-
}
|
|
12
|
-
declare const _default: React.NamedExoticComponent<VariantDropDownProps>;
|
|
13
|
-
export default _default;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CustomVariantOptions } from "../../utils/customVariantOptions";
|
|
3
|
+
interface VariantDropDownProps {
|
|
4
|
+
product: any;
|
|
5
|
+
variants: any[];
|
|
6
|
+
selectedVariantId?: string;
|
|
7
|
+
customVariantOptions: CustomVariantOptions | null;
|
|
8
|
+
onChange: (variantId: string) => void;
|
|
9
|
+
isFreebie?: boolean;
|
|
10
|
+
classNamePrefix?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const _default: React.NamedExoticComponent<VariantDropDownProps>;
|
|
13
|
+
export default _default;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { FreebieRewardContext } from "../../../utils/freebieUtils";
|
|
3
|
-
type DesktopVariantPopupProps = {
|
|
4
|
-
isDev?: boolean;
|
|
5
|
-
removeCartItem: (variantId: string, triggeredFrom?: string, ytRequest?: boolean) => Promise<any>;
|
|
6
|
-
addCartItem?: (variantId: string, quantity?: number, triggeredFrom?: string, freebieReplace?: boolean, productHandle?: string) => Promise<any>;
|
|
7
|
-
getProductDetailsByVariantId?: (handle: string, variantId?: string) => Promise<any>;
|
|
8
|
-
themeColor?: string;
|
|
9
|
-
backgroundColor?: string;
|
|
10
|
-
removeFreebieFromCart?: (lineItemKey: string) => Promise<void>;
|
|
11
|
-
freebieClaimAddToCart?: (variantId: string, originalAllowedVariantIds?: string[], rewardContext?: FreebieRewardContext) => Promise<void>;
|
|
12
|
-
stealDealAddToCart?: (variantId: string, originalAllowedVariantIds?: string[], rewardContext?: FreebieRewardContext) => Promise<void>;
|
|
13
|
-
productClaimCtaButtonText?: string;
|
|
14
|
-
primaryTextColor?: string;
|
|
15
|
-
};
|
|
16
|
-
declare const DesktopVariantPopup: React.ForwardRefExoticComponent<DesktopVariantPopupProps & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
-
export default DesktopVariantPopup;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { FreebieRewardContext } from "../../../utils/freebieUtils";
|
|
3
|
+
type DesktopVariantPopupProps = {
|
|
4
|
+
isDev?: boolean;
|
|
5
|
+
removeCartItem: (variantId: string, triggeredFrom?: string, ytRequest?: boolean) => Promise<any>;
|
|
6
|
+
addCartItem?: (variantId: string, quantity?: number, triggeredFrom?: string, freebieReplace?: boolean, productHandle?: string) => Promise<any>;
|
|
7
|
+
getProductDetailsByVariantId?: (handle: string, variantId?: string) => Promise<any>;
|
|
8
|
+
themeColor?: string;
|
|
9
|
+
backgroundColor?: string;
|
|
10
|
+
removeFreebieFromCart?: (lineItemKey: string) => Promise<void>;
|
|
11
|
+
freebieClaimAddToCart?: (variantId: string, originalAllowedVariantIds?: string[], rewardContext?: FreebieRewardContext) => Promise<void>;
|
|
12
|
+
stealDealAddToCart?: (variantId: string, originalAllowedVariantIds?: string[], rewardContext?: FreebieRewardContext) => Promise<void>;
|
|
13
|
+
productClaimCtaButtonText?: string;
|
|
14
|
+
primaryTextColor?: string;
|
|
15
|
+
};
|
|
16
|
+
declare const DesktopVariantPopup: React.ForwardRefExoticComponent<DesktopVariantPopupProps & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
export default DesktopVariantPopup;
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const PopoverContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
-
export declare const PopupHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
|
-
export declare const ModalContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
5
|
-
$backgroundColor?: string | undefined;
|
|
6
|
-
$themeColor?: string | undefined;
|
|
7
|
-
}>> & string;
|
|
8
|
-
export declare const LoaderWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
9
|
-
export declare const ContentWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
10
|
-
export declare const HeaderSection: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
11
|
-
export declare const ImageContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
12
|
-
export declare const ProductImage: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, never>> & string;
|
|
13
|
-
export declare const ProductInfo: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
14
|
-
export declare const ProductTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, {
|
|
15
|
-
$themeColor?: string | undefined;
|
|
16
|
-
$primaryTextColor?: string | undefined;
|
|
17
|
-
}>> & string;
|
|
18
|
-
export declare const PriceContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
19
|
-
export declare const Price: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
20
|
-
$primaryTextColor?: string | undefined;
|
|
21
|
-
}>> & string;
|
|
22
|
-
export declare const ComparePrice: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
23
|
-
export declare const CartButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
24
|
-
$themeColor: string;
|
|
25
|
-
}>> & string;
|
|
26
|
-
export declare const OptionContainerDesktop: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
27
|
-
export declare const VariantOption: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
28
|
-
$isSelected?: boolean | undefined;
|
|
29
|
-
$isDisabled?: boolean | undefined;
|
|
30
|
-
$themeColor?: string | undefined;
|
|
31
|
-
$numberOfCheckpoints?: number | undefined;
|
|
32
|
-
$isFirstCheckpoint?: boolean | undefined;
|
|
33
|
-
backgroundColor?: string | undefined;
|
|
34
|
-
}>> & string;
|
|
35
|
-
export declare const OptionLabelDesktop: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
36
|
-
export declare const SelectedOptionBadge: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
37
|
-
export declare const VariantOptionsContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
38
|
-
export declare const PriceAndQuantityContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
39
|
-
export declare const ColorVariantButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
40
|
-
$isSelected?: boolean | undefined;
|
|
41
|
-
$themeColor?: string | undefined;
|
|
42
|
-
$colorValue?: string | undefined;
|
|
43
|
-
}>> & string;
|
|
44
|
-
export declare const ImageVariantButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
45
|
-
$isSelected?: boolean | undefined;
|
|
46
|
-
$themeColor?: string | undefined;
|
|
47
|
-
$imageUrl?: string | undefined;
|
|
48
|
-
}>> & string;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const PopoverContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
export declare const PopupHeader: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
|
+
export declare const ModalContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
5
|
+
$backgroundColor?: string | undefined;
|
|
6
|
+
$themeColor?: string | undefined;
|
|
7
|
+
}>> & string;
|
|
8
|
+
export declare const LoaderWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
9
|
+
export declare const ContentWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
10
|
+
export declare const HeaderSection: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
11
|
+
export declare const ImageContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
12
|
+
export declare const ProductImage: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, never>> & string;
|
|
13
|
+
export declare const ProductInfo: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
14
|
+
export declare const ProductTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, {
|
|
15
|
+
$themeColor?: string | undefined;
|
|
16
|
+
$primaryTextColor?: string | undefined;
|
|
17
|
+
}>> & string;
|
|
18
|
+
export declare const PriceContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
19
|
+
export declare const Price: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
20
|
+
$primaryTextColor?: string | undefined;
|
|
21
|
+
}>> & string;
|
|
22
|
+
export declare const ComparePrice: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
23
|
+
export declare const CartButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
24
|
+
$themeColor: string;
|
|
25
|
+
}>> & string;
|
|
26
|
+
export declare const OptionContainerDesktop: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
27
|
+
export declare const VariantOption: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
28
|
+
$isSelected?: boolean | undefined;
|
|
29
|
+
$isDisabled?: boolean | undefined;
|
|
30
|
+
$themeColor?: string | undefined;
|
|
31
|
+
$numberOfCheckpoints?: number | undefined;
|
|
32
|
+
$isFirstCheckpoint?: boolean | undefined;
|
|
33
|
+
backgroundColor?: string | undefined;
|
|
34
|
+
}>> & string;
|
|
35
|
+
export declare const OptionLabelDesktop: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
36
|
+
export declare const SelectedOptionBadge: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
|
|
37
|
+
export declare const VariantOptionsContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
38
|
+
export declare const PriceAndQuantityContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
39
|
+
export declare const ColorVariantButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
40
|
+
$isSelected?: boolean | undefined;
|
|
41
|
+
$themeColor?: string | undefined;
|
|
42
|
+
$colorValue?: string | undefined;
|
|
43
|
+
}>> & string;
|
|
44
|
+
export declare const ImageVariantButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
|
|
45
|
+
$isSelected?: boolean | undefined;
|
|
46
|
+
$themeColor?: string | undefined;
|
|
47
|
+
$imageUrl?: string | undefined;
|
|
48
|
+
}>> & string;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { FreebieRewardContext } from "../../../utils/freebieUtils";
|
|
3
|
-
type MobileVariantPopupProps = {
|
|
4
|
-
isDev?: boolean;
|
|
5
|
-
removeCartItem: (variantId: string, triggeredFrom?: string, ytRequest?: boolean) => Promise<any>;
|
|
6
|
-
addCartItem?: (variantId: string, quantity?: number, triggeredFrom?: string, freebieReplace?: boolean, productHandle?: string) => Promise<any>;
|
|
7
|
-
getProductDetailsByVariantId?: (handle: string, variantId?: string) => Promise<any>;
|
|
8
|
-
themeColor?: string;
|
|
9
|
-
backgroundColor: string;
|
|
10
|
-
removeFreebieFromCart?: (lineItemKey: string) => Promise<void>;
|
|
11
|
-
freebieClaimAddToCart?: (variantId: string, originalAllowedVariantIds?: string[], rewardContext?: FreebieRewardContext) => Promise<void>;
|
|
12
|
-
stealDealAddToCart?: (variantId: string, originalAllowedVariantIds?: string[], rewardContext?: FreebieRewardContext) => Promise<void>;
|
|
13
|
-
productClaimCtaButtonText?: string;
|
|
14
|
-
primaryTextColor?: string;
|
|
15
|
-
};
|
|
16
|
-
declare const MobileVariantPopup: React.ForwardRefExoticComponent<MobileVariantPopupProps & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
-
export default MobileVariantPopup;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { FreebieRewardContext } from "../../../utils/freebieUtils";
|
|
3
|
+
type MobileVariantPopupProps = {
|
|
4
|
+
isDev?: boolean;
|
|
5
|
+
removeCartItem: (variantId: string, triggeredFrom?: string, ytRequest?: boolean) => Promise<any>;
|
|
6
|
+
addCartItem?: (variantId: string, quantity?: number, triggeredFrom?: string, freebieReplace?: boolean, productHandle?: string) => Promise<any>;
|
|
7
|
+
getProductDetailsByVariantId?: (handle: string, variantId?: string) => Promise<any>;
|
|
8
|
+
themeColor?: string;
|
|
9
|
+
backgroundColor: string;
|
|
10
|
+
removeFreebieFromCart?: (lineItemKey: string) => Promise<void>;
|
|
11
|
+
freebieClaimAddToCart?: (variantId: string, originalAllowedVariantIds?: string[], rewardContext?: FreebieRewardContext) => Promise<void>;
|
|
12
|
+
stealDealAddToCart?: (variantId: string, originalAllowedVariantIds?: string[], rewardContext?: FreebieRewardContext) => Promise<void>;
|
|
13
|
+
productClaimCtaButtonText?: string;
|
|
14
|
+
primaryTextColor?: string;
|
|
15
|
+
};
|
|
16
|
+
declare const MobileVariantPopup: React.ForwardRefExoticComponent<MobileVariantPopupProps & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
export default MobileVariantPopup;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from "./Cart";
|
|
1
|
+
export { default } from "./Cart";
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "react-international-phone/style.css";
|
|
3
|
-
import type { AccountAddress, AccountAddressPayload, AccountOption, AccountTheme } from "./AccountBlock.types";
|
|
4
|
-
export interface AccountAddressesProps {
|
|
5
|
-
addresses?: AccountAddress[];
|
|
6
|
-
defaultAddressId?: string;
|
|
7
|
-
isLoading?: boolean;
|
|
8
|
-
isSaving?: boolean;
|
|
9
|
-
theme: AccountTheme;
|
|
10
|
-
title?: string;
|
|
11
|
-
subtitle?: string;
|
|
12
|
-
/** Resolve false to keep the form open (e.g. the request failed). */
|
|
13
|
-
onSaveAddress?: (payload: AccountAddressPayload, addressId?: string) => void | boolean | Promise<void | boolean>;
|
|
14
|
-
/** Called only after the customer confirms in the dialog. */
|
|
15
|
-
onDeleteAddress?: (addressId: string) => void | Promise<void>;
|
|
16
|
-
deleteTitle?: string;
|
|
17
|
-
deleteMessage?: string;
|
|
18
|
-
deleteConfirmLabel?: string;
|
|
19
|
-
deleteCancelLabel?: string;
|
|
20
|
-
/** Region pickers. Without them the form falls back to name + code inputs. */
|
|
21
|
-
countryOptions?: AccountOption[];
|
|
22
|
-
/** Starting country for the phone field; the customer can still change it. */
|
|
23
|
-
defaultPhoneCountry?: string;
|
|
24
|
-
/** One list, or a map keyed by country code. */
|
|
25
|
-
provinceOptions?: AccountOption[] | Record<string, AccountOption[]>;
|
|
26
|
-
/** Chips offered on the form; the API stores free text (max 50 chars). */
|
|
27
|
-
addressTypeOptions?: string[];
|
|
28
|
-
emptyLabel?: string;
|
|
29
|
-
}
|
|
30
|
-
export default function AccountAddresses({ addresses, defaultAddressId, isLoading, isSaving, theme, title, subtitle, onSaveAddress, onDeleteAddress, deleteTitle, deleteMessage, deleteConfirmLabel, deleteCancelLabel, countryOptions, defaultPhoneCountry, provinceOptions, addressTypeOptions, emptyLabel, }: AccountAddressesProps): React.JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "react-international-phone/style.css";
|
|
3
|
+
import type { AccountAddress, AccountAddressPayload, AccountOption, AccountTheme } from "./AccountBlock.types";
|
|
4
|
+
export interface AccountAddressesProps {
|
|
5
|
+
addresses?: AccountAddress[];
|
|
6
|
+
defaultAddressId?: string;
|
|
7
|
+
isLoading?: boolean;
|
|
8
|
+
isSaving?: boolean;
|
|
9
|
+
theme: AccountTheme;
|
|
10
|
+
title?: string;
|
|
11
|
+
subtitle?: string;
|
|
12
|
+
/** Resolve false to keep the form open (e.g. the request failed). */
|
|
13
|
+
onSaveAddress?: (payload: AccountAddressPayload, addressId?: string) => void | boolean | Promise<void | boolean>;
|
|
14
|
+
/** Called only after the customer confirms in the dialog. */
|
|
15
|
+
onDeleteAddress?: (addressId: string) => void | Promise<void>;
|
|
16
|
+
deleteTitle?: string;
|
|
17
|
+
deleteMessage?: string;
|
|
18
|
+
deleteConfirmLabel?: string;
|
|
19
|
+
deleteCancelLabel?: string;
|
|
20
|
+
/** Region pickers. Without them the form falls back to name + code inputs. */
|
|
21
|
+
countryOptions?: AccountOption[];
|
|
22
|
+
/** Starting country for the phone field; the customer can still change it. */
|
|
23
|
+
defaultPhoneCountry?: string;
|
|
24
|
+
/** One list, or a map keyed by country code. */
|
|
25
|
+
provinceOptions?: AccountOption[] | Record<string, AccountOption[]>;
|
|
26
|
+
/** Chips offered on the form; the API stores free text (max 50 chars). */
|
|
27
|
+
addressTypeOptions?: string[];
|
|
28
|
+
emptyLabel?: string;
|
|
29
|
+
}
|
|
30
|
+
export default function AccountAddresses({ addresses, defaultAddressId, isLoading, isSaving, theme, title, subtitle, onSaveAddress, onDeleteAddress, deleteTitle, deleteMessage, deleteConfirmLabel, deleteCancelLabel, countryOptions, defaultPhoneCountry, provinceOptions, addressTypeOptions, emptyLabel, }: AccountAddressesProps): React.JSX.Element;
|