feat: export all types related to components (#562)

* feat: export all types related to components

fix(tooltip): fix the vertical offset of the arrow

* refactor: optimize events of all popup related components

* test: append testcases for popup base component

* test: add testcase for visible events

* test: update snapshots
This commit is contained in:
witt
2021-06-23 23:05:59 +08:00
committed by GitHub
parent d4a1e02430
commit e8a7a17d56
117 changed files with 1062 additions and 586 deletions

View File

@@ -1,7 +1,8 @@
import React, { useMemo } from 'react'
import { useTheme, GeistUIThemesPalette, Popover, Themes } from 'components'
import { useTheme, Popover, Themes } from 'components'
import { ColorResult, TwitterPicker } from 'react-color'
import { useConfigs } from 'lib/config-context'
import { GeistUIThemesPalette } from 'components/themes'
const DefaultTheme = Themes.getPresetStaticTheme()
interface Props {

View File

@@ -1,16 +1,13 @@
import React from 'react'
import {
Text,
Button,
useTheme,
Themes,
GeistUIThemesPalette,
GeistUIThemesExpressiveness,
GeistUIThemesLayout,
} from 'components'
import { Text, Button, useTheme, Themes } from 'components'
import EditorColorItem from './editor-color-item'
import EditorInputItem from './editor-input-item'
import { useConfigs } from 'lib/config-context'
import {
GeistUIThemesExpressiveness,
GeistUIThemesLayout,
GeistUIThemesPalette,
} from 'components/themes'
const basicColors: Array<keyof GeistUIThemesPalette> = [
'accents_1',