@primestyleai/tryon 4.2.0 → 4.2.1

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.
Files changed (2) hide show
  1. package/dist/react/index.js +23 -22
  2. package/package.json +1 -1
@@ -1195,12 +1195,12 @@ function PrimeStyleTryonInner({
1195
1195
  /* @__PURE__ */ jsx("img", { src: productImage, alt: "Product", className: "ps-tryon-welcome-product" }),
1196
1196
  /* @__PURE__ */ jsx("div", { className: "ps-tryon-welcome-sparkle", children: /* @__PURE__ */ jsx(SparkleIcon, { size: 20 }) })
1197
1197
  ] }),
1198
- /* @__PURE__ */ jsx("h2", { className: "ps-tryon-welcome-title", children: t("Find Your Perfect Size") }),
1199
- /* @__PURE__ */ jsx("p", { className: "ps-tryon-welcome-sub", children: t("Get your size instantly, then try it on") })
1198
+ /* @__PURE__ */ jsx("h2", { className: "ps-tryon-welcome-title", children: t("Find Your Size & See It On You") }),
1199
+ /* @__PURE__ */ jsx("p", { className: "ps-tryon-welcome-sub", children: t("Get the perfect fit, then try it on virtually") })
1200
1200
  ] }),
1201
1201
  /* @__PURE__ */ jsx("div", { className: "ps-tryon-features", children: [
1202
- { icon: /* @__PURE__ */ jsx(RulerIcon, {}), title: t("Get Your Size"), desc: t("Instant fit recommendation") },
1203
- { icon: /* @__PURE__ */ jsx(CameraIcon, {}), title: t("Try It On"), desc: t("See how it looks on you") }
1202
+ { icon: /* @__PURE__ */ jsx(RulerIcon, { size: 22 }), title: t("Get Your Size"), desc: t("Instant fit recommendation") },
1203
+ { icon: /* @__PURE__ */ jsx(CameraIcon, { size: 22 }), title: t("Try It On"), desc: t("See how it looks on you") }
1204
1204
  ].map((f, i) => /* @__PURE__ */ jsxs("div", { className: "ps-tryon-feature", children: [
1205
1205
  /* @__PURE__ */ jsx("div", { className: "ps-tryon-feature-icon", children: f.icon }),
1206
1206
  /* @__PURE__ */ jsx("div", { className: "ps-tryon-feature-title", children: f.title }),
@@ -2046,30 +2046,31 @@ const STYLES = `
2046
2046
  .ps-tryon-view-enter { animation: ps-fade-up 0.35s ease both; }
2047
2047
 
2048
2048
  /* Welcome */
2049
- .ps-tryon-welcome { text-align: center; }
2050
- .ps-tryon-welcome-hero { margin-bottom: 1.04vw; }
2049
+ .ps-tryon-welcome { text-align: center; padding: clamp(8px, 0.5vw, 12px) 0; }
2050
+ .ps-tryon-welcome-hero { margin-bottom: clamp(16px, 1.3vw, 24px); }
2051
2051
  .ps-tryon-welcome-img-wrap { position: relative; display: inline-block; }
2052
- .ps-tryon-welcome-product { width: 6.25vw; height: 7.3vw; object-fit: cover; border-radius: 0.73vw; border: 2px solid #333; }
2053
- .ps-tryon-welcome-sparkle { position: absolute; top: -0.42vw; right: -0.42vw; width: 1.46vw; height: 1.46vw; background: #bb945c; border-radius: 50%; display: flex; align-items: center; justify-content: center; animation: ps-float 3s ease-in-out infinite; }
2054
- .ps-tryon-welcome-sparkle svg { stroke: #111; width: 0.73vw; height: 0.73vw; }
2055
- @keyframes ps-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-0.31vw); } }
2056
- .ps-tryon-welcome-title { font-size: 1.04vw; font-weight: 700; color: #fff; margin: 0.73vw 0 0.21vw; }
2057
- .ps-tryon-welcome-sub { font-size: 0.68vw; color: #999; margin: 0; }
2058
- .ps-tryon-features { display: flex; gap: 0.52vw; margin: 1.04vw 0; }
2059
- .ps-tryon-feature { flex: 1; padding: 0.73vw 0.52vw; border: 1px solid #333; border-radius: 0.63vw; text-align: center; }
2060
- .ps-tryon-feature-icon { margin-bottom: 0.31vw; color: #bb945c; display: flex; justify-content: center; }
2061
- .ps-tryon-feature-icon svg { stroke: currentColor; fill: none; }
2062
- .ps-tryon-feature-title { font-size: 0.63vw; font-weight: 600; color: #fff; margin-bottom: 2px; }
2063
- .ps-tryon-feature-desc { font-size: 0.52vw; color: #999; }
2052
+ .ps-tryon-welcome-product { width: clamp(100px, 9vw, 160px); height: clamp(120px, 10.5vw, 190px); object-fit: cover; border-radius: clamp(10px, 0.9vw, 16px); border: 2px solid #333; box-shadow: 0 8px 30px rgba(0,0,0,0.4); }
2053
+ .ps-tryon-welcome-sparkle { position: absolute; top: clamp(-6px, -0.5vw, -4px); right: clamp(-6px, -0.5vw, -4px); width: clamp(22px, 1.8vw, 30px); height: clamp(22px, 1.8vw, 30px); background: #bb945c; border-radius: 50%; display: flex; align-items: center; justify-content: center; animation: ps-float 3s ease-in-out infinite; }
2054
+ .ps-tryon-welcome-sparkle svg { stroke: #111; width: clamp(10px, 0.9vw, 14px); height: clamp(10px, 0.9vw, 14px); }
2055
+ @keyframes ps-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
2056
+ .ps-tryon-welcome-title { font-size: clamp(18px, 1.4vw, 24px); font-weight: 700; color: #fff; margin: clamp(12px, 1vw, 18px) 0 clamp(4px, 0.3vw, 6px); letter-spacing: -0.01em; }
2057
+ .ps-tryon-welcome-sub { font-size: clamp(13px, 0.9vw, 16px); color: #999; margin: 0; }
2058
+ .ps-tryon-features { display: flex; gap: clamp(8px, 0.7vw, 12px); margin: clamp(16px, 1.3vw, 24px) 0; }
2059
+ .ps-tryon-feature { flex: 1; padding: clamp(14px, 1vw, 18px) clamp(10px, 0.7vw, 14px); border: 1px solid #333; border-radius: clamp(10px, 0.8vw, 14px); text-align: center; transition: border-color 0.2s; }
2060
+ .ps-tryon-feature:hover { border-color: #555; }
2061
+ .ps-tryon-feature-icon { margin-bottom: clamp(6px, 0.4vw, 8px); color: #bb945c; display: flex; justify-content: center; }
2062
+ .ps-tryon-feature-icon svg { stroke: currentColor; fill: none; width: clamp(18px, 1.2vw, 22px); height: clamp(18px, 1.2vw, 22px); }
2063
+ .ps-tryon-feature-title { font-size: clamp(13px, 0.85vw, 15px); font-weight: 600; color: #fff; margin-bottom: 2px; }
2064
+ .ps-tryon-feature-desc { font-size: clamp(11px, 0.7vw, 13px); color: #999; }
2064
2065
  .ps-tryon-cta {
2065
- width: 100%; padding: 0.73vw; background: #bb945c; color: #111; border: none;
2066
- border-radius: 0.63vw; font-size: 0.78vw; font-weight: 700; cursor: pointer;
2067
- display: flex; align-items: center; justify-content: center; gap: 0.42vw; transition: all 0.2s;
2066
+ width: 100%; padding: clamp(14px, 1vw, 18px); background: #bb945c; color: #111; border: none;
2067
+ border-radius: clamp(10px, 0.8vw, 14px); font-size: clamp(14px, 1vw, 17px); font-weight: 700; cursor: pointer;
2068
+ display: flex; align-items: center; justify-content: center; gap: clamp(6px, 0.5vw, 10px); transition: all 0.2s;
2068
2069
  font-family: var(--ps-modal-font, system-ui, sans-serif);
2069
2070
  }
2070
2071
  .ps-tryon-cta:hover { background: #a07d4e; transform: translateY(-1px); }
2071
2072
  .ps-tryon-cta svg { stroke: #111; }
2072
- .ps-tryon-welcome-note { font-size: 0.57vw; color: #666; margin-top: 0.63vw; }
2073
+ .ps-tryon-welcome-note { font-size: clamp(11px, 0.7vw, 13px); color: #666; margin-top: clamp(10px, 0.7vw, 14px); }
2073
2074
 
2074
2075
  /* Upload */
2075
2076
  .ps-tryon-upload {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primestyleai/tryon",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "description": "PrimeStyle Virtual Try-On SDK — React component & Web Component",
5
5
  "type": "module",
6
6
  "main": "dist/primestyle-tryon.js",