yt-uikit 0.9.13 → 0.9.15-loyalty-patch.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.
Files changed (123) hide show
  1. package/README.md +94 -94
  2. package/dist/esm/atoms/bundleBuilderProductDetailsAtom.d.ts +4 -4
  3. package/dist/esm/atoms/cartDataAtom.d.ts +3 -3
  4. package/dist/esm/atoms/cartLoadingAtom.d.ts +22 -22
  5. package/dist/esm/atoms/cartTimer.d.ts +2 -2
  6. package/dist/esm/atoms/dateAtom.d.ts +1 -1
  7. package/dist/esm/atoms/freebieClaimModalAtom.d.ts +7 -7
  8. package/dist/esm/atoms/giftWrap.d.ts +2 -2
  9. package/dist/esm/atoms/gstCompanyNameAtom.d.ts +1 -1
  10. package/dist/esm/atoms/gstInputAtom.d.ts +1 -1
  11. package/dist/esm/atoms/maxQtyErrorAtom.d.ts +3 -3
  12. package/dist/esm/atoms/multiClaimSelectionAtom.d.ts +25 -25
  13. package/dist/esm/atoms/noteInputAtom.d.ts +3 -3
  14. package/dist/esm/atoms/postalCodeAtom.d.ts +1 -1
  15. package/dist/esm/atoms/shippingAtom.d.ts +8 -8
  16. package/dist/esm/atoms/showGSTInputAtom.d.ts +1 -1
  17. package/dist/esm/atoms/variantSelectionModalAtom.d.ts +25 -25
  18. package/dist/esm/components/BundleBlock/Bundle.d.ts +446 -446
  19. package/dist/esm/components/BundleBlock/BundleBuilder/BundleBuilder.d.ts +50 -50
  20. package/dist/esm/components/BundleBlock/BundleBuilder/ResponsiveBgImage.d.ts +9 -9
  21. package/dist/esm/components/BundleBlock/BundleBuilder/SortAndFilter.d.ts +74 -74
  22. package/dist/esm/components/BundleBlock/BundleBuilder/VariantOptionsModal.d.ts +28 -28
  23. package/dist/esm/components/BundleBlock/BundleBuilder/bundleBuilder.style.d.ts +37 -37
  24. package/dist/esm/components/BundleBlock/BundleBuilderTracker/BundleBuilderTracker.d.ts +55 -55
  25. package/dist/esm/components/BundleBlock/BundleBuilderTracker/bundleBuilderTracker.style.d.ts +77 -77
  26. package/dist/esm/components/BundleBlock/BundleProductDetailsModal/BundleProductDetailsModal.d.ts +37 -37
  27. package/dist/esm/components/BundleBlock/BundleProductDetailsModal/bundleProductDetailsModal.style.d.ts +10 -10
  28. package/dist/esm/components/BundleBlock/CollectionBundle/CategoryFilter.d.ts +10 -10
  29. package/dist/esm/components/BundleBlock/CollectionBundle/ColllectionBundle.d.ts +127 -127
  30. package/dist/esm/components/BundleBlock/CollectionBundle/ProductDetailsModal.d.ts +16 -16
  31. package/dist/esm/components/BundleBlock/ComboBundle.d.ts +17 -17
  32. package/dist/esm/components/BundleBlock/FixedBundle/FixedBundle.d.ts +4 -4
  33. package/dist/esm/components/BundleBlock/FixedBundle/SeparateVariantOptions.d.ts +45 -45
  34. package/dist/esm/components/BundleBlock/FixedBundle/VariantSelectorModal.d.ts +22 -22
  35. package/dist/esm/components/BundleBlock/FixedBundle/fixedBundle.style.d.ts +80 -80
  36. package/dist/esm/components/BundleBlock/Loader.d.ts +5 -5
  37. package/dist/esm/components/BundleBlock/MixAndMatchBundle/MixAndMatchBundle.d.ts +9 -9
  38. package/dist/esm/components/BundleBlock/MixAndMatchBundle/mixAndMatchBundle.style.d.ts +86 -86
  39. package/dist/esm/components/BundleBlock/PersonalizationForm/PersonalizationForm.d.ts +35 -35
  40. package/dist/esm/components/BundleBlock/PersonalizationForm/PersonalizationFormModal.d.ts +24 -24
  41. package/dist/esm/components/BundleBlock/VolumeBundle/VolumeBundle.d.ts +27 -27
  42. package/dist/esm/components/BundleBlock/VolumeBundle/volumeBundle.style.d.ts +80 -80
  43. package/dist/esm/components/BundleBlock/index.d.ts +1 -1
  44. package/dist/esm/components/Cart/ApplyCoupon.d.ts +13 -13
  45. package/dist/esm/components/Cart/Bundle.d.ts +6 -6
  46. package/dist/esm/components/Cart/Cart.d.ts +246 -246
  47. package/dist/esm/components/Cart/CartDrawer.d.ts +26 -26
  48. package/dist/esm/components/Cart/CartOffersCarousel.d.ts +48 -48
  49. package/dist/esm/components/Cart/CartProductsList.d.ts +45 -45
  50. package/dist/esm/components/Cart/CartTimer.d.ts +8 -8
  51. package/dist/esm/components/Cart/CheckoutSection.d.ts +47 -47
  52. package/dist/esm/components/Cart/CouponSelection.d.ts +17 -17
  53. package/dist/esm/components/Cart/DatePicker.d.ts +10 -10
  54. package/dist/esm/components/Cart/EmptyCart.d.ts +33 -33
  55. package/dist/esm/components/Cart/FloatingCart.d.ts +24 -24
  56. package/dist/esm/components/Cart/FooterSections.d.ts +6 -6
  57. package/dist/esm/components/Cart/FreebieClaimManager.d.ts +17 -17
  58. package/dist/esm/components/Cart/FreebieClaimOverlay.d.ts +17 -17
  59. package/dist/esm/components/Cart/FreebieClaimOverlayCard.d.ts +10 -10
  60. package/dist/esm/components/Cart/FreebieClaimSection.d.ts +17 -17
  61. package/dist/esm/components/Cart/FreebieClaimSectionCard.d.ts +16 -16
  62. package/dist/esm/components/Cart/GSTSection.d.ts +15 -15
  63. package/dist/esm/components/Cart/GiftWrap.d.ts +15 -15
  64. package/dist/esm/components/Cart/InlineCartOfferInfoText.d.ts +10 -10
  65. package/dist/esm/components/Cart/LoyaltyAppliedCTA.d.ts +19 -19
  66. package/dist/esm/components/Cart/LoyaltyApplyCTA.d.ts +18 -18
  67. package/dist/esm/components/Cart/LoyaltyBadge.d.ts +10 -10
  68. package/dist/esm/components/Cart/LoyaltyGuestCTA.d.ts +17 -17
  69. package/dist/esm/components/Cart/MultiStepProgressBar/CheckpointConfetti.d.ts +11 -11
  70. package/dist/esm/components/Cart/MultiStepProgressBar/CheckpointIcon.d.ts +3 -3
  71. package/dist/esm/components/Cart/MultiStepProgressBar/CheckpointTooltip.d.ts +3 -3
  72. package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepIcon.d.ts +9 -9
  73. package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepProgressBar.d.ts +5 -5
  74. package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepProgressBar.styled.d.ts +45 -45
  75. package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepUtils.d.ts +6 -6
  76. package/dist/esm/components/Cart/MultiStepProgressBar/MultiTierProgressBar.d.ts +4 -4
  77. package/dist/esm/components/Cart/MultiStepProgressBar/MutiTierNextRewardMessage.d.ts +3 -3
  78. package/dist/esm/components/Cart/MultiStepProgressBar/NextRewardMessage.d.ts +3 -3
  79. package/dist/esm/components/Cart/MultiStepProgressBar/SingleTierProgressBar.d.ts +4 -4
  80. package/dist/esm/components/Cart/MultiStepProgressBar/SingleTierProgressBar.styled.d.ts +22 -22
  81. package/dist/esm/components/Cart/MultiStepProgressBar/SingletTierNextRewardMessage.d.ts +3 -3
  82. package/dist/esm/components/Cart/MultiStepProgressBar/types.d.ts +55 -55
  83. package/dist/esm/components/Cart/NextFreebieRow.d.ts +19 -19
  84. package/dist/esm/components/Cart/NoteSection.d.ts +8 -8
  85. package/dist/esm/components/Cart/ProductCard.d.ts +30 -30
  86. package/dist/esm/components/Cart/ProductRecCard.d.ts +20 -20
  87. package/dist/esm/components/Cart/ProductRecList.d.ts +23 -23
  88. package/dist/esm/components/Cart/ProgressBarCartLoader.d.ts +7 -7
  89. package/dist/esm/components/Cart/QuantitySelector.d.ts +12 -12
  90. package/dist/esm/components/Cart/RegionSpecificDelivery.d.ts +17 -17
  91. package/dist/esm/components/Cart/RewardPointsPreview.d.ts +10 -10
  92. package/dist/esm/components/Cart/StandardDelivery.d.ts +11 -11
  93. package/dist/esm/components/Cart/StealDealSection.d.ts +14 -14
  94. package/dist/esm/components/Cart/StickyCart.d.ts +64 -64
  95. package/dist/esm/components/Cart/SubtotalSection.d.ts +13 -13
  96. package/dist/esm/components/Cart/VariantSelectionPopup/DesktopVariantPopup.d.ts +19 -19
  97. package/dist/esm/components/Cart/VariantSelectionPopup/DesktopVariantPopup.styled.d.ts +60 -60
  98. package/dist/esm/components/Cart/VariantSelectionPopup/MobileVariantPopover.d.ts +19 -19
  99. package/dist/esm/components/Cart/index.d.ts +1 -1
  100. package/dist/esm/components/Loyalty/Loader.d.ts +10 -10
  101. package/dist/esm/components/Loyalty/LoyaltyProductCatalog.d.ts +60 -60
  102. package/dist/esm/components/Loyalty/index.d.ts +2 -2
  103. package/dist/esm/components/LoyaltyPageBlock/LoyaltyPageBlock.d.ts +64 -64
  104. package/dist/esm/components/Nudge/LeadGenerationNudge.d.ts +15 -15
  105. package/dist/esm/components/Nudge/Nudge.d.ts +40 -40
  106. package/dist/esm/components/Nudge/index.d.ts +1 -1
  107. package/dist/esm/components/ProductOffersBlock/ProductOffersCoupon.d.ts +12 -12
  108. package/dist/esm/components/ProductOffersBlock/ProductOffersList.d.ts +12 -12
  109. package/dist/esm/components/ProductOffersBlock/ProductOffersTermsMobilePopover.d.ts +10 -10
  110. package/dist/esm/components/ProductOffersBlock/ProductOffersTermsPopup.d.ts +10 -10
  111. package/dist/esm/components/ProductOffersBlock/ProductsOffers.d.ts +42 -42
  112. package/dist/esm/components/SpinnerWheel/SpinnerWheel.d.ts +23 -23
  113. package/dist/esm/components/SpinnerWheel/WheelSection.d.ts +9 -9
  114. package/dist/esm/components/SpinnerWheel/index.d.ts +1 -1
  115. package/dist/esm/components/index.d.ts +9 -9
  116. package/dist/esm/index.d.ts +1 -1
  117. package/dist/esm/index.js +97 -97
  118. package/dist/esm/utils/converter.d.ts +2 -2
  119. package/dist/esm/utils/customVariantOptions.d.ts +20 -20
  120. package/dist/esm/utils/freebieProductUtils.d.ts +28 -28
  121. package/dist/esm/utils/freebieUtils.d.ts +5 -5
  122. package/dist/esm/utils/index.d.ts +14 -14
  123. package/package.json +96 -96
