yt-uikit 0.8.46 → 0.8.48

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,5 +1,17 @@
1
1
  import React from "react";
2
2
  import { ProductDetails, VariantOptions } from "../Bundle";
3
+ interface OptionValue {
4
+ name: string;
5
+ value: string;
6
+ }
7
+ interface VariantSwatchProps {
8
+ options: OptionValue[];
9
+ selectedValue: OptionValue | null;
10
+ onChange: (option: OptionValue) => void;
11
+ type?: "color" | "image" | "text";
12
+ isOptionAvailable?: (optionValue: string) => boolean;
13
+ isMobile?: boolean;
14
+ }
3
15
  interface SingleProductVariantOptionsModalProps {
4
16
  product: ProductDetails;
5
17
  isOpen: boolean;
@@ -11,5 +23,6 @@ interface SingleProductVariantOptionsModalProps {
11
23
  };
12
24
  onConfirm: (variantId: string) => void;
13
25
  }
26
+ export declare const VariantSwatch: React.FC<VariantSwatchProps>;
14
27
  declare const SingleProductVariantOptionsModal: React.FC<SingleProductVariantOptionsModalProps>;
15
28
  export default SingleProductVariantOptionsModal;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { ProductDetails, Customizations } from "../Bundle";
2
+ import { ProductDetails, Customizations, VariantOptions } from "../Bundle";
3
3
  import "../bundle.scss";
4
4
  type BundleProductDetailsModalProps = {
5
5
  handleAddToBundle: (variantId: string, product: ProductDetails, quantity: number) => void;
@@ -31,6 +31,7 @@ type BundleProductDetailsModalProps = {
31
31
  bundleProductsCustomQuantity?: number | null;
32
32
  isFreebieTier?: boolean;
33
33
  showFreebieTierProductPrices?: boolean;
34
+ bundleVariantOptions?: VariantOptions;
34
35
  };
35
36
  declare const BundleProductDetailsModal: React.ForwardRefExoticComponent<BundleProductDetailsModalProps & React.RefAttributes<HTMLDivElement>>;
36
37
  export default BundleProductDetailsModal;