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.
- package/README.md +1 -1
- package/dist/cjs/DayPicker.js +85 -83
- package/dist/cjs/UI.d.ts +0 -230
- package/dist/cjs/classes/DateLib.d.ts +0 -21
- package/dist/cjs/classes/DateLib.js +3 -13
- package/dist/cjs/components/Dropdown.d.ts +0 -11
- package/dist/cjs/components/Dropdown.js +3 -1
- package/dist/cjs/components/NextMonthButton.js +1 -3
- package/dist/cjs/components/PreviousMonthButton.js +1 -3
- package/dist/cjs/components/custom-components.d.ts +0 -1
- package/dist/cjs/components/custom-components.js +0 -1
- package/dist/cjs/formatters/formatCaption.d.ts +0 -6
- package/dist/cjs/formatters/formatCaption.js +0 -7
- package/dist/cjs/formatters/formatYearDropdown.d.ts +0 -6
- package/dist/cjs/formatters/formatYearDropdown.js +0 -7
- package/dist/cjs/helpers/getFormatters.d.ts +0 -2
- package/dist/cjs/helpers/getFormatters.js +0 -7
- package/dist/cjs/helpers/getInitialMonth.d.ts +1 -1
- package/dist/cjs/helpers/getNavMonth.d.ts +1 -1
- package/dist/cjs/helpers/getNavMonth.js +1 -21
- package/dist/cjs/hijri/index.d.ts +28 -0
- package/dist/cjs/hijri/index.js +92 -0
- package/dist/cjs/hijri/lib/addMonths.d.ts +1 -0
- package/dist/cjs/hijri/lib/addMonths.js +9 -0
- package/dist/cjs/hijri/lib/addYears.d.ts +1 -0
- package/dist/cjs/hijri/lib/addYears.js +9 -0
- package/dist/cjs/hijri/lib/differenceInCalendarMonths.d.ts +1 -0
- package/dist/cjs/hijri/lib/differenceInCalendarMonths.js +10 -0
- package/dist/cjs/hijri/lib/eachMonthOfInterval.d.ts +2 -0
- package/dist/cjs/hijri/lib/eachMonthOfInterval.js +29 -0
- package/dist/cjs/hijri/lib/eachYearOfInterval.d.ts +2 -0
- package/dist/cjs/hijri/lib/eachYearOfInterval.js +19 -0
- package/dist/cjs/hijri/lib/endOfMonth.d.ts +1 -0
- package/dist/cjs/hijri/lib/endOfMonth.js +14 -0
- package/dist/cjs/hijri/lib/endOfYear.d.ts +1 -0
- package/dist/cjs/hijri/lib/endOfYear.js +14 -0
- package/dist/cjs/hijri/lib/fallbackLocaleData.d.ts +5 -0
- package/dist/cjs/hijri/lib/fallbackLocaleData.js +111 -0
- package/dist/cjs/hijri/lib/format.d.ts +3 -0
- package/dist/cjs/hijri/lib/format.js +149 -0
- package/dist/cjs/hijri/lib/getMonth.d.ts +1 -0
- package/dist/cjs/hijri/lib/getMonth.js +7 -0
- package/dist/cjs/hijri/lib/getYear.d.ts +1 -0
- package/dist/cjs/hijri/lib/getYear.js +7 -0
- package/dist/cjs/hijri/lib/index.d.ts +17 -0
- package/dist/cjs/hijri/lib/index.js +33 -0
- package/dist/cjs/hijri/lib/isSameMonth.d.ts +1 -0
- package/dist/cjs/hijri/lib/isSameMonth.js +10 -0
- package/dist/cjs/hijri/lib/isSameYear.d.ts +1 -0
- package/dist/cjs/hijri/lib/isSameYear.js +9 -0
- package/dist/cjs/hijri/lib/newDate.d.ts +1 -0
- package/dist/cjs/hijri/lib/newDate.js +7 -0
- package/dist/cjs/hijri/lib/setMonth.d.ts +1 -0
- package/dist/cjs/hijri/lib/setMonth.js +27 -0
- package/dist/cjs/hijri/lib/setYear.d.ts +1 -0
- package/dist/cjs/hijri/lib/setYear.js +15 -0
- package/dist/cjs/hijri/lib/startOfMonth.d.ts +1 -0
- package/dist/cjs/hijri/lib/startOfMonth.js +12 -0
- package/dist/cjs/hijri/lib/startOfYear.d.ts +1 -0
- package/dist/cjs/hijri/lib/startOfYear.js +12 -0
- package/dist/cjs/hijri/utils/conversion.d.ts +5 -0
- package/dist/cjs/hijri/utils/conversion.js +40 -0
- package/dist/cjs/hijri/utils/daysInMonth.d.ts +1 -0
- package/dist/cjs/hijri/utils/daysInMonth.js +24 -0
- package/dist/cjs/hijri/utils/range.d.ts +21 -0
- package/dist/cjs/hijri/utils/range.js +104 -0
- package/dist/cjs/hijri/utils/types.d.ts +5 -0
- package/dist/cjs/hijri/utils/types.js +2 -0
- package/dist/cjs/labels/labelDayButton.d.ts +0 -5
- package/dist/cjs/labels/labelDayButton.js +0 -6
- package/dist/cjs/labels/labelGrid.d.ts +0 -5
- package/dist/cjs/labels/labelGrid.js +0 -6
- package/dist/cjs/selection/useRange.js +22 -4
- package/dist/cjs/types/index.d.ts +0 -1
- package/dist/cjs/types/index.js +0 -1
- package/dist/cjs/types/props.d.ts +30 -100
- package/dist/cjs/types/shared.d.ts +1 -45
- package/dist/cjs/useCalendar.d.ts +1 -1
- package/dist/cjs/utils/dateMatchModifiers.d.ts +0 -5
- package/dist/cjs/utils/dateMatchModifiers.js +0 -6
- package/dist/cjs/utils/rangeIncludesDate.d.ts +0 -5
- package/dist/cjs/utils/rangeIncludesDate.js +0 -7
- package/dist/esm/DayPicker.js +85 -83
- package/dist/esm/UI.d.ts +0 -230
- package/dist/esm/classes/DateLib.d.ts +0 -21
- package/dist/esm/classes/DateLib.js +2 -12
- package/dist/esm/components/Dropdown.d.ts +0 -11
- package/dist/esm/components/Dropdown.js +3 -1
- package/dist/esm/components/NextMonthButton.js +1 -3
- package/dist/esm/components/PreviousMonthButton.js +1 -3
- package/dist/esm/components/custom-components.d.ts +0 -1
- package/dist/esm/components/custom-components.js +0 -1
- package/dist/esm/formatters/formatCaption.d.ts +0 -6
- package/dist/esm/formatters/formatCaption.js +0 -6
- package/dist/esm/formatters/formatYearDropdown.d.ts +0 -6
- package/dist/esm/formatters/formatYearDropdown.js +0 -6
- package/dist/esm/helpers/getFormatters.d.ts +0 -2
- package/dist/esm/helpers/getFormatters.js +0 -7
- package/dist/esm/helpers/getInitialMonth.d.ts +1 -1
- package/dist/esm/helpers/getNavMonth.d.ts +1 -1
- package/dist/esm/helpers/getNavMonth.js +1 -21
- package/dist/esm/hijri/index.d.ts +28 -0
- package/dist/esm/hijri/index.js +49 -0
- package/dist/esm/hijri/lib/addMonths.d.ts +1 -0
- package/dist/esm/hijri/lib/addMonths.js +6 -0
- package/dist/esm/hijri/lib/addYears.d.ts +1 -0
- package/dist/esm/hijri/lib/addYears.js +6 -0
- package/dist/esm/hijri/lib/differenceInCalendarMonths.d.ts +1 -0
- package/dist/esm/hijri/lib/differenceInCalendarMonths.js +7 -0
- package/dist/esm/hijri/lib/eachMonthOfInterval.d.ts +2 -0
- package/dist/esm/hijri/lib/eachMonthOfInterval.js +26 -0
- package/dist/esm/hijri/lib/eachYearOfInterval.d.ts +2 -0
- package/dist/esm/hijri/lib/eachYearOfInterval.js +16 -0
- package/dist/esm/hijri/lib/endOfMonth.d.ts +1 -0
- package/dist/esm/hijri/lib/endOfMonth.js +11 -0
- package/dist/esm/hijri/lib/endOfYear.d.ts +1 -0
- package/dist/esm/hijri/lib/endOfYear.js +11 -0
- package/dist/esm/hijri/lib/fallbackLocaleData.d.ts +5 -0
- package/dist/esm/hijri/lib/fallbackLocaleData.js +105 -0
- package/dist/esm/hijri/lib/format.d.ts +3 -0
- package/dist/esm/hijri/lib/format.js +146 -0
- package/dist/esm/hijri/lib/getMonth.d.ts +1 -0
- package/dist/esm/hijri/lib/getMonth.js +4 -0
- package/dist/esm/hijri/lib/getYear.d.ts +1 -0
- package/dist/esm/hijri/lib/getYear.js +4 -0
- package/dist/esm/hijri/lib/index.d.ts +17 -0
- package/dist/esm/hijri/lib/index.js +17 -0
- package/dist/esm/hijri/lib/isSameMonth.d.ts +1 -0
- package/dist/esm/hijri/lib/isSameMonth.js +7 -0
- package/dist/esm/hijri/lib/isSameYear.d.ts +1 -0
- package/dist/esm/hijri/lib/isSameYear.js +6 -0
- package/dist/esm/hijri/lib/newDate.d.ts +1 -0
- package/dist/esm/hijri/lib/newDate.js +4 -0
- package/dist/esm/hijri/lib/setMonth.d.ts +1 -0
- package/dist/esm/hijri/lib/setMonth.js +24 -0
- package/dist/esm/hijri/lib/setYear.d.ts +1 -0
- package/dist/esm/hijri/lib/setYear.js +12 -0
- package/dist/esm/hijri/lib/startOfMonth.d.ts +1 -0
- package/dist/esm/hijri/lib/startOfMonth.js +9 -0
- package/dist/esm/hijri/lib/startOfYear.d.ts +1 -0
- package/dist/esm/hijri/lib/startOfYear.js +9 -0
- package/dist/esm/hijri/utils/conversion.d.ts +5 -0
- package/dist/esm/hijri/utils/conversion.js +36 -0
- package/dist/esm/hijri/utils/daysInMonth.d.ts +1 -0
- package/dist/esm/hijri/utils/daysInMonth.js +21 -0
- package/dist/esm/hijri/utils/range.d.ts +21 -0
- package/dist/esm/hijri/utils/range.js +96 -0
- package/dist/esm/hijri/utils/types.d.ts +5 -0
- package/dist/esm/hijri/utils/types.js +1 -0
- package/dist/esm/labels/labelDayButton.d.ts +0 -5
- package/dist/esm/labels/labelDayButton.js +0 -5
- package/dist/esm/labels/labelGrid.d.ts +0 -5
- package/dist/esm/labels/labelGrid.js +0 -5
- package/dist/esm/selection/useRange.js +22 -4
- package/dist/esm/types/index.d.ts +0 -1
- package/dist/esm/types/index.js +0 -1
- package/dist/esm/types/props.d.ts +30 -100
- package/dist/esm/types/shared.d.ts +1 -45
- package/dist/esm/useCalendar.d.ts +1 -1
- package/dist/esm/utils/dateMatchModifiers.d.ts +0 -5
- package/dist/esm/utils/dateMatchModifiers.js +0 -5
- package/dist/esm/utils/rangeIncludesDate.d.ts +0 -5
- package/dist/esm/utils/rangeIncludesDate.js +0 -5
- package/hijri.d.ts +1 -0
- package/hijri.js +2 -0
- package/package.json +24 -23
- package/dist/cjs/components/Button.d.ts +0 -9
- package/dist/cjs/components/Button.js +0 -16
- package/dist/cjs/jalali.d.ts +0 -2
- package/dist/cjs/jalali.js +0 -18
- package/dist/cjs/types/deprecated.d.ts +0 -180
- package/dist/cjs/types/deprecated.js +0 -26
- package/dist/esm/components/Button.d.ts +0 -9
- package/dist/esm/components/Button.js +0 -10
- package/dist/esm/jalali.d.ts +0 -2
- package/dist/esm/jalali.js +0 -2
- package/dist/esm/types/deprecated.d.ts +0 -180
- package/dist/esm/types/deprecated.js +0 -23
- package/jalali.d.ts +0 -1
- 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
|
-
}
|
package/dist/esm/jalali.d.ts
DELETED
package/dist/esm/jalali.js
DELETED
|
@@ -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