@underverse-ui/underverse 1.0.85 → 1.0.86

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.d.cts CHANGED
@@ -2421,8 +2421,9 @@ interface AccessDeniedProps {
2421
2421
  }>;
2422
2422
  className?: string;
2423
2423
  children?: React__default.ReactNode;
2424
+ overflowHidden?: boolean;
2424
2425
  }
2425
- declare function AccessDenied({ title, description, variant, icon: Icon, className, children, }: AccessDeniedProps): react_jsx_runtime.JSX.Element;
2426
+ declare function AccessDenied({ title, description, variant, icon: Icon, className, children, overflowHidden, }: AccessDeniedProps): react_jsx_runtime.JSX.Element;
2426
2427
 
2427
2428
  type ThemeMode = "light" | "dark" | "system";
2428
2429
  interface ThemeToggleHeadlessProps {
package/dist/index.d.ts CHANGED
@@ -2421,8 +2421,9 @@ interface AccessDeniedProps {
2421
2421
  }>;
2422
2422
  className?: string;
2423
2423
  children?: React__default.ReactNode;
2424
+ overflowHidden?: boolean;
2424
2425
  }
2425
- declare function AccessDenied({ title, description, variant, icon: Icon, className, children, }: AccessDeniedProps): react_jsx_runtime.JSX.Element;
2426
+ declare function AccessDenied({ title, description, variant, icon: Icon, className, children, overflowHidden, }: AccessDeniedProps): react_jsx_runtime.JSX.Element;
2426
2427
 
2427
2428
  type ThemeMode = "light" | "dark" | "system";
2428
2429
  interface ThemeToggleHeadlessProps {
package/dist/index.js CHANGED
@@ -22386,18 +22386,26 @@ function AccessDenied({
22386
22386
  variant = "destructive",
22387
22387
  icon: Icon,
22388
22388
  className,
22389
- children
22389
+ children,
22390
+ overflowHidden = true
22390
22391
  }) {
22391
22392
  const styles = VARIANT_STYLES[variant];
22392
22393
  const UsedIcon = Icon || DEFAULT_ICONS[variant];
22393
- return /* @__PURE__ */ jsx70(Card_default, { className: cn("p-8 text-center shadow-sm", styles.bg, styles.border, className), children: /* @__PURE__ */ jsxs59("div", { className: "flex flex-col items-center gap-4", children: [
22394
- /* @__PURE__ */ jsx70("div", { className: cn("p-3 rounded-lg", styles.bg.replace("/5", "/10")), children: /* @__PURE__ */ jsx70(UsedIcon, { className: cn("w-8 h-8", styles.text) }) }),
22395
- /* @__PURE__ */ jsxs59("div", { children: [
22396
- /* @__PURE__ */ jsx70("h3", { className: cn("font-semibold mb-2", styles.text), children: title }),
22397
- /* @__PURE__ */ jsx70("p", { className: cn(styles.text.replace("text-", "text-") + "/80", "text-sm"), children: description })
22398
- ] }),
22399
- children && /* @__PURE__ */ jsx70("div", { className: "mt-2 flex flex-wrap gap-2 justify-center", children })
22400
- ] }) });
22394
+ return /* @__PURE__ */ jsx70(
22395
+ Card_default,
22396
+ {
22397
+ className: cn("p-8 text-center shadow-sm", styles.bg, styles.border, className),
22398
+ innerClassName: !overflowHidden ? "overflow-visible" : void 0,
22399
+ children: /* @__PURE__ */ jsxs59("div", { className: "flex flex-col items-center gap-4", children: [
22400
+ /* @__PURE__ */ jsx70("div", { className: cn("p-3 rounded-lg", styles.bg.replace("/5", "/10")), children: /* @__PURE__ */ jsx70(UsedIcon, { className: cn("w-8 h-8", styles.text) }) }),
22401
+ /* @__PURE__ */ jsxs59("div", { children: [
22402
+ /* @__PURE__ */ jsx70("h3", { className: cn("font-semibold mb-2", styles.text), children: title }),
22403
+ /* @__PURE__ */ jsx70("p", { className: cn(styles.text.replace("text-", "text-") + "/80", "text-sm"), children: description })
22404
+ ] }),
22405
+ children && /* @__PURE__ */ jsx70("div", { className: "mt-2 flex flex-wrap gap-2 justify-center", children })
22406
+ ] })
22407
+ }
22408
+ );
22401
22409
  }
22402
22410
 
22403
22411
  // src/components/ThemeToggleHeadless.tsx