yt-uikit 0.8.14-minor-css.0 → 0.8.14

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.
@@ -310,6 +310,7 @@ export type BundlePayload = {
310
310
  title: string;
311
311
  minimumQuantity: number;
312
312
  isFixed?: boolean;
313
+ isFreebieTier?: boolean;
313
314
  products: {
314
315
  productId: string;
315
316
  variantIds: string[];
@@ -388,6 +389,7 @@ export declare const handleAddToBundle: (variantId: string, product: ProductDeta
388
389
  variantId: string;
389
390
  product: ProductDetails;
390
391
  quantity: number;
391
- }[]>>) => void;
392
+ isFree?: boolean | undefined;
393
+ }[]>>, isFreebie?: boolean) => void;
392
394
  declare const Bundle: React.FC<BundleProps>;
393
395
  export default Bundle;
@@ -18,11 +18,13 @@ type BundleBuilderProps = {
18
18
  variantId: string;
19
19
  product: ProductDetails;
20
20
  quantity: number;
21
+ isFree?: boolean;
21
22
  }[];
22
23
  setSelectedItems: React.Dispatch<React.SetStateAction<{
23
24
  variantId: string;
24
25
  product: ProductDetails;
25
26
  quantity: number;
27
+ isFree?: boolean;
26
28
  }[]>>;
27
29
  handleAddToCart: (e: any) => Promise<void>;
28
30
  bundleAddToCartLoading: boolean;
@@ -20,6 +20,7 @@ type BundleBuilderTrackerProps = {
20
20
  variantId: string;
21
21
  product: ProductDetails;
22
22
  quantity: number;
23
+ isFree?: boolean;
23
24
  }[];
24
25
  minimumQuantity: number;
25
26
  handleAddToCart: (e: any) => Promise<void>;
