From faa7d010d613b6f35f6639b92e413fbe15b0084f Mon Sep 17 00:00:00 2001 From: hasparus Date: Mon, 17 Aug 2020 07:32:56 +0200 Subject: [PATCH] fix: reexport types by name --- packages/core/package.json | 2 +- packages/core/src/index.ts | 22 +++++++++++++++++++++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/packages/core/package.json b/packages/core/package.json index edf95c8c3..8020eb2d0 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@theme-ui/core", - "version": "0.4.0-rc.3", + "version": "0.4.0-rc.4", "source": "src/index.ts", "main": "dist/index.js", "module": "dist/index.esm.js", diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index f60fdd319..ee06df93d 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -10,7 +10,27 @@ import { version as __EMOTION_VERSION__ } from '@emotion/core/package.json' import './react-jsx' -export * from '@theme-ui/css/dist/types' +export type { + CSSObject, + CSSOthersObject, + CSSProperties, + CSSPseudoSelectorProps, + ColorMode, + ColorModesScale, + Label, + ResponsiveStyleValue, + Scale, + StylePropertyValue, + TLengthStyledSystem, + Theme, + ThemeDerivedStyles, + ThemeStyles, + ThemeUICSSObject, + ThemeUICSSProperties, + ThemeUIExtendedCSSProperties, + ThemeUIStyleObject, + VariantProperty, +} from '@theme-ui/css' export * from './types' const getCSS = (props) => {