@underverse-ui/underverse 1.0.86 → 1.0.87
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 +28 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +28 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/api-reference.json
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -2232,12 +2232,26 @@ function OverlayScrollbarProvider({
|
|
|
2232
2232
|
}
|
|
2233
2233
|
function useOverlayScrollbarTarget(targetRef, options = {}) {
|
|
2234
2234
|
const inherited = (0, import_react3.useContext)(OverlayScrollbarConfigContext);
|
|
2235
|
+
const enabled = options.enabled ?? inherited.enabled;
|
|
2236
|
+
const theme = options.theme ?? inherited.theme;
|
|
2237
|
+
const visibility = options.visibility ?? inherited.visibility;
|
|
2238
|
+
const autoHide = options.autoHide ?? inherited.autoHide;
|
|
2239
|
+
const autoHideDelay = options.autoHideDelay ?? inherited.autoHideDelay;
|
|
2240
|
+
const dragScroll = options.dragScroll ?? inherited.dragScroll;
|
|
2241
|
+
const clickScroll = options.clickScroll ?? inherited.clickScroll;
|
|
2242
|
+
const exclude = options.exclude ?? inherited.exclude;
|
|
2235
2243
|
const resolved = (0, import_react3.useMemo)(
|
|
2236
2244
|
() => resolveOverlayScrollbarBehavior({
|
|
2237
|
-
|
|
2238
|
-
|
|
2245
|
+
enabled,
|
|
2246
|
+
theme,
|
|
2247
|
+
visibility,
|
|
2248
|
+
autoHide,
|
|
2249
|
+
autoHideDelay,
|
|
2250
|
+
dragScroll,
|
|
2251
|
+
clickScroll,
|
|
2252
|
+
exclude
|
|
2239
2253
|
}),
|
|
2240
|
-
[
|
|
2254
|
+
[enabled, theme, visibility, autoHide, autoHideDelay, dragScroll, clickScroll, exclude]
|
|
2241
2255
|
);
|
|
2242
2256
|
(0, import_react3.useEffect)(() => {
|
|
2243
2257
|
if (typeof window === "undefined") return;
|
|
@@ -2253,7 +2267,17 @@ function useOverlayScrollbarTarget(targetRef, options = {}) {
|
|
|
2253
2267
|
return () => {
|
|
2254
2268
|
controller.destroy();
|
|
2255
2269
|
};
|
|
2256
|
-
}, [
|
|
2270
|
+
}, [
|
|
2271
|
+
targetRef,
|
|
2272
|
+
resolved.enabled,
|
|
2273
|
+
resolved.theme,
|
|
2274
|
+
resolved.visibility,
|
|
2275
|
+
resolved.autoHide,
|
|
2276
|
+
resolved.autoHideDelay,
|
|
2277
|
+
resolved.dragScroll,
|
|
2278
|
+
resolved.clickScroll,
|
|
2279
|
+
resolved.exclude
|
|
2280
|
+
]);
|
|
2257
2281
|
}
|
|
2258
2282
|
var OverlayScrollbarProvider_default = OverlayScrollbarProvider;
|
|
2259
2283
|
|