@primestyleai/tryon 5.6.8 → 5.6.10
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,40 @@
|
|
|
1
|
+
import type { TranslateFn } from "../../i18n";
|
|
2
|
+
/**
|
|
3
|
+
* Mobile-only body shape question component. Renders a single question
|
|
4
|
+
* (chest / midsection / seat / hips) as a vertical stack of full-width
|
|
5
|
+
* cards matching the reference design:
|
|
6
|
+
*
|
|
7
|
+
* STEP 04 / 06
|
|
8
|
+
*
|
|
9
|
+
* WHICH BEST DESCRIBES
|
|
10
|
+
* YOUR MIDSECTION?
|
|
11
|
+
*
|
|
12
|
+
* ┌────────────────────────────┐
|
|
13
|
+
* │ PROFILE A │
|
|
14
|
+
* │ FLAT [img]│
|
|
15
|
+
* └────────────────────────────┘
|
|
16
|
+
* ┌────────────────────────────┐
|
|
17
|
+
* │ PROFILE B [DARK] │ ← selected (accent fill)
|
|
18
|
+
* │ AVERAGE [img] │
|
|
19
|
+
* └────────────────────────────┘
|
|
20
|
+
* ┌────────────────────────────┐
|
|
21
|
+
* │ PROFILE C │
|
|
22
|
+
* │ FULL [img] │
|
|
23
|
+
* └────────────────────────────┘
|
|
24
|
+
*/
|
|
25
|
+
export interface BodyShapeOption<T extends string> {
|
|
26
|
+
value: T;
|
|
27
|
+
label: string;
|
|
28
|
+
img?: string | null;
|
|
29
|
+
}
|
|
30
|
+
interface BodyShapeStepMobileProps<T extends string> {
|
|
31
|
+
stepNumber: number;
|
|
32
|
+
totalSteps: number;
|
|
33
|
+
title: string;
|
|
34
|
+
options: BodyShapeOption<T>[];
|
|
35
|
+
selected: T | null;
|
|
36
|
+
onSelect: (v: T) => void;
|
|
37
|
+
t: TranslateFn;
|
|
38
|
+
}
|
|
39
|
+
export declare function BodyShapeStepMobile<T extends string>({ stepNumber, totalSteps, title, options, selected, onSelect, t, }: BodyShapeStepMobileProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
export {};
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import type { TranslateFn } from "../../i18n";
|
|
2
2
|
import type { BodyLandmarks } from "../../pose-detect";
|
|
3
3
|
interface MobileScanningViewProps {
|
|
4
|
-
|
|
4
|
+
/** User's photo URL for snap mode. Omit for text-mode sizing — the
|
|
5
|
+
* product image is shown instead and the MediaPipe skeleton overlay
|
|
6
|
+
* is suppressed. */
|
|
7
|
+
previewUrl?: string;
|
|
8
|
+
/** Falls back to this image when previewUrl is not provided */
|
|
9
|
+
productImage?: string;
|
|
5
10
|
bodyLandmarks: BodyLandmarks | null | undefined;
|
|
6
11
|
sizingDone: boolean;
|
|
7
12
|
onSwitchToManual: () => void;
|
|
8
13
|
t: TranslateFn;
|
|
9
14
|
}
|
|
10
|
-
export declare function MobileScanningView({ previewUrl, bodyLandmarks, sizingDone, onSwitchToManual, t, }: MobileScanningViewProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare function MobileScanningView({ previewUrl, productImage, bodyLandmarks, sizingDone, onSwitchToManual, t, }: MobileScanningViewProps): import("react/jsx-runtime").JSX.Element;
|
|
11
16
|
export {};
|