@primestyleai/tryon 5.10.2 → 5.10.3
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
CHANGED
|
@@ -7627,7 +7627,7 @@ function MscTryOnProgress({ t }) {
|
|
|
7627
7627
|
if (ringRef.current) ringRef.current.style.strokeDashoffset = String(MSC_RING_CIRC * (1 - pct / 100));
|
|
7628
7628
|
if (etaRef.current) {
|
|
7629
7629
|
const remaining = Math.max(0, MSC_TRYON_TARGET_SECONDS - Math.floor(elapsed));
|
|
7630
|
-
etaRef.current.textContent = elapsed >= MSC_TRYON_TARGET_SECONDS ?
|
|
7630
|
+
etaRef.current.textContent = elapsed >= MSC_TRYON_TARGET_SECONDS ? "•••" : `~${remaining}s`;
|
|
7631
7631
|
}
|
|
7632
7632
|
}, 200);
|
|
7633
7633
|
return () => clearInterval(id);
|
|
@@ -7950,7 +7950,7 @@ function TryOnProgress({ t, isActive }) {
|
|
|
7950
7950
|
}
|
|
7951
7951
|
if (etaRef.current) {
|
|
7952
7952
|
const remaining = Math.max(0, TRYON_TARGET_SECONDS - Math.floor(elapsed));
|
|
7953
|
-
etaRef.current.textContent = elapsed >= TRYON_TARGET_SECONDS ?
|
|
7953
|
+
etaRef.current.textContent = elapsed >= TRYON_TARGET_SECONDS ? "•••" : `~${remaining}s`;
|
|
7954
7954
|
}
|
|
7955
7955
|
}, 200);
|
|
7956
7956
|
return () => clearInterval(id);
|
|
@@ -13793,7 +13793,7 @@ function PrimeStyleTryonInner({
|
|
|
13793
13793
|
}
|
|
13794
13794
|
if (progressEtaRef.current) {
|
|
13795
13795
|
const remaining = Math.max(0, TARGET_SECONDS - Math.floor(elapsed));
|
|
13796
|
-
progressEtaRef.current.textContent = elapsed >= TARGET_SECONDS ?
|
|
13796
|
+
progressEtaRef.current.textContent = elapsed >= TARGET_SECONDS ? "•••" : `~${remaining}s`;
|
|
13797
13797
|
}
|
|
13798
13798
|
if (progressStatusRef.current) {
|
|
13799
13799
|
const status = [...statuses].reverse().find((s) => val >= s.at);
|
|
@@ -17052,7 +17052,7 @@ function MscTryOnProgress({ t: t2 }) {
|
|
|
17052
17052
|
if (ringRef.current) ringRef.current.style.strokeDashoffset = String(MSC_RING_CIRC * (1 - pct / 100));
|
|
17053
17053
|
if (etaRef.current) {
|
|
17054
17054
|
const remaining = Math.max(0, MSC_TRYON_TARGET_SECONDS - Math.floor(elapsed));
|
|
17055
|
-
etaRef.current.textContent = elapsed >= MSC_TRYON_TARGET_SECONDS ?
|
|
17055
|
+
etaRef.current.textContent = elapsed >= MSC_TRYON_TARGET_SECONDS ? "•••" : `~${remaining}s`;
|
|
17056
17056
|
}
|
|
17057
17057
|
}, 200);
|
|
17058
17058
|
return () => clearInterval(id2);
|
|
@@ -17375,7 +17375,7 @@ function TryOnProgress({ t: t2, isActive }) {
|
|
|
17375
17375
|
}
|
|
17376
17376
|
if (etaRef.current) {
|
|
17377
17377
|
const remaining = Math.max(0, TRYON_TARGET_SECONDS - Math.floor(elapsed));
|
|
17378
|
-
etaRef.current.textContent = elapsed >= TRYON_TARGET_SECONDS ?
|
|
17378
|
+
etaRef.current.textContent = elapsed >= TRYON_TARGET_SECONDS ? "•••" : `~${remaining}s`;
|
|
17379
17379
|
}
|
|
17380
17380
|
}, 200);
|
|
17381
17381
|
return () => clearInterval(id2);
|
|
@@ -23218,7 +23218,7 @@ function PrimeStyleTryonInner({
|
|
|
23218
23218
|
}
|
|
23219
23219
|
if (progressEtaRef.current) {
|
|
23220
23220
|
const remaining = Math.max(0, TARGET_SECONDS - Math.floor(elapsed));
|
|
23221
|
-
progressEtaRef.current.textContent = elapsed >= TARGET_SECONDS ?
|
|
23221
|
+
progressEtaRef.current.textContent = elapsed >= TARGET_SECONDS ? "•••" : `~${remaining}s`;
|
|
23222
23222
|
}
|
|
23223
23223
|
if (progressStatusRef.current) {
|
|
23224
23224
|
const status = [...statuses].reverse().find((s) => val >= s.at);
|