yt-uikit 0.10.82 → 0.10.83
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.
|
@@ -30,6 +30,7 @@ export interface freebieClaimInterface {
|
|
|
30
30
|
allowOverlayClose: boolean;
|
|
31
31
|
freeLabelText?: string;
|
|
32
32
|
showVariantsInClaimSection: boolean;
|
|
33
|
+
showVariantSelectionDropdownInProductClaim: boolean;
|
|
33
34
|
}
|
|
34
35
|
export type CartLevelDiscountApplication = {
|
|
35
36
|
type: string;
|
|
@@ -234,7 +235,6 @@ export interface CartProps {
|
|
|
234
235
|
checkoutSectionMessage?: string;
|
|
235
236
|
checkoutSectionMessageRedirectLink?: string;
|
|
236
237
|
checkoutSectionMessageDisplay?: "ribbon" | "tag" | "bookmark";
|
|
237
|
-
showVariantSelectionDropdownInProductClaim?: boolean;
|
|
238
238
|
productClaimCtaButtonText?: string;
|
|
239
239
|
loyaltyDiscount?: LoyaltyDiscount | undefined;
|
|
240
240
|
coinName?: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { FreebieRewardContext } from "../../utils/freebieUtils";
|
|
3
|
+
import { CustomVariantOptions } from "../../utils/customVariantOptions";
|
|
3
4
|
interface FreebieClaimSectionCardProps {
|
|
4
5
|
product: any;
|
|
5
6
|
themeColor?: string;
|
|
@@ -12,8 +13,11 @@ interface FreebieClaimSectionCardProps {
|
|
|
12
13
|
isSelected?: boolean;
|
|
13
14
|
isDisabled?: boolean;
|
|
14
15
|
onToggleSelection?: (productId: string, variantId?: string) => void;
|
|
16
|
+
onVariantSelectionChange?: (productId: string, variantId: string) => void;
|
|
15
17
|
isClaiming?: boolean;
|
|
16
18
|
setIsClaiming?: (value: boolean) => void;
|
|
19
|
+
showVariantSelectionDropdown?: boolean;
|
|
20
|
+
customVariantOptions?: CustomVariantOptions | null;
|
|
17
21
|
}
|
|
18
|
-
declare const
|
|
19
|
-
export default
|
|
22
|
+
declare const _default: React.NamedExoticComponent<FreebieClaimSectionCardProps>;
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CustomVariantOptions } from "../../utils/customVariantOptions";
|
|
3
|
+
interface FreebieVariantDropdownProps {
|
|
4
|
+
product: any;
|
|
5
|
+
variants: any[];
|
|
6
|
+
selectedVariantId?: string;
|
|
7
|
+
customVariantOptions: CustomVariantOptions | null;
|
|
8
|
+
onChange: (variantId: string) => void;
|
|
9
|
+
}
|
|
10
|
+
declare const _default: React.NamedExoticComponent<FreebieVariantDropdownProps>;
|
|
11
|
+
export default _default;
|