styled-components 5.3.3 → 6.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +187 -0
- package/dist/styled-components-macro.cjs.js +1 -1
- package/dist/styled-components-macro.cjs.js.map +1 -1
- package/dist/styled-components-macro.esm.js +1 -1
- package/dist/styled-components-macro.esm.js.map +1 -1
- package/dist/styled-components.browser.cjs.js +1 -1
- package/dist/styled-components.browser.cjs.js.map +1 -1
- package/dist/styled-components.browser.esm.js +1 -1
- package/dist/styled-components.browser.esm.js.map +1 -1
- package/dist/styled-components.cjs.js +1 -1
- package/dist/styled-components.cjs.js.map +1 -1
- package/dist/styled-components.esm.js +1 -1
- package/dist/styled-components.esm.js.map +1 -1
- package/dist/styled-components.js +1 -1
- package/dist/styled-components.js.map +1 -1
- package/dist/styled-components.min.js +1 -1
- package/dist/styled-components.min.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/native/dist/styled-components.native.cjs.js +1157 -6115
- package/native/dist/styled-components.native.cjs.js.map +1 -1
- package/native/dist/styled-components.native.esm.js +1153 -6115
- package/native/dist/styled-components.native.esm.js.map +1 -1
- package/package.json +72 -44
- package/primitives/dist/styled-components-primitives.cjs.js +1107 -6115
- package/primitives/dist/styled-components-primitives.cjs.js.map +1 -1
- package/primitives/dist/styled-components-primitives.esm.js +1101 -6114
- package/primitives/dist/styled-components-primitives.esm.js.map +1 -1
- package/test-utils/{index.js → index.ts} +10 -13
- package/test-utils/{setupTestFramework.js → setupTestFramework.ts} +2 -5
- package/scripts/generateErrorMap.js +0 -22
package/package.json
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "styled-components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0-alpha.0",
|
|
4
4
|
"description": "Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress",
|
|
5
5
|
"main": "dist/styled-components.cjs.js",
|
|
6
|
-
"jsnext:main": "dist/styled-components.esm.js",
|
|
7
6
|
"module": "dist/styled-components.esm.js",
|
|
8
7
|
"react-native": "native/dist/styled-components.native.cjs.js",
|
|
9
8
|
"browser": {
|
|
@@ -15,35 +14,33 @@
|
|
|
15
14
|
],
|
|
16
15
|
"scripts": {
|
|
17
16
|
"generateErrors": "node scripts/generateErrorMap.js",
|
|
18
|
-
"prebuild": "rimraf dist &&
|
|
17
|
+
"prebuild": "rimraf dist && yarn generateErrors",
|
|
19
18
|
"build": "rollup -c",
|
|
20
|
-
"postbuild": "
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"test": "
|
|
25
|
-
"test:
|
|
26
|
-
"test:
|
|
27
|
-
"test:primitives": "jest -c ../../scripts/jest/config.primitives.js",
|
|
28
|
-
"test:integration": "jest -c ../../scripts/jest/config.integration.js --runInBand --forceExit",
|
|
19
|
+
"postbuild": "yarn lint:size",
|
|
20
|
+
"pretest": "yarn generateErrors",
|
|
21
|
+
"test": "yarn test:web && yarn test:native && yarn test:primitives",
|
|
22
|
+
"test:web": "jest -c jest.config.main.js",
|
|
23
|
+
"test:native": "jest -c jest.config.native.js",
|
|
24
|
+
"test:primitives": "jest -c jest.config.primitives.js",
|
|
25
|
+
"test:integration": "jest -c jest.config.integration.js --runInBand --forceExit",
|
|
29
26
|
"format": "eslint ./**/*.js --fix",
|
|
30
27
|
"lint": "eslint src",
|
|
31
28
|
"lint:size": "bundlewatch",
|
|
32
|
-
"prettier": "prettier
|
|
33
|
-
"prepublishOnly": "
|
|
34
|
-
"dev": "cross-env BABEL_ENV=cjs babel-node example/startServer.js"
|
|
29
|
+
"prettier": "prettier src/** --write",
|
|
30
|
+
"prepublishOnly": "cp ../../README.md . && yarn build"
|
|
35
31
|
},
|
|
36
32
|
"repository": {
|
|
37
33
|
"type": "git",
|
|
38
34
|
"url": "git+https://github.com/styled-components/styled-components.git"
|
|
39
35
|
},
|
|
40
36
|
"files": [
|
|
37
|
+
"CHANGELOG.md",
|
|
41
38
|
"CODE_OF_CONDUCT.md",
|
|
42
39
|
"CONTRIBUTING.md",
|
|
40
|
+
"LICENSE",
|
|
43
41
|
"dist",
|
|
44
42
|
"native",
|
|
45
43
|
"primitives",
|
|
46
|
-
"scripts",
|
|
47
44
|
"test-utils",
|
|
48
45
|
"macro"
|
|
49
46
|
],
|
|
@@ -63,48 +60,79 @@
|
|
|
63
60
|
},
|
|
64
61
|
"homepage": "https://styled-components.com",
|
|
65
62
|
"dependencies": {
|
|
66
|
-
"@babel/
|
|
67
|
-
"@babel/
|
|
68
|
-
"@
|
|
69
|
-
"@
|
|
63
|
+
"@babel/cli": "^7.15.7",
|
|
64
|
+
"@babel/core": "^7.15.5",
|
|
65
|
+
"@babel/helper-module-imports": "^7.16.7",
|
|
66
|
+
"@babel/plugin-external-helpers": "^7.0.0",
|
|
67
|
+
"@babel/plugin-proposal-class-properties": "^7.0.0",
|
|
68
|
+
"@babel/plugin-proposal-object-rest-spread": "^7.15.6",
|
|
69
|
+
"@babel/preset-env": "^7.15.6",
|
|
70
|
+
"@babel/preset-react": "^7.0.0",
|
|
71
|
+
"@babel/preset-typescript": "^7.15.0",
|
|
72
|
+
"@babel/traverse": "^7.17.3",
|
|
73
|
+
"@emotion/is-prop-valid": "^1.1.0",
|
|
70
74
|
"@emotion/unitless": "^0.7.4",
|
|
71
|
-
"babel-plugin-styled-components": ">= 1.12.0",
|
|
72
75
|
"css-to-react-native": "^3.0.0",
|
|
73
|
-
"hoist-non-react-statics": "^3.0.0",
|
|
74
76
|
"shallowequal": "^1.1.0",
|
|
75
|
-
"
|
|
77
|
+
"stylis": "^4.0.13"
|
|
76
78
|
},
|
|
77
79
|
"peerDependencies": {
|
|
78
80
|
"react": ">= 16.8.0",
|
|
79
|
-
"react-dom": ">= 16.8.0"
|
|
80
|
-
"react-is": ">= 16.8.0"
|
|
81
|
+
"react-dom": ">= 16.8.0"
|
|
81
82
|
},
|
|
82
83
|
"devDependencies": {
|
|
83
|
-
"@
|
|
84
|
-
"@babel
|
|
85
|
-
"@
|
|
86
|
-
"@
|
|
87
|
-
"@
|
|
88
|
-
"@
|
|
84
|
+
"@rollup/plugin-typescript": "^8.2.5",
|
|
85
|
+
"@types/babel-plugin-macros": "^2.8.4",
|
|
86
|
+
"@types/enzyme": "^3.10.9",
|
|
87
|
+
"@types/jest": "^27.0.2",
|
|
88
|
+
"@types/js-beautify": "^1.13.1",
|
|
89
|
+
"@types/node": "^14.0.0",
|
|
90
|
+
"@types/react": "^17.0.22",
|
|
91
|
+
"@types/react-dom": "^17.0.9",
|
|
92
|
+
"@types/react-frame-component": "^4.1.1",
|
|
93
|
+
"@types/react-native": "^0.65.1",
|
|
94
|
+
"@types/react-primitives": "^0.6.2",
|
|
95
|
+
"@types/react-test-renderer": "^17.0.1",
|
|
96
|
+
"@types/shallowequal": "^1.1.1",
|
|
97
|
+
"@types/stylis": "^4.0.2",
|
|
98
|
+
"@typescript-eslint/eslint-plugin": "^4.20.0",
|
|
99
|
+
"@typescript-eslint/parser": "^4.20.0",
|
|
89
100
|
"babel-eslint": "^10.0.1",
|
|
90
|
-
"
|
|
91
|
-
"
|
|
101
|
+
"babel-jest": "^27.0.6",
|
|
102
|
+
"babel-plugin-add-module-exports": "^1.0.4",
|
|
103
|
+
"babel-plugin-macros": "^3.1.0",
|
|
104
|
+
"babel-plugin-styled-components": "^2.0.5",
|
|
105
|
+
"babel-plugin-tester": "^10.0.0",
|
|
106
|
+
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
|
|
107
|
+
"bundlewatch": "^0.3.1",
|
|
108
|
+
"eslint": "^7.23.0",
|
|
109
|
+
"eslint-config-prettier": "^8.3.0",
|
|
110
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
92
111
|
"eslint-plugin-react": "^7.20.6",
|
|
93
|
-
"
|
|
112
|
+
"eslint-plugin-react-hooks": "^4.2.0",
|
|
113
|
+
"jest": "^27.0.6",
|
|
114
|
+
"jest-image-snapshot": "^4.2.0",
|
|
94
115
|
"jest-serializer-html": "^7.0.0",
|
|
95
116
|
"js-beautify": "^1.13.0",
|
|
117
|
+
"prettier": "^2.2.0",
|
|
96
118
|
"prop-types": "^15.7.2",
|
|
97
|
-
"react": "^
|
|
98
|
-
"react-dom": "^
|
|
119
|
+
"react": "^17.0.2",
|
|
120
|
+
"react-dom": "^17.0.2",
|
|
99
121
|
"react-frame-component": "^4.0.2",
|
|
100
|
-
"react-
|
|
101
|
-
"react-native": "^0.63.4",
|
|
122
|
+
"react-native": "^0.65.1",
|
|
102
123
|
"react-primitives": "^0.8.0",
|
|
103
|
-
"react-test-renderer": "^
|
|
104
|
-
"rollup": "^
|
|
105
|
-
"rollup-plugin-
|
|
106
|
-
"rollup-plugin-
|
|
107
|
-
"
|
|
124
|
+
"react-test-renderer": "^17.0.2",
|
|
125
|
+
"rollup": "^2.47.0",
|
|
126
|
+
"rollup-plugin-commonjs": "^10.1.0",
|
|
127
|
+
"rollup-plugin-json": "^4.0.0",
|
|
128
|
+
"rollup-plugin-node-resolve": "^5.2.0",
|
|
129
|
+
"rollup-plugin-replace": "^2.2.0",
|
|
130
|
+
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
131
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
132
|
+
"stylis-plugin-rtl": "^2.1.1",
|
|
133
|
+
"tslib": "^2.3.1",
|
|
134
|
+
"typescript": "^4.5.5",
|
|
135
|
+
"utility-types": "^3.10.0"
|
|
108
136
|
},
|
|
109
137
|
"bundlewatch": {
|
|
110
138
|
"files": [
|
|
@@ -123,6 +151,6 @@
|
|
|
123
151
|
"url": "https://opencollective.com/styled-components"
|
|
124
152
|
},
|
|
125
153
|
"engines": {
|
|
126
|
-
"node": ">=
|
|
154
|
+
"node": ">= 14"
|
|
127
155
|
}
|
|
128
156
|
}
|