yt-uikit 0.10.63 → 0.10.65-progress-css.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. package/README.md +94 -94
  2. package/dist/esm/assets/confetti.d.ts +2 -2
  3. package/dist/esm/atoms/bundleBuilderProductDetailsAtom.d.ts +4 -4
  4. package/dist/esm/atoms/cartDataAtom.d.ts +3 -3
  5. package/dist/esm/atoms/cartLoadingAtom.d.ts +23 -23
  6. package/dist/esm/atoms/cartTimer.d.ts +2 -2
  7. package/dist/esm/atoms/dateAtom.d.ts +1 -1
  8. package/dist/esm/atoms/freebieClaimModalAtom.d.ts +7 -7
  9. package/dist/esm/atoms/giftWrap.d.ts +2 -2
  10. package/dist/esm/atoms/gstCompanyNameAtom.d.ts +1 -1
  11. package/dist/esm/atoms/gstInputAtom.d.ts +1 -1
  12. package/dist/esm/atoms/maxQtyErrorAtom.d.ts +3 -3
  13. package/dist/esm/atoms/multiClaimSelectionAtom.d.ts +28 -28
  14. package/dist/esm/atoms/noteInputAtom.d.ts +3 -3
  15. package/dist/esm/atoms/postalCodeAtom.d.ts +1 -1
  16. package/dist/esm/atoms/shippingAtom.d.ts +8 -8
  17. package/dist/esm/atoms/showGSTInputAtom.d.ts +1 -1
  18. package/dist/esm/atoms/variantSelectionModalAtom.d.ts +33 -33
  19. package/dist/esm/components/BundleBlock/Bundle.d.ts +467 -466
  20. package/dist/esm/components/BundleBlock/BundleBuilder/BundleBuilder.d.ts +52 -52
  21. package/dist/esm/components/BundleBlock/BundleBuilder/ResponsiveBgImage.d.ts +9 -9
  22. package/dist/esm/components/BundleBlock/BundleBuilder/SortAndFilter.d.ts +74 -74
  23. package/dist/esm/components/BundleBlock/BundleBuilder/VariantOptionsModal.d.ts +30 -30
  24. package/dist/esm/components/BundleBlock/BundleBuilder/bundleBuilder.style.d.ts +37 -37
  25. package/dist/esm/components/BundleBlock/BundleBuilderTracker/BundleBuilderTracker.d.ts +56 -56
  26. package/dist/esm/components/BundleBlock/BundleBuilderTracker/bundleBuilderTracker.style.d.ts +77 -77
  27. package/dist/esm/components/BundleBlock/BundleLoaderModal.d.ts +7 -7
  28. package/dist/esm/components/BundleBlock/BundleProductDetailsModal/BundleProductDetailsModal.d.ts +45 -45
  29. package/dist/esm/components/BundleBlock/BundleProductDetailsModal/bundleProductDetailsModal.style.d.ts +10 -10
  30. package/dist/esm/components/BundleBlock/CartATCLoader.d.ts +12 -12
  31. package/dist/esm/components/BundleBlock/CollectionBundle/CategoryFilter.d.ts +10 -10
  32. package/dist/esm/components/BundleBlock/CollectionBundle/ColllectionBundle.d.ts +133 -133
  33. package/dist/esm/components/BundleBlock/CollectionBundle/ProductDetailsModal.d.ts +16 -16
  34. package/dist/esm/components/BundleBlock/ComboBundle.d.ts +17 -17
  35. package/dist/esm/components/BundleBlock/ErrorToast.d.ts +10 -10
  36. package/dist/esm/components/BundleBlock/FixedBundle/FixedBundle.d.ts +4 -4
  37. package/dist/esm/components/BundleBlock/FixedBundle/SeparateVariantOptions.d.ts +47 -47
  38. package/dist/esm/components/BundleBlock/FixedBundle/VariantSelectorModal.d.ts +23 -23
  39. package/dist/esm/components/BundleBlock/FixedBundle/fixedBundle.style.d.ts +81 -81
  40. package/dist/esm/components/BundleBlock/Loader.d.ts +5 -5
  41. package/dist/esm/components/BundleBlock/MixAndMatchBundle/MixAndMatchBundle.d.ts +9 -9
  42. package/dist/esm/components/BundleBlock/MixAndMatchBundle/mixAndMatchBundle.style.d.ts +86 -86
  43. package/dist/esm/components/BundleBlock/PersonalizationForm/PersonalizationForm.d.ts +35 -35
  44. package/dist/esm/components/BundleBlock/PersonalizationForm/PersonalizationFormModal.d.ts +24 -24
  45. package/dist/esm/components/BundleBlock/VolumeBundle/VolumeBundle.d.ts +27 -27
  46. package/dist/esm/components/BundleBlock/VolumeBundle/volumeBundle.style.d.ts +100 -100
  47. package/dist/esm/components/BundleBlock/index.d.ts +1 -1
  48. package/dist/esm/components/Cart/ApplyCoupon.d.ts +13 -13
  49. package/dist/esm/components/Cart/Bundle.d.ts +6 -6
  50. package/dist/esm/components/Cart/Cart.d.ts +261 -261
  51. package/dist/esm/components/Cart/CartDrawer.d.ts +34 -34
  52. package/dist/esm/components/Cart/CartOffersCarousel.d.ts +48 -48
  53. package/dist/esm/components/Cart/CartProductsList.d.ts +48 -48
  54. package/dist/esm/components/Cart/CartTimer.d.ts +8 -8
  55. package/dist/esm/components/Cart/CheckoutSection.d.ts +48 -48
  56. package/dist/esm/components/Cart/CouponSelection.d.ts +18 -18
  57. package/dist/esm/components/Cart/DatePicker.d.ts +10 -10
  58. package/dist/esm/components/Cart/EmptyCart.d.ts +34 -34
  59. package/dist/esm/components/Cart/FloatingCart.d.ts +24 -24
  60. package/dist/esm/components/Cart/FooterSections.d.ts +6 -6
  61. package/dist/esm/components/Cart/FreebieClaimManager.d.ts +18 -18
  62. package/dist/esm/components/Cart/FreebieClaimOverlay.d.ts +18 -18
  63. package/dist/esm/components/Cart/FreebieClaimOverlayCard.d.ts +13 -13
  64. package/dist/esm/components/Cart/FreebieClaimSection.d.ts +18 -18
  65. package/dist/esm/components/Cart/FreebieClaimSectionCard.d.ts +19 -19
  66. package/dist/esm/components/Cart/GSTSection.d.ts +15 -15
  67. package/dist/esm/components/Cart/GiftWrap.d.ts +15 -15
  68. package/dist/esm/components/Cart/InlineCartOfferInfoText.d.ts +10 -10
  69. package/dist/esm/components/Cart/LoyaltyAppliedCTA.d.ts +14 -14
  70. package/dist/esm/components/Cart/LoyaltyApplyCTA.d.ts +15 -15
  71. package/dist/esm/components/Cart/LoyaltyBadge.d.ts +11 -11
  72. package/dist/esm/components/Cart/LoyaltyGuestCTA.d.ts +17 -17
  73. package/dist/esm/components/Cart/MultiStepProgressBar/CheckpointConfetti.d.ts +11 -11
  74. package/dist/esm/components/Cart/MultiStepProgressBar/CheckpointIcon.d.ts +3 -3
  75. package/dist/esm/components/Cart/MultiStepProgressBar/CheckpointTooltip.d.ts +3 -3
  76. package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepIcon.d.ts +9 -9
  77. package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepProgressBar.d.ts +5 -5
  78. package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepProgressBar.styled.d.ts +45 -45
  79. package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepUtils.d.ts +6 -6
  80. package/dist/esm/components/Cart/MultiStepProgressBar/MultiTierProgressBar.d.ts +4 -4
  81. package/dist/esm/components/Cart/MultiStepProgressBar/MutiTierNextRewardMessage.d.ts +3 -3
  82. package/dist/esm/components/Cart/MultiStepProgressBar/NextRewardMessage.d.ts +3 -3
  83. package/dist/esm/components/Cart/MultiStepProgressBar/SingleTierProgressBar.d.ts +4 -4
  84. package/dist/esm/components/Cart/MultiStepProgressBar/SingleTierProgressBar.styled.d.ts +22 -22
  85. package/dist/esm/components/Cart/MultiStepProgressBar/SingletTierNextRewardMessage.d.ts +3 -3
  86. package/dist/esm/components/Cart/MultiStepProgressBar/types.d.ts +55 -55
  87. package/dist/esm/components/Cart/NextFreebieRow.d.ts +21 -21
  88. package/dist/esm/components/Cart/NoteSection.d.ts +8 -8
  89. package/dist/esm/components/Cart/ProductCard.d.ts +31 -31
  90. package/dist/esm/components/Cart/ProductRecCard.d.ts +20 -20
  91. package/dist/esm/components/Cart/ProductRecList.d.ts +23 -23
  92. package/dist/esm/components/Cart/ProgressBarCartLoader.d.ts +7 -7
  93. package/dist/esm/components/Cart/QuantitySelector.d.ts +12 -12
  94. package/dist/esm/components/Cart/RegionSpecificDelivery.d.ts +17 -17
  95. package/dist/esm/components/Cart/RewardPointsPreview.d.ts +12 -12
  96. package/dist/esm/components/Cart/StandardDelivery.d.ts +11 -11
  97. package/dist/esm/components/Cart/StealDealSection.d.ts +15 -15
  98. package/dist/esm/components/Cart/StickyCart.d.ts +64 -64
  99. package/dist/esm/components/Cart/SubtotalSection.d.ts +13 -13
  100. package/dist/esm/components/Cart/VariantSelectionPopup/DesktopVariantPopup.d.ts +20 -20
  101. package/dist/esm/components/Cart/VariantSelectionPopup/DesktopVariantPopup.styled.d.ts +60 -60
  102. package/dist/esm/components/Cart/VariantSelectionPopup/MobileVariantPopover.d.ts +20 -20
  103. package/dist/esm/components/Cart/index.d.ts +1 -1
  104. package/dist/esm/components/Loyalty/ActiveSessionOverlay.d.ts +8 -8
  105. package/dist/esm/components/Loyalty/BubbleLauncher.d.ts +14 -14
  106. package/dist/esm/components/Loyalty/GuestDesktop.d.ts +5 -5
  107. package/dist/esm/components/Loyalty/GuestDesktopWithoutImage.d.ts +7 -7
  108. package/dist/esm/components/Loyalty/GuestMobile.d.ts +6 -6
  109. package/dist/esm/components/Loyalty/Loader.d.ts +10 -10
  110. package/dist/esm/components/Loyalty/LoyaltyProductCatalog.d.ts +69 -69
  111. package/dist/esm/components/Loyalty/LoyaltyProfile.d.ts +6 -6
  112. package/dist/esm/components/Loyalty/LoyaltyWidget.d.ts +6 -6
  113. package/dist/esm/components/Loyalty/OTPComponent.d.ts +20 -20
  114. package/dist/esm/components/Loyalty/PointEarnBadge.d.ts +15 -15
  115. package/dist/esm/components/Loyalty/RecentTransactions.d.ts +8 -8
  116. package/dist/esm/components/Loyalty/RewardsModal.d.ts +13 -13
  117. package/dist/esm/components/Loyalty/RibbonLauncher.d.ts +12 -12
  118. package/dist/esm/components/Loyalty/StickyLauncher.d.ts +14 -14
  119. package/dist/esm/components/Loyalty/StickyTextLauncher.d.ts +2 -2
  120. package/dist/esm/components/Loyalty/Toast.d.ts +7 -7
  121. package/dist/esm/components/Loyalty/VIPTiersScreen.d.ts +11 -11
  122. package/dist/esm/components/Loyalty/WTRCoupon.d.ts +13 -13
  123. package/dist/esm/components/Loyalty/WaysToEarn.d.ts +33 -33
  124. package/dist/esm/components/Loyalty/WaysToRedeem.d.ts +106 -106
  125. package/dist/esm/components/Loyalty/index.d.ts +7 -7
  126. package/dist/esm/components/Loyalty/loyaltyLauncher.d.ts +19 -19
  127. package/dist/esm/components/Loyalty/styles/ActiveSession.styles.d.ts +3 -3
  128. package/dist/esm/components/Loyalty/styles/DobPopup.styles.d.ts +3 -3
  129. package/dist/esm/components/Loyalty/styles/PointEarnBadge.styles.d.ts +3 -3
  130. package/dist/esm/components/Loyalty/styles/RecentTransactions.styles.d.ts +6 -6
  131. package/dist/esm/components/Loyalty/styles/VIPTiers.styles.d.ts +4 -4
  132. package/dist/esm/components/Loyalty/styles/WaysToRedeem.styles.d.ts +5 -5
  133. package/dist/esm/components/Loyalty/styles/shared.styles.d.ts +3 -3
  134. package/dist/esm/components/Loyalty/styles.d.ts +23 -23
  135. package/dist/esm/components/Loyalty/types.d.ts +414 -414
  136. package/dist/esm/components/LoyaltyPageBlock/LoyaltyPageBlock.d.ts +160 -160
  137. package/dist/esm/components/Nudge/LeadGenerationNudge.d.ts +15 -15
  138. package/dist/esm/components/Nudge/Nudge.d.ts +40 -40
  139. package/dist/esm/components/Nudge/index.d.ts +1 -1
  140. package/dist/esm/components/ProductOffersBlock/ProductOffersCoupon.d.ts +12 -12
  141. package/dist/esm/components/ProductOffersBlock/ProductOffersList.d.ts +12 -12
  142. package/dist/esm/components/ProductOffersBlock/ProductOffersTermsMobilePopover.d.ts +10 -10
  143. package/dist/esm/components/ProductOffersBlock/ProductOffersTermsPopup.d.ts +10 -10
  144. package/dist/esm/components/ProductOffersBlock/ProductsOffers.d.ts +42 -42
  145. package/dist/esm/components/SpinnerWheel/SpinnerWheel.d.ts +23 -23
  146. package/dist/esm/components/SpinnerWheel/WheelSection.d.ts +9 -9
  147. package/dist/esm/components/SpinnerWheel/index.d.ts +1 -1
  148. package/dist/esm/components/index.d.ts +16 -16
  149. package/dist/esm/index.d.ts +1 -1
  150. package/dist/esm/index.js +129 -129
  151. package/dist/esm/utils/converter.d.ts +3 -3
  152. package/dist/esm/utils/customVariantOptions.d.ts +21 -21
  153. package/dist/esm/utils/freebieProductUtils.d.ts +39 -39
  154. package/dist/esm/utils/freebieUtils.d.ts +11 -11
  155. package/dist/esm/utils/index.d.ts +16 -16
  156. package/dist/esm/utils/safeguardDOM.d.ts +5 -5
  157. package/dist/esm/utils/shopifyAtcBridge.d.ts +43 -43
  158. package/dist/esm/utils/useMediaQuery.d.ts +1 -1
  159. package/package.json +98 -98
  160. /package/dist/esm/{confetti-f3502561.js → confetti-89678a6f.js} +0 -0
