Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch from a monorepo to a single package #125

Merged
merged 22 commits into from
Feb 6, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update exports and flatten components folders
  • Loading branch information
Rowno committed Feb 3, 2018
commit 6b412ae21ebc55a49c6ff24f577ea95b0610d920
File renamed without changes.
5 changes: 1 addition & 4 deletions src/alert/src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
import Alert from './components/Alert'

export default Alert
export { Alert }
export Alert from './Alert'
7 changes: 2 additions & 5 deletions src/autocomplete/src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
import Autocomplete from './components/Autocomplete'
import AutocompleteItem from './components/AutocompleteItem'

export default Autocomplete
export { Autocomplete, AutocompleteItem }
export Autocomplete from './Autocomplete'
export AutocompleteItem from './AutocompleteItem'
File renamed without changes.
6 changes: 1 addition & 5 deletions src/avatar/src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
import Avatar from './components/Avatar'
import getInitials from './utils/getInitials'

export default Avatar
export { Avatar, getInitials }
export Avatar from './Avatar'
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions src/badges/src/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export { FillAppearances as BadgeAppearances } from 'evergreen-shared-styles'
export { default as Badge } from './components/Badge'
export { default as Pill } from './components/Pill'
export Badge from './Badge'
export { FillAppearances as BadgeAppearances } from '../../'
export Pill from './Pill'
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 4 additions & 9 deletions src/buttons/src/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
import Button from './components/Button'

export { default as BackButton } from './components/BackButton'
export { default as IconButton } from './components/IconButton'

export { default as ButtonAppearances } from './styles/ButtonAppearances'

export default Button
export { Button }
export BackButton from './BackButton'
export Button from './Button'
export ButtonAppearances from './styles/ButtonAppearances'
export IconButton from './IconButton'
File renamed without changes.
5 changes: 1 addition & 4 deletions src/checkbox/src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
import Checkbox from './components/Checkbox'

export default Checkbox
export { Checkbox }
export Checkbox from './Checkbox'
2 changes: 0 additions & 2 deletions src/color-utils/src/index.js

This file was deleted.

25 changes: 0 additions & 25 deletions src/color-utils/src/utils/FillAppearances.js

This file was deleted.

1 change: 1 addition & 0 deletions src/colors/src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export colors from './colors'
File renamed without changes.
5 changes: 1 addition & 4 deletions src/combobox/src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
import Combobox from './components/Combobox'

export default Combobox
export { Combobox }
export Combobox from './Combobox'
5 changes: 1 addition & 4 deletions src/corner-dialog/src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
import CornerDialog from './components/CornerDialog'

export default CornerDialog
export { CornerDialog }
export CornerDialog from './CornerDialog'
File renamed without changes.
5 changes: 1 addition & 4 deletions src/dialog/src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
import Dialog from './components/Dialog'

export default Dialog
export { Dialog }
export Dialog from './Dialog'
5 changes: 1 addition & 4 deletions src/file-picker/src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
import FilePicker, { CLASS_PREFIX } from './components/FilePicker'

export default FilePicker
export { FilePicker, CLASS_PREFIX }
export FilePicker from './FilePicker'
16 changes: 4 additions & 12 deletions src/form-field/src/index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
import FormField from './components/FormField'
import FormFieldDescription from './components/FormFieldDescription'
import FormFieldLabel from './components/FormFieldLabel'
import FormFieldValidationMessage from './components/FormFieldValidationMessage'

