@primestyleai/tryon 4.7.4 → 4.7.5
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 +68 -17
- package/package.json +1 -1
package/dist/react/index.js
CHANGED
|
@@ -5659,24 +5659,75 @@ function BodyProfileView({
|
|
|
5659
5659
|
const canProceed = step === "basics" ? true : step === "chest" ? !!chestProfile : step === "midsection" ? !!midsectionProfile : step === "seat" ? !!seatProfile : step === "hips" ? !!hipProfile : step === "bra" ? !!(bandSize && cupSize) : step === "photo" ? true : false;
|
|
5660
5660
|
const isLastStep = step === steps[steps.length - 1];
|
|
5661
5661
|
return /* @__PURE__ */ jsx("div", { className: "ps-bp-wrapper", children: /* @__PURE__ */ jsxs("div", { className: "ps-bp-layout", children: [
|
|
5662
|
-
step === "photo" ? /* @__PURE__ */ jsx("div", { className: "ps-tryon-v2-bg", style: { background: "var(--ps-bg-secondary)", display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */
|
|
5663
|
-
|
|
5664
|
-
|
|
5665
|
-
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
|
|
5669
|
-
/* @__PURE__ */
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
5675
|
-
/* @__PURE__ */
|
|
5676
|
-
|
|
5662
|
+
step === "photo" ? /* @__PURE__ */ jsx("div", { className: "ps-tryon-v2-bg", style: { background: "var(--ps-bg-secondary)", display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ jsxs("div", { style: { display: "flex", width: "92%", gap: "0.8vw", alignItems: "stretch" }, children: [
|
|
5663
|
+
/* @__PURE__ */ jsx(
|
|
5664
|
+
"div",
|
|
5665
|
+
{
|
|
5666
|
+
className: `ps-tryon-guide-drop-v2${photoPreview ? " ps-has" : ""}`,
|
|
5667
|
+
onClick: () => !photoPreview && fileInputRef.current?.click(),
|
|
5668
|
+
style: { flex: "1", minHeight: "18vw" },
|
|
5669
|
+
children: photoPreview ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5670
|
+
/* @__PURE__ */ jsx("img", { src: photoPreview, alt: "preview", className: "ps-tryon-guide-drop-v2-img" }),
|
|
5671
|
+
/* @__PURE__ */ jsx("button", { className: "ps-tryon-guide-drop-v2-remove", onClick: (e) => {
|
|
5672
|
+
e.stopPropagation();
|
|
5673
|
+
handleRemovePhoto();
|
|
5674
|
+
}, children: "×" })
|
|
5675
|
+
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5676
|
+
/* @__PURE__ */ jsx(UploadIcon, { size: 28 }),
|
|
5677
|
+
/* @__PURE__ */ jsx("span", { className: "ps-tryon-guide-drop-v2-text", children: t("Upload your photo") }),
|
|
5678
|
+
/* @__PURE__ */ jsx("span", { className: "ps-tryon-guide-drop-v2-hint", children: t("Full body, front facing") })
|
|
5679
|
+
] })
|
|
5680
|
+
}
|
|
5681
|
+
),
|
|
5682
|
+
/* @__PURE__ */ jsxs("div", { style: { flex: "1", display: "flex", flexDirection: "column", gap: "0.6vw", fontSize: "0.65vw", color: "var(--ps-text-secondary)" }, children: [
|
|
5683
|
+
/* @__PURE__ */ jsx("div", { style: { fontWeight: 600, fontSize: "0.75vw", color: "var(--ps-text-primary)", marginBottom: "0.2vw" }, children: t("Photo Guidelines") }),
|
|
5684
|
+
/* @__PURE__ */ jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "0.4vw" }, children: [
|
|
5685
|
+
/* @__PURE__ */ jsxs("div", { style: { fontWeight: 600, color: "#16a34a", fontSize: "0.7vw" }, children: [
|
|
5686
|
+
"✓ ",
|
|
5687
|
+
t("Do")
|
|
5688
|
+
] }),
|
|
5689
|
+
/* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "flex-start", gap: "0.3vw" }, children: [
|
|
5690
|
+
/* @__PURE__ */ jsx("span", { style: { color: "#16a34a" }, children: "•" }),
|
|
5691
|
+
/* @__PURE__ */ jsx("span", { children: t("Stand straight, arms at sides") })
|
|
5692
|
+
] }),
|
|
5693
|
+
/* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "flex-start", gap: "0.3vw" }, children: [
|
|
5694
|
+
/* @__PURE__ */ jsx("span", { style: { color: "#16a34a" }, children: "•" }),
|
|
5695
|
+
/* @__PURE__ */ jsx("span", { children: t("Full body visible, head to toe") })
|
|
5696
|
+
] }),
|
|
5697
|
+
/* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "flex-start", gap: "0.3vw" }, children: [
|
|
5698
|
+
/* @__PURE__ */ jsx("span", { style: { color: "#16a34a" }, children: "•" }),
|
|
5699
|
+
/* @__PURE__ */ jsx("span", { children: t("Well-lit, plain background") })
|
|
5700
|
+
] }),
|
|
5701
|
+
/* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "flex-start", gap: "0.3vw" }, children: [
|
|
5702
|
+
/* @__PURE__ */ jsx("span", { style: { color: "#16a34a" }, children: "•" }),
|
|
5703
|
+
/* @__PURE__ */ jsx("span", { children: t("Wear fitted clothing") })
|
|
5704
|
+
] })
|
|
5705
|
+
] }),
|
|
5706
|
+
/* @__PURE__ */ jsx("div", { style: { width: "100%", height: "1px", background: "var(--ps-border-color)", margin: "0.2vw 0" } }),
|
|
5707
|
+
/* @__PURE__ */ jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "0.4vw" }, children: [
|
|
5708
|
+
/* @__PURE__ */ jsxs("div", { style: { fontWeight: 600, color: "#dc2626", fontSize: "0.7vw" }, children: [
|
|
5709
|
+
"✗ ",
|
|
5710
|
+
t("Don't")
|
|
5711
|
+
] }),
|
|
5712
|
+
/* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "flex-start", gap: "0.3vw" }, children: [
|
|
5713
|
+
/* @__PURE__ */ jsx("span", { style: { color: "#dc2626" }, children: "•" }),
|
|
5714
|
+
/* @__PURE__ */ jsx("span", { children: t("No sitting or crouching poses") })
|
|
5715
|
+
] }),
|
|
5716
|
+
/* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "flex-start", gap: "0.3vw" }, children: [
|
|
5717
|
+
/* @__PURE__ */ jsx("span", { style: { color: "#dc2626" }, children: "•" }),
|
|
5718
|
+
/* @__PURE__ */ jsx("span", { children: t("No group photos") })
|
|
5719
|
+
] }),
|
|
5720
|
+
/* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "flex-start", gap: "0.3vw" }, children: [
|
|
5721
|
+
/* @__PURE__ */ jsx("span", { style: { color: "#dc2626" }, children: "•" }),
|
|
5722
|
+
/* @__PURE__ */ jsx("span", { children: t("No heavy filters or edits") })
|
|
5723
|
+
] }),
|
|
5724
|
+
/* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "flex-start", gap: "0.3vw" }, children: [
|
|
5725
|
+
/* @__PURE__ */ jsx("span", { style: { color: "#dc2626" }, children: "•" }),
|
|
5726
|
+
/* @__PURE__ */ jsx("span", { children: t("No loose or baggy clothing") })
|
|
5727
|
+
] })
|
|
5677
5728
|
] })
|
|
5678
|
-
}
|
|
5679
|
-
) }) : /* @__PURE__ */ jsx("div", { className: "ps-bp-image", children: /* @__PURE__ */ jsx("img", { src: productImage, alt: productTitle, className: "ps-bp-image-img" }) }),
|
|
5729
|
+
] })
|
|
5730
|
+
] }) }) : /* @__PURE__ */ jsx("div", { className: "ps-bp-image", children: /* @__PURE__ */ jsx("img", { src: productImage, alt: productTitle, className: "ps-bp-image-img" }) }),
|
|
5680
5731
|
/* @__PURE__ */ jsx(
|
|
5681
5732
|
"input",
|
|
5682
5733
|
{
|