@kiwicom/orbit-components
Version:
Orbit-components is a React component library which provides developers with the easiest possible way of building Kiwi.com’s products.
24 lines (23 loc) • 1.02 kB
TypeScript
/// <reference types="react" />
import type { Value } from "../../types";
type CalculateLeftPosition = (valueNow: number, valueMin: number, valueMax: number, isFirst: boolean, isSimple: boolean) => number;
type IsFirst = (value: Value, valueNow: number, index: number, hasHistogram: boolean) => boolean;
export declare const calculateLeftPosition: CalculateLeftPosition;
export declare const isFirst: IsFirst;
interface Props {
tabIndex: string | number;
onMouseDown: (event: MouseEvent) => void;
onFocus: (event: FocusEvent) => void;
onTouchStart: (event: TouchEvent) => void;
valueMax: number;
valueMin: number;
onTop: boolean;
index: number;
hasHistogram: boolean;
value: Value;
ariaLabel?: string | string[];
ariaValueText?: string;
dataTest?: string;
}
declare const Handle: ({ tabIndex, onMouseDown, onFocus, onTouchStart, valueMax, valueMin, onTop, value, index, ariaValueText, ariaLabel, hasHistogram, dataTest, }: Props) => JSX.Element;
export default Handle;