react-day-picker 9.13.2 → 10.0.0-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (180) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/DayPicker.js +85 -83
  3. package/dist/cjs/UI.d.ts +0 -230
  4. package/dist/cjs/classes/DateLib.d.ts +0 -21
  5. package/dist/cjs/classes/DateLib.js +3 -13
  6. package/dist/cjs/components/Dropdown.d.ts +0 -11
  7. package/dist/cjs/components/Dropdown.js +3 -1
  8. package/dist/cjs/components/NextMonthButton.js +1 -3
  9. package/dist/cjs/components/PreviousMonthButton.js +1 -3
  10. package/dist/cjs/components/custom-components.d.ts +0 -1
  11. package/dist/cjs/components/custom-components.js +0 -1
  12. package/dist/cjs/formatters/formatCaption.d.ts +0 -6
  13. package/dist/cjs/formatters/formatCaption.js +0 -7
  14. package/dist/cjs/formatters/formatYearDropdown.d.ts +0 -6
  15. package/dist/cjs/formatters/formatYearDropdown.js +0 -7
  16. package/dist/cjs/helpers/getFormatters.d.ts +0 -2
  17. package/dist/cjs/helpers/getFormatters.js +0 -7
  18. package/dist/cjs/helpers/getInitialMonth.d.ts +1 -1
  19. package/dist/cjs/helpers/getNavMonth.d.ts +1 -1
  20. package/dist/cjs/helpers/getNavMonth.js +1 -21
  21. package/dist/cjs/hijri/index.d.ts +28 -0
  22. package/dist/cjs/hijri/index.js +92 -0
  23. package/dist/cjs/hijri/lib/addMonths.d.ts +1 -0
  24. package/dist/cjs/hijri/lib/addMonths.js +9 -0
  25. package/dist/cjs/hijri/lib/addYears.d.ts +1 -0
  26. package/dist/cjs/hijri/lib/addYears.js +9 -0
  27. package/dist/cjs/hijri/lib/differenceInCalendarMonths.d.ts +1 -0
  28. package/dist/cjs/hijri/lib/differenceInCalendarMonths.js +10 -0
  29. package/dist/cjs/hijri/lib/eachMonthOfInterval.d.ts +2 -0
  30. package/dist/cjs/hijri/lib/eachMonthOfInterval.js +29 -0
  31. package/dist/cjs/hijri/lib/eachYearOfInterval.d.ts +2 -0
  32. package/dist/cjs/hijri/lib/eachYearOfInterval.js +19 -0
  33. package/dist/cjs/hijri/lib/endOfMonth.d.ts +1 -0
  34. package/dist/cjs/hijri/lib/endOfMonth.js +14 -0
  35. package/dist/cjs/hijri/lib/endOfYear.d.ts +1 -0
  36. package/dist/cjs/hijri/lib/endOfYear.js +14 -0
  37. package/dist/cjs/hijri/lib/fallbackLocaleData.d.ts +5 -0
  38. package/dist/cjs/hijri/lib/fallbackLocaleData.js +111 -0
  39. package/dist/cjs/hijri/lib/format.d.ts +3 -0
  40. package/dist/cjs/hijri/lib/format.js +149 -0
  41. package/dist/cjs/hijri/lib/getMonth.d.ts +1 -0
  42. package/dist/cjs/hijri/lib/getMonth.js +7 -0
  43. package/dist/cjs/hijri/lib/getYear.d.ts +1 -0
  44. package/dist/cjs/hijri/lib/getYear.js +7 -0
  45. package/dist/cjs/hijri/lib/index.d.ts +17 -0
  46. package/dist/cjs/hijri/lib/index.js +33 -0
  47. package/dist/cjs/hijri/lib/isSameMonth.d.ts +1 -0
  48. package/dist/cjs/hijri/lib/isSameMonth.js +10 -0
  49. package/dist/cjs/hijri/lib/isSameYear.d.ts +1 -0
  50. package/dist/cjs/hijri/lib/isSameYear.js +9 -0
  51. package/dist/cjs/hijri/lib/newDate.d.ts +1 -0
  52. package/dist/cjs/hijri/lib/newDate.js +7 -0
  53. package/dist/cjs/hijri/lib/setMonth.d.ts +1 -0
  54. package/dist/cjs/hijri/lib/setMonth.js +27 -0
  55. package/dist/cjs/hijri/lib/setYear.d.ts +1 -0
  56. package/dist/cjs/hijri/lib/setYear.js +15 -0
  57. package/dist/cjs/hijri/lib/startOfMonth.d.ts +1 -0
  58. package/dist/cjs/hijri/lib/startOfMonth.js +12 -0
  59. package/dist/cjs/hijri/lib/startOfYear.d.ts +1 -0
  60. package/dist/cjs/hijri/lib/startOfYear.js +12 -0
  61. package/dist/cjs/hijri/utils/conversion.d.ts +5 -0
  62. package/dist/cjs/hijri/utils/conversion.js +40 -0
  63. package/dist/cjs/hijri/utils/daysInMonth.d.ts +1 -0
  64. package/dist/cjs/hijri/utils/daysInMonth.js +24 -0
  65. package/dist/cjs/hijri/utils/range.d.ts +21 -0
  66. package/dist/cjs/hijri/utils/range.js +104 -0
  67. package/dist/cjs/hijri/utils/types.d.ts +5 -0
  68. package/dist/cjs/hijri/utils/types.js +2 -0
  69. package/dist/cjs/labels/labelDayButton.d.ts +0 -5
  70. package/dist/cjs/labels/labelDayButton.js +0 -6
  71. package/dist/cjs/labels/labelGrid.d.ts +0 -5
  72. package/dist/cjs/labels/labelGrid.js +0 -6
  73. package/dist/cjs/selection/useRange.js +22 -4
  74. package/dist/cjs/types/index.d.ts +0 -1
  75. package/dist/cjs/types/index.js +0 -1
  76. package/dist/cjs/types/props.d.ts +30 -100
  77. package/dist/cjs/types/shared.d.ts +1 -45
  78. package/dist/cjs/useCalendar.d.ts +1 -1
  79. package/dist/cjs/utils/dateMatchModifiers.d.ts +0 -5
  80. package/dist/cjs/utils/dateMatchModifiers.js +0 -6
  81. package/dist/cjs/utils/rangeIncludesDate.d.ts +0 -5
  82. package/dist/cjs/utils/rangeIncludesDate.js +0 -7
  83. package/dist/esm/DayPicker.js +85 -83
  84. package/dist/esm/UI.d.ts +0 -230
  85. package/dist/esm/classes/DateLib.d.ts +0 -21
  86. package/dist/esm/classes/DateLib.js +2 -12
  87. package/dist/esm/components/Dropdown.d.ts +0 -11
  88. package/dist/esm/components/Dropdown.js +3 -1
  89. package/dist/esm/components/NextMonthButton.js +1 -3
  90. package/dist/esm/components/PreviousMonthButton.js +1 -3
  91. package/dist/esm/components/custom-components.d.ts +0 -1
  92. package/dist/esm/components/custom-components.js +0 -1
  93. package/dist/esm/formatters/formatCaption.d.ts +0 -6
  94. package/dist/esm/formatters/formatCaption.js +0 -6
  95. package/dist/esm/formatters/formatYearDropdown.d.ts +0 -6
  96. package/dist/esm/formatters/formatYearDropdown.js +0 -6
  97. package/dist/esm/helpers/getFormatters.d.ts +0 -2
  98. package/dist/esm/helpers/getFormatters.js +0 -7
  99. package/dist/esm/helpers/getInitialMonth.d.ts +1 -1
  100. package/dist/esm/helpers/getNavMonth.d.ts +1 -1
  101. package/dist/esm/helpers/getNavMonth.js +1 -21
  102. package/dist/esm/hijri/index.d.ts +28 -0
  103. package/dist/esm/hijri/index.js +49 -0
  104. package/dist/esm/hijri/lib/addMonths.d.ts +1 -0
  105. package/dist/esm/hijri/lib/addMonths.js +6 -0
  106. package/dist/esm/hijri/lib/addYears.d.ts +1 -0
  107. package/dist/esm/hijri/lib/addYears.js +6 -0
  108. package/dist/esm/hijri/lib/differenceInCalendarMonths.d.ts +1 -0
  109. package/dist/esm/hijri/lib/differenceInCalendarMonths.js +7 -0
  110. package/dist/esm/hijri/lib/eachMonthOfInterval.d.ts +2 -0
  111. package/dist/esm/hijri/lib/eachMonthOfInterval.js +26 -0
  112. package/dist/esm/hijri/lib/eachYearOfInterval.d.ts +2 -0
  113. package/dist/esm/hijri/lib/eachYearOfInterval.js +16 -0
  114. package/dist/esm/hijri/lib/endOfMonth.d.ts +1 -0
  115. package/dist/esm/hijri/lib/endOfMonth.js +11 -0
  116. package/dist/esm/hijri/lib/endOfYear.d.ts +1 -0
  117. package/dist/esm/hijri/lib/endOfYear.js +11 -0
  118. package/dist/esm/hijri/lib/fallbackLocaleData.d.ts +5 -0
  119. package/dist/esm/hijri/lib/fallbackLocaleData.js +105 -0
  120. package/dist/esm/hijri/lib/format.d.ts +3 -0
  121. package/dist/esm/hijri/lib/format.js +146 -0
  122. package/dist/esm/hijri/lib/getMonth.d.ts +1 -0
  123. package/dist/esm/hijri/lib/getMonth.js +4 -0
  124. package/dist/esm/hijri/lib/getYear.d.ts +1 -0
  125. package/dist/esm/hijri/lib/getYear.js +4 -0
  126. package/dist/esm/hijri/lib/index.d.ts +17 -0
  127. package/dist/esm/hijri/lib/index.js +17 -0
  128. package/dist/esm/hijri/lib/isSameMonth.d.ts +1 -0
  129. package/dist/esm/hijri/lib/isSameMonth.js +7 -0
  130. package/dist/esm/hijri/lib/isSameYear.d.ts +1 -0
  131. package/dist/esm/hijri/lib/isSameYear.js +6 -0
  132. package/dist/esm/hijri/lib/newDate.d.ts +1 -0
  133. package/dist/esm/hijri/lib/newDate.js +4 -0
  134. package/dist/esm/hijri/lib/setMonth.d.ts +1 -0
  135. package/dist/esm/hijri/lib/setMonth.js +24 -0
  136. package/dist/esm/hijri/lib/setYear.d.ts +1 -0
  137. package/dist/esm/hijri/lib/setYear.js +12 -0
  138. package/dist/esm/hijri/lib/startOfMonth.d.ts +1 -0
  139. package/dist/esm/hijri/lib/startOfMonth.js +9 -0
  140. package/dist/esm/hijri/lib/startOfYear.d.ts +1 -0
  141. package/dist/esm/hijri/lib/startOfYear.js +9 -0
  142. package/dist/esm/hijri/utils/conversion.d.ts +5 -0
  143. package/dist/esm/hijri/utils/conversion.js +36 -0
  144. package/dist/esm/hijri/utils/daysInMonth.d.ts +1 -0
  145. package/dist/esm/hijri/utils/daysInMonth.js +21 -0
  146. package/dist/esm/hijri/utils/range.d.ts +21 -0
  147. package/dist/esm/hijri/utils/range.js +96 -0
  148. package/dist/esm/hijri/utils/types.d.ts +5 -0
  149. package/dist/esm/hijri/utils/types.js +1 -0
  150. package/dist/esm/labels/labelDayButton.d.ts +0 -5
  151. package/dist/esm/labels/labelDayButton.js +0 -5
  152. package/dist/esm/labels/labelGrid.d.ts +0 -5
  153. package/dist/esm/labels/labelGrid.js +0 -5
  154. package/dist/esm/selection/useRange.js +22 -4
  155. package/dist/esm/types/index.d.ts +0 -1
  156. package/dist/esm/types/index.js +0 -1
  157. package/dist/esm/types/props.d.ts +30 -100
  158. package/dist/esm/types/shared.d.ts +1 -45
  159. package/dist/esm/useCalendar.d.ts +1 -1
  160. package/dist/esm/utils/dateMatchModifiers.d.ts +0 -5
  161. package/dist/esm/utils/dateMatchModifiers.js +0 -5
  162. package/dist/esm/utils/rangeIncludesDate.d.ts +0 -5
  163. package/dist/esm/utils/rangeIncludesDate.js +0 -5
  164. package/hijri.d.ts +1 -0
  165. package/hijri.js +2 -0
  166. package/package.json +24 -23
  167. package/dist/cjs/components/Button.d.ts +0 -9
  168. package/dist/cjs/components/Button.js +0 -16
  169. package/dist/cjs/jalali.d.ts +0 -2
  170. package/dist/cjs/jalali.js +0 -18
  171. package/dist/cjs/types/deprecated.d.ts +0 -180
  172. package/dist/cjs/types/deprecated.js +0 -26
  173. package/dist/esm/components/Button.d.ts +0 -9
  174. package/dist/esm/components/Button.js +0 -10
  175. package/dist/esm/jalali.d.ts +0 -2
  176. package/dist/esm/jalali.js +0 -2
  177. package/dist/esm/types/deprecated.d.ts +0 -180
  178. package/dist/esm/types/deprecated.js +0 -23
  179. package/jalali.d.ts +0 -1
  180. package/jalali.js +0 -3
