yt-uikit 0.7.420-offerTierCustomTextPr.0 → 0.7.420

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 (30) hide show
  1. package/dist/esm/components/BundleBlock/Bundle.d.ts +1 -1
  2. package/dist/esm/components/BundleBlock/BundleBuilderTracker/BundleBuilderTracker.d.ts +1 -1
  3. package/dist/esm/components/BundleBlock/CollectionBundle/ColllectionBundle.d.ts +2 -0
  4. package/dist/esm/components/ProductOffersBlock/ProductOffersCoupon.d.ts +12 -0
  5. package/dist/esm/components/ProductOffersBlock/ProductOffersList.d.ts +12 -0
  6. package/dist/esm/components/ProductOffersBlock/ProductOffersTermsMobilePopover.d.ts +10 -0
  7. package/dist/esm/components/ProductOffersBlock/ProductOffersTermsPopup.d.ts +10 -0
  8. package/dist/esm/components/ProductOffersBlock/ProductsOffers.d.ts +32 -0
  9. package/dist/esm/index.js +65 -65
  10. package/dist/esm/types/components/BundleBlock/Bundle.d.ts +1 -1
  11. package/dist/esm/types/components/BundleBlock/BundleBuilderTracker/BundleBuilderTracker.d.ts +1 -1
  12. package/dist/esm/types/components/BundleBlock/CollectionBundle/ColllectionBundle.d.ts +2 -0
  13. package/dist/esm/types/components/ProductOffersBlock/ProductOffersCoupon.d.ts +12 -0
  14. package/dist/esm/types/components/ProductOffersBlock/ProductOffersList.d.ts +12 -0
  15. package/dist/esm/types/components/ProductOffersBlock/ProductOffersTermsMobilePopover.d.ts +10 -0
  16. package/dist/esm/types/components/ProductOffersBlock/ProductOffersTermsPopup.d.ts +10 -0
  17. package/dist/esm/types/components/ProductOffersBlock/ProductsOffers.d.ts +32 -0
  18. package/package.json +1 -1
  19. package/dist/esm/components/BundleBlock/ProductGridSkeleton/ProductGridSkeleton.d.ts +0 -5
  20. package/dist/esm/components/BundleBlock/VolumeBundle/temp.d.ts +0 -3
  21. package/dist/esm/components/Cart/FreebieClaim.d.ts +0 -17
  22. package/dist/esm/components/Cart/VariantSelectionPopup/MobileVariantPopover.styled.d.ts +0 -49
  23. package/dist/esm/hooks/useShadowConfetti.d.ts +0 -1
  24. package/dist/esm/shadowStyles.d.ts +0 -1
  25. package/dist/esm/types/components/BundleBlock/ProductGridSkeleton/ProductGridSkeleton.d.ts +0 -5
  26. package/dist/esm/types/components/BundleBlock/VolumeBundle/temp.d.ts +0 -3
  27. package/dist/esm/types/components/Cart/FreebieClaim.d.ts +0 -17
  28. package/dist/esm/types/components/Cart/VariantSelectionPopup/MobileVariantPopover.styled.d.ts +0 -49
  29. package/dist/esm/types/hooks/useShadowConfetti.d.ts +0 -1
  30. package/dist/esm/types/shadowStyles.d.ts +0 -1
@@ -374,7 +374,7 @@ export type BundleProps = {
374
374
  };
375
375
  export declare const currencyPrice: (price: number | string | undefined) => string | undefined;
376
376
  export declare const getCurrencySymbol: (genSymbol: string, storeCurrencyCode?: string) => string;
