Skip to content
This repository was archived by the owner on Jun 20, 2022. It is now read-only.

Commit 1b1d0ca

Browse files
authored
chore: upgrade deps (#51)
1 parent bdb1f0d commit 1b1d0ca

File tree

3 files changed

+1426
-2481
lines changed

3 files changed

+1426
-2481
lines changed

docs/config/Wrapper.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
import React from 'react'
33
import { transparentize } from 'polished'
44
import { ThemeProvider } from 'emotion-theming'
5-
import { theme, injectGlobal, globalStyle } from '@smooth-ui/core-sc'
5+
import { theme, th, injectGlobal, globalStyle } from '@smooth-ui/core-sc'
6+
7+
const fromTheme = value => th(value)({ theme })
68

79
injectGlobal`
810
${globalStyle()}
@@ -12,15 +14,15 @@ injectGlobal`
1214
}
1315
1416
.sui-col {
15-
border: 1px solid ${theme.primary};
16-
background-color: ${transparentize(0.6, theme.primary)};
17+
border: 1px solid ${fromTheme('primary')};
18+
background-color: ${transparentize(0.6, fromTheme('primary'))};
1719
padding-top: .75rem;
1820
padding-bottom: .75rem;
1921
}
2022
2123
.example-row-flex-cols .sui-row {
2224
min-height: 10rem;
23-
background-color: ${transparentize(0.7, theme.primary)};
25+
background-color: ${transparentize(0.7, fromTheme('primary'))};
2426
}
2527
`
2628

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@
3333
"@babel/preset-env": "^7.0.0",
3434
"@babel/preset-react": "^7.0.0",
3535
"babel-core": "^7.0.0-0",
36-
"babel-eslint": "^9.0.0",
36+
"babel-eslint": "^10.0.0",
3737
"babel-jest": "^23.6.0",
3838
"babel-loader": "^8.0.2",
39-
"babel-plugin-annotate-pure-calls": "^0.3.0",
39+
"babel-plugin-annotate-pure-calls": "^0.4.0",
4040
"babel-plugin-emotion": "^9.2.9",
4141
"babel-plugin-styled-components": "^1.7.1",
4242
"babel-plugin-transform-rename-import": "^2.3.0",

0 commit comments

Comments
 (0)