react-day-picker
Advanced tools
Comparing version 0.1.1 to 0.1.2
{ | ||
"name": "react-day-picker", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "A minimalistic date picker component using moment.js.", | ||
@@ -36,3 +36,2 @@ "main": "react-date-picker.js", | ||
"jest-cli": "^0.2.1", | ||
"react": "^0.12.2", | ||
"react-tap-event-plugin": "^0.1.3", | ||
@@ -52,4 +51,5 @@ "webpack": "^1.4.15", | ||
"dependencies": { | ||
"moment": "^2.8.4" | ||
"moment": "^2.8.4", | ||
"react": "^0.12.2" | ||
} | ||
} |
# react-day-picker | ||
A minimalistic date picker built for [React](facebook.github.io/react/) and [moment.js](http://www.momentjs.com). Supports CSS modifiers and touch and keyboard events. | ||
A minimalistic date picker built for [React](facebook.github.io/react/) and [moment.js](http://www.momentjs.com). Supports CSS modifiers, touch and keyboard events. | ||
@@ -66,5 +66,5 @@ See [demo](http://www.gpbl.org/react-day-picker/). | ||
An object whose keys will be used as CSS modifiers for the day cells. The key's values are functions being evaluated when printing each day cell: if the function returns `true` (or a truthy value), the modifier is added to the day cell as `daypicker__day--<modifier>` className. | ||
CSS modifiers are useful to customize the aspect of a day element. You pass an object whose keys are used as CSS class for each day. The key's values are functions being evaluated when rendering a day element: if the function returns `true` (or a truthy value), the modifier is added to the day cell as `daypicker__day--<modifier>` className. | ||
For example, the following modifier: | ||
For example, the following modifiers: | ||
@@ -81,2 +81,3 @@ ```js | ||
``` | ||
will add the CSS class `daypicker__day--disabled` to the days of the past, and the `daypicker__day--all` CSS class to all the days (since it returns always `true`). | ||
@@ -86,2 +87,13 @@ | ||
Use this attribute to add an handler when the user touches a day. | ||
Use this attribute to add an handler when the user touches a day. | ||
> To make the touch tap events working, you **must** inject [react-tap-event-plugin](https://github.com/zilverline/react-tap-event-plugin) client side. | ||
#### onDayMouseEnter `function(day, modifiers, event)` | ||
Use this attribute to add an handler when the mouse enters a day element. | ||
#### onDayMouseLeave `function(day, modifiers, event)` | ||
Use this attribute to add an handler when the mouse leaves a day element. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2282843
7
97
2
+ Addedreact@^0.12.2
+ Addedacorn@5.7.4(transitive)
+ Addedamdefine@1.0.1(transitive)
+ Addedast-types@0.9.6(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbase62@1.2.8(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedcommander@2.20.3(transitive)
+ Addedcommoner@0.10.8(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addeddefined@1.0.1(transitive)
+ Addeddetective@4.7.1(transitive)
+ Addedenvify@3.4.1(transitive)
+ Addedesprima@3.1.3(transitive)
+ Addedesprima-fb@15001.1.0-dev-harmony-fb(transitive)
+ Addedglob@5.0.15(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addediconv-lite@0.4.24(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedjstransform@11.0.3(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmkdirp@0.5.6(transitive)
+ Addedobject-assign@2.1.1(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedprivate@0.1.8(transitive)
+ Addedq@1.5.1(transitive)
+ Addedreact@0.12.2(transitive)
+ Addedrecast@0.11.23(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedsource-map@0.4.40.5.7(transitive)
+ Addedthrough@2.3.8(transitive)
+ Addedwrappy@1.0.2(transitive)