yt-uikit 0.10.113 → 0.10.115

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.
@@ -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, productRecsTitleText, 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, ctaButtonBackgroundColor, ctaButtonTextColor, primaryTextColor, secondaryTextColor, showVariantSelectionDropdownInProductRecs, variantPickerUiVariant, productRecsTitleText, emptyProductRecsTitleText, backgroundSubdued, showEmptyCartRecommendations, tertiaryColor, tertiaryTextColor, }: {
4
4
  showLoyaltyCta: boolean;
5
5
  exploreCTAColor: any;
6
6
  emptyCartTitle: string;
@@ -25,6 +25,7 @@ export default function EmptyCart({ showLoyaltyCta, exploreCTAColor, emptyCartTi
25
25
  primaryTextColor?: CartProps["primaryTextColor"];
26
26
  secondaryTextColor?: CartProps["secondaryTextColor"];
27
27
  showVariantSelectionDropdownInProductRecs?: CartProps["showVariantSelectionDropdownInProductRecs"];
28
+ variantPickerUiVariant?: "button" | "dropdown";
28
29
  productRecsTitleText?: CartProps["productRecsTitleText"];
29
30
  emptyProductRecsTitleText?: CartProps["emptyProductRecsTitleText"];
30
31
  backgroundSubdued?: CartProps["backgroundSubdued"];
@@ -6,6 +6,8 @@ interface FreebieVariantDropdownProps {
6
6
  selectedVariantId?: string;
7
7
  customVariantOptions: CustomVariantOptions | null;
8
8
  onChange: (variantId: string) => void;
9
+ isFreebie?: boolean;
10
+ classNamePrefix?: string;
9
11
  }
10
12
  declare const _default: React.NamedExoticComponent<FreebieVariantDropdownProps>;
11
13
  export default _default;
@@ -25,11 +25,9 @@ type ItemSwapProps = {
25
25
  currency: string;
26
26
  currencySymbol: string;
27
27
  primaryTextColor?: string;
28
- secondaryTextColor?: string;
29
28
  themeColor?: string;
30
29
  themeTextColor?: string;
31
- backgroundSubdued?: string;
32
- tertiaryTextColor?: string;
30
+ imageAspectSelector?: "square" | "portrait";
33
31
  cartComponentsCornerType?: "rounded" | "sharp";
34
32
  cartComponentsCornerRadius?: number;
35
33
  };
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
+ import type { CustomVariantOptions } from "../../utils/customVariantOptions";
2
3
  type ProductRecCardProps = {
3
4
  product: any;
4
5
  addCartItem: (product: any, quantity?: number, triggeredFrom?: string, freebieReplace?: boolean, productHandle?: string) => Promise<any>;
@@ -8,6 +9,8 @@ type ProductRecCardProps = {
8
9
  primaryTextColor?: string;
9
10
  secondaryTextColor?: string;
10
11
  showVariantSelectionDropdownInProductRecs?: boolean;
12
+ variantPickerUiVariant?: "button" | "dropdown";
13
+ customVariantOptions: CustomVariantOptions | null;
11
14
  layout?: "horizontal" | "vertical";
12
15
  cartComponentsCornerType?: "rounded" | "sharp";
13
16
  cartComponentsCornerRadius?: number;
@@ -10,6 +10,7 @@ type ProductRecListProps = {
10
10
  primaryTextColor?: string;
11
11
  secondaryTextColor?: string;
12
12
  showVariantSelectionDropdownInProductRecs?: boolean;
13
+ variantPickerUiVariant?: "button" | "dropdown";
13
14
  variant?: "scroll" | "carousel" | "vertical";
14
15
  cardLayout?: "horizontal" | "vertical";
15
16
  cartComponentsCornerType?: "rounded" | "sharp";