@underverse-ui/underverse 1.0.86 → 1.0.88

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/index.js CHANGED
@@ -2047,12 +2047,26 @@ function OverlayScrollbarProvider({
2047
2047
  }
2048
2048
  function useOverlayScrollbarTarget(targetRef, options = {}) {
2049
2049
  const inherited = useContext4(OverlayScrollbarConfigContext);
2050
+ const enabled = options.enabled ?? inherited.enabled;
2051
+ const theme = options.theme ?? inherited.theme;
2052
+ const visibility = options.visibility ?? inherited.visibility;
2053
+ const autoHide = options.autoHide ?? inherited.autoHide;
2054
+ const autoHideDelay = options.autoHideDelay ?? inherited.autoHideDelay;
2055
+ const dragScroll = options.dragScroll ?? inherited.dragScroll;
2056
+ const clickScroll = options.clickScroll ?? inherited.clickScroll;
2057
+ const exclude = options.exclude ?? inherited.exclude;
2050
2058
  const resolved = useMemo2(
2051
2059
  () => resolveOverlayScrollbarBehavior({
2052
- ...inherited,
2053
- ...options
2060
+ enabled,
2061
+ theme,
2062
+ visibility,
2063
+ autoHide,
2064
+ autoHideDelay,
2065
+ dragScroll,
2066
+ clickScroll,
2067
+ exclude
2054
2068
  }),
2055
- [inherited, options]
2069
+ [enabled, theme, visibility, autoHide, autoHideDelay, dragScroll, clickScroll, exclude]
2056
2070
  );
2057
2071
  useEffect(() => {
2058
2072
  if (typeof window === "undefined") return;
@@ -2068,7 +2082,17 @@ function useOverlayScrollbarTarget(targetRef, options = {}) {
2068
2082
  return () => {
2069
2083
  controller.destroy();
2070
2084
  };
2071
- }, [targetRef, resolved]);
2085
+ }, [
2086
+ targetRef,
2087
+ resolved.enabled,
2088
+ resolved.theme,
2089
+ resolved.visibility,
2090
+ resolved.autoHide,
2091
+ resolved.autoHideDelay,
2092
+ resolved.dragScroll,
2093
+ resolved.clickScroll,
2094
+ resolved.exclude
2095
+ ]);
2072
2096
  }
2073
2097
  var OverlayScrollbarProvider_default = OverlayScrollbarProvider;
2074
2098
 
@@ -8926,9 +8950,9 @@ var DateRangePicker = ({
8926
8950
  type: "button",
8927
8951
  onClick: () => setViewMode(viewMode === "year" ? "calendar" : "year"),
8928
8952
  className: cn(
8929
- "rounded-lg px-2 py-0.5 font-medium transition-colors duration-200",
8930
- size === "sm" ? "text-[10px]" : size === "lg" ? "text-sm" : "text-xs",
8931
- viewMode === "year" ? "bg-primary/15 text-primary" : "text-muted-foreground hover:bg-accent/50 hover:text-foreground"
8953
+ "rounded-lg px-2 py-0.5 font-bold transition-colors duration-200",
8954
+ size === "sm" ? "text-xs" : size === "lg" ? "text-base" : "text-sm",
8955
+ viewMode === "year" ? "bg-primary/15 text-primary" : "text-foreground hover:bg-accent/50"
8932
8956
  ),
8933
8957
  children: viewDate.getFullYear()
8934
8958
  }