@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.
@@ -14090,6 +14090,14 @@ const STYLES$1 = `
14090
14090
  grid-template-columns: repeat(3, 1fr);
14091
14091
  gap: 12px;
14092
14092
  }
14093
+ .ps-cpw-bra-row {
14094
+ display: grid;
14095
+ grid-template-columns: 1fr 1fr;
14096
+ gap: 12px;
14097
+ }
14098
+ .ps-cpw-bra-field {
14099
+ display: flex; flex-direction: column; gap: 6px;
14100
+ }
14093
14101
  .ps-cpw-card {
14094
14102
  display: flex; flex-direction: column; align-items: center;
14095
14103
  background: var(--ps-bg-primary);
@@ -17766,6 +17774,10 @@ function CreateProfileWizard({ onSave, onCancel, t: t2 }) {
17766
17774
  const [midsectionProfile, setMidsectionProfile] = reactExports.useState(null);
17767
17775
  const [seatProfile, setSeatProfile] = reactExports.useState(null);
17768
17776
  const [hipProfile, setHipProfile] = reactExports.useState(null);
17777
+ const [bandSize, setBandSize] = reactExports.useState(null);
17778
+ const [cupSize, setCupSize] = reactExports.useState(null);
17779
+ const BAND_OPTIONS_US = ["28", "30", "32", "34", "36", "38", "40", "42", "44", "46", "48", "50", "52", "54", "56"];
17780
+ const CUP_OPTIONS_US = ["AA", "A", "B", "C", "D", "DD/E", "DDD/F", "G", "H", "I", "J"];
17769
17781
  const isWomen = gender === "female";
17770
17782
  const imgs = isWomen ? BODY_IMAGES.female : BODY_IMAGES.male;
17771
17783
  const validateStep1 = () => {
@@ -17813,6 +17825,8 @@ function CreateProfileWizard({ onSave, onCancel, t: t2 }) {
17813
17825
  chestProfile: chestProfile || void 0,
17814
17826
  midsectionProfile: midsectionProfile || void 0,
17815
17827
  hipProfile: isWomen ? hipProfile || void 0 : seatProfile || void 0,
17828
+ bandSize: isWomen ? bandSize || void 0 : void 0,
17829
+ cupSize: isWomen ? cupSize || void 0 : void 0,
17816
17830
  photoBase64: photoBase64 || void 0
17817
17831
  };
17818
17832
  onSave(data);
@@ -18032,7 +18046,45 @@ function CreateProfileWizard({ onSave, onCancel, t: t2 }) {
18032
18046
  /* @__PURE__ */ jsxRuntimeExports.jsx(ShapeCard, { img: imgs.hips.full ?? null, label: t2("FULL"), selected: hipProfile === "full", onSelect: () => setHipProfile("full") })
18033
18047
  ]
18034
18048
  }
18035
- )
18049
+ ),
18050
+ isWomen && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "ps-cpw-section", children: [
18051
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "ps-cpw-section-head", children: [
18052
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "ps-cpw-section-title", children: t2("BRA SIZE") }),
18053
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "ps-cpw-section-sub", children: t2("Helps us refine bust measurements for tops and dresses") })
18054
+ ] }),
18055
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "ps-cpw-bra-row", children: [
18056
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "ps-cpw-bra-field", children: [
18057
+ /* @__PURE__ */ jsxRuntimeExports.jsx("label", { className: "ps-cpw-field-label", children: t2("BAND") }),
18058
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(
18059
+ "select",
18060
+ {
18061
+ className: "ps-cpw-input",
18062
+ value: bandSize ?? "",
18063
+ onChange: (e) => setBandSize(e.target.value || null),
18064
+ children: [
18065
+ /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: "", children: t2("Select") }),
18066
+ BAND_OPTIONS_US.map((b) => /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: b, children: b }, b))
18067
+ ]
18068
+ }
18069
+ )
18070
+ ] }),
18071
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "ps-cpw-bra-field", children: [
18072
+ /* @__PURE__ */ jsxRuntimeExports.jsx("label", { className: "ps-cpw-field-label", children: t2("CUP") }),
18073
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(
18074
+ "select",
18075
+ {
18076
+ className: "ps-cpw-input",
18077
+ value: cupSize ?? "",
18078
+ onChange: (e) => setCupSize(e.target.value || null),
18079
+ children: [
18080
+ /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: "", children: t2("Select") }),
18081
+ CUP_OPTIONS_US.map((c) => /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: c, children: c }, c))
18082
+ ]
18083
+ }
18084
+ )
18085
+ ] })
18086
+ ] })
18087
+ ] })
18036
18088
  ] }) }),
18037
18089
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "ps-cpw-footer", children: [
18038
18090
  /* @__PURE__ */ jsxRuntimeExports.jsx("button", { type: "button", className: "ps-cpw-back-btn", onClick: handleBack, children: step === 1 ? t2("Cancel") : `← ${t2("Back to Identity")}` }),
@@ -18903,7 +18955,7 @@ function ImageOptionCard({
18903
18955
  );
18904
18956
  }
18905
18957
  const MALE_STEPS = ["basics", "chest", "midsection", "seat"];
18906
- const FEMALE_STEPS = ["basics", "bra", "midsection", "seat", "hips"];
18958
+ const FEMALE_STEPS = ["basics", "midsection", "seat", "hips", "bra"];
18907
18959
  const BAND_SIZES = {
18908
18960
  US: ["28", "30", "32", "34", "36", "38", "40", "42", "44", "46", "48", "50", "52", "54", "56"],
18909
18961
  UK: ["28", "30", "32", "34", "36", "38", "40", "42", "44", "46", "48", "50", "52", "54", "56"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primestyleai/tryon",
3
- "version": "5.8.11",
3
+ "version": "5.8.13",
4
4
  "description": "PrimeStyle Virtual Try-On SDK — React component & Web Component",
5
5
  "type": "module",
6
6
  "main": "dist/primestyle-tryon.js",