yt-uikit 0.7.404-manual-recs.2 → 0.7.404-scrap-code.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/BundleBlock/BundleBuilder/ResponsiveBgImage.d.ts +9 -0
- package/dist/esm/components/BundleBlock/BundleBuilder/bundleBuilder.style.d.ts +22 -2776
- package/dist/esm/components/BundleBlock/BundleBuilderTracker/bundleBuilderTracker.style.d.ts +47 -5740
- package/dist/esm/components/BundleBlock/BundleProductDetailsModal/bundleProductDetailsModal.style.d.ts +7 -830
- package/dist/esm/components/BundleBlock/CollectionBundle/ColllectionBundle.d.ts +103 -0
- package/dist/esm/components/BundleBlock/CollectionBundle/FileUpload.d.ts +15 -0
- package/dist/esm/components/BundleBlock/CollectionBundle/LoadingSpinner.d.ts +2 -0
- package/dist/esm/components/BundleBlock/CollectionBundle/ProductDetailsModal.d.ts +15 -0
- package/dist/esm/components/BundleBlock/FixedBundle/fixedBundle.style.d.ts +68 -15003
- package/dist/esm/components/BundleBlock/MixAndMatchBundle/mixAndMatchBundle.style.d.ts +50 -6336
- package/dist/esm/components/BundleBlock/VolumeBundle/volumeBundle.style.d.ts +44 -4977
- package/dist/esm/components/Cart/Cart.d.ts +0 -19
- package/dist/esm/components/Cart/CartProductsList.d.ts +0 -1
- package/dist/esm/components/Cart/FreebieClaimErrorBoundary.d.ts +28 -0
- package/dist/esm/components/Cart/MultiStepProgressBar/MultiStepProgressBar.styled.d.ts +20 -564
- package/dist/esm/components/Cart/MultiStepProgressBar/SingleTierProgressBar.styled.d.ts +12 -1098
- package/dist/esm/components/Cart/ProductCard.d.ts +1 -2
- package/dist/esm/components/Cart/VariantSelectionPopup/DesktopVariantPopup.styled.d.ts +39 -6295
- package/dist/esm/components/index.d.ts +0 -1
- package/dist/esm/index.js +400 -423
- package/dist/esm/types/components/BundleBlock/BundleBuilder/ResponsiveBgImage.d.ts +9 -0
- package/dist/esm/types/components/BundleBlock/BundleBuilder/bundleBuilder.style.d.ts +22 -2776
- package/dist/esm/types/components/BundleBlock/BundleBuilderTracker/bundleBuilderTracker.style.d.ts +47 -5740
- package/dist/esm/types/components/BundleBlock/BundleProductDetailsModal/bundleProductDetailsModal.style.d.ts +7 -830
- package/dist/esm/types/components/BundleBlock/CollectionBundle/ColllectionBundle.d.ts +103 -0
- package/dist/esm/types/components/BundleBlock/CollectionBundle/FileUpload.d.ts +15 -0
- package/dist/esm/types/components/BundleBlock/CollectionBundle/LoadingSpinner.d.ts +2 -0
- package/dist/esm/types/components/BundleBlock/CollectionBundle/ProductDetailsModal.d.ts +15 -0
- package/dist/esm/types/components/BundleBlock/FixedBundle/fixedBundle.style.d.ts +68 -15003
- package/dist/esm/types/components/BundleBlock/MixAndMatchBundle/mixAndMatchBundle.style.d.ts +50 -6336
- package/dist/esm/types/components/BundleBlock/VolumeBundle/volumeBundle.style.d.ts +44 -4977
- package/dist/esm/types/components/Cart/Cart.d.ts +0 -19
- package/dist/esm/types/components/Cart/CartProductsList.d.ts +0 -1
- package/dist/esm/types/components/Cart/FreebieClaimErrorBoundary.d.ts +28 -0
- package/dist/esm/types/components/Cart/MultiStepProgressBar/MultiStepProgressBar.styled.d.ts +20 -564
- package/dist/esm/types/components/Cart/MultiStepProgressBar/SingleTierProgressBar.styled.d.ts +12 -1098
- package/dist/esm/types/components/Cart/ProductCard.d.ts +1 -2
- package/dist/esm/types/components/Cart/VariantSelectionPopup/DesktopVariantPopup.styled.d.ts +39 -6295
- package/dist/esm/types/components/index.d.ts +0 -1
- package/dist/esm/types/utils/freebieErrorLogger.d.ts +68 -0
- package/dist/esm/types/utils/freebieValidation.d.ts +45 -0
- package/dist/esm/utils/freebieErrorLogger.d.ts +68 -0
- package/dist/esm/utils/freebieValidation.d.ts +45 -0
- package/dist/index.d.ts +1 -32
- package/package.json +1 -1
- package/dist/esm/atoms/comboBundleAtom.d.ts +0 -12
- package/dist/esm/components/Cart/LoyaltyCTA.styled.d.ts +0 -822
- package/dist/esm/components/Cart/NoteSection.styled.d.ts +0 -832
- package/dist/esm/components/Cart/StandardDelivery.styled.d.ts +0 -3282
- package/dist/esm/types/atoms/comboBundleAtom.d.ts +0 -12
- package/dist/esm/types/components/Cart/LoyaltyCTA.styled.d.ts +0 -822
- package/dist/esm/types/components/Cart/NoteSection.styled.d.ts +0 -832
- package/dist/esm/types/components/Cart/StandardDelivery.styled.d.ts +0 -3282
- package/dist/esm/types/utils/comboBundleStorage.d.ts +0 -36
- package/dist/esm/utils/comboBundleStorage.d.ts +0 -36
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type Product = {
|
|
3
|
+
id: number;
|
|
4
|
+
title: string;
|
|
5
|
+
handle: string;
|
|
6
|
+
description: string | null;
|
|
7
|
+
published_at: string;
|
|
8
|
+
created_at: string;
|
|
9
|
+
vendor: string;
|
|
10
|
+
type: string;
|
|
11
|
+
tags: string[];
|
|
12
|
+
price: number;
|
|
13
|
+
price_min: number;
|
|
14
|
+
price_max: number;
|
|
15
|
+
available: boolean;
|
|
16
|
+
price_varies: boolean;
|
|
17
|
+
compare_at_price: number | null;
|
|
18
|
+
compare_at_price_min: number;
|
|
19
|
+
compare_at_price_max: number;
|
|
20
|
+
compare_at_price_varies: boolean;
|
|
21
|
+
variants: Array<{
|
|
22
|
+
id: number;
|
|
23
|
+
title: string;
|
|
24
|
+
option1: string | null;
|
|
25
|
+
option2: string | null;
|
|
26
|
+
option3: string | null;
|
|
27
|
+
sku: string;
|
|
28
|
+
requires_shipping: boolean;
|
|
29
|
+
taxable: boolean;
|
|
30
|
+
featured_image: any | null;
|
|
31
|
+
available: boolean;
|
|
32
|
+
name: string;
|
|
33
|
+
public_title: string;
|
|
34
|
+
options: string[];
|
|
35
|
+
price: number;
|
|
36
|
+
weight: number;
|
|
37
|
+
compare_at_price: number | null;
|
|
38
|
+
inventory_management: string;
|
|
39
|
+
barcode: string;
|
|
40
|
+
requires_selling_plan: boolean;
|
|
41
|
+
selling_plan_allocations: any[];
|
|
42
|
+
quantity_rule: {
|
|
43
|
+
min: number;
|
|
44
|
+
max: number | null;
|
|
45
|
+
increment: number;
|
|
46
|
+
};
|
|
47
|
+
}>;
|
|
48
|
+
images: string[];
|
|
49
|
+
image?: string;
|
|
50
|
+
options?: string[];
|
|
51
|
+
};
|
|
52
|
+
export type BundleConfig = {
|
|
53
|
+
config: {
|
|
54
|
+
shop: string;
|
|
55
|
+
collectionIds: string[];
|
|
56
|
+
type: "collection";
|
|
57
|
+
builderTiers: {
|
|
58
|
+
type: "collectionTier";
|
|
59
|
+
collectionTier: {
|
|
60
|
+
title: string;
|
|
61
|
+
tier: number;
|
|
62
|
+
minimumQuantity: number;
|
|
63
|
+
collectionId: string;
|
|
64
|
+
handle: string;
|
|
65
|
+
products: Product[];
|
|
66
|
+
}[];
|
|
67
|
+
};
|
|
68
|
+
form: {
|
|
69
|
+
title: string;
|
|
70
|
+
sections: {
|
|
71
|
+
title: string;
|
|
72
|
+
type: "text" | "image";
|
|
73
|
+
fields: {
|
|
74
|
+
title: string;
|
|
75
|
+
}[];
|
|
76
|
+
}[];
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
customizations: {
|
|
80
|
+
borderRadius: string;
|
|
81
|
+
atcBg: string;
|
|
82
|
+
atcText: string;
|
|
83
|
+
productImageRatio: string;
|
|
84
|
+
bundleBg: string;
|
|
85
|
+
bundleText: string;
|
|
86
|
+
bundleBorder: string;
|
|
87
|
+
btnPrimaryBg: string;
|
|
88
|
+
btnPrimaryText: string;
|
|
89
|
+
productCardBorder: string;
|
|
90
|
+
productCardBg: string;
|
|
91
|
+
productCardShadow: string;
|
|
92
|
+
hideSelectedProducts: boolean;
|
|
93
|
+
allowMultipleQty: boolean;
|
|
94
|
+
hideOutOfStockProducts: boolean;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
interface CollectionBundleProps {
|
|
98
|
+
config: BundleConfig;
|
|
99
|
+
addCustomBundleToCart: (items: any) => void;
|
|
100
|
+
bundleAddToCartLoading: boolean;
|
|
101
|
+
}
|
|
102
|
+
declare const CollectionBundle: ({ config, bundleAddToCartLoading, addCustomBundleToCart, }: CollectionBundleProps) => React.JSX.Element;
|
|
103
|
+
export default CollectionBundle;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface UploadFieldProps {
|
|
3
|
+
title: string;
|
|
4
|
+
uploadState?: {
|
|
5
|
+
url?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
error?: boolean;
|
|
9
|
+
} | string;
|
|
10
|
+
onUpload: () => void;
|
|
11
|
+
onRemove: () => void;
|
|
12
|
+
onRetry: () => void;
|
|
13
|
+
}
|
|
14
|
+
export declare const UploadField: ({ title, uploadState, onUpload, onRemove, onRetry, }: UploadFieldProps) => React.JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Product, BundleConfig } from "./ColllectionBundle";
|
|
3
|
+
type ProductDetailsModalProps = {
|
|
4
|
+
product: Product;
|
|
5
|
+
tierIdx: number;
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
onAddToBundle: (product: Product, tierIdx: number) => void;
|
|
9
|
+
canAdd: boolean;
|
|
10
|
+
isSelected: boolean;
|
|
11
|
+
customizations: BundleConfig["customizations"];
|
|
12
|
+
isMobile: boolean;
|
|
13
|
+
};
|
|
14
|
+
export declare const ProductDetailsModal: ({ product, tierIdx, isOpen, onClose, onAddToBundle, canAdd, isSelected, customizations, isMobile, }: ProductDetailsModalProps) => React.ReactPortal | null;
|
|
15
|
+
export {};
|