@primestyleai/tryon 3.6.2 → 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 +4 -4
- package/package.json +1 -1
package/dist/react/index.js
CHANGED
|
@@ -94,7 +94,7 @@ function SvgIcon({ d, size = 18, strokeWidth = 2 }) {
|
|
|
94
94
|
}
|
|
95
95
|
);
|
|
96
96
|
}
|
|
97
|
-
function CameraIcon({ size }) {
|
|
97
|
+
function CameraIcon({ size = 18 }) {
|
|
98
98
|
return /* @__PURE__ */ jsxs("svg", { width: size, height: size, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: [
|
|
99
99
|
/* @__PURE__ */ jsx("path", { d: "M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z" }),
|
|
100
100
|
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "13", r: "4" })
|
|
@@ -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
|
{
|