yt-uikit 0.8.21 → 0.8.23-volume-bundle-variant-init.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.
@@ -0,0 +1,3 @@
1
+ export declare const couponSelectionOpenState: import("jotai").PrimitiveAtom<boolean> & {
2
+ init: boolean;
3
+ };
@@ -0,0 +1,25 @@
1
+ import React from "react";
2
+ import { RewardCoupon } from "./Cart";
3
+ import "./couponSelection.scss";
4
+ interface RewardCouponWithIcon extends RewardCoupon {
5
+ icon?: React.ReactElement | null;
6
+ }
7
+ type CouponSelectionProps = {
8
+ isCouponSelectionOpen: boolean;
9
+ setIsCouponSelectionOpen: React.Dispatch<React.SetStateAction<boolean>>;
10
+ rewardCoupons: RewardCoupon[];
11
+ applyDiscount: () => Promise<any>;
12
+ userTotalPoints: number;
13
+ discountAmountOff?: number;
14
+ applyTemplateDiscount: (templateId: number) => Promise<any>;
15
+ pointsToBeUsed?: number;
16
+ guestRewardCoupon?: RewardCouponWithIcon;
17
+ showGuestDiscountCoupon?: boolean;
18
+ isUserSignedIn?: boolean;
19
+ guestLoyaltyPercentage?: number;
20
+ joinNowFunction?: () => void;
21
+ showDiscountsListToGuestUsers?: boolean;
22
+ themeColor?: string;
23
+ };
24
+ export declare const CouponSelection: React.ForwardRefExoticComponent<CouponSelectionProps & React.RefAttributes<HTMLDivElement>>;
25
+ export {};
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import { RewardCouponWithIcon } from "../CouponFrame/CouponFrame";
3
+ type GuestDiscountCouponProps = {
4
+ currency: string;
5
+ handleApply: (templateId?: number) => Promise<any>;
6
+ rewardCoupon: RewardCouponWithIcon;
7
+ };
8
+ declare const GuestDiscountCoupon: React.FC<GuestDiscountCouponProps>;
9
+ export default GuestDiscountCoupon;
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ import "./progressBar.scss";
3
+ import { RewardCouponWithIcon } from "../CouponFrame/CouponFrame";
4
+ import { Checkpoint } from "./Cart";
5
+ type ProgressBarProps = {
6
+ progressBarFulfillmentThreshold?: number;
7
+ progressBarItemsThreshold?: number;
8
+ themeColor?: string;
9
+ handleCheckpointCrossed?: (checkpoint: Checkpoint, cartAmount: number) => Promise<any>;
10
+ rewardCoupon: RewardCouponWithIcon;
11
+ };
12
+ declare const ProgressBar: React.FC<ProgressBarProps>;
13
+ export default ProgressBar;
@@ -0,0 +1,15 @@
1
+ import React from "react";
2
+ import { RewardCoupon } from "../Cart/Cart";
3
+ export interface RewardCouponWithIcon extends RewardCoupon {
4
+ icon?: React.ReactElement | null;
5
+ }
6
+ export type CouponFrameProps = {
7
+ couponActive: boolean;
8
+ rewardCoupon: RewardCouponWithIcon;
9
+ currency: string;
10
+ handleApply: (templateId?: number) => Promise<any>;
11
+ pointsCoupon?: boolean;
12
+ pointsToBeUsed?: number;
13
+ };
14
+ declare const CouponFrame: React.FC<CouponFrameProps>;
15
+ export default CouponFrame;
@@ -0,0 +1 @@
1
+ export { default } from "./CouponFrame";