yt-uikit 0.10.40 → 0.10.41

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.
@@ -162,6 +162,7 @@ type GeneralStyle = {
162
162
  restrictCOD: boolean;
163
163
  trackInventory: boolean;
164
164
  showOutOfStockProducts: boolean;
165
+ showOutOfStockVariants?: boolean;
165
166
  outOfStockLabel: string;
166
167
  disabledButtonColor: string;
167
168
  storeCurrency: string;
@@ -11,6 +11,7 @@ interface VariantSwatchProps {
11
11
  type?: "color" | "image" | "text";
12
12
  isOptionAvailable?: (optionValue: string) => boolean;
13
13
  isMobile?: boolean;
14
+ showOutOfStockVariants?: boolean;
14
15
  }
15
16
  interface SingleProductVariantOptionsModalProps {
16
17
  product: ProductDetails;
@@ -22,6 +23,7 @@ interface SingleProductVariantOptionsModalProps {
22
23
  backgroundColor: string;
23
24
  };
24
25
  onConfirm: (variantId: string) => void;
26
+ showOutOfStockVariants?: boolean;
25
27
  }
26
28
  export declare const VariantSwatch: React.FC<VariantSwatchProps>;
27
29
  declare const SingleProductVariantOptionsModal: React.FC<SingleProductVariantOptionsModalProps>;
@@ -41,6 +41,7 @@ interface ProductVariantSelectorProps {
41
41
  variantId?: string;
42
42
  primaryProductId?: string;
43
43
  accentColor?: string;
44
+ showOutOfStockVariants?: boolean;
44
45
  }
45
46
  export declare const ProductVariantSelector: React.FC<ProductVariantSelectorProps>;
46
47
  export {};
@@ -17,6 +17,7 @@ interface VariantSelectorModalProps {
17
17
  variantId?: string;
18
18
  onVariantChange: (index: number, variantId: string) => void;
19
19
  handleAddToCart: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => Promise<void>;
20
+ showOutOfStockVariants?: boolean;
20
21
  }
21
22
  declare const VariantSelectorModal: React.FC<VariantSelectorModalProps>;
22
23
  export default VariantSelectorModal;