pre-installations and preparations
This commit is contained in:
1 parent
3e5a0329cb
commit
201d621ac3
6977 files changed
+742826
No files matched your search
+27
@@ -0,0 +1,27 @@
|
||||
import { CSSObject } from '@mui/styled-engine';
|
||||
import { StyleFunction } from './Box';
|
||||
|
||||
export type TransformFunction = (
|
||||
cssValue: unknown,
|
||||
userValue: unknown,
|
||||
) => number | string | React.CSSProperties | CSSObject;
|
||||
|
||||
export interface StyleOptions<PropKey> {
|
||||
cssProperty?: PropKey | keyof React.CSSProperties | false;
|
||||
prop: PropKey;
|
||||
/**
|
||||
* dot access in `Theme`
|
||||
*/
|
||||
themeKey?: string;
|
||||
transform?: TransformFunction;
|
||||
}
|
||||
export function style<PropKey extends string, Theme extends object>(
|
||||
options: StyleOptions<PropKey>,
|
||||
): StyleFunction<{ [K in PropKey]?: unknown } & { theme?: Theme }> & { filterProps: string[] };
|
||||
export function getPath<T>(obj: T, path: string | undefined, checkVars?: boolean): null | unknown;
|
||||
export function getStyleValue(
|
||||
themeMapping: object | ((arg: any) => any),
|
||||
transform: TransformFunction | null,
|
||||
propValueFinal: unknown,
|
||||
userValue?: unknown,
|
||||
): any;
|
||||
Reference in new issue
Block a user