@eccenca/gui-elements
Version:
GUI elements based on other libraries, usable in React application, written in Typescript.
31 lines (30 loc) • 1.57 kB
TypeScript
import { getEnabledColorsFromPalette, textToColorHash } from "./utils/colorHash";
export type { IntentTypes as IntentBaseTypes } from "./Intent";
export declare const utils: {
openInNewTab: (event: React.MouseEvent<HTMLAnchorElement>, handler?: (e: React.MouseEvent<HTMLAnchorElement>) => void, url?: string) => void;
decideContrastColorValue: ({ testColor, lightColor, darkColor, }: import("./utils/colorDecideContrastvalue").decideContrastColorValueProps) => string;
colorCalculateDistance: ({ color1, color2 }: import("./utils/colorCalculateDistance").colorCalculateDistanceProps) => number | null;
getColorConfiguration: (configId: "react-flow-graph" | "react-flow-linking" | "react-flow-workflow" | "stickynotes") => Record<string, string>;
invisibleZeroWidthCharacters: {
codePoints: {
codePoint: number;
label: string;
hexString: string;
fullLabel: string;
}[];
codePointMap: Map<number, {
codePoint: number;
label: string;
hexString: string;
fullLabel: string;
}>;
createRegex: () => RegExp;
clearString: (inputString: string) => string;
};
getGlobalVar: (varname: string) => Window;
setGlobalVar: (varname: string, value: any) => any;
getScrollParent: (element: Element) => HTMLElement | false;
getEnabledColorsFromPalette: typeof getEnabledColorsFromPalette;
textToColorHash: typeof textToColorHash;
reduceToText: import("./utils/reduceToText").ReduceToTextFuncType;
};