UNPKG

drip-table

Version:

A tiny and powerful enterprise-class solution for building tables.

41 lines (40 loc) 1.45 kB
/** * This file is part of the drip-table project. * @link : https://drip-table.jd.com/ * @author : Emil Zhai (root@derzh.com) * @modifier : Emil Zhai (root@derzh.com) * @copyright: Copyright (c) 2021 JD Network Technology Co., Ltd. */ import React from 'react'; /** * Parse React CSS * @param style target style: can be css object, react style object, css string * @returns React CSS Properties Object */ export declare const parseReactCSS: (style: string | Record<string, string> | unknown) => React.CSSProperties; /** * Parse CSSProperties * @param style target style: can be css object, react style object, css string * @returns CSS Properties Object */ export declare const parseCSS: (style: string | Record<string, string> | unknown) => Record<string, string>; /** * Parse Theme CSS * @param theme schema.theme * @returns Theme CSS Object */ export declare const parseThemeCSS: (theme: Record<string, string> | undefined) => { [k: string]: string; }; /** * Stringify CSSProperties * @param style target style: can be css object, react style object, css string * @returns CSS String */ export declare const stringifyCSS: (style: string | Record<string, string>) => string; /** * Set element style * @param el target element * @param style target style: can be css object, react style object, css string */ export declare const setElementCSS: (el: HTMLElement, style: string | Record<string, string>) => void;