@primestyleai/tryon 5.8.11 → 5.8.13
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
|
@@ -4666,6 +4666,14 @@ const STYLES = `
|
|
|
4666
4666
|
grid-template-columns: repeat(3, 1fr);
|
|
4667
4667
|
gap: 12px;
|
|
4668
4668
|
}
|
|
4669
|
+
.ps-cpw-bra-row {
|
|
4670
|
+
display: grid;
|
|
4671
|
+
grid-template-columns: 1fr 1fr;
|
|
4672
|
+
gap: 12px;
|
|
4673
|
+
}
|
|
4674
|
+
.ps-cpw-bra-field {
|
|
4675
|
+
display: flex; flex-direction: column; gap: 6px;
|
|
4676
|
+
}
|
|
4669
4677
|
.ps-cpw-card {
|
|
4670
4678
|
display: flex; flex-direction: column; align-items: center;
|
|
4671
4679
|
background: var(--ps-bg-primary);
|
|
@@ -8342,6 +8350,10 @@ function CreateProfileWizard({ onSave, onCancel, t }) {
|
|
|
8342
8350
|
const [midsectionProfile, setMidsectionProfile] = useState(null);
|
|
8343
8351
|
const [seatProfile, setSeatProfile] = useState(null);
|
|
8344
8352
|
const [hipProfile, setHipProfile] = useState(null);
|
|
8353
|
+
const [bandSize, setBandSize] = useState(null);
|
|
8354
|
+
const [cupSize, setCupSize] = useState(null);
|
|
8355
|
+
const BAND_OPTIONS_US = ["28", "30", "32", "34", "36", "38", "40", "42", "44", "46", "48", "50", "52", "54", "56"];
|
|
8356
|
+
const CUP_OPTIONS_US = ["AA", "A", "B", "C", "D", "DD/E", "DDD/F", "G", "H", "I", "J"];
|
|
8345
8357
|
const isWomen = gender === "female";
|
|
8346
8358
|
const imgs = isWomen ? BODY_IMAGES.female : BODY_IMAGES.male;
|
|
8347
8359
|
const validateStep1 = () => {
|
|
@@ -8389,6 +8401,8 @@ function CreateProfileWizard({ onSave, onCancel, t }) {
|
|
|
8389
8401
|
chestProfile: chestProfile || void 0,
|
|
8390
8402
|
midsectionProfile: midsectionProfile || void 0,
|
|
8391
8403
|
hipProfile: isWomen ? hipProfile || void 0 : seatProfile || void 0,
|
|
8404
|
+
bandSize: isWomen ? bandSize || void 0 : void 0,
|
|
8405
|
+
cupSize: isWomen ? cupSize || void 0 : void 0,
|
|
8392
8406
|
photoBase64: photoBase64 || void 0
|
|
8393
8407
|
};
|
|
8394
8408
|
onSave(data);
|
|
@@ -8608,7 +8622,45 @@ function CreateProfileWizard({ onSave, onCancel, t }) {
|
|
|
8608
8622
|
/* @__PURE__ */ jsx(ShapeCard, { img: imgs.hips.full ?? null, label: t("FULL"), selected: hipProfile === "full", onSelect: () => setHipProfile("full") })
|
|
8609
8623
|
]
|
|
8610
8624
|
}
|
|
8611
|
-
)
|
|
8625
|
+
),
|
|
8626
|
+
isWomen && /* @__PURE__ */ jsxs("div", { className: "ps-cpw-section", children: [
|
|
8627
|
+
/* @__PURE__ */ jsxs("div", { className: "ps-cpw-section-head", children: [
|
|
8628
|
+
/* @__PURE__ */ jsx("div", { className: "ps-cpw-section-title", children: t("BRA SIZE") }),
|
|
8629
|
+
/* @__PURE__ */ jsx("div", { className: "ps-cpw-section-sub", children: t("Helps us refine bust measurements for tops and dresses") })
|
|
8630
|
+
] }),
|
|
8631
|
+
/* @__PURE__ */ jsxs("div", { className: "ps-cpw-bra-row", children: [
|
|
8632
|
+
/* @__PURE__ */ jsxs("div", { className: "ps-cpw-bra-field", children: [
|
|
8633
|
+
/* @__PURE__ */ jsx("label", { className: "ps-cpw-field-label", children: t("BAND") }),
|
|
8634
|
+
/* @__PURE__ */ jsxs(
|
|
8635
|
+
"select",
|
|
8636
|
+
{
|
|
8637
|
+
className: "ps-cpw-input",
|
|
8638
|
+
value: bandSize ?? "",
|
|
8639
|
+
onChange: (e) => setBandSize(e.target.value || null),
|
|
8640
|
+
children: [
|
|
8641
|
+
/* @__PURE__ */ jsx("option", { value: "", children: t("Select") }),
|
|
8642
|
+
BAND_OPTIONS_US.map((b) => /* @__PURE__ */ jsx("option", { value: b, children: b }, b))
|
|
8643
|
+
]
|
|
8644
|
+
}
|
|
8645
|
+
)
|
|
8646
|
+
] }),
|
|
8647
|
+
/* @__PURE__ */ jsxs("div", { className: "ps-cpw-bra-field", children: [
|
|
8648
|
+
/* @__PURE__ */ jsx("label", { className: "ps-cpw-field-label", children: t("CUP") }),
|
|
8649
|
+
/* @__PURE__ */ jsxs(
|
|
8650
|
+
"select",
|
|
8651
|
+
{
|
|
8652
|
+
className: "ps-cpw-input",
|
|
8653
|
+
value: cupSize ?? "",
|
|
8654
|
+
onChange: (e) => setCupSize(e.target.value || null),
|
|
8655
|
+
children: [
|
|
8656
|
+
/* @__PURE__ */ jsx("option", { value: "", children: t("Select") }),
|
|
8657
|
+
CUP_OPTIONS_US.map((c) => /* @__PURE__ */ jsx("option", { value: c, children: c }, c))
|
|
8658
|
+
]
|
|
8659
|
+
}
|
|
8660
|
+
)
|
|
8661
|
+
] })
|
|
8662
|
+
] })
|
|
8663
|
+
] })
|
|
8612
8664
|
] }) }),
|
|
8613
8665
|
/* @__PURE__ */ jsxs("div", { className: "ps-cpw-footer", children: [
|
|
8614
8666
|
/* @__PURE__ */ jsx("button", { type: "button", className: "ps-cpw-back-btn", onClick: handleBack, children: step === 1 ? t("Cancel") : `← ${t("Back to Identity")}` }),
|
|
@@ -9479,7 +9531,7 @@ function ImageOptionCard({
|
|
|
9479
9531
|
);
|
|
9480
9532
|
}
|
|
9481
9533
|
const MALE_STEPS = ["basics", "chest", "midsection", "seat"];
|
|
9482
|
-
const FEMALE_STEPS = ["basics", "
|
|
9534
|
+
const FEMALE_STEPS = ["basics", "midsection", "seat", "hips", "bra"];
|
|
9483
9535
|
const BAND_SIZES = {
|
|
9484
9536
|
US: ["28", "30", "32", "34", "36", "38", "40", "42", "44", "46", "48", "50", "52", "54", "56"],
|
|
9485
9537
|
UK: ["28", "30", "32", "34", "36", "38", "40", "42", "44", "46", "48", "50", "52", "54", "56"],
|