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