diff --git a/package.json b/package.json index ef096ab..e26d392 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "homepage": "https://github.com/wwsun/coral-system#readme", "peerDependencies": { "react": ">= 16.8.0", - "styled-components": "4.x || 5.x" + "styled-components": "4.x || 5.x || 6.x" }, "dependencies": { "@emotion/is-prop-valid": "^1.2.0", diff --git a/src/index.ts b/src/index.ts index 333f7af..b706706 100644 --- a/src/index.ts +++ b/src/index.ts @@ -3,5 +3,5 @@ export * from './theme'; export * from './components'; export * from './provider'; export * from './forward-ref'; -export { css, keyframes } from 'styled-components'; +export { default as styled, css, keyframes } from 'styled-components'; export type { SystemProps, CoralProps, HTMLCoralProps } from './types'; diff --git a/tsconfig.json b/tsconfig.json index 5910e07..8dfd7b8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,7 +8,6 @@ "skipLibCheck": true, "strict": true, "noFallthroughCasesInSwitch": true, - "suppressImplicitAnyIndexErrors": true, "allowSyntheticDefaultImports": true, "strictNullChecks": false, "allowJs": true,