UNPKG

5.33 kBTypeScriptView Raw
1import { DayFlag, SelectionState } from "../UI.js";
2import { MonthCaption, type MonthCaptionProps } from "../components/MonthCaption.js";
3import { Week, type WeekProps } from "../components/Week.js";
4import { labelDayButton, labelNext, labelWeekday, labelWeekNumber } from "../labels/index.js";
5import { useDayPicker } from "../useDayPicker.js";
6import type { PropsMulti, PropsRange, PropsSingle } from "./props.js";
7import type { Mode, DayEventHandler } from "./shared.js";
8/**
9 * @ignore
10 * @deprecated This type will be removed.
11 */
12export type RootProvider = any;
13/**
14 * @ignore
15 * @deprecated This type will be removed.
16 */
17export type RootProviderProps = any;
18/**
19 * @ignore
20 * @deprecated This component has been renamed. Use `MonthCaption` instead.
21 * @group Components
22 * @see https://daypicker.dev/guides/custom-components
23 */
24export declare const Caption: typeof MonthCaption;
25/**
26 * @ignore
27 * @deprecated This type has been renamed. Use `MonthCaptionProps` instead.
28 */
29export type CaptionProps = MonthCaptionProps;
30/**
31 * @ignore
32 * @deprecated This component has been removed.
33 * @group Components
34 * @see https://daypicker.dev/guides/custom-components
35 */
36export type HeadRow = any;
37/**
38 * @ignore
39 * @deprecated This component has been renamed. Use `Week` instead.
40 * @group Components
41 * @see https://daypicker.dev/guides/custom-components
42 */
43export declare const Row: typeof Week;
44/**
45 * @ignore
46 * @deprecated This type has been removed. Use `WeekProps` instead.
47 */
48export type RowProps = WeekProps;
49/**
50 * @ignore
51 * @deprecated This type has been renamed. Use `PropsSingle` instead.
52 */
53export type DayPickerSingleProps = PropsSingle;
54/**
55 * @ignore
56 * @deprecated This type has been renamed. Use `PropsMulti` instead.
57 */
58export type DayPickerMultipleProps = PropsMulti;
59/**
60 * @ignore
61 * @deprecated This type has been renamed. Use `PropsRange` instead.
62 */
63export type DayPickerRangeProps = PropsRange;
64/**
65 * @ignore
66 * @deprecated This type will be removed. Use `NonNullable<unknown>` instead
67 */
68export type DayPickerDefaultProps = NonNullable<unknown>;
69/**
70 * @ignore
71 * @deprecated This type has been renamed. Use `Mode` instead.
72 */
73export type DaySelectionMode = Mode;
74/**
75 * @ignore
76 * @deprecated This type will be removed. Use `string` instead;
77 */
78export type Modifier = string;
79/**
80 * @ignore
81 * @deprecated This type will be removed. Use {@link DayFlag} or
82 * {@link SelectionState} instead.
83 */
84export type InternalModifier = DayFlag.disabled | DayFlag.hidden | DayFlag.focused | SelectionState.range_end | SelectionState.range_middle | SelectionState.range_start | SelectionState.selected;
85/**
86 * @ignore
87 * @deprecated This type will be removed. Use `SelectHandler<"single">` instead.
88 */
89export type SelectSingleEventHandler = PropsSingle["onSelect"];
90/**
91 * @ignore
92 * @deprecated This type will be removed. Use `SelectHandler<"multiple">`
93 * instead.
94 */
95export type SelectMultipleEventHandler = PropsMulti["onSelect"];
96/**
97 * @ignore
98 * @deprecated This type will be removed. Use `SelectHandler<"range">` instead.
99 */
100export type SelectRangeEventHandler = PropsRange["onSelect"];
101/**
102 * @ignore
103 * @deprecated This type is not used anymore.
104 */
105export type DayPickerProviderProps = any;
106/**
107 * @ignore
108 * @deprecated This type has been removed to `useDayPicker`.
109 * @group Hooks
110 */
111export declare const useNavigation: typeof useDayPicker;
112/**
113 * @ignore
114 * @deprecated This hook has been removed. Use a custom `Day` component instead.
115 * @group Hooks
116 * @see https://daypicker.dev/guides/custom-components
117 */
118export type useDayRender = any;
119/**
120 * @ignore
121 * @deprecated This type is not used anymore.
122 */
123export type ContextProvidersProps = any;
124/**
125 * @ignore
126 * @deprecated Use `typeof labelDayButton` instead.
127 */
128export type DayLabel = typeof labelDayButton;
129/**
130 * @ignore
131 * @deprecated Use `typeof labelNext` or `typeof labelPrevious` instead.
132 */
133export type NavButtonLabel = typeof labelNext;
134/**
135 * @ignore
136 * @deprecated Use `typeof labelWeekday` instead.
137 */
138export type WeekdayLabel = typeof labelWeekday;
139/**
140 * @ignore
141 * @deprecated Use `typeof labelWeekNumber` instead.
142 */
143export type WeekNumberLabel = typeof labelWeekNumber;
144/**
145 * @ignore
146 * @deprecated Use {@link DayMouseEventHandler} instead.
147 */
148export type DayClickEventHandler = DayEventHandler<React.MouseEvent>;
149/**
150 * @ignore
151 * @deprecated This type will be removed. Use `DayEventHandler<React.FocusEvent
152 * | React.KeyboardEvent>` instead.
153 */
154export type DayFocusEventHandler = DayEventHandler<React.FocusEvent | React.KeyboardEvent>;
155/**
156 * @ignore
157 * @deprecated This type will be removed. Use
158 * `DayEventHandler<React.KeyboardEvent>` instead.
159 */
160export type DayKeyboardEventHandler = DayEventHandler<React.KeyboardEvent>;
161/**
162 * @ignore
163 * @deprecated This type will be removed. Use
164 * `DayEventHandler<React.MouseEvent>` instead.
165 */
166export type DayMouseEventHandler = DayEventHandler<React.MouseEvent>;
167/**
168 * @ignore
169 * @deprecated This type will be removed. Use
170 * `DayEventHandler<React.PointerEvent>` instead.
171 */
172export type DayPointerEventHandler = DayEventHandler<React.PointerEvent>;
173/**
174 * @ignore
175 * @deprecated This type will be removed. Use
176 * `DayEventHandler<React.TouchEvent>` instead.
177 */
178export type DayTouchEventHandler = DayEventHandler<React.TouchEvent>;