Skip to content
This repository was archived by the owner on May 19, 2025. It is now read-only.

Commit 0286988

Browse files
authored
Merge pull request #335 from onurkerimov/master
Upgraded dependencies, merged some features, bugfixes
2 parents 81dec6e + 3ff09d1 commit 0286988

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+8291
-6971
lines changed

.babelrc

100644100755
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"presets": [
3-
"env",
4-
"react"
3+
["@babel/preset-env", { "targets": { "node": "current" } }],
4+
["@babel/preset-react"]
55
],
66
"plugins": [
7-
"date-fns",
8-
"transform-object-rest-spread",
9-
"transform-export-extensions"
7+
["@babel/plugin-proposal-class-properties"],
8+
["@babel/plugin-proposal-export-default-from"]
109
]
11-
}
10+
}
11+

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

.github/issue_template.md

100644100755
File mode changed.

.github/pull_request_template.md

100644100755
File mode changed.

.gitignore

100644100755
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
node_modules/
22
.DS_Store
33
*.log
4-
dist/
54
.idea
65
*.orig
76
lib/
7+
NOTES.txt
8+
styleguide/

.npmignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ node_modules/
22
.DS_Store
33
*.log
44
.gitignore
5+
.gitattributes
56
.git/
67
demo/
7-
webpack.config.js
8+
webpack/
89
yarn.lock.js
910
.postcssconfig
1011
.babelrc

.prettierrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"printWidth": 110,
3+
"tabWidth": 2,
4+
"useTabs": false,
5+
"semi": true,
6+
"singleQuote": true,
7+
"trailingComma": "none",
8+
"bracketSpacing": true,
9+
"jsxBracketSameLine": false,
10+
"fluid": false
11+
}

.vscode/settings.json

100644100755
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
2-
"prettier.eslintIntegration": true,
32
"eslint.enable": true,
4-
"eslint.autoFixOnSave": true,
5-
"editor.tabSize": 2
3+
"editor.tabSize": 2,
4+
"editor.codeActionsOnSave": {
5+
"source.fixAll.eslint": true
6+
}
67
}

CHANGELOG.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,29 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## 1.1.0
8+
### Changed
9+
- BREAKING: `date-fns` is now loaded as a peerDependency. You can use this plugin with your own project's `date-fns` version. However if you want to keep using date-fns versions older than 2.0.0, you need to pass the following props to your component. ([See the reason here](https://blog.date-fns.org/post/unicode-tokens-in-date-fns-v2-sreatyki91jg/))
10+
11+
```jsx
12+
<Calendar
13+
dateDisplayFormat='MMM D, YYYY'
14+
monthDisplayFormat='MMM YYYY'
15+
weekdayDisplayFormat='E'
16+
dayDisplayFormat='D'
17+
/>
18+
```
19+
20+
### Added
21+
- `weekStartsOn` prop: You can set the week start day. (Number, 0 - Sunday, 1 - Monday etc.) If not specified, gets the week start day from your locale.
22+
23+
- `weekdayDisplayFormat` and `dayDisplayFormat` props: For being able to use different versions of date-fns
24+
25+
- `startDatePlaceholder` and `endDatePlaceholder` props: You can set different placeholders for Date inputs. If not set, falls back to 'Early' and 'Continuous'.
726

27+
- `fixedHeight` prop: Set this to `true` to prevent height change while selecting different months. Since some months require less than 6 lines to show, by setting this prop, you can force 6 lines for all months.
828

9-
## [Unreleased]
29+
## 1.0.0 beta
1030

1131
### Changed
1232
- BREAKING: `Calendar` and `DateRange` are now totally controlled components with stateless date management.

LICENCE renamed to LICENSE

File renamed without changes.

0 commit comments

Comments
 (0)