yt-uikit 0.8.10 → 0.8.11-minicart.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.
- package/dist/esm/components/Cart/Cart.d.ts +3 -0
- package/dist/esm/components/Cart/FloatingCart.d.ts +23 -0
- package/dist/esm/index.js +452 -452
- package/dist/esm/types/components/Cart/Cart.d.ts +3 -0
- package/dist/esm/types/components/Cart/FloatingCart.d.ts +23 -0
- package/dist/index.d.ts +12 -0
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ import { CartOffersCarousalProps } from "./CartOffersCarousel";
|
|
|
5
5
|
import { freebieMilestoneProps } from "./NextFreebieRow";
|
|
6
6
|
import { GSTSectionCustomizationProps } from "./GSTSection";
|
|
7
7
|
import { BundlePayload } from "../BundleBlock/Bundle";
|
|
8
|
+
import { type FloatingCartDataProps } from "./FloatingCart";
|
|
8
9
|
export interface RewardCoupon {
|
|
9
10
|
couponTemplateId: number;
|
|
10
11
|
name: string;
|
|
@@ -192,6 +193,8 @@ export interface CartProps {
|
|
|
192
193
|
productRecsCardListVariant: "scroll" | "carousel" | "vertical";
|
|
193
194
|
showCartTimer?: boolean;
|
|
194
195
|
showFreebieMilestone?: boolean;
|
|
196
|
+
showFloatingCart?: boolean;
|
|
197
|
+
floatingCartData?: FloatingCartDataProps;
|
|
195
198
|
cartTimerInMinutes?: number;
|
|
196
199
|
cartTimerCustomText?: string;
|
|
197
200
|
imageAspectSelector?: "square" | "portrait";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Checkpoint } from "./Cart";
|
|
3
|
+
export interface FloatingCartProps {
|
|
4
|
+
setIsCartOpen: (isOpen: boolean) => void;
|
|
5
|
+
isCartOpen?: boolean;
|
|
6
|
+
cartCheckpoints?: Checkpoint[];
|
|
7
|
+
customCartProgressBarCriteria?: string;
|
|
8
|
+
floatingCartData?: FloatingCartDataProps;
|
|
9
|
+
effectiveQuantityForProgressBar?: number;
|
|
10
|
+
cartComponentsCornerType?: "rounded" | "sharp";
|
|
11
|
+
cartComponentsCornerRadius?: number;
|
|
12
|
+
}
|
|
13
|
+
export type FloatingCartDataProps = {
|
|
14
|
+
enableFloatingCart: boolean;
|
|
15
|
+
backgroundColor: string;
|
|
16
|
+
bannerBackgroundColor: string;
|
|
17
|
+
textColor: string;
|
|
18
|
+
buttonColor: string;
|
|
19
|
+
bannerFooterText: string;
|
|
20
|
+
showOnPages: string[];
|
|
21
|
+
};
|
|
22
|
+
declare const FloatingCart: React.FC<FloatingCartProps>;
|
|
23
|
+
export default FloatingCart;
|