Skip to content
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

Remove duplicate declaration of defaultprops in calendar component #1566

Merged

Conversation

gautam-pahuja
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Nov 30, 2018

Codecov Report

Merging #1566 into master will increase coverage by 0.05%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1566      +/-   ##
==========================================
+ Coverage   88.81%   88.86%   +0.05%     
==========================================
  Files          16       16              
  Lines        1109     1105       -4     
  Branches      192      192              
==========================================
- Hits          985      982       -3     
+ Misses         25       24       -1     
  Partials       99       99
Impacted Files Coverage Δ
src/calendar.jsx 90% <100%> (+0.32%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f1b2969...240d70f. Read the comment docs.

@martijnrusschen martijnrusschen merged commit 20bd487 into Hacker0x01:master Dec 1, 2018
kyonzz pushed a commit to kyonzz/react-datepicker that referenced this pull request Jan 17, 2019
…acker0x01#1566)

* Removed duplicate declaration of defaultprops in calendar component

* double quotes back to single quotes
Squar89 pushed a commit to Squar89/react-datepicker2 that referenced this pull request Apr 10, 2019
…acker0x01#1566)

* Removed duplicate declaration of defaultprops in calendar component

* double quotes back to single quotes
bigbri64 added a commit to bigbri64/react-datepicker that referenced this pull request Apr 24, 2020
* 1.4.1

* Publish new API docs (automated commit)

* Add formatWeekDay prop for weekdays custom formatting (Hacker0x01#1294)

* Add formatWeekDay props for weekdays custom formatting

* pass formatWeekDay prop

* expect func

* Set type attribute of the clear button to button

A button in a form gets the type attribute set to submit by default, if the type is not specified.
Submitting a form with a clearable datepicker component by pressing enter in a field currently triggers the clearing of the datepicker component, instead of submitting the form.
This can be fixed by setting the type attribute of the clear button to "button".

* Fix month jumping in inline multiple month calendar (Hacker0x01#1360)

* Fix month jumping in inline multi-day calendar

* Inline multi-month example

* Add test for inline multi month calendar date change

* Built docs

* Add calendarContainer prop (Hacker0x01#1387)

* fixed calendar withPortal closing (Hacker0x01#1382)

* 1.5.0

* Publish new API docs (automated commit)

* Remove second autoFocus example (Hacker0x01#1390)

* Remove second autoFocus example

hero_example already has autoFocus, and having two inputs
focused by default dosn't make sense.

Fixes Hacker0x01#1212 Hacker0x01#1334

* Fix flaky test again

* Removed unused helper in date utils (Hacker0x01#1403)

* Only open the calendar for ArrowUp and ArrowDown (Hacker0x01#1395)

* don't open calendar upon left and right arrow key

* only open calendar upon ArrowDown and ArrowUp key

* Changed selection of today to allow for multiple instances of today to be rendered (ie. in case today is the start of the month) (Hacker0x01#1392)

* Move '}' for js code markdown

* Fix typo in class name in year dropdown (Hacker0x01#1406)

* Preserve the preselect date when the user is typing (Hacker0x01#1407)

* Don't clear the preSelect date when typing in the input

* Do this only once

* fix-unsafe-lifecycles (Hacker0x01#1374)

- change componentWillReceiveProps to componentDidUpdate
- update .eslintrc

* add -> app

* readOnly fix (Hacker0x01#1419)

* Adding a label to the month navigation buttons (Hacker0x01#1421)

Improves accessibility and facilitates custom localisation by having a default value for the month navigation

* Adding babel polyfill to docs-site for IE11 compatibility (Hacker0x01#1376)

* Patch Hacker0x01#1389 Clear Field not clickable in Firefox (Hacker0x01#1437)

* Clear Icon not clickable in Firefox - Bugfix Hacker0x01#1389

Bugfix for Hacker0x01#1389 .
Clear Icon is not clickable in Firefox because hidden button has no width/height.

* Fixed missspelled word

* 1.6.0

* Publish new API docs (automated commit)

* Fix duplicated defaultProps previousMonthButtonLabel on Calendar (Hacker0x01#1456)

* Update ISSUE_TEMPLATE.md (Hacker0x01#1461)

* Hides keyboard selected when keyboard navigation is disabled (Hacker0x01#1476)

* Selected time scrolltop fix (Hacker0x01#1396) (Hacker0x01#1454)

The scroll position of the selected time is calculated using a height of 30px in time.jsx --> this.list.scrollTop = 30 * (multiplier * currH);
 
However, the actual height of the time-list-item is 31px, so the scroll height is typically incorrect.

This change ensures the selected time-list-item will be scrolled into view

fixes Hacker0x01#1396

* Upgrade react-popper (Hacker0x01#1483)

* Upgrade popper

* Update popper component

* Fix styles

* Re-add wrapper div

* Add aria-label to month. (Hacker0x01#1494)

* Fix the spacing on the time picker (Hacker0x01#1495)

An extra 70px of padding is turning up on the time picker in the latest versions of Firefox, Chrome and Safari, this is forcing hte time select to be clipped and not displayed properly. This is related to issue Hacker0x01#1489 Hacker0x01#1489

* Update year in LICENSE

* update broken doc (Hacker0x01#1520)

* Allow utcOffset to be specified as a string (Hacker0x01#1500)

Moment, which ultimately consumes the offsets, accepts either numbers or
strings. Updated prop types definitions and added a few tests.

* Makes open state controllable through props (Hacker0x01#1475)

* feat(props): Change todayButton to PropTypes.node. (Hacker0x01#1493)

PropTypes.node is more appropriate for this props.

* Add custom header renderer (Hacker0x01#1482)

* Add custom header renderer

* Fix invalid behaviour when date is invalid

* Add LGTM.com code quality badges (Hacker0x01#1479)

* Calculate scroll of TimeSelect (Hacker0x01#1331)

Changed hardcoded 30px-per-item scroll in order to have selectedDate/currH scrolled down in the middle of the TimeSelect. Now it saves a reference of list-item of selectedDate (with fallback to currH when selectedDate not provided) and calculates list's default scroll based on list's height and the referenced item's offset.

Add tests

* 1.7.0

* Publish new API docs (automated commit)

* More convenient examples navigation (Hacker0x01#1523)

Using `position: sticky` if supported for more always visible navbar

* remove extra div (Hacker0x01#1491)

* remove extra div

* test with enzyme

* Add error emitter for user input errors (Hacker0x01#1354)

* Add error emitter for user input errors

* Fixed tests

* Allow passing popperProps. Fixes Hacker0x01#1525 (Hacker0x01#1526)

* Added renderDayContents prop for custom day contents/day formatting (Hacker0x01#1356)

* Add verification to time picker when shouldCloseOnSelect is false (Hacker0x01#1394) (Hacker0x01#1529)

* Fix blur events (Hacker0x01#1522)

* Fix blur events

* Clear input value on close

* 1.8.0

* Publish new API docs (automated commit)

* 2018

* Added setOpen as prop to week select function (Hacker0x01#1434)

* Added setOpen as prop to week select function

* Added default shouldCloseOnSelect prop to Week component

* Added test for setOpen function

* Added another test for cases we do not want the picker to close

* Moved sinon declaration

* Removed afterEach hook

* Moment removal (Hacker0x01#1527)

* initial commit, moment replaced with dayjs, tests are WIP

* updating tests to include dayjs locales

* updating doc examples

* starting to convert over to date-fns

* simplified month dropdown

* more function replacements, fixed a while loop

* some locale changes, fixed another while loop

* converting dayjs functions to date-fns

* most functions converted, utc tests failing

* updated localization to use date-fns, removed the few utc methods

* newDate/parseDate and test fixes

* fixed some month dropdown issues, tests

* converting to date-fns 2alpha for better localization support

* all tests passing

* converting some proptypes to dates

* removed moment dependency

* fixed getWeeks so it returns a number

* simplified formatDate function, updating examples

* more example fixes, isTimeInDisabledRange fix

* getStartOfWeek gets locale

* updated docs

* importing individual date-fns functions, formatting

* single quote reverts

* fixed chinese locale case

* clearing up some import description in readme

* updated example date formats

* Upgrade karma firefox to use FirefoxHeadless (Hacker0x01#1543)

* Upgrade Karma Firefox Launcher

* Switching to Headless

* Replace codecov lib (Hacker0x01#1544)

* lock file

* Replace codecov lib

* Add note about Moment

* 2.0.0

* Publish new API docs (automated commit)

* Remove last bits of Moment (Hacker0x01#1545)

* Fix: onBlur firing twice, one without an event (Hacker0x01#1547) (Hacker0x01#1548)

* Fix prop name typo in README (Hacker0x01#1552)

The README had an incorrect prop name that gave me a bit of confusion until I looked further in the docs folder. Hopefully this saves someone else a couple minutes of digging.

* Update lock file

* Update lock files

* Remove hardcoded popper placement and get them from popper library (Hacker0x01#1559)

* chore(docs): Fixes broken link and typo (Hacker0x01#1558)

* Remove duplicate declaration of defaultprops in calendar component (Hacker0x01#1566)

* Removed duplicate declaration of defaultprops in calendar component

* double quotes back to single quotes

* Solution to issue Hacker0x01#1337 (Hacker0x01#1541)

* Added a prop and logic for keeping the currently displayed months the same when working with a multi-month inline calendar.

* Added tests to prove the added functionality.

* Removed the boolean value that caused the Travis CI build to fail.

* Removed duplicate default props from calendar.jsx.

* Fixed a test that fails when it is December so it will no longer fail for the entirety of the month.

* Escape calendar test in January

* Bump npm-run-all

* Update package-lock

* Upgrade karma

* Bump webpack-dev-server

* date-fns compatibility update for weekday formatting (Hacker0x01#1613)

* catch range errors when dates are invalid and instead return boolean indicating validity (Hacker0x01#1577)

* Update locale example, clearify date-fns version (Hacker0x01#1629)

It's confusing because the default date-fns version is not compatible. Added a few lines of comments about how to install the compatible version.

* Bump prettier version (Hacker0x01#1610)

* Bump prettier version

* Escape calendar test in January

* Bump prettier version

* Updating main field in package.json and fixing january test (Hacker0x01#1605)

* Update package.json

* Fixing test for January

* 2.1.0

* Publish new API docs (automated commit)

* (docs) improve locale section (Hacker0x01#1646)

* Locales without globals (Hacker0x01#1660)

* Allow using locales without passing them through a global variable

* Add an example of using locales without a global variable

* Make date parsing conform strictly to the date format. (Hacker0x01#1656)

* Make date parsing conform strictly to the date format.

* Set awareOfUnicodeTokens to true.

* Add strictParsing prop to enforce strict parsing.

* undo indenting

* undo indenting

* Validate parsed date.

* Validate parsed date.

* Fix strict parsing when year is more than 4 digits.

* Add time input variation (Hacker0x01#1591)

* chore(docs): Fixes broken link and typo

* Added inputs for time in calendar

* Added time input functionality

* Added test for time input

* Fix tests and lint issues

* Add more tests

* Added inputs for time in calendar

* Added time input functionality

* Added test for time input

* Fix tests and lint issues

* Add more tests

* remove extra comma in example_components

* updated bundle

* Add more tests

* Add more tests

* add test for the patch

* fixing eslint

* add test to increase codecov/patch

* Exposing onDayMouseEnter and onMonthMouseLeave callback (Hacker0x01#1659)

* 2.2.0

* Publish new API docs (automated commit)

* fix/render-custom-day (Hacker0x01#1637)

* fix/render-custom-day

* updated test

* update day to date

* add  default day render

* code coverage

* code cov Hacker0x01#2

* backwards compatible

* Fix minify error in unpkg bundle (Hacker0x01#1603) (Hacker0x01#1669)

* Month year picker (Hacker0x01#1680)

* add basic month picker

* Added new option of Month/Year picker

* Add tests

* 2.3.0

* Publish new API docs (automated commit)

* Fix for Issue Hacker0x01#1670 (Hacker0x01#1673)

* Range month year picker (Hacker0x01#1692)

* add range month picker

* fix issue Hacker0x01#1685

* fix for failing time input on backspace

* Add tests

* removing dateform parameter from getMonthShortInLocale that was never sent and was taking the value of the locale variable, creating a bug when setting a locale with the month/year picker (Hacker0x01#1702)

* fix(minDate,maxDate): Fixing minDate/maxDate to allow one or the other (Hacker0x01#1683)

* 2.4.0

* Publish new API docs (automated commit)

* Drastically decrease size of the bundles (Hacker0x01#1695)

* Mark all date-fns subpackages as external dependencies.

* Remove lodash.

* Add `transform-react-remove-prop-types` to babel config for production builds.

* 2.5.0

* Publish new API docs (automated commit)

* Altered the locale methods to hopefully prevent window undefined errors. (Hacker0x01#1723)

* Upgrade node-sass to latest version (Hacker0x01#1728)

* use latest node version (Hacker0x01#1729)

* use latest node version

* Latest

* Upgrade karma (Hacker0x01#1730)

* Create SECURITY.md file (Hacker0x01#1747)

GitHub announced the addition of security policies (tracked in SECURITY.md) file earlier today. It'll help redirect people to the right place to report a security vulnerability. For vulnerabilities in `react-datepicker`, we're proposing to add it to HackerOne's existing bug bounty program. This policy was generated using [HackerOne's policy builder](https://hackerone.com/policy-builder).

* No multiline statements in cells (Hacker0x01#1755)

Multiline statements aren't allowed in a table cell

* refactor date_range example (Hacker0x01#1743)

* Fixed type for example 'onBlur callbacks in console' (Hacker0x01#1733)

Fixed type for example 'onBlur callbacks in console'

* Fix the time container whitespace issue (Hacker0x01#1717)

* [Fixes SRR (window is not defined)] Correctly validates if window object exists (Hacker0x01#1742)

* 2.6.0

* Publish new API docs (automated commit)

* Fix outdated dependency

* Bump fstream from 1.0.11 to 1.0.12 (Hacker0x01#1760)

Bumps [fstream](https://github.com/npm/fstream) from 1.0.11 to 1.0.12.
- [Release notes](https://github.com/npm/fstream/releases)
- [Commits](npm/fstream@v1.0.11...v1.0.12)

* Fix manual changing time (Hacker0x01#1761)

* Month picker minDate disabled state (issue Hacker0x01#1765) (Hacker0x01#1766)

* Fix logic in isMonthinRange to account for maxDate +1 year

* add date_utils test for isMonthinRange update, update bundle

* Localization integration with the correct module (Hacker0x01#1764)

In the documentation it points to import directly from `import {registerLocale, setDefaultLocale} from DatePicker;` which generates a `Module build failed` error.

This is solved by pointing to the main module `" react-datepicker ";`. I take this opportunity to improve the doc section as well.

* Fixed month aria-label date format (Hacker0x01#1767) (Hacker0x01#1769)

* 2.7.0

* Publish new API docs (automated commit)

* Bump handlebars from 4.0.12 to 4.1.2 (Hacker0x01#1771)

Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.0.12 to 4.1.2.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/wycats/handlebars.js/blob/master/release-notes.md)
- [Commits](handlebars-lang/handlebars.js@v4.0.12...v4.1.2)

Signed-off-by: dependabot[bot] <support@github.com>

* Format time select based on locale (Hacker0x01#1776)

* Add locale to time select formatting

* Add example to demonstrate time locale formatting

* Add tests for locale scenarios in time component

* Bump macaddress from 0.2.8 to 0.2.9

Bumps [macaddress](https://github.com/scravy/node-macaddress) from 0.2.8 to 0.2.9.
- [Release notes](https://github.com/scravy/node-macaddress/releases)
- [Commits](scravy/node-macaddress@0.2.8...0.2.9)

Signed-off-by: dependabot[bot] <support@github.com>

* Add range-start and range-end class in month range (Hacker0x01#1794)

* Fix not working max and min date when change it manually (Hacker0x01#1782)

* Vertically center the 'close icon' again. (Hacker0x01#1775)

* Vertically center 'close icon' again.

It became wrongly vertically aligned in PR Hacker0x01#1437.

* Epibrate css rules for close icon

Just clean up a bit, make the ordering somewhat intuitive.

* Upadate packaga-lock

* Upgrade mocha (Hacker0x01#1799)

* Upgrade Sinon (Hacker0x01#1800)

* Upgrade Sinon

* Use new methods

* Revert "Use new methods"

This reverts commit 54a7716.

* Revert "Upgrade Sinon"

This reverts commit 1ea4861.

* Revert "Upgrade mocha (Hacker0x01#1799)"

This reverts commit 3f43a9a.

* Fix/intl date parsing p+ tokens (Hacker0x01#1784)

* Update date-fns

* Beware of p+ tokens in parseDate

* Add test to p+ tokens date parsing

* Fix adding range-start and range-end class in month range, MinDate, MaxDate is not working in Month Range Picker (Hacker0x01#1805)

* Fix adding range-start and range-end class in month range

* Fix MinDate, MaxDate is not working in Month Range Picker

* Unit test for max date, min date in month range

* Incorrect dateFormatdefaults (Hacker0x01#1803)

Incorrect `dateFormat` and `dateFormatCalendar` defaults

* 2.8.0

* Publish new API docs (automated commit)

* Fix custominput parent classname (Hacker0x01#1835)

* append className instead of overriding

* fix css customInput

* Pass event as second param when onChange is called at monthYearPicker (Hacker0x01#1836)

* Fix - pass event as param to handleDayClick and not to getStartOfMonth

* Fix - Call onMonthClick with event and not with element

* add wrapperClassName and add width style 100% (Hacker0x01#1557)

* add wrapperClassName and add width style 100%

* revert some unnessary changes

* enlarge time container to zh locale

* fix duplicate isValidDateSelection

* Added a specific css class to excluded dates (Hacker0x01#1849)

Prior to this change, dates that were passed in via the excludedDates array prop had no specific identifier class on the day elements in the datepicker - they used the same disabled class that was used for dates before the minDate/after the maxDate, which makes it difficult to apply custom styling directly to excluded dates

* Update README.md (Hacker0x01#1838)

* Add missing previousYearButtonLabel and nextYearButtonLabel props (Hacker0x01#1850)

* feat: Rework (Hacker0x01#1851)

* fix: use Yarn instead of NPM

* fix: remove docs-site from Git Repository

* feat: updated example

* fix: updated date-fns to 2.0.0

* feat: added travis gh-pages deployment

* fix: readded docs-site

* fix: cleanup

* Bump react-dom from 16.1.0 to 16.1.2 (Hacker0x01#1853)

Bumps [react-dom](https://github.com/facebook/react/tree/HEAD/packages/react-dom) from 16.1.0 to 16.1.2.
- [Release notes](https://github.com/facebook/react/releases)
- [Changelog](https://github.com/facebook/react/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/react/commits/HEAD/packages/react-dom)

Signed-off-by: dependabot[bot] <support@github.com>

* Bump eslint from 4.14.0 to 4.18.2 (Hacker0x01#1854)

Bumps [eslint](https://github.com/eslint/eslint) from 4.14.0 to 4.18.2.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](eslint/eslint@v4.14.0...v4.18.2)

Signed-off-by: dependabot[bot] <support@github.com>

* feat: added more detailed issue templates (Hacker0x01#1857)

* feat: updated dependencies (Hacker0x01#1855)

* feat: updated dependencies

* feat: bumped eslint

* fix: build

* fix: docs

* fix: cleanup

* fix: warnings warning

* fix: tests

* fix: Cannot find module 'babel-helpers'

* fix: use latest firefox

* fix: cleanup

* fix: warning

* feat: cleanup

* fix: readded .flowconfig

* feat: added mocha reporter

* fix: unit tests

* fix: added npm cache

* fix: cleanup babelrc config

* feat: reduce bundle size of docs

* Upgrade rollup

* 2018 -> 2019

* feat: docs optimizations (Hacker0x01#1860)

* feat: docs optimizations included before a dev build

* fix: travis

* Custom Header example is breaking on month change because the month name is being passed as string instead of month index. (Hacker0x01#1856)

* fix: lgtm issues (Hacker0x01#1861)

* feat: added interactive examples (Hacker0x01#1864)

* feat: added interactive examples

* feat: more examples

* feat: more examples and enhanced direct links by slugify

* feat: some components

* feat: migrated components to useState

* feat: rework using create-react-app

* fix: cleanup

* feat: cleanup

* fix: lgtm issues

* Bump lodash.template from 4.4.0 to 4.5.0 in /docs-site (Hacker0x01#1869)

Bumps [lodash.template](https://github.com/lodash/lodash) from 4.4.0 to 4.5.0.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](lodash/lodash@4.4.0...4.5.0)

Signed-off-by: dependabot[bot] <support@github.com>

* Create CNAME

* Rename docs-site/CNAME to docs-site/public/CNAME

* Fix keyboard bug selecting last day on calendar (Hacker0x01#1868)

* Stop time-list-item wrapping on windows (Hacker0x01#1865)

* fix clearButton css (Hacker0x01#1863)

* append className instead of overriding

* fix css customInput

* fix css clearbutton vertically centered

* docs: small enhancements (Hacker0x01#1870)

* Include en-GB (Hacker0x01#1872)

* docs: minor changes in styling and ux (Hacker0x01#1873)

* fix: example at the top was not closable (Hacker0x01#1874)

* Bump eslint-utils from 1.4.0 to 1.4.2 in /examples/hello-world (Hacker0x01#1876)

Bumps [eslint-utils](https://github.com/mysticatea/eslint-utils) from 1.4.0 to 1.4.2.
- [Release notes](https://github.com/mysticatea/eslint-utils/releases)
- [Commits](mysticatea/eslint-utils@v1.4.0...v1.4.2)

Signed-off-by: dependabot[bot] <support@github.com>

* Quarter year picker (Hacker0x01#1877)

* Add basic quarter picker as a variation of month picker
- added similar tests and css

* Add basic quarter picker as a variation of month picker
- added similar tests and css

* Added date utils tests

* Reverted accidental change of month picker test

* set aria-disabled attribute when day is disabled (Hacker0x01#1880)

* 2.9.0

* Bump mixin-deep from 1.3.1 to 1.3.2 in /docs-site

Bumps [mixin-deep](https://github.com/jonschlinkert/mixin-deep) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/jonschlinkert/mixin-deep/releases)
- [Commits](jonschlinkert/mixin-deep@1.3.1...1.3.2)

Signed-off-by: dependabot[bot] <support@github.com>

* feat: enhanced rollup configuration (Hacker0x01#1883)

* feat: enhanced rollup configuration

* feat: cleaned up

* 2.9.1

* 2.9.2

* Run build before publish

* 2.9.3

* Add Stale bot (Hacker0x01#1888)

* Ignore Mac files

* Set daysUntilClose to 14 days

* Update instructions for local dev (Hacker0x01#1891)

- Add yarn install example

 - Add additional steps needed to get a working test site from first install

* Remove dependencies that aren't needed in production (Hacker0x01#1894)

* Remove dependencies that aren't needed in production

* Move dependencies

* Fix yarn.lock of docs-site

* Upgrade dependencies (Hacker0x01#1895)

* Upgrade dependencies

* Update deps in docs-site

* 2.9.4

* Fix find dom node warning (Hacker0x01#1898)

* setClickOutsideRef function to fix react warning

* onClickOutside usage unit tests

* - Used classnames to handle undefined classname (Hacker0x01#1896)

* 2.9.5

* 2.9.6

* Fix typo in month dropdown selected option class (Hacker0x01#1902)

* Add showPopperArrow prop (Hacker0x01#1892)

* Add showPopperArrow prop

* Remove change to popper component

* Added test cases for showPopperArrow behaviour

* Update Compatibility

Fixes Hacker0x01#1912

* Added prop to show previous month (Hacker0x01#1913)

* added class to Manager to allow for percentage width (Hacker0x01#1904)

* 📖 DOC: Improvement (Hacker0x01#1937)

* Disable broken test (Hacker0x01#1936)

* Declare package side effect free (Hacker0x01#1935)

This sets the package.json field sideEffects to false. This allows for better tree shaking by downstream consumers, see https://webpack.js.org/guides/tree-shaking/#mark-the-file-as-side-effect-free for more information.

I skimmed over all included files and I did not see anything that would count following webpack's definition of tree shaking.

* Apply rules for pull requests

* Open to time (Hacker0x01#1748)

* Scroll to time based on openToDate prop

When openToDate prop is present and selected prop is not, set the active
(visible) time based on openToDate rather than the current time.

This addresses Hacker0x01#1150.

* Don’t display time as selected when selected prop is not present

The previous behavior was very strange; it would display the current
time as selected, but only if the current time exactly matched one
of the time selections. E.g if you open the time window at 4:00 you will
see that time as selected, but not if you open it at 4:01 (assuming
greater than 1 minute interval).

* Correctly calculated the closest time to the nearest interval

Previously it was setting active time to the top of the hour, unless there
was an exact match.

* Feature/calendar status handlers (Hacker0x01#1947)

* Add onCalendarOpen and onCalendarClose handlers to determine calendar state

* Fix build settings and the main path

* fix: Prev/next buttons when using showMonthYearPicker (Hacker0x01#1950)

* fix: Prev/next buttons when using showMonthYearPicker

Check prev/next year instead of month when showMonthYearPicker is set.

* test: Add tests for yearDisabledBefore/After

And fix discovered issue.

* Added ariaLabelledBy property for screen-reader support (Hacker0x01#1959)

* Added ariaLabelledBy to the list of available props (Hacker0x01#1961)

* pdating triangle when "-end" is used (Hacker0x01#1965)

* 2.10.0

* Don't mark .css files as side effect free (Hacker0x01#1968)

* Use module version of longFormatters (Hacker0x01#1907)

* 2.10.1

* Highlight days when changing the end date (Hacker0x01#1976)

Days in datepicker get highlighted when changing the start date but not when changing the end date.

* Upgrade all NPM packages (Hacker0x01#1982)

* Upgrade all NPM packages

* Fix lint errors

* Bump handlebars from 4.1.2 to 4.5.3 in /docs-site (Hacker0x01#1997)

Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.1.2 to 4.5.3.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/wycats/handlebars.js/blob/master/release-notes.md)
- [Commits](handlebars-lang/handlebars.js@v4.1.2...v4.5.3)

Signed-off-by: dependabot[bot] <support@github.com>

* Bump handlebars from 4.1.2 to 4.5.3 in /examples/hello-world (Hacker0x01#1996)

Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.1.2 to 4.5.3.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/wycats/handlebars.js/blob/master/release-notes.md)
- [Commits](handlebars-lang/handlebars.js@v4.1.2...v4.5.3)

Signed-off-by: dependabot[bot] <support@github.com>

* Adding aria labels to nav buttons (Hacker0x01#1993)

* Render custom header for month/quarter pickers. (Hacker0x01#1990)

* Add year navigation props to custom header

* Fix calendar header on monthYearPicker and QuarterYear picker when custom header is set.

* Check for undefined on renderCustomHeader prop

* prepare for publish as fork

* prepare for publish as fork

* prepare for publish as fork

* prepare for publish as fork

* prepare for publish as fork

* prepare for publish as fork

* fix fork

* added timeClassName prop (Hacker0x01#1795)

* added a prop named timeClassName which is an equivalent to dayClassName for times

* added test for custom time className

* added docs page example

* added timeClassName to docs

* fixed demo for customTimeClassName to new structure and moved test to timepicker_test

Co-authored-by: Samuel Breu <46351188+brsart@users.noreply.github.com>

* Upgrade packages to mitigate a vulnerability (Hacker0x01#2004)

* Upgrade 1 plugin

* Fix another dependency

* 2.11.0

* Custom time input element with customTimeInput prop (Hacker0x01#2034)

* Custom input time element prop

Added the customInputTime prop of PropTypes.element type to render a custom input in place of the default one used in the inputTime component. This enable the user to implement a custom time input control with low effort.

* Added the customTimeInput test

* Added required prop types to the new test case

* Update calendar.jsx (Hacker0x01#2026)

* Update index.jsx (Hacker0x01#2025)

* Feature/2003  a11y enhancements (Hacker0x01#2027)

* 2003 :: A11y :: Enhancements to meet W3 Spec - WIP

Initial pass over code:
- Add docs
- Update tab interactions
- Update spacebar functionality
- Disable blur on tab

ToDo:
- key press between months
- tab out of calendar (like to next input)
- esc key within calednar to close dropdown
- i18n label config?
- Polish and QA

* Revert lock file update.

* using unique keys on days, focus on mount so we can cycle through months without losing focus

* tab loop within popper, escape key closes popper and returns focus to input, enter key re-opens popper, cleaning up handleBlur

* always set focused to false onBlur

* handleBlur no longer needs deferFocusInput

* Created new test to describe W3C compliant functionality.

Removed two tests that should no longer apply

* separated input keydown events from day keydown events

* updated various test cases to look at keydown on day nodes instead of input nodes. removed a duplicate test. some cleanup

* added helpful comments

Co-authored-by: Benjamin Reif-Caplan <bcaplan3@gmail.com>

* excludeScrollbar prop for react-onclickoutside (Hacker0x01#2032)

* 2.12.0

* fix: docs generation on build (Hacker0x01#2047)

* fix: docs generation script

* docs: updated

* 2.12.1

* Publish new API docs (automated commit)

* Example of using a custom class on the input element (Hacker0x01#2048)

This was previously a duplicate of the "Custom day class name" example.

* Bump codecov from 3.6.1 to 3.6.5 (Hacker0x01#2060)

Bumps [codecov](https://github.com/codecov/codecov-node) from 3.6.1 to 3.6.5.
- [Release notes](https://github.com/codecov/codecov-node/releases)
- [Commits](https://github.com/codecov/codecov-node/commits)

Signed-off-by: dependabot[bot] <support@github.com>

* Added props for fully dynamic aria-labels (Hacker0x01#2062)

* Added props for fully dynamic aria-labels

* Fixed yarn lint error

* Revert "Fixed yarn lint error"

This reverts commit 430e659.

* Fixed yarn lint error

* Dynamic aria labels fix (Hacker0x01#2063)

* Added aria-label props to parent components

* Use enzyme instead of React TestUtils

* 2.13.0

* Publish new API docs (automated commit)

* Fix week numbers for non us locales. (Hacker0x01#2080)

Leverage date-fns getWeek function to get correct week numbers.

* Use correct aria labels for Next Month/Year (Hacker0x01#2069)

Fixes Hacker0x01#2067

* 2.14.0

* Publish new API docs (automated commit)

* Bump acorn from 5.7.3 to 5.7.4 in /docs-site

Bumps [acorn](https://github.com/acornjs/acorn) from 5.7.3 to 5.7.4.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](acornjs/acorn@5.7.3...5.7.4)

Signed-off-by: dependabot[bot] <support@github.com>

* Bump acorn from 5.7.3 to 5.7.4 in /examples/hello-world (Hacker0x01#2090)

Bumps [acorn](https://github.com/acornjs/acorn) from 5.7.3 to 5.7.4.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](acornjs/acorn@5.7.3...5.7.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* 2.14.1

* Publish new API docs (automated commit)

* role "option" changed to "button", removed unnecessary "listbox" role (Hacker0x01#2098)

Co-authored-by: DDiaz <daniel.diaz@isobar.com>

* Feature/2094  month navigation day selection (Hacker0x01#2097)

* set preselection when Month changes.

consolidated focus() logic on Day component.
passed down containerRef to Day component.

* added tests for next and prev months

* updated dev instructions on contributing document

* Travis CI failing on this "unused" proptype

Co-authored-by: DDiaz <daniel.diaz@isobar.com>

* do not change time if date picker only (Hacker0x01#2111)

* Feature/add full month name flag for month picker (Hacker0x01#2100)

* fixed search in page, navigation to example and scroll back to top on second click. (Hacker0x01#2112)

* solved issue of not scrolling on anchor click of website

* fixed bug of scroll to top on double click

* Feature/week day class name (Hacker0x01#2113)

* Add week day class name feature

* Extend docs for week day class name feature

* Add test to week day class name feature

Co-authored-by: Rafee Memon <rafeememon@users.noreply.github.com>
Co-authored-by: Martijn Russchen <martijn@hackerone.com>
Co-authored-by: Andrew <andrewdormidormi@gmail.com>
Co-authored-by: Manuel Bouza <manuel@bouza.ch>
Co-authored-by: Jaakko Kyrö <jkyro@users.noreply.github.com>
Co-authored-by: John Simon <johnsoft@users.noreply.github.com>
Co-authored-by: Yelena Konina <yelenakonina@gmail.com>
Co-authored-by: Ivan Jager <aij+github.com@mrph.org>
Co-authored-by: Paulo Henrique <paulohrl_@hotmail.com>
Co-authored-by: Markus Öllinger <Metavirulent@users.noreply.github.com>
Co-authored-by: mattPress <matt@matthewpress.com>
Co-authored-by: kaekasui <kaekasui_github@icloud.com>
Co-authored-by: Igor Adrov <nucleartux@gmail.com>
Co-authored-by: Colin Cummings <colinrcummings@gmail.com>
Co-authored-by: Laurie Jones <laurie.jones@nib.com.au>
Co-authored-by: Jenna Badanowski <jenna.badanowski@gmail.com>
Co-authored-by: Alda Vigdis Skarphedinsdottir <191583+aldavigdis@users.noreply.github.com>
Co-authored-by: Jeffrey D Johnson <jeffredodd@users.noreply.github.com>
Co-authored-by: Jefski14 <jerome.fijalkowski@gmail.com>
Co-authored-by: Yuki Hattori <yukihattori1116@gmail.com>
Co-authored-by: Alexander Mextner <a-x-@users.noreply.github.com>
Co-authored-by: Hudo Assenco <hudovisk@users.noreply.github.com>
Co-authored-by: Kirk <kirk.douglas.richardson@gmail.com>
Co-authored-by: Nikolaus Piccolotto <hello@npiccolotto.com>
Co-authored-by: Masamoto Miyata <miyata@sincere-co.com>
Co-authored-by: Ben Lloyd Jones <benlloydjones@gmail.com>
Co-authored-by: ievax <35448476+ievax@users.noreply.github.com>
Co-authored-by: Ivan Malykh <ivan@lesslines.com>
Co-authored-by: jwallet <joseouellet@gmail.com>
Co-authored-by: Andrew Cunningham <w.a.cunningham.ii@gmail.com>
Co-authored-by: Sam Kvale <skvale@widen.com>
Co-authored-by: Mateusz Krzyżanowski <matkrzy94@gmail.com>
Co-authored-by: Xavier RENE-CORAIL <xavier.renecorail@gmail.com>
Co-authored-by: Honza Jerabek <jan.jerabek@praguetigers.cz>
Co-authored-by: Igor Schelkonogov <ingver.yum@gmail.com>
Co-authored-by: Kévin Berthommier <bertho-zero@users.noreply.github.com>
Co-authored-by: Amit Shah <amit@amwam.me>
Co-authored-by: Idan Entin <idanen@gmail.com>
Co-authored-by: Dries Heyninck <dries.heyninck@gmail.com>
Co-authored-by: Arthur Brito <arthur.britoac@gmail.com>
Co-authored-by: Charlie Waite <cw5790@gmail.com>
Co-authored-by: Ken Adams <Darrken@users.noreply.github.com>
Co-authored-by: Eric Burnett <eric@burnettinbox.com>
Co-authored-by: Stepan Tynskyi <s.t.e.p.s.t@gmail.com>
Co-authored-by: Gautam Pahuja <32642691+gautam-relayr@users.noreply.github.com>
Co-authored-by: Caleb Aston <caleb.k.aston@gmail.com>
Co-authored-by: Scott Leonard <scottydev@users.noreply.github.com>
Co-authored-by: Jonathan Keam <jpkeam@gmail.com>
Co-authored-by: Xun Yang <X-Y@users.noreply.github.com>
Co-authored-by: Andrés Fulla <andresfulla@users.noreply.github.com>
Co-authored-by: Martijn Russchen <mrusschen@Martijns-MacBook-Pro.local>
Co-authored-by: Evaldo Santos <evaldojunior@edu.unifor.br>
Co-authored-by: John Simon <772985+whatisaphone@users.noreply.github.com>
Co-authored-by: Ben Cai <bcai@cerner.com>
Co-authored-by: Avi Klaiman <aviklaiman@hotmail.com>
Co-authored-by: Marko Kosir <kosir.mar@gmail.com>
Co-authored-by: Ivan Pinchuk <ej9x@users.noreply.github.com>
Co-authored-by: Martijn Russchen <mrusschen@gmail.com>
Co-authored-by: athomaj <julien.athomas@epitech.eu>
Co-authored-by: Joshua Godi <joshuagodi@gmail.com>
Co-authored-by: Igor Adamenko <igoradamenko@users.noreply.github.com>
Co-authored-by: Jobert Abma <jobertabma@gmail.com>
Co-authored-by: Benedikt Bauer <benedikt.bauer@bbauer.eu>
Co-authored-by: hiroki-ota <27764298+mikan3rd@users.noreply.github.com>
Co-authored-by: [Ar][Te]m.[Be][Rn][At]skyy <artem.bernatskyy@gmail.com>
Co-authored-by: Paul Berg <hello@paulrberg.com>
Co-authored-by: Volodymyr Sen <volodymyr.sen@gmail.com>
Co-authored-by: dependabot[bot] <dependabot[bot]@users.noreply.github.com>
Co-authored-by: Maxim Smirnov <m.smirnov@latera.ru>
Co-authored-by: Mark Koski <koski.mark@gmail.com>
Co-authored-by: Omar Sharim <omar@bentel.mx>
Co-authored-by: Connor Silkworth <csilkwor@users.noreply.github.com>
Co-authored-by: Eric Reis Figueiredo <ericreisfigueiredo@gmail.com>
Co-authored-by: Reed Loden <reed@hackerone.com>
Co-authored-by: Huỳnh Trọng Thoại <30824675+caothuphu2013@users.noreply.github.com>
Co-authored-by: Gerben <gerben@treora.com>
Co-authored-by: Eric Reis Figueiredo <eric.figueiredo@vtex.com.br>
Co-authored-by: Stuart Casarotto <stuart.casarotto@38thstreetstudios.com>
Co-authored-by: Roberto Battaglia <battaroberto@gmail.com>
Co-authored-by: Giorgos Avgeris <giorgos.avgeris@hotmail.com>
Co-authored-by: Tian, Shao-Qin <mtiger2k@gmail.com>
Co-authored-by: Anthony Miller <antmiller202@gmail.com>
Co-authored-by: Filip Petrovic <roll4@outlook.com>
Co-authored-by: tu4mo <tu4mo@users.noreply.github.com>
Co-authored-by: Max Schmitt <max@schmitt.mx>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Manish Jangir <mjangir70@gmail.com>
Co-authored-by: Jean Luis Urena <eljean@live.com>
Co-authored-by: davecalnan <d@ve.ie>
Co-authored-by: Joshua Rose <49696165+Joshua-rose@users.noreply.github.com>
Co-authored-by: rogier2012 <r.monshouwer@student.utwente.nl>
Co-authored-by: Thijs Kramer <1274867+thijskramer@users.noreply.github.com>
Co-authored-by: Jeff Yates <jeff@somewhatabstract.com>
Co-authored-by: Jérémie Richardeau <j.richardeau@orange.fr>
Co-authored-by: Eric Nagy <enagy27@users.noreply.github.com>
Co-authored-by: Cian Mackle <cianmackle@gmail.com>
Co-authored-by: Aleksey <aleks.dev@gmail.com>
Co-authored-by: rbar2 <ryan18barone@gmail.com>
Co-authored-by: Abdul Wahab <waahab35@gmail.com>
Co-authored-by: Mac Lockard <maclockard@gmail.com>
Co-authored-by: pacaplan <paul.caplan@gmail.com>
Co-authored-by: Jørgen Nystad <jn@avinet.no>
Co-authored-by: Yukio Nozawa <yukio-nozawa@c-fo.com>
Co-authored-by: Kyle Brumm <kjbrumm@gmail.com>
Co-authored-by: Luka Hartwig <mail@lukahartwig.de>
Co-authored-by: CodeWitchBella <isabella@skorepova.info>
Co-authored-by: Gerasimos <11447903+gerhat@users.noreply.github.com>
Co-authored-by: Cavan Klinsky <cavan@gethealthie.com>
Co-authored-by: Bart Verbruggen <bart@netnatie.com>
Co-authored-by: bresam <52054015+bresam@users.noreply.github.com>
Co-authored-by: Samuel Breu <46351188+brsart@users.noreply.github.com>
Co-authored-by: Info-Bit <55147631+info-bit@users.noreply.github.com>
Co-authored-by: Edward <tujger@users.noreply.github.com>
Co-authored-by: Dan Diaz <ddiaz1982@gmail.com>
Co-authored-by: Benjamin Reif-Caplan <bcaplan3@gmail.com>
Co-authored-by: MAPGarrett <mike.garrett@ipresent.com>
Co-authored-by: oscarcarlstrom <oscar.carlstrom@gmail.com>
Co-authored-by: Philip Hoppe <philiph@dsdevelopment.dk>
Co-authored-by: Łukasz Mierzwa <l.mierzwa+github@gmail.com>
Co-authored-by: DDiaz <daniel.diaz@isobar.com>
Co-authored-by: Andrew Aladjev <aladjev.andrew@gmail.com>
Co-authored-by: Johnny <araujjohnny@gmail.com>
Co-authored-by: Binu kumar <45959932+Binu42@users.noreply.github.com>
Co-authored-by: micama <miguelcardosomartins@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants