@primestyleai/tryon 5.8.28 → 5.8.29
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 +70 -61
- package/dist/react/styles.d.ts +1 -1
- package/dist/storefront/primestyle-tryon.js +70 -61
- package/package.json +1 -1
|
@@ -10389,10 +10389,11 @@ const STYLES$1 = `
|
|
|
10389
10389
|
height: 100%; overflow: hidden;
|
|
10390
10390
|
}
|
|
10391
10391
|
|
|
10392
|
-
/* Left image column — proper contained display
|
|
10392
|
+
/* Left image column — proper contained display.
|
|
10393
|
+
No background — the product/try-on image sits directly on the modal
|
|
10394
|
+
surface without a gray placeholder box behind it. */
|
|
10393
10395
|
.ps-tryon-v2-bg {
|
|
10394
10396
|
flex: 0 0 43%; position: relative; min-width: 0;
|
|
10395
|
-
background: var(--ps-bg-secondary);
|
|
10396
10397
|
border-radius: 0.9vw; overflow: hidden;
|
|
10397
10398
|
display: flex; align-items: center; justify-content: center;
|
|
10398
10399
|
}
|
|
@@ -13940,10 +13941,11 @@ const STYLES$1 = `
|
|
|
13940
13941
|
}
|
|
13941
13942
|
.ps-cpw-field {
|
|
13942
13943
|
display: flex; flex-direction: column;
|
|
13943
|
-
gap:
|
|
13944
|
+
gap: clamp(4px, 0.4vw, 10px);
|
|
13944
13945
|
}
|
|
13945
13946
|
.ps-cpw-field-label {
|
|
13946
|
-
font-size:
|
|
13947
|
+
font-size: clamp(9px, 0.62vw, 12px);
|
|
13948
|
+
font-weight: 700;
|
|
13947
13949
|
letter-spacing: 0.14em; text-transform: uppercase;
|
|
13948
13950
|
color: var(--ps-text-muted);
|
|
13949
13951
|
}
|
|
@@ -13951,8 +13953,10 @@ const STYLES$1 = `
|
|
|
13951
13953
|
background: transparent; border: none;
|
|
13952
13954
|
border-bottom: 1px solid var(--ps-border-color);
|
|
13953
13955
|
color: var(--ps-text-primary);
|
|
13954
|
-
font-family: inherit;
|
|
13955
|
-
|
|
13956
|
+
font-family: inherit;
|
|
13957
|
+
font-size: clamp(13px, 0.95vw, 18px);
|
|
13958
|
+
font-weight: 500;
|
|
13959
|
+
padding: clamp(4px, 0.4vw, 10px) 0 clamp(6px, 0.55vw, 12px);
|
|
13956
13960
|
outline: none;
|
|
13957
13961
|
transition: border-color 0.15s;
|
|
13958
13962
|
}
|
|
@@ -13990,29 +13994,31 @@ const STYLES$1 = `
|
|
|
13990
13994
|
|
|
13991
13995
|
.ps-cpw-field-grid {
|
|
13992
13996
|
display: grid;
|
|
13993
|
-
grid-template-columns: repeat(auto-fit, minmax(
|
|
13994
|
-
gap:
|
|
13997
|
+
grid-template-columns: repeat(auto-fit, minmax(clamp(140px, 11vw, 220px), 1fr));
|
|
13998
|
+
gap: clamp(14px, 1.2vw, 28px);
|
|
13995
13999
|
}
|
|
13996
14000
|
|
|
13997
14001
|
/* Two-column split: inputs stacked left, photo right */
|
|
13998
14002
|
.ps-cpw-split {
|
|
13999
14003
|
display: grid;
|
|
14000
|
-
grid-template-columns: 1fr
|
|
14001
|
-
gap:
|
|
14004
|
+
grid-template-columns: 1fr clamp(180px, 14vw, 320px);
|
|
14005
|
+
gap: clamp(16px, 1.4vw, 32px);
|
|
14002
14006
|
align-items: start;
|
|
14003
14007
|
}
|
|
14004
14008
|
.ps-cpw-split-left {
|
|
14005
|
-
display: flex; flex-direction: column;
|
|
14009
|
+
display: flex; flex-direction: column;
|
|
14010
|
+
gap: clamp(14px, 1.2vw, 24px);
|
|
14006
14011
|
min-width: 0;
|
|
14007
14012
|
}
|
|
14008
14013
|
.ps-cpw-split-right {
|
|
14009
|
-
display: flex; flex-direction: column;
|
|
14014
|
+
display: flex; flex-direction: column;
|
|
14015
|
+
gap: clamp(6px, 0.55vw, 12px);
|
|
14010
14016
|
min-width: 0;
|
|
14011
14017
|
}
|
|
14012
14018
|
.ps-cpw-error {
|
|
14013
|
-
font-size:
|
|
14019
|
+
font-size: clamp(10px, 0.72vw, 13px);
|
|
14014
14020
|
color: var(--ps-error-color);
|
|
14015
|
-
margin-top: -
|
|
14021
|
+
margin-top: calc(clamp(4px, 0.4vw, 10px) * -1);
|
|
14016
14022
|
}
|
|
14017
14023
|
|
|
14018
14024
|
/* Optional photo upload (step 1) */
|
|
@@ -14068,67 +14074,84 @@ const STYLES$1 = `
|
|
|
14068
14074
|
display: flex; align-items: center; justify-content: center;
|
|
14069
14075
|
}
|
|
14070
14076
|
|
|
14071
|
-
/* Step 2 — Silhouette */
|
|
14077
|
+
/* Step 2 — Silhouette (vw-scaled) */
|
|
14072
14078
|
.ps-cpw-silhouette {
|
|
14073
|
-
display: flex; flex-direction: column;
|
|
14079
|
+
display: flex; flex-direction: column;
|
|
14080
|
+
gap: clamp(16px, 1.4vw, 32px);
|
|
14074
14081
|
}
|
|
14075
14082
|
.ps-cpw-section {
|
|
14076
|
-
display: flex; flex-direction: column;
|
|
14083
|
+
display: flex; flex-direction: column;
|
|
14084
|
+
gap: clamp(8px, 0.7vw, 16px);
|
|
14077
14085
|
}
|
|
14078
14086
|
.ps-cpw-section-head {
|
|
14079
|
-
display: flex; flex-direction: column;
|
|
14087
|
+
display: flex; flex-direction: column;
|
|
14088
|
+
gap: clamp(2px, 0.2vw, 6px);
|
|
14080
14089
|
}
|
|
14081
14090
|
.ps-cpw-section-title {
|
|
14082
|
-
font-size:
|
|
14091
|
+
font-size: clamp(10px, 0.72vw, 14px);
|
|
14092
|
+
font-weight: 700;
|
|
14083
14093
|
letter-spacing: 0.14em; text-transform: uppercase;
|
|
14084
14094
|
color: var(--ps-text-primary);
|
|
14085
14095
|
}
|
|
14086
14096
|
.ps-cpw-section-sub {
|
|
14087
|
-
font-size:
|
|
14097
|
+
font-size: clamp(10px, 0.7vw, 13px);
|
|
14098
|
+
font-weight: 400;
|
|
14088
14099
|
color: var(--ps-text-muted);
|
|
14089
14100
|
}
|
|
14090
14101
|
.ps-cpw-card-row {
|
|
14091
14102
|
display: grid;
|
|
14092
14103
|
grid-template-columns: repeat(3, 1fr);
|
|
14093
|
-
gap:
|
|
14104
|
+
gap: clamp(8px, 0.75vw, 16px);
|
|
14105
|
+
/* Inside a flex parent (ProgressiveStep with flex:1), let the row
|
|
14106
|
+
claim leftover vertical space so the cards stretch to fill it. */
|
|
14107
|
+
flex: 1; min-height: 0;
|
|
14094
14108
|
}
|
|
14095
14109
|
.ps-cpw-bra-row {
|
|
14096
14110
|
display: grid;
|
|
14097
14111
|
grid-template-columns: 1fr 1fr;
|
|
14098
|
-
gap:
|
|
14112
|
+
gap: clamp(8px, 0.75vw, 16px);
|
|
14099
14113
|
}
|
|
14100
14114
|
.ps-cpw-bra-field {
|
|
14101
|
-
display: flex; flex-direction: column;
|
|
14115
|
+
display: flex; flex-direction: column;
|
|
14116
|
+
gap: clamp(4px, 0.4vw, 10px);
|
|
14102
14117
|
}
|
|
14103
14118
|
.ps-cpw-card {
|
|
14104
14119
|
display: flex; flex-direction: column; align-items: center;
|
|
14105
14120
|
background: var(--ps-bg-primary);
|
|
14106
14121
|
border: 2px solid var(--ps-border-subtle);
|
|
14107
|
-
border-radius:
|
|
14108
|
-
padding:
|
|
14122
|
+
border-radius: clamp(8px, 0.6vw, 14px);
|
|
14123
|
+
padding: clamp(10px, 0.85vw, 18px) clamp(6px, 0.5vw, 12px) clamp(8px, 0.65vw, 14px);
|
|
14109
14124
|
cursor: pointer; font-family: inherit;
|
|
14110
14125
|
transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
|
|
14126
|
+
/* Stretch inside the grid track so all 3 cards in the row fill
|
|
14127
|
+
the available height equally. */
|
|
14128
|
+
min-width: 0; min-height: 0;
|
|
14111
14129
|
}
|
|
14112
14130
|
.ps-cpw-card:hover {
|
|
14113
14131
|
border-color: rgba(33, 84, 239, 0.35);
|
|
14114
14132
|
}
|
|
14115
14133
|
.ps-cpw-card.ps-active {
|
|
14116
14134
|
border-color: var(--ps-accent);
|
|
14117
|
-
box-shadow: 0
|
|
14135
|
+
box-shadow: 0 0.4vw 1.1vw rgba(33, 84, 239, 0.16);
|
|
14118
14136
|
transform: translateY(-1px);
|
|
14119
14137
|
}
|
|
14120
14138
|
.ps-cpw-card-thumb {
|
|
14121
|
-
width: 100%;
|
|
14139
|
+
width: 100%;
|
|
14140
|
+
/* Fills whatever space the card has — combined with the card's
|
|
14141
|
+
min-height: 0, this lets the thumb image grow with viewport size
|
|
14142
|
+
and stretch to fill the wizard body. */
|
|
14143
|
+
flex: 1; min-height: 0;
|
|
14122
14144
|
display: flex; align-items: center; justify-content: center;
|
|
14123
14145
|
overflow: hidden;
|
|
14124
|
-
margin-bottom:
|
|
14146
|
+
margin-bottom: clamp(4px, 0.4vw, 10px);
|
|
14125
14147
|
}
|
|
14126
14148
|
.ps-cpw-card-thumb img {
|
|
14127
14149
|
max-width: 100%; max-height: 100%;
|
|
14128
14150
|
object-fit: contain;
|
|
14129
14151
|
}
|
|
14130
14152
|
.ps-cpw-card-label {
|
|
14131
|
-
font-size:
|
|
14153
|
+
font-size: clamp(9px, 0.65vw, 12px);
|
|
14154
|
+
font-weight: 700;
|
|
14132
14155
|
letter-spacing: 0.12em; text-transform: uppercase;
|
|
14133
14156
|
color: var(--ps-text-muted);
|
|
14134
14157
|
}
|
|
@@ -14177,34 +14200,18 @@ const STYLES$1 = `
|
|
|
14177
14200
|
.ps-cpw-next-btn:hover { opacity: 0.92; }
|
|
14178
14201
|
.ps-cpw-next-btn:active { transform: scale(0.98); }
|
|
14179
14202
|
|
|
14180
|
-
@media (max-width: 768px)
|
|
14181
|
-
|
|
14182
|
-
|
|
14183
|
-
flex-direction: column; gap: 10px;
|
|
14184
|
-
padding-bottom: 12px;
|
|
14185
|
-
}
|
|
14186
|
-
.ps-cpw-progress { min-width: 0; width: 100%; align-items: flex-start; margin-top: 0; }
|
|
14187
|
-
.ps-cpw-step-title { font-size: 22px; }
|
|
14188
|
-
.ps-cpw-field-grid { grid-template-columns: 1fr; gap: 18px; }
|
|
14189
|
-
.ps-cpw-split { grid-template-columns: 1fr; gap: 18px; }
|
|
14190
|
-
.ps-cpw-photo-preview { max-width: 220px; }
|
|
14191
|
-
.ps-cpw-card-row { gap: 8px; }
|
|
14192
|
-
.ps-cpw-card { padding: 10px 6px 8px; }
|
|
14193
|
-
.ps-cpw-card-thumb { height: 80px; }
|
|
14194
|
-
.ps-cpw-card-label { font-size: 9px; }
|
|
14195
|
-
.ps-cpw-footer { flex-direction: column-reverse; gap: 10px; align-items: stretch; }
|
|
14196
|
-
.ps-cpw-next-btn { width: 100%; padding: 14px; }
|
|
14197
|
-
.ps-cpw-back-btn { text-align: center; }
|
|
14198
|
-
.ps-cpw-method-grid { grid-template-columns: 1fr; }
|
|
14199
|
-
.ps-cpw-method-card { padding: 22px 18px; }
|
|
14200
|
-
.ps-cpw-photo-frame { max-width: 100%; height: 320px; }
|
|
14201
|
-
}
|
|
14203
|
+
/* No wizard-specific @media (max-width: 768px) overrides anymore.
|
|
14204
|
+
Every ps-cpw-* rule is clamp/vw-driven, so the layout shrinks
|
|
14205
|
+
gracefully from 320px → 5000px without a hard breakpoint. */
|
|
14202
14206
|
|
|
14203
14207
|
/* ── Progressive (one-question-at-a-time) flow ── */
|
|
14204
14208
|
.ps-cpw-progressive {
|
|
14205
14209
|
display: flex; flex-direction: column;
|
|
14206
14210
|
gap: clamp(12px, 1vw, 22px);
|
|
14207
14211
|
padding: clamp(6px, 0.5vw, 12px) 0;
|
|
14212
|
+
/* Fills the wizard body so the card row can stretch vertically */
|
|
14213
|
+
flex: 1; min-height: 0;
|
|
14214
|
+
width: 100%; box-sizing: border-box;
|
|
14208
14215
|
}
|
|
14209
14216
|
.ps-cpw-fade-in {
|
|
14210
14217
|
animation: ps-cpw-fade-up 0.35s cubic-bezier(0.16, 1, 0.3, 1);
|
|
@@ -14214,27 +14221,29 @@ const STYLES$1 = `
|
|
|
14214
14221
|
to { opacity: 1; transform: translateY(0); }
|
|
14215
14222
|
}
|
|
14216
14223
|
|
|
14217
|
-
/* ── Method picker (initial step) —
|
|
14224
|
+
/* ── Method picker (initial step) — cards stretch to fill body ── */
|
|
14218
14225
|
.ps-cpw-method-picker {
|
|
14219
14226
|
display: flex; flex-direction: column;
|
|
14220
14227
|
gap: clamp(8px, 0.7vw, 14px);
|
|
14221
14228
|
padding: clamp(4px, 0.4vw, 10px) 0;
|
|
14222
14229
|
flex: 1; min-height: 0;
|
|
14223
14230
|
width: 100%; box-sizing: border-box;
|
|
14224
|
-
justify-content: center;
|
|
14225
14231
|
}
|
|
14226
14232
|
.ps-cpw-method-intro { display: none; }
|
|
14233
|
+
/* Grid claims the picker's leftover height so the cards inside
|
|
14234
|
+
stretch vertically to fill it. */
|
|
14227
14235
|
.ps-cpw-method-grid {
|
|
14228
14236
|
display: grid;
|
|
14229
14237
|
grid-template-columns: 1fr 1fr;
|
|
14230
14238
|
gap: clamp(8px, 0.75vw, 16px);
|
|
14231
14239
|
width: 100%; max-width: 100%;
|
|
14232
14240
|
box-sizing: border-box;
|
|
14241
|
+
flex: 1; min-height: 0;
|
|
14233
14242
|
}
|
|
14234
14243
|
.ps-cpw-method-card {
|
|
14235
14244
|
display: flex; flex-direction: column; align-items: stretch;
|
|
14236
14245
|
gap: 0;
|
|
14237
|
-
min-width: 0;
|
|
14246
|
+
min-width: 0; min-height: 0;
|
|
14238
14247
|
width: 100%; max-width: 100%;
|
|
14239
14248
|
box-sizing: border-box;
|
|
14240
14249
|
background: var(--ps-bg-primary);
|
|
@@ -14249,21 +14258,21 @@ const STYLES$1 = `
|
|
|
14249
14258
|
transform: translateY(-1px);
|
|
14250
14259
|
box-shadow: 0 0.4vw 1.2vw rgba(33, 84, 239, 0.10);
|
|
14251
14260
|
}
|
|
14252
|
-
/*
|
|
14253
|
-
|
|
14261
|
+
/* Illustration fills the upper portion of each card — flex 1 instead
|
|
14262
|
+
of a fixed height so the image grows with the available card height
|
|
14263
|
+
instead of leaving empty space. */
|
|
14254
14264
|
.ps-cpw-method-img {
|
|
14255
14265
|
width: 100%;
|
|
14256
|
-
|
|
14257
|
-
flex-shrink: 0;
|
|
14266
|
+
flex: 1; min-height: 0;
|
|
14258
14267
|
background: var(--ps-bg-secondary);
|
|
14259
14268
|
display: flex; align-items: center; justify-content: center;
|
|
14260
14269
|
border-bottom: 1px solid var(--ps-border-subtle);
|
|
14261
|
-
padding: clamp(
|
|
14270
|
+
padding: clamp(6px, 0.6vw, 14px);
|
|
14262
14271
|
box-sizing: border-box;
|
|
14263
14272
|
}
|
|
14264
14273
|
.ps-cpw-method-img img {
|
|
14265
|
-
width:
|
|
14266
|
-
max-width: 100%;
|
|
14274
|
+
width: 100%; height: 100%;
|
|
14275
|
+
max-width: 100%; max-height: 100%;
|
|
14267
14276
|
object-fit: contain;
|
|
14268
14277
|
display: block;
|
|
14269
14278
|
}
|