@underverse-ui/underverse 1.0.85 → 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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "package": "@underverse-ui/underverse",
3
- "version": "1.0.85",
3
+ "version": "1.0.87",
4
4
  "sourceEntry": "src/index.ts",
5
5
  "totalExports": 225,
6
6
  "exports": [
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
- ...inherited,
2238
- ...options
2245
+ enabled,
2246
+ theme,
2247
+ visibility,
2248
+ autoHide,
2249
+ autoHideDelay,
2250
+ dragScroll,
2251
+ clickScroll,
2252
+ exclude
2239
2253
  }),
2240
- [inherited, options]
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
- }, [targetRef, resolved]);
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
 
@@ -22555,18 +22579,26 @@ function AccessDenied({
22555
22579
  variant = "destructive",
22556
22580
  icon: Icon,
22557
22581
  className,
22558
- children
22582
+ children,
22583
+ overflowHidden = true
22559
22584
  }) {
22560
22585
  const styles = VARIANT_STYLES[variant];
22561
22586
  const UsedIcon = Icon || DEFAULT_ICONS[variant];
22562
- return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Card_default, { className: cn("p-8 text-center shadow-sm", styles.bg, styles.border, className), children: /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "flex flex-col items-center gap-4", children: [
22563
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: cn("p-3 rounded-lg", styles.bg.replace("/5", "/10")), children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(UsedIcon, { className: cn("w-8 h-8", styles.text) }) }),
22564
- /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { children: [
22565
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("h3", { className: cn("font-semibold mb-2", styles.text), children: title }),
22566
- /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("p", { className: cn(styles.text.replace("text-", "text-") + "/80", "text-sm"), children: description })
22567
- ] }),
22568
- children && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "mt-2 flex flex-wrap gap-2 justify-center", children })
22569
- ] }) });
22587
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
22588
+ Card_default,
22589
+ {
22590
+ className: cn("p-8 text-center shadow-sm", styles.bg, styles.border, className),
22591
+ innerClassName: !overflowHidden ? "overflow-visible" : void 0,
22592
+ children: /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "flex flex-col items-center gap-4", children: [
22593
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: cn("p-3 rounded-lg", styles.bg.replace("/5", "/10")), children: /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(UsedIcon, { className: cn("w-8 h-8", styles.text) }) }),
22594
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { children: [
22595
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("h3", { className: cn("font-semibold mb-2", styles.text), children: title }),
22596
+ /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("p", { className: cn(styles.text.replace("text-", "text-") + "/80", "text-sm"), children: description })
22597
+ ] }),
22598
+ children && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { className: "mt-2 flex flex-wrap gap-2 justify-center", children })
22599
+ ] })
22600
+ }
22601
+ );
22570
22602
  }
22571
22603
 
22572
22604
  // src/components/ThemeToggleHeadless.tsx