@@ -1,55 +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
- }
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
+ }
@@ -1,21 +1,21 @@
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
- criteria?: string;
10
- quantityThreshold?: number;
11
- };
12
- export type freebieMilestoneProps = {
13
- enableFreebieMilestone: boolean;
14
- milestoneImage: {
15
- id: string;
16
- path: string;
17
- };
18
- campaignFilter?: string;
19
- };
20
- declare const NextFreebieRow: React.FC<NextFreebieRowProps>;
21
- export default NextFreebieRow;
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
+ criteria?: string;
10
+ quantityThreshold?: number;
11
+ };
12
+ export type freebieMilestoneProps = {
13
+ enableFreebieMilestone: boolean;
14
+ milestoneImage: {
15
+ id: string;
16
+ path: string;
17
+ };
18
+ campaignFilter?: string;
19
+ };
20
+ declare const NextFreebieRow: React.FC<NextFreebieRowProps>;
21
+ export default NextFreebieRow;
@@ -1,8 +1,8 @@
1
- import React from "react";
2
- import "./NoteSectionStyles.scss";
3
- type NoteSectionProps = {
4
- note?: string;
5
- noteSectionTitle?: string;
6
- };
7
- declare const NoteSection: React.FC<NoteSectionProps>;
8
- export default NoteSection;
1
+ import React from "react";
2
+ import "./NoteSectionStyles.scss";
3
+ type NoteSectionProps = {
4
+ note?: string;
5
+ noteSectionTitle?: string;
6
+ };
7
+ declare const NoteSection: React.FC<NoteSectionProps>;
8
+ export default NoteSection;
@@ -1,31 +1,31 @@
1
- import React from "react";
2
- declare const _default: React.MemoExoticComponent<({ 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, isLargeScreen, }: {
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 | undefined) => 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
- isLargeScreen?: boolean | undefined;
30
- }) => React.JSX.Element>;
31
- export default _default;
1
+ import React from "react";
2
+ declare const _default: React.MemoExoticComponent<({ 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, isLargeScreen, }: {
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 | undefined) => 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
+ isLargeScreen?: boolean | undefined;
30
+ }) => React.JSX.Element>;
31
+ export default _default;
@@ -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 _default: React.NamedExoticComponent<ProductRecCardProps>;
20
- export default _default;
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 _default: React.NamedExoticComponent<ProductRecCardProps>;
20
+ export default _default;
@@ -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,12 +1,12 @@
1
- import React from "react";
2
- type RewardPointsPreviewProps = {
3
- loyaltyIcon?: string;
4
- backgroundSubdued?: string;
5
- primaryTextColor?: string;
6
- orderCreditType?: string;
7
- orderCreditValue?: number;
8
- coinName?: string;
9
- rewardMultiplier?: number | null;
10
- };
11
- declare const RewardPointsPreview: React.FC<RewardPointsPreviewProps>;
12
- export default RewardPointsPreview;
1
+ import React from "react";
2
+ type RewardPointsPreviewProps = {
3
+ loyaltyIcon?: string;
4
+ backgroundSubdued?: string;
5
+ primaryTextColor?: string;
6
+ orderCreditType?: string;
7
+ orderCreditValue?: number;
8
+ coinName?: string;
9
+ rewardMultiplier?: number | null;
10
+ };
11
+ declare const RewardPointsPreview: React.FC<RewardPointsPreviewProps>;
12
+ 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,15 +1,15 @@
1
- import React from "react";
2
- import { FreebieRewardContext } from "../../utils/freebieUtils";
3
- interface StealDealSectionProps {
4
- stealDealCheckpoints: any[];
5
- stealDealProducts: any[];
6
- freeProductAdjustedCartTotal?: number;
7
- effectiveQuantityForProgressBar?: number;
8
- addFreebieToCart?: (variantId: string, originalAllowedVariantIds?: string[], rewardContext?: FreebieRewardContext) => Promise<void>;
9
- freebiesInCart: string[];
10
- themeColor?: string;
11
- primaryTextColor?: string;
12
- secondaryTextColor?: string;
13
- }
14
- declare const StealDealSection: React.FC<StealDealSectionProps>;
15
- export default StealDealSection;
1
+ import React from "react";
2
+ import { FreebieRewardContext } from "../../utils/freebieUtils";
3
+ interface StealDealSectionProps {
4
+ stealDealCheckpoints: any[];
5
+ stealDealProducts: any[];
6
+ freeProductAdjustedCartTotal?: number;
7
+ effectiveQuantityForProgressBar?: number;
8
+ addFreebieToCart?: (variantId: string, originalAllowedVariantIds?: string[], rewardContext?: FreebieRewardContext) => Promise<void>;
9
+ freebiesInCart: string[];
10
+ themeColor?: string;
11
+ primaryTextColor?: string;
12
+ secondaryTextColor?: string;
13
+ }
14
+ declare const StealDealSection: React.FC<StealDealSectionProps>;
15
+ 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;