@primestyleai/tryon 5.8.43 → 5.8.44
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
CHANGED
|
@@ -12620,23 +12620,7 @@ function AccessorySizeView({
|
|
|
12620
12620
|
] }) });
|
|
12621
12621
|
}
|
|
12622
12622
|
return /* @__PURE__ */ jsxs("div", { className: "ps-bp-layout", children: [
|
|
12623
|
-
/* @__PURE__ */ jsx("div", { className: "ps-bp-image", style: { position: "relative",
|
|
12624
|
-
/* Photo step: show preview if uploaded, otherwise empty */
|
|
12625
|
-
photoPreview ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
12626
|
-
/* @__PURE__ */ jsx("img", { src: photoPreview, alt: "preview", className: "ps-bp-image-img" }),
|
|
12627
|
-
/* @__PURE__ */ jsx(
|
|
12628
|
-
"button",
|
|
12629
|
-
{
|
|
12630
|
-
onClick: handleRemovePhoto,
|
|
12631
|
-
style: { position: "absolute", top: "0.5vw", right: "0.5vw", width: "1.6vw", height: "1.6vw", borderRadius: "50%", background: "rgba(0,0,0,0.55)", border: "none", color: "#fff", fontSize: "0.9vw", cursor: "pointer", display: "flex", alignItems: "center", justifyContent: "center" },
|
|
12632
|
-
children: "×"
|
|
12633
|
-
}
|
|
12634
|
-
)
|
|
12635
|
-
] }) : null
|
|
12636
|
-
) : (
|
|
12637
|
-
/* Manual step: product image */
|
|
12638
|
-
/* @__PURE__ */ jsx("img", { src: productImage, alt: productTitle, className: "ps-bp-image-img" })
|
|
12639
|
-
) }),
|
|
12623
|
+
step !== "photo" && /* @__PURE__ */ jsx("div", { className: "ps-bp-image", style: { position: "relative" }, children: /* @__PURE__ */ jsx("img", { src: productImage, alt: productTitle, className: "ps-bp-image-img" }) }),
|
|
12640
12624
|
/* @__PURE__ */ jsx("div", { className: "ps-bp-root", children: step === "photo" ? (
|
|
12641
12625
|
/* ── Photo step — identical to BodyProfileView photo step ── */
|
|
12642
12626
|
/* @__PURE__ */ jsxs("div", { className: "ps-bp-wrapper", style: { display: "flex", flexDirection: "column", width: "100%", height: "100%" }, children: [
|
|
@@ -22044,23 +22044,7 @@ function AccessorySizeView({
|
|
|
22044
22044
|
] }) });
|
|
22045
22045
|
}
|
|
22046
22046
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "ps-bp-layout", children: [
|
|
22047
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "ps-bp-image", style: { position: "relative",
|
|
22048
|
-
/* Photo step: show preview if uploaded, otherwise empty */
|
|
22049
|
-
photoPreview ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
22050
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: photoPreview, alt: "preview", className: "ps-bp-image-img" }),
|
|
22051
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
22052
|
-
"button",
|
|
22053
|
-
{
|
|
22054
|
-
onClick: handleRemovePhoto,
|
|
22055
|
-
style: { position: "absolute", top: "0.5vw", right: "0.5vw", width: "1.6vw", height: "1.6vw", borderRadius: "50%", background: "rgba(0,0,0,0.55)", border: "none", color: "#fff", fontSize: "0.9vw", cursor: "pointer", display: "flex", alignItems: "center", justifyContent: "center" },
|
|
22056
|
-
children: "×"
|
|
22057
|
-
}
|
|
22058
|
-
)
|
|
22059
|
-
] }) : null
|
|
22060
|
-
) : (
|
|
22061
|
-
/* Manual step: product image */
|
|
22062
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: productImage, alt: productTitle, className: "ps-bp-image-img" })
|
|
22063
|
-
) }),
|
|
22047
|
+
step !== "photo" && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "ps-bp-image", style: { position: "relative" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: productImage, alt: productTitle, className: "ps-bp-image-img" }) }),
|
|
22064
22048
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "ps-bp-root", children: step === "photo" ? (
|
|
22065
22049
|
/* ── Photo step — identical to BodyProfileView photo step ── */
|
|
22066
22050
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "ps-bp-wrapper", style: { display: "flex", flexDirection: "column", width: "100%", height: "100%" }, children: [
|