UNPKG

carbon-react

Version:

A library of reusable React components for easily building user interfaces.

24 lines (23 loc) 684 B
import React from "react"; export type InputName = "start" | "end"; type IsBlurBlocked = { current: boolean; }; type SetOpen = null | ((value: boolean) => void); export type SetInputRefMapValue = { [id in InputName]?: { isBlurBlocked: IsBlurBlocked; setOpen: SetOpen; }; }; interface DateInputRefMap { isBlurBlocked: IsBlurBlocked; setOpen: SetOpen; } export interface DateRangeContextProps { inputRefMap?: Partial<Record<InputName, DateInputRefMap>>; setInputRefMap?: (value: SetInputRefMapValue) => void; validationMessagePositionTop?: boolean; } declare const _default: React.Context<DateRangeContextProps>; export default _default;