@primestyleai/tryon 2.0.0 → 2.0.1
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/react/index.d.ts +2 -14
- package/dist/react/index.js +1176 -641
- package/package.json +1 -1
package/dist/react/index.d.ts
CHANGED
|
@@ -1,27 +1,15 @@
|
|
|
1
1
|
import { type CSSProperties } from "react";
|
|
2
2
|
import type { ButtonStyles, ModalStyles, PrimeStyleClassNames } from "../types";
|
|
3
3
|
export interface PrimeStyleTryonProps {
|
|
4
|
-
/** Product image URL to try on */
|
|
5
4
|
productImage: string;
|
|
6
|
-
|
|
5
|
+
productTitle?: string;
|
|
7
6
|
buttonText?: string;
|
|
8
|
-
/** API base URL — defaults to NEXT_PUBLIC_PRIMESTYLE_API_URL env or https://myaifitting.com */
|
|
9
7
|
apiUrl?: string;
|
|
10
|
-
/** Show "Powered by PrimeStyle" in modal footer (defaults to true) */
|
|
11
8
|
showPoweredBy?: boolean;
|
|
12
|
-
/** Button appearance customization via CSS variables */
|
|
13
9
|
buttonStyles?: ButtonStyles;
|
|
14
|
-
/** Modal appearance customization via CSS variables */
|
|
15
10
|
modalStyles?: ModalStyles;
|
|
16
|
-
/**
|
|
17
|
-
* Override any element's className with Tailwind classes or custom CSS classes.
|
|
18
|
-
* These are appended to the default `ps-tryon-*` classes, so you can either
|
|
19
|
-
* add onto the defaults or fully replace them with your own styles.
|
|
20
|
-
*/
|
|
21
11
|
classNames?: PrimeStyleClassNames;
|
|
22
|
-
/** Additional className on the root wrapper */
|
|
23
12
|
className?: string;
|
|
24
|
-
/** Additional inline styles on the root wrapper */
|
|
25
13
|
style?: CSSProperties;
|
|
26
14
|
onOpen?: () => void;
|
|
27
15
|
onClose?: () => void;
|
|
@@ -36,4 +24,4 @@ export interface PrimeStyleTryonProps {
|
|
|
36
24
|
code?: string;
|
|
37
25
|
}) => void;
|
|
38
26
|
}
|
|
39
|
-
export declare function PrimeStyleTryon({ productImage, buttonText, apiUrl, showPoweredBy, buttonStyles: btnS, modalStyles: mdlS, classNames: cn, className, style, onOpen, onClose, onUpload, onProcessing, onComplete, onError, }: PrimeStyleTryonProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export declare function PrimeStyleTryon({ productImage, productTitle, buttonText, apiUrl, showPoweredBy, buttonStyles: btnS, modalStyles: mdlS, classNames: cn, className, style, onOpen, onClose, onUpload, onProcessing, onComplete, onError, }: PrimeStyleTryonProps): import("react/jsx-runtime").JSX.Element;
|