@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.
- package/api-reference.json +1 -1
- package/dist/index.cjs +45 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +45 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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
|
@@ -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
|
-
|
|
2053
|
-
|
|
2060
|
+
enabled,
|
|
2061
|
+
theme,
|
|
2062
|
+
visibility,
|
|
2063
|
+
autoHide,
|
|
2064
|
+
autoHideDelay,
|
|
2065
|
+
dragScroll,
|
|
2066
|
+
clickScroll,
|
|
2067
|
+
exclude
|
|
2054
2068
|
}),
|
|
2055
|
-
[
|
|
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
|
-
}, [
|
|
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
|
|
|
@@ -22386,18 +22410,26 @@ function AccessDenied({
|
|
|
22386
22410
|
variant = "destructive",
|
|
22387
22411
|
icon: Icon,
|
|
22388
22412
|
className,
|
|
22389
|
-
children
|
|
22413
|
+
children,
|
|
22414
|
+
overflowHidden = true
|
|
22390
22415
|
}) {
|
|
22391
22416
|
const styles = VARIANT_STYLES[variant];
|
|
22392
22417
|
const UsedIcon = Icon || DEFAULT_ICONS[variant];
|
|
22393
|
-
return /* @__PURE__ */ jsx70(
|
|
22394
|
-
|
|
22395
|
-
|
|
22396
|
-
|
|
22397
|
-
|
|
22398
|
-
|
|
22399
|
-
|
|
22400
|
-
|
|
22418
|
+
return /* @__PURE__ */ jsx70(
|
|
22419
|
+
Card_default,
|
|
22420
|
+
{
|
|
22421
|
+
className: cn("p-8 text-center shadow-sm", styles.bg, styles.border, className),
|
|
22422
|
+
innerClassName: !overflowHidden ? "overflow-visible" : void 0,
|
|
22423
|
+
children: /* @__PURE__ */ jsxs59("div", { className: "flex flex-col items-center gap-4", children: [
|
|
22424
|
+
/* @__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) }) }),
|
|
22425
|
+
/* @__PURE__ */ jsxs59("div", { children: [
|
|
22426
|
+
/* @__PURE__ */ jsx70("h3", { className: cn("font-semibold mb-2", styles.text), children: title }),
|
|
22427
|
+
/* @__PURE__ */ jsx70("p", { className: cn(styles.text.replace("text-", "text-") + "/80", "text-sm"), children: description })
|
|
22428
|
+
] }),
|
|
22429
|
+
children && /* @__PURE__ */ jsx70("div", { className: "mt-2 flex flex-wrap gap-2 justify-center", children })
|
|
22430
|
+
] })
|
|
22431
|
+
}
|
|
22432
|
+
);
|
|
22401
22433
|
}
|
|
22402
22434
|
|
|
22403
22435
|
// src/components/ThemeToggleHeadless.tsx
|