mirror of
https://github.com/johndoe6345789/low-code-react-app-b.git
synced 2026-04-25 14:14:57 +00:00
23 lines
975 B
TypeScript
23 lines
975 B
TypeScript
import { type ClassValue } from 'clsx';
|
|
export declare function composeEventHandlers<E>(originalEventHandler?: (event: E) => void, ourEventHandler?: (event: E) => void, { checkForDefaultPrevented }?: {
|
|
checkForDefaultPrevented?: boolean | undefined;
|
|
}): (event: E) => void;
|
|
export declare function cn(...inputs: ClassValue[]): string;
|
|
export declare function findEventHandlers(props: Record<string, unknown>): string[];
|
|
type ContainerStyleProps = {
|
|
className?: string;
|
|
style?: React.CSSProperties;
|
|
};
|
|
type SeparatedStyles = {
|
|
containerClasses: string;
|
|
containerStyles: React.CSSProperties;
|
|
innerClasses: string;
|
|
innerStyles: React.CSSProperties;
|
|
};
|
|
/**
|
|
* Extracts container-related styles (margin, display, position) from className and style props.
|
|
* Returns separated classes and styles for container and inner elements.
|
|
*/
|
|
export declare function extractContainerStyles({ className, style }: ContainerStyleProps): SeparatedStyles;
|
|
export {};
|