@grandlinex/react-components
Version:
27 lines (26 loc) • 1.3 kB
TypeScript
import React, { ReactNode } from 'react';
import md5 from './MD5';
import LocalStorage from './LocalStorage';
import copyToClipboard from './Clipboard';
import getSaveWindow from './BuildHelper';
import CMap from './CoreMap';
export * from './GLang';
export * from './MainContext';
export * from './LocalStorage';
export * from './CookieUtil';
export * from './BrowserUtil';
export * from './JWT';
export declare function sleep(ms: number): Promise<unknown>;
export type CnxInputCondition = [boolean, string, string?];
export type CnxInput = string | undefined | null | CnxInputCondition;
export declare function cnx(...classes: CnxInput[]): string | undefined;
export declare function useCnx(...classes: CnxInput[]): string | undefined;
declare function sGen(inp: string): string;
export declare function uuid(): string;
export declare function sid(): string;
export declare function trimmer(inp: string): string;
export declare function getDocumentMeta(key: string): string | null;
export declare const getGravatarUrl: (email: string) => string;
export type ReactFC<A> = React.FC<React.PropsWithChildren<A>>;
declare function loop<X = ReactNode>(count: number, fc: (x: number) => X, start?: number, step?: number): X[];
export { md5, copyToClipboard, sGen, loop, getSaveWindow, LocalStorage, CMap };