File size: 535 Bytes
56fda74
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { StyleFunction } from '../Box';
import { TransformFunction } from '../style';

type SimpleStyleFunction<PropKey extends keyof any> = StyleFunction<Partial<Record<PropKey, any>>>;

export interface SxConfigRecord {
  cssProperty?: keyof React.CSSProperties | false;
  /**
   * dot access in `Theme`
   */
  themeKey?: string;
  transform?: TransformFunction;
  style?: SimpleStyleFunction<any>;
}

export type SxConfig = Record<string, SxConfigRecord>;

declare const defaultSxConfig: SxConfig;

export default defaultSxConfig;