@primestyleai/tryon 5.10.138 → 5.10.140
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 +2256 -2247
- package/dist/react/index.js.map +1 -1
- package/dist/react/styles.d.ts +1 -1
- package/dist/storefront/primestyle-tryon.js +12 -2
- package/package.json +1 -1
|
@@ -17754,7 +17754,8 @@ const STYLES$1 = `
|
|
|
17754
17754
|
}
|
|
17755
17755
|
.ps-msd-size-pill {
|
|
17756
17756
|
min-width: 48px;
|
|
17757
|
-
|
|
17757
|
+
max-width: 100%;
|
|
17758
|
+
padding: 10px 14px;
|
|
17758
17759
|
background: transparent;
|
|
17759
17760
|
border: 1.5px solid var(--ps-border-color);
|
|
17760
17761
|
border-radius: 8px;
|
|
@@ -17762,6 +17763,14 @@ const STYLES$1 = `
|
|
|
17762
17763
|
color: var(--ps-text-primary);
|
|
17763
17764
|
cursor: pointer;
|
|
17764
17765
|
transition: all 0.15s;
|
|
17766
|
+
/* Long compound labels like "MISSY 8 / Standard" need to wrap or
|
|
17767
|
+
shrink rather than overflow the row. */
|
|
17768
|
+
white-space: normal;
|
|
17769
|
+
line-height: 1.2;
|
|
17770
|
+
word-break: keep-all;
|
|
17771
|
+
}
|
|
17772
|
+
@media (max-width: 768px) {
|
|
17773
|
+
.ps-msd-size-pill { font-size: 12px; padding: 9px 11px; min-width: 0; }
|
|
17765
17774
|
}
|
|
17766
17775
|
.ps-msd-size-pill:hover {
|
|
17767
17776
|
border-color: var(--ps-accent);
|
|
@@ -20293,7 +20302,8 @@ function SectionDetailView({
|
|
|
20293
20302
|
const backendAvailableSizes = secAny?.availableSizes || [];
|
|
20294
20303
|
const backendAvailableLengths = secAny?.availableLengths || [];
|
|
20295
20304
|
const finalDisplayLength = selectedLength || backendLength;
|
|
20296
|
-
const
|
|
20305
|
+
const allSizesKeys = allSizes ? Object.keys(allSizes) : [];
|
|
20306
|
+
const finalAllSizes = allSizesKeys.length > 0 ? allSizesKeys : backendAvailableSizes.length > 0 ? backendAvailableSizes : chartSizes;
|
|
20297
20307
|
const visibleSizes = (() => {
|
|
20298
20308
|
if (finalAllSizes.length <= 3) return finalAllSizes;
|
|
20299
20309
|
const idx = finalAllSizes.indexOf(recSize);
|