Skip to content

Commit

Permalink
feat(@fluent-ui/core): Change directory structure
Browse files Browse the repository at this point in the history
  • Loading branch information
xinyao27 committed Jul 3, 2019
1 parent 3d5fe0c commit 67e69b2
Show file tree
Hide file tree
Showing 32 changed files with 21 additions and 21 deletions.
Expand Up @@ -7,7 +7,7 @@ import {
HTMLAttributes
} from 'react'
import styled, { Box as Base } from '@xstyled/styled-components'
import { omit } from '../../utils'
import { omit } from '../utils'
import { StylesProps } from './style'

export interface BoxProps
Expand Down
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react'
import * as renderer from 'react-test-renderer'
import 'jest-styled-components'

import { ThemeProvider, Box } from '../../..'
import { ThemeProvider, Box } from '../..'

describe('Box', (): void => {
const theme = {}
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Expand Up @@ -2,8 +2,8 @@ import * as React from 'react'
import * as renderer from 'react-test-renderer'
import 'jest-styled-components'

import { ThemeProvider, Button } from '../../..'
import { findAllByType } from '../../../utils'
import { ThemeProvider, Button } from '../..'
import { findAllByType } from '../../utils'

describe('Button', (): void => {
const theme = {}
Expand Down
File renamed without changes.
Expand Up @@ -15,12 +15,12 @@ import Secondary from './Secondary'
import Content from './Content'
import Box from '../Box'
import CommandButton from '../CommandButton'
import { omit } from '../../utils'
import { omit } from '../utils'
import { BoxProps } from '../Box/Box'
import { ThemeProps } from '../../theme'
import { usePortal } from '../../hooks/usePortal'
import { useOnClickOutside } from '../../hooks/useOnClickOutside'
import { useReveal } from '../../hooks/useReveal'
import { ThemeProps } from '../theme'
import { usePortal } from '../hooks/usePortal'
import { useOnClickOutside } from '../hooks/useOnClickOutside'
import { useReveal } from '../hooks/useReveal'

type Child =
| ReactComponentElement<typeof CommandButton>
Expand Down
File renamed without changes.
File renamed without changes.
Expand Up @@ -2,8 +2,8 @@ import * as React from 'react'
import * as renderer from 'react-test-renderer'
import 'jest-styled-components'

import { ThemeProvider, CommandButton } from '../../..'
import { findAllByType } from '../../../utils'
import { ThemeProvider, CommandButton } from '../..'
import { findAllByType } from '../../utils'

describe('CommandButton', (): void => {
const theme = {}
Expand Down
File renamed without changes.
Expand Up @@ -9,7 +9,7 @@ import {
} from 'react'
import Item, { ID } from './Item'
import { BoxProps } from '../Box/Box'
import { ThemeProps } from '../../theme'
import { ThemeProps } from '../theme'
import Header from './Header'
import Footer from './Footer'
import Content from './Content'
Expand All @@ -19,7 +19,7 @@ import {
StyledContent,
StyledContainer
} from './Navigation.styled'
import { useReveal } from '../../hooks/useReveal'
import { useReveal } from '../hooks/useReveal'
import * as CSS from 'csstype'

interface NavigationProps extends Omit<BoxProps, 'onChange'>, ThemeProps {
Expand Down
File renamed without changes.
@@ -1,8 +1,8 @@
import * as React from 'react'
import { FC, ReactElement, ReactNode } from 'react'
import { ThemeProvider as BaseProvider } from '@xstyled/styled-components'
import defaultTheme, { Theme } from '../../theme'
import { deepMerge } from '../../utils'
import defaultTheme, { Theme } from '../theme'
import { deepMerge } from '../utils'
import Normalize from './normalize'

interface ThemeProviderProps {
Expand Down
12 changes: 6 additions & 6 deletions packages/fluent-ui/src/index.ts
@@ -1,8 +1,8 @@
export { default as Box } from './components/Box'
export { default as Button } from './components/Button'
export { default as Command } from './components/Command'
export { default as CommandButton } from './components/CommandButton'
export { default as Navigation } from './components/Navigation'
export { default as Box } from './Box'
export { default as Button } from './Button'
export { default as Command } from './Command'
export { default as CommandButton } from './CommandButton'
export { default as Navigation } from './Navigation'

export { default as ThemeProvider } from './components/ThemeProvider'
export { default as ThemeProvider } from './ThemeProvider'
export { default as theme, Theme } from './theme'

0 comments on commit 67e69b2

Please sign in to comment.