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.
@@ -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;
package/dist/index.d.ts CHANGED
@@ -519,6 +519,16 @@ interface GSTSectionCustomizationProps {
519
519
  textColor?: string;
520
520
  }
521
521
 
522
+ type FloatingCartDataProps = {
523
+ enableFloatingCart: boolean;
524
+ backgroundColor: string;
525
+ bannerBackgroundColor: string;
526
+ textColor: string;
527
+ buttonColor: string;
528
+ bannerFooterText: string;
529
+ showOnPages: string[];
530
+ };
531
+
522
532
  interface RewardCoupon {
523
533
  couponTemplateId: number;
524
534
  name: string;
@@ -693,6 +703,8 @@ interface CartProps {
693
703
  productRecsCardListVariant: "scroll" | "carousel" | "vertical";
694
704
  showCartTimer?: boolean;
695
705
  showFreebieMilestone?: boolean;
706
+ showFloatingCart?: boolean;
707
+ floatingCartData?: FloatingCartDataProps;
696
708
  cartTimerInMinutes?: number;
697
709
  cartTimerCustomText?: string;
698
710
  imageAspectSelector?: "square" | "portrait";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yt-uikit",
3
- "version": "0.8.10",
3
+ "version": "0.8.11-minicart.0",
4
4
  "description": "YourToken UI Kit",
5
5
  "scripts": {
6
6
  "rollup": "tsc && rollup -c",