Skip to content

Commit 0a6cb30

Browse files
committed
Refactor DateInput component
1 parent f76dd69 commit 0a6cb30

File tree

13 files changed

+489
-229
lines changed

13 files changed

+489
-229
lines changed

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,8 @@ navArrows.next | node | <i className="fa fa-angle-right" /> |
174174

175175
Name | Type | Default | Description
176176
:--- | :--- | :------ | :----------
177-
locale | string | 'en' |
178-
dateFormat | string | 'YYYY-MM-DD' |
179177
value | object or string | null |
180178
defaultValue | object or string | null |
181-
minDate | object or string | null | The minimum selectable date. When set to null, there is no minimum.
182-
maxDate | object or string | null | The maximum selectable date. When set to null, there is no maximum.
183179
onChange | function(value) | | Called when the value changes.
184180
renderIcon | function(props) | |
185181

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,14 @@
4545
"react-datepicker"
4646
],
4747
"peerDependencies": {
48+
"moment": ">=2.8.0",
4849
"react": "^0.14.0 || >=15.0.0"
4950
},
5051
"dependencies": {
5152
"classnames": "^2.2.5",
5253
"prop-types": "^15.5.8",
5354
"react-date-picker": "git://github.com:cheton/react-date-picker.git",
55+
"react-datepicker": "^1.2.1",
5456
"uncontrollable": "^4.1.0"
5557
},
5658
"devDependencies": {
@@ -80,6 +82,7 @@
8082
"find-imports": "~0.5.2",
8183
"html-webpack-plugin": "~2.30.1",
8284
"http-server": "~0.10.0",
85+
"moment": "~2.20.1",
8386
"nib": "~1.1.2",
8487
"react": "^0.14.0 || >=15.0.0",
8588
"react-dom": "^0.14.0 || >=15.0.0",

src/DateInput.jsx

Lines changed: 0 additions & 93 deletions
This file was deleted.

0 commit comments

Comments
 (0)