@underverse-ui/underverse 1.0.64 → 1.0.65
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/api-reference.json +1 -1
- package/dist/index.cjs +10 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/api-reference.json
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -16416,12 +16416,12 @@ function Carousel({
|
|
|
16416
16416
|
mainScale: 1.12,
|
|
16417
16417
|
sideScale: 0.82,
|
|
16418
16418
|
farScale: 0.72,
|
|
16419
|
-
sideOpacity: 0.
|
|
16420
|
-
farOpacity: 0.
|
|
16419
|
+
sideOpacity: 0.84,
|
|
16420
|
+
farOpacity: 0.44,
|
|
16421
16421
|
sideOffset: 22,
|
|
16422
16422
|
rotate: 20,
|
|
16423
16423
|
depthStep: 120,
|
|
16424
|
-
blur:
|
|
16424
|
+
blur: 1.6
|
|
16425
16425
|
};
|
|
16426
16426
|
}
|
|
16427
16427
|
if (effectPreset === "gallery") {
|
|
@@ -16500,12 +16500,12 @@ function Carousel({
|
|
|
16500
16500
|
mainScale: 1.04,
|
|
16501
16501
|
sideScale: effectiveAnimation === "stack" ? 0.93 : 0.88,
|
|
16502
16502
|
farScale: effectiveAnimation === "stack" ? 0.86 : 0.76,
|
|
16503
|
-
sideOpacity: effectiveAnimation === "stack" ? 0.
|
|
16504
|
-
farOpacity: effectiveAnimation === "stack" ? 0.
|
|
16503
|
+
sideOpacity: effectiveAnimation === "stack" ? 0.8 : 0.86,
|
|
16504
|
+
farOpacity: effectiveAnimation === "stack" ? 0.5 : 0.48,
|
|
16505
16505
|
sideOffset: effectiveAnimation === "stack" ? 20 : 28,
|
|
16506
16506
|
rotate: 24,
|
|
16507
16507
|
depthStep: effectiveAnimation === "stack" ? 60 : 90,
|
|
16508
|
-
blur: 1.
|
|
16508
|
+
blur: 1.1,
|
|
16509
16509
|
stackOffset: 20,
|
|
16510
16510
|
stackLift: 12,
|
|
16511
16511
|
...presetEffectOptions,
|
|
@@ -16658,7 +16658,7 @@ function Carousel({
|
|
|
16658
16658
|
opacity: distance === 0 ? 1 : distance === 1 || distance === -1 ? mergedEffectOptions.sideOpacity : mergedEffectOptions.farOpacity,
|
|
16659
16659
|
transform: `translate3d(${xOffset2}px, ${yOffset}px, -${absDistance * mergedEffectOptions.depthStep}px) scale(${scale2})`,
|
|
16660
16660
|
filter: distance === 0 ? "blur(0px)" : `blur(${Math.min(absDistance, 2) * mergedEffectOptions.blur}px)`,
|
|
16661
|
-
pointerEvents:
|
|
16661
|
+
pointerEvents: "auto"
|
|
16662
16662
|
};
|
|
16663
16663
|
}
|
|
16664
16664
|
const xOffset = distance * mergedEffectOptions.sideOffset;
|
|
@@ -16668,7 +16668,7 @@ function Carousel({
|
|
|
16668
16668
|
opacity: distance === 0 ? 1 : distance === 1 || distance === -1 ? mergedEffectOptions.sideOpacity : mergedEffectOptions.farOpacity,
|
|
16669
16669
|
transform: `translate3d(${xOffset}%, 0, -${absDistance * mergedEffectOptions.depthStep}px) rotateY(${rotateY}deg) scale(${scale})`,
|
|
16670
16670
|
filter: distance === 0 ? "blur(0px)" : `blur(${Math.min(absDistance, 2) * mergedEffectOptions.blur}px)`,
|
|
16671
|
-
pointerEvents:
|
|
16671
|
+
pointerEvents: "auto"
|
|
16672
16672
|
};
|
|
16673
16673
|
},
|
|
16674
16674
|
[effectiveAnimation, getLoopDistance, mergedEffectOptions]
|
|
@@ -16720,10 +16720,12 @@ function Carousel({
|
|
|
16720
16720
|
effectiveAnimation === "fade" && (idx === currentIndex ? "opacity-100 z-10" : "opacity-0 pointer-events-none z-0"),
|
|
16721
16721
|
effectiveAnimation === "scale" && (idx === currentIndex ? "opacity-100 scale-100 z-10" : "opacity-0 scale-95 pointer-events-none z-0"),
|
|
16722
16722
|
isDeckAnimation && "w-full max-w-[78%] md:max-w-[72%] transition-[opacity,transform] duration-500 ease-out",
|
|
16723
|
+
isDeckAnimation && idx !== currentIndex && "cursor-pointer",
|
|
16723
16724
|
effectiveAnimation !== "slide" && "transition-[opacity,transform] duration-500 ease-in-out",
|
|
16724
16725
|
slideClassName
|
|
16725
16726
|
),
|
|
16726
16727
|
style: effectiveAnimation === "slide" ? { [isHorizontal ? "width" : "height"]: `${slideWidth}%` } : isDeckAnimation ? getDeckSlideStyles(idx) : void 0,
|
|
16728
|
+
onClick: isDeckAnimation && idx !== currentIndex ? () => scrollTo(idx) : void 0,
|
|
16727
16729
|
role: "group",
|
|
16728
16730
|
"aria-roledescription": "slide",
|
|
16729
16731
|
"aria-label": `${idx + 1} of ${totalSlides}`,
|