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

react-calendar

Package Overview
Dependencies
Maintainers
3
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-calendar - npm Package Compare versions

Comparing version 2.0.4 to 2.1.0

build/Calendar.css

2

build/entry.js

@@ -28,2 +28,4 @@ 'use strict';

require('./Calendar.css');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -30,0 +32,0 @@

2

build/MonthView/Weekdays.js

@@ -65,3 +65,3 @@ 'use strict';

},
(0, _dateFormatter.formatShortWeekday)(weekdayDate)
(0, _dateFormatter.formatShortWeekday)(weekdayDate).replace('.', '')
));

@@ -68,0 +68,0 @@ }

{
"name": "react-calendar",
"version": "2.0.4",
"version": "2.1.0",
"description": "A component for picking dates or date periods for your React application.",

@@ -8,3 +8,6 @@ "main": "build/entry.js",

"scripts": {
"build": "babel src -d build --ignore **/__tests__",
"build": "npm run build-js && npm run build-styles && npm run copy-styles",
"build-js": "babel src -d build --ignore **/__tests__",
"build-styles": "lessc ./src/Calendar.less ./src/Calendar.css",
"copy-styles": "node ./copy-styles.js",
"prepublishOnly": "npm run build",

@@ -59,2 +62,3 @@ "test": "npm run test-eslint && npm run test-jest",

"jest": "^21.2.1",
"less": "^2.7.2",
"react-test-renderer": "^16.0.0"

@@ -61,0 +65,0 @@ },

@@ -11,3 +11,2 @@ ![downloads](https://img.shields.io/npm/dt/react-calendar.svg) ![build](https://img.shields.io/travis/wojtekmaj/react-calendar.svg) ![dependencies](https://img.shields.io/david/wojtekmaj/react-calendar.svg

* Import by adding `import Calendar from 'react-calendar'`.
* Import styles by adding `import 'react-calendar/build/Calendar.less'` or style the calendar on your own.
* Use by adding `<Calendar />`. Use `onChange` prop for getting new values.

@@ -53,3 +52,2 @@

import Calendar from 'react-calendar';
import 'react-calendar/build/Calendar.less';

@@ -75,2 +73,6 @@ class MyApp extends Component {

### Custom styling
If you don't want to use default React-Calendar styling to build upon it, you can import React-Calendar by using `import Calendar from 'react-calendar/build/entry.nostyle';` instead.
## User guide

@@ -77,0 +79,0 @@

@@ -7,2 +7,4 @@ import Calendar from './Calendar';

import './Calendar.css';
export default Calendar;

@@ -9,0 +11,0 @@

@@ -50,3 +50,3 @@ import React, { Component } from 'react';

>
{formatShortWeekday(weekdayDate)}
{formatShortWeekday(weekdayDate).replace('.', '')}
</div>,

@@ -53,0 +53,0 @@ );

Sorry, the diff of this file is not supported yet

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