package/dist/index.d.ts CHANGED
@@ -383,6 +383,7 @@ type BundlePayload = {
383
383
  title: string;
384
384
  minimumQuantity: number;
385
385
  isFixed?: boolean;
386
+ isFreebieTier?: boolean;
386
387
  products: {
387
388
  productId: string;
388
389
  variantIds: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yt-uikit",
3
- "version": "0.8.14-minor-css.0",
3
+ "version": "0.8.14",
4
4
  "description": "YourToken UI Kit",
5
5
  "scripts": {
6
6
  "rollup": "tsc && rollup -c",
@@ -92,4 +92,4 @@
92
92
  "rollup-plugin-terser": "^7.0.2",
93
93
  "web-vitals": "^3.5.1"
94
94
  }
95
- }
95
+ }
@@ -1,21 +0,0 @@
1
- import React from "react";
2
- import { Checkpoint } from "./Cart";
3
- export interface MobileMiniCartProps {
4
- setIsCartOpen: (isOpen: boolean) => void;
5
- isCartOpen?: boolean;
6
- cartCheckpoints?: Checkpoint[];
7
- customCartProgressBarCriteria?: string;
8
- checkoutSectionMessage?: string;
9
- effectiveQuantityForProgressBar?: number;
10
- themeColor?: string;
11
- themeTextColor?: string;
12
- primaryTextColor?: string;
13
- ctaButtonBackgroundColor?: string;
14
- ctaButtonTextColor?: string;
15
- cartComponentsCornerType?: "rounded" | "sharp";
16
- cartComponentsCornerRadius?: number;
17
- enable?: boolean;
18
- forceShowOnNonHome?: boolean;
19
- }
20
- declare const MobileMiniCart: React.FC<MobileMiniCartProps>;
21
- export default MobileMiniCart;
@@ -1,49 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const VariantSelectionPopupContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
- export declare const ModalContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
4
- $themeColor?: string | undefined;
5
- $cornerRadius?: number | undefined;
6
- $backgroundColor?: string | undefined;
7
- }>> & string;
8
- export declare const CloseButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
9
- export declare const ProductDetails: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
10
- export declare const ProductImage: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, never>> & string;
11
- export declare const ProductInfo: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
12
- export declare const ProductTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, {
13
- $themeColor?: string | undefined;
14
- }>> & string;
15
- export declare const ProductPrice: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
16
- primaryTextColor?: string | undefined;
17
- }>> & string;
18
- export declare const OriginalPrice: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
19
- export declare const ViewDetailsLink: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, never>> & string;
20
- export declare const OptionContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
21
- export declare const OptionTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
22
- export declare const OptionsWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
23
- export declare const VariantOption: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
24
- $isSelected?: boolean | undefined;
25
- $isDisabled?: boolean | undefined;
26
- $themeColor?: string | undefined;
27
- backgroundColor?: string | undefined;
28
- }>> & string;
29
- export declare const CartButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
30
- $themeColor: string;
31
- }>> & string;
32
- export declare const LoaderContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
33
- export declare const QuantitySelectorContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
34
- export declare const MainSelectorContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
35
- $backgroundColor: string;
36
- }>> & string;
37
- export declare const FlexContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
38
- export declare const DetailsSection: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
39
- export declare const PriceSection: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
40
- export declare const LinkSection: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
41
- export declare const ActionsSection: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
42
- export declare const ReplaceButtonContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
43
- export declare const ReplaceButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
44
- $themeColor?: string | undefined;
45
- $cornerRadius?: number | undefined;
46
- $cornerType?: string | undefined;
47
- $disabled?: boolean | undefined;
48
- }>> & string;
49
- export declare const ReplaceButtonContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -1,23 +0,0 @@
1
- import React from "react";
2
- export interface SpinnerProps {
3
- color?: string;
4
- size?: number;
5
- loading?: boolean;
6
- }
7
- /**
8
- * A lightweight CSS-only spinner component to replace ClipLoader from react-spinners.
9
- * Uses CSS animations for the spinning effect.
10
- */
11
- export declare const Spinner: React.FC<SpinnerProps>;
12
- export interface ScaleLoaderProps {
13
- color?: string;
14
- loading?: boolean;
15
- height?: number;
16
- width?: number;
17
- }
18
- /**
19
- * A lightweight CSS-only scale loader component to replace ScaleLoader from react-spinners.
20
- * Displays animated bars that pulse in sequence.
21
- */
22
- export declare const ScaleLoader: React.FC<ScaleLoaderProps>;
23
- export default Spinner;
@@ -1,2 +0,0 @@
1
- export { Spinner, ScaleLoader } from "./Spinner";
2
- export type { SpinnerProps, ScaleLoaderProps } from "./Spinner";
@@ -1,21 +0,0 @@
1
- import React from "react";
2
- import { Checkpoint } from "./Cart";
3
- export interface MobileMiniCartProps {
4
- setIsCartOpen: (isOpen: boolean) => void;
5
- isCartOpen?: boolean;
6
- cartCheckpoints?: Checkpoint[];
7
- customCartProgressBarCriteria?: string;
8
- checkoutSectionMessage?: string;
9
- effectiveQuantityForProgressBar?: number;
10
- themeColor?: string;
11
- themeTextColor?: string;
12
- primaryTextColor?: string;
13
- ctaButtonBackgroundColor?: string;
14
- ctaButtonTextColor?: string;
15
- cartComponentsCornerType?: "rounded" | "sharp";
16
- cartComponentsCornerRadius?: number;
17
- enable?: boolean;
18
- forceShowOnNonHome?: boolean;
19
- }
20
- declare const MobileMiniCart: React.FC<MobileMiniCartProps>;
21
- export default MobileMiniCart;
@@ -1,49 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const VariantSelectionPopupContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
- export declare const ModalContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
4
- $themeColor?: string | undefined;
5
- $cornerRadius?: number | undefined;
6
- $backgroundColor?: string | undefined;
7
- }>> & string;
8
- export declare const CloseButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
9
- export declare const ProductDetails: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
10
- export declare const ProductImage: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, never>> & string;
11
- export declare const ProductInfo: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
12
- export declare const ProductTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, {
13
- $themeColor?: string | undefined;
14
- }>> & string;
15
- export declare const ProductPrice: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
16
- primaryTextColor?: string | undefined;
17
- }>> & string;
18
- export declare const OriginalPrice: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
19
- export declare const ViewDetailsLink: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, never>> & string;
20
- export declare const OptionContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
21
- export declare const OptionTitle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
22
- export declare const OptionsWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
23
- export declare const VariantOption: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
24
- $isSelected?: boolean | undefined;
25
- $isDisabled?: boolean | undefined;
26
- $themeColor?: string | undefined;
27
- backgroundColor?: string | undefined;
28
- }>> & string;
29
- export declare const CartButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
30
- $themeColor: string;
31
- }>> & string;
32
- export declare const LoaderContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
33
- export declare const QuantitySelectorContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
34
- export declare const MainSelectorContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
35
- $backgroundColor: string;
36
- }>> & string;
37
- export declare const FlexContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
38
- export declare const DetailsSection: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
39
- export declare const PriceSection: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
40
- export declare const LinkSection: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
41
- export declare const ActionsSection: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
42
- export declare const ReplaceButtonContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
43
- export declare const ReplaceButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {
44
- $themeColor?: string | undefined;
45
- $cornerRadius?: number | undefined;
46
- $cornerType?: string | undefined;
47
- $disabled?: boolean | undefined;
48
- }>> & string;
49
- export declare const ReplaceButtonContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
@@ -1,23 +0,0 @@
1
- import React from "react";
2
- export interface SpinnerProps {
3
- color?: string;
4
- size?: number;
5
- loading?: boolean;
6
- }
7
- /**
8
- * A lightweight CSS-only spinner component to replace ClipLoader from react-spinners.
9
- * Uses CSS animations for the spinning effect.
10
- */
11
- export declare const Spinner: React.FC<SpinnerProps>;
12
- export interface ScaleLoaderProps {
13
- color?: string;
14
- loading?: boolean;
15
- height?: number;
16
- width?: number;
17
- }
18
- /**
19
- * A lightweight CSS-only scale loader component to replace ScaleLoader from react-spinners.
20
- * Displays animated bars that pulse in sequence.
21
- */
22
- export declare const ScaleLoader: React.FC<ScaleLoaderProps>;
23
- export default Spinner;
@@ -1,2 +0,0 @@
1
- export { Spinner, ScaleLoader } from "./Spinner";
2
- export type { SpinnerProps, ScaleLoaderProps } from "./Spinner";