From 400de050d972fd59ffeb326901b7b077599e1d3a Mon Sep 17 00:00:00 2001 From: TJ Egan Date: Fri, 30 Jun 2017 12:16:56 -0500 Subject: [PATCH] fix(index): export tooltip, datepicker (#73) * fix(index): export tooltip, datepicker * fix(export): update tests --- components/Toolbar.js | 13 ++++++------- components/__tests__/Toolbar-test.js | 3 +-- index.js | 9 +++++++++ 3 files changed, 16 insertions(+), 9 deletions(-) diff --git a/components/Toolbar.js b/components/Toolbar.js index 302eaf72aa..7e946693c4 100644 --- a/components/Toolbar.js +++ b/components/Toolbar.js @@ -39,15 +39,13 @@ const ToolbarItem = ({ children, type, placeHolderText }) => { return toolbarItem; }; -const ToolbarTitle = ({ title }) => ( +const ToolbarTitle = ({ title }) =>
  • {title} -
  • -); + ; -const ToolbarOption = ({ children }) => ( -
  • {children}
  • -); +const ToolbarOption = ({ children }) => +
  • {children}
  • ; const ToolbarDivider = () =>
    ; @@ -56,4 +54,5 @@ ToolbarItem.propTypes = toolbarItemPropTypes; ToolbarTitle.propTypes = toolbarTitlePropTypes; ToolbarOption.propTypes = toolbarOptionPropTypes; -export { Toolbar, ToolbarItem, ToolbarTitle, ToolbarOption, ToolbarDivider }; +export default Toolbar; +export { ToolbarItem, ToolbarTitle, ToolbarOption, ToolbarDivider }; diff --git a/components/__tests__/Toolbar-test.js b/components/__tests__/Toolbar-test.js index 93d469a5df..9d830efbc3 100644 --- a/components/__tests__/Toolbar-test.js +++ b/components/__tests__/Toolbar-test.js @@ -1,6 +1,5 @@ import React from 'react'; -import { - Toolbar, +import Toolbar, { ToolbarItem, ToolbarTitle, ToolbarOption, diff --git a/index.js b/index.js index 9765985488..8ada99db7d 100644 --- a/index.js +++ b/index.js @@ -14,6 +14,8 @@ export CodeSnippet from './components/CodeSnippet'; export ContentSwitcher from './components/ContentSwitcher'; export CopyButton from './components/CopyButton'; export DangerButton from './components/DangerButton'; +export DatePicker from './components/DatePicker'; +export DatePickerInput from './components/DatePickerInput'; export DetailPageHeader from './components/DetailPageHeader'; export Dropdown from './components/Dropdown'; export DropdownItem from './components/DropdownItem'; @@ -69,6 +71,13 @@ export TextInput from './components/TextInput'; export TimePicker from './components/TimePicker'; export TimePickerSelect from './components/TimePickerSelect'; export Toggle from './components/Toggle'; +export Toolbar, { + ToolbarItem, + ToolbarTitle, + ToolbarOption, + ToolbarDivider, +} from './components/Toolbar'; +export ToolbarSearch from './ToolbarSearch'; export Tooltip from './components/Tooltip'; export TooltipSimple from './components/TooltipSimple'; export UnorderedList from './components/UnorderedList';