@primestyleai/tryon 5.5.6 → 5.5.8
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.
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mirrors the prime-main DeviceSwitch pattern. Returns false on the
|
|
3
|
+
* server / first client render to avoid hydration mismatch, then flips
|
|
4
|
+
* to the real value after mount. Listens to resize so toggling devtools
|
|
5
|
+
* device preview also flips the layout.
|
|
6
|
+
*/
|
|
7
|
+
export declare function useIsMobile(): boolean;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { TranslateFn } from "../../i18n";
|
|
2
|
+
interface BasicsStepMobileProps {
|
|
3
|
+
productImage: string;
|
|
4
|
+
productTitle: string;
|
|
5
|
+
hUnit: string;
|
|
6
|
+
wUnit: string;
|
|
7
|
+
isImperialMode: boolean;
|
|
8
|
+
height: string;
|
|
9
|
+
setHeight: (v: string) => void;
|
|
10
|
+
heightFeet: string;
|
|
11
|
+
setHeightFeet: (v: string) => void;
|
|
12
|
+
heightInches: string;
|
|
13
|
+
setHeightInches: (v: string) => void;
|
|
14
|
+
weight: string;
|
|
15
|
+
setWeight: (v: string) => void;
|
|
16
|
+
age: string;
|
|
17
|
+
setAge: (v: string) => void;
|
|
18
|
+
switchToMetric: () => void;
|
|
19
|
+
switchToImperial: () => void;
|
|
20
|
+
onUploadPhoto: () => void;
|
|
21
|
+
/** Tab bar callback — same as onUploadPhoto, sets the parent step to "photo" */
|
|
22
|
+
onSwitchToScan: () => void;
|
|
23
|
+
error: string;
|
|
24
|
+
t: TranslateFn;
|
|
25
|
+
}
|
|
26
|
+
export declare function BasicsStepMobile({ productImage, productTitle, hUnit, wUnit, isImperialMode, height, setHeight, heightFeet, setHeightFeet, heightInches, setHeightInches, weight, setWeight, age, setAge, switchToMetric, switchToImperial, onUploadPhoto, onSwitchToScan, error, t, }: BasicsStepMobileProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export {};
|