UNPKG

@withjoy/joykit

Version:

UI Component Library for Joy web

26 lines (25 loc) 1.25 kB
export declare const SPACE_LAYOUT_PROPS: string[]; export declare const SPACE_INTERNAL_PROPS: string[]; export declare const SPACE_STYLE_PROPS: (string)[]; /** CSS properties that are used across Components. */ export declare const CSS_PROPS: (string)[]; /** A collection of curated prop keys used across our Components which are not valid HTMLElement props. */ export declare const BLACKLISTED_COMPONENT_PROPS: string[]; /** * Typically applied to HTMLElements to filter out blacklisted props. When applied to a Component, * can filter props from being passed down to the children. Can also filter by a combined list of * supplied prop keys and the blacklist (only appropriate for HTMLElements). * @param props The original props object to filter down. * @param {string[]} invalidProps If supplied, overwrites the default blacklist. * @param {boolean} shouldMerge If true, will merge supplied invalidProps and blacklist together. */ export declare function removeNonHTMLProps(props: { [key: string]: any; }, invalidProps?: string[], shouldMerge?: boolean): { [key: string]: any; }; export declare function extractProps(props: { [key: string]: any; }, targetProps: string[]): { [key: string]: any; };