UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

23 lines (22 loc) 1.14 kB
import { CSSProperties } from 'react'; import { MantineStyleProp } from '../../../Box'; import { MantineTheme } from '../../../MantineProvider'; import { GetStylesApiOptions } from '../../styles-api.types'; import { VarsResolver } from './resolve-vars/resolve-vars'; export type _Styles = undefined | Partial<Record<string, CSSProperties>> | ((theme: MantineTheme, props: Record<string, any>, ctx: Record<string, any> | undefined) => Partial<Record<string, CSSProperties>>); export interface GetStyleInput { theme: MantineTheme; themeName: string[]; selector: string; rootSelector: string; options: GetStylesApiOptions | undefined; props: Record<string, any>; stylesCtx: Record<string, any> | undefined; styles: _Styles; style: MantineStyleProp | undefined; vars: VarsResolver | undefined; varsResolver: VarsResolver | undefined; headless?: boolean; withStylesTransform?: boolean; } export declare function getStyle({ theme, themeName, selector, options, props, stylesCtx, rootSelector, styles, style, vars, varsResolver, headless, withStylesTransform, }: GetStyleInput): CSSProperties;