15 lines
523 B
TypeScript
15 lines
523 B
TypeScript
|
import * as React from 'react';
|
||
|
import type { NullableDateType, RangeValue } from './interface';
|
||
|
export type RangeContextProps = {
|
||
|
/**
|
||
|
* Set displayed range value style.
|
||
|
* Panel only has one value, this is only style effect.
|
||
|
*/
|
||
|
rangedValue?: [NullableDateType<any>, NullableDateType<any>] | null;
|
||
|
hoverRangedValue?: RangeValue<any>;
|
||
|
inRange?: boolean;
|
||
|
panelPosition?: 'left' | 'right' | false;
|
||
|
};
|
||
|
declare const RangeContext: React.Context<RangeContextProps>;
|
||
|
export default RangeContext;
|