styled-components 6.1.3 → 6.1.5-rc.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/package.json CHANGED
@@ -1,30 +1,30 @@
1
1
  {
2
2
  "name": "styled-components",
3
- "version": "6.1.3",
3
+ "version": "6.1.5-rc.0",
4
4
  "description": "CSS for the <Component> Age. Style components your way with speed, strong typing, and flexibility.",
5
5
  "types": "dist/index.d.ts",
6
6
  "main": "dist/styled-components.cjs.js",
7
7
  "module": "./dist/styled-components.esm.js",
8
8
  "react-native": "native/dist/styled-components.native.cjs.js",
9
9
  "browser": {
10
- "./dist/styled-components.esm.js": "./dist/styled-components.browser.esm.js",
11
- "./dist/styled-components.cjs.js": "./dist/styled-components.browser.cjs.js"
10
+ "./dist/styled-components.cjs.js": "./dist/styled-components.browser.cjs.js",
11
+ "./dist/styled-components.esm.js": "./dist/styled-components.browser.esm.js"
12
12
  },
13
13
  "sideEffects": false,
14
14
  "scripts": {
15
15
  "generateErrors": "node scripts/generateErrorMap.js",
16
- "prebuild": "rimraf dist && bun run generateErrors",
16
+ "prebuild": "rimraf dist && yarn run generateErrors",
17
17
  "build": "rollup -c",
18
- "postbuild": "bun run size",
19
- "pretest": "bun run generateErrors",
20
- "test": "bun run test:web && bun run test:native",
18
+ "postbuild": "yarn run size",
19
+ "pretest": "yarn run generateErrors",
20
+ "test": "yarn run test:web && yarn run test:native",
21
21
  "test:web": "jest -c jest.config.main.js",
22
22
  "test:native": "jest -c jest.config.native.js --forceExit",
23
23
  "test:integration": "jest -c jest.config.integration.js --runInBand --forceExit",
24
24
  "size": "bundlewatch",
25
- "prettier": "prettier src/** --write",
26
- "prettier:check": "prettier src/** --check",
27
- "prepublishOnly": "cp ../../README.md . && bun run build"
25
+ "prettier": "prettier src --write",
26
+ "prettier:check": "prettier src --check",
27
+ "prepublishOnly": "cp ../../README.md . && yarn run build"
28
28
  },
29
29
  "repository": {
30
30
  "type": "git",
@@ -50,10 +50,6 @@
50
50
  "url": "https://github.com/styled-components/styled-components/issues"
51
51
  },
52
52
  "homepage": "https://styled-components.com",
53
- "resolutions": {
54
- "@types/react": "^17.0.0",
55
- "@types/react-dom": "^17.0.0"
56
- },
57
53
  "dependencies": {
58
54
  "@emotion/is-prop-valid": "1.2.1",
59
55
  "@emotion/unitless": "0.8.0",
@@ -66,8 +62,45 @@
66
62
  "tslib": "2.5.0"
67
63
  },
68
64
  "peerDependencies": {
69
- "react": ">= 16.8.0",
70
- "react-dom": ">= 16.8.0"
65
+ "@emotion/is-prop-valid": "^1.2.1",
66
+ "@emotion/unitless": ">= 0.8.0",
67
+ "@types/stylis": "^4.2.0",
68
+ "css-to-react-native": "^3.2.0",
69
+ "csstype": "^3.1.2",
70
+ "postcss": "^8.0.0",
71
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
72
+ "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
73
+ "shallowequal": "^1.1.0",
74
+ "tslib": "^2.5.0"
75
+ },
76
+ "peerDependenciesMeta": {
77
+ "@emotion/is-prop-valid": {
78
+ "optional": true
79
+ },
80
+ "@emotion/unitless": {
81
+ "optional": true
82
+ },
83
+ "@types/stylis": {
84
+ "optional": true
85
+ },
86
+ "css-to-react-native": {
87
+ "optional": true
88
+ },
89
+ "csstype": {
90
+ "optional": true
91
+ },
92
+ "postcss": {
93
+ "optional": true
94
+ },
95
+ "react-dom": {
96
+ "optional": true
97
+ },
98
+ "shallowequal": {
99
+ "optional": true
100
+ },
101
+ "tslib": {
102
+ "optional": true
103
+ }
71
104
  },
72
105
  "devDependencies": {
73
106
  "@babel/core": "7.21.0",
@@ -1,9 +0,0 @@
1
- import { CSSProp } from '../index';
2
- /**
3
- * `css` prop
4
- */
5
- declare module 'react' {
6
- interface Attributes {
7
- css?: CSSProp;
8
- }
9
- }