export default FormField
export {
FormField,
FormFieldDescription,
FormFieldLabel,
FormFieldValidationMessage
}
export FormField from './FormField'
export FormFieldDescription from './FormFieldDescription'
export FormFieldLabel from './FormFieldLabel'
export FormFieldValidationMessage from './FormFieldValidationMessage'
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
53 changes: 26 additions & 27 deletions src/icons/src/index.js
Original file line number Diff line number Diff line change
@@ -1,42 +1,41 @@
import TriangleIcon from './components/TriangleIcon'
import CloseIcon from './components/CloseIcon'
import CogIcon from './components/CogIcon'
import ArrowIcon from './components/ArrowIcon'
import SearchIcon from './components/SearchIcon'
import CheckCircleIcon from './components/CheckCircleIcon'
import WarningIcon from './components/WarningIcon'
import DangerIcon from './components/DangerIcon'
import QuestionIcon from './components/QuestionIcon'
import AddIcon from './components/AddIcon'
import Icon from './components/Icon'
import AddIcon from './AddIcon'
import ArrowIcon from './ArrowIcon'
import CheckCircleIcon from './CheckCircleIcon'
import CloseIcon from './CloseIcon'
import CogIcon from './CogIcon'
import DangerIcon from './DangerIcon'
import QuestionIcon from './QuestionIcon'
import SearchIcon from './SearchIcon'
import TriangleIcon from './TriangleIcon'
import WarningIcon from './WarningIcon'

export { default as IconAim } from './styles/IconAim'
export { default as IconColors } from './styles/IconColors'
export Icon from './Icon'
export IconAim from './styles/IconAim'
export IconColors from './styles/IconColors'

