@primestyleai/tryon 5.10.116 → 5.10.117
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.js +223 -193
- package/dist/react/index.js.map +1 -1
- package/dist/react/styles.d.ts +1 -1
- package/dist/storefront/primestyle-tryon.js +46 -16
- package/package.json +1 -1
|
@@ -18048,6 +18048,21 @@ const STYLES$1 = `
|
|
|
18048
18048
|
color: var(--ps-error-color); font-size: 0.73vw; margin: 0;
|
|
18049
18049
|
}
|
|
18050
18050
|
|
|
18051
|
+
/* Photo step → manual measurements escape hatch (desktop only — mobile
|
|
18052
|
+
uses MobileBottomTabs). Subtle inline link, sits just above the
|
|
18053
|
+
back/analyze nav row. */
|
|
18054
|
+
.ps-bp-photo-manual-switch {
|
|
18055
|
+
text-align: center; padding: 0.5vw 0 0.3vw;
|
|
18056
|
+
font-size: 0.78vw; color: var(--ps-text-muted);
|
|
18057
|
+
}
|
|
18058
|
+
.ps-bp-photo-manual-link {
|
|
18059
|
+
background: none; border: none; padding: 0;
|
|
18060
|
+
color: var(--ps-accent); font-weight: 600; cursor: pointer;
|
|
18061
|
+
font-size: inherit; font-family: inherit; text-decoration: underline;
|
|
18062
|
+
text-underline-offset: 2px;
|
|
18063
|
+
}
|
|
18064
|
+
.ps-bp-photo-manual-link:hover { color: var(--ps-accent-hover); }
|
|
18065
|
+
|
|
18051
18066
|
/* Navigation — back left, next right */
|
|
18052
18067
|
.ps-bp-nav {
|
|
18053
18068
|
display: flex; align-items: center; margin-top: auto;
|
|
@@ -25223,7 +25238,7 @@ function BodyProfileView({
|
|
|
25223
25238
|
t: t2
|
|
25224
25239
|
}) {
|
|
25225
25240
|
const steps = isWomen ? FEMALE_STEPS : MALE_STEPS;
|
|
25226
|
-
const [step, setStep] = reactExports.useState("
|
|
25241
|
+
const [step, setStep] = reactExports.useState("photo");
|
|
25227
25242
|
step === "photo" ? 0 : steps.indexOf(step);
|
|
25228
25243
|
const isMobile = useIsMobile();
|
|
25229
25244
|
const imperial = isImperial(sizingCountry);
|
|
@@ -26339,23 +26354,38 @@ function BodyProfileView({
|
|
|
26339
26354
|
}
|
|
26340
26355
|
)
|
|
26341
26356
|
] })
|
|
26342
|
-
] }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
26343
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("
|
|
26344
|
-
|
|
26357
|
+
] }) : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
26358
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "ps-bp-photo-manual-switch", children: [
|
|
26359
|
+
t2("Prefer not to upload a photo?"),
|
|
26345
26360
|
" ",
|
|
26346
|
-
|
|
26361
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
26362
|
+
"button",
|
|
26363
|
+
{
|
|
26364
|
+
type: "button",
|
|
26365
|
+
className: "ps-bp-photo-manual-link",
|
|
26366
|
+
onClick: () => setStep("basics"),
|
|
26367
|
+
children: t2("Enter measurements manually")
|
|
26368
|
+
}
|
|
26369
|
+
)
|
|
26347
26370
|
] }),
|
|
26348
|
-
/* @__PURE__ */ jsxRuntimeExports.
|
|
26349
|
-
"button",
|
|
26350
|
-
|
|
26351
|
-
|
|
26352
|
-
|
|
26353
|
-
|
|
26354
|
-
|
|
26355
|
-
|
|
26356
|
-
|
|
26357
|
-
|
|
26358
|
-
|
|
26371
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "ps-bp-nav", children: [
|
|
26372
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("button", { className: "ps-bp-back-btn", onClick: handleBackStep, type: "button", children: [
|
|
26373
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "ps-bp-back-arrow", children: "←" }),
|
|
26374
|
+
" ",
|
|
26375
|
+
t2("Back")
|
|
26376
|
+
] }),
|
|
26377
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
26378
|
+
"button",
|
|
26379
|
+
{
|
|
26380
|
+
className: `ps-bp-next-btn${analyzeDisabled ? " ps-bp-btn-disabled" : ""}`,
|
|
26381
|
+
onClick: handleNext,
|
|
26382
|
+
disabled: analyzeDisabled,
|
|
26383
|
+
type: "button",
|
|
26384
|
+
title: analyzeDisabled ? analyzeMissing.join(" · ") : void 0,
|
|
26385
|
+
children: analyzeLabel
|
|
26386
|
+
}
|
|
26387
|
+
)
|
|
26388
|
+
] })
|
|
26359
26389
|
] })
|
|
26360
26390
|
] });
|
|
26361
26391
|
}
|