@onesy/style-react
Version:
Onesy CSS in JS styling solution for React
19 lines (18 loc) • 855 B
TypeScript
import { IMethodResponse, IResponse, OnesyTheme, TValueObjectValue } from '@onesy/style';
import { IOptions } from '@onesy/style/style';
export type TValueObject = Record<string, TValueObjectValue>;
type RecursiveRequired<T> = {
[P in keyof T]-?: T[P] extends Function ? T[P] : RecursiveRequired<T[P]>;
};
export type ThemeRequired = RecursiveRequired<OnesyTheme>;
export type TValueMethod = (theme: ThemeRequired) => TValueObject;
export type TValue = TValueObject | TValueMethod;
export interface IResponseStyle extends IMethodResponse {
onesyTheme?: OnesyTheme;
}
export declare const propsAreNew: (props: any) => string;
export interface IOptionsStyle extends IOptions {
remove?: boolean;
}
export default function style(value: TValue, options_?: IOptionsStyle, responses_?: Array<IResponseStyle>): (props_?: any) => IResponse;
export {};