Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99423291
style.d.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Jan 24, 10:37
Size
908 B
Mime Type
text/x-java
Expires
Sun, Jan 26, 10:37 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
23793914
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
style.d.ts
View Options
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;
Event Timeline
Log In to Comment