Skip to content

Commit

Permalink
Correct exports
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusps committed Jun 15, 2019
1 parent 53db871 commit ee46c64
Show file tree
Hide file tree
Showing 11 changed files with 30 additions and 71 deletions.
20 changes: 0 additions & 20 deletions src/components/AppBar/Title.tsx

This file was deleted.

27 changes: 0 additions & 27 deletions src/components/AppBar/index.tsx

This file was deleted.

19 changes: 19 additions & 0 deletions src/components/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import Button from './Button'
import Flexible from './Flexible'
import Loader from './Loader'
import Surface from './Surface'
import { Tab, Tabs } from './Tabs'
import { Heading, Paragraph } from './Text'
import DarksideTheme from './Theme'

export {
Button,
Flexible,
Loader,
Surface,
Tab,
Tabs,
Heading,
Paragraph,
DarksideTheme,
}
16 changes: 0 additions & 16 deletions src/docs/AppBar.mdx

This file was deleted.

3 changes: 1 addition & 2 deletions src/docs/Button.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
---

import { Playground } from 'docz'
import Button from '../components/Button'
import Surface from '../components/Surface'
import { Button, Surface } from '../index'

# Button

Expand Down
2 changes: 1 addition & 1 deletion src/docs/Loader.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
---

import { Playground } from 'docz'
import Loader from '../components/Loader'
import { Loader } from '../index'

# Loader

Expand Down
2 changes: 1 addition & 1 deletion src/docs/Surface.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
---

import { Playground, Props } from 'docz'
import Surface from '../components/Surface'
import { Surface } from '../index'

# Surface

Expand Down
4 changes: 1 addition & 3 deletions src/docs/Tabs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@

import { Playground } from 'docz'

import { Tabs, Tab } from '../components/Tabs'
import useTabState from '../hooks/useTabState'
import { Heading } from '../components/Text'
import { Tabs, Tab, Heading, useTabState } from '../index'

# Button

Expand Down
2 changes: 1 addition & 1 deletion src/docs/Text.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
---

import { Playground } from 'docz'
import { Paragraph, Heading } from '../components/Text'
import { Paragraph, Heading } from '../index'

# Text

Expand Down
4 changes: 4 additions & 0 deletions src/hooks/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import useTabState from './useTabState'
import useTheme from './useTheme'

export { useTabState, useTheme }
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './components'
export * from './hooks'

0 comments on commit ee46c64

Please sign in to comment.