yt-uikit 0.8.18-freebie-milestone.0 → 0.8.18
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/atoms/bundleBuilderProductDetailsAtom.d.ts +4 -4
- package/dist/esm/atoms/cartDataAtom.d.ts +3 -3
- package/dist/esm/atoms/cartLoadingAtom.d.ts +22 -22
- package/dist/esm/atoms/cartTimer.d.ts +2 -2
- package/dist/esm/atoms/couponSelectionOpenAtom.d.ts +3 -3
- 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 +19 -19
- 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 +23 -23
- package/dist/esm/components/BundleBlock/Bundle.d.ts +396 -396
- package/dist/esm/components/BundleBlock/BundleBuilder/BundleBuilder.d.ts +40 -40
- package/dist/esm/components/BundleBlock/BundleBuilder/ResponsiveBgImage.d.ts +9 -9
- package/dist/esm/components/BundleBlock/BundleBuilder/VariantOptionsModal.d.ts +15 -15
- package/dist/esm/components/BundleBlock/BundleBuilder/bundleBuilder.style.d.ts +37 -37
- package/dist/esm/components/BundleBlock/BundleBuilderTracker/BundleBuilderTracker.d.ts +51 -51
- package/dist/esm/components/BundleBlock/BundleBuilderTracker/bundleBuilderTracker.style.d.ts +77 -77
- package/dist/esm/components/BundleBlock/BundleProductDetailsModal/BundleProductDetailsModal.d.ts +36 -36
- package/dist/esm/components/BundleBlock/BundleProductDetailsModal/bundleProductDetailsModal.style.d.ts +10 -10
- package/dist/esm/components/BundleBlock/CollectionBundle/ColllectionBundle.d.ts +116 -116
- package/dist/esm/components/BundleBlock/CollectionBundle/FileUpload.d.ts +15 -15
- package/dist/esm/components/BundleBlock/CollectionBundle/LoadingSpinner.d.ts +2 -2
- package/dist/esm/components/BundleBlock/CollectionBundle/ProductDetailsModal.d.ts +15 -15
- package/dist/esm/components/BundleBlock/ComboBundle.d.ts +16 -16
- package/dist/esm/components/BundleBlock/FixedBundle/FixedBundle.d.ts +4 -4
- package/dist/esm/components/BundleBlock/FixedBundle/SeparateVariantOptions.d.ts +39 -39
- package/dist/esm/components/BundleBlock/FixedBundle/VariantSelectorModal.d.ts +22 -22
- package/dist/esm/components/BundleBlock/FixedBundle/fixedBundle.style.d.ts +90 -90
- package/dist/esm/components/BundleBlock/Loader.d.ts +5 -5
- package/dist/esm/components/BundleBlock/MixAndMatchBundle/MixAndMatchBundle.d.ts +8 -8
- package/dist/esm/components/BundleBlock/MixAndMatchBundle/mixAndMatchBundle.style.d.ts +86 -86
- package/dist/esm/components/BundleBlock/VolumeBundle/VolumeBundle.d.ts +3 -3
- package/dist/esm/components/BundleBlock/VolumeBundle/volumeBundle.style.d.ts +80 -80
- package/dist/esm/components/BundleBlock/index.d.ts +1 -1
- package/dist/esm/components/Cart/ApplyCoupon.d.ts +12 -12
- package/dist/esm/components/Cart/Bundle.d.ts +6 -6
- package/dist/esm/components/Cart/Cart.d.ts +218 -218
- package/dist/esm/components/Cart/CartDrawer.d.ts +21 -21
- package/dist/esm/components/Cart/CartOffersCarousel.d.ts +45 -45
- package/dist/esm/components/Cart/CartProductsList.d.ts +44 -45
- package/dist/esm/components/Cart/CartTimer.d.ts +8 -8
- package/dist/esm/components/Cart/CheckoutSection.d.ts +38 -38
- package/dist/esm/components/Cart/CouponSelection.d.ts +25 -25
- package/dist/esm/components/Cart/DatePicker.d.ts +10 -10
- package/dist/esm/components/Cart/EmptyCart.d.ts +33 -33
- package/dist/esm/components/Cart/FloatingCart.d.ts +23 -23
- package/dist/esm/components/Cart/FooterSections.d.ts +6 -6
- package/dist/esm/components/Cart/FreebieClaimManager.d.ts +17 -17
- package/dist/esm/components/Cart/FreebieClaimOverlay.d.ts +17 -17
- package/dist/esm/components/Cart/FreebieClaimOverlayCard.d.ts +9 -9
- package/dist/esm/components/Cart/FreebieClaimSection.d.ts +17 -17
- package/dist/esm/components/Cart/FreebieClaimSectionCard.d.ts +16 -16
- package/dist/esm/components/Cart/GSTSection.d.ts +15 -15
- package/dist/esm/components/Cart/GiftWrap.d.ts +14 -14
- package/dist/esm/components/Cart/GuestDiscountCoupon.d.ts +9 -9
- package/dist/esm/components/Cart/InlineCartOfferInfoText.d.ts +10 -10
- package/dist/esm/components/Cart/LoyaltyAppliedCTA.d.ts +19 -19
- package/dist/esm/components/Cart/LoyaltyApplyCTA.d.ts +18 -18
- package/dist/esm/components/Cart/LoyaltyBadge.d.ts +10 -10
- package/dist/esm/components/Cart/LoyaltyGuestCTA.d.ts +17 -17
- package/dist/esm/components/Cart/MultiStepProgressBar/CheckpointConfetti.d.ts +11 -11
- package/dist/esm/components/Cart/MultiStepProgressBar/CheckpointIcon.d.ts +3 -3
- package/dist/esm/components/Cart/MultiStepProgressBar/CheckpointTooltip.d.ts +3 -3
- package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepIcon.d.ts +9 -9
- package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepProgressBar.d.ts +5 -5
- package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepProgressBar.styled.d.ts +45 -45
- package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepUtils.d.ts +6 -6
- package/dist/esm/components/Cart/MultiStepProgressBar/MultiTierProgressBar.d.ts +4 -4
- package/dist/esm/components/Cart/MultiStepProgressBar/MutiTierNextRewardMessage.d.ts +3 -3
- package/dist/esm/components/Cart/MultiStepProgressBar/NextRewardMessage.d.ts +3 -3
- package/dist/esm/components/Cart/MultiStepProgressBar/SingleTierProgressBar.d.ts +4 -4
- package/dist/esm/components/Cart/MultiStepProgressBar/SingleTierProgressBar.styled.d.ts +22 -22
- package/dist/esm/components/Cart/MultiStepProgressBar/SingletTierNextRewardMessage.d.ts +3 -3
- package/dist/esm/components/Cart/MultiStepProgressBar/types.d.ts +55 -55
- package/dist/esm/components/Cart/NextFreebieRow.d.ts +19 -22
- package/dist/esm/components/Cart/NoteSection.d.ts +8 -8
- package/dist/esm/components/Cart/ProductCard.d.ts +29 -29
- package/dist/esm/components/Cart/ProductRecCard.d.ts +20 -20
- package/dist/esm/components/Cart/ProductRecList.d.ts +23 -23
- package/dist/esm/components/Cart/ProgressBar.d.ts +13 -13
- package/dist/esm/components/Cart/ProgressBarCartLoader.d.ts +7 -7
- package/dist/esm/components/Cart/QuantitySelector.d.ts +12 -12
- package/dist/esm/components/Cart/RegionSpecificDelivery.d.ts +17 -17
- package/dist/esm/components/Cart/RewardPointsPreview.d.ts +10 -10
- package/dist/esm/components/Cart/StandardDelivery.d.ts +11 -11
- package/dist/esm/components/Cart/StickyCart.d.ts +52 -52
- package/dist/esm/components/Cart/VariantSelectionPopup/DesktopVariantPopup.d.ts +18 -18
- package/dist/esm/components/Cart/VariantSelectionPopup/DesktopVariantPopup.styled.d.ts +60 -60
- package/dist/esm/components/Cart/VariantSelectionPopup/MobileVariantPopover.d.ts +18 -18
- package/dist/esm/components/Cart/index.d.ts +1 -1
- package/dist/esm/components/CouponFrame/CouponFrame.d.ts +15 -15
- package/dist/esm/components/CouponFrame/index.d.ts +1 -1
- package/dist/esm/components/LoyaltyPageBlock/LoyaltyPageBlock.d.ts +63 -0
- 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 +32 -32
- 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 +6 -6
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +38 -38
- package/dist/esm/types/atoms/bundleBuilderProductDetailsAtom.d.ts +4 -4
- package/dist/esm/types/atoms/cartDataAtom.d.ts +3 -3
- package/dist/esm/types/atoms/cartLoadingAtom.d.ts +22 -22
- package/dist/esm/types/atoms/cartTimer.d.ts +2 -2
- package/dist/esm/types/atoms/couponSelectionOpenAtom.d.ts +3 -3
- package/dist/esm/types/atoms/dateAtom.d.ts +1 -1
- package/dist/esm/types/atoms/freebieClaimModalAtom.d.ts +7 -7
- package/dist/esm/types/atoms/giftWrap.d.ts +2 -2
- package/dist/esm/types/atoms/gstCompanyNameAtom.d.ts +1 -1
- package/dist/esm/types/atoms/gstInputAtom.d.ts +1 -1
- package/dist/esm/types/atoms/maxQtyErrorAtom.d.ts +3 -3
- package/dist/esm/types/atoms/multiClaimSelectionAtom.d.ts +19 -19
- package/dist/esm/types/atoms/noteInputAtom.d.ts +3 -3
- package/dist/esm/types/atoms/postalCodeAtom.d.ts +1 -1
- package/dist/esm/types/atoms/shippingAtom.d.ts +8 -8
- package/dist/esm/types/atoms/showGSTInputAtom.d.ts +1 -1
- package/dist/esm/types/atoms/variantSelectionModalAtom.d.ts +23 -23
- package/dist/esm/types/components/BundleBlock/Bundle.d.ts +396 -396
- package/dist/esm/types/components/BundleBlock/BundleBuilder/BundleBuilder.d.ts +40 -40
- package/dist/esm/types/components/BundleBlock/BundleBuilder/ResponsiveBgImage.d.ts +9 -9
- package/dist/esm/types/components/BundleBlock/BundleBuilder/VariantOptionsModal.d.ts +15 -15
- package/dist/esm/types/components/BundleBlock/BundleBuilder/bundleBuilder.style.d.ts +37 -37
- package/dist/esm/types/components/BundleBlock/BundleBuilderTracker/BundleBuilderTracker.d.ts +51 -51
- package/dist/esm/types/components/BundleBlock/BundleBuilderTracker/bundleBuilderTracker.style.d.ts +77 -77
- package/dist/esm/types/components/BundleBlock/BundleProductDetailsModal/BundleProductDetailsModal.d.ts +36 -36
- package/dist/esm/types/components/BundleBlock/BundleProductDetailsModal/bundleProductDetailsModal.style.d.ts +10 -10
- package/dist/esm/types/components/BundleBlock/CollectionBundle/ColllectionBundle.d.ts +116 -116
- package/dist/esm/types/components/BundleBlock/CollectionBundle/FileUpload.d.ts +15 -15
- package/dist/esm/types/components/BundleBlock/CollectionBundle/LoadingSpinner.d.ts +2 -2
- package/dist/esm/types/components/BundleBlock/CollectionBundle/ProductDetailsModal.d.ts +15 -15
- package/dist/esm/types/components/BundleBlock/ComboBundle.d.ts +16 -16
- package/dist/esm/types/components/BundleBlock/FixedBundle/FixedBundle.d.ts +4 -4
- package/dist/esm/types/components/BundleBlock/FixedBundle/SeparateVariantOptions.d.ts +39 -39
- package/dist/esm/types/components/BundleBlock/FixedBundle/VariantSelectorModal.d.ts +22 -22
- package/dist/esm/types/components/BundleBlock/FixedBundle/fixedBundle.style.d.ts +90 -90
- package/dist/esm/types/components/BundleBlock/Loader.d.ts +5 -5
- package/dist/esm/types/components/BundleBlock/MixAndMatchBundle/MixAndMatchBundle.d.ts +8 -8
- package/dist/esm/types/components/BundleBlock/MixAndMatchBundle/mixAndMatchBundle.style.d.ts +86 -86
- package/dist/esm/types/components/BundleBlock/VolumeBundle/VolumeBundle.d.ts +3 -3
- package/dist/esm/types/components/BundleBlock/VolumeBundle/volumeBundle.style.d.ts +80 -80
- package/dist/esm/types/components/BundleBlock/index.d.ts +1 -1
- package/dist/esm/types/components/Cart/ApplyCoupon.d.ts +12 -12
- package/dist/esm/types/components/Cart/Bundle.d.ts +6 -6
- package/dist/esm/types/components/Cart/Cart.d.ts +218 -218
- package/dist/esm/types/components/Cart/CartDrawer.d.ts +21 -21
- package/dist/esm/types/components/Cart/CartOffersCarousel.d.ts +45 -45
- package/dist/esm/types/components/Cart/CartProductsList.d.ts +44 -45
- package/dist/esm/types/components/Cart/CartTimer.d.ts +8 -8
- package/dist/esm/types/components/Cart/CheckoutSection.d.ts +38 -38
- package/dist/esm/types/components/Cart/CouponSelection.d.ts +25 -25
- package/dist/esm/types/components/Cart/DatePicker.d.ts +10 -10
- package/dist/esm/types/components/Cart/EmptyCart.d.ts +33 -33
- package/dist/esm/types/components/Cart/FloatingCart.d.ts +23 -23
- package/dist/esm/types/components/Cart/FooterSections.d.ts +6 -6
- package/dist/esm/types/components/Cart/FreebieClaimManager.d.ts +17 -17
- package/dist/esm/types/components/Cart/FreebieClaimOverlay.d.ts +17 -17
- package/dist/esm/types/components/Cart/FreebieClaimOverlayCard.d.ts +9 -9
- package/dist/esm/types/components/Cart/FreebieClaimSection.d.ts +17 -17
- package/dist/esm/types/components/Cart/FreebieClaimSectionCard.d.ts +16 -16
- package/dist/esm/types/components/Cart/GSTSection.d.ts +15 -15
- package/dist/esm/types/components/Cart/GiftWrap.d.ts +14 -14
- package/dist/esm/types/components/Cart/GuestDiscountCoupon.d.ts +9 -9
- package/dist/esm/types/components/Cart/InlineCartOfferInfoText.d.ts +10 -10
- package/dist/esm/types/components/Cart/LoyaltyAppliedCTA.d.ts +19 -19
- package/dist/esm/types/components/Cart/LoyaltyApplyCTA.d.ts +18 -18
- package/dist/esm/types/components/Cart/LoyaltyBadge.d.ts +10 -10
- package/dist/esm/types/components/Cart/LoyaltyGuestCTA.d.ts +17 -17
- package/dist/esm/types/components/Cart/MultiStepProgressBar/CheckpointConfetti.d.ts +11 -11
- package/dist/esm/types/components/Cart/MultiStepProgressBar/CheckpointIcon.d.ts +3 -3
- package/dist/esm/types/components/Cart/MultiStepProgressBar/CheckpointTooltip.d.ts +3 -3
- package/dist/esm/types/components/Cart/MultiStepProgressBar/MultiStepIcon.d.ts +9 -9
- package/dist/esm/types/components/Cart/MultiStepProgressBar/MultiStepProgressBar.d.ts +5 -5
- package/dist/esm/types/components/Cart/MultiStepProgressBar/MultiStepProgressBar.styled.d.ts +45 -45
- package/dist/esm/types/components/Cart/MultiStepProgressBar/MultiStepUtils.d.ts +6 -6
- package/dist/esm/types/components/Cart/MultiStepProgressBar/MultiTierProgressBar.d.ts +4 -4
- package/dist/esm/types/components/Cart/MultiStepProgressBar/MutiTierNextRewardMessage.d.ts +3 -3
- package/dist/esm/types/components/Cart/MultiStepProgressBar/NextRewardMessage.d.ts +3 -3
- package/dist/esm/types/components/Cart/MultiStepProgressBar/SingleTierProgressBar.d.ts +4 -4
- package/dist/esm/types/components/Cart/MultiStepProgressBar/SingleTierProgressBar.styled.d.ts +22 -22
- package/dist/esm/types/components/Cart/MultiStepProgressBar/SingletTierNextRewardMessage.d.ts +3 -3
- package/dist/esm/types/components/Cart/MultiStepProgressBar/types.d.ts +55 -55
- package/dist/esm/types/components/Cart/NextFreebieRow.d.ts +19 -22
- package/dist/esm/types/components/Cart/NoteSection.d.ts +8 -8
- package/dist/esm/types/components/Cart/ProductCard.d.ts +29 -29
- package/dist/esm/types/components/Cart/ProductRecCard.d.ts +20 -20
- package/dist/esm/types/components/Cart/ProductRecList.d.ts +23 -23
- package/dist/esm/types/components/Cart/ProgressBar.d.ts +13 -13
- package/dist/esm/types/components/Cart/ProgressBarCartLoader.d.ts +7 -7
- package/dist/esm/types/components/Cart/QuantitySelector.d.ts +12 -12
- package/dist/esm/types/components/Cart/RegionSpecificDelivery.d.ts +17 -17
- package/dist/esm/types/components/Cart/RewardPointsPreview.d.ts +10 -10
- package/dist/esm/types/components/Cart/StandardDelivery.d.ts +11 -11
- package/dist/esm/types/components/Cart/StickyCart.d.ts +52 -52
- package/dist/esm/types/components/Cart/VariantSelectionPopup/DesktopVariantPopup.d.ts +18 -18
- package/dist/esm/types/components/Cart/VariantSelectionPopup/DesktopVariantPopup.styled.d.ts +60 -60
- package/dist/esm/types/components/Cart/VariantSelectionPopup/MobileVariantPopover.d.ts +18 -18
- package/dist/esm/types/components/Cart/index.d.ts +1 -1
- package/dist/esm/types/components/CouponFrame/CouponFrame.d.ts +15 -15
- package/dist/esm/types/components/CouponFrame/index.d.ts +1 -1
- package/dist/esm/types/components/LoyaltyPageBlock/LoyaltyPageBlock.d.ts +63 -0
- package/dist/esm/types/components/Nudge/LeadGenerationNudge.d.ts +15 -15
- package/dist/esm/types/components/Nudge/Nudge.d.ts +40 -40
- package/dist/esm/types/components/Nudge/index.d.ts +1 -1
- package/dist/esm/types/components/ProductOffersBlock/ProductOffersCoupon.d.ts +12 -12
- package/dist/esm/types/components/ProductOffersBlock/ProductOffersList.d.ts +12 -12
- package/dist/esm/types/components/ProductOffersBlock/ProductOffersTermsMobilePopover.d.ts +10 -10
- package/dist/esm/types/components/ProductOffersBlock/ProductOffersTermsPopup.d.ts +10 -10
- package/dist/esm/types/components/ProductOffersBlock/ProductsOffers.d.ts +32 -32
- package/dist/esm/types/components/SpinnerWheel/SpinnerWheel.d.ts +23 -23
- package/dist/esm/types/components/SpinnerWheel/WheelSection.d.ts +9 -9
- package/dist/esm/types/components/SpinnerWheel/index.d.ts +1 -1
- package/dist/esm/types/components/index.d.ts +6 -6
- package/dist/esm/types/index.d.ts +1 -1
- package/dist/esm/types/utils/converter.d.ts +2 -2
- package/dist/esm/types/utils/customVariantOptions.d.ts +20 -20
- package/dist/esm/types/utils/freebieProductUtils.d.ts +23 -23
- package/dist/esm/types/utils/freebieUtils.d.ts +5 -5
- package/dist/esm/types/utils/index.d.ts +14 -14
- package/dist/esm/utils/converter.d.ts +2 -2
- package/dist/esm/utils/customVariantOptions.d.ts +20 -20
- package/dist/esm/utils/freebieProductUtils.d.ts +23 -23
- package/dist/esm/utils/freebieUtils.d.ts +5 -5
- package/dist/esm/utils/index.d.ts +14 -14
- package/dist/index.d.ts +723 -724
- package/package.json +95 -95
- package/src/assets/Frame.svg +4 -4
- package/src/assets/bundlePlus.svg +4 -4
- package/src/assets/copy-icon.svg +3 -3
- package/src/assets/copy-iconBlack.svg +4 -4
- package/src/assets/coupon.svg +4 -4
- package/src/assets/delivery.svg +5 -5
- package/dist/esm/components/Cart/FreebieClaimErrorBoundary.d.ts +0 -28
- package/dist/esm/components/shared/Spinner.d.ts +0 -23
- package/dist/esm/components/shared/index.d.ts +0 -2
- package/dist/esm/types/components/Cart/FreebieClaimErrorBoundary.d.ts +0 -28
- package/dist/esm/types/components/shared/Spinner.d.ts +0 -23
- package/dist/esm/types/components/shared/index.d.ts +0 -2
- package/dist/esm/types/utils/freebieErrorLogger.d.ts +0 -68
- package/dist/esm/types/utils/freebieValidation.d.ts +0 -45
- package/dist/esm/utils/freebieErrorLogger.d.ts +0 -68
- package/dist/esm/utils/freebieValidation.d.ts +0 -45
|
@@ -1,116 +1,116 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export type Product = {
|
|
3
|
-
id: number;
|
|
4
|
-
title: string;
|
|
5
|
-
handle: string;
|
|
6
|
-
description: string | null;
|
|
7
|
-
published_at: string;
|
|
8
|
-
created_at: string;
|
|
9
|
-
vendor: string;
|
|
10
|
-
type: string;
|
|
11
|
-
tags: string[];
|
|
12
|
-
price: number;
|
|
13
|
-
price_min: number;
|
|
14
|
-
price_max: number;
|
|
15
|
-
available: boolean;
|
|
16
|
-
price_varies: boolean;
|
|
17
|
-
compare_at_price: number | null;
|
|
18
|
-
compare_at_price_min: number;
|
|
19
|
-
compare_at_price_max: number;
|
|
20
|
-
compare_at_price_varies: boolean;
|
|
21
|
-
variants: Array<{
|
|
22
|
-
id: number;
|
|
23
|
-
title: string;
|
|
24
|
-
option1: string | null;
|
|
25
|
-
option2: string | null;
|
|
26
|
-
option3: string | null;
|
|
27
|
-
sku: string;
|
|
28
|
-
requires_shipping: boolean;
|
|
29
|
-
taxable: boolean;
|
|
30
|
-
featured_image: any | null;
|
|
31
|
-
available: boolean;
|
|
32
|
-
name: string;
|
|
33
|
-
public_title: string;
|
|
34
|
-
options: string[];
|
|
35
|
-
price: number;
|
|
36
|
-
weight: number;
|
|
37
|
-
compare_at_price: number | null;
|
|
38
|
-
inventory_management: string;
|
|
39
|
-
barcode: string;
|
|
40
|
-
requires_selling_plan: boolean;
|
|
41
|
-
selling_plan_allocations: any[];
|
|
42
|
-
quantity_rule: {
|
|
43
|
-
min: number;
|
|
44
|
-
max: number | null;
|
|
45
|
-
increment: number;
|
|
46
|
-
};
|
|
47
|
-
}>;
|
|
48
|
-
images: string[];
|
|
49
|
-
image?: string;
|
|
50
|
-
options?: string[];
|
|
51
|
-
};
|
|
52
|
-
type DiscountData = {
|
|
53
|
-
type: "dummy_coupon" | "percentage_discount_coupon" | "amount_discount_coupon" | "fixed_price_collection";
|
|
54
|
-
tiers: {
|
|
55
|
-
minimumQuantity: number;
|
|
56
|
-
discountValue: number;
|
|
57
|
-
};
|
|
58
|
-
} | null;
|
|
59
|
-
export type BundleConfig = {
|
|
60
|
-
config: {
|
|
61
|
-
shop: string;
|
|
62
|
-
collectionIds: string[];
|
|
63
|
-
type: "collection";
|
|
64
|
-
builderTiers: {
|
|
65
|
-
type: "collectionTier";
|
|
66
|
-
collectionTier: {
|
|
67
|
-
title: string;
|
|
68
|
-
tier: number;
|
|
69
|
-
maximumQuantity: number;
|
|
70
|
-
collectionId: string;
|
|
71
|
-
handle: string;
|
|
72
|
-
products: Product[];
|
|
73
|
-
discountData: DiscountData;
|
|
74
|
-
}[];
|
|
75
|
-
};
|
|
76
|
-
form?: {
|
|
77
|
-
title?: string;
|
|
78
|
-
sections?: {
|
|
79
|
-
title: string;
|
|
80
|
-
type: "text" | "image";
|
|
81
|
-
fields: {
|
|
82
|
-
title: string;
|
|
83
|
-
}[];
|
|
84
|
-
}[];
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
customizations: {
|
|
88
|
-
borderRadius: string;
|
|
89
|
-
atcBg: string;
|
|
90
|
-
atcText: string;
|
|
91
|
-
productImageRatio: string;
|
|
92
|
-
bundleBg: string;
|
|
93
|
-
bundleText: string;
|
|
94
|
-
bundleBorder: string;
|
|
95
|
-
btnPrimaryBg: string;
|
|
96
|
-
btnPrimaryText: string;
|
|
97
|
-
productCardBorder: string;
|
|
98
|
-
productCardBg: string;
|
|
99
|
-
productCardShadow: string;
|
|
100
|
-
hideSelectedProducts: boolean;
|
|
101
|
-
allowMultipleQty: boolean;
|
|
102
|
-
hideOutOfStockProducts: boolean;
|
|
103
|
-
bundleRedirection: "cart-drawer" | "checkout";
|
|
104
|
-
checkoutPartner: "shopify" | "razorpay" | "shiprocket" | "gokwik" | "breeze" | "zecpay" | "shopflo";
|
|
105
|
-
showTierSteps: boolean;
|
|
106
|
-
headerImage: string;
|
|
107
|
-
stickyBarWidth: "compact" | "full-width";
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
|
-
interface CollectionBundleProps {
|
|
111
|
-
config: BundleConfig;
|
|
112
|
-
addCustomBundleToCart: (items: any) => void;
|
|
113
|
-
bundleAddToCartLoading: boolean;
|
|
114
|
-
}
|
|
115
|
-
declare const CollectionBundle: ({ config, bundleAddToCartLoading, addCustomBundleToCart, }: CollectionBundleProps) => React.JSX.Element;
|
|
116
|
-
export default CollectionBundle;
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type Product = {
|
|
3
|
+
id: number;
|
|
4
|
+
title: string;
|
|
5
|
+
handle: string;
|
|
6
|
+
description: string | null;
|
|
7
|
+
published_at: string;
|
|
8
|
+
created_at: string;
|
|
9
|
+
vendor: string;
|
|
10
|
+
type: string;
|
|
11
|
+
tags: string[];
|
|
12
|
+
price: number;
|
|
13
|
+
price_min: number;
|
|
14
|
+
price_max: number;
|
|
15
|
+
available: boolean;
|
|
16
|
+
price_varies: boolean;
|
|
17
|
+
compare_at_price: number | null;
|
|
18
|
+
compare_at_price_min: number;
|
|
19
|
+
compare_at_price_max: number;
|
|
20
|
+
compare_at_price_varies: boolean;
|
|
21
|
+
variants: Array<{
|
|
22
|
+
id: number;
|
|
23
|
+
title: string;
|
|
24
|
+
option1: string | null;
|
|
25
|
+
option2: string | null;
|
|
26
|
+
option3: string | null;
|
|
27
|
+
sku: string;
|
|
28
|
+
requires_shipping: boolean;
|
|
29
|
+
taxable: boolean;
|
|
30
|
+
featured_image: any | null;
|
|
31
|
+
available: boolean;
|
|
32
|
+
name: string;
|
|
33
|
+
public_title: string;
|
|
34
|
+
options: string[];
|
|
35
|
+
price: number;
|
|
36
|
+
weight: number;
|
|
37
|
+
compare_at_price: number | null;
|
|
38
|
+
inventory_management: string;
|
|
39
|
+
barcode: string;
|
|
40
|
+
requires_selling_plan: boolean;
|
|
41
|
+
selling_plan_allocations: any[];
|
|
42
|
+
quantity_rule: {
|
|
43
|
+
min: number;
|
|
44
|
+
max: number | null;
|
|
45
|
+
increment: number;
|
|
46
|
+
};
|
|
47
|
+
}>;
|
|
48
|
+
images: string[];
|
|
49
|
+
image?: string;
|
|
50
|
+
options?: string[];
|
|
51
|
+
};
|
|
52
|
+
type DiscountData = {
|
|
53
|
+
type: "dummy_coupon" | "percentage_discount_coupon" | "amount_discount_coupon" | "fixed_price_collection";
|
|
54
|
+
tiers: {
|
|
55
|
+
minimumQuantity: number;
|
|
56
|
+
discountValue: number;
|
|
57
|
+
};
|
|
58
|
+
} | null;
|
|
59
|
+
export type BundleConfig = {
|
|
60
|
+
config: {
|
|
61
|
+
shop: string;
|
|
62
|
+
collectionIds: string[];
|
|
63
|
+
type: "collection";
|
|
64
|
+
builderTiers: {
|
|
65
|
+
type: "collectionTier";
|
|
66
|
+
collectionTier: {
|
|
67
|
+
title: string;
|
|
68
|
+
tier: number;
|
|
69
|
+
maximumQuantity: number;
|
|
70
|
+
collectionId: string;
|
|
71
|
+
handle: string;
|
|
72
|
+
products: Product[];
|
|
73
|
+
discountData: DiscountData;
|
|
74
|
+
}[];
|
|
75
|
+
};
|
|
76
|
+
form?: {
|
|
77
|
+
title?: string;
|
|
78
|
+
sections?: {
|
|
79
|
+
title: string;
|
|
80
|
+
type: "text" | "image";
|
|
81
|
+
fields: {
|
|
82
|
+
title: string;
|
|
83
|
+
}[];
|
|
84
|
+
}[];
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
customizations: {
|
|
88
|
+
borderRadius: string;
|
|
89
|
+
atcBg: string;
|
|
90
|
+
atcText: string;
|
|
91
|
+
productImageRatio: string;
|
|
92
|
+
bundleBg: string;
|
|
93
|
+
bundleText: string;
|
|
94
|
+
bundleBorder: string;
|
|
95
|
+
btnPrimaryBg: string;
|
|
96
|
+
btnPrimaryText: string;
|
|
97
|
+
productCardBorder: string;
|
|
98
|
+
productCardBg: string;
|
|
99
|
+
productCardShadow: string;
|
|
100
|
+
hideSelectedProducts: boolean;
|
|
101
|
+
allowMultipleQty: boolean;
|
|
102
|
+
hideOutOfStockProducts: boolean;
|
|
103
|
+
bundleRedirection: "cart-drawer" | "checkout";
|
|
104
|
+
checkoutPartner: "shopify" | "razorpay" | "shiprocket" | "gokwik" | "breeze" | "zecpay" | "shopflo";
|
|
105
|
+
showTierSteps: boolean;
|
|
106
|
+
headerImage: string;
|
|
107
|
+
stickyBarWidth: "compact" | "full-width";
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
interface CollectionBundleProps {
|
|
111
|
+
config: BundleConfig;
|
|
112
|
+
addCustomBundleToCart: (items: any) => void;
|
|
113
|
+
bundleAddToCartLoading: boolean;
|
|
114
|
+
}
|
|
115
|
+
declare const CollectionBundle: ({ config, bundleAddToCartLoading, addCustomBundleToCart, }: CollectionBundleProps) => React.JSX.Element;
|
|
116
|
+
export default CollectionBundle;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface UploadFieldProps {
|
|
3
|
-
title: string;
|
|
4
|
-
uploadState?: {
|
|
5
|
-
url?: string;
|
|
6
|
-
name?: string;
|
|
7
|
-
loading?: boolean;
|
|
8
|
-
error?: boolean;
|
|
9
|
-
} | string;
|
|
10
|
-
onUpload: () => void;
|
|
11
|
-
onRemove: () => void;
|
|
12
|
-
onRetry: () => void;
|
|
13
|
-
}
|
|
14
|
-
export declare const UploadField: ({ title, uploadState, onUpload, onRemove, onRetry, }: UploadFieldProps) => React.JSX.Element;
|
|
15
|
-
export {};
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface UploadFieldProps {
|
|
3
|
+
title: string;
|
|
4
|
+
uploadState?: {
|
|
5
|
+
url?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
error?: boolean;
|
|
9
|
+
} | string;
|
|
10
|
+
onUpload: () => void;
|
|
11
|
+
onRemove: () => void;
|
|
12
|
+
onRetry: () => void;
|
|
13
|
+
}
|
|
14
|
+
export declare const UploadField: ({ title, uploadState, onUpload, onRemove, onRetry, }: UploadFieldProps) => React.JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export declare const LoaderSpinner: () => React.JSX.Element;
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare const LoaderSpinner: () => React.JSX.Element;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Product, BundleConfig } from "./ColllectionBundle";
|
|
3
|
-
type ProductDetailsModalProps = {
|
|
4
|
-
product: Product;
|
|
5
|
-
tierIdx: number;
|
|
6
|
-
isOpen: boolean;
|
|
7
|
-
onClose: () => void;
|
|
8
|
-
onAddToBundle: (product: Product, tierIdx: number) => void;
|
|
9
|
-
canAdd: boolean;
|
|
10
|
-
isSelected: boolean;
|
|
11
|
-
customizations: BundleConfig["customizations"];
|
|
12
|
-
isMobile: boolean;
|
|
13
|
-
};
|
|
14
|
-
export declare const ProductDetailsModal: ({ product, tierIdx, isOpen, onClose, onAddToBundle, canAdd, isSelected, customizations, isMobile, }: ProductDetailsModalProps) => React.ReactPortal | null;
|
|
15
|
-
export {};
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Product, BundleConfig } from "./ColllectionBundle";
|
|
3
|
+
type ProductDetailsModalProps = {
|
|
4
|
+
product: Product;
|
|
5
|
+
tierIdx: number;
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
onAddToBundle: (product: Product, tierIdx: number) => void;
|
|
9
|
+
canAdd: boolean;
|
|
10
|
+
isSelected: boolean;
|
|
11
|
+
customizations: BundleConfig["customizations"];
|
|
12
|
+
isMobile: boolean;
|
|
13
|
+
};
|
|
14
|
+
export declare const ProductDetailsModal: ({ product, tierIdx, isOpen, onClose, onAddToBundle, canAdd, isSelected, customizations, isMobile, }: ProductDetailsModalProps) => React.ReactPortal | null;
|
|
15
|
+
export {};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { BundleProps } from "./Bundle";
|
|
3
|
-
declare global {
|
|
4
|
-
interface Window {
|
|
5
|
-
ytComboBundle?: {
|
|
6
|
-
bundle: BundleProps["bundle"];
|
|
7
|
-
addToCart: (selectedItemsSubtotal: number, variantIds?: string[], finalBundlePrice?: number, variantIdPriceMap?: {
|
|
8
|
-
variantId: string;
|
|
9
|
-
price: number;
|
|
10
|
-
}[]) => Promise<void>;
|
|
11
|
-
} | undefined;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
import "./bundle.scss";
|
|
15
|
-
declare const ComboBundle: React.FC<BundleProps>;
|
|
16
|
-
export default ComboBundle;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { BundleProps } from "./Bundle";
|
|
3
|
+
declare global {
|
|
4
|
+
interface Window {
|
|
5
|
+
ytComboBundle?: {
|
|
6
|
+
bundle: BundleProps["bundle"];
|
|
7
|
+
addToCart: (selectedItemsSubtotal: number, variantIds?: string[], finalBundlePrice?: number, variantIdPriceMap?: {
|
|
8
|
+
variantId: string;
|
|
9
|
+
price: number;
|
|
10
|
+
}[]) => Promise<void>;
|
|
11
|
+
} | undefined;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
import "./bundle.scss";
|
|
15
|
+
declare const ComboBundle: React.FC<BundleProps>;
|
|
16
|
+
export default ComboBundle;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { BundleProps } from "../Bundle";
|
|
3
|
-
declare const FixedBundle: React.FC<BundleProps>;
|
|
4
|
-
export default FixedBundle;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { BundleProps } from "../Bundle";
|
|
3
|
+
declare const FixedBundle: React.FC<BundleProps>;
|
|
4
|
+
export default FixedBundle;
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface Option {
|
|
3
|
-
name: string;
|
|
4
|
-
values: string[];
|
|
5
|
-
}
|
|
6
|
-
interface VariantOption {
|
|
7
|
-
name: string;
|
|
8
|
-
type: "color" | "image" | "text";
|
|
9
|
-
values: {
|
|
10
|
-
name: string;
|
|
11
|
-
value: string;
|
|
12
|
-
}[];
|
|
13
|
-
}
|
|
14
|
-
interface VariantOptions {
|
|
15
|
-
options: VariantOption[];
|
|
16
|
-
}
|
|
17
|
-
interface ProductVariant {
|
|
18
|
-
node: {
|
|
19
|
-
id: string;
|
|
20
|
-
title: string;
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
interface Product {
|
|
24
|
-
options: Option[];
|
|
25
|
-
variants: {
|
|
26
|
-
edges: ProductVariant[];
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
interface ProductVariantSelectorProps {
|
|
30
|
-
product: Product;
|
|
31
|
-
variantOptions?: VariantOptions;
|
|
32
|
-
selectedVariants: string[];
|
|
33
|
-
onVariantChange: (variantId: string) => void;
|
|
34
|
-
variantType?: string;
|
|
35
|
-
variantId?: string;
|
|
36
|
-
primaryProductId?: string;
|
|
37
|
-
}
|
|
38
|
-
export declare const ProductVariantSelector: React.FC<ProductVariantSelectorProps>;
|
|
39
|
-
export {};
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface Option {
|
|
3
|
+
name: string;
|
|
4
|
+
values: string[];
|
|
5
|
+
}
|
|
6
|
+
interface VariantOption {
|
|
7
|
+
name: string;
|
|
8
|
+
type: "color" | "image" | "text";
|
|
9
|
+
values: {
|
|
10
|
+
name: string;
|
|
11
|
+
value: string;
|
|
12
|
+
}[];
|
|
13
|
+
}
|
|
14
|
+
interface VariantOptions {
|
|
15
|
+
options: VariantOption[];
|
|
16
|
+
}
|
|
17
|
+
interface ProductVariant {
|
|
18
|
+
node: {
|
|
19
|
+
id: string;
|
|
20
|
+
title: string;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
interface Product {
|
|
24
|
+
options: Option[];
|
|
25
|
+
variants: {
|
|
26
|
+
edges: ProductVariant[];
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
interface ProductVariantSelectorProps {
|
|
30
|
+
product: Product;
|
|
31
|
+
variantOptions?: VariantOptions;
|
|
32
|
+
selectedVariants: string[];
|
|
33
|
+
onVariantChange: (variantId: string) => void;
|
|
34
|
+
variantType?: string;
|
|
35
|
+
variantId?: string;
|
|
36
|
+
primaryProductId?: string;
|
|
37
|
+
}
|
|
38
|
+
export declare const ProductVariantSelector: React.FC<ProductVariantSelectorProps>;
|
|
39
|
+
export {};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { ProductData, VariantOptions } from "../Bundle";
|
|
3
|
-
interface ProductWithIndex {
|
|
4
|
-
product: ProductData;
|
|
5
|
-
index: number;
|
|
6
|
-
}
|
|
7
|
-
interface VariantSelectorModalProps {
|
|
8
|
-
productsWithIndices: ProductWithIndex[];
|
|
9
|
-
isOpen: boolean;
|
|
10
|
-
onClose: () => void;
|
|
11
|
-
variantOptions?: VariantOptions;
|
|
12
|
-
cta: {
|
|
13
|
-
textColor: string;
|
|
14
|
-
backgroundColor: string;
|
|
15
|
-
};
|
|
16
|
-
primaryProductId?: string;
|
|
17
|
-
variantId?: string;
|
|
18
|
-
onVariantChange: (index: number, variantId: string) => void;
|
|
19
|
-
handleAddToCart: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => Promise<void>;
|
|
20
|
-
}
|
|
21
|
-
declare const VariantSelectorModal: React.FC<VariantSelectorModalProps>;
|
|
22
|
-
export default VariantSelectorModal;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ProductData, VariantOptions } from "../Bundle";
|
|
3
|
+
interface ProductWithIndex {
|
|
4
|
+
product: ProductData;
|
|
5
|
+
index: number;
|
|
6
|
+
}
|
|
7
|
+
interface VariantSelectorModalProps {
|
|
8
|
+
productsWithIndices: ProductWithIndex[];
|
|
9
|
+
isOpen: boolean;
|
|
10
|
+
onClose: () => void;
|
|
11
|
+
variantOptions?: VariantOptions;
|
|
12
|
+
cta: {
|
|
13
|
+
textColor: string;
|
|
14
|
+
backgroundColor: string;
|
|
15
|
+
};
|
|
16
|
+
primaryProductId?: string;
|
|
17
|
+
variantId?: string;
|
|
18
|
+
onVariantChange: (index: number, variantId: string) => void;
|
|
19
|
+
handleAddToCart: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => Promise<void>;
|
|
20
|
+
}
|
|
21
|
+
declare const VariantSelectorModal: React.FC<VariantSelectorModalProps>;
|
|
22
|
+
export default VariantSelectorModal;
|