@paygreen/pgui 3.0.7 → 3.0.9
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.
|
@@ -12,5 +12,8 @@ export interface CardExpandableProps extends Omit<Card.RootProps, 'title' | 'var
|
|
|
12
12
|
icon?: ReactNode;
|
|
13
13
|
isLazy?: boolean;
|
|
14
14
|
}
|
|
15
|
-
declare const CardExpandable:
|
|
16
|
-
|
|
15
|
+
declare const CardExpandable: {
|
|
16
|
+
({ title, subtitle, header, tags, children, defaultExpanded, onExpandChange, colorPalette, icon, isLazy, ...cardProps }: CardExpandableProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
19
|
+
export { CardExpandable };
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DependencyList } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Hook to detect if an element has scrollable content
|
|
4
|
+
* @param dependencies - Optional dependencies array to re-check when they change
|
|
5
|
+
* @returns A ref to attach to the element and a boolean indicating if it has a scrollbar
|
|
6
|
+
*/
|
|
7
|
+
export declare function useHasScrollbar(dependencies?: DependencyList): {
|
|
8
|
+
ref: import('react').RefObject<HTMLDivElement | null>;
|
|
9
|
+
hasScrollbar: boolean;
|
|
10
|
+
};
|