@dodobrat/react-ui-kit
Version:
Simple React Component Library
17 lines (16 loc) • 1.14 kB
TypeScript
import React from "react";
import { AllPositions } from "./global.types";
export declare const parseValueToPercent: (min: number, max: number, value: number, decimals?: number) => number | string;
export declare const disableScrollAndScrollBar: (active: boolean) => void;
export declare const addElementAttributes: (component: React.ElementType, props: Object) => React.ElementType;
export declare const addElementAttributesInObj: (props: Object) => Object;
export declare const configError: (prop: string, supports: Object) => void;
export declare const isTouchDevice: () => boolean;
export declare const mergeRefs: (refs: Array<React.MutableRefObject<any> | React.LegacyRef<any>>) => React.RefCallback<any>;
export declare const debounce: (func: any, wait: number) => (...args: any[]) => void;
export declare const createRipple: ({ e, elem }: {
e: React.PointerEvent;
elem: HTMLElement | React.MutableRefObject<any> | any;
}) => void;
export declare const positionTooltip: (trigger: HTMLElement, tooltip: HTMLElement, position: AllPositions, spacing: number) => void;
export declare const canUseDOM: boolean;