style: restrict type import (#1589)

This commit is contained in:
Himself65
2023-03-15 11:58:43 -05:00
committed by GitHub
parent 6ab2f83e13
commit efcf1fcaa0
154 changed files with 332 additions and 307 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ import {
import type { PropsWithChildren } from 'react';
import { useMemo } from 'react';
import { AffineTheme } from './types';
import type { AffineTheme } from './types';
export { css, keyframes, styled };
+1 -1
View File
@@ -2,7 +2,7 @@ import '@emotion/react';
import type { EditorContainer } from '@blocksuite/editor';
import { AffineTheme, AffineThemeCSSVariables } from './types';
import type { AffineTheme, AffineThemeCSSVariables } from './types';
const basicFontFamily =
'apple-system, BlinkMacSystemFont,Helvetica Neue, Tahoma, PingFang SC, Microsoft Yahei, Arial,Hiragino Sans GB, sans-serif, Apple Color Emoji, Segoe UI Emoji,Segoe UI Symbol, Noto Color Emoji';
+2 -2
View File
@@ -1,5 +1,5 @@
import { EditorContainer } from '@blocksuite/editor';
import { CSSProperties } from 'react';
import type { EditorContainer } from '@blocksuite/editor';
import type { CSSProperties } from 'react';
export type Theme = 'light' | 'dark';
export type ThemeMode = Theme | 'auto';
@@ -1,4 +1,4 @@
import { ThemeMode } from '../types';
import type { ThemeMode } from '../types';
export class LocalStorageThemeHelper {
name = 'Affine-theme-mode';
@@ -1,4 +1,4 @@
import { Theme } from '../types';
import type { Theme } from '../types';
export class SystemThemeHelper {
media: MediaQueryList = window.matchMedia('(prefers-color-scheme: light)');