@szhsin/react-accordion
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "@szhsin/react-accordion", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "An unstyled, accessible accordion library for building React apps and design systems.", | ||
@@ -56,3 +56,3 @@ "author": "Zheng Song", | ||
"devDependencies": { | ||
"@babel/core": "^7.18.13", | ||
"@babel/core": "^7.19.0", | ||
"@babel/preset-env": "^7.18.10", | ||
@@ -64,7 +64,7 @@ "@babel/preset-react": "^7.18.6", | ||
"@testing-library/jest-dom": "^5.16.5", | ||
"@testing-library/react": "^13.3.0", | ||
"@types/jest": "^28.1.8", | ||
"@types/react": "^18.0.17", | ||
"@typescript-eslint/eslint-plugin": "^5.36.0", | ||
"@typescript-eslint/parser": "^5.36.0", | ||
"@testing-library/react": "^13.4.0", | ||
"@types/jest": "^29.0.0", | ||
"@types/react": "^18.0.18", | ||
"@typescript-eslint/eslint-plugin": "^5.36.1", | ||
"@typescript-eslint/parser": "^5.36.2", | ||
"babel-plugin-pure-annotations": "^0.1.2", | ||
@@ -74,7 +74,7 @@ "eslint": "^8.23.0", | ||
"eslint-plugin-jest": "^27.0.1", | ||
"eslint-plugin-react": "^7.31.1", | ||
"eslint-plugin-react": "^7.31.8", | ||
"eslint-plugin-react-hooks": "^4.6.0", | ||
"eslint-plugin-react-hooks-addons": "^0.3.1", | ||
"jest": "^29.0.1", | ||
"jest-environment-jsdom": "^29.0.1", | ||
"jest": "^29.0.2", | ||
"jest-environment-jsdom": "^29.0.2", | ||
"npm-run-all": "^4.1.5", | ||
@@ -84,5 +84,5 @@ "prettier": "^2.7.1", | ||
"react-dom": "^18.2.0", | ||
"rollup": "^2.78.1", | ||
"rollup": "^2.79.0", | ||
"typescript": "^4.8.2" | ||
} | ||
} |
@@ -18,5 +18,9 @@ # React-Accordion | ||
- Can be controlled or uncontrolled | ||
- [Level 3 support](https://github.com/reactwg/react-18/discussions/70) of React 18 concurrent rendering | ||
- Tree-shakable and bundle size optimised | ||
- Support server-side rendering | ||
- Strongly typed API with TypeScript | ||
![react accordion](https://user-images.githubusercontent.com/41896553/188104820-5a722165-3727-458f-9dd2-53d886386459.gif) | ||
## Install | ||
@@ -45,15 +49,15 @@ | ||
<AccordionItem header="What is Lorem Ipsum?"> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod | ||
tempor incididunt ut labore et dolore magna aliqua. | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed | ||
do eiusmod tempor incididunt ut labore et dolore magna aliqua. | ||
</AccordionItem> | ||
<AccordionItem header="Where does it come from?"> | ||
Quisque eget luctus mi, vehicula mollis lorem. Proin fringilla vel erat | ||
quis sodales. Nam ex enim, eleifend venenatis lectus vitae, accumsan | ||
auctor mi. | ||
Quisque eget luctus mi, vehicula mollis lorem. Proin fringilla | ||
vel erat quis sodales. Nam ex enim, eleifend venenatis lectus | ||
vitae, accumsan auctor mi. | ||
</AccordionItem> | ||
<AccordionItem header="Why do we use it?"> | ||
Suspendisse massa risus, pretium id interdum in, dictum sit amet ante. | ||
Fusce vulputate purus sed tempus feugiat. | ||
Suspendisse massa risus, pretium id interdum in, dictum sit | ||
amet ante. Fusce vulputate purus sed tempus feugiat. | ||
</AccordionItem> | ||
@@ -60,0 +64,0 @@ </Accordion> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48012
73