yt-uikit 0.8.10 → 0.8.11

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,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/esm/index.js CHANGED
@@ -203,7 +203,7 @@ import*as e from"react";import t,{forwardRef as n,useImperativeHandle as r,useRe
203
203
  flex-direction: column;
204
204
  background-color: ${e=>e.$backgroundColor||"transparent"};
205
205
  background-image: url(${e=>e.$largeScreenImageUrl});
206
- background-size: 100% 100%;
206
+ background-size: cover;
207
207
  background-repeat: no-repeat;
208
208
  background-position: center;
209
209
 
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yt-uikit",
3
- "version": "0.8.10",
3
+ "version": "0.8.11",
4
4
  "description": "YourToken UI Kit",
5
5
  "scripts": {
6
6
  "rollup": "tsc && rollup -c",