UNPKG

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