UNPKG

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