Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-day-picker

Package Overview
Dependencies
Maintainers
1
Versions
251
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-day-picker - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

17

lib/DayPicker.js

@@ -185,4 +185,4 @@ "use strict";

{ key: i, className: "DayPicker-Week", role: "row" },
week.map(function (day, j) {
return _this.renderDay(month, day, j);
week.map(function (day) {
return _this.renderDay(month, day);
})

@@ -194,3 +194,3 @@ );

key: "renderDay",
value: function renderDay(month, day, i) {
value: function renderDay(month, day) {
var _this2 = this;

@@ -206,2 +206,3 @@

var modifiers = [];
var key = "" + day.getFullYear() + day.getMonth() + day.getDate();

@@ -228,3 +229,3 @@ var isToday = _Utils2["default"].isSameDay(day, new Date());

if (isOutside && !enableOutsideDays) {
return _react2["default"].createElement("div", { key: "outside" + i, className: className });
return _react2["default"].createElement("div", { key: "outside-" + key, className: className });
}

@@ -248,3 +249,3 @@

"div",
{ key: i, className: className,
{ key: key, className: className,
tabIndex: tabIndex,

@@ -421,2 +422,5 @@ role: "gridcell",

e.persist();
if (day.getMonth() !== this.state.currentMonth.getMonth()) {
this.showMonth(day);
}
this.props.onDayTouchTap(e, day, modifiers);

@@ -428,2 +432,5 @@ }

e.persist();
if (day.getMonth() !== this.state.currentMonth.getMonth()) {
this.showMonth(day);
}
this.props.onDayClick(e, day, modifiers);

@@ -430,0 +437,0 @@ }

{
"name": "react-day-picker",
"version": "1.0.1",
"version": "1.0.2",
"description": "Customizable date picker and calendar component for React.js",

@@ -5,0 +5,0 @@ "main": "./lib/DayPicker.js",

@@ -9,8 +9,7 @@ # react-day-picker

* use CSS modifiers to change the day’s style
* easily add content to days cells
* select days, ranges, whatever with CSS modifiers
* easily change style and add content to days cells
* display multiple months
* ready for i18n, with [moment.js](http://momentjs.com) or any library you use
* navigable via keyboard
* ARIA support
* ready for i18n, with [moment.js](http://momentjs.com) or any other library
* navigable via keyboard and

@@ -23,7 +22,4 @@ [![Build Status](https://travis-ci.org/gpbl/react-day-picker.svg)](https://travis-ci.org/gpbl/react-day-picker)

[See the website](http://www.gpbl.org/react-day-picker/) for examples with code, API and tips.
[See the website](http://www.gpbl.org/react-day-picker/) for examples with code, API and tips. Release notes are [here](https://github.com/gpbl/react-day-picker/releases).
[![Join the chat at https://gitter.im/gpbl/react-day-picker](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/gpbl/react-day-picker?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
### Usage

@@ -30,0 +26,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc