diff --git a/packages/color/tsconfig.json b/packages/color/tsconfig.json index 1355ffca5..36be9b168 100644 --- a/packages/color/tsconfig.json +++ b/packages/color/tsconfig.json @@ -1,10 +1,4 @@ { - "compilerOptions": { - "strict": true, - - "resolveJsonModule": true, - "esModuleInterop": true, - "moduleResolution": "node" - }, + "extends": "../../tsconfig.json", "include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.d.ts"] } diff --git a/packages/core/test/react-jsx.tsx b/packages/core/test/react-jsx.tsx index b4973fe19..6541d8a8f 100644 --- a/packages/core/test/react-jsx.tsx +++ b/packages/core/test/react-jsx.tsx @@ -2,7 +2,7 @@ import { jsx } from '../src' import renderer from 'react-test-renderer' -const renderJSON = (el: React.ReactNode) => renderer.create(el).toJSON() +const renderJSON = (el: React.ReactElement) => renderer.create(el).toJSON() describe('JSX', () => { test('accepts sx prop', () => { diff --git a/packages/core/tsconfig.json b/packages/core/tsconfig.json index 9bbf96fe1..c81cb87b9 100644 --- a/packages/core/tsconfig.json +++ b/packages/core/tsconfig.json @@ -1,9 +1,8 @@ { + "extends": "../../tsconfig.json", "compilerOptions": { - "resolveJsonModule": true, - "esModuleInterop": true, - "moduleResolution": "node", - "jsx": "react" + "jsx": "react", + "strict": false }, "include": ["./src/**/*.ts", "./src/**/*.tsx"] } diff --git a/packages/css/src/types.ts b/packages/css/src/types.ts index 4044990d4..81afdf012 100644 --- a/packages/css/src/types.ts +++ b/packages/css/src/types.ts @@ -556,7 +556,7 @@ export interface Theme { /** * Adds a global box-sizing: border-box style */ - useBoxSizing?: boolean + useBorderBox?: boolean /** * Define the colors that are available through this theme diff --git a/packages/css/tsconfig.json b/packages/css/tsconfig.json index fe80b9156..041125741 100644 --- a/packages/css/tsconfig.json +++ b/packages/css/tsconfig.json @@ -1,5 +1,7 @@ { - "extends": "../core/tsconfig.json", - "compilerOptions": {}, + "extends": "../../tsconfig.json", + "compilerOptions": { + "strict": false + }, "include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.d.ts"] } diff --git a/packages/custom-properties/tsconfig.json b/packages/custom-properties/tsconfig.json index 37b7a82c7..4082f16a5 100644 --- a/packages/custom-properties/tsconfig.json +++ b/packages/custom-properties/tsconfig.json @@ -1,8 +1,3 @@ { - "compilerOptions": { - "resolveJsonModule": true, - "esModuleInterop": true, - "moduleResolution": "node", - "strict": true - } + "extends": "../../tsconfig.json" } diff --git a/packages/docs/src/pages/styling-mdx.mdx b/packages/docs/src/pages/styling-mdx.mdx index 483a58d56..93455413e 100644 --- a/packages/docs/src/pages/styling-mdx.mdx +++ b/packages/docs/src/pages/styling-mdx.mdx @@ -87,7 +87,7 @@ colors and other styles can be added to `theme.styles.pre` to target child eleme Prism.js adds `` elements with class names that can be used as child selectors. -To enable syntax highlighting in MDX, see the [`@theme-ui/prism`](/prism) package. +To enable syntax highlighting in MDX, see the [`@theme-ui/prism`](/packages/prism) package. [prism.js]: https://github.com/PrismJS/prism diff --git a/packages/docs/src/pages/theming.mdx b/packages/docs/src/pages/theming.mdx index dbc7f1d33..82a1c20bb 100644 --- a/packages/docs/src/pages/theming.mdx +++ b/packages/docs/src/pages/theming.mdx @@ -173,7 +173,7 @@ Flag | Default | Description `useBodyStyles` | `true` | Adds styles defined in `theme.styles.root` to the `` element along with `color` and `background-color` `initialColorModeName` | `'default'` | The key used for the top-level color palette in `theme.colors` `useColorSchemeMediaQuery` | `false` | Initializes the color mode based on the `prefers-color-scheme` media query -`useBoxSizing` | `true` | Adds a global `box-sizing: border-box` style +`useBorderBox` | `true` | Adds a global `box-sizing: border-box` style ## Example Theme diff --git a/packages/match-media/src/index.ts b/packages/match-media/src/index.ts index 0eb1f0290..80e777499 100644 --- a/packages/match-media/src/index.ts +++ b/packages/match-media/src/index.ts @@ -52,9 +52,12 @@ export const useBreakpointIndex = (options: defaultOptions = {}) => { return value } -type Values = ((theme: Theme | null) => string[]) | string[] +type Values = ((theme: Theme | null) => T[]) | T[] -export const useResponsiveValue = (values: Values, options: defaultOptions = {}) => { +export function useResponsiveValue( + values: Values, + options: defaultOptions = {} +): T { const { theme } = useThemeUI() const array = typeof values === 'function' ? values(theme) : values const index = useBreakpointIndex(options) diff --git a/packages/match-media/tsconfig.json b/packages/match-media/tsconfig.json index 5bd42fd06..4082f16a5 100644 --- a/packages/match-media/tsconfig.json +++ b/packages/match-media/tsconfig.json @@ -1,8 +1,3 @@ { - "compilerOptions": { - "resolveJsonModule": true, - "esModuleInterop": true, - "moduleResolution": "node", - "strict": true - } -} \ No newline at end of file + "extends": "../../tsconfig.json" +} diff --git a/packages/preset-base/tsconfig.json b/packages/preset-base/tsconfig.json index 37b7a82c7..4082f16a5 100644 --- a/packages/preset-base/tsconfig.json +++ b/packages/preset-base/tsconfig.json @@ -1,8 +1,3 @@ { - "compilerOptions": { - "resolveJsonModule": true, - "esModuleInterop": true, - "moduleResolution": "node", - "strict": true - } + "extends": "../../tsconfig.json" } diff --git a/packages/preset-bootstrap/tsconfig.json b/packages/preset-bootstrap/tsconfig.json index 37b7a82c7..4082f16a5 100644 --- a/packages/preset-bootstrap/tsconfig.json +++ b/packages/preset-bootstrap/tsconfig.json @@ -1,8 +1,3 @@ { - "compilerOptions": { - "resolveJsonModule": true, - "esModuleInterop": true, - "moduleResolution": "node", - "strict": true - } + "extends": "../../tsconfig.json" } diff --git a/packages/preset-bulma/tsconfig.json b/packages/preset-bulma/tsconfig.json index 37b7a82c7..4082f16a5 100644 --- a/packages/preset-bulma/tsconfig.json +++ b/packages/preset-bulma/tsconfig.json @@ -1,8 +1,3 @@ { - "compilerOptions": { - "resolveJsonModule": true, - "esModuleInterop": true, - "moduleResolution": "node", - "strict": true - } + "extends": "../../tsconfig.json" } diff --git a/packages/preset-dark/tsconfig.json b/packages/preset-dark/tsconfig.json index 37b7a82c7..4082f16a5 100644 --- a/packages/preset-dark/tsconfig.json +++ b/packages/preset-dark/tsconfig.json @@ -1,8 +1,3 @@ { - "compilerOptions": { - "resolveJsonModule": true, - "esModuleInterop": true, - "moduleResolution": "node", - "strict": true - } + "extends": "../../tsconfig.json" } diff --git a/packages/preset-deep/tsconfig.json b/packages/preset-deep/tsconfig.json index 37b7a82c7..4082f16a5 100644 --- a/packages/preset-deep/tsconfig.json +++ b/packages/preset-deep/tsconfig.json @@ -1,8 +1,3 @@ { - "compilerOptions": { - "resolveJsonModule": true, - "esModuleInterop": true, - "moduleResolution": "node", - "strict": true - } + "extends": "../../tsconfig.json" } diff --git a/packages/preset-funk/tsconfig.json b/packages/preset-funk/tsconfig.json index 37b7a82c7..4082f16a5 100644 --- a/packages/preset-funk/tsconfig.json +++ b/packages/preset-funk/tsconfig.json @@ -1,8 +1,3 @@ { - "compilerOptions": { - "resolveJsonModule": true, - "esModuleInterop": true, - "moduleResolution": "node", - "strict": true - } + "extends": "../../tsconfig.json" } diff --git a/packages/preset-future/tsconfig.json b/packages/preset-future/tsconfig.json index 37b7a82c7..4082f16a5 100644 --- a/packages/preset-future/tsconfig.json +++ b/packages/preset-future/tsconfig.json @@ -1,8 +1,3 @@ { - "compilerOptions": { - "resolveJsonModule": true, - "esModuleInterop": true, - "moduleResolution": "node", - "strict": true - } + "extends": "../../tsconfig.json" } diff --git a/packages/preset-polaris/tsconfig.json b/packages/preset-polaris/tsconfig.json index 37b7a82c7..4082f16a5 100644 --- a/packages/preset-polaris/tsconfig.json +++ b/packages/preset-polaris/tsconfig.json @@ -1,8 +1,3 @@ { - "compilerOptions": { - "resolveJsonModule": true, - "esModuleInterop": true, - "moduleResolution": "node", - "strict": true - } + "extends": "../../tsconfig.json" } diff --git a/packages/preset-roboto/tsconfig.json b/packages/preset-roboto/tsconfig.json index 37b7a82c7..4082f16a5 100644 --- a/packages/preset-roboto/tsconfig.json +++ b/packages/preset-roboto/tsconfig.json @@ -1,8 +1,3 @@ { - "compilerOptions": { - "resolveJsonModule": true, - "esModuleInterop": true, - "moduleResolution": "node", - "strict": true - } + "extends": "../../tsconfig.json" } diff --git a/packages/preset-swiss/tsconfig.json b/packages/preset-swiss/tsconfig.json index 37b7a82c7..4082f16a5 100644 --- a/packages/preset-swiss/tsconfig.json +++ b/packages/preset-swiss/tsconfig.json @@ -1,8 +1,3 @@ { - "compilerOptions": { - "resolveJsonModule": true, - "esModuleInterop": true, - "moduleResolution": "node", - "strict": true - } + "extends": "../../tsconfig.json" } diff --git a/packages/preset-system/tsconfig.json b/packages/preset-system/tsconfig.json index 37b7a82c7..4082f16a5 100644 --- a/packages/preset-system/tsconfig.json +++ b/packages/preset-system/tsconfig.json @@ -1,8 +1,3 @@ { - "compilerOptions": { - "resolveJsonModule": true, - "esModuleInterop": true, - "moduleResolution": "node", - "strict": true - } + "extends": "../../tsconfig.json" } diff --git a/packages/preset-tailwind/tsconfig.json b/packages/preset-tailwind/tsconfig.json index 37b7a82c7..4082f16a5 100644 --- a/packages/preset-tailwind/tsconfig.json +++ b/packages/preset-tailwind/tsconfig.json @@ -1,8 +1,3 @@ { - "compilerOptions": { - "resolveJsonModule": true, - "esModuleInterop": true, - "moduleResolution": "node", - "strict": true - } + "extends": "../../tsconfig.json" } diff --git a/packages/preset-tosh/tsconfig.json b/packages/preset-tosh/tsconfig.json index 37b7a82c7..4082f16a5 100644 --- a/packages/preset-tosh/tsconfig.json +++ b/packages/preset-tosh/tsconfig.json @@ -1,8 +1,3 @@ { - "compilerOptions": { - "resolveJsonModule": true, - "esModuleInterop": true, - "moduleResolution": "node", - "strict": true - } + "extends": "../../tsconfig.json" } diff --git a/packages/presets/tsconfig.json b/packages/presets/tsconfig.json index 37b7a82c7..4082f16a5 100644 --- a/packages/presets/tsconfig.json +++ b/packages/presets/tsconfig.json @@ -1,8 +1,3 @@ { - "compilerOptions": { - "resolveJsonModule": true, - "esModuleInterop": true, - "moduleResolution": "node", - "strict": true - } + "extends": "../../tsconfig.json" } diff --git a/packages/tachyons/tsconfig.json b/packages/tachyons/tsconfig.json index 37b7a82c7..4082f16a5 100644 --- a/packages/tachyons/tsconfig.json +++ b/packages/tachyons/tsconfig.json @@ -1,8 +1,3 @@ { - "compilerOptions": { - "resolveJsonModule": true, - "esModuleInterop": true, - "moduleResolution": "node", - "strict": true - } + "extends": "../../tsconfig.json" } diff --git a/packages/tailwind/tsconfig.json b/packages/tailwind/tsconfig.json index 73dc9e824..ea497b092 100644 --- a/packages/tailwind/tsconfig.json +++ b/packages/tailwind/tsconfig.json @@ -1,9 +1,4 @@ { - "compilerOptions": { - "resolveJsonModule": true, - "esModuleInterop": true, - "moduleResolution": "node", - "strict": true - }, + "extends": "../../tsconfig.json", "exclude": ["test"] } diff --git a/packages/theme-ui/package.json b/packages/theme-ui/package.json index f390058a7..31858b3b9 100644 --- a/packages/theme-ui/package.json +++ b/packages/theme-ui/package.json @@ -2,6 +2,7 @@ "name": "theme-ui", "version": "0.3.1", "description": "Build consistent, themeable React UIs based on design system constraints", + "source": "src/index.ts", "main": "dist/index.js", "module": "dist/index.esm.js", "sideEffects": false, @@ -18,7 +19,8 @@ "@theme-ui/core": "^0.3.1", "@theme-ui/css": "^0.3.1", "@theme-ui/mdx": "^0.3.0", - "@theme-ui/theme-provider": "^0.3.1" + "@theme-ui/theme-provider": "^0.3.1", + "@types/theme-ui__components": "^0.2.3" }, "keywords": [ "theme-ui", diff --git a/packages/theme-ui/src/index.js b/packages/theme-ui/src/index.js deleted file mode 100644 index e2a48e384..000000000 --- a/packages/theme-ui/src/index.js +++ /dev/null @@ -1,32 +0,0 @@ -import { jsx } from '@theme-ui/core' - -export { - jsx, - Context, - merge, - useThemeUI, -} from '@theme-ui/core' -export { - useColorMode, - InitializeColorMode, -} from '@theme-ui/color-modes' -export { - Styled, - components, -} from '@theme-ui/mdx' -export { ThemeProvider } from '@theme-ui/theme-provider' -export * from '@theme-ui/components' -export { css, get } from '@theme-ui/css' - -// TODO: work this into root provider/global styles? -export const BaseStyles = props => - jsx('div', { - ...props, - sx: { - fontFamily: 'body', - lineHeight: 'body', - fontWeight: 'body', - variant: 'styles', - }, - }) - diff --git a/packages/theme-ui/src/index.ts b/packages/theme-ui/src/index.ts new file mode 100644 index 000000000..75195ac8a --- /dev/null +++ b/packages/theme-ui/src/index.ts @@ -0,0 +1,42 @@ +import { jsx } from '@theme-ui/core' + +export { + jsx, + Context, + merge, + useThemeUI, + ContextValue, + IntrinsicSxElements, + SxProps, + SxStyleProp, +} from '@theme-ui/core' +export { useColorMode, InitializeColorMode } from '@theme-ui/color-modes' +export { Styled, components } from '@theme-ui/mdx' +export { ThemeProvider } from '@theme-ui/theme-provider' +export * from '@theme-ui/components' +export { + css, + get, + ColorMode, + CSSObject, + CSSProperties, + CSSPseudoSelectorProps, + ResponsiveStyleValue, + SystemCssProperties, + SystemStyleObject, + Theme, + TLengthStyledSystem, + UseThemeFunction, +} from '@theme-ui/css' + +// TODO: work this into root provider/global styles? +export const BaseStyles = (props: Record) => + jsx('div', { + ...props, + sx: { + fontFamily: 'body', + lineHeight: 'body', + fontWeight: 'body', + variant: 'styles', + }, + }) diff --git a/packages/theme-ui/test/node.js b/packages/theme-ui/test/node.tsx similarity index 100% rename from packages/theme-ui/test/node.js rename to packages/theme-ui/test/node.tsx diff --git a/packages/theme-ui/tsconfig.json b/packages/theme-ui/tsconfig.json new file mode 100644 index 000000000..a21a73ec1 --- /dev/null +++ b/packages/theme-ui/tsconfig.json @@ -0,0 +1,8 @@ +{ + "extends": "../core/tsconfig.json", + "compilerOptions": { + "strict": true, + "noImplicitAny": false + }, + "include": ["./src/**/*.ts", "./src/**/*.tsx"] +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 000000000..37b7a82c7 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,8 @@ +{ + "compilerOptions": { + "resolveJsonModule": true, + "esModuleInterop": true, + "moduleResolution": "node", + "strict": true + } +} diff --git a/yarn.lock b/yarn.lock index 2ae0ddd2a..82e1ec4e8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1361,7 +1361,7 @@ dependencies: regenerator-runtime "^0.13.2" -"@babel/runtime@^7.0.0", "@babel/runtime@^7.1.2", "@babel/runtime@^7.4.2", "@babel/runtime@^7.4.4", "@babel/runtime@^7.4.5", "@babel/runtime@^7.5.5", "@babel/runtime@^7.6.2", "@babel/runtime@^7.6.3", "@babel/runtime@^7.7.2", "@babel/runtime@^7.7.4", "@babel/runtime@^7.7.6", "@babel/runtime@^7.7.7": +"@babel/runtime@^7.0.0", "@babel/runtime@^7.1.2", "@babel/runtime@^7.4.2", "@babel/runtime@^7.4.4", "@babel/runtime@^7.4.5", "@babel/runtime@^7.5.5", "@babel/runtime@^7.6.2", "@babel/runtime@^7.6.3", "@babel/runtime@^7.7.2", "@babel/runtime@^7.7.4", "@babel/runtime@^7.7.6", "@babel/runtime@^7.7.7", "@babel/runtime@^7.8.3": version "7.8.4" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.8.4.tgz#d79f5a2040f7caa24d53e563aad49cbc05581308" integrity sha512-neAp3zt80trRVBI1x0azq6c57aNBqYZH8KhMm3TaB7wEI5Q4A2SHfBHE8w9gOhI/lrqxtEbXZgQIrHP+wvSGwQ== @@ -1414,41 +1414,36 @@ resolved "https://registry.yarnpkg.com/@csstools/convert-colors/-/convert-colors-1.4.0.tgz#ad495dc41b12e75d588c6db8b9834f08fa131eb7" integrity sha512-5a6wqoJV/xEdbRNKVo6I4hO3VjyDq//8q2f9I6PBAvMesJHFauXDorcNCsr9RzvsZnaWi5NYCcfyqP1QeFHFbw== -"@emotion/cache@^10.0.17": - version "10.0.19" - resolved "https://registry.yarnpkg.com/@emotion/cache/-/cache-10.0.19.tgz#d258d94d9c707dcadaf1558def968b86bb87ad71" - integrity sha512-BoiLlk4vEsGBg2dAqGSJu0vJl/PgVtCYLBFJaEO8RmQzPugXewQCXZJNXTDFaRlfCs0W+quesayav4fvaif5WQ== +"@emotion/cache@^10.0.27": + version "10.0.27" + resolved "https://registry.yarnpkg.com/@emotion/cache/-/cache-10.0.27.tgz#7895db204e2c1a991ae33d51262a3a44f6737303" + integrity sha512-Zp8BEpbMunFsTcqAK4D7YTm3MvCp1SekflSLJH8lze2fCcSZ/yMkXHo8kb3t1/1Tdd3hAqf3Fb7z9VZ+FMiC9w== dependencies: - "@emotion/sheet" "0.9.3" - "@emotion/stylis" "0.8.4" - "@emotion/utils" "0.11.2" - "@emotion/weak-memoize" "0.2.4" + "@emotion/sheet" "0.9.4" + "@emotion/stylis" "0.8.5" + "@emotion/utils" "0.11.3" + "@emotion/weak-memoize" "0.2.5" "@emotion/core@^10.0.0", "@emotion/core@^10.0.10", "@emotion/core@^10.0.14", "@emotion/core@^10.0.15", "@emotion/core@^10.0.16", "@emotion/core@^10.0.17": - version "10.0.22" - resolved "https://registry.yarnpkg.com/@emotion/core/-/core-10.0.22.tgz#2ac7bcf9b99a1979ab5b0a876fbf37ab0688b177" - integrity sha512-7eoP6KQVUyOjAkE6y4fdlxbZRA4ILs7dqkkm6oZUJmihtHv0UBq98VgPirq9T8F9K2gKu0J/au/TpKryKMinaA== + version "10.0.28" + resolved "https://registry.yarnpkg.com/@emotion/core/-/core-10.0.28.tgz#bb65af7262a234593a9e952c041d0f1c9b9bef3d" + integrity sha512-pH8UueKYO5jgg0Iq+AmCLxBsvuGtvlmiDCOuv8fGNYn3cowFpLN98L8zO56U0H1PjDIyAlXymgL3Wu7u7v6hbA== dependencies: "@babel/runtime" "^7.5.5" - "@emotion/cache" "^10.0.17" - "@emotion/css" "^10.0.22" - "@emotion/serialize" "^0.11.12" - "@emotion/sheet" "0.9.3" - "@emotion/utils" "0.11.2" - -"@emotion/css@^10.0.22": - version "10.0.22" - resolved "https://registry.yarnpkg.com/@emotion/css/-/css-10.0.22.tgz#37b1abb6826759fe8ac0af0ac0034d27de6d1793" - integrity sha512-8phfa5mC/OadBTmGpMpwykIVH0gFCbUoO684LUkyixPq4F1Wwri7fK5Xlm8lURNBrd2TuvTbPUGxFsGxF9UacA== - dependencies: - "@emotion/serialize" "^0.11.12" - "@emotion/utils" "0.11.2" - babel-plugin-emotion "^10.0.22" - -"@emotion/hash@0.7.3": - version "0.7.3" - resolved "https://registry.yarnpkg.com/@emotion/hash/-/hash-0.7.3.tgz#a166882c81c0c6040975dd30df24fae8549bd96f" - integrity sha512-14ZVlsB9akwvydAdaEnVnvqu6J2P6ySv39hYyl/aoB6w/V+bXX0tay8cF6paqbgZsN2n5Xh15uF4pE+GvE+itw== + "@emotion/cache" "^10.0.27" + "@emotion/css" "^10.0.27" + "@emotion/serialize" "^0.11.15" + "@emotion/sheet" "0.9.4" + "@emotion/utils" "0.11.3" + +"@emotion/css@^10.0.27": + version "10.0.27" + resolved "https://registry.yarnpkg.com/@emotion/css/-/css-10.0.27.tgz#3a7458198fbbebb53b01b2b87f64e5e21241e14c" + integrity sha512-6wZjsvYeBhyZQYNrGoR5yPMYbMBNEnanDrqmsqS1mzDm1cOTu12shvl2j4QHNS36UaTE0USIJawCH9C8oW34Zw== + dependencies: + "@emotion/serialize" "^0.11.15" + "@emotion/utils" "0.11.3" + babel-plugin-emotion "^10.0.27" "@emotion/hash@0.7.4": version "0.7.4" @@ -1462,27 +1457,11 @@ dependencies: "@emotion/memoize" "0.7.4" -"@emotion/memoize@0.7.3": - version "0.7.3" - resolved "https://registry.yarnpkg.com/@emotion/memoize/-/memoize-0.7.3.tgz#5b6b1c11d6a6dddf1f2fc996f74cf3b219644d78" - integrity sha512-2Md9mH6mvo+ygq1trTeVp2uzAKwE2P7In0cRpD/M9Q70aH8L+rxMLbb3JCN2JoSWsV2O+DdFjfbbXoMoLBczow== - "@emotion/memoize@0.7.4", "@emotion/memoize@^0.7.1": version "0.7.4" resolved "https://registry.yarnpkg.com/@emotion/memoize/-/memoize-0.7.4.tgz#19bf0f5af19149111c40d98bb0cf82119f5d9eeb" integrity sha512-Ja/Vfqe3HpuzRsG1oBtWTHk2PGZ7GR+2Vz5iYGelAw8dx32K0y7PjVuxK6z1nMpZOqAFsRUPCkK1YjJ56qJlgw== -"@emotion/serialize@^0.11.12": - version "0.11.14" - resolved "https://registry.yarnpkg.com/@emotion/serialize/-/serialize-0.11.14.tgz#56a6d8d04d837cc5b0126788b2134c51353c6488" - integrity sha512-6hTsySIuQTbDbv00AnUO6O6Xafdwo5GswRlMZ5hHqiFx+4pZ7uGWXUQFW46Kc2taGhP89uXMXn/lWQkdyTosPA== - dependencies: - "@emotion/hash" "0.7.3" - "@emotion/memoize" "0.7.3" - "@emotion/unitless" "0.7.4" - "@emotion/utils" "0.11.2" - csstype "^2.5.7" - "@emotion/serialize@^0.11.15": version "0.11.15" resolved "https://registry.yarnpkg.com/@emotion/serialize/-/serialize-0.11.15.tgz#9a0f5873fb458d87d4f23e034413c12ed60a705a" @@ -1494,10 +1473,10 @@ "@emotion/utils" "0.11.3" csstype "^2.5.7" -"@emotion/sheet@0.9.3": - version "0.9.3" - resolved "https://registry.yarnpkg.com/@emotion/sheet/-/sheet-0.9.3.tgz#689f135ecf87d3c650ed0c4f5ddcbe579883564a" - integrity sha512-c3Q6V7Df7jfwSq5AzQWbXHa5soeE4F5cbqi40xn0CzXxWW9/6Mxq48WJEtqfWzbZtW9odZdnRAkwCQwN12ob4A== +"@emotion/sheet@0.9.4": + version "0.9.4" + resolved "https://registry.yarnpkg.com/@emotion/sheet/-/sheet-0.9.4.tgz#894374bea39ec30f489bbfc3438192b9774d32e5" + integrity sha512-zM9PFmgVSqBw4zL101Q0HrBVTGmpAxFZH/pYx/cjJT5advXguvcgjHFTCaIO3enL/xr89vK2bh0Mfyj9aa0ANA== "@emotion/styled-base@^10.0.27": version "10.0.27" @@ -1517,35 +1496,25 @@ "@emotion/styled-base" "^10.0.27" babel-plugin-emotion "^10.0.27" -"@emotion/stylis@0.8.4": - version "0.8.4" - resolved "https://registry.yarnpkg.com/@emotion/stylis/-/stylis-0.8.4.tgz#6c51afdf1dd0d73666ba09d2eb6c25c220d6fe4c" - integrity sha512-TLmkCVm8f8gH0oLv+HWKiu7e8xmBIaokhxcEKPh1m8pXiV/akCiq50FvYgOwY42rjejck8nsdQxZlXZ7pmyBUQ== - -"@emotion/unitless@0.7.4": - version "0.7.4" - resolved "https://registry.yarnpkg.com/@emotion/unitless/-/unitless-0.7.4.tgz#a87b4b04e5ae14a88d48ebef15015f6b7d1f5677" - integrity sha512-kBa+cDHOR9jpRJ+kcGMsysrls0leukrm68DmFQoMIWQcXdr2cZvyvypWuGYT7U+9kAExUE7+T7r6G3C3A6L8MQ== +"@emotion/stylis@0.8.5": + version "0.8.5" + resolved "https://registry.yarnpkg.com/@emotion/stylis/-/stylis-0.8.5.tgz#deacb389bd6ee77d1e7fcaccce9e16c5c7e78e04" + integrity sha512-h6KtPihKFn3T9fuIrwvXXUOwlx3rfUvfZIcP5a6rh8Y7zjE3O06hT5Ss4S/YI1AYhuZ1kjaE/5EaOOI2NqSylQ== "@emotion/unitless@0.7.5": version "0.7.5" resolved "https://registry.yarnpkg.com/@emotion/unitless/-/unitless-0.7.5.tgz#77211291c1900a700b8a78cfafda3160d76949ed" integrity sha512-OWORNpfjMsSSUBVrRBVGECkhWcULOAJz9ZW8uK9qgxD+87M7jHRcvh/A96XXNhXTLmKcoYSQtBEX7lHMO7YRwg== -"@emotion/utils@0.11.2": - version "0.11.2" - resolved "https://registry.yarnpkg.com/@emotion/utils/-/utils-0.11.2.tgz#713056bfdffb396b0a14f1c8f18e7b4d0d200183" - integrity sha512-UHX2XklLl3sIaP6oiMmlVzT0J+2ATTVpf0dHQVyPJHTkOITvXfaSqnRk6mdDhV9pR8T/tHc3cex78IKXssmzrA== - "@emotion/utils@0.11.3": version "0.11.3" resolved "https://registry.yarnpkg.com/@emotion/utils/-/utils-0.11.3.tgz#a759863867befa7e583400d322652a3f44820924" integrity sha512-0o4l6pZC+hI88+bzuaX/6BgOvQVhbt2PfmxauVaYOGgbsAw14wdKyvMCZXnsnsHys94iadcF+RG/wZyx6+ZZBw== -"@emotion/weak-memoize@0.2.4": - version "0.2.4" - resolved "https://registry.yarnpkg.com/@emotion/weak-memoize/-/weak-memoize-0.2.4.tgz#622a72bebd1e3f48d921563b4b60a762295a81fc" - integrity sha512-6PYY5DVdAY1ifaQW6XYTnOMihmBVT27elqSjEoodchsGjzYlEsTQMcEhSud99kVawatyTZRTiVkJ/c6lwbQ7nA== +"@emotion/weak-memoize@0.2.5": + version "0.2.5" + resolved "https://registry.yarnpkg.com/@emotion/weak-memoize/-/weak-memoize-0.2.5.tgz#8eed982e2ee6f7f4e44c253e12962980791efd46" + integrity sha512-6U71C2Wp7r5XtFtQzYrW5iKFT67OixrSxjI4MptCHzdSVlgabczzqLe0ZSgnub/5Kp4hSbpDB1tMytZY9pwxxA== "@evocateur/libnpmaccess@^3.1.2": version "3.1.2" @@ -3327,11 +3296,11 @@ wait-for-expect "^3.0.0" "@testing-library/react@^9.1.3": - version "9.4.0" - resolved "https://registry.yarnpkg.com/@testing-library/react/-/react-9.4.0.tgz#b021ac8cb987c8dc54c6841875f745bf9b2e88e5" - integrity sha512-XdhDWkI4GktUPsz0AYyeQ8M9qS/JFie06kcSnUVcpgOwFjAu9vhwR83qBl+lw9yZWkbECjL8Hd+n5hH6C0oWqg== + version "9.4.1" + resolved "https://registry.yarnpkg.com/@testing-library/react/-/react-9.4.1.tgz#955771568aa3216107d307bfdf470bf2394308a0" + integrity sha512-sta3ui24HPgW92quHyQj6gpOkNgLNx8BX/QOU4k1bddo43ZdqlGwmzCYwL93bExfhergwiau+IzBGl7TCsSFeA== dependencies: - "@babel/runtime" "^7.7.6" + "@babel/runtime" "^7.8.3" "@testing-library/dom" "^6.11.0" "@types/testing-library__react" "^9.1.2" @@ -3590,6 +3559,20 @@ resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-1.0.1.tgz#0a851d3bd96498fa25c33ab7278ed3bd65f06c3e" integrity sha512-l42BggppR6zLmpfU6fq9HEa2oGPEI8yrSPL3GITjfRInppYFahObbIQOQK3UGxEnyQpltZLaPe75046NOZQikw== +"@types/styled-system@*": + version "5.1.7" + resolved "https://registry.yarnpkg.com/@types/styled-system/-/styled-system-5.1.7.tgz#b5aeb6efea499103a497da762516cdf38efd9e02" + integrity sha512-0zMxF/B5Z4T6ZhCP8CKtxe8wBmH7sqDjK3lOMByNQ6gG/Qf6RDnBp1aZwkReS1uDVhrsPx9J+IbLigpAdYBkrQ== + dependencies: + csstype "^2.6.9" + +"@types/styled-system__css@*": + version "5.0.5" + resolved "https://registry.yarnpkg.com/@types/styled-system__css/-/styled-system__css-5.0.5.tgz#f3c8036e551fbf603f1ad39cf317fd0e6ad1e431" + integrity sha512-JaKYusiRtP3osDx+PhTPP7Ki68mMKoImv/bhr7lK4UFAxeXvveARD5v5rUY0Oy0pfbNkky/nVgHlgGaPbG/JBQ== + dependencies: + csstype "^2.6.6" + "@types/testing-library__dom@*", "@types/testing-library__dom@^6.0.0": version "6.10.0" resolved "https://registry.yarnpkg.com/@types/testing-library__dom/-/testing-library__dom-6.10.0.tgz#590d76e3875a7c536dc744eb530cbf51b6483404" @@ -3605,6 +3588,29 @@ "@types/react-dom" "*" "@types/testing-library__dom" "*" +"@types/theme-ui@*": + version "0.3.0" + resolved "https://registry.yarnpkg.com/@types/theme-ui/-/theme-ui-0.3.0.tgz#5a8972b1e6060a4699885ea6c91f9d17a957661a" + integrity sha512-3PJw/As8C1HeLJXZytGf5Gfz7HBKskbtyOabPsHSNRTr+jLZvIWpFKF9hgDWYp7io35UcLDS5TLcFwiCGGxAzg== + dependencies: + "@emotion/serialize" "^0.11.15" + "@types/react" "*" + "@types/styled-system" "*" + "@types/styled-system__css" "*" + "@types/theme-ui__components" "*" + csstype "^2.6.6" + +"@types/theme-ui__components@*", "@types/theme-ui__components@^0.2.3": + version "0.2.3" + resolved "https://registry.yarnpkg.com/@types/theme-ui__components/-/theme-ui__components-0.2.3.tgz#470c286375f5177d2607f34da4b38c315e66907c" + integrity sha512-g0q3IpJxDXPQvWhaVSXJroB74dxD6HAHAfCbb3unV7iaoovrLact1Yxan5cDRMqHf8d7ub3JAvpSmGSdlNJ5OQ== + dependencies: + "@emotion/core" "^10.0.0" + "@emotion/styled" "^10.0.0" + "@types/react" "*" + "@types/styled-system" "*" + "@types/theme-ui" "*" + "@types/tmp@^0.0.32": version "0.0.32" resolved "https://registry.yarnpkg.com/@types/tmp/-/tmp-0.0.32.tgz#0d3cb31022f8427ea58c008af32b80da126ca4e3" @@ -4852,7 +4858,7 @@ babel-plugin-dynamic-import-node@2.3.0, babel-plugin-dynamic-import-node@^2.3.0: dependencies: object.assign "^4.1.0" -babel-plugin-emotion@^10.0.22, babel-plugin-emotion@^10.0.27: +babel-plugin-emotion@^10.0.27: version "10.0.27" resolved "https://registry.yarnpkg.com/babel-plugin-emotion/-/babel-plugin-emotion-10.0.27.tgz#59001cf5de847c1d61f2079cd906a90a00d3184f" integrity sha512-SUNYcT4FqhOqvwv0z1oeYhqgheU8qrceLojuHyX17ngo7WtWqN5I9l3IGHzf21Xraj465CVzF4IvOlAF+3ed0A== @@ -8220,6 +8226,11 @@ csstype@^2.2.0, csstype@^2.5.7: resolved "https://registry.yarnpkg.com/csstype/-/csstype-2.6.7.tgz#20b0024c20b6718f4eda3853a1f5a1cce7f5e4a5" integrity sha512-9Mcn9sFbGBAdmimWb2gLVDtFJzeKtDGIr76TUqmjZrw9LFXBMSU70lcs+C0/7fyCd6iBDqmksUcCOUIkisPHsQ== +csstype@^2.6.6, csstype@^2.6.9: + version "2.6.9" + resolved "https://registry.yarnpkg.com/csstype/-/csstype-2.6.9.tgz#05141d0cd557a56b8891394c1911c40c8a98d098" + integrity sha512-xz39Sb4+OaTsULgUERcCk+TJj8ylkL4aSVDQiX/ksxbELSqwkgt4d4RD7fovIdgJGSuNYqwZEiVjYY5l0ask+Q== + currently-unhandled@^0.4.1: version "0.4.1" resolved "https://registry.yarnpkg.com/currently-unhandled/-/currently-unhandled-0.4.1.tgz#988df33feab191ef799a61369dd76c17adf957ea" @@ -10846,9 +10857,9 @@ gatsby-plugin-google-fonts@^1.0.0: integrity sha512-p1NVkn27GUnDA5qHM+Z4cCcLCJIardzZXMon3640sT4xuL/AZJbsx3HEt2KY/5oZu0UXIkytkxzV2Da4rQeUIg== gatsby-plugin-mdx@^1.0.4, gatsby-plugin-mdx@^1.0.70: - version "1.0.70" - resolved "https://registry.yarnpkg.com/gatsby-plugin-mdx/-/gatsby-plugin-mdx-1.0.70.tgz#97613bf6888a74b425d1a8e8b6cb21250c50bc07" - integrity sha512-nHZHcZgrO17KpcwjKJs1E9DaAyg0Qy4hCugTIuOAGKNZfYKNfwf5n5LZoxK5/VUXpFqM/Zfm3ubKVmXFGw5ZPw== + version "1.0.73" + resolved "https://registry.yarnpkg.com/gatsby-plugin-mdx/-/gatsby-plugin-mdx-1.0.73.tgz#cd9187e362ffae559c111ca6ce931c35276d8aa5" + integrity sha512-QEYlDV9o25NNbP0C86G3z+E2yrzb3kWEMqD51u85sRUdIMpMeYto2ZkPzTBDinmkUa4/vQYuoL9th69bukNtEg== dependencies: "@babel/core" "^7.7.5" "@babel/generator" "^7.7.4" @@ -10972,9 +10983,9 @@ gatsby-remark-images@^3.1.44: unist-util-visit-parents "^2.1.2" gatsby-remark-prismjs@^3.2.9: - version "3.3.30" - resolved "https://registry.yarnpkg.com/gatsby-remark-prismjs/-/gatsby-remark-prismjs-3.3.30.tgz#990203b5d174af9a609e32019a3b62cd5dc16332" - integrity sha512-DFcFAcvYHmx9FM5P/CRkCbQH4nSPmZ9DRaocAUxH7ZJtF2nMGYp1suYa8BEJKmM/EwvFxLdGoRoN+5FzO56qZQ== + version "3.3.31" + resolved "https://registry.yarnpkg.com/gatsby-remark-prismjs/-/gatsby-remark-prismjs-3.3.31.tgz#b5df868642dc78e3d38576d7e9f6eab23d2b6a80" + integrity sha512-n6tczCq/w5LazZ5yk9UXu/6YjyLR7p1rQbBxqgkOL1xEFRmQcK5BwFhcpmCh5OKiqWBvqLDJq561UIFL0jcI/A== dependencies: "@babel/runtime" "^7.7.6" parse-numeric-range "^0.0.2" @@ -12394,9 +12405,9 @@ humanize-ms@^1.2.1: ms "^2.0.0" husky@>=4.0.7: - version "4.2.1" - resolved "https://registry.yarnpkg.com/husky/-/husky-4.2.1.tgz#b09f1bd9129e6c323cc515dc17081d0615e2d7c1" - integrity sha512-Qa0lRreeIf4Tl92sSs42ER6qc3hzoyQPPorzOrFWfPEVbdi6LuvJEqWKPk905fOWIR76iBpp7ECZNIwk+a8xuQ== + version "4.2.3" + resolved "https://registry.yarnpkg.com/husky/-/husky-4.2.3.tgz#3b18d2ee5febe99e27f2983500202daffbc3151e" + integrity sha512-VxTsSTRwYveKXN4SaH1/FefRJYCtx+wx04sSVcOpD7N2zjoHxa+cEJ07Qg5NmV3HAK+IRKOyNVpi2YBIVccIfQ== dependencies: chalk "^3.0.0" ci-info "^2.0.0" @@ -17849,9 +17860,9 @@ pnp-webpack-plugin@1.5.0, pnp-webpack-plugin@^1.5.0: ts-pnp "^1.1.2" polished@^3.4.1: - version "3.4.2" - resolved "https://registry.yarnpkg.com/polished/-/polished-3.4.2.tgz#b4780dad81d64df55615fbfc77acb52fd17d88cd" - integrity sha512-9Rch6iMZckABr6EFCLPZsxodeBpXMo9H4fRlfR/9VjMEyy5xpo1/WgXlJGgSjPyVhEZNycbW7UmYMNyWS5MI0g== + version "3.4.4" + resolved "https://registry.yarnpkg.com/polished/-/polished-3.4.4.tgz#ac8cd6e704887398f3b802718f9d389b9ea4307b" + integrity sha512-x9PKeExyI9AhWrJP3Q57I1k7GInujjiVBJMPFmycj9hX1yCOo/X9eu9eZwxgOziiXge3WbFQ5XOmkzunOntBSA== dependencies: "@babel/runtime" "^7.6.3"