From c1cc9d046468ca7873ca4334308d9512efcb1690 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martynas=20=C5=BDilinskas?= Date: Mon, 25 Feb 2019 17:03:31 +0200 Subject: [PATCH 1/5] Updated package.json --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index 1d497e7..8fb2396 100644 --- a/package.json +++ b/package.json @@ -70,6 +70,9 @@ "collectCoverageFrom": [ "src/**/*.{ts,tsx}", "!src/index.ts" + ], + "coverageReporters": [ + "cobertura" ] } } From 0be642d7fc0af40130041eae7d49b89f2fa330bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martynas=20=C5=BDilinskas?= Date: Mon, 25 Feb 2019 17:13:36 +0200 Subject: [PATCH 2/5] Added html output. --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 8fb2396..8fa3c9c 100644 --- a/package.json +++ b/package.json @@ -72,7 +72,8 @@ "!src/index.ts" ], "coverageReporters": [ - "cobertura" + "cobertura", + "html" ] } } From 92c8c8c78f83b5f1beaa9d9c74a4ac3d689227b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martynas=20=C5=BDilinskas?= Date: Mon, 25 Feb 2019 17:23:30 +0200 Subject: [PATCH 3/5] Added html reporter. --- package-lock.json | 9 +++++++++ package.json | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index b13407c..d1bddd7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2738,6 +2738,15 @@ } } }, + "istanbul-reporter-html-internal-css": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/istanbul-reporter-html-internal-css/-/istanbul-reporter-html-internal-css-0.0.1.tgz", + "integrity": "sha512-KAVjjFmmRTckSAR+UZQZyq3U46aLtSQcadBtFYz8o1RcuFZKGIzqx1x78p+ZAXfw6LEkTd27EAwbwOCtrfooKA==", + "dev": true, + "requires": { + "handlebars": "^4.0.11" + } + }, "istanbul-reports": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-2.1.1.tgz", diff --git a/package.json b/package.json index 8fa3c9c..568da0a 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,7 @@ "@types/jest": "^24.0.6", "@types/react": "^16.8.4", "@types/react-dom": "^16.8.2", + "istanbul-reporter-html-internal-css": "0.0.1", "jest": "^24.1.0", "jest-dom": "^3.1.2", "jest-junit": "^6.3.0", @@ -73,7 +74,7 @@ ], "coverageReporters": [ "cobertura", - "html" + "istanbul-reporter-html-internal-css" ] } } From c39b201a7080f6c48bf1589b248ae91dc6bfbc86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martynas=20=C5=BDilinskas?= Date: Mon, 25 Feb 2019 17:37:46 +0200 Subject: [PATCH 4/5] Updated readme. --- .vscode/settings.json | 10 +++++++++- README.md | 9 +++++++-- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 4de6772..e8837d5 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -7,5 +7,13 @@ "**/CVS": true, "**/.DS_Store": true, ".rpt2_cache": true - } + }, + "spellright.language": [ + "en" + ], + "spellright.documentTypes": [ + "markdown", + "latex", + "plaintext" + ] } diff --git a/README.md b/README.md index 60b7d2a..2968467 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ +[![NPM version](https://img.shields.io/npm/v/@reactway/dropdown.svg?logo=npm)](https://www.npmjs.com/package/@reactway/dropdown) +[![Build Status](https://img.shields.io/azure-devops/build/reactway/reactway/1/master.svg?logo=azuredevops)](https://dev.azure.com/reactway/ReactWay/_build?definitionId=1) +[![Code coverage](https://img.shields.io/azure-devops/coverage/reactway/reactway/1/master.svg)](https://dev.azure.com/reactway/ReactWay/_build?definitionId=1) +[![Dependencies](https://img.shields.io/david/reactway/dropdown.svg)](https://dev.azure.com/reactway/ReactWay/_build?definitionId=1) +[![Dev dependencies](https://img.shields.io/david/dev/reactway/dropdown.svg)](https://dev.azure.com/reactway/ReactWay/_build?definitionId=1) + # @reactway/dropdown ## [Docs](./docs/index.md) | [API](./docs/api/index.md) @@ -8,7 +14,6 @@ A flexible React dropdown component. Created with hooks :tada:. ```sh $ npm install @reactway/dropdown ``` - ## Features - Toggles dropdown when clicked on `DropdownHeader` component - Closes dropdown when clicked outside of `DropdownHandler` component* @@ -17,7 +22,7 @@ $ npm install @reactway/dropdown - Extendable base components - Supports server side rendering -* This will not work when click event has stopped propogation (`event.stopPropagation()`) and therefore `window.addEventListener("click", ...)` will not receive event. +* This will not work when click event has stopped propagation (`event.stopPropagation()`) and therefore `window.addEventListener("click", ...)` will not receive event. ## License Released under the [MIT license](LICENSE). From 03a03459db6dc356e44948c0caf744ed28a9a657 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martynas=20=C5=BDilinskas?= Date: Mon, 25 Feb 2019 17:38:24 +0200 Subject: [PATCH 5/5] Updated spellright dictionary. --- .vscode/spellright.dict | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .vscode/spellright.dict diff --git a/.vscode/spellright.dict b/.vscode/spellright.dict new file mode 100644 index 0000000..12c700a --- /dev/null +++ b/.vscode/spellright.dict @@ -0,0 +1,2 @@ +tada +reactway