@primestyleai/tryon 5.10.137 → 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 +2480 -2402
- package/dist/react/index.js.map +1 -1
- package/dist/react/styles.d.ts +1 -1
- package/dist/storefront/primestyle-tryon.js +81 -2
- package/package.json +1 -1
|
@@ -13571,6 +13571,75 @@ const STYLES$1 = `
|
|
|
13571
13571
|
}
|
|
13572
13572
|
.ps-tryon-drawer-clear:hover { color: var(--ps-error-color); }
|
|
13573
13573
|
|
|
13574
|
+
/* ──────────────────────────────────────────────────────────────────
|
|
13575
|
+
Mobile sizing for the My Profiles / History drawer. Desktop uses vw
|
|
13576
|
+
units which collapse to 1–4 px on a 375 px phone. Override every
|
|
13577
|
+
rule with px-based values so the list is actually readable.
|
|
13578
|
+
────────────────────────────────────────────────────────────────── */
|
|
13579
|
+
@media (max-width: 768px) {
|
|
13580
|
+
.ps-tryon-drawer { padding: 16px 14px; }
|
|
13581
|
+
.ps-tryon-drawer-header { gap: 10px; padding-bottom: 12px; margin-bottom: 12px; }
|
|
13582
|
+
.ps-tryon-drawer-back {
|
|
13583
|
+
width: 36px; height: 36px; border-radius: 8px;
|
|
13584
|
+
}
|
|
13585
|
+
.ps-tryon-drawer-back svg { width: 18px; height: 18px; }
|
|
13586
|
+
.ps-tryon-drawer-title { font-size: 17px; font-weight: 600; }
|
|
13587
|
+
.ps-tryon-drawer-add-btn {
|
|
13588
|
+
width: 32px; height: 32px; border-radius: 8px; font-size: 20px;
|
|
13589
|
+
}
|
|
13590
|
+
.ps-tryon-drawer-list { gap: 10px; }
|
|
13591
|
+
.ps-tryon-drawer-empty { padding: 32px 16px; font-size: 14px; }
|
|
13592
|
+
|
|
13593
|
+
.ps-tryon-drawer-create {
|
|
13594
|
+
padding: 14px;
|
|
13595
|
+
border-radius: 10px;
|
|
13596
|
+
font-size: 14px;
|
|
13597
|
+
gap: 6px;
|
|
13598
|
+
margin-bottom: 4px;
|
|
13599
|
+
}
|
|
13600
|
+
.ps-tryon-drawer-clear {
|
|
13601
|
+
font-size: 13px; padding: 12px 0; margin-top: 6px;
|
|
13602
|
+
}
|
|
13603
|
+
|
|
13604
|
+
.ps-tryon-profile-item {
|
|
13605
|
+
gap: 12px; padding: 14px; border-radius: 12px;
|
|
13606
|
+
}
|
|
13607
|
+
.ps-tryon-profile-avatar {
|
|
13608
|
+
width: 44px; height: 44px;
|
|
13609
|
+
}
|
|
13610
|
+
.ps-tryon-profile-avatar svg { width: 22px; height: 22px; }
|
|
13611
|
+
.ps-tryon-profile-name { font-size: 15px; }
|
|
13612
|
+
.ps-tryon-profile-detail { font-size: 12px; margin-top: 3px; }
|
|
13613
|
+
.ps-tryon-profile-item > svg:last-child { width: 18px; height: 18px; }
|
|
13614
|
+
|
|
13615
|
+
.ps-tryon-history-item {
|
|
13616
|
+
gap: 12px; padding: 12px; border-radius: 12px;
|
|
13617
|
+
}
|
|
13618
|
+
.ps-tryon-history-images { gap: 6px; }
|
|
13619
|
+
.ps-tryon-history-thumb,
|
|
13620
|
+
.ps-tryon-history-result-img {
|
|
13621
|
+
width: 64px; height: 80px; border-radius: 8px;
|
|
13622
|
+
}
|
|
13623
|
+
.ps-tryon-history-product { font-size: 14px; line-height: 1.3; }
|
|
13624
|
+
.ps-tryon-history-meta { font-size: 11px; margin-top: 4px; }
|
|
13625
|
+
.ps-tryon-history-sizing { gap: 8px; margin-top: 6px; }
|
|
13626
|
+
.ps-tryon-history-sizing-reason { font-size: 11px; }
|
|
13627
|
+
.ps-tryon-history-size-badge {
|
|
13628
|
+
min-width: 32px; height: 32px; padding: 0 10px; font-size: 12px;
|
|
13629
|
+
}
|
|
13630
|
+
.ps-tryon-history-sections { gap: 6px; margin-top: 6px; }
|
|
13631
|
+
.ps-tryon-history-section-chip {
|
|
13632
|
+
font-size: 11px; padding: 3px 8px; border-radius: 6px;
|
|
13633
|
+
}
|
|
13634
|
+
.ps-tryon-history-tryon-badge {
|
|
13635
|
+
font-size: 10px; padding: 2px 7px; border-radius: 5px; margin-top: 6px;
|
|
13636
|
+
}
|
|
13637
|
+
.ps-tryon-history-delete {
|
|
13638
|
+
width: 32px; height: 32px; border-radius: 6px;
|
|
13639
|
+
}
|
|
13640
|
+
.ps-tryon-history-delete svg { width: 16px; height: 16px; }
|
|
13641
|
+
}
|
|
13642
|
+
|
|
13574
13643
|
/* Profile detail modal — portaled to body, sits ABOVE the main modal
|
|
13575
13644
|
overlay (which has z-index 2147483647). Equal z-index + later DOM
|
|
13576
13645
|
order means this stacks on top. Same trick as the language dropdown. */
|
|
@@ -17685,7 +17754,8 @@ const STYLES$1 = `
|
|
|
17685
17754
|
}
|
|
17686
17755
|
.ps-msd-size-pill {
|
|
17687
17756
|
min-width: 48px;
|
|
17688
|
-
|
|
17757
|
+
max-width: 100%;
|
|
17758
|
+
padding: 10px 14px;
|
|
17689
17759
|
background: transparent;
|
|
17690
17760
|
border: 1.5px solid var(--ps-border-color);
|
|
17691
17761
|
border-radius: 8px;
|
|
@@ -17693,6 +17763,14 @@ const STYLES$1 = `
|
|
|
17693
17763
|
color: var(--ps-text-primary);
|
|
17694
17764
|
cursor: pointer;
|
|
17695
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; }
|
|
17696
17774
|
}
|
|
17697
17775
|
.ps-msd-size-pill:hover {
|
|
17698
17776
|
border-color: var(--ps-accent);
|
|
@@ -20224,7 +20302,8 @@ function SectionDetailView({
|
|
|
20224
20302
|
const backendAvailableSizes = secAny?.availableSizes || [];
|
|
20225
20303
|
const backendAvailableLengths = secAny?.availableLengths || [];
|
|
20226
20304
|
const finalDisplayLength = selectedLength || backendLength;
|
|
20227
|
-
const
|
|
20305
|
+
const allSizesKeys = allSizes ? Object.keys(allSizes) : [];
|
|
20306
|
+
const finalAllSizes = allSizesKeys.length > 0 ? allSizesKeys : backendAvailableSizes.length > 0 ? backendAvailableSizes : chartSizes;
|
|
20228
20307
|
const visibleSizes = (() => {
|
|
20229
20308
|
if (finalAllSizes.length <= 3) return finalAllSizes;
|
|
20230
20309
|
const idx = finalAllSizes.indexOf(recSize);
|