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