Skip to content

Commit 0af36f2

Browse files
committed
prepare releae
1 parent 1d553ca commit 0af36f2

File tree

5 files changed

+2208
-70
lines changed

5 files changed

+2208
-70
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
node_modules
44
.cache
55
dist
6+
coverage

package.json

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,26 @@
11
{
22
"name": "reactjs-popup",
3-
"version": "2.0.0",
3+
"version": "1.5.0",
44
"description": "React Popup Component - Modals,Tooltips and Menus —  All in one",
55
"main": "dist/index.js",
66
"module": "dist/reactjs-popup.esm.js",
7+
"umd:main": "dist/reactjs-popup.umd.production.js",
78
"typings": "dist/index.d.ts",
89
"files": [
9-
"dist",
10-
"src"
10+
"dist"
1111
],
1212
"engines": {
1313
"node": ">=10"
1414
},
1515
"scripts": {
1616
"start": "tsdx watch",
17-
"build": "tsdx build --entry src/index.tsx",
17+
"build": "NODE_ENV=production tsdx build --entry src/index.tsx --format=cjs,esm,umd",
1818
"test": "tsdx test --passWithNoTests --env=jest-environment-jsdom-sixteen",
1919
"lint": "tsdx lint",
2020
"prepare": "tsdx build",
2121
"storybook": "start-storybook -p 6006",
22-
"build-storybook": "build-storybook"
22+
"build-storybook": "build-storybook",
23+
"np": "np --any-branch"
2324
},
2425
"peerDependencies": {
2526
"react": ">=16"
@@ -53,6 +54,7 @@
5354
"husky": "^4.2.5",
5455
"jest": "^26.4.2",
5556
"jest-environment-jsdom-sixteen": "^1.0.3",
57+
"np": "^6.5.0",
5658
"react": "^16.13.1",
5759
"react-docgen-typescript-loader": "^3.7.2",
5860
"react-dom": "^16.13.1",

roadmap.md

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Reactjs-popup
2+
3+
- Add a nested prop to fix click outside => ok
4+
- add stories => ok
5+
- Fix accessability issues for modal => ok
6+
- accessability for tooltip => ok
7+
- stop on close propagation => ok
8+
- fix default styling ?
9+
- react testing library implementation
10+
- fix child as function typing
11+
- Alpha release with github
12+
- Animation using css : https://github.com/atomiks/tippyjs/tree/master/src/scss/animations
13+
- Create a useTooltip hook
14+
- update contributing guide
15+
16+
## Accessibility
17+
18+
https://bitsofco.de/accessible-modal-dialog/
19+
We built the popup with accessability in mind and those some stuff for a full accessible modal :
20+
21+
- Markup the Dialog and Dialog Overlay Appropriately
22+
- set role="dialog"
23+
- set aria-labelledby
24+
- set aria-describedby
25+
26+
* On Dialog Open, Set Focus
27+
* On Dialog Close, Return Focus to the Last Focused Element
28+
* While Open, Prevent Mouse Clicks Outside the Dialog
29+
* While Open, Prevent Tabbing to Outside the Dialog
30+
* While Open?
31+
* Allow the ESC Key to Close the Modal
32+
33+
experience : 0
34+
Score : 6
35+
Available : 15 sep
36+
expected salary : NA

test/blah.test.tsx

-11
This file was deleted.

0 commit comments

Comments
 (0)