Skip to content

Commit f3a0d8f

Browse files
committed
v3.0.0
2 parents 3e82b29 + 565ca27 commit f3a0d8f

File tree

132 files changed

+28530
-5284
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+28530
-5284
lines changed

.gitignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
/website/node_modules
55
/website/public
66
/website/.cache
7-
/plugins/*
8-
!/plugins/all.js
9-
!/plugins/all/
7+
/plugins
8+
/components
109
.npmignore

.npmignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
/coverage
44
/test
55
/website
6-
/plugins/all
7-
/plugins/all.js
86
rollup.config.js
9-
jest.config.json
7+
jest.config.js
8+
babel.config.js
109
.github
1110
.gitignore
1211
.babelrc

README.md

Lines changed: 75 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ npm install --save react-multi-date-picker
3535
- [Multiple Date Picker](https://shahabyazdi.github.io/react-multi-date-picker/multiple/)
3636
- [Range Picker](https://shahabyazdi.github.io/react-multi-date-picker/range/)
3737
- [Time Picker & Other Pickers](https://shahabyazdi.github.io/react-multi-date-picker/other-pickers/)
38+
- [FullYear Picker](https://shahabyazdi.github.io/react-multi-date-picker/other-examples/#full-year-view)
3839
- [Locales](https://shahabyazdi.github.io/react-multi-date-picker/locales/)
3940
- **[Plugins](https://shahabyazdi.github.io/react-multi-date-picker/plugins)**
4041

@@ -156,18 +157,6 @@ export default function Example() {
156157
<td style="text-align:center">false</td>
157158
<td>both</td>
158159
</tr>
159-
<tr style="color:red">
160-
<td>timePicker (deprecated)</td>
161-
<td style="text-align:center">Boolean</td>
162-
<td style="text-align:center">false</td>
163-
<td>both</td>
164-
</tr>
165-
<tr style="color:red">
166-
<td>onlyTimePicker (deprecated)</td>
167-
<td style="text-align:center">Boolean</td>
168-
<td style="text-align:center">false</td>
169-
<td>both</td>
170-
</tr>
171160
<tr>
172161
<td>onlyMonthPicker</td>
173162
<td style="text-align:center">Boolean</td>
@@ -384,6 +373,12 @@ export default function Example() {
384373
<td style="text-align:center">true</td>
385374
<td>both</td>
386375
</tr>
376+
<tr>
377+
<td>fullYear</td>
378+
<td style="text-align:center">Boolean</td>
379+
<td style="text-align:center">false</td>
380+
<td>both</td>
381+
</tr>
387382
<tr>
388383
<td>containerClassName</td>
389384
<td style="text-align:center">String</td>
@@ -421,8 +416,8 @@ export default function Example() {
421416
<td>DatePicker</td>
422417
</tr>
423418
<tr>
424-
<td>animation</td>
425-
<td style="text-align:center">Boolean</td>
419+
<td>animations</td>
420+
<td style="text-align:center">Array</td>
426421
<td style="text-align:center">false</td>
427422
<td>DatePicker</td>
428423
</tr>
@@ -462,12 +457,6 @@ export default function Example() {
462457
<td style="text-align:center"></td>
463458
<td>DatePicker</td>
464459
</tr>
465-
<tr>
466-
<td>type</td>
467-
<td style="text-align:center">String</td>
468-
<td style="text-align:center">input</td>
469-
<td>DatePicker</td>
470-
</tr>
471460
<tr>
472461
<td>render</td>
473462
<td style="text-align:center">React.ReactElement or Function</td>
@@ -528,6 +517,12 @@ export default function Example() {
528517
<td style="text-align:center"></td>
529518
<td>DatePicker</td>
530519
</tr>
520+
<tr>
521+
<td>onPositionChange</td>
522+
<td style="text-align:center">Function</td>
523+
<td style="text-align:center"></td>
524+
<td>DatePicker</td>
525+
</tr>
531526
<tr>
532527
<td>fixMainPosition</td>
533528
<td style="text-align:center">Boolean</td>
@@ -552,36 +547,72 @@ export default function Example() {
552547
<td style="text-align:center">0</td>
553548
<td>DatePicker</td>
554549
</tr>
555-
<tr>
556-
<td>onPositionChange</td>
557-
<td style="text-align:center">Function</td>
558-
<td style="text-align:center"></td>
559-
<td>DatePicker</td>
560-
</tr>
561550
</tbody>
562551
</table>
563552

564-
## Calendars
553+
# Calendars & Locales
565554

566-
- gregorian (default)
567-
- persian
568-
- arabic
569-
- indian
555+
Click [here](https://shahabyazdi.github.io/react-multi-date-picker/calendars) to see the descriptions.
570556

571-
## locales
572-
573-
- en (default)
574-
- fa
575-
- ar
576-
- hi
557+
<table>
558+
<tbody>
559+
<tr>
560+
<th colspan="2" rowspan="2">Calendars</th>
561+
<th>Gregorian</th>
562+
<th>Persian (Solar Hijri)</th>
563+
<th>Jalali</th>
564+
<th>Arabic (Lunar Hijri)</th>
565+
<th>Indian</th>
566+
</tr>
567+
<tr>
568+
<td>/calendars/gregorian</td>
569+
<td>/calendars/persian</td>
570+
<td>/calendars/jalali</td>
571+
<td>/calendars/arabic</td>
572+
<td>/calendars/indian</td>
573+
</tr>
574+
<tr>
575+
<th rowspan="4">Locales</th>
576+
<th>English</th>
577+
<td>/locales/gregorian_en</td>
578+
<td>/locales/persian_en</td>
579+
<td>/locales/persian_en</td>
580+
<td>/locales/arabic_en</td>
581+
<td>/locales/indian_en</td>
582+
</tr>
583+
<tr>
584+
<th>Farsi</th>
585+
<td>/locales/gregorian_fa</td>
586+
<td>/locales/persian_fa</td>
587+
<td>/locales/persian_fa</td>
588+
<td>/locales/arabic_fa</td>
589+
<td>/locales/indian_fa</td>
590+
</tr>
591+
<tr>
592+
<th>Arabic</th>
593+
<td>/locales/gregorian_ar</td>
594+
<td>/locales/persian_ar</td>
595+
<td>/locales/persian_ar</td>
596+
<td>/locales/arabic_ar</td>
597+
<td>/locales/indian_ar</td>
598+
</tr>
599+
<tr>
600+
<th>Hindi</th>
601+
<td>/locales/gregorian_hi</td>
602+
<td>/locales/persian_hi</td>
603+
<td>/locales/persian_hi</td>
604+
<td>/locales/arabic_hi</td>
605+
<td>/locales/indian_hi</td>
606+
</tr>
607+
</tbody>
608+
</table>
609+
610+
<br/>
577611

578612
Of course, you can customize the names of the months and days of the week
579-
in the both calendar & input using the `months` and `weekDays` Props.
613+
in the both calendar & input by using the `months` and `weekDays` Props.
580614

581-
## Types
615+
Also, you can create a custom Calendar and Locale:
582616

583-
- input (default)
584-
- input-icon
585-
- icon
586-
- button
587-
- custom
617+
- [Creating a custom Calendar](https://shahabyazdi.github.io/react-multi-date-picker/calendars/#custom-calendar)
618+
- [Creating a custom Locale](https://shahabyazdi.github.io/react-multi-date-picker/locales/#custom-locale)

babel.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = (api) => {
2+
api.cache(true);
3+
4+
return {
5+
presets: ["@babel/preset-env", "@babel/preset-react"],
6+
};
7+
};

0 commit comments

Comments
 (0)