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