Skip to content

Adding error event emitter #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 166 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
166 commits
Select commit Hold shift + click to select a range
a88de11
Adding error emitter for user input error
buhuitou Jul 24, 2017
bf1d530
Adding tests for error emitting on input error
buhuitou Jul 24, 2017
9a3b3e1
Fixing previous tests
buhuitou Jul 24, 2017
a829e8d
Moving input error event emitting from Tab to onBlur
buhuitou Aug 10, 2017
0224bae
0.54.0
martijnrusschen Sep 5, 2017
0f83ceb
fix width problem (#1020)
Liooo Sep 12, 2017
1957c31
Select time feature (#839)
shadrech Sep 12, 2017
81e9afb
0.55.0
martijnrusschen Sep 20, 2017
387d10a
Publish new API docs (automated commit)
martijnrusschen Sep 20, 2017
8b33031
Added support for timeFormat prop #1034 (#1035)
ninio Sep 21, 2017
50a5eae
Fixed typos in README.md
g1eb Sep 27, 2017
99d6879
Merge pull request #1042 from g1eb/patch-1
rafeememon Sep 27, 2017
db64f07
Fix flaky failing test (#1050)
aij Oct 2, 2017
f3c9d89
Optional moment.js Part 1 (#1046)
prayerslayer Oct 3, 2017
7829235
Optional moment.js Part 2 (#1052)
prayerslayer Oct 3, 2017
0a0e0f3
Adding example for OpenByDefault (#1022)
jakehasler Oct 5, 2017
cb92e66
Change default back to local time (#1066)
aij Oct 11, 2017
ce0f417
fixes #969: allow user to give DatePicker a popperContainer to wrap (…
pmacmillan Oct 16, 2017
e9656c7
Clear button is not working when date is given as input #962 (#1071)
mkovrigovich Oct 16, 2017
15b1af5
Fix #1049 nested css calc function (#1068)
boxfoot Oct 16, 2017
c53ae90
Limit year list in Dropdown Scroll Mode by minDate and maxDate (#1072)
igoradamenko Oct 16, 2017
57768eb
0.56.0
martijnrusschen Oct 17, 2017
d5c7eaa
Publish new API docs (automated commit)
martijnrusschen Oct 17, 2017
7279036
Added a className prop to popper_component and passed it through to P…
Oct 21, 2017
f211e0a
package.json: Allow React 16 as a peer dependency (#1080)
rufman Oct 21, 2017
13e1e3a
Downgraded react-onclickoutside dependency to 6.0.0 (#1083)
marcopadillo Oct 22, 2017
1eca533
0.57.0
martijnrusschen Oct 24, 2017
f4c4aa9
Publish new API docs (automated commit)
martijnrusschen Oct 24, 2017
7109a55
extract font color of month and time headers to vars
firec0der Oct 25, 2017
9645aaf
Merge pull request #1090 from firec0der/feature/extract-header-color-…
rafeememon Oct 25, 2017
f099bad
Update react-onclickoutside dep
Andarist Oct 27, 2017
b6851a8
Added $datepicker__font-family
bolora Oct 27, 2017
6845d15
Change font family to variable
bolora Oct 27, 2017
ac8b74b
Merge pull request #1093 from bolora/master
rafeememon Oct 27, 2017
cf0d0ca
Merge pull request #1091 from Andarist/patch-1
rafeememon Oct 28, 2017
bb54f16
Push latest bundle changes
martijnrusschen Oct 29, 2017
2bcd0c7
Upgrade react-docgen
martijnrusschen Oct 29, 2017
1b7c1cf
fix(date-picker): Remove negative margin to prevent UI bug causing fl…
Oct 29, 2017
4eb06d6
Upgrade react-popper
martijnrusschen Oct 29, 2017
f76c6e8
Merge branch 'master' of https://github.com/Hacker0x01/react-datepicker
martijnrusschen Oct 29, 2017
51bdb75
Temp. disable failing test
martijnrusschen Oct 30, 2017
530541e
Fix timezone example in docs (#1099)
prayerslayer Oct 30, 2017
8f8106d
add missed .scss extensions (#1098)
firec0der Oct 30, 2017
fe2e3fa
0.58.0
martijnrusschen Oct 31, 2017
72cabe3
Push changes to master as well
martijnrusschen Oct 31, 2017
2c6f331
Merge branch 'master' into adding-error-event-emitter
dbertella Nov 2, 2017
040e886
Add dist to git
dbertella Nov 2, 2017
7baee17
Fix package entry point (#1109)
Andarist Nov 2, 2017
ebc6109
0.59.0
martijnrusschen Nov 2, 2017
d28aa97
Added module entry point - refactored build process, removed grunt in…
Andarist Nov 4, 2017
c72a48d
0.60.0
martijnrusschen Nov 4, 2017
7b2755e
Publish new API docs (automated commit)
martijnrusschen Nov 4, 2017
893c9c2
Get rid of prepublish (#1117)
martijnrusschen Nov 6, 2017
edcdcd6
revert dist css filenames (#1122)
honzajerabek Nov 6, 2017
f7325d3
0.60.1
martijnrusschen Nov 7, 2017
2ef81ee
0.60.2
martijnrusschen Nov 7, 2017
522cfc3
[Firefox] Fix incorrect display of the month dropdown arrow (#1129)
danilvalov Nov 7, 2017
09d6868
Upgraded npm-run-all
martijnrusschen Nov 8, 2017
81bc932
Merge branch 'master' of github.com:Hacker0x01/react-datepicker
martijnrusschen Nov 8, 2017
42abc92
upgraded rollup
martijnrusschen Nov 8, 2017
9bf21af
Upgrade babel stuff (#1131)
martijnrusschen Nov 8, 2017
3e0b061
Fix tests (#1132)
martijnrusschen Nov 8, 2017
dc89f5b
Migrated to react 16.0.0 (#1047)
Nov 12, 2017
a367717
0.61.0
martijnrusschen Nov 14, 2017
37a7a39
Move eslint dependencies to devDependencies (#1143)
martijnrusschen Nov 15, 2017
d1fc705
Remove empty else (#1154)
danez Nov 28, 2017
f492511
Allow passing ref via custom props (#1166)
lewisdiamond Dec 11, 2017
fa81209
0.62.0
martijnrusschen Dec 13, 2017
55f9bdb
Publish new API docs (automated commit)
martijnrusschen Dec 13, 2017
87039ac
Improved performance on rendering 'day' with highlighted days (#1180)
alex-shamshurin Dec 16, 2017
14f886b
Upgraded Moment
martijnrusschen Dec 16, 2017
fb787d0
Time selector close (#1169)
Dec 16, 2017
de12087
New functionality to adjust day when changing week, month or year (#1…
forum-is Dec 16, 2017
02a943c
0.63.0
martijnrusschen Dec 16, 2017
d513e83
Publish new API docs (automated commit)
martijnrusschen Dec 16, 2017
9c3bf40
Move moment to peerDependencies (#1168)
Kerumen Dec 17, 2017
b8ab34c
0.64.0
martijnrusschen Dec 17, 2017
f8c9868
Added onYearChange prop (#1075)
kujon Dec 18, 2017
1306eb2
Added preventOpenOnFocus prop (#1181)
Jmenache Dec 18, 2017
cef6ab5
Use prettier for code styling (#1189)
martijnrusschen Dec 28, 2017
701acb7
2017
martijnrusschen Dec 28, 2017
c15abe6
Create ISSUE_TEMPLATE.md
martijnrusschen Dec 28, 2017
d3200d5
Create CONTRIBUTING.md
martijnrusschen Dec 28, 2017
adde11e
Link to new domain
martijnrusschen Dec 28, 2017
066f207
Merge branch 'master' of https://github.com/Hacker0x01/react-datepicker
martijnrusschen Dec 28, 2017
ba26498
Create CODE_OF_CONDUCT.md (#1190)
martijnrusschen Dec 28, 2017
528edd6
1.0.0
martijnrusschen Dec 28, 2017
b0d7e9e
Publish new API docs (automated commit)
martijnrusschen Dec 28, 2017
bf8ce27
Add CNAME to release script
martijnrusschen Dec 28, 2017
b494d1c
Update README
martijnrusschen Dec 30, 2017
6ab0225
Replace pre-commit with lint-staged (#1192)
martijnrusschen Dec 30, 2017
5d84aa2
Downgrade dependencies to fix starting webpack (#1193)
martijnrusschen Dec 31, 2017
1679dfd
1.0.1
martijnrusschen Dec 31, 2017
a6fa63a
Publish new API docs (automated commit)
martijnrusschen Dec 31, 2017
01db22f
Add back CNAME for real
martijnrusschen Dec 31, 2017
37fee19
1.0.2
martijnrusschen Dec 31, 2017
926c9fe
Publish new API docs (automated commit)
martijnrusschen Dec 31, 2017
639fddd
Make sure we start at the top of the page
martijnrusschen Dec 31, 2017
bf2da86
1.0.3
martijnrusschen Dec 31, 2017
29bfed5
Publish new API docs (automated commit)
martijnrusschen Dec 31, 2017
cce0aac
ShortMonth on MonthDropdown (#1186)
marioramva Jan 2, 2018
268ec2a
Fixed building docs bundle (#1194)
Andarist Jan 2, 2018
3cf4baf
1.0.4
martijnrusschen Jan 2, 2018
77ab7ea
Publish new API docs (automated commit)
martijnrusschen Jan 2, 2018
07f2e38
change close icon link href from # to javascript:void(0) (#1199)
nassimbenkirane Jan 10, 2018
6567538
issue-1204 replaced the datepicker navigation links with buttons (#1206)
jontrainor Jan 12, 2018
b22c4d1
Upgrade react-onclickoutside to 6.7.1 (#1214)
f0urfingeredfish Jan 17, 2018
5354dee
Added public function for programatically clearing the input (#1198)
Jan 19, 2018
e5a8427
Add support for combined month-year dropdown (#1207)
mnikkane Jan 19, 2018
8e1eea0
Add option to allow showing month navigation as disabled,… (#1211)
mnikkane Jan 19, 2018
6a4193c
Add an includeTimes param
jennyscript-ridecell Jan 19, 2018
e5998fe
Add type="button" to navigation buttons to avoid them to submit form …
mnikkane Jan 22, 2018
55b6e9c
Show only one month and month-year dropdown when showing multiple mon…
mnikkane Jan 22, 2018
41b6e30
Merge pull request #1216 from jennyscript-ridecell/feature/add-includ…
rafeememon Jan 23, 2018
dd632ac
Update README.md (#1229)
wildlySpeculating Jan 25, 2018
0803909
Remove isRequired prop from dropdownMode property (#1233)
degtyarevmaksim Jan 26, 2018
7eded04
fix DateRange endDate doc bug (#1234)
hrocha16 Jan 28, 2018
7a6c8cf
1.1.0
martijnrusschen Jan 28, 2018
e2e25b2
Publish new API docs (automated commit)
martijnrusschen Jan 28, 2018
4bb8c2d
Time caption property (#1240)
degtyarevmaksim Feb 3, 2018
603a62b
fix failing test for MonthYearDropdown (#1255)
cklab Feb 6, 2018
e34fe52
issue #1230 - handleChange arguments checks (#1239)
cklab Feb 10, 2018
42db96a
Upgrade react-popper to 0.8.2 (#1264)
martijnrusschen Feb 10, 2018
bb983b7
Disable unnecessary travis configuration (#1266)
martijnrusschen Feb 10, 2018
c037926
Upgrade moment to mitigate security alert (#1265)
martijnrusschen Feb 10, 2018
a96cfc5
added box-sizing to time-list
Feb 14, 2018
0cc7058
Merge pull request #1273 from Hacker0x01/ivdma-patch-1
Feb 14, 2018
c9884bc
1.2.0
martijnrusschen Feb 16, 2018
551c540
Publish new API docs (automated commit)
martijnrusschen Feb 16, 2018
b2cc62e
1.2.1
martijnrusschen Feb 16, 2018
859ab87
Publish new API docs (automated commit)
martijnrusschen Feb 16, 2018
42ceaaf
Changed package.json, created build-dev for development env and build…
alexmateos Feb 17, 2018
a72bc43
Fixes for manual time change & time select after manual change. (#1289)
tomtwttr Mar 2, 2018
9334bbc
1.2.2
martijnrusschen Mar 2, 2018
2f9e54e
Publish new API docs (automated commit)
martijnrusschen Mar 2, 2018
9ddc73f
Fix for time selection not allowing other changes (#1303)
tomtwttr Mar 13, 2018
467b990
feat: Time picker only (#1281)
Mar 17, 2018
c8cc023
Rerun prettier on *.js
aij Mar 19, 2018
631b807
Add jsx to prettier lint-staged and rerun prettier (#1319)
aij Mar 19, 2018
87a8cb4
Using cross-env for build scripts. (#1321)
diakonos Mar 21, 2018
bde841b
fix: Updated react-popper version (#1325)
Mar 21, 2018
cec95bb
1.3.0
martijnrusschen Mar 23, 2018
30ff1c6
Publish new API docs (automated commit)
martijnrusschen Mar 23, 2018
f715f15
Commit compiled files
martijnrusschen Mar 23, 2018
ed55d2b
Ability to inject times outside of default time interval (#1329)
jimmynguyc Mar 26, 2018
5eee56f
Improvements to injectTimes (#1330)
jimmynguyc Mar 31, 2018
988c28d
Adds title attribute to clear button (#1317)
nateha1984 Mar 31, 2018
8dab292
Convert week_number.jsx to flow (as a simple example) (#1307)
aij Mar 31, 2018
e73a80d
Upgrade react-popper
martijnrusschen Mar 31, 2018
0699f8c
Re-enable tests (#1339)
martijnrusschen Mar 31, 2018
7d41c8b
Upgrade react-popper to latest version
martijnrusschen Mar 31, 2018
72b859f
1.4.0
martijnrusschen Mar 31, 2018
2e10682
Publish new API docs (automated commit)
martijnrusschen Mar 31, 2018
eb3d392
Fix potential exception after unmounting
Apr 6, 2018
ceb3b80
Merge pull request #1348 from Lean5/fix_setFocus
rafeememon Apr 6, 2018
326a18d
hasPreSelectionChanged util in Component
webdeb Apr 4, 2018
251edcf
Merge pull request #1346 from webdeb/bk-fix-year-pre-selection-bug-1345
rafeememon Apr 6, 2018
c8fd75c
1.4.1
martijnrusschen Apr 6, 2018
3446817
Publish new API docs (automated commit)
martijnrusschen Apr 6, 2018
3b1efbe
Add formatWeekDay prop for weekdays custom formatting (#1294)
andrewdormi Apr 7, 2018
f86a8e4
Set type attribute of the clear button to button
manubo Apr 9, 2018
83cf74f
Merge pull request #1351 from manubo/add-type-to-close-button
rafeememon Apr 9, 2018
3a3fa33
Merge remote-tracking branch 'mainline/master' into adding-error-even…
nickcresner Apr 12, 2018
4aff939
Removed commited dist folder
Amwam Apr 12, 2018
e22b9d6
Removed prepare step
Amwam Apr 12, 2018
e8b9a94
Commit lib and es folder
Amwam Apr 12, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 1 addition & 16 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,18 +1,3 @@
{
"presets": ["es2015", "stage-0", "react"],
"env": {
"development": {
"plugins": [
"transform-class-properties",
["react-transform", {
"transforms": [{
"transform": "react-transform-hmr",
"imports": ["react"],
"locals": ["module"]
}]
}],
"add-react-displayname"
]
}
}
"presets": ["./.babelrc.js"]
}
41 changes: 41 additions & 0 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
var NODE_ENV = process.env.NODE_ENV;
var MODULES = process.env.MODULES;

var modules = MODULES === "false" || NODE_ENV === "test" ? "commonjs" : false;

var config = {
presets: [
[
"env",
{
loose: true,
modules: modules,
forceAllTransforms: NODE_ENV === "production"
}
],
"stage-0",
"react"
],
plugins: []
};

if (NODE_ENV === "development") {
config.plugins = config.plugins.concat([
"transform-class-properties",
[
"react-transform",
{
transforms: [
{
transform: "react-transform-hmr",
imports: ["react"],
locals: ["module"]
}
]
}
],
"add-react-displayname"
]);
}

module.exports = config;
16 changes: 3 additions & 13 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,40 +1,31 @@
{
"env": {
"browser": true,
"es6": true,
"es6": true
},

"plugins": [
"react"
],

"extends": "standard",

"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
},
"jsx": true
}
},

"parser": "babel-eslint",

"rules": {
"jsx-quotes": [2, "prefer-double"],
"no-irregular-whitespace": 0,
"react/display-name": 2,
"react/forbid-prop-types": 0,
"react/jsx-boolean-value": 2,
"react/jsx-closing-bracket-location": [2, 'after-props'],
"react/jsx-curly-spacing": [2, "never"],
"react/jsx-indent-props": 2,
"react/jsx-key": 2,
"react/jsx-max-props-per-line": [2, { "maximum": 4 }],
"react/jsx-no-duplicate-props": 2,
"react/jsx-no-literals": 0,
"react/jsx-no-undef": 2,
"react/jsx-pascal-case": 2,
"react/jsx-sort-props": 0,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
Expand All @@ -52,6 +43,5 @@
"react/react-in-jsx-scope": 2,
"react/self-closing-comp": 2,
"react/sort-comp": 2,
"react/wrap-multilines": 0,
}
}
11 changes: 11 additions & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[ignore]

[include]

[libs]

[lints]

[options]

[strict]
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
node_modules
.sass-cache
npm-debug.log
.DS_Store
.idea
.vscode
dist
lib
;dist
;lib
;es
tmp
coverage
docs-site/bundle.js
Expand Down
17 changes: 7 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
sudo: false
language: node_js
node_js:
- "6"
env:
- CXX=g++-4.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
before_install:
- npm install -g grunt-cli
- npm i -g npm@latest

# Needed for Karma test runner
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
# install:
# - yarn install
script:
- yarn lint
- yarn test
after_success:
- yarn run codecov
notifications:
slack:
secure: kAmrLltV0ZLuhl6rKk26fDLGuoCch6AYaObRQje4UZlxVQjR2467k430vOZLqv39Mr3U5XmYl6VLcCGmBr3tjM/9c1zjoXnRT8MRy4eIYaUr/thXeh2FlfHKOk8rXnNOoRZ1kBsCzCDFCNDYZZA4jya8S5ITcQyGyYcOqBWVy1w=
cache: yarn
46 changes: 46 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Contributor Covenant Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [email protected]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]

[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/4/
21 changes: 21 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# How to contribute

Thanks for taking your time to read this. We're thrilled you're reading this because we the help from the community to keep improving this project.

## Testing

We have a handful of Cucumber features, but most of our testbed consists of RSpec examples. Please write RSpec examples for new code you create.

## Submitting changes

Please send a [GitHub Pull Request](https://github.com/Hacker0x01/react-datepicker/pull/new/master) with a clear list of what you've done (read more about [pull requests](http://help.github.com/pull-requests/)). When you send a pull request, we will love you forever if you include a test to cover your changed. We can always use more test coverage.
Always write a clear log message for your commits. One-line messages are fine for small changes, but bigger changes should look like this:
$ git commit -m "A summary of the commit > > A paragraph describing what changed and its impact."

## Coding conventions

Start reading our code, and you'll get the hang of it. We optimize for readability:

* We use prettier for code styling. Don't worry about tabs vs spaces, or how to indent your code.
* We use ESlint for all other coding standards. We try to be consistent and helpful.
* This is open source software. Consider the people who will read your code, and make it look nice for them. It's sort of like driving a car: Perhaps you love doing donuts when you're alone, but with passengers, the goal is to make the ride as smooth as possible.
5 changes: 5 additions & 0 deletions ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
### Expected behavior

### Actual behavior

### Steps to reprodcue
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016 HackerOne Inc and individual contributers
Copyright (c) 2017 HackerOne Inc and individual contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading