├── .babelrc ├── .editorconfig ├── .eslintrc.js ├── .github └── PULL_REQUEST_TEMPLATE.md ├── .gitignore ├── .travis.yml ├── CHANGELOG.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── example ├── app.js ├── bundle.js └── index.html ├── index.js ├── lib ├── react-drawer.css ├── react-drawer.js └── react-drawer.min.js ├── package-lock.json ├── package.json ├── src ├── ReactDrawer.js ├── ReactDrawer.scss ├── ReactDrawer.test.js └── style.mock.js ├── webpack.config.js └── webpack.dev.config.js /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["react", "es2015"] 3 | } 4 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # http://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | indent_style = space 6 | indent_size = 2 7 | end_of_line = lf 8 | charset = utf-8 9 | trim_trailing_whitespace = true 10 | insert_final_newline = true 11 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "env": { 3 | "browser": true, 4 | "commonjs": true, 5 | "es6": true 6 | }, 7 | "globals": { 8 | "jest": true, 9 | "expect": true, 10 | "it": true, 11 | "describe": true 12 | }, 13 | "extends": "eslint:recommended", 14 | "parserOptions": { 15 | "ecmaFeatures": { 16 | "experimentalObjectRestSpread": true, 17 | "jsx": true 18 | }, 19 | "sourceType": "module" 20 | }, 21 | "plugins": [ 22 | "react" 23 | ], 24 | "rules": { 25 | "indent": ["error", 2], 26 | "linebreak-style": ["error", "unix"], 27 | "quotes": ["error", "single"], 28 | "semi": ["error", "always"], 29 | 30 | "comma-dangle": ["error", "never"], 31 | "no-cond-assign": ["error", "always"], 32 | 33 | "no-console": "error", 34 | } 35 | }; 36 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | **Please check if the PR fulfills these requirements** 2 | 3 | - [ ] The commit(s) message(s) follows our [guidelines](https://github.com/talend/tools/blob/master/tools-root-github/CONTRIBUTING.md#commit-message-format) 4 | - [ ] Tests for the changes have been added (for bug fixes / features) 5 | - [ ] Docs have been added / updated (for bug fixes / features) 6 | 7 | 8 | **What is the current behavior?** (You can also link to an open issue here) 9 | 10 | 11 | 12 | **What is the new behavior?** 13 | 14 | 15 | 16 | **Does this PR introduce a breaking change?** 17 | 18 | - [ ] Yes 19 | - [ ] No 20 | 21 | If this PR contains a breaking change, please describe the impact and migration path for existing applications: ... 22 | 23 | 24 | **Other information**: 25 | 26 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | 6 | # Runtime data 7 | pids 8 | *.pid 9 | *.seed 10 | 11 | # Directory for instrumented libs generated by jscoverage/JSCover 12 | lib-cov 13 | 14 | # Coverage directory used by tools like istanbul 15 | coverage 16 | 17 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 18 | .grunt 19 | 20 | # node-waf configuration 21 | .lock-wscript 22 | 23 | # Compiled binary addons (http://nodejs.org/api/addons.html) 24 | build/Release 25 | 26 | # Dependency directory 27 | node_modules 28 | 29 | # Optional npm cache directory 30 | .npm 31 | 32 | # Optional REPL history 33 | .node_repl_history 34 | 35 | /test 36 | #/lib 37 | /example/lib 38 | /example/style.css 39 | /example/example.js 40 | /gh-pages 41 | 42 | # OS generated files # 43 | ###################### 44 | *.DS_Store 45 | .DS_Store? 46 | ._* 47 | .Spotlight-V100 48 | .Trashes 49 | ehthumbs.db 50 | Thumbs.db 51 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "stable" 4 | after_success: 5 | - echo "All jobs succeeded! PUBLISHING..." 6 | - npm run travis-deploy-once "npm run semantic-release" -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # CHANGELOG 2 | 3 | The changelog for `react-drawer`. 4 | 5 | 2.0.0 (upcoming major release) 6 | ----- 7 | ### Enhancements 8 | - add theme support for react-drawer 9 | 10 | 1.3.4 11 | ----- 12 | ### Bug Fixing 13 | - fixed Module not found: Can't resolve 'React' in react-drawer/lib, refer to issue #18 -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to the project 2 | 3 | :+1::tada: First off, thanks for taking the time to contribute! :tada::+1: 4 | 5 | Here are the guidelines we'd like you to follow: 6 | 7 | - [Pull Requests](#pullrequest) 8 | - [Commit Message Guidelines](#commit) 9 | 10 | ## Github Pull Requests 11 | 12 | QA: Quality Assurance 13 | PR: Pull Request 14 | CI: Continuous Integration (Travis) 15 | 16 | Here is the workflow for pull requests we are using. 17 | 18 | 1. Submit your pull request. 19 | => the CI should kick tests so you will have feedback about the different QA 20 | 2. If any issues are marked on the PR by CI please fix them. No broken PR will be reviewed. 21 | 3. Once the quality checks are OK, and you need your PR to be reviewed you must use the label **Need review**. If your PR is still a work in progress, do not use any label but this means no review will be performed. 22 | 4. The components owners will then identify who is going to do the review and then assign it. The reviewer will recieve an automatic mail notification. 23 | 5. Once the reviewer starts the review, he/she should set the label **Reviewing**. 24 | 6. We use the new review system of github so you will know if the reviewer request changes, approve it or just add some comments. 25 | 7. if any changes are requested please fix them and then once you are ready request a new review by ping the reviewer throw github 26 | 27 | ## Git Commit Guidelines 28 | 29 | We have very precise rules over how our git commit messages can be formatted. This leads to **more 30 | readable messages** that are easy to follow when looking through the **project history**. 31 | 32 | ### Commit Message Format 33 | Each commit message consists of a **header**, a **body** and a **footer**. The header has a special 34 | format that includes a **type**, a **scope** and a **subject**: 35 | 36 | ``` 37 | (): 38 | 39 | 40 | 41 |