@kloudlite/design-system
Version:
A design system for building ambitious products.
13 lines (12 loc) • 705 B
TypeScript
export { v4 as uuid } from 'uuid';
type cnProps = (string | {
[key: string]: boolean;
} | undefined)[];
export declare const cn: (...props: cnProps) => string;
export declare const _false = false;
export declare function mapper<A, B>(array: A[], transform: (value: A, index: number) => B): B[];
export declare function useMapper<A, B>(array: A[], transform: (value: A, index: number) => B): B[];
export declare function useAppend<A, B>(arrayA: A[], arrayB: B[]): (A | B)[];
export declare function useSort<A>(array: A[], transform: (a: A, b: A) => number): A[];
export declare function titleCase(string: string): string;
export declare const generateKey: (...items: Array<string | number>) => string;