@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/dist/index.js
CHANGED
|
@@ -16250,12 +16250,12 @@ function Carousel({
|
|
|
16250
16250
|
mainScale: 1.12,
|
|
16251
16251
|
sideScale: 0.82,
|
|
16252
16252
|
farScale: 0.72,
|
|
16253
|
-
sideOpacity: 0.
|
|
16254
|
-
farOpacity: 0.
|
|
16253
|
+
sideOpacity: 0.84,
|
|
16254
|
+
farOpacity: 0.44,
|
|
16255
16255
|
sideOffset: 22,
|
|
16256
16256
|
rotate: 20,
|
|
16257
16257
|
depthStep: 120,
|
|
16258
|
-
blur:
|
|
16258
|
+
blur: 1.6
|
|
16259
16259
|
};
|
|
16260
16260
|
}
|
|
16261
16261
|
if (effectPreset === "gallery") {
|
|
@@ -16334,12 +16334,12 @@ function Carousel({
|
|
|
16334
16334
|
mainScale: 1.04,
|
|
16335
16335
|
sideScale: effectiveAnimation === "stack" ? 0.93 : 0.88,
|
|
16336
16336
|
farScale: effectiveAnimation === "stack" ? 0.86 : 0.76,
|
|
16337
|
-
sideOpacity: effectiveAnimation === "stack" ? 0.
|
|
16338
|
-
farOpacity: effectiveAnimation === "stack" ? 0.
|
|
16337
|
+
sideOpacity: effectiveAnimation === "stack" ? 0.8 : 0.86,
|
|
16338
|
+
farOpacity: effectiveAnimation === "stack" ? 0.5 : 0.48,
|
|
16339
16339
|
sideOffset: effectiveAnimation === "stack" ? 20 : 28,
|
|
16340
16340
|
rotate: 24,
|
|
16341
16341
|
depthStep: effectiveAnimation === "stack" ? 60 : 90,
|
|
16342
|
-
blur: 1.
|
|
16342
|
+
blur: 1.1,
|
|
16343
16343
|
stackOffset: 20,
|
|
16344
16344
|
stackLift: 12,
|
|
16345
16345
|
...presetEffectOptions,
|
|
@@ -16492,7 +16492,7 @@ function Carousel({
|
|
|
16492
16492
|
opacity: distance === 0 ? 1 : distance === 1 || distance === -1 ? mergedEffectOptions.sideOpacity : mergedEffectOptions.farOpacity,
|
|
16493
16493
|
transform: `translate3d(${xOffset2}px, ${yOffset}px, -${absDistance * mergedEffectOptions.depthStep}px) scale(${scale2})`,
|
|
16494
16494
|
filter: distance === 0 ? "blur(0px)" : `blur(${Math.min(absDistance, 2) * mergedEffectOptions.blur}px)`,
|
|
16495
|
-
pointerEvents:
|
|
16495
|
+
pointerEvents: "auto"
|
|
16496
16496
|
};
|
|
16497
16497
|
}
|
|
16498
16498
|
const xOffset = distance * mergedEffectOptions.sideOffset;
|
|
@@ -16502,7 +16502,7 @@ function Carousel({
|
|
|
16502
16502
|
opacity: distance === 0 ? 1 : distance === 1 || distance === -1 ? mergedEffectOptions.sideOpacity : mergedEffectOptions.farOpacity,
|
|
16503
16503
|
transform: `translate3d(${xOffset}%, 0, -${absDistance * mergedEffectOptions.depthStep}px) rotateY(${rotateY}deg) scale(${scale})`,
|
|
16504
16504
|
filter: distance === 0 ? "blur(0px)" : `blur(${Math.min(absDistance, 2) * mergedEffectOptions.blur}px)`,
|
|
16505
|
-
pointerEvents:
|
|
16505
|
+
pointerEvents: "auto"
|
|
16506
16506
|
};
|
|
16507
16507
|
},
|
|
16508
16508
|
[effectiveAnimation, getLoopDistance, mergedEffectOptions]
|
|
@@ -16554,10 +16554,12 @@ function Carousel({
|
|
|
16554
16554
|
effectiveAnimation === "fade" && (idx === currentIndex ? "opacity-100 z-10" : "opacity-0 pointer-events-none z-0"),
|
|
16555
16555
|
effectiveAnimation === "scale" && (idx === currentIndex ? "opacity-100 scale-100 z-10" : "opacity-0 scale-95 pointer-events-none z-0"),
|
|
16556
16556
|
isDeckAnimation && "w-full max-w-[78%] md:max-w-[72%] transition-[opacity,transform] duration-500 ease-out",
|
|
16557
|
+
isDeckAnimation && idx !== currentIndex && "cursor-pointer",
|
|
16557
16558
|
effectiveAnimation !== "slide" && "transition-[opacity,transform] duration-500 ease-in-out",
|
|
16558
16559
|
slideClassName
|
|
16559
16560
|
),
|
|
16560
16561
|
style: effectiveAnimation === "slide" ? { [isHorizontal ? "width" : "height"]: `${slideWidth}%` } : isDeckAnimation ? getDeckSlideStyles(idx) : void 0,
|
|
16562
|
+
onClick: isDeckAnimation && idx !== currentIndex ? () => scrollTo(idx) : void 0,
|
|
16561
16563
|
role: "group",
|
|
16562
16564
|
"aria-roledescription": "slide",
|
|
16563
16565
|
"aria-label": `${idx + 1} of ${totalSlides}`,
|