UNPKG

@nodeject/ui-components

Version:

UI library for non-trivial components

19 lines (18 loc) 949 B
import { TreeNodeProps } from 'rc-tree-select/lib/TreeNode'; export declare const getNodeParentKey: (key: any, tree: any) => any; export declare const flattenTree: (entries: TreeNodeProps[] | any) => TreeNodeProps[]; export declare const formatCurrency: (currencyValue: number, currencySymbol: string, decimals?: number) => string; export declare const formatWork: (workValue: number, workUnit: string) => string; export interface ClassAndIdNames { className: string; idName: string; } export declare const getIdName: (cssClassName: string, id: string) => string; export declare const getClassName: (cssClassName: string) => string; export declare const getClassAndIdNames: (cssClassName: string, id: string) => ClassAndIdNames; export declare const getBasicProps: (styleName: string, id: string) => { key: string; className: string; id: string; }; export declare const stringToColour: (str: string) => string;