Comparing version 0.0.6 to 0.0.7
{ | ||
"name": "imprest", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"main": "lib/index.js", | ||
@@ -13,5 +13,2 @@ "repository": "https://github.com/luk707/imprest.git", | ||
"dependencies": { | ||
"@emotion/core": "^10.0.14", | ||
"@emotion/styled": "^10.0.14", | ||
"@types/node": "^12.6.8", | ||
"polished": "^3.4.1", | ||
@@ -28,2 +25,3 @@ "prism-react-renderer": "^0.1.7", | ||
"@babel/preset-typescript": "^7.3.3", | ||
"@types/node": "^12.6.8", | ||
"@types/react": "^16.8.23", | ||
@@ -35,2 +33,4 @@ "@types/react-dom": "^16.8.5", | ||
"peerDependencies": { | ||
"@emotion/core": "^10.0.14", | ||
"@emotion/styled": "^10.0.14", | ||
"react": "^16.8.6", | ||
@@ -37,0 +37,0 @@ "react-dom": "^16.8.6" |
@@ -11,2 +11,27 @@ [![GitHub issues](https://img.shields.io/github/issues/luk707/imprest)](https://github.com/luk707/imprest/issues) | ||
# Getting started | ||
To install Imprest run the following command: | ||
``` | ||
yarn add imprest react react-dom @emotion/core @emotion/styled | ||
``` | ||
To use Imprest's components, you must wrap your application with a theme context provider and specifying any valid imprest theme: | ||
```jsx | ||
import React from "react"; | ||
import ReactDOM from "react-dom"; | ||
import { Button, lightTheme } from "imprest"; | ||
import { ThemeContext } from "@emotion/core"; | ||
ReactDOM.render( | ||
<ThemeContext.Provider value={lightTheme}> | ||
<Button>Hello world!</Button> | ||
</ThemeContext.Provider>, | ||
document.getElementById("root") | ||
); | ||
``` | ||
# Why is this project useful | ||
@@ -13,0 +38,0 @@ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
43401
8
49
0
10
- Removed@emotion/core@^10.0.14
- Removed@emotion/styled@^10.0.14
- Removed@types/node@^12.6.8
- Removed@types/node@12.20.55(transitive)