mirror of
https://github.com/zhigang1992/react.git
synced 2026-04-28 12:15:32 +08:00
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:
@@ -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 {
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user