Comparing version 3.0.0-9 to 3.0.0-10
# Changelog | ||
## Unreleased | ||
- Removes monorepo setup and optional packages | ||
- Removes support for emotion | ||
## [3.0.0-9] 2018-09-22 | ||
- Adds flexbox props back to Box component | ||
## [3.0.0-6] 2018-09-13 | ||
- Adds emotion package | ||
## [3.0.0-2] 2018-09-11 | ||
- Update styled-system | ||
- Update docs | ||
## [3.0.0-1] 2018-09-10 | ||
- Update docs for v3 | ||
## [3.0.0-0] 2018-09-08 | ||
- Smaller package | ||
- Reduced number of components to 8 | ||
- Upgraded for styled-components v4 | ||
- Reduced dependencies to one | ||
- Removed default theme and colors | ||
- Removed Rebass Provider component | ||
- Added variant theme support to Button and Card | ||
- Removed `is` prop in favor of styled-components `as` prop | ||
- Uses Box component as the base for all other components | ||
## [2.3.2] 2018-09-08 | ||
@@ -5,0 +39,0 @@ |
@@ -26,3 +26,5 @@ "use strict"; | ||
var Box = (0, _styledComponents.default)('div')(_styledSystem.space, _styledSystem.width, _styledSystem.fontSize, _styledSystem.color, _styledSystem.flex, _styledSystem.order, _styledSystem.alignSelf, themed('Box'), css); | ||
var Box = (0, _styledComponents.default)('div')({ | ||
boxSizing: 'border-box' | ||
}, _styledSystem.space, _styledSystem.width, _styledSystem.fontSize, _styledSystem.color, _styledSystem.flex, _styledSystem.order, _styledSystem.alignSelf, themed('Box'), css); | ||
exports.Box = Box; | ||
@@ -29,0 +31,0 @@ Box.propTypes = _extends({}, _styledSystem.space.propTypes, _styledSystem.width.propTypes, _styledSystem.fontSize.propTypes, _styledSystem.color.propTypes); |
{ | ||
"name": "rebass", | ||
"version": "3.0.0-9", | ||
"version": "3.0.0-10", | ||
"description": "React primitive UI components built with styled-system", | ||
@@ -8,8 +8,7 @@ "main": "dist/index.js", | ||
"scripts": { | ||
"prepare": "npm run clean && babel src -d dist && npm run emotion", | ||
"prepare": "npm run clean && babel src -d dist", | ||
"clean": "rm -rf dist", | ||
"emotion": "NODE_ENV=emotion babel src -d dist/emotion", | ||
"start": "mdx-go docs", | ||
"docs": "mdx-go build docs -d site", | ||
"cover": "jest --coverage --coverageReporters html lcov && codecov", | ||
"cover": "jest --coverage && npx codecov", | ||
"test": "jest", | ||
@@ -33,23 +32,22 @@ "size": "bundlesize" | ||
"dependencies": { | ||
"styled-system": "^3.1.4" | ||
"styled-system": "^3.1.11" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.1.0", | ||
"@babel/core": "^7.1.0", | ||
"@babel/cli": "^7.1.2", | ||
"@babel/core": "^7.1.2", | ||
"@babel/preset-env": "^7.1.0", | ||
"@babel/preset-react": "^7.0.0", | ||
"babel-core": "^7.0.0-bridge.0", | ||
"babel-plugin-transform-rename-import": "^2.2.0", | ||
"bundlesize": "^0.17.0", | ||
"codecov": "^3.0.0", | ||
"emotion": "^9.2.10", | ||
"buble": "0.19.4", | ||
"jest": "^23.6.0", | ||
"jest-styled-components": "^6.2.0", | ||
"mdx-go": "^1.1.10", | ||
"jest-styled-components": "^6.2.1", | ||
"mdx-go": "^2.0.0-29", | ||
"react": "^16.5.2", | ||
"react-dom": "^16.5.2", | ||
"react-emotion": "^9.2.10", | ||
"react-test-renderer": "^16.5.2", | ||
"styled-components": "^4.0.0-beta.8" | ||
"styled-components": "^4.0.2" | ||
}, | ||
"peerDependencies": { | ||
"styled-components": ">=4.0.0" | ||
}, | ||
"repository": { | ||
@@ -64,8 +62,6 @@ "type": "git", | ||
"jest": { | ||
"roots": [ | ||
"<rootDir>/test/" | ||
], | ||
"testMatch": [ | ||
"**/test/**/*.js" | ||
], | ||
"setupTestFrameworkScriptFile": "jest-styled-components", | ||
"coverageReporters": [ | ||
@@ -83,4 +79,5 @@ "html", | ||
}, | ||
"projects": [ | ||
"<rootDir>" | ||
"coveragePathIgnorePatterns": [ | ||
"/node_modules/", | ||
"/dist/" | ||
] | ||
@@ -87,0 +84,0 @@ }, |
@@ -44,7 +44,6 @@ | ||
To use Rebass with [emotion][], import from `rebass/emotion`: | ||
Support for emotion in v3 is pending the addition of the `as` prop. | ||
See [this issue][as-issue] for details. | ||
```js | ||
import { Box } from 'rebass/emotion' | ||
``` | ||
[as-issue]: https://github.com/emotion-js/emotion/issues/837 | ||
@@ -57,3 +56,2 @@ ## Features | ||
- Flexbox grid with the Box and Flex components | ||
- Support for [styled-components][] & [emotion][] | ||
- Extensible base components | ||
@@ -116,3 +114,3 @@ - Design-system based consistency | ||
- [styled-components][] | ||
- [emotion][emotion] | ||
- [emotion][] | ||
@@ -119,0 +117,0 @@ [styled-system]: https://github.com/jxnblk/styled-system |
Sorry, the diff of this file is not supported yet
13
10
18188
2
89
130
+ Added@emotion/is-prop-valid@1.2.2(transitive)
+ Added@emotion/memoize@0.8.1(transitive)
+ Added@emotion/unitless@0.8.1(transitive)
+ Added@types/stylis@4.2.5(transitive)
+ Addedcamelize@1.0.1(transitive)
+ Addedcss-color-keywords@1.0.0(transitive)
+ Addedcss-to-react-native@3.2.0(transitive)
+ Addedcsstype@3.1.3(transitive)
+ Addednanoid@3.3.8(transitive)
+ Addedpicocolors@1.1.1(transitive)
+ Addedpostcss@8.4.49(transitive)
+ Addedpostcss-value-parser@4.2.0(transitive)
+ Addedreact@19.0.0(transitive)
+ Addedreact-dom@19.0.0(transitive)
+ Addedscheduler@0.25.0(transitive)
+ Addedshallowequal@1.1.0(transitive)
+ Addedsource-map-js@1.2.1(transitive)
+ Addedstyled-components@6.1.15(transitive)
+ Addedstylis@4.3.2(transitive)
+ Addedtslib@2.6.2(transitive)
Updatedstyled-system@^3.1.11