@@ -1,180 +0,0 @@
1
- import { MonthCaption, type MonthCaptionProps } from "../components/MonthCaption.js";
2
- import { Week, type WeekProps } from "../components/Week.js";
3
- import type { labelDayButton, labelNext, labelWeekday, labelWeekNumber } from "../labels/index.js";
4
- import type { DayFlag, SelectionState } from "../UI.js";
5
- import { useDayPicker } from "../useDayPicker.js";
6
- import type { PropsMulti, PropsRange, PropsSingle } from "./props.js";
7
- import type { DayEventHandler, Mode } 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<{ mode: "single"
88
- * }>` instead.
89
- */
90
- export type SelectSingleEventHandler = PropsSingle["onSelect"];
91
- /**
92
- * @ignore
93
- * @deprecated This type will be removed. Use `SelectHandler<{ mode: "multiple"
94
- * }>` instead.
95
- */
96
- export type SelectMultipleEventHandler = PropsMulti["onSelect"];
97
- /**
98
- * @ignore
99
- * @deprecated This type will be removed. Use `SelectHandler<{ mode: "range" }>`
100
- * instead.
101
- */
102
- export type SelectRangeEventHandler = PropsRange["onSelect"];
103
- /**
104
- * @ignore
105
- * @deprecated This type is not used anymore.
106
- */
107
- export type DayPickerProviderProps = any;
108
- /**
109
- * @ignore
110
- * @deprecated This type has been moved to `useDayPicker`.
111
- * @group Hooks
112
- */
113
- export declare const useNavigation: typeof useDayPicker;
114
- /**
115
- * @ignore
116
- * @deprecated This hook has been removed. Use a custom `Day` component instead.
117
- * @group Hooks
118
- * @see https://daypicker.dev/guides/custom-components
119
- */
120
- export type useDayRender = any;
121
- /**
122
- * @ignore
123
- * @deprecated This type is not used anymore.
124
- */
125
- export type ContextProvidersProps = any;
126
- /**
127
- * @ignore
128
- * @deprecated Use `typeof labelDayButton` instead.
129
- */
130
- export type DayLabel = typeof labelDayButton;
131
- /**
132
- * @ignore
133
- * @deprecated Use `typeof labelNext` or `typeof labelPrevious` instead.
134
- */
135
- export type NavButtonLabel = typeof labelNext;
136
- /**
137
- * @ignore
138
- * @deprecated Use `typeof labelWeekday` instead.
139
- */
140
- export type WeekdayLabel = typeof labelWeekday;
141
- /**
142
- * @ignore
143
- * @deprecated Use `typeof labelWeekNumber` instead.
144
- */
145
- export type WeekNumberLabel = typeof labelWeekNumber;
146
- /**
147
- * @ignore
148
- * @deprecated Use {@link DayMouseEventHandler} instead.
149
- */
150
- export type DayClickEventHandler = DayEventHandler<React.MouseEvent>;
151
- /**
152
- * @ignore
153
- * @deprecated This type will be removed. Use `DayEventHandler<React.FocusEvent
154
- * | React.KeyboardEvent>` instead.
155
- */
156
- export type DayFocusEventHandler = DayEventHandler<React.FocusEvent | React.KeyboardEvent>;
157
- /**
158
- * @ignore
159
- * @deprecated This type will be removed. Use
160
- * `DayEventHandler<React.KeyboardEvent>` instead.
161
- */
162
- export type DayKeyboardEventHandler = DayEventHandler<React.KeyboardEvent>;
163
- /**
164
- * @ignore
165
- * @deprecated This type will be removed. Use
166
- * `DayEventHandler<React.MouseEvent>` instead.
167
- */
168
- export type DayMouseEventHandler = DayEventHandler<React.MouseEvent>;
169
- /**
170
- * @ignore
171
- * @deprecated This type will be removed. Use
172
- * `DayEventHandler<React.PointerEvent>` instead.
173
- */
174
- export type DayPointerEventHandler = DayEventHandler<React.PointerEvent>;
175
- /**
176
- * @ignore
177
- * @deprecated This type will be removed. Use
178
- * `DayEventHandler<React.TouchEvent>` instead.
179
- */
180
- export type DayTouchEventHandler = DayEventHandler<React.TouchEvent>;
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useNavigation = exports.Row = exports.Caption = void 0;
4
- const MonthCaption_js_1 = require("../components/MonthCaption.js");
5
- const Week_js_1 = require("../components/Week.js");
6
- const useDayPicker_js_1 = require("../useDayPicker.js");
7
- /**
8
- * @ignore
9
- * @deprecated This component has been renamed. Use `MonthCaption` instead.
10
- * @group Components
11
- * @see https://daypicker.dev/guides/custom-components
12
- */
13
- exports.Caption = MonthCaption_js_1.MonthCaption;
14
- /**
15
- * @ignore
16
- * @deprecated This component has been renamed. Use `Week` instead.
17
- * @group Components
18
- * @see https://daypicker.dev/guides/custom-components
19
- */
20
- exports.Row = Week_js_1.Week;
21
- /**
22
- * @ignore
23
- * @deprecated This type has been moved to `useDayPicker`.
24
- * @group Hooks
25
- */
26
- exports.useNavigation = useDayPicker_js_1.useDayPicker;
@@ -1,9 +0,0 @@
1
- import React, { type ButtonHTMLAttributes } from "react";
2
- /**
3
- * Render the button elements in the calendar.
4
- *
5
- * @private
6
- * @deprecated Use `PreviousMonthButton` or `@link NextMonthButton` instead.
7
- */
8
- export declare function Button(props: ButtonHTMLAttributes<HTMLButtonElement>): React.JSX.Element;
9
- export type ButtonProps = Parameters<typeof Button>[0];
@@ -1,10 +0,0 @@
1
- import React from "react";
2
- /**
3
- * Render the button elements in the calendar.
4
- *
5
- * @private
6
- * @deprecated Use `PreviousMonthButton` or `@link NextMonthButton` instead.
7
- */
8
- export function Button(props) {
9
- return React.createElement("button", { ...props });
10
- }
@@ -1,2 +0,0 @@
1
- /** @deprecated Import from `react-day-picker/persian` instead. */
2
- export * from "./persian.js";
@@ -1,2 +0,0 @@
1
- /** @deprecated Import from `react-day-picker/persian` instead. */
2
- export * from "./persian.js";
@@ -1,180 +0,0 @@
1
- import { MonthCaption, type MonthCaptionProps } from "../components/MonthCaption.js";
2
- import { Week, type WeekProps } from "../components/Week.js";
3
- import type { labelDayButton, labelNext, labelWeekday, labelWeekNumber } from "../labels/index.js";
4
- import type { DayFlag, SelectionState } from "../UI.js";
5
- import { useDayPicker } from "../useDayPicker.js";
6
- import type { PropsMulti, PropsRange, PropsSingle } from "./props.js";
7
- import type { DayEventHandler, Mode } 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<{ mode: "single"
88
- * }>` instead.
89
- */
90
- export type SelectSingleEventHandler = PropsSingle["onSelect"];
91
- /**
92
- * @ignore
93
- * @deprecated This type will be removed. Use `SelectHandler<{ mode: "multiple"
94
- * }>` instead.
95
- */
96
- export type SelectMultipleEventHandler = PropsMulti["onSelect"];
97
- /**
98
- * @ignore
99
- * @deprecated This type will be removed. Use `SelectHandler<{ mode: "range" }>`
100
- * instead.
101
- */
102
- export type SelectRangeEventHandler = PropsRange["onSelect"];
103
- /**
104
- * @ignore
105
- * @deprecated This type is not used anymore.
106
- */
107
- export type DayPickerProviderProps = any;
108
- /**
109
- * @ignore
110
- * @deprecated This type has been moved to `useDayPicker`.
111
- * @group Hooks
112
- */
113
- export declare const useNavigation: typeof useDayPicker;
114
- /**
115
- * @ignore
116
- * @deprecated This hook has been removed. Use a custom `Day` component instead.
117
- * @group Hooks
118
- * @see https://daypicker.dev/guides/custom-components
119
- */
120
- export type useDayRender = any;
121
- /**
122
- * @ignore
123
- * @deprecated This type is not used anymore.
124
- */
125
- export type ContextProvidersProps = any;
126
- /**
127
- * @ignore
128
- * @deprecated Use `typeof labelDayButton` instead.
129
- */
130
- export type DayLabel = typeof labelDayButton;
131
- /**
132
- * @ignore
133
- * @deprecated Use `typeof labelNext` or `typeof labelPrevious` instead.
134
- */
135
- export type NavButtonLabel = typeof labelNext;
136
- /**
137
- * @ignore
138
- * @deprecated Use `typeof labelWeekday` instead.
139
- */
140
- export type WeekdayLabel = typeof labelWeekday;
141
- /**
142
- * @ignore
143
- * @deprecated Use `typeof labelWeekNumber` instead.
144
- */
145
- export type WeekNumberLabel = typeof labelWeekNumber;
146
- /**
147
- * @ignore
148
- * @deprecated Use {@link DayMouseEventHandler} instead.
149
- */
150
- export type DayClickEventHandler = DayEventHandler<React.MouseEvent>;
151
- /**
152
- * @ignore
153
- * @deprecated This type will be removed. Use `DayEventHandler<React.FocusEvent
154
- * | React.KeyboardEvent>` instead.
155
- */
156
- export type DayFocusEventHandler = DayEventHandler<React.FocusEvent | React.KeyboardEvent>;
157
- /**
158
- * @ignore
159
- * @deprecated This type will be removed. Use
160
- * `DayEventHandler<React.KeyboardEvent>` instead.
161
- */
162
- export type DayKeyboardEventHandler = DayEventHandler<React.KeyboardEvent>;
163
- /**
164
- * @ignore
165
- * @deprecated This type will be removed. Use
166
- * `DayEventHandler<React.MouseEvent>` instead.
167
- */
168
- export type DayMouseEventHandler = DayEventHandler<React.MouseEvent>;
169
- /**
170
- * @ignore
171
- * @deprecated This type will be removed. Use
172
- * `DayEventHandler<React.PointerEvent>` instead.
173
- */
174
- export type DayPointerEventHandler = DayEventHandler<React.PointerEvent>;
175
- /**
176
- * @ignore
177
- * @deprecated This type will be removed. Use
178
- * `DayEventHandler<React.TouchEvent>` instead.
179
- */
180
- export type DayTouchEventHandler = DayEventHandler<React.TouchEvent>;
@@ -1,23 +0,0 @@
1
- import { MonthCaption, } from "../components/MonthCaption.js";
2
- import { Week } from "../components/Week.js";
3
- import { useDayPicker } from "../useDayPicker.js";
4
- /**
5
- * @ignore
6
- * @deprecated This component has been renamed. Use `MonthCaption` instead.
7
- * @group Components
8
- * @see https://daypicker.dev/guides/custom-components
9
- */
10
- export const Caption = MonthCaption;
11
- /**
12
- * @ignore
13
- * @deprecated This component has been renamed. Use `Week` instead.
14
- * @group Components
15
- * @see https://daypicker.dev/guides/custom-components
16
- */
17
- export const Row = Week;
18
- /**
19
- * @ignore
20
- * @deprecated This type has been moved to `useDayPicker`.
21
- * @group Hooks
22
- */
23
- export const useNavigation = useDayPicker;
package/jalali.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from "./dist/cjs/jalali.d.ts";
package/jalali.js DELETED
@@ -1,3 +0,0 @@
1
- const jalali = require("./dist/cjs/jalali.js");
2
- module.exports = jalali;
3
-