styled-react-modal
Advanced tools
Comparing version 3.0.0-alpha to 3.0.0-beta
{ | ||
"name": "styled-react-modal", | ||
"version": "3.0.0-alpha", | ||
"version": "3.0.0-beta", | ||
"description": "A React modal built with styled-components.", | ||
"main": "build/index.js", | ||
"module": "build/index.mjs", | ||
"main": "build/umd/index.js", | ||
"module": "build/mjs/index.mjs", | ||
"scripts": { | ||
"test": "jest --coverage --verbose", | ||
"lint": "prettier src/ tests/", | ||
"prepublish": "yarn run build", | ||
"build": "rollup -c rollup.config.js" | ||
@@ -11,0 +12,0 @@ }, |
@@ -8,5 +8,5 @@ # Styled React Modal | ||
> For support for **styled-components v3**, please use **styled-react-modal@1.0.0**. | ||
> For support for **create-react-app <5.0.0**, please import from `styled-react-modal/build/umd`. | ||
Styled React Modal is built with styled-components. It uses the latest React 16.x features and exposes a familiar, easy to use API. It supports `beforeOpen()`, `afterOpen()`, and other lifecycle hooks so that animations can be handled easily. Unlike several other modal implementations in React, it does not pollute the DOM with excessive nodes. | ||
Styled React Modal is built with styled-components. It uses the latest React 17.x features and exposes a familiar, easy to use API. It supports `beforeOpen()`, `afterOpen()`, and other lifecycle hooks so that animations can be handled easily. Unlike several other modal implementations in React, it does not pollute the DOM with excessive nodes. | ||
@@ -18,3 +18,3 @@ [**Demo on CodeSandbox**](https://codesandbox.io/s/m9jlky57y) | ||
``` | ||
npm i -s styled-react-modal | ||
npm i -s styled-react-modal # or use yarn | ||
``` | ||
@@ -21,0 +21,0 @@ |
@@ -12,3 +12,3 @@ import resolve from "@rollup/plugin-node-resolve"; | ||
name: "styled-react-modal", | ||
file: "build/index.js", | ||
file: "build/umd/index.js", | ||
format: "umd", | ||
@@ -25,3 +25,3 @@ exports: "named", | ||
exports: "named", | ||
file: "build/index.mjs", | ||
file: "build/mjs/index.mjs", | ||
format: "es" | ||
@@ -28,0 +28,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
35231