@primestyleai/tryon 5.10.118 → 5.10.121
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 +615 -594
- package/dist/react/index.js.map +1 -1
- package/dist/react/styles.d.ts +1 -1
- package/dist/storefront/primestyle-tryon.js +28 -6
- package/package.json +1 -1
|
@@ -11371,8 +11371,14 @@ const STYLES$1 = `
|
|
|
11371
11371
|
.ps-tryon-sr-card-v2-value {
|
|
11372
11372
|
font-size: 2.2vw; font-weight: 200; color: var(--ps-text-primary);
|
|
11373
11373
|
line-height: 1; letter-spacing: -0.02em;
|
|
11374
|
+
overflow-wrap: anywhere;
|
|
11374
11375
|
}
|
|
11375
11376
|
.ps-tryon-sr-card-v2.ps-full .ps-tryon-sr-card-v2-value { font-size: 1.8vw; }
|
|
11377
|
+
/* Long combined labels ("MISSY 12 / Standard", "PLUS 16W / Extra Length")
|
|
11378
|
+
overflow the card at 2vw. Drop to ~1.3vw whenever the label is more
|
|
11379
|
+
than ~12 chars so the whole thing fits on one line. */
|
|
11380
|
+
.ps-tryon-sr-card-v2-value.ps-long { font-size: 1.4vw; }
|
|
11381
|
+
.ps-tryon-sr-card-v2.ps-full .ps-tryon-sr-card-v2-value.ps-long { font-size: 1.2vw; }
|
|
11376
11382
|
.ps-tryon-sr-card-v2-value-suffix {
|
|
11377
11383
|
font-size: 0.75vw; font-weight: 500; color: var(--ps-text-secondary);
|
|
11378
11384
|
letter-spacing: 0; margin-left: 0.25vw; white-space: nowrap;
|
|
@@ -13419,11 +13425,20 @@ const STYLES$1 = `
|
|
|
13419
13425
|
.ps-tryon-history-meta { font-size: 0.57vw; color: var(--ps-text-muted); margin-top: 3px; }
|
|
13420
13426
|
.ps-tryon-history-sizing { display: flex; align-items: center; gap: 0.42vw; margin-top: 0.31vw; }
|
|
13421
13427
|
.ps-tryon-history-sizing-reason { font-size: 0.57vw; color: var(--ps-text-secondary); flex: 1; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
|
|
13428
|
+
/* History badge — auto-grows for long combined-variant labels
|
|
13429
|
+
("MISSY 12 / Standard"). Stays circular for short labels (S, M, L,
|
|
13430
|
+
2-digit numerics) via min-width = min-height. Long labels stretch
|
|
13431
|
+
into a rounded pill. */
|
|
13422
13432
|
.ps-tryon-history-size-badge {
|
|
13423
|
-
flex-shrink: 0;
|
|
13424
|
-
|
|
13433
|
+
flex-shrink: 0;
|
|
13434
|
+
min-width: 2.08vw; height: 2.08vw;
|
|
13435
|
+
padding: 0 0.6vw;
|
|
13436
|
+
border-radius: 999px;
|
|
13437
|
+
display: inline-flex; align-items: center; justify-content: center;
|
|
13425
13438
|
background: linear-gradient(135deg, var(--ps-accent), var(--ps-accent-light));
|
|
13426
13439
|
color: #fff; font-size: 0.68vw; font-weight: 700;
|
|
13440
|
+
white-space: nowrap; line-height: 1;
|
|
13441
|
+
max-width: 100%; overflow: hidden; text-overflow: ellipsis;
|
|
13427
13442
|
}
|
|
13428
13443
|
.ps-tryon-history-result-img { width: 3.33vw; height: 4.17vw; border-radius: 0.52vw; object-fit: contain; background: var(--ps-modal-bg, #FFFFFF); flex-shrink: 0; border: 2px solid var(--ps-accent); }
|
|
13429
13444
|
.ps-tryon-history-delete {
|
|
@@ -20276,7 +20291,7 @@ function SectionDetailView({
|
|
|
20276
20291
|
}, children: [
|
|
20277
20292
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "ps-msd-card-size", children: [
|
|
20278
20293
|
displaySizeLabel,
|
|
20279
|
-
!selectedCountry && finalDisplayLength ? ` / ${finalDisplayLength}` : ""
|
|
20294
|
+
!selectedCountry && finalDisplayLength && !displaySizeLabel.includes(" / ") ? ` / ${finalDisplayLength}` : ""
|
|
20280
20295
|
] }),
|
|
20281
20296
|
finalDisplayLength && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "ps-msd-card-size-meta", children: finalDisplayLength }),
|
|
20282
20297
|
selectedCountry && isRecommended && /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "ps-msd-card-size-meta", style: { fontSize: "11px", opacity: 0.7 }, children: [
|
|
@@ -20514,8 +20529,11 @@ function SectionDetailView({
|
|
|
20514
20529
|
borderRadius: "0.5vw",
|
|
20515
20530
|
padding: "0.2vw 0.7vw"
|
|
20516
20531
|
}, children: [
|
|
20517
|
-
|
|
20518
|
-
|
|
20532
|
+
(() => {
|
|
20533
|
+
const isLong = (displaySizeLabel || "").length > 12;
|
|
20534
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { style: { fontSize: isLong ? "1.6vw" : "3.5vw", fontWeight: 300, color: "var(--ps-text-primary)", lineHeight: 1, letterSpacing: "-0.02em" }, children: displaySizeLabel });
|
|
20535
|
+
})(),
|
|
20536
|
+
finalDisplayLength && !displaySizeLabel.includes(" / ") && (() => {
|
|
20519
20537
|
const isNumericLen = /^\d+(\.\d+)?$/.test(String(finalDisplayLength).trim());
|
|
20520
20538
|
const sectionNameLower = (sectionName || "").toLowerCase();
|
|
20521
20539
|
const lengthLabel = isNumericLen ? /pant|trouser|inseam/.test(sectionNameLower) ? t2("Inseam") : t2("Length") : null;
|
|
@@ -21551,7 +21569,11 @@ function SizeResultView({
|
|
|
21551
21569
|
type: "button",
|
|
21552
21570
|
children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "ps-tryon-sr-card-v2-text", children: [
|
|
21553
21571
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "ps-tryon-sr-card-v2-label", children: sectionName }),
|
|
21554
|
-
|
|
21572
|
+
(() => {
|
|
21573
|
+
const labelText = pendingCustomSizes[sectionName]?.displayLabel || singleResult.recommendedSize || "—";
|
|
21574
|
+
const isLong = labelText.length > 12;
|
|
21575
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: `ps-tryon-sr-card-v2-value${isLong ? " ps-long" : ""}`, children: labelText });
|
|
21576
|
+
})(),
|
|
21555
21577
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
21556
21578
|
"span",
|
|
21557
21579
|
{
|