377
- export declare const optimiseImage: (url: string) => string;
377
+ export declare const optimiseImage: (url: string, width?: number) => string;
378
378
  export declare const handleAddToBundle: (variantId: string, product: ProductDetails, quantity: number, selectedItems: {
379
379
  variantId: string;
380
380
  product: ProductDetails;
@@ -7,7 +7,7 @@ type BundleBuilderTrackerProps = {
7
7
  offerTier?: {
8
8
  tier: number;
9
9
  minimumQuantity: number;
10
- discountValue: number | string;
10
+ discountValue: number;
11
11
  }[];
12
12
  productTier?: {
13
13
  tier: number;
@@ -92,6 +92,8 @@ export type BundleConfig = {
92
92
  hideSelectedProducts: boolean;
93
93
  allowMultipleQty: boolean;
94
94
  hideOutOfStockProducts: boolean;
95
+ bundleRedirection: "cart-drawer" | "checkout";
96
+ checkoutPartner: "shopify" | "razorpay" | "shiprocket" | "gokwik" | "breeze" | "zecpay" | "shopflo";
95
97
  };
96
98
  };
97
99
  interface CollectionBundleProps {
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ import { CartCheckpoint } from "./ProductsOffers";
3
+ import { ProductsOffersConfigType } from "./ProductsOffers";
4
+ interface ProductOffersCouponProps {
5
+ offersToShow: CartCheckpoint[];
6
+ offersConfig?: ProductsOffersConfigType | null;
7
+ getOfferCardMessage: (offer: CartCheckpoint) => string;
8
+ setSelectedOffer: (offer: CartCheckpoint | null) => void;
9
+ setShowPopup: (show: boolean) => void;
10
+ }
11
+ export declare const ProductOffersCoupon: ({ offersToShow, offersConfig, getOfferCardMessage, setSelectedOffer, setShowPopup, }: ProductOffersCouponProps) => React.JSX.Element;
12
+ export {};
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ import { CartCheckpoint } from "./ProductsOffers";
3
+ import { ProductsOffersConfigType } from "./ProductsOffers";
4
+ interface ProductOffersListProps {
5
+ offersToShow: CartCheckpoint[];
6
+ offersConfig: ProductsOffersConfigType;
7
+ getOfferCardMessage: (offer: CartCheckpoint) => string;
8
+ setSelectedOffer: (offer: CartCheckpoint | null) => void;
9
+ setShowPopup: (show: boolean) => void;
10
+ }
11
+ export declare const ProductOffersList: ({ offersToShow, offersConfig, getOfferCardMessage, setSelectedOffer, setShowPopup, }: ProductOffersListProps) => React.JSX.Element;
12
+ export {};
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import { CartCheckpoint, OfferTermsAndConditions } from "./ProductsOffers";
3
+ import { ProductsOffersConfigType } from "./ProductsOffers";
4
+ export declare const ProductOffersTermsMobilePopover: ({ showPopup, selectedOffer, selectedOfferTerms, onClose, offersConfig, }: {
5
+ showPopup: boolean;
6
+ selectedOffer: CartCheckpoint | null;
7
+ selectedOfferTerms: OfferTermsAndConditions | null;
8
+ onClose: () => void;
9
+ offersConfig?: ProductsOffersConfigType | null | undefined;
10
+ }) => React.ReactPortal | null;
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ import { CartCheckpoint, OfferTermsAndConditions } from "./ProductsOffers";
3
+ import { ProductsOffersConfigType } from "./ProductsOffers";
4
+ export declare const ProductOffersTermsPopup: ({ showPopup, selectedOffer, selectedOfferTerms, onClose, offersConfig, }: {
5
+ showPopup: boolean;
6
+ selectedOffer: CartCheckpoint | null;
7
+ selectedOfferTerms: OfferTermsAndConditions | null;
8
+ onClose: () => void;
9
+ offersConfig?: ProductsOffersConfigType | null | undefined;
10
+ }) => React.ReactPortal | null;
@@ -0,0 +1,32 @@
1
+ import React from "react";
2
+ import { Checkpoint } from "../Cart/Cart";
3
+ export interface ProductsOffersConfigType {
4
+ sectionType?: "coupon" | "list";
5
+ sectionTitle?: string;
6
+ sectionBackgroundColor?: string;
7
+ sectionBgContrastColor?: string;
8
+ cardBackgroundColor?: string;
9
+ cardBackgroundTransparent?: boolean;
10
+ textColor?: string;
11
+ accentColor?: string;
12
+ roundness?: number;
13
+ cardPadding?: number;
14
+ viewDetailsTitle?: string;
15
+ alignment?: "left" | "middle" | "right";
16
+ iconVisibility?: boolean;
17
+ popupIsolationStrategy?: "revert" | "revert-layer" | "unset" | "initial" | "inherit" | "none";
18
+ }
19
+ export interface CartCheckpoint extends Checkpoint {
20
+ customCartProgressBarCriteria?: string | null;
21
+ discountPercentage?: number | null;
22
+ discountId?: number | null;
23
+ }
24
+ export interface OfferTermsAndConditions {
25
+ offerMessage: string;
26
+ terms: string[];
27
+ }
28
+ declare const ProductsOffers: ({ offersConfig, offers, }: {
29
+ offersConfig?: ProductsOffersConfigType | null | undefined;
30
+ offers: CartCheckpoint[];
31
+ }) => React.JSX.Element;
32
+ export default ProductsOffers;