yt-uikit 0.8.15-loyalty-page-block.7 → 0.8.15-loyalty-page-block.9
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/atoms/bundleBuilderProductDetailsAtom.d.ts +4 -0
- package/dist/esm/atoms/cartDataAtom.d.ts +3 -0
- package/dist/esm/atoms/cartLoadingAtom.d.ts +22 -0
- package/dist/esm/atoms/cartTimer.d.ts +2 -0
- package/dist/esm/atoms/couponSelectionOpenAtom.d.ts +3 -0
- package/dist/esm/atoms/dateAtom.d.ts +1 -0
- package/dist/esm/atoms/freebieClaimModalAtom.d.ts +7 -0
- package/dist/esm/atoms/giftWrap.d.ts +2 -0
- package/dist/esm/atoms/gstCompanyNameAtom.d.ts +1 -0
- package/dist/esm/atoms/gstInputAtom.d.ts +1 -0
- package/dist/esm/atoms/maxQtyErrorAtom.d.ts +3 -0
- package/dist/esm/atoms/multiClaimSelectionAtom.d.ts +19 -0
- package/dist/esm/atoms/noteInputAtom.d.ts +3 -0
- package/dist/esm/atoms/postalCodeAtom.d.ts +1 -0
- package/dist/esm/atoms/shippingAtom.d.ts +8 -0
- package/dist/esm/atoms/showGSTInputAtom.d.ts +1 -0
- package/dist/esm/atoms/variantSelectionModalAtom.d.ts +23 -0
- package/dist/esm/components/BundleBlock/Bundle.d.ts +395 -0
- package/dist/esm/components/BundleBlock/BundleBuilder/BundleBuilder.d.ts +40 -0
- package/dist/esm/components/BundleBlock/BundleBuilder/ResponsiveBgImage.d.ts +9 -0
- package/dist/esm/components/BundleBlock/BundleBuilder/VariantOptionsModal.d.ts +15 -0
- package/dist/esm/components/BundleBlock/BundleBuilder/bundleBuilder.style.d.ts +37 -0
- package/dist/esm/components/BundleBlock/BundleBuilderTracker/BundleBuilderTracker.d.ts +51 -0
- package/dist/esm/components/BundleBlock/BundleBuilderTracker/bundleBuilderTracker.style.d.ts +77 -0
- package/dist/esm/components/BundleBlock/BundleProductDetailsModal/BundleProductDetailsModal.d.ts +26 -0
- package/dist/esm/components/BundleBlock/BundleProductDetailsModal/bundleProductDetailsModal.style.d.ts +10 -0
- package/dist/esm/components/BundleBlock/CollectionBundle/ColllectionBundle.d.ts +116 -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 +16 -0
- package/dist/esm/components/BundleBlock/FixedBundle/FixedBundle.d.ts +4 -0
- package/dist/esm/components/BundleBlock/FixedBundle/SeparateVariantOptions.d.ts +39 -0
- package/dist/esm/components/BundleBlock/FixedBundle/VariantSelectorModal.d.ts +22 -0
- package/dist/esm/components/BundleBlock/FixedBundle/fixedBundle.style.d.ts +90 -0
- package/dist/esm/components/BundleBlock/Loader.d.ts +5 -0
- package/dist/esm/components/BundleBlock/MixAndMatchBundle/MixAndMatchBundle.d.ts +8 -0
- package/dist/esm/components/BundleBlock/MixAndMatchBundle/mixAndMatchBundle.style.d.ts +86 -0
- package/dist/esm/components/BundleBlock/VolumeBundle/VolumeBundle.d.ts +3 -0
- package/dist/esm/components/BundleBlock/VolumeBundle/volumeBundle.style.d.ts +80 -0
- package/dist/esm/components/BundleBlock/index.d.ts +1 -0
- package/dist/esm/components/Cart/ApplyCoupon.d.ts +12 -0
- package/dist/esm/components/Cart/Bundle.d.ts +6 -0
- package/dist/esm/components/Cart/Cart.d.ts +237 -0
- package/dist/esm/components/Cart/CartDrawer.d.ts +21 -0
- package/dist/esm/components/Cart/CartOffersCarousel.d.ts +45 -0
- package/dist/esm/components/Cart/CartProductsList.d.ts +45 -0
- package/dist/esm/components/Cart/CartTimer.d.ts +8 -0
- package/dist/esm/components/Cart/CheckoutSection.d.ts +38 -0
- package/dist/esm/components/Cart/CouponSelection.d.ts +25 -0
- package/dist/esm/components/Cart/DatePicker.d.ts +10 -0
- package/dist/esm/components/Cart/EmptyCart.d.ts +33 -0
- package/dist/esm/components/Cart/FloatingCart.d.ts +23 -0
- package/dist/esm/components/Cart/FooterSections.d.ts +6 -0
- package/dist/esm/components/Cart/FreebieClaimManager.d.ts +17 -0
- package/dist/esm/components/Cart/FreebieClaimOverlay.d.ts +17 -0
- package/dist/esm/components/Cart/FreebieClaimOverlayCard.d.ts +9 -0
- package/dist/esm/components/Cart/FreebieClaimSection.d.ts +17 -0
- package/dist/esm/components/Cart/FreebieClaimSectionCard.d.ts +16 -0
- package/dist/esm/components/Cart/GSTSection.d.ts +15 -0
- package/dist/esm/components/Cart/GiftWrap.d.ts +14 -0
- package/dist/esm/components/Cart/GuestDiscountCoupon.d.ts +9 -0
- package/dist/esm/components/Cart/InlineCartOfferInfoText.d.ts +10 -0
- package/dist/esm/components/Cart/LoyaltyAppliedCTA.d.ts +19 -0
- package/dist/esm/components/Cart/LoyaltyApplyCTA.d.ts +18 -0
- package/dist/esm/components/Cart/LoyaltyBadge.d.ts +10 -0
- package/dist/esm/components/Cart/LoyaltyGuestCTA.d.ts +17 -0
- package/dist/esm/components/Cart/MultiStepProgressBar/CheckpointConfetti.d.ts +11 -0
- package/dist/esm/components/Cart/MultiStepProgressBar/CheckpointIcon.d.ts +3 -0
- package/dist/esm/components/Cart/MultiStepProgressBar/CheckpointTooltip.d.ts +3 -0
- package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepIcon.d.ts +9 -0
- package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepProgressBar.d.ts +5 -0
- package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepProgressBar.styled.d.ts +45 -0
- package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepUtils.d.ts +6 -0
- package/dist/esm/components/Cart/MultiStepProgressBar/MultiTierProgressBar.d.ts +4 -0
- package/dist/esm/components/Cart/MultiStepProgressBar/MutiTierNextRewardMessage.d.ts +3 -0
- package/dist/esm/components/Cart/MultiStepProgressBar/NextRewardMessage.d.ts +3 -0
- package/dist/esm/components/Cart/MultiStepProgressBar/SingleTierProgressBar.d.ts +4 -0
- package/dist/esm/components/Cart/MultiStepProgressBar/SingleTierProgressBar.styled.d.ts +22 -0
- package/dist/esm/components/Cart/MultiStepProgressBar/SingletTierNextRewardMessage.d.ts +3 -0
- package/dist/esm/components/Cart/MultiStepProgressBar/types.d.ts +55 -0
- package/dist/esm/components/Cart/NextFreebieRow.d.ts +19 -0
- package/dist/esm/components/Cart/NoteSection.d.ts +8 -0
- package/dist/esm/components/Cart/ProductCard.d.ts +30 -0
- package/dist/esm/components/Cart/ProductRecCard.d.ts +20 -0
- package/dist/esm/components/Cart/ProductRecList.d.ts +23 -0
- package/dist/esm/components/Cart/ProgressBar.d.ts +13 -0
- package/dist/esm/components/Cart/ProgressBarCartLoader.d.ts +7 -0
- package/dist/esm/components/Cart/QuantitySelector.d.ts +12 -0
- package/dist/esm/components/Cart/RegionSpecificDelivery.d.ts +17 -0
- package/dist/esm/components/Cart/RewardPointsPreview.d.ts +10 -0
- package/dist/esm/components/Cart/StandardDelivery.d.ts +11 -0
- package/dist/esm/components/Cart/StickyCart.d.ts +52 -0
- package/dist/esm/components/Cart/VariantSelectionPopup/DesktopVariantPopup.d.ts +18 -0
- package/dist/esm/components/Cart/VariantSelectionPopup/DesktopVariantPopup.styled.d.ts +60 -0
- package/dist/esm/components/Cart/VariantSelectionPopup/MobileVariantPopover.d.ts +18 -0
- package/dist/esm/components/Cart/index.d.ts +1 -0
- package/dist/esm/components/CouponFrame/CouponFrame.d.ts +15 -0
- package/dist/esm/components/CouponFrame/index.d.ts +1 -0
- package/dist/esm/components/LoyaltyPageBlock/LoyaltyPageBlock.d.ts +60 -0
- package/dist/esm/components/Nudge/LeadGenerationNudge.d.ts +15 -0
- package/dist/esm/components/Nudge/Nudge.d.ts +40 -0
- package/dist/esm/components/Nudge/index.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/SpinnerWheel/SpinnerWheel.d.ts +23 -0
- package/dist/esm/components/SpinnerWheel/WheelSection.d.ts +9 -0
- package/dist/esm/components/SpinnerWheel/index.d.ts +1 -0
- package/dist/esm/components/index.d.ts +8 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +5084 -0
- package/dist/esm/types/atoms/bundleBuilderProductDetailsAtom.d.ts +4 -0
- package/dist/esm/types/atoms/cartDataAtom.d.ts +3 -0
- package/dist/esm/types/atoms/cartLoadingAtom.d.ts +22 -0
- package/dist/esm/types/atoms/cartTimer.d.ts +2 -0
- package/dist/esm/types/atoms/couponSelectionOpenAtom.d.ts +3 -0
- package/dist/esm/types/atoms/dateAtom.d.ts +1 -0
- package/dist/esm/types/atoms/freebieClaimModalAtom.d.ts +7 -0
- package/dist/esm/types/atoms/giftWrap.d.ts +2 -0
- package/dist/esm/types/atoms/gstCompanyNameAtom.d.ts +1 -0
- package/dist/esm/types/atoms/gstInputAtom.d.ts +1 -0
- package/dist/esm/types/atoms/maxQtyErrorAtom.d.ts +3 -0
- package/dist/esm/types/atoms/multiClaimSelectionAtom.d.ts +19 -0
- package/dist/esm/types/atoms/noteInputAtom.d.ts +3 -0
- package/dist/esm/types/atoms/postalCodeAtom.d.ts +1 -0
- package/dist/esm/types/atoms/shippingAtom.d.ts +8 -0
- package/dist/esm/types/atoms/showGSTInputAtom.d.ts +1 -0
- package/dist/esm/types/atoms/variantSelectionModalAtom.d.ts +23 -0
- package/dist/esm/types/components/BundleBlock/Bundle.d.ts +395 -0
- package/dist/esm/types/components/BundleBlock/BundleBuilder/BundleBuilder.d.ts +40 -0
- package/dist/esm/types/components/BundleBlock/BundleBuilder/ResponsiveBgImage.d.ts +9 -0
- package/dist/esm/types/components/BundleBlock/BundleBuilder/VariantOptionsModal.d.ts +15 -0
- package/dist/esm/types/components/BundleBlock/BundleBuilder/bundleBuilder.style.d.ts +37 -0
- package/dist/esm/types/components/BundleBlock/BundleBuilderTracker/BundleBuilderTracker.d.ts +51 -0
- package/dist/esm/types/components/BundleBlock/BundleBuilderTracker/bundleBuilderTracker.style.d.ts +77 -0
- package/dist/esm/types/components/BundleBlock/BundleProductDetailsModal/BundleProductDetailsModal.d.ts +26 -0
- package/dist/esm/types/components/BundleBlock/BundleProductDetailsModal/bundleProductDetailsModal.style.d.ts +10 -0
- package/dist/esm/types/components/BundleBlock/CollectionBundle/ColllectionBundle.d.ts +116 -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 +16 -0
- package/dist/esm/types/components/BundleBlock/FixedBundle/FixedBundle.d.ts +4 -0
- package/dist/esm/types/components/BundleBlock/FixedBundle/SeparateVariantOptions.d.ts +39 -0
- package/dist/esm/types/components/BundleBlock/FixedBundle/VariantSelectorModal.d.ts +22 -0
- package/dist/esm/types/components/BundleBlock/FixedBundle/fixedBundle.style.d.ts +90 -0
- package/dist/esm/types/components/BundleBlock/Loader.d.ts +5 -0
- package/dist/esm/types/components/BundleBlock/MixAndMatchBundle/MixAndMatchBundle.d.ts +8 -0
- package/dist/esm/types/components/BundleBlock/MixAndMatchBundle/mixAndMatchBundle.style.d.ts +86 -0
- package/dist/esm/types/components/BundleBlock/VolumeBundle/VolumeBundle.d.ts +3 -0
- package/dist/esm/types/components/BundleBlock/VolumeBundle/volumeBundle.style.d.ts +80 -0
- package/dist/esm/types/components/BundleBlock/index.d.ts +1 -0
- package/dist/esm/types/components/Cart/ApplyCoupon.d.ts +12 -0
- package/dist/esm/types/components/Cart/Bundle.d.ts +6 -0
- package/dist/esm/types/components/Cart/Cart.d.ts +237 -0
- package/dist/esm/types/components/Cart/CartDrawer.d.ts +21 -0
- package/dist/esm/types/components/Cart/CartOffersCarousel.d.ts +45 -0
- package/dist/esm/types/components/Cart/CartProductsList.d.ts +45 -0
- package/dist/esm/types/components/Cart/CartTimer.d.ts +8 -0
- package/dist/esm/types/components/Cart/CheckoutSection.d.ts +38 -0
- package/dist/esm/types/components/Cart/CouponSelection.d.ts +25 -0
- package/dist/esm/types/components/Cart/DatePicker.d.ts +10 -0
- package/dist/esm/types/components/Cart/EmptyCart.d.ts +33 -0
- package/dist/esm/types/components/Cart/FloatingCart.d.ts +23 -0
- package/dist/esm/types/components/Cart/FooterSections.d.ts +6 -0
- package/dist/esm/types/components/Cart/FreebieClaimManager.d.ts +17 -0
- package/dist/esm/types/components/Cart/FreebieClaimOverlay.d.ts +17 -0
- package/dist/esm/types/components/Cart/FreebieClaimOverlayCard.d.ts +9 -0
- package/dist/esm/types/components/Cart/FreebieClaimSection.d.ts +17 -0
- package/dist/esm/types/components/Cart/FreebieClaimSectionCard.d.ts +16 -0
- package/dist/esm/types/components/Cart/GSTSection.d.ts +15 -0
- package/dist/esm/types/components/Cart/GiftWrap.d.ts +14 -0
- package/dist/esm/types/components/Cart/GuestDiscountCoupon.d.ts +9 -0
- package/dist/esm/types/components/Cart/InlineCartOfferInfoText.d.ts +10 -0
- package/dist/esm/types/components/Cart/LoyaltyAppliedCTA.d.ts +19 -0
- package/dist/esm/types/components/Cart/LoyaltyApplyCTA.d.ts +18 -0
- package/dist/esm/types/components/Cart/LoyaltyBadge.d.ts +10 -0
- package/dist/esm/types/components/Cart/LoyaltyGuestCTA.d.ts +17 -0
- package/dist/esm/types/components/Cart/MultiStepProgressBar/CheckpointConfetti.d.ts +11 -0
- package/dist/esm/types/components/Cart/MultiStepProgressBar/CheckpointIcon.d.ts +3 -0
- package/dist/esm/types/components/Cart/MultiStepProgressBar/CheckpointTooltip.d.ts +3 -0
- package/dist/esm/types/components/Cart/MultiStepProgressBar/MultiStepIcon.d.ts +9 -0
- package/dist/esm/types/components/Cart/MultiStepProgressBar/MultiStepProgressBar.d.ts +5 -0
- package/dist/esm/types/components/Cart/MultiStepProgressBar/MultiStepProgressBar.styled.d.ts +45 -0
- package/dist/esm/types/components/Cart/MultiStepProgressBar/MultiStepUtils.d.ts +6 -0
- package/dist/esm/types/components/Cart/MultiStepProgressBar/MultiTierProgressBar.d.ts +4 -0
- package/dist/esm/types/components/Cart/MultiStepProgressBar/MutiTierNextRewardMessage.d.ts +3 -0
- package/dist/esm/types/components/Cart/MultiStepProgressBar/NextRewardMessage.d.ts +3 -0
- package/dist/esm/types/components/Cart/MultiStepProgressBar/SingleTierProgressBar.d.ts +4 -0
- package/dist/esm/types/components/Cart/MultiStepProgressBar/SingleTierProgressBar.styled.d.ts +22 -0
- package/dist/esm/types/components/Cart/MultiStepProgressBar/SingletTierNextRewardMessage.d.ts +3 -0
- package/dist/esm/types/components/Cart/MultiStepProgressBar/types.d.ts +55 -0
- package/dist/esm/types/components/Cart/NextFreebieRow.d.ts +19 -0
- package/dist/esm/types/components/Cart/NoteSection.d.ts +8 -0
- package/dist/esm/types/components/Cart/ProductCard.d.ts +30 -0
- package/dist/esm/types/components/Cart/ProductRecCard.d.ts +20 -0
- package/dist/esm/types/components/Cart/ProductRecList.d.ts +23 -0
- package/dist/esm/types/components/Cart/ProgressBar.d.ts +13 -0
- package/dist/esm/types/components/Cart/ProgressBarCartLoader.d.ts +7 -0
- package/dist/esm/types/components/Cart/QuantitySelector.d.ts +12 -0
- package/dist/esm/types/components/Cart/RegionSpecificDelivery.d.ts +17 -0
- package/dist/esm/types/components/Cart/RewardPointsPreview.d.ts +10 -0
- package/dist/esm/types/components/Cart/StandardDelivery.d.ts +11 -0
- package/dist/esm/types/components/Cart/StickyCart.d.ts +52 -0
- package/dist/esm/types/components/Cart/VariantSelectionPopup/DesktopVariantPopup.d.ts +18 -0
- package/dist/esm/types/components/Cart/VariantSelectionPopup/DesktopVariantPopup.styled.d.ts +60 -0
- package/dist/esm/types/components/Cart/VariantSelectionPopup/MobileVariantPopover.d.ts +18 -0
- package/dist/esm/types/components/Cart/index.d.ts +1 -0
- package/dist/esm/types/components/CouponFrame/CouponFrame.d.ts +15 -0
- package/dist/esm/types/components/CouponFrame/index.d.ts +1 -0
- package/dist/esm/types/components/LoyaltyPageBlock/LoyaltyPageBlock.d.ts +60 -0
- package/dist/esm/types/components/Nudge/LeadGenerationNudge.d.ts +15 -0
- package/dist/esm/types/components/Nudge/Nudge.d.ts +40 -0
- package/dist/esm/types/components/Nudge/index.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/SpinnerWheel/SpinnerWheel.d.ts +23 -0
- package/dist/esm/types/components/SpinnerWheel/WheelSection.d.ts +9 -0
- package/dist/esm/types/components/SpinnerWheel/index.d.ts +1 -0
- package/dist/esm/types/components/index.d.ts +8 -0
- package/dist/esm/types/index.d.ts +1 -0
- package/dist/esm/types/utils/converter.d.ts +2 -0
- package/dist/esm/types/utils/customVariantOptions.d.ts +20 -0
- package/dist/esm/types/utils/freebieProductUtils.d.ts +23 -0
- package/dist/esm/types/utils/freebieUtils.d.ts +5 -0
- package/dist/esm/types/utils/index.d.ts +14 -0
- package/dist/esm/utils/converter.d.ts +2 -0
- package/dist/esm/utils/customVariantOptions.d.ts +20 -0
- package/dist/esm/utils/freebieProductUtils.d.ts +23 -0
- package/dist/esm/utils/freebieUtils.d.ts +5 -0
- package/dist/esm/utils/index.d.ts +14 -0
- package/dist/index.d.ts +837 -0
- package/package.json +1 -1
|
@@ -0,0 +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;
|
|
@@ -0,0 +1,33 @@
|
|
|
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, 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
|
+
recProductsList?: any[];
|
|
20
|
+
addCartItem?: CartProps["addCartItem"];
|
|
21
|
+
productRecsCtaButtonText?: CartProps["productRecsCtaButtonText"];
|
|
22
|
+
ctaButtonBackgroundColor?: CartProps["ctaButtonBackgroundColor"];
|
|
23
|
+
ctaButtonTextColor?: CartProps["ctaButtonTextColor"];
|
|
24
|
+
primaryTextColor?: CartProps["primaryTextColor"];
|
|
25
|
+
secondaryTextColor?: CartProps["secondaryTextColor"];
|
|
26
|
+
showVariantSelectionDropdownInProductRecs?: CartProps["showVariantSelectionDropdownInProductRecs"];
|
|
27
|
+
productRecsTitleText?: CartProps["productRecsTitleText"];
|
|
28
|
+
emptyProductRecsTitleText?: CartProps["emptyProductRecsTitleText"];
|
|
29
|
+
backgroundSubdued?: CartProps["backgroundSubdued"];
|
|
30
|
+
showEmptyCartRecommendations?: boolean;
|
|
31
|
+
tertiaryColor?: string;
|
|
32
|
+
tertiaryTextColor?: string;
|
|
33
|
+
}): React.JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
};
|
|
22
|
+
declare const FloatingCart: React.FC<FloatingCartProps>;
|
|
23
|
+
export default FloatingCart;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { freebieClaimInterface, Checkpoint } from "./Cart";
|
|
3
|
+
interface FreebieClaimManagerProps {
|
|
4
|
+
freebieProductsInCart: any[];
|
|
5
|
+
themeColor?: string;
|
|
6
|
+
themeTextColor?: string;
|
|
7
|
+
primaryTextColor?: string;
|
|
8
|
+
addFreebieToCart?: (variantId: string, originalAllowedVariantIds?: string[]) => Promise<void>;
|
|
9
|
+
freebiesInCart: string[];
|
|
10
|
+
freebieClaimData?: freebieClaimInterface;
|
|
11
|
+
cartCheckpoints?: Checkpoint[];
|
|
12
|
+
imageAspectSelector?: "square" | "portrait";
|
|
13
|
+
freebieCouponTemplates?: Checkpoint[];
|
|
14
|
+
isCartDrawerOpen?: boolean;
|
|
15
|
+
}
|
|
16
|
+
declare const FreebieClaimManager: React.FC<FreebieClaimManagerProps>;
|
|
17
|
+
export default FreebieClaimManager;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Checkpoint } from "./Cart";
|
|
3
|
+
interface FreebieClaimOverlayProps {
|
|
4
|
+
freebieProductsInCart: any[];
|
|
5
|
+
maxFreebiesInTier: number;
|
|
6
|
+
tierName: string;
|
|
7
|
+
themeColor?: string;
|
|
8
|
+
themeTextColor?: string;
|
|
9
|
+
primaryTextColor?: string;
|
|
10
|
+
addFreebieToCart: (selectedProductIds: string[]) => Promise<void>;
|
|
11
|
+
imageAspectSelector?: "square" | "portrait";
|
|
12
|
+
freebieCouponTemplates?: Checkpoint[];
|
|
13
|
+
freebieClaimData?: any;
|
|
14
|
+
isCartDrawerOpen?: boolean;
|
|
15
|
+
}
|
|
16
|
+
declare const FreebieClaimOverlay: React.FC<FreebieClaimOverlayProps>;
|
|
17
|
+
export default FreebieClaimOverlay;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface FreebieClaimOverlayCardProps {
|
|
3
|
+
product: any;
|
|
4
|
+
imageAspectSelector?: "square" | "portrait";
|
|
5
|
+
freebieCouponTemplates?: any[];
|
|
6
|
+
accentColor?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const FreebieClaimOverlayCard: React.FC<FreebieClaimOverlayCardProps>;
|
|
9
|
+
export default FreebieClaimOverlayCard;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Checkpoint } from "./Cart";
|
|
3
|
+
interface FreebieClaimSectionProps {
|
|
4
|
+
freebieProductsInCart: any[];
|
|
5
|
+
themeColor?: string;
|
|
6
|
+
themeTextColor?: string;
|
|
7
|
+
primaryTextColor?: string;
|
|
8
|
+
addFreebieToCart?: (variantId: string, originalAllowedVariantIds?: string[]) => Promise<void>;
|
|
9
|
+
freebiesInCart: string[];
|
|
10
|
+
imageAspectSelector?: "square" | "portrait";
|
|
11
|
+
freebieCouponTemplates?: Checkpoint[];
|
|
12
|
+
maxFreebiesInTier?: number;
|
|
13
|
+
tierName?: string;
|
|
14
|
+
freebieClaimData?: any;
|
|
15
|
+
}
|
|
16
|
+
declare const FreebieClaimSection: React.FC<FreebieClaimSectionProps>;
|
|
17
|
+
export default FreebieClaimSection;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface FreebieClaimSectionCardProps {
|
|
3
|
+
product: any;
|
|
4
|
+
themeColor?: string;
|
|
5
|
+
themeTextColor?: string;
|
|
6
|
+
addFreebieToCart?: (variantId: string, originalAllowedVariantIds?: string[]) => Promise<void>;
|
|
7
|
+
productClaimCtaButtonText?: string;
|
|
8
|
+
imageAspectSelector?: "square" | "portrait";
|
|
9
|
+
freebieCouponTemplates?: any;
|
|
10
|
+
isMultiClaim?: boolean;
|
|
11
|
+
isSelected?: boolean;
|
|
12
|
+
isDisabled?: boolean;
|
|
13
|
+
onToggleSelection?: (productId: string) => void;
|
|
14
|
+
}
|
|
15
|
+
declare const FreebieClaimSectionCard: React.FC<FreebieClaimSectionCardProps>;
|
|
16
|
+
export default FreebieClaimSectionCard;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface GSTSectionCustomizationProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
iconColor?: string;
|
|
5
|
+
showIcon?: boolean;
|
|
6
|
+
backgroundColor?: string;
|
|
7
|
+
textColor?: string;
|
|
8
|
+
}
|
|
9
|
+
interface GSTSectionProps extends GSTSectionCustomizationProps {
|
|
10
|
+
gstNumber?: string;
|
|
11
|
+
companyName?: string;
|
|
12
|
+
themeColor?: string;
|
|
13
|
+
}
|
|
14
|
+
declare const GSTSection: React.FC<GSTSectionProps>;
|
|
15
|
+
export default GSTSection;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type GiftWrapProps = {
|
|
3
|
+
themeColor?: string;
|
|
4
|
+
id?: string;
|
|
5
|
+
detail?: any;
|
|
6
|
+
showPrice?: boolean;
|
|
7
|
+
errorText?: string;
|
|
8
|
+
customText?: string;
|
|
9
|
+
showGiftIcon?: boolean;
|
|
10
|
+
addCartItem?: (variant: any, quantity?: number, triggeredFrom?: string) => Promise<any>;
|
|
11
|
+
removeCartItem?: (variantId: string, triggeredFrom?: string) => Promise<any>;
|
|
12
|
+
};
|
|
13
|
+
export default function GiftWrap({ themeColor, id, showPrice, detail, errorText, customText, showGiftIcon, addCartItem, removeCartItem, }: GiftWrapProps): React.JSX.Element | null;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { RewardCouponWithIcon } from "../CouponFrame/CouponFrame";
|
|
3
|
+
type GuestDiscountCouponProps = {
|
|
4
|
+
currency: string;
|
|
5
|
+
handleApply: (templateId?: number) => Promise<any>;
|
|
6
|
+
rewardCoupon: RewardCouponWithIcon;
|
|
7
|
+
};
|
|
8
|
+
declare const GuestDiscountCoupon: React.FC<GuestDiscountCouponProps>;
|
|
9
|
+
export default GuestDiscountCoupon;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type InlineCartOfferInfoTextProps = {
|
|
3
|
+
inlineCartOfferInfoText: string;
|
|
4
|
+
inlineCartOfferInfoRedirectLink?: string;
|
|
5
|
+
themeColor?: string;
|
|
6
|
+
tooltipText?: string;
|
|
7
|
+
themeTextColor?: string;
|
|
8
|
+
};
|
|
9
|
+
export default function InlineCartOfferInfoText({ inlineCartOfferInfoText, inlineCartOfferInfoRedirectLink, themeColor, tooltipText, themeTextColor, }: InlineCartOfferInfoTextProps): React.JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./shared.scss";
|
|
3
|
+
import { LoyaltyDiscount } from "./Cart";
|
|
4
|
+
export declare const LoyaltyCtaProgressBar: () => React.JSX.Element;
|
|
5
|
+
type LoyaltyAppliedCTAProps = {
|
|
6
|
+
removeDiscount: () => Promise<void>;
|
|
7
|
+
isDev?: boolean;
|
|
8
|
+
themeColor?: string;
|
|
9
|
+
ctaButtonBackgroundColor?: string;
|
|
10
|
+
ctaButtonTextColor?: string;
|
|
11
|
+
primaryTextColor?: string;
|
|
12
|
+
secondaryTextColor?: string;
|
|
13
|
+
loyaltyDiscount: LoyaltyDiscount;
|
|
14
|
+
pointsToBeUsed: number;
|
|
15
|
+
brandTokenName?: string;
|
|
16
|
+
showCartLevelAltPay?: boolean;
|
|
17
|
+
};
|
|
18
|
+
declare const LoyaltyAppliedCTA: React.FC<LoyaltyAppliedCTAProps>;
|
|
19
|
+
export default LoyaltyAppliedCTA;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type LoyaltyApplyCTAProps = {
|
|
3
|
+
loyaltyIcon: string;
|
|
4
|
+
discountAmountOff: number;
|
|
5
|
+
pointsToBeUsed: number;
|
|
6
|
+
applyDiscount: () => Promise<void>;
|
|
7
|
+
themeColor?: string;
|
|
8
|
+
ctaButtonBackgroundColor?: string;
|
|
9
|
+
ctaButtonTextColor?: string;
|
|
10
|
+
primaryTextColor?: string;
|
|
11
|
+
secondaryTextColor?: string;
|
|
12
|
+
minimumOrderValueToAvailDiscount?: number;
|
|
13
|
+
brandTokenName?: string;
|
|
14
|
+
showCartLevelAltPay?: boolean;
|
|
15
|
+
redemptionMultiplier?: number | null;
|
|
16
|
+
};
|
|
17
|
+
declare const LoyaltyApplyCTA: React.FC<LoyaltyApplyCTAProps>;
|
|
18
|
+
export default LoyaltyApplyCTA;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const LoyaltyBadge: React.FC<{
|
|
3
|
+
loyaltyIcon?: string;
|
|
4
|
+
pointsRewardRate?: number;
|
|
5
|
+
brandTokenName?: string;
|
|
6
|
+
themeColor?: string;
|
|
7
|
+
themeTextColor?: string;
|
|
8
|
+
rewardMultiplier?: number | null;
|
|
9
|
+
}>;
|
|
10
|
+
export default LoyaltyBadge;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type LoyaltyGuestCTAProps = {
|
|
3
|
+
cartSigninCTAMainText?: string;
|
|
4
|
+
signinCTAButtonVisible?: boolean;
|
|
5
|
+
guestLoyaltyPercentage: number;
|
|
6
|
+
joinNowFunction: () => void;
|
|
7
|
+
themeColor?: string;
|
|
8
|
+
ctaButtonBackgroundColor?: string;
|
|
9
|
+
ctaButtonTextColor?: string;
|
|
10
|
+
primaryTextColor?: string;
|
|
11
|
+
secondaryTextColor?: string;
|
|
12
|
+
cartComponentsCornerType?: "rounded" | "sharp";
|
|
13
|
+
cartComponentsCornerRadius?: number;
|
|
14
|
+
showCartLevelAltPay?: boolean;
|
|
15
|
+
};
|
|
16
|
+
declare const LoyaltyGuestCTA: React.FC<LoyaltyGuestCTAProps>;
|
|
17
|
+
export default LoyaltyGuestCTA;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface CheckpointConfettiProps {
|
|
3
|
+
particleCount: number;
|
|
4
|
+
spread: number;
|
|
5
|
+
origin: {
|
|
6
|
+
y: number;
|
|
7
|
+
};
|
|
8
|
+
checkpointPosition?: number;
|
|
9
|
+
}
|
|
10
|
+
declare const CheckpointConfetti: React.FC<CheckpointConfettiProps>;
|
|
11
|
+
export default CheckpointConfetti;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IconType } from "react-icons";
|
|
3
|
+
export declare const MultiStepIcon: (couponType: string, color: string, numberOfCheckpoints: number, freeProductIconType: string, themeTextColor?: string) => React.ReactElement;
|
|
4
|
+
export declare const progressBarCheckpointFreeProductIconMap: {
|
|
5
|
+
[key: string]: IconType;
|
|
6
|
+
};
|
|
7
|
+
export declare const checkpointRewardCategoryIconMap: {
|
|
8
|
+
[key: string]: IconType;
|
|
9
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const getEffectiveProgressBarWidth: (numberOfCheckpoints: number) => number;
|
|
3
|
+
export declare const getEffectiveIconFontSize: (numberOfCheckpoints: number) => 22 | 17;
|
|
4
|
+
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;
|
|
5
|
+
export declare const CheckpointContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
6
|
+
$isDummy?: boolean | undefined;
|
|
7
|
+
}>> & string;
|
|
8
|
+
export declare const ProgressBar: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
9
|
+
$isCompleted?: boolean | undefined;
|
|
10
|
+
$percent: number;
|
|
11
|
+
$themeColor?: string | undefined;
|
|
12
|
+
$ctaButtonBackgroundColor?: string | undefined;
|
|
13
|
+
$numberOfCheckpoints: number;
|
|
14
|
+
$isFirstCheckpoint?: boolean | undefined;
|
|
15
|
+
}>> & string;
|
|
16
|
+
export declare const Tag: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
17
|
+
$isCompleted?: boolean | undefined;
|
|
18
|
+
$ctaButtonBackgroundColor?: string | undefined;
|
|
19
|
+
$ctaButtonTextColor?: string | undefined;
|
|
20
|
+
$textColor?: string | undefined;
|
|
21
|
+
$primaryTextColor?: string | undefined;
|
|
22
|
+
}>> & string;
|
|
23
|
+
export declare const Tooltip: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
24
|
+
$visible: boolean;
|
|
25
|
+
$ctaButtonBackgroundColor?: string | undefined;
|
|
26
|
+
$ctaButtonTextColor?: string | undefined;
|
|
27
|
+
}>> & string;
|
|
28
|
+
export declare const MultiTierNextRewardWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
|
|
29
|
+
$ctaButtonTextColor?: string | undefined;
|
|
30
|
+
$ctaButtonBackgroundColor?: string | undefined;
|
|
31
|
+
}>> & string;
|
|
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;
|
|
34
|
+
}>> & string;
|
|
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
|
+
$showMOVForProgressTiers: boolean;
|
|
37
|
+
$rightMarginOffsetPx?: number | undefined;
|
|
38
|
+
}>> & string;
|
|
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
|
+
$tagWrapOffsetPx?: number | undefined;
|
|
41
|
+
}>> & string;
|
|
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
|
+
$numberOfCheckpoints: number;
|
|
44
|
+
}>> & string;
|
|
45
|
+
export declare const CheckpointInnerWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CheckpointWithProgress } from "./types";
|
|
2
|
+
import { Checkpoint } from "../Cart";
|
|
3
|
+
import { MultiStepProgressBarProps } from "./types";
|
|
4
|
+
export declare const criteriaCheckpointFieldMap: (customCartProgressBarCriteria: string) => "minimumOrderValue" | "quantityThreshold";
|
|
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;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
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;
|
|
4
|
+
}>> & string;
|
|
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
|
+
$isCompleted?: boolean | undefined;
|
|
7
|
+
$percent: number;
|
|
8
|
+
$ctaButtonBackgroundColor?: string | undefined;
|
|
9
|
+
$numberOfCheckpoints: number;
|
|
10
|
+
$isFirstCheckpoint?: boolean | undefined;
|
|
11
|
+
}>> & string;
|
|
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
|
+
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;
|
|
15
|
+
$ctaButtonBackgroundColor?: string | undefined;
|
|
16
|
+
}>> & string;
|
|
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;
|
|
18
|
+
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;
|
|
19
|
+
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>, {
|
|
20
|
+
$numberOfCheckpoints: number;
|
|
21
|
+
}>> & string;
|
|
22
|
+
export declare const CheckpointInnerWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Checkpoint } from "../Cart";
|
|
2
|
+
export interface CheckpointWithProgress extends Checkpoint {
|
|
3
|
+
progressPercentage: number;
|
|
4
|
+
}
|
|
5
|
+
export interface MultiStepProgressBarProps {
|
|
6
|
+
currentCartAmount: number;
|
|
7
|
+
checkpoints: Checkpoint[];
|
|
8
|
+
themeColor?: string;
|
|
9
|
+
themeTextColor?: string;
|
|
10
|
+
handleCheckpointCrossed?: (checkpoint: Checkpoint, cartAmount: number) => Promise<any>;
|
|
11
|
+
customCartProgressBarCriteria: string;
|
|
12
|
+
primaryTextColor?: string;
|
|
13
|
+
secondaryTextColor?: string;
|
|
14
|
+
showMOVForProgressTiers?: boolean;
|
|
15
|
+
effectiveQuantityForProgressBar?: number;
|
|
16
|
+
progressBarFreeProductIconType?: string;
|
|
17
|
+
ctaButtonBackgroundColor?: string;
|
|
18
|
+
ctaButtonTextColor?: string;
|
|
19
|
+
prefixMessageText?: string;
|
|
20
|
+
suffixMessageText?: string;
|
|
21
|
+
successMessageText?: string;
|
|
22
|
+
enableConfetti?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export interface CheckpointTooltipProps {
|
|
25
|
+
showMOVForProgressTiers: boolean | undefined;
|
|
26
|
+
minimumOrderValue: number;
|
|
27
|
+
customCartProgressBarCriteria: string;
|
|
28
|
+
cartData: any;
|
|
29
|
+
quantityThreshold: number;
|
|
30
|
+
ctaButtonBackgroundColor?: string;
|
|
31
|
+
ctaButtonTextColor?: string;
|
|
32
|
+
}
|
|
33
|
+
export interface CheckpointIconProps {
|
|
34
|
+
checkpointWithProgress: CheckpointWithProgress;
|
|
35
|
+
themeColor?: string;
|
|
36
|
+
checkpointsLength: number;
|
|
37
|
+
progressBarFreeProductIconType?: string;
|
|
38
|
+
themeTextColor?: string;
|
|
39
|
+
ctaButtonTextColor?: string;
|
|
40
|
+
}
|
|
41
|
+
export interface NextRewardMessageProps {
|
|
42
|
+
currentCartAmount: number;
|
|
43
|
+
checkpoints: Checkpoint[];
|
|
44
|
+
cartData: any;
|
|
45
|
+
customCartProgressBarCriteria: string;
|
|
46
|
+
effectiveQuantityForProgressBar?: number;
|
|
47
|
+
themeColor?: string;
|
|
48
|
+
primaryTextColor?: string;
|
|
49
|
+
showMOVForProgressTiers: boolean;
|
|
50
|
+
ctaButtonBackgroundColor?: string;
|
|
51
|
+
prefixMessageText?: string;
|
|
52
|
+
suffixMessageText?: string;
|
|
53
|
+
successMessageText?: string;
|
|
54
|
+
ctaButtonTextColor?: string;
|
|
55
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type NextFreebieRowProps = {
|
|
3
|
+
name: string;
|
|
4
|
+
minimumOrderValue: number;
|
|
5
|
+
currency: string;
|
|
6
|
+
themeColor?: string;
|
|
7
|
+
tertiaryColor?: string;
|
|
8
|
+
imageUrl?: string;
|
|
9
|
+
};
|
|
10
|
+
export type freebieMilestoneProps = {
|
|
11
|
+
enableFreebieMilestone: boolean;
|
|
12
|
+
milestoneImage: {
|
|
13
|
+
id: string;
|
|
14
|
+
path: string;
|
|
15
|
+
};
|
|
16
|
+
campaignFilter?: string;
|
|
17
|
+
};
|
|
18
|
+
declare const NextFreebieRow: React.FC<NextFreebieRowProps>;
|
|
19
|
+
export default NextFreebieRow;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const ProductCard: ({ product: variant, handleDecrement, handleIncrement, removeCartItem, addCartItem, isDev, themeColor, primaryTextColor, secondaryTextColor, tertiaryColor, tertiaryTextColor, showQtySelector, themeTextColor, showEditOptionOnProducts, percentageOff, tags, removeFreebieFromCart, showDeleteOnFreebies, imageAspectSelector, cartComponentsCornerType, cartComponentsCornerRadius, backgroundSubdued, backgroundColor, showDiscountOnMRP, }: {
|
|
3
|
+
product: any;
|
|
4
|
+
addCartItem?: ((product: any) => Promise<any>) | undefined;
|
|
5
|
+
removeCartItem?: ((product: any) => Promise<any>) | undefined;
|
|
6
|
+
handleIncrement?: ((productId: number, newQuantity: number, properties?: {
|
|
7
|
+
[key: string]: string;
|
|
8
|
+
} | undefined) => Promise<any>) | undefined;
|
|
9
|
+
handleDecrement?: ((productId: number, newQuantity?: number) => Promise<any>) | undefined;
|
|
10
|
+
isDev?: boolean | undefined;
|
|
11
|
+
themeColor?: string | undefined;
|
|
12
|
+
primaryTextColor?: string | undefined;
|
|
13
|
+
secondaryTextColor?: string | undefined;
|
|
14
|
+
tertiaryColor?: string | undefined;
|
|
15
|
+
tertiaryTextColor?: string | undefined;
|
|
16
|
+
showQtySelector?: boolean | undefined;
|
|
17
|
+
themeTextColor?: string | undefined;
|
|
18
|
+
showEditOptionOnProducts?: boolean | undefined;
|
|
19
|
+
percentageOff?: number | undefined;
|
|
20
|
+
tags?: any;
|
|
21
|
+
removeFreebieFromCart?: ((lineItemKey: string) => Promise<void>) | undefined;
|
|
22
|
+
showDeleteOnFreebies?: boolean | undefined;
|
|
23
|
+
imageAspectSelector?: "square" | "portrait" | undefined;
|
|
24
|
+
cartComponentsCornerType?: "rounded" | "sharp" | undefined;
|
|
25
|
+
cartComponentsCornerRadius?: number | undefined;
|
|
26
|
+
backgroundSubdued?: string | undefined;
|
|
27
|
+
backgroundColor?: string | undefined;
|
|
28
|
+
showDiscountOnMRP?: boolean | undefined;
|
|
29
|
+
}) => React.JSX.Element;
|
|
30
|
+
export default ProductCard;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type ProductRecCardProps = {
|
|
3
|
+
product: any;
|
|
4
|
+
addCartItem: (product: any, quantity?: number, triggeredFrom?: string, freebieReplace?: boolean, productHandle?: string) => Promise<any>;
|
|
5
|
+
productRecsCtaButtonText?: string;
|
|
6
|
+
ctaButtonBackgroundColor?: string;
|
|
7
|
+
ctaButtonTextColor?: string;
|
|
8
|
+
primaryTextColor?: string;
|
|
9
|
+
secondaryTextColor?: string;
|
|
10
|
+
showVariantSelectionDropdownInProductRecs?: boolean;
|
|
11
|
+
layout?: "horizontal" | "vertical";
|
|
12
|
+
cartComponentsCornerType?: "rounded" | "sharp";
|
|
13
|
+
cartComponentsCornerRadius?: number;
|
|
14
|
+
isVerticalList?: boolean;
|
|
15
|
+
backgroundColor?: string;
|
|
16
|
+
tertiaryColor?: string;
|
|
17
|
+
tertiaryTextColor?: string;
|
|
18
|
+
};
|
|
19
|
+
declare const ProductRecCard: React.FC<ProductRecCardProps>;
|
|
20
|
+
export default ProductRecCard;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type ProductRecListProps = {
|
|
3
|
+
products: any[];
|
|
4
|
+
addCartItem: (product: any, quantity?: number, triggeredFrom?: string, freebieReplace?: boolean, productHandle?: string) => Promise<any>;
|
|
5
|
+
productRecsCtaButtonText?: string;
|
|
6
|
+
ctaButtonBackgroundColor?: string;
|
|
7
|
+
ctaButtonTextColor?: string;
|
|
8
|
+
productRecsTitleText?: string;
|
|
9
|
+
themeColor?: string;
|
|
10
|
+
primaryTextColor?: string;
|
|
11
|
+
secondaryTextColor?: string;
|
|
12
|
+
showVariantSelectionDropdownInProductRecs?: boolean;
|
|
13
|
+
variant?: "scroll" | "carousel" | "vertical";
|
|
14
|
+
cardLayout?: "horizontal" | "vertical";
|
|
15
|
+
cartComponentsCornerType?: "rounded" | "sharp";
|
|
16
|
+
cartComponentsCornerRadius?: number;
|
|
17
|
+
backgroundSubdued?: string;
|
|
18
|
+
backgroundColor?: string;
|
|
19
|
+
tertiaryColor?: string;
|
|
20
|
+
tertiaryTextColor?: string;
|
|
21
|
+
};
|
|
22
|
+
declare const ProductRecList: React.FC<ProductRecListProps>;
|
|
23
|
+
export default ProductRecList;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./progressBar.scss";
|
|
3
|
+
import { RewardCouponWithIcon } from "../CouponFrame/CouponFrame";
|
|
4
|
+
import { Checkpoint } from "./Cart";
|
|
5
|
+
type ProgressBarProps = {
|
|
6
|
+
progressBarFulfillmentThreshold?: number;
|
|
7
|
+
progressBarItemsThreshold?: number;
|
|
8
|
+
themeColor?: string;
|
|
9
|
+
handleCheckpointCrossed?: (checkpoint: Checkpoint, cartAmount: number) => Promise<any>;
|
|
10
|
+
rewardCoupon: RewardCouponWithIcon;
|
|
11
|
+
};
|
|
12
|
+
declare const ProgressBar: React.FC<ProgressBarProps>;
|
|
13
|
+
export default ProgressBar;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./shared.scss";
|
|
3
|
+
export declare const QuantitySelector: ({ value, handleItemQuantityDecrement, handleItemQuantityIncrement, isDev, themeColor, cartComponentsCornerType, cartComponentsCornerRadius, backgroundSubdued, }: {
|
|
4
|
+
value: number;
|
|
5
|
+
handleItemQuantityIncrement: () => Promise<void>;
|
|
6
|
+
handleItemQuantityDecrement: () => Promise<void>;
|
|
7
|
+
isDev?: boolean | undefined;
|
|
8
|
+
themeColor?: string | undefined;
|
|
9
|
+
cartComponentsCornerType?: "rounded" | "sharp" | undefined;
|
|
10
|
+
cartComponentsCornerRadius?: number | undefined;
|
|
11
|
+
backgroundSubdued?: string | undefined;
|
|
12
|
+
}) => React.JSX.Element;
|