@primestyleai/tryon 3.6.3 → 3.6.4
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 +3 -3
- package/package.json +1 -1
package/dist/react/index.js
CHANGED
|
@@ -961,9 +961,9 @@ function PrimeStyleTryonInner({
|
|
|
961
961
|
if (["shoeEU", "shoeUS", "shoeUK"].includes(field.key)) {
|
|
962
962
|
return /* @__PURE__ */ jsx(InputRow, { label: `${field.label} *`, fieldKey: field.key, placeholder: field.placeholder }, field.key);
|
|
963
963
|
}
|
|
964
|
-
const
|
|
965
|
-
const phIn =
|
|
966
|
-
const placeholder = isCm ? field.placeholder || "" : `e.g. ${phIn}
|
|
964
|
+
const phNum = parseFloat(field.placeholder?.replace(/[^0-9.]/g, "") || "");
|
|
965
|
+
const phIn = !isNaN(phNum) && phNum > 0 && field.unit === "cm" ? String(Math.round(phNum / 2.54)) : "";
|
|
966
|
+
const placeholder = isCm ? field.placeholder || "" : phIn ? `e.g. ${phIn}` : field.placeholder || "";
|
|
967
967
|
return /* @__PURE__ */ jsx(
|
|
968
968
|
InputRow,
|
|
969
969
|
{
|