@@ -1,30 +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, removeFreebieFromCart, showDeleteOnFreebies, imageAspectSelector, cartComponentsCornerType, cartComponentsCornerRadius, backgroundSubdued, backgroundColor, showDiscountOnMRP, freeLabelText, }: {
3
- product: any;
4
- addCartItem?: ((product: any) => Promise<any>) | undefined;
5
- removeCartItem?: ((product: any) => Promise<any>) | undefined;
6
- handleIncrement?: ((lineItemKey: string | number, newQuantity: number, properties?: {
7
- [key: string]: string;
8
- } | undefined) => Promise<any>) | undefined;
9
- handleDecrement?: ((lineItemKey: string | 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
- removeFreebieFromCart?: ((lineItemKey: string) => Promise<void>) | undefined;
21
- showDeleteOnFreebies?: boolean | undefined;
22
- imageAspectSelector?: "square" | "portrait" | undefined;
23
- cartComponentsCornerType?: "rounded" | "sharp" | undefined;
24
- cartComponentsCornerRadius?: number | undefined;
25
- backgroundSubdued?: string | undefined;
26
- backgroundColor?: string | undefined;
27
- showDiscountOnMRP?: boolean | undefined;
28
- freeLabelText?: string | undefined;
29
- }) => React.JSX.Element;
30
- export default ProductCard;
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, removeFreebieFromCart, showDeleteOnFreebies, imageAspectSelector, cartComponentsCornerType, cartComponentsCornerRadius, backgroundSubdued, backgroundColor, showDiscountOnMRP, freeLabelText, }: {
3
+ product: any;
4
+ addCartItem?: ((product: any) => Promise<any>) | undefined;
5
+ removeCartItem?: ((product: any) => Promise<any>) | undefined;
6
+ handleIncrement?: ((lineItemKey: string | number, newQuantity: number, properties?: {
7
+ [key: string]: string;
8
+ } | undefined) => Promise<any>) | undefined;
9
+ handleDecrement?: ((lineItemKey: string | 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
+ removeFreebieFromCart?: ((lineItemKey: string) => Promise<void>) | undefined;
21
+ showDeleteOnFreebies?: boolean | undefined;
22
+ imageAspectSelector?: "square" | "portrait" | undefined;
23
+ cartComponentsCornerType?: "rounded" | "sharp" | undefined;
24
+ cartComponentsCornerRadius?: number | undefined;
25
+ backgroundSubdued?: string | undefined;
26
+ backgroundColor?: string | undefined;
27
+ showDiscountOnMRP?: boolean | undefined;
28
+ freeLabelText?: string | undefined;
29
+ }) => React.JSX.Element;
30
+ export default ProductCard;
@@ -1,20 +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;
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;
@@ -1,23 +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;
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;
@@ -1,7 +1,7 @@
1
- import { FC } from "react";
2
- interface ProgressBarCartLoaderProps {
3
- $themeColor?: string;
4
- show?: boolean;
5
- }
6
- declare const ProgressBarCartLoader: FC<ProgressBarCartLoaderProps>;
7
- export default ProgressBarCartLoader;
1
+ import { FC } from "react";
2
+ interface ProgressBarCartLoaderProps {
3
+ $themeColor?: string;
4
+ show?: boolean;
5
+ }
6
+ declare const ProgressBarCartLoader: FC<ProgressBarCartLoaderProps>;
7
+ export default ProgressBarCartLoader;
@@ -1,12 +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;
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;
@@ -1,17 +1,17 @@
1
- import React from "react";
2
- import "./StandardDelivery.scss";
3
- interface RegionSpecificDeliveryProps {
4
- title?: string;
5
- backgroundColor?: string;
6
- tag?: string;
7
- postalCodeList?: number[];
8
- themeColor?: string;
9
- themeTextColor?: string;
10
- enableSlotPicker?: boolean;
11
- deliveryHeaderTitle?: string;
12
- deliveryAvailableText?: string;
13
- deliveryNotAvailableText?: string;
14
- disabledDates?: Date[] | Date;
15
- }
16
- declare const RegionSpecificDelivery: React.FC<RegionSpecificDeliveryProps>;
17
- export default RegionSpecificDelivery;
1
+ import React from "react";
2
+ import "./StandardDelivery.scss";
3
+ interface RegionSpecificDeliveryProps {
4
+ title?: string;
5
+ backgroundColor?: string;
6
+ tag?: string;
7
+ postalCodeList?: number[];
8
+ themeColor?: string;
9
+ themeTextColor?: string;
10
+ enableSlotPicker?: boolean;
11
+ deliveryHeaderTitle?: string;
12
+ deliveryAvailableText?: string;
13
+ deliveryNotAvailableText?: string;
14
+ disabledDates?: Date[] | Date;
15
+ }
16
+ declare const RegionSpecificDelivery: React.FC<RegionSpecificDeliveryProps>;
17
+ export default RegionSpecificDelivery;
@@ -1,10 +1,10 @@
1
- import React from "react";
2
- type RewardPointsPreviewProps = {
3
- loyaltyIcon: string;
4
- backgroundSubdued?: string;
5
- primaryTextColor?: string;
6
- pointsRewardRate: number;
7
- rewardMultiplier?: number | null;
8
- };
9
- declare const RewardPointsPreview: React.FC<RewardPointsPreviewProps>;
10
- export default RewardPointsPreview;
1
+ import React from "react";
2
+ type RewardPointsPreviewProps = {
3
+ loyaltyIcon: string;
4
+ backgroundSubdued?: string;
5
+ primaryTextColor?: string;
6
+ pointsRewardRate: number;
7
+ rewardMultiplier?: number | null;
8
+ };
9
+ declare const RewardPointsPreview: React.FC<RewardPointsPreviewProps>;
10
+ export default RewardPointsPreview;
@@ -1,11 +1,11 @@
1
- import React from "react";
2
- import "./StandardDelivery.scss";
3
- type StandardDeliveryProps = {
4
- postalCodeList?: number[];
5
- themeColor?: string;
6
- themeTextColor?: string;
7
- enableSlotPicker?: boolean;
8
- disabledDates?: Date[] | Date;
9
- };
10
- declare const StandardDelivery: ({ postalCodeList, themeColor, themeTextColor, enableSlotPicker, disabledDates, }: StandardDeliveryProps) => React.JSX.Element;
11
- export default StandardDelivery;
1
+ import React from "react";
2
+ import "./StandardDelivery.scss";
3
+ type StandardDeliveryProps = {
4
+ postalCodeList?: number[];
5
+ themeColor?: string;
6
+ themeTextColor?: string;
7
+ enableSlotPicker?: boolean;
8
+ disabledDates?: Date[] | Date;
9
+ };
10
+ declare const StandardDelivery: ({ postalCodeList, themeColor, themeTextColor, enableSlotPicker, disabledDates, }: StandardDeliveryProps) => React.JSX.Element;
11
+ export default StandardDelivery;
@@ -1,14 +1,14 @@
1
- import React from "react";
2
- interface StealDealSectionProps {
3
- stealDealCheckpoints: any[];
4
- stealDealProducts: any[];
5
- freeProductAdjustedCartTotal?: number;
6
- effectiveQuantityForProgressBar?: number;
7
- addFreebieToCart?: (variantId: string, originalAllowedVariantIds?: string[]) => Promise<void>;
8
- freebiesInCart: string[];
9
- themeColor?: string;
10
- primaryTextColor?: string;
11
- secondaryTextColor?: string;
12
- }
13
- declare const StealDealSection: React.FC<StealDealSectionProps>;
14
- export default StealDealSection;
1
+ import React from "react";
2
+ interface StealDealSectionProps {
3
+ stealDealCheckpoints: any[];
4
+ stealDealProducts: any[];
5
+ freeProductAdjustedCartTotal?: number;
6
+ effectiveQuantityForProgressBar?: number;
7
+ addFreebieToCart?: (variantId: string, originalAllowedVariantIds?: string[]) => Promise<void>;
8
+ freebiesInCart: string[];
9
+ themeColor?: string;
10
+ primaryTextColor?: string;
11
+ secondaryTextColor?: string;
12
+ }
13
+ declare const StealDealSection: React.FC<StealDealSectionProps>;
14
+ export default StealDealSection;
@@ -1,64 +1,64 @@
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
- addCartItem?: (product: any, quantity?: number, triggeredFrom?: string, freebieReplace?: boolean) => Promise<any>;
31
- onSetLoading?: (setLoadingFn: (isLoading: boolean, showLoader: boolean, showSkeletonLoader?: boolean, showLoyaltyCtaLoading?: boolean) => void) => void;
32
- themeColor?: string;
33
- themeTextColor?: string;
34
- cartData: any;
35
- isCartOpen: boolean;
36
- setIsCartOpen: (isCartOpen: boolean) => void;
37
- ctaButtonBackgroundColor?: string;
38
- ctaButtonTextColor?: string;
39
- addToStickyCart?: (variantId: string, quantity: number) => Promise<void>;
40
- cartComponentsCornerType?: "rounded" | "sharp";
41
- cartComponentsCornerRadius?: number;
42
- stickyCartCustomizationData?: stickyCartCustomizationDataProps;
43
- checkoutFunction?: (variantId: string, quantity: number) => Promise<void>;
44
- backgroundColor?: string;
45
- primaryTextColor?: string;
46
- comboBundleData?: BundlePayload;
47
- comboBundleAddToCartFunction?: (selectedItemsSubtotal: number, variantIds?: string[], finalBundlePrice?: number, variantIdPriceMap?: {
48
- variantId: string;
49
- price: number;
50
- }[]) => Promise<void>;
51
- volumeBundleCurrentTier?: {
52
- tier: number;
53
- minimumQuantity: number;
54
- title: string;
55
- subtitle: string;
56
- badgeTitle: string;
57
- discountType?: string;
58
- discountValue: number;
59
- };
60
- volumeBundleData?: BundlePayload;
61
- volumeBundleAddToCartFunction?: (originalPrice: number, productIds: string[]) => Promise<void>;
62
- };
63
- declare const StickyAddToCart: ({ showStickyCart, product, addCartItem, onSetLoading, themeColor, cartData, isCartOpen, setIsCartOpen, ctaButtonBackgroundColor, ctaButtonTextColor, addToStickyCart, cartComponentsCornerType, cartComponentsCornerRadius, themeTextColor, stickyCartCustomizationData, checkoutFunction, backgroundColor, primaryTextColor, comboBundleData, comboBundleAddToCartFunction, volumeBundleCurrentTier, volumeBundleData, volumeBundleAddToCartFunction, }: StickyAddToCartProps) => React.JSX.Element | null;
64
- 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
+ addCartItem?: (product: any, quantity?: number, triggeredFrom?: string, freebieReplace?: boolean) => Promise<any>;
31
+ onSetLoading?: (setLoadingFn: (isLoading: boolean, showLoader: boolean, showSkeletonLoader?: boolean, showLoyaltyCtaLoading?: boolean) => void) => void;
32
+ themeColor?: string;
33
+ themeTextColor?: string;
34
+ cartData: any;
35
+ isCartOpen: boolean;
36
+ setIsCartOpen: (isCartOpen: boolean) => void;
37
+ ctaButtonBackgroundColor?: string;
38
+ ctaButtonTextColor?: string;
39
+ addToStickyCart?: (variantId: string, quantity: number) => Promise<void>;
40
+ cartComponentsCornerType?: "rounded" | "sharp";
41
+ cartComponentsCornerRadius?: number;
42
+ stickyCartCustomizationData?: stickyCartCustomizationDataProps;
43
+ checkoutFunction?: (variantId: string, quantity: number) => Promise<void>;
44
+ backgroundColor?: string;
45
+ primaryTextColor?: string;
46
+ comboBundleData?: BundlePayload;
47
+ comboBundleAddToCartFunction?: (selectedItemsSubtotal: number, variantIds?: string[], finalBundlePrice?: number, variantIdPriceMap?: {
48
+ variantId: string;
49
+ price: number;
50
+ }[]) => Promise<void>;
51
+ volumeBundleCurrentTier?: {
52
+ tier: number;
53
+ minimumQuantity: number;
54
+ title: string;
55
+ subtitle: string;
56
+ badgeTitle: string;
57
+ discountType?: string;
58
+ discountValue: number;
59
+ };
60
+ volumeBundleData?: BundlePayload;
61
+ volumeBundleAddToCartFunction?: (originalPrice: number, productIds: string[]) => Promise<void>;
62
+ };
63
+ declare const StickyAddToCart: ({ showStickyCart, product, addCartItem, onSetLoading, themeColor, cartData, isCartOpen, setIsCartOpen, ctaButtonBackgroundColor, ctaButtonTextColor, addToStickyCart, cartComponentsCornerType, cartComponentsCornerRadius, themeTextColor, stickyCartCustomizationData, checkoutFunction, backgroundColor, primaryTextColor, comboBundleData, comboBundleAddToCartFunction, volumeBundleCurrentTier, volumeBundleData, volumeBundleAddToCartFunction, }: StickyAddToCartProps) => React.JSX.Element | null;
64
+ 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,19 +1,19 @@
1
- import React from "react";
2
- type DesktopVariantPopupProps = {
3
- isDev?: boolean;
4
- removeCartItem: (variantId: string, triggeredFrom?: string, ytRequest?: boolean) => Promise<any>;
5
- addCartItem?: (variantId: string, quantity?: number, triggeredFrom?: string, freebieReplace?: boolean, productHandle?: string) => Promise<any>;
6
- getProductDetailsByVariantId?: (handle: string, variantId?: string) => Promise<any>;
7
- themeColor?: string;
8
- cartComponentsCornerType?: "rounded" | "sharp";
9
- cartComponentsCornerRadius?: number;
10
- backgroundColor?: string;
11
- removeFreebieFromCart?: (lineItemKey: string) => Promise<void>;
12
- freebieClaimAddToCart?: (variantId: string, originalAllowedVariantIds?: string[]) => Promise<void>;
13
- stealDealAddToCart?: (variantId: string, originalAllowedVariantIds?: string[]) => Promise<void>;
14
- productClaimCtaButtonText?: string;
15
- backgroundSubdued?: string;
16
- primaryTextColor?: string;
17
- };
18
- declare const DesktopVariantPopup: React.ForwardRefExoticComponent<DesktopVariantPopupProps & React.RefAttributes<HTMLDivElement>>;
19
- export default DesktopVariantPopup;
1
+ import React from "react";
2
+ type DesktopVariantPopupProps = {
3
+ isDev?: boolean;
4
+ removeCartItem: (variantId: string, triggeredFrom?: string, ytRequest?: boolean) => Promise<any>;
5
+ addCartItem?: (variantId: string, quantity?: number, triggeredFrom?: string, freebieReplace?: boolean, productHandle?: string) => Promise<any>;
6
+ getProductDetailsByVariantId?: (handle: string, variantId?: string) => Promise<any>;
7
+ themeColor?: string;
8
+ cartComponentsCornerType?: "rounded" | "sharp";
9
+ cartComponentsCornerRadius?: number;
10
+ backgroundColor?: string;
11
+ removeFreebieFromCart?: (lineItemKey: string) => Promise<void>;
12
+ freebieClaimAddToCart?: (variantId: string, originalAllowedVariantIds?: string[]) => Promise<void>;
13
+ stealDealAddToCart?: (variantId: string, originalAllowedVariantIds?: string[]) => Promise<void>;
14
+ productClaimCtaButtonText?: string;
15
+ backgroundSubdued?: string;
16
+ primaryTextColor?: string;
17
+ };
18
+ declare const DesktopVariantPopup: React.ForwardRefExoticComponent<DesktopVariantPopupProps & React.RefAttributes<HTMLDivElement>>;
19
+ export default DesktopVariantPopup;