feat(utils): export utils hooks

This commit is contained in:
unix
2020-04-25 20:06:40 +08:00
parent 909ff46f4a
commit cdbff2d4bf
2 changed files with 22 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
/// <reference types="styled-jsx" />
export * from './styles/themes'
export { default as Utils } from './utils/index'
export { default as useTheme } from './styles/use-theme'
export { default as ZEITUIProvider } from './providers/zeit-ui-provider'
export { default as useToasts } from './toast'

View File

@@ -0,0 +1,21 @@
import { default as useBodyScroll } from './use-body-scroll'
import { default as useClickAnywhere } from './use-click-anywhere'
import { default as useClickAway } from './use-click-away'
import { default as useClipboard } from './use-clipboard'
import { default as useCurrentState } from './use-current-state'
import { default as useRealShape } from './use-real-shape'
import { default as useResize } from './use-resize'
import { default as useSSR } from './use-ssr'
import { default as withDefaults } from './with-defaults'
export default {
withDefaults,
useBodyScroll,
useClickAnywhere,
useClickAway,
useClipboard,
useCurrentState,
useRealShape,
useResize,
useSSR,
}