From f594a9b2307902bc86a19d5e9dffe54ce3e2c198 Mon Sep 17 00:00:00 2001 From: Thomas Osmonson Date: Tue, 4 Aug 2020 10:25:22 -0500 Subject: [PATCH] fix: css types --- package.json | 2 +- src/common/utils/index.ts | 4 ++-- yarn.lock | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 67ea1a09..0de8de40 100755 --- a/package.json +++ b/package.json @@ -11,7 +11,6 @@ "@next/mdx": "^9.4.4", "@reach/accordion": "^0.10.5", "@reach/tooltip": "^0.10.5", - "@styled-system/css": "^5.1.5", "@styled-system/theme-get": "^5.1.2", "@types/mdx-js__react": "^1.5.2", "@types/node": "^14.0.27", @@ -22,6 +21,7 @@ "cache-manager": "^3.3.0", "cache-manager-fs-hash": "^0.0.9", "capsize": "^1.1.0", + "csstype": "^3.0.2", "csvtojson": "^2.0.10", "docsearch.js": "^2.6.3", "fathom-client": "^3.0.0", diff --git a/src/common/utils/index.ts b/src/common/utils/index.ts index de5dd488..13124e68 100644 --- a/src/common/utils/index.ts +++ b/src/common/utils/index.ts @@ -1,5 +1,5 @@ import { Children, isValidElement, ReactNode, ReactElement, ReactText } from 'react'; -import { BorderStyleProperty } from 'csstype'; +import { Property } from 'csstype'; import { color } from '@blockstack/ui'; import { ColorsStringLiteral } from '@blockstack/ui'; @@ -20,7 +20,7 @@ export const slugify = (string: string): string => export const border = ( width = 1, - style: BorderStyleProperty = 'solid', + style: Property.BorderStyle = 'solid', _color: ColorsStringLiteral = 'border' ): string => `${width}px ${style} ${color(_color)}`; diff --git a/yarn.lock b/yarn.lock index e0061317..f2c38e44 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9618,9 +9618,9 @@ vm-browserify@^1.0.1: resolved "https://registry.yarnpkg.com/vm-browserify/-/vm-browserify-1.1.2.tgz#78641c488b8e6ca91a75f511e7a3b32a86e5dda0" integrity sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ== -"vscode-textmate@git+https://github.com/octref/vscode-textmate.git": +"vscode-textmate@https://github.com/octref/vscode-textmate": version "4.0.1" - resolved "git+https://github.com/octref/vscode-textmate.git#e65aabe2227febda7beaad31dd0fca1228c5ddf3" + resolved "https://github.com/octref/vscode-textmate#e65aabe2227febda7beaad31dd0fca1228c5ddf3" w3c-hr-time@^1.0.2: version "1.0.2"