UNPKG

@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.

23 lines 1.06 kB
import * as React from "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 { onMouseDown: React.MouseEventHandler<HTMLDivElement>; onFocus: React.FocusEventHandler<HTMLDivElement>; onTouchStart: React.TouchEventHandler<HTMLDivElement>; valueMax: number; valueMin: number; onTop: boolean; index: number; hasHistogram: boolean; value: Value; ariaLabel?: string | string[]; ariaValueText?: string; dataTest?: string; } declare const Handle: ({ onMouseDown, onFocus, onTouchStart, valueMax, valueMin, onTop, value, index, ariaValueText, ariaLabel, hasHistogram, dataTest, }: Props) => React.JSX.Element; export default Handle; //# sourceMappingURL=index.d.ts.map