@tdb/util
Version:
Shared helpers and utilities.
17 lines (16 loc) • 965 B
TypeScript
/// <reference types="react" />
import { React } from '../../libs';
import { IFormatCss, IImageOptions, IBackgroundImageStyles, GlamorValue } from './types';
export * from './util';
export declare const MEDIA_QUERY_RETINA = "@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi)";
export declare const image: (image1x: string | undefined, image2x: string | undefined, options?: IImageOptions) => IBackgroundImageStyles;
export declare const toPositionEdges: (key: string, value?: any) => {
position: string;
top: string | number | undefined;
right: string | number | undefined;
bottom: string | number | undefined;
left: string | number | undefined;
} | undefined;
export declare const formatPositionEdges: (key: string, target: any) => void;
export declare const transformStyle: (style?: false | React.CSSProperties | GlamorValue | null | undefined) => React.CSSProperties | GlamorValue;
export declare const format: IFormatCss;