react-emotion
Advanced tools
Comparing version 10.0.0-really-unsafe-please-do-not-use.2 to 10.0.0
{ | ||
"name": "react-emotion", | ||
"version": "10.0.0-really-unsafe-please-do-not-use.2", | ||
"description": "The Next Generation of CSS-in-JS, for React projects.", | ||
"main": "dist/index.cjs.js", | ||
"module": "dist/index.esm.js", | ||
"types": "types/index.d.ts", | ||
"files": [ | ||
"src", | ||
"dist", | ||
"macro.js", | ||
"types" | ||
], | ||
"dependencies": { | ||
"@emotion/styled-base": "^10.0.0-really-unsafe-please-do-not-use.2", | ||
"babel-plugin-emotion": "^10.0.0-really-unsafe-please-do-not-use.2" | ||
}, | ||
"peerDependencies": { | ||
"react": "15.x || 16.x" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "16.0.16", | ||
"dtslint": "^0.3.0", | ||
"emotion": "^10.0.0-really-unsafe-please-do-not-use.2" | ||
}, | ||
"author": "Kye Hohenberger", | ||
"homepage": "https://emotion.sh", | ||
"license": "MIT", | ||
"repository": "https://github.com/emotion-js/emotion/tree/master/packages/react-emotion", | ||
"keywords": [ | ||
"styles", | ||
"emotion", | ||
"react", | ||
"css", | ||
"css-in-js" | ||
], | ||
"bugs": { | ||
"url": "https://github.com/emotion-js/emotion/issues" | ||
}, | ||
"umd:main": "./dist/emotion.umd.min.js", | ||
"publishConfig": { | ||
"tag": "next" | ||
}, | ||
"browser": { | ||
"./dist/index.cjs.js": "./dist/index.browser.cjs.js", | ||
"./dist/index.esm.js": "./dist/index.browser.esm.js" | ||
}, | ||
"gitHead": "0da0de50f6f2c19e46bca7662d1a954d48db1264" | ||
"version": "10.0.0", | ||
"description": "This package is not relevant in Emotion 10, please use @emotion/styled", | ||
"main": "index.js", | ||
"repository": "https://github.com/emotion-js/react-emotion-redirect", | ||
"license": "MIT" | ||
} |
# react-emotion | ||
> The styled API for emotion and react | ||
The package "react-emotion" has been replaced by "@emotion/styled" in version 10. See https://emotion.sh/docs/migrating-to-emotion-10 for more information on migrating. | ||
`react-emotion` exports `styled` which allows you to use emotion to create React components that have styles attached to them, it also exports all of `emotion`'s exports. | ||
For more documentation on `styled`, [read about it and try it out in the `styled` docs](https://emotion.sh/docs/styled) | ||
```bash | ||
npm install --save emotion react-emotion | ||
``` | ||
```jsx | ||
// @live | ||
import styled, { css } from 'react-emotion' | ||
const SomeComponent = styled('div')` | ||
display: flex; | ||
background-color: ${props => props.color}; | ||
` | ||
const AnotherComponent = styled('h1')( | ||
{ | ||
color: 'hotpink' | ||
}, | ||
props => ({ flex: props.flex }) | ||
) | ||
render( | ||
<SomeComponent color="#DA70D6"> | ||
<AnotherComponent flex={1}>Some text.</AnotherComponent> | ||
</SomeComponent> | ||
) | ||
``` | ||
This package exists to redirect people to the @emotion/styled package and the Emotion docs |
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
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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
0
1
1
1813
4
3
3
6
2
- Removed@emotion/styled-base@^10.0.0-really-unsafe-please-do-not-use.2
- Removedbabel-plugin-emotion@^10.0.0-really-unsafe-please-do-not-use.2
- Removed@babel/code-frame@7.24.7(transitive)
- Removed@babel/generator@7.25.6(transitive)
- Removed@babel/helper-module-imports@7.24.7(transitive)
- Removed@babel/helper-string-parser@7.24.8(transitive)
- Removed@babel/helper-validator-identifier@7.24.7(transitive)
- Removed@babel/highlight@7.24.7(transitive)
- Removed@babel/parser@7.25.6(transitive)
- Removed@babel/runtime@7.25.6(transitive)
- Removed@babel/template@7.25.0(transitive)
- Removed@babel/traverse@7.25.6(transitive)
- Removed@babel/types@7.25.6(transitive)
- Removed@emotion/cache@10.0.29(transitive)
- Removed@emotion/core@10.3.1(transitive)
- Removed@emotion/css@10.0.27(transitive)
- Removed@emotion/hash@0.8.0(transitive)
- Removed@emotion/is-prop-valid@0.8.8(transitive)
- Removed@emotion/memoize@0.7.4(transitive)
- Removed@emotion/serialize@0.11.16(transitive)
- Removed@emotion/sheet@0.9.4(transitive)
- Removed@emotion/styled-base@10.3.0(transitive)
- Removed@emotion/stylis@0.8.5(transitive)
- Removed@emotion/unitless@0.7.5(transitive)
- Removed@emotion/utils@0.11.3(transitive)
- Removed@emotion/weak-memoize@0.2.5(transitive)
- Removed@jridgewell/gen-mapping@0.3.5(transitive)
- Removed@jridgewell/resolve-uri@3.1.2(transitive)
- Removed@jridgewell/set-array@1.2.1(transitive)
- Removed@jridgewell/sourcemap-codec@1.5.0(transitive)
- Removed@jridgewell/trace-mapping@0.3.25(transitive)
- Removed@types/parse-json@4.0.2(transitive)
- Removedansi-styles@3.2.1(transitive)
- Removedbabel-plugin-emotion@10.2.2(transitive)
- Removedbabel-plugin-macros@2.8.0(transitive)
- Removedbabel-plugin-syntax-jsx@6.18.0(transitive)
- Removedcallsites@3.1.0(transitive)
- Removedchalk@2.4.2(transitive)
- Removedcolor-convert@1.9.3(transitive)
- Removedcolor-name@1.1.3(transitive)
- Removedconvert-source-map@1.9.0(transitive)
- Removedcosmiconfig@6.0.0(transitive)
- Removedcsstype@2.6.21(transitive)
- Removeddebug@4.3.7(transitive)
- Removederror-ex@1.3.2(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedfind-root@1.1.0(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedglobals@11.12.0(transitive)
- Removedhas-flag@3.0.0(transitive)
- Removedhasown@2.0.2(transitive)
- Removedimport-fresh@3.3.0(transitive)
- Removedis-arrayish@0.2.1(transitive)
- Removedis-core-module@2.15.1(transitive)
- Removedjs-tokens@4.0.0(transitive)
- Removedjsesc@2.5.2(transitive)
- Removedjson-parse-even-better-errors@2.3.1(transitive)
- Removedlines-and-columns@1.2.4(transitive)
- Removedloose-envify@1.4.0(transitive)
- Removedms@2.1.3(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedparent-module@1.0.1(transitive)
- Removedparse-json@5.2.0(transitive)
- Removedpath-parse@1.0.7(transitive)
- Removedpath-type@4.0.0(transitive)
- Removedpicocolors@1.1.0(transitive)
- Removedprop-types@15.8.1(transitive)
- Removedreact@16.14.0(transitive)
- Removedreact-is@16.13.1(transitive)
- Removedregenerator-runtime@0.14.1(transitive)
- Removedresolve@1.22.8(transitive)
- Removedresolve-from@4.0.0(transitive)
- Removedsource-map@0.5.7(transitive)
- Removedsupports-color@5.5.0(transitive)
- Removedsupports-preserve-symlinks-flag@1.0.0(transitive)
- Removedto-fast-properties@2.0.0(transitive)
- Removedyaml@1.10.2(transitive)