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

Commit 22727b7

Browse files
authored
Merge branch 'master' into feature/fixed-focus-and-backwards-focus
2 parents dee3ff2 + 9989400 commit 22727b7

21 files changed

Lines changed: 3132 additions & 2306 deletions

File tree

.babelrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
],
66
"plugins": [
77
["@babel/plugin-proposal-class-properties"],
8-
["@babel/plugin-proposal-export-default-from"]
8+
["@babel/plugin-proposal-export-default-from"],
9+
"date-fns"
910
]
1011
}
1112

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @burakcan @mkg0 @kamyar
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ master ]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [ master ]
20+
schedule:
21+
- cron: '16 22 * * 6'
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
runs-on: ubuntu-latest
27+
permissions:
28+
actions: read
29+
contents: read
30+
security-events: write
31+
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
language: [ 'javascript' ]
36+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
37+
# Learn more:
38+
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
39+
40+
steps:
41+
- name: Checkout repository
42+
uses: actions/checkout@v2
43+
44+
# Initializes the CodeQL tools for scanning.
45+
- name: Initialize CodeQL
46+
uses: github/codeql-action/init@v1
47+
with:
48+
languages: ${{ matrix.language }}
49+
# If you wish to specify custom queries, you can do so here or in a config file.
50+
# By default, queries listed here will override any specified in a config file.
51+
# Prefix the list here with "+" to use these queries and those in the config file.
52+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
53+
54+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
55+
# If this step fails, then you should remove it and run the build manually (see below)
56+
- name: Autobuild
57+
uses: github/codeql-action/autobuild@v1
58+
59+
# ℹ️ Command-line programs to run using the OS shell.
60+
# 📚 https://git.io/JvXDl
61+
62+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
63+
# and modify them (or add more) to build your code if your project
64+
# uses a compiled language
65+
66+
#- run: |
67+
# make bootstrap
68+
# make release
69+
70+
- name: Perform CodeQL Analysis
71+
uses: github/codeql-action/analyze@v1

.github/workflows/publish.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Publish
2+
on:
3+
push:
4+
tags:
5+
- release/*
6+
jobs:
7+
build:
8+
name: NPM Package
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Publish new version to NPM
13+
uses: actions/setup-node@v1
14+
with:
15+
node-version: 13.x
16+
registry-url: 'https://registry.npmjs.org'
17+
- run: yarn install
18+
- run: yarn build
19+
- run: yarn publish
20+
env:
21+
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
22+

.github/workflows/tests.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: CI
2+
on: [push]
3+
jobs:
4+
build:
5+
name: Test
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v2
9+
- uses: borales/actions-yarn@v2.0.0
10+
with:
11+
cmd: install
12+
- uses: borales/actions-yarn@v2.0.0
13+
with:
14+
cmd: test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ node_modules/
66
lib/
77
NOTES.txt
88
styleguide/
9+
dist/

.npmignore

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1-
node_modules/
2-
.DS_Store
3-
*.log
4-
.gitignore
5-
.gitattributes
61
.git/
2+
.github/
3+
.vscode/
74
demo/
5+
node_modules/
6+
styleguide/
87
webpack/
9-
yarn.lock.js
10-
.postcssconfig
118
.babelrc
9+
.DS_Store
10+
.eslintrc.js
11+
.gitattributes
12+
.gitignore
13+
*.log
14+
postcss.config.js
15+
styleguide.config.js
16+
yarn.lock

CHANGELOG.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,20 @@ 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+
8+
## 1.2.0
9+
10+
### Added
11+
- `dayContentRenderer` prop: You can control how each date cell is rendered be passing this function that excepts a date and returns what need to be rendered (#242, #384, #476)
12+
13+
14+
## 1.1.4
15+
16+
### Fixed
17+
- #356: Use babel-plugin-date-fns to reduce bundle size
18+
- #373, #415, #416: Add missing aria labels
19+
20+
721
## 1.0.0
822
### Changed
923
- 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, (minimum version is 2.0.0-alpha.1) 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/), also see [this table](https://date-fns.org/docs/format))
@@ -56,15 +70,15 @@ NEW
5670
```js
5771
<Calendar
5872
date={this.state.eventDate} // js object
59-
onChange={date => this.setState({ eventDate: date })} //
73+
onChange={date => this.setState({ eventDate: date })} //
6074
/>
6175
```
6276

6377
NEW with moment (or any other date libraries)
6478
```js
6579
<Calendar
6680
date={this.state.eventDate.toDate()} // convert moment object to js Date
67-
onChange={date => this.setState({ eventDate: moment(date) })} //
81+
onChange={date => this.setState({ eventDate: moment(date) })} //
6882
/>
6983
```
7084
- BREAKING: Theming and style approach complately changed. `react-date-range` don't use inline styles any more. At the new version you should import **skeleton styles** and **theme styles**
@@ -86,7 +100,7 @@ import 'react-date-range/dist/theme/default.css';
86100
NEW
87101
```js
88102
import turkish from 'react-date-range/locale/tr';
89-
// you can view full list in https://github.com/Adphorus/react-date-range/tree/next/src/locale/index.js
103+
// you can view full list in https://github.com/hypeserver/react-date-range/tree/next/src/locale/index.js
90104
<Calendar locale={turkish} />
91105
```
92106

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Contributing Guide
22

3-
Make sure your issue or feature doesn't have any related issue at [react-date-range repo](https://github.com/Adphorus/react-date-range/issues). If it didn't exist already, create an issue.
3+
Make sure your issue or feature doesn't have any related issue at [react-date-range repo](https://github.com/hypeserver/react-date-range/issues). If it didn't exist already, create an issue.
44

55
## Getting Started
66

LICENSE

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
The MIT License (MIT)
2-
Copyright (c) 2015-2016 Adphorus
2+
Copyright (c) 2015-2020 Adphorus
3+
Copyright (c) 2020- Hypeserver
34

45
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
56

0 commit comments

Comments
 (0)