// Icon map, useful for icon buttons
const IconMap = {
triangle: TriangleIcon,
close: CloseIcon,
cog: CogIcon,
export const IconMap = {
add: AddIcon,
arrow: ArrowIcon,
search: SearchIcon,
checkCircle: CheckCircleIcon,
warning: WarningIcon,
close: CloseIcon,
cog: CogIcon,
danger: DangerIcon,
question: QuestionIcon,
add: AddIcon
search: SearchIcon,
triangle: TriangleIcon,
warning: WarningIcon
}

export {
IconMap,
TriangleIcon,
CloseIcon,
CogIcon,
AddIcon,
ArrowIcon,
SearchIcon,
CheckCircleIcon,
WarningIcon,
CloseIcon,
CogIcon,
DangerIcon,
QuestionIcon,
Icon
SearchIcon,
TriangleIcon,
WarningIcon
}
File renamed without changes.
5 changes: 1 addition & 4 deletions src/image/src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
import Image from './components/Image'

export default Image
export { Image }
export Image from './Image'
121 changes: 121 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
export { Alert } from './alert/src'
export { Autocomplete, AutocompleteItem } from './autocomplete/src'
export { Avatar } from './avatar/src'
export { BadgeAppearances, Badge, Pill } from './badges/src'
export {
BackButton,
Button,
ButtonAppearances,
IconButton
} from './buttons/src'
export { Checkbox } from './checkbox/src'
export { colors } from './colors/src'
export { Combobox } from './combobox/src'
export { CornerDialog } from './corner-dialog/src'
export { Dialog } from './dialog/src'
export { FilePicker } from './file-picker/src'
export {
FormField,
FormFieldDescription,
FormFieldLabel,
FormFieldValidationMessage
} from './form-field/src'
export {
Icon,
IconAim,
IconColors,
IconMap,
AddIcon,
ArrowIcon,
CheckCircleIcon,
CloseIcon,
CogIcon,
DangerIcon,
QuestionIcon,
SearchIcon,
TriangleIcon,
WarningIcon
} from './icons/src'
export { Image } from './image/src'
export {
Pane,
Card,
ElevationStyles,
BorderColors,
LayerAppearances
} from './layers/src'
export { Overlay } from './overlay/src'
export { Popover } from './popover/src'
export { Portal } from './portal/src'
export { Positioner } from './positioner/src'
export { Radio, RadioGroup } from './radio/src'
export { SearchInput } from './search-input/src'
export {
SegmentedControl,
SegmentedControlAppearances
} from './segmented-control/src'
export { Select, SelectAppearances } from './select/src'
export {
OptionShapePropType,
OptionsList,
SelectedPropType,
SelectMenu,
SelectMenuContent
} from './select-menu/src'
export {
CheckboxAppearances,
controlBaseStyle,
FillAppearances,
InputAppearances,
selectableRowStyle,
selectableTabStyle,
getBorderRadiusForControlHeight,
getBorderRadiusForTextSize,
getIconSizeForControlHeight,
getTextSizeForControlHeight,
getTextStyleForControlHeight
} from './shared-styles/src'
export { SideSheet } from './side-sheet/src'
export { Spinner } from './spinner/src'
export { Switch } from './switch/src'
export {
Table,
TableHead,
TableHeaderCell,
TextTableHeaderCell,
SearchTableHeaderCell,
TableBody,
TableRow,
TableCell,
TextTableCell
} from './table/src'
export { SidebarTab, Tab, Tablist, TabNavigation } from './tabs/src'
export {
TextInput,
TextInputField,
TextInputAppearances
} from './text-input/src'
export { Textarea } from './textarea/src'
export { Tooltip } from './tooltip/src'
export {
UnorderedList,
Ul,
OrderedList,
Ol,
ListItem,
Li,
Text,
Paragraph,
Heading,
SubHeading,
Code,
Pre,
Label,
Link,
Small,
Strong,
TextStyles,
FontFamilies,
TextColors,
LinkAppearances
} from './typography/src'
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions src/layers/src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export { default as Pane } from './components/Pane'
export { default as Card } from './components/Card'
export { default as ElevationStyles } from './styles/elevation-styles'
export { default as BorderColors } from './styles/border-colors'
export { default as LayerAppearances } from './styles/layer-appearances'
export Pane from './Pane'
export Card from './Card'
export ElevationStyles from './styles/elevation-styles'
export BorderColors from './styles/border-colors'
export LayerAppearances from './styles/layer-appearances'
File renamed without changes.
5 changes: 1 addition & 4 deletions src/overlay/src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
import Overlay from './components/Overlay'

export default Overlay
export { Overlay }
export Overlay from './Overlay'
File renamed without changes.
5 changes: 1 addition & 4 deletions src/popover/src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
import Popover from './components/Popover'

export default Popover
export { Popover }
export Popover from './Popover'
File renamed without changes.
5 changes: 1 addition & 4 deletions src/portal/src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
import Portal from './components/Portal'

export default Portal
export { Portal }
export Portal from './Portal'
5 changes: 1 addition & 4 deletions src/positioner/src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
import Positioner from './components/Positioner'

export default Positioner
export { Positioner }
export Positioner from './Positioner'
File renamed without changes.
File renamed without changes.
7 changes: 2 additions & 5 deletions src/radio/src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
import Radio from './components/Radio'
import RadioGroup from './components/RadioGroup'

export default Radio
export { Radio, RadioGroup }
export Radio from './Radio'
export RadioGroup from './RadioGroup'
5 changes: 1 addition & 4 deletions src/search-input/src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
import SearchInput from './components/SearchInput'

export default SearchInput
export { SearchInput }
export SearchInput from './SearchInput'
9 changes: 2 additions & 7 deletions src/segmented-control/src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
import SegmentedControl from './components/SegmentedControl'

export {
default as SegmentedControlAppearances
} from './styles/SegmentedControlAppearances'
export default SegmentedControl
export { SegmentedControl }
export SegmentedControl from './SegmentedControl'
export SegmentedControlAppearances from './styles/SegmentedControlAppearances'
File renamed without changes.
16 changes: 5 additions & 11 deletions src/select-menu/src/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
import SelectMenu from './components/SelectMenu'

export { default as SelectMenuContent } from './components/SelectMenuContent'
export { default as OptionsList } from './components/OptionsList'
export {
default as OptionShapePropType
} from './components/OptionShapePropType'
export { default as SelectedPropType } from './components/SelectedPropType'

export default SelectMenu
export { SelectMenu }
export OptionShapePropType from './OptionShapePropType'
export OptionsList from './OptionsList'
export SelectedPropType from './SelectedPropType'
export SelectMenu from './SelectMenu'
export SelectMenuContent from './SelectMenuContent'
File renamed without changes.
Loading