react-calendar
Advanced tools
Comparing version 2.0.4 to 2.1.0
@@ -28,2 +28,4 @@ 'use strict'; | ||
require('./Calendar.css'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -30,0 +32,0 @@ |
@@ -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
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
246809
63
6108
141
20