yt-uikit 0.10.155 → 0.10.157
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/EmptyCart.d.ts +2 -1
- package/dist/esm/components/Cart/ProductRecCard.d.ts +1 -0
- package/dist/esm/components/Cart/ProductRecList.d.ts +1 -0
- package/dist/esm/components/Cart/StealDealSection.d.ts +2 -0
- package/dist/esm/index.js +6 -6
- package/package.json +1 -1
|
@@ -154,6 +154,7 @@ export interface CartProps {
|
|
|
154
154
|
showProductRecsOnDesktop?: boolean;
|
|
155
155
|
productRecsTitleText?: string;
|
|
156
156
|
productRecsCtaButtonText?: string;
|
|
157
|
+
productRecsSavingsDisplayType?: "percentage" | "amount";
|
|
157
158
|
showGSTOption?: boolean;
|
|
158
159
|
gstNumber?: string;
|
|
159
160
|
companyName?: string;
|
|
@@ -162,6 +163,8 @@ export interface CartProps {
|
|
|
162
163
|
freeProduct?: any;
|
|
163
164
|
showLoyaltyCta?: boolean;
|
|
164
165
|
freeProductAdjustedCartTotal?: number;
|
|
166
|
+
stealDealEffectiveCartTotal?: number;
|
|
167
|
+
stealDealEffectiveQuantity?: number;
|
|
165
168
|
redemptionMinimumOrderValue?: number;
|
|
166
169
|
redemptionMinimumOrderValueStatus?: boolean;
|
|
167
170
|
signinCTAButtonVisible?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { CartProps } from "./Cart";
|
|
3
|
-
export default function EmptyCart({ showLoyaltyCta, exploreCTAColor, emptyCartTitle, emptyCartDescription, isUserSignedIn, joinNowFunction, exploreCtaRedirectLink, themeColor, emptyCartButtons, cartComponentsCornerRadius, cartComponentsCornerType, themeTextColor, isRecProductsListValid, recProductsList, addCartItem, productRecsCtaButtonText, ctaButtonBackgroundColor, ctaButtonTextColor, primaryTextColor, secondaryTextColor, showVariantSelectionDropdownInProductRecs, variantPickerUiVariant, emptyProductRecsTitleText, backgroundSubdued, showEmptyCartRecommendations, tertiaryColor, tertiaryTextColor, }: {
|
|
3
|
+
export default function EmptyCart({ showLoyaltyCta, exploreCTAColor, emptyCartTitle, emptyCartDescription, isUserSignedIn, joinNowFunction, exploreCtaRedirectLink, themeColor, emptyCartButtons, cartComponentsCornerRadius, cartComponentsCornerType, themeTextColor, isRecProductsListValid, recProductsList, addCartItem, productRecsCtaButtonText, productRecsSavingsDisplayType, ctaButtonBackgroundColor, ctaButtonTextColor, primaryTextColor, secondaryTextColor, showVariantSelectionDropdownInProductRecs, variantPickerUiVariant, emptyProductRecsTitleText, backgroundSubdued, showEmptyCartRecommendations, tertiaryColor, tertiaryTextColor, }: {
|
|
4
4
|
showLoyaltyCta: boolean;
|
|
5
5
|
exploreCTAColor: any;
|
|
6
6
|
emptyCartTitle: string;
|
|
@@ -20,6 +20,7 @@ export default function EmptyCart({ showLoyaltyCta, exploreCTAColor, emptyCartTi
|
|
|
20
20
|
recProductsList?: any[];
|
|
21
21
|
addCartItem?: CartProps["addCartItem"];
|
|
22
22
|
productRecsCtaButtonText?: CartProps["productRecsCtaButtonText"];
|
|
23
|
+
productRecsSavingsDisplayType?: CartProps["productRecsSavingsDisplayType"];
|
|
23
24
|
ctaButtonBackgroundColor?: CartProps["ctaButtonBackgroundColor"];
|
|
24
25
|
ctaButtonTextColor?: CartProps["ctaButtonTextColor"];
|
|
25
26
|
primaryTextColor?: CartProps["primaryTextColor"];
|
|
@@ -18,6 +18,7 @@ type ProductRecCardProps = {
|
|
|
18
18
|
backgroundColor?: string;
|
|
19
19
|
tertiaryColor?: string;
|
|
20
20
|
tertiaryTextColor?: string;
|
|
21
|
+
productRecsSavingsDisplayType?: "percentage" | "amount";
|
|
21
22
|
};
|
|
22
23
|
declare const _default: React.NamedExoticComponent<ProductRecCardProps>;
|
|
23
24
|
export default _default;
|
|
@@ -19,6 +19,7 @@ type ProductRecListProps = {
|
|
|
19
19
|
backgroundColor?: string;
|
|
20
20
|
tertiaryColor?: string;
|
|
21
21
|
tertiaryTextColor?: string;
|
|
22
|
+
productRecsSavingsDisplayType?: "percentage" | "amount";
|
|
22
23
|
};
|
|
23
24
|
declare const ProductRecList: React.FC<ProductRecListProps>;
|
|
24
25
|
export default ProductRecList;
|
|
@@ -5,6 +5,8 @@ interface StealDealSectionProps {
|
|
|
5
5
|
stealDealProducts: any[];
|
|
6
6
|
freeProductAdjustedCartTotal?: number;
|
|
7
7
|
effectiveQuantityForProgressBar?: number;
|
|
8
|
+
stealDealEffectiveCartTotal?: number;
|
|
9
|
+
stealDealEffectiveQuantity?: number;
|
|
8
10
|
addFreebieToCart?: (variantId: string, originalAllowedVariantIds?: string[], rewardContext?: FreebieRewardContext) => Promise<void>;
|
|
9
11
|
freebiesInCart: string[];
|
|
10
12
|
themeColor?: string;
|